jQuery.noConflict(); // Removes "$" as shortcut for "jQuery" so it doesn't conflict with other libraries

var tm, a_cyclenav;
jQuery(document).ready(function(){
						   
	a_cyclenav = Array("travel","telehealth","identity protection");					   
						   
	jQuery(".cycle").cycle({
		fx: 'scrollVert',
    	pager:  '#cyclenav',
		next:   '.img-anim',
		timeout: 7000,
		delay: 2000,
		pagerAnchorBuilder: function(idx) { 
			return '<a href="#" id="cyclelink-' + idx + '">' + a_cyclenav[idx] + '</a>'; 
		} 
	});
	jQuery('#cyclenav a').click(function() { 
		jQuery('.cycle').cycle('pause'); 
		clearTimeout(tm);
		tm = setTimeout("resumeCycle()", 10000);
	});
});

function resumeCycle(){
	jQuery('.img-anim').cycle('resume'); 
}