(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);}}});(function(){fcmsJs.Class('fcmsLib_Utils_ClientStore').inherits(fcmsLib_Core_Class).construct(function(name){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(key,callback){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_Html_Infobox').inherits(fcmsLib_Core_Class).construct(function(name,title,text){var x=document.createElement('div');x.id='helpBox'+name;$(x).setStyle({display:'none'});document.body.appendChild(x);this.name=name;this.title=title;this.text=text;this._template=new fcmsLib_Utils_Pure_Template('helpBoxTemplate','helpBox'+name,{'@id':'"helpBox'+name+'"','.headline span':'title','.infotext':'text'});}).method('display',function(){this._template.render({name:this.name,title:this.title,text:this.text});}).method('show',function(button){var position=$(button).cumulativeOffset();$('helpBox'+this.name).setStyle({top:parseInt(position.top,10)+'px',left:parseInt(position.left,10)-250+'px'});$('helpBox'+this.name).show();$('helpBox'+this.name).observe('click',function(ev){$('helpBox'+this.name).hide();}.bind(this));});})();(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='';$H(hash).each(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(/