$(function() {
		// OPACITY OF BUTTON SET TO 100%
		$("#main-navi a").css("opacity","1.0");
		$("#main-navi-2 a").css("opacity","1.0");
		$("#inner_content .imgtfe").css("opacity","1.0");
		
		// ON MOUSE OVER
		$("#main-navi a").hover(function () {
			// SET OPACITY TO 0%
			$(this).stop().animate({opacity: 0.0}, "normal");
		},
		
		// ON MOUSE OUT
		function () {
			// SET OPACITY BACK TO 100%
			$(this).stop().animate({opacity: 1.0}, "slow");
		});
		
		// ON MOUSE OVER
		$("#main-navi-2 a").hover(function () {
			// SET OPACITY TO 0%
			$(this).stop().animate({opacity: 0.0}, "normal");
		},
		
		// ON MOUSE OUT
		function () {
			// SET OPACITY BACK TO 100%
			$(this).stop().animate({opacity: 1.0}, "slow");
		});
// Thumbnails
		// ON MOUSE OVER
		$("#inner_content .imgtfe").hover(function () {
			// SET OPACITY TO 80%
			$(this).stop().animate({opacity: 0.6}, "normal");
		},
		// ON MOUSE OUT
		function () {
			// SET OPACITY BACK TO 100%
			$(this).stop().animate({opacity: 1.0}, "normal");
		});
	});

// Slide-Fade Function
jQuery.fn.slideFadeToggle = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);  
};

$(document).ready(function() {
	$('.myRespondHead').click(function() {
		$(this).next().stop().slideFadeToggle('slow', function() {
			var $this = $(this);
		});
	});
	$('#mySitemap h3').click(function() {
		$(this).next().stop().slideFadeToggle('slow', function() {
			var $this = $(this);
		});
	});
});


// Image Overlay Slide-Fade
$(document).ready(function(){
	var  res = document.getElementById("LSResult");
	$(res).css("opacity","0.0");
	$(".overlay").css("opacity","0.0");
		
	$(".showover a").hover(function(){
		$(this).parents(".showover").find("img").css({"background-color" : "#c00063"});
		$(this).next(".overlay").stop().animate({opacity: "0.8", bottom: "20"}, "slow");
	}, function(){
		$(this).parents(".showover").find("img").css({"background-color" : "#000"});
		$(this).next(".overlay").stop().animate({opacity: "0.0", bottom: "10"}, "slow");
	});
	
	$(".overlay").hover(function(){
		$(this).parents(".showover").find("img").css({"background-color" : "#c00063"});
		$(this).stop().animate({opacity: "0.8", bottom: "20"}, "0");
	}, function(){
		$(this).parents(".showover").find("img").css({"background-color" : "#000"});
		$(this).stop().animate({opacity: "0.0", bottom: "10"}, "0");
	});
	
	
	$(".overadd").css("opacity","0.0");
		
	$(".showoveradd a").hover(function(){
		$(this).next(".overadd").stop().animate({opacity: "0.7", bottom: "10"}, "normal");
	}, function(){
		$(this).next(".overadd").stop().animate({opacity: "0.0", bottom: "5"}, "slow");
	});
	
	$(".overadd").hover(function(){
		$(this).stop().animate({opacity: "0.7", bottom: "10"}, "0");
	}, function(){
		$(this).stop().animate({opacity: "0.0", bottom: "5"}, "0");
	});
	
});