_scrollAmount=5;     // Used for Netscape 4 scrolling
_scrollDelay=10;	     // Used for Netscape 4 scrolling

_menuCloseDelay=500;  // The delay for menus to remain visible on mouse off
_menuOpenDelay=150;   // The delay for opening menus on mouse over
_subOffsetTop=0;     // Sub menu offset Top position
_subOffsetLeft=0;  // Sub menu offset Left position

k = document.location;
l = String(k);
i = l.substring(l.indexOf("MS=")+3,l.indexOf("MS=")+5);
s = l.substring(l.indexOf("MS=")+5,l.indexOf("MS=")+7);
//alert ("i="+i);
//alert ("s="+s);

AllMargin=0;

treeOffset=10;  // Used to set the offset of sub menus
singleMasterMenu=false; // Informs the system to only have one menu open at a time

//the menus are set to open and stay open to test all 
//levels in creation and position of images and text 
//to set so only one opens put singleMasterMenu to true

with(tstyle1=new mm_style()){
onclass='mainindent';
offclass='mainindent';
offcolor = '#000000';
//onbgcolor = "#D70B0B";
oncolor = '#cd9112';
pagecolor='#cd9112';
//offbgcolor="#006699"
ondecoration='none';
decoration='none';
fontsize = "11px";
fontfamily = "verdana,arial,helvetica,sans-serif";  
padding=5;

type="tree";  
 
}
with(sub1Style=new mm_style()){
onclass='sub1indent';
offclass='sub1indent';
offcolor = '#000000';
oncolor = '#cd9112';
ondecoration='none';
decoration='none';
fontsize = "10px";
fontfamily = "verdana,arial,helvetica,sans-serif";  
subimageposition="left" ;
separatorcolor="#ffffff";
separatorsize=1;
padding=2;

type="tree"; 
}


tstyle1.clickcolor="#bb7d00";

if (s == "ES") { c = "#cd9112";}else{ c = "#000000";}
if (s == "TA") { d = "#cd9112";}else{ d = "#000000";}

with(new menuname("main Tree Menu")){
position = "relative";
style = tstyle1;
alwaysvisible = 1;
itemwidth=113;
menuwidth=120;
aI("text=entility<sup>&reg;</sup> Solutions;url=/products/ES-Sol.html?MS=PRES;type=tree;");
if (s =='ES') {
	aI("text=entility<sup>&reg;</sup> Navigator;offclass=sub1indent;onclass=sub1indent;url=/products/ES-Nav.html?MS=PRES;");
	aI("text=entility<sup>&reg;</sup> Playbook;offclass=sub1indent;onclass=sub1indent;url=/products/ES-Pla.html?MS=PRES;");
	aI("text=entility<sup>&reg;</sup> Notifyer;offclass=sub1indent;onclass=sub1indent;url=/products/ES-Not.html?MS=PRES;");
	aI("text=entility<sup>&reg;</sup> Process Designer;offclass=sub1indent;onclass=sub1indent;url=/products/ES-PD.html?MS=PRES;");
		
}
	aI("text=Technology Alliances;url=/products/TA.html?MS=PRTA;");
	
}


drawMenus()


