/*==================================================
 *  Castum Theme
 *==================================================
 */


Timeline.ClassicTheme = new Object();

Timeline.ClassicTheme.implementations = [];

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

Timeline.ClassicTheme._Impl = function() {
    this.firstDayOfWeek = 0; // Sunday
    
    this.ether = {
        backgroundColors: [
            "#666",
            "#FFF",
            "#FFF",
            "#FFF"
        ],
        highlightColor:     "white",
        highlightOpacity:   80,
        interval: {
            line: {
                show:       true,
                color:      "#666",
                opacity:    50
            },
            weekend: {
                show:       true,
                color:      "#FF0000",
                opacity:    30
            },
            marker: {
                hAlign:     "Bottom",
                opacity:    100,
                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.2, // em
            height:         1.25, // em
            gap:            0.2  // em
        },
        instant: {
            icon:				Timeline.urlPrefix + "images/dull-blue-circle.png",
            lineColor:			"#71C5BE",
            impreciseColor:		"#71C5BE",
            impreciseOpacity:	20,
            showLineForNoText:	true
        },
        duration: {
            color:				"#71C5BE",
            opacity:			80,
            impreciseColor:		"#71C5BE",
            impreciseOpacity:	20
        },
        label: {
            insideColor:		"black",
            outsideColor:		"black",
            width:				150 // px
        },
        highlightColors: [
            "#FFFF00"
        ],
        bubble: {
            width:          250, // px
            height:         200, // px
            titleStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-title";
            },
            bodyStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-body";
            },
            eventDateStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-eventDate";
            },
            areaStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-area";
            },
            telStyler: function(elmt) {
                elmt.className = "timeline-event-bubble-tel";
            },
            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";
            }
        }
    };
};