// JavaScript Document
//加入收藏
function bookmark(){
var title=document.title
var url=document.location.href
if (window.sidebar) window.sidebar.addPanel(title, url,"");
else if( window.opera && window.print ){
var mbm = document.createElement('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();}
else if( document.all ) window.external.AddFavorite( url, title);
}

//鼠标移动触发
function GetObj(objName){
if(document.getElementById){
return eval('document.getElementById("' + objName + '")');
}else if(document.layers){
return eval("document.layers['" + objName +"']");
}else
{return eval('document.all.' + objName);}
}

function SetBtn(preFix, idx){
for(var i=0;i<9;i++){
if(GetObj(preFix+"_btn_"+i)) GetObj(preFix+"_btn_"+i).className = "btn_off";
if(GetObj(preFix+"_con_"+i)) GetObj(preFix+"_con_"+i).style.display = "none";
}
GetObj(preFix+"_btn_"+idx).className = "btn_on";
GetObj(preFix+"_con_"+idx).style.display = "block";
}