<!-- Original:  John Soul (john@cjsi.com) -->
<!-- Web Site:  http://www.cjsi.com/ -->
<!-- Begin
// Initiate a new array containing all the navigation hyperlinks that loads on startup
// The 'htm' extension for the link is added by the script

//initialize the variables for indexing data
x=1; //initialize the first variable
y=3; //initialize the variable used to reset the buttons on mouse out
linx = new Array()
linx[1] = new Array(); //First set of links for the top level category
linx[1][1] = "annuaireVins.php";
linx[1][2] = "annuaireVins.php";
linx[1][3] = "annuaireVins.php";


linx[2] = new Array(); //Second set of Links for next top level cateogry
linx[2][1] = "annuaireVins.php";
linx[2][2] = "vins2.php?ch=vigneron&la=fr";
linx[2][3] = "vin-en-scene.php";


linx[3] = new Array(); //Third set of Links for the last top level cateogry
linx[3][1] = "annuaire.php";
linx[3][2] = "carcassonne-meteo.php";



//This is the function populates the first set of buttons ...
function rollover1() {
document.menu.nav1.value = "";
document.menu.nav2.value = "";
document.menu.nav3.value = "";
document.menu.dummy.value = 1;
x = document.menu.dummy.value;
return(x);
}
//Function populates the second set of buttons ...
function rollover2() {
document.menu.nav1.value = "Annuaire vigneron";
document.menu.nav2.value = "Les vignerons ? Connaissez-les";
document.menu.nav3.value = "Le vin en scène";
document.menu.dummy.value = 2;
x = document.menu.dummy.value;
return(x);
}
//Function populates the third set of buttons ...
function rollover3() {
document.menu.nav1.value = "Recherches en Minervois";
document.menu.nav2.value = "La méteo à Carcassonne";
document.menu.dummy.value = 3;
x = document.menu.dummy.value;
return(x);
}

//This sends
function go2url(hlink) {
// set temporary variable temp1 to the value of the dummy hidden field
var temp1 = document.menu.dummy.value;
// set the temporary variable temp2 to link array
var temp2 = (linx[temp1][hlink]);
// Construct the url for the link to point to
window.location = "http://localhost/lemin/"+temp2+"";
}

//If there are no lower tier navigation buttons, this function closes the buttons as the mouse moves off the prevoius link to this.
function rollout() {
for (var j=0; j<y; j++) {
document.elements[j].value = "            ";
   }
}
