$(document).ready(function () {
  
 	// slideshow functions
	
	$('.slideshow').cycle({
		pager:      '#pager_links',
		pagerClick: stopSlideshow
	});
	
	function stopSlideshow(){
	$('.slideshow').cycle('pause');
	}

	// TOGGLE SCRIPT
	$(".hide").hide();
 
	$("a.read_more").click(function(event){
		// expand the article
		$(this).parents("#intro").find(".hide").slideToggle(600);
		// hide the read more link
 		$(this).hide();
 		// Stop the link click from doing its normal thing
		return false;
	}); // END TOGGLE
	
	
	$("a.close_link").click(function(event){
		$(this).parents("#intro").find(".hide").slideToggle(600);
		$("a.read_more").show();
	}); // END TOGGLE
	
	//
	//Full Caption Sliding (Hidden to Visible)
	$('.boxgrid.captionfull').hover(function(){
		$(".cover", this).stop().animate({opacity: 0.75},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({opacity: 0},{queue:false,duration:160});
	});        
// end doc //////////////// 
});
