// --------------------------------------------------------------------------------------

function go(strUrl, strTarget) {

	if (window.top.LogoFrame.isLoaded != null)
	{
		window.top.LogoFrame.loadImage();
	}
	
	// --- Gestion du déplacement ---
	if (strTarget != '')
	{
		var target = eval(strTarget);
	
	    if (document.Images)
	        target.location.replace(strUrl);
	    else
	        target.location.href = strUrl;
	}
	else
	{
	    if (document.Images)
	        window.location.replace(strUrl);
	    else
	        window.location.href = strUrl;
	}

}

function goWithoutLoading(strUrl, strTarget) {

	// --- Gestion du déplacement ---
	if (strTarget != '')
	{
		var target = eval(strTarget);
	
	    if (document.Images)
	        target.location.replace(strUrl);
	    else
	        target.location.href = strUrl;
	}
	else
	{
	    if (document.Images)
	        window.location.replace(strUrl);
	    else
	        window.location.href = strUrl;
	}

}


// --------------------------------------------------------------------------------------

function ShowHideBloc(idBloc)
{

	if (document.getElementById("Bloc" + idBloc.toString()).style.display == "")
	{
		document.getElementById("Bloc" + idBloc.toString()).style.display = "none";
		document.getElementById("Picto" + idBloc.toString()).src = "../Images/Menu_ArrowDown.gif";
	}
	else
	{
		document.getElementById("Bloc" + idBloc.toString()).style.display = "";
		document.getElementById("Picto" + idBloc.toString()).src = "../Images/Menu_ArrowUp.gif";
	}
}

// --------------------------------------------------------------------------------------

function ShowBloc(idBloc)
{
	if (document.getElementById("Bloc" + idBloc.toString()).style.display == "none")
	{
		document.getElementById("Bloc" + idBloc.toString()).style.display = "";
		document.getElementById("Picto" + idBloc.toString()).src = "../Images/Menu_ArrowUp.gif";
	}
}

// --------------------------------------------------------------------------------------

function HideBloc(idBloc)
{
	if (document.getElementById("Bloc" + idBloc.toString()).style.display == "")
	{
		document.getElementById("Bloc" + idBloc.toString()).style.display = "none";
		document.getElementById("Picto" + idBloc.toString()).src = "../Images/Menu_ArrowDown.gif";
	}
}


// --------------------------------------------------------------------------------------
function popup(strHTMLfile, lngWidth, lngHeight, lngTop, lngLeft, blnScroll, blnResize, strPopName) {
	var truc;
	strParam = 'width='+lngWidth+',height='+lngHeight+',top='+lngTop+',left='+lngLeft+',scrollbars='+blnScroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable='+blnResize;
	truc=window.open(strHTMLfile, strPopName, strParam);
}

// --------------------------------------------------------------------------------------
function popupTopModal(strHTMLfile, lngWidth, lngHeight, lngTop, lngLeft, blnScroll, blnResize, strPopName) {
	var truc;
	strParam = 'dialogWidth:'+lngWidth+'px;dialogHeight:'+lngHeight+'px;dialogTop:'+lngTop+'px;dialogLeft:'+lngLeft+'px;dialogHide:no;edge:sunken;help:no;scroll:'+blnScroll+';status:no;unadorned:no;resizable:'+blnResize;
	truc=window.showModelessDialog(strHTMLfile,"",strParam);
}

// --------------------------------------------------------------------------------------
function popupFullScreen(strHTMLfile, blnScroll, strPopName) {
	var truc;
	strParam = 'scrollbars='+blnScroll+',fullscreen=yes';
	truc=window.open(strHTMLfile, strPopName, strParam);
}

// --------------------------------------------------------------------------------------

function setWaitMouseCursor() 
{ 
	if (document.all)
		for (var i=0;i<document.all.length;i++) document.all(i).style.cursor = 'wait'; 
}

function setNormalMouseCursor() 
{ 
	if (document.all)
		for (var i=0;i<document.all.length;i++) document.all(i).style.cursor = 'default'; 
}
