function createMenuImages() {

	// Is this browser hip to images? Declare a global variable so that
	// the canManipulateImages does not have to be called every time

	// Pre-load images.
	imgPointerInactive = preLoadImage('images/PointerInactive.gif');
	imgPointerActive = preLoadImage('images/PointerActive.gif');

	btnLearnToFlyInactive = preLoadImage('images/LearnToFlyInactive.gif');
	btnLearnToFlyActive = preLoadImage('images/LearnToFlyActive.gif');

	btnClassesPricingInactive = preLoadImage('images/ClassesPricingInactive.gif');
	btnClassesPricingActive = preLoadImage('images/ClassesPricingActive.gif');

	btnFAQInactive = preLoadImage('images/FAQInactive.gif');
	btnFAQActive = preLoadImage('images/FAQActive.gif');

	btnAboutTheInstructorInactive = preLoadImage('images/AboutTheInstructorInactive.gif');
	btnAboutTheInstructorActive = preLoadImage('images/AboutTheInstructorActive.gif');

	btnTestimonialsInactive = preLoadImage('images/TestimonialsInactive.gif');
	btnTestimonialsActive = preLoadImage('images/TestimonialsActive.gif');

	btnEquipmentInactive = preLoadImage('images/EquipmentInactive.gif');
	btnEquipmentActive = preLoadImage('images/EquipmentActive.gif');

	btnLinksInactive = preLoadImage('images/LinksInactive.gif');
	btnLinksActive = preLoadImage('images/LinksActive.gif');

	btnContactUsInactive = preLoadImage('images/ContactUsInactive.gif');
	btnContactUsActive = preLoadImage('images/ContactUsActive.gif');
}


function writeHeader() {
	document.writeln('<tr>');
	document.writeln('	<td valign="top" align="left" colSpan="6">');
	document.writeln('		<table id="tblHeader" width="100%" background="images/Background.gif" cellSpacing="0" cellPadding="0" border="0">');
	document.writeln('			<tr>');
	document.writeln('				<td height="80" valign="top" width="277"><a href="index.html"><img src="images/FlyTexasLogo.gif" width="277" height="77" alt="Home" border="0"></a></td>');
	document.writeln('				<td align="center">');
	document.writeln('				The Best Hang Gliding<br>Instruction in Texas');
	document.writeln('				<td align="right">');
	document.writeln('					<table cellSpacing="0" cellPadding="0" border="0" ID="Table1">');
//	document.writeln('						<tr>');
//	document.writeln('							<td colspan="2" align="right">');
//	document.writeln('								<p class="headerDate">' + TodayAsString() + '</p>');
//	document.writeln('							</td>');
//	document.writeln('						</tr>');
	document.writeln('						<tr>');
	document.writeln('							<td colspan="2" height="15"></td>');
	document.writeln('						</tr>');
	document.writeln('						<tr>');
	document.writeln('							<td width="100"><p class="header">Austin Weather</p></td>');
	document.writeln('							<td width="100" align="right"><p class="header"><a href="http://www.weather.com/weather/tendayprint/USTX0057" target="tgtWeather">forecast</a>&nbsp;|&nbsp;');
	document.writeln('							<a href="http://www.aws.com/kxan/wx.asp?id=astac" target="tgtWeather">real-time</a></p></td>');
	document.writeln('						</tr>');
	document.writeln('						<tr>');
	document.writeln('							<td><p class="header">Kingsland Weather</p></td>');
	document.writeln('							<td align="right"><p class="header"><a href="http://www.weather.com/weather/tendayprint/USTX0696" target="tgtWeather">forecast</a>&nbsp;|&nbsp;');
	document.writeln('							<a href="http://www.aws.com/kxan/wx.asp?id=kngsl" target="tgtWeather">real-time</a></p></td>');
	document.writeln('						</tr>');
	document.writeln('					</table></td>');
	document.writeln('			</tr>');
	document.writeln('		</table></td>');
	document.writeln('</tr>');
}
function writeMenuNew(subject){
	document.writeln('<tr>');
	document.writeln('	<td width="176" valign="top">');
	document.writeln('		<table id="tblNav" cellSpacing="0" cellPadding="0" border="0">');
	document.writeln('			<tr>');
	document.writeln('				<td valign="top" width="8" height="15"><img alt="" src="images/Corner.gif"></td>');
	document.writeln('				<td>');
	document.writeln('					<form ACTION="http://search.freefind.com/find.html" METHOD="GET" target="_self" ID="Form1">');
	document.writeln('						<input TYPE="HIDDEN" NAME="id" SIZE="-1" VALUE="79134811" ID="Hidden1"> <input TYPE="HIDDEN" NAME="pid" SIZE="-1" VALUE="r" ID="Hidden2">');
	document.writeln('						<input TYPE="HIDDEN" NAME="mode" SIZE="-1" VALUE="ALL" ID="Hidden3"> <input type="HIDDEN" name="n" value="0" ID="Hidden4">');
	document.writeln('						<table ID="Table2">');
	document.writeln('							<tr>');
	document.writeln('									<td><p class="header">Site Search</p></td>')
	document.writeln('								</tr>');
	document.writeln('								<tr>');
	document.writeln('								<td><input TYPE="TEXT" NAME="query" SIZE="15" ID="Text1"></td>');
	document.writeln('								<td><input TYPE="IMAGE" SRC="images/btnGo.gif" WIDTH="24" HEIGHT="20" BORDER="0" ALIGN="RIGHT" ID="btnGo" NAME="btnGo" /></td>');
	document.writeln('							</tr>');
	document.writeln('						</table>');
	document.writeln('					</form></td>');
	document.writeln('				<td><img src="images/SlatePixel.gif" border="0" width="1" height="66"></td>');
	document.writeln('			</tr>');
	document.writeln('			<tr>');
	document.writeln('				<td height="1" colspan="3"><img src="images/SlatePixel.gif" border="0" width="177" height="1"></td>');
	document.writeln('			</tr>');
	document.writeln('			<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');
	
	document.writeln('		<tr>');
	document.writeln('		<td colspan=2>');
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="276">');
document.write('<PARAM name="movie" value="flashvortex.swf">');
document.write('<PARAM name="quality" value="best">');
document.write('<PARAM name="menu" value="true">');
document.write('<EMBED src="flashvortex.swf" quality="best" menu="true" height="276" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
document.write('</EMBED></OBJECT>');
	document.writeln('		</td></tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');
	
	document.writeln('		<tr>');
	document.writeln('			<td height="1" colspan="3"><img src="images/SlatePixel.gif" border="0" width="177" height="1"></td>');
	document.writeln('		</tr>');
	
	document.writeln('		<tr>');
	document.writeln('			<td colspan="2" height="250" align="center" valign="middle">');
	document.writeln('				<p class="menu">Hang glide in Mexico!!!</br>');
	document.writeln('				<a href="http://www.flymex.com/mexico/" target="flyMexico"><img src="images/FlyMexicoLogo50pcnt.gif" width="138" height="42" border="0"></a><br>');
	document.writeln('				Hang gliding tours<br>and instruction in Monterrey<br>and Valle de Bravo</p></td>');
	document.writeln('			<td><img src="images/SlatePixel.gif" border="0" width="1" height="250"></td>');
	document.writeln('		<tr>');
	document.writeln('			<td height="1" colspan="3"><img src="images/SlatePixel.gif" border="0" width="177" height="1"></td>');
	document.writeln('		</tr>');
	document.writeln('		</tr>');

	document.writeln('		<tr>');
	document.writeln('			<td colspan="2" height="321" align="center" valign="middle">');
	document.writeln('				<p class="menu"><a href="http://www.ushga.org/" target="ushga"><img src="images/USHGALogo.gif" width="81" height="84" border="0"></a><br>');
	document.writeln('				United States Hang Gliding Association</p></td>');
	document.writeln('				<td><img src="images/SlatePixel.gif" border="0" width="1" height="321"></td>');
	document.writeln('		</tr>');
	document.writeln('	</table></td>');
}

function writeMenu(subject) {
	document.writeln('<tr>');
	document.writeln('	<td width="176" valign="top">');
	document.writeln('		<table id="tblNav" cellSpacing="0" cellPadding="0" border="0">');
	document.writeln('			<tr>');
	document.writeln('				<td valign="top" width="8" height="15"><img alt="" src="images/Corner.gif"></td>');
	document.writeln('		</tr>');

	// Home
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="/">Home</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');
	
	// Learn to Fly
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="learnToFly.html">Learn to Fly</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');
	
	// Classes and Pricing
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="classesPricing.html">Pricing</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');
	
	// Book a Class
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="register.php">Book a Class</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');
	
	// Schedule
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="https://www.google.com/calendar/embed?src=flymexico@gmail.com&ctz=America/Chicago">Schedule</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');
	
	// Spacer
	document.writeln('		<tr>');
	document.writeln('			<td height="1" colspan="3"><img src="images/SlatePixel.gif" border="0" width="177" height="1"></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td height="1" colspan="3">&nbsp;</td>');
	document.writeln('		</tr>');
	
	// About the Instructor
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="aboutTheInstructor.html">About the Instructor</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');

	// Testimonials
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="testimonials.html">Testimonials</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');

	// FAQ
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="faq.html">FAQ</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');

	// Links
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="links.html">Links</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');

	// Contact Us
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td><a href="contactUs.html">Contact Us</a></td>');
	document.writeln('		</tr>');
	document.writeln('		<tr>');
	document.writeln('			<td></td>');
	document.writeln('			<td></td>');
	document.writeln('			<td><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="10"></td>');
	document.writeln('		</tr>');
	
	document.writeln('		<tr>');
	document.writeln('			<td height="1" colspan="3"><img src="images/SlatePixel.gif" border="0" width="177" height="1"></td>');
	document.writeln('		</tr>');
	
	document.writeln('		<tr>');
	document.writeln('			<td colspan="2" height="250" align="center" valign="middle">');
	document.writeln('				<p class="menu">Hang glide in Mexico!!!</br>');
	document.writeln('				<a href="http://www.flymex.com/mexico/" target="flyMexico"><img src="images/FlyMexicoLogo50pcnt.gif" width="138" height="42" border="0"></a><br>');
	document.writeln('				Hang gliding tours<br>and instruction in Monterrey<br>and Valle de Bravo</p></td>');
	document.writeln('			<td><img src="images/SlatePixel.gif" border="0" width="1" height="250"></td>');
	document.writeln('		<tr>');
	document.writeln('			<td height="1" colspan="3"><img src="images/SlatePixel.gif" border="0" width="177" height="1"></td>');
	document.writeln('		</tr>');
	document.writeln('		</tr>');

	document.writeln('		<tr>');
	document.writeln('			<td colspan="2" height="321" align="center" valign="middle">');
	document.writeln('				<p class="menu"><a href="http://www.ushga.org/" target="ushga"><img src="images/USHGALogo.gif" width="81" height="84" border="0"></a><br>');
	document.writeln('				United States Hang Gliding Association</p></td>');
	document.writeln('				<td><img src="images/SlatePixel.gif" border="0" width="1" height="321"></td>');
	document.writeln('		</tr>');
	document.writeln('	</table></td>');
}


function writeSectionHeader(text, width, height) {
	document.writeln('<table cellspacing="0" cellpadding="0" width="' + width + '" border="0">');
	document.writeln('	<tr>');
	document.writeln('		<td><img src="images/SlatePixel.gif" border="0" width="' + width + '" height="1"></td>');
	document.writeln('	</tr>');
	document.writeln('</table>');
	document.writeln('<table cellspacing="0" cellpadding="0" width="' + width + '" border="0">');
	document.writeln('	<tr>');
	document.writeln('		<td width="1" height="15"><img alt="" src="images/SlatePixel.gif" border="0" width="1" height="' + height + '"></td>');
	document.writeln('		<td width="5"></td>');
	document.writeln('		<td class="sectionHeader" align="left">' + text + '</td>');
	document.writeln('	</tr>');
	document.writeln('</table>');
}

function writeTDEnd() {
	document.writeln('</td>');
}


function writeMainLayoutTableStart() {
	document.writeln('<table width="800" id="tblLayout" align="center" cellSpacing="0" cellPadding="0" bgColor="white" border="0">');
}


function writeMainCell() {
	document.write('<td width="5" rowSpan="2"></td>');
	document.write('<td width="500" valign="top" align="left">');
	document.writeln('<table id="tblMain" cellSpacing="0" cellPadding="0" border="0">');
	document.writeln('	<tr><td height="10"></td></tr>');
	document.writeln('</table>');
}


function writeRightMargin() {
	document.write('<td width="5" rowSpan="2"></td>');
	document.write('<td width="5" rowSpan="2"><img src="images/SlatePixel.gif" width="5" height="850" border="0"></td>');
	document.write('<td width="105" valign="top" align="left" rowSpan="2"><img src="images/JeffTinajaFlyStrip.gif" width="105" height="850" border="0" alt="Jeff Flying at La Tinaja"></td>');
	document.write('</tr>');
}


function writeFooter() {
	document.writeln('<table width="815" id="tblFooter" align="center" cellSpacing="0" cellPadding="0" border="0">');
	document.writeln('	<tr>');
	document.writeln('		<td colspan="3" align="center">');
	document.writeln('			<p class="footer">\251 ' + currentYear() + ' Red River Aircraft, Inc.</p>');
	document.writeln('		</td>');
	document.writeln('	</tr>');
	document.writeln('	<tr>');
	document.writeln('		<td colspan="3" align="center">');
	document.writeln('			<p class="footer"><a href="mailto:sbellware@hotmail.com?subject=Comment on FlyTexas.com">Comments & questions about this site</a></p>');
	document.writeln('		</td>');
	document.writeln('	</tr>');
	document.writeln('	<tr><td height="15"></td></tr>');
	document.writeln('	<tr>');
	document.writeln('		<td colspan="3" align="center" class="section">');
	document.writeln('			This site is built for viewing with Internet Explorer');
	document.writeln('		</td>');
	document.writeln('	</tr>');
	document.writeln('	<tr><td height="5"></td></tr>');
	document.writeln('	<tr>');
	document.writeln('		<td colspan="3" align="center">');
	document.writeln('			<a href="http://www.microsoft.com/ie" target="Microsoft"><img src="images/GetIE.gif" border="0" width="88" height="31"></a>');
	document.writeln('		</td>');
	document.writeln('	</tr>');
	document.writeln('</table');
}


function writeMainLayoutTableEnd() {
	document.writeln('</tr>');
	document.writeln('</table>');
}


function activateLearnToFlyButton() {
	changeImage('btnLearnToFly', btnLearnToFlyActive);
	changeImage('imgLearnToFlyPointer', imgPointerActive);
}


function activateClassesPricingButton() {
	changeImage('btnClassesPricing', btnClassesPricingActive);
	changeImage('imgClassesPricingPointer', imgPointerActive);
}


function activateFAQButton() {
	changeImage('btnFAQ', btnFAQActive);
	changeImage('imgFAQPointer', imgPointerActive);
}


function activateAboutTheInstructorButton() {
	changeImage('btnAboutTheInstructor', btnAboutTheInstructorActive);
	changeImage('imgAboutTheInstructorPointer', imgPointerActive);
}


function activateTestimonialsButton() {
	changeImage('btnTestimonials', btnTestimonialsActive);
	changeImage('imgTestimonialsPointer', imgPointerActive);
}


function activateEquipmentButton() {
	changeImage('btnEquipment', btnEquipmentActive);
	changeImage('imgEquipmentPointer', imgPointerActive);
}


function activateLinksButton() {
	changeImage('btnLinks', btnLinksActive);
	changeImage('imgLinksPointer', imgPointerActive);
}


function activateContactUsButton() {
	changeImage('btnContactUs', btnContactUsActive);
	changeImage('imgContactUsPointer', imgPointerActive);
}


