// There are two separate navigation bars, one for use when Javascript is enabled, one when it it not.
// Originally the navigation bar used by non-Javascript users is displayed.  It bypasses the organization
// descriptions causes the user to go directly to the organization's homepage.  If this routine is
// executed, Javascript is enabled.  Therefore the second navigation bar is displayed.
var jsEnabled = false;
function initialize() {
	jsEnabled = true;
	document.getElementById("jsoff").style.display = "none";
	document.getElementById("json").style.display = "block";
}

// This routine displays a brief description of one of the links on the left side of the home page.
//  A timeout is set to hide the description after 15 seconds.
var desc = null;
var timerId = null;
function displayDescription(description) {
	if (desc != null) {
		desc.style.display = "none";
	}
	desc = document.getElementById(description);
	desc.style.display = "block";
	clearTimeout(timerId);
	timerId = setTimeout("clearDescription()", 10000);
	return false;
}

// This routine hides the description displayed by the above routine.
function clearDescription() {
	clearTimeout(timerId);
	if (desc != null) {
		desc.style.display = "none";
		desc = null;
	}
}
	
// This routine truncates the modification date.
function lastModified()
{
	var mDate = new String(document.lastModified);
	var mDateArray = new Array;
	mDateArray = mDate.split(" ");
	return ("Updated: " + mDateArray[0]);
}

// Slideshow software
var interval = 2000;
var imageNum = 0;
function imageItem(image_location) {
	this.image_item = new Image();
	this.image_item.src = image_location;
}
function get_ImageItemLocation(imageObj) {
	return(imageObj.image_item.src)
}
function getNextImage() {
	imageNum = (imageNum+1) % totalImages;
	var new_image = get_ImageItemLocation(imageArray[imageNum]);
	return(new_image);
}
function switchImage(place) {
	var new_image = getNextImage();
	document[place].src = new_image;
	var recur_call = "switchImage('"+place+"')";
	if (imageNum == 0)
		timerID = 0;
	else
		timerID = setTimeout(recur_call, interval);
}

// Open window for slideshow
function openSSWindow () {
	var SSWindow = open("artinbloom.html", "","width=400, height=450 top=200, left=400");
	SSWindow.focus();
	}
	
// Open window for 2009artinbloom collage
function openABWindow1 () {
	var ABWindow1 = open("2009artinbloom.html", "","width=550, height=720 top=100, left=500");
	ABWindow1.focus();
	}
	
// Open window for 2010artinbloom press release
function openABWindow2 () {
	var ABWindow2 = open("ABpress.html", "","width=550, height=620, top=100, left=500");
	ABWindow2.focus();
	}
	
// Count and display days to event
/*
function countDays() {		// Display the number of days to the Spring Arts Festival
	var dateToday = new Date();		// Get today's date
	var dateEvent =new Date();		// Create another date object
	dateEvent.setFullYear(2009, 4, 30);		// Set new date object to date of Spring Arts Festival
	daysToEvent = timeDifference(dateEvent, dateToday);
	if (daysToEvent == 0)	{		//This is event day
			document.getElementById('notice').innerHTML="Spring Arts Festival Today";
	}
	else {
		if (daysToEvent < 0) {		//The event is over.  Hide the notice.
			document.getElementById("spacefiller").style.visibility="hidden";
		}
		else {
			document.getElementById('days').innerHTML=daysToEvent;
		}
	}
}
function timeDifference(laterdate,earlierdate) {
    var difference = laterdate.getTime() - earlierdate.getTime();
    var daysDifference = Math.floor(difference/1000/60/60/24);
	return (daysDifference);
}
*/

//--></script>

