
function scrollUp(){
sdiv=document.getElementById("div_scroll_home").style;
if(!sdiv.top){sdiv.top="0px";}


if(parseInt(sdiv.top)<0){
document.getElementById("arrowDown").style.display="block";
flowUp(parseInt(sdiv.top)+180);
}
} 



function scrollDown(){
sdiv=document.getElementById("div_scroll_home").style;
if(!sdiv.top){sdiv.top="0px";}


if(parseInt(sdiv.top)>-540){
document.getElementById("arrowUp").style.display="block";
flowDown(parseInt(sdiv.top)-180);
}

} 








function flowUp(to){
sdiv=document.getElementById("div_scroll_home").style;

if(parseInt(sdiv.top)>=to){
  
  if(parseInt(sdiv.top)>=0){
    document.getElementById("arrowUp").style.display="none";
  }
  
sdiv.top=to+"px"
return;
}

diff=Math.round(Math.abs((parseInt(sdiv.top)-to)/2));
// alert(diff);
sdiv.top=parseInt(sdiv.top)+diff+"px"
setTimeout("flowUp("+to+")",100);
}



function flowDown(to){
sdiv=document.getElementById("div_scroll_home").style;

if(parseInt(sdiv.top)<=to){
  
  if(parseInt(sdiv.top)<-360){
    document.getElementById("arrowDown").style.display="none";
  }
  
sdiv.top=to+"px"
return;
}

diff=Math.round(Math.abs((to-parseInt(sdiv.top))/2));

sdiv.top=parseInt(sdiv.top)-diff+"px"
setTimeout("flowDown("+to+")",100);
}
