﻿

function addRollover(asObjectID) {
    
    if (document.getElementById(asObjectID)) {
        var obj = document.getElementById(asObjectID);
        
        obj.onmouseover = function() {
            this.className = this.className.replace(new RegExp("Hover\\b"), "") + "Hover";
        }
        obj.onmouseout = function() {
            this.className = this.className.replace(new RegExp("Hover\\b"), "");
        }
    }
}    
