$(document).ready(function(){

	
	//Preload Images
	imQui=new Image();
	imQui.src="images/quiOver.png";
	
	imQuoi=new Image();
	imQuoi.src="images/quoiOver.png";
	
	imOu=new Image();
	imOu.src="images/ouOver.png";
	
	imTarifs=new Image();
	imTarifs.src="images/tarifsOver.png";
	
	imCt=new Image();
	imCt.src="images/contraintesOver.png";
	
	imRg=new Image();
	imRg.src="images/reglementOver.png";
	
	//Evenements menu
	$("#qui").mouseover(function(event){
		document.getElementById("qui").style.backgroundImage="url(images/quiOver.png)";
	});
	$("#qui").mouseout(function(event){
		document.getElementById("qui").style.backgroundImage="url(images/qui.png)";
	});
	$("#qui").click(function(event){
		document.location.href="qui.php";
	});
	
	$("#quoi").mouseover(function(event){
		document.getElementById("quoi").style.backgroundImage="url(images/quoiOver.png)";
	});
	$("#quoi").mouseout(function(event){
		document.getElementById("quoi").style.backgroundImage="url(images/quoi.png)";
	});
	$("#quoi").click(function(event){
		document.location.href="quoi.php";
	});
	
	$("#ou").mouseover(function(event){
		document.getElementById("ou").style.backgroundImage="url(images/ouOver.png)";
	});
	$("#ou").mouseout(function(event){
		document.getElementById("ou").style.backgroundImage="url(images/ou.png)";
	});
	$("#ou").click(function(event){
		document.location.href="ou.php";
	});
	
	$("#tarifs").mouseover(function(event){
		document.getElementById("tarifs").style.backgroundImage="url(images/tarifsOver.png)";
	});
	$("#tarifs").mouseout(function(event){
		document.getElementById("tarifs").style.backgroundImage="url(images/tarifs.png)";
	});
	$("#tarifs").click(function(event){
		document.location.href="realisations.php";
	});
	
	$("#contraintes").mouseover(function(event){
		document.getElementById("contraintes").style.backgroundImage="url(images/contraintesOver.png)";
	});
	$("#contraintes").mouseout(function(event){
		document.getElementById("contraintes").style.backgroundImage="url(images/contraintes.png)";
	});
	$("#contraintes").click(function(event){
		document.location.href="contraintes-techniques.php";
	});
	
	$("#reglement").mouseover(function(event){
		document.getElementById("reglement").style.backgroundImage="url(images/reglementOver.png)";
	});
	$("#reglement").mouseout(function(event){
		document.getElementById("reglement").style.backgroundImage="url(images/reglement.png)";
	});
	$("#reglement").click(function(event){
		document.location.href="boutique-online.php";
	});
	
	$("#boutonDevis").mouseover(function(event){
		document.getElementById("boutonDevis").style.backgroundColor="#C3C3C3";
	});
	$("#boutonDevis").mouseout(function(event){
		document.getElementById("boutonDevis").style.backgroundColor="#F2F2F2";
	});
	$("#boutonDevis").click(function(event){
		document.location.href="devis.php";
	});
	
	$("#boutonTransfert").mouseover(function(event){
		document.getElementById("boutonTransfert").style.backgroundColor="#C3C3C3";
	});
	$("#boutonTransfert").mouseout(function(event){
		document.getElementById("boutonTransfert").style.backgroundColor="#F2F2F2";
	});
	$("#boutonTransfert").click(function(event){
		document.location.href="transfert-fichier.php";
	});

});