//This script belong to Esben Stig Ehrenskjöld. © Copyright 2007 - 2008 All rights reserved.
function WindowWidth()
			{
		         if(typeof( window.innerWidth ) == 'number')
				 {
		           return window.innerWidth;
				 }
		         else
				 {         
		           return document.body.clientWidth;
		         };
			};
			
			count =1;
			function refreshClip(e){
				w = WindowWidth();
				h = 100;
				x = (navigator.appName == 'Netscape') ? e.pageX : event.x + document.body.scrollLeft - 67;
				x = x - 302;
				document.getElementById('XDiv').innerHTML = x +"px";
				y = 0;
		        //if(navigator.appName == 'Netscape' && e.target!=document) routeEvent(e);
				if(navigator.appName == 'Netscape')
		           {
		            if(typeof( window.innerWidth ) == 'number')
					 {
			           document.getElementById('backDiv').style.clip="rect(" + (y) + "px" + "," + ((x -350) + h) + "px" + "," + (y + w) + "px" + "," + (x -350) + "px" + ")";
					 }	           
		           if(parseInt(navigator.appVersion) == 5)
		             {
		             layer.style.clip = 'rect(' + x + ' ' + (y + h) + ' ' + (x + w) + ' ' + y + ')';             
		             }
		           if(parseInt(navigator.appVersion) == 4)
		             {
		             layer.clip.left = y;
		             layer.clip.top = x;
		             layer.clip.right = y + h;
		             layer.clip.bottom = x + w;
		             }
		           }
		         else
		           {
						document.getElementById('backDiv').style.clip="rect(" + y + "px" + "," + (x + h) + "px" + "," + (y + w) + "px" + "," + x + "px" + ")";
					}
			};
				
			function changeImgFront(frontimg,strf){
				document.onmousemove = refreshClip;
				if(navigator.appName == 'Netscape') document.captureEvents(Event.refreshClip);
				for(i=1;i<3;i++){
				//document.getElementById('tdf'+i).style.fontWeight = "normal";
				};
				//document.getElementById(strf).style.fontWeight = "bold";
				document.getElementById('imgfront').src = "X-Ray/" + frontimg;
			};
			
			function changeImgBack(backimg,strb){
				for(i=1;i<3;i++){
				//document.getElementById('tdb'+i).style.fontWeight = "normal";
				};
				//document.getElementById(strb).style.fontWeight = "bold";
				document.getElementById('imgback').src = "X-Ray/" + backimg;
			};
// End -->
