﻿// It is used in displaying the menu
function ChangeNavBar(tableCell, Status)
{
	if (Status == 1)
	{
//		tableCell.style.backgroundColor = "#404040";
//		tableCell.style.color = "#F5B100";
		tableCell.style.backgroundImage = "url(images/left_menu_background_negative.gif)";
	}
	else
		tableCell.style.backgroundImage = "url(images/left_menu_background.gif)";
}

function ChangeNavBar1(tableCell, Status)
{
	if (Status == 1)
	{
		tableCell.style.backgroundImage = "url(images/left_menu_background_negative.gif)";
//		tableCell.style.backgroundColor = "#F5B100";
	}
	else
		tableCell.style.backgroundImage = "url(images/right_menu_background.gif)";
}

function ChangeNavBar2(tableCell, Status)
{
	if (Status == 1)
	{
		tableCell.style.color = "#F5B100";
		tableCell.style.backgroundColor = "#000000";
	}
	else
	{
		tableCell.style.backgroundColor = "#505050";
		tableCell.style.textColor = "#FFFFFF";
	}
}

dropDownMenuStart = function() 
{
	var ie_li_elems = document.getElementById("horMainMenu").getElementsByTagName("LI");
	for (var i_elems = 0; i_elems < ie_li_elems.length; i_elems++) 
	{
		ie_li_elems[i_elems].onmouseover = function() 
		{
			this.className += " surfHover";
		}
		ie_li_elems[i_elems].onmouseout=function() 
		{
			this.className=this.className.replace(" surfHover", "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", dropDownMenuStart);

