var core=new Core();

core.addEventListener(window,'load',init);

function init()
{	
	var subNavDoc=document.getElementById("subNav").getElementsByTagName('ul')[0];
	var links=subNavDoc.getElementsByTagName('li');
	for(var i=0;i<links.length;i++)
	{
		core.addEventListener(links[i].firstChild,'mouseover',subNavDescriptionsIn);
		core.addEventListener(links[i].firstChild,'mouseout',subNavDescriptionsOut);
		core.addEventListener(links[i].firstChild,'click',subNavDescriptionsOut);
	}
}

function subNavDescriptionsIn()
{	
	var aTag=this;
	var value=this.firstChild.nodeValue;
	var spanValue;
	if(value=="Approach")
	{
		spanValue=" ... how we do it";
	}else if(value=="Strategy")
	{
		spanValue="... driving results";
	}else if(value=="Solutions")
	{
		spanValue="... what you get";
	}
	else if(value=="What Now?")
	{
		spanValue="... on the leading edge";
	}
	
	var eleSpan=document.createElement('span');
	var eleText=document.createTextNode(spanValue);
	eleSpan.appendChild(eleText);
	eleSpan.className="subNavDescription";
	this.appendChild(eleSpan);
}
function subNavDescriptionsOut()
{
	var aTag=this;
	var value=this.firstChild.nodeValue;
	var spanValue;
	if(value=="Who?" || value=="Who")
	{
		//aTag.firstChild.nodeValue="Who?";
			
	}else if(value=="What?")
	{
		
	}else if(value=="Where?")
	{
		
	}
	else if(value=="Huh?!")
	{
		
	}
	var me=this;
	var span=this.getElementsByTagName('span')[0];
	this.removeChild(span);	
	
}// JavaScript Document