/* author: David Faulder */
/* Creation date: 23/07/2007 */

function offlineCheck(onlineLocn) {				// Warning if working offline and link to online version
	locn = new String(document.location);
	source = locn.substr(0,4);
	if (source == "file") {						// If location starts "file"
		document.write("<div class='warning'><br />Warning: This is an offline version of this page<br />");
		document.write("The current version can be found <a href='"+onlineLocn+"'>Online</a></div>");
		}
}
