<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script type="text/javascript">
// JavaScript Document
$(document).ready(function(){
$('a.menu').mouseover(
function() {
id = $(this).attr('id');
num = id.replace(/menu(\d+)/gi, '$1');
$('#img').attr('src', num+'.jpg');
}
);
});
</script>