
/* #############################   IMPORTANT !!!  s#########################################

   The variable below, "biosolidsRoot" is set to the root folder of the BiosolidsEMS
   site, starting at the root of the server.

   The current Biosolids site is on the City server in the folder "/san/biosolidsems/".

   If you don't set "biosolidsRoot" so a different folder, "/san/biosolidsems/" will be
   used by default.
    
   IF NECESSARY, SET THE VARIABLE HERE (between the quotes):           */

           biosolidsRoot="";

// ############################# CHANGE NOTHING BELOW HERE ################################





































// SET BIOSOLIDS DEFAULT ROOT, IF NOT CHANGED ABOVE
   if(biosolidsRoot==""){biosolidsRoot="/san/biosolidsems/";} 

// RUN DROP-DOWN MENUS
// Parameters: divName is the name of the dropdown to show or hide; doWhat - 1=show, 0=hide	

	function menuDrop(divName,doWhat)
		{
		if(doWhat==1)										// SHOW THE DROPDOWN
			{
			document.getElementById(divName).className="menuDropdownShow";
			}
		else
			{
			document.getElementById(divName).className="menuHideIt";
			}

		}


/* REVERSES THE VISIBILITY OF A DIV, or block of text, USING by manipulating the block's 'display' css
   'what' is the name of the div					*/

	function shdiv(what)
		{
		theState = document.getElementById(what).style.display;
		if(theState=="block")
			{
			theState="none";
			}
		else	{
			theState = "block";
			}
		document.getElementById(what).style.display = theState;
		}			



/*
POPUP photos
*/
	function popphoto(arraynumber)
		{
		loadfile = biosolidsRoot + "popup.htm?" + arraynumber;  // biosolidsRoot is a constant at top
		win=window.open(loadfile, "pp","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=3,resizable=yes,height=305,width=350");
		}


	function pathOnly (InString)
		{
		LastSlash=InString.lastIndexOf ('/', InString.length-1);
		OutString=InString.substring  (0, LastSlash+1);
		return (OutString);	
		}

