var browserDetect={init:function(){this.bIsIE=false;this.bIsFF=false;this.bIsOP=false;this.bIsSF=false;this.bIsCR=false;this.bXSLIncludeBug=false;this.browser=this.searchString(this.dataBrowser)||"unbekannt";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.fullVersion=navigator.userAgent;this.OS=this.searchString(this.dataOS)||"unbekannt";this.OSVersion=this.getOSVersion()||"0";},getOSVersion:function(){var a="unbekannt";if(/Windows NT[\/\s](\d+\.\d+)/.test(navigator.userAgent)){a=RegExp.$1;}if(/OS X[\/\s](\d+_\d+)/.test(navigator.userAgent)){a=RegExp.$1;a=a.replace(/_/,".");}else{if(/OS X[\/\s](\d+.\d+)/.test(navigator.userAgent)){a=RegExp.$1;a=a.replace(/_/,".");}}return a;},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity;}}else{if(c){return d[a].identity;}}}},searchVersion:function(b){var a=navigator.userAgent;switch(this.browser){case"Firefox":this.bIsFF=true;if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){a=RegExp.$1;}break;case"Internet Explorer":this.bIsIE=true;if(/MSIE (\d+\.\d+)/.test(navigator.userAgent)){a=RegExp.$1;}break;case"Opera":this.bIsOP=true;if(/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){a=RegExp.$1;}else{this.browser="Opera mit falschen User-Agent";a="0.0";}break;case"Safari":this.bIsSF=true;this.bXSLIncludeBug=true;if(/Version\/(\d+\.\d+)/.test(navigator.userAgent)){a=RegExp.$1;}else{this.browser="Safari mit falschem User-Agent";a="0.0";}break;case"Chrome":this.bIsCR=true;this.bXSLIncludeBug=true;if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){a=RegExp.$1;}break;}return a;},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",versionSearch:"Chrome/",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",versionSearch:"Firefox/",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Internet Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"iPhone",identity:"iPhone"},{string:navigator.platform,subString:"iPad",identity:"iPad"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};browserDetect.init();
var Coordinates={ORIGIN:new Coordinate(0,0),center:function(a){return Coordinates.northwestOffset(a,true).plus(new Coordinate(Math.round(a.offsetWidth/2),Math.round(a.offsetHeight/2)));},scrollOffsetMoz:function(a,c){offset=new Coordinate(a.scrollLeft,a.scrollTop);if(!c){return offset;}var b=a.parentNode;while(b){if(b.nodeName!="BODY"){offset=offset.plus(new Coordinate(b.scrollLeft,b.scrollTop));}else{break;}b=b.parentNode;}return offset;},scrollOffsetIE:function(a,c){if(!a){return new Coordinate(0,0);}offset=new Coordinate(a.scrollLeft,a.scrollTop);if(!c){return offset;}var b=a.offsetParent;while(b){offset=offset.plus(new Coordinate(b.scrollLeft,b.scrollTop));b=b.offsetParent;}return offset;},northwestPosition:function(b){var a=parseInt(b.style.left);var c=parseInt(b.style.top);return new Coordinate(isNaN(a)?0:a,isNaN(c)?0:c);},southeastPosition:function(a){return Coordinates.northwestPosition(a).plus(new Coordinate(a.offsetWidth,a.offsetHeight));},southeastOffset:function(a,b,c){return Coordinates.northwestOffset(a,b,c).plus(new Coordinate(a.offsetWidth,a.offsetHeight));},southeastOffsetIE:function(a,b,c){return Coordinates.northwestOffsetIE(a,b,c).plus(new Coordinate(a.offsetWidth,a.offsetHeight));},fixEvent:function(a){a.windowCoordinate=new Coordinate(a.clientX,a.clientY);}};function Coordinate(a,b){this.x=a;this.y=b;}Coordinate.prototype.toString=function(){return"("+this.x+","+this.y+")";};Coordinate.prototype.plus=function(a){return new Coordinate(this.x+a.x,this.y+a.y);};Coordinate.prototype.minus=function(a){return new Coordinate(this.x-a.x,this.y-a.y);};Coordinate.prototype.distance=function(c){var b=this.x-c.x;var a=this.y-c.y;return Math.sqrt(Math.pow(b,2)+Math.pow(a,2));};Coordinate.prototype.myDistance=function(c){var b=this.x-c.x;var a=this.y-c.y;return new Coordinate(b,a);};Coordinate.prototype.absolute=function(c){c=!c?3:c;if(c&1){var b=Math.abs(this.x);}else{var b=this.x;}if(c&2){var a=Math.abs(this.y);}else{var a=this.y;}return new Coordinate(b,a);};Coordinate.prototype.max=function(b){var a=Math.max(this.x,b.x);var c=Math.max(this.y,b.y);return new Coordinate(a,c);};Coordinate.prototype.constrain=function(c,b){if(c.x>b.x||c.y>b.y){return this;}var a=this.x;var d=this.y;if(c.x!=null){a=Math.max(a,c.x);}if(b.x!=null){a=Math.min(a,b.x);}if(c.y!=null){d=Math.max(d,c.y);}if(b.y!=null){d=Math.min(d,b.y);}return new Coordinate(a,d);};Coordinate.prototype.reposition=function(a){a.style.top=this.y+"px";a.style.left=this.x+"px";};Coordinate.prototype.equals=function(a){if(this==a){return true;}if(!a||a==null){return false;}return this.x==a.x&&this.y==a.y;};Coordinate.prototype.inside=function(b,a){if((this.x>=b.x)&&(this.x<=a.x)&&(this.y>=b.y)&&(this.y<=a.y)){return true;}return false;};Coordinate.prototype.outside=function(b,a){if((this.x<=b.x)||(this.x>=a.x)||(this.y<=b.y)||(this.y>=a.y)){return true;}return false;};Coordinates.northwestOffsetIE=function(a,c,e){e=typeof(e)!="undefined"?e:-1;var d=new Coordinate(a.offsetLeft,a.offsetTop);if(!c){return d;}var b=a.offsetParent;while(b){d=d.plus(new Coordinate(b.offsetLeft+e*b.scrollLeft,b.offsetTop+e*b.scrollTop));b=b.offsetParent;}return d;};Coordinates.northwestOffsetMoz=function(a,c,e){e=typeof(e)!="undefined"?e:-1;var d=new Coordinate(a.offsetLeft,a.offsetTop);if(!c){return d;}var b=a.parentNode;while(b){if(b.nodeName!="BODY"){d=d.plus(new Coordinate(e*b.scrollLeft,e*b.scrollTop));}else{break;}b=b.parentNode;}if(d.x==0&&d.y==0){d=Coordinates.northwestOffsetIE(a,c,e);}return d;};if(browserDetect.bIsIE){Coordinates.northwestOffset=Coordinates.northwestOffsetIE;Coordinates.scrollOffset=Coordinates.scrollOffsetIE;}else{Coordinates.northwestOffset=Coordinates.northwestOffsetMoz;Coordinates.scrollOffset=Coordinates.scrollOffsetMoz;}Coordinates.northwestOffsetAbsolute=function(a,c,e){e=typeof(e)!="undefined"?e:-1;var d=new Coordinate(a.offsetLeft,a.offsetTop);if(!c){return d;}var b=a.parentNode;while(b&&!!a.offsetParent){if(b.nodeName!="BODY"){d=d.plus(new Coordinate(e*b.scrollLeft,e*b.scrollTop));}else{break;}a=b;b=b.parentNode;}return d;};Coordinates.northWestOffset=function(g,f,j,i,h){return this.northwestOffset(g,f,j,i,h);};Coordinates.northWestOffsetIE=function(g,f,j,i,h){return this.northwestOffsetIE(g,f,j,i,h);};Coordinates.northWestOffsetMoz=function(g,f,j,i,h){return this.northwestOffsetMoz(g,f,j,i,h);};Coordinates.northWestOffsetAbsolute=function(g,f,j,i,h){return this.northwestOffsetAbsolute(g,f,j,i,h);};
/*************************** rbmCore.js *******************************
**** Version 2.06.0001
**** last changed 19.11.2009
**** (c) 2007,2008, 2009 Bernd Rudolf, rbm digitaltechnik, www.rbm.de
**********************************************************************/
if(!console){var console=new Object();console.log=function(a){debuglog(a);};console.warn=function(a){debuglog("(!) "+a);};console.error=function(a){debuglog("(X) "+a);};console.debug=function(a){};console.info=function(a){debuglog(a);};console.dirxml=function(a){};console.dir=function(a){};console.group=function(a){debuglog(a);};console.groupCollapsed=function(a){debuglog(a);};console.groupEnd=function(a){};}var $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;}};Function.prototype.bind=function(){var a=this,c=$A(arguments),b=c.shift();return function(){return a.apply(b,c.concat($A(arguments)));};};Array.prototype.remove=function(c,b){var a=this.slice((b||c)+1||this.length);this.length=c<0?this.length+c:c;return this.push.apply(this,a);};String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"");};String.prototype.unblank=function(){return this.replace(/\s+/,"");};function $(a){a=(typeof(a)=="object")?a:document.getElementById(a);if(a&&a.nodeType==3){return a;}if(a&&typeof(a.debug)=="undefined"){a.debug=function(){var c;for(x in this){var b=""+this[x];if(typeof(this[x]!="function")&&x!="innerHTML"&&x!="outerHTML"){c=c+x+": "+this[x]+"<br/>";}}debuglog(c);};a.styles=function(){var b="";for(var c in this.style){if(this.style[c]!=""&&c.indexOf("get")==-1){b=b+" - "+c+": "+this.style[c]+"<br/>";}}return b;};a.getElementById=function(c){if(typeof(c)=="object"){return c;}var b=this.getElementsByTagName("*");if(b.length==0&&this.all){b=this.all;}for(this.i=0;this.i<b.length;this.i++){if(b[this.i].id==c){return $(b[this.i]);}}};a.getElementsById=function(e){var b=this.getElementsByTagName("*");var c=[];for(this.i=0;this.i<b.length;this.i++){if((b[this.i].id.length>e.length)&&(b[this.i].id.substring(1,e.length)==e)){c.push($(b[this.i]));}}return c;};a.getParentById=function(c){var b=this.parentNode;while(!!b&&b.id!=c){b=b.parentNode;}return b;};a.getElementsByIdStartingWith=function(b){var c=this.getElementsByTagName("*");var e=[];for(this.i=0;this.i<c.length;this.i++){if(!!(c[this.i].id)){if(c[this.i].id.substr(0,b.length)==b){e.push($(c[this.i]));}}}return e;};a.getElementByClassName=function(f){var e=this.getElementsByTagName("*");for(this.i=0;this.i<e.length;this.i++){var c=e[this.i].className.split(" ");for(var b=0;b<c.length;b++){if(c[b]==f){return $(e[this.i]);}}}};a.getElementsByClassName=function(f){var e=this.getElementsByTagName("*");var g=$ARR();for(this.i=0;this.i<e.length;this.i++){var c=e[this.i].className.split(" ");for(var b=0;b<c.length;b++){if(c[b]==f){g.push($(e[this.i]));}}}return g;};a.getElementByName=function(b){var c=this.getElementsByTagName("*");for(this.i=0;this.i<c.length;this.i++){if(c[this.i].name==b){return $(c[this.i]);}}};a.getElementsByNameStartingWith=function(b){var c=this.getElementsByTagName("*");var e=[];for(this.i=0;this.i<c.length;this.i++){if(!!(c[this.i].name)){if(c[this.i].name.substr(0,b.length)==b){e.push($(c[this.i]));}}}return e;};a.setClass=function(b){this.className=b;};a.addClass=function(b){this.className+=" "+b;};a.removeClass=function(b){var e=this.className.split(" ");var f="";for(var c=0;c<e.length;c++){if(e[c]!=b){f+=e[c];}}this.className=f;};return a;}return(!!a)?a:null;}function $ARR(a){if(!a){a=[];}a.setDisplay=function(b){for(var c=0;c<this.length;c++){$fx(this[c]).setDisplay(b);}};a.setValue=function(b){for(var c=0;c<this.length;c++){$fx(this[c]).value=b;}};return a;}function $fx(a){a=$(a);if(a&&typeof(a.visibility)=="undefined"){if(!a.adjustSize){a.adjustSize=function(b,c){return null;};}a.setOpacity=function(b){this.style.filter="alpha(opacity="+b+")";this.style.opacity=b/100;this.op=b;return b;};a.show=function(b){if(b){this.style.visibility="visible";this.visibility=1;}else{this.style.visibility="hidden";this.visibility=0;}};a.setDisplay=function(b){if(b){this.style.display="block";}else{this.style.display="none";}};a.toggleDisplay=function(b){if(this.style.display==""||this.style.display=="none"){this.style.display="block";b=true;}else{this.style.display="none";b=false;}return b;};a.move=function(b,e,c){if(typeof(b)=="object"){e=b.y;b=b.x;}if(!!c){alert("moving transition not implemented yet");}else{if(b!=-1){this.style.left=b+"px";}if(e!=-1){this.style.top=e+"px";}}};a.setSize=function(b,c){if(typeof(b)=="object"){c=b.y;b=b.x;}if(c<this.offsetHeight){this.adjustSize(b,c);if(b!=-1){this.style.width=b+"px";}if(c&&c!=-1){this.style.height=c+"px";}else{this.style.height="auto";}}else{if(b!=-1){this.style.width=b+"px";}if(c&&c!=-1){this.style.height=c+"px";}else{this.style.height="auto";}this.adjustSize(b,c);}};a.wipe=function(){if(this.fxx==100||this.fxx==0){this.fxx=0;this.xMax=100;if(this.offsetWidth>0){this.delta=this.offsetWidth;this.start=this.offsetWidth;d=-1;}else{this.start=0;d=1;}this.wiping(d);}};a.wiping=function(b){if(this.fxx<this.xMax){this.width=this.start+this.delta*b*this.fxfunction()/100;this.style.width=this.width+"px";if(this.timeStep>0){this.timer=window.setTimeout(this.wiping.bind(this,b),this.timeStep);}else{this.wiping(b);}}};a.swapClass=function(g,f,e){var c=$(document.body).getElementsByClassName(g);for(var b=0;b<c.length;b++){if(c[b].className.indexOf(f)!=-1){c[b].removeClass(f);c[b].addClass(e);}}this.removeClass(e);this.addClass(f);};}return a;}function $exec(b){if(window.execScript){window.execScript(b);}else{var a=document.createElement("script");a.setAttribute("type","text/javascript");a.text=b;document.head.appendChild(a);document.head.removeChild(a);}return b;}function createEventListener(e,a,c,b){if(document.addEventListener){document.addEventListener(a,c,b);}else{if(a=="keydown"){a="onkeydown";}e.attachEvent(a,c);}}function createDate(){var b=new Date();var c="";var a;a=""+b.getDate();a=a.length==2?a:"0"+a;c+=a+".";a=""+(b.getMonth()+1);a=a.length==2?a:"0"+a;c+=a+".";c+=b.getFullYear();return c;}function createTime(b){var c=new Date();var e="";var a;a=""+c.getHours();a=a.length==2?a:"0"+a;e+=a+":";a=""+c.getMinutes();a=a.length==2?a:"0"+a;e+=a;if(b){e+=":";a=""+c.getSeconds();a=a.length==2?a:"0"+a;e+=a+"";}return e;}function debuglog(a){target=$fx("jsLog");if(!!target){target.innerHTML=a+"<br/>"+target.innerHTML;target.setDisplay(true);}}function debugalert(a){alert(a);}function reloadCSS(){var a="?"+new Date().getTime(),b,c=0;while(b=document.getElementsByTagName("link")[c++]){if(b.rel&&"stylesheet"==b.rel.toLowerCase()){if(!b._h){b._h=b.href;}b.href=b._h+a;}}}
var rbmXML=new Object();rbmXML.buseActiveX=(typeof ActiveXObject!="undefined");if(!rbmXML.buseActiveX){rbmXML.buseDom=document.implementation&&document.implementation.createDocument;}rbmXML.buseXMLHttp=(typeof XMLHttpRequest!="undefined");rbmXML.loadedXSL=new Object();rbmXML.XMLHttp_VERS=["MSXML2.XmlHttp.6.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0"];rbmXML.DOM_VERS=["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0"];rbmXML.getFormDataAsXML=function(b){var d="";var e=b.getElementsByTagName("input");for(i=0;i<e.length;i++){switch(e[i].type){case"checkbox":if(d!=""){d+=" ";}if(e[i].checked==true){d+=e[i].name+"='1'";}else{d+=e[i].name+"='0'";}break;case"radio":var a=e[i].name;while(a==e[i].name){if(e[i].checked){if(d!=""){d+=" ";}d+=e[i].name+"='"+e[i].value+"'";}i++;}i--;break;case"button":break;default:if(e[i].value){if(d!=""){d+=" ";}d+=e[i].name+"='"+e[i].value+"'";}break;}}var e=b.getElementsByTagName("select");for(i=0;i<e.length;i++){if(d!=""){d+=" ";}d+=e[i].name+"='"+e[i].value+"'";}var e=b.getElementsByTagName("textarea");for(i=0;i<e.length;i++){if(d!=""){d+=" ";}d+=e[i].name+"='"+e[i].innerHTML+"'";}return d;};rbmXML.getFormData=function(b){var d="";var f=b.getElementsByTagName("input");for(i=0;i<f.length;i++){switch(f[i].type){case"checkbox":if(d!=""){d+="&";}if(f[i].checked==true){d+=f[i].name+"=1";}else{d+=f[i].name+"=0";}break;case"radio":var a=f[i].name;while(a==f[i].name){if(f[i].checked){if(d!=""){d+="&";}d+=f[i].name+"="+f[i].value;}i++;}i--;break;case"button":break;default:if(f[i].value){if(d!=""){d+="&";}d+=f[i].name+"="+f[i].value;}break;}}var f=b.getElementsByTagName("select");for(i=0;i<f.length;i++){if(d!=""){d+="&";}d+=f[i].name+"="+f[i].value;}var f=b.getElementsByTagName("textarea");for(i=0;i<f.length;i++){if(d!=""){d+="&";}d+=f[i].name+"="+f[i].innerHTML;}var e=rbmXML.urlEncode(d);return e;};rbmXML.postEncode=function(a){var b="";for(i=0;i<a.length;i++){c=a.charCodeAt(i);switch(c){case 61:b+="%61";break;case 38:b+="%38";break;case 37:b+="%37";break;default:b+=a.charAt(i);break;}}return b;};rbmXML.urlEncode=function(d,b,a){if(!!a){var e="";for(i=0;i<d.length;i++){c=d.charCodeAt(i);if((c<48||(c>122&&c<127))&&(c!=38||b)){if(c<16){e+="%0"+c.toString(16);}else{e+="%"+c.toString(16);}}else{e+=d.charAt(i);}}}else{var e="";for(i=0;i<d.length;i++){c=d.charCodeAt(i);if((c<48||c>122)&&(c!=38||b)){if(c<16){e+="%0"+c.toString(16);}else{e+="%"+c.toString(16);}}else{e+=d.charAt(i);}}}return e;};rbmXML.XMLencode=function(a){var b="";for(i=0;i<a.length;i++){c=a.charAt(i);switch(c){case"<":b+="&#60;";break;case">":b+="&#62;";break;case"'":b+="&#39;";break;case"&":b+="&#38;";break;case'"':b+="&#34;";break;case"$":b+="&#36;";break;default:b+=a.charAt(i);}}return b;};rbmXML.createXMLHttp=function(d){var b;if(rbmXML.buseXMLHttp&&!rbmXML.buseActiveX){return new XMLHttpRequest();}else{if(rbmXML.buseActiveX){if(!rbmXML.XMLHttp_V||!d){if(!d){for(var a=rbmXML.XMLHttp_VERS.length-1;a>=0;a--){try{new ActiveXObject(rbmXML.XMLHttp_VERS[a]);sVersion=rbmXML.XMLHttp_VERS[a];break;}catch(e){}}}else{for(var a=0;a<rbmXML.XMLHttp_VERS.length;a++){try{new ActiveXObject(rbmXML.XMLHttp_VERS[a]);rbmXML.XMLHttp_V=rbmXML.XMLHttp_VERS[a];break;}catch(e){}}sVersion=rbmXML.XMLHttp_V;}}if(sVersion){return new ActiveXObject(sVersion);}else{throw new Error(31,"Could not create XML HTTP Request.");}}else{throw new Error(30,"Your browser doesn't support an XML HTTP Request.");}}};rbmXML.createDoc=function(){if(!rbmXML.buseActiveX){var a=document.implementation.createDocument("","",null);a.parseError={valueOf:function(){return this.errorCode;},toString:function(){return this.errorCode.toString();}};return a;}else{if(rbmXML.buseActiveX){if(!rbmXML.DOM_VER){for(var b=0;b<rbmXML.DOM_VERS.length;b++){try{new ActiveXObject(rbmXML.DOM_VERS[b]);rbmXML.DOM_VER=rbmXML.DOM_VERS[b];debuglog(rbmXML.DOM_VER);break;}catch(e){}}}if(rbmXML.DOM_VER){var d=new ActiveXObject(rbmXML.DOM_VER);if(rbmXML.DOM_VER=="MSXML2.DOMDocument.3.0"){d.setProperty("SelectionLanguage","XPath");}d.resolveExternals=true;return d;}else{throw new Error(41,"Could not create XML DOM document.");}}else{throw new Error(40,"Your browser doesn't support an XML DOM document.");}}};rbmXML.loadXML=function(b){var a=null;if(rbmXML.buseActiveX){a=rbmXML.createDoc();a.loadXML(b);}else{if(typeof DOMParser!="undefined"){var d=new DOMParser();a=d.parseFromString(b,"text/xml");}}return a;};rbmXML.renderToDoc=function(g,h,d,b){if(rbmXML.buseActiveX){var j=g.transformNode(h);var f=document.getElementById(d);f.innerHTML=j;}else{var a=new XSLTProcessor();a.importStylesheet(h);var e=a.transformToFragment(g,document);var f=document.getElementById(d);alert(f.hasChildNodes());if(!b&&f.hasChildNodes()){while(f.hasChildNodes()){f.removeChild(f.firstChild);}}f.appendChild(e);}};rbmXML.serXML=function(b){var a=new XMLSerializer();return a.serializeToString(b);};rbmXML.showXML=function(a){if(rbmXML.buseActiveX){return a.xml;}else{return rbmXML.serXML(a);}};rbmXML.displayParseError=function(a){strErr=a.reason+"("+a.line+", "+a.linepos+") in \n"+a.url;alert(strErr);};rbmXML.selectNodes=function(e,l,d){if(typeof XPathEvaluator!="undefined"&&typeof(e)=="object"){d=d||{};var b=function(m){return d[m];};var f=new XPathEvaluator();var j=f.evaluate(l,e,b,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);var k=new Array;if(j!=null){var a=j.iterateNext();while(a){k.push(a);a=j.iterateNext();}}return k;}else{if(rbmXML.buseActiveX){if(d&&typeof(e)=="object"){var h="";for(var g in d){h+="xmlns:"+g+"='"+d[g]+"' ";}e.setProperty("SelectionNamespaces",h);}else{return false;}return e.selectNodes(l);}else{return false;}}};rbmXML.selectSingleNode=function(e,d,j){if(typeof XPathEvaluator!="undefined"){j=j||{};var a=function(k){return j[k];};var b=new XPathEvaluator();var h=b.evaluate(d,e,a,XPathResult.FIRST_ORDERED_NODE_TYPE,null);if(h!=null){return h.singleNodeValue;}else{return null;}}else{if(rbmXML.buseActiveX){if(j){var g="";for(var f in j){g+="xmlns:"+f+"='"+j[f]+"' ";}}return e.selectSingleNode(d);}else{throw new Error(50,"No XPath engine found.");}}};rbmXML.clearTarget=function(f,g){var h=$(f).getElementsByClassName("tinyMCE");for(var e=0;e<h.length;e++){var d=tinyMCE.get(h[e].id);if(d){d.remove();}}var j=$(f).getElementsByClassName("fadeSlideshow");for(var e=0;e<j.length;e++){if(j[e].fadeSlideshow&&j[e].fadeSlideshow.timer){window.clearTimeout(j[e].fadeSlideshow.timer);}else{console.warn("Could not clear timer for fadeSlideshow "+f.id);}}if(typeof(ePlayerList)=="object"){var a=f.getElementsByClassName("playerContainer");for(var e=0;e<a.length;e++){var b=a[e].firstChild;if(!!b){destroyPlayer(b.id);}}}while(f.hasChildNodes()){f.removeChild(f.firstChild);}if(g){f.parentNode.removeChild(f);}};
/**************************** rbmAjax.js *******************************
**** Version 3.04.0003
**** last changed 31.03.2011
**** (c) 2007, 2008, 2009, 2010 Bernd Rudolf, rbm digtaltechnik, www.rbm.de
***********************************************************************/
var $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;}};Function.prototype.bind=function(){var a=this,c=$A(arguments),b=c.shift();return function(){return a.apply(b,c.concat($A(arguments)));};};function globalEval(text){eval(text);}function rbmAjax(b,c){this.bOffline=(typeof(c)=="undefined")?false:true;this.debug=false;this.info=false;this.XMLeval=(typeof(b)=="undefined")?true:b;this.url=null;this.formData=null;this.formToPost=null;this.oXML=null;this.oXSL=null;this.xslURL="";this.oResult=null;this.xsltProcessor=null;this.readyState=0;this.target=null;this.alternateTarget=null;this.oElement=null;this.bappend=false;this.render=true;this.waitElement=null;this.waitSRC="";this.waitOrigSRC="";this.waitNode=null;this.newNode=null;this.waitStatus=false;this.disableOutputEscaping=true;this.done=null;this.error=null;this.customRenderToDoc=function(){return true;};this.onRenderingCompleted=function(){};this.debuglog=function(e){alert(e);};this.wait=function(e){if(this.waitElement&&this.waitNode){if(e){if(!this.waitStatus){this.waitOrigSRC=this.waitNode.src;this.waitNode.src=this.waitElement.src;this.waitStatus=true;}}else{if(this.waitStatus){this.waitNode.src=this.waitOrigSRC;this.waitStatus=false;}}}};try{this.XMLHttp=rbmXML.createXMLHttp(this.XMLeval);}catch(d){if(this.error){this.error(d);}}this.xml=function(){if(this.oXML){var e=rbmXML.showXML(this.oXML);}return e;};this.xsl=function(){if(this.oXSL){var e=rbmXML.showXML(this.oXSL);}return e;};this.createXML=function(){this.oXML=rbmXML.createDoc();};this.loadXML=function(f){var e=null;if(rbmXML.buseActiveX){e=rbmXML.createDoc();e.loadXML(f);}else{if(typeof DOMParser!="undefined"){var g=new DOMParser();e=g.parseFromString(f,"text/xml");}}this.oXML=e;};this.getXML=function(h,g,f,e){if(h.indexOf("file://")!=-1){this.bOffline=true;}if(h.indexOf("MECO:dispatcher")!=-1){return false;}if(this.readyState==4||this.readyState==0){this.readyState=1;this.wait(true);this.url=!!h?h:this.url;f=typeof(f)=="undefined"?true:f;if(!!g&&typeof(g)=="object"){this.formToPost=g;this.formData=this.getFormData(g);}else{this.formToPost=null;this.formData=g;}if(e){result=this.loadHTTP(this.url,this.formData,f,e);if(this.XMLeval){this.oXML=result;}return result;}else{this.loadHTTP(this.url,this.formData,f);}}};this.getCompletePath=function(f){var e=f.substring(0,f.lastIndexOf("/")+1);if(e.indexOf("http://")==-1&&e.indexOf("file://")==-1){e=location.href.substring(0,location.href.lastIndexOf("/")+1)+e;}return e;};this.getCompleteURL=function(e){e=location.href.substring(0,location.href.lastIndexOf("/")+1)+e;return e;};var a="______________________________________________________________________";this.fixIncludePath=function(u,e,g,t){var q=new Date();var m=this.getCompletePath(e);var r=new Object();r.xsl="http://www.w3.org/1999/XSL/Transform";var p="";var f="";var o=null;var n=null;var l=null;var k=0;var h=0;t=(!t)?"":t;var o=rbmXML.selectNodes(u,"//xsl:include",r);if(o.length>0){if(!!g){var s=o[0].cloneNode(false);s.setAttribute("href",g);if(typeof(o[o.length-1].nextSibling)=="object"){u.documentElement.insertBefore(s,o[o.length-1].nextSibling);}else{u.documentElement.appendChild(s);}o=rbmXML.selectNodes(u,"//xsl:include",r);}o=rbmXML.selectNodes(u,"//xsl:include",r);if((browserDetect.bIsIE||browserDetect.bXSLIncludeBug)){for(var k=0;k<o.length;k++){if(!!o[k]){t=this.includeXSL(o[k],u,u,t,m,r,0);}}}}};this.includeXSL=function(n,s,f,r,l,p,g){var o=n.getAttribute("href");o=n.getAttribute("href");var e=l;if(o.indexOf("http://")==-1&&o.indexOf("file://")==-1){e=l;while(o.indexOf("../")==0){o=o.substring(3,o.length);e=e.substring(0,e.lastIndexOf("/",e.length-2)+1);}o=e+o;e=this.getCompletePath(o);}if(r.indexOf("~"+o+"~")==-1){r+="~"+o+"~";}else{if(c_bLogFlow){console.warn("WARNING: Double-Include in rbmAjax.fixIncludePath: removing XSL-Include "+o);}s.documentElement.removeChild(n);return r;}if(c_bLogFlow){console.log(a.substr(0,2*g)+"...loading..."+o);}if(!rbmXML.loadedXSL[o]){var m=this.loadHTTP(o,null,false,true,true,true);rbmXML.loadedXSL[o]=m;}else{var m=rbmXML.loadedXSL[o];}var k=m.documentElement;for(var h=0;h<k.childNodes.length;h++){if(k.childNodes[h].nodeName.indexOf("xsl:output")==-1){var q=k.childNodes[h].cloneNode(true);s.documentElement.insertBefore(q,n);if(q.nodeName.indexOf("xsl:include")!=-1){r=this.includeXSL(q,s,m,r,e,p,++g);}}}s.documentElement.removeChild(n);return r;};this.createXSLTProcessor=function(g){if(!rbmXML.buseActiveX){this.xsltProcessor=new XSLTProcessor();try{this.xsltProcessor.importStylesheet(g);}catch(f){console.dir(f);alert("XSLT-Error");}}};this.getXSL=function(h,g){this.xslURL=h;if(this.debug){this.debuglog("getXSL (URL): "+h);}if(h){var e=this.getCompleteURL(h);if(e.indexOf("file://")!=-1){this.bOffline=true;}if(!rbmXML.loadedXSL[e]||cmsXSLDebug){var f=this.loadHTTP(e,null,false,true,true,true,true);if((typeof(f)=="object"&&this.XMLHttp.status==200)||(this.bOffline&&this.XMLHttp.status==0)){this.fixIncludePath(f,e,g);rbmXML.loadedXSL[e]=f;this.oXSL=f;this.createXSLTProcessor(this.oXSL);}else{return 404;}}else{this.oXSL=rbmXML.loadedXSL[e];this.fixIncludePath(this.oXSL,e,g);this.createXSLTProcessor(this.oXSL);}}else{this.oXSL=document.XSLDocument;}if(this.debug){this.debuglog("getXSL (data): "+this.xsl());}return 200;};this.onStateChange=function(){if(this.XMLHttp.readyState==4){if(this.debug){this.debuglog(this.XMLHttp.getAllResponseHeaders());}if(rbmXML.buseActiveX){if(!this.bOffline&&this.XMLHttp.getResponseHeader("Content-Type").indexOf("/xml")==-1){this.XMLeval=false;}if(this.XMLeval){var e=rbmXML.createDoc();e.loadXML(this.XMLHttp.responseText);if(e.parseError.errorCode!=0){e.loadXML(this.XMLHttp.responseXML.xml);if(e.parseError.errorCode!=0){rbmXML.displayParseError(e.parseError);var f=document.getElementById("debug");if(f){f.style.display="block";f.innerHTML="Status: "&this.XMLHttp.status&"<br>URL: "&this.URL&"<br>"&this.XMLHttp.responseText;}else{this.debuglog("error: "+this.XMLHttp.responseText);}}}}if(this.debug||this.info){this.debuglog("onStateChange "+this.XMLHttp.responseText);}this.readyState=4;this.oXML=e;}else{this.readyState=4;if(this.debug||this.info){this.debuglog("onStateChange "+this.XMLHttp.responseText);}if(this.XMLHttp.getResponseHeader("Content-Type").indexOf("xml")==-1){if(c_bLogFlow){console.error("NO XML RECEIVED!");}this.XMLeval=false;}if(this.XMLeval){this.oXML=this.XMLHttp.responseXML;}}if(this.target&&this.XMLeval&&this.render){switch(this.XMLHttp.status){default:this.renderToDoc(this.target);break;case 201:if(!!this.alternateTarget){this.renderToDoc(this.alternateTarget);}else{this.renderToDoc(this.target);}break;case 500:case 404:this.copyXMLHttpToDoc(this.target);break;}}else{if(this.target&&this.render){this.copyXMLHttpToDoc(this.target);}}this.wait(false);if(this.done){this.done();}}};this.simpleReadyState=function(){this.readyState=this.XMLHttp.readyState;};this.loadHTTP=function(f,m,j,g,n,k){k=!!k;if(typeof j=="undefined"){j=false;}if(typeof g=="undefined"){g=false;}if(typeof n=="undefined"){n=this.XMLeval;}if(this.debug){this.debuglog("loadHTTP: URL: "+f+" - "+j+" - "+g+" - "+n);}if(!m){this.XMLHttp.open("GET",f,j);}else{if(this.debug){this.debuglog("Post: "+m);}this.XMLHttp.open("POST",f,j);}this.XMLHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.XMLHttp.setRequestHeader("Encoding","UTF-8");if(!g){this.XMLHttp.onreadystatechange=this.onStateChange.bind(this);}else{this.XMLHttp.onreadystatechange=this.simpleReadyState.bind(this);}try{if(!m){this.XMLHttp.send(null);}else{this.XMLHttp.send(m);}}catch(l){console.log("LoadHTTP-Error: "+f);return 404;}if(!j&&this.XMLHttp.status==404){return 404;}var o=false;if(!j){if(rbmXML.buseActiveX){if(n){var h=rbmXML.createDoc();h.loadXML(this.XMLHttp.responseText);if(h.parseError.errorCode!=0){rbmXML.displayParseError(h.parseError);this.debuglog(this.XMLHttp.responseText);}o=(h?h:null);}else{o=this.XMLHttp.responseText;}this.readyState=4;}else{this.readyState=4;if(n){o=(this.XMLHttp.responseXML?this.XMLHttp.responseXML:null);}else{o=this.XMLHttp.responseText;}}if(g||k){return o;}else{if(n){this.oXML=o;}if(this.target&&n){this.renderToDoc(this.target,this.bappend);}else{if(this.target){this.copyXMLHttpToDoc(this.target,this.bappend);}}this.wait(false);if(!k&&this.done){this.done();}}}};this.appendNode=function(j,l,h){var f=l.getElementsByTagName("div");if(f.length>0&&!!h&&h!=""){var e=j.getElementById((!!h?h:l.getElementsByTagName("div")[0].id));if(!!e){var k=e.nextSibling;var g=e.parentNode;e.parentNode.removeChild(e);if(k){g.insertBefore(l,k);return true;}}}j.appendChild(l);};this.renderToDoc=function(l,g,f,q){if(!f){f=this.oXML;}if(!l){l=$(this.target);}q=(!!q)?q:(!!this.appendDivId)?this.appendDivId:"";this.appendDivId="";if(this.debug){this.debuglog("render to: "+l+" - append: "+g);}this.oElement=$(l);if(this.customRenderToDoc(l,g,f,q)){if(typeof(g)=="undefined"){g=this.bappend;}if(!this.oElement){if(c_bLogFlow){console.warn("renderToDoc: Element "+l+" not found!");}return;}if(rbmXML.buseActiveX){if(!this.oXSL){this.getXSL();if(!this.oXSL){this.copyXMLHttpToDoc(l);return;}}try{var o=f.transformNode(this.oXSL);}catch(m){alert(m.description+" in line "+m.line+"\n\nURL: "+this.xslURL);return;}if(this.debug||this.info){this.debuglog(o);}if(o==""){o=this.XMLHttp.responseText;var h=document.getElementById("debug");if(h){h.style.display="block";h.innerHTML=o;}}if(this.disableOutputEscaping){o=o.replace(/&amp;/gi,"&");o=o.replace(/&lt;/gi,"<");o=o.replace(/&gt;/gi,">");o=o.replace(/&#60;/gi,"<");o=o.replace(/&#62;/gi,">");o=o.replace(/&#38;/gi,"&");}if(!this.bappend){rbmXML.clearTarget(this.oElement);this.oElement.innerHTML=o;var n=$(this.oElement).getElementsByTagName("script");}else{var p=document.createElement("div");if(!!q){p.setAttribute("id",q);}p.innerHTML=o;this.appendNode(this.oElement,p,q);var n=$(p).getElementsByTagName("script");}var k;for(k=0;k<n.length;k++){globalEval(n[k].innerHTML);}}else{if(!this.oXSL){this.copyXMLHttpToDoc(l);return;}if(browserDetect.bIsOP){this.xsltProcessor=new XSLTProcessor();try{this.xsltProcessor.importStylesheet(this.oXSL);}catch(m){}}var j=this.xsltProcessor.transformToFragment(f,document);if(!this.bappend&&this.oElement.hasChildNodes()){rbmXML.clearTarget(this.oElement);}var p=document.createElement("div");if(!!q){p.setAttribute("id",q);}try{p.appendChild(j);}catch(m){console.warn("rbmAjax: objOut is empty! XSL-Error?");}o=p.innerHTML;if(this.disableOutputEscaping){o=o.replace(/&amp;/gi,"&");o=o.replace(/&lt;/gi,"<");o=o.replace(/&gt;/gi,">");o=o.replace(/&#60;/gi,"<");o=o.replace(/&#62;/gi,">");o=o.replace(/&#38;/gi,"&");}if(!this.bappend){this.oElement.innerHTML=o;var n=$(this.oElement).getElementsByTagName("script");}else{p.innerHTML=o;this.appendNode(this.oElement,p,q);if(browserDetect.bIsSF||browserDetect.bIsCR||browserDetect.bIsOP||(browserDetect.bIsFF&&browserDetect.version>=4)){var n=$(p).getElementsByTagName("script");}else{var n=null;}}if(!!n){var k;for(k=0;k<n.length;k++){if(c_bLogFlow&&!!console.groupCollapsed){console.groupCollapsed("gloabalEval");console.log(n[k].innerHTML);console.groupEnd();}globalEval(n[k].innerHTML);}}aTextAreas=$(this.oElement).getElementsByTagName("textarea");for(var k=0;k<aTextAreas.length;k++){if(aTextAreas[k].className.indexOf("tinyMCE")==-1){aTextAreas[k].innerHTML=aTextAreas[k].value.replace(/<br\/>/g,"\n");}}}}this.onRenderingCompleted(this.bappend?p:this.oElement,false);this.oElement=null;this.bappend=false;};this.copyXMLHttpToDoc=function(h,e){if(typeof(h)=="undefined"){h=$(this.target);}var g=$(h);if(!g){debugalert("copyXMLHttpToDoc: Element "+h+" not found!");return;}if(this.debug){debugalert("copy to: "+h+" - append: "+e);}if(this.XMLHttp.responseText.length>0){if(!e){g.innerHTML=this.XMLHttp.responseText;var j=$(g).getElementsByTagName("script");}else{var k=document.createElement("div");g.appendChild(k);k.innerHTML=this.XMLHttp.responseText;var j=null;}}if(j){var f;for(f=0;f<j.length;f++){globalEval(j[f].innerHTML);}}this.onRenderingCompleted();};this.getFormData=function(h){var k="";var g;if(!h||typeof(h)!="object"){return h;}var l=h.getElementsByTagName("input");for(g=0;g<l.length;g++){switch(l[g].type){case"checkbox":if(k!=""){k+="&";}if(l[g].checked==true){k+=l[g].name+"=1";}else{k+=l[g].name+"=0";}break;case"radio":var e=l[g].name;if(l[g].checked){if(k!=""){k+="&";}k+=l[g].name+"="+l[g].value;}break;case"button":break;case"submit":break;default:if(k!=""){k+="&";}k+=l[g].name+"="+this.urlEncode(l[g].value);break;}}l=h.getElementsByTagName("select");for(g=0;g<l.length;g++){if(k!=""){k+="&";}k+=l[g].name+"="+l[g].value;}l=h.getElementsByTagName("textarea");for(g=0;g<l.length;g++){if(k!=""){k+="&";}if(l[g].className.indexOf("tinyMCE")==-1){var j=this.correctInputData(l[g].value);}else{var f=tinyMCE.get(l[g].id);j=f.getContent();if(f){f.remove();}}k+=l[g].name+"="+this.urlEncode(j);}if(this.debug){this.debuglog("Post to Server: "+k);}return k;};this.correctInputData=function(e){e=e.replace(/&lt;/g,"<");e=e.replace(/&gt;/g,">");e=e.replace(/\r\n/g,"<br/>");e=e.replace(/\n/g,"<br/>");return e;};this.clearFormData=function(f){var e;f=f||this.formToPost;var g=f.getElementsByTagName("input");for(e=0;e<g.length;e++){switch(g[e].type){case"checkbox":g[e].checked=false;break;case"radio":g[e].checked=false;break;case"button":break;default:g[e].value="";break;}}g=f.getElementsByTagName("textarea");for(e=0;e<g.length;e++){g.innerHTML="";}};this.urlEncode=function(e){strEnc=encodeURI(e);strEnc=strEnc.replace(/\+/g,"%2B");strEnc=strEnc.replace(/&/g,"%26");strEnc=strEnc.replace(/;/g,"%3B");return strEnc;};this.query=function(f,j,l,e){var k;var g;var h;var m;if(typeof(l)=="undefined"){l=this.target;}if(this.debug){alert(f);alert(this.oXML.xml());}if(j.substr(0,1)!="<"){j="<"+j+" />";}g=rbmXML.loadXML(j);h=g.documentElement;if(!!e){k=this.selectNodes(e);if(k.length!=0){m=k[0].cloneNode(false);g.documentElement.appendChild(m);h=m;}}k=this.selectNodes(f);for(i=0;i<k.length;i++){m=k[i].cloneNode(true);h.appendChild(m);}if(this.debug){alert(g.xml());}if(!!l){this.renderToDoc(l,false,g);}};this.rebuildClone=function(p,e,l,h,f){var o;var k;var n;var m;var j;if(typeof(l)=="undefined"){l=this.target;}if(this.debug){alert(p);alert(this.oXML.xml());}if(e.substr(0,1)!="<"){e="<"+e+" />";}k=rbmXML.loadXML(e);n=k.documentElement;if(!!h){o=this.selectNodes(h);if(o.length!=0){m=o[0].cloneNode(true);k.documentElement.appendChild(m);n=m;if(!!f){var g=this.selectNodes(f,k);for(j=0;j<g.length;j++){n=g[j].parentNode;g[j].parentNode.removeChild(g[j]);}}}}o=this.selectNodes(p);for(j=0;j<o.length;j++){m=o[j].cloneNode(true);n.appendChild(m);}if(this.debug){alert(k.xml());}if(!!l){this.renderToDoc(l,false,k);}};this.selectSingleNode=function(e,f){var g=rbmXML.selectSingleNode(this.oXML,e,f);return g;};this.setParam=function(f,h,g){if(rbmXML.buseActiveX){var e=new Object();e.xsl="http://www.w3.org/1999/XSL/Transform";aParams=rbmXML.selectNodes(this.oXSL,"//xsl:stylesheet/xsl:param[@name = '"+h+"']",e);if(aParams.length==1){aParams[0].text=g;}}else{if(this.xsltProcessor){this.xsltProcessor.setParameter(f,h,g);}else{console.warn("rbmAjax.setParam: no xsltProcessor found!");}}};this.setNodeValue=function(f,g,j,k,e){k=k||this.oXML;e=e||{};aParams=rbmXML.selectNodes(k,f,e);for(var h=0;h<aParams.length;h++){aParams[h].setAttribute(g,j);}this.modifiedXSLValues=aParams;};this.resetNodeValues=function(e,g){if(this.modifiedXSLValues){for(var f=0;f<this.modifiedXSLValues.length;f++){this.modifiedXSLValues[f].setAttribute(e,g);}this.modifiedXSLValues=null;}};this.selectNodes=function(h,m){if(!m){m=this.oXML;}if(rbmXML.buseActiveX){var k=m.selectNodes(h);return k;}else{if(typeof XPathEvaluator!="undefined"){var g=m.createNSResolver(m.documentElement);var n=[];try{var f=m.evaluate(h,m,g,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var j=0;j<f.snapshotLength;j++){n[j]=f.snapshotItem(j);}}catch(l){console.warn(h);console.dirxml(m);}return n;}}};this.corrCRinTextAreas=function(f){var g=$(f).getElementsByTagName("textarea");var e;for(e=0;e<g.length;e++){g[e].innerHTML=g[e].innerHTML.replace(/&lt;br \/&gt;/g,"\r\n");}};this.getScript=function(e){this.render=false;this.XMLeval=false;code=this.getXML(e,null,false,true);globalEval(code);};}
/*************************** rbmFX.js *******************************
**** Version 2.01.0001
**** last changed 24.10.2008
**** (c) 2007, 2008 Bernd Rudolf, rbm digitaltechnik, www.rbm.de
*********************************************************************/
var rbmFX={version:"1.03.0004",fxFunction:function(a,b,d){a=(a>d)?d:a;var c;switch(b){case 1:c=a;break;case 2:c=-Math.round(Math.pow(((a/10)-10),2))+100;break;case 3:c=Math.round(Math.pow(((a/18)-4.65),3))+99;break;case 4:c=-Math.round(Math.pow(((a/26)-3.15),4))+100;break;case 5:c=-Math.round(100/(a+1))+101;break;case 6:c=Math.round(100*Math.sin(a/60));break;}return c;}};rbmFX.fade=function(b,g,a,c,f,e){this.parent=$fx(b);this.d=g||-1;this.xMax=a||100;this.step=c||4;this.t=f||2;this.duration=e||500;this.timeStep=10;this.delay=0;this.disVis=0;this.init=function(){this.fxx=0;this.start=(this.d==1)?0:this.xMax;this.timeStep=Math.round(this.duration/(this.xMax/this.step));};this.init();this.delayed=function(d){this.delay=d||this.delay;this.delaytimer=window.setTimeout(this.go.bind(this,this.d),this.delay);};this.go=function(h){if(!this.active||h!=this.d){this.d=h||this.d;if(((this.d==1)&&((typeof(this.op)=="undefined")||(this.op<=0)))||(this.d==-1)&&(this.op>0)){this.active=true;this.init();this.onStart();switch(this.disVis){case 0:this.parent.show(true);break;case 1:this.parent.setDisplay(true);break;}this.fading();}}};this.toggle=function(){this.d=(this.op!="undefined")?((this.op>0)?-1:1):-1;this.init();this.go();};this.fading=function(){if(this.fxx<this.xMax){this.op=this.start+this.d*rbmFX.fxFunction((this.fxx+=this.step),this.t,this.xMax);this.parent.setOpacity(this.op);this.timer=window.setTimeout(this.fading.bind(this,g),this.timeStep);}else{this.onEnd();this.active=false;if(this.op<=0){switch(this.disVis){case 0:this.parent.show(false);break;case 1:this.parent.setDisplay(false);break;case -1:break;}}}};this.onStart=function(){return null;};this.onEnd=function(){return null;};};rbmFX.scale=function(b,a,d,c,f,e){this.parent=$fx(b);this.w=a;this.h=d;this.xMax=100;this.step=c||4;this.t=f||2;this.duration=e||1000;this.timeStep=10;this.twin=null;this.init=function(){this.fxx=0;this.xMax=100;this.delta=(this.w==-1)?-1:this.w-this.parent.offsetWidth;this.delta2=this.h-this.parent.offsetHeight;this.start=(this.w==-1)?-1:this.parent.offsetWidth;this.start2=this.parent.offsetHeight;this.timeStep=Math.round(this.duration/(this.xMax/this.step));if(this.twin){this.twin.start=this.twin.offsetWidth;this.twin.start2=this.twin.offsetHeight;}};this.delayed=function(g){g=g||this.delay;this.delaytimer=window.setTimeout(this.go.bind(this),g);};this.go=function(){if(!this.active){this.active=true;this.onStart();this.init();this.sizing();}};this.sizing=function(){if(this.fxx<this.xMax){var i=rbmFX.fxFunction((this.fxx+=this.step),this.t,this.xMax);var g=Math.round(this.delta*i/100);var h=Math.round(this.delta2*i/100);this.w=this.delta==-1?-1:this.start+g;this.h=this.start2+h;if(this.twin){this.twin.scale(this.twin.start-g,this.twin.start2-h);}this.parent.setSize(this.w,this.h);this.timer=window.setTimeout(this.sizing.bind(this),this.timeStep);}else{this.onEnd();this.active=false;}};this.onStart=function(){return null;};this.onEnd=function(){return null;};};rbmFX.shift=function(b,h,c,g,f,i,a,e){this.parent=$fx(b);this.delta=typeof(i)=="undefined"?0:i;this.d=h||-1;this.xMax=100;this.step=c||4;this.t=g||4;this.duration=f||500;this.timeStep=10;this.position=0;this.elementCount=0;this.start=0;this.orientation=a||"Left";this.visibleElements=e||1;this.atBoundary=1;this.init=function(){this.getDelta();this.position=-1*this.start;this.margin=this.position*this.delta;this.parent.style["margin"+this.orientation]=this.margin+"px";this.timeStep=Math.round(this.duration/(this.xMax/this.step));this.bounding();};this.getDelta=function(){if(this.delta==0){if(this.orientation=="Left"){this.delta=this.parent.parentNode.offsetWidth;}else{this.delta=this.parent.parentNode.offsetHeight;}}};this.delayed=function(j){j=j||this.delay;this.delaytimer=window.setTimeout(this.go.bind(this),j);};this.go=function(j){j=j||this.d;if(!this.active&&j!=this.bounding(true)){this.active=true;if(this.delta==0){this.getDelta();}this.d=j||this.d;this.fxx=0;this.xMax=100;this.start=this.margin;this.onStart();this.position+=this.d;this.shifting(j);}};this.switching=function(j){this.position-=this.d;this.margin=this.margin-this.d*this.delta;this.parent.style["margin"+this.orientation]=this.margin+"px";};this.shifting=function(j){if(this.fxx<this.xMax){this.margin=this.start+Math.round(this.d*this.delta*rbmFX.fxFunction((this.fxx+=this.step),this.t,this.xMax)/100,0);this.parent.style["margin"+this.orientation]=this.margin+"px";this.timer=window.setTimeout(this.shifting.bind(this,j),this.timeStep);}else{this.onEnd();this.active=false;}};this.onStart=function(){return null;};this.onRightBorder=function(){return null;};this.onLeftBorder=function(){return null;};this.onMiddle=function(){return null;};this.onEnd=function(){this.bounding();};this.bounding=function(d){if(-1*this.position==this.elementCount-this.visibleElements){if(this.atBoundary!=-1){this.onRightBorder();}this.atBoundary=-1;return -1;}else{if(this.position==0){if(this.atBoundary!=1){this.onLeftBorder();}this.atBoundary=1;return 1;}else{if(!d){this.onMiddle();}}}this.atBoundary=0;return 0;};this.init();};rbmFX.shiftV=function(b,h,a,c,g,f,e){this.parent=$fx(b);this.d=h||-1;this.xMax=100;this.max=a;this.step=c;this.t=g||2;this.duration=f||500;this.timeStep=10;this.delay=0;this.myShift=0;this.start=e||0;this.init=function(){this.fxx=0;this.timeStep=Math.round(this.duration/(this.xMax/this.step));};this.init();this.delayed=function(d){this.delay=d||this.delay;this.delaytimer=window.setTimeout(this.go.bind(this,this.d),this.delay);};this.go=function(i){if(!this.active||i!=this.d){this.d=i||this.d;this.active=true;this.init();this.onStart();this.shifting();}};this.shifting=function(){if(Math.abs(this.fxx)<this.xMax){this.myShift=this.start+this.d*this.max*rbmFX.fxFunction((this.fxx+=this.step),this.t,this.xMax)/100;this.parent.style.marginTop=this.myShift+"px";this.timer=window.setTimeout(this.shifting.bind(this,h),this.timeStep);}else{this.onEnd();this.active=false;}};this.onStart=function(){return null;};this.onEnd=function(){return null;};};rbmFX.scrollTo=function(b,h,a,c,g,f,e){this.parent=$fx(b);this.d=h||-1;this.xMax=100;this.max=a-this.parent.scrollTop;this.step=c;this.t=g||2;this.duration=f||500;this.timeStep=10;this.delay=0;this.myScroll=0;this.start=e||0;this.init=function(){this.fxx=0;this.start=this.parent.scrollTop;this.timeStep=Math.round(this.duration/(this.xMax/this.step));};this.init();this.delayed=function(d){this.delay=d||this.delay;this.delaytimer=window.setTimeout(this.go.bind(this,this.d),this.delay);};this.go=function(i){if(!this.active||i!=this.d){this.d=i||this.d;this.active=true;this.init();this.onStart();this.scrolling();}};this.scrolling=function(){if(this.fxx<this.xMax){this.myScroll=this.start+this.d*this.max*rbmFX.fxFunction((this.fxx+=this.step),this.t,this.xMax)/100;this.parent.scrollTop=this.myScroll;this.timer=window.setTimeout(this.scrolling.bind(this,h),this.timeStep);}else{this.onEnd();this.active=false;}};this.onStart=function(){return null;};this.onEnd=function(){return null;};};
/*************************** 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:"formatselect,removeformat,undo,redo,cleanup,code",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"bottom",theme_advanced_toolbar_align:"center",theme_advanced_resizing:true,entity_encoding:"raw",entities:"",forced_root_block:"p",setup:function(f){f.onPostProcess.add(function(g,h){h.content=h.content.replace(/<p><\/p>/g,"");});}};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.addTouchScroll=function(a){a.addEventListener("touchstart",function(b){rbmWindow.handleTouchStart(b,a);},false);a.addEventListener("touchmove",function(b){rbmWindow.handleTouchMove(b,a);},false);};rbmWindow.handleTouchStart=function(b,a){a.lastPosY=b.touches[0].pageY;a.lastPosX=b.touches[0].pageX;};rbmWindow.handleTouchMove=function(h,d){if(h.touches.length==1){var j=h.touches[0];var a=d.lastPosY-j.pageY;var c=d.lastPosX-j.pageX;d.lastPosY=j.pageY;d.lastPosX=j.pageX;var g=d.scrollHeight-d.offsetHeight;var b=d.scrollWidth-d.offsetWidth;var f=false;if(Math.abs(a)>8){d.scrollTop=d.scrollTop+a;f=true;}if(f){h.preventDefault();}}};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,B,o,C,E,c,F,I,g,G,d,z,H,D,J,f,k,v){if(!this.isOpen){bRelocate=!v;if(typeof(f)!="undefined"){this.isPersistent=f;}var u=0;var j=a;var b=false;while(u<5&&(j=j.parentNode)){if(j.id.indexOf("window_Area")!=-1){b=true;u=6;}u++;}if(!b&&bRelocate){var m=null;if(!!idUnit){var s=$("c_unit_"+idUnit);if(s){m=s.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);B=parseInt(B);this.type="window";this.bDraggable=(typeof(F)=="undefined")?true:F;this.bSizeable=(typeof(I)=="undefined")?true:I;this.bScroll=(typeof(z)=="undefined")?true:z;this.bFade=(typeof(z)=="undefined")?false:o;this.bShadow=(typeof(H)=="undefined")?this.bShadow:H;this.bCaption=(typeof(D)=="undefined")?this.bCaption:D;this.bBottom=(typeof(J)=="undefined")?this.bBottom:J;if(this.bCaption){B+=this.captionHeight;}if(this.bBottom){B+=this.bottomHeight;}if(this.bBorder){B+=this.borderSize*2;p+=this.borderSize*2;}this.initW=(!!E)?E:p;this.initH=(!!c)?c:B;this.bCenter=false;if(n==-1||l==-1){this.bCenterX=(n==-1);this.bCenterY=(l==-1);var e=rbmWindow.calcCenterOffset(new Coordinate(p,B));var t=Coordinates.scrollOffsetIE(this.parentNode,true);if(t.x>0){t.x+=20;}if(t.y>0){t.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+=t.x;l+=t.y;}if(browserDetect.bIsIE){if(browserDetect.version==6){C=false;this.initW=p;this.initH=B;}else{if(this.initW==p){this.initW=Math.round(this.initW-2);}}this.bNoIEEffects=true;if(browserDetect.version==7){var r=$("main");if(!!r){r.className="mainNonRel";}}}else{if((browserDetect.bIsSF&&parseFloat(browserDetect.version)>3.9)||browserDetect.bIsCR){this.bNoIEEffects=true;}}this.aCloseButtons=this.getElementsByClassName("wndClose");for(var A=0;A<this.aCloseButtons.length;A++){this.aCloseButtons[A].w=this;this.aCloseButtons[A].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,G);}else{this.sizeConstrain(new Coordinate(100,100));}this.afterResize=function(){rbmWindow.lateInit(this);};}if(!C||this.bNoIEEffects){this.bFade=!!o;if(this.bFade){rbmWindow.fadeBG(1);}this.setDisplay(true);this.wndBody.setOpacity(100);this.setSize(p,B);this.move(n,l,null);this.show(true);rbmWindow.lateInit(this);this.onLoad();}else{this.newFx2=new rbmFX.scale(this,p,B,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(t){if(t!=this.nElementOpen&&!this.switchTeaserActive){this.switchTeaserActive=true;var s=this.getElementsByClassName("rbmFlipBoxThemeContainer_"+c.id.replace(/rbmFlipBox_/g,""))[t];var p=this.getElementsByClassName("rbmFlipBoxThemeContainer_"+c.id.replace(/rbmFlipBox_/g,""))[this.nElementOpen];s.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=s.getElementByClassName("rbmFlipBoxThemeContainerInner");var r;if(this.hmax==-1){r=o.offsetHeight+this.hmin;}else{r=this.hmax;o.style.height=this.hmax-this.hmin;}if(!s.big){s.big=new rbmFX.scale(s,-1,r,d,k,e);s.big.onEnd=function(){c.switchTeaserActive=false;this.parent.style.height="auto";var u=this.parent.getElementsByTagName("iframe");for(var n=0;n<u.length;n++){u[n].style.display="block";}rbmWindow.raiseEvent(c,"afterOpen",c.nElementOpen);};}else{s.big.h=r;}window.setTimeout(s.big.go.bind(s.big),200);this.nElementOpen=t;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(this,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(h,g,d){slideShow=$(h);rbmWindow.allInteractiveSlideShows[h]=slideShow;var a=slideShow.getElementById("manslideshowcontainer");if(!a){console.warn("rbmWindow.prepareInteractiveSlideShow: manslideshowcontainer not found!");return;}if(a.offsetWidth>a.parentNode.offsetWidth+20){a.orientation="Left";}else{a.orientation="Top";}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(j){if(j>=0&&this.sl.fx&&j<this.sl.fx.elementCount){this.start=j;this.sl.fx.start=j;this.sl.fx.position=-1*j;this.sl.fx.margin=-1*j*this.sl.fx.delta;this.sl.style.marginLeft=this.sl.fx.margin+"px";this.sl.fx.bounding();}else{this.start=j;}};if(typeof(slideShow.start)=="undefined"){slideShow.setPosition(0);}if(a.offsetWidth>0&&!a.timer){a.aImgList=slideShow.getElementsByClassName("interactiveSlideShowImage_Container");if(a.orientation=="Left"){a.visibleElements=Math.round(a.parentNode.offsetWidth/a.aImgList[0].offsetWidth,0);}else{a.visibleElements=Math.round(a.parentNode.offsetHeight/a.aImgList[0].offsetHeight,0);}a.bRotate=(a.parent.className.indexOf("rotatingSlideShow")!=-1);if(a.bRotate){a.rotationInterval=4000;var e=a.parent.className.indexOf("rotationInterval");if(e!=-1){q=e;while(q<a.parent.className.length&&a.parent.className[q]!=" "){q++;}a.rotationInterval=parseInt(a.parent.className.substring(e+17,q));a.rotationInterval=a.rotationInterval<100?100:a.rotationInterval;}}if(!a.timer){a.timer=null;}a.timerCall=function(){if(!this.parent.parentNode||!this.timer){return false;}this.fx.go(-1);this.timer=window.setTimeout(this.timerCall.bind(this,-1),this.rotationInterval);};var b=slideShow.getElementById("manslideshownav");if(!!b){if(!a.fx){a.fx=new rbmFX.shift(a,-1,4,4,500,a.orientation=="Left"?a.aImgList[0].offsetWidth:a.aImgList[0].offsetHeight,a.orientation,a.visibleElements);a.fx.position=-1*slideShow.start;a.fx.margin=-1*slideShow.start*a.fx.delta;a.fx.bounding();}else{a.fx.init();}a.fx.elementCount=a.aImgList.length;a.fx.onStart=function(){};var f=slideShow.getElementById("nextMainSlide");if(!!f){a.fx.nextButton=$fx(f);a.fx.nextButton.fx=a.fx;f.onclick=function(){this.fx.parent.bRotate=false;this.fx.parent.timer=null;this.fx.parent.timer=null;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.parent.bRotate=false;this.fx.parent.timer=null;this.fx.parent.timer=null;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(){var k=-1*this.position;var j=this.parent;if(this.d==-1&&j.bRotate){j.aImgList=j.parent.getElementsByClassName("interactiveSlideShowImage_Container");if(j.aImgList.length<k-1){return false;}if(j.aImgList[k-1].bIsClone){var l=j.aImgList[k-1].oClonedFrom;l.bIsClone=true;l.oClonedFrom=j.aImgList[k-1];j.removeChild(l);j.fx.switching(1);j.appendChild(l);}else{var l=j.aImgList[k-1].cloneNode(true);l.bIsClone=true;l.oClonedFrom=j.aImgList[k-1];j.appendChild(l);j.fx.elementCount++;}}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){if(b.style.visibility!="visible"){a.onmouseover=b.show.bind(b,1);a.onmouseout=function(k){if(typeof k=="undefined"){k=window.event;}Coordinates.fixEvent(k);var j=k.windowCoordinate;if(j.outside(Coordinates.northwestOffset(this.parentNode,true),Coordinates.southeastOffset(this.parentNode,true))){this.oNav.show(0);}};}}else{if(b.style.visibility!="visible"){a.onmouseover=b.fx.go.bind(b.fx,1);a.onmouseout=function(k){if(typeof k=="undefined"){k=window.event;}Coordinates.fixEvent(k);var j=k.windowCoordinate;if(j.outside(Coordinates.northwestOffsetIE(this.parentNode,true),Coordinates.southeastOffsetIE(this.parentNode,true))){this.oNav.fx.go(-1);}};}}if(a.bRotate&&!a.timer){a.timer=window.setTimeout(a.timerCall.bind(a,-1),a.rotationInterval);}}return slideShow;}return false;};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 r=this.parent.getElementsByTagName("iframe");for(var p=0;p<r.length;p++){r[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;}};
var Drag={BIG_Z_INDEX:10000,group:null,isDragging:false,makeDraggable:function(e,d,a,f,c,b){e.handle=e;e.handle.group=e;e.dragHolder=!!d?d:e;if(e.dragHolder!==e){e.dragHolder.group=e;}e.dragHolder.style.cursor="move";e.minX=!!a?a:null;e.minY=!!f?f:null;e.maxX=!!c?c:null;e.maxY=!!b?b:null;e.sourceContainer=null;e.myNextSibling=null;e.threshold=0;e.thresholdY=0;e.thresholdX=0;e.onDragStart=new Function();e.onDragEnd=new Function();e.onDrag=new Function();e.setDragHandle=Drag.setDragHandle;e.setDragThreshold=Drag.setDragThreshold;e.setDragThresholdX=Drag.setDragThresholdX;e.setDragThresholdY=Drag.setDragThresholdY;e.constrain=Drag.constrain;e.constrainVertical=Drag.constrainVertical;e.constrainHorizontal=Drag.constrainHorizontal;e.dragHolder.onmousedown=Drag.onMouseDown;},constrainVertical:function(){var a=Coordinates.northwestOffset(this,true);this.minX=a.x;this.maxX=a.x;},constrainHorizontal:function(){var a=Coordinates.northwestOffset(this,true);this.minY=a.y;this.maxY=a.y;},constrain:function(b,a){this.minX=b.x;this.minY=b.y;this.maxX=a.x;this.maxY=a.y;},setDragHandle:function(a){if(a&&a!=null){this.handle=a;}else{this.handle=this;}this.handle.group=this;this.onmousedown=null;this.handle.onmousedown=Drag.onMouseDown;},setDragThreshold:function(a){if(isNaN(parseInt(a))){return;}this.threshold=a;},setDragThresholdX:function(a){if(isNaN(parseInt(a))){return;}this.thresholdX=a;},setDragThresholdY:function(a){if(isNaN(parseInt(a))){return;}this.thresholdY=a;},onMouseDown:function(d){d=Drag.fixEvent(d);Drag.group=this.group;var f=this.group;f.sourceContainer=this.parentNode;f.myNextSibling=this.nextSibling;f.changed=0;var b=d.windowCoordinate;var c=Coordinates.northwestOffset(f,true,-1);var g=Coordinates.northwestPosition(f);var a=Coordinates.southeastPosition(f);var e=Coordinates.southeastOffset(f,true,-1);f.originalOpacity=f.style.opacity;f.originalZIndex=f.style.zIndex;f.initialWindowCoordinate=b;f.dragCoordinate=b;f.onDragStart(g,a,c,e);if(f.minX!=null){f.minMouseX=b.x-g.x+f.minX-(g.x==c.x?0:c.x);}if(f.maxX!=null){f.maxMouseX=f.minMouseX+f.maxX-f.minX;}if(f.minY!=null){f.minMouseY=b.y-g.y+f.minY-(g.y==c.y?0:c.y);}if(f.maxY!=null){f.maxMouseY=f.minMouseY+f.maxY-f.minY;}f.mouseMin=new Coordinate(f.minMouseX,f.minMouseY);f.mouseMax=new Coordinate(f.maxMouseX,f.maxMouseY);document.onmousemove=Drag.onMouseMove;document.onmouseup=Drag.onMouseUp;return false;},showStatus:function(b,f,a,c,e,d){window.status="mouse: "+b.toString()+"    NW pos: "+f.toString()+"    SE pos: "+a.toString()+"    NW offset: "+c.toString()+"    SE offset: "+e.toString()+"    minX: "+d.minX;},onMouseMove:function(d){d=Drag.fixEvent(d);var m=Drag.group;var j=d.windowCoordinate;var g=Coordinates.northwestOffset(m,true,-1);var o=Coordinates.northwestPosition(m);var b=Coordinates.southeastPosition(m);var l=Coordinates.southeastOffset(m,true,-1);if(!Drag.isDragging){if(m.threshold>0){var c=m.initialWindowCoordinate.distance(j);if(c<m.threshold){return true;}}else{if(m.thresholdY>0){var f=Math.abs(m.initialWindowCoordinate.y-j.y);if(f<m.thresholdY){return true;}}else{if(m.thresholdX>0){var h=Math.abs(m.initialWindowCoordinate.x-j.x);if(h<m.thresholdX){return true;}}}}Drag.isDragging=true;m.wasDragged=true;if(!m.positionIsAbsolute){m.style.position="relative";}m.style.zIndex=Drag.BIG_Z_INDEX;if(browserDetect.browser!="Internet Explorer"){$fx(m).setOpacity(65);}}var k=o;var n=j.constrain(m.mouseMin,m.mouseMax);o=o.plus(n.minus(m.dragCoordinate));o.reposition(m);m.dragCoordinate=n;var a=Coordinates.northwestOffset(m,true,-1);m.onDrag(o,b,g,l);var i=Coordinates.northwestOffset(m,true,-1);if(!a.equals(i)){var e=a.minus(i);o=Coordinates.northwestPosition(m).plus(e);o.reposition(m);}return false;},onMouseUp:function(d){d=Drag.fixEvent(d);var f=Drag.group;var b=d.windowCoordinate;var c=Coordinates.northwestOffset(f,true);var g=Coordinates.northwestPosition(f);var a=Coordinates.southeastPosition(f);var e=Coordinates.southeastOffset(f,true);document.onmousemove=null;document.onmouseup=null;f.onDragEnd(g,a,c,e);if(Drag.isDragging){f.style.zIndex=f.originalZIndex;if(browserDetect.browser!="Internet Explorer"){$fx(f).setOpacity(100);}f.style.position="";}else{if(f.bIsDragDrop){console.warn("Drag.onMouseUp is not generic yet!!");}}Drag.group=null;Drag.isDragging=false;return false;},fixEvent:function(a){if(typeof a=="undefined"){a=window.event;}Coordinates.fixEvent(a);return a;}};var Size={BIG_Z_INDEX:10000,group:null,isSizing:false,makeSizeable:function(a,b){a.sizeHandle=a;a.sizeHandle.group=a;a.sizeHolder=!!b?b:a;if(a.sizeHolder!==a){a.sizeHolder.group=a;}a.sminX=null;a.sminY=null;a.smaxX=null;a.smaxY=null;a.sizeThreshold=0;a.sizeThresholdY=0;a.sizeThresholdX=0;a.onSizeStart=new Function();a.onSizeEnd=new Function();a.onSize=new Function();a.setSizeHandle=Size.setSizeHandle;a.setSizeThreshold=Size.setSizeThreshold;a.setSizeThresholdX=Size.setSizeThresholdX;a.setSizeThresholdY=Size.setSizeThresholdY;a.sizeConstrain=Size.constrain;a.sizeConstrainVertical=Size.constrainVertical;a.sizeConstrainHorizontal=Size.constrainHorizontal;a.sizeHolder.onmousedown=Size.onMouseDown;},constrainVertical:function(){var a=Coordinates.northwestOffset(this,true);this.sminX=a.x;this.smaxX=a.x;},constrainHorizontal:function(){var a=Coordinates.northwestOffset(this,true);this.sminY=a.y;this.smaxY=a.y;},constrain:function(b,a){this.sminX=b.x;this.sminY=b.y;if(!!a){this.smaxX=a.x;this.smaxY=a.y;}else{this.smaxX=5000;this.smaxY=5000;}},setSizeHandle:function(a){if(a&&a!=null){this.sizeHandle=a;}else{this.sizeHandle=this;}this.sizeHandle.group=this;this.onmousedown=null;this.sizeHandle.onmousedown=Size.onMouseDown;},setSizeThreshold:function(a){if(isNaN(parseInt(a))){return;}this.threshold=a;},setSizeThresholdX:function(a){if(isNaN(parseInt(a))){return;}this.thresholdX=a;},setSizeThresholdY:function(a){if(isNaN(parseInt(a))){return;}this.thresholdY=a;},onMouseDown:function(d){d=Size.fixEvent(d);Size.group=this.group;var f=this.group;f.sourceContainer=this.parentNode;f.myNextSibling=this.nextSibling;f.changed=0;var b=d.windowCoordinate;var c=Coordinates.northwestOffset(f,true,0);var g=Coordinates.northwestPosition(f);var a=Coordinates.southeastPosition(f);var e=Coordinates.southeastOffset(f,true);f.originalOpacity=f.style.opacity;f.originalZIndex=f.style.zIndex;f.initialWindowCoordinate=b;f.sizeCoordinate=b;f.onSizeStart(g,a,c,e);f.mouseMin=c.plus(new Coordinate(f.sminX,f.sminY));f.mouseMax=c.plus(new Coordinate(f.smaxX,f.smaxY));document.onmousemove=Size.onMouseMove;document.onmouseup=Size.onMouseUp;return false;},showStatus:function(b,f,a,c,e,d){window.status="mouse: "+b.toString()+"    NW pos: "+f.toString()+"    SE pos: "+a.toString()+"    NW offset: "+c.toString()+"    SE offset: "+e.toString()+"    minX: "+d.sminX;},onMouseMove:function(c){c=Size.fixEvent(c);var j=Size.group;var h=c.windowCoordinate;var f=Coordinates.northwestOffset(j,true);var k=Coordinates.northwestPosition(j);var a=Coordinates.southeastPosition(j);var i=Coordinates.southeastOffset(j,true);var d=k.myDistance(h.constrain(j.mouseMin,j.mouseMax)).absolute();if(!Size.isSizing){if(j.threshold>0){var b=j.initialWindowCoordinate.distance(h);if(b<j.threshold){return true;}}else{if(j.thresholdY>0){var e=Math.abs(j.initialWindowCoordinate.y-h.y);if(e<j.thresholdY){return true;}}else{if(j.thresholdX>0){var g=Math.abs(j.initialWindowCoordinate.x-h.x);if(g<j.thresholdX){return true;}}}}Size.isSizing=true;if(browserDetect.browser!="Internet Explorer"){$fx(j).setOpacity(75);}}j.setSize(d);return false;},onMouseUp:function(d){d=Size.fixEvent(d);var f=Size.group;var b=d.windowCoordinate;var c=Coordinates.northwestOffset(f,true);var g=Coordinates.northwestPosition(f);var a=Coordinates.southeastPosition(f);var e=Coordinates.southeastOffset(f,true);document.onmousemove=null;document.onmouseup=null;f.onSizeEnd(g,a,c,e);if(Size.isSizing){if(browserDetect.browser!="Internet Explorer"){$fx(f).setOpacity(100);}if(!!f.afterResize){f.afterResize();}}else{}Size.group=null;Size.isSizing=false;return false;},fixEvent:function(a){if(typeof a=="undefined"){a=window.event;}Coordinates.fixEvent(a);return a;}};
var DragDrop={firstContainer:null,lastContainer:null,makeListContainer:function(d,g,f,c,e){e=!!e;if(!d.containerType||d.containerType!=g){d.containerType=g;f=!!f?f:"li";if(this.firstContainer==null){this.firstContainer=this.lastContainer=d;d.previousContainer=null;d.nextContainer=null;}else{d.previousContainer=this.lastContainer;d.nextContainer=null;this.lastContainer.nextContainer=d;this.lastContainer=d;}d.onDragOver=new Function();d.onDragOut=new Function();}var a=d.getElementsByTagName(f);for(var b=0;b<a.length;b++){DragDrop.makeItemDragable(a[b],$(a[b]).getElementByClassName(c));}},makeItemDragable:function(a,b){a.bIsDragDrop=true;Drag.makeDraggable(a,b);a.setDragThreshold(5);a.isOutside=false;a.onDragStart=DragDrop.onDragStart;a.onDrag=DragDrop.onDrag;a.onDragEnd=DragDrop.onDragEnd;a.makeAClone=DragDrop.makeAClone;a.addToTempParent=DragDrop.addToTempParent;},resetItem:function(a){a.isOutside=false;a.minMouseX=0;a.maxMouseX=0;a.minMouseY=0;a.maxMouseY=0;a.style.top="0px";a.style.left="0px";a.style.zIndex=a.originalZIndex;$fx(a).setOpacity(100);a.style.position="";},setItemConstraints:function(a,b){if(!!b.customConstraints){b.customConstraints();}if((""+b.minX)!=""){if(b.minX=="minX"){a.minX=Coordinates.northwestOffset(b,true).x+15;}else{a.minX=b.minX+((b.containerType=="sortList")?b.parentNode.scrollLeft:0);}}if((""+b.minY)!=""){if(b.minY=="minY"){a.minY=Coordinates.northwestOffset(b,true).y+5;}else{a.minY=b.minY+((b.containerType=="sortList")?b.parentNode.scrollTop:0);}}if((""+b.maxX)!=""){if(b.maxX=="maxX"){a.maxX=Coordinates.southeastOffset(b,true).x-a.offsetWidth-15;}else{a.maxX=b.maxX;}}if((""+b.maxY)!=""){if(b.maxY=="maxY"){a.maxY=Coordinates.northwestOffset(b,true).y+15;}else{a.maxY=b.maxY;}}},makeAClone:function(){var a=this.cloneNode(true);this.isCloned=1;this.isOutside=true;DragDrop.resetItem(a);this.sourceContainer.insertBefore(a,this.myNextSibling);DragDrop.makeItemDragable(a);prepareSourceList(this.sourceContainer);prepareShortLong($(a));changeForTarget(this);this.parentNode.onRemove(this);this.parentNode.removeChild(this);this.addToTempParent();},addToTempParent:function(){switch(this.sourceContainer.containerType){case"sortList":return false;break;case"sourceList":console.warn("addToTempParent is not generic yet");return false;break;case"sourceListWithTransition":console.warn("addToTempParent is not generic yet");var a=document.getElementById("playList").cloneNode(false);a.id="tempParent";a.appendChild(this);document.getElementsByTagName("body").item(0).appendChild(a);break;default:console.warn("addToTempParent is not generic yet");break;}},onDragStart:function(e,b,c,d){var a=DragDrop.firstContainer;while(a!=null){a.northwest=Coordinates.northwestOffset(a,true);a.southeast=Coordinates.southeastOffset(a,true);a=a.nextContainer;}this.parentNode.onDragOver();this.sourceContainer=this.parentNode;this.myNextSibling=this.nextSibling;this.changed=0;DragDrop.setItemConstraints(this,this.sourceContainer);},onDrag:function(k,b,d,h){if(this.isCloned!=1&&this.sourceContainer.cloneMode){this.makeAClone();}if(this.isOutside){var c=DragDrop.firstContainer;while(c!=null){if(d.inside(c.northwest,c.southeast)&&h.inside(c.northwest,c.southeast)){if(this.sourceContainer.id!=c.id&&c.parentNode.parentNode.style.visibility!="hidden"){c.onDragOver();this.isOutside=false;var g=this.parentNode;g.removeChild(this);c.appendChild(this);c.onAdd(this);g.parentNode.removeChild(g);}break;}c=c.nextContainer;}if(this.isOutside){return;}}else{if(!(d.inside(this.parentNode.northwest,this.parentNode.southeast)&&h.inside(this.parentNode.northwest,this.parentNode.southeast))){this.parentNode.onDragOut();this.isOutside=true;var c=DragDrop.firstContainer;while(c!=null){if(d.inside(c.northwest,c.southeast)&&h.inside(c.northwest,c.southeast)){if(this.sourceContainer.id!=c.id){c.onDragOver();this.isOutside=false;var a=this.parentNode;a.onRemove(this);a.removeChild(this);c.appendChild(this);c.onAdd(this);if(a.id=="tempParent"){a.parentNode.removeChild(a);}break;}}c=c.nextContainer;}if(this.isOutside){switch(this.sourceContainer.containerType){case"sortList":console.log("not going outside a Sortlist!!!");return false;break;default:this.parentNode.onRemove(this);this.addToTempParent();break;}return;}}}var i=this.parentNode;if(i.swap=="horizontal"){var j=this;var e=DragUtils.nextItem(j);while(e!=null&&this.offsetLeft>=e.offsetLeft-2){var j=e;var e=DragUtils.nextItem(j);}if(this!=j){DragUtils.swap(this,e);return;}var j=this;var f=DragUtils.previousItem(j);while(f!=null&&this.offsetLeft<=(f.offsetLeft+f.offsetWidth/2)){var j=f;var f=DragUtils.previousItem(j);}if(this!=j){DragUtils.swap(this,j);return;}}if(i.swap=="vertical"){var j=this;var e=DragUtils.nextItem(j);while(e!=null&&this.offsetTop>=e.offsetTop-2){var j=e;var e=DragUtils.nextItem(j);}if(this!=j){DragUtils.swap(this,e);return;}var j=this;var f=DragUtils.previousItem(j);while(f!=null&&this.offsetTop<=f.offsetTop+2){j=f;f=DragUtils.previousItem(j);}if(this!=j){DragUtils.swap(this,j);return;}}},onDragEnd:function(e,a,b,d){if(this.isOutside){var c=this.parentNode;this.parentNode.removeChild(this);c.parentNode.removeChild(c);return;}this.parentNode.onDragOut();this.style.top="0px";this.style.left="0px";if(rbmWindow&&this.wasDragged){rbmWindow.raiseEvent(this.parentNode,"onDragEnd",this);}DragDrop.setItemConstraints(this,this.parentNode);}};var DragUtils={swap:function(b,a){var c=b.parentNode;c.removeChild(b);c.insertBefore(b,a);},nextItem:function(b){var a=b.nextSibling;while(a!=null){if(a.nodeName==b.nodeName){return a;}a=a.nextSibling;}return null;},previousItem:function(b){var a=b.previousSibling;while(a!=null){if(a.nodeName==b.nodeName){return a;}a=a.previousSibling;}return null;}};
/*! SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/

var swfobject = function() {
	
	var UNDEF = "undefined",
		OBJECT = "object",
		SHOCKWAVE_FLASH = "Shockwave Flash",
		SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
		FLASH_MIME_TYPE = "application/x-shockwave-flash",
		EXPRESS_INSTALL_ID = "SWFObjectExprInst",
		
		win = window,
		doc = document,
		nav = navigator,
		
		domLoadFnArr = [],
		regObjArr = [],
		objIdArr = [],
		listenersArr = [],
		script,
		timer = null,
		storedAltContent = null,
		storedAltContentId = null,
		isDomLoaded = false,
		isExpressInstallActive = false;
	
	/* Centralized function for browser feature detection
		- Proprietary feature detection (conditional compiling) is used to detect Internet Explorer's features
		- User agent string detection is only used when no alternative is possible
		- Is executed directly for optimal performance
	*/	
	var ua = function() {
		var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF,
			playerVersion = [0,0,0],
			d = null;
		if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
			d = nav.plugins[SHOCKWAVE_FLASH].description;
			if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { // navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+
				d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
				playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
				playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
				playerVersion[2] = /r/.test(d) ? parseInt(d.replace(/^.*r(.*)$/, "$1"), 10) : 0;
			}
		}
		else if (typeof win.ActiveXObject != UNDEF) {
			var a = null, fp6Crash = false;
			try {
				a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".7");
			}
			catch(e) {
				try { 
					a = new ActiveXObject(SHOCKWAVE_FLASH_AX + ".6");
					playerVersion = [6,0,21];
					a.AllowScriptAccess = "always";	 // Introduced in fp6.0.47
				}
				catch(e) {
					if (playerVersion[0] == 6) {
						fp6Crash = true;
					}
				}
				if (!fp6Crash) {
					try {
						a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
					}
					catch(e) {}
				}
			}
			if (!fp6Crash && a) { // a will return null when ActiveX is disabled
				try {
					d = a.GetVariable("$version");	// Will crash fp6.0.21/23/29
					if (d) {
						d = d.split(" ")[1].split(",");
						playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
					}
				}
				catch(e) {}
			}
		}
		var u = nav.userAgent.toLowerCase(),
			p = nav.platform.toLowerCase(),
			webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
			ie = false,
			windows = p ? /win/.test(p) : /win/.test(u),
			mac = p ? /mac/.test(p) : /mac/.test(u);
		/*@cc_on
			ie = true;
			@if (@_win32)
				windows = true;
			@elif (@_mac)
				mac = true;
			@end
		@*/
		return { w3cdom:w3cdom, pv:playerVersion, webkit:webkit, ie:ie, win:windows, mac:mac };
	}();

	/* Cross-browser onDomLoad
		- Based on Dean Edwards' solution: http://dean.edwards.name/weblog/2006/06/again/
		- Will fire an event as soon as the DOM of a page is loaded (supported by Gecko based browsers - like Firefox -, IE, Opera9+, Safari)
	*/ 
	var onDomLoad = function() {
		if (!ua.w3cdom) {
			return;
		}
		addDomLoadEvent(main);
		if (ua.ie && ua.win) {
			try {	 // Avoid a possible Operation Aborted error
				doc.write("<scr" + "ipt id=__ie_ondomload defer=true src=//:></scr" + "ipt>"); // String is split into pieces to avoid Norton AV to add code that can cause errors 
				script = getElementById("__ie_ondomload");
				if (script) {
					addListener(script, "onreadystatechange", checkReadyState);
				}
			}
			catch(e) {}
		}
		if (ua.webkit && typeof doc.readyState != UNDEF) {
			timer = setInterval(function() { if (/loaded|complete/.test(doc.readyState)) { callDomLoadFunctions(); }}, 10);
		}
		if (typeof doc.addEventListener != UNDEF) {
			doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, null);
		}
		addLoadEvent(callDomLoadFunctions);
	}();
	
	function checkReadyState() {
		if (script.readyState == "complete") {
			script.parentNode.removeChild(script);
			callDomLoadFunctions();
		}
	}
	
	function callDomLoadFunctions() {
		if (isDomLoaded) {
			return;
		}
		if (ua.ie && ua.win) { // Test if we can really add elements to the DOM; we don't want to fire it too early
			var s = createElement("span");
			try { // Avoid a possible Operation Aborted error
				var t = doc.getElementsByTagName("body")[0].appendChild(s);
				t.parentNode.removeChild(t);
			}
			catch (e) {
				return;
			}
		}
		isDomLoaded = true;
		if (timer) {
			clearInterval(timer);
			timer = null;
		}
		var dl = domLoadFnArr.length;
		for (var i = 0; i < dl; i++) {
			domLoadFnArr[i]();
		}
	}
	
	function addDomLoadEvent(fn) {
		if (isDomLoaded) {
			fn();
		}
		else { 
			domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
		}
	}
	
	/* Cross-browser onload
		- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
		- Will fire an event as soon as a web page including all of its assets are loaded 
	 */
	function addLoadEvent(fn) {
		if (typeof win.addEventListener != UNDEF) {
			win.addEventListener("load", fn, false);
		}
		else if (typeof doc.addEventListener != UNDEF) {
			doc.addEventListener("load", fn, false);
		}
		else if (typeof win.attachEvent != UNDEF) {
			addListener(win, "onload", fn);
		}
		else if (typeof win.onload == "function") {
			var fnOld = win.onload;
			win.onload = function() {
				fnOld();
				fn();
			};
		}
		else {
			win.onload = fn;
		}
	}
	
	/* Main function
		- Will preferably execute onDomLoad, otherwise onload (as a fallback)
	*/
	function main() { // Static publishing only
		var rl = regObjArr.length;
		for (var i = 0; i < rl; i++) { // For each registered object element
			var id = regObjArr[i].id;
			if (ua.pv[0] > 0) {
				var obj = getElementById(id);
				if (obj) {
					regObjArr[i].width = obj.getAttribute("width") ? obj.getAttribute("width") : "0";
					regObjArr[i].height = obj.getAttribute("height") ? obj.getAttribute("height") : "0";
					if (hasPlayerVersion(regObjArr[i].swfVersion)) { // Flash plug-in version >= Flash content version: Houston, we have a match!
						if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements
							fixParams(obj);
						}
						setVisibility(id, true);
					}
					else if (regObjArr[i].expressInstall && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) { // Show the Adobe Express Install dialog if set by the web page author and if supported (fp6.0.65+ on Win/Mac OS only)
						showExpressInstall(regObjArr[i]);
					}
					else { // Flash plug-in and Flash content version mismatch: display alternative content instead of Flash content
						displayAltContent(obj);
					}
				}
			}
			else {	// If no fp is installed, we let the object element do its job (show alternative content)
				setVisibility(id, true);
			}
		}
	}
	
	/* Fix nested param elements, which are ignored by older webkit engines
		- This includes Safari up to and including version 1.2.2 on Mac OS 10.3
		- Fall back to the proprietary embed element
	*/
	function fixParams(obj) {
		var nestedObj = obj.getElementsByTagName(OBJECT)[0];
		if (nestedObj) {
			var e = createElement("embed"), a = nestedObj.attributes;
			if (a) {
				var al = a.length;
				for (var i = 0; i < al; i++) {
					if (a[i].nodeName == "DATA") {
						e.setAttribute("src", a[i].nodeValue);
					}
					else {
						e.setAttribute(a[i].nodeName, a[i].nodeValue);
					}
				}
			}
			var c = nestedObj.childNodes;
			if (c) {
				var cl = c.length;
				for (var j = 0; j < cl; j++) {
					if (c[j].nodeType == 1 && c[j].nodeName == "PARAM") {
						e.setAttribute(c[j].getAttribute("name"), c[j].getAttribute("value"));
					}
				}
			}
			obj.parentNode.replaceChild(e, obj);
		}
	}
	
	/* Show the Adobe Express Install dialog
		- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
	*/
	function showExpressInstall(regObj) {
		isExpressInstallActive = true;
		var obj = getElementById(regObj.id);
		if (obj) {
			if (regObj.altContentId) {
				var ac = getElementById(regObj.altContentId);
				if (ac) {
					storedAltContent = ac;
					storedAltContentId = regObj.altContentId;
				}
			}
			else {
				storedAltContent = abstractAltContent(obj);
			}
			if (!(/%$/.test(regObj.width)) && parseInt(regObj.width, 10) < 310) {
				regObj.width = "310";
			}
			if (!(/%$/.test(regObj.height)) && parseInt(regObj.height, 10) < 137) {
				regObj.height = "137";
			}
			doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
			var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
				dt = doc.title,
				fv = "MMredirectURL=" + win.location + "&MMplayerType=" + pt + "&MMdoctitle=" + dt,
				replaceId = regObj.id;
			// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
			// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
			if (ua.ie && ua.win && obj.readyState != 4) {
				var newObj = createElement("div");
				replaceId += "SWFObjectNew";
				newObj.setAttribute("id", replaceId);
				obj.parentNode.insertBefore(newObj, obj); // Insert placeholder div that will be replaced by the object element that loads expressinstall.swf
				obj.style.display = "none";
				var fn = function() {
					obj.parentNode.removeChild(obj);
				};
				addListener(win, "onload", fn);
			}
			createSWF({ data:regObj.expressInstall, id:EXPRESS_INSTALL_ID, width:regObj.width, height:regObj.height }, { flashvars:fv }, replaceId);
		}
	}
	
	/* Functions to abstract and display alternative content
	*/
	function displayAltContent(obj) {
		if (ua.ie && ua.win && obj.readyState != 4) {
			// For IE when a SWF is loading (AND: not available in cache) wait for the onload event to fire to remove the original object element
			// In IE you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
			var el = createElement("div");
			obj.parentNode.insertBefore(el, obj); // Insert placeholder div that will be replaced by the alternative content
			el.parentNode.replaceChild(abstractAltContent(obj), el);
			obj.style.display = "none";
			var fn = function() {
				obj.parentNode.removeChild(obj);
			};
			addListener(win, "onload", fn);
		}
		else {
			obj.parentNode.replaceChild(abstractAltContent(obj), obj);
		}
	} 

	function abstractAltContent(obj) {
		var ac = createElement("div");
		if (ua.win && ua.ie) {
			ac.innerHTML = obj.innerHTML;
		}
		else {
			var nestedObj = obj.getElementsByTagName(OBJECT)[0];
			if (nestedObj) {
				var c = nestedObj.childNodes;
				if (c) {
					var cl = c.length;
					for (var i = 0; i < cl; i++) {
						if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) {
							ac.appendChild(c[i].cloneNode(true));
						}
					}
				}
			}
		}
		return ac;
	}
	
	/* Cross-browser dynamic SWF creation
	*/
	function createSWF(attObj, parObj, id) {
		var r, el = getElementById(id);
		if (el) {
			if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
				attObj.id = id;
			}
			if (ua.ie && ua.win) { // IE, the object element and W3C DOM methods do not combine: fall back to outerHTML
				var att = "";
				for (var i in attObj) {
					if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries, like Object.prototype.toJSONString = function() {}
						if (i.toLowerCase() == "data") {
							parObj.movie = attObj[i];
						}
						else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
							att += ' class="' + attObj[i] + '"';
						}
						else if (i.toLowerCase() != "classid") {
							att += ' ' + i + '="' + attObj[i] + '"';
						}
					}
				}
				var par = "";
				for (var j in parObj) {
					if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries
						par += '<param name="' + j + '" value="' + parObj[j] + '" />';
					}
				}
				el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
				objIdArr[objIdArr.length] = attObj.id; // Stored to fix object 'leaks' on unload (dynamic publishing only)
				r = getElementById(attObj.id);	
			}
			else if (ua.webkit && ua.webkit < 312) { // Older webkit engines ignore the object element's nested param elements: fall back to the proprietary embed element
				var e = createElement("embed");
				e.setAttribute("type", FLASH_MIME_TYPE);
				for (var k in attObj) {
					if (attObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries
						if (k.toLowerCase() == "data") {
							e.setAttribute("src", attObj[k]);
						}
						else if (k.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
							e.setAttribute("class", attObj[k]);
						}
						else if (k.toLowerCase() != "classid") { // Filter out IE specific attribute
							e.setAttribute(k, attObj[k]);
						}
					}
				}
				for (var l in parObj) {
					if (parObj[l] != Object.prototype[l]) { // Filter out prototype additions from other potential libraries
						if (l.toLowerCase() != "movie") { // Filter out IE specific param element
							e.setAttribute(l, parObj[l]);
						}
					}
				}
				el.parentNode.replaceChild(e, el);
				r = e;
			}
			else { // Well-behaving browsers
				var o = createElement(OBJECT);
				o.setAttribute("type", FLASH_MIME_TYPE);
				for (var m in attObj) {
					if (attObj[m] != Object.prototype[m]) { // Filter out prototype additions from other potential libraries
						if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
							o.setAttribute("class", attObj[m]);
						}
						else if (m.toLowerCase() != "classid") { // Filter out IE specific attribute
							o.setAttribute(m, attObj[m]);
						}
					}
				}
				for (var n in parObj) {
					if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { // Filter out prototype additions from other potential libraries and IE specific param element
						createObjParam(o, n, parObj[n]);
					}
				}
				el.parentNode.replaceChild(o, el);
				r = o;
			}
		}
		return r;
	}
	
	function createObjParam(el, pName, pValue) {
		var p = createElement("param");
		p.setAttribute("name", pName);	
		p.setAttribute("value", pValue);
		el.appendChild(p);
	}
	
	/* Cross-browser SWF removal
		- Especially needed to safely and completely remove a SWF in Internet Explorer
	*/
	function removeSWF(id) {
		var obj = getElementById(id);
		if (obj && (obj.nodeName == "OBJECT" || obj.nodeName == "EMBED")) {
			if (ua.ie && ua.win) {
				if (obj.readyState == 4) {
					removeObjectInIE(id);
				}
				else {
					win.attachEvent("onload", function() {
						removeObjectInIE(id);
					});
				}
			}
			else {
				obj.parentNode.removeChild(obj);
			}
		}
	}
	
	function removeObjectInIE(id) {
		var obj = getElementById(id);
		if (obj) {
			for (var i in obj) {
				if (typeof obj[i] == "function") {
					obj[i] = null;
				}
			}
			obj.parentNode.removeChild(obj);
		}
	}
	
	/* Functions to optimize JavaScript compression
	*/
	function getElementById(id) {
		if(typeof(id) == "object")
			return(id);
		var el = null;
		try {
			el = doc.getElementById(id);
		}
		catch (e) {
		}
		return el;
	}
	
	function createElement(el) {
		return doc.createElement(el);
	}
	
	/* Updated attachEvent function for Internet Explorer
		- Stores attachEvent information in an Array, so on unload the detachEvent functions can be called to avoid memory leaks
	*/	
	function addListener(target, eventType, fn) {
		target.attachEvent(eventType, fn);
		listenersArr[listenersArr.length] = [target, eventType, fn];
	}
	
	/* Flash Player and SWF content version matching
	*/
	function hasPlayerVersion(rv) {
		var pv = ua.pv, v = rv.split(".");
		v[0] = parseInt(v[0], 10);
		v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
		v[2] = parseInt(v[2], 10) || 0;
		return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
	}
	
	/* Cross-browser dynamic CSS creation
		- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
	*/	
	function createCSS(sel, decl) {
		if (ua.ie && ua.mac) {
			return;
		}
		var h = doc.getElementsByTagName("head")[0], s = createElement("style");
		s.setAttribute("type", "text/css");
		s.setAttribute("media", "screen");
		if (!(ua.ie && ua.win) && typeof doc.createTextNode != UNDEF) {
			s.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
		}
		h.appendChild(s);
		if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
			var ls = doc.styleSheets[doc.styleSheets.length - 1];
			if (typeof ls.addRule == OBJECT) {
				ls.addRule(sel, decl);
			}
		}
	}
	
	function setVisibility(id, isVisible) {
		var v = isVisible ? "visible" : "hidden";
		if (isDomLoaded && getElementById(id)) {
			getElementById(id).style.visibility = v;
		}
		else {
			createCSS("#" + id, "visibility:" + v);
		}
	}

	/* Filter to avoid XSS attacks 
	*/
	function urlEncodeIfNecessary(s) {
		var regex = /[\\\"<>\.;]/;
		var hasBadChars = regex.exec(s) != null;
		return hasBadChars ? encodeURIComponent(s) : s;
	}
	
	/* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only)
	*/
	var cleanup = function() {
		if (ua.ie && ua.win) {
			window.attachEvent("onunload", function() {
				// remove listeners to avoid memory leaks
				var ll = listenersArr.length;
				for (var i = 0; i < ll; i++) {
					listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]);
				}
				// cleanup dynamically embedded objects to fix audio/video threads and force open sockets and NetConnections to disconnect
				var il = objIdArr.length;
				for (var j = 0; j < il; j++) {
					removeSWF(objIdArr[j]);
				}
				// cleanup library's main closures to avoid memory leaks
				for (var k in ua) {
					ua[k] = null;
				}
				ua = null;
				for (var l in swfobject) {
					swfobject[l] = null;
				}
				swfobject = null;
			});
		}
	}();
	
	
	return {
		/* Public API
			- Reference: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_documentation
		*/ 
		registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr) {
			if (!ua.w3cdom || !objectIdStr || !swfVersionStr) {
				return;
			}
			var regObj = {};
			regObj.id = objectIdStr;
			regObj.swfVersion = swfVersionStr;
			regObj.expressInstall = xiSwfUrlStr ? xiSwfUrlStr : false;
			regObjArr[regObjArr.length] = regObj;
			setVisibility(objectIdStr, false);
		},
		
		getObjectById: function(objectIdStr) {
			var r = null;
			if (ua.w3cdom) {
				var o = getElementById(objectIdStr);
				if (o) {
					var n = o.getElementsByTagName(OBJECT)[0];
					if (!n || (n && typeof o.SetVariable != UNDEF)) {
							r = o;
					}
					else if (typeof n.SetVariable != UNDEF) {
						r = n;
					}
				}
			}
			return r;
		},
		
		embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj) {
			if (!ua.w3cdom || !swfUrlStr || !replaceElemIdStr || !widthStr || !heightStr || !swfVersionStr) {
				return;
			}
			widthStr += ""; // Auto-convert to string
			heightStr += "";
			if (hasPlayerVersion(swfVersionStr)) {
				setVisibility(replaceElemIdStr, false);
				var att = {};
				if (attObj && typeof attObj === OBJECT) {
					for (var i in attObj) {
						if (attObj[i] != Object.prototype[i]) { // Filter out prototype additions from other potential libraries
							att[i] = attObj[i];
						}
					}
				}
				att.data = swfUrlStr;
				att.width = widthStr;
				att.height = heightStr;
				var par = {}; 
				if (parObj && typeof parObj === OBJECT) {
					for (var j in parObj) {
						if (parObj[j] != Object.prototype[j]) { // Filter out prototype additions from other potential libraries
							par[j] = parObj[j];
						}
					}
				}
				if (flashvarsObj && typeof flashvarsObj === OBJECT) {
					for (var k in flashvarsObj) {
						if (flashvarsObj[k] != Object.prototype[k]) { // Filter out prototype additions from other potential libraries
							if (typeof par.flashvars != UNDEF) {
								par.flashvars += "&" + k + "=" + flashvarsObj[k];
							}
							else {
								par.flashvars = k + "=" + flashvarsObj[k];
							}
						}
					}
				}
				addDomLoadEvent(function() {
					createSWF(att, par, replaceElemIdStr);
					if (att.id == replaceElemIdStr) {
						setVisibility(replaceElemIdStr, true);
					}
				});
			}
			else if (xiSwfUrlStr && !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac)) {
				isExpressInstallActive = true; // deferred execution
				setVisibility(replaceElemIdStr, false);
				addDomLoadEvent(function() {
					var regObj = {};
					regObj.id = regObj.altContentId = replaceElemIdStr;
					regObj.width = widthStr;
					regObj.height = heightStr;
					regObj.expressInstall = xiSwfUrlStr;
					showExpressInstall(regObj);
				});
			}
		},
		
		getFlashPlayerVersion: function() {
			return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
		},
		
		hasFlashPlayerVersion: hasPlayerVersion,
		
		createSWF: function(attObj, parObj, replaceElemIdStr) {
			if (ua.w3cdom) {
				return createSWF(attObj, parObj, replaceElemIdStr);
			}
			else {
				return undefined;
			}
		},
		
		removeSWF: function(objElemIdStr) {
			if (ua.w3cdom) {
				removeSWF(objElemIdStr);
			}
		},
		
		createCSS: function(sel, decl) {
			if (ua.w3cdom) {
				createCSS(sel, decl);
			}
		},
		
		addDomLoadEvent: addDomLoadEvent,
		
		addLoadEvent: addLoadEvent,
		
		getQueryParamValue: function(param) {
			var q = doc.location.search || doc.location.hash;
			if (param == null) {
				return urlEncodeIfNecessary(q);
			}
			if (q) {
				var pairs = q.substring(1).split("&");
				for (var i = 0; i < pairs.length; i++) {
					if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
						return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1)));
					}
				}
			}
			return "";
		},
		
		// For internal usage only
		expressInstallCallback: function() {
			if (isExpressInstallActive && storedAltContent) {
				var obj = getElementById(EXPRESS_INSTALL_ID);
				if (obj) {
					obj.parentNode.replaceChild(storedAltContent, obj);
					if (storedAltContentId) {
						setVisibility(storedAltContentId, true);
						if (ua.ie && ua.win) {
							storedAltContent.style.display = "block";
						}
					}
					storedAltContent = null;
					storedAltContentId = null;
					isExpressInstallActive = false;
				}
			} 
		}
	};
}();

/*************************** econtioTimeline.js *******************************
**** Version 1.03.0001
**** last changed 15.04.2009
**** (c) 2007/2008 Bernd Rudolf, econtio GmbH, www.econtio.de
******************************************************************************/
function objEvent(j,f,b,e,a,g,c,d){this.id=j;this.idFolie=f;this.tc=b;this.type=e;this.x=a;this.y=g;this.w=c;this.h=d;}function econtioTimeLine(b,a,c){this.name=b;this.version="1.02.0001";this.interval=null;this.playState=0;this.sTime=500;this.intervalTime=this.sTime;this.tc="00:00:00:00";this.bTCJump=false;this.tcJumpTo=null;this.bSkipEvent=false;if(!c){this.debugElement=a.newSubElement("debugTimeline","Timeline: "+b);}else{this.debugElement=c;}this.ePlayer=null;this.oEventList=new Array();this.timeTotal=null;this.timeElapsed=null;this.init=function(){this.currUTCSec=null;this.currSec=0;this.h=0;this.m=0;this.s=0;this.f=0;this.eventCounter=0;};this.play=function(){this.intervalTime=window.setTimeout(this.getTC.bind(this),this.sTime);};this.pause=function(){window.clearTimeout(this.intervalTime);};this.findNextEvent=function(e){e=parseInt(e);e=e||0;var d=this.eventCounter+e;if(d<this.oEventList.length){return this.oEventList[d].tc;}else{return false;}};this.findLastEvent=function(e){e=parseInt(e);e=e||-2;var d=this.eventCounter+e;if(d>=0&&!!this.oEventList[d]){return this.oEventList[d].tc;}else{return false;}};this.getTC=function(){if(!this.ePlayer||(this.ePlayer&&!this.ePlayer.bBuffering)){this.now=new Date();if(this.currSec!=this.now.getUTCSeconds()){this.currSec=this.now.getUTCSeconds();this.s++;if(this.s>59){this.s=0;this.m++;if(this.m>59){this.m=0;this.h++;}}this.tc=makeTC(this.h,this.m,this.s);if(this.timeElapsed){this.debugprint(this.timeElapsed,this.tc.substr(0,8));}this.checkEvent(this.tc);}}else{this.debuglog("buffering...");}if(this.eventCounter<this.oEventList.length){this.intervalTime=window.setTimeout(this.getTC.bind(this),this.sTime);}else{this.onEnd();}};this.debuglog=function(e){var d=this.debugElement.getElementById("debuglog");d.innerHTML=e+"<br/>"+d.innerHTML;};this.debugprint=function(e,f){var d=e;if(typeof(e)=="string"&&this.debugElement){e=this.debugElement.getElementById(e);}if(typeof(e)=="object"){e.innerHTML=f;}else{window.status=">>Timeline debugprint: "+e+"/"+d+" not found!";}};this.slideEvent=function(d){if(typeof(sPlayer)!="undefined"&&sPlayer.playState==3){sPlayer.stop();}currentSlide=(!d?this.oEventList[this.eventCounter].x:d);this.debugprint("currentSlide",currentSlide);currentSlideID=this.oEventList[this.eventCounter].id;currentSlidePos=this.eventCounter;setSlide();};this.checkEvent=function(d){if(this.bTCJump&&this.oEventList.length>0){this.bTCJump=false;this.debuglog("evaluating next event for "+this.TCJumpTo);var f=0;while(f<this.oEventList.length&&(this.oEventList[f].tc<this.TCJumpTo)){f++;}if(this.bSkipEvent){f++;this.bSkipEvent=false;}this.eventCounter=f;this.TCJumpTo=null;this.debuglog("next event: "+this.eventCounter+"@"+((f==0||f==this.oEventList.length)?"--":this.oEventList[f].tc));}if(this.oEventList.length>0&&this.eventCounter<this.oEventList.length&&d>=this.oEventList[this.eventCounter].tc){switch(this.oEventList[this.eventCounter].type%1000){case 1:this.slideEvent();break;case 2:currentEBCount++;var e=this.oEventList[this.eventCounter].x+"_"+this.oEventList[this.eventCounter].y;this.debugprint("currentSlide",e);document.getElementById(slideElement).src=c_strPath+"inhalte/"+strVortrag+"/folien/folie"+e+".gif";break;case 3:showpointer(oEventList[this.eventCounter].x,oEventList[this.eventCounter].y);break;case 11:this.ePlayer.URL(this.oEventList[this.eventCounter].x);break;case 12:break;case 13:break;case 21:break;case 99:this.oEventList[this.eventCounter].x();break;}if(this.oEventList[this.eventCounter].type<1000){this.eventCounter++;}else{this.oEventList.remove(this.eventCounter,1);console.dir(this.oEventList);}this.debugprint("eventCounter",this.eventCounter);}};this.onEnd=function(){this.debuglog("Ende");};}function addTC(e,c){var f=e.split(":");f[2]=parseFloat(f[2],10);f[1]=parseFloat(f[1],10);f[0]=parseFloat(f[0],10);var d=c.split(":");d[2]=parseFloat(d[2],10);d[1]=parseFloat(d[1],10);d[0]=parseFloat(d[0],10);var a=new Array();for(var b=0;b<3;b++){a[b]=0;}for(var b=2;b>=0;b--){a[b]=a[b]+f[b]+d[b];if(a[b]>=60){a[b-1]=1;a[b]-=60;}}return makeTC(a[0],a[1],a[2]);}function subTC(e,c){var f=e.split(":");f[2]=parseFloat(f[2],10);f[1]=parseFloat(f[1],10);f[0]=parseFloat(f[0],10);var d=c.split(":");d[2]=parseFloat(d[2],10);d[1]=parseFloat(d[1],10);d[0]=parseFloat(d[0],10);var a=new Array();for(var b=0;b<3;b++){a[b]=0;}for(var b=2;b>=0;b--){a[b]=a[b]+f[b]-d[b];if(a[b]<0){a[b-1]=-1;a[b]+=60;}}return makeTC(a[0],a[1],a[2]);}function shiftTC(b,c){var a=b.split(":");a[2]=parseFloat(a[2],10)+c;a[1]=parseFloat(a[1],10);a[0]=parseFloat(a[0],10);for(i=2;i>0;i--){while(a[i]>59){a[i]=a[i]-60;a[i-1]=a[i-1]+1;}while(a[i]<0){a[i]=a[i]+60;a[i-1]=a[i-1]-1;}}if(a[0]<0){return"00:00:00:00";}else{return makeTC(a[0],a[1],a[2]);}}function makeTC(c,a,b,d){c="0"+c;a="0"+a;b="0"+b;d="0"+(!d?"0":d);c=c.substr(c.length-2,2);a=a.substr(a.length-2,2);b=b.substr(b.length-2,2);d=d.substr(d.length-2,2);return(c+":"+a+":"+b+":"+d);}
/*************************** econtioPlayer.js *******************************
**** Version 3.02.0001
**** last changed 24.02.2011
**** (c) 2007/2008 Bernd Rudolf, econtio GmbH, www.econtio.de
****************************************************************************/
var ePlayerList=new Object();var playerTypes=new Object();function extendPlayerVars(a){a.currentURL="";a.playState=0;a.playStateCode=0;a.bHasBeenStarted=false;a.playerInterval=null;a.networkInterval=null;a.seekInterval=null;a.bTCJump=false;a.TCJump="";a.bBuffering=false;a.bMute=false;a.bDebug=false;a.pTime=250;a.sTime=1000;a.intervalTime=a.pTime;a.framesSkipped=0;a.dropsPerMinute=[0,0,0,0,0];a.dropLimit=20;a.fallbackTime=null;a.OldState=0;a.mainDebugElement=mainDebugElement;a.panel=null;a.globalStatus=null;a.playFromTC=null;a.timeTotal=null;a.timeElapsed=null;a.currTC=null;a.bUserPause=false;a.bFastForward=false;a.bFastReverse=false;a.selLanguage="de";a.initVolume=100;a.currentVolume=100;a.customPlaylist=[];a.playlistCounter=0;a.loopPlaylist=false;a.bAutostart=false;a.storedTC=["00:00:00:00"];a.sendPlayerCommand=function(b,c){switch(b){case"PLAY":this.play();break;case"PAUSE":this.pause();break;case"SETTC":if(typeof(c)=="object"){this.setTC(c[0],c[1]);}else{this.setTC(c);}break;case"SETSTOREDTC":this.setStoredTC(c);break;case"TOGGLEPAUSE":this.togglePause();break;case"TOGGLEUSERPAUSE":this.toggleUserPause();break;case"STOP":this.stop();break;case"MUTE":this.mute(c);break;case"TOGGLEMUTE":this.toggleMute();break;case"VOLUME":this.volume(c);break;case"PLAYFROM":this.playFromTC=c;this.play();break;case"GOTONEXTEVENT":if(this.timeLine){if(tc=this.timeLine.findNextEvent(c)){}this.setTC(tc);}break;case"GOTOLASTEVENT":if(this.timeLine){if(tc=this.timeLine.findLastEvent(c)){}this.setTC(tc);}break;default:break;}};a.setStoredTC=function(b){b=parseInt(b);if(!!this.storedTC[this.storedTC.length-1+b]){this.setTC(this.storedTC[this.storedTC.length-1+b]);}};}playerTypes.MediaPlayer=function(c,a,b,d){this.name="";this.type="MediaPlayer";this.version="2.04.0003";this.playerName=c;this.windowlessVideo=false;this.uiMode=false;this.stretchToFit=true;this.bMP11Bugfix=false;extendPlayerVars(this);this.currentPlayListItem=null;this.debugElement=a.newSubElement("debugMPlayer",d);this.timeLine=new econtioTimeLine("TL-"+c,a,this.debugElement.getElementById("debugSub4"));this.play=function(){this.bFastForward=false;this.bFastReverse=false;if(!this.bUserPause){this.debuglog("PLAY");this.p.controls.play();}};this.pause=function(){this.debuglog("PAUSE");this.p.controls.pause();};this.stop=function(){this.debuglog("STOP");this.setLoop(false);if(this.p){this.p.controls.stop();}};this.togglePause=function(){switch(this.p.playState){case 2:if(!this.bUserPause){this.play();}break;case 3:this.pause();break;case 4:this.bUserPause=false;this.play();break;case 5:this.bUserPause=false;this.play();break;}};this.toggleUserPause=function(){switch(this.p.playState){case 1:this.play();break;case 2:if(this.bUserPause){this.bUserPause=false;this.play();}break;case 3:this.bUserPause=true;this.pause();break;case 4:this.bUserPause=false;this.play();break;case 5:this.bUserPause=false;this.play();break;}};this.toggleMute=function(){this.bMute=!this.bMute;this.p.settings.mute=this.bMute;this.debuglog("MUTE: "+this.bMute);this.debugprint("Mute",this.p.settings.mute);};this.mute=function(e){this.bMute=e;this.p.settings.mute=this.bMute;this.debuglog("MUTE: "+this.bMute);this.debugprint("Mute",this.p.settings.mute);};this.volume=function(e){this.debugprint("Volume",e);this.debuglog("VOLUME: "+e);this.p.settings.volume=e;this.currentVolume=e;if(this.panel){this.panel.userVolume(e);}};this.volumeUpDown=function(e){var f=this.p.settings.volume+e;f=f>100?100:f;f=f<0?0:f;this.volume(f);};this.toggleFastForward=function(){if(this.bFastForward){this.play();}else{this.bFastForward=true;this.p.controls.fastForward();if(this.panel){this.panel.guiPause(true);}}};this.toggleFastReverse=function(){if(this.bFastReverse){this.play();}else{this.bFastReverse=true;this.p.controls.fastReverse();if(this.panel){this.panel.guiPause(true);}}};this.setFullScreen=function(e){this.p.fullScreen=e;};this.mediaChange=function(){this.debuglog("...mediaChange");this.playlistCounter+=1;if(this.playlistCounter>=this.p.currentPlaylist.count){this.stopEvent(true);}else{this.userMediaChange(this.playlistCounter);}};this.userMediaChange=function(){};this.createPlaylist=function(f,e){return this.p.newPlaylist(f,e);};this.addToPlayList=function(e,g,h){this.debuglog("...adding "+e+" to playlist!");var f=this.p.newMedia(e);if(!!h){h.appendItem(f);}else{this.p.currentPlaylist.appendItem(f);}return f;};this.startPlaylist=function(e){this.debuglog("...startPlaylistItem");this.playlistCounter=0;this.onReady=function(){this.play();this.onReady=function(){};};if(!!e){this.p.currentPlaylist=e;}else{this.p.controls.playItem(this.p.currentPlaylist.item(0));}this.volume(this.initVolume);};this.nextPlaylistItem=function(e){this.debuglog("...nextPlaylistItem");if(this.playlistCounter<this.customPlaylist.length-1){this.playlistCounter+=1;}else{if(this.loopPlaylist){this.playlistCounter=0;}else{this.debuglog("End of Playlist!");this.stop();return;}}this.p.controls.next();this.userMediaChange(this.playlistCounter,e);};this.previousPlaylistItem=function(e){this.debuglog("...previousPlaylistItem");if(this.playlistCounter>0){this.playlistCounter-=1;}else{if(this.loopPlaylist){this.playlistCounter=this.customPlaylist.length-1;}else{this.debuglog("End of Playlist!");this.stop();return;}}this.p.controls.previous();this.userMediaChange(this.playlistCounter,e);};this.URL=function(e){this.playlistCounter=0;this.debugprint("URL",e);this.debuglog("URL: "+e);if(mecoVariables.VIDEO_RES=="half"){this.debugprint(this.globalStatus,"Video: reduziert");}this.p.URL=e;this.play();window.setTimeout(this.play.bind(this),3000);this.volume(this.initVolume);this.p.stretchToFit=true;};this.setLoop=function(e){this.p.settings.setMode("loop",e);};this.toggleVideoRes=function(){if(mecoVariables.VIDEO_RES=="full"){this.fallback();}else{this.fallforward();}};this.switchLanguage=function(e){this.debuglog("...setting Language "+e);if(this.selLanguage!=e){this.selLanguage=e;t=this.userSwitchLanguage(this.playlistCounter);if(t){this.debuglog("swtiching audio channel "+e);if(this.p.controls.audioLanguageCount>1){switch(e){case"en":this.p.controls.currentAudioLanguageIndex=2;break;case"de":this.p.controls.currentAudioLanguageIndex=1;break;default:break;}}}}};this.userSwitchLanguage=function(){return true;};this.crossTitle=function(e){this.fallbackTime=this.evaluateTC();this.debuglog("crossing Title @ "+this.fallbackTime+"...");if(this.p.currentPlaylist.count>1){var g=this.p.currentMedia;var f=this.p.newMedia(e);this.p.currentPlaylist.insertItem(this.playlistCounter+1,f);this.nextPlaylistItem();this.p.currentPlaylist.removeItem(g);this.playlistCounter-=1;}else{this.URL(e);}};this.fallforward=function(){this.debugprint(this.globalStatus,"Video: voll");this.fallbackTime=this.evaluateTC();this.debuglog("fallforward @ "+this.fallbackTime+"...");meco.execScript("videoFallforward",false,null);mecoVariables.VIDEO_RES="full";this.URL(this.p.URL.replace(/half/,"full"));};this.fallback=function(){this.debugprint(this.globalStatus,"Video: reduziert");this.fallbackTime=this.evaluateTC();this.debuglog("fallback @ "+this.fallbackTime+"...");meco.execScript("videoFallback",false,null);mecoVariables.VIDEO_RES="half";this.URL(this.p.URL.replace(/full/,"half"));};this.checkDrops=function(e){this.dropsPerMinute[e]=this.framesSkipped-this.dropsPerMinute[0];this.debuglog("checkdrops: "+e+" - "+this.dropsPerMinute[e]);this.dropsPerMinute[0]=this.framesSkipped;if((e==1&&this.dropsPerMinute[1]>100)||(e==3&&this.dropsPerMinute[1]>this.dropLimit&&this.dropsPerMinute[2]>this.dropLimit&&this.dropsPerMinute[3]>this.dropLimit)){this.pause();if(confirm("Es wurde festgestellt, dass das Video nicht fl�ssig abgespielt werden kann!\n\nSie k�nnen die Gr��e des Videos reduzieren, um das Abspielen zu verbessern!\n\nSoll das Video jetzt reduziert werden?")){this.fallback();}}};this.evaluateTC=function(){var f=this.p.controls.currentPositionString.split(":");if(f.length==2){var i=(f[0]-(f[0]%60))/60;var e=f[0]-i*60;var g=f[1];}else{var i=f[0];var e=f[1];var g=f[2];}var j=makeTC(i,e,g);this.timeElapsed=this.p.controls.currentPositionString;if(this.panel){this.panel.setTimeElapsed(this.timeElapsed);}return j;};this.getTC=function(){var e=this.evaluateTC();if(!!this.timeLine){this.timeLine.checkEvent(e);}if(this.p.playState>2&&this.p.playState<6){this.playerInterval=window.setTimeout(this.getTC.bind(this),this.intervalTime);}if(this.bMP11Bugfix&&!!this.MP11BugfixTime){this.debuglog("getTC: "+this.MP11BugfixTime+" - "+e);if(e>=this.MP11BugfixTime){this.debuglog("----display!");$fx("waitVideo").setDisplay(false);this.mute(false);$fx(this.p).setDisplay(true);this.MP11BugfixTime=null;}}};this.fixMP11Bug=function(f,e){this.debuglog("----setTC: "+this.bMP11Bugfix);if(this.bMP11Bugfix){this.debuglog("------hide!");this.mute(true);$fx(this.p).setDisplay(false);$fx("waitVideo").setDisplay(true);this.MP11BugfixTime=shiftTC(f,e);e-=1;}else{this.MP11BugfixTime=null;}return(e);};this.setTC=function(h,f){f=f?f:0;this.debuglog("setTC: "+h+"...");this.fallbackTime=null;f=this.fixMP11Bug(h,f);if(this.playerInterval){window.clearTimeout(this.playerInterval);}this.p.controls.pause();var e=h.split(":");var g=parseFloat(e[0])*3600+parseFloat(e[1])*60+parseFloat(e[2])+f;this.debuglog("... going to "+g);this.bTCJump=true;if(!!this.timLine){this.timeLine.bTCJump=true;}this.p.controls.currentPosition=g;this.bUserPause=false;this.play();};this.jumpTCDiff=function(e){e=this.fixMP11Bug(this.evaluateTC(),e);this.debuglog("jumpTCDiff: "+e);this.p.controls.currentPosition=Math.floor(this.p.controls.currentPosition)+e;this.bUserPause=false;this.play();};this.statusChange=function(){if(this.p&&this.p.status){this.debugprint("status",this.p.status);this.debuglog(this.p.status);if(this.p.playstate==7&&this.p.status.substr(0,26)=="Verbindung zu Codec-Server"){alert("Codec fehlt!");}if(this.p.playstate==7&&p.status=="Codec wird gedownloadet: 100% abgeschlossen"){alert("Codec kann installiert werden!");}}};this.errorHandler=function(){try{if(this.p&&this.p.error){var g=this.p.error.errorCount;var k;var f;var j;var m="";var h=0;while(h<g){k=this.p.error.item(h);f=k.errorCode;j=k.errorDescription;m+="Fehler ("+f+"):<br/>"+j+"<br/><br/>";h++;}try{m+="Datei: "+this.p.URL+"<br/>";}catch(l){}this.debugprint("error",m);if(typeof(this.mainDebugElement.adjustDisplay)=="function"){this.mainDebugElement.adjustDisplay(true);this.mainDebugElement.switchSubElement(this.debugElement.id);debdetails(this.debugElement,1);}else{this.debuglog("Fehler im Windows-MediaPlayer: "+m);alert("Fehler im Windows-MediaPlayer: "+m.replace(/<br\/>/g,"\n"));}window.clearInterval(this.networkInterval);this.stopEvent();}}catch(l){this.debuglog("Nicht behandelbarer Fehler in WMPLayer.errorHandler: "+l.description);alert("Nicht behandelbarer Fehler in WMPLayer.errorHandler: "+l.description);}};this.stopEvent=function(){};this.onReady=function(){};this.startPlaying=function(){};this.delayedSetStretchToFit=function(){this.p.stretchToFit=this.stretchToFit;};this.playStateChange=function(f){if(this.p&&this.p.playState){this.debugprint("playstate",this.p.playState);this.playState=this.p.playState;this.playStateCode=this.playState;}this.debuglog("Playstate: "+f);if(!this.networkInterval){this.networkInterval=window.setInterval(this.network.bind(this),1000);}if(this.seekInterval){window.clearTimeout(this.seekInterval);}this.bBuffering=false;switch(f){case 1:if(this.playerInterval){window.clearTimeout(this.playerInterval);}if(this.networkInterval){window.clearInterval(this.networkInterval);}this.stopEvent(true);if(this.p.fullScreen){this.p.fullScreen=false;}break;case 2:if(this.panel){this.panel.guiPause(true);}window.clearTimeout(this.playerInterval);break;case 3:if(this.panel){this.panel.guiPause(false);}if(!!this.playFromTC){var e=this.playFromTC;this.playFromTC=null;this.storedTC=[e];this.setTC(e);}this.startPlaying();if(!!this.timeLine){this.timeLine.bTCJump=this.bTCJump;}this.bTCJump=false;this.currentPlayListItem=this.p.currentMedia;window.setTimeout(this.delayedAudioSwitch.bind(this),100);window.setTimeout(this.delayedSetStretchToFit.bind(this),2000);if(this.playerInterval){window.clearTimeout(this.playerInterval);}this.intervalTime=this.pTime;this.playerInterval=window.setTimeout(this.getTC.bind(this),this.pTime);if(this.fallbackTime){this.setTC(this.fallbackTime);}this.timeTotal=this.p.currentMedia.durationString;if(this.panel){this.panel.setTimeTotal(this.timeTotal);}break;case 6:this.bBuffering=true;if(this.playerInterval){window.clearTimeout(this.playerInterval);}break;case 7:this.bBuffering=true;break;case 8:if(this.playerInterval){window.clearTimeout(this.playerInterval);}if(!this.p.settings.getMode("loop")){this.mediaChange();}break;case 9:this.bBuffering=true;break;case 10:this.onReady();break;case 11:break;}if(this.panel){this.panel.showBuffering(0);}this.OldState=f;};this.delayedAudioSwitch=function(){try{if(this.p.controls.audioLanguageCount>1&&this.selLanguage=="en"){this.p.controls.currentAudioLanguageIndex=2;}else{this.p.controls.currentAudioLanguageIndex=1;}}catch(f){this.debuglog("XXX Error: delayedAudioSwitch failed!!");}};this.debuglog=function(f){var e=this.debugElement.getElementById("debuglog");if(this.p&&this.p.controls){f=this.p.controls.currentPositionString+" "+f;}e.innerHTML=f+"<br/>"+e.innerHTML;};this.debugprint=function(f,g){var e=f;if(typeof(f)=="string"&&!!this.debugElement){f=this.debugElement.getElementById(f);}if(f&&typeof(f)=="object"){f.innerHTML=g;}else{window.status=">>"+e+"/"+g;}};this.network=function(){if(this.p&&this.p.network){var k=this.p.network;var h=this.p;var j="";var i=new Date();j=i;try{if(this.bBuffering){if(this.panel){this.panel.showBuffering(k.bufferingProgress);}}}catch(g){}this.debugprint("networkdetails",j);this.debugprint("framesSkipped",this.p.network.framesSkipped);this.debugprint("downloadProgress",this.p.network.downloadProgress);if(k.bufferingProgress<100){this.debugprint("buffering",k.bufferingProgress+"%");}else{this.debugprint("buffering","");}if(this.p&&this.p.currentMedia&&this.p.currentMedia.error){var f=this.p.currentMedia.error;errNum=f.errorCode;errDesc=f.errorDescription;j="Fehler ("+errNum+"):<br/>"+errDesc+"<br/><br/>";this.debugprint("mediaError",j);if(typeof(this.mainDebugElement.adjustDisplay)=="function"){this.mainDebugElement.adjustDisplay(true);this.mainDebugElement.switchSubElement(this.debugElement.id);debdetails(this.debugElement,2);}else{this.debuglog("Fehler im Windows-MediaPlayer: "+errDesc);alert("Fehler im Windows-MediaPlayer: "+errDesc);}window.clearInterval(this.networkInterval);}}};this.makePlayer=function(e,i){this.name=i;var f='<OBJECT width="100%" height="100%" ID="'+i+'"    CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" STANDBY="Loading Microsoft� Windows MediaPlayer components..."  TYPE="application/x-oleobject">';f+='<PARAM NAME="URL" VALUE="">';var h=typeof(this.bAutostart)!="undefined"?this.bAutostart:(typeof(customer.playerAutostart)!=undefined?customer.playerAutostart:"false");f+='<PARAM NAME="AutoStart" VALUE="'+h+'">';f+='<PARAM NAME="ShowDisplay" VALUE="false">';f+='<PARAM NAME="ShowStatusBar" VALUE="false">';if(this.windowlessVideo){f+='<param name="windowlessVideo" value="true">';}if(!this.uiMode){f+='<param name="uiMode" value="none">';}f+="</object>";if(e.indexOf("/")==-1){oTarget=$(e);}else{var g=e.split("/");oTarget=$(g[0]).getElementById(g[1]);}this.container=oTarget.parentNode;oTarget.parentNode.innerHTML=f;this.p=document.getElementById(i);this.debugprint("Version",this.p.versionInfo);createEventListener(this.p,"error",this.errorHandler.bind(this));createEventListener(this.p,"statusChange",this.statusChange.bind(this));createEventListener(this.p,"playStateChange",this.playStateChange.bind(this));};this.destroy=function(){window.clearTimeout(this.playerInterval);this.debuglog("destroying "+this.playerName);if(this.playStateCode!=1){this.debuglog("setting stop event");ePlayerList[this.playerName].stopEvent=function(){this.container.removeChild(this.p);debuglog(this.playerName+" destroyed!");ePlayerList[this.playerName]=null;};this.stop();}else{this.container.removeChild(this.p);debuglog(this.playerName+" destroyed!");ePlayerList[this.playerName]=null;}};};playerTypes.FlashPlayer=function(c,a,b,d){this.name="";this.type="FlashPlayer";this.version="1.02.0001";this.ready=false;this.playerName=c;this.windowlessVideo=false;this.uiMode=false;this.timePosition="0";this.duration="0";extendPlayerVars(this);this.debugElement=a.newSubElement("debugMPlayer",d);this.timeLine=null;this.play=function(){if(!this.bUserPause){if(this.playState=="IDLE"&&this.oldPlayState=="PAUSED"){this.fallbackTime=this.currTC;}this.p.sendEvent("PLAY",true);}};this.pause=function(){if(this.playState=="PLAYING"){this.p.sendEvent("PLAY",false);this.pausePosition=this.timePosition;}};this.stop=function(){this.bUserPause=false;if(this.playStateCode!=1&&this.p&&!!this.p.sendEvent){this.p.sendEvent("STOP",true);}};this.togglePause=function(){switch(this.playState){case"PAUSED":if(!this.bUserPause){this.play();}break;case"PLAYING":this.pause();break;case"IDLE":this.play();break;}};this.toggleUserPause=function(){switch(this.playState){case"IDLE":case"COMPLETED":case 0:this.play();break;case"PAUSED":if(this.bUserPause){this.bUserPause=false;this.play();}break;case"PLAYING":this.bUserPause=true;this.pause();break;case"IDLE":this.play();break;}};this.toggleMute=function(){this.bMute=!this.bMute;this.p.sendEvent("MUTE",this.bMute);this.debugprint("Mute",this.bMute);};this.mute=function(e){this.bMute=e;this.p.sendEvent("MUTE",this.bMute);this.debugprint("Mute",this.bMute);};this.volume=function(e){this.currentVolume=e;this.debugprint("Volume",e);this.p.sendEvent("VOLUME",e);if(this.panel){this.panel.userVolume(e);}};this.volumeUpDown=function(e){var f=this.currentVolume+e;f=f>100?100:f;f=f<0?0:f;this.volume(f);};this.toggleFastForward=function(){this.debuglog("econtioPlayer.toggleFastForward: not supported");};this.toggleFastReverse=function(){this.debuglog("econtioPlayer.toggleFastForward: not supported");};this.URL=function(e){if(this.currentURL!=e||(this.currentURL==e&&this.playStateCode!=3)){this.stop();this.debugprint("URL",e);this.debuglog("setURL: "+e);this.onReady=function(){this.play();this.volume(this.initVolume);};this.currentURL=e;this.p.sendEvent("LOAD",e);this.autoStart();}else{if(this.currentURL==e&&!!this.playFromTC){this.setTC(this.playFromTC);}}};this.autoStart=function(){if(this.bAutostart){this.play();}};this.onReady=function(){this.autoStart();};this.toggleVideoRes=function(){if(mecoVariables.VIDEO_RES=="full"){this.fallback();}else{this.fallforward();}};this.fallforward=function(){this.debugprint(this.globalStatus,"Video: voll");this.fallbackTime=this.evaluateTC();this.debuglog("fallforward @ "+this.fallbackTime+"...");meco.execScript("videoFallforward",false,null);mecoVariables.VIDEO_RES="full";this.URL(this.p.URL.replace(/half/,"full"));};this.fallback=function(){this.debugprint(this.globalStatus,"Video: reduziert");this.fallbackTime=this.evaluateTC();this.debuglog("fallback @ "+this.fallbackTime+"...");meco.execScript("videoFallback",false,null);mecoVariables.VIDEO_RES="half";this.URL(this.p.URL.replace(/full/,"half"));};this.checkDrops=function(e){};this.evaluateTC=function(n){if(typeof(n)=="undefined"){var k=""+this.timePosition;}else{var k=""+n;}var g=k.split(".");var j=Math.floor(g[0]/3600);var e=Math.floor((g[0]-(j*3600))/60);var i=g[0]-j*3600-e*60;var l=Math.round(24*g[1]/10);k=makeTC(j,e,i,l);if(this.playState=="PLAYING"){this.timeElapsed=k.substr(3,5);if(this.panel){this.panel.setTimeElapsed(this.timeElapsed);}}return k;};this.getTC=function(){var e=this.evaluateTC();if(this.playState=="PLAYING"){this.currTC=e;if(!!this.timeLine){this.timeLine.checkEvent(e);}}this.playerInterval=window.setTimeout(this.getTC.bind(this),this.intervalTime);};this.setTC=function(h,f){this.debuglog("setTC: "+h+"...");this.fallbackTime=null;f=f?f:0;if(this.playerInterval){window.clearTimeout(this.playerInterval);}this.p.sendEvent("PLAY",false);var e=h.split(":");var g=parseFloat(e[0])*3600+parseFloat(e[1])*60+parseFloat(e[2])+f;this.debuglog("... going to "+g);this.bTCJump=true;if(!!this.timeLine){this.timeLine.bTCJump=true;this.timeLine.TCJumpTo=h;}this.p.sendEvent("SEEK",g);this.bUserPause=false;};this.jumpTCDiff=function(e){this.debuglog("jumpTCDiff: "+e);var f=Math.round(this.timePosition)+e;this.p.sendEvent("SEEK",f);this.bUserPause=false;this.play();};this.stopEvent=function(){};this.startEvent=function(){};this.startPlaying=function(){};this.stopPlaying=function(){};this.cancelEvent=function(){};this.setDuration=function(){this.timeTotal=this.evaluateTC(this.duration).substr(3,5);if(this.panel){this.panel.setTimeTotal(this.timeTotal);}};this.playStateChange=function(f){this.debugprint("playstate",f);this.oldPlayState=this.playState;this.playState=f;this.debuglog("FlashPlayer "+this.playerName+": "+this.oldPlayState+" -> "+f+" @"+this.currTC);this.bBuffering=false;switch(f){case"COMPLETED":this.playStateCode=1;if(this.playerInterval){window.clearTimeout(this.playerInterval);}if(this.panel){this.panel.guiPause(true);}if(this.timeLine){this.timeLine.init();}this.stopPlaying();this.stopEvent(true);this.bHasBeenStarted=false;break;case"IDLE":this.playStateCode=1;this.cancelEvent(true);if(this.panel){this.panel.guiPause(true);}break;case"PAUSED":if(this.panel){this.panel.guiPause(true);}this.playStateCode=2;window.clearTimeout(this.playerInterval);break;case"PLAYING":if(this.panel){this.panel.guiPause(false);}if(!!this.playFromTC){var e=this.playFromTC;this.playFromTC=null;this.storedTC=[e];this.setTC(e);}if(!this.bHasBeenStarted){this.bHasBeenStarted=true;this.startEvent();}this.playStateCode=3;if(!!this.currTC&&!this.bTCJump&&this.oldPlayState=="IDLE"){this.debuglog("XXXXX PlaystateChange: isn't this obsolete?");this.fallbackTime=this.currTC;this.currTC=null;}this.bTCJump=false;if(this.playerInterval){window.clearTimeout(this.playerInterval);}this.intervalTime=this.pTime;this.playerInterval=window.setTimeout(this.getTC.bind(this),this.pTime);if(this.fallbackTime){if(!!this.timeLine){this.timeLine.bSkipEvent=true;this.timeLine.bTCJump=true;}this.bTCJump=true;this.setTC(this.fallbackTime);}break;case"BUFFERING":this.playStateCode=6;this.bBuffering=true;break;default:}this.OldState=f;if(this.panel){this.panel.showBuffering(0);}};this.debuglog=function(f){var e=this.debugElement.getElementById("debuglog");if(this.p&&this.p.controls){f=this.p.controls.currentPositionString+" "+f;}e.innerHTML=f+"<br/>"+e.innerHTML;};this.debugprint=function(f,g){var e=f;if(typeof(f)=="string"&&this.debugElement){f=this.debugElement.getElementById(f);}if(f&&typeof(f)=="object"){f.innerHTML=g;}};this.makePlayer=function(f,m,o,e,r){this.ready=false;this.currentURL=r;this.name=m;var g={};var j={};var k={};var h={};g.volume="100";g.fullscreen=true;if(!this.uiMode){g.controlbar="none";}g.abouttext="econtio";g.aboutlink="http://www.econtio.de";g.target="_blank";if(!!o){var n=o.split("|");for(var l=0;l<n.length;l++){var q=n[l].split("~");g[q[0]]=q[1];}}if(!g.autostart){g.autostart=typeof(this.bAutostart)!="undefined"?this.bAutostart:(typeof(customer.playerAutostart)!="undefined"?customer.playerAutostart:"false");}if(!g.displayclick){g.displayclick="false";}if(!!e){var n=e.split("|");for(var l=0;l<n.length;l++){var q=n[l].split("~");j[q[0]]=q[1];}}j.allowscriptaccess="always";if(this.windowlessVideo){j.wmode="opaque";}k.name=m;k.id=m;oTarget=$(f);this.container=oTarget.parentNode;swfobject.embedSWF("player/"+(!!customer.flashVideoPlayer?customer.flashVideoPlayer:"jwplayer45econtio.swf"),oTarget,"100%","100%","9.0.0",false,g,j,k);};this.destroy=function(){window.clearTimeout(this.playerInterval);this.debuglog("destroying "+this.playerName);if(this.playStateCode!=1){this.debuglog("setting stop event");ePlayerList[this.playerName].stopEvent=function(){swfobject.removeSWF(this.playerName);debuglog(this.playerName+" destroyed!");ePlayerList[this.playerName]=null;};this.stop();}else{swfobject.removeSWF(this.playerName);debuglog(this.playerName+" destroyed!");ePlayerList[this.playerName]=null;}};};function playerReady(c){var d=c.id;var b=document.getElementsByName(c.id)[0];var a=ePlayerList[c.id];a.p=b;b.addModelListener("STATE","stateMonitor");b.addModelListener("TIME","timeMonitor");b.addModelListener("ERROR","errorHanlder");this.ready=true;a.onReady();}function timeMonitor(b){var a=ePlayerList[b.id];a.timePosition=b.position;if(a.duration=="0"){a.duration=b.duration;a.setDuration();}}function stateMonitor(c){var b=c.newstate;var a=ePlayerList[c.id];a.playStateChange(b);}function errorHandler(a){alert("error: "+a.error);}function metaHandler(c,b,a,d){console.dir(c);}
var thisTraining=new Object();var econtioTraining=new Object();econtioTraining.unitStack=new Array();econtioTraining.initTraining=function(){var a=$("c_unit_"+idUnit);a=!a?$("c_page_"+idUnit):a;if(!!a){aE=a.getElementsByClassName("timelineClassic");for(i=0;i<aE.length;i++){thisTraining[idUnit]=new econtioTraining[aE[i].className](aE[i]);thisTraining[idUnit].init();}}if(!!customer.initTraining){customer.initTraining();}};econtioTraining.sendCommandToAllPlayers=function(f,g,a,c){c=idUnit;debuglog("sendCommandToAllPlayers: "+f+"("+g+")"+(a?"/remove":"")+"{");var b="//player[ancestor::lesson[@id= '"+idLesson+"']]";aSelection=cms.oAjax[c].selectNodes(b);for(var d=0;d<aSelection.length;d++){var e=aSelection[d].getAttribute("id")+"_"+idLesson;debuglog(e);if(!!ePlayerList[e]&&!!ePlayerList[e].p){if(a){debuglog("removing "+e+"...");ePlayerList[e].destroy();delete ePlayerList[e];}else{ePlayerList[e].sendPlayerCommand(f,g);}}else{debuglog(e+" does not exist!");}debuglog("}");}};econtioTraining.sendPlayerCommand=function(a,b,c){debuglog("sendPlayerCommand: "+a+", "+b);for(pl in ePlayerList){if(pl!=a&&!!ePlayerList[pl]&&ePlayerList[pl].playStateCode==3&&b=="SETTC"){ePlayerList[pl].pause();}}if(!!ePlayerList[a]){ePlayerList[a].sendPlayerCommand(b,c);}};econtioTraining.timelineJump=function(a,b,c){this.sendCommandToAllPlayers("PAUSE","",false);this.sendPlayerCommand(a,b,c);this.renderContent("","_overlayVideo","","off");};econtioTraining.enableOverlayVideoElement=function(c,b){var a=$("c_page_"+idUnit).getElementById("c_overlayVideo");if(!!a){if(!c||b=="off"){$fx(a).setDisplay(false);return;}else{var d=$fx("playerContainer_"+b+"_"+idLesson);$fx(a).move(Coordinates.northwestOffset(d,true));a.setDisplay(true);a.setSize(d.offsetWidth,d.offsetHeight);}}return a;};econtioTraining.renderContent=function(c,f,d,e,b,a,h){f="c"+f;if(f=="c_overlayVideo"){f=econtioTraining.enableOverlayVideoElement(e!="off");if(!f){return false;}}else{f=$("c_page_"+idUnit).getElementById(f);}if(c!="self"){debuglog("rendering "+c+" to "+f);var g=new rbmAjax(d.substr(0,3)=="xml");g.target=f;g.done=function(){rbmWindow3.init(this.target);};g.getXML(c,null,true);}else{cms.oAjax[b].target=f;h=econtioTraining.fillinXPathPlaceholders(h);cms.oAjax[b].query(h,a);}};econtioTraining.fillinXPathPlaceholders=function(a){a=a.replace(/%idLesson%/g,""+idLesson);return a;};econtioTraining.removeLessonHTML=function(a){p=$("c_unit_"+a);if(!!p&&!!p.onEnd){p.onEnd();}rbmXML.clearTarget(p.parentNode,true);};econtioTraining.gotoLevel=function(c,b){rnd="_"+(""+Math.random()).substr(3,6);cms.history.pushHistory(b+rnd,econtioTraining.gotoLevel.bind(econtioTraining,idLesson,b));cms.history.pushHistory(b+rnd,econtioTraining.gotoLevel.bind(econtioTraining,c,b));b=!b?"framework":b;debuglog("gotoLevel "+c);this.renderContent("","_overlayVideo","","off");this.sendCommandToAllPlayers("STOP","",true,b);var a="//lesson[@id = '"+idLesson+"']";aSelection=cms.oAjax[b].selectNodes(a);if(aSelection.length==0){alert("gotoLevel: current Lesson not found: //lesson[@id = '"+idLesson+"']");return;}aSelection[0].setAttribute("selected","0");var a="//lesson[@id = '"+c+"']";aSelection=cms.oAjax[b].selectNodes(a);if(aSelection.length==0){alert("gotoLevel: target Lesson not found: //lesson[@id = '"+c+"']");return false;}aSelection[0].setAttribute("selected","1");var d=$("c_unit_"+idUnit);if(!d){d=$("c_page_"+idUnit);}cms.oAjax[b].renderToDoc(d,false);cms.oAjax.framework.onRenderingCompleted(null,true);cms.history.setHistory(0,"l=1&a=2&at=2&ac=21&c="+idUnit.substr(idUnit.indexOf("_")+1)+"&ct="+aSelection[0].getAttribute("IDObjectType"));};econtioTraining.addUnit=function(a,c,d,f,b,e){cms.createAjax(a,c_Customer+"/xsl/lesson.xsl");rnd="_"+(""+Math.random()).substr(3,6);cms.history.pushHistory(a+rnd,customer.selectMenu.bind(customer,"closeMenu","close"));cms.history.pushHistory(a+rnd,econtioTraining.addUnit.bind(econtioTraining,a,c,d,f,b,e));e=!e?"":e;f=!f?0:f;b=!b?0:b;customer.handleSmallScreen();d=!d?"mainWrapper":d;debuglog("addLesson "+a);this.sendCommandToAllPlayers("PAUSE","",false);cms.oAjax[a].render=false;cms.oAjax[a].target=d;cms.oAjax[a].bappend=true;cms.oAjax[a].done=function(){var h="//lesson[@id = '"+idLesson+"']";var k=cms.oAjax.framework.selectNodes(h);if(k.length==0){alert("gotoLevel: current Lesson not found: //lesson[@id = '"+idLesson+"']");return;}var g=k[0];k[0].setAttribute("selected","0");k=this.selectNodes("//unit");if(k.length==0){alert("addUnit: Unit source not found: //unit");return false;}var l=k[0];l.setAttribute("init","1");l.setAttribute("bodyY",rbmWindow.bodyDimensions.y);k=this.selectNodes("//lesson[1]");if(k.length==0){alert("addLesson: Lesson source not found: //lesson");return false;}k[0].setAttribute("selected","1");k=this.selectNodes("//data");if(k.length==0){alert("addLesson: data element not found");return false;}var m=k[0].cloneNode(true);g.appendChild(m);this.oXML=cms.oAjax.framework.oXML;this.renderToDoc();cms.oAjax.framework.onRenderingCompleted(null,true);customer.adjustFullscreen();if(this.setHistory){alert("setHistory is true!!");cms.history.setHistory();this.setHistory=false;}var j=0;k=this.selectNodes("//configure");if(k.length!=0){j=k[0].getAttribute("IDObjectType");}cms.userLog.add("l=1&a=2&at=1&ac=21&c="+f+"&ct="+j);};cms.oAjax[a].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Show+"&id="+f+"&page="+a+"&user="+strUser+(!e?"":"&"+e)+(!b?"":"&did="+b),null,true);};econtioTraining.scrollUnit=function(a,b){b=(!b||b==0)?1200:b;var c=$("c_unit_"+a);if(!!c){c.fx=new rbmFX.shiftV(c,-1,b,2,null,null,-b);c.fx.onEnd=function(){if(!cms.oAjax[a]){cms.oAjax[a]=cms.oAjax.p_DemoLesson;}var d="//unit[@init = 1]";aSelection=cms.oAjax[a].selectNodes(d);if(aSelection.length==0){alert("shiftUnit: unit init reset failed");return false;}aSelection[0].setAttribute("init","0");};c.fx.go(1);}};econtioTraining.popUnit=function(){if(econtioTraining.unitStack.length>0){cms.userLog.add("l=1&a=2&at=0&ac=21&c="+idUnit.substr(idUnit.indexOf("_")+1)+"&ct=0");var a=econtioTraining.unitStack.pop();idUnit=a[0];idLesson=a[1];lessonPath=a[2];if(typeof(a[3])=="function"){a[3]();}}};econtioTraining.returnFromSubUnit=function(){debuglog("returning from sublesson "+idLesson);this.sendCommandToAllPlayers("STOP","",true);if(this.unitStack.length>0){p=$("c_unit_"+idUnit);if(!!p){p.idUnit=idUnit;econtioTraining.popUnit();p.fx.onEnd=function(){econtioTraining.removeLessonHTML(this.parent.idUnit);aNodes=cms.oAjax.framework.selectNodes("//data[@dataType='"+this.parent.idUnit+"']");if(aNodes.length>0){aNodes[0].parentNode.removeChild(aNodes[0]);}else{alert("returnFromSubUnit: unable to remove XML for unit "+this.parent.idUnit);}};p.fx.start=0;p.fx.go(-1);}}else{alert("returnFromSubLesson: End of Training!");}};function restartPractice(){if(!!customer.practice&&!!cms.oAjax.f_Object){cms.oAjax.f_Object.rebuildClone("//framework","dummy","c_page_f_Object_"+customer.practice.idObject,"//data","//rbmWindow");}}econtioPractice=function(a,b){this.idObject=a;this.totalPoints=b;this.questionCollection=new Object();this.getPoints=function(){var c=0;for(q in this.questionCollection){c+=this.questionCollection[q].resultPoints;}return c;};this.transferResult=function(e,c,d,f){customer.transferResult(this.idObject,this.getPoints(),this.totalPoints,e,c,d,f);};};questionType=new Object();answerType=new Object();questionType.multipleChoice=function(b,d,c,a){this.questionType="multipleChoice";this.totalPoints=parseInt(b);this.resultPoints=0;this.bAllowNegativePoints=(a==1)?true:false;this.bDone=false;this.maxAnswers=parseInt(d);this.answerCounter=0;this.answerCollection=[];this.bAutoComplete=!!c;this.bSolve=true;this.calcPoints=function(e){this.resultPoints+=e;};this.limitPoints=function(){var e=this.resultPoints;if(e>this.totalPoints){e=this.totalPoints;}if(e<0&&!this.bAllowNegativePoints){e=0;}this.resultPoints=e;};this.checkAnswer=function(e){this.bDone=true;for(var f=0;f<this.answerCollection.length;f++){this.calcPoints(this.answerCollection[f].getPoints(this));this.displayResult($("MCAnswer"+e+"_"+f),f,e);}this.limitPoints();$fx("practiceSolve"+e).setDisplay(false);$fx("practiceNext"+e).setDisplay(true);};this.displayResult=function(f,g,e){if(this.bSolve){iconSRC=f.style.backgroundImage;f.style.backgroundImage=iconSRC.replace(/answerX/g,"answer"+(this.answerCollection[g].checkAnswer()?0:1));}};this.setAnswer=function(g,h,e,f){if(!this.bDone){this.answerCounter++;this.answerCollection[h].isAnswer=!this.answerCollection[h].isAnswer;if(this.answerCollection[h].isAnswer){$fx(g).addClass("MCAnswerSelected");}else{$fx(g).removeClass("MCAnswerSelected");}if(this.maxAnswers==this.answerCounter&&this.bAutoComplete){this.checkAnswer(f);}}};this.onQuestionResult=function(e){};};answerType.multipleChoice=function(c,b,a){this.answerType="multipleChoice";this.nr=c;this.points=parseInt(b);this.aValues=a;this.isAnswer=false;this.checkAnswer=function(d){return(this.aValues[0]==1);};this.getPoints=function(d){return(this.isAnswer)?this.points:0;};};questionType.gaps=function(b,d,c,a){this.element=null;this.questionType="multipleChoice";this.totalPoints=parseInt(b);this.resultPoints=0;this.bAllowNegativePoints=(a==1)?true:false;this.bDone=false;this.maxAnswers=parseInt(d);this.answerCounter=0;this.answerCollection=[];this.bAutoComplete=!!c;this.bSolve=false;this.bAltGr=false;this.bShift=false;this.specialKeys=new Object();this.calcPoints=function(e){this.resultPoints+=e;};this.limitPoints=function(){var e=this.resultPoints;if(e>this.totalPoints){e=this.totalPoints;}if(e<0&&!this.bAllowNegativePoints){e=0;}this.resultPoints=e;};this.checkAnswer=function(g,e){e=!!e;var f=true;for(var j=0;j<this.answerCollection.length;j++){if(e){var h=$("GapsAnswer"+g+"_"+j);this.setAnswer(h,j,h.getElementsByTagName("input")[0].value,g,true,e);}this.calcPoints(this.answerCollection[j].getPoints(this));f=f&&this.answerCollection[j].bDone;}this.limitPoints();this.bDone=f;if(this.bDone){$fx("practiceSolve"+g).setDisplay(false);}$fx("practiceNext"+g).setDisplay(true);};this.displayResult=function(g,h,f,e){if(this.bSolve){this.element=g;var j=e?0:1;g.style.backgroundImage=g.style.backgroundImage.replace(/answerX/g,"answer"+j);g.style.backgroundImage=g.style.backgroundImage.replace(/answer1/g,"answer"+j);}};this.setAnswer=function(j,k,g,h,l,f){this.element=j;g=g.trim();if(!this.bDone&&!this.answerCollection[k].bDone&&(g.length>0||l)){inputElement=j.getElementsByTagName("input")[0];var e;if((e=this.answerCollection[k].checkAnswer(this,g,f))||this.answerCollection[k].bDone){this.answerCounter++;inputElement.disabled="disabled";$fx(j.getElementsByTagName("img")[0]).show(false);}this.displayResult(j,k,h,e);if(this.maxAnswers==this.answerCounter&&this.bAutoComplete){this.checkAnswer(h);}}};this.keyUp=function(h,f,g){var e=h.keyCode;switch(e){case 16:this.bShift=false;break;case 17:this.bAltGr=false;break;default:break;}return false;};this.keyDown=function(h,f,g){var e=h.keyCode;switch(e){case 16:this.bShift=true;break;case 17:this.bAltGr=true;break;default:e=!this.bShift?e+32:e;if(this.bAltGr){if(!!this.specialKeys[String.fromCharCode(e)]){f.value+=this.specialKeys[String.fromCharCode(e)];}}break;}return false;};this.onQuestionResult=function(e){};};answerType.gaps=function(c,b,a){this.answerType="multipleChoice";this.nr=c;this.userResult="";this.points=parseInt(b);this.aValues=a;this.isAnswer=false;this.bDone=false;this.answerCounter=0;this.maxTrials=0;this.checkAnswer=function(h,e,d){d=!!d;this.answerCounter++;if(!!e){this.userResult=e;}for(var f=0;f<this.aValues.length;f++){if(this.aValues[f]==this.userResult){this.isAnswer=true;}}if(!this.isAnswer){this.points=Math.round(this.points/2,0);if((this.maxTrials>0&&this.answerCounter>=this.maxTrials)||d){this.bDone=true;}}else{this.bDone=true;}var g=$(h.element).getElementById("gapsHint");if(!this.isAnswer&&this.hintCharacters>0&&!this.bDone){g.innerHTML="&#160;("+this.aValues[0].substr(0,this.hintCharacters*this.answerCounter)+((this.bDone=this.hintCharacters*this.answerCounter>=this.aValues[0].length)?"":"...")+")&#160;";}if(this.isAnswer){g.innerHTML="";}else{if(this.bDone){if(h.bSolve){g.innerHTML="&#160;("+this.aValues[0]+")&#160;";}}}return this.isAnswer;};this.getPoints=function(d){return(this.isAnswer)?this.points:0;};};questionType.match=function(b,d,c,a){this.questionType="match";this.totalPoints=parseInt(b);this.resultPoints=0;this.bAllowNegativePoints=(a==1)?true:false;this.bDone=false;this.maxAnswers=parseInt(d);this.answerCounter=0;this.answerCollection=[];this.bAutoComplete=!!c;this.bSolve=true;this.calcPoints=function(e){this.resultPoints+=e;};this.limitPoints=function(){var e=this.resultPoints;if(e>this.totalPoints){e=this.totalPoints;}if(e<0&&!this.bAllowNegativePoints){e=0;}this.resultPoints=e;};this.checkAnswer=function(e){this.bDone=true;for(var f=0;f<this.answerCollection.length;f++){this.calcPoints(this.answerCollection[f].getPoints(this));this.displayResult($("MatchAnswer"+e+"_"+f),f,e);}this.limitPoints();$fx("practiceSolve"+e).setDisplay(false);$fx("practiceNext"+e).setDisplay(true);};this.displayResult=function(f,g,e){if(this.bSolve){iconSRC=f.style.backgroundImage;f.style.backgroundImage=iconSRC.replace(/answerX/g,"answer"+(this.answerCollection[g].checkAnswer()?0:1));}};this.setAnswer=function(h,j,f,g){if(!this.bDone){this.answerCounter++;this.answerCollection[j].isAnswer=!this.answerCollection[j].isAnswer;inputElement=h.getElementsByTagName("select")[0];var e;if((e=this.answerCollection[j].checkAnswer(this))||this.answerCollection[j].bDone){this.answerCounter++;inputElement.disabled="disabled";$fx(h.getElementsByTagName("img")[0]).show(false);}this.displayResult(h,j,g,e);this.checkAnswer(g);}};this.onQuestionResult=function(e){};};answerType.match=function(c,b,a){this.answerType="match";this.nr=c;this.points=parseInt(b);this.aValues=a;this.isAnswer=false;this.checkAnswer=function(d){return(this.aValues[0]==1);};this.getPoints=function(d){return(this.isAnswer)?this.points:0;};};econtioTraining.timelineClassic=function(a){this.me=a;this.myCountainer=null;this.type="timelineClassic";this.idCurrentSection=null;this.init=function(){myContainer=this.me.getElementById("timelineContainer");this.myContainer=myContainer;myContainer.parent=this.me;myContainer.eTraining=this;myContainer.selectSection=function(f){this.eTraining.idCurrentSection=f;var d=f.split("_");var e=d[d.length-1];this.fx.newPosition=e;this.fx.onEnd=function(){var g=this.parent.getElementsByClassName("section");for(i=0;i<g.length;i++){if(g[i].sel==1){g[i].sel=0;g[i].firstChild.className="timelineClassicSection0";g[i].getElementByClassName("timelineClassicSubSection1").className="timelineClassicSubSection0";g[i].style.backgroundImage=rbmWindow.replacePicName(g[i].style.backgroundImage,"bg_Timeline0");}if(i==this.newPosition){g[i].sel=1;g[i].firstChild.className="timelineClassicSection1";g[i].getElementByClassName("timelineClassicSubSection0").className="timelineClassicSubSection1";g[i].style.backgroundImage=rbmWindow.replacePicName(g[i].style.backgroundImage,"bg_Timeline1");}}this.bounding();this.onEnd=function(){this.bounding();};};if(e>-1*this.fx.position+1){this.nextButton.onclick();}else{if(e<-1*this.fx.position+1){this.prevButton.onclick();}else{this.fx.onEnd();}}};this.selectSection=function(d){this.myContainer.selectSection(d);};var c=myContainer.getElementsByClassName("section");myContainer.style.marginLeft="0px";if(c.length>1){this.idCurrentSection=c[1].id;sl=myContainer;sl.position=0;if(typeof(sl.fx)=="undefined"){sl.fx=new rbmFX.shift(sl,-1);myContainer.nextButton=this.me.getElementById("timelineNext");if(!!myContainer.nextButton){myContainer.nextButton.onclick=sl.fx.go.bind(sl.fx,-1);}myContainer.prevButton=this.me.getElementById("timelinePrev");if(!!myContainer.prevButton){myContainer.prevButton.onclick=sl.fx.go.bind(sl.fx,1);}sl.fx.onRightBorder=function(){$fx(myContainer.prevButton.firstChild).setOpacity(100);$fx(myContainer.nextButton.firstChild).setOpacity(50);};sl.fx.onLeftBorder=function(){$fx(myContainer.prevButton.firstChild).setOpacity(50);$fx(myContainer.nextButton.firstChild).setOpacity(100);};sl.fx.onMiddle=function(){$fx(myContainer.prevButton.firstChild).setOpacity(100);$fx(myContainer.nextButton.firstChild).setOpacity(100);};}sl.fx.elementCount=c.length-1;sl.fx.margin=(myContainer.position*200);sl.fx.delta=200;sl.fx.start=sl.fx.margin;sl.fx.d=-1;sl.fx.bounding();}this.me.getElementsByClassName("timelineClassicSection1")[0].parentNode.sel=1;var b=this.me.getElementsByClassName("section");for(i=0;i<b.length;i++){b[i].myContainer=myContainer;b[i].firstChild.onclick=function(){if(this.parentNode.sel!=1){this.parentNode.myContainer.selectSection(this.parentNode.id);var d=this.parentNode.id.split("_");$(this).getElementById("timelineClassicSectionLink_"+d[1]+"_"+d[2]).onclick();}};}};this.gotoNextSection=function(){var b=this.idCurrentSection.replace(/section_/g,"");aNodes=cms.oAjax.framework.selectNodes("//lesson[@id='"+idLesson+"']/descendant::section[@id='"+b+"']/following-sibling::section[1]");if(aNodes.length>0){this.selectSection("section_"+aNodes[0].getAttribute("id"));this.myContainer.getElementById("timelineClassicSectionLink_"+aNodes[0].getAttribute("id")).onclick();}};this.gotoPrevSection=function(){var b=this.idCurrentSection.replace(/section_/g,"");aNodes=cms.oAjax.framework.selectNodes("//lesson[@id='"+idLesson+"']/descendant::section[@id='"+b+"']/preceding-sibling::section[1]");if(aNodes.length>0){this.selectSection("section_"+aNodes[0].getAttribute("id"));this.myContainer.getElementById("timelineClassicSectionLink_"+aNodes[0].getAttribute("id")).onclick();}};};function dispatcher(e){debuglog("dispatcher: "+e);var b=new Object();var d=e.split(";");for(var c=1;c<d.length;c++){var a=d[c].split("=");b[a[0].toUpperCase()]=a[1];}switch(d[0].toUpperCase()){case"GOTOLEVEL":alert("gotolevel has changed!");parent.customer.levelSelect(b.LEVELID,b.LEVEL);break;case"ONSTART":console.log(b.FILE);var a=$("flashContainer_"+b.FILE);$fx(a.getElementById("progressbar")).setDisplay(false);a.style.width="100%";a.style.height="100%";document.getElementById("flash_"+b.FILE).parentNode.parentNode.onStart();break;}}function makeSWF(g,f,c){var a={};var e={};var b={};var d={};e.allowscriptaccess="always";e.allowfullscreen="false";b.name=f;b.id=f;oTarget=document.getElementById(c);swfobject.embedSWF(g,oTarget,"100%","100%","9.0.0",false,a,e,b);}
/*************************** mecoSystest.js *******************************
**** Version 1.01.0001
**** last changed 04.03.2008
**** (c) 2008 Bernd Rudolf, econtio GmbH, www.econtio.de
*************************************************************************/
var system=new Object();var gSubmit,gTimeout;testRoutines=new Object();testRoutines.createObject=function(a){if(typeof(ActiveXObject)=="function"){a.isActiveX=true;this.createActiveXObject(a);}else{a.isPlugin=true;this.createPluginObject(a);}};testRoutines.createPluginObject=function(b){b.bAvail=false;for(var a=0;a<b.aObjectNames.length;a++){if(typeof(navigator.plugins[b.aObjectNames[a]])=="object"){b.obj=navigator.plugins[b.aObjectNames[a]];b.sObject=b.aObjectNames[a];b.bAvail=true;break;}}};testRoutines.createActiveXObject=function(b){b.bAvail=false;for(var a=0;a<b.aObjectNames.length;a++){try{b.obj=new ActiveXObject(b.aObjectNames[a]);b.sObject=b.aObjectNames[a];b.bAvail=true;break;}catch(c){b.bAvail=false;}}};testRoutines.FlashPlayer=new Object();testRoutines.FlashPlayer.getVersion=function(d){if(d.bAvail){if(d.isActiveX){try{var c=d.sObject.lastIndexOf(".")+1;var f=d.sObject.substr(c,d.sObject.length-c);d.sVersion=d.name+" "+f;d.version.major=parseFloat(f);d.version.minor=0;}catch(b){d.error.number=b.number;d.error.description=b.description;}}else{var f=d.obj.description.substr(16,(d.obj.description.indexOf(".",16)-14));d.sVersion=d.name+" "+f+"<br/></b>"+d.obj.description+"<b>";var a=f.split(".");d.version.major=parseFloat(a[0]);d.version.minor=parseFloat(a[1]);}}};testRoutines.MediaPlayer=new Object();testRoutines.MediaPlayer.getVersion=function(c){if(browserDetect.browser=="Internet Explorer"){c.sVersion="nicht gefunden";try{c.sVersion=c.name+" "+c.obj.versionInfo;var a=c.obj.versionInfo.split(".");c.version.major=parseFloat(a[0]);c.version.minor=parseFloat(a[1]);}catch(b){c.error.number=b.number;c.error.description=b.description;}}};testRoutines.OS=new Object();testRoutines.OS.getVersion=function(c){var a=mecoVariables.WINDOWS_VERSION||browserDetect.OSVersion;c.sVersion=browserDetect.OS+" "+a+((typeof(mecoVariables.SP_VERSION)!="undefined")?", SP "+mecoVariables.SP_VERSION:"");c.sObject=browserDetect.OS;c.version.clear=browserDetect.OS;var b=a.split(".");if(b.length>1){c.version.major=parseFloat(b[0]);c.version.minor=parseFloat(b[1]);}if(c.version.clear=="Windows "){switch(c.version.major){case 4:c.version.clear+="NT";break;case 5:switch(c.version.minor){case 0:c.version.clear+="2000";break;case 1:c.version.clear+="XP";break;case 2:c.version.clear+="Server 2003";break;}break;case 6:c.version.clear+="Vista";break;default:switch(mecoVariables.WINDOWS_VERSION){case"98":c.version.major=3;c.version.major=8;c.version.clear+="98";break;case"ME":c.version.major=3;c.version.major=9;c.version.clear+="ME";break;}break;}}};testRoutines.Screen=new Object();testRoutines.Screen.getVersion=function(a){a.sVersion=mecoVariables.SCREEN_WIDTH+"x"+mecoVariables.SCREEN_HEIGHT+" Punkte";a.sObject="Screen";a.version.major=parseFloat(mecoVariables.SCREEN_WIDTH);a.version.minor=parseFloat(mecoVariables.SCREEN_HEIGHT);};testRoutines.Processor=new Object();testRoutines.Processor.getVersion=function(b){if(typeof(mecoVariables.PROCESSOR_TYPE)!="undefined"&&typeof(mecoVariables.PROCESSOR_SPEED)!="undefined"){b.sVersion=mecoVariables.PROCESSOR_TYPE+" @ "+mecoVariables.PROCESSOR_SPEED;var a=mecoVariables.PROCESSOR_SPEED?mecoVariables.PROCESSOR_SPEED:"";b.version.major=parseFloat(a.split(" ")[0]);}else{b.sVersion="unbekannt";b.version.major=0;}b.sObject="Processor";};testRoutines.Memory=new Object();testRoutines.Memory.getVersion=function(a){a.sVersion=Math.floor((parseFloat(mecoVariables.MEM_AVAIL))/(1024*1024))+" MByte frei";a.sObject="Memory";a.version.major=Math.floor((parseFloat(mecoVariables.MEM_AVAIL))/(1024*1024));};testRoutines.Browser=new Object();testRoutines.Browser.getVersion=function(b){b.sVersion=browserDetect.browser+" "+browserDetect.version+"<br/></b>"+browserDetect.fullVersion+"<b>";b.sObject=browserDetect.browser;var a=browserDetect.version.split(".");if(a.length>1){b.version.major=parseFloat(a[0]);b.version.minor=parseFloat(a[1]);}else{b.version.major=browserDetect.version;}b.sOS=browserDetect.OS;};testRoutines.XMLHttp=new Object();testRoutines.XMLHttp.getVersion=function(b){b.sVersion=b.sObject.substr(b.sObject.length-3,3);var a=b.sVersion.split(".");if(a.length>1){b.version.major=parseFloat(a[0]);b.version.minor=parseFloat(a[1]);}};testRoutines.XMLDOMDocument=new Object();testRoutines.XMLDOMDocument.getVersion=function(b){b.sVersion=b.sObject.substr(b.sObject.length-3,3);var a=b.sVersion.split(".");if(a.length>1){b.version.major=parseFloat(a[0]);b.version.minor=parseFloat(a[1]);}};function objVersion(a,b){this.major=!a?0:a;this.minor=!b?0:b;this.clear=null;}function systestObject(b,e,f,a,d,c){this.name=b;this.sysName=e;this.aObjectNames=f;this.bAvail=false;this.bRightVersion=false;this.version=new objVersion();this.sVersion="";this.requiredVersion=new objVersion(a,d);this.sObject="";this.obj=null;this.error=new Object();this.statistik=c;this.formOutput=function(g){if(typeof(g)=="object"){g=g[this.sObject];}if(g){g=g.replace(/%objname%/g,this.name);g=g.replace(/%availmajor%/g,this.version.major);g=g.replace(/%availminor%/g,this.version.minor);g=g.replace(/%reqmajor%/g,this.requiredVersion.major);g=g.replace(/%reqminor%/g,this.requiredVersion.minor);}else{g="";}return g;};this.test=function(){testRoutines[e].getVersion(this);for(var g=0;g<this.aObjectNames.length;g++){if(this.sObject!=""&&this.sObject!="unbekannt"&&this.aObjectNames[g].indexOf(this.sObject)!=-1){this.bAvail=true;break;}}if(this.bAvail){if((this.version.major>this.requiredVersion.major)||(this.version.major==this.requiredVersion.major&&this.version.minor>=this.requiredVersion.minor)){this.bRightVersion=true;}else{this.bRightVersion=false;}}};this.print=function(l,h,k,g){oElement=document.getElementById(h);k=!k?"":k;g=!g?"":g;try{for(var i in l){switch(typeof(this[i])){case"function":break;case"object":oElement.innerHTML+=g+" "+i+": "+l[i]+"<br>";this.print(this[i],h,i,g+"---");break;default:oElement.innerHTML+=g+" "+i+": "+l[i]+"<br>";}}}catch(j){oElement.innerHTML+="**** Error: "+j.description+"<br>";}};}var alertTexts=new Object();alertTexts.MediaPlayer=new Object();alertTexts.MediaPlayer.notAvail="Auf Ihrem System wurde kein %objname% gefunden.<br>Sie ben�tigen f�r die Wiedergabe mindestens einen %objname% %reqmajor%.%reqminor%<br/>";alertTexts.MediaPlayer.wrongVersion="Auf Ihrem System wurde ein %objname% der Version %availmajor%.%availminor% gefunden.<br>F�r die reibungslose Wiedergabe ben�tigen Sie mindestens einen %objname% %reqmajor%.%reqminor%<br/>";alertTexts.MediaPlayer.download=function(a){var b="Eine aktuelle Version des %objname%s k�nnen Sie hier herunterladen:<br>";switch(system.Browser.sObject){case"Internet Explorer":if(system.OS.version.major==5&&system.OS.version.minor==0){b+='<a class="download" href ="http://www.econtio.de/mecosupport/downloadredirect.asp?component=mplayer9" target="blank">http://www.microsoft.com</a>';}else{b+='<a class="download" href ="http://www.econtio.de/mecosupport/downloadredirect.asp?component=mplayer11" target="blank">http://www.microsoft.com</a>';}break;default:b="<b>Der %objname% ist f�r Ihren Browser nicht verf�gbar.</b>";}return b;};alertTexts.FlashPlayer=new Object();alertTexts.FlashPlayer.notAvail="Auf Ihrem System wurde kein %objname% gefunden.<br>Sie ben�tigen f�r die Wiedergabe mindestens einen %objname% %reqmajor%.%reqminor%<br/>";alertTexts.FlashPlayer.wrongVersion="Auf Ihrem System wurde ein %objname% der Version %availmajor%.%availminor% gefunden.<br/><b>F�r die reibungslose Wiedergabe ben�tigen Sie mindestens einen %objname% %reqmajor%.%reqminor%</b><br/>";alertTexts.FlashPlayer.download=function(a){var b="Eine aktuelle Version des %objname%s k�nnen Sie hier herunterladen:<br>";b+='<a class="download" href ="http://www.econtio.de/mecosupport/downloadredirect.asp?component=fplayer9" target="blank">http://www.adobe.com</a>';return b;};alertTexts.Browser=new Object();alertTexts.Browser.notAvail="";alertTexts.Browser.wrongVersion="Auf Ihrem System wurde ein %objname% der Version %availmajor%.%availminor% gefunden.<br>F�r die reibungslose Wiedergabe ben�tigen Sie mindestens einen %objname% %reqmajor%.%reqminor%<br>";alertTexts.Browser.download=function(a){switch(system[a].sObject){case"Internet Explorer":var b="Eine aktuelle Version des %objname% k�nnen Sie hier herunterladen:<br>";if(system.OS.version.major==5&&system.OS.version.minor==0){b+='<a class="download" href ="http://www.econtio.de/mecosupport/downloadredirect.asp?component=IE6" target="blank">http://www.microsoft.com</a>';}else{b+='<a class="download" href ="http://www.econtio.de/mecosupport/downloadredirect.asp?component=IE7" target="blank">http://www.microsoft.com</a>';}return b;break;case"Firefox":var b="Update Firefox";return b;break;case"Opera":var b="Update Opera";return b;break;}};alertTexts.OS=new Object();alertTexts.OS.notAvail="Das Betriebssystem konnte nicht ermittelt werden.";alertTexts.OS.wrongVersion=new Object();alertTexts.OS.wrongVersion.Windows="Auf Ihrem Rechner arbeitet Windows %availmajor%.%availminor%.<br>F�r diese Anwendung ist jedoch mindestens Windows 2000 (%reqmajor%.%reqminor%) erforderlich<br><br><b>Die Funktion dieser Anwendung kann daher nicht garantiert werden.</b>";alertTexts.OS.wrongVersion.Mac="Auf Ihrem Rechner arbeitet Mac OS %availmajor%.%availminor%.<br>F�r diese Anwendung ist jedoch mindestens OS (%reqmajor%.%reqminor%) erforderlich<br><br><b>Die Funktion dieser Anwendung kann daher nicht garantiert werden.</b>";alertTexts.OS.download=function(a){};alertTexts.Processor=new Object();alertTexts.Processor.notAvail="Der Prozessor Ihres Systems konnte nicht ermittelt werden!<br/>F�r die reibungslose Wiedergabe sind mindestens %reqmajor%MHz erforderlich.<br><br><b>Zu geringe Leistung kann dazu f�hren, dass das Video nicht ohne sichtbares Rucken wiedergegeben werden kann.</b><br><br>";alertTexts.Processor.wrongVersion="Der Prozessor Ihres System arbeitet mit %availmajor%MHz Taktfrequenz<br>F�r die reibungslose Wiedergabe sind mindestens %reqmajor%MHz erforderlich.<br><br><b>Dies kann dazu f�hren, dass das Video nicht ohne sichtbares Rucken wiedergegeben werden kann.</b>";alertTexts.Processor.download=function(a){};alertTexts.Memory=new Object();alertTexts.Memory.notAvail="Der freie Speicher Ihres Systems konnte nicht ermittelt werden!<br><br>";alertTexts.Memory.wrongVersion="Ihrem System stehen nur %availmajor%MByte Arbeitsspeicher zur Verf�gung<br>F�r die reibungslose Wiedergabe sollten mindestens %reqmajor%MByte frei sein.<br><br><b>Wir empfehlen Ihnen, andere aktive Anwendungen zu schlie�en.</b>";alertTexts.Memory.download=function(a){};alertTexts.Screen=new Object();alertTexts.Screen.notAvail="";alertTexts.Screen.wrongVersion="Der Bildschirm Ihres System verf�gt nur �ber eine Aufl�sung von %availmajor%x%availminor% Punken.<br>F�r die Darstellung dieser Anwendung sind jedoch mindestens %reqmajor%x%reqminor% Punke erforderlich.<br><br><b>Wenn Sie fortfahren, werden Sie nicht das vollst�ndige Bild sehen und k�nnen die Anwendung ggf. nur noch �ber die Tastenkombination Alt+F4 beenden.</b>";alertTexts.Screen.download=function(a){};alertTexts.XMLHttp=new Object();alertTexts.XMLHttp.notAvail="Auf Ihrem System wurden keine XML-Komponenten gefunden!<br><br>";alertTexts.XMLHttp.wrongVersion="Auf Ihrem System wurde ein %objname% der Version %availmajor%.%availminor% gefunden.<br>F�r die reibungslose Funktion ben�tigen Sie mindestens %objname% %reqmajor%.%reqminor%<br>";alertTexts.XMLHttp.download=function(a){var b="Eine aktuelle Version von %objname% k�nnen Sie hier herunterladen:<br>";b+='<a class="download" href ="http://www.econtio.de/mecosupport/downloadredirect.asp?component=msxml" target="blank">http://www.microsoft.com</a>';return b;};alertTexts.XMLDOM=new Object();alertTexts.XMLDOM.notAvail="Auf Ihrem System wurden keine XML-Komponenten gefunden!<br><br>";alertTexts.XMLDOM.wrongVersion="Auf Ihrem System wurde ein %objname% der Version %availmajor%.%availminor% gefunden.<br>F�r die reibungslose Funktion ben�tigen Sie mindestens %objname% %reqmajor%.%reqminor%<br>";alertTexts.XMLDOM.download=function(a){var b="Eine aktuelle Version von %objname% k�nnen Sie hier herunterladen:<br>";b+='<a class="download" href ="http://www.econtio.de/mecosupport/downloadredirect.asp?component=msxml" target="blank">http://www.microsoft.com</a>';return b;};function systemTest(){var a;system.OS=new systestObject("Betriebssystem","OS",["Windows"],5,0,false);system.OS.test();if(!system.OS.bAvail){system.OS=new systestObject("Betriebssystem","OS",["Mac"],10,0,false);system.OS.test();}system.Screen=new systestObject("Bildschirm","Screen",["Screen"],1024,768,false);system.Screen.test();system.Browser=new systestObject("Internet Explorer","Browser",["Internet Explorer"],6,0,false);system.Browser.test();if(!system.Browser.bAvail){system.Browser=new systestObject("Firefox","Browser",["Firefox"],1,5,false);system.Browser.test();if(!system.Browser.bAvail){system.Browser=new systestObject("Opera","Browser",["Opera"],9,20,false);system.Browser.test();}if(!system.Browser.bAvail){system.Browser=new systestObject("Safari","Browser",["Safari"],3,0,false);system.Browser.test();}$fx("gXMLDOM").setDisplay(false);$fx("gXMLHttp").setDisplay(false);}else{system.XMLHttp=new systestObject("XMLHttp","XMLHttp",["MSXML2.XmlHttp.6.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0"],3,0,false);testRoutines.createActiveXObject(system.XMLHttp);system.XMLHttp.test();system.XMLDOM=new systestObject("XMLDOMDocument","XMLDOMDocument",["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0"],3,0,false);testRoutines.createActiveXObject(system.XMLDOM);system.XMLDOM.test();}system.MediaPlayer=new systestObject("Windows MediaPlayer","MediaPlayer",["WMPlayer.OCX.7"],9,0,false);testRoutines.createObject(system.MediaPlayer);system.MediaPlayer.test();system.FlashPlayer=new systestObject("Adobe Flash Player","FlashPlayer",["Shockwave Flash","ShockwaveFlash.ShockwaveFlash.10","ShockwaveFlash.ShockwaveFlash.9","ShockwaveFlash.ShockwaveFlash.8","ShockwaveFlash.ShockwaveFlash.7","ShockwaveFlash.ShockwaveFlash.6","ShockwaveFlash.ShockwaveFlash.5"],9,0,false);testRoutines.createObject(system.FlashPlayer);system.FlashPlayer.test();if(system.FlashPlayer.bAvail&&system.FlashPlayer.bRightVersion){system.MediaPlayer.override=true;$("MediaPlayerimg").src="images/cp.gif";}system.ok=true;for(var b in system){if(typeof(system[b])=="object"&&alertTexts[b]){var c;debugprint(b,null,"<b>"+system[b].sVersion+(system[b].version.clear?" ("+system[b].version.clear+") ":"")+"</b>");$("form"+b).value=system[b].sVersion+(system[b].version.clear?" ("+system[b].version.clear+") ":"");if(!system[b].bAvail&&!system[b].override){debugprint(b,null,system[b].formOutput(alertTexts[b].notAvail));c=system[b].formOutput(alertTexts[b].download(b));debugprint(b,null,c);$(b+"img").src="images/notok.gif";if(!system[b].statistik){system.ok=false;}}else{if(!system[b].bRightVersion&&!system[b].override){c=system[b].formOutput(alertTexts[b].wrongVersion);debugprint(b,null,c);c=system[b].formOutput(alertTexts[b].download(b));debugprint(b,null,c);$(b+"img").src="images/notok.gif";if(!system[b].statistik){system.ok=false;}}else{if(!system[b].override){$(b+"img").src="images/ok.gif";}else{$(b+"img").src="images/cp.gif";}}}if(system[b].statistik){$fx("g"+b).setDisplay(false);}}}$("systemok").value=system.ok?1:0;console.warn("systestForm disabled");return system.ok;}function iframeLoad(){}
/*************************** mecoString.js *******************************
**** Version 1.01.0001
**** last changed 04.03.2008
**** (c) 2007/2008 Bernd Rudolf, econtio GmbH, www.econtio.de
*************************************************************************/
var mecoLang="de";var c_mecoString=new Object();c_mecoString.de=new Object();c_mecoString.en=new Object();c_mecoString.de.quit="'%PROJECT_TITLE%' wirklich beenden?";c_mecoString.en.quit="Do you really want to quit '%PROJECT_TITLE%'?";c_mecoString.de.insertDVD="Bitte legen Sie den Datentr�ger '%PROJECT_NAME%' ein, und dr�cken Sie auf OK!";c_mecoString.en.insertDVD="Please insert disc '%PROJECT_NAME%' and click OK!";c_mecoString.de.wrongDVD="Falscher Datentr�ger eingelegt!";c_mecoString.en.wrongDVD="Wrong disc inserted!";c_mecoString.de.keyInvalid="Die eingegeben Seriennummer ist ung�ltig!\n\nBitte �berpr�fen Sie Ihre Eingabe!";c_mecoString.en.keyInvalid="This serialnumber is invalid!\n\nPlease check your input!";c_mecoString.de.keySaved="Die Seriennummer wurde erfolgreich gespeichert!";c_mecoString.en.keySaved="The serialnumber was stored successfully!";c_mecoString.de.keyExists="Diese Seriennummer wurde bereits eingegeben!";c_mecoString.en.keyExists="The serialnumber was already stored!";c_mecoString.de.abortApp="Zum Starten der Applikation wird der Datentr�ger '%PROJECT_NAME%' ben�tigt!";c_mecoString.en.abortApp="Cannot start application without disc '%PROJECT_NAME%'!";c_mecoString.de.saveFailed="Die Datei konnte nicht erstellt werden!\n\nBitte w�hlen Sie einen Ordner, in dem Sie die erforderlichen Schreibrechte haben.";c_mecoString.en.saveFailed="The file could not be created!\n\nPlease choose a location or folder where you have the required write permission.";function getMecoString(a){strText=c_mecoString[mecoLang][a];strText=strText.replace(/%INSTALL_PATH%/gi,mecoVariables.INSTALL_PATH);strText=strText.replace(/%ROM_PATH%/gi,mecoVariables.ROM_PATH);strText=strText.replace(/%APP_PATH%/gi,mecoVariables.APP_PATH);strText=strText.replace(/%PROJECT_NAME%/gi,mecoVariables.PROJECT_NAME);strText=strText.replace(/%PROJECT_TITLE%/gi,mecoVariables.PROJECT_TITLE);strText=strText.replace(/%SUPPORT_URL%/gi,mecoVariables.SUPPORT_URL);return strText;}
/*************************** mecoOnline.js *******************************
**** Version 1.01.0001
**** last changed 04.03.2008
**** (c) 2007/2008 Bernd Rudolf, econtio GmbH, www.econtio.de
*************************************************************************/
var mecoVariables=new Object();mecoVariables.WINDOWS_VERSION=browserDetect.OSVersion;function mecoOnline(){this.nFullScreen=0;this.type="mecoOnline";this.debugElement=mainDebug.newSubElement("debugMeco","Meco");this.init=function(){this.get("SCREEN_WIDTH");this.get("SCREEN_HEIGHT");this.get("WINDOW_WIDTH");this.get("WINDOW_HEIGHT");this.get("DUAL_SCREEN");this.get("SCREEN_ASPECT");this.get("VIDEO_PATH");this.get("TOUR_PATH");this.get("SLV_PATH");};this.get=function(b){var a=null;switch(b){case"SCREEN_WIDTH":a=screen.width;break;case"SCREEN_HEIGHT":a=screen.height;break;case"WINDOW_WIDTH":a=Math.max(document.body.offsetWidth,1024);break;case"WINDOW_HEIGHT":a=Math.max(document.body.offsetHeight,700);break;case"DUAL_SCREEN":a=(mecoVariables.SCREEN_WIDTH<1280?0:(mecoVariables.SCREEN_WIDTH>1290?2:1));break;case"SCREEN_ASPECT":a=mecoVariables.SCREEN_ASPECT=((mecoVariables.SCREEN_WIDTH/mecoVariables.SCREEN_HEIGHT)>1.4?16:4);break;case"VIDEO_PATH":a="mms://rtsp2.rbm-net.de/kongress/Interpharm09/";break;case"TOUR_PATH":a="mms://rtsp2.rbm-net.de/kongress/Interpharm09/";break;case"SLV_PATH":a="mms://rtsp2.rbm-net.de/kongress/Interpharm09/SlideVideo/";break;}if(!!a){mecoVariables[b]=a;this.debuglog(b+" = "+a);}};this.setFullscreen=function(a){this.nFullsreen=a;};this.toggleFullscreen=function(){this.nFullsreen=1-this.nFullsreen;};this.execScript=function(b,a,c){if(c){c();}};this.execCommand=function(b,a,c){switch(b){case"meco:quit":window.close();break;}};this.quit=function(){if(confirm(mecoVariables.PROJECT_TITLE+" wirklich beenden?")){this.execCommand("meco:quit");}};this.debuglog=function(b){var a=this.debugElement.getElementById("debuglog");a.innerHTML=b+"<br/>"+a.innerHTML;};this.alert=function(a){alert(a);};}
/*************************** mecoScript.js *******************************
**** Version 1.01.0001
**** last changed 04.03.2008
**** (c) 2007/2008 Bernd Rudolf, econtio GmbH, www.econtio.de
*************************************************************************/
var scriptList=new Object();var scriptStack=new Array();var runningScript=null;function appResult(b,g,e,a){meco.debuglog("<b>appResult</b>: "+b+"<br/>Function: "+g+" / Details: "+e+"<br/>Value: "+a);if(b==0){switch(g.toUpperCase()){case"GET":mecoVariables[e]=a;break;case"SET":mecoVariables[e]=a;break;case"SETFULLSCREEN":mecoVariables.FULLSCREEN=a;break;case"CREATEINSTALLPATH":mecoVariables.INSTALL_PATH=a+"\\";break;case"LOADVARIABLES":var d=a.split("&");for(var c=0;c<d.length;c++){myVar=d[c].split("=");meco.debuglog("...setting: "+myVar[0]+"="+myVar[1]);mecoVariables[myVar[0]]=myVar[1];}break;case"LISTVARIABLES":var d=a.split("&");for(var c=0;c<d.length;c++){myVar=d[c].split("=");meco.debuglog("...setting: "+myVar[0]+"="+myVar[1]);mecoVariables[myVar[0]]=myVar[1];}break;case"EVENTMEDIAREMOVED":ejectDVD();break;case"EVENTMEDIAINSERTED":mecoVariables.DVDVOLUME=e;mecoVariables.ROM_PATH=a;var f=e.split("_");if(f[0]!=mecoVariables.PROJECT_NAME){alert(getMecoString("wrongDVD"));}else{meco.execCommand("meco:set('DVDACTIVE', '"+f[1]+"')");meco.switchDVD(e,(mecoVariables.DVDACTIVE!=f[1]));}break;case"CHECKNETWORK":mecoVariables.ONLINE=a;break;case"SAVE":mecoVariables.USER_FILENAME=a;break;case"LOAD":mecoVariables.USER_FILENAME=a;break;case"DECODEKEY":meco.decodeKey=a;break;case"CHECKKEY":meco.checkKey=a;break;}if(runningScript&&runningScript.active){runningScript.next(b,g,e,a);}else{if(!!meco.callBack&&typeof(meco.callBack=="function")){temp=meco.callBack;meco.callBack=null;temp(b,g,e,a);}}}else{if(b==-1){return;}if(b==-90){meco.debuglog("Error: unknown Command: "+g);runningScript.bFatalError=true;}else{if(mecoError&&mecoError[g]){meco.debuglog(g+": Error ("+b+") <br/>"+mecoError[g][b]+"<br/><b>Usage:</b> "+mecoError[g][0]);}switch(g){case"get":break;case"createInstallPath":runningScript.bFatalError=true;break;case"checkROM":if(confirm(getMecoString("insertDVD"))){runningScript.abort();restartApp();}else{abortApp();}break;case"checkKey":alert(getMecoString("keyInvalid"));meco.checkKey=-1;default:runningScript.bFatalError=true;break;}}if(runningScript&&runningScript.active&&runningScript.bFatalError){if(meco.userHandleError(b,g,e,a,runningScript)){runningScript.abort();}else{runningScript.next(b,g,e,a);}}else{if(!!meco.callBack&&typeof(meco.callBack=="function")){temp=meco.callBack;meco.callBack=null;temp(b,g,e,a);}}}}var mecoScript=function(b,a){this.name=b;this.bdebug=true;this.script=a;this.init=function(){this.step=0;this.active=false;this.mecoIf=false;this.bFatalError=false;};this.init();this.done=function(){};this.scriptComplete=function(d,f,e,c){this.active=false;if(this.bdebug){meco.debuglog("### Script "+this.name+" done!");}if(scriptStack.length>0){runningScript=scriptStack.pop();if(this.bdebug){meco.debuglog("*** continuing with script "+runningScript.name+"...");}runningScript.exec(runningScript.step);}else{this.done();}};this.abort=function(d,f,e,c){this.active=false;if(this.bdebug){meco.debuglog("script '"+this.name+"' stopped at line "+(this.step+1));}if(this.bFatalError){mainDebug.adjustDisplay(true);mainDebug.switchSubElement(meco.debugElement.id);}if(scriptStack.length>0){if(!this.bFatalError){runningScript=scriptStack.pop();meco.debuglog("*** aborting script "+runningScript.name+" due to fatal error...");runningScript.bFatalError=true;runningScript.abort();}}};this.go=function(){if(!this.active){meco.debuglog("*** entering Script "+this.name);this.init();this.active=true;if(this.bdebug){var d="";for(var c=0;c<this.script.length;c++){d=d+this.script[c]+"  ";}meco.debuglog(d);}this.step=0;if(this.script.length>0){this.exec(0);}else{if(this.bdebug){meco.debuglog("Script ist leer!");}}}else{}};this.exec=function(e){var c=this.script[e];meco.debuglog("exec: "+c);var f=c.substr(0,c.indexOf(":")+1);if(f!="meco:"){this.mecoIf=false;switch(f){case"meco-if:":this.mecoIf=true;c=c.replace(/meco-if:/,"meco:");var d=this.step+1;var g=0;while(d<this.script.length){if(this.script[d].substr(0,8)=="meco-if:"){g++;}endifComp=(this.script[d].substr(0,11)=="meco-endif:");if(this.script[d].substr(0,10)=="meco-else:"||endifComp){if(g==0){this.stepElse=d+1;break;}if(endifComp){g--;}}d++;}meco.debuglog("stepElse is: ["+this.stepElse+"] "+this.script[this.stepElse]);if(d>=this.script.length){meco.debuglog("Error in line "+this.step+": if without else/endif");}break;case"meco-else:":var d=this.step+1;while(d<this.script.length){if(this.script[d].substr(0,11)=="meco-endif:"){this.step=d;break;}d++;}if(d>=this.script.length){meco.debuglog("Error in line "+this.step+": if without else/endif");}break;case"meco-call:":this.step=this.step+1;scriptStack.push(this);runningScript=scriptList[c.replace(/meco-call:/,"")];runningScript.go();return null;break;case"meco-endif:":meco.debuglog("endif");break;case"meco-noop:":meco.debuglog("noop");break;default:}}c=c.replace(/%INSTALL_PATH%/gi,mecoVariables.INSTALL_PATH);c=c.replace(/%ROM_PATH%/gi,mecoVariables.ROM_PATH);c=c.replace(/%APP_PATH%/gi,mecoVariables.APP_PATH);c=c.replace(/%PROJECT_NAME%/gi,mecoVariables.PROJECT_NAME);c=c.replace(/%SUPPORT_URL%/gi,mecoVariables.SUPPORT_URL);meco.debuglog("command: "+c);if(c.length>5&&(c.substr(0,5)=="meco:"||c.substr(0,5)=="http:"||c.substr(0,5)=="file:")){meco.debuglog("executing...");location.href=c;}else{this.next(0,c,"",0);}};this.next=function(d,f,e,c){meco.debuglog("--->"+d+" - "+c+": "+this.mecoIf);if(this.mecoIf){this.mecoIf=false;if((d!=0)||(d==0&&c==0)){this.step=this.stepElse;}else{this.step++;}}else{this.step++;}if(this.step<this.script.length){meco.debuglog("<b>next:</b>"+this.step+"/"+this.script.length+"<br/>");this.exec(this.step);}else{this.scriptComplete();}};};function timeout(){meco.debuglog("XXXXX function timeout at line "+runningScript.step+": "+runningScript.script[runningScript.step]);runningScript.exec(runningScript.step);}var mecoError=new Object();mecoError.load=new Object();mecoError.load[0]="load(tag_name, file_name[, encoding=1])";mecoError.load[-10]="Fehlerhafter Parameter";mecoError.load[-11]="Kein InstallPath gesetzt";mecoError.load[-21]="Datei kann nicht gelesen werden";mecoError.load[-22]="Element kann nicht geschrieben werden";mecoError.save=new Object();mecoError.save[0]="save(tag_name, file_name[, encoding=1])";mecoError.save[-10]="Fehlerhafter Parameter";mecoError.save[-11]="Kein InstallPath gesetzt";mecoError.save[-21]="Element kann nicht gelesen werden";mecoError.save[-22]="Speicher f�r Unicode-Konvertierung kann nicht allokiert werden";mecoError.save[-23]="Datei kann nicht geschrieben werden";mecoError.createInstallPath=new Object();mecoError.createInstallPath[0]="createInstallPath(project_name)";mecoError.createInstallPath[-10]="Fehlerhafter Parameter";mecoError.createInstallPath[-20]="Verzeichnis kann nicht erstellt werden";mecoError.createShortcut=new Object();mecoError.createShortcut[0]="createShortcut(folder_name, shortcut_name, command_line)";mecoError.createShortcut[-10]="Fehlerhafter Parameter";mecoError.createShortcut[-20]="Windows-Version kann nicht ermittelt werden";mecoError.createShortcut[-21]="Verzeichnis kann nicht erstellt werden";mecoError.createShortcut[-22]="Verkn�pfung kann nicht erstellt werden";mecoError.copyContent=new Object();mecoError.copyContent[0]="copyContent(source, destination)";mecoError.copyContent[-10]="Fehlerhafter Parameter";mecoError.copyContent[-11]="Kein InstallPath gesetzt";mecoError.copyContent[-20]="Absoluter Pfad als Ziel ist nicht erlaubt";mecoError.copyContent[-30]="Fehler beim Kopieren aufgetreten";mecoError.setFullscreen=new Object();mecoError.setFullscreen[0]="setFullscreen(0|1)";mecoError.setFullscreen[-10]="Fehlerhafter Parameter";mecoError.get=new Object();mecoError.get[0]="get(variable_name)";mecoError.get[-10]="Fehlerhafter Parameter";mecoError.get[-20]="Variable nicht definiert";mecoError.set=new Object();mecoError.set[0]="set(variable_name, value)";mecoError.set[-10]="Fehlerhafter Parameter";mecoError.set[-20]="Variable kann nicht definiert werden";mecoError.set[-21]="System-Variable kann nicht �berschrieben werden";mecoError.showPopup=new Object();mecoError.showPopup[0]="showPopup(0|1)";mecoError.showPopup[-10]="Fehlerhafter Parameter";mecoError.loadPopup=new Object();mecoError.loadPopup[0]="loadPopup(url)";mecoError.loadPopup[-10]="Fehlerhafter Parameter";mecoError.loadPopup[-11]="Kein InstallPath gesetzt";mecoError.saveVariables=new Object();mecoError.saveVariables[0]="saveVariables( include_system_variables=0|1 [, file])";mecoError.saveVariables[-10]="Fehlerhafter Parameter";mecoError.saveVariables[-11]="Kein InstallPath gesetzt";mecoError.saveVariables[-20]="Verzeichnis 'xsl' kann nicht erstellt werden";mecoError.saveVariables[-21]="Datei kann nicht geschrieben werden";mecoError.loadVariables=new Object();mecoError.loadVariables[0]="loadVariables(reset=0|1[,filename])";mecoError.loadVariables[-10]="Fehlerhafter Parameter";mecoError.loadVariables[-11]="Kein InstallPath gesetzt";mecoError.checkROM=new Object();mecoError.checkROM[0]="checkROM(drive/path)";mecoError.checkROM[-10]="Fehlerhafter Parameter";mecoError.checkROM[-20]="Pfad beginnt nicht mit '[A-Z]:'";mecoError.fileExists=new Object();mecoError.fileExists[0]="fileExists(path)";mecoError.fileExists[-10]="Fehlerhafter Parameter";mecoError.fileExists[-11]="Kein InstallPath gesetzt";mecoError.cleanUp=new Object();mecoError.cleanUp[0]="cleanUp(relaive_path)";mecoError.cleanUp[-10]="Fehlerhafter Parameter";mecoError.cleanUp[-11]="Kein InstallPath gesetzt";mecoError.cleanUp[-21]="Pfad existiert nicht";mecoError.createFolder=new Object();mecoError.createFolder[0]="createFolder(relative_path)";mecoError.createFolder[-10]="Fehlerhafter Parameter";mecoError.createFolder[-11]="Kein InstallPath gesetzt";mecoError.createFolder[-20]="Absoluter Pfad als Ziel ist nicht erlaubt";mecoError.createFolder[-30]="Fehler beim Erstellen des Pfades aufgetreten";mecoError.checkKey=new Object();mecoError.checkKey[0]="checkKey(key)";mecoError.checkKey[-10]="Fehlerhafter Parameter";mecoError.checkKey[-11]="ung�ltiger Key";
/*************************** mecoInit.js *******************************
**** Version 1.01.0001
**** last changed 04.03.2008
**** (c) 2007/2008 Bernd Rudolf, econtio GmbH, www.econtio.de
*************************************************************************/
scriptList.pageScript=new mecoScript("pageScript",["meco-if:checkNetwork()","meco:loadWindow('POPUP', 'http://www.econtio.de/Interpharm09/support/kollegCheckBasket.php')","meco-endif:","meco:setFullScreen(1)","meco:listVariables(1)"]);scriptList.startScript=new mecoScript("startScript",["meco:loadVariables(0)","meco:set('VIDEO_PATH', '%ROM_PATH%video\\')","meco:get('APP_PATH')","meco:createInstallPath('%PROJECT_NAME%',1)","meco:createFolder('Content')","meco:loadVariables(0, 'user_variables.xsl')","meco-if:checkNetwork()","meco:loadWindow('POPUP', 'http://www.econtio.de/Interpharm09/support/kollegCheckBasket.php')","meco:set('ONLINE', '1')","meco-endif:","meco-if:get('ROM_PATH', '%PROJECT_NAME%_2')","meco:set('DVDACTIVE', '2')","meco-else:","meco:get('ROM_PATH', '%PROJECT_NAME%_1')","meco:set('DVDACTIVE', '1')","meco-endif:","meco:set('TOURLOOP', '0')","meco:set('cart', '0')","meco:get('SCREEN_WIDTH')","meco:get('SCREEN_HEIGHT')","meco:get('COLOR_DEPTH')","meco:get('MEM_AVAIL')","meco:checkROM('%ROM_PATH%')","meco:listVariables(1)","meco:saveVariables(0, 'user_variables.xsl')"]);scriptList.startTour=new mecoScript("startTour",["meco-call:pageScript","meco-if:checkROM('%APP_PATH%meco.exe')","meco:createInstallPath('%PROJECT_NAME%', 1)","meco:createFolder('Content\\tour\\audio')","meco:copyContent('%ROM_PATH%Content\\tour\\audio\\*', 'Content\\tour\\audio', no_confirmation, silent, no_error)","meco:set('TOUR_PATH', '%INSTALL_PATH%Content\\tour\\')","meco:get('TOUR_PATH')","meco-else:","meco:set('TOUR_PATH', '%INSTALL_PATH%Content\\tour\\')","meco:get('TOUR_PATH')","meco-endif:"]);scriptList.getSession=new mecoScript("getSession",["meco:get('SUPPORT_SESSION')","meco:get('SUPPORT_TICKET')"]);scriptList.videoFallback=new mecoScript("videoFallback",["meco:set('VIDEO_RES', 'half')","meco:saveVariables(0, 'user_variables.xsl')"]);scriptList.videoFallforward=new mecoScript("videoFallforward",["meco:set('VIDEO_RES', 'full')","meco:saveVariables(0, 'user_variables.xsl')"]);scriptList.startSupport=new mecoScript("startSupport",["meco:loadWindow('POPUP', '%SUPPORT_URL%checkSupport.asp')","meco:showPopup(1)"]);scriptList.getKey=new mecoScript("getKey",["meco:decodeKey('POPUP', '%SUPPORT_URL%checkSupport.asp')","meco:showPopup(1)"]);scriptList.startApp=new mecoScript("startApp",["meco:sizeWindow('MAIN', 1024, 750, 1)","meco-if:checkROM('%APP_PATH%meco.exe')","meco:loadWindow('MAIN', '%APP_PATH%Content/%PROJECT_NAME%/trailer.html')","meco-else:","meco:loadWindow('MAIN', '%APP_PATH%Content/%PROJECT_NAME%/index.html')","meco-endif:"]);scriptList.windowlessVideo0=new mecoScript("windowlessVideo0",["meco:loadVariables(0, 'user_variables.xsl')","meco:set('windowlessVideo', '0')","meco:saveVariables(0, 'user_variables.xsl')"]);scriptList.windowlessVideo1=new mecoScript("windowlessVideo1",["meco:loadVariables(0, 'user_variables.xsl')","meco:set('windowlessVideo', '1')","meco:saveVariables(0, 'user_variables.xsl')"]);function restartApp(){window.setTimeout("myOnLoad()",1000);}function abortApp(){alert("Ohne den Datentr�ger '"+mecoVariables.PROJECT_NAME+"' kann die Anwendung nicht gestartet werden!");}
/**************************** econtioDebug.js *******************************
**** Version 1.02.0002
**** last changed 22.07.2008
****
**** (c) 2007/2008 Bernd Rudolf, econtio GmbH, www.econtio.de
****
**** 22.07.2008 keyHandler eingebaut
**** 29.07.2008 FF kompatibel gemacht
*****************************************************************************/
var nJSErrorCounter=0;function econtioDebug(a){this.debugElement=$fx(a);this.comboBox=this.debugElement.getElementById("debugCombo");this.subElements=new Object();this.subElementCounter=0;this.subElements.support=$fx(this.debugElement.getElementById("support"));this.newSubElement=function(e,d){e=$fx(e).cloneNode(true);e.id=$fx(e).id+this.subElementCounter++;this.debugElement.appendChild(e);var c=document.createElement("option");c.value=e.id;var b=document.createTextNode(d);c.appendChild(b);this.comboBox.insertBefore(c,this.comboBox.firstChild);this.comboBox.value=0;this.subElements[e.id]=e;return e;};this.switchSubElement=function(b){b=(typeof(b)=="string")?b:this.comboBox.value;for(sE in this.subElements){this.subElements[sE].setDisplay(false);}this.subElements[b].setDisplay(true);};if(this.comboBox){this.comboBox.onchange=this.switchSubElement.bind(this);}this.adjustDisplay=function(b,d){typeof(b)!="undefined"?this.debugElement.setDisplay(b):this.debugElement.toggleDisplay();if(d){var e=0;var c=0;var f=document.getElementById(d?d:"player");if(!f){f=$(main);e=600;c=35;}if(f){this.debugElement.size(Math.min(f.offsetWidth,400),Math.min(f.offsetHeight,240));var h=Coordinates.northwestOffset(f,true);this.debugElement.style.top=(h.y+c)+"px";this.debugElement.style.left=(h.x+e)+"px";}else{this.debugElement.size(400,240);this.debugElement.style.top=50+"px";this.debugElement.style.left=100+"px";}if(mecoVariables){var g="";for(el in mecoVariables){g+=el+"... "+mecoVariables[el]+"<br/>";}debuglog(g);}}else{this.debugElement.move(0,0);}};mainDebugElement=this.newSubElement("debugJS","JS Log");}debdetails=function(c,d){var b=1;var a;while(a=$fx($(c).getElementById("debugSub"+b))){a.setDisplay(false);if(b==d){a.setDisplay(true);}b++;}};function nextSupportStep(){if(mecoVariables.SUPPORT_SESSION&&mecoVariables.SUPPORT_SESSION.length>1){waitForSession();}else{scriptList.support=new mecoScript("support",["meco:loadWindow('POPUP', '"+mecoVariables.SUPPORT_URL+"getSession.asp')"]);meco.execScript("support",false,waitForSession);}}var waitForSessionCounter=0;function waitForSession(){if((mecoVariables.SUPPORT_SESSION&&mecoVariables.SUPPORT_SESSION.length>1)||waitForSessionCounter>10){submitSupportForm();scriptList.support2=new mecoScript("support2",["meco:loadWindow('POPUP', '"+mecoVariables.SUPPORT_URL+"completeRequest.asp?user="+mecoVariables.SUPPORT_SESSION+"')","meco:saveVariables(0, 'user_variables.xsl')","meco:showPopup(1)"]);meco.execScript("support2",false,null);}else{meco.execScript("getSession",false,waitForSession);}waitForSessionCounter++;}function submitSupportForm(){if(mainDebug){var a=mainDebug.debugElement.getElementById("supportForm");a.action=mecoVariables.SUPPORT_URL+"storeRequest.asp?project="+mecoVariables.PROJECT_NAME+"&user="+mecoVariables.SUPPORT_SESSION+"&ticket="+mecoVariables.SUPPORT_TICKET;$("allLogs").value=mainDebug.debugElement.innerHTML;a.submit();$("allLogs").value="";mainDebug.debugElement.setDisplay(false);}}function debugHandler(c,b,a){myError="### JS-Error: "+c+"<br/>"+b+" ("+a+")";debuglog(myError);return true;}function debuglog(c,b){if(typeof(mainDebugElement)!="undefined"){var a=mainDebugElement.getElementById("jsLog");}else{var a=$("jsLog");}if(!!a){a.innerHTML=c+"<br/>"+a.innerHTML;if(b){$fx(a).setDisplay(true);}return true;}else{alert(c);return false;}}function debugprint(c,b,d){var a=c;if(typeof(c)=="string"){c=$(c);}if(typeof(b)=="string"){b=c.getElementById(b);}if(b){b.innerHTML=d;}else{if(!!c){c.innerHTML+=d+"<br/>";}else{debuglog(d);}}}function debugKey(a){var c;if(typeof(window.event)=="object"){c=window.event.keyCode;}else{c=a.keyCode;}var b=false;if(c==122){if(!!meco){meco.toggleFullscreen();b=true;}}if(c==117){if(mainDebug){mainDebug.adjustDisplay();}b=true;}if(typeof(customer.specialKey)=="function"){b=customer.specialKey(c);}if(b){a=null;return false;}}
function prepareVideo(){systemOK=systemTest();}function myUnLoad(){for(ePlayer in ePlayerList){ePlayer.stopEvent=function(){};}}function destroyPlayer(a){if(c_bLogFlow){console.log("trying to destroy player "+a+"...");}if(ePlayerList[a]){ePlayerList[a].destroy();delete ePlayerList[a];if(c_bLogFlow){console.log("... destroyed!");}}}var playerPanel=new Object();playerPanel.createNewPanel=function(a,c){oPanel=$(c);if(oPanel){return new playerPanel[oPanel.className](a,c);}else{return new playerPanel.noPanel(a,null);}};playerPanel.noPanel=function(a,c){this.ePlayer=(typeof(a)=="undefined")?null:a;if(!!this.ePlayer){this.ePlayer.panel=this;}this.init=function(){this.guiPause(false);};this.togglePause=function(){this.ePlayer.toggleUserPause();};this.guiPause=function(d){};this.toggleMute=function(){};this.userVolume=function(){};this.setTimeTotal=function(d){};this.setTimeElapsed=function(d){};this.showBuffering=function(d){};this.init=function(){};this.init();};playerPanel.hiddenPlayer=playerPanel.noPanel;playerPanel.classicBottom=function(a,c){this.ePlayer=(typeof(a)=="undefined")?null:a;this.oPanel=$(c);this.timeTotal=null;this.timeElapsed=null;if(!!this.ePlayer){this.ePlayer.panel=this;}this.init=function(){this.b_Pause=this.oPanel.getElementById("b_pause");if(this.b_Pause){this.b_Pause.ePlayer=this.ePlayer;this.b_Pause.onclick=function(){this.ePlayer.sendPlayerCommand("TOGGLEUSERPAUSE",null);};}this.b_Mute=this.oPanel.getElementById("b_sound_off");if(this.b_Mute){this.b_Mute.onclick=this.toggleMute.bind(this);}this.i_Volume=this.oPanel.getElementById("i_volume");this.a_setVolume=this.i_Volume.getElementsByClassName("volumeBar");for(var d=0;d<this.a_setVolume.length;d++){this.a_setVolume[d].onclick=this.setVolume.bind(this,parseInt(this.a_setVolume[d].id.split("_")[1]));}this.b_volumeUp=this.oPanel.getElementById("b_volumeUp");if(this.b_volumeUp){this.b_volumeUp.onclick=this.volumeUp.bind(this);}this.b_volumeDown=this.oPanel.getElementById("b_volumeDown");if(this.b_volumeDown){this.b_volumeDown.onclick=this.volumeDown.bind(this);}this.b_FullScreen=this.oPanel.getElementById("b_fullscreen");if(this.b_FullScreen){this.b_FullScreen.onclick=this.toggleFullScreen.bind(this);}this.b_skipForward=this.oPanel.getElementById("b_skip_forward");if(this.b_skipForward){this.b_skipForward.onclick=this.skipForward.bind(this);}this.b_skipBack=this.oPanel.getElementById("b_skip_back");if(this.b_skipBack){this.b_skipBack.onclick=this.skipBack.bind(this);}this.timeTotal=this.oPanel.getElementById("timeTotal");this.timeElapsed=this.oPanel.getElementById("timeElapsed");this.setTimeTotal("00:00");this.setTimeElapsed("00:00");this.buffering=this.oPanel.getElementById("showBuffering");this.guiPause(false);};this.togglePause=function(){this.ePlayer.toggleUserPause();};this.guiPause=function(d){if(d){btn=this.oPanel.getElementById("b_pause");if(btn){btn.id="b_play";btn.src=imgPreLoad[btn.id+"_hi"].src;}}else{btn=this.oPanel.getElementById("b_play");if(btn){btn.id="b_pause";btn.src=imgPreLoad[btn.id+"_hi"].src;}}};this.setVolume=function(d){this.ePlayer.volume(d);};this.volumeUp=function(){this.ePlayer.volumeUpDown(10);};this.volumeDown=function(){this.ePlayer.volumeUpDown(-10);};this.userVolume=function(d){globalVolume=d;if(this.i_Volume){this.i_Volume.style.height=(100-d)+"%";}};this.toggleMute=function(){this.ePlayer.toggleMute();btn=this.oPanel.getElementById("b_sound_off");if(!btn){btn=document.getElementById("b_sound_on");btn.id="b_sound_off";}else{btn.id="b_sound_on";}btn.src=imgPreLoad[btn.id+"_hi"].src;};this.setTimeTotal=function(d){if(!!this.timeTotal){this.timeTotal.innerHTML=d;}};this.setTimeElapsed=function(d){if(!!this.timeElapsed){this.timeElapsed.innerHTML=d;}};this.skipForward=function(){if(typeof(customer)!="undefined"){customer.skipForward(this.ePlayer);}};this.skipBack=function(){if(typeof(customer)!="undefined"){customer.skipBack(this.ePlayer);}};this.showBuffering=function(d){if(!!this.buffering){b=this.oPanel.getElementById("showBuffering");if(!!b){if(this.ePlayer.bBuffering){b.style.display="inline";if(!!d){this.oPanel.getElementById("bufferingProgress").innerHTML=d+"%";}}else{this.oPanel.getElementById("showBuffering").style.display="none";}}}};this.init();};playerPanel.simpleTrainingBottom=function(a,c){this.ePlayer=(typeof(a)=="undefined")?null:a;this.oPanel=$(c);this.timeTotal=null;this.timeElapsed=null;if(!!this.ePlayer){this.ePlayer.panel=this;}this.init=function(){this.b_Pause=this.oPanel.getElementById("b_pause");if(this.b_Pause){this.b_Pause.ePlayer=this.ePlayer;if(!this.b_Pause.onclick){this.b_Pause.onclick=function(){this.ePlayer.sendPlayerCommand("TOGGLEUSERPAUSE",null);};}}this.b_Mute=this.oPanel.getElementById("b_sound_off");if(this.b_Mute&&!this.b_Mute.onclick){this.b_Mute.onclick=this.toggleMute.bind(this);}this.i_Volume=this.oPanel.getElementById("i_volume");this.a_setVolume=this.i_Volume.getElementsByClassName("volumeBar");for(var d=0;d<this.a_setVolume.length;d++){this.a_setVolume[d].onclick=this.setVolume.bind(this,parseInt(this.a_setVolume[d].id.split("_")[1]));}this.b_volumeUp=this.oPanel.getElementById("b_volumeUp");if(this.b_volumeUp&&!this.b_volumeUp.onclick){this.b_volumeUp.onclick=this.volumeUp.bind(this);}this.b_volumeDown=this.oPanel.getElementById("b_volumeDown");if(this.b_volumeDown&&!this.b_volumeDown.onclick){this.b_volumeDown.onclick=this.volumeDown.bind(this);}this.b_FullScreen=this.oPanel.getElementById("b_fullscreen");if(this.b_FullScreen&&!this.b_FullScreen.onclick){this.b_FullScreen.onclick=this.toggleFullScreen.bind(this);}this.b_skipForward=this.oPanel.getElementById("b_skip_forward");if(this.b_skipForward&&!this.b_skipForward.onclick){this.b_skipForward.onclick=this.skipForward.bind(this);}this.b_skipBack=this.oPanel.getElementById("b_skip_back");if(this.b_skipBack&&!this.b_skipBack.onclick){this.b_skipBack.onclick=this.skipBack.bind(this);}this.timeTotal=this.oPanel.getElementById("timeTotal");this.timeElapsed=this.oPanel.getElementById("timeElapsed");this.setTimeTotal("00:00");this.setTimeElapsed("00:00");this.guiPause(false);};this.togglePause=function(){this.ePlayer.toggleUserPause();};this.setVolume=function(d){this.ePlayer.volume(d);};this.volumeUp=function(){this.ePlayer.volumeUpDown(10);};this.volumeDown=function(){this.ePlayer.volumeUpDown(-10);};this.skipForward=function(){if(typeof(customer)!="undefined"){customer.skipForward(this.ePlayer);}};this.skipBack=function(){if(typeof(customer)!="undefined"){customer.skipBack(this.ePlayer);}};this.guiPause=function(d){if(d){btn=this.oPanel.getElementById("b_pause");if(btn){btn.id="b_play";btn.src=imgPreLoad[btn.id].src;}}else{btn=this.oPanel.getElementById("b_play");if(btn){btn.id="b_pause";btn.src=imgPreLoad[btn.id].src;}}};this.userVolume=function(e){globalVolume=e;if(!!this.a_setVolume&&this.a_setVolume.length>0){var f=this.i_Volume.style.backgroundImage.substring(this.i_Volume.style.backgroundImage.indexOf("(")+1,(this.i_Volume.style.backgroundImage.lastIndexOf(")")));var d=f.substr(f.lastIndexOf("."),4);var f=f.substr(0,f.lastIndexOf("/")+1);this.i_Volume.style.backgroundImage="url("+f+"bg_volume_"+e+d+")";}else{if(this.i_Volume){this.i_Volume.style.height=(100-e)+"%";}}};this.toggleMute=function(){this.ePlayer.toggleMute();btn=this.oPanel.getElementById("b_sound_off");if(!btn){btn=document.getElementById("b_sound_on");btn.id="b_sound_off";}else{btn.id="b_sound_on";}btn.src=imgPreLoad[btn.id+"_hi"].src;};this.toggleFullScreen=function(){if(typeof(customer)!="undefined"&&customer.toggleFullScreen){customer.toggleFullScreen();}else{this.ePlayer.setFullScreen(true);}};this.setTimeTotal=function(d){if(!!this.timeTotal){this.timeTotal.innerHTML=d;}};this.setTimeElapsed=function(d){if(!!this.timeElapsed){this.timeElapsed.innerHTML=d;}};this.showBuffering=function(d){b=this.oPanel.getElementById("showBuffering");if(!!b){if(this.ePlayer.bBuffering){b.style.display="inline";if(!!d){this.oPanel.getElementById("bufferingProgress").innerHTML=d+"%";}}else{this.oPanel.getElementById("showBuffering").style.display="none";}}};this.init();};playerPanel.trainingBottom=function(a,c){this.ePlayer=(typeof(a)=="undefined")?null:a;this.oPanel=$(c);this.timeTotal=null;this.timeElapsed=null;if(!!this.ePlayer){this.ePlayer.panel=this;}this.init=function(){this.bUserPause=false;this.b_Pause=this.oPanel.getElementById("b_pause");if(this.b_Pause){this.b_Pause.onclick=this.togglePause.bind(this);}this.b_Mute=this.oPanel.getElementById("b_mute");if(this.b_Mute){this.b_Mute.onclick=this.toggleMute.bind(this);}this.i_Volume=this.oPanel.getElementById("i_volume");this.timeTotal=this.oPanel.getElementById("timeTotal");this.timeElapsed=this.oPanel.getElementById("timeElapsed");this.setTimeTotal("00:00");this.setTimeElapsed("00:00");this.guiPause(false);};this.togglePause=function(){econtioTraining.sendCommandToAllPlayers("TOGGLEUSERPAUSE",null,false);this.bUserPause=!this.bUserPause;this.private_guiPause(this.bUserPause);};this.guiPause=function(d){};this.private_guiPause=function(d){if(d){btn=this.oPanel.getElementById("b_pause");if(btn){btn.id="b_play";btn.src=imgPreLoad[btn.id+"_hi"].src;}}else{btn=this.oPanel.getElementById("b_play");if(btn){btn.id="b_pause";btn.src=imgPreLoad[btn.id+"_hi"].src;}}};this.userVolume=function(d){globalVolume=d;if(this.i_Volume){this.i_Volume.style.height=(100-d)+"%";}};this.toggleMute=function(){this.ePlayer.toggleMute();btn=this.oPanel.getElementById("b_sound_off");if(!btn){btn=document.getElementById("b_sound_on");btn.id="b_sound_off";}else{btn.id="b_sound_on";}btn.src=imgPreLoad[btn.id+"_a"].src;};this.setTimeTotal=function(d){if(!!this.timeTotal){this.timeTotal.innerHTML=d;}};this.setTimeElapsed=function(d){if(!!this.timeElapsed){this.timeElapsed.innerHTML=d;}};this.showBuffering=function(d){b=this.oPanel.getElementById("showBuffering");if(!!b){if(this.ePlayer.bBuffering){b.style.display="inline";if(!!d){this.oPanel.getElementById("bufferingProgress").innerHTML=d+"%";}}else{this.oPanel.getElementById("showBuffering").style.display="none";}}};this.init();};function initPlayer(a,c,f,g){a.customPlaylist=new Array();if(c.substr(c.length-8,8)=="playList"){var e=a.createPlaylist("myPlaylist","");adragItems=$(c).getElementsByClassName("dragItem");if(adragItems.length==0){adragItems=$(c).getElementsByClassName("menuItem");}if(adragItems.length==0){alert("Sorry, but there are no clips in the playlist!");rbmWindow3.allWindows.wndVideo.close();return;}for(var d=0;d<adragItems.length;d++){p=adragItems[d];a.customPlaylist.push(p);c=p.movieData[slText[p.statusShortLong]][selLanguage];if(c.indexOf("~")!=0){aFileName=c.split("~");c=aFileName[0];}p.MediaItem=a.addToPlayList(g+c+a.fileExtension,p.movieDataName,e);}$fx("skip_forw").setDisplay(true);$fx("skip_back").setDisplay(true);a.startPlaylist(e);}else{if(c.indexOf("~")!=0){aFileName=c.split("~");c=aFileName[0];}a.URL(g+c+a.fileExtension);}}function playVideo(B,a,n,A,h,i,c,s,l,d,w,v,f,q,z,m,x){z=!!z?z:null;m=!!m;h=!!h&&h!=="NaN"?h:0;w=!!w;d=!!d?d:"";var j=!s;x=!!x;i=i||"playerContainer_"+c+"/playerArea";var o=null;if(i.indexOf("/")!=-1){var k=i.split("/");try{o=$(k[0]).getElementById(k[1]);}catch(r){console.error("playVideo: target not found: "+i);return false;}}else{o=$(i);}if(h==0){var u=!!mecoVariables&&!!mecoVariables.STREAMING_PROVIDER?mecoVariables.STREAMING_PROVIDER:null;if(!u){h=1;}}switch(h){case 3:if(A==0){return false;}if(x){$fx(o.getParentById("wrapVideo")).setDisplay(true);}oIframe=document.createElement("iframe");oIframe.setAttribute("width","100%");oIframe.setAttribute("height","100%");oIframe.setAttribute("src","http://www.youtube.com/embed/"+a);oIframe.setAttribute("frameborder","0");oIframe.setAttribute("allowfullscreen","1");oIframe.setAttribute("title","YouTube video player");o.appendChild(oIframe);break;default:if((q&2)&&system.MediaPlayer.bAvail&&system.MediaPlayer.bRightVersion){}else{if(system.FlashPlayer.bAvail&&system.FlashPlayer.bRightVersion){n=(!!n)?n:".flv";switch(h){case 0:switch(u){case"interlake":if(A=="0"){return false;}if(x){$fx(o.getParentById("wrapVideo")).setDisplay(true);}a=""+A;newURL=mecoVariables.VIDEO_PATH["FLASH"]+a;var g=newURL.replace(/;/g,"/")+n;newURL=newURL+";"+n.replace(/\./,"")+";jw.xml";var y=mecoVariables.STREAMER["FLASH"]+newURL;break;case"nacamar":if(A=="0"){return false;}if(x){$fx(o.getParentById("wrapVideo")).setDisplay(true);}a=""+A;newURL=mecoVariables.VIDEO_PATH["FLASH"]+a;var g=newURL.replace(/;/g,"/")+n;var y=mecoVariables.STREAMER["FLASH"]+"&file="+g;if(c_bLogFlow){console.log(y);}break;case"rbm":if(a=="0"){return false;}if(x){$fx(o.getParentById("wrapVideo")).setDisplay(true);}break;}break;case 1:if(A=="0"){return false;}if(x){$fx(o.getParentById("wrapVideo")).setDisplay(true);}a=""+A;if(B==""){B=c_Customer+"/video";}newURL="../"+B+(B.lastIndexOf("/")!=(B.length-1)?"/":"")+a+(a.indexOf(".flv")==-1?n:"");var g=newURL;var y="file="+newURL;break;case 2:if(A=="0"){return false;}if(x){$fx(o.getParentById("wrapVideo")).setDisplay(true);}newURL="http://www.youtube.com/watch%3Fv%3D"+a;var g=newURL;var y="file="+newURL;break;}if(!ePlayerList[c]||ePlayerList[c].lastSourceType!=h||typeof(ePlayerList[c].p)=="undefined"){if(!o){rbmWindow.cleanUp($(k[0]));$(k[0]).innerHTML="<div id='playerArea' style='height: 100%;' />";o=$(k[0]).getElementById("playerArea");}if(c_bLogFlow){console.log("creating new player: "+c);}ePlayer=new playerTypes.FlashPlayer(c,mainDebug,"debugMPlayer","Flash Player "+c);ePlayerList[c]=ePlayer;ePlayer.windowlessVideo=j;ePlayer.fileExtension=n;ePlayer.lastSourceType=h;void playerPanel.createNewPanel(ePlayer,"c_panel_"+c);ePlayer.uiMode=w;if(d.indexOf("autostart")==-1){ePlayer.panel.guiPause(true);}if(customer&&customer.setFlashPlayerVars){v=customer.setFlashPlayerVars(v,f);}y=y.replace(/=/g,"~");y=y.replace(/&/g,"|");ePlayer.makePlayer(o,c,y+(!!v?"|"+v:""),d,g);ePlayer.bAutostart=m;if(!!z){ePlayer.playFromTC=z;}else{ePlayer.playFromTC=null;}}else{if(c_bLogFlow){console.log("reusing existing player: "+c);}ePlayer=ePlayerList[c];ePlayer.bAutostart=m;if(!!z){ePlayer.playFromTC=z;}else{ePlayer.playFromTC=null;}ePlayer.URL(g);}}}ePlayer.initVolume=globalVolume;if(typeof(timeLines[l])=="object"){ePlayer.timeLine=timeLines[l];ePlayer.timeLine.init();}else{ePlayer.timeLine=null;}break;}return true;}
var c_bLogFlow=false;var cmsXSLDebug=false;var bTinyMCE_DoNotWaitForDOM=true;var strTinyMCE_baseURL="";var globalVolume=100;var timeLines=new Object();var selLanguage=null;mecoLang=null;var strUser="";var idLesson=null;var imgPreLoad=new Object();var meco;var ePlayer;var mainDebug;var systemOK;var nDVDactive;function myOnUnload(){if(!customer.leavePage&&((browserDetect.bIsSF&&parseInt(browserDetect.version)==4)||browserDetect.bIsCR)){customer.leavePage=false;return cms.getText("framework",selLanguage,"leavePage");}customer.leavePage=false;}function myOnLoad(){strTinyMCE_baseURL=c_Customer+"/_js/tiny_mce";window.onbeforeunload=myOnUnload;cms.init();createEventListener($("main"),"keydown",debugKey);mainDebug=new econtioDebug("debugArea");var b="<b>"+browserDetect.browser+"</b>";b+="<br><b>Version: </b>"+browserDetect.version;b+="<br><b>OS: </b>"+browserDetect.OS;b+="<br><br>"+location.href;debuglog(b);if(typeof(mecoOffline)!="undefined"){meco=new mecoOffline();}else{meco=new mecoOnline();}meco.init();mecoVariables.VIDEO_DRIVE="";mecoVariables.STREAMING_PROVIDER="nacamar";mecoVariables.STREAMER=new Object();mecoVariables.STREAMER["FLASH"]="streamer=rtmp://fms.edge.newmedia.nacamar.net/linguatv";mecoVariables.VIDEO_PATH=new Object();mecoVariables.VIDEO_PATH["FLASH"]="composeCMS/";mecoVariables.VIDEO_PATH["PROGRESSIVE"]="video/";meco.switchDVD=function(d,c){abortSwitchDVD();};rbmWindow3.init();rbmWindow3.createFader();customer.onload();systemOK=systemTest();systemOK=true;if(!systemOK){$fx("JSactiv").setDisplay(false);rbmWindow3.allWindows.wndSystest.open((document.body.offsetWidth-500)/2,100,500,600,false,true,true,false);return;}meco.execScript("pageScript",false,initPage);}function initPage(){cms.recFields.t_Product=["orderNumber","productName","IDLanguage"];if(!!mecoVariables.DVDACTIVE&&mecoVariables.DVDACTIVE=="2"){nDVDactive=2;}else{nDVDactive=1;}cms.history.pushHistory("framework",customer.selectMenu.bind(customer,"mainMenu","home"));cms.history.pushHistory("framework",customer.selectMenu.bind(customer,"mainMenu","home"));cms.history.setHistory();requestXMLContent();}var customer=new Object();customer.leavePage=false;customer.marginLeft=200;customer.topHeight=133;customer.bottomHeight=45;customer.bScrollPage=true;customer.resizeArea="main";customer.minBodyWidth=1154;customer.bLimitWidth=true;customer.limitWidth=1002;customer.screenAlertCounter=0;customer.screenAlertCounterMax=2;customer.checkForm=new Object();customer.fullscreenMode="";customer.flashVideoPlayer="jwplayer45noecontio.swf";customer.setFlashPlayerVars=function(c,b){c=c.replace(/~logo/g,"|logo~"+c_Customer+"/images/cm_playerlogo.png");c=c.replace(/~displayclick/g,"|dispalyclick~true");c=c.replace(/~autostart/g,"|autostart~true");c=c.replace(/~stretching/g,"|stretching~fill");if(!!b){c+="|image~"+b;}c=c.substr(0,1)=="|"?c.substring(1,c.length):c;return c;};customer.serverMode=".php";customer.onload=function(){rbmWindow.bScrollPage=this.bScrollPage;};customer.getDevJSCode=function(b,d,c){c=!!c;var e=new rbmAjax();e.XMLeval=false;e.target=d;e.getXML(b,null,c);};customer.levelSelect=function(d,b,c){if(!!d){econtioTraining.gotoLevel(d,b);}};customer.startPractice=function(b,c,d){d=d||"";switch(c){case 100:this.scrollPage();cms.showData("f_Course",b,"c_contentInner",d,true);break;case 500:this.scrollPage();cms.showData("object_"+b,b,"c_contentInner",d,true);break;case 501:case 502:this.scrollPage();cms.listData("f_NewsMain",b,"c_contentInner",d,true);break;case 530:this.scrollPage();cms.showData("f_Blog",b,"c_contentInner",d,true);break;case 540:this.scrollPage();cms.listData("f_CalendarMain",b,"c_contentInner",d,true);break;case 550:this.scrollPage();cms.showData("f_Events",b,"c_contentInner",d,true);break;case 401:cms.showData("object_"+b,b,"window_Area",d,true);cms.userLog.add("l=1&a=2&at=1&ac=21&c="+b+"&ct=401");break;default:econtioTraining.addUnit("object_"+b,null,null,b);break;}};customer.previewLesson=function(c,b){cms.createAjax("p_DemoLesson");econtioTraining.addUnit("p_DemoLesson",null,null,c,null,"lang="+b);};customer.initAfterInitialRendering=function(){this.oContent=new rbmAjax();this.oContent.bRender=false;customer.initMenus();if(!!customer.currentPage){econtioMenu.menuList.menu_mainMenu.selectMenu(customer.currentPage);}else{customer.currentPage="";var b=oLesson.selectNodes("//menu[@id = 'mainMenu']/descendant::menuItem[@selected = 1]");if(b.length>0){this.currentPage=b[b.length-1].getAttribute("id");}}customer.contentInner=$("c_page_"+idUnit).getElementById("c_contentInner");this.setPageWLimit(this.bLimitWidth);this.resize();};customer.setPageWLimit=function(c){if(c){var b=$("c_page_framework");b.style.width=this.limitWidth+"px";var b=$("maintemplate");b.style.width=(this.limitWidth)+"px";}else{var b=$("c_page_framework");b.style.width="auto";var b=$("maintemplate");b.style.width="auto";}this.bLimitWidth=c;this.resize();};customer.scrollPageDefault=function(){var b=$("c_contentArea");var b=$("main");b.scrollTop=0;b.style.height="auto";document.getElementsByTagName("body")[0].style.overflow="hidden";document.getElementsByTagName("body")[0].style.height="auto";document.getElementsByTagName("body")[0].scrollTop=0;};customer.resize=function(){this.bodySize=rbmWindow.getBodyDimensions(this.bScrollPage);var c="mainWrapper";if(this.bodySize.x>this.minBodyWidth){if(!this.bLimitWidth){$(c).style.width="90%";$(c).style.marginLeft="5%";$(c).style.marginRight="5%";}else{$(c).style.marginLeft=(browserDetect.bIsIE&&parseInt(browserDetect.version)==8)?"10.5%":"10%";}}else{$(c).style.width="auto";$(c).style.overflow="auto";$(c).style.marginLeft="0px";$(c).style.marginRight="0px";}if(this.bScrollPage){this.resizeArea=this.resizeArea==""?document.getElementsByTagName("body")[0]:this.resizeArea;var b=$(this.resizeArea);if(!!b&&typeof(b.resize)=="function"){b.style.overflow="auto";b.resize(this.bodySize.y);rbmWindow.addTouchScroll(b);}else{b.style.overflow="auto";b.style.height=(this.bodySize.y)+"px";rbmWindow.addTouchScroll(b);}}else{$(c).style.overflow="hidden";$("main").style.overflow="hidden";var b=$("c_contentArea");if(!!b&&typeof(b.resize)=="function"){b.resize(this.h);}else{b.style.height=(this.bodySize.y-this.topHeight-this.bottomHeight-5)+"px";}}rbmWindow.resizeFader(this.bodySize.y);rbmWindow.bodyResize();this.h=this.bodySize.y;return this.bodySize;};customer.initMenus=function(){};customer.selectMenu=function(d,c,e,b){if(!!econtioTraining&&!!econtioTraining.enableOverlayVideoElement){econtioTraining.enableOverlayVideoElement(false);}b=!!b;if(strPageMode!="ajax"){return true;}if(!econtioMenu.menuList["menu_"+d]){return false;}if(d!="languageMenu"&&!b){cms.history.pushHistory("framework_"+d+"_"+c,customer.selectMenu.bind(customer,d,c,e));cms.history.setHistory();}aSelectPage=econtioMenu.menuList["menu_"+d].selectMenu(c,e);if(aSelectPage===true){return true;}if(d!="languageMenu"&&d!="closeMenu"){this.currentPage=c;}if(!e){this.oContent.bRender=false;if(!!aSelectPage&&typeof(aSelectPage)=="object"&&!!aSelectPage[2]&&!!aSelectPage[1]&&!!cms[aSelectPage[2]]){cms[aSelectPage[2]](aSelectPage[1],(!!aSelectPage[4]?aSelectPage[4]:0),(!!aSelectPage[5]?aSelectPage[5]:customer.contentInner),(!!(aSelectPage[3])?aSelectPage[3].replace(/&amp;/gi,"&"):""),true);}else{if(c_bLogFlow){console.warn("Unable to complete Menu action! Missing data: aSelectPage:"+aSelectPage);}}}if(d=="mainMenu"){this.scrollPage(0);}return false;};customer.scrollPage=function(c){if(this.bScrollPage){var b=$("main");if(!!b&&b.scrollTop>0){c=!c?0:c;b.gotoTop=new rbmFX.scrollTo(b,1,0,5);b.gotoTop.go();}}};customer.selectLanguage=function(f,c){switch(f){case"combo":c=$("languageCombo").value;break;case"flag":break;case"menu":break;default:break;}if(selLanguage!=c){var d=selLanguage;selLanguage=c;var b=oLesson.selectNodes("//data");if(b.length==0){alert("customer.selLanguage: unit not found!");return false;}b[0].setAttribute("language",c);var e=this.currentPage;oLesson.bInitialRendering=true;customer.selectMenu("mainMenu","home",true,true);cms.oAjax.framework.renderToDoc();cms.history.pushHistory("framework_"+d,customer.selectMenu.bind(customer,"languageMenu",d));cms.history.setHistory();this.currentPage=e;customer.selectMenu("mainMenu",e);}};customer.doLogin=function(c,e,d,b){b=!!b?b:"";d=(!d)?0:1;this.oContent.bRender=false;this.oContent.target=$("c_unit_"+idUnit).getElementById(e);this.oContent.done=function(){rbmWindow3.allBlur();var f=this.target;cms.oAjax.framework.renderToDoc(f,false,this.oXML);};this.oContent.target=e;c=$("c_unit_"+idUnit).getElementById(c);this.oContent.getXML("p_Login"+this.serverMode+"?lang="+selLanguage+"&user="+strUser+"&action="+d+"&mode="+b,c,true);};customer.specialKey=function(d){var c=false;if(d==122){meco.toggleFullscreen();}if(d==120){reloadCSS();customer.getDevJSCode("devJSCode.php","devJS_Area");c=true;}if(d==119){var b=$("bgHiLighter");if(b){b.setDisplay(false);}c=true;}if(d==118){if(mainDebug){mainDebug.adjustDisplay();}c=true;}if(d==27){customer.abortAll();c=true;}return c;};customer.abortAll=function(){alert("customer.abortAll");};customer.updateXMLCaption=function(c,e,d){sXPath="//clip[@id = '"+e+"']/descendant::setCaption";aNodeSet=cms.oAjax[c].selectNodes(sXPath);if(aNodeSet.length>0){var f=aNodeSet[0].parentNode;var b=new rbmAjax();b.render=false;b.done=function(){if(!!this.oXML){aNodes=this.selectNodes("//setCaption");if(aNodes.length>0){var h=aNodeSet.length;while(h>0){f.removeChild(aNodeSet[--h]);}var g;for(h=0;h<aNodes.length;h++){g=aNodes[h].cloneNode(true);f.appendChild(g);}}else{alert(cms.getText("CMS_t_Object_Configuration",selLanguage,"noCaptionFile"));}}else{alert(cms.getText("CMS_t_Object_Configuration",selLanguage,"noCaptionFile"));}if(cms.aUpdateSequence.length>0){cms.aUpdateSequence.pop()();}};b.getXML("dispatcher.php?page=CMS_t_MediaSubtitle&mode=ajax&action="+cms.c_Verify+"&id="+d+"&user="+strUser,null,true);}else{if(cms.aUpdateSequence.length>0){cms.aUpdateSequence.pop()();}}};customer.makeSWF=function(h,g,d){var b={};var f={};var c={};var e={};f.allowscriptaccess="always";f.allowfullscreen="false";c.name=g;c.id=g;oTarget=document.getElementById(d);swfobject.embedSWF(h,oTarget,"100%","100%","9.0.0",false,b,f,c);};customer.initTraining=function(){var b=$("c_unit_"+idUnit);b=!b?$("c_page_"+idUnit):b;var c=b.getElementById("def-iframe");if(!!c){if(document.addEventListener){b.addEventListener("dblclick",translatewidgetGetWord,false);}else{b.ondblclick=translatewidgetGetWord;}if(!translatewidgetTarget){translatewidgetTarget=c.title;}}};translatewidgetLast=1;translatewidgetLastSelection="";translatewidgetClickInDef=false;translatewidgetTarget=null;translatewidgetGetWord=function(g){var f=$("c_unit_"+idUnit);f=!f?$("c_page_"+idUnit):f;var h=f.getElementById("def-iframe");if(h){if(window.event){g=[];g.pageX=event.clientX+document.body.scrollLeft;g.pageY=event.clientY+document.body.scrollTop;}translatewidgetLast=translatewidgetLast+1;var d="";var c="";if(window.getSelection){d=window.getSelection();c="window.getSelection()";}else{if(document.getSelection){d=document.getSelection();c="document.getSelection()";}else{if(document.selection){d=document.selection.createRange().text;c="document.selection.createRange()";}else{return;}}}d=d+"";this.translatewidgetLastSelection="X"+d;srcLang=translatewidgetTarget.substr(0,2);destLang=selLanguage;switch(srcLang){case"fr":case"it":case"es":if(selLanguage!="de"&&selLanguage!="en"){destLang="en";}break;default:break;}f.getElementById("def-iframe").src="http://"+destLang+translatewidgetTarget+encodeURIComponent(d);}};customer.injectPoints=function(c,b){var d=c.contentWindow.document;if(c.src.indexOf("swfWrapper")==-1){a=d.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src","../../_js/points.php?id="+b);c.contentWindow.document.getElementsByTagName("head")[0].appendChild(a);a=d.createElement("link");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href","../../_css/htmlPractice.css");c.contentWindow.document.getElementsByTagName("head")[0].appendChild(a);a=d.createElement("link");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href","../../_css/practiceResult.css");c.contentWindow.document.getElementsByTagName("head")[0].appendChild(a);}else{a=d.createElement("link");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href","./_css/practiceResult.css");c.contentWindow.document.getElementsByTagName("head")[0].appendChild(a);}};customer.transferResult=function(c,d,b,e){d=d<0?0:d;d=d>b?b:d;cms.storeData("t_ClientCompetence",0,e,"",true,false,null,null,"points="+d+"&idobject="+c+"&mpoints="+b);};customer.checkInputCharacters=function(e){var d=e.selectionStart;var b=e.selectionEnd;var c=new RegExp("'","g");if(c.test(e.value)){e.value=e.value.replace(c,"’");e.selectionStart=d;e.selectionEnd=b;e.scrollIntoView(false);}};customer.skipBack=function(b){var c=b.timeLine.eventCounter-2;if(!!b.timeLine.oEventList[c]){b.setTC(b.timeLine.oEventList[c].tc,-1);}};customer.skipForward=function(b){var c=b.timeLine.eventCounter+1;if(!!b.timeLine.oEventList[c]){b.setTC(b.timeLine.oEventList[c].tc,-1);}};customer.toggleFullScreen=function(){var b=$("c_unit_"+idUnit);if(!!b){var d=b.getElementById("maintemplate");if(d.className.indexOf("fullscreen")==-1){d.className+=" fullscreen"+customer.fullscreenMode;}else{strR="fullscreen"+customer.fullscreenMode;var c=new RegExp(strR,"g");d.className=d.className.replace(c,"");}}};customer.handleSmallScreen=function(){if(rbmWindow.bodyDimensions.y<740){if(mecoVariables.SCREEN_HEIGHT>910){if(customer.screenAlertCounter<customer.screenAlertCounterMax){customer.screenAlertCounter++;}customer.fullscreenMode="";}else{if(customer.screenAlertCounter<customer.screenAlertCounterMax){customer.screenAlertCounter++;}customer.fullscreenMode="768";}}};customer.adjustFullscreen=function(){var b=$("c_unit_"+idUnit);if(!!b){var d=b.getElementById("maintemplate");if(d.className.indexOf("fullscreen")!=-1&&customer.fullscreenMode!=""){strR="fullscreen";var c=new RegExp(strR,"g");d.className=d.className.replace(c,"fullscreen"+customer.fullscreenMode);}}};customer.setSubtitleSpeaker=function(c,g,d,f){g=$(g);aNodeSet=cms.oAjax[c].selectNodes("//setCaption[count(preceding-sibling::*) mod 2 = "+f+"]");var b=aNodeSet.length;for(var e=0;e<b;e++){aNodeSet[e].setAttribute("speaker",d);}cms.oAjax[c].renderToDoc();};customer.shiftSubtitleSpeaker=function(c,g,h){g=$(g);aNodeSet=cms.oAjax[c].selectNodes("//setCaption[@ID >= "+h+"]");var b=aNodeSet.length;var f="";var d;for(var e=0;e<b;e++){d=aNodeSet[e].getAttribute("speaker");aNodeSet[e].setAttribute("speaker",f);f=d;}cms.oAjax[c].renderToDoc();};customer.getLicenceOrder=function(e){var b=$("productLicence_"+e).getElementsByClassName("IDProductLicence");var d=0;for(var c=0;c<b.length;c++){if(b[c].checked){d=b[c].value;}}return d;};customer.checkLicence=function(b){cms.listData("f_Course",b,"f_Course_list");};if(typeof(playerPanel)!="undefined"){playerPanel.linguaTVTrainingBottom=playerPanel.simpleTrainingBottom;playerPanel.LTVIntensiveTrainingBottom=playerPanel.simpleTrainingBottom;}customer.trackAjax=function(b,d,e,c){};customer.answerQuestion=function(e,d,b){var c=$(e).getElementById("answerIcon");c.oldsrc=c.src;c.src=c.src.replace(/answerX/g,"answer"+(d&15));window.setTimeout(this.executeAnsweredQuestion.bind(this,e,d,b),3000);};customer.executeAnsweredQuestion=function(f,e,c){var b=$("rbmFlipBox_transcriptFlipbox");b.switchTeaser(e);if(e==0){econtioTraining.sendPlayerCommand("mainPlayer_"+c,"PLAY");}else{var d=$(f).getElementById("answerIcon");d.src=d.oldsrc;}};customer.orderLoginExists=function(h,e){var j=$("p_Order"+h);var d=$fx(j.getElementByClassName("t_Client_edit"));d.setDisplay(!e);var b=d.getElementsByTagName("input");for(var g=0;g<b.length;g++){b[g].disabled=e;}var b=d.getElementsByTagName("select");for(var g=0;g<b.length;g++){b[g].disabled=e;}var f=j.getElementById("email1");$fx(f.parentNode.parentNode.parentNode).setDisplay(!e);f.disabled=e;var f=j.getElementById("password1");$fx(f.parentNode.parentNode.parentNode).setDisplay(!e);f.disabled=e;};customer.drivesHilight=function(d){var b=$("c_unit_"+idUnit).getElementsByClassName("drivesHilight");for(var c=0;c<b.length;c++){$fx(b[c].firstChild).setClass("drivesHilight_inner");}if(d>=0&&d<b.length){b[d].firstChild.setClass("drivesHilight_innerA");}};customer.debugTest=function(){customer.drivesHilight(1);myPlayer="mainPlayer_18";econtioTraining.sendPlayerCommand(myPlayer,"PAUSE","");customer.currentSubTemplate=parseInt("2")>0?parseInt("2"):customer.currentSubTemplate+1;var b="";b="//subTemplate["+customer.currentSubTemplate+"]/child::*";mytarget="c_mainPlayer";if(mytarget=="c_overlayVideo"){mytarget=econtioTraining.enableOverlayVideoElement(true,"mainPlayer");}else{mytarget=$("c_page_object_18_18");if(!mytarget){mytarget=$("c_unit_"+idUnit).getElementById("c_mainPlayer");}else{mytarget=mytarget.getElementById("c_mainPlayer");}}var c="//lesson[@id='18']/child::*";cms.renderSubTemplate("object_18",b,"dummy",mytarget,"//data[1]",c);customer.currentSubTemplate=parseInt("-1")>0?parseInt("-1"):customer.currentSubTemplate+1;var b="";b="//subTemplate[@id='intro_crossCountry']/child::*";mytarget="c_contentRight";if(mytarget=="c_overlayVideo"){mytarget=econtioTraining.enableOverlayVideoElement(true,"");}else{mytarget=$("c_page_object_18_18");if(!mytarget){mytarget=$("c_unit_"+idUnit).getElementById("c_contentRight");}else{mytarget=mytarget.getElementById("c_contentRight");}}var c="//lesson[@id='18']/child::*";cms.renderSubTemplate("object_18",b,"dummy",mytarget,"//data[1]",c);return false;};
var econtioMenu=new Object();econtioMenu.menuList=new Object();econtioMenu.initAllMenus=function(b,a){if(c_bLogFlow){console.warn("calling deprecated econtioMenu.initAllMenus");}};econtioMenu.createNewMenu=function(e,d){var b=$(e);if(!b){return false;}var g=b.className.split(" ");for(var f=0;f<g.length;f++){if(!!econtioMenu[g[f]]){if(!this.menuList[b.id]){this.menuList[b.id]=new econtioMenu[g[f]](e,d);}else{var a=e.id.split("_");this.menuList[b.id].menuXMLNodeID=a[a.length-1];this.menuList[b.id].myContainer=$("c_unit_"+idUnit).getElementById("menuBlock_"+this.menuList[b.id].menuXMLNodeID);}return this.menuList[b.id];}else{if(g[f]!="menu"){console.warn("econtioMenu["+g[f]+"] is not defined!");}}}};econtioMenu.dropDownMenu=function(g,b,h){try{var a=$("c_unit_"+idUnit).getElementById("menu_"+b);var d=$("c_unit_"+idUnit).getElementById("menuSub_"+b);}catch(f){}if(!!d&&!d.dropped){d.dropped=true;if(browserDetect.bIsIE&&parseInt(browserDetect.version)==7){$fx(d).setDisplay(true);}if(!d.adjusted){if(browserDetect.bIsIE&&parseInt(browserDetect.version)==7){$fx(d).setSize(Math.max(a.parentNode.offsetWidth,d.offsetWidth),-1);}else{d.style.minWidth=a.parentNode.offsetWidth+"px";}d.adjusted=true;}}if(browserDetect.bIsIE&&parseInt(browserDetect.version)==8){c=(Coordinates.northWestOffsetMoz(a.parentNode,true,-1).plus(new Coordinate(0,a.parentNode.offsetHeight)));$fx(d).move(c.x,c.y);}};econtioMenu.hidedropDownMenu=function(d,a,e){if(browserDetect.bIsIE&&parseInt(browserDetect.version)==7){var b=$("c_unit_"+idUnit).getElementById("menuSub_"+a);b.style.display="none";b.dropped=false;}};econtioMenu.menuClassic=function(menuHTMLNode,dataType){var bLeftMenuSelected=false;this.oMenuHTMLNode=menuHTMLNode;this.init=function(dataType){this.dataType=dataType;var x=this.oMenuHTMLNode.id.split("_");this.menuXMLNodeID=x[x.length-1];this.myContainer=$("c_unit_"+idUnit).getElementById("menuBlock_"+this.menuXMLNodeID);if(!this.oMenu){this.oMenu=new rbmAjax();this.oMenu.getXSL(c_Customer+"/xsl/includeMenu.xsl");if(!!dataType){var oAjax=cms.oAjax[dataType]||cms.oAjax[dataType+"_search"];this.oMenu.oXML=oAjax.oXML;this.oMenu.done=function(){oAjax.onRenderingCompleted();};}else{this.oMenu.oXML=oLesson.oXML;this.oMenu.done=function(){oLesson.onRenderingCompleted(null,false);};}}};this.init(dataType);this.selectMenu=function(idItem,bDoNotCallPage){var strLessonQuery="lesson[@id = '"+idLesson+"']/descendant::";var aMenuNodes=this.oMenu.selectNodes("//"+strLessonQuery+"menu[string-length(@mode) = 0 or @mode != 'statusMenu' or @id = '"+this.menuXMLNodeID+"']/descendant::menuItem");if(aMenuNodes.length==0){strLessonQuery="";var aMenuNodes=this.oMenu.selectNodes("//"+strLessonQuery+"menu[string-length(@mode) = 0 or @mode != 'statusMenu' or @id = '"+this.menuXMLNodeID+"']/descendant::menuItem");if(aMenuNodes.length==0){console.warn("XML rootnode for menu "+this.menuXMLNodeID+" not found! ");console.dirxml(this.oMenu.oXML);return false;}}for(var i=0;i<aMenuNodes.length;i++){aMenuNodes[i].setAttribute("selected","0");}aMenuNodes=this.oMenu.selectNodes("//"+strLessonQuery+"menu[@id = '"+this.menuXMLNodeID+"']/descendant::*[@id = '"+idItem+"']/ancestor-or-self::menuItem");if(aMenuNodes.length==0){console.warn("XML axis "+idItem+" for menu "+this.menuXMLNodeID+" not found!");return false;}for(var i=0;i<aMenuNodes.length;i++){aMenuNodes[i].setAttribute("selected","1");}aMenuNodes=this.oMenu.selectNodes("//"+strLessonQuery+"menu[@id = '"+this.menuXMLNodeID+"']/descendant::*[@id = '"+idItem+"']");var leftMenu=null;var destHREF=aMenuNodes[0].getAttribute("href");var destDataType=aMenuNodes[0].getAttribute("dataType");var destAction=aMenuNodes[0].getAttribute("action");var destParam=aMenuNodes[0].getAttribute("param");var destID=aMenuNodes[0].getAttribute("destID");var destTarget=aMenuNodes[0].getAttribute("target");var destCommand=aMenuNodes[0].getAttribute("command");if((!destAction||destAction=="")&&(!!destHREF&&destHREF!="")&&(!destCommand||destCommand=="")){return true;}var selectSubNodeID=aMenuNodes[0].getAttribute("subselect");while(!!selectSubNodeID){var aSubNode=this.oMenu.selectNodes("//"+strLessonQuery+"menu[@id = '"+this.menuXMLNodeID+"']/descendant::*[@id = '"+selectSubNodeID+"']");if(aSubNode.length==0){console.warn("XML subnode "+selectSubNodeID+" in "+idItem+" not found!");return;}aSubNode[0].setAttribute("selected","1");destHREF=aSubNode[0].getAttribute("href");destDataType=aSubNode[0].getAttribute("dataType");destAction=aSubNode[0].getAttribute("action");destParam=aSubNode[0].getAttribute("param");destID=aSubNode[0].getAttribute("destID");destTarget=aSubNode[0].getAttribute("target");selectSubNodeID=aSubNode[0].getAttribute("subselect");var destCommand=aMenuNodes[0].getAttribute("command");if(!!destCommand){eval(destCommand);alert(destDataType);if(!destDataType&&!selectSubNodeID){return false;}}aMenuNodes=this.oMenu.selectNodes("//"+strLessonQuery+"menu[@id = '"+this.menuXMLNodeID+"']/descendant::*[@id = '"+selectSubNodeID+"']/descendant::menuBlock");if(aMenuNodes.length>0){leftMenu=aMenuNodes[0];}}if(!leftMenu){aMenuNodes=this.oMenu.selectNodes("//"+strLessonQuery+"menu[@id = '"+this.menuXMLNodeID+"']/descendant::*[@id = '"+idItem+"']/descendant::menuBlock");if(aMenuNodes.length!=0){leftMenu=aMenuNodes[0];}}var aMenuNodes=this.oMenu.selectNodes("//"+strLessonQuery+"menu[@id = '"+this.menuXMLNodeID+"']");if(aMenuNodes.length==0){console.warn("XML rootnode for menu "+this.menuXMLNodeID+" not found!");return false;}if(!!destCommand){eval(destCommand);if(!destDataType&&!selectSubNodeID){return false;}}if(!bDoNotCallPage){if(!browserDetect.bXSLIncludeBug){for(x in econtioMenu.menuList){y=econtioMenu.menuList[x];var aMenuNodes=y.oMenu.selectNodes("//"+strLessonQuery+"menu[@id = '"+y.menuXMLNodeID+"']");y.oMenu.renderToDoc(y.myContainer,false,aMenuNodes[0]);}oLesson.onRenderingCompleted(this.myContainer,false);}else{var menuName=aMenuNodes[0].getAttribute("id");econtioMenu.cloneMenuStructure(menuName,aMenuNodes[0]);cms.oAjax[menuName].renderToDoc(this.myContainer,false,null);oLesson.onRenderingCompleted(null,false);}}if(!!leftMenu){this.renderLeftMenu(leftMenu,bDoNotCallPage);}if(!!destHREF||!!destDataType||!!destAction){var aR=[destHREF,destDataType,destAction,destParam,destID,destTarget];return aR;}else{return null;}};this.renderLeftMenu=function(oItem,bDoNotCallPage){oItem.setAttribute("language",selLanguage);var target=$("c_unit_"+idUnit).getElementById("c_"+oItem.getAttribute("target"));if(!!oItem.getAttribute("leftWidth")&&parseInt(oItem.getAttribute("leftWidth"))>0){target.parentNode.defaultWidth=target.parentNode.offsetWidth;target.parentNode.style.width=oItem.getAttribute("leftWidth")+"px";target.defaultWidth=target.offsetWidth;var margin=oItem.getAttribute("margin")|0;target.style.width=(oItem.getAttribute("leftWidth")-2*parseInt(margin))+"px";}else{if(!!target.defaultWidth){target.parentNode.style.width=target.parentNode.defaultWidth+"px";target.style.width=target.defaultWidth+"px";}}target.innerHTML="...";if(!bDoNotCallPage){if(!browserDetect.bXSLIncludeBug){this.oMenu.renderToDoc(target,false,oItem);oLesson.onRenderingCompleted(null,false);}else{econtioMenu.cloneMenuStructure("menuLeft",oItem);cms.oAjax.menuLeft.renderToDoc(target,false,null);oLesson.onRenderingCompleted(null,false);}}};};econtioMenu.menuLeftClassic=econtioMenu.menuClassic;econtioMenu.menuclassicDropDown=econtioMenu.menuClassic;econtioMenu.menugraphic=econtioMenu.menuClassic;econtioMenu.cloneMenuStructure=function(d,h){cms.createAjax(d,c_Customer+"/xsl/includeMenu.xsl");cms.oAjax[d].loadXML("<oMenu ></oMenu>");var j=oLesson.selectNodes("//data");if(j.length>0){var b=j[0].cloneNode(false);j=oLesson.selectNodes("//page");if(j.length>0){var f=j[0].cloneNode(false);b.appendChild(f);j=oLesson.selectNodes("//user");if(j.length>0){var a=j[0].cloneNode(false);b.appendChild(a);j=oLesson.selectNodes("//textSet");for(var g=0;g<j.length;g++){var k=j[g].cloneNode(true);b.appendChild(k);}j=oLesson.selectNodes("//lesson[@id = '"+idLesson+"']");if(j.length>0){var e=j[0].cloneNode(false);b.appendChild(e);oInnerNode=e;}else{oInnerNode=b;}if(!!h){oNode=h.cloneNode(true);oInnerNode.appendChild(oNode);}cms.oAjax[d].oXML.documentElement.appendChild(b);}}}};econtioMenu.menuleftGraphic=function(b,a){var d=false;this.oMenuHTMLNode=b;this.init=function(f){var e=this.oMenuHTMLNode.id.split("_");this.menuXMLNodeID=e[e.length-1];this.myContainer=$("c_unit_"+idUnit).getElementById("menuBlock_"+this.menuXMLNodeID);if(!this.oMenu){this.oMenu=new rbmAjax();this.oMenu.getXSL(c_Customer+"/xsl/includeMenu.xsl");if(!!f){var g=cms.oAjax[f]||cms.oAjax[f+"_search"];this.oMenu.oXML=g.oXML;this.oMenu.done=function(){g.onRenderingCompleted();};}else{this.oMenu.oXML=oLesson.oXML;this.oMenu.done=function(){oLesson.onRenderingCompleted(null,false);};}}};this.init(a);this.selectMenu=function(p){var k="lesson[@id = '"+idLesson+"']/descendant::";var l=this.oMenu.selectNodes("//"+k+"menu[string-length(@mode) = 0 or @mode != 'statusMenu' or @id = '"+this.menuXMLNodeID+"']/descendant::menuItem");if(l.length==0){k="";var l=this.oMenu.selectNodes("//"+k+"menu[string-length(@mode) = 0 or @mode != 'statusMenu' or @id = '"+this.menuXMLNodeID+"']/descendant::menuItem");if(l.length==0){console.warn("XML rootnode for menu "+this.menuXMLNodeID+" not found! "+this.menuXMLNodeID);console.dirxml(this.oMenu.oXML);return false;}}for(var j=0;j<l.length;j++){l[j].setAttribute("selected","0");}l=this.oMenu.selectNodes("//"+k+"menu[@id = '"+this.menuXMLNodeID+"']/descendant::*[@id = '"+p+"']");if(l.length==0){console.warn("XML axis "+p+" for menu "+this.menuXMLNodeID+" not found!");return false;}for(var j=0;j<l.length;j++){l[j].setAttribute("selected","1");}l=this.oMenu.selectNodes("//"+k+"menu[@id = '"+this.menuXMLNodeID+"']/descendant::*[@id = '"+p+"']");var f=null;var g=l[0].getAttribute("href");var h=l[0].getAttribute("dataType");var m=l[0].getAttribute("action");var e=l[0].getAttribute("param");var o=l[0].getAttribute("destID");var q=l[0].getAttribute("target");l=this.oMenu.selectNodes("//"+k+"menu[@id = '"+this.menuXMLNodeID+"']");this.renderLeftMenu(l[0]);if(!browserDetect.bXSLIncludeBug){for(x in econtioMenu.menuList){y=econtioMenu.menuList[x];var l=y.oMenu.selectNodes("//"+k+"menu[@id = '"+y.menuXMLNodeID+"']");y.oMenu.renderToDoc(y.myContainer,false,l[0]);}}if(!!g||!!h||!!m){var n=[g,h,m,e,o,q];return n;}else{return null;}};this.renderLeftMenu=function(f){var e=this.myContainer;idItem=f.getAttribute("id");e.innerHTML="...";if(!browserDetect.bXSLIncludeBug){this.oMenu.renderToDoc(e,false,f);oLesson.onRenderingCompleted(null,false);}else{econtioMenu.cloneMenuStructure("menuLeft_"+idItem,f);cms.oAjax["menuLeft_"+idItem].renderToDoc(e,false,null);}};};
/**************************** econtioCMS.js *******************************
**** Version 3.01.0001
**** last changed 13.02.2011
**** (c) 2008, 2009, 2010, 2011, econtio GmbH, www.econtio.de
***********************************************************************/
var cms=new Object();cms.debug=!!cmsXSLDebug;cms.offline=false;cms.c_List=1;cms.c_Show=2;cms.c_Search=4;cms.c_Edit=8;cms.c_Store=16;cms.c_Delete=32;cms.c_Create=64;cms.c_Verify=128;cms.c_Print=256;cms.c_DoAll=512;cms.c_Edit2=1024;cms.c_Sort=2048;cms.c_DeleteAll=4096;cms.c_Export=8192;cms.c_Execute=16384;cms.c_Import=32768;cms.strAction=["listData","showData","searchData","editData","storeData","deleteData","createData","verifyData"];cms.aAction={1:"c_List",2:"c_Show",4:"c_Search",8:"c_Edit",16:"c_Store",32:"c_Delete",64:"c_Create",128:"c_Verify",256:"c_Print",512:"c_DoAll"};cms.oAjax=new Object();cms.strSearchURL=new Object();cms.strShowURL=new Object();cms.strEditURL=new Object();cms.strStoreURL=new Object();cms.strDeleteURL=new Object();cms.strAlertName=new Object();cms.strAlertElement=new Object();cms.strOrderElement=new Object();cms.searchFileds=new Object();cms.oDuplicate;cms.c_LineHiLight="#dddddd";cms.lastAccess=null;cms.init=function(){cms.dispatcher="dispatcher"+customer.serverMode;var a=$("historyIframe");if(!!a){cms.history.historyIframe=a;}};cms.track=function(a,b,d){if(typeof(customer.trackAjax)=="function"){customer.trackAjax(a,b,d);}};cms.trackPage=function(a,f,g,b){g=g||0;g=(g=="NaN")?"0":g;b=!b?("/"+cms.aAction[f]):"/"+b;strLink="/"+selLanguage+(a!=""?(a.substr(0,1)!="/"?"/":"")+a+(f!=""?"/"+f+(g!=""?"/"+g:""):""):"")+b;if(c_bLogFlow){console.log("cms.trackPage..."+strLink);}if(a.substr(0,3)!="CMS"&&a.substr(0,2)!="t_"){try{if(typeof(pageTracker)=="object"){if(c_bLogFlow){console.log("...done!");}pageTracker._trackPageview(strLink);}}catch(d){if(c_bLogFlow){console.log("...no Tracker installed!");}}}};cms.getTextSet=function(){cms.oAjax.textSet=new rbmAjax();cms.oAjax.textSet.getXML(c_Customer+"/xml/textSet.xml",null,true);};cms.getText=function(a,e,b){aNodeSet=this.oAjax.textSet.selectNodes("//textSet[@dataType = '"+a+"' and @language = '"+e+"']/"+b);var d=aNodeSet.length>0?aNodeSet[0].getAttribute("t"):"";return d;};cms.oRCD=new Object();cms.listClick=new Object();cms.strAlertElement.t_Client="xName/name";cms.strAlertElement.t_Product="productName";cms.strAlertElement.t_comData="comEntry";cms.strAlertElement.CMS_t_MediaPicture="name";cms.strAlertElement.CMS_t_Media="title";cms.strAlertElement.CMS_t_videoCategory="name";cms.strAlertElement.CMS_t_videoPlaylist="name";cms.strAlertElement.CMS_t_videoPlaylist_Cross="name";cms.strAlertElement.CMS_t_Gema="title";cms.strAlertElement.CMS_t_ObjectMedia="title";cms.strAlertElement.CMS_t_ObjectObject="title";cms.strAlertElement.CMS_t_ObjectFile="filename";cms.strAlertElement.CMS_t_ObjectCompetence="competence";cms.strAlertElement.t_ProductDemo="title";cms.strAlertElement.t_ClientLicence="title";cms.strAlertElement.t_Document="title";cms.strAlertElement.t_DocumentFile="filename";cms.strAlertElement.f_ForumEntry="forumDate";cms.strAlertElement.AFF_t_ProgramFile="filename";cms.recFields=new Object();cms.recFields.t_Product=["orderNumber","productName"];cms.recFields.t_Client=["IDTitle","name/xName"];cms.recFields.CMS_t_Media=["title","filmLength","description","teaser","IDLanguage","IDObjectNiveau"];cms.recFields.CMS_t_videoCategory=["name"];cms.recFields.CMS_t_videoPlaylist=["name"];cms.recFields.p_Order=["IDTitle","name","firstName","street","nr","zip","city","IDCountry","email","email1","password","password1","chk_AGB"];cms.recFields.t_News=["title","newsDate"];cms.recFields.t_Calender=["title","calenderDate"];cms.recFields.t_Document=["title","documentDate","IDDocumentCategory"];cms.recFields.AFF_t_Program=["name","timeToStart","timeToEnd","_fltprovisionPercentage","refererURL/requestURL"];cms.recFields.AFF_t_Voucher=["name","masterCode","_fltvoucherValue","validThru","maxRedemption"];cms.recFields.AFF_t_VoucherCode=["quantity","length"];cms.recFields.AFF_t_LicenceKey=["name","masterCode","validThru","IDProduct"];cms.recFields.AFF_t_LicenceKeyCode=["quantity","length"];cms.searchFileds.t_Client=["name","firstName","xName","street","zip","city"];cms.searchFileds.CMS_t_Media=["location","title","teaser","description"];cms.searchFileds.CMS_t_videoPlaylist=["name"];cms.searchFileds.CMS_t_Object=["title","teaser","description"];cms.searchFileds.CMS_t_ObjectObject=["title","teaser","description"];cms.searchFileds.t_Invoice=["name","firstName","ID"];cms.userLog=new Object();cms.userLog.oAjax=new rbmAjax();cms.userLog.oAjax.target=null;cms.userLog.oAjax.XMLEval=false;cms.userLog.add=function(a){this.oAjax.getXML(c_Customer+"/log.php?user="+strUser+"&"+a,null,true,true);};cms.history=new Object();cms.history.h=[];cms.history.dh=[];cms.history.pos=0;cms.history.trackHistory=true;cms.history.callHistory=true;cms.history.historyIframe=null;cms.history.pushHistory=function(a,b){if(this.trackHistory){if(this.pos<this.h.length-1){this.h.remove((this.pos+1),-1);this.dh.remove((this.pos+1),-1);}if(cms.oAjax[a]){cms.oAjax[a].setHistory=true;}this.h.push(b);this.dh.push(a);this.pos=this.h.length-1;}};cms.history.setHistory=function(b,a){a=!a?"":"&"+a;b=!!b?b:0;if(!!cms.history.historyIframe){this.callHistory=false;cms.history.historyIframe.src=c_Customer+"/history.php?user="+strUser+"&h="+(b==-1?-1:(this.pos+b))+a;}};cms.history.call=function(a){if(this.callHistory){if(parseInt(a)!=0){a=parseInt(a);this.trackHistory=false;if(0<a&&a<this.h.length){if(a<this.pos){this.pos--;while(this.pos>0&&this.dh[this.pos]==this.dh[this.pos-1]){this.pos--;}this.h[this.pos]();}else{this.pos++;while(this.pos<this.h.length&&this.dh[this.pos]==this.dh[this.pos+1]){this.pos++;}this.h[this.pos]();}}this.trackHistory=true;}}else{this.callHistory=true;}};cms.getOrderElement=function(a){if(!!cms.strOrderElement[a]){return"&order="&cms.strOrderElement[a];}else{return"";}};cms.createDependantAjax=function(e,b,a,d){if(typeof(e)!="object"||b=="CMS_t_Object_Configuration"){cms.createAjax(b,a,d,cms);}else{if(typeof(e.oAjax)=="undefined"){e.oAjax=new Object();if(c_bLogFlow){console.log("dependingNode: "+e.id);}}cms.createAjax(b,a,d,e);}};cms.createAjax=function(dataType,xslStylesheet,bIncludeStylesheet,dependingNode){bIncludeStylesheet=!!bIncludeStylesheet;dependingNode=!!dependingNode?dependingNode:cms;with(dependingNode){if(!oAjax[dataType]){oAjax[dataType]=new rbmAjax();oAjax[dataType].dataType=dataType;oAjax[dataType].bKeepRenderingCompleted=false;oAjax[dataType].setHistory=false;oAjax[dataType].waitElement=imgPreLoad.ajax;if(cms.debug){var t=new Date();oAjax[dataType].t=t.getTime();}if(!!xslStylesheet){if(bIncludeStylesheet){var result=oAjax[dataType].getXSL(c_Customer+"/xsl/"+dataType+".xsl",xslStylesheet);}else{var result=oAjax[dataType].getXSL(xslStylesheet);}}else{var result=oAjax[dataType].getXSL(c_Customer+"/xsl/"+dataType+".xsl");}if(result==404){result=oAjax[dataType].getXSL(c_Customer+"/xsl/default.xsl");if(result==404){console.warn("No default stylesheet available!");}}if(!cms.oRCD[dataType]){cms.oRCD[dataType]=new Object();}cms.oRCD[dataType].aRenderingCompleted=new Array();oAjax[dataType].onRenderingCompleted=function(target,bDoNotRenderMenu){with(cms.oRCD[dataType]){target=!target?this.target:target;rbmWindow3.init(target);if(!!econtioMenu&&!bDoNotRenderMenu){econtioMenu.initAllMenus(target,this.dataType);}if(c_bLogFlow&&!!console.groupCollapsed){console.groupCollapsed("executing onRenderingCompleted for "+this.dataType);}for(var i=aRenderingCompleted.length-1;i>=0;i--){var func=aRenderingCompleted.shift();if(c_bLogFlow){console.log(dataType+"["+i+"]: "+func);}if(!!func){func();}}if(c_bLogFlow&&!!console.groupEnd){console.groupEnd();}if(!!this.bInitialRendering){this.bInitialRendering=false;customer.initAfterInitialRendering();}}};oAjax[dataType].onUploadCompleted=function(filename){console.warn("handling function for upload completed is missing: "+filename);};oAjax[dataType].customRenderToDoc=function(element,bappend,oXML,appendDivId){var t=$("c_unit_"+idUnit);t=!t?$("c_page_"+idUnit):t;this.oElement=!t?$(element):t.getElementById(element);if(!this.oElement){this.oElement=$("global_window_Area").getElementById(element);if(!this.oElement){if(c_bLogFlow){console.warn(this.dataType+": customRenderToDoc("+element+") not found!");}return false;}}if(this.oElement.id=="window_Area"){if(browserDetect.browser=="Internet Explorer"&&browserDetect.version<8){this.oElement=$("global_window_Area");this.target=this.oElement;}this.bappend=true;}else{if(typeof(bappend)=="undefined"&&typeof(this.bappend)=="undefined"){this.bappend=false;}else{if(typeof(bappend)!="undefined"){this.bappend=bappend;}}}return true;};oAjax[dataType].done=function(){};}else{if(cms.debug){var t=new Date();if(!oAjax[dataType].t||t.getTime()-oAjax[dataType].t>5000){oAjax[dataType].t=t.getTime();if(!!xslStylesheet){var result=oAjax[dataType].getXSL(xslStylesheet);}else{var result=oAjax[dataType].getXSL(c_Customer+"/xsl/"+dataType+".xsl");}if(result==404){result=oAjax[dataType].getXSL(c_Customer+"/xsl/default.xsl");if(result==404){console.warn("No default stylesheet available!");}}}else{if(c_bLogFlow){console.warn("xxx: reusing "+dataType);}}}}}};cms.searchData=function(g,n,b,m,f,j,d,a){if(typeof(g)!="object"){if(c_bLogFlow){console.warn("econtioCMS: using old listData()");}cms.searchDataOld(g,n,b,m,f,j,d,a);return;}var h=cms;if(typeof(m)!="object"){if(!m){m=n+d;}var e=rbmWindow.getParentGUIStructure(g);if(e){h=e;var k=e.getElementById(m);if(!!k){m=k;}else{m=$(m);}}else{m=$(m);}}var l=n+"_search";cms.createDependantAjax(h,l,c_Customer+"/xsl/"+n+".xsl");h.oAjax[l].secondSearchXPath=null;if(!!a){h.oAjax[l].waitNode=$(a);}else{h.oAjax[l].waitNode=null;}if(!!j){j=$(j);}h.oAjax[l].target=m;h.oAjax[l].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Search+"&id="+b+"&page="+n+"&user="+strUser+(!f?"":"&"+f)+cms.getOrderElement(n),j,true);};cms.searchDataOld=function(b,j,g,h,e,f,a){var d=b+"_search";cms.createAjax(d,c_Customer+"/xsl/"+b+".xsl");this.oAjax[d].secondSearchXPath=null;if(!!a){this.oAjax[d].waitNode=$(a);}else{this.oAjax[d].waitNode=null;}if(!!e){e=$(e);}if(!!g){cms.oAjax[d].target=g;}else{cms.oAjax[d].target=b+f;}cms.oAjax[d].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Search+"&id="+j+"&page="+b+"&user="+strUser+(!h?"":"&"+h)+cms.getOrderElement(b),e,true);};cms.listData=function(g,m,d,l,f,a,b){if(typeof(g)!="object"){if(c_bLogFlow){console.warn("econtioCMS: using old listData()");}cms.listDataOld(g,m,d,l,f,a,b);return;}var h=cms;if(typeof(l)!="object"){if(!!l){l=!!a?l:l+d;}else{l=m+d;}var e=rbmWindow.getParentGUIStructure(g);if(e){h=e;var j=e.getElementById(l);if(!!j){l=j;}else{l=$(l);}}else{l=$(l);}}this.track(m,this.c_List,d);if(!d||d==0||(!!f&&f.indexOf("sort=1")!=-1)){var k=m+"_search";cms.createDependantAjax(h,k,c_Customer+"/xsl/"+m+".xsl");}else{k=m;cms.createDependantAjax(h,m);}h.oAjax[k].secondSearchXPath=null;if(!!b){h.oAjax[k].waitNode=$(b);}else{h.oAjax[k].waitNode=null;}h.oAjax[k].target=l;this.lastAccess=h.oAjax[k];h.oAjax[k].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_List+"&id="+d+"&page="+m+"&user="+strUser+(!f?"":"&"+f)+cms.getOrderElement(m),null,true);};cms.listDataOld=function(b,j,g,h,f,e,a){this.track(b,this.c_List,j);if(!j||j==0||(!!h&&h.indexOf("sort=1")!=-1)){var d=b+"_search";cms.createAjax(d,c_Customer+"/xsl/"+b+".xsl");}else{d=b;cms.createAjax(b);}this.oAjax[d].secondSearchXPath=null;if(!!a){this.oAjax[d].waitNode=$(a);}else{this.oAjax[d].waitNode=null;}if(g){cms.oAjax[d].target=typeof(g)!="object"?(!!f?g:g+j):g;}else{cms.oAjax[d].target=b+j;}this.lastAccess=cms.oAjax[d];cms.oAjax[d].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_List+"&id="+j+"&page="+b+"&user="+strUser+(!h?"":"&"+h)+cms.getOrderElement(b)+(!e?"":"&did="+e),null,true);};cms.livesearchData=function(b,f,g,l,h,n,m){var j=l+"_search";var k="Asc";if(!m){m=l;}var d=cms;if(typeof(h)!="object"){var a=rbmWindow.getParentGUIStructure(b);if(a){d=a;var e=a.getElementById(h);if(!!e){h=e;}else{h=$(h);}}else{h=$(h);}}if(g.value.length>2){if(!n){var n=cms.evalXPathSearch(m,"_list",g.value);}d.oAjax[j].bappend=true;d.oAjax[j].secondSearchXPath=n;d.oAjax[j].setNodeValue("//search[@type='live']","value",g.value);d.oAjax[j].query(n,"<listOf_"+m+" secondSearch='1' ></listOf_"+m+">",h);}else{if(g.value.length==0){var n="//"+m+"_list";d.oAjax[j].secondSearchXPath=n;d.oAjax[j].setNodeValue("//search[@type='live']","value","");d.oAjax[j].query(n,"<listOf_"+m+" secondSearch='1'  />",$(h));}}};cms.showData=function(h,m,d,l,g,a,b,e){if(typeof(h)!="object"){if(c_bLogFlow){console.warn("econtioCMS: using old showData()");}cms.showDataOld(h,m,d,l,g,a,b);return;}var j=cms;if(typeof(l)!="object"){if(!!l){l=!!a?l:l+d;}else{l=m+d;}var f=rbmWindow.getParentGUIStructure(h);if(f){j=f;var k=f.getElementById(l);if(!!k){l=k;}else{l=$(l);}}else{l=$(l);}}this.track(m,this.c_Show,d);cms.createDependantAjax(j,m);if(!!b){j.oAjax[m].waitNode=$(b);}else{j.oAjax[m].waitNode=null;}if(typeof(e)!="undefined"){e=!!e;j.oAjax[m].bappend=e;}if(cms.offline){cms.dispatcher="xml/"+m+".xml";}j.oAjax[m].target=l;this.lastAccess=j.oAjax[m];j.oAjax[m].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Show+"&id="+d+"&page="+m+"&user="+strUser+(!g?"":"&"+g),null,true);};cms.showDataOld=function(d,j,g,h,f,e,b,a){this.track(d,this.c_Show,j);cms.createAjax(d);if(!!b){this.oAjax[d].waitNode=$(b);}else{this.oAjax[d].waitNode=null;}if(typeof(a)!="undefined"){a=!!a;cms.oAjax[d].bappend=a;}if(g){cms.oAjax[d].target=typeof(g)!="object"?(!!f?g:g+j):g;}else{cms.oAjax[d].target=d+(!!f?"":j);}if(cms.offline){cms.dispatcher="xml/"+d+".xml";}this.lastAccess=cms.oAjax[d];cms.oAjax[d].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Show+"&id="+j+"&page="+d+"&user="+strUser+(!h?"":"&"+h)+(!e?"":"&did="+e),null,true);};cms.editData=function(g,l,d,k,f,a,b){if(l=="CMS_t_Object_Configuration"||l=="s_editXML"){if(c_bLogFlow){console.warn("econtioCMS: using workaround for editData() on CMS_t_Object_Configuration");}cms.editDataOld(l,d,k,f,a,b);return;}if(typeof(g)!="object"){if(c_bLogFlow){console.warn("econtioCMS: using old editData()");}cms.editDataOld(g,l,d,k,f,a,b);return;}var h=cms;if(typeof(k)!="object"){if(!!k){k=!!a?k:k+d;}else{k=l+d;}var e=rbmWindow.getParentGUIStructure(g);if(e){h=e;var j=e.getElementById(k);if(!!j){k=j;}else{k=$(k);}}else{k=$(k);}}this.track(l,this.c_Edit,d);cms.createDependantAjax(h,l);if(!!b){h.oAjax[l].waitNode=$(b);}else{h.oAjax[l].waitNode=null;}h.oAjax[l].target=k;this.lastAccess=h.oAjax[l];h.oAjax[l].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Edit+"&id="+d+"&page="+l+"&user="+strUser+(!f?"":"&"+f),null,true);};cms.editDataOld=function(b,h,f,g,e,d,a){this.lastDataType=b;this.track(b,this.c_Edit,h);cms.createAjax(b);if(!!a){this.oAjax[b].waitNode=$(a);}else{this.oAjax[b].waitNode=null;}if(f){cms.oAjax[b].target=typeof(f)!="object"?(!!e?f:f+h):f;}else{cms.oAjax[b].target=b+(!!e?"":h);}this.lastAccess=cms.oAjax[b];cms.oAjax[b].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Edit+"&id="+h+"&page="+b+"&user="+strUser+(!g?"":"&"+g)+(!d?"":"&did="+d),null,true);};cms.cancelEdit=function(b,f,d,a){console.warn("cancelEdit");if(!a){var e=$(b+"_edit"+f);if(!e){e=$(b+f);}}else{var e=$(a);}rbmWindow.cleanUp(e);};cms.storeData=function(dataType,id,target,param,noID,bappend,appendTarget,appendDivId,sendForm,bGetNewSearch,waitNode,alternateTarget){this.track(dataType,this.c_Store,id);with(cms){if(bGetNewSearch){var dataType2=dataType+"_search";cms.createAjax(dataType2,c_Customer+"/xsl/"+dataType+".xsl");}else{dataType2=dataType;cms.createAjax(dataType);}if(!!waitNode){this.oAjax[dataType2].waitNode=$(waitNode);}else{this.oAjax[dataType2].waitNode=null;}if(!!alternateTarget){this.oAjax[dataType2].alternateTarget=$(alternateTarget);}var bGo=true;if(!sendForm){var oForm=$(dataType+"_edit"+id);if(!oForm){oForm=$(dataType+id);}}else{var oForm=$(sendForm);}var errText1="";var errText2="";myRadio=new Object();if(!!oForm){if(recFields[dataType]){var field;for(field=0;field<recFields[dataType].length;field++){var alternative=recFields[dataType][field].split("/");if(alternative.length>1){var bGo2=false;for(var i=0;i<alternative.length;i++){var myField=oForm.getElementByName(alternative[i]);if(myField&&myField.value!=""){bGo2=true;}}bGo=bGo&bGo2;if(!bGo2){errText2=this.getText("_general",selLanguage,"completeFormAlt");for(var i=0;i<alternative.length;i++){var myField=oForm.getElementByName(alternative[i]);if(myField){myField.style.border="1px dotted #0000ff";}}}else{for(var i=0;i<alternative.length;i++){var myField=oForm.getElementByName(alternative[i]);if(myField&&myField.style.borderColor=="#0000ff"){myField.style.border="1px solid #000000";}}}}else{var myField=oForm.getElementByName(recFields[dataType][field]);if(myField&&myField.type=="radio"&&!myField.disabled){var radioFields=oForm.getElementsByNameStartingWith(myField.name);var bRadio=false;for(var i=0;i<radioFields.length;i++){bRadio|=radioFields[i].checked;}if(!bRadio){bGo=false;myField=myField.parentNode.parentNode.parentNode.parentNode;myField.style.border="1px solid #ff0000";myField.missed=true;errText1=this.getText("_general",selLanguage,"completeForm");}else{if(!!myField&&!myField.disabled){myField=myField.parentNode.parentNode.parentNode.parentNode;if(myField&&myField.missed){myField.missed=false;myField.style.border="";}}}}else{if(myField&&!myField.disabled&&(myField.value==""||myField.value=="0"||(myField.type=="checkbox"&&!myField.checked))){bGo=false;if(myField.type=="checkbox"){myField=myField.parentNode;}myField.style.border="1px solid #ff0000";myField.missed=true;errText1=this.getText("_general",selLanguage,"completeForm");}else{if(!!myField&&!myField.disabled){if(myField.type=="checkbox"){myField=myField.parentNode;}if(myField&&myField.missed){myField.missed=false;myField.style.border="";}}}}}}}}else{oForm=sendForm;}if(!!customer.checkForm[dataType]){bGo=customer.checkForm[dataType](oForm);}if(bGo){if(target){oAjax[dataType2].target=typeof(target)!="object"?(!!noID?target:target+id):target;}else{oAjax[dataType2].target=dataType+id;}if(typeof(bappend!="undefined")){oAjax[dataType2].bappend=bappend;if(!!appendTarget){oAjax[dataType2].target=appendTarget;}oAjax.appendDivId=appendDivId;}else{oAjax[dataType2].bappend=false;}this.lastAccess=oAjax[dataType2];oAjax[dataType2].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Store+"&id="+id+"&page="+dataType+"&user="+strUser+(!param?"":"&"+param),oForm,true);}else{alert(errText1+errText2);}}};cms.verifyData=function(b,h,f,g,e,d,a){this.track(b,this.c_Verify,h);cms.createAjax(b);a=!!a;cms.oAjax[b].bappend=a;if(f){cms.oAjax[b].target=typeof(f)!="object"?(!!e?f:f+h):f;}else{cms.oAjax[b].target=b+h;}this.lastAccess=cms.oAjax[b];cms.oAjax[b].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Verify+"&id="+h+"&page="+b+"&user="+strUser+(!g?"":"&"+g)+cms.getOrderElement(b)+(!d?"":"&did="+d),null,true);};cms.exportData=function(j,b,g,e,a,d,f,k,h){cms.transactData(cms.c_Export,j,b,g,e,a,d,f,k,h);};cms.transactData=function(f,k,b,h,e,a,d,g,l,j){this.track(k,f,b);cms.createAjax(k);d=!!d;cms.oAjax[k].bappend=d;if(h){cms.oAjax[k].target=typeof(h)!="object"?(!!a?h:h+b):h;}else{cms.oAjax[k].target=k+b;}if(d){if(!!g){oAjax[k].target=g;}oAjax.appendDivId=!!l?l:null;}j=!!j?$(j):null;if(cms.offline){cms.dispatcher="xml/"+k+".xml";}this.lastAccess=cms.oAjax[k];cms.oAjax[k].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+f+"&id="+b+"&page="+k+"&user="+strUser+(!e?"":"&"+e)+cms.getOrderElement(k),j,true);};cms.getAlertElement=function(dataType,container){with(cms){if(strAlertElement[dataType]){var elementList=strAlertElement[dataType].split("/");var strDataName="";for(var i=0;i<elementList.length;i++){var element=$(container).getElementById(elementList[i]);if(element){if(strDataName.length>0&&element.value!=""){strDataName=strDataName+" - ";}strDataName=strDataName+(!!element.value?element.value:element.innerHTML.replace(/&nbsp;/g,""));}}strDataName.replace(/\'/g,"'");return strDataName.replace(/\"/g,'"');}return"";}};cms.delData=function(dataType,id,target,param,noID,name,bdelAll,waitNode){this.track(dataType,this.c_Delete,id);with(cms){createAjax(dataType);if(!!waitNode){this.oAjax[dataType].waitNode=$(waitNode);}else{this.oAjax[dataType].waitNode=null;}if(target){oAjax[dataType].target=typeof(target)!="object"?(!!noID?target:target+id):target;}else{oAjax[dataType].target=dataType+id;}if(!name||name==""){name=" '"+this.getAlertElement(dataType,oAjax[dataType].target)+"' ";}if(confirm(this.getText(dataType,selLanguage,"dataTypeName")+" "+name+" "+this.getText(dataType,selLanguage,"deleteQuestion"))){var nAction=bdelAll?c_DeleteAll:c_Delete;this.lastAccess=oAjax[dataType];oAjax[dataType].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+nAction+"&id="+id+"&page="+dataType+"&user="+strUser+(!param?"":"&"+param),null,true);}}};cms.delClient=function(dataType,id,target,param,noID,name){with(cms){createAjax(dataType);oAjax[dataType].target=!!target?(typeof(target)!="object"?(!!noID?target:target+id):target):dataType+id;if(!name||name==""){name=getAlertElement(dataType,oAjax[dataType].target);}if(confirm(this.getText(dataType,selLanguage,"dataTypeName")+" '"+name+this.getText(dataType,selLanguage,"deleteQuestion"))){var oListEntry=$("listOf_t_Client"+id)||$("listOfImports"+id)||$("listOfDuplicates"+id);if(oListEntry){var oListEntry2=$("clientDuplicate"+id);if(!!oListEntry2){oListEntry2.parentNode.removeChild(oListEntry2);}oListEntry.parentNode.removeChild(oListEntry);}oAjax[dataType].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Delete+"&id="+id+"&page="+dataType+"&user="+strUser+(!param?"":"&"+param),null,true);}}};cms.uploadFile=function(a,j,g,h,e){if(!g){var d=$("uploadForm_"+a+(!!e?"":j));var b=$("uploadFrame_"+a+(!!e?"":j));}else{var d=$("uploadForm_"+g);var b=$("uploadFrame_"+g);}d.action=cms.dispatcher+"?mode=html&lang="+selLanguage+"&action="+cms.c_Store+"&id="+j+"&page="+a+"&user="+strUser+(!h?"":"&"+h);b.contentWindow.startUpload("Upload gestartet!");d.submit();};cms.sortData=function(b,j,h,g,f){var d=cms;var a=rbmWindow.getParentGUIStructure(b);if(a){d=a;}var e=j+"_search";if(!d.oAjax[e]){e=j;}var l=(!!d.oAjax[e].secondSearchXPath)?d.oAjax[e].secondSearchXPath:"//"+h+"_list";d.oAjax[e].setParam("","globalOrderMode",f);d.oAjax[e].setParam("","globalOrderElement",g);if(d.oAjax[e].secondSearchXPath){var k=new Object();k.xsl="http://www.w3.org/1999/XSL/Transform";d.oAjax[e].setNodeValue("//xsl:apply-templates[@select='descendant::*']","select",d.oAjax[e].secondSearchXPath,d.oAjax[e].oXSL,k);}d.oAjax[e].renderToDoc();d.oAjax[e].resetNodeValues("select","descendant::*");};cms.evalXPathSearch=function(b,g,f){var a="";if(f.length>0){aSearchText=f.split(" ");for(var e=0;e<aSearchText.length;e++){if(aSearchText[e]!=""){if(a!=""){a+=") and (";}else{a+="(";}for(var d=0;d<cms.searchFileds[b].length;d++){if(d>0){a+=" or ";}a+="contains(@"+cms.searchFileds[b][d]+", '"+aSearchText[e]+"')";}}}a+=")";a="//"+b+g+"["+a+"]";}else{var a="//"+b+g;}return a;};cms.aUpdateSequence=new Array();cms.storeXMLData=function(h,a,f,b,g){cms.storeXMLDataComplete=function(){var m=cms.oAjax[h].selectNodes("//"+g+"/child::*[1]");if(m.length>0){var n=m[0].cloneNode(true);var l="xml="+rbmXML.urlEncode(rbmXML.showXML(n),true,true);this.oAjax[h].target=f;this.oAjax[h].getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Store+"&id="+a+"&page="+h+"&user="+strUser+(!b?"":"&"+b),l,true);}};cms.aUpdateSequence.push(cms.storeXMLDataComplete.bind(cms));cms.aUpdateSequence.push(cms.updateXML.bind(cms,h,f,true));var k=$(f).getElementsByClassName("xmlInsertNodeSet");var d=k.length;var j;for(var e=0;e<d;e++){k[e].fCall=function(l){l.onchange();};cms.aUpdateSequence.push(k[e].fCall.bind(k[e],k[e]));}if(cms.aUpdateSequence.length>0){cms.aUpdateSequence.pop()();}};cms.updateXML=function(w,C,q){var z,p;var e;C=$(C);var A=C.getElementsByClassName("xmlEditNodetext");var s=A.length;for(var y=0;y<s;y++){g="/"+A[y].getElementById("xPath").value;p=cms.oAjax[w].selectNodes(g);if(p.length>0){e=A[y].getElementsByTagName("textarea");if(e.length>0){if(e[0].className.indexOf("tinyMCE")!=-1){var f=tinyMCE.get(e[0].id);var o=f.getContent();}else{var o=e[0].value;}p[0].firstChild.nodeValue=o;}}}var A=C.getElementsByClassName("xmlEditAttribute");var s=A.length;var g;for(var y=0;y<s;y++){g="/"+A[y].getElementById("xPath").value;p=cms.oAjax[w].selectNodes(g);if(p.length>0){var B=new Object();z=A[y].getElementsByTagName("input");for(var x=0;x<z.length;x++){if(z[x].name!="xPath"){if(z[x].type=="checkbox"){if(z[x].checked){if(!!B[z[x].name]){B[z[x].name]+=z[x].value;}else{B[z[x].name]=z[x].value;}}else{if(!B[z[x].name]){B[z[x].name]="";}}}else{p[0].setAttribute(z[x].name,z[x].value);}}}for(var D in B){p[0].setAttribute(D,B[D]);}z=A[y].getElementsByTagName("select");for(var x=0;x<z.length;x++){p[0].setAttribute(z[x].name,z[x].value);}z=A[y].getElementsByTagName("input");for(var x=0;x<z.length;x++){}}}var v=C.getElementsByClassName("xmlEditNodeSet");var s=v.length;var g;for(var y=0;y<s;y++){g="/"+v[y].getElementById("xPath").value;aNodes=cms.oAjax[w].selectNodes(g);if(aNodes.length>0){var n=aNodes[0];g=g+v[y].getElementById("xPathChildNodes").value;aNodes=cms.oAjax[w].selectNodes(g);c=aNodes.length;while(c>0){n.removeChild(aNodes[--c]);}var A=v[y].getElementsByClassName("xmlEditNode");var r=A.length;var b;var d;var u,x;for(var x=0;x<r;x++){if(!A[x].getElementById("xmlEditNodeSelector")||A[x].getElementById("xmlEditNodeSelector").checked==true){b=A[x].getElementById("xmlEditNodeName").value;d=cms.oAjax[w].oXML.createElement(b);var h=A[x].getElementById("xmlEditNode_cloneAttributeXPath");if(h){g="/"+h.value+"/@*";var a=cms.oAjax[w].selectNodes(g);for(u=0;u<a.length;u++){d.setAttribute(a[u].nodeName,a[u].value);}}z=A[x].getElementsByTagName("input");for(u=0;u<z.length;u++){if(z[u].name!="xPath"&&z[u].name!="xmlEditNodeName"&&z[u].name!="xmlEditNodeSelector"){d.setAttribute(z[u].name,z[u].value);}}z=A[x].getElementsByTagName("select");for(u=0;u<z.length;u++){if(z[u].name!="xmlEditNodeName"){d.setAttribute(z[u].name,z[u].value);}}n.appendChild(d);}}}else{console.warn("cms.updateXML: root not found for "+g);}}if(cms.aUpdateSequence.length>0){cms.aUpdateSequence.pop()();}if(!q){cms.oAjax[w].renderToDoc();}};cms.insertXML=function(b,a,e,f){aNodeSet=cms.oAjax[b].selectNodes(a);if(aNodeSet.length>0){var d=aNodeSet[0].parentNode;var g=new rbmAjax();g.render=false;g.done=function(){if(!!this.oXML){aNodes=this.selectNodes(f);if(aNodes.length>0){var k=aNodeSet.length;var h;if(k>1||aNodes.length>1){while(k>0){d.removeChild(aNodeSet[--k]);}var j;for(k=0;k<aNodes.length;k++){j=aNodes[k].cloneNode(true);d.appendChild(j);}}else{d.replaceChild(aNodes[0],aNodeSet[0]);}}}else{alert(cms.getText("_general",selLanguage,"fileNotFound")+": "+e);}if(cms.aUpdateSequence.length>0){cms.aUpdateSequence.pop()();}};g.getXML(e+".xml",null,true);}};cms.swapSubCombo=function(b,f,d){t=$(d);if(!!t){var e=t.getElementsByClassName(b);}else{var e=$(document.body).getElementsByClassName(b);}for(var a=0;a<e.length;a++){if(e[a].id==f){$fx(e[a]).setDisplay(true);e[a].className+=" xmlEditAttribute";}else{$fx(e[a]).setDisplay(false);e[a].className=e[a].className.replace(/xmlEditAttribute/g,"");}}};cms.removeConfigNode=function(a,b){if(confirm(cms.getText(a,selLanguage,"deleteQuestion"))){b.parentNode.removeChild(b);}};cms.renderPreview=function(b,g){g=!!g;var e=cms.oAjax.CMS_t_Object_Configuration.selectNodes(b);if(e.length==0){console.error("cms.renderPreview: no nodes found for "+b);return false;}oNewNode=e[0].cloneNode(true);var h=new rbmAjax();h.getXSL(c_Customer+"/xsl/default.xsl");var a=cms.oAjax.CMS_t_Object_Configuration.selectNodes(b+"/ancestor::cms_onRenderingCompleted");if(a.length>0){h.loadXML("<cms_onRenderingStarted />");h.target="previewScript_area";}else{h.loadXML("<dummy />");h.target=$("wnd_objectPreview").getElementByClassName("wndBody");}h.oXML.documentElement.appendChild(oNewNode);if(g){var d=h.selectNodes("//*[string-length(@player) > 0]");for(var f=0;f<d.length;f++){d[f].setAttribute("player","previewPlayer");}}h.renderToDoc();};cms.renderObject=function(f,b){var e=cms.oAjax.CMS_t_Object_Configuration.selectNodes("//configure/ancestor::data[1]");if(e.length==0){console.error("cms.renderPreview: no nodes found for "+b);return false;}console.dirxml(e[0]);oNewNode=e[0].cloneNode(true);cms.createAjax("f_Object");var g=cms.oAjax.f_Object;g.bRender=false;id=f.split("_")[1];g.getXML(cms.dispatcher+"?mode=ajax&lang="+selLanguage+"&action="+cms.c_Show+"&id="+id+"&page=f_Object&user="+strUser+(!param?"":"&"+param),null,false);var a=cms.oAjax.f_Object.selectNodes("//configure/ancestor::data[1]");var d=a[0].parentNode;d.removeChild(a);d.appendChild(e[0]);console.dirxml(g.oXML);g.renderToDoc("window_Area");};cms.removeCaptionLine=function(IDMedia,id,tc){if(confirm(this.getText("CMS_t_MediaSubtitle",selLanguage,"removeCaptionLine")+" TC[ "+tc+"]?")){with(cms.oAjax.CMS_t_MediaSubtitle){var aCaption=selectNodes("//setCaption[@ID = "+id+"]");if(aCaption.length>0){var aKeep=selectNodes("//setCaption[@ID = "+id+"]/preceding-sibling::setCaption[1]");if(aKeep.length>0){aKeep[0].setAttribute("new","1");if(confirm(this.getText("CMS_t_MediaSubtitle",selLanguage,"keepCaptionText"))){aKeep[0].setAttribute("t",aKeep[0].getAttribute("t")+" "+aCaption[0].getAttribute("t"));}}aCaption[0].parentNode.removeChild(aCaption[0]);var aCaption=selectNodes("//setCaption");for(var i=0;i<aCaption.length;){aCaption[i].setAttribute("ID",++i);}renderToDoc();if(aKeep.length>0){aKeep.setAttribute("new","0");}}else{alert("removeCaptionLine: Node not found!");}}}};cms.addCaptionLine=function(IDMedia,id,tc){if(!!ePlayerList["mainPlayer_"+IDMedia+"_CMS"]||confirm(this.getText("CMS_t_MediaSubtitle",selLanguage,"addCaptionLine")+" TC[ "+tc+"]?")){with(cms.oAjax.CMS_t_MediaSubtitle){var aCaption=selectNodes("//setCaption[@ID = "+id+"]");if(aCaption.length>0){var newNode=aCaption[0].cloneNode(true);newNode.setAttribute("t","");newNode.setAttribute("new","1");aCaption[0].parentNode.insertBefore(newNode,aCaption[0]);var aCaption=selectNodes("//setCaption");for(var i=0;i<aCaption.length;){aCaption[i].setAttribute("ID",++i);}renderToDoc();newNode.setAttribute("new","0");}else{alert("addCaptionLine: Node not found!");}}}};cms.huntCaptionLine=false;cms.newCaptionLine=function(IDMedia,id,waitNode){if(!!ePlayerList["mainPlayer_"+IDMedia+"_CMS"]){if(!this.huntCaptionLine){this.huntCaptionLine=true;this.huntCaptionLineTC=ePlayerList["mainPlayer_"+IDMedia+"_CMS"].evaluateTC();ePlayerList["mainPlayer_"+IDMedia+"_CMS"].play();this.huntCaptionLineTimeout=window.setTimeout(this.newCaptionLine.bind(this,IDMedia,id,waitNode),6000);this.oAjax.CMS_t_MediaSubtitle.waitElement=imgPreLoad.ajax;if(!!waitNode){this.oAjax.CMS_t_MediaSubtitle.waitNode=$(waitNode);}else{this.oAjax.CMS_t_MediaSubtitle.waitNode=null;}this.oAjax.CMS_t_MediaSubtitle.wait(true);return false;}window.clearTimeout(this.huntCaptionLineTimeout);this.huntCaptionLine=false;this.oAjax.CMS_t_MediaSubtitle.wait(false);ePlayerList["mainPlayer_"+IDMedia+"_CMS"].pause();with(cms.oAjax.CMS_t_MediaSubtitle){var aCaption=selectNodes("//setCaption[@ID = "+id+"]");if(aCaption.length>0){var newNode=aCaption[0].cloneNode(true);newNode.setAttribute("t","");newNode.setAttribute("tc",this.huntCaptionLineTC);newNode.setAttribute("end",ePlayerList["mainPlayer_"+IDMedia+"_CMS"].evaluateTC());aCaption[0].parentNode.appendChild(newNode);var aCaption=selectNodes("//setCaption");for(var i=0;i<aCaption.length;){aCaption[i].setAttribute("ID",++i);}renderToDoc();}else{alert("addCaptionLine: Node not found!");}}}};cms.setAllCheckboxes=function(b,a){var d=$(b).getElementsByTagName("input");for(i=0;i<d.length;i++){if(d[i].type=="checkbox"){d[i].checked=a;}}};cms.setHL=function(a){if(!a.noHL){if(!!a){a.oldBG=a.style.backgroundColor;a.style.backgroundColor=cms.c_LineHiLight;}}};cms.resetHL=function(a){if(!!a){a.style.backgroundColor=a.oldBG;}};cms.addToBookmark=function(b,a){if(document.all){window.external.AddFavorite(b,a);}else{if(window.sidebar){window.sidebar.addPanel(a,b,"");}else{alert("Sorry! Your browser doesn't support this function.");}}};cms.renderSubTemplate=function(d,b,f,g,a,e){var h=cms.oAjax[d];h.rebuildClone(b,f,g,a,e);};function fileProps(e,d,b,a){console.log("flashUpload: "+e+" ("+d+")");}function startUpload(a){console.log("startUpload "+a);}function upload_complete(f,e,d,b,a){console.log("flashUpload completed: "+a+" / "+f+" ("+e+")");cms.createAjax(a);cms.oAjax[a].onUploadCompleted(f,e,d,b);}

