//  Popup script for Images
function PopupImage(img) {
	titre="&copy;  EGYPTEGIDS.BE";
	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">');
      w.document.writeln('// no right click script');
      w.document.writeln('var message="";');
      w.document.writeln('function clickIE() {if (document.all) {(message);return false;}}');
      w.document.writeln('function clickFF(e) {if');
      w.document.writeln('(document.layers||(document.getElementById&&!document.all))');
      w.document.writeln('{');
      w.document.writeln('if (e.which==2||e.which==3) {(message);return false;}}}');
      w.document.writeln('if (document.layers)');
      w.document.writeln('{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickFF;}');
      w.document.writeln('else{document.onmouseup=clickFF;document.oncontextmenu=clickIE;}');
      w.document.writeln('document.oncontextmenu=new Function("return false")');
      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') { 
      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();
}

// no right click script
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickFF(e) {if
(document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickFF;}
else{document.onmouseup=clickFF;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

//no mouse selection
function selection(e)
{ return false; }
function clic()
{ return true; }
document.onselectstart=new Function ("return false");
if (window.sidebar) {
document.onmousedown=selection;
document.onclick=clic;
}
// thumbnail script
function tnSlide(tn,tnpop,tnpos,tnwidth,tntext) {
document.write('<table border="0" cellpadding="0" cellspacing="0" align="'+tnpos+'">');
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>');
}
