/**
	jQuery.easing
*/
$.extend(jQuery.easing,{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},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},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}}}}});
/**
	hoverFade jQuery plugin version 1.0
	Copyright (c) 2010 Dan Wellman
	Dual licensed under the MIT and GPL licenses
*/
(function(a){a.hoverFade={defaults:{newClass:"hover-anims",classToRemove:"hover-css",onClass:"on",trigger:"a",faderTemplate:"<span />"}};a.fn.extend({hoverFade:function(d){var b=a.extend({},a.hoverFade.defaults,d),c=a(this),e=b.faderTemplate.replace("<","").replace(">","").replace(" /","");c.removeClass(b.classToRemove).addClass(b.newClass).children().each(function(){a(this).find(b.trigger).append(b.faderTemplate).find(e).css("opacity",0)});a("."+b.onClass,c).find(e).css("opacity",1);a(c).find(b.trigger).not("."+b.onClass).hover(function(){a(this).find(e).stop().animate({opacity:1})},function(){a(this).find(e).stop().animate({opacity:0})});return this}})})(jQuery);
/**
* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
* http://cherne.net/brian/resources/jquery.hoverIntent.html
* Brian Cherne brian(at)cherne(dot)net
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.bind('mouseenter',handleHover).bind('mouseleave',handleHover)}})(jQuery);
/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery. version 1.4.2
 * jQuery.LocalScroll - Animated scrolling navigation, using anchors.  version 1.2.7
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 */
(function(c){var a=c.scrollTo=function(f,e,d){c(window).scrollTo(f,e,d)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var e=this,d=!e.nodeName||c.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d){return e}var f=(e.contentWindow||e).document||e.ownerDocument||e;return c.browser.safari||f.compatMode=="BackCompat"?f.body:f.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var l=this,j=c(l),k=f,i,g={},m=j.is("html,body");switch(typeof k){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(k)){k=b(k);break}k=c(k,this);case"object":if(k.is||k.style){i=(k=c(k)).offset()}}c.each(d.axis.split(""),function(q,r){var s=r=="x"?"Left":"Top",u=s.toLowerCase(),p="scroll"+s,o=l[p],n=a.max(l,r);if(i){g[p]=i[u]+(m?0:o-j.offset()[u]);if(d.margin){g[p]-=parseInt(k.css("margin"+s))||0;g[p]-=parseInt(k.css("border"+s+"Width"))||0}g[p]+=d.offset[u]||0;if(d.over[u]){g[p]+=k[r=="x"?"width":"height"]()*d.over[u]}}else{var t=k[u];g[p]=t.slice&&t.slice(-1)=="%"?parseFloat(t)/100*n:t}if(/^\d+$/.test(g[p])){g[p]=g[p]<=0?0:Math.min(g[p],n)}if(!q&&d.queue){if(o!=g[p]){h(d.onAfterFirst)}delete g[p]}});h(d.onAfter);function h(n){j.animate(g,e,d.easing,n&&function(){n.call(this,f,d)})}}).end()};a.max=function(j,i){var h=i=="x"?"Width":"Height",e="scroll"+h;if(!c(j).is("html,body")){return j[e]-c(j)[h.toLowerCase()]()}var g="client"+h,f=j.ownerDocument.documentElement,d=j.ownerDocument.body;return Math.max(f[e],d[e])-Math.min(f[g],d[g])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(d){var b=location.href.replace(/#.*/,"").replace(/ /g,"%20");var c=d.localScroll=function(e){d("body").localScroll(e)};c.defaults={duration:1000,axis:"y",event:"click",stop:true,target:window,reset:true,lock:false,lazy:false,filter:null,hash:false};c.hash=function(e){if(location.hash){e=d.extend({},c.defaults,e);e.hash=false;if(e.reset){var f=e.duration;delete e.duration;d(e.target).scrollTo(0,e);e.duration=f}a(0,location,e)}};d.fn.localScroll=function(f){f=d.extend({},c.defaults,f);return f.lazy?this.bind(f.event,function(h){var g=d([h.target,h.target.parentNode]).filter(e)[0];if(g){a(h,g,f)}}):this.find("a,area").filter(e).bind(f.event,function(g){a(g,this,f)}).end().end();function e(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==b&&(!f.filter||d(this).is(f.filter))}};function a(l,j,h){var m=j.hash.slice(1),i=document.getElementById(m)||document.getElementsByName(m)[0];if(!i){return}if(l){l.preventDefault()}var g=d(h.target);if(h.lock&&g.is(":animated")||h.onBefore&&h.onBefore.call(h,l,i,g)===false){return}if(h.stop){g.stop(true)}if(h.hash){var f=i.id==m?"id":"name",k=d("<a> </a>").attr(f,m).css({position:"absolute",top:d(window).scrollTop(),left:d(window).scrollLeft()});i[f]="";d("body").prepend(k);location=j.hash;k.remove();i[f]=m}g.scrollTo(i,h).trigger("notify.serialScroll",[i])}})(jQuery);
/**
 * Superfish v1.4.8 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 * Dual licensed under the MIT and GPL licenses
 */
(function(b){b.fn.superfish=function(k){var g=b.fn.superfish,j=g.c,f=b(['<span class="',j.arrowClass,'"> &#187;</span>'].join("")),i=function(){var c=b(this),l=d(c);clearTimeout(l.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},e=function(){var c=b(this),m=d(c),l=g.op;clearTimeout(m.sfTimer);m.sfTimer=setTimeout(function(){l.retainPath=(b.inArray(c[0],l.$path)>-1);c.hideSuperfishUl();if(l.$path.length&&c.parents(["li.",l.hoverClass].join("")).length<1){i.call(l.$path)}},l.delay)},d=function(c){var l=c.parents(["ul.",j.menuClass,":first"].join(""))[0];g.op=g.o[l.serial];return l},h=function(c){c.addClass(j.anchorClass).append(f.clone())};return this.each(function(){var c=this.serial=g.o.length;var m=b.extend({},g.defaults,k);m.$path=b("li."+m.pathClass,this).slice(0,m.pathLevels).each(function(){b(this).addClass([m.hoverClass,j.bcClass].join(" ")).filter("li:has(ul)").removeClass(m.pathClass)});g.o[c]=g.op=m;b("li:has(ul)",this)[(b.fn.hoverIntent&&!m.disableHI)?"hoverIntent":"hover"](i,e).each(function(){if(m.autoArrows){h(b(">a:first-child",this))}}).not("."+j.bcClass).hideSuperfishUl();var l=b("a",this);l.each(function(n){var o=l.eq(n).parents("li");l.eq(n).focus(function(){i.call(o)}).blur(function(){e.call(o)})});m.onInit.call(this)}).each(function(){var c=[j.menuClass];if(g.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){c.push(j.shadowClass)}b(this).addClass(c.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var e=a.op,d=(e.retainPath===true)?e.$path:"";e.retainPath=false;var c=b(["li.",e.hoverClass].join(""),this).add(this).not(d).removeClass(e.hoverClass).find(">ul").hide().css("visibility","hidden");e.onHide.call(c);return this},showSuperfishUl:function(){var e=a.op,d=a.c.shadowClass+"-off",c=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);e.onBeforeShow.call(c);c.animate(e.animation,e.speed,function(){a.IE7fix.call(c);e.onShow.call(c)});return this}})})(jQuery);
// ColorBox v1.3.19 - jQuery lightbox plugin
// (c) 2011 Jack Moore - jacklmoore.com
// License: http://www.opensource.org/licenses/mit-license.php
(function(a,b,c){function Z(c,d,e){var g=b.createElement(c);return d&&(g.id=f+d),e&&(g.style.cssText=e),a(g)}function $(a){var b=y.length,c=(Q+a)%b;return c<0?b+c:c}function _(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function ba(a){return K.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a)}function bb(){var b;K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&&b.slice(0,2)!=="on"&&(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&&(K.href=a.trim(K.href))}function bc(b,c){a.event.trigger(b),c&&c.call(P)}function bd(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&&y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(K.loop||y[Q+1])a=setTimeout(W.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(W.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,k,c].join(" ")).one(c,function(){W.next(),d()}),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function be(b){U||(P=b,bb(),y=a(P),Q=0,K.rel!=="nofollow"&&(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&&(y=y.add(P),Q=y.length-1)),S||(S=T=!0,r.show(),K.returnFocus&&a(P).blur().one(l,function(){a(this).focus()}),q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=_(K.initialWidth,"x"),K.h=_(K.initialHeight,"y"),W.position(),o&&z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),bc(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()),W.load(!0))}function bf(){!r&&b.body&&(Y=!1,z=a(c),r=Z(X).attr({id:e,"class":n?f+(o?"IE6":"IE"):""}).hide(),q=Z(X,"Overlay",o?"position:absolute":"").hide(),s=Z(X,"Wrapper"),t=Z(X,"Content").append(A=Z(X,"LoadedContent","width:0; height:0; overflow:hidden"),C=Z(X,"LoadingOverlay").add(Z(X,"LoadingGraphic")),D=Z(X,"Title"),E=Z(X,"Current"),G=Z(X,"Next"),H=Z(X,"Previous"),F=Z(X,"Slideshow").bind(h,bd),I=Z(X,"Close")),s.append(Z(X).append(Z(X,"TopLeft"),u=Z(X,"TopCenter"),Z(X,"TopRight")),Z(X,!1,"clear:left").append(v=Z(X,"MiddleLeft"),t,w=Z(X,"MiddleRight")),Z(X,!1,"clear:left").append(Z(X,"BottomLeft"),x=Z(X,"BottomCenter"),Z(X,"BottomRight"))).find("div div").css({"float":"left"}),B=Z(X,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),J=G.add(H).add(E).add(F),a(b.body).append(q,r.append(s,B)))}function bg(){return r?(Y||(Y=!0,L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}),G.click(function(){W.next()}),H.click(function(){W.prev()}),I.click(function(){W.close()}),q.click(function(){K.overlayClose&&W.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&&K.escKey&&b===27&&(a.preventDefault(),W.close()),S&&K.arrowKey&&y[1]&&(b===37?(a.preventDefault(),H.click()):b===39&&(a.preventDefault(),G.click()))}),a("."+g,b).live("click",function(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),be(this))})),!0):!1}var d={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:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,reposition:!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,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=!a.support.opacity&&!a.support.style,o=n&&!c.XMLHttpRequest,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X="div",Y;if(a.colorbox)return;a(bf),W=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{},bf();if(bg()){if(!f[0]){if(f.selector)return f;f=a("<a/>"),b.open=!0}c&&(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b))}).addClass(g),(a.isFunction(b.open)&&b.open.call(f)||b.open)&&be(f[0])}return f},W.position=function(a,b){function i(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var c=0,d=0,e=r.offset(),g=z.scrollTop(),h=z.scrollLeft();z.unbind("resize."+f),r.css({top:-9e4,left:-9e4}),K.fixed&&!o?(e.top-=g,e.left-=h,r.css({position:"fixed"})):(c=g,d=h,r.css({position:"absolute"})),K.right!==!1?d+=Math.max(z.width()-K.w-O-M-_(K.right,"x"),0):K.left!==!1?d+=_(K.left,"x"):d+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?c+=Math.max(z.height()-K.h-N-L-_(K.bottom,"y"),0):K.top!==!1?c+=_(K.top,"y"):c+=Math.round(Math.max(z.height()-K.h-N-L,0)/2),r.css({top:e.top,left:e.left}),a=r.width()===K.w+O&&r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:c,left:d},{duration:a,complete:function(){i(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",K.reposition&&setTimeout(function(){z.bind("resize."+f,W.position)},1),b&&b()},step:function(){i(this)}})},W.resize=function(a){S&&(a=a||{},a.width&&(K.w=_(a.width,"x")-O-M),a.innerWidth&&(K.w=_(a.innerWidth,"x")),A.css({width:K.w}),a.height&&(K.h=_(a.height,"y")-N-L),a.innerHeight&&(K.h=_(a.innerHeight,"y")),!a.innerHeight&&!a.height&&(A.css({height:"auto"}),K.h=A.height()),A.css({height:K.h}),W.position(K.transition==="none"?0:K.speed))},W.prep=function(b){function g(){return K.w=K.w||A.width(),K.w=K.mw&&K.mw<K.w?K.mw:K.w,K.w}function h(){return K.h=K.h||A.height(),K.h=K.mh&&K.mh<K.h?K.mh:K.h,K.h}if(!S)return;var c,d=K.transition==="none"?0:K.speed;A.remove(),A=Z(X,"LoadedContent").append(b),A.hide().appendTo(B.show()).css({width:g(),overflow:K.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(t),B.hide(),a(R).css({"float":"none"}),o&&a("select").not(r.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(k,function(){this.style.visibility="inherit"}),c=function(){function q(){n&&r[0].style.removeAttribute("filter")}var b,c,g=y.length,h,i="frameBorder",k="allowTransparency",l,o,p;if(!S)return;l=function(){clearTimeout(V),C.hide(),bc(j,K.onComplete)},n&&R&&A.fadeIn(100),D.html(K.title).add(A).show();if(g>1){typeof K.current=="string"&&E.html(K.current.replace("{current}",Q+1).replace("{total}",g)).show(),G[K.loop||Q<g-1?"show":"hide"]().html(K.next),H[K.loop||Q?"show":"hide"]().html(K.previous),K.slideshow&&F.show();if(K.preloading){b=[$(-1),$(1)];while(c=y[b.pop()])o=a.data(c,e).href||c.href,a.isFunction(o)&&(o=o.call(c)),ba(o)&&(p=new Image,p.src=o)}}else J.hide();K.iframe?(h=Z("iframe")[0],i in h&&(h[i]=0),k in h&&(h[k]="true"),h.name=f+ +(new Date),K.fastIframe?l():a(h).one("load",l),h.src=K.href,K.scrolling||(h.scrolling="no"),a(h).addClass(f+"Iframe").appendTo(A).one(m,function(){h.src="//about:blank"})):l(),K.transition==="fade"?r.fadeTo(d,1,q):q()},K.transition==="fade"?r.fadeTo(d,0,function(){W.position(0,c)}):W.position(d,c)},W.load=function(b){var c,d,e=W.prep;T=!0,R=!1,P=y[Q],b||bb(),bc(m),bc(i,K.onLoad),K.h=K.height?_(K.height,"y")-N-L:K.innerHeight&&_(K.innerHeight,"y"),K.w=K.width?_(K.width,"x")-O-M:K.innerWidth&&_(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=_(K.maxWidth,"x")-O-M,K.mw=K.w&&K.w<K.mw?K.w:K.mw),K.maxHeight&&(K.mh=_(K.maxHeight,"y")-N-L,K.mh=K.h&&K.h<K.mh?K.h:K.mh),c=K.href,V=setTimeout(function(){C.show()},100),K.inline?(Z(X).hide().insertBefore(a(c)[0]).one(m,function(){a(this).replaceWith(A.children())}),e(a(c))):K.iframe?e(" "):K.html?e(K.html):ba(c)?(a(R=new Image).addClass(f+"Photo").error(function(){K.title=!1,e(Z(X,"Error").text("This image could not be loaded"))}).load(function(){var a;R.onload=null,K.scalePhotos&&(d=function(){R.height-=R.height*a,R.width-=R.width*a},K.mw&&R.width>K.mw&&(a=(R.width-K.mw)/R.width,d()),K.mh&&R.height>K.mh&&(a=(R.height-K.mh)/R.height,d())),K.h&&(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&&(K.loop||y[Q+1])&&(R.style.cursor="pointer",R.onclick=function(){W.next()}),n&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&&B.load(c,K.data,function(b,c,d){e(c==="error"?Z(X,"Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},W.next=function(){!T&&y[1]&&(K.loop||y[Q+1])&&(Q=$(1),W.load())},W.prev=function(){!T&&y[1]&&(K.loop||Q)&&(Q=$(-1),W.load())},W.close=function(){S&&!U&&(U=!0,S=!1,bc(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),bc(m),A.remove(),setTimeout(function(){U=!1,bc(l,K.onClosed)},1)}))},W.remove=function(){a([]).add(r).add(q).remove(),r=null,a("."+g).removeData(e).removeClass(g).die()},W.element=function(){return a(P)},W.settings=d})(jQuery,document,this);


/*
 * Lazy Load - jQuery plugin for lazy loading images
 * Copyright © 2007-2011 Mika Tuupola
 * Licensed under the MIT license:
 * http://www.appelsiini.net/projects/lazyload
 * Version:  1.6.0
 */
(function(a){a.fn.lazyload=function(b){var c={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:window,skip_invisible:true};if(b){if(null!==b.failurelimit){b.failure_limit=b.failurelimit;delete b.failurelimit}a.extend(c,b)}var d=this;if(0==c.event.indexOf("scroll")){a(c.container).bind(c.event,function(g){var e=0;d.each(function(){if(c.skip_invisible&&!a(this).is(":visible")){return}if(a.abovethetop(this,c)||a.leftofbegin(this,c)){}else{if(!a.belowthefold(this,c)&&!a.rightoffold(this,c)){a(this).trigger("appear")}else{if(++e>c.failure_limit){return false}}}});var f=a.grep(d,function(h){return !h.loaded});d=a(f)})}this.each(function(){var e=this;e.loaded=false;a(e).one("appear",function(){if(!this.loaded){a("<img />").bind("load",function(){a(e).hide().attr("src",a(e).data("original"))[c.effect](c.effectspeed);e.loaded=true}).attr("src",a(e).data("original"))}});if(0!=c.event.indexOf("scroll")){a(e).bind(c.event,function(f){if(!e.loaded){a(e).trigger("appear")}})}});a(c.container).trigger(c.event);return this};a.belowthefold=function(c,d){if(d.container===undefined||d.container===window){var b=a(window).height()+a(window).scrollTop()}else{var b=a(d.container).offset().top+a(d.container).height()}return b<=a(c).offset().top-d.threshold};a.rightoffold=function(c,d){if(d.container===undefined||d.container===window){var b=a(window).width()+a(window).scrollLeft()}else{var b=a(d.container).offset().left+a(d.container).width()}return b<=a(c).offset().left-d.threshold};a.abovethetop=function(c,d){if(d.container===undefined||d.container===window){var b=a(window).scrollTop()}else{var b=a(d.container).offset().top}return b>=a(c).offset().top+d.threshold+a(c).height()};a.leftofbegin=function(c,d){if(d.container===undefined||d.container===window){var b=a(window).scrollLeft()}else{var b=a(d.container).offset().left}return b>=a(c).offset().left+d.threshold+a(c).width()};a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0,container:window})},"above-the-fold":function(b){return !a.belowthefold(b,{threshold:0,container:window})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0,container:window})},"left-of-fold":function(b){return !a.rightoffold(b,{threshold:0,container:window})}})})(jQuery);

/*!
  * Feature Carousel, Version 1.2 - for 5 pictures
 * http://www.bkosolutions.com
 * Copyright 2010 Brian Osborne
 * Licensed under GPL version 3
 * http://www.gnu.org/licenses/gpl.txt
 */
(function($){$.fn.featureCarousel=function(options){options=$.extend({},$.fn.featureCarousel.defaults,options||{});return $(this).each(function(){var pluginData={currentCenterNum:options.startingFeature,containerWidth:0,containerHeight:0,largeFeatureWidth:0,largeFeatureHeight:0,smallFeatureWidth:0,smallFeatureHeight:0,small2FeatureWidth:0,small2FeatureHeight:0,totalFeatureCount:$(this).children("div").length,currentlyMoving:false,featuresContainer:$(this),featuresArray:[],containerIDTag:"#"+$(this).attr("id"),timeoutVar:null,rotationsRemaining:0,itemsToAnimate:0,borderWidth:0};preload(function(){setupFeatureDimensions();setupCarousel();setupFeaturePositions();setupBlips();initiateMove(true,1)});function preload(callback){if(options.preload==true){var $imageElements=pluginData.featuresContainer.find("img"),loadedImages=0,totalImages=$imageElements.length;$imageElements.each(function(){$(this).load(function(){loadedImages++;if(loadedImages==totalImages){callback()}});if(this.complete){$(this).trigger("load")}})}else{callback()}}function getContainer(featureNum){return pluginData.featuresArray[featureNum-1]}function getPreviousNum(num){if((num-1)==0){return pluginData.totalFeatureCount}else{return num-1}}function getNextNum(num){if((num+1)>pluginData.totalFeatureCount){return 1}else{return num+1}}function setupFeatureDimensions(){pluginData.containerWidth=pluginData.featuresContainer.width();pluginData.containerHeight=pluginData.featuresContainer.height();var $firstFeatureImage=$(pluginData.containerIDTag).find("div img:first");if(options.largeFeatureWidth>1){pluginData.largeFeatureWidth=options.largeFeatureWidth}else{if(options.largeFeatureWidth>0&&options.largeFeatureWidth<1){pluginData.largeFeatureWidth=$firstFeatureImage.width()*options.largeFeatureWidth}else{pluginData.largeFeatureWidth=$firstFeatureImage.outerWidth()}}if(options.largeFeatureHeight>1){pluginData.largeFeatureHeight=options.largeFeatureHeight}else{if(options.largeFeatureHeight>0&&options.largeFeatureHeight<1){pluginData.largeFeatureHeight=$firstFeatureImage.height()*options.largeFeatureHeight}else{pluginData.largeFeatureHeight=$firstFeatureImage.outerHeight()}}if(options.smallFeatureWidth>1){pluginData.smallFeatureWidth=options.smallFeatureWidth}else{if(options.smallFeatureWidth>0&&options.smallFeatureWidth<1){pluginData.smallFeatureWidth=$firstFeatureImage.width()*options.smallFeatureWidth}else{pluginData.smallFeatureWidth=$firstFeatureImage.outerWidth()/2}}if(options.smallFeatureHeight>1){pluginData.smallFeatureHeight=options.smallFeatureHeight}else{if(options.smallFeatureHeight>0&&options.smallFeatureHeight<1){pluginData.smallFeatureHeight=$firstFeatureImage.height()*options.smallFeatureHeight}else{pluginData.smallFeatureHeight=$firstFeatureImage.outerHeight()/2}}if(options.small2FeatureWidth>1){pluginData.small2FeatureWidth=options.small2FeatureWidth}else{if(options.small2FeatureWidth>0&&options.small2FeatureWidth<1){pluginData.small2FeatureWidth=$firstFeatureImage.width()*options.small2FeatureWidth}else{pluginData.small2FeatureWidth=$firstFeatureImage.outerWidth()/2}}if(options.small2FeatureHeight>1){pluginData.small2FeatureHeight=options.small2FeatureHeight}else{if(options.small2FeatureHeight>0&&options.small2FeatureHeight<1){pluginData.small2FeatureHeight=$firstFeatureImage.height()*options.small2FeatureHeight}else{pluginData.small2FeatureHeight=$firstFeatureImage.outerHeight()/2}}}function setupCarousel(){if(options.displayCutoff>0&&options.displayCutoff<pluginData.totalFeatureCount){pluginData.totalFeatureCount=options.displayCutoff}pluginData.featuresContainer.children("div").each(function(index){if(index<pluginData.totalFeatureCount){pluginData.featuresArray[index]=$(this)}});if(pluginData.featuresContainer.children("div").first().css("borderLeftWidth")!="medium"){pluginData.borderWidth=parseInt(pluginData.featuresContainer.children("div").first().css("borderLeftWidth"))*2}pluginData.featuresContainer.children("div").each(function(){$(this).css({left:(pluginData.containerWidth/2)-(pluginData.smallFeatureWidth/2)-(pluginData.borderWidth/2),width:pluginData.smallFeatureWidth,height:pluginData.smallFeatureHeight,top:options.smallFeatureOffset+options.topPadding,opacity:0})}).find("img:first").css({width:pluginData.smallFeatureWidth});if(pluginData.totalFeatureCount<4){pluginData.itemsToAnimate=pluginData.totalFeatureCount}else{pluginData.itemsToAnimate=4}pluginData.featuresContainer.find("div > div").hide()}function setupFeaturePositions(){$.each(pluginData.featuresArray,function(i){$(this).data("setPosition",i+1)});var oneBeforeStarting,$centerFeature,$prevFeatures,$nextFeatures;oneBeforeStarting=getPreviousNum(options.startingFeature);pluginData.currentCenterNum=oneBeforeStarting;$centerFeature=getContainer(oneBeforeStarting);$centerFeature.data("position",1);$prevFeatures=$centerFeature.prevAll();$prevFeatures.each(function(i){$(this).data("position",(pluginData.totalFeatureCount-i))});$nextFeatures=$centerFeature.nextAll();$nextFeatures.each(function(i){if($(this).data("setPosition")!=undefined){$(this).data("position",(i+2))}});if(options.counterStyle==3){$.each(pluginData.featuresArray,function(){var pos,$numberTag;pos=getPreviousNum($(this).data("position"));$numberTag=$("<span></span>");$numberTag.addClass("numberTag");$numberTag.html("("+pos+" of "+pluginData.totalFeatureCount+") ");$(this).find("div p").prepend($numberTag)})}}function setupBlips(){if(options.counterStyle==1||options.counterStyle==2){var $list,i,counter,$blip,$listEntry;$list=$("<ul></ul>");$list.addClass("blipsContainer");for(i=0;i<pluginData.totalFeatureCount;i++){if(options.counterStyle==2){counter=""}else{counter=i+1}$blip=$("<div>"+counter+"</div>");$blip.addClass("blip");$blip.css("cursor","pointer");$blip.attr("id","blip_"+(i+1));$listEntry=$("<li></li>");$listEntry.append($blip);$listEntry.css("float","left");$listEntry.css("list-style-type","none");$list.append($listEntry)}$(pluginData.containerIDTag).append($list);$list.hide().show()}}function changeBlip(oldCenter,newCenter){var $blipsContainer,$oldCenter,$newCenter;$blipsContainer=pluginData.featuresContainer.find(".blipsContainer");$oldCenter=$blipsContainer.find("#blip_"+oldCenter);$newCenter=$blipsContainer.find("#blip_"+newCenter);$oldCenter.removeClass("blipSelected");$newCenter.addClass("blipSelected")}function autoPlay(){if(pluginData.timeoutVar!=null){pluginData.timeoutVar=clearTimeout(pluginData.timeoutVar)}if(options.autoPlay!=0){var autoTime=(Math.abs(options.autoPlay)<options.carouselSpeed)?options.carouselSpeed:Math.abs(options.autoPlay);pluginData.timeoutVar=setTimeout(function(){if(options.autoPlay>0){initiateMove(true,1)}else{if(options.autoPlay<0){initiateMove(false,1)}}},autoTime)}}function rotatePositions(direction){$.each(pluginData.featuresArray,function(){var newPos;if(direction==false){newPos=getNextNum($(this).data().position)}else{newPos=getPreviousNum($(this).data().position)}$(this).data("position",newPos)})}function animateFeature($feature,direction){var new_width,new_height,new_top,new_left,new_zindex,new_fade,oldPosition,newPosition;oldPosition=$feature.data("position");if(direction==true){newPosition=getPreviousNum(oldPosition)}else{newPosition=getNextNum(oldPosition)}if(newPosition==1){new_width=pluginData.largeFeatureWidth;new_height=pluginData.largeFeatureHeight;new_top=options.topPadding;new_zindex=$feature.css("z-index");new_zindex=4;new_left=(pluginData.containerWidth/2)-(pluginData.largeFeatureWidth/2)-(pluginData.borderWidth/2);new_fade=1}else{if(newPosition==pluginData.totalFeatureCount){new_left=options.sidePadding;new_width=pluginData.smallFeatureWidth;new_height=pluginData.smallFeatureHeight;new_top=options.smallFeatureOffset+options.topPadding;new_zindex=3;new_fade=0.8}else{if(newPosition==pluginData.totalFeatureCount-1){new_left=options.small2sidePadding;new_width=pluginData.small2FeatureWidth;new_height=pluginData.small2FeatureHeight;new_top=options.small2FeatureOffset+options.topPadding;new_zindex=2;new_fade=0.6}else{if(newPosition==2){new_left=pluginData.containerWidth-pluginData.smallFeatureWidth-options.sidePadding-pluginData.borderWidth;new_width=pluginData.smallFeatureWidth;new_height=pluginData.smallFeatureHeight;new_top=options.smallFeatureOffset+options.topPadding;new_zindex=3;new_fade=0.8}else{if(newPosition==3){new_left=pluginData.containerWidth-pluginData.small2FeatureWidth-options.small2sidePadding-pluginData.borderWidth;new_width=pluginData.small2FeatureWidth;new_height=pluginData.small2FeatureHeight;new_top=options.small2FeatureOffset+options.topPadding;new_zindex=2;new_fade=0.6}else{new_left=(pluginData.containerWidth/2)-(pluginData.smallFeatureWidth/2)-(pluginData.borderWidth/2);new_width=pluginData.small2FeatureWidth;new_height=pluginData.small2FeatureHeight;new_top=options.small2FeatureOffset+options.topPadding;new_fade=0.1;new_zindex=1}}}}}if(newPosition!=1){$feature.find("div").hide()}$feature.animate({width:new_width,height:new_height,top:new_top,left:new_left,opacity:new_fade},options.carouselSpeed,options.animationEasing,function(){var newCenterItemNum,oldCenterItemNum,divide;if(newPosition==1){$feature.find("div").fadeTo(1000,0.85)}pluginData.rotationsRemaining=pluginData.rotationsRemaining-1;$feature.css("z-index",new_zindex);if(options.counterStyle==1||options.counterStyle==2){if(newPosition==1){newCenterItemNum=pluginData.featuresContainer.children("div").index($feature)+1;if(direction==false){oldCenterItemNum=getNextNum(newCenterItemNum)}else{oldCenterItemNum=getPreviousNum(newCenterItemNum)}changeBlip(oldCenterItemNum,newCenterItemNum)}}divide=pluginData.rotationsRemaining/pluginData.itemsToAnimate;if(divide%1==0){pluginData.currentlyMoving=false;rotatePositions(direction);if(pluginData.rotationsRemaining>0){move(direction)}}autoPlay()}).find("img:first").animate({width:new_width,height:new_height},options.carouselSpeed,options.animationEasing).end()}function move(direction){pluginData.currentlyMoving=true;var $newCenter,$newLeft,$newLeftLeft,$newRight,$newRightRight,$newHidden;if(direction==true){$newCenter=getContainer(getNextNum(pluginData.currentCenterNum));$newLeft=getContainer(pluginData.currentCenterNum);$newLeftLeft=getContainer(getPreviousNum(pluginData.currentCenterNum));$newRight=getContainer(getNextNum(getNextNum(pluginData.currentCenterNum)));$newRightRight=getContainer(getNextNum(getNextNum(getNextNum(pluginData.currentCenterNum))));$newHidden=getContainer(getPreviousNum(getPreviousNum(pluginData.currentCenterNum)));pluginData.currentCenterNum=getNextNum(pluginData.currentCenterNum)}else{$newCenter=getContainer(getPreviousNum(pluginData.currentCenterNum));$newLeft=getContainer(getPreviousNum(getPreviousNum(pluginData.currentCenterNum)));$newLeftLeft=getContainer(getPreviousNum(getPreviousNum(getPreviousNum(pluginData.currentCenterNum))));$newRight=getContainer(pluginData.currentCenterNum);$newRightRight=getContainer(getNextNum(pluginData.currentCenterNum));$newHidden=getContainer(getNextNum(getNextNum(pluginData.currentCenterNum)));pluginData.currentCenterNum=getPreviousNum(pluginData.currentCenterNum)}$newHidden.css("z-index",1);$newLeft.css("z-index",3);$newLeftLeft.css("z-index",2);$newRight.css("z-index",3);$newRightRight.css("z-index",2);$newCenter.css("z-index",4);animateFeature($newLeftLeft,direction);animateFeature($newLeft,direction);animateFeature($newCenter,direction);animateFeature($newRight,direction);animateFeature($newRightRight,direction);if(pluginData.totalFeatureCount>5){animateFeature($newHidden,direction)}}function initiateMove(direction,rotations){if(pluginData.currentlyMoving==false){var queue=rotations*pluginData.itemsToAnimate;pluginData.rotationsRemaining=queue;move(direction)}}function findShortestDistance(from,to){var goingToLeft=1,goingToRight=1,tracker;tracker=from;while((tracker=getPreviousNum(tracker))!=to){goingToLeft++}tracker=from;while((tracker=getNextNum(tracker))!=to){goingToRight++}return(goingToLeft<goingToRight)?goingToLeft*-1:goingToRight}$(".leftButton").click(function(){initiateMove(false,1)});$(".rightButton").click(function(){initiateMove(true,1)});pluginData.featuresContainer.children("div").click(function(){var position=$(this).data("position");if(position==2||position==3){initiateMove(true,1)}else{if(position==pluginData.totalFeatureCount||position==pluginData.totalFeatureCount-1){initiateMove(false,1)}}}).mousemove(function(){if(pluginData.currentlyMoving==false){var position=$(this).data("position");if(position==2||position==pluginData.totalFeatureCount){$(this).css("opacity",0.9)}else{if(position==3||position==pluginData.totalFeatureCount-1){$(this).css("opacity",0.8)}}}}).mouseout(function(){if(pluginData.currentlyMoving==false){var position=$(this).data("position");if(position==2||position==pluginData.totalFeatureCount){$(this).css("opacity",0.8)}else{if(position==3||position==pluginData.totalFeatureCount-1){$(this).css("opacity",0.6)}}}});$("a",pluginData.containerIDTag).live("click",function(event){var $parents=$(this).parentsUntil(pluginData.containerIDTag);$parents.each(function(){var position=$(this).data("position");if(position!=undefined){if(position!=1){if(position==pluginData.totalFeatureCount){initiateMove(false,1)}else{if(position==2){initiateMove(true,1)}}event.preventDefault();return false}}})});$(".blip").live("click",function(){var goTo,whereIsIt,currentlyAt,shortest;goTo=$(this).attr("id").substring(5);whereIsIt=pluginData.featuresContainer.children("div").eq(goTo-1).data("position");currentlyAt=pluginData.currentCenterNum;if(goTo!=currentlyAt){shortest=findShortestDistance(1,whereIsIt);if(shortest<0){initiateMove(false,(shortest*-1))}else{initiateMove(true,shortest)}}})})};$.fn.featureCarousel.defaults={largeFeatureWidth:0,largeFeatureHeight:0,smallFeatureWidth:500,smallFeatureHeight:280,small2FeatureWidth:400,small2FeatureHeight:200,topPadding:20,sidePadding:70,small2sidePadding:10,smallFeatureOffset:50,small2FeatureOffset:100,startingFeature:1,carouselSpeed:1000,autoPlay:0,counterStyle:0,preload:true,displayCutoff:0,animationEasing:"swing"}})(jQuery);
