


window.addEvent('domready', function(){
	
	
	
	
	if ($(document.body).getElement('.newsticker'))
		var myTicker = new mooTicker($(document.body).getElement('.newsticker'),{groupBy:1, interval:5000});
		
	
	
	$('loupe_link').addEvent('click', function(event, clicked){
	    event.preventDefault(); //don't follow the link
	   // alert('you clicked a link!');
	    //you can reference the element clicked with the second
	    //argument passed to your callback
	    $('MR').focus();
	});
	
	
});

/**
	affiche le detail d'un agenda
**/
function affiche(id, display) {
	if (display && id != 0) {
		//rend invisible les autres
		$$(".evenements").each(function(el) {el.addClass("invisible") });
		$("detail_" + id).removeClass("invisible");
		
		
	} else {
		if (id != 0)
		$("detail_" + id).addClass("invisible");
	}
}

function startGallery() {
	var liste_vignette_photos = new gallery($('liste_vignette_photos'), {
		timed: true,
		useReMooz: false,
		embedLinks: false
	});
}

window.addEvent('domready', startGallery);
