jQuery.extend(jQuery.easing,{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 i=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 i=k/4}else{var i=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-i)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var i=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 i=k/4}else{var i=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-i)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var i=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 i=k/4}else{var i=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-i)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-i)*(2*Math.PI)/k)*0.5+m+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}});jQuery.extend(jQuery.easing,{easeIn:function(e,f,a,h,g){return jQuery.easing.easeInQuad(e,f,a,h,g)},easeOut:function(e,f,a,h,g){return jQuery.easing.easeOutQuad(e,f,a,h,g)},easeInOut:function(e,f,a,h,g){return jQuery.easing.easeInOutQuad(e,f,a,h,g)},expoin:function(e,f,a,h,g){return jQuery.easing.easeInExpo(e,f,a,h,g)},expoout:function(e,f,a,h,g){return jQuery.easing.easeOutExpo(e,f,a,h,g)},expoinout:function(e,f,a,h,g){return jQuery.easing.easeInOutExpo(e,f,a,h,g)},bouncein:function(e,f,a,h,g){return jQuery.easing.easeInBounce(e,f,a,h,g)},bounceout:function(e,f,a,h,g){return jQuery.easing.easeOutBounce(e,f,a,h,g)},bounceinout:function(e,f,a,h,g){return jQuery.easing.easeInOutBounce(e,f,a,h,g)},elasin:function(e,f,a,h,g){return jQuery.easing.easeInElastic(e,f,a,h,g)},elasout:function(e,f,a,h,g){return jQuery.easing.easeOutElastic(e,f,a,h,g)},elasinout:function(e,f,a,h,g){return jQuery.easing.easeInOutElastic(e,f,a,h,g)},backin:function(e,f,a,h,g){return jQuery.easing.easeInBack(e,f,a,h,g)},backout:function(e,f,a,h,g){return jQuery.easing.easeOutBack(e,f,a,h,g)},backinout:function(e,f,a,h,g){return jQuery.easing.easeInOutBack(e,f,a,h,g)}});$(function(){$("div.csw").prepend("<p class='loading'>Loading...</p>")});var j=0;jQuery.fn.codaSlider=function(a){a=jQuery.extend({easeFunc:"expoinout",easeTime:750,toolTip:false},a);return this.each(function(){var c=$(this);c.find("p.loading").remove();c.removeClass("csw").addClass("stripViewer");var g=c.find("div.panel").width();var h=c.find("div.panel").size();var b=g*h;c.find("div.panelContainer").css("width",b);var e=h*2;if(location.hash&&parseInt(location.hash.slice(1))<=h){var f=parseInt(location.hash.slice(1));var d=-(g*(f-1));$(this).find("div.panelContainer").css({left:d})}else{var f=1}c.each(function(k){$(this).before("<div class='stripNavL' id='stripNavL"+j+"'><a href='#'>Left</a></div>");$(this).after("<div class='stripNavR' id='stripNavR"+j+"'><a href='#'>Right</a></div>");$(this).before("<div class='stripNav' id='stripNav"+j+"'><ul></ul></div>");$(this).find("div.panel").each(function(i){$("div#stripNav"+j+" ul").append("<li class='tab"+(i+1)+"'><a href='#"+(i+1)+"'>"+$(this).attr("title")+"</a></li>")});$("div#stripNav"+j+" a").each(function(i){e+=$(this).parent().width();$(this).bind("click",function(){$(this).addClass("current").parent().parent().find("a").not($(this)).removeClass("current");var l=-(g*i);f=i+1;$(this).parent().parent().parent().next().find("div.panelContainer").animate({left:l},a.easeTime,a.easeFunc)})});$("div#stripNavL"+j+" a").click(function(){if(f==1){var i=-(g*(h-1));f=h;$(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().parent().find("li:last a").addClass("current")}else{f-=1;var i=-(g*(f-1));$(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().prev().find("a").addClass("current")}$(this).parent().parent().find("div.panelContainer").animate({left:i},a.easeTime,a.easeFunc);location.hash=f;return false});$("div#stripNavR"+j+" a").click(function(){if(f==h){var i=0;f=1;$(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().parent().find("a:eq(0)").addClass("current")}else{var i=-(g*f);f+=1;$(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().next().find("a").addClass("current")}$(this).parent().parent().find("div.panelContainer").animate({left:i},a.easeTime,a.easeFunc);location.hash=f;return false});$("a.cross-link").click(function(){$(this).parents().find(".stripNav ul li a:eq("+(parseInt($(this).attr("href").slice(1))-1)+")").trigger("click")});$("div#stripNav"+j).css("width",e);if(location.hash&&parseInt(location.hash.slice(1))<=h){$("div#stripNav"+j+" a:eq("+(location.hash.slice(1)-1)+")").addClass("current")}else{$("div#stripNav"+j+" a:eq(0)").addClass("current")}});j++})};