	
			//Actually setting the dialogue box.
			for(i=2; i < tabledata.length; i++) {
				var formatted_link = "<a href=\"byond://?src="+global_reference+";topic="+encodeURIComponent(tabledata[i])+"\">" + tabledata[i].replace("*","") + "</a>"
				add_table_of_contents(tabledata[i])
				dialogue = dialogue.replace("#" + (i-1).toString(), formatted_link)
			}

			document.getElementById("dialogue").innerHTML = dialogue

			//Setting the topic table of contents.
			for(i=0; i < global_stored_topics.length; i++) {