// JavaScript Document
//
function set(name,cursel,n){
	  for(i=1;i<=n;i++){
	  var menu=document.getElementById(name+i);
	  var con=document.getElementById(name+"_"+i);
	  menu.className=i==cursel?"hover":"";
	  con.style.display=i==cursel?"block":"none";
	} 
  }
  //显示与隐藏列表 显示更多
function showList(id,num){
	if(num == 1){
		document.getElementById(id).style.display = "block";
	}
	else{
		document.getElementById(id).style.display = "none";
	}
}

function set_item_class(id){
	for(i=1;i<=6;i++){
		if(id==i){
			document.getElementById("pro_"+i+"_2").style.display="";
			document.getElementById("pro_"+i+"_2").style.background="url(/templets/newyouhao/static/fkimg/images/item_h"+i+"_on.gif) no-repeat 10px 5px";
			document.getElementById("pro_"+i+"_1").style.display="none";
		}else{
			document.getElementById("pro_"+i+"_2").style.display="none";
			document.getElementById("pro_"+i+"_1").style.display="";
			document.getElementById("pro_"+i+"_1").style.background="url(/templets/newyouhao/static/fkimg/images/item_h"+i+".gif) no-repeat 15px 4px";
		}
	}
}
function set_item_classd(id){
	for(i=1;i<=8;i++){
		if(id==i){
			document.getElementById("pro_"+i+"_2").style.display="";
			document.getElementById("pro_"+i+"_2").style.background="url(/templets/newyouhao/static/fkimg/images/item_h"+i+"_on.gif) no-repeat 10px 5px";
			document.getElementById("pro_"+i+"_1").style.display="none";
		}else{
			document.getElementById("pro_"+i+"_2").style.display="none";
			document.getElementById("pro_"+i+"_1").style.display="";
			document.getElementById("pro_"+i+"_1").style.background="url(/templets/newyouhao/static/fkimg/images/item_h"+i+".gif) no-repeat 15px 4px";
		}
	}
}
