sfHover = function() {


		var sfEls = document.getElementById("mainNav").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}

		var sfEls = getElementsByClassName("subCat", "li");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfparenthover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfparenthover\\b"), "");
			}
		}
		
		if (document.getElementById("criteriaBox")) {
			var sfEls = document.getElementById("criteriaBox").getElementsByTagName("LI");
			for (var i=0; i<sfEls.length; i++) {
				sfEls[i].onmouseover=function() {
					this.className+=" sfhover";
				}
				sfEls[i].onmouseout=function() {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				}
			}
		}
		
		/* Used for gradient on homepage */
		if (document.getElementById("bannerGrad")) {
			var sfEls = document.getElementById("bannerGrad");
			sfEls.onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls.onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
		
		
		/* Used for gradients on content pages */
		if (document.getElementById("infoBarImg1")) {
			var sfEls = document.getElementById("infoBarImg1").getElementsByTagName("DIV");			
			sfEls[0].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[0].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
		
		if (document.getElementById("infoBarImg2")) {
			var sfEls = document.getElementById("infoBarImg2").getElementsByTagName("DIV");			
			sfEls[0].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[0].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

