(function(b){b.flexslider=function(e,a){var f=e;f.init=function(){f.vars=b.extend({},b.flexslider.defaults,a);f.data("flexslider",true);f.container=b(".slides",f);f.slides=b(".slides > li",f);f.count=f.slides.length;f.animating=false;f.currentSlide=f.vars.slideToStart;f.animatingTo=f.currentSlide;f.atEnd=(f.currentSlide==0)?true:false;f.eventType=("ontouchstart" in document.documentElement)?"touchstart":"click";f.cloneCount=0;f.cloneOffset=0;if(f.vars.controlsContainer!=""){f.controlsContainer=b(f.vars.controlsContainer).eq(b(".slides").index(f.container));f.containerExists=f.controlsContainer.length>0}if(f.vars.manualControls!=""){f.manualControls=b(f.vars.manualControls,((f.containerExists)?f.controlsContainer:f));f.manualExists=f.manualControls.length>0}if(f.vars.randomize){f.slides.sort(function(){return(Math.round(Math.random())-0.5)});f.container.empty().append(f.slides)}if(f.vars.animation.toLowerCase()=="slide"){f.css({overflow:"hidden"});if(f.vars.animationLoop){f.cloneCount=2;f.cloneOffset=1;f.container.append(f.slides.filter(":first").clone().addClass("clone")).prepend(f.slides.filter(":last").clone().addClass("clone"))}f.container.width(((f.count+f.cloneCount)*f.width())+2000);f.newSlides=b(".slides > li",f);setTimeout(function(){f.newSlides.width(f.width()).css({"float":"left"}).show()},100);f.container.css({marginLeft:(-1*(f.currentSlide+f.cloneOffset))*f.width()+"px"})}else{f.slides.css({width:"100%","float":"left",marginRight:"-100%"}).eq(f.currentSlide).fadeIn(400)}if(f.vars.controlNav){if(f.manualExists){f.controlNav=f.manualControls}else{var i=b('<ol class="flex-control-nav"></ol>');var m=1;for(var n=0;n<f.count;n++){i.append("<li><a>"+m+"</a></li>");m++}if(f.containerExists){b(f.controlsContainer).append(i);f.controlNav=b(".flex-control-nav li a",f.controlsContainer)}else{f.append(i);f.controlNav=b(".flex-control-nav li a",f)}}f.controlNav.eq(f.currentSlide).addClass("active");f.controlNav.bind(f.eventType,function(g){g.preventDefault();if(!b(this).hasClass("active")){f.flexAnimate(f.controlNav.index(b(this)),f.vars.pauseOnAction)}})}if(f.vars.directionNav){var d=b('<ul class="flex-direction-nav"><li><a class="prev" href="#">'+f.vars.prevText+'</a></li><li><a class="next" href="#">'+f.vars.nextText+"</a></li></ul>");if(f.containerExists){b(f.controlsContainer).append(d);f.directionNav=b(".flex-direction-nav li a",f.controlsContainer)}else{f.append(d);f.directionNav=b(".flex-direction-nav li a",f)}if(!f.vars.animationLoop){if(f.currentSlide==0){f.directionNav.filter(".prev").addClass("disabled")}else{if(f.currentSlide==f.count-1){f.directionNav.filter(".next").addClass("disabled")}}}f.directionNav.bind(f.eventType,function(g){g.preventDefault();var h=(b(this).hasClass("next"))?f.getTarget("next"):f.getTarget("prev");if(f.canAdvance(h)){f.flexAnimate(h,f.vars.pauseOnAction)}})}if(f.vars.keyboardNav&&b("ul.slides").length==1){b(document).keyup(function(g){if(f.animating){return}else{if(g.keyCode!=39&&g.keyCode!=37){return}else{if(g.keyCode==39){var h=f.getTarget("next")}else{if(g.keyCode==37){var h=f.getTarget("prev")}}if(f.canAdvance(h)){f.flexAnimate(h,f.vars.pauseOnAction)}}}})}if(f.vars.slideshow){if(f.vars.pauseOnHover&&f.vars.slideshow){f.hover(function(){f.pause()},function(){f.resume()})}f.animatedSlides=setInterval(f.animateSlides,f.vars.slideshowSpeed)}if(f.vars.pausePlay){var c=b('<div class="flex-pauseplay"><span></span></div>');if(f.containerExists){f.controlsContainer.append(c);f.pausePlay=b(".flex-pauseplay span",f.controlsContainer)}else{f.append(c);f.pausePlay=b(".flex-pauseplay span",f)}var j=(f.vars.slideshow)?"pause":"play";f.pausePlay.addClass(j).text(j);f.pausePlay.click(function(g){g.preventDefault();(b(this).hasClass("pause"))?f.pause():f.resume()})}if(f.vars.touchSwipe&&"ontouchstart" in document.documentElement){f.each(function(){var g,h=20;isMoving=false;function p(){this.removeEventListener("touchmove",k);g=null;isMoving=false}function k(v){if(isMoving){var o=v.touches[0].pageX,t=g-o;if(Math.abs(t)>=h){p();var u=(t>0)?f.getTarget("next"):f.getTarget("prev");if(f.canAdvance(u)){f.flexAnimate(u,f.vars.pauseOnAction)}}}}function l(o){if(o.touches.length==1){g=o.touches[0].pageX;isMoving=true;this.addEventListener("touchmove",k,false)}}if("ontouchstart" in document.documentElement){this.addEventListener("touchstart",l,false)}})}if(f.vars.animation.toLowerCase()=="slide"){f.sliderTimer;b(window).resize(function(){f.newSlides.width(f.width());f.container.width(((f.count+f.cloneCount)*f.width())+2000);clearTimeout(f.sliderTimer);f.sliderTimer=setTimeout(function(){f.flexAnimate(f.currentSlide)},300)})}f.vars.start(f)};f.flexAnimate=function(d,c){if(!f.animating){f.animating=true;if(c){f.pause()}if(f.vars.controlNav){f.controlNav.removeClass("active").eq(d).addClass("active")}f.atEnd=(d==0||d==f.count-1)?true:false;if(!f.vars.animationLoop){if(d==0){f.directionNav.removeClass("disabled").filter(".prev").addClass("disabled")}else{if(d==f.count-1){f.directionNav.removeClass("disabled").filter(".next").addClass("disabled");f.pause();f.vars.end(f)}else{f.directionNav.removeClass("disabled")}}}f.animatingTo=d;f.vars.before(f);if(f.vars.animation.toLowerCase()=="slide"){if(f.currentSlide==0&&d==f.count-1&&f.vars.animationLoop){f.slideString="0px"}else{if(f.currentSlide==f.count-1&&d==0&&f.vars.animationLoop){f.slideString=(-1*(f.count+1))*f.slides.filter(":first").width()+"px"}else{f.slideString=(-1*(d+f.cloneOffset))*f.slides.filter(":first").width()+"px"}}f.container.animate({marginLeft:f.slideString},f.vars.animationDuration,function(){if(f.currentSlide==0&&d==f.count-1&&f.vars.animationLoop){f.container.css({marginLeft:(-1*f.count)*f.slides.filter(":first").width()+"px"})}else{if(f.currentSlide==f.count-1&&d==0&&f.vars.animationLoop){f.container.css({marginLeft:-1*f.slides.filter(":first").width()+"px"})}}f.animating=false;f.currentSlide=d;f.vars.after(f)})}else{f.slides.eq(f.currentSlide).fadeOut(f.vars.animationDuration);f.slides.eq(d).fadeIn(f.vars.animationDuration,function(){f.animating=false;f.currentSlide=d;f.vars.after(f)})}}};f.animateSlides=function(){if(!f.animating){var c=(f.currentSlide==f.count-1)?0:f.currentSlide+1;f.flexAnimate(c)}};f.pause=function(){clearInterval(f.animatedSlides);if(f.vars.pausePlay){f.pausePlay.removeClass("pause").addClass("play").text("play")}};f.resume=function(){f.animatedSlides=setInterval(f.animateSlides,f.vars.slideshowSpeed);if(f.vars.pausePlay){f.pausePlay.removeClass("play").addClass("pause").text("pause")}};f.canAdvance=function(c){if(!f.vars.animationLoop&&f.atEnd){if(f.currentSlide==0&&c==f.count-1&&f.direction!="next"){return false}else{if(f.currentSlide==f.count-1&&c==0&&f.direction=="next"){return false}else{return true}}}else{return true}};f.getTarget=function(c){f.direction=c;if(c=="next"){return(f.currentSlide==f.count-1)?0:f.currentSlide+1}else{return(f.currentSlide==0)?f.count-1:f.currentSlide-1}};f.init()};b.flexslider.defaults={animation:"fade",slideshow:true,slideshowSpeed:7000,animationDuration:600,directionNav:true,controlNav:true,keyboardNav:true,touchSwipe:true,prevText:"Previous",nextText:"Next",pausePlay:false,randomize:false,slideToStart:0,animationLoop:true,pauseOnAction:true,pauseOnHover:false,controlsContainer:"",manualControls:"",start:function(){},before:function(){},after:function(){},end:function(){}};b.fn.flexslider=function(a){return this.each(function(){if(b(this).find(".slides li").length==1){b(this).find(".slides li").fadeIn(400)}else{if(b(this).data("flexslider")!=true){new b.flexslider(b(this),a)}}})}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(h,g,a,e,f){return jQuery.easing[jQuery.easing.def](h,g,a,e,f)},easeInQuad:function(h,g,a,e,f){return e*(g/=f)*g+a},easeOutQuad:function(h,g,a,e,f){return -e*(g/=f)*(g-2)+a},easeInOutQuad:function(h,g,a,e,f){if((g/=f/2)<1){return e/2*g*g+a}return -e/2*((--g)*(g-2)-1)+a},easeInCubic:function(h,g,a,e,f){return e*(g/=f)*g*g+a},easeOutCubic:function(h,g,a,e,f){return e*((g=g/f-1)*g*g+1)+a},easeInOutCubic:function(h,g,a,e,f){if((g/=f/2)<1){return e/2*g*g*g+a}return e/2*((g-=2)*g*g+2)+a},easeInQuart:function(h,g,a,e,f){return e*(g/=f)*g*g*g+a},easeOutQuart:function(h,g,a,e,f){return -e*((g=g/f-1)*g*g*g-1)+a},easeInOutQuart:function(h,g,a,e,f){if((g/=f/2)<1){return e/2*g*g*g*g+a}return -e/2*((g-=2)*g*g*g-2)+a},easeInQuint:function(h,g,a,e,f){return e*(g/=f)*g*g*g*g+a},easeOutQuint:function(h,g,a,e,f){return e*((g=g/f-1)*g*g*g*g+1)+a},easeInOutQuint:function(h,g,a,e,f){if((g/=f/2)<1){return e/2*g*g*g*g*g+a}return e/2*((g-=2)*g*g*g*g+2)+a},easeInSine:function(h,g,a,e,f){return -e*Math.cos(g/f*(Math.PI/2))+e+a},easeOutSine:function(h,g,a,e,f){return e*Math.sin(g/f*(Math.PI/2))+a},easeInOutSine:function(h,g,a,e,f){return -e/2*(Math.cos(Math.PI*g/f)-1)+a},easeInExpo:function(h,g,a,e,f){return(g==0)?a:e*Math.pow(2,10*(g/f-1))+a},easeOutExpo:function(h,g,a,e,f){return(g==f)?a+e:e*(-Math.pow(2,-10*g/f)+1)+a},easeInOutExpo:function(h,g,a,e,f){if(g==0){return a}if(g==f){return a+e}if((g/=f/2)<1){return e/2*Math.pow(2,10*(g-1))+a}return e/2*(-Math.pow(2,-10*--g)+2)+a},easeInCirc:function(h,g,a,e,f){return -e*(Math.sqrt(1-(g/=f)*g)-1)+a},easeOutCirc:function(h,g,a,e,f){return e*Math.sqrt(1-(g=g/f-1)*g)+a},easeInOutCirc:function(h,g,a,e,f){if((g/=f/2)<1){return -e/2*(Math.sqrt(1-g*g)-1)+a}return e/2*(Math.sqrt(1-(g-=2)*g)+1)+a},easeInElastic:function(l,k,f,g,h){var j=1.70158;var i=0;var e=g;if(k==0){return f}if((k/=h)==1){return f+g}if(!i){i=h*0.3}if(e<Math.abs(g)){e=g;var j=i/4}else{var j=i/(2*Math.PI)*Math.asin(g/e)}return -(e*Math.pow(2,10*(k-=1))*Math.sin((k*h-j)*(2*Math.PI)/i))+f},easeOutElastic:function(l,k,f,g,h){var j=1.70158;var i=0;var e=g;if(k==0){return f}if((k/=h)==1){return f+g}if(!i){i=h*0.3}if(e<Math.abs(g)){e=g;var j=i/4}else{var j=i/(2*Math.PI)*Math.asin(g/e)}return e*Math.pow(2,-10*k)*Math.sin((k*h-j)*(2*Math.PI)/i)+g+f},easeInOutElastic:function(l,k,f,g,h){var j=1.70158;var i=0;var e=g;if(k==0){return f}if((k/=h/2)==2){return f+g}if(!i){i=h*(0.3*1.5)}if(e<Math.abs(g)){e=g;var j=i/4}else{var j=i/(2*Math.PI)*Math.asin(g/e)}if(k<1){return -0.5*(e*Math.pow(2,10*(k-=1))*Math.sin((k*h-j)*(2*Math.PI)/i))+f}return e*Math.pow(2,-10*(k-=1))*Math.sin((k*h-j)*(2*Math.PI)/i)*0.5+g+f},easeInBack:function(i,h,a,e,f,g){if(g==undefined){g=1.70158}return e*(h/=f)*h*((g+1)*h-g)+a},easeOutBack:function(i,h,a,e,f,g){if(g==undefined){g=1.70158}return e*((h=h/f-1)*h*((g+1)*h+g)+1)+a},easeInOutBack:function(i,h,a,e,f,g){if(g==undefined){g=1.70158}if((h/=f/2)<1){return e/2*(h*h*(((g*=(1.525))+1)*h-g))+a}return e/2*((h-=2)*h*(((g*=(1.525))+1)*h+g)+2)+a},easeInBounce:function(h,g,a,e,f){return e-jQuery.easing.easeOutBounce(h,f-g,0,e,f)+a},easeOutBounce:function(h,g,a,e,f){if((g/=f)<(1/2.75)){return e*(7.5625*g*g)+a}else{if(g<(2/2.75)){return e*(7.5625*(g-=(1.5/2.75))*g+0.75)+a}else{if(g<(2.5/2.75)){return e*(7.5625*(g-=(2.25/2.75))*g+0.9375)+a}else{return e*(7.5625*(g-=(2.625/2.75))*g+0.984375)+a}}}},easeInOutBounce:function(h,g,a,e,f){if(g<f/2){return jQuery.easing.easeInBounce(h,g*2,0,e,f)*0.5+a}return jQuery.easing.easeOutBounce(h,g*2-f,0,e,f)*0.5+e*0.5+a}});$("#Form1").click(function(a){var b=a.pageX/2-$("#Form1").width();$("#waves").stop().animate({left:b+365+"px"},5000,"easeOutCubic");$("#moreWaves").stop().animate({left:b+"px"},5000,"easeOutSine")});(function(b){var c=function(u,y){var d=b.extend({},b.fn.nivoSlider.defaults,y),h={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:false,paused:false,stop:false},a=b(u);a.data("nivo:vars",h);a.css("position","relative");a.addClass("nivoSlider");var i=a.children();i.each(function(){var e=b(this),g="";if(!e.is("img")){if(e.is("a")){e.addClass("nivo-imageLink");g=e}e=e.find("img:first")}var f=e.width();if(f==0){f=e.attr("width")}var j=e.height();if(j==0){j=e.attr("height")}f>a.width()&&a.width(f);j>a.height()&&a.height(j);g!=""&&g.css("display","none");e.css("display","none");h.totalSlides++});if(d.startSlide>0){if(d.startSlide>=h.totalSlides){d.startSlide=h.totalSlides-1}h.currentSlide=d.startSlide}h.currentImage=b(i[h.currentSlide]).is("img")?b(i[h.currentSlide]):b(i[h.currentSlide]).find("img:first");b(i[h.currentSlide]).is("a")&&b(i[h.currentSlide]).css("display","block");a.css("background",'url("'+h.currentImage.attr("src")+'") no-repeat');for(var m=0;m<d.slices;m++){var o=Math.round(a.width()/d.slices);m==d.slices-1?a.append(b('<div class="nivo-slice"></div>').css({left:o*m+"px",width:a.width()-o*m+"px"})):a.append(b('<div class="nivo-slice"></div>').css({left:o*m+"px",width:o+"px"}))}a.append(b('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:d.captionOpacity}));if(h.currentImage.attr("title")!=""){m=h.currentImage.attr("title");if(m.substr(0,1)=="#"){m=b(m).html()}b(".nivo-caption p",a).html(m);b(".nivo-caption",a).fadeIn(d.animSpeed)}var n=0;if(!d.manualAdvance&&i.length>1){n=setInterval(function(){q(a,i,d,false)},d.pauseTime)}if(d.directionNav){a.append('<div class="nivo-directionNav"><a class="nivo-prevNav">Prev</a><a class="nivo-nextNav">Next</a></div>');if(d.directionNavHide){b(".nivo-directionNav",a).hide();a.hover(function(){b(".nivo-directionNav",a).show()},function(){b(".nivo-directionNav",a).hide()})}b("a.nivo-prevNav",a).live("click",function(){if(h.running){return false}clearInterval(n);n="";h.currentSlide-=2;q(a,i,d,"prev")});b("a.nivo-nextNav",a).live("click",function(){if(h.running){return false}clearInterval(n);n="";q(a,i,d,"next")})}if(d.controlNav){o=b('<div class="nivo-controlNav"></div>');a.append(o);for(m=0;m<i.length;m++){if(d.controlNavThumbs){var x=i.eq(m);x.is("img")||(x=x.find("img:first"));d.controlNavThumbsFromRel?o.append('<a class="nivo-control" rel="'+m+'"><img src="'+x.attr("rel")+'" alt="" /></a>'):o.append('<a class="nivo-control" rel="'+m+'"><img src="'+x.attr("src").replace(d.controlNavThumbsSearch,d.controlNavThumbsReplace)+'" alt="" /></a>')}else{o.append('<a class="nivo-control" rel="'+m+'">'+(m+1)+"</a>")}}b(".nivo-controlNav a:eq("+h.currentSlide+")",a).addClass("active");b(".nivo-controlNav a",a).live("click",function(){if(h.running){return false}if(b(this).hasClass("active")){return false}clearInterval(n);n="";a.css("background",'url("'+h.currentImage.attr("src")+'") no-repeat');h.currentSlide=b(this).attr("rel")-1;q(a,i,d,"control")})}d.keyboardNav&&b(window).keypress(function(e){if(e.keyCode=="37"){if(h.running){return false}clearInterval(n);n="";h.currentSlide-=2;q(a,i,d,"prev")}if(e.keyCode=="39"){if(h.running){return false}clearInterval(n);n="";q(a,i,d,"next")}});d.pauseOnHover&&a.hover(function(){h.paused=true;clearInterval(n);n=""},function(){h.paused=false;if(n==""&&!d.manualAdvance){n=setInterval(function(){q(a,i,d,false)},d.pauseTime)}});a.bind("nivo:animFinished",function(){h.running=false;b(i).each(function(){b(this).is("a")&&b(this).css("display","none")});b(i[h.currentSlide]).is("a")&&b(i[h.currentSlide]).css("display","block");if(n==""&&!h.paused&&!d.manualAdvance){n=setInterval(function(){q(a,i,d,false)},d.pauseTime)}d.afterChange.call(this)});var A=function(e,g){var f=0;b(".nivo-slice",e).each(function(){var k=b(this),j=Math.round(e.width()/g.slices);f==g.slices-1?k.css("width",e.width()-j*f+"px"):k.css("width",j+"px");f++})},q=function(e,j,f,p){var g=e.data("nivo:vars");g&&g.currentSlide==g.totalSlides-1&&f.lastSlide.call(this);if((!g||g.stop)&&!p){return false}f.beforeChange.call(this);if(p){p=="prev"&&e.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat');p=="next"&&e.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat')}else{e.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat')}g.currentSlide++;if(g.currentSlide==g.totalSlides){g.currentSlide=0;f.slideshowEnd.call(this)}if(g.currentSlide<0){g.currentSlide=g.totalSlides-1}g.currentImage=b(j[g.currentSlide]).is("img")?b(j[g.currentSlide]):b(j[g.currentSlide]).find("img:first");if(f.controlNav){b(".nivo-controlNav a",e).removeClass("active");b(".nivo-controlNav a:eq("+g.currentSlide+")",e).addClass("active")}if(g.currentImage.attr("title")!=""){var s=g.currentImage.attr("title");if(s.substr(0,1)=="#"){s=b(s).html()}b(".nivo-caption",e).css("display")=="block"?b(".nivo-caption p",e).fadeOut(f.animSpeed,function(){b(this).html(s);b(this).fadeIn(f.animSpeed)}):b(".nivo-caption p",e).html(s);b(".nivo-caption",e).fadeIn(f.animSpeed)}else{b(".nivo-caption",e).fadeOut(f.animSpeed)}var k=0;b(".nivo-slice",e).each(function(){var v=Math.round(e.width()/f.slices);b(this).css({height:"0px",opacity:"0",background:'url("'+g.currentImage.attr("src")+'") no-repeat -'+(v+k*v-v)+"px 0%"});k++});if(f.effect=="random"){j=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","slideInRight","slideInLeft"];g.randAnim=j[Math.floor(Math.random()*(j.length+1))];if(g.randAnim==undefined){g.randAnim="fade"}}if(f.effect.indexOf(",")!=-1){j=f.effect.split(",");g.randAnim=j[Math.floor(Math.random()*j.length)];if(g.randAnim==undefined){g.randAnim="fade"}}g.running=true;if(f.effect=="sliceDown"||f.effect=="sliceDownRight"||g.randAnim=="sliceDownRight"||f.effect=="sliceDownLeft"||g.randAnim=="sliceDownLeft"){var l=0;k=0;A(e,f);j=b(".nivo-slice",e);if(f.effect=="sliceDownLeft"||g.randAnim=="sliceDownLeft"){j=b(".nivo-slice",e)._reverse()}j.each(function(){var v=b(this);v.css({top:"0px"});k==f.slices-1?setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},f.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+l):setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},f.animSpeed)},100+l);l+=50;k++})}else{if(f.effect=="sliceUp"||f.effect=="sliceUpRight"||g.randAnim=="sliceUpRight"||f.effect=="sliceUpLeft"||g.randAnim=="sliceUpLeft"){k=l=0;A(e,f);j=b(".nivo-slice",e);if(f.effect=="sliceUpLeft"||g.randAnim=="sliceUpLeft"){j=b(".nivo-slice",e)._reverse()}j.each(function(){var v=b(this);v.css({bottom:"0px"});k==f.slices-1?setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},f.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+l):setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},f.animSpeed)},100+l);l+=50;k++})}else{if(f.effect=="sliceUpDown"||f.effect=="sliceUpDownRight"||g.randAnim=="sliceUpDown"||f.effect=="sliceUpDownLeft"||g.randAnim=="sliceUpDownLeft"){var t=k=l=0;A(e,f);j=b(".nivo-slice",e);if(f.effect=="sliceUpDownLeft"||g.randAnim=="sliceUpDownLeft"){j=b(".nivo-slice",e)._reverse()}j.each(function(){var v=b(this);if(k==0){v.css("top","0px");k++}else{v.css("bottom","0px");k=0}t==f.slices-1?setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},f.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+l):setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},f.animSpeed)},100+l);l+=50;t++})}else{if(f.effect=="fold"||g.randAnim=="fold"){k=l=0;A(e,f);b(".nivo-slice",e).each(function(){var v=b(this),w=v.width();v.css({top:"0px",height:"100%",width:"0px"});k==f.slices-1?setTimeout(function(){v.animate({width:w,opacity:"1.0"},f.animSpeed,"",function(){e.trigger("nivo:animFinished")})},100+l):setTimeout(function(){v.animate({width:w,opacity:"1.0"},f.animSpeed)},100+l);l+=50;k++})}else{if(f.effect=="fade"||g.randAnim=="fade"){var r=b(".nivo-slice:first",e);r.css({height:"100%",width:e.width()+"px"});r.animate({opacity:"1.0"},f.animSpeed*2,"",function(){e.trigger("nivo:animFinished")})}else{if(f.effect=="slideInRight"||g.randAnim=="slideInRight"){r=b(".nivo-slice:first",e);r.css({height:"100%",width:"0px",opacity:"1"});r.animate({width:e.width()+"px"},f.animSpeed*2,"",function(){e.trigger("nivo:animFinished")})}else{if(f.effect=="slideInLeft"||g.randAnim=="slideInLeft"){r=b(".nivo-slice:first",e);r.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"});r.animate({width:e.width()+"px"},f.animSpeed*2,"",function(){r.css({left:"0px",right:""});e.trigger("nivo:animFinished")})}}}}}}}},B=function(e){this.console&&typeof console.log!="undefined"&&console.log(e)};this.stop=function(){if(!b(u).data("nivo:vars").stop){b(u).data("nivo:vars").stop=true;B("Stop Slider")}};this.start=function(){if(b(u).data("nivo:vars").stop){b(u).data("nivo:vars").stop=false;B("Start Slider")}};d.afterLoad.call(this)};b.fn.nivoSlider=function(a){return this.each(function(){var e=b(this);if(!e.data("nivoslider")){var d=new c(this,a);e.data("nivoslider",d)}})};b.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(){},lastSlide:function(){},afterLoad:function(){}};b.fn._reverse=[].reverse})(jQuery);(function(ac,ae,ah){function ag(a){if(!aR){aH=a,a3(ac.extend(ax,ac.data(aH,al))),aY=ac(aH),aJ=0,ax.rel!=="nofollow"&&(aY=ac("."+aV).filter(function(){var c=ac.data(this,al).rel||this.rel;return c===ax.rel}),aJ=aY.index(aH),aJ===-1&&(aY=aY.add(aH),aJ=aY.length-1));if(!aN){aN=aP=!0,aK.show();if(ax.returnFocus){try{aH.blur(),ac(aH).one(ay,function(){try{this.focus()}catch(b){}})}catch(d){}}aI.css({opacity:+ax.opacity,cursor:ax.overlayClose?"pointer":"auto"}).show(),ax.w=aZ(ax.initialWidth,"x"),ax.h=aZ(ax.initialHeight,"y"),aT.position(0),aE&&a0.bind("resize."+aG+" scroll."+aG,function(){aI.css({width:a0.width(),height:a0.height(),top:a0.scrollTop(),left:a0.scrollLeft()})}).trigger("resize."+aG),aa(ap,ax.onOpen),av.add(ai).hide(),at.html(ax.close).show()}aT.load(!0)}}function ab(){var f,h=an+"Slideshow_",i="click."+an,j,k,l;ax.slideshow&&aY[1]&&(j=function(){am.text(ax.slideshowStop).unbind(i).bind(au,function(){if(aJ<aY.length-1||ax.loop){f=setTimeout(aT.next,ax.slideshowSpeed)}}).bind(ar,function(){clearTimeout(f)}).one(i+" "+aw,k),aK.removeClass(h+"off").addClass(h+"on"),f=setTimeout(aT.next,ax.slideshowSpeed)},k=function(){clearTimeout(f),am.text(ax.slideshowStart).unbind([au,ar,aw,i].join(" ")).one(i,j),aK.removeClass(h+"on").addClass(h+"off")},ax.slideshowAuto?j():k())}function aa(a,d){d&&d.call(aH),ac.event.trigger(a)}function a3(a){for(var d in a){ac.isFunction(a[d])&&d.substring(0,2)!=="on"&&(a[d]=a[d].call(aH))}a.rel=a.rel||aH.rel||"nofollow",a.href=ac.trim(a.href||ac(aH).attr("href")),a.title=a.title||aH.title}function a1(b){return ax.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(b)}function aZ(c,d){d=d==="x"?a0.width():a0.height();return typeof c=="string"?Math.round(/%/.test(c)?d/100*parseInt(c,10):parseInt(c,10)):c}function aX(a,b){var f=ae.createElement("div");f.id=a?an+a:!1,f.style.cssText=b||!1;return ac(f)}var aj={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0},al="colorbox",an="cbox",ap=an+"_open",ar=an+"_load",au=an+"_complete",aw=an+"_cleanup",ay=an+"_closed",aA=an+"_purge",aC=ac.browser.msie&&!ac.support.opacity,aE=aC&&ac.browser.version<7,aG=an+"_IE6",aI,aK,aM,aO,aQ,aS,aU,aW,aY,a0,a2,ad,af,ai,ak,am,ao,aq,at,av,ax={},az,aB,aD,aF,aH,aJ,aL,aN,aP,aR=!1,aT,aV=an+"Element";aT=ac.fn[al]=ac[al]=function(a,d){var e=this,h;if(!e[0]&&e.selector){return e}a=a||{},d&&(a.onComplete=d);if(!e[0]||e.selector===undefined){e=ac("<a/>"),a.open=!0}e.each(function(){ac.data(this,al,ac.extend({},ac.data(this,al)||aj,a)),ac(this).addClass(aV)}),h=a.open,ac.isFunction(h)&&(h=h.call(e)),h&&ag(e[0]);return e},aT.init=function(){a0=ac(ah),aK=aX().attr({id:al,"class":aC?an+(aE?"IE6":"IE"):""}),aI=aX("Overlay",aE?"position:absolute":"").hide(),aM=aX("Wrapper"),aO=aX("Content").append(a2=aX("LoadedContent","width:0; height:0; overflow:hidden"),af=aX("LoadingOverlay").add(aX("LoadingGraphic")),ai=aX("Title"),ak=aX("Current"),ao=aX("Next"),aq=aX("Previous"),am=aX("Slideshow").bind(ap,ab),at=aX("Close")),aM.append(aX().append(aX("TopLeft"),aQ=aX("TopCenter"),aX("TopRight")),aX(!1,"clear:left").append(aS=aX("MiddleLeft"),aO,aU=aX("MiddleRight")),aX(!1,"clear:left").append(aX("BottomLeft"),aW=aX("BottomCenter"),aX("BottomRight"))).children().children().css({"float":"left"}),ad=aX(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),ac("body").prepend(aI,aK.append(aM,ad)),aO.children().hover(function(){ac(this).addClass("hover")},function(){ac(this).removeClass("hover")}).addClass("hover"),az=aQ.height()+aW.height()+aO.outerHeight(!0)-aO.height(),aB=aS.width()+aU.width()+aO.outerWidth(!0)-aO.width(),aD=a2.outerHeight(!0),aF=a2.outerWidth(!0),aK.css({"padding-bottom":az,"padding-right":aB}).hide(),ao.click(function(){aT.next()}),aq.click(function(){aT.prev()}),at.click(function(){aT.close()}),av=ao.add(aq).add(ak).add(am),aO.children().removeClass("hover"),ac("."+aV).live("click",function(b){b.button!==0&&typeof b.button!="undefined"||b.ctrlKey||b.shiftKey||b.altKey||(b.preventDefault(),ag(this))}),aI.click(function(){ax.overlayClose&&aT.close()}),ac(ae).bind("keydown",function(b){aN&&ax.escKey&&b.keyCode===27&&(b.preventDefault(),aT.close()),aN&&ax.arrowKey&&!aP&&aY[1]&&(b.keyCode===37&&(aJ||ax.loop)?(b.preventDefault(),aq.click()):b.keyCode===39&&(aJ<aY.length-1||ax.loop)&&(b.preventDefault(),ao.click()))})},aT.remove=function(){aK.add(aI).remove(),ac("."+aV).die("click").removeData(al).removeClass(aV)},aT.position=function(b,h){function l(c){aQ[0].style.width=aW[0].style.width=aO[0].style.width=c.style.width,af[0].style.height=af[1].style.height=aO[0].style.height=aS[0].style.height=aU[0].style.height=c.style.height}var i,j=Math.max(ae.documentElement.clientHeight-ax.h-aD-az,0)/2+a0.scrollTop(),k=Math.max(a0.width()-ax.w-aF-aB,0)/2+a0.scrollLeft();i=aK.width()===ax.w+aF&&aK.height()===ax.h+aD?0:b,aM[0].style.width=aM[0].style.height="9999px",aK.dequeue().animate({width:ax.w+aF,height:ax.h+aD,top:j,left:k},{duration:i,complete:function(){l(this),aP=!1,aM[0].style.width=ax.w+aF+aB+"px",aM[0].style.height=ax.h+aD+az+"px",h&&h()},step:function(){l(this)}})},aT.resize=function(c){if(aN){c=c||{},c.width&&(ax.w=aZ(c.width,"x")-aF-aB),c.innerWidth&&(ax.w=aZ(c.innerWidth,"x")),a2.css({width:ax.w}),c.height&&(ax.h=aZ(c.height,"y")-aD-az),c.innerHeight&&(ax.h=aZ(c.innerHeight,"y"));if(!c.innerHeight&&!c.height){var d=a2.wrapInner("<div style='overflow:auto'></div>").children();ax.h=d.height(),d.replaceWith(d.children())}a2.css({height:ax.h}),aT.position(ax.transition==="none"?0:ax.speed)}},aT.prep=function(a){function j(c){aT.position(c,function(){var l,m,o,p,q=aY.length,r,s;!aN||(s=function(){af.hide(),aa(au,ax.onComplete)},aC&&aL&&a2.fadeIn(100),ai.html(ax.title).add(a2).show(),q>1?(typeof ax.current=="string"&&ak.html(ax.current.replace(/\{current\}/,aJ+1).replace(/\{total\}/,q)).show(),ao[ax.loop||aJ<q-1?"show":"hide"]().html(ax.next),aq[ax.loop||aJ?"show":"hide"]().html(ax.previous),l=aJ?aY[aJ-1]:aY[q-1],o=aJ<q-1?aY[aJ+1]:aY[0],ax.slideshow&&am.show(),ax.preloading&&(p=ac.data(o,al).href||o.href,m=ac.data(l,al).href||l.href,p=ac.isFunction(p)?p.call(o):p,m=ac.isFunction(m)?m.call(l):m,a1(p)&&(ac("<img/>")[0].src=p),a1(m)&&(ac("<img/>")[0].src=m))):av.hide(),ax.iframe?(r=ac("<iframe frameborder=0/>").addClass(an+"Iframe")[0],ax.fastIframe?s():ac(r).load(s),r.name=an+ +(new Date),r.src=ax.href,ax.scrolling||(r.scrolling="no"),aC&&(r.allowTransparency="true"),ac(r).appendTo(a2).one(aA,function(){r.src="//about:blank"})):s(),ax.transition==="fade"?aK.fadeTo(e,1,function(){aK[0].style.filter=""}):aK[0].style.filter="",a0.bind("resize."+an,function(){aT.position(0)}))})}function i(){ax.h=ax.h||a2.height(),ax.h=ax.mh&&ax.mh<ax.h?ax.mh:ax.h;return ax.h}function f(){ax.w=ax.w||a2.width(),ax.w=ax.mw&&ax.mw<ax.w?ax.mw:ax.w;return ax.w}if(!!aN){var e=ax.transition==="none"?0:ax.speed;a0.unbind("resize."+an),a2.remove(),a2=aX("LoadedContent").html(a),a2.hide().appendTo(ad.show()).css({width:f(),overflow:ax.scrolling?"auto":"hidden"}).css({height:i()}).prependTo(aO),ad.hide(),ac(aL).css({"float":"none"}),aE&&ac("select").not(aK.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(aw,function(){this.style.visibility="inherit"}),ax.transition==="fade"?aK.fadeTo(e,0,function(){j(0)}):j(e)}},aT.load=function(a){var e,f,h=aT.prep;aP=!0,aL=!1,aH=aY[aJ],a||a3(ac.extend(ax,ac.data(aH,al))),aa(aA),aa(ar,ax.onLoad),ax.h=ax.height?aZ(ax.height,"y")-aD-az:ax.innerHeight&&aZ(ax.innerHeight,"y"),ax.w=ax.width?aZ(ax.width,"x")-aF-aB:ax.innerWidth&&aZ(ax.innerWidth,"x"),ax.mw=ax.w,ax.mh=ax.h,ax.maxWidth&&(ax.mw=aZ(ax.maxWidth,"x")-aF-aB,ax.mw=ax.w&&ax.w<ax.mw?ax.w:ax.mw),ax.maxHeight&&(ax.mh=aZ(ax.maxHeight,"y")-aD-az,ax.mh=ax.h&&ax.h<ax.mh?ax.h:ax.mh),e=ax.href,af.show(),ax.inline?(aX().hide().insertBefore(ac(e)[0]).one(aA,function(){ac(this).replaceWith(a2.children())}),h(ac(e))):ax.iframe?h(" "):ax.html?h(ax.html):a1(e)?(ac(aL=new Image).addClass(an+"Photo").error(function(){ax.title=!1,h(aX("Error").text("This image could not be loaded"))}).load(function(){var b;aL.onload=null,ax.scalePhotos&&(f=function(){aL.height-=aL.height*b,aL.width-=aL.width*b},ax.mw&&aL.width>ax.mw&&(b=(aL.width-ax.mw)/aL.width,f()),ax.mh&&aL.height>ax.mh&&(b=(aL.height-ax.mh)/aL.height,f())),ax.h&&(aL.style.marginTop=Math.max(ax.h-aL.height,0)/2+"px"),aY[1]&&(aJ<aY.length-1||ax.loop)&&(aL.style.cursor="pointer",aL.onclick=function(){aT.next()}),aC&&(aL.style.msInterpolationMode="bicubic"),setTimeout(function(){h(aL)},1)}),setTimeout(function(){aL.src=e},1)):e&&ad.load(e,function(g,i,j){h(i==="error"?aX("Error").text("Request unsuccessful: "+j.statusText):ac(this).contents())})},aT.next=function(){aP||(aJ=aJ<aY.length-1?aJ+1:0,aT.load())},aT.prev=function(){aP||(aJ=aJ?aJ-1:aY.length-1,aT.load())},aT.close=function(){aN&&!aR&&(aR=!0,aN=!1,aa(aw,ax.onCleanup),a0.unbind("."+an+" ."+aG),aI.fadeTo(200,0),aK.stop().fadeTo(300,0,function(){aK.add(aI).css({opacity:1,cursor:"auto"}).hide(),aa(aA),a2.remove(),setTimeout(function(){aR=!1,aa(ay,ax.onClosed)},1)}))},aT.element=function(){return ac(aH)},aT.settings=aj,ac(aT.init)})(jQuery,document,this);$(document).ready(function(){$(".colorBox").colorbox({iframe:true,innerWidth:660,innerHeight:440})});
