tdc.tdc=function(){return{fixLastBreadcrumb:function(){try{var b=tdc.element.getId("t_breadcrumb").getElementsByTagName("li");if(b.length>0){var a=b[b.length-1].getElementsByTagName("a");if(a.length>0){var h=a[0].childNodes;b[b.length-1].removeChild(a[0]);for(a=0;a<h.length;a++)b[b.length-1].appendChild(h[a])}}}catch(f){}},movefourthlevel:function(){},popup:function(b,a,h,f){var c=530,g=300,d="normal";if(typeof a!="undefined")d=a;a="";if(typeof h!="undefined")a=h;if(d=="large"){c=770;g=440}if(typeof f!=
"undefined"&&f>199&&f<576)g=f;tdc.popup(b,c,g,a)},openncomchat:function(){tdc.popup("http://lg3.medianet.dk/solutions/tdc_012007/customer/index2.php?myurl="+escape(document.location.toString()),490,468,"chat");return false}}}();
tdc.tdc.dynmenu=function(){function b(f,c,g){var d;if(c>g){c=f.getElementsByTagName("li");d=c[c.length-1]}else{f=f.getElementsByTagName("ul");for(g=f.length-1;g>=0;g--)if(f[g].className=="t_dm_level"+c){d=f[g];break}}return d}var a=false,h="t_leftnav";return{init:function(f){a=f},placeholder:function(f){h=f},build:function(){if(typeof a=="object"&&a&&a.length>0){var f=tdc.element.getId(h);if(f){var c,g=f.getElementsByTagName("ul");if(!g||!g.length){c=document.createElement("ul");f.appendChild(c);
g=f.getElementsByTagName("ul")}var d=1;f=d;for(var e=0;e<a.length;e++){if(typeof a[e]!="object")break;if(e==0&&typeof a[e][4]!="undefined")f=a[e][4];c=document.createElement("li");if(typeof a[e][1]!="undefined"&&a[e][1]=="")c.className="t_leftnav_subheader";if(typeof a[e][5]=="boolean"&&a[e][5])c.className="t_current";c.appendChild(tdc.dynmenu.createLink(a[e]));if(typeof a[e][4]=="number"&&a[e][4]>f&&a[e][4]<5){var i=b(g[0],a[e][4],d);if(a[e][4]>d){d=document.createElement("ul");d.className="t_dm_level"+
a[e][4];d.style.display="none";i=i.appendChild(d)}i.appendChild(c)}else g[0].appendChild(c);d=typeof a[e][4]!="undefined"?a[e][4]:1}c=[];e=g[0].getElementsByTagName("li");g=false;for(i=0;i<e.length;i++){if(e[i].id)g=true;if(e[i].className=="t_current"){c[c.length]=e[i];d=e[i].getElementsByTagName("ul");if(typeof d[0]=="object")d[0].style.display="block";for(d=e[i].parentNode;d.id!=h;){if(d.tagName=="ul"||d.tagName=="UL")d.style.display="block";if(d.tagName=="li"||d.tagName=="LI")c[c.length]=d;d=d.parentNode}}}d=
g?c.length-6:1;for(e=c.length-1;e>=f-d;e--){g=c[e].getElementsByTagName("a");if(typeof g[0]=="object"){i=document.createElement("li");i.appendChild(g[0].cloneNode(true));tdc.element.getId("t_breadcrumb").appendChild(i)}}}}}}}();
tdc.tdc.sso=function(){return{isLoggedIn:function(){return tdc.sso.isLoggedIn()},validateLogin:function(b){return tdc.sso.validateLogin(b)},showLogoutButton:function(){if(tdc.cookie.get("res_tdc_dk"))if(tdc.element.getId("t_content")){$j('<form action="'+((location.protocol=="https:"?"https":"http")+"://sso.tdconline.dk/tdconline/tdclogout")+'" onsubmit="return tdc.tdc.sso.validateLogout();" id="t_logout_form"></form>').appendTo("#t_content");$j('<button class="t_button_gray" type="submit" id="t_sso_logoutbutton"><span>Log ud</span></button>').appendTo("#t_logout_form")}},
switchPassword:function(b,a){var h=b.form.usr_password_fake;b=b.form.usr_password;if(a){h.style.display="none";b.style.display="block";b.focus()}if(b.value=="")if(h.style.display==""||h.style.display=="block"){h.style.display="none";b.style.display="block";b.focus()}else{h.style.display="block";b.style.display="none"}},switchDigital:function(b){var a=tdc.element.getId("tdcosso-userpass"+b);b=tdc.element.getId("tdcosso-digisig"+b);if(a&&b)if(a.style.display==""||a.style.display=="block"){a.style.display=
"none";b.style.display="block"}else{a.style.display="block";b.style.display="none"}},showLogin:function(b){var a,h=tdc.sso.getUsername(),f=tdc.cookie.get("SSOLOGINCERTREMEMBER"),c=typeof ssolinkstarget!="undefined"&&ssolinkstarget?ssolinkstarget:"top";b=(b?b:0).toString();document.writeln('<div class="tdcosso" id="tdcosso-type'+b+'">');document.writeln("<h3>TDC login</h3>");if(tdc.sso.isLoggedIn()){document.writeln('<div class="tdcosso-logout">');document.writeln('<form action="'+(location.protocol==
"https:"?"https:":"http:")+'//sso.tdconline.dk/tdconline/tdclogout" onsubmit="return tdc.tdc.sso.validateLogout()">');if(typeof ssologouttarget!="undefined"&&ssologouttarget)document.writeln('<input type="hidden" name="tg" value="'+escape(ssologouttarget)+'">');else if(document.location.host=="selvbetjening.tdconline.dk"||document.location.host=="fastnetselvbetjening.tdconline.dk")document.writeln('<input type="hidden" name="tg" value="'+escape("http://kundeservice.tdconline.dk/selvbetjening/")+'">');
b==3?document.writeln('<input class="tdcosso-submit" type="submit" id="type3logoutbtn" value="" title="Log ud af TDC Login" tabindex="3" />'):document.writeln('<input class="tdcosso-submit" type="submit" value="" title="Log ud af TDC Login" tabindex="3" />');h&&document.writeln("<p>Du er logget ind som:</p><p><strong>"+h+"</strong></p><p>&Oslash;nsker du at logge ud?</p> ");b==3&&document.writeln('<p>G&aring; til din <a href="http://tdconline.dk/mit/"><strong>personlige oversigt</strong></a></p>');
document.writeln("</form>");document.writeln("</div>");document.writeln('<ul class="tdcosso-logout">');b!=3&&document.writeln('<li><a href="http://tdconline.dk/mit/" title="G&aring; til din personlige oversigt" target="_'+c+'">Personlig oversigt</a></li>');document.writeln('<li><a href="https://selvbetjening.tdconline.dk/eservice/ditLogin.do" title="Redigér dine indstillinger" target="_'+c+'">Indstillinger</a></li>');document.writeln('<li><a href="http://login.tdconline.dk/artikel.php?dogtag=tdco_login_om" title="L&aelig;s mere om TDC Login" target="_'+
c+'">Om TDC Login</a></li>');document.writeln("</ul>")}else if(typeof loginActive!="undefined"&&loginActive==0)document.writeln('<div class="tdcosso-disabled"><p>Der er i &oslash;jeblikket drifts- forstyrrelser p&aring; login til TDC. Vi arbejder p&aring; en l&oslash;sning.</p></div>');else if(tdc.sso.isDisabled())document.writeln('<div class="tdcosso-disabled"><p>Login er deaktiveret i din browser.</p><p><a href="http://tdconline.dk/testclient.php?case=old" target="_'+c+'">Hvorfor?</a></p></div>');
else{b==3&&document.writeln("<p>Log ind til <strong>mail, foto, selvbetjening</strong> m.m.</p>");document.writeln('<form action="https://access.tdc.dk/servlet/getAccessLogin" method="post" onsubmit="return tdc.tdc.sso.validateLogin(this)" autocomplete="off">');document.writeln('<input type="hidden" name="HiddenURI" value="'+(typeof ssologinhiddenuri=="undefined"||!ssologinhiddenuri?"https://sso.tdconline.dk/redir/?http://sso.tdconline.dk/tdconline/tdclogin":ssologinhiddenuri)+'" />');document.writeln('<input type="hidden" name="LOCALE" value="da_DK" />');
document.writeln('<input type="hidden" name="AUTHMETHOD" value="UserPassword" />');document.writeln('<div class="tdcosso-userpass" id="tdcosso-userpass'+b+'"'+(f?' style="display:none"':"")+">");if(b==0)a=8;else if(b==1)a=4;else if(b==2)a=12;if(b==3)a=0;document.writeln('<input type="text" name="usr_name" title="Dit brugernavn til TDC Login" class="tdcosso-name" tabindex="'+(a+1)+'" value="'+(h?h:"Brugernavn")+'" onfocus="tdc.tdc.sso.loginFocus(this, event);" onblur="tdc.tdc.sso.loginFocus(this, event);">');
document.writeln('<input class="tdcosso-password-fake" type="text" value="Password" name="usr_password_fake" title="Dit password til TDC Login" tabindex="'+(a+2)+'" onkeypress="tdc.tdc.sso.switchPassword(this, 1);" onfocus="tdc.tdc.sso.switchPassword(this);" />');document.writeln('<input class="tdcosso-password" type="password" value="" name="usr_password" title="Dit password til TDC Login" tabindex="9992" onblur="tdc.tdc.sso.switchPassword(this);" />');document.writeln('<div class="tdcosso-check">');
document.writeln('<label><input type="checkbox" tabindex="'+(a+4)+'" name="tdcosso-remember"'+(tdc.cookie.get("SSOLOGINUSER")?' checked="checked"':"")+"> Husk brugernavn</label>");document.writeln("</div>");document.writeln("</div>");document.writeln('<div class="tdcosso-digisig" id="tdcosso-digisig'+b+'"'+(f?' style="display:block"':"")+"></div>");document.writeln('<input class="tdcosso-submit" type="submit" value="" title="Log ind i TDC Login" tabindex="'+(a+3)+'" />');document.writeln('<div class="tdcosso-check-sig">');
document.writeln('<input name="tdcosso-signature" class="tdcosso-signature" type="checkbox" tabindex="9995" onclick="tdc.tdc.sso.switchDigital('+b+')"'+(f?' checked="checked"':"")+' /> Log ind med <a href="http://privat.tdc.dk/artikel.php?dogtag=tdc_p_digi_pers_bestil" title="L&aelig;s mere om Digital Signatur" target="_'+c+'">Digital Signatur</a>');document.writeln("</div>");document.writeln("</form>");document.writeln("<ul>");document.writeln('<li><a href="'+(typeof ssologinregister=="undefined"||
!ssologinregister?"https://registrering.tdconline.dk/eservice/showtdclogin.do?popup=true":ssologinregister)+'" title="Opret et nyt TDC Login" target="_'+c+'" onclick="return tdc.tdc.sso.cookieUpdate(this)">Ny bruger</a></li>');document.writeln('<li><a href="'+(typeof ssologinnewpassword=="undefined"||!ssologinnewpassword?"http://tdc.dk/artikel.php?dogtag=tdco_login_sms":ssologinnewpassword)+'" title="F&aring; hj&aelig;lp hvis du har glemt dit password til TDC Login" target="_'+c+'">Glemt password?</a></li>');
document.writeln('<li><a href="http://login.tdconline.dk/artikel.php?dogtag=tdco_login_om" title="L&aelig;s mere om TDC Login" target="_'+c+'">Om TDC Login</a></li>');document.writeln("</ul>")}document.writeln("</div>")}}}();
tdc.tdc.service=function(){function b(a){return tdc.isKeyword(a)}return{checkForm:function(a){a=tdc.element.getId(a).value;ret=false;if(b(a))tdc.redir("http://kundeservice.tdc.dk/keyword.php?stdcdk&kid="+a);else if(a!="Søg på tdc"&&a!=""&&a!="Søg i Kundecenter"){ret=true;try{if(document.domain=="erhverv.tdc.dk")tdc.element.getId("t_pcid").value="8";else if(document.domain=="om.tdc.dk")tdc.element.getId("t_pcid").value="9";if(document.domain=="privat.tdc.dk")tdc.element.getId("t_pcid").value="23"}catch(h){}}return ret}}}();
tdc.tdc.feedback=function(){return{toggleComment:function(){tdc.element.getId("opinion_ja").disabled=true;tdc.element.getId("opinion_nej").disabled=true;tdc.element.getId("furtherCommentsLink").style.display="block"},moreComments:function(b){tdc.element.getId("holdsInstadiaTemplate").style.display="block";Instadia_launchSurvey(b,"holdsInstadiaTemplate",function(){tdc.tdc.feedback.afterSurveySubmit()});return true},afterSurveySubmit:function(){tdc.element.getId("holdsInstadiaTemplate").style.display=
"none";tdc.element.getId("furtherCommentsLink").style.display="none";tdc.element.getId("second").style.display="block"}}}();
tdc.tdc.guide=function(){return{openFlashMovie:function(b){var a="";switch(b){case 1:a="http://download.tdc.dk/pub/tdconline/kundeservice/videoguides/01_tdc/guide01-tdcdk.swf";break;case 2:a="http://download.tdc.dk/pub/tdconline/kundeservice/videoguides/02_bredbaand/guide02-bredbaand.swf";break;case 3:a="http://download.tdc.dk/pub/tdconline/kundeservice/videoguides/03_fastnet/guide03-fastnet.swf";break;case 4:a="http://download.tdc.dk/pub/tdconline/kundeservice/videoguides/04_netway/guide04-netway.swf";
break;case 5:a="http://download.tdc.dk/pub/tdconline/kundeservice/videoguides/05_bredbaandstelefoni/guide05-bredbaandstelefoni.swf";break}a!=""&&window.open(a,"flashmovie","width=577, height=396, left=150, top=100, resizable=0, scrollbars=0")},playFlash:function(b){if(tdc.browser.hasFlash()>=8){document.write('<div class="t_block t_block t_block_single t_block_border_b">');document.write('<object type="application/x-shockwave-flash"  data="http://download.tdc.dk/pub/tdconline/kundeservice/videoguides/bannere/banner_guide0'+
b+".swf?jsfunc=tdc.tdc.guide.openFlashMovie("+b+')" width="208" height="190">');document.write('<param name="movie" value="http://download.tdc.dk/pub/tdconline/kundeservice/videoguides/bannere/banner_guide0'+b+".swf?jsfunc=tdc.tdc.guide.openFlashMovie("+b+')" />');document.write('<param name="allowScriptAccess" value="always" />');document.write('<img src="http://i.c.dk/pics/6/8/7/40786/208x120.jpg" alt="" />');document.write("</object>");document.write("</div>")}}}}();
