// reads the hash for a document name and if found, calls updateContent with it.
document.observe('dom:loaded', function() {
   var lcDocument = window.location.hash;
   if (lcDocument.length>1) 
   {
	F1.UI.UpdateContent(lcDocument.substring(1));
   }
   F1.Security.UserGreeting();
})


// Monitor the hash in case the user clicked the back button.
new PeriodicalExecuter(function(pe) {
	var lcDocument = window.location.hash;
	if (lcDocument.length>1) {
		// updateContent sets document.F1CMSContentId to the document id.
		if (document.F1CMSContentId !== lcDocument.substring(1)) {
			F1.UI.UpdateContent(lcDocument.substring(1));
		}
	}
}, .5);



