<!--
//Returns the distance in pixels from the left of the page document to the left of the anchor object
function GetAnchorLeft(anchorname){
    var l=0;

    var cNode = eval("document.getElementById('" + anchorname + "')");
    while(cNode.tagName!='BODY'){ 
           l+=cNode.offsetLeft; 
           cNode=cNode.offsetParent; 
	}
	return l
}

//Returns the distance in pixels from the top of the page document to the top of the anchor object
function GetAnchorTop(anchorname){
    var t=0;

    var cNode = eval("document.getElementById('" + anchorname + "')");
    while(cNode.tagName!='BODY'){ 
           t+=cNode.offsetTop; 
           cNode=cNode.offsetParent; 
	}
	return t
}

//Returns the distance in pixels from the top of the page to the top of the visible area the user has scrolled to
function getTop(){
  var TopOfView = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    TopOfView = document.documentElement.scrollTop;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    TopOfView = document.body.scrollTop;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    TopOfView = document.body.scrollTop;
  }
  return TopOfView
}

//Returns the width of the window in pixels
function GetWindowWidth() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth
}

//Returns the height of the window in pixels
function GetWindowHeight() {
  var myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return myHeight
}
//-->