// JavaScript Document
		
		function translate() {
		var results;
		myString = location.href;
 		location=myString.replace('_fr.', '_en.');
		}
		
	//obtaining the file name
	var myUrl = location.href; 
	var mySub1 = "/"; 
	var mySub2 = ".html"; 
	//returns everything right of the last instance of the subString to the end of the fullString 
	function rightFromSubStringToEndOfFullString(fullString, subString) { 
	if (fullString.lastIndexOf(subString) == -1) { 
	return ""; 
	} else { 
	return fullString.substring(fullString.lastIndexOf(subString)+1, fullString.length); 
	} 
	} 

	//returns everything left of the last instance of the subString to the start of the fullString 
	function leftFromSubStringToBeginningOfFullString(fullString, subString) { 
	if (fullString.lastIndexOf(subString) == -1) { 
	return ""; 
	} else { 
	return fullString.substring(0, fullString.lastIndexOf(subString)); 
	} 
	} 

	//Strip out everything before the last "/" 
	myVar = rightFromSubStringToEndOfFullString(myUrl, mySub1);
	//Strip out the .html 
	myText = leftFromSubStringToBeginningOfFullString(myVar, mySub2); 

		 
     document.write("<li><a href='cours_fr.html'>Le cours</a></li>");	 
	 document.write("<li><a href='horaires_fr.html'>Horaires</a></li>");
	 document.write(" <li><a href='seminars_fr.html'>Séminaires/Ateliers</a></li>");
	 document.write("<li><a href='asanas_fr.html'>Asanas</a></li>");
     document.write("<li><a href='chakras_fr.html'>Chakras</a></li>");
     document.write("<br>");	
	 
		if ((myText=="chakras_fr")||(myText=="sahasrara_fr")||(myText=="agnya_fr")||(myText=="vishudda_fr")||(myText=="anahata_fr")||(myText=="manipura_fr")||(myText=="svadhisthana_fr")||(myText=="muladhara_fr")){
		document.write(" &nbsp;&nbsp;- <a href='sahasrara_fr.html'><em>Sahasrara</em></a><br>");
		document.write(" &nbsp;&nbsp;- <a href='agnya_fr.html'><em>Ajna</em></a><br>");
	    document.write(" &nbsp;&nbsp;- <a href='vishudda_fr.html'><em>Vishudda</em></a><br>");
	    document.write(" &nbsp;&nbsp;- <a href='anahata_fr.html'><em>Anahata</em></a><br>");
	    document.write(" &nbsp;&nbsp;- <a href='manipura_fr.html'><em>Manipura</em></a><br>");
	    document.write(" &nbsp;&nbsp;- <a href='svadhisthana_fr.html'><em>Svadhisthana</em></a><br>");
	    document.write(" &nbsp;&nbsp;- <a href='muladhara_fr.html'><em>Muladhara</em></a><br>");
		document.write("<br>");
		}
     document.write("<li><a href='http://www.ayurvedamontreal.com/'>Ayurveda</a></li>");	 
     document.write("<li><a href='about_fr.html'>A propos</a></li><br>");
     document.write("<li><a href='contact_fr.html'>Contact</a></li>");
     document.write("<li><a href='links_fr.html'>Liens</a></li>");
	 document.write("<br />");
     document.write("<FORM size=10 name=formSear action='search_fr.html' method='GET' onSubmit='return OnSearchSubmit()'>");
     document.write("<INPUT class='form' name=searWords >");
     document.write("&nbsp; <br />");
     document.write("<INPUT name=Send class='btn' type=submit  style='font-family: Verdana; font-size: 8pt' value=Recherche>");
     document.write("</FORM>");
     document.write("<a href='javascript:translate()'><font color='#333333' style='font-family: Verdana; font-size: 8pt'>English</font></a><br>");
  	 document.write("<A HREF='javascript:window.print()'><font color='#333333' style='font-family: Verdana; font-size: 8pt'>Version Imprimable</font></A>");
  	 document.write("<br />");
	 

