if (typeof GEBE === "undefined" || !GEBE) {
    var GEBE = {};
}
if (typeof GEBE.util === "undefined" || !GEBE.util) {
    GEBE.util = {};
}


GEBE.util.carouselPhoto = function(userConf) {
	var carousel = new YAHOO.widget.Carousel(userConf.carouselID);
	// Disable anchor
	var carouselItemAnchors = carousel.getElementsByTagName("a");
	for(i=0; carouselItemAnchors.length > i; i++) {
		
	}
	
	carousel.on("itemSelected", function(index) {
		var itemA = carousel.getElementForItem(index);
		var item = carousel.getElementForItem(index).firstChild;
		if(item) {
			spotlight.innerHTML = "<img src=\"" + itemA.href + "\">";
		}
	});
	carousel.render(); // get ready for rendering the widget
	carousel.show();   // display the widget
}




