$(document).ready(function() {
  $("#zipcode, #contentZip").focus(function(){
    $(this).val("");  
  });

  $(".feature").jcarousel({
    scroll: 0,
    initCallback: featuredInit,
    // This tells jCarousel NOT to autobuild prev/next buttons
    buttonNextHTML: null,
    buttonPrevHTML: null,
    wrap: 'circular',
    auto: 5
  });
  
  function featuredInit(carousel){
    $('.feature .next').bind('click', function() {
        carousel.next();
        return false;
    });
  }

  $(".polaroidCarouselWrap").jcarousel({
    scroll: 1,
    initCallback: polaroidInit,
    // This tells jCarousel NOT to autobuild prev/next buttons
    buttonNextHTML: null,
    buttonPrevHTML: null,
    wrap: 'circular'
  });
  
  function polaroidInit(carousel){
    $('.polaroidPrevious').bind('click', function() {
        carousel.prev();
        return false;
    });
    
    $('.polaroidNext').bind('click', function() {
        carousel.next();
        return false;
    });
  }

  
});

