function leftNavRollOver(id)
{
	if ((id == "aovDemo") || (id == "aovSpectrum") || (id == "aovPhototoxicity") || (id == "aovPhotoreception"))
	{
		document.getElementById(id).style.backgroundColor= "#d0bee6";
	}
	else
	{
		document.getElementById(id).style.backgroundColor= "#cfe3f2";//"#d0bee6";//"#cfe3f2";
	}
}

function leftNavRollOut(id)
{
	document.getElementById(id).style.backgroundColor="#ffffff";
}
// Toggels images
// parm: targetImageName : String - the name of the image to replace
// parm: newImgSource : String - the name and path of the image to replate the target image with
//
// return: void
function toggleImage(targetImageName, newImgSource) {

	//alert('TargetName is: ' + targetImageName );
	if (targetImageName == null || newImgSource == null || targetImageName == "" || newImgSource == "") {
		alert("Error : toggleImage : targetImageName parm or newImgSource parm is null or empty.");
	}
	
	document.images[targetImageName].src = newImgSource;
}

function popPage() {
	var args;
	args=popPage.arguments;
	var popsvar=window.open(args[0], args[1],'left=150,top=250,screenX=150,screenY=150,width='+args[2]+',height='+args[3]+',toolbar=no,location=no,scrollbars=' + args[4] + ',menubar=no,resizable=no,status=no');
	popsvar.focus();
}

function goURL (url){
	//alert(url);
	window.location.href = url;
}