// JavaScript Document
window.addEvent('domready',function(){
	if ($('spazio'))
		loadGallery();		
});

function loadGallery() {
	var hs = new noobSlide({
		box: $('spazio'),
		size: 351,
		items: $ES('span','handles'),
		handles: $ES('span','handles'),
		interval: 10000,
		autoPlay: true,
		onWalk: function(currentItem,currentHandle){
				$$(this.handles).removeClass('active');
				$(currentHandle).addClass('active');
		}
	});
	hs.walk(0)	
}