var rhan, steil;
var ta, la, ps;
var ns = (navigator.appName == "Netscape");
function psfu(ep,eto,cyflymder,camau,arol,ffordd){
  this.ep = ep;
  this.eto = eto;
  this.cyflymder = cyflymder;
  this.camau = camau;
  this.frameIndex = 0;
  this.arol = arol;
  this.ffordd = ffordd.split(',');
  this.symud = symudpeth;
  this.myndyna = myndipeth;
  this.dangos = dangospeth;
  this.cuddio = cuddiopeth;
  this.gwneudffordd = gwneudfforddpeth;
  this.dwadarol = dwadarolpeth;
  ps[ep] = this;
}
function dechrauAmser(rhifla) {
  ta[rhifla] = 0;
  gyrruAmser(rhifla);
}
function gyrruAmser(rhifla) {
    if (ta[rhifla] <= la[rhifla].length - 1) {
      ta[rhifla]++;
        if (la[rhifla][ta[rhifla]] != null){
          eval(la[rhifla][ta[rhifla]]);
        }
        setTimeout('gyrruAmser(' + rhifla + ')', 1000);
    }
}
function dangospeth(){
  eval(rhan + '["' + this.ep + '"]' + steil + '.visibility = "visible"');
}
function cuddiopeth(){
  eval(rhan + '["' + this.ep + '"]' + steil + '.visibility = "hidden"');
}
function gwneudfforddpeth(ffordd) {
  this.ffordd = ffordd.split(',');
}
function dwadarolpeth(arol) {
  this.arol = arol;
}
function myndipeth(left, top){
    if (ns) { 
      top -= 4;
      left -= 4;
    }
    else  {
      left -= 4;
      top -= 4;
    }
  eval(rhan + '["' + this.ep + '"]' + steil + '.top = top');
  eval(rhan + '["' + this.ep + '"]' + steil + '.left = left');
}
function symudpeth(){
    if (this.ffordd.length > 4 && this.frameIndex < this.ffordd.length)  {
      this.myndyna(this.ffordd[this.frameIndex], this.ffordd[this.frameIndex + 1]);
      this.frameIndex += 2;
      setTimeout('ps["' + this.ep + '"].symud()', this.cyflymder);
    }
    else if (this.ffordd.length == 4 && this.frameIndex <= this.camau) {
      this.myndyna(parseInt(this.ffordd[0]) + (this.frameIndex * ((parseInt(this.ffordd[2]) - parseInt(this.ffordd[0])) / this.camau)), parseInt(this.ffordd[1]) + (this.frameIndex * ((parseInt(this.ffordd[3]) - parseInt(this.ffordd[1])) / this.camau)));
      this.frameIndex++;
      setTimeout('ps["' + this.ep + '"].symud()', this.cyflymder);         
    }
    else {
      eval(this.arol + "");
      this.frameIndex = 0;
        if (this.eto == "yes"){
          this.symud();
        }
    }
}
 if (parent.location.href != window.location.href) 
parent.location.href = window.location.href;
function dimbyd(){}
function dechrauSymud() {
  rhan = (ns) ? 'document' : 'document.all';
  steil = (ns) ? '' : '.style';
  ta = new Array();
  la = new Array();
  ps = new Object();
  sut1 = new psfu('sut1Rhan', 'no', 25, 25, 'null', '10,20, 10, 20');
  sut2 = new psfu('sut2Rhan', 'no', 25, 5, 'null', '150,20, 150, 20');
  sut3 = new psfu('sut3Rhan', 'no', 25, 25, 'null', '150, 70,150,70');
  sut4 = new psfu('sut4Rhan', 'no', 25, 25, 'null', '150, 110, 150, 110');
  sut5 = new psfu('sut5Rhan', 'no', 25, 25, 'null', '150, 150, 150, 150');
  sut6 = new psfu('sut6Rhan', 'no', 25, 25, 'null', '150, 190, 150, 190');
  sut7 = new psfu('sut7Rhan', 'no', 25, 25, 'null', '150, 230, 150, 230');
 sut8 = new psfu('sut8Rhan', 'no', 25, 25, 'null', '150, 270, 150, 270');
  sut9 = new psfu('sut9Rhan', 'no', 25, 40, 'null', '150, 310, 150, 310');
  sut10 = new psfu('sut10Rhan', 'no', 25, 25, 'null', '150,-50, 150, 150');
  nav = new psfu('navRhan', 'no', 25, 25, 'null', '10, 80, 10, 80'); 
 la[0] = new Array();
   la[0][1] = 'sut1.dangos(); sut1.symud();';
 la[0][2] = 'sut2.dangos(); sut2.symud();';
la[0][6] = 'sut3.dangos(); sut3.symud();';
la[0][10] = 'sut4.dangos(); sut4.symud();';   
 la[0][14] = 'sut5.dangos(); sut5.symud();';
la[0][18] = 'sut6.dangos(); sut6.symud();';
la[0][22] = 'sut7.dangos(); sut7.symud();';
la[0][26] = 'sut8.dangos(); sut8.symud();';
la[0][30] = 'sut9.dangos(); sut9.symud();';
la[0][34] = 'nav.dangos(); nav.symud();';
dechrauAmser(0);
}
function cau() {
self.close()
}
