//及时消息开始
	var newMessageRemind={
		_step: 0,
		_title: this.document.title,
		_timer: null,
		//显示新消息提示
		show:function(){
			var temps = newMessageRemind._title.replace("【　　　】", "").replace("【新消息】", "");
			 newMessageRemind._timer = setTimeout(function() {
				newMessageRemind.show();
				//这里写Cookie操作
				newMessageRemind._step++;
				if (newMessageRemind._step == 3) { newMessageRemind._step = 1 };
				if (newMessageRemind._step == 1) { this.document.title = "【　　　】" + temps };
				if (newMessageRemind._step == 2) { this.document.title = "【新消息】" + temps };
			}, 800);
			return [newMessageRemind._timer, newMessageRemind._title];
		},
		//取消新消息提示
		clear: function(){
			clearTimeout(newMessageRemind._timer );
			this.document.title = newMessageRemind._title;
			//这里写Cookie操作
		}
				
	};
	function clearNewMessageRemind() {
		newMessageRemind.clear();
	}
	
	function imbox_evdata(userid){
		if (userid!= "") {
			$.ajax({
				type: "GET",
				url:  _ROOT_PATH + "data/ajax/imbox.php?userid="+userid+"&rnd="+new Date().toString(),
				beforeSend: function(XMLHttpRequest) {
					XMLHttpRequest.setRequestHeader("request_type","ajax");
				},
				success: function(msg){
					if(msg == '0'){
					
					}else {
						$('#imbox_tips').html('<a href="'+_ROOT_PATH+'member/imbox.php">新消息('+msg+')</a>');
						newMessageRemind.show();
					}
				}
			});
		}
	}

//及时消息结束
