function pre_load_imgs()
{ (new Image()).src = "images/plan_item_over.gif";
  (new Image()).src = "images/contact_item_over.gif";
  (new Image()).src = "images/envoyer_bkg_over.gif";
}

function roll_over_mdp()
{ if(document.getElementById)
  { if(document.getElementById("a_reseau"))
    { document.getElementById("a_reseau").onmouseover = function()
	  { document.getElementById("a_mdp").style.textDecoration = "underline";
	  }
      document.getElementById("a_reseau").onmouseout  = function()
	  { document.getElementById("a_mdp").style.textDecoration = "none";
	  }
    }
  }
}

function roll_over_plan()
{ if(document.getElementById)
  { if(document.getElementById("a_plan"))
    { document.getElementById("a_plan").onmouseover = function()
	  { document.getElementById("img_plan").src = "images/plan_item_over.gif";
	  }
      document.getElementById("a_plan").onmouseout  = function()
	  { document.getElementById("img_plan").src = "images/plan_item.gif";
	  }
    }
  }
}

function roll_over_contact()
{ if(document.getElementById)
  { if(document.getElementById("a_contact"))
    { document.getElementById("a_contact").onmouseover = function()
	  { document.getElementById("img_contact").src = "images/contact_item_over.gif";
	  }
      document.getElementById("a_contact").onmouseout  = function()
	  { document.getElementById("img_contact").src = "images/contact_item.gif";
	  }
    }
  }
}

function roll_over_accueil()
{ if(document.getElementById)
  { if(document.getElementById("a_accueil"))
    { document.getElementById("a_accueil").onmouseover = function()
	  { document.getElementById("li_accueil").style.backgroundColor = "#06437e";
	    document.getElementById("a_accueil").style.color = "#7ccdec";
      }
      document.getElementById("a_accueil").onmouseout  = function()
	  { document.getElementById("li_accueil").style.backgroundColor = "#2266a6";
	    document.getElementById("a_accueil").style.color = "#ffffff";
      }
    }
  }
}

function roll_over_expatries()
{ if(document.getElementById)
  { if(document.getElementById("a_expatries"))
    { document.getElementById("a_expatries").onmouseover = function()
	  { document.getElementById("li_expatries").style.backgroundColor = "#06437e";
	    document.getElementById("a_expatries").style.color = "#7ccdec";
      }
      document.getElementById("a_expatries").onmouseout  = function()
	  { document.getElementById("li_expatries").style.backgroundColor = "#2266a6";
	    document.getElementById("a_expatries").style.color = "#ffffff";
      }
    }
  }
}

function roll_over_expatriates()
{ if(document.getElementById)
  { if(document.getElementById("a_expatriates"))
    { document.getElementById("a_expatriates").onmouseover = function()
	  { document.getElementById("li_expatries").style.backgroundColor = "#06437e";
	    document.getElementById("a_expatriates").style.color = "#7ccdec";
      }
      document.getElementById("a_expatriates").onmouseout  = function()
	  { document.getElementById("li_expatries").style.backgroundColor = "#2266a6";
	    document.getElementById("a_expatriates").style.color = "#ffffff";
      }
    }
  }
}

function roll_over_location()
{ if(document.getElementById)
  { if(document.getElementById("a_location"))
    { document.getElementById("a_location").onmouseover = function()
	  { document.getElementById("li_location").style.backgroundColor = "#06437e";
	    document.getElementById("a_location").style.color = "#7ccdec";
      }
      document.getElementById("a_location").onmouseout  = function()
	  { document.getElementById("li_location").style.backgroundColor = "#2266a6";
	    document.getElementById("a_location").style.color = "#ffffff";
      }
    }
  }
}

function roll_over_presentation()
{ if(document.getElementById)
  { if(document.getElementById("a_presentation"))
    { document.getElementById("a_presentation").onmouseover = function()
	  { document.getElementById("li_presentation").style.backgroundColor = "#06437e";
	    document.getElementById("a_presentation").style.color = "#7ccdec";
      }
      document.getElementById("a_presentation").onmouseout  = function()
	  { document.getElementById("li_presentation").style.backgroundColor = "#2266a6";
	    document.getElementById("a_presentation").style.color = "#ffffff";
      }
    }
  }
}

function roll_over_livraison()
{ if(document.getElementById)
  { if(document.getElementById("a_livraison"))
    { document.getElementById("a_livraison").onmouseover = function()
	  { document.getElementById("li_livraison").style.backgroundColor = "#06437e";
	    document.getElementById("a_livraison").style.color = "#7ccdec";
      }
      document.getElementById("a_livraison").onmouseout  = function()
	  { document.getElementById("li_livraison").style.backgroundColor = "#2266a6";
	    document.getElementById("a_livraison").style.color = "#ffffff";
      }
    }
  }
}

function roll_over_services()
{ if(document.getElementById)
  { if(document.getElementById("a_services"))
    { document.getElementById("a_services").onmouseover = function()
	  { document.getElementById("li_services").style.backgroundColor = "#06437e";
	    document.getElementById("a_services").style.color = "#7ccdec";
      }
      document.getElementById("a_services").onmouseout  = function()
	  { document.getElementById("li_services").style.backgroundColor = "#2266a6";
	    document.getElementById("a_services").style.color = "#ffffff";
      }
    }
  }
}

function roll_over_last()
{ if(document.getElementById)
  { if(document.getElementById("a_last"))
    { document.getElementById("a_last").onmouseover = function()
	  { document.getElementById("li_last").style.backgroundColor = "#06437e";
	    document.getElementById("a_last").style.color = "#7ccdec";
      }
      document.getElementById("a_last").onmouseout  = function()
	  { document.getElementById("li_last").style.backgroundColor = "#2266a6";
	    document.getElementById("a_last").style.color = "#ffffff";
      }
    }
  }
}

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_mdp);
addLoadEvent(roll_over_plan);
addLoadEvent(roll_over_contact);
addLoadEvent(roll_over_accueil);
addLoadEvent(roll_over_expatries);
addLoadEvent(roll_over_expatriates);
addLoadEvent(roll_over_location);
addLoadEvent(roll_over_presentation);
addLoadEvent(roll_over_livraison);
addLoadEvent(roll_over_services);
addLoadEvent(roll_over_last);
addLoadEvent(pre_load_imgs);

