// JavaScript Document
function tri(index) {

	//var js_agenda = document.getElementById('js_agenda');
	//var div = js_agenda.getElementsByTagName('div');
	var div = $$('#js_agenda div.item');
	for(w=0;w<div.length;w++) {
		id = div[w].getAttribute('id');
		if(id == index) {
			div[w].style.display = "block";
		} else {
			div[w].style.display = "none";
		}
	}
	
	/*var ultop = document.getElementById('pagination_top');
	var litop = ultop.getElementsByTagName('li');
	var pagetop = 'pagetop'+index
	for(v=0;v<litop.length;v++) {
		alert(litop.length)
		idlitop = litop[v].firstChild.getAttribute('id');
		if(idlitop == pagetop) {
			litop[v].firstChild.set('class','actu_active');
			//alert('test');
		} else {
			litop[v].firstChild.set('class','');

		}
	}*/
	
	
	//alert(ultop.length)

}
tri('1');

var ultop = $$('#pagination_top li a');
	ultop.addEvent('click',function() {
	for(v=0;v<ultop.length;v++) {
		ultop[v].set('class','');
	}
	this.set('class','actu_active');
})
