<!--

image1 = new Image();
image1.src = "/images/plate.gif";

image2 = new Image();
image2.src = "/images/blue/left.jpg";

image3 = new Image();
image3.src = "/images/green/left.jpg";

image4 = new Image();
image4.src = "/images/purple/left.jpg";

image5 = new Image();
image5.src = "/images/yellow/left.jpg";


function selectstart()   {
    window.event.cancelBubble = true;
    window.event.returnValue = false;
    return false;
}


if(document.layers) window.captureEvents(Event.MOUSEDOWN);


function moveto(id, new_left, new_top){
document.getElementById(id).style.left = new_left;
document.getElementById(id).style.top = new_top;
document.getElementById(id).style.filter= "none"
}

function on(id){
document.getElementById(id).style.filter= "Shadow(direction=135,color='black',strength=3)"
}


function glow() {

          if (btn1) {
              	if (event.srcElement.id == "btn1") {
		word.style.filter= "Glow(color='#103070', Strength='4')"
		word.style.color="white"
              }

              	if (event.srcElement.id == "btn2") {
                word2.style.filter= "Glow(color='#207C78', Strength='4')"
		word2.style.color="white"
              }

		if (event.srcElement.id == "btn3") {
               	word3.style.filter= "Glow(color='purple', Strength='4')"
		word3.style.color="white"
              }

		if (event.srcElement.id == "btn4") {
               	word4.style.filter= "Glow(color='yellow', Strength='4')"
		word4.style.color="white"
              }

		if (event.srcElement.id == "btn5") {
		word5.style.filter= "Glow(color='#103070', Strength='4')"
		word5.style.color="white"
              }

		if (event.srcElement.id == "btn6") {
              	word6.style.filter= "Glow(color='#207C78', Strength='4')"
		word6.style.color="white"
              }

		if (event.srcElement.id == "btn7") {
              	word7.style.filter= "Glow(color='purple', Strength='4')"
		word7.style.color="white"
              }

		if (event.srcElement.id == "btn8") {
              	word8.style.filter= "Glow(color='yellow', Strength='4')"
		word8.style.color="white"
              }

          } else {
                return false
          }
}


function glownot() {

          if (btn1) {
              	if (event.srcElement.id == "btn1") {
		word.style.filter= "none"
		word.style.color="black"
              }

              	if (event.srcElement.id == "btn2") {
                word2.style.filter= "none"
		word2.style.color="black"
              }

		if (event.srcElement.id == "btn3") {
               	word3.style.filter= "none"
		word3.style.color="black"
              }

		if (event.srcElement.id == "btn4") {
               	word4.style.filter= "none"
		word4.style.color="black"
              }

		if (event.srcElement.id == "btn5") {
		word5.style.filter= "none"
		word5.style.color="black"
              }

		if (event.srcElement.id == "btn6") {
              	word6.style.filter= "none"
		word6.style.color="black"
              }

		if (event.srcElement.id == "btn7") {
              	word7.style.filter= "none"
		word7.style.color="black"
              }

		if (event.srcElement.id == "btn8") {
              	word8.style.filter= "none"
		word8.style.color="black"
              }

          } else {
                return false
          }
}


document.onmouseover = function ( e ) {
if ( !e ) e = window.event;
var el = e.target ? e.target : e.srcElement;
while ( el != null && el.tagName != "A" )
el = el.parentNode;
if ( el == null )
return;
if ( e.preventDefault )
e.preventDefault();
else
e.returnValue = true;
};


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

  text = new animatedObject('word', 'no', 25, 25, 'null', '-20,12, -15,12, -10,12, -8,12, -5,12, -3,12, 0,12, 3,12, 5,12, 3,12, 0,12, -3,12, -5,12, -3,12, 0,12');
  text1 = new animatedObject('word2', 'no', 25, 25, 'null', '-20,45, -15,45, -10,45, -8,45, -5,45, -3,45, 0,45, 3,45, 5,45, 3,45, 0,45, -3,45, -5,45, -3,45, 0,45');
  text2 = new animatedObject('word3', 'no', 25, 25, 'null', '-20,74, -15,74, -10,74, -8,74, -5,74, -3,74, 0,74, 3,74, 5,74, 3,74, 0,74, -3,74, -5,74, -3,74, 0,74');
  text3 = new animatedObject('word4', 'no', 25, 25, 'null', '-20,110, -15,110, -10,110, -8,110, -5,110, -3,110, 0,110, 3,110, 5,110, 3,110, 0,110, -3,110, -5,110, -3,110, 0,110');
  text4 = new animatedObject('word5', 'no', 25, 25, 'null', '-20,150, -15,150, -10,150, -8,150, -5,150, -3,150, 0,150, 3,150, 5,150, 3,150, 0,150, -3,150, -5,150, -3,150, 0,150');
  text5 = new animatedObject('word6', 'no', 25, 25, 'null', '-20,198, -15,198, -10,198, -8,198, -5,198, -3,198, 0,198, 3,198, 5,198, 3,198, 0,198, -3,198, -5,198, -3,198, 0,198');
  text6 = new animatedObject('word7', 'no', 25, 25, 'null', '-20,238, -15,238, -10,238, -8,238, -5,238, -3,238, 0,238, 3,238, 5,238, 3,238, 0,238, -3,238, -5,238, -3,238, 0,238');
  text7 = new animatedObject('word8', 'no', 25, 25, 'null', '-20,271, -15,271, -10,271, -8,271, -5,271, -3,271, 0,271, 3,271, 5,271, 3,271, 0,271, -3,271, -5,271, -3,271, 0,271');

  animationTimeline[0] = new Array();
  animationTimeline[0][5] = 'text.show(); text.animate();';
  animationTimeline[0][9] = 'text1.show(); text1.animate();';
  animationTimeline[0][13] = 'text2.show(); text2.animate();';
  animationTimeline[0][17] = 'text3.show(); text3.animate();';
  animationTimeline[0][21] = 'text4.show(); text4.animate();';
  animationTimeline[0][25] = 'text5.show(); text5.animate();';
  animationTimeline[0][29] = 'text6.show(); text6.animate();';
  animationTimeline[0][33] = 'text7.show(); text7.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);



function init() {
	DynLayerInit()

	gibson.path1 = new Path(gibson,"path1",
	// x values
	new Array(182,167,154,139,129),
	// y values
	new Array(-39,-26,-14,-2,10))
	gibson.path1.play(false,24)

	gibson2.path2 = new Path(gibson2,"path2",
	// x values
	new Array(182,167,154,139,129,120,113,108),
	// y values
	new Array(-39,-26,-14,-2,10,24,35,42))
	gibson2.path2.play(false,24)

	gibson3.path3 = new Path(gibson3,"path3",
	// x values
	new Array(182,167,154,139,129,120,113,108,103,98,94),
	// y values
	new Array(-39,-26,-14,-2,10,24,35,42,58,65,78))
	gibson3.path3.play(false,24)

	gibson4.path4 = new Path(gibson4,"path4",
	// x values
	new Array(182,167,154,139,129,120,113,108,103,98,94,88,85,82),
	// y values
	new Array(-39,-26,-14,-2,10,24,35,42,58,65,78,96,105,116))
	gibson4.path4.play(false,24)

	gibson5.path5 = new Path(gibson5,"path5",
	// x values
	new Array(182,167,154,139,129,120,113,108,103,98,94,88,85,82,79,76,73),
	// y values
	new Array(-39,-26,-14,-2,10,24,35,42,58,65,78,96,105,116,129,143,155))
	gibson5.path5.play(false,24)

	gibson6.path6 = new Path(gibson6,"path6",
	// x values
	new Array(182,167,154,139,129,120,113,108,103,98,94,88,85,82,79,76,73,70,69,68),
	// y values
	new Array(-39,-26,-14,-2,10,24,35,42,58,65,78,96,105,116,129,143,155,170,183,195))
	gibson6.path6.play(false,24)

	gibson7.path7 = new Path(gibson7,"path7",
	// x values
	new Array(182,167,154,139,129,120,113,108,103,98,94,88,85,82,79,76,73,70,69,68,67,66,65),
	// y values
	new Array(-39,-26,-14,-2,10,24,35,42,58,65,78,96,105,116,129,143,155,170,183,195,207,221,234))
	gibson7.path7.play(false,24)

	gibson8.path8 = new Path(gibson8,"path8",
	// x values
	new Array(182,167,154,139,129,120,113,108,103,98,94,88,85,82,79,76,73,70,69,68,67,66,65,64,63,63),
	// y values
	new Array(-39,-26,-14,-2,10,24,35,42,58,65,78,96,105,116,129,143,155,170,183,195,207,221,234,247,263,274))
	gibson8.path8.play(false,24)
}

//-->