// list item :hover pseudoclass emulation script for IE6
// ----------------------------------------------------------------------------------------------------
var parentContainerId = "categories";

listHover = function()
{
	var listElements = document.getElementById(parentContainerId).getElementsByTagName("LI");
   
   for(var i = 0; i < listElements.length; i++)
   {
		listElements[i].onmouseover = function()
      {
			this.className += " listhover";
		}
		listElements[i].onmouseout = function()
      {
			this.className = this.className.replace(new RegExp(" listhover\\b"), "");
		}
	}
}

// attach event to IE6
// ----------------------------------------------------------------------------------------------------
if(window.attachEvent)
{
   window.attachEvent("onload", listHover);
}
