jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});
$.fn.dropdown=function(){$(this).hover(function(){$(this).addClass("hover");$('> .dir',this).addClass("open");$('ul:first',this).css('visibility','visible');},function(){$(this).removeClass("hover");$('.open',this).removeClass("open");$('ul:first',this).css('visibility','hidden');});}
$(document).ready(function(){$("ul.dropdown li").dropdown();});
// ColorBox v1.3.15 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2010 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(b,ib){var t="none",M="LoadedContent",c=false,v="resize.",o="y",q="auto",e=true,L="nofollow",m="x";function f(a,c){a=a?' id="'+i+a+'"':"";c=c?' style="'+c+'"':"";return b("<div"+a+c+"/>")}function p(a,b){b=b===m?n.width():n.height();return typeof a==="string"?Math.round(/%/.test(a)?b/100*parseInt(a,10):parseInt(a,10)):a}function U(b){return a.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(b)}function cb(a){for(var c in a)if(b.isFunction(a[c])&&c.substring(0,2)!=="on")a[c]=a[c].call(l);a.rel=a.rel||l.rel||L;a.href=a.href||b(l).attr("href");a.title=a.title||l.title;return a}function w(c,a){a&&a.call(l);b.event.trigger(c)}function jb(){var b,e=i+"Slideshow_",c="click."+i,f,k;if(a.slideshow&&h[1]){f=function(){F.text(a.slideshowStop).unbind(c).bind(V,function(){if(g<h.length-1||a.loop)b=setTimeout(d.next,a.slideshowSpeed)}).bind(W,function(){clearTimeout(b)}).one(c+" "+N,k);j.removeClass(e+"off").addClass(e+"on");b=setTimeout(d.next,a.slideshowSpeed)};k=function(){clearTimeout(b);F.text(a.slideshowStart).unbind([V,W,N,c].join(" ")).one(c,f);j.removeClass(e+"on").addClass(e+"off")};a.slideshowAuto?f():k()}}function db(c){if(!O){l=c;a=cb(b.extend({},b.data(l,r)));h=b(l);g=0;if(a.rel!==L){h=b("."+G).filter(function(){return (b.data(this,r).rel||this.rel)===a.rel});g=h.index(l);if(g===-1){h=h.add(l);g=h.length-1}}if(!u){u=D=e;j.show();if(a.returnFocus)try{l.blur();b(l).one(eb,function(){try{this.focus()}catch(a){}})}catch(f){}x.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":q}).show();a.w=p(a.initialWidth,m);a.h=p(a.initialHeight,o);d.position(0);X&&n.bind(v+P+" scroll."+P,function(){x.css({width:n.width(),height:n.height(),top:n.scrollTop(),left:n.scrollLeft()})}).trigger("scroll."+P);w(fb,a.onOpen);Y.add(H).add(I).add(F).add(Z).hide();ab.html(a.close).show()}d.load(e)}}var gb={transition:"elastic",speed:300,width:c,initialWidth:"600",innerWidth:c,maxWidth:c,height:c,initialHeight:"450",innerHeight:c,maxHeight:c,scalePhotos:e,scrolling:e,inline:c,html:c,iframe:c,photo:c,href:c,title:c,rel:c,opacity:.9,preloading:e,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:c,returnFocus:e,loop:e,slideshow:c,slideshowAuto:e,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:c,onLoad:c,onComplete:c,onCleanup:c,onClosed:c,overlayClose:e,escKey:e,arrowKey:e},r="colorbox",i="cbox",fb=i+"_open",W=i+"_load",V=i+"_complete",N=i+"_cleanup",eb=i+"_closed",Q=i+"_purge",hb=i+"_loaded",E=b.browser.msie&&!b.support.opacity,X=E&&b.browser.version<7,P=i+"_IE6",x,j,A,s,bb,T,R,S,h,n,k,J,K,Z,Y,F,I,H,ab,B,C,y,z,l,g,a,u,D,O=c,d,G=i+"Element";d=b.fn[r]=b[r]=function(c,f){var a=this,d;if(!a[0]&&a.selector)return a;c=c||{};if(f)c.onComplete=f;if(!a[0]||a.selector===undefined){a=b("<a/>");c.open=e}a.each(function(){b.data(this,r,b.extend({},b.data(this,r)||gb,c));b(this).addClass(G)});d=c.open;if(b.isFunction(d))d=d.call(a);d&&db(a[0]);return a};d.init=function(){var l="hover",m="clear:left";n=b(ib);j=f().attr({id:r,"class":E?i+"IE":""});x=f("Overlay",X?"position:absolute":"").hide();A=f("Wrapper");s=f("Content").append(k=f(M,"width:0; height:0; overflow:hidden"),K=f("LoadingOverlay").add(f("LoadingGraphic")),Z=f("Title"),Y=f("Current"),I=f("Next"),H=f("Previous"),F=f("Slideshow").bind(fb,jb),ab=f("Close"));A.append(f().append(f("TopLeft"),bb=f("TopCenter"),f("TopRight")),f(c,m).append(T=f("MiddleLeft"),s,R=f("MiddleRight")),f(c,m).append(f("BottomLeft"),S=f("BottomCenter"),f("BottomRight"))).children().children().css({"float":"left"});J=f(c,"position:absolute; width:9999px; visibility:hidden; display:none");b("body").prepend(x,j.append(A,J));s.children().hover(function(){b(this).addClass(l)},function(){b(this).removeClass(l)}).addClass(l);B=bb.height()+S.height()+s.outerHeight(e)-s.height();C=T.width()+R.width()+s.outerWidth(e)-s.width();y=k.outerHeight(e);z=k.outerWidth(e);j.css({"padding-bottom":B,"padding-right":C}).hide();I.click(d.next);H.click(d.prev);ab.click(d.close);s.children().removeClass(l);b("."+G).live("click",function(a){if(!(a.button!==0&&typeof a.button!=="undefined"||a.ctrlKey||a.shiftKey||a.altKey)){a.preventDefault();db(this)}});x.click(function(){a.overlayClose&&d.close()});b(document).bind("keydown",function(b){if(u&&a.escKey&&b.keyCode===27){b.preventDefault();d.close()}if(u&&a.arrowKey&&!D&&h[1])if(b.keyCode===37&&(g||a.loop)){b.preventDefault();H.click()}else if(b.keyCode===39&&(g<h.length-1||a.loop)){b.preventDefault();I.click()}})};d.remove=function(){j.add(x).remove();b("."+G).die("click").removeData(r).removeClass(G)};d.position=function(f,d){function b(a){bb[0].style.width=S[0].style.width=s[0].style.width=a.style.width;K[0].style.height=K[1].style.height=s[0].style.height=T[0].style.height=R[0].style.height=a.style.height}var e,h=Math.max(document.documentElement.clientHeight-a.h-y-B,0)/2+n.scrollTop(),g=Math.max(n.width()-a.w-z-C,0)/2+n.scrollLeft();e=j.width()===a.w+z&&j.height()===a.h+y?0:f;A[0].style.width=A[0].style.height="9999px";j.dequeue().animate({width:a.w+z,height:a.h+y,top:h,left:g},{duration:e,complete:function(){b(this);D=c;A[0].style.width=a.w+z+C+"px";A[0].style.height=a.h+y+B+"px";d&&d()},step:function(){b(this)}})};d.resize=function(b){if(u){b=b||{};if(b.width)a.w=p(b.width,m)-z-C;if(b.innerWidth)a.w=p(b.innerWidth,m);k.css({width:a.w});if(b.height)a.h=p(b.height,o)-y-B;if(b.innerHeight)a.h=p(b.innerHeight,o);if(!b.innerHeight&&!b.height){b=k.wrapInner("<div style='overflow:auto'></div>").children();a.h=b.height();b.replaceWith(b.children())}k.css({height:a.h});d.position(a.transition===t?0:a.speed)}};d.prep=function(m){var c="hidden";function l(s){var p,f,m,c,l=h.length,q=a.loop;d.position(s,function(){function s(){E&&j[0].style.removeAttribute("filter")}if(u){E&&o&&k.fadeIn(100);k.show();w(hb);Z.show().html(a.title);if(l>1){typeof a.current==="string"&&Y.html(a.current.replace(/\{current\}/,g+1).replace(/\{total\}/,l)).show();I[q||g<l-1?"show":"hide"]().html(a.next);H[q||g?"show":"hide"]().html(a.previous);p=g?h[g-1]:h[l-1];m=g<l-1?h[g+1]:h[0];a.slideshow&&F.show();if(a.preloading){c=b.data(m,r).href||m.href;f=b.data(p,r).href||p.href;c=b.isFunction(c)?c.call(m):c;f=b.isFunction(f)?f.call(p):f;if(U(c))b("<img/>")[0].src=c;if(U(f))b("<img/>")[0].src=f}}K.hide();a.transition==="fade"?j.fadeTo(e,1,function(){s()}):s();n.bind(v+i,function(){d.position(0)});w(V,a.onComplete)}})}if(u){var o,e=a.transition===t?0:a.speed;n.unbind(v+i);k.remove();k=f(M).html(m);k.hide().appendTo(J.show()).css({width:function(){a.w=a.w||k.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?q:c}).css({height:function(){a.h=a.h||k.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(s);J.hide();b("#"+i+"Photo").css({cssFloat:t,marginLeft:q,marginRight:q});X&&b("select").not(j.find("select")).filter(function(){return this.style.visibility!==c}).css({visibility:c}).one(N,function(){this.style.visibility="inherit"});a.transition==="fade"?j.fadeTo(e,0,function(){l(0)}):l(e)}};d.load=function(u){var n,c,s,q=d.prep;D=e;l=h[g];u||(a=cb(b.extend({},b.data(l,r))));w(Q);w(W,a.onLoad);a.h=a.height?p(a.height,o)-y-B:a.innerHeight&&p(a.innerHeight,o);a.w=a.width?p(a.width,m)-z-C:a.innerWidth&&p(a.innerWidth,m);a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=p(a.maxWidth,m)-z-C;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=p(a.maxHeight,o)-y-B;a.mh=a.h&&a.h<a.mh?a.h:a.mh}n=a.href;K.show();if(a.inline){f().hide().insertBefore(b(n)[0]).one(Q,function(){b(this).replaceWith(k.children())});q(b(n))}else if(a.iframe){j.one(hb,function(){var c=b("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];c.name=i+ +new Date;c.src=a.href;if(!a.scrolling)c.scrolling="no";if(E)c.allowtransparency="true";b(c).appendTo(k).one(Q,function(){c.src="//about:blank"})});q(" ")}else if(a.html)q(a.html);else if(U(n)){c=new Image;c.onload=function(){var e;c.onload=null;c.id=i+"Photo";b(c).css({border:t,display:"block",cssFloat:"left"});if(a.scalePhotos){s=function(){c.height-=c.height*e;c.width-=c.width*e};if(a.mw&&c.width>a.mw){e=(c.width-a.mw)/c.width;s()}if(a.mh&&c.height>a.mh){e=(c.height-a.mh)/c.height;s()}}if(a.h)c.style.marginTop=Math.max(a.h-c.height,0)/2+"px";h[1]&&(g<h.length-1||a.loop)&&b(c).css({cursor:"pointer"}).click(d.next);if(E)c.style.msInterpolationMode="bicubic";setTimeout(function(){q(c)},1)};setTimeout(function(){c.src=n},1)}else n&&J.load(n,function(d,c,a){q(c==="error"?"Request unsuccessful: "+a.statusText:b(this).children())})};d.next=function(){if(!D){g=g<h.length-1?g+1:0;d.load()}};d.prev=function(){if(!D){g=g?g-1:h.length-1;d.load()}};d.close=function(){if(u&&!O){O=e;u=c;w(N,a.onCleanup);n.unbind("."+i+" ."+P);x.fadeTo("fast",0);j.stop().fadeTo("fast",0,function(){w(Q);k.remove();j.add(x).css({opacity:1,cursor:q}).hide();setTimeout(function(){O=c;w(eb,a.onClosed)},1)})}};d.element=function(){return b(l)};d.settings=gb;b(d.init)})(jQuery,this);

jQuery(function($){$.datepicker.regional['de']={closeText:'schließen',prevText:'&#x3c;zurück',nextText:'Vor&#x3e;',currentText:'heute',monthNames:['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],monthNamesShort:['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],dayNames:['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],dayNamesShort:['So','Mo','Di','Mi','Do','Fr','Sa'],dayNamesMin:['So','Mo','Di','Mi','Do','Fr','Sa'],weekHeader:'Wo',dateFormat:'dd.mm.yy',firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:''};$.datepicker.setDefaults($.datepicker.regional['de']);});
(function($){$.fn.extend({getUniqueId:function(p){return p+new Date().getTime();},accessibleTabs:function(config){var defaults={wrapperClass:'content',currentClass:'current',tabhead:'h4',tabbody:'.tabbody',fx:'show',fxspeed:'normal',currentInfoText:'current tab: ',currentInfoPosition:'prepend',currentInfoClass:'current-info'};var options=$.extend(defaults,config);var o=this;return this.each(function(){var el=$(this);var list='';var contentAnchor=o.getUniqueId('accessibletabscontent');var tabsAnchor=o.getUniqueId('accessibletabs');$(el).wrapInner('<div class="'+options.wrapperClass+'"></div>');$(el).find(options.tabhead).each(function(i){var id='';if(i===0){id=' id="'+tabsAnchor+'"';}
list+='<li><a'+id+' href="#'+contentAnchor+'">'+$(this).text()+'</a></li>';$(this).remove();});$(el).prepend('<ul class="tabnav">'+list+'</ul>');$(el).find(options.tabbody).hide();$(el).find(options.tabbody+':first').show().before('<'+options.tabhead+'><a tabindex="0" class="accessibletabsanchor" name="'+contentAnchor+'" id="'+contentAnchor+'">'+$(el).find("ul.tabnav>li:first").text()+'</a></'+options.tabhead+'>');$(el).find("ul.tabnav>li:first").addClass(options.currentClass).find('a')[options.currentInfoPosition]('<span class="'+options.currentInfoClass+'">'+options.currentInfoText+'</span>');$(el).find('ul.tabnav>li>a').each(function(i){$(this).click(function(event){event.preventDefault();$(el).find('ul.tabnav>li.current').removeClass(options.currentClass).find("span."+options.currentInfoClass).remove();$(this).blur();$(el).find(options.tabbody+':visible').hide();$(el).find(options.tabbody).eq(i)[options.fx](options.fxspeed);$('#'+contentAnchor).text($(this).text()).focus();$(this)[options.currentInfoPosition]('<span class="'+options.currentInfoClass+'">'+options.currentInfoText+'</span>').parent().addClass(options.currentClass);});});});}});})(jQuery);
﻿
new function($){$.fn.placeholder=function(settings){settings=settings||{};var key=settings.dataKey||"placeholderValue";var attr=settings.attr||"placeholder";var className=settings.className||"placeholder";var values=settings.values||[];var block=settings.blockSubmit||false;var blank=settings.blankSubmit||false;var submit=settings.onSubmit||false;var value=settings.value||"";var position=settings.cursor_position||0;return this.filter(":input").each(function(index){$.data(this,key,values[index]||$(this).attr(attr));}).each(function(){if($.trim($(this).val())==="")
$(this).addClass(className).val($.data(this,key));}).focus(function(){if($.trim($(this).val())===$.data(this,key))
$(this).removeClass(className).val(value)
if($.fn.setCursorPosition){$(this).setCursorPosition(position);}}).blur(function(){if($.trim($(this).val())===value)
$(this).addClass(className).val($.data(this,key));}).each(function(index,elem){if(block)
new function(e){$(e.form).submit(function(){return $.trim($(e).val())!=$.data(e,key)});}(elem);else if(blank)
new function(e){$(e.form).submit(function(){if($.trim($(e).val())==$.data(e,key))
$(e).removeClass(className).val("");return true;});}(elem);else if(submit)
new function(e){$(e.form).submit(submit);}(elem);});};}(jQuery);
(function($){$.fn.nivoSlider=function(options){var settings=$.extend({},$.fn.nivoSlider.defaults,options);return this.each(function(){var vars={currentSlide:0,currentImage:'',totalSlides:0,randAnim:'',running:false,paused:false,stop:false};var slider=$(this);slider.data('nivo:vars',vars);slider.css('position','relative');slider.addClass('nivoSlider');var kids=slider.children();kids.each(function(){var child=$(this);var link='';if(!child.is('img')){if(child.is('a')){child.addClass('nivo-imageLink');link=child;}
child=child.find('img:first');}
var childWidth=child.width();if(childWidth==0)childWidth=child.attr('width');var childHeight=child.height();if(childHeight==0)childHeight=child.attr('height');if(childWidth>slider.width()){slider.width(childWidth);}
if(childHeight>slider.height()){slider.height(childHeight);}
if(link!=''){link.css('display','none');}
child.css('display','none');vars.totalSlides++;});if(settings.startSlide>0){if(settings.startSlide>=vars.totalSlides)settings.startSlide=vars.totalSlides-1;vars.currentSlide=settings.startSlide;}
if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide]);}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first');}
if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block');}
slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat');for(var i=0;i<settings.slices;i++){var sliceWidth=Math.round(slider.width()/settings.slices);if(i==settings.slices-1){slider.append($('<div class="nivo-slice"></div>').css({left:(sliceWidth*i)+'px',width:(slider.width()-(sliceWidth*i))+'px'}));}else{slider.append($('<div class="nivo-slice"></div>').css({left:(sliceWidth*i)+'px',width:sliceWidth+'px'}));}}
slider.append($('<div class="nivo-caption"><p></p></div>').css({display:'none',opacity:settings.captionOpacity}));if(vars.currentImage.attr('title')!=''){var title=vars.currentImage.attr('title');if(title.substr(0,1)=='#')title=$(title).html();$('.nivo-caption p',slider).html(title);$('.nivo-caption',slider).fadeIn(settings.animSpeed);}
var timer=0;if(!settings.manualAdvance&&kids.length>1){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}
if(settings.directionNav){slider.append('<div class="nivo-directionNav"><a class="nivo-prevNav">Prev</a><a class="nivo-nextNav">Next</a></div>');if(settings.directionNavHide){$('.nivo-directionNav',slider).hide();slider.hover(function(){$('.nivo-directionNav',slider).show();},function(){$('.nivo-directionNav',slider).hide();});}
$('a.nivo-prevNav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev');});$('a.nivo-nextNav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next');});}
if(settings.controlNav){var nivoControl=$('<div class="nivo-controlNav"></div>');slider.append(nivoControl);for(var i=0;i<kids.length;i++){if(settings.controlNavThumbs){var child=kids.eq(i);if(!child.is('img')){child=child.find('img:first');}
if(settings.controlNavThumbsFromRel){nivoControl.append('<a class="nivo-control" rel="'+i+'"><img src="'+child.attr('rel')+'" alt="" /></a>');}else{nivoControl.append('<a class="nivo-control" rel="'+i+'"><img src="'+child.attr('src').replace(settings.controlNavThumbsSearch,settings.controlNavThumbsReplace)+'" alt="" /></a>');}}else{nivoControl.append('<a class="nivo-control" rel="'+i+'">'+(i+1)+'</a>');}}
$('.nivo-controlNav a:eq('+vars.currentSlide+')',slider).addClass('active');$('.nivo-controlNav a',slider).live('click',function(){if(vars.running)return false;if($(this).hasClass('active'))return false;clearInterval(timer);timer='';slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat');vars.currentSlide=$(this).attr('rel')-1;nivoRun(slider,kids,settings,'control');});}
if(settings.keyboardNav){$(window).keypress(function(event){if(event.keyCode=='37'){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev');}
if(event.keyCode=='39'){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next');}});}
if(settings.pauseOnHover){slider.hover(function(){vars.paused=true;clearInterval(timer);timer='';},function(){vars.paused=false;if(timer==''&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}});}
slider.bind('nivo:animFinished',function(){vars.running=false;$(kids).each(function(){if($(this).is('a')){$(this).css('display','none');}});if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block');}
if(timer==''&&!vars.paused&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}
settings.afterChange.call(this);});});function nivoRun(slider,kids,settings,nudge){var vars=slider.data('nivo:vars');if((!vars||vars.stop)&&!nudge)return false;settings.beforeChange.call(this);if(!nudge){slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat');}else{if(nudge=='prev'){slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat');}
if(nudge=='next'){slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat');}}
vars.currentSlide++;if(vars.currentSlide==vars.totalSlides){vars.currentSlide=0;settings.slideshowEnd.call(this);}
if(vars.currentSlide<0)vars.currentSlide=(vars.totalSlides-1);if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide]);}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first');}
if(settings.controlNav){$('.nivo-controlNav a',slider).removeClass('active');$('.nivo-controlNav a:eq('+vars.currentSlide+')',slider).addClass('active');}
if(vars.currentImage.attr('title')!=''){var title=vars.currentImage.attr('title');if(title.substr(0,1)=='#')title=$(title).html();if($('.nivo-caption',slider).css('display')=='block'){$('.nivo-caption p',slider).fadeOut(settings.animSpeed,function(){$(this).html(title);$(this).fadeIn(settings.animSpeed);});}else{$('.nivo-caption p',slider).html(title);}
$('.nivo-caption',slider).fadeIn(settings.animSpeed);}else{$('.nivo-caption',slider).fadeOut(settings.animSpeed);}
var i=0;$('.nivo-slice',slider).each(function(){var sliceWidth=Math.round(slider.width()/settings.slices);$(this).css({height:'0px',opacity:'0',background:'url('+vars.currentImage.attr('src')+') no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+'px 0%'});i++;});if(settings.effect=='random'){var anims=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade");vars.randAnim=anims[Math.floor(Math.random()*(anims.length+1))];if(vars.randAnim==undefined)vars.randAnim='fade';}
if(settings.effect.indexOf(',')!=-1){var anims=settings.effect.split(',');vars.randAnim=$.trim(anims[Math.floor(Math.random()*anims.length)]);}
vars.running=true;if(settings.effect=='sliceDown'||settings.effect=='sliceDownRight'||vars.randAnim=='sliceDownRight'||settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft'){var timeBuff=0;var i=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);slice.css('top','0px');if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=50;i++;});}
else if(settings.effect=='sliceUp'||settings.effect=='sliceUpRight'||vars.randAnim=='sliceUpRight'||settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft'){var timeBuff=0;var i=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);slice.css('bottom','0px');if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=50;i++;});}
else if(settings.effect=='sliceUpDown'||settings.effect=='sliceUpDownRight'||vars.randAnim=='sliceUpDown'||settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft'){var timeBuff=0;var i=0;var v=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);if(i==0){slice.css('top','0px');i++;}else{slice.css('bottom','0px');i=0;}
if(v==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=50;v++;});}
else if(settings.effect=='fold'||vars.randAnim=='fold'){var timeBuff=0;var i=0;$('.nivo-slice',slider).each(function(){var slice=$(this);var origWidth=slice.width();slice.css({top:'0px',height:'100%',width:'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}
timeBuff+=50;i++;});}
else if(settings.effect=='fade'||vars.randAnim=='fade'){var i=0;$('.nivo-slice',slider).each(function(){$(this).css('height','100%');if(i==settings.slices-1){$(this).animate({opacity:'1.0'},(settings.animSpeed*2),'',function(){slider.trigger('nivo:animFinished');});}else{$(this).animate({opacity:'1.0'},(settings.animSpeed*2));}
i++;});}}};$.fn.nivoSlider.defaults={effect:'random',slices:15,animSpeed:500,pauseTime:3000,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:'.jpg',controlNavThumbsReplace:'_thumb.jpg',keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){}};$.fn._reverse=[].reverse;})(jQuery);
(function($){$.fn.extend({trigal:function(){return this.each(function(){var lastBlock=$(this).find("li:first>a");var maxWidth=343;var minWidth=126;$(this).find("li>a").mouseover(function(){$(lastBlock).animate({width:minWidth+"px"},{queue:false,duration:400});$(this).animate({width:maxWidth+"px"},{queue:false,duration:400});lastBlock=$(this);}).click(function(e){e.preventDefault();$(this).parent().find('ul li:first a').trigger('click')});});}});})(jQuery);
// ----------------------------------------------------------------------------
// markItUp! Universal MarkUp Engine, JQuery plugin
// v 1.1.5
// Dual licensed under the MIT and GPL licenses.
// ----------------------------------------------------------------------------
// Copyright (C) 2007-2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(3($){$.24.T=3(f,g){E k,v,A,F;v=A=F=7;k={C:\'\',12:\'\',U:\'\',1j:\'\',1A:8,25:\'26\',1k:\'~/2Q/1B.1C\',1b:\'\',27:\'28\',1l:8,1D:\'\',1E:\'\',1F:{},1G:{},1H:{},1I:{},29:[{}]};$.V(k,f,g);2(!k.U){$(\'2R\').1c(3(a,b){1J=$(b).14(0).2S.2T(/(.*)2U\\.2V(\\.2W)?\\.2X$/);2(1J!==2a){k.U=1J[1]}})}4 G.1c(3(){E d,u,15,16,p,H,L,P,17,1m,w,1n,M,18;d=$(G);u=G;15=[];18=7;16=p=0;H=-1;k.1b=1d(k.1b);k.1k=1d(k.1k);3 1d(a,b){2(b){4 a.W(/("|\')~\\//g,"$1"+k.U)}4 a.W(/^~\\//,k.U)}3 2b(){C=\'\';12=\'\';2(k.C){C=\'C="\'+k.C+\'"\'}l 2(d.1K("C")){C=\'C="T\'+(d.1K("C").2c(0,1).2Y())+(d.1K("C").2c(1))+\'"\'}2(k.12){12=\'N="\'+k.12+\'"\'}d.1L(\'<z \'+12+\'></z>\');d.1L(\'<z \'+C+\' N="T"></z>\');d.1L(\'<z N="2Z"></z>\');d.2d("2e");17=$(\'<z N="30"></z>\').2f(d);$(1M(k.29)).1N(17);1m=$(\'<z N="31"></z>\').1O(d);2(k.1l===8&&$.X.32!==8){1l=$(\'<z N="33"></z>\').1O(d).1e("34",3(e){E h=d.2g(),y=e.2h,1o,1p;1o=3(e){d.2i("2g",35.36(20,e.2h+h-y)+"37");4 7};1p=3(e){$("1C").1P("2j",1o).1P("1q",1p);4 7};$("1C").1e("2j",1o).1e("1q",1p)});1m.2k(1l)}d.2l(1Q).38(1Q);d.1e("1R",3(e,a){2(a.1r!==7){14()}2(u===$.T.2m){Y(a)}});d.1f(3(){$.T.2m=G})}3 1M(b){E c=$(\'<Z></Z>\'),i=0;$(\'B:2n > Z\',c).2i(\'39\',\'q\');$.1c(b,3(){E a=G,t=\'\',1s,B,j;1s=(a.19)?(a.1S||\'\')+\' [3a+\'+a.19+\']\':(a.1S||\'\');19=(a.19)?\'2o="\'+a.19+\'"\':\'\';2(a.2p){B=$(\'<B N="3b">\'+(a.2p||\'\')+\'</B>\').1N(c)}l{i++;2q(j=15.6-1;j>=0;j--){t+=15[j]+"-"}B=$(\'<B N="2r 2r\'+t+(i)+\' \'+(a.3c||\'\')+\'"><a 3d="" \'+19+\' 1s="\'+1s+\'">\'+(a.1S||\'\')+\'</a></B>\').1e("3e",3(){4 7}).2s(3(){4 7}).1q(3(){2(a.2t){3f(a.2t)()}Y(a);4 7}).2n(3(){$(\'> Z\',G).3g();$(D).3h(\'2s\',3(){$(\'Z Z\',17).2u()})},3(){$(\'> Z\',G).2u()}).1N(c);2(a.2v){15.3i(i);$(B).2d(\'3j\').2k(1M(a.2v))}}});15.3k();4 c}3 2w(c){2(c){c=c.3l();c=c.W(/\\(\\!\\(([\\s\\S]*?)\\)\\!\\)/g,3(x,a){E b=a.1T(\'|!|\');2(F===8){4(b[1]!==2x)?b[1]:b[0]}l{4(b[1]===2x)?"":b[0]}});c=c.W(/\\[\\!\\[([\\s\\S]*?)\\]\\!\\]/g,3(x,a){E b=a.1T(\':!:\');2(18===8){4 7}1U=3m(b[0],(b[1])?b[1]:\'\');2(1U===2a){18=8}4 1U});4 c}4""}3 I(a){2($.3n(a)){a=a(P)}4 2w(a)}3 1g(a){J=I(L.J);1a=I(L.1a);Q=I(L.Q);O=I(L.O);2(Q!==""){q=J+Q+O}l 2(m===\'\'&&1a!==\'\'){q=J+1a+O}l{q=J+(a||m)+O}4{q:q,J:J,Q:Q,1a:1a,O:O}}3 Y(a){E b,j,n,i;P=L=a;14();$.V(P,{1t:"",U:k.U,u:u,m:(m||\'\'),p:p,v:v,A:A,F:F});I(k.1D);I(L.1D);2(v===8&&A===8){I(L.3o)}$.V(P,{1t:1});2(v===8&&A===8){R=m.1T(/\\r?\\n/);2q(j=0,n=R.6,i=0;i<n;i++){2($.3p(R[i])!==\'\'){$.V(P,{1t:++j,m:R[i]});R[i]=1g(R[i]).q}l{R[i]=""}}o={q:R.3q(\'\\n\')};11=p;b=o.q.6+(($.X.1V)?n:0)}l 2(v===8){o=1g(m);11=p+o.J.6;b=o.q.6-o.J.6-o.O.6;b-=1u(o.q)}l 2(A===8){o=1g(m);11=p;b=o.q.6;b-=1u(o.q)}l{o=1g(m);11=p+o.q.6;b=0;11-=1u(o.q)}2((m===\'\'&&o.Q===\'\')){H+=1W(o.q);11=p+o.J.6;b=o.q.6-o.J.6-o.O.6;H=d.K().1h(p,d.K().6).6;H-=1W(d.K().1h(0,p))}$.V(P,{p:p,16:16});2(o.q!==m&&18===7){2y(o.q);1X(11,b)}l{H=-1}14();$.V(P,{1t:\'\',m:m});2(v===8&&A===8){I(L.3r)}I(L.1E);I(k.1E);2(w&&k.1A){1Y()}A=F=v=18=7}3 1W(a){2($.X.1V){4 a.6-a.W(/\\n*/g,\'\').6}4 0}3 1u(a){2($.X.2z){4 a.6-a.W(/\\r*/g,\'\').6}4 0}3 2y(a){2(D.m){E b=D.m.1Z();b.2A=a}l{d.K(d.K().1h(0,p)+a+d.K().1h(p+m.6,d.K().6))}}3 1X(a,b){2(u.2B){2($.X.1V&&$.X.3s>=9.5&&b==0){4 7}1i=u.2B();1i.3t(8);1i.2C(\'21\',a);1i.3u(\'21\',b);1i.3v()}l 2(u.2D){u.2D(a,a+b)}u.1v=16;u.1f()}3 14(){u.1f();16=u.1v;2(D.m){m=D.m.1Z().2A;2($.X.2z){E a=D.m.1Z(),1w=a.3w();1w.3x(u);p=-1;3y(1w.3z(a)){1w.2C(\'21\');p++}}l{p=u.2E}}l{p=u.2E;m=d.K().1h(p,u.3A)}4 m}3 1B(){2(!w||w.3B){2(k.1j){w=3C.2F(\'\',\'1B\',k.1j)}l{M=$(\'<2G N="3D"></2G>\');2(k.25==\'26\'){M.1O(1m)}l{M.2f(17)}w=M[M.6-1].3E||3F[M.6-1]}}l 2(F===8){2(M){M.3G()}w.2H();w=M=7}2(!k.1A){1Y()}}3 1Y(){2(w.D){3H{22=w.D.2I.1v}3I(e){22=0}w.D.2F();w.D.3J(2J());w.D.2H();w.D.2I.1v=22}2(k.1j){w.1f()}}3 2J(){2(k.1b!==\'\'){$.2K({2L:\'3K\',2M:7,2N:k.1b,28:k.27+\'=\'+3L(d.K()),2O:3(a){23=1d(a,1)}})}l{2(!1n){$.2K({2M:7,2N:k.1k,2O:3(a){1n=1d(a,1)}})}23=1n.W(/<!-- 3M -->/g,d.K())}4 23}3 1Q(e){A=e.A;F=e.F;v=(!(e.F&&e.v))?e.v:7;2(e.2L===\'2l\'){2(v===8){B=$("a[2o="+3N.3O(e.1x)+"]",17).1y(\'B\');2(B.6!==0){v=7;B.3P(\'1q\');4 7}}2(e.1x===13||e.1x===10){2(v===8){v=7;Y(k.1H);4 k.1H.1z}l 2(A===8){A=7;Y(k.1G);4 k.1G.1z}l{Y(k.1F);4 k.1F.1z}}2(e.1x===9){2(A==8||v==8||F==8){4 7}2(H!==-1){14();H=d.K().6-H;1X(H,0);H=-1;4 7}l{Y(k.1I);4 k.1I.1z}}}}2b()})};$.24.3Q=3(){4 G.1c(3(){$$=$(G).1P().3R(\'2e\');$$.1y(\'z\').1y(\'z.T\').1y(\'z\').Q($$)})};$.T=3(a){E b={1r:7};$.V(b,a);2(b.1r){4 $(b.1r).1c(3(){$(G).1f();$(G).2P(\'1R\',[b])})}l{$(\'u\').2P(\'1R\',[b])}}})(3S);',62,241,'||if|function|return||length|false|true|||||||||||||else|selection||string|caretPosition|block||||textarea|ctrlKey|previewWindow|||div|shiftKey|li|id|document|var|altKey|this|caretOffset|prepare|openWith|val|clicked|iFrame|class|closeWith|hash|replaceWith|lines||markItUp|root|extend|replace|browser|markup|ul||start|nameSpace||get|levels|scrollPosition|header|abort|key|placeHolder|previewParserPath|each|localize|bind|focus|build|substring|range|previewInWindow|previewTemplatePath|resizeHandle|footer|template|mouseMove|mouseUp|mouseup|target|title|line|fixIeBug|scrollTop|rangeCopy|keyCode|parent|keepDefault|previewAutoRefresh|preview|html|beforeInsert|afterInsert|onEnter|onShiftEnter|onCtrlEnter|onTab|miuScript|attr|wrap|dropMenus|appendTo|insertAfter|unbind|keyPressed|insertion|name|split|value|opera|fixOperaBug|set|refreshPreview|createRange||character|sp|phtml|fn|previewPosition|after|previewParserVar|data|markupSet|null|init|substr|addClass|markItUpEditor|insertBefore|height|clientY|css|mousemove|append|keydown|focused|hover|accesskey|separator|for|markItUpButton|click|call|hide|dropMenu|magicMarkups|undefined|insert|msie|text|createTextRange|moveStart|setSelectionRange|selectionStart|open|iframe|close|documentElement|renderPreview|ajax|type|async|url|success|trigger|templates|script|src|match|jquery|markitup|pack|js|toUpperCase|markItUpContainer|markItUpHeader|markItUpFooter|safari|markItUpResizeHandle|mousedown|Math|max|px|keyup|display|Ctrl|markItUpSeparator|className|href|contextmenu|eval|show|one|push|markItUpDropMenu|pop|toString|prompt|isFunction|beforeMultiInsert|trim|join|afterMultiInsert|version|collapse|moveEnd|select|duplicate|moveToElementText|while|inRange|selectionEnd|closed|window|markItUpPreviewFrame|contentWindow|frame|remove|try|catch|write|POST|encodeURIComponent|content|String|fromCharCode|triggerHandler|markItUpRemove|removeClass|jQuery'.split('|'),0,{}))
$(function(){if(screen.width>=1024&&screen.height>=768){$('a[hires]').attr('href',function(){return $(this).attr('hires')}).removeAttr('hires');}
$('a.colorbox_iframe').live('click',function(e){e.preventDefault();$.fn.colorbox({href:this.href,initialWidth:135,initialHeight:135,innerWidth:$(this).attr('iframewidth'),innerHeight:$(this).attr('iframeheight'),close:"Schließen",iframe:true,scrolling:false});return false;});$('a.colorbox_gallery').colorbox({initialWidth:135,initialHeight:135,current:"{current} von {total}",previous:"Zurück",next:"Vor",close:"Schließen",slideshowStart:"Diashow starten",slideshowStop:"Diashow anhalten",maxWidth:"90%",maxHeight:"90%",scalePhotos:true,scrolling:false});$('a.colorbox_forceimg').live('click',function(e){e.preventDefault();$.fn.colorbox({href:this.href,photo:true,initialWidth:135,initialHeight:135,close:"Schließen",maxWidth:"90%",maxHeight:"90%",scalePhotos:true,scrolling:false});return false;});$('a.colorbox').live('click',function(e){e.preventDefault();$.fn.colorbox({href:this.href,initialWidth:135,initialHeight:135,close:"Schließen",maxWidth:"90%",maxHeight:"90%",scalePhotos:true,scrolling:false});return false;});var s=$('#sites li'),i=$('#imgs li');s.bind('mouseenter',function(){if(i.filter(':visible').index()==i.eq(s.index(this)).index())return;i.stop(true,true).fadeOut('fast').eq(s.index(this)).fadeIn('fast');s.css('backgroundColor',"").css('color',function(){return $(this).data('color');});$(this).css('backgroundColor',function(){return $(this).data('color');}).css('color','#fff');});$('#header').bind('mouseleave',function(){i.stop(true,true).hide().eq(s.filter('.active').index()).show();s.css('backgroundColor','').css('color',function(){return $(this).data('color');}).filter('.active').css('backgroundColor',function(){return $(this).data('color');}).css('color','#fff');});$.datepicker.setDefaults($.datepicker.regional['de']);if($("#kinoprog-datum").val()){$("#kinoprog-calendar").datepicker({altField:'#kinoprog-datum',altFormat:'yy-mm-dd',defaultDate:$.datepicker.parseDate('yy-mm-dd',$("#kinoprog-datum").val()),onSelect:function(dateText,inst){$(this).parents('form').submit();}});}
if($("#tageskal-datum").val()){$("#tageskal-calendar").datepicker({altField:'#tageskal-datum',altFormat:'yy-mm-dd',defaultDate:$.datepicker.parseDate('yy-mm-dd',$("#tageskal-datum").val()),onSelect:function(dateText,inst){$(this).parents('form').submit();}});}
$('#reveal_addopt').toggle(function(){$($(this).attr('href')).animate({opacity:'show',height:'show'},200);$(this).animate({backgroundColor:'#cccccc'},200);},function(){$($(this).attr('href')).animate({opacity:'hide',height:'hide'},200);$(this).animate({backgroundColor:'#f2f2f2'},200);});if($("#widget-cal-datum").val()){$("#widget-calendar").datepicker({altField:'#widget-cal-datum',altFormat:'yy-mm-dd',onSelect:function(dateText,inst){$(this).parents('form').submit();}});}
$('#dropdown-handle').live('click',function(){if($("#locationcats").is(':visible')){$("#locationcats").slideUp(150,function(){$(this).css('height','30em').css('overflow','hidden').css('overflow-y','scroll');});}else{$("#locationcats").fadeIn(100);}});$('ul.trigal').trigal();$('.nivoslider').each(function(){var $self=$(this);$self.nivoSlider({pauseTime:$self.data('pauseTime'),animSpeed:$self.data('animSpeed'),effect:$self.data('effect'),captionOpacity:1,directionNav:false,});});$('#calcar_forward').click(function(e){e.preventDefault();var self=$(this);if(self.data('running'))return false;self.data('running',true);$.ajax({url:$('#carouselcal_updateme').data('url'),data:{selected:$('#carouselcal_updateme').data('selected'),datum:$('.calcar_dateinfo').data('next'),page_id:$('#carouselcal_updateme').data('pageId')},success:function(data){var old_li=$('#carouselcal_updateme li');$('#carouselcal_updateme li:not(.calcar_dateinfo):last').remove();$('#carouselcal_updateme li:not(.calcar_dateinfo):last').remove();$('#carouselcal_updateme').append(data).animate({left:'-505px'},500,'easeInOutQuart',function(){old_li.remove();$(this).css({left:'-25px'});self.data('running',false)});},dataType:'html'});});$('#calcar_back').click(function(e){e.preventDefault();var self=$(this);if(self.data('running'))return false;self.data('running',true);$.ajax({url:$('#carouselcal_updateme').data('url'),data:{datum:$('.calcar_dateinfo').data('prev'),page_id:$('#carouselcal_updateme').data('pageId')},success:function(data){var old_li=$('#carouselcal_updateme li');$('#carouselcal_updateme li:first').remove();$('#carouselcal_updateme li:first').remove();$('#carouselcal_updateme').prepend(data).css({left:'-505px'}).animate({left:'-25px'},500,'easeInOutQuart',function(){old_li.remove();self.data('running',false);});},dataType:'html'});});if($('body').hasClass('tkupdateme')){var original_state={path:window.location.href,content:$('#tk_updateme').html(),slider:$('#carouselcal_updateme').html(),date:$('.date-is-today a').data('date')},firstrun=true;$('#carouselcal_updateme li a').live('click',function(e){e.preventDefault();var self=$(this),nt="";$('#tk_updateme, .tk_updateme_message').hide();$('#tk_updateme_spinner').show();$.ajax({url:$('#tk_updateme').data('url'),data:{datum:self.data('date')},success:function(data){$('#carouselcal_updateme').data('selected',self.data('date'));$('.date-is-today').removeClass('date-is-today');self.parent().addClass('date-is-today');if(typeof(window.history.pushState)=='function'){window.history.pushState({path:self.attr('href'),content:data,slider:$('#carouselcal_updateme').html(),date:self.data('date')},'',self.attr('href'));}
$('#tk_updateme_spinner').hide();$('#tk_updateme').html(data).show('blind',{},'fast');nt=$('#results_title').data('title');if(typeof nt!="undefined"&&nt.length>0){document.title=$('#results_title').data('title');}},error:function(xhr,stat,err){$('#tk_updateme_spinner').hide();$('#tk_updateme_error').show();},dataType:'html'});});$(window).bind('popstate',function(ev){if(firstrun){firstrun=false;return;}
var state;if(typeof ev.originalEvent.state=='undefined'||ev.originalEvent.state==null){state=original_state;}else{state=ev.originalEvent.state;}
$('.tk_updateme_message').hide();$('#carouselcal_updateme').data('selected',state.date).html(state.slider);$('.date-is-today').removeClass('date-is-today');$('#carouselcal_updateme a[data-date="'+state.date+'"]').parent().addClass('date-is-today');$('#tk_updateme').html(state.content).show('blind',{},'fast');});}
$('.cinema_reveal').live('click',function(e){if(($(e.target).is('a')||$(e.target).is('img'))&&!$(e.target).hasClass('details_toggle_onoff'))return;e.preventDefault();tog=$(this).parent().find('.details_toggle_onoff');if(tog.hasClass('details_on')){tog.addClass('details_off').removeClass('details_on');$(this).parent().find('.moredetails').slideUp(200);}else{tog.addClass('details_on').removeClass('details_off');$(this).parent().find('.moredetails').slideDown(200);}})
$(".socialbookmarking_box a:not(.favorites)").click(function(ev){ev.preventDefault();window.open($(this).attr("shareurl").replace("{url}",encodeURIComponent(self.location.href)).replace("{title}",encodeURIComponent($("title:first").html())),'share').focus();});$('#widget_newsletter_form').submit(function(e){e.preventDefault();$this=$(this);$("#widget_newsletter_indicator").show();jQuery.ajax({url:$this.attr('action'),dataType:'json',type:'get',data:$this.serialize(),success:function(data){if(data.success){$('.newsletter_box .feedback').removeClass('negative').addClass('positive').html("<span></span><p>"+data.msg+"</p>").show(200);}else{$('.newsletter_box .feedback').removeClass('positive').addClass('negative').html("<span></span><p>"+data.msg+"</p>").show(200);}
$("#widget_newsletter_indicator").hide();},error:function(XMLHttpRequest,textStatus,errorThrown){$('.newsletter_box .feedback').removeClass('positive').addClass('negative').html('<span></span><p><strong>Ein Fehler ist aufgetreten,</strong>bitte wenden Sie sich an info@klenkes.de.</p>').show(200);$("#widget_newsletter_indicator").hide();}});});$(".tabs").accessibleTabs({tabhead:'h3',fx:"fadeIn"});$('input[placeholder]').placeholder();if($('body').hasClass('playtimesloader')){$.ajax({url:$('#playtimes').data('url'),type:'get',dataType:'html',success:function(data){$('#playtimes').removeClass('loading').html(data);},error:function(){$('#playtimes').removeClass('loading').html('');}});}
if(window.location.hash){var hashel=$(window.location.hash);if(hashel.length){var trigel=hashel.closest('a.zoom');if(trigel.length){window.location.hash='#';trigel.trigger('click');}}}
Array.prototype.contains=function(needle){for(var i=0;i<this.length;i++)if(this[i]===needle)return true;return false;}});
function PagePlayer(){var self=this,pl=this,sm=soundManager,_event,controlTemplate=null,_head=document.getElementsByTagName('head')[0],ua=navigator.userAgent,isTouchDevice=(ua.match(/ipad|ipod|iphone/i)),cleanup;this.config={useMovieStar:true,allowRightClick:true,useThrottling:true,autoStart:false,};this.css={sDefault:'sm2_link',sLoading:'sm2_loading',sPlaying:'sm2_playing',sPaused:'sm2_paused'};this.sounds=[];this.soundsByObject=[];this.lastSound=null;this.soundCount=0;this.strings=[];this.dragActive=false;this.dragExec=new Date();this.dragTimer=null;this.lastWPExec=new Date();this.lastWLExec=new Date();this.oControls=null;this._mergeObjects=function(oMain,oAdd){var o1={},o2,i,o;for(i in oMain){if(oMain.hasOwnProperty(i)){o1[i]=oMain[i];}}
o2=(typeof oAdd==='undefined'?{}:oAdd);for(o in o2){if(typeof o1[o]==='undefined'){o1[o]=o2[o];}}
return o1;};_event=(function(){var old=(window.attachEvent&&!window.addEventListener),_slice=Array.prototype.slice,evt={add:(old?'attachEvent':'addEventListener'),remove:(old?'detachEvent':'removeEventListener')};function getArgs(oArgs){var args=_slice.call(oArgs),len=args.length;if(old){args[1]='on'+args[1];if(len>3){args.pop();}}else if(len===3){args.push(false);}
return args;}
function apply(args,sType){var element=args.shift(),method=[evt[sType]];if(old){element[method](args[0],args[1]);}else{element[method].apply(element,args);}}
function add(){apply(getArgs(arguments),'add');}
function remove(){apply(getArgs(arguments),'remove');}
return{'add':add,'remove':remove};}());this.hasClass=function(o,cStr){return(typeof(o.className)!=='undefined'?new RegExp('(^|\\s)'+cStr+'(\\s|$)').test(o.className):false);};this.addClass=function(o,cStr){if(!o||!cStr||self.hasClass(o,cStr)){return false;}
o.className=(o.className?o.className+' ':'')+cStr;};this.removeClass=function(o,cStr){if(!o||!cStr||!self.hasClass(o,cStr)){return false;}
o.className=o.className.replace(new RegExp('( '+cStr+')|('+cStr+')','g'),'');};this.select=function(className,oParent){var result=self.getByClassName(className,'div',oParent||null);return(result?result[0]:null);};this.getByClassName=(document.querySelectorAll?function(className,tagNames,oParent){var pattern=('.'+className),qs;if(tagNames){tagNames=tagNames.split(' ');}
qs=(tagNames.length>1?tagNames.join(pattern+', '):tagNames[0]+pattern);return(oParent?oParent:document).querySelectorAll(qs);}:function(className,tagNames,oParent){var node=(oParent?oParent:document),matches=[],i,j,nodes=[];if(tagNames){tagNames=tagNames.split(' ');}
if(tagNames instanceof Array){for(i=tagNames.length;i--;){if(!nodes||!nodes[tagNames[i]]){nodes[tagNames[i]]=node.getElementsByTagName(tagNames[i]);}}
for(i=tagNames.length;i--;){for(j=nodes[tagNames[i]].length;j--;){if(self.hasClass(nodes[tagNames[i]][j],className)){matches.push(nodes[tagNames[i]][j]);}}}}else{nodes=node.all||node.getElementsByTagName('*');for(i=0,j=nodes.length;i<j;i++){if(self.hasClass(nodes[i],className)){matches.push(nodes[i]);}}}
return matches;});this.isChildOfClass=function(oChild,oClass){if(!oChild||!oClass){return false;}
while(oChild.parentNode&&!self.hasClass(oChild,oClass)){oChild=oChild.parentNode;}
return(self.hasClass(oChild,oClass));};this.getParentByNodeName=function(oChild,sParentNodeName){if(!oChild||!sParentNodeName){return false;}
sParentNodeName=sParentNodeName.toLowerCase();while(oChild.parentNode&&sParentNodeName!==oChild.parentNode.nodeName.toLowerCase()){oChild=oChild.parentNode;}
return(oChild.parentNode&&sParentNodeName===oChild.parentNode.nodeName.toLowerCase()?oChild.parentNode:null);};this.getOffX=function(o){var curleft=0;if(o.offsetParent){while(o.offsetParent){curleft+=o.offsetLeft;o=o.offsetParent;}}
else if(o.x){curleft+=o.x;}
return curleft;};this.getSoundByObject=function(o){return(typeof self.soundsByObject[o.id]!=='undefined'?self.soundsByObject[o.id]:null);};this.getPreviousItem=function(o){if(o.previousElementSibling){o=o.previousElementSibling;}else{o=o.previousSibling;while(o&&o.previousSibling&&o.previousSibling.nodeType!==1){o=o.previousSibling;}}
if(o.nodeName.toLowerCase()!=='li'){return null;}else{return o.getElementsByTagName('a')[0];}};this.playPrevious=function(oSound){if(!oSound){oSound=self.lastSound;}
if(!oSound){return false;}
var previousItem=self.getPreviousItem(oSound._data.oLI);if(previousItem){pl.handleClick({target:previousItem});}
return previousItem;};this.getNextItem=function(o){if(o.nextElementSibling){o=o.nextElementSibling;}else{o=o.nextSibling;while(o&&o.nextSibling&&o.nextSibling.nodeType!==1){o=o.nextSibling;}}
if(o.nodeName.toLowerCase()!=='li'){return null;}else{return o.getElementsByTagName('a')[0];}};this.playNext=function(oSound){if(!oSound){oSound=self.lastSound;}
if(!oSound){return false;}
var nextItem=self.getNextItem(oSound._data.oLI);if(nextItem){pl.handleClick({target:nextItem});}
return nextItem;};this.events={play:function(){pl.removeClass(this._data.oLI,this._data.className);this._data.className=pl.css.sPlaying;pl.addClass(this._data.oLI,this._data.className);},stop:function(){pl.removeClass(this._data.oLI,this._data.className);this._data.className='';this._data.oPosition.style.width='0px';},pause:function(){if(pl.dragActive){return false;}
pl.removeClass(this._data.oLI,this._data.className);this._data.className=pl.css.sPaused;pl.addClass(this._data.oLI,this._data.className);},resume:function(){if(pl.dragActive){return false;}
pl.removeClass(this._data.oLI,this._data.className);this._data.className=pl.css.sPlaying;pl.addClass(this._data.oLI,this._data.className);},finish:function(){pl.removeClass(this._data.oLI,this._data.className);this._data.className='';this._data.oPosition.style.width='0px';},whileloading:function(){function doWork(){this._data.oLoading.style.width=(((this.bytesLoaded/this.bytesTotal)*100)+'%');if(!this._data.didRefresh&&this._data.metadata){this._data.didRefresh=true;this._data.metadata.refresh();}}
if(!pl.config.useThrottling){doWork.apply(this);}else{var d=new Date();if(d&&d-self.lastWLExec>30||this.bytesLoaded===this.bytesTotal){doWork.apply(this);self.lastWLExec=d;}}},onload:function(){if(!this.loaded){var oTemp=this._data.oLI.getElementsByTagName('a')[0],oString=oTemp.innerHTML,oThis=this;oTemp.innerHTML=oString+' <span style="font-size:0.5em"> | Load failed, d\'oh! '+(sm.sandbox.noRemote?' Possible cause: Flash sandbox is denying remote URL access.':(sm.sandbox.noLocal?'Flash denying local filesystem access':'404?'))+'</span>';setTimeout(function(){oTemp.innerHTML=oString;},5000);}else{if(this._data.metadata){this._data.metadata.refresh();}}},whileplaying:function(){var d=null;if(pl.dragActive||!pl.config.useThrottling){if(this._data.metadata){d=new Date();if(d&&d-self.lastWPExec>500){this._data.metadata.refreshMetadata(this);self.lastWPExec=d;}}
this._data.oPosition.style.width=(((this.position/self.getDurationEstimate(this))*100)+'%');}else{d=new Date();if(d-self.lastWPExec>30){if(this._data.metadata){this._data.metadata.refreshMetadata(this);}
this._data.oPosition.style.width=(((this.position/self.getDurationEstimate(this))*100)+'%');self.lastWPExec=d;}}}};this.getTheDamnTarget=function(e){return(e.target||(window.event?window.event.srcElement:null));};this.withinStatusBar=function(o){return(self.isChildOfClass(o,'controls'));};this.handleClick=function(e){if(e.button===2){if(!pl.config.allowRightClick){pl.stopEvent(e);}
return pl.config.allowRightClick;}
var o=self.getTheDamnTarget(e),sURL,soundURL,thisSound,oControls,oLI,str;if(!o){return true;}
if(self.dragActive){self.stopDrag();}
if(self.withinStatusBar(o)){return false;}
if(o.nodeName.toLowerCase()!=='a'){o=self.getParentByNodeName(o,'a');}
if(!o){return true;}
sURL=o.getAttribute('href');if(o.href&&self.hasClass(o,'playable')){self.initUL(self.getParentByNodeName(o,'ul'));self.initItem(o);soundURL=o.href;thisSound=self.getSoundByObject(o);if(thisSound){if(thisSound===self.lastSound){if(thisSound.readyState!==2){if(thisSound.playState!==1){thisSound.play();}else{thisSound.togglePause();}}else{sm._writeDebug('Warning: sound failed to load (security restrictions, 404 or bad format)',2);}}else{if(self.lastSound){self.stopSound(self.lastSound);}
thisSound.togglePause();}}else{thisSound=sm.createSound({id:o.id,url:decodeURI(soundURL),onplay:self.events.play,onstop:self.events.stop,onpause:self.events.pause,onresume:self.events.resume,onfinish:self.events.finish,whileloading:self.events.whileloading,whileplaying:self.events.whileplaying,onmetadata:self.events.metadata,onload:self.events.onload});oControls=self.oControls.cloneNode(true);oLI=o.parentNode;oLI.appendChild(oControls);self.soundsByObject[o.id]=thisSound;thisSound._data={oLink:o,oLI:oLI,oControls:self.select('controls',oLI),oStatus:self.select('statusbar',oLI),oLoading:self.select('loading',oLI),oPosition:self.select('position',oLI),className:self.css.sPlaying,metadata:null};if(thisSound._data.oLI.getElementsByTagName('ul').length){thisSound._data.metadata=new Metadata(thisSound);}
self.sounds.push(thisSound);if(self.lastSound){self.stopSound(self.lastSound);}
thisSound.play();}
self.lastSound=thisSound;return self.stopEvent(e);}else{return true;}};this.handleMouseDown=function(e){if(isTouchDevice&&e.touches){e=e.touches[0];}
if(e.button===2){if(!pl.config.allowRightClick){pl.stopEvent(e);}
return pl.config.allowRightClick;}
var o=self.getTheDamnTarget(e);if(!o){return true;}
if(!self.withinStatusBar(o)){return true;}
self.dragActive=true;self.lastSound.pause();self.setPosition(e);if(!isTouchDevice){_event.add(document,'mousemove',self.handleMouseMove);}else{_event.add(document,'touchmove',self.handleMouseMove);}
self.addClass(self.lastSound._data.oControls,'dragging');return self.stopEvent(e);};this.handleMouseMove=function(e){if(isTouchDevice&&e.touches){e=e.touches[0];}
if(self.dragActive){if(self.config.useThrottling){var d=new Date();if(d-self.dragExec>20){self.setPosition(e);}else{window.clearTimeout(self.dragTimer);self.dragTimer=window.setTimeout(function(){self.setPosition(e);},20);}
self.dragExec=d;}else{self.setPosition(e);}}else{self.stopDrag();}
e.stopPropagation=true;return false;};this.stopDrag=function(e){if(self.dragActive){self.removeClass(self.lastSound._data.oControls,'dragging');if(!isTouchDevice){_event.remove(document,'mousemove',self.handleMouseMove);}else{_event.remove(document,'touchmove',self.handleMouseMove);}
if(!pl.hasClass(self.lastSound._data.oLI,self.css.sPaused)){self.lastSound.resume();}
self.dragActive=false;return self.stopEvent(e);}};this.handleStatusClick=function(e){self.setPosition(e);if(!pl.hasClass(self.lastSound._data.oLI,self.css.sPaused)){self.resume();}
return self.stopEvent(e);};this.stopEvent=function(e){if(typeof e!=='undefined'){if(typeof e.preventDefault!=='undefined'){e.preventDefault();}else{e.stopPropagation=true;e.returnValue=false;}}
return false;};this.setPosition=function(e){var oThis=self.getTheDamnTarget(e),x,oControl,oSound,nMsecOffset;if(!oThis){return true;}
oControl=oThis;while(!self.hasClass(oControl,'controls')&&oControl.parentNode){oControl=oControl.parentNode;}
oSound=self.lastSound;x=parseInt(e.clientX,10);nMsecOffset=Math.floor((x-self.getOffX(oControl)-4)/(oControl.offsetWidth)*self.getDurationEstimate(oSound));if(!isNaN(nMsecOffset)){nMsecOffset=Math.min(nMsecOffset,oSound.duration);}
if(!isNaN(nMsecOffset)){oSound.setPosition(nMsecOffset);}};this.stopSound=function(oSound){sm._writeDebug('stopping sound: '+oSound.sID);sm.stop(oSound.sID);if(!isTouchDevice){sm.unload(oSound.sID);}};this.getDurationEstimate=function(oSound){if(oSound.instanceOptions.isMovieStar){return(oSound.duration);}else{return(!oSound._data.metadata||!oSound._data.metadata.data.givenDuration?(oSound.durationEstimate||0):oSound._data.metadata.data.givenDuration);}};this.testCanvas=function(){var c=document.createElement('canvas'),ctx=null,ok;if(!c||typeof c.getContext==='undefined'){return null;}
ctx=c.getContext('2d');if(!ctx||typeof c.toDataURL!=='function'){return null;}
try{ok=c.toDataURL('image/png');}catch(e){return null;}
return c;};this.initItem=function(oNode){if(!oNode.id){oNode.id='pagePlayerMP3Sound'+(self.soundCount++);}
self.addClass(oNode,self.css.sDefault);};this.initUL=function(oULNode){if(sm.flashVersion>=9){self.addClass(oULNode,self.cssBase);}};this.init=function(oConfig){if(oConfig){sm._writeDebug('pagePlayer.init(): Using custom configuration');this.config=this._mergeObjects(oConfig,this.config);}else{sm._writeDebug('pagePlayer.init(): Using default configuration');}
var i,sbC,oF,oClone;this.cssBase=[];sm.useFlashBlock=true;if(sm.flashVersion>=9){sm.useMovieStar=this.config.useMovieStar;this.cssBase=this.cssBase.join(' ');}
controlTemplate=document.createElement('div');controlTemplate.innerHTML=['  <div class="controls">','   <div class="statusbar">','    <div class="loading"></div>','    <div class="position"></div>','   </div>','  </div>'].join('\n');self.oControls=controlTemplate.cloneNode(true);function doEvents(action){_event[action](document,'click',self.handleClick);if(!isTouchDevice){_event[action](document,'mousedown',self.handleMouseDown);_event[action](document,'mouseup',self.stopDrag);}else{_event[action](document,'touchstart',self.handleMouseDown);_event[action](document,'touchend',self.stopDrag);}
_event[action](window,'unload',cleanup);}
cleanup=function(){doEvents('remove');};doEvents('add');sm._writeDebug('pagePlayer.init(): Ready',1);if(self.config.autoStart){pl.handleClick({target:pl.getByClassName('playlist','ul')[0].getElementsByTagName('a')[0]});}};}
soundManager.url="/js/media/soundmanager2/swf/";soundManager.flashVersion=9;soundManager.useFlashBlock=false;soundManager.useHTML5Audio=true;soundManager.debugFlash=false;soundManager.debugMode=false;soundManager.useConsole=false;soundManager.useHighPerformance=false;soundManager.useFastPolling=true;$(function(){pagePlayer=new PagePlayer();pagePlayer.init();});

