var currenthelp='';
var currentcell='';
var colorBlue='#CCDDEE';
var backgroundImg='/images/home_bullet_blue_xl.gif';
var backgroundImgHover='/images/home_bullet_xl.gif';

var msgA='';
var msgB='';
var msgC='';
var msgD='';
var msgE='';
var msgF='';
var msgG='';
var msgH='';
var msgA1='';

function jhelp(helpid) {
  var msg='';
  var oldcell='';
  
  if (helpid != currenthelp) {
    oldcell=currentcell;
  
    switch (helpid) {

      case 'Start':
        currentcell='0';
        document.getElementById("helpA0").style.backgroundImage.src=backgroundImg;
        document.getElementById("helpA").className='';
        msg='<b>AeroPlanner.com Memberships</b><br>' +
            'Compare our membership features.<br>' +
            'Point to a membership type for details.<br>' +
            'Find the plan that\'s right for you!';
        break;

      case 'Free':
        currentcell='0';
        document.getElementById("helpA0").style.backgroundImage.src=backgroundImg;
        document.getElementById("helpA").className='';
        msg='<b>Free Membership</b><br>' +
            'Some AeroPlanner features are available to everyone. ' +
            'Use the SmartChart, the calculators, the discussion board. ' +
            'Buy chart download products a la carte.';
        break;
      case 'EAA':
        currentcell='0';
        document.getElementById("helpA0").style.backgroundImage.src=backgroundImg;
        document.getElementById("helpA").className='';
        msg='<b>EAA Membership</b><br>' +
            'EAA Members can upgrade to AeroPlanner\'s EAA membership. ' +
            'Use the EAA Flight Planner, and many other useful features.  ' +
            'And save 10% when you upgrade to a Premium Membership.';
        break;
      case 'Basic':
        currentcell='0';
        document.getElementById("helpA0").style.backgroundImage.src=backgroundImg;
        document.getElementById("helpA").className='';
        msg='<b>Basic Membership</b><br>' +
            'To the cost conscious, AeroPlanner provides many of its features ' +
            'for a low yearly or monthly fee, from the popular Basic Trip Planner ' +
            'to weather and NOTAMs.';
        break;
      case 'Premium':
        currentcell='0';
        document.getElementById("helpA0").style.backgroundImage.src=backgroundImg;
        document.getElementById("helpA").className='';
        msg='<b>Premium Membership</b><br>' +
            'Forget a la carte!  Except for full chart downloads, everything at ' +
            'AeroPlanner is yours to use.  From Premium Flight Planning to the PDF TripTick, ' +
            'every feature is available to you.';
        break;
      case 'PLUS':        
        currentcell='0';
        document.getElementById("helpA0").style.backgroundImage.src=backgroundImg;
        document.getElementById("helpA").className='';
        msg='<b>Premium PLUS Membership</b><br>' +
            'Everything in the Premium Membership, PLUS free unlimited aeronautical ' +
            'chart downloads!';
        break;
    
      case 'Buy' :
        currentcell='X';
        msg='';
        break;
      
	  case 'Group': 
        currentcell='A1';
        msg=msgA1;
        break;
	  
	  case 'gFS':
	  	currentcell='A1';
		msg='Create and edit reservations.  Search reservations by user, plane, and/or date.'
		break;
	  case 'gMC':
	    currentcell='A1';
		msg='Send messages to specific people or the whole group.  Set an expiration date on a message.  View all your sent and received messages.'
		break;
	  
      case 'SmartChart': 
        currentcell='A';
        msg=msgA;
        break;
      case 'scSECWAC': 
        currentcell='A';
        msg='Always the most recent Sectional and WAC charts, with SmartChart data ' +
            'for all of the aeronautical features.  Coverage for the US, southern Canada, ' +
            'parts of Mexico, and the Caribbean.';
        break;
      case 'scDTED': 
        currentcell='A';
        msg='View current vector data like airports, airways, fixes, and more ' +
            'overlayed on colored terrain.  With a few exceptions, this terrain base map ' +
            'is available worldwide.';
        break;
      case 'scIFR': 
        currentcell='A';
        msg='With higher level memberships the SmartChart supports more ' +
            'types of charts.  Choose Low IFR, High IFR or Terminal Area Charts ' +
            'in addition to the standard WACs and Sectionals.  And all always the latest version!';
        break;
      case 'scSuperSize': 
        currentcell='A';
        msg='SuperSize the SmartChart image! Jump from the regular 560 x 300 ' +
            'pixel image, to 760 x 760!  Great for members with fast Internet connections, ' +
            'like DSL and Cable Modems.';
        break;
  

      case 'Downloads': 
        currentcell='B';
        msg=msgB;
        break;
      case 'Viewer': 
        currentcell='B';
        msg='View our FullChart digital charts on your PC with our free viewer. ' +
            'A sample chart is included.  The FullChart product is also compatible with ' +
            'Destination Direct, flight planning software for your PC.';
        break;
      case 'DataChunk': 
        currentcell='B';
        msg='DataChunks are current, government data for airports, radio navaids, ' +
            'and fixes.  Download data around a location or along a route.  Use popular software ' +
            'to load the data into your devices.';
        break;
      case 'ChartChunk': 
        currentcell='B';
        msg='For hand held devices that can\'t handle the full chart, AeroPlanner provides the ' +
            'ChartChunk.  Cut out a slice of chart and download it to any supported Windows CE ' +
            'or Palm software.  The geographic information is included to turn the image into ' +
            'a mini chart.';
        break;
      case 'WallPaper': 
        currentcell='B';
        msg='Make your favorite chart the desktop background on your PC.  Cut out a desktop ' +
            'sized piece of chart with our WallPaper product, and download it today.';
        break;
      case 'FullChart': 
        currentcell='B';
        msg='The same high quality Softchart charts used by AeroPlanner are available for ' +
            'your downloading pleasure.  Enjoy high speed access off-line.  Destination ' +
            'Direct compatible.  We also have a free viewer for MS-Windows.';
        break;
      case 'ChartBook': 
        currentcell='B';
        msg='The same high quality Softchart charts used by AeroPlanner are available for ' +
            'your downloading pleasure in an easy to read 8.5" x 11" PDF book.';
        break;
    
          
      case 'FlightPlan': 
        currentcell='C';
        msg=msgC;
        break;
      case 'fpBasic': 
        currentcell='C';
        msg=msgC;
        break;
      case 'fpWindsAloft':
        currentcell='C';
        msg='Inside the United States, AeroPlanner incorporates wind prediction data ' +
            'from the National Weather Service to more accurately predict the headings ' +
            'times and fuel usage for each leg of your flight.';
        break;
      case 'fpHeadings':
        currentcell='C';
        msg='The flight planners always calculate the true and magnetic headings between ' +
            'points along your route.  If you enter altitude information, current winds ' +
            'predictions will be used to calculate true and magnetic headings, too.';
        break;
      case 'fpTimes':
        currentcell='C';
        msg='Tell the flight planner how fast you fly and at what altitude, and AeroPlanner ' +
            'will use current wind predictions to calculate the time required for each leg ' +
            'of your flight.  Enter a fuel burn rate and get fuel calculations as well.';
        break;
      case 'fpLogPDF':
        currentcell='C';
        msg='Fit more flight log on each page with Adobe\'s PDF format.';
        break;
      case 'fpSUAS':
        currentcell='C';
        msg='AeroPlanner always lets you know if your route passes through or very near ' +
            'any Special Use Airspace.  Active Airspace Temporary Flight Restrictions are ' +
            'also noted.';
        break;
			case 'fpStoredRoutes':
        currentcell='C';
        msg='Save your flight routes on AeroPlanner, ' +
            'and you can call them up at any time.';
        break;

      case 'fpEAA': 
        currentcell='C';
        msg=msgC;
        break;
      case 'fpFileDUATS':
        currentcell='C';
        msg='File your flight plan directly from AeroPlanner.  Requires a DUATS account.';
        break;
      case 'fpAutoRoute':
        currentcell='C';
        msg='Let AeroPlanner do the hard work of finding a route from here to there.  Just click.';
        break;
      case 'fpEnrouteNTM':
        currentcell='C';
        msg='Check NOTAMs for all of the landing facilities in your route with one easy click.';
        break;
      case 'fpMyPoint':
        currentcell='C';
        msg='Define and store geographic locations.  Pick a label, a symbol, a color, ' +
            'a description.  Then include the points in any route you build.';
        break;

      case 'fpPro': 
        currentcell='C';
        msg=msgC;
        break;
      case 'fpExport':
        currentcell='C';
        msg='Export your routes into MS Flight Simulator, OziExplorer, FlightBuddy and ' +
            'Control Vision.  Destination Direct imports and exports AeroPlanner routes.';
        break;
      case 'fpUpload':
        currentcell='C';
        msg='Get your route from AeroPlanner into your GPS\'s and hand held devices. ' +
            'EasyGPS, FlightBuddy, OziExplorer, and ControlVision make the connection. ' +
            'EasyGPS software is included with Premium and Plus memberships, and can ' +
            'be downloaded from the AeroPlanner site.';
        break;
      case 'fpHiRes':
        currentcell='C';
        msg='The Premium Flight Planner displays weather radar data while you plan.';
        break;
      case 'fpProfile':
        currentcell='C';
        msg='See the profile view of your flight. ' +
            'Includes terrain and cloud ceilings, with more features to come.';
        break;
      case 'fpFuel':
        currentcell='C';
        msg='Plan your route in the Premium Flight Planner.  Find the closest, most affordable ' +
            'FBOs and then insert the fuel stops in your route.';
        break;
      case 'fpPlates': 
        currentcell='C';
        msg='PDF files of instrument approaches, arrivals, departures and other airport ' +
            'information which are updated every 28 days.  View, print, or include them in your ' +
            'PDF TripTicks.';
        break;
      case 'fpPlatesBook': 
        currentcell='C';
        msg='PDF files of terminal instrument procedures bundled together in one book. ' +
            'Select by airport ID, radius around an ' +
            'airport, state, or FAA terminal procedures region and ' +
						'include as many procedures as needed.';
        break;
      case 'fpChartBooks': 
        currentcell='B';
        msg='Browse to our ChartBook Catalog or SmartChart, where you can view any Sectional, ' +
            'IFR High, IFR low, TAC, or WAC and download the full chart broken up into a ' +
            'handy PDF of 8x11 charts for only $13.95.';
        break;
      case 'fpttBasic': 
        currentcell='C';
        msg='Images of Sectionals or WACs along your route.  What could be better? ' +
            'Well, the PDF TripTicks are better, but the Basic TripTick is still pretty cool.';
        break;
      case 'fpttPDF': 
        currentcell='C';
        msg='Everything AeroPlanner has to offer along your route is available to you ' +
            'in one downloadable file.  Build it. Print it.  Clip it to your kneeboard!';
        break;
      case 'fpZipTick': 
        currentcell='C';
        msg='Get chart images along your route.  Contains the geographic information ' +
            'required to turn a bunch of images into charts for moving map software.';
        break;
			case 'fpGoogleTick': 
        currentcell='C';
        msg='AeroPlanner now supports route, chart, weather, airspace, NOTAMs, and aeronautical ' +
						'data exports into Google Earth KML format. Use your routes created in the AeroPlanner ' +
						'Premium Flight Planner and export them to be view and analyzed in Google Earth.';   
        break;
        
      case 'Weather': 
        currentcell='D';
        msg=msgD;
        break;
      case 'wxLinks': 
        currentcell='D';
        msg='AeroPlanner gathers some of the best weather links for pilots on the Internet ' +
            'to one handy location.';
        break;
      case 'wxStation': 
        currentcell='D';
        msg='Get the current conditions, short term and long term forecasts. ' +
            'Pick a location.  Updated twenty-four hours a day.';
        break;
      case 'wxPlot': 
        currentcell='D';
        msg='See the U.S. weather at a glance.  Or zoom in for details.  ' +
            'All formatted for aviators.  Always up to date.';
        break;
    
    
      case 'NOTAMS': 
        currentcell='E';
        msg=msgE;
        break;
      case 'ntmLOOKUP': 
        currentcell='E';
        msg='Use our simple NOTAM form to get full access to the current NOTAMs.';
        break;
      case 'ntmTFRMAP': 
        currentcell='E';
        msg='AeroPlanner has a handy map that shows all of the currently active national ' +
            'airspace NOTAMs.  Great for cross countries.';
        break;
      case 'ntmSmartChart': 
        currentcell='E';
        msg='See the Temporary Flight Restrictions in the SmartChart. ' +
            'Pick your preferred chart background. See which airports are within the ' +
            'restricted area.  The TFR text is conveniently located below the chart.';
        break;
      case 'ntmEMAIL': 
        currentcell='E';
        msg='Get the latest FDC and NOTAM D\'s sent to your e-mail mailbox as they are issued. ' +
            'Or request all NOTAMS (and METARs and TAFs) for specific airports.';
        break;
    
          
      case 'ToolRef': 
        currentcell='F';
        msg=msgF;
        break;
      case 'trApt': 
        currentcell='F';
        msg='Get the latest information on all FAA landing facilities.';
            //'and international locations with hard surface runways over 3000ft.';
        break;
      case 'trE6B': 
        currentcell='F';
        msg='Use the World Geodetic Survey\'s 1984 model for precise distance and bearing ' +
            'calculations.  All of the hard math is done for you.';
        break;
      case 'trFARAIM': 
        currentcell='F';
        msg='Essential references.  On-line.  Enjoy.';
        break;
      case 'trFBO': 
        currentcell='F';
        msg='View FBO information and fuel prices for airports throughout the country.' +
            'Updated daily, sort by fuel type, location, and price.';
        break;
      case 'trAvCalc': 
        currentcell='F';
        msg='Get all you preflight calculations at the touch of your finger.  Download' +
            ' this program and calculate your Course/Heading/Wind, Weight & Balance, ' +
            'Wind Drift, Density Altitude, Weather, and Fuel on the go.';
        break;
      case 'trWNB': 
        currentcell='F';
        msg='Calculate Weight and Balance on-line, too.  It\'s all here in one place.';
        break;
      case 'trWNBStored': 
        currentcell='F';
        msg='Save your Weight and Balance profiles on AeroPlanner, ' +
            'and you only need to type them once.';
        break;
    
    
      case 'MISC': 
        currentcell='G';
        msg=msgG;
        break;
      case 'AeroPedia': 
        currentcell='G';
        msg='Aeronautical sites of every variety are pulled together in a searchable ' +
            'list.  Find what your looking for or add a new link.';
        break;
      case 'Hangar': 
        currentcell='G';
        msg='Have a story to tell?  A question for seasoned pilots?  A suggestion for the ' +
            'AeroPlanner staff?  Head over to the forum.';
        break;
      case 'LogBook': 
        currentcell='G';
        msg='Track your flight hours.  Search, organize, categorize, report. ' +
            ' Log in anywhere on the Internet and access your records. ' +
            ' Supports multiple planes.';
        break;
    
    
      case 'PAY': 
        currentcell='H';
        msg=msgH;
        break;
      case 'Ads': 
        currentcell='H';
        msg='Our advertisers help offset our costs for all of our non-paying users. ' +
            'Click on the ads to visit the web sites of high quality aviation companies.';
        break;
      case 'Monthly': 
        currentcell='H';
        msg='Monthly memberships are a great way to try AeroPlanner.  We\'ll renew your ' +
            'membership monthly until you decide to buy a yearly membership or cancel.';
        break;
      case 'Yearly': 
        currentcell='H';
        msg='Get the best rate by purchasing a year\'s subscription. ' +
            'Plus, you lock in today\'s rates in the event of higher future prices.';
        break;
      case 'payEAA': 
        currentcell='H';
        msg='If you are a member of the EAA, put your member number and last name ' +
            'into our membership form, and get an AeroPlanner EAA Membership for free!';
        break;
      case 'payFREE': 
        currentcell='H';
        msg='The free services cost the same amount per year or per month.';
        break;
    }

    switch(currentcell) {
      case '0': document.getElementById("helpA").innerHTML=msg; break;
      case 'A': document.getElementById("helpA0").style.backgroundImage.src=backgroundImgHover; document.getElementById("helpA").innerHTML=msg; break;
      case 'B': document.getElementById("helpB0").style.backgroundImage.src=backgroundImgHover; document.getElementById("helpB").innerHTML=msg; break;
      case 'C': document.getElementById("helpC0").style.backgroundImage.src=backgroundImgHover; document.getElementById("helpC").innerHTML=msg; break;
      case 'D': document.getElementById("helpD0").style.backgroundImage.src=backgroundImgHover; document.getElementById("helpD").innerHTML=msg; break;
      case 'E': document.getElementById("helpE0").style.backgroundImage.src=backgroundImgHover; document.getElementById("helpE").innerHTML=msg; break;
      case 'F': document.getElementById("helpF0").style.backgroundImage.src=backgroundImgHover; document.getElementById("helpF").innerHTML=msg; break;
      case 'G': document.getElementById("helpG0").style.backgroundImage.src=backgroundImgHover; document.getElementById("helpG").innerHTML=msg; break;
      case 'H': document.getElementById("helpH0").style.backgroundImage.src=backgroundImgHover; if (document.getElementById("helpH").innerHTML != msg) document.getElementById("helpH").innerHTML=msg; break;
	  //case 'A1': helpA01.style.backgroundImage.src=backgroundImgHover; helpA1.innerHTML=msg; break;
    }

    if (oldcell != currentcell) {
      switch(oldcell) {
        case '0':
          helpA.className='';
        case 'A':
          if (currentcell != '0' && currentcell !='A') {
            document.getElementById("helpA").innerHTML=msgA;
            document.getElementById("helpA0").style.backgroundImage.src=backgroundImg;
          }
          break;
        
		//case 'A1': helpA1.innerHTML=msgA1; helpA01.style.backgroundImage.src=backgroundImg; break;
        case 'B': document.getElementById("helpB").innerHTML=msgB; document.getElementById("helpB0").style.backgroundImage.src=backgroundImg; break;
        case 'C': document.getElementById("helpC").innerHTML=msgC; document.getElementById("helpC0").style.backgroundImage.src=backgroundImg; break;
        case 'D': document.getElementById("helpD").innerHTML=msgD; document.getElementById("helpD0").style.backgroundImage.src=backgroundImg; break;
        case 'E': document.getElementById("helpE").innerHTML=msgE; document.getElementById("helpE0").style.backgroundImage.src=backgroundImg; break;
        case 'F': document.getElementById("helpF").innerHTML=msgF; document.getElementById("helpF0").style.backgroundImage.src=backgroundImg; break;
        case 'G': document.getElementById("helpG").innerHTML=msgG; document.getElementById("helpG0").style.backgroundImage.src=backgroundImg; break;
        
        case 'H':
          if (document.getElementById("helpH").innerHTML != msgH) document.getElementById("helpH").innerHTML=msgH;
          document.getElementById("helpH0").style.backgroundImage.src=backgroundImg;
          break;
      }
    }

  }
  currenthelp=helpid;
  return true;
}

function LoadMsg() {
  msgA=document.getElementById("helpA").innerHTML;
  msgB=document.getElementById("helpB").innerHTML;
  msgC=document.getElementById("helpC").innerHTML;
  msgD=document.getElementById("helpD").innerHTML;
  msgE=document.getElementById("helpE").innerHTML;
  msgF=document.getElementById("helpF").innerHTML;
  msgG=document.getElementById("helpG").innerHTML;
  msgH=document.getElementById("helpH").innerHTML;
 // msgA1=helpA1.innerHTML;
}

function PopUp(page,height,width,toolbar,menubar,location,scrollbars,resizeable) {
  OpenWin = this.open("features/" + page + ".cfm?eaa=", "_blank", "height=" + height + ",width=" + width + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + location + ",scrollbars=yes,resizable=" + resizeable);
}
function PopUp(page,height,width,toolbar,menubar,location,scrollbars,resizeable) {
  OpenWin = this.open("features/" + page + ".cfm", "_blank", "height=" + height + ",width=" + width + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + location + ",scrollbars=yes,resizable=" + resizeable);
}