var atn=0;
var hwn
var wwn

var hscr
var wscr

function detnav() {
if (navigator.appName == "Microsoft Internet Explorer") {
	hwn=window.document.body.offsetHeight;
	wwn=window.document.body.offsetWidth;
}
else	{
	hwn=window.innerHeight;
	wwn=window.innerWidth;
}
hscr=screen.availHeight;
wscr=screen.availWidth;
FixeCookie('vnav',navigator.appName);
FixeCookie('vsys',navigator.platform);
FixeCookie('vssz',wscr+"*"+hscr);
FixeCookie('vref',window.document.referrer);
//document.getElementById("val_nav").value=navigator.appName;
//document.getElementById("val_sys").value=navigator.platform;
//document.getElementById("val_screen").value=screen.availWidth+"*"+screen.availHeight;
document.getElementById("val_refer").value=window.document.referrer;
}

function fheight(elem,marg){
if (navigator.appName == "Microsoft Internet Explorer") {
	hwn=window.document.body.offsetHeight;
	wwn=window.document.body.offsetWidth;
}
else	{
	hwn=window.innerHeight;
	wwn=window.innerWidth;
}
hscr=screen.availHeight;
wscr=screen.availWidth;
document.getElementById("vhelem").value=hwn;
document.getElementById("vwelem").value=wwn;
document.getElementById("vwscr").value=wscr;
document.getElementById("vhscr").value=hscr;
document.getElementById("bottom").style.top=hwn-30;
document.getElementById("france").style.top=hwn-30;

if (elem) {
	document.getElementById(elem).style.height=hwn-marg;
	}
}


function rszw()
{
	if ((wscr>930)||(hscr>parseInt(hwn+30)))
	{
		if (wwn<=950) 
		{
		alert ("Pour afficher confortablement ces pages \n nous devons redimensionner votre navigateur.");
		window.resizeTo(960,hscr);
	//	window.moveTo(50,0);
		}
	}
}


function loadswf() {
obfix();
document.getElementById("layswf").load("first_time.swf",900);
}


function cover(name) {
document.getElementById(name).style.visibility="hidden";
}
function see(name) {
document.getElementById(name).style.visibility="visible";
}
function seetable(name,visi) {
document.getElementById(name).style.display=visi;
}
function dislay(name,visi) {
document.getElementById(name).style.display=visi;
}

function prcs(){
	document.getElementById("titre").value="0";
	document.getElementById("desc").value="0";
	document.getElementById("chstr").value="";
	document.getElementById("titre").checked=false;
	document.getElementById("desc").checked=false;
}


function resizePopUp(mpict, mtit, minfo)
{
w = window.open('','chargement','width=10,height=10,top=0,left=0');
w.document.write( "<html><head><title>"+mtit+"</title>\n" );
w.document.write( "<script language='JavaScript'>\n");
w.document.write( "IE5=NN4=NN6=false;\n");
w.document.write( "if(document.all)IE5=true;\n");
w.document.write( "else if(document.getElementById)NN6=true;\n");
w.document.write( "else if(document.layers)NN4=true;\n");
w.document.write( "function autoSize() {\n");
w.document.write( "if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+80);\n");
w.document.write( "else if(NN6) self.sizeToContent();\n");
w.document.write( "else window.resizeTo(document.images[0].width+30,document.images[0].height+30);\n");
w.document.write( "self.focus();\n");
w.document.write( "}\n</scri");
w.document.write( "pt>\n");

w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='javascript:autoSize();'> \n");
w.document.write( "<a href='javascript:window.close();'><img src='"+mpict+"' border=0 alt='cliquer ici pour fermer'></a> \n");
w.document.write( "<div style='position: absolute; width: 200px; left: 2px; top: 2px; height: 20px; z-index: 3; visibility: visible;'>" );
w.document.write( "<table><tr><td><font color='white' face='verdana' size='1'>"+minfo+"</font></td></tr></table></div>" );
w.document.write( "<div style='position: absolute; width: 200px; left: 3px; top: 3px; height: 20px; z-index: 2; visibility: visible;'>" );
w.document.write( "<table><tr><td><font face='verdana' size='1'>"+minfo+"</font></td></tr></table></div>" );
w.document.write( "</body></html>" );
w.document.close();
}


function changeCouleur(cellule,couleurFond) {
cellule.style.backgroundColor = couleurFond;
}

function coverp(name,info) {
document.getElementById(name).style.visibility="hidden";
}

function seep(name,info) {
document.getElementById(name).style.visibility="visible";
document.all.infoprod.innerHTML= info
}

var ww = null;
function popps(page,fenetre,largeur,hauteur,ratt,ratl,options)
{
var top = (screen.height-hauteur-17)/ratt;
var left = (screen.width-largeur-17)/ratl;
ww = window.open(page,fenetre,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
ww.focus();
}
function ferme()
{
if (ww) ww.close();
ww = null;
}

