//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 smenu = "";

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

smenu += '<a href="index.html">&laquo;To Library</a>';

if(! (t == "Online Collections"))
{
smenu += '<a href="olcollections.html">Online Collections</a>';
}

if(! (t == "Menno Simons"))
{
smenu += '<a href="menno.html">Menno Simons</a>';
}

if(! (t == "Dordrecht"))
{
smenu += '<a href="dordrecht.html">Dordrecht Confession 1632</a>';
}

if(! (t == "Schleitheim"))
{
smenu += '<a href="schleitheim.html">Schleitheim Confession 1527</a>';
}

document.write(smenu);

