﻿//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
*/

if(! (t == "General"))
{
smenu += '<a href="../about/index.html">Introduction</a>';
}

if(! (t == "EADefinition"))
{
smenu += '<a href="../about/definition.html">Evangelical Anabaptism</a>';
}

if(! (t == "Big Impact"))
{
smenu += '<a href="../about/scbi.html">Watch Video</a>';
}

if(! (t == "Vision"))
{
smenu += '<a href="../vision/index.html">Vision</a>';
}

if(! (t == "Message"))
{
smenu += '<a href="../about/pmessage.html">President&rsquo;s Message</a>';
}

if(! (t == "Quick Facts"))
{
smenu += '<a href="../about/quick.html">Quick Facts</a>';
}

if(! (t == "Student Satisfaction"))
{
smenu += '<a href="../about/satisfied.html">Student Satisfaction</a>';
}

if(! (t == "Directory"))
{
smenu += '<a href="../about/edirect.php">Email Directory</a>';
}

if(! (t == "News"))
{
smenu += '<a href="../about/news.php">News</a>';
}

if(! (t == "History"))
{
smenu += '<a href="../about/history.html">History</a>';
}

smenu += '<a href="../publications/index.html">Publications</a>';

smenu += '<a class="sub" href="../publications/camel/camel.html"><font style="text-decoration: none">&bull; </font>Student Newspaper</a>';
smenu += '<a class="sub" href="../publications/mirror/mirror.html"><font style="text-decoration: none">&bull; </font>Alumni Magazine</a>';

if(! (t == "FAQ"))
{
smenu += '<a href="../about/aboutfaq.html">FAQ</a>';
}

if(! (t == "Contact Info"))
{
smenu += '<a href="../about/contact.html">Contact Us</a>';
}

document.write(smenu);

