
/** gestion du bug de centrage si la fenêtre est trop petite pour le site **/
var larg=0;
var haut = 0;
function lcmIfInf1024()
{
	if (self.innerHeight) // all except Explorer
	{
		larg = self.innerWidth;
		haut = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		larg = document.documentElement.clientWidth;
		haut = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		larg = document.body.clientWidth;
		haut = document.body.clientHeight;
	}
}

function lcmWriteFix()
{
	if(larg<1000 || haut <595){
	document.writeln('<style type="text/css">');
	document.writeln('#lcmCenter{');
	document.writeln('width:100%;');
	document.writeln('height:100%;');
	document.writeln('position:absolute;left:0px;top:0px;margin:0;padding:0');
	document.writeln('display:block;}');
	document.writeln('body{');
	document.writeln('background-color:#000;');
	document.writeln('background-repeat:no-repeat;');
	document.writeln('}');
	document.writeln('</style>')
	}
}