/*

 * Function writes the up-to-date price
 * for specified unit & period.
 *
 * internet recepcija d.o.o. - 01.04.2009

*/

var i			= 0;
var TD_01		= "";
var TD_02		= "";

// Unit and Periods
var Period = new Array
	(
	"room 1/2:<img src=../dubrovnik_photo/jpg/clear.gif width=77 height=1>01.01. - 31.05. & 01.10. - 31.12.",
	"<img src=../dubrovnik_photo/jpg/clear.gif width=134 height=1>01.06. - 30.06. & 01.09. - 30.09.",
	"<img src=../dubrovnik_photo/jpg/clear.gif width=134 height=1>01.07. - 31.07. & 01.08. - 31.08."
	);

// PRICE fo a stay of 7 nights
var Day_07	= new Array
	(
	"26.00", "32.00", "38.00"
	);

// PRICE fo a stay of 6 nights
var Day_06	= new Array
	(
	"26.00", "32.00", "38.00"
	);
// PRICE fo a stay of 5 nights
var Day_05	= new Array
	(
	"26.00", "32.00", "38.00"
	);

// PRICE fo a stay of 4 nights
var Day_04	= new Array
	(
	"26.00", "32.00", "38.00"
	);

// PRICE fo a stay of 3 nights
var Day_03	= new Array
	(
	"30.00", "35.00", "43.00"
	);

// PRICE fo a stay of 2 nights
var Day_02	= new Array
	(
	"30.00", "35.00", "46.00"
	);

// PRICE fo a stay of 1 night
var Day_01	= new Array
	(
	"32.00", "37.00", "51.00"
	);						


// Writing the Data
while (i < 3)
{
	// First TD - TAG
	if (i == 0)
		TD_01 = "";
	else
		TD_01 = "<td width=44% align=left bgcolor=White>";
		
	// Last TD - TAG
	if (i == 2)
		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++;
}

