// JavaScript Document
$(document).ready(function() {
	$('img.pimg').each(function(){
		if (!this.complete || (!$.browser.msie && (typeof this.naturalWidth == "undefined" || this.naturalWidth == 0))) {
			$(this).css('display', 'none'); 
		} else {
			$(this).css('display', 'block'); 
		}
	});
});
<!-- based on: http://stackoverflow.com/questions/92720/jquery-to-replace-broken-images //-->