function popup(url,nom,largeur,hauteur,scroll) {
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(url,nom,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+",'menubar=no,scrollbars="+scroll+",statusbar=no,resizable=no'");
}
function displayAutre(){
	elt1 = document.getElementById('Cautre');
	elt2 = document.getElementById('blockCautre');

	if (elt1.checked) {
		elt2.style.display = 'block';
	}
	else {
		elt2.style.display = 'none';
	}
	return true;
}
function displayEnf(val){
	elt2 = document.getElementById('blockCenf');

	if (val==1){
		elt2.style.display = 'block';
	}
	else {
		elt2.style.display = 'none';
	}
	return true;
}
$(function() {
	$('#imaHead').slideshow({
		timeout: 5500,
		fadetime: 1000,
		type: 'sequence'
		// pauselink: 'pause2'
	});
    /*
    $("#col3F").toggle(
		    function(){
		    	height = $("#col3F").height();
				height2 = "-"+height+"px";
		    	$("#col3F").animate( { height:height2}, 700, 'easeOutExpo');
		    	$("#infoPic").removeClass("infoMoins");
	            $("#infoPic").addClass("infoPlus");
		    },
		    function(){
		    	$("#col3F").animate( { height:'0'}, 700, 'easeOutExpo');
		    	$("#infoPic").removeClass("infoPlus");
	            $("#infoPic").addClass("infoMoins");
		    }
		  );
		  */
	$("#infoPic").click( function(){
		//$("#col3F").slideToggle(700);
		/*
		$("#col3F").toggle(
		    function(){
		    	height = $("#col3F").height();
				height2 = "-"+height+"px";
		    	$("#col3F").animate( { marginTop:height2}, 700, 'easeOutExpo');
		    	$("#infoPic").removeClass("infoMoins");
	            $("#infoPic").addClass("infoPlus");
		    },
		    function(){
		    	$("#col3F").animate( { marginTop:'0'}, 700, 'easeOutExpo');
		    	$("#infoPic").removeClass("infoPlus");
	            $("#infoPic").addClass("infoMoins");
		    }
		  );
		*/
		tamp = $("#col3F").css("marginTop");
		if (tamp=='0px') {
			 height = $("#col3F").height();
			 height2 = "-"+height+"px";
			 $("#col3F").animate( { marginTop:height2}, 400, 'easeOutExpo');
			 $("#infoPic").removeClass("infoMoins");
	         $("#infoPic").addClass("infoPlus");
		}else{
			$("#col3F").animate( { marginTop:'0'}, 400, 'easeOutExpo');
			$("#infoPic").removeClass("infoPlus");
	        $("#infoPic").addClass("infoMoins");
		}
		/*
		if($("#col3F").is(":visible")){
			//$("#col3F").slideUp(700,'easeInOutExpo');
			height = $("#col3F").height();
			height2 = "-"+height+"px";
			$("#col3F").animate( { marginTop:height2}, 700, 'easeOutExpo');
			$("#infoPic").removeClass("infoMoins");
            $("#infoPic").addClass("infoPlus");
		}else{
			$("#col3F").slideDown(400,'easeOutExpo'); 
			//$("#col3F").animate( { marginTop:"0"}, 700 );
			$("#infoPic").removeClass("infoPlus");
            $("#infoPic").addClass("infoMoins");
		}
		// easeOutExpo easeOutElastic easeOutQuint easeOutSine easeOutBounce 
		*/
	});
});


hs.lang = {
	cssDirection: 'ltr',
	loadingText: 'Chargement...',
	loadingTitle: 'Cliquer pour annuler',
	focusTitle: 'Cliquer pour amener au premier plan',
	fullExpandTitle: 'Afficher à la taille réelle',
	creditsText: 'Développé sur <i>Highslide JS</i>',
	creditsTitle: 'Site Web de Highslide JS',
	previousText: 'Précédente',
	nextText: 'Suivante',
	moveText: 'Déplacer',
	closeText: 'Fermer',
	closeTitle: 'Fermer (esc ou Échappement)',
	resizeTitle: 'Redimensionner',
	playText: 'Lancer',
	playTitle: 'Lancer le diaporama (barre d\'espace)',
	pauseText: 'Pause',
	pauseTitle: 'Suspendre le diaporama (barre d\'espace)',
	previousTitle: 'Précédente (flèche gauche)',
	nextTitle: 'Suivante (flèche droite)',
	moveTitle: 'Déplacer',
	fullExpandText: 'Taille réelle',
	number: 'Image %1 of %2',
	restoreTitle: 'Cliquer pour fermer l\'image, cliquer et faire glisser pour déplacer, utiliser les touches flèches droite et gauche pour suivant et précédent.'
};
//hs.graphicsDir = '/~gui/monsite.camping.fr/chambon/www/img/highslide/';
hs.graphicsDir = '/~chambon/img/highslide/';
hs.wrapperClassName = 'wide-border'; // floating-caption
hs.outlineWhileAnimating = true;
hs.allowSizeReduction = false;
hs.align = 'center';
//hs.dimmingOpacity = 0.9;
// Gecko >1.9 Mac
hs.dimmingGeckoFix = true;
hs.showCredits = false;
// always use this with flash, else the movie will be stopped on close:
hs.preserveContent = false;
hs.transitions = ["expand"];
hs.easing = 'easeInBack';
hs.addSlideshow({
	slideshowGroup: 'first-group',
	useControls:false
});
hs.addSlideshow({
	slideshowGroup: 'second-group',
	interval: 3500,
	repeat: false,
	useControls: true,
	fixedControls: true,
	overlayOptions: {
		opacity: 0.6,
		position: 'bottom center',
		hideOnMouseOut: true
		//offsetY: -5
	}
});
