$().ready(function(){
    $.each($.easing, function(name, impl) {
        if (name !== 'def')
        {
            $("#buttons").append("<input type='button' class='easeButton' value='" + name + "' /> ");
        }
    });

    $(".easeButton").click(function(){
        var easingType = $(this).val();
        $("#btnRun").unbind("click");
        $(".demoDiv").fadeOut("fast", function(){
            $("h2, span").html(easingType);
            $("#btnRun").click(function(){
                $(".demo")
                     .animate({height: "hide", width: "hide"}, 1500, easingType)
                     .animate({height: "show", width: "show"}, 1500, easingType);
            });
            $(".demoDiv").fadeIn("slow");
        });

    });
});
