<!--

//MENU-i
function imageSwap3On(theImage,theSrc,span,hasMenuItems) {
	if (hasMenuItems == "True") {
		styleRoll(span, true);
	    }
	imageSwap2(theImage, theSrc);
    }
function styleRoll(span, vis) {
	var el = GetStyle(span);
	var state = vis? 'visible':'hidden';
	el.visibility = state;
    }
function imageSwap2(theImage,theSrc){
	if(document.images){
		var img = document.images[theImage];
		if (img) {
			img.src = theSrc;
		} else
		{
			for (var i = 0; i < document.images.length; i++) {
				if (document.images[i].name == theSrc) {
					document.images[i].src = theSrc;
					return;
				    }
			    }
		    }
	    }
	
    }
function imageSwap3On(theImage,theSrc,span,hasMenuItems) {
	if (hasMenuItems == "True")
	{
		styleRoll(span, true);
	}
	imageSwap2(theImage, theSrc);
}
function imageSwap3Off(theImage,theSrc,span,hasMenuItems) {
	if (hasMenuItems == "True")
	{
		styleRoll(span, false);
	}
	imageSwap2(theImage, theSrc);
}
function GetStyle(name) {
	if (document.getElementById) {
		return document.getElementById(name).style;
	} else if (document.all) {
		return document.all[name].style;
	} else {
		var el =  document.layers[name];
		if (el != null) return el;
		for (var i = 0; i < document.layers.length; i++) {
			el =  document.layers[i].document.layers[name];
			if (el != null) return el;
		}
	}
}
function centerOn(elIn){
	setCenterStyle(elIn, true);
}	
function centerOff(elIn){
	setCenterStyle(elIn, false);
}
function setCenterStyle(elIn, isOn) {
	var useColor = isOn ? "#14ACEB" : "white";
	var el = getOurLabel(elIn);
	if (el == null) return;
	el.style.color = useColor;
	var iName = getImageName(elIn);
	if ((iName != null) && (document.images))
	{
		var ourImage = document.images[iName];
		if (isOn) {
			if (!ourImage.other)
				ourImage.other = ourImage.src;
		}
		var swapper;
		if (isOn)
			swapper = "/source/images/red_arrow_lid.gif";
		else
			swapper = ourImage.other;
		imageSwap2(iName, swapper);
	}
}
function getOurLabel(el){
	var ip = el.id.lastIndexOf('_');
	var name = el.id.substr(0, ip);
	name += "_labCenterNav";
	if (eval(el) == "")
		return null;
	var el = FindElement(name);
	return el;
}
function getImageName(el) {
	var ip = el.id.lastIndexOf('_');
	var name = el.id.substr(0, ip);
	var testName = name + "_imgArrow1";
	if (document.images[testName])
		return testName;
	testName = name + "_imgArrow2";
	if (document.images[testName])
		return testName;
	return null;
}
function FindElement(elementName) {
	if (document.getElementById) {
		var e1 = document.getElementById(elementName);
		if (e1 != null) return e1;
	}
	var frm = document.forms[0];
	var el = frm.elementName;
	if (el != null) return el;
	for (var i = 0; i < frm.elements.length; i++)   {
		if (frm.elements[i].name.indexOf(elementName) != -1) {
			return frm.elements[i];
		}
	}
	return null;
}
//MENU-f

//--> 