function preview_initCallback(carousel)
{
	carousel.container.find('.slider-nav .next').bind('click', function()
	{
		carousel.next();
		return false;
	});
	
	carousel.container.find('.slider-nav .previous').bind('click', function()
	{
		carousel.prev();
		return false;
	});
};

function preview_itemVisibleInCallback(a, b, c, d)
{
	a.container.find(".number").html(c+"/"+a.container.find("ul li").length);
}

jQuery(document).ready(function()
{
	jQuery(".preview .img-slider").jcarousel({
		scroll: 1,
		initCallback: preview_initCallback,
		itemVisibleInCallback: {
			onBeforeAnimation: preview_itemVisibleInCallback
		}
	});
	
	$('.up a').smoothScroll();
});
