

hover = function() {
	
	
	
var areaOption1 = document.getElementById("nav");
if (areaOption1) {

var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=(this.className.length>0? " ": "") + "hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("( ?|^)hover\\b"), "");
		}
	}
	
	
	
	
	var areaOption2 = document.getElementById("navsm");
if (areaOption2) {
var sfElsm = document.getElementById("navsm").getElementsByTagName("LI");
	for (var i=0; i<sfElsm.length; i++) {
		sfElsm[i].onmouseover=function() {
			this.className+=(this.className.length>0? " ": "") + "hover";
		}
		sfElsm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("( ?|^)hover\\b"), "");
		}
	}
}

	var areaOption2b = document.getElementById("navsmb");
if (areaOption2b) {
var sfElsmb = document.getElementById("navsmb").getElementsByTagName("LI");
	for (var i=0; i<sfElsmb.length; i++) {
		sfElsmb[i].onmouseover=function() {
			this.className+=(this.className.length>0? " ": "") + "hover";
		}
		sfElsmb[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("( ?|^)hover\\b"), "");
		}
	}
}
	
	
	
	var areaOption3 = document.getElementById("ja");
if (areaOption3) {
 	
	var sfElsja = document.getElementById("ja").getElementsByTagName("LI");
	for (var i=0; i<sfElsja.length; i++) {
		sfElsja[i].onmouseover=function() {
			this.className+=(this.className.length>0? " ": "") + "hover";
		}
		sfElsja[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("( ?|^)hover\\b"), "");
		}
	}   // element exists
}
	
	
		var areaOption4 = document.getElementById("jb");
if (areaOption4) {
 	
	var sfElsjb = document.getElementById("jb").getElementsByTagName("LI");
	for (var i=0; i<sfElsjb.length; i++) {
		sfElsjb[i].onmouseover=function() {
			this.className+=(this.className.length>0? " ": "") + "hover";
		}
		sfElsjb[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("( ?|^)hover\\b"), "");
		}
	}   // element exists
}
	
		var areaOption5 = document.getElementById("jc");
if (areaOption5) {
 	
	var sfElsjc = document.getElementById("jc").getElementsByTagName("LI");
	for (var i=0; i<sfElsjc.length; i++) {
		sfElsjc[i].onmouseover=function() {
			this.className+=(this.className.length>0? " ": "") + "hover";
		}
		sfElsjc[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("( ?|^)hover\\b"), "");
		}
	}   // element exists
}


}
	
	
}


mcAccessible = function() {
	
	var areaOpt1 = document.getElementById("nav");
if (areaOpt1) {
   	var mcEls = document.getElementById("nav").getElementsByTagName("A");
	for (var i=0; i<mcEls.length; i++) {
		mcEls[i].onfocus=function() {
			this.className+=(this.className.length>0? " ": "") + "sffocus"; //a:focus
			this.parentNode.className+=(this.parentNode.className.length>0? " ": "") + "hover"; //li < a:focus
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < a:focus
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < ul < li < a:focus
				}
			}
		}
		mcEls[i].onblur=function() {
			this.className=this.className.replace(new RegExp("( ?|^)sffocus\\b"), "");
			this.parentNode.className=this.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				}
			}
		}
	}
}
	

	
	
		var areaOpt2 = document.getElementById("navsm");
if (areaOpt2) {
		var mcElsm = document.getElementById("navsm").getElementsByTagName("A");
	for (var i=0; i<mcElsm.length; i++) {
		mcElsm[i].onfocus=function() {
			this.className+=(this.className.length>0? " ": "") + "sffocus"; //a:focus
			this.parentNode.className+=(this.parentNode.className.length>0? " ": "") + "hover"; //li < a:focus
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < a:focus
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < ul < li < a:focus
				}
			}
		}
		mcElsm[i].onblur=function() {
			this.className=this.className.replace(new RegExp("( ?|^)sffocus\\b"), "");
			this.parentNode.className=this.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				}
			}
		}
	}	
}

		var areaOpt2b = document.getElementById("navsmb");
if (areaOpt2b) {
		var mcElsmb = document.getElementById("navsmb").getElementsByTagName("A");
	for (var i=0; i<mcElsmb.length; i++) {
		mcElsmb[i].onfocus=function() {
			this.className+=(this.className.length>0? " ": "") + "sffocus"; //a:focus
			this.parentNode.className+=(this.parentNode.className.length>0? " ": "") + "hover"; //li < a:focus
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < a:focus
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < ul < li < a:focus
				}
			}
		}
		mcElsmb[i].onblur=function() {
			this.className=this.className.replace(new RegExp("( ?|^)sffocus\\b"), "");
			this.parentNode.className=this.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				}
			}
		}
	}	
}


	
		var areaOpt3 = document.getElementById("ja");
if (areaOpt3) {

			var mcElsja = document.getElementById("ja").getElementsByTagName("A");
	for (var i=0; i<mcElsja.length; i++) {
		mcElsja[i].onfocus=function() {
			this.className+=(this.className.length>0? " ": "") + "sffocus"; //a:focus
			this.parentNode.className+=(this.parentNode.className.length>0? " ": "") + "hover"; //li < a:focus
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < a:focus
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < ul < li < a:focus
				}
			}
		}
		mcElsja[i].onblur=function() {
			this.className=this.className.replace(new RegExp("( ?|^)sffocus\\b"), "");
			this.parentNode.className=this.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				}
			}
		}
	}
	
}


		var areaOpt4 = document.getElementById("jb");
if (areaOpt4) {

			var mcElsjb = document.getElementById("jb").getElementsByTagName("A");
	for (var i=0; i<mcElsjb.length; i++) {
		mcElsjb[i].onfocus=function() {
			this.className+=(this.className.length>0? " ": "") + "sffocus"; //a:focus
			this.parentNode.className+=(this.parentNode.className.length>0? " ": "") + "hover"; //li < a:focus
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < a:focus
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < ul < li < a:focus
				}
			}
		}
		mcElsjb[i].onblur=function() {
			this.className=this.className.replace(new RegExp("( ?|^)sffocus\\b"), "");
			this.parentNode.className=this.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				}
			}
		}
	}
	
}
	//
		var areaOpt5 = document.getElementById("jc");
if (areaOpt5) {

			var mcElsjc = document.getElementById("jc").getElementsByTagName("A");
	for (var i=0; i<mcElsjc.length; i++) {
		mcElsjc[i].onfocus=function() {
			this.className+=(this.className.length>0? " ": "") + "sffocus"; //a:focus
			this.parentNode.className+=(this.parentNode.className.length>0? " ": "") + "hover"; //li < a:focus
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < a:focus
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.parentNode.parentNode.className.length>0? " ": "") + "hover"; //li < ul < li < ul < li < a:focus
				}
			}
		}
		mcElsjc[i].onblur=function() {
			this.className=this.className.replace(new RegExp("( ?|^)sffocus\\b"), "");
			this.parentNode.className=this.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
			if(this.parentNode.parentNode.parentNode.nodeName == "LI") {
				this.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "LI") {
					this.parentNode.parentNode.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)hover\\b"), "");
				}
			}
		}
	}
	
}
	//
}

// only ie needs the hover script. all need the accessibility script...
// thanks http://www.brothercake.com/site/resources/scripts/onload/
if(window.addEventListener) window.addEventListener('load', mcAccessible, false); // gecko, safari, konqueror and standard
else if(document.addEventListener) document.addEventListener('load', mcAccessible, false); // opera 7
else if(window.attachEvent) { // win/ie
	window.attachEvent('onload', hover);
	window.attachEvent('onload', mcAccessible);
} else { // mac/ie5
	if(typeof window.onload == 'function') {
		var existing = onload;
		window.onload = function() {
			existing();
			hover();
			mcAccessible();
		}
	} else {
		window.onload = function() {
			hover();
			mcAccessible();
		}
	}
}
