function loadImage(){
	var img = new Image();
	$(img).load(function(){
		$(this).hide();
		$('#loader').removeClass('loading').append(this);
		$(this).fadeIn();
	}).error(function(){
		// notify the user that the image could not be loaded
	}).attr("src", src);
}

// -------------------------------------------------------------------
$(document).ready(function(){				
	loadImage();
});	
// -------------------------------------------------------------------
