// Javascript Functions
// ©2003 SmugDog Interactive Web Solutions

var imgpath = "files/";
var over = "button_over_";
var normal = "button_normal_";

// preload mouseovers
var home = new Image(105,18);
var plumbing = new Image(105,18);
var electrical = new Image(105,18);
var multiroom = new Image(105,18);
var automation = new Image(105,18);
var contactus = new Image(105,18);
home.src = imgpath+over+"home.gif";
plumbing.src = imgpath+over+"plumbing.gif";
electrical.src = imgpath+over+"electrical.gif";
multiroom.src = imgpath+over+"multiroom.gif";
automation.src = imgpath+over+"automation.gif";
contactus.src = imgpath+over+"contactus.gif";


function changeButton(id,state) {
	if (document.images) {
		if (state) {
			document.images[id].src = imgpath+over+id+".gif";
		}	
		else {
			document.images[id].src = imgpath+normal+id+".gif";
		}	
	}
}


