
	var swfu;
$(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 : "3",

		// 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/yjfk/ppic2.png",
		button_text: '',
		button_placeholder_id : "spanButtonPlaceholder",
		button_width: 39,
		button_height: 38,
		//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  : 3
		},
		
		
		// Debug Settings
		debug: false
	});
})



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