window.defaultStatus = "Happy Woodworking!";

var now    = new Date();
var days   = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var date   = ((now.getDate()<10) ? "0" : "")+ now.getDate();
function fourdigits(number) 
  {return (number < 1000) ? number + 1900 : number; }

function displaydate()
 {today      =  days[now.getDay()] + ", " + months[now.getMonth()] + " " + date + ", " + (fourdigits(now.getYear())) ;
  document.write("" +today+ ".");}



function MenuSelect(ButtonName,ImageSource)
 {document["pointer"].src="images/pointer.gif";
  document["woodworking"].src="images/woodworking-dim.gif";
  document["tools"].src="images/tools-dim.gif";
  document["workshop"].src="images/workshop-dim.gif";
  document["gallery"].src="images/gallery-dim.gif";
  document[ButtonName].src=ImageSource;}

function MenuReset()
 {document["pointer"].src="images/pointer.gif";
  document["woodworking"].src="images/woodworking.gif";
  document["tools"].src="images/tools.gif";
  document["workshop"].src="images/workshop.gif";
  document["gallery"].src="images/gallery.gif";}

function PointFaster()
 {document["pointer"].src="images/pointer-fast.gif";}

image1 = new Image(); image1.src = "images/pointer-fast.gif";
image2 = new Image(); image2.src = "images/woodworking-dim.gif";
image3 = new Image(); image3.src = "images/tools-dim.gif";
image4 = new Image(); image4.src = "images/workshop-dim.gif";
image5 = new Image(); image5.src = "images/gallery-dim.gif";

function DotNormal(DotNumber)
 {document[DotNumber].src="images/Dot.gif";}

function DotBold(DotNumber)
 {document[DotNumber].src="images/DotBold.gif";}

function ChangePicture(Picture,PictureImageFile)
           {document[Picture].src=PictureImageFile;}

function EnlargePicture(Picture)
 {document[Picture].src=Picture+"-big.jpg";}

function ReducePicture(Picture)
 {document[Picture].src=Picture+".jpg";}
