//This is the containing div's id for the matching game. Place all matching items in this div.
var matchContainer = 'matchContainer';

//This is the class name of the anchor tag surrounding the matching item.
var matchItm = 'matchItm';

//this is the height of each matching item. This is typically 50%, but can be different in different cases
imgHeight = "114";

function initMatch(){
	var mc = document.getElementById(matchContainer);
	var itms = mc.getElementsByTagName('a');
	for (var i=0; i<itms.length; i++){
		if (itms[i].className == matchItm){
			itms[i].onclick = function(){
				if(this.style.backgroundPosition == "0px "+ (imgHeight * -1)+"px"){
					this.style.backgroundPosition = "0px 0px";
				} else {
					this.style.backgroundPosition = "0px " + (imgHeight * -1)+"px";
				}
			}
		}
	}
}