function hideSeperators () {
	$('#sap10').hide ();
	$('#sap50').hide ();
	$('#sap100').hide ();
}
			
function showSeperators () {
	$('#sap10').show ();
	$('#sap50').show ();
	$('#sap100').show ();
}
		
function filterChronicles (chronicle) {
	return;
	if (chronicle == 'ALL') showSeperators();
	else hideSeperators ();
				
	$('.list_item').each (function() {
		$(this).show();
		if (chronicle != 'ALL') if ($(this).find ('[name="chronicle"]').val() != chronicle) $(this).hide();  
	});
}

function filterTypes (type) { 
	return;
	if (type == 'all') showSeperators();
	else hideSeperators ();
	
	$('.list_item').each (function() {
		$(this).show();
		if (type != 'all') if ($(this).find ('[name="type"]').val() != type) $(this).hide();  
	});
}

function filterParams () {
	var chronicle = $('[name=kronikuFiltras]').val();
	var type = $('[name=tipuFiltras]').val();
	
	if (chronicle != 'all' || type != 'all') hideSeperators ();
	else showSeperators();
	
	$('.list_item').each (function() {
		$(this).show();
		if (type != 'all') if ($(this).find ('[name="type"]').val() != type) $(this).hide();  
		if (chronicle != 'all') if ($(this).find ('[name="chronicle"]').val() != chronicle) $(this).hide();  
	});
}
 
$(document).ready (function(){
	$('[name=kronikuFiltras]').val('all');
	$('[name=kronikuFiltras]').change (filterParams);
	$('[name=tipuFiltras]').val('all');
	$('[name=tipuFiltras]').change (filterParams);
	
	
	
});
