+/*
+ * Get the URL prefix to use for a short link
+ */
+function shortlinkPrefix() {
+ if (window.location.hostname.match(/^www\.openstreetmap\.org/i)) {
+ return "http://osm.org";
+ } else {
+ return "";
+ }
+}
+
+/*
+ * Called to get the arguments from a URL as a hash.
+ */