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

if (location.hash == "#print")
{
    document.write("<div class=\"noprint\" id=\"print2\">Press Ctrl+P to print the page or select print or print preview from your browser's file menu</div>");
}
else if (self.name != 'content')   
{
  var isIE4 = document.all && !document.getElementById;
  var pagecode = location.href;
  if (isIE4)
    document.write("<a class=\"noprint\" href=\"index.html#" + pagecode + "\">Show navigation buttons (needs frames)</a>");
  else
    document.write("<a class=\"noprint\" href=\"index.html?" + pagecode + "\">Show navigation buttons (needs frames)</a>");
}

var default_bgcolor = "white";


function showload(pagecode)
{
  var i,j,but = null;
  if (self.name == 'content')
    but = window.top.document;

  if (self.name == 'content' && but)
  {
    if (but.getElementById)
      but = but.getElementById(pagecode);
    else if (but.all)
      but = but.all[pagecode];
    if (but && but.style)
    {
      but.style.backgroundColor = default_bgcolor;
      but.style.color = "#006633";
    }
  }
  for (i= 0; i < document.images.length;i++)
  {
    var im = document.images[i];
    if (im.title=="")
      im.title = im.alt;
  }
  return 1;
  
}

function showunload(pagecode)
{
  var i,j,but = null;
  if (self.name == 'content')
    but = window.top.document;

  if (self.name == 'content' && but)
  {
    if (but.getElementById)
      but = but.getElementById(pagecode);
    else if (but.all)
      but = but.all[pagecode];
    if (but && but.style)
    {
      but.style.backgroundColor = "";
      but.style.color = "";
    }
  }

}


