<!--Copyright

var message="Function disabled.\nThe page is copyrighted\n© Haïm Melca - 2007 "; 

function click(e) 
{
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> 

//  Full Screen Window Opener Script- © Dynamic Drive (www.dynamicdrive.com)
function fullwin(){
window.open("#","","fullscreen,scrollbars")
}


/***********************************************
* Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for this script and 100's more.
***********************************************/

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}

<!-- Highlight NEW content.html

function checknew(date) {
  var newimg = "tools/smallnew.gif border=0";
  var expdate = new Date(date);
  var curdate = new Date();
  if (expdate.getTime() > curdate.getTime())
  {
    document.write('<img src=' + newimg + '>' + " " +'<div class="headline-new">');
  }
  else
  {
    document.write('<div class="headline">');
  }
}


<!-- Highlight UPDATED content.html

function checkupdated(date) {
  var newimg = "tools/updated.gif border=0";
  var expdate = new Date(date);
  var curdate = new Date();
  if (expdate.getTime() > curdate.getTime())
  {
    document.write('<img src=' + newimg + '>' + " " +'<div class="headline-new">');
  }
  else
  {
    document.write('<div class="headline">');
  }
}

<!-- Popup Window Generator NO options

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->

<!-- POPUP IMAGE Les Arts à Mogador

function PopupArts(img) {
	titre="Les Arts à Mogador";
	w=open("",'image','width=1200,height=1000, scrollbars=no,status=no,toolbar=no,menubar=no,location=no,resizable=yes');
	w.document.write("<HTML><HEAD><TITLE> "+titre+"</TITLE><META HTTP-EQUIV='imagetoolbar' CONTENT='no'></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  	window.resizeTo(document.images[0].width+40,document.images[0].height+100); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<LINK href='mogador.css' rel=stylesheet>");
	w.document.write("<BODY onload='checksize()' oncontextmenu='return(false)'><IMG src=' "+img+" ' border=0 onload=this.style.filter='progid:DXImageTransform.Microsoft.Shadow(color=#2E2424,direction=135,strength=6)'>");
	w.document.write("<div align='center'><INPUT TYPE='button' NAME='Close Window' VALUE='Fermer' onClick='self.close()' style='background: #947B4A; color: #EEE9D6; font-size: 1em'></div>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}


<!-- POPUP IMAGE Album souvenir pour photos avec liste

function PopupImage(img) {
	titre="Album souvenir";
	w=open("",'image','width=1500,height=1000, scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,resizable=yes');
	w.document.write("<HTML><HEAD><TITLE> "+titre+"</TITLE><META HTTP-EQUIV='imagetoolbar' CONTENT='no'></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  	window.resizeTo(document.images[0].width+40,document.images[0].height+100); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<LINK href='mogador.css' rel=stylesheet>");
	w.document.write("<BODY onload='checksize()' oncontextmenu='return(false)'><IMG src=' "+img+" ' border=0 onload=this.style.filter='progid:DXImageTransform.Microsoft.Shadow(color=#2E2424,direction=135,strength=6)'>");
	w.document.write("<div align='center'><INPUT TYPE='button' NAME='Close Window' VALUE='Fermer' onClick='self.close()' style='background: #947B4A; color: #EEE9D6; font-size: 1em'></div>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

<!-- POPUP IMAGE Album souvenir pour photos SANS liste et avec accès au formulaire

function PopupPhoto(img) {
	titre="Album souvenir";
	w=open("",'image','width=1500,height=1000, scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,resizable=yes');
	w.document.write("<HTML><HEAD><TITLE> "+titre+"</TITLE><META HTTP-EQUIV='imagetoolbar' CONTENT='no'></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  	window.resizeTo(document.images[0].width+40,document.images[0].height+100); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<LINK href='mogador.css' rel=stylesheet>");
	w.document.write("<BODY onload='checksize()' oncontextmenu='return(false)'><IMG src=' "+img+" ' border=0 onload=this.style.filter='progid:DXImageTransform.Microsoft.Shadow(color=#2E2424,direction=135,strength=6)'>");
	w.document.write("<h6><center>Si vous identifiez une personne merci d'envoyer un <b><i><a href=mailto:classes@melca.info>courriel</a></i></b>.<br>Les personnes reconnues seront ordonnées de <b><i>haut en bas</i></b> et de <b><i>gauche à droite</i></b>.</h6></center>");
	w.document.write("<div align='center'><INPUT TYPE='button' NAME='Close Window' VALUE='Fermer' onClick='self.close()' style='background: #947B4A; color: #EEE9D6; font-size: 1em'></div>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}


<!-- POPUP KETUBAH Les Ketoubot de la famille

function PopKetuba(img) {
	titre="Les Ketoubot de la famille";
	w=open("",'image','width=1500,height=1000, scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,resizable=yes');
	w.document.write("<HTML><HEAD><TITLE> "+titre+"</TITLE><META HTTP-EQUIV='imagetoolbar' CONTENT='no'></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  	window.resizeTo(document.images[0].width+40,document.images[0].height+100); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<LINK href='judaica.css' rel=stylesheet>");
	w.document.write("<BODY onload='checksize()' oncontextmenu='return(false)'><IMG src=' "+img+" ' border=0 onload=this.style.filter='progid:DXImageTransform.Microsoft.Shadow(color=#2E2424,direction=135,strength=6)'>");
	w.document.write("<div align='center'><INPUT TYPE='button' NAME='Close Window' VALUE='Fermer' onClick='self.close()' style='background: #947B4A; color: #EEE9D6; font-size: 1em'></div>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}


<!-- POPUP IMAGE 

function PopupTribunal(img) {
	titre="Tribunal Rabbinique Mogador";
	w=open("",'image','width=0,height=0, scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,resizable=yes');
	w.document.write("<HTML><HEAD><TITLE> "+titre+"</TITLE><META HTTP-EQUIV='imagetoolbar' CONTENT='no'></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  	window.resizeTo(document.images[0].width+40,document.images[0].height+100); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<LINK href='../mogador.css' rel=stylesheet>");
	w.document.write("<BODY onload='checksize()' oncontextmenu='return(false)'><IMG src=' "+img+" ' border=0 >");
	w.document.write("<div align='left'><i>(Tribunal Rabbinique Mogador)</i></div><div align='center'><INPUT TYPE='button' NAME='Close Window' VALUE='Fermer' onClick='self.close()' style='background: #947B4A; color: #EEE9D6; font-size: 1em'><br><br></div>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}


// CLOSE WITH IMAGE -----------------------------------------------------------------------------

//     w.document.write("<center><a href='javascript:self.close();'><IMG SRC='tools/next.jpg' BORDER=0 ></a></center>");


<!-- STATUS BAR-->

 window.defaultStatus='Copyright © Haïm Melca - 2007';


//   openWindow -----------------------------------------------------------------------------

function openWin(url,name) {popupWin = window.open(url,name, "scrollbars");
}


//   -----------------------------------------------------------------------------

// FAUSSE POP-UP
// AUTHOR: BRIAN GOSSELIN OF HTTP://SCRIPTASYLUM.COM
// SCRIPT EDITEUR SUR L'EDITEUR JAVASCRIPT
// http://www.editeurjavascript.com

var IE5=(document.getElementById && document.all)? true : false;
var W3C=(document.getElementById)? true: false;
var currIDb=null, currIDs=null, xoff=0, yoff=0; zctr=0; totz=0;

function trackmouse(evt){
if((currIDb!=null) && (currIDs!=null)){
var x=(IE5)? event.clientX+document.body.scrollLeft : evt.pageX;
var y=(IE5)? event.clientY+document.body.scrollTop : evt.pageY;
currIDb.style.left=x+xoff+'px';
currIDs.style.left=x+xoff+10+'px';
currIDb.style.top=y+yoff+'px';
currIDs.style.top=y+yoff+10+'px';
return false;
}}

function stopdrag(){
currIDb=null;
currIDs=null;
NS6bugfix();
}

function grab_id(evt){
xoff=parseInt(this.IDb.style.left)-((IE5)? event.clientX+document.body.scrollLeft : evt.pageX);
yoff=parseInt(this.IDb.style.top)-((IE5)? event.clientY+document.body.scrollTop : evt.pageY);
currIDb=this.IDb;
currIDs=this.IDs;
}

function NS6bugfix(){
if(!IE5){
self.resizeBy(0,1);
self.resizeBy(0,-1);
}}

function incrzindex(){
zctr=zctr+2;
this.subb.style.zIndex=zctr;
this.subs.style.zIndex=zctr-1;
}

function createPopup(id, title, width, height, x , y , isdraggable, boxcolor, barcolor, shadowcolor, text, textcolor, textptsize, textfamily, titlecolor ){
if(W3C){
zctr+=2;
totz=zctr;
var txt='';
txt+='<div id="'+id+'_s" style="position:absolute; left:'+(x+10)+'px; top:'+(y+10)+'px; width:'+width+'px; height:'+height+'px; background-color:'+shadowcolor+'; filter:alpha(opacity=50); visibility:visible"> </div>';
txt+='<div id="'+id+'_b" style="border:outset '+barcolor+' 2px; position:absolute; left:'+x+'px; top:'+y+'px; width:'+width+'px; overflow:hidden; height:'+height+'px; background-color:'+boxcolor+'; visibility:visible">';
txt+='<div style="width:'+width+'px; height:16px; background-color:'+barcolor+'; padding:0px; border:1px"><table cellpadding="0" cellspacing="0" border="0" width="'+(IE5? width-4 : width)+'"><tr><td width="'+(width-20)+'"><div id="'+id+'_h" style="width:'+(width-20)+'px; height:14px; font: bold 12px Arial; color:'+titlecolor+'"> '+title+'</div></td><td align="right"><a onmousedown="document.getElementById(\''+id+'_s\').style.display=\'none\'; document.getElementById(\''+id+'_b\').style.display=\'none\';return false"><img src="tools/closeb.gif" border="0" height="15" width="15"></a></td></tr></table></div>';
txt+='<div id="'+id+'_ov" width:'+width+'px; style="margin:2px; color:'+textcolor+'; font:'+textptsize+'pt '+textfamily+';">'+text+'</div></div>';
document.write(txt);
this.IDh=document.getElementById(id+'_h');
this.IDh.IDb=document.getElementById(id+'_b');
this.IDh.IDs=document.getElementById(id+'_s');
this.IDh.IDb.subs=this.IDh.IDs;
this.IDh.IDb.subb=this.IDh.IDb;
this.IDh.IDb.IDov=document.getElementById(id+'_ov');
if(IE5){
this.IDh.IDb.IDov.style.width=width-6;
this.IDh.IDb.IDov.style.height=height-22;
this.IDh.IDb.IDov.style.scrollbarBaseColor=boxcolor;
this.IDh.IDb.IDov.style.overflow="auto";
}else{
this.IDh.IDs.style.MozOpacity=.5;
}
this.IDh.IDb.onmousedown=incrzindex;
if(isdraggable){
this.IDh.onmousedown=grab_id;
this.IDh.onmouseup=stopdrag;
}}}

if(W3C)document.onmousemove=trackmouse;
if(!IE5 && W3C)window.onload=NS6bugfix;

//   -----------------------------------------------------------------------------

// Retour en haut de pages par un double clic

function dblclick() {
window.scrollTo(0,0)
}
if (document.layers) {
document.captureEvents(Event.ONDBLCLICK);
}
document.ondblclick=dblclick;

// -------------------------------------------------
// Generate Unique parameter to be appended to the URL
// This will allow us to realod the HTML from the server

function genUniqueParam(parameter)
{
   return parameter+'unique_id='+genUniqueId();
}

//
// Display the target image for this thumbnail
//
function displayThumb(src, width, height, title)
{
   var winWidth = 1024;
   var winHeight = 768;

   eval("win = window.open('','Thumb', 'toolbar=0,scrollbars=1,location=0,status=0,resizable=1,menubar=0,width="+winWidth+",height="+winHeight+"');");

   // clear the content of the document
   win.document.open();

   win.document.writeln('<html>');

   if(null != title && title != "")
   {
win.document.writeln('<head><title>' + title + '</title><META HTTP-EQUIV="imagetoolbar" CONTENT="no"></head>');
   }
   else
   {
win.document.writeln('<head><title>Thumbnail Image</title><META HTTP-EQUIV="imagetoolbar" CONTENT="no"></head>');
   }
   win.document.writeln('<body BGCOLOR="#4D4D4D" TEXT="#EEE9D6">');

   win.document.writeln('<center><table border="0">');
   if (width == 0)
   {
      win.document.writeln('<tr><td align="center"><img src="'+src+'"></td></tr>');
   }
   else if (height == 0)
   {
      win.document.writeln('<tr><td align="center"><img width="'+width+'" src="'+src+'"></td></tr>');   
   } 
   else
   {
      win.document.writeln('<tr><td align="center"><img width="'+width+'" height="'+height+'" src="'+src+'"></td></tr>');   
   } 

   if(null != title && title != "")
   {
       win.document.writeln('<tr><td ><font size="1" color="#EEE9D6" face="verdana">'+title+'</font></td></tr>');
   }
   win.document.writeln('</table></center><br>');

	win.document.writeln("<h6><div align='center'><INPUT TYPE='button' NAME='Close Window' VALUE='Fermer' onClick='self.close()' style='background: #947B4A; color: #EEE9D6; font-size: 1em'></div></h6>");

   win.document.writeln('</body></html>');
   win.document.close();
}

//   -----------------------------------------------------------------------------

