var cssSwitch = new Class({
  Implements: Options,

  version: '1.0',

  options: {
    cookie: true,
    path: './tpl/css/',
    myId: 'myStyle'
  },

  initialize: function(options){
    if(options) this.setOptions(options);
    if(val = Cookie.read(this.options.myId)){
      this.set(val);
    }
  },

  set: function(style){
    new Asset.css(this.options.path + style +'.css', {id: this.options.myId});  
    if(this.options.cookie){
      Cookie.write(this.options.myId, style, {duration:365, path: "/"});  
    }
  }
});

