var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==="string"){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());(function(c){var a="PostMessageUtils",b=!!c.postMessage;c[a]=c[a]||(function(){function d(f){var g,e,h,j=[];if(f!==null&&f!==undefined){for(g=0,e=f.length;g<e;g+=1){h=f[g];j[g]=(typeof h==="string"||typeof h==="number"||typeof h==="boolean")?h:null}}return j}return{registerReceiver:function(g){function f(k){var m,j;if(g==="*"){return true}if(typeof g==="string"&&k===g){return true}for(m=0,j=g.length;m<j;m+=1){if(g[m]===k){return true}}return false}function h(j){try{if(j.source===c||j.source==c){return}if(f(j.origin)){var i=JSON.parse(j.data);e(c,i.TMD.fname,d(i.TMD.args))}}catch(k){}}function e(k,n,j){var m=n.split("."),i,l;if(m.length===1){if(k&&k[n]&&k[n].apply){k[n].apply(k,j);return true}return false}i=m.shift();l=m.join(".");return e(k[i],l,j)}if(!g||!b){return}if(c.attachEvent){c.attachEvent("onmessage",h)}else{c.addEventListener("message",h,false)}},createSender:function(f,e){if(!f||!b||f===c||f==c){return null}return{sendMessage:function(g){try{f.postMessage(g,e);return true}catch(h){if(typeof c.console!=="undefined"&&c.console&&typeof c.console.error==="function"){c.console.error('could not send message: "'+g+'" to '+f+" ("+e+"). Error message: "+h.message)}return false}},buildMessageString:function(h,g){return JSON.stringify({TMD:{fname:h,args:d(g)}})}}}}}())}(window));function TbxI(){}TbxI.IntegrationWeb=function(_tbxSupportPath){var mdHostParts="http://tbx.t-online.de/ps/srp".split("/");PostMessageUtils.registerReceiver(mdHostParts[0]+"//"+mdHostParts[2]);this.log=function(str){if("false"==="true"){if(typeof console!="undefined"){console.log(str)}else{if(window.opera){opera.postError(str)}}}};this.tbxSupportPath=_tbxSupportPath;this.toolbox=undefined;this.flyoutDiv=undefined;this.toolboxIfr=undefined;this.portalMouseOut=undefined;this.portalMouseMove=undefined;var CONTENT_CACHING_SPAN=+"2000";this.modules=[];this.openModule=undefined;this.loadCallback=function(){};this.resizeCallback=function(){};this.tbxCctIInitialized=false;this._initialize=function(){if(typeof(tbxCctI)!="undefined"&&!this.tbxCctIInitialized){tbxCctI.functionsToCallOnClose.push(this.reloadPage.bind(this));this.tbxCctIInitialized=true;this.toolbox=new TbxI.ToolboxProxy("http://tbx.t-online.de/ps/ra/web-4901-0-810/misc/remoteToolbox.html?","tbx_commIfr")}};this.ready=function(windowRef,initialHeight){this.toolboxIfr=document.getElementById("tbx_toolbox");this.flyoutDiv=document.getElementById("tbx_flyouts");this._initialize();this.setToolboxHeight(initialHeight);this.loadCallback();this.destroyAllFlyouts()};this.reloadPage=function(){this.destroyAllFlyouts();this.setToolboxHeight(+"508");this.toolbox.reloadPage(true)};this.setToolboxHeight=function(height){var el=document.getElementById("tbx_toolbox");if(el!=null){el.style.height=height+"px"}this.resizeCallback(el.offsetWidth,el.offsetHeight)};this.setHeight=function(id,height){var mod=this.modules[id];var el=mod.div.firstChild;if(el!=null){el.style.height=height+"px"}var elBg=el.nextSibling;if(elBg!=null){elBg.style.height=height+"px"}};this.openLink=function(url,target,params){if(target!=null||params!=null){window.open(url,target,params)}else{window.open(url)}};this.updateFlyoutState=function(id,height,autoclose){var mod=this.modules[id];if(mod){if(height>0){if(mod.height!=height&&mod!=this.openModule){var now=new Date().getTime();mod.expire=now;mod.closed=now-CONTENT_CACHING_SPAN;return}mod.height=height}this.setHeight(id,mod.height);mod.autoclose=autoclose}};this.cancelAutoclose=function(){if(this.closeTimer!=null){window.clearTimeout(this.closeTimer);this.closeTimer=null}};function isValid(id,forceReload,now){var module=tbxI.modules[id];if(forceReload||!module){return false}return now<module.expire&&now<module.closed+CONTENT_CACHING_SPAN}function getToolboxOffset(){return tbxI.findAbsElPos(document.getElementById("tbx_toolbox")).y}this.openFlyout=function(url,height,id,topOffset,timeout,forceReload){var now,buttonHeight,headerHeight,bottomHeight,bottomOverlap,effectiveHeight,preferredOffsetForButton,minOffset,offsetFromScrollState,effectiveOffset;now=new Date().getTime();buttonHeight=+"33";headerHeight=+"53";bottomHeight=+"97";bottomOverlap=+"15";effectiveHeight=headerHeight+height+bottomHeight;this.closeAllFlyouts();minOffset=0;preferredOffsetForButton=minOffset+topOffset-effectiveHeight+buttonHeight+bottomOverlap;offsetFromScrollState=(("pageYOffset" in window)?window.pageYOffset:window.document.documentElement.scrollTop)-getToolboxOffset();effectiveOffset=Math.max(preferredOffsetForButton,minOffset,offsetFromScrollState);if(this.modules[id]!=null&&isValid(id,forceReload,now)){this.modules[id].div.style.visibility="visible";this.modules[id].div.style.top=effectiveOffset+"px";this.modules[id].offset=effectiveOffset;this.modules[id].visible=true;this.setHeight(id,this.modules[id].height)}else{var isMSIE=
/*@cc_on!@*/
false;var style="background-color: transparent; height: "+effectiveHeight+"px;";if(isMSIE){style+=" position: absolute;"}url=url+"&remotePath="+encodeURIComponent(this.tbxSupportPath);url=url+"&timeStamp="+now;var modEl;if(this.modules[id]!=null){modEl=this.modules[id].div;modEl.style.visibility="visible"}else{modEl=document.createElement("div")}modEl.id=now+"_div";modEl.style.position="absolute";modEl.style.top=effectiveOffset+"px";modEl.style.right=((+"168")+(+"7"))+"px";modEl.style.zIndex=550;modEl.innerHTML='<iframe id="'+now+'" src="http://tbx.t-online.de/ps/ra/web-4901-0-810/misc/blank.html" style="'+style+'" width="432" scrolling="no" allowTransparency="true" frameborder="0"></iframe>';if(isMSIE){var iframe=document.createElement("iframe");iframe.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";iframe.id=now+"_iframe";iframe.width=(+"432");iframe.style.height=effectiveHeight+"px";iframe.frameBorder="0";modEl.appendChild(iframe)}if(this.modules[id]==null){this.flyoutDiv.appendChild(modEl)}var modIframe=modEl.firstChild;if(modIframe){modIframe.src=url}this.modules[id]={id:id,expire:now+timeout,visible:true,div:modEl,closed:0,autoclose:true,height:effectiveHeight,topOffset:topOffset,offset:effectiveOffset}}this.openModule=this.modules[id];this.portalMouseMove=document.onmousemove;this.portalMouseOut=document.onmouseout;document.onmousemove=tbxI._mouseOver;document.onmouseout=tbxI._mouseOut;this.toolbox.flyoutOpened(id)};this.closeFlyout=function(id){this.closeTimer=null;window.focus();document.onmouseout=this.portalMouseOut;document.onmousemove=this.portalMouseMove;if(this.modules[id]!=null){var now=new Date().getTime();if(now>this.modules[id].expire){this.destroyFlyout(id)}else{this.modules[id].div.style.visibility="hidden";this.setHeight(id,0);this.modules[id].visible=false;this.modules[id].closed=now}if(this.toolbox){this.toolbox.moduleClosed(id)}}if(this.openModule!=null&&this.openModule.id===id){this.openModule=null}};this.destroyFlyout=function(id){var mod=this.modules[id];if(mod!=null){this.flyoutDiv.removeChild(mod.div);if(this.openModule==mod){this.openModule=null}this.modules[id]=null}};this.closeAllFlyouts=function(){for(var id in this.modules){if(this.modules[id]!=null&&this.modules[id].visible){this.closeFlyout(id)}}};this.destroyAllFlyouts=function(id){if(id&&this.modules[id]){if(this.modules[id].visible){this.closeFlyout(id)}}if(this.flyoutDiv!=null){this.flyoutDiv.innerHTML=""}this.modules=[];this.openModule=null};this.openCCT=function(channel,countPixelPath,module){this.closeAllFlyouts();tbxCctI.openCCT(channel,module)};this.oneClickConfig=function(countPixelPath,module){if(countPixelPath==null){countPixelPath="TBX/prod/toolbox/web/dienste_auswaehlen"}this.toolbox.oneClickConfig(module)};this.registerLoadCallback=function(callback){if(callback){this.loadCallback=callback}else{this.loadCallback=function(){}}};this.registerResizeCallback=function(callback){if(callback){this.resizeCallback=callback}else{this.resizeCallback=function(){}}};this._mouseOver=function(){var operaHelp=true;if(window.opera){if(tbxI.flyoutDiv==null||tbxI.flyoutDiv=="undefined"){tbxI.flyoutDiv=document.getElementById("tbx_flyouts")}operaHelp=_operaHelpMouseMovedOut(event,tbxI.flyoutDiv)}if(operaHelp&&tbxI.closeTimer==null&&tbxI.openModule!=null&&tbxI.openModule.autoclose){var id=tbxI.openModule.id;tbxI.closeTimer=window.setTimeout("tbxI.closeFlyout.call(tbxI, '"+id+"');",+"400")}};function _operaHelpMouseMovedOut(event,refEl){try{if(refEl.contains(event.target)){return false}else{if(!event.target.tagName){return true}return !(event.target.tagName.toLowerCase()=="body")}}catch(error){return false}}this._mouseOut=function(){tbxI.cancelAutoclose.call(tbxI)};this.findAbsElPos=function(el){var curleft=0;var curtop=0;if(el.offsetParent){curleft=el.offsetLeft;curtop=el.offsetTop;while(el=el.offsetParent){curleft+=el.offsetLeft;curtop+=el.offsetTop}}return{x:curleft,y:curtop}}};TbxI.ToolboxProxy=function(b,f){this.remoteIframe=f;this.remoteUrl=b;this.moduleClosed=function(){this._call("tbx.moduleClosed",arguments)};this.reloadPage=function(){this._call("tbx.reloadPage",arguments)};this.reloadModuleStatus=function(){this._call("tbx._loadStatus",arguments)};this.updateStatusFor=function(i,h,g){if(i&&h){this._call("tbx.updateStatusFor",[i,h,g])}};this.invalidateModules=function(){this._call("tbx.invalidateModules",new Array())};this.moduleShowInfoBubble=function(g){this._call("TbxC.Counter.moduleShowInfoBubble",arguments)};this.countAny=function(g){this._call("TbxC.Counter.countAny",arguments)};this.flyoutOpened=function(g){this._call("tbx.moduleOpened",arguments)};this.oneClickConfig=function(g){this._call("tbx.oneClickConfig",arguments)};this._call=function(k,g){if(this.messageSender&&this.messageSender.sendMessage(this.messageSender.buildMessageString(k,g))){return}if(this.remoteUrl&&this.remoteUrl!=""){var j=this.remoteUrl+"remoteCommand="+encodeURIComponent(this._buildFunctionString(k,g));try{frames[this.remoteIframe].location.replace(j)}catch(i){var h=document.getElementById(this.remoteIframe);if(h){h.src=j}}}};this._buildFunctionString=function(l,j){var h=l+"(";for(var k=0;k<j.length;k++){var g=j[k];if(typeof(g)!="boolean"&&typeof(g)!="number"){g='"'+g+'"'}h=h+g;if(k<j.length-1){h=h+", "}}return h+");"};var a="*";var e=/^(https?):\/\/([^\/]+)/;if(b&&e.test(b)){var c=b.match(e);a=c[1]+"://"+c[2]}var d=document.getElementById("tbx_toolbox");if(d&&d.contentWindow){this.messageSender=PostMessageUtils.createSender(d.contentWindow,a)}};
