var _is_error;
var _m_result;
var _l_url = "bbs_01.htm";
dw('<style type="text/css">\
#card_zone{width:100%;height:100%;position:relative;border:5px solid #daf0fb;top:-7px !important;left:-7px !important;top:-5px;left:-5px; background:#FFF;}\
</style>');
dw('<div id="user_card" style="background:#DFDFDF;width:0px; height:0px;top:0px;left:0px;position:absolute;display:none;z-index:100;">\
	<div id="card_zone"><iframe frameborder="0" width="100%" height="100%" src="' + _l_url + '" scrolling="no" id="iframe_user_card"></iframe></div>\
</div>');
function message(){
	this.act	= "";
	this.val	= Array();
	this.URI	= "http://bbs.peoplexz.com";
	var _AJAX = new _ajax();
	_AJAX.init();
	_AJAX.setPost();
	this.set_act = function(act){
		this.act = act;
	}
	this.set_val = function(v){
		this.val.push(encodeURIComponent(v));
	}
	this.execute = function(callback){
		if (typeof(callback) != "function"){
			return false;
		}
		if (this.act == ""){
			return false;
		}
		_AJAX.open(this.URI + "?act=" + this.act + "&val=" + this.val.join("|") + "&" + Math.random(), function(){
			_is_error = $t("info",this.responseXML)[0].firstChild.nodeValue;
			var rt = $t("result",this.responseXML)[0].firstChild.nodeValue;
			if (_is_error == "1" && !isNull(rt)){
				eval("_m_result = " + rt);
			}
			callback.apply();
		});
		_AJAX.send();
		this.clear();
	}
	this.clear = function(){
		this.val = Array();
	}
}
{
	var user_card = new Object();
	user_card.w1 = "250px";		//名片
	user_card.h1 = "108px";
	user_card.w2 = "270px";		//发送邀请
	user_card.h2 = "204px";
	user_card.w3 = "197px";		//新消息
	user_card.h3 = "112px";
	user_card.obj = $("user_card");
	user_card.ifm = $("iframe_user_card");
	user_card.dcmt = (document.documentElement) ? document.documentElement : document.body;
	user_card.reset = function(){
		$("iframe_user_card").src = _l_url;
		user_card.obj.style.display = 'none';
		document.body.onclick = null;
	}

	user_card.show_card = function(_this, uid){
		this.reset();
		var pos = getXY(_this);
		user_card.obj.style.top = pos.bottom + 'px';
		user_card.obj.style.left = pos.right + 'px';
		user_card.obj.style.width = this.w1;
		user_card.obj.style.height = this.h1;
		user_card.obj.style.display = '';
		if (pos.right + user_card.obj.offsetWidth > user_card.dcmt.clientWidth + user_card.dcmt.scrollLeft){
			user_card.obj.style.left = pos.left - user_card.obj.offsetWidth + 'px';
		}
		if (pos.top + user_card.obj.offsetHeight > user_card.dcmt.clientHeight + user_card.dcmt.scrollTop){
			user_card.obj.style.top = pos.top - user_card.obj.offsetHeight + 'px';
		}
		if (!isNull(_this.name) && _this.name == "bloguser"){
			uid += "&s=1";
		}
		$("iframe_user_card").src = "bbs_01.php?uid=" + uid;
	}


}
function showHid(DT,ID){
	var oDiv = $(ID);
	oDiv.style.display = (oDiv.style.display == "none")?"inline":"none";
 }