Timeline.P2Theme = {
  create: function(options) {
    function implementation(options) {

      this.firstDayOfWeek = 1;
      
      this.ether = {
        backgroundColors: [ "#FAFAFA", "#FFF", "#FFF", "#FFF" ],
        highlightColor:   "white",
        highlightOpacity: 50,
        interval: {
          line: { show: true, color: "#ccc", opacity: 25 },
          weekend: { color:"#FFFFE0", opacity: 30 },
          marker: { 
            hAlign:                  (options && options.hAlign) || 'Top',
            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: 2.3, height:1.3, gap:0.5  },
        instant: {
          icon:              Timeline.urlPrefix + "images/dull-blue-circle.png",
          lineColor:         "#58A0DC",
          impreciseColor:    "#58A0DC",
          impreciseOpacity:  20,
          showLineForNoText: true
        },
        duration: {
          color:             "#58A0DC",
          opacity:           100,
          impreciseColor:    "#58A0DC",
          impreciseOpacity:  20
        },
        label: {
          insideColor:       "white",
          outsideColor:      "black",
          width:             200
        },
        highlightColors: [ "#FFFF00", "#FFC000", "#FF0000", "#0000FF" ],
        bubble: {
          width:       300,
          height:      150,
          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"; }
        }
      };
      
    }
    return new implementation(options);
    
  }
};
