/**
 * Image src URLs
 **/
var imageList = [
"images/clienti/g00.gif",
"images/clienti/g01.gif",
"images/clienti/g02.gif"
				 ];


var urlList = [
""
				 ];

var lastRan = -1;


/**
 * You must create the carousel after the page is loaded since it is
 * dependent on an HTML element (in this case 'dhtml-carousel'.) 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("dhtml-carousel", 
		{
			numVisible:        1,
			animationSpeed:    2,
			scrollInc:         1,
			navMargin:         0,
			revealAmount:      0,
			size:              2,
			wrap:              true,
			prevElement:       "prev-arrow",
			nextElement:       "next-arrow",
			loadInitHandler:   loadInitialItems,
			loadNextHandler:   loadNextItems,
			loadPrevHandler:   loadPrevItems,
			prevButtonStateHandler:   handlePrevButtonState
		}
	);
};

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


