/**
功能：加入收藏夹
parma sURL window.location
parma sTitle document.title
*/
function AddFavorite(sURL, sTitle)
{
   try
   {
       window.external.addFavorite(sURL, sTitle);
   }
   catch (e)
   {
       try
       {
           window.sidebar.addPanel(sTitle, sURL, "");
       }
       catch (e)
       {
           alert("加入收藏失败，请使用Ctrl+D进行添加");
       }
   }
}

/**
功能：设为首页
parma obj this
parma vrl window.location
*/
function SetHome(obj,vrl){
        try{
                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
        }
        catch(e){
                if(window.netscape) {
                        try {
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        }
                        catch (e) {
                                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");
                        }
                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref('browser.startup.homepage',vrl);
                 }
        }
}

/**
功能：得到当前日期 
parma 无
*/
function showDate()

{

	var JF_date = new Date();

	var weekArray = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日");

	

	var currentYear = JF_date.getYear();

	var currentMonth = JF_date.getMonth()+1;

	var currentDay = JF_date.getDate();

	var currentWeek = JF_date.getDay();

	

	var theTime = currentYear+"年"+currentMonth+"月"+currentDay+"日"+"&nbsp;&nbsp;"+weekArray[currentWeek];

	document.write(theTime);

}



/**
功能：生成flash 
parma obj swf文件路径
parma width swf宽度
parma height swf高度
*/
function flash_obj(obj,width,height) { 
	htmlstr="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+width+"\" height=\""+height+"\">";
	htmlstr+="<param name=\"movie\" value=\""+obj+"\">";
	htmlstr+="<param name=\"quality\" value=\"high\">";
	htmlstr+="<param name=\"wmode\" value=\"transparent\">";
	htmlstr+="<param name=\"menu\" value=\"false\">";
	htmlstr+="<embed src=\""+obj+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"></embed>";
	htmlstr+="</object>";
    document.write(htmlstr);
}


$(function(){
	

	$("#no2 .title > strong").each(function(e){
		$(this).mouseover(function(){
			$(this).addClass('curr').siblings().removeClass('curr');
			$("#no2 .note:visible").hide();
			$("#no2 .note:eq("+e+")").show();
		});										  
	});
	$("#no3 .title > strong").each(function(e){
		$(this).mouseover(function(){
			$(this).addClass('curr').siblings().removeClass('curr');
			$("#no3 .note:visible").hide();
			$("#no3 .note:eq("+e+")").show();
		});										  
	});

})
$(function(){
	$("#KinSlideshow").KinSlideshow();
})

