﻿var navigationhover = function() 
{
    var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
    if(sfEls)
    { 
        for (var i=0; i<sfEls.length; i = i+1) 
        {
            sfEls[i].onmouseover=function() 
            {
                this.className+=" navigationhover";
            };
            sfEls[i].onmouseout=function() 
            {
	            this.className=this.className.replace(new RegExp(" navigationhover\\b"), "");
            };
        }
    } 
};

var employeefunctionhover = function() 
{
	var sfEls = document.getElementById("employeefunction").getElementsByTagName("LI");
    if(sfEls)
    { 
	    for (var i=0; i<sfEls.length; i = i+1) 
	    {
		    sfEls[i].onmouseover=function() 
		    {
			    this.className+=" functionhover";
		    };
		    sfEls[i].onmouseout=function() 
		    {
			    this.className=this.className.replace(new RegExp(" functionhover\\b"), "");
		    };
	    }
	}
};

if (window.attachEvent) 
{
    window.attachEvent("onload", navigationhover);
    window.attachEvent("onload", employeefunctionhover);
   //TODO - if you think the registraionsubmenu will ever have drop downs, you need to add another function like  employeefunctionhover and call it here
} 