/**
 *
 *	Preloads Images using jQuery, Can load unlimited amount of images to Cache.
 *
 * Usage is as followed
 *
 *  jQuery.preloadImages("image1.jpg", "image2.jpg",…,"image7.jpg");
 *
 *	Since this function accepts unlimited arguments you can use it again and again no matter how many images you need to preload.
 *
 *
 * Copyright (c) 2011 Shawn Crigger (http://s-vizion.com)
 * Licensed under the MIT License (LICENSE.txt).
 *	Created by Shawn Crigger <shawn@s-vizion.com>
 *
 **/
(function ($)
 {
  var cachedimages = [];
  $.preloadImages = function()
  {
	var i   = 0;
	var num = arguments.length;
	for ( i = num; i--;)
	{
	  var thisImage = document.createElement('img');
	  thisImage.src=arguments[i];
	  cachedimages.push(thisImage);
	}
  }
})(jQuery)

