//  Popup script for Images
function PopupImage(img) {
	titre="&copy;  OSIRISNET.NET";
	w=open("",'image','left=5,top=5,screenX=5,screenY=5,width=400,height=400,toolbar=no,location=0,scrollbars=yes,resizable=yes');	
	w.document.writeln("<HTML><HEAD><TITLE>"+titre+"</TITLE>");
      w.document.writeln('<script language="JavaScript">');
      w.document.writeln('<!--');
      w.document.writeln('function SymError()');
      w.document.writeln('{ return true; }');
      w.document.writeln('window.onerror = SymError;');
      w.document.writeln('//-->');
      w.document.writeln('</script>');
	w.document.writeln("<SCRIPT language=javascript>function checksize() {if (document.images[0].width+50 > screen.width-10) {sw=screen.width-10} else {sw=document.images[0].width+50}; if (document.images[0].height+50 > screen.height-50) {sh=screen.height-50} else {sh=document.images[0].height+50}; if (document.images[0].complete) { window.resizeTo(sw,sh); window.focus();} else { setTimeout('check()',250) } }");
      w.document.writeln("</SCRIPT>");
      w.document.writeln("</HEAD>");
	w.document.writeln("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
      w.document.writeln("<TABLE width=100% height=100% border=0><tr><td align=center valign=center>");
if (img=='/courriel.gif'||img=='/e_courriel.gif'||img=='/s_courriel.gif'||img=='/g_courriel.gif') { 
      w.document.writeln("<IMG src='"+img+"' border=0>") }
else {w.document.writeln("<IMG src='photo/"+img+"' border=0>") };
      w.document.writeln("</TD></TR></TABLE>");
	w.document.writeln("</BODY></HTML>");
	w.document.close();
}
// thumbnail script
function tnSlide(tn,tnpop,tnpos,tnwidth,tntext) {
document.write('<table border="0" cellpadding="0" cellspacing="0" align="'+tnpos+'">');
document.write('  <tr><td>');
document.write('<table border="0" cellpadding="0" cellspacing="0" align="center">');
document.write('  <tr>');
document.write('    <td background="/luluborder_tl.gif" width="16" height="12"></td><td background="/luluborder_top.gif" width="'+tnwidth+'" height="12"></td><td background="/luluborder_tr.gif" width="16" height="12"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td background="/luluborder_left.gif"></td>');
if (tntext!=null){
 document.write('    <td align="center" class="geneva3black"><a class="vues" href=javascript:PopupImage("'+tnpop+'")><img src="photo/'+tn+'" width="'+tnwidth+'" border="0"></a><br>'+tntext+'</td>')
} else {
 document.write('    <td align="center"><a class="vues" href=javascript:PopupImage("'+tnpop+'")><img src="photo/'+tn+'" width="'+tnwidth+'" border="0"></a></td>')};
document.write('    <td background="/luluborder_right.gif"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td background="/luluborder_bl.gif" width="16" height="16"></td><td background="/luluborder_bot.gif" height="16"></td><td background="/luluborder_br.gif" width="16" height="16"></td>');
document.write('  </tr>');
document.write('</table>');
document.write('  </td></tr>');
document.write('</table>');
}
// dual-geneva3marron script
function dualgeneva3marron(tntext) {
document.write('<table border cols=1 bgcolor="#FFCC00">');
document.write('  <tr>');
document.write('    <td class="geneva3marron">&nbsp;'+tntext+'&nbsp;</td>');
document.write('  </tr>');
document.write('</table>');
}
// thumbnail script 2
function tnSlide2(tn,tnpop,tnpos,tnwidth,tnheight,tntext) {
document.write('<table border="0" cellpadding="0" cellspacing="0" align="'+tnpos+'">');
document.write('  <tr><td>');
document.write('<table border="0" cellpadding="0" cellspacing="0" align="center">');
document.write('  <tr>');
document.write('    <td background="/luluborder_tl.gif" width="16" height="12"></td><td background="/luluborder_top.gif" width="'+tnwidth+'" height="12"></td><td background="/luluborder_tr.gif" width="16" height="12"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td background="/luluborder_left.gif"></td>');
if (tntext!=null){
 document.write('    <td align="center" class="geneva3black"><a class="vues" href=javascript:PopupImage("'+tnpop+'")><img src="photo/'+tn+'" width="'+tnwidth+'" height="'+tnheight+'" border="0"></a><br>'+tntext+'</td>')
} else {
 document.write('    <td align="center"><a class="vues" href=javascript:PopupImage("'+tnpop+'")><img src="photo/'+tn+'" width="'+tnwidth+'" height="'+tnheight+'" border="0"></a></td>')};
document.write('    <td background="/luluborder_right.gif"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td background="/luluborder_bl.gif" width="16" height="16"></td><td background="/luluborder_bot.gif" height="16"></td><td background="/luluborder_br.gif" width="16" height="16"></td>');
document.write('  </tr>');
document.write('</table>');
document.write('  </td></tr>');
document.write('</table>');
}
// dual-geneva3marron script
function dualgeneva3marron(tntext) {
document.write('<table border cols=1 bgcolor="#FFCC00">');
document.write('  <tr>');
document.write('    <td class="geneva3marron">&nbsp;'+tntext+'&nbsp;</td>');
document.write('  </tr>');
document.write('</table>');
}

