// JavaScript Document
var flowersname = new Array;
var flowersdescription = new Array;
var flowersimage = new Array;
var flowerCount = 0;

//the images are in /images/rotating/
//all of the collections rotation images
//0
flowersname[flowerCount] = "";
flowersdescription[flowerCount] = "<em>Ponciris trifoliata</em>, the trifoliate orange, is a strong citrus tree with truly dangerous thorns that originated from China but has become naturalized here.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//1
flowersname[flowerCount] = "Rhododendron maximum";
flowersdescription[flowerCount] = "<em>Rhododendron maximum</em>, the rosebay rhododendron has a range that covers most of the smoky mountains.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//2
flowersname[flowerCount] = "Hypericum reductum ";
flowersdescription[flowerCount] = "<em>Hypericum reductum</em> is the smallest of species of native St. John's wort at the Arboretum.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//3
flowersname[flowerCount] = "Befaria racemosa";
flowersdescription[flowerCount] = "These are the sticky strap-like petals of the tar flower, <em>Befaria racemosa</em>, found in the maritime strand collection.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//4
flowersname[flowerCount] = "Amorpha fruiticosa";
flowersdescription[flowerCount] = "<em>Amorpha fruiticosa</em>, false indigo, is common along the wetland banks of Alabama's creeks and rivers.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//5
flowersname[flowerCount] = "Halesia diptera";
flowersdescription[flowerCount] = "The two-winged silverbell, <em>Halesia diptera</em>, shown here, has recently been complemented by the addition of its sister species <em>Halesia magnaflora</em>.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//6
flowersname[flowerCount] = "Rhododendron minus";
flowersdescription[flowerCount] = "<em>Rhododendron minus</em>, the dwarf rhododendron blooms here at the edge of a fern filled lowland habit.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
/*
flowersname[flowerCount] = "Aristolochea tomentosa";
flowersdescription[flowerCount] = "The pipe vine has the ability to tighten its bloom on a pollinator, a small fly, to make sure the process is effective before releasing it.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
*/

//7
flowersname[flowerCount] = "Pitcher Plant Bog";
flowersdescription[flowerCount] = "A view of the pitcher plant bog in early spring shows several species of pitcher plants beginning to bloom.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//8
flowersname[flowerCount] = "Acer rubrum";
flowersdescription[flowerCount] = "Clusters of blooms from the red maple, <em>Acer rubrum</em>, one of the first trees to show color each spring.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
/*
flowersname[flowerCount] = "Metasequoia glyptostroboides";
flowersdescription[flowerCount] = "The dawn redwood is one of the tallest trees in the Arboretum.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
*/

//9
flowersname[flowerCount] = "Juniperus virginiana";
flowersdescription[flowerCount] = "Bluish berries of the eastern red cedar, <em>Juniperus virginiana</em>, appear in the fall.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
/*
flowersname[flowerCount] = "Hydrangea quercifolia";
flowersdescription[flowerCount] = "Leaves of the oak leaf hydrangea emerge from their buds in early spring. ";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
*/

//10
flowersname[flowerCount] = "Acer rubrum";
flowersdescription[flowerCount] = "Samara of the red maple, <em>Acer Rubrum</em>, appear in March";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//11
flowersname[flowerCount] = "Aesculus pavia";
flowersdescription[flowerCount] = "<em>Aesculus pavia</em>, the red buckeye, blooms in spring just as the leaves unfold";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//12
flowersname[flowerCount] = "Illicium floridanum";
flowersdescription[flowerCount] = "The leaf of the Florida anise tree, <em>Illicium floridanum</em>, can be broken open to release its strong scent of liquorice. The flowers were used by Indians for fishing.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
/*
flowersname[flowerCount] = "Carya tomentosa";
flowersdescription[flowerCount] = "A mockernut hickory is leafing out in early spring.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
*/

//13
flowersname[flowerCount] = "Quercus shumardii";
flowersdescription[flowerCount] = "A shumard oak, <em>Quercus shumardii</em>, have an early growth with reduced chlorophyll levels showing us a preview of color we will see again in the fall.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//14
flowersname[flowerCount] = "Aesculus pavia";
flowersdescription[flowerCount] = "Fruit of the red buckeye, <em>Aesculus pavia</em>, are a thin leathery covering over seeds called buckeyes that some carry around for luck.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
/*
flowersname[flowerCount] = "Befaria racemosa";
flowersdescription[flowerCount] = "The tar flower is a medium sized flowering shrub from the coastal hammock habitat. The white strap-like pedals of its flowers are covered with sticky tricombs.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
*/

//15
flowersname[flowerCount] = "Cephalanthus occidentalis";
flowersdescription[flowerCount] = "Button bush, <em>Cephalanthus occidentalis</em>, is a large wetland shrub. It leafs out in late spring and bursts into bloom around the Fourth of July like a fireworks display.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//16
flowersname[flowerCount] = "Hypericum frondosum";
flowersdescription[flowerCount] = "The Golden St. John's Wort, <em>Hypericum frondosum</em>, is named for its full yellow blooms that attract many pollinators in summer.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
/*
flowersname[flowerCount] = "Leucothoe axilaris";
flowersdescription[flowerCount] = "Doghobble is common in the Smoky Mountains where it grows along streams and lakes.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

flowersname[flowerCount] = "Metasequoia glyptostroboides";
flowersdescription[flowerCount] = "The Dawn Redwood at a height of over 100 feet, is certainly the most conspicuous nonnative in our collection. It was unknown to science until it was found in China in 1943.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
*/

//17
flowersname[flowerCount] = "Quercus alba";
flowersdescription[flowerCount] = "The regal white oak, <em>Quercus alba</em>, stands straight and true throughout our woods. The structure of its wood helps in blocking out rot after injury.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;

//18
flowersname[flowerCount] = "Broussonetia paperifera";
flowersdescription[flowerCount] = "A cluster of leaves from an immature Paper Mulberry, <em>Broussonetia paperifera</em>, show the various leaf shapes characteristic of this tree.";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;


/* Template for adding more pictures
flowersname[flowerCount] = "";
flowersdescription[flowerCount] = "";
flowersimage[flowerCount] = "collections/"+flowerCount+".png";
flowerCount++;
*/
//this will get the random number
var num = getRandomNumber();
function getRandomNumber(){
	return Math.floor(Math.random() * flowerCount)
}