Quick and dirty, this would work, although I doubt this is best practice.
var positiveMargin = false;
$('.LoginButton').click(function () {
if (!positiveMargin) {
var marginTop = "33px";
positiveMargin = true;
}
else {
var marginTop = "-160px";
positiveMargin = false;
}
$('.MyBox').animate({
marginTop: marginTop
}, {
duration: 2000,
specialEasing: {
marginTop: 'easeOutBounce'
},
complete: function () {
}
});
});