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

if(! (t == "Spiritual Growth"))
{
smenu += '<a href="../do/sgresources.html">Spiritual Growth Resources</a>';
}

//if(! (t == "Forms"))
//{
//smenu += '<a href="../do/doforms.html">Forms</a>';
//smenu += '<a class="sub" target="blank" href="../do/attendance.pdf"><font style="text-decoration: none">&bull; </font>Attendance</a>';
//smenu += '<a class="sub" target="blank" href="../do/other.pdf"><font style="text-decoration: none">&bull; </font>Other Forms</a>';
//}

smenu += '<a href="../do/respolicies.html">Student Policies</a>';

//if(! (t == "Student Council"))
//{
//smenu += '<a class="sub" href="../do/stuco.html"><font style="text-decoration: none">&bull; </font>Student Governance</a>';
//}

if(! (t == "Resident Policies"))
{
smenu += '<a class="sub" href="../do/respolicies.html"><font style="text-decoration: none">&bull; </font>Residential Policies</a>';
}

smenu += '<a class="sub" href="../../academics/acpolicies.html"><font style="text-decoration: none">&bull; </font>Academic Policies</a>';

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

smenu += '<a href="http://mailhide.recaptcha.net/d?k=01abNFbo1y7nTpFWlSfEzShg==&amp;c=u8jVuGPuHbix4ScQX9l2KsqWAFZCe8Y_1NweM36uGxA=" onclick="window.open(\'http://mailhide.recaptcha.net/d?k=01abNFbo1y7nTpFWlSfEzShg==&amp;c=u8jVuGPuHbix4ScQX9l2KsqWAFZCe8Y_1NweM36uGxA=\', \'\', \'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300\'); return false;" title="Reveal this e-mail address">Contact the Dean</a>';

document.write(smenu);

