$(document).ready(function(){
	
	$('.widget:last').css('border-bottom', 'none');
	$('.post-excerpt:last').css('border-bottom', 'none');
	
	var linkedin_css = { 
		'background-position' : '0px 0px !important',
		'height' : '18px !important',
		'width' : '18px !important'
	
	}	
	$('.li-connect-widget .li-connect-mark').css(linkedin_css);
	
	//Default Action
	$(".cap_content").hide(); //Hide all content
	$("#cap_tabs li:first a").addClass("active").show(); //Activate first tab
	$(".cap_content:first").show(); //Show first tab content
	
	//On Click Event
	$("#cap_tabs li").click(function() {
		$("#cap_tabs li a").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".cap_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
	
	
});
