//note: some javascript is in the template file as we needed to loop through the store data
$(document).ready(function(){
	jQuery(function($){
	 	$('<input type="button" value="Search" id="search-button">')
	 		.click(function(){
	 			$(this).val('Searching').attr('disabled', true);
	 			$(this).parents("form:first").ajaxSubmit({
	 				success: function(responseText, responseCode) {
	 					$('#storeaddress').html(responseText).slideDown();
	 					$('#search-button').val('Search').attr('disabled', false);
	 				}
	 			});
	 			return false;
	 		})
	 		.appendTo('#LocationPostalSearch'); 
	});
});
