var cur ="singles"
var nxt ="partners"
var nextTourney = "The current tournament being played is a " + cur + ". The next tournament will be a "+ nxt + "  beginning at "+nhours+":00"+am+" eastern time"
var am ="am"
var TimezoneOffset = -4  // adjust for time zone
var localTime = new Date()
var ms = localTime.getTime() 
             + (localTime.getTimezoneOffset() * 60000)
             + TimezoneOffset * 3600000
var tdate= new Date(ms)
var hrs = tdate.getHours();
var nhours = tdate.getHours() + 1
var tminutes = tdate.getMinutes();
var tseconds = tdate.getSeconds();

if (hrs >=12) am="pm"

if (nhours > 12) nhours=nhours - 12
if (hrs ==23) am="am"
if (hrs == 9){
var cur = "singles"
var nxt = "singles"
}
if (hrs == 10){
var cur = "singles"
var nxt = "singles"
}
if (hrs == 11){
var cur = "singles"
var nxt ="partners"
}
if (hrs == 12){
var cur = "partners"
var nxt = "singles"
}
if (hrs == 13){
var cur = "singles"
var nxt ="partners"
}

if (hrs == 14){
var cur = "partners"
var nxt = "singles"
}

if (hrs  == 15){
var cur = "singles"
var nxt ="partners"
}
if (hrs == 16){
var cur = "partners"
var nxt = "singles"
}
if (hrs == 17){
var cur = "singles"
var nxt ="partners"
}
if (hrs  == 18){
var cur = "partners"
var nxt = "singles"
}

if (hrs == 19){
var cur ="singles"
var nxt ="partners"
}

if (hrs  == 20){
var cur = "partners"
var nxt = "singles"
}
if (hrs == 21){
var cur = "singles"
var nxt = "TD's choice"
}

if (hrs == 22){
var cur = "TD's choice"
var nxt = "TD's choice"
}

if (hrs == 23){
var cur = "TD's choice"
var nxt = "TD's choice"
}

if (hrs == 0){
cur = "TD's choice"
nxt="TD's choice"
var nextTourney = "The current tournament being played is a " + cur + ". The next tournament will be a "+ nxt + " beginning at "+nhours+":00"+am+" eastern time"
}

if (hrs == 1) {
cur = "TD's choice"
var nextTourney = "The current tournament being played is a "+cur+". this is the final tournament of the day."
}

if (hrs >= 2 && hrs <= 8){
var nextTourney ="there are no more tournaments until 9:00am eastern time"
}

if ( hrs >=9 && hrs <=23 ){
var nextTourney = "The current tournament being played is a " + cur + ". The next tournament will be a "+ nxt + " beginning at "+nhours+":00"+am+" eastern time"
}
