<!--  
// JS scripts for hiliting images     
// by spdl@mosaic.ca - 2000
// added hilite by variable in 11-2001

// added menu switch to control the behaviour of the menu

//***************************************************************
// Initialize Menu Buttons



	// This part combines the hilite and the LayerSwap 
	// Every button is predefined, weather a section is active or has a Layer attached to it
	// 0 = no hilite; 1 = hilite; 2 = hilite+Layer;
	
	// Layer List
	myMenu = new createObject("MO", "Menu object");
	
	myMenu ["mSysteme"] = 2;
	myMenu ["mSolutions"] = 1;
	myMenu ["mReferences"] = 1;
	myMenu ["mIci"] = 1;
	myMenu ["mEquipe"] = 1;
	myMenu ["mInscrivez"] = 2;
	myMenu ["mPourquoi"] = 1;

// Initialize Menu Buttons
//***************************************************************


        
// Write all base names in myList
// Names for images must be "name" + "_0" and "name" + "_1" (i.e. 'conf' for 'conf_0')
// call function change: change("imgName",10 [11][20,21][etc]);
        
// var myList initialized on top
                
        var preArray = new Array();
        
        for(x=0; x<myList.length; x++) {
           preArray[x*10+10] = new Image();
           preArray[x*10+10].src = myPath + myList[x] + ".gif";
           
           preArray[x*10+11] = new Image();
           preArray[x*10+11].src = myPath + myList[x] + "_hi.gif";
        }
        
        function change(myName,myImage) {
			// what section?
			theSection = Math.round(myImage/10);
			// Do not hilite the section you are in;
			if (theSection != mySection) {
             	if (!document.images) {}
             	else {
                	document [myName].src = preArray[myImage].src;
				}
			}
        }
		
		function initHilite() {
			// Hilite the section button
			locName = myList[mySection-1];
			locImage = mySection*10 + 1;
			if (mySection != 0){
				document [locName].src = preArray[locImage].src;
			}
			
		}
		
		
		
		
		// Menu Switch
		function MenuSwitch(myName, myListPlace, myLayer, myAction) {
		if ( myMenu [myName] == 0 ) {
		 // Do nothing, menu disabled
		}
		
		
		if ( myMenu [myName] == 1 ) {
		 	// Menu enabled, but no layers
		 	if ( myAction == "over" ) {
				change(myName,myListPlace+"1");
			}
			if ( myAction == "out" ) {
				change(myName,myListPlace+"0");
			}
		}
		
		
		if ( myMenu [myName] == 2 ) {
		 // Menu enabled, subsections [Layers] activated
		 if ( myAction == "over" ) {
				change(myName,myListPlace+"1");
				MM_Layers("Layer"+myLayer,'','show');
				clearTimeout(TOut ["Layer"+myLayer]);
			}
			if ( myAction == "out" ) {
				change(myName,myListPlace+"0");
				checkRoll(myLayer);
			}
		}
	
	}
	
	
	
	
           

// --*************************************************************	
// ------------- Window Opener function --------------------------

         var earth;     
         function wOpnr(myURL,myName,myWidth,myHeight,myFixed) {
		 	myString = "location=" + myFixed + ",scrollbars=" + myFixed + ",resizable=" + myFixed + ",width=" + myWidth + ",height=" + myHeight;
			var earth = window.open(myURL, myName, myString);
			earth.opener.name = "stage";
		}

// --*************************************************************

		
// -->