<html>
<head>
<title>Earth Geography Map Helper Clickaround and Scroll Around - RJM Programming - Thanks to https://www.naturalearthdata.com/downloads/50m-raster-data/50m-cross-blend-hypso/ and https://maps.google.com</title>
<meta id="myviewport" name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.1, maximum-scale=8, user-scalable=yes" >
<style>
* { margin: 0 0 0 0; padding: 0 0 0 0; }

.custom-alert {
display: inline-block;
visibility: visible;
background-color: rgba(102,102,102,0.8);
color: #fff;
text-align: enter;
margin: 5% auto;
padding: 12px 28px;
}

</style>
<script type=text/javascript>
var tenthousand=10000;
var pos3=0.0, pos4=0.0;
var toplat=90.0, toplong=-180.0;
var bottomlat=-90.0, bottomlong=180.0;
var width=0.0, height=0.0;
var thislat=0.0, thislong=0.0;
var rect=null;
var subout='';
var geis=null, gmis=null;
var retval=null;
var redo=false;
var toastform="<input type=checkbox id=gm checked>Google Maps</input><br><input type=checkbox id=ge checked>Google Earth</input><br><input type=checkbox id=mc checked>Google Map Chart</input><br><input type=checkbox id=gc checked>Google Geo Chart</input><br><br><br><input type=text id=mysearch placeholder=Search... title=Search value='' style='padding: 5 5 5 5;background-color:lightpink;width:80%;'></input><br><br><input type=button id=bcancel value=Cancel onclick='tenthousand=0; hideIt();' style='padding: 5 5 5 5;background-color:yellow;'></input> <input style='padding: 5 5 5 5;background-color:lightgreen;' onclick='retval=dostuff(); setTimeout(lookback, 2000);' id=bok value=OK type=button></input><br><br><iframe id=ifmc title=\"//www.rjmprogramming.com.au/PHP/Map/map.php?title=Places&onclick=y&label=['Lat',&value='Lon','Name']&data=,[0,0,~Place~]\" src=\"//www.rjmprogramming.com.au/PHP/Map/map.php?title=Places&onclick=y&label=['Lat',&value='Lon','Name']&data=,[0,0,~Place~]\" style=width:95%;height:600px;display:none;opacity:1.0;></iframe><br><iframe id=ifgc title=\"//www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php#?title=Greenwich%20London%20Places&aregexographicals=y&aregeographicals=HTTP.From%2Chttp.To%2Chttp.Greenwich&peninfo=51.4769|-0.0005|127968_From,51.4769|-0.0005|128205_To,51.4769|-0.0005|Greenwich&width=834&height=520&country=Places&popularity=&data=%20[51.4769|-0.0005|~From~,2]%20,%20[51.4769|-0.0005|~To~,2]%20,%20[51.4769|-0.0005|~Greenwich~,2]\" src=\"//www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=Greenwich%20London%20Places&aregexographicals=y&aregeographicals=HTTP.From%2Chttp.To%2Chttp.Greenwich&peninfo=51.4769|-0.0005|127968_From,51.4769|-0.0005|128205_To,51.4769|-0.0005|Greenwich&width=834&height=520&country=Places&popularity=&data=%20[51.4769|-0.0005|~From~,2]%20,%20[51.4769|-0.0005|~To~,2]%20,%20[51.4769|-0.0005|~Greenwich~,2]\" style=width:95%;height:600px;display:none;opacity:1.0;></iframe>";

const confirm = (cblurb) => {
if (cblurb == cblurb) {
if (toastform != '') {
document.getElementById('custom-alert-1').style.width='40%';
document.getElementById('custom-alert-1').innerHTML=cblurb + "<br><br>" + toastform;
toastform='';
} else {
document.getElementById('custom-alert-1').innerHTML=document.getElementById('custom-alert-1').innerHTML.replace(document.getElementById('custom-alert-1').innerHTML.split('<br')[0], cblurb);
}
document.getElementById('custom-alert-1').style.visibility='visible';
document.getElementById('custom-alert-1').style.display='block';
document.getElementById('mysearch').focus();
return false;
}
return window.confirm(cblurb);
};

function mys(inu) {
if (document.getElementById('mysearch')) {
if (document.getElementById('mysearch').value.trim() != '') {
var newinu=inu.replace('maps.google.com/?', 'google.com/maps/place/' + encodeURIComponent(document.getElementById('mysearch').value.trim()) + '#').replace('@', 'search/' + encodeURIComponent(document.getElementById('mysearch').value.trim()) + '#');
document.getElementById('ifplacegeo').src=document.getElementById('ifplacegeo').src.split('#')[0].split('?')[0] + '?placegeo=' + encodeURIComponent(document.getElementById('mysearch').value.trim());
document.getElementById('mysearch').value='';
//alert(newinu.split('#')[0]);
return newinu.split('#')[0];
}
}
return inu;
}

function lookback() {
//if (retval) {
// alert(retval.document.title);
//}
}

function dostuff() {
var gmok=true, geok=true, mcok=true, gcok=true;
subout='';
redo=false;
//alert('https://www.google.com/maps/@' + ('+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + (',+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + ',15z');
if (document.getElementById('gm')) { if (!document.getElementById('gm').checked) { gmok=false; } }
if (document.getElementById('ge')) { if (!document.getElementById('ge').checked) { geok=false; } }
if (document.getElementById('mc')) { if (!document.getElementById('mc').checked) { mcok=false; } }
if (document.getElementById('gc')) { if (!document.getElementById('gc').checked) { gcok=false; } }
if (gmok || geok || mcok || gcok) {
tenthousand=-20000;
setTimeout(hideIt, eval(-tenthousand));
}

if (mcok) {
if (('' + document.getElementById('mysearch').value).replace('null','').trim() != '') {
document.getElementById('ifmc').src=document.getElementById('ifmc').title.replace('=Places','=' + encodeURIComponent(document.getElementById('mysearch').value)).replace('[0,0,~Place~]', '[' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + ',' + eval(eval((pos3 / width) * 360.0) + toplong) + ',~' + encodeURIComponent(document.getElementById('mysearch').value) + '~]');
subout='' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + '|' + eval(eval((pos3 / width) * 360.0) + toplong);
//alert('' + document.getElementById('mysearch').value);
} else {
document.getElementById('ifmc').src=document.getElementById('ifmc').title.replace('[0,0,~Place~]', '[' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + ',' + eval(eval((pos3 / width) * 360.0) + toplong) + ',~Place~]');
//alert('do');
}
document.getElementById('ifmc').style.display='block';
//alert(document.getElementById('ifmc').title.replace('[0,0,~Place~]', '[' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + ',' + eval(eval((pos3 / width) * 360.0) + toplong) + ',~Place~]'));
tenthousand=-60000;
document.getElementById('custom-alert-1').style.display='none';
document.getElementById('custom-alert-1').style.visibility='hidden';
redo=true;
} else {
document.getElementById('ifmc').style.display='none';
}
if (gcok) {
document.getElementById('ifgc').style.display='block';
tenthousand=-60000;
document.getElementById('custom-alert-1').style.display='none';
document.getElementById('custom-alert-1').style.visibility='hidden';
redo=true;
if (document.getElementById('mysearch')) {
if (document.getElementById('mysearch').value.trim() != '') {
subout='' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + '|' + eval(eval((pos3 / width) * 360.0) + toplong);
document.getElementById('ifgc').src='//www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=' + encodeURIComponent(document.getElementById('mysearch').value) + '&aregexographicals=y&aregeographicals=HTTP.' + encodeURIComponent(document.getElementById('mysearch').value.replace(/\ /g,'_')) + '&peninfo=' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + '|' + eval(eval((pos3 / width) * 360.0) + toplong) + '|127968_' + encodeURIComponent(document.getElementById('mysearch').value) + '&width=834&height=520&country=Places&popularity=&data=%20[' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + '|' + eval(eval((pos3 / width) * 360.0) + toplong) + '|~Place~,2]';
//document.getElementById('ifgc').src='//www.rjmprogramming.com.au/PHP/GeoChart/geo_chart.php?title=' + encodeURIComponent(document.getElementById('mysearch').value) + '&aregexographicals=y&aregeographicals=y&penXinfo=' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + '|' + eval(eval((pos3 / width) * 360.0) + toplong) + '|127968_' + encodeURIComponent(document.getElementById('mysearch').value) + '&width=834&height=520&country=Places&popularity=&data=%20[' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + '|' + eval(eval((pos3 / width) * 360.0) + toplong) + '|~' + encodeURIComponent(document.getElementById('mysearch').value) + '~,2]';
} else {
document.getElementById('ifgc').src=document.getElementById('ifgc').src.split('?')[0] + '?title=Places&aregexographicals=y&aregeographicals=&width=834&height=520&country=Places&popularity=&data=%20[' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + '|' + eval(eval((pos3 / width) * 360.0) + toplong) + '|~Place~,2]';
}
}
} else {
document.getElementById('ifgc').style.display='none';
}

if (redo && subout == '') {
redo=false;
tenthousand=0;
document.getElementById('custom-alert-1').style.visibility='visible';
document.getElementById('custom-alert-1').style.display='block';
//alert(675);
}
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//window.open('https://www.google.com/maps/@' + ('+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + ',6z', '_blank', 'top=100,left=0,height=700,width=700');
if (gmok) { if (gmis) { if (!gmis.closed) { gmis.close(); } gmis=null; } gmis=window.open(mys('https://maps.google.com/?q=' + ('+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + '&ll=' + ('+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + '&z=6'), '_blank', 'top=100,left=0,height=700,width=700'); }
if (geok) { if (geis) { if (!geis.closed) { geis.close(); } geis=null; } geis=window.open(mys('https://earth.google.com/web/@' + ('+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + ',328.51120179a,63169669.71505167d,1y,0h,0t,0r'), '_blank', 'top=150,left=' + eval(-700 + screen.width) + ',height=700,width=700'); return geis; }
} else {
//window.open('https://www.google.com/maps/@' + ('+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + ',7z', '_blank', 'top=100,left=0,height=700,width=700');
if (gmok) { if (gmis) { if (!gmis.closed) { gmis.close(); } gmis=null; } gmis=window.open(mys('https://maps.google.com/?q=' + ('+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + '&ll=' + ('+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + '&z=7'), '_blank', 'top=100,left=0,height=700,width=700'); }
if (geok) { if (geis) { if (!geis.closed) { geis.close(); } geis=null; } geis=window.open(mys('https://earth.google.com/web/@' + ('+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + ',328.51120179a,63169669.71505167d,1y,0h,0t,0r'), '_blank', 'top=150,left=' + eval(-700 + screen.width) + ',height=700,width=700'); return geis; }
}
//alert('redo=' + redo + ' and subout=' + subout);
return null;
}

function linkize(intl) {
var urlis='';
var huhis=intl.split('http');
var outtl=intl;
if (huhis.length > 1) {
for (var itr=1; itr<huhis.length; itr++) {
urlis='http' + huhis[itr].split(' ')[0];
outtl=outtl.replace(' ' + urlis, ' ' + '<a target=_blank title="' + urlis + '" href="' + urlis + '">' + urlis + '</a>');
}
}
return outtl;
}

function onl() {
width=document.getElementById('world').width;
height=document.getElementById('world').height;
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
//height=Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0);
//width=Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
//width=eval(('' + document.getElementById('world').style.width).replace('px',''));
//height=eval(('' + document.getElementById('world').style.height).replace('px',''));
rect=document.getElementById('world').getBoundingClientRect();
width=rect.width;
height=rect.height;
}
window.scrollTo(eval(width / 2.0), eval(height / 4.0));
document.getElementById('custom-alert-1').style.left='' + eval(eval(screen.width * 0.2) + eval(width / 2.0)) + 'px';
document.getElementById('custom-alert-1').style.top='' + eval(eval(screen.height * 0.2) + eval(height / 4.0)) + 'px';
document.getElementById('custom-alert-1').innerHTML=linkize("World Scroll and Click Around ...<br><br>" + document.getElementById('world').title + " and https://maps.google.com and https://earth.google.com/web/");
//document.body.innerHTML+="<div id='custom-alert-1' class='custom-alert' style='z-index:89;position:fixed; left:" + eval(width / 2.0) + "px;top:" + eval(height / 4.0) + "px; visibility: visible;display: inline;opacity:0.5;'>World Scroll and Click Around ...<br><br>" + document.getElementById('world').title + " and https://maps.google.com and https://earth.google.com/web/" + "</div>";
tenthousand=-10000;
setTimeout(hideIt, eval(-tenthousand));
}

function hideIt() {
if (eval('' + tenthousand) < 0) { setTimeout(hideIt, eval(-tenthousand)); return ''; }
if (window.top) {
if (top.document.getElementById('custom-alert-1')) {
top.document.getElementById('custom-alert-1').style.display='none';
top.document.getElementById('custom-alert-1').style.visibility='hidden';
}
} else {
if (document.getElementById('custom-alert-1')) {
document.getElementById('custom-alert-1').style.display='none';
document.getElementById('custom-alert-1').style.visibility='hidden';
}
}
}

function xycursorlook(e) {
e = e || window.event;
e.preventDefault();

rect=document.getElementById('world').getBoundingClientRect();
width=rect.width;
height=rect.height;

if (e.touches) {
if (e.touches[0].pageX) {
pos3 = e.touches[0].pageX;
pos4 = e.touches[0].pageY;
pos4-=eval('' + rect.top);
pos3-=eval('' + rect.left);
} else if (e.touches[0].screenX) {
pos3 = e.touches[0].screenX;
pos4 = e.touches[0].screenY;
} else {
pos3 = e.touches[0].clientX;
pos4 = e.touches[0].clientY;
pos4-=eval('' + rect.top);
pos3-=eval('' + rect.left);
}
//alert('height:' + height + ' ' + window.scrollY + ' top:' + rect.y + ' vs ' + rect.top + ' ' + pos4 + 'vs' + e.touches[0].clientY + 'vs' + e.touches[0].screenY + ' left:' + rect.x + ' vs ' + rect.left + ' ' + pos3 + ' You are at (longitude: ' + eval(eval((pos3 / width) * 360.0) + toplong) + ' degrees, latitude: ' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + ' degrees)');
//console.log('pos3=' + pos3 + ',pos4=' + pos4);
} else if (e.clientX || e.clientY) {
pos3 = e.clientX;
pos4 = e.clientY;
pos4-=eval('' + rect.top);
pos3-=eval('' + rect.left);
//alert('HeighT:' + height + ' ' + window.scrollY + ' top:' + rect.y + ' vs ' + rect.top + ' ' + pos4 + 'vs' + e.screenY + ' left:' + rect.x + ' vs ' + rect.left + ' ' + pos3 + ' You are at (longitude: ' + eval(eval((pos3 / width) * 360.0) + toplong) + ' degrees, latitude: ' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + ' degrees)');
} else if (e.screenX || e.screenY) {
pos3 = e.screenX;
pos4 = e.screenY;
//alert('Height:' + height + ' ' + window.scrollY + ' top:' + rect.y + ' vs ' + rect.top + ' ' + pos4 + 'vs' + e.screenY + ' left:' + rect.x + ' vs ' + rect.left + ' ' + pos3 + ' You are at (longitude: ' + eval(eval((pos3 / width) * 360.0) + toplong) + ' degrees, latitude: ' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + ' degrees)');
} else {
pos3 = e.pageX;
pos4 = e.pageY;
pos4-=eval('' + rect.top);
pos3-=eval('' + rect.left);
}
//console.log(rect);
//pos4-=eval('' + rect.top);
//pos3-=eval('' + rect.left);

document.getElementById('custom-alert-1').style.left='' + pos3 + 'px';
document.getElementById('custom-alert-1').style.top='' + pos4 + 'px';

var huh=confirm('You are near (longitude: ' + eval(eval((pos3 / width) * 360.0) + toplong) + ' degrees, latitude: ' + eval(toplat - eval(eval((pos4 / height) * 180.0))) + ' degrees). Want more information?');
if (huh) {
dostuff();
}
}

function ttit() {
if (eval('' + tenthousand) < 0) {
tenthousand+=1000;
}
}

function checkit(iois) {
var huhgeo='';
if (document.getElementById('placegeo').value != '') {
huhgeo=document.getElementById('placegeo').value;
document.getElementById('placegeo').value='';
//alert(huhgeo);
//pos3=0;
//pos4=0;
placeit(huhgeo);
//dostuff();
} else if (redo) {
tenthousand=-60000;
redo=false;
document.getElementById('custom-alert-1').style.visibility='visible';
document.getElementById('custom-alert-1').style.display='block';
}
}

function placeit(hg) {
var gmok=true, geok=true;
var mcok=true, gcok=true;
//alert('https://www.google.com/maps/@' + ('+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + (',+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + ',15z');
if (document.getElementById('mc')) { if (!document.getElementById('mc').checked) { mcok=false; } }
if (document.getElementById('gc')) { if (!document.getElementById('gc').checked) { gcok=false; } }
var latis=0.0, longis=0.0;
if (document.getElementById('redblob')) {
if (eval('' + hg.split(',').length) == 2) {
latis=eval('' + hg.split(',')[0]);
longis=eval('' + hg.split(',')[1]);

if (gcok) {
document.getElementById('custom-alert-1').style.display='none';
document.getElementById('custom-alert-1').style.visibility='hidden';
redo=true;
//if (document.getElementById('ifgc').src.indexOf(subout) == -1) {
// alert('subout=' + subout + ' src=' + document.getElementById('ifgc').src);
//}
document.getElementById('ifgc').src=document.getElementById('ifgc').src.replace(subout, '' + latis + '|' + longis).replace(subout, '' + latis + '|' + longis).replace(subout, '' + latis + '|' + longis);
//alert(' src=' + document.getElementById('ifgc').src);
}
if (mcok) {
document.getElementById('custom-alert-1').style.display='none';
document.getElementById('custom-alert-1').style.visibility='hidden';
redo=true;
document.getElementById('ifmc').src=document.getElementById('ifmc').src.replace(subout.replace('|',','), '' + latis + ',' + longis).replace(subout.replace('|',','), '' + latis + ',' + longis).replace(subout.replace('|',','), '' + latis + ',' + longis);
}

pos4=latis;
pos4-=toplat;
pos4/=180.0;
pos4*=height;
pos4=-pos4;

pos3=longis;
pos3-=toplong;
pos3/=360.0;
pos3*=width;

document.getElementById('redblob').style.left='' + pos3 + 'px';
document.getElementById('redblob').style.top='' + pos4 + 'px';
document.getElementById('redblob').style.display='block';

pos4-=eval(screen.height / 3.0);
pos3-=eval(screen.width / 3.0);

window.scrollTo(eval('' + pos3), eval('' + pos4));
document.getElementById('custom-alert-1').style.left='' + eval('' + pos3) + 'px';
document.getElementById('custom-alert-1').style.top='' + eval('' + pos4) + 'px';
if (redo) {
tenthousand=-60000;
redo=false;
document.getElementById('custom-alert-1').style.visibility='visible';
document.getElementById('custom-alert-1').style.display='block';
}

//alert('https://www.google.com/maps/@' + ('+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + (',+' + eval(toplat - eval(eval((pos4 / height) * 180.0)))).replace('+-','-') + ',15z');
if (document.getElementById('gm')) { if (!document.getElementById('gm').checked) { gmok=false; } }
if (document.getElementById('ge')) { if (!document.getElementById('ge').checked) { geok=false; } }
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (gmok && 1 == 2) { if (gmis) { if (!gmis.closed) { gmis.close(); } gmis=null; } gmis=window.open(('https://maps.google.com/?q=' + ('+' + latis).replace('+-','-') + (',+' + longis).replace('+-','-') + '&ll=' + ('+' + latis).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + '&z=6'), '_blank', 'top=100,left=0,height=700,width=700'); }
if (geok) { if (geis) { if (!geis.closed) { geis.close(); } geis=null; } geis=window.open(('https://earth.google.com/web/@' + ('+' + latis).replace('+-','-') + (',+' + longis).replace('+-','-') + ',328.51120179a,63169669.71505167d,1y,0h,0t,0r'), '_blank', 'top=150,left=' + eval(-700 + screen.width) + ',height=700,width=700'); return geis; }
} else {
if (gmok && 1 == 2) { if (gmis) { if (!gmis.closed) { gmis.close(); } gmis=null; } gmis=window.open(('https://maps.google.com/?q=' + ('+' + latis).replace('+-','-') + (',+' + longis).replace('+-','-') + '&ll=' + ('+' + latis).replace('+-','-') + (',+' + eval(eval((pos3 / width) * 360.0) + toplong)).replace('+-','-') + '&z=7'), '_blank', 'top=100,left=0,height=700,width=700'); }
if (geok) { if (geis) { if (!geis.closed) { geis.close(); } geis=null; } geis=window.open(('https://earth.google.com/web/@' + ('+' + latis).replace('+-','-') + (',+' + longis).replace('+-','-') + ',328.51120179a,63169669.71505167d,1y,0h,0t,0r'), '_blank', 'top=150,left=' + eval(-700 + screen.width) + ',height=700,width=700'); return geis; }
}
}
}
}

setInterval(ttit, 1000);
</script>
</head>
<body onload=onl();>
<script type=text/javascript>
function IsSafari() { // thanks to https://stackoverflow.com/questions/49872111/detect-safari-and-stop-script

// alert('' + /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
// var is_safari = navigator.userAgent.toLowerCase().indexOf('safari/') > -1;
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);

}

if (IsSafari()) {
document.write('<img ontouchdown="xycursorlook(event);" onmousedown="xycursorlook(event);" title="Scroll and click around. Thanks to https://www.naturalearthdata.com/downloads/50m-raster-data/50m-cross-blend-hypso/" data-width=862 data-height=620 id="world" src="HYP_50M_SR_W.tif" data-src="world.jpg" style="position: absolute; top:0; left:0; display: block; margin:0 0 0 0;padding:0 0 0 0;" />');
} else {
document.write('<img ontouchdown="xycursorlook(event);" onmousedown="xycursorlook(event);" title="Scroll and click around. Thanks to https://www.naturalearthdata.com/downloads/50m-raster-data/50m-cross-blend-hypso/" data-width=862 data-height=620 id="world" src="HYP_50M_SR_W.jpg" data-src="world.jpg" style="position: absolute; top:0; left:0; display: block; margin:0 0 0 0;padding:0 0 0 0;" />');
}
width=document.getElementById('world').width;
height=document.getElementById('world').height;

</script>
<div onclick="tenthousand=-20000;" id='custom-alert-1' class='custom-alert' style='z-index:89;position:absolute; left:0px;top:0px; visibility: visible;display: inline;opacity:0.7;'></div>
<input id=placegeo type=hidden value=''></input><iframe onload='checkit(this);' style='display:none;' id=ifplacegeo src='/PHP/fgc/index.php'></iframe>
<div id='redblob' style='display:none;z-index:123;position:absolute;left:-200px;top:-200px;opacity:0.5;'>🔴</div>
</body>
</html>