window.onload=initialiser;

function initialiser(){
	document.getElementById("btnDemo").addEventListener("mouseover",demoHover,false);
	document.getElementById("btnCommander").addEventListener("mouseover",commanderHover,false);
	document.getElementById("envoiMail").addEventListener("mouseover",mailHover,false);
}

function demoHover(){
	this.setAttribute("src","/images/btnDemoHover.jpg");
	this.addEventListener("mouseout",demoOut,false);
}

function demoOut(){
	this.setAttribute("src","/images/btnDemo.jpg");
	this.removeEventListener("mouseout",demoOut,false);
}

function commanderHover(){
	this.setAttribute("src","/images/btnAcheterHover.jpg");	
	this.addEventListener("mouseout",commanderOut,false);
}

function commanderOut(){
	this.setAttribute("src","/images/btnAcheter.jpg");	
	this.removeEventListener("mouseout",commanderOut,false);
}

function mailHover(){
	this.setAttribute("src","/images/mailHover.jpg");	
	this.addEventListener("mouseout",mailOut,false);
}

function mailOut(){
	this.setAttribute("src","/images/mail.jpg");	
	this.removeEventListener("mouseout",mailOut,false);
}
