var is;is=new browserHandling;
function browserHandling(){this.NS=this.IE=0;this.element=document.getElementById?1:0;this.NSapp=navigator.appName=="Netscape"?1:0;this.IEapp=navigator.appName=="Microsoft Internet Explorer"?1:0;var a=navigator.userAgent.toLowerCase();this.OPERAapp=a.indexOf("opera")!=-1;this.MAC=a.indexOf("mac")!=-1;this.WIN=a.indexOf("windows")!=-1;this.appver=navigator.appVersion;if(this.IEapp)this.IE=document.all?1:0;else if(this.NSapp&&!this.element)this.NS=document.layers?1:0;if(this.NSapp)this.version=parseFloat(this.appver);
else if(this.OPERAapp){this.version=parseFloat(a.substr(a.indexOf("opera")+5,4));if(!this.version)this.version=parseFloat(this.appver);this.IE=false}else this.version=parseFloat(this.appver.substr(this.appver.indexOf("MSIE")+5,4));this.IE5=this.WIN&&this.IE&&this.version=="5"&&!document.compatMode;this.GECKO=a.indexOf("gecko")!=-1;this.FIREFOX=a.indexOf("firebird")!=-1||a.indexOf("firefox")!=-1||a.indexOf("minefield")!=-1;this.NS6=a.indexOf("netscape6/6")!=-1;this.MEDIAPLAYER=this.GECKO&&a.indexOf("(ax")!=
-1||this.IE&&this.version>=5&&!this.OPERAapp;if(document.cookie)this.cookies=1;else{setCookie("cookietest",1);this.cookies=document.cookie?1:0;delCookie("cookietest")}this.versionstr=""+this.version;if(this.versionstr.indexOf(".")!=-1)this.versionsub=this.versionstr.substring(this.versionstr.indexOf(".")+1);var b;if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object")b=parseFloat(navigator.plugins["Shockwave Flash"].description.substring(navigator.plugins["Shockwave Flash"].description.toLowerCase().lastIndexOf("flash ")+
6,navigator.plugins["Shockwave Flash"].description.length));else if(this.IE){document.writeln('<script type="text/vbscript">');document.writeln("on error resume next");document.writeln('set f = CreateObject("ShockwaveFlash.ShockwaveFlash")');document.writeln("if IsObject(f) then");document.writeln("flashie = parseFloat(hex(f.FlashVersion())/10000)");document.writeln("end if");document.writeln("<\/script>");if(typeof flashie!="undefined")b=flashie}this.flash=typeof b=="undefined"?false:b}
function getTHQ(){if(typeof is.thq!="undefined"){var a=getCookie("thq_override");return a?a:is.thq}return false}function getEle(a){return is.NS?document.layers[a]:is.element?document.getElementById(a):is.IE?document.all[a]:-1}function getI(a){var b=location.protocol=="file:"?"http:":location.protocol;return b=="https:"||a?b+"//i.tdconline.dk":b+"//i.c.dk"}
function popup(a,b,c){var d="";if(arguments.length==4)d=arguments[3];window.open(a,d,"width="+b+",height="+c+",left=150,top=100,resizable=1,scrollbars=1").focus()}function truncate(a,b,c){return a.length<=b?a:a.substring(0,b)+(c?"":"...")}function getCookie(a){var b=document.cookie;a=a+"=";var c=b.indexOf("; "+a);if(c==-1){c=b.indexOf(a);if(c!=0)return null}else c+=2;var d=document.cookie.indexOf(";",c);if(d==-1)d=b.length;return unescape(b.substring(c+a.length,d))}
function setCookie(a,b,c,d,e,f){document.cookie=escape(a)+"="+escape(b)+(c?"; EXPIRES="+c.toGMTString():"")+(d?"; PATH="+d:"")+(e?"; DOMAIN="+e:"")+(f?"; SECURE":"")}function delCookie(a,b,c,d){document.cookie=escape(a)+"=null; EXPIRES="+(new Date(0)).toGMTString()+(b?"; PATH="+b:"")+(c?"; DOMAIN="+c:"")+(d?"; SECURE":"")}
function tableRows(){for(var a=document.getElementsByTagName("table"),b=0;b<a.length;b++)if(a.item(b).className=="t-table")for(var c=0,d=a.item(b).getElementsByTagName("tr"),e=0;e<d.length;e++){var f=d.item(e);if(f.nodeName=="TR")f.className+=c++%2?" t-table-row1":" t-table-row2"}}function IE5RenderFix(){var a=getEle("t-c"),b=getEle("t-ie5fix");if(a&&b)if(getOffsetY(b)>getOffsetY(a)+10)a.innerHTML=a.innerHTML}
function getDomainpart(a){return a.match(/^(http:\/\/)?([^\/]+)/i)[2].match(/[^\.\/]+\.[^\.\/]+$/i)[0]}function setTDCRef(a,b){if(typeof b!="undefined"&&b!=""&&a.href.indexOf("csref=")==-1)a.href=a.href.indexOf("?")==-1?a.href+"?csref="+b:a.href+"&csref="+b;return true}function setPopupTitle(a){document.title=a}function getTMqs(a,b,c,d,e,f,g){}
function getDogtagFromUrl(){var a=/[\?&]{1}dogtag=(.*)/i,b=a.exec(document.location.href);if(typeof b!="undefined"&&b!=null){a=/&/i;b=b[1].split(a);return b[0]}else return false}function toggleFB(){if(getEle("a-fb-yes").checked){getEle("a-fb-positive").style.display="block";getEle("a-fb-negative").style.display="none"}if(getEle("a-fb-no").checked){getEle("a-fb-positive").style.display="none";getEle("a-fb-negative").style.display="block"}};
