// JavaScript Documentvar dom = (document.getElementById) ? true : false;var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;var ns4 = (document.layers && !dom) ? true : false;var ie4 = (document.all && !dom) ? true : false;var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;var origWidth, origHeight;if (ns4) {	origWidth = window.innerWidth; origHeight = window.innerHeight;	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }}if (nodyn) { event = "nope" }var tipFollowMouse	= true;	var tipWidth		= 160;var offX		 	= 10;	// how far from mouse to show tipvar offY		 	= 10; var tipFontFamily 	= "arial";var tipFontSize		= "8pt";var tipFontColor	= "#000000";var tipBgColor		= "#99CCFF"; var origBgColor 	= tipBgColor; // in case no bgColor set in arrayvar tipBorderColor 	= "#99CCFF";var tipBorderWidth 	= 2;var tipBorderStyle 	= "ridge";var tipPadding	 	= 4;var messages = new Array();//messages[0] = new Array('Central Building','Vice President for Student Affairs, Student Affairs, Multicultural Affairs, Student Programs, Student Organizations',"#B4DCCB");messages[1] = new Array('Monroe Hall','Laundry, Vending',"#B4DCCB");messages[2] = new Array('Bruff Commons','Dining Room, McAlister Market, Laundry, Dry Cleaners, Mail Operations, Automated Deposit Station, Card Services Office',"#B4DCCB");messages[3] = new Array('Butler House','Laundry, Vending',"#B4DCCB");messages[4] = new Array('McAlister Auditorium','TUCP (Campus Programs)',"#B4DCCB");//messages[5] = new Array('Bruff Commons Area','Whitney Bank, ATMs',"#B4DCCB");//messages[6] = new Array('Bruff Quad','The Pavilion - Bookstore and Food Court',"#B4DCCB");messages[7] = new Array('Percival Stern','PJs Coffee & Tea Co.',"#B4DCCB");messages[8] = new Array('Richardson Memorial ','Drawing Board Cafe, Computer Printing in School of Architecture, Copiers in Library, Automated Deposit Station',"#B4DCCB");//messages[10] = new Array('Diboll Conference Center','Conference Services, Career Services Center, Tulane Legal Assistance Program, Student Employment',"#B4DCCB");messages[11] = new Array('Willow Residences','Laundry, Vending, PJ\'s Coffee and Tea Co., Computer Printing in Willow Cyber Cafe ,Automatic Deposit Station',"#B4DCCB");messages[12] = new Array('Sharp Hall','Laundry, Vending',"#B4DCCB");messages[13] = new Array('Paterson Hall','Laundry, Vending',"#B4DCCB");messages[14] = new Array('Irby Hall','Vending',"#B4DCCB");messages[15] = new Array('Phelps Hall','Vending',"#B4DCCB");messages[16] = new Array('Mayer Hall','Laundry, Vending, Le Gourmet',"#B4DCCB");messages[17] = new Array('Temporary Classrooms','Computer Printing',"#B4DCCB");messages[18] = new Array('Josephine Louise (JL) House','Laundry, Vending',"#B4DCCB");messages[19] = new Array('Tate House','Laundry, Vending',"#B4DCCB");messages[20] = new Array('Student Health Center','Health Center and Pharmacy',"#B4DCCB");messages[21] = new Array('Mechanical Engineering','Education Resource Center ',"#B4DCCB");//messages[22] = new Array('Rosen House','Graduate & Family Apartments',"#B4DCCB");messages[23] = new Array('Warren Hall','Laundry, Vending',"#B4DCCB");messages[24] = new Array('Aron Residences','Laundry, Vending',"#B4DCCB");messages[25] = new Array('Reily Student Recreation Center','Reily Center Smoothie Bar',"#B4DCCB");// messages[26] = new Array('Myra Clare Rogers Chapel','',"#B4DCCB");// messages[27] = new Array('Zimple Quad','',"#B4DCCB");// messages[28] = new Array('Newcomb Quad','',"#B4DCCB");// messages[29] = new Array('University Center Quad','',"#B4DCCB");messages[30] = new Array('Levin-Berwick Center','All Dining Facilities, Tulane Bookstore, Fed-Ex Kinkos Copy Center, Paris Parker Salon,Automated Deposit Station',"#B4DCCB");messages[31] = new Array('Wall Residential College','Laundry, Vending',"#B4DCCB");//messages[32] = new Array('New Doris Residence Hall','Laundry, Vending',"#B4DCCB");//messages[33] = new Array('Brown Field','',"#B4DCCB");//messages[35] = new Array('Willow Residences','Laundry',"#B4DCCB");messages[36] = new Array('Cudd Hall','Computer Printing',"#B4DCCB");messages[37] = new Array('Howard-Tilton Memorial Library','Copiers, Computer Printing, Automated Deposit Station',"#B4DCCB");messages[38] = new Array('Joseph Merrick Jones Hall','Copiers',"#B4DCCB");var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><b><font  style="font-size:11px; font-family:Tahoma;" color="#003366">';var midStr = '</font></b></td></tr><tr><td align="center" valign="top"><font  style="font-size:9px; font-family:arial;" color="#000000">';var endStr = '</font></td></tr></table>';var tooltip, tipcss;function initTip() {	if (nodyn) return;	tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;	tipcss = (ns4)? document.tipDiv: tooltip.style;	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites		tipcss.width = tipWidth+"px";		tipcss.fontFamily = tipFontFamily;		tipcss.fontSize = tipFontSize;		tipcss.color = tipFontColor;		tipcss.backgroundColor = tipBgColor;		tipcss.borderColor = tipBorderColor;		tipcss.borderWidth = tipBorderWidth+"px";		tipcss.padding = tipPadding+"px";		tipcss.borderStyle = tipBorderStyle;	}	if (tooltip&&tipFollowMouse) {		if (ns4) document.captureEvents(Event.MOUSEMOVE);		document.onmousemove = trackMouse;	}}window.onload = initTip;var t1,t2;	// for setTimeoutsvar tipOn = false;	// check if over tooltip linkfunction doTooltip(evt,num) {	if (!tooltip) return;	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);	tipOn = true;	// set colors if included in messages array	if (messages[num][2])	var curBgColor = messages[num][2];	else curBgColor = tipBgColor;	if (messages[num][3])	var curFontColor = messages[num][3];	else curFontColor = tipFontColor;	if (ns4) {		var tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + curBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td>'+ startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr + '</td></tr></table></td></tr></table>';		tooltip.write(tip);		tooltip.close();	} else if (ie4||ie5||ns5) {		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;		tipcss.backgroundColor = curBgColor;	 	tooltip.innerHTML = tip;	}	if (!tipFollowMouse) positionTip(evt);	else t1=setTimeout("tipcss.visibility='visible'",100);}var mouseX, mouseY;function trackMouse(evt) {	mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;	mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;	if (tipOn) positionTip(evt);}function positionTip(evt) {	if (!tipFollowMouse) {		mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;		mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;	}	// tooltip width and height	var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;	var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;	// document area in view (subtract scrollbar width for ns)	var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft;	var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop;	// check mouse position against tip and window dimensions	// and position the tooltip 	if ((mouseX+offX+tpWd)>winWd) 		tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";	else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";	if ((mouseY+offY+tpHt)>winHt) 		tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";	else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);}function hideTip() {	if (!tooltip) return;	t2=setTimeout("tipcss.visibility='hidden'",100);	tipOn = false;}