function StandardPage()
{
	this.m_szBodyTag = "<body alink='#6699cc' marginheight='0' text='#000000' bgcolor='#666698' background='images/backstripes.jpg' topmargin='0' marginwidth='0' link='#336699' leftmargin='0' vlink='#5588bb'>";
	this.oMenu = new StandardMenu();
};

StandardPage.prototype.doc_head = function()
{
	document.write( 
		this.m_szBodyTag, 
		"<div id='fixItDiv'></div>", 
		"<div align='center'>" );
};

StandardPage.prototype.menu_start= function()
{
	this.oMenu.Start();

	// Home
	this.oMenu.Element( "home", szBaseHref, "RHVAA Home", "HOME" );

	// About RHVAA
	this.oMenu.Element( "about_rhvaa", "about_rhvaa/", "About RHVAA", "ABOUT RHVAA" );

	// About Reid-Hillview Airport
	this.oMenu.Element( "about_rhv", "about_rhv/", "About RHV", "REID-HILLVIEW AIRPORT" );

	// Newsletter
	this.oMenu.Element( "newsletter", "newsletter/", "Newsletter", "NEWSLETTER" );

	// Links
	this.oMenu.Element( "links", "links/", "Links", "LINKS" );

	// News
	this.oMenu.Element( "news", "news/", "News", "NEWS & EVENTS" );

	// Gallery
	this.oMenu.Element( "gallery", "gallery/", "Gallery", "PHOTO GALLERY" );

	// Amelia
	// this.oMenu.Element( "amelia", "amelia/", "Amelia", "AMELIA" );

	document.write( "<img src='images/blankdot.gif' width='6' height='1' border='0' alt=''>",
		"<img src='images/nav_graydot.gif' width='133' height='1' border='0' alt='' /><br>" );

	document.write( "<img src='images/blankdot.gif' width='1' height='20' border='0' alt=''><br>",
		"<img src='images/blankdot.gif' width='30' height='1' border='0' alt=''>",
		"<img src='images/animated_american_flag2.gif' border='0' width='90' height='50'>" );

	document.write( "</div>",
		"<img src='images/nav_blackdot.gif' width='145' height='1' border='0' alt=''>",
		"</td>",
		"<td width='10' bgcolor='#33cc99' valign='bottom'>",
		"<img src='images/nav_greendot.gif' width='10' height='1' border='0' alt=''>",
		"</td>" );
};

StandardPage.prototype.menu_background = function( bBackground )
{
	this.oMenu.Background( bBackground );
};

StandardPage.prototype.menu_end = function()
{
	document.write( "</td>",
			"</tr>",
			"<tr>",
				"<td width='145' bgcolor='#000000' valign='top'>",
					"<div id='menuHolder'>",
						"<!-- Credits -->",
						"<img src='images/blankdot.gif' width='6' height='1' border='0' alt='' />",
						"<img src='images/nav_graydot.gif' width='133' height='1' border='0' alt='' /><br>",
						"<div class='home'><a href='credits.htm' class='home' title='Credits'>SITE CREDITS</a></div>",
						"<img src='images/blankdot.gif' width='6' height='1' border='0' alt='' />",
						"<img src='images/nav_graydot.gif' width='133' height='1' border='0' alt='' /><br>",
					"</div>",
				"</td>",
				"<td width='10' bgcolor='#33cc99' valign='bottom'><img src='images/nav_greendot.gif' width='10' height='1' border='0' alt=''></td>",
					"<td bgcolor='#ffffff' style='background: white;'>",
					"<hr noshade size='1' color='black' width='90%'>",
					"<div align='center'>",
						"<address>",
						// Site last updated <!--#echo var='LAST_MODIFIED'-->
						// "<br>",
						"email: " );
						writeMailToWithClearDisplayText('|jgrfxyjwEwm{ff3twlDXzgojhyB\\jg%uflj%htrrjsyx','Webmaster'),
						document.write( "</br>",
						"</address>",
					"</div>",
					"<hr noshade size='1' color='black' width='90%'>",
					"</div>",
				"</td>",
			"</tr>",
		"</tr>",
	"</table>" );
};

function StandardMenu()
{
	this.m_szTableTag = "<table width='600' cellpadding='0' cellspacing='0' border='0' colspan='5'>";
};

StandardMenu.prototype.Start = function()
{
	document.write(	this.m_szTableTag );
	document.write(		"<tr> ");
	document.write(			"<td width='145' bgcolor='#000000' valign='top'> ");
	document.write(				"<div id='menuHolder'> ");
	// document.write(			"<img src='images/rhvaa_logo_small.gif' width='145' height='116' border='0' alt='RHVAA'>" );
	document.write(				"<div align='center'> ");
	document.write(				"<img src='images/rhvaa_logo_small.gif' width='108' height='69' border='0' alt='RHVAA'> ");
	document.write(				"</div> ");
	document.write(				"<br> ");
};

StandardMenu.prototype.Element = function( szClass, szURL, szTitle, szText )
{
		document.write( "<img src='images/blankdot.gif' width='6' height='1' border='0' alt='' /><img",
			"src='images/nav_graydot.gif' width='133' height='1' border='0' alt='' /><br>" );

		document.write( 
			"<div class='", szClass, "'>",
			"<a ",
			"href='", szURL, "' ",
			"class='", szClass,  "' ",
			"title='", szTitle, "'>", 
			szText, 
			"</a></div>" );
};

StandardMenu.prototype.Background = function( bBackground )
{
	if ( bBackground ) {
		document.write( "<td width='402' style='background: white url(images/home_back.jpg) no-repeat;'>",
			"<div><img src='images/blankdot.gif' width='168' height='490' border='0' align='left' alt=''></div>" );
	} else {
		document.write( "<td width='402' bgcolor='#ffffff'>",
			"<div><img src='images/blankdot.gif' width='168' height='1' border='0' align='left' alt=''></div>" );
	}
};

