// ========================================
// = Javascript DIV Display Toggle Script =
// ========================================
// 
// Author: Alex Nazaruk
// Date Created: 04/05/2009
// Copyright (c) Alex Nazaruk 2009
// Thanks to: W3 Schools & J-Query (Write Less Do More) Javascript Library
// 

//REVISED FUNCTION v2 - (USING JQUERY TO ANIMATE)

//Animate Project Buttons Text to White and Back upon Hover - REQUIRES ADDITIONAL JQUERY-UI JS
/*$(function(){
	$(".projectSubNav a").hover(
	  function () {
		$(this).animate({ color: "#FFF" }, 500);
	  },
	  function () {
		$(this).animate({ color: "#039" }, 500);
	  }
	);
});*/

//Hide All Projects By Default
function hideProjects()
{
	document.getElementById("projects2009").style.display="none";
	document.getElementById("projects2008").style.display="none";
	document.getElementById("projects2007").style.display="none";
}

//Toggle Projects Upon Click
function toggleProject(number)
{
	switch (number){
	
		case 1:	$("#projectsSelect").hide("1000");
				$("#projects2008").hide("1000"); // Slide up unwanted div using jquery library preloaded from html, 1000ms = 1 second
				$("#projects2007").hide("1000");
				$("#projects2009").show("1000"); // Toggle animated animated slide up/down using standard jquery library
				break;
		
		case 2:	$("#projectsSelect").hide("1000");
				$("#projects2007").hide("1000");
				$("#projects2009").hide("1000");
				$("#projects2008").show("1000");
				break;
		
		case 3:	$("#projectsSelect").hide("1000");
				$("#projects2009").hide("1000");
				$("#projects2008").hide("1000");
				$("#projects2007").show("1000");
				break;
	}
}