function zoomWindow (strURL) {
	//alert("start");
	
	var divZoom = document.getElementById("zoomArea");
	new Ajax.Updater('zoomArea', "zoom.php?name=" + strURL, {asynchronous:false, evalScripts:false}); 

	var img2Zoom = document.getElementById(strURL);

	var curLeft = curTop = 0;
	if (img2Zoom.offsetParent) {
		do {
			curLeft += img2Zoom.offsetLeft;
			curTop += img2Zoom.offsetTop;
		} while (img2Zoom = img2Zoom.offsetParent);
		// alert (curLeft);
		// alert (curTop);
		divZoom.style.left = curLeft;
		divZoom.style.top = curTop;
	} else {
		//alert ("incompat");
	}	
	
	divZoom.style.visibility = 'visible';
	//alert("finish");

	return (false);
}

function zoomWindow2 (strURL) {
	//alert("start");
	
	var divZoom = document.getElementById("zoomArea");
	new Ajax.Updater('zoomArea', "http://ftp.normanmalcolm.com/zoom.php?name=" + strURL, {asynchronous:false, evalScripts:false}); 

	var img2Zoom = document.getElementById(strURL);

	var curLeft = curTop = 0;
	if (img2Zoom.offsetParent) {
		do {
			curLeft += img2Zoom.offsetLeft;
			curTop += img2Zoom.offsetTop;
		} while (img2Zoom = img2Zoom.offsetParent);
		// alert (curLeft);
		// alert (curTop);
		divZoom.style.left = curLeft;
		divZoom.style.top = curTop;
	} else {
		//alert ("incompat");
	}	
	
	divZoom.style.visibility = 'visible';
	//alert("finish");

	return (false);
}

function closeZoomer () {
	document.getElementById("zoomArea").style.visibility = 'hidden';
	return(false);
}

function showThumbnail(hoveritem, strImg) {
	//alert("start");
	
	var divThumb = document.getElementById("divThumbnail");
	
	//divThumb.style.top = hoveritem.offsetTop + 18;
	//divThumb.style.left = hoveritem.offsetLeft + 20;

	var imgThumbnail = document.getElementById("imgThumbnail"); 
	//alert (imgThumbnail.src);
	imgThumbnail.src = strImg;
	
	var curLeft = curTop = 0;
	if (hoveritem.offsetParent) {
		do {
			curLeft += hoveritem.offsetLeft;
			curTop += hoveritem.offsetTop;
		} while (hoveritem = hoveritem.offsetParent);
		// alert (curLeft);
		// alert (curTop);
		divThumb.style.left = curLeft + 70;
		divThumb.style.top = curTop;
	} else {
		//alert ("incompat");
	}	

	divThumb.style.visibility = 'visible';



	return (false);
}


function hideThumbnail () {
	document.getElementById("divThumbnail").style.visibility = 'hidden';

	var imgThumbnail = document.getElementById("imgThumbnail"); 
	//alert (imgThumbnail.src);
	imgThumbnail.src = "images/wait.gif";
	
	return(false);
}
