public/javascripts/yui/carousel/carousel-debug.js
function (ev) {
             var carousel = this,
                 css = carousel.CLASSES,
                 target = Event.getTarget(ev),
                 elNode = target.nodeName.toUpperCase(),
                 val,
                 stringIndex,
                 page,
                 item;

             if (Dom.hasClass(target, css.PAGER_ITEM) || Dom.hasClass(target.parentNode, css.PAGER_ITEM))  {
                 if (elNode == "EM") {
                     target = target.parentNode;// item is an em and not an anchor (when text is visible)
                 }
                 val = target.href;
                 stringIndex = val.lastIndexOf("#");
                 page =  parseInt(val.substring(stringIndex+1), 10);
                    if (page != -1) {
                     item = carousel.getFirstVisibleOnPage(page);
                     carousel._selectedItem = item;
                     carousel.scrollTo(item);
                            carousel.focus();
                        }
                        Event.preventDefault(ev);
                    }
        }
function (ev) {
             var carousel = this,
                 css = carousel.CLASSES,
                 target = Event.getTarget(ev),
                 elNode = target.nodeName.toUpperCase(),
                 val,
                 stringIndex,
                 page,
                 item;

             if (Dom.hasClass(target, css.PAGER_ITEM) || Dom.hasClass(target.parentNode, css.PAGER_ITEM))  {
                 if (elNode == "EM") {
                     target = target.parentNode;// item is an em and not an anchor (when text is visible)
                 }
                 val = target.href;
                 stringIndex = val.lastIndexOf("#");
                 page =  parseInt(val.substring(stringIndex+1), 10);
                    if (page != -1) {
                     item = carousel.getFirstVisibleOnPage(page);
                     carousel._selectedItem = item;
                     carousel.scrollTo(item);
                            carousel.focus();
                        }
                        Event.preventDefault(ev);
                    }
        }
function ( ev ) { var carousel = this , css = carousel . CLASSES , target = Event . getTarget ( ev ) , elNode = target . nodeName . toUpperCase ( ) , val , stringIndex , page , item ; if ( Dom . hasClass ( target , css . PAGER_ITEM ) || Dom . hasClass ( target . parentNode , css . PAGER_ITEM ) ) { if ( elNode == "EM" ) { target = target . parentNode ; // item is an em and not an anchor (when text is visible) } val = target . href ; stringIndex = val . lastIndexOf ( "#" ) ; page = parseInt ( val . substring ( stringIndex + 1 ) , 10 ) ; if ( page != - 1 ) { item = carousel . getFirstVisibleOnPage ( page ) ; carousel . _selectedItem = item ; carousel . scrollTo ( item ) ; carousel . focus ( ) ; } Event . preventDefault ( ev ) ; } }
The "click" handler for anchor pagination.

@method _pagerClickHandler
@param {Event} ev The event object
@protected
The click handler for anchor pagination .