// Version 0.1 // 04. Apr. 2007 function getBrowser(){ var browser = '' if ( navigator.appName.indexOf('Netscape') != -1 ) { browser = 'NS'; } else { //IE var version = navigator.appVersion; version = new Number( version.substring( version.indexOf('MSIE')+5 , version.indexOf('MSIE')+6 ) ); if ( version < 7 ) { browser = 'IE<=6';//kleiner 7 } else { browser = 'IE7'; } } return browser; } function setClass(id,ClassNm) { if (typeof document.getElementById(id) != 'undefined') { document.getElementById(id).className = ClassNm; } } function addClass(id, ClassNm){ if (typeof document.getElementById(id) != 'undefined') { var oldClass = (document.getElementById(id).className)?document.getElementById(tagType)[tagIndex].className:''; document.getElementById(id).className=oldClass+' '+ClassNm; } } function getAbsLeft(id) { o = document.getElementById(id); oL = o.offsetLeft; while(o.offsetParent!=null) { oP = o.offsetParent; oL += oP.offsetLeft; o = oP; } return oL; } function getAbsTop(id) { o = document.getElementById(id); oT = o.offsetTop; while(o.offsetParent!=null) { oP = o.offsetParent; oT += oP.offsetTop; o = oP; } return oT; } function writeIntoLayer(id,cont) { if (typeof document.getElementById(id) != 'undefined') { document.getElementById(id).innerHTML = cont; } } function setDisplay(id,dis) { if (typeof document.getElementById(id) != 'undefined') { if(dis) { document.getElementById(id).style.display = 'block'; } else { document.getElementById(id).style.display = 'none'; } } } function helperDivInfo(id,attr) { if (typeof document.getElementById(id) != 'undefined') { dInfo = new Array(); dInfo['l'] = parseInt(id.style.left); dInfo['t'] = parseInt(id.style.top); dInfo['w'] = id.offsetWidth; dInfo['h'] = id.offsetHeight; dInfo['osL'] = id.offsetLeft; dInfo['osT'] = id.offsetTop; dInfo['v'] = id.style.visibility; dInfo['d'] = id.style.display; dInfo['zI'] = id.style.zIndex; return dInfo[attr]; } } function helperWinInfo(attr) { wInfo = new Array(); wInfo['scrL'] = document.body.scrollLeft; wInfo['scrT'] = document.body.scrollTop; wInfo['wW'] = document.body.clientWidth; if (document.body.clientHeight == 0) { wInfo['winH'] = window.innerHeight; } else { wInfo['winH'] = document.body.clientHeight; } wInfo['docW'] = document.body.scrollWidth; wInfo['docH'] = document.body.scrollHeight; return wInfo[attr]; } function openPopup(url,name,w,h,scroll,center,l,t,res) { if(!l) {l = 5;} if(!t) {t = 15;} if(!res) {res = 'yes';} if(!scroll){scroll = 1;} if(!center){center = false;} pLeft = (window.screen.width/2) - (w/2 + l); pTop = (window.screen.height/2) - (h/2 + t); if (center) { xPos = 'left=' + pLeft; yPos = 'top=' + pTop; } else { xPos = 'screenX=' + pLeft; yPos = 'screenY=' + pTop; } pWin = window.open(url, name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=" + res + ",width=" + w + ",height=" + h + ",copyhistory=no," + xPos + "," + yPos +""); pWin.focus(); if (pWin) return false; else return true; } function openPopupByFlash(url,name,w,h,scroll,center,l,t,res) { if(!l) {l = 5;} if(!t) {t = 15;} if(!res) {res = 'yes';} if(!scroll){scroll = 1;} if(!center){center = false;} pLeft = (window.screen.width/2) - (w/2 + l); pTop = (window.screen.height/2) - (h/2 + t); if (center) { xPos = 'left=' + pLeft; yPos = 'top=' + pTop; } else { xPos = 'screenX=' + pLeft; yPos = 'screenY=' + pTop; } pWin = window.open(url, name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=" + res + ",width=" + w + ",height=" + h + ",copyhistory=no," + xPos + "," + yPos +""); pWin.focus(); } function toggleHotline() { if ((typeof document.getElementById("hotline") != 'undefined') && (typeof document.getElementById("dslCheck") != 'undefined')) { if (document.getElementById("hotline").style.display != "block") { document.getElementById("hotline").style.display = "block"; } else { document.getElementById("hotline").style.display = "none"; } } } function toggleDSLCheck() { if (typeof document.getElementById("dslCheck") != 'undefined') { if (document.getElementById("dslCheck").style.display != "block") { document.getElementById("dslCheck").style.display = "block"; document.getElementById("hotline").style.display = "none"; } } } function checkfornumbers( xmlOnkz, xmlRufnr ) { var xmlRufnr = document.getElementById('xmlRufnr').value; var xmlOnkz = document.getElementById('xmlOnkz').value; if( Math.abs( xmlOnkz ) > 0 && Math.abs( xmlRufnr ) > 0 ) { // document.getElementById('dslcheck_form').submit(); u = 'http://www.t-home.de/is-bin/INTERSHOP.enfinity/WFS/EKI-PK-Site/de_DE/-/EUR/ViewDSLQuickCheck-ProcessCheck?xmlOnkz='+xmlOnkz+'&xmlRufnr='+xmlRufnr; openPopup(u,'dslCheck','560','650',0,0) } else { document.getElementById('onlynumbers').style.display = 'block'; } } function swapimage( slidername, imglink ) { var slidername = slidername; var imglink = imglink; document.getElementById(slidername).src = imglink; } function imgpreload( imglink ) { //preload.src = imglink; } function swapTabContent(elementId) { var items = document.getElementById('tabbedmen_init').tab_items.value.split(","); for(var i=0; i Disney Special function swapHeaderImage(elementId) { var items = document.getElementById('tabbedmen_init').tab_items.value.split(","); for(var i=0; i 1) { this.q = q.substring(1, q.length); temp = this.q.split("?"); for (var i=0;i 1) { this.q = q.substring(1, q.length); temp = this.q.split("?"); for (var i=0;i