var curDateTime = new Date()
var curHour = curDateTime.getHours() 
   + curDateTime.getTimezoneOffset()/60
if (curHour > 24)  curHour -= 24
if (curHour < 0) curHour += 24
var curMin = curDateTime.getMinutes()
var curSec = curDateTime.getSeconds()
var curTime = 
  ((curHour < 10) ? "0" : "") + curHour + ":" 
  + ((curMin < 10) ? "0" : "") + curMin + ":" 
  + ((curSec < 10) ? "0" : "") + curSec 
//alert ("Current GMT Hour= " + curHour)
//alert(curTime + " GMT")
var curDay = curDateTime.getDay()
//alert ("Current Day= " + curDay + " Local")

if (curDay !=0 && curHour >=15 && curHour <24) // not Sunday (0) and GE 9AM (1500 GMT) and LE 6:59PM (24:59 GMT)
{
document.write('<!-- Boldchat Chat Button HTML v4.00 (GlobalDest, dynamic)-->');
document.write('<br><table cellpadding="0" cellspacing="0" border="0"><tr><td align="center">');
document.write('<a href="http://livechat.boldchat.com/aid/1361548702695800336/bc.chat" target="_blank" ');
document.write ('onclick="this.newWindow = window.open(\'http://livechat.boldchat.com/aid/1361548702695800336/bc.chat?url='); 
document.write(document.location + '\', \'Chat\', \'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480\'); this.newWindow.focus(); this.newWindow.opener = window;return false;">');
if (curSec <= 30){
  document.write('<img alt="Click for Live Chat" src="images/design_elements/chat1.jpg" border="0" width="165" height="190"></a></td>');
  }
else
  {
  document.write('<img alt="Click for Live Chat" src="images/design_elements/chat2.jpg" border="0" width="165" height="185"></a></td>');
}
document.write('</tr><tr><td align="center"><font size="1" face="Arial" color="black">Available 9AM-7PM CST</font></td></tr></table><br>');
document.write('<!-- /Boldchat Chat Button HTML v4.00 -->');
}
else
{
//alert ('Chat not Available');
document.write ('+');
}
