// Darkr link
$(document).ready(function(){
	$("#head .darkr").css("color","#31302f");
	$("#head .darkr").animate({opacity: 0.10}, 0);
	$("#head .darkr").hover(
		function() {
			$(this).stop().animate({opacity: 1}, 0);
		},
		function() {
			$(this).stop().animate({opacity: 0.10}, 600,"easeOutCirc");
		}
	);
});

// Page navigation
$(document).ready(function(){
	$("#main .pages .p1").removeClass("p1").addClass("jp1");
	$("#main .pages .p2").removeClass("p2").addClass("jp2");
	$("#main .pages ul li a").animate({opacity: 0}, 0);
	$("#main .pages ul li a").hover(
		function() {
			$(this).stop().animate({opacity: 1}, 0);
		},
		function() {
			$(this).stop().animate({opacity: 0}, 600,"easeOutExpo");
		}
	);
});

// Image page navigation
$(document).ready(function(){
	$("#navigation .n1").removeClass("n1").addClass("jn1");
	$("#navigation .n3").removeClass("n3").addClass("jn3");
	$("#navigation .n5").removeClass("n5").addClass("jn5");
	$("#navigation .n7").removeClass("n7").addClass("jn7");
	$("#navigation ul li a").animate({opacity: 0}, 0);
	$("#navigation ul li a").hover(
		function() {
			$(this).stop().animate({opacity: 1}, 0);
		},
		function() {
			$(this).stop().animate({opacity: 0}, 600,"easeOutExpo");
		}
	);
});

// Black background links
$(document).ready(function(){
	$("#main .menu a,#page .menu a,#image .copy a").css("color","#f3f7ff");
	$("#main .menu a,#page .menu a,#image .copy a").animate({opacity: 0.75}, 0);
	$("#main .menu a,#page .menu a,#image .copy a").hover(
		function() {
			$(this).stop().animate({opacity: 1}, 0);
		},
		function() {
			$(this).stop().animate({opacity: 0.75}, 600,"easeInSine");
		}
	);
});

// Content thumbnail hover
$(document).ready(function(){
	$("#main .thumbs a,#page .thumbs a,#main .thumbs4x618 a,#main .thumbs7x618 a,#main .thumbs1x25 a").stop().animate({opacity: 0.75}, 0);
	$("#main .thumbs a,#page .thumbs a,#main .thumbs4x618 a,#main .thumbs7x618 a,#main .thumbs1x25 a").hover(
		function() {
			$(this).siblings("a").stop().animate({opacity: 0.25}, 600,"easeOutCirc");
			$(this).stop().animate({opacity: 1}, 0);
		},
		function() {
			$(this).siblings("a").stop().animate({opacity: 0.75}, 2400,"easeOutQuad");
			$(this).stop().animate({opacity: 0.75}, 2400,"easeOutQuad");
		}
	);
	$("#main .thumbs span,#page .thumbs span").hover(
		function() {
			$(this).siblings("a").stop().animate({opacity: 0.25}, 600,"easeOutCirc");
		},
		function() {
			$(this).siblings("a").stop().animate({opacity: 0.75}, 2400,"easeOutQuad");
		}
	);
});

// Shade area thumbnails
$(document).ready(function(){
	$("#shade .thumb a").stop().animate({opacity: 0.75}, 0);
	$("#shade .thumb a").hover(
		function() {
			$(this).siblings("a").stop().animate({opacity: 0.25}, 600,"easeOutCirc");
			$(this).parent().siblings(".thumb").children("a").stop().animate({opacity: 0.25}, 600,"easeOutCirc");
			$(this).stop().animate({opacity: 1}, 0);
		},
		function() {
			$(this).siblings("a").stop().animate({opacity: 0.75}, 2400,"easeOutQuad");
			$(this).parent().siblings(".thumb").children("a").stop().animate({opacity: 0.75}, 2400,"easeOutQuad");
			$(this).stop().animate({opacity: 0.75}, 2400,"easeOutQuad");
		}
	);
});

// Black background links
$(document).ready(function(){
	$("#shade a").css("color","#f3f7ff");
	$("#shade a").animate({opacity: 0.45}, 0);
	$("#shade a").hover(
		function() {
			$(this).stop().animate({opacity: 1}, 0);
		},
		function() {
			$(this).stop().animate({opacity: 0.45}, 800,"easeInSine");
		}
	);
});
