<!--

// browser detection:
var ua = navigator.userAgent;
var ns = (navigator.appName.toLowerCase().indexOf("netscape")!=-1)?1:0;
var ns4 = (document.layers)?1:0;
var ns6 = (document.getElementById && ns)?1:0;
var mac = (navigator.userAgent.toLowerCase().indexOf("mac")!=-1)?1:0;
var macie4 = (mac && !ns && parseInt(ua.substr(ua.indexOf("MSIE")+4,2)) <= 4)?1:0;
var macie = (mac && !ns)?1:0;

// array for top menu:
var arrTopMnu=new Array(
"images/mnu_ygc_off.gif","images/mnu_ygc_on.gif","ygnacio.asp","Ygnacio Center",83,17,"ygc",
"images/mnu_tea_off.gif","images/mnu_tea_on.gif","team.asp","Team",27,17,"tea",
"images/mnu_tyc_off.gif","images/mnu_tyc_on.gif","three_ygnacio.asp","Three Ygnacio Center",116,17,"tyc",
"images/mnu_oyc_off.gif","images/mnu_oyc_on.gif","one_two_ygnacio.asp","One &amp; Two Ygnacio Center",143,17,"oty",
"images/mnu_spa_off.gif","images/mnu_spa_on.gif","http://www.legacypartners.com/commercial/portfolio/property/legacy_ygnacio_center","Space Availability",96,17,"spa",
"images/mnu_con_off.gif","images/mnu_con_on.gif","contact.asp","Contact",45,17,"con",
"images/mnu_dir_off.gif","images/mnu_dir_on.gif","directions.asp","Directions",56,17,"dir",
"images/mnu_hom_off.gif","images/mnu_hom_on.gif","index.asp","Home",30,17,"hom"
)
var step1=7

// building the top menu:
var arrTop_on = new Array;
var arrTop_off = new Array;

var j=0
var strTop=""
for (var i=0; i<arrTopMnu.length; i+=step1) {
	j=parseInt(i/step1)
	
	arrTop_on[j]=arrTopMnu[i+1]
	arrTop_off[j]=arrTopMnu[i]
	
	if (pageID==arrTopMnu[i+6]) {
		if (subpage!="") strTop+='<A href="'+arrTopMnu[i+2]+'"><IMG src="'+arrTopMnu[i+1]+'" width="'+arrTopMnu[i+4]+'" height="'+arrTopMnu[i+5]+'" border=0 alt="'+arrTopMnu[i+3]+'" title="'+arrTopMnu[i+3]+'" name="imgTop'+j+'" vspace=3></A>'
		else strTop+='<IMG src="'+arrTopMnu[i+1]+'" width="'+arrTopMnu[i+4]+'" height="'+arrTopMnu[i+5]+'" border=0 alt="'+arrTopMnu[i+3]+'" title="'+arrTopMnu[i+3]+'" name="imgTop'+j+'" vspace=3>'
	}else strTop+='<A href="'+arrTopMnu[i+2]+'" onmouseover="Swap('+j+',\'on\',\'imgTop\')" onmouseout="Swap('+j+',\'off\',\'imgTop\')"><IMG src="'+arrTopMnu[i]+'" width="'+arrTopMnu[i+4]+'" height="'+arrTopMnu[i+5]+'" border=0 alt="'+arrTopMnu[i+3]+'" title="'+arrTopMnu[i+3]+'" name="imgTop'+j+'" vspace=3></A>'
	
	if (j!=parseInt((arrTopMnu.length/step1))-1) strTop+='<IMG src="images/mnu_line.gif" width=1 height=27 hspace=4>'
}
//preloading top menu images:
var imgTop_on = new Array;
var imgTop_off = new Array;
Preload("arrTop","imgTop",0);


// START: Rollover functions >>>
function Preload(arrFrom,arrToGen,act) {
	var l = eval(arrFrom + '_on.length');
	for (var i=0; i<l; i++) {
		eval(arrToGen + '_on[i] = new Image()');
		eval(arrToGen + '_on[i].src = ' + arrFrom + '_on[i]');
		
		eval(arrToGen + '_off[i] = new Image()');
		eval(arrToGen + '_off[i].src = ' + arrFrom + '_off[i]');
		
		if (act==1) {
			eval(arrToGen + '_act[i] = new Image()');
			eval(arrToGen + '_act[i].src = ' + arrFrom + '_act[i]');
		}
	}
}

function Swap() {
	var imgName = Swap.arguments[2] + Swap.arguments[0];
	var index = (Swap.arguments.length >= 4) ? parseInt(Swap.arguments[3]) : parseInt(Swap.arguments[0]);
	document.images[imgName].src = eval(Swap.arguments[2] + '_' + Swap.arguments[1] + '[' + index + '].src');
}
function Swap1() {
	var imgName = Swap1.arguments[2] + Swap1.arguments[0];
	var index = (Swap1.arguments.length >= 4) ? parseInt(Swap1.arguments[3]) : parseInt(Swap1.arguments[0]);
	if (ns4) document.divNames.document.images[imgName].src = eval(Swap1.arguments[2] + '_' + Swap1.arguments[1] + '[' + index + '].src');
	else document.images[imgName].src = eval(Swap1.arguments[2] + '_' + Swap1.arguments[1] + '[' + index + '].src');
}
// <<< END: Rollover functions


//START: left DHTML Leasing Info
arrNames=new Array(
"images/mnul_krk_off.gif","images/mnul_krk_on.gif","mailto:kirk.beebe@cbre.com","Kirk Beebe",95,15,
"images/mnul_phl_off.gif","images/mnul_phl_on.gif","mailto:phil.damaschino@cbre.com","Phil Damaschino",95,15
)
var step2=6

var top=134
var left=0


var divInfoPos=top+5
var show=0
var showInfo=0
var arrLeft_on = new Array;
var arrLeft_off = new Array;
var strNames="<IMG src='images/spacer.gif' width=1 height=5><BR>"
for (var i=0; i<arrNames.length; i+=step2){
	j=parseInt(i/step2)
	arrLeft_on[j]=arrNames[i+1]
	arrLeft_off[j]=arrNames[i]
	strNames+='<A href="'+arrNames[i+2]+'" onmouseover="Swap1('+j+',\'on\',\'imgL\');ShowInfo(' + j + ');showInfo=1;" onmouseout="Swap1('+j+',\'off\',\'imgL\');setTimeout(\'HideInfo()\',500)"><IMG src="'+arrNames[i]+'" width="'+arrNames[i+4]+'" height="'+arrNames[i+5]+'" border=0 alt="'+arrNames[i+3]+'" title="'+arrNames[i+3]+'" name="imgL'+j+'"></A><BR>'
	divInfoPos+=15
}
//preloading top menu images:
var imgL_on = new Array;
var imgL_off = new Array;
Preload("arrLeft","imgL",0);

strDivCont='<TABLE width=95 cellspacing=0 cellpadding=0 border=0><TR><TD align=right><BR><IMG src="images/address.gif" ></TD></TR></TABLE>'

//writes the DIVs:
function WriteDiv(){
	var strDiv=""
	if (ns4){
		strDiv+='<LAYER id="divNames" name="divNames" top='+top+' left='+left+' visibility=hide onmouseover="Show();show=1" onmouseout="setTimeout(\'Hide()\',500);show=0;showInfo=0">'
		strDiv+='<TABLE width=95 cellspacing=0 cellpadding=0 border=0>'
			strDiv+='<TR><TD valign=top>' + strNames + '</TD></TR>'
		strDiv+='</TABLE>'
		strDiv+='</LAYER>'
		
		strDiv+='<LAYER id="divInfo" name="divInfo" top='+divInfoPos+' left='+left+' onmouseover="showInfo=1" onmouseout="setTimeout(\'HideInfo()\',500);showInfo=0" visibility=hide>' + strDivCont + '</LAYER>'
	}else{
		strDiv+='<DIV id="divNames" onmouseover="Show();show=1" onmouseout="setTimeout(\'Hide()\',500);show=0;showInfo=0" style="position:absolute; top:'+top+'px; left:'+left+'px; visibility:hidden">'
		strDiv+='<TABLE width=95 cellspacing=0 cellpadding=0 border=0>'
			strDiv+='<TR><TD valign=top>' + strNames + '</TD></TR>'
		strDiv+='</TABLE>'
		strDiv+='</DIV>'
		
		strDiv+='<DIV id="divInfo" onmouseover="showInfo=1" onmouseout="setTimeout(\'HideInfo()\',500);showInfo=0" style="position:absolute; top:' + divInfoPos + 'px; left:'+left+'px; visibility:hidden">' + strDivCont + '</DIV>'
	}
	document.write(strDiv)
}
//show the names div:
function Show(){
	if (ns4){document.layers["divNames"].visibility="show"}
	else if (ns6){document.getElementById("divNames").style.visibility="visible"}
	else{document.all["divNames"].style.visibility="visible"}
}
//hide the names div:
function Hide(){
	if (show==0 && showInfo==0){
		if (ns4){document.divNames.visibility="hide"}
		else if (ns6){document.getElementById("divNames").style.visibility="hidden"}
		else{document.all["divNames"].style.visibility="hidden"}
		HideInfo()
	}
}
//show the info div:
function ShowInfo(index){
	if (ns4){document.divInfo.visibility="show"}
	else if (ns6){document.getElementById("divInfo").style.visibility="visible"}
	else{document.all["divInfo"].style.visibility="visible"}
}
//hide the info div:
function HideInfo(){
	if (showInfo==0){
		if (ns4){document.divInfo.visibility="hide"}
		else if (ns6){document.getElementById("divInfo").style.visibility="hidden"}
		else{document.all["divInfo"].style.visibility="hidden"}
		HideAll()
	}
}
//hide all divs:
function HideAll(){
	if (ns4){
		document.divNames.visibility="hide"
		document.divInfo.visibility="hide"
	}else if (ns6){
		document.getElementById("divNames").style.visibility="hidden"
		document.getElementById("divInfo").style.visibility="hidden"
	}else{
		document.all["divNames"].style.visibility="hidden"
		document.all["divInfo"].style.visibility="hidden"
	}
	show=0
	showInfo=0
}
//END: left DHTML Leasing Info

var newWin;
function WinOpen(url,title,w,h){
	if (new String(newWin)!="undefined" && newWin!=null) if (!newWin.closed) newWin.close();
	newWin=window.open(url,title,"width="+w+",height="+h+",top=0,left=0,location=no,directories=no,hotkeys=no,copyhistory=no,resizable=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,z-lock=yes");
	newWin.focus()
}

//getting the content height:
var contH="100%"
var headerH=46
var footerH=20
function GetContentH(){
	if (ns) contH=window.innerHeight-headerH-footerH
	else if (ua.toLowerCase().indexOf("windows")<0) contH=document.body.clientHeight-headerH-footerH
}

// START: fixing the page content on resize >>>
FixNSWindow();
function FixNSWindow() {
	if (ns6 || ns && (parseInt(navigator.appVersion) == 4)) {
		if (typeof document.NS == 'undefined') document.NS = new Object;
		if (typeof document.NS.NS_scaleFont == 'undefined') {
			document.NS.FixCssInNS = new Object;
			document.NS.FixCssInNS.initWindowWidth = window.innerWidth;
			document.NS.FixCssInNS.initWindowHeight = window.innerHeight;
		}
		window.onresize = FixCssInNS;
	}
}
function FixCssInNS() {
	if (document.NS.FixCssInNS.initWindowWidth != window.innerWidth || document.NS.FixCssInNS.initWindowHeight != window.innerHeight) document.location = document.location;
}
ReloadWindow();
function ReloadWindow(){if (!ns && (ua.toLowerCase()).indexOf("windows")<0) setTimeout("window.onresize=new Function('window.location.reload()')",200);}
// <<< END: fixing the page content on resize

//-->