public TimelinePanel()
	{
		super();
		
		//create the mouselisteners
		addMouseListener(this);
		addMouseMotionListener(this);
		
		//set the background
		setBackground(Color.WHITE);

		//set up the timeline variables
		timelineToday = System.currentTimeMillis();
		timelineToday = timelineToday - timelineToday%(1000L*60*60*24);
		timelineBegin = timelineToday-(1000L*60*60*24*PAST_DAYS);
		timelineEnd = timelineToday+(1000L*60*60*24*FUTURE_DAYS);

		//set up the day markers
		for(int i=-PAST_DAYS; i<=FUTURE_DAYS; ++i)
			markers[i+PAST_DAYS] = timelineToday+(1000*60*60*24*i);

		//get the episodes to go on the timeline
		episodes = ShowTracker.getTimelineEpisodes(timelineBegin, timelineEnd);
		points = new long[episodes.length];
		for(int i=0; i<episodes.length; ++i)
			points[i] = episodes[i].getAirDate().getMillis() + TimeZone.getDefault().getRawOffset();
	}