function changeBackground()
{
	// Rôle : permet de changer l'image de background en fonction de la résolution de l'écran
	// Version: 1.1.120123
	// Historique : Fonction crée le 12/11/2011 initialement pour olivier-g.com
	// Permet de changer l'image de background
	// ici on intègre un background en fonction de la résolution de l'écran
	// 1. Récuperer la résolution courante
	var h = screen.height;
	var l = screen.width;
	var f="fond_1280x1024.jpg";
	// 2. En fonction des infos on choisit une taille
	// 800x600	1024x768	1280x768	1280x800	1280x960	1280x1024	1380x768	1920x1080
	if (l == 1920 && h == 1080)
		f="fond_1920x1080.jpg";
	else if (l >= 1360 && l <= 1366)
		f="fond_1366x768.jpg";
	else if (l == 1280 && h <= 800)
		f="fond_1280x800.jpg";
	else if (l == 1280 && h >=960)
		f="fond_1280x1024.jpg";
	else if (l == 1280 && h >=600 && h <=720)
		f="fond_1024x720.jpg";
	else if (l == 1152 && h >=864)
		f="fond_1152x864.jpg";
	else if (l == 1024 && h ==768)
		f="fond_1024x768.jpg";
	else if (l == 800 && h ==600)
		f="fond_800x600.jpg";
	else
		f="fond_1280x1024.jpg";
	

	
	var z = new Image();
	z.src = "http://www.atoutreve.fr/resources/common/"+f;
	document.body.background=z.src;
}

