//"+name+""; document.getElementById("overlay_desc").innerHTML = desc; switch (name){ case 'The Ramble': var sname='Ramble Biltmore Forest'; break; case 'Mountainside Town Homes at the Gated Community of Wolf Laurel': var sname='Wolf Laurel'; break; case 'Riverwind Homes': var sname='Riverwind&counties[]=Henderson'; break; case 'Grand Highlands at Bearwallow Mountain': var sname='Grand Highlands at Bearwallow'; break; case 'Grand Highlands at Waterford Lakes': var sname='Grand Highlands Waterford Lake'; break; case 'Fitzgerald Condominiums': var sname='Fitzgerald'; break; case 'Crystal Communities': var sname='Crystal%20Creek&subdivision[]=Crystal%20Heights&subdivision[]=Crystal%20Cove'; break; default: var sname=name; break; } var theurl = ''; if (link!=''){theurl = "Visit Website | "} document.getElementById("overlay_url").innerHTML = theurl + 'View Listings'; marker.setImage("http://beta.beverly-hanks.com/communities/marker_selected.png"); //marker.openInfoWindowHtml(""+name+""); GDownloadUrl("http://beta.beverly-hanks.com/bhcommunities/marker/"+updid); }); // save the info we need to use later for the side_bar gmarkers[i] = marker; // add a line to the side_bar html if (type==1 || type==3){house_html += '
';} if (type==2 || type==3){condo_html += '';} i++; return marker; } function sortDist(a, b) { return a[0] - b[0]; } // This function picks up the click and opens the corresponding info window function myclick(i) { GEvent.trigger(gmarkers[i], "click"); } function reseticon() { if (oldclick!=null){ var oimg=gmarkers[oldclick].getIcon().image; gmarkers[oldclick].setImage(oimg);} } function toggleGroup(type) { if (type=='house'){var otype='condo';}else{var otype='house';} map.closeInfoWindow(); for (var i = 0; i < markerGroups[otype].length; i++) { var marker = markerGroups[otype][i]; if (!marker.isHidden()) {marker.hide();} } for (var i = 0; i < markerGroups[type].length; i++) { var marker = markerGroups[type][i]; if (marker.isHidden()) {marker.show();} } //document.getElementById("show"+otype).class = "inactive"; document.getElementById("show"+otype).className = "inactive"; //document.getElementById("show"+type).class = "active"; document.getElementById("show"+type).className = "active"; //document.getElementById("map_current_title").innerHTML = eval(type+"_title"); document.getElementById("menu_bar").innerHTML = eval(type+"_html"); } //]]>