document.write('<div id="ajaxTip">加载中...<\/div>');

/*ajax loading*/
$("#ajaxTip").bind("ajaxSend", function(){
	$(this).show();
 }).bind("ajaxComplete", function(){
	$(this).fadeOut();
});

$(function(){
    $("#close").click(function () {
        $(this).parent().remove();
    })
})

jQuery.addFavorite = function (sURL, sTitle) {
    try {
        window.external.addFavorite(sURL, sTitle);
    } catch (e) {
        try {
            window.sidebar.addPanel(sTitle, sURL, "");
        } catch (e) {
            alert("加入收藏失败，请使用Ctrl+D进行添加");
        }
    }
}

//下拉
//$("#chn").bind("mouseover", function () {
//    $("#chn").addClass("downlist hover");
//});
//$("#chnct").bind("mouseout", function () {
//    $("#chn").removeClass("downlist hover");
//    $("#chn").addClass("downlist");
//});

