
var isIE=document.all?true:false;
var isNS6=!isIE&&document.getElementById?true:false;
var old=!isNS4&&!isNS6&&!isIE;

function animObj(ELNam,loop,speed,steps,endR,route){
  this.ELNam = ELNam;
  this.loop = loop;
  this.speed = speed;
  this.steps = steps;
  this.frameIndex = 0;
  this.endR = endR;
  this.route = route.split(',');
  this.animate = aniObj;
  this.move = moveObj;
  this.show = showObj;
  this.hide = hideObj;

  animObjs[ELNam] = this;
}

function stopTL(TLNum){ animTime[TLNum] = animTL[TLNum].length }

function startTL(TLNum) {animTime[TLNum] = 0; TLCtl(TLNum) }

function TLCtl(TLNum) {
    if (animTime[TLNum] <= animTL[TLNum].length - 1) {
      animTime[TLNum]++;
        if (animTL[TLNum][animTime[TLNum]] != null){
          eval(animTL[TLNum][animTime[TLNum]]);
        }
        setTimeout('TLCtl(' + TLNum + ')', 100);
    }
}

function showObj(){
  eval(layerObj + '["' + this.ELNam + '"]' + endlayerObj + styleObj + '.visibility = "visible"');
}
        
function hideObj(){
  eval(layerObj + '["' + this.ELNam + '"]' + endlayerObj + styleObj + '.visibility = "hidden"');
}
  
function moveObj(left, top){
  eval(layerObj + '["' + this.ELNam + '"]' + endlayerObj + styleObj + '.top = top');
  eval(layerObj + '["' + this.ELNam + '"]' + endlayerObj + styleObj + '.left = left');
}

function aniObj(){
    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('animObjs["' + this.ELNam + '"].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('animObjs["' + this.ELNam + '"].animate()', this.speed);         
    }
    else {
      eval(this.endR + "");
      this.frameIndex = 0;
        if (this.loop == "yes"){ this.animate() }
    }
}

function initAnim() {
 
  layerObj = (isNS4) ? 'document' : 'document.all';
  styleObj = (isNS4) ? '' : '.style';

  if (isNS6) {layerObj = 'document.getElementById('; endlayerObj =')'};
  if (!isNS6){endlayerObj=''};

  animTime = new Array();
  animTL = new Array();
  animObjs = new Object();
  
  tm3 = new animObj('tm3L', 'no', 25, 125, 'null', '150,230,150,382');
  tmx = new animObj('tmxL', 'no', 25, 25, 'null', '0,0,0,0'); 
  tmy = new animObj('tmyL', 'no', 25, 25, 'null', '0,0,0,0'); 
  tmz = new animObj('tmzL', 'no', 25, 25, 'null', '0,0,0,0'); 
  //tmr = new animObj('tmrL', 'no', 25, 25, 'null', '0,0,0,0'); 

  animTL[0] = new Array();
  animTL[0][1] = 'tm3.show();';
  animTL[0][5] = 'tmx.show();'; 
  animTL[0][10] = 'tmy.show();';   
  animTL[0][15] = 'tmz.show();';
  //animTL[0][20] = 'tmr.show();';
  startTL(0);
}


function initAnim1() {
 
  layerObj = (isNS4) ? 'document' : 'document.all';
  styleObj = (isNS4) ? '' : '.style';

  if (isNS6) {layerObj = 'document.getElementById('; endlayerObj =')'};
  if (!isNS6){endlayerObj=''};

  animTime = new Array();
  animTL = new Array();
  animObjs = new Object();
  
  tm1 = new animObj('tm1L','no',25,75,'null','0,120,240,120');   
  tm2 = new animObj('tm2L', 'no', 25, 25, 'null', '0,120,160,120');
  tm3 = new animObj('tm3L', 'no', 50, 0, 'null', '0,0,50,0,100,2,150,5,200,10,250,20,300,40,350,75,370,100,385,140,390,160,390,170,380,180,370,190,340,200,320,210,290,215,250,220,200,225');
  tm4 = new animObj('tm4L', 'no', 25, 25, 'null', '0,500,255,30');

  tm2blink = new animObj('tm2blinkL', 'no', 25, 25, 'null', '0,0,0,0');
  welc = new animObj('welcL', 'no', 25, 25, 'null', '0,0,300,275');
  tmancol1 = new animObj('tmancol1L', 'no', 25, 25, 'null', '0,0,0,0');
  tmancol2 = new animObj('tmancol2L', 'no', 25, 25, 'null', '0,0,0,0');
  tmancol3 = new animObj('tmancol3L', 'no', 25, 25, 'null', '0,0,0,0');
  tmancol4 = new animObj('tmancol4L', 'no', 25, 25, 'null', '0,0,0,0');

  tm5 = new animObj('tm5L', 'no', 15, 0, 'null', '434,410, 374,402, 290,384, 244,374,160,348, 118,334, 22,286, 2,266, 0,226, 6,184, 8,160, 22,124, 34,110, 80,98, 136,95, 168,94,236,94, 258,96, 320,104, 414,128, 439,172, 426,192, 382,212, 316,221, 286,221, 230,221,174,219, 142,217, 82,203, 16,177, 0,139, 0,109, 3,73, 9,59, 29,33, 37,25, 51,13, 73,10, 89,10, 113,11, 122,14, 124,17, 138,25, 146,34, 150,39, 154,43, 158,49, 162,55, 166,60, 172,65');

  animTL[0] = new Array();

  animTL[0][01] = 'tm1.show(); tm2.show(); tm4.show(); tm1.animate(); tm2.animate(); tm4.animate();';
  animTL[0][10] = 'tm5.show(); tm5.animate();';
  animTL[0][30] = 'tm3.show(); tm3.animate();';
  animTL[0][50] = 'tm2blink.show();';
  animTL[0][55] = 'tm2blink.hide();';
  animTL[0][60] = 'welc.show()';
  animTL[0][90] = 'Locate()';
  startTL(0);
}

function Locate() {location="index.html";}

var layerObj, styleObj, totalTime, currTime;
var animTime, animTL, animObjs;
var bon, boff;


      	   
if(old) {alert("This web site is designed for Internet Explorer (any version) or Netscape version 6 onwards. \n\n" +
           "Netscape Nav. 4 is catered for in a basic way but earlier Netscape versions are not supported. \n\n" +
	   "Please view this web site with a supported browser if you see this message. \n\n" +
	   "Please see the Introduction page for more details. Thank you.")}




