rem: var imageDiv = document.getElementById("singleimage"); 
add: var imageDiv = document.getElementById("singleimage"); 
context: function single() {	var imageDiv = document.getElementById("singleimage");	if (imageDiv) {		currentHeight = imageDiv.offsetHeight;		currentWidth  = imageDiv.offsetWidth;				if (currentHeight > maxHeight) {			ratio = maxHeight / currentHeight;			imageDiv.style.width = (currentWidth*ratio) + 'px';			imageDiv.style.height = (currentHeight*ratio) + 'px';				}	}}
meta: 7185	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7185/80c9c938b752c166333756d458413e4d0fbbea10/jstemplate.js/clean/preset/Image Gallery/jstemplate.js