///
///       DATA pour un menu

strQuote = "'";
lang = 'uk';

//  Libelle        img  img_active    url   niveau  
var GEN_Tab_Element = new Array(
"NEWS###/teiffel/uk/images/tit_actualites.gif#########0",
"The latest news#########/teiffel/uk/actualites/page/actu.html###1",
"A century ago#########/teiffel/uk/actualites/anecdot/index.html###1",
"PRACTICAL INFORMATION###/teiffel/uk/images/tit_infos_pratiques.gif#########0",
"Entrance fees#########/teiffel/uk/pratique/acces/page/tarifs.html###1",
"Hours when open#########/teiffel/uk/pratique/acces/page/horaires.html###1",
"Going up#########/teiffel/uk/pratique/acces/page/ascension.html###1",
"Disabled access#########/teiffel/uk/pratique/handicapees/index.html###1",
"Map & directions#########/teiffel/uk/pratique/acces/page/plan1.html###1",
"Restaurants#########javascript:;\" onClick=\"window.open(' + strQuote + 'http://www.restaurants-toureiffel.com' + strQuote + ',' + strQuote + 'Restaurants' + strQuote + ',' + strQuote + '' + strQuote + ');\"###1",
"Souvenir Shops#########/teiffel/uk/pratique/boutiques/index.html###1",
"What to see#########/teiffel/uk/pratique/a_voir/index.html###1",
//"Contacts#########/teiffel/uk/pratique/contact/index.html###1",
//"F.A.Q.#########/teiffel/uk/pratique/faq/index.html###1",
"CHILDREN###/teiffel/uk/images/tit_espace_enfants.gif#########0",
"DOCUMENTATION###/teiffel/uk/images/tit_documentation.gif#########0",
"All You Need to Know about the Eiffel Tower#########/teiffel/uk/documentation/pdf/about_the Eiffel_Tower.pdf###1",
"Documents#########/teiffel/uk/documentation/dossiers/index.html###1",
"Tower structure#########/teiffel/uk/documentation/structure/page/structure.html###1",
"Facts & Figures#########/teiffel/uk/documentation/chiffres/page/identite.html###1",
"THE TOWER A LEISURE###/teiffel/uk/images/tit_tour_ludique.gif#########0",
"Take a tour#########/teiffel/uk/ludique/visite/index.html###1",
"View of Paris#########javascript:;\" onClick=\"window.open(' + strQuote + '/teiffel/uk/vu_de_la_tour/index.php' + strQuote + ',' + strQuote + 'vudelatour' + strQuote + ',' + strQuote + 'width=905,height=598' + strQuote + ')\" name=\"###1",
"Video gallery#########/teiffel/uk/ludique/video/index.html###1",
"Virtual gallery#########/teiffel/uk/ludique/galerie/index.html###1",
"Post cards#########/teiffel/uk/ludique/postale/index.html###1",
"Wallpapers#########/teiffel/uk/ludique/fondecran/index.html###1",
//"For children only#########javascript:;\" onClick=\"fen2=MD_OpenWindow(' + strQuote + '/teiffel/uk/ludique/espace_enfant/index.html' + strQuote + ',' + strQuote + 'espace_enfant' + strQuote + ',' + strQuote + 'width=750,height=600,scrollbars=no' + strQuote + ');fen2.focus();\"###1",
"Quiz#########/teiffel/uk/ludique/jeu/quizz/page/quizz.html###1",
"PROFESSIONAL SERVICES###/teiffel/uk/images/tit_espace_pro.gif#########0",
"Reception room#########/teiffel/uk/espace_pro/location/index.html###1",
"Pro Service Rates#########/teiffel/uk/espace_pro/tarifs/index.html###1",
"Behind the scenes#########/teiffel/uk/espace_pro/coulisses/index.html###1"
); 





// Parametres pour l'affichage des niveaux
//                     puce open                        puce close          	       puce_lien             css open css close  couleur   tabulation         

var GEN_Tab_Level = new Array(
"0###/teiffel/fr/gene/image/fleche_bas.gif###/teiffel/fr/gene/image/fleche_droite.gif###/teiffel/fr/gene/image/carre.gif###op###close######10",      
"1###/teiffel/fr/gene/image/fleche_bas.gif###/teiffel/fr/gene/image/fleche_droite.gif###/teiffel/fr/gene/image/carre.gif###op###close######20",
"2###/teiffel/fr/gene/image/fleche_bas.gif###/teiffel/fr/gene/image/fleche_droite.gif###/teiffel/fr/gene/image/carre.gif###op###close######30",
"3###/teiffel/fr/gene/image/fleche_bas.gif###/teiffel/fr/gene/image/fleche_droite.gif###/teiffel/fr/gene/image/carre_gris.gif###op###close######40"
);


////// Parametres generaux

// La couleur de fond du calque
GEN_Layer_Color = null;

// La largeur du menu
GEN_Largeur = 10;

// La position left du menu
GEN_Left =0;

// La position top du menu
GEN_Top = 0;

// La hauteur du layer pour Netscape
GEN_HeigthNS = 900;

// La hauteur du calque (utilise pour IE sur Macintosh pour rendre accesible le moteur de recherche)
GEN_Hauteur = null;
GEN_Hauteur = 10;
//GEN_Hauteur = 270;


// Le bas du menu
//GEN_BottomMenu = '<table width="180" border="0" cellspacing="0"><tr width="180"><td width="10" valign="top" align="right"><img src="/teiffel/fr/gene/image/fleche_droite.gif" border="0"></td><td width="180"><a href="http://toureiffel.idfr.net" target="_blank"><img src="/teiffel/fr/gene/image/tit_espace_emploi_n.gif" border="0"></a></td></tr><tr><td colspan="2">&nbsp;</td></tr></table>';
GEN_BottomMenu = '<table width="180" border="0" cellspacing="0"><tr width="180"><td valign="top" align="right"><img src="/teiffel/fr/gene/image/fleche_droite2.gif" border="0"></td><td width="180"><a href="http://toureiffel.idfr.net" target="_blank"><img src="/teiffel/uk/images/tit_espace_emploi_n.gif" border="0"></a></td></tr></table>';
// si vous preferez un include alors : BottomMenu = '<table><tr><td><!--#include virtual="/hec/fr/ecole_hec/inc/bas.inc" --></td></tr></table>';

// L'image transparente utilisee pour l'indentation (on fixe la largeur de l'image)
GEN_Shim = "../image/shim.gif";















//$ =======================================================================
//$ Fonction qui ouvre une fen tre est qui conserve l'identifiant
//$ =======================================================================
function FCT_OpenWindow(strUrl, strName, strOption) 
{ 
	var strNewWindow = "";
        var ExpReg = "";
        var DefineHeight = null;
        var DefineWidth = null;
        var DefineTop = null;
        var DefineLeft = null;
        var NewTop = 0;
        var NewLeft = 0;
        var NewOption = "";
        
        //$ Recherche la valeur du 'top' de la fentre
        ExpReg = new RegExp('top\\s*=\\s*(\\d+)', 'gi');
        if(strOption.match(ExpReg))DefineTop =  RegExp.$1;
        
        //$ Recherche la valeur du 'left' de la fen tre
        ExpReg = new RegExp('left\\s*=\\s*(\\d+)', 'gi');
        if(strOption.match(ExpReg))DefineLeft =  RegExp.$1;
        
        //$ Recherche la valeur du 'width' de la fentre
        ExpReg = new RegExp('width\\s*=\\s*(\\d+)', 'gi');
        if(strOption.match(ExpReg))DefineWidth =  RegExp.$1;
        
        //$ Recherche la valeur du 'height' de la fen tre
        ExpReg = new RegExp('height\\s*=\\s*(\\d+)', 'gi');
        if(strOption.match(ExpReg))DefineHeight =  RegExp.$1;
        
        //$ Dterminer le nouveau 'top'
        if(DefineTop == null) //$ Si l'option ne contient pas de 'top'
        {
                // Si l'option ne contient pas de 'height' on place le 'top' en 0
                if (DefineHeight == null)DefineTop = "top=0";
                else 
                {
                        DefineTop = ((screen.availHeight - DefineHeight) / 2);
                        DefineTop = "top=" + parseInt(DefineTop);
                }       
                
                //$ Si l'option n'est pas vide
                if(strOption != "")DefineTop = "," + DefineTop;
        }
        else DefineTop = "";
        
        //$ D terminer le nouveau 'left'
        if(DefineLeft == null) //$ Si l'option ne contient pas de 'left'
        {
                // Si l'option ne contient pas de 'width' on place le 'left' en 0
                if (DefineWidth == null)DefineLeft = "left=0";
                else
                {
                        DefineLeft = ((screen.availWidth - DefineWidth) / 2);
                        DefineLeft = "left=" + parseInt(DefineLeft);
                }
                
                //$ Si l'option n'est pas vide
                if(strOption != "")DefineLeft = "," + DefineLeft;
        }
        else DefineLeft = "";
                
        var NewOption = strOption + DefineLeft + DefineTop;        
	strNewWindow = window.open(strUrl, strName, NewOption);	
	strNewWindow.creator = self;
}

//$ =======================================================================
//$ Fonction qui ouvre une fentre en la centrant
//$ =======================================================================
function MD_OpenWindow(strUrl, strName, strOption) 
{ 
  var strNewWindow = "";
  var ExpReg = "";
  var DefineHeight = null;
  var DefineWidth = null;
  var DefineTop = null;
  var DefineLeft = null;
  var NewTop = 0;
  var NewLeft = 0;
  var NewOption = "";
       
  //$ Recherche la valeur du 'top' de la fen tre
  ExpReg = new RegExp('top\\s*=\\s*(\\d+)', 'gi');
  if(strOption.match(ExpReg))DefineTop =  RegExp.$1;
        
  //$ Recherche la valeur du 'left' de la fentre
  ExpReg = new RegExp('left\\s*=\\s*(\\d+)', 'gi');
  if(strOption.match(ExpReg))DefineLeft =  RegExp.$1;
        
  //$ Recherche la valeur du 'width' de la fen tre
  ExpReg = new RegExp('width\\s*=\\s*(\\d+)', 'gi');
  if(strOption.match(ExpReg))DefineWidth =  RegExp.$1;
  
  //$ Recherche la valeur du 'height' de la fentre
  ExpReg = new RegExp('height\\s*=\\s*(\\d+)', 'gi');
  if(strOption.match(ExpReg))DefineHeight =  RegExp.$1;
  
  //$ D terminer le nouveau 'top'
  if(DefineTop == null) //$ Si l'option ne contient pas de 'top'
  {
    // Si l'option ne contient pas de 'height' on place le 'top' en 0
    if (DefineHeight == null)DefineTop = "top=0";
    else 
    {
      DefineTop = ((screen.availHeight - DefineHeight) / 2);
      DefineTop = "top=" + parseInt(DefineTop);
    }       
    
    //$ Si l'option n'est pas vide
    if(strOption != "")DefineTop = "," + DefineTop;
  }
  else DefineTop = "";
  
  //$ Dterminer le nouveau 'left'
  if(DefineLeft == null) //$ Si l'option ne contient pas de 'left'
  {
    // Si l'option ne contient pas de 'width' on place le 'left' en 0
    if (DefineWidth == null)DefineLeft = "left=0";
    else
    {
      DefineLeft = ((screen.availWidth - DefineWidth) / 2);
      DefineLeft = "left=" + parseInt(DefineLeft);
    }
    
    //$ Si l'option n'est pas vide
    if(strOption != "")DefineLeft = "," + DefineLeft;
  }
  else DefineLeft = "";
          
  var NewOption = strOption + DefineLeft + DefineTop;        
  strNewWindow = window.open(strUrl, strName, NewOption);	
  strNewWindow.creator = self;
  return strNewWindow;
}
