if (top.document.location == self.document.location) {
	// base url to load
	var url = "../?";
	
	// append section/page path info
	var arr = self.document.location.pathname.split("/");
	var l = arr.length;
	url += arr[l-2] + "/" + arr[l-1];
	
	// write warning text and link into file
	document.write("<h5>This document is meant to be viewed in a frame set.<br>To view this page in its intended environment please <a href='" + url + "' target='_top'>click here</a>.</h5>");
}