// 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


// 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,
			navigatorWidth		: 205,
			isPreloaded : false, // for IE9 
			auto				: true,
			buttons				: buttons} 
			);



// END DOCUMENT READY
});
