/* 层的自动轮换方法 begin*/
var q=0;
function changediv(){
document.getElementById("indexsrh"+(q%3+1)).style.display = "none";
q++;
document.getElementById("indexsrh"+(q%3+1)).style.display = "block";
setTimeout("changediv()",3000);}
/* 层的自动轮换方法 end */

function menuFix() {
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
		this.className+=(this.className.length>0? " ": "") + "sfhover";
		}
		sfEls[i].onMouseDown=function() {
		this.className+=(this.className.length>0? " ": "") + "sfhover";
		}
		sfEls[i].onMouseUp=function() {
		this.className+=(this.className.length>0? " ": "") + "sfhover";
		}
		sfEls[i].onmouseout=function() {
		this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
		}
	}
changediv();
}
window.onload=menuFix;
/*标签切换 参数: divID --当前DIV的ID号；divName --要改变的这一组DIV的命名前缀；zDivCount --这一组DIV的个数-1*/
function ChangeDiv(divId,divName,zDivCount,spanName,linkName) 
{ 
for(i=0;i<=zDivCount;i++)
{
	document.getElementById(divName+i).style.display="none";
	document.getElementById(linkName+i).style.display="none";
	document.getElementById(spanName+i).className="row3_title_no"; 
}
document.getElementById(divName+divId).style.display="block";
document.getElementById(linkName+divId).style.display="block";
document.getElementById(spanName+divId).className="row3_title"; 
}


