jQuery.fn.fadeToggle = function(speed, easing, callback) {
        return this.animate({opacity: 'toggle'}, speed, easing, callback);
};

function switchContent(div) {
	$('#index').hide();
	$('#about').hide();
	$('#jobs').hide();
	$('#contact').hide();
	$('#' + div + '').fadeToggle(); 
}