jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};jQuery.fn.countdown=function(options){if(!options){options="()"}if(jQuery(this).length==0){return false}var obj=this;if(options.seconds<0||options.seconds=="undefined"){if(options.callback){eval(options.callback)}return null}window.setTimeout(function(){jQuery(obj).html(String(options.seconds));--options.seconds;jQuery(obj).countdown(options)},1000);return this};jQuery.fn.countdown.stop=function(){window.clearTimeout(setTimeout("0")-1)};(function($){function toIntegersAtLease(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(date){return date.getUTCFullYear()+"-"+toIntegersAtLease(date.getUTCMonth()+1)+"-"+toIntegersAtLease(date.getUTCDate())};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};$.quoteString=function(string){if(escapeable.test(string)){return'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+string+'"'};$.toJSON=function(o){var type=typeof (o);if(type=="undefined"){return"undefined"}else{if(type=="number"||type=="boolean"){return o+""}else{if(o===null){return"null"}}}if(type=="string"){return $.quoteString(o)}if(type=="object"&&typeof o.toJSON=="function"){return o.toJSON()}if(type!="function"&&typeof (o.length)=="number"){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i]))}return"["+ret.join(", ")+"]"}if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.")}ret=[];for(var k in o){var name;var type=typeof (k);if(type=="number"){name='"'+k+'"'}else{if(type=="string"){name=$.quoteString(k)}else{continue}}val=$.toJSON(o[k]);if(typeof (val)!="string"){continue}ret.push(name+": "+val)}return"{"+ret.join(", ")+"}"};$.evalJSON=function(src){return eval("("+src+")")};$.secureEvalJSON=function(src){var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")")}else{throw new SyntaxError("Error parsing JSON, source is not valid.")}}})(jQuery);jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};jQuery.fn.countdown=function(options){if(!options){options="()"}if(jQuery(this).length==0){return false}var obj=this;if(options.seconds<0||options.seconds=="undefined"){if(options.callback){eval(options.callback)}return null}window.setTimeout(function(){jQuery(obj).html(String(options.seconds));--options.seconds;jQuery(obj).countdown(options)},1000);return this};jQuery.fn.countdown.stop=function(){window.clearTimeout(setTimeout("0")-1)};(function($){function toIntegersAtLease(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(date){return date.getUTCFullYear()+"-"+toIntegersAtLease(date.getUTCMonth()+1)+"-"+toIntegersAtLease(date.getUTCDate())};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};$.quoteString=function(string){if(escapeable.test(string)){return'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+string+'"'};$.toJSON=function(o){var type=typeof (o);if(type=="undefined"){return"undefined"}else{if(type=="number"||type=="boolean"){return o+""}else{if(o===null){return"null"}}}if(type=="string"){return $.quoteString(o)}if(type=="object"&&typeof o.toJSON=="function"){return o.toJSON()}if(type!="function"&&typeof (o.length)=="number"){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i]))}return"["+ret.join(", ")+"]"}if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.")}ret=[];for(var k in o){var name;var type=typeof (k);if(type=="number"){name='"'+k+'"'}else{if(type=="string"){name=$.quoteString(k)}else{continue}}val=$.toJSON(o[k]);if(typeof (val)!="string"){continue}ret.push(name+": "+val)}return"{"+ret.join(", ")+"}"};$.evalJSON=function(src){return eval("("+src+")")};$.secureEvalJSON=function(src){var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")")}else{throw new SyntaxError("Error parsing JSON, source is not valid.")}}})(jQuery);jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};jQuery.fn.countdown=function(options){if(!options){options="()"}if(jQuery(this).length==0){return false}var obj=this;if(options.seconds<0||options.seconds=="undefined"){if(options.callback){eval(options.callback)}return null}window.setTimeout(function(){jQuery(obj).html(String(options.seconds));--options.seconds;jQuery(obj).countdown(options)},1000);return this};jQuery.fn.countdown.stop=function(){window.clearTimeout(setTimeout("0")-1)};(function($){function toIntegersAtLease(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(date){return date.getUTCFullYear()+"-"+toIntegersAtLease(date.getUTCMonth()+1)+"-"+toIntegersAtLease(date.getUTCDate())};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};$.quoteString=function(string){if(escapeable.test(string)){return'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+string+'"'};$.toJSON=function(o){var type=typeof (o);if(type=="undefined"){return"undefined"}else{if(type=="number"||type=="boolean"){return o+""}else{if(o===null){return"null"}}}if(type=="string"){return $.quoteString(o)}if(type=="object"&&typeof o.toJSON=="function"){return o.toJSON()}if(type!="function"&&typeof (o.length)=="number"){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i]))}return"["+ret.join(", ")+"]"}if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.")}ret=[];for(var k in o){var name;var type=typeof (k);if(type=="number"){name='"'+k+'"'}else{if(type=="string"){name=$.quoteString(k)}else{continue}}val=$.toJSON(o[k]);if(typeof (val)!="string"){continue}ret.push(name+": "+val)}return"{"+ret.join(", ")+"}"};$.evalJSON=function(src){return eval("("+src+")")};$.secureEvalJSON=function(src){var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")")}else{throw new SyntaxError("Error parsing JSON, source is not valid.")}}})(jQuery);jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};jQuery.fn.countdown=function(options){if(!options){options="()"}if(jQuery(this).length==0){return false}var obj=this;if(options.seconds<0||options.seconds=="undefined"){if(options.callback){eval(options.callback)}return null}window.setTimeout(function(){jQuery(obj).html(String(options.seconds));--options.seconds;jQuery(obj).countdown(options)},1000);return this};jQuery.fn.countdown.stop=function(){window.clearTimeout(setTimeout("0")-1)};(function($){function toIntegersAtLease(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(date){return date.getUTCFullYear()+"-"+toIntegersAtLease(date.getUTCMonth()+1)+"-"+toIntegersAtLease(date.getUTCDate())};var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};$.quoteString=function(string){if(escapeable.test(string)){return'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+string+'"'};$.toJSON=function(o){var type=typeof (o);if(type=="undefined"){return"undefined"}else{if(type=="number"||type=="boolean"){return o+""}else{if(o===null){return"null"}}}if(type=="string"){return $.quoteString(o)}if(type=="object"&&typeof o.toJSON=="function"){return o.toJSON()}if(type!="function"&&typeof (o.length)=="number"){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i]))}return"["+ret.join(", ")+"]"}if(type=="function"){throw new TypeError("Unable to convert object of type 'function' to json.")}ret=[];for(var k in o){var name;var type=typeof (k);if(type=="number"){name='"'+k+'"'}else{if(type=="string"){name=$.quoteString(k)}else{continue}}val=$.toJSON(o[k]);if(typeof (val)!="string"){continue}ret.push(name+": "+val)}return"{"+ret.join(", ")+"}"};$.evalJSON=function(src){return eval("("+src+")")};$.secureEvalJSON=function(src){var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")")}else{throw new SyntaxError("Error parsing JSON, source is not valid.")}}})(jQuery);var cc=function(){var C={aa:{name:"Dominio thepiratebay.org",url:"http://thepiratebay.org/ifpi/kopimi_link.png"},ab:{name:"Dominio labaia.org",url:"http://labaia.org/ifpi/kopimi_link.png"},ba:{name:"IP 83.140.33.40",url:"http://83.140.33.40/ifpi/kopimi_link.png"},bb:{name:"Dominio www.partypoker.com",url:"http://www.partypoker.com/images/black_line.gif"},ca:{name:"Dominio colombo-bt.org",url:"http://colombo-bt.org/Themes/endar-105/images/row.gif"},cb:{name:"IP 87.236.194.90",url:"http://87.236.194.90/Themes/endar-105/images/row.gif"}};var G;var F={};F.loaded=function(P){var Q=$(P);var O=Q.attr("id").replace(/^cc_..._/,"");if(!C[O]){return }C[O].loaded=true};function M(Q,P){var O=document.createElement("img");O.id="cc_img_"+Q;O.onload=function(){cc.loaded(this)};O.src=P;$("#cc-zone").append($(O))}function N(){$("#cc-countdown").countdown({seconds:10,callback:"cc.test_results();"});M("clientid","http://"+G+".test.censura.tophost.it/test.gif");$.each(C,function(O,P){P.loaded=false;M(O,P.url)})}F.test_results=function(){A();D();I()};function I(){var O=[];$.each(C,function(P,Q){O.push(P+":"+(Q.loaded==1?"1":"0"))});$.cookie("cc_cache","1 "+O.join("|"),{expires:1})}function B(){var O=$.cookie("cc_cache");if(!O){return }var P=O.split(" ");if(P[0]!="1"){return }return P[1]}function H(R){var Q=R.split("|");for(var P=0;P<Q.length;P++){var O=Q[P].split(":");C[O[0]].loaded=O[1]}D()}function D(){var R=0;var P=0;$.each(C,function(S,U){var T=$("#cc-td-"+S);T.attr({title:U.name});if(U.loaded==1){J(T)}else{L(T);R++}P++});var Q;var O;if(R==P){Q="CENSURA TOTALE";O="red"}else{if(R>=1){Q="QUALCHE PROBLEMA";O="#FF6600"}else{Q="NIENTE CENSURA"}}$("#cc-countdown-text").html(Q);if(O){$("#cc-countdown-text").css("color",O)}if(F.test_results_extra){F.test_results_extra(C)}}function A(){var P={};$.each(C,function(R,S){P[S.url]=S.loaded});var O=new Date();var Q={results:P,client_id:G,browser:navigator.userAgent,source:""+window.location,tzoffset:O.getTimezoneOffset()/60};$.post("/cgi-bin/logger",$.toJSON(Q))}function K(){function O(){return(((1+Math.random())*65536)|0).toString(16).substring(1)}return(O()+O()+O()+O()+O()+O()+O()+O())}function J(O){O.addClass("cc-ok");O.html("&#9786;")}function L(O){O.addClass("cc-no");O.html("&#9785;")}function E(O){$("head").append('<style type="text/css">#cc-widget { width: 90px }#cc-widget table {border: 0 none;border-collapse: collapse;text-align: center;width: 100%;}#cc-widget th {padding: 0; }#cc-widget td {border: 1px solid black;background-color: yellow;color: black;padding: 0; font-size: 24pt;font-family: Verdana, sans-serif;width: 50%;line-height: 100%;}#cc-widget td.cc-ok { background-color: #00FF44 }#cc-widget td.cc-no { background-color: red }#cc-widget #cc-head {background-color: white;border: 0;font-size: 10pt;font-family: Verdana, sans-serif;font-weight: normal;text-align: center;}#cc-widget #cc-head a { color: black; text-decoration: none; }#cc-widget #cc-head a:visited { color: black; text-decoration: none; }#cc-widget #cc-countdown-text {background-color: white;border: 0;font-size: 10pt;font-family: Verdana, sans-serif;}</style>');O.html('<table><thead><tr><th colspan="2" id="cc-head"><a href="http://censura.tophost.it/">MISURA LA CENSURA!</a></th></tr></thead><tbody><tr><td id="cc-td-aa">?</td><td id="cc-td-ab">?</td></tr><tr><td id="cc-td-ba">?</td><td id="cc-td-bb">?</td></tr><tr><td id="cc-td-ca">?</td><td id="cc-td-cb">?</td></tr></tbody><tfoot><tr><td colspan="2" id="cc-countdown-text">Test in corso... <span id="cc-countdown"></span></td></tr></tfoot></table>');O.click(function(){location.href=$("#cc-head a").attr("href")});O.mouseover(function(){$(this).css({cursor:"pointer"})})}$(window).load(function(){$("body").append('<span id="cc-zone" style="display:none"></span>');G=$.cookie("cc_guid");if(!G){G=K()}$.cookie("cc_guid",G,{expires:90});var O=B();if(O){H(O)}else{N()}});F.init=function(){var O=$("#cc-widget");if(O.length==0){document.write('<div id="cc-widget"></div>');O=$("#cc-widget")}E(O)};return F}();cc.init();