//
// Méthodes d'affichage d'un document de la documentation à partir des brochures
//
function AfficherDocumentation(strRefID)
{
	if (strRefID && strRefID !="")
	{
		var strMatch = /\/(\w*)/
		var strpathname = window.location.pathname
		
		// Recherche de path pour aida : premier chemin du path
		var myArray = strMatch.exec(strpathname)
		if (myArray)
		{
			var strAidaRootdir = myArray[1]
		
			var strURL="http://" + window.location.host + "/" + strAidaRootdir + "/Apw.fcgi?";
		//	var strURL="http://" + window.location.host + "/" + strAidaRootdir + "/Apw.cgi?";
		
			// Prendre le premier d'une liste de REF_ID séparés par un espace
			var i = strRefID.indexOf(" ")
			if (i != -1)
			{
				var strRefID2 = strRefID.substr(0,i)
				strRefID = strRefID2
			}
		
			var strVARIABLES = "FILE=FrameDocExt.html&REF_ID=" + strRefID
		
			// Indique le Site d'origin
			strVARIABLES += "&FROM_SITE_EXT=navSiteBrochuresIDL"
		
			var window_Aida = window.open(strURL + strVARIABLES,"SiteAida")
		
			if (window_Aida)
			{
				window_Aida.focus()
			}
		}
	}
};

function MM_OnLoad()
{
	MM_SetToolBarreState("navDoc");
};

// Appelle d'un image dans une page HTML
function MM_OpenImageFile(strFileName)
{
	if (strFileName)
	{
		window.open(strFileName,"ImageView","status=no,location=no,directorie=no,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=700,height=400");	
	}
}

