		var ua = navigator.userAgent.toLowerCase();
		var Version = parseInt(navigator.appVersion);
		var isIE = ((ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1))? true:false;
		var isIE5 = (isIE && (Version == 4) && (ua.indexOf("msie 5.0")!=-1));
		var isIE55 = (isIE && (Version == 4) && (ua.indexOf("msie 5.5")!=-1));
		var isMac = (navigator.appVersion.indexOf("Mac") != -1);
		var isGecko = (ua.indexOf("gecko") != -1);
		var cobj = null;
		var cobj2 = null;
		var vHeight = 183;//149
		var hWidth = 468; 
		
		function moveleft()
		{
			if (parseInt(cobj2.style.left)>=(cobj2.offsetWidth*(-1)+hWidth)) {cobj2.style.left=parseInt(cobj2.style.left)-2+"px";}
			moveleftvar=setTimeout("moveleft()",20);
		}
		
		function moveright()
		{	
			if (parseInt(cobj2.style.left)<0) {cobj2.style.left=parseInt(cobj2.style.left)+2+"px";}
			moverightvar=setTimeout("moveright()",20);
		}
		
		function movedown()
		{	
			if (parseInt(cobj.style.top)>=(cobj.offsetHeight*(-1)+vHeight)) {cobj.style.top=parseInt(cobj.style.top)-2+"px";}
			movedownvar=setTimeout("movedown()",20);
		}

		function moveup()
		{	
			if (parseInt(cobj.style.top)<0) {cobj.style.top=parseInt(cobj.style.top)+2+"px";}
			moveupvar=setTimeout("moveup()",20);
		}

		function stopscroll()
		{
			if (window.moveupvar) clearTimeout(moveupvar);
			if (window.movedownvar) clearTimeout(movedownvar);
			if (window.moveleftvar) clearTimeout(moveleftvar);
			if (window.moverightvar) clearTimeout(moverightvar);
		}

		function scrollMenu(direction)
		{
			switch (direction)
			{
				case 'up': moveup(cobj); break
				case 'down': movedown(cobj); break
				case 'left': moveleft(cobj2); break
				case 'right': moveright(cobj2); break
				default: alert('unknown direction!');
			}
		}
		
		function initMenu(type)
		{	
			if (type == 'vvmenu') {var obj = (document.getElementById) ? document.getElementById('vvmenu'):document.all.vvmenu;}
			else if (type == 'hhmenu') {var obj = (document.getElementById) ? document.getElementById('hhmenu'):document.all.hhmenu;}
			stopscroll();
			
			var index1;
			var index2;
			
			if (type == 'vvmenu') 
			{	
				index1 = 0;
				index2 = 1;
				
				if (isGecko) 
				{
					index1 = 1;
					index2 = 3;
				}
											
				cobj = obj.childNodes[index1];
				
				cobj.style.top=0+"px";
				
				if (cobj.offsetHeight > vHeight+1) {obj.childNodes[index2].style.display = "block";}
			}
			else if (type == 'hhmenu')
			{
				var index0 = 0;
				index1 = 1;
				index2 = 0;
				var index3 = 2;
				
				if (isGecko || (isMac && isIE)) 
				{
					index0 = 1;
					index1 = 3;
					index2 = 1;
					index3 = 5;
				}
								 
				cobj2 = obj.childNodes[index1].childNodes[index0]; // IE Mac mute -) getById
				
				if (isMac && isIE) eval('obj.childNodes[1].style.margin-Right=\'24px\';');

				// calcul de la taille du tableau pr les fils
				var aLength=1;
				
				/*if (isMac && isIE)
				{
					var tempArrayIEmac = document.getElementsByTagName("div");
					
					for (var i=0; i<tempArrayIEmac.length; i++)
					{
						if (tempArrayIEmac[i].className=="bigContent") aLength+=2;
					}
				}
				else*/ aLength=cobj2.childNodes.length;
				
				var hlength = 0;
				
				for( var i=((isGecko || (isMac && isIE))?1:0); i<aLength; i+=((isGecko || (isMac && isIE))?2:1) ) // childNodes.length n'existe pas sous IE 5.01 MAC
				{
					if (isMac && isIE) 
					{
						cobj2.childNodes[i].style.width = (parseInt(cobj2.childNodes[i].offsetWidth)+((isIE5)?0:6))+"px";
					}
					if (isMac && isIE5) 
					{
						cobj2.childNodes[i].style.marginRight="1px";
						cobj2.childNodes[i].childNodes[1].childNodes[5].style.position="absolute";
						cobj2.childNodes[i].childNodes[1].childNodes[5].style.top="0px";
					}
					hlength += parseInt(cobj2.childNodes[i].offsetWidth);
					hlength += ((!isMac)?15:((isIE5)?1:((isIE)?9:15)));
				}
				
				hlength +=4;
				
				cobj2.style.left=0+"px";
				//cobj2.style.width=hlength+"px";
				
				if (hlength > hWidth) 
				{
					obj.childNodes[index0].style.display = "block"; 
					obj.childNodes[index1].style.width = "439px"; // nouvelle taille limite si ça depasse
					cobj2.style.width=(hlength+17)+"px";
					obj.childNodes[index3].style.display = "block";
				}
			}
	
		} 
		
		function initMenus()
		{
			if (!isMac && isIE5) setTimeout("initMenu('hhmenu')",300);
			else initMenu('hhmenu');
			initMenu('vvmenu');
		}