function display_post(A){if(AJAX_Compatible){vB_PostLoader[A]=new vB_AJAX_PostLoader(A);vB_PostLoader[A].init()}else{pc_obj=fetch_object("postcount"+this.postid);openWindow("showpost.php?"+(SESSIONURL?"s="+SESSIONURL:"")+(pc_obj!=null?"&postcount="+PHP.urlencode(pc_obj.name):"")+"&p="+A)}return false}var vB_PostLoader=new Array();function vB_AJAX_PostLoader(A){this.postid=A;this.container=fetch_object("edit"+this.postid)}vB_AJAX_PostLoader.prototype.init=function(){if(this.container){postid=this.postid;pc_obj=fetch_object("postcount"+this.postid);this.ajax=new vB_AJAX_Handler(true);this.ajax.onreadystatechange(vB_PostLoader[postid].ajax_check);this.ajax.send("showpost.php?p="+this.postid,"ajax=1&postid="+this.postid+(pc_obj!=null?"&postcount="+PHP.urlencode(pc_obj.name):""))}};vB_AJAX_PostLoader.prototype.ajax_check=function(){var A=vB_PostLoader[postid].ajax.handler;if(A.readyState==4&&A.status==200){vB_PostLoader[postid].display(A.responseXML);if(is_ie){A.abort()}}return false};vB_AJAX_PostLoader.prototype.display=function(A){if(fetch_tag_count(A,"postbit")){this.container.innerHTML=this.ajax.fetch_data(fetch_tags(A,"postbit")[0]);PostBit_Init(fetch_object("post"+this.postid),this.postid)}else{openWindow("showpost.php?"+(SESSIONURL?"s="+SESSIONURL:"")+(pc_obj!=null?"&postcount="+PHP.urlencode(pc_obj.name):"")+"&p="+this.postid)}};