var NumMenuItem = 4;								//Number of top menu items
var SubMenus = new Array(NumMenuItem);				//Array holds names of submenus. Array are 0 based
var SubMenuActive = false;
var ActivePage = null;
var sDomain = document.domain;
var sURLPath = document.URL;
var sImagePath = null;
var sPath = null;

//Path variable
//Development
sPath = '/MCI/GlobalNavImages/';

//Get the path for the image folder
function SetImagePath() {
	var sTemp = new String(sURLPath);
	var rExp =  new RegExp(sDomain, 'gi');
	//alert(rExp);
	iEnd = sTemp.search(rExp);  //Finds the index of the first occurrence
	iEnd = iEnd + sDomain.length + 1;  //Sets the position to end of the domain
	iEnd = sTemp.indexOf('/',iEnd) ;  
	sTemp = sTemp.slice(0,iEnd + 1);
	sImagePath = sTemp;
}

//SetImagePath();

SubMenus = Array('','sbProducts','sbCustomerService','sbManage', 'sbAbout');

//Backgroun Image
BackgroundImage = 'Url(\'' + sPath + 'MCI_gl_nv_bg_tile.gif\')';
//Logo Image
GlobalImage = new Image();
GlobalImage.src = sPath + 'MCI_gl_nv_ci_logo.gif';
//MCI home image
GlobalHomeImage = new Image();
GlobalHomeImage.src = sPath + 'MCI_gl_nv_home.gif';


//Top Nav button active, over and up state
Active4 = new Image();
Active4.src =sPath + 'MCI_gl_nv_about_on.gif';

up4 = new Image();
up4.src =sPath + 'MCI_gl_nv_about_up.gif';

over4 = new Image();
over4.src =sPath + 'MCI_gl_nv_about_over.gif';

//Images for Submenus
//about MCI Submenu code
//Verizon
on4Sub1 = new Image();
on4Sub1.src = sPath + 'nav_ab_ver_over.gif';
off4Sub1 = new Image();
off4Sub1.src = sPath + 'nav_ab_ver_up.gif';
url4Sub1 = 'http://www22.verizon.com/about/';

//Enterprise
on4Sub2 = new Image();
on4Sub2.src = sPath + 'nav_ab_verbus_over.gif';
off4Sub2 = new Image();
off4Sub2.src = sPath + 'nav_ab_verbus_up.gif';
url4Sub2 = 'http://www.verizonbusiness.com/us/about/';

