(function() {var old_hash='';function track(){if(location.hash != '' && location.hash != old_hash){old_hash=location.hash;percent_mobile_track(old_hash.replace('#',''));}}setInterval(track, 500);})();
function percent_mobile_track(url){ function get_c(c_name){if (document.cookie.length>0){c_start=document.cookie.indexOf(c_name + "=");if (c_start!=-1){c_start=c_start + c_name.length+1;c_end=document.cookie.indexOf(";",c_start); return document.cookie.substring(c_start,(c_end==-1)?document.cookie.length:c_end);}}return "";}; function get_rand(){for(var r=""+Math.floor(Math.random()*(new Date().getTime()));r.length<15;r+=Math.floor(Math.random()*(new Date().getTime()))){}return r.substring(0,15)+"1";}var _c="_percent_mobile_c";var _c_path="/";var _d=60*60*1000;var _v="260610_js_hash"; if(typeof(url)=='undefined'){url=window.location.href;}var p="http";if ( window.location.href.indexOf('s:/')>-1){p+="s";} var a=new Array(get_rand(),"",get_rand()); var c=get_c(_c);if(c!=""){var a=c.split('_');a[0]=a[0].substring(0,a[0].length-1)+"0"; if (new Date().getTime()<parseInt(a[1])){a[2]=a[2].substring(0,a[2].length-1)+"0";}else{a[2]=get_rand();}} document.cookie=_c+'='+a[0]+"_"+(new Date().getTime()+_d)+"_"+a[2]+";expires="+new Date(new Date().getTime()+(60*60*24*365*1000)).toGMTString()+';path='+_c_path; var m="";if (navigator.userAgent.indexOf('(iPhone;')!=-1){var s=document.createElement('style');var d=document.createElement('div');d.id="pm_IS_"+percent_mobile_track_id; s.innerText='@media (-webkit-min-device-pixel-ratio:2) {#'+d.id+'{display:none !important;}}';document.documentElement.appendChild(s).appendChild(d); var r=getComputedStyle(d,null).getPropertyValue('display')=='none';s.parentNode.removeChild(s);d.parentNode.removeChild(d); if(r){m="&m=4";}else{r=new Date().getTime();for(var s=0;new Date().getTime()-r<20;s++){Math.random();}m = "&m="+((s>1000)?"3":"2");}} new Image().src=p+"://tracking.percentmobile.com/pixel/"+percent_mobile_track_id+"/"+Math.floor(Math.random()*(new Date().getTime()))+".gif?v="+_v+"&us="+a[0]+"&vi="+a[2]+"&url="+escape(url)+"&referer="+escape(document.referrer) + m; }
