// JavaScript Document

function changePic() {
	var randomPics = new Array("city", "cows", "crops", "dirty_hands", "trees");
	
	var arrayLength = randomPics.length - 1;
	var randomNum = Math.floor(Math.random() * arrayLength);
	var displayPic = randomPics[randomNum];

	var pic = document.getElementById("rotate");
	pic.src = "_images/randomPics/rotating/" + displayPic + ".jpg";
	
	
}

function navigate(x) {
	switch (x) {
	case 0 :
	document.getElementById("home").src ="_images/navigation/home_up.png";
	break;
	case 1 :
	document.getElementById("whois").src ="_images/navigation/who_up.png";
	break;
	case 2 :
	document.getElementById("carbon").src="_images/navigation/carbon_up.png";
	break;
	case 3 :
	document.getElementById("whyact").src="_images/navigation/whyact_up.png";
	break;
	case 4 :
	document.getElementById("core").src="_images/navigation/core_up.png";
	break;
	case 5 :
	document.getElementById("serve").src="_images/navigation/serve_up.png";
	break;
	case 6 :
	document.getElementById("contact").src="_images/navigation/contact_up.png";
	break;
	}
}

function switchBack(x) {
	switch (x) {
	case 0 :
	document.getElementById("home").src ="_images/navigation/home_down.png";
	break;
	case 1 :
	document.getElementById("whois").src ="_images/navigation/who_down.png";
	break;
	case 2 :
	document.getElementById("carbon").src="_images/navigation/carbon_down.png";
	break;
	case 3 :
	document.getElementById("whyact").src="_images/navigation/whyact_down.png";
	break;
	case 4 :
	document.getElementById("core").src="_images/navigation/core_down.png";
	break;
	case 5 :
	document.getElementById("serve").src="_images/navigation/serve_down.png";
	break;
	case 6 :
	document.getElementById("contact").src="_images/navigation/contact_down.png";
	break;
	}
}


function getBio(x) {

	if(x == "howell") {
	clearBios();
	var howell = document.getElementById("howell");
	howell.innerHTML = "<img src='_images/bios/howell.png' height='450' alt='howell ferguson' class='bio' />" +
	"<p>Howell has practiced law in federal and state courts and administrative agencies in Florida, concentrating in administrative law, constitutional law, and environmental and employment issues.  A member of the Florida Bar, he is admitted to practice before the U.S. Supreme Court, the U.S. Courts of Appeals for the 11th and 5th Circuits, and the U.S. District Court for the Northern District of Florida.</p>" +
"<p>Howell served as an assistant attorney general of Florida from 1971 to 1972 and as a governmental assistant to Florida Governor Reubin Askew from 1973 to 1974.  He was a member of the Florida Energy Committee in 1975, a member of the Governor&rsquo;s Advisory Council on Minority Enterprise Development from 1984 to 1985, and a member of the lawyer advisory committee for the U.S. Court of Appeals for the 11th Circuit from 1988 to 1992.</p>" + 
"<p>Howell is a graduate of Yale University, the University of Florida College of Law and the London School of Economics.  He is a member of the Leadership Council of the Yale School of Forestry and Environmental Studies and the Florida Land Council.</p>";
	}
	else if (x == "kling") {
	clearBios();
	var kling = document.getElementById("kling");
	kling.innerHTML = "<img src='_images/bios/sandra.png' height='450' alt='sandra kling' class='bio' />" +
	"<p>Sandra has over 15 years experience as an environmental consultant and an educator and is currently completing a PhD in geography and environmental science at the University of South Florida.  Sandra&rsquo;s dissertation focuses on climate change science and policy, specifically carbon quantification methods used in the land use sector.  She is a subject matter expert on greenhouse gas accounting protocols whose goal is to improve the science and reduce the cost of carbon quantification in biomass and soil carbon technology.  Kling has conducted comprehensive greenhouse gas inventories for the City of Clearwater&rsquo;s government operations; a Pinellas County inventory disaggregated into the 25 municipalities located within Pinellas County; a carbon sequestration study for the University of South Florida; and greenhouse gas inventories and carbon offset project development for landowners of timberland, ranch and agriculture.</p>" + 
"<p>Sandra&rsquo;s technical capabilities include: Geographic Information System (Arc GIS 9.3 software); Remote Sensing (ENVI 4.5 software); Multivariate Statistics (SPSS software); Environmental Database Management programs.</p>" +
"<p>Sandra holds several degrees including: Master of Teaching, Chapman University, Orange, California (Graduated 2006); Master of Science, Geology (emphasis in Hydrogeology), California State University, Long Beach (Attended 1994: 12 units); Bachelor of Science, Earth Science/Geology (Outstanding Senior/Dean&rsquo;s List), California State University, Northridge, (Graduated 1991).</p>";

	}
	
	else if(x == "wakefield") {
		clearBios();
		var wakefield = document.getElementById("wakefield");
		wakefield.innerHTML = "<img src='_images/bios/john.png' height='450' alt='john wakefield' class='bio' />" +
		"<p>Prior to beginning his work at Lykes Bros., John spent nine years in the financial services industry, beginning with Wachovia in Atlanta, GA in the bank&rsquo;s large corporate finance group.  After serving in a number of other capacities at Wachovia in Atlanta, including the media and telecommunications corporate and investment banking group, John moved his family to Tampa to join Wachovia&rsquo;s regional corporate banking group. From there, John joined SunTrust Bank as a commercial banking relationship manager for Hillsborough County and after his success in this position, he moved to SunTrust&rsquo;s Wealth and Investment Management division where he worked until joining Lykes Bros. in 2007.</p>" + 
"<p>John earned an International MBA from Thunderbird in Phoenix, AZ and a bachelor&rsquo;s degree in English from the College of Charleston in Charleston,SC.  He currently serves on the Florida Aquarium Board of Directors, as well as the Board of Directors and Executive Committee for Leadership Tampa Alumni.</p>";
	}
	
}

function clearBios() {
	
	var howell = document.getElementById("howell");
	howell.innerHTML ="";
	
	var kling = document.getElementById("kling");
	kling.innerHTML =" ";
	
	var wakefield = document.getElementById("wakefield");
		wakefield.innerHTML =" ";
}
