/*

fonctions de gestion de fenetre
	
*/

var WindowWidth=0;
var WindowHeight=0;
var WindowPosX=0;
var WindowPosY=0;

function WindowGetSize()
	{
	if(typeof(window.innerWidth)=='number')
		{ //Non-IE
		WindowWidth=window.innerWidth;
		WindowHeight=window.innerHeight;
		}
	else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
		{ //IE 6+ in 'standards compliant mode'
		WindowWidth=document.documentElement.clientWidth;
		WindowHeight=document.documentElement.clientHeight;
  		}
	else if(document.body && (document.body.clientWidth || document.body.clientHeight ))
		{ //IE 4 compatible
		WindowWidth=document.body.clientWidth;
		WindowHeight=document.body.clientHeight;
		}
	}

function WindowGetPos()
	{
	if(typeof(window.pageYOffset)=='number')
		{ //Netscape compliant
		WindowPosY=window.pageYOffset;
		WindowPosX=window.pageXOffset;
		}
	else if(document.body && (document.body.scrollLeft || document.body.scrollTop))
		{ //DOM compliant
		WindowPosY=document.body.scrollTop;
		WindowPosX=document.body.scrollLeft;
		}
	else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop))
		{ //IE6 standards compliant mode
		WindowPosY=document.documentElement.scrollTop;
		WindowPosX=document.documentElement.scrollLeft;
		}
	}
