/*

 * Function writes the up-to-date price
 * for specified unit & period.
 *
 * internet recepcija d.o.o. - 20.11.2009

*/

var i			= 0;
var TD_01		= "";
var TD_02		= "";

// Unit and Periods
var Period = new Array
	(
	"01.04. - 19.06. & 12.09. - 30.09.",
	"20.06. - 10.07. & 29.08. - 11.09.",	
	"11.07. - 24.07. & 15.08. - 28.08.",
	"25.07. - 14.08."	
	);

// PRICE fo a stay of 7 nights
var Day_07	= new Array
	(
	"<font color=White>0</font>55.00", "<font color=White>0</font>60.00", "<font color=White>0</font>81.00", "108.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>74.00", "<font color=White>0</font>79.00", "100.00", "127.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
	(
	"<font color=White>0</font>50.00", "<font color=White>0</font>56.00", "<font color=White>0</font>80.00", "110.00"
	);

// 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 < 4)
{
	// First TD - TAG
	if (i == 0)
		TD_01 = "";
	else
		TD_01 = "<td width=44% align=left bgcolor=White>";
		
	// Last TD - TAG
	if (i == 3)
		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="2%" align="center" bgcolor="White">' + Day_04[i]	+ '</td>');
document.write('<td width="15%" align="center" bgcolor="White">' + Day_03[i]	+ '</td>');
document.write('<td width="2%" align="center" bgcolor="White">' + Day_02[i]	+ '</td>');
document.write('<td width="5%" align="center" bgcolor="White">' + Day_01[i] + TD_02);
document.write('</tr>');

i++;
}

