var menu_images = new Array(new Image(), new Image());
menu_images[0].src = "image/arr_b.gif";
menu_images[1].src = "image/arr_r.gif";

var top_home = new Array(new Image(), new Image());
var top_map = new Array(new Image(), new Image());
var top_contact = new Array(new Image(), new Image());
top_home[0].src = "image/top_home.gif"
top_home[1].src = "image/top_home1.gif"
top_map[0].src = "image/top_map.gif"
top_map[1].src = "image/top_map1.gif"
top_contact[0].src = "image/top_contact.gif"
top_contact[1].src = "image/top_contact1.gif"

function menulight(flag, id, img_flag, mid)
{
	if (!document.getElementById) return;
	var a, tr, img, pref, ind, trColor1, trColor2, aColor1, aColor2;
	if (img_flag)
	{
		pref = "menu";
		ind = 0;
		trColor1 = "#CFD4D5";
		aColor1 = "#000000";
		trColor2 = "";
		aColor2 = "#FFFFFF";
	}
	else
	{
		pref = "submenu";
		ind = 2;
		trColor1 = "#AAA9A9";
		aColor1 = "#FFFFFF";
		trColor2 = "";
		aColor2 = "#000000";
	}
	a = document.getElementById(pref+"a" + id);
	tr = document.getElementById(pref+"tr" + id);
	img = document.getElementById(pref+"img" + id);

	if (flag)
	{
		tr.bgColor = trColor1;
		a.style.color = aColor1;
		img.src = menu_images[ind+1].src;
	}
	else
	{
		tr.bgColor = trColor2;
		a.style.color = aColor2;
		img.src = menu_images[ind].src;
	}
}

