var ct=0;
$(document).ready(function() {
 
	
    $("#menu2 li").mouseover(function(){
		 //var vname=($(this)).attr("class");
		 $(this).addClass("onmenu");
	});	

    $("#menu2 li").mouseout(function(){
		 //var vname=($(this)).attr("class");
		 $(this).removeClass("onmenu")
	});	



	$("#addfav").click(function() {
        if(jQuery.browser.msie){
        window.external.addFavorite("http://"+location.hostname,document.getElementsByTagName("title")[0].innerText); 
        }else if (document.all){ 
          window.external.addFavorite("http://"+location.hostname,document.getElementsByTagName("title")[0].innerText); 
          }else if (window.sidebar){ 
        // window.sidebar.addPanel(document.getElementsByTagName("title")[0].innerText,"http://"+location.hostname, ""); 
        }else { 
          // alert('您可以尝试通过快捷键' + ctrl + ' + D 加入到收藏夹~'); 
	    }
	});


	$("#sethomepage").click(function() {
	this.style.behavior="url(#default#homepage)";
	this.setHomePage("http://"+location.hostname);
	});	





	
});




function insertFlash(elm, url, w, h) {
if (!document.getElementById(elm)) return;
var str = '';
str += '<object width="'+ w +'" height="'+ h +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">';
str += '<param name="movie" value="'+ url +'">';
str += '<param name="wmode" value="transparent">';
str += '<param name="quality" value="high">';
str += '<param name="menu" value="false">';
str += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="transparent" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
str += '</object>';
document.getElementById(elm).innerHTML = str;
}




<!--
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
 var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
  windowProperties+='toolbar=yes,'; if(loc==false) windowProperties+='location=no,'; 
 else windowProperties+='location=yes,'; if(sts==false) windowProperties+='status=no,';
 else windowProperties+='status=yes,'; if(menu==false) windowProperties+='menubar=no,';
 else windowProperties+='menubar=yes,'; if(scroll==false) windowProperties+='scrollbars=no,';
 else windowProperties+='scrollbars=yes,'; if(resize==false) windowProperties+='resizable=no,';
 else windowProperties+='resizable=yes,'; if(w!="") windowProperties+='width='+w+',';
 if(h!="") windowProperties+='height='+h; if(windowProperties!="") { 
  if( windowProperties.charAt(windowProperties.length-1)==',') 
   windowProperties=windowProperties.substring(0,windowProperties.length-1); } 
 window.open(url,name,windowProperties);
}

function OpWin(UrlStr){
FP_openNewWindow('', '', false, false, false, false, true, true, 'Flash', /*href*/''+UrlStr)
}

// -->




