document.write('<link href="/css/thickbox.css" rel="stylesheet" type="text/css" />');
document.write('<link rel="stylesheet" type="text/css" href="/js/superfish/css/site-superfish.css" media="screen">');
document.write('<link rel="stylesheet" type="text/css" href="/js/qq_service/css.css" media="screen">');
document.write('<script type="text/javascript" src="/js/jquery-ui.js"></script>');
document.write('<script type="text/javascript" src="/js/jquery.loading.js"></script>');
document.write('<script type="text/javascript" src="/js/ext-functions.js"></script>');
document.write('<script language="JavaScript" type="text/javascript" src="/js/thickbox.js"></script>');
document.write('<script type="text/javascript" src="/js/superfish/js/hoverIntent.js"></script>');
document.write('<script type="text/javascript" src="/js/superfish/js/superfish.js"></script>');
$(function(){
	$("#wh_menu > ul").superfish();
	$(document).ajaxStart(function(){
		$.loading({align:"top-center",text: '正在数据处理，请稍后……' ,mask:true,delay:50,max:100000});
	}).ajaxComplete(function(){
		$.loading(false);
	}); 
});

function setHomepage(){
	if (document.all){
    document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage('http://www.smileair.com');
  }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', 'http://www.smileair.com');
	}
}

function addToFavorite()
{
    if (document.all){
       window.external.addFavorite('http://www.smileair.com', '世迈航空');
    }else if (window.sidebar){
       window.sidebar.addPanel('世迈航空', 'http://www.smileair.com', "");
    }
}
