<!--//

       var dummy = 1;

       agent = navigator.userAgent

       var Version = 2;



       if (agent.indexOf("a/4") != -1)Version = 3;

       else if (agent.indexOf("a/3") != -1)Version = 2;

       else if (agent.indexOf("a/4") != -1)Version = 4;

       else if (agent.indexOf("MSIE") != -1)Version = 5;

       else Version = 2;



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() {

if (Version == 3) { 

  layerObj = (isNS) ? 'document' : 'document.all';

  styleObj = (isNS) ? '' : '.style';



  animationTime = new Array();

  animationTimeline = new Array();

  animatedObjects = new Object();


header1 = new animatedObject('salvia3', 'no', 10, 10, 'null', '0,-300,0,0');

  animationTimeline[0] = new Array();

  animationTimeline[0] = new Array();

  animationTimeline[0][10] = 'header1.show(); header1.animate();';

  startTimeline(0);


} 

  }



var layerObj, styleObj, totalTime, currTime;

var animationTime, animationTimeline, animatedObjects;

var bon, boff;



var isNS = (navigator.appName == "Netscape");

var isDHTML = (parseInt(navigator.appVersion) > 3);

//-->