var baseModule = new Class({
	
	Implements: [Options, Chain],
	
	base: '/js/modules/',
	
	initialize: function(options) {
		this.setOptions(options);
	},
	
	call: function(action){
		eval('if(typeof this.' + action.toLowerCase() + 'Action == \'function\') this.' + action.toLowerCase() + 'Action()');
	},
	
	setBase: function(b) {
		this.base = b;
	},
	
	loadJS: function(filename) {
		var Js = new Asset.javascript(this.base + filename + '.js', {
			onload: function() {
				this.callChain();
			}.bind(this)
		});
	}
});
