

	var state = 'block'; 
	img2ChangeCrystal1 = new Image;
	img2ChangeCrystal1.src = "images/products-pics/seat-liquid.jpg";
	img2ChangeCrystal2 = new Image;
	img2ChangeCrystal2.src = "images/products-pics/seat-liquid2.jpg";
	img2ChangeFelt1 = new Image;
	img2ChangeFelt1.src = "images/products-pics/seat-felt.jpg";
	img2ChangeFelt2 = new Image;
	img2ChangeFelt2.src = "images/products-pics/seat-felt2.jpg";
	

	function hover(block)
	{
		var jpgUrloff=eval("document.imgpix"+ block +".src");
		//alert(jpgUrloff);
		if (jpgUrloff.indexOf("before-Photos.gif")<1 && Tab != block)
		{
			tempString=jpgUrloff.substring(0,jpgUrloff.length-7);
			tempString=jpgUrloff.substring(tempString.indexOf("/images/"),tempString.length);
			jpgUrl=tempString+"before-Photos.gif";
			eval("document.imgpix" + block + ".src = \"" + jpgUrl + "\"");
			if (document.all)
			{
				var thestyle= eval ('document.all.td' + block +'.style');
				thestyle.backgroundColor="#F5E0A9";
			}
			else
			{	
				var r = "td" + block;
				document.getElementById(r).style.backgroundColor= "#F5E0A9";
			}
		}
	}

	function hoverout(block)
	{
		var jpgUrl=eval("document.imgpix"+ block +".src");
		if (jpgUrl.indexOf("before-Photos.gif")>1 && Tab != block)
		{
			tempString=jpgUrl.substring(0,jpgUrl.length-17);
			tempString=jpgUrl.substring(tempString.indexOf("images/"),tempString.length);
			jpgUrl=tempString+"pix.gif";
			eval("document.imgpix" + block + ".src = \"" + jpgUrl + "\"");
			if (document.all)
			{
				var thestyle= eval ('document.all.td' + block +'.style');
				thestyle.backgroundColor="";
			}
			else
			{	
				var r = "td" + block;
				document.getElementById(r).style.backgroundColor= "";
			}
			
		}
	}
	
	

	function setOnMenu () {
		if (Tab != ""){
			var jpgUrl;
			jpgUrl = eval("document.imgpix"+ Tab +".src");
			tempString=jpgUrl.substring(0,jpgUrl.length-8);
			tempString=jpgUrl.substring(tempString.indexOf("/images/"),tempString.length);
			jpgUrl=tempString+"/before-Photos.gif";
			eval("document.imgpix" + Tab + ".src = \"" + jpgUrl + "\"");
			if (document.all)
			{
				var thestyle= eval ('document.all.td' + Tab +'.style');
				thestyle.backgroundColor="#F5E0A9";
			}
			else
			{	
				var r = "td" + Tab;
				document.getElementById(r).style.backgroundColor= "#F5E0A9";
			}
		}
	}
	
	//***************************************************************

	function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
				newWindow=window.open(URLtoOpen, windowName, windowFeatures);
	}
			
	with (document)
	{
		write("<STYLE TYPE='text/css'>");
		if (navigator.appName == 'Microsoft Internet Explorer')
			{
			write(".hiddediv {display:none}   .showdiv {display:block}  .outline {cursor:hand}");
			}
		write("</STYLE>");
	}
			
		
	function SwapIt(name,tname) {
		var temp;
		temp = "document."+ name +".src = "+ tname +".src";
		eval(temp);
		return true;
	}

		
		function showhide(layer_ref) { 
			var imgpm;
			
			if (document.all) { //IS IE 4 or 5 (or 6 beta) 
				state = eval( "document.all." + layer_ref + ".style.display"); 
				//imgpm = eval( "document.all.img" + layer_ref);
			}
			else if (document.layers) { //IS NETSCAPE 4 or below 
				state = document.layers[layer_ref].display ; 
				//imgpm = document.images["img" + layer_ref];
			} 
			else if (document.getElementById &&!document.all) { 
				hza = document.getElementById(layer_ref); 
				state = hza.style.display;
				//imgpm =document.getElementById("img"+layer_ref); 
			} 
			
						/**/
			if (state == 'block' || state == '') { 
				state = 'none'; 
				//SwapIt("img" + layer_ref,'pPlus');
				
			} 
			else { 
				state = 'block'; 
				//SwapIt("img" + layer_ref,'pMinus');
			} 
			
			
			if (document.all) { //IS IE 4 or 5 (or 6 beta) 
				eval( "document.all." + layer_ref + ".style.display = state"); 
			} 
			if (document.layers) { //IS NETSCAPE 4 or below 
				document.layers[layer_ref].display = state; 
			} 
			if (document.getElementById &&!document.all) { 
				hza = document.getElementById(layer_ref); 
				hza.style.display = state; 
			} 
		} 
		
		function openPicSlide(url) {
			myWindow = window.open(url,"","width=440,height=370,location=no,toolbar=no,menubar=no");
			//myWindow.document.title="Bimatic Fork Mixer";
			//myWindow.document.SetVariable("myIndex","2");
		}
		
		function StatusOff()
		{
			return onText("");
		}

		function onText(str)
		{
			window.status = str;
			return true;
		}
function scrensenser()
{ if (screen.width >= 1024){
   document.getElementById("maint").style.width="840";}
   else {
     document.getElementById("maint").style.width="779";
   }
	 }	
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
 var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
  windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,'; 
 else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
 else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
 else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
 else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
 else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
 if(h!="") windowProperties+='height='+h; if(windowProperties!="") { 
  if( windowProperties.charAt(windowProperties.length-1)==',') 
   windowProperties=windowProperties.substring(0,windowProperties.length-1); } 
 window.open(url,name,windowProperties);
   }

	 


