﻿// Button Script
<!--
background = new Image();
	background.src = "../images/jwbackground.jpg";
foreground = new Image();
	foreground.src = "../images/jwforeground.jpg";
content = new Image();
	content.src = "../images/contentbackground.jpg";

if (document.images) {
	homeon = new Image();           // The onmouseover image
	homeon.src = "../images/buttons/homehover.png";  
	homeoff = new Image();          // The normally seen image
	homeoff.src = "../images/buttons/home.png"; 
	homeclick = new Image();          // The clicked image
	homeclick.src = "../images/buttons/homeclick.png";
	ranchon = new Image();           // The onmouseover image
	ranchon.src = "../images/buttons/ranchhover.png";  
	ranchoff = new Image();          // The normally seen image
	ranchoff.src = "../images/buttons/ranch.png"; 
	ranchclick = new Image();          // The clicked image
	ranchclick.src = "../images/buttons/ranchclick.png";
	cutterson = new Image();           // The onmouseover image
	cutterson.src = "../images/buttons/cuttershover.png";  
	cuttersoff = new Image();          // The normally seen image
	cuttersoff.src = "../images/buttons/cutters.png"; 
	cuttersclick = new Image();          // The clicked image
	cuttersclick.src = "../images/buttons/cuttersclick.png";
	prospectson = new Image();           // The onmouseover image
	prospectson.src = "../images/buttons/prospectshover.png";  
	prospectsoff = new Image();          // The normally seen image
	prospectsoff.src = "../images/buttons/prospects.png"; 
	prospectsclick = new Image();          // The clicked image
	prospectsclick.src = "../images/buttons/prospectsclick.png";
	saleon = new Image();           // The onmouseover image
	saleon.src = "../images/buttons/salehover.png";  
	saleoff = new Image();          // The normally seen image
	saleoff.src = "../images/buttons/sale.png"; 
	saleclick = new Image();          // The clicked image
	saleclick.src = "../images/buttons/saleclick.png";
	broodmareson = new Image();           // The onmouseover image
	broodmareson.src = "../images/buttons/broodmareshover.png";  
	broodmaresoff = new Image();          // The normally seen image
	broodmaresoff.src = "../images/buttons/broodmares.png"; 
	broodmaresclick = new Image();          // The clicked image
	broodmaresclick.src = "../images/buttons/broodmaresclick.png";
	refon = new Image();           // The onmouseover image
	refon.src = "../images/buttons/refhover.png";  
	refoff = new Image();          // The normally seen image
	refoff.src = "../images/buttons/ref.png"; 
	refclick = new Image();          // The clicked image
	refclick.src = "../images/buttons/refclick.png";
	contacton = new Image();           // The onmouseover image
	contacton.src = "../images/buttons/contacthover.png";  
	contactoff = new Image();          // The normally seen image
	contactoff.src = "../images/buttons/contact.png"; 
	contactclick = new Image();          // The clicked image
	contactclick.src = "../images/buttons/contactclick.png";
	linkson = new Image();           // The onmouseover image
	linkson.src = "../images/buttons/linkshover.png";  
	linksoff = new Image();          // The normally seen image
	linksoff.src = "../images/buttons/links.png"; 
	linksclick = new Image();          // The clicked image
	linksclick.src = "../images/buttons/linksclick.png";

	}

//This function changes the image when over.
    function imgOn(imgName) {
            if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
            }
    }

//This function changes the image back when off.
    function imgOff(imgName) {
            if (document.images) {
            document[imgName].src = eval(imgName + "off.src");        
            }
    }
//This function changes the image when clicked on.
    function imgClick(imgName) {
            if (document.images) {
            document[imgName].src = eval(imgName + "click.src");        
            }
    }
// -->
