Preload = {
	
	images : [],
	
	addImage : function (image, dir)
	{
		dir = dir ? dir : "";
		this.images.push(dir + image);
	},
	
	addImages : function (images, dir)
	{
		for (i = 0; i < images.length; i++) this.addImage(images[i], dir);
	},
	
	writePreload : function ()
	{
		insert = "";
	
		for(i=0; i < this.images.length; i++)
		{
			document.write('<span style="background-image:url(\''+ this.images[i] +'\')"></span>');
		}
	}
}