var active, gonah = function (evt) { var target = evt ? evt.target : window.event.srcElement; active && (active.setAttribute("fill", "white")); target.setAttribute("fill", "yellow"); active = target; };