// used to preload images in browser cache
function preload_images() {
	// give document a symbol
	var d = document;
	// array of registered images
	if (!d.IMGS && d.images) {
		d.IMGS = new Array();
	}
	
	// register images here
	var args = preload_images.arguments;
	
	// the length of the array
	var arrLength = d.IMGS.length;
	
	// iterate through each argument and load them
	for(n=0; n<args.length; n++) {
		// check the image name is ok
		if (args[n].indexOf("#")!=0) {
			// make a new image and add an image to it
			d.IMGS[arrLength] = new Image;
			d.IMGS[arrLength++].src = args[n];
		}
	}
}