var mhoehe = 200;
 
function floatButton() {
// stellt die Fensterabmessungen fest
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);
 
if(ns6||ns4) {
shoehe = innerHeight - mhoehe;
}
else if(ie4) {
shoehe = document.body.clientHeight - mhoehe;
}
 
 
 
if (document.all) {
document.all.topHeadline.style.pixelTop = document.body.scrollTop + shoehe;
}
else if (document.layers) {
document.topHeadline.top = window.pageYOffset + shoehe;
}
else if (document.getElementById) {
document.getElementById('topHeadline').style.top = window.pageYOffset + shoehe + 'px';
   }
}
 
 
if (document.all)
window.onscroll = floatButton;
else
setInterval ('floatButton()', 100);
 
function initButton () {
if (document.all) {
document.all.topHeadline.style.pixelLeft = 0;
//document.body.clientWidth - document.all.topHeadline.offsetWidth;
//document.all.topHeadline.shoehe;
//document.all.topHeadline.clientWidth;
document.all.topHeadline.style.visibility = 'visible';
}
else if (document.layers) {
document.topHeadline.left = 0;
//window.innerWidth - document.topHeadline.clip.width - 15;
document.topHeadline.visibility = 'show';
}
else if (document.getElementById) {
document.getElementById('topHeadline').style.left = 0;
//(window.innerWidth - 35) + 'px';
document.getElementById('topHeadline').style.visibility = 'visible';
   }
 
}
