The Wayback Machine - https://web.archive.org/web/20161023051913/http://www.topps.com/store-locator.html/

Store Locator

'); } if(m.website_url) { var urlPrefix = (m.website_url.match(/@/)) ? 'mailto:' : ''; div.insert(''); } container.insert(div); return container.innerHTML; }, generateMarkerHtml: function(m) { var url = ''; if(m.website_url){ url = m.website_url.replace(/\s/,''); } var container = new Element('div'); var div = new Element('div', {id: "marker-loc-" + m.location_id}).addClassName("marker-entry"); if(m.is_featured) { div.addClassName('featured'); } div.insert('' + m.title + '
').insert(m.address_display.replace(/\n/, '
') + '
'); if(m.phone.length > 5) { div.insert(m.phone + '
'); } if(url.length > 5) { div.insert('' + url + '
') } div.insert('

' + m.notes + '

'); container.update(div); return container.innerHTML; } }); Event.observe(window, 'load', function () { var searchLocation = getQueryStringValue(window.location, 'SearchLocation'); //var searchLocation =''; if( searchLocation) { storeLocator.init_search(searchLocation, { radius: 10 }); $('address').value = getQueryStringValue(window.location, 'SearchLocation'); } else { storeLocator.load(); } $('map').style.visibility = 'visible'; $('sidebar').style.visibility = 'visible'; }); Event.observe($('store_locator_form'), 'submit', function() { $('map').style.visibility = 'visible'; $('sidebar').style.visibility = 'visible'; storeLocator.search($('address').value, { radius: $('radius').value /*, type: $('product_type').value*/ }); }); /*$('locations-reset').observe('click', function(e){ Event.stop(e); if (storeLocator) { storeLocator.reset(); } });*/ })();