var otherSW = {
	'toShow' : 'Показать остальные',
	'toHide' : 'Свернуть'
};

function showOther(index) {
	$(this).bind("click", function(){
		var property = $(this).attr("rel");
		var switcher = $(this);				
		
		if (property) {
			if ($(this).data("showing")) { 
				$("#lst_"+property+" .less").slideUp("slow", function () {
					$("#lst_"+property+" .less").removeClass("vis");
					switcher.data("showing", false);
					switcher.html(otherSW['toShow']);
				});					
			} else {
				$("#lst_"+property+" .less").slideDown("slow", function () {
					$("#lst_"+property+" .less").addClass("vis");
					switcher.data("showing", true);
					switcher.html(otherSW['toHide']);
				});					
			}				
		}
		
		return false;
		
	});		
} 

$(function(){
	$(".showOther").each(showOther);
}); 