﻿//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 Student Life</a>';

smenu += '<a href="http://rosedale.edu/studentapps/stl/">Ministry Formation Reporting</a>';

if(! (t == "Goals"))
{
smenu += '<a href="../cs/goals.html">Goals</a>';
}

if(! (t == "Organization"))
{
smenu += '<a href="../cs/organization.html">Organization</a>';
}

if(! (t == "Opportunities"))
{
smenu += '<a href="../cs/opps.html">Opportunities</a>';
}

smenu += '<a href="../cs/tteams.html">Touring Teams</a>';

if(! (t == "Chorus"))
{
smenu += '<a class="sub" href="../cs/chorus.html"><font style="text-decoration: none">&bull; </font>Chorus</a>';
}

if(! (t == "Salt and Light"))
{
smenu += '<a class="sub" href="../cs/saltlight.html"><font style="text-decoration: none">&bull; </font>Salt & Light</a>';
}

if(! (t == "Drama"))
{
smenu += '<a class="sub" href="../cs/drama.html"><font style="text-decoration: none">&bull; </font>Drama</a>';
}

if(! (t == "Chorale"))
{
smenu += '<a class="sub" href="../cs/chorale.html"><font style="text-decoration: none">&bull; </font>Chorale</a>';
}

if(! (t == "Cross Reference"))
{
smenu += '<a class="sub" href="../cs/crossref.html"><font style="text-decoration: none">&bull; </font>Cross Reference</a>';
}

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

document.write(smenu);

