var productsX = "";
var careX = "";
var aboutX = "";
var newsX = "";
var contactX = "";

	// Mozilla needs an ascii character in a <div> in order for it to render :P
	if(browser=="Mozilla") {var  divfix = ".";} else { var divfix = "";}

	/* Prototypes:
 	* Menu(left, top, width, space, backgroundcolor, backgroundchange, fontsize)
 	* Menu.prototype.adStyle=function(id,bottomBorder,topBorder,leftBorder,rightBorder,padding,newWidth,newHeight)
 	* Menu.prototype.addDiv=function(menuParent,id,body,link,arrow,dontchangeBG)
 	*/

	var d = window.document;

	// use functions to retrieve x-y coord's
	productsX = new Menu(318, 46, 173, 18, "#EBE2C7", "#E5D083", "10px");

	productsX.addItem("p-pic");
	productsX.addItem("p-portfolio");
	productsX.addItem("p-small");
	productsX.addItem("p-large");
	productsX.addItem("p-carrier");
	productsX.addItem("p-agent");
	productsX.addItem("p-connections");
	productsX.addItem("p-end");

	d.writeln('<STYLE TYPE="text/css">');
	productsX.addStyle("p-pic",0,0,0,0,0,78,18);
	productsX.addStyle("p-portfolio",0,1,1,1,3);
	productsX.addStyle("p-small",0,0,1,1,3);
	productsX.addStyle("p-large",0,0,1,1,3);
	productsX.addStyle("p-carrier",0,0,1,1,3);
	productsX.addStyle("p-agent",0,0,1,1,3);
	productsX.addStyle("p-connections",0,0,1,1,3);
	productsX.addStyle("p-end",0,1,0,0,3);
	d.writeln('</STYLE>');

        productsX.addDiv("products","p-pic",'<img src="http://www.xo.com/images/navigation/topnav_products_hover.gif" width="154" height="18" border="0">'+divfix,'http://www.xo.com/products/',0,1);
	productsX.addDiv("products","p-portfolio",'PRODUCT PORTFOLIO','http://www.xo.com/products/',1);
	productsX.addDiv("products","p-small",'SMALL &amp; GROWING BUSINESS','http://www.xo.com/products/smallgrowing/',1);
	productsX.addDiv("products","p-large",'LARGE BUSINESS','http://www.xo.com/products/large/',1);
	productsX.addDiv("products",'p-carrier','CARRIER / WHOLESALE','http://www.xo.com/products/carrier/',1);
	productsX.addDiv("products",'p-agent','AGENT PROGRAM','http://www.xo.com/about/indirectsaleschannel/',1);
	productsX.addDiv("products",'p-connections','XO BUSINESS CONNECTIONS','https://omega.xo.com/connections/index.cfm',1);
        productsX.addDiv("products","p-end",'<img src="http://www.xo.com/images/constant/clear.gif" width="1" height="1" border="0">',0,0,1,1);


	careX = new Menu(472, 46, 196, 18, "#EBE2C7", "#E5D083", "10px");

	careX.addItem("c-pic");
	careX.addItem("c-overview");
	careX.addItem("c-gateway");
	careX.addItem("c-business");
	careX.addItem("c-access");
	careX.addItem("c-customer");
	careX.addItem("c-end");

	d.writeln('<STYLE TYPE="text/css">');
	careX.addStyle("c-pic",0,0,0,0,0,110,18);
	careX.addStyle("c-overview",0,1,1,1,3);
	careX.addStyle("c-gateway",0,0,1,1,3);
	careX.addStyle("c-business",0,0,1,1,3);
	careX.addStyle("c-access",0,0,1,1,3);
	careX.addStyle("c-customer",0,0,1,1,3);
	careX.addStyle("c-end",0,1,0,0,3);
	d.writeln('</STYLE>');

        careX.addDiv("care","c-pic",'<img src="http://www.xo.com/images/navigation/topnav_customercare_hover.gif" width="123" height="18" border="0">','http://www.xo.com/care/',0,1);
	careX.addDiv("care","c-overview",'CARE OVERVIEW','http://www.xo.com/care/',1);
	careX.addDiv("care","c-gateway",'GATEWAY LOGIN','http://admin.xo.com/',1);
	careX.addDiv("care","c-business",'BUSINESS CENTER','http://www.xo.com/businesscenter/welcome.html',1);
	careX.addDiv("care","c-access",'ACCESS NUMBERS','http://support.xo.com/access_numbers.html',1);
	careX.addDiv("care","c-customer",'CUSTOMER REFERRAL PROGRAM','http://apps.xo.com/referral/',1);
        careX.addDiv("care","c-end",'<img src="http://www.xo.com/images/constant/clear.gif" width="1" height="1" border="0">',0,0,1,1);


	aboutX = new Menu(595, 46, 130, 18, "#EBE2C7", "#E5D083", "10px");

	aboutX.addItem("a-pic");
	aboutX.addItem("a-company");
	aboutX.addItem("a-investors");
	aboutX.addItem("a-careers");
	aboutX.addItem("a-agent");
	aboutX.addItem("a-network");
	aboutX.addItem("a-executive");
	aboutX.addItem("a-end");

	d.writeln('<STYLE TYPE="text/css">');
	aboutX.addStyle("a-pic",0,0,0,0,0,81,18);
	aboutX.addStyle("a-company",0,1,1,1,3);
	aboutX.addStyle("a-investors",0,0,1,1,3);
	aboutX.addStyle("a-careers",0,0,1,1,3);
	aboutX.addStyle("a-agent",0,0,1,1,3);
	aboutX.addStyle("a-network",0,0,1,1,3);
	aboutX.addStyle("a-executive",0,0,1,1,3);
	aboutX.addStyle("a-end",0,1,0,0,3);
	d.writeln('</STYLE>');

        aboutX.addDiv("about","a-pic",'<img src="http://www.xo.com/images/navigation/topnav_aboutxo_hover.gif" width="88" height="18" border="0">','http://www.xo.com/about/',0,1);
	aboutX.addDiv("about","a-company",'OUR STORY','http://www.xo.com/about/ourstory',1);
	aboutX.addDiv("about","a-investors",'INVESTOR CENTER','http://www.xo.com/about/investors/',1);
	aboutX.addDiv("about","a-careers",'CAREERS AT XO','http://www.xo.com/careers/',1);
	aboutX.addDiv("about","a-agent",'AGENT PROGRAM','http://www.xo.com/about/indirectsaleschannel/index.html',1);
	aboutX.addDiv("about","a-network",'XO NETWORK','http://www.xo.com/xonetwork.html',1);
	aboutX.addDiv("about","a-executive",'EXECUTIVE TEAM','http://www.xo.com/about/executives/',1);
        aboutX.addDiv("about","a-end",'<img src="http://www.xo.com/images/constant/clear.gif" width="1" height="1" border="0">',0,0,1,1);


	newsX = new Menu(683, 46, 135, 18, "#EBE2C7", "#E5D083", "10px");

	newsX.addItem("n-pic");
	newsX.addItem("n-press");
	newsX.addItem("n-events");
	newsX.addItem("n-end");

	d.writeln('<STYLE TYPE="text/css">');
	newsX.addStyle("n-pic",0,0,0,0,0,52,18);
	newsX.addStyle("n-press",0,1,1,1,3);
	newsX.addStyle("n-events",0,0,1,1,3);
	newsX.addStyle("n-end",0,1,0,0,3);
	d.writeln('</STYLE>');

        newsX.addDiv("news","n-pic",'<img src="http://www.xo.com/images/navigation/topnav_news_hover.gif" width="65" height="18" border="0">','http://www.xo.com/news/',0,1);
	newsX.addDiv("news","n-press",'PRESS RELEASES','http://www.xo.com/news/',1);
	newsX.addDiv("news","n-events",'EVENTS','http://www.xo.com/news/events/',1);
        newsX.addDiv("news","n-end",'<img src="http://www.xo.com/images/constant/clear.gif" width="1" height="1" border="0">',0,0,1,1);

	contactX = new Menu(748, 46, 145, 18, "#EBE2C7", "#E5D083", "10px");

	contactX.addItem("co-pic");
	contactX.addItem("co-sales");
	contactX.addItem("co-care");
	contactX.addItem("co-general");
	contactX.addItem("co-end");

	d.writeln('<STYLE TYPE="text/css">');
	contactX.addStyle("co-pic",0,0,0,0,0,99,18);
	contactX.addStyle("co-sales",0,1,1,1,3);
	contactX.addStyle("co-care",0,0,1,1,3);
	contactX.addStyle("co-general",0,0,1,1,3);
	contactX.addStyle("co-end",0,1,0,0,3);
	d.writeln('</STYLE>');

        contactX.addDiv("contact","co-pic",'<img src="http://www.xo.com/images/navigation/topnav_contactxo_hover.gif" width="99" height="18" border="0">','http://www.xo.com/contact/',0,1);
	contactX.addDiv("contact","co-sales",'SALES','http://www.xo.com/contact/sales/',1);
	contactX.addDiv("contact","co-care",'CUSTOMER CARE','http://www.xo.com/contact/care/',1);
	contactX.addDiv("contact","co-general",'GENERAL INFORMATION','http://www.xo.com/contact/general/',1);
        contactX.addDiv("contact","co-end",'<img src="http://www.xo.com/images/constant/clear.gif" width="1" height="1" border="0">',0,0,1,1);


function dontHide(menu)
{
	hideMenus(menu);
        menu.show();
}


function hideMenus(menu)
{
                if(!(menu == productsX)) { productsX.hide();}
                if(!(menu == careX)) { careX.hide();}
                if(!(menu == aboutX)) { aboutX.hide();}
                if(!(menu == newsX)) { newsX.hide();}
                if(!(menu == contactX)) { contactX.hide();}
}
