/**
 * Phenom Adobe Launch Multi-File Loader
 * -----------------------------------------------------------------
 * Dynamically injects multiple Phenom CareerConnect / Adobe Launch
 * script files into the page, preserving execution order.
 * Intended for deployment via Tealium iQ (Tag Manager) as a
 * "Generic JavaScript" or custom tag, to ensure all required
 * files are loaded on the career site.
 * -----------------------------------------------------------------
 */
(function () {
    'use strict';

    var scriptUrls = [
        'https://pp-cdn.phenompeople.com/CareerConnectResources/BOMOGLOBAL/js/adobe/replacing/5aebfc6032e6/6163c315f6c5/launch-5981edc9d6ac.min.js',
        'https://pp-cdn.phenompeople.com/CareerConnectResources/BOMOGLOBAL/js/adobe/replacing/5aebfc6032e6/6163c315f6c5/81574b6efa3b/launch-5981edc9d6ac.min.js',
        'https://pp-cdn.phenompeople.com/CareerConnectResources/BOMOGLOBAL/js/adobe/replacing/5aebfc6032e6/6163c315f6c5/81574b6efa3b/RC1c967aaa800948b892e488814f4ae57e-source.min.js',
        'https://pp-cdn.phenompeople.com/CareerConnectResources/BOMOGLOBAL/js/adobe/replacing/5aebfc6032e6/6163c315f6c5/81574b6efa3b/RC1ec25e1a5e29413f81b9063c8cb892c6-source.min.js',
        'https://pp-cdn.phenompeople.com/CareerConnectResources/BOMOGLOBAL/js/adobe/replacing/5aebfc6032e6/6163c315f6c5/81574b6efa3b/RC5ccfbf9a4eb243189f9fa4b140378018-source.min.js',
        'https://pp-cdn.phenompeople.com/CareerConnectResources/BOMOGLOBAL/js/adobe/replacing/5aebfc6032e6/6163c315f6c5/81574b6efa3b/RCe2e35512ce724de8bd9a7652c008429d-source.min.js',
        'https://pp-cdn.phenompeople.com/CareerConnectResources/BOMOGLOBAL/js/adobe/replacing/5aebfc6032e6/6163c315f6c5/81574b6efa3b/RCef00c7dcc0214484ad73c07af241ea71-source.min.js'
    ];

    scriptUrls.forEach(function (url) {
        var scriptElement = document.createElement('script');

        scriptElement.src = url;
        // async is explicitly set to false (not omitted) so that, even
        // though each file downloads asynchronously, the browser still
        // executes them in the order they were appended below.
        scriptElement.async = false;

        document.head.appendChild(scriptElement);
    });
})();
