var popstr_search = "<table height=\"100%\" width=\"100%\"><tr><td align=\"center\"><img src=\"images/ajax.gif\"/>正在查询中......</td></tr></table>";
var popstr_update = "<table height=\"100%\" width=\"100%\"><tr><td align=\"center\"><img src=\"images/ajax.gif\"/>正在更新中......</td></tr></table>";
var popstr_apply = "<table height=\"100%\" width=\"100%\"><tr><td align=\"center\"><img src=\"images/ajax.gif\"/>正在申请中......</td></tr></table>";
var popstr_delete = "<table height=\"100%\" width=\"100%\"><tr><td align=\"center\"><img src=\"images/ajax.gif\"/>正在删除中......</td></tr></table>";
var popstr_import = "<table height=\"100%\" width=\"100%\"><tr><td align=\"center\"><img src=\"images/ajax.gif\"/>正在导入......</td></tr></table>";

(function($){
	var popboxObj, opts, html;
	$.popbox = function(settings){
		opts = settings;
		_initialize();
		opts.frameWidth = opts.width;
		opts.frameHeight = opts.height;
		popboxObj = $.fn.firesbox.start(opts.content, opts);
	}
	$.popbox.setcontent = function(settings){
		opts = settings;
		_initialize();
		$.fn.firesbox.setcontent(opts.content, opts.width, opts.height);
	}
	function _initialize(){
		opts = $.extend({}, $.popbox.defaults, opts);
		opts.content = "<div class=\"popbox\"><div class=\"head\">" + opts.title + "</div><div class=\"content\" style=\"height: "+(opts.height - 32)+"px; overflow-y: auto;\">" + opts.content + "</div></div>";
	}
	function _construct(){
		html = "";
	}
	$.popbox.defaults = {
		width : 500,
		height : 200,
		zoomSpeedIn : 1,
		zoomSpeedOut : 0
	}
})(jQuery);