
function verScroll(dir,spd,loop)
 {
 var bloqueo=(document.layers)?document.scrollCont.document.height:scrollCont.scrollHeight;
 loop=true;
 direction="up";
 speed=2;
 scrolltimer=null;
 if(document.layers){var page=eval(document.scrollCont);}
 else{if(document.getElementById){var page=eval("document.getElementById('scrollCont').style");}
 else{if(document.all){var page=eval(document.all.scrollCont.style);}}}
 direction=dir;
 speed=parseInt(spd);
 var y_pos=parseInt(page.top);
 if(loop==true){if(direction=="dn"&&y_pos+bloqueo>250){page.top=(y_pos-(speed));}
 else{if(direction=="up"&&y_pos<10){page.top=(y_pos+(speed));}
 else{if(direction=="top"){page.top=10;}}}
 scrolltimer=setTimeout("verScroll(direction,speed)",1);}
 }

function stopScroll()
 {
 loop=false;
 clearTimeout(scrolltimer);
 }


