//change 5 to the total number of questions
var total=5
var question=new Array()
for (i=1;i<=total+1;i++){
temp="choice"+i+"=new Array()"
eval(temp)
}
var solution=new Array()
var explanation=new Array()

/*Below lists the questions, its choices,the solution,  and finally the explanation to each question. Follow the exact format below when editing the questions. You may have as many questions as needed.*/

question[1]=" Which of these ecosystems is not a type of wetland?"
choice1[1]=" Marsh"
choice1[2]=" Swamp"
choice1[3]=" Ocean"
choice1[4]=" Bog"

question[2]=" Which animal can create a wetland?"
choice2[1]=" Beaver"
choice2[2]=" Turtle"
choice2[3]=" Pelican"
choice2[4]=" Alligator"

question[3]=" How is a wetland like a sponge?"
choice3[1]=" It is yellow"
choice3[2]=" It soaks up water"
choice3[3]=" It cleans"
choice3[4]=" b and c"

question[4]=" Mangrove swamps, found along tropical coasts, help to protect coastal cities and towns from which type of weather?"
choice4[1]=" Tornadoes"
choice4[2]=" Hurricanes"
choice4[3]=" Winter Storms"
choice4[4]=" Thunderstorms"

question[5]=" True or false: Frogs and other amphibians can be indicators of pollution in wetlands."
choice5[1]=" True"
choice5[2]=" False"
choice5[3]="  "
choice5[4]="  "

solution[1]="c"
solution[2]="a"
solution[3]="d"
solution[4]="b"
solution[5]="a"

explanation[1]="A wetland is an ecosystem found where land and water meet. All wetlands have three things in common: 1) water, 2) special soil (hydric soil) that holds water and 3) water-loving plants (called hydrophytes). Examples of wetlands include marshes, swamps and bogs. Marshes and swamps can be found along rivers, streams, lakes and oceans. Marshes contain water - freshwater (without salt), salt water (from ocean tides) or both - for much of the year. The water provides nutrients for many plants, such as grasses and sedges, and animals to grow. Swamps are usually deeper and contain water (freshwater or salt water) during part of the year. Swamp soil is very rich and supports woody plants, such as cypress, mangrove and maple trees, to grow. Bogs are very unique wetlands - they are found in land carved out by former glaciers and get their water from rainfall. The water in bogs is very acidic; only certain plants like peat moss can grow. The ocean is a different ecosystem than a wetland, but can provide salt water to coastal wetlands."
explanation[2]="All of these animals live in wetlands; however the beaver is the only one that can create wetlands. Beavers build dams that stop flowing water in streams and rivers. The resulting pond that forms upstream provides habitat for new plants, mammals, fish, amphibians and birds. It also provides deeper water in which beavers built their tee-pee shaped home, called a lodge."
explanation[3]="A wetland acts like a sponge: the plants filter out pollution from dirty water before the water flows streams, rivers, lakes and oceans. Wetlands soak up excess water, preventing flooding from rainstorms and hurricanes. They also slow the speed of flowing water, allowing more water to absorb into the ground and be used by plants. They have other functions too, such as providing food, water, shelter and breeding grounds to plants and animals."
explanation[4]="Coastal wetlands act as a barrier between the sea and the land and can help lessen the damage done by hurricanes. For example, mangrove swamps help to protest cities and towns from flooding and storm surge caused by hurricanes. Their finger-like roots keep sediment (soil) in place and help reduce the strength of winds, waves and flooding hitting the coast. Coastal wetlands also serve as nurseries of the coast, providing important breeding grounds and habitat for young fish and invertebrates. Unfortunately, coastal erosion - the wearing away of shorelines - is increasing, and buildings and roads have ruined many mangrove swamps and other coastal wetlands. "
explanation[5]="Amphibians such as frogs, toads and salamanders, are often called indicator species because they tell scientists about the health of the environment. They are the first species to be harmed by pollutants. Because they spend all or part of their life cycles in water and many breathe and drink through their skin, they are sensitive to water pollution."

