MapSearch.Config.Map.defaultLatLong.Lat = 35.054099745584594;
MapSearch.Config.Map.defaultLatLong.Long = -80.84909677505493;
MapSearch.Config.Map.defaultZoom = 9;
MapSearch.Config.Company = 'Helen Adams Realty';
MapSearch.Config.CompanyID = '13';
MapSearch.Config.Search.Auto = true;
MapSearch.Config.Search.SignleProperty.Zoom = 16;

MapSearch.Config.GUI.Theme = MapSearch.GUI.Theme.Sage;
MapSearch.Config.Urls.Base.propertyPicServer = 'http://media.helenadamsrealty.com';
var MapSearchObj = MapSearch.Base.I();
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('105001','137'),latitude: 35.054099745584594,longitude: -80.84909677505493,title: 'Ballantyne Office',streetAddress: '15235-J John J. Delaney Dr.',city: 'Charlotte',state: 'NC',phone: '',image: 'http://media.helenadamsrealty.com/pics/office/205/176/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('105004','507'),latitude: 35.443012,longitude: -80.881531,title: 'Lake Norman Office',streetAddress: '8600 Sam Furr Rd.',city: 'Huntersville',state: 'NC',phone: '',image: 'http://media.helenadamsrealty.com/pics/office/199/178/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('1050','319','1050'),latitude: 35.2057561,longitude: -80.8197399,title: 'Randolph Rd. Office',streetAddress: '2301 Randolph Rd.',city: 'Charlotte',state: 'NC',phone: '',image: 'http://media.helenadamsrealty.com/pics/office/197/177/'}));

MapSearchObj.setIconSet('office', {
	far: {
		icon: '/images/map_search/office_far.png',
		iconH: 18,
		iconW: 16,
		shadow: '/images/map_search/shadow-office_far.png',
		shadowH: 18,
		shadowW: 16,
		anchorX: 8,
		anchorY: 9,
		windowX: null,
		windowY: null
	},
	mid: {
		icon: '/images/map_search/office_mid.png',
		iconH: 26,
		iconW: 24,
		shadow: '/images/map_search/shadow-office_mid.png',
		shadowH: 26,
		shadowW: 38,
		anchorX: 12,
		anchorY: 13,
		windowX: null,
		windowY: null
	},
	near: {
		icon: '/images/map_search/office.png',
		iconH: 39,
		iconW: 35,
		shadow: '/images/map_search/shadow-office.png',
		shadowH: 39,
		shadowW: 55,
		anchorX: 20,
		anchorY: 17,
		windowX: null,
		windowY: null
	},
	result: '/images/map_search/office_mid.png'
});

MapSearch.Template.Bubble.Generic.Result = new Template(''+
'<tr><td class="title" colspan="2">#{streetAddress}</td>'+
'	<td rowspan="9" valign="top"><div class="Photo"><img class="LazyLoadImg" src="/images/system/map_search/small_image_load.gif" imageSrc="#{image}" /></div><div class="PhotoCount">#{photocount} Photos Available</div></td>'+
'</tr>'+
'<tr><td class="title" colspan="2">#{cityState}</td></tr>'+
'<tr><td class="title" colspan="2">&nbsp;</td></tr>'+
'<tr><td class="title">MLS:</td><td class="value">#{property_id}</td></tr>'+
'<tr><td class="title">Price:</td><td class="value">#{price}</td></tr>'+
'<tr><td class="title">Beds:</td><td class="value">#{beds}</td></tr>'+
'<tr><td class="title">Baths:</td><td class="value">#{baths}</td></tr>'+
'<tr><td class="title">Total Sqft:</td><td class="value">#{sqft}</td></tr>'+
'<tr><td class="title">Status:</td><td class="value">#{status}</td></tr>'+
'<tr><td style="font-size:10px; padding-left:4px; padding-bottom:2px;" colspan="3">&nbsp;</td></tr>'+
'<tr><td class="misc" colspan="3"><a href="/property/#{pid}" target="_Blank" onClick="">View Property Details</a></td>'+
'<tr><td style="padding-left:4px; padding-bottom:2px;" colspan="3"><img align="absmiddle" src="/images/system/map_search/idx_logos/helen_adams.gif" />&nbsp;Listing Courtesy of: #{office_name}</td></tr>'+
'</tr>');

MapSearch.Template.Accordian.Search.Generic = new Template(''+
'<div class="MapSearchSearchResult" pid="#{pid}">'+
'<table><tr>'+
'<td style="background-image:url(\'#{icon}\'); background-repeat:no-repeat; background-position:center center; width:30px; line-height:38px; vertical-align:center; text-align:center; text-decoration:none; color:#fff; padding-top:10px;">#{number}</td>'+
'<td width="180">#{street}<br /><span style="font-size:10px;">MLS: #{property_id} (#{status})</span><br /><span style="font-size:10px;">#{office_name}</span></td>'+
'<td>#{idx_logo}</td>'+
'</tr></table></div>');<!-- //0.1889500617981 --><!-- //10.10.98.181 -->