jQuery(document).ready(function()
{
	// Margin sur les blocs impairs
	$('.blockfull_cnt .fullx2:nth-child(odd)').addClass('odd');
	
	// Pas de border sur la dernière ligne de blocs
	var isOdd = $('.blockfull_cnt .fullx2').length % 2,
			$lastBlock = $('.blockfull_cnt .fullx2.last_block');
	
	$lastBlock.css('borderBottom', '0');
	if (!isOdd)
		$lastBlock.prev().css('borderBottom', '0');
	
	//Drop Down Menus
	jQuery('#nav_top li').mouseenter(function() {
		jQuery(this).children('.submenu').stop(true, true).slideDown('fast');
	})
	.mouseleave(function() {
		jQuery(this).children('.submenu').stop(true, true).slideUp();
	});
	
	// Equalheight
	var firstHeight = 0;
	$('.blockfull_cnt .fullx2').each(function(i) {
		// Impair : recupère l'height
		if (!(i%2)) {
		  firstHeight = $(this).height();
		// Pair : equalheight
			} else {
			var $this = $(this);
			if ($this.height() > firstHeight) {
				$this.prev().height($this.height())
			} else {
				$this.height(firstHeight);
			}
		}
		
	});
	
});

