$(document).ready(function(){
	  $('#homeside ul.tabs').idTabs();
	  //$('.single-feature span').css('opacity', '0');
	  $('.single-feature').hover(function() {
	  	var title = $(this).find('span');
	  	$(title).animate({'left' : '0'}, 400);
	  },
	  	function() {
	  		var title = $(this).find('span');
		  	$(title).animate({'left' : '-493'}, 400);
	  	});
	  $('li.shop a').hover(function() {
	  	$(this).html('Soon');
	  }, function() {
	  	link = $(this).attr('href');
	  	$(this).html('<a href="' + link + '">Shop</a>');
	  });
	  $('.blockimg p').eq(0).hide();
	  
	  $('body.home .post').each(function() {
	  	if ( $(this).children('img').length == 1 ) {
	  		$(this).children('img').remove();
	  	}
	  });
	  	
	  $('.tab ul li:last-child a').addClass('round');
	  
	  if ( $('.tag-desc p').length < 1 ) {
	  	$('.tag-desc').remove();
	  }
	  
		$('body.home .post img').error(function() {
			$(this).addClass('empty');
		});
	
	$('.store-thumbs img:last-child').css('padding-right', 0);
	
	$('#peachtree-thumbs img').live('click', function() {
		if ( $(this).attr('src') == $('#peachtree-image img').attr('src') ) {
			return false;
		} else {
		var loading = $(this).parent().parent().children('.loading');
		loading.show();
		var toLoad = $(this).attr('src');
		$('#peachtree-image img').attr('src', toLoad);
		$('#peachtree-image img').load(function() {
			loading.hide();
		});
		}
	});
	
	$('#lenox-thumbs img').live('click', function() {
		if ( $(this).attr('src') == $('#lenox-image img').attr('src') ) {
			return false;
		} else {
		var loading = $(this).parent().parent().children('.loading');
		loading.show();
		var toLoad = $(this).attr('src');
		$('#lenox-image img').attr('src', toLoad);
		$('#lenox-image img').load(function() {
			loading.hide();
		});
		}
	});
});
$(window).load(function() {
	$('body.single ol.related li img, body.single .post img, body.archive .post img, body.search .post img, body.home .post img').after('<p class="video">Video</span>');
});