I wrote this to using six sets of three images, and am using the image as a "click"able element,
which will send folks to a different page.

The code works fine now, my problem is it's long, and I'm trying to figure out a way to shorten it.
I've tried a few different ways, multiple functions, loops, etc. and I'm not getting anywhere.

Any help is appreciated.


Code:

function addListeners(){
	document.getElementById('english_button').addEventListener("mouseover",myfuncE,false);
	document.getElementById('english_button').addEventListener("mouseout",myfuncE,false);
	document.getElementById('english_button').addEventListener("mousedown",myfuncE,false);
	document.getElementById('english_button').addEventListener("mouseup",myfuncE,false);
	
	document.getElementById('german_button').addEventListener("mouseover",myfuncG,false);
	document.getElementById('german_button').addEventListener("mouseout",myfuncG,false);
	document.getElementById('german_button').addEventListener("mousedown",myfuncG,false);
	document.getElementById('german_button').addEventListener("mouseup",myfuncG,false);
	
	document.getElementById('tagalog_button').addEventListener("mouseover",myfuncT,false);
	document.getElementById('tagalog_button').addEventListener("mouseout",myfuncT,false);
	document.getElementById('tagalog_button').addEventListener("mousedown",myfuncT,false);
	document.getElementById('tagalog_button').addEventListener("mouseup",myfuncT,false);	
	
	document.getElementById('russian_button').addEventListener("mouseover",myfuncR,false);
	document.getElementById('russian_button').addEventListener("mouseout",myfuncR,false);
	document.getElementById('russian_button').addEventListener("mousedown",myfuncR,false);
	document.getElementById('russian_button').addEventListener("mouseup",myfuncR,false);
	
	document.getElementById('spanish_button').addEventListener("mouseover",myfuncS,false);
	document.getElementById('spanish_button').addEventListener("mouseout",myfuncS,false);
	document.getElementById('spanish_button').addEventListener("mousedown",myfuncS,false);
	document.getElementById('spanish_button').addEventListener("mouseup",myfuncS,false);
	
	document.getElementById('french_button').addEventListener("mouseover",myfuncF,false);
	document.getElementById('french_button').addEventListener("mouseout",myfuncF,false);
	document.getElementById('french_button').addEventListener("mousedown",myfuncF,false);
	document.getElementById('french_button').addEventListener("mouseup",myfuncF,false);

	function myfuncE(event){
		if(event.type == "mouseover"){
			this.src = 'English_02.jpg';
		}
		if(event.type == "mouseout"){
			this.src = 'English_01.jpg';
		}
		if(event.type == "mousedown"){
			this.src = 'English_03.jpg';
		}
		if(event.type == "mouseup"){
			this.src = 'English_01.jpg';
		}
	}
	function myfuncG(event){
		if(event.type == "mouseover"){
			this.src = 'German_02.jpg';
		}
		if(event.type == "mouseout"){
			this.src = 'German_01.jpg';
		}
		if(event.type == "mousedown"){
			this.src = 'German_03.jpg';
		}
		if(event.type == "mouseup"){
			this.src = 'German_01.jpg';
		}
	}
	function myfuncT(event){
		if(event.type == "mouseover"){
			this.src = 'Tagalog_02.jpg';
		}
		if(event.type == "mouseout"){
			this.src = 'Tagalog_01.jpg';
		}
		if(event.type == "mousedown"){
			this.src = 'Tagalog_03.jpg';
		}
		if(event.type == "mouseup"){
			this.src = 'Tagalog_01.jpg';
		}
	}
	function myfuncR(event){
		if(event.type == "mouseover"){
			this.src = 'Russian_02.jpg';
		}
		if(event.type == "mouseout"){
			this.src = 'Russian_01.jpg';
		}
		if(event.type == "mousedown"){
			this.src = 'Russian_03.jpg';
		}
		if(event.type == "mouseup"){
			this.src = 'Russian_01.jpg';
		}
	}
	function myfuncS(event){
		if(event.type == "mouseover"){
			this.src = 'Spanish_02.jpg';
		}
		if(event.type == "mouseout"){
			this.src = 'Spanish_01.jpg';
		}
		if(event.type == "mousedown"){
			this.src = 'Spanish_03.jpg';
		}
		if(event.type == "mouseup"){
			this.src = 'Spanish_01.jpg';
		}
	}
	function myfuncF(event){
		if(event.type == "mouseover"){
			this.src = 'French_02.jpg';
		}
		if(event.type == "mouseout"){
			this.src = 'French_01.jpg';
		}
		if(event.type == "mousedown"){
			this.src = 'French_03.jpg';
		}
		if(event.type == "mouseup"){
			this.src = 'French_01.jpg';
		}
	}
}
window.onload = addListeners;