
   // preload images for rollovers

   if (document.images) 
   {
      menudir = "/images/menu/";

      menuBoxoffice1 = new Image(190,155);
      menuBoxoffice1.src = menudir + "boxoffice1.gif";
      menuBoxoffice2 = new Image(190,155);
      menuBoxoffice2.src = menudir + "boxoffice2.jpg";

      menuHome1 = new Image(50,27);
      menuHome1.src = menudir + "home1.gif";
      menuHome2 = new Image(50,27);
      menuHome2.src = menudir + "home2.gif";

      menuFilms1 = new Image(57,27);
      menuFilms1.src = menudir + "films1.gif";
      menuFilms2 = new Image(57,27);
      menuFilms2.src = menudir + "films2.gif";

      menuInteract1 = new Image(84,27);
      menuInteract1.src = menudir + "interact1.gif";
      menuInteract2 = new Image(84,27);
      menuInteract2.src = menudir + "interact2.gif";

      menuEducation1 = new Image(98,27);
      menuEducation1.src = menudir + "education1.gif";
      menuEducation2 = new Image(98,27);
      menuEducation2.src = menudir + "education2.gif";

      menuMembership1 = new Image(106,27);
      menuMembership1.src = menudir + "membership1.gif";
      menuMembership2 = new Image(106,27);
      menuMembership2.src = menudir + "membership2.gif";

      menuSupport1 = new Image(81,27);
      menuSupport1.src = menudir + "support1.gif";
      menuSupport2 = new Image(81,27);
      menuSupport2.src = menudir + "support2.gif";

      menuVisit1 = new Image(50,27);
      menuVisit1.src = menudir + "visit1.gif";
      menuVisit2 = new Image(50,27);
      menuVisit2.src = menudir + "visit2.gif";

      menuAbout1 = new Image(66,27);
      menuAbout1.src = menudir + "about1.gif";
      menuAbout2 = new Image(66,27);
      menuAbout2.src = menudir + "about2.gif";
   }

   // simple image replacements

   function rollOn(imgID)
   {
      if (document.images) document.images[imgID].src = eval(imgID + "2.src"); 
   }

   function rollOff(imgID)
   {
      if (document.images) document.images[imgID].src = eval(imgID + "1.src"); 
   }

   // comment display / hide

   function showComments(id,type)
   {  
      $("div#commentbar" + id + type + " a.commentshow").fadeOut("fast",function()
      {
         $("div#commentbar" + id + type + " a.commentworking").fadeIn("fast",function()
         {
            $("div#comments" + id + type).load("/comments.php?id=" + id + "&type=" + type,function()
            {
               $(this).slideDown("fast",function()
               {
                  $("div#commentbar" + id + type + " a.commentworking").fadeOut("fast",function()
                  {
                     $("div#commentbar" + id + type + " a.commenthide").fadeIn("fast");
                  });
               });
            });
         });
      });
   }

   function hideComments(id,type)
   {
      $("div#comments" + id + type)
         .slideUp("fast",function()
         {
            $("div#commentbar" + id + type + " a.commenthide").fadeOut("fast",function()
            {
               $("div#commentbar" + id + type + " a.commentshow").fadeIn("fast");
            });
         });
   }

   // retrieve a calendar month

   function getMonth(yrmo)
   {
      $('#monthdiv').load("/films/month.php?month=" + yrmo);
      // hideDay();
   }

   // retrieve a single day's listing

   function getDay(day)
   {
      $('#daydisplay').hide(1,function()
      {
         $('#daydiv').load("/films/day.php?id=" + day,function()
         {
            $('#daydisplay').html($('#daydiv').html());
            $('#daydisplay').slideDown('fast');
         });
      });
   }

   // hide day listing

   function hideDay()
   {
      $('#daydisplay').hide(1,function()
      {
         $('#daydisplay').html($('#upcoming').html());
         $('#daydisplay').slideDown('fast');
      });
   };


