/*

 * Function writes the up-to-date price
 * for specified unit & period.
 *
 * internet recepcija d.o.o. - 15.11.2009

*/

var i			= 0;
var TD_01		= "";
var TD_02		= "";

// Unit and Periods
var Period = new Array
	(
	"01.04. - 31.05.",
	"01.06. - 30.06.",	
	"01.07. - 24.07. & 15.08. - 28.08.",
	"25.07. - 14.08.",
	"29.08. - 04.09.",
	"05.09. - 30.09."	
	);

// PRICE fo a stay of 7 nights
var Day_07	= new Array
	(
	"<font color=White>0</font>55.00", "<font color=White>0</font>85.00", "<font color=White>0</font>90.00", "105.00", "<font color=White>0</font>70.00", "<font color=White>0</font>65.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
	(
	"<font color=White>0</font>65.00", "100.00", "110.00", "130.00", "<font color=White>0</font>90.00", "<font color=White>0</font>80.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 < 6)
{
	// First TD - TAG
	if (i == 0)
		TD_01 = "";
	else
		TD_01 = "<td width=44% align=left bgcolor=White>";
		
	// Last TD - TAG
	if (i == 5)
		TD_02 = "";
	else
		TD_02 = "</td>";
	
document.write(TD_01 + Period[i]	+ '</td>');
document.write('<td width="15%" align="center" bgcolor="White">'	+ Day_07[i]	+ '</td>');
document.write('<td width="2%" align="center" bgcolor="White">'		+ Day_06[i]	+ '</td>');
document.write('<td width="15%" align="center" bgcolor="White">'	+ Day_05[i]	+ '</td>');
document.write('<td width="6%" align="center" bgcolor="White">' + Day_04[i]	+ '</td>');
document.write('<td width="6%" align="center" bgcolor="White">' + Day_03[i]	+ '</td>');
document.write('<td width="6%" align="center" bgcolor="White">' + Day_02[i]	+ '</td>');
document.write('<td width="6%" align="center" bgcolor="White">' + Day_01[i] + TD_02);
document.write('</tr>');

i++;
}

