function pre_load_imgs()
{ (new Image()).src = "images/item_over_18.gif";
  (new Image()).src = "images/item_over_32.gif";
  (new Image()).src = "images/item_over_46.gif";
  (new Image()).src = "images/contenus/inscription_btn_over.gif";
}


function roll_over_accueil()
{ if(document.getElementById)
  { if(document.getElementById("a_accueil"))
    { document.getElementById("a_accueil").onmouseover = function()
	  { document.getElementById("li_accueil").style.backgroundImage = "url(images/item_over_18.gif)";
        document.getElementById("a_accueil").style.color = "#ffffff";
      }
      document.getElementById("a_accueil").onmouseout  = function()
	  { document.getElementById("li_accueil").style.backgroundImage = "url(images/item_accueil.gif)";
        document.getElementById("a_accueil").style.color = "#6e6e6e";
      }
    }
  }
}

function roll_over_presentation()
{ if(document.getElementById)
  { if(document.getElementById("a_presentation"))
    { document.getElementById("a_presentation").onmouseover = function()
	  { document.getElementById("li_presentation").style.backgroundImage = "url(images/item_over_46.gif)";
        document.getElementById("a_presentation").style.color = "#ffffff";
	  }
      document.getElementById("a_presentation").onmouseout  = function()
	  { document.getElementById("li_presentation").style.backgroundImage = "url(images/item_presentation.gif)";
        document.getElementById("a_presentation").style.color = "#6e6e6e";
	  }
    }
  }
}

function roll_over_missions()
{ if(document.getElementById)
  { if(document.getElementById("a_missions"))
    { document.getElementById("a_missions").onmouseover = function()
	  { document.getElementById("li_missions").style.backgroundImage = "url(images/item_over_18.gif)";
        document.getElementById("a_missions").style.color = "#ffffff";
	  }
      document.getElementById("a_missions").onmouseout  = function()
	  { document.getElementById("li_missions").style.backgroundImage = "url(images/item_missions.gif)";
        document.getElementById("a_missions").style.color = "#6e6e6e";
	  }
    }
  }
}

function roll_over_residents()
{ if(document.getElementById)
  { if(document.getElementById("a_residents"))
    { document.getElementById("a_residents").onmouseover = function()
	  { document.getElementById("li_residents").style.backgroundImage = "url(images/item_over_18.gif)";
        document.getElementById("a_residents").style.color = "#ffffff";
	  }
      document.getElementById("a_residents").onmouseout  = function()
	  { document.getElementById("li_residents").style.backgroundImage = "url(images/item_residents.gif)";
        document.getElementById("a_residents").style.color = "#6e6e6e";
	  }
    }
  }
}

function roll_over_actualites()
{ if(document.getElementById)
  { if(document.getElementById("a_actualites"))
    { document.getElementById("a_actualites").onmouseover = function()
	  { document.getElementById("li_actualites").style.backgroundImage = "url(images/item_over_18.gif)";
        document.getElementById("a_actualites").style.color = "#ffffff";
	  }
      document.getElementById("a_actualites").onmouseout  = function()
	  { document.getElementById("li_actualites").style.backgroundImage = "url(images/item_actualites.gif)";
        document.getElementById("a_actualites").style.color = "#6e6e6e";
	  }
    }
  }
}

function roll_over_revues()
{ if(document.getElementById)
  { if(document.getElementById("a_revues"))
    { document.getElementById("a_revues").onmouseover = function()
	  { document.getElementById("li_revues").style.backgroundImage = "url(images/item_over_18.gif)";
        document.getElementById("a_revues").style.color = "#ffffff";
	  }
      document.getElementById("a_revues").onmouseout  = function()
	  { document.getElementById("li_revues").style.backgroundImage = "url(images/item_actualites.gif)";
        document.getElementById("a_revues").style.color = "#6e6e6e";
	  }
    }
  }
}

function roll_over_integrer()
{ if(document.getElementById)
  { if(document.getElementById("a_integrer"))
    { document.getElementById("a_integrer").onmouseover = function()
	  { document.getElementById("li_integrer").style.backgroundImage = "url(images/item_over_46.gif)";
        document.getElementById("a_integrer").style.color = "#ffffff";
	  }
      document.getElementById("a_integrer").onmouseout  = function()
	  { document.getElementById("li_integrer").style.backgroundImage = "url(images/item_integrer.gif)";
        document.getElementById("a_integrer").style.color = "#6e6e6e";
	  }
    }
  }
}

function roll_over_forum()
{ if(document.getElementById)
  { if(document.getElementById("a_forum"))
    { document.getElementById("a_forum").onmouseover = function()
	  { document.getElementById("li_forum").style.backgroundImage = "url(images/item_over_18.gif)";
        document.getElementById("a_forum").style.color = "#ffffff";
	  }
      document.getElementById("a_forum").onmouseout  = function()
	  { document.getElementById("li_forum").style.backgroundImage = "url(images/item_forum.gif)";
        document.getElementById("a_forum").style.color = "#6e6e6e";
	  }
    }
  }
}

function roll_over_contact()
{ if(document.getElementById)
  { if(document.getElementById("a_contact"))
    { document.getElementById("a_contact").onmouseover = function()
	  { document.getElementById("li_contact").style.backgroundImage = "url(images/item_over_32.gif)";
        document.getElementById("a_contact").style.color = "#ffffff";
	  }
      document.getElementById("a_contact").onmouseout  = function()
	  { document.getElementById("li_contact").style.backgroundImage = "url(images/item_contact.gif)";
        document.getElementById("a_contact").style.color = "#6e6e6e";
	  }
    }
  }
}

function addLoadEvent(func)
{ var oldonload = window.onload;
  if(typeof window.onload != 'function') window.onload = func;
  else
  { window.onload = function()
    { if(oldonload) oldonload();
      func();
    }
  }
}

addLoadEvent(roll_over_accueil);
addLoadEvent(roll_over_presentation);
addLoadEvent(roll_over_missions);
addLoadEvent(roll_over_residents);
addLoadEvent(roll_over_actualites);
addLoadEvent(roll_over_revues);
addLoadEvent(roll_over_integrer);
addLoadEvent(roll_over_forum);
addLoadEvent(roll_over_contact);
addLoadEvent(pre_load_imgs);

function swf_object(swf, width, height, id, alternative)
{ if(alternative == undefined) alternative = "";
  document.write
  (  "        <object type=\"application/x-shockwave-flash\"\n"
   + (id != undefined > 0 ? "                id=\"" + id + "\"\n" : "")
   + "                data=\"" + swf + "\"\n"
   + "                width=\"" + width + "\"\n"
   + "                height=\"" + height + "\">\n"
   + "          <param name=\"movie\" value=\"" + swf + "\">\n"
   + alternative + "\n"
   + "        </object>\n"
  );
}
