menu_array = new Array("home","about","products","services","support");
menu_links = new Array("/index.htm","/about/index.htm","/products/index.htm","/services/index.htm","/support/index.htm");

menu_main = new Array();
menu_main[0] = "Home,/index.htm";
menu_main[1] = "About Us,/about/index.htm"
menu_main[2] = "Services,/products/index.htm"
menu_main[3] = "Clients and Countries,/clients/index.htm"
menu_main[4] = "Support,/currentsupport/index.htm"

menu_about = new Array();
menu_about[0] = "Overview,/about/index.htm";
menu_about[1] = "Management Team,/about/management.htm";
menu_about[2] = "Staff,/about/staff.htm";
menu_about[3] = "Jobs,/about/jobs.htm";
menu_about[4] = "Partners,/about/partners.htm";
menu_about[5] = "Press Room,/about/press.htm";
menu_about[6] = "Contact Us,/about/contact.htm";

menu_products = new Array();
menu_products[0] = "Overview,/products/index.htm";
menu_products[1] = "Managed Messaging<br>and Collaboration,/products/messaging.htm";
menu_products[2] = "Managed Hosting,/products/hosting.htm";
menu_products[3] = "Managed Networks,/products/networks.htm";
menu_products[4] = "Business Continuity,/products/continuity.htm";
menu_products[5] = "Online Backup,/products/backup.htm";
menu_products[6] = "Traveler's Access,/products/travelers.htm";
menu_products[7] = "Consulting,/products/consulting.htm";
menu_products[8] = "Brochures,/products/brochures.htm";

menu_clients = new Array();
menu_clients[0] = "Overview,/clients/index.htm";
menu_clients[1] = "Clients,/clients/clients.htm";
menu_clients[2] = "Countries,/clients/countries.htm";

menu_support = new Array();
menu_support[0] = "Overview,/currentsupport/index.htm";
menu_support[1] = "How to Contact Support,/currentsupport/qualityassurance.htm";
menu_support[2] = "Traveler's Access Services,/tas/index.htm";
menu_support[3] = "Message Services,/currentsupport/techsupexchandemail.htm";
menu_support[4] = "Listserv Information,/currentsupport/techsuplistserv.htm";

menu_tas = new Array();
menu_tas[0] = "Overview,/services/tasinfo/index.htm";
menu_tas[1] = "How it Works,/services/tasinfo/howitworks.htm";
menu_tas[2] = "Deployment,/services/tasinfo/deployment.htm";
menu_tas[3] = "Pricing,/services/tasinfo/pricing.htm";
menu_tas[4] = "Sign-up or Inquiry,/services/tasinfo/tas3order.htm";
menu_tas[5] = "Support,/tas/index.htm";

function writeMain() {

	menuArray = eval(menu_main);
	page = location.pathname.toString();

	document.write('<ul id="nav">');
	
	for(i=0;i<menuArray.length;i++){
		
		tempArray = menuArray[i].split(',');
		if(page == tempArray[1]){
			document.write('<li id="current"><a href="'+tempArray[1]+'">'+tempArray[0].toUpperCase()+'</a></li>');
		} else {
			document.write('<li><a href="'+tempArray[1]+'">'+tempArray[0].toUpperCase()+'</a></li>');
		}
	
	}
	
	document.write('</ul>');

}

function writeSub(sub_name) {

	menuArray = eval("menu_"+sub_name);
	page = location.pathname.toString();

	document.write('<ul id="nav">');
	
	for(i=0;i<menuArray.length;i++){
		
		tempArray = menuArray[i].split(',');
		if(page == tempArray[1]){
			document.write('<li id="subcurrent"><a href="'+tempArray[1]+'">'+tempArray[0]+'</a></li>');
		} else {
			document.write('<li><a href="'+tempArray[1]+'">'+tempArray[0]+'</a></li>');
		}
	
	}
	
	document.write('</ul>');

}

function writeSup(sup_name) {

	menuArray = eval("menu_"+sup_name);
	page = location.pathname.toString();

	document.write('<ul id="supnav">');
	
	for(i=0;i<menuArray.length;i++){
		
		tempArray = menuArray[i].split(',');
		if(page == tempArray[1]){
			document.write('<li id="current"><a href="'+tempArray[1]+'">'+tempArray[0]+'</a></li>');
		} else {
			document.write('<li><a href="'+tempArray[1]+'">'+tempArray[0]+'</a></li>');
		}
	
	}
	
	document.write('</ul>');

}

var textStr = new Array();


textStr[0] = '<p class="style9"><em>"CGNET has provided us with consistently high quality global IT services and support for our research centers for 20 years. They understand how to build reliable networks that reach the most remote and rugged parts of the world."</em></p>';
textStr[0] += '<p class="MsoNormal style9">&nbsp;</p>';
textStr[0] += '<p class="style9 MsoNormal">- Enrica Porcari</p>';
textStr[0] += '<p class="MsoNormal style9">CIO</p>';
textStr[0] += '<p class="MsoNormal">Consultative Group for International Agricultural Research</p>';


textStr[1] = '<p class="style9"><em>"Every time we have worked with CGNET, they have delivered beyond expectations. In particular, the email and other applications we host there consistently work completely up to specification, with no unexpected downtime."</em></p>';

textStr[1] += '<p class="MsoNormal style9">&nbsp;</p>';
textStr[1] += '<p class="style9 MsoNormal">- Pablo Roman</p>';
textStr[1] += '<p class="MsoNormal style9">IT Director</p>';
textStr[1] += '<p class="MsoNormal">AIDS Healthcare Foundation</p>';
textStr[1] += '<p class="MsoNormal style9">&nbsp;</p>';
textStr[1] += '<p class="MsoNormal style9">&nbsp;</p>';

textStr[2] = '<p class="style9"><em>"We like the fact that CGNET has worked in countries where we have people, and it also has been advantageous that CGNET is used to working with nonprofits. Whenever I call with a question, I always get a positive response and a willingness to find a solution."</em></p>';

textStr[2] += '<p class="MsoNormal style9">&nbsp;</p>';
textStr[2] += '<p class="style9 MsoNormal">- Dan Hinckley</p>';
textStr[2] += '<p class="MsoNormal style9">Electronic Communications Coordinator</p>';
textStr[2] += '<p class="MsoNormal">World Conservation Union</p>';

var adRotateSpeed = 10000; // Rotate delay in milliseconds
var msgNum = 0;

function ad_rotate(){
	document.write('<div id="message"></div>');
	msgRotate();
}

function msgRotate(){
	document.getElementById("message").innerHTML = textStr[msgNum++];
	if (msgNum == textStr.length) msgNum = 0;
	setTimeout("msgRotate()", adRotateSpeed);
}

//window.onload = msgRotate;
