	/**
	 * Any class can be extended from this class, 
	 * holding methods for working with options etc. 
	 * 
	 * @copyright 	Copyright 2009-2010 Scarimango (www.scarimango.de)
	 */
	
	var SimpleClass = new Class({
		Implements: Events,
		
		/** Variables */
		_options: null,
						
		/** Constructor */
		initialize: function(options) {
			this._options = options;
			if(this._options == null)
				this._options = new Array();
		},
		
		/** Sets default value, if not already set */
		setDefault: function(name, value) {
			if(!this.get(name))
				this.set(name, value);
		},
		
		/** Returns certain option */
		get: function(name) {
			return this._options[name];
		},
		
		/** Sets certain option */
		set: function(name, value) {
			this._options[name] = value;
		}
		
	});

