//Simple jquery script for a dropdown.
$(document).ready(function(){
	$("#navPrimary li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function(){ $("ul", this).fadeOut("fast"); } 
	);
});



$(document).ready(function(){

	$(".magazines a").hover(function() {
		$(this).next("em").animate({opacity: "show", top: "150"}, "fast");
	}, function() {
		$(this).next("em").animate({opacity: "hide", top: "160"}, "fast");
	});


});


$(document).ready(function(){
	$("#largeLink0").click(
		function(){ window.location = "http://www.ab-conservation.com/rapsurvey";} 
	);
	$("#largeLink0").hover(
		function(){document.body.style.cursor = "pointer"},
		function(){document.body.style.cursor = "default"}
	);
	
	$("#largeLink1").click(
		function(){ window.location = "/go/default/index.cfm/publications/conservation-magazine/online-version/2011-fallwinter/";} 
	);
	$("#largeLink1").hover(
		function(){document.body.style.cursor = "pointer"},
		function(){document.body.style.cursor = "default"}
	);
	
	$("#largeLink2").click(
		function(){ window.location = "/go/default/index.cfm/discover-guide/";} 
	);
	$("#largeLink2").hover(
		function(){document.body.style.cursor = "pointer"},
		function(){document.body.style.cursor = "default"}
	);
	
	$("#largeLink3").click(
		function(){ window.location = "http://www.ab-conservation.com/go/default/index.cfm/programs/fisheries/fisheries-team-at-work/";} 
	);
	$("#largeLink3").hover(
		function(){document.body.style.cursor = "pointer"},
		function(){document.body.style.cursor = "default"}
	);
	$("#largeLinkDonate").click(
		function(){ window.location = "http://www.ab-conservation.com/go/default/index.cfm/give/land-donations1/";} 
	);
	$("#largeLinkDonate").hover(
		function(){document.body.style.cursor = "pointer"},
		function(){document.body.style.cursor = "default"}
	);
	
	
	$("#largeLink4").click(
		function(){ window.location = "/go/default/index.cfm/publications/conservation-magazine/";} 
	);
	$("#largeLink4").hover(
		function(){document.body.style.cursor = "pointer"},
		function(){document.body.style.cursor = "default"}
	);
	
});



//$(document).ready(function(){
//	$("ul#navPrimary li ul").siblings("a").hover(function(){
//		var thisUL = $(this).siblings("ul");
//		var parentLI = $(this).parent();
//		thisUL.width(thisUL.width()); //This line allows for proper scrolling in IE7
//		thisUL.slideDown(100);
//		return false;
//	},function(){
//		var thisUL = $(this).siblings("ul");
//		var parentLI = $(this).parent();
//		thisUL.width(thisUL.width()); //This line allows for proper scrolling in IE7
//		thisUL.slideUp(100);
//		return false;
//	
//	});
//});

