need onclick to disable mouseover effects on an element

My page:

http://webcemeteries.com/tributes

Note if you click the buttons, they change to another image. However, it doesn't "stick"... I need some way to disable the mouseover effect once a button is clicked. And then re-instate the mouseover effects. Is there some easy way to do this? My Javascript is not that good. Thank you!
<script language="javascript" type="text/javascript">
	if (document.images) {

	var buttonaoff = new Image()
	buttonaoff.src = "art/bt_1.jpg"
	var buttonaon = new Image()
	buttonaon.src = "art/bt_1b.jpg"
	var buttonahl = new Image()
	buttonahl.src = "art/bt_1c.jpg"

	var buttonboff = new Image()
	buttonboff.src = "art/bt_2.jpg"
	var buttonbon = new Image()
	buttonbon.src = "art/bt_2b.jpg"
	var buttonbhl = new Image()
	buttonbhl.src = "art/bt_2c.jpg"

	var buttoncoff = new Image()
	buttoncoff.src = "art/bt_3.jpg"
	var buttoncon = new Image()
	buttoncon.src = "art/bt_3b.jpg"
	var buttonchl = new Image()
	buttonchl.src = "art/bt_3c.jpg"

	var buttondoff = new Image()
	buttondoff.src = "art/bt_4.jpg"
	var buttondon = new Image()
	buttondon.src = "art/bt_4b.jpg"
	var buttondhl = new Image()
	buttondhl.src = "art/bt_4c.jpg"

	var buttoneoff = new Image()
	buttoneoff.src = "art/bt_5.jpg"
	var buttoneon = new Image()
	buttoneon.src = "art/bt_5b.jpg"
	var buttonehl = new Image()
	buttonehl.src = "art/bt_5c.jpg"

	var buttonfoff = new Image()
	buttonfoff.src = "art/bt_6.jpg"
	var buttonfon = new Image()
	buttonfon.src = "art/bt_6b.jpg"
	var buttonfhl = new Image()
	buttonfhl.src = "art/bt_6c.jpg"

	var buttongoff = new Image()
	buttongoff.src = "art/bt_7.jpg"
	var buttongon = new Image()
	buttongon.src = "art/bt_7b.jpg"
	var buttonghl = new Image()
	buttonghl.src = "art/bt_7c.jpg"

	var buttonhoff = new Image()
	buttonhoff.src = "art/bt_8.jpg"
	var buttonhon = new Image()
	buttonhon.src = "art/bt_8b.jpg"
	var buttonhhl = new Image()
	buttonhhl.src = "art/bt_8c.jpg"
	}

	function act(imgName) {
	if (document.images)
	document[imgName].src = eval(imgName + 'on.src')
	}

	function inact(imgName) {
	if (document.images)
	document[imgName].src = eval(imgName + 'off.src')
	}
</script>
<script language="javascript" type="text/javascript">
function toggle(obj,bt) {
	document.getElementById('obituary').style.display = "none";
	document.getElementById('memories').style.display = "none";
	document.getElementById('submitamemory').style.display = "none";
	document.getElementById('lifehistory').style.display = "none";
	document.getElementById('militaryservice').style.display = "none";
	document.getElementById('video').style.display = "none";
	document.getElementById('pictures').style.display = "none";
	document.getElementById('serviceinformation').style.display = "none";
	document.getElementById(obj).style.display = "block";
	document[bt].src = eval(bt + 'hl.src')
}
</script>

Open in new window

Brad BansnerWeb DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ronan1979Commented:
the idea is to store the current active button
var activeButton = null;

in inact function
...
   if(button == activeButton) {
     do nothing
   }

in toogle function
 ...
    // reset the previous
    var oldActiveButton = activeButton
    activeButton = newButton
    // reset
    inact(oldActiveButton);
   //set
    act(activeButton)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brad BansnerWeb DeveloperAuthor Commented:
Great, thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.