$(document).ready(function(){
$(window).scroll(function () {if ($(this).scrollTop() > 0) {$('#scroller').fadeIn();} else {$('#scroller').fadeOut();}});
$('#scroller').click(function () {$('body,html').animate({scrollTop: 0}, 400); return false;});
});
 $('body').append ('<div id="scroller" class="b-top" style="display: none;"><span class="b-top-but"></span></div>');
 
 

 $(document).ready( function(){ 
 // ������ ������ � ����� ��� �������
 var buttons = { previous:$('#jslidernews1 .button-previous') ,
 next:$('#jslidernews1 .button-next') }; 
 $('#jslidernews1').lofJSidernews( { interval : 4000,
 direction : 'opacitys', 
 easing : 'easeInOutExpo',
 duration : 1200,
 auto : true,
 maxItemDisplay : 4,
 navPosition : 'horizontal', // horizontal
 navigatorHeight : 32,
 navigatorWidth : 80,
 mainWidth : 980,
 buttons : buttons } ); 
 });