MapSearch.Config.Map.defaultLatLong.Lat = 40.6914705;
MapSearch.Config.Map.defaultLatLong.Long = -74.628002;
MapSearch.Config.Map.defaultZoom = 10;
MapSearch.Config.Company = 'Turpin Realtors';
MapSearch.Config.CompanyID = '18';
MapSearch.Config.Search.Auto = true;
MapSearch.Config.Search.SingleProperty.Zoom = 16;

MapSearch.Config.GUI.Theme = MapSearch.GUI.Theme.Gold;
MapSearch.Config.Urls.Base.propertyPicServer = 'http://media.turpinrealtors.com';
var MapSearchObj = MapSearch.Base.I();
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('009903','009903','009903'),latitude: 40.7208309,longitude: -74.555731,title: 'Bernardsville',streetAddress: '163 Morristown Rd.',city: 'Bernardsville',state: 'NJ',phone: '',image: 'http://media.turpinrealtors.com/pics/office/279/385/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('009905','009905','009905'),latitude: 40.7397197,longitude: -74.3795591,title: 'Chatham',streetAddress: '186 Main St',city: 'Chatham',state: 'NJ',phone: '',image: 'http://media.turpinrealtors.com/pics/office/282/386/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('009904','009904','009904'),latitude: 40.6914705,longitude: -74.628002,title: 'Far Hills',streetAddress: 'PO Box 100',city: 'Far Hills',state: 'NJ',phone: '',image: 'http://media.turpinrealtors.com/pics/office/278/387/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('009902','009902','009902'),latitude: 40.776409,longitude: -74.60008,title: 'Mendham',streetAddress: '8 East Main St.',city: 'Mendham',state: 'NJ',phone: '',image: 'http://media.turpinrealtors.com/pics/office/280/388/'}));
MapSearchObj.addOffice(new MapSearch.Office.Office({codes: new Array('009901','009901','009901'),latitude: 40.671115,longitude: -74.748964,title: 'Oldwick',streetAddress: 'PO Box 13',city: 'Oldwick',state: 'NJ',phone: '',image: 'http://media.turpinrealtors.com/pics/office/281/389/'}));

MapSearchObj.setIconSet('office', {
	far: {
		icon: '/images/map_search/office_far.png',
		iconH: 22,
		iconW: 32,
		shadow: '/images/map_search/office_far_shadow.png',
		shadowH: 20,
		shadowW: 38,
		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: 30,
		iconW: 30,
		shadow: '/images/map_search/office_mid_shadow.png',
		shadowH: 24,
		shadowW: 49,
		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: 40,
		shadow: '/images/map_search/office_shadow.png',
		shadowH: 28,
		shadowW: 63,
		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}/#{address_url}" target="_Blank" onClick="">View Property Details</a></td>'+
'</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></td>'+
'</tr></table></div>');

MapSearch.Template.Accordian.Favorite.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 />#{cityState} #{zip}</td>'+
'<td></td>'+
'</tr></table></div>');<!-- //0.6866729259491 --><!-- //10.10.3.20 -->
