/*pub-1|2012-08-15 14:57:32*/$("#add_fr").click(function(){var B=B||window.location.href;var A=A||document.title;try{window.external.addFavorite(B,A)}catch(C){try{window.sidebar.addPanel(A,B,"")}catch(C){alert("\u8bf7\u4f7f\u7528Ctrl+D\u6536\u85cf\u6211\u4eec")}}});var setHomePage=setHomepage=function(E,C){var A="http://www.tao123.com/help/?page=setHomePage";if(document.all){try{document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(C)}catch(D){try{E.style.behavior="url(#default#homepage)";E.setHomePage(C)}catch(D){window.open(A)}}}else{if(window.sidebar){try{var B=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);B.setCharPref("browser.startup.homepage",C);alert("\u8bbe\u7f6e\u6210\u529f")}catch(D){window.open(A)}}else{window.open(A)}}};$("#set_hp").click(function(A){setHomepage(A,window.location.href);return false});function LOG(F){var G="",E="",H=this;function J(M){var N=parseInt((new Date().getTime())*Math.random()),P="log"+N,O=window[P]=new Image();O.onload=(O.onerror=function(){window[P]=null});O.src=M+"&t="+N;O=null}function D(M){var M=$(M),N=M.offset();return[M.width()/2+N.left-E,N.top+M.height()/2].join(",")}function K(){var M=$(".h").length?$(".h"):$(".header");return M.length?M.offset().left:false}function B(){return !H.getMenuPage?(function(){return location.href.replace(/.*\/html\/(.*)\/.*/,"$1")})():H.getMenuPage()}function I(M){for(var N in M){H[N]=M[N]}}function C(M){var N=M.closest("a"),O=N.attr("l-r"),P=N.closest("[l]");N.length&&H.saveLog({name:O?O:N.text(),position:P.length?P.attr("l"):"",pos:M})}function A(){$("body").bind("click",function(N){var M=$(N.target);!H.filter?C(M):!H.filter.call(H,M)&&C(M)});$(window).resize(function(){E=K()})}function L(){F&&I(F);E=K();menupage=B();A()}this.saveLog=function(M){M.menupage=menupage;M.pos&&(M.pos=D(M.pos));J("http://www.atpanel.com/twz.2?"+$.param(M));typeof (H.formate)!="undefined"&&(M.name=M.menupage+"|"+M.position+"|"+M.name);J("http://krq.tao123.com/log.php?"+$.param(M))};L()};