YAHOO.widget.Calendar2up_FR_Cal = function(id, containerId, monthyear, selected) {
	if (arguments.length > 0)
	{
		this.init(id, containerId, monthyear, selected);
	}
}

YAHOO.widget.Calendar2up_FR_Cal.prototype = new YAHOO.widget.Calendar2up_Cal();

YAHOO.widget.Calendar2up_FR_Cal.prototype.customConfig = function() {
	 this.Config.Locale.MONTHS_SHORT = ["Jan", "Fev", "Mar", "Avr", "Mai", "Jui", "Jui", "Aou", "Sep", "Oct", "Nov", "Dec"]; 
	 this.Config.Locale.MONTHS_LONG = ["Janvier", "Fevrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Decembre"]; 
	 this.Config.Locale.WEEKDAYS_1CHAR = ["D", "L", "M", "M", "J", "V", "S"]; 
	 this.Config.Locale.WEEKDAYS_SHORT = ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"]; 
	 this.Config.Locale.WEEKDAYS_MEDIUM = ["Dim","Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"]; 
	 this.Config.Locale.WEEKDAYS_LONG = ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"]; 
	 this.Config.Options.START_WEEKDAY = 1;
	 this.Config.Options.NAV_ARROW_LEFT ="/medias/images/callt.gif";
	 this.Config.Options.NAV_ARROW_RIGHT ="/medias/images/calrt.gif";
}

/*************************************/

YAHOO.widget.Calendar2up_FR = function(id, containerId, monthyear, selected) {
	if (arguments.length > 0)
	{	
		this.buildWrapper(containerId);
		this.init(2, id, containerId, monthyear, selected);
	}
}

YAHOO.widget.Calendar2up_FR.prototype = new YAHOO.widget.Calendar2up();

YAHOO.widget.Calendar2up_FR.prototype.constructChild = function(id,containerId,monthyear,selected) {
	var cal = new YAHOO.widget.Calendar2up_FR_Cal(id,containerId,monthyear,selected);
	return cal;
};


/**
* Renders the header located at the top of the container for the 2-up calendar.
*/
YAHOO.widget.Calendar2up_FR.prototype.renderHeader = function() {
    if (! this.title) {
        this.title = "";
    }
    
    if (! this.titleDiv)
    {
        this.titleDiv = document.createElement("DIV");
        if (this.title == "")
        {
            this.titleDiv.style.display="none";
        }
    }

    this.titleDiv.className = "title";
    this.titleDiv.innerHTML = this.title;

   // if (this.outerContainer.style.position == "absolute")
    //{
    	//console.debug("creating close link...");
        var linkClose = document.createElement("A");
        linkClose.href = "javascript:void(null)";
        YAHOO.util.Event.addListener(linkClose, "click", this.hide, this);

        var imgClose = document.createElement("IMG");
        imgClose.src = "/medias/images/calx.gif";
        imgClose.className = "close-icon";

        linkClose.appendChild(imgClose);

        this.linkClose = linkClose;

        this.titleDiv.appendChild(linkClose);
   // }

    this.innerContainer.insertBefore(this.titleDiv, this.innerContainer.firstChild);
}
