(function(D){var B="serialScroll",A="."+B,F="bind",E=D[B]=function(C){D.scrollTo.window()[B](C)};E.defaults={duration:1000,axis:"x",event:"click",start:0,step:1,lock:1,cycle:1,constant:1};D.fn[B]=function(I){I=D.extend({},E.defaults,I);var G=I.event,C=I.step,H=I.lazy;return this.each(function(){var Q=I.target?this:document,P=D(I.target||this,Q),O=P[0],N=I.items,M=I.start,L=I.interval,K=I.navigation,J;if(!H){N=S()}if(I.force){V({},M)}D(I.prev||[],Q)[F](G,-C,W);D(I.next||[],Q)[F](G,C,W);if(!O.ssbound){P[F]("prev"+A,-C,W)[F]("next"+A,C,W)[F]("goto"+A,V)}if(L){P[F]("start"+A,function(X){if(!L){T();L=1;U()}})[F]("stop"+A,function(){T();L=0})}P[F]("notify"+A,function(Z,X){var Y=R(X);if(Y>-1){M=Y}});O.ssbound=1;if(I.jump){(H?P:S())[F](G,function(X){V(X,R(X.target))})}if(K){K=D(K,Q)[F](G,function(X){X.data=Math.round(S().length/K.length)*K.index(this);V(X,this)})}function W(X){X.data+=M;V(X,this)}function V(k,o){if(!isNaN(o)){k.data=o;o=O}var m=k.data,X,l=k.type,j=I.exclude?S().slice(0,-I.exclude):S(),b=j.length,Z=j[m],Y=I.duration;if(l){k.preventDefault()}if(L){T();J=setTimeout(U,I.interval)}if(!Z){X=m<0?0:X=b-1;if(M!=X){m=X}else{if(!I.cycle){return }else{m=b-X-1}}Z=j[m]}if(!Z||l&&M==m||I.lock&&P.is(":animated")||l&&I.onBefore&&I.onBefore.call(o,k,Z,P,S(),m)===!1){return }if(I.stop){P.queue("fx",[]).stop()}if(I.constant){Y=Math.abs(Y/C*(M-m))}P.scrollTo(Z,Y,I).trigger("notify"+A,[m])}function U(){P.trigger("next"+A)}function T(){clearTimeout(J)}function S(){return D(N,O)}function R(Y){if(!isNaN(Y)){return Y}var X=S(),Z;while((Z=X.index(Y))==-1&&Y!=O){Y=Y.parentNode}return Z}})}})(jQuery);(function(B){var C=B.scrollTo=function(E,D,F){C.window().scrollTo(E,D,F)};C.defaults={axis:"y",duration:1};C.window=function(){return B(B.browser.safari?"body":"html")};B.fn.scrollTo=function(E,D,F){if(typeof D=="object"){F=D;D=0}F=B.extend({},C.defaults,F);D=D||F.speed||F.duration;F.queue=F.queue&&F.axis.length>1;if(F.queue){D/=2}F.offset=A(F.offset);F.over=A(F.over);return this.each(function(){var I=this,G=B(I),J=E,N,M={},H=G.is("html,body");switch(typeof J){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(J)){J=A(J);break}J=B(J,this);case"object":if(J.is||J.style){N=(J=B(J)).offset()}}B.each(F.axis.split(""),function(Q,S){var R=S=="x"?"Left":"Top",V=R.toLowerCase(),O="scroll"+R,U=I[O],T=S=="x"?"Width":"Height";if(N){M[O]=N[V]+(H?0:U-G.offset()[V]);if(F.margin){M[O]-=parseInt(J.css("margin"+R))||0;M[O]-=parseInt(J.css("border"+R+"Width"))||0}M[O]+=F.offset[V]||0;if(F.over[V]){M[O]+=J[T.toLowerCase()]()*F.over[V]}}else{M[O]=J[V]}if(/^\d+$/.test(M[O])){M[O]=M[O]<=0?0:Math.min(M[O],K(T))}if(!Q&&F.queue){if(U!=M[O]){L(F.onAfterFirst)}delete M[O]}});L(F.onAfter);function L(O){G.animate(M,D,F.easing,O&&function(){O.call(this,E)})}function K(P){var O=H?B.browser.opera?document.body:document.documentElement:I;return O["scroll"+P]-O["client"+P]}})};function A(D){return typeof D=="object"?D:{top:D,left:D}}})(jQuery);(function(D){var C=location.href.replace(/#.*/,""),B=D.localScroll=function(E){D("body").localScroll(E)};B.defaults={duration:1000,axis:"y",event:"click",stop:1};B.hash=function(E){E=D.extend({},B.defaults,E);E.hash=0;if(location.hash){setTimeout(function(){A(0,location,E)},0)}};D.fn.localScroll=function(E){E=D.extend({},B.defaults,E);return(E.persistent||E.lazy)?this.bind(E.event,function(H){var G=D([H.target,H.target.parentNode]).filter(F)[0];G&&A(H,G,E)}):this.find("a,area").filter(F).bind(E.event,function(G){A(G,this,E)}).end().end();function F(){var G=this;return !!G.href&&!!G.hash&&G.href.replace(G.hash,"")==C&&(!E.filter||D(G).is(E.filter))}};function A(H,F,E){var J=F.hash.slice(1),I=document.getElementById(J)||document.getElementsByName(J)[0],G;if(I){H&&H.preventDefault();G=D(E.target||D.scrollTo.window());if(E.lock&&G.is(":animated")||E.onBefore&&E.onBefore.call(F,H,I,G)===!1){return }if(E.stop){G.queue("fx",[]).stop()}G.scrollTo(I,E).trigger("notify.serialScroll",[I]);if(E.hash){G.queue(function(){location=F.hash;D(this).dequeue()})}}}})(jQuery);jQuery.fn.nospam=function(A){A=jQuery.extend({replaceText:false,filterLevel:"normal"},A);return this.each(function(){e=null;if(A.filterLevel=="low"){if($(this).is("a[rel]")){e=$(this).attr("rel").replace("..","@").replace(".",".")}else{e=$(this).text().replace("..","@").replace(".",".")}}else{if($(this).is("a[rel]")){e=$(this).attr("rel").split("").reverse().join("").replace("..","@").replace(".",".")}else{e=$(this).text().split("").reverse().join("").replace("..","@").replace(".",".")}}if(e){if($(this).is("a[rel]")){$(this).attr("href","mailto:"+e);if(A.replaceText){$(this).text(e)}}else{$(this).text(e)}}})};$(document).ready(function(){if($("#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:true});var E=$("#slider .scrollContainer > div");var H=$("#slider .scrollContainer");var B=true;if(B){E.css({"float":"left",position:"relative"});H.css("width",E[0].offsetWidth*E.length)}var D=$("#slider .scroll").css("overflow","hidden");D.before('<div class="scrollButtons left"></div>').after('<div class="scrollButtons right"></div>');function A(){$(this).parents("ul:first").find("a").removeClass("selected").end().end().addClass("selected")}$("#slider .navigation").find("a").click(A);function C(J){var I=$("#slider .navigation").find('a[href$="'+J.id+'"]').get(0);A.call(I)}if(window.location.hash){C({id:window.location.hash.substr(1)})}else{$("ul.navigation a:first").click()}var G=parseInt((B?H.css("paddingTop"):H.css("paddingLeft"))||0)*-1;var F={target:D,items:E,navigation:".navigation a",prev:"div.left",next:"div.right",axis:"xy",onAfter:C,offset:G,duration:450};$("#slider").serialScroll(F);F.duration=1;$.localScroll.hash(F)});