var NavArr = new Array();

function place()
{
  this.name='';
  this.link='';
}

// nav list
var Place=0;
NavArr[Place]=new place();
NavArr[Place].name='Home';
NavArr[Place].link='index.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Staff';
NavArr[Place].link='staff.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Weekly Meetings & Events';
NavArr[Place].link='weeklyEvents.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Links';
NavArr[Place].link='links.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Ministries';
NavArr[Place].link='ministries.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Pastoral Council';
NavArr[Place].link='pastoral-council.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Friday Night Fireside Fellowship';
NavArr[Place].link='friday-night-fireside-fellowship.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Student Resident "Chapel Rat" program';
NavArr[Place].link='student-resident-chapel-rat-program.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Sacraments';
NavArr[Place].link='sacraments.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Scripture Readings';
NavArr[Place].link='scripture-readings.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Testimonies';
NavArr[Place].link='testimonies.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='Financial Aid';
NavArr[Place].link='financial-aid.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='MTU Orientation Week - St. Als Events!!!';
NavArr[Place].link='orientationWeek.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='St. Als Video!';
NavArr[Place].link='video.html';
Place++;
NavArr[Place]=new place();
NavArr[Place].name='St. Als Blog';
NavArr[Place].link='http://stalbertmtu.wordpress.com/ ';
/*Place++;
NavArr[Place]=new place();
NavArr[Place].name='Photorama';
NavArr[Place].link='cgi-bin/stalbert/photorama.cgi';*/

// end nav list


function AddSideNavMenu()
{
  document.write('<ul>');
  for(var i=0; i<NavArr.length; i++)
  {
    document.write('<li><a href="' + NavArr[i].link + '">' + NavArr[i].name + '</a></li>');
  }
  document.write('</ul>');
}

function AddBottomNavMenu()
{
  document.write('<p>');
  var i=0;
  for(i=0; i<NavArr.length-1; i++)
  {
    document.write('<a href="' + NavArr[i].link + '">' + NavArr[i].name + '</a> | ');
  }
  i=NavArr.length-1;
  document.write('<a href="' + NavArr[i].link + '">' + NavArr[i].name + '</a></p>');

  document.write('Send questions or comments about the website to the <a href="mailto:dflarson@mtu.edu">webmaster</a>.');
  
}

function AddDescription()
{
document.write( '<em><h5>A Vibrant Catholic Christian Campus Ministry at <A HREF="http://www.mtu.edu" target="_blank"><IMG SRC="/pics/mtu.gif" ALT="Michigan Tech" border=0></A> since 1963.</h5></em>' );
}

function AddAddress()
{
	document.write( '<p>411 MacInnes Drive<br/>Houghton, MI 49931</p>' );
}

function AddPhoneNumber()
{
	document.write( '<p>Phone: 906.482.5530<br/>Fax: 906.482.4828</p>' );
}

function AddPastorNameFull()
{
	document.write( 'Father Allen Mott' );
}

function AddPastorNameShort()
{
	document.write( 'Father Al' );	
}

function AddPastorEmailAddress()
{
	document.write( '<a href="mailto:fralmott@charterinternet.com">fralmott@charterinternet.com</a>' );	
}

function AddCurrentYear()
{
	document.write( '2009' );	
}

function AddCurrentSemester()
{
	document.write( 'Fall ' );
	AddCurrentYear();
}

function AddHeaderAndSidebar()
{
  document.write( '<h1>Saint Albert the Great University Parish</h1>' );

  document.write( '<div class="description">' );
  AddDescription();
  document.write( '</div>');

  document.write( '<div class="address">' );
  AddAddress();
  document.write( '</div>');
  
  document.write( '<div class="phone">' );
  AddPhoneNumber();
  document.write( '</div>');
  
  document.write( '<div class="menu">' );
  AddSideNavMenu();
  document.write( '</div>' );
  
}

function AddSundayEvents()
{
	document.write( '<tr><td>Mass at 11:00 a.m. </td></tr>' );
	document.write( '<tr><td>Refreshments in Parish Hall after 11:00 a.m. Mass. </td></tr>' );
	document.write( '<tr><td>RCIA in Student Lounge at 12:30 p.m.</td></tr>' );
	document.write( '<tr><td>Visiting The Elderly Group at 12:30 p.m.</td></tr>' );
	document.write( '<tr><td>Mass at 7 p.m. </td></tr>' );
	document.write( '<tr><td>Refreshments in Parish Hall after 7:00 p.m. Mass. </td></tr>' );
}

function AddMondayEvents()
{
}

function AddTuesdayEvents()
{
	document.write( '<tr><td>A.A. Group meets in St. Al\'s Meeting Room from  12 p.m. to 1 p.m. </td></tr>' );
	document.write( '<tr><td>S.A. Group meets in St. Al\'s Meeting Room from  7 p.m. to 8 p.m. </td></tr>' );
	document.write( '<tr><td>Eucharistic Adoration in the Chapel from 8 p.m. to 9 p.m.' );
	document.write( '<tr><td>Respect Life Group in Student Lounge from 9 p.m. to 10 p.m.</td></tr>' );
}

function AddWednesdayEvents()
{
	document.write( '<tr><td>G.A. group meeting in St. Al\'s Meeting Room from 7 p.m. to 8:30 p.m. </td></tr>' );
	document.write( '<tr><td>Confessions from 8:00-8:45 p.m. </td></tr>' );
	document.write( '<tr><td>Rosary in the Chapel at 8:30 p.m. </td></tr>' );
	document.write( '<tr><td>Mass at 9:00 p.m. </td></tr>' );
}

function AddThursdayEvents()
{
	document.write( '<tr><td>A.A. Group meets in St. Al\'s Meeting Room from  12 p.m. to 1 p.m. </td></tr>' );
	document.write( '<tr><td>Youth Ministry Group in Student Lounge from 5 p.m. to 6 p.m.</td></tr>' );
	document.write( '<tr><td>ALANON meets in St. Al\'s Meeting Room at 7:30 p.m. </td></tr>' );
	document.write( '<tr><td>Theology of the Body Group in Student Lounge from 8 p.m. to 9 p.m.</td></tr>' );
	document.write( '<tr><td>Apologetics Group in Student Lounge from 9 p.m. to 10 p.m.</td></tr>' );
	document.write( '<tr><td>Choir of Raphael Rehearsal in St. Al\'s Chapel from 9 p.m. to 10 p.m.</td></tr>' );
}

function AddFridayEvents()
{
	document.write( '<tr><td>Confessions from 5:00-5:25 p.m. </td></tr>' );
	document.write( '<tr><td>Mass at 5:30 p.m. </td></tr>' );
	document.write( '<tr><td>Fireside Fellowship Free Dinner in Parish Hall at 6:15 p.m. </td></tr>' );
	document.write( '<tr><td>Fireside Fellowship Gathering in Student Lounge at 7:00 p.m. </td></tr>' );
	document.write( '<tr><td>S.A. Group meets in St. Al\'s Meeting Room from 7 p.m. to 8 p.m. </td></tr>' );
}

function AddSaturdayEvents()
{
	document.write( '<tr><td>O.A. Group meets in St. Al\'s Meeting Room from 11 a.m. to 1 p.m. </td></tr>' );
}

function AddTodayText()
{
  	var now   = new Date();
  	var day   = now.getDay();
	if ( day == 0 )
  	{
		document.write( 'Sunday' );
  	}
  	else if ( day == 1 )
  	{
		document.write( 'Monday' );
  	}
  	else if ( day == 2 )
  	{
		document.write( 'Tuesday' );
  	}
  	else if ( day == 3 )
  	{
		document.write( 'Wednesday' );
  	}
  	else if ( day == 4 )
  	{
		document.write( 'Thursday' );
  	}
  	else if ( day == 5 )
  	{
		document.write( 'Friday' );
  	}
  	else if ( day == 6 )
  	{
		document.write( 'Saturday' );
	}
}

function AddTomorrowText()
{
  	var now   = new Date();
  	var day   = now.getDay() + 1;
	if ( day == 7 )
	{
		day = 0;	
	}
	if ( day == 0 )
  	{
		document.write( 'Sunday' );
  	}
  	else if ( day == 1 )
  	{
		document.write( 'Monday' );
  	}
  	else if ( day == 2 )
  	{
		document.write( 'Tuesday' );
  	}
  	else if ( day == 3 )
  	{
		document.write( 'Wednesday' );
  	}
  	else if ( day == 4 )
  	{
		document.write( 'Thursday' );
  	}
  	else if ( day == 5 )
  	{
		document.write( 'Friday' );
  	}
  	else if ( day == 6 )
  	{
		document.write( 'Saturday' );
	}
}

function AddTodaysSchedule()
{
  	var now   = new Date();
  	var day   = now.getDay();
	document.write( '<div class="content-atom">' );
	document.write( '<h2>What\'s happening today (' );
	AddTodayText();
	document.write( ') at St. Al\'s???</h2>' );
	document.write( '<table title="Todays Events">' );
	if ( day == 0 )
  	{
		AddSundayEvents();
  	}
  	else if ( day == 1 )
  	{
		AddMondayEvents();
  	}
  	else if ( day == 2 )
  	{
		AddTuesdayEvents();
  	}
  	else if ( day == 3 )
  	{
		AddWednesdayEvents();
  	}
  	else if ( day == 4 )
  	{
		AddThursdayEvents();
  	}
  	else if ( day == 5 )
  	{
		AddFridayEvents();
  	}
  	else if ( day == 6 )
  	{
		AddSaturdayEvents();
	}
	document.write( '</table>' );
	document.write( '</div>' );
}

function AddTomorrowsSchedule()
{
  	var now   = new Date();
  	var day   = now.getDay() + 1;
	if ( day == 7 )
	{
		day = 0;	
	}
	document.write( '<div class="content-atom">' );
	document.write( '<h2>What\'s happening tomorrow (' );
	AddTomorrowText();
	document.write( ') at St. Al\'s???</h2>' );
	document.write( '<table title="Todays Events">' );
	document.write( '<table title="Tomorrows Events">' );
	if ( day == 0 )
  	{
		AddSundayEvents();
  	}
  	else if ( day == 1 )
  	{
		AddMondayEvents();
  	}
  	else if ( day == 2 )
  	{
		AddTuesdayEvents();
  	}
  	else if ( day == 3 )
  	{
		AddWednesdayEvents();
  	}
  	else if ( day == 4 )
  	{
		AddThursdayEvents();
  	}
  	else if ( day == 5 )
  	{
		AddFridayEvents();
  	}
  	else if ( day == 6 )
  	{
		AddSaturdayEvents();
	}
	document.write( '</table>' );
	document.write( '</div>' );
}
