function MyAccordian(fx_time,prefix) {
	this.current_item = false;
	this.prefix = prefix
	this.fx_time = fx_time;
}
MyAccordian.prototype.getMoreInfoDiv = function(num) {
	/*var outer = $(outer_div_id);
	var elems = outer.getElementsByClassName('more_info');
	return elems[0].id;*/
	return $(this.prefix + 'more_' + num);
}
MyAccordian.prototype.getHandle = function(num) {
	return $(this.prefix + 'handle_' + num);
}
MyAccordian.prototype.handleStyle = function(num,on_off) {
	var handle = this.getHandle(num);
	if(on_off == 'on')
		handle.setStyle({color: '#000'});
	else
		handle.setStyle({color: '#000'});
}
MyAccordian.prototype.showOne = function(num) {
	var info_id = this.getMoreInfoDiv(num);
	new Effect.BlindDown(info_id,{duration: this.fx_time / 1000});
	this.current_item = num;
	this.handleStyle(num,'on');
}
MyAccordian.prototype.hideOne = function(num) {
	var info_id = this.getMoreInfoDiv(num);
	new Effect.BlindUp(info_id,{duration: this.fx_time / 1000});
	this.current_item = false;
	this.handleStyle(num,'off');
}
MyAccordian.prototype.hideAndShow = function(hide_num,show_num) {
	var hide_info = this.getMoreInfoDiv(hide_num);
	var show_info = this.getMoreInfoDiv(show_num);
	new Effect.Parallel(
		[new Effect.BlindUp(hide_info,{sync: true}),
		new Effect.BlindDown(show_info,{sync: true})],
		{duration: this.fx_time / 1000});
	this.current_item = show_num;
	this.handleStyle(hide_num,'off');
	this.handleStyle(show_num,'on');
}
MyAccordian.prototype.showMore = function(num) {
	if(this.current_item == num)
		this.hideOne(num);
	else if(this.current_item)
		this.hideAndShow(this.current_item,num);
	else
		this.showOne(num);
}
