// JavaScript Document
// var c_movie;
// var strTime;


function findFlash (flash) {
    if (document.all) {
      if (document.all[flash]) {
        return document.all[flash];
      }
      if (window.opera) {
        var movie = eval(window.document + flash);
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if(document.layers) {
      if(document.embeds) {
        var movie = document.embeds[flash];
        if (movie.SetVariable) {
          return movie;
        }
      }
      return;
    }
    if (!document.getElementById) {
      return;
    }
    var movie = document.getElementById(flash);
    if (movie.SetVariable) {
      return movie;
    }
    var movies = movie.getElementsByTagName('embed');
    if (!movies || !movies.length) {
      return;
    }
    movie = movies[0];
    if (movie.SetVariable) {
      return movie;
    }
    return;
  }

function twoDigit(pValue) {
var lValue = new String(pValue); if (lValue.length < 2) lValue = "0" + lValue; return lValue
}

function getTime(){
	var time = new Date()
	var gmtMS = time.getTime() + (time.getTimezoneOffset() * 60000) + (
2 * 60 * 60 * 1000)
	var gmtTime = new Date(gmtMS)
	var hr = gmtTime.getHours()
	var min = gmtTime.getMinutes()
	var sec = gmtTime.getSeconds()
	var strTime = twoDigit(hr) + ":" + twoDigit(min) + ":" + twoDigit(sec);
	var c_movie = findFlash('clock');
	c_movie.SetVariable("serverTime", strTime);
	c_movie.SetVariable("gmtTimeText", "GMT +1");
}
