var Calendar_errors;
var yxMonths;
var today		= new Date();
var days 		= today.getDate();
var month 		= today.getMonth();
var year 		= today.getFullYear();
var yearmore		= year + 1
var topdate		= 31 + "-" + 12 + "-" + yearmore;
var textMonth;	
var valueMonth;	

function Init_Localizations()
{
	yxLinks   = new Array("<img src='/images/calendarclose.gif' height='8' width='8' border='0' alt='Chiudi calendario' title='Chiudi calendario'/>", "chiudi");
	
  	yxMonths  = new Array("Gen","Feb",
  			"Mar","Apr",
  			"Mag","Giu",
  			"Lug","Ago",
  			"Set","Ott",
  			"Nov","Dic");
  		  						
  	yxMonthsLarge  = new Array("Gennaio","Febbraio",
  			"Marzo","Aprile",
  			"Maggio","Giugno",
  			"Luglio","Agosto",
  			"Settembre","Ottobre",
  			"Novembre","Dicembre");
  
  	yxDays 	 = new Array("Lunedi","Martedi",
  			"Mercoledi","Giovedi",
  			"Venerdi","Sabato",
  			"Domenica");

  	valueMonth	= new Array( "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
	
  	Calendar_errors = new Array("Sorry. It seems that the date you have given should be for a previous period.",
  				"Sorry. It seems that the arrival date you have given is for a date in the past.",
  				"Sorry. It seems that the departure date you have given is for a date in the past.",
  				"Sorry. It seems that the departure date you have given comes before your arrival date.",
  				"Sorry. It seems that the departure date you have given comes before your arrival date.",
  				"Our online booking engine does not accept bookings for periods greater than two months. Please check your dates and try again.");
}	  				

function set_nights_text(n_nights)
{
	if(n_nights == 1)
		return "notte";
	else
		return "notti";
}