var Type = 'Z';
function StartFloat() {
if(document.all) {
        document.all.AdFloater.style.pixelLeft = (document.body.clientWidth - document.all.AdFloater.offsetWidth) / 2;
        document.all.AdFloater.style.visibility = 'visible';
        document.all.AdFloater.style.pixelTop = (document.body.clientHeight - 412) / 2;
        Type = 'A';
        }
else if(document.layers) {
        document.AdFloater.left = (document.body.clientWidth - document.AdFloater.clip.width) / 2;
        document.AdFloater.visibility = 'show';
        Type = 'B';
        }
else if(document.getElementById) {
        document.getElementById('AdFloater').style.left = (document.body.clientWidth - document.getElementById('AdFloater').offsetWidth) / 2 + 'px';
        document.getElementById('AdFloater').style.visibility = 'visible';
        Type = 'C';
        }
if (document.all) { window.onscroll = Float;}
else { setInterval('Float()', 100); }
}
function Float() {
if (Type == 'A') { document.all.AdFloater.style.pixelTop = document.body.scrollTop + (document.body.clientHeight - 412) / 2; }
else if (Type == 'B') { document.AdFloater.top = window.pageYOffset; }
else if (Type == 'C') { document.getElementById('AdFloater').style.top = window.pageYOffset + (window.innerHeight - document.getElementById('AdFloater').offsetHeight) / 2 + 'px'; }
}

function wylacz() {
document.getElementById('AdFloater').style.visibility='hidden';
}
StartFloat();