		function vote( id, vote_type, el ) 
		{
			$.get( '/ajax.php5',
					{ 
						action: 'vote',
						id: id,
						vote: vote_type
					},
					function( d ) {
						el.addClass('text');
						el.html( d );
						get_votes( id );
					}
         		);
		}

		function get_votes( id ) 
		{
			$.get( '/ajax.php5',
					{ 
						action: 'getVotes',
						id: id
					},
					function( d ) {
						$('#pkt_' + id).html( d );
					}
         		);
		}

		$(function() {
			$(document).ready(function(){ 
				$('a.git').click( function() {
					var ul = $(this).parent('li.vote-git').parent('ul.list');
					var id = ul.attr('id');
					vote( id, 'git', $(this).parent('li.vote-git') );
					return false;
				});
				$('a.kit').click( function() {
					var ul = $(this).parent('li.vote-kit').parent('ul.list');
					var id = ul.attr('id');
					vote( id, 'kit', $(this).parent('li.vote-kit') );
					return false;
				});
			});
		});

