public/javascripts/yui/carousel/carousel-debug.js
function (index) {
            var carousel = this;

            if (index < 0 || index >= carousel.get("numItems")) {
                YAHOO.log("Index out of bounds", "error", WidgetName);
                return null;
            }

            if (carousel._itemsTable.items[index]) {
                return Dom.get(carousel._itemsTable.items[index].id);
            }

            return null;
        }
function (index) {
            var carousel = this;

            if (index < 0 || index >= carousel.get("numItems")) {
                YAHOO.log("Index out of bounds", "error", WidgetName);
                return null;
            }

            if (carousel._itemsTable.items[index]) {
                return Dom.get(carousel._itemsTable.items[index].id);
            }

            return null;
        }
function ( index ) { var carousel = this ; if ( index < 0 || index >= carousel . get ( "numItems" ) ) { YAHOO . log ( "Index out of bounds" , "error" , WidgetName ) ; return null ; } if ( carousel . _itemsTable . items [ index ] ) { return Dom . get ( carousel . _itemsTable . items [ index ] . id ) ; } return null ; }
Return the carouselItemEl at index or null if the index is not
found.

@method getElementForItem
@param index {Number} The index of the item to be returned
@return {Element} Return the item at index or null if not found
@public
Return the carouselItemEl at index or null if the index is not found .