/* auteur: Tourigny Jacques */
/* Date de création: 2002-02-07 */

ok = false; pick = 0;
if (navigator.userAgent.indexOf ("Mozilla") != -1) {
   ok = parseInt(navigator.appVersion.substring(0,1)) >= 3; }
   else {};
  
   if (ok == 1) {
	  opta1 = new Image() ; 	  opta2 = new Image();
	  optb1 = new Image() ; 	  optb2 = new Image();
	  optc1 = new Image() ; 	  optc2 = new Image();
	  optd1 = new Image() ; 	  optd2 = new Image();
	  opte1 = new Image() ; 	  opte2 = new Image();
	  optf1 = new Image() ; 	  optf2 = new Image();
	  optg1 = new Image() ; 	  optg2 = new Image();
	  opth1 = new Image() ; 	  opth2 = new Image();
	  opti1 = new Image() ; 	  opti2 = new Image();
	  optj1 = new Image() ; 	  optj2 = new Image();
      opta1.src = "Images/M_Accueil_01.gif"  	;  opta2.src = "Images/M_Accueil_02.gif" ;
	  optb1.src = "Images/M_Equipe_01.gif"     	;  optb2.src = "Images/M_Equipe_02.gif" ;
      optc1.src = "Images/M_Services_01.gif" 	;  optc2.src = "Images/M_Services_02.gif" ;
	  optd1.src = "Images/M_Contact_01.gif"   	;  optd2.src = "Images/M_Contact_02.gif" ;
	  opte1.src = "Images/M_Liens_01.gif"  		;  opte2.src = "Images/M_Liens_02.gif" ;
	  optf1.src = "Images/M_Qui_01.gif"  		;  optf2.src = "Images/M_Qui_02.gif" ;
	  optg1.src = "Images/M_Lang_01.gif"  		;  optg2.src = "Images/M_Lang_02.gif" ;
	  opth1.src = "Images/M_Presse_01.gif"  	;  opth2.src = "Images/M_Presse_02.gif" ;
	  opti1.src = "fr/Images/M_Lang_01.gif" 	;  opti2.src = "fr/Images/M_Lang_02.gif" ;
	  optj1.src = "en/Images/M_Lang_01.gif"  	;  optj2.src = "en/Images/M_Lang_02.gif" ;
	  	  
	  imgs=new CreerArray(
				'../Images/Sinistre_01.gif',
				'../Images/Sinistre_02.gif',
				'../Images/Sinistre_03.gif',		
				'../Images/Sinistre_01.gif',
				'../Images/Sinistre_02.gif',
				'../Images/Sinistre_03.gif');
	  }
	
function CreerArray() {
    this.length = CreerArray.arguments.length;
    for (var i = 0; i < this.length; i++)
      this[i+1] = CreerArray.arguments[i];
}

function AfficherMarge(imgs) {
 	var pub = Math.round( Math.random() * imgs.length ) ;
   	if (pub >= imgs.length)
     	pub = 0;
   	document.pubImg.src = imgs[++pub];
}
	
// Function Onmouseover 	     
   function F1(opt) {
       if (ok == 1) {
          if (opt == "opta") {document.opta.src = opta2.src;}
          if (opt == "optb") {document.optb.src = optb2.src;}
          if (opt == "optc") {document.optc.src = optc2.src;}
          if (opt == "optd") {document.optd.src = optd2.src;}
          if (opt == "opte") {document.opte.src = opte2.src;}
          if (opt == "optf") {document.optf.src = optf2.src;}
          if (opt == "optg") {document.optg.src = optg2.src;}
          if (opt == "opth") {document.opth.src = opth2.src;}
          if (opt == "opti") {document.opti.src = opti2.src;}
          if (opt == "optj") {document.optj.src = optj2.src;}
		  return true;
	   }
	}  	   	  
 
// Function Onmouseout     
   function F2(opt) {
       if (ok == 1) {
          if (opt == "opta") {document.opta.src = opta1.src;}
          if (opt == "optb") {document.optb.src = optb1.src;}
          if (opt == "optc") {document.optc.src = optc1.src;}
          if (opt == "optd") {document.optd.src = optd1.src;}
          if (opt == "opte") {document.opte.src = opte1.src;}
          if (opt == "optf") {document.optf.src = optf1.src;}
          if (opt == "optg") {document.optg.src = optg1.src;}
          if (opt == "opth") {document.opth.src = opth1.src;}
          if (opt == "opti") {document.opti.src = opti1.src;}
          if (opt == "optj") {document.optj.src = optj1.src;}
		  return true;
	   }
	}  	   	  
 

/*-- debut du script */
function PiedPage(lang)	{
var html=''+
'<br><center><hr width="75%" color="#08318C"><font face="Arial" size="1">\n';
document.write(html);

if (lang == 'fr') {
var html=''+
'<A HREF="index.html" TARGET="_top">Accueil</A> &nbsp \n'+
'<A HREF="Qui.html" TARGET="_top">Qui sommes nous</A> &nbsp \n'+
'<A HREF="Equipe.html" TARGET="_top">Notre Equipe</A> &nbsp \n'+
'<A HREF="Services.html" TARGET="_top">Nos services</A> &nbsp \n'+
'<br><A HREF="Contact.html" TARGET="_top">Pour nous rejoindre</A> &nbsp \n'+
'<A HREF="Liens.html" TARGET="_top">Liens d\'intérêt</A> &nbsp \n'+
'<A HREF="Presse.html" TARGET="_top">Revue de presse</A> &nbsp \n'+
'<A HREF="http://www.gdr.ca/cgi-bin/ezdb.cgi?&login%%" TARGET="_top">Base de données</A> &nbsp \n'+
'<A HREF="../en/index.html" TARGET="_top">English</A> &nbsp \n';
document.write(html);
}
if (lang == 'en') {
var html=''+
'<A HREF="index.html" TARGET="_top">Home</A> &nbsp \n'+
'<A HREF="Qui.html" TARGET="_top">About us</A> &nbsp \n'+
'<A HREF="Equipe.html" TARGET="_top">Our Team</A> &nbsp \n'+
'<A HREF="Services.html" TARGET="_top">Services</A> &nbsp \n'+
'<A HREF="Contact.html" TARGET="_top">To contact us</A> &nbsp \n'+
'<br><A HREF="Liens.html" TARGET="_top">Links</A> &nbsp \n'+
'<A HREF="Presse.html" TARGET="_top">Press releases</A> &nbsp \n'+
'<A HREF="../fr/index.html" TARGET="_top">Français</A> &nbsp \n';
document.write(html);
}
var html=''+
'<br><br> ©Copyright <a href="mailto:info@gdr.ca">Gravel David Rouleau & ass. inc.</a> 2002. <br> Tous droits réservés.  All rights reserved.\n'+
'<br>Dernière mise à jour - Last update ' + document.lastModified +'\n'+
'</font></center>\n'+
'';
document.write(html);
} 
/*-- debut du script */
function Menu(lang,page) { 
if (lang == 'fr') { var l = 'en'; } else { var l = 'fr'; }
var html='<br>'+
'<br><A HREF="index.html" onmouseover="F1(\'opta\')" onmouseout="F2(\'opta\')" TARGET="_top"><img src="Images/M_Accueil_01.gif" border="0"  alt="" name="opta"></A>\n'+
'<br><A HREF="Qui.html" onmouseover="F1(\'optf\')" onmouseout="F2(\'optf\')" TARGET="_top"><img src="Images/M_Qui_01.gif" border="0"  alt="" name="optf"></A>\n'+
'<br><A HREF="Equipe.html" onmouseover="F1(\'optb\')" onmouseout="F2(\'optb\')" TARGET="_top"><img src="Images/M_Equipe_01.gif" border="0"  alt="" name="optb"></A>\n'+
'<br><A HREF="Services.html" onmouseover="F1(\'optc\')" onmouseout="F2(\'optc\')" TARGET="_top"><img src="Images/M_Services_01.gif" border="0"  alt="" name="optc"></A>\n'+
'<br><A HREF="Contact.html" onmouseover="F1(\'optd\')" onmouseout="F2(\'optd\')" TARGET="_top"><img src="Images/M_Contact_01.gif" border="0"  alt="" name="optd"></A>\n'+
'<br><A HREF="Liens.html" onmouseover="F1(\'opte\')" onmouseout="F2(\'opte\')" TARGET="_top"><img src="Images/M_Liens_01.gif" border="0"  alt="" name="opte"></A>\n'+
'<br><A HREF="Presse.html" onmouseover="F1(\'opth\')" onmouseout="F2(\'opth\')" TARGET="_top"><img src="Images/M_Presse_01.gif" border="0"  alt="" name="opth"></A>\n'+
'<br><A HREF="../'+l+'/'+page+'" onmouseover="F1(\'optg\')" onmouseout="F2(\'optg\')" TARGET="_top"><img src="Images/M_Lang_01.gif" border="0"  alt="" name="optg"></A>\n';
document.write(html);
}

