/* 
 * JS File for Collegien
 *
 */


jQuery('document').ready(function() {
    jQuery('#shipping_estimation').live('click', function() {
        jQuery('#shipping_block').toggle();
        return false;
    });
    
    jQuery('.bouton-qte').live('click', function() {
        operator = jQuery(this).val();
        qte = jQuery(this).parent().children('input.qty');

        if (operator == "+") {
            qte.val(parseInt(qte.val()) + 1);
        }
        else if (operator == "-") {
            if (parseInt(qte.val()) > 1) {
                qte.val(parseInt(qte.val()) - 1);
            }
        }
        //return false;
    })
});
