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="http://magic.csr.utexas.edu/MAGICstyle_unix.css" TYPE="text/css" MEDIA="screen">');
	} else if ((navigator.OS == "win") || (navigator.OS == "mac")) {
	 document.write('	<LINK REL="StyleSheet" HREF="http://magic.csr.utexas.edu/MAGICstyle.css" TYPE="text/css" MEDIA="screen">');
	 }	
}

function leftnav(section) {
	var section;
	if (section == "data") {
		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="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 == "data_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="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>');
		}
}

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="http://magic.csr.utexas.edu/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="http://magic.csr.utexas.edu/images/NASAlogo.gif" width="75" height="65" ALT="to NASA home page"></A></TD></TR></TABLE>');
}
