
var factsTips=new Array("<span class=\"coolFactTxt\">Cool Fact:<\/span>", "20", "Hurricane Names", "Each year Hurricane names are chosen from a list selected by the World Meteorological Organization.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "21", "sunlight01", "About 30 percent of all sunlight is reflected or scattered back to space by clouds, dust or the ground.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "22", "greenhouse01", "Without the greenhouse effect, the Earth&#39;s avg. surface temperature would be 0&deg; F, not 57.9&deg;.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "23", "quote01", "&quot;True science teaches, above all, to doubt and to be ignorant.&quot; &#151; Miguel de Unamuno, spanish writer (1864-1936).", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "24", "carbondioxide01", "In April 1968, the CO2 level was measured at 325.02 ppm. In June 2008, it was 387.19.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "25", "hurricanes01", "A Category 1 hurricane contains wind speeds of 74-95 mph.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "26", "temperature01", "The coldest temperature ever recorded on Earth is -129&deg;F, at Vostok on Antarctica on July 21, 1983.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "27", "temperature02", "The hottest temperature ever recorded on Earth was 136&deg; Fahrenheit, in El Aziza, Libya, on July 10, 1913.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "29", "home1", "Each year, the moon moves about 1.6 inches (4 centimeters) farther into space.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "31", "home2", "Residential energy use accounts for 16 percent of greenhouse&#45;gas emissions.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "33", "clothes1", "Drying laundry on a clothesline can reduce CO2 generated by laundry by up to 90 percent.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "34", "home3", "Screensavers do not reduce a monitor's energy use.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "105", "Coldest Temp", "The coldest recorded temp for Thursday in the cont US was -27&deg; in Cook, MN.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "106", "Hottest Temp", "The hottest recorded temp for Thursday in the cont US was 84&deg; in Alice, TX.", "<span class=\"coolFactTxt\">Cool Fact:<\/span>", "107", "Precip Amount", "The highest precipitation amount on Thursday in the cont US was 1.14 inches in Flagstaff, AZ.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "111", "Health", "Stadium close by?  Why not bicycle it?  You'll save gas and get in some good exercise.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "112", "Health", "Why not plant shrubs and trees that'll provide shading on your house.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "113", "travel", "Go bicycling to see sights while traveling without impacting the environment.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "114", "Home-Energy", "Turn off or unplug electronics when not in use.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "115", "Driving", "Keeping your tires properly inflated could earn you another 10 cents per gallon.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "116", "Health", "Did you know? Pruning trees and pulling weeds are equivalent to a dumb-bell routine.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "117", "Driving", "Over idling your engine waste fuel and increase emissions.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "118", "Driving", "Instead of making a lot of small trips, plan ahead and combine errands.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "119", "Driving", "Leaving your car at home twice a week can reduce emissions by an avg of 1,600 lbs per year.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "120", "Home", "Replace frequently used light bulbs with compact fluorescents.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "121", "Home", "Do only full loads when using your clothes washer and dryer.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "122", "Home", "When not in use, don't forget to turn off decorative outdoor natural gas lamps.", "<span class=\"hotTipTxt\">Hot Tip:<\/span>", "123", "Home", "You help Mother Earth and your community when you buy products produced locally.");

function pickTip(){
  var elements = 4;
  var totalFactsTips = (factsTips.length) / elements;
  var thisTip = Math.floor(totalFactsTips*Math.random());
  var tipType    = elements * thisTip; // cool tip or hot fact
  var tipNum     = tipType + 1; // tip number
  var tipTitle   = tipType + 2; // tip title
  var tipDescrip = tipType + 3; // tip descrip

  document.write(factsTips[tipType] + " " + factsTips[tipDescrip]);
}