 
var APP_CONTEXT = "/";

var fixRewrite = new Image();
fixRewrite.src = APP_CONTEXT + "logon.jsp";



function generateTopNavigationTable( ) {


	topNavHTML = "";
	section = "null";
	
	topNavHTML += '<table  cellpadding="0" cellspacing="0" border="0" width=572>';
	topNavHTML += '<TR>';
	topNavHTML += '<TD><img src="images/inviso.gif" width="21" height="4" alt="" border="0"></A></TD>';
	
	if(section == 'students') {	
		topNavHTML += '<TD><img name="students" src="images/nav_students_1.gif" width="83" height="22" alt="" border="0"></A></TD>';
		
	} else {
		topNavHTML += '<TD><A href="index_student.html"><img name="students" src="images/nav_students_0.gif" onmouseover="this.src=\'images/nav_students_1.gif\'" onMouseout="this.src=\'images/nav_students_0.gif\'" width="83" height="22" alt="" border="0"></A></TD>';
	}
	
	if(section == 'parents') {	
		topNavHTML += '<TD><img name="parents" src="images/nav_parents_1.gif" width="64" height="22" alt="" border="0"></A></TD>';
	} else {
		topNavHTML += '<TD><A href="index_parents.html"><img name="parents" src="images/nav_parents_0.gif" onmouseover="this.src=\'images/nav_parents_1.gif\'" onMouseout="this.src=\'images/nav_parents_0.gif\'" width="64" height="22" alt="" border="0"></A></TD>';
	}
	
	if(section == 'alumni') {	
		topNavHTML += '<TD><img name="alumni" src="images/nav_alumni_1.gif" width="59" height="22" alt="" border="0"></A></TD>';
	} else {
		topNavHTML += '<TD><A href="index_alumni.html"><img name="alumni" src="images/nav_alumni_0.gif" onmouseover="this.src=\'images/nav_alumni_1.gif\'" onMouseout="this.src=\'images/nav_alumni_0.gif\'" width="59" height="22" alt="" border="0"></A></TD>';
	}
	
	if(section == 'faculty') {	
		topNavHTML += '<TD><img name ="faculty" src="images/nav_faculty_1.gif" width="63" height="22" alt="" border="0"></A></TD>';
	} else {
		topNavHTML += '<TD><A href="index_faculty.html"><img name ="faculty" src="images/nav_faculty_0.gif"  onmouseover="this.src=\'images/nav_faculty_1.gif\'" onMouseout="this.src=\'images/nav_faculty_0.gif\'" width="63" height="22" alt="" border="0"></A></TD>';
	}
	
	if(section == 'directors') {	
		topNavHTML += '<TD><img name="directors" src="images/nav_directors_1.gif" width="79" height="22" alt="" border="0"></A></TD>';
	} else {
		topNavHTML += '<TD><A href="index_directors.html"><img name="directors" src="images/nav_directors_0.gif"  onmouseover="this.src=\'images/nav_directors_1.gif\'" onMouseout="this.src=\'images/nav_directors_0.gif\'"  width="79" height="22" alt="" border="0"></A></TD>';
	}
	
	if(section == 'contact') {	
		topNavHTML += '<TD><img name="contact" src="images/nav_contact_1.gif" width="66" height="22" alt="" border="0"></A></TD>';
	} else {
		topNavHTML += '<TD><A href="http://secure.rutgers.edu/saapplication/routing/ContactForm.aspx"><img name="contact" src="images/nav_contact_0.gif"  onmouseover="this.src=\'images/nav_contact_1.gif\'" onMouseout="this.src=\'images/nav_contact_0.gif\'" width="66" height="22" alt="" border="0"></A></TD>';
	}

	topNavHTML += '<TD><img src="images/nav_ns_globe.gif" width="136" height="22" alt="" border="0"></A></TD>';
	topNavHTML += '</TR>';
	topNavHTML += '</table>';

	document.write(topNavHTML);
	
	
}
