//Tumblog

$('.page-id-5244 aside li li a').click(function(event) {
	event.preventDefault();
	$('aside li a').removeClass('active');
	$(this).addClass('active');
	$('#tumblog li').hide();
}); 

$('#sortTwitter').click(function(event) {
	$('#tumblog li.Twitter').show();
}); 

$('#sortInstagram').click(function(event) {
	$('#tumblog li.Instagram').show();
}); 

$('#sortWP').click(function(event) {
	$('#tumblog li.WP').show();
}); 

$('#sortWP2').click(function(event) {;
	$('#tumblog li.WP2').show();
}); 

$('#sortFoursquare').click(function(event) {
	$('#tumblog li.foursquare').show();
}); 

$('#sortDribbble').click(function(event) {
	$('#tumblog li.dribbble').show();
}); 

$('#sortGithub').click(function(event) {
	$('#tumblog li.github').show();
});

$('#sortRavelry').click(function(event) {
	$('#tumblog li.ravelry').show();
});

$('#sortPinterest').click(function(event) {
	$('#tumblog li.pinterest').show();
});

$('#sortGoodreads').click(function(event) {
	$('#tumblog li.goodreads').show();
});

$('#sortLanyrd').click(function(event) {
	$('#tumblog li.lanyrd').show();
});

$('#sortMeetup').click(function(event) {
	$('#tumblog li.meetup').show();
});

$('#sortCodesnippit').click(function(event) {
	$('#tumblog li.codesnippit').show();
});

$('#viewAll').click(function(event) {
	$('#tumblog li').show();
}); 

//BSA

(function(){
  var bsa = document.createElement('script');
     bsa.type = 'text/javascript';
     bsa.async = true;
     bsa.src = '//s3.buysellads.com/ac/bsa.js';
  (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();

//Flexslider

$(window).load(function() {
				$('.flexslider').flexslider({
					slideshowSpeed: 7000,
				  	controlNav: false 
			  });
			});

//Google

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-6480997-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
			  
// Highslide
$(document).ready(function() {
	$('#details a').addClass('highslide').click(function(){
		return hs.expand($(this)[0]);
	});
});
























