// This script provides the dynamic part of the Wolfstone Header Bar.
// LANGUAGE="JavaScript1.3"

{
  var HeaderCommand;
  var url = "" + this.location;

  if ( -1 != url.indexOf("assorla") )
  {
    HeaderCommand = "";
  }
  else if ( -1 != url.indexOf("xtreme") )
  {
    HeaderCommand = "";
  }
  else
  {
    HeaderCommand = '';
    index = 1 + Math.floor(Math.random() * 20);	// between 1 and 20, inclusive
    switch (index)
    {
    case 1:
        HeaderCommand += 'If you run a big enough web site long enough, you will get ';
        HeaderCommand += '<a href="../_ar/ThoseWhoHateUs.html">';
        HeaderCommand += 'hate mail</a>.';
        break;
    case 2:
        HeaderCommand += 'Little Alex wants to ';
        HeaderCommand += '<a href="../_ar/ThoseWhoHateUs.html">';
        HeaderCommand += 'smear Wolfstone</a> ';
        HeaderCommand += 'because we would not send him free electronic parts. ';
        HeaderCommand += 'What do <em>you</em> think of extortion?';
        break;
    case 3:
    case 4:
 //       HeaderCommand += 'Visit the ';
 //       HeaderCommand += '<a href="../_ar/Store.html">';
 //       HeaderCommand += 'Wolfstone Store</a>. ';
 //       HeaderCommand += 'Fun merchandise. Good causes.';
        break;
    case 5:
    case 6:
        HeaderCommand += 'Please welcome our favorite addition to the Wolfstone family:<br>';
        HeaderCommand += '<a href="http://AmberFoundation.org"> ';
        HeaderCommand += 'The Amber Foundation - Saving the world ... one cat at a time</a>.';
        break;
    case 7:
    case 8:
        HeaderCommand += 'Please welcome the most recent addition to the Wolfstone family:<br>';
        HeaderCommand += '<a href="http://JustBlameDennis.com">';
        HeaderCommand += 'JustBlameDennis.com</a>.';
        break;
    case 9:
        HeaderCommand += 'Share some of our ';
        HeaderCommand += '<a href="../_ar/ThoseWhoLoveUs.html">';
        HeaderCommand += 'fan mail</a>.';
        break;
    case 10:
        HeaderCommand += 'Wolfstone thanks our readers who have sent ';
        HeaderCommand += '<a href="../_ar/ThoseWhoLoveUs.html">';
        HeaderCommand += 'appreciative e-mail</a> over the years.';
        break;
    case 11:
        HeaderCommand += 'Thank you for your ';
        HeaderCommand += '<a href="../_ar/ThoseWhoLoveUs.html">';
        HeaderCommand += 'kind comments</a> over the years.';
        break;
    case 12:
        HeaderCommand += 'Thank you for ';
        HeaderCommand += '<a href="../_ar/ThoseWhoLoveUs.html">';
        HeaderCommand += 'supporting Wolfstone</a> over the years.';
        break;
    case 13:
        HeaderCommand += 'Thank you for your ';
        HeaderCommand += '<a href="../_ar/ThoseWhoLoveUs.html">';
        HeaderCommand += 'friendly messages of thanks</a> over the years.';
        break;
    case 14:
        HeaderCommand += 'If you paid for a link to this page, you have been ';
        HeaderCommand += '<a href="../_ar/Scammed.html">';
        HeaderCommand += 'ripped off!</a>';
        break;
    case 15:
    case 16:
    case 17:
        HeaderCommand += 'Web space for our ';
        HeaderCommand += '<a href="../_aLinks/lnksis_SisterSites.html">';
        HeaderCommand += 'various sister sites</a>';
        HeaderCommand += ' inexpensively provided by the folks at ';
        HeaderCommand += '<a href="http://bdarby.com">';
        HeaderCommand += 'bdarby.com</a>. ';
        HeaderCommand += 'Thanks, guys!';
        break;
    case 18:
    case 19:
    case 20:
        HeaderCommand += 'Web space for our ';
        HeaderCommand += '<a href="../_ar/Halloween.html">';
        HeaderCommand += 'Halloween content</a>';
        HeaderCommand += ' generously provided by the ghastly ghouls at ';
        HeaderCommand += '<a href="http://www.horrorfind.com">';
        HeaderCommand += 'Horrorfind</a>. ';
        HeaderCommand += 'Thanks, guys!';
        break;
    default:
        break;
    }
    if ('' != HeaderCommand)
    {
        HeaderCommand = '<center>' + HeaderCommand;
        HeaderCommand = '<TABLE BORDER ALIGN=CENTER><TR><TD>' + HeaderCommand;
        HeaderCommand = HeaderCommand + '</TD></TR></TABLE>';
        HeaderCommand = HeaderCommand + '</center>';
    }
  }

  document.write(HeaderCommand)
} // StartTranslate()

