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}});var oFx={duration:250,easing:"easeInOutExpo",wait:false};jQuery.easing.def="easeInOutExpo";var bUseFades=true;if((navigator.userAgent.indexOf("MSIE 6")!=-1)||(navigator.userAgent.indexOf("MSIE 7")!=-1)||(navigator.userAgent.indexOf("Chrome")!=-1)){bUseFades=false}var Fish={init:function(a){a=(typeof a=="boolean")?a:true;if(a){this.nav.submenus.init();this.nav.init()}$(".btn-mailto").click(function(c){c.preventDefault();var b=$(this).text().split(" [at] ");document.location="mailto:"+b[0]+"@"+b[1]})},nav:{elHeader:null,elNav:null,oTimeout:null,oSizeExpand:{},oSizeCollapse:{},bInit:false,init:function(){var a=this;this.elHeader=$("#header");this.elHeader.css("visibility","visible");var b=this.elHeader.find("h1");this.elNav=$("#nav");$("#header h1 a").hover(function(){return false});$("#header h1 a").mouseleave(function(){return false});$("#header h1 a").mouseenter(function(){return false});this.oSizeExpand.height=this.elHeader.height();this.oSizeExpand.width=this.elHeader.width();this.oSizeCollapse.height=b.height();this.oSizeCollapse.width=b.width();this.elHeader.find("a").mouseenter(function(c){c.stopPropagation();return false});this.elHeader.mouseenter(function(c){c.stopPropagation();clearTimeout(a.oTimeout);a.bInit=true;a.expand()});this.elHeader.mouseleave(function(c){if(a.bInit){a.oTimeout=setTimeout(function(){a.collapse()},500)}});this.elHeader.data("is_open",true);this.elNav.css({display:"block",opacity:1});this.elHeader.css({height:this.oSizeExpand.height,width:this.oSizeExpand.width})},expand:function(){var a=this;this.elNav.stop(true);this.elHeader.stop(true).animate({width:this.oSizeExpand.width,height:this.oSizeExpand.height},oFx.duration,null,function(){a.elNav.css("display","block");a.elNav.animate({opacity:1},oFx.duration).queue(function(){a.elHeader.data("is_open",true)})})},collapse:function(){var a=this;this.elHeader.stop(true);this.elNav.stop(true).animate({opacity:0},oFx.duration,null,function(){$(this).css("display","none");a.elHeader.animate({height:a.oSizeCollapse.height,width:a.oSizeCollapse.width},oFx.duration);a.elHeader.data("is_open",false)})},submenus:{aItems:[],aMenus:[],oShowing:null,init:function(){var a=this;this.aItems=$("#menu-artwork li");$("#menu-artwork li").each(function(d,e){var c="#"+$(e).attr("id").replace("btn-","menu-");var b={left:"-"+$(c).width()+"px",position:"absolute",top:0};if($(e).hasClass("on")){b.left=0;a.oShowing=$(c)}$(c).css(b);$(e).find("a").click(function(f){f.preventDefault();a.show($(c))})});this.aMenus=$(".nav-sub")},show:function(d){if(this.oShowing&&this.oShowing!==$(d)){var a=$(this.oShowing);var b="#"+this.oShowing.attr("id").replace("menu-","btn-");var c="#"+$(d).attr("id").replace("menu-","btn-");$(b).removeClass("on");$(c).addClass("on");a.stop().animate({opacity:0},250,null,function(){$(a).css("left","-"+$(a).width()+"px");$(d).stop().css("opacity",1).animate({left:0},500)})}else{$(d).animate({left:0},500)}this.oShowing=$(d)}}}};
