function TaceTheatreBox(options)
{
	this.id = options.id != null && options.id.toString().match(/^[\w-]+$/) ? options.id : 'TaceTheatreBox';
	this.country = options.country != null && options.country.toString().match(/^[A-Z]{2}$/) ? options.country : '';
	this.language = options.language != null && options.language.toString().match(/^[a-z]{2}$/) ? options.language : 'cs';
	this.width = options.width != null && !isNaN(options.width) && options.width >= 100 && options.width <= 1000 ? options.width : 200;
	this.height = options.height != null && !isNaN(options.height) && options.height >= 100 && options.height <= 1000 ? options.height : 200;
	this.border = options.border != null && !isNaN(options.border) && options.border >= 1 && options.border <= 10 ? options.border : 1;
	this.css = options.css != null ? options.css : 'http://www.theatre-architecture.eu/box/theatre.css';
	this.theatreId = options.theatreId != null && !isNaN(options.theatreId) ? options.theatreId : '';
}

TaceTheatreBox.prototype.render = function()
{
	var iframe = '<iframe id="' + this.id + 'Frame" frameborder="0" style="border-style:none; width:' + this.width + 'px; height:' + this.height + 'px;" ';
	iframe += 'src="http://www.theatre-architecture.eu/box/theatre.php?country=' + this.country + '&language=' + this.language + '&theatreId=' + this.theatreId;
	iframe += '&css=' + encodeURIComponent(this.css) + '&width=' + this.width + '&height=' + this.height + '&border=' + this.border + '"></iframe>';

	document.write(iframe);
}

