diff --git a/APRSStdPages.c b/APRSStdPages.c
index 7cb38e1..112e8be 100644
--- a/APRSStdPages.c
+++ b/APRSStdPages.c
@@ -3226,335 +3226,328 @@ char * get_plane(int * Len)
}
-
-
char * get_aprs()
{
char Msg[] =
+ "\n"
+ "\n"
+ "
\n"
+ "\n"
+ "\n"
+ "\n"
+ "G8BPQ APRS Display\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ " \n"
+ "\n"
-
-
-//"\n"
-//"\n"
-"\n"
-"\n"
-"\n"
-"\n"
-" \n"
-"\n"
-"\n"
-"\n"
-"\n"
-"\n"
-" \n"
-"\n"
-"";
-
+ "\n"
+ "function getCookie(cname)\n"
+ " {\n"
+ " var name = cname + \"=\";\n"
+ " var decodedCookie = decodeURIComponent(document.cookie);\n"
+ " var ca = decodedCookie.split(';');\n"
+ " \t\n"
+ " for(var i = 0; i < ca.length; i++)\n"
+ " {\n"
+ " var c = ca[i];\n"
+ " while (c.charAt(0) == ' ')\n"
+ " {\n"
+ " c = c.substring(1);\n"
+ " }\n"
+ " if (c.indexOf(name) == 0)\n"
+ " return c.substring(name.length, c.length);\n"
+ " }\n"
+ " return \"\";\n"
+ "}\n"
+ "\n"
+ "\n"
+ "// Refresh map every 60 seconds\n"
+ " \n"
+ "setInterval( \"Refresh()\", 60000 );\n"
+ "\n"
+ "function Refresh( )\n"
+ "{\n"
+ " var latlng = map.getCenter();\n"
+ " zoom = map.getZoom();\n"
+ " \n"
+ " lat = latlng.lat;\n"
+ " lon = latlng.lng\n"
+ " \n"
+ " document.cookie = \"Lat=\" + lat;\n"
+ " document.cookie = \"Lng=\" + lon;\n"
+ " document.cookie = \"Zoom=\" + zoom;\n"
+ " \n"
+ " \tdocument.cookie = \"aprs=\" + aprs;\n"
+ " \tdocument.cookie = \"ais=\" + ais;\n"
+ " \tdocument.cookie = \"adsb=\" + adsb;\n"
+ "\n"
+ " GetData();\n"
+ "}\n"
+ "\n"
+ " \n"
+ "function GetData()\n"
+ "{\n"
+ " var N = map.getBounds().getNorth();\n"
+ " var S = map.getBounds().getSouth();\n"
+ " var W = map.getBounds().getWest();\n"
+ " var E = map.getBounds().getEast();\n"
+ " $.ajax({url: \"aprsdata.txt?\" + N + '|' + S + '|' + W + '|' + E + '|' + aprs + '|' + ais + '|' + adsb, cache: false})\n"
+ " .done(function(Nodes){processData(Nodes);})\t\n"
+ " .fail(function(jqXHR, textStatus, errorThrown){alert(\"Failed to load aprs data\");})\n"
+ " ;\n"
+ " }\n"
+ " \n"
+ "function processData(Nodes)\n"
+ "{\n"
+ " var i = 0;\n"
+ " layergroup.clearLayers();\n"
+ " \n"
+ " var lines = Nodes.split(\"|\");\n"
+ " \n"
+ " while (i < lines.length)\n"
+ " {\n"
+ " if (lines[i].length < 5)\n"
+ " {\n"
+ " i++;\n"
+ " continue;\n"
+ " }\n"
+ " \t\n"
+ " var elements = lines[i].split(\",\");\n"
+ " i++;\t\n"
+ " \t\n"
+ "if (elements[0] == \"H\")\t\t\t\t// Home Position\n"
+ "{ homeLat = elements[1]; homeLon = elements[2]; homePoint = L.latLng(homeLat, homeLon); var m = L.circleMarker([elements[1], elements[2]], {radius: 6, color: '#000000', fillOpacity: 0.3})\n"
+ " .addTo(layergroup)\n"
+ " .bindPopup(elements[3])\n"
+ " .on('click', function (e) {alert(this.getLatLng());})\n"
+ " .on('mouseover', function (e) {this.openPopup();})\n"
+ " .on('mouseout', function (e) {this.closePopup();});\n"
+ " if (lat == 0 || lat == \"\")\t\t// Not Set\n"
+ " map.setView([elements[1], elements[2]], 8);\n"
+ "}\n"
+ "\n"
+ " if (elements[0] == \"N\") \t// Navaid\n"
+ " {\n"
+ " var m = L.marker([elements[1], elements[2]], {rotationAngle: 0, icon: navIcon})\n"
+ " .addTo(layergroup)\n"
+ " .bindPopup(elements[3])\n"
+ " .on('click', function (e) {alert(this.getLatLng());})\n"
+ " .on('mouseover', function (e) {this.openPopup();})\n"
+ " .on('mouseout', function (e) {this.closePopup();});\n"
+ "\n"
+ " }\n"
+ " else if (elements[0] == \"A\") \t// APRS\n"
+ " {\n"
+ " var Icon = L.icon({iconUrl: 'Icon' + elements[5] + '.png',iconSize: [22, 22],iconAnchor: [11, 11],popupAnchor: [0, 0]});\n"
+ " \n"
+ " var m = L.marker([elements[1], elements[2]], {rotationAngle: 0, icon: Icon})\n"
+ " .addTo(layergroup)\n"
+ " .bindPopup(elements[4], {minWidth: 280, maxWidth: 500})\n"
+ " .bindTooltip(elements[3], {className: 'popup', permanent: true, direction: 'right', offset: [10, 0]}).openTooltip()\t\n"
+ " .on('click', function (e) {alert(this.getLatLng());})\n"
+ " .on('mouseover', function (e) {this.openPopup();})\n"
+ " .on('mouseout', function (e) {this.closePopup();});\n"
+ "\n"
+ " }\n"
+ " else if (elements[0] == \"V\") // Vessel\n"
+ " {\n"
+ " var icon;\n"
+ " \n"
+ "var dist = homePoint.distanceTo([elements[1], elements[2]]) / 1609.34;\n"
+ "var popup = elements[3] + '
Distance ' + dist.toFixed(0) + ' Miles'; if (elements[6] < 900)\n"
+ " \ticon = blueIcon;\n"
+ " else if (elements[6] < 1800)\n"
+ " \ticon = redIcon;\n"
+ " else\n"
+ " \ticon = whiteIcon;\n"
+ " \t\n"
+ " var m = L.marker([elements[1], elements[2]], {rotationAngle: elements[4], icon: icon})\n"
+ " .addTo(layergroup)\n"
+ " .bindPopup(popup)\n"
+ " .on('click', function (e) {alert(this.getLatLng());})\n"
+ " .on('mouseover', function (e) {this.openPopup();})\n"
+ " .on('mouseout', function (e) {this.closePopup();});\n"
+ " }\n"
+ "\n"
+ " else if (elements[0] == \"S\") // SAR Aircraft\n"
+ " {\n"
+ " var m = L.marker([elements[1], elements[2]], {icon: sarIcon})\n"
+ " .addTo(layergroup)\n"
+ " .bindPopup(elements[3])\n"
+ " .on('click', function (e) {alert(this.getLatLng());})\n"
+ " .on('mouseover', function (e) {this.openPopup();})\n"
+ " .on('mouseout', function (e) {this.closePopup();});\n"
+ " }\n"
+ " \n"
+ " else if (elements[0] == \"P\")\n"
+ " {\n"
+ "var dist = homePoint.distanceTo([elements[1], elements[2]]) / 1609.34;\n"
+ "var popup = elements[3] + '
Distance ' + dist.toFixed(0) + ' Miles'; var icon;\n"
+ " \n"
+ " if (elements[7] < 120)\n"
+ " \ticon = greenplaneIcon;\n"
+ " else\n"
+ " \ticon = planeIcon;\n"
+ "\n"
+ " var m = L.marker([elements[1], elements[2]], {rotationAngle: elements[5], icon: icon})\n"
+ " .addTo(layergroup)\n"
+ " .bindPopup(popup)\n"
+ " .on('mouseover', function (e) {this.openPopup();})\n"
+ " .on('mouseout', function (e) {this.closePopup();});\n"
+ " }\n"
+ " \n"
+ " else if (elements[0] == \"T\")\n"
+ " {\n"
+ " var points = [];\n"
+ " var point;\n"
+ " var n = 1;\n"
+ " var l = elements.length;\n"
+ " \n"
+ " while (n < l)\n"
+ " {\n"
+ " \tpoint = L.latLng(elements[n], elements[n + 1]);\n"
+ " \tpoints.push(point);\n"
+ " \tn += 2;\n"
+ " }\n"
+ " points.pop();\t// null entry on end\n"
+ " \n"
+ " L.polyline(points, {color: 'black'}).addTo(layergroup);\n"
+ " }\n"
+ " }\n"
+ "\n"
+ "}\n"
+ "function resize()\n"
+ "{}\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ "\n"
+ " \n"
+ "\n"
+ "