<!--

var SPM_COLOR				= "#E2EDFD";
var SPM_COLOR_SUB			= "#E2EDFD";
var SPM_FORECOLOR			= "DarkBlue";
var SPM_HIGHLIGHTCOLOR		= "LightSteelBlue";
var SPM_SHADOWCOLOR			= "Transparent";
var SPM_ICONBACKGROUNDCOLOR = "Transparent";
var SPM_SELECTEDBORDERCOLOR = "Transparent";
var SPM_SELECTEDCOLOR		= "#E2EDFD";
var SPM_SELECTEDFORECOLOR	= "White";
var SPM_MOUSEOVERDISPLAY	= "None";
var SPM_MOUSEOVEREXPAND		= "0";
var SPM_HANDLETRANSITION	= true;
var SPM_DISPLAYVERTICAL		= true;
var SPM_UNIQUEID			= '_ctl0:_ctl2:PageScrollingMenu1';

function spm_doTransition(objMenu) {}
 

	//------ Script Generated by SolpartWebControl Version du 13/09/2002 -------//
		//------ Script Generated by SolpartWebControl -------//
	//------ Constants ------//
	var MOVE_MENU_MOVE_TYPE = "1";
	var MOVE_DIALOG_MOVE_TYPE = "2";
		
	//-- Attributes --//
	var maOpenMenuID = new Array();	

	var miMoveType=null;
	var mbInitialized=false;	
	var m_objMenu = null;
	var fwDHFlag;
	
	var fwHideMenuTimer=null;
	
	//--------------- Event Functions ---------------//
	function mb_cH(e)
	{
		initMenu();
		var objCell = event.srcElement;
		var sID = objCell.id.substr(2);
		
		var objMenu = document.all["tbl" + sID];
		if (objMenu != null)
		{
			if (objMenu.style.display == "")
			{
				hideAllMenus();		
				showElement("SELECT");
			}
			else
			{
				positionMenuH(objMenu, objCell);
				
				handleTransition(objMenu);
				objMenu.style.display = "";
				maOpenMenuID[0] = sID;
				hideElement("SELECT",objMenu);
			}
		}
		window.event.cancelBubble = true;
	}
	
	// OUI
	function showMenu_V()
	{
		FW_clearTimeout();
		hideAllMenus();
		mb_cV(this);
	}

	function showMenu_V_Center()
	{
		FW_clearTimeout();
		hideAllMenus();
		mb_cV_Center(this);
	}
	
	function showMenu_H()
	{
		FW_clearTimeout();
		hideAllMenus();
		mb_cVH(this);
	}	


	// OUI
	function mb_cV(e)
	{
		initMenu();
		var objCell = event.srcElement;
		var sID = objCell.id.substr(2);
		var objCellTD = document.all["tt" + sID];		
		var objMenu = document.all["tbl" + sID];
		if (objMenu != null)
		{
			if (objMenu.style.display == "")
			{
				hideAllMenus();		
				showElement("SELECT");
			}
			else
			{
				positionMenuV(objMenu, objCellTD);
				
				handleTransition(objMenu);
				objMenu.style.display = "";
				maOpenMenuID[0] = sID;
				hideElement("SELECT",objMenu);
			}
		}
		window.event.cancelBubble = true;
	}


	function mb_cV_Center(e)
	{
		initMenu();
		var objCell = event.srcElement;
		var sID = objCell.id.substr(2);
		var objCellTD = document.all["tt" + sID];		
		var objMenu = document.all["tbl" + sID];
		if (objMenu != null)
		{
			if (objMenu.style.display == "")
			{
				hideAllMenus();		
				showElement("SELECT");
			}
			else
			{
				positionMenuV_Center(objMenu, objCellTD);
				
				handleTransition(objMenu);
				objMenu.style.display = "";
				maOpenMenuID[0] = sID;
				hideElement("SELECT",objMenu);
			}
		}
		window.event.cancelBubble = true;
	}

	
	function handleTransition(objMenu)
	{
		if (SPM_HANDLETRANSITION)
			spm_doTransition(objMenu);
	}
	
	// OUI
	function mb_md(e)
	{
		var objCell = event.srcElement;
		applyBorder(objCell, 1, SPM_SHADOWCOLOR, SPM_HIGHLIGHTCOLOR);
	}
	
	// OUI
	function mb_mu(e)
	{
		var objCell = event.srcElement;
		applyBorder(objCell, 1, SPM_HIGHLIGHTCOLOR, SPM_SHADOWCOLOR);
	}
	
	function mb_moH(e)
	{
		initMenu();
		var objCell = event.srcElement;
		var sID = objCell.id.substr(2);
		var objMenu = document.all["tbl" + sID];
		if (maOpenMenuID.length)
		{
			//--- if menu is shown then mouseover triggers the showing of all menus ---//
			hideAllMenus();
			if (objMenu != null)
			{
				positionMenuH(objMenu, objCell);
				handleTransition(objMenu);
				objMenu.style.display = "";
				maOpenMenuID[0] = sID;
				hideElement("SELECT",objMenu);
			}
			applyBorder(objCell, 1, SPM_SHADOWCOLOR, SPM_HIGHLIGHTCOLOR);
		}
		else
		{
			applyBorder(objCell, 1, SPM_HIGHLIGHTCOLOR, SPM_SHADOWCOLOR);
		}
	}
	
	function mb_moV(e)
	{
		initMenu();
		var objCell = event.srcElement;
		var sID = objCell.id.substr(2);
		var objMenu = document.all["tbl" + sID];
		if (maOpenMenuID.length)
		{
			//--- if menu is shown then mouseover triggers the showing of all menus ---//
			hideAllMenus();
			if (objMenu != null)
			{
				positionMenuV(objMenu, objCell);
				handleTransition(objMenu);
				objMenu.style.display = "";
				maOpenMenuID[0] = sID;
				hideElement("SELECT",objMenu);
			}
			applyBorder(objCell, 1, SPM_SHADOWCOLOR, SPM_HIGHLIGHTCOLOR);
		}
		else
		{
			applyBorder(objCell, 1, SPM_HIGHLIGHTCOLOR, SPM_SHADOWCOLOR);
		}
	}

	function mb_moV_Center(e)
	{
		initMenu();
		var objCell = event.srcElement;
		var sID = objCell.id.substr(2);
		var objMenu = document.all["tbl" + sID];
		if (maOpenMenuID.length)
		{
			//--- if menu is shown then mouseover triggers the showing of all menus ---//
			hideAllMenus();
			if (objMenu != null)
			{
				positionMenuV_Center(objMenu, objCell);
				handleTransition(objMenu);
				objMenu.style.display = "";
				maOpenMenuID[0] = sID;
				hideElement("SELECT",objMenu);
			}
			applyBorder(objCell, 1, SPM_SHADOWCOLOR, SPM_HIGHLIGHTCOLOR);
		}
		else
		{
			applyBorder(objCell, 1, SPM_HIGHLIGHTCOLOR, SPM_SHADOWCOLOR);
		}
	}
	
	function mb_mout(e)
	{
		var objCell = event.srcElement;
		var sID = objCell.id.substr(2);
		applyBorder(objCell, 1, SPM_COLOR, SPM_COLOR, "none");	
	}
	
	function mbi_c(e)
	{
		initMenu();
		var objRow = getSourceTR(event.srcElement);
		var sID = objRow.id.substr(2);
		if (itemHasChildren(sID) == false)
		{		
			hideAllMenus();
		}
		window.event.cancelBubble = true;
	}
		
	function FW_clearTimeout()
	{
		if (fwHideMenuTimer) clearTimeout(fwHideMenuTimer);
		fwHideMenuTimer = null;
		fwDHFlag = false;
	}
	
	// OUI
	function FW_startTimeout()
	{
		fwStart = new Date();
		fwDHFlag = true;
		fwHideMenuTimer = setTimeout("hideAllMenus()", 1000);
	}

	function fwDoHide()
	{
		if (!fwDHFlag) return;
		var elapsed = new Date() - fwStart;
		if (elapsed < 500) {
			fwHideMenuTimer = setTimeout("fwDoHide", 510-elapsed);
			return;
		}
		fwDHFlag = false;
		hideAllMenus();
		//window.ActiveMenuItem = 0;
	}
	function mbi_mo(e)
	{	
		handlembi_mo(getSourceTR(event.srcElement));
	}
	function mbi_mout(e)
	{	
		handlembi_mout(getSourceTR(event.srcElement));
	}
	
	function OutSubMenu(e)
	{
		FW_startTimeout();
		mbi_moutsub(e);
	}
	function mbi_moutsub(e)
	{	
		subhandlembi_mout(getSourceTR(event.srcElement));
	}
	
	
	function OverSubMenu()
	{
		FW_clearTimeout();
		mbi_mo(this);
	}
	
	function menuhook_MouseMove(e) 
	{
		var iNewLeft=0, iNewTop = 0
		if ((event.button==1)) {
			hideAllMenus();
			if (m_objMenu.startLeft == null)
				m_objMenu.startLeft = m_objMenu.offsetLeft;
			iNewLeft=event.clientX - m_objMenu.startLeft - 3;
			m_objMenu.style.pixelLeft= iNewLeft;
			if (m_objMenu.startTop == null)
				m_objMenu.startTop = m_objMenu.offsetTop;
			iNewTop=event.clientY - m_objMenu.startTop;
			m_objMenu.style.pixelTop = iNewTop - 10;
			event.returnValue = false
			event.cancelBubble = true
			miMoveType = MOVE_MENU_MOVE_TYPE;
		}
	}
	function menuhook_MouseDown(e)
	{
		m_objMenu = getElement(e, "tblMenuBar");
	}
	function menuhook_MouseUp(e)
	{
		m_objMenu = null;
	}
	function document_MouseMove(e)
	{
		switch(miMoveType)
		{
			case (MOVE_MENU_MOVE_TYPE):
			{
				menuhook_MouseMove(e);
				break;
			}
			case (MOVE_DIALOG_MOVE_TYPE):
			{
				dialoghook_MouseMove(m_objDlg);
				break;
			}
		}
	}
	function document_MouseDown(e)
	{
		miMoveType = null;
	}
	function document_MouseUp(e)
	{
		miMoveType=null;
	}
	function bodyclick()
	{
		hideAllMenus();
	}

	//--------- Internal (private) Functions --------//
	function applyBorder(objCell, iSize, sTopLeftColor, sBottomRightColor, sStyle)
	{
		if (sStyle == null)
			sStyle = "solid";
		if (sTopLeftColor.length && sBottomRightColor.length)
		{
			//objCell.style.borderTop = sStyle + " " + iSize + "px " + sTopLeftColor;
			//objCell.style.borderLeft = sStyle + " " + iSize + "px " + sTopLeftColor;
			//objCell.style.borderRight = sStyle + " " + iSize + "px " + sBottomRightColor;
			////objCell.style.borderBottom = sStyle + " " + iSize + "px " + sBottomRightColor;	
			//objCell.style.borderBottom = "White 1px solid";	
		}
	}
	function applyRowBorder(objRow, iSize, sColor, bSelected, sStyle)
	{
		var sColor2=sColor;
		if (sStyle == null)
			sStyle = "solid";
		if (sColor == "")
		{
			if (bSelected)
				sColor2 = SPM_SELECTEDCOLOR;
			else
				sColor2 = objRow.cells[0].style.backgroundColor;
		}
		objRow.cells[0].style.borderLeft = sStyle + " " + iSize + "px " + sColor2;
		objRow.cells[0].style.borderTop = sStyle + " " + iSize + "px " + sColor2;
		objRow.cells[0].style.borderBottom = sStyle + " " + iSize + "px " + sColor2;
		if (sColor == "")
			sColor2 = objRow.style.backgroundColor;
		objRow.cells[1].style.borderTop = sStyle + " " + iSize + "px " + sColor2;
		objRow.cells[1].style.borderBottom = sStyle + " " + iSize + "px " + sColor2;
		//objRow.cells[2].style.borderRight = sStyle + " " + iSize + "px " + sColor2;
		//objRow.cells[2].style.borderTop = sStyle + " " + iSize + "px " + sColor2;
		//objRow.cells[2].style.borderBottom = sStyle + " " + iSize + "px " + sColor2;
	}
	function elementTop(eSrc)
	{
		var iTop = 0;
		var eParent;
		eParent = eSrc;
		while (eParent.tagName.toUpperCase() != "BODY")
		{
			iTop += eParent.offsetTop;
			eParent = eParent.offsetParent;
		}
		return iTop;
	}
	function elementLeft(eSrc)
	{	
		var iLeft = 0;
		var eParent;
		eParent = eSrc;
		while (eParent.tagName.toUpperCase() != "BODY")
		{
			iLeft += eParent.offsetLeft;
			eParent = eParent.offsetParent;
		}
		return iLeft;
	}

	function getElement(e, sID) 
	{
		var o=e;
		var i=0;
		while (o.id != sID)
		{
			o=o.parentNode;
			i++;
		}
		return o;
	}
	function handleNewItemSelect(sID)
	{
		var i;
		var iNewLength=-1;
		var bDeleteRest=false; 
		for (i=0; i<maOpenMenuID.length; i++)
		{		
			if (bDeleteRest)
			{
				if (document.all["tbl" + maOpenMenuID[i]] != null)
				{
					document.all["tbl" + maOpenMenuID[i]].style.display = "none";
				}			
			}
			if (maOpenMenuID[i] == sID)
			{
				bDeleteRest=true;
				iNewLength = i;
			}				
		}
		if (iNewLength != -1)
			maOpenMenuID.length = iNewLength+1;
	}

	// OUI
	function hideAllMenus()
	{
		var i;
		for (i=0; i<maOpenMenuID.length; i++)
		{		
			if (document.all["tbl" + maOpenMenuID[i]] != null)
			{
				document.all["tbl" + maOpenMenuID[i]].style.display = "none";
			}
		}
		maOpenMenuID.length = 0;
		showElement("SELECT");
	}

	function itemHasChildren(sID)
	{
		objTable = document.all["tbl" + sID];
		if (objTable != null)
		{
			if (objTable.rows != null)
			{
				if (objTable.rows.length > 0)
					return true;
				else
					return false;
			}		
		}
	}
	function getSourceTR(e)
	{
		// modifié par BO le 18/01/2005 ajout + "0"
		while (e.id == "")
		{
			e= e.parentElement;
		}
		//alert("getSourceTR e.id " + e.id)
		if (e.id.indexOf("arrow") != -1)
		{
			var sID = e.id.substr(5);
			//alert("getSourceTR arrow sID " + sID)
			return document.all["tr" + sID];
		}
		else if (e.id.indexOf("td") != -1)
		{
			var sID = e.id.substr(2);
			//alert("getSourceTR td sID " + sID)
			return document.all["tr" + sID];
		}	
		else if (e.id.indexOf("icon") != -1)
		{
			var sID = e.id.substr(4);
			//alert("getSourceTR icon sID " + sID)
			return document.all["tr" + sID];
		}	
		else if (e.id.indexOf("img") != -1)
		{
			var sID = e.id.substr(3);
			//alert("getSourceTR img sID " + sID)
			return document.all["tr" + sID];
		}	
		else
		{
			//alert("getSourceTR e " + e)
			return e;
		}
	}
	function handlembi_mo(objRow)
	{
		var sID = objRow.id.substr(2);
		
		//objRow.style.backgroundColor = SPM_SELECTEDCOLOR;
		objRow.style.color = SPM_SELECTEDFORECOLOR;
		//document.all["icon" + sID].style.backgroundColor = SPM_SELECTEDCOLOR;
		//applyRowBorder(objRow, 1, SPM_SELECTEDBORDERCOLOR, true);
		if (maOpenMenuID.join(',').indexOf(objRow.id.replace('tr', '')) == -1)
		{
			handleNewItemSelect(objRow.parentID);			
			if (document.all["tr" + sID] != null)
			{
				objMenu = document.all["tr" + sID];
				objMenu.style.left = elementLeft(objRow) + objRow.offsetWidth;
				objMenu.style.top = elementTop(objRow);
				handleTransition(objMenu);
				objMenu.style.display = "";
				if (elementLeft(objRow) + objRow.offsetWidth + objMenu.offsetWidth > document.body.clientWidth)
				{
					objMenu.style.left = elementLeft(objRow) - objMenu.offsetWidth;
					objMenu.style.top = elementTop(objRow);					
				}
				maOpenMenuID[maOpenMenuID.length] = sID;
				hideElement("SELECT",objMenu);
			}	
		}
	}
	
	function handlembi_mout(objRow)
	{
			var sID = objRow.id.substr(2);
			objRow.style.backgroundColor = SPM_COLOR;
			objRow.style.color = SPM_FORECOLOR;	
			document.all["td" + sID].style.backgroundColor = SPM_ICONBACKGROUNDCOLOR;
			applyRowBorder(objRow, 1, "", false);
	}
	
	function subhandlembi_mout(objRow)
	{
			//var sID = objRow.id.substr(2);
			//objRow.style.backgroundColor = SPM_COLOR_SUB;
			objRow.style.color = SPM_FORECOLOR;	
			//document.all["icon" + sID].style.backgroundColor = SPM_ICONBACKGROUNDCOLOR;
			//applyRowBorder(objRow, 1, "", false);
	}
		
	function positionMenuH(objMenu, objCell)
	{
			objMenu.style.left = elementLeft(objCell);
			objMenu.style.top = elementTop(objCell) + objCell.offsetHeight;
			objMenu.style.display = "";
			if (elementLeft(objMenu) + objMenu.offsetWidth > document.body.clientWidth)
			{
				objMenu.style.left = document.body.clientWidth - objMenu.offsetWidth;
				objMenu.style.top = elementTop(objCell) + objCell.offsetHeight;
			}
			objMenu.style.display = "none";
	}
	
	function positionMenuV(objMenu, objCell)
	{
			// Commentaire Elise :
			// position du sousmenu au centre du menu ou à droite du menu niveau 1
			// ancien code pour avoir le sousmenu positionné sur le bord droit du menu
			// objMenu.style.left = elementLeft(objCell) + objCell.offsetWidth;
				objMenu.style.left = elementLeft(objCell) + (objCell.offsetWidth/3);
			// Commentaire JiPé :
			// Position du SousMenu dessous le Menu
			// Ancien code pour avoir le SousMenu positionné sur le Menu
			// objMenu.style.top = elementTop(objCell);
			objMenu.style.top = elementTop(objCell) + objCell.offsetHeight;
	}

	function positionMenuV_Center(objMenu, objCell)
	{
			// Commentaire Elise :
			// position du sousmenu au centre du menu ou à droite du menu niveau 1
			// ancien code pour avoir le sousmenu positionné sur le bord droit du menu
			// objMenu.style.left = elementLeft(objCell) + objCell.offsetWidth;
			// Commentaire JiPé
			// SS Menu sous le Menu
				objMenu.style.left = elementLeft(objCell);
			// Commentaire JiPé :
			// Position du SousMenu dessous le Menu
			// Ancien code pour avoir le SousMenu positionné sur le Menu
			// objMenu.style.top = elementTop(objCell);
			objMenu.style.top = elementTop(objCell) + objCell.offsetHeight;
	}		
		
	function hideElement(elmID, eMenu)
	{
		var obj;
		// Hide any element that overlaps with the dropdown menu
		for (i = 0; i < document.all.tags(elmID).length; i++)
		{
			obj = document.all.tags(elmID)[i];
			if (elementTop(obj) > parseInt(eMenu.style.top) + eMenu.offsetHeight)
			{
				//if element is below bottom of menu then do nothing
			}
			else if (elementLeft(obj) > parseInt(eMenu.style.left) + eMenu.offsetWidth)
			{
				//if element is to the right of menu then do nothing
			}
			else if (elementLeft(obj) + obj.offsetWidth < parseInt(eMenu.style.left))
			{
				//if element is to the left of menu then do nothing
			}
			else if (elementTop(obj) + obj.offsetHeight < parseInt(eMenu.style.top))
			{
				//if element is to the top of menu then do nothing
			}
			else
			{
				obj.style.visibility = "hidden";
			}
		}
	}

	function showElement(elmID)
	{
		// Display any element that was hidden
		if (document.all.tags(elmID).length != null)
		{
			for (i = 0; i < document.all.tags(elmID).length; i++)
			{
				obj = document.all.tags(elmID)[i];
				if (! obj || ! obj.offsetParent)
					continue;
				obj.style.visibility = "";
			}
		}
	}

	// OUI
	function initMenu()
	{
		if (mbInitialized == false)
		{	
			document.attachEvent("onmousemove", document_MouseMove);
			document.attachEvent("onmousedown", document_MouseDown);
			document.all.tags("BODY")[0].attachEvent("onclick", bodyclick)
		}	
	}
	//------ End Script Generated by SolpartWebControl -------//