/*
jQuery(document).ready(function(){	
	//Back to top slider
    jQuery('a[href=#totop]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 600);
        return false;
    });
	// Product Slider
    jQuery('#featured-products').jcarousel();

	// FancyBox jQuery
	jQuery("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': true }); 

	// Slider Homepage
	jQuery("#slider").easySlider({
		auto: true,
		continuous: true,
		numeric: true,
		speed: 2000,
		pause: 7000,
	});
});
*/

function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};


jQuery(document).ready(function() {
    jQuery('#featured-products').jcarousel();
    jQuery('#categories-products').jcarousel({
        visible: 4,
		auto: 2,
		wrap: 'last',
		initCallback: mycarousel_initCallback
    });
});

