adjx = 10;
adjy = 30;
ratio = .2;
lamescape=4.75;
function resizer(location,xres,yres) {
	if (document.all) { FlashLayer.style.visibility = 'hidden';} //IE
	else if (document.getElementById) { document.getElementById("FlashLayer").style.visibility = 'hidden'; }// Mozilla/NS6-7/opera
 	else if (document.layers) { document.layers['FlashLayer'].visibility = 'hidden'; }//NS4

  if (navigator.appVersion.indexOf("Mac")!=-1 || (document.layers && parseFloat(navigator.appVersion)<lamescape)) {
		lleft=(screen.availWidth/2)-(xres/2);
    ttop=(screen.availHeight/2)-(yres/2);
		if (document.all) {
			xres-=0;
			yres-=0;
		}
		ww=window.open(location,'devlabc','left='+lleft+',top='+ttop+',width='+(xres)+',height='+(yres+17)+',toolbar=0,status=0,location=0,scrollbars=no');
		window.location="blank.htm";
		return;
  } else if (document.layers) yres+=7;
	xres = xres+adjx;
	yres = yres+adjy;
	location = (location);
	xnew = xresnow+((xres-xresnow)*ratio);
	ynew = yresnow+((yres-yresnow)*ratio);
	setTimeout("resizeIt('"+location+"','"+xres+"','"+yres+"','"+xnew+"','"+ynew+"')",1000);
}
	
function resizeIt(location,xres,yres,xnew,ynew){
	x = xresnow;
	y = yresnow;
  ow=0;
  oh=0;
  if (document.layers) {ow=-window.outerWidth+window.innerWidth+2;oh=-window.outerHeight+window.innerHeight;}
	resizeTo(x+ow,y+oh);
	moveTo(((screen.availWidth/2)-(xresnow/2)),((screen.availHeight/2)-(yresnow/2)));
	xresnow = xresnow+((xres-xresnow)*ratio)
	yresnow = yresnow+((yres-yresnow)*ratio)
	if (((xresnow-xres) <= .5)&&((xresnow-xres) >= -.5)) {  xnew=Math.floor(xres); ynew=Math.floor(yres); resizeTo(xnew+ow,ynew+oh);}		
	if (xnew != xres) setTimeout("resizeIt('"+location+"','"+xres+"','"+yres+"','"+xnew+"','"+ynew+"')",10);
	else window.location = (location);
}
	
function home(location,xres,yres){
	//xres = 600+adjx;
	//yres = 400+adjy;
  if (navigator.appVersion.indexOf("Mac")!=-1 || (document.layers && parseFloat(navigator.appVersion)<lamescape)) {
    window.close();
    return;
  } else if (document.layers) {
		yres+=7;
	}
	if (document.all) { FlashLayer.style.visibility = 'hidden';} //IE
	else if (document.getElementById) { document.getElementById("FlashLayer").style.visibility = 'hidden'; }// Mozilla/NS6-7/opera
 	else if (document.layers) { document.layers['FlashLayer'].visibility = 'hidden'; }//NS4

	xnew = xresnow+((xres-xresnow)*ratio);
	ynew = yresnow+((yres-yresnow)*ratio);
	
	setTimeout("resizeIt('"+location+"','"+xres+"','"+yres+"','"+xnew+"','"+ynew+"')",100);

}

//si la fenêtre n'a pas de nom (i.e. n'a pas été ouverte par popup) alors recharger la home page du site
function gotohomepage() {
if (window.name == 0 ) parent.location.href="default.htm";
}
