// JScript source code

function JCMISPContent( )
{
	this.className  = "misp_app_body";
	this.showUI	= JCMISPContent_showUI;

	this.onselectstart = DisableSelection;

	this.resize = function()
	{
		var BackgroundElement = document.getElementById("idMispBackground" + this.mID );
		
		if( BackgroundElement ) 
		{
			BackgroundElement.style.width = this.offsetWidth;
			BackgroundElement.style.height = this.offsetHeight;
		}
	}
}

function JCMISPContent_showUI()
{
	var sBackground = "" +
	"<table id=idMispBackground" + this.mID + " class='misp_app_body_bg' " + 
		" style='width:" + this.offsetWidth + "px;height:" + this.offsetHeight + "px' cellpadding=0 cellspacing=0 border=0>" +
	"<tr><td width=100% style='height:6px;background-image:url(" + gImageBase + "main_bg_top_4x7.gif);background-repeat:repeat-x'></td>" + 
		"<td style='width:6px;height:6px;'><img width=6 height=6 src='" + gImageBase + "corner_tr_misp_contents.gif'></td></tr>" +
	"<tr><td width=100% style='height:100%;background-image:url(" + gImageBase + "main_bg_4x1024.gif);background-repeat:repeat-x'></td>" +
		"<td style='width:12px;height:100%;background-image:url(" + gImageBase + "main_bg_r_12x4.gif);background-repeat:repeat-y'></td></tr>" +
	"<tr><td width=100% style='height:6px;background-image:url(" + gImageBase + "main_bg_bottom_4x12.gif);background-repeat:repeat-x'></td>" +
		"<td style='width:6px;height:6px'><img width=6 height=6 src='" + gImageBase + "corner_br_misp_contents.gif'></td></tr>" +
	"</table>";	

	this.insertAdjacentHTML( "afterBegin", sBackground );

	this.onresize = new Function(this.sID + ".resize()");
	
	window.setTimeout( this.sID + ".resize()", 1 );
}



