﻿jQuery(document).ready(function() {
    $('.vignette').bind('mouseleave', function() {
    $(this).stop(true, true).animate({ height: '30px' });
    });

    $('.vignette').bind('mouseenter', function() {
        $(this).stop(true, true).animate({ height: '145px' });
    });
    animAccroche($.randomBetween(1, 2));
});

function logginToggle() {
    if ($(".loggin_box_head").css("marginTop") == '0px') {
        $(".loggin_box_head").animate({ marginTop: '27px' }, 700);
        $(".loggin_box_head .identification").removeClass('active');
    }
    else {
        $(".loggin_box_head").animate({ marginTop: 0 }, 700);
        $(".loggin_box_head .identification").addClass('active');
    }
    
}

jQuery.extend({
	random: function(X) {
	    return Math.floor(X * (Math.random() % 1));
	},
	randomBetween: function(MinV, MaxV) {
	  return MinV + jQuery.random(MaxV - MinV + 1);
	}
});
