<!-- hide from old browsers

function animatedObject(elementName,loop,speed,steps,endRoutines,route){
  this.elementName = elementName;
  this.loop = loop;
  this.speed = speed;
  this.steps = steps;
  this.frameIndex = 0;
  this.endRoutines = endRoutines;
  this.route = route.split(',');
  this.animate = animateObject;
  this.move = moveObject;
  this.show = showObject;
  this.hide = hideObject;

  animatedObjects[elementName] = this;
}

function stopTimeline(timelineNumber){
   animationTime[timelineNumber] = animationTimeline[timelineNumber].length;
}

function startTimeline(timelineNumber) {
  animationTime[timelineNumber] = 0;
  timelineController(timelineNumber);
}

function timelineController(timelineNumber) {
    if (animationTime[timelineNumber] <= animationTimeline[timelineNumber].length - 1) {
      animationTime[timelineNumber]++;
        if (animationTimeline[timelineNumber][animationTime[timelineNumber]] != null){
          eval(animationTimeline[timelineNumber][animationTime[timelineNumber]]);
        }
        setTimeout('timelineController(' + timelineNumber + ')', 100);
    }
}

function showObject(){
  eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.visibility = "visible"');
}
        
function hideObject(){
  eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.visibility = "hidden"');
}
  

function moveObject(left, top){
  eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.top = top');
  eval(layerObj + '["' + this.elementName + '"]' + styleObj + '.left = left');
}

function animateObject(){
    if (this.route.length > 4 && this.frameIndex < this.route.length)  {
      this.move(this.route[this.frameIndex], this.route[this.frameIndex + 1]);
      this.frameIndex += 2;
      setTimeout('animatedObjects["' + this.elementName + '"].animate()', this.speed);
    }
    else if (this.route.length == 4 && this.frameIndex <= this.steps) {
      this.move(parseInt(this.route[0]) + (this.frameIndex * ((parseInt(this.route[2]) - parseInt(this.route[0])) / this.steps)), parseInt(this.route[1]) + (this.frameIndex * ((parseInt(this.route[3]) - parseInt(this.route[1])) / this.steps)));
      this.frameIndex++;
      setTimeout('animatedObjects["' + this.elementName + '"].animate()', this.speed);         
    }
    else {
      eval(this.endRoutines + "");
      this.frameIndex = 0;
        if (this.loop == "yes"){
          this.animate();
        }
    }
}


function initAnimation() {
  layerObj = (isNS) ? 'document' : 'document.all';
  styleObj = (isNS) ? '' : '.style';
  animationTime = new Array();
  animationTimeline = new Array();
  animatedObjects = new Object();
  
  Image1 = new animatedObject('Bldg1', 'no', 35, 65, 'null', '-400,500,-35,232');
  Image2 = new animatedObject('Bldg2', 'no', 35, 65, 'null', '-20,-260,-20,5');
  Image3 = new animatedObject('Bldg3', 'no', 35, 65, 'null', '-425,10,285,20');
  Image4 = new animatedObject('Bldg4', 'no', 35, 65, 'null', '400,-300,520,225');
  Image4B = new animatedObject('Bldg4B', 'no', 35, 65, 'null', '520,225,520,225');
  Image4C = new animatedObject('Bldg4C', 'no', 35, 65, 'null', '520,225,520,225');
  Image5 = new animatedObject('Bldg5', 'no', 35, 65, 'null', '620,-400,615,13');
  Link1 = new animatedObject('Link','no',50,50,'null','200,-80,540,400');   
  Pullout1 = new animatedObject('Text1','no',50,50,'null','250,700,250,270');  
  Link2 = new animatedObject('TramCar1','no',50,50,'null','250,700,250,270');  
  Link3 = new animatedObject('Exit','no',80,80,'null','300,270,300,270');  
  Logo = new animatedObject('Title1','yes',120,120,'null','-550,27,1130,27');  
  N1 = new animatedObject('Nav1', 'no', 10, 10, 'null', '-40,0,-40,0');
  OV = new animatedObject('Overlay', 'no', 80, 80, 'null', '0,0,0,0');   


  animationTimeline[0] = new Array();
  animationTimeline[0][01] = 'Image2.show(); Image2.animate();'
  animationTimeline[0][02] = 'Image3.show(); Image3.animate();'
  animationTimeline[0][03] = 'Image1.show(); Image1.animate();'
  animationTimeline[0][04] = 'Image4.show(); Image4.animate();'
  animationTimeline[0][05] = 'Image5.show(); Image5.animate();'
  animationTimeline[0][50] = 'Pullout1.show(); Pullout1.animate();'
  animationTimeline[0][85] = 'Logo.show(); Logo.animate();'
  animationTimeline[0][100] = 'Image4B.show();'
  animationTimeline[0][140] = 'Image4C.show();'
  animationTimeline[0][180] = 'Image4C.hide();'
  animationTimeline[0][220] = 'Image4B.hide();'
  animationTimeline[0][240] = 'Link1.show(); Link1.animate();'
  animationTimeline[0][260] = 'Image4B.show();'
  animationTimeline[0][280] = 'N1.show();'
  animationTimeline[0][300] = 'Image4C.show();'
  animationTimeline[0][340] = 'Image4C.hide();'
  animationTimeline[0][380] = 'Image4B.hide();'


startTimeline(0);

}


function initAnimationB() {
  layerObj = (isNS) ? 'document' : 'document.all';
  styleObj = (isNS) ? '' : '.style';
  animationTime = new Array();
  animationTimeline = new Array();
  animatedObjects = new Object();
  
  Image1 = new animatedObject('Bldg1', 'no', 35, 65, 'null', '-35,232,-400,500');
  Image2 = new animatedObject('Bldg2', 'no', 35, 65, 'null', '-20,5,-20,-260');
  Image3 = new animatedObject('Bldg3', 'no', 35, 65, 'null', '285,20,-425,10');
  Image4 = new animatedObject('Bldg4', 'no', 35, 65, 'null', '520,225,400,-300');
  Image4B = new animatedObject('Bldg4B', 'no', 35, 65, 'null', '520,225,0,-200');
  Image4C = new animatedObject('Bldg4C', 'no', 35, 65, 'null', '520,225,-280,200');
  Image5 = new animatedObject('Bldg5', 'no', 35, 65, 'null', '615,13,620,-400');
  Link1 = new animatedObject('Link','no',50,50,'null','200,-80,540,400');   
  Pullout1 = new animatedObject('Text1','no',50,50,'null','250,270,250,700');  
  Link2 = new animatedObject('TramCar1','no',60,60,'null','-180,200,280,250');  
  Link3 = new animatedObject('Exit','no',60,60,'null','296,285,296,285');  
  Logo = new animatedObject('Title1','yes',120,120,'null','-550,27,1130,27');
  N1 = new animatedObject('Nav1', 'no', 10, 10, 'null', '-40,0,-40,0'); 
  OV = new animatedObject('Overlay', 'no', 80, 80, 'null', '0,0,0,0');   


  animationTimeline[0] = new Array();
  animationTimeline[0][01] = 'N1.hide();Image2.show(); Image2.animate();Pullout1.hide();Link1.hide();Logo.hide();'
  animationTimeline[0][02] = 'Image3.show(); Image3.animate();'
  animationTimeline[0][03] = 'Image1.show(); Image1.animate();'
  animationTimeline[0][04] = 'Image4.show(); Image4.animate();'
  animationTimeline[0][05] = 'Image5.show(); Image5.animate();'
  animationTimeline[0][06] = 'Image4C.show(); Image4C.animate();'
  animationTimeline[0][08] = 'Image4B.show(); Image4B.animate();'
  animationTimeline[0][90] = 'Link2.show(); Link2.animate();'
  animationTimeline[0][220] = 'Link3.show(); Link3.animate();'
 
startTimeline(0);

}

function initAnimationNav() {
  layerObj = (isNS) ? 'document' : 'document.all';
  styleObj = (isNS) ? '' : '.style';
  animationTime = new Array();
  animationTimeline = new Array();
  animatedObjects = new Object();
  
  Logo = new animatedObject('Title1','yes',120,120,'null','-550,27,1130,27');
  Link1 = new animatedObject('Link','no',50,50,'null','200,-80,540,400');  
  N1 = new animatedObject('Nav1', 'no', 10, 10, 'null', '-40,0,-40,0');
  N1A = new animatedObject('Nav1A', 'no', 10, 10, 'null', '-40,0,-40,0');
  N2 = new animatedObject('Nav2', 'no', 10, 18, 'null', '-600,1,-23,1');
  N3 = new animatedObject('Nav3', 'no', 10, 12, 'null', '-38,24,-38,48');
  N4 = new animatedObject('Nav4', 'no', 10, 12, 'null', '-38,24,-38,1');
  NLK1 = new animatedObject('NLink1', 'no', 90, 90, 'null', '-38,2,-38,2');
  OV = new animatedObject('Overlay', 'no', 20, 20, 'null', '-40,0,-40,0');

  animationTimeline[0] = new Array();
  animationTimeline[0][01] = 'OV.show();N2.show();N2.animate();N1A.show();'
  animationTimeline[0][22] = 'N3.show();N3.animate();N4.show();N4.animate();'
  animationTimeline[0][40] = 'NLK1.show();'

startTimeline(0);

}

function initAnimationNavC() {
  layerObj = (isNS) ? 'document' : 'document.all';
  styleObj = (isNS) ? '' : '.style';
  animationTime = new Array();
  animationTimeline = new Array();
  animatedObjects = new Object();

  Logo = new animatedObject('Title1','yes',120,120,'null','-550,27,1130,27');
  Link1 = new animatedObject('Link','no',50,50,'null','200,-80,540,400');  
  N1 = new animatedObject('Nav1', 'no', 10, 10, 'null', '-40,0,-40,0');
  N1A = new animatedObject('Nav1A', 'no', 10, 10, 'null', '-40,0,-40,0');
  N2 = new animatedObject('Nav2', 'no', 10, 15, 'null', '-23,1,-600,1');
  N3 = new animatedObject('Nav3', 'no', 10, 12, 'null', '-28,48,-28,24');
  N4 = new animatedObject('Nav4', 'no', 10, 12, 'null', '-28,1,-28,24');
  NLK1 = new animatedObject('NLink1', 'no', 90, 90, 'null', '-38,2,-38,2');
  T1 = new animatedObject('Text1', 'no', 10, 10, 'null', '-20,105,45,105');
  OV = new animatedObject('Overlay', 'no', 20, 20, 'null', '-40,0,-40,0');

  animationTimeline[0] = new Array();
  animationTimeline[0][01] = 'OV.show();N3.show();N3.animate();N4.show();N4.animate();NLK1.hide();'
  animationTimeline[0][12] = 'N2.show();N2.animate();N3.hide();N4.hide();'
  animationTimeline[0][25] = 'N1A.hide();OV.hide();'


startTimeline(0);

}

var layerObj, styleObj, totalTime, currTime;
var animationTime, animationTimeline, animatedObjects;
var bon, boff;

var isNS = (document.layers);
var isDHTML = (document.layers || document.all);

// -->

