/******* /javascript/static/mootools_more_light_all.js *********/
MooTools.More={version:"1.2.4.4",build:"6f6057dc645fdb7547689183b2311063bd653ddf"};Class.Mutators.Binds=function(a){return a};Class.Mutators.initialize=function(a){return function(){$splat(this.Binds).each(function(c){var b=this[c];if(b){this[c]=b.bind(this)}},this);return a.apply(this,arguments)}};Class.Occlude=new Class({occlude:function(a,c){c=document.id(c||this.element);var b=c.retrieve(a||this.property);if(b&&!$defined(this.occluded)){return this.occluded=b}this.occluded=false;c.store(a||this.property,this);return this.occluded}});Hash.implement({getFromPath:function(b){var a=this.getClean();b.replace(/\[([^\]]+)\]|\.([^.[]+)|[^[.]+/g,function(c){if(!a){return null}var d=arguments[2]||arguments[1]||arguments[0];a=(d in a)?a[d]:null;return c});return a},cleanValues:function(a){a=a||$defined;this.each(function(b,c){if(!a(b)){this.erase(c)}},this);return this},run:function(){var a=arguments;this.each(function(b,c){if($type(b)=="function"){b.run(a)}})}});Element.implement({measure:function(a){var b=function(h){return !!(!h||h.offsetHeight||h.offsetWidth)};if(b(this)){return a.apply(this)}var d=this.getParent(),g=[],e=[];while(!b(d)&&d!=document.body){e.push(d.expose());d=d.getParent()}var f=this.expose();var c=a.apply(this);f();e.each(function(h){h()});return c},expose:function(){if(this.getStyle("display")!="none"){return $empty}var a=this.style.cssText;this.setStyles({display:"block",position:"absolute",visibility:"hidden"});return function(){this.style.cssText=a}.bind(this)},getDimensions:function(c){c=$merge({computeSize:false},c);var d={};var f=function(e,g){return(g.computeSize)?e.getComputedSize(g):e.getSize()};var a=this.getParent("body");if(a&&this.getStyle("display")=="none"){d=this.measure(function(){return f(this,c)})}else{if(a){try{d=f(this,c)}catch(b){}}else{d={x:0,y:0}}}return $chk(d.x)?$extend(d,{width:d.x,height:d.y}):$extend(d,{x:d.width,y:d.height})},getComputedSize:function(e){e=$merge({styles:["padding","border"],plains:{height:["top","bottom"],width:["left","right"]},mode:"both"},e);var a={width:0,height:0};switch(e.mode){case"vertical":delete a.width;delete e.plains.width;break;case"horizontal":delete a.height;delete e.plains.height;break}var d=[];$each(e.plains,function(g,f){g.each(function(h){e.styles.each(function(i){d.push((i=="border")?i+"-"+h+"-width":i+"-"+h)})})});var c={};d.each(function(f){c[f]=this.getComputedStyle(f)},this);var b=[];$each(e.plains,function(g,f){var h=f.capitalize();a["total"+h]=a["computed"+h]=0;g.each(function(i){a["computed"+i.capitalize()]=0;d.each(function(j,k){if(j.test(i)){c[j]=c[j].toInt()||0;a["total"+h]=a["total"+h]+c[j];a["computed"+i.capitalize()]=a["computed"+i.capitalize()]+c[j]}if(j.test(i)&&f!=j&&(j.test("border")||j.test("padding"))&&!b.contains(j)){b.push(j);a["computed"+h]=a["computed"+h]-c[j]}})})});["Width","Height"].each(function(g){var f=g.toLowerCase();if(!$chk(a[f])){return}a[f]=a[f]+this["offset"+g]+a["computed"+g];a["total"+g]=a[f]+a["total"+g];delete a["computed"+g]},this);return $extend(c,a)}});(function(){var a=Element.prototype.position;Element.implement({position:function(e){if(e&&($defined(e.x)||$defined(e.y))){return a?a.apply(this,arguments):this}$each(e||{},function(t,u){if(!$defined(t)){delete e[u]}});e=$merge({relativeTo:document.body,position:{x:"center",y:"center"},edge:false,offset:{x:0,y:0},returnPos:false,relFixedPosition:false,ignoreMargins:false,ignoreScroll:false,allowNegative:false},e);var l={x:0,y:0},f=false;var b=this.measure(function(){return document.id(this.getOffsetParent())});if(b&&b!=this.getDocument().body){l=b.measure(function(){return this.getPosition()});f=b!=document.id(e.relativeTo);e.offset.x=e.offset.x-l.x;e.offset.y=e.offset.y-l.y}var j=function(t){if($type(t)!="string"){return t}t=t.toLowerCase();var u={};if(t.test("left")){u.x="left"}else{if(t.test("right")){u.x="right"}else{u.x="center"}}if(t.test("upper")||t.test("top")){u.y="top"}else{if(t.test("bottom")){u.y="bottom"}else{u.y="center"}}return u};e.edge=j(e.edge);e.position=j(e.position);if(!e.edge){if(e.position.x=="center"&&e.position.y=="center"){e.edge={x:"center",y:"center"}}else{e.edge={x:"left",y:"top"}}}this.setStyle("position","absolute");var o=document.id(e.relativeTo)||document.body,d=o==document.body?window.getScroll():o.getPosition(),i=d.y,p=d.x;var c=this.getDimensions({computeSize:true,styles:["padding","border","margin"]});var r={},n=e.offset.y,m=e.offset.x,h=window.getSize();switch(e.position.x){case"left":r.x=p+m;break;case"right":r.x=p+m+o.offsetWidth;break;default:r.x=p+((o==document.body?h.x:o.offsetWidth)/2)+m;break}switch(e.position.y){case"top":r.y=i+n;break;case"bottom":r.y=i+n+o.offsetHeight;break;default:r.y=i+((o==document.body?h.y:o.offsetHeight)/2)+n;break}if(e.edge){var k={};switch(e.edge.x){case"left":k.x=0;break;case"right":k.x=-c.x-c.computedRight-c.computedLeft;break;default:k.x=-(c.totalWidth/2);break}switch(e.edge.y){case"top":k.y=0;break;case"bottom":k.y=-c.y-c.computedTop-c.computedBottom;break;default:k.y=-(c.totalHeight/2);break}r.x+=k.x;r.y+=k.y}r={left:((r.x>=0||f||e.allowNegative)?r.x:0).toInt(),top:((r.y>=0||f||e.allowNegative)?r.y:0).toInt()};var q={left:"x",top:"y"};["minimum","maximum"].each(function(t){["left","top"].each(function(u){var v=e[t]?e[t][q[u]]:null;if(v!=null&&r[u]<v){r[u]=v}})});if(o.getStyle("position")=="fixed"||e.relFixedPosition){var s=window.getScroll();r.top+=s.y;r.left+=s.x}if(e.ignoreScroll){var g=o.getScroll();r.top-=g.y;r.left-=g.x}if(e.ignoreMargins){r.left+=(e.edge.x=="right"?c["margin-right"]:e.edge.x=="center"?-c["margin-left"]+((c["margin-right"]+c["margin-left"])/2):-c["margin-left"]);r.top+=(e.edge.y=="bottom"?c["margin-bottom"]:e.edge.y=="center"?-c["margin-top"]+((c["margin-bottom"]+c["margin-top"])/2):-c["margin-top"])}r.left=Math.ceil(r.left);r.top=Math.ceil(r.top);if(e.returnPos){return r}else{this.setStyles(r)}return this}})})();Element.implement({isDisplayed:function(){return this.getStyle("display")!="none"},isVisible:function(){var a=this.offsetWidth,b=this.offsetHeight;return(a==0&&b==0)?false:(a>0&&b>0)?true:this.isDisplayed()},toggle:function(){return this[this.isDisplayed()?"hide":"show"]()},hide:function(){var a;try{a=this.getStyle("display")}catch(b){}return this.store("originalDisplay",a||"").setStyle("display","none")},show:function(a){a=a||this.retrieve("originalDisplay")||"block";return this.setStyle("display",(a=="none")?"block":a)},swapClass:function(b,a){return this.removeClass(b).addClass(a)}});var OverText=new Class({Implements:[Options,Events,Class.Occlude],Binds:["reposition","assert","focus","hide"],options:{element:"label",positionOptions:{position:"upperLeft",edge:"upperLeft",offset:{x:4,y:2}},poll:false,pollInterval:250,wrap:false},property:"OverText",initialize:function(a,b){this.element=document.id(a);if(this.occlude()){return this.occluded}this.setOptions(b);this.attach(this.element);OverText.instances.push(this);if(this.options.poll){this.poll()}return this},toElement:function(){return this.element},attach:function(){var a=this.options.textOverride||this.element.get("alt")||this.element.get("title");if(!a){return}this.text=new Element(this.options.element,{"class":"overTxtLabel",styles:{lineHeight:"normal",position:"absolute",cursor:"text"},html:a,events:{click:this.hide.pass(this.options.element=="label",this)}}).inject(this.element,"after");if(this.options.element=="label"){if(!this.element.get("id")){this.element.set("id","input_"+new Date().getTime())}this.text.set("for",this.element.get("id"))}if(this.options.wrap){this.textHolder=new Element("div",{styles:{lineHeight:"normal",position:"relative"},"class":"overTxtWrapper"}).adopt(this.text).inject(this.element,"before")}this.element.addEvents({focus:this.focus,blur:this.assert,change:this.assert}).store("OverTextDiv",this.text);window.addEvent("resize",this.reposition.bind(this));this.assert(true);this.reposition()},wrap:function(){if(this.options.element=="label"){if(!this.element.get("id")){this.element.set("id","input_"+new Date().getTime())}this.text.set("for",this.element.get("id"))}},startPolling:function(){this.pollingPaused=false;return this.poll()},poll:function(b){if(this.poller&&!b){return this}var a=function(){if(!this.pollingPaused){this.assert(true)}}.bind(this);if(b){$clear(this.poller)}else{this.poller=a.periodical(this.options.pollInterval,this)}return this},stopPolling:function(){this.pollingPaused=true;return this.poll(true)},focus:function(){if(this.text&&(!this.text.isDisplayed()||this.element.get("disabled"))){return}this.hide()},hide:function(a,b){if(this.text&&(this.text.isDisplayed()&&(!this.element.get("disabled")||b))){this.text.hide();this.fireEvent("textHide",[this.text,this.element]);this.pollingPaused=true;if(!a){try{this.element.fireEvent("focus");this.element.focus()}catch(c){}}}return this},show:function(){if(this.text&&!this.text.isDisplayed()){this.text.show();this.reposition();this.fireEvent("textShow",[this.text,this.element]);this.pollingPaused=false}return this},assert:function(a){this[this.test()?"show":"hide"](a)},test:function(){var a=this.element.get("value");return !a},reposition:function(){this.assert(true);if(!this.element.isVisible()){return this.stopPolling().hide()}if(this.text&&this.test()){this.text.position($merge(this.options.positionOptions,{relativeTo:this.element}))}return this}});OverText.instances=[];$extend(OverText,{each:function(a){return OverText.instances.map(function(b,c){if(b.element&&b.text){return a.apply(OverText,[b,c])}return null})},update:function(){return OverText.each(function(a){return a.reposition()})},hideAll:function(){return OverText.each(function(a){return a.hide(true,true)})},showAll:function(){return OverText.each(function(a){return a.show()})}});if(window.Fx&&Fx.Reveal){Fx.Reveal.implement({hideInputs:Browser.Engine.trident?"select, input, textarea, object, embed, .overTxtLabel":false})}Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(b,c){this.element=this.subject=document.id(b);this.parent(c);var d=this.cancel.bind(this,false);if($type(this.element)!="element"){this.element=document.id(this.element.getDocument().body)}var a=this.element;if(this.options.wheelStops){this.addEvent("start",function(){a.addEvent("mousewheel",d)},true);this.addEvent("complete",function(){a.removeEvent("mousewheel",d)},true)}},set:function(){var a=Array.flatten(arguments);if(Browser.Engine.gecko){a=[Math.round(a[0]),Math.round(a[1])]}this.element.scrollTo(a[0],a[1])},compute:function(a,b,c){return[0,1].map(function(d){return Fx.compute(a[d],b[d],c)})},start:function(a,b){if(!this.check(a,b)){return this}var f=this.element.getScrollSize(),d=this.element.getScroll(),g={x:a,y:b};for(var c in g){var e=f[c];if($chk(g[c])){g[c]=($type(g[c])=="number")?g[c]:e}else{g[c]=d[c]}g[c]+=this.options.offset[c]}return this.parent([d.x,d.y],[g.x,g.y])},toTop:function(){return this.start(false,0)},toLeft:function(){return this.start(0,false)},toRight:function(){return this.start("right",false)},toBottom:function(){return this.start(false,"bottom")},toElement:function(a){var b=document.id(a).getPosition(this.element);return this.start(b.x,b.y)},scrollIntoView:function(b,e,i){e=e?$splat(e):["x","y"];var g={};b=document.id(b);var c=b.getPosition(this.element);var f=b.getSize();var h=this.element.getScroll();var d=this.element.getSize();var a={x:c.x+f.x,y:c.y+f.y};["x","y"].each(function(j){if(e.contains(j)){if(a[j]>h[j]+d[j]){g[j]=a[j]-d[j]}if(c[j]<h[j]){g[j]=c[j]}}if(g[j]==null){g[j]=h[j]}if(i&&i[j]){g[j]=g[j]+i[j]}},this);if(g.x!=h.x||g.y!=h.y){this.start(g.x,g.y)}return this},scrollToCenter:function(b,e,i){e=e?$splat(e):["x","y"];b=$(b);var g={},c=b.getPosition(this.element),f=b.getSize(),h=this.element.getScroll(),d=this.element.getSize(),a={x:c.x+f.x,y:c.y+f.y};["x","y"].each(function(j){if(e.contains(j)){g[j]=c[j]-(d[j]-f[j])/2}if(g[j]==null){g[j]=h[j]}if(i&&i[j]){g[j]=g[j]+i[j]}},this);if(g.x!=h.x||g.y!=h.y){this.start(g.x,g.y)}return this}});var SmoothScroll=Fx.SmoothScroll=new Class({Extends:Fx.Scroll,initialize:function(b,a){a=a||document;this.doc=a.getDocument();var c=a.getWindow();this.parent(this.doc,b);this.links=$$(this.options.links||this.doc.links);var d=c.location.href.match(/^[^#]*/)[0]+"#";this.links.each(function(e){if(e.href.indexOf(d)!=0){return}var f=e.href.substr(d.length);if(f){this.useLink(e,f)}},this);if(!Browser.Engine.webkit419){this.addEvent("complete",function(){c.location.hash=this.anchor},true)}},useLink:function(b,c){var a;b.addEvent("click",function(d){if(a!==false&&!a){a=document.id(c)||this.doc.getElement("a[name="+c+"]")}if(a){d.preventDefault();this.anchor=c;this.toElement(a).chain(function(){this.fireEvent("scrolledTo",[b,a])}.bind(this));b.blur()}}.bind(this))}});var Asset={javascript:function(e,c){c=$extend({onload:$empty,document:document,check:$lambda(true)},c);if(c.onLoad){c.onload=c.onLoad}var d=new Element("script",{src:e,type:"text/javascript"});var g=c.onload.bind(d),f=c.check,a=c.document;delete c.onload;delete c.check;delete c.document;d.addEvents({load:g,readystatechange:function(){if(["loaded","complete"].contains(this.readyState)){g()}}}).set(c);if(Browser.Engine.webkit419){var b=(function(){if(!$try(f)){return}$clear(b);g()}).periodical(50)}return d.inject(a.head)},css:function(b,a){return new Element("link",$merge({rel:"stylesheet",media:"screen",type:"text/css",href:b},a)).inject(document.head)},image:function(b,a){a=$merge({onload:$empty,onabort:$empty,onerror:$empty},a);var d=new Image();var c=document.id(d)||new Element("img");["load","abort","error"].each(function(e){var g="on"+e;var f=e.capitalize();if(a["on"+f]){a[g]=a["on"+f]}var h=a[g];delete a[g];d[g]=function(){if(!d){return}if(!c.parentNode){c.width=d.width;c.height=d.height}d=d.onload=d.onabort=d.onerror=null;h.delay(1,c,c);c.fireEvent(e,c,1)}});d.src=c.src=b;if(d&&d.complete){d.onload.delay(1)}return c.set(a)},images:function(a,c){c=$merge({onComplete:$empty,onProgress:$empty,onError:$empty,properties:{}},c);a=$splat(a);var d=[];var b=0;return new Elements(a.map(function(e){return Asset.image(e,$extend(c.properties,{onload:function(){c.onProgress.call(this,b,a.indexOf(e));b++;if(b==a.length){c.onComplete()}},onerror:function(){c.onError.call(this,b,a.indexOf(e));b++;if(b==a.length){c.onComplete()}}}))}))}};var Scroller=new Class({Implements:[Events,Options],options:{area:20,velocity:1,onChange:function(a,b){this.element.scrollTo(a,b)},fps:50},initialize:function(a,b){this.setOptions(b);this.element=document.id(a);this.docBody=document.id(this.element.getDocument().body);this.listener=($type(this.element)!="element")?this.docBody:this.element;this.timer=null;this.bound={attach:this.attach.bind(this),detach:this.detach.bind(this),getCoords:this.getCoords.bind(this)}},start:function(){this.listener.addEvents({mouseover:this.bound.attach,mouseout:this.bound.detach})},stop:function(){this.listener.removeEvents({mouseover:this.bound.attach,mouseout:this.bound.detach});this.detach();this.timer=$clear(this.timer)},attach:function(){this.listener.addEvent("mousemove",this.bound.getCoords)},detach:function(){this.listener.removeEvent("mousemove",this.bound.getCoords);this.timer=$clear(this.timer)},getCoords:function(a){this.page=(this.listener.get("tag")=="body")?a.client:a.page;if(!this.timer){this.timer=this.scroll.periodical(Math.round(1000/this.options.fps),this)}},scroll:function(){var a=this.element.getSize(),e=this.element.getScroll(),d=this.element!=this.docBody?this.element.getOffsets():{x:0,y:0},f=this.element.getScrollSize(),b={x:0,y:0};for(var c in this.page){if(this.page[c]<(this.options.area+d[c])&&e[c]!=0){b[c]=(this.page[c]-this.options.area-d[c])*this.options.velocity}else{if(this.page[c]+this.options.area>(a[c]+d[c])&&e[c]+a[c]!=f[c]){b[c]=(this.page[c]-a[c]+this.options.area-d[c])*this.options.velocity}}}if(b.y||b.x){this.fireEvent("change",[e.x+b.x,e.y+b.y])}}});

/******* /javascript/formChecker.js *********/
var formChecker=new Class({initialize:function(){if(!$("mitglied")){return}$$("#mitglied input.toCheck").each(function(a){a.addEvent("keyup",this._checkField.pass(a.get("id"),this))},this);$("send").addEvent("click",function(a){if(!this._check()){a.stop()}}.bind(this))},_check:function(){var a=true;$$("#mitglied input.toCheck").each(function(b){if(!b.get("value")){b.addClass("error");a=false}else{b.removeClass("error")}});return a},_checkField:function(b){var a=$(b);if(!a.get("value")){a.addClass("error")}else{a.removeClass("error")}}});window.addEvent("domready",function(){new formChecker()});


