// Function for the animalhealth matrix

function toggleMatrix(productGroup,animal,what) {
	layerId = null;
	imageName = null;
	crossIllu = null;
	
	pg = productGroup;
	an = animal;
	imageName = 'illu_'+animal;
	imagePath = '/corporate/images/products/';
	imageFile = 'illu-animalhealth-matrix-'+animal+'.gif';
	imageFileHi = 'illu-animalhealth-matrix-'+animal+'_hi.gif';
	crossIllu = document.getElementById('crossillu_'+pg+'_'+an);

	layerId = pg+'-'+an;
	if (layerId && imageName) {
		if (what == 'on') {
			showElement(layerId);
			document.images[imageName].src = imagePath+imageFileHi;
			if (crossIllu) {
				//crossIllu.style.background = ('url(/corporate/images/link-cross-grey.gif) left top no-repeat;');
			}
		}
		else if (what == 'off') {
			hideElement(layerId); 
			document.images[imageName].src = imagePath+imageFile;
			if (crossIllu) {
				//crossIllu.style.background = ('url(/corporate/images/link-cross-orange.gif) left top no-repeat;');
			}
		}
	}
}