// ***
// Custom Navigation Behaviour
// UPDATED: 14.9.10 {t-p}
// ***

$(document).ready(function(){
		
		$('#home-nav').hover(function(){ // invoke hover function
			$('#home-nav').stop().animate({opacity: '0.8'}, 700);
			
			},
			
			function (){
			$('#home-nav').stop().animate({opacity: '1'}, 600); // fade back to 1
		});

		$('#nav li');
		var navRoll = '#nFoodBeverage, #nGolf, #nFishing, #nAccommodation, #nContact';
		$(navRoll).hover(function(){ // invoke hover function
			$(this).stop().animate({opacity: '0.7'}, 400);
			},
			
			function (){
			
			$(this).stop().animate({opacity: '1'}, 500); // fade back to 1
				
		});
		
// Header Image Cycle		
$('.header-fade').cycle({fx: 'fade', speed: 4000 });

		});
		
// IMAGE FADER // Image / Div Swap + Fade
$(document).ready(function(){
	
$('div.fade').hover(function() {
    // on hovering over, find the element we want to fade *up*
    var fade = $('> div', this);
    
    // if the element is currently being animated (to a fadeOut)...
    if (fade.is(':animated')) {
      // ...take it's current opacity back up to 1
      fade.stop().fadeTo(500, 1);
    } else {
      // fade in quickly
      fade.fadeIn(700);
    }
  }, function () {
    // on hovering out, fade the element out
    var fade = $('> div', this);
    if (fade.is(':animated')) {
      fade.stop().fadeTo(700, 0);
    } else {
      // fade out
      fade.fadeOut(700);
    }

  });
});

// TWITTER FEED REVEAL
$(document).ready(function(){
	
$(".twitter-toggle").click(function(){
	
        $("#news-reveal").slideToggle("slow");
        $(this).toggleClass("active"); return false;
        
    });
});
