function doClick(o){
	 o.className="nav_search";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=10;i++){
	   id ="nav"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("sear"+i);
	   if(id != o.id){
	   	 j.className="nav_link";
	   	 e.style.display = "none";
	   }else{
		   e.style.display = "block";
	   }
	 }
}
function SearchCheck(param,warning){
  var str = param.value;
  if (str==""||str.substring(0, 3)=="请输入"){
      alert("请输入"+warning);
      param.focus();
      return false;
  }
return true;
}

function bgOver(thisObj){
	thisObj.style.background="#F8F8F8";
}
function bgOut(thisObj){
	thisObj.style.background="";
}

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 class=nav2 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 class=nav2 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 getObj(objName){
	return(document.getElementById(objName));
}
function changeOver(objName,objId,num,contentid){
    for(i=0;i<num;i++){
		getObj(objName+i).className="h_bg2";
		getObj(contentid+i).style.display = "none";
	}
	getObj(objName+objId).className="h_bg1";
	getObj(contentid+objId).style.display = "";
}

//-- 滚动横幅-->
function slideBanner(ul, delay, speed, lh) {
var slideBox = (typeof ul == 'string')?document.getElementById(ul):ul;
var delay = delay||1000, speed=speed||20, lh = lh||20;
var tid = null, pause = false;
var start = function() {
tid=setInterval(slide, speed);
}
var slide = function() {
if (pause) return;
slideBox.scrollTop += 2;
if (slideBox.scrollTop % lh == 0) {
clearInterval(tid);
slideBox.appendChild(slideBox.getElementsByTagName('li')[0]);
slideBox.scrollTop = 0;
setTimeout(start, delay);
}
}
slideBox.onmouseover=function(){pause=true;}
slideBox.onmouseout=function(){pause=false;}
setTimeout(start, delay);
}
