//#####################################################################################################
// MarionOhio.tv --- Simple Programming Schedule           ############################################
// Copyright © 2010 Studio 51 Multimedia Productions, Ltd. ############################################
// All Rights Reserved.                                    ############################################
//#####################################################################################################
//#####################################################################################################
//This Javascript file holds the information to display programming for each day.                 #####
//to add entries to each day, you must add the show and time to the appropriate Array             #####
//(i.e. Shows on Monday go in "mondayShows")                                                      #####
//link this file in the "<HEAD></HEAD>" section of your webpage and use the document.write action #####
//to display the appropriate information                                                          #####
//#####################################################################################################
//#####################################################################################################


//Gets today's date
var theDate = new Date();
var today = theDate.getDay();
var currentHour = theDate.getHours();

//set the names of the Days
var dayNames = new Array();
dayNames [0] = "Sunday";
dayNames [1] = "Monday";
dayNames [2] = "Tuesday";
dayNames [3] = "Wednesday";
dayNames [4] = "Thursday";
dayNames [5] = "Friday";
dayNames [6] = "Saturday";

//Arrays holding the shows and times for each day
var mondayShows = new Array();
mondayShows [0] = "8:00 a.m. - Hometown News (Replay)";
mondayShows [1] = "10:00 a.m. - The Fabric of Life";
mondayShows [2] = "11:00 a.m. - Just Asking";
mondayShows [3] = "3:00 p.m. - The Fabric of Life";
mondayShows [4] = "5:30 p.m. - Just Asking";
mondayShows [5] = "6:30 p.m. - Hometown News";
mondayShows [6] = "11:30 p.m. - Hometown News (Replay)";

var tuesdayShows = new Array();
tuesdayShows [0] = "1:30 a.m. - Hometown News (Replay)";
tuesdayShows [1] = "8:00 a.m. - Hometown News (Replay)";
tuesdayShows [2] = "10:00 a.m. - The Fabric of Life";
tuesdayShows [3] = "11:00 a.m. - Fireside Chat";
tuesdayShows [4] = "3:00 p.m. - The Fabric of Life";
tuesdayShows [5] = "5:30 p.m. - Inside TV-22";
tuesdayShows [6] = "6:30 p.m. - Hometown News";
tuesdayShows [7] = "7:00 p.m. - Its All About Safety";
tuesdayShows [8] = "11:30 p.m. - Hometown News (Replay)";

var wednesdayShows = new Array();
wednesdayShows [0] = "12:00 a.m. - Media World";
wednesdayShows [1] = "1:30 a.m. - Hometown News (Replay)";
wednesdayShows [2] = "8:00 a.m. - Hometown News (Replay)";
wednesdayShows [3] = "10:00 a.m. - The Fabric of Life";
wednesdayShows [4] = "11:00 a.m. - Its All About Safety";
wednesdayShows [5] = "3:00 p.m. - The Fabric of Life";
wednesdayShows [6] = "6:30 p.m. - Hometown News";
wednesdayShows [7] = "7:00 p.m. - Just Asking";
wednesdayShows [8] = "11:30 p.m. - Hometown News (Replay)";

var thursdayShows = new Array();
thursdayShows [0] = "1:30 a.m. - Hometown News (Replay)";
thursdayShows [1] = "3:00 a.m. - Just Asking";
thursdayShows [2] = "8:00 a.m. - Hometown News (Replay)";
thursdayShows [3] = "10:00 a.m. - The Fabric of Life";
thursdayShows [4] = "11:00 a.m. - Just Asking";
thursdayShows [5] = "3:00 p.m. - The Fabric of Life";
thursdayShows [6] = "5:30 p.m. - Just Asking";
thursdayShows [7] = "6:30 p.m. - Hometown News";
thursdayShows [8] = "11:30 p.m. - Hometown News (Replay)";

var fridayShows = new Array();
fridayShows [0] = "1:30 a.m. - Hometown News (Replay)";
fridayShows [1] = "8:00 a.m. - Hometown News (Replay)";
fridayShows [2] = "10:00 a.m. - The Fabric of Life";
fridayShows [3] = "3:00 p.m. - The Fabric of Life";
fridayShows [4] = "6:00 p.m. - Media World (NEW)";
fridayShows [5] = "6:30 p.m. - Hometown News";
fridayShows [6] = "11:30 p.m. - Hometown News (Replay)";

var saturdayShows = new Array();
saturdayShows [0] = "12:00 a.m. - Media World";
saturdayShows [1] = "1:30 a.m. - Hometown News (Replay)";
saturdayShows [2] = "7:30 a.m. - The Fabric of Life";
saturdayShows [3] = "8:00 a.m. - Hometown News (Replay)";
saturdayShows [4] = "9:00 a.m. - Its All About Safety";
saturdayShows [5] = "10:00 a.m. - Just Asking";
//saturdayShows [5] = "11:00 a.m. - Fireside Chat";
saturdayShows [6] = "11:30 a.m. - The Fabric of Life";
saturdayShows [7] = "12:00 p.m. - Media World";
saturdayShows [8] = "1:00 p.m. - Inside TV-22";
saturdayShows [9] = "3:00 p.m. - Its All About Safety";
saturdayShows [10] = "5:00 p.m. - Just Asking";
saturdayShows [11] = "6:00 p.m. - Media World";

var sundayShows = new Array();
sundayShows [0] = "7:30 a.m. - The Fabric of Life";
sundayShows [1] = "9:00 a.m. - Its All About Safety";
sundayShows [2] = "10:00 a.m. - Just Asking";
//sundayShows [3] = "11:00 a.m. - Fireside Chat";
sundayShows [3] = "11:30 a.m. - The Fabric of Life";
sundayShows [4] = "12:00 p.m. - Media World";
sundayShows [5] = "1:30 p.m. - Its All About Safety";
sundayShows [6] = "4:00 p.m. - Inside TV-22";
sundayShows [7] = "6:00 p.m. - Just Asking";
sundayShows [8] = "7:00 p.m. - Media World";

/* =============================== */
/* GLOBAL VARIBLES --- DO NOT EDIT */
/* =============================== */

var currentDay;
var nextDay;
var dayThree;

var tomorrowName = today + 1;
var dayThreeName = tomorrowName + 1;

	if (tomorrowName == 7) {
		tomorrowName = 0;
	}
	
	if (dayThreeName == 7) {
		dayThreeName = 0;
	}
//IF Statements linking the current day with the appropriate array
if (today == 0) {
	currentDay = sundayShows;
		}
	
if (today == 1) {
	currentDay = mondayShows;
	}

if (today == 2) {
	currentDay = tuesdayShows;
	
	}
	
if (today == 3) {
	currentDay = wednesdayShows;
	
	}
	
if (today == 4) {
	currentDay = thursdayShows;
	
	}
	
if (today == 5) {
	currentDay = fridayShows;
	
	}
	
if (today == 6) {
	currentDay = saturdayShows;
	
	}

//IF Statements linking Tomorrow with Appropriate Array
if (today == 0) {
	nextDay = mondayShows;
		}
	
if (today == 1) {
	nextDay = tuesdayShows;
	}

if (today == 2) {
	nextDay = wednesdayShows;
	
	}
	
if (today == 3) {
	nextDay = thursdayShows;
	
	}
	
if (today == 4) {
	nextDay = fridayShows;
	
	}
	
if (today == 5) {
	nextDay = saturdayShows;
	
	}
	
if (today == 6) {
	nextDay = sundayShows;
	
	}
//Links dayThree to array	
if (today == 0) {
	dayThree = tuesdayShows;
		}
	
if (today == 1) {
	dayThree = wednesdayShows;
	}

if (today == 2) {
	dayThree = thursdayShows;
	
	}
	
if (today == 3) {
	dayThree = fridayShows;
	
	}
	
if (today == 4) {
	dayThree = saturdayShows;
	
	}
	
if (today == 5) {
	dayThree = sundayShows;
	
	}
	
if (today == 6) {
	dayThree = mondayShows;
	
	}


var i 
var j 
var k 


