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: 2641	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2641/aab98aaff18f6540054b654f45109ffd264217c0/jstemplate.js/buggy/mod/data/preset/imagegallery/jstemplate.js