// Create namespace
if (at == undefined) var at = {};
if (at.nandra == undefined) at.nandra = {};

at.nandra.expander = Class.create();
at.nandra.expander.prototype = {
	initialize: function(options){
		this.expanderId = options.expanderId;
		// Get elements
		this.interval = 10000;
		this.container = $(this.expanderId);
		this.container.addClassName('expander');
		this.container.setStyle({overflow:'hidden'});
		this.originalHeight = this.container.getStyle('height');
  	},
	collapse: function(){
		this.container.setStyle({height:this.originalHeight});
		$(this.expanderId+'MoreSpan').hide();
		$(this.expanderId+'More').show();
	},
	expand: function(){
		this.container.setStyle({height:'auto'});
		$(this.expanderId+'MoreSpan').show();		
		$(this.expanderId+'More').hide();
	}
}


