        // Global Variables used in rest of page
        globalWidth=600;                       
        globalFullResName = "FullResolution";  
        globalLowResDir = "lowRes";
        globalNativeRes = "TRUE";



	

	/* --------------------------------------------------------
	   linkedPicture            
	   This subroutine displays the low resolution version of a
	   picture and provides a link to a high resolution image

	   Scott Diamond                             18 June 2000 
           ------------------------------------------------------- */

	function linkedPicture(digitalImage,caption){
	    if (navigator.appName == "Netscape"){
		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 ");
		document.write("SRC="+globalLowResDir);
		document.write("/"+digitalImage+" ");
		if (globalNativeRes != "TRUE"){
			document.write("WIDTH="+globalWidth+" ");
		}
		document.write('ALT="Click for full resolution ' );
		document.write('image ('+digitalImage+')" ');
		document.write(">");
		document.write("</A>");
		document.write("</CENTER>");
		document.write("<P CLASS=CAPTION>");
		document.write( caption );
		document.write("</P>");

	    }
            else {
		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="+globalLowResDir)
		document.write("/"+digitalImage+" ")
		if (globalNativeRes != "TRUE"){
			document.write("WIDTH="+globalWidth+" ")
		}
		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                             6 July 2000 
           ------------------------------------------------------- */

	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="+digitalImage+" " );
	    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                             18 June 2000 
           ------------------------------------------------------- */
	function standAlonePicture(digitalImage){

	    if (navigator.appName == "Netscape"){
		document.write("<BR CLEAR=ALL>");
		document.write("<CENTER>");
		document.write("<IMG ");
		document.write("SRC="+digitalImage+" ");
		if (globalNativeRes != "TRUE"){
			document.write("WIDTH="+globalWidth+" ");
		}
		document.write('ALT="Image: '+digitalImage+'" ');
		document.write(">");
		document.write("</CENTER>");
	    }

            else {
		document.write("<BR CLEAR=ALL>")
		document.write("<CENTER>");
		document.write('<IMG CLASS="S10" ');
		document.write("SRC="+digitalImage+" ");
		if (globalNativeRes != "TRUE"){
			document.write("WIDTH="+globalWidth+" ");
		}
		document.write('ALT="Image: '+digitalImage+'" ');
		document.write(">");
		document.write("<BR CLEAR=ALL>");
		document.write("<P CLASS=IMAGE_STATS>");		
		document.write("file: "+digitalImage);
		document.write("</P>");		
		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>")
		}
           }



