//Menu déroulant
	function showSub(id){ document.getElementById(id).style.visibility = "visible"; }
	function hideSub(id){ document.getElementById(id).style.visibility = "hidden"; }
	
/*	à utilisez pour ce foutu Explorer 7 supprimer "visibility" dans le CSS
window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('soumenu'+i)) {document.getElementById('soumenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
*/
//Nouvelle fenêtre	
	function MM_openBrWindow(theURL,winName,features) { window.open(theURL,winName,features); }
	
//Diapo de photos de la soirée Tropical	
	thisImgA = 1;
	imgCtA = 74;
	function newSlide(direction) { 
		if (document.images) { 
			thisImgA = thisImgA + direction 
			if (thisImgA < 1) { thisImgA = imgCtA }
			if (thisImgA > imgCtA) { thisImgA=1}
			document.getElementById('pos').innerHTML = thisImgA + " sur " + imgCtA;
			document.body.style.backgroundImage = "url(photos_tropical/slide"+thisImgA+".jpg)";
//			document.getElementById('slider').src = "photos_tropical/slide"+thisImg+".jpg" 
		}
	}
//Diapo de photos de la Réunion	
	thisImg = 1;
	imgCt = 80;
	function Slide(direction) { 
		if (document.images) { 
			thisImg = thisImg + direction 
			if (thisImg < 1) { thisImg = imgCt }
			if (thisImg > imgCt) { thisImg=1}
			document.getElementById('pis').innerHTML = thisImg + " sur " + imgCt;
			document.body.style.backgroundImage = "url(photos_reunion/slide"+thisImg+".jpg)";
//			document.getElementById('slider').src = "photos_tropical/slide"+thisImg+".jpg" 
		}
	}
//Diapo de photos de Cheptain	
	thisImg = 1;
	imgCt = 33;
	function Slid(direction) { 
		if (document.images) { 
			thisImg = thisImg + direction 
			if (thisImg < 1) { thisImg = imgCt }
			if (thisImg > imgCt) { thisImg=1}
			document.getElementById('pas').innerHTML = thisImg + " sur " + imgCt;
			document.body.style.backgroundImage = "url(photos_cheptain/slide"+thisImg+".jpg)";
//			document.getElementById('slider').src = "photos_tropical/slide"+thisImg+".jpg" 
		}
	}
//Diapo de photos de Champery07	
	thisImg = 1;
	imgCt = 36;
	function Slid(direction) { 
		if (document.images) { 
			thisImg = thisImg + direction 
			if (thisImg < 1) { thisImg = imgCt }
			if (thisImg > imgCt) { thisImg=1}
			document.getElementById('pos').innerHTML = thisImg + " sur " + imgCt;
			document.body.style.backgroundImage = "url(photos_champery07/slide"+thisImg+".jpg)";
//			document.getElementById('slider').src = "photos_tropical/slide"+thisImg+".jpg" 
		}
	}
//Diapo de photos de Croset07	
	thisImg = 1;
	imgCt = 12;
	function Slid(direction) { 
		if (document.images) { 
			thisImg = thisImg + direction 
			if (thisImg < 1) { thisImg = imgCt }
			if (thisImg > imgCt) { thisImg=1}
			document.getElementById('pes').innerHTML = thisImg + " sur " + imgCt;
			document.body.style.backgroundImage = "url(photos_croset07/slide"+thisImg+".jpg)";
//			document.getElementById('slider').src = "photos_tropical/slide"+thisImg+".jpg" 
		}
	}
	
/*//Animation 360°
//Luc
var pos = new Array(1, 111, 216, 321, 423, 528, 647 , 778, 920, 1061,
						  1221, 1380, 1548, 1727, 1911, 2105, 2289, 2475, 2656,
						  2834, 3012, 3179, 3329, 3460, 3566, 3696, 3826, 3974, 
						  4147, 4331, 4520, 4709, 4885, 5054, 5216, 5374); // dernière valeur = largeur de l'image
var tete = new Array(67, 172, 275, 378, 489, 612, 739 , 884, 1028, 1177,
						  1336, 1498, 1662, 1844, 2027, 2196, 2377, 2559, 2728,
						  2907, 3073, 3228, 3379, 3517, 3627, 3748, 3883, 4045, 
						  4225, 4420, 4611, 4796, 4976, 5142, 5305, 5452); // dernière valeur = largeur de l'image
var cpt = 1;
var timer;
function anim() {
	var e = document.getElementById('fond');
	var x = pos[cpt];
	var ptx = tete[cpt] - x;
	var left = 150 - ptx;
	var w = pos[cpt+1] - x;
	e.style.width = w + "px";
	e.style.left = left + "px";
	e.style.backgroundPosition = "-" + x + "px 0";
	//document.getElementById('debug').innerHTML = cpt + " " + x + " " + w;
	cpt = cpt + 1;
	if(cpt==pos.length-1) clearInterval(timer);
	//cpt %= (pos.length-1);
}
function start() {
	timer = setInterval(anim, 100);
}//John
var posjon = new Array(0, 188, 368, 538, 693, 841, 980 , 1106, 1216, 1329,
						  1449, 1578, 1715, 1878, 2044, 2235, 2430, 2628, 2825,
						  3018, 3203, 3379, 3514, 3619, 3749, 3895, 4060, 4261, 
						  4483, 4710, 4935, 5150); // dernière valeur = largeur de l'image
var tetejon = new Array(96, 284, 463, 631, 778, 918, 1045 , 1162, 1274, 1406,
						  1536, 1675, 1826, 1994, 2158, 2333, 2516, 2698, 2892,
						  3075, 3253, 3420, 3555, 3673, 3803, 3961, 4153, 4369, 
						  4600, 4823, 5048); // dernière valeur = largeur de l'image
var cpt = 1;
var timer;
function anim() {
	var e = document.getElementById('fondjon');
	var x = posjon[cpt];
	var ptx = tetejon[cpt] - x;
	var left = 150 - ptx;
	var w = posjon[cpt+1] - x;
	e.style.width = w + "px";
	e.style.left = left + "px";
	e.style.backgroundPosition = "-" + x + "px 0";
	//document.getElementById('debug').innerHTML = cpt + " " + x + " " + w;
	cpt = cpt + 1;
	if(cpt==posjon.length-1) clearInterval(timer);
	//cpt %= (pos.length-1);
}
function start() {
	timer = setInterval(anim, 100);
}*/
//Fonction pour l'agenda
function show(nom,info) {
    document.getElementById(nom + '_d').style.display = 'none';
    document.getElementById(nom + '_s').style.display = 'block';
	document.getElementById(info).style.display = 'block';
  }
  function hidden(nom,info) {
  	document.getElementById(nom + '_d').style.display = 'block';
   	document.getElementById(nom + '_s').style.display = 'none';
	document.getElementById(info).style.display = 'none';
	}
	function hiddenAll(nom) {
		var ids = nom.split(',');
		for(var i=0;i<ids.length;i++) {
			hidden(ids[i]);
		}
//  	document.getElementById(nom +'_d').style.display = 'block';
 //  document.getElementById(nom +'_s').style.display = 'none';
	}
// Permutation	
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}