
var thisUrl = document.location.toString();
var queryDay;
var queryDayPart;

var thisDate = new Date();
var today = thisDate.getDay();
var todayDate = thisDate.getDate();
var thisHour = thisDate.getHours();
var thisMinute = thisDate.getMinutes();
var thisMonth = thisDate.getMonth();
var timeNow = thisHour + ":" + thisMinute;
var dst = true;
var homeZone;
var timeChange;

tzOffset = thisDate.getTimezoneOffset()/60

if ( (thisMonth >= 2) && (thisMonth <= 10) )

{
	
	if ( (todayDate < 8) && (thisMonth == 2) ) dst = false;
	if ( (todayDate >8) && (thisMonth == 10) ) dst = false;
}

if (dst) homeZone = 7;
if (!dst) homeZone = 8;

timeChange = homeZone - tzOffset;

//alert(dst);


var srchQry = "";

thisWeek = new Array();
thisWeek[0] ="Sunday";
thisWeek[1] ="Monday";
thisWeek[2] ="Tuesday";
thisWeek[3] ="Wednesday";
thisWeek[4] ="Thursday";
thisWeek[5] ="Friday";
thisWeek[6] ="Saturday";

today = thisWeek[today];

if ((thisUrl.indexOf("?") >0) && (thisUrl.indexOf("search") <0))
{
	tmp = thisUrl.split("?");
	temp = tmp[1];
	tmp = temp.split("&")
	queryDay = tmp[0];
	queryDayPart = tmp[1];
}

if ((thisUrl.indexOf("?") >0) && (thisUrl.indexOf("search") >=0))
{
	tmp = thisUrl.split("?");
	srchQry = tmp[1]
}

if (thisUrl.indexOf("?") <=0)		// the default views "today starting at the present time"
{

queryDay = today;
queryDayPart = "00:00+24:00";

if (thisHour>=0) queryDayPart = "00:00+06:00";
if (thisHour>=6) queryDayPart = "06:00+12:00";
if (thisHour>=12) queryDayPart = "12:00+18:00";
if (thisHour>=18) queryDayPart = "18:00+24:00";

}

//alert(parseInt(queryDayPart))

showArray = new Array();

showArray[0] = new Array()
showArray[0][0] = ""; 		// show name
showArray[0][1] = "";		// broadcast day(s)
showArray[0][2] = "";		// start time
showArray[0][3] = "";		// end time
showArray[0][4] = "";		// host(s) name
showArray[0][5] = ""; 		// description
showArray[0][6] ="";		// internal webpage
showArray[0][7] ="";		// show email
showArray[0][8] ="";		// external website
showArray[0][9] =""; 		// showIcon
showArray[0][10] ="off-air" 		// status on or off and repeat


showArray[1] = new Array()
showArray[1][0] = "Owen &amp; Sugi Show";
showArray[1][1] = "Saturday";
showArray[1][2] = "10:00";
showArray[1][3] = "12:00";
showArray[1][4] = "Owen &amp; Sugi";
showArray[1][5] = "Two kids who have too much spare time got together and somehow got themselves a radio show. Their ramblings and raves are compressed into a two hour show every Saturday morning at 10:00. Prepare to laugh, prepare to cry, prepare to be amazed. Its an emotional roller coaster in a radio. But it's not just an emotional roller coaster in a radio, its an emotional roller coaster in a radio with awesome music!";
showArray[1][6] ="";
showArray[1][7] ="theowenandsugishow@gmail.com";
showArray[1][8] ="http://www.facebook.com/pages/The-Owen-Sugi-Show/163932864809";
showArray[1][9] ="images/showicons/owenandsugiicon.jpg"; // showIcon
showArray[1][10] ="on-air" 								// status on or off

showArray[2] = new Array()
showArray[2][0] = "Global Chillage"
showArray[2][1] = "Tuesday"
showArray[2][2] = "22:00"
showArray[2][3] = "24:00"
showArray[2][4] = "Andrew Ross Collins"
showArray[2][5] = "Music heavy show with minimal chatter, flowing from the energetic to a deep mellow ending. Music selections to take in electronica, minimal tech, dub, dubstep, worldbeat, and dreamy downtempo. Occasional guest producers to showcase their sounds."
showArray[2][6] ="globalchillage/index.html"
showArray[2][7] ="";
showArray[2][8] ="http://www.facebook.com/home.php?ref=home#/group.php?gid=133276071983";
showArray[2][9] ="images/showicons/globalchillageicon.jpg"; // showIcon
showArray[2][10] ="on-air" 								// status on or off

showArray[3] = new Array()
showArray[3][0] = "Music For A While"
showArray[3][1] = "Sunday"
showArray[3][2] = "18:00";
showArray[3][3] = "20:00";
showArray[3][4] = "Richard Moses";
showArray[3][5] = "Enjoy an evening of musical classics.";
showArray[3][6] =""
showArray[3][7] ="";
showArray[3][8] ="";
showArray[3][9] =""; // showIcon
showArray[3][10] ="on-air" 								// status on or off

showArray[4] = new Array()
showArray[4][0] = "Sound Affect"		
showArray[4][1] = "Monday"
showArray[4][2] = "13:00";
showArray[4][3] = "14:00";
showArray[4][4] = "Donna Powell"
showArray[4][5] = ""
showArray[4][6] =""
showArray[4][7] ="";
showArray[4][8] ="";
showArray[4][9] =""; // showIcon
showArray[4][10] ="on-air" 								// status on or off

showArray[5] = new Array()
showArray[5][0] = "The Alan Moberg Show"
showArray[5][1] = "Wednesday"
showArray[5][2] = "12:00";
showArray[5][3] = "13:00";
showArray[5][4] = "";
showArray[5][5] = "";
showArray[5][6] ="";
showArray[5][7] ="";
showArray[5][8] ="";
showArray[5][9] =""; // showIcon
showArray[5][10] ="on-air"							// status on or off

showArray[6] = new Array()
showArray[6][0] = "Nocturnal Annelid"
showArray[6][1] = "Wednesday"
showArray[6][2] = "22:00";
showArray[6][3] = "24:00";
showArray[6][4] = "Captain A";	// Jamie Alexander
showArray[6][5] = "A late, late night tribute to pioneering Canadian dj/sound sculptor David Pritchard featuring an eclectic stew of old-school electronic, ambient, dub, prog, world, psychedelic and jazz.";
showArray[6][6] ="";
showArray[6][7] ="";
showArray[6][8] ="";
showArray[6][9] =""; // showIcon
showArray[6][10] ="on-air"							// status on or off

showArray[7] = new Array()
showArray[7][0] = "All Things Salt Spring"; 		// show name
showArray[7][1] = "Monday";		// broadcast day(s)
showArray[7][2] = "7:00";		// start time
showArray[7][3] = "9:00";		// end time
showArray[7][4] = "Li Read";		// host(s) name
showArray[7][5] = "An eclectic potpourri of music and musings to entertain, featurung Li Read, produced by Dave Gordon."; 		// description
showArray[7][6] ="";		// internal webpage
showArray[7][7] ="";		// show email
showArray[7][8] ="";		// external website
showArray[7][9] =""; 		// showIcon
showArray[7][10] ="on-air" 		// status on or off

showArray[8] = new Array()
showArray[8][0] = "Cooking With Wood" 
showArray[8][1] = "Wednesday"
showArray[8][2] = "9:00";
showArray[8][3] = "10:00";
showArray[8][4] = "Bruce Wood"
showArray[8][5] = ""
showArray[8][6] =""
showArray[8][7] ="";
showArray[8][8] ="";
showArray[8][9] =""; // showIcon
showArray[8][10] ="on-air" 								// status on or off

showArray[9] = new Array()
showArray[9][0] = "Report of the CRD"; 		// show name
showArray[9][1] = "Friday";		// broadcast day(s)
showArray[9][2] = "10:30";		// start time
showArray[9][3] = "11:00";		// end time
showArray[9][4] = "Garth Hendren";		// host(s) name
showArray[9][5] = "The Capital Regional District's a weekly update."; 		// description
showArray[9][6] ="";		// internal webpage
showArray[9][7] ="";		// show email
showArray[9][8] ="";		// external website
showArray[9][9] =""; 		// showIcon
showArray[9][10] ="on-air" 		// status on or off

showArray[10] = new Array()
showArray[10][0] = "The Two Daves Show"; 		// show name
showArray[10][1] = "Monday";		// broadcast day(s)
showArray[10][2] = "14:00";		// start time
showArray[10][3] = "17:00";		// end time
showArray[10][4] = "Dave and Dave";		// host(s) name
showArray[10][5] = "Blues and Soul are our meat and potatoes, but our gravy is constantly changing.  We Daves will play songs that reflect the mood of the day: both ours, and the world we see around us.  We will dig deep into our massive collections every week to find things to make you chuckle, scratch your head, and tap your feet: all at the same time, hopefully.  The Two Daves' Show is where you wind up unwinding. Let us be your chilly breeze at naptime";			// description
showArray[10][6] ="thetwodavesshow/index.html";		// internal webpage
showArray[10][7] ="";		// show email
showArray[10][8] ="http://www.facebook.com/pages/The-Two-Daves-Show/163955711129?v=info";		// external website
showArray[10][9] ="images/showicons/twodavesicon.jpg"; 		// showIcon
showArray[10][10] ="on-air" 		// status on or off

showArray[11] = new Array()	
showArray[11][0] = "Attics Of My Life"; 		// show name
showArray[11][1] = "Thursday";		// broadcast day(s)
showArray[11][2] = "17:00";		// start time
showArray[11][3] = "18:00";		// end time
showArray[11][4] = "Bruce Creswick";		// host(s) name
showArray[11][5] = "Music performed by and inspired by the Grateful Dead. Music spans the 30 years the band was together as well as what has happened musically since the death of band founder Jerry Garcia in 1995."; 		// description
showArray[11][6] ="";		// internal webpage
showArray[11][7] ="gdat107.9cfsi@yahoo.ca";		// show email
showArray[11][8] ="";		// external website
showArray[11][9] ="images/showicons/atticsofmylifeicon.jpg"; 		// showIcon
showArray[11][10] ="on-air" 		// status on or off

showArray[12] = new Array()
showArray[12][0] = "All Things Salt Spring"; 		// show name
showArray[12][1] = "Wednesday";		// broadcast day(s)
showArray[12][2] = "7:00";		// start time
showArray[12][3] = "9:00";		// end time
showArray[12][4] = "Li Read";		// host(s) name
showArray[12][5] = "An eclectic potpourri of music and musings to entertain, featurung Li Read, produced by Dave Gordon."; 		// description
showArray[12][6] ="";		// internal webpage
showArray[12][7] ="";		// show email
showArray[12][8] ="";		// external website
showArray[12][9] =""; 		// showIcon
showArray[12][10] ="on-air" 		// status on or off


showArray[13] = new Array()
showArray[13][0] = "The Speakeasy"; 		// show name
showArray[13][1] = "Monday";		// broadcast day(s)
showArray[13][2] = "20:00";		// start time
showArray[13][3] = "22:00";		// end time
showArray[13][4] = "John Bateman &amp; Matt Steffich";		// host(s) name
showArray[13][5] = "A variety show constructed on a solid foundation of humour, non-scripted chat, based around loose themes. Not a news or issue-driven program. In brief: random."; 		// description
showArray[13][6] ="";		// internal webpage
showArray[13][7] ="thespeakeasy@rocketmail.com";		// show email
showArray[13][8] ="http://www.speakeasyweb.com";		// external website
showArray[13][9] =""; 		// showIcon
showArray[13][10] ="on-air" 		// status on or off

showArray[14] = new Array()
showArray[14][0] = "Tasting Room"; 		// show name			
showArray[14][1] = "Saturday";		// broadcast day(s)
showArray[14][2] = "16:00";		// start time
showArray[14][3] = "18:00";		// end time
showArray[14][4] = "Terry David Mulligan";		// host(s) name
showArray[14][5] = ""; 		// description
showArray[14][6] ="";		// internal webpage
showArray[14][7] ="tdm@tastingroomradio.com";		// show email
showArray[14][8] ="http://tastingroomradio.com";		// external website
showArray[14][9] =""; 		// showIcon
showArray[14][10] ="on-air" 		// status on or off

showArray[15] = new Array()
showArray[15][0] = "The skinny, half caf, half sweet, sugar free vanilla latte, no foam, extra hot to 175 degrees morning show"; 		// show name
showArray[15][1] = "Tuesday";		// broadcast day(s)
showArray[15][2] = "7:30";		// start time
showArray[15][3] = "9:00";		// end time
showArray[15][4] = "Gary Brooks &amp; John Dolman";		// host(s) name
showArray[15][5] = ""; 		// description
showArray[15][6] ="";		// internal webpage
showArray[15][7] ="";		// show email
showArray[15][8] ="";		// external website
showArray[15][9] =""; 		// showIcon
showArray[15][10] ="on-air" 		// status on or off

showArray[16] = new Array()
showArray[16][0] = "Salt Spring Real Estate"; 		// show name
showArray[16][1] = "Tuesday";		// broadcast day(s)
showArray[16][2] = "12:00";		// start time
showArray[16][3] = "13:00";		// end time
showArray[16][4] = "Scott Simmons";		// host(s) name
showArray[16][5] = ""; 		// description
showArray[16][6] ="";		// internal webpage
showArray[16][7] ="";		// show email
showArray[16][8] ="";		// external website
showArray[16][9] =""; 		// showIcon
showArray[16][10] ="on-air" 		// status on or off

showArray[17] = new Array()
showArray[17][0] = "Just Jazz"; 		// show name
showArray[17][1] = "Friday";		// broadcast day(s)
showArray[17][2] = "17:00";		// start time
showArray[17][3] = "18:30";		// end time
showArray[17][4] = "John Moore";		// host(s) name
showArray[17][5] = "Mainstream jazz, from its New Orleans roots (Louis Armstrong, Sidney Bechet) to contemporary performers such as Diana Krall and Michael Buble. Big bands, bebop, cool (Gerry Mulligan, Paul Desmond) and the present-day scene on our West Coast and locally (Monik Nordine, Hugh Fraser). What the music was and how it continues to evolve. Interviews with local jazz players and fans, featuring their stories and favourite music."; 		// description
showArray[17][6] ="justjazz/index.html";		// internal webpage
showArray[17][7] ="justjazz2@shaw.ca";		// show email
showArray[17][8] ="";		// external website
showArray[17][9] ="images/showicons/justjazzicon.jpg"; 		// showIcon
showArray[17][10] ="on-air" 		// status on or off

showArray[18] = new Array()
showArray[18][0] = "Hip Hop On The Rock"; 	// show name
showArray[18][1] = "Friday";			// broadcast day(s)
showArray[18][2] = "21:30";			// start time
showArray[18][3] = "24:00";			// end time
showArray[18][4] = "Dano Hammer";	// host(s) name
showArray[18][5] = "A lively three and a half hour hip-hop dance party, jam-packed with irresistible beats."; // description
showArray[18][6] ="";	// internal webpage
showArray[18][7] ="info@danohammer.com";								// show email
showArray[18][8] ="http://danohammer.com";								// external website
showArray[18][9] ="images/showicons/dancepartyicon.jpg"; // showIcon
showArray[18][10] ="on-air" 								// status on or off

showArray[19] = new Array()
showArray[19][0] = "Home Game"; 		// show name
showArray[19][1] = "Tuesday";		// broadcast day(s)
showArray[19][2] = "20:00";		// start time
showArray[19][3] = "22:00";		// end time
showArray[19][4] = "Rob Pingle";		// host(s) name
showArray[19][5] = "The finest Canadian music from all points of the map and all styles of music, past and present, featuring interviews with artists touring to and living on Salt Spring."; 		// description
showArray[19][6] ="homegame/index.html";		// internal webpage
showArray[19][7] ="homegame@telus.net";		// show email
showArray[19][8] ="http://www.homegameradio.com/";		// external website
showArray[19][9] ="images/showicons/homegameicon.gif"; 		// showIcon
showArray[19][10] ="on-air" 		// status on or off and repeat

showArray[20] = new Array()
showArray[20][0] = "Bateman's Issues"; 		// show name
showArray[20][1] = "Thursday";		// broadcast day(s)
showArray[20][2] = "7:00";		// start time
showArray[20][3] = "9:00";		// end time
showArray[20][4] = "John Bateman";		// host(s) name
showArray[20][5] = ""; 		// description
showArray[20][6] ="";		// internal webpage
showArray[20][7] ="";		// show email
showArray[20][8] ="";		// external website
showArray[20][9] =""; 		// showIcon
showArray[20][10] ="on-air" 		// status on or off and repeat

showArray[21] = new Array()
showArray[21][0] = "Word on the Rock"; 		// show name
showArray[21][1] = "Wednesday";		// broadcast day(s)
showArray[21][2] = "11:30";		// start time
showArray[21][3] = "12:00";		// end time
showArray[21][4] = "Karen Hudson &amp; David Hart";		// host(s) name
showArray[21][5] = "Books on the Rock. Your Salt Spring Public Library connection with interesting guests and conversation about books and more."; 		// description
showArray[21][6] ="";		// internal webpage
showArray[21][7] ="";		// show email
showArray[21][8] ="";		// external website
showArray[21][9] =""; 		// showIcon
showArray[21][10] ="on-air" 		// status on or off and repeat

showArray[22] = new Array()
showArray[22][0] = "Bobby's Investment World"; 		// show name
showArray[22][1] = "Wednesday";		// broadcast day(s)
showArray[22][2] = "13:00";		// start time
showArray[22][3] = "14:00";		// end time
showArray[22][4] = "Bobby Magee";		// host(s) name
showArray[22][5] = "An hour of wide ranging investment information hosted by Bobby Magee, who brings his thirty years as Investment Advisor to the microphone to examine many aspects of investing for our listeners. Whether you are a neophyte or an in-the-trenches day trader you will find something to make your investing decisions a little clearer. News from outside the mainstream, trading tactics, and his Wild Things, a model list of investments are covered on Bobby's Investment World,"; 		// description
showArray[22][6] ="";		// internal webpage
showArray[22][7] ="";		// show email
showArray[22][8] ="";		// external website
showArray[22][9] ="images/showicons/bobbysicon.jpg"; 		// showIcon
showArray[22][10] ="on-air" 		// status on or off and repeat

showArray[23] = new Array()
showArray[23][0] = "The Beanstalk"; 		// show name
showArray[23][1] = "Friday";		// broadcast day(s)
showArray[23][2] = "10:00";		// start time
showArray[23][3] = "10:30";		// end time
showArray[23][4] = "Janine Fernandes-Hayden";		// host(s) name
showArray[23][5] = "If you are a parent or caregiver of a toddler or preschooler, then this is the show for you.  Planting seeds for thought with current research and information, personal reflections and practical strategies for the daily travails of childrearing.  Plus, songs and story time for kids to enjoy."; 		// description
showArray[23][6] ="";		// internal webpage
showArray[23][7] ="thebeanstalk.cfsi@gmail.com";		// show email
showArray[23][8] ="";		// external website
showArray[23][9] =""; 		// showIcon
showArray[23][10] ="on-air" 		// status on or off and repeat

showArray[24] = new Array()
showArray[24][0] = "Salt Spring Sounds"; 		// show name
showArray[24][1] = "Tuesday";		// broadcast day(s)
showArray[24][2] = "0:00";		// start time
showArray[24][3] = "2:00";		// end time
showArray[24][4] = "Bill Matthews";		// host(s) name
showArray[24][5] = "DJ BookBill will present thematic 2-hour music shows, with a broad range of categories including (but not limited to!) Ska, Rock (Classic & Otherwise), New-Wave, Britpop, Alternative, Fusion, Prog Rock, Psych, Grrrl Bands, Psychobilly, Bebop, Electronica ... all chosen from the extensive array of disks at Salt Spring Sound!"; 		// description
showArray[24][6] ="";		// internal webpage
showArray[24][7] ="bill@rainbownorth.com";		// show email
showArray[24][8] ="http://www.rainbownorth.com";		// external website
showArray[24][9] ="images/showicons/saltspringsounds.jpg"; 		// showIcon
showArray[24][10] ="on-air" 		// status on or off and repeat

showArray[25] = new Array()
showArray[25][0] = "Sounds Classical"; 		// show name
showArray[25][1] = "Wednesday";		// broadcast day(s)
showArray[25][2] = "18:30";		// start time
showArray[25][3] = "20:00";		// end time
showArray[25][4] = "George Ehring";		// host(s) name
showArray[25][5] = "Featuring a wide range of classical music with biographical and other commentary that will place composers and their works in their historical context. This show provides listeners with a little bit of music-appreciation along with the music."; 		// description
showArray[25][6] ="";		// internal webpage
showArray[25][7] ="";		// show email
showArray[25][8] ="";		// external website
showArray[25][9] =""; 		// showIcon
showArray[25][10] ="on-air" 		// status on or off and repeat

showArray[26] = new Array()
showArray[26][0] = "Valdy's Radio Hour | l'Heure de Valdy"; 		// show name
showArray[26][1] = "Wednesday";		// broadcast day(s)
showArray[26][2] = "20:00";		// start time
showArray[26][3] = "21:00";		// end time
showArray[26][4] = "Valdy";		// host(s) name
showArray[26][5] = "Weekly musical elements include Songs of the Salish Sea, the Generation Wheel, and Musicians that Rocked my World."; 		// description
showArray[26][6] ="";		// internal webpage
showArray[26][7] ="";		// show email
showArray[26][8] ="";		// external website
showArray[26][9] ="images/showicons/valdyshowicon.jpg"; 		// showIcon
showArray[26][10] ="on-air" 		// status on or off and repeat

showArray[27] = new Array()
showArray[27][0] = "Out With It"; 		// show name
showArray[27][1] = "Wednesday";		// broadcast day(s)
showArray[27][2] = "21:00";		// start time
showArray[27][3] = "22:00";		// end time
showArray[27][4] = "Ken Rouleau &amp; Dave Campbell";		// host(s) name
showArray[27][5] = "As \"facilitators of information\", the two hosts hope to challenge listeners with a new and informed slant on the news. Here are \"the devil's advocates\" in the flesh. "; 		// description
showArray[27][6] ="";		// internal webpage
showArray[27][7] ="";		// show email
showArray[27][8] ="";		// external website
showArray[27][9] =""; 		// showIcon
showArray[27][10] ="on-air" 		// status on or off and repeat

showArray[28] = new Array()
showArray[28][0] = "The Backdoor to Jazz"; 		// show name
showArray[28][1] = "Tuesday";		// broadcast day(s)
showArray[28][2] = "16:00";		// start time
showArray[28][3] = "17:00";		// end time
showArray[28][4] = "Curt Firestone";		// host(s) name
showArray[28][5] = "CJ is back in the CFSI studio playing the whole jazz spectrum just for Salt Spring.  Bebop, Dixieland, Classics, World, Blues and just plain finger snapping jazz.  Tune in every Tuesday from 4-5:00 PM and fill your afternoon with great sounds."; 		// description
showArray[28][6] ="";		// internal webpage
showArray[28][7] ="";		// show email
showArray[28][8] ="";		// external website
showArray[28][9] =""; 		// showIcon
showArray[28][10] ="on-air" 		// status on or off and repeat

showArray[29] = new Array()
showArray[29][0] = "Stayin' Alive and Well"; 		// show name
showArray[29][1] = "Thursday";		// broadcast day(s)
showArray[29][2] = "13:00";		// start time
showArray[29][3] = "13:30";		// end time
showArray[29][4] = "Darlene Steele";		// host(s) name
showArray[29][5] = "A focus on health and fitness issues with short presentations of current health topics, interviews with professionals and answers to questions from listeners."; 		// description
showArray[29][6] ="";		// internal webpage
showArray[29][7] ="";		// show email
showArray[29][8] ="";		// external website
showArray[29][9] =""; 		// showIcon
showArray[29][10] ="on-air" 		// status on or off and repeat

showArray[30] = new Array()
showArray[30][0] = "Punk On The Rock"; 		// show name
showArray[30][1] = "Thursday";		// broadcast day(s)
showArray[30][2] = "20:30";		// start time
showArray[30][3] = "22:00";		// end time
showArray[30][4] = "Jeff Hopkins";		// host(s) name
showArray[30][5] = "Learn about it, listen to it, explore more of it, find the edges of it. If you remember <b>punk</b> and like it, if you don't know anything about punk at all, or if you are more than minorly threatened by just the thought of punk, tune in for Punk on the Rock. WARNING: This show is not hosted by Ben Mulroney."; 		// description
showArray[30][6] ="";		// internal webpage
showArray[30][7] ="punkontherock@gmail.com";		// show email
showArray[30][8] ="";		// external website
showArray[30][9] ="images/showicons/punkontherockicon.png"; 		// showIcon
showArray[30][10] ="on-air" 		// status on or off and repeat

showArray[31] = new Array()
showArray[31][0] = "CFSI Morning Magazine"; 		// show name
showArray[31][1] = "Monday, Tuesday, Wednesday, Thursday, Friday";		// broadcast day(s)
showArray[31][2] = "9:00";		// start time
showArray[31][3] = "9:30";		// end time
showArray[31][4] = "";		// host(s) name
showArray[31][5] = "Featuring 'In The First Person' with Patricia Lockie - If you have a story to tell and have always been meaning to get it down on paper, now's the time; 'Starstruck Astrology' with commentaries by Gwenyth Luptak on current patterns in the sky and what that means for us. Topics vary from Mayan astrology to the current lunar cycle and v/c times; and the 'Community Calendar'."; 		// description
showArray[31][6] ="";		// internal webpage
showArray[31][7] ="";		// show email
showArray[31][8] ="";		// external website
showArray[31][9] =""; 		// showIcon
showArray[31][10] ="on-air" 		// status on or off and repeat

showArray[32] = new Array()
showArray[32][0] = "CFSI Community Calendar"; 		// show name
showArray[32][1] = "Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday";		// broadcast day(s)
showArray[32][2] = "18:00";		// start time
showArray[32][3] = "18:30";		// end time
showArray[32][4] = "Bill Nash";		// host(s) name
showArray[32][5] = "Find out what is happening in the community everyday of the week at 9am, noon, 3pm and 6pm."; 		// description
showArray[32][6] ="";		// internal webpage
showArray[32][7] ="communitycalendar@cfsi-fm.com";		// show email
showArray[32][8] ="http://www.saltspring-island.com/salt-spring-community-events.html";		// external website
showArray[32][9] =""; 		// showIcon
showArray[32][10] ="on-air" 		// status on or off and repeat


showArray[33] = new Array()
showArray[33][0] = "Solar Heat"; 		// show name
showArray[33][1] = "Friday";		// broadcast day(s)
showArray[33][2] = "12:00";		// start time
showArray[33][3] = "14:00";		// end time
showArray[33][4] = "Mike Cherry";		// host(s) name
showArray[33][5] = "Euro style program of jazz, acid-jazz, soul, neo-soul &amp; lounge, both current and vintage with an emphasis on indie artists; exclusive UK soul pre-releases and plenty of in-house custom jazz remixes too! Lunch never sounded so tasty!"; 		// description
showArray[33][6] ="";		// internal webpage
showArray[33][7] ="";		// show email
showArray[33][8] ="";		// external website
showArray[33][9] ="images/showicons/solarheaticon.jpg"; 		// showIcon
showArray[33][10] ="on-air" 		// status on or off and repeat

showArray[34] = new Array()
showArray[34][0] = "Starstruck Astrology"; 		// show name
showArray[34][1] = "Monday";		// broadcast day(s)
showArray[34][2] = "17:00";		// start time
showArray[34][3] = "17:30";		// end time
showArray[34][4] = "Gwenyth Luptak";		// host(s) name
showArray[34][5] = "A three times weekly Astrology series, with commentaries by Gwenyth Luptak on current patterns in the sky and what that means for us. Topics vary from Mayan astrology to the current lunar cycle and v/c times. Monday, Wednesday and Friday's during the 9 am CFSI Magazine and again at 5:00 pm."; 		// description
showArray[34][6] ="";		// internal webpage
showArray[34][7] ="";		// show email
showArray[34][8] ="";		// external website
showArray[34][9] =""; 		// showIcon
showArray[34][10] ="on-air" 		// status on or off and repeat

showArray[35] = new Array()
showArray[35][0] = "The Brad White Show"; 		// show name
showArray[35][1] = "Friday";		// broadcast day(s)
showArray[35][2] = "20:00";		// start time
showArray[35][3] = "21:30";		// end time
showArray[35][4] = "";		// host(s) name
showArray[35][5] = ""; 		// description
showArray[35][6] ="";		// internal webpage
showArray[35][7] ="";		// show email
showArray[35][8] ="";		// external website
showArray[35][9] =""; 		// showIcon
showArray[35][10] ="on-air" 		// status on or off and repeat

showArray[36] = new Array()
showArray[36][0] = "Hip Hop On The Rock"; 	// show name
showArray[36][1] = "Saturday";			// broadcast day(s)
showArray[36][2] = "0:00";			// start time
showArray[36][3] = "1:00";			// end time
showArray[36][4] = "Dano Hammer";	// host(s) name
showArray[36][5] = "A lively three and a half hour hip-hop, funk, soul and dance party, jam-packed with irresistible beats."; // description
showArray[36][6] ="";	// internal webpage
showArray[36][7] ="info@danohammer.com";								// show email
showArray[36][8] ="http://danohammer.com";								// external website
showArray[36][9] ="images/showicons/dancepartyicon.jpg"; // showIcon
showArray[36][10] ="on-air, cont" 								// status on or off

showArray[37] = new Array()
showArray[37][0] = "Bobby\'s Blast from the Past"; 		// show name
showArray[37][1] = "Tuesday";		// broadcast day(s)
showArray[37][2] = "14:00";		// start time
showArray[37][3] = "15:30";		// end time
showArray[37][4] = "Bobby Be Cool";		// host(s) name
showArray[37][5] = "Remember the music...Remember the time...Remember the emotions...Remember the history. Enjoy the fabulous flashback sounds of the music of the late fifty's and sixty's every Tuesday 2pm to 3:30pm with \"Bobby Be Cool.\" The Cool Guy will take you back in time and entertain you with the greatest hits of that era. Swing and Sway with Bobby Be Cool, every Tuesday on CFSI Radio."; 		// description
showArray[37][6] ="";		// internal webpage
showArray[37][7] ="";		// show email
showArray[37][8] ="";		// external website
showArray[37][9] =""; 		// showIcon
showArray[37][10] ="on-air" 		// status on or off and repeat

showArray[38] = new Array()
showArray[38][0] = "Heart of the Islands Satsang"; 		// show name			
showArray[38][1] = "Sunday";		// broadcast day(s)
showArray[38][2] = "10:30";		// start time
showArray[38][3] = "12:00";		// end time
showArray[38][4] = "Radha Fournier";		// host(s) name
showArray[38][5] = "Celebrate the world's spiritual heartbeat through music where we find the common ground of all spiritual beliefs.  Enjoy an international mix of music interspersed with spiritual reflections.  A full range of music from Baroque to Indian to Celtic to Middle Eastern to Gregorian Chants with some Big Band, Gospel and Blues thrown in to liven things up."; 		// description
showArray[38][6] ="";		// internal webpage
showArray[38][7] ="radha.ma.fournier@gmail.com";		// show email
showArray[38][8] ="http://HeartOfTheIslands.blogspot.com";		// external website
showArray[38][9] ="images/showicons/heartoftheislandsicon.jpg"; 		// showIcon
showArray[38][10] ="on-air" 		// status on or off and repeat

showArray[39] = new Array()
showArray[39][0] = "At The Crossroads"; 		// show name
showArray[39][1] = "Saturday";		// broadcast day(s)
showArray[39][2] = "18:00";		// start time
showArray[39][3] = "19:00";		// end time
showArray[39][4] = "Brant Zwicker";		// host(s) name
showArray[39][5] = "Focusing on the many genres that fit under the umbrella of <i>the blues</i>. This mainly contemporary music-intensive program features a classic cut or artist, plus a two-song spotlight on a new blues release. "; 		// description
showArray[39][6] ="atthecrossroads/index.html";		// internal webpage
showArray[39][7] ="";		// show email
showArray[39][8] ="http://www.atcblues.ca";		// external website
showArray[39][9] ="images/showicons/athecrossroadsicon.jpg"; 		// showIcon
showArray[39][10] ="on-air" 		// status on or off and repeat


showArray[41] = new Array()
showArray[41][0] = "Essence"; 		// show name
showArray[41][1] = "Thursday";		// broadcast day(s)
showArray[41][2] = "22:00";		// start time
showArray[41][3] = "24:00";		// end time
showArray[41][4] = "Rupert Adams";		// host(s) name
showArray[41][5] = "Electronica - all styles: house, drum'n'bass, breakbeat, techno, ambient, downbeat, dub, step, et al."; 		// description
showArray[41][6] ="";		// internal webpage
showArray[41][7] ="";		// show email
showArray[41][8] ="";		// external website
showArray[41][9] =""; 		// showIcon
showArray[41][10] ="on-air" 		// status on or off and repeat

showArray[42] = new Array()
showArray[42][0] = "Elevator Club"; 		// show name
showArray[42][1] = "Sunday";		// broadcast day(s)
showArray[42][2] = "6:00";		// start time
showArray[42][3] = "10:00";		// end time
showArray[42][4] = "Gord Bibby";		// host(s) name
showArray[42][5] = "<i>\"The most beautiful music in the world.\"</i> Elevator Club is a little jazzy and a little classy featuring lush instrumentals and soothing vocals from the golden age of easy listening &amp; MOR radio including performances by contemporary artists such as Burnaby's Michael Buble and Nanaimo's Diana Krall. If you missed a show you can download previous episodes at the Elevator Club website."; 		// description
showArray[42][6] ="";		// internal webpage
showArray[42][7] ="";		// show email
showArray[42][8] ="http://elevatorclubradio.com/";		// external website
showArray[42][9] ="images/showicons/elevatorclubicon.gif"; 		// showIcon
showArray[42][10] ="on-air" 		// status on or off and repeat

showArray[43] = new Array()
showArray[43][0] = "Hold Fast Thy Word"; 		// show name
showArray[43][1] = "Sunday";		// broadcast day(s)
showArray[43][2] = "10:00";		// start time
showArray[43][3] = "10:30";		// end time
showArray[43][4] = "Nicole &amp; Stephen";		// host(s) name
showArray[43][5] = "Bible verses selected and read with appropriate music and thoughtful and knowledgeable commentary."; 		// description
showArray[43][6] ="";		// internal webpage
showArray[43][7] ="holdfastthyword@gmail.com";		// show email
showArray[43][8] ="";		// external website
showArray[43][9] =""; 		// showIcon
showArray[43][10] ="on-air" 		// status on or off and repeat

showArray[44] = new Array()
showArray[44][0] = "Politics Be Damned"; 		// show name		UP FOR GRABS
showArray[44][1] = "Wednesday";		// broadcast day(s)
showArray[44][2] = "16:00";		// start time
showArray[44][3] = "16:30";		// end time
showArray[44][4] = "Darlene Steele";		// host(s) name
showArray[44][5] = ""; 		// description
showArray[44][6] ="";		// internal webpage
showArray[44][7] ="";		// show email
showArray[44][8] ="";		// external website
showArray[44][9] =""; 		// showIcon
showArray[44][10] ="on-air" 		// status on or off and repeat

showArray[45] = new Array()
showArray[45][0] = "Themes and Variations"; 		// show name
showArray[45][1] = "Sunday";		// broadcast day(s)
showArray[45][2] = "14:00";		// start time
showArray[45][3] = "15:00";		// end time
showArray[45][4] = "Murray Shoolbraid";		// host(s) name
showArray[45][5] = "Murray introduces music on a different theme each week, playing an eclectic mix of classical (heavy to light), popular music, folk songs, etc. etc.; and also examines what composers have done with other people's music."; 		// description
showArray[45][6] ="";		// internal webpage
showArray[45][7] ="";		// show email
showArray[45][8] ="";		// external website
showArray[45][9] =""; 		// showIcon
showArray[45][10] ="on-air" 		// status on or off and repeat

showArray[46] = new Array()
showArray[46][0] = "Bubbe's Blues"; 		// show name
showArray[46][1] = "Sunday";		// broadcast day(s)
showArray[46][2] = "15:00";		// start time
showArray[46][3] = "16:00";		// end time
showArray[46][4] = "Hannah Brown";		// host(s) name
showArray[46][5] = "Bubbe, aka Hannah Brown, will spin the turntable and elicit those wonderful old songs of the Blues Queens from the 1920's into the 1940's. Some of Bubbe's favourite philosophy might be thrown into the mix...what could be bad!"; 		// description
showArray[46][6] ="bubbesblues/index.html";		// internal webpage
showArray[46][7] ="bubbesblues@gmail.com";		// show email
showArray[46][8] ="";		// external website
showArray[46][9] ="images/showicons/bubbes-blues-hannah-icon.jpg"; 		// showIcon
showArray[46][10] ="on-air" 		// status on or off and repeat

showArray[47] = new Array()
showArray[47][0] = "Sounds Like Salt Spring"; 		// show name
showArray[47][1] = "Sunday";		// broadcast day(s)
showArray[47][2] = "16:00";		// start time
showArray[47][3] = "18:00";		// end time
showArray[47][4] = "Bill Nash";		// host(s) name
showArray[47][5] = "A variety show in every sense of the word with in studio and on location, live and recorded, call-in and discussion about everything Salt Spring. It will be quite an eclectic mix. We'll be showcasing the best, brightest and most unusual that Salt Spring Island has to offer in live music, interviews, discussion, information, news."; 		// description
showArray[47][6] ="soundslikesaltspring/index.html";		// internal webpage
showArray[47][7] ="";		// show email
showArray[47][8] ="http://www.saltspring-island.com/salt-spring-island-radio.html";		// external website
showArray[47][9] ="images/showicons/soundslikesaltspringicon.jpg"; 		// showIcon
showArray[47][10] ="on-air" 		// status on or off and repeat

showArray[48] = new Array()
showArray[48][0] = "Grow Your Own"; 		// show name
showArray[48][1] = "Wednesday";		// broadcast day(s)
showArray[48][2] = "15:00";		// start time
showArray[48][3] = "16:00";		// end time
showArray[48][4] = "Dennis Lucarelli and Belinda Schroeder";		// host(s) name
showArray[48][5] = "Interviews with Islanders about their farms and gardens. Focusing on local organic growing methods and heritage/heirloom varieties"; 		// description
showArray[48][6] ="";		// internal webpage
showArray[48][7] ="growyourowncfsi@gmail.com";		// show email
showArray[48][8] ="";		// external website
showArray[48][9] ="images/showicons/growyourownicon.jpg"; 		// showIcon
showArray[48][10] ="on-air" 		// status on or off and repeat	

showArray[49] = new Array()
showArray[49][0] = "Treehouse Cafe Live"; 		// show name
showArray[49][1] = "Sunday";		// broadcast day(s)
showArray[49][2] = "20:00";		// start time
showArray[49][3] = "21:00";		// end time
showArray[49][4] = "";		// host(s) name
showArray[49][5] = ""; 		// description
showArray[49][6] ="";		// internal webpage
showArray[49][7] ="";		// show email
showArray[49][8] ="";		// external website
showArray[49][9] =""; 		// showIcon
showArray[49][10] ="on-air" 		// status on or off and repeat

showArray[50] = new Array()
showArray[50][0] = "The Fish Show"; 		// show name
showArray[50][1] = "Sunday";		// broadcast day(s)
showArray[50][2] = "21:00";		// start time
showArray[50][3] = "24:00";		// end time
showArray[50][4] = "Theodore Trout";		// host(s) name
showArray[50][5] = "Theodore, Lord of the Trouts, rules the airwaves with an iron hand, a wooden foot, and a piece of string. A Splendid Time is Guaranteed For All."; 		// description
showArray[50][6] ="";		// internal webpage
showArray[50][7] ="";		// show email
showArray[50][8] ="http://www.thefishshow.com";		// external website
showArray[50][9] ="images/showicons/fishshowicon-explodehead.gif"; 		// showIcon
showArray[50][10] ="on-air" 		// status on or off and repeat

showArray[51] = new Array()
showArray[51][0] = "Music For A While"; 		// show name
showArray[51][1] = "Friday";		// broadcast day(s)
showArray[51][2] = "18:30";		// start time
showArray[51][3] = "20:00";		// end time
showArray[51][4] = "Richard Moses";		// host(s) name
showArray[51][5] = "Enjoy an evening of musical classics."; 		// description
showArray[51][6] ="";		// internal webpage
showArray[51][7] ="";		// show email
showArray[51][8] ="";		// external website
showArray[51][9] =""; 		// showIcon
showArray[51][10] ="on-air, repeat" 		// status on or off and repeat

showArray[52] = new Array()
showArray[52][0] = "A Beaver\'s Tale"; 		// show name
showArray[52][1] = "Thursday";		// broadcast day(s)
showArray[52][2] = "14:00";		// start time
showArray[52][3] = "15:00";		// end time
showArray[52][4] = "Phillip Reece";		// host(s) name
showArray[52][5] = "Looking at the Island from 2000 feet up and playing country music new and old from Taylor Swift to Johnny Cash, Cole Deggs, Willie Mack, Garth Brooks,Hank Williams Jr., Sugarland, Johnny Reid, Josh Turner, Rascal Flatts, Dolly Parton."; 		// description
showArray[52][6] ="";		// internal webpage
showArray[52][7] ="";		// show email
showArray[52][8] ="";		// external website
showArray[52][9] ="images/showicons/beaverstaleicon.jpg"; 		// showIcon
showArray[52][10] ="on-air" 		// status on or off and repeat

showArray[53] = new Array()
showArray[53][0] = ""; 		// show name
showArray[53][1] = "";		// broadcast day(s)
showArray[53][2] = "";		// start time
showArray[53][3] = "";		// end time
showArray[53][4] = "";		// host(s) name
showArray[53][5] = ""; 		// description
showArray[53][6] ="";		// internal webpage
showArray[53][7] ="";		// show email
showArray[53][8] ="";		// external website
showArray[53][9] =""; 		// showIcon
showArray[53][10] ="off-air" 		// status on or off and repeat

showArray[54] = new Array()
showArray[54][0] = "Counselling Connection"; 		// show name
showArray[54][1] = "Wednesday";		// broadcast day(s)
showArray[54][2] = "10:00";		// start time
showArray[54][3] = "11:00";		// end time
showArray[54][4] = "Dr. Jon";		// host(s) name
showArray[54][5] = "Dr. Jon is a counsellor on Salt Spring Island hosting a radio show designed to shape your day in a better way.  A lively hour of talk radio with the latest ideas to relieve stress and improve relationships combined with music to uplift your spirits."; 		// description
showArray[54][6] ="";		// internal webpage
showArray[54][7] ="";		// show email
showArray[54][8] ="";		// external website
showArray[54][9] ="images/showicons/consellingconnectionicon.jpg"; 		// showIcon
showArray[54][10] ="on-air" 		// status on or off and repeat

showArray[55] = new Array()
showArray[55][0] = "Music For A While";
showArray[55][1] = "Monday";
showArray[55][2] = "18:30";
showArray[55][3] = "20:00";
showArray[55][4] = "Rick Weston";
showArray[55][5] = "Enjoy an evening of musical classics.";
showArray[55][6] =""
showArray[55][7] ="";
showArray[55][8] ="";
showArray[55][9] =""; // showIcon
showArray[55][10] ="on-air" 								// status on or off


showArray[56] = new Array()
showArray[56][0] = "Music For A While"
showArray[56][1] = "Tuesday, Thursday, Friday"
showArray[56][2] = "18:30";
showArray[56][3] = "20:00";
showArray[56][4] = "Richard Moses";
showArray[56][5] = "Enjoy an evening of musical classics.";
showArray[56][6] =""
showArray[56][7] ="";
showArray[56][8] ="";
showArray[56][9] =""; // showIcon
showArray[56][10] ="on-air" 								// status on or off


showArray[57] = new Array()
showArray[57][0] = "Sounds Classical"; 		// show name
showArray[57][1] = "Saturday";		// broadcast day(s)
showArray[57][2] = "6:00";		// start time
showArray[57][3] = "7:30";		// end time
showArray[57][4] = "George Ehring";		// host(s) name
showArray[57][5] = "Featuring a wide range of classical music with biographical and other commentary that will place composers and their works in their historical context. This show provides listeners with a little bit of music-appreciation along with the music."; 		// description
showArray[57][6] ="";		// internal webpage
showArray[57][7] ="";		// show email
showArray[57][8] ="";		// external website
showArray[57][9] =""; 		// showIcon
showArray[57][10] ="on-air. repeat" 		// status on or off and repeat


showArray[58] = new Array()
showArray[58][0] = "Punk On The Rock"; 		// show name
showArray[58][1] = "Sunday";		// broadcast day(s)
showArray[58][2] = "0:00";		// start time
showArray[58][3] = "1:30";		// end time
showArray[58][4] = "Jeff Hopkins";		// host(s) name
showArray[58][5] = "Learn about it, listen to it, explore more of it, find the edges of it. If you remember <b>punk</b> and like it, if you don't know anything about punk at all, or if you are more than minorly threatened by just the thought of punk, tune in for Punk on the Rock. WARNING: This show is not hosted by Ben Mulroney."; 		// description
showArray[58][6] ="";		// internal webpage
showArray[58][7] ="";		// show email
showArray[58][8] ="";		// external website
showArray[58][9] ="images/showicons/punkontherockicon.png"; 		// showIcon
showArray[58][10] ="on-air, repeat" 		// status on or off and repeat

showArray[59] = new Array()
showArray[59][0] = "Alchemix"; 		// show name
showArray[59][1] = "Wednesday";		// broadcast day(s)
showArray[59][2] = "0:00";		// start time
showArray[59][3] = "2:00";		// end time
showArray[59][4] = "Alchemi Living Arts";		// host(s) name
showArray[59][5] = "An ecclectic mix of electronica and live music, bridging the gap with genres including glitch, womp, dubstep, crunk, indie, nufunk, psydub, downtempo,funky/minimal/tech/electro house and breaks. Providing information on upcoming festivals, dance tribe events, and intentional dances with occasional interviews with djs, artists and producers."; 		// description
showArray[59][6] ="";		// internal webpage
showArray[59][7] ="alchemilivingarts@gmail.com";		// email
showArray[59][8] ="";		// external website
showArray[59][9] =""; 		// showIcon
showArray[59][10] ="on-air" 		// status on or off and repeat

showArray[60] = new Array()
showArray[60][0] = "Off The Beaten Track"; 		// show name
showArray[60][1] = "Saturday";		// broadcast day(s)
showArray[60][2] = "9:00";		// start time
showArray[60][3] = "9:30";		// end time
showArray[60][4] = "Dr. Jason Cressey";		// host(s) name
showArray[60][5] = ""; 		// description
showArray[60][6] ="";		// internal webpage
showArray[60][7] ="";		// show email
showArray[60][8] ="";		// external website
showArray[60][9] =""; 		// showIcon
showArray[60][10] ="on-air, repeat" 		// status on or off and repeat

showArray[61] = new Array()
showArray[61][0] = "Nettle Pie"; 		// show name
showArray[61][1] = "Friday";		// broadcast day(s)
showArray[61][2] = "7:00";		// start time
showArray[61][3] = "9:00";		// end time
showArray[61][4] = "Dennis Lucarelli";		// host(s) name
showArray[61][5] = ""; 		// description
showArray[61][6] ="";		// internal webpage
showArray[61][7] ="";		// show email
showArray[61][8] ="";		// external website
showArray[61][9] =""; 		// showIcon
showArray[61][10] ="on-air" 		// status on or off and repeat

showArray[62] = new Array()
showArray[62][0] = "Bobby's Investment World"; 		// show name
showArray[62][1] = "Friday";		// broadcast day(s)
showArray[62][2] = "5:00";		// start time
showArray[62][3] = "6:00";		// end time
showArray[62][4] = "Bobby Magee";		// host(s) name
showArray[62][5] = "An hour of wide ranging investment information hosted by Bobby Magee, who brings his thirty years as Investment Advisor to the microphone to examine many aspects of investing for our listeners. Whether you are a neophyte or an in-the-trenches day trader you will find something to make your investing decisions a little clearer. News from outside the mainstream, trading tactics, and his Wild Things, a model list of investments are covered on Bobby's Investment World,"; 		// description
showArray[62][6] ="";		// internal webpage
showArray[62][7] ="";		// show email
showArray[62][8] ="";		// external website
showArray[62][9] ="images/showicons/bobbysicon.jpg"; 		// showIcon
showArray[62][10] ="on-air, repeat" 		// status on or off and repeat

showArray[63] = new Array()
showArray[63][0] = "Heal Thyself"; 		// show name
showArray[63][1] = "Sunday";		// broadcast day(s)
showArray[63][2] = "13:00";		// start time
showArray[63][3] = "14:00";		// end time
showArray[63][4] = "Shaughn Jenson";		// host(s) name
showArray[63][5] = ""; 		// description
showArray[63][6] ="";		// internal webpage
showArray[63][7] ="";		// show email
showArray[63][8] ="";		// external website
showArray[63][9] =""; 		// showIcon
showArray[63][10] ="on-air" 		// status on or off and repeat

showArray[64] = new Array()
showArray[64][0] = "No Inheritance"; 		// show name
showArray[64][1] = "Saturday";		// broadcast day(s)
showArray[64][2] = "14:00";		// start time
showArray[64][3] = "16:00";		// end time
showArray[64][4] = "Ben Halley";		// host(s) name
showArray[64][5] = ""; 		// description
showArray[64][6] ="";		// internal webpage
showArray[64][7] ="";		// show email
showArray[64][8] ="";		// external website
showArray[64][9] =""; 		// showIcon
showArray[64][10] ="on-air" 		// status on or off and repeat

showArray[65] = new Array()
showArray[65][0] = "The Rock Shop"; 		// show name
showArray[65][1] = "Saturday";		// broadcast day(s)
showArray[65][2] = "19:00";		// start time
showArray[65][3] = "22:00";		// end time
showArray[65][4] = "Jonathon Dinsdale";		// host(s) name
showArray[65][5] = ""; 		// description
showArray[65][6] ="";		// internal webpage
showArray[65][7] ="";		// show email
showArray[65][8] ="";		// external website
showArray[65][9] =""; 		// showIcon
showArray[65][10] ="on-air" 		// status on or off and repeat

showArray[66] = new Array()
showArray[66][0] = "Just Standing Here, Smiling"; 		// show name
showArray[66][1] = "Thursday";		// broadcast day(s)
showArray[66][2] = "15:00";		// start time
showArray[66][3] = "17:00";		// end time
showArray[66][4] = "Richard Hayden";		// host(s) name
showArray[66][5] = "Interesting music and inconsequential conversations."; 		// description
showArray[66][6] ="";		// internal webpage
showArray[66][7] ="";		// show email
showArray[66][8] ="";		// external website
showArray[66][9] =""; 		// showIcon
showArray[66][10] ="on-air" 		// status on or off and repeat

showArray[67] = new Array()
showArray[67][0] = "History of Salt Spring"; 		// show name
showArray[67][1] = "Friday";		// broadcast day(s)
showArray[67][2] = "16:00";		// start time
showArray[67][3] = "17:00";		// end time
showArray[67][4] = "Henry Baade &amp; Dave Phillips";		// host(s) name
showArray[67][5] = ""; 		// description
showArray[67][6] ="";		// internal webpage
showArray[67][7] ="";		// show email
showArray[67][8] ="";		// external website
showArray[67][9] =""; 		// showIcon
showArray[67][10] ="on-air" 		// status on or off and repeat


showArray[68] = new Array()	
showArray[68][0] = "Attics Of My Life"; 		// show name
showArray[68][1] = "Thursday";		// broadcast day(s)
showArray[68][2] = "18:00";		// start time
showArray[68][3] = "18:30";		// end time
showArray[68][4] = "Bruce Creswick";		// host(s) name
showArray[68][5] = "Music performed by and inspired by the Grateful Dead. Music spans the 30 years the band was together as well as what has happened musically since the death of band founder Jerry Garcia in 1995."; 		// description
showArray[68][6] ="";		// internal webpage
showArray[68][7] ="gdat107.9cfsi@yahoo.ca";		// show email
showArray[68][8] ="";		// external website
showArray[68][9] ="images/showicons/atticsofmylifeicon.jpg"; 		// showIcon
showArray[68][10] ="on-air, cont" 		// status on or off

showArray[69] = new Array()
showArray[69][0] = "Rock &amp; Roll High"; 		// show name
showArray[69][1] = "Monday";		// broadcast day(s)
showArray[69][2] = "22:00";		// start time
showArray[69][3] = "24:00";		// end time
showArray[69][4] = "Bill Nash";		// host(s) name
showArray[69][5] = ""; 		// description
showArray[69][6] ="";		// internal webpage
showArray[69][7] ="";		// show email
showArray[69][8] ="";		// external website
showArray[69][9] =""; 		// showIcon
showArray[69][10] ="on-air" 		// status on or off and repeat

showArray[70] = new Array()
showArray[70][0] = "Chamber of Commerce Show"; 		// show name
showArray[70][1] = "Thursday";		// broadcast day(s)
showArray[70][2] = "12:00";		// start time
showArray[70][3] = "13:00";		// end time
showArray[70][4] = "Paul Neale";		// host(s) name
showArray[70][5] = ""; 		// description
showArray[70][6] ="";		// internal webpage
showArray[70][7] ="";		// show email
showArray[70][8] ="";		// external website
showArray[70][9] =""; 		// showIcon
showArray[70][10] ="on-air" 		// status on or off and repeat


showArray[71] = new Array()
showArray[71][0] = "At The Crossroads"; 		// show name
showArray[71][1] = "Thursday";		// broadcast day(s)
showArray[71][2] = "0:00";		// start time
showArray[71][3] = "1:00";		// end time
showArray[71][4] = "Brant Zwicker";		// host(s) name
showArray[71][5] = "Focusing on the many genres that fit under the umbrella of <i>the blues</i>. This mainly contemporary music-intensive program features a classic cut or artist, plus a two-song spotlight on a new blues release. "; 		// description
showArray[71][6] ="atthecrossroads/index.html";		// internal webpage
showArray[71][7] ="";		// show email
showArray[71][8] ="http://www.atcblues.ca";		// external website
showArray[71][9] =""; 		// showIcon
showArray[71][10] ="on-air, repeat" 		// status on or off and repeat

showArray[72] = new Array()
showArray[72][0] = "Off The Beaten Track"; 		// show name
showArray[72][1] = "Thursday";		// broadcast day(s)
showArray[72][2] = "20:00";		// start time
showArray[72][3] = "20:30";		// end time
showArray[72][4] = "Dr. Jason Cressey";		// host(s) name
showArray[72][5] = ""; 		// description
showArray[72][6] ="";		// internal webpage
showArray[72][7] ="";		// show email
showArray[72][8] ="";		// external website
showArray[72][9] =""; 		// showIcon
showArray[72][10] ="on-air" 		// status on or off and repeat


showArray[73] = new Array()
showArray[73][0] = "Grow Your Own"; 		// show name
showArray[73][1] = "Friday";		// broadcast day(s)
showArray[73][2] = "6:00";		// start time
showArray[73][3] = "7:00";		// end time
showArray[73][4] = "Dennis Lucarelli and Belinda Schroeder";		// host(s) name
showArray[73][5] = "Interviews with Islanders about their farms and gardens. Focusing on local organic growing methods and heritage/heirloom varieties"; 		// description
showArray[73][6] ="";		// internal webpage
showArray[73][7] ="growyourowncfsi@gmail.com";		// show email
showArray[73][8] ="";		// external website
showArray[73][9] ="images/showicons/growyourownicon.jpg"; 		// showIcon
showArray[73][10] ="on-air, repeat" 		// status on or off and repeat



/* BLANK arrary to copy and paste

showArray[] = new Array()
showArray[][0] = ""; 		// show name
showArray[][1] = "";		// broadcast day(s)
showArray[][2] = "";		// start time
showArray[][3] = "";		// end time
showArray[][4] = "";		// host(s) name
showArray[][5] = ""; 		// description
showArray[][6] ="";		// internal webpage
showArray[][7] ="";		// show email
showArray[][8] ="";		// external website
showArray[][9] =""; 		// showIcon
showArray[][10] ="on-air" 		// status on or off and repeat


*/
// off-air 

showArray[40] = new Array()
showArray[40][0] = "Allowed Sound"; 		// show name
showArray[40][1] = "Saturday";		// broadcast day(s)
showArray[40][2] = "19:00";		// start time
showArray[40][3] = "21:00";		// end time
showArray[40][4] = "Ramesh Meyers";		// host(s) name
showArray[40][5] = "Talking Heads, Bill Frisell, Sid Barrett, Rokia Trore, Bang on a Can, the Go Team, Howlin Wolf, Papa Haydn, the New Pornagraphers, the Stones, Chic, Hank Williams, Pere Ubu, Von Bingen, Lee Scratch Perry, Eno, Lenny Breau- its all Allowed Sound."; 		// description
showArray[40][6] ="";		// internal webpage
showArray[40][7] ="";		// show email
showArray[40][8] ="";		// external website
showArray[40][9] ="images/showicons/allowedsoundicon.jpg"; 		// showIcon
showArray[40][10] ="off-air" 		// status on-air or off-air and repeat


showArray.sort();

var hitArray = new Array();
var h=0;

for (s=0; s <= showArray.length-1; s++)
{
	//if (thisUrl.indexOf("admin") <0)
	//{
	
	stat = showArray[s][10];
	if ((showArray[s][1] == queryDay) && (stat.indexOf("on-air") >=0))
	{
	 	hitArray[h] = showArray[s];
	 	h++;
	}
	if (showArray[s][1] != queryDay)
	{
		str = showArray[s][1];
		if ((str.indexOf(queryDay) >=0) && (stat.indexOf("on-air") >=0))
		{
		 	hitArray[h] = showArray[s];
		 	h++;
		 }
	}
	
	//}
	
}


function randomShow()
{
	var randShows = new Array();
	r = 0;
	
	for (s=0; s<=showArray.length-1; s++)
	{
		stats = showArray[s][10];
		if ( (stats.indexOf("on-air") >=0) && (stats.indexOf("repeat") <0) )
		{
			randShows[r] = showArray[s];
			r = r+1;
		}
	
	}


	noShows = randShows.length;
	x = parseInt((Math.random() * noShows))

	tmp = randShows[x][2];
	temp = tmp.split(":");
	hr = temp[0];
	mn = temp[1];
	per = "am";
	
	// 		handle TimeZones here.... ?
	
	if (hr >=12)
	{
		if (hr==12) per ="pm";
		if (hr>12)
		{
			hr = hr-12;
			per = "pm"
		}
	}
	time = hr + ":" + mn + " " + per;


	//alert(x)
	document.write("<p class='cite'>")

	if (randShows[x][9] != "")
	{
		if (randShows[x][6] != "") document.write("<a href='" + randShows[x][6] + "'>");
		document.write("<img src='" + randShows[x][9] + "' border='0' style='margin:4px;'></br>");
		if (randShows[x][6] != "") document.write("</a>");

	}
		if (randShows[x][6] != "") document.write("<p class='cite'><a href='" + randShows[x][6] + "'>");
		document.write("<b>" + randShows[x][0] + "</b>");
		if (randShows[x][6] != "") document.write("</a>");
	
	if (randShows[x][4] != "") document.write("<br>with <b>" + randShows[x][4] + "</b>")

	if (randShows[x][5] != "") document.write("<br><i>" + randShows[x][5] + "</i>")
	document.write("<br><b>" + randShows[x][1] + " starting at " + time)
	document.write("</b>")
	document.write("")
	
} // end function randomSHow

var nowScheduled = "";


function currentShow(req)
{


	for (s=0; s<= hitArray.length-1; s++)
	{
		tmp = hitArray[s][2];
		temp = tmp.split(":");
		startHr = temp[0];
		startMin = temp[1];
		tmp = hitArray[s][3];
		temp = tmp.split(":");
		endHr = temp[0];
		endMin = temp[1];

		if ( (today==queryDay) && (startHr <= thisHour) && (startMin <= thisMinute) )
		{
			if (endHr == thisHour)
			{
				if (endMin >= thisMinute) nowScheduled = hitArray[s];
			}
			if (endHr > thisHour)
			{
				nowScheduled = hitArray[s];
			}
		}
		

	}

	if (req == "main")
	{
		if (nowScheduled != "")
		{		
			document.write("<p class='cite' align='center'><b>ON AIR NOW: ");
			document.write("<a href='http://87.117.250.5:9148/listen.pls'>" + nowScheduled[0] + "</a></b>");
			if (nowScheduled[4] != "") document.write("<i> with " + nowScheduled[4] + "</i>");
		}
		if (nowScheduled == "")
		{		
			document.write("<p class='cite' align='center'><b>");
			document.write("<a href='http://87.117.250.5:9148/listen.pls'>Listen Live Online</a></b>");
		}
	}
}

tmp = queryDayPart.split("+")
DPstart = parseInt(tmp[0]);
DPend = parseInt(tmp[1]);
dur = DPend-DPstart;
hourGrid = new Array();
var hg = 0;
var act;
var cellBG= "e0e0f0";
var	prog = "CFSI Music";
var rsrvTill = 0;

//alert(queryDayPart)

function dynaSked()
{

document.writeln("<table border='0' width='100%' cellpadding='4' cellspacing='4'>");	
document.writeln("<tr><td valign='top' width='33%' align='left'>")

if (DPstart >= 6) document.write("<input type='button' value='Earlier' onClick='changeQuery(\"\", \"prevPart\")'>");
if (DPstart < 6) document.write("<input type='button' value='Day Before' onClick='changeQuery(\"prevDay\", \"prevPart\")'>");

document.writeln("</td><td width='34%' valign='top' align='center'>");

document.writeln("<nobr><input type=\"button\" value=\"<-\" onClick=\"changeQuery('prevDay','')\">");
document.writeln("<select name = \"day\" onChange=\"changeQuery()\">");
document.writeln("	<option value=\"Monday\">Monday");
document.writeln("	<option value=\"Tuesday\">Tuesday");
document.writeln("	<option value=\"Wednesday\">Wednesday");
document.writeln("	<option value=\"Thursday\">Thursday");
document.writeln("	<option value=\"Friday\">Friday");
document.writeln("	<option value=\"Saturday\">Saturday");
document.writeln("	<option value=\"Sunday\">Sunday");
document.writeln("</select>");
document.writeln("<input type=\"button\" value=\"->\" onClick=\"changeQuery('nextDay','')\">");
document.writeln("</nobr>");

document.writeln("</td><td width='33%' valign='top' align='right'>");

document.writeln("<p class='table'><i>Day-part:</i> <select name = \"dayPart\" onChange=\"changeQuery()\">");
	document.writeln("<option value=\"00:00+24:00\">All Day");
	document.writeln("<option value=\"00:00+06:00\">Midnight - 6am");
	document.writeln("<option value=\"06:00+12:00\">6am - Noon");
	document.writeln("<option value=\"12:00+18:00\">Noon - 6pm");
	document.writeln("<option value=\"18:00+24:00\">6pm - Midnight");
document.writeln("</select>");




document.writeln("</td></tr></table>");
document.writeln("<table border='0' width='100%' cellpadding='4' cellspacing='4'>");	


	for (d=DPstart; d<= DPend-.5; d = d + 0.5)
	{
		
		var ap = "am";
		var tm = d;
		var tm24 = tm;
		
		if (d >=12)
		{
			ap = "pm";
			if (d>=13) tm = (d-12);
		}
		
		t = tm.toString();
		if (t.indexOf(".5") >= 0)
		{
			tm = parseInt(t) + ":30"
			tm24 = parseInt(d) + ":30"
		}
		if (t.indexOf(".5") < 0 ) 
		{
			tm = t + ":00";
			tm24 = parseInt(d) + ":00"
		}
		showHit = "";
		hourGrid[hg] = new Array(tm24, tm, ap, showHit)
		hg = hg+1;

	}
	
		
	for (g=0; g<=hourGrid.length-1; g++)
	{
			
			for (sh =0; sh<= hitArray.length-1; sh++)
			{
				if (hitArray[sh][2] == hourGrid[g][0])
				{
					
					hourGrid[g][3] = new Array();
					hourGrid[g][3] = hitArray[sh];
					var tamp;
					tmp = hitArray[sh][3];
					if (tmp.indexOf(":30") >=0) 
					{
						temp = tmp.split(":");
						tamp = (parseInt(temp[0])*2) + 1;
					}
					if (tmp.indexOf(":00") >=0) 
					{
						temp = tmp.split(":");
						tamp = (parseInt(temp[0])*2);
					}
					rsrvTill = tamp;
					prog = "Program";
				}
				
				if ( (hitArray[sh][2] != hourGrid[g][0]) && ( g < (parseFloat(rsrvTill)-(parseInt(queryDayPart)*2) ) ) )
				{
					prog = "<font size='-2'><i>continued...</i></font>"
					cellBG = "f0e0e0";
				}
				if ((hitArray[sh][2] != hourGrid[g][0]) && ( g >= (parseFloat(rsrvTill)-(parseInt(queryDayPart)*2)) ) )
				{
					prog = "CFSI Music";
					cellBG = "e0e0f0";
				}
	
	
			} // ends for (sh =0; sh<= hitArray.length-1; sh++)
			
						
		
		
		document.writeln("<tr><td valign='top' width='10%' align='left'><p class='table'>")
		
		if (thisHour == parseInt(hourGrid[g][0]) && (today == queryDay)) document.write("<b>");
		document.writeln(hourGrid[g][1] + " " +  hourGrid[g][2] + "</td>");
		if (thisHour == parseInt(hourGrid[g][0]) && (today == queryDay)) document.write("</b>");
		
		document.writeln("</td><td width='90%' valign='top' bgcolor='" + cellBG + "'>");
		document.write("<p class='table'>");
		
		if (hourGrid[g][3] != "")
		{ 
							if (hourGrid[g][3][6] != "") document.write("<a href='" + hourGrid[g][3][6] + "'>");
							document.write("<b>" + hourGrid[g][3][0] + "</b>");
							if (hourGrid[g][3][6] != "") document.write("</a>");
							if (hourGrid[g][3][4] != "") document.write(" with " + hourGrid[g][3][4]);
							if (hourGrid[g][3][5] != "") document.write("<p class='cite'><i>" + hourGrid[g][3][5] + "</i>");
							
							if (hourGrid[g][3] == nowScheduled) document.write(" <b><a href='http://87.117.250.5:9148/listen.pls'>ON AIR NOW</a></b>")
							
		}
		
		
		if (hourGrid[g][3] == "") document.write(prog);
		
		document.writeln("</td></tr>");
		
	
	}  // ends for (g=0; g<=hourGrid.length-1; g++)
	
	document.writeln("<tr><td valign='top' width='10%' align='left'>")
	
	if ((DPstart < 18) && (DPend <24)) document.write("<input type='button' value='Later' onClick='changeQuery(\"\", \"nextPart\")'>");
	if ((DPend == 24) || (DPstart >= 18)) document.write("<input type='button' value='Next Day' onClick='changeQuery(\"nextDay\", \"nextPart\")'>");
	
	document.writeln("</td><td width='90%' valign='top'></td></tr>");

	document.write("</table>");


} // end function

