// navigator check
var isMSIE			= 0;
var nVersion		= 3;

// refresh interval of AdCorner
var nInterval	= 10;

function btnTop ()
{
        // Detect Navigator
        nVersion = parseInt (navigator.appVersion);      // chang
        if (navigator.appName == "Microsoft Internet Explorer")
        {
			isMSIE = 1;
			if (navigator.userAgent.indexOf ("MSIE 5") != -1)
				nVersion = 5;    
        }
        else
        {
                isMSIE = 0;
                if (nVersion >= 4)
                {
					window.captureEvents (Event.MOUSEMOVE);
					jCur = document.layer["btntop"];   
                }
        }
        if (nVersion >= 4)
			window.setInterval ("AdCornerMove();", nInterval);       
}


function AdCornerMove()
{
		var oBody = document.body;
		
		if (isMSIE)
        {        
			if (conHeight.clientHeight < oBody.offsetHeight)
				btntop.style.display = "none";
			else
				btntop.style.display = "inline";
				
			btntop.style.top = oBody.scrollTop + oBody.clientHeight - 30;
		}
		else
		{
			if (conHeight.clientHeight < oBody.offsetHeight)
				btntop.style.display = "none";
			else
				btntop.style.display = "inline";
				
			btntop.style.top = oBody.scrollTop + oBody.clientHeight - 30;
		}
}