var gTop=0;var gIncVal=0;var timeOutValue=10;var barHeight=550;function scrollMe(a){var d=document.getElementById("text_area");var e=240;var b=parseInt(d.offsetHeight);var c=d.style.top;if(!c){c=0}else{c=c.substring(0,c.length-2)}if(a>0){if(c>=0||c>(-(b-(barHeight+e)))){incrementValue=e}else{if(c<(-(b-(barHeight+e)))){incrementValue=(b-barHeight)+parseInt(c)}else{incrementValue=0}}encSmoothScroll("minus",parseInt(c),parseInt(incrementValue))}else{if(c<0&&((parseInt(c)+e)<0)){incrementValue=e}else{incrementValue=-c-0}encSmoothScroll("plus",parseInt(c),parseInt(incrementValue))}}function encSmoothScroll(b,c,a){gTop=c;gIncVal=a;encScrollBy(b,0)}function encScrollBy(b,e){if(e<gIncVal){var a;if((gIncVal-e)>1){a=Math.ceil((gIncVal-e)/10);if(a<1){a=1}}else{a=gIncVal-e}e+=a;var d=document.getElementById("text_area");if(b=="plus"){d.style.top=gTop+e+"px"}else{if(b=="minus"){d.style.top=gTop-e+"px"}}var c=setTimeout("encScrollBy('"+b+"', "+e+");",timeOutValue)}else{clearTimeout(c)}};
