var timerID = null
  var timerRunning = false
  function MakeArray(size)
  {
  this.length = size;
  for(var i = 1; i <= size; i++)
  {
  this[i] = "";
  }
  return this;
  }
  function stopclock (){
  if(timerRunning)
  clearTimeout(timerID);
  timerRunning = false
  }
  function showtime () {
  var now = new Date();
  var year = now.getFullYear();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  var day = now.getDay();
  Day = new MakeArray(7);
  Day[0]="Sekmadienis";
  Day[1]="Pirmadienis";
  Day[2]="Antradienis";
  Day[3]="Trečiadienis";
  Day[4]="Ketvirtadienis";
  Day[5]="Penktadienis";
  Day[6]="Šeštadienis";
  var timeValue = "";
  timeValue += year + "-";
	timeValue += ((month < 10) ? "0" : "") + month + "-";
	timeValue += date + "    ";
	timeValue += (Day[day]) + "   ";
  timeValue += hours;
  timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
  document.getElementById('data').innerHTML = timeValue;
  timerID = setTimeout("showtime()",1000);
  timerRunning = true
  }
  function startclock () {
  stopclock();
  showtime()
  }

function mms() {
	window.open('http://www.extrafm.lt/mms.html','','scrollbars=no,menubar=no,height=312,width=151,resizable=no,toolbar=no,location=no,status=no');
}
