var Chart = {

  Swf: new Class({

    Implements: Options,

    initialize: function(options){
      this.setOptions(options);
    },

    embed: function(replaceElemId, width, height, flashvars, par){
      swfobject.embedSWF(this.options.swfUrl, replaceElemId, width, height, this.options.swfVersion,
        this.options.xiSwfUrl, flashvars, par);
    }

  }),

  show: function(swf, elemId, width, height, dataFileUrl){
    swf.embed(elemId, width, height, { 'data-file': dataFileUrl.replace(/&/g, '%26') }, {});
  }

};

