var swfu;
//$(function() {
var url = "http://esfadmin.house365.com/script/";

	swfu = new SWFUpload({
		// Backend Settings
		upload_url:  "http://esfadmin.house365.com/upload.php",
		//post_params: {"PHPSESSID": "5onmcek5m1qsu5e5nor2tiq325"},
		//post_params: {"postion" : position},

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

		// 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 : url + "js/swf/btn61x22.png",
		button_placeholder_id : "spanButtonPlaceholder",
		button_width: 61,
		button_height: 22,
		button_cursor: SWFUpload.CURSOR.HAND,
		
		// Flash Settings
		flash_url : url + "js/swf/swfupload.swf",

		custom_settings : {
			upload_target : "divFileProgressContainer",
			upload_limit  : 0,
                        progressTarget : "fsUploadProgress",
		        cancelButtonId : "btnCancel"
		},
		
		
		// Debug Settings
		debug: false
	});

//})
window.onload = function () {
	
};
