// Created by ARDORA www.webardora.net
//ardoraTimeLine.js
var tl;var isFull=false;
function onLoad() {
 $("#ButFull").click(function (){if (isFull) {isFull=false;fullScreenCancel();}else{isFull=true;fullScreen()}})
Timeline.strings["es"] = {wikiLinkLabel:  "Ligazóns"};
   var eventSource = new Timeline.DefaultEventSource();
   var themeC = Timeline.ClassicTheme.create();
   themeC.event.bubble.width = 400;
   var d = Timeline.DateTime.parseIso8601DateTime("2000-01-01T00:00:00+01:00");
   var bandInfos = [
      Timeline.createBandInfo({
         eventSource:    eventSource,
         theme:	  themeC,
         date:           d,
         width:          "90%",
         layout:         "original",
         highlight:      true,
         intervalUnit:   Timeline.DateTime.YEAR,
         intervalPixels: 100
      }),
      Timeline.createBandInfo({
         eventSource:    eventSource,
         theme:	  themeC,
         date:           d,
         width:          "10%",
         layout:         "original",
         highlight:      true,
         intervalUnit:   Timeline.DateTime.MONTH,
         intervalPixels: 50
      })
   ];
   bandInfos[1].syncWith = 0;
   bandInfos[1].highlight = true;
   tl = Timeline.create(document.getElementById("tl"), bandInfos);
   tl.timeline_start = new Date(Date.UTC(1900,1,1));
   Timeline.loadXML("../ardoraWorkFiles/ce_linaV7/ce_linaV7.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);
   }
}
function fullScreen() {
var docElement, request;docElement = document.getElementById("divFull");
request = docElement.requestFullScreen || docElement.webkitRequestFullScreen || docElement.mozRequestFullScreen || docElement.msRequestFullScreen;
if (typeof request != "undefined" && request) {request.call(docElement);}}
function fullScreenCancel() {
var docElement, request;docElement = document;
request = docElement.cancelFullScreen || docElement.webkitCancelFullScreen || docElement.mozCancelFullScreen || docElement.msCancelFullScreen || docElement.exitFullscreen;
if (typeof request != "undefined" && request) {request.call(docElement);}}
