/*

 * Function writes the up-to-date price
 * for specified unit & period.
 *
 * internet recepcija d.o.o. - 30.10.2009

*/

var i			= 0;
var TD_01		= "";
var TD_02		= "";

// Unit and Periods
var Period = new Array
	(
	"01.05. - 30.06. & 01.09. - 31.10. - bed & breakfast",
	"01.07. - 31.07. & 01.08. - 31.08. - bed & breakfast"
	);

// PRICE fo a stay of 7 nights
var Day_07	= new Array
	(
	"47.00", "47.00"
	);

// PRICE fo a stay of 6 nights
var Day_06	= new Array
	(
	"", ""
	);
// PRICE fo a stay of 5 nights
var Day_05	= new Array
	(
	"65.00", "65.00"
	);

// PRICE fo a stay of 4 nights
var Day_04	= new Array
	(
	"", ""
	);

// PRICE fo a stay of 3 nights
var Day_03	= new Array
	(
	"", ""
	);

// PRICE fo a stay of 2 nights
var Day_02	= new Array
	(
	"", ""
	);

// PRICE fo a stay of 1 night
var Day_01	= new Array
	(
	"", ""
	);						


// Writing the Data
while (i < 2)
{
	// First TD - TAG
	if (i == 0)
		TD_01 = "";
	else
		TD_01 = "<td width=44% align=left bgcolor=White>";
		
	// Last TD - TAG
	if (i == 1)
		TD_02 = "";
	else
		TD_02 = "</td>";
	
document.write(TD_01 + Period[i]	+ '</td>');
document.write('<td width="8%" align="center" bgcolor="White">' + Day_07[i]	+ '</td>');
document.write('<td width="8%" align="center" bgcolor="White">' + Day_06[i]	+ '</td>');
document.write('<td width="8%" align="center" bgcolor="White">' + Day_05[i]	+ '</td>');
document.write('<td width="8%" align="center" bgcolor="White">' + Day_04[i]	+ '</td>');
document.write('<td width="8%" align="center" bgcolor="White">' + Day_03[i]	+ '</td>');
document.write('<td width="8%" align="center" bgcolor="White">' + Day_02[i]	+ '</td>');
document.write('<td width="8%" align="center" bgcolor="White">' + Day_01[i] + TD_02);
document.write('</tr>');

i++;
}

