function mycarousel_initCallback(carousel) {
	$('.slider-pager a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });
};
function highlight(carousel, obejctli,liindex,listate){
     $('.slider-pager a:nth-child('+ liindex +')').addClass("activeSlide");
};

function removehighlight(carousel, obejctli,liindex,listate){
     $('.slider-pager a:nth-child('+ liindex +')').removeClass("activeSlide");
};

$(function(){
	$('ul.slide').jcarousel({
		/*wrap:'last',
		use wrap to start loop from beginning.
		*/
		wrap:'circular',
		animation: 800,
		visible:1,
		scroll:1,
		auto:0,
		
		itemVisibleInCallback:  highlight,
		itemVisibleOutCallback: removehighlight,		
		initCallback: mycarousel_initCallback
	});
	
	
	
	
}); 


