Set of jQuery .onclick functions
Perhaps change the HTML:

Navitem:

&lt;span class="navItem" data-content-id="1"&gt;&lt;/span&gt;


The content

&lt;div id="content-wrap1" class="content-wrap"&gt;&lt;/div&gt;


jQuery

$('.navItem').on('click',function(){
   $('.content-wrap').hide();
   $('#content-wrap'+$(this).data('content-id')).fadeIn(1000);
});