home *** CD-ROM | disk | FTP | other *** search
- // set variables
-
- var aboutgif = new Image();
- aboutgif.src = "./images/about.gif";
- var howgif = new Image();
- howgif.src = "./images/how.gif";
- var abtnohow = new Image();
- abtnohow.src = "./images/abtnohow.gif";
-
- var topicState = new String;
- var about = new String;
- var how = new String;
- var more = new String;
- var topicType = new String;
- var deftop = new String;
- var intro = new String;
- var textus = new String;
- var textus = location.href.substring(0,location.href.lastIndexOf('file')+1);
- var proc = new String;
-
- // define functions
-
- function noRightClick() {
- if(event.button == 2 || event.button == 3) {
- alert("Right-click is not available in this view. ");
- return false;
- }
- return true;
- }
-
-
- function setPixelLoc() {
- pT=".pixelTop=";
- kD="";
- kT=".style";
- d="document.body.scrollTop";
- checkForScroll();
- }
-
- function checkForScroll() {
- object="foldrCon";
- dd=eval(d);
- eval(kD+object+kT+pT+dd);
- setTimeout("checkForScroll()",10);
- }
-
- function BGToggle() {
- if (document.body.background==howgif.src) {document.body.background=(aboutgif.src)}
- else {document.body.background=(howgif.src)}
- }
-
- function isWhat(stateIs){
- topicState = (stateIs)
- }
-
- function doToggleLinks(secNum){
- //display the section if it's not displayed; hide it if it is displayed
- if (secNum.style.display=="none"){secNum.style.display=""}
- else{secNum.style.display="none"}
- }
-
- function SectionOff(secOffNum){
- {secOffNum.style.display="none"}
- }
-
- function SectionOn(secOnNum){
- {secOnNum.style.display=""}
- return true;
- }
-
- function SectionHtOff(){
- if (proc==="Yes"){oht.style.display="none"}
- }
-
- function SectionHtOn(){
- if (proc=="Yes"){cht.style.display=""}
- return true;
- }
-
- function OpenNewWindow(theURL,winName,features) {
- window.open(theURL,winName,features);
- }
-
- function beforePrinting()
- {
- if (topicType == deftop)
- {
- BGSwap(opengif.src);
- SectionOff(cat);
- SectionOff(cht);
- SectionOff(cmt);
- SectionOn(oat);
- SectionOn(oht);
- SectionOn(omt);
- }
-
- if (topicType == intro)
- {
- BGSwap(opnohow.src)
- SectionOff(cat);
- SectionOff(cmt);
- SectionOn(oat);
- SectionOn(omt);
- }
- }
-
-
- function afterPrinting()
- {
- if (topicType == deftop)
- {
-
- if (topicState == about)
- {
- BGSwap(aboutgif.src);
- SectionOff(cat);
- SectionOff(oht);
- SectionOff(omt);
- SectionOn(oat);
- SectionOn(cht);
- SectionOn(cmt);
- }
-
- if (topicState == how)
- {
- BGSwap(howgif.src);
- SectionOff(oat);
- SectionOff(cht);
- SectionOff(omt);
- SectionOn(cat);
- SectionOn(oht);
- SectionOn(cmt);
- }
-
- if (topicState == more)
- {
- BGSwap(moregif.src);
- SectionOff(oat);
- SectionOff(oht);
- SectionOff(cmt);
- SectionOn(cat);
- SectionOn(cht);
- SectionOn(omt);
- }
- }
-
- if (topicType == intro)
- {
-
- if (topicState == about)
- {
- BGSwap(abtnohow.src);
- SectionOff(cat);
- SectionOff(omt);
- SectionOn(oat);
- SectionOn(cmt);
- }
-
- if (topicState == more)
- {
- BGSwap(mornohow.src);
- SectionOff(oat);
- SectionOff(cmt);
- SectionOn(cat);
- SectionOn(omt);
- }
- }
- }
-
- // define event handlers
-
- // following event handler calls noRightClick function (above) to disable right-click
- // document.onmousedown=noRightClick;
- // comment out the preceding line for debug purposes
-
- // window.onbeforeprint=beforePrinting;
- // window.onafterprint=afterPrinting;