﻿//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 ssmenu printing section
var smenu = "";

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

smenu += '<a href="../academics/requesttrans.html">Request a Transcript</a>';

if(! (t == "Alumni Reunion"))
{
smenu += '<a href="reunion.php">Online Alumni Reunion</a>';
} 

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

if(! (t == "Archives"))
{
smenu += '<a href="archives.html">Photo Archives</a>';
}

if(! (t == "Memorabilia"))
{
smenu += '<a href="memorabilia.html">RBC Memorabilia</a>';
}

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

if(! (t == "Mirror"))
{
smenu += '<a href="../publications/mirror/mirror.html">The Mirror</a>';
} 

//if(! (t == "Contribute"))
//{
//smenu += '<a href="contribute.html">Ways to Contribute</a>';
//} 

//if(! (t == "Funding Scholarships"))
//{
//smenu += '<a href="scholarfund.html">Funding Scholarships</a>';
//} 

if(! (t == "Associates"))
{
smenu += '<a href="associates.html">RBC Associates</a>';
} 

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

//if(! (t == "Development Office"))
//{
//smenu += '<a href="devoffice.html">Development Office</a>';
//} 

document.write(smenu);

