/*==================================================
 *  Passion Theme
 *==================================================
 */


Timeline.PassionTheme = new Object();

Timeline.PassionTheme.implementations = [];

Timeline.PassionTheme.create = function(locale) {
    if (locale == null) {
        locale = null;
    }
    
    var f = Timeline.PassionTheme.implementations[locale];
    if (f == null) {
        f = Timeline.PassionTheme._Impl;
    }
    return new f();
};

Timeline.PassionTheme._Impl = function() {
    this.firstDayOfWeek = 0; // Sunday
    


    this.ether = {
        backgroundColors: [
            "none",
	    "none",
	    "none",
	    "none"
        ],
        highlightColor:     "#321d03",
        highlightOpacity:   50,
        interval: {
            line: {
                show:       true,
                color:      "#321d03",
                opacity:    50
            },
            weekend: {
                color:      "#321d03",
                opacity:    100
            },
            marker: {
                hAlign:     "Bottom",
                hBottomStyler: function(elmt) {
                    elmt.className = "timeline-ether-marker-bottom";
                },
                hBottomEmphasizedStyler: function(elmt) {
                    elmt.className = "timeline-ether-marker-bottom-emphasized";
                },
                hTopStyler: function(elmt) {
                    elmt.className = "timeline-ether-marker-top";
                },
                hTopEmphasizedStyler: function(elmt) {
                    elmt.className = "timeline-ether-marker-top-emphasized";
                },
                    
                vAlign:     "Right",
                vRightStyler: function(elmt) {
                    elmt.className = "timeline-ether-marker-right";
                },
                vRightEmphasizedStyler: function(elmt) {
                    elmt.className = "timeline-ether-marker-right-emphasized";
                },
                vLeftStyler: function(elmt) {
                    elmt.className = "timeline-ether-marker-left";
                },
                vLeftEmphasizedStyler:function(elmt) {
                    elmt.className = "timeline-ether-marker-left-emphasized";
                }
            }
        }
    };
    
    this.event = {
        track: {
            offset:         0.5, // em
            height:         1.5, // em
            gap:            0.5  // em
        },
        instant: {
            icon:           Timeline.urlPrefix + "images/cross.png",
            lineColor:      "#321d03",
            impreciseColor: "#321d03",
            impreciseOpacity: 20,
            showLineForNoText: true
        },
        duration: {
            color:          "#321d03",
            opacity:        100,
            impreciseColor: "#321d03",
            impreciseOpacity: 20
        },
        label: {
            insideColor:    "white",
            outsideColor:   "black",
            width:          200 // px
        },
        highlightColors: [
            "#321d03",
            "#321d03",
            "#321d03",
            "#321d03"
        ],
        bubble: {
            width:          400, // px
            height:         200, // px
            titleStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-title";
            },
            bodyStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-body";
            },
            imageStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-image";
            },
            wikiStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-wiki";
            },
            timeStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-time";
            }
        }
    };
};