YAHOO.widget.Calendar2up_ES_Cal = function(id, containerId, monthyear, selected) {
	if (arguments.length > 0)
	{
		this.init(id, containerId, monthyear, selected);
	}
}

YAHOO.widget.Calendar2up_ES_Cal.prototype = new YAHOO.widget.Calendar2up_Cal();

YAHOO.widget.Calendar2up_ES_Cal.prototype.customConfig = function() {
	this.Config.Locale.MONTHS_SHORT = ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"];
	this.Config.Locale.MONTHS_LONG = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
	this.Config.Locale.WEEKDAYS_1CHAR = ["D", "L", "M", "X", "J", "V", "S"];
	this.Config.Locale.WEEKDAYS_SHORT = ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa"];
	this.Config.Locale.WEEKDAYS_MEDIUM = ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"];
	this.Config.Locale.WEEKDAYS_LONG = ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"];
	this.minDate = YAHOO.widget.DateMath.add(new Date(), YAHOO.widget.DateMath.DAY, 0);

}

///// quitar ésta parte para mostrar 2 calendarios ////////////////
YAHOO.widget.Calendar2up_ES_Cal.prototype.renderHeader=function(){
	this.headerCell.innerHTML="";
	var headerContainer=document.createElement("DIV");
	headerContainer.className=this.Style.CSS_HEADER;
	if(this.index==0){
		var linkLeft=document.createElement("A");
		linkLeft.href="javascript:void(null)";
		YAHOO.util.Event.addListener(linkLeft,"click",this.parent.doPreviousMonth,this.parent);
		var imgLeft=document.createElement("IMG");
		imgLeft.src=this.Options.NAV_ARROW_LEFT;
		imgLeft.className=this.Style.CSS_NAV_LEFT;
		linkLeft.appendChild(imgLeft);headerContainer.appendChild(linkLeft);

		var linkRight=document.createElement("A");
		linkRight.href="javascript:void(null)";
		YAHOO.util.Event.addListener(linkRight,"click",this.parent.doNextMonth,this.parent);
		var imgRight=document.createElement("IMG");
		imgRight.src=this.Options.NAV_ARROW_RIGHT;
		imgRight.className=this.Style.CSS_NAV_RIGHT;
		linkRight.appendChild(imgRight);
		headerContainer.appendChild(linkRight);

	}
	headerContainer.appendChild(document.createTextNode(this.buildMonthLabel()));

	this.headerCell.appendChild(headerContainer);
};

///////////////////////////////////////////////////////////////////////

/*************************************/

YAHOO.widget.Calendar2up_ES = function(id, containerId, monthyear, selected) {
	if (arguments.length > 0)
	{	
		this.buildWrapper(containerId);
/////////// Cambiar el 1 por 2 para mostrar 2 calendarios /////////////////////////////////////
		this.init(1, id, containerId, monthyear, selected);
	}
}

YAHOO.widget.Calendar2up_ES.prototype = new YAHOO.widget.Calendar2up();

YAHOO.widget.Calendar2up_ES.prototype.constructChild = function(id,containerId,monthyear,selected) {
	var cal = new YAHOO.widget.Calendar2up_ES_Cal(id,containerId,monthyear,selected);
	return cal;
};