new Ajax.Request('/chat_status/?' + new Date().getTime(), {
  method: 'get',
  requestHeaders: {'If-Modified-Since': 'Sat, 1 Jan 2000 00:00:00 GMT'},
  onSuccess: function(transport) {
    if (transport.responseText.match(/in/)) {
      $('chatlink').show();
      $('livechat').show();
    }
   
  }
});


/*
var chatlink = $('chatlink');
var contactlink = $('contactlink');
var d = new Date();
var utc_hour = d.getUTCHours();

if (utc_hour >= 13 && utc_hour < 21)
{
  chatlink.show();
  //contactlink.hide();
}*/