var tips = new Array();

tips[0] = 'Switch off lights when not in use and change to compact fluorescent bulbs. Compact fluorescent light bulbs save $117 annually and 2,340 lbs of carbon dioxide emissions.';
tips[1] = 'Vent your dryer into your home during the winter and save $63 each year along with 286 lbs of carbon dioxide.';
tips[2] = 'Turn your water heater down to 120 degrees and upgrade it to a more efficient system.';
tips[3] = 'Raise your thermostat 5 degrees in the summer and lower it 3-5 degrees in the winter to save up to 20% annually. Upgrade to a 90% efficient heater and a 13 SEER or higher A/C system.';
tips[4] = 'Unplug electronics, battery chargers and other equipment when not in use. If all Washingtonians unplugged electronics when not in use, it would be like taking 120,000 cars off road.';
tips[5] = 'You can increase the comfort of your home while reducing your heating and cooling needs by up to 10% by investing in proper insulation and sealing air leaks.';
tips[6] = 'Wash clothes in cold water. About 90% of the energy use in a clothes washer goes to water heating.';
tips[7] = 'Run your dishwasher and clothes washer only when fully loaded. Fewer loads reduce energy and water use. Use the air-dry option instead of the heat-dry. Check and clean the dishwasher drain.';
tips[8] = 'On hot days, close the blinds on south and west facing windows. On cold days, keep them open.';
tips[9] = 'Install new, high-performance windows to improve your home’s energy performance.';

document.observe("dom:loaded", function() {
	if ($('greentip')) {
		rnd = Math.round(Math.random() * 9);
		tip = tips[rnd];
		$('greentip_top').innerHTML = '<h2>Green Tip #'+(rnd+1)+'</h2>';
		$('greentip_content').innerHTML = tip;
	}
});