// JavaScript removed from top of default nyu page

var searchStr = 'Search & Directory';
	function cleanSearch() {
		document.search.query.onfocus = function() {if (this.value == searchStr) this.value = ''};
		document.search.query.onblur = function() {if (this.value == '') this.value = searchStr};
	}
	//addEvent(window, "load", cleanSearch, false);
	addEvent(window, "load", function() {enableDropdown('utilities')}, false);
	addEvent(window, "load", function() {enableDropdown('nav')}, false);
	
	function popUp(URL,w,h) {
		winl = (screen.width - w) / 2;
		wint = (screen.height - h) / 2;
	
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+w+",height="+h+",top="+wint+",left="+winl+"');");
	}
	
	function profilePopUp(URL,w,h) {
		winl = (screen.width - w) / 2;
		wint = (screen.height - h) / 2;
	
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width="+w+",height="+h+",top="+wint+",left="+winl+"');");
	}