$(document).ready(function() {
  $("#header ul li:last").css("border-right", "0px");  
  $('#pcontent').lionbars({
    visibleBar: true
  });
  $("#1").css("padding-right", "30px");
	
	$("#maps-block #button").click(function() {
		if ($(this).html() == 'Térkép nézet') {
			$(this).html('Lista nézet');
		} else {
			$(this).html('Térkép nézet');
		}
		
		$("#pcontent, #mcontent").toggle();
	});
});

function startSlider(strSelectedClass) {
	if ("pcontent" == strSelectedClass) {
		$("#maps-block").show();
		$("#mcontent").hide();
		$("#pcontent").show();
		$("#maps-block #button").html("Térkép nézet");
	} else {
		$("#maps-block").hide();
		$("#mcontent").hide();
		$("#pcontent").hide();
	}
	
  $(".block").removeAttr("id");
  $("."+strSelectedClass+"-block").attr("id", "active");
  $(".bcontent").hide();
  $("#"+strSelectedClass).show();
}


