var id = '#banners'; var active; var next; var timeID;
function slideSwitch() { active = $(id + ' IMG.active'); if ( active.length == 0 ) active = $(id + ' IMG:last');  next = active.next().length ? active.next() : $('#Start'); active.addClass('last-active'); $('#bannerText').animate({opacity: 0.0}, 1000, function() { timeID = setInterval( 'fadeInText()', 1000 ); }); next.css({opacity: 0.0}).addClass('active').animate({opacity: 1.0}, 1000, function() { 	active.removeClass('active last-active'); });
}function fadeInText() { $('#bannerText').html( next.attr("title") );  $('#bannerText').animate({opacity: 1.0}, 1000, function() { 	clearTimeout ( timeID ); });
}$(function() { $('#bannerText').html( $(id + ' IMG.active').attr("title") ); setInterval( "slideSwitch()", 5500 ); });

/* jQuery.ScrollTo - Easy element scrolling using jQuery. Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com Dual licensed under MIT and GPL. Date: 3/9/2009 @author Ariel Flesler @version 1.4.1 http://flesler.blogspot.com/2007/10/jqueryscrollto.html */
;(function($){var m=$.scrollTo=function(b,h,f){$(window).scrollTo(b,h,f)};m.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1};m.window=function(b){return $(window).scrollable()};$.fn.scrollable=function(){return this.map(function(){var b=this,h=!b.nodeName||$.inArray(b.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!h)return b;var f=(b.contentWindow||b).document||b.ownerDocument||b;return $.browser.safari||f.compatMode=='BackCompat'?f.body:f.documentElement})};$.fn.scrollTo=function(l,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};if(l=='max')l=9e9;a=$.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=$(k),d=l,p,g={},q=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px)?$/.test(d)){d=n(d);break}d=$(d,this);case'object':if(d.is||d.style)p=(d=$(d)).offset()}$.each(a.axis.split(''),function(b,h){var f=h=='x'?'Left':'Top',i=f.toLowerCase(),c='scroll'+f,r=k[c],s=h=='x'?'Width':'Height';if(p){g[c]=p[i]+(q?0:r-o.offset()[i]);if(a.margin){g[c]-=parseInt(d.css('margin'+f))||0;g[c]-=parseInt(d.css('border'+f+'Width'))||0}g[c]+=a.offset[i]||0;if(a.over[i])g[c]+=d[s.toLowerCase()]()*a.over[i]}else g[c]=d[i];if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],u(s));if(!b&&a.queue){if(r!=g[c])t(a.onAfterFirst);delete g[c]}});t(a.onAfter);function t(b){o.animate(g,j,a.easing,b&&function(){b.call(this,l,a)})};function u(b){var h='scroll'+b;if(!q)return k[h];var f='client'+b,i=k.ownerDocument.documentElement,c=k.ownerDocument.body;return Math.max(i[h],c[h])-Math.min(i[f],c[f])}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);

/* jQuery.LocalScroll - Animated scrolling navigation, using anchors. Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com Dual licensed under MIT and GPL. Date: 3/11/2009 @author Ariel Flesler @version 1.2.7 */
;(function($){var l=location.href.replace(/#.*/,'');var g=$.localScroll=function(a){$('body').localScroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=$.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;$(a.target).scrollTo(0,a);a.duration=e}i(0,location,a)}};$.fn.localScroll=function(b){b=$.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=$([a.target,a.target.parentNode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||$(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getElementById(d)||document.getElementsByName(d)[0];if(!f)return;if(a)a.preventDefault();var h=$(b.target);if(b.lock&&h.is(':animated')||b.onBefore&&b.onBefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=$('<a> </a>').attr(j,d).css({position:'absolute',top:$(window).scrollTop(),left:$(window).scrollLeft()});f[j]='';$('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollTo(f,b).trigger('notify.serialScroll',[f])}})(jQuery);

/*
 * jQuery Cycle Lite Plugin
 * http://malsup.com/jquery/cycle/lite/
 * Copyright (c) 2008 M. Alsup
 * Version: 1.0 (06/08/2008)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.2.3 or later
 */
;(function(D){var A="Lite-1.0";D.fn.cycle=function(E){return this.each(function(){E=E||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var I=D(this);var J=E.slideExpr?D(E.slideExpr,this):I.children();var G=J.get();if(G.length<2){if(window.console&&window.console.log){window.console.log("terminating; too few slides: "+G.length)}return }var H=D.extend({},D.fn.cycle.defaults,E||{},D.metadata?I.metadata():D.meta?I.data():{});H.before=H.before?[H.before]:[];H.after=H.after?[H.after]:[];H.after.unshift(function(){H.busy=0});var F=this.className;H.width=parseInt((F.match(/w:(\d+)/)||[])[1])||H.width;H.height=parseInt((F.match(/h:(\d+)/)||[])[1])||H.height;H.timeout=parseInt((F.match(/t:(\d+)/)||[])[1])||H.timeout;if(I.css("position")=="static"){I.css("position","relative")}if(H.width){I.width(H.width)}if(H.height&&H.height!="auto"){I.height(H.height)}var K=0;J.css({position:"absolute",top:0,left:0}).hide().each(function(M){D(this).css("z-index",G.length-M)});D(G[K]).css("opacity",1).show();if(D.browser.msie){G[K].style.removeAttribute("filter")}if(H.fit&&H.width){J.width(H.width)}if(H.fit&&H.height&&H.height!="auto"){J.height(H.height)}if(H.pause){I.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}D.fn.cycle.transitions.fade(I,J,H);J.each(function(){var M=D(this);this.cycleH=(H.fit&&H.height)?H.height:M.height();this.cycleW=(H.fit&&H.width)?H.width:M.width()});J.not(":eq("+K+")").css({opacity:0});if(H.cssFirst){D(J[K]).css(H.cssFirst)}if(H.timeout){if(H.speed.constructor==String){H.speed={slow:600,fast:200}[H.speed]||400}if(!H.sync){H.speed=H.speed/2}while((H.timeout-H.speed)<250){H.timeout+=H.speed}}H.speedIn=H.speed;H.speedOut=H.speed;H.slideCount=G.length;H.currSlide=K;H.nextSlide=1;var L=J[K];if(H.before.length){H.before[0].apply(L,[L,L,H,true])}if(H.after.length>1){H.after[1].apply(L,[L,L,H,true])}if(H.click&&!H.next){H.next=H.click}if(H.next){D(H.next).bind("click",function(){return C(G,H,H.rev?-1:1)})}if(H.prev){D(H.prev).bind("click",function(){return C(G,H,H.rev?1:-1)})}if(H.timeout){this.cycleTimeout=setTimeout(function(){B(G,H,0,!H.rev)},H.timeout+(H.delay||0))}})};function B(J,E,I,K){if(E.busy){return }var H=J[0].parentNode,M=J[E.currSlide],L=J[E.nextSlide];if(H.cycleTimeout===0&&!I){return }if(I||!H.cyclePause){if(E.before.length){D.each(E.before,function(N,O){O.apply(L,[M,L,E,K])})}var F=function(){if(D.browser.msie){this.style.removeAttribute("filter")}D.each(E.after,function(N,O){O.apply(L,[M,L,E,K])})};if(E.nextSlide!=E.currSlide){E.busy=1;D.fn.cycle.custom(M,L,E,F)}var G=(E.nextSlide+1)==J.length;E.nextSlide=G?0:E.nextSlide+1;E.currSlide=G?J.length-1:E.nextSlide-1}if(E.timeout){H.cycleTimeout=setTimeout(function(){B(J,E,0,!E.rev)},E.timeout)}}function C(E,F,I){var H=E[0].parentNode,G=H.cycleTimeout;if(G){clearTimeout(G);H.cycleTimeout=0}F.nextSlide=F.currSlide+I;if(F.nextSlide<0){F.nextSlide=E.length-1}else{if(F.nextSlide>=E.length){F.nextSlide=0}}B(E,F,1,I>=0);return false}D.fn.cycle.custom=function(K,H,I,E){var J=D(K),G=D(H);G.css({opacity:0});var F=function(){G.animate({opacity:1},I.speedIn,I.easeIn,E)};J.animate({opacity:0},I.speedOut,I.easeOut,function(){J.css({display:"none"});if(!I.sync){F()}});if(I.sync){F()}};D.fn.cycle.transitions={fade:function(F,G,E){G.not(":eq(0)").css("opacity",0);E.before.push(function(){D(this).show()})}};D.fn.cycle.ver=function(){return A};D.fn.cycle.defaults={timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);

// ColorBox v1.3.9 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
// c) 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
;(function(c,ga){function f(b,d){b=b?' id="'+m+b+'"':"";d=d?' style="'+d+'"':"";return c("<div"+b+d+"/>")}function p(b,d){d=d==="x"?o.width():o.height();return typeof b==="string"?Math.round(b.match(/%/)?d/100*parseInt(b,10):parseInt(b,10)):b}function N(b){b=c.isFunction(b)?b.call(i):b;return a.photo||b.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function ba(){for(var b in a)if(c.isFunction(a[b])&&b.substring(0,2)!=="on")a[b]=a[b].call(i);a.rel=a.rel||i.rel||"nofollow";a.href=a.href||
c(i).attr("href");a.title=a.title||i.title}function ca(b){i=b;a=c.extend({},c(i).data(q));ba();if(a.rel!=="nofollow"){j=c("."+G).filter(function(){return(c(this).data(q).rel||this.rel)===a.rel});h=j.index(i);if(h===-1){j=j.add(i);h=j.length-1}}else{j=c(i);h=0}if(!s){s=D=true;O=i;try{O.blur()}catch(d){}c.event.trigger(ha);a.onOpen&&a.onOpen.call(i);u.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":"auto"}).show();a.w=p(a.initialWidth,"x");a.h=p(a.initialHeight,"y");e.position(0);P&&o.bind("resize."+
L+" scroll."+L,function(){u.css({width:o.width(),height:o.height(),top:o.scrollTop(),left:o.scrollLeft()})}).trigger("scroll."+L)}Q.add(H).add(I).add(v).add(R).hide();S.html(a.close).show();e.slideshow();e.load()}var da={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,
preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},q="colorbox",m="cbox",ha=m+"_open",M=m+"_load",T=m+"_complete",U=m+"_cleanup",ea=m+"_closed",E=c.browser.msie&&!c.support.opacity,P=E&&c.browser.version<
7,L=m+"_IE6",u,l,z,r,V,W,X,Y,j,o,n,J,K,R,Q,v,I,H,S,A,B,w,x,i,O,h,a,s,D,e,G=m+"Element";e=c.fn[q]=c[q]=function(b,d){var g=this;if(!g[0]&&g.selector)return g;b=b||{};if(d)b.onComplete=d;if(!g[0]||g.selector===undefined){g=c("<a/>");b.open=true}g.each(function(){c(this).data(q,c.extend({},c(this).data(q)||da,b)).addClass(G)});b.open&&ca(g[0]);return g};e.init=function(){o=c(ga);l=f().attr({id:q,"class":E?m+"IE":""});u=f("Overlay",P?"position:absolute":"").hide();z=f("Wrapper");r=f("Content").append(n=
f("LoadedContent","width:0; height:0"),K=f("LoadingOverlay").add(f("LoadingGraphic")),R=f("Title"),Q=f("Current"),I=f("Next"),H=f("Previous"),v=f("Slideshow"),S=f("Close"));z.append(f().append(f("TopLeft"),V=f("TopCenter"),f("TopRight")),f().append(W=f("MiddleLeft"),r,X=f("MiddleRight")),f().append(f("BottomLeft"),Y=f("BottomCenter"),f("BottomRight"))).children().children().css({"float":"left"});J=f(false,"position:absolute; width:9999px; visibility:hidden; display:none");c("body").prepend(u,l.append(z,
J));r.children().hover(function(){c(this).addClass("hover")},function(){c(this).removeClass("hover")}).addClass("hover");A=V.height()+Y.height()+r.outerHeight(true)-r.height();B=W.width()+X.width()+r.outerWidth(true)-r.width();w=n.outerHeight(true);x=n.outerWidth(true);l.css({"padding-bottom":A,"padding-right":B}).hide();I.click(e.next);H.click(e.prev);S.click(e.close);r.children().removeClass("hover");c("."+G).live("click",function(b){if(b.button!==0&&typeof b.button!=="undefined"||b.ctrlKey||b.shiftKey||
b.altKey)return true;else{ca(this);return false}});u.click(function(){a.overlayClose&&e.close()});c(document).bind("keydown",function(b){if(s&&a.escKey&&b.keyCode===27){b.preventDefault();e.close()}if(s&&a.arrowKey&&!D&&j[1])if(b.keyCode===37&&(h||a.loop)){b.preventDefault();H.click()}else if(b.keyCode===39&&(h<j.length-1||a.loop)){b.preventDefault();I.click()}})};e.remove=function(){l.add(u).remove();c("."+G).die("click").removeData(q).removeClass(G)};e.position=function(b,d){function g(y){V[0].style.width=
Y[0].style.width=r[0].style.width=y.style.width;K[0].style.height=K[1].style.height=r[0].style.height=W[0].style.height=X[0].style.height=y.style.height}var k,t=Math.max(o.height()-a.h-w-A,0)/2+o.scrollTop(),C=Math.max(o.width()-a.w-x-B,0)/2+o.scrollLeft();k=l.width()===a.w+x&&l.height()===a.h+w?0:b;z[0].style.width=z[0].style.height="9999px";l.dequeue().animate({width:a.w+x,height:a.h+w,top:t,left:C},{duration:k,complete:function(){g(this);D=false;z[0].style.width=a.w+x+B+"px";z[0].style.height=
a.h+w+A+"px";d&&d()},step:function(){g(this)}})};e.resize=function(b){if(s){b=b||{};if(b.width)a.w=p(b.width,"x")-x-B;if(b.innerWidth)a.w=p(b.innerWidth,"x");n.css({width:a.w});if(b.height)a.h=p(b.height,"y")-w-A;if(b.innerHeight)a.h=p(b.innerHeight,"y");if(!b.innerHeight&&!b.height){b=n.wrapInner("<div style='overflow:auto'></div>").children();a.h=b.height();b.replaceWith(b.children())}n.css({height:a.h});e.position(a.transition==="none"?0:a.speed)}};e.prep=function(b){function d(t){var C,y,Z,$,
F=j.length,aa=a.loop;e.position(t,function(){function fa(){E&&l[0].style.removeAttribute("filter")}if(s){E&&g&&n.fadeIn(100);if(a.iframe)c("<iframe frameborder=0"+(a.scrolling?"":" scrolling='no'")+(E?" allowtransparency='true'":"")+"/>").attr({src:a.href,name:(new Date).getTime()}).appendTo(n);n.show();R.show().html(a.title);if(F>1){Q.html(a.current.replace(/\{current\}/,h+1).replace(/\{total\}/,F)).show();I[aa||h<F-1?"show":"hide"]().html(a.next);H[aa||h?"show":"hide"]().html(a.previous);C=h?j[h-
1]:j[F-1];Z=h<F-1?j[h+1]:j[0];if(a.slideshow){v.show();h===F-1&&!aa&&l.is("."+m+"Slideshow_on")&&v.click()}if(a.preloading){$=c(Z).data(q).href||Z.href;y=c(C).data(q).href||C.href;if(N($))c("<img/>")[0].src=$;if(N(y))c("<img/>")[0].src=y}}K.hide();a.transition==="fade"?l.fadeTo(k,1,function(){fa()}):fa();o.bind("resize."+m,function(){e.position(0)});c.event.trigger(T);a.onComplete&&a.onComplete.call(i)}})}if(s){var g,k=a.transition==="none"?0:a.speed;o.unbind("resize."+m);n.remove();n=f("LoadedContent").html(b);
n.hide().appendTo(J.show()).css({width:function(){a.w=a.w||n.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?"auto":"hidden"}).css({height:function(){a.h=a.h||n.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(r);J.hide();c("#"+m+"Photo").css({cssFloat:"none"});P&&c("select").not(l.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(U,function(){this.style.visibility="inherit"});a.transition==="fade"?l.fadeTo(k,
0,function(){d(0)}):d(k)}};e.load=function(){var b,d,g,k=e.prep;D=true;i=j[h];a=c.extend({},c(i).data(q));ba();c.event.trigger(M);a.onLoad&&a.onLoad.call(i);a.h=a.height?p(a.height,"y")-w-A:a.innerHeight&&p(a.innerHeight,"y");a.w=a.width?p(a.width,"x")-x-B:a.innerWidth&&p(a.innerWidth,"x");a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=p(a.maxWidth,"x")-x-B;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=p(a.maxHeight,"y")-w-A;a.mh=a.h&&a.h<a.mh?a.h:a.mh}b=a.href;K.show();if(a.inline){f("InlineTemp").hide().insertBefore(c(b)[0]).bind(M+
" "+U,function(){c(this).replaceWith(n.children())});k(c(b))}else if(a.iframe)k(" ");else if(a.html)k(a.html);else if(N(b)){d=new Image;d.onload=function(){var t;d.onload=null;d.id=m+"Photo";c(d).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(a.scalePhotos){g=function(){d.height-=d.height*t;d.width-=d.width*t};if(a.mw&&d.width>a.mw){t=(d.width-a.mw)/d.width;g()}if(a.mh&&d.height>a.mh){t=(d.height-a.mh)/d.height;g()}}if(a.h)d.style.marginTop=Math.max(a.h-d.height,0)/2+"px";setTimeout(function(){k(d)},
1);if(j[1]&&(h<j.length-1||a.loop))c(d).css({cursor:"pointer"}).click(e.next);if(E)d.style.msInterpolationMode="bicubic"};d.src=b}else f().appendTo(J).load(b,function(t,C,y){k(C==="error"?"Request unsuccessful: "+y.statusText:this)})};e.next=function(){if(!D){h=h<j.length-1?h+1:0;e.load()}};e.prev=function(){if(!D){h=h?h-1:j.length-1;e.load()}};e.slideshow=function(){function b(){v.text(a.slideshowStop).bind(T,function(){g=setTimeout(e.next,a.slideshowSpeed)}).bind(M,function(){clearTimeout(g)}).one("click",
function(){d()});l.removeClass(k+"off").addClass(k+"on")}var d,g,k=m+"Slideshow_";v.bind(ea,function(){v.unbind();clearTimeout(g);l.removeClass(k+"off "+k+"on")});d=function(){clearTimeout(g);v.text(a.slideshowStart).unbind(T+" "+M).one("click",function(){b();g=setTimeout(e.next,a.slideshowSpeed)});l.removeClass(k+"on").addClass(k+"off")};if(a.slideshow&&j[1])a.slideshowAuto?b():d()};e.close=function(){if(s){s=false;c.event.trigger(U);a.onCleanup&&a.onCleanup.call(i);o.unbind("."+m+" ."+L);u.fadeTo("fast",
0);l.stop().fadeTo("fast",0,function(){l.find("iframe").attr("src","about:blank");n.remove();l.add(u).css({opacity:1,cursor:"auto"}).hide();try{O.focus()}catch(b){}setTimeout(function(){c.event.trigger(ea);a.onClosed&&a.onClosed.call(i)},1)})}};e.element=function(){return c(i)};e.settings=da;c(e.init)})(jQuery,this);
