1) ? 1 : -1; var hinc = plusMinus * cachedImageObj.heightIncrement; var vinc = plusMinus * cachedImageObj.widthIncrement; var startHeight = cachedImageObj.originalHeight; var startWidth = cachedImageObj.originalWidth; var currentHeight = imgElement.height; var currentWidth = imgElement.width; var endHeight = Math.round(startHeight * pct); var endWidth = Math.round(startWidth * pct); if ( (currentHeight == endHeight) || (currentWidth == endWidth) ) return true; var newHeight = currentHeight + hinc; var newWidth = currentWidth + vinc; if (pct > 1) { if ((newHeight >= endHeight) || (newWidth >= endWidth)) { newHeight = endHeight; newWidth = endWidth; } } else { if ((newHeight" />