function configSwfu(sessionId, btnTitle, customSettings, uploadLimit, isFree)
{
    return new SWFUpload({
        upload_url: "/upload_front_image_multiple.php",	//relative paths are not recomended (Relative to the SWF file)
        post_params: {"PHPSESSID": sessionId},

        // File Upload Settings
        file_size_limit : isFree ? uploadLimit[0] : uploadLimit[1],
        file_types : "*.jpg; *.jpeg; *.gif; *.png; *.JPG; *.JPEG; *.GIF; *.PNG",
        file_types_description : "Images",
        file_upload_limit : 0,
        file_queue_limit: 1,
        button_image_url: "/style/images/xp_new_front.gif",
        //button_image_url: "../img/button.gif",
        button_placeholder_id : "spanButtonPlaceholder",
        button_width: 190,
        button_height: 26,
        button_text : '<span class="button">'+ btnTitle +'</span>',
        button_text_style : '.button { float: left;font-weight: bold; font-size: 13px; line-height:26px; font-family: Arial, sans-serif; text-align:center; color: #ffffff;} .buttonSmall { font-size: 10pt; }',
        button_text_top_padding: 2,
        button_text_left_padding: 0,
        button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
        button_cursor: SWFUpload.CURSOR.HAND,

        // 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 : fileQueueFrontImageError	,
        file_dialog_complete_handler : fileDialogFrontImageComplete,
		upload_start_handler : uploadFrontImageStart,
        upload_success_handler : uploadFrontImageSuccess,
        

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

        custom_settings : customSettings,
        
        // Debug Settings
        debug: false
    });
	
}

