jQuery(document).ready(function(){
	
	// Exhibits & Events Secondary Page Cycles
	function updateExhibitLink(curr, next, opts) {
		newLink = $(this).children("a").attr('href');
	    $("#exhibits-bottom a.learn-more").attr('href', newLink);
	}	
	
	$('#exhibits-cycle').cycle({ 
	    fx:     	'fade', 
	    speed:   	2000,
	    timeout: 	10000,
	    pause:   	1,
		cleartype:  1,
		pager:  	'#exhibits-cycle-nav',
		after: 		updateExhibitLink
	});
	
	function updateEventLink(curr, next, opts) {
		newLink = $(this).children("a").attr('href');
	    $("#events-bottom a.learn-more").attr('href', newLink);
	}	
	
	$('#events-cycle').cycle({ 
	    fx:     	'fade', 
	    speed:   	2000,
	    timeout: 	10000,
	    pause:   	1,
		cleartype:  1,
		pager:  	'#events-cycle-nav',
		after: 		updateEventLink 
	});
	
});