swapProd.current = 0;
function swapProd(id){
	root = document.getElementById("mainPanel");
	var mh = root.scrollHeight;
if (swapProd.current){
	el = document.getElementById(swapProd.current);
	el.style.display='none';

}
swapProd.current = id;
el = document.getElementById(id);
el.style.display='block';

	if (root.scrollHeight > mh){
		root.style.height = root.scrollHeight + 'px';

	}

}


swapBioImage.current = 0;
function swapBioImage(id){
	if (swapBioImage.current){
		el = document.getElementById(swapBioImage.current);
		el.style.display='none';
	
	}
	if (id){
		swapBioImage.current = id;
		el = document.getElementById(id);
		el.style.display='block';
	
	}
}


swapDiv.current = Array();

function swapDiv(divset, id){
	root = document.getElementById("mainPanel");
	var mh = root.scrollHeight;

	if (swapDiv.current[divset]){
		el = document.getElementById(swapDiv.current[divset]);
		el.style.display='none';
	
	}
	if (id){
		swapDiv.current[divset] = id;
		el = document.getElementById(id);
		el.style.display='block';
		if (root.scrollHeight > mh){
			root.style.height = root.scrollHeight + 'px';
	
		}	
	}
}

