var readingPage_element;
var readingPage_className;

function readingPage() {
	var hash = documentHash();
	if (hash == false) return;
	lookHere(hash,1500);
}

function documentHash() {
	if (location.href.indexOf("#") != -1) {} else return false;
	var hash = new String(location.hash);
	if (hash.indexOf("#") == 0) {
		hash = hash.substring(1,hash.length);
	};
	return hash;
}

/*** these functions add "attention" to the className of the element ***/
var lookHere_element;
var lookHere_originalClassName;
function lookHere(element_id,time_in_ms) {
	lookHere_element = document.getElementById(element_id);
	lookHere_originalClassName = lookHere_element.className;
	lookHere_element.className = lookHere_element.className + " attention";
	setTimeout("lookAway()",time_in_ms);
};
function lookAway() {
	lookHere_element.className = lookHere_originalClassName;
	lookHere_element = null;
}