// NAVIGATION CONNEXIONS

/* Bouton Cacher/Voir les titres */
function BtnTitres() {
 if (document.formnav.visibletitre.value == '1')
   {
	document.formnav.visibletitre.value = '0';
    document.titres.src = voirtitres_off.src;
    Page = document.formnav.page.value;
    fbas = parent.bas.document.open("text/html");
	fbas.writeln('<html>');
	fbas.writeln('<frameset  cols="5,*"  frameborder="0" framespacing="no" border="0">');
	fbas.writeln('    <frame name="menu" src="blank.html" marginwidth="10" marginheight="10" scrolling="no">');
	fbas.writeln('    <frame name="droite" src="' + Page + '" marginwidth="10" marginheight="10" scrolling="auto">');
	fbas.writeln('</frameset>');
	fbas.writeln('</html>');
    fbas.close();
   }
 else
   {
    document.formnav.visibletitre.value = '1';
    document.titres.src = cachertitres_off.src;
    Page = document.formnav.page.value;
    fbas = parent.bas.document.open("text/html", "replace");
	fbas.writeln('<html>');
	fbas.writeln('<frameset  cols="25%,*"  frameborder="5" framespacing="yes" border="5">');
	fbas.writeln('    <frame name="menu" src="menu.htm" marginwidth="10" marginheight="10" scrolling="auto">');
	fbas.writeln('    <frame name="droite" src="' + Page + '" marginwidth="10" marginheight="10" scrolling="auto">');
	fbas.writeln('</frameset>');
	fbas.writeln('</html>');
    fbas.close();
   } 
}


// Fonction de test de navigateur
var version = 'NO';
function SetVersion() {
  if (navigator.appVersion.substring(0,3) >= 3.0 && navigator.appName == 'Netscape') 
    {
	 version = 'OK';
	} 
  else 
   {
    if (navigator.appVersion.substring(0,3) > 3)
      {
	   version = 'OK';
	  }
   }
}


// OnMouseOver
function over(image) {
 if (version == 'OK')
   {
    if (image != 'titres')
	  {
       image_on = eval(image + "_on.src");
       document [image].src = image_on;
	  }
	else
	 {
	  if (document.formnav.visibletitre.value == '0')
	    {
		 document.titres.src = voirtitres_on.src;
		}
	  else
	    {
		 document.titres.src = cachertitres_on.src;
	    }	
	 }   
   }
}


// OnMouseOut
function out(image) {
 if (version == 'OK')
   {
    if (image != 'titres')
	  {
       image_off = eval(image + "_off.src");
       document [image].src = image_off;
	  }
	else
	 {
	  if (document.formnav.visibletitre.value == '0')
	    {
		 document.titres.src = voirtitres_off.src;
		}
	  else
	    {
		 document.titres.src = cachertitres_off.src;
	    }	
	 }   
   }
}


//*** MAIN ***//

SetVersion();
if (version == 'OK')
  {
   // Chargement des boutons dynamiques
   var aide_on = new Image(0,0);
   var aide_off = new Image(0,0);
   aide_on.src = 'images/aide_on.gif';
   aide_off.src = 'images/aide.gif';

   var home_on = new Image(0,0);
   var home_off = new Image(0,0);
   home_on.src = 'images/home_on.gif';
   home_off.src = 'images/home.gif';
   
   var credits_on = new Image(0,0);
   var credits_off = new Image(0,0);
   credits_on.src = 'images/credits_on.gif';
   credits_off.src = 'images/credits.gif';
   
   var voirtitres_on = new Image(0,0);
   var voirtitres_off = new Image(0,0);
   voirtitres_on.src = 'images/voirtitres_on.gif';
   voirtitres_off.src = 'images/voirtitres.gif';
   
   var cachertitres_on = new Image(0,0);
   var cachertitres_off = new Image(0,0);
   cachertitres_on.src = 'images/cachertitres_on.gif';
   cachertitres_off.src = 'images/cachertitres.gif';
   
  }  




