
function showHideNav(id) {
	
	wait = 200; // set the time to wait for menu to be shown
		
	// changeNav(id, wait);
	
	timer = window.setTimeout("changeNav('" + id + "')", wait);
	
}

function clearTimer() {
	if (timer != null) { 
		window.clearTimeout(timer);
	}
}

function changeNav(id, wait) {
	
	hideNav('subnavDomains');
	hideNav('subnavHosting');
	hideNav('subnavVDS');
	hideNav('subnavServers');
	hideNav('subnavComplex');
	hideNav('subnavColocation');
	hideNav('subnavResellers');
	hideNav('subnavServices');
	
	showNav(id);

}

function showNav(id){ 
	if (document.getElementById){ 
		obj = document.getElementById(id); 
		obj.style.display = ""; 
	} 
} 

function hideNav(id){ 
	if (document.getElementById){ 
		obj = document.getElementById(id); 
		obj.style.display = "none"; 
	} 
} 

function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}

function popupFeature(url) {
	var width = 500;
	var height = 350;
	var left = (screen.width - width) / 2;
	var top = (screen.height * 0.75 - height) / 2;
		
	newWin = window.open(url, "popup", "width="+width+",height="+height+",toolbar=no,location=no,directories=no,resizable=no,status=no,menubar=no,left="+left+", top="+top); //screenX=100,screenY=100
}



