//Array of image names and sources
var modifier = 19;
var stringPosn = 6;

var navLibrary = new Array();
navLibrary[0] = "artsandentertain";
navLibrary[1] = "authors";
navLibrary[2] = "businessandmotiv";
navLibrary[3] = "domesticandglobal";
navLibrary[4] = "foodfashionand";
navLibrary[5] = "healthandscience";
navLibrary[6] = "humor";
navLibrary[7] = "masscomm";
navLibrary[8] = "minorityandracism";
navLibrary[9] = "sports";
navLibrary[10] = "womensissues";

var whereRwe = this.location.href;
var locArray = whereRwe.split("/");
var theSection = locArray[stringPosn];
var setSection = -1
for(i = 0; i < navLibrary.length; i++){
	if(navLibrary[i] == theSection){
		setSection = i;
	}
}

if(setSection != -1){
	setSection = setSection + modifier;
	activeSubSection = theSection;
	document.images[theSection].src = navCtaActive[setSection].src;
}

