function toggleView(Text) {
    if (Text.className=="hide") {
      Text.className="unhide";
    } else {
      Text.className="hide";
    }
  }
function toggleText(Text) {
    if (Text.innerText == "Reading -- Click Here to Open") {
        Text.innerText = "Reading -- Click Here to Close";
        window.resizeTo(100,100);
  }
    
    else {
        FadeOut(id)
        Text.innerText = "Reading -- Click Here to Open";
  }
  }
function toggleChapter(Text) {
    if (Text.innerText == "Reading -- Click Here to Open") {
        Text.innerText = "Reading -- Click Here to Close";
        window.location.reload( false );
  }
    
    else {
        FadeOut(id)
        Text.innerText = "Reading -- Click Here to Open";
  }
  }
function toggleInstructions(Text) {
    if (Text.innerText == "Instructions -- Click Here to Open") {
        Text.innerText = "Instructions -- Click Here to Close";
        window.location.reload( false );
  }
    
    else {
        Text.innerText = "Instructions -- Click Here to Open";
  }
  }

function scrollPage() {
   TimeID=setInterval("window.scrollBy(0,-10)",10);
   setTimeout("clearInterval("+TimeID+")",4500);
}
function scrollmyPage() {
   if (document.body && document.body.clientHeight){
   window.innerHeight = document.body.clientHeight;
   }
   coordY=event.clientY + document.body.scrollTop
   TimeID=setInterval("window.scrollTo(0,coordY)",10);
   setTimeout("clearInterval("+TimeID+")",500);
}
function FadeOut(id){
id.filters.revealTrans.apply();
id.style.visibility="hidden";
id.filters.revealTrans.play();
}
function FadeIn(id){
id.filters.revealTrans.apply();
id.style.visibility="visible";
id.filters.revealTrans.play();
}