function pre_load_imgs()
{ (new Image()).src = "images/home_over.gif";
  (new Image()).src = "images/contact_over.gif";
  (new Image()).src = "images/plan_over.gif";
  (new Image()).src = "images/admin_over.gif";
//  (new Image()).src = "images/li_over_bkg.gif";
}


function roll_over_accueil()
{ if(document.getElementById)
  { if(document.getElementById("top_accueil"))
    { document.getElementById("top_accueil").onmouseover = function()
      { document.getElementById("info").innerHTML = "Accueil";
      }
      document.getElementById("top_accueil").onmouseout  = function()
	  { document.getElementById("info").innerHTML = "T&eacute;l. 02 33 90 66 58";
      }
    }
  }
}

function roll_over_contact()
{ if(document.getElementById)
  { if(document.getElementById("top_contact"))
    { document.getElementById("top_contact").onmouseover = function()
      { document.getElementById("info").innerHTML = "Contactez-nous";
      }
      document.getElementById("top_contact").onmouseout  = function()
	  { document.getElementById("info").innerHTML = "T&eacute;l. 02 33 90 66 58";
      }
    }
  }
}

function roll_over_plan()
{ if(document.getElementById)
  { if(document.getElementById("top_plan"))
    { document.getElementById("top_plan").onmouseover = function()
      { document.getElementById("info").innerHTML = "Plan du site";
      }
      document.getElementById("top_plan").onmouseout  = function()
	  { document.getElementById("info").innerHTML = "T&eacute;l. 02 33 90 66 58";
      }
    }
  }
}

function roll_over_admin()
{ if(document.getElementById)
  { if(document.getElementById("top_admin"))
    { document.getElementById("top_admin").onmouseover = function()
      { document.getElementById("info").innerHTML = "Administration du site";
      }
      document.getElementById("top_admin").onmouseout  = function()
	  { document.getElementById("info").innerHTML = "T&eacute;l. 02 33 90 66 58";
      }
    }
  }
}

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_contact);
addLoadEvent(roll_over_plan);
addLoadEvent(roll_over_admin);
addLoadEvent(pre_load_imgs);
