var blurb, nav, about, admissions, teaching, arts, student, parents, alumni, lastName, 
	re= new Object(), blurb = new Object(), timerID=null;

re.setOff = function(){return false;}
re.setOver = function(){return false;}
re.setSrc = function() {return false;}

blurb.show = function(){return false;}
blurb.hideAll = function(){return false;}

function initNav() {

	re = new RolloverEngine();
	blurb = new DivGroup(["about","admissions","teaching","arts","student","parents","alumni"],sectionName)

	blurb.show(sectionName);
	re.getImage(sectionName + "Nav").off.src = 	re.getImage(sectionName + "Nav").over.src;
	re.setOver(sectionName + "Nav");

	re.getImage(sectionName + levelName).off.src = 	re.getImage(sectionName + levelName).over.src;
	re.setOver(sectionName + levelName);
	

	if (subLevelName != "") {
		if( ! noLeftNav ) {
			re.getImage(subLevelName).off.src = re.getImage(subLevelName).over.src;
			re.setOver(subLevelName);
		}
		
		if ( isQuickLink ) {
			re.getImage(sectionName + subLevelName).off.src = re.getImage(sectionName + subLevelName).over.src;
			re.setOver(sectionName + subLevelName);
		
		}
	}
}

function show(name) {
	re.setOver(name + "Nav");
	blurb.show(name);
}

function hide(name) {
	if (name != sectionName) {
		re.setOff(name + "Nav");
	}
	re.setOver(sectionName + "Nav");
	blurb.hideAll();
}

function setTimer(name) {
	lastName = name
	timerID = setTimeout("hide('" + name + "');",500);
	
}

function stopTimer(name,rollFlag) {

	if (timerID != null) clearTimeout(timerID);
	if (rollFlag) re.setOff(lastName + "Nav");
	show(name);
	
}

function popUp(URL, width, height) {
	day = new Date();
	id = day.getTime();
	width = (typeof(width) == "undefined")? 550 : width;
	height = (typeof(height) == "undefined")? 400 : height;

	eval("page" + id + " = window.open(URL, 'page" + id + "', 'toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + "');");
}