/*
function widget_scrollDown(controls)
{
	elm = $(controls).parent().parent().parent().parent().children('.common_row_wrapper');

 	
	if($(elm).scrollTop() < ($(elm).children().size())*60)
	{ 
		$(elm).animate({scrollTop : '+=60'},'slow', function(){
		
			$(controls).parent().siblings().children().css({visibility: 'visible',});
							
			if(($(elm).scrollTop()+$(elm).height()) == ($(elm).children().size())*60)
			{
				$(controls).css({visibility: 'hidden',});
			}
			 
			 //console.log( $(elm).scrollTop()+$(elm).height() + ' ' + ($(elm).find('.items').children().size())*60);
		});
	}
}

function widget_scrollUp(controls)
{
	elm = $(controls).parent().parent().parent().parent().children('.common_row_wrapper');
	
	if($(elm).scrollTop() > 0)
	{ 
		$(elm).animate({scrollTop : '-=60'},'slow',function(){
		
			$(controls).parent().siblings().children().css({visibility: 'visible',});			
			if($(elm).scrollTop() == 0)
			{
				$(controls).css({visibility: 'hidden',});
			}
		});
	}
}

function widget_scrollDown2(controls)
{
	elm = $(controls).parent().parent().parent().parent().children('.common_row_wrapper');

 	
	if($(elm).scrollTop() < ($(elm).children().size())*60)
	{ 
		$(elm).animate({scrollTop : '+=80'},'slow', function(){
		
			$(controls).parent().siblings().children().css({visibility: 'visible',});
							
			if(($(elm).scrollTop()+$(elm).height()) == ($(elm).children().size())*80)
			{
				$(controls).css({visibility: 'hidden',});
			}
			 
			 //console.log( $(elm).scrollTop()+$(elm).height() + ' ' + ($(elm).find('.items').children().size())*60);
		});
	}
}

function widget_scrollUp2(controls)
{
	elm = $(controls).parent().parent().parent().parent().children('.common_row_wrapper');
	
	if($(elm).scrollTop() > 0)
	{ 
		$(elm).animate({scrollTop : '-=80'},'slow',function(){
		
			$(controls).parent().siblings().children().css({visibility: 'visible',});			
			if($(elm).scrollTop() == 0)
			{
				$(controls).css({visibility: 'hidden',});
			}
		});
	}
}
*/

