function ResumeError() { 
return true; 
} 
window.onerror = ResumeError; 

function showtab(btnid,tabid,tabnumber)
{
	for (i = 1;i<=tabnumber;i++)
	{
		document.getElementById(tabid+"_btn"+i).className = "tabpane";
		document.getElementById(tabid+"_sub"+i).style.display = "none";
	}
	document.getElementById(tabid+"_btn"+btnid).className = "current";
	document.getElementById(tabid+"_sub"+btnid).style.display = "";
}
// yoka風格JS
function $a(id,tag){var re=(id&&typeof id!="string")?id:document.getElementById(id);if(!tag){return re;}else{return re.getElementsByTagName(tag);}}
function addImg(url){var img=new Image();img.src=url;return img;}
function clickMove(list,show,upbt,dobt)
{
	var as=$a(list),ss=$a(show,"dl"),li=$a(as,"li"),w=36,ubt=$a(upbt),dobt=$a(dobt),now=1;for(var i=0;i<5;i++){reg(i);}
	function reg(i){li[i].onclick=function(){now=i;init();}}
	dobt.onclick=function(){if(now<4){now++;}else{now=0;}init();};
	ubt.onclick=function(){if(now>0){now--;}else{now=4;}init();}
	function init(){for(var i=0;i<ss.length;i++){li[i].className="";ss[i].className="";}
	li[now].className="show";ss[now].className="show";if(now==4){as["scrollLeft"]=3*w;}else{as["scrollLeft"]=(now-1)*w;}};init();
	var uimg=addImg(ubt.src),uimg1=addImg(ubt.src.replace(/(.*)(\.\w{3})/,"$1_$2"));
	ubt.onmouseover=function(){this.src=uimg1.src;};ubt.onmouseout=function(){this.src=uimg.src;}
	var dimg=addImg(dobt.src),dimg1=addImg(dobt.src.replace(/(.*)(\.\w{3})/,"$1_$2"));
	dobt.onmouseover=function(){this.src=dimg1.src;};dobt.onmouseout=function(){this.src=dimg.src;}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function GameVersion() { 
document.write("WoW 3.1.3 \(10146\)");
} 