var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements()
{
        var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck, weiter;

        if ( bExplorer4plus ) {  
                yMenuFrom   = parseInt (divMenu.style.top, 10);
                yMenuTo     = document.body.scrollTop + 150;  //Lage vom oberen Rand

        }
        if ( yMenuFrom != yMenuTo) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 1000 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;     
                if ( bExplorer4plus )
                        divMenu.style.top = parseInt (divMenu.style.top, 10) +yOffset;
                timeoutNextCheck = 1;
        }
        
        
        

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
        var y;

        if ( top.frames.length )
              top.location.href = self.location.href;

        if ( bExplorer4plus ) {
                divMenu.style.top = document.body.scrollTop;
                divMenu.style.visibility = "visible";
                }

        // initializing UI update timer
        CheckUIElements();
        //if ( bExplorer4plus )
        //       setTimeout ( "FlashTitleStepIt(255)", 10 );
        return true;
}


OnLoad();