/*
	Image Preloader
	- This will attempt to preload images and will return true/false based on whether the array preloaded is done or not.
*/
function IMGPreloader(array, path) {
	var pl = this;
	if (!array) {
		alert("array to preload not found");
		return false;
	}
	
	pl.done = false;
	
	pl.load = function() {

		for(var x = 0; x< array.length; x++) {
			var t = new Image();
			t.src = ((path)?path:"") + array[x];
		}
		this.done = true;
		
	}
	
	pl.isLoaded = function() {
		return (this.done);
	}
	
}