//灞忚斀鍙抽敭鐩稿叧 var jsArgument = document.getElementsByTagName("script")[document.getElementsByTagName("script").length-1].src; //鑾峰彇浼犻€掔殑鍙傛暟 rightButton = jsArgument.substr(jsArgument.indexOf("rightButton=") + "rightButton=".length, 1); if (rightButton == "1") { document.oncontextmenu = function(e){return false;} document.onselectstart = function(e){return false;} if (navigator.userAgent.indexOf("Firefox") > 0) { document.writeln(""); } } // 鎵嬫満绔欒嚜鍔ㄨ烦杞 mobilejump = jsArgument.substr(jsArgument.indexOf("mobilejump=") + "mobilejump=".length, 1); if (mobilejump == "1"){ var url = window.location.href; var domain = "http://"+document.domain; if(url.slice(url.lastIndexOf("/")+1)=="index.php"){ url = url.slice(0,url.lastIndexOf("/")+1); } var isAndroid = navigator.appVersion.toLowerCase().indexOf("android") >= 0, isIphone = navigator.appVersion.toLowerCase().indexOf("iphone") >= 0; if (isAndroid || isIphone){ window.location.href = domain +"/m"; }; } //璁句负棣栭〉 function setHomePage() { if(document.all) { var obj = document.links(0); if (obj) { obj.style.behavior = 'url(#default#homepage)'; obj.setHomePage(window.location.href); } } else { if(window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { window.alert("姝ゆ搷浣滆娴忚鍣ㄦ嫆缁濓紝璇烽€氳繃娴忚鍣ㄨ彍鍗曞畬鎴愭鎿嶄綔锛?); } } } } //鍔犲叆鏀惰棌 function addFavorite() { var url = document.location.href; var title = document.title; if (document.all) { window.external.addFavorite(url,title); } else if (window.sidebar) { window.sidebar.addPanel(title, url,""); } } //宸﹀彸绛夐珮 function equalHeight(){ var a = $(".sidebar").height(); var b = $(".main").height(); if ( a >= b){ $(".main").height(a); } else if ( a <= b){ $(".sidebar").height(b); } } //绾靛悜鑿滃崟 function Nav(){ var mst; $(".nav li a").filter(".current").parent("li").addClass("cur").siblings().removeClass("cur"); $(".nav li").hover(function(){ var _this = $(this); $(this).find("a:eq(0)").addClass("current"); mst = setTimeout(function(){ _this.find(".subNav").slideDown(300); mst = null; },300) },function(){ if(mst!=null) {clearTimeout(mst)}; $(this).not(".cur").find("a:eq(0)").removeClass("current"); $(this).find(".subNav").slideUp(300); }) }