﻿	/** Calendar i18 */
	function Calendar_I18(locale) {
		this.locale=locale;
		this.MonthNames=new Array();
		this.MonthNames["EN"]=new Array();
		this.MonthNames["DE"]=new Array();
		this.MonthNames["RU"]=new Array();
		this.MonthNames["EN"]["WIDE"]=new Array ("January","February","March","April","May","June","July","August","September","October","November","December");
		this.MonthNames["DE"]["WIDE"]=new Array ("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
		this.MonthNames["RU"]["WIDE"]=new Array ("Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь");
		this.MonthNames["EN"]["SHORT"]=new Array ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
		this.MonthNames["DE"]["SHORT"]=new Array ("Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");
		this.MonthNames["RU"]["SHORT"]=new Array ("Янв","Фев","Мрт","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек");
		this.getMonthName=function(idx,type) {
			return this.MonthNames[this.locale][type][idx];
		}
		
		this.FirstDay=new Array();
		this.FirstDay["EN"]=0;
		this.FirstDay["DE"]=1;
		this.FirstDay["RU"]=1;
		this.getFirstDay=function() {
			return this.FirstDay[this.locale];
		}
		
		this.WeekDays=new Array();
		this.WeekDays["EN"]=new Array("Su","Mo","Tu","We","Th","Fr","Sa");
		this.WeekDays["DE"]=new Array("So","Mo","Di","Mi","Do","Fr","Sa");		
		this.WeekDays["RU"]=new Array("Вс","По","Вт","Ср","Чт","Пт","Сб");
		this.getWeekDay=function(idx) {
			return this.WeekDays[this.locale][idx];
		}
		
		this.Buttons=new Array();
		this.Buttons["EN"]=new Array();
		this.Buttons["DE"]=new Array();
		this.Buttons["RU"]=new Array();
		this.Buttons["EN"]["add"]="add";
		this.Buttons["DE"]["add"]="hinzufügen";
		this.Buttons["RU"]["add"]="добавить";
		this.Buttons["EN"]["remove"]="remove";
		this.Buttons["DE"]["remove"]="löschen";
		this.Buttons["RU"]["remove"]="удалить";
		this.getButton=function(key) {
			return this.Buttons[this.locale][key];
		}
		
		this.NotesTypes=new Array();
		this.NotesTypes["EN"]=new Array();
		this.NotesTypes["DE"]=new Array();		
		this.NotesTypes["RU"]=new Array();
		this.NotesTypes["EN"]["birthday"]="Birthday";
		this.NotesTypes["EN"]["meeting"]="Meeting";
		this.NotesTypes["EN"]["notice"]="Notice";
		this.NotesTypes["DE"]["birthday"]="Geburtstag";
		this.NotesTypes["DE"]["meeting"]="Meeting";
		this.NotesTypes["DE"]["notice"]="Notiz";		
		this.NotesTypes["RU"]["birthday"]="День рождения";
		this.NotesTypes["RU"]["meeting"]="Встреча";
		this.NotesTypes["RU"]["notice"]="Заметка";		
		this.getNotesType=function(type) {
			return this.NotesTypes[this.locale][type];
		}
						
	}