/**
 * Init IVW
 */
if(typeof(iom) == "undefined") document.write('<scr'+'ipt type="text/javascript" src="https://script.ioam.de/iam.js"></scr'+'ipt>');

var iam_data = {
    "st":"wirtwoch", 
    "cp":"mul_web_62",
    "oc":"mul_web_62",
    "mg":"yes",
    "sv":"i2" 
};

var ct_config = {    
    ga_id:              "UA-160194-4", /* Google Analytics */    
    wt_config:          '{"contentId":"Kroker\u0027s Look @ IT.5789582.Teaser","contentGroup":{"1":"Homepage","2":"","3":"","4":"","5":"5789582.Kroker\u0027s Look @ IT","6":"5789582"},"customParameter":{"1":"Teaser","2":"Teaser.1","3":"WirtschaftsWoche","4":"","6":"11.11.02","33":"FREE","34":""},"media":{"1":"","2":""},"customClickParameter":{"2":""},"heatmap":0,"trackId":"496847069983158","trackDomain":"wt.vhb.de","domain":"REGEXP:^([a-zA-Z0-9\\-\\.])*?wiwo([a-zA-Z0-9\\-])*?\\.(com|de|net|org|biz)$","active":true}',     /* Webtrekk */
    /*
         Old IVW-Stuff. For backward compatibility with old integrations. 
    */
    ivw_url:            "http://" + iam_data.st + ".ivwbox.de/cgi-bin/ivw/CP/",
    ivw_default:        "undefined",
    ivw_target:         "mul_web_62"
};
/**
 * Init Webtrekk
 * DEFAULT VALUES - Contenttracking uses wt_config 
 */
var webtrekkConfig = {
	trackId : "496847069983158",
	trackDomain : "handelsblatt01.webtrekk.net",
	domain : "www.wiwo.de",
    cookie : "1",
    contentId : ""
};
if(typeof(webtrekk) != "object")
{
    var metaConf = metaConfig();
    var conf = eval('(' + (metaConf ? metaConf : ct_config.wt_config) + ')');
    var webtrekk = metaConf ? conf.webtrekk : conf;
}

var wtInit = function()
{

    var pageConfig = {
        linkTrack : "standard",
        heatmap: document.all && navigator.userAgent.indexOf("opera") > -1 ? 0 : ((typeof(webtrekk) == "object") ? (webtrekk.heatmap || 1) : 1),
        form: "0"
    };

    if(typeof(webtrekk) == "object")
    {
        if(typeof(webtrekkConfig) == "object" && webtrekkConfig.trackDomain)
        {
            if(webtrekk.trackDomain)
                webtrekkConfig.trackDomain = webtrekk.trackDomain;
            if(webtrekk.domain)
                webtrekkConfig.domain = webtrekk.domain;
            if(webtrekk.trackId)
                webtrekkConfig.trackId = webtrekk.trackId;
            if(webtrekk.trackDomain)
                webtrekkConfig.trackDomain = webtrekk.trackDomain;
        }
        if(typeof(window.wtPartner) == "undefined")
        {
            window.wtPartner = new webtrekkV3(pageConfig);
        }
        if(location.href.indexOf('fb_xd_fragment') != -1)
        {
            window.wtPartner.deactivatePixel = true;
        }

        window.wtPartner.contentId = webtrekk.contentId || location.pathname;
        window.wtPartner.customParameter = webtrekk.customParameter || {};
        window.wtPartner.customClickParameter = webtrekk.customClickParameter || {};
        window.wtPartner.contentGroup = webtrekk.contentGroup || "";
        window.wtPartner.mediaCode = "adwords;koops";

        _debug.log("webtrekk has: ");
        _debug.log(window.wtPartner);
        _debug.log("webtrekk gets: ");
        _debug.log(webtrekk);
        window.wtPartner.sendinfo();
    }
};

/**
 * Called by partner
 */
function contentTracking()
{

    IOMm('configure', { st: iam_data.st, dn: 'data-b0980db7ec.wiwo.de' });
    IOMm('pageview', { cp: iam_data.cp });
    IOMm('3p', 'qds');


    /* IVW */
   if(typeof(iom.c) !== 'undefined') {
    iom.c(iam_data, 1); //1=Uebertragungsmodus-AppendChild
   }

    _hmgCmp.addEventFn('hasConsent', function () {    
        /* Webtrekk */
        wtInit();
     }, {vendor: '5e7e5243b8e05c48537f606b'});

}

/**
 * Config auslesen
 */
function metaConfig()
{
    var metas = document.getElementsByTagName("meta");
    if(metas.length)
    {
        for (var i = 0; i < metas.length; i++)
        {
          if(typeof metas[i].httpEquiv != "undefined" && metas[i].getAttribute("http-equiv") == "Config")
            {
                return metas[i].content;
            }  
        }         
    }

    return false;
}

/*
 * urban.debug.js
 * DebugObject. schreibt alles MÃ¶gliche in dei Konsole.
 * benutzt man am Besten so:
 * _debug.log(obj) oder _debug.log("string",obj);
 * kan aber auch
 * _debug.info(), _debug.warn() und _debug.error(), um echt aussehende Fehlermeldungen in
 * die Konsole auszuwerfen.
 *
 * */

 var _debug = {
    output: true,
    getArguments: function (args){
        var arr = [];
        for (var i = 0; i < args.length; i++) {
            arr[i] = args[i];
        }
        return arr;
    },
    info: function() {
        this.write("info", this.getArguments(arguments));
    },
    log: function() {
		this.write("log", this.getArguments(arguments));
    },
    warn: function() {
        this.write("warn", this.getArguments(arguments));
    },
    error: function() {
        this.write("warn", this.getArguments(arguments));
    },
    debug: function() {
        this.write("debug", this.getArguments(arguments));
    },
    write: function(level, args) {
      if (this.output && typeof(console)==="object")
        if (document.all && navigator.userAgent.indexOf("mozilla") > -1)
            console[level].apply(this, args);
		else if (document.all && navigator.userAgent.indexOf("safari") > -1)
			window.console.log(args[0]);
         else
             window.console[level](args);
	}
};

/**
 ************ Don't change anything beyond this line ************
 ********************* Start webtrekk_v4.js *********************
 */
var webtrekkUnloadObjects=webtrekkUnloadObjects||[],webtrekkLinktrackObjects=webtrekkLinktrackObjects||[],webtrekkHeatmapObjects=webtrekkHeatmapObjects||[],webtrekkV3=function(g){var u=function(a,c){"1"!=f.cookie||(f.optOut||f.deactivatePixel)||f.firstParty();var b=c?c:f.formObject&&"noForm"!=a?"form":"link";!1!=f.beforeUnloadPixel?f.beforeUnloadPixel():"form"==b&&f.executePlugin(f.getPluginConfig("form","before"));var e="";if(f.config.linkId&&(e+="&ct="+f.wtEscape(f.maxlen(f.wtUnescape(f.config.linkId),
255)))){f.linktrackOut&&(e+="&ctx=1");var d=f.ccParams;"string"==typeof d&&""!=d&&(e+=d)}if(f.wtEp)if(f.wtEpEncoded)e+=f.wtEp;else if(d=f.wtEp,"string"==typeof d&&""!=d)for(var d=d.split(/;/),n=0;n<d.length;n++)if(f.wtTypeof(d[n])){var k=d[n].split(/=/);f.checkSC("custom")&&(k[1]=f.decrypt(k[1]));k[1]=f.wtEscape(k[1]);e+="&"+k[0]+"="+k[1]}"noForm"!=a&&(e+=f.checkFormTracking());""!=e&&(f.quicksend(f.wtEscape(f.contentId.split(";")[0])+",1,"+f.baseparams(),e),f.config.linkId="",f.ccParams="",f.wtEp=
"");!1!=f.afterUnloadPixel?f.afterUnloadPixel():"form"==b&&f.executePlugin(f.getPluginConfig("form","after"))},p=function(a){var c,b,e=document.getElementById(f.heatmapRefpoint);b=e&&null!==e?c=0:c=-1;if(e&&null!==e&&f.wtTypeof(e.offsetLeft))for(;e;)c+=0<=e.offsetLeft?e.offsetLeft:0,b+=0<=e.offsetTop?e.offsetTop:0,e=e.offsetParent;var d=e=0;a||(a=window.event);if(a.pageX||a.pageY)e=a.pageX,d=a.pageY;else if(a.clientX||a.clientY)if(e=a.clientX,d=a.clientY,f.isIE)if(0<document.body.scrollLeft||0<document.body.scrollTop)e+=
document.body.scrollLeft,d+=document.body.scrollTop;else if(0<document.documentElement.scrollLeft||0<document.documentElement.scrollTop)e+=document.documentElement.scrollLeft,d+=document.documentElement.scrollTop;a=0;a=f.isIE?document.body.clientWidth:self.innerWidth-16;var n=!0;if(e>=a||!f.sentFullPixel)n=!1;(0<=b||0<=c)&&(e>c&&d>b)&&(e="-"+(e-c),d="-"+(d-b));n&&"1"==f.heatmap&&(f.executePlugin(f.getPluginConfig("heatmap","before")),f.quicksend(f.wtEscape(f.contentId.split(";")[0])+","+e+","+d,"",
"hm"+(f.fileSuffix?".pl":"")),f.executePlugin(f.getPluginConfig("heatmap","after")))},s=function(){"undefined"!==typeof wt_heatmap?window.setTimeout(function(){wt_heatmap()},1E3):("undefined"===typeof wt_heatmap_retry&&(window.wt_heatmap_retry=0),wt_heatmap_retry++,60>wt_heatmap_retry&&window.setTimeout(function(){s()},1E3))},l=function(){"undefined"!==typeof wt_overlay?window.setTimeout(function(){wt_overlay()},1E3):("undefined"===typeof wt_overlay_retry&&(window.wt_overlay_retry=0),wt_overlay_retry++,
60>wt_overlay_retry&&window.setTimeout(function(){l()},1E3))},r=function(a,c){var b=f.urlParam(location.href,a,!1),e=f.urlParam(location.href,"wt_t",!1),d=(new Date).getTime(),n=RegExp(c),e=e?parseInt(e)+9E5:d-9E5;return b&&n.test(b)&&e>d?b:!1},m=function(a){if(a&&"2"==a.substring(0,1)){a=parseInt(a.substring(1,11)+"000");a=new Date(a);var c=a.getFullYear()+"",c=c+(9>a.getMonth()?"0":""),c=c+(a.getMonth()+1),c=c+(9>a.getDate()?"0":""),c=c+a.getDate(),c=c+(9>a.getHours()?"0":""),c=c+a.getHours(),c=
c+(9>a.getMinutes()?"0":"");return c+=a.getMinutes()}return""},h=webtrekkConfig,f=this;g||(g=h);this.defaultAttribute="contentId linkId trackId trackDomain domain linkTrack linkTrackParams linkTrackPattern linkTrackReplace linkTrackDownloads linkTrackIgnorePattern customParameter crmCategory urmCategory customClickParameter customSessionParameter customTimeParameter customCampaignParameter customEcommerceParameter orderValue currency orderId product productCost productQuantity productCategory productStatus couponValue customerId contentGroup mediaCode mediaCodeValue mediaCodeCookie campaignId campaignAction internalSearch customSid customEid cookieDomain cookieEidTimeout cookieSidTimeout forceNewSession xwtip xwtua xwtrq xwteid xwtstt mediaCodeFrames framesetReferrer forceHTTPS secureConfig heatmap pixelSampling form formFullContent formAnonymous disableOverlayView beforeSendinfoPixel afterSendinfoPixel beforeUnloadPixel afterUnloadPixel xlc xlct xlcv ignorePrerendering isIE isOpera isSafari isChrome isFirefox email emailRID emailOptin firstName lastName telefon gender birthday birthdayJ birthdayM birthdayD country city postalCode street streetNumber validation fileSuffix".split(" ");
this.cookie=g.cookie?g.cookie:h.cookie?h.cookie:"3";this.optoutName=g.optoutName?g.optoutName:h.optoutName?h.optoutName:"webtrekkOptOut";this.paramFirst=g.paramFirst?g.paramFirst:h.paramFirst?h.paramFirst:"";this.maxRequestLength=g.maxRequestLength?g.maxRequestLength:h.maxRequestLength?h.maxRequestLength:7168;this.plugins=g.plugins&&""!=g.plugins?g.plugins:h.plugins&&""!=h.plugins?h.plugins:"Adobe Acrobat;Windows Media Player;Shockwave Flash;RealPlayer;QuickTime;Java;Silverlight".split(";");"string"==
typeof this.plugins&&(this.plugins=this.plugins.split(";"));this.heatmapRefpoint=g.heatmapRefpoint?g.heatmapRefpoint:h.heatmapRefpoint?h.heatmapRefpoint:"wt_refpoint";this.linkTrackAttribute=g.linkTrackAttribute?g.linkTrackAttribute:h.linkTrackAttribute?h.linkTrackAttribute:"name";this.delayLinkTrack=g.delayLinkTrack?g.delayLinkTrack:h.delayLinkTrack?h.delayLinkTrack:!1;this.delayLinkTrackTime=g.delayLinkTrackTime?g.delayLinkTrackTime:h.delayLinkTrackTime?h.delayLinkTrackTime:200;this.noDelayLinkTrackAttribute=
g.noDelayLinkTrackAttribute?g.noDelayLinkTrackAttribute:h.noDelayLinkTrackAttribute?h.noDelayLinkTrackAttribute:!1;this.formAttribute=g.formAttribute?g.formAttribute:h.formAttribute?h.formAttribute:"name";this.formFieldAttribute=g.formFieldAttribute?g.formFieldAttribute:h.formFieldAttribute?h.formFieldAttribute:"name";this.formValueAttribute=g.formValueAttribute?g.formValueAttribute:h.formValueAttribute?h.formValueAttribute:"value";this.formFieldDefaultValue=g.formFieldDefaultValue?g.formFieldDefaultValue:
h.formFieldDefaultValue?h.formFieldDefaultValue:{};this.formPathAnalysis=g.formPathAnalysis?g.formPathAnalysis:h.formPathAnalysis?h.formPathAnalysis:!1;this.reporturl=g.reporturl?g.reporturl:h.reporturl?h.reporturl:"report2.webtrekk.de/cgi-bin/wt";this.updateCookie=g.updateCookie?g.updateCookie:h.updateCookie?h.updateCookie:!0;this.executePluginFunction=g.executePluginFunction?g.executePluginFunction:h.executePluginFunction?h.executePluginFunction:"";this.linktrackOut=this.cookieOne=this.sampleCookieString=
this.lastVisitContact=this.firstVisitContact=this.eid=this.optOut=this.deactivateRequest=this.deactivatePixel=!1;this.linktrackNamedlinksOnly=!0;this.sentFullPixel=this.ccParams=!1;this.sentCampaignIds={};this.config=this.browserLang=this.formSubmit=this.formFocus=this.formName=this.formObject=this.gatherFormsP=this.overlayOn=this.heatmapOn=this.trackingSwitchMediaCodeTimestamp=this.trackingSwitchMediaCodeValue=this.trackingSwitchMediaCode=this.wtEpEncoded=this.wtEp=!1;this.unloadInstance=webtrekkUnloadObjects.length;
this.plugin={};this.heatmapCounter=this.formCounter=this.linkCounter=this.clickCounter=this.pageCounter=0;this.browserLang=!1;"string"==typeof navigator.language?this.browserLang=navigator.language.substring(0,2):"string"==typeof navigator.userLanguage&&(this.browserLang=navigator.userLanguage.substring(0,2));this.jsonPara={ck:["customClickParameter",{}],cp:["customParameter",{}],cs:["customSessionParameter",{}],ce:["customTimeParameter",{}],cb:["customEcommerceParameter",{}],vc:["crmCategory",{}],
uc:["urmCategory",{}],ca:["productCategory",{}],cc:["customCampaignParameter",{}],cg:["contentGroup",{}],ct:["linkId",""],ov:["orderValue",""],cr:["currency",""],oi:["orderId",""],ba:["product",""],co:["productCost",""],qn:["productQuantity",""],st:["productStatus",""],cd:["customerId",""],is:["internalSearch",""],mc:["campaignId",""],mca:["campaignAction",""]};this.generateDefaultConfig=function(a,c){for(var b=0;b<this.defaultAttribute.length;b++){var e=this.defaultAttribute[b];this[e]=a[e]?a[e]:
c[e]?c[e]:!1}};this.generateDefaultConfig(g,h);this.campaignAction=g.campaignAction?g.campaignAction:h.campaignAction?h.campaignAction:"click";"undefined"===typeof this.safetag&&(this.safetag=!1);"undefined"===typeof this.safetagInProgress&&(this.safetagInProgress=!1);"undefined"===typeof this.safetagParameter&&(this.safetagParameter={});"undefined"===typeof this.update&&(this.update=function(){});this.saveSendinfoArguments=[];this.safetagTimeoutStarted=!1;this.version=404;this.getJSON=function(a){if(a&&
"{"==a.charAt(0)&&"}"==a.charAt(a.length-1))try{return eval("("+a+")")}catch(c){}return null};this.parseJSON=function(a,c){for(var b in a){var e=b;if("object"==typeof a[e])"undefined"!=typeof this.jsonPara[e]&&"object"!=typeof this.config[this.jsonPara[e][0]]&&(this.config[this.jsonPara[e][0]]={}),this.parseJSON(a[e],e);else if(c){if(isNaN(parseInt(e))||500>parseInt(e))this.config[this.jsonPara[c][0]][e]=a[e]}else"undefined"!=typeof this.jsonPara[e]&&(this.config[this.jsonPara[e][0]]=a[e])}};this.getMappingParam=
function(a){var c=a.split(""),b,e,d;for(b=0;b<c.length;b++)if(!isNaN(parseInt(c[b]))){e=b;break}e?(c=a.substr(0,e),d=a.substr(e,a.length-1)):c=a;return{mapping:"undefined"!=typeof this.jsonPara[c]?this.jsonPara[c][0]:!1,index:d?d:!1}};this.getConfig=function(a){for(var c={},b=0;b<this.defaultAttribute.length;b++){var e=this.defaultAttribute[b];c[e]=a?!1:this[e]}return c};this.getRequestCounter=function(a,c){var b=0;"before"==c&&b++;return"link"==a?this.linkCounter+=b:"click"==a?this.clickCounter+=
b:"page"==a?this.pageCounter+=b:"heatmap"==a?this.heatmapCounter+=b:"form"==a?this.formCounter+=b:0};this.getPluginConfig=function(a,c){return{instance:this,mode:a,type:c,requestCounter:this.getRequestCounter(a,c)}};this.checkAsynchron=function(a,c,b,e){"undefined"!=typeof window[a]?c&&c(!0,b):0>=e?c&&c(!1,b):window.setTimeout(function(){b.checkAsynchron(a,c,b,e-100)},100)};this.loadAsynchron=function(a,c,b,e){this.include(a)&&this.checkAsynchron(c,b?b:!1,this,e?e:2E3)};this.include=function(a){if(!document.createElement)return!1;
var c=document.getElementsByTagName("head").item(0),b=document.createElement("script");b.setAttribute("language","javascript");b.setAttribute("type","text/javascript");b.setAttribute("src",a);c.appendChild(b);return!0};this.executePlugin=function(a){if(this.executePluginFunction&&"string"===typeof this.executePluginFunction){this.epf=!1;for(var c=this.executePluginFunction.split(";"),b=0;b<c.length;b++)c[b]&&"function"===typeof window[c[b]]&&(this.epf=window[c[b]],this.epf(a))}};this.indexOf=function(a,
c,b){return a.indexOf(c,b?b:0)};this.wtTypeof=function(a){return"undefined"!==typeof a?1:0};this.wtLength=function(a){return"undefined"!==typeof a?a.length:0};this.getAttribute=function(a,c){return"string"==typeof a.getAttribute(c)?a.getAttribute(c):"object"==typeof a.getAttribute(c)&&"object"==typeof a.attributes[c]&&null!=a.attributes[c]?a.attributes[c].nodeValue:""};this.getTimezone=function(){return Math.round(-1*((new Date).getTimezoneOffset()/60))};this.wtHref=function(){return this.wtLocation().href};
this.wtLocation=function(){var a=document.location;if(!document.layers&&document.getElementById)try{a=top.document.location}catch(c){a=document.location}else a=top.document.location;return a};this.checkBrowser=function(){this.isIE=this.indexOf(navigator.appName,"Microsoft")?!1:!0;this.isIE||(this.isOpera=this.indexOf(navigator.appName,"Opera")?!1:!0,this.isOpera||(this.isSafari=-1!=navigator.vendor.toLowerCase().indexOf("apple"),this.isChrome=-1!=navigator.vendor.toLowerCase().indexOf("google"),this.isSafari||
this.isChrome||(this.isFirefox=-1!=navigator.userAgent.toLowerCase().indexOf("firefox"))))};this.checkBrowser();this.url2contentId=function(a){if(!a)return"no_content";a=/\/\/(.*)/.exec(a);return 1>a.length?"no_content":a[1].split("?")[0].replace(/\./g,"_").replace(/\//g,".").replace(/\.{2,}/g,".").toLowerCase().split(";")[0]};this.contentId=g.contentId?g.contentId:this.url2contentId(document.location.href);this.registerEvent=function(a,c,b){a.addEventListener?("webkitvisibilitychange"==c&&this.unregisterEvent(a,
c,b),a.addEventListener(c,b,!1)):a.attachEvent&&("beforeunload"!=c&&"webkitvisibilitychange"!=c||this.unregisterEvent(a,c,b),a.attachEvent("on"+c,b))};this.unregisterEvent=function(a,c,b){a.removeEventListener?a.removeEventListener(c,b,!1):a.detachEvent&&a.detachEvent("on"+c,b)};this.maxlen=function(a,c){return a&&a.length>c?a.substring(0,c-1):a};this.wtEscape=function(a){try{return encodeURIComponent(a)}catch(c){return escape(a)}};this.wtUnescape=function(a){try{return decodeURIComponent(a)}catch(c){return unescape(a)}};
this.decrypt=function(a){var c="";if(a)try{c=this.wtUnescape(a.replace(/([0-9a-fA-F][0-9a-fA-F])/g,"%$1"))}catch(b){}return c};this.checkSC=function(a){if("string"!=typeof this.secureConfig)return!1;for(var c=this.secureConfig.split(";"),b=0;b<c.length;b++)if(c[b]==a)return!0;return!1};this.zeroPad=function(a,c){var b="000000000000"+a;return b.substring(b.length-c,b.length)};this.generateEid=function(){return"2"+this.zeroPad(Math.floor((new Date).getTime()/1E3),10)+this.zeroPad(Math.floor(1E6*Math.random()),
8)};this.getexpirydate=function(a){var c=new Date,b=c.getTime();c.setTime(b+6E4*a);return c.toUTCString()};this.setCookie=function(a,c,b){var e=location.hostname;-1==e.search(/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/)&&(e=location.hostname.split("."),e=e[e.length-2]+"."+e[e.length-1]);var d=!1;if(this.cookieDomain)for(var n=this.cookieDomain.split(";"),k=0;k<n.length;k++)if(-1!=location.hostname.indexOf(n[k])){e=n[k];d=!0;break}a=d&&"undefined"!=typeof b&&b?a+"="+escape(c)+";domain="+e+";path=/;expires="+
this.getexpirydate(b):d?a+"="+escape(c)+";path=/;domain="+e:3>e.split(".")[0].length&&"undefined"!=typeof b&&b?a+"="+escape(c)+";path=/;expires="+this.getexpirydate(b):3>e.split(".")[0].length?a+"="+escape(c)+";path=/":"undefined"!=typeof b&&b?a+"="+escape(c)+";domain="+e+";path=/;expires="+this.getexpirydate(b):a+"="+escape(c)+";path=/;domain="+e;document.cookie=a};this.getCookie=function(a){for(var c=document.cookie.split(";"),b=0;b<c.length;b++){var e=c[b].substr(0,c[b].indexOf("=")),d=c[b].substr(c[b].indexOf("=")+
1),e=e.replace(/^\s+|\s+$/g,"");if(e==a)return unescape(d)}return""};if(this.optOut=this.getCookie(this.optoutName)?!0:!1)this.deactivatePixel=!0;this.urlParam=function(a,c,b){if(!a||null===a||"undefined"===typeof a)return b;var e=[];0<a.indexOf("?")&&(e=a.split("?")[1].replace(/&amp;/g,"&").split("#")[0].split("&"));for(a=0;a<e.length;a++)if(0==e[a].indexOf(c+"="))return this.wtUnescape(e[a].substring(c.length+1).replace(/\+/g,"%20"));return b};this.allUrlParam=function(a,c){if(this.mediaCodeFrames&&
""!=this.mediaCodeFrames){for(var b=this.mediaCodeFrames.split(";"),e=0;e<b.length;e++){var d=!1;try{d=eval(b[e])}catch(n){}if(d&&(d!=top&&d.location)&&(d=this.urlParam(d.location.href,a,c),d!=c))return d}return c}b="";try{b=top.location.href}catch(k){b=document.location.href}return this.urlParam(b,a,c)};this.plugInArray=function(a,c){if("object"!=typeof a)return!1;for(var b=0;b<a.length;b++){var e=RegExp(a[b].toLowerCase(),"g");if(-1!=c.toLowerCase().search(e))return a[b]}return!1};this.quicksend=
function(a,c,b){if(!this.trackDomain||!this.trackId||this.deactivatePixel||this.deactivateRequest)this.deactivateRequest=!1;else{b||(b="wt"+(this.fileSuffix?".pl":""));"undefined"==typeof this.requestTimeout&&(this.requestTimeout=5);"1"==this.cookie&&(c="&eid="+this.eid+"&one="+(this.cookieOne?"1":"0")+"&fns="+(this.forceNewSession?"1":"0")+c);"1"!=this.cookie&&(this.wtTypeof(this.cookieEidTimeout)||this.wtTypeof(this.cookieSidTimeout))&&(this.wtTypeof(this.cookieEidTimeout)&&""!=this.cookieEidTimeout&&
(c="&cet="+this.cookieEidTimeout+c),this.wtTypeof(this.cookieSidTimeout)&&""!=this.cookieSidTimeout&&(c="&cst="+this.cookieSidTimeout+c));0<this.pixelSampling&&(c+="&ps="+this.pixelSampling);c="&tz="+this.getTimezone()+c;a="//"+this.trackDomain+"/"+this.trackId+"/"+b+"?p="+this.version+","+a+c+"&eor=1";if(!this.ignorePrerendering&&(this.isChrome&&"undefined"!=typeof document.webkitHidden)&&("object"!=typeof this.prerendering&&(this.prerendering=[]),document.webkitHidden)){this.prerendering.push(a);
var e=this;this.registerEvent(document,"webkitvisibilitychange",function(){e.sendPrerendering()});return}this.sendPixel(a,b);"hm"!=b&&"hm.pl"!=b&&(this.forceNewSession=this.cookieOne=!1,this.sentFullPixel=1)}};this.sendPrerendering=function(){if(!document.webkitHidden){for(var a=0;a<this.prerendering.length;a++)this.sendPixel(this.prerendering[a]);this.prerendering=[]}};this.sendPixel=function(a,c){a=this.maxlen(a,this.maxRequestLength);this.isFirefox?this.sendPixelElement(a,c):this.sendPixelImage(a,
c)};this.sendPixelImage=function(a,c){var b="https:"==document.location.protocol?"https:":"http:";this.forceHTTPS&&(b="https:");0!==a.search(/https:|http:/)&&(a=b+a);if("hm"==c||"hm.pl"==c)a+="&hm_ts="+(new Date).getTime();if("function"!==typeof e)var e=function(){return document.createElement("img")};if("undefined"===typeof d)var d=[];b=d.length;d[b]=new e;d[b].onload=function(){return!1};d[b].src=a};this.createPixelElement=function(a){a=a.replace(/'/g,"%27");var c=document.createElement("div");
c.style.width="0px";c.style.height="0px";c.style.backgroundImage="url('"+a+"')";window.setTimeout(function(){c.parentElement.removeChild(c)},5E3);return c};this.sendPixelElement=function(a,c){var b="https:"==document.location.protocol?"https:":"http:";this.forceHTTPS&&(b="https:");0!==a.search(/https:|http:/)&&(a=b+a);if("hm"==c||"hm.pl"==c)a+="&hm_ts="+(new Date).getTime();if("undefined"===typeof this.sendPixelObject||null===this.sendPixelObject)(b=document.getElementById("webtrekk-image"))&&null!==
b?this.sendPixelObject=b:(this.sendPixelObject=document.createElement("div"),this.sendPixelObject.id="webtrekk-image",this.sendPixelObject.style.width="0px",this.sendPixelObject.style.height="0px",this.sendPixelObject.style.overflow="hidden",b=null,"object"===typeof document.body?b=document.body:"object"===typeof document.getElementsByTagName("body")[0]&&(b=document.getElementsByTagName("body")[0]),b&&null!==b?b.appendChild(this.sendPixelObject):(this.sendPixelObject=null,this.sendPixelImage(a,"wt"+
(this.fileSuffix?".pl":""))));null!==this.sendPixelObject&&this.sendPixelObject.appendChild(this.createPixelElement(a))};this.checkCustomParameter=function(a,c){var b="";if("object"==typeof a)for(var e in a){var d=e;!isNaN(parseInt(d))&&(this.wtTypeof(a[d])&&"string"===typeof a[d]&&""!==a[d])&&(this.checkSC("custom")&&(a[d]=this.decrypt(a[d])),-1==this.paramFirst.indexOf(c+d+";")&&(b+="&"+c+d+"="+this.wtEscape(a[d])))}return b};this.send=function(a,c,b){if("link"==c||"click"==c)this.config.linkId=
a;this.config.contentId=this.config.contentId?this.config.contentId:this.contentId;var e=!c||"link"!=c&&"click"!=c?a?a:this.config.contentId:this.config.contentId;e||(e="no_content");a="";var e=this.wtEscape(e)+",1,",e=e+this.baseparams(),d=navigator.plugins.length,n="";if(0<d){for(var k=[],f=0;f<d;f++)navigator.plugins&&"Microsoft Internet Explorer"!=navigator.appName&&(n="Shockwave Flash"==navigator.plugins[f].name?navigator.plugins[f].description:navigator.plugins[f].name,(n=this.plugInArray(this.plugins,
n))&&!this.plugInArray(k,n)&&k.push(n));n=k.join("|")}if(this.paramFirst)for(d=this.paramFirst.split(";"),f=0;f<d.length;f++){var g=this.getMappingParam(d[f]),k=g.mapping,g=g.index;k&&(g?this.config[k]&&("undefined"!=typeof this.config[k][g]&&this.config[k][g])&&(a+="&"+d[f]+"="+this.wtEscape(this.config[k][g])):this.config[k]&&(a+="&"+d[f]+"="+this.wtEscape(this.config[k])))}if("string"===typeof b&&""!==b)for(var h=b.split(/;/),f=0;f<h.length;f++)this.wtTypeof(h[f])&&(b=h[f].split(/=/),this.checkSC("custom")&&
(b[1]=this.decrypt(b[1])),b[1]=this.wtEscape(b[1]),a+="&"+b[0]+"="+b[1]);else{this.wtEpEncoded=!1;b=this.checkCustomParameter(this.config.customParameter,"cp");d=this.checkCustomParameter(this.config.customSessionParameter,"cs");k=this.checkCustomParameter(this.config.customTimeParameter,"ce");this.config.couponValue&&(this.config.customEcommerceParameter||(this.config.customEcommerceParameter={}),this.config.customEcommerceParameter[563]=this.config.couponValue);g=this.checkCustomParameter(this.config.customEcommerceParameter,
"cb");this.config.orderValue&&-1==this.paramFirst.indexOf("ov;")&&(a=this.checkSC("order")?a+("&ov="+this.wtEscape(this.decrypt(this.config.orderValue))):a+("&ov="+this.wtEscape(this.config.orderValue)));this.config.currency&&-1==this.paramFirst.indexOf("cr;")&&(a=this.checkSC("order")?a+("&cr="+this.wtEscape(this.decrypt(this.config.currency))):a+("&cr="+this.wtEscape(this.config.currency)));this.config.orderId&&-1==this.paramFirst.indexOf("oi;")&&(a+="&oi="+this.wtEscape(this.config.orderId));this.config.product&&
(-1==this.paramFirst.indexOf("ba;")&&(a+="&ba="+this.wtEscape(this.config.product)),this.config.productCost&&-1==this.paramFirst.indexOf("co;")&&(a+="&co="+this.wtEscape(this.config.productCost)),this.config.productQuantity&&-1==this.paramFirst.indexOf("qn;")&&(a+="&qn="+this.wtEscape(this.config.productQuantity)),a+=this.checkCustomParameter(this.config.productCategory,"ca"),this.config.productStatus&&-1==this.paramFirst.indexOf("st;")&&(a+="&st="+this.wtEscape(this.config.productStatus)));f=r("wt_cd",
"(.*)");this.config.customerId||(this.config.customerId=f);this.config.customerId&&-1==this.paramFirst.indexOf("cd;")&&(a+="&cd="+this.wtEscape(this.config.customerId));a+=this.checkCustomParameter(this.config.crmCategory,"vc");!this.config.birthday&&(this.config.birthdayJ&&this.config.birthdayM&&this.config.birthdayD)&&(this.config.birthday=this.config.birthdayJ+this.config.birthdayM+this.config.birthdayD);this.config.telefon&&(this.config.telefon=this.config.telefon.replace(/\W|_/g,""));this.config.urmCategory||
(this.config.urmCategory={});this.config.urmCategory[700]=this.config.email;this.config.urmCategory[701]=this.config.emailRID;this.config.urmCategory[702]=this.config.emailOptin;this.config.urmCategory[703]=this.config.firstName;this.config.urmCategory[704]=this.config.lastName;this.config.urmCategory[705]=this.config.telefon;this.config.urmCategory[706]=this.config.gender;this.config.urmCategory[707]=this.config.birthday;this.config.urmCategory[708]=this.config.country;this.config.urmCategory[709]=
this.config.city;this.config.urmCategory[710]=this.config.postalCode;this.config.urmCategory[711]=this.config.street;this.config.urmCategory[712]=this.config.streetNumber;this.config.urmCategory[713]=this.config.validation;a+=this.checkCustomParameter(this.config.urmCategory,"uc");this.browserLang&&(a+="&la="+this.wtEscape(this.browserLang));a+=this.checkCustomParameter(this.config.contentGroup,"cg");var q="";this.config.campaignId&&(this.config.campaignId in this.sentCampaignIds?this.config.campaignId=
"ignore%3Dignore":this.sentCampaignIds[this.config.campaignId]=!0,-1==this.paramFirst.indexOf("mc;")&&(a+="&mc="+this.wtEscape(this.config.campaignId)),-1==this.paramFirst.indexOf("mca;")&&(a+="&mca="+(this.config.campaignAction?this.config.campaignAction.substring(0,1):"c")));q+=this.checkCustomParameter(this.config.customCampaignParameter,"cc");this.trackingSwitchMediaCode&&(a+="&tmc="+this.wtEscape(this.trackingSwitchMediaCode));this.trackingSwitchMediaCodeValue&&(a+="&tmcv="+this.wtEscape(this.trackingSwitchMediaCodeValue));
this.trackingSwitchMediaCodeTimestamp&&(a+="&tmct="+this.wtEscape(this.trackingSwitchMediaCodeTimestamp));"object"==typeof wt_ts&&"undefined"!=typeof wt_ts.trackingSwitchMediaCode&&(a+="&tmc="+this.wtEscape(wt_ts.trackingSwitchMediaCode));"object"==typeof wt_ts&&"undefined"!=typeof wt_ts.trackingSwitchMediaCodeValue&&(a+="&tmcv="+this.wtEscape(wt_ts.trackingSwitchMediaCodeValue));"object"==typeof wt_ts&&"undefined"!=typeof wt_ts.trackingSwitchMediaCodeTimestamp&&(a+="&tmct="+this.wtEscape(wt_ts.trackingSwitchMediaCodeTimestamp));
var l="";"undefined"!=typeof wt_vt&&(h=wt_vt);this.wtTypeof(h)||(h=this.urlParam(location.href,"wt_vt",!1));if(h)for(var m=this.getCookie("wt_vt").split(";"),f=0;f<m.length;f++)-1!=m[f].indexOf(h+"v")&&(l="&wt_vt="+m[f].split("t")[0].split("v")[1]);l&&(a+=l);this.config.internalSearch&&-1==this.paramFirst.indexOf("is;")&&(a+="&is="+this.wtEscape(this.maxlen(this.wtUnescape(this.config.internalSearch),255)));b&&(a+=b);q&&(a+=q);k&&(a+=k);g&&(a+=g);d&&(a+=d);this.wtTypeof(this.config.customSid)&&""!=
this.config.customSid&&(a+="&csid="+this.config.customSid);this.wtTypeof(this.config.customEid)&&""!=this.config.customEid&&(a+="&ceid="+this.config.customEid);this.wtTypeof(this.config.xwtip)&&""!=this.config.xwtip&&(a+="&X-WT-IP="+this.wtEscape(this.config.xwtip));this.wtTypeof(this.config.xwtua)&&""!=this.config.xwtua&&(a+="&X-WT-UA="+this.wtEscape(this.config.xwtua));this.wtTypeof(this.config.xwtrq)&&""!=this.config.xwtrq&&(a+="&X-WT-RQ="+this.wtEscape(this.config.xwtrq));this.wtTypeof(this.xwteid)&&
""!=this.xwteid&&(a+="&X-WT-EID="+this.wtEscape(this.xwteid),this.xwteid=!1);this.wtTypeof(this.config.xwtstt)&&""!=this.config.xwtstt&&(a+="&X-WT-STT="+this.wtEscape(this.config.xwtstt));!this.sentFullPixel&&this.firstVisitContact&&(a+="&fvc="+this.firstVisitContact);!this.sentFullPixel&&this.lastVisitContact&&(a+="&lvc="+this.lastVisitContact)}a+="&pu="+this.wtEscape(document.location.href.split("#")[0]);this.config.linkId&&this.config.customClickParameter&&(a+=this.checkCustomParameter(this.config.customClickParameter[this.config.linkId]?
this.config.customClickParameter[this.config.linkId]:this.config.customClickParameter,"ck"),this.ccParams=!1);this.config.xlc&&this.config.xlct&&(""!=this.config.xlc||""!=this.config.xlct)&&(h="",h=this.config.xlcv?this.getExtLifeCycles(this.config.xlc,this.config.xlct,this.config.xlcv):this.getExtLifeCycles(this.config.xlc,this.config.xlct),a+=h);this.config.contentId||this.config.linkId||(this.config.contentId=this.contentId,this.config.linkId="wt_ignore");this.config.linkId?(this.wtEp=a,this.wtEpEncoded=
!0,u("noForm",c)):("1"==this.cookie?this.cookieOne&&(a+="&np="+this.wtEscape(n)):a+="&np="+this.wtEscape(n),this.quicksend(e,a))};this.sendinfo_media=function(a,c,b,e,d,f,k,g){this.wtTypeof(wt_sendinfo_media)&&wt_sendinfo_media(a,c,b,e,d,f,k,g,this.unloadInstance)};this.getExtLifeCycles=function(a,c,b){for(var e="",d={},f=a.split("|"),k=0;k<f.length;k++){for(var g=f[k].split(";"),h=0;h<g.length;h++)e=0==h?e+this.wtEscape(g[h]):e+g[h],e+=";";e=e.substr(0,e.length-1);e+="|"}e=e.substr(0,e.length-1);
d.xlcl=this.wtEscape(a.split("|").length);d.xlct=this.wtEscape(c);"undefined"!=typeof b&&(d.xlcv=this.wtEscape(b));d.xlc=this.wtEscape(e);a="";for(var l in d)a+="&"+k+"="+d[l];return a};this.isOwnDomain=function(a){var c="";if(this.domain)if(0==this.domain.toUpperCase().indexOf("REGEXP:")){if(c=RegExp(this.domain.substring(7),"i"),c.test(this.getDomain(a)))return!0}else{c=this.domain.split(";");a=this.getDomain(a);for(var b=0;b<c.length;b++)if(a==c[b])return!0}return!1};this.getDomain=function(a){if("string"!=
typeof a)return"";a=this.wtUnescape(a);a=a.split("://")[1];var c=RegExp("^(?:[^/]+://)?([^/:]+)","g");return"undefined"!=typeof a&&(a=a.match(c),a[0])?a[0].toLowerCase():""};this.baseparams=function(){var a=screen.width+"x"+screen.height+","+("Netscape"!=navigator.appName?screen.colorDepth:screen.pixelDepth)+",",a=a+(!0==navigator.cookieEnabled?"1,":!1==navigator.cookieEnabled?"0,":-1!=document.cookie.indexOf("=")?"1,":"0,"),a=a+((new Date).getTime()+","),c="0",b=r("wt_ref","(.*)");f.framesetReferrer?
c=f.wtEscape(f.framesetReferrer):""!=f.getCookie("wt_ref")?(c=f.wtEscape(f.getCookie("wt_ref")),f.setCookie("wt_ref","",-3600)):b?c=f.wtEscape(b):0<document.referrer.length&&(c=f.wtEscape(document.referrer));f.sentFullPixel?c="2":f.isOwnDomain(c)&&(c="1");b=0;if(!document.layers&&document.getElementById)try{b=top.window.innerHeight}catch(e){}else b=top.window.innerHeight;if(!b)try{b=top.document.documentElement.clientHeight}catch(d){}if(!b)try{b=top.document.body.clientHeight}catch(n){}"undefined"==
typeof b&&(b=-1);var k;k=0;if(!document.layers&&document.getElementById)try{k=top.window.innerWidth}catch(g){}else k=top.window.innerWidth;if(!k)try{k=top.document.documentElement.clientWidth}catch(h){}if(!k)try{k=top.document.body.clientWidth}catch(l){}"undefined"==typeof k&&(k=-1);b&&b>screen.height&&(b=screen.height);k&&k>screen.width&&(k=screen.width);a=a+c+(","+k+"x"+b);return a+=","+(navigator.javaEnabled()?"1":"0")};this.getMediaCode=function(a){if(!a){if(!this.mediaCode)return;a=this.mediaCode}var c=
[];a=a.split(";");var b=0,e=[];this.mediaCodeValue&&(c=this.mediaCodeValue.split(";"));for(var d=0;d<a.length;d++){var f=this.allUrlParam(a[d],"");if(this.mediaCodeCookie){var k=!1,g=(this.trackId+"").split(",")[0],h=this.getCookie("wt_mcc_"+g),l;l=a[d]+"_"+f;for(var q=0,m=l.length,t=void 0,p=0;p<m;p++)t=l.charCodeAt(p),q=(q<<5)-q+t,q&=q;l=q>1E15-1?"0":q+"";-1===h.indexOf(","+l+",")&&f?(e.push(a[d]+this.wtEscape("="+f)),k=!0):b++;k&&(f="","eid"==this.mediaCodeCookie&&(f=2592E3),this.setCookie("wt_mcc_"+
g,h+","+l+",",f))}else"undefined"!==typeof c&&"undefined"!==typeof c[d]&&""!==c[d]?e.push(a[d]+this.wtEscape("="+c[d])):""!==f&&e.push(a[d]+this.wtEscape("="+f))}a.length===b&&0!==a.length&&e.push("ignore%3Dignore");this.config.campaignId=e.join(";")};this.searchContentIds=function(){var a=0,c=0;this.contentIds=this.wtEscape(this.contentId.split(";")[0]);do{a++;var b=this.urlParam(document.location.href,"wt_contentId"+a,!1);b&&(this.contentIds+="&wt_contentId"+a+"="+this.wtEscape(b),c++)}while(c>=
a)};this.startHeatmapOrOverlay=function(a,c){this.searchContentIds();var b="";this.urlParam(document.location.href,"wt_reporter",!1)?(b=this.urlParam(document.location.href,"wt_reporter",!1).split("/"),b.pop(),this.reporturl=b.join("/")):this.getCookie("wt_overlayFrame")&&(b=this.getCookie("wt_overlayFrame").split("/"),b.pop(),this.reporturl=b.join("/"));-1===this.reporturl.search(/http|https/)&&(this.reporturl=document.location.protocol+"//"+this.reporturl);this.contentIds&&this.include(this.reporturl+
"/"+a+".pl?wt_contentId="+this.contentIds+"&x="+(new Date).getTime())&&("heatmap"==a&&(-1!=navigator.userAgent.indexOf("MSIE 6")&&-1!=navigator.userAgent.indexOf("Windows NT 5.0"))&&alert("Click OK to start heatmap."),"complete"!=document.readyState?this.registerEvent(window,"load",c):c())};this.heatmapOn=0<=this.wtHref().indexOf("wt_heatmap=1");this.overlayOn=0<=this.wtHref().indexOf("wt_overlay=1")||0<=document.cookie.indexOf("wt_overlay=1");0<=this.wtHref().indexOf("wt_overlay=0")&&(this.overlayOn=
!1,this.setCookie("wt_overlay","",-1));this.heatmapTrackInit=function(){for(var a=!1,c=0;c<webtrekkHeatmapObjects.length;c++)this==webtrekkHeatmapObjects[c]&&(a=!0);!a&&(this.heatmap&&"1"==this.heatmap)&&(webtrekkHeatmapObjects.push(this),this.registerEvent(document,"mousedown",p),this.registerEvent(document,"touchstart",p))};this.heatmapTrackInit();this.heatmapOn&&!this.disableOverlayView&&(this.searchContentIds(),this.startHeatmapOrOverlay("heatmap",s));this.overlayOn&&!this.disableOverlayView&&
(this.searchContentIds(),this.setCookie("wt_overlay","1"),this.startHeatmapOrOverlay("overlay",l));this.setPixelSampling=function(a){a||(a=this.pixelSampling);for(var c=this.trackId.split(",")[0],b=this.getCookie("wt3_sample").split(";"),e=!1,d=0;d<b.length;d++)-1!=this.indexOf(b[d],c+"|"+a)?e=!0:-1!=this.indexOf(b[d],c+"|")&&(b[d]="");d=6;this.cookieEidTimeout&&(d=this.cookieEidTimeout);e?(b=b.join(";"),this.setCookie("wt3_sample",b,43200*d)):(Math&&Math.random&&0==parseInt(Math.random()*a)?b.push(c+
"|"+a+"|1"):b.push(c+"|"+a+"|0"),this.setCookie("wt3_sample",b.join(";"),43200*d),b=this.getCookie("wt3_sample"));-1==this.indexOf(b,c+"|"+a+"|1")&&(this.deactivatePixel=!0)};this.pixelSampling&&!this.optOut&&this.setPixelSampling();this.firstParty=function(){for(var a=this.getCookie("wt3_sid").split(";"),c=this.getCookie("wt3_eid").split(";"),b=0===this.cookieEidTimeout?this.cookieEidTimeout:this.cookieEidTimeout?this.cookieEidTimeout:6,e=this.trackId.split(",")[0],d=!1,f=!1,k=!1,g=this.generateEid(),
h=0;h<a.length;h++)if(-1!=a[h].indexOf(e)){d=h;break}for(h=0;h<c.length;h++)if(-1!=c[h].indexOf(e+"|")){f=h;break}this.eid=r("wt_eid","^[0-9]{19}$");d||(a.push(e),f&&!this.eid&&(this.forceNewSession=!0));f?(this.eid&&(c[f]=e+"|"+this.eid,this.updateCookie=!0),-1==c[f].indexOf("#")&&(c[f]+="#"+g),k=c[f].replace(e+"|","").split("#")[1],this.eid=c[f].replace(e+"|","").split("#")[0],c[f]=c[f].replace(/#[0-9]{19}/g,"#"+g),this.updateCookie&&(b?this.setCookie("wt3_eid",c.join(";"),43200*b):this.setCookie("wt3_eid",
c.join(";")))):(this.eid||(this.eid=this.generateEid(),this.cookieOne=!0),c.push(e+"|"+this.eid+"#"+g),b?this.setCookie("wt3_eid",c.join(";"),43200*b):this.setCookie("wt3_eid",c.join(";")));this.setCookie("wt3_sid",a.join(";"));d||(this.firstVisitContact=m(this.eid),this.updateCookie&&(this.lastVisitContact=m(k?k:g)))};g=!1;for(h=0;h<webtrekkUnloadObjects.length;h++)this==webtrekkUnloadObjects[h]&&(g=!0);g||webtrekkUnloadObjects.push(this);var v=function(){var a=[],c;for(c in f.safetagParameter){var b=
c;if("executePluginFunction"==b)f.executePluginFunction+=f.safetagParameter[b],f.safetagParameter[b]="";else if("object"===typeof f.safetagParameter[b]){"object"!==typeof f[b]&&(f[b]={});for(var e in f.safetagParameter[b]){var d=e;f[b][d]=f.safetagParameter[b][d]}}else f[b]=f.safetagParameter[b],"form"!=b&&"linkTrack"!=b&&"heatmap"!=b||a.push(b)}for(c=0;c<a.length;c++)switch(a[c]){case "form":f.formTrackInstall();break;case "linkTrack":f.linkTrackInit();break;case "heatmap":f.heatmapTrackInit()}f.safetagParameter.pixel=
f},w=function(){f.safetagTimeoutStarted=!0;var a=(new Date).getTime()-f.startSafetagTimeoutDate;if(f.safetagInProgress&&a<f.safetag.timeout)window.setTimeout(function(){w()},5);else{f.safetagTimeoutStarted=!1;f.safetagInProgress=!1;a>f.safetag.timeout&&(f.xwtstt=f.safetag.timeout+"");for(a=0;a<f.saveSendinfoArguments.length;a++){var c=f.saveSendinfoArguments[a];f.sendinfo(c[0],c[1],c[2],c[3])}f.saveSendinfoArguments=[]}};this.sendinfo=function(a,c,b,e){b=b?b:"page";-1==location.href.indexOf("fb_xd_fragment")&&
(this.safetag&&v(),this.config="object"==typeof a?a:this.getConfig(),this.safetagInProgress?(f.saveSendinfoArguments.push([this.config,c,b,e]),this.safetagTimeoutStarted||(this.startSafetagTimeoutDate=(new Date).getTime(),window.setTimeout(function(){w()},5))):(!1!=this.beforeSendinfoPixel?this.beforeSendinfoPixel():this.executePlugin(this.getPluginConfig(b?b:"page","before")),this.safetag&&v(),this.optOut||this.deactivatePixel||("1"==this.cookie?this.firstParty():this.xwteid=r("wt_eid","^[0-9]{19}$")),
this.config.campaignId||(!this.mediaCode||"page"!=b||this.config.linkId)||this.getMediaCode(),(""!=this.contentId||""!=c||document.layers)&&this.send(c,b,e),!1!=this.afterSendinfoPixel?this.afterSendinfoPixel():this.executePlugin(this.getPluginConfig(b?b:"page","after"))))};(function(a){var c=function(b,c){var d=this;d.item=c;d.href="undefined"!==typeof c.href?c.href:a.getAttribute(c,"href")?a.getAttribute(c,"href"):"";d.linkIdByNameOrId=a.getAttribute(c,"name")?a.getAttribute(c,"name"):a.getAttribute(c,
"id")?a.getAttribute(c,"id"):"";d.linkId="";d.action="link";d.isDownloadFile=!1;d.linktrackOut=!1;d.isInternalLink=function(){var b;if(a.linkTrackDownloads){b=d.href.split(".");b=b.pop();for(var f=a.linkTrackDownloads.split(";"),g=0;g<f.length;g++)if(f[g]==b){d.isDownloadFile=!0;break}}d.linktrackOut=a.domain&&!a.isOwnDomain(d.href);if(d.isDownloadFile||"_blank"===c.target)d.action="click";b=d.href;var f=b.toLowerCase(),g=b.split("#")[0],h=document.location,l=d.item,m=a.getAttribute,p=m(l,"onclick"),
t=m(l,"onmousedown"),l=m(l,"ontouchstart");b=a.noDelayLinkTrackAttribute?!!a.getAttribute(c,a.noDelayLinkTrackAttribute):!(b&&!(0===f.indexOf("javascript:")||0===f.indexOf("#")||"click"===d.action||g==h.href.split("#")[0]&&-1!==b.indexOf("#")||g==h.pathname.split("#")[0]&&-1!==b.indexOf("#")||p&&-1!==p.search(/return false[;]?$/)||t&&-1!==t.search(/return false[;]?$/)||l&&-1!==l.search(/return false[;]?$/)));return b};d.getCCParams=function(){var b="";if(a.config.customClickParameter){var c="undefined"!==
typeof a.config.customClickParameter[d.linkIdByNameOrId]?a.config.customClickParameter[d.linkIdByNameOrId]:!1;c||(c=a.config.customClickParameter);var e,f;for(f in c)e=f,!isNaN(parseInt(e))&&("string"===typeof c[e]&&c[e])&&(a.checkSC("custom")&&(c[e]=a.decrypt(c[e])),b+="&ck"+e+"="+a.wtEscape(c[e]))}return b};d.setJSONParams=function(){d.linkId||(d.linkId=a.getAttribute(c,a.linkTrackAttribute));null!==a.getJSON(d.linkId)&&(a.parseJSON(a.getJSON(d.linkId)),d.linkId=a.config.linkId)};d.getLinkId=function(){d.linkId=
a.getAttribute(c,a.linkTrackAttribute);d.setJSONParams();if("link"==a.linkTrack){var b=d.href.indexOf("//");d.href=0<=b?d.href.substr(b+2):d.href;a.linkTrackPattern&&(a.linkTrackReplace||(a.linkTrackReplace=""),d.href=d.href.replace(a.linkTrackPattern,a.linkTrackReplace));d.linkId=(d.linkId?d.linkId+".":"")+d.href.split("?")[0].replace(/\//g,".");b=[];a.linkTrackParams&&(b=a.linkTrackParams.replace(/;/g,",").split(","));for(var f=0;f<b.length;f++){var g=a.urlParam(d.href,b[f],"");g&&(d.linkId+="."+
b[f]+"."+g)}}return d.linkId}};a.linkTrackObject=new function(){var b=this;b.triggerObjectName="__"+(new Date).getTime()+"_"+parseInt(1E3*Math.random());var e=function(c,d){var e=d[b.triggerObjectName];a.config=a.getConfig(!0);a.config.customClickParameter=a.customClickParameter;a.ccParams=e.getCCParams();var f=a.config.linkId=e.getLinkId();a.linktrackOut=e.linktrackOut;a.sendinfo(a.config,f,e.action)},d=function(c){a.registerEvent(c,"click",function(d){if(d.which&&1==d.which||d.button&&1==d.button)a.delayLinkTrack&&
("function"===typeof d.preventDefault&&!c[b.triggerObjectName].isInternalLink())&&(d.preventDefault(),window.setTimeout(function(){document.location.href=c.href},a.delayLinkTrackTime)),e(d,c)})};b.linkTrackInit=function(){if(a.linkTrack&&("link"==a.linkTrack||"standard"==a.linkTrack)){for(var e=!1,f=0;f<webtrekkLinktrackObjects.length;f++)a==webtrekkLinktrackObjects[f]&&(e=!0);e||webtrekkLinktrackObjects.push(a);e=0;for(f=document.links.length;e<f;e++){var g=document.links[e],h=a.getAttribute(g,a.linkTrackAttribute),
l=a.getAttribute(g,"href");(a.linkTrackIgnorePattern&&l&&-1==l.search(a.linkTrackIgnorePattern)||!a.linkTrackIgnorePattern)&&("undefined"===typeof g[b.triggerObjectName]&&(h||"link"==a.linkTrack))&&(g[b.triggerObjectName]=new c(b,g),d(g))}}};b.linkTrackInit()};a.linkTrackInstall=a.linkTrackObject.linkTrackInit;a.linkTrackInit=a.linkTrackObject.linkTrackInit})(f);(function(a,c){var b=function(a,b){var c=null,f=b.type,g=a.getFormFieldName(b),h=a.getFormFieldValue(b);this.close=function(){null!==c&&
(window.clearInterval(c),c=null,a.formFieldData[g]=[f,h],a.formFieldDataPathAnalysis.push([g,f,h]))};this.start=function(){null===c&&(c=window.setInterval(function(){"undefined"!==typeof b&&(b&&null!==b)&&(h=a.getFormFieldValue(b),a.formFieldData[g]=[f,h])},50),delete a.formFieldDataUnused[g])}};a.formTrackObject=new function(c){var d=this,f=a.wtTypeof(window.onbeforeunload)?"beforeunload":"unload";d.formObject=!1;d.formFocus=!1;d.formName=!1;d.form=a.form;d.formFieldData={};d.formFieldDataUnused=
{};d.formFieldDataPathAnalysis=[];d.triggerObjectName="__"+(new Date).getTime()+"_"+parseInt(1E3*Math.random());var g=function(a){return"hidden"!=a&&"button"!=a&&"image"!=a&&"reset"!=a&&"submit"!=a&&"fieldset"!=a},h=function(a){return"select-multiple"!=a&&"select-one"!=a&&"checkbox"!=a&&"radio"!=a},l=function(){a:if(d.form&&!d.formObject)for(var b=document.forms,h=0,y=b.length;h<y;h++){var l=b[h];if(a.wtTypeof(l.elements.wt_form)){d.formObject=l;break a}}if(d.formObject){b=a.getAttribute(d.formObject,
a.formAttribute);d.formName=b?b:a.contentId.split(";")[0];b=0;h=d.formObject.elements;for(y=h.length;b<y;b++){var l=h[b],x=d.getFormFieldName(l);g(l.type)&&(x&&null!==x)&&(d.formFieldData[x]=[l.type,d.getFormFieldValue(l)],d.formFieldDataUnused[x]=[l.type,d.getFormFieldValue(l)],a.registerEvent(l,"focus",m),a.registerEvent(l,"blur",p))}a.registerEvent(d.formObject,"submit",s);a.registerEvent(window,f,c)}},m=function(a){a=document.all&&null!==window.event?window.event.srcElement:a.target;g(a.type)&&
d.formObject&&(d.formFocus=a,d.formFocus[d.triggerObjectName]=new b(d,d.formFocus),d.formFocus[d.triggerObjectName].start())},p=function(a){g((document.all&&null!==window.event?window.event.srcElement:a.target).type)&&d.formObject&&d.formFocus&&d.formFocus&&"undefined"!==typeof d.formFocus[d.triggerObjectName]&&d.formFocus[d.triggerObjectName].close()},s=function(b){!d.form||b.target!==d.formObject&&b.srcElement!==d.formObject||(a.formSubmit=!0)},t=function(b){var c=[];a.formFullContent&&(c=a.formFullContent.split(";"));
if(a.formAnonymous||h(b.type)){for(var e=0;e<c.length;e++)if(c[e]==d.getFormFieldName(b))return!1;return!0}return!1},r=function(b,c){c||(c=b);var d=a.getAttribute(c,a.formValueAttribute).replace(/[\.|;|\|]/g,"_");return h(b.type)?a.maxlen(a.wtUnescape(c.value),30):t(b)?"anon":a.maxlen(a.wtUnescape(d),30)},v=function(a,b,c,e){var f=a.replace(/[\.|;|\|]/g,"_")+".",f=f+(b+"|")+(c+"|");return f=e?f+"0":f+(d.formFocus&&d.getFormFieldName(d.formFocus)===a?"1":"0")},u=function(a,b){for(var c=[],d=0,e=b.length;d<
e;d++)if("undefined"!==typeof a[b[d]])if("select-multiple"==a[b[d]][0])for(var f=a[b[d]][1].split("|"),g=0,h=f.length;g<h;g++)c.push(v(b[d],a[b[d]][0],f[g]));else c.push(v(b[d],a[b[d]][0],a[b[d]][1]));return c.join(";")},w=function(){if(!d.formObject)return"";var b=[],c;c=[];if(a.wtTypeof(d.formObject.elements.wt_fields)){var e=d.formObject.elements.wt_fields.value;e&&(c=e.split(";"))}if(0>=c.length)for(var f in d.formFieldData)e=f,"string"===typeof e&&e&&c.push(e);f=!1;if(a.formPathAnalysis){(e=
u(d.formFieldDataUnused,c))&&b.push(e);for(var e=0,g=d.formFieldDataPathAnalysis,h=g.length;e<h;e++){var k;a:{k=0;for(var l=c.length;k<l;k++)if(g[e][0]===c[k]){k=!0;break a}k=!1}k&&(f=!0,b.push(v(g[e][0],g[e][1],g[e][2],!0)))}f&&(c=b[b.length-1],c=c.substr(0,c.length-1),b[b.length-1]=c+"1")}else return u(d.formFieldData,c);return b.join(";")};d.getFormFieldName=function(b){var c=b.name;a.formFieldAttribute&&(c="",(b=a.getAttribute(b,a.formFieldAttribute))||null!==b)&&(c=b);return c};d.getFormFieldValue=
function(b){var c=b.type,e="";if("select-multiple"==c){for(var e=[],f=0,g=b.options,h=g.length;f<h;f++)g[f].selected&&e.push(r(b,g[f]));0>=e.length&&e.push("empty");e=e.join("|")}else"select-one"==c?(e="",-1!==b.selectedIndex&&((e=r(b,b.options[b.selectedIndex]))&&null!==e||(e="empty"))):"checkbox"==c||"radio"==c?(e="",b.checked?(e=r(b))||(e="checked"):e="empty"):"hidden"!=c&&("button"!=c&&"image"!=c&&"reset"!=c&&"submit"!=c)&&(f=(e=r(b))?"filled_out":"empty",t(b)||(f=e),g=d.getFormFieldName(b),"undefined"!==
typeof a.formFieldDefaultValue[g]&&a.formFieldDefaultValue[g]==e&&"empty"!==f&&(f="empty"),f&&null!==f||(f="empty"),e=f);return t(b)&&"select-multiple"!==c&&"empty"!==e&&"filled_out"!==e?"anon":e};d.formTrackInstall=function(a){d.formObject=a?a:document.forms[0]?document.forms[0]:!1;d.formObject&&(d.form="1",l())};d.getFormTrackingData=function(){var b="";if(d.formObject){var c=w();c&&(b+="&fn="+a.wtEscape(d.formName)+"|"+(a.formSubmit?"1":"0"),b+="&ft="+a.wtEscape(c));a.formSubmit=!1;d.formName=
!1;d.formObject=!1;d.formFocus=!1;d.formFieldData={};d.formFieldDataUnused={};d.formFieldDataPathAnalysis=[]}return b};d.sendFormRequest=function(){!1!==a.beforeUnloadPixel?a.beforeUnloadPixel():a.executePlugin(a.getPluginConfig("form","before"));var b=d.getFormTrackingData();b&&a.quicksend(a.wtEscape(a.contentId.split(";")[0])+",1,"+a.baseparams(),b);!1!==a.afterUnloadPixel?a.afterUnloadPixel():a.executePlugin(a.getPluginConfig("form","after"))};d.form&&"1"==d.form&&l()}(c);a.formTrackInstall=a.formTrackObject.formTrackInstall;
a.formTrackInit=a.formTrackObject.formTrackInstall;a.sendFormRequest=a.formTrackObject.sendFormRequest;a.checkFormTracking=a.formTrackObject.getFormTrackingData})(f,function(){u("form")});this.cookieManager=function(a,c,b){this.name=a;this.keySeperator="~";this.fieldSeparator="#";this.durationSeperator="|";this.found=!1;this.expires=c?c:!1;this.accessPath=b?b:"/";this.rawValue="";this.fields=[];this.fieldsDuration=[];this.fieldnames=[];this.read=function(){this.rawValue=null;this.found=!1;for(var a=
document.cookie.split(";"),b=0;b<a.length;b++){var c=a[b].substr(0,a[b].indexOf("=")),f=a[b].substr(a[b].indexOf("=")+1),c=c.replace(/^\s+|\s+$/g,"");c==this.name&&(this.rawValue=f,this.found=!0)}if(null!==this.rawValue){a=b=0;do a=this.rawValue.indexOf(this.fieldSeparator,b),-1!=a&&(b=this.rawValue.substring(b,a).split(this.durationSeperator),c=b[0].split(this.keySeperator),this.fields[c[0]]=unescape(c[1]),this.fieldsDuration[c[0]]=parseInt(unescape(b[1])),b=a+1);while(-1!==a&&a!==this.rawValue.length-
1)}return this.found};this.getSize=function(){var a=(new Date).getTime(),b="",c;for(c in this.fields){var f=c;this.fieldsDuration[f]>=a&&(b+=escape(f)+this.keySeperator+escape(this.fields[f])+this.durationSeperator+escape(this.fieldsDuration[f])+this.fieldSeparator)}return b.length};this.write=function(){var a=(new Date).getTime(),b=!0,c=this.name+"=",f;for(f in this.fields){var g=f;this.fieldsDuration[g]>=a&&(c+=escape(g)+this.keySeperator+escape(this.fields[g])+this.durationSeperator+escape(this.fieldsDuration[g])+
this.fieldSeparator,b=!1)}a=b?-99999:this.expires;""!==a&&("number"===typeof a?(b=new Date,b.setTime((new Date).getTime()+864E5*a),c+="; expires="+b.toGMTString()):c+="; expires="+a.toGMTString());null!==this.accessPath&&(c+="; PATH="+this.accessPath);a=location.hostname;-1==a.search(/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/)&&(a=location.hostname.split("."),a=a[a.length-2]+"."+a[a.length-1]);document.cookie=c+("; DOMAIN="+a)};this.remove=function(){this.expires=-10;this.write();return this.read()};
this.get=function(a){var b=(new Date).getTime();return this.fieldsDuration[a]>=b?this.fields[a]:""};this.set=function(a,b,c,f,g){c||(c=31536E3);f||(f="last");var h=(new Date).getTime();if("first"==f&&""!==this.fields[a]&&null!==this.fields[a]&&this.fieldsDuration[a]>=h)return this.fields[a];this.fields[a]=b;this.fieldsDuration[a]=h+1E3*parseInt(c);g||this.write();return b};this.prepare=function(a,b,c,f){return this.set(a,b,c,f,!0)};this.read()}};
if("object"===typeof webtrekkConfig&&"object"===typeof webtrekkConfig.safetag&&-1===document.cookie.indexOf("wt_r=1")){var wts=wts||[],wt_safetagConfig={async:"undefined"!==typeof webtrekkConfig.safetag.async?webtrekkConfig.safetag.async:!0,timeout:"undefined"!==typeof webtrekkConfig.safetag.timeout?webtrekkConfig.safetag.timeout:2E3,safetagDomain:"undefined"!==typeof webtrekkConfig.safetag.safetagDomain?webtrekkConfig.safetag.safetagDomain:!1,safetagId:"undefined"!==typeof webtrekkConfig.safetag.safetagId?
webtrekkConfig.safetag.safetagId:!1,customDomain:"undefined"!==typeof webtrekkConfig.safetag.customDomain?webtrekkConfig.safetag.customDomain:!1,customPath:"undefined"!==typeof webtrekkConfig.safetag.customPath?webtrekkConfig.safetag.customPath:!1,option:"undefined"!==typeof webtrekkConfig.safetag.option?webtrekkConfig.safetag.option:{}};(function(g,u){var p=function(g){try{return encodeURIComponent(g)}catch(f){return escape(g)}},s=document.location.protocol;if("http:"==s||"https:"==s){var l="";g.customDomain&&
g.customPath?l=s+"//"+g.customDomain+"/"+g.customPath:g.safetagDomain&&g.safetagId&&(l=s+"//"+g.safetagDomain+"/resp/api/get/"+g.safetagId+"?url="+p(document.location.href));if(l){for(var r in g.option)l+="&"+r+"="+p(g.option[r]);webtrekkV3.prototype.safetag=g;webtrekkV3.prototype.safetagInProgress=!0;webtrekkV3.prototype.safetagParameter={};webtrekkV3.prototype.update=function(){};window.wts=u;window.safetagLoaderHandler=function(g,f){if(g&&f)if("onerror"==f)webtrekkV3.prototype.safetagInProgress=
!1;else if("onload"==f){if("undefined"!==typeof wt_r&&!isNaN(wt_r)){var l=new Date;document.cookie="wt_r=1;path=/;expires="+l.toUTCString(l.setTime(l.getTime()+1E3*parseInt(wt_r)))}webtrekkV3.prototype.safetagInProgress=!1}else"onreadystatechange"!=f||"loaded"!=g.readyState&&"complete"!=g.readyState||(g.onreadystatechange=null,g.onload(m))};if(g.async||"complete"===document.readyState||"interactive"===document.readyState){var p=document.getElementsByTagName("script")[0],m=document.createElement("script");
m.async=g.async;m.type="text/javascript";m.onerror=function(){safetagLoaderHandler(m,"onerror")};m.onload=function(){safetagLoaderHandler(m,"onload")};m.onreadystatechange=function(){safetagLoaderHandler(m,"onreadystatechange")};m.src=l;p.parentNode.insertBefore(m,p)}else l='<script type="text/javascript" src="'+l+'" onerror="safetagLoaderHandler(this,\'onerror\')"',l+=" onload=\"safetagLoaderHandler(this,'onload')\"",l+=" onreadystatechange=\"safetagLoaderHandler(this,'onreadystatechange')\"",l+=
">\x3c/script>",document.write(l)}}})(wt_safetagConfig,wts)};
