var swfu;

var swfu_settings = {
	flash_url : "http://s3.amazonaws.com/s3.rollip.com/swfupload2201.swf",
	upload_url: upload_url,
	post_params: {
    "success_action_status" : "201",
  	"AWSAccessKeyId" : aws_access_key_id,
    "policy" : s3_policy,
    "signature" : s3_policy_signature,
  	"acl" : "public-read"
	},
	file_size_limit : "20 MB",
	file_types : "*.jpg;*.Jpg;*.jPg;*.jpG;*.JPG;*.JPg;*.jPG;*.gif;*.png;*.bmp;*.jpeg;*.gif;*.png;*.bmp;*.jpeg;",
	file_types_description : "Image Files",
	file_post_name : "File",
	file_upload_limit : 0,
	file_queue_limit : 0,
	http_success : [201, 204],
	debug: false,

	button_image_url: (init ? "/images/upload-photos.jpg" : "/images/upload-more-photos.gif"),
	button_width: "214",
	button_height: "107",
	button_placeholder_id: "spanButtonPlaceHolder",
	
	button_window_mode : SWFUpload.WINDOW_MODE.OPAQUE,
	button_cursor : SWFUpload.CURSOR.HAND,
	button_action : SWFUpload.BUTTON_ACTION.SELECT_FILE,
	 
	// The event handler functions are defined in handlers.js
	file_queued_handler : fileQueued,
	file_queue_error_handler : fileQueueError,
	file_dialog_complete_handler : fileDialogComplete,
	upload_start_handler : uploadStart,
	upload_progress_handler : uploadProgress,
	upload_error_handler : uploadError,
	upload_success_handler : uploadSuccess,
	upload_complete_handler : uploadComplete,
	queue_complete_handler : queueComplete
};