<!--
var bName=navigator.appName;
var bVer=parseInt(navigator.appVersion);
var NN4=(bName=="Netscape"&&bVer>=4);
var IE4=(bName=="Microsoft Internet Explorer"&&bVer>=4);
var ix=0;
var wix=0;
var len;
var sound;
var imagestyle;
var first=0;
imagestyle=new MakeArray(45);
var imagesound;
var orwi=400;
var orhi=300;
var orpx=0;
var orpy=0;
if(IE4)
{ orpx=(document.all.mybody.clientWidth-orwi)/2;
  orpy=(document.all.mybody.clientHeight-orhi)/2;
}
if(NN4)
{ orpx=(this.innerWidth-orwi)/2;
  orpy=(this.innerHeight-orhi)/2;
}
var spirialstep=16;
var actionover=0;
myPage=new Array();
myPageWord=new Array();
myPage[0]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[1]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[2]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[3]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[4]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[5]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);

myPage[6]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[7]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[8]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[9]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[10]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[11]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[12]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[13]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[14]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[15]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[16]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[17]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[18]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[19]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[20]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[21]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[22]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[23]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[24]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[25]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[26]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[27]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[28]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[29]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[30]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[31]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[32]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[33]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[34]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[35]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[36]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[37]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[38]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[39]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[40]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[41]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[42]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[43]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);
myPage[44]=new PageContent("",0,0,0,400,300,orpx,orpy,10,10,10);

function PageContent(soundname,havesound,pagechange,haveword,imwi,imhi,px,py,timestep,widthstep,heightstep)
{ this.soundname=soundname;
  this.havesound=havesound;
  this.pagechange=pagechange;
  this.haveword=haveword;
  this.imwi=imwi;
  this.imhi=imhi;
  this.px=px;
  this.py=py;
  this.timestep=timestep;
  this.widthstep=widthstep;
  this.heightstep=heightstep;
}

function PageWord(vx,wordchange,px,py,npx,npy,orwidth,orheight,duration,size)
{ this.vx=vx;
  this.wordchange=wordchange;
  this.px=px;
  this.py=py;
  this.npx=npx;
  this.npy=npy;
  this.orwidth=orwidth;
  this.orheight=orheight;
  this.duration=duration;
  this.size=size;
}

function MakeArray(leng)
{ for(var i=0;i<len;i++)
      this[i]=null;
  this.length=leng;
  len=leng;
}

function playAudio(target,file,loop){
  if(IE4){
    sound.src=file;
}
  if(NN4){
    target.document.open('text/html');
    target.document.write('<EMBED SRC='+file+' WIDTH=0 HEIGHT=0 AUTOSTART="TRUE" LOOP="'+((loop)? 'TRUE' : 'FALSE') +'">');
    target.document.close();
}
}
function hideword(ix1,ix2)
{  if(myPage[ix1].haveword!=0)
      {   if(IE4)
             myPageWord[ix2].vx.style.visibility="hidden";
          if(NN4)
             myPageWord[ix2].vx.visibility="hide";
      }
}

function reset(ix1)
{  myPage[ix1].px=orpx;
   myPage[ix1].imwi=orwi;
   myPage[ix1].py=orpy;
   myPage[ix1].imhi=orhi;
   var layer1=imagestyle[ix1];
   if(IE4){
     layer1.style.left=orpx;
     layer1.style.top=orpy;
     layer1.style.clip='rect(0,'+orwi+','+orhi+',0)';
   }
   if(NN4){ 
     layer1.moveTo(orpx,orpy);
     layer1.clip.left=0;	
     layer1.clip.right=orwi;
     layer1.clip.top=0;
     layer1.clip.bottom=orhi;
   }
}

function SetTitleSize()
{  var inx=0;
for(i=0;i<len;i++)
{
    for(j=0;j<myPage[i].haveword;j++)
      {
           myPageWord[inx+j].vx.style.fontSize=myPageWord[inx+j].size;
      }
          inx+=myPage[i].haveword;
}
}


if(NN4){
}

function initObject(){
   ix=0;
   wix=0;
   if(IE4)
   {  sound=DSOUND;
imagestyle[0]=document.all.D1;
imagestyle[1]=document.all.D2;
imagestyle[2]=document.all.D3;
imagestyle[3]=document.all.D4;
imagestyle[4]=document.all.D5;
imagestyle[5]=document.all.D6;
imagestyle[6]=document.all.D7;
imagestyle[7]=document.all.D8;
imagestyle[8]=document.all.D9;
imagestyle[9]=document.all.D10;
imagestyle[10]=document.all.D11;
imagestyle[11]=document.all.D12;
imagestyle[12]=document.all.D13;
imagestyle[13]=document.all.D14;
imagestyle[14]=document.all.D15;
imagestyle[15]=document.all.D16;
imagestyle[16]=document.all.D17;
imagestyle[17]=document.all.D18;
imagestyle[18]=document.all.D19;
imagestyle[19]=document.all.D20;
imagestyle[20]=document.all.D21;
imagestyle[21]=document.all.D22;
imagestyle[22]=document.all.D23;
imagestyle[23]=document.all.D24;
imagestyle[24]=document.all.D25;
imagestyle[25]=document.all.D26;
imagestyle[26]=document.all.D27;
imagestyle[27]=document.all.D28;
imagestyle[28]=document.all.D29;
imagestyle[29]=document.all.D30;
imagestyle[30]=document.all.D31;
imagestyle[31]=document.all.D32;
imagestyle[32]=document.all.D33;
imagestyle[33]=document.all.D34;
imagestyle[34]=document.all.D35;
imagestyle[35]=document.all.D36;
imagestyle[36]=document.all.D37;
imagestyle[37]=document.all.D38;
imagestyle[38]=document.all.D39;
imagestyle[39]=document.all.D40;
imagestyle[40]=document.all.D41;
imagestyle[41]=document.all.D42;
imagestyle[42]=document.all.D43;
imagestyle[43]=document.all.D44;
imagestyle[44]=document.all.D45;
imagestyle[45]=document.all.D46;
for(i=0;i<len;i++)
{    reset(i);
}
imagestyle[0].style.visibility="visible";
document.all.dtab.style.left=orpx;
document.all.dtab.style.top=orpy+orhi;
document.all.dtab.style.visibility="visible";
   SetTitleSize();
if(imagestyle[0].haveword!=0)
   showword(ix,wix);
}
if(NN4)
{ sound=document.layers["NSOUND"]
imagestyle[0]=document.layers["l1"];
imagestyle[1]=document.layers["l2"];
imagestyle[2]=document.layers["l3"];
imagestyle[3]=document.layers["l4"];
imagestyle[4]=document.layers["l5"];
imagestyle[5]=document.layers["l6"];
imagestyle[6]=document.layers["l7"];
imagestyle[7]=document.layers["l8"];
imagestyle[8]=document.layers["l9"];
imagestyle[9]=document.layers["l10"];
imagestyle[10]=document.layers["l11"];
imagestyle[11]=document.layers["l12"];
imagestyle[12]=document.layers["l13"];
imagestyle[13]=document.layers["l14"];
imagestyle[14]=document.layers["l15"];
imagestyle[15]=document.layers["l16"];
imagestyle[16]=document.layers["l17"];
imagestyle[17]=document.layers["l18"];
imagestyle[18]=document.layers["l19"];
imagestyle[19]=document.layers["l20"];
imagestyle[20]=document.layers["l21"];
imagestyle[21]=document.layers["l22"];
imagestyle[22]=document.layers["l23"];
imagestyle[23]=document.layers["l24"];
imagestyle[24]=document.layers["l25"];
imagestyle[25]=document.layers["l26"];
imagestyle[26]=document.layers["l27"];
imagestyle[27]=document.layers["l28"];
imagestyle[28]=document.layers["l29"];
imagestyle[29]=document.layers["l30"];
imagestyle[30]=document.layers["l31"];
imagestyle[31]=document.layers["l32"];
imagestyle[32]=document.layers["l33"];
imagestyle[33]=document.layers["l34"];
imagestyle[34]=document.layers["l35"];
imagestyle[35]=document.layers["l36"];
imagestyle[36]=document.layers["l37"];
imagestyle[37]=document.layers["l38"];
imagestyle[38]=document.layers["l39"];
imagestyle[39]=document.layers["l40"];
imagestyle[40]=document.layers["l41"];
imagestyle[41]=document.layers["l42"];
imagestyle[42]=document.layers["l43"];
imagestyle[43]=document.layers["l44"];
imagestyle[44]=document.layers["l45"];
imagestyle[45]=document.layers["l46"];
for(i=0;i<len;i++)
{   reset(i);
}
imagestyle[0].visibility="inherit";
document.layers["ltab"].left=orpx;
document.layers["ltab"].top=orpy+orhi;
document.layers["ltab"].visibility="inherit";
   if(imagestyle[0].haveword!=0)
      showword(ix,wix);
   playAudio(sound,myPage[ix].soundname,true);
  }
}

function pagechange(forward_back){
      if(forward_back==1)
         changenumber=myPage[ix].pagechange;
      else
         changenumber=myPage[ix+1].pagechange;
      if(changenumber==0){
         if(forward_back==1)
            noaction(ix-1,ix);
         else
            noaction(ix+1,ix);
      }else if(changenumber==1){
         myPage[ix].px=orpx-orwi;
         if(IE4)
            imagestyle[ix].style.left=myPage[ix].px;
         else if(NN4)
            imagestyle[ix].moveTo(myPage[ix].px,orpy);
         if(forward_back==1)
            push_right(ix-1,ix,myPage[ix].timestep);
         else
            push_right(ix+1,ix,myPage[ix].timestep);
      }else if(changenumber==2){
         myPage[ix].px=orpx+orwi;
         if(IE4)
            imagestyle[ix].style.left=myPage[ix].px;
         else if(NN4)
            imagestyle[ix].moveTo(myPage[ix].px,orpy);
         if(forward_back==1)
            push_left(ix-1,ix,myPage[ix].timestep);
         else
            push_left(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==3){
            myPage[ix].py=orpy+orhi;
         if(IE4)
            imagestyle[ix].style.top=myPage[ix].py;
         else if(NN4)
            imagestyle[ix].moveTo(orpx,myPage[ix].py);
         if(forward_back==1)
            push_top(ix-1,ix,myPage[ix].timestep);
         else
            push_top(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==4){
            myPage[ix].py=orpy-orhi;
         if(IE4)
            imagestyle[ix].style.top=myPage[ix].py;
         else if(NN4)
            imagestyle[ix].moveTo(orpx,myPage[ix].py);
         if(forward_back==1)
            push_bottom(ix-1,ix,myPage[ix].timestep);
         else
            push_bottom(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==5){
         if(forward_back==1)
            wipe_left(ix-1,ix,myPage[ix].timestep);
         else 
            wipe_left(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==6){
         if(forward_back==1)
            wipe_right(ix-1,ix,myPage[ix].timestep);
         else
            wipe_right(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==7){
         if(forward_back==1)
            wipe_top(ix-1,ix,myPage[ix].timestep);
         else
            wipe_top(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==8){
         if(forward_back==1)
            wipe_bottom(ix-1,ix,myPage[ix].timestep);
         else
            wipe_bottom(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==9){
            myPage[ix].px=orpx-orwi;
         if(IE4)
            imagestyle[ix].style.left=myPage[ix].px;
         else if(NN4)
            imagestyle[ix].moveTo(myPage[ix].px,orpy);
         if(forward_back==1)
            insert_right(ix-1,ix,myPage[ix].timestep);
         else
            insert_right(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==10){
             myPage[ix].px=orpx+orwi;
         if(IE4)
            imagestyle[ix].style.left=myPage[ix].px;
         else if(NN4)
            imagestyle[ix].moveTo(myPage[ix].px,orpy);
         if(forward_back==1)
            insert_left(ix-1,ix,myPage[ix].timestep);
         else insert_left(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==11){
             myPage[ix].py=orpy+orhi;
         if(IE4)
            imagestyle[ix].style.top=myPage[ix].py;
         else if(NN4)
            imagestyle[ix].moveTo(orpx,myPage[ix].py);
         if(forward_back==1)
            insert_top(ix-1,ix,myPage[ix].timestep);
         else
            insert_top(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==12){
             myPage[ix].py=orpy-orhi;
         if(IE4)
            imagestyle[ix].style.top=myPage[ix].py;
         else if(NN4)
            imagestyle[ix].moveTo(orpx,myPage[ix].py);
         if(forward_back==1)
            insert_bottom(ix-1,ix,myPage[ix].timestep);
         else
            insert_bottom(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==13){
         if(forward_back==1) 
            display_cube(ix-1,ix,myPage[ix].timestep);
         else
            display_cube(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==14){
         if(forward_back==1)
            disappear_cube(ix-1,ix,myPage[ix].timestep);
         else
            disappear_cube(ix+1,ix,myPage[ix].timestep);
       }else if(changenumber==15){
             myPage[ix].px=orpx-orwi;
         if(IE4)
            imagestyle[ix].style.left=myPage[ix].px;
         else if(NN4)
            imagestyle[ix].moveTo(myPage[ix].px,orpy);
         if(forward_back==1)
            left_insert_right(ix-1,ix,myPage[ix-1].timestep,myPage[ix].timestep);
         else
            left_insert_right(ix+1,ix,myPage[ix+1].timestep,myPage[ix].timestep);
       }else if(changenumber==16){
              myPage[ix].px=orpx+orwi;
         if(IE4)
            imagestyle[ix].style.left=myPage[ix].px;
         else if(NN4)
            imagestyle[ix].moveTo(myPage[ix].px,orpy);
         if(forward_back==1)
            right_insert_left(ix-1,ix,myPage[ix-1].timestep,myPage[ix].timestep);
         else 
            right_insert_left(ix+1,ix,myPage[ix+1].timestep,myPage[ix].timestep);
       }else if(changenumber==17){
              myPage[ix].py=orpy-orhi;
         if(IE4)
            imagestyle[ix].style.top=myPage[ix].py;
         else if(NN4)
            imagestyle[ix].moveTo(orpx,myPage[ix].py);
         if(forward_back==1)
            top_insert_bottom(ix-1,ix,myPage[ix-1].timestep,myPage[ix].timestep);

         else
            top_insert_bottom(ix+1,ix,myPage[ix+1].timestep,myPage[ix].timestep);
       }else if(changenumber==18){
            myPage[ix].py=orpy+orhi;
         if(IE4)
            imagestyle[ix].style.top=myPage[ix].py;
         else if(NN4)
            imagestyle[ix].moveTo(orpx,myPage[ix].py);
         if(forward_back==1)
            bottom_insert_top(ix-1,ix,myPage[ix-1].timestep,myPage[ix].timestep);
         else
            bottom_insert_top(ix+1,ix,myPage[ix-1].timestep,myPage[ix].timestep);
       }
}

function showword(ix1,ix2)
{
  if(myPage[ix1].haveword!=0)
   {
      var origint=ix2
      for(var i=0;i<myPage[ix1].haveword;i++)
      {
        ix2=origint+i;
        var wcn=myPageWord[ix2].wordchange;
        if(IE4)
        {  myPageWord[ix2].vx.style.zIndex=2;
           myPageWord[ix2].vx.style.left=myPageWord[ix2].px;
           myPageWord[ix2].vx.style.top=myPageWord[ix2].py;
           myPageWord[ix2].vx.style.visibility="visible";
        }
        if(NN4)
        {     myPageWord[ix2].vx.zIndex=2;
              myPageWord[ix2].vx.left=myPageWord[ix2].px;
              myPageWord[ix2].vx.top=myPageWord[ix2].py;
              myPageWord[ix2].vx.visibility="inherit";
        }
       if(wcn==1)
        {   myPageWord[ix2].npy=0;
            flyfromtop(ix2,myPageWord[ix2].duration);
        }else if(wcn==2)
        {   myPageWord[ix2].npy=screen.height;
            flyfrombottom(ix2,myPageWord[ix2].duration);
        }else if(wcn==3)
        {   myPageWord[ix2].npx=0;
            flyfromleft(ix2,myPageWord[ix2].duration);
        }else if(wcn==4)
        {   myPageWord[ix2].npx=screen.width;
            flyfromright(ix2,myPageWord[ix2].duration);
        }else if(wcn==5)
        {   myPageWord[ix2].npy=myPageWord[ix2].orheight;
            wipefromtop(ix2,myPageWord[ix2].duration);
        }else if(wcn==6)
        {   myPageWord[ix2].npy=0;
            wipefrombottom(ix2,myPageWord[ix2].duration);
        }else if(wcn==7)
        {   myPageWord[ix2].npx=myPageWord[ix2].orwidth;
            wipefromleft(ix2,myPageWord[ix2].duration);
        }else if(wcn==8)
        {   myPageWord[ix2].npx=0;
            wipefromright(ix2,myPageWord[ix2].duration);
        }else if(wcn==9)
        {   myPageWord[ix2].npx=myPageWord[ix2].orwidth/2;
            horexpand(ix2,myPageWord[ix2].duration);
        }else if(wcn==10)
        {   myPageWord[ix2].npy=myPageWord[ix2].orheight/2;
            volexpand(ix2,myPageWord[ix2].duration);
        }else if(wcn==11)
        {   spiral(0,ix2,myPageWord[ix2].duration);
        }
      }
   }
  actionover=0;
}

function noaction(ix1,ix2)
{  var layer1=imagestyle[ix1];
   var layer2=imagestyle[ix2];
   if(IE4){ 
       layer2.style.visibility="visible";
       layer1.style.visibility="hidden"; 
   }	
   if(NN4){
       layer2.visibility="inherit";
       layer1.visibility="hide"; 
   }	
   showword(ix2,wix); 
}

function goahead()
{   if(IE4)
    { if(actionover==0)
     {  if(ix<(len-1))
       { for(var i=0;i<myPage[ix].haveword;i++)
          hideword(ix,(wix+i));
        actionover=-1;
        wix=wix+myPage[ix].haveword;
        ix++;
        pagechange(1);
        playAudio(sound,myPage[ix].soundname,true);
        }
      }
    }
    if(NN4)
    {  if(actionover==0)
       { if(ix<(len-1))
        { for(var i=0;i<myPage[ix].haveword;i++)
           hideword(ix,(wix+i));
          actionover=-1;
          wix=wix+myPage[ix].haveword;
          ix++;
          pagechange(1);
          playAudio(sound,myPage[ix].soundname,true);
        }
       }
    }
}

function back()
{     if(IE4)
      {  if(ix>0)
        { if(actionover==0) 
         {  for(var i=1;i<=myPage[ix].haveword;i++)
              hideword(ix,(wix+i-1))
            actionover=-1;
            ix--;
            wix=wix-myPage[ix].haveword;
            pagechange(0);
            if(myPage[ix].havesound==1)
               playAudio(sound,myPage[ix].soundname,true);
         }
        }
      }
      if(NN4)
      {  if(ix>0)
         { if(actionover==0)
         {  for(var i=1;i<=myPage[ix].haveword;i++)
              hideword(ix,(wix+i-1));
            actionover=-1;
            ix--;
            wix=wix-myPage[ix].haveword;
            pagechange(0);
            playAudio(sound,myPage[ix].soundname,true);
          }
          }
      }
}
//-->