﻿function sub( obj, bool )
{
    obj.className = ( bool )? "over" : "";       
    var childs = obj.childNodes;  
    for( i in childs ){
        if( childs[ i ].nodeName == "A" ){
            childs[ i ].className = ( bool )? "over" : "";
        }
        if( childs[ i ].nodeName == "DIV" ){
            childs[ i ].style.display = ( bool )? "block" : "none";
        }
    }    
}

function over( obj, bool )
{
    obj.className = ( bool )? "over" : "";
    var childs = obj.childNodes;  
    for( i in childs ){        
        if( childs[ i ].nodeName == "A" ){
            childs[ i ].className = ( bool )? "over" : "";
        }
    }
}