function TopBanner() {
 pre = "../"    
  if (!Permis()) {
     window.location = Page0()+".php"      
  }
  W = 620;
  if (Section() == "P") {
	W = 780;
  }
  
  document.write('<table border="0" cellspacing="0"  style="WIDTH: ' + W + 'px; HEIGHT: 100px" align="Center">')
  document.write('<TBODY>')
  document.write('<tr>')
  document.write('<td bgcolor="bisque" align="middle">') 
  document.write('<a href="'+pre+'default.htm"><img SRC="'+pre+'images/logo2.jpg" BORDER=0 height=100 width=620></a>')
  document.write('</td>')
  document.write('</tr>')
  document.write('</TBODY>')
  document.write('</table>') 
}

function Permis() {
  if (Page() =="00") return true;
  if (document.location.search.substring(1) == "SHCL") return true;
  return false;
}
function wrbottom(b_size) {  
pre = "../"
	document.write('<center>')
	document.write('<table BORDER=' + b_size + ' WIDTH="600" cols="3">')
	document.write('<tr ALIGN=CENTER>')
	document.write('<td WIDTH="100" BGCOLOR="#FFFFFF">')
	document.write('<a href="http://www.csmb.qc.ca/" target="_blank"><img SRC="'+pre+'images/Commission.gif" BORDER=0 height=60 width=95></a>')
	document.write('</td>')
	document.write('<td>')
	document.write('<center><address><b>')
	document.write('Webmestre : <a href="mailto:webmestre@jaji.ca">Andr&eacute; Joubert</a>')
	document.write('<br>')
	document.write('<font size=-1>')
	document.write('<a href="mailto:shcl@jaji.ca">La Soci&eacute;t&eacute; historique Cavelier-de-LaSalle</a>')
	document.write('<br>')
	document.write('13A rue Strathyre, LaSalle (Qu&eacute;bec), H8R 3P5')
	document.write('<br>')
	document.write('T&eacute;l: (514) 364-9955 .......FAX: (514) 364-9955')
	document.write('</font>')
	document.write('</b></address></center>')
	document.write('</td>')
	document.write('<td WIDTH="100" BGCOLOR="#800080">')
	document.write('<a href="http://ville.montreal.qc.ca/portal/page?_pageid=2117,2642210&_dad=portal&_schema=PORTAL" target="_blank"><img SRC="'+pre+'images/Ville.gif" BORDER=0 height=64 width=95></a>')
	document.write('</td>')
	document.write('</tr>')
	document.write('</table>') 
    document.write('Last modified: ' + document.lastModified )
	document.write('</center>')
}

function surfto(form) {
	var myindex=form.select1.selectedIndex
	if (form.select1.options[myindex].value != "0") {
	window.location = (form.select1.options[myindex].value);}
}

function Page_Id() {
	texte =  document.title;
	p = /.\w*./gi;
	resultat = texte.match(p);	  
	return resultat[0].slice(4,8);  	
}
function Langue() {
	texte =  document.title;
	p = /.\w*./gi;
	resultat = texte.match(p);	  
	return resultat[0].slice(7,8);  	
}
function Page() {
	texte =  document.title;
	p = /.\w*./gi;
	resultat = texte.match(p);	  
	return resultat[0].slice(5,7);  	
}
function Section() {
	texte =  document.title;
	p = /.\w*./gi;
	resultat = texte.match(p);	  
	return resultat[0].slice(4,5);  	
}
function Page0() {
   return "SHCL"+Section()+"00"+Langue();
}
function wrtop() {
    pre = "../"
	document.write('<center>')
	document.write('<table BORDER=8 WIDTH="624">')
	document.write('<tr ALIGN=CENTER>')
	document.write('<td>')
	document.write('<a href="'+pre+'default.htm"><img SRC="'+pre+'images/logo2.jpg" BORDER=0 height=100 width=600></a>')

	document.write('<FORM NAME="form1">')
	document.write('<SELECT NAME="select1" onChange="surfto(this.form)" SIZE=1>')
	document.write('<OPTION SELECTED VALUE="0">  --- Naviguez dans ce site. Cliquez ici-->')

	document.write('<OPTION VALUE="'+pre+'Accueil/SHCLA00F.php" >Page d\'accueil')

	if (document.title.search(/^SHCLA01F/)) {
	   document.write('<OPTION VALUE="'+pre+'Accueil/SHCLA01F.htm" >La Soci&eacute;t&eacute; historique ')
	}
	if (document.title.search(/^SHCLA02F/)) {
	   document.write('<OPTION VALUE="'+pre+'Accueil/SHCLA02F.htm" >Conseil d\'administration')
	}
	if (document.title.search(/^SHCLA03F/)) {
	   document.write('<OPTION VALUE="'+pre+'Accueil/SHCLA03F.htm" >Activit&eacute;s')
	}
	if (document.title.search(/^SHCLA04F/)) {
	   document.write('<OPTION VALUE="'+pre+'Accueil/SHCLA04F.htm" >Histoire de LaSalle')
	}
	if (document.title.search(/^SHCLA05F/)) {
	   document.write('<OPTION VALUE="'+pre+'Accueil/SHCLA05F.htm" >Ren&eacute;-Robert Cavelier de La Salle ')
	}
	if (document.title.search(/^SHCLA06F/)) {
	   document.write('<OPTION VALUE="'+pre+'Accueil/SHCLA06F.htm" >Le patrimoine LaSallois')
	}	
	if (document.title.search(/^SHCLP00F/)) {
	   document.write('<OPTION VALUE="'+pre+'publi/SHCLP00F.php"     >Publications')
	}
	
	document.write('<OPTION VALUE="'+pre+'Genealogie/SHCLG00F.php">G&eacute;n&eacute;alogie')
	document.write('<OPTION VALUE="'+pre+'Toponym/SHCLT00F.php" >Toponymie')
	document.write('<OPTION VALUE="'+pre+'cavelier2/SHCLI00F.php">Les industries &agrave; LaSalle')
	if (document.title.search(/^SHCLL00F/)) {
	   document.write('<OPTION VALUE="'+pre+'Liens/SHCLL00F.php"           >Liens')
	}
	document.write('</SELECT>')
	document.write('</FORM>')

	document.write('</td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</center>')
}

function LeftMenu() {     
  document.write('<A href="SHCLA01F.htm" >La Société historique</A><br><br>')
  document.write('<A href="SHCLA02F.htm" >Conseil d\'administration</A><br><br>')
  document.write('<A href="SHCLA03F.htm" >Activités</A>')
  document.write('<hr>')
  document.write('<A href="SHCLA04F.htm" >Histoire de LaSalle</A><br><br>')
  document.write('<A href="SHCLA05F.htm" >René-Robert Cavelier de La Salle</A><br><br>')
  document.write('<A href="SHCLA06F.htm" >Le patrimoine laSallois</A>')   
       
}
function TopMenu() {
	pre = "../"
//	if (Section() == "A" ) {	
//	  pre = " "
//	}
	W = 620;
	if (Section() == "P") {
		 W = 780;
	}
	document.write('<table border="0" cellspacing="0"  style="WIDTH: ' + W + 'px; HEIGHT: 60px" align="Center">')
	document.write('  <TBODY>')
	document.write('  <tr>')
	document.write('    <td bgcolor="bisque" align="middle">')
	
	if (Langue() == "F" ) {	 
	    document.write('       <A href="'+pre+'Accueil/SHCLA00E.php" ><IMG height=40 src="'+pre+'IMAGES/Anglais.gif" width=95 align=center border=0></A>')
	} else {	
	    document.write('       <A href="'+pre+'Accueil/SHCLA00F.php" ><IMG height=40 src="'+pre+'IMAGES/French.gif" width=95 align=center border=0></A>')  
	}	
	document.write('    </td>')
	
	if (Section() != "A" ) {	
		document.write('    <td bgcolor="bisque" align="middle">')      
		document.write('      <A href="'+pre+'Accueil/SHCLA00F.php" >Accueil</A>')
		document.write('    </td>')
	}
	if (Section() != "G" ) {	
		document.write('    <td bgcolor="bisque" align="middle">')      
		document.write('      <A href="'+pre+'Genealogie/SHCLG00F.php" >Généalogie</A>')
		document.write('    </td>')
	}
	if (Section() != "I" ) {
		document.write('    <td bgcolor="bisque" align="middle">')      
		document.write('      <A href="'+pre+'cavelier2/SHCLI00F.PHP" >Les industries &agrave; LaSalle</A>')
		document.write('    </td>')
	}
	if (Section() != "P" ) {
		document.write('    <td bgcolor="bisque" align="middle">')      
		document.write('      <A href="'+pre+'PUBLI/SHCLP00F.php" >Publications</A>')
		document.write('    </td>')
	}
	if (Section() != "T" ) {
		document.write('    <td bgcolor="bisque" align="middle">')      
		document.write('      <A href="'+pre+'Toponym/SHCLT00F.php" >Toponymie</A>')
		document.write('    </td>')
	}
	if (Section() != "L" ) {
		document.write('    <td bgcolor="bisque" align="middle">')      
		document.write('       <A href="'+pre+'Liens/SHCLL00F.php" >Liens</A>') 
		document.write('    </td>')
	}
	document.write('    </tr>')
	document.write('  </TBODY>')
	document.write('</table>')
}


function proprietes() { 
  document.write('<hr>Propiétés :<br>document.domain = '+document.domain);
  document.write('<br>document.formname = '+document.formname);
  document.write('<br>document.height = '+document.height);
  document.write('<br>document.lastmodified = '+document.lastmodified);
  document.write('<br>document.location = '+document.location);
  document.write('<br>document.referrer = '+document.referrer);	
  document.write('<br>document.title = '+document.title);	
  document.write('<br>document.url = '+document.url);
  document.write('<hr>')	
}
	
