/*Line 400 - 'Atom.js'
510496
function (v) {
/*Line 401 - 'Atom.js' */        if (!v)
/*Line 402 - 'Atom.js' */            return null;
/*Line 403 - 'Atom.js' */        var d = AtomDate.parse(v);
/*Line 404 - 'Atom.js' */        var now = new Date();

/*Line 406 - 'Atom.js' */        if (now.getFullYear() === d.getFullYear()
/*Line 407 - 'Atom.js' */            && now.getMonth() === d.getMonth()) {
/*Line 408 - 'Atom.js' */            var diff = now.getDate() - d.getDate();
/*Line 409 - 'Atom.js' */            switch(diff){
/*Line 410 - 'Atom.js' */                case -1:
/*Line 411 - 'Atom.js' */                    return "Tomorrow (" + AtomDate.toTimeString(d) + ")";
/*Line 412 - 'Atom.js' */                case 0:
/*Line 413 - 'Atom.js' */                    return "Today (" + AtomDate.toTimeString(d) + ")";
/*Line 414 - 'Atom.js' */                case 1:
/*Line 415 - 'Atom.js' */                    return "Yesterday (" + AtomDate.toTimeString(d) + ")";
/*Line 416 - 'Atom.js' */            }
/*Line 417 - 'Atom.js' */        }
/*Line 418 - 'Atom.js' */        return AtomDate.toDateTimeString(d);
/*Line 419 - 'Atom.js' */    }
50369
function () {
/*Line 88 - 'AtomNavigatorList.js' */                var v = this._displayMode;
/*Line 89 - 'AtomNavigatorList.js' */                if (v == 0) {

/*Line 91 - 'AtomNavigatorList.js' */                    if (this._detailPresenter) {
/*Line 92 - 'AtomNavigatorList.js' */                        this._detailView.atomControl.dispose(this._detailPresenter);
/*Line 93 - 'AtomNavigatorList.js' */                        this._detailPresenter = null;
/*Line 94 - 'AtomNavigatorList.js' */                    }
/*Line 95 - 'AtomNavigatorList.js' */                    if (this._newPresenter) {
/*Line 96 - 'AtomNavigatorList.js' */                        this._newView.atomControl.dispose(this._newPresenter);
/*Line 97 - 'AtomNavigatorList.js' */                        this._newPresenter = null;
/*Line 98 - 'AtomNavigatorList.js' */                    }
/*Line 99 - 'AtomNavigatorList.js' */                    if (this._detailHeaderPresenter) {
/*Line 100 - 'AtomNavigatorList.js' */                        this._detailView.atomControl.dispose(this._detailHeaderPresenter);
/*Line 101 - 'AtomNavigatorList.js' */                        this._detailHeaderPresenter = null;
/*Line 102 - 'AtomNavigatorList.js' */                    }
/*Line 103 - 'AtomNavigatorList.js' */                    if (this._newHeaderPresenter) {
/*Line 104 - 'AtomNavigatorList.js' */                        this._newView.atomControl.dispose(this._newHeaderPresenter);
/*Line 105 - 'AtomNavigatorList.js' */                        this._newHeaderPresenter = null;
/*Line 106 - 'AtomNavigatorList.js' */                    }

/*Line 108 - 'AtomNavigatorList.js' */                    return;
/*Line 109 - 'AtomNavigatorList.js' */                }

/*Line 111 - 'AtomNavigatorList.js' */                var c = null;
/*Line 112 - 'AtomNavigatorList.js' */                var ct = this.getTemplate("detailTemplate");;
/*Line 113 - 'AtomNavigatorList.js' */                var ch = null;
/*Line 114 - 'AtomNavigatorList.js' */                var cht;
/*Line 115 - 'AtomNavigatorList.js' */                var key = "";

/*Line 117 - 'AtomNavigatorList.js' */                if (v == 1) {
/*Line 118 - 'AtomNavigatorList.js' */                    c = this._detailView;
/*Line 119 - 'AtomNavigatorList.js' */                    ch = this._detailHeaderToolbar;
/*Line 120 - 'AtomNavigatorList.js' */                    cht = this.getTemplate("detailHeaderTemplate");
/*Line 121 - 'AtomNavigatorList.js' */                    key = "_detail";
/*Line 122 - 'AtomNavigatorList.js' */                } else {
/*Line 123 - 'AtomNavigatorList.js' */                    c = this._newView;
/*Line 124 - 'AtomNavigatorList.js' */                    ch = this._newHeaderToolbar;
/*Line 125 - 'AtomNavigatorList.js' */                    cht = this.getTemplate("newHeaderTemplate");
/*Line 126 - 'AtomNavigatorList.js' */                    key = "_new";
/*Line 127 - 'AtomNavigatorList.js' */                }

/*Line 129 - 'AtomNavigatorList.js' */                if (ch && cht) {
/*Line 130 - 'AtomNavigatorList.js' */                    cht = AtomUI.cloneNode(cht);
/*Line 131 - 'AtomNavigatorList.js' */                    this.addTemplate(ch, cht, true);
/*Line 132 - 'AtomNavigatorList.js' */                    this[key + "HeaderPresenter"] = cht;
/*Line 133 - 'AtomNavigatorList.js' */                }

/*Line 135 - 'AtomNavigatorList.js' */                if (c && ct) {
/*Line 136 - 'AtomNavigatorList.js' */                    ct = AtomUI.cloneNode(ct);
/*Line 137 - 'AtomNavigatorList.js' */                    this.addTemplate(c, ct, true);
/*Line 138 - 'AtomNavigatorList.js' */                    this[key + "Presenter"] = ct;
/*Line 139 - 'AtomNavigatorList.js' */                }
/*Line 140 - 'AtomNavigatorList.js' */            }
1234387
function (target, key) {
/*Line 84 - 'AtomBindingHelper.js' */        if (target == null)
/*Line 85 - 'AtomBindingHelper.js' */            return null;
/*Line 86 - 'AtomBindingHelper.js' */        var handlers = target._$_handlers;
/*Line 87 - 'AtomBindingHelper.js' */        if (!handlers) {
/*Line 88 - 'AtomBindingHelper.js' */            handlers = {};
/*Line 89 - 'AtomBindingHelper.js' */            target._$_handlers = handlers;
/*Line 90 - 'AtomBindingHelper.js' */        }
/*Line 91 - 'AtomBindingHelper.js' */        var handlersForKey = handlers[key];
/*Line 92 - 'AtomBindingHelper.js' */        if (handlersForKey == undefined || handlersForKey == null) {
/*Line 93 - 'AtomBindingHelper.js' */            handlersForKey = [];
/*Line 94 - 'AtomBindingHelper.js' */            handlers[key] = handlersForKey;
/*Line 95 - 'AtomBindingHelper.js' */        }
/*Line 96 - 'AtomBindingHelper.js' */        return handlersForKey;
/*Line 97 - 'AtomBindingHelper.js' */    }
748236
function (v) {
/*Line 86 - 'AtomDateField.js' */                if (this._set_timeCalled)
/*Line 87 - 'AtomDateField.js' */                    return;
/*Line 88 - 'AtomDateField.js' */                this._set_timeCalled = true;
/*Line 89 - 'AtomDateField.js' */                if (v) {
/*Line 90 - 'AtomDateField.js' */                    this._time = v;
/*Line 91 - 'AtomDateField.js' */                    var d = AtomDate.setTime(this.get_value(), v);
/*Line 92 - 'AtomDateField.js' */                    AtomBinder.setValue(this, "value", d);
/*Line 93 - 'AtomDateField.js' */                }
/*Line 94 - 'AtomDateField.js' */                this._set_timeCalled = false;
/*Line 95 - 'AtomDateField.js' */            }
468850
function (scope, sender) {
/*Line 31 - 'AtomWindow.js' */                AtomBinder.setValue(this, "isOpen", false);
/*Line 32 - 'AtomWindow.js' */                var val = this._value;
/*Line 33 - 'AtomWindow.js' */                var caller = this;
/*Line 34 - 'AtomWindow.js' */                this._value = null;

/*Line 36 - 'AtomWindow.js' */                WebAtoms.dispatcher.callLater(function () {
/*Line 37 - 'AtomWindow.js' */                    AtomBinder.setValue(caller, "value", val);
/*Line 38 - 'AtomWindow.js' */                    caller.invokeAction(caller._next);
/*Line 39 - 'AtomWindow.js' */                    caller.disposeChildren(caller._element);
/*Line 40 - 'AtomWindow.js' */                });
/*Line 41 - 'AtomWindow.js' */            }
1119450
function () {

/*Line 57 - 'AtomDispatcher.js' */                //if (window.console) {
/*Line 58 - 'AtomDispatcher.js' */                //    window.console.log("Starting Web Atoms");
/*Line 59 - 'AtomDispatcher.js' */                //}

/*Line 61 - 'AtomDispatcher.js' */                var a = $('[data-atom-type],[atom-type]').first()[0];
/*Line 62 - 'AtomDispatcher.js' */                if (a.atomControl != undefined && a.atomControl != null)
/*Line 63 - 'AtomDispatcher.js' */                    return;
/*Line 64 - 'AtomDispatcher.js' */                var ct = AtomUI.getAtomType(a);
/*Line 65 - 'AtomDispatcher.js' */                $(a).removeAttr("atom-type");
/*Line 66 - 'AtomDispatcher.js' */                $(a).removeAttr("data-atom-type");
/*Line 67 - 'AtomDispatcher.js' */                var ctrl = new (WebAtoms[ct])(a);
/*Line 68 - 'AtomDispatcher.js' */                ctrl.setup();

/*Line 70 - 'AtomDispatcher.js' */            }
4000
function (start, end, step) {
/*Line 89 - 'Atom.js' */        var a = [];
/*Line 90 - 'Atom.js' */        step = step || 1;
/*Line 91 - 'Atom.js' */        for (var i = start; i <= end; i+=step) {
/*Line 92 - 'Atom.js' */            a.push({ label: i, value: i });
/*Line 93 - 'Atom.js' */        }
/*Line 94 - 'Atom.js' */        return a;
/*Line 95 - 'Atom.js' */    }
808886
function (url) {
/*Line 114 - 'AtomUI.js' */        var r = {};

/*Line 116 - 'AtomUI.js' */        var plist = url.split('&');

/*Line 118 - 'AtomUI.js' */        var ae = new AtomEnumerator(plist);
/*Line 119 - 'AtomUI.js' */        while (ae.next()) {
/*Line 120 - 'AtomUI.js' */            var p = ae.current().split('=');
/*Line 121 - 'AtomUI.js' */            var key = p[0];
/*Line 122 - 'AtomUI.js' */            var val = p[1];
/*Line 123 - 'AtomUI.js' */            if (val) {
/*Line 124 - 'AtomUI.js' */                val = decodeURIComponent(val);
/*Line 125 - 'AtomUI.js' */            }
/*Line 126 - 'AtomUI.js' */            val = AtomUI.parseValue(val);
/*Line 127 - 'AtomUI.js' */            r[key] = val;
/*Line 128 - 'AtomUI.js' */        }
/*Line 129 - 'AtomUI.js' */        return r;
/*Line 130 - 'AtomUI.js' */    }
1047244
function (a, path, s) {
/*Line 85 - 'Atom.js' */        if (!s) {
/*Line 86 - 'Atom.js' */            s = ", ";
/*Line 87 - 'Atom.js' */        }
/*Line 88 - 'Atom.js' */        var l = [];
/*Line 89 - 'Atom.js' */        var ae = new AtomEnumerator(a);
/*Line 90 - 'Atom.js' */        while (ae.next()) {
/*Line 91 - 'Atom.js' */            var item = ae.current();
/*Line 92 - 'Atom.js' */            l.push(Atom.get(item,path));
/*Line 93 - 'Atom.js' */        }
/*Line 94 - 'Atom.js' */        return l.join(s);
/*Line 95 - 'Atom.js' */    }
765505
function () {
/*Line 187 - 'AtomForm.js' */                baseType.init.call(this);

/*Line 189 - 'AtomForm.js' */                var _this = this;
/*Line 190 - 'AtomForm.js' */                this._success = function () {
/*Line 191 - 'AtomForm.js' */                    _this.onSuccess.apply(_this, arguments);
/*Line 192 - 'AtomForm.js' */                };

/*Line 194 - 'AtomForm.js' */                this._submit = function () {
/*Line 195 - 'AtomForm.js' */                    WebAtoms.dispatcher.callLater(function () {
/*Line 196 - 'AtomForm.js' */                        _this.onSubmit.apply(_this, arguments);
/*Line 197 - 'AtomForm.js' */                    });
/*Line 198 - 'AtomForm.js' */                };

/*Line 200 - 'AtomForm.js' */                var element = this.get_element();

/*Line 202 - 'AtomForm.js' */                this.submitCommand = this._submit;

/*Line 204 - 'AtomForm.js' */                this.bindEvent(element, "keyup", "onKeyUp");

/*Line 206 - 'AtomForm.js' */                $(element).find("input[type=submit]").bind("click", null, this._submit);
/*Line 207 - 'AtomForm.js' */                $(element).find("button[type=submit]").bind("click", null, this._submit);


/*Line 210 - 'AtomForm.js' */                var _this = this;
/*Line 211 - 'AtomForm.js' */                this._vh = function () {
/*Line 212 - 'AtomForm.js' */                    _this.validateField.apply(_this, arguments);
/*Line 213 - 'AtomForm.js' */                };

/*Line 215 - 'AtomForm.js' */                $(element).find("input,select,textarea").bind("blur", null, this._vh);



/*Line 219 - 'AtomForm.js' */            }
733009
function (sender, key) {
/*Line 50 - 'AtomBinding.js' */                // update target....
/*Line 51 - 'AtomBinding.js' */                // most like end of path...
/*Line 52 - 'AtomBinding.js' */                if (this.path == null || this.path.length == 0)
/*Line 53 - 'AtomBinding.js' */                    return;
/*Line 54 - 'AtomBinding.js' */                var ae = new AtomEnumerator(this.path);
/*Line 55 - 'AtomBinding.js' */                var obj = this.control;
/*Line 56 - 'AtomBinding.js' */                var objKey = null;
/*Line 57 - 'AtomBinding.js' */                while (ae.next()) {
/*Line 58 - 'AtomBinding.js' */                    objKey = ae.current();
/*Line 59 - 'AtomBinding.js' */                    objKey.value = obj;
/*Line 60 - 'AtomBinding.js' */                    if (!obj)
/*Line 61 - 'AtomBinding.js' */                        return;
/*Line 62 - 'AtomBinding.js' */                    if (!ae.isLast())
/*Line 63 - 'AtomBinding.js' */                        obj = AtomBinder.getValue(obj, objKey.path);
/*Line 64 - 'AtomBinding.js' */                }
/*Line 65 - 'AtomBinding.js' */                var value = null;
/*Line 66 - 'AtomBinding.js' */                if (this.jq) {
/*Line 67 - 'AtomBinding.js' */                    switch (this.key) {
/*Line 68 - 'AtomBinding.js' */                        case "valueAsDate":
/*Line 69 - 'AtomBinding.js' */                            value = this.element.valueAsDate;
/*Line 70 - 'AtomBinding.js' */                            break;
/*Line 71 - 'AtomBinding.js' */                        case "checked":
/*Line 72 - 'AtomBinding.js' */                            value = this.element.checked ? true : false;
/*Line 73 - 'AtomBinding.js' */                            break;
/*Line 74 - 'AtomBinding.js' */                        default:
/*Line 75 - 'AtomBinding.js' */                            value = $(this.element).val();
/*Line 76 - 'AtomBinding.js' */                    }
/*Line 77 - 'AtomBinding.js' */                } else {
/*Line 78 - 'AtomBinding.js' */                    value = AtomBinder.getValue(this.control, this.key);
/*Line 79 - 'AtomBinding.js' */                }
/*Line 80 - 'AtomBinding.js' */                AtomBinder.setValue(obj, objKey.path, value);
/*Line 81 - 'AtomBinding.js' */            }
761280
function (d) {
/*Line 375 - 'Atom.js' */        d = AtomDate.parse(d);
/*Line 376 - 'Atom.js' */        if (!d)
/*Line 377 - 'Atom.js' */            return "";
/*Line 378 - 'Atom.js' */        var h = d.getHours();
/*Line 379 - 'Atom.js' */        var s = "AM";
/*Line 380 - 'Atom.js' */        if (h == 12) {
/*Line 381 - 'Atom.js' */            s = "PM";
/*Line 382 - 'Atom.js' */        } else {
/*Line 383 - 'Atom.js' */            if (h > 12) {
/*Line 384 - 'Atom.js' */                h = h - 12;
/*Line 385 - 'Atom.js' */                s = "PM";
/*Line 386 - 'Atom.js' */            }
/*Line 387 - 'Atom.js' */        }
/*Line 388 - 'Atom.js' */        var m = d.getMinutes();
/*Line 389 - 'Atom.js' */        if (m < 10) {
/*Line 390 - 'Atom.js' */            m = "0" + m;
/*Line 391 - 'Atom.js' */        } else {
/*Line 392 - 'Atom.js' */            m = m + "";
/*Line 393 - 'Atom.js' */            if (m.length == 1) {
/*Line 394 - 'Atom.js' */                m = m + "0";
/*Line 395 - 'Atom.js' */            }
/*Line 396 - 'Atom.js' */        }
/*Line 397 - 'Atom.js' */        return h + ":" + m + " " + s;
/*Line 398 - 'Atom.js' */    }
895642
function (ary, index, item) {
/*Line 140 - 'AtomBindingHelper.js' */        ary.splice(index, 0, item);
/*Line 141 - 'AtomBindingHelper.js' */        AtomBinder.invokeItemsEvent(ary, "add", index, item);
/*Line 142 - 'AtomBindingHelper.js' */    }
893797
function (val) {
/*Line 133 - 'AtomUI.js' */        var n;
/*Line 134 - 'AtomUI.js' */        if (/^[0-9]+$/.test(val)) {
/*Line 135 - 'AtomUI.js' */            n = parseInt(val, 10);
/*Line 136 - 'AtomUI.js' */            if (!isNaN(n)) {
/*Line 137 - 'AtomUI.js' */                val = n;
/*Line 138 - 'AtomUI.js' */            }
/*Line 139 - 'AtomUI.js' */            return val;
/*Line 140 - 'AtomUI.js' */        }
/*Line 141 - 'AtomUI.js' */        if (/^[0-9]+\.[0-9]+/gi.test(val)) {
/*Line 142 - 'AtomUI.js' */            n = parseFloat(val);
/*Line 143 - 'AtomUI.js' */            if (!isNaN(n)) {
/*Line 144 - 'AtomUI.js' */                val = n;
/*Line 145 - 'AtomUI.js' */            }
/*Line 146 - 'AtomUI.js' */            return val;
/*Line 147 - 'AtomUI.js' */        }

/*Line 149 - 'AtomUI.js' */        if (/true/.test(val)) {
/*Line 150 - 'AtomUI.js' */            val = true;
/*Line 151 - 'AtomUI.js' */            return val;
/*Line 152 - 'AtomUI.js' */        }
/*Line 153 - 'AtomUI.js' */        if (/false/.test(val)) {
/*Line 154 - 'AtomUI.js' */            val = false;
/*Line 155 - 'AtomUI.js' */            return val;
/*Line 156 - 'AtomUI.js' */        }
/*Line 157 - 'AtomUI.js' */        return val;
/*Line 158 - 'AtomUI.js' */    }
1291613
function (v) {
/*Line 426 - 'Atom.js' */        var d = AtomDate.parse(v);
/*Line 427 - 'Atom.js' */        return {
/*Line 428 - 'Atom.js' */            Year: d.getFullYear(),
/*Line 429 - 'Atom.js' */            Month: d.getMonth() + 1,
/*Line 430 - 'Atom.js' */            Date: d.getDate(),
/*Line 431 - 'Atom.js' */            Hours: d.getHours(),
/*Line 432 - 'Atom.js' */            Minutes: d.getMinutes(),
/*Line 433 - 'Atom.js' */            Seconds: d.getSeconds(),
/*Line 434 - 'Atom.js' */            Offset: AtomDate.zoneOffsetMinutes
/*Line 435 - 'Atom.js' */        };
/*Line 436 - 'Atom.js' */    }
153763
function (o) {
/*Line 348 - 'AtomUI.js' */        if (!o)
/*Line 349 - 'AtomUI.js' */            return "";
/*Line 350 - 'AtomUI.js' */        if (o.constructor == String)
/*Line 351 - 'AtomUI.js' */            return o;
/*Line 352 - 'AtomUI.js' */        var list = [];
/*Line 353 - 'AtomUI.js' */        for (var k in o) {
/*Line 354 - 'AtomUI.js' */            var v = o[k];
/*Line 355 - 'AtomUI.js' */            if (!v)
/*Line 356 - 'AtomUI.js' */                continue;
/*Line 357 - 'AtomUI.js' */            list.push(k);
/*Line 358 - 'AtomUI.js' */        }
/*Line 359 - 'AtomUI.js' */        return list.join(" ");
/*Line 360 - 'AtomUI.js' */    }
401643
function (v) {
/*Line 196 - 'AtomControl.js' */                this._mergeData2 = null;
/*Line 197 - 'AtomControl.js' */                if (!v)
/*Line 198 - 'AtomControl.js' */                    return;
/*Line 199 - 'AtomControl.js' */                var d = v.data;
/*Line 200 - 'AtomControl.js' */                if (d) {
/*Line 201 - 'AtomControl.js' */                    Atom.merge(this.get_data(), d, true);
/*Line 202 - 'AtomControl.js' */                    this._mergeData2 = d;
/*Line 203 - 'AtomControl.js' */                }
/*Line 204 - 'AtomControl.js' */                d = v.scope;
/*Line 205 - 'AtomControl.js' */                if (d) {
/*Line 206 - 'AtomControl.js' */                    Atom.merge(this.get_scope(), d, true);
/*Line 207 - 'AtomControl.js' */                }
/*Line 208 - 'AtomControl.js' */                d = v.appScope;
/*Line 209 - 'AtomControl.js' */                if (d) {
/*Line 210 - 'AtomControl.js' */                    Atom.merge(this.get_appScope(), d, true);
/*Line 211 - 'AtomControl.js' */                }
/*Line 212 - 'AtomControl.js' */                d = v.localScope;
/*Line 213 - 'AtomControl.js' */                if (d) {
/*Line 214 - 'AtomControl.js' */                    Atom.merge(this.get_localScope(), d, true);
/*Line 215 - 'AtomControl.js' */                }
/*Line 216 - 'AtomControl.js' */                d = v.owner;
/*Line 217 - 'AtomControl.js' */                if (d) {
/*Line 218 - 'AtomControl.js' */                    Atom.merge(this,d,true);
/*Line 219 - 'AtomControl.js' */                }
/*Line 220 - 'AtomControl.js' */                var action = (v.timeOut || v.timeout);
/*Line 221 - 'AtomControl.js' */                if (action) {
/*Line 222 - 'AtomControl.js' */                    var _this = this;
/*Line 223 - 'AtomControl.js' */                    var tm = 100;
/*Line 224 - 'AtomControl.js' */                    if (action.hasOwnProperty("length")) {
/*Line 225 - 'AtomControl.js' */                        if (action.length > 1) {
/*Line 226 - 'AtomControl.js' */                            tm = action[0];
/*Line 227 - 'AtomControl.js' */                            action = action[1];
/*Line 228 - 'AtomControl.js' */                        }
/*Line 229 - 'AtomControl.js' */                    }
/*Line 230 - 'AtomControl.js' */                    setTimeout(function () {
/*Line 231 - 'AtomControl.js' */                        _this.set_merge(action);
/*Line 232 - 'AtomControl.js' */                    }, tm);
/*Line 233 - 'AtomControl.js' */                    return;
/*Line 234 - 'AtomControl.js' */                }

/*Line 236 - 'AtomControl.js' */            }