﻿//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 and date testing variables
var smenu = "";
var now = new Date();
var monthnumber = now.getMonth()+1;
var monthday    = now.getDate();

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

if(! (t == "General"))
{
smenu += '<a href="index.php">Introduction</a>';
}

if (! (monthnumber == 7))
{
smenu += '<a target="_blank" href="ccbrochure.pdf">Download Brochure</a>';
}	

if(! (t == "Camper Registration"))
{
smenu += '<a href="ccregister.php">Online Camper Registration</a>';
}

if(! (t == "Volunteer Application"))
{
smenu += '<a href="startvapp.php">Online Volunteer Application</a>';
}

if(! (t == "Campership Application"))
{
smenu += '<a href="campershipapp.pdf">Campership Application</a>';
}

smenu += '<a target="_blank" href="ccamp.curroverview.pdf">Curriculum Charts</a>';

if(! (t == "Teachers"))
{
smenu += '<a href="teachers.html">Teacher Bios</a>';
}

if(! (t == "Pastor"))
{
smenu += '<a href="pastor.html">Pastor Bio</a>';
}


if(! (t == "Pastor Note"))
{
smenu += '<a href="pastornote.html">Note From Pastor</a>';
}

if(! (t == "Record"))
{
smenu += '<a href="/ccamp/record2010/record.html">Camp Newspaper</a>';
}

smenu += '<a href="http://mailhide.recaptcha.net/d?k=01xLu1utvZu7d4D4BticznrQ==&amp;c=ddCdAISKr1nmWaQ93iHchz01f_0xGyhiFDM3PvizXxA=" onclick="window.open(\'http://mailhide.recaptcha.net/d?k=01xLu1utvZu7d4D4BticznrQ==&amp;c=ddCdAISKr1nmWaQ93iHchz01f_0xGyhiFDM3PvizXxA=\', \'\', \'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 Choral Camp</a>';

document.write(smenu);

