function showNav(thisNav){
	$(('#' + thisNav)).slideDown(300, function() {
		// Animation complete.
	});
	document.getElementById("navHider").style.visibility = 'visible';
	document.getElementById("navHider2").style.visibility = 'visible';
}
function hideNav(thisNav){
	$(('#' + thisNav)).slideUp(300, function() {
		// Animation complete.
	});
}
function hideAllNav(thisNav){
	if(thisNav != 'companyNav'){
		hideNav('companySubNav');
	}
	if(thisNav != 'servicesNav'){
		hideNav('servicesSubNav');
	}
	if(thisNav != 'resultsNav'){
		hideNav('resultsSubNav');
	}
	if(thisNav != 'newsNav'){
		hideNav('newsSubNav');
	}
	if(thisNav != 'resourcesNav'){
		hideNav('resourcesSubNav');
	}
	if(thisNav != 'resultsNav' && thisNav != 'servicesNav' && thisNav != 'companyNav' && thisNav != 'newsNav' && thisNav != 'resourcesNav')
	{
		document.getElementById("navHider").style.visibility = 'hidden';
		document.getElementById("navHider2").style.visibility = 'hidden';
		var rollelement = document.getElementById("navRollOver");
		rollelement.style.visibility = "hidden";
	}
}
var homeRotator;
var thisImage = 2;
var lastImage = 1;
function changeHeroImage(theImage){
	if(theImage){
		thisImage = theImage;
	}
	$('#theHero' + lastImage).slideUp('slow', function() {
		// Animation complete.

		//$('#theHero' + lastImage).show();
	});
	$('#theHero' + thisImage).slideDown('slow', function() {
		// Animation complete.
		//alert('#theHero' + lastImage);
		//$('#theHero' + lastImage).show();
		 
	});
	lastImage = thisImage;
	thisImage++;
	if(thisImage == 5){
		thisImage = 1;
	}
	clearTimeout(homeRotator);
	homeRotator = setTimeout("changeHeroImage()",8000);
}
