   // place this in <body>: onload="stripe('playlist', '#fff', '#edf3fe');"

  // function needed to work around bug in IE related to element attributes
function hasClass(obj)
{
 var result = false;
 if (obj.getAttributeNode("class") !== null)
 {
  result = obj.getAttributeNode("class").value;
 }
 return result;
}

function rowColor(id)
{
 var even = false;
 // default row colors:
 var evenColor = arguments[1] ? arguments[1] : "#fff";
 var oddColor = arguments[2] ? arguments[2] : "#ecf5ff";
 var table = document.getElementById(id);
 if (! table) { return; }

 var tbodies = table.getElementsByTagName("tbody");
 for (var h = 0; h < tbodies.length; h++)
 {

  var trs = tbodies[h].getElementsByTagName("tr");
  for (var i = 0; i < trs.length; i++)
  {
   // rows with class attribute overide script
   if (! hasClass(trs[i]) && ! trs[i].style.backgroundColor)
   {
    var tds = trs[i].getElementsByTagName("td");
    for (var j = 0; j < tds.length; j++)
    {
     var mytd = tds[j];
     // cells with class attribute overide script
     if (! hasClass(mytd) && ! mytd.style.backgroundColor)
     {
      mytd.style.backgroundColor = even ? evenColor : oddColor;
     }
    }
   }
   even =  ! even;
  }
 }
}