public/javascripts/yui/carousel/carousel-debug.js
function (elId) {
            var carousel = this,
                cssClass = carousel.CLASSES,
                el       = Dom.get(elId);

            if (!el) {
                el = createElement("DIV", {
                        className : cssClass.CAROUSEL,
                        id        : elId
                });
            }

            if (!carousel._carouselEl) {
                carousel._carouselEl=createElement(carousel.get("carouselEl"),
                        { className: cssClass.CAROUSEL_EL });
            }

            return el;
        }
function (elId) {
            var carousel = this,
                cssClass = carousel.CLASSES,
                el       = Dom.get(elId);

            if (!el) {
                el = createElement("DIV", {
                        className : cssClass.CAROUSEL,
                        id        : elId
                });
            }

            if (!carousel._carouselEl) {
                carousel._carouselEl=createElement(carousel.get("carouselEl"),
                        { className: cssClass.CAROUSEL_EL });
            }

            return el;
        }
function ( elId ) { var carousel = this , cssClass = carousel . CLASSES , el = Dom . get ( elId ) ; if ( ! el ) { el = createElement ( "DIV" , { className : cssClass . CAROUSEL , id : elId } ) ; } if ( ! carousel . _carouselEl ) { carousel . _carouselEl = createElement ( carousel . get ( "carouselEl" ) , { className : cssClass . CAROUSEL_EL } ) ; } return el ; }
Create the Carousel.

@method createCarousel
@param elId {String} The id of the element to be created
@protected
Create the Carousel .