/*-----------------   PARAMETRES DE CONFIGURATION A RENSEIGNER   ------------------*/

// images du bandeau de la popup d'impression 
// ex. sur BPC
var hRefSite="./";
var imgGauche=hRefSite+"z-outils/kit-impression/images/imggauche.gif";
var espaceur=hRefSite+"z-outils/kit-impression/images/imgcentre.gif";
var imgDroite=hRefSite+"z-outils/kit-impression/images/imgdroite.gif";

//marche firefox mais pas ie
//var urlStyles="./z-outils/styles/";

var urlStyles="./z-outils/../styles/";



/*-------------   FIN DES PARAMETRES DE CONFIGURATION A RENSEIGNER   --------------*/



/*-----------------------------------------------------------------------------------------
fonction JS qui ouvre une popup et y ecrit un bandeau d'images puis le contenu de la page 
HTML qui l'appelle situe dans la balise DIV dont l'id est "ZonePrint"
------------------------------------------------------------------------------------------*/
function impression()
{

/*----- ouverture de la popup -----*/
stats="toolbar=no,location=no,scrollbars=yes,directories=no,status=no,menubar=yes,resizable=yes,width=650,height=600,left=0,top=0";
win=window.open("about:blank", "print", stats);

win.document.open();

win.document.write('<html><head><title>Marine Planktonic Copepods</title>');
win.document.write('<link rel="stylesheet" type="text/css" href="' + urlStyles + 'xcharte.css">');
win.document.write('<link rel="stylesheet" type="text/css" href="' + urlStyles + 'styles.css">');

win.document.write('</head>');

win.document.write('<body marginheight="0" marginwidth="0">');

/*----- affichage du bandeau d'images -----*/
win.document.write('<table border="0" cellspacing="0" cellpadding="0" width="100%">');
win.document.write('<tr>');
win.document.write('<td width="145" height="66">');
win.document.write('<img src="' + imgGauche + '" width="145" height="66" border="0"></td>');
win.document.write('<td width="100%" height="66">');
win.document.write('<img src="' + espaceur + '" width="100%" height="66" border="0"></td>');
win.document.write('<td width="450" height="66">');
win.document.write('<img src="' + imgDroite + '" width="450" height="66" border="0" usemap="#map"></td>');
win.document.write('</tr>');
win.document.write('<tr>');
/* affichage du contenu a imprimer dans une cellule de tableau */
win.document.write('<td colspan="3" class="Xtextcourant">');
win.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="10">');
win.document.write('<tr>');
win.document.write('<td>');

/*-----    affichage de la zone contenue dans le layer "ZonePrint"     -----*/
/*----- (code dependant de la compatibilite du navigateur avec le DOM) -----*/

if (document.getElementById)  /* IE >= 5 / Netscape >= 6 / Mozilla >= 1.6 / Opera >= 7 */

  win.document.write(document.getElementById("ZonePrint").innerHTML);

else  /* navigateur incompatible avec la methode "getElementById : code specifique */

  if (document.all && !window.print)   /* IE 4 */
    win.document.write(document.all["ZonePrint"].innerHTML);
	
  else	/* Netscape 4 ou autre navigateur obsolete */ 
    {
      win.close();
      alert("Cette fonctionnalité ne marche pas avec cette version de navigateur.");
    }
	
//modif
win.document.write('</td></tr><tr><td>');
//win.document.write('<br>');
//win.document.write('<p align="center" class="intertitre">	 <strong>&copy; copyright 2005-2007 CNRS, UPMC<BR>');
//win.document.write('<FONT size=-1><B>Reproduction prohibited without the agreement of the authors</B></FONT></strong></p>');
win.document.write('<p align="center" class="intertitre">	 </p><p><img src="images/boite-outils/icones/anoter_small.gif" align="absmiddle">&nbsp;Any use of this site for a publication will be mentioned with the following reference :</p>  ');
win.document.write('<p><b>Razouls C.,  de Bov&eacute;e F., Kouwenberg J. et Desreumaux N., 2005-2010. - Diversity and Geographic Distribution of Marine Planktonic Copepods. Available at <a href=\"http://copepodes.obs-banyuls.fr/en\">http://copepodes.obs-banyuls.fr/en</a>&nbsp;</b></p>');
win.document.write('<p>&copy; copyright 2005-2010 CNRS, UPMC</p>');
win.document.write('</td></tr></table>');
//fin modif


//ligne avant modif
//win.document.write('</td></tr></table>');
win.document.write('</td></tr></table>');
/* mapping pour la partie "Fermer la fenetre" de imgDroite */
win.document.write('<map name="map">');
win.document.write('<area shape="rect" coords="251,3,320,25" HREF="javascript:window.print()">');
win.document.write('<area shape="rect" coords="328,5,445,23" HREF="javascript:window.close()">');
win.document.write('</map>');
win.document.write('<div id="divnavhaut-nom-labo">'); 
win.document.write('  <table width="100%" border="0" cellspacing="0" cellpadding="0">');
win.document.write('    <tr>'); 
win.document.write('      <td class="Xnavhaut">'); 
win.document.write('        <p> Marine Planktonic Copepods');
win.document.write('          </p>');
win.document.write('      </td>');
win.document.write('    </tr>');
win.document.write('  </table>');
win.document.write('</div>');

win.document.write('</body></html>');
win.document.close();
}