tdco_addEventLoad(handleInit);function handleInit(){typeof dm2=="object"&&dm2menu(dm2);typeof footpaths=="object"&&footpath(footpaths);typeof local_init=="function"&&local_init();typeof moveCustom=="function"&&moveCustom()}function tdco_console(a){is.FIREFOX&&setTimeout(function(){throw new Error("[debug] "+a);},0)}
function moveCustom(){var a="",b=getEle("content");if(b){b=b.getElementsByTagName("DIV");for(var c=0;c<b.length;c++)if(b[c].className=="leftbar custom"||b[c].className=="custom leftbar"){a+=b[c].innerHTML;b[c].innerHTML=""}if(a)getEle("navigationextra").innerHTML+=a}}function tdco_addEventLoad(a){var b=window.onload;window.onload=typeof window.onload!="function"?a:function(){b&&b();a()}}
function tdco_mailcheck(){var a=true;if(document.location.host.indexOf("mail.tdconline.dk")>-1)a=false;var b=getCookie("tdcossomailcheck");if(b){b=b.split(";");var c=(new Date).getTime();if(typeof b[0]!="undefined"&&typeof b[1]!="undefined"&&c-b[0]<3E5){a=false;tdco_mailinfo({unread:b[1]},1)}}return a}
function tdco_mailinfo(a,b){if(document.location.host.indexOf("mail.tdconline.dk")>-1)typeof a.unread!="undefined"&&setCookie("tdcossomailcheck","1;"+a.unread,"","/","tdconline.dk");else if(!getEle("tdcossoinfomail")){var c=getEle("tdcssoinfo");if(c&&typeof a.unread!="undefined"){if(a.unread>=0){var d=getEle("tdcossoinfoname"),e=document.createElement("div");e.setAttribute("id","tdcossoinfomail");e.setAttribute("onclick",'Instadia_sendEvent("0118m","_klik_topbar_mail");document.location.href="http://mail.tdconline.dk/"');
e.innerHTML='<a href="http://mail.tdconline.dk/" target="_top">'+(a.unread>0?"<strong>":"")+a.unread+(a.unread==1?" ny mail":" nye mails")+(a.unread>0?"</strong>":"")+"</a>";c.insertBefore(e,d)}if(!b){b=(new Date).getTime();setCookie("tdcossomailcheck",b+";"+a.unread,"","/","tdconline.dk")}}}}function tdco_toggleDisplay(a){state=document.getElementById(a).style.display;if(state=="block")document.getElementById(a).style.display="none";else document.getElementById(a).style.display="block"}
function toggleFeedbackComment(){if(getEle("t_feedback_comment")){myElm=getEle("t_feedback_comment");myElm.style.display=myElm.style.display==""||myElm.style.display=="none"?"block":"none"}}
function dm2menu(a){if(typeof a=="object"&&a.length>0){var b=getEle("navigation");if(b){var c,d=b.getElementsByTagName("ul");if(!d||!d.length){c=document.createElement("ul");b.appendChild(c);d=b.getElementsByTagName("ul")}var e;b=false;for(var f=0;f<a.length;f++){if(typeof a[f]=="undefined")break;c=document.createElement("li");if(typeof a[f][5]=="boolean"&&a[f][5]){c.setAttribute("className","on");c.setAttribute("class","on")}c.appendChild(createLink(a[f]));if(f!=0&&typeof a[f][4]=="boolean"&&a[f][4]){if(!b){e=
document.createElement("ul");d[0].lastChild.appendChild(e)}e=d[0].lastChild.childNodes[1];b=!b;e.appendChild(c)}else d[0].appendChild(c)}}}}
function createLink(a){var b;if(typeof a[1]!="undefined"&&a[1]!=""){b=document.createElement("a");b.setAttribute("href",a[1]);typeof a[2]!="undefined"&&a[2]!=""&&b.setAttribute("title",a[2]);if(typeof a[3]!="undefined")a[3]!=""&&b.setAttribute("target",a[3]);else b.setAttribute("target","_top");b.appendChild(document.createTextNode(a[0]))}else b=document.createTextNode(a[0]);return b}
function footpath(a){var b=getEle("footpath");if(b&&typeof a=="object"&&a.length>1){var c=b.getElementsByTagName("li");c=c[c.length-1];c.removeChild(c.childNodes[0]);c.appendChild(createLink(a[0]));for(c=1;c<a.length;c++){var d=document.createElement("li");d.appendChild(createLink(a[c]));b.appendChild(d)}}}
function drawKontakt(){document.write('<a href="" onclick="popup(\'http://tdconline.dk/kontakt/?dogtag='+(typeof t_dogtag!="undefined"?t_dogtag:"unknown")+"&url="+location.href+"',570,520);return false;\">Kontakt</a>")}function randomNo(a){return Math.random()*a}function sethp(a){var b=getEle("ohp");if(b){b.style.behavior="url(#default#homepage)";a?b.setHomePage(a):b.setHomePage(document.location)}}
function drawMakeHomepage(){is.IEapp&&is.version>4&&!is.OPERAapp&&document.write('<a href="javascript:sethp()" onmouseover="window.status=\'G&oslash;r til startside\';return true;" onmouseout="window.status=\'\'">G&oslash;r til startside</a><span id="ohp"></span>')}function tdco_ajax(){var a=false;if(!a&&typeof XMLHttpRequest!="undefined")try{a=new XMLHttpRequest}catch(b){a=false}if(!a&&window.createRequest)try{a=window.createRequest()}catch(c){a=false}return a}
function JSONscriptRequest(a){this.fullUrl=a;this.nocache=(a.indexOf("?")>0?"&":"?")+(new Date).getTime();this.headLoc=document.getElementsByTagName("head").item(0);this.scriptId="JscriptId"+JSONscriptRequest.scriptCounter++}JSONscriptRequest.scriptCounter=1;
JSONscriptRequest.prototype.buildScriptTag=function(){this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("charset","utf-8");this.scriptObj.setAttribute("src",this.fullUrl+this.nocache);this.scriptObj.setAttribute("id",this.scriptId)};JSONscriptRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj)};JSONscriptRequest.prototype.addScriptTag=function(){this.headLoc.appendChild(this.scriptObj)};
function feedback_toggleComment(){getEle("opinion_ja").checked==true?Instadia_sendEvent("0118n","FB3#"+yes_id+"#"+CScontext+"_ja"):Instadia_sendEvent("0118n","FB3#"+no_id+"#"+CScontext+"_nej");getEle("opinion_ja").disabled=true;getEle("opinion_nej").disabled=true;getEle("furtherCommentsLink").style.display="block"}
function feedback_moreComments(a){getEle("holdsInstadiaTemplate").style.display="block";Instadia_launchSurvey(a,"holdsInstadiaTemplate",function(){feedback_afterSurveySubmit()});return true}function feedback_afterSurveySubmit(){getEle("holdsInstadiaTemplate").style.display="none";getEle("furtherCommentsLink").style.display="none";getEle("second").style.display="block"}var csColor="";function forceCsColor(a){csColor=a}function getColor(){csColor="orange"}
function printCsStylesheet(a){csColor==""&&getColor();document.body.className="t_cs_"+csColor;var b=document.createElement("link");b.rel="stylesheet";b.media=a?a:"screen";b.href=getI()+"/ngto/css/cs.css";document.getElementsByTagName("head")[0].appendChild(b)}
function printLogo(a){csColor==""&&getColor();a||(a="http://tdconline.dk/");if(is.flash>=8){document.writeln('<div id="t_globallogo_anim">');document.writeln('<object type="application/x-shockwave-flash" data="'+getI()+"/swf/rr/cs/"+csColor+"/logo/tdcologo_anim.swf?pUrl="+a+'" width="162" height="56">');document.writeln('<param name="movie" value="'+getI()+"/swf/rr/cs/"+csColor+"/logo/tdcologo_anim.swf?pUrl="+a+'" />');document.writeln('<param name="AllowScriptAccess" value="always" />');document.writeln('<param name="wmode" value="transparent" />');
document.writeln("</object>");document.writeln("</div>")}else document.writeln('<a href="'+a+'" title="Til forsiden af TDC Online"><img src="'+getI()+"/gfx/rr/cs/"+csColor+'/logo/tdcologo.png" id="t_globallogo" /></a>')}function printAd(a){document.write('<script type="text/javascript" src="http://adserver.adtech.de/addyn|3.0|655|'+a+"|0|225|ADTECH;loc=100;target=_blank;key=key1+key2+key3+key4;grp=[group];misc="+(new Date).getTime()+'"><\/script>')}
function toggleAllNav(){if(getEle("allnav")){var a=getEle("allnav");a.style.display=a.style.display==""||a.style.display=="none"?"block":"none"}}function clickRedir(a,b){b="http://click.tdc.dk/go/?u="+escape(a.href)+"&s="+escape(b).replace(/\+/g,"%2B");if(a.target=="_blank")window.open(b);else if(a.target=="_top")top.location=b;else document.location=b;return false}
function topnavInit(){var a=false,b=false;$j("li.t_tn_more a").bind("click",function(c){$j("#t_topnav_sub").hide()}).bind("mouseover",function(c){b=true;$j("#t_topnav_sub").show()});$j(".t_topnav").hover(function(c){if(b==true){$j("#t_topnav_sub").show();a=true}},function(c){a=false;setTimeout(function(){if(a==false){$j("#t_topnav_sub").hide();b=false}},600)});$j("#t_topnav_sub ul li:last").addClass("t_tn_last")}var googleSearch="Søg på nettet",onlineSearch="Søg på tdconline.dk";
function searchBoxInit(){readyInput("#t_search .t_s_input",googleSearch,true);$j("#t_s_a_google").parent().addClass("t_active");$j("#t_search dd a").bind("click",function(){$j(this).parent().parent().each(function(c){$j(this).children().removeClass("t_active")});$j(this).parent().addClass("t_active");$j("#t_search fieldset fieldset").hide();switch(this.id){case "t_s_a_google":$j("#t_searcharea").attr("value","world");$j("#t_s_online form").attr("action","http://find.tdconline.dk/google.php");$j("#t_s_online").addClass("t_s_google").show();
var a=$j("#t_search .t_s_input").attr("value"),b=false;if(a!="")if(a==onlineSearch)b=true;readyInput("#t_search .t_s_input",googleSearch,b);break;case "t_s_a_online":$j("#t_searcharea").attr("value","tdc");$j("#t_s_online form").attr("action","http://search3.tdconline.dk/");$j("#t_s_online").removeClass("t_s_google").show();a=$j("#t_search .t_s_input").attr("value");b=false;if(a!="")if(a==googleSearch)b=true;readyInput("#t_search .t_s_input",onlineSearch,b);break}})}
function readyInput(a,b,c){c==true&&$j(a).attr("value",b);$j(a).unbind().bind("blur",function(){if(this.value=="")this.value=b}).bind("focus",function(){if(this.value==b)this.value=""})}tdc.tdco=function(){};
tdc.tdco.search=function(){return{validate:function(a){if(a==1){a=getEle("t_googlequery");if(a.value==""||a.value==googleSearch||a.value==onlineSearch){redir($j("#t_s_online form").attr("action"));return false}else if(tdc.tdco.search.isKeyword(a.value)){redir("http://kundeservice.tdc.dk/keyword.php?stdcdk&kid="+a.value);return false}else return true}if(a==2){a=tdc.element.getId("t_dgsquery1");if(a.value=="Indtast navn/nummer"){a.focus();return false}else return true}},isKeyword:function(a){return a.search("^[1-9][0-9]{3,3}$")!=
-1?true:false}}}();function redir(a,b){if(typeof b!="undefined"&&b!=""&&a.indexOf("csref")==-1){delimiter=a.indexOf("?")>-1?"&":"?";a+=delimiter+"csref="+b}top.location.href=a}
tdc.tdco.ngto={login:{drawLoginToolbar:function(){var a=tdc.login.loginBoxTemplateArguments();if(a.isLoggedIn){document.write('<div id="sso_funcs"><a href="'+a.optionsUrl+'" title="Redigér dine indstillinger">Login indstillinger</a>&nbsp;&nbsp;&nbsp;');document.writeln('<form action="'+a.logoutUrl+'" method="POST" style="display:inline" class="t_login_box">');document.writeln('<a href="#" onclick="$j(this).parents(\'form\').get(0).submit(); return false;" title="Log ud af TDC Login" id="tdcossobutton">Log ud</a>');
a.writeHiddenFieldsFunction();document.writeln("</form>");a.writeHiddenSsoImagesFunction();document.write("</div>");document.write('<div id="tdcssoinfo"><div id="tdcossoinfoname">Velkommen <strong><span title="'+a.userName+'">'+a.userName+"</span></strong></div></div>");typeof tdco_mailcheck=="function"&&tdco_mailcheck();a.writeHiddenSsoImagesFunction();if(document.location.host.indexOf("mail.tdconline.dk")==-1)if(tdc.cookie.get("tdcossomailcheck")){a=(new Date).getTime();var b=tdc.cookie.get("tdcossomailcheck").split(";");
typeof b[0]!="undefined"&&typeof b[1]!="undefined"&&a-b[0]<3E5&&tdc.tdco.ngto.login.loadNumMails({unreadcount:b[1]},1)}else if((location.protocol=="file:"?"http:":location.protocol)=="http:"){a="http://np.mail.tdconline.dk/inboxsummary?callback=tdc.tdco.ngto.login.loadNumMails&TdcSignature="+encodeURIComponent(tdc.cookie.get("TdcSignature"))+"&noCache="+(new Date).getTime();tdc.include(a)}}else{document.writeln('<div id="t_sso_button">');document.writeln('<p class="t_sso_show"><a href="#t_login_global" onclick="$j(\'#t_login_global\').show();$j(\'.t_sso_show\').hide();$j(\'.t_sso_hide\').show();return false;" title="Log ind">Log ind</a></p>');
document.writeln('<p class="t_sso_hide"><a href="#t_login_global" onclick="$j(\'#t_login_global\').hide();$j(\'.t_sso_hide\').hide();$j(\'.t_sso_show\').show();return false;" title="Log ind">Luk</a></p>');document.writeln("</div>");tdc.login.setLogoutTarget("http://tdconline.dk");a=tdc.login.loginBoxTemplateArguments();document.writeln('<div class="t_login_box t_sso_loginbox t_orange t_login_box_addjs '+(a.isLoggedIn?"t_sso_logged_in":"")+'" id="t_login_global">');document.writeln('\t<div class="t_sso_top"></div>');
document.writeln('\t<div class="t_sso_body">');document.writeln('\t\t<div class="t_sso_content">');document.writeln('\t\t\t<div class="t_sso_logo"></div>');if(a.isLoggedIn){document.writeln('<form action="'+a.logoutUrl+'" >');document.writeln("<fieldset>");document.writeln("<legend>TDC Login</legend>");document.writeln('<button class="t_login_button" type="submit">Log ud</button>');a.writeHiddenFieldsFunction();a.userName?document.writeln("<p>Du er logget ind som: <strong>"+a.userName+"</strong></p>"):
document.writeln("<p>Du er logget ind</p>");document.writeln("</fieldset>");document.writeln("</form>");document.writeln('<ul class="t_sso_links">');document.writeln('<li><a href="https://selvbetjening.tdconline.dk/eservice/ditLogin.do" title="Redigér dine indstillinger" target="_'+a.linkTarget+'">Indstillinger</a></li>');document.writeln('<li><a href="http://tdconline.dk/login/" title="L&aelig;s mere om TDC Login" target="_'+a.linkTarget+'">Om TDC Login</a></li>');document.writeln("</ul>");a.writeHiddenSsoImagesFunction()}else if(a.isLoginSystemTemporarilyDisabled)document.writeln('<div id="t_front_login" class="t_logintype_0"><fieldset><legend>TDC Login</legend><p>Der er i &oslash;jeblikket drifts- forstyrrelser p&aring; login til TDC. Vi arbejder p&aring; en l&oslash;sning.</p></fieldset></div>');
else if(a.isDisabledBecauseOfBrowser)document.writeln('<div id="t_front_login" class="t_logintype_0"><fieldset><legend>TDC Login</legend><p>Login er deaktiveret i din browser.</p><p><a href="http://tdconline.dk/testclient.php?case=old" target="_'+a.linkTarget+'">Hvorfor?</a></p></fieldset></div>');else{document.writeln('\t\t\t<form action="'+a.loginUrl+'" method="post">');document.writeln("\t\t\t\t<fieldset>");document.writeln("\t\t\t\t\t<legend>TDC Login</legend>");document.writeln('\t\t\t\t\t<div class="t_button t_sso_usrname">');
document.writeln('\t\t\t\t\t\t<input type="text" name="usr_name" title="Dit brugernavn til TDC Login">');document.writeln("\t\t\t\t\t</div>");document.writeln('\t\t\t\t\t<div class="t_button t_sso_password">');document.writeln('\t\t\t\t\t\t<input type="text" style="" value="Password" name="usr_password_fake" title="Dit password til TDC Login">');document.writeln('\t\t\t\t\t\t<input type="password" style="display: none;" name="usr_password" class="t_focus" title="Dit password til TDC Login">');document.writeln("\t\t\t\t\t</div>");
document.writeln('\t\t\t\t\t<button class="t_button_white t_login_button" type="submit"><span>Log ind</span></button>');document.writeln('\t\t\t\t\t<ul class="t_sso_check">');document.writeln('\t\t\t\t\t\t<li class="t_rememberusername">');document.writeln('\t\t\t\t\t\t\t<input type="checkbox" name="remember_username" id="t_rememberusername">');document.writeln('\t\t\t\t\t\t\t<label for="t_rememberusername">Husk brugernavn</label>');document.writeln("\t\t\t\t\t\t</li>");document.writeln("\t\t\t\t\t</ul>");
document.writeln("\t\t\t\t</fieldset>");a.writeHiddenFieldsFunction();document.writeln("\t\t\t</form>");a.writeHiddenSsoImagesFunction();document.writeln('\t\t\t<ul class="t_sso_links">');document.writeln("\t\t\t\t<li>");document.writeln('\t\t\t\t\t<a href="http://tdconline.dk/login/glemt/" target="_top">Glemt password</a>');document.writeln("\t\t\t\t</li>");document.writeln('\t\t\t\t<li class="t_newuser">');document.writeln('\t\t\t\t\t<a href="'+a.newUserUrl+'" target="_top">Opret TDC Login</a>');
document.writeln("\t\t\t\t</li>");document.writeln("\t\t\t</ul>")}document.writeln("\t\t</div>");document.writeln("\t</div>");document.writeln('\t<div class="t_sso_bottom"></div>');document.writeln("</div>");a.writeHiddenSsoImagesFunction();tdc.login.addRedrawCallback(function(c,d){var e="";$j.each(c,function(){e+='<li><a href="'+this.url+'" target="_'+d+'">'+this.name+"</a></li>"});$j(".t_login_links").html(e)})}},loadNumMails:function(a,b){var c="";if(a.unreadcount){a=a.unreadcount;c='<a href="http://mail.tdconline.dk/"><strong>'+
a+" nye mails</strong></a>";tdc.element.getId("tdcossoinfomail").innerHTML=c;if(b!=1){b=(new Date).getTime();tdc.cookie.set("tdcossomailcheck",b+";"+a,"","/","tdconline.dk")}}}}};
