<!--
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4))
	ns4 = true;
else
	ns4 = false;

if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
	ie4 = true;
else
	ie4 = false;

if (!ns4 && !ie4)
	location = "browser4.htm";

var m_ActiveButton = 0, m_ButtonCount = 0;
var m_Button = new Array(8);
var m_bImgLoaded = 0;

onerror = jsError; 
function jsError(errorMessage, url, line) 
{
	return true;
}

function imgLoad(bkgrnd, bcount, boff, bon, bsel, bselt, bselb)
{
	for (i = 0; i < 8; i++)
		m_Button[i] = new Image();
	m_Button[0].src = boff;
	m_Button[1].src = bon;
	m_Button[2].src = bsel;
	m_Button[3].src = "hitarea.gif";
	if (bselt != "") m_Button[5].src = bselt;
	else m_Button[5].src = bsel;
	if (bselb != "") m_Button[6].src = bselb;
	else m_Button[6].src = bsel;
	m_ButtonCount = bcount;
	m_bImgLoaded = 1;

	if (bkgrnd != "")
	{
		setImage("image1", "i1", bkgrnd);
		show('image1');
	}
	for (i = 1; i <= bcount; i++)
	{
		show('h'+i);
		show('b'+i);
		show('ot'+i);
	}

	if (m_ActiveButton > 0)
	{
		hide('ot'+m_ActiveButton);
		msclick(m_ActiveButton);
	}
	else
	{
		msclick(1);
		if (String(window.parent.frames['body'].location).indexOf("page3.htm") == -1)
			window.parent.frames['body'].location.replace("page3.htm");
	}
}


function imgLoad2(bkgrnd)
{
	setImage("image2", "i2", bkgrnd);
	show("image2");
}


function msover(id) 
{
	if (m_bImgLoaded == 1)
	{
		if (id == m_ActiveButton)
		{
			if (id == 1) l=5;
			else
			if (id == (m_ButtonCount-1)) l=6;
			else
				l=2;
		}
		else
			l=1;
		if (ns4)
			document.layers["b"+id].document.images["bi"+id].src = m_Button[l].src;
		else if (ie4)
			document["bi"+id].src = m_Button[l].src;
	}
}


function msout(id) 
{
	if (m_bImgLoaded == 1)
	{
		if (id == m_ActiveButton)
		{
			if (id == 1) l=5;
			else
			if (id == (m_ButtonCount-1)) l=6;
			else
				l=2;
		}
		else
			l=0;
		if (ns4)
			document.layers["b"+id].document.images["bi"+id].src = m_Button[l].src;
		else if (ie4)
			document["bi"+id].src = m_Button[l].src;
	}
}


function msclick(id) 
{
	if (m_bImgLoaded == 1 && id != m_ActiveButton)
	{
		if (id == 1) l=5;
		else
		if (id == (m_ButtonCount-1)) l=6;
		else
			l=2;

		if (ns4)
			document.layers["b"+id].document.images["bi"+id].src = m_Button[l].src;
		else if (ie4)
			document["bi"+id].src = m_Button[l].src;

		hide("ot"+id);
		show("st"+id);

		if (m_ActiveButton != 0)
		{
			hide("st"+m_ActiveButton);
			show("ot"+m_ActiveButton);

			if (ns4)
				document.layers["b"+m_ActiveButton].document.images["bi"+m_ActiveButton].src = m_Button[0].src;
			else if (ie4)
				document["bi"+m_ActiveButton].src = m_Button[0].src;
		}

		m_ActiveButton = id;

		if (ie4 && window.parent.frames.length > 0)
			window.parent.frames[2].focus();

	}
}


function show(id) 
{
	if (ns4) document.layers[id].visibility = "show";
	else 
	if (ie4) document.all[id].style.visibility = "visible";
}


function hide(id) 
{
	if (ns4) document.layers[id].visibility = "hide";
	else 
	if (ie4) document.all[id].style.visibility = "hidden";
}


function setImage(Layer, ImageID, ImageURL) 
{
	if (ns4)
		document.layers[Layer].document.images[ImageID].src = ImageURL;
	else if (ie4)
		document[ImageID].src = ImageURL;
}


function setButton(frame, bnum)
{
	if (window.parent.frames.length > 0)
		window.parent.frames[frame].msclick(bnum);
}


// End Ignore -->

