function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function this_year() {
  var d = new Date();
  var dateString = d.getFullYear();
  document.write(dateString)
}

function hide()
{
	document.getElementById("mnuProducts").className = "mnuList";
	//document.getElementById("mnuContact").className = "mnuList";
}

function hideshowTwo()
{
	var obj;
	obj=document.getElementById("contact");
	if (obj.offsetParent) 
	{
		curleft = obj.offsetLeft;
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) 
		{
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		}
	}
	
	
	var a;
	a = navigator.appName;
		//document.getElementById("mnuContact").style.left = curleft -1 ;
		//document.getElementById("mnuContact").style.top = curtop+20;
	if(a=="Opera")
	{
		//document.getElementById("mnuContact").style.left = curleft-1;
		//document.getElementById("mnuContact").style.top = curtop + 21;
	}
	if(a=="Netscape")
	{
		//document.getElementById("mnuContact").style.left = curleft -1 ;
		//document.getElementById("mnuContact").style.top = curtop+19;
	}
	if(a=="Microsoft Internet Explorer")
	{
		//document.getElementById("mnuContact").style.left = curleft;
		//document.getElementById("mnuContact").style.top = curtop+20;
	}

	//document.getElementById("mnuContact").className = "mnuListShow";
}



function hideshowOne()
{
	var obj;
	obj=document.getElementById("products");
	if (obj.offsetParent) 
	{
		curleft = obj.offsetLeft;
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) 
		{
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		}
	}
	
	
	
	var a;
	a = navigator.appName;
		document.getElementById("mnuProducts").style.left = curleft -1 ;
		//document.getElementById("mnuProducts").style.top = curtop+19;

	if(a=="Opera")
	{
		document.getElementById("mnuProducts").style.left = curleft -1;
		//document.getElementById("mnuProducts").style.top = curtop + 21;
	}
	if(a=="Netscape")
	{
		document.getElementById("mnuProducts").style.left = curleft -1 ;
		//document.getElementById("mnuProducts").style.top = curtop+19;
	}
	if(a=="Microsoft Internet Explorer")
	{
		document.getElementById("mnuProducts").style.left = curleft;
		//document.getElementById("mnuProducts").style.top = curtop+20;
	}



	document.getElementById("mnuProducts").className = "mnuListShow";
}




function imgHide(id)
{
	document.getElementById(id).className = "imgHide";
}


function imgShow(id)
{
	document.getElementById(id).className = "imgShow";
}




function putSearch()
{

	var a;
	a = navigator.appName;

	if(a=="Opera")
	{
	//????
	}
	if(a=="Netscape")
	{
		document.getElementById("q").style.position = "relative";
		document.getElementById("q").style.left = "0px";
		document.getElementById("q").style.top = "-1px";

		document.getElementById("d").style.position = "relative";
		document.getElementById("d").style.left = "2px";
		document.getElementById("d").style.top = "0px" ;	
		
	}
	if(a=="Microsoft Internet Explorer")
	{
		//DO NOTHING! IE can't handle it...
	}

}

function srchFocus()
{
	document.getElementById("q").className = "txtFocus";
	document.getElementById("d").className = "btnFocus";
	if(document.getElementById("q").value == "    type here")
	{
		document.getElementById("q").value = "";
	}
	
}



function srchBlur()
{
	
	if(document.getElementById("q").value == "")
	{
		document.getElementById("d").className = "btnSearch";
		document.getElementById("q").className = "txtSearch";
		document.getElementById("q").value = "    type here";
	}
	
}



