//Ë«»÷Êó±ê¹ö¶¯ÆÁÄ»µÄ´úÂë
var currentpos,timer;
getViewPortScrollY = function()
{
    var scrollY = 0;
    if ((document.documentElement) && (document.documentElement.scrollTop))
    {
        scrollY = document.documentElement.scrollTop;
    }
    else if ((document.body) && (document.body.scrollTop))
    {
        scrollY = document.body.scrollTop;
    }
    else if (window.pageYOffset)
    {
        scrollY = window.pageYOffset;
    }
    else if (window.scrollY)
    {
        scrollY = window.scrollY;
    }
    return scrollY;
}; 
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=getViewPortScrollY();
window.scroll(0,++currentpos);
if (currentpos !=getViewPortScrollY())
sc();
}
document.onmousedown=sc;
document.ondblclick=initialize;