// JavaScript Document

function showSubNav(divId) {
	//hideAllSubNav();
    var boo = document.getElementById(divId);
	if (boo!=null) boo.style.display = '';
}
function changeClass(cellId){
	//alert ('changeclass');
	var boo = document.getElementById(cellId);
	//alert(boo.length);
	if(boo!=null){
		//alert("not empty");
		boo.className = 'navOn';
	}
}
function initializeNav(){
	
	var cellId = document.getElementById('topNavId');
	if(cellId!=null){
		changeClass(cellId.content);
	}
	
	var divId = document.getElementById('subNavId');
	showSubNav(divId.content);
}
function hideAllSubNav(){
   var boo = document.getElementById('profServicesSubNav');
   boo.style.display = "none";
   
   boo = document.getElementById('managedServicesSubNav');
   boo.style.display = "none";

   boo = document.getElementById('techProcurementSubNav');
   boo.style.display = "none";

   boo = document.getElementById('successSubNav');
   boo.style.display = "none";

   boo = document.getElementById('newsSubNav');
   boo.style.display = "none";

   boo = document.getElementById('aboutUsSubNav');
   boo.style.display = "none";

   boo = document.getElementById('contactSubNav');
   boo.style.display = "none";

}
