$(document).ready(
	function(){carousel.init()}
);
var carousel={self:this,points:[],init:function(C){
	var B=[];
	var A=$(".carouselNav .carouselBullet","#topCarousel");
	A.each(function(D){B[D*1]=A[D]});
	$("#gallery").jCarouselLite({btnNext:".topCarouselNext",btnPrev:".topCarouselPrev",btnGo:B,afterEnd:function(D){carousel.bindNavEvents(D,"#topCarousel",1)},visible:1,start:0});
	$("#bottomGallery").jCarouselLite({btnNext:".bottomCarouselNext",btnPrev:".bottomCarouselPrev",visible:4,scroll:2,start:0})},bindNavEvents:function(B,A,C){$(".carouselBulletOn",A).removeClass("carouselBulletOn");
	var D=(B[0].className.replace("galleryItem","")/C);
	$(".carouselNav .carouselBullet",A).eq(D).addClass("carouselBulletOn")}
};
