﻿//This script allows for collapsing and expanding of text on the page.
//This has been tested on both IE and Firefox and appears to work
// correctly. This script takes advantage of DHTML.

function toggleStep( me ){

    //Declare local variables

    var myElems = document.getElementsByTagName("div");
	var myElem = document.getElementById( me );
    
	if (myElem.style.display=="block"){
		
		//Close item if open item is clicked
		myElem.style.display="none";
	}
	else {
		      //Clear all previous block elements to none
		for ( var i = 0; i < myElems.length; ++i )
            myElems[i].style.display = "none";
			
			//Show selected item
		myElem.style.display="block";
		
	}

}
