function navOver(imgTag)
{        
	var theImage = imgTag;	
	if(theImage.src.indexOf("_off.") != -1)	
		theImage.src = theImage.src.replace("_off.","_over.");		
	else	
		theImage.src = theImage.src.replace("_over.","_off.");	
}

function addLoadEvent(func) 
{ 
	var oldonload = window.onload; 
	if (typeof window.onload != 'function') 
	{ 
		window.onload = func; 
	} 
	else 
	{ 
		window.onload = function() 
		{ 
			if (oldonload) 
			{ 
				oldonload(); 
			} 
			func(); 
		} 
	} 
}

/* Sub Nav */
var timerAboutUs;
var timerOurServices;
var timerResources;
var timerNews;
var timerPortfolio;
var timerContactUs;

function dropDown(id)
{		
	document.getElementById(id).style.display = "block";
	stopHide(id);
}
function startHide(id)
{	
	if(id == 'ddAboutUs')
		timerAboutUs = delayedHide(id);
	if(id == 'ddOurServices')
		timerOurServices = delayedHide(id);
	if(id == 'ddResources')
		timerResources = delayedHide(id);
	if(id == 'ddNews')
		timerNews = delayedHide(id);
	if(id == 'ddPortfolio')
		timerPortfolio = delayedHide(id);
	if(id == 'ddContactUs')
		timerContactUs = delayedHide(id);	
}
function stopHide(id)
{	
	if(id == 'ddAboutUs')
		clearTimeout(timerAboutUs);
	if(id == 'ddOurServices')
		clearTimeout(timerOurServices);
	if(id == 'ddResources')
		clearTimeout(timerResources);
	if(id == 'ddNews')
		clearTimeout(timerNews);
	if(id == 'ddPortfolio')
		clearTimeout(timerPortfolio);
	if(id == 'ddContactUs')
		clearTimeout(timerContactUs);	
}
function delayedHide(id)
{
	return setTimeout("dropDownHide('" + id + "')", 100);
}
function dropDownHide(id)
{	
	document.getElementById(id).style.display = "none";
}
