/* Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * Version: 3.0.2
 * 
 * Requires: 1.2.2+
 */
(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(f){var d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||window.event);f.type="mousewheel";if(f.wheelDelta){g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}d.unshift(f,g);return c.event.handle.apply(this,d)}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+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},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},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},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+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}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(f){var g={btnPrev:null,btnNext:null,btnDisabledClass:"disabled",btnGo:null,mouseWheel:false,list:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null};f.fn.carousel=function(k){var i=(typeof k=="string"),j=Array.prototype.slice.call(arguments,1);if(i&&k[0]=="_"){return this}if(i){var h=f.data(this[0],"carousel");return(h?h[k].apply(h,j):undefined)}return this.each(function(){var l=f.data(this,"carousel");(!l&&!i&&f.data(this,"carousel",new a(this,k)));(l&&i&&f.isFunction(l[k])&&l[k].apply(l,j))})};function d(h,i){return parseInt(f.css(h[0],i),10)||0}function e(h){return h[0].offsetWidth+d(h,"marginLeft")+d(h,"marginRight")}function b(h){return h[0].offsetHeight+d(h,"marginTop")+d(h,"marginBottom")}var a=function(i,h){this.options=f.extend({},this.defaults,h);this.element=f(i);this._init()};var c={defaults:g,_init:function(){this._init_styles();this._init_buttons();this._check_classes()},refresh:function(h){f.extend(this.options,h);if(!h||(!"start" in h)){this.options.start=this.curr}this._init_styles();this._check_classes()},_init_styles:function(){var j=this.options,i=this.element,q=j.list?f(j.list):i.children("ul");var k=q.children("li"),w=k.length,t=j.visible,y=j.start;j.start=Math.min(f.isFunction(y)?y.call(i[0],w,t):y,k.length-1);if(j.circular){q.prepend(k.slice(w-t-1+1).clone(true)).append(k.slice(0,t).clone(true));j.start+=t}var u=q.children("li"),p=u.length,x=j.start;i.css("visibility","visible");u.css({overflow:j.vertical?"hidden":"visible","float":j.vertical?"none":"left"});q.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});i.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var m=j.vertical?b(u):e(u);var r=m*p;var n=m*t;u.css(j.vertical?{height:m}:{width:m});var l=j.vertical?"top":"left",h=j.vertical?"height":"width";q.css(h,r+"px").css(l,-(x*m));i.css(h,n+"px");this.ul=q;this.li=u;this.liSize=m;this.curr=x},_init_buttons:function(){var h=this,j=this.element,i=this.options;f.each(["btnPrev","btnNext"],function(k,l){if(i[l]){h["$"+l]=(f.isFunction(i[l])?i[l].call(j[0]):f(i[l])).click(function(){var p=h.options,n=h.curr,m=k==0?n-p.scroll:n+p.scroll;return h.go(m)})}});if(i.btnGo){f.each(i.btnGo,function(k,l){f(l).click(function(){var m=h.options;return h.go(m.circular?m.visible+k:k)})})}if(i.mouseWheel&&j.mousewheel){j.mousewheel(function(l,n){var m=h.options,k=h.curr;return n>0?h.go(k-m.scroll):h.go(k+m.scroll)})}},_check_classes:function(){var i=this.options,h=this.li.length;if(!i.circular){if(i.btnPrev){this.$btnPrev.toggleClass(i.btnDisabledClass,i.start==0)}if(i.btnNext){this.$btnNext.toggleClass(i.btnDisabledClass,i.start+i.visible>=h)}}},_vis:function(){return this.li.slice(this.curr).slice(0,this.options.visible)},go:function(m){var q=this,h=this.options,l=this.ul,p=this.li,k=p.length,j=this.liSize,r=this.curr,n=h.visible;var i=h.vertical?"top":"left";if(h.beforeStart){h.beforeStart.call(q.element[0],q._vis(),r,m)}if(h.circular){if(m<=h.start-n-1){l.css(i,-((k-(n*2))*j)+"px");r=m==h.start-n-1?k-(n*2)-1:k-(n*2)-h.scroll}else{if(m>=k-n+1){l.css(i,-((n)*j)+"px");r=m==k-n+1?n+1:n+h.scroll}else{r=m}}}else{if(h.btnPrev){q.$btnPrev.toggleClass(h.btnDisabledClass,h.btnPrev&&m<=0)}if(h.btnNext){q.$btnNext.toggleClass(h.btnDisabledClass,h.btnNext&&m>k-n)}if(m<0){r=0}else{if(m>k-n){r=k-n}else{r=m}}}l.stop(true,false).animate(i=="left"?{left:-(r*j)}:{top:-(r*j)},h.speed,h.easing,function(){if(h.afterEnd){var s=!h.circular&&(m>=k-n);var o=!h.circular&&(m<=0);h.afterEnd.call(q.element[0],q._vis(),o,s)}});this.curr=r;return false}};f.extend(a.prototype,c)})(jQuery);(function WelcomeModule(c,a,b){c(document).ready(function(){var d=c("#container-content-landing");d.find("a.thickbox").colorbox(b.thickboxSettings,a.invokeAjaxCallbackForElement).removeClass("thickbox");d.find("input.clearonfocus").clearOnFocus();c("#slides").carousel({list:"#slides-list",visible:1,speed:800,mouseWheel:false,easing:"easeInOutSine",circular:false}).removeClass("initialize-carousel");c("#slide-controls li").mouseenter(function(f){var e=c(this).prevAll().length;c("#slides").carousel("go",e)})})})(jQuery,Strands,globalVariables);
