var sfAssetsLibrary_Engine = function(){};

sfAssetsLibrary_Engine.prototype = {
  init : function(url)
  {
    this.url = url;
  },

  fileBrowserCallBack : function (field_name, url, type, win, culture)
  {
    tinyMCE.activeEditor.windowManager.open({
      file :      type == 'image' ? this.url+'/images_only/1/culture/'+culture : this.url+'/culture/'+culture,
      title:      'Assets',
      width :     550,
      height :    600,
      inline:     'yes',
      resizable : 'yes',
      scrollbars: 'yes'
    }, {
      input:      field_name,
      type:       type,
      window:     win
    });
    return false;
  }
}

var sfAssetsLibrary = new sfAssetsLibrary_Engine();
