if (!console) {
	var console = {};
	console.log = function() { /* alert(log) */ };
}

window.addEvent('domready', function() {
	fade_init();
	hide_content();
});

function fade_init() {
	//colorFade('divid','background','ece7b4','f9bcbc',25,30)
	$$('li.fader a').each(function(a) {
		a.addEvent('mouseover', function() {
			var id = this.getProperty('id');
			colorFade(id,'background','66ff00','66ff00',1,1);
		});
		a.addEvent('mouseout', function() {
			var id = this.getProperty('id');
			colorFade(id,'background','66ff00','4a011b',25,30);
		});
	});
}
function hide_content() {
/*
display - (integer: defaults to 0) The index of the element to show at start (with a transition).
show - (integer: defaults to 0) The index of the element to be shown initially.
height - (boolean: defaults to true) If set to true, a height transition effect will take place when switching between displayed elements.
width - (boolean: defaults to false) If set to true, a width transition will take place when switching between displayed elements.
opacity - (boolean: defaults to true) If set to true, an opacity transition effect will take place when switching between displayed elements.
fixedHeight - (boolean: defaults to false) If set to false, displayed elements will have a fixed height.
fixedWidth - (boolean: defaults to false) If set to true, displayed elements will have a fixed width.
alwaysHide - (boolean: defaults to false) If set to true, it will be possible to close all displayable elements. Otherwise, one will remain open at all time.
width - (boolean: defaults to false) If set to true, it will add a width transition to the accordion. Warning: css mastery is required to make this work!	
*/

	var $togglers = $$('.left_headers','.right_headers', {
		alwaysHide: true
	});
	var accordion = new Accordion($togglers, $togglers.getNext());
/*	

	var $next = $$('.left_headers','.right_headers').getNext();
	var next_height = $next.getStyle('height');
	
	$next.each(function(a,i) {
		if (i != 0) a.fade('out').setStyle('height',0)
	});
	
	$$('.left_headers','.right_headers').addEvent('click',function() {		
		console.log($next, next_height);
	});
*/

}

