// JavaScript Document

function scrollerup(scrollcontainer)
{
cscrolltop=$(scrollcontainer).scrollTop() - 150;
$(scrollcontainer).stop().animate({scrollTop:cscrolltop},800);
};
function scrollerdown(scrollcontainer)
{
cscrolltop=$(scrollcontainer).scrollTop() + 150;
$(scrollcontainer).stop().animate({scrollTop:cscrolltop},800);
};
function scrollertop(scrollcontainer)
{
$(scrollcontainer).stop().animate({scrollTop:0},800);
};

$(document).ready(function(){
$('.miscroller').each(function(i) {
	$(this).css('overflow','hidden');
	newid='miscroller' + i;
	$(this).attr('id',newid);
	newhtml = '<div align="right"><a href="javascript:scrollerup(\'#' +  newid + '\');"><img src="/Portals/0/Public/Photos/btnup.png" /></a>     <a href="javascript:scrollerdown(\'#'+  newid + '\');"><img src="/Portals/0/Public/Photos/btndn.png" /></a>     <a href="javascript:scrollertop(\'#' +  newid + '\');"><img src="/Portals/0/Public/Photos/btnrs.png" /></a>     </div>';
	$(this).after(newhtml);
});
});



