jQuery(document).ready(function(){
		
		jQuery('.whatthelinkp').show();
		jQuery('.whatthelinkp').wrapInner('<span></span>');
		jQuery('.whatthelinkp > span').after('<span>Hide Details</span>');
		jQuery('.whatthelinkp > span + span').hide();
		jQuery('.hider').hide();
  		jQuery('.upthehide').show();
  		jQuery('.upthehide').html('<img src="http://aarfie.com/wp-content/themes/aarfie/images/layout/spacer.gif" width="258" height="18" alt="" />');

  		jQuery('.whatthelinkp span:nth-child(1)').click(function(){
  		    jQuery(this).hide();
  		    jQuery(this).next().show();
            jQuery(this).parent().next().show(100);
  		});
  		
  		jQuery('.whatthelinkp span:nth-child(2)').click(function(){
  		    jQuery(this).hide();
  		    jQuery(this).prev().show();
            jQuery(this).parent().next().hide(100);
  		});
  		
  		jQuery('.upthehide > img').click(function () {
	      jQuery(this).parent().parent().prev().children('span:nth-child(2)').hide();
	      jQuery(this).parent().parent().prev().children('span:nth-child(1)').show();
	      jQuery(this).parent().parent().hide(100);
	    });
	    
	    
	    
		jQuery('.shownextpar').show();
	    jQuery('.shownextpar').next('p').hide();
	    
	    
	    jQuery('.shownextpar').toggle(function(){
  		    jQuery(this).next('p').show();
  		    jQuery(this).text('hide details');
  		}, function() {
  		    jQuery(this).next('p').hide();
  		    jQuery(this).text('show details');
		});

	    
	    
        	    
	    jQuery('.showcasethumbcont').hover(
			  function () {
			    jQuery(this).children('.showcasethumb').css('marginTop', '0');
			    jQuery(this).children('.showcasethumb').animate({ 
									        marginTop: '-22px'
									      }, 200);
			  }, 
			  function () {
			    jQuery(this).children('.showcasethumb').animate({ 
									        marginTop: 0
									      }, 200);
			  }
			);
	    

  	 });