var timeline_data = {  // save as a global variable
'dateTimeFormat': 'iso8601',

'events' : [

        
        // Vernon Dahmer firebombing
        
        {
	        'start': '1966-01-10',
	        'title': 'Vernon Dahmer house firebombed',
	        'description': 'Civil rights leader, Vernon Dahmer Sr., 58, is seriously burned when two carloads of Klansmen firebomb his home.<br/><a href="http://www.footnote.com/image/242893800/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242893800/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242893800/'    
        },
        
        {
	        'start': '1966-01-11',
	        'title': 'Vernon Dahmer dies',
	        'description': 'Dahmer gives deathbed interview and succumbs to the effect of burns in his respiratory tract.<br/><a href="http://www.footnote.com/image/242893833/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242893833/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242893833/'    
        },
        
        {
	        'start': '1966-01-11',
	        'title': 'Firebombing victim dies',
	        'description': 'Clarion-Ledger story.<br/><a href="http://www.footnote.com/image/242473847/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242473847/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242473847/'    
        },    
        
        {
	        'start': '1967-10-21',
	        'title': 'Klansmen convicted of conspiracy charges in Dahmer case',
	        'description': 'A jury convicts seven Ku Klux Klansmen, including Imperial Wizard Sam Bowers of Laurel and Neshoba County Deputy Cecil Price, of federal civil rights violations in the deaths of James Chaney, Andrew Goodman and Michael Schwerner. They receive prison terms ranging from three to 10 years. No one serves more than six years.<br/><a href="http://www.footnote.com/image/242901185/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242901185/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242901185/'    
        },    
        
        
        {
	        'start': '1998-03-12',
	        'title': 'Evidence of jury tampering in Dahmer trial',
	        'description': 'The Clarion-Ledger reveals that FBI documents show jury tampering took place in the 1968 trial of Imperial Wizard Sam Bowers in connection with the 1966 killing of NAACP leader Vernon Dahmer.',
	        'unit': 'Timeline.DateTime.DAY'
        },    
        
        
        {
	        'start': '1998-06-22',
	        'title': 'Firebombing suspect photographed golfing',
	        'description': 'Twelve days after telling a judge he was too ill for jail in connection for the Dahmer firebombing, Deavours Nix is seen golfing.<br/><a href="http://www.footnote.com/image/242619802/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242619802/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242619802/'    
        },            
        
        
        
        {
	        'start': '1998-08-22',
	        'title': 'Bowers sentenced to life in prison',
	        'description': '32 years after the murder of Vernon Dahmer, Samuel Bowers is convicted of ordering the firebombing.<br/><a href="http://www.footnote.com/image/242619720/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242619720/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242619720/'    
        },            
        
                
        // Medgar Evers
        
        {
	        'start': '1963-06-12',
	        'title': 'Medgar Evers shot',
	        'description': 'A sniper shoots Mississippi NAACP Field Secretary Medgar Evers in the back in the driveway of his Jackson home. White Supremacist Byron De La Beckwith is arrested June 23.<br/><a href="http://www.footnote.com/image/237314067/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/237314067/80/100.jpg',
	        'link': 'http://www.footnote.com/image/237314067/'    
        },
        
        {
	        'start': '1963-06-23',
	        'title': 'FBI nabs Greenwood man in Evers murder',
	        'description': '42-year-old Byron De La Beckwith is arrested.<br/><a href="http://www.footnote.com/image/237315714/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/237315714/80/100.jpg',
	        'link': 'http://www.footnote.com/image/237315714/'    
        },
        
        {
	        'start': '1963-06-24',
	        'title': 'Californian is charged with murder of Evers',
	        'description': 'The Clarion-Ledger prints its most famous headline.<br/><a href="http://www.footnote.com/image/237315896/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/237315896/80/100.jpg',
	        'link': 'http://www.footnote.com/image/237315896/'    
        },
                
        
        {
	        'start': '1989-10-01',
	        'title': 'Clarion-Ledger reports that state secretly assisted Beckwith defense in 1964',
	        'description': 'The Sovereignty Commission screened potential jurors for Byron De La Beckwith in 1964 for his trials in the slaying of NAACP Field Secretary Medgar Evers. The revelation prompts prosecutors to investigate the commission action, and sets in motion a probe that leads to a third trial of Beckwith.<br/><a href="http://www.footnote.com/image/242897697/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242897697/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242897697/'    
        },
                
       /*
 {
	        'start': '1989-10-18',
	        'title': 'Beckwith arrested',
	        'description': '...',
	        'unit': 'Timeline.DateTime.DAY',
        }, 
*/               
                
        {
	        'start': '1994-02-05',
	        'title': 'Beckwith convicted',
	        'description': 'A Panola County jury sitting in Jackson convicts Byron De La Beckwith of murder. He is sentenced to life in prison.',
	        'unit': 'Timeline.DateTime.DAY'
        },    
        
        // James Ford Seale
        
        {
	        'start': '2007-06-15',
	        'title': 'James Ford Seale convicted',
	        'description': 'Klansman is convicted for his role in the abduction and killing of Henry Hezekiah Dee and Charles Eddie Moore in 1964.<br/><a href="http://www.footnote.com/image/242619709/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242619709/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242619709/'    
        },        
        
        // Mississippi Burning case
        
        {
	        'start': '1964-06-21',
	        'title': 'Mississippi Burning murders',
	        'description': 'James Chaney, 21, of Meridian, and Andrew Goodman, 20, and Michael Schwerner, 24, both of New York, are kidnapped and killed by the Ku Klux Klan outside Philadelphia, MI after they go to investigate the burning of Mount Zion Methodist Church. The church is destroyed and members beaten because it was scheduled to host a freedom school.<br/><a href="http://www.footnote.com/image/242517565/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242517565/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242517565/'    
        },
        
        {
	        'start': '1964-06-30',
	        'title': 'FBI distributes photos of missing civil rights workers',
	        'description': 'Pictures published nine days after their disappearance.<br/><a href="http://www.footnote.com/image/242517857/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242517857/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242517857/'    
        },        
        
        {
	        'start': '1964-07-01',
	        'title': 'Officers follow leads of missing civil rights workers.',
	        'description': '<a href="http://www.footnote.com/image/243303572/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/243303572/80/100.jpg',
	        'link': 'http://www.footnote.com/image/243303572/'    
        },        
                
        
        {
	        'start': '1964-08-04',
	        'title': 'FBI find bodies of missing civil rights workers',
	        'description': 'After 44 days, FBI agents find the bodies of James Chaney, Andrew Goodman and Michael Schwerner buried 15 feet beneath an earthen dam in Neshoba County.<br/><a href="http://www.footnote.com/image/243117264/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/243117264/80/100.jpg',
	        'link': 'http://www.footnote.com/image/243117264/'    
        },              
        
        
        
        // MLK
        
        
        {
	        'start': '1964-12-11',
	        'title': 'Martin Luther King, Jr wins Nobel Peace Prize',
	        'description': 'King award receives a small mention in the Jackson Daily News and none in the Clarion-Ledger.<br/><a href="http://www.footnote.com/image/242524355/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242524355/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242524355/'    
        },
        
        {
	        'start': '1968-04-04',
	        'title': 'Martin Luther King, Jr assassinated',
	        'description': 'Florida Today covers the King slaying.<br/><a href="http://www.footnote.com/image/230871198/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/230871198/80/100.jpg',
	        'link': 'http://www.footnote.com/image/230871198/'    
        },
                
        {
	        'start': '1968-04-05',
	        'title': 'Jackson negroes rumble',
	        'description': 'Jackson Daily News covers the King slaying.<br/><a href="http://www.footnote.com/image/242888897/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/242888897/80/100.jpg',
	        'link': 'http://www.footnote.com/image/242888897/'    
        },
        
        {
	        'start': '1968-04-05',
	        'title': 'Tight security imposed after slaying of King',
	        'description': 'The Clarion-Ledger covers the King slaying.<br/><a href="http://www.footnote.com/image/243053595/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/243053595/80/100.jpg',
	        'link': 'http://www.footnote.com/image/243053595/'    
        },
        
        {
	        'start': '1968-04-05',
	        'title': 'Johnson issues plea for end to violence',
	        'description': 'Poughkeepsie Journal covers the King slaying.<br/><a href="http://www.footnote.com/image/230106536/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/230106536/80/100.jpg',
	        'link': 'http://www.footnote.com/image/230106536/'    
        },      
        
        // Misc
        
        {
	        'start': '1964-07-02',
	        'title': 'Civil Rights Act signed into law by President Johnson',
	        'description': 'The act outlawed segregation in businesses such as theaters, restaurants, and hotels. It banned discriminatory practices in employment and ended segregation in public places such as swimming pools, libraries, and public schools.<br/><a href="http://www.footnote.com/image/230106536/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/230106536/80/100.jpg',
	        'link': 'http://www.footnote.com/image/230106536/'    
        },                                                              
        
        // Birmingham Bombings
        
        {
	        'start': '1963-09-15',
	        'title': 'Birmingham Church Bombing',
	        'description': 'An explosion rips through the 16th Street Baptist Church in Birmingham, killing four children: Addie Mae Collins, Denise McNair, Carole Robertson and Cynthia Wesley.<br/><a href="http://www.footnote.com/image/243122100/">more &raquo;</a>',
	        'unit': 'Timeline.DateTime.DAY',
	        'icon': 'http://img7.footnote.com/img/thumbnail/243122100/80/100.jpg',
	        'link': 'http://www.footnote.com/image/243122100/'     
        }
        ]
}

var tl;
        function onLoad() {
            var tl_el = document.getElementById("tl");
            var eventSource = new Timeline.DefaultEventSource();

            var theme = Timeline.ClassicTheme.create();
            theme.autoWidth = false; // Set the Timeline's "width" automatically.
                                     // Set autoWidth on the Timeline's first band's theme,
                                     // will affect all bands.
            theme.timeline_start = new Date(Date.UTC(1963, 0, 6));
            theme.timeline_stop  = new Date(Date.UTC(2010, 0, 1));
            
            var d = "Jun 01 1963 13:00:00 GMT-0600"

            var bandInfos = [
                 Timeline.createHotZoneBandInfo({
                 zones: [
                     {   start:    "Jun 01 1963 00:00:00 GMT-0500",
                         end:      "Jul 01 1963 00:00:00 GMT-0500",
                         magnify:  100,
                         unit:     Timeline.DateTime.MONTH
                     },
                     {   start:    "Jun 01 1964 00:00:00 GMT-0500",
                         end:      "Sep 01 1964 00:00:00 GMT-0500",
                         magnify:  100,
                         unit:     Timeline.DateTime.MONTH
                     },
                     {   start:    "Jan 02 1966 06:00:00 GMT-0500",
                         end:      "Jan 31 1966 12:00:00 GMT-0500",
                         magnify:  40,
                         unit:     Timeline.DateTime.MONTH
                     },
                     {   start:    "Oct 01 1967 06:00:00 GMT-0500",
                         end:      "Oct 30 1967 12:00:00 GMT-0500",
                         magnify:  150,
                         unit:     Timeline.DateTime.MONTH
                     },
                     {   start:    "Apr 01 1968 06:00:00 GMT-0500",
                         end:      "Apr 15 1968 12:00:00 GMT-0500",
                         magnify:  150,
                         unit:     Timeline.DateTime.MONTH
                     },
                     {   start:    "Jan 01 1970 06:00:00 GMT-0500",
                         end:      "Dec 31 1990 12:00:00 GMT-0500",
                         magnify:  .5,
                         unit:     Timeline.DateTime.DECADE
                     }
                 ],
                 timeZone:       -5,
                 eventSource:    eventSource,
                 date:           "Jun 28 1963 00:00:00 GMT",
                 width:          "90%", 
                 intervalUnit:   Timeline.DateTime.YEAR, 
                 intervalPixels: 50,
                 eventPainter:   Timeline.CompactEventPainter,
                 eventPainterParams: {
                        iconLabelGap:     5,
                        labelRightMargin: 5,
                        
                        iconWidth:        80, // These are for per-event custom icons
                        iconHeight:       80,
                        
                        stackConcurrentPreciseInstantEvents: {
                            limit: 5,
                            moreMessageTemplate:    "%0 More Events"
                            
                        }
                    }

             }),                
                Timeline.createBandInfo({
                	eventSource:	eventSource,
                	layout:			'overview',
                    date:			d,
                	showEventText:  false,
        			trackHeight:    0.5,
        			trackGap:       0.2,
			        width:          "10%", 
			        intervalUnit:   Timeline.DateTime.DECADE, 
			        intervalPixels: 100
			    })
				                
                
                
            ];
                                                            
            // create the Timeline
            bandInfos[1].syncWith = 0;
            bandInfos[1].highlight = true;
            //bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout());
            
            tl = Timeline.create(tl_el, bandInfos, Timeline.HORIZONTAL);
            
            var url = '.'; // The base url for image, icon and background image
                           // references in the data
            eventSource.loadJSON(timeline_data, url); // The data was stored into the 
                                                       // timeline_data variable.
            tl.layout(); // display the Timeline
        }
        
        var resizeTimerID = null;
        function onResize() {
            if (resizeTimerID == null) {
                resizeTimerID = window.setTimeout(function() {
                    resizeTimerID = null;
                    tl.layout();
                }, 500);
            }
        }