function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  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() { //v3.0
  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 mmLoadMenus() {
  if (window.mm_menu_1018103020_0) return;
  window.mm_menu_1018103020_0 = new Menu("root",111,16,"Verdana, Arial, Helvetica, sans-serif",10,"#660000","#ffffff","#FFFFFF","#660000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1018103020_0.addMenuItem("Homeseller&nbsp;Tips","location='sellahome/tips.shtml?section=sellahome'");
  mm_menu_1018103020_0.addMenuItem("Communities","location='communities/communities.shtml?section=sellahome'");
  mm_menu_1018103020_0.addMenuItem("Properties&nbsp;Search","location='properties/properties.shtml?section=sellahome'");
   mm_menu_1018103020_0.hideOnMouseOut=true;
   mm_menu_1018103020_0.menuBorder=1;
   mm_menu_1018103020_0.menuLiteBgColor='#ffffff';
   mm_menu_1018103020_0.menuBorderBgColor='#cccccc';
   mm_menu_1018103020_0.bgColor='#ffffff';
  window.mm_menu_1010162406_1 = new Menu("root",131,16,"Verdana, Arial, Helvetica, sans-serif",10,"#660000","#ffffff","#FFFFFF","#660000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1010162406_1.addMenuItem("Properties&nbsp;Search","location='properties/properties.shtml?section=findahome'");
  mm_menu_1010162406_1.addMenuItem("Buying&nbsp;Process","location='findahome/tips.shtml?section=findahome'");
  mm_menu_1010162406_1.addMenuItem("Communities","location='communities/communities.shtml?section=findahome'");
  mm_menu_1010162406_1.addMenuItem("Metroplex-At-a-Glance","location='findahome/metroplex.shtml?section=findahome'");
  mm_menu_1010162406_1.addMenuItem("Planning&nbsp;Your&nbsp;Move","location='findahome/planning_move.shtml'");
  mm_menu_1010162406_1.addMenuItem("Mortgage&nbsp;Calculator","location='cgi-bin/howmuch.pl'");
   mm_menu_1010162406_1.hideOnMouseOut=true;
   mm_menu_1010162406_1.menuBorder=1;
   mm_menu_1010162406_1.menuLiteBgColor='#ffffff';
   mm_menu_1010162406_1.menuBorderBgColor='#cccccc';
   mm_menu_1010162406_1.bgColor='#ffffff';
  window.mm_menu_1010162201_2 = new Menu("root",180,16,"Verdana, Arial, Helvetica, sans-serif",10,"#660000","#ffffff","#FFFFFF","#660000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1010162201_2.addMenuItem("Corporate&nbsp;Suites","location='leasing/suites.shtml?section=leasing'");
  mm_menu_1010162201_2.addMenuItem("Apartment&nbsp;Leasing","location='leasing/apartments.shtml?section=leasing'");
  mm_menu_1010162201_2.addMenuItem("Property&nbsp;Management&nbsp;&amp;&nbsp;Leasing","location='leasing/pmhl.shtml?section=leasing'");
   mm_menu_1010162201_2.hideOnMouseOut=true;
   mm_menu_1010162201_2.menuBorder=1;
   mm_menu_1010162201_2.menuLiteBgColor='#ffffff';
   mm_menu_1010162201_2.menuBorderBgColor='#cccccc';
   mm_menu_1010162201_2.bgColor='#ffffff';
  window.mm_menu_1010161942_3 = new Menu("root",135,16,"Verdana, Arial, Helvetica, sans-serif",10,"#660000","#ffffff","#FFFFFF","#660000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1010161942_3.addMenuItem("Relocation&nbsp;Help","location='relocation/contact.shtml?section=relocation'");
  mm_menu_1010161942_3.addMenuItem("Relocation&nbsp;Team","location='relocation/meet.shtml?section=relocation'");
  mm_menu_1010161942_3.addMenuItem("Metroplex-At-a-Glance","location='findahome/metroplex.shtml?section=relocation'");
  mm_menu_1010161942_3.addMenuItem("Communities","location='communities/communities.shtml?section=relocation'");
  mm_menu_1010161942_3.addMenuItem("Properties&nbsp;Search","location='properties/properties.shtml?section=relocation'");
   mm_menu_1010161942_3.hideOnMouseOut=true;
   mm_menu_1010161942_3.menuBorder=1;
   mm_menu_1010161942_3.menuLiteBgColor='#ffffff';
   mm_menu_1010161942_3.menuBorderBgColor='#cccccc';
   mm_menu_1010161942_3.bgColor='#ffffff';
  window.mm_menu_1010161648_4 = new Menu("root",151,16,"Verdana, Arial, Helvetica, sans-serif",10,"#660000","#ffffff","#FFFFFF","#660000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);  mm_menu_1010161648_4.addMenuItem("Connect&nbsp;Service&nbsp;Center","window.open('http://www.whitefence.com/ebby', '_blank');");
  mm_menu_1010161648_4.addMenuItem("Relo&reg;&nbsp;Nat'l&nbsp;Home&nbsp;Search","window.open('http://www.relohomesearch.com/', '_blank');");
  mm_menu_1010161648_4.addMenuItem("Home&nbsp;Team&nbsp;Mortgage&nbsp;Co","window.open('http://www.yhtm.com/', '_blank');");
  mm_menu_1010161648_4.addMenuItem("Home&nbsp;Team&nbsp;Insurance","location='yhti.shtml?section=services'");
  mm_menu_1010161648_4.addMenuItem("Ebby&nbsp;Select","location='select.shtml?section=services'");
  mm_menu_1010161648_4.addMenuItem("Ebby&nbsp;Lifestyle&nbsp;Transitions","location='/lifestyle.shtml'");
   mm_menu_1010161648_4.hideOnMouseOut=true;
   mm_menu_1010161648_4.menuBorder=1;
   mm_menu_1010161648_4.menuLiteBgColor='#ffffff';
   mm_menu_1010161648_4.menuBorderBgColor='#cccccc';
   mm_menu_1010161648_4.bgColor='#ffffff';
  window.mm_menu_1010161506_5 = new Menu("root",111,16,"Verdana, Arial, Helvetica, sans-serif",10,"#660000","#ffffff","#FFFFFF","#660000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1010161506_5.addMenuItem("Find&nbsp;an&nbsp;Agent","location='agents/find.shtml?section=agentsandoffices'");
  mm_menu_1010161506_5.addMenuItem("Communities","location='communities/communities.shtml?section=agentsandoffices'");
  mm_menu_1010161506_5.addMenuItem("Properties&nbsp;Search","location='properties/properties.shtml?section=agentsandoffices'");
   mm_menu_1010161506_5.hideOnMouseOut=true;
   mm_menu_1010161506_5.menuBorder=1;
   mm_menu_1010161506_5.menuLiteBgColor='#ffffff';
   mm_menu_1010161506_5.menuBorderBgColor='#cccccc';
   mm_menu_1010161506_5.bgColor='#ffffff';
  window.mm_menu_1010161224_6 = new Menu("root",143,16,"Verdana, Arial, Helvetica, sans-serif",10,"#660000","#ffffff","#FFFFFF","#660000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1010161224_6.addMenuItem("History","location='about/history.shtml?section=about'");
  mm_menu_1010161224_6.addMenuItem("About&nbsp;Ebby","location='about/about.shtml?section=about'");
  mm_menu_1010161224_6.addMenuItem("Awards&nbsp;&amp;&nbsp;Achievements","location='about/awards.shtml?section=about'");
  mm_menu_1010161224_6.addMenuItem("Honor&nbsp;Roll","location='about/honor.shtml?section=about'");
  mm_menu_1010161224_6.addMenuItem("Scoreboard","location='about/scoreboard.shtml?section=about'");
  mm_menu_1010161224_6.addMenuItem("Executive&nbsp;Staff","location='about/sigma.shtml'");
   mm_menu_1010161224_6.addMenuItem("Contact&nbsp;Us","location='about/contact.shtml'");
   mm_menu_1010161224_6.hideOnMouseOut=true;
   mm_menu_1010161224_6.menuBorder=1;
   mm_menu_1010161224_6.menuLiteBgColor='#ffffff';
   mm_menu_1010161224_6.menuBorderBgColor='#cccccc';
   mm_menu_1010161224_6.bgColor='#ffffff';
  window.mm_menu_1010160536_7 = new Menu("root",136,16,"Verdana, Arial, Helvetica, sans-serif",10,"#660000","#ffffff","#FFFFFF","#660000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1010160536_7.addMenuItem("Licensing","location='careers/licensing.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("Services","location='careers/services.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("Is&nbsp;Real&nbsp;Estate&nbsp;for&nbsp;you?","location='careers/irefy.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("Why&nbsp;Ebby?","location='careers/topprod.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("FAQ","location='careers/faq.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("Training&nbsp;Courses","location='careers/training.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("Contact&nbsp;Us","location='careers/contact.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("Testimonials","location='careers/testimonials.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("Referral&nbsp;Associates","location='careers/alumni_group.shtml?section=careers'");
  mm_menu_1010160536_7.addMenuItem("Career&nbsp;Events","location='careers/careerEvents.shtml'");
 
   mm_menu_1010160536_7.hideOnMouseOut=true;
   mm_menu_1010160536_7.menuBorder=1;
   mm_menu_1010160536_7.menuLiteBgColor='#ffffff';
   mm_menu_1010160536_7.menuBorderBgColor='#cccccc';
   mm_menu_1010160536_7.bgColor='#ffffff';

  mm_menu_1010160536_7.writeMenus();

  
}


function getvar(needle) { 
	//function looks in the url string for variables where (varname=value) [e.g. getvar('a') when test.html?a=1, would parse "1")
	var thereturn = "";
	var getarray = Array;
	var mystring = "";
	mystring = "" + document.location;	//haystack
	var varstart = 0;
	var varend = 0;
	var valstart = 0;
	var valend = 0;
	var parsename = false;
	var parsevalue = false;
	var avarname = "";
	var avalue = "";
	var arrayplace = 0;
	for (var i = 0;i<mystring.length;i++) {
		if (mystring.charAt(i) == '?') { //we start parsing the name
			varstart = i + 1;
			parsename = true;
		} else if (mystring.charAt(i) == '=') { //stop parsing the varname and start parsing the value				
			varend = i;
			valstart = i + 1;
			parsename = false;
			parsevalue = true;
		} else if (parsevalue == true) { //we are parsing the value of a variable
			//see if we are at the end yet
			if (mystring.charAt(i) == '&') { //end of this variable
				valend = i;
				parsevalue = false;
				//
				avarname = mystring.substring(varstart, varend)
				avalue = mystring.substring(valstart, valend)
				if (avarname == needle) {
					thereturn = avalue;
				}
				//
				parsename = true;
				varstart = i + 1;
				getarray[arrayplace] = avalue;
				arrayplace = arrayplace + 1;
				//alert(getarray[arrayplace]);
			}				
		} 
	}
	if (parsevalue == true) {
		//the string ended before finishing parsing the value
		valend = i + 1;
		parsevalue = false;
		//
		avarname = mystring.substring(varstart, varend)
		avalue = mystring.substring(valstart, valend)
		if (avarname == needle) {
			thereturn = avalue;
		}
		//
		getarray[arrayplace] = avalue;
		arrayplace = arrayplace + 1;
	}		
	return thereturn;
}	

function MM_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
	if (document.layers) { document.write(unescape(newText)); document.close();}
	else innerHTML = unescape(newText);
}
