var LOADED_IMAGES = [];
/**
 * jQuery Plugins
 */
(function($) {

	// img preloader
	$.fn.preloadImgs = function(path) {

		this.each(function(index, item){

			// if the path is missing a trailing slash, add it
			if (path.lastIndexOf('/') !== path.length-1) {
				path += '/';
			}

			var img = new Image();
			img.onload = function() {
				LOADED_IMAGES.push(this);
			};
			img.src = path + this;
		});
	}
})(jQuery);

