
// Runs once the DOM is loaded
$(function()
{
        //$.preloadImages2("image1.gif", "/path/to/image2.png", "some/image3.jpg");
	
});

////////////////////////////////////////////////////////////////


// Preload the images sent as arguments
function preloadImages() {
    var img = new Array();
    for (var i = 0; i < arguments.length; ++i) {
        img[i] = new Image();
        img[i].src = arguments[i];
    }
}

// Preload 2 the images sent as arguments
jQuery.preloadImages2 = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}
