function submenu()
{
	document.getElementById("nav-menu").style.display="inline";	
}

var HideTimerId;
function hideit()
{
	//For bubbling
	clearTimeout(HideTimerId);
	HideTimerId=setTimeout ( "hidesubmenu()", 2000 );
}

function hidesubmenu()
{		
	document.getElementById("nav-menu").style.display="none";				
	var url=String(window.location);	
	if(url.indexOf("diffusion_de_documents")==-1)
	{
		document.getElementById("DDel").src='/common/assets/global_fr/medium_menu_diffusion_de_documents-off.gif'
	}
}



function LoffDdl(lang)
{
	var url=String(window.location);	
	if(url.indexOf("diffusion_de_documents")==-1)
	{
	document.getElementById('DDel').src='/common/assets/global_fr/medium_menu_diffusion_de_documents-off.gif';
	}
}

function lightme(obj,lang,name)
{
	obj.src='/common/assets/global_'+lang+'/medium_menu_'+name+'-on.gif';
}
	
 
 function fl(val,file)
 {
	frmval=document.formular.filestodl.value;	
	if(frmval.indexOf(val)<0)
	{	
		document.formular.filestodl.value=frmval+val;
	}else{
		document.formular.filestodl.value=frmval.replace(val, "");
	}
	
	fileval=document.formular.text_filesdownloaded.value;	
	if(fileval.indexOf(file)<0)
	{	
		document.formular.text_filesdownloaded.value=fileval+file+", ";
	}else{
		document.formular.text_filesdownloaded.value=fileval.replace(file, "");
	}
	
	var strurl=String(document.URL);
  var currentURL;
                                    
  	if(strurl.indexOf("?") >0)
    {
    	 var treturl=strurl.split("?");	
    	 currentURL=treturl[0];
    }else{
       var currentURL=strurl;
    }
    	
  
   
	document.formular._PF_Form_RetURL.value=currentURL+"?dl="+document.formular.filestodl.value
	//document.formular.text_filesdownloaded.value=document.formular.text_filesdownloaded.value+","+file;
 
 }
 
