//-- 栏目频道切换按钮-->
function getObj(objName){
	return(document.getElementById(objName));
}
function setTabOver(objName,objId,num,contentid){
    for(i=1;i<=num;i++){
		getObj(objName+i).className="enormaltab";
		getObj(contentid+i).style.display = "none";
	}
	getObj(objName+objId).className="ehovertab";
	getObj(contentid+objId).style.display = "";
}

//-- 产品分类展开-->
function showul(ulclsname,liclsname,showmorename,layername)
{
	if(null == layername)
		layername = "showlayer";
	var showmore = document.getElementById(showmorename);
	var Lshow = document.getElementById(layername);
	if(showmore)
	{
		if(showmore.className == "showmore")
		{
            Lshow.innerHTML = "<A style=cursor:hand onmouseover=this.style.textDecoration='underline'   onmouseout=this.style.textDecoration='' onclick=\"showul('"+ulclsname+"','more','"+showmorename+"','"+layername+ 
                        "');Logger('classbrief_" + layername  + "');\"><font color=#FF0000>&lt;&lt;简洁显示</font></A>&nbsp;";
            showmore.className = "showless";
			disp = "block";
		}
		else
		{
			Lshow.innerHTML = "&nbsp;<A style=cursor:hand onmouseover=this.style.textDecoration='underline' onmouseout=this.style.textDecoration=''  onclick=\"showul('"+ulclsname+"','more','"+showmorename+"','"+layername+"');Logger('classmore_" + layername  + "');\"><font color=#FF0000>更多&gt;&gt;</font></A>";
			showmore.className = "showmore";
			disp = "none";
		}
	}
	var es = document.getElementById(ulclsname);
	for (var j = 0; j < es.childNodes.length; j++) {
		var child = es.childNodes.item(j);
		if (child && (child.tagName == 'li' || child.tagName == 'LI') && child.className && child.className == liclsname)child.style.display=disp;
	}
}

//筛选条件
function nTabs(thisObj,Num){
if(thisObj.className == "div1")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("div");
for(i=0; i <tabList.length; i++)
{
  if (i == Num)
  {
   thisObj.className = "div1"; 
      document.getElementById(tabObj+"_con"+i).style.display = "block";
  }else{
   tabList[i].className = "div2"; 
   document.getElementById(tabObj+"_con"+i).style.display = "none";
  }
} 
}
	function showv(id,top){
	document.getElementById(''+id+'').style.display='block';
    document.getElementById(''+id+'').style.top=''+top+'';
	}
    function hiddv(id){
	eval("document.getElementById('"+id+"').style.display='none'");
	}
function showpp(obj,jian,jia){
   var objtr=document.getElementById(''+obj+'');
   if(typeof objtr !="undefined"){
      objtr.style.display=objtr.style.display=='none'?"":"none";
  document.getElementById(''+jian+'').style.display="none";
  document.getElementById(''+jia+'').style.display="block";
   }
}
function showppqt(obj,jian,jia){
   var objtr1=document.getElementById(''+obj+'');
   if(typeof objtr1 !="undefined"){
      objtr1.style.display=objtr1.style.display=='none'?"":"none";
     document.getElementById(''+jian+'').style.display="block";
     document.getElementById(''+jia+'').style.display="none";
   } 
}
