<!--//--><![CDATA[//><!--

/*
 * -= nav.js =- 
 *
 * The function of this code is to open up the primary navigation control and to 
 * search for all the parent ListItems and create an event that gets fired when 
 * a rollover happens. it will change the class of the li to "over" which then 
 * tells IE to load the style that is required.
 *
 */

var mrMac = (navigator.userAgent.indexOf('Mac') != -1);

if (!mrMac) 
{
	sfHover = function() 
	{
		var primaryNav = document.getElementById('primary-nav');
		if( !primaryNav )
		{
			return;
		}
			
		var sfEls = document.getElementsByTagName("LI");
			
		for (var i=0; i<sfEls.length; i++) 
		{
			sfEls[i].onmouseover = function() 
			{
				this.className += " over";
			}
			
			sfEls[i].onmouseout = function() 
			{
				this.className = this.className.replace(new RegExp(" over\\b"), "");
			}
		}
	}
		
	if (window.attachEvent) window.attachEvent("onload", sfHover);
}
	
	
//--><!]]>

