$(document).ready(function() {
	
	// LavaLamp Effect
	
	$(".lavaMenu").lavaLamp({ fx: "easeOutBack", speed: 700 });
	
	// Fade Menu Effect
	
	$("ul.lavaMenu li:not(.current) a").hover(function() { //mouse in  
	        $(this).stop().animate({ color: '#feeca0' }, 700);  
	    }, function() { //mouse out  
	        $(this).stop().animate({ color: '#90704b' }, 400);  
	    });
	
	// Fade Links Header

	$("a:not(ul.lavaMenu a)").hover(function() { //mouse in  
	        $(this).stop().animate({ color: '#feeca0' }, 700);  
	    }, function() { //mouse out  
	        $(this).stop().animate({ color: '#734b34' }, 400);  
	    });
	
	$("#blog").hover(function() { //mouse in  
	        $(this).stop().animate({ color: '#feeca0' }, 700);  
	    }, function() { //mouse out  
	        $(this).stop().animate({ color: '#90704b' }, 400);  
	    });
	
	// Fade Links Main Bottom

	$("div#mainbottom a").hover(function(event) { //mouse in  
	        $(this).stop().animate({ color: '#000000' }, 700);  
	    }, function() { //mouse out  
	        $(this).stop().animate({ color: '#593527' }, 400);  
	    });

	$("div#mainbottom a.readMoreButton").hover(function(event) { //mouse in  
	        $(this).stop().animate({ color: '#ffffff' }, 700);  
	    }, function() { //mouse out  
	        $(this).stop().animate({ color: '#feeca0' }, 400);  
	    });
	
		$("div#mainbottom .sideCol a").hover(function(event) { //mouse in  
		        $(this).stop().animate({ color: '#000000' }, 700);  
		    }, function() { //mouse out  
		        $(this).stop().animate({ color: '#736357' }, 400);  
		    });
		
	// Fade Links Footer
	
	$("#footer div.latest a").hover(function() { //mouse in  
	        $(this).stop().animate({ color: '#feeca0' }, 700);  
	    }, function() { //mouse out  
	        $(this).stop().animate({ color: '#8d704b' }, 400);  
	    });

	// Read More Toggle

	$("p.readMore").hide();

	$("a.readMoreButton").click(function(event) {

		if ($(this).parent().next('p').is(':hidden')) {

			$(this).parent().next('p').stop().show('slow',
				function(){
					$.scrollTo( $(this).prev(), 800 );
					return false;
				}
			);
			$(this).html($(this).html().replace('Show','Hide'));


		}

		else {
			$(this).parent().next('p').stop().hide();
			$(this).html($(this).html().replace('Hide','Show'));
		}

		return false;
	});

	//FaceBox
	$("#AnnualWomanVisit").hide();
	$('a[rel*=facebox]').facebox();

 });

function startGallery() {
	var myGallery = new gallery(Moo.$('myGallery'), {
		timed: true,
		textShowCarousel: 'Highlights',
		delay: 7000,
		fadeDuration: 2000
	});
}

window.addEvent('domready',startGallery);

