$(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(".summary").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(".summary").find(".hide").slideToggle(600);
		$("a.read_more").show();
	}); // END TOGGLE
	
	// scroll functions

	$('.left_col_style_b').localScroll({
	hash: true
	}
	);
	
	$('.back_to_top').localScroll({
	hash: true
	}
	);
	
	//Activate FancyBox Links
		$(".zoom_image").fancybox({
				'zoomSpeedIn':	500, 
				'zoomSpeedOut':	500, 
				'overlayShow':	true,
				'overlayOpacity': 0.7
		});

});
