// Define Variables
//
// scr  = Filename of Image-File
// name = Button
//
// (c) 2001 Oskar Emmenegger & Soehne AG
// Rafael Emmenegger

function HoverImage(id, on)
{
	var Button = eval("document.images.Button" + id);
	var Source = Button.src;
	if (Source.indexOf(".gif") < 0)
		{
		if (on && Source.indexOf("_Hover.jpg") < 0) 
			Button.src = Source.substring(0, Source.indexOf(".jpg")) + "_Hover.jpg";
		else 
			if (!on && Source.indexOf("_Hover.jpg") >= 0) 
				Button.src = Source.substring(0, Source.indexOf("_Hover.jpg")) + ".jpg";
		}
	else
		{
		if (on && Source.indexOf("_Hover.gif") < 0) 
			Button.src = Source.substring(0, Source.indexOf(".gif")) + "_Hover.gif";
		else 
			if (!on && Source.indexOf("_Hover.gif") >= 0) 
				Button.src = Source.substring(0, Source.indexOf("_Hover.gif")) + ".gif";
		}
}

function on(id)
{
	HoverImage(id, true);
}

function off(id)
{
	HoverImage(id, false);
}
