﻿//Function to assign t the value of the Title section of page following the second colon
function titletest ()
{		t="";
		t=document.title.toString();
		var c = t.indexOf(":")+1;
		var c = t.indexOf(":",c)+2;
		t = t.substring(c)
//		alert(t)
//		return t;

}

//Call above function
titletest();

//Iniatialize smenu printing section
var foot = "";
var plink, ptitle, nlink, ntitle = "";

/*If units for pages.  Creates possibility of eliminating current location 
from smenus
*/

foot += '<center>';

if(t == "Resident Policies 1")
{
nlink = '2';
ntitle = 'Values for Living'
}

if(t == "Resident Policies 2")
{
plink = '1';
ptitle = 'Introduction';
nlink = '3';
ntitle = 'Loving God with Our Minds'
}

if(t == "Resident Policies 3")
{
plink = '2';
ptitle = 'Values for Living';
nlink = '4';
ntitle = 'Loving God through Our Service'
}

if(t == "Resident Policies 4")
{
plink = '3';
ptitle = 'Loving God with Our Minds';
nlink = '5';
ntitle = 'Living in Community'
}

if(t == "Resident Policies 5")
{
plink = '4';
ptitle = 'Loving God through Our Service';
nlink = '6';
ntitle = 'Residence Life'
}

if(t == "Resident Policies 6")
{
plink = '5';
ptitle = 'Living in Community';
nlink = '7';
ntitle = 'Discipline and Restoration'
}

if(t == "Resident Policies 7")
{
plink = '6';
ptitle = 'Residence Life';
nlink = '8';
ntitle = 'Student Privacy Rights'
}

if(t == "Resident Policies 8")
{
plink = '7';
ptitle = 'Discipline and Restoration';
nlink = '9';
ntitle = 'Community Covenant'
}

if(t == "Resident Policies 9")
{
plink = '8';
ptitle = 'Student Privacy Rights';
nlink = 'a';
ntitle = 'Student Life Grievance Policy'
}

if(t == "Resident Policies A")
{
plink = '9';
ptitle = 'Community Covenant';
nlink = 'b';
ntitle = 'Academic Grievance Policy'
}

if(t == "Resident Policies B")
{
plink = 'a';
ptitle = 'Student Life Grievance Policy';
}

// End of Page variables


//If to test for previous
if(! (t == "Resident Policies 1"))
{
foot += '<a href="respolicy' + plink + '.html"><img src="/images/06previous.jpg" align="middle" hspace="4" border="0" alt="Previous Chapter"></a><a href="respolicy' + plink + '.html">' + ptitle + '</a>';
}
foot += '<img src="/images/trans.gif" hspace="95" alt="">';

//If to test for next
if(! (t == "Resident Policies B"))
{
foot += '<a href="respolicy' + nlink + '.html">' + ntitle + '</a> <a href="respolicy' + nlink + '.html"><img src="/images/06next.jpg" align="middle" border="0" alt="Next Chapter"></a>';
}

foot += '</center>';



document.write(foot);
