// var gsMsg='<p><font color="#FF0000">[This document is part of a beta release and is subject to change. Blank or incomplete documents are included as place holders and will be completed for the product release.]</font></p>';
var gsMsg='';
var gsCRight='© 2001, 2002, 2003, 2004, 2005 Anselmi Consulting Ltd. All rights reserved. Terms of use.';
// var gsMsg = '';
function fnShowHide(RHS)
{
  if (event.srcElement.parentElement.parentElement.all('CodeContents', 0).style.display.toLowerCase()=='block')
  {
    event.srcElement.innerText='Show ' + event.srcElement.parentElement.parentElement.all.tags('PRE').item(0).promptText;
    event.srcElement.parentElement.parentElement.all('CodeContents', 0).style.display='none';
  }
  else
  {
    event.srcElement.innerText='Hide ' + event.srcElement.parentElement.parentElement.all.tags('PRE').item(0).promptText;
    event.srcElement.parentElement.parentElement.all('CodeContents', 0).style.display='block';
  }
}
function fnPreInit()
{
  var i=0;
  var sPromptText='';
  for (i=0; i<document.all.tags('PRE').length; i++)
  {
    if (!(document.all.tags('PRE').item(i).promptText==null))
    {
      sPromptText='Show ' + document.all.tags('PRE').item(i).promptText;
      document.all.tags('PRE').item(i).outerHTML= '<div><h3 onclick="fnShowHide()" onmouseover="this.style.cursor=\'hand\'" onmouseout="this.style.cursor=\'default\'"><u>' + sPromptText + '</u></h3><div id="CodeContents" style="display: none">' + document.all.tags('PRE').item(i).outerHTML+ '</div></div>'
    }
  }
}
function fnDisplayMessage()
{
  pMsg.outerHTML=gsMsg;
  aCRight.innerText=gsCRight;
  aCRight.target='_self';
}
function fnInit()
{
  var bInFrame=false;
  if (typeof(fnPreInit) == 'function') fnPreInit();
  if (typeof(fnDisplayMessage) == 'function') fnDisplayMessage();
  try {
    if (!(parent==null))
    {
      var frmContents = parent.contents;
      if (!(frmContents==null))
      {
        bInFrame = true;
        frmContents.window.TOCSynch_Click();
      }
    }
  }
  catch (er) { } finally { }
  /*
  if (!bInFrame)
  {
    window.navigate('http://' + window.location.hostname + '/WebTools/WTContent/ACDR/BooksOnLine.asp?NextURL=' + window.location.href);
  }
  */
}

window.onload = fnInit;
