// This script was supplied free by Hypergurl 
// http://www.hypergurl.com 

<!-- // JavaScript to interpolate random images into a page.

// Number of alternative images 
var ic = 8; 

// Array to hold filenames
var pic = new Array(ic); 
pic[0] = 'http://www.americanbiogascouncil.org/images/header_image1.jpg';
pic[1] = 'http://www.americanbiogascouncil.org/images/header_image2.jpg'; 
pic[2] = 'http://www.americanbiogascouncil.org/images/header_image3.jpg'; 
pic[3] = 'http://www.americanbiogascouncil.org/images/header_image4.jpg'; 
pic[4] = 'http://www.americanbiogascouncil.org/images/header_image5.jpg'; 
pic[5] = 'http://www.americanbiogascouncil.org/images/header_image6.jpg'; 
pic[6] = 'http://www.americanbiogascouncil.org/images/header_image7.jpg'; 
pic[7] = 'http://www.americanbiogascouncil.org/images/header_image8.jpg'; 
pic[8] = 'http://www.americanbiogascouncil.org/images/header_image9.jpg'; 

// Array to hold titles
var title = new Array(ic); 
title[0] = 'Click to learn more ...'
title[1] = 'Click to learn more ...'
title[2] = 'Click to learn more ...'
title[3] = 'Click to learn more ...'
title[4] = 'Click to learn more ...'
title[5] = 'Click to learn more ...'
title[6] = 'Click to learn more ...'
title[7] = 'Click to learn more ...'
title[8] = 'Click to learn more ...'

// Array to hold alternate text
var alt = new Array(ic); 
alt[0] = 'Renewable biogas could displace as much as 10-15% of fossil natural gas use by 2025.'
alt[1] = 'Over 160 anaerobic digesters are operating on farms in the U.S.'
alt[2] = 'Over 1,500 wastewater treatment plants use anaerobic digesters. 250 of them use the biogas to make electricity and/or heat.'
alt[3] = '8,200 U.S. farms could produce biogas and 13 million MWh/year of renewable electricity. Today, 160 are.'
alt[4] = 'Biogas is best made using anaerobic digestion of non-woody, organic waste (food, sewage, manure, and more).'
alt[5] = 'Our mission is to improve the climate for doing business in the biogas industry.'
alt[6] = 'Our mission is to maximize the amount of non-woody, organic waste digested to make biogas.'
alt[7] = 'A small wastewater plant processing 4.5 million gallons per day can make enough biogas to produce 100 kW of continuous electricity.'
alt[8] = 'Cow-O-Watts? The manure from about 4 cows makes enough biogas in a digester to produce 1 kilowatt of electricity.'

// Randomize function
function pickRandom(range) 
	{
	if (Math.random) return Math.round(Math.random() * (range-1)); 
	else 
		{
			var now = new Date();
			return (now.getTime() / 1000) % range;
		}
	} 

// Write out an IMG tag, using a randomly-chosen image name. 
var choice = pickRandom(ic); 

// -->
