
links = new Array();
	links[0] = "home"
	links[1] = "about"
	links[2] = "product"
	links[3] = "order"
	links[4] = "guestbook"
	links[5] = "contact"
	links[6] = "china"
	is = new browserCheck();	
	myObj = new Object();
	imageObj = new Object();
	for(i=0;i<links.length; i++){
		imageObj[links[i]+'_over']=new Image();
		imageObj[links[i]+'_over'].src='/template/Images/nav_en_'+links[i]+'_over.gif';
		imageObj[links[i]+'_off']= new Image();
		imageObj[links[i]+'_off'].src='/template/Images/nav_en_'+links[i]+'_off.gif';
		imageObj[links[i]+'_select']= new Image();
		imageObj[links[i]+'_select'].src='/template/Images/nav_en_'+links[i]+'_selected.gif';
	}	
	function browserCheck() {
		this.ns4 = (document.layers)? true:false;
		this.ie = (document.all&&(!window.opera))? true:false;
		this.dom = (document.getElementById)? true:false;
		this.ns6 = (window.sidebar)? true:false;
		this.moz = (window.sidebar||navigator.userAgent.indexOf('Gecko')!=-1)? true:false;
		this.opera = (window.opera)? true:false;
		this.mac = (navigator.userAgent.indexOf('Mac')!=-1)? true:false;
	}
	function getObjectName(nameOfObject){
		Obj = null;
				if (is.ie) Obj = document.all[nameOfObject];
		else if (is.dom) Obj = document.getElementById(nameOfObject);
		else if (is.ns4) findLayer(window,nameOfObject);
				if (!Obj || ( is.ns4 && Obj == window ) ) Obj = "Object not found"
				return Obj;
	}	
	function getObjectStyle(nameOfObject){
				Obj = null;
				if (is.ie && document.all[nameOfObject] != null) Obj = document.all[nameOfObject].style;
		else if (is.dom && document.getElementById(nameOfObject) != null) Obj = document.getElementById(nameOfObject).style;
		else if (is.ns4) findLayer(window,nameOfObject);
				return Obj;
	}	
	function findLayer(node,nameOfObject) {
			if ( node.name == nameOfObject ) Obj = node;
				for ( var counter = 0; counter < node.document.images.length; counter++ ) {
			if (node.document.images[counter].name==nameOfObject) Obj = node.document.images[counter];
		}		
		for ( var i = 0; i < node.document.layers.length; i++ ) {
			findLayer(node.document.layers[i],nameOfObject);
		}
	}	
	function turnOffOthersNavs(name){
		for(i=0; i<links.length; i++){
			if(name != links[i]){
				if(myObj['timer_'+links[i]]){
					clearTimeout(myObj['timer_'+links[i]]);
				}
				doHide(links[i]);
			}
		}
	}
	function showNav(name){
		turnOffOthersNavs(name);
		if(myObj['timer_'+name]){
			clearTimeout(myObj['timer_'+name]);
		}
				myStyle = getObjectStyle('div_'+name);
		if(myStyle!=null) myStyle.visibility = 'visible';
		
		if(document.images[name]) document.images[name].src=imageObj[name+'_over'].src;
		}
	function hideNav(name){
		myObj['timer_'+name] = window.setTimeout("doHide('"+name+"')", 200);
	}
	function doHide(name){
		myStyle = getObjectStyle('div_'+name);
		if(myStyle!=null) myStyle.visibility = 'hidden';
		
		if(document.images[name]) document.images[name].src=imageObj[name+'_off'].src;
	}
	function changeBg(name, col){
		myStyle = getObjectStyle(name);
		myStyle.backgroundColor = col;
	}
	function changeIm(name, state){
		document.images[name].src=imageObj[name+'_'+state].src;
	}
	function onSiteSearchClick()
	{
		document.frmSiteSearch.target.value = document.frmSiteSearch.txtSearch.value;
		document.frmSiteSearch.submit();
	}