jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1){return d/2*b*b+c}return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1){return d/2*b*b*b+c}return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1){return d/2*b*b*b*b+c}return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1){return d/2*b*b*b*b*b+c}return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0){return c}if(b==e){return c+d}if((b/=e/2)<1){return d/2*Math.pow(2,10*(b-1))+c}return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1){return-d/2*(Math.sqrt(1-b*b)-1)+c}return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0){return c}if((b/=e)==1){return c+d}if(!g){g=e*.3}if(h<Math.abs(d)){h=d;var f=g/4}else{var f=g/(2*Math.PI)*Math.asin(d/h)}return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0){return c}if((b/=e)==1){return c+d}if(!g){g=e*.3}if(h<Math.abs(d)){h=d;var f=g/4}else{var f=g/(2*Math.PI)*Math.asin(d/h)}return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0){return c}if((b/=e/2)==2){return c+d}if(!g){g=e*.3*1.5}if(h<Math.abs(d)){h=d;var f=g/4}else{var f=g/(2*Math.PI)*Math.asin(d/h)}if(b<1){return-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c}return h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){if(f==undefined){f=1.70158}return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){if(f==undefined){f=1.70158}return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){if(f==undefined){f=1.70158}if((b/=e/2)<1){return d/2*b*b*(((f*=1.525)+1)*b-f)+c}return d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){if((b/=e)<1/2.75){return d*7.5625*b*b+c}else{if(b<2/2.75){return d*(7.5625*(b-=1.5/2.75)*b+.75)+c}else{if(b<2.5/2.75){return d*(7.5625*(b-=2.25/2.75)*b+.9375)+c}else{return d*(7.5625*(b-=2.625/2.75)*b+.984375)+c}}}},easeInOutBounce:function(a,b,c,d,e){if(b<e/2){return jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c}return jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}});(function(a){function d(a){a=a.replace(/left|top/g,"0px");a=a.replace(/right|bottom/g,"100%");a=a.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var b=a.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(b[1],10),b[2],parseFloat(b[3],10),b[4]]}if(!document.defaultView||!document.defaultView.getComputedStyle){var b=jQuery.curCSS;jQuery.curCSS=function(a,c,d){if(c==="background-position"){c="backgroundPosition"}if(c!=="backgroundPosition"||!a.currentStyle||a.currentStyle[c]){return b.apply(this,arguments)}var e=a.style;if(!d&&e&&e[c]){return e[c]}return b(a,"backgroundPositionX",d)+" "+b(a,"backgroundPositionY",d)}}var c=a.fn.animate;a.fn.animate=function(a){if("background-position"in a){a.backgroundPosition=a["background-position"];delete a["background-position"]}if("backgroundPosition"in a){a.backgroundPosition="("+a.backgroundPosition}return c.apply(this,arguments)};a.fx.step.backgroundPosition=function(b){if(!b.bgPosReady){var c=a.curCSS(b.elem,"backgroundPosition");if(!c){c="0px 0px"}c=d(c);b.start=[c[0],c[2]];var e=d(b.options.curAnim.backgroundPosition);b.end=[e[0],e[2]];b.unit=[e[1],e[3]];b.bgPosReady=true}var f=[];f[0]=(b.end[0]-b.start[0])*b.pos+b.start[0]+b.unit[0];f[1]=(b.end[1]-b.start[1])*b.pos+b.start[1]+b.unit[1];b.elem.style.backgroundPosition=f[0]+" "+f[1]}})(jQuery);(function(a){function d(a,b,d){var e=a[0].parentNode,f=e.cycleTimeout;if(f){clearTimeout(f);e.cycleTimeout=0}b.nextSlide=b.currSlide+d;if(b.nextSlide<0){b.nextSlide=a.length-1}else{if(b.nextSlide>=a.length){b.nextSlide=0}}c(a,b,1,d>=0);return false}function c(b,d,e,f){if(d.busy){return}var g=b[0].parentNode,h=b[d.currSlide],i=b[d.nextSlide];if(g.cycleTimeout===0&&!e){return}if(e||!g.cyclePause){if(d.before.length){a.each(d.before,function(a,b){b.apply(i,[h,i,d,f])})}var j=function(){if(a.browser.msie){this.style.removeAttribute("filter")}a.each(d.after,function(a,b){b.apply(i,[h,i,d,f])})};if(d.nextSlide!=d.currSlide){d.busy=1;a.fn.cycle.custom(h,i,d,j)}var k=d.nextSlide+1==b.length;d.nextSlide=k?0:d.nextSlide+1;d.currSlide=k?b.length-1:d.nextSlide-1}if(d.timeout){g.cycleTimeout=setTimeout(function(){c(b,d,0,!d.rev)},d.timeout)}}var b="Lite-1.0";a.fn.cycle=function(b){return this.each(function(){b=b||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var e=a(this);var f=b.slideExpr?a(b.slideExpr,this):e.children();var g=f.get();if(g.length<2){if(window.console&&window.console.log){window.console.log("terminating; too few slides: "+g.length)}return}var h=a.extend({},a.fn.cycle.defaults,b||{},a.metadata?e.metadata():a.meta?e.data():{});h.before=h.before?[h.before]:[];h.after=h.after?[h.after]:[];h.after.unshift(function(){h.busy=0});var i=this.className;h.width=parseInt((i.match(/w:(\d+)/)||[])[1])||h.width;h.height=parseInt((i.match(/h:(\d+)/)||[])[1])||h.height;h.timeout=parseInt((i.match(/t:(\d+)/)||[])[1])||h.timeout;if(e.css("position")=="static"){e.css("position","relative")}if(h.width){e.width(h.width)}if(h.height&&h.height!="auto"){e.height(h.height)}var j=0;f.css({position:"absolute",top:0,left:0}).hide().each(function(b){a(this).css("z-index",g.length-b)});a(g[j]).css("opacity",1).show();if(a.browser.msie){g[j].style.removeAttribute("filter")}if(h.fit&&h.width){f.width(h.width)}if(h.fit&&h.height&&h.height!="auto"){f.height(h.height)}if(h.pause){e.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}a.fn.cycle.transitions.fade(e,f,h);f.each(function(){var b=a(this);this.cycleH=h.fit&&h.height?h.height:b.height();this.cycleW=h.fit&&h.width?h.width:b.width()});f.not(":eq("+j+")").css({opacity:0});if(h.cssFirst){a(f[j]).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=j;h.nextSlide=1;var k=f[j];if(h.before.length){h.before[0].apply(k,[k,k,h,true])}if(h.after.length>1){h.after[1].apply(k,[k,k,h,true])}if(h.click&&!h.next){h.next=h.click}if(h.next){a(h.next).bind("click",function(){return d(g,h,h.rev?-1:1)})}if(h.prev){a(h.prev).bind("click",function(){return d(g,h,h.rev?1:-1)})}if(h.timeout){this.cycleTimeout=setTimeout(function(){c(g,h,0,!h.rev)},h.timeout+(h.delay||0))}})};a.fn.cycle.custom=function(b,c,d,e){var f=a(b),g=a(c);g.css({opacity:0});var h=function(){g.animate({opacity:1},d.speedIn,d.easeIn,e)};f.animate({opacity:0},d.speedOut,d.easeOut,function(){f.css({display:"none"});if(!d.sync){h()}});if(d.sync){h()}};a.fn.cycle.transitions={fade:function(b,c,d){c.not(":eq(0)").css("opacity",0);d.before.push(function(){a(this).show()})}};a.fn.cycle.ver=function(){return b};a.fn.cycle.defaults={timeout:4e3,speed:1e3,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);jQuery.fn.exists=function(){return jQuery(this).length>0};jQuery.fn.loadScrollers=function(){if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i)){}else{var a=$("div#copy div.scroll").height()+30;$("div#copy div.scroll").height(a+"px");$("div#copy div.scroll").css("height",a+"px");$(".scroll").jScrollPane()}};jQuery.fn.ajaxLoadMain=function(a){$("#nav a.current").removeClass("current");a.addClass("current");var b=new Array(-650,-300,0,-150,500);var c=new Array(-650,-360,0,150,-420);var d=c[Math.floor(Math.random()*b.length)];var e=c[Math.floor(Math.random()*c.length)];$("div#content").stop().animate({backgroundPosition:d+"px "+e+"px"},{queue:false,duration:600});if(!$("div.submenu").exists()){$("div#content").append('<div class="submenu" style="display: none"></div>')}if(!$("div#copy").exists()){$("div#content").append('<div id="copy" style="display: none"></div>')}$("div.submenu").not("#subsubmenu").not(":hidden").hide("blind",{direction:"right",duration:400});$("div#subsubmenu").hide("blind",{direction:"right",duration:400});$("#copy").hide("blind",{direction:"left",duration:400},function(){$("#content").empty();$("#content").load(a.attr("href")+" #content > *",function(){if(!$("div.submenu ul").exists()){$("div#copy").addClass("single_parent");$("div.submenu").remove()}$("#copy").not(":hidden").hide();$("div.submenu").not(":hidden").hide();$("#copy").show("blind",{direction:"right",duration:800});$("div.submenu").show("blind",{direction:"left",duration:800});$().loadScrollers()})})};jQuery.fn.ajaxLoadFresh=function(a){$("div#content").empty();$("div#content").load(a.attr("href")+" div#content > *",function(){$("div#subsubmenu").hide();$("div.submenu").not("div#subsubmenu").show("blind",{direction:"left",duration:800},function(){$("div#subsubmenu").show("blind",{duration:800})});$("div#copy").show("blind",{direction:"right",duration:800});$().loadScrollers()})};jQuery.fn.ajaxLoadSub=function(a){if(!$("div.submenu").exists()){$("div#content").append('<div class="submenu" style="display: none"></div>')}$("ul.subpages a.current").removeClass("current");a.addClass("current");$("div#copy").hide("blind",{direction:"right",duration:300},function(){$("div#copy").load(a.attr("href")+" #copy > *",function(){$("div#copy").show("blind",{direction:"left",duration:500});$().loadScrollers()})})};jQuery.fn.ajaxLoadTransactions=function(a){$("ul#transaction_category_links a.current").removeClass("current");a.addClass("current");if(!$("div.submenu").exists()){$("div#content").load(a.attr("href")+" div#content > *",function(){$().loadScrollers()})}else if($("div#subsubmenu").exists()){$("div#subsubmenu").hide("blind",{duration:300},function(){$("div#subsubmenu").load(a.attr("href")+" #subsubmenu > *",function(){$("div#subsubmenu").show("blind",{duration:500})})})}else{$("div.submenu").stop().animate({marginLeft:"30px"},{queue:false,duration:300});$("div#copy").hide("blind",{duration:500,direction:"left"},function(){$("div.submenu").after('<div class="submenu" id="subsubmenu" style="display:none;"></div>');$("div#subsubmenu").load(a.attr("href")+" div#subsubmenu > *",function(){$("div#subsubmenu").show("blind",{duration:500})});$("div#copy").addClass("transactions");$("div#copy").load(a.attr("href")+" div#copy > *",function(){$("div#copy").show("blind",{duration:500,direction:"right"});$().loadScrollers()})})}};jQuery.fn.ajaxLoadMoreTransactions=function(a){$("div#subsubmenu ul").hide("blind",{duration:300},function(){$("div#subsubmenu").load(a.attr("href")+" #subsubmenu > *",function(){$("div#subsubmenu ul").show("blind",{duration:500})})})};jQuery.fn.ajaxLoadMoreTeamMembers=function(a){$("div.submenu div.wrapbox").hide("blind",{duration:300},function(){$("div.submenu").load(a.attr("href")+" .submenu > *",function(){$("div.submenu div.wrapbox").show("blind",{duration:500});$("div.submenu a.current").removeClass("current")})})};jQuery.fn.ajaxLoadSeniorTeamMembers=function(a){if(!$("div.submenu").exists()){$("div#content").append('<div class="submenu" style="display: none"></div>')}if(!$("div#copy").exists()){$("div#content").append('<div id="copy" style="display: none"></div>')}$("div.submenu").not("#subsubmenu").not(":hidden").hide("blind",{direction:"right",duration:400});$("div#subsubmenu").hide("blind",{direction:"right",duration:400});$("#copy").fadeOut(400,function(){$("#content").empty();$("#content").load(a.attr("href")+" #content > *",function(){$("#copy").not(":hidden").hide();$("div.submenu").not(":hidden").hide();$("#copy").show("blind",{direction:"right",duration:800});$("div.submenu").show("blind",{direction:"left",duration:800});$().loadScrollers();$("#special_message").hide()})})};jQuery.fn.ajaxLoadHome=function(a){$("#nav a.current").removeClass("current");$("div.submenu").not("#subsubmenu").not(":hidden").hide("blind",{direction:"right",duration:400});$("div#subsubmenu").hide("blind",{direction:"right",duration:400});$("#copy").hide("blind",{direction:"left",duration:400},function(){$("#content").empty();$("#content").load(a.attr("href")+" #content > *",function(){$("#copy").hide();$("#copy").fadeIn(800)})})};$(document).ready(function(){$(".slideshow").cycle(4e3);$().loadScrollers();$("#nav a").mouseover(function(){$(this).stop().animate({borderBottomWidth:"17px"},{queue:false,duration:300})});$("#nav a").mouseout(function(){$(this).stop().animate({borderBottomWidth:"0px"},{queue:false,duration:300})});$.address.init(function(){$("a[href^=http://"+location.host+"]").address(function(){return $(this).attr("href").replace("http://"+location.host+location.pathname,"")})}).change(function(a){var b=$("<a></a>");var c;$("#nav a").each(function(){if($(this).attr("href").replace("http://"+location.host+location.pathname,"/")==a.path){b=$(this);c="main"}});$("ul.subpages a").each(function(){if($(this).attr("href").replace("http://"+location.host+location.pathname,"/")==a.path){b=$(this);c="sub"}});$("ul#transaction_category_links a").each(function(){if($(this).attr("href").replace("http://"+location.host+location.pathname,"/")==a.path){b=$(this);c="transactions"}});$("a.load_more_transactions").each(function(){if($(this).attr("href").replace("http://"+location.host+location.pathname,"/")==a.path){b=$(this);c="load_transactions"}});$("a.load_more_team_members").each(function(){if($(this).attr("href").replace("http://"+location.host+location.pathname,"/")==a.path){b=$(this);c="load_team_members"}});$("div#copy.senior_members a").each(function(){if($(this).attr("href").replace("http://"+location.host+location.pathname,"/")==a.path){b=$(this);c="load_senior_team_members"}});$("a#logo").each(function(){if($(this).attr("href").replace("http://"+location.host+location.pathname,"/")==a.path){b=$(this);c="home"}});if(c==null){b.attr("href","http://"+location.host+location.pathname+a.path);c="fresh"}if(c=="main"){$().ajaxLoadMain(b)}else if(c=="sub"){$().ajaxLoadSub(b)}else if(c=="transactions"){$().ajaxLoadTransactions(b)}else if(c=="load_transactions"){$().ajaxLoadMoreTransactions(b)}else if(c=="load_team_members"){$().ajaxLoadMoreTeamMembers(b)}else if(c=="load_senior_team_members"){$().ajaxLoadSeniorTeamMembers(b)}else if(c=="home"){$().ajaxLoadHome(b)}else if(c=="fresh"){$().ajaxLoadFresh(b)}})})
