<!-- debut du script
// Script Bruno LANGAGUE JavaScript 1.1
//Variables générales du Site
BoolNet= false;
Nav = false;
NumR = 0; 

function CheckNav(){

 if (navigator.appVersion.substring(0,3) < "4.0"){
  msg="Vous devriez passer à la version 4 ou plus de votre navigateur !"
  msg1="Vous manquez certaines choses !!!"
	alert( msg + msg1);
 }	
 
}

// Création des Noms d'images pour Netscape
function Netcreate(){

 if (BoolNet == true ) {
// Rubriques
//home
 m0_on = new Image; m0_on.src="m0_on.gif";
 m0_off = new Image;  m0_off.src="m0_off.gif";
//Passé
 m1_on = new Image;  m1_on.src="m1_on.gif";
 m1_off = new Image;  m1_off.src="m1_off.gif";
//Musique
 m2_on = new Image;  m2_on.src="m2_on.gif";
 m2_off = new Image;  m2_off.src="m2_off.gif";
// Passion
 m3_on = new Image;  m3_on.src="m3_on.gif";
 m3_off = new Image;  m3_off.src="m3_off.gif";
// Map
 m4_on = new Image;  m4_on.src="m4_on.gif";
 m4_off = new Image;  m4_off.src="m4_off.gif";
// e-mail
 m5_on = new Image;  m5_on.src="m5_on.gif";
 m5_off = new Image;  m5_off.src="m5_off.gif";
 }
}

function VersionNavigateur(Netscape, Explorer, init) {
 if (init==0) CheckNav();
 if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft')||
      //intégration de Mozilla 5.0
      (navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Mozilla') )
	{
	BoolNet = true;
	Netcreate()
	NumR= init;
	Nav=true;
   	return true;
	}
 else return false;
}


function open_rub(num)
{
img = 'm'+ NumR;
img_inact(img,num);

if (num=="1") {
      url = "passe.htm";
      NumR = 1;
   } 
if (num=="2") {
      url = "musique.htm"; 
      NumR = 2;
    }
if (num=="3") {
      url ="passions.htm"; 
      NumR = 3;
   } 
if (num=="4") {
      url ="../fmap.html"; 
      NumR = 4;
   } 
if (num=="5") {
      url ="mailto:brunofr@ioda.net"; 
      NumR = 5;
  } 
if (num=="0") {
      url ="home.htm";
      NumR = 0;
 }

self.location=url;
}

function img_act(imgName, rub) {
  imgOn = eval(imgName + "_on.src");
  document [imgName].src = imgOn;
  msg_status(rub);
return true
}

function img_inact(imgName, rub){        
 if ( NumR == rub ) return true;
 imgOff = eval(imgName + "_off.src");
 document [imgName].src = imgOff;
 self.status="";
return true
}

function msg_status(rub){
 if (rub==1) url = "Un petit détour du côté de l\'enfance";
 if (rub==2) url = "Aller à la découverte de Villeray et Blow-up, extrait musicaux ..."; 
 if (rub==3) url ="Un rêve, le monde pour une Jeep"; 
 if (rub==4) url ="Retourner sur la map de Ioda"; 
 if (rub==5) url ="Envoyer un petit mot à l\'auteur de ces pages"; 
 if (rub==0) url ="Retour à la page home de Bruno";
 self.status=url;
}

function open_musique(extrait){
 if (extrait ==0) url="morgane.htm";
 if (extrait ==10)  url="Jeep_CJ7_avendre.pdf";
 if (extrait ==11)  url="roadbook.htm";
 if (extrait ==1) url="../villeray/vil-journuit.htm";
 if (extrait ==2) url="../villeray/vil-deprog.htm";
 if (extrait ==3) url="../villeray/vil-ventsmarees.htm";
 if (extrait ==4) url="../blowup/blowup-chicken.htm";
 if (extrait ==5) url="../blowup/blowup-chiquili.htm";

 if ((extrait == 0 ) || (extrait == 10 )|| (extrait == 11 )){
    Music=open(url,"Musique" ,"status=1;toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=0,width=780,height=500,left=50,top=50");
 }else{
    Music=open(url,"Musique" ,"status=1;toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=0,width=534,height=400,left=50,top=50");
 }
 Music.focus()
}
//  fin du script -->
