//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]=" True or False: The sun causes Earth\'s weather."
choice1[1]=" True"
choice1[2]=" False"

question[2]=" The ozone layer that surrounds Earth (in the stratosphere) absorbs which type of light from the sun?"
choice2[1]=" Visible"
choice2[2]=" Ultraviolet (UV)"
choice2[3]=" Infrared"
choice2[4]=" None of the above"

question[3]=" How can sunlight harm people?"
choice3[1]=" Sunburn and skin cancer"
choice3[2]=" Damage to eyes, such as cataracts"
choice3[3]=" Heat exhaustion"
choice3[4]=" All of the above"

question[4]=" True or false: You can only get skin cancer if you have light-colored skin"
choice4[1]=" True"
choice4[2]=" False"

question[5]=" Which of these actions will protect you against the sun\'s harmful Ultraviolet (UV) rays?"
choice5[1]=" Wearing a sleeveless shirt or tank top"
choice5[2]=" Getting a tan"
choice5[3]=" Wearing sunscreen, sunglasses and a hat"
choice5[4]=" Only going outside during winter "

solution[1]="a"
solution[2]="b"
solution[3]="d"
solution[4]="b"
solution[5]="c"

explanation[1]="The sun is the ultimate cause of Earth\'s weather because it heats our atmosphere. The Equator, where the atmosphere is thicker, receives more heat and the poles get less. This makes the air around the Equator hot and the air around the North and South Poles cold, causing air to circulate the globe in the form of winds and storms. The sun\'s heat also evaporates water into the atmosphere, where it cools, condenses and falls as rain, hail and snow. Also, because the Earth\'s axis is tilted, some parts are facing toward the sun (and experience summer and longer days) while others are facing away from it (and experience winter and longer nights). Finally, the bending and scattering of sunlight causes amazing optical illusions in the sky, like rainbows and sunsets!"
explanation[2]="Sunlight is made up of different types of light: infrared, ultraviolet (UV) and visible. Infrared and UV light are invisible, but we can see visible light: it is made up of the spectrum of colors in a rainbow. Like water, light travels in waves. Infrared light has long wavelengths (waves are far apart and have less energy), visible light has medium wavelengths and UV light has short wavelengths (close together and more energy). UV is the most dangerous form of light because it can damage our skin. The ozone layer, a layer of ozone molecules in a layer of the atmosphere called the stratosphere, absorbs much of the UV light coming from the sun. But, some UV light penetrates this layer and reaches Earth\'s surface, where it can be absorbed by our skin and cause sunburns and skin cancer."
explanation[3]="Sunlight can have permanent effects on people\'s health. Heat exhaustion is caused when people spend too much time outside in hot temperatures and sunlight. It can be prevented by staying protected from the sun, drinking lots of water and taking frequent breaks indoors. Sunlight can also cause damage to our eyes, which can be prevented by wearing sunglasses. Also, two types of UV light from the sun cause skin damage: UVA and UVB. UVA rays have a longer wavelength and penetrate deeper into the skin. They usually cause a tan and can eventually cause sunburn. UVB rays stay near the skin’s surface and most often cause sunburn and skin cancer. Most sun damage occurs before the age of 18, so it\'s very important for kids to stay protected from too much sunlight!"
explanation[4]="Anyone can get skin cancer, no matter what his or her skin looks like. People with some features, like pale skin, light-colored hair, blue eyes, freckles and a family history of skin cancer have a higher risk of developing the disease. People who spend a lot of time outdoors are also more likely to get it. Even if you have never gotten a tan from the sun or a tanning salon, both of which can cause overexposure to UV light, you can still get sun damage to your skin."
explanation[5]="Wearing a sleeveless shirt and getting a tan offer no protection against sunlight, sunburn and skin cancer. Also, it is a myth that you can only get sunburns in the summer: sun damage can also occur in the winter, especially when you are near snow, which reflects sunlight. If you go skiing or snowboarding, you should still wear sunscreen on any skin that is exposed. Applying sunscreen of SPF 15 or higher, putting on sunglasses with UV protection and a wide-brimmed hat and wearing a long-sleeved shirt and long pants are the best way to protect your skin from sun damage any time of year."


