function showOffice(office) { $(function() { $('#' + office).mouseover(); }); } $('img[usemap]').maphilight(); $(function() { showOffice("PSB401"); });