var timervar=null;function helsenordChangeLocation(d){var b=d.options[d.selectedIndex].value;if(b=="none"){return true}var e=b.split("|");var a=e[0];var c=e[1];if(c==1){window.open(a)}else{window.location=a}}function printArticle(a){behind=window.open(a,"printwin","height=650,width=810,status=yes,toolbar=yes,directories=no,menubar=no,location=no,resizable=no,scrollbars=yes")}function getContentAreaHeight(){if(document.all){var a=document.all.menuheighholder.height}else{if(document.getElementById){var a=document.getElementById("menuheighholder").height}}return a}function getAbsolutePos(a){for(var c=0,b=0;a!=null;c+=a.offsetLeft,b+=a.offsetTop,a=a.offsetParent){}return{x:c,y:b}}function showMenuLayer(b,d,c,a){if(submenuLayers[b]){keepMenuLayerOpen(b);if(c>0){keepMenuLayerOpen(c)}if(document.getElementById&&document.getElementById("submnuimg-"+b)){theImage=document.getElementById("submnuimg-"+b);pos=getAbsolutePos(theImage);if(d>5){initX=pos.x+15;initY=pos.y-4}else{initX=pos.x+0;initY=pos.y+11}}else{initX=x;initY=y}closeActiveLayer(d);submenuLayers[b].moveTo(initX,initY);submenuLayers[b].show();activeID[d]=b}else{closeActiveLayer(d)}}function hideMenuLayer(a,b){timervar=setTimeout("closeAllActiveLayers()",1000)}function closeActiveLayer(a){if(activeID[a]>0){submenuLayers[activeID[a]].hide()}for(x=a;x<12;x++){if(activeID[x]>0){submenuLayers[activeID[x]].hide()}}}function closeAllActiveLayers(){closeActiveLayer(0)}function keepMenuLayerOpen(a){if(timervar!=0){clearTimeout(timervar);timervar=null}}function Pop(c,d,a,b,f,e){if(d==null){w=600}else{w=d}if(a==null){h=400}else{h=a}if(b==null){st=0}else{st=b}if(f==null){tb=0}else{tb=f}if(e==null){sb=1}else{sb=e}open(c,"_blank","status="+st+",toolbar="+tb+",scrollbars="+sb+",resizable=1,width="+w+",height="+h+",screenX=30,screenY=30,left=30,top=30")}function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{a=""}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function changeCssClass(d,b,a){for(var c=0;c<a.length;c++){try{document.getElementById(a[c]).className=document.getElementById(a[c]).className.replace(d,"")}catch(f){}}try{document.getElementById(b).className=document.getElementById(b).className+" "+d}catch(f){}}var HNTileLoaderXMLHttpObjectArray=new Array();var HNXmlHttpUrl="/xmlhttprequest.php";function HNRenderAjaxTile(l,j,k,c,b,g,a,d){HNTileLoaderXMLHttpObjectArray[c]=new CtXMLHttpRequest();var f=HNTileLoaderXMLHttpObjectArray[c];try{document.getElementById("hntilecontainer-content-"+l+"-loading").style.display="block";document.getElementById("hntilecontainer-content-"+l).style.display="none"}catch(i){}f.SetOnreadystatechange(function(){if(f.getReadyState()==4){try{document.getElementById("hntilecontainer-content-"+l+"-loading").style.display="none";document.getElementById("hntilecontainer-content-"+l).style.display="block";document.getElementById("hntilecontainer-content-"+l).innerHTML=f.getResponseText()}catch(o){}}});var n=new Object();n.uniqTileContainerID=l;n.categorytemplatetileID=c;n.categorytemplateID=j;n.categoryID=b;n.tileCheckID=g;n.articleID=a;n.placeholdername=k;for(var m in d){n[m]=d[m]}f.openCorePublishService(HNXmlHttpUrl,"tileutil.rendertile","html",n)};
