	$(function() {
		$('#ShoutBoxDownArrow').hover(function() {
			interval = setInterval(function() {
				var scroll = $('#ShoutBoxPosts').scrollTop();
				$('#ShoutBoxPosts').scrollTop(scroll+1);
			}, 1);
		},function() {
			clearInterval(interval);
		});

		$('#ShoutBoxUpArrow').hover(function() {
			interval = setInterval(function() {
				var scroll = $('#ShoutBoxPosts').scrollTop();
				$('#ShoutBoxPosts').scrollTop(scroll-1);
			}, 1);
		},function() {
			clearInterval(interval);
		});


		refresh2();

		$('form#ShoutBoxForm').submit(function() {

			var action = $('input.InfoBoxButton').attr('name');

			$('input.InfoBoxButton').attr('name', 'send');

			$.post(addr_site+'modules/chat/ajax/send.php', {
				content: $('textarea[name*="content"]', this).val(),
				post_id: $('input[name*="post_edit_id"]', this).val(),
				send: action,
			  },
			  function(data){
				$('textarea[name*="content"]').val('');
				refresh2();
			  }
			);
			return false;
		});

		/* Usuwanie postów */
		$('#post_shoutbox_delete').live('click', function() {
			var href = $(this).attr('href');
			 $.ajax({
				url: href, type: 'GET', success: function (html){
				  refresh2();
				}, error:function(){
					$('#ShoutBoxPosts').html('Wystąpił błąd! Odśwież stronę.');
				}
			  });
				$('#delete_shoutbox_confirm').remove();
				$('#ShoutBoxForm').show();
			return false;
		});

		$('#post_shoutbox_cancel').live('click', function() {
			$('#delete_shoutbox_confirm').remove();
			$('#ShoutBoxForm').show();
		});

		$('.shoutbox_delete_post').live('click', function() {
			$('#delete_shoutbox_confirm').remove();
			var href = $(this).attr('href');
			$('#ShoutBoxForm').hide();
			$('#ShoutBoxForm').before('<div id="delete_shoutbox_confirm" class="InfoBoxInput">Na pewno chcesz usunąć ten post? <a href="'+href+'" id="post_shoutbox_delete" class="InfoBoxButton">Tak</a> <a href="javascript:void(0)" id="post_shoutbox_cancel" class="InfoBoxButton">Nie</a></div>');
			return false;
		});



		/* Edycja */
		$('.shoutbox_edit_post').live('click', function() {
			var href = $(this).attr('href');
			 $.ajax({
				url: href, type: 'GET', success: function (html){
				  $('form#ShoutBoxForm').html(html);
				}, error:function(){
					$('#ShoutBoxPosts').html('Wystąpił błąd! Odśwież stronę.');
				}
			  });

			return false;

		});

		setInterval(function() {
			refresh2();
		},120000);

		var refresh = false;
		$('#ShoutBoxPosts').hover(function() {
			if (!refresh) {
				refresh2();
				refresh = true;
			}
		}, function() {
			refresh = false;
		});

	});

function refresh2() {
  var posts = $('#chat_post').html();
  $.ajax({
    url: addr_site+'modules/chat/shoutbox_panel/ajax/messages.php', type: 'GET', success: function (html){
      $('#ShoutBoxPosts').html(html);
    }, error:function(){
      $('#ShoutBoxPosts').html('Wystąpił błąd! Odśwież stronę.');
    }
  });
}

@@ -1279,37 +1279,43 @@
 ml('
-Wyst%C4%85pi%C5%82 b%C5%82%C4%85d! Od%C5%9Bwie%C5%BC stron%C4%99
+An error occurred! Refresh the page
 .');
@@ -1836,38 +1836,24 @@
 ut%22%3E
-Na pewno chcesz usun%C4%85%C4%87 ten pos
+Delete this shou
 t? %3C
@@ -1922,11 +1922,11 @@
 on%22%3E
-Tak
+Yes
 %3C/a%3E
@@ -2004,18 +2004,17 @@
 utton%22%3EN
-ie
+o
 %3C/a%3E%3C/di
@@ -2331,37 +2331,43 @@
 ml('
-Wyst%C4%85pi%C5%82 b%C5%82%C4%85d! Od%C5%9Bwie%C5%BC stron%C4%99
+An error occurred! Refresh the page
 .');
@@ -2946,37 +2946,43 @@
 ml('
-Wyst%C4%85pi%C5%82 b%C5%82%C4%85d! Od%C5%9Bwie%C5%BC stron%C4%99
+An error occurred! Refresh the page
 .');

Update shoutbox.js