<!--
/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use

Modified by Terence Chan
*/

if (section=="home") currentSection = -1
else if (section=="about") currentSection = 0
else if (section=="products") currentSection = 1
else if (section=="customer") currentSection = 2
else if (section=="network") currentSection = 3
else if (section=="news") currentSection = 4


var submenu=new Array();
var total=new Array(), sectionName=new Array;
var menulink=new Array();

//no. of menus per dropdown
//total[0]=5, sectionName[0]="about";
// Changed About submenu items to 4 INC000000077675
total[0]=4, sectionName[0]="about";
total[1]=3, sectionName[1]="products";
total[2]=4, sectionName[2]="customer";
total[3]=1, sectionName[3]="network";
total[4]=3, sectionName[4]="news";

//menu links 0 (About REACH)
// Removed the customer.php link INC000000077675
menulink[0]=new Array();
menulink[0][1]="/about/overview.php";
menulink[0][2]="/about/management.php";
// menulink[0][3]="/about/customer.php";
menulink[0][3]="/about/audit.php";
menulink[0][4]="/about/regulatory.php";

//menu links 1 (Products)
menulink[1]=new Array();
menulink[1][1]="/products/voice_overview.php";
menulink[1][2]="/products/satellite_overview.php";
menulink[1][3]="/products/data_overview.php";

//menu links 2 (Customer Service)
menulink[2]=new Array();
menulink[2][1]="/customer/overview.php";
menulink[2][2]="/customer/customer.php";
menulink[2][3]="/customer/noc.php";
menulink[2][4]="/customer/osc.php";

//menu links 3 (Network)
menulink[3]=new Array();
menulink[3][1]="/network/overview.php";
//menulink[3][2]="javascript:popUpWindow('/imap/imap.html')";
//menulink[3][3]="/network/resilience.php";
//menulink[3][4]="/network/assets.php";

//menu links 4 (News)
menulink[4]=new Array();
menulink[4][1]="/news/news.php";
menulink[4][2]="/news/in_the_news.php";
menulink[4][3]="/news/download.php";


//generator

for (i=0;i<=4;i++) {
	var tmpstr="";
	for (j=1;j<=total[i];j++) {
		if (currentSection==i && subO==j) {
			oflag="o";
		} else {
			oflag="n";
		}
		tmpstr += "<a href=\""+
		menulink[i][j]+"\"onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('nav2-"+
		j+"','','/images/"+sectionName[i]+"/2nav"+j+"_o.gif',1)\"><img src=\"/images/"+sectionName[i]+
		"/2nav"+j+"_"+oflag+".gif\" border=\"0\" name=\"nav2-"+j+"\"></a>"
	}
	submenu[i]=tmpstr;
}

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which,f){
	clear_delayhide()
	thecontent=(which==-1)? "" : submenu[which]
	if (document.getElementById||document.all)
		menuobj.innerHTML=thecontent
	else if (document.layers){
		menuobj.document.write(thecontent)
		menuobj.document.close()
	}
	if (f) resetMenuOver();
}

function resetit(e){
	if (document.all&&!menuobj.contains(e.toElement)) {
		delayhide=setTimeout("showit(currentSection,true)",delay_hide);
	} else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) {
		delayhide=setTimeout("showit(currentSection,true)",delay_hide);
	} else {
		delayhide=setTimeout("showit(currentSection,true)",delay_hide);
	}
}

function clear_delayhide(){
	if (window.delayhide)
	clearTimeout(delayhide)
}

function contains_ns6(a, b) {
	while (b.parentNode)
	if ((b = b.parentNode) == a)
	return true;
	return false;
}

function resetMenuOver() {
	for (i=1;i<=5;i++) {
		if (currentSection!=i-1) {
			x=MM_findObj("main_nav"+i);
			x.src = x.src.replace("_o.jpg","_n.jpg");
		} else {
			x=MM_findObj("main_nav"+i);
			x.src = x.src.replace("_n.jpg","_o.jpg");
		}
	}
}

function resetAllMenu() {
	for (i=1;i<=5;i++) {
		x=MM_findObj("main_nav"+i);
		x.src = x.src.replace("_o.jpg","_n.jpg");
	}
}

//-->
