// JavaScript Document
blnImg = document.images
function Create(Name) {
  Rollovers[Name]=new Rollover(Name);
}
function Rollover(Name) {
    this.name       = Name;
	this.btnImg     = new Image;
	this.ovrImg     = new Image;
	this.btnImg.src = "../images/btn-"+Name+".gif";
	this.ovrImg.src = "../images/ovr-"+Name+".gif";
}	
function Btn(Name) {
  if (blnImg) {
    document[Name].src = Rollovers[Name].btnImg.src;
  }
}
function Ovr(Name) {
  if (blnImg) {
    document[Name].src = Rollovers[Name].ovrImg.src;
  }
} 
if (blnImg) {
      Rollovers = new Object;
	  Create("home");
	  Create("gallery");
	  Create("work");
	  Create("contact");
}


