	var timerID = null;
	var timerOn = false;
	var timecount = 280;

	function showAddWindow( whichLayer , poshaut )
	{  
		var elem, vis;  
		if( document.getElementById ){ // this is the way the standards work    
			elem = document.getElementById( whichLayer );  
		}
		else if( document.all ){ // this is the way old msie versions work      
			elem = document.all[whichLayer];  
		}
		else if( document.layers ){ // this is the way nn4 works    
			elem = document.layers[whichLayer];  
		}
		
		vis = elem.style;  // if the style.display value is blank we try to figure it out here  
						
		vis.display = 'block';
		vis.position = 'relative';
		vis.top = poshaut;
		vis.left = '0px';
		vis.fontfamily='font-family:Arial, Helvetica, sans-serif';
		vis.color='#FFFFFF';
		vis.fontsize='13px';

		var IE6 = false
		
		var strChUserAgent = navigator.userAgent;
		var intSplitStart = strChUserAgent.indexOf("(",0);
		var intSplitEnd = strChUserAgent.indexOf(")",0);
		var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
		if(strChMid.indexOf("MSIE 6") != -1){ 
		vis.top = "0";
		vis.marginTop = poshaut 
		};

	}
		
	function hideAddWindow( whichLayer )
	{  
		var elem, vis;  
		if( document.getElementById ){ // this is the way the standards work    
			elem = document.getElementById( whichLayer );  
		}
		else if( document.all ){ // this is the way old msie versions work      
			elem = document.all[whichLayer];  
		}
		else if( document.layers ){ // this is the way nn4 works    
			elem = document.layers[whichLayer];  
		}
		
		vis = elem.style;  // if the style.display value is blank we try to figure it out here  

		vis.display = 'none';
		vis.position = 'absolute';
		vis.color = 'black';
	}
	
	function chgpage(formulaire)
	{
	if (formulaire.programme.selectedIndex != "0")
	{
	location.href = formulaire.programme.options[formulaire.programme.selectedIndex].value;
	}
	}
	
	
	/** **/
	
	function HideSousMenu() {
	document.getElementById("menuderoulant").style.display = "none";
	}

	function ShowContent(d) {
	document.getElementById(d).style.display = "";
	}
	
	function startTimeSousMenu() {
		if (timerOn == false) {
			timerID=setTimeout( "HideSousMenu()" , timecount);
			timerOn = true;
		}
	}	

	function stopTime() {
		if (timerOn) {
			clearTimeout(timerID);
			timerID = null;
			timerOn = false;
		}
	}