

var menu1=new Array()
menu1[1]='<a href="/company/leadership.aspx">Leadership</a>'
menu1[0] = '<a href="/company/history.aspx">History</a>'
menu1[2] = '<a href="/company/involvement.aspx">Involvement</a>'


var menu2=new Array()

menu2[0]='<a href="/services/civil-engineering.aspx">Civil Engineering</a>'
menu2[1] = '<a href="/services/geotechnical-engineering.aspx">Geotechnical Engineering</a>'
menu2[2] = '<a href="/services/structural-engineering.aspx">Structural Engineering</a>'
menu2[3]='<a href="/services/surveying.aspx">Surveying</a>'
menu2[4]='<a href="/services/drilling.aspx">Drilling</a>'
menu2[5]='<a href="/services/enviromental.aspx">Environmental</a>'
menu2[6] = '<a href="/services/construction-inspection-quality-control.aspx">Construction Inspection & Quality Control</a>'
menu2[7]='<a href="/services/material-testing.aspx">Material Testing</a>'
//menu2[5]='<a href="/services/project-management.aspx">Project Management</a>'

var menu3=new Array()
menu3[0]='<a href="/clients/client-list.aspx">Client List</a>'
menu3[1]='<a href="/clients/client-login.aspx">Client Login</a>'


var menu4=new Array()
menu4[0]='<a href="/news/archive.aspx">Archive</a>'
menu4[1]='<a href="/news/current.aspx">Current</a>'

var menu5=new Array()
menu5[0]='<a href="/contact/employment.aspx">Employment</a>'
menu5[1]='<a href="/contact/information.aspx">Information</a>'

var menu6 = new Array()
menu6[0] = '<a href="/projects/project.aspx?id=1">Commercial</a>'
menu6[1] = '<a href="/projects/project.aspx?id=2">Dams</a>'
menu6[2] = '<a href="/projects/project.aspx?id=3">Educational</a>'
menu6[3] = '<a href="/projects/project.aspx?id=5">Governmental</a>'
menu6[4] = '<a href="/projects/project.aspx?id=6">Green Projects</a>'
menu6[5] = '<a href="/projects/project.aspx?id=7">Healthcare</a>'
menu6[6] = '<a href="/projects/project.aspx?id=8">Industrial</a>'
menu6[7] = '<a href="/projects/project.aspx?id=9">Institutional</a>'
menu6[8] = '<a href="/projects/project.aspx?id=10">Residential</a>'
menu6[9] = '<a href="/projects/project.aspx?id=11">Retail</a>'
menu6[10] = '<a href="/projects/project.aspx?id=12">Transportation</a>'
		
var menuwidth='165px' 
var menubgcolor='#849574'  
var disappeardelay=250  
var hidemenu_onclick="yes" 

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
	document.write('<div id="dropmenudiv" class="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype)
{
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null)
	{
		totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
		parentEl=parentEl.offsetParent;
	}
	return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth)
{
	if (ie4||ns6)
		dropmenuobj.style.left=dropmenuobj.style.top="-500px"
	if (menuwidth!="")
	{
		dropmenuobj.widthobj=dropmenuobj.style
		dropmenuobj.widthobj.width=menuwidth
	}
	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
		obj.visibility=visible
	else if (e.type=="click")
		obj.visibility=hidden
}
function iecompattest()
{
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge)
{
	var edgeoffset=0
	if (whichedge=="rightedge")
	{
		var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
		dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
		
		if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
			edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
	}
else
{
	var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
	var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
	dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
	if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
	{ 
		edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
		if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) 
			edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
	}
}
return edgeoffset
}
function populatemenu(what)
{
	if (ie4||ns6)
		dropmenuobj.innerHTML=what.join("")
}
function DropMenu(obj, e, menucontents, menuwidth)
{
	if (window.event) 
		event.cancelBubble=true
	else if (e.stopPropagation) e.stopPropagation()
			clearhidemenu()
			
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
	populatemenu(menucontents)

	if (ie4||ns6)
	{
		showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
	}

	return clickreturnvalue()
}
function UpMenu(obj, e, menucontents, menuwidth)
{
	if (window.event) 
		event.cancelBubble=true
	else if (e.stopPropagation) e.stopPropagation()
			clearhidemenu()
			
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
	populatemenu(menucontents)

	if (ie4||ns6)
	{
		showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")-dropmenuobj.offsetHeight-obj.offsetHeight;
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
	}

	return clickreturnvalue()
}
function clickreturnvalue()
{
	if (ie4||ns6) return false
	else 
		return true
}
function contains_ns6(a, b) 
{
	while (b.parentNode)
		if ((b = b.parentNode) == a)
			return true;
	return false;
}
function dynamichide(e)
{
	if (ie4&&!dropmenuobj.contains(e.toElement))
		HideMenu()
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
		HideMenu()
}
function hidemenu(e)
{
	if (typeof dropmenuobj!="undefined")
	{
		if (ie4||ns6)
			dropmenuobj.style.visibility="hidden"
	}
}
function HideMenu()
{
	if (ie4||ns6)
		delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu()
{
	if (typeof delayhide!="undefined")
		clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
	document.onclick=hidemenu

