// JavaScript Document

function newImage( imgSrc ){

 var imgName = new Image();
 imgName.src = imgSrc;

 return imgName;

}

function change( imgName, imgLocation )
{
 document[imgName].src = imgLocation ;
}

var preloadFlag = false;
function loadImages()
{
 if (document.images)
 {

about_on = newImage("images/buttons/about_on.png");
 remodeling_on = newImage("images/buttons/remodeling_on.png");
 landscaping_on = newImage("images/buttons/landscaping_on.png");
 contact_on = newImage("images/buttons/contact_on.png");

preloadFlag = true;

changeImage();

 }
}