/**
 * You must create the carousel after the page is loaded since it is
 * dependent on an HTML element (in this case 'mycarousel'.) See the
 * HTML code below.
 **/
var carousel; // for ease of debugging; globals generally not a good idea
var pageLoad = function() 
{
    carousel = new YAHOO.extension.Carousel("yuicarousel", 
        {
            numVisible:        1,
			animationMethod:	YAHOO.util.Easing.easeBoth,
            animationSpeed:    1,
            scrollInc:         1,
            prevElement:     "yuicarousel-prev",
            nextElement:     "yuicarousel-next",
			wrap: 				true,
            size:              6
        }
    );

};

YAHOO.util.Event.addListener(window, 'load', pageLoad);
