var FlashDetection = new Class({
    Implements: [Options],
    options: {
        onTorpedo: $empty
    },
    initialize: function(options){
        this.setOptions(options);
        this.version = this.options.version;
        this.flag = false;
        this.init();
    },
    init: function(){
        if (isNaN(this.version)) {
            this.flag = false;
        }
        else 
            if (Browser.Plugins.Flash.version == 0) {
                this.flag = false;
            }
        if (Browser.Plugins.Flash.version < this.version) {
            this.flag = false;
        }
        else {
            this.flag = true;
        }
        this.fireEvent('onTorpedo', this.flag);
    }
});
FlashDetection.implement(new Events, new Options);


