var gAgent = navigator.userAgent.toLowerCase();

function msieversion()
{
  var msie = gAgent.indexOf("msie ");
  if (msie > 0)
    return gAgent.substring(msie+5,gAgent.indexOf(";",msie));
  return "";
}


if (msieversion() >= 4 && msieversion() < 7)
{
  document.writeln("<STYLE type='text/css'> PRE { width:1ex;}</STYLE>");
}

function OnLoadPage()
{
  var i,j;
  for (i= 0; i < document.images.length;i++)
  {
    var im = document.images[i];
    if (im.title=="")
      im.title = im.alt;
  }
  if (document.getElementsByTagName)
  {
    var tableCol = document.getElementsByTagName("TABLE");
    for (i = 0; i < tableCol.length;i++)
      if (tableCol[i].className == "niceborder")
      {
        var rowCol = tableCol[i].rows;
        var cellCol = rowCol[0].cells;
        cellCol[0].setAttribute("topleftcell",true);
        cellCol[cellCol.length-1].setAttribute("toprightcell",true);
        cellCol = rowCol[rowCol.length-1].cells;
        cellCol[0].setAttribute("bottomleftcell",true);
        cellCol[cellCol.length-1].setAttribute("bottomrightcell",true);
        for (j = 1; j < rowCol.length;j +=2)
          rowCol[j].className = "darkrow";
      }
  }
  return 1;
}

function OnUnloadPage()
{
}

window.defaultStatus="Copyright (C) 2007 Itim Limited";

