function errorHandler(message, url, line) 
{
  /* Got here because we couldn't open top document */
  window.top.location = self.location;
  return true;
} 

if (self.name != 'content')   
{
  var isIE4 = document.all && !document.getElementById;
  var pagecode = location.href;
  if (isIE4)
    document.write("<a href=\"index.html#" + pagecode + "\">Show navigation buttons (needs frames)</a>");
  else
    document.write("<a href=\"index.html?" + pagecode + "\">Show navigation buttons (needs frames)</a>");
}

var default_bgcolor = "white";

function showload(pagecode)
{
  var i,j,but;

  if (self.name == 'content' && (but = window.top.frames['navbar']))
  {
    if (document.all)
    {
      var but = but.document.all[pagecode];
      if (but && but.style)
      {
        but.style.backgroundColor = default_bgcolor;
        but.children[0].style.color = "#003366";
      }
    }
    else if (document.getElementById)
    {
      var but = but.document.getElementById(pagecode);
      if (but && but.style)
      {
        but.style.backgroundColor = default_bgcolor;
        link = but.getElementsByTagName("a").item(0);
        link.style.color = "#003366";
      }
    }
  }
  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 showunload(pagecode)
{
  var but;
  if (document.all && (but = window.top.frames['navbar']))
  {
    but = but.document.all[pagecode];
    if (but && but.style)
    {
      but.children[0].style.color="";
      but.style.backgroundColor="";
    }
  }
  else if (document.getElementById && (but = window.top.frames['navbar']))
  {
    var but = but.document.getElementById(pagecode);
    if (but && but.style)
    {
      but.style.backgroundColor = "";
      link = but.getElementsByTagName("a").item(0);
      link.style.color = "";
    }
  }

}

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

