﻿//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="/publications/index.html">Introduction</a>';
}

if(! (t == "Mirror Index"))
{
smenu += '<a href="/publications/mirror/mirror.html">Alumni Magazine &ndash;<br>&nbsp;&nbsp;&nbsp;The Mirror</a>';
}

if(! (t == "Beacon Index"))
{
smenu += '<a href="/publications/beacon/beacon.html">Brotherhood Beacon</a>';
}

if(! (t == "Camel Index"))
{
smenu += '<a href="/publications/camel/camel.html">Student NewsPaper &ndash;<br>&nbsp;&nbsp;&nbsp;The Camel</a>';
}

smenu += '<a href="http://mailhide.recaptcha.net/d?k=01G9SKGHMV2Rf-pazK--0I6g==&amp;c=urhfDQXAZ65wfNErkrO4Ycs94idLMm-3jntHrRcj_K8=" onclick="window.open(\'http://mailhide.recaptcha.net/d?k=01G9SKGHMV2Rf-pazK--0I6g==&amp;c=urhfDQXAZ65wfNErkrO4Ycs94idLMm-3jntHrRcj_K8=\', \'\', \'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300\'); return false;" title="Reveal this e-mail address">Email Publications Editor</a>';

document.write(smenu);

