/*
   DHTML for mostly-CSS-based drop-down menus to make it work on Internet Explorer.

   (C) Copyright 2006 Just Software Solutions Ltd. 
   Distributed under the Boost Software License, Version 1.0. 
   (See http://www.boost.org/LICENSE_1_0.txt)
*/
<attach event="onmouseover" handler="mouseover" />
<attach event="onmouseout" handler="mouseout" />
<script type="text/javascript">
function mouseover()
{
    element.className += ' hover';
    for( var x = 0; x!=element.childNodes.length; ++x )
    {
        if(element.childNodes[x].nodeType==1)
        {
            element.childNodes[x].className += ' parent_hover';
        }
    }
}

function mouseout()
{
    element.className = element.className.replace(/ ?hover$/,'');
    for( var x = 0; x!=element.childNodes.length; ++x )
    {
        if(element.childNodes[x].nodeType==1)
        {
            element.childNodes[x].className = element.childNodes[x].className.replace(/ ?parent_hover$/,'');
        }
    }
}
</script>
