Here is a working code: http://jsfiddle.net/ZPuNA/3/
jQuery(document).ready(function($) {
$("article").hide();
var currentDiv = $(".active").attr("ID");
$("article."+currentDiv).show();
$("nav a.non_active").click(function(event){
$("a.non_active").removeClass("active");
$(this).toggleClass("active");
var article = "article." + event.target.id;
$("article").hide();
$(article).show();
return false;
});
});
I put it in a document ready event. And start with hiding all articles. On click then just toggle the active class and show article with correct class.