<!--
dirDepth = "";
graphicsDir = "graphics/";

window.onError = 0;
var imageNames;
var imageOn;
var imageOver;
d=document.images;
NS4 = (document.layers) ? true : false;
IE4 = (document.all && !document.getElementById) ? true : false;
IE5 = (document.all && document.getElementById) ? true : false;
NS6 = (!document.all && document.getElementById) ? true : false;

isDom = (NS6 || IE5) ? true : false;

NS3 = (!NS4 && !IE4 && document.images) ? true : false;
IE3 = (!NS4 && !IE4 && !NS3 && (navigator.userAgent.indexOf("MSIE") != -1)) ? true : false;
NS2 = (!NS4 && !IE4 && !NS3 && !IE3 && !document.images) ? true : false;
isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false;

doc = (NS4) ? "document" : "document.all";
sty = (NS4) ? "" : ".style";

if(NS4 || isDom || (IE4 && !isMac)){
	defaultStyle = "<STYLE TYPE='text/css'>"
	+ ".obj {"
	+ "position:absolute;"
	+ "visibility:hidden;"
	+ "width:10;"
	+ "height:10;"
	+ "}"
	+ "</STYLE>";

	document.write(defaultStyle);
}

if (d) {
	imageNames = new initArray("mn_residential", "mn_outreach", "mn_other_clinical", "rb_our_staff", "rb_contact", "rb_home", "map_bc", "map_ab", "map_on");

	imageOver = new initArray("b_residential_02.gif", "b_outreach_02.gif","b_other_clinical_02.gif", "b_our_staff_02.gif", "b_contact_us_02.gif", "b_home_02.gif", "map_bc_02.gif", "map_ab_02.gif", "map_on_02.gif");
}

if(NS4 || IE4) document.write("<SCRIPT LANGUAGE='JavaScript' SRC='"+dirDepth+"menuinfo.js'><\/SCRIPT>");
if(NS4 || IE4 || isDom) document.write("<SCRIPT LANGUAGE='JavaScript' SRC='"+dirDepth+"menuinfo.js'><\/SCRIPT>");
if(NS4){
	document.write("<SCRIPT LANGUAGE='JavaScript' SRC='"+dirDepth+"ns_menus.js'><\/SCRIPT>");
}
else if(IE4){
	document.write("<SCRIPT LANGUAGE='JavaScript' SRC='"+dirDepth+"ie_menus.js'><\/SCRIPT>");
}
else if(isDom){
	document.write("<SCRIPT LANGUAGE='JavaScript' SRC='"+dirDepth+"dom_menus.js'><\/SCRIPT>");
}

function preloadImages(){
	if(d){
		var i, t; for(i=0; i<imageNames.length; i++){
			d[imageNames[i]].offsrc = d[imageNames[i]].src;
		}

		for(i=0; i<imageNames.length; i++){
			t = new Image();
			t.src = graphicsDir + "toolbar/"+imageOver[i];
			d[imageNames[i]].oversrc = t.src;
		}
	}

	if(NS4 || IE4 || isDom) preloadMenuImages();
}

function initArray(){
      if (d){this.length = initArray.arguments.length;
      for (var i=0;i<= this.length; i++) this[i] = initArray.arguments[i];}
}

function mouseOver(imageID) {
	if (d){
		if(d[imageNames[imageID]].oversrc) d[imageNames[imageID]].src = d[imageNames[imageID]].oversrc;
		if(imageID <= menuNums) eval("show("+imageID+")");
	}
}
function mouseOut(imageID) {
	if (d){
		if(d[imageNames[imageID]].offsrc) d[imageNames[imageID]].src = d[imageNames[imageID]].offsrc;
		if(imageID <= menuNums) eval("hide("+imageID+")");
	}
}
// -->