/* prontoCached on 9/9/2010 7:55:01 AM */
function showTimelineBox(){
	  var  showTL=getCookie('showTL');
     if (showTL==null) 
     {
     setCookie('showTL','yes',365)
     }
     else
     {
     	showTimeline();
     }
    return false;
}

var tl;
var theme = Timeline.ClassicTheme.create();

theme.event.bubble.width = 250;
theme.event.bubble.height = 170;


function showTimeline() {
	      urchinTracker('/Timeline');
      	document.getElementById("my-timeline").style.display = 'block';
      	$("intro").style.display = 'none';
      	$("launch").style.display = 'none';
      	$("instructions").style.display = 'block';
      	var eventSource = new Timeline.DefaultEventSource();
      	var dt =  new Date();
  			var bandInfos = [
    		Timeline.createBandInfo({
    		 eventSource:    eventSource,
         date:           dt.toGMTString(),
     	   width:          "80%", 
     	   intervalUnit:   Timeline.DateTime.WEEK, 
     	   intervalPixels: 100,
     	   theme: theme
    		}),
    		Timeline.createBandInfo({
    			showEventText:  false,
          trackHeight:    0.5,
          trackGap:       0.2,
          eventSource:    eventSource,
    			Date:           dt.toGMTString(),
      	  width:          "20%", 
      	  intervalUnit:   Timeline.DateTime.MONTH, 
      	  intervalPixels: 200,
      	  theme: theme
    		})
  			];
  			bandInfos[1].syncWith = 0;
        bandInfos[1].highlight = true;
  			tl = Timeline.create(document.getElementById("my-timeline"), bandInfos);
  			Timeline.loadXML("/dataaccess/timeline.xml?uncache=" + uncache(), function(xml, url) { eventSource.loadXML(xml, url); });
      }
