$(document).ready(function() 
{

	hs.registerOverlay({ overlayId: 'closebutton', position: 'center', fade: 2 });
	hs.graphicsDir = 'lib/highslide/graphics/';
	hs.wrapperClassName = 'borderless';
	hs.dimmingOpacity = 0.75;

	hs.blockRightClick = true;
	hs.showCredits = false;



	$('.diapo img').hide();
	$('.diapo320 img').hide();
	
	$('.diapo_charger img').hide();

	$('#ouvrir_fenetre').hide();

	$('#fermer_fenetre').click(function() 
	{
		$('#contenu_texte').animate({ width: 'hide' }); 
		$('#gauche').animate({ width: 'hide' }); 
		$('#ouvrir_fenetre').show(500);
		return false;
	});


	$('#ouvrir_fenetre').click(function() 
	{
		$('#contenu_texte').animate({ width: 'show' }); 
		$('#gauche').animate({ width: 'show' }); 
		$('#ouvrir_fenetre').hide();
		return false;
	});
	window.onload = function () {
		
		$('.diapo img').show();
		$('.diapo320 img').show();
		$('.diapo_charger img').show();
		
		$('#diaporama_fond').cycle( 
		{
			fx:     'fade', 
			speed:   1000, 
			timeout: 6000
		});
		$('#diapo_droite').cycle( 
		{
			fx:     'fade', 
			speed:   1000, 
			timeout: 6000
		});
		$('.diapo320').cycle( 
		{
			fx:     'fade', 
			speed:   1000, 
			timeout: 6000
		});
		
		$('#diaporama_fond').css({'background-image' : 'url()'});
		$('#diaporama_fond img').css({'display' : 'inline'});

		$('#illustration_cabane').cycle( 
		{
			fx:     'fade', 
			speed:  'fast', 
			timeout: 0, 
			next:   '#next2', 
			prev:   '#prev2' 
		});
		
		
	};
	
	
});
