// SET UP TOGGLING OF TRANSCRIPT

function prepareTranscript() {
	if (!document.getElementsByTagName) return false;	// Checks to make sure this function exists. Halts execution of script if not
	if (!document.getElementById('transcript')) return false;	// Checks to make sure this function exists. Halts execution of script if not
	
	var $transcript = document.getElementById('transcript');
	
	var $transcriptH2 = document.getElementById('transcript-h2');
	
	$transcriptH2.className = "toggle-link-closed";
	
	$transcriptH2.onclick = function() {
		var $transcript = document.getElementById('transcript');
		if ($transcript.style.display == "block") {
			$transcript.style.display = "none";
			this.className = "toggle-link-closed";
		} else {
			$transcript.style.display = "block";			
			this.className = "toggle-link-open";
		}
	}
}

addLoadEvent(prepareTranscript);