window.addEvent('domready', function() {
$$('img.mo').each(function(img) {
	var src = img.getProperty('src');
	var extension = src.substring(src.lastIndexOf('.'),src.length)
	img.addEvent('mouseenter', function() { img.setProperty('src',src.replace(extension,'-mo' + extension)); });
	img.addEvent('mouseleave', function() { img.setProperty('src',src); });
});

// $$('.ext').each(function(ext){
//   ext.addEvent('mouseenter', function(){  
//     ext.tween('padding-left', 20);
// 
//   });
// });


$$('a.ext').addEvent('click', function(event) {
		event.stop();
		//alert(this.href);
		window.open(this.href,'blog_david');
});

// $$('.ext').addEvent('click', function() {
// 	this.stop();
// 	});


}); // domready

// window.addEvent('load', function(){
// 	$('panes').effect('visibility').set('visible');//Mise du slide à la taille
// 	
// });
