// menu-System written by Azaroth in 2000

var menuPath = "menu/";
var menuPicType = ".jpg";

function preload()
{
	for (var i = 0; i < document.images.length; i++)
	{
		if (document.images[i].name.length > 0)
		{
			this.image = new Image();
			this.image.src = menuPath + document.images[i].name + "n" + menuPicType;
			this.image = new Image();
			this.image.src = menuPath + document.images[i].name + "h" + menuPicType;
			this.image = new Image();
			this.image.src = menuPath + document.images[i].name + "s" + menuPicType;
		}
	}
}

function normal(name)
{ document[name].src = menuPath + name + "n" + menuPicType; }

function highlight(name)
{ document[name].src = menuPath + name + "h" + menuPicType; }