/*顶部菜单切换函数*/
function showImg(thisObj){
    var thisEvent = event.type;
	var thisSrc = thisObj.src;
	if (thisEvent == "mouseover"){
		var thisRe = "_";
		thisSrc = thisSrc.replace( thisRe, "2_" );
	}
	else{
		var thisRe = "2_";
		thisSrc = thisSrc.replace( thisRe, "_" );
	}
	thisObj.src = thisSrc;
	
}

function addMarket(thisUrl,thisName){
	window.external.addFavorite(thisUrl,thisName)
}

function addFav(c){c=c||document.getElementsByTagName("title")[0].innerHTML;if(document.all)window.external.AddFavorite(location.href,c);else if(window.sidebar)window.sidebar.addPanel(c,location.href,"");else if(window.opera&&window.print)return true}

function setHome(obj,url1){ //obj:this
 try{ 
  obj.style.behavior='url(#default#homepage)';obj.setHomePage(url1); 
 }catch(e){ 
  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); 
   } 
 } 
}
