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();
    });
};


	hs.graphicsDir = 'scripts/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.numberPosition = 'caption';
	hs.dimmingOpacity = 0.75;
	hs.creditsHref = 'http://www.immobretagne.fr';
	hs.lang = {
		creditsText : 'FNAIM Bretagne'
	}
	
	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: .75,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});


jQuery.noConflict();


		function 	open_espace(div)
		{
			if(div=='espace')
			jQuery('#espace').toggle( 'blind', '', 1000 );
			
			if(div=='espace_pro')
			jQuery('#espace_pro').toggle( 'blind', '', 1000 );
		}

jQuery(document).ready(function() {

    jQuery('#mycarousel').jcarousel({
        auto: 5,
        wrap: 'circular',
        initCallback: mycarousel_initCallback
    });		
		

		
		
});


