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

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

if(! (t == "Sociology"))
{
smenu += '<a href="/pweber/sociology/index.html">Intro to Sociology</a>';
}


document.write(smenu);

