// WebCT95 
//
// Copyright (C) 2003 Conseil Général du Val d'Oise. All Rights
// Reserved.
//
// Developed by IDEALX S.A.S. and Bull S.A. 
//

function loadMenus(menuIds,widthName) {
    if (menuIds != null) 
	{
		if (document.getElementById && document.styleSheets) 
		{
			for (var i = 0; i < menuIds.length; i++) 
			{
				if (document.getElementById(menuIds[i]) != null) 
				{
					with (document.getElementById(menuIds[i]).style) 
					{
						visibility = "hidden";
						position = "absolute";
						left = positionMatrix[i][0];
						top = positionMatrix[i][1];
						switch (widthName) 
						{
							case 'small':
								width = "12em";
								break;
							
							case 'medium':
								width = "14em";
								break;
							
							case 'large':
								width = "28em";
								break;
								
							default:
								break;
						}
						margin = "0";
						padding = "0";
						zIndex = "3";
					}
				}
			}
		}
	}
}

function hideMenus(menuIds) {
    if (menuIds != null) 
	{
		if (document.getElementById && document.styleSheets) 
		{
		    for (var i = 0; i < menuIds.length; i++) 
			{
				if (document.getElementById(menuIds[i]) != null) 
				{
					with (document.getElementById(menuIds[i]).style) 
					{
						visibility = "hidden";
					}
				}
			}
		}
    }
}

function showMenu(subMenuId, menuIds) {  
	if (subMenuId != null) 
	{
		if (menuIds != null) 
		{
			if (document.getElementById && document.styleSheets) 
			{
				hideMenus(menuIds);
				if (document.getElementById(subMenuId) != null) 
				{
				    with (document.getElementById(subMenuId).style) 
					{
						visibility = "visible";
					}
				}
			}
		}
    }
}


/*
	cette fonction permet d'appeler des pages depuis flash
*/
function popup(theURL,winName,features) { 
  window.open(theURL,winName,features);
}


    
