function showModule(pID, pObj, bIgnore)
{	
	if ((bIgnore != 1) && (CURMODULE == pID))
		return;

	CURMODULE = pID;

	$("#div_content").html("<img src=\"images/loading.gif\" width=\"37\" height=\"37\" style=\"margin-top:60px;\"><br><span style=\"line-height:40px;\">ÄÚÈÝ¶ÁÈ¡ÖÐ£¬ÇëÉÔºó¡­¡­</span>");

	var strLeftHTML = "<div class=\"div_content_left\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>";
	strLeftHTML += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";

	var strRightHTML = "<div class=\"div_content_right\">";
	var bNewestPost = 1;
	
	$.ajax({
		type:"get",
		url:WEBABSPATH + "/ajax.php",
		datatype:"xml",
		data:"id=" + pID,
		success:function(xml){
			if ($(xml).find("item").text() != "")
			{
				$(xml).find("item").each(function(){
				var nPID = $(this).children("pid").text();
				var strSubject = $(this).children("subject").text();
				var strSubjectTitle = $(this).children("subjecttitle").text();
				if ($(this).children("posttype").text() == "1")
				{
					strRightHTML += "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td style=\"background-color:#000000; padding:2 2 2 2;\"><img src=\"";
					strRightHTML += $(this).children("imageurl").text();
					strRightHTML += "\" width=\"377\" height=\"231\"></td></tr><tr><td align=\"center\" class=\"ffffff_font\" style=\"background-color:#000000; padding:2 2 2 2;\">";
					strRightHTML += strSubject;
					strRightHTML += "</td></tr></table>";
				}
				else
				{
					var strTitle = "¡¾" + $(this).children("name").text() + "¡¿" + strSubject;
					if (bNewestPost == 1)
					{
						strLeftHTML += "<tr><td class=\"title_A61035\"><img src=\"images/New_icons_24.gif\" style=\"clear:left;\">";
						strLeftHTML += strTitle;
						strLeftHTML += "</td></tr><tr><td class=\"title_000000\" style=\"line-height:20px; padding-left:6px\">";
						strLeftHTML += $(this).children("message").text();
						strLeftHTML += "</td></tr></table></td></tr>";

						bNewestPost = 0;
					}
					else
					{
						strLeftHTML += "<tr><td class=\"line-24px\"><a href=\"" + WEBABSPATH + "/view.php?id=" + nPID + "\" title=\"" + strSubjectTitle + "\" class=\"A1\" target=\"_blank\">" + strTitle + "</a></td></tr>";
					}
				}
				});
				strLeftHTML += "</table></div>";
				strRightHTML += "</div>";
				$("#div_content").html(strLeftHTML + strRightHTML);
		}
		}
	});
}

$(document).ready(function(){
	showModule(CURMODULE, 0, 1);
});