﻿<!--//--><![CDATA[//><!--
hfNav = new function() {
	this.ul_id = 'hfNavUL';
	
	// Only execute the rest if the ul element is found in the dom
	if (this.ul_elem = document.getElementById(this.ul_id)) {
		this.li_elems = this.ul_elem.getElementsByTagName('LI');
		
		// Attach onmouseover functions to li elements
		this.attachHoverBehaviors = function() {
			var self = this;
			for (var i=0; i<this.li_elems.length; i++) {
				this.li_elems[i].onmouseover = function() {
					// We set the classname of the ul to the classname of the li
					self.ul_elem.className = this.className;
				}
			}
		}
		
		// Init the attach behaviors method
		this.attachHoverBehaviors();
		
	}
}
//--><!]]>