/*  ============================================================== */
/*  This file inludes the main menu navigation structure.          */	
/*  To make changes to the menu, simply change the text or add     */
/*  another table cell and then modify the widths so they are      */
/*  uniform.  Do NOT add styling.. this is controlled by the CSS.  */
/*  Because this is an include file, any changes made here are     */
/*  global to the entire site ..change with caution                */
/* 													               	*/
/* 	NOTE!!!!  Because this is a JavaScript include file            	*/
/*  the string holding the HTML must ALL be on the SAME line       	*/
/* 	or the include will not work!									*/
/*  Please Document ANY changes to this page below.		   			*/
/* ===============================================================  */
/* 	Programmer:	Chris Binkerd	cbinker@pluto.dsu.edu
	Date Created:	12/10/2005
	Date Modified: 	
*/

/* String to hold menu HTML */

var menuString="<table cellpadding=0 cellspacing=1><TR><TD width=115 class=menu id=home onclick=go(this.id); onmouseout=rollOut(this.id); onmouseover=rollOver(this.id);></TD><TD id=prospectiveStudents onclick=go(this.id); onmouseover=rollOver(this.id); onmouseout=rollOut(this.id); width=140 class=menu></TD><TD id=currentStudents onclick=go(this.id); onmouseover=rollOver(this.id); onmouseout=rollOut(this.id); class=menu width=115></TD><td id=faculty onclick=go(this.id); onmouseover=rollOver(this.id); onmouseout=rollOut(this.id); class=menu width=115></td><td id=studentTeaching onclick=go(this.id); onmouseover=rollOver(this.id); onmouseout=rollOut(this.id); width=115 class=menu></td><td id=documents onclick=go(this.id); onmouseover=rollOver(this.id); onmouseout=rollOut(this.id); width=115 class=menu></td><td id=contact onclick=go(this.id); onmouseover=rollOver(this.id); onmouseout=rollOut(this.id); width=115 class=menu></td></TR></table>";

/* Write header HTML to page  */	
document.write(menuString);

function rollOver(cellName)
{
	document.getElementById(cellName).className = 'menuRollOver';
}
function rollOut(cellName)
{
	document.getElementById(cellName).className = 'menu';
}

/* This function directs the rollover of the table data cells */
function go(url)
{
	if(url == 'home')
	location.href='index.htm';
	
	if(url == 'currentStudents')
	location.href='currentStudents.htm';
	
	if(url == 'prospectiveStudents')
	location.href='prospectiveStudents.htm';
	
	if(url == 'faculty')
	location.href='faculty.htm';
	
	if(url == 'contact')
	location.href='contact.htm';
	
	if(url == 'studentTeaching')
	location.href='studentTeaching.htm';
	
	if(url == 'documents')
	location.href='documentPortal.htm';

}
