Toggle click

Toggle click

I tried to use toggle whenever someone click on the div. But nothing hapen then. Here is script I use:
  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. }, function() {
  9. $('#change').click(function() {
  10. $('#logo').animate({backgroundColor: '#32a095'},100);
  11. $(this).animate({backgroundColor: '#2e9389',borderRightColor: '#24746c'},500);
  12. $(this).css({ 'background-image': 'url("Images/arrow.png")' },"slow");
  13. $('#logo').css({ 'background-image': 'url("Images/test.png")'},"slow");
  14. });
  15. });
  16. </script>