﻿if (document.images) {

  newworksOn = new Image();
  newworksOn.src = "images/buttons/stavast_button_newworks_hi.jpg";
  newworksOff = new Image();
  newworksOff.src = "images/buttons/stavast_button_newworks.jpg";

  originalsOn = new Image();
  originalsOn.src = "images/buttons/stavast_button_originals_hi.jpg";
  originalsOff = new Image();
  originalsOff.src = "images/buttons/stavast_button_originals.jpg";

  printsOn = new Image();
  printsOn.src = "images/buttons/stavast_button_prints_hi.jpg";
  printsOff = new Image();
  printsOff.src = "images/buttons/stavast_button_prints.jpg";

  otherOn = new Image();
  otherOn.src = "images/buttons/stavast_button_other_hi.jpg";
  otherOff = new Image();
  otherOff.src = "images/buttons/stavast_button_other.jpg";

  howOn = new Image();
  howOn.src = "images/buttons/stavast_button_how_hi.jpg";
  howOff = new Image();
  howOff.src = "images/buttons/stavast_button_how.jpg";

  eventsOn = new Image();
  eventsOn.src = "images/buttons/stavast_button_events_hi.jpg";
  eventsOff = new Image();
  eventsOff.src = "images/buttons/stavast_button_events.jpg";

  pressOn = new Image();
  pressOn.src = "images/buttons/stavast_button_press_hi.jpg";
  pressOff = new Image();
  pressOff.src = "images/buttons/stavast_button_press.jpg";

  galleryOn = new Image();
  galleryOn.src = "images/buttons/stavast_button_gallery_hi.jpg";
  galleryOff = new Image();
  galleryOff.src = "images/buttons/stavast_button_gallery.jpg";

  commissionedOn = new Image();
  commissionedOn.src = "images/buttons/stavast_button_commissioned_hi.jpg";
  commissionedOff = new Image();
  commissionedOff.src = "images/buttons/stavast_button_commissioned.jpg";

  contactOn = new Image();
  contactOn.src = "images/buttons/stavast_button_contact_hi.jpg";
  contactOff = new Image();
  contactOff.src = "images/buttons/stavast_button_contact.jpg";

  aboutOn = new Image();
  aboutOn.src = "images/buttons/stavast_button_about_hi.jpg";
  aboutOff = new Image();
  aboutOff.src = "images/buttons/stavast_button_about.jpg";

}
function img_act(imgName) {
	if (document.images) {
		document [imgName].src = eval(imgName + "On.src");
	}
}
function img_inact(imgName) {
	if (document.images) {
		document [imgName].src = eval(imgName + "Off.src");
	}
}
function imagesWindow(url,x,y) {
	newWindow = window.open("images/images.cgi?" + url,"imagesWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width="+ x + ",height=" + y);
}
