// JavaScript Document
if (document.images) {

	about_on = new Image();
	about_on.src = "images/about_on.gif";
	news_on = new Image();
	news_on.src = "images/news_on.gif";
	classes_on = new Image();
	classes_on.src = "images/classes_on.gif";
	media_on = new Image();
	media_on.src = "images/media_on.gif";	
	contact_on = new Image();
	contact_on.src = "images/contact_on.gif";
}

imgOrig = null;

function go(imageID) {
	if (document.images) {
		imgOrig = document.images[imageID].src
		imgOn = eval(imageID + "_on.src");
		document.images[imageID].src = imgOn;
	} else {
	}
}

function stop(imageID) {
	if (document.images) {
		document.images[imageID].src = imgOrig;
	} else {
	}
}

function openImage(width, height, image_name) {
	var file_name="image_viewer.php?image=" + image_name;
	window.open(file_name,"","height=" + height + ",width=" + width + ",left=0,top=0");
}

function open_movie_viewer(width, height, filename, title, desc){
	window_height = parseInt(height) + 120;
	window_width = parseInt(width) + 40;
	window.open("movie_viewer.php?obj_width=" + width + "&obj_height=" + height + "&filename=" + filename + "&title=" + title + "&desc=" + desc, "", "height=" + window_height + ",width=" + window_width + ",left=0,top=0");
}

