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

function refresh_row_colors(scan) {
  $$(scan).each(function(s,index){
    s.className = s.className.gsub(/(odd|even)/, (index % 2 == 0 ? 'odd' : 'even'));
  });
}