
/********************************************************************************/
/*                   PARAMETRES DE CONFIGURATION A RENSEIGNER                   */
/********************************************************************************/

/*------------------------------------------------------------------------------*/
/*                     parametres pour la popup d'impression                    */
/*                             fonction "impression()"                          */

var hRefSite="/karine/";
var urlStyles1=hRefSite+"/styles/styles.css";
var urlStyles2=hRefSite+"/styles/xcharte.css";
var paramsPopup="toolbar=yes,location=no,scrollbars=yes,directories=,status=yes,menubar=yes,resizable=yes,width=800,height=600,left=0,top=0";
var url_img_titre = hRefSite + "/images/divers/logos/logo-artistes.gif";

/*-------------   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 -----*/
win=window.open("about:blank", "print", paramsPopup);

win.document.open();

win.document.write('<html><head><title>Portail artistique français</title>');
win.document.write('<link rel="stylesheet" type="text/css" href="' + urlStyles1 + '">');
win.document.write('<link rel="stylesheet" type="text/css" href="' + urlStyles2 + '">');
// ajouter ici si besoin est d'autres feuilles de styles ...

/* style pour l'impression : fond blanc */

win.document.write('</head>');

win.document.write('<body marginheight="0" marginwidth="0" style="background-color:#FFFFFF";>');

win.document.write('<table cellspacing="0" cellpadding="0" width="751" class="table-avec-bordures" >');
win.document.write('<tr>');
win.document.write('<td>');
/*----- affichage du bandeau d'images -----*/
win.document.write('<table border="0" cellspacing="0" cellpadding="0" width="751" class="table-sans-bordures">');
win.document.write('<tr>');
win.document.write('<td width="751"><img border="0" src="' + url_img_titre + '" width="751" height="65"></td>');
win.document.write('</tr>');
win.document.write('</table>');



win.document.write('<table width="751" border="0" cellspacing="0" cellpadding="0" class="table-sans-bordures">');
win.document.write('<tr>');
win.document.write('<td class="Xtextcourant">');

/*-----    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	/* Netscape 4 ou autre navigateur obsolete */ 
  {
    win.close();
    alert("Cette fonctionnalité ne marche pas avec cette version de navigateur.");
  }
  
win.document.write('</td></tr></table>');
win.document.write('</td></tr></table>');
win.document.write('</body></html>');
win.document.close();
}

/*-----------------------------------------------------------------------------------------
fonction JS qui ouvre une popup avec les parametres qu'on lui donne
------------------------------------------------------------------------------------------*/
function MM_openBrWindow(theURL,winName,features) 
{
  window.open(theURL,winName,features);
}