﻿//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="../studentlife/do/index.html">Dean&rsquo;s Office</a>';
smenu += '<a href="http://rbcsl.net/jm/index.php?option=com_content&view=article&id=69&Itemid=112">Xposure</a>';

if(! (t == "Activities"))
{
smenu += '<a href="../studentlife/activities.html">Campus Activities</a>';
}

if(! (t == "Health"))
{
smenu += '<a href="../studentlife/health.html">Health Resources</a>';
}

if(! (t == "Coffee Shop"))
{
smenu += '<a href="../studentlife/coffee.html">Coffee Shop</a>';
}

if(! (t == "Resident Housing"))
{
smenu += '<a href="../studentlife/housing.html">Resident Housing</a>';
}

if(! (t == "Career"))
{
smenu += '<a href="../studentlife/career.html">Career Links</a>';
}

if(! (t == "Attractions"))
{
smenu += '<a href="../studentlife/attractions.html">Area Attractions</a>';
}

if(! (t == "Traditions"))
{
smenu += '<a href="../studentlife/traditions.html">Rosedale Traditions</a>';
}

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

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

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

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

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

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


document.write(smenu);


