$(document).ready(
	function() {
		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('#collectionscarousel').jcarousel({
			auto: 0,
			scroll:1,
			visible:4, 
			wrap: null
		});
		jQuery('.galeriecarousel').jcarousel({
			auto: 0,
			scroll:1,
			wrap: null
		});
		jQuery('#modelscarousel').jcarousel({
			auto: 0,
			scroll:8,
			wrap: null,
			visible: 8 
		});
		jQuery('#productcarousel').jcarousel({
			auto: 0,
			scroll:1,
			wrap: null,
			visible: 3 
		});
		jQuery('#relatedcarousel').jcarousel({
			auto: 0,
			scroll:1,
			wrap: null,
			visible: 3 
		});

	$('.prd').nivoSlider({
        effect: 'boxRain', // Specify sets like: 'fold,fade,sliceDown'
        slices: 4, // For slice animations
        boxCols: 4, // For box animations
        boxRows: 4, // For box animations
        animSpeed: 500, // Slide transition speed
        pauseTime: 6000, // How long each slide will show
        startSlide: 0, // Set starting Slide (0 index)
        directionNav: false, // Next & Prev navigation
        directionNavHide: false, // Only show on hover
        controlNav: false, // 1,2,3... navigation
        controlNavThumbs: false, // Use thumbnails for Control Nav
        controlNavThumbsFromRel: false, // Use image rel for thumbs
        keyboardNav: true, // Use left & right arrows
        pauseOnHover: true, // Stop animation while hovering
        manualAdvance: false, // Force manual transitions
        captionOpacity: 0.8 // Universal caption opacity
    });

		
		$('.fav').jFav();
	}
);

