function GetCookie (cookie, name) 
{
  var arg  = name + "\b";
  var alen = arg.length;
  var clen = cookie.length;
  var i    = 0;
  while (i < clen)
  {
     var j = i + alen;
     if (cookie.substring(i, j) == arg)
     {
         var end = cookie.indexOf ("\t", j);
         if (end == -1)
         {
             end = cookie.length;
         }
         return unescape(cookie.substring(j, end));
     }
     i = i + 1; //cookie.indexOf(" ", i) + 1;
     if (i == 0) break;
  }
  return "";
} 

function htmlBeginTable()
{
	document.write( '<table BORDER=0 CELLPADDING=5 COLS=12 WIDTH="100%" >');
}
function htmlEndTable()
{
	document.write( '</table>');
}
function htmlBeginRow()
{
	document.write( '<tr>');
}
function htmlEndRow()
{
	document.write( '</tr>');
}
function htmlBeginData()
{
	document.write( '<td ALIGN=CENTER NOWRAP>');
}
function htmlBeginDataRight()
{
	document.write( '<td ALIGN=RIGHT NOWRAP>');
}
function htmlEndData()
{
	document.write( '</td>');
}
function htmlMenuItem( htmlFileName, imageFileName, textAlt, textUser )
{
        htmlBeginData();
	document.write( '<a href="' + htmlFileName + '">');
        document.write( '<img src="' + imageFileName + '" LOWSRC="/gifFricanoBackground.gif" alt="' + textAlt + '" border=0 height=32 width=36 align=absbottom>');
        document.write( '</a>' );
        document.write( '<br>' );
        document.write( '<font face="Arial Narrow" size=-2>');
        document.write( textUser );
        document.write('</font>' );
        htmlEndData();
}

htmlBeginTable();
htmlBeginRow();

htmlMenuItem( "/"                                           , "/gifHome2.gif"      , "Click to go to the Home Pagee"   , "Home Page"      );
htmlMenuItem( "/CarmeloRosa.html"                           , "/gifCamera1.gif"    , "Click to view The Family Tree"   , "Family Tree"    );
htmlMenuItem( "/cgi-bin/cgi.cgi?action=emailbook_sendtop"   , "/email.gif"         , "Click to view The eMail Registry", "eMail Registry" );
htmlMenuItem( "/cgi-bin/cgi.cgi?action=guestbook_sendtop"   , "/gifWrite.gif"      , "Click to view The Guest Book"    , "Guest Book"     );
htmlMenuItem( "/cgi-bin/cgi.cgi?action=schoolbook_sendtop"  , "/gifDinner.gif"     , "Click to view Family Recipes"    , "Family Recipes" );
htmlMenuItem( "/FricanoResearch.html"                       , "/gifLightHouse.gif" , "Click to Search For Fricanos"    , "Fricano Search" );
htmlMenuItem( "/FricanoFamilyPrivacy.html"                  , "/gifTunnnel.gif"    , "Click to read about your privacy", "Your Privacy"   );
htmlMenuItem( "/FricanoFamilyVisitorArea.html"              , "/gifCoffeeCup.gif"  , "Click to go to The Visitor Area" , "Visitor Info"   );


htmlBeginDataRight();
document.write( "<center><b>" + GetCookie(document.cookie,"realname") + "<b></center>" );
document.write( "<center><b>" + GetCookie(document.cookie,"city") + "  " + GetCookie(document.cookie,"state") + "<b></center>" );
htmlEndData();

htmlEndRow();

htmlBeginRow();

htmlMenuItem( "/weatherIndex.html"                          , "/images/gifWeather.gif"  , "Click to see local weather"        , "Weather"   );
htmlMenuItem( "/classes/javaGames.html"                     , "/images/gifGames.gif"    , "Click to enter the game room"      , "Game Room"   );
htmlMenuItem( "/calender.html"                              , "/images/gifDateTime.gif" , "Click to view the calender"        , "Calender"   );
htmlMenuItem( "/cgi-bin/cgi.cgi?action=funniesbook_sendtop" , "/gifJester.gif"     , "Click to read some jokes"        , "Joke-O-Matic"   );
htmlMenuItem( "/rosary" , "/rosary/images/b7.jpg"  , "Rosary"         , "Rosary" );
htmlMenuItem( "" , "/gifTelescope.gif" , "Disabled"         , "Site Map" );
htmlMenuItem( "/cgi-bin/cgi.cgi?action=linkbook_sendtop"    , "/gifRedDotCool.gif" , "Click to see other cool sites - visit one soon"  , "Cool Sites" );
htmlMenuItem( "/cgi-bin/logon.html"                         , "/gifSafe.gif"       , "Click to Log On with another ID"  , "Log On" );

htmlEndRow();
htmlEndTable();


