<!--

   /////////////////////////////
   ///     JS Rollovers     ////
   /////////////////////////////
   

	//////////////////////
	// GLOBAL VARIABLES //
	//////////////////////
var pathToImages =	"/images/";
var thisPage = 		0;
var suffix =		".gif";
var displayStatus = 	true;
var able =		document.images;
var statusLinePrefix =	"";

	/////////////////////
	// NAMES OF IMAGES //
	/////////////////////
	
var filenames = new Array();
filenames[1] = 		"calendar";
filenames[2] = 		"news";
filenames[3] = 		"directions";
filenames[4] = 		"enews";
filenames[5] = 		"contact";
filenames[6] = 		"home";


	//////////////////////////
	// STATUS LINE MESSAGES //
	//////////////////////////
	
var statusLine = new Array();
statusLine[1] = 	"Find out more about VCLC Events";
statusLine[2] = 	"Find more VCLC News";
statusLine[3] = 	"Find Directions to VCLC";
statusLine[4] = 	"Sign up to receive VCLC E-News";
statusLine[5] = 	"Contact VCLC";
statusLine[6] = 	"Click back to VCLC Homepage";

	/////////////////////
	// PRELOADS IMAGES //
	/////////////////////
if (able) {
	for (i = 1; i < filenames.length; i++) {
		eval("var " + filenames[i] + "_off = new Image();");
		eval(filenames[i] + "_off.src = '" + pathToImages + "nav-admin-" + filenames[i] + "_off" + suffix + "'");
	}
	for (i = 1; i < filenames.length; i++) {
		eval("var " + filenames[i] + "_on = new Image();");
		eval(filenames[i] + "_on.src = '" + pathToImages + "nav-admin-" + filenames[i] + "_on" + suffix + "'");
	}
	var tempImage = new Image();
}
	////////////////////
	// CHANGES IMAGES //
	////////////////////
function changeImages(linkNo, onOrOff) {
	if (able) {
		if (linkNo != thisPage) {
			eval("document.images['" + filenames[linkNo] + "'].src = " + filenames[linkNo] + "_" + onOrOff + ".src");
		}
	}
	if (displayStatus) {
		if (onOrOff == "on") {
			window.status = statusLinePrefix + statusLine[linkNo];
		} else {
			window.status = "";
		}
	}
}

function print_address(name) {
	var x=window.location.href.split('/');
	var y=x[2].split('.');
	var z=y[2].split(':');
	document.write(name + '@' + y[1] + '.' + z[0] );
}

function open_win(URL) {
	window.open(URL,'popupwindow','height=500,width=600,scrollbars=1,toolbar=0,location=0,menubar=0,resizable=0,left=10,top=10');
}

//-->
