
function getAnchorPosition (anchorName)
	{
	for(var i=0;i<window.document.anchors.length;i++)
		{
		if(window.document.anchors[i].name==anchorName)var anchor=window.document.anchors[i];	
		}
	if (document.layers)
		{
		return { x: anchor.x, y: anchor.y };
		}
	  else if (document.getElementById)
	  	{
		var coords = {x: 0, y: 0 };
		while (anchor)
			{
			coords.x += anchor.offsetLeft;
			coords.y += anchor.offsetTop;
			anchor = anchor.offsetParent;
			}
		return coords;
		}
	}
function ScrollMeTo (link)
	{
	var coords = getAnchorPosition(link.hash.substring(1));
	scrollTo(coords.x , coords.y);

	}


var reloaded = false;
var loc=""+document.location;
loc = loc.indexOf("?reloaded=")!=-1?loc.substring(loc.indexOf("?reloaded=")+10,loc.length):"";
loc = loc.indexOf("&")!=-1?loc.substring(0,loc.indexOf("&")):loc;
reloaded = loc!=""?(loc=="true"):reloaded;

function reloadOnceOnly() {
	if (!reloaded)
	window.location.replace(window.location+"?reloaded=true");
}






























