

jQuery(function($){
	$(".tweet").tweet({
		username: "tcfymca",
		join_text: "auto",
		avatar_size: false,
		count: 3,
		auto_join_text_default: "",
		auto_join_text_ed: "",
		auto_join_text_ing: "",
		auto_join_text_reply: "",
		auto_join_text_url: "",
		loading_text: "loading tweets..."
	});
	if (/msie/.test(navigator.userAgent.toLowerCase())) {
		// Used to resolve issue with fade in IE and bad transitioning
		$(".cycle").each(function() {
			$(this).cycle({
				timeout: 7000,
				speed: 0,
				pager: '#cycle-pager',
				pagerEvent: 'click',
				allowPagerClickBubble: true,
				pauseOnPagerHover: 1,
				cleartypeNoBg: true,
				fastOnEvent: true
			});
		});
	} else {
		// Used for all browsers besides IE
		$(".cycle").each(function() {
			$(this).cycle({
				timeout: 7000,
				pager: '#cycle-pager',
				pagerEvent: 'click',
				allowPagerClickBubble: true,
				pauseOnPagerHover: 1,
				cleartypeNoBg: true,
				fastOnEvent: false
			});
		});
	}
	//$('#featured-posts h1, #featured-posts h2').addClass('nocufon');
	//Cufon.replace('h1:not(.nocufon)');
	//Cufon.replace('h2:not(.nocufon)');
	//Cufon.replace('#sub1');
});


var icpForm2640 = document.getElementById('icpsignup2640');
if (document.location.protocol === "https:")
	icpForm2640.action = "https://app.icontact.com/icp/signup.php";

function verifyRequired2640() {
  if (icpForm2640["fields_email"].value == "") {
    icpForm2640["fields_email"].focus();
    alert("The Email field is required.");
    return false;
  }
  return true;
}

function NavHilite(pageid) {
	jQuery('.page-item-'+pageid).addClass('current_page_ancestor');
}
