//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]=" What is the farthest distance an adult monarch butterfly will migrate?"
choice1[1]=" 3,000 miles"
choice1[2]=" 500 miles"
choice1[3]=" 1,000 miles"
choice1[4]=" 300 miles"

question[2]=" How do monarchs know which direction to fly in during migration?"
choice2[1]=" By using a compass"
choice2[2]=" By the amount of daylight"
choice2[3]=" By air temperature"
choice2[4]=" b and c."

question[3]=" What is the only plant that monarch caterpillars eat?"
choice3[1]=" Daisies"
choice3[2]=" Roses"
choice3[3]=" Milkweed"
choice3[4]=" None of the above"

question[4]=" True or False: Cold temperatures are harmful to monarchs."
choice4[1]=" True"
choice4[2]=" False"


question[5]=" Which human activities threaten the health and survival of monarch butterflies?"
choice5[1]=" Habitat loss"
choice5[2]=" Pesticides and insecticides"
choice5[3]=" Changes in climate and weather"
choice5[4]=" All of the above"

solution[1]="a"
solution[2]="d"
solution[3]="c"
solution[4]="b"
solution[5]="d"

explanation[1]="Up to 3,000 miles! Monarchs spend their summers in Canada and northern United States. But each fall, they migrate south for the winter to avoid cold temperatures and winter storms. Those that fly over the eastern U.S. end in the oyamel fir forests (named after a type of tree) in Mexico, which are unique forests found at high elevations above 10,000 feet. Adult monarchs that start in the Rocky Mountains in the western U.S. migrate southwest to the Pacific Groves of California. Monarchs can travel between 50 to 100 miles per day during fall and spring migration! It can take them nearly two months to reach their destination. The butterflies that migrate in the fall and live through winter are not the same ones that migrate back up north in the spring. Instead, these adults lay eggs in March, which metamorphosize (change body structure) into adults and migrate back to the U.S. and Canada. So, no single butterfly migrates in both fall and spring!"
explanation[2]="Scientists don\'t know exactly how monarchs find their way from Canada, through the United States, into Mexico, and back again. But they think that the butterflies use signals from the environment. Most likely, fall migration is triggered by cooling fall temperatures and decreasing amount of daylight (in late August, when there are three minutes less of sunlight in Canada and the northern U.S.). Spring migration is probably triggered by warming temperatures and increasing length of day. Other cues could be the magnetic energy of Earth\'s poles or changes in plant foliage and flowers."
explanation[3]="The only plant that monarch caterpillars (also known as larva) eat is milkweed. There are over 100 species of milkweed plants in North America, but some are very rare or endangered. Adult monarch butterflies eat nectar from flowers, and a variety of other things, including rotting fruit, mud, animal waste, and even dead animals!"
explanation[4]="In the mountains of Mexico, where many monarchs spend their winters, the nighttime temperatures can be cold, sometimes below freezing. But this isn\'t harmful for the monarchs, as long as the temperatures don\'t get too cold, and as long as the butterflies stay dry. Monarchs are cold-blooded (their body temperature adjusts to the outside temperature instead of staying constant), so they do not need to use a lot of energy when it\'s cold outside. They eat a lot before winter and store fat so they don\'t eat much, or at all, during winter. Also, because cold temperatures slow down the monarchs\' metabolism, the generations that live through winter live longer than those that live through spring and summer!"
explanation[5]="Monarchs depend on unique forest and field ecosystems to survive. When these areas are cleared and roads and buildings are built in their place, monarch habitat, where they find food, water and shelter, is lost. Another threat to monarchs is pesticides and insecticides that are sprayed on or near the butterflies\' habitat. These chemicals can kill the plants that monarchs eat, or harm the butterflies themselves. Finally, because monarchs are adapted to survive in very specific weather conditions, future changes in climate (changes in weather over time) reduce the chances of monarchs surviving long winters. You can help by planting a butterfly garden, participating in citizen science projects, and teaching others about monarch conservation. Visit the What You Can Do page to learn more!"

