/*************************** rbmWindow4.js *******************************
**** Version 4.01.0003
**** last changed 11.12.2010
**** (c) 2007, 2008, 2009 Bernd Rudolf, rbm digitaltechnik, www.rbm.de
************************************************************************/
var rbmWindow={version:"4.01.0001",fader:null,color:"#000000",zIndex:1090,tooltipzIndex:2100,combozIndex:1500,allWindows:{},allCombos:{},allTooltips:{},allTabStrips:{},allSortLists:{},allScrollBoxes:{},allInteractiveSlideShows:{},tooltipCorner:["tltpnnw","tltpnne","tltpwnw","tltpene","tltpssw","tltpsse"],comboSetText:true,IE6Pics:[]};var rbmWindow3=rbmWindow;rbmWindow.bSFCRWndCapt=0;rbmWindow.lateInit=function(f){this.initCombos(f);this.initTooltips(f);this.initTabstrips(f);this.initInteractiveSlideShows(f);this.initScrollBoxes(f);this.initDragDrop(f);rbmWindow.adjustAllTabStripsSize();var e=f.getElementByClassName("scrollIntoView");if(!!e){e.scrollIntoView(e.className.indexOf("scrollIntoViewTop")==-1);}var a=f.getElementByClassName("focus");if(!!a){a.focus();if(!e){a.scrollIntoView(false);}}if(browserDetect.bIsSF||browserDetect.bIsCR){if(rbmWindow.bSFCRWndCapt==0){var d="99%";}else{var d="100%";}rbmWindow.bSFCRWndCapt=1-rbmWindow.bSFCRWndCapt;var c=$(document.body).getElementsByClassName("wndInnerCaption");if(!!c){for(var b=0;b<c.length;b++){c[b].style.height=d;}}}};rbmWindow.init=function(c){if(!c){c=$(document.getElementsByTagName("body")[0]);this.getBodyDimensions();this.initbgHiLighter();}else{c=$(c);}if(!!c){this.preloadImages(c);this.initWindows(c);this.lateInit(c);var d=c.getElementsByClassName("tinyMCE");if(d.length>0){if(!(typeof(tinyMCE)=="object")&&typeof(rbmAjax)=="function"){var e=new rbmAjax();bTinyMCE_DoNotWaitForDOM=true;strTinyMCE_baseURL=c_Customer+"/_js/tiny_mce";e.getScript(strTinyMCE_baseURL+"/tiny_mce_src.js");}var a={mode:"textareas",theme:"advanced",theme_advanced_buttons1:"bold,italic,underline,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,separator,outdent,indent,separator,hr,charmap",theme_advanced_buttons2:"removeformat,undo,redo,cleanup,code",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"bottom",theme_advanced_toolbar_align:"center",theme_advanced_resizing:true};for(var b=0;b<d.length;b++){new tinymce.Editor(d[b].id,a).render();}}}};rbmWindow.getParentGUIStructure=function(a){if(!a||a.nodeName.toUpperCase()=="BODY"){return false;}if(a.className.indexOf("tabContainer")!=-1||a.className.indexOf("rbmWindow")!=-1){if(c_bLogFlow){console.log("rbmWindow.getParentGUIStructure: "+a.id);}return $(a);}return this.getParentGUIStructure(a.parentNode);};rbmWindow.cleanUp=function(e){if(!e){e=$(document.getElementsByTagName("body")[0]);this.getBodyDimensions();this.initbgHiLighter();}else{e=$(e);}if(typeof(tinyMCE)=="object"){var f=e.getElementsByClassName("tinyMCE");for(var d=0;d<f.length;d++){var c=tinyMCE.get(f[d].id);if(!!c){c.remove();}}}if(typeof(ePlayerList)=="object"){var a=e.getElementsByClassName("playerContainer");for(var d=0;d<a.length;d++){var b=a[d].firstChild.id;destroyPlayer(b);}}};rbmWindow.removeWindows=function(){for(wnd in rbmWindow.allWindows){if(!rbmWindow.allWindows[wnd].isOpen&&!rbmWindow.allWindows[wnd].isPersistent){if(c_bLogFlow){console.log("delete window "+wnd);}delete rbmWindow.allWindows[wnd];}}};rbmWindow.pushHistory=function(a,b){if(typeof(cms)=="object"){cms.history.pushHistory(a,b);cms.history.pushHistory(a,b);}};rbmWindow.setHistory=function(){if(typeof(cms)=="object"){cms.history.setHistory();}};rbmWindow.bodyResize=function(){rbmWindow.adjustAllTabStripsSize();var a=0;for(wnd in rbmWindow.allWindows){if(rbmWindow.allWindows[wnd]&&(rbmWindow.allWindows[wnd].bCenterX||rbmWindow.allWindows[wnd].bCenterY)){if(!!rbmWindow.allWindows[wnd].w){var c=rbmWindow.calcCenterOffset(new Coordinate(rbmWindow.allWindows[wnd].w,rbmWindow.allWindows[wnd].h));c.x=(c.x<10)?10:c.x;c.y=(c.y<10)?10:c.y;var b=Coordinates.scrollOffsetIE(rbmWindow.allWindows[wnd].parentNode,true);if(b.x>0){b.x+=20;}if(b.y>0){b.y+=20;}c.x+=a*30;c.y+=a*30;a++;c.x+=b.x;c.y+=b.y;rbmWindow.allWindows[wnd].move((rbmWindow.allWindows[wnd].bCenterX?c.x:-1),(rbmWindow.allWindows[wnd].bCenterY?c.y:-1));}}}};rbmWindow.addEventListener=function(d,a,c){var b=$(d);if(c_bLogFlow&&!!console.groupCollapsed){console.groupCollapsed("addEventListener to "+b.id+" for "+a);console.log(c);console.groupEnd();}if(b.eventListeners&&b.eventListeners[a]){b.eventListeners[a].push(c);}};rbmWindow.raiseEvent=function(d,c,e){d=$(d);if(d.eventListeners){var a=d.eventListeners[c].length;for(var b=0;b<a;b++){d.eventListeners[c][b](e);}}};rbmWindow.getBodyDimensions=function(f){var b,e;if(typeof(f)=="undefined"&&typeof(this.bScrollPage)!="undefined"){f=this.bScrollPage;}var b=document.body.offsetWidth;if(b==0){b=window.document.documentElement.offsetWidth;}var c=document.body.clientHeight;if(c==0){c=window.document.documentElement.clientHeight;}var d=document.body.scrollHeight;if(d==0){d=window.document.documentElement.scrollHeight;}if(false&&f){if(typeof(window.innerHeight)=="undefined"){var a=document.getElementsByTagName("html")[0];if(typeof(a)=="undefined"){e=Math.max(c,d);}else{e=Math.max(a.offsetHeight,d);}}else{e=Math.max(window.innerHeight,d);}}else{if(typeof(window.innerHeight)=="undefined"){var a=document.getElementsByTagName("html")[0];if(typeof(a)=="undefined"){e=Math.max(c,d);}else{e=a.offsetHeight;}}else{e=window.innerHeight;}}this.bodyDimensions=new Coordinate(b,e);return new Coordinate(b,e);};rbmWindow.checkNumericKeyCode=function(a){if((a<48||a>57)&&a!=8&&a!=46&&(a<35||a>39)&&a!=13){return false;}else{return true;}};rbmWindow.calcCenterOffset=function(a){var c=this.getBodyDimensions();var b=c.minus(a);return new Coordinate(Math.round(b.x/2),Math.round(b.y/2));};rbmWindow.allBlur=function(){allLinks=document.getElementsByTagName("a");for(i=0;i<allLinks.length;i++){allLinks[i].onfocus=function(){this.blur();};}};rbmWindow.preloadImages=function(c){aButtons=c.getElementsByClassName("moButton");for(var b=0;b<aButtons.length;b++){if(!aButtons[b].preloaded){aButtons[b].preloaded=true;if(aButtons[b].src.indexOf("_hi")!=-1){aButtons[b].sel=true;}imgPreLoad[aButtons[b].id]=new Image();imgPreLoad[aButtons[b].id].onload=function(){this.isOK=true;};var d=aButtons[b].src.substr(0,aButtons[b].src.lastIndexOf("/")+1);var a=aButtons[b].src.substring(aButtons[b].src.lastIndexOf("."),aButtons[b].src.length);imgPreLoad[aButtons[b].id].src=d+aButtons[b].id+a;imgPreLoad[aButtons[b].id+"_hi"]=new Image();imgPreLoad[aButtons[b].id+"_hi"].onload=function(){this.isOK=true;};imgPreLoad[aButtons[b].id+"_hi"].src=d+aButtons[b].id+"_hi"+a;aButtons[b].onmouseover=function(){buttonHi(this);};aButtons[b].onmouseout=function(){if(!this.sel){buttonLo(this);}};}}imgPreLoad.ajax=new Image();imgPreLoad.ajax.src=c_Customer+"/images/ajax.gif";imgPreLoad.progress=new Image();imgPreLoad.progress.src=c_Customer+"/images/progress.gif";buttonHi=function(e){if(imgPreLoad[e.id+"_hi"].isOK){e.src=imgPreLoad[e.id+"_hi"].src;}};buttonLo=function(e){if(imgPreLoad[e.id].isOK){e.src=imgPreLoad[e.id].src;}};};rbmWindow.replacePicName=function(b,c){var d=b.substr(0,b.lastIndexOf("/")+1);var a=b.substring(b.lastIndexOf("."),b.length);return d+c+a;};rbmWindow.blink=function(b,e,d,c){if(!c){c=250;}oElement=$(b);if(oElement&&(!oElement.blinkCount||oElement.blinkCount==0)){oElement.blinkCount=e*2;oElement.origColor=oElement.style.backgroundColor;oElement.blinkColor=d;oElement.blink=function a(){this.blinkCount--;if(this.blinkCount==-1){this.blinkCount==0;}(this.blinkCount%2==0)?this.style.backgroundColor=this.origColor:this.style.backgroundColor=this.blinkColor;if(this.blinkCount>0){window.setTimeout(this.blink.bind(this),c);}};oElement.blink();}};rbmWindow.initWindows=function(c){var a=c.getElementsByClassName("rbmWindow");for(var b=0;b<a.length;b++){if(!a[b].wndBody){this.allWindows[a[b].id]=a[b];this.extendWindow(a[b]);}}};rbmWindow.extendWindow=function(a){a=$fx(a);a.isPersistent=false;a.wndCaption=$fx(a.getElementByClassName("wndCaption"));a.wndBottom=$fx(a.getElementByClassName("wndBottom"));a.wndShadow=$fx(a.getElementByClassName("wndShadow"));a.wndContentInner=$fx(a.getElementByClassName("wndContentInner"));a.wndContentInner.parent=a;a.wndBody=$fx(a.getElementByClassName("wndBody"));a.wndBody.parent=a;a.wndSizer=$fx(a.getElementByClassName("wndSEcorner"));a.bBorder=!!a.wndSizer;if(a.bBorder){a.wndSizer.parent=a;}a.bCaption=!!a.wndCaption;a.bBottom=!!a.wndBottom;a.bShadow=!!a.wndShadow;a.captionHeight=20;a.bottomHeight=20;a.borderSize=8;a.wndContentInner.adjustSize=function(b,c){if(!!c){var c=(c-(this.parent.bCaption?this.parent.wndCaption.offsetHeight:0)-(this.parent.bBottom?this.parent.wndBottom.offsetHeight:0)-2*(this.parent.bBorder?this.parent.borderSize:0));}else{var c=(this.parent.offsetHeight-(this.parent.bCaption?this.parent.wndCaption.offsetHeight:0)-(this.parent.bBottom?this.parent.wndBottom.offsetHeight:0)-2*(this.parent.bBorder?this.parent.borderSize:0));}if(c>0){this.style.height=c+"px";}};a.effects=[];a.open=function(n,l,p,A,o,B,D,c,E,H,g,F,d,v,G,C,I,f,k,u){if(!this.isOpen){bRelocate=!u;if(typeof(f)!="undefined"){this.isPersistent=f;}var t=0;var j=a;var b=false;while(t<5&&(j=j.parentNode)){if(j.id.indexOf("window_Area")!=-1){b=true;t=6;}t++;}if(!b&&bRelocate){var m=null;if(!!idUnit){var r=$("c_unit_"+idUnit);if(r){m=r.getElementById("window_Area");}else{m=$("global_window_Area");}}else{m=$("global_window_Area");}if(m){this.bIsClone=true;this.cloneParent=this.parentNode;this.parentNode.removeChild(this);m.appendChild(this);}}this.isOpen=true;this.isClosing=false;if(typeof(k)!="undefined"){this.noHistory=k;}else{this.noHistory=false;}if(!this.noHistory){rnd="_"+(""+Math.random()).substr(3,6);rbmWindow.pushHistory(this.id+rnd,this.close.bind(this));rbmWindow.setHistory();}p=parseInt(p);A=parseInt(A);this.type="window";this.bDraggable=(typeof(E)=="undefined")?true:E;this.bSizeable=(typeof(H)=="undefined")?true:H;this.bScroll=(typeof(v)=="undefined")?true:v;this.bFade=(typeof(v)=="undefined")?false:o;this.bShadow=(typeof(G)=="undefined")?this.bShadow:G;this.bCaption=(typeof(C)=="undefined")?this.bCaption:C;this.bBottom=(typeof(I)=="undefined")?this.bBottom:I;if(this.bCaption){A+=this.captionHeight;}if(this.bBottom){A+=this.bottomHeight;}if(this.bBorder){A+=this.borderSize*2;p+=this.borderSize*2;}this.initW=(!!D)?D:p;this.initH=(!!c)?c:A;this.bCenter=false;if(n==-1||l==-1){this.bCenterX=(n==-1);this.bCenterY=(l==-1);var e=rbmWindow.calcCenterOffset(new Coordinate(p,A));var s=Coordinates.scrollOffsetIE(this.parentNode,true);if(s.x>0){s.x+=20;}if(s.y>0){s.y+=20;}n=(e.x<10)?10:(n==-1)?e.x:n;l=(e.y<10)?10:(l==-1)?e.y:l;if(rbmWindow.fader&&rbmWindow.fader.faderCounter){n+=rbmWindow.fader.faderCounter*30;l+=rbmWindow.fader.faderCounter*30;}n+=s.x;l+=s.y;}if(browserDetect.bIsIE){if(browserDetect.version==6){B=false;this.initW=p;this.initH=A;}else{if(this.initW==p){this.initW=Math.round(this.initW-2);}}this.bNoIEEffects=true;if(browserDetect.version==7){var q=$("main");if(!!q){q.className="mainNonRel";}}}else{if((browserDetect.bIsSF&&parseFloat(browserDetect.version)>3.9)||browserDetect.bIsCR){this.bNoIEEffects=true;}}this.aCloseButtons=this.getElementsByClassName("wndClose");for(var z=0;z<this.aCloseButtons.length;z++){this.aCloseButtons[z].w=this;this.aCloseButtons[z].onclick=function(){this.w.close();};}if(!this.bScroll){this.wndBody.style.overflow="hidden";}if(!this.bShadow&&!!this.wndShadow){this.wndShadow.setDisplay(false);}if(!this.bCaption&&!!this.wndCaption){this.wndCaption.setDisplay(false);}if(!this.bBottom&&!!this.wndBottom){this.wndBottom.setDisplay(false);}if(this.bDraggable&&this.bCaption){this.wndCaption.style.cursor="move";this.positionIsAbsolute=true;Drag.makeDraggable(this,this.wndCaption,20,20,rbmWindow.bodyDimensions.x,rbmWindow.bodyDimensions.y);}if(this.bSizeable&&this.bBorder){this.wndSizer.style.cursor="nw-resize";this.wndSizer.onmouseover=function(){this.origBG=this.style.backgroundColor;this.style.backgroundColor="red";};this.wndSizer.onmouseout=function(){this.style.backgroundColor=this.origBG;};Size.makeSizeable(this,this.wndSizer);if(!!g){this.sizeConstrain(g,F);}else{this.sizeConstrain(new Coordinate(100,100));}this.afterResize=function(){rbmWindow.lateInit(this);};}if(!B||this.bNoIEEffects){this.bFade=!!o;if(this.bFade){rbmWindow.fadeBG(1);}this.setDisplay(true);this.wndBody.setOpacity(100);this.setSize(p,A);this.move(n,l,null);this.show(true);rbmWindow.lateInit(this);this.onLoad();}else{this.newFx2=new rbmFX.scale(this,p,A,null,null,100);this.newFx2.onStart=function(){this.parent.move(n,l);this.parent.setDisplay(true);this.parent.show(true);this.parent.setSize(this.parent.initW,this.parent.initH);var h=this.parent.wndBody;h.style.visibility="hidden";h.setDisplay(true);h.setOpacity(0);};this.newFx2.onEnd=function(){var h=this.parent.wndBody;h.show(true);h.fx=new rbmFX.fade(h,1,100,10,4,500);h.fx.onEnd=function(){rbmWindow.lateInit(this.parent.parent);this.parent.parent.onLoad();};h.fx.go();};this.bFade=!!o;if(this.bFade){if(this.newFx2){this.afterFading=function(){if(this.newFx2){this.newFx2.go();}rbmWindow.fader.fx.onEnd=function(){};};rbmWindow.fader.fx.onEnd=this.afterFading.bind(this);}if(!rbmWindow.fadeBG(1)){rbmWindow.fader.fx.onEnd=function(){};if(this.newFx2){this.newFx2.go();}}}else{if(this.newFx2){this.newFx2.go();}}}if(typeof(d)=="undefined"||d===null||d===false||d==""){this.fixZIndex=false;this.style.zIndex=rbmWindow.zIndex++;}else{this.fixZIndex=true;if(parseInt(d)!="NaN"){this.style.zIndex=d;}}}};a.adjustSize=function(b,c){this.w=b;this.h=c;this.wndContentInner.adjustSize(b,c);if(this.bShadow){this.wndShadow.setSize(this.w,this.h);}};a.close=function(c){if(!this.isClosing&&this.isOpen){c=!!c?c:"no";this.isClosing=true;if(this.beforeClose){this.beforeClose();}if(!!this.newFx2&&!(browserDetect.browser=="Internet Explorer"&&this.bNoIEEffects)){this.newFx2.onStart=function(){var e=this.parent.wndBody;};this.newFx2.onEnd=function(){if(this.parent.bFade){rbmWindow.fadeBG(-1);}this.parent.setSize(this.parent.initW,this.parent.initH);this.parent.show(false);this.parent.setDisplay(false);if(this.parent.onClose){this.parent.onClose();}this.parent.isOpen=false;this.parent.isClosing=false;if(!this.parent.isPersistent&&c!="yes"){window.setTimeout(rbmXML.clearTarget.bind(window,this.parent.parentNode,true),500);window.setTimeout(rbmWindow.removeWindows.bind(window,this),500);}else{this.parent.moveBackToCloneParent();}};if(this.w!=this.initW){this.newFx2.w=this.initW;}else{this.newFx2.w=this.offsetWidth;}if(this.h!=this.initH){this.newFx2.h=this.initH;}else{this.newFx2.h=this.offsetHeight;}if(this.wndBody.fx){this.wndBody.fx.newFx2=this.newFx2;this.wndBody.fx.onEnd=function(){this.parent.setDisplay(false);this.newFx2.go();};this.wndBody.fx.go(-1);}else{this.newFx2.go();}}else{if(this.bFade){rbmWindow.fadeBG(-1);}try{this.setSize(this.initW,this.initH);}catch(d){}this.show(false);this.setDisplay(false);if(this.onClose){this.onClose();}this.isOpen=false;this.isClosing=false;if(!this.isPersistent&&c!="yes"){window.setTimeout(rbmXML.clearTarget.bind(window,this.parentNode,true),500);window.setTimeout(rbmWindow.removeWindows.bind(window,this),500);}else{this.moveBackToCloneParent();}}if(browserDetect.bIsIE&&browserDetect.version==7){var b=$("main");if(!!b){b.className="mainRel";}}}};a.moveBackToCloneParent=function(){if(this.bIsClone){var b=this.parentNode;b.removeChild(this);this.cloneParent.appendChild(this);this.bIsClone=false;this.cloneParent=null;}};a.toFront=function(){if(!this.fixZIndex){this.style.zIndex=rbmWindow.zIndex++;}};a.onclick=a.toFront.bind(a);a.beforeClose=function(){};a.onClose=function(){};a.onLoad=function(){return null;};};rbmWindow.onFaderStart=function(){return null;};rbmWindow.onFaderEnd=function(){return null;};rbmWindow.createFader=function(b,c,a){this.fader=$("mainfader");if(!this.fader){this.fader=$fx(document.createElement("div"));this.fader.style.display="none";document.body.appendChild(rbmWindow.fader);this.initFader(b,c,a);}};rbmWindow.initFader=function(b,c,a){this.fader.faderCounter=0;this.fader.fadecolor=b||"#000000";this.fader.maxOpac=a||50;this.fader.speed=c||1;this.fader.fx=new rbmFX.fade(this.fader,this.fader.speed,this.fader.maxOpac,10);this.fader.fx.disVis=1;this.fader.id="mainfader";this.fader.style.display="none";this.fader.style.position="absolute";this.fader.style.top="0px";this.fader.style.left="0px";this.fader.style.width="100%";this.fader.style.height="100%";this.fader.setOpacity(0);this.fader.style.zIndex="1000";this.fader.style.top="0px";this.fader.style.left="0px";this.fader.style.backgroundColor=this.fader.fadecolor;};rbmWindow.resizeFader=function(b){if(!b){var a=this.getBodyDimensions();b=a.y;}if(!!this.fader){this.fader.style.height=b+"px";}};rbmWindow.fadeBG=function(c){if(this.fader.faderCounter==0||(this.fader.faderCounter+c==0)||c==2){var a=false;var b;switch(c){case -1:b="none";break;case 1:b="block";break;default:b="toggle";break;}this.createFader();if(this.fader.style.display!=b){a=true;if(this.fader.op<=0){this.onFaderStart();this.fader.style.display="block";c=1;if(b=="toggle"){this.fader.fx.toggle();}else{this.fader.fx.go(c);}}else{c=-1;if(b=="toggle"){this.fader.fx.toggle();}else{this.fader.fx.go(c);}this.onFaderEnd();}}}this.fader.faderCounter+=c;return a;};rbmWindow.initCombos=function(h){var l=h.getElementsByClassName("rbmCombo");var f;for(f=0;f<l.length;f++){var g=$($("rbmComboMaster").cloneNode(true));g.style.width=l[f].offsetWidth+"px";g.style.display="block";g.id=l[f].id;g.name=l[f].name;var k=l[f].getElementsByTagName("option");var d;var c=$(g.getElementsByTagName("li")[0]);var a=g.getElementByClassName("droplist");for(d=0;d<k.length;d++){if(d==0){c.getElementByClassName("droplistitem").innerHTML=k[d].innerHTML;}else{var e=$(c.cloneNode(true));e.getElementByClassName("droplistitem").innerHTML=k[d].innerHTML;a.appendChild(e);}}l[f].parentNode.replaceChild(g,l[f]);}var b=h.getElementsByClassName("combo");for(var f=0;f<b.length;f++){this.allCombos[b[f].id]=b[f];this.extendCombo(b[f],f);}};rbmWindow.extendCombo=function(d,b){d.drop=false;d.setText=rbmWindow.comboSetText;d.dropdownbox=$fx($(d).getElementByClassName("dropdownbox"));d.dropbutton=d.getElementByClassName("dropdownLink");d.formelement=d.getElementByClassName("dropformelement");d.textelement=d.getElementsByClassName("combotextbox")[0];d.dropboxMaxW=200;d.style.zIndex=--this.combozIndex;d.dropdownbox.style.zIndex=--this.combozIndex;d.dropdown=function(c){if(c===null){this.drop=!this.drop;}else{this.drop=c;}var e;if(this.drop){for(e=0;e<rbmWindow.allCombos.length;e++){if(rbmWindow.allCombos[e]!=this){rbmWindow.allCombos[e].drop=false;rbmWindow.allCombos[e].dropdownbox.setDisplay(false);}}}this.dropdownbox.setDisplay(this.drop);};d.dropSelect=function(e,c){d.dropdown(false);if(typeof(hcDropSelect)!="undefined"){hcDropSelect(e,c);}};d.clickSelect=function(c){d.value=c;d.formelement.value=c;if(d.setText){d.textelement.innerHTML=d.droplistItems[c-1].innerHTML;}d.dropSelect(d.id,c);};d.droplistItems=d.getElementsByClassName("droplistitem");var a;for(a=0;a<d.droplistItems.length;a++){d.droplistItems[a].id=a+1;d.droplistItems[a].onclick=d.clickSelect.bind(d.droplistItems[a],a+1);}d.dropbutton.onclick=d.dropdown.bind(d,null);d.adjustSize=function(c,e){if(d.id=="rbmComboMaster"){return false;}c=c||this.offsetWidth;e=e||this.offsetHeight;if(c==0){c=200;}this.getElementsByClassName("combotextbox")[0].style.width=(c-30)+"px";this.getElementsByClassName("comboinner")[0].style.width=(c-6)+"px";this.getElementsByClassName("dropdownbox")[0].style.width=(this.dropboxMaxW)+"px";this.getElementsByClassName("dropdownbox")[0].style.width=(this.dropboxMaxW)+"px";};d.adjustSize();};rbmWindow.initTooltips=function(c){var a=c.getElementsByClassName("tooltip");for(var b=0;b<a.length;b++){if(!a[b].tipType){this.allTooltips[a[b].id]=a[b];this.extendTooltips(a[b]);}}};rbmWindow.extendTooltips=function(a){a=$fx(a);a.content=a.getElementByClassName("tltpcontentinner");a.FX=new rbmFX.fade(a,1,100,10,4,500);a.setOpacity(0);a.FX.disVis=1;a.tipType="nnw";a.showTip=function(b){this.getElementById("tltpnnw").style.display="none";this.getElementById("tltpnne").style.display="none";this.getElementById("tltpwnw").style.display="none";this.getElementById("tltpene").style.display="none";this.getElementById("tltpssw").style.display="none";this.getElementById("tltpsse").style.display="none";this.getElementById("tltp"+b).style.display="block";this.tipType=b;};a.showTooltip=function(c,e,k,f,g,d,l){this.showTip(c);this.style.zIndex=rbmWindow.tooltipzIndex++;var b=$fx(e);var j=Coordinates.northWestOffsetAbsolute(b,true,-1);this.posTooltip(j.x+g,j.y+d,k,f,b);if(!!l){this.load(l);}this.FX.go(1);};a.hideTooltip=function(b){if(!b){this.FX.go(-1);}else{this.setDisplay(false);}};a.posTooltip=function(b,j,c,f,g){this.style.zIndex=rbmWindow.tooltipzIndex++;switch(this.tipType){case"sse":var d=new Coordinate(c-34,f);break;case"ene":var d=new Coordinate(c,34);break;case"nne":var d=new Coordinate(c-34,0-g.offsetHeight);break;case"nnw":var d=new Coordinate(34-g.offsetWidth,0-g.offsetHeight);break;case"wnw":var d=new Coordinate(0-g.offsetWidth,34);break;case"ssw":var d=new Coordinate(34,f);break;default:break;}var e=new Coordinate(b-d.x,j-d.y);this.setSize(c,f);this.move(e.x,e.y);};a.adjustSize=function(c,d){c=c||this.offsetWidth;d=d||this.offsetHeight;this.getElementByClassName("tltptop").style.width=(c-46)+"px";this.getElementByClassName("tltpcontent").style.width=(c-48)+"px";var b=this.getElementByClassName("tltpcontentContainer");if(!!b){b.style.height=(d-48-22)+"px";}this.getElementByClassName("tltpbottom").style.width=(c-46)+"px";this.getElementByClassName("tooltipcenter").style.height=(d-48)+"px";};a.load=function(c){var b=$(c);if(b){this.content.innerHTML=b.innerHTML;}else{this.content.innerHTML=c.replace(/\~/,"<br/>");}};a.onclick=function(){this.hideTooltip();};};rbmWindow.initMousePointer=function(){this.mousePointer=$fx("mouse");var a=this.mousePointer;a.show=function(e,c,j,g,d){if(g){var b=this.getElementById("mouseText");b.innerHTML=g;b.style.display="block";b.style.color=d?d:"#000000";}else{var b=this.getElementById("mouseText");b.style.display="none";}var f=$(e);var h=Coordinates.northwestOffset(f,true,-1);this.move(h.x-c+f.offsetWidth,h.y-j+f.offsetHeight-10);this.setDisplay(true);};};rbmWindow.closeTab=function(f,a,b,c){var e=$(f);var d=new rbmFX.scale(e,e.offsetWidth,13,null,null,100);d.onEnd=function(){if(!!a&&!!cms[a]){cms[a](b,c);}};d.go();};rbmWindow.openTab=function(a,e){var d=$("contentTab_"+a+e);if(d.offsetWidth>0){var b=d.getElementById("tab_"+a+e);var c=new rbmFX.scale(d,d.offsetWidth,b.offsetHeight+30,null,null,100);c.onEnd=function(){c.parent.style.height="auto";c.parent.style.width="auto";rbmWindow.adjustAllTabStripsSize();};c.go();}else{console.warn("rbmWindow.openTab: unable to scale "+d.id);d.style.height="auto";d.style.width="100%";}};rbmWindow.adjustAllTabStripsSize=function(){for(tab in this.allTabStrips){this.allTabStrips[tab].adjustSize();}};rbmWindow.initTabstrips=function(c){var a=c.getElementsByClassName("rbmTabstrip");for(var b=0;b<a.length;b++){if(!(a[b].selectTab)){this.allTabStrips[a[b].id]=a[b];this.extendTabstrips(a[b]);}else{a[b].adjustSize();}}};rbmWindow.extendTabstrips=function(b){b.selectTab=function(g,d){d=!!d;if(typeof(g)!="object"){g=this.aTabs[g];}if(typeof(this.selectedTab)!="undefined"){this.inactivated(this.selectedTab);}for(var f=0;f<this.aTabs.length;f++){var c=this.aTabs[f].className.split(" ");if(c.length>0){var h="";for(var e=0;e==0||e<c.length-1;e++){h+=c[e];}this.aTabs[f].className=h;}}g.className=g.className+" "+g.className+"_a";this.tabShiftContainer.style.marginLeft=(-1*this.shiftWidth*g.tIndex)+"px";this.selectedTab=g.tIndex;this.activated(this.selectedTab,d);};b.aTabs=$(b).getElementByClassName("tabA").getElementsByTagName("li");for(var a=0;a<b.aTabs.length;a++){if(b.aTabs[a].id!="blank"){b.aTabs[a].id=b.id+"_"+a;b.aTabs[a].tIndex=a;b.aTabs[a].mainTab=b;}if(b.aTabs[a].className.indexOf("tabTypeA_a")!=-1){b.selectedTab=b.aTabs[a].tIndex;}}b.aTabContainer=$(b).getElementsByClassName("tabContainer");b.adjustSize=function(){this.shiftWidth=this.offsetWidth;for(var c=0;c<this.aTabContainer.length;c++){this.aTabContainer[c].style.width=this.offsetWidth+"px";}this.tabShiftContainer=$(b).getElementByClassName("tabShiftContainer");this.tabShiftContainer.style.width=(this.aTabs.length*this.tabShiftContainer.parentNode.offsetWidth)+"px";this.tabShiftContainer.style.marginLeft=(-1*this.shiftWidth*this.selectedTab)+"px";if(!this.bRenderTrouble){this.bRenderTrouble=true;this.adjustSize();}this.bRenderTrouble=false;};b.adjustSize();b.activated=function(d,c){if(!c){rbmWindow.setHistory(this.id,this.selectTab.bind(this,d));}this.userActivated(d);if(this.aTabs[d].onFirstSelect){this.aTabs[d].onFirstSelect(this);}};b.inactivated=function(c){this.userInactivated(c);};b.userActivated=function(c){};b.userInactivated=function(c){};};rbmWindow.initbgHiLighter=function(){this.bgHiLighter=$fx("bgHiLighter");if(this.bgHiLighter){this.bgHiLighter.fx=new rbmFX.fade(this.bgHiLighter,1,30,4,2,300);this.bgHiLighter.fx.disVis=1;}};rbmWindow.elementHiLight=function(a){a=$(a);var b=Coordinates.northwestOffset(a,true);this.setHiLight(b.x,b.y,a.offsetWidth,a.offsetHeight);};rbmWindow.setHiLight=function(a,d,b,c){sw=document.body.offsetWidth;if(typeof(window.innerHeight)=="undefined"){sh=Math.max(document.body.clientHeight,document.body.scrollHeight+50);}else{sh=Math.max(window.innerHeight,document.body.scrollHeight+50);}this.bgHiLighter.setDisplay(true);$fx("bgHiLighter").setSize(sw,sh);$fx("bgHiLighterTop").setSize(sw,d);$fx("bgHiLighterLeft").setSize(a,c);$fx("bgHiLight").setSize(b,c);$fx("bgHiLighterRight").setSize(sw-a-b,c);$fx("bgHiLighterBottom").setSize(sw,sh-d-c);$fx("bgHiLighter").fx.go(1);};rbmWindow.resetHiLight=function(){$fx("bgHiLighter").fx.go(-1);};rbmWindow.IE6PicLoader=function(a,b){a.src=b;if(true){a.ok=false;a.onload=function(){this.ok=true;};this.IE6Pics.push(a);window.setTimeout("rbmWindow.checkIE6PicLoad()",2000);}};rbmWindow.checkIE6PicLoad=function(){var c=false;var a=new Array();for(var b=0;b<this.IE6Pics.length;b++){if(this.IE6Pics[b]!=null){if(!this.IE6Pics[b].ok){this.IE6Pics[b].src=this.IE6Pics[b].src;c=true;}else{a.push(b);}}else{this.IE6Pics.slice(b,b);}}for(b=a.length-1;b>=0;b--){this.IE6Pics[a[b]]=null;this.IE6Pics.splice(a[b],a[b]+1);}a=null;if(c){window.setTimeout("rbmWindow.checkIE6PicLoad()",2000);}};rbmWindow.flipBox=function(c,a,b,f,h,d,k,e){c=$(c);c.eventListeners=new Object();c.eventListeners.oElement=c;c.eventListeners.onOpen=[];c.eventListeners.afterOpen=[];c.eventListeners.onClose=[];c.nElementOpen=a;c.switchTeaserActive=false;c.ipNew=null;c.ipOld=null;c.myClassName=b;c.hmin=f+1;c.hmax=h;c.transition=k;c.speed=e;c.switchTeaser=function(s){if(s!=this.nElementOpen&&!this.switchTeaserActive){this.switchTeaserActive=true;var r=this.getElementsByClassName("rbmFlipBoxThemeContainer_"+c.id.replace(/rbmFlipBox_/g,""))[s];var p=this.getElementsByClassName("rbmFlipBoxThemeContainer_"+c.id.replace(/rbmFlipBox_/g,""))[this.nElementOpen];r.className+=" themeOpen";if(this.nElementOpen!=-1){p.className=p.className.replace(/ themeOpen/g,"");var m=p.getElementsByTagName("iframe");for(var l=0;l<m.length;l++){m[l].style.display="none";}if(!p.small){p.small=new rbmFX.scale(p,-1,this.hmin,d,k,e);p.small.onEnd=function(){};}p.small.go();rbmWindow.raiseEvent(this,"onClose",this.nElementOpen);}var o=r.getElementByClassName("rbmFlipBoxThemeContainerInner");var q;if(this.hmax==-1){q=o.offsetHeight+this.hmin;}else{q=this.hmax;o.style.height=this.hmax-this.hmin;}if(!r.big){r.big=new rbmFX.scale(r,-1,q,d,k,e);r.big.onEnd=function(){c.switchTeaserActive=false;this.parent.style.height="auto";var t=this.parent.getElementsByTagName("iframe");for(var n=0;n<t.length;n++){t[n].style.display="block";}rbmWindow.raiseEvent(c,"afterOpen",c.nElementOpen);};}else{r.big.h=q;}window.setTimeout(r.big.go.bind(r.big),200);this.nElementOpen=s;rbmWindow.raiseEvent(this,"onOpen",this.nElementOpen);}else{if(!this.switchTeaserActive){var p=this.getElementsByClassName("rbmFlipBoxThemeContainer_"+c.id.replace(/rbmFlipBox_/g,""))[this.nElementOpen];if(this.nElementOpen!=-1){p.className=p.className.replace(/ themeOpen/g,"");var m=p.getElementsByTagName("iframe");for(var l=0;l<m.length;l++){m[l].style.display="none";}if(!p.small){p.small=new rbmFX.scale(p,-1,this.hmin,d,k,e);p.small.onEnd=function(){};}p.small.go();rbmWindow.raiseEvent(this,"onClose",this.nElementOpen);this.nElementOpen=-1;}}}};var j=c.getElementsByClassName("rbmFlipBoxThemeHead_"+c.id.replace(/rbmFlipBox_/g,""));for(var g=0;g<j.length;g++){c.count=g+1;j[g].n=g;j[g].onclick=function(){c.switchTeaser(this.n);};}};rbmWindow.initDragDrop=function(c){var b=c.getElementsByClassName("rbmSortList");for(var a=0;a<b.length;a++){rbmWindow.allSortLists[b[a].id]=b[a];rbmWindow.prepareSortList(b[a].id);}};rbmWindow.prepareSortList=function(b){list=$(b);list.eventListeners=new Object();list.eventListeners.onDragEnd=[];list.customConstraints=function(){var c=Coordinates.northwestOffset(list,true);this.minX=c.x+5;this.maxX=c.x+this.offsetWidth-(!!this.firstChild?this.firstChild.offsetWidth:0)-10;this.minY=c.y+5;this.maxY=this.minY+20;console.log(this.minX+"/"+this.minY+"  --  "+this.maxX+"/"+this.maxY);};var a="li";DragDrop.makeListContainer(list,"sortList",a,"picListNavi");list.onDragOver=function(){this.parentNode.style.background="#EEF";};list.onDragOut=function(){this.parentNode.style.background="none";};list.swap="horizontal";if(list.className.toUpperCase().indexOf("RBMSORTLISTSTORE")!=-1){rbmWindow.addEventListener(list,"onDragEnd",function(g){var h=!!g.previousSibling?g.previousSibling.id.substring(g.previousSibling.id.lastIndexOf("_")+1,g.previousSibling.id.length):0;var e=!!g.nextSibling?g.nextSibling.id.substring(g.nextSibling.id.lastIndexOf("_")+1,g.nextSibling.id.length):0;var d=g.id.substring(0,g.id.lastIndexOf("_"));var c=g.id.substring(g.id.lastIndexOf("_")+1,g.id.length);var f=$(g.parentNode.nextSibling).getElementById(d+"_previous");if(f){f.value=h;}var k=$(g.parentNode.nextSibling).getElementById(d+"_next");if(k){k.value=e;}var j=$(g.parentNode.nextSibling).getElementById("result");cms.storeData(d,c,j,null,false,false,null,null,g.parentNode.nextSibling);});}list.onAdd=function(c){};list.onRemove=function(c){};};rbmWindow.initInteractiveSlideShows=function(c){var b=c.getElementsByClassName("interactiveSlideShow");for(var a=0;a<b.length;a++){rbmWindow.prepareInteractiveSlideShow(b[a].id);}};rbmWindow.prepareInteractiveSlideShow=function(g,f,d){slideShow=$(g);rbmWindow.allInteractiveSlideShows[g]=slideShow;var a=slideShow.getElementById("manslideshowcontainer");if(!a){console.warn("rbmWindow.prepareInteractiveSlideShow: manslideshowcontainer not found!");return;}slideShow.sl=a;a.parent=slideShow;slideShow.eventListeners=new Object();slideShow.eventListeners.onLeftBorder=[];slideShow.eventListeners.onMiddle=[];slideShow.eventListeners.onRightBorder=[];slideShow.eventListeners.onNext=[];slideShow.eventListeners.onPrev=[];slideShow.eventListeners.onSlideIn=[];slideShow.eventListeners.onSlideOut=[];slideShow.setPosition=function(h){if(h>=0&&this.sl.fx&&h<this.sl.fx.elementCount){this.start=h;this.sl.fx.start=h;this.sl.fx.position=-1*h;this.sl.fx.margin=-1*h*this.sl.fx.delta;this.sl.style.marginLeft=this.sl.fx.margin+"px";this.sl.fx.bounding();}else{this.start=h;}};if(typeof(slideShow.start)=="undefined"){slideShow.setPosition(0);}var b=slideShow.getElementById("manslideshownav");if(!!b){if(!a.fx){a.fx=new rbmFX.shift(a,-1);a.fx.position=-1*slideShow.start;a.fx.margin=-1*slideShow.start*a.fx.delta;a.fx.bounding();}else{a.fx.init();}aImgList=slideShow.getElementsByClassName("interactiveSlideShowImage_Container");a.fx.elementCount=aImgList.length;a.fx.onStart=function(){};var e=slideShow.getElementById("nextMainSlide");if(!!e){a.fx.nextButton=$fx(e);a.fx.nextButton.fx=a.fx;e.onclick=function(){this.fx.go(-1);};}var c=slideShow.getElementById("prevMainSlide");if(!!c){a.fx.prevButton=$fx(c);a.fx.prevButton.fx=a.fx;c.onclick=function(){this.fx.go(1);};}a.fx.onEnd=function(){this.bounding();rbmWindow.raiseEvent(this.parent.parent,((this.d==1)?"onPrev":"onNext"));rbmWindow.raiseEvent(this.parent.parent,"onSlideIn",Math.abs(this.position));};a.fx.onStart=function(){rbmWindow.raiseEvent(this.parent.parent,"onSlideOut",Math.abs(this.position));};a.fx.onRightBorder=function(){this.prevButton.setOpacity(100);this.nextButton.setOpacity(50);rbmWindow.raiseEvent(this.parent.parent,"onRightBorder");};a.fx.onLeftBorder=function(){this.prevButton.setOpacity(50);this.nextButton.setOpacity(100);rbmWindow.raiseEvent(this.parent.parent,"onLeftBorder");};a.fx.onMiddle=function(){this.prevButton.setOpacity(100);this.nextButton.setOpacity(100);rbmWindow.raiseEvent(this.parent.parent,"onMiddle");};b.fx=new rbmFX.fade(b,-1,100,4,4,100);a.oNav=b;if(document.all){a.onmouseover=b.show.bind(b,1);a.onmouseout=function(j){if(typeof j=="undefined"){j=window.event;}Coordinates.fixEvent(j);var h=j.windowCoordinate;if(h.outside(Coordinates.northwestOffset(this.parentNode,true),Coordinates.southeastOffset(this.parentNode,true))){this.oNav.show(0);}};}else{a.onmouseover=b.fx.go.bind(b.fx,1);a.onmouseout=function(j){if(typeof j=="undefined"){j=window.event;}Coordinates.fixEvent(j);var h=j.windowCoordinate;if(h.outside(Coordinates.northwestOffsetIE(this.parentNode,true),Coordinates.southeastOffsetIE(this.parentNode,true))){this.oNav.fx.go(-1);}};}}return slideShow;};rbmWindow.showMagnifier=function(d,b,g,a,f,e,c){var j=$fx("rbmWindowMagnifier");j.style.zIndex=this.tooltipzIndex++;if(!j.active){pic=j.getElementById("rbmWindowMagnifierPic");if(b.tagName.toUpperCase()!="IMG"){var k=b.style.backgroundImage.replace(/url\(/g,"");k=k.substr(0,k.length-1);pic.src=k.replace(/thumbs\//g,c);}else{pic.src=b.src.replace(/thumbs\//g,c);}j.show(true);j.active=true;j.setSize(g,a);j.diff=new Coordinate(g+f,a+e);rbmWindow.moveMagnifier(d);j.fadeFX=new rbmFX.fade(j,1,100,5,4,500);j.fadeFX.disVis=1;pic.onload=function(){j.fadeFX.go();};}};rbmWindow.hideMagnifier=function(){var a=$fx("rbmWindowMagnifier");a.setOpacity(0);a.setDisplay(false);a.active=false;};rbmWindow.moveMagnifier=function(c){c=c||window.event;var a=rbmWindow.relativeMouseCoords(c);var b=$fx("rbmWindowMagnifier");if(b.diff){a=a.minus(b.diff);}b.move(a);};rbmWindow.relativeMouseCoords=function(a){if(a.pageX||a.pageY){return new Coordinate(a.pageX,a.pageY);}return new Coordinate(a.clientX+document.body.scrollLeft-document.body.clientLeft,a.clientY+document.body.scrollTop-document.body.clientTop);}
/*************************** fadeSlideShow.js *************************
**** Version 1.03.0001
**** last changed 30.01.2009
**** (c) 2007,2008 Bernd Rudolf, econtio GmbH, www.econtio.de
**********************************************************************/
;fadeSlideshow=function(e,c,b,d,a){this.srcArray=d;this.txtArray=a;this.maxPics=!!b?b:2;this.counter=2;this.ready=true;this.active=true;this.t=!!c?c:0;this.slContainer=$(e);this.sl=$fx(this.slContainer.getElementById("largeFadingSlide"));this.sl.oSlideshow=this;this.sl.txtArea=this.slContainer.getElementById("fadeSlideshowText");this.dummyImage=this.slContainer.getElementById("dummyImage");this.dummyImage.oSlideshow=this;this.dummyImage.onload=function(){this.oSlideshow.ready=true;if(!!this.oSlideshow.sl.parentNode){this.oSlideshow.sl.parentNode.style.backgroundImage="url("+this.src+")";}};this.sl.fx=new rbmFX.fade(this.sl,1,100,4,2,1500);this.sl.setOpacity(0);this.sl.setDisplay(true);this.sl.fx.onStart=function(){this.parent.oSlideshow.beforeFading();if(this.parent.oSlideshow.txtArray[this.parent.oSlideshow.counter-1]!=""&&typeof(this.parent.oSlideshow.txtArray[this.parent.oSlideshow.counter-1])!="undefined"){this.parent.txtArea.innerHTML=this.parent.oSlideshow.txtArray[this.parent.oSlideshow.counter-1];}};this.sl.onload=function(){this.oSlideshow.ready=true;};this.sl.fx.onEnd=function(g){this.parent.oSlideshow.ready=false;g=!!g;if(!g){this.parent.oSlideshow.counter=this.parent.oSlideshow.counter+1<=this.parent.oSlideshow.maxPics?this.parent.oSlideshow.counter+1:1;}else{}var f=this.parent.oSlideshow.srcArray[this.parent.oSlideshow.counter-1];if(this.op==100){this.parent.oSlideshow.dummyImage.src=f;}else{this.parent.src=f;}this.parent.oSlideshow.fadingCompleted();};this.go=function(){if(this.ready){this.sl.fx.toggle();if(this.t>0&&this.active){this.timer=window.setTimeout(this.go.bind(this),this.t);}else{}}else{this.timer=window.setTimeout(this.go.bind(this),100);}};this.gotoSlide=function(f){if(this.sl.fx.active){this.fadingCompleted=function(){this.fadingCompleted=function(){this.userFadingCompleted();};this.gotoSlide(f);};}else{window.clearTimeout(this.timer);this.counter=f;this.sl.fx.onEnd(true);this.active=false;this.go();}};this.contSlideshow=function(){if(!this.active){this.active=true;this.go(false);}};this.beforeFading=function(){this.userBeforeFading();};this.fadingCompleted=function(){this.userFadingCompleted();};this.userBeforeFading=function(){};this.userFadingCompleted=function(){};this.picturePreload=function(g){for(var f=g;f<this.maxPics;f++){}};if(this.t>0){this.timer=window.setTimeout(this.go.bind(this),this.t);}};rbmWindow.dropBox=function(b,g,a,f,j,h,d,c,l,e){b=$(b);b.eventListeners=new Object();b.eventListeners.oElement=b;b.eventListeners.onOpen=[];b.eventListeners.onClose=[];b.bOpen=!!g;b.switchTeaserActive=false;b.ipNew=null;b.ipOld=null;b.myClassName=a;b.hmin=f+1;b.hmax=j;b.transition=l;b.speed=e;b.openBox=function(){if(!this.bOpen&&!this.switchTeaserActive){this.switchTeaserActive=true;var o=this.getElementByClassName("rbmDropBoxThemeContainer");o.className+=" themeOpen";var m=o.getElementByClassName("rbmDropBoxThemeContainerInner");var n;if(this.hmax==-1){n=m.offsetHeight+this.hmin+h;}else{n=this.hmax;m.style.height=this.hmax-this.hmin;}if(!o.big){o.big=new rbmFX.scale(o,-1,n,c,l,e);o.big.onEnd=function(){b.switchTeaserActive=false;this.parent.style.height="auto";var q=this.parent.getElementsByTagName("iframe");for(var p=0;p<q.length;p++){q[p].style.display="block";}};}else{o.big.h=n;}window.setTimeout(o.big.go.bind(o.big),200);this.bOpen=true;rbmWindow.raiseEvent(this,"onOpen",0);}};b.closeBox=function(){if(this.bOpen&&!this.switchTeaserActive){var o=this.getElementByClassName("rbmDropBoxThemeContainer");if(this.bOpen){o.className=o.className.replace(/ themeOpen/g,"");var n=o.getElementsByTagName("iframe");for(var m=0;m<n.length;m++){n[m].style.display="none";}if(!o.small){o.small=new rbmFX.scale(o,-1,this.hmin,c,l,e);o.small.onEnd=function(){};}o.small.go();rbmWindow.raiseEvent(this,"onClose",0);this.bOpen=false;}}};b.toggleBox=function(){if(!this.bOpen&&!this.switchTeaserActive){this.openBox();}else{if(!this.switchTeaserActive){this.closeBox();}}};if(!!d){var k=b.getElementByClassName("rbmDropBoxThemeHead");k.onclick=function(){b.toggleBox();};}};rbmWindow.initScrollBoxes=function(b){var c=b.getElementsByClassName("rbmScrollBox");for(var a=0;a<c.length;a++){if(!c[a].scrollH){this.allScrollBoxes[c[a].id]=c[a];this.extendScrollBox(c[a]);}}};rbmWindow.extendScrollBox=function(a){a.scrollStep=5;a.scroller=a.getElementByClassName("rbmScroller");a.scrollBar=a.getElementByClassName("rbmScrollbar");a.scrollBarHandle=a.getElementByClassName("rbmScrollbarHandle");a.scrollUp=a.getElementByClassName("rbmScrollUp");a.scrollDown=a.getElementByClassName("rbmScrollDown");a.scrollContainerInner=a.getElementByClassName("rbmScrollBoxContainerInner");a.scrollH=a.getElementByClassName("rbmScrollBoxContainerInner").offsetHeight-a.offsetHeight;if(a.scrollH<=0){$fx(a.scroller).setDisplay(false);}if(true||browserDetect.bIsIE&&browserDetect.version==7){$fx(a.scrollBar).show(false);}a.barHeight=a.scroller.offsetHeight-2*a.scrollUp.offsetHeight;a.scrollBarHandle.style.height=(a.barHeight-a.scrollH)+"px";a.scrollBar.style.height=(a.barHeight)+"px";a.scrollPos=0;a.scrollTimer=false;a.down=function(b){if(this.scrollPos*(-1)<this.scrollH){this.scrollPos-=this.scrollStep;this.scrollContainerInner.style.marginTop=this.scrollPos+"px";this.scrollBarHandle.style.top=(-1*this.scrollPos)+"px";if(!this.scrollTimer){this.scrollTimer=window.setInterval(this.down.bind(this,2),100);}}};a.up=function(b){if(this.scrollPos<0){this.scrollPos+=this.scrollStep;this.scrollContainerInner.style.marginTop=this.scrollPos+"px";this.scrollBarHandle.style.top=(-1*this.scrollPos)+"px";if(!this.scrollTimer){this.scrollTimer=window.setInterval(this.up.bind(this,2),100);}}};a.clearTimer=function(){window.clearInterval(this.scrollTimer);this.scrollTimer=false;};a.scrollUp.onmousedown=a.up.bind(a);a.scrollDown.onmousedown=a.down.bind(a);a.scrollUp.onmouseup=a.clearTimer.bind(a);a.scrollDown.onmouseup=a.clearTimer.bind(a);a.scrollBarHandle.sb=a;a.scrollBarHandle.customOnDrag=function(b){this.sb.scrollPos=-1*b.y;this.sb.scrollContainerInner.style.marginTop=this.sb.scrollPos+"px";};a.scrollBarHandle.positionIsAbsolute=false;Drag.makeDraggable(a.scrollBarHandle,a.scrollBarHandle,Coordinates.northwestOffset(a.scrollBar).x+1,Coordinates.northwestOffset(a.scrollBar,false,1).y,Coordinates.northwestOffset(a.scrollBar,true,1).x+1,Coordinates.southeastOffset(a.scrollBar).y-a.scrollBarHandle.offsetHeight);};rbmWindow.showYoutubeIframes=function(c){var d=c?"visible":"hidden";var b=$("c_unit_"+idUnit).getElementsByClassName("youtubeIframe");for(var a=0;a<b.length;a++){b[a].style.visibility=d;}};
