(function(){this.MooTools={version:"1.4.5",build:"ab8ea8824dc3b24b6666867a2c4ed58ebb762cf0"};var e=this.typeOf=function(i){if(i==null){return"null";}if(i.$family!=null){return i.$family(); }if(i.nodeName){if(i.nodeType==1){return"element";}if(i.nodeType==3){return(/\S/).test(i.nodeValue)?"textnode":"whitespace";}}else{if(typeof i.length=="number"){if(i.callee){return"arguments"; }if("item" in i){return"collection";}}}return typeof i;};var u=this.instanceOf=function(w,i){if(w==null){return false;}var v=w.$constructor||w.constructor; while(v){if(v===i){return true;}v=v.parent;}if(!w.hasOwnProperty){return false;}return w instanceof i;};var f=this.Function;var r=true;for(var q in {toString:1}){r=null; }if(r){r=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];}f.prototype.overloadSetter=function(v){var i=this; return function(x,w){if(x==null){return this;}if(v||typeof x!="string"){for(var y in x){i.call(this,y,x[y]);}if(r){for(var z=r.length;z--;){y=r[z];if(x.hasOwnProperty(y)){i.call(this,y,x[y]); }}}}else{i.call(this,x,w);}return this;};};f.prototype.overloadGetter=function(v){var i=this;return function(x){var y,w;if(typeof x!="string"){y=x;}else{if(arguments.length>1){y=arguments; }else{if(v){y=[x];}}}if(y){w={};for(var z=0;z>>0; b>>0;b>>0;for(var a=(d<0)?Math.max(0,b+d):d||0;a>>0,b=Array(d);for(var a=0;a>>0; b-1:String(this).indexOf(a)>-1;},trim:function(){return String(this).replace(/^\s+|\s+$/g,""); },clean:function(){return String(this).replace(/\s+/g," ").trim();},camelCase:function(){return String(this).replace(/-\D/g,function(a){return a.charAt(1).toUpperCase(); });},hyphenate:function(){return String(this).replace(/[A-Z]/g,function(a){return("-"+a.charAt(0).toLowerCase());});},capitalize:function(){return String(this).replace(/\b[a-z]/g,function(a){return a.toUpperCase(); });},escapeRegExp:function(){return String(this).replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1");},toInt:function(a){return parseInt(this,a||10);},toFloat:function(){return parseFloat(this); },hexToRgb:function(b){var a=String(this).match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(a)?a.slice(1).hexToRgb(b):null;},rgbToHex:function(b){var a=String(this).match(/\d{1,3}/g); return(a)?a.rgbToHex(b):null;},substitute:function(a,b){return String(this).replace(b||(/\\?\{([^{}]+)\}/g),function(d,c){if(d.charAt(0)=="\\"){return d.slice(1); }return(a[c]!=null)?a[c]:"";});}});Number.implement({limit:function(b,a){return Math.min(a,Math.max(b,this));},round:function(a){a=Math.pow(10,a||0).toFixed(a<0?-a:0); return Math.round(this*a)/a;},times:function(b,c){for(var a=0;a1?Array.slice(arguments,1):null,d=function(){};var c=function(){var g=e,h=arguments.length;if(this instanceof c){d.prototype=a.prototype; g=new d;}var f=(!b&&!h)?a.call(g):a.apply(g,b&&h?b.concat(Array.slice(arguments)):b||arguments);return g==e?f:g;};return c;},pass:function(b,c){var a=this; if(b!=null){b=Array.from(b);}return function(){return a.apply(c,b||arguments);};},delay:function(b,c,a){return setTimeout(this.pass((a==null?[]:a),c),b); },periodical:function(c,b,a){return setInterval(this.pass((a==null?[]:a),b),c);}});delete Function.prototype.bind;Function.implement({create:function(b){var a=this; b=b||{};return function(d){var c=b.arguments;c=(c!=null)?Array.from(c):Array.slice(arguments,(b.event)?1:0);if(b.event){c=[d||window.event].extend(c);}var e=function(){return a.apply(b.bind||null,c); };if(b.delay){return setTimeout(e,b.delay);}if(b.periodical){return setInterval(e,b.periodical);}if(b.attempt){return Function.attempt(e);}return e();}; },bind:function(c,b){var a=this;if(b!=null){b=Array.from(b);}return function(){return a.apply(c,b||arguments);};},bindWithEvent:function(c,b){var a=this; if(b!=null){b=Array.from(b);}return function(d){return a.apply(c,(b==null)?arguments:[d].concat(b));};},run:function(a,b){return this.apply(b,Array.from(a)); }});if(Object.create==Function.prototype.create){Object.create=null;}var $try=Function.attempt;(function(){var a=Object.prototype.hasOwnProperty;Object.extend({subset:function(d,g){var f={}; for(var e=0,b=g.length;e]*>([\s\S]*?)<\/script>/gi,function(r,s){e+=s+"\n"; return"";});if(p===true){o.exec(e);}else{if(typeOf(p)=="function"){p(e,q);}}return q;});o.extend({Document:this.Document,Window:this.Window,Element:this.Element,Event:this.Event}); this.Window=this.$constructor=new Type("Window",function(){});this.$family=Function.from("window").hide();Window.mirror(function(e,p){h[e]=p;});this.Document=k.$constructor=new Type("Document",function(){}); k.$family=Function.from("document").hide();Document.mirror(function(e,p){k[e]=p;});k.html=k.documentElement;if(!k.head){k.head=k.getElementsByTagName("head")[0]; }if(k.execCommand){try{k.execCommand("BackgroundImageCache",false,true);}catch(g){}}if(this.attachEvent&&!this.addEventListener){var c=function(){this.detachEvent("onunload",c); k.head=k.html=k.window=null;};this.attachEvent("onunload",c);}var m=Array.from;try{m(k.html.childNodes);}catch(g){Array.from=function(p){if(typeof p!="string"&&Type.isEnumerable(p)&&typeOf(p)!="array"){var e=p.length,q=new Array(e); while(e--){q[e]=p[e];}return q;}return m(p);};var l=Array.prototype,n=l.slice;["pop","push","reverse","shift","sort","splice","unshift","concat","join","slice"].each(function(e){var p=l[e]; Array[e]=function(q){return p.apply(Array.from(q),n.call(arguments,1));};});}if(o.Platform.ios){o.Platform.ipod=true;}o.Engine={};var d=function(p,e){o.Engine.name=p; o.Engine[p+e]=true;o.Engine.version=e;};if(o.ie){o.Engine.trident=true;switch(o.version){case 6:d("trident",4);break;case 7:d("trident",5);break;case 8:d("trident",6); }}if(o.firefox){o.Engine.gecko=true;if(o.version>=3){d("gecko",19);}else{d("gecko",18);}}if(o.safari||o.chrome){o.Engine.webkit=true;switch(o.version){case 2:d("webkit",419); break;case 3:d("webkit",420);break;case 4:d("webkit",525);}}if(o.opera){o.Engine.presto=true;if(o.version>=9.6){d("presto",960);}else{if(o.version>=9.5){d("presto",950); }else{d("presto",925);}}}if(o.name=="unknown"){switch((a.match(/(?:webkit|khtml|gecko)/)||[])[0]){case"webkit":case"khtml":o.Engine.webkit=true;break;case"gecko":o.Engine.gecko=true; }}this.$exec=o.exec;})();(function(){var b={};var a=this.DOMEvent=new Type("DOMEvent",function(c,g){if(!g){g=window;}c=c||g.event;if(c.$extended){return c; }this.event=c;this.$extended=true;this.shift=c.shiftKey;this.control=c.ctrlKey;this.alt=c.altKey;this.meta=c.metaKey;var i=this.type=c.type;var h=c.target||c.srcElement; while(h&&h.nodeType==3){h=h.parentNode;}this.target=document.id(h);if(i.indexOf("key")==0){var d=this.code=(c.which||c.keyCode);this.key=b[d]||Object.keyOf(Event.Keys,d); if(i=="keydown"){if(d>111&&d<124){this.key="f"+(d-111);}else{if(d>95&&d<106){this.key=d-96;}}}if(this.key==null){this.key=String.fromCharCode(d).toLowerCase(); }}else{if(i=="click"||i=="dblclick"||i=="contextmenu"||i=="DOMMouseScroll"||i.indexOf("mouse")==0){var j=g.document;j=(!j.compatMode||j.compatMode=="CSS1Compat")?j.html:j.body; this.page={x:(c.pageX!=null)?c.pageX:c.clientX+j.scrollLeft,y:(c.pageY!=null)?c.pageY:c.clientY+j.scrollTop};this.client={x:(c.pageX!=null)?c.pageX-g.pageXOffset:c.clientX,y:(c.pageY!=null)?c.pageY-g.pageYOffset:c.clientY}; if(i=="DOMMouseScroll"||i=="mousewheel"){this.wheel=(c.wheelDelta)?c.wheelDelta/120:-(c.detail||0)/3;}this.rightClick=(c.which==3||c.button==2);if(i=="mouseover"||i=="mouseout"){var k=c.relatedTarget||c[(i=="mouseover"?"from":"to")+"Element"]; while(k&&k.nodeType==3){k=k.parentNode;}this.relatedTarget=document.id(k);}}else{if(i.indexOf("touch")==0||i.indexOf("gesture")==0){this.rotation=c.rotation; this.scale=c.scale;this.targetTouches=c.targetTouches;this.changedTouches=c.changedTouches;var f=this.touches=c.touches;if(f&&f[0]){var e=f[0];this.page={x:e.pageX,y:e.pageY}; this.client={x:e.clientX,y:e.clientY};}}}}if(!this.client){this.client={};}if(!this.page){this.page={};}});a.implement({stop:function(){return this.preventDefault().stopPropagation(); },stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation();}else{this.event.cancelBubble=true;}return this;},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault(); }else{this.event.returnValue=false;}return this;}});a.defineKey=function(d,c){b[d]=c;return this;};a.defineKeys=a.defineKey.overloadSetter(true);a.defineKeys({"38":"up","40":"down","37":"left","39":"right","27":"esc","32":"space","8":"backspace","9":"tab","46":"delete","13":"enter"}); })();var Event=DOMEvent;Event.Keys={};Event.Keys=new Hash(Event.Keys);(function(){var a=this.Class=new Type("Class",function(h){if(instanceOf(h,Function)){h={initialize:h}; }var g=function(){e(this);if(g.$prototyping){return this;}this.$caller=null;var i=(this.initialize)?this.initialize.apply(this,arguments):this;this.$caller=this.caller=null; return i;}.extend(this).implement(h);g.$constructor=a;g.prototype.$constructor=g;g.prototype.parent=c;return g;});var c=function(){if(!this.$caller){throw new Error('The method "parent" cannot be called.'); }var g=this.$caller.$name,h=this.$caller.$owner.parent,i=(h)?h.prototype[g]:null;if(!i){throw new Error('The method "'+g+'" has no parent.');}return i.apply(this,arguments); };var e=function(g){for(var h in g){var j=g[h];switch(typeOf(j)){case"object":var i=function(){};i.prototype=j;g[h]=e(new i);break;case"array":g[h]=j.clone(); break;}}return g;};var b=function(g,h,j){if(j.$origin){j=j.$origin;}var i=function(){if(j.$protected&&this.$caller==null){throw new Error('The method "'+h+'" cannot be called.'); }var l=this.caller,m=this.$caller;this.caller=m;this.$caller=i;var k=j.apply(this,arguments);this.$caller=m;this.caller=l;return k;}.extend({$owner:g,$origin:j,$name:h}); return i;};var f=function(h,i,g){if(a.Mutators.hasOwnProperty(h)){i=a.Mutators[h].call(this,i);if(i==null){return this;}}if(typeOf(i)=="function"){if(i.$hidden){return this; }this.prototype[h]=(g)?i:b(this,h,i);}else{Object.merge(this.prototype,h,i);}return this;};var d=function(g){g.$prototyping=true;var h=new g;delete g.$prototyping; return h;};a.implement("implement",f.overloadSetter());a.Mutators={Extends:function(g){this.parent=g;this.prototype=d(g);},Implements:function(g){Array.from(g).each(function(j){var h=new j; for(var i in h){f.call(this,i,h[i],true);}},this);}};})();(function(){this.Chain=new Class({$chain:[],chain:function(){this.$chain.append(Array.flatten(arguments)); return this;},callChain:function(){return(this.$chain.length)?this.$chain.shift().apply(this,arguments):false;},clearChain:function(){this.$chain.empty(); return this;}});var a=function(b){return b.replace(/^on([A-Z])/,function(c,d){return d.toLowerCase();});};this.Events=new Class({$events:{},addEvent:function(d,c,b){d=a(d); if(c==$empty){return this;}this.$events[d]=(this.$events[d]||[]).include(c);if(b){c.internal=true;}return this;},addEvents:function(b){for(var c in b){this.addEvent(c,b[c]); }return this;},fireEvent:function(e,c,b){e=a(e);var d=this.$events[e];if(!d){return this;}c=Array.from(c);d.each(function(f){if(b){f.delay(b,this,c);}else{f.apply(this,c); }},this);return this;},removeEvent:function(e,d){e=a(e);var c=this.$events[e];if(c&&!d.internal){var b=c.indexOf(d);if(b!=-1){delete c[b];}}return this; },removeEvents:function(d){var e;if(typeOf(d)=="object"){for(e in d){this.removeEvent(e,d[e]);}return this;}if(d){d=a(d);}for(e in this.$events){if(d&&d!=e){continue; }var c=this.$events[e];for(var b=c.length;b--;){if(b in c){this.removeEvent(e,c[b]);}}}return this;}});this.Options=new Class({setOptions:function(){var b=this.options=Object.merge.apply(null,[{},this.options].append(arguments)); if(this.addEvent){for(var c in b){if(typeOf(b[c])!="function"||!(/^on[A-Z]/).test(c)){continue;}this.addEvent(c,b[c]);delete b[c];}}return this;}});})(); (function(){var k,n,l,g,a={},c={},m=/\\/g;var e=function(q,p){if(q==null){return null;}if(q.Slick===true){return q;}q=(""+q).replace(/^\s+|\s+$/g,"");g=!!p; var o=(g)?c:a;if(o[q]){return o[q];}k={Slick:true,expressions:[],raw:q,reverse:function(){return e(this.raw,true);}};n=-1;while(q!=(q=q.replace(j,b))){}k.length=k.expressions.length; return o[k.raw]=(g)?h(k):k;};var i=function(o){if(o==="!"){return" ";}else{if(o===" "){return"!";}else{if((/^!/).test(o)){return o.replace(/^!/,"");}else{return"!"+o; }}}};var h=function(u){var r=u.expressions;for(var p=0;p+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(//,"["+f(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")); function b(x,s,D,z,r,C,q,B,A,y,u,F,G,v,p,w){if(s||n===-1){k.expressions[++n]=[];l=-1;if(s){return"";}}if(D||z||l===-1){D=D||" ";var t=k.expressions[n]; if(g&&t[l]){t[l].reverseCombinator=i(D);}t[++l]={combinator:D,tag:"*"};}var o=k.expressions[n][l];if(r){o.tag=r.replace(m,"");}else{if(C){o.id=C.replace(m,""); }else{if(q){q=q.replace(m,"");if(!o.classList){o.classList=[];}if(!o.classes){o.classes=[];}o.classList.push(q);o.classes.push({value:q,regexp:new RegExp("(^|\\s)"+f(q)+"(\\s|$)")}); }else{if(G){w=w||p;w=w?w.replace(m,""):null;if(!o.pseudos){o.pseudos=[];}o.pseudos.push({key:G.replace(m,""),value:w,type:F.length==1?"class":"element"}); }else{if(B){B=B.replace(m,"");u=(u||"").replace(m,"");var E,H;switch(A){case"^=":H=new RegExp("^"+f(u));break;case"$=":H=new RegExp(f(u)+"$");break;case"~=":H=new RegExp("(^|\\s)"+f(u)+"(\\s|$)"); break;case"|=":H=new RegExp("^"+f(u)+"(-|$)");break;case"=":E=function(I){return u==I;};break;case"*=":E=function(I){return I&&I.indexOf(u)>-1;};break; case"!=":E=function(I){return u!=I;};break;default:E=function(I){return !!I;};}if(u==""&&(/^[*$^]=$/).test(A)){E=function(){return false;};}if(!E){E=function(I){return I&&H.test(I); };}if(!o.attributes){o.attributes=[];}o.attributes.push({key:B,operator:A,value:u,test:E});}}}}}return"";}var d=(this.Slick||{});d.parse=function(o){return e(o); };d.escapeRegExp=f;if(!this.Slick){this.Slick=d;}}).apply((typeof exports!="undefined")?exports:this);(function(){var k={},m={},d=Object.prototype.toString; k.isNativeCode=function(c){return(/\{\s*\[native code\]\s*\}/).test(""+c);};k.isXML=function(c){return(!!c.xmlVersion)||(!!c.xml)||(d.call(c)=="[object XMLDocument]")||(c.nodeType==9&&c.documentElement.nodeName!="HTML"); };k.setDocument=function(w){var p=w.nodeType;if(p==9){}else{if(p){w=w.ownerDocument;}else{if(w.navigator){w=w.document;}else{return;}}}if(this.document===w){return; }this.document=w;var A=w.documentElement,o=this.getUIDXML(A),s=m[o],r;if(s){for(r in s){this[r]=s[r];}return;}s=m[o]={};s.root=A;s.isXMLDocument=this.isXML(w); s.brokenStarGEBTN=s.starSelectsClosedQSA=s.idGetsName=s.brokenMixedCaseQSA=s.brokenGEBCN=s.brokenCheckedQSA=s.brokenEmptyAttributeQSA=s.isHTMLDocument=s.nativeMatchesSelector=false; var q,u,y,z,t;var x,v="slick_uniqueid";var c=w.createElement("div");var n=w.body||w.getElementsByTagName("body")[0]||A;n.appendChild(c);try{c.innerHTML=''; s.isHTMLDocument=!!w.getElementById(v);}catch(C){}if(s.isHTMLDocument){c.style.display="none";c.appendChild(w.createComment(""));u=(c.getElementsByTagName("*").length>1); try{c.innerHTML="foo";x=c.getElementsByTagName("*");q=(x&&!!x.length&&x[0].nodeName.charAt(0)=="/");}catch(C){}s.brokenStarGEBTN=u||q;try{c.innerHTML=''; s.idGetsName=w.getElementById(v)===c.firstChild;}catch(C){}if(c.getElementsByClassName){try{c.innerHTML='';c.getElementsByClassName("b").length; c.firstChild.className="b";z=(c.getElementsByClassName("b").length!=2);}catch(C){}try{c.innerHTML='';y=(c.getElementsByClassName("a").length!=2); }catch(C){}s.brokenGEBCN=z||y;}if(c.querySelectorAll){try{c.innerHTML="foo";x=c.querySelectorAll("*");s.starSelectsClosedQSA=(x&&!!x.length&&x[0].nodeName.charAt(0)=="/"); }catch(C){}try{c.innerHTML='';s.brokenMixedCaseQSA=!c.querySelectorAll(".MiX").length;}catch(C){}try{c.innerHTML=''; s.brokenCheckedQSA=(c.querySelectorAll(":checked").length==0);}catch(C){}try{c.innerHTML='';s.brokenEmptyAttributeQSA=(c.querySelectorAll('[class*=""]').length!=0); }catch(C){}}try{c.innerHTML='
';t=(c.firstChild.getAttribute("action")!="s");}catch(C){}s.nativeMatchesSelector=A.matchesSelector||A.mozMatchesSelector||A.webkitMatchesSelector; if(s.nativeMatchesSelector){try{s.nativeMatchesSelector.call(A,":slick");s.nativeMatchesSelector=null;}catch(C){}}}try{A.slick_expando=1;delete A.slick_expando; s.getUID=this.getUIDHTML;}catch(C){s.getUID=this.getUIDXML;}n.removeChild(c);c=x=n=null;s.getAttribute=(s.isHTMLDocument&&t)?function(G,E){var H=this.attributeGetters[E]; if(H){return H.call(G);}var F=G.getAttributeNode(E);return(F)?F.nodeValue:null;}:function(F,E){var G=this.attributeGetters[E];return(G)?G.call(F):F.getAttribute(E); };s.hasAttribute=(A&&this.isNativeCode(A.hasAttribute))?function(F,E){return F.hasAttribute(E);}:function(F,E){F=F.getAttributeNode(E);return !!(F&&(F.specified||F.nodeValue)); };var D=A&&this.isNativeCode(A.contains),B=w&&this.isNativeCode(w.contains);s.contains=(D&&B)?function(E,F){return E.contains(F);}:(D&&!B)?function(E,F){return E===F||((E===w)?w.documentElement:E).contains(F); }:(A&&A.compareDocumentPosition)?function(E,F){return E===F||!!(E.compareDocumentPosition(F)&16);}:function(E,F){if(F){do{if(F===E){return true;}}while((F=F.parentNode)); }return false;};s.documentSorter=(A.compareDocumentPosition)?function(F,E){if(!F.compareDocumentPosition||!E.compareDocumentPosition){return 0;}return F.compareDocumentPosition(E)&4?-1:F===E?0:1; }:("sourceIndex" in A)?function(F,E){if(!F.sourceIndex||!E.sourceIndex){return 0;}return F.sourceIndex-E.sourceIndex;}:(w.createRange)?function(H,F){if(!H.ownerDocument||!F.ownerDocument){return 0; }var G=H.ownerDocument.createRange(),E=F.ownerDocument.createRange();G.setStart(H,0);G.setEnd(H,0);E.setStart(F,0);E.setEnd(F,0);return G.compareBoundaryPoints(Range.START_TO_END,E); }:null;A=null;for(r in s){this[r]=s[r];}};var f=/^([#.]?)((?:[\w-]+|\*))$/,h=/\[.+[*$^]=(?:""|'')?\]/,g={};k.search=function(U,z,H,s){var p=this.found=(s)?null:(H||[]); if(!U){return p;}else{if(U.navigator){U=U.document;}else{if(!U.nodeType){return p;}}}var F,O,V=this.uniques={},I=!!(H&&H.length),y=(U.nodeType==9);if(this.document!==(y?U:U.ownerDocument)){this.setDocument(U); }if(I){for(O=p.length;O--;){V[this.getUID(p[O])]=true;}}if(typeof z=="string"){var r=z.match(f);simpleSelectors:if(r){var u=r[1],v=r[2],A,E;if(!u){if(v=="*"&&this.brokenStarGEBTN){break simpleSelectors; }E=U.getElementsByTagName(v);if(s){return E[0]||null;}for(O=0;A=E[O++];){if(!(I&&V[this.getUID(A)])){p.push(A);}}}else{if(u=="#"){if(!this.isHTMLDocument||!y){break simpleSelectors; }A=U.getElementById(v);if(!A){return p;}if(this.idGetsName&&A.getAttributeNode("id").nodeValue!=v){break simpleSelectors;}if(s){return A||null;}if(!(I&&V[this.getUID(A)])){p.push(A); }}else{if(u=="."){if(!this.isHTMLDocument||((!U.getElementsByClassName||this.brokenGEBCN)&&U.querySelectorAll)){break simpleSelectors;}if(U.getElementsByClassName&&!this.brokenGEBCN){E=U.getElementsByClassName(v); if(s){return E[0]||null;}for(O=0;A=E[O++];){if(!(I&&V[this.getUID(A)])){p.push(A);}}}else{var T=new RegExp("(^|\\s)"+e.escapeRegExp(v)+"(\\s|$)");E=U.getElementsByTagName("*"); for(O=0;A=E[O++];){className=A.className;if(!(className&&T.test(className))){continue;}if(s){return A;}if(!(I&&V[this.getUID(A)])){p.push(A);}}}}}}if(I){this.sort(p); }return(s)?null:p;}querySelector:if(U.querySelectorAll){if(!this.isHTMLDocument||g[z]||this.brokenMixedCaseQSA||(this.brokenCheckedQSA&&z.indexOf(":checked")>-1)||(this.brokenEmptyAttributeQSA&&h.test(z))||(!y&&z.indexOf(",")>-1)||e.disableQSA){break querySelector; }var S=z,x=U;if(!y){var C=x.getAttribute("id"),t="slickid__";x.setAttribute("id",t);S="#"+t+" "+S;U=x.parentNode;}try{if(s){return U.querySelector(S)||null; }else{E=U.querySelectorAll(S);}}catch(Q){g[z]=1;break querySelector;}finally{if(!y){if(C){x.setAttribute("id",C);}else{x.removeAttribute("id");}U=x;}}if(this.starSelectsClosedQSA){for(O=0; A=E[O++];){if(A.nodeName>"@"&&!(I&&V[this.getUID(A)])){p.push(A);}}}else{for(O=0;A=E[O++];){if(!(I&&V[this.getUID(A)])){p.push(A);}}}if(I){this.sort(p); }return p;}F=this.Slick.parse(z);if(!F.length){return p;}}else{if(z==null){return p;}else{if(z.Slick){F=z;}else{if(this.contains(U.documentElement||U,z)){(p)?p.push(z):p=z; return p;}else{return p;}}}}this.posNTH={};this.posNTHLast={};this.posNTHType={};this.posNTHTypeLast={};this.push=(!I&&(s||(F.length==1&&F.expressions[0].length==1)))?this.pushArray:this.pushUID; if(p==null){p=[];}var M,L,K;var B,J,D,c,q,G,W;var N,P,o,w,R=F.expressions;search:for(O=0;(P=R[O]);O++){for(M=0;(o=P[M]);M++){B="combinator:"+o.combinator; if(!this[B]){continue search;}J=(this.isXMLDocument)?o.tag:o.tag.toUpperCase();D=o.id;c=o.classList;q=o.classes;G=o.attributes;W=o.pseudos;w=(M===(P.length-1)); this.bitUniques={};if(w){this.uniques=V;this.found=p;}else{this.uniques={};this.found=[];}if(M===0){this[B](U,J,D,q,G,W,c);if(s&&w&&p.length){break search; }}else{if(s&&w){for(L=0,K=N.length;L1)){this.sort(p);}return(s)?(p[0]||null):p;};k.uidx=1;k.uidk="slick-uniqueid";k.getUIDXML=function(n){var c=n.getAttribute(this.uidk); if(!c){c=this.uidx++;n.setAttribute(this.uidk,c);}return c;};k.getUIDHTML=function(c){return c.uniqueNumber||(c.uniqueNumber=this.uidx++);};k.sort=function(c){if(!this.documentSorter){return c; }c.sort(this.documentSorter);return c;};k.cacheNTH={};k.matchNTH=/^([+-]?\d*)?([a-z]+)?([+-]\d+)?$/;k.parseNTHArgument=function(q){var o=q.match(this.matchNTH); if(!o){return false;}var p=o[2]||false;var n=o[1]||1;if(n=="-"){n=-1;}var c=+o[3]||0;o=(p=="n")?{a:n,b:c}:(p=="odd")?{a:2,b:1}:(p=="even")?{a:2,b:0}:{a:0,b:n}; return(this.cacheNTH[q]=o);};k.createNTHPseudo=function(p,n,c,o){return function(s,q){var u=this.getUID(s);if(!this[c][u]){var A=s.parentNode;if(!A){return false; }var r=A[p],t=1;if(o){var z=s.nodeName;do{if(r.nodeName!=z){continue;}this[c][this.getUID(r)]=t++;}while((r=r[n]));}else{do{if(r.nodeType!=1){continue; }this[c][this.getUID(r)]=t++;}while((r=r[n]));}}q=q||"n";var v=this.cacheNTH[q]||this.parseNTHArgument(q);if(!v){return false;}var y=v.a,x=v.b,w=this[c][u]; if(y==0){return x==w;}if(y>0){if(w":function(p,c,r,o,n,q){if((p=p.firstChild)){do{if(p.nodeType==1){this.push(p,c,r,o,n,q); }}while((p=p.nextSibling));}},"+":function(p,c,r,o,n,q){while((p=p.nextSibling)){if(p.nodeType==1){this.push(p,c,r,o,n,q);break;}}},"^":function(p,c,r,o,n,q){p=p.firstChild; if(p){if(p.nodeType==1){this.push(p,c,r,o,n,q);}else{this["combinator:+"](p,c,r,o,n,q);}}},"~":function(q,c,s,p,n,r){while((q=q.nextSibling)){if(q.nodeType!=1){continue; }var o=this.getUID(q);if(this.bitUniques[o]){break;}this.bitUniques[o]=true;this.push(q,c,s,p,n,r);}},"++":function(p,c,r,o,n,q){this["combinator:+"](p,c,r,o,n,q); this["combinator:!+"](p,c,r,o,n,q);},"~~":function(p,c,r,o,n,q){this["combinator:~"](p,c,r,o,n,q);this["combinator:!~"](p,c,r,o,n,q);},"!":function(p,c,r,o,n,q){while((p=p.parentNode)){if(p!==this.document){this.push(p,c,r,o,n,q); }}},"!>":function(p,c,r,o,n,q){p=p.parentNode;if(p!==this.document){this.push(p,c,r,o,n,q);}},"!+":function(p,c,r,o,n,q){while((p=p.previousSibling)){if(p.nodeType==1){this.push(p,c,r,o,n,q); break;}}},"!^":function(p,c,r,o,n,q){p=p.lastChild;if(p){if(p.nodeType==1){this.push(p,c,r,o,n,q);}else{this["combinator:!+"](p,c,r,o,n,q);}}},"!~":function(q,c,s,p,n,r){while((q=q.previousSibling)){if(q.nodeType!=1){continue; }var o=this.getUID(q);if(this.bitUniques[o]){break;}this.bitUniques[o]=true;this.push(q,c,s,p,n,r);}}};for(var i in j){k["combinator:"+i]=j[i];}var l={empty:function(c){var n=c.firstChild; return !(n&&n.nodeType==1)&&!(c.innerText||c.textContent||"").length;},not:function(c,n){return !this.matchNode(c,n);},contains:function(c,n){return(c.innerText||c.textContent||"").indexOf(n)>-1; },"first-child":function(c){while((c=c.previousSibling)){if(c.nodeType==1){return false;}}return true;},"last-child":function(c){while((c=c.nextSibling)){if(c.nodeType==1){return false; }}return true;},"only-child":function(o){var n=o;while((n=n.previousSibling)){if(n.nodeType==1){return false;}}var c=o;while((c=c.nextSibling)){if(c.nodeType==1){return false; }}return true;},"nth-child":k.createNTHPseudo("firstChild","nextSibling","posNTH"),"nth-last-child":k.createNTHPseudo("lastChild","previousSibling","posNTHLast"),"nth-of-type":k.createNTHPseudo("firstChild","nextSibling","posNTHType",true),"nth-last-of-type":k.createNTHPseudo("lastChild","previousSibling","posNTHTypeLast",true),index:function(n,c){return this["pseudo:nth-child"](n,""+(c+1)); },even:function(c){return this["pseudo:nth-child"](c,"2n");},odd:function(c){return this["pseudo:nth-child"](c,"2n+1");},"first-of-type":function(c){var n=c.nodeName; while((c=c.previousSibling)){if(c.nodeName==n){return false;}}return true;},"last-of-type":function(c){var n=c.nodeName;while((c=c.nextSibling)){if(c.nodeName==n){return false; }}return true;},"only-of-type":function(o){var n=o,p=o.nodeName;while((n=n.previousSibling)){if(n.nodeName==p){return false;}}var c=o;while((c=c.nextSibling)){if(c.nodeName==p){return false; }}return true;},enabled:function(c){return !c.disabled;},disabled:function(c){return c.disabled;},checked:function(c){return c.checked||c.selected;},focus:function(c){return this.isHTMLDocument&&this.document.activeElement===c&&(c.href||c.type||this.hasAttribute(c,"tabindex")); },root:function(c){return(c===this.root);},selected:function(c){return c.selected;}};for(var b in l){k["pseudo:"+b]=l[b];}var a=k.attributeGetters={"for":function(){return("htmlFor" in this)?this.htmlFor:this.getAttribute("for"); },href:function(){return("href" in this)?this.getAttribute("href",2):this.getAttribute("href");},style:function(){return(this.style)?this.style.cssText:this.getAttribute("style"); },tabindex:function(){var c=this.getAttributeNode("tabindex");return(c&&c.specified)?c.nodeValue:null;},type:function(){return this.getAttribute("type"); },maxlength:function(){var c=this.getAttributeNode("maxLength");return(c&&c.specified)?c.nodeValue:null;}};a.MAXLENGTH=a.maxLength=a.maxlength;var e=k.Slick=(this.Slick||{}); e.version="1.1.7";e.search=function(n,o,c){return k.search(n,o,c);};e.find=function(c,n){return k.search(c,n,null,true);};e.contains=function(c,n){k.setDocument(c); return k.contains(c,n);};e.getAttribute=function(n,c){k.setDocument(n);return k.getAttribute(n,c);};e.hasAttribute=function(n,c){k.setDocument(n);return k.hasAttribute(n,c); };e.match=function(n,c){if(!(n&&c)){return false;}if(!c||c===n){return true;}k.setDocument(n);return k.matchNode(n,c);};e.defineAttributeGetter=function(c,n){k.attributeGetters[c]=n; return this;};e.lookupAttributeGetter=function(c){return k.attributeGetters[c];};e.definePseudo=function(c,n){k["pseudo:"+c]=function(p,o){return n.call(p,o); };return this;};e.lookupPseudo=function(c){var n=k["pseudo:"+c];if(n){return function(o){return n.call(this,o);};}return null;};e.override=function(n,c){k.override(n,c); return this;};e.isXML=k.isXML;e.uidOf=function(c){return k.getUIDHTML(c);};if(!this.Slick){this.Slick=e;}}).apply((typeof exports!="undefined")?exports:this); var Element=function(b,g){var h=Element.Constructors[b];if(h){return h(g);}if(typeof b!="string"){return document.id(b).set(g);}if(!g){g={};}if(!(/^[\w-]+$/).test(b)){var e=Slick.parse(b).expressions[0][0]; b=(e.tag=="*")?"div":e.tag;if(e.id&&g.id==null){g.id=e.id;}var d=e.attributes;if(d){for(var a,f=0,c=d.length;f=this.length){delete this[g--];}return e;}.protect());}Array.forEachMethod(function(g,e){Elements.implement(e,g);});Array.mirror(Elements);var d; try{d=(document.createElement("").name=="x");}catch(b){}var c=function(e){return(""+e).replace(/&/g,"&").replace(/"/g,""");};Document.implement({newElement:function(e,g){if(g&&g.checked!=null){g.defaultChecked=g.checked; }if(d&&g){e="<"+e;if(g.name){e+=' name="'+c(g.name)+'"';}if(g.type){e+=' type="'+c(g.type)+'"';}e+=">";delete g.name;delete g.type;}return this.id(this.createElement(e)).set(g); }});})();(function(){Slick.uidOf(window);Slick.uidOf(document);Document.implement({newTextNode:function(e){return this.createTextNode(e);},getDocument:function(){return this; },getWindow:function(){return this.window;},id:(function(){var e={string:function(E,D,l){E=Slick.find(l,"#"+E.replace(/(\W)/g,"\\$1"));return(E)?e.element(E,D):null; },element:function(D,E){Slick.uidOf(D);if(!E&&!D.$family&&!(/^(?:object|embed)$/i).test(D.tagName)){var l=D.fireEvent;D._fireEvent=function(F,G){return l(F,G); };Object.append(D,Element.Prototype);}return D;},object:function(D,E,l){if(D.toElement){return e.element(D.toElement(l),E);}return null;}};e.textnode=e.whitespace=e.window=e.document=function(l){return l; };return function(D,F,E){if(D&&D.$family&&D.uniqueNumber){return D;}var l=typeOf(D);return(e[l])?e[l](D,F,E||document):null;};})()});if(window.$==null){Window.implement("$",function(e,l){return document.id(e,l,this.document); });}Window.implement({getDocument:function(){return this.document;},getWindow:function(){return this;}});[Document,Element].invoke("implement",{getElements:function(e){return Slick.search(this,e,new Elements); },getElement:function(e){return document.id(Slick.find(this,e));}});var m={contains:function(e){return Slick.contains(this,e);}};if(!document.contains){Document.implement(m); }if(!document.createElement("div").contains){Element.implement(m);}Element.implement("hasChild",function(e){return this!==e&&this.contains(e);});(function(l,E,e){this.Selectors={}; var F=this.Selectors.Pseudo=new Hash();var D=function(){for(var G in F){if(F.hasOwnProperty(G)){Slick.definePseudo(G,F[G]);delete F[G];}}};Slick.search=function(H,I,G){D(); return l.call(this,H,I,G);};Slick.find=function(G,H){D();return E.call(this,G,H);};Slick.match=function(H,G){D();return e.call(this,H,G);};})(Slick.search,Slick.find,Slick.match); var r=function(E,D){if(!E){return D;}E=Object.clone(Slick.parse(E));var l=E.expressions;for(var e=l.length;e--;){l[e][0].combinator=D;}return E;};Object.forEach({getNext:"~",getPrevious:"!~",getParent:"!"},function(e,l){Element.implement(l,function(D){return this.getElement(r(D,e)); });});Object.forEach({getAllNext:"~",getAllPrevious:"!~",getSiblings:"~~",getChildren:">",getParents:"!"},function(e,l){Element.implement(l,function(D){return this.getElements(r(D,e)); });});Element.implement({getFirst:function(e){return document.id(Slick.search(this,r(e,">"))[0]);},getLast:function(e){return document.id(Slick.search(this,r(e,">")).getLast()); },getWindow:function(){return this.ownerDocument.window;},getDocument:function(){return this.ownerDocument;},getElementById:function(e){return document.id(Slick.find(this,"#"+(""+e).replace(/(\W)/g,"\\$1"))); },match:function(e){return !e||Slick.match(this,e);}});if(window.$$==null){Window.implement("$$",function(e){var H=new Elements;if(arguments.length==1&&typeof e=="string"){return Slick.search(this.document,e,H); }var E=Array.flatten(arguments);for(var F=0,D=E.length;F(?![^<]*<['"])/)).indexOf(F)<0){return null;}E[F]=true;}}var e=Slick.getAttribute(this,F); return(!e&&!Slick.hasAttribute(this,F))?null:e;},getProperties:function(){var e=Array.from(arguments);return e.map(this.getProperty,this).associate(e); },removeProperty:function(e){return this.setProperty(e,null);},removeProperties:function(){Array.each(arguments,this.removeProperty,this);return this;},set:function(D,l){var e=Element.Properties[D]; (e&&e.set)?e.set.call(this,l):this.setProperty(D,l);}.overloadSetter(),get:function(l){var e=Element.Properties[l];return(e&&e.get)?e.get.apply(this):this.getProperty(l); }.overloadGetter(),erase:function(l){var e=Element.Properties[l];(e&&e.erase)?e.erase.apply(this):this.removeProperty(l);return this;},hasClass:function(e){return this.className.clean().contains(e," "); },addClass:function(e){if(!this.hasClass(e)){this.className=(this.className+" "+e).clean();}return this;},removeClass:function(e){this.className=this.className.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)"),"$1"); return this;},toggleClass:function(e,l){if(l==null){l=!this.hasClass(e);}return(l)?this.addClass(e):this.removeClass(e);},adopt:function(){var E=this,e,G=Array.flatten(arguments),F=G.length; if(F>1){E=e=document.createDocumentFragment();}for(var D=0;D";var a=(t.childNodes.length==1);if(!a){var s="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video".split(" "),b=document.createDocumentFragment(),u=s.length; while(u--){b.createElement(s[u]);}}t=null;var g=Function.attempt(function(){var e=document.createElement("table");e.innerHTML="";return true; });var c=document.createElement("tr"),o="";c.innerHTML=o;var y=(c.innerHTML==o);c=null;if(!g||!y||!a){Element.Properties.html.set=(function(l){var e={table:[1,"","
"],select:[1,""],tbody:[2,"","
"],tr:[3,"","
"]}; e.thead=e.tfoot=e.tbody;return function(D){var E=e[this.get("tag")];if(!E&&!a){E=[0,"",""];}if(!E){return l.call(this,D);}var H=E[0],G=document.createElement("div"),F=G; if(!a){b.appendChild(G);}G.innerHTML=[E[1],D,E[2]].flatten().join("");while(H--){F=F.firstChild;}this.empty().adopt(F.childNodes);if(!a){b.removeChild(G); }G=null;};})(Element.Properties.html.set);}var n=document.createElement("form");n.innerHTML="";if(n.firstChild.value!="s"){Element.Properties.value={set:function(G){var l=this.get("tag"); if(l!="select"){return this.setProperty("value",G);}var D=this.getElements("option");for(var E=0;E0||k==null?"visible":"hidden";};var f=(h?function(l,k){l.style.opacity=k;}:(e?function(l,k){var n=l.style; if(!l.currentStyle||!l.currentStyle.hasLayout){n.zoom=1;}if(k==null||k==1){k="";}else{k="alpha(opacity="+(k*100).limit(0,100).round()+")";}var m=n.filter||l.getComputedStyle("filter")||""; n.filter=j.test(m)?m.replace(j,k):m+k;if(!n.filter){n.removeAttribute("filter");}}:a));var g=(h?function(l){var k=l.style.opacity||l.getComputedStyle("opacity"); return(k=="")?1:k.toFloat();}:(e?function(l){var m=(l.style.filter||l.getComputedStyle("filter")),k;if(m){k=m.match(j);}return(k==null||m==null)?1:(k[1]/100); }:function(l){var k=l.retrieve("$opacity");if(k==null){k=(l.style.visibility=="hidden"?0:1);}return k;}));var b=(i.style.cssFloat==null)?"styleFloat":"cssFloat"; Element.implement({getComputedStyle:function(m){if(this.currentStyle){return this.currentStyle[m.camelCase()];}var l=Element.getDocument(this).defaultView,k=l?l.getComputedStyle(this,null):null; return(k)?k.getPropertyValue((m==b)?"float":m.hyphenate()):null;},setStyle:function(l,k){if(l=="opacity"){if(k!=null){k=parseFloat(k);}f(this,k);return this; }l=(l=="float"?b:l).camelCase();if(typeOf(k)!="string"){var m=(Element.Styles[l]||"@").split(" ");k=Array.from(k).map(function(o,n){if(!m[n]){return""; }return(typeOf(o)=="number")?m[n].replace("@",Math.round(o)):o;}).join(" ");}else{if(k==String(Number(k))){k=Math.round(k);}}this.style[l]=k;if((k==""||k==null)&&c&&this.style.removeAttribute){this.style.removeAttribute(l); }return this;},getStyle:function(q){if(q=="opacity"){return g(this);}q=(q=="float"?b:q).camelCase();var k=this.style[q];if(!k||q=="zIndex"){k=[];for(var p in Element.ShortStyles){if(q!=p){continue; }for(var o in Element.ShortStyles[p]){k.push(this.getStyle(o));}return k.join(" ");}k=this.getComputedStyle(q);}if(k){k=String(k);var m=k.match(/rgba?\([\d\s,]+\)/); if(m){k=k.replace(m[0],m[0].rgbToHex());}}if(Browser.opera||Browser.ie){if((/^(height|width)$/).test(q)&&!(/px$/.test(k))){var l=(q=="width")?["left","right"]:["top","bottom"],n=0; l.each(function(r){n+=this.getStyle("border-"+r+"-width").toInt()+this.getStyle("padding-"+r).toInt();},this);return this["offset"+q.capitalize()]-n+"px"; }if(Browser.ie&&(/^border(.+)Width|margin|padding/).test(q)&&isNaN(parseFloat(k))){return"0px";}}return k;},setStyles:function(l){for(var k in l){this.setStyle(k,l[k]); }return this;},getStyles:function(){var k={};Array.flatten(arguments).each(function(l){k[l]=this.getStyle(l);},this);return k;}});Element.Styles={left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"}; Element.implement({setOpacity:function(k){f(this,k);return this;},getOpacity:function(){return g(this);}});Element.Properties.opacity={set:function(k){f(this,k); a(this,k);},get:function(){return g(this);}};Element.Styles=new Hash(Element.Styles);Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}}; ["Top","Right","Bottom","Left"].each(function(q){var p=Element.ShortStyles;var l=Element.Styles;["margin","padding"].each(function(r){var s=r+q;p[r][s]=l[s]="@px"; });var o="border"+q;p.border[o]=l[o]="@px @ rgb(@, @, @)";var n=o+"Width",k=o+"Style",m=o+"Color";p[o]={};p.borderWidth[n]=p[o][n]=l[n]="@px";p.borderStyle[k]=p[o][k]=l[k]="@"; p.borderColor[m]=p[o][m]=l[m]="rgb(@, @, @)";});})();(function(){Element.Properties.events={set:function(b){this.addEvents(b);}};[Element,Window,Document].invoke("implement",{addEvent:function(f,h){var i=this.retrieve("events",{}); if(!i[f]){i[f]={keys:[],values:[]};}if(i[f].keys.contains(h)){return this;}i[f].keys.push(h);var g=f,b=Element.Events[f],d=h,j=this;if(b){if(b.onAdd){b.onAdd.call(this,h,f); }if(b.condition){d=function(k){if(b.condition.call(this,k,f)){return h.call(this,k);}return true;};}if(b.base){g=Function.from(b.base).call(this,f);}}var e=function(){return h.call(j); };var c=Element.NativeEvents[g];if(c){if(c==2){e=function(k){k=new DOMEvent(k,j.getWindow());if(d.call(j,k)===false){k.stop();}};}this.addListener(g,e,arguments[2]); }i[f].values.push(e);return this;},removeEvent:function(e,d){var c=this.retrieve("events");if(!c||!c[e]){return this;}var h=c[e];var b=h.keys.indexOf(d); if(b==-1){return this;}var g=h.values[b];delete h.keys[b];delete h.values[b];var f=Element.Events[e];if(f){if(f.onRemove){f.onRemove.call(this,d,e);}if(f.base){e=Function.from(f.base).call(this,e); }}return(Element.NativeEvents[e])?this.removeListener(e,g,arguments[2]):this;},addEvents:function(b){for(var c in b){this.addEvent(c,b[c]);}return this; },removeEvents:function(b){var d;if(typeOf(b)=="object"){for(d in b){this.removeEvent(d,b[d]);}return this;}var c=this.retrieve("events");if(!c){return this; }if(!b){for(d in c){this.removeEvents(d);}this.eliminate("events");}else{if(c[b]){c[b].keys.each(function(e){this.removeEvent(b,e);},this);delete c[b]; }}return this;},fireEvent:function(e,c,b){var d=this.retrieve("events");if(!d||!d[e]){return this;}c=Array.from(c);d[e].keys.each(function(f){if(b){f.delay(b,this,c); }else{f.apply(this,c);}},this);return this;},cloneEvents:function(e,d){e=document.id(e);var c=e.retrieve("events");if(!c){return this;}if(!d){for(var b in c){this.cloneEvents(e,b); }}else{if(c[d]){c[d].keys.each(function(f){this.addEvent(d,f);},this);}}return this;}});Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,orientationchange:2,touchstart:2,touchmove:2,touchend:2,touchcancel:2,gesturestart:2,gesturechange:2,gestureend:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,paste:2,input:2,load:2,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1}; Element.Events={mousewheel:{base:(Browser.firefox)?"DOMMouseScroll":"mousewheel"}};if("onmouseenter" in document.documentElement){Element.NativeEvents.mouseenter=Element.NativeEvents.mouseleave=2; }else{var a=function(b){var c=b.relatedTarget;if(c==null){return true;}if(!c){return false;}return(c!=this&&c.prefix!="xul"&&typeOf(this)!="document"&&!this.contains(c)); };Element.Events.mouseenter={base:"mouseover",condition:a};Element.Events.mouseleave={base:"mouseout",condition:a};}if(!window.addEventListener){Element.NativeEvents.propertychange=2; Element.Events.change={base:function(){var b=this.type;return(this.get("tag")=="input"&&(b=="radio"||b=="checkbox"))?"propertychange":"change";},condition:function(b){return this.type!="radio"||(b.event.propertyName=="checked"&&this.checked); }};}Element.Events=new Hash(Element.Events);})();(function(){var c=!!window.addEventListener;Element.NativeEvents.focusin=Element.NativeEvents.focusout=2; var k=function(l,m,n,o,p){while(p&&p!=l){if(m(p,o)){return n.call(p,o,p);}p=document.id(p.parentNode);}};var a={mouseenter:{base:"mouseover"},mouseleave:{base:"mouseout"},focus:{base:"focus"+(c?"":"in"),capture:true},blur:{base:c?"blur":"focusout",capture:true}}; var b="$delegation:";var i=function(l){return{base:"focusin",remove:function(m,o){var p=m.retrieve(b+l+"listeners",{})[o];if(p&&p.forms){for(var n=p.forms.length; n--;){p.forms[n].removeEvent(l,p.fns[n]);}}},listen:function(x,r,v,n,t,s){var o=(t.get("tag")=="form")?t:n.target.getParent("form");if(!o){return;}var u=x.retrieve(b+l+"listeners",{}),p=u[s]||{forms:[],fns:[]},m=p.forms,w=p.fns; if(m.indexOf(o)!=-1){return;}m.push(o);var q=function(y){k(x,r,v,y,t);};o.addEvent(l,q);w.push(q);u[s]=p;x.store(b+l+"listeners",u);}};};var d=function(l){return{base:"focusin",listen:function(m,n,p,q,r){var o={blur:function(){this.removeEvents(o); }};o[l]=function(s){k(m,n,p,s,r);};q.target.addEvents(o);}};};if(!c){Object.append(a,{submit:i("submit"),reset:i("reset"),change:d("change"),select:d("select")}); }var h=Element.prototype,f=h.addEvent,j=h.removeEvent;var e=function(l,m){return function(r,q,n){if(r.indexOf(":relay")==-1){return l.call(this,r,q,n); }var o=Slick.parse(r).expressions[0][0];if(o.pseudos[0].key!="relay"){return l.call(this,r,q,n);}var p=o.tag;o.pseudos.slice(1).each(function(s){p+=":"+s.key+(s.value?"("+s.value+")":""); });l.call(this,r,q);return m.call(this,p,o.pseudos[0].value,q);};};var g={addEvent:function(v,q,x){var t=this.retrieve("$delegates",{}),r=t[v];if(r){for(var y in r){if(r[y].fn==x&&r[y].match==q){return this; }}}var p=v,u=q,o=x,n=a[v]||{};v=n.base||p;q=function(B){return Slick.match(B,u);};var w=Element.Events[p];if(w&&w.condition){var l=q,m=w.condition;q=function(C,B){return l(C,B)&&m.call(C,B,v); };}var z=this,s=String.uniqueID();var A=n.listen?function(B,C){if(!C&&B&&B.target){C=B.target;}if(C){n.listen(z,q,x,B,C,s);}}:function(B,C){if(!C&&B&&B.target){C=B.target; }if(C){k(z,q,x,B,C);}};if(!r){r={};}r[s]={match:u,fn:o,delegator:A};t[p]=r;return f.call(this,v,A,n.capture);},removeEvent:function(r,n,t,u){var q=this.retrieve("$delegates",{}),p=q[r]; if(!p){return this;}if(u){var m=r,w=p[u].delegator,l=a[r]||{};r=l.base||m;if(l.remove){l.remove(this,u);}delete p[u];q[m]=p;return j.call(this,r,w);}var o,v; if(t){for(o in p){v=p[o];if(v.match==n&&v.fn==t){return g.removeEvent.call(this,r,n,t,o);}}}else{for(o in p){v=p[o];if(v.match==n){g.removeEvent.call(this,r,n,v.fn,o); }}}return this;}};[Element,Window,Document].invoke("implement",{addEvent:e(f,g.addEvent),removeEvent:e(j,g.removeEvent)});})();(function(){var h=document.createElement("div"),e=document.createElement("div"); h.style.height="0";h.appendChild(e);var d=(e.offsetParent===h);h=e=null;var l=function(m){return k(m,"position")!="static"||a(m);};var i=function(m){return l(m)||(/^(?:table|td|th)$/i).test(m.tagName); };Element.implement({scrollTo:function(m,n){if(a(this)){this.getWindow().scrollTo(m,n);}else{this.scrollLeft=m;this.scrollTop=n;}return this;},getSize:function(){if(a(this)){return this.getWindow().getSize(); }return{x:this.offsetWidth,y:this.offsetHeight};},getScrollSize:function(){if(a(this)){return this.getWindow().getScrollSize();}return{x:this.scrollWidth,y:this.scrollHeight}; },getScroll:function(){if(a(this)){return this.getWindow().getScroll();}return{x:this.scrollLeft,y:this.scrollTop};},getScrolls:function(){var n=this.parentNode,m={x:0,y:0}; while(n&&!a(n)){m.x+=n.scrollLeft;m.y+=n.scrollTop;n=n.parentNode;}return m;},getOffsetParent:d?function(){var m=this;if(a(m)||k(m,"position")=="fixed"){return null; }var n=(k(m,"position")=="static")?i:l;while((m=m.parentNode)){if(n(m)){return m;}}return null;}:function(){var m=this;if(a(m)||k(m,"position")=="fixed"){return null; }try{return m.offsetParent;}catch(n){}return null;},getOffsets:function(){if(this.getBoundingClientRect&&!Browser.Platform.ios){var r=this.getBoundingClientRect(),o=document.id(this.getDocument().documentElement),q=o.getScroll(),t=this.getScrolls(),s=(k(this,"position")=="fixed"); return{x:r.left.toInt()+t.x+((s)?0:q.x)-o.clientLeft,y:r.top.toInt()+t.y+((s)?0:q.y)-o.clientTop};}var n=this,m={x:0,y:0};if(a(this)){return m;}while(n&&!a(n)){m.x+=n.offsetLeft; m.y+=n.offsetTop;if(Browser.firefox){if(!c(n)){m.x+=b(n);m.y+=g(n);}var p=n.parentNode;if(p&&k(p,"overflow")!="visible"){m.x+=b(p);m.y+=g(p);}}else{if(n!=this&&Browser.safari){m.x+=b(n); m.y+=g(n);}}n=n.offsetParent;}if(Browser.firefox&&!c(this)){m.x-=b(this);m.y-=g(this);}return m;},getPosition:function(p){var q=this.getOffsets(),n=this.getScrolls(); var m={x:q.x-n.x,y:q.y-n.y};if(p&&(p=document.id(p))){var o=p.getPosition();return{x:m.x-o.x-b(p),y:m.y-o.y-g(p)};}return m;},getCoordinates:function(o){if(a(this)){return this.getWindow().getCoordinates(); }var m=this.getPosition(o),n=this.getSize();var p={left:m.x,top:m.y,width:n.x,height:n.y};p.right=p.left+p.width;p.bottom=p.top+p.height;return p;},computePosition:function(m){return{left:m.x-j(this,"margin-left"),top:m.y-j(this,"margin-top")}; },setPosition:function(m){return this.setStyles(this.computePosition(m));}});[Document,Window].invoke("implement",{getSize:function(){var m=f(this);return{x:m.clientWidth,y:m.clientHeight}; },getScroll:function(){var n=this.getWindow(),m=f(this);return{x:n.pageXOffset||m.scrollLeft,y:n.pageYOffset||m.scrollTop};},getScrollSize:function(){var o=f(this),n=this.getSize(),m=this.getDocument().body; return{x:Math.max(o.scrollWidth,m.scrollWidth,n.x),y:Math.max(o.scrollHeight,m.scrollHeight,n.y)};},getPosition:function(){return{x:0,y:0};},getCoordinates:function(){var m=this.getSize(); return{top:0,left:0,bottom:m.y,right:m.x,height:m.y,width:m.x};}});var k=Element.getComputedStyle;function j(m,n){return k(m,n).toInt()||0;}function c(m){return k(m,"-moz-box-sizing")=="border-box"; }function g(m){return j(m,"border-top-width");}function b(m){return j(m,"border-left-width");}function a(m){return(/^(?:body|html)$/i).test(m.tagName); }function f(m){var n=m.getDocument();return(!n.compatMode||n.compatMode=="CSS1Compat")?n.html:n.body;}})();Element.alias({position:"setPosition"});[Window,Document,Element].invoke("implement",{getHeight:function(){return this.getSize().y; },getWidth:function(){return this.getSize().x;},getScrollTop:function(){return this.getScroll().y;},getScrollLeft:function(){return this.getScroll().x; },getScrollHeight:function(){return this.getScrollSize().y;},getScrollWidth:function(){return this.getScrollSize().x;},getTop:function(){return this.getPosition().y; },getLeft:function(){return this.getPosition().x;}});(function(){var f=this.Fx=new Class({Implements:[Chain,Events,Options],options:{fps:60,unit:false,duration:500,frames:null,frameSkip:true,link:"ignore"},initialize:function(g){this.subject=this.subject||this; this.setOptions(g);},getTransition:function(){return function(g){return -(Math.cos(Math.PI*g)-1)/2;};},step:function(g){if(this.options.frameSkip){var h=(this.time!=null)?(g-this.time):0,i=h/this.frameInterval; this.time=g;this.frame+=i;}else{this.frame++;}if(this.frame=(7-4*d)/11){e=c*c-Math.pow((11-6*d-11*f)/4,2);break;}}return e;},Elastic:function(b,a){return Math.pow(2,10*--b)*Math.cos(20*b*Math.PI*(a&&a[0]||1)/3); }});["Quad","Cubic","Quart","Quint"].each(function(b,a){Fx.Transitions[b]=new Fx.Transition(function(c){return Math.pow(c,a+2);});});(function(){var d=function(){},a=("onprogress" in new Browser.Request); var c=this.Request=new Class({Implements:[Chain,Events,Options],options:{url:"",data:"",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",isSuccess:null,emulation:true,urlEncoded:true,encoding:"utf-8",evalScripts:false,evalResponse:false,timeout:0,noCache:false},initialize:function(e){this.xhr=new Browser.Request(); this.setOptions(e);this.headers=this.options.headers;},onStateChange:function(){var e=this.xhr;if(e.readyState!=4||!this.running){return;}this.running=false; this.status=0;Function.attempt(function(){var f=e.status;this.status=(f==1223)?204:f;}.bind(this));e.onreadystatechange=d;if(a){e.onprogress=e.onloadstart=d; }clearTimeout(this.timer);this.response={text:this.xhr.responseText||"",xml:this.xhr.responseXML};if(this.options.isSuccess.call(this,this.status)){this.success(this.response.text,this.response.xml); }else{this.failure();}},isSuccess:function(){var e=this.status;return(e>=200&&e<300);},isRunning:function(){return !!this.running;},processScripts:function(e){if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){return Browser.exec(e); }return e.stripScripts(this.options.evalScripts);},success:function(f,e){this.onSuccess(this.processScripts(f),e);},onSuccess:function(){this.fireEvent("complete",arguments).fireEvent("success",arguments).callChain(); },failure:function(){this.onFailure();},onFailure:function(){this.fireEvent("complete").fireEvent("failure",this.xhr);},loadstart:function(e){this.fireEvent("loadstart",[e,this.xhr]); },progress:function(e){this.fireEvent("progress",[e,this.xhr]);},timeout:function(){this.fireEvent("timeout",this.xhr);},setHeader:function(e,f){this.headers[e]=f; return this;},getHeader:function(e){return Function.attempt(function(){return this.xhr.getResponseHeader(e);}.bind(this));},check:function(){if(!this.running){return true; }switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(this.caller.pass(arguments,this));return false;}return false;},send:function(o){if(!this.check(o)){return this; }this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.running=true;var l=typeOf(o);if(l=="string"||l=="element"){o={data:o};}var h=this.options; o=Object.append({data:h.data,url:h.url,method:h.method},o);var j=o.data,f=String(o.url),e=o.method.toLowerCase();switch(typeOf(j)){case"element":j=document.id(j).toQueryString(); break;case"object":case"hash":j=Object.toQueryString(j);}if(this.options.format){var m="format="+this.options.format;j=(j)?m+"&"+j:m;}if(this.options.emulation&&!["get","post"].contains(e)){var k="_method="+e; j=(j)?k+"&"+j:k;e="post";}if(this.options.urlEncoded&&["post","put"].contains(e)){var g=(this.options.encoding)?"; charset="+this.options.encoding:"";this.headers["Content-type"]="application/x-www-form-urlencoded"+g; }if(!f){f=document.location.pathname;}var i=f.lastIndexOf("/");if(i>-1&&(i=f.indexOf("#"))>-1){f=f.substr(0,i);}if(this.options.noCache){f+=(f.contains("?")?"&":"?")+String.uniqueID(); }if(j&&e=="get"){f+=(f.contains("?")?"&":"?")+j;j=null;}var n=this.xhr;if(a){n.onloadstart=this.loadstart.bind(this);n.onprogress=this.progress.bind(this); }n.open(e.toUpperCase(),f,this.options.async,this.options.user,this.options.password);if(this.options.user&&"withCredentials" in n){n.withCredentials=true; }n.onreadystatechange=this.onStateChange.bind(this);Object.each(this.headers,function(q,p){try{n.setRequestHeader(p,q);}catch(r){this.fireEvent("exception",[p,q]); }},this);this.fireEvent("request");n.send(j);if(!this.options.async){this.onStateChange();}else{if(this.options.timeout){this.timer=this.timeout.delay(this.options.timeout,this); }}return this;},cancel:function(){if(!this.running){return this;}this.running=false;var e=this.xhr;e.abort();clearTimeout(this.timer);e.onreadystatechange=d; if(a){e.onprogress=e.onloadstart=d;}this.xhr=new Browser.Request();this.fireEvent("cancel");return this;}});var b={};["get","post","put","delete","GET","POST","PUT","DELETE"].each(function(e){b[e]=function(g){var f={method:e}; if(g!=null){f.data=g;}return this.send(f);};});c.implement(b);Element.Properties.send={set:function(e){var f=this.get("send").cancel();f.setOptions(e); return this;},get:function(){var e=this.retrieve("send");if(!e){e=new c({data:this,link:"cancel",method:this.get("method")||"post",url:this.get("action")}); this.store("send",e);}return e;}};Element.implement({send:function(e){var f=this.get("send");f.send({data:this,url:e||f.options.url});return this;}});})(); Request.HTML=new Class({Extends:Request,options:{update:false,append:false,evalScripts:true,filter:false,headers:{Accept:"text/html, application/xml, text/xml, */*"}},success:function(f){var e=this.options,c=this.response; c.html=f.stripScripts(function(h){c.javascript=h;});var d=c.html.match(/]*>([\s\S]*?)<\/body>/i);if(d){c.html=d[1];}var b=new Element("div").set("html",c.html); c.tree=b.childNodes;c.elements=b.getElements(e.filter||"*");if(e.filter){c.tree=c.elements;}if(e.update){var g=document.id(e.update).empty();if(e.filter){g.adopt(c.elements); }else{g.set("html",c.html);}}else{if(e.append){var a=document.id(e.append);if(e.filter){c.elements.reverse().inject(a);}else{a.adopt(b.getChildren());}}}if(e.evalScripts){Browser.exec(c.javascript); }this.onSuccess(c.tree,c.elements,c.html,c.javascript);}});Element.Properties.load={set:function(a){var b=this.get("load").cancel();b.setOptions(a);return this; },get:function(){var a=this.retrieve("load");if(!a){a=new Request.HTML({data:this,link:"cancel",update:this,method:"get"});this.store("load",a);}return a; }};Element.implement({load:function(){this.get("load").send(Array.link(arguments,{data:Type.isObject,url:Type.isString}));return this;}});if(typeof JSON=="undefined"){this.JSON={}; }JSON=new Hash({stringify:JSON.stringify,parse:JSON.parse});(function(){var special={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}; var escape=function(chr){return special[chr]||"\\u"+("0000"+chr.charCodeAt(0).toString(16)).slice(-4);};JSON.validate=function(string){string=string.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""); return(/^[\],:{}\s]*$/).test(string);};JSON.encode=JSON.stringify?function(obj){return JSON.stringify(obj);}:function(obj){if(obj&&obj.toJSON){obj=obj.toJSON(); }switch(typeOf(obj)){case"string":return'"'+obj.replace(/[\x00-\x1f\\"]/g,escape)+'"';case"array":return"["+obj.map(JSON.encode).clean()+"]";case"object":case"hash":var string=[]; Object.each(obj,function(value,key){var json=JSON.encode(value);if(json){string.push(JSON.encode(key)+":"+json);}});return"{"+string+"}";case"number":case"boolean":return""+obj; case"null":return"null";}return null;};JSON.decode=function(string,secure){if(!string||typeOf(string)!="string"){return null;}if(secure||JSON.secure){if(JSON.parse){return JSON.parse(string); }if(!JSON.validate(string)){throw new Error("JSON could not decode the input; security is enabled and the value is not secure.");}}return eval("("+string+")"); };})();Request.JSON=new Class({Extends:Request,options:{secure:true},initialize:function(a){this.parent(a);Object.append(this.headers,{Accept:"application/json","X-Request":"JSON"}); },success:function(c){var b;try{b=this.response.json=JSON.decode(c,this.options.secure);}catch(a){this.fireEvent("error",[c,a]);return;}if(b==null){this.onFailure(); }else{this.onSuccess(b,c);}}});var Cookie=new Class({Implements:Options,options:{path:"/",domain:false,duration:false,secure:false,document:document,encode:true},initialize:function(b,a){this.key=b; this.setOptions(a);},write:function(b){if(this.options.encode){b=encodeURIComponent(b);}if(this.options.domain){b+="; domain="+this.options.domain;}if(this.options.path){b+="; path="+this.options.path; }if(this.options.duration){var a=new Date();a.setTime(a.getTime()+this.options.duration*24*60*60*1000);b+="; expires="+a.toGMTString();}if(this.options.secure){b+="; secure"; }this.options.document.cookie=this.key+"="+b;return this;},read:function(){var a=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.escapeRegExp()+"=([^;]*)"); return(a)?decodeURIComponent(a[1]):null;},dispose:function(){new Cookie(this.key,Object.merge({},this.options,{duration:-1})).write("");return this;}}); Cookie.write=function(b,c,a){return new Cookie(b,a).write(c);};Cookie.read=function(a){return new Cookie(a).read();};Cookie.dispose=function(b,a){return new Cookie(b,a).dispose(); };(function(i,k){var l,f,e=[],c,b,d=k.createElement("div");var g=function(){clearTimeout(b);if(l){return;}Browser.loaded=l=true;k.removeListener("DOMContentLoaded",g).removeListener("readystatechange",a); k.fireEvent("domready");i.fireEvent("domready");};var a=function(){for(var m=e.length;m--;){if(e[m]()){g();return true;}}return false;};var j=function(){clearTimeout(b); if(!a()){b=setTimeout(j,10);}};k.addListener("DOMContentLoaded",g);var h=function(){try{d.doScroll();return true;}catch(m){}return false;};if(d.doScroll&&!h()){e.push(h); c=true;}if(k.readyState){e.push(function(){var m=k.readyState;return(m=="loaded"||m=="complete");});}if("onreadystatechange" in k){k.addListener("readystatechange",a); }else{c=true;}if(c){j();}Element.Events.domready={onAdd:function(m){if(l){m.call(this);}}};Element.Events.load={base:"load",onAdd:function(m){if(f&&this==i){m.call(this); }},condition:function(){if(this==i){g();delete Element.Events.load;}return true;}};i.addEvent("load",function(){f=true;});})(window,document);(function(){var Swiff=this.Swiff=new Class({Implements:Options,options:{id:null,height:1,width:1,container:null,properties:{},params:{quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true},callBacks:{},vars:{}},toElement:function(){return this.object; },initialize:function(path,options){this.instance="Swiff_"+String.uniqueID();this.setOptions(options);options=this.options;var id=this.id=options.id||this.instance; var container=document.id(options.container);Swiff.CallBacks[this.instance]={};var params=options.params,vars=options.vars,callBacks=options.callBacks; var properties=Object.append({height:options.height,width:options.width},options.properties);var self=this;for(var callBack in callBacks){Swiff.CallBacks[this.instance][callBack]=(function(option){return function(){return option.apply(self.object,arguments); };})(callBacks[callBack]);vars[callBack]="Swiff.CallBacks."+this.instance+"."+callBack;}params.flashVars=Object.toQueryString(vars);if(Browser.ie){properties.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; params.movie=path;}else{properties.type="application/x-shockwave-flash";}properties.data=path;var build='';}}build+="";this.object=((container)?container.empty():new Element("div")).set("html",build).firstChild; },replaces:function(element){element=document.id(element,true);element.parentNode.replaceChild(this.toElement(),element);return this;},inject:function(element){document.id(element,true).appendChild(this.toElement()); return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].append(arguments));}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction(''+__flash__argumentsToXML(arguments,2)+""); return eval(rs);};})(); var MiceLanguageManager=new Class({Implements:Options,options:{language:'de'},sections:{'de':{}},requested:{'de':{}},initialize:function(options,sections){if($defined(options)){this.setOptions(options);} if($defined(sections)){$each(sections,function(el,i){$each(el,function(eli,ii){this.addSection(ii,eli,i);},this);},this);}},addSection:function(key,section,language){if(!$defined(key)||!$defined(section)){return false;} if(!$defined(language)){language=this.options.language;} if(!$defined(this.sections[language])){this.sections[language]={};} if(!key){$extend(this.sections[language],section);} this.sections[language][key]=section;return true;},getSection:function(key,callback,language){if(!$defined(key)){return false;} if(!$defined(language)){language=this.options.language;} if($type(callback)=='function'&&(!$defined(this.sections[language])||!$defined(this.sections[language][key]))){if(!$defined(this.requested[language])||!$defined(this.requested[language][key])||!this.requested[language][key]){new Request.JSON({url:'/-javascript-messages-'+language+'?sections='+key,onSuccess:function(response){this.loaded.bind(this)(response,language,key);}.bind(this)}).send();} if(!$defined(this.requested[language])){this.requested[language]={};} if(!$defined(this.requested[language][key])){this.requested[language][key]=[];} this.requested[language][key].push(callback);if($defined(this.sections[this.options.language][key])){return this.sections[this.options.language][key];} else{return false;}} if($defined(this.sections[language])&&$defined(this.sections[language][key])){return this.sections[language][key];} return false;},loaded:function(response,language,key){if(!$defined(this.sections[language])){this.sections[language]={};} $extend(this.sections[language],response);this.requested[language][key].each(function(callbackfunction){callbackfunction();});}});var LanguageManager=new MiceLanguageManager({language:'de'});LanguageManager.addSection(false,{"navShareOnFacebook":"auf facebook teilen","navSendPerEmail":"per email versenden","imgpopup":{"navClose":"schlie\u00dfen","navPrev":"vorheriges Bild","navNext":"n\u00e4chstes Bild"},"fullscreenGallery":{"navSections":"Kategorien","navClose":"Zur\u00fcck zum Inhalt","navPrev":"vorheriges Bild","navNext":"n\u00e4chstes Bild","navThumbsLeft":"nach links scrollen","navThumbsRight":"nach rechts scrollen","navThumb":"Bild anzeigen"},"calendar":{"navClose":"schlie\u00dfen"},"printpage":{"printpage":"Seite drucken"}},'de');var Calendar=new Class({Implements:[Options,Events],options:{time:new Date(),count:2,stepSize:1,language:'de',wheelEnabled:true,validTimeFrames:[],invalidTimeFrames:[],selectableTimeFrames:[],markedTimeFrames:{},selectionMode:'single',selection:{}},calendarViews:[],selectionTimeOuts:[],multipleStarted:false,initialize:function(options){this.setOptions(options);if($type(this.options.time)!='date'){this.options.time=new Date(this.options.time);} this.object=new Element('span',{'class':'mtc_wrap','html':'«»schließen x'});this.close();this.objectCalwrap=this.object.getElement('.mtc_calwrap');this.objectPrev=this.object.getElement('.mtc_prev');this.objectNext=this.object.getElement('.mtc_next');this.objectClose=this.object.getElement('.mtc_close');if(this.options.wheelEnabled){this.objectCalwrap.addEvent('mousewheel',(function(e){var step=e.wheel<0?this.options.stepSize:(this.options.stepSize*(-1));this.setDate(new Date(this.options.time.getFullYear(),this.options.time.getMonth()+step,1));new Event(e).stop();}).bindWithEvent(this));} this.objectPrev.addEvent('click',(function(e){this.setDate(new Date(this.options.time.getFullYear(),this.options.time.getMonth()-this.options.stepSize,1));new Event(e).stop();}).bindWithEvent(this));this.objectNext.addEvent('click',(function(e){this.setDate(new Date(this.options.time.getFullYear(),this.options.time.getMonth()+this.options.stepSize,1));new Event(e).stop();}).bindWithEvent(this));if(Browser.Engine.trident){this.objectPrev.addEvent('dblclick',(function(){this.objectPrev.fireEvent('click');}).bind(this));this.objectNext.addEvent('dblclick',(function(){this.objectNext.fireEvent('click');}).bind(this));} this.objectClose.addEvent('click',(function(e){this.close();new Event(e).stop();}).bindWithEvent(this));this.options.count.times(function(i){this.calendarViews.push(new CalendarView());this.calendarViews[this.calendarViews.length-1].getObject().inject(this.objectCalwrap);this.calendarViews[this.calendarViews.length-1].addEvent('click',(this.itemClick).bind(this));this.calendarViews[this.calendarViews.length-1].addEvent('mouseover',(this.itemMouseover).bind(this));this.calendarViews[this.calendarViews.length-1].addEvent('mouseout',(this.itemMouseout).bind(this));},this);this.render();},render:function(){if(this.isRendering){return this;} this.isRendering=true;if(this.calendarViews[0].options.time.getTime()!=new Date(this.options.time.getFullYear(),this.options.time.getMonth(),1).getTime()){this.fireEvent('changeview');} this.options.count.times(function(i){var month=new Date(this.options.time.getFullYear(),this.options.time.getMonth()+i,1);$extend(this.calendarViews[i].options,{time:month,language:this.options.language,validTimeFrames:this.options.validTimeFrames,invalidTimeFrames:this.options.invalidTimeFrames,markedTimeFrames:this.options.markedTimeFrames});this.calendarViews[i].render();},this);this.isRendering=false;return this;},renderTimeFrames:function(){this.options.count.times(function(i){$extend(this.calendarViews[i].options,{markedTimeFrames:this.options.markedTimeFrames});this.calendarViews[i].renderTimeFrames();},this);},open:function(){this.object.setStyle('display','');this.fireEvent('open');return this;},close:function(){this.object.setStyle('display','none');this.fireEvent('close');return this;},getObject:function(){return this.object;},setLanguage:function(language){this.options.language=language;this.render();return this;},setDate:function(date){this.options.time=date;this.render();return this;},setMarkedTimeFrame:function(className,timeFrame){this.options.markedTimeFrames[className]=[timeFrame];return this;},addMarkedTimeFrame:function(className,timeFrame){if($type(this.options.markedTimeFrames[className])!='array'){this.options.markedTimeFrames[className]=[];} this.options.markedTimeFrames[className].push(timeFrame);return this;},removeMarkedTimeFrame:function(className){if($type(className)!='string'){this.options.markedTimeFrames={};} else{this.options.markedTimeFrames[className]=[];} return this;},addValidTimeFrame:function(timeFrame){this.options.validTimeFrames.push(timeFrame);return this;},addInvalidTimeFrame:function(timeFrame){this.options.invalidTimeFrames.push(timeFrame);return this;},clearValidTimeFrames:function(){this.options.validTimeFrames=[];return this;},clearInvalidTimeFrames:function(){this.options.invalidTimeFrames=[];return this;},itemClick:function(e){var fired=false;if(this.options.selectionMode=='single'){this.fireEvent('select',e);this.setMarkedTimeFrame('mtc_selected',new CalendarTimeFrame(e.date,e.date));fired=true;} else if(this.options.selectionMode=='timeframe'){this.options.selectableTimeFrames.each((function(timeFrame){if(timeFrame.isBetween(e.date)){$extend(e,{timeFrame:timeFrame});this.fireEvent('select',e);this.setMarkedTimeFrame('mtc_selected',timeFrame);fired=true;}}).bind(this));if(!fired){this.fireEvent('select',e);this.setMarkedTimeFrame('mtc_selected',new CalendarTimeFrame(e.date,e.date));}} else if(this.options.selectionMode=='multiple'){if(this.multipleStarted==false){this.multipleStarted=e.date;} else{var timeFrame=new CalendarTimeFrame(this.multipleStarted,e.date);this.multipleStarted=false;$extend(e,{timeFrame:timeFrame});this.fireEvent('select',e);}} this.renderTimeFrames();},itemMouseover:function(e){this.fireEvent('mouseover',e);if(this.options.selectionMode=='single'){} else if(this.options.selectionMode=='timeframe'){this.options.selectableTimeFrames.each((function(timeFrame){if(timeFrame.isBetween(e.date)){if(!$defined(this.options.markedTimeFrames['mtc_future_selected'])||!$defined(this.options.markedTimeFrames['mtc_future_selected'][0])||this.options.markedTimeFrames['mtc_future_selected'][0].start.getTime()!=timeFrame.start.getTime()||this.options.markedTimeFrames['mtc_future_selected'][0].end.getTime()!=timeFrame.end.getTime()){this.setMarkedTimeFrame('mtc_future_selected',timeFrame);this.renderTimeFrames();} this.selectionTimeOuts.each(function(timeOut){$clear(timeOut);});}}).bind(this));} else if(this.options.selectionMode=='multiple'){}},itemMouseout:function(e){this.fireEvent('mouseout',e);this.selectionTimeOuts.push((function(){if(this.options.selectionMode=='timeframe'&&$defined(this.options.markedTimeFrames['mtc_future_selected'])&&this.options.markedTimeFrames['mtc_future_selected'].length>0){this.removeMarkedTimeFrame('mtc_future_selected');this.renderTimeFrames();}}).delay(20,this));}});var CalendarView=new Class({Implements:[Options,Events],options:{time:new Date(),wdayOffset:1,language:'de',validTimeFrames:[],invalidTimeFrames:[],markedTimeFrames:{}},initialize:function(options){this.setOptions(options);this.localeMessages=window.localeMessages;this.object=new Element('span',{'class':'mtc_cal'});var objHtml='';(7).times(function(){objHtml+=''});objHtml+='';(6).times(function(){objHtml+='';(7).times(function(){objHtml+=''});objHtml+='';});this.object.set('html',objHtml);this.objectMonth=this.object.getElement('.mtc_month');this.objectWdays=this.object.getElement('.mtc_wdays').getElements('b');this.objectDayrows=this.object.getElements('.mtc_dayrow');this.objectDays=this.object.getElements('.mtc_dayrow span');$each(this.objectDays,function(el){el.addEvent('click',(function(){if(!el.clickable){return;} this.fireEvent('click',{date:new Date(el.timestamp),item:el});}).bind(this));el.addEvent('mouseover',(function(){if(!el.clickable){return;} this.fireEvent('mouseover',{date:new Date(el.timestamp),item:el});}).bind(this));el.addEvent('mouseout',(function(){if(!el.clickable){return;} this.fireEvent('mouseout',{date:new Date(el.timestamp),item:el});}).bind(this));},this);this.render();},render:function(){this.objectMonth.set('html',this.localeMessages.months[this.options.time.getMonth()+1]+' '+this.options.time.getFullYear());this.objectWdays.each(function(el,i){i+=this.options.wdayOffset;if(i>6){i-=7;} el.set('html',this.localeMessages.weekdaysAbbr[i]);},this);var firstDay=new Date(this.options.time.getFullYear(),this.options.time.getMonth(),1);var firstDayOffset=firstDay.getDay();firstDayOffset-=this.options.wdayOffset;if(firstDayOffset<0){firstDayOffset+=7;} this.objectDays.each(function(el,i){var day=new Date(this.options.time.getFullYear(),this.options.time.getMonth(),i-firstDayOffset+1);el.set('html',day.getDate());el.timestamp=day.getTime();},this);this.renderTimeFrames();},renderTimeFrames:function(){this.objectDays.each(function(el,i){var day=new Date(el.timestamp);var cssClass='';$each(this.options.markedTimeFrames,function(timeFrames,timeFrameclass){timeFrames.each((function(timeFrame){if(timeFrame.isBetween(day)){cssClass+=' '+timeFrameclass;}}).bind(this));},this);var invalid=false;if(this.options.validTimeFrames.length>0){invalid=true;this.options.validTimeFrames.each((function(timeFrame){if(timeFrame.isBetween(day)){invalid=false;}}).bind(this));} if(this.options.invalidTimeFrames.length>0){this.options.invalidTimeFrames.each((function(timeFrame){if(timeFrame.isBetween(day)){invalid=true;}}).bind(this));} var clickable=true;if(invalid){cssClass+=' mtc_invalid';clickable=false;} if(this.options.time.getMonth()!=day.getMonth()){cssClass+=' mtc_outofrange';} if(clickable){cssClass+=' mtc_valid';} el.set('class',cssClass);el.clickable=clickable;},this);},getObject:function(){return this.object;}});CalendarTimeFrame=new Class({initialize:function(start,end){this.start=this.convertToDate(start);this.end=this.convertToDate(end);},isBetween:function(date){date=this.convertToDate(date);if(date.getTime()>=this.start.getTime()&&date.getTime()<=this.end.getTime()){return true;} return false;},getDays:function(asTimestamp){var days=[];var startDay=new Date(this.start.getFullYear(),this.start.getMonth(),this.start.getDate());var endDay=new Date(this.end.getFullYear(),this.end.getMonth(),this.end.getDate());for(var i=new Date(startDay.getTime());i.getTime()<=endDay.getTime();i=new Date(i.getFullYear(),i.getMonth(),i.getDate()+1)){days.push(($defined(asTimestamp)&&asTimestamp)?i.getTime():i);} return days;},convertToDate:function(date){if($type(date)=='date'){return new Date(date.getFullYear(),date.getMonth(),date.getDate());} else if($type(date)=='number'){return new Date(date);} else if($type(date)=='string'){date=date.split('-');return new Date(date[0]*1,(date[1]*1)-1,date[2]*1);} return new Date(0,0,0);}});window.addEvent('domload',function(){if((typeof isCms=="undefined"||!isCms)&&(typeof isAdmin=="undefined"||!isAdmin)){var calendarInputs=$$('input.calendarField');if(calendarInputs.length>0){calendarInputs.each(function(field){if(field.calendarObject){return;} field.calendarObject=new Calendar({count:1});field.calendarObject.setMarkedTimeFrame('mtc_today',new CalendarTimeFrame(new Date(),new Date()));field.calendarObject.addEvent('select',function(e){field.set('value',e.date.getDateLocaleFormatted());field.calendarObject.close();});field.calendarObject.getObject().inject(field,'after');if(field.get('data-valid-dates')){field.get('data-valid-dates').split('|').each(function(timeframe){timeframe=timeframe.split(',');field.calendarObject.addValidTimeFrame(new CalendarTimeFrame(timeframe[0],timeframe[1]));});} else{field.calendarObject.addValidTimeFrame(new CalendarTimeFrame(new Date().getTime()-(24*60*60*1000),new Date(new Date().getTime()+(3*365*24*60*60*1000))));} field.calendarObject.render();field.addEvent('click',function(e){var date=new Date();date.setDateLocaleFormatted(field.get('value'));field.calendarObject.setDate(date);field.calendarObject.setMarkedTimeFrame('mtc_selected',new CalendarTimeFrame(date,date));field.calendarObject.render();field.calendarObject.open();});if(field.get('name')=='untilDate'&&field.getParent('form').getElement('input.calendarField[name=fromDate]')&&field.getParent('form').getElement('input.calendarField[name=fromDate]').calendarObject){var fromField=field.getParent('form').getElement('input.calendarField[name=fromDate]');fromField.calendarObject.addEvent('select',function(e){field.calendarObject.clearInvalidTimeFrames();field.calendarObject.addInvalidTimeFrame(new CalendarTimeFrame(e.date.getTime()-(3*365*24*60*60*1000),e.date.getTime()));var untilDate=new Date();if(!untilDate.setDateLocaleFormatted(field.get('value'))||untilDate.getTime()<=e.date.getTime()){field.set('value',new Date(e.date.getTime()+(24*60*60*1000)).getDateLocaleFormatted());}});fromField.calendarObject.addEvent('open',field.calendarObject.close.bind(field.calendarObject));field.calendarObject.addEvent('open',fromField.calendarObject.close.bind(fromField.calendarObject));}});}}});var MooSwipe=MooSwipe||new Class({Implements:[Options,Events],options:{tolerance:20,preventDefaults:true},element:null,startX:null,isMoving:false,initialize:function(el,options){this.setOptions(options);this.element=document.id(el);this.element.addListener('touchstart',this.onTouchStart.bind(this));},cancelTouch:function(){this.element.removeListener('touchmove',this.onTouchMove);this.startX=null;this.isMoving=false;},onTouchMove:function(e){this.options.preventDefaults&&e.preventDefault();if(this.isMoving){var x=e.touches[0].pageX;var dx=this.startX-x;if(Math.abs(dx)>=this.options.tolerance){this.cancelTouch();this.fireEvent(dx>0?'swipeLeft':'swipeRight');this.fireEvent('swipe',dx>0?'left':'right');}}},onTouchStart:function(e){if(e.touches.length==1){this.startX=e.touches[0].pageX;this.isMoving=true;this.element.addListener('touchmove',this.onTouchMove.bind(this));}}});var ImgPopup=new Class({options:{hide_ie6_selects:true,hide_embeds:true,startSize:{x:75,y:75},shadowSize:{x:57,y:57},ie6_shadowSize:{x:25,y:25},in_duration:300,out_duration:300,overlayOpacity:.7},sections:[],initialize:function(){var self=this;if(Browser.Engine.trident4){this.options.shadowSize=this.options.ie6_shadowSize;} this.overlay=new Element('div',{id:'imgp_overlay'}).setStyles({display:'none',position:'absolute',top:0,left:0}).setStyle('opacity',0);this.overlay.inject(document.body);this.shadow=new Element('div',{id:'imgp_shadow_wrap'}).set('html','
');this.shadow.inject(document.body);this.imgwrap=new Element('div',{id:'imgp_imgwrap'}).set('html','
');this.imgwrap.inject(document.body);this.caption=this.imgwrap.getElement('#imgp_caption');this.links=this.imgwrap.getElement('#imgp_links');this.form=this.imgwrap.getElement('#imgp_form');this.img=this.imgwrap.getElement('#imgp_img');new MooSwipe(this.img,{onSwipe:function(direction){self.goTo.bind(self)(direction=='right'?-1:1);}});this.iframe=this.imgwrap.getElement('#imgp_iframe');this.element=this.imgwrap.getElement('#imgp_element');this.prev=this.imgwrap.getElement('#imgp_prev');this.prev.addEvent('click',function(e){this.goTo.bind(this)(-1);if(e){e.stop();}}.bindWithEvent(this));this.next=this.imgwrap.getElement('#imgp_next');this.next.addEvent('click',function(e){this.goTo.bind(this)(1);if(e){e.stop();}}.bindWithEvent(this));this.preimg=new Element('img');this.preimg.addEvent('load',this.imgLoaded.bind(this));this.effects_in={overlay:new Fx.Morph(this.overlay,{duration:this.options.in_duration,transition:Fx.Transitions.Linear}),shadow:new Fx.Morph(this.shadow,{duration:this.options.in_duration,transition:Fx.Transitions.Quad.easeOut}),imgwrap:new Fx.Morph(this.imgwrap,{duration:this.options.in_duration,transition:Fx.Transitions.Quad.easeOut}),img:new Fx.Morph(this.img,{duration:this.options.in_duration,transition:Fx.Transitions.Quad.easeOut})};this.effects_out={overlay:new Fx.Morph(this.overlay,{duration:this.options.out_duration,transition:Fx.Transitions.Linear}),shadow:new Fx.Morph(this.shadow,{duration:this.options.out_duration,transition:Fx.Transitions.Quad.easeIn}),imgwrap:new Fx.Morph(this.imgwrap,{duration:this.options.out_duration,transition:Fx.Transitions.Quad.easeIn}),img:new Fx.Morph(this.img,{duration:this.options.out_duration,transition:Fx.Transitions.Quad.easeIn})};this.imgwrap.getElement('#imgp_close').addEvent('click',function(e){this.close();if(e){e.stop();}}.bindWithEvent(this));this.overlay.addEvent('click',function(){this.close();}.bind(this));this.imgwrap.setStyle('display','none');},'addSection':function(section){this.sections.push(section);},start:function(url,caption){this.active_section=-1;for(i in this.sections){for(j in this.sections[i]){if(this.sections[i][j].url==url){this.active_section=i;this.active_item=j;break;}}} if(this.active_section<0){this.addSection([{url:url,caption:caption}]);this.active_section=this.sections.length-1;this.active_item=0;} this.preLoad(this.sections[this.active_section][this.active_item].url);},preLoad:function(url){if(this.sections[this.active_section][this.active_item].element=='iframe'){this.imgLoaded();} else{this.preimg.set('src',url);if(!this.sections[this.active_section][this.active_item].caption&&url.test(/\/files-.+$/)){var activeItem=this.sections[this.active_section][this.active_item];metaDataUrl=url.replace(/^.*\/files-(.+)[A-Z]\w*(\..{3})/,'/-images-metadata-'+locale+'/unid-$1$2');var metaDataRequest=new Request.JSON({method:'get',url:metaDataUrl,onSuccess:(function(data){if(data.label){activeItem.caption=data.label;} if(this.sections[this.active_section][this.active_item].caption){this.caption.set('html',this.sections[this.active_section][this.active_item].caption);if(this.openCompleted){this.caption.setStyle('display','');}}}).bind(this)}).send();}}},imgLoaded:function(){if(this.sections[this.active_section][this.active_item].element=='iframe'){this.target_width=this.sections[this.active_section][this.active_item].width*1;this.target_height=this.sections[this.active_section][this.active_item].height*1;} else{this.preimg.inject(document.body);this.target_width=this.preimg.getSize().x.toInt();this.target_height=this.preimg.getSize().y.toInt();this.preimg.dispose();this.preimg=new Element('img');this.preimg.addEvent('load',this.imgLoaded.bind(this));} if(this.target_width>window.getSize().x.toInt()-this.options.shadowSize.x){var ow=this.target_width;this.target_width=window.getSize().x.toInt()-this.options.shadowSize.x;if(this.sections[this.active_section][this.active_item].element=='img'||!this.sections[this.active_section][this.active_item].element){this.target_height*=this.target_width/ow;}} if(this.target_height>window.getSize().y.toInt()-this.options.shadowSize.y){var oh=this.target_height;this.target_height=window.getSize().y.toInt()-this.options.shadowSize.y;if(this.sections[this.active_section][this.active_item].element=='img'||!this.sections[this.active_section][this.active_item].element){this.target_width*=this.target_height/oh;}} if(!this.is_opened){this.open();} else{this.resize();}},goTo:function(offset){this.openCompleted=false;this.active_item=(this.active_item*1)+(offset*1);if(this.active_item<0){this.active_item=0;} if(this.active_item>this.sections[this.active_section].length-1){this.active_item=this.sections[this.active_section].length-1;} this.preLoad(this.sections[this.active_section][this.active_item].url);},open:function(){this.openCompleted=false;this.is_opened=true;if(Browser.Engine.trident4&&this.options.hide_ie6_selects){this.hided_selects=$$('select');this.hided_selects.each(function(el){el.imgp_restore_style=el.getStyle('visibility');el.setStyle('visibility','hidden');});} this.overlay.setStyles({display:'',opacity:0,width:document.id(document.body).getScrollSize().x,height:document.id(document.body).getScrollSize().y});this.imgwrap.getElements('*').each(function(el){el.setStyle('display','none');});this.img.setStyles({display:'',width:this.options.startSize.x,height:this.options.startSize.y});this.iframe.setStyles({display:'none'});this.element.setStyles({display:'none'});this.shadow.setStyles({display:'block',left:(window.getScroll().x+(document.id(document.body).getSize().x/2))-(this.options.startSize.x/2)-this.options.shadowSize.x,top:(window.getScroll().y+(window.getSize().y/2))-(this.options.startSize.y/2)-this.options.shadowSize.y,width:this.options.startSize.x+(this.options.shadowSize.x*2),height:this.options.startSize.y+(this.options.shadowSize.y*2)});this.imgwrap.setStyles({display:'block',opacity:0,left:(window.getScroll().x+(document.id(document.body).getSize().x/2))-(this.options.startSize.x/2)-this.imgwrap.getStyle('border-left-width').toInt(),top:(window.getScroll().y+(window.getSize().y/2))-(this.options.startSize.y/2)-this.imgwrap.getStyle('border-top-width').toInt(),width:this.options.startSize.x,height:this.options.startSize.y});(function(){try{this.imgwrap.getElement('#imgp_close').focus();}catch(e){}}).delay(this.options.in_duration*1.1,this);this.resize();},resize:function(){var self=this;this.openCompleted=false;this.img.setStyles({opacity:0});this.prev.setStyle('display','none');this.next.setStyle('display','none');this.caption.setStyle('display','none');this.links.setStyle('display','none');this.form.setStyle('display','none');this.overlay.setStyle('display','none');this.iframe.setStyle('display','none');this.element.setStyle('display','none');this.effects_in.overlay.start({opacity:this.options.overlayOpacity,width:document.id(document.body).getScrollSize().x,height:document.id(document.body).getScrollSize().y});this.overlay.setStyle('display','');this.effects_in.shadow.start({left:(window.getScroll().x+(document.id(document.body).getSize().x/2))-(this.target_width/2)-this.options.shadowSize.x,top:(window.getScroll().y+(window.getSize().y/2))-(this.target_height/2)-this.options.shadowSize.y,width:this.target_width+(this.options.shadowSize.x*2),height:this.target_height+(this.options.shadowSize.x*2)});this.effects_in.imgwrap.start({opacity:1,left:(window.getScroll().x+(document.id(document.body).getSize().x/2))-(this.target_width/2)-this.imgwrap.getStyle('border-left-width').toInt(),top:(window.getScroll().y+(window.getSize().y/2))-(this.target_height/2)-this.imgwrap.getStyle('border-top-width').toInt(),width:this.target_width,height:this.target_height});if(this.sections[this.active_section][this.active_item].element=='img'||!this.sections[this.active_section][this.active_item].element){this.effects_in.img.start({opacity:1,width:this.target_width,height:this.target_height});} if(this.sections[this.active_section][this.active_item].element=='iframe'){this.iframe.setStyles({width:this.target_width,height:this.target_height});this.element.setStyles({width:this.target_width,height:this.target_height});this.img.set('src','');} else{this.img.set('src',this.sections[this.active_section][this.active_item].url);} this.caption.set('html',this.sections[this.active_section][this.active_item].caption);this.links.set('html','');if(this.sections[this.active_section][this.active_item].detailUrl){var linkUrl=this.sections[this.active_section][this.active_item].detailUrl;if(linkUrl.split('//')[0]!='http:'&&linkUrl.split('//')[0]!='https:'){linkUrl=document.location.protocol+'//'+document.location.host+linkUrl;} new Element('input',{'type':'text'}).set('value',linkUrl).addEvent('focus',function(){this.select();}).addEvent('click',function(){this.select();}).inject(this.links);new Element('a',{'class':'imgp_facebook','html':'auf facebook teilen'}).set('href','http://www.facebook.com/sharer.php?u='+encodeURIComponent(linkUrl)).addEvent('click',function(e){window.open(this.get('href'),'facebookShare','width=500,height=400');new Event(e).stop();}).inject(this.links);new Element('a',{'class':'imgp_email','html':'per email versenden'}).set('href',linkUrl).addEvent('click',function(e){self.emailForm(this.get('href'));new Event(e).stop();}).inject(this.links);} this.opened.delay(this.options.in_duration,this);},emailForm:function(linkUrl){var self=this;this.form.set('html','');this.formRequest=this.formRequest||new Request.HTML({'url':'/-images-form-de','update':this.form,'link':'cancel'}).addEvent('success',function(response){if(self.form.getElement('form')){self.form.getElement('form').addEvent('submit',function(e){new Event(e).stop();self.form.addClass('loading');self.formRequest.post(self.form);});} if(self.form.getElement('#imgp_form_close')){self.form.getElement('#imgp_form_close').addEvent('click',function(e){new Event(e).stop();self.form.setStyle('display','none');self.form.set('html','');});} self.form.removeClass('loading');});self.form.addClass('loading');this.formRequest.get({url:linkUrl});this.form.setStyle('display','');},opened:function(){this.openCompleted=true;this.imgwrap.getElements('*').each(function(el){el.setStyle('display','');});this.form.setStyle('display','none');if(this.sections[this.active_section][this.active_item].element=='iframe'){this.img.setStyle('display','none');if(this.sections[this.active_section][this.active_item].url.substr(0,1)=='#'){this.iframe.setStyle('display','none');this.element.set('html',document.id(document.body).getElement(this.sections[this.active_section][this.active_item].url).get('html'));} else{this.element.setStyle('display','none');this.iframe.set('src',this.sections[this.active_section][this.active_item].url);}} else{this.element.set('html','');this.iframe.set('src','');this.iframe.setStyle('display','none');this.element.setStyle('display','none');} if(this.active_item<=0){this.prev.setStyle('display','none');} if(this.active_item>=this.sections[this.active_section].length-1){this.next.setStyle('display','none');} if(!this.caption.innerHTML||this.caption.innerHTML==""){this.caption.setStyle('display','none');}},close:function(){this.openCompleted=false;this.is_opened=false;this.element.set('html','');this.iframe.set('src','');if(Browser.Engine.trident4&&this.options.hide_ie6_selects){this.hided_selects.each(function(el){el.setStyle('visibility',el.imgp_restore_style);});} this.imgwrap.getElements('*').each(function(el){el.setStyle('display','none');});this.img.setStyle('display','');this.effects_out.overlay.start({opacity:0});this.effects_out.shadow.start({left:(window.getScroll().x+(document.id(document.body).getSize().x/2))-(this.options.startSize.x/2)-this.options.shadowSize.x,top:(window.getScroll().y+(window.getSize().y/2))-(this.options.startSize.y/2)-this.options.shadowSize.y,width:this.options.startSize.x+(this.options.shadowSize.x*2),height:this.options.startSize.y+(this.options.shadowSize.y*2)});this.effects_out.imgwrap.start({opacity:0,left:(window.getScroll().x+(document.id(document.body).getSize().x/2))-(this.options.startSize.x/2)-this.imgwrap.getStyle('border-left-width').toInt(),top:(window.getScroll().y+(window.getSize().y/2))-(this.options.startSize.y/2)-this.imgwrap.getStyle('border-top-width').toInt(),width:this.options.startSize.x,height:this.options.startSize.y});this.effects_out.img.start({opacity:0,width:this.options.startSize.x,height:this.options.startSize.y});(function(){this.overlay.setStyle('display','none');this.shadow.setStyle('display','none');this.imgwrap.setStyle('display','none');}).delay(this.options.out_duration,this);}});ImgPopup.implement(Options);window.addEvent('domload',function(){if((typeof isCms=="undefined"||!isCms)&&(typeof isAdmin=="undefined"||!isAdmin)){window.myImgPopup=new ImgPopup();window.applyMyImgPopup=function(){$$('#content a.image').each(function(element){new Element('span').addClass('enlarge').inject(element);if(!element.get('rel')){element.set('rel','imgpopup');}});if($$('a[rel^=imgpopup]')){var imageSections={};$$('a[rel^=imgpopup]').each(function(element){var elm={url:element.get('href'),caption:element.getElement('.caption')?element.getElement('.caption').get('html'):element.get('title'),element:element.get('rel').test('^imgpopup\\[[0-9]+,[0-9]+\\]$','gi')?'iframe':'img',detailUrl:element.get('data-url')} if(elm.element=='iframe'){elm.width=element.get('rel').split('[')[1].split(']')[0].split(',')[0];elm.height=element.get('rel').split('[')[1].split(']')[0].split(',')[1];elm.caption=null;window.myImgPopup.addSection([elm]);} else{var imageSection=element.get('rel').split('[')[0];if(!imageSections.hasOwnProperty(imageSection)){imageSections[imageSection]=new Array();} imageSections[imageSection].push(elm);} element.addEvent('click',function(e){window.myImgPopup.start(element.get('href'));new Event(e).stop();});});for(var imageSection in imageSections){myImgPopup.addSection(imageSections[imageSection]);}}};window.applyMyImgPopup();}});window.addEvent('domload',function(){var $buo=function(op,test){var jsv=14;var n=window.navigator,b;this.op=op||{};this.op.l=op.l||n["language"]||n["userLanguage"]||document.documentElement.getAttribute("lang")||"en";var ll=this.op.l.substr(0,2);this.op.vsakt={i:11,f:28,o:12.1,s:7,n:20,c:32};this.op.vsdefault={i:8,f:23,o:12,s:5.2,n:12,c:28};this.op.vsmin={i:7,f:5,o:12,s:5,n:10,c:28};var myvs=op.vs||{};this.op.vs=op.vs||this.op.vsdefault;for(b in this.op.vsakt){if(this.op.vs[b]>=this.op.vsakt[b]) this.op.vs[b]=this.op.vsakt[b]-0.2;if(!this.op.vs[b]) this.op.vs[b]=this.op.vsdefault[b];if(this.op.vs[b]12) donotnotify="Opera12Linux";if(n=="x")return{n:"x",v:v||0,t:names[n],donotnotify:donotnotify};if(n=="so"){v=((v<100)&&1.0)||((v<130)&&1.2)||((v<320)&&1.3)||((v<520)&&2.0)||((v<524)&&3.0)||((v<526)&&3.2)||4.0;n="s";} if(n=="i"&&v==7&&window.XDomainRequest){v=8;} if(n=="io"){n="i";if(v>6)v=11;else if(v>5)v=10;else if(v>4)v=9;else if(v>3.1)v=8;else if(v>3)v=7;else v=9;} return{n:n,v:v,t:names[n]+" "+v,donotnotify:donotnotify};} this.op.browser=getBrowser();if(!this.op.test&&(!this.op.browser||!this.op.browser.n||this.op.browser.n=="x"||this.op.browser.donotnotify!==false||document.cookie.indexOf("browserupdateorg=pause")>-1||this.op.browser.v>this.op.vs[this.op.browser.n])) return;if(!this.op.test&&Math.round(Math.random()*100)<1){var i=new Image();i.src="//browser-update.org/viewcount.php?n="+this.op.browser.n+"&v="+this.op.browser.v+"&p="+escape(this.op.pageurl)+"&jsv="+jsv+"&vs="+myvs.i+","+myvs.f+","+myvs.o+","+myvs.s;} if(this.op.reminder>0){var d=new Date(new Date().getTime()+1000*3600*this.op.reminder);document.cookie='browserupdateorg=pause; expires='+d.toGMTString()+'; path=/';} var languages="xx,jp,sl,id,uk,rm,da,ca,sv,hu,fa,gl";if(languages.indexOf(ll)>0) this.op.url="http://browser-update.org/update.html#"+jsv+"@"+(location.hostname||"x");var tar="";if(this.op.newwindow) tar=' target="_blank"';function busprintf(){var args=arguments;var data=args[0];for(var k=1;kAprèn a actualitzar el navegador';else if(la=="tr") t='Tarayıcınız (%s) güncel değildir.. Eski versiyon olduğu için güvenlik açıkları vardır ve görmek istediğiniz bu web sitesinin ve diğer web sitelerinin tüm özelliklerini hatasız bir şekilde gösteremeyecektir. \ Tarayıcınızı nasıl güncelleyeceğinizi öğrenin!';else if(la=="fa") t='مرورگر شما (%s) از رده خارج شده می باشد. این مرورگر دارای مشکلات امنیتی شناخته شده می باشد و نمی تواند تمامی ویژگی های این وب سایت و دیگر وب سایت ها را به خوبی نمایش دهد. \ در خصوص گرفتن راهنمایی درخصوص نحوه ی به روز رسانی مرورگر خود اینجا کلیک کنید.';else if(la=="sv") t='Din webbläsare (%s) är föråldrad. Den har kända säkerhetshål och kan inte visa alla funktioner korrekt på denna och på andra webbsidor. Uppdatera din webbläsare idag';else if(la=="hu") t='Az Ön böngészője (%s) elavult. Ismert biztonsági hiányosságai vannak és esetlegesen nem tud minden funkciót megjeleníteni ezen vagy más weboldalakon. Itt talál bővebb információt a böngészőjének frissítésével kapcsolatban ';else if(la=="gl") t='O seu navegador (%s) está desactualizado. Ten coñecidos fallos de seguranza e podería non mostrar tódalas características deste e outros sitios web. Aprenda como pode actualizar o seu navegador';else if(la=="cs") t='Váš prohlížeč (%s) je zastaralý. Jsou známy bezpečnostní rizika a možná nedokáže zobrazit všechny prvky této a dalších webových stránek. Naučte se, jak aktualizovat svůj prohlížeč';else if(la=="he") t='הדפדפן שלך (%s) אינו מעודכן. יש לו בעיות אבטחה ידועות ועשוי לא להציג את כל התכונות של אתר זה ואתרים אחרים. למד כיצד לעדכן את הדפדפן שלך';else if(la=="nb") t='Nettleseren din (%s) er utdatert. Den har kjente sikkerhetshull og kan ikke vise alle funksjonene på denne og andre websider. Lær hvordan du kan oppdatere din nettleser';else if(la=="zh") t='您的浏览器(%s) 需要更新。该浏览器有诸多安全漏洞,无法显示本网站的所有功能。 了解如何更新浏览器';else if(la=="fi") t='Selaimesi (%s) on vanhentunut. Siinä on tunnettuja tietoturvaongelmia eikä se välttämättä tue kaikkia ominaisuuksia tällä tai muilla sivustoilla. Lue lisää siitä kuinka päivität selaimesi.';else if(la=="tr") t='Tarayıcınız (%s) güncel değil. Eski versiyon olduğu için güvenlik açıkları vardır ve görmek istediğiniz bu web sitesinin ve diğer web sitelerinin tüm özelliklerini hatasız bir şekilde gösteremeyecektir. Tarayıcınızı nasıl güncelleyebileceğinizi öğrenin';else if(la=="ro") t='Browser-ul (%s) tau este invechit. Detine probleme de securitate cunoscute si poate sa nu afiseze corect toate elementele acestui si altor site-uri. Invata cum sa-ti actualizezi browserul.';if(op.text) t=op.text;if(op["text_"+ll]) t=op["text_"+ll];this.op.text=busprintf(t,this.op.browser.t,' href="'+this.op.url+'"'+tar);var div=document.createElement("div");this.op.div=div;div.id="buorg";div.className="buorg";div.innerHTML='
'+this.op.text+'
×
';var sheet=document.createElement("style");var style=".buorg {position:absolute;position:fixed;z-index:111111;\ width:100%; top:0px; left:0px; \ border-bottom:1px solid #A29330; \ background:#FDF2AB no-repeat 13px center url(//browser-update.org/img/small/"+this.op.browser.n+".gif);\ text-align:left; cursor:pointer; \ font-family: Arial,Helvetica,sans-serif; color:#000; font-size: 12px;}\ .buorg div { padding:5px 36px 5px 40px; } \ .buorg a,.buorg a:visited {color:#E25600; text-decoration: underline;}\ #buorgclose { position: absolute; right: 6px; top:-2px; height: 20px; width: 12px; font-weight: bold;font-size:18px; padding:0; }";document.body.insertBefore(div,document.body.firstChild);document.getElementsByTagName("head")[0].appendChild(sheet);try{sheet.innerText=style;sheet.innerHTML=style;} catch(e){try{sheet.styleSheet.cssText=style;} catch(e){return;}} var me=this;div.onclick=function(){if(me.op.newwindow) window.open(me.op.url,"_blank");else window.location.href=/me.op.url;me.op.onclick(me.op);return false;};try{div.getElementsByTagName("a")[0].onclick=function(e){var e=e||window.event;if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=true;me.op.onclick(me.op);return true;};} catch(e){} var hm=document.getElementsByTagName("html")[0]||document.body;this.op.bodymt=hm.style.marginTop;hm.style.marginTop=(div.clientHeight)+"px";document.getElementById("buorgclose").onclick=function(e){var e=e||window.event;if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=true;me.op.div.style.display="none";hm.style.marginTop=me.op.bodymt;return true;};op.onshow(this.op);};var $buoop=$buoop||{};$bu=$buo($buoop);});if(navigator.appVersion.indexOf("MSIE 7.")===-1){(function(root,factory){if(typeof exports=='object')module.exports=factory() else if(typeof define=='function'&&define.amd)define(factory) else root.Spinner=factory()} (this,function(){"use strict";var prefixes=['webkit','Moz','ms','O'],animations={},useCssAnimations function createEl(tag,prop){var el=document.createElement(tag||'div'),n for(n in prop)el[n]=prop[n] return el} function ins(parent){for(var i=1,n=arguments.length;i>1)+'px'})} for(;i',attr)} sheet.addRule('.spin-vml','behavior:url(#default#VML)') Spinner.prototype.lines=function(el,o){var r=o.length+o.width,s=2*r function grp(){return css(vml('group',{coordsize:s+' '+s,coordorigin:-r+' '+-r}),{width:s,height:s})} var margin=-(o.width+o.length)*2+'px',g=css(grp(),{position:'absolute',top:margin,left:margin}),i function seg(i,dx,filter){ins(g,ins(css(grp(),{rotation:360/o.lines*i+'deg',left:~~dx}),ins(css(vml('roundrect',{arcsize:o.corners}),{width:r,height:o.width,left:o.radius,top:-o.width>>1,filter:filter}),vml('fill',{color:getColor(o.color,i),opacity:o.opacity}),vml('stroke',{opacity:0}))))} if(o.shadow) for(i=1;i<=o.lines;i++) seg(i,-2,'progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)') for(i=1;i<=o.lines;i++)seg(i) return ins(el,g)} Spinner.prototype.opacity=function(el,i,val,o){var c=el.firstChild o=o.shadow&&o.lines||0 if(c&&i+o';} var spinner;var spinnerWrapper=document.createElement('span');spinnerWrapper.className='ladda-spinner';button.appendChild(spinnerWrapper);var timer;var instance={start:function(){if(!spinner)spinner=createSpinner(button);button.setAttribute('disabled','');button.setAttribute('data-loading','');clearTimeout(timer);spinner.spin(spinnerWrapper);this.setProgress(0);return this;},startAfter:function(delay){clearTimeout(timer);timer=setTimeout(function(){instance.start();},delay);return this;},stop:function(){button.removeAttribute('disabled');button.removeAttribute('data-loading');clearTimeout(timer);if(spinner){timer=setTimeout(function(){spinner.stop();},1000);} return this;},toggle:function(){if(this.isLoading()){this.stop();} else{this.start();} return this;},setProgress:function(progress){progress=Math.max(Math.min(progress,1),0);var progressElement=button.querySelector('.ladda-progress');if(progress===0&&progressElement&&progressElement.parentNode){progressElement.parentNode.removeChild(progressElement);} else{if(!progressElement){progressElement=document.createElement('div');progressElement.className='ladda-progress';button.appendChild(progressElement);} progressElement.style.width=((progress||0)*button.offsetWidth)+'px';}},enable:function(){this.stop();return this;},disable:function(){this.stop();button.setAttribute('disabled','');return this;},isLoading:function(){return button.hasAttribute('data-loading');},remove:function(){clearTimeout(timer);button.removeAttribute('disabled','');button.removeAttribute('data-loading','');if(spinner){spinner.stop();spinner=null;} for(var i=0,len=ALL_INSTANCES.length;i32){height*=0.8;} if(button.hasAttribute('data-spinner-size')){height=parseInt(button.getAttribute('data-spinner-size'),10);} if(button.hasAttribute('data-spinner-color')){spinnerColor=button.getAttribute('data-spinner-color');} var lines=12,radius=height*0.2,length=radius*0.6,width=radius<7?2:3;return new Spinner({color:spinnerColor||'#fff',lines:lines,radius:radius,length:length,width:width,zIndex:'auto',top:'auto',left:'auto',className:''});} function toArray(nodes){var a=[];for(var i=0;i0)?styleload():arguments.callee.delay(30);})();};window.addEvent('domload',checkStyleload);})();Element.Events.styleload={onAdd:function(fn){if(Browser.stylesLoaded){fn.call(this);}}};window.addEvent('load',function(){window.fireEvent('siteload');});(function(){var FontResize={options:{interval_delay:50,font_size:32},scale:1,scale_step:'m',loaded:false,started:false,has_listener:false,start:function(){if(Browser.Engine.presto)return;this.element=new Element('div',{styles:{position:'absolute',top:0,left:-19999,visibility:'hidden','font-size':'xx-large','line-height':'1','font-family':'Arial'}}).set('html','
X
').inject(document.body);this.orig_height=this.options.font_size*5;this.old_height=this.orig_height;this.interval=this.check.periodical(this.options.interval_delay,this);this.check();window.addEvent('keydown',(function(){this.check.delay(1,this);}).bind(this));window.addEvent('mousewheel',(function(){this.check.delay(1,this);}).bind(this));},check:function(){this.new_height=this.element.getSize().y;if(this.old_height==this.new_height)return;this.old_height=this.new_height;this.scale=(this.new_height/this.orig_height);if(this.scale<0.80) this.scale_step='xs';else if(this.scale<1) this.scale_step='s';else if(this.scale==1) this.scale_step='m';else if(this.scale>1.25) this.scale_step='xl';else this.scale_step='l';window.fireEvent('fontresize',{scale:this.scale,scale_step:this.scale_step});}};if(Browser.Engine.trident&&navigator.appVersion.indexOf('MSIE 5')>-1){FontResize.options.font_size=48;} window.addEvent('domload',function(){FontResize.loaded=true;if(FontResize.has_listener){FontResize.start.bind(FontResize)();}});Element.Events.fontresize={onAdd:function(fn){FontResize.has_listener=true;if(FontResize.loaded&&!FontResize.started){FontResize.start.bind(FontResize)();}}};})();Element.implement({getValue:function(){if(this.tagName.toLowerCase()=='select'){return Element.getSelected(this).map(function(_opt){return _opt.value;})[0];} if(this.type=='radio'){var formElement=this.getParent('form');if(!formElement){return null;} var activeRadio=formElement.getElement('input[name="'+this.name+'"]:checked');return activeRadio?activeRadio.value:null;} return((this.type=='checkbox')&&!this.checked)?null:this.value;}});(function(){var checkChanged=function(_element){var elementValue=_element.getValue();elementValue=elementValue===null?'':(elementValue+'');if(_element._lastValueForValuechangeEvent!=elementValue){_element._lastValueForValuechangeEvent=elementValue;_element.fireEvent('valuechange',elementValue);}};Element.Events.valuechange={onAdd:function(fn){if(this.tagName.toLowerCase()!='input'&&this.tagName.toLowerCase()!='select'&&this.tagName.toLowerCase()!='textarea'){return;} if(!$defined(this._lastValueForValuechangeEvent)){this._lastValueForValuechangeEvent=this.getValue()===null?'':(this.getValue()+'');this.addEvents({'click':(function(){checkChanged(this)}).bind(this),'change':(function(){checkChanged(this)}).bind(this),'blur':(function(){checkChanged(this)}).bind(this),'focus':(function(){checkChanged(this)}).bind(this),'keyup':(function(){checkChanged(this)}).bind(this)});this._listenerForValuechangeEvent=checkChanged.periodical(3000,this,this);checkChanged.delay(10,this,this);}}};})();var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E0){E=" "+E}}else{if(B400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||JD){D=J}K.push(J)}if(ID){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?ML:(M<=I&&L<=I)?M>L:Mcufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;mO){O=K}if(I>N){N=I}if(K":4}},"<":{"d":"163,-26r-15,22r-129,-78r0,-16r129,-78r15,22r-114,62r0,4"},">":{"d":"163,-82r-130,78r-14,-22r114,-62r0,-4r-114,-62r14,-22r130,78r0,16","k":{">":4}}}});var Dropdown=new Class({'hideTime':300,'fixIESBB':true,'hideBoxOnHover':false,'setBoxMinWith':true,'initialize':function(obj,args){if(args){$each(args,function(value,key){this[key]=value;},this);} this.htmlMenu=document.id(obj);if(!this.htmlMenu){return;} this.htmlMenu.getElements('li').each((function(el){var ulBox=el.getElement('ul');if(ulBox){ulBox.setStyle('display','block');ulBox.getChildren()[0].addClass('first');ulBox.getChildren().getLast().addClass('last');}}).bind(this));this.htmlMenu.getElements('li')[0].addClass('first');this.htmlMenu.getElements('li').getLast().addClass('last');if('ontouchstart'in window){window.addEvent('touchstart',(function(e){this.touchStartPos=false;if(e&&e.target&&e.target.getParent&&!e.target.getParent('#'+this.htmlMenu.get('id'))){this.touchStartPos=[e.touches[0].pageX,e.touches[0].pageY];}}).bindWithEvent(this));window.addEvent('touchmove',(function(e){this.touchStartPos=false;}).bindWithEvent(this));window.addEvent('touchend',(function(e){if(this.touchStartPos){this.touchStartPos=false;this.htmlMenu.getElements('li').reverse().each((function(el){if(el.isActive){this.elOut(el);}}).bind(this));}}).bindWithEvent(this));} this.htmlMenu.getElements('li').each((function(el){if(el.getElements('ul').length>0){el.addEvent('mouseenter',(function(){$clear(el.timeOutFunc);this.elOver(el);}).bindWithEvent(this));if('ontouchstart'in window){el.addEvent('touchstart',(function(e){this.elOver(el);}).bindWithEvent(this));el.getElement('a').addEvent('click',(function(e){if(!el.getElement('ul').retrieve('openedFromTouch',false)){this.elOver(el,true);e.preventDefault();}}).bindWithEvent(this));} el.addEvent('mouseleave',(function(){el.timeOutFunc=this.elOut.delay(this.hideTime,this,el);}).bindWithEvent(this));maxwith=0;if(!(Browser.Engine.trident&&Browser.Engine.version>=5)){el.getElement('ul').setStyle('width',0);} if(!Browser.Engine.trident){el.getElement('ul').setStyle('display','table');} el.getElement('ul').getChildren().each(function(el2){maxwith=maxwith0){el.getElement('ul').setStyle('display','none');}}).bind(this));},'elOver':function(el,fromTouch){if(fromTouch){el.getElement('ul').store('openedFromTouch',true);} if(el.isActive){return;} el.getParent().getChildren().each(function(el2){if(el2.isActive){this.elOut(el2);}},this);el.isActive=true;el.getElement('a').addClass('hover');el.getElement('ul').setStyle('display','block');},'elOverLink':function(el){el.getParent().getChildren().each(function(el2){if(el2.isActive){this.elOut(el2);}},this);},'elOut':function(el){$clear(el.timeOutFunc);el.getElement('ul').store('openedFromTouch',false);if(!el.isActive){return;} el.getElement('ul').getChildren().each(function(el2){if(el2.isActive){this.elOut(el2);}},this);el.isActive=false;el.getElement('a').removeClass('hover');el.getElement('ul').setStyle('display','none');}});var ValidationRule=new Class({obscureValue:false,_value:null,_errors:[],getErrors:function(){return this._errors;},hasErrors:function(){return this._errors.length>0?true:false;},_addError:function(_messageKey){if($empty(_messageKey)){return;} this._errors.push(_messageKey);},_setValue:function(_value){this._value=_value;this._errors=[];}});var ValidationRuleAlpha=new Class({Extends:ValidationRule,_allowWhiteSpace:false,initialize:function(_allowWhiteSpace){this._allowWhiteSpace=$defined(_allowWhiteSpace)&&_allowWhiteSpace;},isValid:function(_value){var valueString=String(_value);this._setValue(valueString);if($empty(valueString)){this._addError('stringEmpty');return false;} if(valueString.test('[^A-ZÄÖÜäöüß'+(this._allowWhiteSpace?' ':'')+']','i')){this._addError('notAlpha');return false;} return true;}});var ValidationRuleAlphaNumeric=new Class({Extends:ValidationRule,_allowWhiteSpace:false,initialize:function(_allowWhiteSpace){this._allowWhiteSpace=$defined(_allowWhiteSpace)&&_allowWhiteSpace;},isValid:function(_value){var valueString=String(_value);this._setValue(valueString);if($empty(valueString)){this._addError('stringEmpty');return false;} if(valueString.test('[^0-9A-ZÄÖÜäöüß'+(this._allowWhiteSpace?' ':'')+']','i')){this._addError('notAlphaNumeric');return false;} return true;}});var ValidationRuleBetween=new Class({Extends:ValidationRule,allowWhiteSpace:false,min:false,max:false,inclusive:false,initialize:function(_min,_max,_inclusive){this.min=$defined(_min)?_min:false;this.max=$defined(_max)?_max:false;this.inclusive=$defined(_inclusive)?_inclusive:true;},setCompare:function(_firstValue,_secondValue){this.min=_firstValue;this.max=_secondValue;},isValid:function(_value){this._setValue(_value*1);if(this.inclusive){if(this.min>_value||_value>this.max){this._addError('notBetween');return false;}}else{if(this.min>=_value||_value>=this.max){this._addError('notBetweenStrict');return false;}} return true;}});var ValidationRuleCcnum=new Class({Extends:ValidationRule,isValid:function(_value){this._setValue(_value);_value=_value.split(' ').join('');if(_value!=(_value*1).toString()){this._addError('notDigit');return false;} var length=_value.length;if(length<13||length>19){this._addError('ccnumLength');return false;} var sum=0;var weight=2;for(var i=length-2;i>=0;i--){var digit=weight*_value[i];sum+=(digit/10).toInt()+(digit%10);weight=(weight%2)+1;} if((10-(sum%10))%10!=_value[length-1]){} return true;}});var ValidationRuleDigits=new Class({Extends:ValidationRule,isValid:function(_value){var valueString=String(_value).trim();this._setValue(valueString);if($empty(valueString)){this._addError('stringEmpty');return false;} if(valueString.test(/[^\d]/)){this._addError('notDigits');return false;} return true;}});var ValidationRuleEmailAddress=new Class({Extends:ValidationRule,isValid:function(_value){this._setValue(_value);if($empty(_value)){this._addError('stringEmpty');return false;} if(!_value.test('^[a-z0-9'+('.!#$%&\'*+-/=?^_`{|}~'.escapeRegExp())+']+@[^@]{2,}\\.[^@\\. /]{2,}$','i')){this._addError('emailAddressInvalid');return false;} return true;}});var ValidationRuleGreaterThan=new Class({Extends:ValidationRule,min:null,initialize:function(_min){this.min=_min;},setCompare:function(_firstValue){this.min=$defined(_firstValue)?_firstValue:null;},isValid:function(_value){this._setValue(_value);if(this.min>=_value*1){this._addError('notGreater');return false;} return true;}});var ValidationRuleHostname=new Class({Extends:ValidationRule,isValid:function(_value){this._setValue(_value);if($empty(_value)){this._addError('stringEmpty');return false;} if(!_value.test('^[^@]{2,}\\.[^@\\. /]{2,}$','i')){this._addError('hostnameInvalidHostname');return false;} return true;}});var ValidationRuleIdentical=new Class({Extends:ValidationRule,token:null,initialize:function(_token){this.token=$defined(_token)?_token:null;},setCompare:function(_firstValue){if($defined(_firstValue)){this.token=_firstValue;}},isValid:function(_value){this._setValue(_value);return true;}});var ValidationRuleInArray=new Class({Extends:ValidationRule,haystack:[],initialize:function(_haystack){this.haystack=!$defined(_haystack)?[]:(($type(_haystack)!='array')?_haystack.split(','):_haystack);},setCompare:function(_haystack){this.haystack=!$defined(_haystack)?[]:(($type(_haystack)!='array')?_haystack.split(','):_haystack);},isValid:function(_value){this._setValue(_value);if(!this.haystack.contains(_value)){this._addError('notInArray');return false;} return true;}});var ValidationRuleInt=new Class({Extends:ValidationRule,isValid:function(_value){_value=String(_value).trim();this._setValue(_value);if(_value!=_value.toInt().toString()){this._addError('notInt');return false;} return true;}});var ValidationRuleIp=new Class({Extends:ValidationRule,isValid:function(_value){_value=String(_value).trim();this._setValue(_value);if(_value.test('[^0-9\\.]','i')){this._addError('notIpAddress');return false;} var ipSections=_value.split('.');if(ipSections.length!=4){this._addError('notIpAddress');return false;} if(ipSections[0]==''||ipSections[0].toInt()<0||ipSections[0].toInt()>255||ipSections[1]==''||ipSections[1].toInt()<0||ipSections[1].toInt()>255||ipSections[2]==''||ipSections[2].toInt()<0||ipSections[2].toInt()>255||ipSections[3]==''||ipSections[3].toInt()<0||ipSections[3].toInt()>255){this._addError('notIpAddress');return false;} return true;}});var ValidationRuleLessThan=new Class({Extends:ValidationRule,max:null,initialize:function(_max){this.max=_max;},setCompare:function(_firstValue){this.max=$defined(_firstValue)?_firstValue:null;},isValid:function(_value){this._setValue(_value);if(this.max<=_value*1){this._addError('notLessThan');return false;} return true;}});var ValidationRuleNotEmpty=new Class({Extends:ValidationRule,isValid:function(_value){_value=String(_value).trim();this._setValue(_value);if(_value==''){this._addError('isEmpty');return false;} return true;}});var ValidationRuleRegex=new Class({Extends:ValidationRule,pattern:null,initialize:function(_pattern){this.pattern=_pattern;},setCompare:function(_firstValue){this.pattern=$defined(_firstValue)?_firstValue:null;},isValid:function(_value){this._setValue(_value);if($type(this.pattern)!='string'||!this.pattern.test('^/.*/i{0,1}g{0,1}$','i')){this._addError('invalidPattern');return false;} var pattern=this.pattern.split('/');pattern.shift();var params=pattern.pop();pattern=pattern.join('/');if(!_value.test(pattern,params)){this._addError('regexNotMatch');return false;} return true;}});var ValidationRuleStringLength=new Class({Extends:ValidationRule,min:false,max:false,initialize:function(_min,_max){this.min=$defined(_min)?_min:false;this.max=$defined(_max)?_max:false;},setCompare:function(_firstValue,_secondValue){this.min=_firstValue;this.max=_secondValue;},isValid:function(_value){_value=String(_value);this._setValue(_value);if(this.maxthis.max){this._addError('stringLengthTooLong');return false;} return true;}}); var Validator=new Class({Implements:Options,PASSWORD_PATTERN:'/^([A-Za-zöäüÖÄÜß0-9%&#!,;:|_<>$+*()"\-\.\'\?\@\=\{\}\[\\]\\\\/]{4,60})$/i',STREET_PATTERN:'/^(([A-Za-zöäüÖÄÜß0-9\\.\\-\\/ ]){3,80})$/i',TELEPHONE_NUMER_PATTERN:'/^(([0-9\\+\\.\\/\\-\\(\\) ]){6,40})$/i',_validationRules:[],_validationChain:[],_errorMessages:{},_controllerName:false,_errors:{},_form:null,_formElements:[],_triedToSubmit:false,options:{language:'de'},initialize:function(_options,_validationRules){if($defined(_options)){this.setOptions(_options);} if($defined(_validationRules)){this.parseValidationRules(_validationRules);}},hasErrors:function(){return this._errors.length>0?true:false;},getErrors:function(){return this._errors;},parseValidationRules:function(_validationRules){if(!$defined(_validationRules)||$type(_validationRules)!='array'){return;} this._validationRules=_validationRules;_validationRules.each(function(validationRule){var validationRuleParts=[];var validationRulePartsOptional=[];if(validationRule.contains(';')){validationRulePartsOptional=validationRule.substr(validationRule.indexOf(';')+1).split(';');validationRule=validationRule.substr(0,validationRule.indexOf(';'));} validationRuleParts=validationRule.split(',');var satisfiesIfConditions=true;while(validationRuleParts[0].substr(0,3)=='if:'){var condition=validationRuleParts[0].substr(3);var comparison="equal";var parts=[];if(condition.contains('!=')){parts=condition.split('!=');comparison="not_equal";} else{parts=condition.split('=');} var fieldToCheck=$parts[0];var valueToCheck=$parts[1];if(comparison=="equal"&&fields[fieldToCheck]!=valueToCheck){satisfiesIfConditions=false;break;} else if(comparison=="not_equal"&&fields[fieldToCheck]==valueToCheck){satisfiesIfConditions=false;break;} else{validationRuleParts.shift();}} if(!satisfiesIfConditions){return;} var requirement=validationRuleParts[0];var fieldName=validationRuleParts[1];var firstCompareFieldName=null;var secondCompareFieldName=null;if(validationRuleParts.length==5){firstCompareFieldName=validationRuleParts[2];secondCompareFieldName=validationRuleParts[3];var dateFlag=validationRuleParts[4];} else if(validationRuleParts.length==4){firstCompareFieldName=validationRuleParts[2];secondCompareFieldName=validationRuleParts[3];} else if(validationRuleParts.length==3){firstCompareFieldName=validationRuleParts[2];} var errorMessageKey=($defined(validationRulePartsOptional[0]))?validationRulePartsOptional[0]:'';var breakChainOnFailure=($defined(validationRulePartsOptional[1]))?(validationRulePartsOptional[1]=='true'):false;switch(requirement){case"required":this.addValidationRule(new ValidationRuleNotEmpty(),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"digits":this.addValidationRule(new ValidationRuleDigits(),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"alpha":var allowWhitespace=$defined(validationRulePartsOptional[2])?(validationRulePartsOptional[2]=='true'):false;this.addValidationRule(new ValidationRuleAlpha(allowWhitespace),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"alphaNumeric":var allowWhitespace=$defined(validationRulePartsOptional[2])?(validationRulePartsOptional[2]=='true'):false;this.addValidationRule(new ValidationRuleAlphaNumeric(allowWhitespace),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"stringLength":var min=$defined(validationRulePartsOptional[2])?validationRulePartsOptional[2].toInt():0;var max=$defined(validationRulePartsOptional[3])?validationRulePartsOptional[3].toInt():null;this.addValidationRule(new ValidationRuleStringLength(min,max),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"between":var min=$defined(validationRulePartsOptional[2])?validationRulePartsOptional[2].toInt():0;var max=$defined(validationRulePartsOptional[3])?validationRulePartsOptional[3].toInt():1;var inclusive=$defined(validationRulePartsOptional[4])?(validationRulePartsOptional[4]=='true'):true;this.addValidationRule(new ValidationRuleBetween(min,max,inclusive),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"identical":var token=$defined(validationRulePartsOptional[2])?validationRulePartsOptional[2]:null;this.addValidationRule(new ValidationRuleIdentical(token),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"int":this.addValidationRule(new ValidationRuleInt(),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"lessThan":var max=$defined(validationRulePartsOptional[2])?validationRulePartsOptional[2].toInt():0;this.addValidationRule(new ValidationRuleLessThan(max),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"greaterThan":var min=$defined(validationRulePartsOptional[2])?validationRulePartsOptional[2].toInt():0;this.addValidationRule(new ValidationRuleGreaterThan(min),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"inArray":var tokens=$defined(validationRulePartsOptional[2])?validationRulePartsOptional[2]:'array()';if(tokens.indexOf('array(')==0){tokens=eval('['+tokens.substr(6,tokens.length-7)+']');} var strict=$defined(validationRulePartsOptional[3])?validationRulePartsOptional[3]=='true':false;this.addValidationRule(new ValidationRuleInArray(tokens,strict),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"regex":var pattern=$defined(validationRulePartsOptional[2])?String(validationRulePartsOptional[2]):'';this.addValidationRule(new ValidationRuleRegex(pattern),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"ccnum":this.addValidationRule(new ValidationRuleCcnum(),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"email":this.addValidationRule(new ValidationRuleEmailAddress(),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"hostname":this.addValidationRule(new ValidationRuleHostname(),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"ip":this.addValidationRule(new ValidationRuleIp(),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"password":this.addValidationRule(new ValidationRuleRegex(this.PASSWORD_PATTERN),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"street":this.addValidationRule(new ValidationRuleRegex(this.STREET_PATTERN),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;case"telephoneNumber":this.addValidationRule(new ValidationRuleRegex(this.TELEPHONE_NUMER_PATTERN),fieldName,firstCompareFieldName,secondCompareFieldName,errorMessageKey,breakChainOnFailure);break;}},this);},addValidationRule:function(_ValidationRule,_fieldName,_errorMessageKey,_breakChainOnFailure){this._validationChain.push({'ValidationRule':_ValidationRule,'fieldName':_fieldName,'errorMessageKey':_errorMessageKey,'breakChainOnFailure':_breakChainOnFailure==true});},isValid:function(_values){if(!$defined(_values)){return false;} if(_values.length<1){return false;} if(this._validationChain.length<1){return true;} this._errors={};var result=true;this._validationChain.each(function(chainElement){var ValidationRule=chainElement.ValidationRule;if($defined(_values[chainElement.fieldName])){if(!ValidationRule.isValid(_values[chainElement.fieldName])){result=false;var errors=ValidationRule.getErrors();if(chainElement.errorMessageKey){this._addError(chainElement.fieldName,chainElement.errorMessageKey);} else{errors.each(function(error){this._addError(chainElement.fieldName,error);},this);} if(chainElement.breakChainOnFailure){return;}}} else{this._addError(chainElement.fieldName,'fieldNotSet');result=false;}},this);if(result){this._form.externalCheckFunctions=this._form.externalCheckFunctions||[];this._form.externalCheckFunctions.each(function(externalCheck){if(externalCheck()===false){result=false;return;}});} return result;},isValidSingle:function(_name,_value){if(!$defined(_name)||!$defined(_value)){return false;} if(this._validationChain.length<1){return true;} this._errors={};var result=true;this._validationChain.each(function(chainElement){var ValidationRule=chainElement.ValidationRule;if(chainElement.fieldName==_name){if(!ValidationRule.isValid(_value)){result=false;var errors=ValidationRule.getErrors();if(chainElement.errorMessageKey){this._addError(chainElement.fieldName,chainElement.errorMessageKey);} else{errors.each(function(error){this._addError(chainElement.fieldName,error);},this);}}}},this);return result;},_addError:function(_fieldName,_messageKey){if($empty(_fieldName)||$empty(_messageKey)){return;} if($defined(this._errors[_fieldName])){this._errors[_fieldName].push(_messageKey);} else{this._errors[_fieldName]=[_messageKey];}},watchForm:function(_form,_rules,_errorMessages,_controllerName){var self=this;this._errorMessages=_errorMessages;this._controllerName=_controllerName;if(!$defined(_form)){return;} _form=document.id(_form);if(!_form){return;} this.parseValidationRules(_rules);this._form=_form;this._form.miceValidatorObject=this;var formElements=_form.getElements('input, select, textarea');this._formElements=formElements;formElements.each(function(element){element.addEvent('valuechange',(function(){self.checkSingle(this);}).bindWithEvent(element));this.checkSingle(element);},this);_form.addEvent('submit',this.checkAll.bind(this));},checkAll:function(_event){var values={};this._formElements.each(function(el){if(!el.name||el.disabled)return;var value=el.getValue();$splat(value).each(function(val){if(typeof val!='undefined')values[el.name]=val;});});if(!this.isValid(values)){new Event(_event).stop();var errorMessageWrap=this._form.getPrevious('.errorMessageWrap');if(errorMessageWrap){if(!this.errorMessageElement){this.errorMessageElement=new Element('p',{'class':'errorMessage','text':"Bitte f\u00fcllen Sie das Formular komplett und korrekt aus"}).inject(errorMessageWrap);} window.scrollTo(window.getScroll().x,this.errorMessageElement.getPosition().y-10);} this._triedToSubmit=true;$each(this.getErrors(),function(value,name){this.setElementStatus(name,'invalid',value);},this);alert("Bitte f\u00fcllen Sie das Formular komplett und korrekt aus");for(name in this.getErrors()){var firstElement=this._form.getElement('input[name="'+name+'"],select[name="'+name+'"],textarea[name="'+name+'"]');if(firstElement&&typeof firstElement.focus=="function"){firstElement.focus();} break;} if(this._form.getElement('button[type="submit"]')){if(typeof Ladda=='object'){Ladda.stopAll();}}}},checkSingle:function(_element){var requiredField=false;this._validationChain.each(function(chainElement){if(chainElement.fieldName==_element.name){requiredField=true;}});if(!requiredField){return;} var value=_element.getValue();if((!value||$empty(value))&&!this._triedToSubmit){this.setElementStatus(_element,null);return;} var valid=this.isValidSingle(_element.name,value);if(valid){this.setElementStatus(_element,'valid');} else{this.setElementStatus(_element,'invalid',this.getErrors()[_element.name]);}},setElementStatus:function(_element,_status,_message){if($type(_element)=='string'){_element=this._form.getElement('input[name="'+_element+'"],select[name="'+_element+'"],textarea[name="'+_element+'"]');} if($defined(_status)&&(_status=='invalid'||_status=='valid')){_element.addClass(_status=='invalid'?'invalid':'valid');_element.removeClass(_status=='invalid'?'valid':'invalid');if(_element.getParent().tagName.toLowerCase()=='p'){_element.getParent().addClass(_status=='invalid'?'invalid':'valid');_element.getParent().removeClass(_status=='invalid'?'valid':'invalid');}} else{_element.removeClass('invalid');_element.removeClass('valid');if(_element.getParent().tagName.toLowerCase()=='p'){_element.getParent().removeClass('invalid');_element.getParent().removeClass('valid');}} if($defined(_message)&&!$empty(_message)&&_element.getParent().tagName.toLowerCase()=='p'){_message=this.getErrorMessage(_message,_element.get('name'),this._controllerName,'both');if(!_element.getParent().getElement('span.errorMsg')){new Element('span').addClass('errorMsg').inject(_element.getParent());} var errorMsgElement=_element.getParent().getElement('span.errorMsg');errorMsgElement.set('html',_message)} else if(_element.getParent().getElement('span.errorMsg')){_element.getParent().getElement('span.errorMsg').dispose();}},getErrorMessage:function(_messageKey,_fieldName,_section,_type){if(!$defined(this._errorMessages)){return _messageKey;} var self=this;if(typeof _section=='undefined'){_section='nosection';} if(typeof _type=='undefined'){_type='both';} var message='';if(typeof _messageKey=='undefined'){return message;} _messageKey=String(_messageKey);var fallbackStackSkeleton=[];if(typeof _fieldName=='string'){fallbackStackSkeleton.push(_fieldName.capitalize()+_messageKey.capitalize());fallbackStackSkeleton.push(_fieldName.capitalize());} fallbackStackSkeleton.push(_messageKey.capitalize());var fallbackStack=[];if(['validationError','error'].contains(_type)){var possibePrefixes=[_type];} else{var possibePrefixes=['validationError','error'];} possibePrefixes.each(function(prefix){fallbackStackSkeleton.each(function(suffix){fallbackStack.push(prefix+suffix);});fallbackStack.push(prefix+'Default');});if(['validationError','error'].contains(_type)){var possibleMainSection=[_type+'s'];} else{var possibleMainSection=['validationErrors','errors'];} fallbackStack.each(function(key){if(message!=''){return;} possibleMainSection.each(function(mainSection){if(message!=''){return;} if($defined(self._errorMessages[_section])&&$defined(self._errorMessages[_section][mainSection])&&$defined(self._errorMessages[_section][mainSection][key])){message=self._errorMessages[_section][mainSection][key];return;} if($defined(self._errorMessages[mainSection])&&$defined(self._errorMessages[mainSection][key])){message=self._errorMessages[mainSection][key];return;}});});return message;}});var Slideshow=new Class({Implements:[Options,Events],options:{slidetime:1.2,swaptime:5,transition:Fx.Transitions.linear,path:'',imgs:[],random:false,copyrights:[],copyright_element:false},initialize:function(obj,options){this.obj=document.id(obj);this.setOptions(options);this.wrapper=new Element('div',{id:this.obj.get('id'),'class':this.obj.get('class')}).inject(this.obj,'before');this.obj.set('id','');if(this.wrapper.getStyle('position')!="absolute"){this.wrapper.setStyle('position','relative');} this.obj.set('class','');this.obj.inject(this.wrapper);this.obj2=new Element('img').inject(this.wrapper);this.obj.setStyles({position:'absolute',top:0,left:0});this.obj2.setStyles({position:'absolute',top:0,left:0});this.act_number=0;this.slider=new Fx.Tween(this.obj2,{property:'opacity',duration:this.options.slidetime*1000,transition:this.options.transition});this.slider.set(0);this.inter=false;this.first_run=true;this.was_random=new Array();for(i=0;i=2){for(i=0;i<200;i++){var r=Math.floor(Math.random()*(this.options.imgs.length));if(r!=this.act_number){var flag=false;for(j=0;j=this.options.imgs.length){this.was_random=new Array();} this.act_number=r;} else{this.act_number=0;}} else{this.act_number++;if(this.act_number>this.options.imgs.length-1){this.act_number=0;}} this.obj2.set('src',this.options.path+this.options.imgs[this.act_number]);},setCopyright:function(){if(this.options.copyright_element){if(this.options.copyrights[this.act_number]&&this.options.copyrights[this.act_number]!=""){this.options.copyright_element.set('html',this.options.copyrights[this.act_number]);this.options.copyright_element.setStyle('visibility','visible');} else{this.options.copyright_element.setStyle('visibility','hidden');this.options.copyright_element.set('html','');}}},afterRun:function(){this.obj.set('src',this.obj2.get('src'));this.slider.set.delay(100,this.slider,0);(function(){this.isPlaying=false;}).delay(100,this);},imgOnLoad:function(){if(this.inter==false){if(this.first_run){this.isPlaying=true;this.slider.set(1);this.setCopyright();this.afterRun();this.inter=this.run.delay((this.options.swaptime-this.options.slidetime)*1000,this);} else{this.fireEvent('beforeSlide',this.act_number);this.fireEvent.delay(this.options.slidetime*500,this,['slide',this.act_number]);this.fireEvent.delay(this.options.slidetime*1000,this,['afterSlide',this.act_number]);this.isPlaying=true;this.inter=this.run.delay(this.options.swaptime*1000,this);this.slider.start(1);this.afterRun.delay((this.options.slidetime*1000)+100,this);this.setCopyright.delay(this.options.slidetime*1000/2,this);}}},goTo:function(offset,absolute){if(this.isPlaying){return;} if(this.inter){$clear(this.inter);this.inter=false;} if(absolute){this.act_number=offset;} else{this.act_number+=offset;} if(this.act_number>=this.options.imgs.length){this.act_number-=this.options.imgs.length;} else if(this.act_number<0){this.act_number+=this.options.imgs.length;} this.first_run=false;this.obj2.set('src',this.options.path+this.options.imgs[this.act_number]);}});var locale="de";window.addEvent('domload',function(){if((typeof isCms=="undefined"||!isCms)&&(typeof isAdmin=="undefined"||!isAdmin)){Cufon.replace('#content h1',{fontFamily:'candara'});Cufon.replace('#content h2',{fontFamily:'candara'});Cufon.now();if(Browser.Plugins.Flash.version>=8){$(document.body).addClass('hasFlash');} $$('a[rel^=external], form[rel^=external], a[rel^=nofollow], form[rel^=nofollow]').each(function(element){element.set('target','_blank');element.addClass('external');});if($$('a[rel^=imgpopup]')){var myImgSection=[];$$('a[rel^=imgpopup]').each(function(element){var elm={url:element.get('href'),caption:element.getElement('.caption')?element.getElement('.caption').get('html'):element.get('title'),element:element.get('rel').test('^imgpopup\\[[0-9]+,[0-9]+\\]$','gi')?'iframe':'img'} if(elm.element=='iframe'){elm.width=element.get('rel').split('[')[1].split(']')[0].split(',')[0];elm.height=element.get('rel').split('[')[1].split(']')[0].split(',')[1];} myImgSection.push(elm);element.addEvent('click',function(e){myImgPopup.start(element.get('href'));new Event(e).stop();});});myImgPopup.addSection(myImgSection);} $$('#content a.image, #content span.image').each(function(element){new Element('span').addClass('zoom').inject(element);});if($$('form select[name=quantityChildren]').length>0){$$('form').each(function(form){if(form.getElements('select[name=quantityChildren]').length>0){form.getElement('select[name=quantityChildren]').addEvent('valuechange',function(value){var i;for(i=1;i<=value;i++){form.getElement('select[name=age'+i+'Child]').getParent().setStyle('display','');} for(i=i;i<11;i++){form.getElement('select[name=age'+i+'Child]').getParent().setStyle('display','none');}});}});}}});