/*
	Centralisation automatique du site en fonction des 
	paramêtres d'affichage du navigateur client. 
	Ver. 1.0 - 06/12/2006 - 21:25
*/

function putEmplacement( x , y )
{
	
	if( document.all ) 	/* IEx */
	{
		var largeur = ident('sizeWindow').offsetWidth;
		var hauteur = ident('sizeWindow').offsetHeight;
	}else{ 			/* FF & W3C */
		var largeur = window.innerWidth;
		var hauteur = window.innerHeight;
	}

	if( largeur > x && hauteur > y )
	{
		ident('cadreSizeWindow').style.position='absolute';
		ident('cadreSizeWindow').style.top='50%';
		ident('cadreSizeWindow').style.left='50%';
		ident('cadreSizeWindow').style.marginTop='-' + ( y/2 ) + 'px';
		ident('cadreSizeWindow').style.marginLeft='-' + ( x/2 ) + 'px';
	}
	else if( largeur > x && hauteur <= y )
	{
		ident('cadreSizeWindow').style.position='absolute';
		ident('cadreSizeWindow').style.top='0';
		ident('cadreSizeWindow').style.left='50%';
		ident('cadreSizeWindow').style.marginLeft='-' + ( x/2 ) + 'px';
	}
	else if( largeur <= x && hauteur > y )
	{
		ident('cadreSizeWindow').style.position='absolute';
		ident('cadreSizeWindow').style.top='50%';
		ident('cadreSizeWindow').style.left='0';
		ident('cadreSizeWindow').style.marginTop='-' + ( y/2 ) + 'px';
	}
	else
	{
		ident('cadreSizeWindow').style.position='absolute';
		ident('cadreSizeWindow').style.top='0';
		ident('cadreSizeWindow').style.left='0';
	}
}