function preloadImages() {
	if (document.images) {
		HR_out = new Image( 155,60 );
		HR_out.src = '/hirise/images/hirise_emblem2.jpg';
		HR_over = new Image( 155,60 );
		HR_over.src = '/hirise/images/hirise_emblem2_over.jpg';
	}
}

function changeImage( id,name ){
	if (document.images) { document.images[id].src=eval(name+".src"); }
}

function writeHeader() {
	document..write( "	<table noborder width=\"100%\">" );
	document..write( "	<tr align=center>" );
	document..write( "		<td align=left valign=center width=110>" );
	document..write( "			<img align=\"left\" src=\"/landingsites/images/NASAball.gif\"" );
	document..write( "			width=67 height=62 alt=\"NAS logo\">" );
	document..write( "		</td>" );
	document..write( "		<td align=center>" );
	document..write( "			<img align=\"center\" src=\"/landingsites/icons/marsoweb_logo_white.jpg\" width=313 height=60 alt=\"Marsoweb logo\">" );
	document..write( "		</td>" );
	document..write( "		<td valign=center align=right  width=110>" );
	document..write( "			<img align=\"right\" src=\"/landingsites/images/ames_logo.gif\"" );
	document..write( "			width=100  height=50 alt=\"Ames logo\">" );
	document..write( "		</td>" );
	document..write( "	</tr>" );
	document..write( "</table>" );
}

function writeCredits() {
	document.write( "<center>" );
	document.write( "Images from the High Resolution Imaging Science Experiment and additional information about the Mars Reconnaissance Orbiter are available online at the following websites:<p>" );
	document.write( "<a href=\"http://www.nasa.gov/mro\">http://www.nasa.gov/mro</a>" );
	document.write( "<p> " );
	document.write( "<a href=\"http://HiRISE.lpl.arizona.edu\">http://HiRISE.lpl.arizona.edu</a>" );
	document.write( "<p> " );
	document.write( "<a href=\"http://marsoweb.nas.nasa.gov/HiRISE/\">http://marsoweb.nas.nasa.gov/HiRISE/</a>" );
	document.write( "<p>" );
	document.write( " For information about NASA and agency programs on the Web, visit: " );
	document.write( " <a href=\"http://www.nasa.gov\">http://www.nasa.gov</a>." );
	document.write( " <p>" );
	document.write( " JPL, a division of the California Institute of Technology in Pasadena, manages the Mars Reconnaissance Orbiter for NASA&#39;s Science Mission Directorate, Washington. Lockheed Martin Space Systems is the prime contractor for the project and built the spacecraft. The HiRISE camera was built by Ball Aerospace Corporation and is operated by the University of Arizona." );
}

function writeFooter() {
	document.write( "<center>" );
	document.write( "<table cellpadding=3 cellspacing=0  bgcolor=wheat border=2>" );
	document.write( "	<tr>" );
	document.write( "		<td rowspan=2 align=center><font face=\"Arial\" color=black size=2><b>" );
	document.write( "			NASA<br>Ames</b>" );
	document.write( "		</td>" );
	document.write( "		<td>" );
	document.write( "			<a href=\"mailto:vgulick@mail.arc.nasa.gov\">" );
	document.write( "			<font face=\"Times\" size=2 color=black>" );
	document.write( "				<em>Virginia Gulick</em></font></a>:" );
	document.write( "			<font face=\"Arial\" color=black size=2>" );
	document.write( "			HiRISE Education &amp; Public Outreach" );
	document.write( "		</td>" );
	document.write( "	</tr>" );
	document.write( "	<tr>" );
	document.write( "		<td>" );
	document.write( "			<a href=\"mailto:gdeardorff@mail.arc.nasa.gov\">" );
	document.write( "			<font face=\"Times\" size=2 color=black>" );
	document.write( "				<em>Glenn Deardorff</em></font></a>:" );
	document.write( "			<font face=\"Arial\" color=black size=2>" );
	document.write( "			Webwork" );
	document.write( "		</td>" );
	document.write( "	</tr>" );
	document.write( "</table>" );
	document.write( "<p>" );
	document.write( "<a href=\"http://www.nasa.gov/about/highlights/HP_Privacy.html\">" );
	document.write( "<font face=Arial size=2 color=black >NASA Web Privacy Policy</a>" );
}
