Topic: Create a local version of pluploader


I take some hours to set up my plupload in one page, and now, I would like to create an instance of plupload to do this work just one time.

To explain more, I would like to define a default configuration and default action on event in a class.
In place of create an object of plupload, I would like to create an object of this new class, and be able to change it and to add new function for events.

Example :
Every time we click on browse, we upload files. During upload, I put a fixed div over everything else (to prevent the user to touch anything) and I put my percentage in this div.

So all events got stuff to do.
But if I want to extends these methods, what happen, and how to do that ?
I would like to know if you have any stuff like that in your files.

Sorry if it's more a javascript question, I'm not very familiar with jquery, and if someone already did something like that, it's often easier to understand how to do something with a sample.

My actual code :

$(function() {
    var uploader = new plupload.Uploader({
        runtimes : 'flash,silverlight,html5,gears,browserplus,html4',
        browse_button : 'btn_select_files',
        max_file_size : '1000mb',
        chunk_size : '2mb',
        url : '/upload_file/uploadFile/image',
        flash_swf_url : '/js/plupload/plupload.flash.swf',
        silverlight_xap_url : '/js/plupload/plupload.silverlight.xap',
        filters : [
            {title : "Video files", extensions : "mp4,avi,mov,jpg,gif,png"}
    uploader.bind('Init', function(up, params) {
        $('#filelist').html("<div>Current runtime: " + params.runtime + "</div>");

    uploader.bind('FilesAdded', function(up, files) {

    uploader.bind('UploadProgress', function(up, file) {
        if(file.status != plupload.DONE){
            $('#screen_lock h1').html( + "<br />" + file.percent + "%");
    uploader.bind('UploadFile', function(up, files) {
    uploader.bind('FileUploaded', function(up, file) {

Thank you