//################################################################################	
//
//S T A R T   M E N U
//
//This is the code that makes up the Left Menu structure. 
//The entire menu is contaned in one table cell.  This cell
//contains a new table with 2 columns.
//col 1.) An area on the left to place the arrow head that shows the current
//	    possition in the menu.
//col 2.) The actual menu items.
//---------------------------
//The colors, and text properties are defined in the stylesheet "body.css"
//We link to this code at the top of this page, in the line:
//"<link rel="STYLESHEET" type="text/css" href="body.css">"
//--------------------------	
//-	When a menu item is not the current position in the menu the class="menu"
//	defines the look of the text as outlined by the a.menu style within body.css
//	
//-	When a user places the mouse over the menu item the stylesheet has a built-in
//	style called hover, in this case a.menu:hover within body.css.  This is what 
//	cause the change in color, underline, etc when the mouseover takes place.
//	
//-	When a menu item in the active or current position in the menu, the style a.on
//	within body.css defines the look of this text (highlighted color).  we indicate 
//	this with class="on" 
//	
//	The menu ends with the Comment "E N D   M E N U"


//################################################################################		

				var frenchmsg
				frenchmsg = "French Portion will be implemented after aproval on the English design"
				var strLocation = document.URL ;
				strLocation = strLocation.toUpperCase();
				var mypos ;		
				var mypos2 ;		
				
				//--------------------------------
				//  O P E N   T H E   T A B L E 
				//--------------------------------	
				//document.write("<table BORDER='0' CELLPADDING='0' CELLSPACING='0'><tr><td width='30' background='images/bk_stripe.gif'><img src='images/bk_stripe.gif' alt='' width='30' height='2' border='0'></td><td>");
				
				document.write("<table BORDER='0' CELLPADDING='0' CELLSPACING='0' height='100%' width='140'><tr><td colspan='2'></td></tr><tr><td WIDTH='15' class='menu_bullet'>");
//------------------------------------------------------------------
//  I N D E X                        
//------------------------------------------------------------------
						
						mypos = (document.URL.toUpperCase()).indexOf("INDEX");		
						//checks for the name index.asp in the URL, or the title of the page, if the URL
						//does not show the index.asp - for example the user types in the url, without the 
						//index.asp, which would still process as the default page for the site.						
						if((mypos>=0) || (document.title=="Le Portage - Home")){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write("<img src='../_images/navigation/bullet.gif' width='12' height='11' border='0'> <a href='../index.htm' class='on'>");	
						}else{
						document.write(":: ");	
						document.write("</td><td  style='padding-top:10px;'>");						
						document.write("<a href='index.htm' class='menu'>");	
						}	
															
						document.write("Accueil</a><br></td></tr>");	
						

						
//------------------------------------------------------------------
//   M E S S A G E   F R O M   T H E   E X E C U T I V E
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("WELCOME");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write("<a href='welcome_f.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						document.write("<a href='welcome_f.asp' class='menu'>");	
						}											
						document.write("Message de <br>L'exécutif</a><br></td></tr>");
						
						
//------------------------------------------------------------------
//   N E W S
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("NEWS");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write("<a href='news_f.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						document.write("<a href='news_f.asp' class='menu'>");	
						}											
						document.write("Nouvelles</a><br></td></tr>");
						
//------------------------------------------------------------------
//   ABOUT
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("ABOUT");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write("<a href='about_f.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						document.write("<a href='about_f.asp' class='menu'>");	
						}											
						document.write("Au sujet du parcours</a><br></td></tr>");
						
						

		
//------------------------------------------------------------------
//   TOUR
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("TOUR");
						mypos2 = (document.URL.toUpperCase()).indexOf("TOURNAMENT");										
						if(mypos>=0 && mypos2<0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td style='padding-top:3px;'>");						
							document.write(" <a href='tour1_f.asp' class='on'>");	
						}else{
						document.write("</td><td style='padding-top:3px;'>");						
						document.write("<a href='tour1_f.asp' class='submenu'>");	
						}											
						document.write(": Tour</a><br></td></tr>");		
						
//------------------------------------------------------------------
//   HELIGOLF
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("VIDEO");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td style='padding-top:3px;'>");						
							document.write(" <a href='video_f.asp' class='on' target='_blank'>");	
						}else{
						document.write("</td><td style='padding-top:3px;'>");						
						document.write("<a href='video_f.asp' class='submenu'>");	
						}											
						document.write(": Video</a><br></td></tr>");	


//------------------------------------------------------------------
//   SCORE CARD
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("CARD");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td style='padding-top:3px;'>");						
							document.write(" <a href='card_f.asp' target='_blank' class='on'>");	
						}else{
						document.write("</td><td style='padding-top:3px;'>");						
						document.write("<a href='card_f.asp' class='submenu'>");	
						}											
						document.write(": Carte de pointage</a><br></td></tr>");	
	
	
//------------------------------------------------------------------
//   DRIVING RANGE
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("RANGE");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td style='padding-top:3px;'>");						
							document.write(" <a href='range_f.asp' class='on'>");	
						}else{
						document.write("</td><td style='padding-top:3px;'>");						
						document.write("<a href='range_f.asp' class='submenu'>");	
						}											
						document.write(": Le champ de pratique</a><br></td></tr>");		
	
	
//------------------------------------------------------------------
//   PUTTING GREEN
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("GREEN");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td style='padding-top:3px;'>");						
							document.write("<a href='green_f.asp' class='on'>");	
						}else{
						document.write("</td><td style='padding-top:3px;'>");						
						document.write("<a href='green_f.asp' class='submenu'>");	
						}											
						document.write(": Le vert de pratique</a><br></td></tr>");		
	
//------------------------------------------------------------------
//   PRO SHOP
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("SHOP");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td style='padding-top:3px;'>");						
							document.write(" <a href='shop_f.asp' class='on'>");	
						}else{
						document.write("</td><td style='padding-top:3px;'>");						
						document.write("<a href='shop_f.asp' class='submenu'>");	
						}											
						document.write(": La Boutique</a><br></td></tr>");		
	
	
//------------------------------------------------------------------
//   HISTORY
//------------------------------------------------------------------
					//document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						//mypos = (document.URL.toUpperCase()).indexOf("HISTORY");										
						//if(mypos>=0){ 
							//--document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							//document.write("</td><td style='padding-top:3px;'>");						
							//document.write(" <a href='history_e.asp' class='on'>");	
						//}else{
						//document.write("</td><td style='padding-top:3px;'>");						
						//document.write("<a href='history_e.asp' class='submenu'>");	
						//}											
						//document.write(": Histoire</a><br></td></tr>");		
	
	
//------------------------------------------------------------------
//   FEES
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("FEES");										
						if(mypos>=0){ 
							//document.write("<IMG SRC='images/menu_arrow.gif' WIDTH='10' HEIGHT='13' ALT=''>");
							document.write("</td><td style='padding-top:3px;'>");						
							document.write(" <a href='fees_f.asp' class='on'>");	
						}else{
						document.write("</td><td style='padding-top:3px;'>");						
						document.write("<a href='fees_f.asp' class='submenu'>");	
						}											
						document.write(": Droits d'entrée</a><br></td></tr>");	
							
	
//------------------------------------------------------------------
// Online Tee time
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("RESERVATION");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write("<a href='reservation_f.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						//document.write("<a href='reservation_f.asp' class='menu'>");						
						var jencess_loc="https://www.jencess.com/OnlineSuite/default.aspx?ClubID=16e39f72-dc8b-4967-b1e4-c36a42daf309"
						var jencess_title="ClubAssistant"
						var jencess_window_properties="resizable=1,scrollbars=1,fullscreen=0,location=0,menubar=0,status=1,titlebar=1,toolbar=0"
						document.write("<a href='#' onclick='javascript:window.open(jencess_loc,jencess_title, jencess_window_properties);return false;' class='menu'>");
							
						}											
						document.write("Réservations</a><br></td></tr>");

	
	
//------------------------------------------------------------------
// LOCATION
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("LOCATION");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write("<a href='location_f.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						document.write("<a href='location_f.asp' class='menu'>");	
						}											
						document.write("Site</a><br></td></tr>");

//------------------------------------------------------------------
// ACCOMODATION PACKAGES
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("ACCOMODATION");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write("<a href='accomodations_f.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						document.write("<a href='accomodations_f.asp' class='menu'>");	
						}											
						document.write("Forfaits</a><br></td></tr>");


	
		
//------------------------------------------------------------------
// C O N T A C T
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("CONTACT");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write(" <a href='contact_f.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						document.write("<a href='contact_f.asp' class='menu'>");	
						}											
						document.write("Information</a><br></td></tr><tr><td colspan='2'></td></tr>");
						
//------------------------------------------------------------------
// T O U R N A M E N T S
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("TOURNAMENT");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write(" <a href='tournaments_f.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						document.write("<a href='tournaments_f.asp' class='menu'>");	
						}											
						document.write("Tournois</a><br></td></tr><tr><td colspan='2'></td></tr>");
						
	
//------------------------------------------------------------------
// F R E N C H 
//------------------------------------------------------------------
					document.write("<tr><td WIDTH='15' class='menu_bullet'>");
						mypos = (document.URL.toUpperCase()).indexOf("FRENCH");										
						if(mypos>=0){ 
							document.write(":: ");
							document.write("</td><td style='padding-top:10px;'>");						
							document.write(" <a href='welcome_e.asp' class='on'>");	
						}else{
						document.write(":: ");
						document.write("</td><td style='padding-top:10px;'>");						
						document.write("<a href='welcome_e.asp' class='menu'>");	
						}											
						document.write("English</a><br><br></td></tr><tr><td colspan='2'></td></tr>");
						
						
		
					
				//--------------------------------
				//  C L O S E   T H E   T A B L E 
				document.write("</table>");		
				//--------------------------------</td></tr></table>
				
//<!--- 	
//E N D   M E N U
//--->

