function TbxCctI(){}TbxCctI.IntegrationWeb=function(){this.tbxsw=null;this.functionsToCallOnClose=new Array();this.mappingLayer=null;this.openCCT=function(h,e,c){var f=tbxF.u.gEl("tbxswo");f.style.width=tbxF.u.getDocumentWidth()+"px";f.style.height=tbxF.u.getDocumentHeight()+"px";if(this.tbxsw==null){this.tbxsw=document.getElementById("tbxsw")}this.tbxsw.className="tbxlayer";var d=document.getElementById("tbxsww");var b="http://tbx.t-online.de/cct/cct.do?c=oc2&cv=d5c&domn=4901";if(c){b+="&m="+encodeURIComponent(c)}if(h){b+="&chn="+h}else{b+="&chn=web"}var k=window.location.protocol+"//"+window.location.host+"//scd/a/static/4901/parts/602//remote.html?";b=b+"&caller="+encodeURIComponent(k);d.innerHTML='<iframe id="tbxcctif" name="'+e+'" width="800" height="800" frameborder="0" scrolling="no" allowtransparency="true"></iframe>';var a=document.getElementById("tbxcctif");a.src=b;var j=tbxF.u.getWindowSize();var i=document.getElementById("tbxswi");i.style.left=(j.width/2)+tbxF.u.getScrollState().x-(644/2)+"px";i.style.top=(j.height/2)+tbxF.u.getScrollState().y-(486/2)+"px";var g=document.getElementById("tbxswif");g.style.height=f.style.height;g.style.width=f.style.width};this.closeCCT=function(c,b){this.tbxsw.className="tbx_invis";for(var a=0;a<this.functionsToCallOnClose.length;a++){this.functionsToCallOnClose[a]()}};this.openMappingLayer=function(c,e,l){var f=tbxF.u.gEl("tbxmappingo");f.style.width=tbxF.u.getDocumentWidth()+"px";f.style.height=tbxF.u.getDocumentHeight()+"px";if(this.mappingLayer==null){this.mappingLayer=document.getElementById("tbxmapping")}this.mappingLayer.className="tbxlayer";var b=document.getElementById("tbxmappingw");var a="http://mapping.idm.telekom.com?";if(c==null){c="cct"}a=a+"mapToken="+encodeURIComponent(e)+"&wdycf="+l+"&wdywtg="+l;b.innerHTML='<iframe id="tbxmapif" width="564" height="570" frameborder="0" scrolling="no" allowtransparency="true"></iframe>';var i=document.getElementById("tbxmapif");i.src="http://tbx.t-online.de/cct/res.do?domn=4901&sec=0&res=/misc/mappingiframe.html&url="+encodeURIComponent(a);var k=tbxF.u.getWindowSize();var j=document.getElementById("tbxmappingi");var d=(k.width/2)+tbxF.u.getScrollState().x-(564/2);if(d<0){d=0}var g=(k.height/2)+tbxF.u.getScrollState().y-(570/2);if(g<0){g=0}j.style.left=d+"px";j.style.top=g+"px";var h=document.getElementById("tbxmappingif");h.style.height=f.style.height;h.style.width=f.style.width;if(this.tbxsw!=null){this.tbxsw.className="tbx_invis"}};this.closeMappingLayer=function(c){this.mappingLayer.className="tbx_invis";for(var b=0;b<this.functionsToCallOnClose.length;b++){this.functionsToCallOnClose[b]()}if(c){if(this.tbxsw!=null){this.tbxsw.className="tbxlayer"}var a=document.getElementById("tbxcctif");a.src=decodeURIComponent(c)}}};TbxF=function(){this.$A=Array.from=function(c){if(!c){return[]}if(c.toArray){return c.toArray()}else{var b=[];for(var a=0;a<c.length;a++){b.push(c[a])}return b}}};tbxF=new TbxF();TbxF.U=function(){this.gEl=function(a){return document.getElementById?document.getElementById(a):null};this.findAbsElPos=function(a){var c=0;var b=0;if(a.offsetParent){c=a.offsetLeft;b=a.offsetTop;while(a=a.offsetParent){c+=a.offsetLeft;b+=a.offsetTop}}return{x:c,y:b}};this.findAbsElPosParentScroll=function(b){var g=b;var f=0;var c=0;if(b.offsetParent){f=b.offsetLeft;c=b.offsetTop;while(b=b.offsetParent){f+=b.offsetLeft;c+=b.offsetTop}}g=g.parentNode;while((g!=document)&&(g.tagName!="HTML")){var a=new CFRAMEWORK.BrowserDetectFull();if(!a.is_safari3up){if(g.style.borderLeftWidth){var d=g.style.borderLeftWidth.replace(/px/g,"");d=d.replace(/ /g,"");f+=parseInt(d)}if(g.style.borderTopWidth){var e=g.style.borderTopWidth.replace(/px/g,"");e=e.replace(/ /g,"");c+=parseInt(e)}}if((g.offsetHeight<g.scrollHeight)&&(g.scrollLeft!=0||g.scrollTop!=0)){f-=g.scrollLeft;c-=g.scrollTop;break}g=g.parentNode}return{x:f,y:c}};this.getScrollState=function(){var b,a;if(self.pageYOffset){b=self.pageXOffset;a=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){b=document.documentElement.scrollLeft;a=document.documentElement.scrollTop}else{if(document.body){b=document.body.scrollLeft;a=document.body.scrollTop}}}return{x:b,y:a}};this.getDocumentWidth=function(){return(document.documentElement&&document.documentElement.scrollWidth)||document.body.scrollWidth};this.getDocumentHeight=function(){var a=document;return Math.max(Math.max(a.body.scrollHeight,a.documentElement.scrollHeight),Math.max(a.body.offsetHeight,a.documentElement.offsetHeight),Math.max(a.body.clientHeight,a.documentElement.clientHeight))};this.getWindowSize=function(){var a=0;var b=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{a=document.body.clientWidth;b=document.body.clientHeight}}else{a=window.innerWidth;b=window.innerHeight}return{width:a,height:b}};this._currentTimeouts=new Object()};TbxF.prototype.u=new TbxF.U();Function.prototype.bind=function(){var a=this,c=tbxF.$A(arguments),b=c.shift();return function(d){if(d&&d=="@fw.evhan.returnobject.id@"){return b}if((typeof(a)!="undefined")&&(typeof(c)!="undefined")&&(typeof(tbxF)!="undefined")){return a.apply(b,c.concat(tbxF.$A(arguments)))}return null}};
