// logo animation

$(function() {
// OPACITY OF BUTTON SET TO 100
$(".logo img").css("opacity","1.0");
		
// ON MOUSE OVER
$(".logo img").hover(function () {
										  
// SET OPACITY TO 0
$(this).stop().animate({
opacity: 0.0
}, "fast");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 100
$(this).stop().animate({
opacity: 1.0
}, "fast");
});
});


//nav rollovers

$(function() {
// OPACITY OF BUTTON SET TO 100
$(".directions img").css("opacity","1.0");
		
// ON MOUSE OVER
$(".directions img").hover(function () {
										  
// SET OPACITY TO 0
$(this).stop().animate({
opacity: 0.0
}, "fast");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 100
$(this).stop().animate({
opacity: 1.0
}, "fast");
});
});

//reveiws

$(function() {
// OPACITY OF BUTTON SET TO 100
$(".reviews img").css("opacity","1.0");
		
// ON MOUSE OVER
$(".reviews img").hover(function () {
										  
// SET OPACITY TO 0
$(this).stop().animate({
opacity: 0.0
}, "fast");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 100
$(this).stop().animate({
opacity: 1.0
}, "fast");
});
});




//biography

$(function() {
// OPACITY OF BUTTON SET TO 100
$(".biography img").css("opacity","1.0");
		
// ON MOUSE OVER
$(".biography img").hover(function () {
										  
// SET OPACITY TO 0
$(this).stop().animate({
opacity: 0.0
}, "fast");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 100
$(this).stop().animate({
opacity: 1.0
}, "fast");
});
});



//contact

$(function() {
// OPACITY OF BUTTON SET TO 100
$(".contact img").css("opacity","1.0");
		
// ON MOUSE OVER
$(".contact img").hover(function () {
										  
// SET OPACITY TO 0
$(this).stop().animate({
opacity: 0.0
}, "fast");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 100
$(this).stop().animate({
opacity: 1.0
}, "fast");
});
});


//tabbed animation

$(document).ready(function(){
		
		// When a link is clicked
		$("a.tab").click(function () {
			
			
			// switch all tabs off
			$(".active").removeClass("active");
			
			// switch this tab on
			$(this).addClass("active");
			
			// slide all content up
			$(".content").slideUp();
			
			// slide this content up
			var content_show = $(this).attr("title");
			$("#"+content_show).slideDown();
		  
		});
	
	  });


//slidshow
	$(document).ready(function() {
			/*
			*   Examples - images
			*/

			$("a#example1").fancybox({
				'titleShow'		: false
			});

			$("a#example2").fancybox({
				'titleShow'		: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			$("a#example3").fancybox({
				'titleShow'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'
			});

			$("a#example4").fancybox();

			$("a#example5").fancybox({
				'titlePosition'	: 'inside'
			});

			$("a#example6").fancybox({
				'titlePosition'	: 'over'
			});

			$("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

			/*
			*   Examples - various
			*/

			$("#various1").fancybox({
				'titlePosition'		: 'inside',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});

			$("#various2").fancybox();

			$("#various3").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});

			$("#various4").fancybox({
				'padding'			: 0,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
		});

//img rollover (before_after)

$(function() {
// OPACITY OF BUTTON SET TO 100
$("#slider img").css("opacity","1.0");
		
// ON MOUSE OVER
$("#slider img").hover(function () {
										  
// SET OPACITY TO 0
$(this).stop().animate({
opacity: 0.8
}, "fast");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 100
$(this).stop().animate({
opacity: 1.0
}, "fast");
});
});
