function G(id){return document.getElementById(id);}

var isIE = (window.navigator.userAgent.indexOf("MSIE")>=1)?true:false;

function sh(obj,url){obj.style.behavior='url(#default#homepage)';obj.setHomePage(url);}

var tabMode ={
 allNum : 10,  // tabÊý
 title: 0,

 init : function (titId){

  if (!G(titId+"1")) return;
  
  G(titId+"1").className="tab_inner_v";
  G(titId+"1").parentNode.className = "tab_border_v";
  G(titId+"1").parentNode.parentNode.className = "tab_out_v";
  if (G(titId+"m1")){G(titId+"m1").style.display="block"};
  G(titId+"c"+"1").style.display="block";

  for(var i=1; i<=this.allNum; i++){
   if (typeof(G(titId+i))!="undefined" && G(titId+i)!=null){
    if(window.navigator.userAgent.indexOf("MSIE")>=1){
     G(titId+i).attachEvent("onmouseover", this.changeClass);}
    else{
    G(titId+i).addEventListener("mouseover", this.changeClass, false);} 
   }
  }
 },

 changeClass:function (event){
  var obj = (window.navigator.userAgent.indexOf("MSIE")>=1)?event.srcElement:event.target;
  var regx=/\d$/;
  var titIndex=regx.exec(obj.id);
  var tit=obj.id.replace(/\d$/,"")

  obj.className = "tab_inner_v";
  obj.parentNode.className = "tab_border_v";
  obj.parentNode.parentNode.className = "tab_out_v";
  if (G(tit+"m"+titIndex)){G(tit+"m"+titIndex).style.display="block"};
  G(tit+"c"+titIndex).style.display="block";

  for (var i=1;i<=tabMode.allNum;i++){
   if (i!=titIndex){
    var objTemp = G(tit+i);
	if (typeof(objTemp)!="undefined" && objTemp!=null){
	 objTemp.className ="tab_inner";
     objTemp.parentNode.className = "tab_border";
     objTemp.parentNode.parentNode.className = "tab_out";
     G(tit+"c"+i).style.display="none";
	 if (G(tit+"m"+i)){G(tit+"m"+i).style.display="none"};
	}
   }
  }
 }
}//tabMod END

window.onerror=function (){return true;}
