//Javascript for Approach Page tooltips and related images

$(document).ready(function(){
	//$(".tooltip").css("opacity","0"); // This sets the opacity of all the tooltips to be at 0 when the page loads
	$("#subnav-1.subnav").addClass("active");
	
//Hover triggers tooltips. They were removed before launch.
/*	$("#subnav-1").hover(function(){
		$("#subnav-1-info").css("display","inline");						  
		$("#subnav-1-info").fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
	},
	function(){
		$("#subnav-1-info").fadeTo("100", 0); // This should reset the opacity back to 0% on mouseout
		setTimeout('$("#subnav-1-info").css("display","none");', 300);	
	});
*/

//Onclick changes content blocks.
	$("#subnav-1").click(function(){
		$(".subnav-content").css("display","none");
		$("#subnav-1-content").css("display","inline");
		
		$(".subnav").removeClass("active");
		$(this).addClass("active");
		return false;
	});
	
	
/*	$("#subnav-2").hover(function(){
		$("#subnav-2-info").css("display","inline");		
		$("#subnav-2-info").fadeTo("100", 1.0); 
	},
	function(){
		$("#subnav-2-info").fadeTo("def", 0); 
		setTimeout('$("#subnav-2-info").css("display","none");', 300);	
	});
*/
	$("#subnav-2").click(function(){
		$(".subnav-content").css("display","none");
		$("#subnav-2-content").css("display","inline");
		
		$(".subnav").removeClass("active");
		$(this).addClass("active");
		return false;
	});
	
	 
/*	$("#subnav-3").hover(function(){
		$("#subnav-3-info").css("display","inline");								  
		$("#subnav-3-info").fadeTo("100", 1.0); 
	},function(){
	$("#subnav-3-info").fadeTo("def", 0); 
	setTimeout('$("#subnav-3-info").css("display","none");', 300);	
});
*/
	$("#subnav-3").click(function(){
		$(".subnav-content").css("display","none");
		$("#subnav-3-content").css("display","inline");
		
		$(".subnav").removeClass("active");
		$(this).addClass("active");
		return false;
	});
	

/*	$("#subnav-4").hover(function(){
		$("#subnav-4-info").css("display","inline");		
		$("#subnav-4-info").fadeTo("100", 1.0); 
	},
	function(){
		$("#subnav-4-info").fadeTo("def", 0); 
		setTimeout('$("#subnav-4-info").css("display","none");', 300);	
	});
*/
	$("#subnav-4").click(function(){
		$(".subnav-content").css("display","none");
		$("#subnav-4-content").css("display","inline");
		
		$(".subnav").removeClass("active");
		$(this).addClass("active");
		return false;
	});
});


