var scrollCount = 0;
var scrollMax = Math.ceil(($('textArea').getHeight()-$('textAreaWindow').getHeight())/150);
if (scrollMax>0) {
document.write('<div id="textAreaControls">');
document.write('<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'down\',\'\',\'images/down_on.gif\',1)" onclick="if (scrollCount&lt;scrollMax) { scrollCount=scrollCount+1; new Effect.Move(\'textArea\', {x:0, y:-150, duration:1, queue:{scope:\'myscope\', position:\'end\', limit: 1}}); } return false;"><img src="images/down_off.gif" alt="Scroll Down" name="down" width="23" height="23" border="0" id="down" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'up\',\'\',\'images/up_on.gif\',1)" onclick="if (scrollCount&gt;0) { scrollCount=scrollCount-1; new Effect.Move(\'textArea\', {x:0, y:+150, duration:1, queue:{scope:\'myscope\', position:\'end\', limit: 1}}); } return false;"><img src="images/up_off.gif" alt="Scroll Up" name="up" width="23" height="23" border="0" id="up" /></a>');
document.write('</div>'); }
document.observe('dom:loaded', function(){
$('textAreaWindow').addClassName('js');
$('textArea').addClassName('js');
});
