var _lpAtCfg={excludeUrls:["/^mms\\:\\/\\//","/http:\\/\\/.*?adtech\\.de.*/","/http:\\/\\/track\\.adform\\.net.*/","/http:\\/\\/clk\\.tradedoubler\\.com.*/","/http:\\/\\/ad-emea\\.doubleclick\\.net.*/","/http:\\/\\/.*\\.ak\\.fbcdn\\.net.*/"],pixUrl:"http://l.linkpulse.com/p.gif",rCfg:{className_thirdcol:{countInit:0,triggerType:"className",name:"pos",excludes:{className:[],id:[]},includes:{className:["newsitem","opointlist"],id:[]},triggerValue:"thirdcol",triggerTag:"DIV"},className_firstcol:{countInit:0,
triggerType:"className",name:"pos",excludes:{className:[],id:[]},includes:{className:["newsitem"],id:[]},triggerValue:"firstcol",triggerTag:"DIV"},className_secondcol:{countInit:0,triggerType:"className",name:"pos",excludes:{className:[],id:[]},includes:{className:["newsitem","FB_SERVER_IFRAME","eiendomsbasen","twocol"],id:[]},triggerValue:"secondcol",triggerTag:"DIV"}},cCfg:{className:{itemcrisis:"top",footer:"footer",globalnav:"header",secondcol:"middle",thirdcol:"right",footernav:"footer",firstcol:"main",
header:"header"},id:[]},siteId:223,goUrl:"http://eddamedia.linkpulse.com",debugMode:false},___u="http://login.linkpulse.com/lpToolbar/lp3Toolbar.js";if(document.cookie.indexOf("lpToolbarStatus=on")>-1)_loadLP3Toolbar();else location.href.match(/lpToolbar/)&&_loadLP3Toolbar();function _loadLP3Toolbar(){var a=document.getElementsByTagName("head")[0],b=document.createElement("script");b.setAttribute("type","text/javascript");b.id="_lp3ToolbarScript";b.setAttribute("src",___u);a.appendChild(b)}
var _lpAPI={version:"0.1",logClick:function(a){a=[a.category,"siteId="+_lpAtCfg.siteId,"afu="+_lpAt.escape(a.fromUrl),"atu="+_lpAt.escape(a.toUrl)];_lpAt.logEvent("e",a.join(";"))}},_lpAt={version:"3.5.4",isLoaded:false,handlers:5,preventInfiniteChildCounter:0,init:function(){if(document.body==null){_lpAt.error("BODY not ready");setTimeout("_lpAt.init()",100)}else if(!_lpAt.isLoaded){_lpAt.isLoaded=true;var a=(new Date).getTime();if(typeof _lpAtCfg=="undefined"||_lpAtCfg==null)_lpAt.error("Missing AutoTagger Config!");
else{if(!_lpAtCfg.debugMode&&location.href.match("lpDebug=1"))_lpAtCfg.debugMode=true;_lpAtCfg.debugMode&&_lpAt.debug("DEBUGMODE ON");_lpAt.debug("initializing");_lpAt.setupRequestHandlers();_lpAt.addEvt(document,"mousedown",_lpAt.handleClickEvent);_lpAt.logPageView();_lpAt.logEntryClick();var b=(new Date).getTime();_lpAt.debug("init done used: "+(b-a)+" ms")}}},setupRequestHandlers:function(){_lpAt.requestHandlers=[];_lpAt.currentHandler=0},request:function(a){if(_lpAt.currentHandler>=_lpAt.handlers)_lpAt.currentHandler=
0;var b=document.createElement("IMG");b.id="_lpAutoTag_"+_lpAt.currentHandler;b.style.height="0px";b.style.width="0px";b.style.border="0px solid red";_lpAt.requestHandlers[_lpAt.currentHandler]=b;try{document.body.appendChild(b)}catch(c){_lpAt.error("Could not setup request handler:"+c.toString())}_lpAt.requestHandlers[_lpAt.currentHandler].src=a;_lpAt.currentHandler++},hasCategory:function(a){if(a.id&&_lpAtCfg.cCfg&&_lpAtCfg.cCfg.id){if(_lpAtCfg.cCfg.id[a.id])return _lpAtCfg.cCfg.id[a.id];var b=
this.isAffectedByRuleId("id",a.id,a);if(b){this.debug("GOT RULE: "+b);if(b=this.executeRule(b,a))return b}}if(a.className&&_lpAtCfg.cCfg&&_lpAtCfg.cCfg.className)for(var c=a.className.split(/\s+/),d=0;d<c.length;d++){if(_lpAtCfg.cCfg.className[c[d]])return _lpAtCfg.cCfg.className[c[d]];if(b=this.isAffectedByRuleId("className",c[d],a)){this.debug("GOT RULE: "+b);if(b=this.executeRule(b,a))return b}}return""},isAffectedByRuleId:function(a,b,c){for(ruleId in _lpAtCfg.rCfg)for(var d=0;d<_lpAtCfg.rCfg[ruleId].includes[a].length;d++)if(_lpAtCfg.rCfg[ruleId].includes[a][d]==
b&&this.isChildElementOfRuleId(c,ruleId))return ruleId;return null},isChildElementOfRuleId:function(a,b){if(_lpAtCfg.rCfg[b].triggerType=="id"){var c=this.getEbi(_lpAtCfg.rCfg[b].triggerValue);if(c)if(this.isParentForElm(c,a))return true}else if(_lpAtCfg.rCfg[b].triggerType=="className"){c=this.getEbc(_lpAtCfg.rCfg[b].triggerValue);for(var d=0;d<c.length;d++)if(this.isParentForElm(c[d],a))return true}return false},executeRule:function(a,b){this.debug("EXEC rule: "+a+" "+b);if(!_lpAtCfg.rCfg||!_lpAtCfg.rCfg[a])return null;
var c=[];if(_lpAtCfg.rCfg[a].triggerType=="id")c.push(this.getEbi(_lpAtCfg.rCfg[a].triggerValue));else if(_lpAtCfg.rCfg[a].triggerType=="className")c=this.getEbc(_lpAtCfg.rCfg[a].triggerValue);this.debug(c.length);for(var d=parseInt(_lpAtCfg.rCfg[a].countInit),f=0;f<c.length;f++)for(var g=this.getAllChildsMatchingRule(c[f],_lpAtCfg.rCfg[a].includes,_lpAtCfg.rCfg[a].excludes),h=0;h<g.length;h++){d++;if(g[h]==b)return _lpAtCfg.rCfg[a].name+d}return null},getAllChildsMatchingRule:function(a,b,c){_lpAt.preventInfiniteChildCounter++;
var d=[],f=a.childNodes;if(!a||!f)return d;if(!f.length)return d;if(document.all)if(_lpAt.preventInfiniteChildCounter>500)return d;for(a=0;a<f.length;a++)if(!(!f[a].tagName||f[a].tagName.match(/(?:INPUT|FORM|SCRIPT)/i))){if(f[a].id&&this.testRuleMatch(f[a].id,b,c)){d.push(f[a]);if(_lpAtCfg._nestingDisabled)continue}else if(f[a].className&&this.testRuleMatch(f[a].className,b,c)){d.push(f[a]);if(_lpAtCfg._nestingDisabled)continue}if(f[a].childNodes.length>0)for(var g=this.getAllChildsMatchingRule(f[a],
b,c),h=0;h<g.length;h++)d.push(g[h])}return d},testRuleMatch:function(a,b,c){a=a.split(/\s+/);for(type in c)for(var d=0;d<c[type].length;d++)for(var f=0;f<a.length;f++)if(a[f]==c[type][d])return false;for(type in b)for(d=0;d<b[type].length;d++)for(f=0;f<a.length;f++)if(a[f]==b[type][d])return true;return false},getCategory:function(a){a=a;for(var b=[];a.parentNode;){var c=this.hasCategory(a);c&&b.push(c);a=a.parentNode}if(b.length>0)return b.reverse().join("_");return"unknown"},testExclusion:function(a){var b=
false;if(_lpAtCfg.excludeUrls==""||_lpAtCfg.excludeUrls==null||_lpAtCfg.excludeUrls.length==0)return b;for(var c=0;c<_lpAtCfg.excludeUrls.length;c++)if(a.match(_lpAtCfg.excludeUrls[c])!=null){b=true;break}return b},logClick:function(a){var b=[this.getCategory(a),"siteId="+_lpAtCfg.siteId,"afu="+_lpAt.escape(_lpAtCfg.testUrl?_lpAtCfg.testUrl:location.href),"atu="+_lpAt.escape(a.href)];(a=this.execPlugins("click",a))&&b.push(a);this.logEvent("e",b.join(";"))},logPageView:function(){var a=["pageview",
"siteId="+_lpAtCfg.siteId,"afu="+_lpAt.escape(_lpAtCfg.testUrl?_lpAtCfg.testUrl:location.href),"fpn="+_lpAt.escape(document.title)],b=this.execPlugins("pageView");b&&a.push(b);_lpAt.logEvent("v",a.join(";"))},logEntryClick:function(){if(!(!document.referrer||document.referrer=="")){var a=this.getTopDomain(document.referrer),b=this.getTopDomain(location.href);if(a!=b){a=["entryclick","_ise=1","siteId="+_lpAtCfg.siteId,"afu="+_lpAt.escape(document.referrer),"atu="+_lpAt.escape(location.href)];_lpAt.logEvent("e",
a.join(";"))}}},logEvent:function(a,b){_lpAt.preventInfiniteChildCounter=0;if(_lpAtCfg.goUrl.match(/^http/i)==null)_lpAtCfg.goUrl="//"+_lpAtCfg.goUrl;if(!_lpAtCfg.pixUrl||_lpAtCfg.pixUrl=="")_lpAtCfg.pixUrl=window.location.protocol+"//l.linkpulse.com/p.gif";this.debug(a+" "+b);var c=_lpAtCfg.goUrl+"/go/"+a+"/"+b+";_u="+((new Date).getTime()+"."+Math.random(10)*1E3)+"/"+_lpAtCfg.pixUrl;if(_lpAtCfg.debugMode)return this.debugGoUrl(c);this.request(c)},isParentForElm:function(a,b){for(var c=b.parentNode;c!=
null;){if(c==a)return true;c=c.parentNode}return false},getEbc:function(a){if(document.getElementsByClassName)return document.getElementsByClassName(a);if(!a)return[];for(var b=document.getElementsByTagName("*"),c=[],d=b.length,f=0;f<d;f++)if(b[f].className)for(var g=b[f].className.split(/\s+/),h=0;h<g.length;h++)g[h]==a&&c.push(b[f]);return c},getEbi:function(a){return document.getElementById(a)},addEvt:function(a,b,c,d){if(a.addEventListener)a.addEventListener(b,c,d);else if(a.attachEvent)a.attachEvent("on"+
b,c);else a["on"+b]=c},handleClickEvent:function(a){e=_lpAt.parseEvent(a);if(_lpAtCfg.debugMode&&e&&e.target&&e.target.href&&e.target.href.match("#autoTagger"))e.target.href=e.target.getAttribute("orgHref");if(e.target.tagName!="A"||e.target.href==null||e.target.href==""||e.target.href=="#"||e.target.href==document.location+"#"||e.target.href.match(/mailto/i)||e.target.href.match(/javascript\:/i)||e.target.href.match(/^[a-z0-9\_\:A-Z]+\([^\)]*\)\;*$/)||_lpAt.testExclusion(e.target.href))return true;
_lpAt.logClick(e.target);if(_lpAtCfg.debugMode){a=e.target.href;e.target.href="#autoTagger";e.target.setAttribute("orgHref",a);return false}return true},stopLink:function(){return false},parseEvent:function(a){a=a||window.event;var b={};b.type=a.type;b.button=a.button;if(a.target)b.target=a.target;else if(a.srcElement)b.target=a.srcElement;if(b.target.nodeType==3)b.target=b.target.parentNode;for(;b.target!=null&&b.target.tagName!=null&&b.target.tagName.toLowerCase()!="a";)b.target=b.target.parentNode;
return b},escape:function(a){if(a.substr(0,4).toLowerCase()=="http")a=a.replace(/^https?\:\/\//,"");a=a.replace(/\//g,"a47");a=a.replace(/\;/g,"a59");return encodeURIComponent(a)},unescape:function(a){a=a.replace(/a47/g,"/");a=a.replace(/a59/g,";");return unescape(a)},execPlugins:function(a,b){this.debug("execPlugins: "+a+" "+b);if(typeof _lpAtCfg.plugins=="undefined"||typeof _lpAtCfg.plugins[a]=="undefined")return null;for(var c=[],d=0;d<_lpAtCfg.plugins[a].length;d++)try{var f=new Function("ahref",
"return "+_lpAtCfg.plugins[a][d]+"(ahref)");this.debug("execPlugins, running: "+f);var g=f(b);this.debug("resultPlugin: "+g);g&&g!=""&&c.push(g)}catch(h){this.error("ERROR execPlugins: "+h.toString());return null}if(c)return c.join(";");return null},getCookie:function(a){var b=document.cookie.indexOf(a+"=");if(b==-1)return false;var c=document.cookie.indexOf(";",b);if(c==-1)c=document.cookie.length;return unescape(document.cookie.substring(b+a.length+1,c))},setCookie:function(a,b,c,d){d=d>0?"; expires="+
(new Date((new Date).getTime()+d*1E3)).toGMTString():"";a=a+"="+escape(b)+d+"; domain="+c;this.debug("Set-cookie: "+a);document.cookie=a},getTopDomain:function(a){a=a.replace(/^[a-zA-Z]+\:\/+/,"").split(/\/+/);if(a.length>0){a=a[0].split(".");return a.length>2?a[1]+"."+a[2]:a[2]+"."+a[1]}return""},debug:function(a){_lpAtCfg.debugMode&&this.verbose("DEBUG",a)},error:function(a){this.verbose("ERROR",a)},verbose:function(a,b){if(_lpAtCfg.debugMode)try{typeof window.console!="undefined"&&console.log&&
console.log(a+" autoTagger["+this.version+"]: "+b)}catch(c){}},debugGoUrl:function(a){a=a.split(/;/);var b=a[0].split("/"),c=["Log server="+b[2],"Site id="+a[1].split("=")[1],"Category="+b[5],"From url="+a[2].split("=")[1]];b[5]=="pageview"?c.push("Page title="+a[3].split("=")[1]):c.push("To url="+a[3].split("=")[1]);for(var d="",f=0;f<c.length;f++){var g=c[f].split("=");d+='<li style="color: white"><b style="color: white">'+g[0]+"</b>: "+this.unescape(g[1])}c="";for(f=4;f<a.length-1;f++){g=a[f].split("=");
c+='<li style="color: white"><b style="color: white">'+g[0]+"</b>: "+this.unescape(g[1])}if(c!="")d+="<hr><b>Log attribute(s):</b><br>"+c;this.showMsg("Log type - "+(b[4]=="v"?"Page impression":"Click"),d)},showMsg:function(a,b){var c=this.getEbi("_autoTaggerMsgBoxContainer_");if(!c){c=document.createElement("SPAN");c.id="_autoTaggerMsgBoxContainer_";c.style.position="fixed";c.style.zIndex=1E6;c.style.top="20px";c.style.right="20px";c.style.width="350px";c.style.display="none";document.body.appendChild(c);
this.showMsgIdx=0}var d=document.createElement("DIV");d.id="_autoTaggerMsgBox_"+this.showMsgIdx;d.style.borderBottom="1px solid white";d.style.border="1px solid black";d.style.backgroundColor="black";d.style.opacity=0.8;d.style.filter="alpha(opacity=9)";d.style.MozBorderRadius="10px";d.style.WebkitBorderRadius="10px";d.style.borderRadius="10px";d.style.color="white";d.style.fontSize="12px";d.style.fontFamily="verdana,tahoma,arial";d.style.marginTop="5px";d.style.padding="5px";var f=document.createElement("DIV");
f.style.verticalAlign="middle";f.style.background='url("http://login.linkpulse.com/o2www/images/lp/favicon/favicon.ico") left top no-repeat';f.style.fontWeight="bold";f.style.paddingLeft="20px";f.style.height="20px";f.style.borderBottom="1px solid white";f.style.marginBottom="3px";f.style.color="white";f.innerHTML=a&&a!=""?a:"AutoTagger: ";d.appendChild(f);f=document.createElement("DIV");f.innerHTML=b;d.appendChild(f);c.firstChild?c.insertBefore(d,c.firstChild):c.appendChild(d);c.style.display="";
this.showMsgIdx++;setTimeout('_lpAt.hideMsg("'+d.id+'");',6E3)},hideMsg:function(a){var b=this.getEbi("_autoTaggerMsgBoxContainer_");if(b)(a=_lpAt.getEbi(a))&&b.removeChild(a)}};_lpAt.addEvt(window,"load",_lpAt.init,true);
//<!-- http://www.linkpulse.com  Fri Feb 11 16:18:38 2011 - lp1.linkpulse.com - copyright 2000-2011 OnSite Solutions AS -->
