// FONCTIONS JAVASCRIPT POUR SITE PASCALE CHAVONNET - Manu Puig Fecit Aout 2003

// Affichage Informations
function pop_info(idx)
{
  var tx="UNK";
  var wh=520; // hauteur fenetre
  var ww=720; // largeur fenetre

  if (idx=="GRA") {tx = "pop_gra_fs.htm"};
  if (idx=="QUI") {tx = "pop_qui.htm"; ww=800; wh=800;};
  if (idx=="COA") {tx = "pop_coa_fs.htm"};
  if (idx=="MBT") {tx = "pop_mbt_fs.htm"};
  if (idx=="REF") {tx = "pop_ref.htm"};
  if (idx=="PLA") {tx = "pop_plaquette.htm"; ww=600; wh=470;};

  if (tx=="UNK") {
  	alert("Problème fonction pop_info dans commun.js\n\nCode entré : " + idx);
	return;
	}

  etat="toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+ ww+",height="+wh;
  fpop=window.open(tx,"fpop",etat);

// si version = 4, positionnement de la fenetre //
if ( parseInt(navigator.appVersion) >= 4 ){ 
	var haut = (screen.availHeight - wh)/2; 
	var larg = (screen.availWidth - ww)/2;
	fpop.moveTo(larg, haut);
	fpop.focus();}
}

// Affichage Fichier Acrobat
function pop_pdf()
{
  var tx="plaquette.pdf";
  var wh=520; // hauteur fenetre
  var ww=720; // largeur fenetre

  etat="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width="+ ww+",height="+wh;

  fpop_pdf=window.open(tx,"fpop_pdf",etat);

// si version = 4, positionnement de la fenetre //
if ( parseInt(navigator.appVersion) >= 4 ){ 
	var haut = (screen.availHeight - wh)/2; 
	var larg = (screen.availWidth - ww)/2;
	fpop_pdf.moveTo(larg, haut);
	fpop_pdf.focus();}
}

