﻿//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="../current/index.html">&laquo;Current Student Start</a>';
}

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

if(! (t == "Orientation"))
{
smenu += '<a href="../current/nsorientation.html">New Student Orientation</a>';
}

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

if(! (t == "Announcements"))
{
smenu += '<a href="../current/announcements.php">Announcements</a>';
}

smenu += '<a href="QuizGuide_Student.pdf">Online Quiz Manual</a>';

smenu += '<a href="../studentapps/quiz/">Online Quiz Login</a>';

document.write(smenu);

