// no clues here

window.onload = function() {
    checkSize();
}

window.onresize = function() {
    checkSize();
}

if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";
if (document.all) type="IE";
if (document.layers) type="NN";
if (!document.all && document.getElementById) type="MO";

function checkSize() {
    window_height = 0;
    
    if (type !="IE") {
        window_height = window.innerHeight;
    }
    
    if(window_height > 0) {
    } else {
        window_height = document.documentElement.clientHeight;
    }
    if(window_height > 0) {
    } else {
        window_height = document.body.clientHeight;
    }
    
    if(window_height < 435) {
        //document.getElementById("horizon").style.marginTop = "0px";
        //document.getElementById("horizon").style.top = "0px";
        document.getElementById("horizon").setAttribute('class', 'top');
        document.getElementById("horizon").setAttribute('className', 'top');
    } else {
        //document.getElementById("horizon").style.marginTop = "-267px";
        //document.getElementById("horizon").style.top = "50%";
        document.getElementById("horizon").setAttribute('class', '');
        document.getElementById("horizon").setAttribute('className', '');
    }
}