// JAVASCRIPT CREDITS
// ==================
// Function Name        Purpose                  Authorship                           Web site
// ------------------   ----------------------   ----------------------------------   ------------------------------------------------------------------------------------------
// changePage           Frame-buster code        Gordon McComb
// Guardian             Password entry           blank66                              www.fortunecity.com/lavendar/clint/29/guardian_v1.html
// Spam-free e-mail address                      Agony                                webdeveloper.earthweb.com/webjs/item/0,3602,12755_62741,00.html
// Formatting of document.lastModified           Nick Doylend                         archives.hwg.org/hwg-techniques/006401c04dc2$e2db7040$0200a8c0@daydreamer
// All other functions and code were written and/or adapted by Bill Whitmore.

var name0  = "wwhitm2795@";
var name5 = "dicknels@";
var domn5 = "msn.com";

var agt    = navigator.userAgent.toLowerCase();
var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
               && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
               && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));

// Variables to reformat today's date and time
var months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var mdate  = new Date (document.lastModified);                  // Load the last-modified date
var rmonth = months[mdate.getMonth()];                          // Convert the month to the name
var rdate  = mdate.getDate();                                   // Isolate the date's date
(is_nav) ? ryear=2000+mdate.getYear() : ryear=mdate.getYear();  // Reformat the year
var rtext  = rmonth + " " + rdate + ", " + ryear;

if (document.images)
   {
   img1load = new Image(350,70);                     // Pre-load image
   img2load = new Image(350,70);
   img1load.src = "images/title.gif";
   img2load.src = "images/new_banner2.gif";

   img1on = new Image(224,342);                     // Active images
   img2on = new Image(224,342);
   img3on = new Image(224,342);
   img4on = new Image(224,342);
   img5on = new Image(224,342);
   img6on = new Image(224,342);
   img7on = new Image(224,342);
   img9on = new Image(224,342);
   img1on.src = "images/dove_about.gif";
   img2on.src = "images/dove_bio.gif";
   img3on.src = "images/dove_proj.gif";
   img4on.src = "images/dove_contrib.gif";
   img5on.src = "images/dove_res.gif";
   img6on.src = "images/dove_link.gif";
   img7on.src = "images/dove_contact.gif";
   img9on.src = "images/dove_guest.gif";

   img1off = new Image(224,342);                     // Inactive images
   img1off.src = "images/dovenav.gif";
  }

function imgOn(imgName)
   {
   if (document.images)
      {
      document.puzzle.src = eval(imgName + "on.src");
      }
   }

function imgOff()
   {
   if (document.images)
      {
      document.puzzle.src = img1off.src; return true; 
      }
   }

setTimeout ("changePage()", 3000);
function changePage()
   {
   if (self.parent.frames.length != 0)
      {
      self.parent.location=document.location;
      }
   }

// Utility to protect access
function Guardian() {
        var password = document.form1.password.value;
        var location="html/" + password + ".html";
        if (password == "KPER")
           {
           this.location.href = location;
           }
        if (password == "kper")
           {
           this.location.href = location;
           }
   }

function more() {
        // leave the following line of script intact!  ©1997 Blank66.Inc all rights reserved
        alert("Guardian V1.3a programmed by Blank66. \nSee http://www.fortunecity.com/lavendar/clint/29/guardian_v1.html. " )
    }

