function animation6(){var a=0;var b=0;var c=1;$(".backarrow").mouseover(function(){$(".backarrow").animate({opacity:.85},100,function(){})});$(".backarrow").mouseout(function(){$(".backarrow").animate({opacity:.3},300,function(){})});$(".honorsList li a").mouseover(function(a){a.preventDefault();var b=this.rel;var c=document.getElementById("img1").src;var d=document.getElementById("img1").src;var e=new RegExp(this.rel);if(d.match(e)){}else{$("#img1").fadeOut("fast",function(){document.getElementById("img1").style.height="";document.getElementById("img1").style.width="";document.getElementById("img1").src=b;setTimeout(function(){var a=document.getElementById("img1").offsetHeight;var b=document.getElementById("img1").offsetWidth;var c=b/a;var d=438/146;var e=438/b*a;var f=146/a*b;if(d>=c){document.getElementById("img1").style.height="146px";document.getElementById("img1").style.width=f+"px"}else{document.getElementById("img1").style.width="438px";document.getElementById("img1").style.height=e+"px"}},30);$("#img1").fadeIn("fast",function(){})})}});var d=false;var e=false;$(".projectText").click(function(a){a.preventDefault();if(e){$(".projectTextContent").fadeOut("fast",function(){e=false})}else{$(".projectTextContent").fadeIn("fast",function(){e=true;$(".projectTextContent").jScrollPane()});if(d){$(".workImagesSource").fadeOut("fast",function(){$(".workImagesSource").removeClass("expanded");$(".workImagesSource").fadeIn("fast",function(){d=false})})}}});$(".workImagesSource a").click(function(a){a.preventDefault();var b=this.id;if(!d){if(e){$(".projectTextContent").fadeOut("slow",function(){e=false})}$(".workImagesSource").fadeOut("fast",function(){$(".workImagesSource").addClass("expanded");$(".workImagesSource").fadeIn("fast",function(){d=true})})}else{$(".workImagesSource").fadeOut("fast",function(){$(".workImagesSource").removeClass("expanded");$(".workImagesSource").fadeIn("fast",function(){d=false})})}});$(".title").fadeIn(1200,function(){$(".studiobg").fadeIn(1200,function(){});$(".animationCover").fadeOut(800,function(){});$(".projectTextContent").show();$(".projectTextContent").jScrollPane();setTimeout(function(){$(".contactContent").fadeIn(800,function(){});$(".backarrow").fadeIn(800,function(){})},300);$(".line1").animate({left:"600"},800,function(){});$(".line2").animate({left:"800"},800,function(){});$(".line3").animate({left:"400"},800,function(){});$(".line4").animate({left:"500"},800,function(){});var a=setTimeout(function(){$(".line5").animate({left:"160"},900,function(){});$(".line6").animate({left:"0"},900,function(){});$(".line7").animate({left:"280"},900,function(){});$(".line8").animate({left:"200"},900,function(){})},250)})}function animation5(){var a="startimage";var b=document.getElementById("lowerContent").offsetHeight;var c=document.getElementById("lowerContent").offsetWidth;var d=document.getElementById(a).offsetHeight;var e=document.getElementById(a).offsetWidth;var f=c/b;var g=e/d;var h=438/146;var i=Math.floor(b/d*e);var j=Math.floor(c/e*d);var k=Math.floor(438/e*d);if(k<146&&k>142){k=146}else if(d==0){document.getElementById(a).style.height="146px"}var l=Math.floor(146/d*e);$("#startimage").parent().addClass("floatright");if(h>=g){document.getElementById(a).style.height="146px";document.getElementById(a).style.width=l+"px"}else{document.getElementById(a).style.width="438px";document.getElementById(a).style.height=k+"px"}var m=0;var n=0;var o=1;$(".backarrow").mouseover(function(){$(".backarrow").animate({opacity:.85},100,function(){})});$(".backarrow").mouseout(function(){$(".backarrow").animate({opacity:.3},300,function(){})});$(".workImages ul li a").each(function(a){m++;this.id=m});$(".workImagesSource a").each(function(a){n++;this.id=n+"_thumb"});$(".workImages ul li a").click(function(a){a.preventDefault();var b=this.id;$(".workImagesSource .workThumb").each(function(){$(this).removeClass("activelink")});if(b==o){}else{$("#"+o+"_thumb").fadeOut(600,function(){$("#"+o+"").removeClass("active");$("#"+b+"").addClass("active");$("#"+b+"_thumb").removeClass("activelink");$("#"+b+"_thumb").show();var a=""+b+"_thumb";$("#"+o+"_thumb").removeClass("floatright");if(!p){$("#"+b+"_thumb").addClass("floatright")}else{$("#"+b+"_thumb").addClass("activelink")}$("#"+b+"_thumb").animate({opacity:0},0,function(){o=b});var c=document.getElementById("lowerContent").offsetHeight;var d=document.getElementById("lowerContent").offsetWidth;var e=document.getElementById(a).childNodes[0].offsetHeight;var f=document.getElementById(a).childNodes[0].offsetWidth;var g=d/c;var h=f/e;var i=438/146;var j=Math.floor(c/e*f);var k=Math.floor(d/f*e);var l=Math.floor(438/f*e);if(l<146&&l>142){l=146}var m=Math.floor(146/e*f);if(!p){if(i>=h){document.getElementById(a).childNodes[0].style.height="146px";document.getElementById(a).childNodes[0].style.width=m+"px"}else{document.getElementById(a).childNodes[0].style.width="438px";document.getElementById(a).childNodes[0].style.height=l+"px"}}else{if(g>=h){document.getElementById(a).childNodes[0].style.height=c+"px";document.getElementById(a).childNodes[0].style.width=j+"px"}else{document.getElementById(a).childNodes[0].style.width=d+"px";document.getElementById(a).childNodes[0].style.height=k+"px"}}$("#"+b+"_thumb").animate({opacity:1},600,function(){o=b})})}});var p=false;var q=false;$(".projectText").click(function(a){a.preventDefault();if(q){$(".projectTextContent").fadeOut("fast",function(){q=false})}else{$(".projectTextContent").show();q=true;$(".projectTextContent").jScrollPane();if(p){$(".workImagesSource").fadeOut(600,function(){$(".activelink").addClass("floatright");$(".workImagesSource").removeClass("expanded");var a=document.getElementById("lowerContent").offsetHeight;var b=document.getElementById("lowerContent").offsetWidth;var c=$(".activelink").find("img").height();var d=$(".activelink").find("img").width();var e=b/a;var f=d/c;var g=438/146;var h=Math.floor(a/c*d);var i=Math.floor(b/d*c);var j=Math.floor(438/d*c);if(j<146&&j>142){j=146}var k=Math.floor(146/c*d);if(g>=f){$(".activelink").find("img").css("height","146px");$(".activelink").find("img").css("width",""+k+"px")}else{$(".activelink").find("img").css("width","438px");$(".activelink").find("img").css("height",""+j+"px")}$(".workImagesSource").fadeIn("fast",function(){p=false})})}}});$(".workImagesSource a").click(function(a){a.preventDefault();var b=this.id;var c=document.getElementById("lowerContent").offsetHeight;var d=document.getElementById("lowerContent").offsetWidth;var e=document.getElementById(b).childNodes[0].offsetHeight;var f=document.getElementById(b).childNodes[0].offsetWidth;var g=d/c;var h=f/e;var i=438/146;var j=Math.floor(c/e*f);var k=Math.floor(d/f*e);var l=Math.floor(438/f*e);if(l<146&&l>142){l=146}var m=Math.floor(146/e*f);if(!p){if(q){$(".projectTextContent").fadeOut(600,function(){q=false})}$(".workImagesSource").fadeOut(600,function(){$(".workImagesSource").addClass("expanded");$("#"+b+"").removeClass("floatright");$("#"+b+"").addClass("activelink");if(g>=h){document.getElementById(b).childNodes[0].style.height=c+"px";document.getElementById(b).childNodes[0].style.width=j+"px"}else{document.getElementById(b).childNodes[0].style.width=d+"px";document.getElementById(b).childNodes[0].style.height=k+"px"}$(".workImagesSource").fadeIn(600,function(){p=true})})}else{$(".workImagesSource").fadeOut(600,function(){$(".workImagesSource").removeClass("expanded");$("#"+b+"").addClass("floatright");$("#"+b+"").removeClass("activelink");if(i>=h){document.getElementById(b).childNodes[0].style.height="146px";document.getElementById(b).childNodes[0].style.width=m+"px"}else{document.getElementById(b).childNodes[0].style.width="438px";document.getElementById(b).childNodes[0].style.height=l+"px"}$(".workImagesSource").fadeIn(600,function(){p=false})})}});$(".animationCover").fadeOut(800,function(){});$(".title").fadeIn(1200,function(){setTimeout(function(){$(".contactContent").fadeIn(800,function(){});$(".backarrow").fadeIn(800,function(){})},300);$(".animation1").fadeIn(100,function(){$(".animation1").fadeOut(700,function(){})});$(".line1").animate({left:"600"},800,function(){});$(".line2").animate({left:"800"},800,function(){});$(".line3").animate({left:"400"},800,function(){});$(".line4").animate({left:"500"},800,function(){});var a=setTimeout(function(){$(".animation2").fadeIn(100,function(){$(".animation2").fadeOut(800,function(){})});$(".line5").animate({left:"160"},900,function(){});$(".line6").animate({left:"0"},900,function(){});$(".line7").animate({left:"280"},900,function(){});$(".line8").animate({left:"200"},900,function(){})},250)})}function animation4(){$(".backarrow").mouseover(function(){$(".backarrow").animate({opacity:.85},100,function(){})});var a=0;$(".quotes div").each(function(b){a++;this.id=a});var b=1;var c=2;setInterval(function(){if(b!=a){c=b+1}else{c=1}$(".quotes #"+b+"").fadeOut(600,function(){$(".quotes #"+c+"").fadeIn(600,function(){b=c})})},quotespeed);$(".backarrow").mouseout(function(){$(".backarrow").animate({opacity:.3},300,function(){})});$(".title").fadeIn(1200,function(){$(".animationCover").fadeIn(800,function(){$(".studiobg").fadeIn(1200,function(){});$(".studioNav").fadeIn(1200,function(){});$(".quotes").fadeIn(1200,function(){})});setTimeout(function(){$(".contactContent").fadeIn(800,function(){});$(".backarrow").fadeIn(800,function(){})},300);$(".animation1").fadeIn(100,function(){$(".animation1").fadeOut(700,function(){})});$(".line1").animate({left:"600"},800,function(){});$(".line2").animate({left:"800"},800,function(){});$(".line3").animate({left:"400"},800,function(){});$(".line4").animate({left:"500"},800,function(){});var a=setTimeout(function(){$(".animation2").fadeIn(100,function(){$(".animation2").fadeOut(800,function(){})});$(".line5").animate({left:"160"},900,function(){});$(".line6").animate({left:"0"},900,function(){});$(".line7").animate({left:"280"},900,function(){});$(".line8").animate({left:"200"},900,function(){})},250)})}function animation3(){var a="easeOutExpo";var b=0;setTimeout(function(){$(".coverList").hide()},2300);$(".workList").jScrollPane();var c=document.location.href;var d=new RegExp("return");if(c.match(d)){$(".animationCover").show();setTimeout(function(){$(".animationCover").fadeOut(800,function(){});$(".animationCover2").show()},500);$(".workslideCover").animate({left:"-110",opacity:"1"},1e3,a,function(){});$(".workslideImages").animate({left:"12",opacity:"1"},1e3,a,function(){});$(".workslideImagesClear").animate({left:"-442",opacity:"1"},1e3,a,function(){});$(".workslideImagesClearContainer").animate({left:"450"},1e3,a,function(){})}else{setTimeout(function(){$(".animationCover2").fadeIn(800,function(){})},500);setTimeout(function(){$(".workslideCover").animate({left:"-110",opacity:"1"},2400,a,function(){});$(".workslideImages").animate({left:"12",opacity:"1"},2400,a,function(){});$(".workslideImagesClear").animate({left:"-442",opacity:"1"},2400,a,function(){});$(".workslideImagesClearContainer").animate({left:"450"},2400,a,function(){})},1300)}$(".workList ul li a").each(function(a){b++;this.id=b});$(".workList ul li a").mouseover(function(){$(".workslideImages").stop(true,false).animate({left:-(this.id*438-888)},700,a,function(){});$(".workslideImagesClear").stop(true,false).animate({left:-(this.id*438-434)},700,a,function(){})});$(".workslideImages ul li img").each(function(a){Pixastic.process(this,"blurfast",{amount:1})});$(".backarrow").mouseover(function(){$(".backarrow").animate({opacity:.85},100,function(){})});$(".backarrow").mouseout(function(){$(".backarrow").animate({opacity:.3},300,function(){})});$(".title").fadeIn(1200,function(){setTimeout(function(){$(".workList").fadeIn(800,function(){});$(".backarrow").fadeIn(800,function(){})},300);$(".animation1").fadeIn(100,function(){$(".animation1").fadeOut(700,function(){})});$(".line1").animate({left:"600"},800,function(){});$(".line2").animate({left:"800"},800,function(){});$(".line3").animate({left:"400"},800,function(){});$(".line4").animate({left:"500"},800,function(){});var a=setTimeout(function(){$(".animation2").fadeIn(100,function(){$(".animation2").fadeOut(800,function(){})});$(".line5").animate({left:"160"},900,function(){});$(".line6").animate({left:"0"},900,function(){});$(".line7").animate({left:"280"},900,function(){});$(".line8").animate({left:"200"},900,function(){})},250)})}function animation2(){$(".backarrow").mouseover(function(){$(".backarrow").animate({opacity:.85},100,function(){})});$(".backarrow").mouseout(function(){$(".backarrow").animate({opacity:.3},300,function(){})});$(".title").fadeIn(1200,function(){$(".animationCover").fadeIn(800,function(){});setTimeout(function(){$(".contactContent").fadeIn(800,function(){});$(".backarrow").fadeIn(800,function(){})},300);$(".animation1").fadeIn(100,function(){$(".animation1").fadeOut(700,function(){})});$(".line1").animate({left:"600"},800,function(){});$(".line2").animate({left:"800"},800,function(){});$(".line3").animate({left:"400"},800,function(){});$(".line4").animate({left:"500"},800,function(){});var a=setTimeout(function(){$(".animation2").fadeIn(100,function(){$(".animation2").fadeOut(800,function(){})});$(".line5").animate({left:"160"},900,function(){});$(".line6").animate({left:"0"},900,function(){});$(".line7").animate({left:"280"},900,function(){});$(".line8").animate({left:"200"},900,function(){})},250)})}function animation1(){var a=document.location.href;var b=new RegExp("return");if(a.match(b)){$(".title").fadeIn(10,function(){$(".indexbg").fadeIn(500,function(){});setTimeout(function(){$(".worklink").fadeIn(300,function(){})},200);setTimeout(function(){$(".studiolink").fadeIn(300,function(){})},350);setTimeout(function(){$(".contactlink").fadeIn(300,function(){})},500);$(".animationCover").show();$(".animationCover").fadeOut(600,function(){})})}else{$(".title").fadeIn(1200,function(){$(".indexbg").fadeIn(800,function(){});setTimeout(function(){$(".worklink").fadeIn(300,function(){})},600);setTimeout(function(){$(".studiolink").fadeIn(300,function(){})},650);setTimeout(function(){$(".contactlink").fadeIn(300,function(){})},700);$(".animation1").fadeIn(100,function(){$(".animation1").fadeOut(700,function(){})});$(".line1").animate({left:"600"},800,function(){});$(".line2").animate({left:"800"},800,function(){});$(".line3").animate({left:"400"},800,function(){});$(".line4").animate({left:"500"},800,function(){});var a=setTimeout(function(){$(".animation2").fadeIn(100,function(){$(".animation2").fadeOut(800,function(){})});$(".line5").animate({left:"160"},900,function(){});$(".line6").animate({left:"0"},900,function(){});$(".line7").animate({left:"280"},900,function(){});$(".line8").animate({left:"200"},900,function(){})},250)})}}$.fn.preload=function(){this.each(function(){$("<img/>")[0].src=this})}
