// create xhtml strict friendly iframe
$(document).ready( function() {
  /*checkItems();*/
  $('a.iframe').each(
    function (i) {
      $(this).replaceWith("<iframe src='" + this.getAttribute("href") + "' width='425' height='350' frameborder='0' scrolling='no'></iframe>");
  });
  $('table').each(
    function (i) {
      if (!this.getAttribute("class")) {
        tr=this.getElementsByTagName('tr');
        doEven(tr);
      }
  });
});

function checkItems() {
  var r,l;
  if (!document.getElementById) return
  var tb=document.getElementsByTagName('table'); 
  for (r=0; r<tb.length; r++) {
    /*if (tb[r].className=='alternate') {*/
      tr=tb[r].getElementsByTagName('tr');
      doEven(tr);
    /*}*/
  }
}

function doEven(myRows) {
  for (l=0; l<myRows.length; l++)
    if (myRows[l].className.length == 0)
      if (l%2==0) {
        myRows[l].setAttribute('className', 'alt');
        myRows[l].setAttribute('class', 'alt');
      }
}