jQuery(document).ready(function(){var delay=300;jQuery("#tab1").mouseover(function(){showItem(1);});jQuery("#tab2").mouseover(function(){showItem(2);});jQuery("#tab3").mouseover(function(){showItem(3);});autoRotate();});var curr_no=1;var timer_no=1;var rotate_timer="";var timer=5000;function showItem(no){if(curr_no!=no){resetItems();jQuery("#slide-"+no).fadeIn();t=68+(no*192)-192;jQuery("#tab-arrow").css("left",t+"px");jQuery("#tab"+no).children().removeClass();jQuery("#tab"+no).addClass("active");curr_no=no;}}
function resetItems(){jQuery("#slide-"+curr_no).fadeOut();jQuery("#tab"+curr_no).children().removeClass();jQuery("#tab"+curr_no).removeClass("active");}
function autoRotate(){showItem(timer_no);timer_no++;if(timer_no>3){timer_no=1;}
rotate_timer=setTimeout("autoRotate()",timer);}
