var zw;
currentZoom=true;
var imageSize = new Object();
var windowSize = new Object();
var ie4=false;
var ns4=false;
var notZoomable;

function detailswin(zoomhtml)
{
	zw = open(zoomhtml, "zoomwin", "width=870, height=600, scrollbars, resizable", true);
	windowSize.x = 870; // width of the window less the title portion
	windowSize.y = 600; // height of the window
}

function allclose()
{
	zw.close();
}

function closezoom()
{
	window.close();
}


function setZoomWindow() {
	var img = getElementById("zoomImage");
	imageSize.x = img.width;
	imageSize.y = img.height;
	if (imageSize.x <= windowSize.x && imageSize.y <= windowSize.y)
		{
		notZoomable = true;
		}
	else
		{
		if (imageSize.x / windowSize.x > 1)
			{

			}
		else
			{
			}
		}


}

