<!--

// setup top scrolling link
  window.onresize = scrolltop;
  window.onscroll = scrolltop;
  scrolltop();


function scrolltop()       
{
  	if (self.innerWidth) {
		frameWidth = self.innerWidth;
		frameHeight = self.innerHeight;
  	} else if (document.documentElement && document.documentElement.clientWidth) {
		frameWidth = document.documentElement.clientWidth;
		frameHeight = document.documentElement.clientHeight;
  	} else if (document.body) {
		frameWidth = document.body.clientWidth;
		frameHeight = document.body.clientHeight;
  	} else return;
  
  
  var x,y;
	if (self.pageYOffset) // all except Explorer
	{
		x = self.pageXOffset;
		y = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop)
	// Explorer 6 Strict
	{
		x = document.documentElement.scrollLeft;
		y = document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		x = document.body.scrollLeft;
		y = document.body.scrollTop;
	}

	var a,b;
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight
	if (test1 > test2) // all but Explorer Mac
	{
		a = document.body.scrollWidth;
		b = document.body.scrollHeight;
	} else // Explorer Mac;
     //would also work in Explorer 6 Strict, Mozilla and Safari
	{
		a = document.body.offsetWidth;
		b = document.body.offsetHeight;
	}

  var objBTT = document.getElementById('divBackToTop');

  if (objBTT) {
	if (window.onscroll && document.all) {
		// Explorer, etc. that support onscroll
		if ( y >= 200 ) {
		  	objBTT.style.left = (frameWidth/2)+345;
		  		if (y+frameHeight>(b-50)) {
					objBTT.style.top = b-70;
		  		} else {
					objBTT.style.top = y+frameHeight-40;
		  		}
		  	objBTT.style.visibility = "visible";
		}
		else
		{
		  	objBTT.style.visibility = "hidden";
		}
	} else {
		if (document.documentElement.offsetHeight > document.documentElement.clientHeight) {
			objBTT.style.left = (frameWidth/2)+315+"px";
			objBTT.style.top = document.documentElement.offsetHeight-70+"px";
			objBTT.style.visibility = "visible";
		}
	}
  }
}
 
function mt_pagedown()
{
  window.scrollBy(0, document.body.clientHeight);
  scrolltop();
}
  
function mt_pagetop()
{
  window.scrollTo(document.body.scrollLeft,0);
  scrolltop();
}  
  



  //-->

