//parse pathname to get directory name stored in a variable 
//called "dir".  This variable is used to control what 
//button has an arrow beside it.

var l = location.pathname.split("/philosophy/")
var p = l[1].split("/")
var dir = p[0]


//  FACULTY INFORMATION ARRAY
//
//  The following array is used to generate the links to faculty member pages and interviews
//  in the navigation bar.  To add a faculty member, add the following line to the end of the array:
//     profArray[*number*] = new prof("*Name*","*faculty page URL*","*interviewUrl*")
//  Replace the stuff between the * with the appropriate information.  For example, to add a faculty
//  member named Rene Descartes as the fifteenth entry, you would add the following line at the end 
//  of the array:
//	profArray[15] = new prof("Rene Descartes","descartes.html","interviews/descartes_interview.html")
//  If Descartes does not have an interview, the entry would look as follows:
//	profArray[15] = new prof("Rene Descartes","descartes.html","none")
//  The array numbers must be in order and must be unique.
//  To remove a link, delete the appropriate line and RENUMBER THE ARRAY ACCORDINGLY

function prof(name,facUrl,interviewUrl) {
	this.name = name
	this.facUrl = facUrl
	this.interviewUrl = interviewUrl
	} 

profArray = new Array()
profArray[0] = new prof("Brooke Ackerly","http://sitemason.vanderbilt.edu/psci/ackerly","none")
profArray[1] = new prof("William James Booth","http://sitemason.vanderbilt.edu/site/j8yGeA","none")
profArray[2] = new prof("Idit Dobbs-Weinstein","dobbs_weinstein.html","dobbs_weinstein_interview.html")
profArray[3] = new prof("Robert Ehman (emeritus)","ehman.html","ehman_interview.html")
profArray[4] = new prof("Kathryn T. Gines","gines.html","none")
profArray[5] = new prof("Lenn E. Goodman","goodman.html","goodman_interview.html")
profArray[6] = new prof("Michael P. Hodges","hodges.html","hodges_interview.html")
profArray[7] = new prof("Gregg M. Horowitz","horowitz.html","horowitz_interview.html")
profArray[8] = new prof("John Lachs","lachs.html","lachs_interview.html")
profArray[9] = new prof("Jos&#233; Medina","medina.html","medina_interview.html")
profArray[10] = new prof("Jonathan Neufeld","neufeld.html","none")
profArray[11] = new prof("Kelly Oliver","oliver.html","none")
profArray[12] = new prof("Lucius Outlaw","outlaw.html","none")
profArray[13] = new prof("John Post (emeritus)","post.html","post_interview.html")
profArray[14] = new prof("Susan Schoenbohm","schoenbohm.html","none")
profArray[15] = new prof("Charles Scott","scott.html","none")
profArray[16] = new prof("John J. Stuhr","stuhr.html","none")
profArray[17] = new prof("Robert B. Talisse","talisse.html","talisse_interview.html")
profArray[18] = new prof("Henry Teloh","teloh.html","teloh_interview.html")
profArray[19] = new prof("Jeffrey Tlumak","tlumak.html","tlumak_interview.html")
profArray[20] = new prof("David Wood","wood.html","wood_interview.html")



//GRADUATE INFORMATION ARRAY

function gradPage(name,pageUrl) {
	this.name = name
	this.pageUrl = pageUrl
	}

gradArray = new Array()
gradArray[0] = new gradPage("Fellowship Support","support.html")
gradArray[1] = new gradPage("Teaching","teaching.html")
gradArray[2] = new gradPage("Student Activities","activities.html")
gradArray[3] = new gradPage("Speakers Program","speakers.html")
gradArray[4] = new gradPage("Rules and Procedures","rules.html")
gradArray[5] = new gradPage("Placement (pdf)","placement.pdf")
gradArray[6] = new gradPage("Advice to Students","advice.html")
gradArray[7] = new gradPage("Graduate Students","students.html")

//PARALLEL DIRECTORY ARRAYS
dirArray = new Array()
dirArray[0] = 'faculty'
dirArray[1] = 'grad'
dirArray[2] = 'undergrad'
dirArray[3] = 'courses'
dirArray[4] = 'events'
dirArray[5] = 'newsletter/s05_newsletter.pdf'


linkName = new Array()
linkName[0] = 'Faculty and Research'
linkName[1] = 'Graduate'
linkName[2] = 'Undergraduate'
linkName[3] = 'Courses'
linkName[4] = 'Events'
linkName[5] = '2005 Newsletter (pdf)'

var w = ""
w += '<table border="0" cellspacing="5" cellpadding="0" align="left">'
w += '<tr>'
w += '<td valign="top" width="175">'
w += '<span class="nav">'
document.write(w)

document.write('<img src="../images/trans.gif" width="10" height="12" hspace="0" vspace="0" border="0">')
document.write('<a href="../">Home</a><br>')

for (i = 0; i < dirArray.length; i++) {
	var graphic = ""
	if (dir == dirArray[i]) {
		graphic = '<img src="../images/arrow.gif" width="10" height="12" hspace="0" vspace="0" border="0">'			
	} else {
		graphic = '<img src="../images/trans.gif" width="10" height="12" hspace="0" vspace="0" border="0">'
	}

	if (dir == "faculty" && dirArray[i] == "faculty") { 

		document.write(graphic + '<a href="../' + dirArray[i] + '">' + linkName[i] + '</a><br>')
		document.write('<span class="menu">')
		for (var j = 0; j < profArray.length; j++) {
			document.write('<img src="../images/trans.gif" width="10" height="12" hspace="5" vspace="0" border="0">')
			document.write('<a href="' + profArray[j].facUrl + '">' + profArray[j].name + '</a><br>')
//			if (profArray[j].interviewUrl == "none") {
//				document.write('<br>')
//			} else {
//				document.write(' | <a href="' + profArray[j].interviewUrl + '">Interview</a><br>')
//			}
		}
		document.write('</span>')

	} else if (dir == "grad" && dirArray[i] == "grad") {
		document.write(graphic + '<a href="../' + dirArray[i] + '">' + linkName[i] + '</a><br>')
		document.write('<span class="menu">')
		for (k = 0; k < gradArray.length; k++) {
			document.write('<img src="../images/trans.gif" width="10" height="12" hspace="5" vspace="0" border="0">')
			document.write('<a href="' + gradArray[k].pageUrl + '">' + gradArray[k].name + '</a><br>')
			}
		document.write('</span>')
	} else {
	document.write(graphic + '<a href="../' + dirArray[i] + '">' + linkName[i] + '</a><br>')	
	}
}

//document.write('<script language="JavaScript" src="../js/news.js"></script>')
var ww = ""
ww += '</span>'


//delete from here to "end delete" to remove news

ww += '<a href="http://www.vanderbilt.edu/AnS/cas.htm">'
ww += '<img src="../images/aands.gif" width="150" height="58" hspace="2" vspace="8" border="0"></a>'

ww += '<br><br>'
ww += '<span class="nav"><a href="../hotnews.html">News Flash:</a></span><br><br>'
ww += '<table cellpadding="0" cellspacing="0" border="0" width="150">'
ww += '<tr><td bgcolor="#000000" colspan="3"><img src="images/dot.gif" hspace="0" vspace="0" height="1" width="1"></td></tr>'
ww += '<tr>'
ww += '<td bgcolor="#000000"><img src="images/dot.gif" hspace="0" vspace="0" height="1" width="1"></td>'
ww += '<td align="left" valign="top" bgcolor="#ffffff">'
ww += '<table bgcolor="#ffffff" border="0"><tr><td>'
ww += '<font face="arial, verdana, helvetica, sans-serif" size="2" color="#000000">'


ww += headLine[randHead]

ww += '<p>For further information go to <a href="../hotnews.html">Hot News</a>.'


ww += '</font>'
ww += '</td></tr></table>'
ww += '</td>'
ww += '<td bgcolor="#000000"><img src="images/dot.gif" hspace="0" vspace="0" height="1" width="1"></td></tr>'
ww += '<tr><td bgcolor="#000000" colspan="3"><img src="images/dot.gif" hspace="0" vspace="0" height="1" width="1"></td></tr>'
ww += '</table>'

//end delete for removing news


ww += '</td>'
ww += '</tr>'
ww += '</table>'
document.write(ww)









