function openMenuWindow(page) {
	window.open(page, "menuWindowResizable");
}

function MM_displayStatusMsg(msgStr)  {
	status = msgStr;
	document.MM_returnValue = true;
}

function MM_swapImage() {
	var i, j=0, x, a = MM_swapImage.arguments;
	document.MM_sr = new Array;
	for (i = 0; i < (a.length - 2); i += 3) {
	if ((x = MM_findObj(a[i])) != null) {
		document.MM_sr[j++] = x;
		if(!x.oSrc) x.oSrc = x.src;
		x.src = a[i+2];
		}
	}
}

function MM_swapImgRestore() {
	var i, x, a = document.MM_sr;
	for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_preloadImages() { //v3.0
	var d = document;
	if(d.images) {
		if(!d.MM_p) {
			d.MM_p=new Array();
		}
	}

	var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
	for (i = 0; i < a.length; i++) {
		if (a[i].indexOf("#") != 0) {
			d.MM_p[j] = new Image; d.MM_p[j++].src = a[i];
		}
	}
}

function fwLoadMenus() {
	var textFont = "Arial, Helvetica, sans-serif";
	var textSize = 11;
	var textOffCol = "#333333";
	var textOnCol = "#ffffff";
	var bgOffCol = "#ffffff";
	var bgOnCol = "#F99F1C";

	if (window.fw_menu_0) return;

	// Barrington Place Shops
	window.fw_menu_0 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_0.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=Barrington_Place'");
	fw_menu_0.addMenuItem("vacancies","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Barrington_Place'");
	fw_menu_0.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=Barrington_Place'");
	fw_menu_0.addMenuItem("floor plan","location='http://www.halifaxdevelopments.com/floormap.aspx?strBuilding=Barrington_Place'");
	fw_menu_0.addMenuItem("storage","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Barrington_Place&Storage=Y'");
	fw_menu_0.addMenuItem("store directory","location='http://www.halifaxdevelopments.com/directory.aspx?strBuilding=Barrington_Place'");
	fw_menu_0.hideOnMouseOut=true;

	// CIBC Building
	window.fw_menu_1 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_1.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=CIBC_Building'");
	fw_menu_1.addMenuItem("vacancies","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=CIBC_Building'");
	fw_menu_1.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=CIBC_Building'");
	fw_menu_1.addMenuItem("floor plan","location='http://www.halifaxdevelopments.com/floormap.aspx?strBuilding=CIBC_Building'");
	fw_menu_1.addMenuItem("storage","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=CIBC_Building&Storage=Y'");
	fw_menu_1.hideOnMouseOut=true;

	// Cogswell Tower
	window.fw_menu_2 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_2.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=Cogswell_Tower'");
	fw_menu_2.addMenuItem("vacancies","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Cogswell_Tower'");
	fw_menu_2.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=Cogswell_Tower'");
	fw_menu_2.addMenuItem("floor plan","location='http://www.halifaxdevelopments.com/floormap.aspx?strBuilding=Cogswell_Tower'");
	fw_menu_2.addMenuItem("storage","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Cogswell_Tower&Storage=Y'");
	fw_menu_2.hideOnMouseOut=true;

	// Delta Hotel
	window.fw_menu_3 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_3.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=Delta_Halifax'");
	fw_menu_3.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=Delta_Halifax'");
	fw_menu_3.hideOnMouseOut=true;

	// Duke Tower
	window.fw_menu_4 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_4.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=Duke_Tower'");
	fw_menu_4.addMenuItem("vacancies","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Duke_Tower'");
	fw_menu_4.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=Duke_Tower'");
	fw_menu_4.addMenuItem("floor plan","location='http://www.halifaxdevelopments.com/floormap.aspx?strBuilding=Duke_Tower'");
	fw_menu_4.hideOnMouseOut=true;
	
	// Park Lane Terraces
	window.fw_menu_5 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_5.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=Park_Lane_Terraces'");
	fw_menu_5.addMenuItem("vacancies","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Park_Lane_Terraces'");
	fw_menu_5.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=Park_Lane_Terraces'");
	fw_menu_5.addMenuItem("floor plan","location='http://www.halifaxdevelopments.com/floormap.aspx?strBuilding=Park_Lane_Terraces'");
	fw_menu_5.hideOnMouseOut=true;
	
	// Trade Mart Building
	window.fw_menu_6 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_6.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=Brunswick_Place'");
	fw_menu_6.addMenuItem("vacancies","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Brunswick_Place'");
	fw_menu_6.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=Brunswick_Place'");
	fw_menu_6.addMenuItem("floor plan","location='http://www.halifaxdevelopments.com/floormap.aspx?strBuilding=Brunswick_Place'");
	fw_menu_6.hideOnMouseOut=true;
	
	// Scotia Square Mall
	window.fw_menu_7 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_7.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=Scotia_Square_Mall'");
	fw_menu_7.addMenuItem("vacancies","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Scotia_Square_Mall'");
	fw_menu_7.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=Scotia_Square_Mall'");
	fw_menu_7.addMenuItem("floor plan","location='http://www.halifaxdevelopments.com/floormap.aspx?strBuilding=Scotia_Square_Mall'");
	fw_menu_7.addMenuItem("storage","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Scotia_Square_Mall&Storage=Y'");
//	fw_menu_7.addMenuItem("food court","location='http://www.halifaxdevelopments.com/foodcourt.aspx?strBuilding=Scotia_Square_Mall'");
	fw_menu_7.addMenuItem("store directory","location='http://www.halifaxdevelopments.com/directory.aspx?strBuilding=Scotia_Square_Mall'");
	fw_menu_7.hideOnMouseOut=true;
	
	// Barrington Tower Tower
	window.fw_menu_8 = new Menu("root",95,14,textFont,textSize,textOffCol,textOnCol,bgOffCol,bgOnCol);
	fw_menu_8.addMenuItem("building info","location='http://www.halifaxdevelopments.com/building.aspx?strBuilding=Barrington_Tower'");
	fw_menu_8.addMenuItem("vacancies","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Barrington_Tower'");
	fw_menu_8.addMenuItem("location","location='http://www.halifaxdevelopments.com/location.aspx?strBuilding=Barrington_Tower'");
	fw_menu_8.addMenuItem("floor plan","location='http://www.halifaxdevelopments.com/floormap.aspx?strBuilding=Barrington_Tower'");
	fw_menu_8.addMenuItem("storage","location='http://www.halifaxdevelopments.com/vacancy.aspx?strBuilding=Barrington_Tower&Storage=Y'");
	fw_menu_8.hideOnMouseOut=true;	
	fw_menu_8.writeMenus();
	}

function MM_findObj(n, d) {
	var p, i, x;
	if (!d) d=document;
	if((p = n.indexOf("?")) > 0 && parent.frames.length) {
		d = parent.frames[n.substring(p+1)].document;
		n = n.substring(0,p);
	}
	if (!(x = d[n]) && d.all) x=d.all[n];
	for (i = 0; !x && i < d.forms.length; i++) x=d.forms[i][n];
	for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n,d.layers[i].document);
	if (!x && document.getElementById) x = document.getElementById(n); return x;
}
