
theURL=document.location.href;
thePage = theURL.split("/");
for (i=0;i<thePage.length;i++) { 
	if (thePage[i].indexOf(".htm") != -1)  {
		thePage=thePage[i].split(".");
		theURL=thePage[0];
	}
}

function setLink()  {
	mainID=document.getElementById(theURL);
	mainID.style.backgroundImage="url('images/redBack.gif')";
}


function overColor(linkName)  {
	theID = document.getElementById(linkName);
	theID.style.backgroundImage="url('images/redBack.gif')";
	theID.style.cursor="pointer";
}

function outColor(linkName)  {
	if (linkName!=theURL)  {
		theID = document.getElementById(linkName);
		theID.style.backgroundImage="url('images/greenBack.gif')";
		theID.style.cursor="pointer";
	}	
}
