// JavaScript Document
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
	}

	if (document.getElementById)
	{
		document.write('<style type="text/css">\n')
		document.write('.submenu{display: none;}\n')
		document.write('</style>\n')
	}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//遮罩层点击处理
function div18()
{
MM_showHideLayers('Layer1','','hide','Layer18','','hide');
}
//点击产品显示遮罩层的控制
function divstyle()
{
document.getElementById("Layer18").style.height=document.body.scrollHeight;
document.getElementById("Layer18").style.width=document.body.clientWidth;
document.getElementById("Layer18").style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=20)";
}
//清空语言选择文字
function clearcountry()
{
document.getElementById('county1').innerHTML='';
document.getElementById('county2').innerHTML='';
document.getElementById('county3').innerHTML='';
}
//搜索
function vl()
{
if(document.searchf.searchkey.value=="enter your search criteria")
document.searchf.searchkey.value="";
}
function rvl()
{
if(document.searchf.searchkey.value=="")
document.searchf.searchkey.value="enter your search criteria";
}
//catlog菜单效果
function menubg(artmenu)
{	
/*artmenu.style.borderBottomStyle="solid";
artmenu.style.borderBottomWidth="1px";
artmenu.style.borderBottomColor="#999999";
artmenu.style.borderLeftStyle="solid";
artmenu.style.borderLeftWidth="1px";
artmenu.style.borderLeftColor="#999999";
artmenu.style.borderRightStyle="solid";
artmenu.style.borderRightWidth="1px";
artmenu.style.borderRightColor="#999999";
artmenu.style.borderTopStyle="solid";
artmenu.style.borderTopWidth="1px";
artmenu.style.borderTopColor="#999999";
artmenu.style.backgroundColor="#dfdfdf";*/
artmenu.style.cursor="hand";
artmenu.style.color="#009900";
}
function clearmenubg(artmenuclr)
{
/*artmenuclr.style.borderBottomStyle="none";
artmenuclr.style.borderLeftStyle="none";
artmenuclr.style.borderRightStyle="none";
artmenuclr.style.borderTopStyle="none";
artmenuclr.style.backgroundColor="";*/
artmenuclr.style.color="";
}
//传递产品图片路径
function proshow(imgurl)
{
document.getElementById("showimgurl").innerHTML="<img src='download/"+imgurl+"'>";
}
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
document.getElementById("img"+sid).src="images/tree_express.gif";
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
document.getElementById("img"+sid).src="images/tree_plusbottom.gif";
}
}
/*menu goto big class url*/
function tiaozhuan(wid)
{
location.href="class.asp?id="+wid;
}