
        var tl;
        function onLoad() {
            var eventSource = new Timeline.DefaultEventSource(0);
            
            var theme = Timeline.ClassicTheme.create();
            theme.event.bubble.width = 320;
            theme.event.bubble.height = 220;
            theme.ether.backgroundColors[1] = theme.ether.backgroundColors[0];
            var d = Timeline.DateTime.parseGregorianDateTime("1970")
            var bandInfos = [
            	    
                Timeline.createBandInfo({
                    width:          "10%", 
                    intervalUnit:   Timeline.DateTime.YEAR, 
                    intervalPixels: 250,
                    date:           d,
                    
                    showEventText:  false,
                    theme:          theme
                }),
                 Timeline.createBandInfo({
                    width:          "90%", 
                    intervalUnit:   Timeline.DateTime.YEAR, 
                    intervalPixels: 250,
                    eventSource:    eventSource,
                    date:           d,
                    theme:          theme
                })
           
            ];
          
            bandInfos[0].syncWith = 1;
            bandInfos[0].highlight = false;
            bandInfos[0].decorators = [
                new Timeline.SpanHighlightDecorator({
                    startDate:  "1969 ",
                    endDate:    " 2009 ",
                    
                    startLabel: "Stonewall",
                    endLabel:   "",
                    color:      "#A72277",
                    opacity:    50,
                    theme:      theme
                })
            ];
            
            tl = Timeline.create(document.getElementById("tl"), bandInfos, Timeline.HORIZONTAL);
            tl.loadXML("d_timeline/timeline.xml", function(xml, url) {
                eventSource.loadXML(xml, url);
            });
        }
        var resizeTimerID = null;
        function onResize() {
            if (resizeTimerID == null) {
                resizeTimerID = window.setTimeout(function() {
                    resizeTimerID = null;
                    tl.layout();
                }, 500);
            }
        }
    