$(document).ready(function(){
	$(".menu li").click(function () {
      	$(this).find(".sous_menu").slideToggle("normal");
	});
	
	$('a.newWindow').click(function(){
		window.open(this.href);
		return false;
	});
	
	var oldSrc = '';
	$('#collections .colonne img').hover(
		function(){
			oldSrc = $(this).attr('src');
			var src = $(this).attr('src').split('/');
			$(this).attr('src', src[0]+'/hover_'+src[1]);
		},
		function(){
			$(this).attr('src', oldSrc);
		}
	);
	
	var actu_h5 = $('.actualite h5');
	var actu_h5_color = actu_h5.css('color');
	var div_expand = $('div.expand');
	div_expand.addClass('dn');
	div_expand.find('a').click(function(){ window.open(this.href); return false; });
	actu_h5.css('cursor', 'pointer');
	actu_h5.hover(function(){ $(this).css('color', 'red'); }, function(){ $(this).css('color', actu_h5_color); });
	actu_h5.click(function(){
		$('.actualite h5 span').remove();
		$('.expand').slideUp('fast');
		if($(this).next().css('display')=='none'){
			$(this).next().slideDown('fast');
			$(this).prepend('<span><img src="images/puce-rouge.jpg" alt=">" width="10" height="10" />&nbsp;</span>');
		} 
	});
});
