
function forwardTo( url )
{
  window.location.href = url;
}

function navSwitch( leftNavCell, hovering )
{
  if ( hovering )
  {
    leftNavCell.style.backgroundColor = '#D1CD9D';
    if ( document.getElementsByTagName )
    {
      leftNavCell.getElementsByTagName( 'a' )[0].style.color = '#000000';
    }
  }
  else
  {
    leftNavCell.style.backgroundColor = '#5D5C4A';
    if ( document.getElementsByTagName )
    {
      leftNavCell.getElementsByTagName( 'a' )[0].style.color = '#ffffff';
    }
  }
}

function navClick( leftNavCell, url )
{
  navSwitch( leftNavCell, 0 );
  forwardTo( url );
}

function bookmark()
{
  if (document.all)
  {
    window.external.AddFavorite(document.location, (document.title));
  }
}

function random(n)
{
  return Math.floor(n*(Math.random()%1));
}

var logoImage = new Array("main", "matters", "appraisals", "rookie", "attitude", "brain", "brilliant", "counts", "influence", "insights", "right", "master", "rule", "sarcasm", "smart", "taste", "wisdom");

function writeLogo()
{
  var index = (random(17));
  document.write("<td width=\"330\" align=\"left\" valign=\"middle\" class=\"mainHeader\">");
  document.write("<img src=\"/images/spacers/dot_clear.gif\" width=\"315\" height=\"0\" hspace=\"0\" vspace=\"0\" alt=\"\" border=\"0\">");
  document.write("<a href=\"/\"><img src=\"/images/site/logo_");
  document.write(logoImage[index]);
  document.write(".gif\" width=\"309\" height=\"38\" hspace=\"0\" vspace=\"0\" alt=\"crocoPuffs\" border=\"0\" /></a>");
  document.write("</td>");
}

function openLink(url)
{
  crocopuffsWindow = window.open(url, "crocopuffsWindow");
  crocopuffsWindow.focus();
}

