
footerOutput = '<div id ="footer">\n';

footerOutput += '<a href="http://www.history.army.mil/index.html">Home</a> |' + "\n";
footerOutput += '<a href="http://www.history.army.mil/search.html"> Search</a> |' + "\n";
footerOutput += '<a href="http://www.history.army.mil/bookshelves.html"> Bookshelves</a> | ' + "\n";
footerOutput += '<a href="http://www.history.army.mil/artphoto.html"> Images</a> | ' + "\n";
footerOutput += '<a href="http://www.history.army.mil/unitinfo.html"> Unit History</a> | ' + "\n";
footerOutput += '<a href="http://www.history.army.mil/museum.html"> Museums</a> | ' + "\n";
footerOutput += '<a href="http://www.history.army.mil/moh.html"> Medal of Honor</a> | ' + "\n";
footerOutput += '<a href="http://www.history.army.mil/srides.html"> Staff Rides</a> | ' + "\n";
footerOutput += '<a href="http://www.history.army.mil/faq.html"> FAQs | </a>' + "\n";
footerOutput += '<a href="http://www.history.army.mil/sec-priv.htm"> Security & Privacy</a> | ' + "\n";
footerOutput += '<a href="http://www.history.army.mil/inquire.html"> Contact CMH</a>' + "\n";


footerOutput += '<br /><br />'+"\n";

if(document.getElementById('lastUpdate') && document.getElementById('lastUpdate').innerHTML.length > 0){
	footerOutput += document.getElementById('lastUpdate').innerHTML ;
}else{
/*	footerOutput += "Updated " + document.lastModified;*/
	
	var myDate = new Date(document.lastModified);

	// Array list of months.
	var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

	// Calculate the number of the current day in the week.
	var date = myDate.getDate();

	// Calculate four digit year
	function fourdigits(number)	{
		return (number < 1000) ? number + 1900 : number;
									}

	// Join it all together
	lastUpdated =  
				date + " " +
	              months[myDate.getMonth()] + " " +
	                (fourdigits(myDate.getYear())) ;

	// Print out the data.
	var dateModified = document.lastModified;
	mydate = dateModified.slice(0,10);

	

			footerOutput += "Last updated "+ lastUpdated ;
}

footerOutput += '<br /><br />This website is provided as a service by the <a href="http://www.history.army.mil/about.html">U.S. ARMY CENTER OF MILITARY HISTORY</a>' + "\n";
footerOutput += '</div>\n';







/*document.getElementById('footer').innerHTML = footerOutput;*/
document.writeln(footerOutput);


