
var selfnav7;
function LSevenNavBar()
{
	selfnav7 = this;

	this.mouseState = 'off';
	this.interval = null;
	this.mNode = null;
	this.cNode = null;

	this.initializing = false;
	this.init();
}

LSevenNavBar.prototype.init = function() // this will poll the bar until it finds the node
{

	this.mNode = this.getElement('empNav');

	if(this.mNode == null && this.initializing == false)
	{
		this.interval = setInterval('selfnav7.init()', 10);
	}

	else
	{
		this.cNode = this.getElement('empdcm');
		if(this.cNode != null)
		{
			clearInterval(this.interval);
			this.mNode.onmouseout = function()
			{
				selfnav7.mouseState = 'off';
				setTimeout('selfnav7.checkMouse()',100);
			}
			this.mNode.onmouseover = function() 
			{
				selfnav7.mouseState = 'on';
				selfnav7.mNode.style.color = '#160052';
				selfnav7.cNode.style.display = 'block';
			}
			this.cNode.onmouseout = this.mNode.onmouseout;
			this.cNode.onmouseover = this.mNode.onmouseover;
		}
	}
	this.initializing = true;
}

LSevenNavBar.prototype.checkMouse = function()
{
	if(selfnav7.mouseState == 'off')
	{
		selfnav7.mNode.style.color = '#160052';
		selfnav7.cNode.style.display = 'none';	
	}
}

LSevenNavBar.prototype.getElement = function(el)
{
	if(document.getElementById(el))
	{
		return document.getElementById(el);
	}
	else if(!document.getElementById && document.all[el])
	{
		return document.all[el];
	}
	else
	{
		return null;
	}
}
var lSevenNav = new LSevenNavBar(); 
