<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

function ShowClocks()
{
//this script is here to generate the three clocks and their times.

var DST = 1 // Daylight Saving Time (0 = false 1 = True This value is in Hours)
var GMT = GetTime(1 - DST); //Greenwich Mean Time
var CET = GetTime(0 + DST); //Central European Time
var EET = GetTime(1 + DST); //Eastern Europe Time


  // Update the time display
  document.getElementById("gmtclock").firstChild.nodeValue = GMT;
  document.getElementById("cetclock").firstChild.nodeValue = CET;
  document.getElementById("eetclock").firstChild.nodeValue = EET;
}

function GetTime (timezone)
{
  var currentTime = new Date ( );

   var gmtMS = currentTime.getTime() + (currentTime.getTimezoneOffset() * 60000)
   var gmtTime =  new Date(gmtMS)


  var currentHours = gmtTime.getHours ( ) + timezone;
  var currentMinutes = gmtTime.getMinutes ( );
  var currentSeconds = gmtTime.getSeconds ( );

  // Pad the minutes and seconds with leading zeros, if required
  currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
  currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

  // Choose either "AM" or "PM" as appropriate
  var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";

  // Convert the hours component to 12-hour format if needed
  currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;

  // Convert an hours component of "0" to "12"
  currentHours = ( currentHours == 0 ) ? 12 : currentHours;

  // Compose the string for display
  return currentTimeString = currentHours + ":" + currentMinutes + " " + timeOfDay;
}
//-->

