///*** HITBOX: DO NOT EDIT***///
<!--WEBSIDESTORY CODE HBX1.0 (Universal)-->
<!--COPYRIGHT 1997-2004 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No. 6,393,479B1. MORE INFO:http://websidestory.com/privacy-->

var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="ehg-classified.hitbox.com";
var cv=_hbEvent("cv");

//CONFIGURATION VARIABLES
hbx.acct="DM541103KAFW";//HS ASP AD HOC ACCOUNT
hbx.gn="www-t.homescape.com"; //1st PARTY COOKIE SUPPORT
hbx.pn="channel_miedge";//PAGE NAME(S)
hbx.mlc="miedge";//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="title";//DEFAULT PAGE NAME
hbx.ctdef="full";//DEFAULT CONTENT CATEGORY

//OPTIONAL PAGE VARIABLES
//ACTION SETTINGS
hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
hbx.lt="auto";//LINK TRACKING
hbx.dlf="n";//DOWNLOAD FILTER
hbx.dft="n";//DOWNLOAD FILE NAMING
hbx.elf="n";//EXIT LINK FILTER

//SEGMENTS AND FUNNELS
hbx.seg="2,3,4";//VISITOR SEGMENTATION
hbx.fnl="";//FUNNELS

//CUSTOM VARIABLES
hbx.hrf="";//CUSTOM REFERRER
hbx.pec="";//ERROR CODES

//INSERT CUSTOM EVENTS
cv.c1="miedge";
cv.c2="miedge";
/// END HITBOX ///

///*** SEARCH: DO NOT EDIT***///

function darkenAH()
	{document.getElementById('ah').className='constOn';
	document.getElementById('nc').className='const';
	document.getElementById('rs').className='const';}
function darkenNC()
	{document.getElementById('ah').className='const';
	document.getElementById('nc').className='constOn';
	document.getElementById('rs').className='const';}
function darkenRS()
	{document.getElementById('ah').className='const';
	document.getElementById('nc').className='const';
	document.getElementById('rs').className='constOn';}
	
function cr(radioID) 
	{document.getElementById(radioID).checked = true;}

function clearOH() {
	var ohform = document.getElementById('open_house');
	if (ohform.geo_area_text.value == "City, Neighborhood, or Zip") {ohform.geo_area_text.value = ''};
}

function sub(formname)
{document.getElementById(formname).submit();}


///*** PARAMS: DO NOT EDIT***///

function dolinkAdvSrch()
	{var lnk = document.getElementById('advSrchLink');
	lnk.setAttribute("href","http://miedge.2.homescape.com/SCS/index_advanced.jsp?map_search=true");}
function dolinkMapSrch()
	{var lnk = document.getElementById('mapSrchLink');
	lnk.setAttribute("href","http://miedge.homescape.com/miedge/map_search.jhtml?v7=true&map_search=true");}


function makeHidden() {
	var hiddenQS = document.createElement("input");
	hiddenQS.setAttribute("type","hidden");
	hiddenQS.setAttribute("id","map_search");
	hiddenQS.setAttribute("name","map_search");
	hiddenQS.setAttribute("value","true");
	document.getElementById('quick_search').appendChild(hiddenQS);
	var hiddenOH = document.createElement("input");
	hiddenOH.setAttribute("type","hidden");
	hiddenOH.setAttribute("id","map_search");
	hiddenOH.setAttribute("name","map_search");
	hiddenOH.setAttribute("value","true");
	document.getElementById('open_house').appendChild(hiddenOH);
	var hiddenBS = document.createElement("input");
	hiddenBS.setAttribute("type","hidden");
	hiddenBS.setAttribute("id","map_search");
	hiddenBS.setAttribute("name","map_search");
	hiddenBS.setAttribute("value","true");
	document.getElementById('builder_search').appendChild(hiddenBS);
	var hiddenNC = document.createElement("input");
	hiddenNC.setAttribute("type","hidden");
	hiddenNC.setAttribute("id","map_search");
	hiddenNC.setAttribute("name","map_search");
	hiddenNC.setAttribute("value","true");
	document.getElementById('new_construction').appendChild(hiddenNC);
	var hiddenMLS = document.createElement("input");
	hiddenMLS.setAttribute("type","hidden");
	hiddenMLS.setAttribute("id","map_search");
	hiddenMLS.setAttribute("name","map_search");
	hiddenMLS.setAttribute("value","true");
	document.getElementById('mls_search').appendChild(hiddenMLS);}
	
	function focusit() {
document.getElementById("quick_search").geo_area_text.focus();
}

function generate()
	{var this_url = parent.location.href;
	if (this_url.indexOf('cv_map_search=true') > -1)		
	dolinkAdvSrch(),dolinkMapSrch(),makeHidden();}

window.onload = function() { 
  generate();
  focusit();
}


///*** PRICE: DO NOT EDIT***///

function UpdateList(object) {

  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "") {
    object.filter_max_price.options[0].selected = true;
  }

  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "10000") {
	object.filter_max_price.options[2].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "20000") {
	object.filter_max_price.options[3].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "30000") {
	object.filter_max_price.options[4].selected = true;
  }
 
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "40000") {
	object.filter_max_price.options[5].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "50000") {
	object.filter_max_price.options[6].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "60000") {
	object.filter_max_price.options[7].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "70000") {
	object.filter_max_price.options[8].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "80000") {
	object.filter_max_price.options[9].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "90000") {
	object.filter_max_price.options[10].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "100000") {
	object.filter_max_price.options[11].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "125000") {
	object.filter_max_price.options[12].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "150000") {
    object.filter_max_price.options[13].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "175000") {
    object.filter_max_price.options[14].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "200000") {
    object.filter_max_price.options[15].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "225000") {
    object.filter_max_price.options[16].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "250000") {
    object.filter_max_price.options[17].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "275000") {
    object.filter_max_price.options[18].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "300000") {
    object.filter_max_price.options[19].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "325000") {
    object.filter_max_price.options[20].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "350000") {
    object.filter_max_price.options[21].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "400000") {
    object.filter_max_price.options[22].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "450000") {
    object.filter_max_price.options[23].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "500000") {
    object.filter_max_price.options[24].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "550000") {
    object.filter_max_price.options[25].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "600000") {
    object.filter_max_price.options[26].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "650000") {
    object.filter_max_price.options[27].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "700000") {
    object.filter_max_price.options[28].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "750000") {
   object.filter_max_price.options[29].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "800000") {
    object.filter_max_price.options[30].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "850000") {
   object.filter_max_price.options[31].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "900000") {
    object.filter_max_price.options[32].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "950000") {
    object.filter_max_price.options[33].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "1000000") {
    object.filter_max_price.options[34].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "1250000") {
    object.filter_max_price.options[35].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "1500000") {
    object.filter_max_price.options[36].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "1750000") {
    object.filter_max_price.options[37].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "2000000") {
    object.filter_max_price.options[38].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "2250000") {
    object.filter_max_price.options[39].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "2500000") {
    object.filter_max_price.options[40].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "2750000") {
    object.filter_max_price.options[41].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "3000000") {
    object.filter_max_price.options[42].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "3500000") {
    object.filter_max_price.options[43].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "4000000") {
    object.filter_max_price.options[44].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "4500000") {
    object.filter_max_price.options[45].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "5000000") {
    object.filter_max_price.options[46].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "6000000") {
    object.filter_max_price.options[47].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "8000000") {
    object.filter_max_price.options[48].selected = true;
  }
  
  if (object.filter_min_price.options[object.filter_min_price.selectedIndex].value == "10000000") {
    object.filter_max_price.options[48].selected = true;
  }
    
}
