// JavaScript Document
function addLoadListener(fn)
{
  if (typeof window.addEventListener != 'undefined')
  {
    window.addEventListener('load', fn, false);
  }
  else if (typeof document.addEventListener != 'undefined')
  {
    document.addEventListener('load', fn, false);
  }
  else if (typeof window.attachEvent != 'undefined')
  {
    window.attachEvent('onload', fn);
  }
  else
  {
    var oldfn = window.onload;
    if (typeof window.onload != 'function')
    {
      window.onload = fn;
    }
    else
    {
      window.onload = function()
      {
        oldfn();
        fn();
      };
    }
  }
}

function setRowColors() {
	if(!document.getElementById || !document.getElementsByTagName) return;
	var oTbodies = document.getElementsByTagName('tbody');
		for (i = 0; i < oTbodies.length; i++) {
		var oTbody = oTbodies[i];
		var oTrows = oTbody.getElementsByTagName('tr');
			for (j = 0; j < oTrows.length; j++) {
				if (j % 2 == 0) {
					oTrows[j].className = 'altRow';	
			}
		}
	}
}

addLoadListener(setRowColors);