/* switch view to most read actualities */
$(".actualityBox.midi .most-read a").live("click", function(){
	//make opposite (latest) title as link
	var latestBox = $(this).closest(".most-read").prev();
	var latestBoxContent = $(latestBox).find("strong").html();
	$(latestBox).html("<a href=\"#\">" + latestBoxContent + "</a>");
	$(latestBox).removeClass("active");

	//show most read, hide latest
	$(this).parents(".actualityBox.midi").find(".list-most-read").show();
	$(this).parents(".actualityBox.midi").find(".list-latest").hide();

	//make current (most read) title without link
	var mostReadContent = $(this).html();
	$(this).parent().html("<strong>" + mostReadContent + "</strong>");
	return false;
});

/* switch view to latest actualities */
$(".actualityBox.midi .latest a").live("click", function(){
	//make opposite (most read) title as link
	var mostReadBox = $(this).parents("li").next(".most-read");
	var mostReadBoxContent = $(mostReadBox).find("strong").html();
	$(mostReadBox).html("<a href=\"#\">" + mostReadBoxContent + "</a>");
	$(mostReadBox).removeClass("active");

	//show latest, hide most read
	$(this).parents(".actualityBox.midi").find(".list-latest").show();
	$(this).parents(".actualityBox.midi").find(".list-most-read").hide();

	//make current (latest) title without link
	var latestContent = $(this).html();
	$(this).parent().html("<strong>" + latestContent + "</strong>");
	return false;
});
