_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


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

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);

if (s == "SE") { c = "#FFFA00";}else{ c = "#ffffff";}
if (s == "PR") { d = "#FFFA00";}else{ d = "#ffffff";}
if (s == "TR") { e = "#FFFA00";}else{ e = "#ffffff";}
if (s == "AB") { f = "#FFFA00";}else{ f = "#ffffff";}
//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';
//offbgcolor="#006699"
ondecoration='none';
decoration='none';
fontsize = "11px";
fontfamily = "verdana,arial,helvetica,sans-serif";  
subimageposition="left" ;
//pagebgcolor="#D6DEE7";
pagecolor="#cd9112";
padding=5;

type="tree";  
 
}

//first sub level uses copyOf to create the style
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";  
subimage="/menu/m-images/plus_main.gif";
subimageposition="left" ;
separatorcolor="#ffffff";
separatorsize=1;
padding=2;

type="tree"; 
}


tstyle1.clickcolor="#bb7d00";


with(new menuname("main Tree Menu")){
position = "relative";
style = tstyle1;
alwaysvisible = 1;
bgimage="../menu/m-images/blue.gif";
itemwidth=160;
menuwidth=160;
//margin=AllMargin
//position="relative"
aI("text=IT Service Management (ITSM) Consulting;url=/Services/ITSM.html?MS=SESM;");
aI("text=Infrastructure Engineering;url=/Services/IE.html?MS=SEIE;");
aI("text=Software as a Service;url=/Services/MS.html?MS=SEMS;");
aI("text=Solutions Support;url=/Services/SS.html?MS=SESS;type=tree;");

if (s =='SS') {
	aI("text=Company Holidays;offclass=sub1indent;onclass=sub1indent;url=../au-supportholidays.asp?MS=SOSS;");
	
}
aI("text=Healthcare;url=/Healthcare/");

}

	
	

drawMenus()
