var addEvent = function() {
	if (window.addEventListener) {
		return function(el, type, fn) {
			el.addEventListener(type, fn, false);
		};
	} else if (window.attachEvent) {
		return function(el, type, fn) {
			var f = function() {
				fn.call(el, window.event);
			};
			el.attachEvent('on' + type, f);
		};
	} else {
		return function(el, type, fn) {
			var of = el['on' + type];
			if (typeof of != 'function')
				el['on' + type] = fn.apply(this, arguments);
			else
				el['on' + type] = function() {of.apply(this, arguments); fn.apply(this, arguments);}
		};
	}
}();
function get(id){	return document.getElementById(id);}
function animMenu(){
	var img = get('boule');	
	var a_menu = get('menu').getElementsByTagName('A');	
	var def_height = 14;
	var intervalId;
	for(var i=0; i<a_menu.length; i++)
	{
		a_menu[i].h = ((i+1)*24-10);
		if(a_menu[i].className == "current")
			def_height = a_menu[i].h;		
		addEvent(a_menu[i], "mouseover", function() {
			img.style.height = this.h+"px";
		});
	}
	addEvent(get('menuTop'), "mouseout", function() {
		img.style.height = def_height+"px";
	});
	img.style.height = def_height+"px";	
}
