jQuery.extend(jQuery.roundabout_shape,{square:function(a,b,e){var d;if(a<=Math.PI/2){b=2/Math.PI*a;d=-(2/Math.PI)*a+1;a=-(1/Math.PI)*a+1}else if(a>Math.PI/2&&a<=Math.PI){b=-(2/Math.PI)*a+2;d=-(2/Math.PI)*a+1;a=-(1/Math.PI)*a+1}else{b=a>Math.PI&&a<=3*Math.PI/2?-(2/Math.PI)*a+2:2/Math.PI*a-4;d=2/Math.PI*a-3;a=1/Math.PI*a-1}return{x:b*1.1,y:d*e,z:a,scale:a}}});
$(document).ready(function(){var a=false,b,e=false,d=$("#flow li").length,f=function(){return setInterval(function(){0==d--?clearInterval(b):$("#flow").roundabout_animateToNextChild()},4E3)};b=f();$("#flow").roundabout({duration:800,minOpacity:1,maxScale:1,minScale:0.2,shape:"square",easing:"easeInOutCubic"});$("#carousel-flow").css("visibility","visible").animate({opacity:"1"});$("#play-demo").fadeIn(1E3).click(function(){e=true;$("#carousel-video").fadeIn(200,function(){clearInterval(b);a=document.getElementById("flavorsVideo");
$("#play-demo").fadeOut(200);setTimeout(function(){try{a.api_play();demoPlaying=true}catch(g){}},3E3)})});$("#flow li").blur(function(){if(e){$("#carousel-video").hide();$("#play-demo").fadeIn(1E3);b=f();e=false}});swfobject.embedSWF("http://vimeo.com/moogaloop.swf","flavorsVideo","642","400","9.0.0",false,{clip_id:7105366,show_portrait:0,show_byline:0,show_title:0,js_api:1,js_swf_id:"flavorsVideo"},{allowscriptaccess:"always",allowfullscreen:"true"},{});var c=1;$("#gallery-"+c).fadeIn(500);$("#feedback-"+
c).fadeIn(500);setInterval(function(){c++;if(c==6)c=1;$("div.gallery div:visible").fadeOut(500,function(){$("#gallery-"+c).fadeIn(500,function(){$("div.feedback div:visible").fadeOut(500,function(){$("#feedback-"+c).fadeIn(500)})})})},5E3)});

