var _lpAtCfg={excludeUrls:["/^mms\\:\\/\\//"],pixUrl:"http://nrk.no/pix.gif?",rCfg:{className_nrkSkoleCol:{countInit:0,triggerType:"className",name:"pos",excludes:{className:[],id:[]},includes:{className:["mod"],id:[]},triggerValue:"nrkSkoleCol",triggerTag:"DIV"},className_nyhetsliste:{countInit:0,triggerType:"className",name:"pos",excludes:{className:[],id:[]},includes:{className:["intro-element"],id:[]},triggerValue:"nyhetsliste",triggerTag:"DIV"},className_side:{countInit:0,triggerType:"className",
name:"pos",excludes:{className:[],id:[]},includes:{className:["group","article-extract"],id:[]},triggerValue:"side",triggerTag:"DIV"},"id_blime-content":{countInit:0,triggerType:"id",name:"pos",excludes:{className:[],id:[]},includes:{className:["fullfront","blime-post"],id:[]},triggerValue:"blime-content",triggerTag:"DIV"},"className_outer-column":{countInit:0,triggerType:"className",name:"pos",excludes:{className:[],id:[]},includes:{className:["box","promo"],id:[]},triggerValue:"outer-column",triggerTag:"DIV"},
className_nrkSkoleMain:{countInit:0,triggerType:"className",name:"pos",excludes:{className:[],id:[]},includes:{className:["mainFeature-content","categoryThumb-content"],id:[]},triggerValue:"nrkSkoleMain",triggerTag:"DIV"},className_main:{countInit:0,triggerType:"className",name:"pos",excludes:{className:[],id:[]},includes:{className:["article-extract"],id:[]},triggerValue:"main",triggerTag:"DIV"},id_main:{countInit:0,triggerType:"id",name:"pos",excludes:{className:[],id:[]},includes:{className:["intro-element"],
id:[]},triggerValue:"main",triggerTag:"DIV"},id_left:{countInit:0,triggerType:"id",name:"pos",excludes:{className:[],id:[]},includes:{className:["superpost","single"],id:[]},triggerValue:"left",triggerTag:"DIV"}},cCfg:{className:{"current-programs":"currentprograms","nettv-header":"header",table_bliste_blue:"bliste","program-schedule":"programschedule","nettv-footer":"footer",content:"content",p3tvmeny:"menu",program:"program",table_breadcrumbs:"breadcrumbs",footer:"footer",foot:"foot","nettv-container":"nett-tv",
"nettv-latest":"latest","top-content-side":"right",nyhetsliste:"nyhetsliste","frontpage-bottom":"bottom",head:"head",p3menu:"p3menu",nrkSkoleCol:"rightcol",guide:"guide","nrk-globalfooter":"globalfooter",popularSearches:"popularsearches",main:"main","lp-channelmenu":"header_navigation_dropdown",buttonbar:"navigation",table_mainbanner:"mainbanner",bottomlist:"bottomlist",nrkTopNav:"nrktopnav","nettv-topviewed":"topviewed",box:"box",pod:"podkast",breadcrumbs:"breadcrumbs",juntaheader:"header","nettv-content":"content",
"content-overview":"contentoverview","nettv-recommended":"recommended","tab-panels":"panels","ln-latest-news":"latestnews",submenu:"submenu",table_aliste_blue:"aliste","top-content-main":"left",tvguide:"tvguiden",accordion:"accordion","lp-m-nav":"header",navigation:"meny","outer-column":"outercolumn","nrk-globalnavigation":"globalnavigation","tvguide-hd":"tvguiden",hovedmeny:"meny",sidebar:"sidebar",side:"side","menu-column":"menucolumn","frontpage-top-news":"news","page-hd":"header","inner-column":"innercolumn",
"fp-anmeldelser":"fpanmeldelser","frontpage-middle":"middle","frontpage-top-recommended":"reccomended"},id:{left:"left",naturmeny:"naturmeny",footerx:"footer",sfFooter:"footer",content:"content",footer:"footer","blime-content":"content",day_list:"daylist",meny:"meny",epg_tv:"tv",tvRadioControl:"tvradiocontrol",wrapper:"wrapper","get-recent-comments":"recentcomments","blime-aside":"aside",nav:"navigation",column:"column","tekst-tv":"teksttv",supermenu:"menu",introSlider:"introslider",p3spillelisteheader:"header",
menuwrapper:"menu",main:"main",top:"header",column1:"column1",rightcol:"rightcol",photos:"photos","forsidetoppcontent-2":"forsidetopcontent2",epg_radio:"radio",column2:"column2",sjef_content:"sjefcontent",introSliderController:"controller","channel-list":"channellist",superfooter:"footer",forsidetoppcontent:"forsidetopcontent",superheader:"header",submenu:"submenu",leftcol:"leftcol",super_epg:"guide",menu:"menu","related-sites":"relatedsites",container:"container",table_content:"content",navigation:"navigation",
sidebar:"sidebar",right:"right",hovedmeny:"hovedmeny",hpleft:"hpleft",side:"side","main-wrapper":"main",header:"header"}},siteId:185,goUrl:"http://nrkno.linkpulse.com",debugMode:!1},___u="http://login.linkpulse.com/lpToolbar/lp3Toolbar.js";-1<document.cookie.indexOf("lpToolbarStatus=on")?_loadLP3Toolbar():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.7",isLoaded:!1,isMoveEvent:!1,touchDelay:null,touchStartCnt:0,handlers:5,preventInfiniteChildCounter:0,init:function(){if(null==document.body)_lpAt.error("BODY not ready"),setTimeout("_lpAt.init()",100);else if(!_lpAt.isLoaded){_lpAt.isLoaded=!0;var a=(new Date).getTime();if("undefined"==typeof _lpAtCfg||
null==_lpAtCfg)_lpAt.error("Missing AutoTagger Config!");else{if(!_lpAtCfg.debugMode&&location.href.match("lpDebug=1"))_lpAtCfg.debugMode=!0;_lpAtCfg.debugMode&&_lpAt.debug("DEBUGMODE ON");_lpAt.debug("initializing");_lpAt.setupRequestHandlers();!window.chrome&&(window.Touch||window.TouchEvent)?(_lpAt.addEvt(window,"touchstart",function(a){_lpAt.touchDelay=50;_lpAt.isMoveEvent=!1;_lpAt.handleClickEvent(a)}),_lpAt.addEvt(window,"touchmove",function(){_lpAt.isMoveEvent=!0})):_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=[];for(var a=_lpAt.currentHandler=0;a<_lpAt.handlers;a++){var b=document.createElement("IMG");b.id="_lpAutoTag_"+a;b.style.height="0px";b.style.width="0px";b.style.border="0px solid red";_lpAt.requestHandlers[a]=b;try{document.body.appendChild(b)}catch(c){_lpAt.error("Could not setup request handler:"+c.toString()),
_lpAt.handlers=null}}},request:function(a){if(null!=_lpAt.handlers){if(_lpAt.isMoveEvent)return _lpAt.isMoveEvent=!1,!0;if(_lpAt.touchDelay&&0<_lpAt.touchDelay)return setTimeout('_lpAt.request("'+a+'");',_lpAt.touchDelay),_lpAt.touchDelay=0,!0;_lpAt.requestHandlers[_lpAt.currentHandler].src=a;++_lpAt.currentHandler;if(_lpAt.currentHandler>=_lpAt.handlers)_lpAt.currentHandler=0}},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),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))if(this.debug("GOT RULE: "+b),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("id"==_lpAtCfg.rCfg[b].triggerType){var c=this.getEbi(_lpAtCfg.rCfg[b].triggerValue);if(c&&this.isParentForElm(c,a))return!0}else if("className"==_lpAtCfg.rCfg[b].triggerType)for(var c=this.getEbc(_lpAtCfg.rCfg[b].triggerValue),d=0;d<c.length;d++)if(this.isParentForElm(c[d],a))return!0;return!1},executeRule:function(a,b){this.debug("EXEC rule: "+a+" "+b);if(!_lpAtCfg.rCfg||!_lpAtCfg.rCfg[a])return null;
var c=[];"id"==_lpAtCfg.rCfg[a].triggerType?c.push(this.getEbi(_lpAtCfg.rCfg[a].triggerValue)):"className"==_lpAtCfg.rCfg[a].triggerType&&(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++)if(d++,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&&500<_lpAt.preventInfiniteChildCounter)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)){if(d.push(f[a]),_lpAtCfg._nestingDisabled)continue}else if(f[a].className&&this.testRuleMatch(f[a].className,b,c)&&(d.push(f[a]),_lpAtCfg._nestingDisabled))continue;if(0<f[a].childNodes.length)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!1;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!0;return!1},getCategory:function(a){for(var b=[];a.parentNode;){var c=this.hasCategory(a);c&&b.push(c);a=a.parentNode}return 0<b.length?b.reverse().join("_"):"unknown"},testExclusion:function(a){var b=!1;if(""==_lpAtCfg.excludeUrls||
null==_lpAtCfg.excludeUrls||0==_lpAtCfg.excludeUrls.length)return b;for(var c=0;c<_lpAtCfg.excludeUrls.length;c++)if(null!=a.match(_lpAtCfg.excludeUrls[c])){b=!0;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=!1,b=document.getElementsByTagName("META");for(i=
0;i<b.length;i++)if("linkpulse-title"==b[i].name.toLowerCase())a=b[i].content;if(!a)a=document.title;a=["pageview","siteId="+_lpAtCfg.siteId,"afu="+_lpAt.escape(_lpAtCfg.testUrl?_lpAtCfg.testUrl:location.href),"fpn="+_lpAt.escape(a)];(b=this.execPlugins("pageView"))&&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);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(null==_lpAtCfg.goUrl.match(/^http/i))_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()+"."+1E3*Math.random(10))+"/"+_lpAtCfg.pixUrl;if(_lpAtCfg.debugMode)return this.debugGoUrl(c);
this.request(c)},isParentForElm:function(a,b){for(var c=b.parentNode;null!=c;){if(c==a)return!0;c=c.parentNode}return!1},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){a.addEventListener?
a.addEventListener(b,c,d):a.attachEvent?a.attachEvent("on"+b,c):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("A"!=e.target.tagName||null==e.target.href||""==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!0;_lpAt.logClick(e.target);return _lpAtCfg.debugMode?(a=e.target.href,e.target.href="#autoTagger",e.target.setAttribute("orgHref",a),!1):!0},stopLink:function(){return!1},parseEvent:function(a){var a=a||window.event,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(3==b.target.nodeType)b.target=b.target.parentNode;for(;null!=b.target&&null!=b.target.tagName&&"a"!=b.target.tagName.toLowerCase();)b.target=
b.target.parentNode;return b},escape:function(a){"http"==a.substr(0,4).toLowerCase()&&(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("undefined"==typeof _lpAtCfg.plugins||"undefined"==typeof _lpAtCfg.plugins[a])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){return this.error("ERROR execPlugins: "+h.toString()),null}return c?c.join(";"):null},getCookie:function(a){var b=document.cookie.indexOf(a+"=");if(-1==b)return!1;var c=document.cookie.indexOf(";",b);if(-1==c)c=document.cookie.length;return unescape(document.cookie.substring(b+a.length+1,c))},setCookie:function(a,b,c,d){d=0<
d?"; expires="+(new Date((new Date).getTime()+1E3*d)).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(/\/+/);return 0<a.length?(a=a[0].split("."),2<a.length?a[1]+"."+a[2]:a[2]+"."+a[1]):""},debug:function(a){_lpAtCfg.debugMode&&this.verbose("DEBUG",a)},error:function(a){this.verbose("ERROR",a)},verbose:function(a,b){if(_lpAtCfg.debugMode)try{"undefined"!=typeof window.console&&console.log&&
console.log(a+" autoTagger["+this.version+"]: "+b)}catch(c){}},debugGoUrl:function(a){var a=a.split(/;/),b=a[0].split("/"),c=["Log server="+b[2],"Site id="+a[1].split("=")[1],"Category="+b[5],"From url="+a[2].split("=")[1]];"pageview"==b[5]?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=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]);""!=c&&(d+="<hr><b>Log attribute(s):</b><br>"+c);this.showMsg("Log type - "+("v"==b[4]?"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_");b&&(a=_lpAt.getEbi(a))&&b.removeChild(a)}};_lpAt.addEvt(window,"load",_lpAt.init,!0);
//<!-- http://www.linkpulse.com  Wed Dec 14 12:36:14 2011 - lp1.linkpulse.com - copyright 2000-2011 OnSite Solutions AS -->
