	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.immobilier59-62.fr/';
	hs.lang = {
		creditsText : 'FNAIM 59 62'
	}
	
	// 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
		}
	});

	
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();
    });
};

		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('#slider').nivoSlider({
				effect: 'fold',
        animSpeed: 500, // Slide transition speed
        pauseTime: 5000, // How long each slide will show
        pauseOnHover: true, // Stop animation while hovering
				captionOpacity: 0.8

    });
    jQuery('#mycarousel').jcarousel({
        auto: 5,
        wrap: 'circular',
        initCallback: mycarousel_initCallback
    });	
});	
	
/*

	jQuery('#slider').nivoSlider({
		effect: 'fold',
		animSpeed: 500, // Slide transition speed
		pauseTime: 5000, // How long each slide will show
		pauseOnHover: true // Stop animation while hovering
	});

// initialize tooltip
$("#wrap img[title]").tooltip({

   // tweak the position
   offset: [10, 2],

   // use the "slide" effect
   effect: 'slide'

// add dynamic plugin with optional configuration for bottom edge
}).dynamic({ bottom: { direction: 'down', bounce: true } });



// initialize tooltip
$("#nouv img[title]").tooltip({

   // tweak the position
   offset: [10, 2],

   // use the "slide" effect
   effect: 'slide'

// add dynamic plugin with optional configuration for bottom edge
}).dynamic({ bottom: { direction: 'down', bounce: true } });

*/
$(window).load(function() {

});
