/**
 * @author christian.beckmann
 */

var temp;

function banner(){
    var y;

    if (self.innerHeight) {
        y = self.innerHeight;
    }
    else 
        if (document.documentElement && document.documentElement.clientHeight) {
            y = document.documentElement.clientHeight;
        }
        else 
            if (document.body) {
                y = document.body.clientHeight;
            }
    
    var w = document.getElementById('werbebanner');
	if (w) {
	
    w.style.top = y - 93 + 'px';
    w.style.zIndex = 1000;
    
    if (window.innerHeight) {
        pos = window.pageYOffset;
    }
    else 
        if (document.documentElement && document.documentElement.scrollTop) {
            pos = document.documentElement.scrollTop
        }
        else 
            if (document.body) {
                pos = document.body.scrollTop
            }
    if (pos < 1) {
        //temp = setTimeout('banner()', 333);
		w.style.display = 'block';
        w.style.visibility = 'visible';
    }
    else {
		//Ausblenden 
        w.style.display = "none";
        w.style.visibility = "hidden";
    }
    temp = setTimeout('banner()', 333);
	}
}
