var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",1);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize

function DrawImage(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width>500){  
ImgD.width=500;
ImgD.height=(image.height*500)/image.width;
}else{
ImgD.width=image.width;  
ImgD.height=image.height;
}
} 