
        // Global Variables used in rest of page
        globalWidth=600;                       
        globalFullResName = "FullResolution";  
        globalLowResDir = "lowRes";
        globalNativeRes = "TRUE";


	/* --------------------------------------------------------
	   linkedPictureDirectory            
	   This subroutine displays the low resolution version of a
	   picture and provides a link to a high resolution image. In 
	   addition this routine require a image directory to be passed
	   as well

	   Scott Diamond                             9 Aug 2003
           ------------------------------------------------------- */

	function linkedPictureDirectory(imageDir,digitalImage,caption){
	   lowResImage=imageDir+"/"+globalLowResDir+"/"+digitalImage;
	   fullResImage=imageDir+"/"+digitalImage;

		document.write("<BR CLEAR=ALL>")
		document.write("<CENTER>");
		document.write("<A HREF=\"javascript:bigPicture(" );
		document.write("\'"+fullResImage+"\'");
		document.write(",\'"+caption+"\'");
		document.write(' )\" >');
		document.write('<IMG CLASS="S10" ')
		document.write("SRC="+lowResImage+" ")
		document.write('ALT="Click for full Resolution"')
		document.write(">")
		document.write("</A>")
		document.write("<BR CLEAR=ALL>")
		document.write("<P CLASS=IMAGE_STATS>")		
		document.write("file: "+fullResImage)
		document.write("</P>")		
		document.write("</CENTER>")
		document.write("<P CLASS=CAPTION>");
		document.write( caption );
		document.write("</P>");
    }

	

	/* --------------------------------------------------------
	   linkedPicture            
	   This subroutine displays the low resolution version of a
	   picture and provides a link to a high resolution image

	   Scott Diamond                              29 April 2004
           ------------------------------------------------------- */

	function linkedPicture(digitalImage,caption){

		document.write("<BR CLEAR=ALL>")
		document.write("<CENTER>");
		document.write("<A HREF=\"javascript:bigPicture(" );
		document.write("\'"+digitalImage+"\'");
		document.write(",\'"+caption+"\'");
		document.write(' )\" >');
		document.write('<IMG CLASS="S10" ')
		document.write("SRC=");
		document.write('"');
		document.write(globalLowResDir)
		document.write("/"+digitalImage)
		document.write('"');
		document.write('ALT="Click for full Resolution"')
		document.write(">")
		document.write("</A>")
		document.write("<BR CLEAR=ALL>")
		document.write("<P CLASS=IMAGE_STATS>")		
		document.write("file: "+digitalImage)
		document.write("</P>")		
		document.write("</CENTER>")
		document.write("<P CLASS=CAPTION>");
		document.write( caption );
		document.write("</P>");
	}



	/* --------------------------------------------------------
	   bigPicture            
	   This subroutine displays is called from linkedPicture and
	   shows the big picture in a seperate window

	   Scott Diamond                            29 April 2004
           ------------------------------------------------------- */

	function bigPicture(digitalImage, caption) 
	{
	    fullResWindow = window.open('', globalFullResName, 
	    'toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');
	    fullResWindow.document.write("<CENTER>");
	    fullResWindow.document.write("<IMG ");
	    fullResWindow.document.write("SRC=" );
	    fullResWindow.document.write('"');
	    fullResWindow.document.write(digitalImage);
	    fullResWindow.document.write('"');
	    fullResWindow.document.write('ALT="Image: '+digitalImage+'" ');
	    fullResWindow.document.write("BORDER = 3 " );
	    fullResWindow.document.write(">");
	    fullResWindow.document.write("<P>");
	    fullResWindow.document.write("<FONT COLOR=GREEN FACE='Comic Sans MS'>");
	    fullResWindow.document.write("<FONT COLOR=GREEN>");
	    fullResWindow.document.write( caption );
	    fullResWindow.document.write("</FONT>");
	    fullResWindow.document.write("</P>");
	    fullResWindow.document.write("</CENTER>");
	    fullResWindow.document.close();
	    // fullResWindow.focus();
	}







	/* --------------------------------------------------------
	   standAlonePicture            
	   This subroutine displays just one resolution of the 
	   picture.

	   Scott Diamond                             29 April 2004
           ------------------------------------------------------- */
	function standAlonePicture(digitalImage){

		document.write("<BR CLEAR=ALL>")
		document.write("<CENTER>");
		document.write('<IMG CLASS="S10" ');
		document.write("SRC=");
		document.write('"');
		document.write(digitalImage);
		document.write('"');
		document.write('ALT="Image: '+digitalImage+'" ');
		document.write(" >");
		document.write("</CENTER>");
	 }




	/* --------------------------------------------------------
	   whenLastModified
	   This subroutine displays a line which indicates when the page 
           was last modified.

	   Scott Diamond                             28 June 2000 
           ------------------------------------------------------- */
	function whenLastModified(){
	    if (navigator.appName == "Netscape"){

		document.write("<BR CLEAR=ALL>");
	    	document.write("<CENTER>" );
		document.write("<P>");		
	        document.write( "This webpage was last modified " );
	        document.write( document.lastModified );
		document.write("</P>");		
		document.write("</CENTER>");
	    }

            else {
		document.write("<BR CLEAR=ALL>");
	        document.write("<CENTER>" );
		document.write("<P CLASS=IMAGE_STATS>");		
	        document.write( "This webpage was last modified " );
	        document.write( document.lastModified );
		document.write("</P>");		
		document.write("</CENTER>");
	    }
        }


	/* --------------------------------------------------------
	   enoughColorDepth
	   This subroutine reads what colordepth is set and displays a note if it is
	   not high enough.

	   Scott Diamond                             03 July  2000 
           ------------------------------------------------------- */
	function enoughColorDepth()
	    {
	    numberColors = screen.colorDepth

	    if (numberColors < 32)
		{
		document.write("<BR CLEAR=ALL>")
		document.write("<CENTER>" )
		document.write("<P>")
		document.write('<FONT COLOR="RED">')		
	        document.write( "Note - You appear to be " )
	        document.write( "running your computer in " + numberColors )
	        document.write( " bit color resolution" )
	        document.write( "<BR> For fully realistic pictures, " )
	        document.write( "it is suggested that you run " )
	        document.write( "your computer at 32 bit color resolution" )
		document.write("</FONT>")		
		document.write("</P>")		
		document.write("</CENTER>")
		}
           }



	/* --------------------------------------------------------
	   tableFormat
	   This subroutine makes a table entry, used for run result listing

	   Scott Diamond                             20 Dec 2000 
           ------------------------------------------------------- */

	function tableFormat(place, name, age, sex, time ){
	    if (sex == "F")
		{
	    	document.writeln("<TR>"); 

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write( place);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(name);
  	    	document.writeln("</FONT></TD>");

		if (age < 40) 
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    		document.write(age);
  	    		document.writeln("</FONT></TD>");
			}
		if ((age > 39) && (age < 50))
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLUE'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if ((age > 49) && (age < 60))
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='GREEN'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if (age > 59)
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='RED'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}




	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(sex);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(time);
  	    	document.writeln("</FONT></TD>");

  	    	document.writeln("</TR>"); 
		}
	else
		{
	    	document.writeln("<TR>"); 

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write( place);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(name);
  	    	document.writeln("</FONT></TD>");

		if (age < 40) 
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    		document.write(age);
  	    		document.writeln("</FONT></TD>");
			}
		if ((age > 39) && (age < 50))
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='BLUE'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if ((age > 49) && (age < 60))
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='GREEN'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if (age > 59)
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='RED'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}


	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(sex);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(time);
  	    	document.writeln("</FONT></TD>");

  	    	document.writeln("</TR>"); 
		}

    }










	/* --------------------------------------------------------
	   tableFormat_full
	   This subroutine makes a table entry, used for run result listing

	   Scott Diamond                             20 Dec 2000 
           ------------------------------------------------------- */


	function tableFormat_Full(place, l_name, f_name, age, sex, city, state, time ){
	    if (sex == "F")
		{
	    	document.writeln("<TR>"); 

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write( place);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(l_name);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(f_name);
  	    	document.writeln("</FONT></TD>");

		if (age < 30) 
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    		document.write(age);
  	    		document.writeln("</FONT></TD>");
			}
		if ((age > 29) && (age < 40))
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='ORANGE'>");
  	    		document.write(age);
  	    		document.writeln("</FONT></TD>");
			}
		if ((age > 39) && (age < 50))
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLUE'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if ((age > 49) && (age < 60))
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='GREEN'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if (age > 59)
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='RED'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if (age == "?? ")
			{
	    		document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}




	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(sex);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(city);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(state);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD BGCOLOR='#FFF389'><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(time);
  	    	document.writeln("</FONT></TD>");

  	    	document.writeln("</TR>"); 
		}
	else
		{
	    	document.writeln("<TR>"); 

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write( place);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(l_name);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(f_name);
  	    	document.writeln("</FONT></TD>");
		if (age < 30) 
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    		document.write(age);
  	    		document.writeln("</FONT></TD>");
			}
		if ((age > 29) && (age < 40))
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='ORANGE'>");
  	    		document.write(age);
  	    		document.writeln("</FONT></TD>");
			}
		if ((age > 39) && (age < 50))
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='BLUE'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if ((age > 49) && (age < 60))
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='GREEN'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if (age > 59)
			{
	    		document.write("<TD><FONT SIZE=2 COLOR='RED'><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}
		if (age == "?? ")
			{
	    		document.write("<TD><FONT SIZE=2><B>");
  	    		document.write(age);
  	    		document.writeln("</B></FONT></TD>");
			}


	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(sex);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(city);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(state);
  	    	document.writeln("</FONT></TD>");

	    	document.write("<TD><FONT SIZE=2 COLOR='BLACK'>");
  	    	document.write(time);
  	    	document.writeln("</FONT></TD>");

  	    	document.writeln("</TR>"); 
		}

    }



