function tooltip() {
    var tooltips = getElementsByClassName("jstooltip", "DIV");
    for (i = 0; i < tooltips.length; i++) {
        tooltips[i].onmouseover = function() {
            if ($("as"+this.id))
                $("as"+this.id).className += " toolhover";
        }
        tooltips[i].onmouseout = function() {        
            if ($("as"+this.id)) {
                var thisList = $("as"+this.id);
                thisList.className = thisList.className.replace(new RegExp(" toolhover\\b"), "");
            }
        }
    }
}
womAdd("tooltip()");
