/* groupbox.js

	Purpose:
		
	Description:
		
	History:
		Sun Nov 16 12:47:07     2008, Created by tomyeh

Copyright (C) 2008 Potix Corporation. All Rights Reserved.

This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
*/
function groupbox$mold$(out, skipper) {
	var uuid = this.uuid,
		cap = this.caption,
		title = this.getTitle();
	title = title && !cap ? zUtl.encodeXML(title) : undefined;

	out.push('<div ', this.domAttrs_(), '>');

	if (title || cap) {
		out.push('<div id="', uuid, '-header" class="', this.$s('header'),
			(this._closable ? '' : ' ' + this.$s('readonly')), '">');
		if (cap)
			cap.redraw(out);
		else
			out.push('<div id="', uuid, '-title" class="', this.$s('title'),
				'" role="none"><div id="', uuid, '-title-cnt" class="',
				this.$s('title-content'), '" role="none">', zUtl.encodeXML(title), '</div></div>');
		out.push('</div>');
	}

	this._redrawCave(out, skipper);

	out.push('</div>');
}