/*
document.observe("dom:loaded", init);


var ListPattern = Class.create({
	initialize: function() {
		this.tableElementArray;
		this.setListPattern();
	},

	setListPattern: function() {
		this.tableElementArray = $('middle').childElements()[2].childElements()[1].childElements()[0].childElements();
		for (i = 0; i <= this.tableElementArray.length; i++) {
			//alert(i);
			//this.tableElementArray[i].observe('mouseover', this.onmouseover.bindAsEventListener(this, i));
			Event.stopObserving(this.tableElementArray[i]);
			if (i % 2 == 0) {
				this.tableElementArray[i].setStyle({ backgroundColor: '#ededed' });
			} else {
				this.tableElementArray[i].setStyle({ backgroundColor: '#fff' });
			}
		}
	}
});

function init() {
	window.listPattern = new ListPattern();
}*/ 

document.observe("dom:loaded", init);
//window.onload = init;

var ColorChanger = Class.create({
	initialize: function() {
		$$('h2').each((function(element) { element.setStyle({ backgroundColor: $('body').getStyle('backgroundColor') }) }));
	}
});

function init() {
	window.colorChanger = new ColorChanger();
}
