//Image zoom in/out script- by javascriptkit.com
//Visit JavaScript Kit (http://www.javascriptkit.com) for script
//Credit must stay intact for use

var state = 'out';

function zoom(originalW, originalH, what)
{
	if (!document.all&&!document.getElementById)
		return;
	
	var whatcache=eval("document.images."+what);
	var prefix=(state=="out")? 1 : -1;
	
	if(state == "in")
	{
		whatcache.style.position = "relative";
		whatcache.style.width=originalW + "px";
		whatcache.style.height=originalH + "px";
		whatcache.style.marginLeft = "0px";
		whatcache.style.marginTop = "0px";
		whatcache.src = whatcache.src.replace("-2", "-1");
		
		var zoomImg = document.getElementById("zoomImg");
		zoomImg.style.position = "relative";
		
		zoomImg.src = "images/zoom.gif";
		zoomImg.style.width = "71px";
		zoomImg.style.height = "37px";
		
		zoomImg.style.marginTop = "-40px";
		zoomImg.style.marginLeft = "";
		
		state = 'out';
	}
	else
	{
		var zoomImg = document.getElementById("zoomImg");
		zoomImg.style.position = "absolute";
		
		zoomImg.src = "images/fermerzoom.gif";
		zoomImg.style.width = "28px";
		zoomImg.style.height = "25px";
		
		zoomImg.style.marginTop = "0px";
		zoomImg.style.marginLeft = "456px";
		
		whatcache.style.width = "770px";
		whatcache.style.height = "578px";
		whatcache.style.position = "absolute";
		whatcache.style.marginLeft = "-286px";
		whatcache.src = whatcache.src.replace("-1", "-2");
		
		state = 'in';
	}
}