/*************************** 
File generated by Scriptalizer.com
DateTime: Wednesday, September 8, 2010 9:31:51 PM CDT

File list:
	carousel.js
	easing.js
	effects.core.js
	effects.slide.js
	jquery.livesearch.js
	jquery.scrollfollow.js
	lazyload.js
	scroll.js
	typefaceHoverFix.js
*****************************/
jQuery.fn.carousel=function(e,d,l){var b=jQuery(this).children()[0];if(b){var j=jQuery(b).children().outerWidth("true"),h=jQuery(b).children(),c=h.length,k=j,f=Math.round(jQuery(this).width()/k),g=1,a=false;for(i=0;i<f;i++){jQuery(b).css("width",(c+f)*j+j+"px");jQuery(b).append(jQuery(h[i]).clone())}jQuery(e).click(function(m){if(!a){if(g==1){jQuery(b).css("left","-"+c*k+"px");g=c}else{g--}jQuery(b).animate({left:"+="+j,y:0,queue:true},"swing",function(){a=false});a=true}});jQuery(d).click(function(m){if(!a){if(g>c){g=2;jQuery(b).css("left","0px")}else{g++}jQuery(b).animate({left:"-="+j,y:0,queue:true},"swing",function(){a=false});a=true}})}};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,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/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}});jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var j,f;switch(g[0]){case"top":j=0;break;case"middle":j=0.5;break;case"bottom":j=1;break;default:j=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:j}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var k=f.parent();if(f.css("position")=="static"){k.css({position:"relative"});f.css({position:"relative"})}else{var j=f.css("top");if(isNaN(parseInt(j,10))){j="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}k.css({position:f.css("position"),top:j,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}k.css(g);return k},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,j,f,h){h=h||{};d.each(j,function(l,k){unit=g.cssUnit(k);if(unit[0]>0){h[k]=unit[0]*f+unit[1]}});return h},animateClass:function(h,j,l,k){var f=(typeof l=="function"?l:(k?k:null));var g=(typeof l=="string"?l:null);return this.each(function(){var r={};var p=d(this);var q=p.attr("style")||"";if(typeof q=="object"){q=q.cssText}if(h.toggle){p.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){p.addClass(h.add)}if(h.remove){p.removeClass(h.remove)}var o=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){p.removeClass(h.add)}if(h.remove){p.addClass(h.remove)}for(var s in o){if(typeof o[s]!="function"&&o[s]&&s.indexOf("Moz")==-1&&s.indexOf("length")==-1&&o[s]!=m[s]&&(s.match(/color/i)||(!s.match(/color/i)&&!isNaN(parseInt(o[s],10))))&&(m.position!="static"||(m.position=="static"&&!s.match(/left|top|bottom|right/)))){r[s]=o[s]}}p.animate(r,j,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=q}else{d(this).attr("style",q)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var j=g[1]&&g[1].constructor==Object?g[1]:{};if(f){j.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(j.duration?j.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var k=j.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],j,h,k]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,j){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:j}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,j,h){return f?d.effects.animateClass.apply(this,[{add:g},f,j,h]):this._addClass(g)},removeClass:function(g,f,j,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,j,h]):this._removeClass(g)},toggleClass:function(g,f,j,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,j,h]):this._toggleClass(g,f)},morph:function(f,h,g,k,j){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,k,j])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,k,j){return d.easing[d.easing.def](g,h,f,k,j)},easeInQuad:function(g,h,f,k,j){return k*(h/=j)*h+f},easeOutQuad:function(g,h,f,k,j){return -k*(h/=j)*(h-2)+f},easeInOutQuad:function(g,h,f,k,j){if((h/=j/2)<1){return k/2*h*h+f}return -k/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,k,j){return k*(h/=j)*h*h+f},easeOutCubic:function(g,h,f,k,j){return k*((h=h/j-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,k,j){if((h/=j/2)<1){return k/2*h*h*h+f}return k/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,k,j){return k*(h/=j)*h*h*h+f},easeOutQuart:function(g,h,f,k,j){return -k*((h=h/j-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,k,j){if((h/=j/2)<1){return k/2*h*h*h*h+f}return -k/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,k,j){return k*(h/=j)*h*h*h*h+f},easeOutQuint:function(g,h,f,k,j){return k*((h=h/j-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,k,j){if((h/=j/2)<1){return k/2*h*h*h*h*h+f}return k/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,k,j){return -k*Math.cos(h/j*(Math.PI/2))+k+f},easeOutSine:function(g,h,f,k,j){return k*Math.sin(h/j*(Math.PI/2))+f},easeInOutSine:function(g,h,f,k,j){return -k/2*(Math.cos(Math.PI*h/j)-1)+f},easeInExpo:function(g,h,f,k,j){return(h==0)?f:k*Math.pow(2,10*(h/j-1))+f},easeOutExpo:function(g,h,f,k,j){return(h==j)?f+k:k*(-Math.pow(2,-10*h/j)+1)+f},easeInOutExpo:function(g,h,f,k,j){if(h==0){return f}if(h==j){return f+k}if((h/=j/2)<1){return k/2*Math.pow(2,10*(h-1))+f}return k/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,k,j){return -k*(Math.sqrt(1-(h/=j)*h)-1)+f},easeOutCirc:function(g,h,f,k,j){return k*Math.sqrt(1-(h=h/j-1)*h)+f},easeInOutCirc:function(g,h,f,k,j){if((h/=j/2)<1){return -k/2*(Math.sqrt(1-h*h)-1)+f}return k/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,j,f,n,m){var k=1.70158;var l=0;var h=n;if(j==0){return f}if((j/=m)==1){return f+n}if(!l){l=m*0.3}if(h<Math.abs(n)){h=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/h)}return -(h*Math.pow(2,10*(j-=1))*Math.sin((j*m-k)*(2*Math.PI)/l))+f},easeOutElastic:function(g,j,f,n,m){var k=1.70158;var l=0;var h=n;if(j==0){return f}if((j/=m)==1){return f+n}if(!l){l=m*0.3}if(h<Math.abs(n)){h=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/h)}return h*Math.pow(2,-10*j)*Math.sin((j*m-k)*(2*Math.PI)/l)+n+f},easeInOutElastic:function(g,j,f,n,m){var k=1.70158;var l=0;var h=n;if(j==0){return f}if((j/=m/2)==2){return f+n}if(!l){l=m*(0.3*1.5)}if(h<Math.abs(n)){h=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/h)}if(j<1){return -0.5*(h*Math.pow(2,10*(j-=1))*Math.sin((j*m-k)*(2*Math.PI)/l))+f}return h*Math.pow(2,-10*(j-=1))*Math.sin((j*m-k)*(2*Math.PI)/l)*0.5+n+f},easeInBack:function(g,h,f,l,k,j){if(j==undefined){j=1.70158}return l*(h/=k)*h*((j+1)*h-j)+f},easeOutBack:function(g,h,f,l,k,j){if(j==undefined){j=1.70158}return l*((h=h/k-1)*h*((j+1)*h+j)+1)+f},easeInOutBack:function(g,h,f,l,k,j){if(j==undefined){j=1.70158}if((h/=k/2)<1){return l/2*(h*h*(((j*=(1.525))+1)*h-j))+f}return l/2*((h-=2)*h*(((j*=(1.525))+1)*h+j)+2)+f},easeInBounce:function(g,h,f,k,j){return k-d.easing.easeOutBounce(g,j-h,0,k,j)+f},easeOutBounce:function(g,h,f,k,j){if((h/=j)<(1/2.75)){return k*(7.5625*h*h)+f}else{if(h<(2/2.75)){return k*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return k*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return k*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,k,j){if(h<j/2){return d.easing.easeInBounce(g,h*2,0,k,j)*0.5+f}return d.easing.easeOutBounce(g,h*2-j,0,k,j)*0.5+k*0.5+f}})})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var j=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var k=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(j=="show"){e.css(f,c=="pos"?-k:k)}var g={};g[f]=(j=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+k;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(j=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);jQuery(function(a){a.fn.quicksearch=function(g,c){var k,b,f,j,d="",h=this,l=a.extend({delay:100,selector:null,stripeRows:null,loader:null,noResults:"",bind:"keyup",onBefore:function(){return},onAfter:function(){return},show:function(){this.style.display=""},hide:function(){this.style.display="none"}},c);this.go=function(){var e=0,o=true,n=d.toLowerCase().split(" ");var m=f.length;for(var e=0;e<m;e++){if(this.test(n,b[e])||d==""){l.show.apply(f[e]);o=false}else{l.hide.apply(f[e])}}if(o){this.results(false)}else{this.results(true);this.stripe()}this.loader(false);l.onAfter();return this};this.stripe=function(){if(typeof l.stripeRows==="object"&&l.stripeRows!==null){var m=l.stripeRows.join(" ");var e=l.stripeRows.length;j.not(":hidden").each(function(n){a(this).removeClass(m).addClass(l.stripeRows[n%e])})}return this};this.strip_html=function(m){var e=m.replace(new RegExp("<[^<]+>","g"),"");e=a.trim(e.toLowerCase());return e};this.results=function(e){if(typeof l.noResults==="string"&&l.noResults!==""){if(e){a(l.noResults).hide()}else{a(l.noResults).show()}}return this};this.loader=function(e){if(typeof l.loader==="string"&&l.loader!==""){(e)?a(l.loader).show():a(l.loader).hide()}return this};this.test=function(n,m){for(var e=0;e<n.length;e+=1){if(m.indexOf(n[e])===-1){return false}}return true};this.cache=function(){j=a(g);if(typeof l.noResults==="string"&&l.noResults!==""){j=j.not(l.noResults)}var e=(typeof l.selector==="string")?j.find(l.selector):a(g).not(l.noResults);b=e.map(function(){return h.strip_html(this.innerHTML)});f=j.map(function(){return this});return this.go()};this.trigger=function(){this.loader(true);l.onBefore();window.clearTimeout(k);k=window.setTimeout(function(){h.go()},l.delay);return this};this.cache();this.results(true);this.stripe();this.loader(false);return this.each(function(){a(this).bind(l.bind,function(){d=a(this).val();h.trigger()})})}});(function(a){a.scrollFollow=function(f,d){f=a(f);var b=f.css("position");function c(){f.queue([]);var h=parseInt(a(window).height());var k=parseInt(a(document).scrollTop());var l=parseInt(f.cont.offset().top);var j=parseInt(f.cont.attr("offsetHeight"));var m=parseInt(f.attr("offsetHeight")+(parseInt(f.css("marginTop"))||0)+(parseInt(f.css("marginBottom"))||0));var g;if(e){if(d.relativeTo=="top"){if(f.initialOffsetTop>=(k+d.offset)){g=f.initialTop}else{g=Math.min((Math.max((-l),(k-f.initialOffsetTop+f.initialTop))+d.offset),(j-m-f.paddingAdjustment))}}else{if(d.relativeTo=="bottom"){if((f.initialOffsetTop+m)>=(k+d.offset+h)){g=f.initialTop}else{g=Math.min((k+h-m-d.offset),(j-m))}}}if((new Date().getTime()-f.lastScroll)>=(d.delay-20)){f.animate({top:g},d.speed,d.easing)}}}var e=true;if(a.cookie!=undefined){if(a.cookie("scrollFollowSetting"+f.attr("id"))=="false"){var e=false;a("#"+d.killSwitch).text(d.offText).toggle(function(){e=true;a(this).text(d.onText);a.cookie("scrollFollowSetting"+f.attr("id"),true,{expires:365,path:"/"});c()},function(){e=false;a(this).text(d.offText);f.animate({top:f.initialTop},d.speed,d.easing);a.cookie("scrollFollowSetting"+f.attr("id"),false,{expires:365,path:"/"})})}else{a("#"+d.killSwitch).text(d.onText).toggle(function(){e=false;a(this).text(d.offText);f.animate({top:f.initialTop},0);a.cookie("scrollFollowSetting"+f.attr("id"),false,{expires:365,path:"/"})},function(){e=true;a(this).text(d.onText);a.cookie("scrollFollowSetting"+f.attr("id"),true,{expires:365,path:"/"});c()})}}if(d.container==""){f.cont=f.parent()}else{f.cont=a("#"+d.container)}f.initialOffsetTop=parseInt(f.offset().top);f.initialTop=parseInt(f.css("top"))||0;if(f.css("position")=="relative"){f.paddingAdjustment=parseInt(f.cont.css("paddingTop"))+parseInt(f.cont.css("paddingBottom"))}else{f.paddingAdjustment=0}a(window).scroll(function(){a.fn.scrollFollow.interval=setTimeout(function(){c()},d.delay);f.lastScroll=new Date().getTime()});a(window).resize(function(){a.fn.scrollFollow.interval=setTimeout(function(){c()},d.delay);f.lastScroll=new Date().getTime()});f.lastScroll=0;c()};a.fn.scrollFollow=function(b){b=b||{};b.relativeTo=b.relativeTo||"top";b.speed=b.speed||500;b.offset=b.offset||0;b.easing=b.easing||"swing";b.container=b.container||this.parent().attr("id");b.killSwitch=b.killSwitch||"killSwitch";b.onText=b.onText||"Turn Slide Off";b.offText=b.offText||"Turn Slide On";b.delay=b.delay||0;this.each(function(){new a.scrollFollow(this,b)});return this}})(jQuery);(function(a){a.fn.lazyload=function(b){var c={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(b){a.extend(c,b)}var d=this;if("scroll"==c.event){a(c.container).bind("scroll",function(g){var e=0;d.each(function(){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.failurelimit){return false}}}});var f=a.grep(d,function(h){return !h.loaded});d=a(f)})}this.each(function(){var e=this;if(undefined==a(e).attr("original")){a(e).attr("original",a(e).attr("src"))}if("scroll"!=c.event||undefined==a(e).attr("src")||c.placeholder==a(e).attr("src")||(a.abovethetop(e,c)||a.leftofbegin(e,c)||a.belowthefold(e,c)||a.rightoffold(e,c))){if(c.placeholder){a(e).attr("src",c.placeholder)}else{a(e).removeAttr("src")}e.loaded=false}else{e.loaded=true}a(e).one("appear",function(){if(!this.loaded){a("<img />").bind("load",function(){a(e).hide().attr("src",a(e).attr("original"))[c.effect](c.effectspeed);e.loaded=true}).attr("src",a(e).attr("original"))}});if("scroll"!=c.event){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":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"})})(jQuery);$(function(){$.fn.scrollToTop=function(a){if(a.speed){var b=a.speed}else{var b="slow"}if(a.ease){var c=a.ease}else{var c="jswing"}if(a.start){var e=a.start}else{var e="0"}var d=$(this);$(this).hide().removeAttr("href");if($(window).scrollTop()>e){$(this).fadeIn("slow")}$(window).scroll(function(){if($(window).scrollTop()>e){$(d).fadeIn("slow")}else{$(d).fadeOut("slow")}});$(this).click(function(f){$("html, body").animate({scrollTop:"0px"},b,c)})}});var typefacehover=function(){$(".typeface-js").each(function(){var a=$(this).attr("class");a=a.split(" ");var f;for(var e in a){var b=getCSSColor("."+a[e]+":hover");if(b){f=b}}if(f){var d=$(this).html();var c='<div class="typeface-js-hover" style="color:'+f+';display:none">'+d+"</div>";d='<div class="typeface-js-nohover">'+d+"</div>";var g=d+c;$(this).html(g);$(this).hover(function(){$(".typeface-js-nohover",this).hide();$(".typeface-js-hover",this).show()},function(){$(".typeface-js-nohover",this).show();$(".typeface-js-hover",this).hide()})}})};var getCSSColor=function(a){var c=new RegExp("(^|,)\\s*"+a.toLowerCase()+"\\s*(,|$)");var b;$.each($.makeArray(document.styleSheets),function(){$.each(this.cssRules||this.rules,function(){if(c.test(this.selectorText)){b=this.style.color}})});return b};
