// **********************
function copyrightTable()
// **********************
{
  document.write( '<table>');
  document.write( '  <TR>');
  document.write( '	  <TD valign=center><CENTER><Font face=verdana size=1 color=#000000>Copyright &copy; 2002 Galax Police Department;<BR>All&nbsp;Rights&nbsp;Reserved.</font></CENTER>');
  document.write( '		</TD>');
  document.write( '	</TR>');
  document.write( '</TABLE>');
}

// *********************
function changeImages()
// *********************
{
  var i;
	if (document.images)
	{
		for (i=0; i<changeImages.arguments.length; i+=2)
		{
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

// *********************
function menuMapTable()
// *********************
{
  var SQ="'";
  var QCQ="','";
  document.write( '<Map Name="mAdministration">                                                                                                                                                                                                                                        ');
  document.write( '  <AREA type="Rect" coords="0,0,122,29" href="GPD-Administration.htm" onMouseOver="changeImages('+SQ+'iAdministration'+QCQ+'images/GPD-PageTile_AdministrationOn.gif'+SQ+');return true;" onMouseOut="changeImages('+SQ+'iAdministration'+QCQ+'images/GPD-PageTile_AdministrationOff.gif'+SQ+');return true;"></MAP>');
  document.write( '<Map Name="mOfficers">                                                                                                                                                                                                                                              ');
  document.write( '  <AREA type="rect" coords="0,0,122,32" href="GPD-Officers.htm" onMouseOver="changeImages('+SQ+'iOfficers'+QCQ+'images/GPD-PageTile_OfficersOn.gif'+SQ+');return true;" onMouseOut="changeImages('+SQ+'iOfficers'+QCQ+'images/GPD-PageTile_OfficersOff.gif'+SQ+');return true;"></MAP>                        ');
  document.write( '<Map Name="MSupportStaff">                                                                                                                                                                                                                                          ');
  document.write( '  <AREA type="rect" coords="0,0,122,31" href="GPD-SupportStaff.htm" onMouseOver="changeImages('+SQ+'iSupportStaff'+QCQ+'images/GPD-PageTile_SupportStaffOn.gif'+SQ+');return true;" onMouseOut="changeImages('+SQ+'iSupportStaff'+QCQ+'images/GPD-PageTile_SupportStaffOff.gif'+SQ+');return true;"></MAP>        ');
  document.write( '<Map Name="mPrograms">                                                                                                                                                                                                                                              ');
  document.write( '  <AREA type="rect" coords="0,0,122,31" href="GPD-Programs.htm" onMouseOver="changeImages('+SQ+'iPrograms'+QCQ+'images/GPD-PageTile_ProgramsOn.gif'+SQ+');return true;" onMouseOut="changeImages('+SQ+'iPrograms'+QCQ+'images/GPD-PageTile_ProgramsOff.gif'+SQ+');return true;"></MAP>                        ');
  document.write( '<Map Name="mNews">                                                                                                                                                                                                                                                  ');
  document.write( '  <AREA type="rect" coords="0,0,122,32" href="GPD-News.htm" onMouseOver="changeImages('+SQ+'iNews'+QCQ+'images/GPD-PageTile_NewsOn.gif'+SQ+');return true;" onMouseOut="changeImages('+SQ+'iNews'+QCQ+'images/GPD-PageTile_NewsOff.gif'+SQ+');return true;"></MAP>                                        ');
  document.write( '<Map Name="mLinks">                                                                                                                                                                                                                                                 ');
  document.write( '  <AREA type="rect" coords="0,0,122,31" href="GPD-Links.htm" onMouseOver="changeImages('+SQ+'iLinks'+QCQ+'images/GPD-PageTile_LinksOn.gif'+SQ+');return true;" onMouseOut="changeImages('+SQ+'iLinks'+QCQ+'images/GPD-PageTile_LinksOff.gif'+SQ+');return true;"></MAP>                                    ');
  document.write( '<Map Name="mHome">                                                                                                                                                                                                                                                  ');
  document.write( '  <AREA type="rect" coords="0,0,122,29" href="index.htm" onMouseOver="changeImages('+SQ+'iHome'+QCQ+'images/GPD-PageTile_HomeOn.gif'+SQ+');return true;" onMouseOut="changeImages('+SQ+'iHome'+QCQ+'images/GPD-PageTile_HomeOff.gif'+SQ+');return true;"></MAP>                                        ');
  document.write( '                                                                                                                                                                                                                                                                    ');
}

// ****************************
function rollOverPreLoad()
// ****************************
{
  a02 = new Image();
  a02.src = "images/GPD-PageTile_AdministrationOn.gif";
  a03 = new Image();
  a03.src = "images/GPD-PageTile_HomeOn.gif";
  a04 = new Image();
  a04.src = "images/GPD-PageTile_LinksOn.gif";
  a05 = new Image();
  a05.src = "images/GPD-PageTile_NewsOn.gif";
  a06 = new Image();
  a06.src = "images/GPD-PageTile_OfficersOn.gif";
  a07 = new Image();
  a07.src = "images/GPD-PageTile_ProgramsOn.gif";
  a08 = new Image();
  a08.src = "images/GPD-PageTile_SupportStaffOn.gif";
}

// **************************
function GPD_NewsTable()
// **************************
{
  var linecounter = 1;

  //document.write( '<TABLE border=0 width=95% cellpadding=0 cellspacing=0><tr><td>');
  //document.write( '<Font face=verdana size=2 color=#0000FF><B>');
  //document.write( '<CENTER>NEWS</CENTER></TD></TR></TABLE><P>');
  for( var i = 1; i <= databaserecords; i++ )
  {
    document.write('<TABLE border=0 width=95% cellpadding=0 cellspacing=0><tr><td>');
    document.write('<Font face=verdana size=2 color=#000000><B>');
    document.write( news_HeadLine[i] + '</b><P>');
    document.write( news_Title[i] + '<Font size=1>');
    for( var j = 0; j < news_Linecount[i]; j++ )
    {
      document.write( '<P>' +news_TextLine[linecounter++]);
    }
    document.write( '</font></TD></TR></TABLE><P><hr>');
  }
}
