$(document).ready(function() {
	// Make the cursor behave as if the whole tab were a link
	$('#feature_nav li').css('cursor','pointer');

	// Assign a click handler to all tabs
	$('#feature_nav li').click(function () {

		// Obtain the URL for the clicked tab's link, and load the referenced page's card content into the current page
		var linkUrl = $(this).children('h1').children('a').attr('href');
    $('div .feature.active').removeClass('active');
    $(linkUrl).addClass('active');

		// Unset the present current tab, and assign the class to the clicked tab
		$('#feature_nav li.active').removeClass('active');
		$(this).addClass('active');

		// Remove highlighting from the link and prevent the browser from changing pages
		this.blur();
		return false;
	});
});