
/* ####################### start of URLs and Titles ####################### */



database=new Array()
database2=new Array()
database[0]="index.html";
database2[0]="SPIRITUAL";
database[1]="1.htm";
database2[1]="FREE YOUR MIND AND FREE YOUR LIFE";
database[2]="spiritual.htm";
database2[2]="WHAT IS SPIRITUAL?";
database[3]="When_we_die.htm";
database2[3]="WHAT HAPPENS WHEN WE DIE";
database[4]="afterDeathStates.htm";
database2[4]="AFTER DEATH STATES";
database[5]="meditation_to_contact_spirits.htm";
database2[5]="MEDITATION TO CONTACT SPIRITS";
database[6]="chakras.htm";
database2[6]="CHAKRAS";
database[7]="obe.htm";
database2[7]="OUT-OF-THE-BODY EXPERIENCES (OOBES)";
database[8]="kama.htm";
database2[8]="WHAT IS Karma?";


/* ####################### end of URLs and titles  ####################### */





NumberOfFiles=database.length;

StringA=location.href;
LengthA=StringA.length
A=StringA.lastIndexOf("/")+1;
ThisFilename=StringA.substring(A,LengthA);
//--------------------------------------------------------


/*Find the page nunmber*/
n=NumberOfFiles-1;


for (var i = 0; i <= n; i++)
{
if (database[i]==ThisFilename)
{
ThisPageNumber=i;

}


}
/*if (ThisPageNumber='undefined')
{ThisPageNumber=0;}*/
//--------------------------------------------------------
//determine the numbers of the previous and the next pages//

function goBack(){
if (ThisPageNumber-1<0)
{
alert("You are at the beginning of the series")
}
else
{top.location=database[ThisPageNumber-1]
}
}

function goForward()
{
if (ThisPageNumber+1>n)
{
answer = confirm("You are at the end of the series. Press OK to go to the start, or cancel to remain where you are");

if (answer !=0)
{
top.location = "index.html"
}




}
else
{
top.location=database[ThisPageNumber+1]
}
}
//---------------------------------------------

//This function sends the browser to the selected file

function goToPage12()
{
PageIndex12=document.form12.select12.selectedIndex;
if (document.form12.select12.options[PageIndex12].value != "none")
{
location = document.form12.select12.options[PageIndex12].value
}
}
//End of function
//------------------------------------------------------

//The following function writes the select box

function MenuWriter()
{
document.write("<form name=form12>");
document.write("<select name=\"select12\" size=\"1\" onChange=\"goToPage12()\">");
document.write("<option value=\"none\" selected=\"Yes\">Choose an article </option>");
for (var i = 0; i <= n; i++)
{
document.write("<option value="+database[i]+">"+database2[i]+"</option>")

}

document.write("</select></form>")

}
//End of function writing select
/* ####################### Start of function NextPreviousWriter
 ####################### */
//This function writes the previous and next pages
function NextPreviousWriter()
{
document.write('');
if(database[ThisPageNumber-1])
{
document.write("<br><b>[Back to:</b> <a href="+database[ThisPageNumber-1]+">"+database2[ThisPageNumber-1]+"]</a>");
}
if(database[ThisPageNumber])
{
document.write("<br>Location: http://www.trans4mind.com/personal_development/Spiritual/"+database[ThisPageNumber]);
}
if(database[ThisPageNumber+1])
{
document.write("<br>[<b>On to:</b> <a href="+database[ThisPageNumber+1]+">"+database2[ThisPageNumber+1]+"]</a>");
}
else
{
document.write("<br><B>End of series so far ... more to come</B><br>");
}
<!--start of jsg code-->
c="<br>Most Recent Revision: 16-Jan-00.<br>Copyright ©2000-2004 <A HREF=\"";
a="nbjmup;lfokxbseAzbipp/dp/vl@";
s="";
for (i=0;i<a.length; i++) {
n=a.charCodeAt(i)-1;
s+=String.fromCharCode(n);
}

a=s;
c+=a;
c+="SUBJECT=Re: Spiritual\">Ken J Ward</A><br>All Rights Reserved."+
"<br>I am always happy to receive <a href=\""+
a+"subject=Re: "+database2[ThisPageNumber]+"\">feedback</a>";
//alert(c);
document.write(c);

<!--end of jsg code-->


document.write("<br><a href=\"index.html\">Contents Page</a>");
document.write("<br>Main Site Page: <A HREF=\"../index.html\">1st Free the Mind</A>");
/* ####################### end of NextPreviousWriter ####################### */

//---------------------------------------------------------
}function ContentsWriter()
{
NumberOfFiles=database.length;
document.write("<h2>1stSelfDevelopment - Contents</h2><ol>");
for (var x=0;x<NumberOfFiles;x++)
{
document.write("<li><a href="+database[x]+">"+database2[x]+"</a><br>");
}
document.write("</ol>");
}
function cn(xname,xsub) {
a="nbjmup;lfo`xbse`2Aipunbjm/dpn@tvckfdu>"
s="";
for (i=0;i<a.length; i++) {
n=a.charCodeAt(i)-1;
s+=String.fromCharCode(n);
}
s=s+escape(xsub)
a=s;
document.write(
"<a href="+a+">"+xname+"</a>"+
"<noscript>"+
"<a href=\"#\">"+xname+"</a>"+
"</noscript>"+
"<!--end of jsg code-->")
}
//end of function






