#include "Includes/posteriors.ibf";

_labels = {1, _sites+1};

for (_counter2 = 1; _counter2 <= _sites; _counter2 = _counter2 + 1)
{
	_labels[_counter2-1] = "Site " + _counter2;
}

_rowLabel = "Prior";
for (_counter2 = 0; _counter2 < _classes; _counter2 = _counter2 + 1)
{
	_rowLabel = _rowLabel + ";" + _CATEGORY_VARIABLE_CDF_ [0][_counter2];
}

_labels [_sites] = _rowLabel;


promptString = "Posterior Distribution at Sites for " + _CATEGORY_VARIABLE_ID_;

OpenWindow (CHARTWINDOW,{{promptString}
						   {"_labels"},
						   {"_MARGINAL_MATRIX_"},
						   {"None"},
						   {""},
						   {""},
						   {""},
						   {""},
						   {""},
						   {"0"}},
						   "SCREEN_WIDTH-60;SCREEN_HEIGHT-50;30;50");
						   
_labels = 0;
_sites  = 0;
