﻿var Carousel={timeInterval:15,timerHandle:null,doScroll:function(){$("#CarouselMain").each(function(){this.doMoveNext()})},scrollAssociated:function(){$("#CarouselNext").each(function(){this.doMoveNext()});$("#CarouselDots").each(function(){this.doMoveNext()})},setTimer:function(b){Carousel.stop();if(b==null){b=Carousel.timeInterval}var a=(b*1000);if(a>0){Carousel.timerHandle=setTimeout(Carousel.doScroll,a)}},stop:function(){if(Carousel.timerHandle!=null&&Carousel.timerHandle!=undefined){clearTimeout(Carousel.timerHandle);Carousel.timerHandle=null}}};function carouselTimer(a){Carousel.setTimer(a)}$(document).ready(function(){$("#CarouselMain").jCarouselLite({btnNext:".btnCarouselNext",speed:300,visible:1,beforeStart:Carousel.scrollAssociated,afterEnd:function(a){Carousel.setTimer(null)}});$("#CarouselNext").jCarouselLite({speed:0,visible:1});$("#CarouselDots").jCarouselLite({speed:0,visible:1});carouselTimer(Carousel.timeInterval)});