' + '
' + '
SHOW PHOTO DETAILS
'; } else { caption += $(this).find('figcaption').html() + getDetailsURL($(this).parent()) + getDownloadURL($(this).parent()) + showFBShare(); } } else { if (isMobile()) { caption += '
' + '
' + '
' + '
' + '
' + $(this).find('figcaption p').html() + '
' + getDetailsURL($(this).parent()) + getDownloadURL($(this).parent()) + showFBShare() + '
' + '
' + '
SHOW PHOTO DETAILS
'; } else { caption += '
' + '
' + $(this).find('figcaption p').html() + '
' + getDetailsURL($(this).parent()) + getDownloadURL($(this).parent()) + showFBShare(); } } return caption; }, afterLoad: function (instance, current) { //initial desktop view $(".fancybox-caption__body").addClass("a2a_kit").addClass("a2a_default_style"); if (isMobile()) $(".fancybox-caption__body").addClass("mobile"); }, afterShow: function (instance, current) { var $currentSlide = $(".fancybox-slide.fancybox-slide--current").parent().parent(); if (isMobile()) $currentSlide.find(".fancy-detail-link").on("touchstart", function () { captionToggle(); }); }, afterClose: function () { } })); let debounceTimer; $(window).on("resize", function (event) { if (isMobile()) return; if ($(".af3-caption-body").length > 0 && $(".af3-caption-body").css("height") != undefined) { event.stopImmediatePropagation(); $(".fancybox-caption__body").removeClass("half"); isDesktopInit = false; captionToggle(); debounceTimer = setTimeout(function () { clearTimeout(debounceTimer); debounceTimer = null; recalculateImageSize(); }, 1000); } }); function recalculateImageSize() { // Fancy box miscalculates because of race conditions with new layout var origImgWth = $(".fancybox-image").prop("naturalWidth"); var origImgHgt = $(".fancybox-image").prop("naturalHeight"); var winWth = $(window).innerWidth(); var winHgt = $(window).innerHeight() var ratio = Math.min(winWth / origImgWth, winHgt / origImgHgt); var newImgWth = (origImgWth * ratio); var newImgHgt = (origImgHgt * ratio); var dstTop = Math.floor((winHgt - newImgHgt)) / 2; var dstLeft = Math.floor((winWth - newImgWth)) / 2; $(".fancybox-content").removeAttr("style"); $(".fancybox-content").css("width", newImgWth + "px"); $(".fancybox-content").css("height", newImgHgt + "px"); $(".fancybox-content").css("transform", "translate(" + dstLeft + "px, " + dstTop + "px)"); } function captionToggle() { if ($(".fancybox-caption__body").hasClass("af3-caption-body")) { $(".af3-caption-body").stop(true, false).animate({ height: "0vh" }, 800, function () { // Animation complete. closeDetails(); }); $(".fancy-photo-detail-link").html($(".fancy-photo-detail-link").html().replace("CLOSE", "SHOW")); } else { $(".fancybox-caption__body").addClass("af3-caption-body"); $(".af3-caption-body").addClass(detailSize); $(".af3-caption-body").animate({ height: displayhgt }, 800); $(".fancybox-caption").addClass("af3-caption-bg"); $(".base-caption-info").addClass("full-height"); $(".fancy-photo-detail-link").addClass("photo-detail-gradient"); $(".fancybox-button").css("display", "none"); $(".fancy-photo-detail-link").html($(".fancy-photo-detail-link").html().replace("SHOW", "CLOSE")); $(".fancybox-caption__body").prepend(prependClosing()); $(".closing-box, .closingx").on("touchstart", function () { captionToggle(); }); } } function getDetailsURL(fbObj) { return 'DETAILS'; } function getDownloadURL(fbObj) { return 'DOWNLOAD'; } function showFBShare() { return ''; } function closeDetails() { $(".af3-caption-body").removeClass(detailSize); $(".fancybox-caption__body").removeClass("af3-caption-body"); $(".fancybox-caption").removeClass("af3-caption-bg"); $(".base-caption-info").removeClass("full-height"); $(".fancy-photo-detail-link").removeClass("photo-detail-gradient"); $(".fancybox-button").css("display", "block"); if (detailSize === "half") { detailSize = "full"; displayhgt = "90vh"; $(".fancybox-caption").removeClass("desktop-init"); } } function prependClosing() { return '
' } });
- Published
- By Jim O'Connell
- 92nd Air Refueling Wing Historian
In August 1942, the AAF contracted with Vega Aircraft Corporation to modify the second production B-17F to become the first XB-40 ('X' for experimental) and later renamed the YB-40 ('Y' for service test) gunship. Initially, the AAF ordered thirteen 13 YB-40s. Modifications included converting the bomb bay into an ammunition magazine and installing additional armor plating to protect the various crew positions.
The YB-40 could carry nearly triple the amount of ammunition - 11,200 rounds as compared to 3,900 rounds carried on a B-17F. Additional modifications included adding a chin turret with two .50 caliber light-barrel machine guns, replacing the single .50 caliber waist guns with staggered, twin-mounted emplacements and most notably adding a second manned dorsal turret installed in the former radio compartment. The YB-40 had 18 or more guns as compared to only 13 guns on the standard B-17F.
In May 1943, 12 YB-40s joined the 327th Bombardment Squadron, 92nd Bombardment Group at Royal Air Force Base Alconbury for operational tests. The thirteenth aircraft ran out of fuel and crash landed on an island near Scotland. The YB-40s flew their first operational mission on May 29,1943 in an attack against submarine pens and locks at Saint-Nazaire. The leadership quickly discovered that the YB-40s were unable to keep up with the B-17s, especially on the return from the target after the formation dropped their bombs. The YB-40s became more of a burden than a help to the formation as they fell behind. The YB-40s were nearly 4,000 pounds heavier than the standard, fully armed B-17.
Also, the YB-40 had significantly greater aerodynamic drag due to the additional gun stations. As a comparison, it took the B-17F only 25 minutes to climb to an altitude of 20,000 feet while it took the YB-40 48 minutes to climb to the same altitude. After participating in only ten missions, in August 1943, the YB-40s were withdrawn from service. A few months later, the first long-range fighter escorts with the P-51B and later P-51D Mustang began operations in Europe and eventually neutralized German fighters.
While the YB-40 concept proved a failure with the aircraft being too heavy and slow, the crews from the 92nd Bombardment Group provided some valuable lessons from the operational testing of the YB-40s. These lessons led to modifications conspicuous to the final production variant of the B-17 bomber, the B-17G as well as to the late production B-17Fs. These B-17s incorporated the chin turret, the offset waist gun positions which allowed for greater freedom of movement, and an improved tail gunner station with much larger windows. As a result, the later production B-17Fs and B-17Gs were more effective in defending themselves.