window.addEvent('domready', function() {
	
	
	var mySlide = new Fx.Slide('contenu_actu', {duration:800, mode: 'vertical', transition: Fx.Transitions.Circ.easeOut}).hide();
 
	$('lien_actu').addEvent('click', function(e){
		removeNode('bloc_flash_actu');
		e = new Event(e);
		mySlide.toggle();
		e.stop();
	});
	

});

function popupActu(id){
	id = parseInt(id,10);
	
	var w = 600;
	var h = 500;
	
	wind = window.open('actu_details.php?a='+id+'', 'Actualité', 'width='+w+', height='+h+', resizable=0, scrollbars=yes, menubar=0, status=0, location=0, toolbar=0');
	var screenW = screen.width;
	var screenH = screen.height;
	wind.moveTo((screenW/2)-(w/2), (screenH/2)-(h/2));
}
