var strMenuhtml = "";											// This is the string where we are storing the sub-menu HTML
var strPageName = document.location.href;						// Get the current pages' URL from the browser.
var intStart = strPageName.lastIndexOf("/") + 1;				// Find the last ending slash in the URL...
var intEnd = strPageName.length;								// Find out how long the URL is...
strPageName = strPageName.slice( intStart, intEnd );			// Extract the page name only from the URL.
strPageName = strPageName.toLowerCase();						// Convert the page name to lower-case so we can compare it to other lower-case page names.


strMenuhtml += '<table width="140" border="0" cellspacing="0" cellpadding="0">';
strMenuhtml += '<tr>';
strMenuhtml += '	<td width="12" valign="top"><img src="images/icon_arrow.gif" alt="" title="" width="4" height="10" /></td>';
strMenuhtml += '	<td colspan="2" valign="top"><a href="remembrancef.shtml">Introduction</a></td>';
strMenuhtml += '</tr>';
strMenuhtml += '<tr>';
strMenuhtml += '	<td valign="top"><img src="images/icon_arrow.gif" alt="" title="" width="4" height="10" /></td>';
strMenuhtml += '	<td colspan="2" valign="top"><a href="kitcollections_f.shtml">Provenant des collections du Mus&eacute;e canadien de la guerre</a></td>';
strMenuhtml += '</tr>';

// Only show the following sub-menu HTML if the page name is template_e.html OR index_e.html
 if (( strPageName == "remembrance_f.html" ) || ( strPageName == "kitcollections_f.shtml" ) || ( strPageName == "kitpoppy_f.shtml" ) || ( strPageName == "kitbattleground_f.shtml" ) || ( strPageName == "kitcrown_f.shtml" ) || ( strPageName == "kitforged_f.shtml" ) || ( strPageName == "kitviolent_f.shtml" ))
 {
	 strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td width="12" valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitpoppy_f.shtml">Le coquelicot</a></td>';
	strMenuhtml += '</tr>';

	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitbattleground_f.shtml">Champs de bataille</a></td>';
	strMenuhtml += '</tr>';
	
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitcrown_f.shtml">Pour la Couronne et la patrie</a></td>';
	strMenuhtml += '</tr>';
	
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitforged_f.shtml">Trempé dans la guerre</a></td>';
	strMenuhtml += '</tr>';
	
	strMenuhtml += '<tr>';
	 strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitviolent_f.shtml">Une paix violente</a></td>';
	strMenuhtml += '</tr>';

 }

//Suggested Activities
strMenuhtml += '<tr>';
strMenuhtml += '	<td valign="top"><img src="images/icon_arrow.gif" alt="" title="" width="4" height="10" /></td>';
strMenuhtml += '	<td colspan="2" valign="top"><a href="kitactivities_f.shtml">Suggestions d\'activit&eacute;s</a></td>';
strMenuhtml += '</tr>';

if (( strPageName == "remembrance_f.shtml" ) || ( strPageName == "kitactivities_f.shtml" ) || ( strPageName == "kitremembrance-activity_f.shtml" ) || ( strPageName == "kitwartime-diaries_f.shtml" ) || ( strPageName == "kitmedia-literacy_f.shtml" ) || ( strPageName == "kitart-interpretation_f.shtml" ) || ( strPageName == "kitresearching-war-artists_f.shtml" ))
{
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td width="12" valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitremembrance-activity_f.shtml">Musée du Souvenir</a></td>';
	strMenuhtml += '</tr>';

	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitwartime-diaries_f.shtml">Journaux (mémoires) de guerre</a></td>';
	strMenuhtml += '</tr>';
	
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitmedia-literacy_f.shtml">L\'apprentissage du langage des médias</a></td>';
	strMenuhtml += '</tr>';
	
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitart-interpretation_f.shtml">Interprétation de l\'arts	</a></td>';
	strMenuhtml += '</tr>';
		
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitresearching-war-artists_f.shtml">Recherche sur des artistes de guerre</a></td>';
	strMenuhtml += '</tr>';
}
//Organizing a Remembrance Day ceremony
strMenuhtml += '<tr>';
strMenuhtml += '	<td valign="top"><img src="images/icon_arrow.gif" alt="" title="" width="4" height="10" /></td>';
strMenuhtml += '	<td colspan="2" valign="top"><a href="kitceremony_f.shtml">Organisation d\'une c&eacute;r&eacute;monie pour le jour du Souvenir</a></td>';
strMenuhtml += '</tr>';

if (( strPageName == "remembrance_f.shtml" ) || ( strPageName == "kitceremony_f.shtml" ) || ( strPageName == "kitscenario1_f.shtml" ) || ( strPageName == "kitscenario2_f.shtml" ) || ( strPageName == "kitscenario3_f.shtml" ) || ( strPageName == "kitscenario4_f.shtml" ))
{
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td width="12" valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitscenario1_f.shtml">Présentation en classe</a></td>';
	strMenuhtml += '</tr>';

	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitscenario2_f.shtml">Cérémonie à l\'école (courte)</a></td>';
	strMenuhtml += '</tr>';
	
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitscenario3_f.shtml">Cérémonie à l\'école (élaborée)</a></td>';
	strMenuhtml += '</tr>';
	
	strMenuhtml += '<tr>';
	strMenuhtml += '	<td valign="top">&nbsp;</td>';
	strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	strMenuhtml += '	<td valign="top"><a href="kitscenario4_f.shtml">Cérémonie traditionnelle (courte)</a></td>';
	strMenuhtml += '</tr>';
}
//Reference Sources
strMenuhtml += '<tr>';
strMenuhtml += '	<td valign="top"><img src="images/icon_arrow.gif" alt="" title="" width="4" height="10" /></td>';
strMenuhtml += '	<td colspan="2" valign="top"><a href="kitreference_f.shtml">Sources documentaires</a></td>';
strMenuhtml += '</tr>';

//if (( strPageName == "remembrance_f.html" ) || ( strPageName == "kitreference_f.html" ))
//{

	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Le jour du Souvenir</td>';
	//strMenuhtml += '</tr>';
	
	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Littérature</td>';
	//strMenuhtml += '</tr>';
	
	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Histoire</td>';
	//strMenuhtml += '</tr>';
	
	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Oeuvres d\'art et affiches</td>';
	//strMenuhtml += '</tr>';
	
	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Poètes et écrivains</td>';
	//strMenuhtml += '</tr>';
	
	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Chansons et textes dramatiques</td>';
	//strMenuhtml += '</tr>';
	
	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Films</td>';
	//strMenuhtml += '</tr>';
	
	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Trousses documentaires</td>';
	//strMenuhtml += '</tr>';
	
	//strMenuhtml += '<tr>';
	//strMenuhtml += '	<td valign="top">&nbsp;</td>';
	//strMenuhtml += '	<td valign="top"><img src="images/icon_arrow2.gif" alt="" title="" width="8" height="10" /></td>';
	//strMenuhtml += '	<td valign="top">Sites Web</td>';
	//strMenuhtml += '</tr>';
//}
//Send Us Your Photos
strMenuhtml += '<tr>';
strMenuhtml += '	<td valign="top"><img src="images/icon_arrow.gif" alt="" title="" width="4" height="10" /></td>';
strMenuhtml += '	<td colspan="2" valign="top"><a href="kitphotosubmit_f.shtml">Faites-nous parvenir vos photos</a></td>';
strMenuhtml += '</tr>';
	
strMenuhtml += '</table>';

document.write (strMenuhtml);									// Write the menu's HTML to the browser.



