var categcount = 0;
var categcarousel;
var uitlegcount = 0;
function movecarousel(count) {
	categcount = categcount + count;
	if(categcount < 0)
		categcount = 0;
	if(categcount > 24)
		categcount = 24;	
	categcarousel.set("selectedItem", categcount); 
}
function movecarousel2(count) {
	newshopcount = newshopcount + count;
	if(newshopcount < 0)
		newshopcount = 0;
	if(newshopcount > 24)
		newshopcount = 24;	
	shopscarousel.set("selectedItem", newshopcount); 
}

YAHOO.util.Event.onDOMReady(function (ev) {
	categcarousel = new YAHOO.widget.Carousel("categoriebox", {animation: { speed: 0.5 },numVisible: 3,autoPlayInterval: 1000});
	categcarousel.render(); // get ready for rendering the widget
	categcarousel.show();   // display the widget


 	

})

function shiftuitleg(som,ucount) {
	
	


	var i = 0;
	for(i=0;i<ucount;i++) {
		if(document.getElementById('uitleg' + i))
		document.getElementById('uitleg' + i).style.display = 'none';
		if(document.getElementById('uitlegimage' + i))
		document.getElementById('uitlegimage' + i).style.display = 'none';
		if(document.getElementById('uitlegselect' + i))
		document.getElementById('uitlegselect' + i).className = "uitlegnotselected";
	
	}
	
	
	document.getElementById('uitleg' + som).style.display = 'block';
	
	document.getElementById('uitlegimage' + som).style.display = 'block';

	document.getElementById('uitlegselect' + som).className = "uitlegselected";
}  
