    var fontColor        = "Black";
    var HRefColor        = "Blue";
    var fontFace         = "Arial";
    var blinkEnabled     = true;
    var boldEnabled      = true;
    var italicizeEnabled = true;
    var targetFrame      = "Main";    // where to open the link

    var lowCSS        = !(document.all);  // browser doesn't implement CSS correctly         false = PC, true = Mac

  var theButtons    = new Array (Array ("HOME", "Back to the home page"),
                                 Array ("2011-2012 Season", "What we are doing this season"),
                                 Array ("TICKETS", "Order tickets via online box office"),
                                 Array ("Mission", "What we are about"),
                                 Array ("History", "A little about Dreamcatcher"),
                                 Array ("Photo Gallery", "See some Pictures"),
  //                                 Array ("What's New", "The Latest News. . . Check Frequently!"),    //  
                                 Array ("Meet The Artist Series", "What it is"),
                                 Array ("Internships", "For high school students"),
                                 Array ("Summer Theater Conservatory", "Enrollment Information"),
  //                               Array ("Adult Classes", "Enrollment Information"),  //
                                 Array ("Staff", "Who is Who"),
   //                              Array ("Who Else Is Who", "More Staff"),         //
                                 Array ("Funding", "Where it comes from"),
                                 Array ("Support Us", "How you can help"),
                                 Array ("Submissions", "Guidelines for submitting your script"),
                                 Array ("Contact Us", "Phone, fax or mail"),
                                 Array ("Directions", "How to find us"),
                                 Array ("Press Room", "Archived Press Releases")
                       )

  var numberOfButtons = theButtons.length;

function collapsed (fullString) {

  var collapsedString = "";

  for (i=0; i < fullString.length; i++)
    if ((fullString.charAt(i) != " ") &&
        (fullString.charAt(i) != "/") &&
        (fullString.charAt(i) != "&") &&
        (fullString.charAt(i) != "-") &&
        (fullString.charAt(i) != "'"))
         collapsedString += fullString.charAt(i);

	var collapsedString = collapsedString.toLowerCase();


return (collapsedString)

}

function drawTheMenu(topOrBottom) {

   document.writeln ('<Div Align="Center" Name="' + topOrBottom + '" Class="' + topOrBottom + '" Id="' + topOrBottom + '"'
/*                    +(lowCSS ? ' Style="Left:300;"' : '') + '>');   */
                      +(lowCSS ? ' Style="Left:165;"' : '') + '>');

    var currentPage = collapsed(location.href.toString());

      for (var buttonNumber= 0; buttonNumber < numberOfButtons; buttonNumber++) {

        buttonText = theButtons[buttonNumber][0];
        buttonHref = collapsed(buttonText) + ".html";
        buttonDescription = theButtons[buttonNumber][1]

        document.writeln ('       <A Class="' + (currentPage.indexOf(buttonHref)+1 ? "MenuButtonCurrent" : "MenuButtonOff")
                         +'" Style="Width:' + (buttonText*2) + ';" Href="' + buttonHref + '" ');
        document.writeln ('          onMouseOver="window.status=\'' + buttonDescription + '\';'
                                  + 'if (this.className !=\'MenuButtonCurrent\') {this.className=\'MenuButtonOn\';} return (true);"');
        document.writeln ('          onMouseOut="window.status=\'\';'
                            + 'if (this.className !=\'MenuButtonCurrent\') {this.className=\'MenuButtonOff\';} return (true);">');
        document.writeln ('            ' + buttonText);
        document.writeln ('       </A> + ');

       }

 document.writeln ('</Div>');

}

function writeTheOpeningCredits () {

 document.writeln ('<Div Class="OpeningCredits" Id="OpeningCredits" Name="OpeningCredits">');
 document.writeln ('<a href="/"><IMG SRC="graphics/DRTMoon.gif" Border="0" Alt="Welcome to Dreamcatcher Repertory Theatre!" Align="Left"'
                  +' Height="' + (lowCSS ? '80' : '90%') + '"></a>');
 document.writeln ('<p style="text-align:right; margin-right:10px; font-family:Arial, Helvetica, sans-serif; color:#8182B4; font-size:11px">');
 document.writeln ('<b>Dreamcatcher Repertory Theatre</b><BR>');
 document.writeln ('Baird Center &bull; 5 Mead Street<br>');
 document.writeln ('South Orange, NJ 07079<BR>');
 document.writeln ('phone: 973-378-7754 x2228<BR>');
 document.writeln ('e-mail: <B>info@DreamcatcherRep.org</B>');
 document.writeln ('<BR>');
 document.writeln ('<Center>');
 document.writeln ('<IMG SRC="graphics/HorizontalBar.jpg" Border="0" Alt="Blue-Green Lighting" Width="100%">');
 document.writeln ('</Center>');
 drawTheMenu("DRTopMenu");
 document.writeln ('</Div>');

}

function writeTheClosingCredits() {}
function writeTheClosingCreditsSAVED() {

var today = new Date();
var theYear = today.getYear().toString();
document.writeln ('<BR><BR> ');
document.writeln ('<Div Class="ClosingCredits" Id="ClosingCredits" Name="ClosingCredits"'
                 +(lowCSS ?  'Style="Bottom:0;" onMouseOver="this.style.visibility=\'Hidden\';"' : "") + '>');
    /*           +(lowCSS ?  'Style="Bottom:0;" onMouseOver="this.style.visibility=\'Hidden\';"' : "") + '>');   */

document.writeln ('<A Href="http://NJArtsCouncil.org" Target="New">'
                 +'  <Img Align="Left" Src="graphics/NJArtsCouncilBanner.gif" Width="75" Border="0"></A>');
document.writeln ('<A Href="http://JerseyArts.com" Target="New">'
                 +'  <Img Align="Right" Src="graphics/DiscoverNJArtsBanner.gif" Width="60" Border="0"></A>');
document.writeln ('<small><Font Color="Blue"> Copyright © 2000 - 20' + theYear.substring(theYear.length-2, theYear.length) + ' Dreamcatcher Repertory Theatre <BR>');
document.writeln ('Dreamcatcher Repertory Theatre, Inc. is a not-for-profit 501(c)(3) corporation, incorporated under the laws'
                 +'  of the State of New Jersey.');

document.writeln ('<br><I>Updated: </i>');
           lastmod = document.lastModified // get string of last modified date
           lastmoddate = Date.parse(lastmod)   // convert modified string to date
           if(lastmoddate == 0){               // unknown date (or January 1, 1970 GMT)
               document.writeln("Unknown");
           } 
           else {
             document.writeln(lastmod);
          }
/*   document.writeln ('lowcss = "' + lowCSS + '"');   */
document.writeln ('</Small></Font>');

document.writeln('</Div>');

}
