var zindex = 0;

function show(id)
{
	if (document.getElementById(id).style.visibility == "visible")
	{
		if (id == "select")
		{
			document.getElementById(id).style.position = "absolute";
		}
		document.getElementById(id).style.visibility = "hidden";
	}
	else
	{
		if (id == "select")
		{
			document.getElementById(id).style.zIndex = 1000;
			document.getElementById(id).style.position = "relative";
		}
		else
		{
			document.getElementById(id).style.zIndex = zindex++;
		}
		document.getElementById(id).style.visibility = "visible";
	}
}

info = new Image(42, 48);
infoon = new Image(42, 48);
link = new Image(42, 48);
linkon = new Image(42, 48);
lock1 = new Image(42, 48);
lock1on = new Image(42, 48);
path = new Image(50, 51);
pathon = new Image(50, 51);

info.src = "images/buttoninfo.gif";
infoon.src = "images/buttoninfoon.gif";
link.src = "images/buttonlink.gif";
linkon.src = "images/buttonlinkon.gif";
lock1.src = "images/buttonlock.gif";
lock1on.src = "images/buttonlockon.gif";
path.src = "images/buttonpath.jpg";
pathon.src = "images/buttonpathon.jpg";

function roll(img, alt)
{
	img.src = alt.src;
}

function lock(img, alt, id)
{
	if (document.getElementById(id).style.visibility != "visible")
	{
		img.src = alt.src;
	}
}