$(document).ready(function() {

//NAVIGATION START
	$("#news").hover(
		function() {
			$("#news_overlay").animate({"opacity": "1"}, "1");
		},
		function() {
			$("#news_overlay").animate({"opacity": "0"}, "1");
	});
	
	$("#dailyfix").hover(
		function() {
			$("#dailyfix_overlay").animate({"opacity": "1"}, "1");
		},
		function() {
			$("#dailyfix_overlay").animate({"opacity": "0"}, "1");
	});
	
	$("#features").hover(
		function() {
			$("#features_overlay").animate({"opacity": "1"}, "1");
		},
		function() {
			$("#features_overlay").animate({"opacity": "0"}, "1");
	});
	
	$("#members").hover(
		function() {
			$("#members_overlay").animate({"opacity": "1"}, "1");
		},
		function() {
			$("#members_overlay").animate({"opacity": "0"}, "1");
	});
	
	$("#network").hover(
		function() {
			$("#network_overlay").animate({"opacity": "1"}, "1");
		},
		function() {
			$("#network_overlay").animate({"opacity": "0"}, "1");
	});
	
	$("#fun").hover(
		function() {
			$("#fun_overlay").animate({"opacity": "1"}, "1");
		},
		function() {
			$("#fun_overlay").animate({"opacity": "0"}, "1");
	});
	
	$("#movingimage").hover(
		function() {
			$("#movingimage_overlay").animate({"opacity": "1"}, "1");
		},
		function() {
			$("#movingimage_overlay").animate({"opacity": "0"}, "1");
	});
	
	$("#goods").hover(
		function() {
			$("#goods_overlay").animate({"opacity": "1"}, "1");
		},
		function() {
			$("#goods_overlay").animate({"opacity": "0"}, "1");
	});
// NAVIGATION END

	$(".headline").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100),
			$(".headline a").bigTarget({
				clickZone : 'div:eq(0)'
			}),
			$(this).css("cursor", "pointer");
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(244,244,244)" }, 100);
		});

	$(".headlineFeature").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100),
			$(".headlineFeature a").bigTarget({
				clickZone : 'div:eq(0)'
			}),
			$(this).css("cursor", "pointer");
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(244,244,244)" }, 100);
		});

	$(".categories li").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(51,51,51)" }, 100),
			$(".categories li a").bigTarget(),
			$(this).css("cursor", "pointer");
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100);
		});

	$(".wppp_list li").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100),
			$(".wppp_list li a").bigTarget(),
			$(this).css("cursor", "pointer");
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(244,244,244)" }, 100);
		});
	
	$(".featuresList li").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100),
			$(".featuresList li a").bigTarget(),
			$(this).css("cursor", "pointer");
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(244,244,244)" }, 100);
		});
	
	$(".network li").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100),
			$(".network li a").bigTarget(),
			$(this).css("cursor", "pointer");
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(244,244,244)" }, 100);
		});

	$("ul.authors li").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100),
			$("ul.authors li a").bigTarget(),
			$(this).css("cursor", "pointer");
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(51,51,51)" }, 100);
		});
		
	$("ul.externalLinks li").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100),
			$("ul.externalLinks li a").bigTarget(),
			$(this).css("cursor", "pointer");
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(244,244,244)" }, 100);
		});


// FEATURED SLIDER
	$(function() {
	    $(".featuredSlider").jCarouselLite({
	        btnNext: ".nextButton",
	        btnPrev: ".prevButton",
	        circular: false,
	        speed: 800,
	        easing: "easeOutQuint",
	        scroll: 1
	    });
	});

	$("div.prevButton,div.nextButton").hover(
		function() {
			$(this).animate({ backgroundColor: "rgb(51,51,51)" }, 100);
		},
		function() {
			$(this).animate({ backgroundColor: "rgb(204,204,51)" }, 100);
		});

	$("#controller").jFlow({  
		slides: "#slides",  
		width: "960px",  
		height: "515px",  
		duration: 600  
	}); 

// ACTIVE CATEGORY
	$(".active").css("background-color", "rgb(204,204,51)").css("color", "black");


// SIDEBAR: BEST STUFF

$('#beststuff').innerfade({
	speed: 'slow',
	timeout: 4000,
	type: 'sequence',
	containerheight: '225px'
});


// PRETTYPHOTO
			
$("a[rel^='prettyPhoto']").prettyPhoto();


// MOVING IMAGE

$(".movingOverlay").hover(
	function() {
		$(this).animate({"opacity": "1"}, "1");
	},
	function() {
		$(this).animate({"opacity": "0"}, "1");
});


// MEMBERS

$(".artistOverlay").hover(
	function() {
		$(this).animate({"opacity": "1"}, "1");
	},
	function() {
		$(this).animate({"opacity": "0"}, "1");
});


// AUTHORS
$("ul.authors li a").bigTarget();


// THE END
});







