/**
 * Préchargement des images
 */
if (document.images) {
	image1 		= new Image(198, 100);
	image1.src	= "<?php echo GFX_DIR_LANGUES ?>ta_iphone_on.png";
	image2 		= new Image(490, 100);
	image2.src	= "<?php echo GFX_DIR_LANGUES ?>logo_on.png";
	image3 		= new Image(22, 16);
	image3.src	= "<?php echo GFX_DIR ?>fr_on.png";
	image4 		= new Image(22, 16);
	image4.src	= "<?php echo GFX_DIR ?>en_on.png";
	image5 		= new Image(135, 62);
	image5.src	= "<?php echo GFX_DIR_LANGUES ?>logo_rss_on.png";
}


/**
 * Rollover / Rollout
 */
function allumerImage(image_fichier, image_id, langue_dir) {
	
	if (langue_dir == true) {
		dir = "<?php echo GFX_DIR_LANGUES ?>";
	} else {
		dir = "<?php echo GFX_DIR ?>";
	}
	image_racine = image_fichier;
	image_racine = image_racine.replace(/_off.png/, "");
	image_racine = image_racine.replace(/_on.png/, "");
	
	if (document.images) {
		if (document.images[image_id].src.indexOf("_on.png") == -1) {
			document.images[image_id].src = image_racine + "_on.png";
		} else {
			document.images[image_id].src = image_racine + "_off.png";
		}
	}
}