function initialize(){
	var nom_nav = navigator.appName;
	var ie = (nom_nav == 'Microsoft Internet Explorer') ? 1:0;


	//on ajoute un effet de survol sur tout les liens images du menu
	$('menu').getElements('img').each(function(img){	
		/*
		img.addEvent('mouseover',function(){this.fade('.5');});
		img.addEvent('mouseout',function(){this.fade('1');});
		*/
		var w_init=img.getCoordinates().width;
		var h_init=img.getCoordinates().height;		
		var morphObject = new Fx.Morph(img,{transition: 'quad:in',fps: 15});
		img.addEvent('mouseenter',function(e){
			e.stop();
			morphObject.set({
			 'width': (w_init+10),
			 'height': (h_init+10)
			});		
		});	
		img.addEvent('mouseleave',function(e){
			e.stop();
			morphObject.set({
			 'width': w_init,
			 'height': h_init
			});
		});		
	});
	
	//on met les infobulles sur les liens
	var liste_tip= $$('a');
	liste_tip.combine($$('acronym'));
	//pour ie, on supprime les alt des images sinon ie affiche bien l'infobulle fashion avec le title, mais affiche le alt à l'ancienne
	if(ie){
		$$('img').each(function(i){
			i.setProperty('alt','');
		});
	}
	liste_tip.combine($$('img'));

	var myTips = new Tips(liste_tip, {
		offsets: {'x': -5, 'y': 25},
		showDelay: 1000,
		hideDelay: 50,
		className: 'infobulle', //quel classe CSS pour notre petite infobulle
		onShow: function(toolTipElement){
			toolTipElement.fade(1);
		},
		onHide: function(toolTipElement){
			toolTipElement.fade(0);
		}
	});
	
}

window.addEvent('domready',initialize);

