var sh=1;
function sidebar()
{
  if (sh!=0)
  {$(".sidebar").hide();sh=0;$(".post").css("margin-right","20px");}
  else
  {$(".sidebar").show();sh=1;$(".post").css("margin-right","300px");}
  return false;
}

$(document).ready(function(){
$('#tabs div').hide(); // Hide all divs
$('#tabs div:first').show(); // Show the first div
$('#tabs ul li:first').addClass('active'); // Set the class for active state
$('#tabs ul li a').click(function(){ // When link is clicked
$('#tabs ul li').removeClass('active'); // Remove active class from links
$(this).parent().addClass('active'); //Set parent of clicked link class to active
var currentTab = $(this).attr('href'); // Set currentTab to value of href attribute
$('#tabs div').hide(); // Hide all divs
$(currentTab).show(); // Show div with id equal to variable currentTab
return false;
});
});