/*************************** 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=[];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;};return a;}return(!!a)?a:null;}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.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;}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;}}}
