// JavaScript Document

MocaiArticl={
_$:function(v){return document.getElementById(v);},
getEles:function(id,ele){return this._$(id).getElementsByTagName(ele);},sideTab:{heads:'tabTit',heads_ele:'span',bodys:'tabBody',bodys_ele:'ul'},
TabChang:function(){
	var eles=this.getEles(this.sideTab.heads,this.sideTab.heads_ele);
	var body=this.getEles(this.sideTab.bodys,this.sideTab.bodys_ele);
	for(var i=0;i<eles.length;i++){(
		function(){
			var p=i;
			eles[p].onmouseover=function(){MocaiArticl._TabChang(p,body,eles);}
		}
	)();}
},
_TabChang:function(n,body,obj){
	for(var i=0;i<body.length;i++){
		if(i==n){
			body[n].className="block";obj[n].className="select";
		}else{
			body[i].className="none";obj[i].className="";
		}
	}
}
};

