function head() {

	  var platform;
	  if (typeof(window.navigator.platform) != 'undefined')
	  {
	    platform = window.navigator.platform.toLowerCase();
	    if (platform.indexOf('win') != -1)
	      navigator.OS = 'win';
	    else if (platform.indexOf('mac') != -1)
	      navigator.OS = 'mac';
	    else if (platform.indexOf('unix') != -1 || platform.indexOf('linux') != -1 || platform.indexOf('sun') != -1)
	      navigator.OS = 'nix';
	  }
	
	if (navigator.OS == "nix") {
	 document.write('	<LINK REL="StyleSheet" HREF="../MAGICstyle_unix.css" TYPE="text/css" MEDIA="screen">');
	} else if ((navigator.OS == "win") || (navigator.OS == "mac")) {
	 document.write('	<LINK REL="StyleSheet" HREF="../MAGICstyle.css" TYPE="text/css" MEDIA="screen">');
	 }	
}

function leftnav(section) {
	var section;
	if (section == "data") {
		document.write ('<P class="bold"><A href="DataUsersGuide.htm">Data Users Guide</A></P>');
		document.write ('<P><span class="bold">GIS-ready Data:</span>');
		document.write ('<UL><LI class="listnavleft"><A href="http://magic.csr.utexas.edu/LandsatLocator/LandsatLocator.htm">Landsat Locator</A></LI>');
		document.write ('<LI class="listnavleft"><A href="../Data/DataPool_2004NAIP.htm">2004 NAIP Imagery</A></LI>');
		document.write ('<LI class="listnavleft"><A href="../Data/DataPool_2005NAIP.htm">2005 NAIP Imagery</A></LI></UL></P>');
		document.write ('</UL></P>');
		document.write ('<P><span class="bold">Science Data:</span>');
		document.write ('<UL><LI class="listnavleft"><A href="http://synergyx.tacc.utexas.edu/DataQuery/index.jsp">Data Query</A></LI></UL></P>');
		document.write ('<P class="bold"><A href="http://magic.tacc.utexas.edu/station/public/index.php">Receiving Station</A></P>');
		}
		
	if (section == "landsat") {
		document.write ('<P class="bold"><A href="../DataUsersGuide/DataUsersGuide.htm">Data Users Guide</A></P>');
		document.write ('<P><span class="bold">GIS-ready Data:</span>');
		document.write ('<UL><LI class="listnavleft"><A href="http://magic.csr.utexas.edu/LandsatLocator/LandsatLocator.htm">Landsat Locator</A></LI>');
		document.write ('<LI class="listnavleft"><A href="../Data/DataPool_2004NAIP.htm">2004 NAIP Imagery</A></LI>');
		document.write ('<LI class="listnavleft"><A href="../Data/DataPool_2005NAIP.htm">2005 NAIP Imagery</A></LI></UL></P>');
		document.write ('</UL></P>');
		document.write ('<P><span class="bold">Science Data:</span>');
		document.write ('<UL><LI class="listnavleft"><A href="http://synergyx.tacc.utexas.edu/DataQuery/index.jsp">Data Query</A></LI></UL></P>');
		document.write ('<P class="bold"><A href="http://magic.tacc.utexas.edu/station/public/index.php">Receiving Station</A></P>');
		}
		
	if (section == "dataguide") {
		document.write ('<P class="bolder">Data Users Guide:</P>');
		document.write ('<P class="bold">General Topics<br><UL>');
		document.write ('<LI class="listnavleft"><A href="base_v_derived.htm">Base vs Derived Data</A></LI>');
		document.write ('<LI class="listnavleft"><A href="DownloadExtents.htm">Download Extents for Data Query Tool</A></LI>');
		document.write ('<LI class="listnavleft"><A href="Projections.htm">Projections</A></LI>');
		document.write ('<LI class="listnavleft"><A href="ConvertDecimalDegrees.htm">Convert Decimal Degrees into Degrees Minutes Seconds</A></LI>');
		document.write ('<LI class="listnavleft"><A href="ConvertDegrees.htm">Convert Degrees Minutes Seconds into Decimal Degrees</A></LI>');
		document.write ('</UL></P>');
		document.write ('<P class="bold">MODIS<br><UL>');
		document.write ('<LI class="listnavleft"><A href="MODISbands.htm">Bands</A></LI>');
		document.write ('<LI class="listnavleft"><A href="MODISbrowseimages.htm">Browse Images</A></LI>');
		document.write ('<LI class="listnavleft"><A href="MODISdataformats.htm">Download Formats</A>');
		document.write ('<LI class="listnavleft"><A href="MODISfilenames.htm">Filenames</A>');
		document.write ('<LI class="listnavleft"><A href="MODISlinks.htm">Links</A>');
		document.write ('<LI class="listnavleft"><A href="TerraOverpassPredictor.htm">Overpass Predictor</A>');
		document.write ('<LI class="listnavleft"><A href="MODISresolutions.htm">Resolutions</A></UL></P>');
		document.write ('<P class="bold">Landsat<br><UL>');
		document.write ('<LI class="listnavleft"><A href="Landsat7Bands.htm">Bands</A></LI>');
		document.write ('<LI class="listnavleft"><A href="Landsat7NLAPS.htm">NLAPs Data Format</A></LI>');
		document.write ('<LI class="listnavleft"><A href="Landsat7NLAPStoImagine.htm">Import NLAPS into Imagine</A></LI>');
		document.write ('<LI class="listnavleft"><A href="Landsat7Links.htm">Links</A></LI>');
		document.write ('</UL></P>');
		}
		
		if (section == "projects") {
		document.write ('<P class="bolder">Current &amp; Recent Projects</P><UL>');
		document.write ('<LI class="listnavleft">NTRD</LI>');
		document.write ('<LI class="listnavleft">TDA</LI>');
		document.write ('<LI class="listnavleft">HARC - H55</LI>');
		document.write ('<LI class="listnavleft">Forgotten River</LI></UL>');
		document.write ('<P class="bolder">Completed Projects</P><UL>');
		document.write ('<LI class="listnavleft"><A href="http://magic.csr.utexas.edu/reports/reports.htm">Surface Water Availability in Northern Mexico</A></LI>');
		document.write ('<LI class="listnavleft"><A href="http://magic.csr.utexas.edu/Projects/brownsville.htm">Matamoros / Brownsville Flood Hazard Mapping Project</A></LI>');
		document.write ('<LI class="listnavleft"><A href="http://magic.csr.utexas.edu/Projects/Invasive_species/invasive_main.htm">Invasive Species Eradication</A></LI>');
		document.write ('<LI class="listnavleft">Red Tide Invades Gulf Coast</LI>');
		document.write ('<LI class="listnavleft">Texas Drought</LI>');
		document.write ('<LI class="listnavleft">Wildfire from Space</LI>');
		document.write ('<LI class="listnavleft">Hurricane Impacts</LI></UL>');
		}
		
		if (section == "mxh2o") {
		document.write ('<P class="bolder">Water Availability Reports</P>');	
		document.write ('<A href="mexico_update_031103.htm">March 11, 2003</A><BR>');
		document.write ('<A href="mexico_update_041503.htm">April 15, 2003</A><BR>');
		document.write ('<A href="mexico_update_052803.htm">May 28, 2003</A><BR>');
		document.write ('<A href="mexico_update_080703.htm">August 7, 2003</A><BR>');
		document.write ('<A href="mexico_update_100203.htm">October 2, 2003</A><BR>');
		document.write ('<A href="rgbasin_report_110303.pdf">November 2003</A> <IMG src="../images/pdf.gif" width="25" height="16" border="0" alt="Adobe PDF format">');
		}
}


function topnav() {
		document.write ('<A href="../index.htm">Home</A>&nbsp;|&nbsp;');
		document.write ('<A href="../data.htm">Data &amp; Receiving Station</A>&nbsp;|&nbsp;');
		document.write ('<A href="../emergency.htm">Emergency Response</A>&nbsp;|&nbsp;');
		document.write ('<A href="../Projects.htm">Projects</A>&nbsp;|&nbsp;');
		document.write ('Links&nbsp;|&nbsp;');
		document.write ('<A href="../contacts.htm">About Us</A>&nbsp;|&nbsp;');
}

function footer() {
		document.write ('<TABLE width="800">');
		document.write ('<TR><TD width="150" valign="top" align="center" class="footer"><BR><A href="http://www.csr.utexas.edu/"><IMG border="0" src="../images/csrlogo.gif" alt="Center for Space Research" width="95" height="21"></A></TD>');
		document.write ('<TD width="550" valign="middle" align="left" class="footer"><DIV class="footertext" align="center">This page last edited on ');
	    mod = new Date(document.lastModified);
   		document.write ((1+mod.getMonth())+"/"+mod.getDate()+"/"+mod.getFullYear());
		document.write ('<BR><A href="http://www.csr.utexas.edu">Center for Space Research</A> at <A href="http://www.utexas.edu">UT Austin</A></DIV></TD>');
		document.write ('<TD width="100" valign="top" align="center" class="footer"><A href="http://www.nasa.gov"><IMG border="0" src="../images/NASAlogo.gif" width="75" height="65" ALT="to NASA home page"></A></TD></TR></TABLE>');
}
