function del_comment(typeobj, idobj, id){
	var comment = $('#comment'+id);
	$.ajax({
		type:'GET',
		dataType:'html',
		beforeSend: function(){
			comment.find('.usun_koment').attr('src', '/img/ajax_loader_min.gif');			
		},
		success:function(i){			
			comment.slideUp(300, function(){
	 			$(this).remove();
	 		});
		},
		url:'/komentarz/usun/idkomentarz/'+id
	});
	return false;
 }
function show_comment(typeobj, idobj){
	$('#comment_list').html('<div class="ajax_loader"></div>');
	$.get('/komentarz/pokaz/'+typeobj+'/'+idobj, function(data){
		$('#comment_list').html(data);
	});
}
function change_page(typeobj, idobj, page){
	var height = $('#comment_list').height();
	$('html, body').animate({scrollTop: $('#comment_list').offset().top}, 350);
	$('#comment_list').html('<div class="ajax_loader"></div>').css('height', height);
	$.get('/komentarz/pokaz/'+typeobj+'/'+idobj+'/page/'+page, function(data){
		$('#comment_list').html(data).css('height', 'auto');		
	});		
	return false;
}