/**
 *	returns the path, in a relative path, to access the images
 */
function getImgdir()
{
	return '../images/';
}

/**
 *	displays the page menu according to the language passed as parameter.
 *	@param lang		the language, valid values are 'en', 'fr'; default is 'fr'
 */
function displayMenu(lang)
{
	var home = 'accueil';
	var contact = 'contact';
	var language = 'english';
	var mission = 'Mission';
	var stages = 'Stages';
	var enBref = 'En bref...';
	var stageInitiation = 'Initiation';
	var stageElementaire = '&Eacute;lementaire';
	var stageIntermediaire = 'Interm&eacute;diaire';
	var stageAvance = 'Avanc&eacute;';
	var stageAntilles = 'Antilles';
	var convoyage = 'Convoyage';
	var accreditation = 'Accr&eacute;ditation';
	var competence = 'Carte de comp&eacute;tence';
	var brevets = 'Brevets';
	var moniteur = 'Moniteur';
	var moniteurTheorie = 'Th&eacute;orie';
	var moniteurPratique = 'Pratique';
	var partenaires = 'Partenaires';
	var test = 'Instructeurs';

	if (lang == 'en')
	{
		home = 'home';
		contact = 'contact';
		language = 'fran&ccedil;ais';
	}

	var output =
			'<div id="menu">'+
				'<div class="item">'+
					'<a href="home.html">'+ home +'</a> &nbsp;|&nbsp;'+
					'<a href="contact.html">'+ contact +'</a>'+
				'</div>'+
				'<br />'+
				'<div class="menu_item"><a href="instructeurs.html">'+ test +'</a></div>'+
				'<div class="menu_item"><a href="mission.html">'+ mission +'</a></div>'+
				'<div class="menu_item"><a href="stages.html">'+ stages +'</a></div>'+
				
				/*	'<div class="menu_subitem"><a href="stages.html">'+ enBref +'</a></div>'+	*/			
					'<div class="menu_subitem"><a href="stages_initiation.html">'+ stageInitiation +'</a></div>'+
					'<div class="menu_subitem"><a href="stages_elementaire.html">'+ stageElementaire +'</a></div>'+
					'<div class="menu_subitem"><a href="stages_intermediaire.html">'+ stageIntermediaire +'</a></div>'+
					'<div class="menu_subitem"><a href="stages_avance.html">'+ stageAvance +'</a></div>'+
					'<div class="menu_subitem"><a href="stages_antilles.html">'+ stageAntilles +'</a></div>'+
					'<div class="menu_subitem"><a href="convoyage.html">'+ convoyage +'</a></div>'+
				'<div class="menu_item"><a href="accreditation.html">'+ accreditation +'</a></div>'+
					'<div class="menu_subitem"><a href="brevets.html">'+ brevets +'</a></div>'+
					'<div class="menu_subitem"><a href="competence.html">'+ competence +'</a></div>'+					
				'<div class="menu_item"><a href="moniteur.html">'+ moniteur +'</a></div>'+
					'<div class="menu_subitem"><a href="moniteur.html">'+ moniteurTheorie +'</a></div>'+
					'<div class="menu_subitem"><a href="moniteur.html">'+ moniteurPratique +'</a></div>'+
				'<div class="menu_item"><a href="partenaires.html">'+ partenaires +'</a></div>'+
				'<div id="logged">'+
					'<div class="menu_item">Bonjour !</div>'+
				'</div>'+
				'<div class="menu_item"><br/>'+
					'<a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank"><img src="../images/getacrobat.gif" border="0" alt="Télécharger Acrobat Reader"></a>'+
				'</div>'+
				'<div id="sponsor-link-image">'+
				'<b></b><br />'+
				'<a ></a>'+
				'</div>'+
			'</div>';

	document.write(output);
}

/**
 *	displays the current day date
 */
function displayDate()
{
	var _date = new Date();
	var _day = _date.getDate();
	var _month = _date.getMonth() + 1;
	var _year = _date.getFullYear();

	if (_day < 10)	{_day = "0" + _day;}
	if (_month < 10)	{_month = "0" + _month;}
	document.write('<div id="date">'+ _day +' / '+ _month +' / '+ _year + '</div><br />');
}

/**
 *	open the window containing the Agile Montreal forum
 */
function openForumWindow()
{
	var w = window.open("../yabb/YaBB.cgi", "yabb", "toolbar=no,location=no,directories=no,width=750,height=600,resizable=yes,status=no,menubar=no,scrollbars=yes", true);
	w.focus();
}