$(function () {
	var img = new Image();
	$(img).load(function () {
			//$(this).css('display', 'none'); // .hide() doesn't work in Safari when the element isn't on the DOM already
			$(this).hide();
			$('#loader').removeClass('loading')
			$('#loader a').append(this);
			$(this).fadeIn();
	}).error(function () {
			// notify the user that the image could not be loaded
	}).attr('src', 'images/layout_img.jpg');
});
