MapSearch.Config.Map.defaultLatLong.Lat = 41.679806;
MapSearch.Config.Map.defaultLatLong.Long = -83.628268;
MapSearch.Config.Map.defaultZoom = 11;
MapSearch.Config.Company = 'Danberry Customer Service';
MapSearch.Config.CompanyID = '16';
MapSearch.Config.Search.Auto = true;
MapSearch.Config.Search.SignleProperty.Zoom = 16;

MapSearch.Config.GUI.Theme = MapSearch.GUI.Theme.Blueberry;
MapSearch.Config.Urls.Base.propertyPicServer = 'http://media.danberry.com';
var MapSearchObj = MapSearch.Base.I();
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array(''),latitude: 41.575308389439996,longitude: -83.6931824684143,title: 'Auction Office',streetAddress: '3555 Briarfield Boulevard',city: 'Maumee',state: 'OH ',phone: '',image: 'http://media.danberry.com/pics/office/250/268/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN01','DAN40','DAN01','DAN40'),latitude: 41.57536858495267,longitude: -83.69317710399627,title: 'Briarfield Office',streetAddress: '3555 Briarfield Boulevard',city: 'Maumee',state: 'OH',phone: '',image: 'http://media.danberry.com/pics/office/251/254/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array(''),latitude: 41.679806,longitude: -83.628268,title: 'Corporate Services Office',streetAddress: '3242 Executive Pkwy. Suite 203',city: 'Toledo',state: 'OH',phone: '',image: 'http://media.danberry.com/pics/office/261/269/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN13','DAN13'),latitude: 41.04531056307815,longitude: -83.63771438598633,title: 'Findlay Service Area',streetAddress: '',city: 'Findlay',state: 'OH',phone: '',image: 'http://media.danberry.com/pics/office/253/271/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN40','DAN40'),latitude: 41.897563,longitude: -84.03741,title: 'Lenawee County Service Area',streetAddress: '',city: 'Adrian',state: 'MI',phone: '517-266-6000',image: 'http://media.danberry.com/pics/office/262/272/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN14','DAN14'),latitude: 41.5246543,longitude: -83.6392878,title: 'Levis Commons',streetAddress: '2150 Preston Parkway',city: 'Perrysburg',state: 'Ohio',phone: '',image: 'http://media.danberry.com/pics/office/283/335/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN04','DAN40','DAN04','DAN40'),latitude: 41.915243870407366,longitude: -83.3865737915039,title: 'Monroe County Service Area',streetAddress: '',city: 'Monroe',state: 'MI',phone: '',image: 'http://media.danberry.com/pics/office/254/273/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN05','DAN40','DAN05','DAN40'),latitude: 41.63679091324125,longitude: -83.4614610671997,title: 'Oregon Office',streetAddress: '3624 Navarre Avenue',city: 'Oregon',state: 'OH',phone: '',image: 'http://media.danberry.com/pics/office/255/255/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN07','DAN40','DAN07','DAN40'),latitude: 41.54067463434672,longitude: -83.64054679870605,title: 'Perrysburg Office',streetAddress: '1090 W South Boundary Street',city: 'Perrysburg',state: 'OH',phone: '',image: 'http://media.danberry.com/pics/office/256/256/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN06','DAN40','DAN06','DAN40'),latitude: 41.679806,longitude: -83.628268,title: 'Relocation Office',streetAddress: '3242 Executive Parkway',city: 'Toledo',state: 'OH ',phone: '',image: 'http://media.danberry.com/pics/office/257/270/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN04','DAN40','DAN04','DAN40'),latitude: 41.74362793439164,longitude: -83.56724202632904,title: 'Temperance Office',streetAddress: '7012 Lewis Avenue',city: 'Temperance',state: 'MI',phone: '',image: 'http://media.danberry.com/pics/office/258/257/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('DAN03','DAN40','DAN03','DAN40'),latitude: 41.679806,longitude: -83.628268,title: 'Westgate Office',streetAddress: '3242 Executive Parkway',city: 'Toledo',state: 'OH',phone: '',image: 'http://media.danberry.com/pics/office/259/258/'}));

MapSearchObj.setIconSet('office', {
	far: {
		icon: '/images/map_search/office_far.png',
		iconH: 21,
		iconW: 33,
		shadow: '/images/map_search/shadow-office_far.png',
		shadowH: 21,
		shadowW: 44,
		anchorX: 8,
		anchorY: 9,
		windowX: null,
		windowY: null,
		imageMap: new Array(1,8, 12,5, 31,3, 42,10, 39,20, 26,22, 1,8)
	},
	mid: {
		icon: '/images/map_search/office_mid.png',
		iconH: 28,
		iconW: 44,
		shadow: '/images/map_search/shadow-office_mid.png',
		shadowH: 28,
		shadowW: 59,
		anchorX: 12,
		anchorY: 13,
		windowX: null,
		windowY: null,
		imageMap: new Array(1,8, 12,5, 31,3, 42,10, 39,20, 26,22, 2,17)
	},
	near: {
		icon: '/images/map_search/office.png',
		iconH: 40,
		iconW: 63,
		shadow: '/images/map_search/shadow-office.png',
		shadowH: 40,
		shadowW: 84,
		anchorX: 20,
		anchorY: 17,
		windowX: null,
		windowY: null,
		imageMap: new Array(3,14, 25,2, 47,5, 62,20, 43,36, 22,37, 3,14)
	},
	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.38040685653687 --><!-- //10.10.98.184 -->