// img/crossfade/fin/CylinderISO6431.jpg
// img/crossfade/fin/EnduroLinkSeries.jpg
  $(function() {
  
    $('div.caption').show().css({ opacity: 0 })
  
    $('#slideshow').crossSlide({
      fade: 1
    }, [
      {
        src:  'img/crossfade/fin/ArcturusT20WingPayload.jpg',
        alt:  'Arcturus Fuel Coupler Supply',
        from: '100% 100%',
        to:   '100% 0% 1.1x',
        time: 4
      }, {
        src:  'img/crossfade/fin/AirUAVFCSClassHoneywellMAVLaunch.jpg',
        alt:  'T-Hawk OEM Support',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/BladderMAVFuelBFIWeb.jpg',
        alt:  'UAV Fuel Bladder Development',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/WireFormAir28Watts.jpg',
        alt:  'Free-Air UAV Heater Development',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/Dads14PlugBFIWeb.jpg',
        alt:  'Push-Pull Plug Design',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/DrawingSeries02ArtisticForPower.jpg',
        alt:  'Current Solid Works / Mastercam',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/ElbowPolycarbonateBFIWeb.jpg',
        alt:  'Custom Polycarbonate Design',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/EnduroLinkSeriesSets.jpg',
        alt:  'EnduroLink UAV Fuel Coupler',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/FuelCoupler.jpg',
        alt:  'Shadow 200 UAV Coupler',
        from: '100% 80% 1x',
        to:   '100% 40% 1.1x',
        time: 6
      }, {
        src:  'img/crossfade/fin/KOLevelGauge.jpg',
        alt:  'Portable UAV Fueling Station',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MagnesiumFilter.jpg',
        alt:  'Magnesium Development',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MAVFilterBushBFIWeb.jpg',
        alt:  'Thin-Wall UAV Machining',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MAVPumpClearCloseBFIWeb.jpg',
        alt:  'Visual Flow Pump Housing',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MAVRESBFIWeb.jpg',
        alt:  'Automatic Level Control',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MAVRodLinkageBFIWeb.jpg',
        alt:  'Extreme Rod Linkage Design',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MAVStarterHubBaseBFIWeb.jpg',
        alt:  'T-Hawk Starter Hub',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MicroAirVehicle.jpg',
        alt:  'T-Hawk Evolution Support',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MicroAirVehicle2.jpg',
        alt:  'T-Hawk Gimbaled Payload',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/MinisarShadow.jpg',
        alt:  'AAI Shadow 200 OEM',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/NylonBalls.jpg',
        alt:  'Mini UAV Custom Parts',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/PumpElectronicBoard.jpg',
        alt:  'Electronic Pump Design & Fab',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/RQ7BUAV.jpg',
        alt:  'Shadow OEM Development Partner',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/SensorThreadedAndPump.jpg',
        alt:  'Electronics/Fuel/Pump Interface',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/ShadowHeaterIDBFIWeb.jpg',
        alt:  'UAV Fluid System Heater Development',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/SignBFILawn2010.jpg',
        alt:  'Single Location Cayuga, Canada',
        from: '100% 80% 1x',
        to:   '100% 40% 1.1x',
        time: 6
      }, {
        src:  'img/crossfade/fin/THawkMAV.jpg',
        alt:  'Honeywell Micro Air Vehicle Components',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }, {
        src:  'img/crossfade/fin/UAVFull.jpg',
        alt:  'UAV Fuel System Support',
        from: '100% 80% 1x',
        to:   '100% 0% 0.9x',
        time: 6
      }
    ], function(idx, img, idxOut, imgOut) {
      if (idxOut == undefined)
      {
        // starting single image phase, put up caption
        $('div.caption').text(img.alt).animate({ opacity: .7 })
      }
      else
      {
        // starting cross-fade phase, take out caption
        $('div.caption').animate({ opacity: 0 })
      }
    });
  });
