function showCadreForImage(image,path)
{
/*
document.write('<TABLE cellpadding=0 cellspacing=0>');
document.write('    <tr>');
document.write('        <td background="'+path+'a.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'b.gif" height=17></td>');
document.write('        <td background="'+path+'c.gif" width=17 height=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'d.gif" width=17></td>');
document.write('        <td background="'+path+'ee.gif">');
*/
document.write('<img class="imgimage" src="'+image+'">');
/*
document.write('        </td>');
document.write('        <td background="'+path+'e.gif" width=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'f.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'g.gif" height=17></td>');
document.write('        <td background="'+path+'h.gif" width=17 height=17></td>');
document.write('    </tr>');    
document.write('</table>');
*/
}


/* LES TITRES*/
function showCadreForTitle(texte,largeur,path,cssstyle)
{
if (cssstyle='')
  cssstyle='titre';

document.write('<table cellpadding=0 cellspacing=0><tr><td>');
if (largeur>0) 
   document.write('<TABLE cellpadding=0 cellspacing=0 width='+largeur+'>')
   else
   document.write('<table border=0 cellspacing=0 cellpadding=0');
document.write('    <tr>');
document.write('        <td background="'+path+'a.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'b.gif" height=17></td>');
document.write('        <td background="'+path+'c.gif" width=17 height=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'d.gif" width=17></td>');
document.write('        <td background="'+path+'ee.gif" class="titre" align="center">');
document.write(texte);
document.write('        </td>');
document.write('        <td background="'+path+'e.gif" width=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'f.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'g.gif" height=17></td>');
document.write('        <td background="'+path+'h.gif" width=17 height=17></td>');
document.write('    </tr>');    
document.write('</table>');
document.write('</td></tr></table>');
}
function showCadreForTitleCSS(texte,largeur,path,cssstyle)
{
document.write('<table cellpadding=0 cellspacing=0><tr><td>');
if (largeur>0) 
   document.write('<TABLE cellpadding=0 cellspacing=0 width='+largeur+'>')
   else
   document.write('<table border=0 cellspacing=0 cellpadding=0');
document.write('    <tr>');
document.write('        <td background="'+path+'a.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'b.gif" height=17></td>');
document.write('        <td background="'+path+'c.gif" width=17 height=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'d.gif" width=17></td>');
document.write('        <td background="'+path+'ee.gif" class="'+cssstyle+'" align="center">');
document.write(texte);
document.write('        </td>');
document.write('        <td background="'+path+'e.gif" width=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'f.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'g.gif" height=17></td>');
document.write('        <td background="'+path+'h.gif" width=17 height=17></td>');
document.write('    </tr>');    
document.write('</table>');
document.write('</td></tr></table>');
}



function showCadreForURLForTitle(texte,url,OpenNewWindows,path)
{
document.write('<table cellpadding=0 cellspacing=0><tr><td>');
document.write('<table border=0 cellspacing=0 cellpadding=0');
document.write('    <tr>');
document.write('        <td background="'+path+'a.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'b.gif" height=17></td>');
document.write('        <td background="'+path+'c.gif" width=17 height=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'d.gif" width=17></td>');
document.write('        <td background="'+path+'ee.gif" class="titre" align="center">');
document.write('<a class="titre" href="'+url+'"> '+texte+'</a>');
document.write('        </td>');
document.write('        <td background="'+path+'e.gif" width=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'f.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'g.gif" height=17></td>');
document.write('        <td background="'+path+'h.gif" width=17 height=17></td>');
document.write('    </tr>');    
document.write('</table>');
document.write('</td></tr></table>');
}

function showCadreForURLForCloseWindows(texte,path)
{
document.write('<table border=0 cellspacing=0 cellpadding=0');
document.write('    <tr>');
document.write('        <td background="'+path+'a.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'b.gif" height=17></td>');
document.write('        <td background="'+path+'c.gif" width=17 height=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'d.gif" width=17></td>');
document.write('        <td background="'+path+'ee.gif" class="titre" align="center">');
document.write('<a class="titre"  href="javascript:window.close()"> '+texte+'</a>');
document.write('        </td>');
document.write('        <td background="'+path+'e.gif" width=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'f.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'g.gif" height=17></td>');
document.write('        <td background="'+path+'h.gif" width=17 height=17></td>');
document.write('    </tr>');    
document.write('</table>');
}


function showCadreForURL(texte,url,OpenNewWindows,path)
{
document.write('<table cellpadding=0 cellspacing=0><tr><td>');
document.write('<table border=0 cellspacing=0 cellpadding=0');
document.write('    <tr>');
document.write('        <td background="'+path+'a.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'b.gif" height=17></td>');
document.write('        <td background="'+path+'c.gif" width=17 height=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'d.gif" width=17></td>');
document.write('        <td background="'+path+'ee.gif" class="titre" align="center">');
if (OpenNewWindows=="true")  
	document.write('<center><a target="_blank" href="'+url+'"> '+texte+'</a></center>')
	else
	document.write('<center><a href="'+url+'"> '+texte+'</a></center>');
document.write('        </td>');
document.write('        <td background="'+path+'e.gif" width=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'f.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'g.gif" height=17></td>');
document.write('        <td background="'+path+'h.gif" width=17 height=17></td>');
document.write('    </tr>');    
document.write('</table>');
document.write('</td></tr></table>');
}



/////////////////// SANS TAB //////////////////////////////////////////////
function showCadreForTexteTop(path)
{
document.write('<TABLE cellpadding=0 cellspacing=0><tr><td>');
document.write('<TABLE cellpadding=0 cellspacing=0>');
document.write('    <tr>');
document.write('        <td background="'+path+'a.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'b.gif" height=17></td>');
document.write('        <td background="'+path+'c.gif" width=17 height=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'d.gif" width=17></td>');
document.write('        <td background="'+path+'ee.gif">');
}
function showCadreForTexteBottom(path)
{
document.write('        </td>');
document.write('        <td background="'+path+'e.gif" width=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'f.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'g.gif" height=17></td>');
document.write('        <td background="'+path+'h.gif" width=17 height=17></td>');
document.write('    </tr>');    
document.write('</table>');
document.write('</td></tr></table>');
}


//////////////// AVEC TAB //////////////////////////////////////////////
function showCadreWithTabForTexteTop(title,largeurTableau,largeurTab,path,attribut)
{
WidthTab= largeurTab ;
WidthTabReste = largeurTableau - 66;

document.write('<TABLE cellpadding=0 cellspacing=0><tr><td>');
document.write('<TABLE cellpadding=0 cellspacing=0>');
document.write('    <tr>');
document.write('        <td background="'+path+'title_left.gif" width=33 height=37></td>');
document.write('        <td background="'+path+'title_middle.gif" class="text" width='+WidthTabReste+' height=37 align="center">'+title+'</td>');
document.write('        <td background="'+path+'title_right.gif" width=33 height=37></td>');
document.write('    </tr>');
document.write('</table>');
document.write('<TABLE cellpadding=0 cellspacing=0 width='+largeurTableau+'>');
document.write('    <tr>');
document.write('        <td background="'+path+'d.gif" width=17></td>');
if (attribut==null) 
   document.write('        <td background="'+path+'ee.gif"  align="center">')
   else
   document.write('        <td background="'+path+'ee.gif"  align="'+attribut+'">')
}
function showCadreWithTabForTexteBottom(path)
{
document.write('        </td>');
document.write('        <td background="'+path+'e.gif" width=17></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('        <td background="'+path+'f.gif" width=17 height=17></td>');
document.write('        <td background="'+path+'g.gif" height=17></td>');
document.write('        <td background="'+path+'h.gif" width=17 height=17></td>');
document.write('    </tr>');    
document.write('</table>');
document.write('</td></tr></table>');
}



function VersionNav(Netscape, Explorer)
 {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
 }

 function openmypage(page)
 {
  w = screen.width-50;
  h=screen.height-50;

  l = (screen.width-20 - w) / 2;
  t = (screen.height-35 - h) / 2;

  features = "width="+w+",height="+h+",left="+l+",top="+t;
  features += ",screenX="+l+",screenY="+t;
  features += ",scrollbars=1,resizable=1,location=0";
  features += ",menubar=0,toolbar=0,status=0";

  window.open(page, Math.round(Math.random()*1000), features);
}



function openmyimage(pFileName, pTitle,pCaption,path)
{
  w = screen.width-50;
  h=screen.height-50;

  l = (screen.width-20 - w) / 2;
  t = (screen.height-35 - h) / 2;

  features = "width="+w+",height="+h+",left="+l+",top="+t;
  features += ",screenX="+l+",screenY="+t;
  features += ",scrollbars=1,resizable=1,location=0";
  features += ",menubar=0,toolbar=0,status=0";

// specify window parameters
 photoWin = window.open( "", "Photo", features);

photoWin .document.open();

  photoWin.document.write('<html><head>');	
  photoWin.document.write('<title>' + pTitle + '</title>');
  photoWin.document.write('<LINK REL=StyleSheet TYPE="text/css" HREF="'+path+'styles.css">');
//  photoWin.document.write('<script type="text/javascript" src="'+path+'external.js"></script>');
  photoWin.document.write('</head>');
  photoWin.document.write('<BODY>');
  photoWin.document.write('<center>');
  photoWin.document.write('<b>' + pCaption + '</b><br><br>');

//  photoWin.document.write('<script>showCadreForTexteTop("'+path+'");</script>');
//  photoWin.document.write('<script>showCadreForImage("'+pFileName+'","'+path+'")</script>');
//  photoWin.document.write('<script>showCadreForTexteBottom("'+path+'");</script>');

 photoWin.document.write('<img border=2 src="'+pFileName+'">');

  photoWin.document.write("<br><br>");
  photoWin.document.write('Photo de Luc Bellavance<br><br>');

//  photoWin.document.write('<script>showCadreForURLForCloseWindows("Fermer","'+path+'");</script><br>');

  photoWin.document.write('<A href="javascript:window.close()">Fermer</A>');

  photoWin.document.write('</center></body></html>');


  photoWin.document.close();	

	
}
