// Procedures globales du projet
function COLPCNAVGFI_HEIGHTMAX(){{var VHW=Getwindowheight();var VHP=PageHauteur();if((VHW>VHP)){return VHW}else {;return VHP}}}
function COLPCNAVGFI_WIDTHMAX(){{var VWW=GetwindowWidth();var VWP=PageLargeur();if((VWW>VWP)){return VWW}else {;return VWP}}}
function COLPCNAVGFI_PCNAVMODIFETATAFFIDELT(VSNOMALIASAFF, VSETAT){{eval((("document.getElementById"+VSNOMALIASAFF)+".style")).display=VSETAT}}
function COLPCNAVGFI_FCNAVETATAFFELTID(VSNOMELTID){{var VNAFFELTID=0;VNAFFELTID=eval((("document.getElementById"+VSNOMELTID)+".style")).display;return VNAFFELTID}}
function COLPCNAVGFI_FCNAVFORMATEIDELT(VPSMAP_INTERVENTIONS){{var VSIDELTFORMATE="";VSIDELTFORMATE=(((clWDEncode.sEncodeCharset(unescape("(\'"))+VPSMAP_INTERVENTIONS)+clWDEncode.sEncodeCharset(unescape("\'")))+")");return VSIDELTFORMATE}}
function COLPCNAVGFI_FCNAVWINDOWHEIGHT(){{var VWINDOWHEIGHT=0;alert(eval("document.documentElement").clientHeight);alert(eval("document.documentElement").clientWidth);alert(eval("document.body").clientHeight);alert(eval("document.body").clientWidth)
alert(eval("document.body").scrollTop);alert(eval("document.body").scrollLeft);if((eval("document.documentElement").clientWidth<1000)){eval("document.body").scrollLeft=0}VWINDOWHEIGHT=eval("document.body").clientHeight
VWINDOWHEIGHT=VWINDOWHEIGHT+eval("document.body").scrollTop;return VWINDOWHEIGHT}}
function Getwindowheight()
{
	var windowHeight=0;
	if (typeof(window.innerHeight)=='number') 
	{ 
		windowHeight=window.innerHeight;
		
		}
	else
	{
		if (document.documentElement&&document.documentElement.clientHeight) 
		{
			windowHeight = document.documentElement.clientHeight;
			}
		else
		{
			if (document.body&&document.body.clientHeight) 
			{
				windowHeight=document.body.clientHeight;
				}
			}
		}
	windowHeight+=document.body.scrollTop;
	return windowHeight;
}

function GetwindowWidth()
{
	var windowWidth=0;
	if (typeof(window.innerWidth)=='number') 
	{ 
		windowWidth=window.innerWidth;
		
		}
	else 
	{
		if (document.documentElement&&document.documentElement.clientWidth) 
		{
			windowWidth = document.documentElement.clientWidth;
			}
		else
		{
			if (document.body&&document.body.clientWidth) 
			{
				windowWidth=document.body.clientWidth;
				}
			}
		}
		
	if (document.body.scrollLeft == 0) 
	{
		document.body.scrollLeft = 300
		if (document.body.scrollLeft == 0) 
		{
			document.body.scrollLeft;//toujours à 0 alors nous sommes en pleine écran
		}
		else
		{	
			windowWidth+=document.body.scrollLeft + 300;
		}
		
	}
	else
	{	
		windowWidth+=document.body.scrollLeft + 300;
	}
	return windowWidth;
}


function PageHauteur()
{
	return document.body.offsetHeight - (document.body.offsetHeight - document.body.scrollHeight);
}


function PageLargeur()
{
	return document.body.offsetWidth - (document.body.offsetWidth - document.body.scrollWidth);
}


