
// var spotlight = '<div><h2><img src="images/title-spotlight.gif" alt="Spotlight" /></h2><p>Dr. Susan Soandso is heading up the latest development in extraordinary things while doing all sorts of wonderful other stuff. Dr. Susan Soandso is heading up the latest development in extraordinary things while.</p><p><a href="">read more ></a></p></div>';
// var spotlight = '<div><h2><img src="images/title-spotlight.gif" alt="Spotlight" /></h2> <p>CONFIDENTIALITY IN FACULTY RECRUITMENT, PROMOTION, AND TENURE REVIEWS, Statement from the Provost and the Chair of the Faculty</p><p><a href="http://web.mit.edu/provost/letters/letter04142008.html">read more ></a></p>';
//var spotlight = '<div><h2><img src="images/title-spotlight.gif" alt="Spotlight" /></h2> <p>BEGINNING THE DIALOGUE, A Letter of Welcome from the Chair of the Faculty.</p><p><a href="discussions/index.html">read more ></a></p>';
var spotlight = '<div><h2><img src="images/title-spotlight.gif" alt="Spotlight" /></h2> <p>Institute launches new diversity and inclusion web site.</p><p><a href="http://diversity.mit.edu">Inventing Our Future ></a></p>';



var homeSel = "";
var imgPath = "/faculty/images/";
var imgPre = '<img src="' + imgPath;
var imgPost = '" alt="" class="rollover" />';

function setSpotlight() {
		var navObj = document.getElementById("spotlight");
		navObj.innerHTML = spotlight;
}

function homeSelNav(idName) {
	homeSelNone();
	var navObj = document.getElementById(idName);
	navObj.src = imgPath + "nav-" + idName + "-on.gif";
	navObj = document.getElementById("spotlight");
	navObj.innerHTML = imgPre + "rollover-" + idName + ".jpg" + imgPost;
	homeSel = idName;
}

function homeSelNone() {
	if (homeSel) {
		var navObj = document.getElementById(homeSel);
		navObj.src = imgPath + "nav-" + homeSel + ".gif";
		navObj = document.getElementById("spotlight");
		navObj.innerHTML = spotlight;
		homeSel = null;
	}
}

var sel = "";

function selNav (section, idName) {
	selNone();
	var navObj = document.getElementById(idName);
	navObj.src = imgPath + section + "-" + idName + "-on.gif";
	sel = idName;
}

function selNone(section) {
	if (sel) {
		var navObj = document.getElementById(sel);
		navObj.src = imgPath + section + "-" + sel + ".gif";
		sel = null;
	}
}
