// JavaScript Document	
    m_width=new Array();
	m_width[0]=80;
	m_width[1]=60;
	m_width[2]=65;
	m_width[3]=85;
	m_width[4]=60;
	m_width[5]=70;	
	m_width[6]=60;	
	
	m_pulldown_width=new Array();
	m_pulldown_width[0]=140;
	m_pulldown_width[3]=200;
	m_pulldown_width[5]=228;
	m_height=20;
	m_height_pulldown=16;
	m_gap=4;
	
	header_image="";
	line_image="";
	line_indentation=0;

	m_header_style="cursor:pointer; background: transparent; font-size:11px; font-family:verdana,arial,helvetica,sanserif; color: #ffffff; font-weight:bold; border:solid black 0px";
	m_pulldown_style="cursor:pointer; background: transparent; font-size:11px; font-family:verdana,arial,helvetica,sanserif; color: #ffffff;font-weight:bold; border:solid #F5F5F5 0px; table-layout: fixed";
	m_pulldown_cellcolor="fe9900";
	m_mouseover_color="de8901";
	m_mouseout_color="fe9900"; <!-- should usually be the same as pulldown background color -->

	mi=new Array();
	ml=new Array();
	mi[1]=new Array("HOME &nbsp;|");
	ml[1]=new Array("index.php?page=Home");
	mi[2]=new Array("ABOUT &nbsp;|","Mission & Vision","Partners & Affiliates","Staff","Consultants","Board of Directors");
	ml[2]=new Array("index.php?page=About","index.php?page=Mission and Vision","index.php?page=Partners and Affiliates","index.php?page=Staff","index.php?page=Consultants","index.php?page=Board of Directors");
	mi[3]=new Array("SERVICES &nbsp;|","Lean Systems", "Quality Systems","Business Services", "Organizational Development", "Information Technology", "Resources");
	ml[3]=new Array("index.php?page=Services","index.php?page=Lean Systems","index.php?page=Quality Systems","index.php?page=Business Services","index.php?page=Organizational Development", "index.php?page=Information Technology", "index.php?page=Resources");
	//old_pages = new Array("index.php?page=Lean Manufacturing","index.php?page=Business Development");
	mi[4]=new Array("NEWS &nbsp;|","In the News","News Releases","Newsletters");
	ml[4]=new Array("index.php?page=News","index.php?page=In the News","index.php?page=News Releases","index.php?page=Newsletters");
	mi[5]=new Array("EVENTS &nbsp;|","Public Lean Workshops","Presentations & mini-workshops","Sponsored events");
	ml[5]=new Array("index.php?page=Events","index.php?page=Public Lean Workshops", "index.php?page=Presentations and mini-workshops", "index.php?page=Sponsored events");
	mi[6]=new Array("CONTACT");
	ml[6]=new Array("index.php?page=Contact");
<!-------------------------------------------------------------------------------------------------------------------------->
overcat=new Array();
cat=new Array();
totalcols=mi.length-1;

col_width=new Array();
pdcol_width=new Array();
col_loc=new Array();
lc=1;col_max=0;
while(lc<=totalcols)
	{
	  if(typeof m_width[lc]!="undefined")
	  	col_width[lc]=m_width[lc];
	  else col_width[lc]=m_width[0];
	  col_loc[lc]=col_max;
	  col_max=col_max+col_width[lc]+4;

	  if(typeof m_pulldown_width=="undefined")
		pdcol_width[lc]=col_width[lc];
	  else if(typeof m_pulldown_width[lc]!="undefined")
		pdcol_width[lc]=m_pulldown_width[lc];
	  else if(typeof m_pulldown_width[0]!="undefined")
	      pdcol_width[lc]=m_pulldown_width[0];
	  else pdcol_width[lc]=col_width[lc];

	  lc=lc+1;
	}

function mvex(pdid) <!---- execute when mouse over ---->
{
   document.getElementById(pdid).style.visibility="visible";
   x=1;
   while(x<=totalcols)
	{
	  if(pdid!=x)
	  	  document.getElementById(x).style.visibility="hidden";
	  x=x+1;
	}
}

function moex(pdid) <!---- execute when mouse out after a second---->
{
   if(!overcat[pdid])
     document.getElementById(pdid).style.visibility="hidden";
}

function winopen(glink)
{
   if(glink!="")
     {
	 if(glink.indexOf(" ")==-1)
	 	window.location=glink;
	 else
		{
		  w_command=glink.split(" ");

	  	  if(w_command[0]="new")
		    window.open(w_command[1],"","scrolling=yes, resizable=yes");
		}
     }
}

function showmenu()
{
document.write("<div style='position: relative; width:" + col_max + "px; z-index: 20; visibility: visible;'>");

document.write("<table cellspacing=0 cellpadding=0>");
  document.write("<tr>"); <!---- menu headers ---->
    y=1;
    while(y<=totalcols)
	{
        document.write("<td valign='center' onclick='winopen(\"" + ml[y][0] + "\")' height='" + m_height + "' style='" + m_header_style + "' align='left' width=" + col_width[y] + " onMouseOver='mvex(" + y + "); overcat[" + y + "]=1;' onMouseOut='overcat[" + y + "]=0; setTimeout(\"moex(" + y + ")\",500);'>" + header_image + mi[y][0] + "</td>");
	  y=y+1;
	}
  document.write("</tr>");
document.write("</table>");

y=1; <!----- pulldown items ------>
while(y<=totalcols)
  {
  document.write("<div id='" + y + "' style='position: absolute; top: " + (m_height+m_gap) + "px; left: " + (col_loc[y] + line_indentation) + "px; z-index: 100; visibility: hidden;'>");
  
  document.write("<table id='topNav' style='" + m_pulldown_style + "' cellspacing=0 width=" + (pdcol_width[y]+4) + ">");
  z=1;
  while(typeof mi[y][z]!="undefined")
	{
  	  document.write("<tr><td bgcolor='" + m_pulldown_cellcolor + "' align='left' valign='center' onMouseOver='overcat[" + y + "]=1; this.bgColor=\"" + m_mouseover_color + "\"' onMouseOut='overcat[" + y + "]=0; setTimeout(\"moex(" + y + ")\",500); this.bgColor=\"" + m_mouseout_color + "\"' height=" + m_height_pulldown + " width=95% onclick='window.location=\"" + ml[y][z] + "\"'><a href='" + ml[y][z] + "'>" + line_image + mi[y][z] + "</a></td>");
	  if(z==1) document.write("<td style='background: url(\"graphics/rollshade_side.gif\") no-repeat' rowspan=" + (mi[y].length-1) + ">&nbsp;</td>");
	  document.write("</tr>");
	  z=z+1;
	}
  if(z>1)
  	{
	  document.write("<tr><td style='height:6px; background: url(\"graphics/rollshade_bottom.gif\") no-repeat'>&nbsp;</td>");
	  document.write("<td height=6 style='height:6px; background: url(\"graphics/rollshade_corner.gif\") no-repeat'>&nbsp;</td></tr>");
	}
  document.write("</table>");
  
  document.write("</div>");
  y=y+1;
  }

document.write("</div>");
}
