window.onload = function() {
	//variables to pull substrings for page link from title tag
	var page = document.getElementById("title").text;
	
	var escrap = (page.substr(0, 29));	
	
	var sp = page.split(" ");
	
	var forslash = (sp[3]);
	
	var pagelink = (page.substr(32));
	
	var linkwrap = (document.getElementById("tracklink").title);
	
	//writes the string into the tracking div with active link
	document.getElementById("current_page").innerHTML = '<a href="index.html">' + escrap + '</a>' + ' ' + forslash + ' ' + '<a href="' + linkwrap + '">' + pagelink + '</a>';
	
}