var fluid = {
Kwicks : function()
{
	fluid.animating = false;
	//fluid.open(null, $('.kwicks .open'));
    
    setTimeout(function()
    {
    	$("#kwick .kwick").bind("mouseenter", fluid.open);

    }, 200);
            
 },
open : function(e, _this)
{
    if( e != null )
    {
    	_this = this;
    	e.cancelBubble = true;
    }
    
    if (fluid.animating) return false;
    
    var now = new Date().getTime();
    
    if( fluid.timer != null && now < fluid.timer + 200 )
    {
    	return;
    }
    
    fluid.animating = true;
    
    $("#kwick .kwick").not(_this).find('.more').hide();
    $("#kwick .kwick").not(_this).find('.moretexte').css('opacity', '0');
    $("#kwick .kwick").not(_this).find('.morebouton').hide();
    $("#kwick .kwick").not(_this).find('.morefleche').show();
    $("#kwick .kwick").not(_this).animate({ "width": 161 }, 800);
    fluid.timer = new Date().getTime();
    $(_this).animate({ "width": 737 }, 800, function()
    {
        $(this).find('.more').show();
        $(this).find('.moretexte').animate({ "opacity" : 1}, 200);
        $("#kwick .kwick").not(_this).find('.moretexte').css('opacity', '0');
        $(this).find('.morefleche').hide();
        fluid.animating = false;
    });
},

animating : false,
timer : null,
}
jQuery(function ($) {
	if($("#kwick .kwick").length){fluid.Kwicks();}
	
});


