// Periods of time array with 5 period objects (start date, end date, period number)
var periodlist =
[
	{sday : 1, smonth : 6, eday : 15, emonth : 6, period : 3},
	{sday : 15, smonth : 6, eday : 15, emonth : 7, period : 2},
	{sday : 15, smonth : 7, eday : 15, emonth : 8, period : 1},
	{sday : 15, smonth : 8, eday : 15, emonth : 9, period : 2},
	{sday : 15, smonth : 9, eday : 31, emonth : 9, period : 3}
];

// Apartment prices, with following indexes:
// pricelist[apartment][period][persons]
var pricelist = 
[
	[
	// Apartment A
	// persons: 6 7 8
		[84, 96, 104],  // period I
		[78, 88, 96],  // period II
		[66, 74, 80]   // period III
	],
	[
	// Apartment B
	// persons: 4 5
		[53, 61],  // period I
		[50, 56],  // period II
		[44, 50]   // period III
	]
];

/*
// Old pricelist
var pricelist = 
[
	[
	// Apartment A
	// persons: 6 7 8
		[90, 99, 108],  // period I
		[75, 80,  87],  // period II
		[63, 66,  70]   // period III
	],
	[
	// Apartment B
	// persons: 4 5
		[60, 65],  // period I
		[52, 55],  // period II
		[40, 42]   // period III
	]
];
*/