$(document).ready(function(){

	// Remove Tumblr autogen alts, which look ugly when loading
	$('.post .photo .photobox a img').attr({ alt: '' });

	// Hide all the caption details to start
	$(".post .photo .caption i").hide();

	// But show any non-product captions
	$(".specials .caption i").toggle();
	$(".postbox .caption i").toggle();


	// Wrap the title in a link
	$(".post .photo .caption li b").wrap(" | <a class='show' href='#' title='See more info'></a>");


   	// When the show link is clicked
	// Show the caption that is a child of the current list iti
	// Hide the captions that are children of all other list itis
	$(".post .photo .caption a.show").click(function(event){
		
		// Trying to append + riove the caption below ul			
		// var foo = $(this).parents("li").children('i').addClass('added');
		// $('.post .caption ul').after(foo);
		// $('.added').show();
		// $(this).wrap('<i></i>');
		// $('.wrap').riove();		

		$(this)
		.toggleClass('active')
		.parents("li").children("i").slideToggle('fast')
		.parents().siblings('li').find('i').slideUp('fast');
	
		
	
		return false;
	});
	
	$('.post:eq(0)').addClass('first');
	$('.post:odd').addClass('even');
	

});
