/* Written by David Eminizer.  The purpose of this script is to render the textonly version for the current page --
instead of just going to the textonly home page -- when clicking the Low Bandwidth, or Text Only Site link in web page headers.
On NASA center sites, this is accomplished by their CMS -- which we are not a part of, thus, I created this script to do the same thing.
*/
<!-- Begin
function gotoTextonly()
	     {
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var hrefString = location.href; 
       newString = hrefString.replace("/tto","/Textonly/tto");
	   location.href = newString; 
	    }
// End -->


/* 04/12/2007. The following four functions were written by Jeff Peterson.  The
purpose of these scripts are to render the textonly version for the current
Spinoff page -- instead of just going to the textonly Spinoff page -- when
clicking the Low Bandwidth, or Text Only Site link in web page headers.
*/
<!-- Begin
function gotoSpinoffTextonly()
             {
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var hrefString = location.href; 
       newString = hrefString.replace("/spinoff/database","/spinoff/databaset");
           location.href = newString; 
            }
// End -->

<!-- Begin
function gotoSpinsearchTextonly()
             {
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var hrefString = location.href; 
       newString = hrefString.replace("/spinoff/spinsearch","/spinoff/spinsearcht");
           location.href = newString; 
            }
// End -->

<!-- Begin
function gotoSpinitemTextonly()
             {
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1);
var hrefString = location.href; 
       newString = hrefString.replace("/spinoff/spinitem","/spinoff/spinitemt");
           location.href = newString; 
            }
// End -->


