/*
BxNapkiN 2004
bxnapkin at yahoo dot ca
best viewed with Mozilla Firefox 1152x864 px
*/

// window.alert("Hello World")

function afficheChoix()
{
	// cette fonction affiche le jumpmenu dans la page
	window.document.write("<select name='navigation' id='navigation' onchange='menuchoix()'><option value='a' selected='selected'>--- Choisissez une page ---</option><option value='b'>Accueil</option><option value='c'>Historique</option><option value='d'>&Eacute;quipement</option><option value='e'>D&eacute;partements</option><option value='f'>Contact</option><option>---</option><option value='g'>English</option></select>")
}

function menuchoix()
{
	// cette fonction active les choix du jumpmenu
	choixSelect = window.document.getElementById("navigation").selectedIndex
	choixOption = window.document.getElementById("navigation").options[choixSelect].value
	switch(choixOption)
	{
		case "b":
			window.location.href="index.htm"
			break;
		case "c":
			window.location.href="historique.htm"
			break;
		case "d":
			window.location.href="equipement.htm"
			break;
		case "e":
			window.location.href="dept.htm"
			break;
		case "f":
			window.location.href="contact.htm"
			break;
		case "g":
			window.location.href="english/index.htm"
			break;
	}
}

function showPop(nomFichier,wpop,hpop)
{
	// cette fonction crée les Popups
	var largeurEcran
	var hauteurEcran
	largeurEcran = screen.width
	hauteurEcran = screen.height
	position1 = (largeurEcran / 2) - ((wpop+20)/2)
	position2 = (hauteurEcran / 2) - ((hpop+20)/2)
	toutesLesPositions = "left=" + position1 + ",top=" + position2
	window.open(nomFichier,"popwindow","width=" + (wpop+20) + ",height=" + (hpop+20) + ",status," + toutesLesPositions)
}