jQuery.easing={easein:function(a,b,c,d,e){return d*(b/=e)*b+c},easeinout:function(a,b,c,d,e){if(b<e/2)return 2*d*b*b/(e*e)+c;a=b-e/2;return-2*d*a*a/(e*e)+2*d*a/e+d/2+c},easeout:function(a,b,c,d,e){return-d*b*b/(e*e)+2*d*b/e+c},expoin:function(a,b,c,d,e){a=1;if(d<0){a*=-1;d*=-1}return a*Math.exp(Math.log(d)/e*b)+c},expoout:function(a,b,c,d,e){a=1;if(d<0){a*=-1;d*=-1}return a*(-Math.exp(-Math.log(d)/e*(b-e))+d+1)+c},expoinout:function(a,b,c,d,e){a=1;if(d<0){a*=-1;d*=-1}if(b<e/2)return a*Math.exp(Math.log(d/
2)/(e/2)*b)+c;return a*(-Math.exp(-2*Math.log(d/2)/e*(b-e))+d+1)+c},bouncein:function(a,b,c,d,e){return d-jQuery.easing.bounceout(a,e-b,0,d,e)+c},bounceout:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+0.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+0.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+0.984375)+c},bounceinout:function(a,b,c,d,e){if(b<e/2)return jQuery.easing.bouncein(a,b*2,0,d,e)*0.5+c;return jQuery.easing.bounceout(a,b*2-e,0,d,e)*0.5+d*0.5+c},elasin:function(a,
b,c,d,e){a=1.70158;var f=0,g=d;if(b==0)return c;if((b/=e)==1)return c+d;f||(f=e*0.3);if(g<Math.abs(d)){g=d;a=f/4}else a=f/(2*Math.PI)*Math.asin(d/g);return-(g*Math.pow(2,10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f))+c},elasout:function(a,b,c,d,e){a=1.70158;var f=0,g=d;if(b==0)return c;if((b/=e)==1)return c+d;f||(f=e*0.3);if(g<Math.abs(d)){g=d;a=f/4}else a=f/(2*Math.PI)*Math.asin(d/g);return g*Math.pow(2,-10*b)*Math.sin((b*e-a)*2*Math.PI/f)+d+c},elasinout:function(a,b,c,d,e){a=1.70158;var f=0,g=d;if(b==
0)return c;if((b/=e/2)==2)return c+d;f||(f=e*0.3*1.5);if(g<Math.abs(d)){g=d;a=f/4}else a=f/(2*Math.PI)*Math.asin(d/g);if(b<1)return-0.5*g*Math.pow(2,10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f)+c;return g*Math.pow(2,-10*(b-=1))*Math.sin((b*e-a)*2*Math.PI/f)*0.5+d+c},backin:function(a,b,c,d,e){return d*(b/=e)*b*(2.70158*b-1.70158)+c},backout:function(a,b,c,d,e){return d*((b=b/e-1)*b*(2.70158*b+1.70158)+1)+c},backinout:function(a,b,c,d,e){a=1.70158;if((b/=e/2)<1)return d/2*b*b*(((a*=1.525)+1)*b-a)+c;return d/
2*((b-=2)*b*(((a*=1.525)+1)*b+a)+2)+c},linear:function(a,b,c,d,e){return d*b/e+c}};(function(a){a.fn.lavaLamp=function(b){b=a.extend({fx:"linear",speed:500,click:function(){}},b||{});return this.each(function(){function c(h){g.css({left:h.offsetLeft+"px",width:h.offsetWidth+"px"});i=h}function d(h){g.each(function(){a(this).dequeue()}).animate({width:h.offsetWidth,left:h.offsetLeft},b.speed,b.fx)}var e=a(this),f=function(){},g=a('<li class="back"><div class="left"></div></li>').appendTo(e);e=a("li",this);var i=a("li.current",this)[0]||a(e[0]).addClass("current")[0];e.not(".back").hover(function(){d(this)},
f);a(this).hover(f,function(){d(i)});e.click(function(h){c(this);return b.click.apply(this,[h,this])});c(i)})}})(jQuery);(function(a){var b=[];a.fn.jdNewsScroll=function(c){c=a.extend({},arguments.callee.defaults,c);a(this).css({position:"relative",overflow:"hidden",width:c.divWidth,height:c.divHeight});a(this).find("ul").css({position:"relative","list-style-type":"none","font-size":c.fontSize,margin:"0px"});a(this).each(function(){this.$settings=c;this.$pause=false;this.$counter=c.beginTime;a(this).hover(function(){a(this).jdNewsScrollPause(true)},function(){a(this).jdNewsScrollPause(false)});b.push(this)});return this};
a.fn.jdNewsScroll.defaults={beginTime:10,fontSize:"9pt",divWidth:"100%",divHeight:"216px",lineHeight:"130%",delay:20,step:4};a.fn.jdNewsScrollPause=function(c){return this.each(function(){this.$pause=c})};a.fn.outerHeight=function(c){c=a.extend({margin:false},c||{});return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight+(c.margin?num(this,"marginTop")+num(this,"marginBottom"):0):this.height()+num(this,"borderTopWidth")+num(this,"borderBottomWidth")+num(this,
"paddingTop")+num(this,"paddingBottom")+(c.margin?num(this,"marginTop")+num(this,"marginBottom"):0)};setInterval(function(){for(var c=0;c<b.length;c++){var d=b[c];if(d&&!d.$pause)if(d.$counter==0){var e=a("> ul",d)[0];if(!d.$steps){d.$steps=a("> li:first-child",e).outerHeight();d.$step=0}if(d.$steps+d.$step<=0){d.$counter=d.$settings.delay;d.$steps=false;a(e).css("top","0").find("> li:last-child").after(a("> li:first-child",e));a("> *",e).not("li").remove()}else{d.$step-=d.$settings.step;if(-d.$step>
d.$steps)d.$step=-d.$steps;e.style.top=d.$step+"px"}}else d.$counter--}},80)})(jQuery);var Webapps={initElement:function(){this.navItem=$("#nav a");this.userNum=$("#user_number span");this.previewLink=$("#preview_link");this.scrollUl=$("#report .middle ul");this.element={};this.element.logo=$("#logo");this.element.favorite=$("#add_favorite");this.element.homepage=$("#set_homepage");this.element.sample=$("#sample_report");this.element.website=$("#website_opendoor");this.element.report=$("#website_report");this.element.website_guidance=$("#website_guidance");this.element.antivirus_online=
$("#antivirus_online");this.element.security_center=$("#security_center");this.element.avaward=$("#avaward");this.element.feedback=$("#feedback");this.element.forum=$("#forum");this.element.microblog=$("#microblog");this.element.preview_link=$("#preview_link");this.element.manual_download=$("#manual_download");this.element.manual_update=$("#manual_update");this.element.good=$("#good");this.element.bad=$("#bad");this.element.contact_qq=$("#contact_qq");this.element.more_question=$("#more_question");
this.element.question1=$(".question .content a:eq(0)");this.element.question2=$(".question .content a:eq(1)");this.element.question3=$(".question .content a:eq(2)");this.element.question4=$(".question .content a:eq(3)");var a=$(".version_num"),b=new Date,c=[];c.push(b.getFullYear());c.push(b.getMonth()+1);c.push(b.getDate()-1);b.getHours()>12?c.push(22):c.push(11);a.text(c.join("."))},initPageStatus:function(){this.guideBlockIsShow=false},initEvent:function(){this.navItem.mouseover(function(){$(this).addClass("selected")});
this.navItem.mouseout(function(){$(this).removeClass("selected")});this.previewLink.click(function(){var a=document.body.clientWidth,b=document.body.clientHeight;$("#mask_layer").css({width:a,height:b}).show();$("#preview").css({left:(Webapps.getViewWidth()-540)/2+"px",top:(Webapps.getViewHeight()-435)/2+"px"}).show()});$("#preview_close").click(function(){$("#mask_layer").hide();$("#preview").hide()});$("#adv_close").click(function(){$("#adv").slideUp(1E3)});$("#good").click(function(){if(Webapps.getCookie("vote"))alert("\u611f\u8c22\u60a8\u7684\u53c2\u4e0e\uff0c\u60a8\u5df2\u7ecf\u6295\u8fc7\u7968\u4e86\uff01");
else{var a="/comm/questionnaire/?id=2&o=1&v="+Math.random();try{$.getJSON(a,function(c){if(c&&c.success){Webapps.setCookie("vote","true",0);Webapps.getResearchData(1)}})}catch(b){}}});$("#bad").click(function(){if(Webapps.getCookie("vote"))alert("\u611f\u8c22\u60a8\u7684\u53c2\u4e0e\uff0c\u60a8\u5df2\u7ecf\u6295\u8fc7\u7968\u4e86\uff01");else{var a="/comm/questionnaire/?id=2&o=2&v="+Math.random();try{$.getJSON(a,function(c){if(c&&c.success){Webapps.setCookie("vote","true",0);Webapps.getResearchData(2)}})}catch(b){}}});
if(Webapps.getCookie("vote")){$(".select_item .good").addClass("good_forbide");$(".select_item .bad").addClass("bad_forbide")}this.element.logo.click(function(){_gaq.push(["_trackEvent","logo","click","\u70b9\u51fblogo"])});this.element.favorite.click(function(){_gaq.push(["_trackEvent","tool","click","\u70b9\u51fb\u6536\u85cf\u5939"])});this.element.homepage.click(function(){_gaq.push(["_trackEvent","tool","click","\u8bbe\u4e3a\u9996\u9875"])});this.element.sample.click(function(){_gaq.push(["_trackEvent",
"tool","click","\u6837\u672c\u4e0a\u62a5"])});this.element.website.click(function(){_gaq.push(["_trackEvent","tool","click","\u7f51\u5740\u7533\u8ff0"])});this.element.report.click(function(){_gaq.push(["_trackEvent","tool","click","\u7f51\u5740\u4e3e\u62a5"])});this.element.website_guidance.click(function(){_gaq.push(["_trackEvent","tool","click","\u5b89\u5168\u7f51\u5740\u5bfc\u822a"])});this.element.antivirus_online.click(function(){_gaq.push(["_trackEvent","navigation","click","\u5728\u7ebf\u6740\u6bd2"])});
this.element.security_center.click(function(){_gaq.push(["_trackEvent","navigation","click","\u4e91\u5b89\u5168\u4e2d\u5fc3"])});this.element.avaward.click(function(){_gaq.push(["_trackEvent","navigation","click","\u56fd\u9645\u8ba4\u8bc1"])});this.element.feedback.click(function(){_gaq.push(["_trackEvent","navigation","click","\u95ee\u9898\u53cd\u9988"])});this.element.forum.click(function(){_gaq.push(["_trackEvent","navigation","click","\u8bba\u575b"])});this.element.microblog.click(function(){_gaq.push(["_trackEvent",
"navigation","click","pc120\u5fae\u535a"])});this.element.preview_link.click(function(){_gaq.push(["_trackEvent","show","click","\u9884\u89c8\u754c\u9762"])});this.element.manual_download.click(function(){_gaq.push(["_trackEvent","download","click","\u6ca1\u6709\u5f39\u9ec4\u6761\uff0c\u4e0b\u8f7d\u5168\u5305"])});this.element.manual_update.click(function(){_gaq.push(["_trackEvent","download","click","\u65e0\u6cd5\u66f4\u65b0\uff1f\u70b9\u6b64\u4fee\u590d"])});this.element.good.click(function(){_gaq.push(["_trackEvent",
"research","click","\u8c03\u7814\u2014\u597d"])});this.element.bad.click(function(){_gaq.push(["_trackEvent","research","click","\u8c03\u7814\u2014\u4e0d\u597d"])});this.element.contact_qq.click(function(){_gaq.push(["_trackEvent","contact_qq","click","\u7591\u96be\u89e3\u7b54"])});this.element.more_question.click(function(){_gaq.push(["_trackEvent","question","click","\u5e38\u89c1\u95ee\u9898\u66f4\u591a"])});this.element.question1.click(function(){_gaq.push(["_trackEvent","question","click","\u5e38\u89c1\u95ee\u98981"])});
this.element.question2.click(function(){_gaq.push(["_trackEvent","question","click","\u5e38\u89c1\u95ee\u98982"])});this.element.question3.click(function(){_gaq.push(["_trackEvent","question","click","\u5e38\u89c1\u95ee\u98983"])});this.element.question4.click(function(){_gaq.push(["_trackEvent","question","click","\u5e38\u89c1\u95ee\u98984"])});$(".member_adv img:eq(0)").click(function(){_gaq.push(["_trackEvent","adv","click","\u6570\u636e\u6062\u590d"])});$(".member_adv img:eq(1)").click(function(){_gaq.push(["_trackEvent",
"adv","click","\u7167\u7247\u6062\u590d"])});$("#add_favorite").click(this.addFavorite);$("#set_homepage").click(this.setHomePage);this.navigEffect();this.scrollInfo()},getUserNum:function(){try{$.getJSON("/site_media/dubadisease/usercount.json",function(b){b=b instanceof Array?b.pop():0;b=String(b);var c;for(c=0;c<b.length;c++){Webapps.userNum.eq(c).removeAttr("class");switch(parseInt(b.charAt(c))){case 0:Webapps.userNum.eq(c).addClass("zero");break;case 1:Webapps.userNum.eq(c).addClass("one");break;
case 2:Webapps.userNum.eq(c).addClass("two");break;case 3:Webapps.userNum.eq(c).addClass("three");break;case 4:Webapps.userNum.eq(c).addClass("four");break;case 5:Webapps.userNum.eq(c).addClass("five");break;case 6:Webapps.userNum.eq(c).addClass("sixth");break;case 7:Webapps.userNum.eq(c).addClass("seven");break;case 8:Webapps.userNum.eq(c).addClass("eight");break;case 9:Webapps.userNum.eq(c).addClass("nine")}}})}catch(a){}},navigEffect:function(){$("#nav ul").lavaLamp({fx:"backout",speed:700,click:function(){}})},
getScrollData:function(){var a,b,c;try{$.getJSON("/site_media/dubadisease/latest.json",function(f){if(f&&f.data&&f.data.length>=6){c=f.data;Webapps.scrollUl.find("li").remove();for(a=0;a<c.length;a++){b=$("<li><span class='time'>2011-14-31 15:14:55</span><br/> \u5df2\u4e3a IP\uff1a<span class='ip'>111.126.14.*</span><br> \uff08<span class='address'>\u6b27\u6d32  CZ88.NET</span>\uff09\u7528\u6237\u6210\u529f\u67e5\u6740<br><span class='name'>Win32.Malware.Heur_G</span> \u75c5\u6bd2</li>");b.find(".time").html(c[a].time);
b.find(".ip").html(c[a].ip);b.find(".address").html(Webapps.subStringByBytes(c[a].address,10));b.find(".name").html(Webapps.subStringByBytes(c[a].name,24));Webapps.scrollUl.append(b)}}})}catch(d){var e=new Date;Webapps.scrollUl.find(".time").text(e.getMonth()+1+"/"+e.getDate()+" "+e.getHours()+":"+e.getMinutes())}},scrollInfo:function(){$("#report .middle").jdNewsScroll({divWidth:"215px",divHeight:"310px",fontSize:"12px"})},getViewHeight:function(){var a=window.innerHeight;if(typeof a!="number")a=
document.compatMode=="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight;return a},getViewWidth:function(){var a=window.innerWidth;if(typeof a!="number")a=document.compatMode=="CSS1Compat"?document.documentElement.clientWidth:document.body.clientWidth;return a},guideShow:function(){var a=Webapps.checkInstall();if(Webapps.isIE())if(a){$("#uninstalled").hide();$("#adv").hide();$("#installed").show()}else{if(!this.guideBlockIsShow){$("#adv").show();$("#uninstalled").show();
$("#installed").hide();this.guideBlockIsShow=true}setTimeout(Webapps.guideShow,200)}},getResearchData:function(a){var b="/comm/get_questionnaire/?id=2&v="+Math.random();try{$.getJSON(b,function(d){if(d)if(a)if(1===a)Webapps.updateResearchNum(a,d.option1);else 2===a&&Webapps.updateResearchNum(a,d.option2);else{$("#good_num").text(d.option1);$("#bad_num").text(d.option2)}})}catch(c){}},updateResearchNum:function(a,b){var c=function(){$(".select_item .good").addClass("good_forbide");$(".select_item .bad").addClass("bad_forbide")};
if(1===a){$("#good_num").text(b);$("#good_effects").text(b).animate({"font-size":"48px"},150).animate({"font-size":"18px"},150,c)}else{$("#bad_num").text(b);$("#bad_effects").text(b).animate({"font-size":"48px"},150).animate({"font-size":"18px"},150,c)}},checkInstall:function(){var a=0;try{a=Webapps._InitKXmlHttpRequest_().servicePort}catch(b){}return 0===a?false:true},_InitKXmlHttpRequest_:function(){return new ActiveXObject("Kxmlhttp.KxEXMLHttpRequest_0.1")},byteLength:function(a){return a.replace(/[^\x00-\xff]/g,
"**").length},subStringByBytes:function(a,b){for(var c=b,d=a.slice(0,c);Webapps.byteLength(d)>b;)d=d.slice(0,--c);return d},isIE:function(){return navigator.appName.indexOf("Microsoft Internet Explorer")!=-1&&document.all},addFavorite:function(){try{window.external.addFavorite("http://www.pc120.com/","\u91d1\u5c71\u5b89\u5168\u4e2d\u5fc3")}catch(a){try{window.sidebar.addPanel("\u91d1\u5c71\u5b89\u5168\u4e2d\u5fc3","http://www.pc120.com/","")}catch(b){alert("\u52a0\u5165\u6536\u85cf\u5931\u8d25\uff0c\u8bf7\u4f7f\u7528Ctrl+D\u8fdb\u884c\u6dfb\u52a0")}}},
setHomePage:function(){try{document.body.style.behavior="url(#default#homepage)";document.body.setHomePage("http://www.pc120.com/")}catch(a){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(b){alert("\u6b64\u64cd\u4f5c\u88ab\u6d4f\u89c8\u5668\u62d2\u7edd\uff01\n\u8bf7\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165\u201cabout:config\u201d\u5e76\u56de\u8f66\n\u7136\u540e\u5c06 [signed.applets.codebase_principal_support]\u7684\u503c\u8bbe\u7f6e\u4e3a'true',\u53cc\u51fb\u5373\u53ef\u3002")}Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch).setCharPref("browser.startup.homepage",
"http://www.pc120.com/")}}},setCookie:function(a,b,c,d,e){a=a+"="+escape(b);if(c!=null||c!=""){if(c==0)c=5256E4;b=new Date;b.setTime(b.getTime()+c*6E4);a+="; expires="+b.toGMTString()}if(d){a+="; path=";a+=d}if(e){a+="; domain=";a+=e}document.cookie=a},getCookie:function(a){if(a=RegExp("(^| )"+a+"=([^;]*)(;|$)","gi").exec(unescape(document.cookie)))return a[2];return null}};
$(function(){Webapps.initElement();Webapps.initEvent();Webapps.initPageStatus();Webapps.getUserNum();Webapps.getScrollData();Webapps.getResearchData();Webapps.guideShow()});

