Well the first can be achieved with the document.ready function in jquery
$(document).ready(function(){...});
The changing image can be achieved with any number of plugins
If you wish you can check if images are loaded with the complete property. I know that at least the malsup jquery cycle slideshow makes use of this function internally.