function maximizeWindow() {
 if (parseInt(navigator.appVersion)>3) {
  if (navigator.appName=="Netscape") {
   if (top.screenX>0 || top.screenY>0) top.moveTo(0,0);
   if (top.outerWidth < screen.availWidth)
      top.outerWidth=screen.availWidth;
   if (top.outerHeight < screen.availHeight) 
      top.outerHeight=screen.availHeight;
  }
  else {
   top.moveTo(-4,-4);
   top.resizeTo(screen.availWidth+8,screen.availHeight+8);
  }
 }
}

function pleinEcran(URL,Name) {
	maximizeWindow();
	//opener=self;
	//self.close();
	win=window.open(URL,Name,'toolbar=no,scrollbars=no,resizable=yes');
	win.focus();
}

function promos(URL,Name) {
var largeurFen=400;
var hauteurFen=400;
var xFen=(screen.width-largeurFen)/2;
var yFen=(screen.height-hauteurFen-50)/2;
var Size="width="+largeurFen+",height="+hauteurFen+",screenX="+xFen+",screenY=200,top="+yFen+",left="+xFen;

	prom=window.open(URL,Name,Size);
	prom.focus();
}

function PopupImage(img) {
	titre="...::: Photos/Pictures :::...";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

function tarifs(URL,Name,Size) {
	win=window.open(URL,Name,Size);
	win.focus();
}