function numDeclension(num) { return (num == 1) ? ("day") : ("" + num + " days"); } function setLocalContent(args) { if(args.length < 1) return; var reason = args[0]; var text = ""; if(reason == "loading") text = " Loading..."; else if(reason == "wmuf") { text = "This URL is classified as suspicious"; changeDMeter("dm_3.gif"); } else if(reason == "aphish") { text = "This URL is classified as phishing"; changeDMeter("dm_3.gif"); } else if(reason == "online"){ if(args[1] == 255) text = "No information available"; else { if(args[12] == -1 && args [13] != undefined && args [14] != undefined) text = "From " + args [13] + " to " + args [14] + " at this address there were detected:"; else if(args [12] >= 0) text = "During the last " + numDeclension(args[12]) + " at this address there were detected:"; text = text + "

"; if( args[5] > 0 ) text = text + "
URLs to suspicious hosts: | " + args[5] + "
"; if( args[6] > 0 ) text = text + "
Malware download attempts: | " + args[6] + "
"; if( args[7] > 0 ) text = text + "
Riskware download attempts: | " + args[7] + "
"; if( args[8] > 0 ) text = text + "
Files containing malware: | " + args[8] + "
" if( args[9] > 0 ) text = text + "
Files containing riskware: | " + args[9] + "
"; text = text + "

"; } var DangStart = 75; if( args [16] > 0 ) DangStart = args [16]; var step = (100 - DangStart) / 3 | 0; if(args [1] >= DangStart && args [1] < DangStart + step) changeDMeter("dm_1.gif"); else if(args [1] >= DangStart+step && args [1] < 100 - step) changeDMeter("dm_2.gif"); else if(args [1] >= 100-step && args [1] <= 100) changeDMeter("dm_3.gif"); } return text; }