/* Time/Clock functions */

var timerID = null;
var timerRunning = false;

function stopclock (){
  if(timerRunning)
    clearTimeout(timerID);
  timerRunning = false;
}

function showtime () {
  var now = new Date();
  var hours1 = now.getHours();
  var hours2 = now.getHours()+2;
  var hours3 = now.getHours()+2;
  var minutes = now.getMinutes();
  var seconds = now.getSeconds()
  var timeValue1 = "" + ((hours1 >12) ? hours1 -12 :hours1)
  var timeValue2 = "" + ((hours2 >12) ? hours2 -12 :hours2)
  var timeValue3 = "" + ((hours3 >12) ? hours3 -12 :hours3)

  if (timeValue1 == "0") timeValue1 = 12;
  if (timeValue2 == "0") timeValue2 = 12;
  if (timeValue3 == "0") timeValue3 = 12;
  
  timeValue1 += ((minutes < 10) ? ":0" : ":") + minutes
  timeValue1 += ((seconds < 10) ? ":0" : ":") + seconds
  timeValue1 += (hours1 >= 12) ? " pm" : " am"
  
  timeValue2 += ((minutes < 10) ? ":0" : ":") + minutes
  timeValue2 += ((seconds < 10) ? ":0" : ":") + seconds
  timeValue2 += (hours2 >= 12) ? " pm" : " am"
  
  timeValue3 += ((minutes < 10) ? ":0" : ":") + minutes
  timeValue3 += ((seconds < 10) ? ":0" : ":") + seconds
  timeValue3 += (hours3 >= 12) ? " pm" : " am"
  
  document.clock.face1.value = timeValue1;
  //document.clock.face2.value = timeValue2;
  //document.clock.face3.value = timeValue3;
  timerID = setTimeout("showtime()",1000);
  timerRunning = true;
}

function startclock() {
  stopclock();
  showtime();
}

var stringRod   = "rocallaghan";
var stringBreon = "bcorcoran";
var stringKat = "kmallett";
var stringStef = "shamann";
var stringDavid = "dlyons";
var string2     = "@";
var string3     = "airtonrisk.com";
var emailRod    = stringRod + string2 + string3;
var emailBreon  = stringBreon + string2 + string3;
var emailKat  = stringKat + string2 + string3;
var emailStef  = stringStef + string2 + string3;
var emailDavid  = stringDavid + string2 + string3;

