﻿
/**
* @author basil
*
*/
function worldtime() { return this.constructor(); }
worldtime.prototype = {
    _objectPath: '../../app_resources/activex/analogclock.swf',
    getActiveX: function(id, dataObject) {
        if (id != null && dataObject != null) {
            var so = new SWFObject(this._objectPath, '', '90', '140', '9.0.124.0', '#ffffff', 'true');
            so.addVariable('timeZone', dataObject[0]);
            so.addVariable('cityName', dataObject[1]);
            so.addVariable('isLocal', dataObject[2]);
            so.addParam("wmode", "transparent");
            so.write(id);
        }
    },
    initialize: function(obj) {
        var i = 0;
        if (obj.length > 0) {
            for (; i < obj.length; i++) {
                this.getActiveX(obj[i][0], obj[i][1]);
            }
        }
    },
    constructor: function() {
        // TODO Auto-generated method stub
    }
};

/**
* @
*
*/
var _worldtime = new worldtime();

$(document).ready(function() {
    _worldtime.initialize(properties);
});