(function(c){function j(g,b,d,f){if(!b.busy){var a=g[0].parentNode,h=g[b.currSlide],i=g[b.nextSlide];if(a.cycleTimeout!==0||d){if(d||!a.cyclePause){b.before.length&&c.each(b.before,function(a,c){c.apply(i,[h,i,b,f])});d=function(){c.browser.msie&&this.style.removeAttribute("filter");c.each(b.after,function(a,c){c.apply(i,[h,i,b,f])})};if(b.nextSlide!=b.currSlide)b.busy=1,c.fn.cycle.custom(h,i,b,d);d=b.nextSlide+1==g.length;b.nextSlide=d?0:b.nextSlide+1;b.currSlide=d?g.length-1:b.nextSlide-1}if(b.timeout)a.cycleTimeout=
setTimeout(function(){j(g,b,0,!b.rev)},b.timeout)}}}function k(c,b,d){var f=c[0].parentNode,a=f.cycleTimeout;if(a)clearTimeout(a),f.cycleTimeout=0;b.nextSlide=b.currSlide+d;if(b.nextSlide<0)b.nextSlide=c.length-1;else if(b.nextSlide>=c.length)b.nextSlide=0;j(c,b,1,d>=0);return!1}c.fn.cycle=function(g){return this.each(function(){g=g||{};this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var b=c(this),d=g.slideExpr?c(g.slideExpr,this):b.children(),f=d.get();if(f.length<
2)window.console&&window.console.log&&window.console.log("terminating; too few slides: "+f.length);else{var a=c.extend({},c.fn.cycle.defaults,g||{},c.metadata?b.metadata():c.meta?b.data():{});a.before=a.before?[a.before]:[];a.after=a.after?[a.after]:[];a.after.unshift(function(){a.busy=0});var h=this.className;a.width=parseInt((h.match(/w:(\d+)/)||[])[1])||a.width;a.height=parseInt((h.match(/h:(\d+)/)||[])[1])||a.height;a.timeout=parseInt((h.match(/t:(\d+)/)||[])[1])||a.timeout;b.css("position")==
"static"&&b.css("position","relative");a.width&&b.width(a.width);a.height&&a.height!="auto"&&b.height(a.height);d.css({position:"absolute",top:0,left:0,cursor:"pointer"}).hide().each(function(a){c(this).css("z-index",f.length-a)});c(f[0]).css("opacity",1).show();c.browser.msie&&f[0].style.removeAttribute("filter");a.fit&&a.width&&d.width(a.width);a.fit&&a.height&&a.height!="auto"&&d.height(a.height);a.pause&&b.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});c.fn.cycle.transitions.fade(b,
d,a);d.each(function(){var b=c(this);this.cycleH=a.fit&&a.height?a.height:b.height();this.cycleW=a.fit&&a.width?a.width:b.width()});d.not(":eq(0)").css({opacity:0});a.cssFirst&&c(d[0]).css(a.cssFirst);if(a.timeout){if(a.speed.constructor==String)a.speed={slow:600,fast:200}[a.speed]||400;for(a.sync||(a.speed/=2);a.timeout-a.speed<250;)a.timeout+=a.speed}a.speedIn=a.speed;a.speedOut=a.speed;a.slideCount=f.length;a.currSlide=0;a.nextSlide=1;b=d[0];a.before.length&&a.before[0].apply(b,[b,b,a,!0]);a.after.length>
1&&a.after[1].apply(b,[b,b,a,!0]);if(a.click&&!a.next)a.next=a.click;a.next&&c(a.next).bind("click",function(){return k(f,a,a.rev?-1:1)});a.prev&&c(a.prev).bind("click",function(){return k(f,a,a.rev?1:-1)});if(a.timeout)this.cycleTimeout=setTimeout(function(){j(f,a,0,!a.rev)},a.timeout+(a.delay||0))}})};c.fn.cycle.custom=function(g,b,d,f){var a=c(g),h=c(b);h.css({opacity:0});var i=function(){h.animate({opacity:1},d.speedIn,d.easeIn,f)};a.animate({opacity:0},d.speedOut,d.easeOut,function(){a.css({display:"none"});
d.sync||i()});d.sync&&i()};c.fn.cycle.transitions={fade:function(g,b,d){b.not(":eq(0)").css("opacity",0);d.before.push(function(){c(this).show()})}};c.fn.cycle.ver=function(){return"Lite-1.0"};c.fn.cycle.defaults={timeout:4E3,speed:1E3,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);
jQuery.fn.nospam=function(c){c=jQuery.extend({replaceText:!1,filterLevel:"normal"},c);return this.each(function(){e=null;if(e=c.filterLevel=="low"?$(this).is("a[rel]")?$(this).attr("rel").replace("..","@").replace(".","."):$(this).text().replace("..","@").replace(".","."):$(this).is("a[rel]")?$(this).attr("rel").split("").reverse().join("").replace("..","@").replace(".","."):$(this).text().split("").reverse().join("").replace("..","@").replace(".","."))$(this).is("a[rel]")?($(this).attr("href","mailto:"+
e),c.replaceText&&$(this).text(e)):$(this).text(e)})};
$(document).ready(function(){$("#logoimage")[0].offsetWidth==277&&$("h1.img,h2.img").each(function(){string=$(this).text();filename=string.toLowerCase().replace(/ /g,"-").replace(/([^0-9a-z-])/g,"");$(this).html('<img src="/images/'+filename+'.png" alt="'+string+'" />')});$("a.email").nospam({replaceText:!0});$("#slideshow1").cycle({next:"#next1",timeout:0});$("#slideshow2").cycle({next:"#next2",timeout:0});$("#slideshow3").cycle({next:"#next3",timeout:0});$("#slideshow4").cycle({next:"#next4",timeout:0});
$("#slideshow5").cycle({next:"#next5",timeout:0});$("#slideshow6").cycle({next:"#next6",timeout:0});$("#slideshow7").cycle({next:"#next7",timeout:0})});
