//
// 2006 by bitart; Author: Alexander Graf
//
// Copyright by bitart - Furch & Graf GbR, Gartenstr. 5 56220 St. Sebastian,
// Germany. All rights reserved.
// Copyright in this software is owned by bitart, unless otherwise indicated.
//
// You are not allowed to distribute this software in any form or use it as
// part of another project without asking the owner for permission to use.
//

function createBox(content, cls)
{
	var box = document.createElement('div');
	box.className = 'box'+(cls?(' '+cls):'');

	boxLine(box, 'bt');

	var m = document.createElement('div');
	m.className = 'bmm';
	m.appendChild(content);
	box.appendChild(m);

	boxLine(box, 'bb');

	return box;
}

function boxLine(obj, typ)
{
	var l = new Image();
	l.src='/img/space.gif';
	l.className = typ+'l';
	l.hspace = 0;

	var m = document.createElement('div');
	m.className = typ+'m';

	var r = new Image();
	r.src='/img/space.gif';
	r.className = typ+'r';
	r.hspace = 0;

	obj.appendChild(r);
	obj.appendChild(l);
	obj.appendChild(m);
}

