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();
    });
};




$(document).ready(function() {
			

$('#mycarousel').jcarousel({
					
	auto: 1,
	wrap: 'circular',
	scroll: 1,
	animation: 1000, //Millisekunden
	initCallback: mycarousel_initCallback
});


	


$("a[rel=360Box]").fancybox({
	'width': '90%',
	'height': '90%',
	'autoScale': false,
	'transitionIn': 'none',
	'transitionOut': 'none',
	'type': 'iframe',
	'hideOnContentClick':   true
});



$("a[rel=lightbox]").fancybox({
	'transitionIn'	:	'elastic',
	'transitionOut'	:	'elastic',
	'speedIn'		:	600, 
	'speedOut'		:	200, 
	'overlayShow'	:	true,
	'overlayOpacity' : 0.7,
	'overlayColor': '#000',
	'hideOnContentClick':   true
});






});


