PageSourceSearch

https://supervac.com/?simplemap-master-js=1&smpid=11867&ver=7.1.3

js supervac.com collected 2026-10-07 23:42:10 UTC 33,948 bytes, 776 lines download raw bytes

1			var default_lat            = 44.968684;
2			var default_lng            = -93.215561;
3			var default_radius            = 1000;
4			var zoom_level                = '4';
5			var scrollwheel            = '1';
6			var draggable              = '1';
7			var map_width                = '100%';
8			var map_height                = '450px';
9			var special_text            = 'yes';
10			var units                    = 'mi';
11			var limit                    = '0';
12			var plugin_url                = 'https://supervac.com/wp-content/plugins/simplemap';
13			var visit_website_text        = 'Visit Website';
14			var get_directions_text        = 'Get Directions';
15			var location_tab_text        = 'Location';
16			var description_tab_text    = 'Description';
17			var phone_text                = 'Phone';
18			var fax_text                = 'Fax';
19			var email_text                = 'Email';
20
21			var taxonomy_text = {};
22						var noresults_text            = 'No results found.';
23			var default_domain            = '.com';
24			var address_format            = 'town province postalcode';
25			var siteurl                    = 'https://supervac.com';
26			var map;
27			var geocoder;
28			var autoload                = 'all';
29			var auto_locate                = 'ip';
30			var markersArray = [];
31			var infowindowsArray = [];
32
33			function clearInfoWindows() {
34			if (infowindowsArray) {
35			for (var i=0;i
36			<infowindowsArray.length;i++) {
37			infowindowsArray[i].close();
38			}
39			}
40			}
41
42			function clearOverlays() {
43			if (markersArray) {
44			for (var i=0;i
45			<markersArray.length;i++) {
46			markersArray[i].setMap(null);
47			}
48			}
49			}
50
51			//function load_simplemap( lat, lng, aspid, ascid, asma ) {
52			function load_simplemap( lat, lng, aspid, ascid, asma, shortcode_zoom_level, map_type, shortcode_autoload, shortcode_scrollwheel, shortcode_draggable ) {
53
54			zoom_level  = shortcode_zoom_level;
55			autoload    = shortcode_autoload;
56			scrollwheel = shortcode_scrollwheel;
57			draggable   = shortcode_draggable;
58			
59			if ( lat == 0 ) {
60			lat = '44.968684';
61			}
62
63			if ( lng == 0 ) {
64			lng = '-93.215561';
65			}
66
67			var latlng = new google.maps.LatLng( lat, lng );
68			var myOptions = {
69			zoom: parseInt(zoom_level),
70			center: latlng,
71			scrollwheel: scrollwheel,
72			draggable: draggable,
73			mapTypeId: google.maps.MapTypeId[map_type]
74			};
75			map = new google.maps.Map( document.getElementById( "simplemap" ), myOptions );
76
77			// Adsense for Google Maps
78						}
79
80			function codeAddress() {
81			// if this is modified, modify mirror function in general-options-js php function
82			var d_address = document.getElementById("default_address").value;
83
84			geocoder = new google.maps.Geocoder();
85			geocoder.geocode( { 'address': d_address }, function( results, status ) {
86			if ( status == google.maps.GeocoderStatus.OK ) {
87			var latlng = results[0].geometry.location;
88			document.getElementById("default_lat").value = latlng.lat();
89			document.getElementById("default_lng").value = latlng.lng();
90			} else {
91			alert("Geocode was not successful for the following reason: " + status);
92			}
93			});
94			}
95
96			function codeNewAddress() {
97			if (document.getElementById("store_lat").value != '' && document.getElementById("store_lng").value != '') {
98			document.new_location_form.submit();
99			}
100			else {
101			var address = '';
102			var street = document.getElementById("store_address").value;
103			var city = document.getElementById("store_city").value;
104			var state = document.getElementById("store_state").value;
105			var country = document.getElementById("store_country").value;
106
107			if (street) { address += street + ', '; }
108			if (city) { address += city + ', '; }
109			if (state) { address += state + ', '; }
110			address += country;
111
112			geocoder = new google.maps.Geocoder();
113			geocoder.geocode( { 'address': address }, function( results, status ) {
114			if ( status == google.maps.GeocoderStatus.OK ) {
115			var latlng = results[0].geometry.location;
116			document.getElementById("store_lat").value = latlng.lat();
117			document.getElementById("store_lng").value = latlng.lng();
118			document.new_location_form.submit();
119			} else {
120			alert("Geocode was not successful for the following reason: " + status);
121			}
122			});
123			}
124			}
125
126			function codeChangedAddress() {
127			var address = '';
128			var street = document.getElementById("store_address").value;
129			var city = document.getElementById("store_city").value;
130			var state = document.getElementById("store_state").value;
131			var country = document.getElementById("store_country").value;
132
133			if (street) { address += street + ', '; }
134			if (city) { address += city + ', '; }
135			if (state) { address += state + ', '; }
136			address += country;
137
138			geocoder = new google.maps.Geocoder();
139			geocoder.geocode( { 'address': address }, function( results, status ) {
140			if ( status == google.maps.GeocoderStatus.OK ) {
141			var latlng = results[0].geometry.location;
142			document.getElementById("store_lat").value = latlng.lat();
143			document.getElementById("store_lng").value = latlng.lng();
144			} else {
145			alert("Geocode was not successful for the following reason: " + status);
146			}
147			});
148			}
149
150			function searchLocations( is_search ) {
151            clearInfoWindows();
152			// Init searchData
153			var searchData = {};
154			searchData.taxes = {};
155
156			// Set defaults for search form fields
157			searchData.name    = '';
158			searchData.address    = '';
159			searchData.city    = '';
160			searchData.state    = '';
161			searchData.zip        = '';
162			searchData.country    = '';
163
164			if ( null != document.getElementById('location_search_name_field') ) {
165			searchData.name = document.getElementById('location_search_name_field').value;
166			}
167
168			if ( null != document.getElementById('location_search_address_field') ) {
169			searchData.address = document.getElementById('location_search_address_field').value;
170			}
171
172			if ( null != document.getElementById('location_search_city_field') ) {
173			searchData.city = document.getElementById('location_search_city_field').value;
174			}
175
176			if ( null != document.getElementById('location_search_country_field') ) {
177			searchData.country = document.getElementById('location_search_country_field').value;;
178			}
179
180			if ( null != document.getElementById('location_search_state_field') ) {
181			searchData.state = document.getElementById('location_search_state_field').value;
182			}
183
184			if ( null != document.getElementById('location_search_zip_field') ) {
185			searchData.zip = document.getElementById('location_search_zip_field').value;
186			}
187
188			if ( null != document.getElementById('location_search_distance_field') ) {
189			searchData.radius = document.getElementById('location_search_distance_field').value;
190			}
191
192			searchData.lat            = document.getElementById('location_search_default_lat').value;
193			searchData.lng            = document.getElementById('location_search_default_lng').value;
194			searchData.limit        = document.getElementById('location_search_limit').value;
195			searchData.searching    = document.getElementById('location_is_search_results').value;
196
197			// Do SimpleMap Taxonomies
198			
199			var query = '';
200			var start = 0;
201
202			if ( searchData.address && searchData.address != '' ) {
203			query += searchData.address + ', ';
204			}
205
206			if ( searchData.city && searchData.city != '' ) {
207			query += searchData.city + ', ';
208			}
209
210			if ( searchData.state && searchData.state != '' ) {
211			query += searchData.state + ', ';
212			}
213
214			if ( searchData.zip && searchData.zip != '' ) {
215			query += searchData.zip + ', ';
216			}
217
218			if ( searchData.country && searchData.country != '' ) {
219			query += searchData.country + ', ';
220			}
221
222			// Query
223			if ( query != null ) {
224			query = query.slice(0, -2);
225			}
226
227			if ( searchData.limit == '' || searchData.limit == null ) {
228			searchData.limit = 0;
229			}
230
231			if ( searchData.radius == '' || searchData.radius == null ) {
232			searchData.radius = 0;
233			}
234
235			// Taxonomies
236			
237			// Load default location if query is empty
238			if ( query == '' || query == null ) {
239
240			if ( searchData.lat != 0 && searchData.lng != 0 )
241			query = searchData.lat + ', ' + searchData.lng;
242			else
243			query = '44.968684, -93.215561';
244
245			}
246
247			// Searching
248			if ( 1 == searchData.searching || 1 == is_search ) {
249			is_search = 1;
250			searchData.source = 'search';
251			} else {
252			is_search = 0;
253			searchData.source = 'initial_load';
254			}
255
256			geocoder.geocode( { 'address': query }, function( results, status ) {
257			if ( status == google.maps.GeocoderStatus.OK ) {
258			searchData.center = results[0].geometry.location;
259			if ( 'none' != autoload || is_search ) {
260			if ( 'all' == autoload && is_search != 1 ) {
261			searchData.radius = 0;
262			searchData.limit = 0;
263			}
264
265			if (! searchData.center) {
266			searchData.center = new GLatLng( 44.9799654, -93.2638361 );
267			}
268			searchData.query_type = 'all';
269			searchData.mapLock = 'unlock';
270			searchData.homeAddress = query;
271
272			searchLocationsNear(searchData);
273			}
274			}
275			});
276			}
277
278			function searchLocationsNear(searchData) {
279			// Radius
280			if ( searchData.radius != null && searchData.radius != '' ) {
281			searchData.radius = parseInt( searchData.radius );
282
283			if ( units == 'km' ) {
284			searchData.radius = parseInt( searchData.radius ) / 1.609344;
285			}
286			} else if ( autoload == 'all' ) {
287			searchData.radius = 0;
288			} else {
289			if ( units == 'mi' ) {
290			searchData.radius = parseInt( default_radius );
291			} else if ( units == 'km' ) {
292			searchData.radius = parseInt( default_radius ) / 1.609344;
293			}
294			}
295
296			// Build search URL
297			
298			var searchUrl = siteurl + '/?sm-xml-search=1&lat=' + searchData.center.lat() + '&lng=' + searchData.center.lng() + '&radius=' + searchData.radius + '&namequery=' + searchData.homeAddress + '&query_type=' + searchData.query_type  + '&limit=' + searchData.limit + '&locname=' + searchData.name + '&address=' + searchData.address + '&city=' + searchData.city + '&state=' + searchData.state + '&zip=' + searchData.zip + '&pid=11867';
299
300							// Display Updating Message and hide search results
301				if ( jQuery( "#simplemap" ).is(":visible") ) {
302				jQuery( "#simplemap" ).hide();
303				jQuery( "#simplemap-updating" ).show();
304				}
305						jQuery( "#results" ).html( '' );
306
307			jQuery.get( searchUrl, {}, function(data) {
308							// Hide Updating Message
309				if ( jQuery( "#simplemap-updating" ).is(":visible") ) {
310				jQuery( "#simplemap-updating" ).hide();
311				jQuery( "#simplemap" ).show();
312				}
313			
314			clearOverlays();
315
316			var results = document.getElementById('results');
317			results.innerHTML = '';
318
319			var markers = jQuery( eval( data ) );
320			if (markers.length == 0) {
321			results.innerHTML = '<h3>' + noresults_text + '</h3>';
322			map.setCenter( searchData.center );
323			return;
324			}
325
326			var bounds = new google.maps.LatLngBounds();
327			markers.each( function () {
328			var locationData = this;
329			locationData.distance = parseFloat(locationData.distance);
330			locationData.point = new google.maps.LatLng(parseFloat(locationData.lat), parseFloat(locationData.lng));
331			locationData.homeAddress = searchData.homeAddress;
332
333			var marker = createMarker(locationData);
334			var sidebarEntry = createSidebarEntry(marker, locationData, searchData);
335			results.appendChild(sidebarEntry);
336			bounds.extend(locationData.point);
337			});
338
339			// Make centeral marker on search
340			if ( 'search' == searchData.source && true) {
341			var searchMarkerOptions = {};
342			searchMarkerOptions.map = map;
343			searchMarkerOptions.position = searchData.center;
344
345			searchMarkerOptions.icon = new google.maps.MarkerImage(
346			'https://supervac.com/wp-content/plugins/simplemap/inc/images/blue-dot.png',
347			new google.maps.Size(20, 32),
348			new google.maps.Point(0,0),
349			new google.maps.Point(0,32)
350			);
351
352			var searchMarkerTitle = '';
353			if ( '' != searchData.address ) {
354			searchMarkerTitle += searchData.address + ' ';
355			}
356			if ( '' != searchData.city ) {
357			searchMarkerTitle += searchData.city + ' ';
358			}
359			if ( '' != searchData.state ) {
360			searchMarkerTitle += searchData.state + ' ';
361			}
362			if ( '' != searchData.zip ) {
363			searchMarkerTitle += searchData.zip + ' ';
364			}
365
366			var searchMarker = new google.maps.Marker( searchMarkerOptions );
367			searchMarker.title = searchMarkerTitle;
368			markersArray.push(searchMarker);
369			bounds.extend(searchMarkerOptions.position);
370			}
371
372			// If the search button was clicked, limit to a 15px zoom
373			if ( 'search' == searchData.source ) {
374			map.fitBounds( bounds );
375			if ( map.getZoom() > 15 ) {
376			map.setZoom( 15 );
377			}
378			} else {
379			// If initial load of map, zoom to default settings
380			map.setZoom(parseInt(zoom_level));
381			}
382
383			// Paranoia - fix container sizing bug -- pdb
384			google.maps.event.addListener(map, "idle", function(){
385			google.maps.event.trigger(map, 'resize');
386			});
387			});
388			}
389
390			function stringFilter(s) {
391			filteredValues = "emnpxt%";     // Characters stripped out
392			var i;
393			var returnString = "";
394			for (i = 0; i < s.length; i++) {  // Search through string and append to unfiltered values to returnString.
395			var c = s.charAt(i);
396			if (filteredValues.indexOf(c) == -1) returnString += c;
397			}
398			return returnString;
399			}
400
401			function createMarker( locationData ) {
402
403			// Init tax heights
404			locationData.taxonomyheights = [];
405
406			// Allow plugin users to define Maker Options (including custom images)
407			var markerOptions = {};
408			if ( 'function' == typeof window.simplemapCustomMarkers ) {
409			markerOptions = simplemapCustomMarkers( locationData );
410			}
411
412			// Allow developers to turn of description in bubble. (Return true to hide)
413			
414			markerOptions.map = map;
415			markerOptions.position = locationData.point;
416			var marker = new google.maps.Marker( markerOptions );
417			marker.title = locationData.name;
418			markersArray.push(marker);
419
420			var mapwidth;
421			var mapheight;
422			var maxbubblewidth;
423			var maxbubbleheight;
424
425			mapwidth = document.getElementById("simplemap");
426			if ( typeof mapwidth != 'undefined' ) {
427			mapwidth = mapwidth.offsetWidth;
428			} else {
429			if ( typeof map_width != 'undefined' ) {
430			mapwidth = Number(stringFilter(map_width));
431			} else {
432			mapwidth = 400;
433			}
434			}
435
436			mapheight = document.getElementById("simplemap");
437			if ( typeof mapheight != 'undefined' ) {
438			mapheight = mapheight.offsetHeight;
439			} else {
440			if ( typeof map_height != 'undefined' ) {
441			mapheight = Number(stringFilter(map_height));
442			} else {
443			mapheight = 200;
444			}
445			}
446			maxbubblewidth = Math.round(mapwidth / 1.5);
447			maxbubbleheight = Math.round(mapheight / 2.2);
448
449			var fontsize = 12;
450			var lineheight = 12;
451
452			if (locationData.taxes.sm_category && locationData.taxes.sm_category != '' ) {
453			var titleheight = 3 + Math.floor((locationData.name.length + locationData.taxes.sm_category.length) * fontsize / (maxbubblewidth * 1.5));
454			} else {
455			var titleheight = 3 + Math.floor((locationData.name.length) * fontsize / (maxbubblewidth * 1.5));
456			}
457
458			var addressheight = 2;
459			if (locationData.address2 != '') {
460			addressheight += 1;
461			}
462			if (locationData.phone != '' || locationData.fax != '') {
463			addressheight += 1;
464			if (locationData.phone != '') {
465			addressheight += 1;
466			}
467			if (locationData.fax != '') {
468			addressheight += 1;
469			}
470			}
471
472			for (jstax in locationData.taxes) {
473			if ( locationData.taxes[jstax] !== '' ) {
474			locationData.taxonomyheights[jstax] = 3 + Math.floor((locationData.taxes[jstax][length]) * fontsize / (maxbubblewidth * 1.5));
475			}
476			}
477			var linksheight = 2;
478
479			var totalheight = titleheight + addressheight;
480			for (jstax in locationData.taxes) {
481			if ( 'sm_category' != jstax ) {
482			totalheight += locationData.taxonomyheights[jstax];
483			}
484			}
485			totalheight = (totalheight + 1) * fontsize;
486
487			if (totalheight > maxbubbleheight) {
488			totalheight = maxbubbleheight;
489			}
490
491			if ( isNaN( totalheight ) || totalheight > maxbubbleheight ) {
492			totalheight = maxbubbleheight;
493			}
494
495			var html = '<div class="markertext" style="background-color:#fff;padding:10px;max-width: ' + maxbubblewidth + 'px; height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
496				html += '<h3 style="margin-top: 0; padding-top: 0; border-top: none;">';
497
498				if ( '' != locationData.permalink ) {
499					html += '<a href="' + locationData.permalink + '">';
500				}
501				html += locationData.name;
502
503				if ( '' != locationData.permalink ) {
504					html += '</a>';
505				}
506
507				if (locationData.taxes.sm_category && locationData.taxes.sm_category != null && locationData.taxes.sm_category != '' ) {
508					html += '<br /><span class="bubble_category">' + locationData.taxes.sm_category + '</span>';
509				}
510
511				html += '</h3>';
512
513				html += '<p class="buble_address">' + locationData.address;
514				if (locationData.address2 != '') {
515					html += '<br />' + locationData.address2;
516				}
517
518				// Address Data
519				if (address_format == 'town, province postalcode') {
520					html += '<br />' + locationData.city + ', ' + locationData.state + ' ' + locationData.zip + '</p>';
521				} else if (address_format == 'town province postalcode') {
522					html += '<br />' + locationData.city + ' ' + locationData.state + ' ' + locationData.zip + '</p>';
523				} else if (address_format == 'town-province postalcode') {
524					html += '<br />' + locationData.city + '-' + locationData.state + ' ' + locationData.zip + '</p>';
525				} else if (address_format == 'postalcode town-province') {
526					html += '<br />' + locationData.zip + ' ' + locationData.city + '-' + locationData.state + '</p>';
527				} else if (address_format == 'postalcode town, province') {
528					html += '<br />' + locationData.zip + ' ' + locationData.city + ', ' + locationData.state + '</p>';
529				} else if (address_format == 'postalcode town') {
530					html += '<br />' + locationData.zip + ' ' + locationData.city + '</p>';
531				} else if (address_format == 'town postalcode') {
532					html += '<br />' + locationData.city + ' ' + locationData.zip + '</p>';
533				}
534
535				// Phone and Fax Data
536				if (locationData.phone != null && locationData.phone != '') {
537					html += '<p class="bubble_contact"><span class="bubble_phone">' + phone_text + ': ' + locationData.phone + '</span>';
538					if (locationData.email != null && locationData.email != '') {
539						html += '<br />' + email_text + ': <a class="bubble_email" href="mailto:' + locationData.email + '">' + locationData.email + '</a>';
540					}
541					if (locationData.fax != null && locationData.fax != '') {
542						html += '<br /><span class="bubble_fax">' + fax_text + ': ' + locationData.fax + '</span>';
543					}
544					html += '</p>';
545				} else if (locationData.fax != null && locationData.fax != '') {
546					html += '<p>' + fax_text + ': ' + locationData.fax + '</p>';
547				}
548
549				html += '<p class="bubble_tags">';
550
551				for (jstax in locationData.taxes) {
552					if ( 'sm_category' == jstax ) {
553						continue;
554					}
555					if ( locationData.taxes[jstax] != null && locationData.taxes[jstax] != '' ) {
556						html += taxonomy_text[jstax] + ': ' + locationData.taxes[jstax] + '<br />';
557					}
558				}
559				html += '</p>';
560
561					var dir_address = locationData.point.toUrlValue(10);
562					var dir_address2 = '';
563					if (locationData.address) { dir_address2 += locationData.address; }
564					if (locationData.city) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.city; };
565					if (locationData.state) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.state; };
566					if (locationData.zip) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.zip; };
567					if (locationData.country) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.country; };
568
569					if ( '' != dir_address2 ) { dir_address = locationData.point.toUrlValue(10) + '(' + escape( dir_address2 ) + ')'; };
570
571				html += '		<p class="bubble_links"><a class="bubble_directions" href="http://google' + default_domain + '/maps?saddr=' + locationData.homeAddress + '&daddr=' + dir_address + '" target="_blank">' + get_directions_text + '</a>';
572								if (locationData.url != '') {
573				html += '			<span class="bubble_website">&nbsp;|&nbsp;<a href="' + locationData.url + '" title="' + locationData.name + '" target="_blank">' + visit_website_text + '</a></span>';
574								}
575				html += '		</p>';
576
577				if (locationData.description != '' && locationData.description != null) {
578					var numlines = Math.ceil(locationData.description.length / 40);
579					var newlines = locationData.description.split('<br />').length - 1;
580					var totalheight2 = 0;
581
582					if ( locationData.description.indexOf('<img') == -1) {
583						totalheight2 = (numlines + newlines + 1) * fontsize;
584					}
585					else {
586						var numberindex = locationData.description.indexOf('height=') + 8;
587						var numberend = locationData.description.indexOf('"', numberindex);
588						var imageheight = Number(locationData.description.substring(numberindex, numberend));
589
590						totalheight2 = ((numlines + newlines - 2) * fontsize) + imageheight;
591					}
592
593					if (totalheight2 > maxbubbleheight) {
594						totalheight2 = maxbubbleheight;
595					}
596
597					//marker.openInfoWindowTabsHtml([new GInfoWindowTab(location_tab_text, html), new GInfoWindowTab(description_tab_text, html2)], {maxWidth: maxbubblewidth});
598					// tabs aren't possible with the Google Maps api v3
599					html += '<hr /><div class="bubble_content">' + locationData.description + '</div>';
600				}
601
602				html += '	</div>';
603/**
604 * @name InfoBox
605 * @version 1.1.13 [March 19, 2014]
606 * @author Gary Little (inspired by proof-of-concept code from Pamela Fox of Google)
607 * @copyright Copyright 2010 Gary Little [gary at luxcentral.com]
608 */
609eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7 8(a){a=a||{};r.s.1R.2k(2,3d);2.Q=a.1v||"";2.1H=a.1B||J;2.S=a.1G||0;2.H=a.1z||1h r.s.1Y(0,0);2.B=a.U||1h r.s.2E(0,0);2.15=a.13||t;2.1p=a.1t||"2h";2.1m=a.F||{};2.1E=a.1C||"3g";2.P=a.1j||"3b://38.r.33/2Y/2T/2N/1r.2K";3(a.1j===""){2.P=""}2.1f=a.1x||1h r.s.1Y(1,1);3(q a.A==="p"){3(q a.18==="p"){a.A=L}v{a.A=!a.18}}2.w=!a.A;2.17=a.1n||J;2.1I=a.2g||"2e";2.16=a.1l||J;2.4=t;2.z=t;2.14=t;2.V=t;2.E=t;2.R=t}8.9=1h r.s.1R();8.9.25=7(){5 i;5 f;5 a;5 d=2;5 c=7(e){e.20=L;3(e.1i){e.1i()}};5 b=7(e){e.30=J;3(e.1Z){e.1Z()}3(!d.16){c(e)}};3(!2.4){2.4=1e.2S("2Q");2.1d();3(q 2.Q.1u==="p"){2.4.O=2.G()+2.Q}v{2.4.O=2.G();2.4.1a(2.Q)}2.2J()[2.1I].1a(2.4);2.1w();3(2.4.6.D){2.R=L}v{3(2.S!==0&&2.4.Z>2.S){2.4.6.D=2.S;2.4.6.2D="2A";2.R=L}v{a=2.1P();2.4.6.D=(2.4.Z-a.W-a.11)+"12";2.R=J}}2.1F(2.1H);3(!2.16){2.E=[];f=["2t","1O","2q","2p","1M","2o","2n","2m","2l"];1o(i=0;i<f.1L;i++){2.E.1K(r.s.u.19(2.4,f[i],c))}2.E.1K(r.s.u.19(2.4,"1O",7(e){2.6.1J="2j"}))}2.V=r.s.u.19(2.4,"2i",b);r.s.u.T(2,"2f")}};8.9.G=7(){5 a="";3(2.P!==""){a="<2d";a+=" 2c=\'"+2.P+"\'";a+=" 2b=11";a+=" 6=\'";a+=" U: 2a;";a+=" 1J: 29;";a+=" 28: "+2.1E+";";a+="\'>"}K a};8.9.1w=7(){5 a;3(2.P!==""){a=2.4.3n;2.z=r.s.u.19(a,"1M",2.27())}v{2.z=t}};8.9.27=7(){5 a=2;K 7(e){e.20=L;3(e.1i){e.1i()}r.s.u.T(a,"3m");a.1r()}};8.9.1F=7(d){5 m;5 n;5 e=0,I=0;3(!d){m=2.1D();3(m 3l r.s.3k){3(!m.26().3h(2.B)){m.3f(2.B)}n=m.26();
6095 a=m.3e();5 h=a.Z;5 f=a.24;5 k=2.H.D;5 l=2.H.1k;5 g=2.4.Z;5 b=2.4.24;5 i=2.1f.D;5 j=2.1f.1k;5 o=2.23().3c(2.B);3(o.x<(-k+i)){e=o.x+k-i}v 3((o.x+g+k+i)>h){e=o.x+g+k+i-h}3(2.17){3(o.y<(-l+j+b)){I=o.y+l-j-b}v 3((o.y+l+j)>f){I=o.y+l+j-f}}v{3(o.y<(-l+j)){I=o.y+l-j}v 3((o.y+b+l+j)>f){I=o.y+b+l+j-f}}3(!(e===0&&I===0)){5 c=m.3a();m.39(e,I)}}}};8.9.1d=7(){5 i,F;3(2.4){2.4.37=2.1p;2.4.6.36="";F=2.1m;1o(i 35 F){3(F.34(i)){2.4.6[i]=F[i]}}2.4.6.32="31(0)";3(q 2.4.6.X!=="p"&&2.4.6.X!==""){2.4.6.2Z="\\"2X:2W.2V.2U(2R="+(2.4.6.X*1X)+")\\"";2.4.6.2P="2O(X="+(2.4.6.X*1X)+")"}2.4.6.U="2M";2.4.6.M=\'1c\';3(2.15!==t){2.4.6.13=2.15}}};8.9.1P=7(){5 c;5 a={1b:0,1g:0,W:0,11:0};5 b=2.4;3(1e.1s&&1e.1s.1W){c=b.2L.1s.1W(b,"");3(c){a.1b=C(c.1V,10)||0;a.1g=C(c.1U,10)||0;a.W=C(c.1T,10)||0;a.11=C(c.1S,10)||0}}v 3(1e.2I.N){3(b.N){a.1b=C(b.N.1V,10)||0;a.1g=C(b.N.1U,10)||0;a.W=C(b.N.1T,10)||0;a.11=C(b.N.1S,10)||0}}K a};8.9.2H=7(){3(2.4){2.4.2G.2F(2.4);2.4=t}};8.9.1y=7(){2.25();5 a=2.23().2C(2.B);2.4.6.W=(a.x+2.H.D)+"12";3(2.17){2.4.6.1g=-(a.y+2.H.1k)+"12"}v{2.4.6.1b=(a.y+2.H.1k)+"12"}3(2.w){2.4.6.M="1c"}v{2.4.6.M="A"}};8.9.2B=7(a){3(q a.1t!=="p"){2.1p=a.1t;2.1d()}3(q a.F!=="p"){2.1m=a.F;2.1d()}3(q a.1v!=="p"){2.1Q(a.1v)}3(q a.1B!=="p"){2.1H=a.1B}3(q a.1G!=="p"){2.S=a.1G}3(q a.1z!=="p"){2.H=a.1z}3(q a.1n!=="p"){2.17=a.1n}3(q a.U!=="p"){2.1q(a.U)}3(q a.13!=="p"){2.22(a.13)}3(q a.1C!=="p"){2.1E=a.1C}3(q a.1j!=="p"){2.P=a.1j}3(q a.1x!=="p"){2.1f=a.1x}3(q a.18!=="p"){2.w=a.18}3(q a.A!=="p"){2.w=!a.A}3(q a.1l!=="p"){2.16=a.1l}3(2.4){2.1y()}};8.9.1Q=7(a){2.Q=a;3(2.4){3(2.z){r.s.u.Y(2.z);2.z=t}3(!2.R){2.4.6.D=""}3(q a.1u==="p"){2.4.O=2.G()+a}v{2.4.O=2.G();2.4.1a(a)}3(!2.R){2.4.6.D=2.4.Z+"12";3(q a.1u==="p"){2.4.O=2.G()+a}v{2.4.O=2.G();2.4.1a(a)}}2.1w()}r.s.u.T(2,"2z")};8.9.1q=7(a){2.B=a;3(2.4){2.1y()}r.s.u.T(2,"21")};8.9.22=7(a){2.15=a;3(2.4){2.4.6.13=a}r.s.u.T(2,"2y")};8.9.2x=7(a){2.w=!a;3(2.4){2.4.6.M=(2.w?"1c":"A")}};8.9.2w=7(){K 2.Q};8.9.1A=7(){K 2.B};8.9.2v=7(){K 2.15};8.9.2u=7(){5 a;3((q 2.1D()==="p")||(2.1D()===t)){a=J}v{a=!2.w}K a};8.9.3i=7(){2.w=J;3(2.4){2.4.6.M="A"}};8.9.3j=7(){2.w=L;3(2.4){2.4.6.M="1c"}};8.9.2s=7(c,b){5 a=2;3(b){2.B=b.1A();2.14=r.s.u.2r(b,"21",7(){a.1q(2.1A())})}2.1N(c);3(2.4){2.1F()}};8.9.1r=7(){5 i;3(2.z){r.s.u.Y(2.z);2.z=t}3(2.E){1o(i=0;i<2.E.1L;i++){r.s.u.Y(2.E[i])}2.E=t}3(2.14){r.s.u.Y(2.14);2.14=t}3(2.V){r.s.u.Y(2.V);2.V=t}2.1N(t)};',62,210,'||this|if|div_|var|style|function|InfoBox|prototype||||||||||||||||undefined|typeof|google|maps|null|event|else|isHidden_|||closeListener_|visible|position_|parseInt|width|eventListeners_|boxStyle|getCloseBoxImg_|pixelOffset_|yOffset|false|return|true|visibility|currentStyle|innerHTML|closeBoxURL_|content_|fixedWidthSet_|maxWidth_|trigger|position|contextListener_|left|opacity|removeListener|offsetWidth||right|px|zIndex|moveListener_|zIndex_|enableEventPropagation_|alignBottom_|isHidden|addDomListener|appendChild|top|hidden|setBoxStyle_|document|infoBoxClearance_|bottom|new|stopPropagation|closeBoxURL|height|enableEventPropagation|boxStyle_|alignBottom|for|boxClass_|setPosition|close|defaultView|boxClass|nodeType|content|addClickHandler_|infoBoxClearance|draw|pixelOffset|getPosition|disableAutoPan|closeBoxMargin|getMap|closeBoxMargin_|panBox_|maxWidth|disableAutoPan_|pane_|cursor|push|length|click|setMap|mouseover|getBoxWidths_|setContent|OverlayView|borderRightWidth|borderLeftWidth|borderBottomWidth|borderTopWidth|getComputedStyle|100|Size|preventDefault|cancelBubble|position_changed|setZIndex|getProjection|offsetHeight|createInfoBoxDiv_|getBounds|getCloseClickHandler_|margin|pointer|relative|align|src|img|floatPane|domready|pane|infoBox|contextmenu|default|apply|touchmove|touchend|touchstart|dblclick|mouseup|mouseout|addListener|open|mousedown|getVisible|getZIndex|getContent|setVisible|zindex_changed|content_changed|auto|setOptions|fromLatLngToDivPixel|overflow|LatLng|removeChild|parentNode|onRemove|documentElement|getPanes|gif|ownerDocument|absolute|mapfiles|alpha|filter|div|Opacity|createElement|en_us|Alpha|Microsoft|DXImageTransform|progid|intl|MsFilter|returnValue|translateZ|WebkitTransform|com|hasOwnProperty|in|cssText|className|www|panBy|getCenter|http|fromLatLngToContainerPixel|arguments|getDiv|setCenter|2px|contains|show|hide|Map|instanceof|closeclick|firstChild'.split('|'),0,{}));
610
611				google.maps.event.addListener(marker, 'click', function() {
612					clearInfoWindows();
613					var infowidth = 0;
614					if ( maxbubblewidth <= 100 ) {
615						infowidth = document.getElementById("simplemap");
616						if ( typeof infowidth != 'undefined' ) {
617							infowidth = infowidth.offsetWidth;
618						} else {
619							infowidth = 400;
620						}
621					    infowidth = infowidth * (maxbubblewidth / 100.0);
622					}
623					if ( infowidth < maxbubblewidth ) infowidth = maxbubblewidth;
624					infowidth = parseInt(infowidth) + 'px';
625/*
626					var infowindow = new google.maps.InfoWindow({
627						maxWidth: infowidth,
628						content: html
629					});
630*/
631
632					var infowindow = new InfoBox({
633						maxWidth: infowidth
634						,content: html
635		,disableAutoPan: false
636		,pixelOffset: new google.maps.Size(-80,-80)
637		,alignBottom: true
638		,zIndex: null
639		,boxStyle: {
640		  opacity: 1.0
641		 ,fontSize:'11pt'
642		 }
643		,closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif"
644		,infoBoxClearance: new google.maps.Size(1, 1)
645		,isHidden: false
646		,pane: "floatPane"
647		,enableEventPropagation: true
648
649					});
650					infowindow.open(map, marker);
651					infowindowsArray.push(infowindow);
652					window.location = '#map_top';
653				});
654
655				return marker;
656			}
657
658			function createSidebarEntry(marker, locationData, searchData) {
659				var div = document.createElement('div');
660
661				// Beginning of result
662				var html = '<div id="location_' + locationData.postid + '" class="result">';
663
664				// Flagged special
665				if (locationData.special == 1 && special_text != '') {
666					html += '<div class="special">' + special_text + '</div>';
667				}
668
669				// Name & distance
670				html += '<div class="result_name">';
671				html += '<h3 style="margin-top: 0; padding-top: 0; border-top: none;">';
672				if (locationData.permalink != null && locationData.permalink != '') {
673					html += '<a href="' + locationData.permalink + '">';
674				}
675				html += locationData.name;
676				if (locationData.permalink != null && locationData.permalink != '') {
677					html += '</a>';
678				}
679
680				if (locationData.distance.toFixed(1) != 'NaN') {
681					if (units == 'mi') {
682						html+= ' <small class="result_distance">
682' + locationData.distance.toFixed(1) + ' miles</small>';
683					}
684					else if (units == 'km') {
685						html+= ' <small class="result_distance">' + (locationData.distance * 1.609344).toFixed(1) + ' km</small>';
686					}
687				}
688				html += '</h3></div>';
689
690				// Address
691				html += '<div class="result_address"><address>' + locationData.address;
692				if (locationData.address2 != '') {
693					html += '<br />' + locationData.address2;
694				}
695
696				if (address_format == 'town, province postalcode') {
697					html += '<br />' + locationData.city + ', ' + locationData.state + ' ' + locationData.zip + '</address></div>';
698				}
699				else if (address_format == 'town province postalcode') {
700					html += '<br />' + locationData.city + ' ' + locationData.state + ' ' + locationData.zip + '</address></div>';
701				}
702				else if (address_format == 'town-province postalcode') {
703					html += '<br />' + locationData.city + '-' + locationData.state + ' ' + locationData.zip + '</address></div>';
704				}
705				else if (address_format == 'postalcode town-province') {
706					html += '<br />' + locationData.zip + ' ' + locationData.city + '-' + locationData.state + '</address></div>';
707				}
708				else if (address_format == 'postalcode town, province') {
709					html += '<br />' + locationData.zip + ' ' + locationData.city + ', ' + locationData.state + '</address></div>';
710				}
711				else if (address_format == 'postalcode town') {
712					html += '<br />' + locationData.zip + ' ' + locationData.city + '</address></div>';
713				}
714				else if (address_format == 'town postalcode') {
715					html += '<br />' + locationData.city + ' ' + locationData.zip + '</address></div>';
716				}
717
718				// Phone, email, and fax numbers
719				html += '<div class="result_phone">';
720				if (locationData.phone != null && locationData.phone != '') {
721					html += '<span class="result_phone">' + phone_text + ': <a href="tel:' + locationData.phone + '">' + locationData.phone + '</a></span>';
722				}
723				if (locationData.email != null && locationData.email != '') {
724					html += '<span class="result_email">' + email_text + ': <a href="mailto:' + locationData.email + '">' + locationData.email + '</a></span>';
725				}
726				if (locationData.fax != null && locationData.fax != '') {
727					html += '<span class="result_fax">' + fax_text + ': ' + locationData.fax + '</span>';
728				}
729				html += '</div>';
730
731				// Links section
732				html += '<div class="result_links">';
733
734				// Visit Website link
735				html += '<div class="result_website">';
736				if (locationData.url != null && locationData.url != 'http://' && locationData.url != '') {
737					html += '<a href="' + locationData.url + '" title="' + locationData.name + '" target="_blank">' + visit_website_text + '</a>';
738				}
739				html += '</div>';
740
741				// Get Directions link
742				if (locationData.distance.toFixed(1) != 'NaN') {
743					var dir_address = locationData.point.toUrlValue(10);
744					var dir_address2 = '';
745					if (locationData.address) { dir_address2 += locationData.address; }
746					if (locationData.city) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.city };
747					if (locationData.state) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.state };
748					if (locationData.zip) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.zip };
749					if (locationData.country) { if ( '' != dir_address2 ) { dir_address2 += ' '; } dir_address2 += locationData.country };
750					if ( '' != dir_address2 ) { dir_address += '(' + escape( dir_address2 ) + ')' };
751
752					html += '<a class="result_directions" href="http://google' + default_domain + '/maps?saddr=' + searchData.homeAddress + '&daddr=' + dir_address + '" target="_blank">' + get_directions_text + '</a>';
753				}
754				html += '</div>';
755				html += '<div style="clear: both;"></div>';
756
757				
758				// Taxonomy lists
759				for (jstax in locationData.taxes) {
760					if ( locationData.taxes[jstax] != null && locationData.taxes[jstax] != '' ) {
761						html += '<div class="' + jstax + '_list"><small><strong>' + taxonomy_text[jstax] + ':</strong> ' + locationData.taxes[jstax] + '</small></div>';
762					}
763				}
764
765				// End of result
766				html += '</div>';
767
768				div.innerHTML = html;
769				div.style.cursor = 'pointer';
770				div.style.margin = 0;
771				google.maps.event.addDomListener(div, 'click', function() {
772					google.maps.event.trigger(marker, 'click');
773				});
774				return div;
775			}
776			

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.