/*function mycarousel_initCallback(carousel) {

    jQuery('.slideshow-buttons a').bind('click', function() {

		var index = $('.slideshow-buttons a').index(this);

			$($(this).parents('.slideshow-buttons')[0]).find('a').removeClass('active');

    			$(this).addClass('active');

					carousel.scroll(jQuery.jcarousel.intval(index + 1));

        return false;

    });

};



jQuery(document).ready(function() {

    jQuery(".slideshow").jcarousel({

        scroll: 1,

        initCallback: mycarousel_initCallback,

        buttonNextHTML: null,

        buttonPrevHTML: null

    });

});*/

 // Ride the carousel...
            jQuery(document).ready(function () {
                jQuery(".slideshow").jcarousel({
                    scroll: 1, animation:700, visible:1, auto:3, wrap:"circular",
                    initCallback: mycarousel_initCallback,
                    itemVisibleInCallback: {
                        onAfterAnimation: function (c, o, i, s) {
                            jQuery('.slideshow-buttons a').removeClass('active').addClass('inactive');
                            jQuery('.slideshow-buttons a:eq(' + ( (i - 1) % 3 ) + ')').removeClass('inactive').addClass('active');
                        }
                    }

                });
            });
			
			 function mycarousel_initCallback(carousel) {
                // Pause autoscrolling if the user moves with the cursor over the clip.
        	    carousel.clip.hover(function() {
        	        carousel.stopAuto();
        	    }, function() {
        	        carousel.startAuto();
        	    });

            };
