﻿jQuery(document).ready(function(){function a(d){jQuery(".jcarousel-control a").bind("click",function(){d.scroll(jQuery.jcarousel.intval(jQuery(this).text()));jQuery(".jcarousel-control a").removeClass("selected");jQuery(this).addClass("selected");return false});jQuery(".jcarousel-scroll select").bind("change",function(){d.options.scroll=jQuery.jcarousel.intval(this.options[this.selectedIndex].value);return false});d.clip.hover(function(){d.stopAuto()},function(){d.startAuto()});jQuery(".jcarousel-control a").hover(function(){d.stopAuto()},function(){d.startAuto()})}function b(f,e,d){jQuery(".jcarousel-control a").removeClass("selected");$(".jcarousel-clip").animate({opacity:0.7},0)}function c(f,e,d){$(".jcarousel-clip").animate({opacity:1},1000);switch(d){case 1:itemNum="#carousel1";break;case 2:itemNum="#carousel2";break;case 3:itemNum="#carousel3";break;case 4:itemNum="#carousel4";break;case 5:itemNum="#carousel5";break;case 6:itemNum="#carousel6";break;default:itemNum="#carousel1"}jQuery(".jcarousel-control a"+itemNum).addClass("selected")}$("div").removeClass("NoJS");jQuery("#mycarousel").jcarousel({vertical:true,scroll:1,auto:8,visible:1,animation:0,wrap:"both",initCallback:a,itemFirstInCallback:{onBeforeAnimation:b,onAfterAnimation:c},buttonNextHTML:null,buttonPrevHTML:null})});
