﻿/* LanCrafters.com Javascript Scripts */

// Image MouseOver Loading Code
if (document.images) {
	grounds_on = new Image(); 
	grounds_on.src ="images/grounds_on.jpg";
	landscaping_on = new Image(); 
	landscaping_on.src ="images/landscaping_on.gif";
	hardscaping_on = new Image(); 
	hardscaping_on.src ="images/hardscaping_on.gif";
	waterfeatures_on = new Image(); 
	waterfeatures_on.src ="images/waterfeatures_on.gif";
	irrigation_on = new Image(); 
	irrigation_on.src ="images/irrigation_on.gif";
	sitework_on = new Image(); 
	sitework_on.src ="images/sitework_on.jpg";
	otherservices_on = new Image(); 
	otherservices_on.src ="images/otherservices_on.gif";
	inthenews_on = new Image(); 
	inthenews_on.src ="images/inthenews_on.gif";
	testimonials_on = new Image(); 
	testimonials_on.src ="images/testimonials_on.gif";
	aboutus_on = new Image(); 
	aboutus_on.src ="images/aboutus_on.gif";
	contactus_on = new Image(); 
	contactus_on.src ="images/contactus_on.gif";
	home_on = new Image(); 
	home_on.src ="images/home_on.gif";

	grounds_off = new Image(); 
	grounds_off.src ="images/grounds_off.jpg";
	landscaping_off = new Image(); 
	landscaping_off.src ="images/landscaping_off.gif";
	hardscaping_off = new Image(); 
	hardscaping_off.src ="images/hardscaping_off.gif";
	waterfeatures_off = new Image(); 
	waterfeatures_off.src ="images/waterfeatures_off.gif";
	irrigation_off = new Image(); 
	irrigation_off.src ="images/irrigation_off.gif";
	sitework_off = new Image(); 
	sitework_off.src ="images/sitework_off.jpg";
	otherservices_off = new Image(); 
	otherservices_off.src ="images/otherservices_off.gif";
	inthenews_off = new Image(); 
	inthenews_off.src ="images/inthenews_off.gif";
	testimonials_off = new Image(); 
	testimonials_off.src ="images/testimonials_off.gif";
	aboutus_off = new Image(); 
	aboutus_off.src ="images/aboutus_off.gif";
	contactus_off = new Image(); 
	contactus_off.src ="images/contactus_off.gif";
	home_off = new Image(); 
	home_off.src ="images/home_off.gif";
}

// Function to 'activate' images.
function imgOn(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "_on.src");
	}
}

// Function to 'deactivate' images.
function imgOff(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "_off.src");
	}
}