(function(){fcmsJs.Class('fcmsLib_Utils_Event_Mousewheel').construct(function construct(){this.types=["DOMMouseScroll","mousewheel"];this._id=null;this.handler=function handler(){};}).method('bind',function bind(id){if(!id){fcmsJs.console.error(this.className+': Element-ID ist nicht vorhanden.');return false;} var element=null;try{this._id=id;element=new fcmsLib_Utils_Dom_Element(this._id);}catch(e){if(e===fcmsLib_Utils_Dom_Exception){fcmsJs.console.error('Die Id "'+this._id+'" ist nicht vorhanden.');return false;} throw e;} if(element.addEventListener){for(var i=0,length=this.types.length;i1){this.reset();} return;} this._setIdentifier(touch.identifier);this._setStartPosition({"x":touch.pageX,"y":touch.pageY,"radiusX":touch.radiusX,"radiusY":touch.radiusY});}).method('_touchmove',function _touchmove(e){this.uber("_touchmove",e);var touch=null;fcmsLib_Core_Array.each(e.changedTouches,function(identifier,t){if(t.identifier===identifier){touch=t;}}.bind(this,this._getIdentifier()));if(touch===null){return;} this._setEndPosition({"x":touch.pageX,"y":touch.pageY,"radiusX":touch.radiusX,"radiusY":touch.radiusY});var endPosition=this._getEndPosition();var startPosition=this._getStartPosition();var threshold=this._getThreshold();var leftMoveDiff=(endPosition.x-endPosition.radiusX)-startPosition.x;if(((endPosition.x-endPosition.radiusX)threshold){this._executeHandler("left",{"diff":Math.abs(leftMoveDiff)},e);startPosition.x=endPosition.x;startPosition.y=endPosition.y;return;} var rightMoveDiff=(endPosition.x-endPosition.radiusX)-startPosition.x;if(((endPosition.x-endPosition.radiusX)>startPosition.x)&&rightMoveDiff>0&&Math.abs(rightMoveDiff)>threshold){this._executeHandler("right",{"diff":Math.abs(rightMoveDiff)},e);startPosition.x=endPosition.x;startPosition.y=endPosition.y;}}).method('_touchend',function _touchend(e){this.uber("_touchend",e);this.reset();this._executeHandler("touchend",{},e);}).method('_touchcancel',function _touchcancel(e){this.uber("_touchcancel",e);this.reset();}).method('_touchleave',function _touchleave(e){this.uber("_touchleave",e);this.reset();}).method('_evaluateConfiguration',function _evaluateConfiguration(configuration){this.uber("_evaluateConfiguration",configuration);this._setThreshold(configuration.threshold||this._getThreshold());}).method('_setThreshold',function _setThreshold(threshold){if(typeof threshold==="undefined"||typeof threshold!=="number"){throw new fcmsLib_Core_Exception("Ungültiger threshold-Wert.");} this._state.threshold=threshold;}).method('_getThreshold',function _getThreshold(){if(typeof this._state.threshold==="undefined"){this._state.threshold=20;} return this._state.threshold;}).method('_setStartPosition',function _setStartPosition(position){if(typeof position!=="object"){throw new fcmsLib_Core_Exception("Ungültige Startposition.");} if(typeof this._state.position==="undefined"){this._state.position={};} if(typeof this._state.position.start==="undefined"){this._state.position.start=this._getStartPosition();} this._state.position.start.x=position.x;this._state.position.start.y=position.y;if(typeof position.radiusX!=="undefined"){this._state.position.start.radiusX=position.radiusX;this._state.position.start.radiusY=position.radiusY;}}).method('_getStartPosition',function _getStartPosition(position){if(typeof this._state.position==="undefined"){this._state.position={};} if(typeof this._state.position.start==="undefined"){this._state.position.start={"x":null,"y":null,"radiusX":0,"radiusY":0};} return this._state.position.start;}).method('_setEndPosition',function _setEndPosition(position){if(typeof position!=="object"){throw new fcmsLib_Core_Exception("Ungültige Endeposition.");} if(typeof this._state.position==="undefined"){this._state.position={};} if(typeof this._state.position.end==="undefined"){this._state.position.end=this._getEndPosition();} this._state.position.end.x=position.x;this._state.position.end.y=position.y;if(typeof position.radiusX!=="undefined"){this._state.position.end.radiusX=position.radiusX;this._state.position.end.radiusY=position.radiusY;}}).method('_getEndPosition',function _getEndPosition(position){if(typeof this._state.position==="undefined"){this._state.position={};} if(typeof this._state.position.end==="undefined"){this._state.position.end={"x":null,"y":null,"radiusX":0,"radiusY":0};} return this._state.position.end;});})();(function(){fcmsJs.Class('fcmsLib_Utils_Event_Touch_Pinch').inherits(fcmsLib_Utils_Event_Touch_Touch).construct(function construct(config){this.uber("construct",config);this._handlerNames=["pinch","spread","during.pinch","during.spread"];}).method('_getAllHandler',function _getAllHandler(){if(typeof this._handler==="undefined"){this._handler={"pinch":function(){},"spread":function(){},"during.pinch":function(){},"during.spread":function(){}};} return this._handler;}).method('getDuringHandler',function getDuringHandler(name){var prefix="during.";switch(name){case"pinch":case"spread":return this.uber("getHandler",prefix+name);} return false;}).method('setDuringHandler',function setDuringHandler(fn,name){var prefix="during.";if(typeof name==="undefined"){this.setHandler(fn,prefix+"pinch");this.setHandler(fn,prefix+"spread");}else{switch(name){case"pinch":case"spread":this.setHandler(fn,prefix+name);break;default:fcmsJs.console.error(this.className+': Ungültige during Spread-Richtung. Kein Handler gesetzt.');return false;}} return true;}).method('_touchstart',function _touchstart(e){this.uber("_touchstart",e);if(this._isGeste()){this._interpretPreventDefault(e);this._interpretStopPropagation(e);return;} var result=fcmsLib_Core_Array.find(e.changedTouches,function(t){if(this._isTouchRegistered(t.identifier)){return true;} var touch={"identifier":t.identifier,"position":{"start":{"x":t.pageX,"y":t.pageY},"now":{"x":t.pageX,"y":t.pageY},"end":{"x":t.pageX,"y":t.pageY}}};this._addTouch(touch);if(this._isGeste()){var touches=this._getTouches();this._setStartDifference(this._computeDistance(touches[0].position.start,touches[1].position.start));this._interpretPreventDefault(e);this._interpretStopPropagation(e);return true;} return false;}.bind(this));if(typeof result!=="undefined"){return;}}).method('_touchmove',function _touchmove(e){this.uber("_touchmove",e);if(!this._isGeste()){return;} fcmsLib_Core_Array.each(e.changedTouches,function(t){if(this._isTouchRegistered(t.identifier)){this._updateNowPosition(t.identifier,{"x":t.pageX,"y":t.pageY});}}.bind(this));var diff=this._computeMoveDistance();var threshold=this._getThreshold();var startDifference=this._getStartDifference();if(diff>(startDifference+threshold)){this._setDirection("spread");this._setStartDifference(startDifference+threshold);}else if((diff<(startDifference-threshold))&&(diff>(startDifference-(threshold*2)))){this._setDirection("pinch");this._setStartDifference(startDifference-threshold);}else{return;} if(this._getDirection()!==null){this._executeHandler("during."+this._getDirection(),{},e);return;}}).method('_touchend',function _touchend(e){this.uber("_touchend",e);var touch=fcmsLib_Core_Array.find(e.changedTouches,function(t){return this._isTouchRegistered(t.identifier);}.bind(this));var gesteFinished=(typeof touch==="undefined"?false:true);if(!gesteFinished){this.reset();return;} fcmsLib_Core_Array.each(e.changedTouches,function(t){if(this._isTouchRegistered(t.identifier)){this._updateEndPosition(t.identifier,{"x":t.pageX,"y":t.pageY});}}.bind(this));if(this._isGeste()){if(this._getDirection()!==null){this._executeHandler(this._getDirection(),{},e);}} this.reset();}).method('_evaluateConfiguration',function _evaluateConfiguration(configuration){this.uber("_evaluateConfiguration",configuration);this._setThreshold(configuration.threshold||this._getThreshold());this._setFingers(this._getThreshold());}).method('_setThreshold',function _setThreshold(threshold){if(typeof threshold==="undefined"||typeof threshold!=="number"){throw new fcmsLib_Core_Exception("Ungültiger threshold-Wert.");} this._state.threshold=threshold;}).method('_getThreshold',function _getThreshold(){if(typeof this._state.threshold==="undefined"){this._state.threshold=20;} return this._state.threshold;}).method('_setFingers',function _setFingers(count){if(typeof count==="undefined"||typeof count!=="number"){throw new fcmsLib_Core_Exception("Ungültige Finger-Wert.");} this._state.threshold=count;}).method('_getFingers',function _getFingers(){if(typeof this._state.fingers==="undefined"){this._state.fingers=2;} return this._state.fingers;}).method('_setStartDifference',function _setStartDifference(difference){if(typeof difference==="undefined"||typeof difference!=="number"){throw new fcmsLib_Core_Exception("Ungültige Startdifferenz: "+difference);} this._state.startDifference=difference;}).method('_getStartDifference',function _getStartDifference(){if(typeof this._state.startDifference==="undefined"){this._state.startDifference=0;} return this._state.startDifference;}).method('_setDirection',function _setDirection(direction){if(typeof direction==="undefined"||typeof direction!=="string"||(direction!=="spread"&&direction!=="pinch")){throw new fcmsLib_Core_Exception("Ungültige Richtung: "+direction);} this._state.direction=direction;}).method('_getDirection',function _getDirection(){if(typeof this._state.direction==="undefined"){this._state.direction=null;} return this._state.direction;}).method('_addTouch',function _addTouch(touchPoint){if(typeof touchPoint==="undefined"||typeof touchPoint!=="object"){throw new fcmsLib_Core_Exception("Der touch point ist nicht gültig.");} if(typeof this._state.touches==="undefined"){this._state.touches=this._getTouches();} this._state.touches.push(touchPoint);}).method('_getTouches',function _getTouches(){if(typeof this._state.touches==="undefined"){this._state.touches=[];} return this._state.touches;}).method('_isGeste',function _isGeste(){var touches=this._getTouches();var fingers=this._getFingers();return(touches.length===fingers);}).method('_isTouchRegistered',function _isTouchRegistered(identifier){var result=fcmsLib_Core_Array.filter(this._getTouches(),function(t){return(t.identifier===identifier);});return(result.length!==0?true:false);}).method('_getTouch',function _getTouch(identifier){var touch=fcmsLib_Core_Array.find(this._getTouches(),function(t){return(t.identifier===identifier);});if(typeof touch!=="undefined"){return touch;} return null;}).method('_updateNowPosition',function _updateNowPosition(identifier,position){var touch=this._getTouch(identifier);if(touch===null){fcmsJs.console.error("_updateNowPosition: Touch point "+identifier+" ist nicht vorhanden.");this.reset();return false;} touch.position.now.x=position.x;touch.position.now.y=position.y;return true;}).method('_updateEndPosition',function _updateEndPosition(identifier,position){var touch=this._getTouch(identifier);if(touch===null){fcmsJs.console.error("_updateEndPosition: Touch point "+identifier+" ist nicht vorhanden.");this.reset();return false;} touch.position.end.x=position.x;touch.position.end.y=position.y;return true;}).method('_computeMoveDistance',function _computeMoveDistance(){var touches=this._getTouches();var nowDiff=this._computeDistance(touches[0].position.now,touches[1].position.now);return Math.floor(nowDiff);}).method('_computeDistance',function _computeDistance(p1,p2){var x=Math.abs(p1.x-p2.x);var y=Math.abs(p1.y-p2.y);var diff=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));return Math.floor(diff);});})();(function(){fcmsJs.Class('fcmsLib_Utils_Event_Touch_Swipe').inherits(fcmsLib_Utils_Event_Touch_Touch).construct(function construct(config){this.uber("construct",config);this._handlerNames=["left","right","top","bottom"];}).method('_getAllHandler',function _getAllHandler(){if(typeof this._handler==="undefined"){this._handler={"left":function _left_handler(){},"right":function _right_handler(){},"top":function _top_handler(){},"bottom":function _bottom_handler(){}};} return this._handler;}).method('_touchstart',function _touchstart(e){this.uber("_touchstart",e);var touch=e.changedTouches[0];if(this._getIdentifier()!==null){if(e.targetTouches.length>1){this.reset();} return;} this._setIdentifier(touch.identifier);this._setStartPosition({"x":touch.pageX,"y":touch.pageY});}).method('_touchmove',function _touchmove(e){this.uber("_touchmove",e);var touch=null;for(var i=0,length=e.changedTouches.length;i=threshold){return true;} return false;}),"right":(function(){var diff=endPosition.x-startPosition.x;if(diff>=threshold){return true;} return false;}),"top":(function(){var diff=endPosition.y-startPosition.y;if(diff>=threshold){return true;} return false;}),"bottom":(function(){var diff=startPosition.y-endPosition.y;if(diff>=threshold){return true;} return false;})};this.reset();if(swipe.left){this._executeHandler("left",{},e);} if(swipe.right){this._executeHandler("right",{},e);} if(swipe.top){this._executeHandler("top",{},e);} if(swipe.bottom){this._executeHandler("bottom",{},e);}}).method('_evaluateConfiguration',function _evaluateConfiguration(configuration){this.uber("_evaluateConfiguration",configuration);this._setThreshold(configuration.threshold||this._getThreshold());}).method('_setThreshold',function _setThreshold(threshold){if(typeof threshold==="undefined"||typeof threshold!=="number"){throw new fcmsLib_Core_Exception("Ungültiger threshold-Wert.");} this._state.threshold=threshold;}).method('_getThreshold',function _getThreshold(){if(typeof this._state.threshold==="undefined"){this._state.threshold=20;} return this._state.threshold;}).method('_setStartPosition',function _setStartPosition(position){if(typeof position!=="object"){throw new fcmsLib_Core_Exception("Ungültige Startposition.");} if(typeof this._state.position==="undefined"){this._state.position={};} if(typeof this._state.position.start==="undefined"){this._state.position.start=this._getStartPosition();} this._state.position.start.x=position.x;this._state.position.start.y=position.y;}).method('_getStartPosition',function _getStartPosition(position){if(typeof this._state.position==="undefined"){this._state.position={};} if(typeof this._state.position.start==="undefined"){this._state.position.start={"x":null,"y":null};} return this._state.position.start;}).method('_setEndPosition',function _setEndPosition(position){if(typeof position!=="object"){throw new fcmsLib_Core_Exception("Ungültige Endeposition.");} if(typeof this._state.position==="undefined"){this._state.position={};} if(typeof this._state.position.end==="undefined"){this._state.position.end=this._getEndPosition();} this._state.position.end.x=position.x;this._state.position.end.y=position.y;}).method('_getEndPosition',function _getEndPosition(position){if(typeof this._state.position==="undefined"){this._state.position={};} if(typeof this._state.position.end==="undefined"){this._state.position.end={"x":null,"y":null};} return this._state.position.end;});})();(function(){fcmsJs.Class('fcmsLib_Utils_Event_Touch_Tap').inherits(fcmsLib_Utils_Event_Touch_Touch).construct(function construct(config){this.uber("construct",config);this._handlerNames=["default"];}).method('_getAllHandler',function _getAllHandler(){if(typeof this._handler==="undefined"){this._handler={"default":function(){}};} return this._handler;}).method('reset',function reset(){this._resetTimeout();this.uber("reset");}).method('_touchstart',function _touchstart(e){this.uber("_touchstart",e);if(this._getCount()===this._getTapCount()){window.clearTimeout(this._getTimeoutId());this.reset();return;} this._setIdentifier(e.changedTouches[0].identifier);}).method('_touchend',function _touchend(e){this.uber("_touchend",e);if(e.changedTouches[0].identifier!==this._getIdentifier()){return;} this._incTapCount();if(this._getCount()===this._getTapCount()){this._setTimeoutId(window.setTimeout(function(e){fcmsJs.console.info("Führe aus.");this._executeHandler("default",{},e);this.reset();}.bind(this,e),this._getInterval()));}}).method('_touchmove',function _touchmove(e){this.uber("_touchmove",e);this.reset();}).method('_touchcancel',function _touchcancel(e){this.uber("_touchcancel",e);this.reset();}).method('_touchleave',function _touchleave(e){this.uber("_touchleave",e);this.reset();}).method('_resetTimeout',function _resetTimeout(){window.clearTimeout(this._getTimeoutId());this._setTimeoutId(null);}).method('_incTapCount',function _incTapCount(){this._setTapCount(this._getTapCount()+1);}).method('_setTapCount',function _setTapCount(tapCount){if(typeof tapCount==="undefined"||typeof tapCount!=="number"){throw new fcmsLib_Core_Exception("Kein gültiger tap count übergeben.");} this._state.tapCount=tapCount;}).method('_getTapCount',function _getTapCount(){if(typeof this._state.tapCount==="undefined"){this._state.tapCount=0;} return this._state.tapCount;}).method('_setTimeoutId',function _setTimeoutId(id){if(typeof id==="undefined"){throw new fcmsLib_Core_Exception("Ungültige Timeout-Id.");} this._state.timeout=id;}).method('_getTimeoutId',function _getTimoutId(){if(typeof this._state.timeout==="undefined"){this._state.timeout=null;} return this._state.timeout;}).method('_evaluateConfiguration',function _evaluateConfiguration(configuration){this.uber("_evaluateConfiguration",configuration);this._setCount(configuration.count||this._getCount());this._setInterval(configuration.interval||this._getInterval());}).method('_setCount',function _setCount(count){if(typeof count==="undefined"||typeof count!=="number"){throw new fcmsLib_Core_Exception("Ungültige Konfiguration des Tap-Counts.");} this._configuration.count=count;}).method('_getCount',function _getCount(){if(typeof this._configuration.count==="undefined"){this._configuration.count=1;} return this._configuration.count;}).method('_setInterval',function _setInterval(interval){if(typeof interval==="undefined"||typeof interval!=="number"){throw new fcmsLib_Core_Exception("Ungültige Konfiguration des Tap-Intervalls.");} this._configuration.interval=interval;}).method('_getInterval',function _getInterval(){if(typeof this._configuration.interval==="undefined"){this._configuration.interval=100;} return this._configuration.interval;});})();fcmsJs.Class('fcmsLib_Utils_Event_Wrapper').construct(function(ev){this._setDomEvent(ev);this.special_keys={'esc':27,'escape':27,'tab':9,'space':32,'return':13,'enter':13,'backspace':8,'scrolllock':145,'scroll_lock':145,'scroll':145,'capslock':20,'caps_lock':20,'caps':20,'numlock':144,'num_lock':144,'num':144,'pause':19,'break':19,'insert':45,'home':36,'delete':46,'end':35,'pageup':33,'page_up':33,'pu':33,'pagedown':34,'page_down':34,'pd':34,'left':37,'up':38,'right':39,'down':40,'f1':112,'f2':113,'f3':114,'f4':115,'f5':116,'f6':117,'f7':118,'f8':119,'f9':120,'f10':121,'f11':122,'f12':123};}).method('getSourceElement',function getSourceElement(){return new fcmsLib_Utils_Dom_Element(this._getDomEvent().target);}).method('getElement',function getElement(){return new fcmsLib_Utils_Dom_Element(this._getDomEvent().currentTarget);}).method('isKeyCode',function(c){var code,e=this._getDomEvent();if(typeof c==='string'){if(typeof this.special_keys[c]!=='undefined'){c=this.special_keys[c];}else{throw new fcmsLib_Core_Exception('Fehlerhafter KeyCode übergeben.');}} if(e.keyCode){code=e.keyCode;}else if(e.charCode){code=e.charCode;}else if(e.which){code=e.which;} return code===c;}).method('stop',function stop(){this._getDomEvent().stopPropagation();}).method('preventDefault',function preventDefault(){this._getDomEvent().preventDefault();}).method('getType',function(){return this._getDomEvent().type;}).method('_setDomEvent',function _setDomEvent(ev){if(typeof ev==="undefined"){throw new fcmsLib_Core_Exception("Kein Event-Objekt übergeben.");} this._ev=ev;}).method('_getDomEvent',function _getDomEvent(){return this._ev;});(function(){fcmsJs.Class('fcmsLib_Utils_Autogrow').inherits(fcmsLib_Core_Class);if(typeof jQuery!=='undefined'){(function($){fcmsLib_Utils_Autogrow.construct(function(e){this.element=e;var $this=$(e),minHeight=$this.height(),lineHeight=$this.css('lineHeight');var shadow=$('
').css({position:'absolute',top:-10000,left:-10000,width:$this.width(),fontSize:$this.css('fontSize'),fontFamily:$this.css('fontFamily'),lineHeight:$this.css('lineHeight'),resize:'none'}).appendTo(document.body);var update=function(){var val=$(e).val().replace(//g,'>').replace(/&/g,'&').replace(/\n/g,'
');shadow.html(val);$(e).css('overflow','hidden');$(e).css('height',Math.max(shadow.height()+20,minHeight));};$(e).change(update).keyup(update).keydown(update);update.apply(e);});})(jQuery);}else{fcmsLib_Utils_Autogrow.construct(function(e){fcmsJs.console.error('fcmsLib_Utils_Autogrow benötigt jQuery!');});}})();fcmsLib_Core_DataMethods.register('autogrow',{func:function(e){try{e.each(function(i){var x=new fcmsLib_Utils_Autogrow(i);});}catch(err){fcmsJs.console.error(err);}}});fcmsJs.Class('fcmsLib_Utils_Base64').staticMethod('getChars',function(){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";}).staticMethod('encode',function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;var keyStr=fcmsLib_Utils_Base64.getChars();input=fcmsLib_Utils_Base64.utf8_encode(input);while(i>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;} output=output+ keyStr.charAt(enc1)+keyStr.charAt(enc2)+ keyStr.charAt(enc3)+keyStr.charAt(enc4);} return output;}).staticMethod('decode',function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;var keyStr=fcmsLib_Utils_Base64.getChars();input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);} if(enc4!=64){output=output+String.fromCharCode(chr3);}} output=fcmsLib_Utils_Base64.utf8_decode(output);return output;}).staticMethod('utf8_encode',function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}} return utftext;}).staticMethod('utf8_decode',function(utftext){var string="";var i=0;var c=0,c1=0,c2=0,c3=0;while(i191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}} return string;});(function(){fcmsJs.Class('fcmsLib_Utils_ClientStore').inherits(fcmsLib_Core_Class).construct(function(name){Persist.remove('gears');Persist.remove('cookies');Persist.remove('ie');Persist.remove('flash');this._persist=new Persist.Store(name);}).method('set',function(key,value){this._persist.set(key,value);}).method('get',function get(key,callback){var value={};if((typeof callback==="undefined")||(typeof callback!=="function")){callback=function(key,status,value){this[key]=value;};this._persist.get(key,callback.bind(value,key));return value[key];} this._persist.get(key,callback);}).method('info',function(){return['Backend: ',Persist.type||'none',', ','Approximate Size Limit: ',(Persist.size<0)?'unknown':Persist.size].join('');});})();(function(){fcmsJs.Class('fcmsLib_Utils_Cookies').inherits(fcmsLib_Core_Class).method('create',function(name,value,days){var expires="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString();} document.cookie=name+"="+value+expires+"; path=/";}).method('read',function(name){var nameEQ=name+"=";var ret;var ca=document.cookie.split(';');for(var i=0,len=ca.length;i div:first-child");childs.setStyles({"width":this._pageWidth,"height":this._pageHeight});this._pageCount=jQuery(this._prefix+" .pagesContainer .pageContent").length;this._pageLayout();}).method('destroy',function destroy(){if(this._pages[0]!==null){this._pages[0].removeClassName("page0").removeStyle("z-index").removeStyle("padding-right");} if(this._pages[1]!==null){this._pages[1].removeClassName("page1").removeStyle("z-index");} if(this._pages[2]!==null){this._pages[2].removeClassName("page2").removeStyle("z-index").removeStyle("padding-right");} if(this._pages[3]!==null){this._pages[3].removeClassName("page3").removeStyle("left").removeStyle("margin-left").removeStyle("padding-left").removeStyle("z-index");this._pages[3].setStyle("width",this._pageWidth);} if(this._pages[4]!==null){this._pages[4].removeClassName("page4").removeStyle("z-index");} if(this._pageN1!==null){this._pageN1.removeClassName("pageN1").removeStyle("z-index");}}).method('_pageLayout',function _pageLayout(){this._pages[1]=new fcmsLib_Utils_Dom_Element(this._prefix+" .pageContent:eq("+this._pageIndex+")");this._pages[1].addClassName("page1").setStyle("z-index",1);this._pages[2]=new fcmsLib_Utils_Dom_Element(this._prefix+" .pageContent:eq("+parseInt(this._pageIndex+1,10)+")");this._pages[2].addClassName("page2").setStyles({"left":this._pageWidth,"zIndex":3,"paddingRight":0,"width":this._pageWidth});if(this._pageCount>parseInt(this._pageIndex+2,10)){this._pages[3]=new fcmsLib_Utils_Dom_Element(this._prefix+" .pageContent:eq("+parseInt(this._pageIndex+2,10)+")");this._pages[3].addClassName("page3").setStyles({"zIndex":4,"width":0,"marginLeft":0,"paddingLeft":0});this._pages[4]=new fcmsLib_Utils_Dom_Element(this._prefix+" .pageContent:eq("+parseInt(this._pageIndex+3,10)+")");this._pages[4].addClassName("page4").setStyles({"left":this._pageWidth,"z-index":2});} if(this._pageIndex>1){this._pages[0]=new fcmsLib_Utils_Dom_Element(this._prefix+" .pageContent:eq("+parseInt(this._pageIndex-1,10)+")");this._pages[0].addClassName("page0").setStyles({"left":0,"zIndex":0});this._pageN1=new fcmsLib_Utils_Dom_Element(this._prefix+" .pageContent:eq("+parseInt(this._pageIndex-2,10)+")");this._pageN1.addClassName("pageN1").setStyles({"left":0,"zIndex":0});}}).method('previousPage',function previousPage(callback){this._pages[0].setStyle("z-index",6);this._pageN1.setStyles({"z-index":5,"width":0});var page0Child=this._pages[0].getChild("div:first");page0Child.setStyle("margin-left",-1*this._pageWidth);page0Child.setAnimation({"margin-left":0},this._flipTime,"swing");this._pages[0].setAnimation({"left":this._pageWidth,"width":this._pageWidth},this._flipTime,"swing",function(){if(this._pages[3]!==null){this._pages[3].setStyles({"left":0,"width":this._pageWidth}).removeStyle("z-index").removeStyle("margin-left").removeStyle("padding-left");this._pages[3].removeClassName("page3");} if(this._pages[4]!==null){this._pages[4].removeStyle("z-index");this._pages[4].removeClassName("page4");} this._pages[1].removeClassName("page1");this._pages[2].removeClassName("page2");this._pages[0].removeClassName("page0");this._pageN1.removeClassName("pageN1");if(typeof callback==="function"){callback();} jQuery(this).dequeue();}.bind(this));this._pageN1.setAnimation({"left":0,"width":this._pageWidth},{"duration":this._flipTime},"swing");}).method('nextPage',function nextPage(callback){this._pages[3].setAnimation({"left":0,"width":this._pageWidth},{"duration":this._flipTime},"swing");this._pages[2].setAnimation({"width":0},this._flipTime,"swing",function(){this._pages[1].removeClassName("page1");this._pages[2].removeClassName("page2");this._pages[3].removeClassName("page3");this._pages[4].removeClassName("page4");if(this._pages[0]!==null){this._pages[0].removeClassName("page0");} if(this._pageN1!==null){this._pageN1.removeClassName("pageN1");} if(typeof callback==="function"){callback();} jQuery(this).dequeue();}.bind(this));});})();(function(){fcmsJs.Class('fcmsLib_Utils_Html_Slider').inherits(fcmsLib_Core_Class).construct(function(id,config){this.setId(id);this.setConfiguration(config);this._dragdealer=null;}).method('init',function init(){if(typeof Dragdealer!=="function"){fcmsJs.console.error("Dragdealer ist nicht vorhanden! Slider kann nicht benutzt werden!");}else{this._dragdealer=new Dragdealer(this.getId(),this.getConfiguration());fcmsJs.console.info("Dragdealer initialisiert.");}}).method('setId',function setId(id){this._id=id;}).method('getId',function getId(){return this._id;}).method('setConfiguration',function setConfiguration(configuration){this._configuration=configuration||{};}).method('getConfiguration',function getConfiguration(){return this._configuration;}).method('enable',function enable(){this._dragdealer.enable();}).method('disable',function disable(){this._dragdealer.disable();}).method('setValue',function setValue(x,y,snap){if(typeof snap==="undefined"){snap=false;} this._dragdealer.setValue(x,y,snap);}).method('setStep',function setStep(x,y,snap){if(typeof snap==="undefined"){snap=false;} this._dragdealer.setStep(x,y,snap);});})();fcmsJs.Class('fcmsLib_Utils_Html_Sortable').inherits(fcmsLib_Core_Class).construct(function(element){this._element=element;this.onUpdate=new fcmsLib_Core_Observer();this.onStart=new fcmsLib_Core_Observer();this.onStop=new fcmsLib_Core_Observer();this.onReceive=new fcmsLib_Core_Observer();this.onRemove=new fcmsLib_Core_Observer();this.options={start:function(event,ui){this.onStart.notify();}.bind(this),stop:function(event,ui){this.onStop.notify();}.bind(this),update:function(event,ui){this.onUpdate.notify();}.bind(this),receive:function(event,ui){this.onReceive.notify(new fcmsLib_Utils_Dom_Element(ui.item[0]));}.bind(this),remove:function(event,ui){this.onRemove.notify(new fcmsLib_Utils_Dom_Element(ui.item[0]));}.bind(this),forcePlaceholderSize:true,forceHelperSize:true,scroll:true};this.options=fcmsLib_Core_Object.extend(this.options,this.makeOptionsFromAttribs(element.getAttributes()));this._init();}).method('makeOptionsFromAttribs',function(attributes){var options={};if(typeof attributes['data-fcms-sortable-connector']==='string'){options['connectWith']=['*[data-fcms-sortable-connector='+attributes['data-fcms-sortable-connector']+']'];} if(typeof attributes['data-fcms-sortable-axis']==='string'){options['axis']=attributes['data-fcms-sortable-axis'];} return options;}).method('_init',function(){if(typeof jQuery(this._element.getDomNode()).sortable!=='function'){throw new fcmsLib_Core_Exception('jQuery-UI wurde nicht geladen.');} jQuery(this._element.getDomNode()).sortable(this.options);});(function(){fcmsJs.Class('fcmsLib_Utils_Html_ToggleMenu').inherits(fcmsLib_Core_Class).construct(function(domId){this._ids=[];this._domId=domId;$(domId).select('*[data-fcms-toggle]').each(function(elem){this._ids.push(elem.getAttribute('data-fcms-toggle'));elem.observe('click',this._click.curry(elem).bind(this));}.bind(this));}).method('_click',function(elem,ev){this._ids.each(function(i){if($(i)){if(i===elem.getAttribute('data-fcms-toggle')){$(i).toggle();}else{$(i).hide();}}else{var sub=$(this._domId).down('*[data-fcms-domid='+i+']');if(sub){if(i===elem.getAttribute('data-fcms-toggle')){$(sub).toggle();}else{$(sub).hide();}}else{fcmsJs.console.error('Fehler beim toggeln des Menüs ('+i+')');}}}.bind(this));$(this._domId).select('*[data-fCMS-toggle]').each(function(e){if(e.getAttribute('data-fCMS-toggle')===elem.getAttribute('data-fCMS-toggle')){e.addClassName('active');}else{e.removeClassName('active');}}.bind(this));}).method('hideAll',function(){this._ids.each(function(i){$(i).hide();});$(this._domId).select('*[data-fCMS-toggle]').each(function(elem){elem.removeClassName('active');}.bind(this));});fcmsLib_Utils_Html_ToggleMenu.attach=function(domId){var ret=[];$(domId).select('*[data-fCMS-method=makeSimpleMenu]').each(function(m){ret.push(new fcmsLib_Utils_Html_ToggleMenu(m));});return ret;};fcmsLib_Core_DataMethods.register('toggleMenu',function(node){var menu=new fcmsLib_Utils_Html_ToggleMenu(node);});})();(function(){fcmsJs.Class('fcmsLib_Utils_Html').inherits(fcmsLib_Core_Class);fcmsLib_Utils_Html.parseStyle=function(str){var attributes={};str.split(';').each(function(p){if(p.indexOf(':')!==-1){var t=p.split(':');attributes[fcmsLib_Utils_String.trim(t[0])]=fcmsLib_Utils_String.trim(t[1]);}});return attributes;};fcmsLib_Utils_Html.toStyleString=function(hash){var ret='';fcmsLib_Core_Object.each(hash,function(pair){ret+=pair.key+': '+pair.value+';';});return ret;};fcmsLib_Utils_Html.removeUnit=function(i){if(i.indexOf('px')!==-1){return i.slice(0,i.indexOf('px'));} return i;};fcmsLib_Utils_Html.method('replaceContent',(function(elemid,content){var elem=$(elemid);var tmpspan;var currentElement=null;var oldwrite=document.write;var oldwriteln=document.writeln;document.write=function(input){var tmpdiv=document.createElement('div');tmpdiv.innerHTML=input;for(var t=0;t]*>([\s\S]*?)<\/script>/igm,'').replace(/]*>([\s\S]*?)<\/noscript>/igm,'');} while(elem.hasChildNodes()){elem.removeChild(elem.firstChild);} if(tmpspan){while(tmpspan.hasChildNodes()){elem.appendChild(tmpspan.firstChild);} this.addScripts(elem,content);if(typeof fcmsLib_Core_DataMethods==='function'){fcmsLib_Core_DataMethods.attachHandlers(elem);}}} document.write=oldwrite;document.writeln=oldwriteln;}));fcmsLib_Utils_Html.method('addScripts',(function(container,editor){var sregexp=/]*?)>([\s\S]*?)<\/script>/img;var scripts=sregexp.exec(editor);var inner=function(scripts){var newscript=document.createElement("script");newscript.type="text/javascript";newscript.text=scripts[2];var attribs=scripts[1].match(/([a-zA-Z]*)="([^"]*)"/g);if(attribs){attribs.each(function(a){var att=/([a-zA-Z]*)="([^"]*)"/.exec(a);newscript[att[1]]=att[2];});} container.appendChild(newscript);};while(scripts){inner(scripts);scripts=sregexp.exec(editor);}}));fcmsLib_Utils_Html.staticMethod('_getSingleton',function(method,func){if(typeof this._singleton!=='object'){this._singleton=new this();} return this._singleton;});fcmsLib_Utils_Html.staticMethod('replaceContent',function(method,func){this._getSingleton().replaceContent(method,func);});fcmsLib_Utils_Html.staticMethod('addScripts',function(method,func){this._getSingleton().addScripts(method,func);});})();(function(){fcmsJs.Class('fcmsLib_Utils_CharacterCounter').inherits(fcmsLib_Core_Class).construct(function construct(inputId,counterId,maxLength,mode){this.inputElement=$(inputId);this.counterElement=$(counterId);this.maxLength=maxLength;if(typeof(mode)==='undefined'||mode===null) {this.mode='reverse';}else{this.mode=mode;}}).method('init',function init(){if(this.inputElement===null){fcmsJs.console.error('Input-Element für charactercounter data-Method nicht gefunden.');return false;} if(this.counterElement===null){fcmsJs.console.error('Counter-Element für charactercounter data-Method nicht gefunden.');return false;} this.updateCounter();this.inputElement.observe('keyup',function(){this.updateCounter();}.bind(this));this.inputElement.observe('change',function(){this.updateCounter();}.bind(this));return true;}).method('setCounter',function setCounter(value){if(this.counterElement.nodeName.toLowerCase()==='input'){this.counterElement.value=value;}else{if(value<0){this.counterElement.innerHTML=''+value+'';}else{this.counterElement.innerHTML=value;}}}).method('countCharacters',function countCharacters(){return this.inputElement.value.length;}).method('updateCounter',function updateCounter(){if(this.mode!=='soft'&&this.countCharacters()>this.maxLength){this.inputElement.value=this.inputElement.value.substring(0,this.maxLength);}else{if(this.mode==='normal'){this.setCounter(this.countCharacters());}else if(this.mode==='soft'){this.setCounter(this.maxLength-this.countCharacters());}else if(this.mode==='reverse'){this.setCounter(this.maxLength-this.countCharacters());}}});fcmsLib_Core_DataMethods.register('charactercounter',function(node){var counterId=node.getAttribute('data-fCMS-counterId');var maxLength=node.getAttribute('data-fCMS-maxLength');var mode=node.getAttribute('data-fCMS-mode');var counter=new fcmsLib_Utils_CharacterCounter(node,counterId,maxLength,mode);counter.init();});})();(function(){fcmsJs.Class('fcmsLib_Utils_LocationHash_Observer').inherits(fcmsLib_Core_Observer).construct(function(){this._handlers=[];this._previousHash=window.location.hash;this._timerInterval=500;if('onhashchange'in window){Event.observe(window,'hashchange',function(){this.notify();}.bind(this));fcmsJs.console.debug('onhashchange-Event wird unterstützt');}else{this._activateTimer();fcmsJs.console.debug('onhashchange-Event wird nicht unterstützt');}}).method('_activateTimer',function(){window.setInterval(function(){var currentHash=window.location.hash;if(this._previousHash!==currentHash){this.notify();} this._previousHash=currentHash;}.bind(this),this._timerInterval);});})();(function(){fcmsJs.Class('fcmsLib_Utils_LocationHash_Parser').construct(function(hash){if(typeof hash==='undefined'){this._hash=window.location.hash;}else{this._hash=hash;} this._pairs={};this._parse();}).method('_parse',function(){if(this._hash==''||this._hash=='#') {this._pairs={};}else{var arr=[];var tmp;tmp=this._hash.split('/');for(var i in tmp){if(tmp[i]!==''&&tmp[i]!=='#'){arr.push(tmp[i]);}} for(var j in arr){if(typeof arr[j]==='string'){tmp=arr[j].split('=');if(tmp.size()===2){this._pairs[tmp[0]]=tmp[1];}}}}}).method('get',function(key){if(typeof this._pairs[key]!=='undefined'){return this._pairs[key];} return false;}).method('set',function(key,value){this._pairs[key]=value;this._refreshHash();}).method('remove',function(key){delete this._pairs[key];this._refreshHash();}).method('_refreshHash',function(){var hash='';var arr=[];for(var key in this._pairs){if(typeof this._pairs[key]!=='function'){arr.push(key+'='+this._pairs[key]);}} if(arr.length>0){hash='/'+arr.join('/')+'/';} window.location.hash=hash;});})();(function(){function array(n){for(i=0;i=0){a=a%0x80000000;a>>=b;a+=0x40000000>>(b-1);}else a>>=b;return a;} function fCMSmd5_shl1(a){a=a%0x80000000;if(a&0x40000000==0x40000000) {a-=0x40000000;a*=2;a+=0x80000000;}else a*=2;return a;} function fCMSmd5_shl(a,b){a=integer(a);b=integer(b);for(var i=0;i=0) if(t2>=0) return((t1&t2)+0x80000000);else return(t1&b);else if(t2>=0) return(a&t2);else return(a&b);} function fCMSmd5_or(a,b){a=integer(a);b=integer(b);var t1=(a-0x80000000);var t2=(b-0x80000000);if(t1>=0) if(t2>=0) return((t1|t2)+0x80000000);else return((t1|b)+0x80000000);else if(t2>=0) return((a|t2)+0x80000000);else return(a|b);} function fCMSmd5_xor(a,b){a=integer(a);b=integer(b);var t1=(a-0x80000000);var t2=(b-0x80000000);if(t1>=0) if(t2>=0) return(t1^t2);else return((t1^b)+0x80000000);else if(t2>=0) return((a^t2)+0x80000000);else return(a^b);} function fCMSmd5_not(a){a=integer(a);return(0xffffffff-a);} var state=new array(4);var count=new array(2);count[0]=0;count[1]=0;var buffer=new array(64);var transformBuffer=new array(16);var digestBits=new array(16);var S11=7;var S12=12;var S13=17;var S14=22;var S21=5;var S22=9;var S23=14;var S24=20;var S31=4;var S32=11;var S33=16;var S34=23;var S41=6;var S42=10;var S43=15;var S44=21;function fCMSmd5_F(x,y,z){return fCMSmd5_or(fCMSmd5_and(x,y),fCMSmd5_and(fCMSmd5_not(x),z));} function fCMSmd5_G(x,y,z){return fCMSmd5_or(fCMSmd5_and(x,z),fCMSmd5_and(y,fCMSmd5_not(z)));} function fCMSmd5_H(x,y,z){return fCMSmd5_xor(fCMSmd5_xor(x,y),z);} function fCMSmd5_I(x,y,z){return fCMSmd5_xor(y,fCMSmd5_or(x,fCMSmd5_not(z)));} function fCMSmd5_rotateLeft(a,n){return fCMSmd5_or(fCMSmd5_shl(a,n),(fCMSmd5_shr(a,(32-n))));} function fCMSmd5_FF(a,b,c,d,x,s,ac){a=a+fCMSmd5_F(b,c,d)+x+ac;a=fCMSmd5_rotateLeft(a,s);a=a+b;return a;} function fCMSmd5_GG(a,b,c,d,x,s,ac){a=a+fCMSmd5_G(b,c,d)+x+ac;a=fCMSmd5_rotateLeft(a,s);a=a+b;return a;} function fCMSmd5_HH(a,b,c,d,x,s,ac){a=a+fCMSmd5_H(b,c,d)+x+ac;a=fCMSmd5_rotateLeft(a,s);a=a+b;return a;} function fCMSmd5_II(a,b,c,d,x,s,ac){a=a+fCMSmd5_I(b,c,d)+x+ac;a=fCMSmd5_rotateLeft(a,s);a=a+b;return a;} function fCMSmd5_transform(buf,offset){var a=0,b=0,c=0,d=0;var x=transformBuffer;a=state[0];b=state[1];c=state[2];d=state[3];for(i=0;i<16;i++){x[i]=fCMSmd5_and(buf[i*4+offset],0xff);for(j=1;j<4;j++){x[i]+=fCMSmd5_shl(fCMSmd5_and(buf[i*4+j+offset],0xff),j*8);}} a=fCMSmd5_FF(a,b,c,d,x[0],S11,0xd76aa478);d=fCMSmd5_FF(d,a,b,c,x[1],S12,0xe8c7b756);c=fCMSmd5_FF(c,d,a,b,x[2],S13,0x242070db);b=fCMSmd5_FF(b,c,d,a,x[3],S14,0xc1bdceee);a=fCMSmd5_FF(a,b,c,d,x[4],S11,0xf57c0faf);d=fCMSmd5_FF(d,a,b,c,x[5],S12,0x4787c62a);c=fCMSmd5_FF(c,d,a,b,x[6],S13,0xa8304613);b=fCMSmd5_FF(b,c,d,a,x[7],S14,0xfd469501);a=fCMSmd5_FF(a,b,c,d,x[8],S11,0x698098d8);d=fCMSmd5_FF(d,a,b,c,x[9],S12,0x8b44f7af);c=fCMSmd5_FF(c,d,a,b,x[10],S13,0xffff5bb1);b=fCMSmd5_FF(b,c,d,a,x[11],S14,0x895cd7be);a=fCMSmd5_FF(a,b,c,d,x[12],S11,0x6b901122);d=fCMSmd5_FF(d,a,b,c,x[13],S12,0xfd987193);c=fCMSmd5_FF(c,d,a,b,x[14],S13,0xa679438e);b=fCMSmd5_FF(b,c,d,a,x[15],S14,0x49b40821);a=fCMSmd5_GG(a,b,c,d,x[1],S21,0xf61e2562);d=fCMSmd5_GG(d,a,b,c,x[6],S22,0xc040b340);c=fCMSmd5_GG(c,d,a,b,x[11],S23,0x265e5a51);b=fCMSmd5_GG(b,c,d,a,x[0],S24,0xe9b6c7aa);a=fCMSmd5_GG(a,b,c,d,x[5],S21,0xd62f105d);d=fCMSmd5_GG(d,a,b,c,x[10],S22,0x2441453);c=fCMSmd5_GG(c,d,a,b,x[15],S23,0xd8a1e681);b=fCMSmd5_GG(b,c,d,a,x[4],S24,0xe7d3fbc8);a=fCMSmd5_GG(a,b,c,d,x[9],S21,0x21e1cde6);d=fCMSmd5_GG(d,a,b,c,x[14],S22,0xc33707d6);c=fCMSmd5_GG(c,d,a,b,x[3],S23,0xf4d50d87);b=fCMSmd5_GG(b,c,d,a,x[8],S24,0x455a14ed);a=fCMSmd5_GG(a,b,c,d,x[13],S21,0xa9e3e905);d=fCMSmd5_GG(d,a,b,c,x[2],S22,0xfcefa3f8);c=fCMSmd5_GG(c,d,a,b,x[7],S23,0x676f02d9);b=fCMSmd5_GG(b,c,d,a,x[12],S24,0x8d2a4c8a);a=fCMSmd5_HH(a,b,c,d,x[5],S31,0xfffa3942);d=fCMSmd5_HH(d,a,b,c,x[8],S32,0x8771f681);c=fCMSmd5_HH(c,d,a,b,x[11],S33,0x6d9d6122);b=fCMSmd5_HH(b,c,d,a,x[14],S34,0xfde5380c);a=fCMSmd5_HH(a,b,c,d,x[1],S31,0xa4beea44);d=fCMSmd5_HH(d,a,b,c,x[4],S32,0x4bdecfa9);c=fCMSmd5_HH(c,d,a,b,x[7],S33,0xf6bb4b60);b=fCMSmd5_HH(b,c,d,a,x[10],S34,0xbebfbc70);a=fCMSmd5_HH(a,b,c,d,x[13],S31,0x289b7ec6);d=fCMSmd5_HH(d,a,b,c,x[0],S32,0xeaa127fa);c=fCMSmd5_HH(c,d,a,b,x[3],S33,0xd4ef3085);b=fCMSmd5_HH(b,c,d,a,x[6],S34,0x4881d05);a=fCMSmd5_HH(a,b,c,d,x[9],S31,0xd9d4d039);d=fCMSmd5_HH(d,a,b,c,x[12],S32,0xe6db99e5);c=fCMSmd5_HH(c,d,a,b,x[15],S33,0x1fa27cf8);b=fCMSmd5_HH(b,c,d,a,x[2],S34,0xc4ac5665);a=fCMSmd5_II(a,b,c,d,x[0],S41,0xf4292244);d=fCMSmd5_II(d,a,b,c,x[7],S42,0x432aff97);c=fCMSmd5_II(c,d,a,b,x[14],S43,0xab9423a7);b=fCMSmd5_II(b,c,d,a,x[5],S44,0xfc93a039);a=fCMSmd5_II(a,b,c,d,x[12],S41,0x655b59c3);d=fCMSmd5_II(d,a,b,c,x[3],S42,0x8f0ccc92);c=fCMSmd5_II(c,d,a,b,x[10],S43,0xffeff47d);b=fCMSmd5_II(b,c,d,a,x[1],S44,0x85845dd1);a=fCMSmd5_II(a,b,c,d,x[8],S41,0x6fa87e4f);d=fCMSmd5_II(d,a,b,c,x[15],S42,0xfe2ce6e0);c=fCMSmd5_II(c,d,a,b,x[6],S43,0xa3014314);b=fCMSmd5_II(b,c,d,a,x[13],S44,0x4e0811a1);a=fCMSmd5_II(a,b,c,d,x[4],S41,0xf7537e82);d=fCMSmd5_II(d,a,b,c,x[11],S42,0xbd3af235);c=fCMSmd5_II(c,d,a,b,x[2],S43,0x2ad7d2bb);b=fCMSmd5_II(b,c,d,a,x[9],S44,0xeb86d391);state[0]+=a;state[1]+=b;state[2]+=c;state[3]+=d;} function fCMSmd5_init(){count[0]=count[1]=0;state[0]=0x67452301;state[1]=0xefcdab89;state[2]=0x98badcfe;state[3]=0x10325476;for(i=0;i=63){fCMSmd5_transform(buffer,0);}} function fCMSmd5_finish(){var bits=new array(8);var padding;var i=0,index=0,padLen=0;for(i=0;i<4;i++){bits[i]=fCMSmd5_and(fCMSmd5_shr(count[0],(i*8)),0xff);} for(i=0;i<4;i++){bits[i+4]=fCMSmd5_and(fCMSmd5_shr(count[1],(i*8)),0xff);} index=fCMSmd5_and(fCMSmd5_shr(count[0],3),0x3f);padLen=(index<56)?(56-index):(120-index);padding=new array(64);padding[0]=0x80;for(i=0;i?@ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";fcmsJs.md5=function MD5(entree){var l,s,k,ka,kb,kc,kd;fCMSmd5_init();for(k=0;k0){this.display('Bitte korrigieren Sie folgende Fehler und versuchen es erneut:',response.responseJSON.issues);}else if(response.responseJSON.messages.length>0){this.display('Bitte korrigieren Sie folgende Fehler und versuchen es erneut:',response.responseJSON.messages);}}catch(e){this.display(e.message,[e.description]);}}).method('hide',function(){$(this._editorId).hide();});})();(function(){fcmsJs.Class('fcmsLib_Utils_Message_InfoBar').inherits(fcmsLib_Core_Class).construct(function(domId,options){if(domId instanceof fcmsLib_Utils_Dom_Element){this._domId=domId._element;}else{this._domId=domId;} this._hideTimeout=5000;this.icons={ok:'/_/admin/pics/editor/icons/ok.png',running:'/_/admin/pics/editor/icons/info.gif',error:'/_/admin/pics/editor/icons/schliessen.gif'};fcmsJs.console.info(typeof options);if(typeof options==='object'){for(var i in options){if(options.hasOwnProperty(i)){this['_'+i]=options[i];}}}}).method('setIcons',function(icons){this.icons=fcmsLib_Core_Array.merge(this.icons,icons);fcmsJs.console.debug(this.icons);}).method('info',function(msg,hideTimeout){$(this._domId).removeClassName('warning');$(this._domId).select('img')[0].src=this.icons.ok;$(this._domId).select('.message')[0].innerHTML=msg;$(this._domId).setStyle({display:'block'});if(typeof hideTimeout!=='undefined'){fcmsJs.window.$.setTimeout(this.hide.bind(this),hideTimeout);return true;} if(this._hideTimeout>0){fcmsJs.window.$.setTimeout(this.hide.bind(this),this._hideTimeout);}}).method('hide',function(msg){fcmsJs.console.debug('Hide: '+this._domId);$(this._domId).hide();}).method('error',function(msg){$(this._domId).select('img')[0].src=this.icons.error;$(this._domId).select('.message')[0].innerHTML=msg;$(this._domId).setStyle({display:'block'});$(this._domId).show();}).method('running',function(msg){$(this._domId).addClassName('warning');$(this._domId).select('img')[0].src=this.icons.running;$(this._domId).select('.message')[0].innerHTML=msg;$(this._domId).setStyle({display:'block'});$(this._domId).show();});})();(function(){var yesObserver=new fcmsLib_Core_Observer('yesObserve');var noObserver=new fcmsLib_Core_Observer('noObserve');fcmsJs.Class('fcmsLib_Utils_Message_Question').inherits(fcmsLib_Core_Class).construct(function(targetId,msg,onYes,onNo){this._templateId='submitcontentboxTemplate';this._targetId=targetId;this.rules={'message':'.message','yes':'.yes','no':'.no'};this._awnsered=false;this._onYes=onYes;this._onNo=onNo;this._msg=msg;}).method('display',function(styles){var rules={};rules[this.rules['message']]='msg';this._tpl=new fcmsLib_Utils_Pure_Template(this._templateId,this._targetId,rules);this._tpl.render({msg:this._msg});fcmsJs.shortcut.add('Enter',this.yes.bind(this),{preventDefault:false});fcmsJs.shortcut.add('Esc',this.no.bind(this),{preventDefault:false});$(this._targetId).setStyle(styles);$(this._targetId).setStyle({display:'block'});$(this._targetId).select('.yes')[0].observe('click',this.yes.bind(this));$(this._targetId).select('.no')[0].observe('click',this.no.bind(this));}).method('yes',function(){if(this._awnsered===false){this.hide();this._onYes();}}).method('hide',function(){$(this._targetId).hide();this._awnsered=true;}).method('no',function(){if(this._awnsered===false){this.hide();this._onNo();}});})();(function(){fcmsJs.Class('fcmsLib_Utils_Mouseposition').inherits(fcmsLib_Core_Class).construct(function construct(config){this._id=config.id||"body";this._position={"x":0,"y":0};this._element=null;}).method('get',function get(event){var e=event||window.event;if(this._element===null){try{this._element=new fcmsLib_Utils_Dom_Element(this._id);}catch(exception){var exception2=new fcmsLib_Core_Exception(exception);fcmsJs.console.error(exception2.getMessage());return{"x":null,"y":null};}} var offset=this._element.offset();if(e.pageX||e.pageY){this._position.x=e.pageX-offset.left;this._position.y=e.pageY-offset.top;}else{this._position.x=e.clientX+document.body.scrollLeft-document.body.clientLeft;this._position.y=e.clientY+document.body.scrollTop-document.body.clientTop;} return{"x":this._position.x,"y":this._position.y};});})();(function(){fcmsJs.Class('fcmsLib_Utils_Progressbar').inherits(fcmsLib_Core_Class).construct(function construct(node){this._count=0;this._range=100;this._counter={};this._counter.format='itemcount';this._counter.pre='';this._counter.value='0%';this._counter.post='';this._header='Fortschrittsanzeige';this._status='';this._messages='';this._errors='';this._active=false;if(node){this.node=node;}else{this.node=new fcmsLib_Utils_Dom_Element(document.getElementById('ProgressBar'));} if(this.node){if(!this.node.down('*[data-fcms-domid=ProgressBarHeader]')){fcmsJs.console.debug('ProgressBar: Dom-Element \'ProgressBarHeader\' fehlt!');} if(!this.node.down('*[data-fcms-domid=ProgressBarCounter]')){fcmsJs.console.debug('ProgressBar: Dom-Element \'ProgressBarCounter\' fehlt!');} if(!this.node.down('*[data-fcms-domid=ProgressBarStatus]')){fcmsJs.console.debug('ProgressBar: Dom-Element \'ProgressBarStatus\' fehlt!');} if(!this.node.down('*[data-fcms-domid=ProgressBarErrors]')){fcmsJs.console.debug('ProgressBar: Dom-Element \'ProgressBarErrors\' fehlt!');} if(!this.node.down('*[data-fcms-domid=ProgressBarMessages]')){fcmsJs.console.debug('ProgressBar: Dom-Element \'ProgressBarMessages\' fehlt!');} if(!this.node.down('*[data-fcms-domid=ProgressBarBar]')){fcmsJs.console.debug('ProgressBar: Dom-Element \'ProgressBarBar\' fehlt!');}}else{fcmsJs.console.debug('Kein Element mit id \'ProgressBar\' gefunden.');}}).method('setRange',function(range){if(!this._active){this._range=range;}}).method('setHeader',function(header){if(!this._active){this._header=header;}}).method('setupCounter',function(format,pre,post){if(!this._active){fcmsJs.console.debug('ProgressBar setup: '+format+', '+pre+', '+post);this._counter.format=(format=='itemcount'?'itemcount':'percentage');this._counter.pre=(pre!=''?pre:this._counter.pre);this._counter.post=(post!=''?post:this._counter.post);}}).method('updateCount',function(count){this._count=count;this.update();}).method('updateStatus',function(status){this._status=status;this.update();}).method('appendError',function(message){this._errors+='
'+message;this.update();}).method('appendMessage',function(message){this._messages+='
'+message;this.update();}).method('update',function(){fcmsJs.console.debug('ProgressBar: update');if(this.node){if(this._count>this._range){fcmsJs.console.debug('ProgressBar: count ('+this._count+') > range ('+this._range+')');this._count=this._range;} var counterstyle=parseInt(this._count/this._range*100,10)+'%';if(this._counter.format=='percentage'){this._counter.value=counterstyle;}else{this._counter.value=this._count+' / '+this._range;} if(this.node.down('*[data-fcms-domid=ProgressBarHeader]')){this.node.down('*[data-fcms-domid=ProgressBarHeader]').replaceContent(this._header);} if(this.node.down('*[data-fcms-domid=ProgressBarCounter]')){this.node.down('*[data-fcms-domid=ProgressBarCounter]').replaceContent(this._counter.pre+' '+this._counter.value+' '+this._counter.post);} if(this.node.down('*[data-fcms-domid=ProgressBarStatus]')){this.node.down('*[data-fcms-domid=ProgressBarStatus]').replaceContent(this._status);} if(this.node.down('*[data-fcms-domid=ProgressBarErrors]')){this.node.down('*[data-fcms-domid=ProgressBarErrors]').replaceContent(this._errors);} if(this.node.down('*[data-fcms-domid=ProgressBarMessages]')){this.node.down('*[data-fcms-domid=ProgressBarMessages]').replaceContent(this._messages);} if(this.node.down('*[data-fcms-domid=ProgressBarBar]')){this.node.down('*[data-fcms-domid=ProgressBarBar]').setStyles({width:counterstyle});} if(this._active){this.node.show();}else{this.node.hide();}}else{fcmsJs.console.debug('Kein Element mit id \'ProgressBar\' gefunden.');}}).method('show',function(){fcmsJs.console.debug('ProgressBar: show');if(this.node){this._active=true;this.update();}else{fcmsJs.console.debug('Kein Element mit id \'ProgressBar\' gefunden.');}}).method('hide',function(){fcmsJs.console.debug('ProgressBar: hide');this._active=false;this.update();});})();(function(){fcmsJs.Class('fcmsLib_Utils_Pure_List').inherits(fcmsLib_Core_Class).construct(function(domId,templateId,elementName,dir,maindir){var directive={};if(typeof maindir==='object'){directive=maindir;} this._domId=domId;this._targetId=domId;this._templateId=templateId;this._elementName=elementName;directive['@id']=function(){return this._targetId;}.bind(this);directive['.item']={};directive['.item'][''+elementName+' <- elements']=dir;try{this._rule=$(this._templateId).compile(directive);directive['@id']=function(){return'';};this._subrule=$(this._templateId).compile(directive);}catch(e){fcmsJs.console.error('Fehler beim Pure-Compile des Templates '+this._templateId);fcmsJs.console.error(e);}}).method('render',function(data){if($(this._targetId)){$(this._targetId).render({elements:data},this._rule);if(typeof fcmsLib_Core_DataMethods==='function'){fcmsLib_Core_DataMethods.attachHandlers(this._targetId);}}else{fcmsJs.console.error('DOM-ID: '+this._targetId+' existiert nicht.');}});})();(function(){function getSelected(id,model){var func='get'+id.substr(0,1).toUpperCase()+id.substr(1,id.length);if(typeof model[func]!=='undefined'){return model[func].apply(model);}else{return model.data[id];}} function setSelected(id,model,val){var func='set'+id.substr(0,1).toUpperCase()+id.substr(1,id.length);if(typeof model[func]!=='undefined'){model[func].apply(model,[val]);}else{model.data[id]=val;}} fcmsJs.Class('fcmsLib_Utils_Pure_Select').inherits(fcmsLib_Core_Class).construct(function(id,element,model,options,callbacks){this._model=model;this._options=[];if(typeof options==='object'){this._options=options;} this.callbacks={};if(typeof callbacks==='object'){this.callbacks=callbacks;} this._field=id;this._getter='get'+id.substr(0,1).toUpperCase()+id.substr(1,id.length);this._setter='set'+id.substr(0,1).toUpperCase()+id.substr(1,id.length);this._element=element;this._origValue=this.getSelected(this._field,model);}).method('getField',function(){return this._field;}).method('getSelected',function(){var r;if(typeof this.callbacks['getSelected']==='function'){r=this.callbacks['getSelected']();}else{var func=this.getGetterName();if(typeof this._model[func]!=='undefined'){r=this._model[func]();}else{r=fcmsLib_Core_Object.getMultiDimKey(this._model,this.getField());}} return r;}).method('getGetterName',function(){return this._getter;}).method('getSetterName',function(){return this._setter;}).method('setSelected',function(v){var val=v;if(typeof this.callbacks['setSelected']==='function'){return this.callbacks['setSelected'](val);} var func=this.getSetterName();if(typeof this._model[func]!=='undefined'){this._model[func].apply(this._model,[val]);}else{fcmsLib_Core_Object.setMultiDimKey(this._model,this.getField(),val);}}).method('getElement',function(){if(this._element instanceof fcmsLib_Utils_Dom_Element){return this._element.getDomNode();} return this._element;}).method('observe',function(evt,func){var e=this.getElement();e.observe(evt,func);e.observe("fcms:"+evt,func);return this;}).method('revert',function(){this.setSelected(this._origValue);var selected=this._origValue;this.getElement().select('span')[0].innerHTML=this._options[selected];this.getElement().select('select option[value="'+selected+'"]')[0].selected=true;}).method('enable',function(){this._disabled=false;this.getElement().removeClassName('disabled');try{if(this.getElement().down('select')){this.getElement().down('select').disabled=false;}}catch(e){fcmsJs.console.error(e);}}).method('disable',function(){this._disabled=true;this.getElement().addClassName('disabled');try{if(this.getElement().down('select')){this.getElement().down('select').disabled=true;}}catch(e){fcmsJs.console.error(e);}}).method('display',function(){if(fcmsLib_Core_Object.size(this._options)===2){return this.displayToggle();} return this.displaySelect();}).method('displaySelect',function(){var selected=this.getSelected();var selectedName=typeof this._options[selected]!=='undefined'?this._options[selected]:'Undefiniert';var e=this.getElement();var html='';this.lastSelected=this.getSelected();html=''+selectedName+'';html+='';fcmsLib_Utils_Html.replaceContent(this.getElement(),html);if(typeof e.select('select option[value="'+selected+'"]')[0]!=='undefined'){e.select('select option[value="'+selected+'"]')[0].selected=true;} e.select('select')[0].observe('click',function(ev){if(e.hasClassName('disabled')){Event.stop(ev);return false;} return true;});var that=this;e.select('select')[0].observe('change',function(ev){if(!e.hasClassName('disabled')){if(e.select('span')[0]){fcmsLib_Utils_Html.replaceContent(e.select('span')[0],that._options[$F(this)]);} that.setSelected($F(this));that.lastSelected=selected;selected=$F(this);e.fire('fcms:change');}});}).method('displayToggle',function(){var selected=this.getSelected(),html='';if(typeof this._options[selected]==='undefined'){if(typeof this._options['true']!=='undefined'){if(selected){selected='true';}else{selected='false';}} if(typeof this._options[0]!=='undefined'){if(selected){selected=1;}else{selected=0;}}} html=''+this._options[selected]+'';fcmsLib_Utils_Html.replaceContent(this.getElement(),html);this.getElement().fire('fcms:change');this.getElement().select('span')[0].observe('click',function(){if(!this.getElement().hasClassName('disabled')){var next;fcmsLib_Core_Object.each(this._options,function(pair){if(!this._same(pair.key,this.getSelected())){next=pair.key;}}.bind(this));if(typeof this.getSelected()==='boolean'){if(next==='true'){next=true;} if(next==='false'){next=false;}} this.setSelected(next);this.display();}}.bind(this));}).method('_same',function(a,b){if(a==b){return true;} if(a===true){a='true';} if(b===true){b='true';} if(a===false){a='false';} if(b===false){b='false';} return a===b;});fcmsLib_Utils_Pure_Select.makeButton=function(id,domId,model,options,config){function makeSelect(){var selected=getSelected(id,model);var lastSelected=getSelected(id,model);var selectedName=typeof options[selected]!=='undefined'?options[selected]:'Undefiniert';var html='';if(!((config&&config.notext)||false)){html=''+selectedName+'';} html+='';fcmsLib_Utils_Html.replaceContent($('selectbox_'+domId),html);if(typeof $('selectbox_'+domId).select('select option[value="'+selected+'"]')[0]!=='undefined'){$('selectbox_'+domId).select('select option[value="'+selected+'"]')[0].selected=true;} $('selectbox_'+domId).select('select')[0].observe('click',function(ev){if($('selectbox_'+domId).hasClassName('disabled')){fcmsJs.console.stop('asdf');Event.stop(ev);return false;} return true;});$('selectbox_'+domId).select('select')[0].observe('change',function(){if(!$('selectbox_'+domId).hasClassName('disabled')){if($('selectbox_'+domId).select('span')[0]){$('selectbox_'+domId).select('span')[0].innerHTML=options[$F(this)];} setSelected(id,model,$F(this));lastSelected=selected;selected=$F(this);$('selectbox_'+domId).fire('fcms:change');}});return new fcmsLib_Utils_Pure_Select(id,$('selectbox_'+domId),model,options,config);} try{return makeSelect();}catch(e){fcmsJs.console.error(e);}};fcmsLib_Utils_Pure_Select.makeBooleanButton=function(id,domId,model,options,callbacks){function makeBooleanSelect(){var box=new fcmsLib_Utils_Pure_Select(id,$('selectbox_'+domId),model,options,callbacks),selected=box.getSelected(),html='';if(typeof options[selected]==='undefined'){if(typeof options['true']!=='undefined'){if(selected){selected='true';}else{selected='false';}} if(typeof options[0]!=='undefined'){if(selected){selected=1;}else{selected=0;}}} html=''+options[selected]+'';fcmsLib_Utils_Html.replaceContent($('selectbox_'+domId),html);$('selectbox_'+domId).fire('fcms:change');$('selectbox_'+domId).select('span')[0].observe('click',function(){if(!$('selectbox_'+domId).hasClassName('disabled')){if(box.getSelected()){box.setSelected(false);}else{box.setSelected(true);} makeBooleanSelect();}});return box;} return makeBooleanSelect();};fcmsLib_Utils_Pure_Select.setOptions=function(boxName,options){};})();(function(){fcmsJs.Class('fcmsLib_Utils_Pure_Template').inherits(fcmsLib_Core_Class).construct(function(templateId,targetId,dir){if(templateId instanceof fcmsLib_Utils_Dom_Element){templateId=templateId.getDomNode();} if(targetId instanceof fcmsLib_Utils_Dom_Element){targetId=targetId.getDomNode();} this._templateId=templateId;this._targetId=targetId;if(!$(this._templateId)){fcmsJs.console.error('TemplateId '+this._templateId+' nicht gefunden.');throw new fcmsLib_Core_Exception('TemplateId '+this._templateId+' nicht gefunden.');} if(typeof $(this._templateId).compile!=='function'){fcmsJs.console.error('TemplateId '+this._templateId+' hat keine compile funktion (eventuell extlib_pure laden?)!');throw new fcmsLib_Core_Exception('TemplateId '+this._templateId+' hat keine compile funktion.');} if(dir===null){this._rule=null;}else{dir['@id']=function(){if(typeof targetId==='string'){return targetId;}};dir['@data-fcms-domid']=function(){if(typeof this._targetId==='string'){return this._targetId;}else if(typeof this._targetId==='object'){return new fcmsLib_Utils_Dom_Element(this._targetId).getAttribute('data-fcms-domid');}}.bind(this);this._addSpecialRules(dir);this._rule=$(this._templateId).compile(dir);} this._directive=dir;this._renderMode='template';}).method('_addSpecialRules',function(dir){var template=new fcmsLib_Utils_Dom_Element(this.getTemplateId());fcmsLib_Core_Array.each(template.select('input[name]'),function(e){if(e.getAttribute('name').match(/^[a-zA-Z\$_\@][\w\$:\-]*(\.[\w\$:\-]*[^\.])*$/)){if(typeof dir['input[name="'+e.getAttribute('name')+'"]@value']==="undefined"){dir['input[name="'+e.getAttribute('name')+'"]@value']=fcmsLib_Utils_Pure_Util.formEscape(e.getAttribute('name'));}else{fcmsJs.console.warn('Regel input[name="'+e.getAttribute('name')+'"]@value ist bereits definiert und wird nicht in eine special rule verwandelt.');}}});fcmsLib_Core_Array.each(template.select('textarea[name]'),function(e){if(e.getAttribute('name').match(/^[a-zA-Z\$_\@][\w\$:\-]*(\.[\w\$:\-]*[^\.])*$/)){if(typeof dir['textarea[name="'+e.getAttribute('name')+'"]']==="undefined"){dir['textarea[name="'+e.getAttribute('name')+'"]']=fcmsLib_Utils_Pure_Util.formEscape(e.getAttribute('name'));}else{fcmsJs.console.warn('Regel textarea[name="'+e.getAttribute('name')+'"] ist bereits definiert und wird nicht in eine special rule verwandelt.');}}});fcmsLib_Core_Array.each(template.select('*[data-fcms-field]'),function(e){switch(e.tagType()){case'INPUT':dir['input[data-fcms-field="'+e.getAttributes()['data-fcms-field']+'"]@value']=fcmsLib_Utils_Pure_Util.formEscape(e.getAttributes()['data-fcms-field']);break;case'TEXTAREA':dir['*[data-fcms-field="'+e.getAttributes()['data-fcms-field']+'"]']=fcmsLib_Utils_Pure_Util.formEscape(e.getAttributes()['data-fcms-field']);break;default:dir[e.tagType()+'[data-fcms-field="'+e.getAttributes()['data-fcms-field']+'"]']=e.getAttributes()['data-fcms-field'];break;}});}).method('getPureRule',function(){return this._rule;}).method('getTargetId',function(){return this._targetId;}).method('setTargetId',function(target){if(target instanceof fcmsLib_Utils_Dom_Element){this._targetId=target.getDomNode();}else{this._targetId=target;}}).method('getTemplateId',function(){return this._templateId;}).method('setRenderMode',function(mode){if(mode=='update'){fcmsJs.console.warning('fcmsLib_Utils_Pure_Template.setRenderMode: "update" wegen Problemen mit dem IE nicht mehr verwenden');} this._renderMode=mode;}).method('render',function(data){var target=$(this._targetId),rendered=null;if(this._renderMode==='template'){if(target){if(this._rule===null){rendered=target.autoRender(data)[0];}else{rendered=target.render(data,this._rule)[0];}}else{fcmsJs.console.error('DOM-ID: '+this._targetId+' existiert nicht.');}}else if(this._renderMode==='update'){rendered=target.render(data,this._directive)[0];} if(typeof fcmsLib_Core_DataMethods==='function'){fcmsLib_Core_DataMethods.attachHandlers(rendered);} return new fcmsLib_Utils_Dom_Element(rendered);});})();(function(){fcmsJs.Class('fcmsLib_Utils_Pure_Util').inherits(fcmsLib_Core_Class);fcmsLib_Utils_Pure_Util.filterFormRules=function(rules){var r={};fcmsLib_Core_Object.each(rules,function(p){if(p.key.match(/^input.*@value$/)){if(typeof p.value==='string'){r[p.key]=fcmsLib_Utils_Pure_Util.formEscape(p.value);return;}}else if(p.key.match(/^textarea[^a-zA-Z]/)){if(typeof p.value==='string'){r[p.key]=fcmsLib_Utils_Pure_Util.formEscape(p.value);return;}} r[p.key]=p.value;});return r;};fcmsLib_Utils_Pure_Util.formEscape=function(src){return function(context){var r=fcmsLib_Core_Array.getMultiDimKey(context.context,src);if(typeof r==='undefined'){return'';}else if(r===null){return'';}else if(typeof r==='string'){return r.escapeHTML();}else if(typeof r==='function'||typeof r==='object'){fcmsJs.console.error('Fehler beim lesen von '+src);fcmsJs.console.debug(context.context);return'';}else{return r;}};};})();(function(){fcmsJs.Class('fcmsLib_Utils_Semaphore').inherits(fcmsLib_Core_Class).construct(function(maxToken){this._maxToken=maxToken;this._freeToken=maxToken;}).method('getFreeTokenCount',function(){return this._freeToken;}).method('getMaxTokenCount',function(){return this._maxToken;}).method('isLockable',function(){return(this.getFreeTokenCount()>0)?true:false;}).method('lock',function(){if(this.isLockable()){this._lowerFreeTokenCount();return true;} return false;}).method('unlock',function(){if(this._freeToken/g,'>').replace(/"/g,'"');}).staticMethod('decodeHtml',function(str){return str.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"');}).staticMethod('createUnique',function(letters,options){if(typeof options!=='object'||options===null){options={uppercase:true,lowercase:true,numbers:true};} var chars='';if(typeof options.lowercase!=='undefined'&&options.lowercase){chars+='abcdefghijklmnopqurstuvwxyz';} if(typeof options.uppercase!=='undefined'&&options.uppercase){chars+='ABCDEFGHIJKLMNOPQURSTUVWXYZ';} if(typeof options.numbers!=='undefined'&&options.numbers){chars+='0123456789';} if(chars.length<=0){throw"Kein Zeichensatzraum angegeben.";} var id='';var idLength=letters||32;var charsLen=chars.length;for(var i=0;i<=idLength;i++){id+=chars.substr(Math.floor(Math.random()*charsLen),1);} return id;});fcmsLib_Utils_String.ucFirst=function(str){return str.substr(0,1).toUpperCase()+str.substr(1,str.length);};fcmsLib_Utils_String.trim=function(str){if(fcmsLib_Utils_String.isString(str)){return str.replace(/^\s+/,'').replace(/\s+$/,'');}else{fcmsJs.console.error('Kein String übergeben.');return str;}};fcmsLib_Utils_String.isString=function(str){return Object.prototype.toString.call(str)==='[object String]';};fcmsLib_Utils_String.shorten=function(str,maxLength,endChars){var ret=str;if(str.length>maxLength){ret=str.substr(0,maxLength-endChars.length)+endChars;} return ret;};fcmsLib_Utils_String.len=function(s){return s.length;};fcmsLib_Utils_String.replaceAll=function(str,from,to){var index=str.indexOf(from);while(index!==-1){str=str.replace(from,to);index=str.indexOf(from);} return str;};})();(function(){fcmsJs.Class('fcmsLib_Utils_Timer_Controller').construct(function(name,interval){if((typeof name==='undefined')||(typeof name!=='string')){fcmsJs.console.warn('Ein fcmsLib_Utils_Timer_Controller sollte einen Namen haben!');name=String('fcmsLib_Utils_Timer_Controller-'+Math.rand());} if((typeof interval==='undefined')){fcmsJs.console.error('fcmsLib_Utils_Timer_Controller: Kein Intervall definiert. Timer wird nicht starten.');interval=null;} this._name=name;this._interval=interval;this._readyTimeout=10;this._units=[];this._t=null;}).method('getName',function(){return this._name;}).method('add',function(unit){if(unit instanceof fcmsLib_Utils_Timer_Unit){this._units.push(unit);return true;}else{fcmsJs.console.error(this.getName()+': Das hinzuzufügende Objekt ist nicht vom Typ fcmsLib_Utils_Timer_Unit');return false;}}).method('del',function(name){if(typeof name==='undefined'){fcmsJs.console.error(this.getName()+': Keine Name für das zu löschende TimeUnit übergeben.');return false;}else{for(var i=0;i