rem: imageDivs = document.getElementsByName("listimage"); for (i=0; i < imageDivs.length; i++) { currentHeight = imageDivs[i].offsetHeight; currentWidth = imageDivs[i].offsetWidth;  if (currentHeight > maxListHeight) { ratio = maxListHeight / currentHeight; imageDivs[i].style.width = (currentWidth*ratio) + 'px'; imageDivs[i].style.height = (currentHeight*ratio) + 'px'; imageDivs[i].firstChild.style.height = '100%'; imageDivs[i].firstChild.style.width = '100%'; } } 
add: imageDivs = document.getElementsByName("listimage"); for (i=0; i < imageDivs.length; i++) { currentHeight = imageDivs[i].offsetHeight; currentWidth = imageDivs[i].offsetWidth;  if (currentHeight > maxListHeight) { ratio = maxListHeight / currentHeight; imageDivs[i].style.width = (currentWidth*ratio) + 'px'; imageDivs[i].style.height = (currentHeight*ratio) + 'px'; imageDivs[i].firstChild.style.height = '100%'; imageDivs[i].firstChild.style.width = '100%'; } } 
context: function list() {	imageDivs = document.getElementsByName("listimage");	for (i=0; i < imageDivs.length; i++) {		currentHeight = imageDivs[i].offsetHeight;		currentWidth = imageDivs[i].offsetWidth;				if (currentHeight > maxListHeight) {			ratio = maxListHeight / currentHeight;			imageDivs[i].style.width = (currentWidth*ratio) + 'px';			imageDivs[i].style.height = (currentHeight*ratio) + 'px';			imageDivs[i].firstChild.style.height = '100%';			imageDivs[i].firstChild.style.width = '100%';		}	}}
meta: 752	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/752/6124048972a690b293ec27ca743a3c0f869217d2/jstemplate.js/buggy/mod/data/preset/Image Gallery/jstemplate.js