var vTheme = 0;var Pix = new Array();var howMany = Pix.length;var timeDelay= 6;// delai en secondetimeDelay*= 1000;// conversion en msvar PicCurrentNum= 0;var PicCurrent = new Image();var Slide_Folder="images/slide/";var Slide_Ext=".jpg";var Mire = new Array();var howManyMire = Mire.length;var Mire_Folder = "images/mire_sp/";var Mire_Ext=".jpg";function masquepage() {if (document.getElementById) {  // DOM3 = IE5, NS6document.getElementById('hidepage').style.visibility = 'hidden';}else {if (document.layers) {  // Netscape 4document.hidepage.visibility = 'hidden';}else {  // IE 4document.all.hidepage.style.visibility = 'hidden';      }   }}function initPix(vTheme,index) {	switch (vTheme) {	case 0 : 		Pix = new Array		("boussole"		,"atlantique"		,"bateau"		,"equipage"		,"bateau3"		,"construction"		,"construction2"		,"micromegas2"		,"bateau4"		,"bateau2"		,"mutins"		,"bateau5"		,"mm2"		,"surf1"		,"surf2"		,"mm3"		);		break;	case 1 : 		Pix = new Array		("equipage"		,"surf1"		,"surf2"		,'mm1'		,"micromegas2"		,"mm2"		,"construction"		,"construction2"		,"bateau3"		,"bateau5"		,"mm3"		);		break;	case 2 : 		Pix = new Array		("atlantique"		,"sansboussole"		,"bateau3"		,"bateau5"		,"equipage"		,"mm3"		);		break;	case 3 : 		Pix = new Array		("bateau"		,"construction"		,"construction2"		,"bateau2"		,"bateau3"		,"bateau4"		,"bateau5"		,"mm3"		);		break;	default :		Pix = new Array		("boussole"		,"atlantique"		,"bateau"		,"equipage"		,"bateau3"		,"construction"		,"construction2"		,"micromegas2"		,"bateau4"		,"bateau2"		,"mutins"		,"bateau5"		,"mm3"		);		break;	}	howMany = Pix.length;	ShowPix(index);		//intervalles d'affichage	setInterval("slideshow()", timeDelay);} //initPixfunction initMire() {		Mire = new Array		("expedition"		,"equipage"		,"bateau"		,"traversee"		);	howManyMire = Mire.length;	ShowMire(0);} //initMirefunction ShowPix(index) {	if ((index < 0) || (index >= howMany)) {		PicCurrentNum = Math.round((howMany - 1) * Math.random());	} else {		PicCurrentNum = index;	}	PicCurrent.src = Slide_Folder + Pix[PicCurrentNum] + Slide_Ext;	document["slide"].src = PicCurrent.src;} //ShowPixfunction ShowMire(index) {	if ((index < 0) || (index >= howManyMire)) {		index = 0;	} 				//alert(Mire_Folder + Mire[index] + "/mire_01" + Mire_Ext);		PicCurrent.src = Mire_Folder + Mire[index] + "/mire_01" + Mire_Ext;	document["mire_01"].src = PicCurrent.src;	PicCurrent.src = Mire_Folder + Mire[index] + "/mire_02" + Mire_Ext;	document["mire_02"].src = PicCurrent.src;	PicCurrent.src = Mire_Folder + Mire[index] + "/mire_04" + Mire_Ext;	document["mire_04"].src = PicCurrent.src;	PicCurrent.src = Mire_Folder + Mire[index] + "/mire_05" + Mire_Ext;	document["mire_05"].src = PicCurrent.src;} //ShowMirefunction startPix(vTheme,index) {initPix(vTheme,index);ShowPix(index);//intervalles d'affichagesetInterval("slideshow()", timeDelay);} //startPixfunction slideshow() {PicCurrentNum++;if (PicCurrentNum == howMany) {PicCurrentNum = 0;}ShowPix(PicCurrentNum);} //slideshowfunction OpenWindow(page,width,height){var options = "menubar=no,scrollbars=no,statusbar=no"var top=(screen.height-height)/2;var left=(screen.width-width)/2;window.open(page,"","top="+top+",left="+left+",width="+width+",height="+height+","+options);}
