// JavaScript Document

  function findPos(el) {
	var xPos = 0;
    var yPos = 0;
    	if(document.layers) {
        	xPos = el.x;
        	yPos = el.y;
    	}
    	else {
        	while(el){
            	xPos += el.offsetLeft;
            	yPos += el.offsetTop;
            	el   =  el.offsetParent;
        	}
    	}
    return {xPos: xPos, yPos: yPos};
}

    
    
        function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}


function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function loadPage() {
	
	document.getElementById('main').style.overflow = 'auto';
	
	var koordinaten = findPos(document.getElementById('main'));
	var y = koordinaten.yPos + 0;
	var x = koordinaten.xPos + 235;
	document.getElementById('wheel').style.left = x + "px";
	document.getElementById('wheel').style.top = y + "px";
	document.getElementById('wheel').style.visibility = 'visible';
}
