$(function() {
	var swfu = null;
			var Settings ={
				upload_url: current_domain+"/javascript.php?part=upload",
				//post_params: {"PHPSESSID": sid, "dopost" : ""},
				file_size_limit : "2 MB",	// 2MB
				file_types : "*.jpg; *.jpeg; *.gif; *.png",
				file_types_description : " 选择 JPG/JPEG/GIF/PNG 格式图片",
				file_upload_limit : file_num,

				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,
				upload_complete_handler : uploadComplete,

				button_image_url : current_domain+'/template/default/images/image_upload.png',
				button_placeholder_id : "spanButtonPlaceholder",
				button_width: 85,
				button_height: 30,
				button_text : '<span class="button">图片上传 <span class="buttonSmall"></span></span>',
				button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12pt; } .buttonSmall { font-size: 10pt; }',
				button_text_top_padding: 4,
				button_text_left_padding: 25,
				button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
				button_cursor: SWFUpload.CURSOR.HAND,
				flash_url :  current_domain+'/template/default/js/swfupload/swfupload.swf',
				custom_settings : {
					upload_target : "divFileProgressContainer",
					thumbnails_target:"thumbnails"
				},
				debug: false
			};
	function initSWF(){
		swfu=new SWFUpload(Settings);
	}

initSWF();
})