<!--//
/* TOP NAVIGATION ROLLOVERS */
var topnavNames = ["home", "about", "projects", "hiv", "founder", "getinvolved", "press", "donation", "events", "gallery", "newsletter", "taf", "sponsors", "contact"];
var maxTopnav = topnavNames.length;
var topnavOn = new Array(maxTopnav);
var topnavOff = new Array(maxTopnav);
var topnavPath = "/images/";
var topnavPrefix = "nav_";
var topnavType = ".gif";
var currTopnav = 0;

if (document.images){
	for (var i = 0; i < maxTopnav; i++){
		topnavOn[i] = new Image();
		topnavOn[i].src = topnavPath + topnavPrefix + topnavNames[i] + "_over" + topnavType;
		topnavOff[i] = new Image();
		topnavOff[i].src = topnavPath + topnavPrefix + topnavNames[i] + topnavType;
	}
}
	
function light(imgNum){
	if (document.images && (imgNum != 0)){
		document.images["tnav" + imgNum].src = topnavOn[imgNum - 1].src;
	}
}
	
function dim(imgNum){
	if (document.images && (currTopnav != imgNum)){
		document.images["tnav" + imgNum].src = topnavOff[imgNum - 1].src;
	}
}

function lightCurrent(){
	light(currTopnav);
}

function setCurrent(imgNum){
	if (imgNum != currTopnav){
		var temp = currTopnav;
		currTopnav = imgNum;
		light(currTopnav);
		dim(temp);
	}
}

window.onload = lightCurrent;
//-->