<!--
var browser_type=0;var La=0;var browser_os=0;var Lb=1;var units;var units_temp;var coords;function deb(s){if(!Lb)return;if(browser_type=='mozilla')dump(s+"\n");if(browser_os=='iphone')console.log(s);}function Lc(){
if(!document.referrer)return 'dir';var s=document.referrer.split('://');if(s.length<2)return 'ext';s=s[1].split('/');if(s.length<1)return 'ext';if(s[0].slice(-cookie_domain.length)!=cookie_domain)return 'ext';s=
window.location.toString();s=s.split('?');if(s.length<2)return 'u';s=s[1].split("&");for(i=0;i<s.length;i++){var Ld=s[i].split('=');if(Ld.length>1&&Ld[0]=='_s')return Ld[1];}return 'u';}function ga_timing(Lf){if
(isUndefined(_ga_start))return;var Lj=new Date();var Lk=Lj.getTime()-_ga_start.getTime();if(Lk>20000)return;deb("load time "+Lf+": "+Lk);try{_gaq.push(['_trackEvent','LoadT',Lf,Lf,Lk]);}catch(Ll){}}function Yge(Lm,Ln,
Lo,Lp){if(!_gaq)return;if(isUndefined(Lo)){Lo=Lc();}try{_gaq.push(['_trackEvent',Lm,Ln,Lo,Lp]);}catch(Ll){}}function lz(i){if(i<10)return '0'+i;return i;}var Lq='local';function tzset(Lr){Lq=Lr;}function
timestr(i){var Lt=new Date(i*1000);if(Lq=='utc'){return Lt.getUTCFullYear()+'-'+lz(Lt.getUTCMonth()+1)+'-'+lz(Lt.getUTCDate())+' '+lz(Lt.getUTCHours())+':'+lz(Lt.getUTCMinutes())+':'+lz(Lt.getUTCSeconds())+'z';}else
{return Lt.getFullYear()+'-'+lz(Lt.getMonth()+1)+'-'+lz(Lt.getDate())+' '+lz(Lt.getHours())+':'+lz(Lt.getMinutes())+':'+lz(Lt.getSeconds());}}function dur_str(i){var Lk;var s='';var Lu=0;if(i>86400){Lk=
Math.floor(i/86400);i-=Lk*86400;s+=Lk+'d';Lu++;}if(i>3600){Lk=Math.floor(i/3600);i-=Lk*3600;s+=Lk+'h';Lu++;}if(Lu>1)return s;if(i>60){Lk=Math.floor(i/60);i-=Lk*60;s+=Lk+'m';Lu++;}if(Lu)
return s;return i+'s';}function el(i){return document.getElementById(i);}function upd_el(id,s,append){var e=el(id);if(!e)return;if(append)e.innerHTML+=s;else e.innerHTML=s;}function el_val(id,s){var e=el(id);if(!e)return;
e.value=s;}function del_el(id){var e=el(id);if(!e)return;e.parentNode.removeChild(e);}function focus(s){var e=el(s);if(e)e.focus();}function sprite_set(Lv,id,Lz){var i=el(id);if(i)i.style.backgroundPosition=Lv;if
(Lz)sprite_set(Lv,Lz);}function Fs(s){var e=el('js_status');if(e)e.innerHTML=s;}var cookie_domain;function cookie_set(name,value,Laa){if(Laa){var Lab=new Date();Lab.setTime(Lab.getTime()+(Laa*24*60*60*1000));var Lac=
"; expires="+Lab.toGMTString();}else{var Lac="";}document.cookie=name+"="+escape(value)+Lac+"; path=/"+((cookie_domain)?'; domain='+cookie_domain:'');}function cookie_get(Lad){var Lae=Lad+"=";var Laf=
document.cookie.split(';');for(var i=0;i<Laf.length;i++){var Lu=Laf[i];while(Lu.charAt(0)==' ')Lu=Lu.substring(1,Lu.length);if(Lu.indexOf(Lae)==0)return Lu.substring(Lae.length,Lu.length);}return null;}function
distance_str(Lag){if(units=='imperial'){var Lah=Lag*0.621371192;if(Lah>=0.5)return Lah.toFixed(1)+' miles';Lah=Lag*1093.6133;return Lah.toFixed(1)+' yards';}else if(units=='nautical'){var Lah=Lag*0.539956803;
return Lah.toFixed(1)+' NM';}return Lag.toFixed(1)+' km';}function altitude_str(Lah){if(units=='imperial'||units=='nautical'){Lah*=3.2808399;return Lah.toFixed(0)+' ft';}return Lah.toFixed(0)+' m';}function
speed_str(Lai){if(units=='imperial'){Lai*=0.621371192;return Lai.toFixed(0)+' MPH';}else if(units=='nautical'){Lai*=0.539956803;return Lai.toFixed(0)+' kn';}return Lai.toFixed(0)+' km/h';}function windspeed_str(Laj){if
(units=='imperial'){Laj*=2.23693629;return Laj.toFixed(1)+' MPH';}else if(units=='nautical'){Laj*=1.94384449;return Laj.toFixed(1)+' kn';}return Laj.toFixed(1)+' m/s';}function rainfall_str(Lak){if(units=='imperial'){
Lak*=0.0393700787;return Lak.toFixed(1)+' inches';}return Lak.toFixed(1)+' mm';}function temperature_str(Lu){if(units_temp=='F'){Lu=(Lu*1.8)+32;return Lu.toFixed(1)+'°F';}return Lu.toFixed(1)+'°C';}function Fecc(e)
{var Lal=0;var Lam=0;if(e.pageX||e.pageY){Lal=e.pageX;Lam=e.pageY;}else if(e.clientX||e.clientY){Lal=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;Lam=e.clientY+document.body.scrollTop+
document.documentElement.scrollTop;}return[Lal,Lam];}var Lan;function ttip(e,Lao,str){var Lap=Fecc(e);Lan=Lao;event_attach(Lao,'mouseout',Laq);event_attach(Lao,'mousedown',Laq);setTimeout(function(){Lar(Lao,str,Lap);},
300);}function Lar(Lao,str,Lap){if(Lan==Lao)Las(Lao,str,Lap);}function Las(Lao,str,Lap){var element=el('ttip');if(!element)deb("no ttip element found!");var Lat=200;if(Lap[0]>Lat+40)Lap[0]-=Lat+40;else Lap[0]+=
40;element.left=Lap[0];element.top=Lap[1];element.style.left=Lap[0]+'px';element.style.top=Lap[1]+'px';element.innerHTML="<span>"+str+"</span>";element.style.display='block';}function Laq(){var element=el('ttip');
element.style.display='none';Lan=null;event_detach(this,'mouseout',Laq);}function Lau(Ld,Lav){return Math.round(Ld*1000000)==Math.round(Lav*1000000);}function point(x,y){this.x=x;this.y=y;}point.prototype.equals=
function(Law){if(!Law)return false;return this.x==Law.x&&this.y==Law.y;};point.prototype.distance=function(Law){var Ld=this.x-Law.x;var Lav=this.y-Law.y;return Math.sqrt(Ld*Ld+Lav*Lav)};point.prototype.close_enough
=function(Law){if(!Law)return false;return Lau(this.x,Law.x)&&Lau(this.y,Law.y)};point.prototype.str=function(){return "("+this.x+","+this.y+")";};function size(w,h){this.w=w;this.h=h;}size.prototype.equals=
function(Law){if(!Law)return false;return this.w==Law.w&&this.h==Law.h;};size.prototype.close_enough=function(Law){if(!Law)return false;return Lau(this.w,Law.w)&&Lau(this.h,Law.h);};function event_attach(Lax,Lay,Laz){if
(browser_type=='safari'&&Lay=='dblclick'){Lax['on'+Lay]=Laz;return;}if(Lax.addEventListener)Lax.addEventListener(Lay,Laz,false);else if(Lax.attachEvent)Lax.attachEvent('on'+Lay,Laz);else Lax['on'+Lay]=Laz;}function
event_detach(Lax,Lay,Laz){if(Lax.removeEventListener)Lax.removeEventListener(Lay,Laz,false);else if(Lax.detachEvent)Lax.detachEvent('on'+Lay,Laz);else Lax['on'+Lay]=null;}function Lba(element,Lbb){try{element.style.cursor=
Lbb;}catch(e){if(Lbb=='pointer')Lba(element,'hand');}}function Lbc(Lbd){this.Lbd=Lbd;this.Lbe=0;}Lbc.prototype.clear=function(){this.Lbe=0;};Lbc.prototype.Lbf=function(){this.Lbe++;return(Math.sin((this.Lbe/
this.Lbd-0.5)*Math.PI)+1)/2;};Lbc.prototype.Lbg=function(){return this.Lbe<this.Lbd;};function pantool(id,Lbh,handle,x,y,Lbi){this.id=id;this.src=Lbh;this.handle=handle;this.Lbi=Lbi;this.disabled=false;this.Lbj
=false;this.Lbk=new point(0,0);this.Lbl=new point(0,0);this.src.style.position='absolute';this.move(x,y);this.mouseDownHandler=this.event_handler('onMouseDown');this.mouseMoveHandler=this.event_handler('onMouseMove');
this.mouseUpHandler=this.event_handler('onMouseUp');if(browser_type=='mozilla')event_attach(window,'mouseout',this.event_handler('onWindowMouseOut'));this.Lbm=this.handle.setCapture?this.handle:window;event_attach(this.handle,
'mousedown',this.mouseDownHandler);event_attach(this.Lbm,'mouseup',this.mouseUpHandler);}pantool.prototype.event_handler=function(Lay){var hand=this;hand=hand;return function(e){if(!e)e=window.event;if(e&&!e.target)e.target
=e.srcElement;hand[Lay](e);}};var Lbn=0;pantool.prototype.Lbo=function(Lbp,Lbq){var Lbr='tout_id_'+Lbn;Lbn++;eval(Lbr+' = this;');var Lbs=Lbp.replace(/\\/g,'\\\\').replace(/\u0022/g,'\\"');return window.setTimeout(Lbr+
".to_se(\u0022"+Lbs+"\u0022);"+Lbr+" = null;",Lbq);};pantool.prototype.to_se=function(Lbt){eval(Lbt);};pantool.prototype.move=function(x,y){if(this.left!=x||this.top!=y){this.left=x;this.top=y;this.src.style.left
=this.left+'px';this.src.style.top=this.top+'px';if(this.Lbu)this.Lbu();}};pantool.prototype.pan=function(x,y){var distance=Math.sqrt(x*x+y*y);if(distance==0)return;var Lbd=Math.max(5,Math.floor(distance/20));
this.Lbv=new Lbc(Lbd);this.Lbv.clear();if(!this.Lbw)this.Lbw=new size(0,0);this.Lbw.w=x;this.Lbw.h=y;this.Lbx=new point(this.left,this.top);this.pan_do();};pantool.prototype.pan_do=function(){var Lby=this.Lbv.Lbf();
this.move(this.Lbw.w*Lby+this.Lbx.x,this.Lbw.h*Lby+this.Lbx.y);if(this.Lbv.Lbg()){this.Lbz=this.Lbo("this.pan_do()",5);}else{this.Lbz=null;}};pantool.prototype.pan_cancel=function(){if(this.Lbz)clearTimeout(this.Lbz);
};pantool.prototype.onMouseDown=function(e){if(e.Lca)return;if(!(e.button==0||e.button==1)){bubblepop(e);return false;}this.Lbj=(this.disabled)?false:true;this.Lcb=(new Date()).getTime();this.Lbl.x=this.Lbk.x=
e.screenX;this.Lbl.y=this.Lbk.y=e.screenY;if(!this.Lbj)return;event_attach(this.Lbm,'mousemove',this.mouseMoveHandler);if(this.handle.setCapture)this.handle.setCapture();if(this.Lcc)this.Lcc(e);this.Lcd=this.handle.style.cursor;
Lba(this.handle,'move');bubblepop(e);};pantool.prototype.onMouseMove=function(e){if(!this.Lbj)return;if(browser_os=='x11'){if(e==null)return;if(this.drag_tmp_waiting){this.Lce=new Object();this.Lce.screenX=e.screenX;
this.Lce.screenY=e.screenY;return;}this.Lbo('this.drag_tmp_waiting = false; this.onMouseMove(this.drag_saved_move)',30);this.drag_tmp_waiting=true;this.Lce=null;}var Lcf=1;if(browser_type=='safari'&&La==1)Lcf=-1;var x=
this.left+(e.screenX-this.Lbk.x);var y=this.top+(e.screenY-this.Lbk.y)*Lcf;var Lcg=0;var Lch=0;if(this.Lbi){var i=x;if(x<this.Lbi.Lci){i=this.Lbi.Lci;}else{var Lcj=this.Lbi.Lcj-this.src.Lck;if(x>Lcj)i=
Lcj;}Lcg=i-x;x=i;i=y;if(y<this.Lbi.Lcl){i=this.Lbi.Lcl;}else{var Lcm=this.Lbi.Lcm-this.src.Lcn;if(y>Lcm)i=Lcm;}Lch=i-y;y=i;}this.move(x,y);this.Lbk.x=e.screenX+Lcg;this.Lbk.y=e.screenY+Lch;if
(this.Lco){this.Lco(e);}};pantool.prototype.onMouseUp=function(e){if(this.Lbj){this.Lbj=false;event_detach(this.Lbm,'mousemove',this.mouseMoveHandler);Lba(this.handle,this.Lcd);if(document.releaseCapture)
document.releaseCapture();if(this.Lcp)this.Lcp(e);}if(this.onclick){var Lcq=(new Date()).getTime();if(Lcq-this.Lcb<=500&&(Math.abs(this.Lbl.x-e.screenX)<=2&&Math.abs(this.Lbl.y-e.screenY)<=2))this.onclick(e);}};
pantool.prototype.onWindowMouseOut=function(e){if(this.Lbj&&!e.relatedTarget)this.onMouseUp(e);};pantool.prototype.disable=function(){this.disabled=true;};pantool.prototype.enable=function(){this.disabled=false;};var dec2hex
=[];var Lcr="0123456789abcdef";for(var i=0;i<256;i++)dec2hex[i]=Lcr.substr(i>>4,1)+Lcr.substr(i&15,1);function Lcs(){var Lct=navigator.userAgent.toLowerCase();if(Lct.indexOf('opera')!=-1){browser_type='opera';}
else if(Lct.indexOf('msie')!=-1&&document.all){browser_type='msie';if(Lct.indexOf('msie 5'))La=5;}else if(Lct.indexOf('safari')!=-1){browser_type='safari';if(Lct.indexOf('safari/125')!=-1)La=1;}else if
(Lct.indexOf('khtml')!=-1){browser_type='khtml';}else if(Lct.indexOf('mozilla')!=-1){browser_type='mozilla';}if(Lct.indexOf('x11;')!=-1)browser_os='x11';else if(Lct.indexOf('iphone')!=-1)browser_os='iphone';}Lcs();
function popup_hide(Lcu){el(Lcu+'_cont').style.display='none';}var Lcv=new Object();function popup_show(Lcu){el(Lcu+'_cont').style.display='block';if(Lcv[Lcu].left<0||Lcv[Lcu].top<0)Lcv[Lcu].pan(70-Lcv[Lcu].left,40-
Lcv[Lcu].top);}function popup_init(Lcu){var Lu=el(Lcu+'_cont');var handle=el(Lcu+'_handle');if(Lu&&handle){Lcv[Lcu]=new pantool(Lcu,Lu,handle,-500,-500);Lcv[Lcu].enable();}else{deb("failed to init popup "+Lcu);}}
function setup_xmlhttpreq(){if(window.XMLHttpRequest){return new XMLHttpRequest();}else if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP");}else{alert('Your web browser does not support XMLHttpRequest.');return;}}
function download_url(url,Lcw){var Lcx=setup_xmlhttpreq();Lcx.open('GET',url);var Lcy=this;Lcx.onreadystatechange=function(){if(Lcx.readyState==4){Lcw(Lcx.responseText,Lcx.status);}};Lcx.send(null);}function xmlParse(str){
if(typeof ActiveXObject!='undefined'&&typeof GetObject!='undefined'){var Lcz=new ActiveXObject('Microsoft.XMLDOM');Lcz.loadXML(str);return Lcz;}if(typeof DOMParser!='undefined'){return(new DOMParser()).parseFromString(str,
'text/xml');}return createElement('div',null);}function execute_xml(data,Lda){if(!Lda)Lda=xmlParse(data);var Ldb=Lda.documentElement.getElementsByTagName('js');for(var Ldc=0;Ldc<Ldb.length;Ldc++){if(Ldb[Ldc].tagName=="js")
{eval(Ldb[Ldc].firstChild.data);}}}function div_load(Ldd,Lde,Ldf){el(Ldd).innerHTML='<img style=\'margin: 10px;\' src=\'http://d1dhsh1i77j8ju.cloudfront.net/img/aprs-waiting-animation.gif\' />';var url='/xml2?view='+Lde+'&arg='+el(Ldf).value;download_url(url,function(data,Ldg){el(Ldd).innerHTML=data;
sorttable.init(1);});}function popup_load(Lcu,title,url){popup_hide(Lcu);el(Lcu+'_title').innerHTML=title;download_url(url,function(data,Ldg){el(Lcu+'_content').innerHTML=data;popup_show(Lcu);});}function help_popup(Ldh,
title){popup_load('popup',"Help: "+title,'/xml2?view=help&key='+Ldh);if(analytics)_gaq.push(['_trackPageview','/help/'+Ldh]);}function options_popup(){popup_load('options','Preferences','/xml2?n='+nick+'&options=view');}
function fav_add_view(e){track_menu_show(e,'fav_av','<b>Bookmark current view</b><br />'+'Name: <input name="name" id="fav_av_label" value="" size="40" maxlength="80" />'+
'<input type="button" value="Save" onclick="fav_add_vsave()" />'+'<input type="button" value="Cancel" onclick="track_menu_hide()" />');focus('fav_av_label');}function fav_add_vsave(){
download_url('/xml2?view=fav_vsave&name='+encodeURIComponent(el('fav_av_label').value)+'&data='+encodeURIComponent(current_view_url()),function(data,Ldg){track_menu_hide();});}function Flr(){if(!is_logged_in){
alert("You need to log in to use this feature.");return 1;}return 0;}var Ldi;var Ldj;function symbol_popup(Ldk,Ldl){Ldi=Ldk;Ldj=Ldl;popup_load('options','Select symbol','/xml2?view=symbol_select');}function symbol_selected(Ldm,url){
popup_hide('options');el(Ldi).value=Ldm;el(Ldj).innerHTML='<img src="'+url+'" style="vertical-align:middle" />';}function tabber(Ldn,Ldp){var Ldq=el(Ldn);Ldq.style.display='block';for(i in Ldq.childNodes){if
(isUndefined(Ldq.childNodes[i].id))continue;if(Ldq.childNodes[i].id==Ldn+'_'+Ldp){Ldq.childNodes[i].style.display='block';}else{Ldq.childNodes[i].style.display='none';}}Ldq=el(Ldn+'_');for(i in Ldq.childNodes){if
(isUndefined(Ldq.childNodes[i].id))continue;if(Ldq.childNodes[i].id==Ldn+'__'+Ldp){Ldq.childNodes[i].className='tab_active';}else{Ldq.childNodes[i].className='tab_inactive';}}}function bubblepop(e){if(browser_type=='msie')
{if(window.event)window.event.cancelBubble=true;return;}e.preventDefault();e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();}function isUndefined(Ldr){var Lds;return Ldr===Lds;}var Ldt='';function Ldu(url,
target,Ldv){if(isUndefined(Ldv))Ldv=Ldt;if(isUndefined(target))target='_blank';var Ldw=window.open(url,target,Ldv);Ldw.focus();return Ldw;}function link_popup(src,Ldv){return Ldu(src.getAttribute('href'),
src.getAttribute('target')||'_blank',Ldv);}function confirm_a(text,link){if(confirm(text))top.location=link;}function win_size(){if(window.self&&self.innerHeight){return[self.innerWidth,self.innerHeight];}if
(document.documentElement&&document.documentElement.clientHeight){return[document.documentElement.clientWidth,document.documentElement.clientHeight];}if(document.body&&document.body.clientHeight){return[document.body.clientWidth,
document.body.clientHeight];}return;}function Ldx(){var Ldy=win_size();var size=unescape(cookie_get('size'));var Laf=size.split('x');if(Laf[0]!=Ldy[0]||Laf[1]!=Ldy[1]){size=Ldy[0]+"x"+Ldy[1];cookie_set('size',size,
30);}}Ldx();popup_init('popup');popup_init('options');

// -->

