
var loop_time=5000;$(document).ready(function(){$('#quick-search input[type="submit"]').click(function(){});var selectMax=$('#slideshow-box ul li').length;finishLoading=0;currentSel=1;$('#slide_'+currentSel).hide().css('top',0).fadeIn('normal');$('#slideshow-box ul li').not('.active').children('p').hide();$('#slideshow-box ul li').live('ON',function(event,current,next){id=parseInt($(this).attr('id').replace("slide_",""));if($(this).hasClass('active')){$('#slideshow-box li').css('z-index','auto');$('#slide_'+current).css('z-index',1);$('#slide_'+next).hide().css('top',0).css('z-index',2).fadeIn('normal');}
currentSel=parseInt($(this).attr('id').replace("slide_",""));});var interval=setInterval(autoSlide,loop_time);
function autoSlide(){nextSel=currentSel+1;if(nextSel>selectMax){nextSel=1;}
$('#slide_'+currentSel).removeClass('active');$('#slide_'+nextSel).addClass('active').trigger('ON',[currentSel,nextSel]);nextSel++;}
$('#slider ul').jcarousel({scroll:1,auto:5,animation:'slow',wrap:'circular'});$('#slider ul li').animate({'opacity':0.6},1);$('#slider ul li').hover(function(){$(this).stop().animate({'opacity':1},{queue:false,duration:100},'swing');},function(){$(this).stop().animate({'opacity':0.6},{queue:false,duration:100},'swing')});});
