var swfupload;
window.onload = function() {
	swfupload = new SWFUpload({
		upload_url: "../upload.php",
		post_params: {"PHPSESSID" : "<?php echo session_id(); ?>", "cat" : "<?php echo $cat?>"},

		// File Upload Settings
		file_size_limit : "102400",	// 100MB
		file_types : "*.jpg;*.png;*.jpeg",
		file_types_description : "Only Image Files",
		file_upload_limit : "0",
		file_queue_limit : "0",

		// Event Handler Settings (all my handlers are in the Handler.js file)
		file_dialog_start_handler : fileDialogStart,
		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,

		// Button Settings
		button_image_url : "style/swfUploadAddBtn.jpg",
		button_placeholder_id : "spanButtonPlaceholder",
		button_width: 70,
		button_height: 31,

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


		custom_settings : {
			progressTarget : "fsUploadProgress",
			cancelButtonId : "btnCancel"
		},

		// Debug Settings
		debug: false
	});
}