var what = condition? 'marginLeft':'marginRight'; foo.animate({what : '300px'})
Did not work. How to use variable?