AS_CP_VIEW=1;AS_CP_CLICK=2;AS_CP_ACTION=4;AS_CP_SINGLEEVENT=22;AS_CP_ALL=AS_CP_CLICK|AS_CP_VIEW|AS_CP_ACTION;AS_UP_DEF={bsnssfnnc:"aa",crrr:"ab",dnng:"ac",dnng2:"ad",dnng3:"ae",dnng4:"af",dnng5:"ag",glss:"ah",hlth:"ai",imaa1:"aj",imap1:"ak",imbou01:"al",imcp1:"am",imeac01:"an",imeag01:"ao",imear01:"ap",imebi01:"aq",imech01:"ar",imede01:"as",imede02:"at",imedi01:"au",imega01:"av",imegd01:"aw",imegs01:"ax",imeiw1:"ay",imekd01:"az",imekd02:"aA",imekd03:"aB",imekv1:"aC",imekv2:"aD",imekv3:"aE",imekv4:"aF",imekv5:"aG",imekv6:"aH",imekw1:"aI",imekw2:"aJ",imelg01:"aK",imeli02:"aL",imeli4:"aM",imelo01:"aN",imelo02:"aO",imelo03:"aP",imemc01:"aQ",imenu01:"aR",imenu02:"aS",imeou01:"aT",imepo01:"aU",imepr1:"aV",imepr2:"aW",imepr3:"aG",imerb01:"aH",imere02:"aI",imerm01:"aJ",imerm02:"aK",imesc01:"aL",imesh01:"aM",imeso01:"aN",imeso02:"aO",imest01:"aP",imete01:"aQ",imetg01:"aR",imeun01:"aS",imeun02:"aT",imeun03:"aU",imeun04:"aV",imeun05:"aW",imeup1:"aX",imevb01:"aY",imevo01:"aZ",imevw01:"a0",imewe01:"a1",imewk01:"a2",imewo01:"a3",imeya01:"a4",imhak1:"a5",imins01:"a6",imisr01:"a7",imize01:"a8",immc01:"a9",imoh1:"ba",imph1:"bb",imps1:"bc",imrk1:"bd",imtm1:"be",imtst1:"bf",imtst2:"bg",imtst3:"bh",imtst4:"bi",imtst5:"bj",imvb1:"bk",imvd1:"bl",imzg1:"bm",imzg2:"bn",jgevr01:"bo",kkdc1:"bp",kkds1:"bq",kkess01:"br",kkgs1:"bs",kklc1:"bt",kklt1:"bu",kndrn:"bv",meid1:"bw",meid2:"bx",meid3:"by",meid4:"bz",meid5:"bA",mekd4:"bB",memt1:"bC",meun5:"bD",mevf1:"bE",mnli:"bF",mnnn:"bG",nvstmnt:"bH",smiav01:"bI",stiac01:"bJ",stiaf01:"bK",stiaf02:"bL",stiau01:"bM",stica01:"bN",stica02:"bO",stico01:"bP",stide01:"bQ",stiee01:"bR",stiel02:"bS",stifa01:"bT",stifo01:"bU",stiga01:"bV",stigt07:"bW",stigt09:"bX",stigt17:"bY",stihg01:"bZ",stihu01:"b0",stiio01:"b1",stijg01:"b2",stikw01:"b3",stimn01:"b4",stimn02:"b5",stimn03:"b6",stimn04:"b7",stimn05:"b8",stimn06:"b9",stimn07:"ca",stimn08:"cb",stina01:"cc",stind01:"cd",stinz01:"ce",stiom01:"cf",stion01:"cg",stiou01:"ch",stipe01:"ci",stiqq1:"cj",stire01:"ck",stire02:"cl",stisk01:"cm",stisk02:"cn",stisk03:"co",stisk04:"cp",stisk05:"cq",stisp01:"cr",stisp02:"cs",stite01:"ct",stiva01:"cu",stivi01:"cv",stivl01:"cw",stivr02:"cx",stivw01:"cy",stiwa01:"cz",stiwf01:"cA",stiwo01:"cB",stiwo02:"cC",stiwo03:"cD",stmc1:"cE",trffctst:"cF",vrwn:"cG",vrwnt:"cH",vrzchttrvl:"cI",wnn:"cJ"};function Arnostat(b,c,a){this._getDomain=function(){return document.domain.replace(/www\./,"")};this._getPage=function(){return location.pathname};this._getPageItem=function(){pageitem=location.search;pageitem=pageitem.replace(/^\?/,"");pageitem=pageitem.replace(/[&?]*ref=[a-zA-Z0-9-_]+[&]*/,"");pageitem=pageitem.replace(/[&?]*label=[a-zA-Z0-9-_]+[&]*/,"");pageitem=pageitem.replace(/[&?]*xtor=[a-zA-Z0-9-_\[\]\{\}\:%]+[&]*/,"");return pageitem};this._getSessionId=function(){session=this._getCookie(this._cookienamesessionid);if(!session){session=Math.floor(Math.random()*(1000*1000*1000))}this._setCookie(this._cookienamesessionid,session,this._cookiepath,this._cookiedomain,(1/48));return session};this._getUserId=function(){userid=this._getCookie(this._cookienameuserid);if(!userid){this.returningVisitor=false;userid=Math.floor(Math.random()*(1000*1000*1000))}this._setCookie(this._cookienameuserid,userid,this._cookiepath,this._cookiedomain,365);return userid};this._getCookie=function(f){var g=document.cookie.indexOf(f+"=");var d=g+f.length+1;if((!g)&&(f!=document.cookie.substring(0,f.length))){return null}if(g==-1){return null}var e=document.cookie.indexOf(";",d);if(e==-1){e=document.cookie.length}return unescape(document.cookie.substring(d,e))};this._getBaseUrl=function(e){var d="?a="+e+"&s="+escape(this.site)+"&p="+escape(this.page);d+=(this.variant?"&pv="+escape(this.variant):"");d+=(this.realtime?"&rt="+escape(this.realtime):"");d+=(this.item?"&i="+escape(this.item):"");d+=(this.campaign?"&c="+escape(this.campaign):"");d+=(this.campaignLabel?"&cl="+escape(this.campaignLabel):"");d+=(this.sessionid?"&u="+escape(this.sessionid):"");d+=(this.userid?"&v="+escape(this.userid):"");d+=(this.clickxpos?"&xp="+escape(this.clickxpos):"");d+=(this.clickypos?"&yp="+escape(this.clickypos):"");d+=(this.profile?"&up="+this._packProfile(this.profile):"");return d};this._packProfile=function(g){if(g==""){return false}var f=g.split(";");if(f[0]==""){return false}var d=f[0].split(",");if(d.length==0){return false}var h="";for(x=0;x<d.length;x++){var e=AS_UP_DEF[d[x].replace(/^WL/,"")];if(e){h+=e}}return h};this._setCookie=function(e,g,h,f,k){var d=new Date((new Date()).getTime()+1000*60*60*24*k);var j=e+"="+escape(g)+"; expires="+d.toGMTString();if(h){j+="; path="+h}if(f){j+="; domain="+f}document.cookie=j;return g};this._handle=function(d){if((!this.debug)&&(document.URL.substr(0,5)=="file:")){return false}var d="http"+(document.URL.indexOf("https:")==0?"s":"")+"://stats.ilsemedia.nl/click.gif"+d;if(this.debug){alert(d)}else{if(document.images){var e=new Image(1,1);e.src=d;e.onload=function(f){f=null}}else{document.write('<img src="'+d+'" width="1" height="1" alt="" />')}}};this._buildCustomParams=function(e){var d="";if(this.custom){paramItems=this.custom.length;if(paramItems>0){for(x=0;x<paramItems;x++){add=true;if((this.custom[x][2])&&(e)){if(!((e&this.custom[x][2])==e)){add=false}}if(add){d+="&cp["+this.custom[x][0]+"]="+escape(this.custom[x][1])}}}x=0;while(x<this.custom.length){if((this.custom[x][2])&&((AS_CP_SINGLEEVENT&this.custom[x][2])==AS_CP_SINGLEEVENT)){this.custom.splice(x,1);x=0}else{x++}}}return d};this._getReferrer=function(){var d=document.referrer;d=(d.lastIndexOf("/")==d.length-1)?d.substring(d.lastIndexOf("/"),0):d;return d};this._addClickHandler=function(d,e){if(d.addEventListener){d.addEventListener("click",e,false);return 0}else{if(d.attachEvent){d.attachEvent("onclick",e);return 0}else{d.onclick=e;return 0}}return(-1)};this._getCampaign=function(){var f=this.getUriParam(this.campaignUriParam);if(f){return f}if(this.campaignFallbackUriParam){f=this.getUriParam(this.campaignFallbackUriParam);if(!f){return false}var e=new RegExp(/([^\-]+)-\[([^\]]*)\]-([^\-]+)/);var d=e.exec(f);if(!d){return false}if(d.length>=3){return d[1]+"-"+d[3]}}return false};this._getCampaignLabel=function(){var d=this.getUriParam(this.campaignLabelUriParam);if(d){return d}if(this.campaignFallbackUriParam){d=this.getUriParam(this.campaignFallbackUriParam);if(!d){return false}var f=new RegExp(/([^\-]+)-\[([^\]]*)\]-([^\-]+)/);var e=f.exec(d);if(!e){return false}if(e.length>=3){return e[2]}}return false};this._getClickPosition=function(){if(this.contentElement!=null){this.clickxpos=this.clickxpos-this.contentElement.offsetLeft;this.clickypos=this.clickypos-this.contentElement.offsetTop}};this.doRedirect=function(e){var d=unescape(e);document.location.href=d};this.getUriParam=function(f){var g=document.location.href;var e=g.split("?");if(e[1]){var d=e[1].split("&");for(i=0;i<d.length;i++){uri4=d[i].split("=");if(uri4[0]==f){return uri4[1]}}}else{return""}};this.addCustomParam=function(f,e,d){this.custom.push(new Array(f,e,d))};this.addCustomParams=function(d,e){if(d){if("object"==typeof(d)){for(var g in d){var f=d[g];if(typeof(f)=="function"){f="(function)"}this.addCustomParam(g,f,e)}}}};this.addEventHandlers=function(d){allA=document.getElementsByTagName("A");if(!allA){return}numberOfLinks=allA.length;for(i=0;i<numberOfLinks;i++){this._addClickHandler(allA[i],d)}};this.click=function(f,d){if("string"==typeof(f)){lc_l=f}else{if("object"==typeof(f)){if(f.href){lc_l=f.href}else{moz_var="srcElement";ie_var="target";prop_var="href";f[moz_var]?lc_l=f[moz_var][prop_var]:lc_l=f[ie_var][prop_var]}}else{moz_var="srcElement";ie_var="target";prop_var="href";f[moz_var]?e_out=f[moz_var][prop_var]:e_out=f[ie_var][prop_var]}}var e=this._getBaseUrl("c");this._getClickPosition();e+="&l="+escape(lc_l);if(d){if("object"==typeof(d)){this.addCustomParams(d,AS_CP_SINGLEEVENT|AS_CP_CLICK)}}e+=this._buildCustomParams(AS_CP_CLICK);e+="&t="+(new Date()).getTime();this._handle(e)};this.action=function(f,d){this._getClickPosition();var e=this._getBaseUrl("a");e+="&x="+escape(f);if(d){if("object"==typeof(d)){this.addCustomParams(d,AS_CP_SINGLEEVENT|AS_CP_ACTION)}}e+=this._buildCustomParams(AS_CP_ACTION);e+="&t="+(new Date()).getTime();this._handle(e)};this.visit=function(d){var e=this._getBaseUrl("v");e+=(this.returningVisitor?"&vr=1":"");if(d){if("object"==typeof(d)){this.addCustomParams(d,AS_CP_SINGLEEVENT|AS_CP_VIEW)}}e+=this._buildCustomParams(AS_CP_VIEW);if(this.referrer.length>0){e+="&r="+escape(this.referrer)}e+="&t="+(new Date()).getTime();this._handle(e)};this._cookienamesessionid="_assid";this._cookienameuserid="_asuid";this._cookiepath="/";this._cookiedomain="";this.debug=false;this.contentElement=null;this.campaignUriParam="ref";this.campaignLabelUriParam="label";this.campaignFallbackUriParam="xtor";this.site=(b?b:this._getDomain());this.page=(c?c:this._getPage());this.variant="";this.item=(a?a:this._getPageItem());this.campaign=this._getCampaign();this.campaignLabel=this._getCampaignLabel();this.referrer=this._getReferrer();this.realtime="";this.clickxpos=null;this.clickypos=null;this.custom=new Array();this.profile=null;this.returningVisitor=true;this.sessionid=this._getSessionId();this.userid=this._getUserId()};
