//---------------------------
function nav_top()
{
	var pageWidth;
	var pageHeight;
	
	if( window.innerHeight && window.scrollMaxY ) // Firefox
	{
		pageWidth = window.innerWidth + window.scrollMaxX;
		pageHeight = window.innerHeight + window.scrollMaxY;
	}
	else if( document.body.scrollHeight > document.body.offsetHeight ) // all but Explorer Mac
	{
		pageWidth = document.body.scrollWidth;
		pageHeight = document.body.scrollHeight;
	}
	else // works in Explorer 6 Strict, Mozilla (not FF) and Safari
	{
		pageWidth = document.body.offsetWidth + document.body.offsetLeft;
		pageHeight = document.body.offsetHeight + document.body.offsetTop;
	}
	
	var DeltaTop = 750;
	if ( pageHeight > DeltaTop )
	{
		var bttns = Math.floor( pageHeight / DeltaTop );
		for ( i = 0; i < bttns; i++ )
		{
			var top = DeltaTop + i * DeltaTop;
			document.write('<div style="position: absolute; top:'+top+'px; left:0;">');
			document.write('<a href="#" class="small" title="top"><span style="margin-left: 1px;">^</span></a>');
			document.write('</div>');
		}
	}	
}
