/* descripteur de culture */
if(Yke.Culture == null) Yke.Culture = {};

Yke.Culture.Description = function(name)
{
	this.name = name;
	this.number = new Yke.Culture.Number();
	this.time = new Yke.Culture.Time();
	this.date = new Yke.Culture.Date();
}

Yke.Culture.Number = function()
{
	this.decimalSymbol = '.';
	this.decimalKeyCode = 188;
	this.digitsAfterDecimal = 2;
	this.digitsGroupingSymbol = ' ';
	this.digitsGrouping = -1; /* -1 : (123456789) |  3 : (123 456 789) | 3-2 : (12 34 56 789) */
	this.negativeSymbol = '-';
	this.displayLeadingZero = true; /* true = 0.5 | false : .5 */
	this.listSeparator = ',';
}

Yke.Culture.Time = function()
{
	this.timeSeparator = ':';
	this.amSymbol = 'AM';
	this.pmSymbol = 'PM';
	this.m24H = false;
	this.order = new Array();
	this.order[0]= 'H';
	this.order[1]= 'M';
	this.order[2]= 'S';
	this.order[3]= 'AMPM';
	this.minCharLengthH = 2;
	this.minCharLengthM = 2;
	this.minCharLengthS = 2;
	this.shortLabels = {H: 'hh', M:'mm', S:'ss'};
	this.labels = {H: 'hours', M:'minutes', S:'seconds'};
}

Yke.Culture.Date = function()
{
	this.dateSeparator = '-';
	
	this.dayCard = function (d)
	{
		var mod = d % 10;
		var lbl = '';
		if(mod == 1)
		{
			lbl = 'st';
		}
		else if (mod == 2)
		{
			lbl = 'nd';
		}
		else if (mod == 3)
		{
			lbl = 'rd';
		}	
		else
		{
			lbl = 'th';
		}
		return d+lbl;
	}
	
	this.longorder = new Array();
	this.longorder[0] = 'dLabel';
	this.longorder[1] = 'dCard';
	this.longorder[2] = 'mLabel';
	this.longorder[3] = 'y';
	
	this.order = new Array();
	this.order[0] = 'dShortLabel';
	this.order[1] = 'dCard';
	this.order[2] = 'mShortLabel';
	this.order[3] = 'y';
	
	this.shortorder = new Array();
	this.shortorder[0]= 'm';
	this.shortorder[1]= 'd';
	this.shortorder[2]= 'y';
	
	this.dLabel  = {1: 'Monday', 2: 'Tuesday', 3: 'Wednesday', 4: 'Thursday', 5: 'Friday', 6: 'Saturday', 7:'Sunday'};
	this.dShortLabel = {1: 'Mon', 2: 'Tues', 3: 'Wed', 4: 'Thurs', 5: 'Fri', 6: 'Sat', 7:'Sun'};
	this.dLetter = {1: 'm', 2: 't', 3: 'w', 4: 't', 5: 'f', 6: 's', 7:'s'};
	
	this.mLabel = {1: 'January', 2: 'February', 3: 'March', 4: 'April', 5: 'May', 6: 'June', 7: 'July', 8: 'August', 9: 'September', 10: 'October', 11: 'November', 12: 'December' };
	this.mShortLabel = {1: 'Jan', 2: 'Feb', 3: 'Mar', 4: 'Apr', 5: 'May', 6: 'Jun', 7: 'Jul', 8: 'Aug', 9: 'Sept', 10: 'Oct', 11: 'Nov', 12: 'Dec' };
	
}
