function WM_readCookie(name) {
    if(document.cookie == '') { // there's no cookie, so go no further
        return '';
    } else { // there is a cookie
        var firstChar, lastChar;
        var theBigCookie = document.cookie;
        firstChar = theBigCookie.indexOf(name); // find the start of 'name'
        var NN2Hack = firstChar + name.length;
        if((firstChar != -1) && (theBigCookie.charAt(NN2Hack) == '=')) { // if you found the cookie
            firstChar += name.length + 1; // skip 'name' and '='
            lastChar = theBigCookie.indexOf(';', firstChar); // Find the end of the value string (i.e. the next ';').
            if(lastChar == -1) lastChar = theBigCookie.length;
            return unescape(theBigCookie.substring(firstChar, lastChar));
        } else { // If there was no cookie of that name, return ''.
            return '';
        }
    }
} // WM_readCookie

//keywords
var code="code";var url="url";var sub="sub";
//styles
var color = {"border":"#666666", "shadow":"#DBD8D1", "bgON":"white","bgOVER":"#B6BDD2"};
var css = {"ON":"clsCMOn", "OVER":"clsCMOver"};
var STYLE = {"border":1, "shadow":2, "color":color, "css":css};
//items and formats
if (WM_readCookie("aslsfmaint") == "maint")
{
  var MENU_ITEMS_F =
  [
    {"pos":[5,300], "itemoff":[21,0], "leveloff":[21,0], "style":STYLE, "size":[22,142]},
    {code:"English", url:"index_e.html"},
    {code:"Accueil", url:"index.htm"},
    {code:"Quoi de Neuf Photos", url:"whatisnew_photo_f.html"},
    {code:"Quoi de Neuf", url:"whatisnew/QuoiDeNeuf.doc", target:"_blank"},
    {code:"Urgence  Environnement", url:"environmental_emergency_f.html"},
    {code:"Dossiers",
      sub:[
        {size:[22, 140], itemoff:[21, 0], leveloff:[22, 79], delay:600, imgsize:[16, 16], arrsize:[16, 16], style:{border:1, shadow:2, color:{border:"#666666", shadow:"#DBD8D1", bgON:"white", bgOVER:"#B6BDD2", imagebg:"#DBD8D1", oimagebg:"#B6BDD2"}, css:{ON:'clsCMOn', OVER:'clsCMOver'}}},
          {code:"Lettre ecrite en 2070", url:"letter_2070_f.html", menutip:"Table de concertation sur les terres humides du bassin versant de la rivière La Guerre."},
          {code:"La Rivière la Guerre", url:"riviere_la_guerre_f.html", menutip:"La Rivière la Guerre."}
      ]},
    {code:"Réalisations", url:"accomplishments_f.html", menutip:"Réalisations par l'ASLSF."},
    {code:"Analyse&nbsp;d&#39;eau", url:"water_analysis_f.html", menutip:"Analyse&nbsp;d&#39;eau du lac St-François."},
    {code:"Adhésion", url:"membership_f.html", menutip:"Adhésion des membres et formule"},
    {code:"Liste des Membres", url:"member_list_f.asp", menutip:"Adhésion des membres et formule"},
    {code:"Liens", url:"links_f.html", menutip:"Liens aux autres sites"},
    {code:"Carte", url:"map_f.html", menutip:"Carte de la région concernée pour l'ASLF"},
    {code:"Archives",
      sub:[
        {size:[22, 140], itemoff:[21, 0], leveloff:[22, 79], delay:600, imgsize:[16, 16], arrsize:[16, 16], style:{border:1, shadow:2, color:{border:"#666666", shadow:"#DBD8D1", bgON:"white", bgOVER:"#B6BDD2", imagebg:"#DBD8D1", oimagebg:"#B6BDD2"}, css:{ON:'clsCMOn', OVER:'clsCMOver'}}},
          {code:"Règlements de ASLSF", url:"rules_f.pdf", target:"_blank"},
          {code:"Vision 2000", url:"st_laurent_vision_2000_f.html", menutip:"St-Laurent Vision 2000."},
          {code:"Revue&nbsp;de&nbsp;presse", url:"press_articles_f.html", menutip:"Articles de presse concernant l'ASLF"}
      ]},
    {code:"Mise à Jour Liste Membres", url:"member_list_f.asp", menutip:"Mise à Jour de Liste des membres"},
    {code:"Ajouter Membre", url:"member_add_entry_f.asp", menutip:"Ajouter un membre"},
    {code:"Upload Quoi de Neuf", url:"uploader_f.asp", menutip:"Upload 'QuoiDeNeuf.doc' document Word"}
  ];
}
else
{
  var MENU_ITEMS_F =
  [
    {"pos":[5,300], "itemoff":[21,0], "leveloff":[21,0], "style":STYLE, "size":[22,142]},
    {code:"English", url:"index_e.html"},
    {code:"Accueil", url:"index.htm"},
    {code:"Quoi de Neuf Photos", url:"whatisnew_photo_f.html"},
    {code:"Quoi de Neuf", url:"whatisnew/QuoiDeNeuf.doc", target:"_blank"},
    {code:"Urgence  Environnement", url:"environmental_emergency_f.html"},
    {code:"Dossiers",
      sub:[
        {size:[22, 140], itemoff:[21, 0], leveloff:[22, 79], delay:600, imgsize:[16, 16], arrsize:[16, 16], style:{border:1, shadow:2, color:{border:"#666666", shadow:"#DBD8D1", bgON:"white", bgOVER:"#B6BDD2", imagebg:"#DBD8D1", oimagebg:"#B6BDD2"}, css:{ON:'clsCMOn', OVER:'clsCMOver'}}},
          {code:"Lettre ecrite en 2070", url:"letter_2070_f.html", menutip:"Table de concertation sur les terres humides du bassin versant de la rivière La Guerre."},
          {code:"La Rivière la Guerre", url:"riviere_la_guerre_f.html", menutip:"La Rivière la Guerre."}
      ]},
    {code:"Réalisations", url:"accomplishments_f.html", menutip:"Réalisations par l'ASLSF."},
    {code:"Analyse&nbsp;d&#39;eau", url:"water_analysis_f.html", menutip:"Analyse&nbsp;d&#39;eau du lac St-François."},
    {code:"Adhésion", url:"membership_f.html", menutip:"Adhésion des membres et formule"},
    {code:"Liste des Membres", url:"member_list_f.asp", menutip:"Adhésion des membres et formule"},
    {code:"Liens", url:"links_f.html", menutip:"Liens aux autres sites"},
    {code:"Carte", url:"map_f.html", menutip:"Carte de la région concernée pour l'ASLF"},
    {code:"Archives",
      sub:[
        {size:[22, 140], itemoff:[21, 0], leveloff:[22, 79], delay:600, imgsize:[16, 16], arrsize:[16, 16], style:{border:1, shadow:2, color:{border:"#666666", shadow:"#DBD8D1", bgON:"white", bgOVER:"#B6BDD2", imagebg:"#DBD8D1", oimagebg:"#B6BDD2"}, css:{ON:'clsCMOn', OVER:'clsCMOver'}}},
          {code:"Règlements de ASLSF", url:"rules_f.pdf", target:"_blank"},
          {code:"Vision 2000", url:"st_laurent_vision_2000_f.html", menutip:"St-Laurent Vision 2000."},
          {code:"Revue&nbsp;de&nbsp;presse", url:"press_articles_f.html", menutip:"Articles de presse concernant l'ASLF"}
      ]},
    {code:"Administration", url:"member_login_entry_f.asp", menutip:"Login pour Administrateurs"}
  ];
}
