function getQueryUrl(a){for(hu=window.location.search.substring(1),gy=hu.split("&"),i=0;i<gy.length;i++)if(ft=gy[i].split("="),ft[0]==a)return decodeURIComponent(ft[1]);return null}function trim(a){return a.replace(/^\s*|\s*$|\n|\r/g,"")}function encode64(a){var b,c,d,e,f,g="",h="",i="",j=0;do b=a.charCodeAt(j++),c=a.charCodeAt(j++),h=a.charCodeAt(j++),d=b>>2,e=(3&b)<<4|c>>4,f=(15&c)<<2|h>>6,i=63&h,isNaN(c)?f=i=64:isNaN(h)&&(i=64),g=g+keyStr.charAt(d)+keyStr.charAt(e)+keyStr.charAt(f)+keyStr.charAt(i),b=c=h="",d=e=f=i="";while(j<a.length);return g}function trackEngage(){var a=document.createElement("img");a.src=hidLocation.value+"adeng.php?rnd="+Math.random(),a.setAttribute("style","display:none"),hidLocation.parentNode.appendChild(a)}function checkdirect(a,b,c){"undefined"!=typeof clpaddesktimer&&null!=clpaddesktimer&&clearTimeout(clpaddesktimer),"undefined"!=typeof clpmvlcalltimer&&null!=clpmvlcalltimer&&clearTimeout(clpmvlcalltimer),void 0===c&&(c="");var d="undefined"!=typeof clpconfig&&"object"==typeof clpconfig&&null!=clpconfig.clcsr&&1==clpconfig.clcsr?"&clpreslw="+screen.width+"&clpreslh="+screen.height+"&clpreslr="+(window.devicePixelRatio?window.devicePixelRatio:1):"",e=document.getElementById("clpmvlvarshid"),f=null!=e&&""!=e.value?"&"+e.value:"",g=document.createElement("img");g.src=hidLocation.value+"adck.php?c="+a+"&l="+b+"&id="+c+"&"+window.location.search.substring(1)+f+d+"&r="+encode64(trim(document.referrer))+"&rnd="+Math.random(),g.setAttribute("style","display:none"),hidLocation.parentNode.appendChild(g)}function desktopDetails(){var a=document.createElement("img");a.src=hidLocation.value+"addesk.php?w="+screen.width+"&h="+screen.height+"&rnd="+Math.random(),a.setAttribute("style","display:none"),hidLocation.parentNode.appendChild(a)}function resetCookie(a){void 0===a&&(a=1);var b=document.createElement("img");b.src=hidLocation.value+"resetcookie.php?l="+a+"&t=image&rnd="+Math.random(),b.setAttribute("style","display:none"),hidLocation.parentNode.appendChild(b)}function fbCapiTrack(a){void 0==a&&(a=2e3),fbtracktimer=setInterval(function(){var a=get_cookie("_fbc"),b=get_cookie("_fbp");if(""!=a||""!=b){var c=document.createElement("img");c.src=hidLocation.value+"tokens-fb.php?fbc="+a+"&fbp="+b+"&rnd="+Math.random(),c.setAttribute("style","display:none"),hidLocation.parentNode.appendChild(c),clearInterval(fbtracktimer)}fbtracktimerCount++,fbtracktimerCount>10&&clearInterval(fbtracktimer)},a)}function appendParamToLink(a,b,c){var d=document.getElementById(c);if(null!=a&&null!=d){var e=-1==a.href.indexOf("?")?"?":"&";a.href+=e+b+"="+d.value}return!0}function appendParamToLinkID(a,b,c){var d=document.getElementById(a);return null!=d&&appendParamToLink(d,b,c),!0}function get_cookie(a){var b=document.cookie.match(new RegExp("(?:^|; )"+a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return b?decodeURIComponent(b[1]):""}var queryEngSec=getQueryUrl("engsec"),queryCaptureResolution=getQueryUrl("clcsr"),clpaddesktimer=null,fbtracktimer=null,fbtracktimerCount=0;if("undefined"!=typeof clpconfig&&"object"==typeof clpconfig&&null!==clpconfig&&((null==queryEngSec||"0"==queryEngSec||isNaN(queryEngSec))&&(queryEngSec=null!=clpconfig.engsec?clpconfig.engsec:"0"),null==queryCaptureResolution))var queryCaptureResolution=null!=clpconfig.clcsr?clpconfig.clcsr:0;var hidLocation=document.getElementById("hidLocation");null==queryEngSec||"0"==queryEngSec||isNaN(queryEngSec)||null==hidLocation||""==hidLocation.value||setTimeout("trackEngage()",1e3*queryEngSec),null!=queryCaptureResolution&&"1"==queryCaptureResolution&&null!=hidLocation&&""!=hidLocation.value&&(clpaddesktimer=setTimeout(desktopDetails,1e3));var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";