// CLEAR SEARCH BOXES FUNCTION
$(function() {				 
	$('.clearme').each(function() {
		var default_value = this.value;
		$(this).focus(function() {
			if(this.value == default_value) {
			this.value = '';
			}
		});
		$(this).blur(function() {
			if(this.value == '') {
			this.value = default_value;
			}
		});
	});
});

// Add VideoJS to all video tags on the page when the DOM is ready
// VideoJS.setupAllWhenReady();


// BEGIN DOCUMENT READY
$(document).ready(function() {


// LOAD TWEET ON HOMEPAGE
	$("#twitter").getTwitter({
		userName: "FirstCoastYMCA",
		numTweets: 1,
		loaderText: "Loading...",
		slideIn: true,
		slideDuration: 750,
		showHeading: false,
		showProfileLink: false,
		showTimestamp: true
	});

// FEATURED SLIDER ON HOMEPAGE
	$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	var buttons = { previous:$('#lofslidecontent45 .lof-previous') ,
		next:$('#lofslidecontent45 .lof-next') };
	
	$('#lofslidecontent45').lofJSidernews( { 
			interval:8000,
			easing:'easeInOutQuad',
			duration:600,
			navigatorHeight		: 91,
			isPreloaded 		: false, // for IE9 9
			navigatorWidth		: 205,
			auto				: true,
			buttons				: buttons} 
			);



// END DOCUMENT READY
});
