function cycleSpotlight() {
	img_captions = new Array();

	// captions: (link-url,image-path,title,text-block)
	img_captions[0] = Array('http://classics.nd.edu/faculty/profiles/tadeusz-mazurek/','http://classics.nd.edu/images/fac-tad.jpg','Tadeusz Mazurek','Assistant Professional Specialist','Professor Tadeusz Mazurek researches the literature and cultural history of Republican Rome, with a particular interest in Roman law, religion and self-rule.  His published studies examine how ancient satirists treated the law, and how Roman priesthoods were consulted for the purpose of expiating prodigies.');

	img_captions[1] = Array('http://classics.nd.edu/faculty/profiles/joseph-amar/','http://classics.nd.edu/images/fac-ama.jpg','Joseph Amar','Professor, Department of Classics','Congratulations to Professor Joseph Amar on his recent promotion to the rank of full professor.  For the last dozen years, Professor Amar has dedicated himself tirelessly to the development of Arabic studies at Notre Dame.');
	img_captions[2] = Array('http://classics.nd.edu/faculty/profiles/li-guo/','http://classics.nd.edu/images/fac-guo.jpg','Li Guo','Associate Professor, Department of Classics','Professor Guo teaches Arabic language, &quot;The Arabian Night and World Literature,&quot; and &quot;Love, Death, and Exile in Arabic.&quot; He has published two works, Early Mamluk Syrian Historiography and Commerce, Culture, and Community in a Red Sea Port in the Thirteenth Century.');
	img_captions[3] = Array('http://classics.nd.edu/faculty/profiles/abdul-massih-saadi/','http://classics.nd.edu/images/fac-saa.jpg','Abdul Massih Saadi','Assistant Professional Specialist, Department of Classics','An expert in the field of Syriac and Arabic manuscripts, Professor Saadi has edited and translated the works of 9th-century bishop, Moshe Bar Kepha. He is a visiting professor at the Lutheran School of Theology and research professor at the University of Chicago.');
	img_captions[4] = Array('http://classics.nd.edu/faculty/profiles/david-ladouceur/','http://classics.nd.edu/images/fac-lad.jpg','David Ladouceur','Associate Professor, Department of Classics','Professor Ladouceur\'s specializations include Hellenistic Greek and Judaism, Early Christian Latin, and ancient medicine. He has received numerous grants for his work. In 2006, Professor Ladouceur organized the Henkels Conference on Childhood in Antiquity.');
	img_captions[5] = Array('http://classics.nd.edu/faculty/classics/ChrisBaron.htm','http://classics.nd.edu/images/fac-bar.jpg','Christopher A. Baron','Assistant Professor, Department of Classics','Professor Baron enjoys researching ethnic identity in ancient cultures and Greek epigraphy and has recently published an article in Hesperia. As a teacher, he focuses on historical detail yet compels his students to also consider the whole canvass of the past.');
	img_captions[6] = Array('http://classics.nd.edu/faculty/profiles/catherine-schlegel/','http://classics.nd.edu/images/fac-sch.jpg','Catherine Schlegel','Associate Professor, Department of Classics','Professor Schlegel\'s academic pursuits focus on Greek and Latin literature, particularly satiric and comic genres and issues of sex and gender. She is completing a fascinating work on the impact of magical incantation and invective on Horace\'s satires.');
	img_captions[7] = Array('http://classics.nd.edu/faculty/profiles/keith-bradley/','http://classics.nd.edu/images/fac-bra.jpg','Keith Bradley','Eli J. and Helen Shaheen Professor of Classics, Department of Classics','Professor Bradley\'s primary interests include Roman socio-cultural history, as well as the history of slavery, family, and religion in Western antiquity. These have joined in his study of Apuleius, a Romano-African author who was charged with the capital offense of practicing magic.');
	img_captions[8] = Array('http://classics.nd.edu/faculty/profiles/brian-krostenko/','http://classics.nd.edu/images/fac-kro.jpg','Brian Krostenko','Associate Professor, Department of Classics','Professor Krostenko\'s research focuses on Cicero, rhetoric, Latin linguistics, and the culture of the Late Roman Republic. He authored Cicero, Catullus, and the Language of Social Performance (Chicago, 2001).');
	img_captions[9] = Array('http://classics.nd.edu/faculty/profiles/elizabeth-mazurek/','http://classics.nd.edu/images/fac-maz.jpg','Elizabeth Mazurek','Associate Professor, Department of Classics','Latin literature, Roman epigraphy, and women and gender in the ancient world are among Professor Mazurek\'s many academic interests. Her articles highlight women in Roman public life and the poetry of Ovid, and she is currently researching Roman elegy.');
	img_captions[10] = Array('http://classics.nd.edu/faculty/profiles/catherine-schlegel/','http://classics.nd.edu/images/fac-sch.jpg','Catherine Schlegel','Associate Professor, Department of Classics','Professor Schlegel\'s academic pursuits focus on Greek and Latin literature, particularly satiric and comic genres and issues of sex and gender. She is completing a fascinating work on the impact of magical incantation and invective on Horace\'s satires.');
	img_captions[11] = Array('http://classics.nd.edu/faculty/profiles/Isabelle-Torrance/IsabelleTorrance.shtml', 'http://classics.nd.edu/images/fac-isa.jpg','Isabelle Torrance','Assistant Professor, Department of Classics','Isabelle Torrance specializes in archaic and classical Greek literature and culture, especially Greek tragedy and religion. She is also interested in the reception of classical myth in later literature.');
	img_captions[12] = Array('http://classics.nd.edu/faculty/classics/Hildegund.shtml','','Hildegund Mueller','Associate Professor, Department of Classics','Professor Mueller\'s interest lies in Latin literature, especially from Late Antiquity and the Middle Ages, with a strong focus on Christian prose (sermons, exegesis) and poetry.  She has done work on Augustine of Hippo (esecially his Psalm Sermons) and other Latin Church Fathers as well as poets from the same time, on medieval poetry and exegesis, and on the reception of the Church Fathers in the Middle Ages.  In Classical literature, she is interested in Latin rhetorics (especially the practice, i.e. the rhetorical strategies of Cicero\'s speeches) and poetry (Horace).');
	img_captions[13] = Array('http://classics.nd.edu/faculty/profiles/martin-bloomer/','','Martin Bloomer','Associate Professor, Department of Classics','Bloomer\'s chief areas of research lie in Latin literature, ancient rhetoric, and ancient education. His books include Valerius Maximus and the Rhetoric of the New Nobility (Chapel Hill 1993), Latinity and Literary Society at Rome (Philadelphia 1997), The Contest of Language (Notre Dame 2005) and The School of Rome (University of California Press, forthcoming).');
	img_captions[14] = Array('http://classics.nd.edu/faculty/profiles/robin-rhodes/','','Robin Rhodes','Associate Professor, Department of Art, Art History, and Design, Concurrent in Department of Classics','');
	img_captions[15] = Array('http://classics.nd.edu/faculty/profiles/sabine-maccormack/','http://classics.nd.edu/images/fac-mac.jpg','Sabine MacCormack','Theodore M. Hesburgh, C.S.C. Professor of Arts & Letters, Department of History and Department of Classics','MacCormack is a historian of the Roman empire, late antiquity and the early modern Spanish world, with a special interest in the peoples and cultures of the Andes. She has worked on the reasons for, and consequences of political and religious change, focusing on the impact of Christianity in the Roman Mediterranean, and in the Andes. Another interest is the interrelation between word and image, language and visual culture in the Roman empire and early modernity.'); 
		
	// DO NOT CHANGE ANYTHING BELOW
	var num = img_captions.length;
	img_output = "";
	img_number  = Math.floor(Math.random()*(num));
	if (img_captions[img_number][1] != "") {
		img_output = 
			'<a href="' + img_captions[img_number][0] + '"><img src="' + img_captions[img_number][1] + '" alt="' + img_captions[img_number][2] + '" border="0" /></a>';
	}
	img_output += 
		'<h3>' + img_captions[img_number][2] + '</h3>' + 
		'<p>' + img_captions[img_number][3] + '</p>' +
		'<p>' + img_captions[img_number][4] + ' <br /><a href="' + img_captions[img_number][0] + '">Learn More...</a></p>';

	document.write(img_output);
}

function currentNav() {
	currPage = getCurrentPath();
	navdiv = document.getElementById("nav-global")
	navli = navdiv.getElementsByTagName("li")
	if ((typeof(currPage[0])=="undefined")||currPage[0].length<2){
		for (var j = 0; j < navli.length; j++) {
			if (cleanLastSlash(currPage) == cleanLastSlash(getPath(navli[j].firstChild.href))) {
					navli[j].className = 'nav-current';
			}
		}

	}
	else {
		for (var i = 0; i < currPage.length; i++) {
			currPage[i];
			for (var j = 0; j < navli.length; j++) {
				if (currPage[i] == cleanLastSlash(getPath(navli[j].firstChild.href))) {
					navli[j].className = 'nav-current';
				}
			}
		}
	}
}


function getPath(someurl){
 d = document;
 csite = d.domain;
 sp = someurl.indexOf(csite) + csite.length;
 cpath = someurl.substring(sp);
 if (cpath.search(/index/)!=-1){
  re = "(.*?)\/index.shtml";
  myRe = new RegExp(re);
  cpath = cpath.match(myRe);
 }
return cpath;
}

function cleanLastSlash(someurl){
 lastchar = someurl.length-1;
 if (someurl.charAt(lastchar)=="/"){someurl = someurl.substring(0,(someurl.length-1))}
 return someurl;
}

function getCurrentPath(){
 d = document;
 cpage = d.URL;
 csite = d.domain;
 sp = cpage.indexOf(csite) + csite.length;
 cpath = cpage.substring(sp);
 if (cpath.search(/index/)!=-1){
  re = "(.*?)\/index.shtml";
  myRe = new RegExp(re);
  cpath = cpath.match(myRe);
 }
return cpath;
}

window.onload = init;

function init(){
	currentNav();
}