javascript.
you should be able to say myImg.src = 'blah.jpg', where myImg=document.getElementById('y... image id')
dreamweaver can do this too.