var NO_SHOW = "No show at this time";
// var show = NO_SHOW;
var GMToffset = -4; // Your current GMT offset, whether Standard or Daylight 
var now = new Date();
var dy = now.getDay(); // day of week 0-6
now.setHours(GMToffset + now.getHours() + now.getTimezoneOffset() / 60);
var hh = now.getHours();
var mn = now.getMinutes();
hh = hh + (mn/60); // minutes expressed as fractions of an hour

// The GMT offset ensures that every visitor, regardless of their timezone, will see the schedule
// that is appropriate for the site owner's local time.

// Tip - for testing purposes you can put here
//dy = 0;
// hh = 18.75;
// or whatever to check that the right show appears at that day/time.
// document.write(hh);

if (dy >=1 && dy <=5) 
{ // days in Javascript are 0 Sunday - 6 Saturday
if(hh >= 1 && hh <10) 
{
show = NO_SHOW;
}
if(hh >= 10 && hh < 10.16666)
{
show = "Search with Kurt David";
}
if( hh >= 10.10 && hh < 12.75)
{
show = NO_SHOW;
}
if (hh >= 12.75 && hh < 13)
{
show = "Spotlight";
}
if(hh >= 13 && hh < 18)
{
show = NO_SHOW;
}
if (hh >= 18 && hh < 19)
{
show = "Taking YA Back with Kurt David";
}
if(hh >= 17 && hh < 21)
{
show = NO_SHOW;
}
if (hh >= 21 && hh < 23) 
{
show = "Mix Bag with Bhawani Persad";
}
if(hh >= 21 && hh <= 24) 
{ 
show = NO_SHOW;
}
}

if (dy >= 2 && dy <=5) 
{
if(hh >=1 && hh <= 12.75) 
{
show = NO_SHOW;
}
if(hh >= 12.75 && hh <13)
{ 
show="Spotlight"; 
}
if(hh >= 13 && hh <= 21)
{
show = NO_SHOW;
}
if(hh >= 21 && hh < 23)
{
show = "Mix Bag with Bhawani Persad";
}
if(hh >= 21 && hh <= 24)
{
show = NO_SHOW;
}
}

if (dy >= 3 && dy <=5) 
{
if(hh >= 1 && hh <= 10)
{
show = NO_SHO;
}
if(hh >= 10 && hh < 10.1666)
{
show = "Songwriter Search with Kurt David";
}
if(hh >= 10 && hh <= 12.75)
{
show = NO_SHOW;
}
if(hh >= 12.75 && hh < 13)
{
show="Spotlight";
}
if(hh >= 13 && hh < 16)
{
show="Memory Lane with Big Bob";
}
if(hh >= 16 && hh <= 17)
{
show = NO_SHOW;
}
if(hh >= 17 && hh < 18)
{
show="Taking YA Back with Kurt David";
}
if (hh >= 18 && hh < 21)
{
show = "Brit Rock with Dominic Forbes";
}
if (hh >= 21 && hh < 23)
{
show = "Mix Bag with Bhawani Persad";
}
if(hh >= 23 && hh <= 24)
{
show = NO_SHOW;
}
}

if (dy >= 4 && dy <=5) 
{
if(hh >= 1 && hh < 12.75)
{
show = NO_SHOW;
}
if(hh >= 12.75 && hh < 13)
{
show="Spotlight";
}
if(hh >= 13 && hh <= 18)
{
show = NO_SHOW;
}
if(hh >= 18 && hh < 19)
{
show="Route 66 with Leslie Stevens";
}
if (hh >= 19 && hh < 21) 
{
show = "country roads With Dj sapphire"
}
if (hh >= 21 && hh < 23)
{
show = "Mix Bag with Bhawani Persad"
}
if(hh >= 23 && hh < 24)
{
show = NO_SHOW;
}
}

if (dy == 5) 
{
if(hh >= 1 && hh <= 10)
{
show = NO_SHOW;
}
if(hh >= 10 && hh < 10.1666)
{
show = "Songwriter Search with Kurt David";
}
if(hh >= 10.10 && hh <= 12.75)
{
show = NO_SHO;
}
if(hh >= 12.75 && hh < 13)
{
show = "Spotlight";
}
if(hh >= 13 && hh <= 18)
{
show = NO_SHOW;
}
if(hh >= 18 && hh < 19)
{
show = "Taking YA Back with Kurt David";
}
if(hh >= 19 && hh <= 21)
{
show = "DJ CJ";
}
if(hh >= 21 && hh <= 23)
{
show = "Friday Evening Brew With Bhawani Persad";
}
if(hh >= 23 && hh < 24)
{
show = NO_SHOW;
}
}

if (dy == 6) 
{ // Saturday Note the two = signs to mean equals
if(hh >= 1 && hh < 9)
{
show = NO_SHOW;
}
if(hh >= 9 && hh <= 12)
{
show = "noon Memory Lane with Big Bob";
}
if(hh >= 12 && hh < 12.75)
{
show = NO_SHOW;
}
if(hh >= 12.75 && hh < 13)
{
show = "Spotlight";
}
if(hh >= 13 && hh < 16)
{
show = "The Davy Dave show  with DJ Davy Dave";
}
if(hh >= 16 && hh < 18)
{
show = NO_SHO;
}
if(hh >= 18 && hh < 20)
{
show = "Back to the 80's with Ray Gauthier";
}
if(hh >= 20 && hh < 22)
{
show="Satuhday Night Lime with DJ Lingo";
}
if(hh >= 22 && hh < 24)
{
show = NO_SHOW;
}
} //End of Saturday Shows

if (dy == 0) 
{ //Sunday Shows
if(hh >= 1 && hh <= 6)
{
show = NO_SHOW;
}
if(hh >= 6 && hh < 8)
{
show = "Positive Vibes with Sister Sussie";
}
if(hh >= 8 && hh < 9)
{
show = "Maximum Hits With Ray Gauthier";
}
if(hh >= 9 && hh < 10)
{
show = "Bill Gaither&rsquo\;s - Homecoming Radio";
}
if(hh >= 10 && hh < 12)
{
show="Heavenly Sounds With DJ Sapphire";
}
if(hh >= 12 && hh < 12.75)
{
show = NO_SHOW;
}
if(hh >= 12.75 && hh < 13)
{
show = "Spotlight";
}
if(hh >= 13 && hh < 15)
{
show = "Twenty The Countdown Magazine with Jon Rivers";
}
if(hh >= 15 && hh < 15.5)
{
show = "lamplighter theatre, A world-class redemptive audio drama for family listening. Each gripping story focuses on building biblical character.";
}
if(hh >= 15.5 && hh < 16)
{
show = "Kids Corner, Uses drama and music to disciple children for Jesus and ignite their interest in the Bible.";
}
if(hh >= 16 && hh < 18)
{
show = "In the mix with DJ Davy Dave";
}
if(hh >= 18 && hh < 20)
{
show = "Classic Retro With Richard Todd";
}
if(hh >= 20 && hh < 23)
{
show = "Hart to Hart Show with Gary Allen at";
}
if(hh >= 23 && hh < 24)
{
show = NO_SHOW;
}
} // End of Sunday Shows

document.write(show);

