// We don't want the replies.
function devlogicCallback(tweets) {
  $.each(tweets,function() {
    if (!this.text.match(/^@/)) {
      twitterCallback2([this]);
      return false;
    }
  });
}
$(function() {
  $(".introduction a.btn").bind("click",function() {
    $("#copywriting").toggle();
    $("#web-development").toggle();
    return false;
  });  
  $(".bio a.btn").bind("click",function() {
    $("#aprill-allen").toggle();
    $("#matt-allen").toggle();
    return false;
  });  

  $(".archive-article").hide();
  $(".archive-toggle").bind("click", function () {
    $(".archive-toggle").removeClass("expanded");
    $(".archive-article").hide();
    cname = $(this).attr('class').match("year_[0-9]{4}")[0];
    $(".archive-article."+ cname).show();
    $(this).addClass("expanded");
    return false;
  });
  
	$("#twitter").getTwitter({
  		userName: "code_and_prose",
  		numTweets: 10,
  		loaderText: "Checking the tweets ...",
  		slideIn: true,
  		slideDuration: 750,
  		showHeading: false,
  		headingText: "",
  		showProfileLink: false,
  		showTimestamp: true
  	});
  tweetmeme_style = 'compact';
})