function OverBg(o,p){  //鼠标经过变化样式	
	o.className=p;
} 







function dcla(q,j){  
document.getElementById(q).className=j;
}

function Hr(h)    
{     //点击跳转  
	window.location.href=h; 
}  




function addCookie(){　 // 加入收藏夹  
    if (document.all){   
        window.external.addFavorite(window.location.href, document.title);   
    }else if (window.sidebar){   
        window.sidebar.addPanel(document.title, window.location.href, "");   
    }   
}   
  
function setHomepage(){　 // 设为首页  
    if (document.all){   
        document.body.style.behavior = 'url(#default#homepage)';   
        document.body.setHomePage(window.location.href);   
    }else if (window.sidebar){   
        if (window.netscape){   
            try {   
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");   
            }catch (e) {   
                alert("該操作被瀏覽器拒絕，如果想啟用該功能，請在地址欄內輸入 about:config,然後將項 signed.applets.codebase_principal_support 值該為true");   
            }   
        }   
        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);   
        prefs.setCharPref('browser.startup.homepage', window.location.href);   
    }   
} 











function selectTag(showContent,selfObj,sbg){
  
//onClick="selectTag('tagContent1',this,3)"  3为最后一个id		

for (var i=0;i<=sbg;i++)
{
document.getElementById("s"+i).className='';
}	
    /*  document.getElementById('s0').className='';
	  document.getElementById('s1').className='';
	  document.getElementById('s2').className='';
	  document.getElementById('s3').className='';*/
    selfObj.className='lbg2';

	for(i=0; j=document.getElementById("tagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
	
}








