
var swfu;
var swfu1;
var swfu2;
var swfu3;
$(function(){

    swfu = new SWFUpload({
        // Backend Settings

        upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/common/",
        //upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/house/",
        //post_params: {"PHPSESSID": "5onmcek5m1qsu5e5nor2tiq325"},
        //post_params: {"postion" : position},

        // File Upload Settings
        file_size_limit : "5 MB",	// 5MB
        file_types : "*.jpg;*.png;",
        file_types_description : "Images",
        file_upload_limit : "0",
        file_queue_limit : "4",

        // Event Handler Settings - these functions as defined in Handlers.js
        //  The handlers are not part of SWFUpload but are part of my website and control how
        //  my website reacts to the SWFUpload events.
        file_queue_error_handler : fileQueueError,
        file_dialog_start_handler : fileDialogStart,
        file_dialog_complete_handler : fileDialogComplete,
        upload_progress_handler : uploadProgress,
        upload_error_handler : uploadError,
        upload_success_handler : uploadSuccess,
        upload_complete_handler : uploadComplete,


        // Button Settings
        button_image_url : "http://pic.house365.com/erbu/case/pic-uploadr.png",
        button_text: '',
        button_placeholder_id : "spanButtonPlaceholder",
        button_width: 80,
        button_height: 28,
        //button_cursor: SWFUpload.CURSOR.HAND,
        button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt;} .buttonSmall { font-size: 10pt; }',
        button_text_top_padding: 0,
        button_text_left_padding: 0,

        // Flash Settings
        flash_url : "http://esf.fz.house365.com/common/js/swf/swfupload.swf",

        custom_settings : {
            upload_target : "divFileProgressContainer",
            upload_limit  :4
        },


        // Debug Settings
        debug: false
    });


    swfu1 = new SWFUpload({
        // Backend Settings

        upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/common/",
        //upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/house/",
        //post_params: {"PHPSESSID": "5onmcek5m1qsu5e5nor2tiq325"},
        //post_params: {"postion" : position},

        // File Upload Settings
        file_size_limit : "5 MB",	// 5MB
        file_types : "*.jpg;*.png;",
        file_types_description : "Images",
        file_upload_limit : "0",
        file_queue_limit : "4",

        // Event Handler Settings - these functions as defined in Handlers.js
        //  The handlers are not part of SWFUpload but are part of my website and control how
        //  my website reacts to the SWFUpload events.
        file_queue_error_handler : fileQueueError1,
        file_dialog_start_handler : fileDialogStart1,
        file_dialog_complete_handler : fileDialogComplete1,
        upload_progress_handler : uploadProgress1,
        upload_error_handler : uploadError1,
        upload_success_handler : uploadSuccess1,
        upload_complete_handler : uploadComplete1,


        // Button Settings
        button_image_url : "http://pic.house365.com/erbu/case/pic-uploadr.png",
        button_text: '',
        button_placeholder_id : "spanButtonPlaceholder1",
        button_width: 80,
        button_height: 28,
        //button_cursor: SWFUpload.CURSOR.HAND,
        button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt;} .buttonSmall { font-size: 10pt; }',
        button_text_top_padding: 0,
        button_text_left_padding: 0,

        // Flash Settings
        flash_url : "http://esf.fz.house365.com/common/js/swf/swfupload.swf",

        custom_settings : {
            upload_target : "divFileProgressContainer",
            upload_limit  : 4
        },


        // Debug Settings
        debug: false
    });


    swfu2 = new SWFUpload({
        // Backend Settings

        upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/common/",
        //upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/house/",
        //post_params: {"PHPSESSID": "5onmcek5m1qsu5e5nor2tiq325"},
        //post_params: {"postion" : position},

        // File Upload Settings
        file_size_limit : "5 MB",	// 5MB
        file_types : "*.jpg;*.png;",
        file_types_description : "Images",
        file_upload_limit : "0",
        file_queue_limit : "4",

        // Event Handler Settings - these functions as defined in Handlers.js
        //  The handlers are not part of SWFUpload but are part of my website and control how
        //  my website reacts to the SWFUpload events.
        file_queue_error_handler : fileQueueError2,
        file_dialog_start_handler : fileDialogStart2,
        file_dialog_complete_handler : fileDialogComplete2,
        upload_progress_handler : uploadProgress2,
        upload_error_handler : uploadError2,
        upload_success_handler : uploadSuccess2,
        upload_complete_handler : uploadComplete2,


        // Button Settings
        button_image_url : "http://pic.house365.com/erbu/case/pic-uploadr.png",
        button_text: '',
        button_placeholder_id : "spanButtonPlaceholder2",
        button_width: 80,
        button_height: 28,
        //button_cursor: SWFUpload.CURSOR.HAND,
        button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt;} .buttonSmall { font-size: 10pt; }',
        button_text_top_padding: 0,
        button_text_left_padding: 0,

        // Flash Settings
        flash_url : "http://esf.fz.house365.com/common/js/swf/swfupload.swf",

        custom_settings : {
            upload_target : "divFileProgressContainer",
            upload_limit  : 4
        },


        // Debug Settings
        debug: false
    });

    swfu3 = new SWFUpload({
        // Backend Settings

        upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/common/",
        //upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/house/",
        //post_params: {"PHPSESSID": "5onmcek5m1qsu5e5nor2tiq325"},
        //post_params: {"postion" : position},

        // File Upload Settings
        file_size_limit : "5 MB",	// 5MB
        file_types : "*.jpg;*.png;",
        file_types_description : "Images",
        file_upload_limit : "0",
        file_queue_limit : "4",

        // Event Handler Settings - these functions as defined in Handlers.js
        //  The handlers are not part of SWFUpload but are part of my website and control how
        //  my website reacts to the SWFUpload events.
        file_queue_error_handler : fileQueueError3,
        file_dialog_start_handler : fileDialogStart3,
        file_dialog_complete_handler : fileDialogComplete3,
        upload_progress_handler : uploadProgress3,
        upload_error_handler : uploadError3,
        upload_success_handler : uploadSuccess3,
        upload_complete_handler : uploadComplete3,


        // Button Settings
        button_image_url : "http://pic.house365.com/erbu/case/pic-uploadr.png",
        button_text: '',
        button_placeholder_id : "spanButtonPlaceholder3",
        button_width: 80,
        button_height: 28,
        //button_cursor: SWFUpload.CURSOR.HAND,
        button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt;} .buttonSmall { font-size: 10pt; }',
        button_text_top_padding: 0,
        button_text_left_padding: 0,

        // Flash Settings
        flash_url : "http://esf.fz.house365.com/common/js/swf/swfupload.swf",

        custom_settings : {
            upload_target : "divFileProgressContainer",
            upload_limit  : 4
        },


        // Debug Settings
        debug: false
    });




    swfu5 = new SWFUpload({
        // Backend Settings

        upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/common/",
        //upload_url: "http://"+ GB_CITY +".zsb.house365.com/pic/house/",
        //post_params: {"PHPSESSID": "5onmcek5m1qsu5e5nor2tiq325"},
        //post_params: {"postion" : position},

        // File Upload Settings
        file_size_limit : "5 MB",	// 5MB
        file_types : "*.jpg;*.png;",
        file_types_description : "Images",
        file_upload_limit : "0",
        file_queue_limit : "2",

        // Event Handler Settings - these functions as defined in Handlers.js
        //  The handlers are not part of SWFUpload but are part of my website and control how
        //  my website reacts to the SWFUpload events.
        file_queue_error_handler : fileQueueError5,
        file_dialog_start_handler : fileDialogStart5,
        file_dialog_complete_handler : fileDialogComplete5,
        upload_progress_handler : uploadProgress5,
        upload_error_handler : uploadError5,
        upload_success_handler : uploadSuccess5,
        upload_complete_handler : uploadComplete5,


        // Button Settings
        button_image_url : "http://pic.house365.com/erbu/case/pic-uploadr.png",
        button_text: '',
        button_placeholder_id : "spanButtonPlaceholder5",
        button_width: 80,
        button_height: 28,
        //button_cursor: SWFUpload.CURSOR.HAND,
        button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt;} .buttonSmall { font-size: 10pt; }',
        button_text_top_padding: 0,
        button_text_left_padding: 0,

        // Flash Settings
        flash_url : "/swfupload.swf",

        custom_settings : {
            upload_target : "divFileProgressContainer",
            upload_limit  : 2
        },


        // Debug Settings
        debug: false
    });
})



/*window.onload = function () {



 };*/