<!--//
/*/////////////////////////////////////////////////////////////////////////
// - loading-v2.js // version 2.0
///////////////////////////////////////////////////////////////////////////
// - DESCRIPTION
//-------------------------------------------------------------------------
// Loading library: Start, Close and Fix image Bug
///////////////////////////////////////////////////////////////////////////
// - DEPENDENCIES SITE : VC, AVC, SCV, AGINT, AGEXT, DIST
///////////////////////////////////////////////////////////////////////////
// - HISTORY MODIFICATION
//-------------------------------------------------------------------------
// Benoit	16DEC06  Add comment
// ??		00??00   ??
///////////////////////////////////////////////////////////////////////////
// - CONTACT INFO
//-------------------------------------------------------------------------
// Benoit Renaud (benoit at voyagesconstellation.com)
/////////////////////////////////////////////////////////////////////////*/

//////////////////////////////////////////////////////
// Variable IE et NS
// Sert à la détection du navigateur
//////////////////////////////////////////////////////
var IE = (navigator.appName=="Microsoft Internet Explorer" && navigator.userAgent.indexOf("MSIE") != -1 && document.all);
var NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)<="4"&&!document.getElementById);

//////////////////////////////////////////////////////
// function load():
// Sert à lancer le loading
//////////////////////////////////////////////////////
function load(hide_id)
{
	if (document.all||document.getElementById)
	{
		//Display the loading
		if(hide_id && document.getElementById(hide_id))
			document.getElementById(hide_id).style.display = "none";
		
		if(document.getElementById("loading"))
			document.getElementById("loading").style.display = "";
		//Resize
		if(document.getElementById('loadingHeight') && document.getElementById('pHeight'))
		{
			document.getElementById("pHeight").style.display = "none";
			/*
			var bodyHeight = document.getElementById('pHeight').offsetHeight;
			document.getElementById('loadingHeight').height = bodyHeight;
			*/
		}
		//document.body.scroll="no";

		// Turn off scroll bars
		//document.body.style.overflow = "hidden";
		//go to top page
		goTo('#');
		//Change title
		document.title = "Traitement en cours...";
	}
	return true;
}

//////////////////////////////////////////////////////
// function unload():
// Sert à fermer le loading
//////////////////////////////////////////////////////
function unload()
{
	document.getElementById("loading").style.display = "none";
	return true;
}

function fixImgLoad()
{
	// Reload your animated GIF image
	if (document.images && document.loadingImage)
	{
		document.loadingImage.style.display = "";
		document.loadingImage.src = document.loadingImage.src;
	}
}
//-->