// src: pep-ui    
window.PEP = window.PEP || {};
window.PEP.Config = window.PEP.Config || {};
window.PEP.Config.SiteId = window.PEP.Config.SiteId || 'dcl';
window.PEP.Config.DEVICE_PROFILE = window.PEP.Config.DEVICE_PROFILE || {"IS_MOBILE":false,"IS_DESKTOP":true,"IS_TABLET":false,"IS_IPAD":false};
window.PEP.Config.PreferredLanguage = window.PEP.Config.PreferredLanguage || "en-us";
window.PEP.Config.BaseUrlLocale = window.PEP.Config.BaseUrlLocale || "en-us";
window.PEP.Config.Toggles = window.PEP.Config.Toggles || {"Feature":{"dclDarkTheme":true,"enableMemoryMaker":true,"finderUseUrlFriendlyIdsForLocations":true,"finderMapFacilityServiceSnapshotServiceEnabledForCoreData":true,"finderMapFacilityServiceSnapshotServiceEnabled":true,"finderTypeDestinations":true,"finderHideMyPlans":true,"finderDetailsEnableShopDetailsPages":true,"finderDetailsDiningEventsInclusive":true,"finderMapFacilityServiceStorageEnabled":true,"finderMapFacilityServiceValidationEnabled":true,"finderMapFacilityServiceFilteringEnabled":true,"finderMapFacilityServiceBypassFilteringForProducts":true,"authzIntegrationUseFullDomainPath":true,"myWishList":true,"enableUrlRewriting":true,"enableSiteSpecificTimeZones":true,"participantsCanRemoveThemselvesFromDiningReservation":true},"Flow":{"homepageRightRailFastPass":true,"analyticsFramework":true,"finderListingFacetsAnalyticsTracking":true,"enableDayGuestTicketLinkingInGuideMe":true,"responsiveHelpAndSupport":true,"responsiveSearch":true,"enableCartPlusResponsive":true,"memoryMakerPermissions":true,"showMagicBandTrackingData":true,"finderFacetTracking":true,"VGFResortEnable":true,"rfidCardManagement":true,"magicBandTease":true,"fastPassPlus":true,"photoPass":true,"magicBand":true,"annualPassholderAffiliations":true,"memoryMaker":true,"personalMagic":true,"ticket":true,"onlineCheckIn":true,"mmPlusRollout":true,"mainEntrancePassFunctionality":true,"pleaseWait":true,"restrictMagicBandCountryList":true,"finderResponsiveLazyLoad":true,"authzIntegration":true,"DPVBResortEnable":true,"enableGffPreorderRestrictions":true,"enableDisneyWorldAnnualProduct":true,"ticketModsEnabled":true,"dclDarkTheme":true,"checkoutRequireGovtId":true,"enableClaimFlowLogs":true,"newItineraryDayViewAccess":true,"newMyReservationsPageAccess":true,"ticketsEnabled":true,"ticketModsConsumerEnabled":true,"ticketModsTradeEnabled":true,"ticketsThemeParkEnabled":true,"ticketsSpecialEventEnabled":true,"ticketsWaterParkEnabled":true,"ticketsNBAExperienceEnabled":true,"ticketsMemoryMakerEnabled":true,"ticketsParkingEnabled":true},"Release":{"enableLodgingXUp":true,"finderResponsiveAsynchronousLoad":true,"enableUniversalHomepageQuickQuote":true,"ticketsAPEnhancements":true,"finderCalendarsMonthView":true,"displayZeroDollarFlow":true,"hazardousMaterialsAck":true,"disableExpirationDate":true,"enhancedRetrievePage":true,"putAnalyticsModelInMetaTag":true,"clearSensitiveFormData":true,"cartPhotoPass":true,"profileEnableDisneyIdAuthZ":true,"profileEnableECommerceAddressValidation":true,"pricingSummaryReArchBookingRoomOnly":true,"pricingSummaryReArchBookingPackages":true,"enableAnnualPassLink":true,"magicBandEnableGraphicDesign":true,"backendHoldDaysWdw":true,"backendHoldDaysDlr":true,"profileMepAddGuestPlugin":true,"profileFnFTypeAheadServiceCallMigration":true,"profileMyMagicPlusTypeAheadPlugin":true,"signInSignOutLink":true,"guideMeWithTaAndDwm":true,"profileMct20Compliance":true,"updateGuestDineReservationWithTaAndDwm":true,"apRenewalLandingPageWdw":true,"apRenewalLandingPageDlr":true,"dineWithTaAndDwm":true,"expressCheckoutDvicBanner":true,"directToRoom":true,"dlrDinePrepay":true,"childRegMovedToOlci":true,"pricingSummaryReArchBookingTickets":true,"profileEnableGuestControllerVersionFive":true,"pricingSummaryReArchBookingDoubleDeckerPackage":true,"dclEdocsSecureLink":true,"finderCalendarsFacet":true,"livePersonPlatform":true,"removeOlciGate":true,"dclTravelAgentManagedPlans":true,"expressCheckoutFlight":true,"profileEnableDisneyId":true,"profileJwtAuthentication":true,"expressCheckoutPaymentModernization":true,"profileEncryptedCsrf":true,"finderEnableElasticsearch":true,"profileSnowballRedesign":true,"myPlansSpaIsReleased":true,"olciSfToRoomCheckinApiMigration":true,"profileEnableEpcMarketingText":true,"profileRemoveSwidCookies":true,"profileStartMDXClearCookies":true,"confirmationRedesignEnhanced":true,"CareGiverFilter":true,"destinationInTermsAndConditions":true,"magicBandEnableBuildABand":true,"expressCheckoutMarketingOptExclution":true,"enableAccertifyBeacon":true,"prioritizeDcmOnConfirmationPage":true,"expressCheckoutCreditCardTranslationsOverride":true,"enableAccertifyData":true,"billingAddressErrorCopy":true,"cartPageSplunkErrorFix":true,"internationalizationLanguageToggle":true,"enableDirectToRoom2":true,"inlineFieldValidationErrors":true,"fixAnalyticsEmptyProducts":true,"inlineErrorsLog":true,"bypassTravelAgencyEndpoint":true,"enableBoltNbaExperienceTicketSales":true,"buildABandShowPremiumBandNotice":true,"useMySAddStateErr":true,"showGiftCardAsPaymentRoomOnlyDlr":true,"cartErrorsLogRestriction":true,"useMyShippingAddressTruncateFix":true,"AddRoomFormLogErr":true,"useMyShippingBlockedByPhone":true,"purchaseClickLog":true,"ariaExpandedAttributeEcCart":true,"finderEnableSearchService":true,"enableDTRUrgencyMessaging":true,"enableTutorial":true,"enableSearchServiceFaq":true,"saveReservationDataOnCookie":true,"giftCardSubTypeForMod":true,"enableNonStdExpAccess":true,"enableDTRPhase2":true,"expressCheckoutEnableAlertIcon":true,"fallbackExpirationFromPaymentForm":true,"autocompleteGuestPrefix":true,"enableEA":true,"fieldsetFormControlsPaymentSectionEc":true,"dclAwsMigrationSwitch":true,"profileEnableLightbox":true,"vcoWidgetScopeToggle":true,"enableFloridaResidencyFallback":true}};
PEP.syndication =  PEP.syndication || {};
PEP.syndication.firstRun = (PEP.syndication.firstRun !== undefined) ? PEP.syndication.firstRun : true;
PEP.isPepSyndicated = PEP.isPepSyndicated || false;
var head = document.getElementsByTagName('head')[0];
(function () {
    function init() {
        var temp = document.createElement('div'),
            target = document.getElementById('dcl-footer'),
            syndicationBundle = PEP.isPepSyndicated ?
                '//secure.cdn5.wdpromedia.com/media/pep/live/media/modules/syndicated/bd89e8-globalSyndicationBundle.simplified.min.js' :
                '//secure.cdn5.wdpromedia.com/media/pep/live/media/modules/syndicated/20ed4f-globalSyndicationBundle.js';
                    var fontObserverFragment = document.createDocumentFragment();
            fontObserverFragment.appendChild(createJSElement('//secure.cdn2.wdpromedia.com/media/pep/live/media/site/js/dfd173-fontFaceObserverBundle.min.js'));
            head.appendChild(fontObserverFragment);
        
        // Write styles and scripts to head
        // only ever do this once per page so that we do not double up when we syndicate both header and footers

                setTimeout(function() {
        
        if (PEP.syndication.firstRun) {
            PEP.syndication.firstRun = false;
            var jsFragment = document.createDocumentFragment();

            temp.innerHTML = "<style type=\"text\/css\"> .pepSyndicatedComponent { display: none; }<\/style><link href=\"\/\/secure.cdn4.wdpromedia.com\/media\/pep\/live\/media\/site\/css\/syndication\/4b6e1d-screen.globalSyndication.responsiveMode.css\" media=\"screen\" rel=\"stylesheet\" type=\"text\/css\" ><link href=\"\/\/secure.cdn1.wdpromedia.com\/media\/pep\/live\/media\/site\/css\/1a4e29-fontFace.css\" media=\"screen\" rel=\"stylesheet\" type=\"text\/css\" ><link href=\"\/\/secure.cdn3.wdpromedia.com\/media\/pep\/live\/media\/site\/css\/ui-plus\/1fd144-dclmdx-icons.css\" media=\"screen\" rel=\"stylesheet\" type=\"text\/css\" ><link href=\"\/\/secure.cdn4.wdpromedia.com\/media\/pep\/live\/media\/site\/css\/layout\/468fec-gsc-theme.css\" media=\"screen\" rel=\"stylesheet\" type=\"text\/css\" ><script type=\"text\/javascript\">\n    \/\/<!--\n    var _cookieName = \"WDPROView\";var _cookieVersion = 2;var _cookieDomain = \"\";var _cookiePath = \"\/\";    \/\/-->\n<\/script>\n<script type=\"text\/javascript\" src=\"\/\/secure.cdn4.wdpromedia.com\/media\/pep\/live\/media\/shared\/wdpro-js\/responsive\/device\/14c582-wdpro.device.profiling.js\"><\/script>\n<script type=\"text\/javascript\">\n    \/\/<!--\n    if (typeof WDPRO_DeviceProfiling != \"undefined\" && WDPRO_DeviceProfiling.preferredView === undefined) { WDPRO_DeviceProfiling.init(); }    \/\/-->\n<\/script>";
            if (!document.querySelector('script[src*="otSDKStub.js"]')) {
                            }
            while (temp.firstChild) {
                // filter out text nodes if they exist. We do not want those in the head
                if (temp.firstChild.nodeType === 3) {
                    temp.removeChild(temp.firstChild);
                } else {
                    head.appendChild(temp.firstChild);
                }
            }

                            if (typeof jQuery === 'undefined') {
                    readyJS(head.appendChild(createJSElement('//secure.cdn2.wdpromedia.com/media/pep/live/media/shared/wdpro-js/lib/jquery/895323-jquery-1.11.3.min.js')));
                    readyJS(head.appendChild(createJSElement('//secure.cdn4.wdpromedia.com/media/pep/live/media/site/js/jquery/pepJqueryShim/611972-jquery.deprecated.shim.js')));
                    readyJS(head.appendChild(createJSElement('//secure.cdn1.wdpromedia.com/media/pep/live/media/shared/jquery-ui/js/2b2a5e-jquery-ui.min.js')));
                } else if (typeof jQuery.ui === 'undefined') {
                    readyJS(head.appendChild(createJSElement('//secure.cdn4.wdpromedia.com/media/pep/live/media/site/js/jquery/pepJqueryShim/611972-jquery.deprecated.shim.js')));
                    readyJS(head.appendChild(createJSElement('//secure.cdn1.wdpromedia.com/media/pep/live/media/shared/jquery-ui/js/2b2a5e-jquery-ui.min.js')));
                }

                if (typeof Modernizr === 'undefined') {
                    readyJS(head.appendChild(createJSElement('//secure.cdn4.wdpromedia.com/media/pep/live/media/shared/wdpro-js/lib/modernizr/72dd58-modernizr-version.min.js')));
                }

                var scriptList = [
                    '//secure.cdn3.wdpromedia.com/media/pep/live/media/modules/syndicated/f618fc-globalSyndication.min.js',
                    syndicationBundle
                ];

                waitOnJqueryReadyJS(scriptList);

                    }

        var content = "<div id=\"pageContainerSyndicated\"class=\"pepSyndicatedComponent responsive-mode  dsf-loading \"><div class=\"icon-web-font dcl\"><div class=\"pepGlobalFooter\"><div class=\"wdwFooter\"><div class=\"horizontalSeparator fullWidth clearfix\"><\/div><div class=\"drcCta\"><ul class=\"drcCtaList\"><li class=\"title\">For assistance with your Disney Cruise, please call <a href=\"tel:\/\/800-951-3532\" target=\"_self\" class=\"phone\">(800) 951-3532<\/a>.<\/li><li class=\"subtitle\">Monday through Friday, 8:00 AM to 10:00 PM Eastern time; Saturday and Sunday, 9:00 AM to 8:00 PM Eastern time.<\/br>Guests under 18 years of age must have parent or guardian permission to call.<\/li><\/ul><div  class=\"horizontalSeparator horizontalSeparator fullWidth  promoBottomSeparator m-hide\">\n<\/div><\/div>\n<div class=\"mobileMoreLinks\" id=\"mobileMoreLinks\" data-plugins=\"[[&quot;pepAccordion&quot;,{&quot;selectors&quot;:{&quot;head&quot;:&quot;#mobileMoreLinks&quot;,&quot;content&quot;:&quot;#footer-lists-responsive-syndicated&quot;,&quot;internalTag&quot;:&quot;.triggerContainer&quot;}}]]\">\n    <div class=\"triggerContainer\">\n        <span class=\"icon icon--dcl\" aria-hidden=\"true\"><span class=\"icon__norgie-closed\" ><\/span><\/span>        <a id=\"triggerMoreLinks\"\n            role=\"button\"\n            tabindex=\"0\"\n            aria-expanded=\"false\"\n            aria-controls=\"footer-lists-responsive-syndicated\">\n            Show More Links        <\/a>\n    <\/div>\n<\/div>\n<div id=\"footer-lists-responsive-syndicated\" role=\"region\" aria-labelledby=\"triggerMoreLinks\"><div class=\"footer-lists\">\n<div class=\"row\"><section class=\"main-link-group-section \"><h5 class=\"list-item title-item\">Things to Do<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_OnboardActivities\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/overview\/\">Onboard Activities<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_CharacterExperiences\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/list\/character-experiences\/\">Character Experiences<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_DeckParties\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/list\/deck-parties\/\">Deck Parties<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Dining\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/list\/dining\/\">Dining<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_LiveShowsEntertainment\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/list\/live-shows-entertainment\/\">Live Shows & Entertainment<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_NightclubsLounges\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/list\/nightclubs-lounges\/\">Nightclubs & Lounges<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_SpaFitness\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/list\/spa-salon,sports-recreation\/\">Spa & Fitness<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_YouthClubs\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/list\/youth-clubs\/\">Youth Clubs<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Pools\" href=\"https:\/\/disneycruise.disney.go.com\/onboard-activities\/list\/pools\/\">Pools<\/a><\/li><\/ul><\/nav><h5 class=\"list-item title-item\">Ships<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Magic\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/magic\/\">Disney Magic<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Wonder\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/wonder\/\">Disney Wonder<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Dream\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/dream\/\">Disney Dream<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Fantasy\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/fantasy\/\">Disney Fantasy<\/a><\/li><\/ul><\/nav><\/section><section class=\"main-link-group-section \"><h5 class=\"list-item title-item\">Staterooms<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_DisneyMagicStaterooms\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/magic\/staterooms-overview\/\">Disney Magic Staterooms<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_DisneyWonderStaterooms\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/wonder\/staterooms-overview\/\">Disney Wonder Staterooms<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_DisneyDreamStaterooms\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/dream\/staterooms-overview\/\">Disney Dream Staterooms<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_DisneyFantasyStaterooms\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/fantasy\/staterooms-overview\/\">Disney Fantasy Staterooms<\/a><\/li><\/ul><\/nav><h5 class=\"list-item title-item\">Cruises & Destinations<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Find_a_Cruise\" href=\"https:\/\/disneycruise.disney.go.com\/cruises-destinations\/list\/\">Find a Cruise<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Departure_Ports_\" href=\"https:\/\/disneycruise.disney.go.com\/ports\/overview\/departure-ports\/\">Departure Ports<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Special_Offers\" href=\"https:\/\/disneycruise.disney.go.com\/special-offers\/\">Special Offers<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Land_and_Sea_Vacations\" href=\"https:\/\/disneycruise.disney.go.com\/featured\/packages\/land-sea\/\">Land and Sea Vacations<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Florida_Cruises\" href=\"https:\/\/disneycruise.disney.go.com\/featured\/florida-cruises\/\">Florida Cruises<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Port_Adventures\" href=\"https:\/\/disneycruise.disney.go.com\/port-adventures\/overview\/\">Port Adventures<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Packages\" href=\"https:\/\/disneycruise.disney.go.com\/featured\/adventures\/\">Adventures by Disney<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Packages\" href=\"https:\/\/disneycruise.disney.go.com\/featured\/packages\/\">Vacation Packages<\/a><\/li><\/ul><\/nav><\/section><\/div><div class=\"row\"><section class=\"main-link-group-section \"><h5 class=\"list-item title-item\">Interactive Deck Plans<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Interactive_Deck_Plans_Disney_Magic\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/deck-plans\/magic\/\">Disney Magic<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Interactive_Deck_Plans_Disney_Wonder\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/deck-plans\/wonder\/\">Disney Wonder<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Interactive_Deck_Plans_Disney_Dream\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/deck-plans\/dream\/\">Disney Dream<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Interactive_Deck_Plans_Disney_Fantasy\" href=\"https:\/\/disneycruise.disney.go.com\/ships\/deck-plans\/fantasy\/\">Disney Fantasy<\/a><\/li><\/ul><\/nav><h5 class=\"list-item title-item\">Help<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_FAQs\" href=\"https:\/\/disneycruise.disney.go.com\/faq\/\">Frequently Asked Questions<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Guest_Services\" href=\"https:\/\/disneycruise.disney.go.com\/guest-services\/\">Guest Services<\/a><\/li><li class=\"list-item\"><a target=\"_self\" href=\"https:\/\/plandisney.disney.go.com\/destinations\/disney-cruise-line\/\">planDisney<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Contact_Us\" href=\"https:\/\/disneycruise.disney.go.com\/help\/email\/\">Contact Us<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Guests_with_Disabilities\" href=\"https:\/\/disneycruise.disney.go.com\/guest-services\/guests-with-disabilities\/\">Guests with Disabilities<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Site_Map\" href=\"https:\/\/help.disney.com\/\">Site Map<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Website_Terms_and_Conditions\" href=\"https:\/\/disneycruise.disney.go.com\/website-terms-conditions\/\">Website Terms and Conditions<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Booking_Terms_and_Conditions\" href=\"https:\/\/disneycruise.disney.go.com\/contracts-terms-safety\/terms-conditions\/\">Booking Terms and Conditions<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Safety_and_Security\" href=\"https:\/\/disneycruise.disney.go.com\/safety-and-security\/\">Safety and Security<\/a><\/li><li class=\"list-item\"><a target=\"_self\" href=\"https:\/\/disneycruise.disney.go.com\/contracts-terms-safety\/vacation-protection-plan\/?int_cmp=INS-intDCLtoDCL-Insurance\">Disney Cruise Line Vacation Protection Plan<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Website_Terms_and_Conditions\" href=\"http:\/\/www.disneycruise.com\/cruisecontract\">Cruise Contract<\/a><\/li><\/ul><\/nav><\/section><section class=\"main-link-group-section \"><h5 class=\"list-item title-item\">Plan & Manage<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyCruise_MyReservations\" href=\"https:\/\/disneycruise.disney.go.com\/my-disney-cruise\/my-reservations\/\">My Reservations<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyCruise_MyOnlineCheckIn\" href=\"https:\/\/disneycruise.disney.go.com\/my-disney-cruise\/my-reservations\/\">My Online Check-In<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyCruise_MyCruiseActivities\" href=\"https:\/\/disneycruise.disney.go.com\/my-disney-cruise\/my-reservations\/\">My Cruise Activities<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyCruise_MakeAPayment\" href=\"https:\/\/disneycruise.disney.go.com\/my-disney-cruise\/my-reservations\/\">Make a Payment<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyCruise_TravelPartnerLogin\" href=\"https:\/\/disneycruise.disney.go.com\/travel-agent-login\/\">Travel Agent Login<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyCruise_CruisePlanningTools\" href=\"https:\/\/disneycruise.disney.go.com\/cruise-planning-tools\/\">Cruise-Planning Tools<\/a><\/li><li class=\"list-item\"><a target=\"_self\" href=\"https:\/\/disneycruise.disney.go.com\/featured\/first-time-cruise-tips\/\">New to Cruising Tips<\/a><\/li><\/ul><\/nav><h5 class=\"list-item title-item\">My Account<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyAccount_MyProfile\" href=\"https:\/\/disneycruise.disney.go.com\/profile\/\">My Profile<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyAccount_MyFamilyAndFriends\" href=\"https:\/\/disneycruise.disney.go.com\/profile\/family-friends\/\">My Family & Friends<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_MyAccount_CastawayClub\" href=\"https:\/\/disneycruise.disney.go.com\/castaway-club\/\">Castaway Club<\/a><\/li><\/ul><\/nav><h5 class=\"list-item title-item\">Before You Go<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Cruise_Line_Navigator_App\" href=\"https:\/\/disneycruise.disney.go.com\/featured\/navigator-app\/\">Disney Cruise Line Navigator App<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Cruise_Line_Photography_Services\" href=\"https:\/\/disneycruise.disney.go.com\/featured\/photo-packages\/\">Photography<\/a><\/li><li class=\"list-item\"><a target=\"_blank\" name=\"&amp;lid=DCL_Footer_MyCruise_InRoomGifts\" href=\"https:\/\/disneycruise.disney.go.com\/gifts-and-amenities\/\">Onboard Gifts<\/a><\/li><li class=\"list-item\"><a target=\"_self\" href=\"https:\/\/disneycruise.disney.go.com\/guest-services\/passport-travel-documentation\/\">Travel Documentation <\/a><\/li><\/ul><\/nav><h5 class=\"list-item title-item\">News & Press<\/h5><nav><ul><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Cruise_Line_News\" href=\"http:\/\/dclnews.com\/\">Disney Cruise Line News<\/a><\/li><li class=\"list-item\"><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Cruise_Line_Awards\" href=\"https:\/\/disneycruise.disney.go.com\/featured\/awards-accolades\/\">Disney Cruise Line Awards<\/a><\/li><\/ul><\/nav><\/section><\/div><\/div>\n<div class=\"horizontalSeparator fullWidth clearfix\"><\/div>\n<ul class=\"subSection socialMediaAndRequestInformationContainer\">\n            <li class=\"stayConnected socialMediaItem\">\n            <div role=\"heading\" aria-level=\"3\" class=\"sectionTitle\">Stay Connected<\/div>\n            <div class=\"stayConnectedItems\">\n                                    <span class=\"stayConnectedSite\">\n                        <a title=\"Facebook\" name=\"&amp;lid=DCL_Footer_Facebook\" target=\"_blank\" href=\"https:\/\/www.facebook.com\/DisneyCruiseLine\/\"><span class=\"icon facebook\"><\/span><span class=\"iconTitle\">Facebook<\/span><\/a>                    <\/span>\n                                    <span class=\"stayConnectedSite\">\n                        <a title=\"Twitter\" name=\"&amp;lid=DCL_Footer_Twitter\" target=\"_blank\" href=\"https:\/\/twitter.com\/DisneyCruise\/\"><span class=\"icon twitter\"><\/span><span class=\"iconTitle\">Twitter<\/span><\/a>                    <\/span>\n                                    <span class=\"stayConnectedSite\">\n                        <a title=\"Pinterest\" name=\"&amp;lid=DCL_Footer_Pinterest\" target=\"_blank\" href=\"https:\/\/www.pinterest.com\/disneycruiseline\/\"><span class=\"icon pinterest\"><\/span><span class=\"iconTitle\">Pinterest<\/span><\/a>                    <\/span>\n                                    <span class=\"stayConnectedSite\">\n                        <a title=\"Instagram\" name=\"&amp;lid=DCL_Footer_Instagram\" target=\"_blank\" href=\"https:\/\/instagram.com\/disneycruiseline\/\"><span class=\"icon instagram\"><\/span><span class=\"iconTitle\">Instagram<\/span><\/a>                    <\/span>\n                                    <span class=\"stayConnectedSite\">\n                        <a title=\"YouTube\" name=\"&amp;lid=DCL_Footer_Youtube\" target=\"_blank\" href=\"https:\/\/www.youtube.com\/user\/DisneyCruiseLineNews\/\"><span class=\"icon youtube\"><\/span><span class=\"iconTitle\">YouTube<\/span><\/a>                    <\/span>\n                            <\/div>\n        <\/li>\n                    <li class=\"exploreDisneyParks usingClassicKeys socialMediaItem\">\n            <div role=\"heading\" aria-level=\"3\" class=\"sectionTitle\">Disney Parks<\/div>\n            <div class=\"socialContent\">\n                                                    <div class=\"exploreDisneyParksLinks\">\n                        <a target=\"_blank\" href=\"https:\/\/www.youtube.com\/playlist?list=PL935940FDCE63ED3C\"><span class=\"icon youtube\"><\/span><span class=\"iconTitle\">YouTube<\/span><\/a>                    <\/div>\n                                                                    <div class=\"exploreDisneyParksLinks\">\n                        <a target=\"_blank\" href=\"https:\/\/disneyparks.disney.go.com\/blog\/destinations\/disney-cruise-line\/\"><span class=\"icon blog\"><\/span><span class=\"iconTitle\">Blog<\/span><\/a>                    <\/div>\n                            <\/div>\n        <\/li>\n                    <div class=\"clearfix-divider\"><\/div>\n            <li class=\"planningDvd socialMediaItem\">\n            \n                <h3 class=\"sectionTitle\">\n                    Vacation Planning Video                <\/h3>\n                <a name=\"&amp;lid=DCL_Footer_Other_FreeVacationPlanningDVD\" title=\"\" target=\"_self\" href=\"https:\/\/disneycruise.disney.go.com\/cruise-planning-tools\/\"><span id=\"planningDvdIcon\"><img src=\"https:\/\/secure.parksandresorts.wdpromedia.com\/resize\/mwImage\/1\/50\/50\/90\/wdpromedia.disney.go.com\/media\/wdpro-assets\/dcl\/homepage\/promos\/vacation-planning-icon-180.png\" alt=\"Vacation Planning Video\" data-alt-src=\"\" onerror=\"PEP.global.handleImageError(this)\"><\/span><\/a>                <div id=\"planningDvdText\">\n                    Start preparing for your dream Disney cruise.<a class=\"footerSectionLink\" title=\"\" target=\"_self\" name=\"&amp;lid=DCL_Footer_Other_FreeVacationPlanningDVD\" href=\"https:\/\/disneycruise.disney.go.com\/cruise-planning-tools\/\">Watch now<\/a>                <\/div>\n                        <\/li>\n    \n    \n            \n<\/ul>\n\n\n<div id=\"disneyParksUpdatesModal\" data-plugins='[[\"pepModalUIPlus\",{\"dialogLauncher\":\".disneyParksOpenModal\",\"modal\":true,\"isForm\":true,\"backgroundClose\":false}]]' class=\"hide\">\n    <div class=\"disneyParksUpdatesModalContent\" data-plugins=\"[[&quot;pepDisneyParksUpdatesSignUpModal&quot;,{&quot;newsLetterUrl&quot;:&quot;https:\\\/\\\/disneycruise.disney.go.com\\\/global-footer\\\/index\\\/news-letter\\\/&quot;}],[&quot;pepClientSideValidationWithEvent&quot;,{&quot;submitOnSuccess&quot;:false,&quot;onSuccess&quot;:{&quot;target&quot;:&quot;.disneyParksUpdatesModalContent&quot;,&quot;plugin&quot;:&quot;pepDisneyParksUpdatesSignUpModal&quot;,&quot;method&quot;:&quot;showThankYouModal&quot;},&quot;strFormSelector&quot;:&quot;#disneyParksUpdatesForm&quot;}]]\">\n        <div id=\"disneyParksUpdatesSignUpModal\" class=\"uiPlus\"><h3 class=\"modalTitle\" tabindex=\"-1\"><\/h3><p><\/p><form method=\"post\" id=\"disneyParksUpdatesForm\" data-pageLevelErrorSelector=\".pageLevelErrorContainer\" class=\" jsvfForm\" data-pageLevelA11yMessage=\"&nbsp; Please correct the errors on these fields: \" data-fieldLevelA11yMessage=\".&nbsp; There is an error on this field. The error is: \" data-plugins=\"[&quot;pepAutoValidators&quot;]\" data-errorReporter=\"\" data-content-ErrorReporterAlert=\"&lt;div id=&quot;pageLevelError&quot; class=&quot;pageLevelError&quot;&gt;&lt;span class=&quot;mdxAlertIcon mdxFont&quot; aria-hidden=&quot;true&quot;&gt;&amp;#57920;&lt;\/span&gt;&lt;div class=&quot;message&quot; tabindex=&quot;-1&quot;&gt;&lt;span class=&quot;accessibleAltText&quot;&gt;Error: &lt;\/span&gt;&lt;span class=&quot;genericValidationErrorMessage&quot;&gt;Sorry, there are one or more errors on this page.&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;\" data-container-selector-ErrorReporterAlert=\".pageAlertErrorContainer, .pageLevelErrorContainer\"><input type=\"hidden\" name=\"signUpLanguage\" id=\"signUpLanguage\" value=\"E\"><div class=\"disneyParksSubscribeEmailField\"><div class=\"jsvfElement formInputElement      \" data-plugins=\"[&quot;pepClientSideValidatorToggle&quot;]\" id=\"disneyParksSubscribeEmailFieldid-base\"><label for=\"disneyParksSubscribeEmailField\" class=\"required\"><span class=\"labelValue\">Email Address<\/span><span class=\"accessibleAltText\">&nbsp;required <\/span><\/label>\n\n<div class=\"textInput standardFormElement  \">\n\n<input type=\"text\"  name=\"email\" id=\"disneyParksSubscribeEmailField\"\n value=\"\" data-plugins=\"[&quot;pepTextInput&quot;]\"\n   data-validation-events=\"submit\" required=\"\" data-validators=\"[[[&quot;NotEmpty&quot;,&quot;true&quot;,null,{&quot;isEmpty&quot;:&quot;Enter a valid email address. Please use the following format: mickeymouse@disney.com&quot;,&quot;notEmptyInvalid&quot;:&quot;Invalid type given. String, integer, float, boolean or array expected&quot;}],[&quot;EmailAddress&quot;,&quot;true&quot;,null,{&quot;emailAddressInvalid&quot;:&quot;Invalid type given. String expected&quot;,&quot;emailAddressInvalidFormat&quot;:&quot;Enter a valid email address. Please use the following format: mickeymouse@disney.com&quot;,&quot;emailAddressInvalidHostname&quot;:&quot;'%hostname%' is not a valid hostname for email address '%value%'&quot;,&quot;emailAddressInvalidMxRecord&quot;:&quot;'%hostname%' does not appear to have a valid MX record for the email address '%value%'&quot;,&quot;emailAddressInvalidSegment&quot;:&quot;'%hostname%' is not in a routable network segment. The email address '%value%' should not be resolved from public network&quot;,&quot;emailAddressDotAtom&quot;:&quot;'%localPart%' can not be matched against dot-atom format&quot;,&quot;emailAddressQuotedString&quot;:&quot;'%localPart%' can not be matched against quoted-string format&quot;,&quot;emailAddressInvalidLocalPart&quot;:&quot;'%localPart%' is not a valid local part for email address '%value%'&quot;,&quot;emailAddressLengthExceeded&quot;:&quot;'%value%' exceeds the allowed length&quot;}]]]\" class=\"inputElement\" data-errorAppendSelector=\".textInput\">\n<\/div><\/div><\/div><div  class=\"horizontalSeparator\">\n<\/div>\n<button name=\"submitButton\" id=\"disneyParksSubscribeSignUpButton\" type=\"submit\" class=\"pillSubmit\" data-plugins=\"[&quot;pepActiveStyleSupport&quot;]\"><span  class=\"pillBase primary \">\n    <span class=\"gradient\">\n        <span class=\"buttonText\">Sign Up<\/span>\n    <\/span>\n<\/span><\/button>\n<button name=\"cancelButton\" id=\"disneyParksSubscribeCancelButton\" type=\"button\" class=\"pillSubmit\" data-plugins=\"[&quot;pepActiveStyleSupport&quot;]\"><span  class=\"pillBase secondary \">\n    <span class=\"gradient\">\n        <span class=\"buttonText\">Close<\/span>\n    <\/span>\n<\/span><\/button><\/form><\/div><div id=\"disneyParksUpdatesSignUpThankYouModal\"><div class=\"disneyParksSubscribeSuccess\"><h3 class=\"modalTitle\"><\/h3><p><\/p><ul><li><a href=\"https:\/\/disneycruise.disney.go.com\/\"><\/a><\/li><li><a class=\"signUpAnotherEmail\" href=\"https:\/\/disneycruise.disney.go.com\/\"><\/a><\/li><\/ul><div  class=\"horizontalSeparator\">\n<\/div>\n<button name=\"succcessButton\" id=\"succcessButton\" type=\"submit\" class=\"successCloseButton pillSubmit\" data-plugins=\"[&quot;pepActiveStyleSupport&quot;]\"><span  class=\"successCloseButton pillBase primary \">\n    <span class=\"gradient\">\n        <span class=\"buttonText\">Close<\/span>\n    <\/span>\n<\/span><\/button><\/div><\/div>    <\/div>\n<\/div>\n<ul class=\"subSection languageAndRelatedSitesContainer\">\n\n    <li >\n        <ul class=\"wdwFooterRelatedSitesBlock\">\n            <li class=\"wdwFooterTitle\">\n                <div role=\"heading\" aria-level=\"3\">Related Disney Sites<\/div>\n            <\/li>\n            <li class=\"wdwFooterSitesColumn footerColumn\" id=\"wdwFooterSitesColumn1\"><ul class=\"wdwFooterGroup\"><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Walt_Disney_World\" href=\"https:\/\/disneyworld.disney.go.com\/\">Walt Disney World<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disneyland\" href=\"https:\/\/disneyland.disney.go.com\/\">Disneyland<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Vacation_Club\" href=\"https:\/\/disneyvacationclub.disney.go.com\/\">Disney Vacation Club<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Walt_Disney_World\" href=\"https:\/\/www.disneyinstitute.com\/\">Disney Institute<\/a><\/li><\/ul><\/li><li class=\"wdwFooterSitesColumn footerColumn\" id=\"wdwFooterSitesColumn2\"><ul class=\"wdwFooterGroup\"><li><a target=\"_self\" name=\"&amp;lid=WDW_Footer_RelatedDisneySites_DisneyGiftCard\" href=\"https:\/\/www.disneygiftcard.com\/\">Disney Gift Card<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Adventures_By_Disney\" href=\"https:\/\/www.adventuresbydisney.com\/\">Adventures by Disney<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney's_PhotoPass_Service\" href=\"https:\/\/www.espnwwos.com\/\">ESPN Wide World of Sports<\/a><\/li><\/ul><\/li><div class=\"clearfix-divider\"><\/div><li class=\"wdwFooterSitesColumn footerColumn\" id=\"wdwFooterSitesColumn3\"><ul class=\"wdwFooterGroup\"><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_PlanDisney\" href=\"https:\/\/plandisney.disney.go.com\/\">planDisney<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney's_PhotoPass_Service\" href=\"https:\/\/mydisneyphotopass.disney.go.com\/\">Disney PhotoPass Service<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Youth_Groups\" href=\"http:\/\/www.disneyyouth.com\/\">Disney Youth Programs<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disney_Merchandise_Online\" href=\"https:\/\/www.rundisney.com\/\">runDisney<\/a><\/li><\/ul><\/li><li class=\"wdwFooterSitesColumn footerColumn\" id=\"wdwFooterSitesColumn4\"><ul class=\"wdwFooterGroup\"><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disneyweddings.com\" href=\"https:\/\/www.disneyplus.com\/\">Disney+<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disneymeetings.com\" href=\"https:\/\/www.disneymeetingsandevents.com\/\">Disney Meetings & Events<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Golden_Oak\" href=\"https:\/\/www.disneygoldenoak.com\/\">Golden Oak<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Disneyweddings.com\" href=\"https:\/\/www.disneyweddings.com\/\">Disney\u2019s Fairy Tale Weddings & Honeymoons<\/a><\/li><\/ul><\/li>        <\/ul>\n    <\/li>\n<\/ul>\n<\/div><\/div><footer class=\"d-all t-all m-all\">\n<div id=\"wdwLegalFooter\" >\n    <div id=\"gde_footerContainer\">\n        <div id=\"gde_footerContents\">\n                        <div id=\"gde_footerLegalContainer\">\n                                <div class=\"gde_footerLegalLinks\">\n                    <ul>\n                                                <li>\n                            <a class=\"guestServicesModalOpener\" target=\"_self\" name=\"&amp;lid=global_footer\/legal\/guest_service\" href=\"https:\/\/disneycruise.disney.go.com\/#\">Help & Guest Services<span class=accessibleText> - Opens Dialog<\/span><\/a><div id=\"guestServicesModalOpener\" data-plugins='[[\"pepModalUIPlus\",{\"dialogLauncher\":\".guestServicesModalOpener\",\"closeButton\":{\"label\":\"Close\",\"position\":\"last\",\"category\":\"primary\"},\"title\":\"What would you like help with?\",\"modal\":true,\"isForm\":false,\"mobile\":false,\"backgroundClose\":true,\"customClass\":\"guest-services-modal-uiplus-container\"}]]' style=\"display:none\"><div id=\"guestServicesModalBody\" class=\"uiPlus\"><p><a href=\"https:\/\/disneycruise.disney.go.com\/help\/\">Disney Cruise Line<\/a><\/p><p><a href=\"https:\/\/disney.go.com\/guestservices\">Disney.com<\/a><\/p><\/div><\/div>                        <\/li>\n                                                                            <li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Terms_of_Use\" href=\"https:\/\/disneytermsofuse.com\/\">Terms of Use<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=global_footer\/legal\/legal_notices\" href=\"https:\/\/help.disney.com\/articles\/en_US\/FAQ\/Legal-Notices\">Legal Notices<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Privacy_Policy\" href=\"https:\/\/disneyprivacycenter.com\/\">Privacy Policy<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Do_Not_Sell_My_Info\" href=\"https:\/\/privacyportal-de.onetrust.com\/webform\/64f077b5-2f93-429f-a005-c0206ec0738e\/0a4f1f0b-7130-421f-971d-ef578c0bce6d\">Do Not Sell My Personal Information<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Childrens_Online_Privacy_Policy\" href=\"https:\/\/disneyprivacycenter.com\/kids-privacy-policy\/english\/\">Children's Online Privacy Policy<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Your_California_Privacy_Rights\" href=\"https:\/\/disneyprivacycenter.com\/notice-to-california-residents\/\">Your California Privacy Rights<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Internet-Based_Ads\" href=\"http:\/\/preferences-mgr.truste.com\/?type=disneycolor&amp;affiliateId=115\">Interest-Based Ads<\/a><\/li><li><a target=\"_self\" name=\"&amp;lid=DCL_Footer_Internet-Based_Ads\" href=\"https:\/\/privacy.thewaltdisneycompany.com\/en\/current-privacy-policy\/cookies-policy\/\">Cookie Policy<\/a><\/li>                    <\/ul>\n                <\/div>\n                                <div class=\"gde_footerCopyText\">\u00a9 Disney, All Rights Reserved<\/div>\n                            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<\/footer><\/div><\/div><\/div>";
        // Write html content
        if (target) {
            target.innerHTML = content;
        }

                }, 3000);
        
    }
    init();
})();

function loadVersion2Libraries() {
    var scriptList = [];

    if (jQuery && typeof jQuery.ui === 'undefined') {
        readyJS(head.appendChild(createJSElement('//secure.cdn1.wdpromedia.com/media/pep/live/media/shared/jquery-ui/js/2b2a5e-jquery-ui.min.js')));
    }

    if (typeof Modernizr === 'undefined') {
        scriptList.push('//secure.cdn4.wdpromedia.com/media/pep/live/media/shared/wdpro-js/lib/modernizr/72dd58-modernizr-version.min.js');
    }

    scriptList.push('//secure.cdn3.wdpromedia.com/media/pep/live/media/modules/syndicated/f618fc-globalSyndication.min.js');

    if (PEP.isPepSyndicated) {
        scriptList.push('//secure.cdn5.wdpromedia.com/media/pep/live/media/modules/syndicated/bd89e8-globalSyndicationBundle.simplified.min.js');
    } else {
        scriptList.push('//secure.cdn5.wdpromedia.com/media/pep/live/media/modules/syndicated/20ed4f-globalSyndicationBundle.js');
    }
    waitOnJqueryReadyJS(scriptList);
}

// Create js element
function createJSElement(src) {
    var jsElement = document.createElement('script');
    jsElement.setAttribute("type", "text/javascript");
    jsElement.setAttribute("src", src);
    return jsElement;
}

// Create OneTrust js element
function createOneTrustJSElement(oneTrustScriptUrl, dataDomain) {
    var oneTrustScript = document.createElement('script');
    oneTrustScript.setAttribute("type", "text/javascript");
    oneTrustScript.setAttribute("charset", "UTF-8");
    oneTrustScript.setAttribute("data-document-language", true);
    oneTrustScript.setAttribute("data-ignore-ga", true);
    oneTrustScript.setAttribute("src", oneTrustScriptUrl);
    oneTrustScript.setAttribute("data-domain-script", dataDomain);
    oneTrustScript.addEventListener('load', function() {
        var optanonWrapperScript = document.createElement('script');
        optanonWrapperScript.type = 'text/javascript';
        optanonWrapperScript.innerHTML = 
            'function OptanonWrapper() {' +
                'var eOT = new Event("OneTrustGroupsUpdated");' +
                'document.dispatchEvent(eOT);' +
            '}';
        head.appendChild(optanonWrapperScript);
    });
    head.appendChild(oneTrustScript);
}

// check if dom is ready
function readyJS(func) {
    var readyScript = document.createElement("script");
    if (readyScript.readyState) {  //IE
        readyScript.onreadystatechange = function() {
            if (readyScript.readyState == "loaded" ||
                readyScript.readyState == "complete"){
                readyScript.onreadystatechange = null;
                func;
            }
        };
    } else {  //Others
        readyScript.onload = function(){
            func;
        };
    }
}

/**
 * Wait to load the given Script(s) until jQuery is available
 * - check for jQuery and Modernizr, if not loaded (undefined), wait for .3 sec
 * - max wait is 3 seconds before proceeding
 */
function waitOnJqueryFragment(jsFragment) {
    var callCount = 0,
        maxWait = 10; // 10 * .3 = 3 seconds
    if (arguments.length > 1) {
        callCount = arguments[1];
    }
    if (callCount < maxWait && (typeof jQuery  === 'undefined' || typeof jQuery.ui === 'undefined' || typeof Modernizr === 'undefined')) {
        setTimeout(function() { waitOnJqueryFragment(jsFragment, ++callCount); }, 300);
    } else {
        document.getElementsByTagName('head')[0].appendChild(jsFragment);
    }
}
function waitOnJqueryReadyJS(scriptList) {
    var callCount = 0,
        maxWait = 10; // 10 * .3 = 3 seconds
    if (arguments.length > 1) {
        callCount = arguments[1];
    }
    if (callCount < maxWait && (typeof jQuery  === 'undefined' || typeof jQuery.ui === 'undefined' || typeof Modernizr === 'undefined')) {
        setTimeout(function() { waitOnJqueryReadyJS(scriptList, ++callCount); }, 500);
    } else {
        var size = scriptList.length,
            head = document.getElementsByTagName('head')[0];
        for(var i = 0; i < size; i++) {
            readyJS(head.appendChild(createJSElement(scriptList[i])));
        }
    }
}

// TODO: Remove this when we have a better solution
// https://jira-nge.disney.com/browse/GIT-8927
// Force syndicated footer to load plugins
// This issue happens when the footer is intentionally loaded after the header
(function () {
    try {
        jQuery(function($) {
            try{
                $('#mobileMoreLinks').pepAutoPlugin();
            } catch (error) {
                // Do nothing
            }
        });
    } catch (error) {
        // Do nothing
    }
})();

