$(document).ready(function() {
	$('#coda-slider-1').codaSlider({dynamicTabs: true});
	$('.infinite').infiniteCarousel();
	
	//Choix des dimensions
	/*
    $('.show-fake').corner('13px');
    $('.hidden').hide();
	$('.show-fake').css('visibility', 'visible');
    $('.show-fake').click(function() {
        if(!$(this).hasClass('shown')) {
            $('.hidden', this).slideDown();
            $(this).addClass('shown')
        
        } else {
            $('.hidden', this).slideUp()
            $(this).removeClass('shown');
        }
    });
	
	
    $('.hidden p', this).click(function() {
		var id_size = $(this).data('value');
		$('.table_selector_filter').val(id_size);
		$('#table_selector_size').submit();
		
		// $('#table_selector_size').submit();
		
        // var $p = $(this).parents('.show-fake');
        // var $cv = $p.find('.current-val');
        // var $idx = $(this).parents('.show-fake-isolator').index();
        // var id_zone = $(this).data('value');
        // $cv.text($(this).text());
        // $cv.data('cv', id_zone);
        // Faire quelques choses avec la dimension sélectionée
        // if($idx == 2) $idx = 1;
        
        // $('.coda-slider-wrapper').eq($idx).find('li.product-box').each(function() {
        	// $(this).show();
        	// if($(this).data('size') != id_zone) $(this).hide();
		// });
		
		// wss.log($idx);
		
		// $('.coda-slider').eq($idx).find('.infinite').each(function() {
			// var $length = $(this).find('li.product-box:visible').length;
			// wss.log('li count' + $(this).find('li.product-box:visible').length);
			// wss.log('size elem'  + $(this).parents('.panel-wrapper').find('.num').text());
			// $(this).parents('.panel-wrapper').find('.num').text($length);
		// });
        
    });
	//*/
});
