function pl_mtp_vary(){this.array_contains_key=function(c,a){for(var b in c){if(b==a){return true}}return false}}pl_mtp_vary_instance=new pl_mtp_vary();function pl_mtp_ads(c,b){this.files=new Array();this.cookieName=c;this.cookieManager=new pl_mtp_cookies();this.adsRedisplayTime=b;if(b=="undefined"){this.adsRedisplayTime=60*60*24}this.deserialize=function(d,f){var g=/([^\!]+)=([^\!]+)/;if(d!=null){while(d.match(g)){var e=g.exec(d);f[e[1]]=e[2];d=d.replace(g,"")}}};this.serialize=function(e){var f="";for(var d in e){f+=d+"="+e[d]+"!"}return f};this.shouldDisplay=function(e){var d=new Date();if(pl_mtp_vary_instance.array_contains_key(this.files,e)){var f=this.files[e];if(d.getTime()/1000-f<this.adsRedisplayTime){return false}else{this.files[e]=d.getTime()/1000;return true}}this.files[e]=d.getTime()/1000;return true};this.save=function(){this.cookieManager.createCookie(this.cookieName,this.serialize(this.files),24*60*60)};var a=this.cookieManager.readCookie(this.cookieName);if(a!=null){files=this.deserialize(a,this.files)}}function pl_mtp_cookies(){this.createCookie=function(b,e,c){var d="";var a=new Date();a.setTime(a.getTime()+c*1000);d="; expires="+a.toGMTString();document.cookie=b+"="+e+d+"; path=/"};this.readCookie=function(b){var f=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var e=a[d];while(e.charAt(0)==" "){e=e.substring(1,e.length)}if(e.indexOf(f)==0){return e.substring(f.length,e.length)}}return null}};
