
// JavaScript Document
// Set up the text files to be used.

var theText = new Array() // do not change this


theText[0] = '70% of toxic waste in US landfills come from electronic items. ';

theText[1] = 'Burning a CD or DVD produces 4 times as much CO2 as printing an annual report';

theText[2] = 'Spam emails alone, have the yearly carbon footprint of 1.6 million cars driving around the globe.';
theText[3] = '4,000,000 trees are planted daily in the U.S.';
theText[4] = 'There are 12,000,000 more acres of United States forestland today than 20 years ago';
theText[5] = 'Reading the news for 30 minutes online produces more CO2 than reading a printed newspaper.';
theText[6] = 'A freight train transporting 1 ton of cargo uses 24 lbs of C02, while an airplane uses 6720 lbs!!!';
theText[7] = '57% of paper consumed in the U.S. was recovered for recycling in 2008.';
theText[8] = 'The U.S. pulp and paper industry has reduced its energy use per product unit by 42% in the last 25 years.';
theText[9] = 'As computer processing power doubles every two years, only 2% of the worlds discarded computers find their way to a second user.';

 

// do not edit anything below this line

var j = 0

var p = theText.length;

var preBuffer = new Array()

for (i = 0; i < p; i++){

preBuffer[i] = new Array()

preBuffer[i].src = theText[i]

}

var whichText = Math.round(Math.random()*(p-1));

function showText(){

//This a wrapper for the text array it can be changed if need

document.write('<p class="green">'+theText[whichText]+'</p>');

}
