Toggle click

Toggle click

I have div that when clicked it change css and do some animation features. But I want it to be reversable. Here is script I use so far:
  1. <script>
  2. $(document).ready(function() {
  3. $('#change').click(function() {
  4. $('#logo').animate({backgroundColor: '#feb20e'},100);
  5. $(this).animate({backgroundColor: '#eda710',borderRightColor: '#d3940b'},500);
  6. $(this).css({ 'background-image': 'url("Images/arrow-hover.png")' },"slow");
  7. $('#logo').css({ 'background-image': 'url("Images/test2.png")'},"slow");
  8. });
  9. });
  10. </script>