// ========================================================
// ===   begin of site script
// ========================================================
// ===   Author             Mod Date \  Mod Comments
// ===
// ===   Public Library Script
// ===
// ========================================================
// ===   Purpose: the purpose of this script is to perform
// ===   the majority of the background functions needed to
// ===   support the commonality of pages for the website
// =========================================================
// ===   Details:
// ===   This script:
// ===      The purpose for this script is to create a single
// ===      source file for a group of related html pages.
// ===  
// ===========================================================
// ---   Global Variable Section
// ----------------------------------------------------------- 
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
		
now = new Date;   
       
var endl = "<BR>";
var Music = "Beyondthesea.mid";
function getLastModified () {
      return document.lastModified.substring(0,10);
	}
function writeLastModified () {
      document.writeln("Last Modified: " + getLastModified());
	}

// ------------------------------------------
// function area
// ------------------------------------------

function writeNavguides1 () {
        document.write('<DIV align=center>');
        document.write('<CENTER><TABLE height=6 cellSpacing=0 cellPadding=0 width="95%" border=0>');
        document.write('<TBODY>');
        document.write('<TR>');
        document.write('<TD align=middle width="100%" colSpan=2 height=59>');
        document.write('<P align=center>');
	}

function writeNavguides2 () {
        document.write('<IMG height=46 alt="usn2.jpg (10608 bytes)" src="usn2.jpg" width=30 align=left></A>');
        }

function writeNavguides3 () {
        document.write('<IMG height=46 alt="usn2.jpg (10608 bytes)" src="usn2.jpg" width=30 align=right></A>');
        document.write('</A></P></TD></TR>');
        document.write('<TR><TD align=middle width="50%" height=19><P align=left><BIG><--Aft</BIG></P></TD><TD align=middle width="50%" height=19>');
	document.write('<P align=right><BIG>Forward--></BIG></P></TD></TR></TBODY></TABLE></CENTER></DIV>');
	}

function putTitleTable () {
	document.write('<div align="center">')
	document.write('<table align="center" border="0" cellpadding="3" cellspacing="0" width="100%">');
	document.write('<TR>');
	document.write('<TD WIDTH="90%">');
	document.write('<p align="center"><a href="mailto:spruancedestroyersailors@yahoogroups.com"><b>E-Mail USS Spruance Kidd Class Destroyers</p>');
        document.write('<p align="center"><a href="index.html"> Home</p>');
	document.write('</TR>');
	document.write('<TR>');
	document.write('<TD WIDTH="33%" ALIGN="LEFT"><B><font color="#FFFFFF"><FONT FACE="VERDANA" SIZE="1">');
	document.write(monName[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear());
	document.write('</TD>');
	document.write('<TD WIDTH="33%" ALIGN="RIGHT"><B><font color="#FFFFFF"><FONT FACE="VERDANA" SIZE="1">');
	document.write('Updated: ' + document.lastModified);
	document.write('</TD></FONT></B></TR>');
	document.write('</TABLE>');
	document.write('</div>');
	}



function writeCopyright () {
      document.write('<div align="center">')
      document.write('<TABLE>');
      document.write('<TR>')
      document.write('<TD WIDTH="100%" ALIGN="CENTER"><B><font color="#FFFFFF"><FONT FACE="VERDANA" SIZE="1">');
      document.write(endl);
      document.write('<img SRC="http://visit.geocities.com/counter.gif" width="108" height="20"></P>');
      document.write(  "Copyright © ");
      document.write(now.getFullYear());
      document.write(  ", Spruance Kidd Class Destroyer Association. All Rights Reserved." + endl );
      document.write('</TD>');
      document.write('</TR>');
      document.write('</TABLE>');
      document.write('</div>');
	}

function shake(n) {
	if (self.moveBy) {
	for (i = 15; i > 0; i--) {
	for (j = n; j > 0; j--) {
	self.moveBy(0,i);
	self.moveBy(i,0);
	self.moveBy(0,-i);
	self.moveBy(-i,0);
         }
      }
   }
}

