function positionIt() {
  var yPos = 0;
  var xPos = 0;
  var winHeight = 0;
  var winWidth = 0;
  
  if (window.pageYOffset != null) {
    yPos = window.pageYOffset;
    xPos = window.pageXOffset;
    winHeight = window.innerHeight;
    winWidth = window.innerWidth;
  } else if (document.body) {
    yPos = document.body.scrollTop;
    xPos = document.body.scrollLeft;
    winHeight = document.body.clientHeight;
    winWidth = document.body.clientWidth;
  } else if (document.documentElement) {
    yPos = document.documentElement.scrollTop;
    xPos = document.documentElement.scrollLeft;
    winHeight = document.documentElement.clientHeight;
    winWidth = document.documentElement.clientWidth;
  } 

  cross_obj = document.getElementById('staticbuttons');
  if (cross_obj.style.pixelLeft) {
		cross_obj.style.pixelLeft=parseInt(xPos)+parseInt(winWidth)-Hoffset;
		cross_obj.style.pixelTop=parseInt(yPos)+parseInt(winHeight)-Voffset;  
  } else {
		cross_obj.style.left=parseInt(xPos)+parseInt(winWidth)-Hoffset+"px";
		cross_obj.style.top=parseInt(yPos)+parseInt(winHeight)-Voffset+"px";
	}
}
function scrollWindow(){
	positionIt();
	if (myspeed!=0){
		window.scrollBy(0,myspeed);
	}
}
