function ByBoxSite(){this.siteIdentifier;this.latitude;this.longitude;this.siteName;
this.address1;this.address2;this.town;this.region;this.postalCode;this.country;this.openingHours;
this.siteAccessInformation;this.locationDescription;this.distance;this.originPostcode;
this.hash;}function ByBoxNearestSite(E,C){window.setInterval(A,250);function A(){if(E){var F=E.frames[0];
if(F){var G=F.location.hash;if(G&&G.length>1){F.location.hash="";if(C){var I=decodeURI(G.substr(1));
var H=D(I);C(H);}}}}}function D(F){var H=new ByBoxSite();var G=new B(F);H.siteIdentifier=G.get("siteIdentifier");
H.latitude=G.get("latitude");H.longitude=G.get("longitude");H.siteName=G.get("siteName");
H.address1=G.get("address1");H.address2=G.get("address2");H.town=G.get("town");H.region=G.get("region");
H.postalCode=G.get("postalCode");H.country=G.get("country");H.openingHours=G.get("openingHours");
H.siteAccessInformation=G.get("siteAccessInformation");H.locationDescription=G.get("locationDescription");
H.distance=G.get("distance");H.originPostcode=G.get("originPostcode");H.hash=G.get("hash");
return H;}function B(J){this.params={};if(J.length!=0){J=J.replace(/\+/g," ");var H=J.split("&");
for(var I=0;I<H.length;I++){var F=H[I].split("=");var G=decodeURIComponent(F[0]);
var K=(F.length==2)?decodeURIComponent(F[1]):G;this.params[G]=K;}}}B.prototype.get=function(G,F){var H=this.params[G];
return(H!=null)?H:F;};B.prototype.contains=function(G){var F=this.params[G];return(F!=null);
};}
