// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// make respond_to work with jquery
function rotatePhotos() { 
  if ($('#photos').length > 0) { 
    $('#photos').cycle({timeout: '2000'});
  }
}

function rotateCallouts() { 
  if ($('#callouts').length > 0) { 
    $('#callouts').cycle({fx: 'scrollUp' });
  }
}
jQuery(function($) {
  rotatePhotos();
  rotateCallouts();
})

jQuery.ajaxSetup({ beforeSend: function(xhr) { xhr.setRequestHeader("Accept", "text/javascript"); } });
