public/javascripts/yui/calendar/calendar.js
function(strTitle) {
        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
        tDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
        tDiv.innerHTML = strTitle;
        this.oDomContainer.insertBefore(tDiv, this.oDomContainer.firstChild);
    
        Dom.addClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
    
        return tDiv;
    }
function(strTitle) {
        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
        tDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
        tDiv.innerHTML = strTitle;
        this.oDomContainer.insertBefore(tDiv, this.oDomContainer.firstChild);
    
        Dom.addClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
    
        return tDiv;
    }
function ( strTitle ) { var tDiv = Dom . getElementsByClassName ( YAHOO . widget . CalendarGroup . CSS_2UPTITLE , "div" , this . oDomContainer ) [ 0 ] || document . createElement ( "div" ) ; tDiv . className = YAHOO . widget . CalendarGroup . CSS_2UPTITLE ; tDiv . innerHTML = strTitle ; this . oDomContainer . insertBefore ( tDiv , this . oDomContainer . firstChild ) ; Dom . addClass ( this . oDomContainer , this . Style . CSS_WITH_TITLE ) ; return tDiv ; }
Creates the title bar element and adds it to Calendar container DIV

@method createTitleBar
@param {String} strTitle The title to display in the title bar
@return The title bar element
Creates the title bar element and adds it to Calendar container DIV