
function doNothing()
	{
	return;
	}


// ################################## DISPLAY OR HIDE A DIV, GIVEN DIV NAME #######
// ################################## OPEN IF CLOSED, CLOSE IF OPEN ###############

function showhide(which)
	{
	temp = document.getElementById(which).style.display;
	if (temp == "none")
		{
		temp="block";
		}
	else
		{
		temp="none"
		}
	document.getElementById(which).style.display=temp;
	}

// ==================================================================================================================================
// SLIDE SHOW -----------------------------------------------------------------------------------------------------------------
// ==================================================================================================================================

/*
syntax: slideshow(id_of_show,number_of_slides,current_slide,path_to_images,duration,loop)

	id_of_show = the image object's html ID
	number_of_slides = number of images to rotate through
	current_slide = the current image to display]
	path_to_images = the relativei path to the images, if they're in another folder. Otherwise, blank.
	duration = the length of time to display the slide (in milliseconds)
	loop = true or false, loop continuously or just play once
	image names must be sequential numbered jpegs, i.e., 1.jpg, 2.jpg, 3.jpg, etc.
*/

function slideshow(showid,num,curslide,imgpath,dur,loop)
	{
	slideshowID=showid;					// THE HTML ID OF THE IMAGE
	numberSlides=num;						// TOTAL NUMBER OF SLIDES
	currentSlide=curslide;					// THE CURRENT IMAGE NUMBER
	imagePath = imgpath;
	duration=dur;						// HOW LONG EACH SLIDE PRESENTS
	looping=loop;

	if(currentSlide > numberSlides-1)			// GET THE CURRENT NUMBER, OR RESET TO 1
		{
		currentSlide=1;
		}
	else	{
		currentSlide=currentSlide + 1;
		}
	currentImage=imagePath + currentSlide + ".jpg";

	// make the command to change the image, then change it
	temp="document.getElementById('" + slideshowID + "').src='" + currentImage + "';";
	eval(temp);

	// to loop or not to loop
	if(currentSlide == numberSlides && looping == false){return false;}

	// make new call, then execute it
	temp="slideshow('" + slideshowID + "'," + numberSlides + "," + currentSlide + ",'" + imagePath + "'," + duration + "," + looping + ")";
	setTimeout("eval(temp)",duration)
	
	}


// ################################## MAKE DATELINE ##################################

	function makeDateline(upper)							// IF THERE'S A CASE, MAKE IT ALL CAPS
		{
		month = new Array(12)
		month[0] = "January";
		month[1] = "February";
		month[2] = "March";
		month[3] = "April";
		month[4] = "May";
		month[5] = "June";
		month[6] = "July";
		month[7] = "August";
		month[8] = "September";
		month[9] = "October";
		month[10] = "November";
		month[11] = "December";
	
		day = new Array(7);
		day[0] = "Sunday";
		day[1] = "Monday";
		day[2] = "Tuesday";
		day[3] = "Wednesday";
		day[4] = "Thursday";
		day[5] = "Friday";
		day[6] = "Saturday";
	
		now = new Date;
		theDay = day[now.getDay()];
		theMonth = month[now.getMonth()];
		theDate = now.getDate();
		theYear = now.getYear();
		theYear = "" + theYear;									// MAKE DATE OBJECT A STRING
		theYear=theYear.substring (theYear.length-2, theYear.length);		// FIX THE YEAR '100' PROBLEM
		yearPrefix = "20";
		theDateline = theDay + ", " + theMonth + " " + theDate + ", " + yearPrefix + theYear;
		
		if(upper)											// MAKE IT UPPERCASE, IF PARAMETER
			{
			theDateline = theDateline.toUpperCase();
			}
		return (theDateline);
		}