<!--
if (Image.prototype) {
    Image.prototype.loaded = 0;
}

function PreLoad(image_name) {
    this.off = new Image();
    this.off.src = "/images/template/button-" + image_name + "-off.gif";
    this.off.onLoad = (this.off.loaded = 1);
    this.on = new Image();
    this.on.src = "/images/template/button-" + image_name + "-on.gif";
    this.on.onLoad = (this.on.loaded = 1);
	
}

function Replace(image_object, image_name) {
	if (document.images) {
		image = eval(image_object);
		if (image.loaded) {
		    document.images[image_name].src = image.src;
		}
	}
}


if (document.images) {
	OBJhome = new PreLoad("home");
	OBJgallery = new PreLoad("gallery");
	OBJabout = new PreLoad("about");
	OBJtutorials = new PreLoad("tutorials");
	OBJspot = new PreLoad("spot");
	OBJlinks = new PreLoad("links");
	OBJcontact = new PreLoad("contact");
}

//-->
