var GetterSetter = new Class({
	get: function(m,s){
	    //dbug.log("%o::get(%o,%s)",this,m,s?s:"%s");
      if(this[m] && typeof this[m] != "function")
        return this[m];

      var g = m.charAt(0).toUpperCase();
          m = "get" + g + m.substr(1);

      if(this[m] && typeof this[m] == "function")
            return this[m](s ? s : null);
  },
  set: function(m,v){
      if(this[m] && typeof this[m] != "function")
        return this[m] = v;

      var g = m.charAt(0).toUpperCase();
          m = "get" + g + m.substr(1);

      if(this[m] && typeof this[m] == "function")
            this[m](v);

		return this;
  }
});
