(function($){
$(document).ready(function()
{
    
    $('.dropdown-form .item-1 select').change(function()
    {
        $('.dropdown-form .item-2 select').removeAttr("disabled");
		$('.ymm_submit').removeAttr("disabled");
    });
    $('.dropdown-form .item-2 select').change(function()
    {
        $('.dropdown-form .item-3 select').removeAttr("disabled");
    });
    $('.dropdown-form .item-3 select').change(function()
    {
        if ($('.dropdown-form .item-4').css('display') != 'none') { return; }
        $('.dropdown-form span').animate({ "height": "42px" }, 400);
        $('.dropdown-form').animate({ "top": "78px" }, 400);
        $('.dropdown-form .item-4').fadeIn(400);
        $('.dropdown-form .item-5').hide();
    });
    
    $('.dropdown-form .item-4 select').change(function()
    {
        if ($('.dropdown-form .item-5').css('display') != 'none') { return; }
        $('.dropdown-form span').animate({ "height": "34px" }, 400);
        $('.dropdown-form').animate({ "top": "74px" }, 400);
        $('.dropdown-form .item-4').show();
        $('.dropdown-form .item-5').fadeIn(400);
    });
    
    return;
    /* Tweak */
    var newForm = $('<div class="dropdown-form">');
    $('ul.dropdown-form li').each(function() {
        var el = $('<td class="item ' + $(this).attr('class') + '">');
        el = el.append($(this).children());
        newForm.append($('<table cellpadding="0" cellspacing="0">').append($('<tr>').append(el)));
    });
    $('ul.dropdown-form').after(newForm);
    $('ul.dropdown-form').remove();
    
});
})(jQuery);