function display_menu(dirpath)
{
document.write('<tr>');
  document.write('<td rowspan=2 WIDTH=200 bgcolor=#343434 valign=bottom align=right><a href="'+dirpath+'index.html"><img src="'+dirpath+'images/publio.jpg" border=0></a></td>');

  document.write('<td colspan=1 bgcolor=#B5B6B5 valign=top align=left class="Label">');
  document.write('&nbsp;&nbsp;<a href="'+dirpath+'friends.html" class="MenuLabelWhite"><b>TELL A FRIEND</b></a> | ');
  document.write('<a href="'+dirpath+'culdesac.html" class="MenuLabelWhite">FACToid</a>');
  document.write('</td>');

  document.write('<td colspan=2 bgcolor=#B5B6B5 valign=top align=right class="Label">');
  document.write('<a href="'+dirpath+'mission.html" class="MenuLabelWhite">MISSION</a> | ');
  document.write('<a href="'+dirpath+'where.html" class="MenuLabelWhite">WHERE</a> | ');
  document.write('<a href="'+dirpath+'culdesac.html" class="MenuLabelWhite">SEARCH</a> | ');
  document.write('<a href="'+dirpath+'contact.html" class="MenuLabelWhite">CONTACT</a>&nbsp;&nbsp;');
  document.write('</td>');
document.write('</tr>');

document.write('<tr>');
  document.write('<td colspan=3 bgcolor=#B5B6B5 valign=bottom align=center class="Label">');
  document.write('<a href="'+dirpath+'subscribe.html" class="MenuLabel"><b>BUY</b></a> | ');
  document.write('<a href="'+dirpath+'join.html" class="MenuLabel"><b>JOIN</b></a> | ');
  document.write('<a href="'+dirpath+'culdesac.html" class="MenuLabel"><b>SIGN-IN</b></a>');
  document.write('</td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td WIDTH=200 bgcolor=#B5B6B5 align=right valign=top class="Label"></td>');

document.write('<td WIDTH=230 bgcolor=#343434 valign=top align=left class="Label">');
document.write('&nbsp;&nbsp;<a href="'+dirpath+'upcoming.html" class="MenuLabelWhite">UPCOMING</a> | ');
document.write('<a href="'+dirpath+'index.html" class="MenuLabelWhite">CURRENT</a> | ');
document.write('<a href="'+dirpath+'previous.html" class="MenuLabelWhite">PREVIOUS</a>');
document.write('</td>');

document.write('<td WIDTH=150 bgcolor=#343434>&nbsp;</td>');

document.write('<td WIDTH=200 bgcolor=#343434 valign=top align=right class="Label">');
document.write('<a href="'+dirpath+'submit.html" class="MenuLabelWhite">SUBMIT</a> | ');
document.write('<a href="'+dirpath+'advertise.html" class="MenuLabelWhite">SPONSOR</a> | ');
document.write('<a href="'+dirpath+'news.html" class="MenuLabelWhite">NEWS</a>&nbsp;&nbsp;');
document.write('</td>');
document.write('</tr>');
}

//***********************************************************

function display_lower_menu(dirpath)
{

document.write('<tr>');
  document.write('<td bgcolor=#B5B6B5 valign=bottom align=right><span class="LabelWhite">&copy; '+getyear()+' Prontis Corporation. &nbsp;&nbsp;</span></td>');
  
  document.write('<td colspan=3 bgcolor=#6B6D6B align=left valign=bottom class="LabelLightGray">');
    document.write('<br><br><br><br><br><br>&nbsp;&nbsp; <i>Publio</i> & <i>Culture at the Boiling Point</i> are trademarks of Prontis Corporation.');
  document.write('</td>');
document.write('</tr>');

}

//***********************************************************

function display_mgmt_menu(dirpath)
{
document.write('<tr width=100%>');
  document.write('<td WIDTH=30% bgcolor=#343434 valign=bottom align=left>&nbsp;&nbsp;<img src="'+dirpath+'images/publio.jpg" border=0></td>');

  document.write('<td WIDTH=70% bgcolor=#B5B6B5 valign=bottom align=left class="Label">');
  document.write('&nbsp;&nbsp;');
  document.write('</td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td bgcolor=#B5B6B5></td>');
document.write('<td bgcolor=#343434 valign=top align=left class="Label">');
document.write('<br></td>');

document.write('</tr>');
}

//***********************************************************

function display_pgfooter()
{
document.write('<table border="0" cellpadding="0" cellspacing="0" valign=top align=left>');
document.write('<tr><td colspan=3>&nbsp;</td></tr><tr>');
document.write('<td valign=top align=left width=150><span class="BulletOrange">• </span><a href="#TopOfPage" class="LinkLabel">Back to Top</a></td>');
document.write('<td valign=top align=left width=100><span class="Label">&copy; <script language="JavaScript">document.write(getyear())</script></span></td>');
document.write('<td valign=top align=left><span class="Label"><i>Powered by <a href="http://wwww.prontis.com">Prontis</a></i></span></td>');
document.write('</tr>');
document.write('</table>');
}

//***********************************************************

function display_advertisers(dirpath)
{
document.write('<table width="50" border="0" cellpadding="0" cellspacing="0" summary="">');
document.write('<tr bgcolor="#999999">');
document.write('<td width="3" valign="top">&nbsp;</td>');
document.write('<td><span class="casestudy">Advertisers</span></td>');
document.write('<td width="3" valign="top">&nbsp;</td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td width="3" valign="top" class="leftborder">&nbsp;</td>');
document.write('<td valign="top" class="smallfont">');
document.write('<br><a href="" class="orangelink">Science eStore</a>');
document.write('<br>Study tools, school supplies, and gifts.<br><br>');

document.write('<a href="" class="orangelink">Buy Land on the Moon</a>');
document.write('<br>Buy an acre of land on the Moon.<br><br>');

document.write('<a href="" class="orangelink">Audiobooks on CD</a>');
document.write('<br>Direct-to-home USA & Canada Free Trial.<br><br>');

document.write('<a href="" class="orangelink">Help Address Hunger</a>');
document.write('<br>There are many volunteer positions. Join us today to make a difference.<br><br>');
document.write('</td>');

document.write('<td width="3" valign="top" class="rightborder">&nbsp;</td>');
document.write('</tr>');

document.write('<tr bgcolor="#999999"><td colspan=3>&nbsp;</td></tr>');
document.write('</table>');
}

//***********************************************************

function getdatetime()
{
curDate = Date();
monthString = new Array("01","02","03","04","05","06","07","08","09","10","11","12");

if ((navigator.appName == "Netscape") && (navigator.appVersion.substring(0,1) == "2"))
	{month = curDate.substring(4,7);}
else 	{month = getMonth(curDate);}

day = curDate.substring(8,10);
time = curDate.substring(curDate.length-13,curDate.length-5);

if (navigator.appVersion.substring(0,1) >= 3)
	{strTodaysDate = ((monthString[month] + "/" + day + "/" + getyear() + " " + time));}
else	{strTodaysDate = ((month + "/" + day + "/" + getyear() + " " + time));}

return strTodaysDate;
}

//***********************************************************

function getdate()
{
curDate = Date();
//  && (navigator.appVersion.substring(0,1) == "2"))

//if ((navigator.appName == "Netscape") )
//	{month = curDate.substring(4,7);}
//else 	{month = getMonthLetters(curDate);}

	month = getMonthLetters(curDate);

return (curDate.substring(8,10) + " " + month + " " + getyear());
//return (curDate.substring(8,10) + " " + month + " " + Date());

}

//***********************************************************

function getyear()
{
//  && (navigator.appVersion.substring(0,1) == "2"))
	curDate = Date();
	returnDate = "";

	if ((navigator.appName == "Netscape"))
		{ returnDate = curDate.substring(11,15); }
	else 	{ returnDate = curDate.substring(curDate.length-4,curDate.length); }

	return(returnDate);
}


//***********************************************************
function getMonth(val)
{
	var months;
                var monthnum = 0;
                months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
                for (i=0;i<=11;i++) {
                        monthStr = val.substring(4,7);
                        if (months[i] == monthStr) {
                                monthnum = i;
                        }
                }
	return monthnum;
}

//***********************************************************
function getMonthLetters(val)
{
	var months;
                var month_word;
                months = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
                months_letters = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
                for (i=0;i<=11;i++) {
                        monthStr = val.substring(4,7);
                        if (months[i] == monthStr) {
                                month_word = months_letters[i];
                        }
                }
	return month_word;
}
//***********************************************************
function putcursor(obj)
{   
      eval('document.'+obj+'.focus()');
      //forms[0].elements[0]
}
