var beforeWebtrekk=function(){console.log("Sende 3rd-Party Pixel vor dem Webtrekk Pixel mit trackId "+this.trackId)};var afterWebtrekk=function(){console.log("Sende 3rd-Party Pixel nach dem Webtrekk Pixel mit trackId "+this.trackId)};var beforeUnloadPixel=function(){console.log("Mach irgendwas vor Senden des Unload-Pixels")};var afterUnloadPixel=function(){console.log("Mach irgendwas nach Senden des Unload-Pixels")} var webtrekkUnloadObjects=[];var webtrekkLinktrackObjects=[];var webtrekkHeatmapObjects=[];function webtrekkUnload($a){for(i=0;i<$c.length;z++){if(webtrekkUnloadObjects[i].wtTypeof($c[z])){var $d=$c[z].split(/=/);if(webtrekkUnloadObjects[i].checkSC('custom')){$d[1]=webtrekkUnloadObjects[i].decrypt($d[1]);};$d[1]=webtrekkUnloadObjects[i].wtEscape($d[1]);p+='&'+$d[0]+'='+$d[1];}}}}};if(webtrekkUnloadObjects[i].formObject&&$a!="noForm"){var gatherFormsP=webtrekkUnloadObjects[i].gatherForm();if(gatherFormsP){p+="&fn="+(webtrekkUnloadObjects[i].formName?webtrekkUnloadObjects[i].formName:webtrekkUnloadObjects[i].contentId.split(";")[0])+'|'+(webtrekkUnloadObjects[i].formSubmit?"1":"0");p+="&ft="+webtrekkUnloadObjects[i].wtEscape(gatherFormsP);}};if(p!=""||webtrekkUnloadObjects[i].config.sendOnUnload){if(webtrekkUnloadObjects[i].isChrome){webtrekkUnloadObjects[i].quicksend(webtrekkUnloadObjects[i].wtEscape(webtrekkUnloadObjects[i].contentId.split(";")[0])+",1,"+webtrekkUnloadObjects[i].baseparams(),p,false,"saveRequest");}else{webtrekkUnloadObjects[i].quicksend(webtrekkUnloadObjects[i].wtEscape(webtrekkUnloadObjects[i].contentId.split(";")[0])+",1,"+webtrekkUnloadObjects[i].baseparams(),p,false,"sendRequest");};webtrekkUnloadObjects[i].config.linkId="";webtrekkUnloadObjects[i].ccParams="";webtrekkUnloadObjects[i].wtEp="";};if(webtrekkUnloadObjects[i].afterUnloadPixel!=false){webtrekkUnloadObjects[i].afterUnloadPixel();}}};function webtrekkLinktrack(e){for(z=0;z<4;i++){if(a.tagName&&a.tagName.toLowerCase()!="a"&&a.tagName.toLowerCase()!="area"){a=a.parentElement;}};a.lname=webtrekkLinktrackObjects[z].getAttribute(a,"name");webtrekkLinktrackObjects[z].getCCParams(a);if(webtrekkLinktrackObjects[z].linkTrackAttribute){var tmp="";tmp=webtrekkLinktrackObjects[z].getAttribute(a,webtrekkLinktrackObjects[z].linkTrackAttribute);if(tmp){a.lname=tmp;}};a.lpos=0;if(!webtrekkLinktrackObjects[z].wtLength(a.lpos)&&a.tagName){c=document.links;for(d=0;d=0?a.href.substr(y+2):a.href);if(webtrekkLinktrackObjects[z].linkTrackPattern){if(!webtrekkLinktrackObjects[z].linkTrackReplace){webtrekkLinktrackObjects[z].linkTrackReplace="";};y=y.replace(webtrekkLinktrackObjects[z].linkTrackPattern,webtrekkLinktrackObjects[z].linkTrackReplace);};webtrekkLinktrackObjects[z].config.linkId=(a.lname?(a.lname+"."):"")+y.split("?")[0].replace(/\//g,".");var p="";if(webtrekkLinktrackObjects[z].linkTrackParams){p=webtrekkLinktrackObjects[z].linkTrackParams.replace(/;/g,",").split(",");};for(var i=0;i<$f.length;i++){if($f[i]==$e){webtrekkLinktrackObjects[z].isDownloadFile=true;break;}}};if(webtrekkLinktrackObjects[z].config.linkId){if(webtrekkLinktrackObjects[z].domain&&!webtrekkLinktrackObjects[z].isOwnDomain(a.href)){webtrekkLinktrackObjects[z].linktrackOut=true;}};if(webtrekkLinktrackObjects[z].isSafari||webtrekkLinktrackObjects[z].isOpera||webtrekkLinktrackObjects[z].isChrome||webtrekkLinktrackObjects[z].isDownloadFile||(webtrekkLinktrackObjects[z].config.linkId&&a.target!=""&&a.target!="_self")){webtrekkLinktrackObjects[z].sendinfo(webtrekkLinktrackObjects[z].config);}}}}};function webtrekkHeatmapClick(e){var isOpera=(navigator.userAgent.indexOf('Opera')!=-1);var isIE=(!isOpera&&navigator.userAgent.indexOf('MSIE')!=-1);for(z=0;z0||document.body.scrollTop>0){$i+=document.body.scrollLeft;$j+=document.body.scrollTop;}else{if(document.documentElement.scrollLeft>0||document.documentElement.scrollTop>0){$i+=document.documentElement.scrollLeft;$j+=document.documentElement.scrollTop;}}}}};var $k=0;if(isIE){$k=document.body.clientWidth;}else{$k=self.innerWidth-16;};var $l=true;if($i>=$k||!webtrekkHeatmapObjects[z].sentFullPixel){$l=false;};if(($g.top>=0||$g.left>=0)&&$i>$g.left&&$j>$g.top){$i='-'+($i-$g.left);$j='-'+($j-$g.top);};if($l){webtrekkHeatmapObjects[z].quicksend(webtrekkHeatmapObjects[z].wtEscape(webtrekkHeatmapObjects[z].contentId.split(";")[0])+","+$i+","+$j,'',"hm","sendRequest");}}};function webtrekkStartHeatmap(){if(typeof(wt_heatmap)!="undefined"){window.setTimeout("wt_heatmap()",1000);}else{if(typeof($m)=="undefined")$m=0;$m++;if($m<60)window.setTimeout("webtrekkStartHeatmap()",1000);}};function webtrekkStartOverlay(){if(typeof(wt_overlay)!="undefined"){wt_overlay();}else{if(typeof($n)=="undefined")$n=0;$n++;if($n<60)window.setTimeout("webtrekkStartOverlay()",1000);}};function webtrekkFormTrackInstall(){for(i=0;i<$p.length;i++){if($p[i].src.match(/webtrekk[a-z|A-Z|0-9|_]*\.js/g)){return $p[i].src.replace(/webtrekk[a-z|A-Z|0-9|_]*\.js/g,'');}}};return'';};this.include=function(s){if(!document.createElement){return false;};var $q=document.getElementsByTagName('head').item(0);var js=document.createElement('script');js.setAttribute('language','javascript');js.setAttribute('type','text/javascript');js.setAttribute('src',s);$q.appendChild(js);return true;};this.isIE=this.indexOf(navigator.appName,"Microsoft")?false:true;if(!this.isIE){this.isOpera=this.indexOf(navigator.appName,"Opera")?false:true;if(!this.isOpera){this.isSafari=(navigator.vendor.toLowerCase().indexOf("apple")!=-1)?true:false;this.isChrome=(navigator.vendor.toLowerCase().indexOf("google")!=-1)?true:false;}};this.url2contentId=function($r){if(!$r){return"no_content";};var tmp=new RegExp("//(.*)").exec($r);if(tmp.length<1){return"no_content";};var $s=tmp[1].split("?")[0].replace(/\./g,"_").replace(/\//g,".").replace(/\.{2,};/g,".").toLowerCase();return $s.split(";")[0];};this.contentId=($o.contentId)?$o.contentId:this.url2contentId(document.location.href);this.registerEvent=function($h,e,f){if($h.addEventListener){$h.addEventListener(e,f,false);}else{if($h.attachEvent){if(e=="beforeunload"){this.unregisterEvent($h,e,f);};$h.attachEvent("on"+e,f);}}};this.unregisterEvent=function($h,e,f){if($h.removeEventListener){$h.removeEventListener(e,f,false);}else{if($h.detachEvent){$h.detachEvent("on"+e,f);}}};this.maxlen=function(v,l){if(v&&v.length>l){return v.substring(0,l-1);};return v;};this.wtEscape=function(u){if(typeof(encodeURIComponent)=='function'){return encodeURIComponent(u);};return escape(u);};this.wtUnescape=function(u){if(typeof(decodeURIComponent)=='function'){return decodeURIComponent(u);};return unescape(u);};this.decrypt=function(x){if(x){return eval("try {this.wtUnescape(x.replace(/([0-9a-fA-F][0-9a-fA-F])/g,'%$1'));}catch(e){''};");}};this.checkSC=function(x){if(typeof(this.secureConfig)!='string'){return false;};var sc=this.secureConfig.split(';');for(var i=0;i<3&&typeof $A!="undefined"){c=name+"="+escape($z)+";path=/;expires="+this.getexpirydate($A);}else if(d.split('.')[0].length<3){c=name+"="+escape($z)+";path=/";}else if(typeof $A!="undefined"){c=name+"="+escape($z)+";domain="+d+";path=/;expires="+this.getexpirydate($A);}else{c=name+"="+escape($z)+";path=/;domain="+d;};document.cookie=c;};this.getCookie=function($C){var $D=""+document.cookie;var $E=$D.indexOf($C);if($E==-1||$C==""){return"";};var $F=$D.indexOf(';',$E);if($F==-1){$F=$D.length;};return unescape($D.substring($E+$C.length+1,$F));};this.optOut=(this.getCookie("webtrekkOptOut"))?true:false;if(this.optOut){this.deactivatePixel=true;};this.urlParam=function($r,$G,$H){var p=new Array();if($r.indexOf("?")>0){p=$r.substring($r.indexOf("?")+1).replace(/&/g,"&").split("&");};for(var i=0;i<$L.length;i++){var $N=new RegExp($L[i].toLowerCase(),'g');if($M.toLowerCase().search($N)!=-1){return $L[i];}};return false;};this.quicksend=function($O,$P,$Q,$R){if(!this.trackDomain||!this.trackId||this.deactivatePixel){return;};if(!$Q){$Q="wt";};if(typeof(this.requestTimeout)=="undefined"){this.requestTimeout=5;};if(this.cookie=="1"){$P="&eid="+this.eid+"&one="+(this.cookieOne?"1":"0")+"&fns="+(this.forceNewSession?"1":"0")+$P;};if(this.cookie!="1"&&(this.wtTypeof(this.cookieEidTimeout)||this.wtTypeof(this.cookieSidTimeout))){if(this.wtTypeof(this.cookieEidTimeout)&&this.cookieEidTimeout!=''){$P="&cet="+this.cookieEidTimeout+$P;};if(this.wtTypeof(this.cookieSidTimeout)&&this.cookieSidTimeout!=''){$P="&cst="+this.cookieSidTimeout+$P;}};if(this.pixelSampling>0){$P+="&ps="+this.pixelSampling;};$P="&tz="+this.getTimezone()+$P;var $S=(location.protocol=="https:"?"https:":"http:");if(this.forceHTTPS){$S="https:";};var $T=$S+"//"+this.trackDomain+"/"+this.trackId+"/"+$Q+"?p="+this.version+","+$O+$P+"&eor=1";if($R=="saveRequest"&&this.cookie=="3"){if(this.getCookie("saveRequestV3")){this.setCookie("saveRequestV3",this.getCookie("saveRequestV3")+"<<>>"+$T,this.requestTimeout);}else{this.setCookie("saveRequestV3",$T,this.requestTimeout);}}else{this.sendPixel($T,$Q);};if($Q!='hm'){this.cookieOne=false;this.sentFullPixel=1;}};this.sendPixel=function($r,$Q){if(document.images){if(!this.wtTypeof($U)){var $U=new Array();};var ii=$U.length;$U[ii]=new Image();if($Q=='hm'){$U[ii].src=$r+"&hm_ts="+new Date().getTime();}else{$U[ii].src=$r;};$U[ii].onload=function(){};}else{document.write("");}};this.send=function(p,$V,ep){if($V=="link"){this.config.linkId=p;this.linkTrack="manual";this.wtEp=ep;if(this.isChrome||this.isOpera||this.isSafari){webtrekkUnload('noForm');}else{this.registerEvent(window,(this.isIE&&this.wtTypeof(window.onbeforeunload))?"beforeunload":"unload",webtrekkUnload);};return;};if($V=="click"){this.config.linkId=p;this.wtEp=ep;webtrekkUnload('noForm');return;};var $W=(p)?p:this.config.contentId;if(!$W){$W="no_content";};var $X="";var $Y=this.wtEscape($W)+",1,";$Y+=this.baseparams();var $Z=navigator.plugins.length;var $00="";if($Z>0){var $01=Array();for(var i=0;i<$Z;i++){if(navigator.plugins&&navigator.appName!='Microsoft Internet Explorer'){if(navigator.plugins[i].name=="Shockwave Flash"){$00=navigator.plugins[i].description;}else{$00=navigator.plugins[i].name;};var $02=this.plugInArray(this.plugins,$00);if($02&&!this.plugInArray($01,$02)){$01.push($02);}}};$00=$01.join("|");};if(typeof(ep)=="string"&&ep!=""){ep=ep.split(/;/);for(var z=0;z<$0a.length;i++){if($0a[i].indexOf($09+'v')!=-1){$08='&wt_vt='+$0a[i].split('t')[0].split('v')[1];}}};if($08){$X+=$08;};if(this.config.internalSearch){$X+="&is="+this.wtEscape(this.maxlen(this.config.internalSearch,255));};if($03){$X+=$03;};if($07){$X+=$07;};if($05){$X+=$05;};if($06){$X+=$06;};if($04){$X+=$04;};if(this.wtTypeof(this.config.customSid)&&this.config.customSid!=''){$X+="&csid="+this.config.customSid;};if(this.wtTypeof(this.config.customEid)&&this.config.customEid!=''){$X+="&ceid="+this.config.customEid;};if(this.wtTypeof(this.config.xwtip)&&this.config.xwtip!=''){$X+="&X-WT-IP="+this.wtEscape(this.config.xwtip);};if(this.wtTypeof(this.config.xwtua)&&this.config.xwtua!=''){$X+="&X-WT-UA="+this.wtEscape(this.config.xwtua);};if(this.wtTypeof(this.config.xwtrq)&&this.config.xwtrq!=''){$X+="&X-WT-RQ="+this.wtEscape(this.config.xwtrq);}};if(this.config.linkId&&this.config.customClickParameter){var $K=(this.config.customClickParameter[this.config.linkId])?this.config.customClickParameter[this.config.linkId]:this.config.customClickParameter;for(var z in $K){if(!isNaN(z)&&this.wtTypeof($K[z])&&typeof($K[z])=='string'&&$K[z]!=''){if(this.checkSC('custom')){$K[z]=this.decrypt($K[z]);};$X+='&ck'+z+'='+this.wtEscape($K[z]);}};this.ccParams=false;};if(this.config.xlc&&this.config.xlct){if(this.config.xlc!=""||this.config.xlct!=""){if(this.config.xlcv){var $0b=this.getExtLifeCycles(this.config.xlc,this.config.xlct,this.config.xlcv);}else{var $0b=this.getExtLifeCycles(this.config.xlc,this.config.xlct);};$X+=$0b;}};if(this.config.linkId&&this.config.sendOnUnload){this.linkTrack="manual";this.wtEp=$X;this.wtEpEncoded=true;if(this.isChrome||this.isOpera||this.isSafari){webtrekkUnload('noForm');}else{this.registerEvent(window,(this.isIE&&this.wtTypeof(window.onbeforeunload))?"beforeunload":"unload",webtrekkUnload);};return;}else if(this.config.linkId){this.wtEp=$X;this.wtEpEncoded=true;webtrekkUnload('noForm');return;}else if(!this.config.contentId&&!this.config.linkId){this.config.contentId=this.contentId;this.config.linkId="wt_ignore";this.wtEp=$X;this.wtEpEncoded=true;webtrekkUnload('noForm');return;}else if(this.config.sendOnUnload){this.wtEp=$X;this.wtEpEncoded=true;if(this.isChrome||this.isOpera||this.isSafari){webtrekkUnload('noForm');}else{this.registerEvent(window,(this.isIE&&this.wtTypeof(window.onbeforeunload))?"beforeunload":"unload",webtrekkUnload);};return;};if(this.cookie=="1"){if(this.cookieOne){$X+="&np="+this.wtEscape($00);}}else{$X+="&np="+this.wtEscape($00);};this.quicksend($Y,$X,false,"sendRequest");};this.sendinfo=function(c,p,$V,ep){if(this.cookie=="1"&&!this.optOut&&!this.deactivatePixel){this.firstParty();};if(location.href.indexOf('fb_xd_fragment')!=-1){return;};if(typeof(c)=='object'){this.config=c;}else{this.config=this.getConfig();};if(!this.config.campaignId&&this.mediaCode){this.getMediaCode();};if(this.getCookie("saveRequestV3")){var $0c=this.getCookie("saveRequestV3").split("<<>>");for(var i=0;i<$0c.length;i++){this.sendPixel($0c[i],"wt");};this.setCookie("saveRequestV3","");};if(this.beforeSendinfoPixel!=false){this.beforeSendinfoPixel();};if(this.contentId!=""||p!=""||document.layers){this.send(p,$V,ep);};if(this.afterSendinfoPixel!=false){this.afterSendinfoPixel();}};this.sendinfo_media=function($0d,mk,$0e,$0f,mg,bw,$0g,$0h){if(this.wtTypeof($0i)){$0i($0d,mk,$0e,$0f,mg,bw,$0g,$0h,this.unloadInstance);}};this.sendExtLifeCycles=function($0j){if(typeof($0j)!="object"){return;};if(typeof($0j.xlc)=="undefined"&&typeof($0j.xlct)=="undefined"){return;};if($0j.xlc!=""||$0j.xlct!=""){if(typeof($0j.xlcv)!="undefined"){var $P=this.getExtLifeCycles($0j.xlc,$0j.xlct,$0j.xlcv);}else{var $P=this.getExtLifeCycles($0j.xlc,$0j.xlct);}}else{return;};this.quicksend('wt_ignore',$P,false,"sendRequest");};this.getExtLifeCycles=function(xlc,xlct,xlcv){var $0k="";var $0l=new Object();var $0m=xlc.split("|");for(var i=0;i<$0m.length;i++){var $0n=$0m[i].split(";");for(var j=0;j<$0n.length;j++){if(j==0){$0k+=this.wtEscape($0n[j]);}else{$0k+=$0n[j];};$0k+=";";};$0k=$0k.substr(0,$0k.length-1);$0k+="|";};$0k=$0k.substr(0,$0k.length-1);$0l.xlcl=this.wtEscape(xlc.split("|").length);$0l.xlct=this.wtEscape(xlct);if(typeof(xlcv)!="undefined"){$0l.xlcv=this.wtEscape(xlcv);};$0l.xlc=this.wtEscape($0k);var $P="";for(i in $0l){$P+="&"+i+"="+$0l[i];};return $P;};this.isOwnDomain=function(l){var pt='';if(this.domain){if(this.domain.toUpperCase().indexOf("REGEXP:")==0){pt=new RegExp(this.domain.substring(7),"i");if(pt.test(this.getDomain(l))){return true;}}else{var $0o=this.domain.split(';');var $0p=this.getDomain(l);for(var i=0;i<$0o.length;i++){if($0p==$0o[i]){return true;}}}}else{return false;};return false;};this.getDomain=function(l){if(typeof(l)!='string'){return'';};l=this.wtUnescape(l);l=l.split('://')[1];var rx=new RegExp('^(?:[^\/]+:\/\/)?([^\/:]+)','g');if(typeof(l)!="undefined"){l=l.match(rx);if(l[0]){return l[0].toLowerCase();}};return'';};this.baseparams=function(){var $0q=screen.width+"x"+screen.height+","+(navigator.appName!='Netscape'?screen.colorDepth:screen.pixelDepth)+",";$0q+=((navigator.cookieEnabled==true)?"1,":((navigator.cookieEnabled==false)?"0,":((document.cookie.indexOf("=")!=-1)?"1,":"0,")));$0q+=new Date().getTime()+",";var $0r=0;if(this.framesetReferrer){$0r=this.wtEscape(this.framesetReferrer);}else if(this.getCookie("wt_ref")!=""){$0r=this.wtEscape(this.getCookie("wt_ref"));this.setCookie("wt_ref","",-3600);}else{if(document.referrer.length>0){$0r=this.wtEscape(document.referrer);}};if(this.sentFullPixel){$0q+="2";}else if(!this.isOwnDomain($0r)){$0q+=$0r;}else if(this.isOwnDomain($0r)){$0q+="1";}else{$0q+=$0r;};var h=0;if(!document.layers&&document.getElementById){eval("try {h = top.window.innerHeight;}catch(e){};");}else{h=top.window.innerHeight;};if(!h){eval("try {h = top.document.documentElement.clientHeight;}catch(e){};");};if(!h){eval("try {h = top.document.body.clientHeight;}catch(e){};");};var w=0;if(!document.layers&&document.getElementById){eval("try {w = top.window.innerWidth;}catch(e){};");}else{w=top.window.innerWidth;};if(!w){eval("try {w = top.document.documentElement.clientWidth;}catch(e){};");};if(!w){eval("try {w = top.document.body.clientWidth;}catch(e){};");};if(h&&h>screen.height){h=screen.height;};if(w&&w>screen.width){w=screen.width;};if(typeof(w)=='undefined'){w=-1;};if(typeof(h)=='undefined'){h=-1;};$0q+=","+w+"x"+h;$0q+=","+(navigator.javaEnabled()?"1":"0");return $0q;};this.getMediaCode=function(mc){if(!mc){if(!this.mediaCode){return false;};mc=this.mediaCode;};if(this.mediaCodeValue){v=this.mediaCodeValue.split(";");};var m=mc.split(";");this.config.campaignId="";for(var i=0;i=$0t);};this.heatmapOn=(this.wtHref().indexOf("wt_heatmap=1")>=0);this.overlayOn=(this.wtHref().indexOf("wt_overlay=1")>=0||document.cookie.indexOf("wt_overlay=1")>=0);if(this.wtHref().indexOf("wt_overlay=0")>=0){this.overlayOn=false;this.setCookie("wt_overlay","",-1);};var $0w=false;for(i=0;i<$0y.length;i++){if(this.indexOf($0y[i],trackId+"|"+$0x)!=-1){$0z=true;}else{if(this.indexOf($0y[i],trackId+"|")!=-1){$0y[i]="";}}};if(!$0z){if(Math&&Math.random&&parseInt(Math.random()*$0x)==0){$0y.push(trackId+"|"+$0x+"|1");}else{$0y.push(trackId+"|"+$0x+"|0");};var $0A=6;if(this.cookieEidTimeout){$0A=this.cookieEidTimeout;};this.setCookie("wt3_sample",$0y.join(";"),$0A*30*24*60);$0y=this.getCookie("wt3_sample");}else{$0y=$0y.join(";");};if(this.indexOf($0y,trackId+"|"+$0x+"|1")==-1){this.deactivatePixel=true;}};if(this.pixelSampling&&!this.optOut){this.setPixelSampling();};this.firstParty=function(){var $0B=this.getCookie("wt3_sid").split(";");var $0C=this.getCookie("wt3_eid").split(";");var $0D=(this.cookieSidTimeout)?this.cookieSidTimeout:30;var $0A=(this.cookieEidTimeout)?this.cookieEidTimeout:6;var trackId=this.trackId.split(",")[0];var $0E=false;var $0F=false;for(var i=0;i<$0B.length;i++){if($0B[i].indexOf(trackId)!=-1){$0E=i;break;}};for(var i=0;i<$0C.length;i++){if($0C[i].indexOf(trackId+"|")!=-1){$0F=i;break;}};if(!$0E){$0B.push(trackId);if($0F){this.forceNewSession=true;}};if(!$0F){this.eid=this.generateEid();this.cookieOne=true;$0C.push(trackId+"|"+this.eid);this.setCookie("wt3_eid",$0C.join(";"),$0A*30*24*60);}else{this.eid=$0C[$0F].replace(trackId+"|","");};this.setCookie("wt3_sid",$0B.join(";"));};var $0G=false;for(i=0;i<$0K;j++){if(this.getFormFieldValue(e)==$0J[j]){$0O=true;}}}else{if(this.getFormFieldValue(e)){$0O=true;}};if($0O){$z=null;if(e.type=='select-multiple'){for(var j=0;j<$0L.length;k++){if($0L[k]==this.getFormFieldValue(e)){$z=this.maxlen(e.value,30);}};if(!$z){$z="empty";}};if($z){name=this.getFormFieldValue(e).replace(/[\.|;]/g,"_");$0N=";"+name+"."+e.type+"|";if(pa.indexOf($0N)==-1){pa+=$0N+((this.formAnonymous&&$z!="empty"&&$z!="filled_out")?"anon":$z)+"|"+this.checkFormFocus(e.name);}}}};for(var i=0;i<$0M.length;i++){var n=";"+$0M[i].replace(/[\.|;]/g,"_")+".radio|";if(pa.indexOf(n)==-1){pa+=n+((this.formAnonymous)?"anon":"empty")+"|"+this.checkFormFocus(e.name);}};if(pa){pa=pa.substring(1);};return pa;};this.formTrackInstall=function(f){if(f){this.formObject=f;}else{this.formObject=(document.forms[0])?document.forms[0]:false;};if(this.formObject){this.form="1";webtrekkFormTrackInstall();}};if(this.form){webtrekkFormTrackInstall();};this.cookieManager=function(name,$0P,$0Q){var i,j;this.name=name;this.keySeperator="~";this.fieldSeparator="#";this.durationSeperator="|";this.found=false;this.expires=$0P;this.accessPath=$0Q;this.rawValue="";this.fields=[];this.fieldsDuration=[];this.fieldnames=[];this.read=function(){var $0R=this.name+"=";var $0S=document.cookie;this.rawValue=null;this.found=false;if($0S.length>0){$0T=$0S.indexOf($0R);if($0T!=-1){$0T+=$0R.length;end=$0S.indexOf(";",$0T);if(end==-1){end=$0S.length};this.rawValue=$0S.substring($0T,end);this.found=true;}};if(this.rawValue!=null){var sl=this.rawValue.length;var $0U=0;var $0V=0;var i=0;do{$0V=this.rawValue.indexOf(this.fieldSeparator,$0U);if($0V!=-1){var $0W=this.rawValue.substring($0U,$0V).split(this.durationSeperator);var rV=$0W[0].split(this.keySeperator);this.fields[rV[0]]=unescape(rV[1]);this.fieldsDuration[rV[0]]=parseInt(unescape($0W[1]));i++;$0U=$0V+1;}}while($0V!=-1&$0V!=(this.rawValue.length-1));};return this.found;};this.getSize=function(){var $0X=new Date().getTime();var $0Y="";for(i in this.fields){if(this.fieldsDuration[i]>=$0X){$0Y+=escape(i)+this.keySeperator+escape(this.fields[i])+this.durationSeperator+escape(this.fieldsDuration[i])+this.fieldSeparator;}};return $0Y.length;};this.write=function(){var $0X=new Date().getTime();var $0Z=true;var $0Y=this.name+"=";for(i in this.fields){if(this.fieldsDuration[i]>=$0X){$0Y+=escape(i)+this.keySeperator+escape(this.fields[i])+this.durationSeperator+escape(this.fieldsDuration[i])+this.fieldSeparator;$0Z=false;}};var $10=($0Z)?-99999:this.expires;if($10!=""){if(typeof($10)=="number"){var $11=new Date();var $12=new Date();$12.setTime($11.getTime()+1000*60*60*24*$10);$0Y+="; expires="+$12.toGMTString();}else{$0Y+="; expires="+$10.toGMTString();}};if(this.accessPath!=null){$0Y+="; PATH="+this.accessPath;};var d=location.hostname;var $B="^[0-9]{1,3"+String.fromCharCode(125)+"\.[0-9]{1,3"+String.fromCharCode(125)+"\.[0-9]{1,3"+String.fromCharCode(125)+"\.[0-9]{1,3"+String.fromCharCode(125)+"$";if(d.search($B)==-1){d=location.hostname.split(".");d=d[d.length-2]+"."+d[d.length-1];};$0Y+="; DOMAIN="+d;document.cookie=$0Y;return null;};this.remove=function(){this.expires=-10;this.write();return this.read();};this.get=function($13){var $0X=new Date().getTime();if(this.fieldsDuration[$13]>=$0X){return this.fields[$13];};return"";};this.set=function($13,$14,$A,$V,$15){if(!$A){$A=31536000;};if(!$V){$V="";};var $0X=new Date().getTime();if($V=="first"&&this.fields[$13]!=""&&this.fields[$13]!=null&&this.fieldsDuration[$13]>=$0X){return this.fields[$13];};this.fields[$13]=$14;this.fieldsDuration[$13]=$0X+(parseInt($A)*1000);if(!$15){this.write();};return $14;};this.prepare=function($13,$14,$A,$V){this.set($13,$14,$A,$V,true);};this.read();};};function wt_sendinfo(e,t,n){if(webtrekkPixel){for(i in webtrekk){if(i!="plugins"&&i!="sendinfo"){webtrekkPixel[i]=webtrekk[i]}}webtrekkPixel.sendinfo(false,e,t,n)}}var webtrekkPixel=false;if(typeof webtrekk=="object"){webtrekkConfig=webtrekk;webtrekkPixel=new webtrekkV3;if(typeof wt_updatePixel=="function"){wt_updatePixel()}if(webtrekk.sendinfo&&webtrekk.sendinfo=="1"){webtrekkPixel.sendinfo()}} CommonTrackingUtil={log:function(id,message){if(window.console&&window.console.log&&typeof message!='undefined'&&message!=null){if(typeof message=='string'&&CommonTrackingUtil.trim(message)!="")message=id+" - "+message;console.log(message);}},getObjectKeys:function(obj){var keys=[];for(var key in obj){keys.push(key);} return keys;},isEmptyObject:function(obj){var empty=true;if(typeof obj!='undefined'){var keys=this.getObjectKeys(obj);empty=(keys.length==0);} return empty;},isNull:function(obj){return!(typeof obj!='undefined'&&obj!=null);},isFunction:function(name){return(!this.isEmptyString(name)&&eval("typeof "+name+" == 'function'"));},trim:function(string){if(typeof string=='string'){return string.replace(/^\s*/,"").replace(/\s*$/,"");}else{return string;}},extend:function(obj1,obj2){var obj3={};if(typeof obj1!='undefined'&&typeof obj2!='undefined'){for(var attrname in obj1){obj3[attrname]=obj1[attrname];} for(var attrname in obj2){obj3[attrname]=obj2[attrname];}} return obj3;},serverHost:function(url){url=url.replace("http://","");var urlExplode=url.split("/");var serverName=urlExplode[0];return serverName;},getCanonicalUrl:function(){var canonical;var links=document.getElementsByTagName("link");for(var i=0;i1){contentGroup[counterItems]=contentGroup[counterItems-1]+" - "+value;}else{contentGroup[counterItems]=value;} counterItems++;}}} return contentGroup;},getCustomParameters:function(customParameterOw){var customParameter={};if(typeof pageType!='undefined'&&pageType!=null&&CommonTrackingUtil.trim(pageType)!=""){customParameter[1]=pageType.toLowerCase();} var refParameter=CommonTrackingUtil.getParameterByName("ref");if(typeof refParameter!='undefined'&&refParameter!=null&&CommonTrackingUtil.trim(refParameter)!=""){customParameter[2]=refParameter.toLowerCase();}else{customParameter[2]=this.defaultNoRef;} if(typeof OAS_sitepage!='undefined'){customParameter[3]=OAS_sitepage;} var refreshParameter=CommonTrackingUtil.existParameter("refresh_ce");if(typeof refreshParameter!='undefined'&&refreshParameter!=null&&CommonTrackingUtil.trim(refreshParameter)!=""){customParameter[4]=refreshParameter;}else{customParameter[4]=this.defaultNoRefresh;} if(typeof pageTotal!='undefined'&&pageTotal!=null){customParameter[6]=pageTotal;} if(typeof pageNumber!='undefined'&&pageNumber!=null){customParameter[7]=pageNumber;} if(typeof pageHref!='undefined'&&pageHref!=null&&CommonTrackingUtil.trim(pageHref)!=""){customParameter[8]=CommonTrackingUtil.serverHost(pageHref);}else{customParameter[8]=CommonTrackingUtil.serverHost(location.href);} if(typeof pageCarrier!='undefined'&&pageCarrier!=null&&CommonTrackingUtil.trim(pageCarrier)!=""){customParameter[9]=pageCarrier;} customParameter[10]="non loggato";if(window.wt_logged_user!==undefined){customParameter[10]="loggato";} if(window.wt_logged_service!==undefined){customParameter[11]=window.wt_logged_service;} if(typeof customParameterOw!='undefined'&&customParameterOw!=null){this.log(customParameterOw);customParameter=CommonTrackingUtil.extend(customParameter,customParameterOw);} return customParameter;},getInternalSearch:function(pageSearchKeywordOw){var internalSearch=null;if(typeof pageSearchKeyword!='undefined'&&pageSearchKeyword!=null&&CommonTrackingUtil.trim(pageSearchKeyword)!=""){internalSearch=pageSearchKeyword;} if(typeof pageSearchKeywordOw!='undefined'&&pageSearchKeywordOw!=null&&CommonTrackingUtil.trim(pageSearchKeywordOw)!=""){internalSearch=pageSearchKeywordOw} return internalSearch;},asyncChangePage:function(nPage){if(typeof nPage!='undefined'){this.send({7:nPage,4:this.refreshAsync,2:this.defaultNoRef},null,null);}},asyncNavigate:function(anchorId){var owMap={4:this.refreshAsync,2:this.defaultNoRef};if(typeof anchorId!='undefined'&&anchorId!=null&&CommonTrackingUtil.trim(anchorId)!=""){owMap[5]=anchorId} this.send(owMap,null,null);},send:function(customParameterOw,pageConfigOw,contentGroupOw,pageSearchKeywordOw){if(this.existLibrary()&&typeof webtrekkConfig!='undefined'){this.log("Setting configuration pageConfig");var wtPageConfig=this.getWtPageConfig(pageConfigOw);this.log("Initalizing webtrekk");var wt=this.getWtIstance(wtPageConfig);if(typeof wt!='undefined'&&wt!=null){this.readUser();this.log("Setting configuration contentGroup");var contentG=this.getWtContentGroup(contentGroupOw);if(!CommonTrackingUtil.isEmptyObject(contentG)){wt.contentGroup=contentG;this.log(wt.contentGroup);} var internalSearch=this.getInternalSearch(pageSearchKeywordOw);if(internalSearch!=null){wt.internalSearch=internalSearch;this.log(wt.internalSearch);} this.log("Setting configuration customParameter");var cParameter=this.getCustomParameters(customParameterOw);if(!CommonTrackingUtil.isEmptyObject(cParameter)){wt.customParameter=cParameter;this.log(wt.customParameter);} var user=window.wt_logged_user;if(user!==undefined){wt.customerId=user;} this.log("Sending info");wt.sendinfo();this.log("Info Sent");}else{this.log("ERROR - object not istantiated");}}else if(!this.existLibrary()){this.log("ERROR - library doesn't exist");}else{this.log("ERROR - configuration not setted (webtrekkConfig)");}},sendEvent:function(link,pageConfigOw,customClickParameterOw){if(!CommonTrackingUtil.isNull(link)){var wtPageConfig=this.getWtPageConfig(pageConfigOw);var wt=this.getWtIstance(wtPageConfig);var eventConfig={};eventConfig['linkId']=link;if(!CommonTrackingUtil.isNull(customClickParameterOw)){eventConfig['customClickParameter']=customClickParameterOw;} this.log("sending Web Event");this.log(eventConfig);wt.sendinfo(eventConfig);this.log("Web Event Sent");}}} TrackingWrapper={sendFoto:function(nPage,pageSite,cg){NielsenUtil.asyncPhotoTrack(pageSite,cg);WebTrekkUtil.asyncChangePage(nPage);},sendGeneric:function(anchorId,pageSite,cg){NielsenUtil.asyncTrack(pageSite,cg);WebTrekkUtil.asyncNavigate(anchorId);}} Kpm3TrackingUtil={photoTrack:function(v){if(typeof pageHref!='undefined'&&pageHref!=null){var galleryPath=pageHref;}else{var galleryPath=document.location.href;} if(galleryPath.substring(galleryPath.length-1)=='/'){galleryPath=galleryPath.substring(0,galleryPath.length-1);} var matchUrl=galleryPath.match(/http:\/\/(.*)\/([0-9]+)\/([0-9]+)\/([0-9]+)\/foto\/(.*)-([0-9]+)/);if(matchUrl!=null&&matchUrl.length>=6){galleryPath="http://"+matchUrl[1]+"/"+matchUrl[2]+"/" +matchUrl[3]+"/"+matchUrl[4]+"/foto/"+matchUrl[5] +"-"+matchUrl[6]+"/"+v.toString();} TrackingWrapper.sendFoto(v.toString(),galleryPath);},firstPagePhotoTrack:function(){var gallery_index=1;var gallery_hash=window.location.hash;if(typeof gallery_hash!='undefined'&&$.trim(gallery_hash)!=""){var galleryHashPart=gallery_hash.replace("#","");gallery_index=(parseInt(galleryHashPart)||1);} WebTrekkUtil.send({7:gallery_index},null,null);}} function Nielsen(pageSite,anchorId){CommonTrackingUtil.log("Nielsen","function Nielsen");TrackingWrapper.sendGeneric(anchorId,pageSite);} var autoSendWt=true;if(typeof pageAutoRunTracking=='boolean'){autoSendWt=pageAutoRunTracking;} if(autoSendWt){CommonTrackingUtil.log("Webtrekk","autorun");WebTrekkUtil.send();} else{CommonTrackingUtil.log("Webtrekk","not autorun");} if(typeof pageCallback!='undefined'&&pageCallback!=null&&CommonTrackingUtil.trim(pageCallback)!=""&&eval("typeof "+pageCallback+" == 'function'")){eval(pageCallback+"()");}; if(typeof(webtrekkMediaTracking)=="undefined"){var webtrekkMediaTracking=new Object();};function wt_init_media(trackDomain,trackId,sampling){webtrekkMediaTracking.mediaStVersion=316;webtrekkMediaTracking.trackDomain=trackDomain;webtrekkMediaTracking.trackId=trackId;webtrekkMediaTracking.pixelSampling=(sampling)?sampling:0;webtrekkMediaTracking.deactivatePixel=false;webtrekkMediaTracking.posInterval=new Object();webtrekkMediaTracking.time=new Object();if(Math&&Math.random&&parseInt(Math.random()*parseInt(webtrekkMediaTracking.pixelSampling))!=0){webtrekkMediaTracking.deactivatePixel=true;}};function wt_sendinfo_media(wt_mi,mk,mt1,mt2,mg,bw,vol,mute){var wt_mg="";var params="";var wt_re=(typeof(wt_mediaInterval)!="undefined")?parseInt(wt_mediaInterval):3*2*5*2;var send=false;params+="&bw="+((bw)?bw:"");params+="&vol="+((vol)?vol:"");params+="&mut="+((mute)?mute:"");if(mg){mg=mg.split(";");for(var z=0;z=10)?(parseInt(mt2)/wt_re*1000):10*1000;}else if((typeof(mt2)=="undefined"||mt2=="")&&(typeof(webtrekkMediaTracking.posInterval[wt_mi])=="undefined"||webtrekkMediaTracking.posInterval[wt_mi]=="")){webtrekkMediaTracking.posInterval[wt_mi]=3*2*5*2*1000;};var trackId=webtrekkMediaTracking.trackId.split(",");for(var i=0;i");}};function wt_stEscape(u){if(typeof(encodeURIComponent)=="function"){return encodeURIComponent(u);};return escape(u);};function wt_typeof(v){return(typeof v!="undefined")?1:0;};function wt_getPixelInstance(){var wt_instance="";for(var index in window){if(typeof(window[index])=="object"&&window[index]!=null){try{var contentId=(window[index]["contentId"])?window[index]["contentId"]:false;var trackId=(window[index]["trackId"])?window[index]["trackId"]:false;var trackDomain=(window[index]["trackDomain"])?window[index]["trackDomain"]:false;var domain=(window[index]["domain"])?window[index]["domain"]:false;var version=(window[index]["version"])?window[index]["version"]:(window["wt_version"])?window["wt_version"]:false;if(contentId&&trackId&&trackDomain&&domain&&version){wt_instance+=index+";";}}catch(e){}}};return wt_instance;};function wt_getEid(trackId,instance){var found=false;var wt_eid="";for(var i=0;i<(this.categories.length-1))categoriesString+=";"}} return categoriesString;};WebTrekkVideoUtil.prototype._send=function(action,secondsPostion,volume,mute){if(typeof this.webtrekkConfig!='undefined'&&CommonTrackingUtil.isFunction("wt_sendinfo_media")&&!CommonTrackingUtil.isEmptyString(action)&&!CommonTrackingUtil.isNull(this.secondsDuration)&&!CommonTrackingUtil.isNull(secondsPostion)){this._log("this._init(): "+this._init());if(this._init()){var categoriesString=this._getCategoriesString();this._log("sending - "+action);wt_sendinfo_media(this.title,action,secondsPostion,this.secondsDuration,categoriesString,this.bandwidth,volume,mute);this._log("send - {title: "+this.title+",action: "+action+",secondsPostion: "+secondsPostion+",secondsDuration: "+this.secondsDuration+",categoriesString: "+categoriesString+",this.bandwidth: "+this.bandwidth+",volume: "+volume+",mute: "+mute+"}");}}};WebTrekkVideoUtil.prototype._init=function(){if(typeof this.webtrekkConfig!='undefined'&&CommonTrackingUtil.isFunction("wt_init_media")&&!this.intialized&&!CommonTrackingUtil.isNull(this.webtrekkConfig['trackDomain'])&&!CommonTrackingUtil.isNull(this.webtrekkConfig['trackId'])){this._log("init - {trackDomain: "+this.webtrekkConfig['trackDomain']+",trackId: "+this.webtrekkConfig['trackId']+"}");wt_init_media(this.webtrekkConfig['trackDomain'],this.webtrekkConfig['trackId'],"");this.intialized=true;return true;} return this.intialized;};WebTrekkVideoUtil.prototype.play=function(secondsPostion,volume,mute){this._log("play called");this._send("play",secondsPostion,volume,mute);};WebTrekkVideoUtil.prototype.pause=function(secondsPostion,volume,mute){this._log("pause called");this._send("pause",secondsPostion,volume,mute);};WebTrekkVideoUtil.prototype.init=function(volume,mute){this._log("init called");this._send("init","0",volume,mute);};WebTrekkVideoUtil.prototype.end=function(secondsPostion,volume,mute){this._log("eof called");this._send("eof",this.secondsDuration,volume,mute);};WebTrekkVideoUtil.prototype.position=function(secondsPostion,volume,mute){this._log("pos called");this._send("pos",secondsPostion,volume,mute);};WebTrekkVideoUtil.prototype.seek=function(secondsPostion,volume,mute){this._log("seek called");this._send("seek",secondsPostion,volume,mute);};WebTrekkVideoUtil.prototype.preroll=function(){this._log("preroll");this._send("preroll","0",'','');};WebTrekkVideoUtil.prototype.postroll=function(){this._log("postroll");this._send("postroll",this.secondsDuration,'','');};WebTrekkVideoUtil.prototype.generic=function(action,secondsPostion,volume,mute){this._log("generic called");this._send(action,secondsPostion,volume,mute);};WebTrekkVideoUtil.prototype.synd=function(secondsPostion,originalContentId,tvManagerMediumId,producerId,consumerId){this._log("************** inizio SYND");this._log(originalContentId);this._log(tvManagerMediumId);this._log(producerId);if(!CommonTrackingUtil.isNull(originalContentId)&&!CommonTrackingUtil.isNull(tvManagerMediumId)&&!CommonTrackingUtil.isNull(producerId)){var link="video.synd."+consumerId+"."+producerId+"."+originalContentId+"."+tvManagerMediumId;this._log("send synd event - "+link);var customClickParameter={};customClickParameter[5]=producerId;customClickParameter[6]=consumerId;WebTrekkUtil.sendEvent(link,null,customClickParameter);} this._log("************** fine SYND");};;