<!--

// JavaScript Document
var menuActive = 0
var menuDown = 0
var menuOn = 0
var hotImage = 'development'
var hotPath = ''
//Change the directory of the rollover images in the line below

	var rollOverDir = pageLocation+'rollover_top/'

var onLayer
var timeOn = null 
function showSubMenuAtx(tab) {
xPos=docjslib_getRealLeft(tab);
document.getElementById(tab+"Menu").style.left = xPos;
}
function docjslib_getRealLeft(imgElem) {
	xPos = eval(imgElem).offsetLeft;
	tempEl = eval(imgElem).offsetParent;
  	while (tempEl != null) {
  		xPos += tempEl.offsetLeft;
  		tempEl = tempEl.offsetParent;
  	}
	return xPos;
}

function docjslib_getRealTop(imgElem) {
	yPos = eval(imgElem).offsetTop;
	tempEl = eval(imgElem).offsetParent;
	while (tempEl != null) {
  		yPos += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
	return yPos;
}



function init() {
	return true;
}

//Hide the Layer
function hideLayer(tab) {
	document.getElementById(tab).style.visibility="hidden";
}
  
//Show the Layer
function showLayer(tab) {
	
	//Hide the previous menu layer. If the layer was active timeOn would be null
	if (timeOn != null) {
 clearTimeout(timeOn)
 hideLayer(onLayer)
 }
  document.getElementById(tab).style.visibility="visible";
  //Set the current layer to be the onLayer
  onLayer = tab;
}

// NAV IMAGE ROLLOVER
function navRoll(imgName,thePath) {
	if (thePath == undefined){ thePath="" }
	if (hotImage != downState) { eval("document.images."+hotImage+".src = '"+rollOverDir+hotImage+"1.gif'") }
	//alert(rollOverDir+imgName+"2.gif");
	eval("document.images."+imgName+".src = '"+rollOverDir+imgName+"2.gif'");
	hotImage = imgName;
	hotPath = thePath;
	
	//alert(eval("document.images."+hotImage+".src"));
}

// TIMER FOR BUTTON MOUSE OUT
function btnTimer() {
 timeOn = setTimeout("btnOut()",500)
}

// BUTTON MOUSE OUT
function btnOut() {
	//alert(menuActive);
 if (menuActive == 0) {
 hideLayer(onLayer)
 dimBtn();
 }
}

function dimBtn() {
	if (hotImage != downState) {
		eval("document.images."+hotImage+".src = '"+rollOverDir+hotImage+"1.gif'");
		}
}

function menuOver() {
 clearTimeout(timeOn)
 menuActive = 1
}

// MENU MOUSE OUT 
function menuOut() {
 menuActive = 0 
 timeOn = setTimeout("btnOut()", 200)
 }
 
 // DROP DOWN AUTO REDIRECT
function Navigate() {
	var number = NavSelect.selectedIndex;
	location.href = NavSelect.options[number].value; 
}

// HIGHLIGHT SECTION NAV BUTTON
var thePath = parent.location.pathname;
//alert(eval('thePath'));
thePath = thePath.slice(1);
var pathParts = thePath.split('/');
var downState;
function init() {
	if (pathParts[0] == "development") {
		document.images[pathParts[0]].src = rollOverDir+pathParts[0]+'2.gif';
		downState = pathParts[0];
	}
	else if (pathParts[0] == "construction") {
		document.images[pathParts[0]].src = rollOverDir+pathParts[0]+'2.gif';
		downState = pathParts[0];
	}
	else if (pathParts[0] == "leasingbrokerage") {
		document.images[pathParts[0]].src = rollOverDir+pathParts[0]+'2.gif';
		downState = pathParts[0];
	}
	else if (pathParts[0] == "properties") {
		document.images[pathParts[0]].src = rollOverDir+pathParts[0]+'2.gif';
		downState = pathParts[0];
	}
	else if (pathParts[0] == "newsmedia") {
		document.images[pathParts[0]].src = rollOverDir+pathParts[0]+'2.gif';
		downState = pathParts[0];
	}
	else if (pathParts[0] == "home") {
		document.images[pathParts[0]].src = rollOverDir+pathParts[0]+'2.gif';
		downState = pathParts[0];
	}
}

-->