/*
Fonctions Javascript pour Site Internet

Copyright (c) YZEO 2005,2006
Créé le 10/05/2005 par Flavien BUCHETON

Dernière modification le 20/12/2006
*/


//Affiche une image (img) dans un popup
function PopupImage(img) {
	titre="EUROP GROUPE";
	w=open("",'image','top=0,left=200,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+15,document.images[0].height+85); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><a href='javascript:window.close();'><IMG src='"+img+"' border=0></a>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}


//Ouvrir Popup
function OpenFen(page,titre,x,y,w,h){
	var option='top='+x+',left='+y+',width='+w+',height='+h;
  	var w;
	w=window.open(page,titre,option);
	w.focus();
}

function PopupCentrer(page,titre,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/3;
  var left=(screen.width-largeur)/2;
  var w;
  w=window.open(page,titre,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+",menubar=no,scrollbars=no,statusbar=no");
  w.focus();
}

function PopupVisio(page,largeur,hauteur) {
  var top=(screen.height-hauteur)/3;
  var left=(screen.width-largeur)/2;
  var w;
  w=window.open(page,'visionneuse','top='+top+',left='+left+',width='+largeur+',height='+hauteur+',menubar=no,scrollbars=no,status=no');
  w.focus();
}

// option peut etre "menubar=no,scrollbars=no,statusbar=no"
// appel : javascript:PopupCentrer('nompage.htm',520,220,'menubar=no,scrollbars=no,statusbar=no')
