/* File: js/showcase.js, Ratio: 39.2% */

var showcase={max:null,current:0,speed:5000,timer:null,init:function(){showcase.max=$(".showcaseLayer").length;showcase.showLayer(1);showcase.bindTabs();showcase.rotate();},bindTabs:function(){$("#showcaseTabs li a").hover(function(){showcase.showLayer($(this).attr("rel"));clearTimeout(showcase.timer);showcase.timer=null;},function(){showcase.timer=setTimeout(showcase.rotate,showcase.speed);});},showLayer:function(no){no=parseInt(no);$(".showcaseLayer").hide();$("#showcaseTabs li").removeClass("hover");$("#layer"+no).show();$("#tab"+no).addClass("hover");showcase.current=no;},rotate:function(){var next=showcase.current+1;if(next>showcase.max)
next=1;showcase.showLayer(next);showcase.timer=setTimeout(showcase.rotate,showcase.speed);}};