

Event.observe(window, 'load', function()
{
    var tabs = document.getElementsByClassName("trhighlight");
    
    tabs.each(function(tab)
    {
        
        Event.observe(tab, 'mouseover', function()
            {
                Element.addClassName($(tab), 'highlight');
            }
        );
        
        Event.observe(tab, 'mouseout', function()
            {
                Element.removeClassName($(tab), 'highlight');
            }
        );
    });
    
    var detail = [
        'hd00',
        'hd01',
        'hd02',
        'hd03',
        'hd04',
        'spa',
        'ped',
        'footc'
    ];
    
    detail.each(function(det)
    {
        Event.observe(det, 'mouseover', function()
            {
            $('menu_hl_' +det).style.display = "block";
            }
        );
    
        Event.observe(det, 'mouseout', function()
            {
                $('menu_hl_' +det).style.display = "none";
            }
        );
    });
});