jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(ab){var T=ab(window),ad,at,S=-1,ak,aa,U,ac,Z,M,ag,al=!window.XMLHttpRequest,af=[],am=document.documentElement,an={},ae=new Image(),O=new Image(),Q,ay,ar,ai,P,av,R,aw,X,N;ab(function(){ab("body").append(ab([Q=ab('<div id="lbOverlay" />')[0],ay=ab('<div id="lbCenter" />')[0],R=ab('<div id="lbBottomContainer" />')[0]]).css("display","none"));ar=ab('<div id="lbImage" />').appendTo(ay).append(ai=ab('<div style="position: relative;" />').append([P=ab('<a id="lbPrevLink" href="#" />').click(W)[0],av=ab('<a id="lbNextLink" href="#" />').click(au)[0]])[0])[0];aw=ab('<div id="lbBottom" />').appendTo(R).append([ab('<a id="lbCloseLink" href="#" />').add(Q).click(V)[0],X=ab('<div id="lbCaption" />')[0],N=ab('<div id="lbNumber" />')[0],ab('<div style="clear: both;" />')[0]])[0]});ab.slimbox=function(a,b,c){ad=ab.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},c);if(typeof a=="string"){a=[[a,b]];b=0}Z=T.scrollTop()+(T.height()/2);M=ad.initialWidth;ag=ad.initialHeight;ab(ay).css({top:Math.max(0,Z-(ag/2)),width:M,height:ag,marginLeft:-M/2}).show();ac=al||(Q.currentStyle&&(Q.currentStyle.position!="fixed"));if(ac){Q.style.position="absolute"}ab(Q).css("opacity",ad.overlayOpacity).fadeIn(ad.overlayFadeDuration);Y();ao(1);at=a;ad.loop=ad.loop&&(at.length>1);return ax(b)};ab.fn.slimbox=function(d,a,b){a=a||function(e){return[e.href,e.title]};b=b||function(){return true};var c=this;return c.unbind("click").click(function(){var g=this,e=0,f,i=0,h;f=ab.grep(c,function(j,k){return b.call(g,j,k)});for(h=f.length;i<h;++i){if(f[i]==g){e=i}f[i]=a(f[i],i)}return ab.slimbox(f,e,d)})};function Y(){var a=T.scrollLeft(),b=T.width();ab([ay,R]).css("left",a+(b/2));if(ac){ab(Q).css({left:a,top:T.scrollTop(),width:b,height:T.height()})}}function ao(b){if(b){ab("object").add(al?"select":"embed").each(function(d,c){af[d]=[c,c.style.visibility];c.style.visibility="hidden"})}else{ab.each(af,function(d,c){c[0].style.visibility=c[1]});af=[]}var a=b?"bind":"unbind";T[a]("scroll resize",Y);ab(document)[a]("keydown",aj)}function aj(a){var b=a.keyCode,c=ab.inArray;return(c(b,ad.closeKeys)>=0)?V():(c(b,ad.nextKeys)>=0)?au():(c(b,ad.previousKeys)>=0)?W():false}function W(){return ax(aa)}function au(){return ax(U)}function ax(a){if(a>=0){S=a;ak=at[S][0];aa=(S||(ad.loop?at.length:0))-1;U=((S+1)%at.length)||(ad.loop?0:-1);ah();ay.className="lbLoading";an=new Image();an.onload=ap;an.src=ak}return false}function ap(){ay.className="";ab(ar).css({backgroundImage:"url("+ak+")",visibility:"hidden",display:""});ab(ai).width(an.width);ab([ai,P,av]).height(an.height);ab(X).html(at[S][1]||"");ab(N).html((((at.length>1)&&ad.counterText)||"").replace(/{x}/,S+1).replace(/{y}/,at.length));if(aa>=0){ae.src=at[aa][0]}if(U>=0){O.src=at[U][0]}M=ar.offsetWidth;ag=ar.offsetHeight;var a=Math.max(0,Z-(ag/2));if(ay.offsetHeight!=ag){ab(ay).animate({height:ag,top:a},ad.resizeDuration,ad.resizeEasing)}if(ay.offsetWidth!=M){ab(ay).animate({width:M,marginLeft:-M/2},ad.resizeDuration,ad.resizeEasing)}ab(ay).queue(function(){ab(R).css({width:M,top:a+ag,marginLeft:-M/2,visibility:"hidden",display:""});ab(ar).css({display:"none",visibility:"",opacity:""}).fadeIn(ad.imageFadeDuration,aq)})}function aq(){if(aa>=0){ab(P).show()}if(U>=0){ab(av).show()}ab(aw).css("marginTop",-aw.offsetHeight).animate({marginTop:0},ad.captionAnimationDuration);R.style.visibility=""}function ah(){an.onload=null;an.src=ae.src=O.src=ak;ab([ay,ar,aw]).stop(true);ab([P,av,ar,R]).hide()}function V(){if(S>=0){ah();S=aa=U=-1;ab(ay).hide();ab(Q).stop().fadeOut(ad.overlayFadeDuration,ao)}return false}})(jQuery);(function(c){c.fn.slideshow=function(p){var j={slide_element:"img",fadetime:"slow",timeout:"3000",type:"sequence",pausestate:0,pan:false,pan_speed:10,center:true,pauselink:null,onPlay:null,onPause:null,onOver:null,onLeave:null,onClick:null,onImage:null,onChange:null};var d=c.extend({},j,p);var f=d.pausestate,k=0,o=0,g="",l=this,e=l.find(d.slide_element).get(),n=0;var i=function(){l.css("position","relative");if(d.pan){l.css("overflow","hidden")}var q=l.width();c.each(e,function(u){var s=c(e[u]);var r=s.width();if(d.center){var t=(r<q)?Math.round((q-r)/2):0}else{var t=0}s.css({zIndex:e.length-u,position:"absolute",top:"0",left:t+"px"})});if(d.pauselink!=null){c("#"+d.pauselink).click(pause)}if(!d.pausestate){l.play()}};var h=function(){var s=c(e[k]);var r=s.width();var t=l.width();n=t-r;if(d.center){var q={zIndex:"1",left:(n/2)+"px",top:"0"}}else{var q={zIndex:"1",left:"0",top:"0"}}s.css(q).fadeIn(d.fadetime,function(){if(d.onImage!=null){d.onImage.call(e[k])}if(d.pan){var v=c(e[k]).width();var x=c(e[k]).height();var y=l.width();var u=l.height();var w=v-y;b("pan dif: "+w);if(v>y){var w=v-y;if(w!=0){c(e[k]).animate({left:w+"px"},w*d.pan_speed)}}if(x>u){var w=x-u;if(w!=0){c(e[k]).animate({top:"-"+w+"px"},w*d.pan_speed)}}}})};var m=function(){if(d.onChange!=null){d.onChange.call(l)}if(f==0){if(d.type=="sequence"){if((k+1)<e.length){k=k+1;o=k-1}else{k=0;o=e.length-1}}else{if(d.type=="random"){o=k;while(k==o){k=Math.floor(Math.random()*(e.length))}}else{b("type must either be 'sequence' or 'random'")}}for(var q=0;q<e.length;q++){c(e[q]).css("display","none")}c(e[o]).css("zIndex","0");h();g=setTimeout(m,d.timeout)}};this.pause=function(){if(f==0){f=1;clearTimeout(g);if(d.playcallback!=null){d.pausecallback(c("#"+d.pauselink))}}else{f=0;m();if(d.playcallback!=null){d.playcallback(c("#"+d.pauselink))}}return false};this.play=function(){f=0;m()};this.stop=function(){f=1;clearTimeout(g)};this.mouseover(function(){if(d.onOver!=null){d.onOver.call(l)}});this.mouseout(function(){if(d.onOut!=null){d.onOut.call(l)}});i();return this};function b(d){if(window.console&&window.console.log){window.console.log(d)}}function a(d){if(window.console&&window.console.debug){window.console.debug("debug: %o",d)}}})(jQuery);jQuery(document).ready(function(){if(jQuery.browser.safari&&document.readyState!="complete"){setTimeout(arguments.callee,100);return}$("a.external, a.blank").attr("target","_blank");$(".slideshow img:not(:first)").hide();$(".slideshow").slideshow({timeout:4000});$("#gallery a").slimbox({counterText:"{x} / {y}"});$("input[type=text]").focus(function(){if(this.value==this.defaultValue){this.value=""}}).blur(function(){if(!this.value.length){this.value=this.defaultValue}})});function log(a){if(window.console&&window.console.log){window.console.log(a)}}function debug(a){if(window.console&&window.console.debug){window.console.debug("debug: %o",a)}};
