Unless I'm missing the obvious:
code:
function hi(suffix) {
allplain();
document.getElementById('map' + suffix).style.backgroundImage = 'url(images/locale_lg-hi.png)';
document.getElementById('map' + suffix).style.color = '#fff';
document.getElementById('leg' + suffix).style.backgroundImage = 'url(images/locale_lg-hi.png)';
document.getElementById('leg' + suffix).style.color = '#fff';
document.getElementById('item' + suffix).style.backgroundColor = '#f6e3ab';
}
Called like this (note the quotes around the A which makes it a string):
code:
onmouseOver="hi('A');return false;