// JavaScript Document

// 友好表格脚本
window.onload=function(){
	var Ptr=document.getElementsByTagName("tr");
	for(var i=0;i<Ptr.length;i++) {
		Ptr[i].onmouseover=function(){
		this.tmpClass=this.className;
		this.className = "t3";
		
		};
		Ptr[i].onmouseout=function(){
		this.className=this.tmpClass;
		};
	}
}

function showArticle(id){
	var num=18
	for(var i=1;i<num;i++)
		{
			(id == ("show"+i)) ? document.getElementById("article"+i).style.display="block" : document.getElementById("article"+i).style.display="none";
			(id == ("show"+i)) ? document.getElementById("show"+i).className="showBorder" : document.getElementById("show"+i).className="hideBorder";
		}				
	}
// 段落折叠脚本
function InsertContent(id)
	{
	document.getElementById(id).style.display="block"
	}
function RemoveContent(id)
	{
	document.getElementById(id).style.display="none"
	}
	
function InsertContentNew(id){
	if(document.getElementById(id).style.display=='none') document.getElementById(id).style.display='block'; else if(document.getElementById(id).style.display=='block') document.getElementById(id).style.display='none';	
}

// 选项卡脚本
function cucas_tab(id){
	id == "cucas_tab1" ? document.getElementById("cucas_tabCnt1").style.display="block" : document.getElementById("cucas_tabCnt1").style.display="none";
	id == "cucas_tab2" ? document.getElementById("cucas_tabCnt2").style.display="block" : document.getElementById("cucas_tabCnt2").style.display="none";
	id == "cucas_tab3" ? document.getElementById("cucas_tabCnt3").style.display="block" : document.getElementById("cucas_tabCnt3").style.display="none";
	id == "cucas_tab4" ? document.getElementById("cucas_tabCnt4").style.display="block" : document.getElementById("cucas_tabCnt4").style.display="none";
	}


/*第一种形式 第二种形式 更换显示样式*/
function setTab(name,cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
}
function control(id){
	if(document.getElementById(id).style.display=='none') document.getElementById(id).style.display='block'; else if(document.getElementById(id).style.display=='block') document.getElementById(id).style.display='none';	
}