$(document).ready(function() {

	var busy = $('<div>Loading...</div>').attr('id', 'busy');
	busy.appendTo(document.body);
	busy.hide();
	
	$("#busy").bind("ajaxStart", function(){
        $(this).show();
  }).bind("ajaxStop", function(){
        $(this).hide();
  });	
	
	jQuery.preloadImages = function()
	{
	  for(var i = 0; i<arguments.length; i++)
	  {
	    jQuery("<img>").attr("src", arguments[i]);
	  }
	}
});


