function checkOS() {
  if(navigator.userAgent.indexOf('IRIX') != -1)
    { var OpSysH = 50; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSysH = 60; }
  else if(navigator.userAgent.indexOf('Win') != -1)
    { var OpSysH = 245;
	  }
  else if(navigator.platform.indexOf('MacPPC') != -1)
    { 
	var OpSysH = 245; }
  else { var OpSysH = 245; }
  return OpSysH;
}

var OpSysH = checkOS();


if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = (window.innerWidth - 788)  /2;
  winH = window.innerHeight;
   //alert ("PC1"); 
   if (winW < 20) {
	  winW = 20;
	   
  }
 
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = (document.body.offsetWidth - 788)  /2;
  winH = document.body.offsetHeight;
   //alert ("PC2");
  if (winW < 20) {
	  winW = 20;
	  
  }
    if(navigator.platform.indexOf('MacPPC') != -1){
//winW = (document.body.offsetWidth - 788)  /2;
winW = 0;

 //alert ("Mac"); 
 } 
   
 


}
   
}


_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=0             // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x



with(menuStyle=new mm_style()){
 
onbgcolor="#9B3F0E"; 					//Mouse over Color
oncolor="#ffffff";						//Mouse over text Color
offbgcolor="#000000";					//Mouse off Color
offcolor="#ffffff";						//Mouse off text Color
bordercolor="white";
borderstyle="solid";						//None,Solid
borderwidth=1;
separatorcolor="none";
separatorsize="1";
padding=4;
fontsize="65%";
fontstyle="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="89B8D4";						//On this page text color
pagebgcolor="#000000"; 
headercolor="#000000";
headerbgcolor="9EC34F";
subimage="";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=100);";
outfilter="fade(duration=0.3)";
 
}
 


with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=50;
left=10;
alwaysvisible=1;
position="relative";
orientation="horizontal";
itemwidth =70;
aI("text=;image=images/homeReg.gif;overimage=images/homeOver.gif;url=index.cfm;")
aI("text=;showmenu=about;image=images/aboutReg.gif;overimage=images/aboutOver.gif;url=about.cfm;")
aI("text=;image=images/calendarReg.gif;overimage=images/calendarOver.gif;url=calendar.cfm;")
//aI("text=;image=images/galleryReg.gif;overimage=images/galleryOver.gif;url=gallery.cfm;")
aI("text=;showmenu=soho;image=images/sohoReg.gif;overimage=images/sohoOver.gif;url=soho.cfm;")
aI("text=;showmenu=memberdir;image=images/directoryReg.gif;overimage=images/directoryOver.gif;url=directory.cfm;")
aI("text=;showmenu=releases;image=images/pressreleaseReg.gif;overimage=images/pressreleaseOver.gif;url=press.cfm;")
aI("text=;showmenu=contact;image=images/contactReg.gif;overimage=images/contactOver.gif;url=contact.cfm;")

aI("text=;showmenu=membership;image=images/membershipReg.gif;overimage=images/membershipOver.gif;url=apply.cfm;")
aI("text=;image=images/linksReg.gif;overimage=images/linksOver.gif;url=links.cfm;")
}



with(milonic=new menuname("about")){
style=menuStyle;
overflow="scroll";
itemwidth =119;
top = OpSysH;
aI("text=Mission Statement;url=mission.cfm;")

aI("text=Board & Committees;url=board.cfm;")
aI("text=Useful Links;url=links.cfm;")
}

with(milonic=new menuname("archive")){
style=menuStyle;
overflow="scroll";
itemwidth =119;
top = OpSysH;
aI("text=News Letter Sign Up;url=newssignup.cfm;")
}

with(milonic=new menuname("soho")){
style=menuStyle;
overflow="scroll";
itemwidth =119;
top = OpSysH;
aI("text=History;url=history.cfm;")
aI("text=Next Meeting;url=ntmeeting.cfm;")
//aI("text=Past Meeting;url=ptmeeting.cfm;")
}

with(milonic=new menuname("memberdir")){
style=menuStyle;
overflow="scroll";
itemwidth =119;
top = OpSysH;
aI("text=Search by Alpha/Numeric;url=directory.cfm;")
aI("text=Browse by Category;url=directory_cat.cfm;")
aI("text=View All;url=directory.cfm?searchKey=;")
}

with(milonic=new menuname("releases")){
style=menuStyle;
overflow="scroll";
itemwidth =119;
top = OpSysH;
aI("text=View Archived Newsletters;url=newsletters.cfm;")
 
}

with(milonic=new menuname("contact")){
style=menuStyle;
overflow="scroll";
itemwidth =119;
top = OpSysH;
aI("text=General;url=contact.cfm;")
aI("text=Board;url=Contactboard.cfm;")
aI("text=Webmaster;url=webmaster.cfm;")
}



with(milonic=new menuname("membership")){
style=menuStyle;
overflow="scroll";
itemwidth =119;
top = OpSysH;
aI("text=Online Sign Up;url=apply.cfm;")
aI("text=Membership Benefits;url=benefits.cfm;")
aI("text=Download PDF;url=pdf/MABA_application2005.pdf;")
}

with(milonic=new menuname("advertise")){
style=menuStyle;
overflow="scroll";
itemwidth =119;
top = OpSysH;
aI("text=Online Sign Up;url=adsignup.cfm;")
aI("text=Download PDF;url=advertisepdf.cfm;")
aI("text=Price Charts;url=price.cfm;")
aI("text=Contact Sales;url=contactsales.cfm;")
}


 

drawMenus();

// document.write(OpSysH); 
// document.write("   ");
// document.write(winW);