var sfHover = function()
{
	var sfEls1 = document.getElementById('nav1').getElementsByTagName('li');
	var sfEls2 = document.getElementById('nav2').getElementsByTagName('li');
	var sfEls3 = document.getElementById('nav3').getElementsByTagName('li');
  for (var i=0; i<sfEls1.length; i++)
  {
  	sfEls1[i].onmouseover=function()
  	{
  		this.className+=' sfhover';
  	}
    sfEls1[i].onmouseout=function()
    {
			this.className=this.className.replace(new RegExp(' sfhover\\b'),'');
    }
  }
  for (var i=0; i<sfEls2.length; i++)
  {
  	sfEls2[i].onmouseover=function()
  	{
  		this.className+=' sfhover';
  	}
    sfEls2[i].onmouseout=function()
    {
			this.className=this.className.replace(new RegExp(' sfhover\\b'),'');
    }
  }
  for (var i=0; i<sfEls3.length; i++)
  {
  	sfEls3[i].onmouseover=function()
  	{
  		this.className+=' sfhover';
  	}
    sfEls3[i].onmouseout=function()
    {
			this.className=this.className.replace(new RegExp(' sfhover\\b'),'');
    }
  }
}
if (window.attachEvent) window.attachEvent('onload',sfHover);

window.onload = function(){

  if (window.attachEvent) sfHover();
}


// if (window.attachEvent) window.attachEvent('onload', function(){document.getElementById('footer').style.fontStyle='normal'});

