var Menu1318 = null;

ConstructMenu1318();

function ConstructMenu1318() {
	if (! Menu1318) {
		Menu1318 = new Array();
  	Menu1318.push(new MenuItem('preface', 'cds/u1318/preface.html', 'Передмова')); 
  	Menu1318.push(new MenuItem('variants', 'cds/u1318/variants.html', 'Варіанти поставки')); 
  	Menu1318.push(new MenuItem('faq', 'cds/u1318/faq.html', 'Запитання')); 
	}
}  // ConstructMenu1318

function BuildMenuU1318(Level, ID) {
var i, S, LevelStr;
var Style = 'Menu';
	LevelStr = GetLevelStr(Level);
	S = '<p class="InternalHeader"><a href="' + LevelStr + 'cds/u1318/index.html">Україна 13 – 18 ст.</a></p>';
	for (i=0; i < Menu1318.length; i++) {
		if (Menu1318[i].ID == ID) {
			S = S + '<p class="' + Style + '">' + FormatAuthor(Menu1318[i], Style) + '</p>';
		}
		else {
			S = S + '<p class="' + Style + '"><a href="' + LevelStr + Menu1318[i].Ref + '">' + FormatAuthor(Menu1318[i], Style) + '</a></p>';
		} // else
	}
	return(S);
} // BuildMenuU1318

function BuildCategoriesU1318(Level, Style) {
var i;
var S = '';
var LevelStr = GetLevelStr(Level);
	for (i=0; i < Categories.length; i++) {
		if (Categories[i].ID != ct_u1318) {
			S = S + '<p class="' + Style + '"><a href="' + LevelStr + Categories[i].Ref + '">' + Categories[i].Descr;
			S = S + '</a></p>';
		}
	}
	return (S);
}  // BuildCategoriesU1318

