Q:

controlling the height change speed

I have the below javascript for a height change of a div.
However, I don't know how to adjust the speed when the div reveals. 
i know 500 is the speed when the height of the div changes to 
30px, but i don't know how to control the speed when it changes back to 100%. 
can anyone help? 
$(document).ready(function(){
$("#mydiv").click(function(){
var $this = $('#mydiv_2');
    $this.animate({height: $this.height() == 30 ? '100%' : 30}, 500);
});
});

A:

$this.animate({height: $this.height() == 30 ? '100%' : 30}, 500);

The second property is your speed in milliseconds.

