/**
 *  These imports are not wrapped in a 'if defined' clause so importing them
 *  needs to be checked so as not to cause any anomallies.
 */
if (!String.trim || !String.substitute)
{
    document.write(
      '<script type="text/javascript"' +
      ' src="/includes/js/core/string-util.js"></script>');
}
/**
 *  These imports are wrapped in a 'if defined' clause so importing them
 *  several times should not result in abnormal behavior.
 */
document.write(
'<script type="text/javascript" src="/includes/js/core/utilities.js"></script>' +
'<script type="text/javascript" src="/includes/js/core/container.js"></script>');
/**
 *  Check for the existence of dom-helpers and if it already exists then
 *  do not run the script again.
 */
if (window.DomHelpers == void(0) )
{
    document.write(
        '<script type="text/javascript"' +
        ' src="/includes/js/core/dom-helpers.js"></script>');
}
if ( window.YAHOO == void(0) ||
     window.YAHOO.extension == void(0) ||
     window.YAHOO.extension.Carousel == void(0) )
{
    document.write(
        '<script type="text/javascript"' +
        ' src="/includes/js/carousel/carousel.js"></script>');
}
if ( window.ImageCarouselListener == void(0))
{
    document.write(
        '<script type="text/javascript"' +
        ' src="/includes/js/carousel/image-carousel-listener.js"></script>');
}
/**
 *  Unconditionally load and run the following script.  The whole purpose
 *  of the carousel-import is to finally create the carousel.  ALL of
 *  the above code is aimed at gauraunteeing that all dependencies have
 *  been imported.
 */
document.write(
    '<script type="text/javascript"' +
    ' src="/includes/js/carousel/image-carousel-contents.js"></script>');
document.write(
    '<script type="text/javascript"' +
    ' src="/includes/js/carousel/image-carousel-creation.js"></script>');
