var baseURL='';function correctPNG(){if(!xIE4Up)return;for(var i=0;i<document.images.length;i++){var aa=document.images[i];var ba=aa.src.toUpperCase();if(ba.substring(ba.length-3,ba.length)=="PNG"){aa.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+aa.src+")";aa.src="http://dem5xqcn61lj8.cloudfront.net/spacer.gif";}}}
function isIE7orUp(){if(xIE4Up&&(window.XMLHttpRequest!=undefined))return true;else return false;}
function selectAllTextInField(ca){ca.focus();ca.select();}
function submitenter(da,e){var ea;if(window.event)ea=window.event.keyCode;else if(e)ea=e.which;else return true;if(ea==13){da.form.submit();return false;}
else return true;}
var popUpWindow=null;function popUp(fa,ga,w,h,ha,ia,ja){popUpWindow=doPopup(popUpWindow,fa,ga,w,h,ha,ia,ja);}
function doPopup(ka,la,ma,w,h,na,oa,pa){if(w==null){w=457;}
if(h==null){h=450;}
var qa;if(na==null)qa="yes";else if(na==true)qa="yes";else qa="no";var ra;if(oa==null)ra="yes";else if(oa==true)ra="no";else ra="yes";var sa;if(pa==null)sa="no";else if(pa==true)sa="yes";else sa="no";var ta;ta='scrollbars='+qa+',menubar=no,resizable='+ra+',status='+sa+',width='+w+',height='+h+',top=30,left=40';if(ka==null){ka=window.open(la,ma,ta);ka.focus();self.name="mainWin";}
else if(ka.closed){ka=window.open(la,ma,ta);ka.focus();self.name="mainWin";}
else{ka.close();ka=window.open(la,ma,ta);ka.focus();}
return ka;}
function setDefaultDates(ua,va,wa,xa){var ya=ua.options[ua.selectedIndex].value;var za=new Date();za=new Date(za.getFullYear(),za.getMonth(),za.getDate(),0,0,0);var Aa=0;var Ba=false;var Ca=1;for(i=(va*-1);i<=wa;i++){var Da=new Date();Da.setDate(za.getDate()+i);var Ea=formatDate(Da,xa);var Fa=formatDate(Da,'yyyy-MM-dd');ua.options[Aa]=new Option(Ea,Fa);if(Fa==ya){ua.options[Aa].selected=true;Ba=true;}
if(i==0)Ca=Aa;Aa++;}
if(!Ba)ua.options[Ca].selected=true;}
function setDefaultMonths(Ga,Ha,Ia,Ja){var Ka=Ga.options[Ga.selectedIndex].value;var La=new Date();La=new Date(La.getFullYear(),La.getMonth(),La.getDate(),0,0,0);var Ma=0;var Na=false;var Oa=1;for(i=(Ha*-1);i<=Ia;i++){var Pa=new Date();Pa.setMonth(La.getMonth()+i);var Qa=formatDate(Pa,Ja);var Ra=formatDate(Pa,'yyyy-MM');Ga.options[Ma]=new Option(Qa,Ra);if(Ra==Ka){Ga.options[Ma].selected=true;Na=true;}
if(i==0)Oa=Ma;Ma++;}
if(!Na)Ga.options[Oa].selected=true;}
function getCurrentDate(){var Sa=new Date();Sa=new Date(Sa.getFullYear(),Sa.getMonth(),Sa.getDate(),0,0,0);return formatDate(theDay,'yyyy-MM-dd');}
function popUpFlightTrackerForFlight(id,Ta,Ua){url="/go/FlightTracker/flightTracker.do?id="+id+"&airlineCode="+Ta+"&flightNumber="+Ua;window.open(url,"_blank","scrollbars=no,menubar=no,resizable=no,status=no,width=780,height=637");}
function popUpFlightTracker(){window.open("/go/FlightTracker/flightTracker.do","_blank","scrollbars=no,menubar=no,resizable=no,status=no,width=780,height=637");}
function changeImages(Va,Wa){var Xa=Va.src;Xa=Xa.replace(/;.*/,'');Xa=Xa.replace('_on.gif','');Xa=Xa.replace('_off.gif','');if(Wa==1)Va.src=Xa+'_on.gif';else Va.src=Xa+'_off.gif';}
function AutoSuggestControl(Ya,Za,$a,ab,bb,cb,db,eb,fb,gb){this.cur=-1;this.layer=null;this.iframe=null;this.parent=eb;if(null==this.parent)this.parent=document.body;this.provider=Za;this.textbox=Ya;this.showSuggestionsCallback=$a;this.hideSuggestionsCallback=ab;this.numSuggestions=0;this.numberOfSuggestionsToShow=10;if(null!=fb)this.numberOfSuggestionsToShow=fb;this.secure=false;if(null!=gb)this.secure=gb;this.left=bb;this.top=cb;this.width=db;this.hasFocus=false;this.init();}
AutoSuggestControl.prototype.init=function(){var hb=this;this.textbox.setAttribute("autocomplete","off");this.textbox.onkeyup=function(ib){if(!ib)ib=window.event;return hb.handleKeyUp(ib);};this.textbox.onkeydown=function(jb){if(!jb)jb=window.event;return hb.handleKeyDown(jb);};this.textbox.onmouseup=function(){if(0!=this.selectionStart){var kb=this;setTimeout(function(){selectAllTextInField(kb);},100);}};this.textbox.onfocus=function(){hb.hasFocus=true;};this.textbox.onblur=function(){hb.hasFocus=false;hb.hideSuggestions();};this.createDropDown();}
AutoSuggestControl.prototype.createDropDown=function(){var lb=this;this.layer=document.createElement("div");this.layer.className="suggestions";this.layer.style.visibility="hidden";if(this.width==null)this.layer.style.width=this.textbox.offsetWidth;else this.layer.style.width=this.width+"px";this.layer.style.height="1px";this.layer.style.left=this.getLeft()+"px";this.layer.style.top=(this.getTop()+this.textbox.offsetHeight)+"px";this.layer.onmousedown=this.layer.onmouseup=this.layer.onmouseover=function(mb){mb=mb||window.event;oTarget=mb.target||mb.srcElement;if(mb.type=="mousedown"){lb.textbox.value=oTarget.firstChild.nodeValue;lb.hideSuggestions();}
else if(mb.type=="mouseover")lb.highlightSuggestion(oTarget);else lb.textbox.focus();};if(xIE4Up){this.iframe=document.createElement("iframe");this.iframe.className="suggestions";this.iframe.style.visibility=this.layer.style.visibility;this.iframe.style.width=this.layer.style.width;this.iframe.style.height=this.layer.offsetHeight;this.iframe.style.left=this.layer.style.left;this.iframe.style.top=this.layer.style.top;this.parent.appendChild(this.iframe);}
this.parent.appendChild(this.layer);}
AutoSuggestControl.prototype.autosuggest=function(nb,ob){this.numSuggestions=nb.length;if(nb.length>0){if(this.hasFocus)this.showSuggestions(nb);}
else this.clearSuggestions();}
AutoSuggestControl.prototype.clearSuggestions=function(){this.hideSuggestions();this.layer.innerHTML="";this.cur=-1;}
AutoSuggestControl.prototype.showSuggestions=function(pb){var qb=null;this.layer.innerHTML="";this.layer.style.height="";for(var i=0;i<pb.length;i++){qb=document.createElement("div");if(i==0)qb.className="current";else qb.className="normal";qb.appendChild(document.createTextNode(pb[i]));this.layer.appendChild(qb);}
this.cur=0;this.layer.style.left=this.getLeft()+"px";this.layer.style.top=(this.getTop()+this.textbox.offsetHeight)+"px";this.layer.style.visibility="visible";if(null!=this.iframe){this.iframe.style.width=this.layer.style.width;this.iframe.style.left=this.layer.style.left;this.iframe.style.top=this.layer.style.top;this.iframe.style.visibility=this.layer.style.visibility;this.iframe.style.width=this.layer.offsetWidth;this.iframe.style.height=this.layer.offsetHeight;}
if(null!=this.showSuggestionsCallback)this.showSuggestionsCallback.call(this);}
AutoSuggestControl.prototype.getLeft=function(){if(this.left!=null)return this.left;var rb=this.textbox;var sb=0;while((null!=rb)&&(rb.tagName!="BODY")){sb+=rb.offsetLeft;rb=rb.offsetParent;}
return sb;}
AutoSuggestControl.prototype.getTop=function(){if(this.top!=null)return this.top;var tb=this.textbox;var ub=0;while((null!=tb)&&(tb.tagName!="BODY")){ub+=tb.offsetTop;tb=tb.offsetParent;}
return ub;}
AutoSuggestControl.prototype.handleKeyDown=function(vb){switch(vb.keyCode){case 38:this.previousSuggestion();break;case 40:this.nextSuggestion();break;case 13:if(this.layer.style.visibility!="hidden"){this.getSuggestion();this.hideSuggestions();}
else{this.textbox.form.submit()}
return false;break;}}
AutoSuggestControl.prototype.handleKeyUp=function(wb){var xb=wb.keyCode;if(xb==8||xb==46){if(this.textbox.value.length==0)this.clearSuggestions();else this.provider.requestSuggestions(this,false,this.numberOfSuggestionsToShow,this.secure);}
else if(xb==13)return false;else if(xb<32||(xb>=33&&xb<46)||(xb>=112&&xb<=123)){}
else this.provider.requestSuggestions(this,true,this.numberOfSuggestionsToShow,this.secure);}
AutoSuggestControl.prototype.hideSuggestions=function(){this.layer.style.visibility="hidden";if(null!=this.iframe)this.iframe.style.visibility="hidden";if(null!=this.hideSuggestionsCallback)this.hideSuggestionsCallback.call(this);}
AutoSuggestControl.prototype.highlightSuggestion=function(yb){for(var i=0;i<this.layer.childNodes.length;i++){var zb=this.layer.childNodes[i];if(zb==yb)zb.className="current";else if(zb.className=="current")zb.className="normal";}}
AutoSuggestControl.prototype.nextSuggestion=function(){var Ab=this.layer.childNodes;if(Ab.length>0&&this.cur<Ab.length-1){var Bb=Ab[++this.cur];this.highlightSuggestion(Bb);this.textbox.value=Bb.firstChild.nodeValue;}}
AutoSuggestControl.prototype.previousSuggestion=function(){var Cb=this.layer.childNodes;if(Cb.length>0&&this.cur>0){var Db=Cb[--this.cur];this.highlightSuggestion(Db);this.textbox.value=Db.firstChild.nodeValue;}}
AutoSuggestControl.prototype.getSuggestion=function(){if(this.cur==-1)return;var Eb=this.layer.childNodes;var Fb=Eb[this.cur];this.textbox.value=Fb.firstChild.nodeValue;}
AutoSuggestControl.prototype.selectRange=function(Gb,Hb){if(this.textbox.createTextRange){var Ib=this.textbox.createTextRange();Ib.moveStart("character",Gb);Ib.moveEnd("character",Hb-this.textbox.value.length);Ib.select();}
else if(this.textbox.setSelectionRange)this.textbox.setSelectionRange(Gb,Hb);this.textbox.focus();}
AutoSuggestControl.prototype.typeAhead=function(Jb){if(this.textbox.createTextRange||this.textbox.setSelectionRange){var Kb=this.textbox.value.length;this.textbox.value=Jb;this.selectRange(Kb,Jb.length);}}
function RemoteAirlineSuggestions(Lb){this.baseURL='';if(Lb)this.baseURL=Lb;}
RemoteAirlineSuggestions.prototype.getHTTPRequest=function(){var Mb=null;if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest();else if(typeof ActiveXObject!="undefined"){try{return new ActiveXObject("Msxml2.XMLHTTP");}
catch(exception){try{return new ActiveXObject("Microsoft.XMLHTTP");}
catch(exception2){}}}
return null;}
RemoteAirlineSuggestions.prototype.requestSuggestions=function(Nb,Ob,Pb,Qb){var Rb=this.getHTTPRequest();if(Rb==null)return;var Sb=null;if((null!=Qb)&&(Qb))Sb=this.baseURL+"/go/Suggest/airlineSuggestProcessSecure.do";else Sb=this.baseURL+"/go/Suggest/airlineSuggestProcess.do";Sb+="?desiredResults="+Pb+"&searchSubstring="+encodeURIComponent(Nb.textbox.value);Rb.open("get",Sb,true);Rb.onreadystatechange=function(){if(Rb.readyState==4){if(null==Rb.responseXML)return;var Tb=[];var Ub=Rb.responseXML.getElementsByTagName("airline");for(var Vb=0;Vb<Ub.length;Vb++){var Wb=Ub[Vb].getAttribute("name");var Xb=Ub[Vb].getAttribute("code");Wb='('+Xb+') '+Wb;Tb.push(Wb);}
Nb.autosuggest(Tb,Ob);}};Rb.send(null);}
function RemoteAirportSuggestions(Yb){this.baseURL='';if(Yb)this.baseURL=Yb;}
RemoteAirportSuggestions.prototype.getHTTPRequest=function(){var Zb=null;if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest();else if(typeof ActiveXObject!="undefined"){try{return new ActiveXObject("Msxml2.XMLHTTP");}
catch(exception){try{return new ActiveXObject("Microsoft.XMLHTTP");}
catch(exception2){}}}
return null;}
RemoteAirportSuggestions.prototype.requestSuggestions=function($b,ac,bc,cc){var dc=this.getHTTPRequest();if(dc==null)return;var ec=null;if((null!=cc)&&(cc))ec=this.baseURL+"/go/Suggest/airportSuggestProcessSecure.do";else ec=this.baseURL+"/go/Suggest/airportSuggestProcess.do";ec+="?desiredResults="+bc+"&searchSubstring="+encodeURIComponent($b.textbox.value);dc.open("get",ec,true);dc.onreadystatechange=function(){if(dc.readyState==4){if(null==dc.responseXML)return;var fc=[];var gc=dc.responseXML.getElementsByTagName("airport");for(var hc=0;hc<gc.length;hc++){var ic=gc[hc].getAttribute("code");var jc=gc[hc].getAttribute("name");var kc=gc[hc].getAttribute("city");jc=jc.replace("International Airport","International");jc=jc.replace("International","Intl");jc='('+ic+') '+jc+', ';if(-1==jc.indexOf(kc))jc+=kc+', ';var lc=gc[hc].getAttribute("stateCode");if(null!=lc)jc+=lc+', ';jc+=gc[hc].getAttribute("countryCode");fc.push(jc);}
$b.autosuggest(fc,ac);}};dc.send(null);}
function RemoteCountrySuggestions(){}
RemoteCountrySuggestions.prototype.getHTTPRequest=function(){var mc=null;if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest();else if(typeof ActiveXObject!="undefined"){try{return new ActiveXObject("Msxml2.XMLHTTP");}
catch(exception){try{return new ActiveXObject("Microsoft.XMLHTTP");}
catch(exception2){}}}
return null;}
RemoteCountrySuggestions.prototype.requestSuggestions=function(nc,oc,pc,qc){var rc=this.getHTTPRequest();if(rc==null)return;var sc=null;if((null!=qc)&&(qc))sc="/go/Suggest/countrySuggestProcessSecure.do";else sc="/go/Suggest/countrySuggestProcess.do";sc+="?desiredResults="+pc+"&searchSubstring="+encodeURIComponent(nc.textbox.value);rc.open("get",sc,true);rc.onreadystatechange=function(){if(rc.readyState==4){if(null==rc.responseXML)return;var tc=[];var uc=rc.responseXML.getElementsByTagName("country");for(var vc=0;vc<uc.length;vc++){var wc=uc[vc].getAttribute("code");var xc=uc[vc].getAttribute("name");xc='('+wc+') '+xc;var yc=uc[vc].getAttribute("region");if(null!=yc)xc+=', '+yc;tc.push(xc);}
nc.autosuggest(tc,oc);}};rc.send(null);}
var pageTracker=null;function trackEvent(zc,Ac,Bc,Cc){if(null!=pageTracker){pageTracker._trackEvent(zc,Ac,Bc,Cc);}}
document.onmouseup=checkDynDropmenu;function getDynDropmenu(){return document.getElementById('dyn_dropmenu');}
function clearDynDropmenuItems(Dc){if(Dc){while(Dc.childNodes[0]){Dc.removeChild(Dc.childNodes[0]);}}}
function getWindowDimensions(){var Ec=[0,0];if(typeof(window.innerWidth)!='undefined'){Ec=[(window.innerWidth-25),(window.innerHeight-30)];}
else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){Ec=[(document.documentElement.clientWidth-25),(document.documentElement.clientHeight-25)];}
else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){Ec=[(document.body.clientWidth-45),(document.body.clientHeight-25)];}
return Ec;}
function getViewportDimensions(){var Fc=[0,0];if(typeof(window.pageYOffset)!='undefined'){Fc=[window.pageXOffset,window.pageYOffset];}
else if(typeof(document.documentElement.scrollTop)!='undefined'&&document.documentElement.scrollTop>0){Fc=[document.documentElement.scrollLeft,document.documentElement.scrollTop];}
else if(typeof(document.body.scrollTop)!='undefined'){Fc=[document.body.scrollLeft,document.body.scrollTop];}
return Fc;}
function getClickDimensions(ev){var Gc=(ev&&ev.pageX)?ev.pageX:(event.clientX+document.documentElement.scrollLeft)-45;var Hc=(ev&&ev.pageY)?ev.pageY-10:(event.clientY+document.documentElement.scrollTop)+3;return[Gc,Hc];}
function populateDynDropmenuAirport(Ic,Jc,Kc,Lc,Mc,Nc){var Oc=getDynDropmenu();clearDynDropmenuItems(Oc);if(Oc){var Pc=document.createElement('li');if(''!=Ic){Pc.innerHTML='<a class="droplink" href="/go/Airport/airportDetails.do?airportCode='+Ic+'">Airport Information</a>';}
else{Pc.innerHTML='<span>Airport Information</span>';}
Oc.appendChild(Pc);var Qc=document.createElement('li');if(''!=Ic){Qc.innerHTML='<a class="droplink" href="/go/Airport/airportUserRatingsByAirport.do?airportCode='+Ic+'">Airport User Ratings</a>';}
else{Qc.innerHTML='<span>Airport User Ratings</span>';}
Oc.appendChild(Qc);var Rc=document.createElement('li');Rc.className='dyn_dropmenu_sepbottom';if(''!=Ic){Rc.innerHTML='<a class="droplink" href="/go/Airport/airportChatter.do?airportCode='+Ic+'&category=0&dateRange=Today">Airport Chatter</a>';}
else{Rc.innerHTML='<span>Airport Chatter</span>';}
Oc.appendChild(Rc);var Sc=document.createElement('li');Sc.className='dyn_dropmenu_septop';if(''!=Ic){Sc.innerHTML='<a class="droplink" href="/go/FlightStatus/flightStatusByAirport.do?airportCode='+Ic+'&airportQueryTimePeriod=&airportQueryType=0">Airport Departures</a>';}
else{Sc.innerHTML='<span>Airport Departures</span>';}
Oc.appendChild(Sc);var Tc=document.createElement('li');if(''!=Ic){Tc.innerHTML='<a class="droplink" href="/go/FlightStatus/flightStatusByAirport.do?airportCode='+Ic+'&airportQueryTimePeriod=&airportQueryType=1">Airport Arrivals</a>';}
else{Tc.innerHTML='<span>Airport Arrivals</span>';}
Oc.appendChild(Tc);var Uc=document.createElement('li');if(Kc&&''!=Ic){Uc.innerHTML='<a class="droplink" href="/go/AirportTracker/airportTracker.do?airportCode='+Ic+'">Airport Flight Tracking</a>';}
else{Uc.innerHTML='<span>Airport Flight Tracking</span>';}
Oc.appendChild(Uc);var Vc=document.createElement('li');Vc.className='dyn_dropmenu_sepbottom';if(''!=Ic){Vc.innerHTML='<a class="droplink" href="/go/Airport/airportScorecard.do?airportCode='+Ic+'">Airport Scorecard</a>';}
else{Vc.innerHTML='<span>Airport Scorecard</span>';}
Oc.appendChild(Vc);var Wc=document.createElement('li');Wc.className='dyn_dropmenu_septopbottom';if(''!=Ic){Wc.innerHTML='<a class="droplink" href="/go/Airport/weather.do?airportCode='+Ic+'">Airport Weather</a>';}
else{Wc.innerHTML='<span>Airport Weather</span>';}
Oc.appendChild(Wc);var Xc=document.createElement('li');Xc.className='dyn_dropmenu_septop';if(''!=Ic){Xc.innerHTML='<a class="droplink" href="/go/Airport/delays.do?airportCode='+Ic+'">Delays by Airport</a>';}
else{Xc.innerHTML='<span>Delays by Airport</span>';}
Oc.appendChild(Xc);var Yc=document.createElement('li');Yc.className='dyn_dropmenu_sepbottom';if(Lc){Yc.innerHTML='<a class="droplink" href="/go/Airport/currentAirportDelays.do">US FAA Airport Delays</a>';}
else{Yc.innerHTML='<span>US FAA Airport Delays</span>';}
Oc.appendChild(Yc);var Zc=document.createElement('li');Zc.className='dyn_dropmenu_septop';if(Mc&&''!=Ic){Zc.innerHTML='<a class="droplink" href="/go/Airport/airportParking.do?airportCode='+Ic+'">Airport Parking</a>';}
else{Zc.innerHTML='<span>Airport Parking</span>';}
Oc.appendChild(Zc);var $c=document.createElement('li');$c.className='dyn_dropmenu_sepbottom';if(Nc&&''!=Ic){$c.innerHTML='<a class="droplink" href="/go/Airport/airportTrafficConditions.do?airportCode='+Ic+'">Traffic Conditions</a>';}
else{$c.innerHTML='<span>Traffic Conditions</span>';}
Oc.appendChild($c);var ad=document.createElement('li');ad.className='dyn_dropmenu_septop';ad.innerHTML='<a class="droplink" href="/go/Airport/airportsOfTheWorld.do">Airports of the World</a>';Oc.appendChild(ad);}}
function populateDynDropmenuFlight(bd,cd,dd,ed,fd,gd,hd,jd){var kd=getDynDropmenu();clearDynDropmenuItems(kd);if(kd){var ld=document.createElement('li');if(''!=cd&&''!=dd){ld.innerHTML='<a class="droplink" href="/go/FlightStatus/flightStatusByFlight.do?id='+bd+'&airlineCode='+cd+'&flightNumber='+dd+'&queryDate='+ed+'">Flight Status</a>';}
else{ld.innerHTML='<span>Flight Status</span>';}
kd.appendChild(ld);var md=document.createElement('li');if(hd&&''!=cd&&''!=dd){md.innerHTML='<a class="droplink" href="/go/AirportTracker/airportTracker.do?id='+bd+'&airlineCode='+cd+'&flightNumber='+dd+'&queryDate='+ed+'">Flight Tracker</a>';}
else{md.innerHTML='<span>Flight Tracker</span>';}
kd.appendChild(md);var nd=document.createElement('li');nd.innerHTML='<a class="droplink" href="/go/FlightAvailability/flightAvailabilityByRoute.do">Flight Availability</a>';kd.appendChild(nd);var od=document.createElement('li');if(''!=cd&&''!=dd){od.innerHTML='<a class="droplink" href="/go/FlightRating/flightRatingByFlight.do?id='+bd+'&airlineCode='+cd+'&flightNumber='+dd+'&departureAirportCode='+fd+'&arrivalAirportCode='+gd+'">On-time Performance Rating</a>';}
else{od.innerHTML='<span>On-time Performance Rating</span>';}
kd.appendChild(od);var pd=document.createElement('li');if(jd&&''!=cd&&''!=dd){pd.innerHTML='<a class="droplink" href="/go/FlightMonitor/flightRuleCreate.do?airlineCode='+cd+'&flightNumber='+dd+'&queryDate='+ed+'">Flight Alert</a>';}
else{pd.innerHTML='<span>Flight Alert</span>';}
kd.appendChild(pd);var qd=document.createElement('li');if(jd){qd.innerHTML='<a class="droplink" href="/go/FlightMonitor/flightRules.do">My Flight Alerts</a>';}
else{qd.innerHTML='<span>My Flight Alerts</span>';}
kd.appendChild(qd);}}
function populateDynDropmenuAirline(rd){var sd=getDynDropmenu();clearDynDropmenuItems(sd);if(sd){var td=document.createElement('li');if(''!=rd){td.innerHTML='<a class="droplink" href="/go/Airline/airlineDetails.do?airlineCode='+rd+'">Airline Information</a>';}
else{td.innerHTML='<span>Airline Information</span>';}
sd.appendChild(td);var ud=document.createElement('li');if(''!=rd){ud.innerHTML='<a class="droplink" href="/go/Airline/airlineScorecard.do?airlineCode='+rd+'">Airline Scorecard</a>';}
else{ud.innerHTML='<span>Airline Scorecard</span>';}
sd.appendChild(ud);var vd=document.createElement('li');vd.innerHTML='<a class="droplink" href="/go/Airline/airlinesOfTheWorld.do">Airlines of the World</a>';sd.appendChild(vd);}}
function populateDynDropmenuCountry(wd,xd){var yd=getDynDropmenu();clearDynDropmenuItems(yd);if(yd){var zd=document.createElement('li');if(''!=wd){zd.innerHTML='<a class="droplink" href="/go/TravelPlanning/countryInformation.do?countryCode='+wd+'">Country Information</a>';}
else{zd.innerHTML='<span>Country Information</span>';}
yd.appendChild(zd);var Ad=document.createElement('li');if(''!=wd){Ad.innerHTML='<a class="droplink" href="/go/TravelPlanning/travelWarnings.do?countryCode='+wd+'">Travel Warnings</a>';}
else{Ad.innerHTML='<span>Travel Warnings</span>';}
yd.appendChild(Ad);var Bd=document.createElement('li');if(''!=wd){Bd.innerHTML='<a class="droplink" href="/go/TravelPlanning/travelAdvisories.do?countryCode='+wd+'&queryDate='+xd+'">Travel Advisories</a>';}
else{Bd.innerHTML='<span>Travel Advisories</span>';}
yd.appendChild(Bd);var Cd=document.createElement('li');if(''!=wd){Cd.innerHTML='<a class="droplink" href="/go/TravelPlanning/consularInformationSheet.do?countryCode='+wd+'">Consular Information Sheets</a>';}
else{Cd.innerHTML='<span>Consular Information Sheets</span>';}
yd.appendChild(Cd);}}
function showDynDropmenu(ev,Dd){var Ed=getDynDropmenu();if(Ed){Ed.className='dyn_dropmenu_show';Ed.style.width=Dd+'px';var Fd=getWindowDimensions();var Gd=getViewportDimensions();var Hd=getClickDimensions(ev);var Id=Hd[0];var Jd=Hd[1];if(Fd[1]<=Ed.offsetHeight){Jd=Gd[1];}
else if(Jd>=Gd[1]){var Kd=Jd-Gd[1];if(Fd[1]-Kd<=Ed.offsetHeight){Jd=Jd-(Ed.offsetHeight-(Fd[1]-Kd));}}
if(Fd[0]<=Ed.offsetWidth){Id=Gd[0];}
else if(Fd[0]-Id<Ed.offsetWidth){Id=Fd[0]-Ed.offsetWidth;}
Ed.style.left=Id+'px';Ed.style.top=Jd+'px';}}
function checkDynDropmenu(e){var Ld=(e&&e.target)||(event&&event.srcElement);var Md=getDynDropmenu();if(Md){var Nd=checkDynDropmenuParent(Ld);if(Nd){Md.className='dyn_dropmenu_hide';Md.style.width='0px';Md.style.left='-9999px';Md.style.top='-9999px';}}}
function checkDynDropmenuParent(t){while(t.parentNode){if(t==getDynDropmenu()){return false;}
t=t.parentNode;}
return true;}