﻿	function SniffBrowser()
	{
	    // convert all characters to lowercase to simplify testing
	    var agt=navigator.userAgent.toLowerCase();
	    var Major = parseInt(navigator.appVersion);
	    var Minor = parseFloat(navigator.appMinorVersion);
		
		// Netscape Navigator section
	    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
    	               && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
        	           && (agt.indexOf('webtv')==-1));
	    var is_nav2 = (is_nav && (Major == 2));
	    var is_nav3 = (is_nav && (Major == 3));
		var is_nav3up = (is_nav && (Major >= 3));
	    var is_nav4 = (is_nav && (Major == 4));
	    var is_nav4up = (is_nav && (Major >= 4));
	    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
    	                      (agt.indexOf("; nav") != -1)) );
	    var is_nav5 = (is_nav && (Major == 5));
	    var is_nav5up = (is_nav && (Major >= 5));
		var is_nav6 = (is_nav && (Major == 5));
		var is_nav6up = (is_nav && (Major >= 5));

		// Internet Explorer section
	    var is_ie   = (agt.indexOf("msie") != -1);
	    var is_ie3  = (is_ie && (Major < 4));

		// For MSIE 3.02, Major == 2, so need some funny code here
	    var is_ie3up  = (is_ie  && ((Major >= 3) || (agt.indexOf("msie 3") != -1)));
	    var is_ie302up  = (is_ie3up  && ((Major >= 4) || (Minor >= 2)));
	    var is_ie4  = (is_ie && (Major == 4) && (agt.indexOf("msie 4")!=-1) );
	    var is_ie4up  = (is_ie  && (Major >= 4));
	    var is_ie5  = (is_ie && (Major == 4) && (agt.indexOf("msie 5.0")!=-1) );
	    var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);
		var is_ie5_5  = (is_ie && (Major == 4) && (agt.indexOf("msie 5.5")!=-1) );
		var is_ie5_5up  = (is_ie5_5  && !is_ie3 && !is_ie4);
		var is_ie6  = (is_ie && (Major == 4) && (agt.indexOf("msie 6")!=-1) );
		
		this.VersionIE=0
		if (agt.indexOf("msie 4")!=-1) this.VersionIE=4
		if (agt.indexOf("msie 5")!=-1) this.VersionIE=5
		if (agt.indexOf("msie 6")!=-1) this.VersionIE=6
		
		// other browsers section
	    var is_opera = (agt.indexOf("opera") != -1);
	    var is_webtv = (agt.indexOf("webtv") != -1);
		
		// Javascript conformance section (check with > or >=)
	    var is_js;
	    if (is_nav2 || is_ie3) is_js = 1.0
	    else if (is_nav3 || is_opera) is_js = 1.1
	    else if ((is_nav4 && (Minor <= 4.05)) || is_ie4) is_js = 1.2
	    else if ((is_nav4 && (Minor > 4.05)) || is_ie5) is_js = 1.3
	    else if (is_nav5) is_js = 1.4
	    else if (is_nav && (Major > 5)) is_js = 1.4
	    else if (is_ie && (Major > 5)) is_js = 1.3
	    else if (is_ie5_5) is_js = 1.4
	    else if (is_ie6) is_js = 1.4
	    // No idea for other browsers
	    else is_js = 0.0;

		// Platform section
	    var is_dec   = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) ||
    	       (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) ||
	           (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1));

	    var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
	    // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
	    //        Win32, so you can't distinguish between Win95 and WinNT.
	    var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));

	    // is this a 16 bit compiled version?
	    var is_win16 = ((agt.indexOf("win16")!=-1) ||
	               (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) ||
	               (agt.indexOf("windows 16-bit")!=-1) );

	    var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
	                    (agt.indexOf("windows 16-bit")!=-1));

	    // NOTE: Reliable detection of Win98 may not be possible. It appears that:
	    //       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
	    //       - On Mercury client, the 32-bit version will return "Win98", but
	    //         the 16-bit version running on Win98 will still return "Win95".
	    var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
	    var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
		var is_win2000 = ((agt.indexOf("windows nt 5.0")!=-1));
		var is_winxp = ((agt.indexOf("windows nt 5.1")!=-1));
	    var is_win32 = (is_win95 || (is_winnt && !(is_dec)) || is_win98 ||
    	               ((Major >= 4) && (navigator.platform == "Win32")) ||
        	            (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

	    var is_mac    = (agt.indexOf("mac")!=-1);
	    var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) ||
    	                           (agt.indexOf("68000")!=-1)));
	    var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) ||
	                                (agt.indexOf("powerpc")!=-1)));

		// here, some stuff to re-interpret values
		
		this.MajorVersion=Major;
		this.MinorVersion=Minor;
		
  		this.Scripting="No";
		this.ScriptingVersion=0.0;
		
		if(is_js > 0.0)
		{
		    this.ScriptingVersion=is_js;
     		this.Scripting="Yes";
		}
		
		if(is_ie)
		   this.kind="IE";
		else
		{
			if(is_nav)
			   this.kind="Netscape";
			else
			   this.kind="other";
		}

		if(is_win95 || is_win98 || is_winnt || is_win2000 || is_winxp || is_win32)
		   this.platform="Windows32";
		else
		{
		   if( is_win31||is_win16 || is_win)
		      this.platform="Windows16";
		   else
		      this.platform="other";
		}
		
	    this.cookies=false;
		if(navigator.cookieEnabled)
		   this.cookies=true;
		   
		//if(is_mac || is_mac68k || is_macppc )
		   //this.machine="mac";		
	}




// Additional information for sample menu item action.
//var sScratchInclude='<div component="scratch" class=scratchx align=center><!--img border="0" src="images/Bsmmdina.jpg" width="400" height="60"--><APPLET style="LEFT: 0px; WIDTH: 364px; TOP: 0px; HEIGHT: 71px" height=71 width=364 align=middle code=Water.class name=WaterApplet VIEWASTEXT><PARAM NAME="img" VALUE="images/Bsmmdina.jpg"></APPLET></div>'
var sScratchInclude='<table width="100\%" class="MyTable"><tr><td align=center><img border="0" src="images/Bsmmdina.jpg" ></td></tr></table>';
sScratchInclude+='<div  id="oMarquee"  name="oMarquee"></div>';
sScratchInclude+='<div id="oSeiQui"  name="oSeiQui" class="seiqui"><table width="100\%"><tr><td><font size="1" face="verdana, arial" color="#913CAB">Sei Qui:&nbsp; <b>Home</b></font></td><td></td></tr></table></div>';


function fnSeiQui(str){
	oSeiQui.innerHTML='<table width="100\%"><tr><td><font size="1" face="verdana, arial" color="#913CAB">Sei Qui:&nbsp; <b>'+str+'</b></font></td><td align="right"><font size="1" face="verdana, arial" color="#913CAB">'+today+'</font></td></tr></table>';
}

function fnMarquee(str,leftOrRight){
	oMarquee.innerHTML+='<MARQUEE scrollamount="3"  DIRECTION=' + leftOrRight + ' ><FONT face="courier new"  color=green size=2>'+ str+'</FONT>&nbsp;</MARQUEE>';
}

// When the body loads, setup intial settings.
function fnInitDefault(){
	//ConstructTopMenu();
	doPreload();
	oLeftMenu.innerHTML+=fnLeftMenu();
	oLeftMenu.innerHTML+='<BR><center>'+fnOtherMenuSito()+'</center>';
	oLeftMenu.innerHTML+='<BR><center>'+fnOtherMenu()+'</center>';
	oLeftMenu.innerHTML+='<BR><center>'+fnOtherMenuSitoDelMese('islamonline.net')+'</center>';
	oRightMenu.innerHTML+=fnFesteMenu()+fnFAQMenu()+fnWebMail()+fnMembersLogin()+fnSubscribe();
	oScratch.innerHTML=sScratchInclude ;

	//makeM();
	oCopyrightMenu.innerHTML=fnCopyrightMenu();
	//document.all('monthcalendar').innerHTML=makeCalendar(this_date.getMonth(), this_year);
	//if (ns||ie) Delay();

}




function fnLeftMenu(){
var LeftMenuTableHeader ='<table valign="top" border="0" cellpadding="0" cellspacing="0" width="130" background="transparent">';
var LeftMenuTableFooter ='</td></tr></table>';
//LeftMenuTableHeader +=fnLineSpace(2);
LeftMenuTableHeader +=fnItemLeftMenu('Home','Default.asp');
switch (currMenu)
{
	case 9999:
		var aThrash=new Array();
		for(var i=0;i<mnuGroups.length;i++){
			aThrash=mnuGroups[i].split("|");
			LeftMenuTableHeader+=fnItemLeftMenu(aThrash[0],aThrash[1]);
		}
		break;		
	default:
		var tmp=mnuGroupsItems[currMenu];
		var aThrash=new Array();
		for(var i=0;i<tmp.length;i++){
			aThrash=tmp[i].split("|");
			if(aThrash[0]!="~SPACER") 
				LeftMenuTableHeader+=fnItemLeftMenu(aThrash[0],aThrash[1]);
		}		
}	
	LeftMenuTableHeader +=fnItemLeftMenu('Help','Help.htm');
	LeftMenuTableHeader+=LeftMenuTableFooter;
	return LeftMenuTableHeader;
}

function fnItemLeftMenu(itemName,ItemLink){
	//ItemLeftMenu += ' onMouseOver=document.images["' + itemName + '"].src="images/pin.gif";';
	//ItemLeftMenu += ' onMouseOut=document.images["' + itemName + '"].src="images/pin0.gif";>';
	var ItemLeftMenu ='<tr><td nowrap><a class=linkrightmenu href="' + ItemLink + '" ' ;
	ItemLeftMenu +='onMouseOver="yaImgChange(\'' + itemName +'\', \'pin.gif\'); return true;"';
	ItemLeftMenu += 'onMouseOut="yaImgChange(\'' + itemName +'\', \'pin0.gif\'); return true;">';
	ItemLeftMenu += '&nbsp;<img border=0 src=images/pin0.gif width=10 height=10 name="' + itemName +'">' + itemName +'</a></td></tr>';
	return ItemLeftMenu ;
}

function fnLineSpace(n){
	var temp="";
	for(var i=0;i<n;i++)
		temp+='<BR>';
	return temp;
}


function doPreload()
{
	var the_images = new Array('pin0.gif','pin.gif');
	preloadImages(the_images);
}
function preloadImages(the_images_array) {
	for(loop = 0; loop < the_images_array.length; loop++)
	{
   		var an_image = new Image();
		an_image.src = 'images/' + the_images_array[loop];
	}
}

function fnCalendar() {
	var WebCalendar='';
WebCalendar+='<div  class="scratchx">';
WebCalendar+='<table border="0" width="130" bgcolor="transparent" cellspacing="0" cellpadding="0">';
WebCalendar+='<tr><td  bgcolor="gray"><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Calendario</font></b></td></tr>';
WebCalendar+='<tr><td>';
WebCalendar+= makeCalendar(this_date.getMonth(), this_year);
WebCalendar+='</td></tr>';
WebCalendar+='</table></div><br>';

	return WebCalendar;
}

function fnWebMail() {
	var WebMail='<form method="post" name="logon" action="http://mailrr.aruba.it/cgi-bin/sqwebmail">';
WebMail+='<div  class="scratchx">';
WebMail+='<table border="0" width="130" bgcolor="transparent" cellspacing="0" cellpadding="0">';
WebMail+='<tr><td  bgcolor="gray"><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Posta</font></b></td></tr>';
WebMail+='<tr><td><b><font size="1" face="verdana, arial" color="gray">Email:</font></b> <br><input type="text" name="username" value="nome@al-islam.it" size="16"></td></tr>';
WebMail+='<tr><td><b><font size="1" face="verdana, arial" color="gray">Password:</font></b> <br><input type="password" name="password" size="16"></td></tr>';
WebMail+='<tr><td><input type="submit" value="Login" name="do.login"></td></tr>';
WebMail+='<tr><td valign="top"><input type="checkbox" checked="checked" name="sameip">';
WebMail+='<b><font size="1" face="verdana, arial" color="gray">Limita l\'accesso al proprio IP address (migliore sicurezza)</font></b></td></tr>';
WebMail+='</table></div></form>';

	return WebMail;
}

function fnSearThisSite() {
	var SearThisSite='<form method="get" action="http://sitelevel.whatuseek.com/query.go" TARGET="_self" id=form1 name=form1><div class="scratchx"><table border="0" width="130" bgcolor="transparent" cellspacing="0" cellpadding="0">';
	SearThisSite+='<tr><td nowrap bgcolor="gray">';
	SearThisSite+='<b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Cerca </font></b>';
	SearThisSite+='</td></tr>';
	SearThisSite+='<tr><td width="100%" bgcolor="transparent"><select name=slice_title><option selected>Nel Web</option></select><br><input type="text" NAME="query" SIZE="16" VALUE MAXLENGTH="100"><br>';
	SearThisSite+='<input type="submit" value="Cerca" name="B1"></td></tr></table><input type=hidden name=crid value=5f27968b356ee1e4></div></form>';
	   
	return SearThisSite;
}

function fnMembersLogin() {
var MembersLogin='<form method="POST" action="validate.asp" name="form_login" onSubmit=\'\'>';
MembersLogin+='<div class="scratchx"><table border="0" width="130" bgcolor="transparent" cellspacing="0" cellpadding="0">';
MembersLogin+='<tr><td  nowrap bgcolor="gray">';
MembersLogin+='<b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;';
MembersLogin+='Membri</font></b>';
MembersLogin+='</td></tr>';
MembersLogin+='<tr><td width="100%" bgcolor="transparent"><b><font face="verdana, arial" size="1" color="gray">Email';
MembersLogin+=':</font></b><br><input type="text" name="username" size="16"><br>';
MembersLogin+='<font face="verdana, arial" size="2"><b></b></font><br>';
MembersLogin+='<b><font size="1" face="verdana, arial" color="gray">Password:<br>';
MembersLogin+='</font></b><input type="password" name="password" size="16"><br>';
MembersLogin+='<font face="verdana, arial" size="2"><b></b></font><br>';
MembersLogin+='<input type="submit" value="Login" name="B1"><br>';
MembersLogin+='</td></tr></table></div></form>';
return MembersLogin;
}


function fnSubscribe() {
var Subscribe='<FORM action=subscribe.asp method=post name=newsletter onsubmit="return isvalidemail(window.document.newsletter.Email.value)"><div class="scratchx">';
Subscribe+='<DIV align=center>';
Subscribe+='<TABLE border="0" width="130" bgcolor="transparent" cellspacing="0" cellpadding="0">';
Subscribe+='<TBODY>	';
Subscribe+='<TR><TD nowrap bgcolor="gray"><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Newsletter </font></b></TD></TR>';
Subscribe+='<TR>';
Subscribe+='<TD align=center ><font size="1" face="verdana, arial" color="gray">Iscriviti alla nostra newsletter per ricevere le notizie del centro<BR><BR></FONT></TD></TR>';
Subscribe+='<TR> ';
Subscribe+='<TD><b><font size="1" face="verdana, arial" color="gray">Email Address:<BR><INPUT maxLength=255 name=Email size=16></FONT></b></TD></TR>';
Subscribe+='<TR>';
Subscribe+='<TD valign="bottom"><INPUT CHECKED name=sub type=radio value=on><b><font size="1" face="verdana, arial" color="gray">Iscrivimi</FONT></b><BR> </TD></TR>';
Subscribe+='<TR>';
Subscribe+='<TD valign="bottom"><INPUT name=sub type=radio value=off><b><font size="1" face="verdana, arial" color="gray">Cancellami</FONT></b><BR> </TD></TR>';
Subscribe+='<TR>';
Subscribe+='<TD><b><INPUT name=B1 type=submit value=Invia></b></TD></TR> ';
Subscribe+='</TBODY></TABLE></DIV></div></FORM>';
return Subscribe;
}

function fnRiquadro(titolo,corpo) {
var Riquadro='';
//Riquadro+='<DIV  class="scratchx">';
Riquadro+='<TABLE border="0" width="130" bgcolor="transparent" cellspacing="0" cellpadding="0">';
Riquadro+='<TBODY>	';
Riquadro+='<TR><TD nowrap bgcolor="#66bb66" width="125"><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;'+titolo+' </font></b></TD></TR>';
Riquadro+='<TR>';
Riquadro+='<TD><font size="1" face="verdana, arial" color="gray">'+corpo+'<BR></FONT></TD></TR>';
Riquadro+='</TBODY></TABLE>';
//Riquadro+='</DIV>';
return Riquadro;
}

function fnCopyrightMenu(){
	var CopyrightMenu='<table border="0" width="100%" cellspacing="0" cellpadding="0">';
	CopyrightMenu+='<tr><td height="2" bgcolor="transparent"></td></tr>';
	CopyrightMenu+='<tr><td width="100%"><img border="0" src="images/spacerblue.bmp" width="597" height="1"></td></tr>';
	CopyrightMenu+='<tr><td width="597" align="center">';
		var aThrash=new Array();
		for(var i=0;i<mnuGroups.length;i++){
			aThrash=mnuGroups[i].split("|");
			CopyrightMenu+='<font face="verdana, arial" size="2">';
			CopyrightMenu+='<a href="'+ aThrash[1] +'">' + aThrash[0];
			CopyrightMenu+='</a></font><font color="#913cab" size="1">  | </font>';
		}
	CopyrightMenu+='<font face="verdana, arial" size="2"><a href="help.htm">Help</a></font>';
	CopyrightMenu+='</td></tr>';
	CopyrightMenu+='<tr><td width="100%" align="center"><img border="0" src="images/spacer.bmp" width="200" height="5"></td></tr>';
	CopyrightMenu+='<tr><td align="center"><font face="verdana, arial" size="1" color="gray">© Copyright 2003 </font><font face="verdana, arial" size="1" color="gray"> Centro Culturale Islamico di Trieste e della Venezia Giulia</font></td></tr>';
	CopyrightMenu+='<tr><td align="center"><font face="verdana, arial" size="1" color="gray">Ultimo aggiornamento ' + DocDate() + '</font></td></tr>';
	CopyrightMenu+='<tr><td align="center"><font face="verdana, arial" size="1" color="gray">Per informazioni: </font><a href="mailto:islam@al-islam.it"><font face="verdana, arial" size="1" ><b>islam@al-islam.it</b></font></a><br><br></td></tr></table>';

	return CopyrightMenu;
}
function addBookmark() {
  if (window.external)
    external.AddFavorite(location.href)
  else
    alert("Your browser doesn't support this feature.");
}
//**************************************************************************************
function MainSubject(href,title){
	return	 "<A href=\""+href+"\" ><STRONG><u>"+title+"</u></STRONG></A><BR>";
}
function ItemSubject(href,title){
		return "<A href=\""+href+"\" >"+title+"</A>,&nbsp;        ";
}

//**************************************************************************************
function yaImgChange(imgNum,imgSrc) {

  document.images[imgNum].src ='images/'+imgSrc;

}
function Goto(link) {
//window.open(link,"prova");
  //document.frmMain.action=link;
  //document.frmMain.submit();
window.navigate(link);
}

function fnHeader(txt) {
var Header;
Header	= '<BR><BR><TABLE border=0 cellPadding=0 cellspacing=0 width=100%>';
Header	+= '<TR>';
Header	+= '<TD width=100%  bordercolor="#800000"  style="border-bottom-style:solid;border-bottom-width:2px"><IMG alt="" src="images/back0004.gif" style="HEIGHT: 20px; WIDTH: 20px"><FONT color=#800000 face=Verdana size=2><B> ';
Header	+= txt;
Header	+= '</B></FONT></TD></TR></TABLE>';
return Header;
}



function fnFAQMenu() {
var fnFAQMenu='';
fnFAQMenu+='<table border="0"  cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#bbbbbb"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px;width: 130px">';
fnFAQMenu+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" >';
fnFAQMenu+='<tr><td  colspan="3" bgcolor="gray" nowrap><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;<b>Chi sono ?</b></font></td></tr>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Che cos\'é l\'Islàm e chi sono i musulmani">Che cos\'é l\'Islàm?</A></TD><td width="5"></td></TR>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Che cos\'é l\'Islàm e chi sono i musulmani">Chi sono i musulmani?</A></TD><td width="5"></td></TR>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#In che cosa credono i musulmani">In che cosa credono?</A></TD><td width="5"></td></TR>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Chi é stato Muhammad">Chi é stato Muhammad?</A></TD><td width="5"></td></TR>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Che cos\'é il Corano">Che cos\'é il Corano?</A></TD><td width="5"></td></TR>';
fnFAQMenu+='</table></td></tr></table><BR>';
fnFAQMenu+='<table border="0"  cellspacing="0" cellpadding="0" ><tr><td   bordercolor="#bbbbbb"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px;width: 130px">';
fnFAQMenu+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="130">';
fnFAQMenu+='<tr><td  colspan="3" bgcolor="gray" nowrap><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;<b>Cosa dicono..</b></font></td></tr>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#L\'Islàm é tollerante nei confronti delle altre credenze">delle altre credenze</A></TD><td width="5"></td></TR>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Che cosa pensano i musulmani riguardo a Gesù">di Gesù</A></TD><td width="5"></td></TR>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Come eleva l\'Islàm la condizione delle donne">delle donne</A></TD><td width="5"></td></TR>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Che cosa dice l\'Islàm riguardo alla guerra">riguardo alla guerra</A></TD><td width="5"></td></TR>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Come garantisce l\'Islàm i Diritti dell’Uomo">dei diritti dell’Uomo</A></TD><td width="5"></td></TR>';
fnFAQMenu+='</table></td></tr></table><BR>';
fnFAQMenu+='<table border="0"  cellspacing="0" cellpadding="0" ><tr><td   bordercolor="#bbbbbb"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px;width: 130px">';
fnFAQMenu+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="130">';
fnFAQMenu+='<tr><td  colspan="3" bgcolor="gray" nowrap><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;<b>Perchè ?</b></font></td></tr>';
fnFAQMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Faq.htm#Perché l\'Islàm é spesso frainteso">Perché l\'Islàm é spesso frainteso?</A></TD><td width="5"></td></TR>';
fnFAQMenu+='</table></td></tr></table>';
	return fnFAQMenu;
}

function fnOtherMenu() {
var OtherMenu='';
OtherMenu+='<table border="0" bgcolor="#eeeeee" cellspacing="0" cellpadding="0"  width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
//OtherMenu+='<CENTER><MARQUEE scrollAmount="1" scrollDelay="60" direction="up" onmouseover="this.stop()"  onmouseout="this.start()" height="100">';
OtherMenu+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="130">';
OtherMenu+='<tr><td  colspan="3" bgcolor="gray" nowrap><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;<b>Link rapidi</b></font></td></tr>';
OtherMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="http://www.aljazeera.net/" target=_blank>Al Jazeera</A></TD><td width="5"></td></TR>';
OtherMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="http://news.bbc.co.uk/hi/english/world/default.stm" target=_blank>BBC NEWS</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://prayer.al-islam.com/convert.asp?l=eng" target=_blank>Calendari</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://dw-world.de/" target=_blank>Deutsche Welle</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://news.islaam.com/" target=_blank>Islaam.com</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://www.kwmappe.kataweb.it/" target=_blank>Mappe</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://it.weather.yahoo.com/Mediterraneo/Italia/" target=_blank>Meteo Yahoo</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://www.fs-on-line.com/" target=_blank>Treni</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://www.alitalia.it/" target=_blank>Aerei</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://www.poste.it/" target=_blank>Poste</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://www.rainews24.rai.it/" target=_blank>Rai NEWS24</A></TD><td width="5"></td></TR>';
OtherMenu+='<Tr><td width="5"></td><TD>»&nbsp;<A href="http://www.televideo.rai.it/" target=_blank>Televideo</A></TD><td width="5"></td></TR>';
//OtherMenu+='</table></MARQUEE></CENTER>';
OtherMenu+='</table></td></tr></table>';

	return OtherMenu;
}

function fnOtherMenuSito() {
var OtherMenuSito='';
OtherMenuSito+='<table border="0" bgcolor="#E1EAD9" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSito+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSito+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Esegesi del Corano </font></b></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Tafsir.asp?Lang=Kathir\">Ibn Kathir</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Tafsir.asp?Lang=Galalin\">Gialàlin</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Tafsir.asp?Lang=Tabari\">Tabari</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Tafsir.asp?Lang=Qortobi\">Qortobi</A></td><td width="5"></td></tr>';
OtherMenuSito+='</table></td></tr></table>';
OtherMenuSito+=fnLineSpace(1);
OtherMenuSito+='<table border="0" bgcolor="#E1EAD9" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSito+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSito+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Corano &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></b></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan.asp?Lang=Trasliterato\">Trasliterato</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan.asp?Lang=Italiano\">Italiano</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan.asp?Lang=Inglese\">Inglese</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan.asp?Lang=Francese\">Francese</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan.asp?Lang=Albanese\">Albanese</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan.asp?Lang=Swahili\">Swahili</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan.asp?Lang=Olandese\">Olandese</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan.asp?Lang=Spagnolo\">Spagnolo</A></td><td width="5"></td></tr>';
OtherMenuSito+='</table></td></tr></table>';
OtherMenuSito+=fnLineSpace(1);
OtherMenuSito+='<table border="0" bgcolor="#E1EAD9" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSito+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSito+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Corano ricerca</font></b>&nbsp;<IMG border=0 src="images/new1.gif"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Quraan_search.asp\">Ricerca libera</A></td><td width="5"></td></tr>';
OtherMenuSito+='</table></td></tr></table>';
OtherMenuSito+=fnLineSpace(1);
OtherMenuSito+='<table border="0" bgcolor="#E1EAD9" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSito+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSito+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;e-Corano</font></b>&nbsp;<IMG border=0 src="images/new1.gif"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td><A href="Quranfalsh2.html\"><IMG border=0 src="images/quran_cover.jpg" width="130"></A></td><td width="5"></td></tr>';
OtherMenuSito+='</table></td></tr></table>';
OtherMenuSito+=fnLineSpace(1);
OtherMenuSito+='<table border="0" bgcolor="#FAF9C7" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSito+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSito+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Hadith in arabo&nbsp;<IMG border=0 src="images/new1.gif"></font></b></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Abudawuud\">Abu-Dawuud</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Ahmed\">Ahmed</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Addarami\">Darami</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Bukhari\">Bukhari</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Ibnumaaja\">Ibnu-Maaja</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Malik\">Malik</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Muslim\">Muslim</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Nassay\">Nassay</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith.asp?Kitab=Tirmidy\">Tirmidy</A></td><td width="5"></td></tr>';
OtherMenuSito+='</table></td></tr></table>';
OtherMenuSito+=fnLineSpace(1);
OtherMenuSito+='<table border="0" bgcolor="#E1EAD9" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSito+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSito+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Hadith ricerca</font></b>&nbsp;<IMG border=0 src="images/new1.gif"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="Hadith_search.asp\">Ricerca libera</A></td><td width="5"></td></tr>';
OtherMenuSito+='</table></td></tr></table>';
OtherMenuSito+=fnLineSpace(1);
OtherMenuSito+='<table border="0" bgcolor="#ffeedd" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSito+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSito+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Sito</font></b></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="gb.asp?mode=read\">Registro</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="invio.htm\">Commento</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="javascript:addBookmark();\">Preferiti</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.al-islam.it\');" href="http://www.al-islam.it\">Predefinito</A></td><td width="5"></td></tr>';
OtherMenuSito+='</table></td></tr></table>';
OtherMenuSito+=fnLineSpace(1);
OtherMenuSito+='<table border="0" bgcolor="#fff0f5" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSito+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSito+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;L\'Islam italiano</font></b></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.islam-ucoii.it/" title="UCOII - Unione delle Comunita\' ed Organizzazioni Islamiche in Italia "> U.C.O.I.I.</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.islam-online.it/" title="Portale e indice specializzato islamico delle edizioni Al Hikma"> Al Hikma</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.islam.it/" title="centro islamico di milano e lombardia"> cen.isl.milano</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.arab.it/" title="Arab.it è il sito che si interessa alla cultura e alle scienze sociali ed economiche del mondo arabo e di quello italiano"> Arab.it</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.sufi.it/" title="L\'Islam di Jamaluddin Ballabio - della Tariqah sufi di Sheikh Nazeem al Haqqani al-Naqshbandi"> Naqshbandi</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.lega-musulmana.it/" title="il sito italiano della Lega Musulmana Mondiale "> Lega musulm.</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.islamitalia.it/" title="www.islamitalia.it "> islamitalia.it</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.corano.it/" title="Corano in italiano "> Corano.it</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.shia-islam.org/" title="Associazione Islamica Ahl-al-Bait "> Ahl-al-Bait</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.webislam.it/" title="webislam.it "> webislam.it</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.alhuda.it/" title="alhuda.it "> alhuda.it</A></td><td width="5"></td></tr>';
OtherMenuSito+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.islamnet.it/" title="islamnet.it "> islamnet.it</A></td><td width="5"></td></tr>';
OtherMenuSito+='</table></td></tr></table>';

	return OtherMenuSito;
}

function fnOtherMenuSitoDelMese(site) {
var OtherMenuSitoDelMese='';
OtherMenuSitoDelMese+='<table border="0" bgcolor="#eeffff" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSitoDelMese+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSitoDelMese+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Sito del mese</font></b></td></tr>';
OtherMenuSitoDelMese+='<tr><td width="5"></td><td>»&nbsp;<A href="http://'+ site +'">'+ site +'</A></td><td width="5"></td></tr>';
OtherMenuSitoDelMese+='</table></td></tr></table>';
OtherMenuSitoDelMese+=fnLineSpace(1);
OtherMenuSitoDelMese+='<table border="0" bgcolor="#eeffff" cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#000000"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px">';
OtherMenuSitoDelMese+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" width="100%">';
OtherMenuSitoDelMese+='<tr><td bgcolor="gray" colspan="3" nowrap><b><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;Siti Top</font></b></td></tr>';
OtherMenuSitoDelMese+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.islamway.com">islamway.com</A></td><td width="5"></td></tr>';
OtherMenuSitoDelMese+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.islamweb.net">islamweb.net</A></td><td width="5"></td></tr>';
OtherMenuSitoDelMese+='<tr><td width="5"></td><td>»&nbsp;<A href="http://www.islamicfinder.org">islamicfinder.org</A></td><td width="5"></td></tr>';
OtherMenuSitoDelMese+='</table></td></tr></table>';
OtherMenuSitoDelMese+=fnLineSpace(1);
OtherMenuSitoDelMese+='<TABLE   cellSpacing="0" cellPadding="0" border="0"><TR>';
OtherMenuSitoDelMese+='<TD><DIV style="FONT: 10pt arial;border: 2px solid;border-bottom: #D56531 1px dotted;padding-left:3px"><strong><font color="#D56531">Qaradawi</font></strong></DIV>';
OtherMenuSitoDelMese+='<A href="http://www.qaradawi.net/"><IMG src="images/2_1689_1_15.gif"  width="125"  border="2" style="border-color=#000000;border-top: none"></A></TD>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGright.gif\')" valign=top><IMG src="images/members_lgPicBGtopright.gif"></TD>';
OtherMenuSitoDelMese+='</TR><TR>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGbottom.gif\')" valign=top><IMG src="images/members_lgPicBGbottomleft.gif"></TD>';
OtherMenuSitoDelMese+='<TD valign=top><IMG src="images/members_lgPicBGbottomright.gif"></TD>';
OtherMenuSitoDelMese+='</TR></TABLE>';
OtherMenuSitoDelMese+=fnLineSpace(1);
OtherMenuSitoDelMese+='<TABLE  cellSpacing="0" cellPadding="0" border="0"><TR>';
OtherMenuSitoDelMese+='<TD><DIV style="FONT: 10pt arial;border: #000000 2px solid;border-bottom: #D56531 1px dotted;padding-left:3px"><strong><font color="#D56531">Abd el-Kafi</font></strong></DIV>';
OtherMenuSitoDelMese+='<A href="http://www.abdelkafy.com/"><IMG src="images/abdelkafy.jpg"  width="125"  border="2" style="border-color=#000000;border-top: none"></A></TD>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGright.gif\')" valign=top><IMG src="images/members_lgPicBGtopright.gif"></TD>';
OtherMenuSitoDelMese+='</TR><TR>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGbottom.gif\')" valign=top><IMG src="images/members_lgPicBGbottomleft.gif"></TD>';
OtherMenuSitoDelMese+='<TD valign=top><IMG src="images/members_lgPicBGbottomright.gif"></TD>';
OtherMenuSitoDelMese+='</TR></TABLE>';
OtherMenuSitoDelMese+=fnLineSpace(1);
OtherMenuSitoDelMese+='<TABLE  cellSpacing="0" cellPadding="0" border="0"><TR>';
OtherMenuSitoDelMese+='<TD><DIV style="FONT: 10pt arial;border: #000000 2px solid;border-bottom: #D56531 1px dotted;padding-left:3px"><strong><font color="#D56531">Amr Khaled</font></strong></DIV>';
OtherMenuSitoDelMese+='<A href="http://www.amrkhaled.net/"><IMG src="images/amrkhaled.jpg"  width="125"  border="2" style="border-color=#000000;border-top: none"></A></TD>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGright.gif\')" valign=top><IMG src="images/members_lgPicBGtopright.gif"></TD>';
OtherMenuSitoDelMese+='</TR><TR>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGbottom.gif\')" valign=top><IMG src="images/members_lgPicBGbottomleft.gif"></TD>';
OtherMenuSitoDelMese+='<TD valign=top><IMG src="images/members_lgPicBGbottomright.gif"></TD>';
OtherMenuSitoDelMese+='</TR></TABLE>';
OtherMenuSitoDelMese+=fnLineSpace(1);
OtherMenuSitoDelMese+='<TABLE  cellSpacing="0" cellPadding="0" border="0"><TR>';
OtherMenuSitoDelMese+='<TD><DIV style="FONT: 10pt arial;border: #000000 2px solid;border-bottom: #D56531 1px dotted;padding-left:3px"><strong><font color="#D56531">Habib Ali</font></strong></DIV>';
OtherMenuSitoDelMese+='<A href="http://www.alhabibali.org/"><IMG src="images/habibali.jpg"  width="125"  border="2" style="border-color=#000000;border-top: none"></A></TD>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGright.gif\')" valign=top><IMG src="images/members_lgPicBGtopright.gif"></TD>';
OtherMenuSitoDelMese+='</TR><TR>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGbottom.gif\')" valign=top><IMG src="images/members_lgPicBGbottomleft.gif"></TD>';
OtherMenuSitoDelMese+='<TD valign=top><IMG src="images/members_lgPicBGbottomright.gif"></TD>';
OtherMenuSitoDelMese+='</TR></TABLE>';
OtherMenuSitoDelMese+=fnLineSpace(1);
OtherMenuSitoDelMese+='<TABLE  cellSpacing="0" cellPadding="0" border="0"><TR>';
OtherMenuSitoDelMese+='<TD><DIV style="FONT: 10pt arial;border: #000000 2px solid;border-bottom: #D56531 1px dotted;padding-left:3px"><strong><font color="#D56531">Al Khateeb</font></strong></DIV>';
OtherMenuSitoDelMese+='<A href="http://www.alkhateeb.net/"><IMG src="images/alkhateeb.gif"  width="125"  border="2" style="border-color=#000000;border-top: none"></A></TD>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGright.gif\')" valign=top><IMG src="images/members_lgPicBGtopright.gif"></TD>';
OtherMenuSitoDelMese+='</TR><TR>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGbottom.gif\')" valign=top><IMG src="images/members_lgPicBGbottomleft.gif"></TD>';
OtherMenuSitoDelMese+='<TD valign=top><IMG src="images/members_lgPicBGbottomright.gif"></TD>';
OtherMenuSitoDelMese+='</TR></TABLE>';
OtherMenuSitoDelMese+=fnLineSpace(1);
OtherMenuSitoDelMese+='<TABLE  cellSpacing="0" cellPadding="0" border="0"><TR>';
OtherMenuSitoDelMese+='<TD><DIV style="FONT: 10pt arial;border: #000000 2px solid;border-bottom: #D56531 1px dotted;padding-left:3px"><strong><font color="#D56531">Mawlawi</font></strong></DIV>';
OtherMenuSitoDelMese+='<A href="http://www.mawlawi.net/"><IMG src="images/mawlawi.jpg"  width="125"  border="2" style="border-color=#000000;border-top: none"></A></TD>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGright.gif\')" valign=top><IMG src="images/members_lgPicBGtopright.gif"></TD>';
OtherMenuSitoDelMese+='</TR><TR>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGbottom.gif\')" valign=top><IMG src="images/members_lgPicBGbottomleft.gif"></TD>';
OtherMenuSitoDelMese+='<TD valign=top><IMG src="images/members_lgPicBGbottomright.gif"></TD>';
OtherMenuSitoDelMese+='</TR></TABLE>';
OtherMenuSitoDelMese+=fnLineSpace(1);
OtherMenuSitoDelMese+='<TABLE  cellSpacing="0" cellPadding="0" border="0"><TR>';
OtherMenuSitoDelMese+='<TD><DIV style="FONT: 10pt arial;border: #000000 2px solid;border-bottom: #D56531 1px dotted;padding-left:3px"><strong><font color="#D56531">Al Bouti</font></strong></DIV>';
OtherMenuSitoDelMese+='<A href="http://www.bouti.net/"><IMG src="images/bouti.jpg"  width="125"  border="2" style="border-color=#000000;border-top: none"></A></TD>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGright.gif\')" valign=top><IMG src="images/members_lgPicBGtopright.gif"></TD>';
OtherMenuSitoDelMese+='</TR><TR>';
OtherMenuSitoDelMese+='<TD style="background-image: url(\'images/members_lgPicBGbottom.gif\')" valign=top><IMG src="images/members_lgPicBGbottomleft.gif"></TD>';
OtherMenuSitoDelMese+='<TD valign=top><IMG src="images/members_lgPicBGbottomright.gif"></TD>';
OtherMenuSitoDelMese+='</TR></TABLE>';

	return OtherMenuSitoDelMese;
}

//*****************************************
//////
//    Hijri date

var g, thistory, sDay, sMonth, sWeek, bora, month, day, year, ayear, cyear;
var aDay, aMonth, theYear, HDAY, HMONTH;
var myDay = new Array(7);

myDay[0] = "Sunday";
myDay[1] = "Monday";
myDay[2] = "Tuesday";
myDay[3] = "Wednesday";
myDay[4] = "Thursday";
myDay[5] = "Friday";
myDay[6] = "Saturday";

var myiDay = new Array(7);

myiDay[0] = "";
myiDay[1] = "";
myiDay[2] = "";
myiDay[3] = "";
myiDay[4] = "";
myiDay[5] = "Jummah";
myiDay[6] = "";


var sDate = new Date();
var sString;
var sYear;
g = 0;
thistory=1;
bora = "AD";
sString = sDate.toString();
sYear = parseInt(sString.substring(sString.length-4,sString.length));
sDay = sDate.getDate();
sMonth = sDate.getMonth() + 1;
sWeek = sDate.getDay();
//alert('sDay='+sDay+'      sMonth='+sMonth+'      sYear='+sYear+'      sWeek='+sWeek);

function check()
{
	day=sDay;
	month=sMonth;
	year=sYear;
	var dday=g+day*1;
	ayear=year;
	if(bora=="BC") {
		ayear=-year+1;
		}
	convert();      
}

function convert () {
	var NOTE='';
	var hijri=0;
	var georgean=1;
	if (georgean>0)
	{
		georgean=0;
		var cdays=day*1;    
		cdays += (month>11) ? 30 : 0;   
		cdays += (month>10) ? 31 : 0;
		cdays += (month>9) ? 30 : 0; 
		cdays += (month>8) ? 31 : 0; 
		cdays += (month>7) ? 31 : 0; 
		cdays += (month>6) ? 30 : 0;  
		cdays += (month>5) ? 31 : 0;  
		cdays += (month>4) ? 30 : 0;  
		cdays += (month>3) ? 31 : 0; 
		cdays += (month>2) ? 28 : 0; 
		cdays += (month>1) ? 31 : 0; 
		leap=0;
                cdays +=0;
		if (ayear/4 == Math.floor(ayear/4)) {
			leap=1;
			} 
		if (ayear/100 == Math.floor(ayear/100)) {
			if (ayear/400 != Math.floor(ayear/400)) {
				leap=0;
				}
			}
		if (leap==1) {
			if (month>2) {
				cdays +=1;
				}
			}
		if (day>28+leap) {
			if (month==2)  {
				kill();
				}
			}
		myear = ayear*1+cdays/(365+leap);
		//alert ('myear='+myear);
		process1();
	}    
	result();
}

function process1()
{
	cyear=(myear-621.578082192)/0.97022298;
	cyear += Math.floor(Math.abs(cyear)/3000)*30/10631;
	cday= cyear-Math.floor(cyear);
	cyear -= cday;
	if ((cday*10631/30)-Math.floor(cday*10631/30)<.5){
		cday= Math.floor(cday*10631/30) +1
		} else {
			cday= Math.floor(cday*10631/30)+2;
			}
	test2(cday);
	mday=HDAY;
	cmonth=HMONTH;
	if (cmonth==13){
		cmonth=1;
		cyear+=1;
		}
	var Precise=Pcision(JulianDay(ayear*1,month*1,day*1,19,30,0));
	if (mday !=Precise) {
		if (mday==1 && Precise>28) {
			cmonth -=1;
			if (cmonth==0) {
				cmonth=12;
				cyear -=1;
				}
			} else {
				if (mday>28 && Precise<3) {
					cmonth +=1;
					if (cmonth==13) {
						cmonth=1;cyear +=1;
						}
					}
				}
			} 
	mday=Precise;
	if (cyear<1) {
		cyear -=1;
		}
        //alert('cday='+cday+'      cmonth='+cmonth+'      cyear='+cyear);
}

function test2 (HdayN) {
	var Monthf=29.53058796;
	var Gyear=cyear*0.970224044+621.574981435;
	var GyearDf= Gyear-Math.floor(Gyear);
	Gyear -= GyearDf;
	var l=0;    
	if (Gyear/4 == Math.floor(Gyear/4)) {
		l=1;
		}
	if (Gyear/100 == Math.floor(Gyear/100)) {
		if (Gyear/400 != Math.floor(Gyear/400)) {
			l=0;
			}
		}
	Gday =Math.floor((365+l)*GyearDf)+1;
	Gyear +=Gday/(365+l);
	var Hyear=(Gyear-621.574981435)/0.970224044;
	var Hdayf=Hyear-Math.floor(Hyear);
	var Hday=Hdayf*10631/30+1;
	Hmonth=1;
	HdayF=1;
	while (HdayF<HdayN) {
		Hday +=1;
		HdayF +=1
		if (Hday>= Monthf) {
			Hday=Hday-Monthf;
			Hmonth +=1;
			}
	}
	HDAY=Math.floor(Hday)+1;
	HMONTH=Hmonth;
	//alert('HDAY='+HDAY+'      HMONTH='+HMONTH);
}


function Pcision(F)
{
	var Status='ok';
	var Dn=0;
	var jDn=F;
	if (Moon(jDn-1)<=0) {
		jDn -=1;
		Dn +=1;
		}
	while (Status=='ok')
	{
		var Fn=Moon(jDn);
		var Fn2=Moon(jDn-1);
		if (((Fn/Math.abs(Fn))*(Fn2/Math.abs(Fn2)))==1)
		{
			Dn +=1;jDn -=1;
		}
		else 
		{
			if (Math.abs(Fn*Fn2)<0.2)
			{
				Status='End';
			}
			else
			{
				Dn +=1;
				jDn -=1;
			}
		}
	}
	//alert('Pcision='+Dn+'    di  F='+F);
	return Dn;
}

function Moon(jd)
{  
	var T_ = (jd-EPOCH*1)/ 36525.0; 
	var mE=297.8502042+ 445267.1115168*T_- 0.0016300*(T_*T_)+ (T_*T_*T_)/545868.0- (T_*T_*T_*T_)/113065000;
	var mA=134.9634114+ 477198.8676313*T_+ 0.0089970*(T_*T_)+ (T_*T_*T_)/69699.0 - (T_*T_*T_*T_)/863310000.0;

	var SmA=357.5291092 + (35999.0502909*T_)  - (0.0001536 *T_*T_)  + ((T_*T_*T_)/24490000);
	var D  = r(mE)*1;
	var S  = r(SmA)*1;
	var M = r(mA)*1;
	var phaseAngle=180-D-6.289*sin(M)+2.1*sin(S)-1.274*sin(r(2*D)-M)-0.658*sin(2*D);
	phaseAngle +=-0.214*sin(2*M); 
	phaseAngle +=-0.110*sin(1*D);
	  /** k  (46.1) **/
	var iF=(1+cos(phaseAngle))/2*(phaseAngle/Math.abs(phaseAngle));
	return iF ;
}

function rad(angle)
{
	return r(angle)*Math.PI/180;
}

function sin(angle)
{
	return Math.sin(rad(angle));
}

function cos(angle)
{
	return Math.cos(rad(angle));
}

function r(Input)
{if (Input >=0) {
	var Output=Input-Math.floor(Input/360)*360;
	} else {
		var Output=Input-Math.ceil(Input/360)*360+360;
		}
return Output;
}


function JulianDay (gYear,gMonth,gDay,gHour,gMinutes,gSeconds)
{
	var calendar='GREGORIAN';
	EPOCH = 2451545.0;
	if (gMonth <= 2) {
		--gYear;
		gMonth += 12;
		}
	var A = Math.floor(gYear/100);
	var B=0;
	if (calendar == 'GREGORIAN') {
		B =Math.floor( 2 - A + (A / 4));
		} else {
			B = 0;
			}
	var dayFraction = (gHour + gMinutes/60.0 + gSeconds/3600.0) / 24.0;
	var dayAndTime  = gDay + dayFraction;
	jd_ =Math.floor(365.25 * (gYear + 4712))+Math.floor(30.6001 * (gMonth+1)) + dayAndTime + B -63.5;
	return jd_*1;
}

function result()
{
        if (thistory==1)
		{
			WeekDay();
			if (cyear<0) {
				if (g==0) {
					bora="BH";
					} else {
						bora="BC";
						}
					} else {
						if (g==0) {
							bora="AH";
							} else {
								bora="AD";
								}
							}
			yfinale=day+"/"+month+"/"+year+" ";
			finale=mday+"/"+cmonth+"/"+Math.abs(cyear)+" ";
			theYear = Math.abs(cyear);
			thistory=0;
		}
}

function WeekDay()
{
        if (g==1) {
			var Dyear=cyear;
			var Dmonth=cmonth;
			var Dday=mday
			} else {
				var Dyear=year*1;
				var Dmonth=month*1;
				var Dday=day*1;
				} 
        if (bora=="BC" || Dyear<0 ) {
			Dyear=-Math.abs(Dyear)+1;
			}
        var DayCount=0; 
		var L=0;
        while (Dyear<10000){
        if (Dyear/4==Math.floor(Dyear/4)) {
			L=1;
			} else {
				L=0;
				}
        if (Dyear/100==Math.floor(Dyear/100)) { 
		if (Dyear/400 !=Math.floor(Dyear/400)) {
			L=0;
			}
		}
        if (Dmonth==14) {
			DayCount +=365+L;
			} else {
        while (Dmonth<13) {
        if (Dmonth==1 || Dmonth==3 || Dmonth==5 || Dmonth==7 || Dmonth==8 || Dmonth==10 || Dmonth==12) {
			var limit=31;
			} else {
				var limit=30;
				}
        if (Dmonth==2) {
			limit=28+L;
			}
        if (Dday==40) {
			DayCount +=limit;
			} else {
				while(Dday<limit){
        Dday +=1;
		DayCount +=1;
		}
	}
        Dmonth +=1;
		Dday=40;
	}
}
        Dyear +=1; 
		Dmonth=14;
		}
        
        var Dweek=DayCount%7;
        if (Dweek==0) {DAY=" (Fri)";}
        if (Dweek==6) {DAY=" (Sat)";}
        if (Dweek==5) {DAY=" (Sun)";} 
        if (Dweek==4) {DAY=" (Mon)";}
        if (Dweek==3) {DAY=" (Tue)";}
        if (Dweek==2) {DAY=" (Wed)";}
        if (Dweek==1) {DAY=" (Thu)";}
}


function compose()
{
	//convert and modify the old vars to new vars as needed.
	var sDayInWord_C;
	var iMonthInNumber_C;
	var iDayInNumber_C;
	var iYearInNumber_C;
	var sDayInWord_H;
	var iMonthInNumber_H;
	var iDayInNumber_H;
	var iYearInNumber_H;
	var sMonthInWord_H;
	var sMonthInWord_C;

	//initializations
	sSeperator = "&nbsp;" + "|" + "&nbsp;";
	sHijriMarker = "";

	iMonthInNumber_C = sMonth;
	iDayInNumber_C = sDay;
	iYearInNumber_C = sYear;
	iMonthInNumber_H = cmonth;
	iDayInNumber_H = mday;
	iYearInNumber_H = theYear;


	//do the conversion on the hijri month for the proper display
	if ( iMonthInNumber_H == 1 ) sMonthInWord_H = 'Muharram';
	if ( iMonthInNumber_H == 2 ) sMonthInWord_H = 'Safar';
	if ( iMonthInNumber_H == 3 ) sMonthInWord_H = 'Rabi` Al-Awwal';
	if ( iMonthInNumber_H == 4 ) sMonthInWord_H = 'Rabi` Al-Thani';
	if ( iMonthInNumber_H == 5 ) sMonthInWord_H = 'Jumada Al-Awwal';
	if ( iMonthInNumber_H == 6 ) sMonthInWord_H = 'Jumada Al-Thani';
	if ( iMonthInNumber_H == 7 ) sMonthInWord_H = 'Rajab';
	if ( iMonthInNumber_H == 8 ) sMonthInWord_H = 'Sha`ban';
	if ( iMonthInNumber_H == 9 ) sMonthInWord_H = 'Ramadan';
	if ( iMonthInNumber_H == 10 ) sMonthInWord_H = 'Shawwal';
	if ( iMonthInNumber_H == 11 ) sMonthInWord_H = 'Dhul-Qa`dah';
	if ( iMonthInNumber_H == 12 ) sMonthInWord_H = 'Dhul-Hijjah';


	//do the conversion on the C month for the proper display
	if ( iMonthInNumber_C == 1 ) sMonthInWord_C = 'January';
	if ( iMonthInNumber_C == 2 ) sMonthInWord_C = 'February';
	if ( iMonthInNumber_C == 3 ) sMonthInWord_C = 'March';
	if ( iMonthInNumber_C == 4 ) sMonthInWord_C = 'April';
	if ( iMonthInNumber_C == 5 ) sMonthInWord_C = 'May';
	if ( iMonthInNumber_C == 6 ) sMonthInWord_C = 'June';
	if ( iMonthInNumber_C == 7 ) sMonthInWord_C = 'July';
	if ( iMonthInNumber_C == 8 ) sMonthInWord_C = 'August';
	if ( iMonthInNumber_C == 9 ) sMonthInWord_C = 'September';
	if ( iMonthInNumber_C == 10 ) sMonthInWord_C = 'October';
	if ( iMonthInNumber_C == 11 ) sMonthInWord_C = 'November';
	if ( iMonthInNumber_C == 12 ) sMonthInWord_C = 'December';

	return iDayInNumber_H + " " + sMonthInWord_H + " " + iYearInNumber_H + " " ;
}

function converti(gg,mm,aa)
{
	sDay = gg;
	sMonth = mm;
	sYear = aa ;

	check();

	return compose();
}


function getHijriMonth(gg,mm,aa)
{
	sDay = gg;
	sMonth = mm;
	sYear = aa ;

	check();
	var tmp= new String(compose());
	return tmp.slice(2);
}

function getHijriDay(gg,mm,aa)
{
	sDay = gg;
	sMonth = mm;
	sYear = aa ;

	check();
	var tmp= new String(compose());
	var tmp2=tmp.split(' ');
	return tmp.substring(0,2);
}

//************************************************************
function getLongDateString()
{	//method defined on class Date.
	//Returns a date string of the form: Day DD Month,YYYY
	//(e.g. Sunday 27 September, 1998)
	//monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
//dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	monthNames = new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");
dayNames = new Array("Domenica","Lunedi","Martedi","Mercoledi","Giovedi","Venerdi","Sabato");
	dayOfWeek = this.getDay();
	day = dayNames[dayOfWeek];
	dateOfMonth = this.getDate();
monthNo = this.getMonth();
	month = monthNames[monthNo];
year = this.getYear();
	if (year < 2000)
year = year + 1900;
dateStr = day+" "+dateOfMonth+" "+month+", "+year;
	return dateStr;
}
//register the  method in the class Date
Date.prototype.getLongDateString=getLongDateString;

function DocDate()
{ //return the document modification date (excl.time)
//as a string
	DateTimeStr = document.lastModified;
	secOffset = Date.parse(DateTimeStr);
	if (secOffset == 0 || secOffset == null) //Opera3.2
			 dateStr = "Unknown";
	else
	{
		aDate = new Date();
		aDate.setTime(secOffset);
		//use method defined above
		datestr = aDate.getLongDateString();
	}
	return dateStr;
}
//*************************************************
// define variables

var this_date = new Date();                                   // get todays date

function makeCalendar(the_month, the_year)
{   
	var month_names = new Array("Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic");
	var days_in_month  = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
	var this_day = this_date.getDate();                           // returns date within month - range 1-31
	var this_month = this_date.getMonth();                        // returns month within year - range 0-11 
	var s="";
	first_of_month = new Date(the_year, the_month, 1);        // creates instance of date object for first of month
    day_of_week = first_of_month.getDay();                    // returns day within week - range 0-6
    if  (((the_year % 4 == 0) && (the_year % 100 != 0)) || (the_year % 400 == 0))
    {   days_in_month[1] = 29;                                // it's a leap year so change # days in Feb in array
    }
    else
    {   days_in_month[1] = 28;                                // not leap year - future use if multi year calendar built
    }
    s+="<TABLE CALLSPACING=0 CELLPADDING=0 border=0>";    // start building the month table
    s+="<TR BGCOLOR='#808080'><TH COLSPAN=7><font size=\"0\" face=\"verdana, arial\" color=\"white\">" + month_names[the_month] + " " + the_year + " / " + getHijriMonth("1",the_month+1, the_year)+ " - " + getHijriMonth(days_in_month[the_month],the_month+1, the_year)+'</font></TH></TR>';        // month and year heading
    s+="<TR BGCOLOR='#dddddd'><TH><font size=\"0\" >D</font></TH><TH><font size=\"0\" >L</font></TH><TH><font size=\"0\" >M</font></TH><TH><font size=\"0\" >M</font></TH><TH><font size=\"0\" >G</font></TH><TH><font size=\"0\" >V</font></TH><TH><font size=\"0\" >S</font></TH></TR>";    // day of week heading
    s+="<TR ALIGN=RIGHT>";
    var column = 0;
    for (i=0; i<day_of_week; i++)                             // skip to day_of_week value for first_of_month
    {   s+="<TD> </TD>";
        column++;
    }
    for (i=1; i<=days_in_month[the_month]; i++)
    {   if  ((i == this_day)  && (the_month == this_month) && (the_year == this_year))
        {   s+="<TD BGCOLOR='#CC0000'><font size=\"0\" COLOR='#FFFF00'>" + i + " " + getHijriDay(i,the_month+1, the_year) + "</font></TD>";       // highlite todays date
        }
        else
        {   s+="<TD BGCOLOR='#eeeeee'><font size=\"0\" >" + i + " " + getHijriDay(i,the_month+1, the_year) + "</font></TD>";       // no highlite for other dates
        }
        column++;
        if  (column == 7)                                     // start next row of dates for month
        {   s+="</TR><TR ALIGN=RIGHT>";
            column = 0;
        }
    }
    s+="</TR></TABLE>";  // month complete - close table
    return   s  ;                    
}
    
function y2K(number)                                          // if year < 2000 javascript gives only 2 digits for year
{ 
	return (number < 1000) ? number + 1900 : number; 
}
 
var this_year = y2K(this_date.getYear());
check();
var today =compose();

//**************************************


/**
 * Menu 990702
 * by gary smith, July 1997
 * Copyright (c) 1997-1999 Netscape Communications Corp.
 *
 * Netscape grants you a royalty free license to use or modify this
 * software provided that this copyright notice appears on all copies.
 * This software is provided "AS IS," without a warranty of any kind.
 */

function Menu(label) {
    this.version = "990702 [Menu; menu.js]";
    this.type = "Menu";
    this.fontSize = 11;
    this.fontWeight = "plain";
    this.fontFamily = "verdana,arial,helvetica,espy,sans-serif";
    this.fontColor = "#000000";
    this.fontColorHilite = "#ffffff";
    this.bgColor = "#c6d2c7";
    this.menuBorder = 1;
    this.menuItemBorder = 0;
    this.menuItemBgColor = "#c6d2c7";
    this.menuLiteBgColor = "#ffffff";
    this.menuBorderBgColor = "#777777";
    this.menuHiliteBgColor = "green";
    this.menuContainerBgColor = "#c6d2c7";
    this.childMenuIcon = "images/arrow.gif";
    this.childMenuIconHilite = "images/arrow.gif";
    this.menuItemWidth  = 150;
    this.menuItemHeight = 15;
	this.menuItemBorder = 1;
    this.items = new Array();
    this.actions = new Array();
    this.colors = new Array();
    this.mouseovers = new Array();
    this.mouseouts = new Array();
    this.childMenus = new Array();

    this.addMenuItem = addMenuItem;
    this.addMenuSeparator = addMenuSeparator;
    this.writeMenus = writeMenus;
    this.showMenu = showMenu;
    this.onMenuItemOver = onMenuItemOver;
    this.onMenuItemOut = onMenuItemOut;
    this.onMenuItemDown = onMenuItemDown;
    this.onMenuItemAction = onMenuItemAction;
    this.hideMenu = hideMenu;
    this.hideChildMenu = hideChildMenu;
    this.mouseTracker = mouseTracker;
    this.setMouseTracker = setMouseTracker;

    if (!window.menus) window.menus = new Array();
    this.label = label || "menuLabel" + window.menus.length;
    window.menus[this.label] = this;
    window.menus[window.menus.length] = this;
    if (!window.activeMenus) window.activeMenus = new Array();
    if (!window.menuContainers) window.menuContainers = new Array();
    if (!window.mDrag) {
        window.mDrag    = new Object();
        mDrag.startMenuDrag = startMenuDrag;
        mDrag.doMenuDrag    = doMenuDrag;
        this.setMouseTracker();
    }
    if (window.MenuAPI) MenuAPI(this);
}

function addMenuItem(label, action, color, mouseover, mouseout) {
    this.items[this.items.length] = label;
    this.actions[this.actions.length] = action;
    this.colors[this.colors.length] = color;
    this.mouseovers[this.mouseovers.length] = mouseover;
    this.mouseouts[this.mouseouts.length] = mouseout;
}

function addMenuSeparator() {
    this.items[this.items.length] = "separator";
    this.actions[this.actions.length] = "";
    this.menuItemBorder = 0;
}

function writeMenus(container) {
    if (!container && document.layers) {
        if (eval("document.width")) 
            container = new Layer(1000);
    } else if (!container && document.all) {
        if (!document.all["menuContainer"]) 
            document.writeln('<SPAN ID="menuContainer"></SPAN>');
        container = document.all["menuContainer"];
    }
    if (!container && !window.delayWriteMenus) {
        window.delayWriteMenus = this.writeMenus;
        window.menuContainerBgColor = this.menuContainerBgColor;
        setTimeout('delayWriteMenus()', 3000);
        return;
    }
    container.isContainer = "menuContainer" + menuContainers.length;
    menuContainers[menuContainers.length] = container;
    container.menus = new Array();
    for (var i=0; i<window.menus.length; i++) 
        container.menus[i] = window.menus[i];
    window.menus.length = 0;
    var countMenus = 0;
    var countItems = 0;
    var top = 0;
    var content = '';
    var proto;
    for (var i=0; i<container.menus.length; i++, countMenus++) {
        var menu = container.menus[i];
        proto = menu.prototypeStyles || this.prototypeStyles || menu;
        content += ''+
        '<DIV ID="menuLayer'+ countMenus +'" STYLE="position:absolute;left:10;top:'+ (i * 100) +';visibility:hidden;">\n'+
        '  <DIV ID="menuLite'+ countMenus +'" STYLE="position:absolute;left:'+ proto.menuBorder +';top:'+ proto.menuBorder +';visibility:hide;" onMouseOut="hideMenu(this);">\n'+
        '    <DIV ID="menuFg'+ countMenus +'" STYLE="position:absolute;left:1;top:1;visibility:hide;">\n'+
        '';
        var x=i;
        for (var i=0; i<menu.items.length; i++) {
            var item = menu.items[i];
            var childMenu = false;
            var defaultHeight = 20;
            var defaultIndent = 15;
            if (item.label) {
                item = item.label;
                childMenu = true;
            } else if (item.indexOf(".gif") != -1 && item.indexOf("<IMG") == -1) {
                item = '<IMG SRC="' + item + '" NAME="menuItem'+ countItems +'Img">';
                defaultIndent = 0;
                if (document.layers) {
                    defaultHeight = null;
                }
            }
            proto.menuItemHeight = proto.menuItemHeight || defaultHeight;
            proto.menuItemIndent = proto.menuItemIndent || defaultIndent;
            var itemProps = 'visibility:hide;font-Family:' + proto.fontFamily +';font-Weight:' + proto.fontWeight + ';fontSize:' + proto.fontSize + ';';
            if (document.all) 
                itemProps += 'font-size:' + proto.fontSize + ';" onMouseOver="onMenuItemOver(null,this);" onMouseOut="onMenuItemOut(null,this);" onClick="onMenuItemAction(null,this);';
            var dTag    = '<DIV ID="menuItem'+ countItems +'" STYLE="position:absolute;left:0;top:'+ (i * proto.menuItemHeight) +';'+ itemProps +'">';
            var dText   = '<DIV ID="menuItemText'+ countItems +'" STYLE="position:absolute;left:' + proto.menuItemIndent + ';top:0;color:'+ proto.fontColor +';">'+ item +'</DIV>\n<DIV ID="menuItemHilite'+ countItems +'" STYLE="position:absolute;left:' + proto.menuItemIndent + ';top:0;color:'+ proto.fontColorHilite +';visibility:hidden;">'+ item +'</DIV>';
            if (item == "separator") {
                content += ( dTag + '<DIV ID="menuSeparator'+ countItems +'" STYLE="position:absolute;left:1;top:2;"></DIV>\n<DIV ID="menuSeparatorLite'+ countItems +'" STYLE="position:absolute;left:1;top:2;"></DIV>\n</DIV>');
            } else if (childMenu) {
                content += ( dTag + dText + '<DIV ID="childMenu'+ countItems +'" STYLE="position:absolute;left:0;top:3;'+ itemProps +'"><IMG SRC="'+ proto.childMenuIcon +'"></DIV>\n</DIV>');
            } else {
                content += ( dTag + dText + '</DIV>');
            }
            countItems++;
        }
        content += '      <DIV ID="focusItem'+ countMenus +'" STYLE="position:absolute;left:0;top:0;visibility:hide;" onClick="onMenuItemAction(null,this);">&nbsp;</DIV>\n';
        content += '   </DIV>\n  </DIV>\n</DIV>\n';
        i=x;
    }
    if (!container) return;
    if (container.innerHTML) {
        container.innerHTML=content;
    } else {
        container.document.open("text/html");
        container.document.writeln(content);
        container.document.close();
    }
    proto = null;
    if (container.document.layers) {
        container.clip.width = window.innerWidth;
        container.clip.height = window.innerHeight;
        container.onmouseout = this.hideMenu;
        container.menuContainerBgColor = this.menuContainerBgColor;
        for (var i=0; i<container.document.layers.length; i++) {
            proto = container.menus[i].prototypeStyles || this.prototypeStyles || container.menus[i];
            var menu = container.document.layers[i];
            container.menus[i].menuLayer = menu;
            container.menus[i].menuLayer.Menu = container.menus[i];
            container.menus[i].menuLayer.Menu.container = container;
            var body = menu.document.layers[0].document.layers[0];
            body.clip.width = proto.menuWidth || body.clip.width;
            body.clip.height = proto.menuHeight || body.clip.height;
            for (var n=0; n<body.document.layers.length-1; n++) {
                var l = body.document.layers[n];
                l.Menu = container.menus[i];
                l.menuHiliteBgColor = proto.menuHiliteBgColor;
                l.document.bgColor = proto.menuItemBgColor;
                l.saveColor = proto.menuItemBgColor;
                l.mouseout  = l.Menu.mouseouts[n];
                l.mouseover = l.Menu.mouseovers[n];
                l.onmouseover = proto.onMenuItemOver;
                l.onclick = proto.onMenuItemAction;
                l.action = container.menus[i].actions[n];
                l.focusItem = body.document.layers[body.document.layers.length-1];
                l.clip.width = proto.menuItemWidth || body.clip.width + proto.menuItemIndent;
                l.clip.height = proto.menuItemHeight || l.clip.height;
                if (n>0) l.top = body.document.layers[n-1].top + body.document.layers[n-1].clip.height + proto.menuItemBorder;
                l.hilite = l.document.layers[1];
                l.document.layers[1].isHilite = true;
                if (l.document.layers[0].id.indexOf("menuSeparator") != -1) {
                    l.hilite = null;
                    l.clip.height -= l.clip.height / 2;
                    l.document.layers[0].document.bgColor = proto.bgColor;
                    l.document.layers[0].clip.width = l.clip.width -2;
                    l.document.layers[0].clip.height = 1;
                    l.document.layers[1].document.bgColor = proto.menuLiteBgColor;
                    l.document.layers[1].clip.width = l.clip.width -2;
                    l.document.layers[1].clip.height = 1;
                    l.document.layers[1].top = l.document.layers[0].top + 1;
                } else if (l.document.layers.length > 2) {
                    l.childMenu = container.menus[i].items[n].menuLayer;
                    l.icon = proto.childMenuIcon;
                    l.iconHilite = proto.childMenuIconHilite;
                    l.document.layers[2].left = l.clip.width -13;
                    l.document.layers[2].top = (l.clip.height / 2) -4;
                    l.document.layers[2].clip.left += 3;
                    l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
                }
            }
            body.document.bgColor = proto.bgColor;
            body.clip.width  = l.clip.width +1;
            body.clip.height = l.top + l.clip.height +1;
            body.document.layers[n].clip.width = body.clip.width;
            body.document.layers[n].captureEvents(Event.MOUSEDOWN);
            body.document.layers[n].onmousedown = proto.onMenuItemDown;
            //body.document.layers[n].onfocus = proto.onMenuItemDown;
            body.document.layers[n].onmouseout = proto.onMenuItemOut;
            body.document.layers[n].Menu = l.Menu;
            body.document.layers[n].top = -30;
            menu.document.bgColor = proto.menuBorderBgColor;
            menu.document.layers[0].document.bgColor = proto.menuLiteBgColor;
            menu.document.layers[0].clip.width = body.clip.width +1;
            menu.document.layers[0].clip.height = body.clip.height +1;
            menu.clip.width = body.clip.width + (proto.menuBorder * 2) +1;
            menu.clip.height = body.clip.height + (proto.menuBorder * 2) +1;
            if (menu.Menu.enableTracker) {
                menu.Menu.disableHide = true;
                setMenuTracker(menu.Menu);
            }
        }
    } else if (container.document.all) {
        var menuCount = 0;
        for (var x=0; x<container.menus.length; x++) {
            var menu = container.document.all("menuLayer" + x);
            container.menus[x].menuLayer = menu;
            container.menus[x].menuLayer.Menu = container.menus[x];
            container.menus[x].menuLayer.Menu.container = menu;
            proto = container.menus[x].prototypeStyles || this.prototypeStyles || container.menus[x];
            proto.menuItemWidth = proto.menuItemWidth || 200;
            menu.style.backgroundColor = proto.menuBorderBgColor;
            for (var i=0; i<container.menus[x].items.length; i++) {
                var l = container.document.all["menuItem" + menuCount];
                l.Menu = container.menus[x];
                proto = container.menus[x].prototypeStyles || this.prototypeStyles || container.menus[x];
                l.style.pixelWidth = proto.menuItemWidth;
                l.style.pixelHeight = proto.menuItemHeight;
                if (i>0) l.style.pixelTop = container.document.all["menuItem" + (menuCount -1)].style.pixelTop + container.document.all["menuItem" + (menuCount -1)].style.pixelHeight + proto.menuItemBorder;
                l.style.fontSize = proto.fontSize;
                l.style.backgroundColor = proto.menuItemBgColor;
                l.style.visibility = "inherit";
                l.saveColor = proto.menuItemBgColor;
                l.menuHiliteBgColor = proto.menuHiliteBgColor;
                l.action = container.menus[x].actions[i];
                l.hilite = container.document.all["menuItemHilite" + menuCount];
                l.focusItem = container.document.all["focusItem" + x];
                l.focusItem.style.pixelTop = -30;
                l.mouseover = l.Menu.mouseovers[x];
                l.mouseout  = l.Menu.mouseouts[x];
                var childItem = container.document.all["childMenu" + menuCount];
                if (childItem) {
                    l.childMenu = container.menus[x].items[i].menuLayer;
                    childItem.style.pixelLeft = l.style.pixelWidth -11;
                    childItem.style.pixelTop = (l.style.pixelHeight /2) -4;
                    childItem.style.pixelWidth = 30 || 7;
                    childItem.style.clip = "rect(0 7 7 3)";
                    l.Menu.childMenus[l.Menu.childMenus.length] = l.childMenu;
                }
                var sep = container.document.all["menuSeparator" + menuCount];
                if (sep) {
                    sep.style.clip = "rect(0 " + (proto.menuItemWidth - 3) + " 1 0)";
                    sep.style.backgroundColor = proto.bgColor;
                    sep = container.document.all["menuSeparatorLite" + menuCount];
                    sep.style.clip = "rect(1 " + (proto.menuItemWidth - 3) + " 2 0)";
                    sep.style.backgroundColor = proto.menuLiteBgColor;
                    l.style.pixelHeight = proto.menuItemHeight/2;
                    l.isSeparator = true
                }
                menuCount++;
            }
            proto.menuHeight = (l.style.pixelTop + l.style.pixelHeight);
            var lite = container.document.all["menuLite" + x];
            lite.style.pixelHeight = proto.menuHeight +2;
            lite.style.pixelWidth = proto.menuItemWidth + 2;
            lite.style.backgroundColor = proto.menuLiteBgColor;
            var body = container.document.all["menuFg" + x];
            body.style.pixelHeight = proto.menuHeight + 1;
            body.style.pixelWidth = proto.menuItemWidth + 1;
            body.style.backgroundColor = proto.bgColor;
            container.menus[x].menuLayer.style.pixelWidth  = proto.menuWidth || proto.menuItemWidth + (proto.menuBorder * 2) +2;
            container.menus[x].menuLayer.style.pixelHeight = proto.menuHeight + (proto.menuBorder * 2) +2;
            if (menu.Menu.enableTracker) {
                menu.Menu.disableHide = true;
                setMenuTracker(menu.Menu);
            }
        }
        container.document.all("menuContainer").style.backgroundColor = container.menus[0].menuContainerBgColor;
        container.document.saveBgColor = container.document.bgColor;
    }
    window.wroteMenu = true;
}

function onMenuItemOver(e, l, a) {
    l = l || this;
    a = a || window.ActiveMenuItem;
    if (document.layers) {
        if (a) {
            a.document.bgColor = a.saveColor;
            if (a.hilite) a.hilite.visibility = "hidden";
            if (a.childMenu) a.document.layers[1].document.images[0].src = a.icon;
        } else {
            a = new Object();
        }
        if (this.mouseover && this.id != a.id) {
            if (this.mouseover.length > 4) {
                var ext = this.mouseover.substring(this.mouseover.length-4);
                if (ext == ".gif" || ext == ".jpg") {
                    this.document.layers[1].document.images[0].src = this.mouseover;
                } else {
                    eval("" + this.mouseover);
                }
            }
        }
        if (l.hilite) {
            l.document.bgColor = l.menuHiliteBgColor;
            l.zIndex = 1;
            l.hilite.visibility = "inherit";
            l.hilite.zIndex = 2;
            l.document.layers[1].zIndex = 1;
            l.focusItem.zIndex = this.zIndex +2;
        }
        l.focusItem.top = this.top;
        l.Menu.hideChildMenu(l);
    } else if (l.style && l.Menu) {
        document.onmousedown=l.Menu.onMenuItemDown;
        if (a) {
            a.style.backgroundColor = a.saveColor;
            if (a.hilite) a.hilite.style.visibility = "hidden";
        } else {
            a = new Object();
		}
        if (l.mouseover && l.id != a.id) {
            if (l.mouseover.length > 4) {
                var ext = l.mouseover.substring(l.mouseover.length-4);
                if (ext == ".gif" || ext == ".jpg") {
                    l.document.images[l.id + "Img"].src = l.mouseover;
                } else {
                    eval("" + l.mouseover);
                }
            }
        }
		if (l.isSeparator) return;
        l.style.backgroundColor = l.menuHiliteBgColor;
        if (l.hilite) {
            l.style.backgroundColor = l.menuHiliteBgColor;
            l.hilite.style.visibility = "inherit";
        }
        l.focusItem.style.pixelTop = l.style.pixelTop;
        l.focusItem.style.zIndex = l.zIndex +1;
        l.zIndex = 1;
        l.Menu.hideChildMenu(l);
    }
    window.ActiveMenuItem = l;
}

function onMenuItemOut(e, l, a) {
    l = l || this;
	a = a || window.ActiveMenuItem;
    if (l.id.indexOf("focusItem")) {
        if (a && l.top) {
            l.top = -30;
			if (a.mouseout && a.id != l.id) {
				if (a.mouseout.length > 4) {
					var ext = a.mouseout.substring(a.mouseout.length-4);
					if (ext == ".gif" || ext == ".jpg") {
						a.document.layers[1].document.images[0].src = a.mouseout;
					} else {
						eval("" + a.mouseout);
					}
				}
			}
        } else if (a && l.style) {
            document.onmousedown=null;
            window.event.cancelBubble=true;
	        if (l.mouseout) {
				if (l.mouseout.length > 4) {
					var ext = l.mouseout.substring(l.mouseout.length-4);
					if (ext == ".gif" || ext == ".jpg") {
						l.document.images[l.id + "Img"].src = l.mouseout;
					} else {
						eval("" + l.mouseout);
					}
				}
			}
        }
    }
}

function onMenuItemAction(e, l) {
    l = window.ActiveMenuItem;
    if (!l) return;
    if (!ActiveMenu.Menu.disableHide) hideActiveMenus(ActiveMenu.menuLayer);
    if (l.action) {
        eval("" + l.action);
    }
}

function showMenu(menu, x, y, child) {
    if (!window.wroteMenu) return;
    if (document.layers) {
        if (menu) {
            var l = menu.menuLayer || menu;
            if (typeof(menu) == "string") {
                for (var n=0; n < menuContainers.length; n++) {
                    l = menuContainers[n].menus[menu];
                    for (var i=0; i<menuContainers[n].menus.length; i++) {
                        if (menu == menuContainers[n].menus[i].label) l = menuContainers[n].menus[i].menuLayer;
                        if (l) break;
                    }
                }
				if (!l) return;
            }
            l.Menu.container.document.bgColor = null;
            l.left = 1;
            l.top = 1;
            hideActiveMenus(l);
            if (this.visibility) l = this;
            window.ActiveMenu = l;
            window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);
            setTimeout('if(window.ActiveMenu)window.ActiveMenu.Menu.setMouseTracker();', 300);
        } else {
            var l = child;
        }
        if (!l) return;
        for (var i=0; i<l.layers.length; i++) {                
            if (!l.layers[i].isHilite) 
                l.layers[i].visibility = "inherit";
            if (l.layers[i].document.layers.length > 0) 
                showMenu(null, "relative", "relative", l.layers[i]);
        }
        if (l.parentLayer) {
            if (x != "relative") 
                l.parentLayer.left = x || window.pageX || 0;
            if (l.parentLayer.left + l.clip.width > window.innerWidth) 
                l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
            if (y != "relative") 
                l.parentLayer.top = y || window.pageY || 0;
            if (l.parentLayer.isContainer) {
                l.Menu.xOffset = window.pageXOffset;
                l.Menu.yOffset = window.pageYOffset;
                l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
                l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
                if (l.parentLayer.menuContainerBgColor) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
            }
        }
        l.visibility = "inherit";
        if (l.Menu) l.Menu.container.visibility = "inherit";
    } else if (document.all) {
        var l = menu.menuLayer || menu;
        hideActiveMenus(l);
        if (typeof(menu) == "string") {
            l = document.all[menu];
            for (var n=0; n < menuContainers.length; n++) {
                l = menuContainers[n].menus[menu];
                for (var i=0; i<menuContainers[n].menus.length; i++) {
                    if (menu == menuContainers[n].menus[i].label) l = menuContainers[n].menus[i].menuLayer;
                    if (l) break;
                }
            }
        }
        window.ActiveMenu = l;
        l.style.visibility = "inherit";
        if (x != "relative") 
            l.style.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
        if (y != "relative") 
            l.style.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
        l.Menu.xOffset = document.body.scrollLeft;
        l.Menu.yOffset = document.body.scrollTop;
    }
    if (menu) {
        window.activeMenus[window.activeMenus.length] = l;
    }
}

function hideMenu(e) {
    var l = e || window.ActiveMenu;
    if (!l) return true;
    if (l.menuLayer) {
        l = l.menuLayer;
    } else if (this.visibility) {
        l = this;
    }
    if (l.menuLayer) {
        l = l.menuLayer;
    }
    var a = window.ActiveMenuItem;
    document.saveMousemove = document.onmousemove;
    document.onmousemove = mouseTracker;
    if (a && document.layers) {
        a.document.bgColor = a.saveColor;
        a.focusItem.top = -30;
        if (a.hilite) a.hilite.visibility = "hidden";
        if (a.childMenu) a.document.layers[1].document.images[0].src = a.icon;
        if (mDrag.oldX <= e.pageX+3 && mDrag.oldX >= e.pageX-3 && mDrag.oldY <= e.pageY+3 && mDrag.oldY >= e.pageY-3) {
            if (a.action && window.ActiveMenu) setTimeout('window.ActiveMenu.Menu.onMenuItemAction();', 2);
        } else if (document.saveMousemove == mDrag.doMenuDrag) {
            if (window.ActiveMenu) return true;
        }
    } else if (window.ActiveMenu && document.all) {
        document.onmousedown=null;
        if (a) {
            a.style.backgroundColor = a.saveColor;
            if (a.hilite) a.hilite.style.visibility = "hidden";
        }
        if (document.saveMousemove == mDrag.doMenuDrag) {
            return true;
        }
	}
    if (window.ActiveMenu) {
        if (window.ActiveMenu.Menu) {
            if (window.ActiveMenu.Menu.disableHide) return true;
            e = window.event || e;
            if (!window.ActiveMenu.Menu.enableHideOnMouseOut && e.type == "mouseout") return true;
        }
    }
    hideActiveMenus(l);
    return true;
}

function hideChildMenu(menuLayer) {
    var l = menuLayer || this;
    for (var i=0; i < l.Menu.childMenus.length; i++) {
        if (document.layers) {
            l.Menu.childMenus[i].visibility = "hidden";
        } else if (document.all) {
            l.Menu.childMenus[i].style.visibility = "hidden";
        }
        l.Menu.childMenus[i].Menu.hideChildMenu(l.Menu.childMenus[i]);
    }
    if (l.childMenu) {
        if (document.layers) {
            l.Menu.container.document.bgColor = null;
            l.Menu.showMenu(null,null,null,l.childMenu.layers[0]);
            l.childMenu.zIndex = l.parentLayer.zIndex +1;
            l.childMenu.top = l.top + l.parentLayer.top + l.Menu.menuLayer.top;
            if (l.childMenu.left + l.childMenu.clip.width > window.innerWidth) {
                l.childMenu.left = l.parentLayer.left - l.childMenu.clip.width + l.Menu.menuLayer.top + 15;
                l.Menu.container.clip.left -= l.childMenu.clip.width;
            } else if (l.Menu.childMenuDirection == "left") {
                l.childMenu.left = l.parentLayer.left - l.parentLayer.clip.width;
                l.Menu.container.clip.left -= l.childMenu.clip.width;
            } else {
                l.childMenu.left = l.parentLayer.left + l.parentLayer.clip.width  + l.Menu.menuLayer.left -5;
            }
            l.Menu.container.clip.width += l.childMenu.clip.width +100;
            l.Menu.container.clip.height += l.childMenu.clip.height;
            l.document.layers[1].zIndex = 0;
            l.document.layers[1].document.images[0].src = l.iconHilite;
            l.childMenu.visibility = "inherit";
        } else if (document.all) {
            l.childMenu.style.zIndex = l.Menu.menuLayer.style.zIndex +1;
            l.childMenu.style.pixelTop = l.style.pixelTop + l.Menu.menuLayer.style.pixelTop;
            if (l.childMenu.style.pixelLeft + l.childMenu.style.pixelWidth > document.width) {
                l.childMenu.style.pixelLeft = l.childMenu.style.pixelWidth + l.Menu.menuLayer.style.pixelTop + 15;
            } else if (l.Menu.childMenuDirection == "left") {
                //l.childMenu.style.pixelLeft = l.parentLayer.left - l.parentLayer.clip.width;
            } else {
                l.childMenu.style.pixelLeft = l.Menu.menuLayer.style.pixelWidth + l.Menu.menuLayer.style.pixelLeft -5;
            }
            l.childMenu.style.visibility = "inherit";
        }
        if (!l.childMenu.disableHide) 
            window.activeMenus[window.activeMenus.length] = l.childMenu;
    }
}

function hideActiveMenus(l) {
    if (!window.activeMenus) return;
    for (var i=0; i < window.activeMenus.length; i++) {
    if (!activeMenus[i]) return;
        if (activeMenus[i].visibility && activeMenus[i].Menu) {
            activeMenus[i].visibility = "hidden";
            activeMenus[i].Menu.container.visibility = "hidden";
            activeMenus[i].Menu.container.clip.left = 0;
        } else if (activeMenus[i].style) {
            activeMenus[i].style.visibility = "hidden";
        }
    }
    document.onmousemove = mouseTracker;
    window.activeMenus.length = 0;
}

function mouseTracker(e) {
    e = e || window.Event || window.event;
    window.pageX = e.pageX || e.clientX;
    window.pageY = e.pageY || e.clientY;
}

function setMouseTracker() {
    if (document.captureEvents) {
        document.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
    }
    document.onmousemove = this.mouseTracker;
    document.onmouseup = this.hideMenu;
}

function setMenuTracker(menu) {
    if (!window.menuTrackers) window.menuTrackers = new Array();
    menuTrackers[menuTrackers.length] = menu;
    window.menuTrackerID = setInterval('menuTracker()',2);
}

function menuTracker() {
    for (var i=0; i < menuTrackers.length; i++) {
        if (!isNaN(menuTrackers[i].xOffset) && document.layers) {
            var off = parseInt((menuTrackers[i].xOffset - window.pageXOffset) / 10);
            if (isNaN(off)) off = 0;
            if (off < 0) {
                menuTrackers[i].container.left += -off;
                menuTrackers[i].xOffset += -off;
            } else if (off > 0) {
                menuTrackers[i].container.left += -off;
                menuTrackers[i].xOffset += -off;
            }
        }
        if (!isNaN(menuTrackers[i].yOffset) && document.layers) {
            var off = parseInt((menuTrackers[i].yOffset - window.pageYOffset) / 10);
            if (isNaN(off)) off = 0;
            if (off < 0) {
                menuTrackers[i].container.top += -off;
                menuTrackers[i].yOffset += -off;
            } else if (off > 0) {
                menuTrackers[i].container.top += -off;
                menuTrackers[i].yOffset += -off;
            }
        }
        if (!isNaN(menuTrackers[i].xOffset) && document.body) {
            var off = parseInt((menuTrackers[i].xOffset - document.body.scrollLeft) / 10);
            if (isNaN(off)) off = 0;
            if (off < 0) {
                menuTrackers[i].menuLayer.style.pixelLeft += -off;
                menuTrackers[i].xOffset += -off;
            } else if (off > 0) {
                menuTrackers[i].menuLayer.style.pixelLeft += -off;
                menuTrackers[i].xOffset += -off;
            }
        }
        if (!isNaN(menuTrackers[i].yOffset) && document.body) {
            var off = parseInt((menuTrackers[i].yOffset - document.body.scrollTop) / 10);
            if (isNaN(off)) off = 0;
            if (off < 0) {
                menuTrackers[i].menuLayer.style.pixelTop += -off;
                menuTrackers[i].yOffset += -off;
            } else if (off > 0) {
                menuTrackers[i].menuLayer.style.pixelTop += -off;
                menuTrackers[i].yOffset += -off;
            }
        }
    }
}

function onMenuItemDown(e, l) {
    l = l || window.ActiveMenuItem || this;
    if (!l.Menu) {
    } else {
        if (document.layers) {
            mDrag.dragLayer = l.Menu.container;
            mDrag.startMenuDrag(e);
        } else {
            mDrag.dragLayer = l.Menu.container.style;
            mDrag.startMenuDrag(e);
            window.event.cancelBubble=true;
        }
    }
}

function startMenuDrag(e) {
    if (document.layers) {
        if (e.which > 1) {
            if (window.ActiveMenu) ActiveMenu.Menu.container.visibility = "hidden";
            window.ActiveMenu = null;
            return true;
        }
        document.captureEvents(Event.MOUSEMOVE);
        var x = e.pageX;
        var y = e.pageY;
    } else {
        var x = window.event.clientX;
        var y = window.event.clientY;
    }
    mDrag.offX = x;
    mDrag.offY = y;
    mDrag.oldX = x;
    mDrag.oldY = y;
    if (!ActiveMenu.Menu.disableDrag) document.onmousemove = mDrag.doMenuDrag;
    return false;
}

function doMenuDrag(e) {
    if (document.layers) {
        mDrag.dragLayer.moveBy(e.pageX-mDrag.offX,e.pageY-mDrag.offY);
        mDrag.offX = e.pageX;
        mDrag.offY = e.pageY;
    } else {
        mDrag.dragLayer.pixelLeft = window.event.offsetX;
        mDrag.dragLayer.pixelTop  = window.event.offsetY;
        return false; //for IE
    }
}

function makeM(){
	var browse=new SniffBrowser(); 
		if( browse.machine!="mac")
	{	  		
	var MM='<TABLE BGCOLOR="transparent" align=left border=0 cellPadding=0 cellSpacing=0  width='+(mnuGroups.length*80)+'><TR>';
        
   	window.onResize = fnInit;
	     
    var tmp=new Array();
	var tmp1=new Array();
	var tmp2=new Array();
	for(var i=0;i<mnuGroups.length;i++){
		tmp=mnuGroups[i].split("|");
		MM+='<TD class=menulabel noWrap>';
		MM+='<A href="JavaScript:window.showMenu(window.men'+i+','+(i>0?i*80:1)+',15)" ';
		MM+='onmouseout="window.event.srcElement.style.color=\'green\';" ';
		MM+='onmouseover="{window.event.srcElement.style.color=\'red\';window.showMenu(window.men'+i+','+(i>0?i*80:1)+',15);}">';
		MM+=tmp[0];
		MM+='</A></TD>';
		eval("window.men"+i+" = new Menu(\""+tmp[0]+"\");");
		tmp1=mnuGroupsItems[i];
		for(var j=0;j<tmp1.length;j++){
			tmp2=tmp1[j].split("|");
			eval("men"+i+".addMenuItem(\""+tmp2[0]+"\",\"location=\'"+tmp2[1]+"\'\");");
		}		

	}

	window.myMenu = new Menu();
	for(var g=0;g<mnuGroups.length;g++)
		eval("myMenu.addMenuItem(men"+g+");");
	myMenu.writeMenus();
	MM+='</TR></TABLE>';
	oM.innerHTML=MM;
	}else{
	var MM='<TABLE BGCOLOR="transparent" align=left border=0 cellPadding=0 cellSpacing=0  width='+(mnuGroups.length*80)+'><TR>';
        
   	window.onResize = fnInit;
	     
    var tmp=new Array();
	var tmp1=new Array();
	var tmp2=new Array();
	for(var i=0;i<mnuGroups.length;i++){
		tmp=mnuGroups[i].split("|");
		MM+='<TD class=menulabel noWrap>';
		MM+='<A href="'+tmp[0]+'.htm" >';
		MM+=tmp[0];
		MM+='</A></TD>';

	}
	
	MM+='</TR></TABLE>';
	oM.innerHTML=MM;
	}
}


//*********************************************
function isvalidemail(emailStr) {
var emailPat='/^(.+)@(.+)$/';
var specialChars='\\(\\)<>@,;:\\\\\\\"\\.\\[\\]';
var validChars='\[^\\s' + specialChars + '\]';
var quotedUser='(\"[^\"]*\")';
var ipDomainPat='/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/';
var atom=validChars + '+';
var word='(' + atom + '|' + quotedUser + ')';
var userPat=new RegExp('^' + word + '(\\.' + word + ')*$');
var domainPat=new RegExp('^' + atom + '(\\.' + atom +')*$');
var matchArray=emailStr.match(emailPat);
if (matchArray==null) {
	alert('Email non valida.');
	return false;
}
var user=matchArray[1];
var domain=matchArray[2];
 
if (user.match(userPat)==null) {
    alert('Username non  valido.');
    return false;
}

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {
	  for (var i=1;i<=4;i++) {
	    if (IPArray[i]>255) {
	        alert('Indirizzo IP de destinazione non valido!');
		return false;
	    }
    }
    return true;
}

var domainArray=domain.match(domainPat);
if (domainArray==null) {
	alert('Nome dominio non valido.');
    return false;
}

var atomPat=new RegExp(atom,"g");
var domArr=domain.match(atomPat);
var len=domArr.length;
if (domArr[domArr.length-1].length<2 ||  domArr[domArr.length-1].length>3) {
   alert("L'indirizzo deve finire con l'estensione del dominio o quella del paese.");
   return false;
}

if (len<2) {
   var errStr="Manca il nome del Host all'indirizzo!";
   alert(errStr);
   return false;
}

return true;

}

//*******************************
function intPart(floatNum){
if (floatNum< -0.0000001){
	 return Math.ceil(floatNum-0.0000001);
	}
return Math.floor(floatNum+0.0000001)	;
}

function Dayofweek(wdn){
					if(wdn==0){
						return "Lunedi";
						}
					if(wdn==1){
						return "Martedi";
						}
					if(wdn==2){
						return "Mercoledi";
						}
					if(wdn==3){
						return "Giovedi";
						}
					if(wdn==4){
						return "Venerdi";
						}
					if(wdn==5){
						return "Sabato";
						}
					if(wdn==6){
						return "Domenica";
						}
	return "";

}


function MonthName(wdn){
	monthNames = new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre");
	return monthNames[wdn]; 

}

function GregToIsl(dd,mm,yy) {
	d=parseInt(dd);
	m=parseInt(mm);
	y=parseInt(yy);
	if ((y>1582)||((y==1582)&&(m>10))||((y==1582)&&(m==10)&&(d>14))) 
	{
     jd=intPart((1461*(y+4800+intPart((m-14)/12)))/4)+intPart((367*(m-2-12*(intPart((m-14)/12))))/12)-intPart((3*(intPart((y+4900+intPart((m-14)/12))/100)))/4)+d-32075;
	}else{
	 jd = 367*y-intPart((7*(y+5001+intPart((m-9)/7)))/4)+intPart((275*m)/9)+d+1729777;
	}
	l=jd-1948440+10632;
	n=intPart((l-1)/10631);
	l=l-10631*n+354;
	j=(intPart((10985-l)/5316))*(intPart((50*l)/17719))+(intPart(l/5670))*(intPart((43*l)/15238));
	l=l-(intPart((30-j)/15))*(intPart((17719*j)/50))-(intPart(j/16))*(intPart((15238*j)/43))+29;
	m=intPart((24*l)/709);
	d=l-intPart((709*m)/24);
	y=30*n+j-30;

	return (Dayofweek(jd%7)+ ' '+ d+'/'+m+'/'+y);
}
function IslToGreg(dd,mm,yy) {
	d=parseInt(dd);
	m=parseInt(mm);
	y=parseInt(yy);
	jd=intPart((11*y+3)/30)+354*y+30*m-intPart((m-1)/2)+d+1948440-385;
	if(jd> 2299160 )
	{
		l=jd+68569;
		n=intPart((4*l)/146097);
		l=l-intPart((146097*n+3)/4);
		i=intPart((4000*(l+1))/1461001);
		l=l-intPart((1461*i)/4)+31;
		j=intPart((80*l)/2447);
		d=l-intPart((2447*j)/80);
		l=intPart(j/11);
		m=j+2-12*l;
		y=100*(n-49)+i+l;
	}else	
	{
		j=jd+1402;
		k=intPart((j-1)/1461);
		l=j-1461*k;
		n=intPart((l-1)/365)-intPart(l/1461);
		i=l-365*n+30;
		j=intPart((80*i)/2447);
		d=i-intPart((2447*j)/80);
		i=intPart(j/11);
		m=j+2-12*i;
		y=4*k+n+i-4716;
	}

	return (Dayofweek(jd%7)+ ' '+ d+' '+MonthName(m-1)+' '+y);

}
function prossimaRicorrenza()
{
	var toDay = new Date();
	d=parseInt(toDay.getDay());
	m=parseInt(toDay.getMonth());
	y=parseInt(toDay.getYear());

	if ((y>1582)||((y==1582)&&(m>10))||((y==1582)&&(m==10)&&(d>14))) 
	{
		jd=intPart((1461*(y+4800+intPart((m-14)/12)))/4)+intPart((367*(m-2-12*(intPart((m-14)/12))))/12)-intPart((3*(intPart((y+4900+intPart((m-14)/12))/100)))/4)+d-32075;
	}else
	{
		jd = 367*y-intPart((7*(y+5001+intPart((m-9)/7)))/4)+intPart((275*m)/9)+d+1729777;
	}

	l=jd-1948440+10632;
	n=intPart((l-1)/10631);
	l=l-10631*n+354;
	j=(intPart((10985-l)/5316))*(intPart((50*l)/17719))+(intPart(l/5670))*(intPart((43*l)/15238));
	l=l-(intPart((30-j)/15))*(intPart((17719*j)/50))-(intPart(j/16))*(intPart((15238*j)/43))+29;
	m=intPart((24*l)/709);
	d=l-intPart((709*m)/24);
	y=30*n+j-30;
//alert(an*10000 + ':' + m*100 +':'+ d)
	if((an*10000+m*100+d)<=(an*10000+101)) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(1,1,an) + '</b> - corrispondente al <FONT color=red>1° giorno di Muhàrram</FONT> - 1° mese dell\'anno egiriano. Non è giorno festivo per l\'Islàm, in quanto le festività islamiche sono: la Festa della rottura del Digiuno e la Festa del Sacrificio. In questo giorno vien fatta la Commemorazione dell\'Egira.<br>Si commemora il trasferimento del Profeta Muhàmmad dalla Mecca a Medina (l\'Egira), avvenuto nell\' anno miladico 622. <br><br></FONT>' ;
	if((m*100+d)<=10) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(10,1,an) + '</b> - corrispondente al <FONT color=red>10° giorno di Muhàrram</FONT> (1° mese dell\'anno egiriano) detto in arabo ’àshurà Giorno di digiuno. commemora il passaggio del Mar Rosso degli Ebrei guidati da Mosé, su lui la pace.<br><br></FONT>' ;
	if((m*100+d)<=212) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(12,3,an) + '</b> - corrispondente al <FONT color=red>12° giorno di Rabì primo</FONT> (3° mese dell\'anno egiriano). Commemorazione della nascita del Profeta. Si commemora la Nascita del Profeta (*), avvenuta 53 anni prima dell\'Egira:<br>dhikra l-màulidi n-nàbawìyyi sh-sharìf.<br><br></FONT>' ;
	if((m*100+d)<=527) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(27,7,an) + '</b> - corrispondente al <FONT color=red>27° giorno di Ràgiab</FONT> (7° mese dell\'anno egiriano). Si commemora l\'Assunzione del profeta Muhàmmad(*) alla presenza di Allàh, da Gerusalemme, dopo il viaggio notturno del Profeta dalla Mecca a Gerusalemme.<br>Dhikra al-isrà wa l-mi’ràg<br><br></FONT>' ;
	if((m*100+d)<=801) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(1,9,an) + '</b> - corrispondente al <FONT color=red>1° giorno di Ramadàn</FONT> (9° mese dell\'anno egiriano). Ha inizio il digiuno - dall\'alba al tramonto di ogni giorno del mese.<br><br></FONT>' ;
	if((m*100+d)<=817) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(17,9,an) + '</b> - corrispondente al <FONT color=red>17° giorno di Ramadàn</FONT> (9° mese dell\'anno egiriano). Si commemora la vittoria di Badr, l\'oasi dove i Musulmani neutralizzarono la prima aggressione dei politeisti della Mecca (623 e.v.)<br>Dhikra ghàzwati Bàdri l-kubra<br><br></FONT>' ;
	if((m*100+d)<=820) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(20,9,an) + '</b> - corrispondente al <FONT color=red>20° giorno di Ramadàn</FONT> (9° mese dell\'anno egiriano). Si commemora la liberazione della Mecca dal potere politeistico (8 dell\'egira/630 e.v.).<br>Dhikra fàt/hi Màkka<br><br></FONT>' ;
	if((m*100+d)<=827) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(27,9,an) + '</b> - è il <FONT color=red>27° giorno del mese di Ramadàn</FONT> (9° mese dell\'anno egiriano). Si commemora la Notte del Destino , la notte, in cui fu rivelato il Corano e Muhàmmad fu investito della Missione profetica (13 prima dell\'Egira / 609 e.v.) <br>Dhikra làylati - l - qàdr<br><br></FONT>' ;
	if((m*100+d)<=901) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(1,10,an) + '</b> - corrispondente al <FONT color=red>1° giorno di Shawwàl</FONT> (10° mese dell\'anno egiriano). Festa solenne della Rottura del Digiuno di Ramadàn. E\' la prima delle due feste dell\'Islàm: \'ìdu-l-fitr al-mubàrak. In ogni centro abitato, piccolo o grande, del mondo, tutti i musulmani ivi residenti celebrano la festività solenne, come comunità, con un rito d\'adorazione congregazionale unitaria di tutta la comunità locale in una musàlla (luogo di preghiera) all\'aperto, tempo permettendo.<br><br></FONT>' ;
	if((m*100+d)<=1101) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(1,12,an) + '</b> - corrispondente al <FONT color=red>1° giorno di Zulhèggiah</FONT>. Il mese del pellegrinaggio alla Mecca.<br><br></FONT>' ;
	if((m*100+d)<=1109) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(9,12,an) + '</b> - corrispondente al <FONT color=red>9° giorno di Zulhìggiah</FONT>, il 12° mese dell\'anno egiriano. E\' il giorno dell\'Uqùf’arafàt (la sosta di Arafàt)<br><br></FONT>' ;
	if((m*100+d)<=1110) return '<FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(10,12,an) + '</b> - corrispondente al <FONT color=red>10° giorno di Zulhìggiah</FONT>. E\' la seconda festa solenne dell\'Islàm (la Festa del Sacrificio), In arabo : ’ìdu-l-àd/ha<br><br></FONT>' ;
return "";
}


function fnFesteMenu() {
var fnFesteMenu='';
fnFesteMenu+='<table border="0"  cellspacing="0" cellpadding="0" width="130"><tr><td   bordercolor="#bbbbbb"  style="border-bottom-style:solid;border-bottom-width:1px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px;width: 130px">';
fnFesteMenu+='<table border="0" bgcolor="transparent" cellspacing="0" cellpadding="0" >';
fnFesteMenu+='<tr><td  colspan="3" bgcolor="gray" nowrap><font style="font-size: 8pt;font-family: verdana, arial;color:white;">&nbsp;<b>Ricorrenze '+an+'&nbsp;<IMG border=0 src="images/new1.gif"></b></font></td></tr>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="1° giorno di Muhàrram">'+IslToGreg(0,1,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="10° giorno di Muhàrram">'+IslToGreg(9,1,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="12° giorno di Rabì primo">'+IslToGreg(11,3,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="27° giorno di Ràgiab">'+IslToGreg(26,7,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="1° giorno di Ramadàn">'+IslToGreg(0,9,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="17° giorno di Ramadàn">'+IslToGreg(16,9,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="20° giorno di Ramadàn">'+IslToGreg(19,9,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="27° giorno del mese di Ramadàn">'+IslToGreg(26,9,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="1° giorno di Shawwàl">'+IslToGreg(0,10,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="1° giorno di Zulhèggiah">'+IslToGreg(0,12,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="9° giorno di Zulhìggiah">'+IslToGreg(8,12,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='<TR><td width="5"></td><TD>»&nbsp;<A href="Scadenzario Feste.htm" title="10° giorno di Zulhìggiah">'+IslToGreg(9,12,an) + '</A></TD><td width="5"></td></TR>';
fnFesteMenu+='</table></td></tr></table><BR>';
	return fnFesteMenu;
}

	var toDay = new Date();
	var toDayHijri = GregToIsl(toDay.getDay(),toDay.getMonth(),toDay.getYear());
	var splits = toDayHijri.split("/");
	var splits2 = splits[0].split(" ");
	var gh = parseInt(splits2[1])+1;
	var mh = parseInt(splits[1])+2;
	var an = parseInt(splits[2]);
	if(gh > 10 && mh == 12) 
	{
		an++;
	}
		//alert(toDayHijri+":"+gh+":"+mh+":"+an);
	var scad = '<table width=100% border=0 cellpadding=0 cellspacing=0><th align=left><br><br>DATE IMPORTANTI DEL CALENDARIO ISLAMICO NEL ANNO ' +  an +' DELL\'EDJIRA <br><br></th>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(0,1,an) + '</b> - corrispondente al <FONT color=red>1° giorno di Muhàrram</FONT> - 1° mese dell\'anno egiriano. Non è giorno festivo per l\'Islàm, in quanto le festività islamiche sono: la Festa della rottura del Digiuno e la Festa del Sacrificio. In questo giorno vien fatta la Commemorazione dell\'Egira.<br>Si commemora il trasferimento del Profeta Muhàmmad dalla Mecca a Medina (l\'Egira), avvenuto nell\' anno miladico 622. <br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(9,1,an) + '</b> - corrispondente al <FONT color=red>10° giorno di Muhàrram</FONT> (1° mese dell\'anno egiriano) detto in arabo ’àshurà Giorno di digiuno. commemora il passaggio del Mar Rosso degli Ebrei guidati da Mosé, su lui la pace.<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(11,3,an) + '</b> - corrispondente al <FONT color=red>12° giorno di Rabì primo</FONT> (3° mese dell\'anno egiriano). Commemorazione della nascita del Profeta. Si commemora la Nascita del Profeta (*), avvenuta 53 anni prima dell\'Egira:<br>dhikra l-màulidi n-nàbawìyyi sh-sharìf.<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(26,7,an) + '</b> - corrispondente al <FONT color=red>27° giorno di Ràgiab</FONT> (7° mese dell\'anno egiriano). Si commemora l\'Assunzione del profeta Muhàmmad(*) alla presenza di Allàh, da Gerusalemme, dopo il viaggio notturno del Profeta dalla Mecca a Gerusalemme.<br>Dhikra al-isrà wa l-mi’ràg<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(0,9,an) + '</b> - corrispondente al <FONT color=red>1° giorno di Ramadàn</FONT> (9° mese dell\'anno egiriano). Ha inizio il digiuno - dall\'alba al tramonto di ogni giorno del mese.<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(16,9,an) + '</b> - corrispondente al <FONT color=red>17° giorno di Ramadàn</FONT> (9° mese dell\'anno egiriano). Si commemora la vittoria di Badr, l\'oasi dove i Musulmani neutralizzarono la prima aggressione dei politeisti della Mecca (623 e.v.)<br>Dhikra ghàzwati Bàdri l-kubra<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(19,9,an) + '</b> - corrispondente al <FONT color=red>20° giorno di Ramadàn</FONT> (9° mese dell\'anno egiriano). Si commemora la liberazione della Mecca dal potere politeistico (8 dell\'egira/630 e.v.).<br>Dhikra fàt/hi Màkka<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(26,9,an) + '</b> - è il <FONT color=red>27° giorno del mese di Ramadàn</FONT> (9° mese dell\'anno egiriano). Si commemora la Notte del Destino , la notte, in cui fu rivelato il Corano e Muhàmmad fu investito della Missione profetica (13 prima dell\'Egira / 609 e.v.) <br>Dhikra làylati - l - qàdr<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(0,10,an) + '</b> - corrispondente al <FONT color=red>1° giorno di Shawwàl</FONT> (10° mese dell\'anno egiriano). Festa solenne della Rottura del Digiuno di Ramadàn. E\' la prima delle due feste dell\'Islàm: \'ìdu-l-fitr al-mubàrak. In ogni centro abitato, piccolo o grande, del mondo, tutti i musulmani ivi residenti celebrano la festività solenne, come comunità, con un rito d\'adorazione congregazionale unitaria di tutta la comunità locale in una musàlla (luogo di preghiera) all\'aperto, tempo permettendo.<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(0,12,an) + '</b> - corrispondente al <FONT color=red>1° giorno di Zulhèggiah</FONT>. Il mese del pellegrinaggio alla Mecca.<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(8,12,an) + '</b> - corrispondente al <FONT color=red>9° giorno di Zulhìggiah</FONT>, il 12° mese dell\'anno egiriano. E\' il giorno dell\'Uqùf’arafàt (la sosta di Arafàt)<br><br></FONT></td></tr>' ;
	scad += '<tr><td><FONT color=#000000 face=Verdana size=1> <b>'+IslToGreg(9,12,an) + '</b> - corrispondente al <FONT color=red>10° giorno di Zulhìggiah</FONT>. E\' la seconda festa solenne dell\'Islàm (la Festa del Sacrificio), In arabo : ’ìdu-l-àd/ha<br><br></FONT></td></tr>' ;
	scad += '</table>' ;
