<!--
function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
//-->

// SLIDESHOW
// FUNCTION : SLIDE FADE TOGGLE
$.fn.slideFadeToggle = function(speed, easing, callback) {
	return this.animate({height: 'toggle', opacity: 'toggle'}, speed, easing, callback);};

// PAGE READY
$(document).ready(function () {


	// SLIDESHOW
    $('#slides').cycle({
		    fx: 'fade',
	 	    delay: 4000,
			timeout: '4000',
			speed: '1000',
			next: '#next', 
			prev: '#prev',
			pager: '#slideshow_nav'
    	}
	);
	$(".slide a").hover(
		function() {
			$(this).append("<img class='featured_overlay' src='http://www.bethelchurch.info/dev/images/slides/featured_overlay.png' width='290' height='120' />");
		},
		function() {
			$(".featured_overlay").remove();
		}
	);


	// NAV CHOOSE LOCATION DROP DOWN
	$("#nav_choose_location").parent().hover(
		function(){
			$("#choose_location_list").slideDown('fast');
		},
		function() {
			$("#choose_location_list").slideUp('fast');
		}
	);


});
