﻿function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function showSection(targetId) { //DOM
	var target = MM_findObj(targetId);//
	var sectionContainer = document.getElementById("supportingText");
	var sections = sectionContainer.getElementsByTagName("div");
	for (var i=0; i < sections.length; i++) {
        var thisSection = sections[i];
		var strId = thisSection.id.toString();
		if (strId.indexOf("section") != -1) {
		if (document.getElementById){
			thisSection.style.display = "none";
			thisSection.style.visibility="hidden";
		}else{
			if (document.layers){ //NS4
				thisSection.display = "none";
				thisSection.visibility = "hidden";
			}
			else { //IE4
				thisSection.style.display = "none";
				thisSection.style.visibility = "hidden";
			}
		}
		}
    }
	
	if (document.getElementById){
		target.style.display = "block";
		target.style.visibility="visible";
	}else{
		if (document.layers){ //NS4
			target.display = "block";
			target.visibility = "visible";
		}
		else { //IE4
			target.style.display = "block";
			target.style.visibility = "visible";
		}
	}
}
