//Ulead(R) RollOverButton(TM) 1.0 Generated JavaScript. Please do not edit.
nMaxItem = 6;
NameIndex = 0;
DefaultState = 1;
MouseOverState = 2;
MouseDownState = 3;

imgCounter = 0;

ImageList = new Array();

bIsSupportOK = (
	((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) ||
	((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
);

function AddImageToImageList(name, Default, MouseOver, MouseDown)
{
	ImageList[imgCounter] = new Array(nMaxItem);
	ImageList[imgCounter][NameIndex] = name;
	ImageList[imgCounter][DefaultState] = new Image();
	ImageList[imgCounter][DefaultState].src = Default;
	if (MouseOver != "") {
		ImageList[imgCounter][MouseOverState] = new Image();
		ImageList[imgCounter][MouseOverState].src = MouseOver;
	}
	if (MouseDown != "") {
		ImageList[imgCounter][MouseDownState] = new Image();
		ImageList[imgCounter][MouseDownState].src = MouseDown;
	}

	imgCounter++;
}

function ReplaceImage(index, state)
{
if (state == MouseOverState || state == DefaultState )
	{
	if (document.images[ImageList[index][NameIndex]] != null) 
		{
		if (ImageList[index][state] != null)
			document.images[ImageList[index][NameIndex]].src = ImageList[index][state].src;
		}

	}

if (state == MouseDownState)
	{
	for (i = 0; i < imgCounter; i++) 
		{
		imagestate = i == index ? MouseDownState : DefaultState;
		if (document.images[ImageList[i][NameIndex]] != null) 
			{
			if (ImageList[i][imagestate] != null)
				document.images[ImageList[i][NameIndex]].src = ImageList[i][imagestate].src;
			}
		}
	}
}
