// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

var timelineConfig = {
    timelineConstructor: function (div, eventSource) {
        div.style.height="600px"
        div.style.fontSize = "9pt";
        var bandInfos = [
            Timeline.createBandInfo({
                trackGap:       0.5,
                trackHeight:    20,
                width:          "85%",
                timeZone:       +9,
                eventSource:    eventSource,
                intervalUnit:   Timeline.DateTime.DAY,
                intervalPixels: 300
            }),
            Timeline.createBandInfo({
                overview:       true,
                trackHeight:    0.5,
                trackGap:       0.2,
                width:          "15%",
                timeZone:       +9,
                eventSource:    eventSource,
                intervalUnit:   Timeline.DateTime.WEEK,
                intervalPixels: 200
            })
        ];
        bandInfos[1].syncWith = 0;
        bandInfos[1].highlight = false;
        tl = Timeline.create(div, bandInfos, Timeline.HORIZONTAL);
        return tl;
    }
}
