//Changes img src on hover

familyButton = new Image(); 
familyButton.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/family.png";
familyButton2 = new Image(); 
familyButton2.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/family2.png";

schoolButton = new Image(); 
schoolButton.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/school.png";
schoolButton2 = new Image(); 
schoolButton2.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/school2.png";

freeButton = new Image(); 
freeButton.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/free.png";
freeButton2 = new Image(); 
freeButton2.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/free2.png";

servButton = new Image(); 
servButton.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/serv.png";
servButton2 = new Image(); 
servButton2.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/serv2.png";

contactButton = new Image(); 
contactButton.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/contact.png";
contactButton2 = new Image(); 
contactButton2.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/contact2.png";

ccButton = new Image(); 
ccButton.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/cc.png";
ccButton2 = new Image(); 
ccButton2.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/cc2.png";


intButton = new Image(); 
intButton.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/int.png";
intButton2 = new Image(); 
intButton2.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/int2.png";

facebookButton = new Image(); 
facebookButton.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/facebook.png";
facebookButton2 = new Image(); 
facebookButton2.src = "http://www.ozarktherapy.com/wp-content/themes/fest/images/facebook2.png";

$(function() {
    $(".sidePic")
        .mouseover(function() { 
            var image = $(this).attr("name") + "Button2";
            $(this).attr("src", eval(image + ".src"));
        })
        .mouseout(function() {
            var image = $(this).attr("name") + "Button";
            $(this).attr("src", eval(image + ".src"));
        });
});

/*
function changeFamily() {
	document.fam.src=familyButton2.src;
}
function changeFamilyBack() {
	document.fam.src=familyButton.src;
}
function changeSchool() {
	document.school.src=schoolButton2.src;
}
function changeSchoolBack() {
	document.school.src=schoolButton.src;
}
function changeFree() {
	document.free.src=freeButton2.src;
}
function changeFreeBack() {
	document.free.src=freeButton.src;
}
function changeServ() {
	document.serv.src=servButton2.src;
}
function changeServBack() {
	document.serv.src=servButton.src;
}
function changeContact() {
	document.contact.src=contactButton2.src;
}
function changeContactBack() {
	document.contact.src=contactButton.src;
}
function changeCC() {
	document.cc.src=ccButton2.src;
}
function changeCCBack() {
	document.cc.src=ccButton.src;
}
function changeInt() {
	document.int.src=intButton2.src;
}
function changeIntBack() {
	document.int.src=intButton.src;
}*/
