/*
 Copyright (c) 2004-2007, The Dojo Foundation
 All Rights Reserved.

 Licensed under the Academic Free License version 2.1 or above OR the
 modified BSD license. For more information on Dojo licensing, see:

 http://dojotoolkit.org/community/licensing.shtml
 */
if (!dojo._hasResource["dojo.cookie"]) {
    dojo._hasResource["dojo.cookie"] = true;
    dojo.provide("dojo.cookie");
    dojo.cookie = function(_1, _2, _3) {
        var c = document.cookie;
        if (arguments.length == 1) {
            var _5 = c.lastIndexOf(_1 + "=");
            if (_5 == -1) {
                return null;
            }
            var _6 = _5 + _1.length + 1;
            var _7 = c.indexOf(";", _5 + _1.length + 1);
            if (_7 == -1) {
                _7 = c.length;
            }
            return decodeURIComponent(c.substring(_6, _7));
        } else {
            _3 = _3 || {};
            _2 = encodeURIComponent(_2);
            if (typeof (_3.expires) == "number") {
                var d = new Date();
                d.setTime(d.getTime() + (_3.expires * 24 * 60 * 60 * 1000));
                _3.expires = d;
            }
            document.cookie = _1 + "=" + _2 + (_3.expires ? "; expires=" + _3.expires.toUTCString() : "") + (_3.path ? "; path=" + _3.path : "") + (_3.domain ? "; domain=" + _3.domain : "") + (_3.secure ? "; secure" : "");
            return null;
        }
    };
}
if (!dojo._hasResource["dojo.dnd.common"]) {
    dojo._hasResource["dojo.dnd.common"] = true;
    dojo.provide("dojo.dnd.common");
    dojo.dnd._copyKey = navigator.appVersion.indexOf("Macintosh") < 0 ? "ctrlKey" : "metaKey";
    dojo.dnd.getCopyKeyState = function(e) {
        return e[dojo.dnd._copyKey];
    };
    dojo.dnd._uniqueId = 0;
    dojo.dnd.getUniqueId = function() {
        var id;
        do{
            id = "dojoUnique" + (++dojo.dnd._uniqueId);
        } while (dojo.byId(id));
        return id;
    };
    dojo.dnd._empty = {};
    dojo.dnd.isFormElement = function(e) {
        var t = e.target;
        if (t.nodeType == 3) {
            t = t.parentNode;
        }
        return " button textarea input select option ".indexOf(" " + t.tagName.toLowerCase() + " ") >= 0;
    };
}
if (!dojo._hasResource["dojo.dnd.autoscroll"]) {
    dojo._hasResource["dojo.dnd.autoscroll"] = true;
    dojo.provide("dojo.dnd.autoscroll");
    dojo.dnd.getViewport = function() {
        var d = dojo.doc,dd = d.documentElement,w = window,b = dojo.body();
        if (dojo.isMozilla) {
            return {w:dd.clientWidth,h:w.innerHeight};
        } else {
            if (!dojo.isOpera && w.innerWidth) {
                return {w:w.innerWidth,h:w.innerHeight};
            } else {
                if (!dojo.isOpera && dd && dd.clientWidth) {
                    return {w:dd.clientWidth,h:dd.clientHeight};
                } else {
                    if (b.clientWidth) {
                        return {w:b.clientWidth,h:b.clientHeight};
                    }
                }
            }
        }
        return null;
    };
    dojo.dnd.V_TRIGGER_AUTOSCROLL = 32;
    dojo.dnd.H_TRIGGER_AUTOSCROLL = 32;
    dojo.dnd.V_AUTOSCROLL_VALUE = 16;
    dojo.dnd.H_AUTOSCROLL_VALUE = 16;
    dojo.dnd.autoScroll = function(e) {
        var v = dojo.dnd.getViewport(),dx = 0,dy = 0;
        if (e.clientX < dojo.dnd.H_TRIGGER_AUTOSCROLL) {
            dx = -dojo.dnd.H_AUTOSCROLL_VALUE;
        } else {
            if (e.clientX > v.w - dojo.dnd.H_TRIGGER_AUTOSCROLL) {
                dx = dojo.dnd.H_AUTOSCROLL_VALUE;
            }
        }
        if (e.clientY < dojo.dnd.V_TRIGGER_AUTOSCROLL) {
            dy = -dojo.dnd.V_AUTOSCROLL_VALUE;
        } else {
            if (e.clientY > v.h - dojo.dnd.V_TRIGGER_AUTOSCROLL) {
                dy = dojo.dnd.V_AUTOSCROLL_VALUE;
            }
        }
        window.scrollBy(dx, dy);
    };
    dojo.dnd._validNodes = {"div":1,"p":1,"td":1};
    dojo.dnd._validOverflow = {"auto":1,"scroll":1};
    dojo.dnd.autoScrollNodes = function(e) {
        for (var n = e.target; n;) {
            if (n.nodeType == 1 && (n.tagName.toLowerCase() in dojo.dnd._validNodes)) {
                var s = dojo.getComputedStyle(n);
                if (s.overflow.toLowerCase() in dojo.dnd._validOverflow) {
                    var b = dojo._getContentBox(n, s),t = dojo._abs(n, true);
                    console.debug(b.l, b.t, t.x, t.y, n.scrollLeft, n.scrollTop);
                    b.l += t.x + n.scrollLeft;
                    b.t += t.y + n.scrollTop;
                    var w = Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL, b.w / 2),h = Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL, b.h / 2),rx = e.pageX - b.l,ry = e.pageY - b.t,dx = 0,dy = 0;
                    if (rx > 0 && rx < b.w) {
                        if (rx < w) {
                            dx = -dojo.dnd.H_AUTOSCROLL_VALUE;
                        } else {
                            if (rx > b.w - w) {
                                dx = dojo.dnd.H_AUTOSCROLL_VALUE;
                            }
                        }
                    }
                    if (ry > 0 && ry < b.h) {
                        if (ry < h) {
                            dy = -dojo.dnd.V_AUTOSCROLL_VALUE;
                        } else {
                            if (ry > b.h - h) {
                                dy = dojo.dnd.V_AUTOSCROLL_VALUE;
                            }
                        }
                    }
                    var _20 = n.scrollLeft,_21 = n.scrollTop;
                    n.scrollLeft = n.scrollLeft + dx;
                    n.scrollTop = n.scrollTop + dy;
                    if (dx || dy) {
                        console.debug(_20 + ", " + _21 + "\n" + dx + ", " + dy + "\n" + n.scrollLeft + ", " + n.scrollTop);
                    }
                    if (_20 != n.scrollLeft || _21 != n.scrollTop) {
                        return;
                    }
                }
            }
            try {
                n = n.parentNode;
            } catch(x) {
                n = null;
            }
        }
        dojo.dnd.autoScroll(e);
    };
}
if (!dojo._hasResource["dojo.dnd.move"]) {
    dojo._hasResource["dojo.dnd.move"] = true;
    dojo.provide("dojo.dnd.move");
    dojo.dnd.Mover = function(_22, e) {
        this.node = dojo.byId(_22);
        this.marginBox = {l:e.pageX,t:e.pageY};
        var d = _22.ownerDocument,_25 = dojo.connect(d, "onmousemove", this, "onFirstMove");
        this.events = [dojo.connect(d, "onmousemove", this, "onMouseMove"),dojo.connect(d, "onmouseup", this, "destroy"),dojo.connect(d, "ondragstart", dojo, "stopEvent"),dojo.connect(d, "onselectstart", dojo, "stopEvent"),_25];
        dojo.publish("/dnd/move/start", [this.node]);
        dojo.addClass(dojo.body(), "dojoMove");
        dojo.addClass(this.node, "dojoMoveItem");
    };
    dojo.extend(dojo.dnd.Mover, {onMouseMove:function(e) {
        dojo.dnd.autoScroll(e);
        var m = this.marginBox;
        dojo.marginBox(this.node, {l:m.l + e.pageX,t:m.t + e.pageY});
    },onFirstMove:function() {
        this.node.style.position = "absolute";
        var m = dojo.marginBox(this.node);
        m.l -= this.marginBox.l;
        m.t -= this.marginBox.t;
        this.marginBox = m;
        dojo.disconnect(this.events.pop());
    },destroy:function() {
        dojo.forEach(this.events, dojo.disconnect);
        dojo.publish("/dnd/move/stop", [this.node]);
        dojo.removeClass(dojo.body(), "dojoMove");
        dojo.removeClass(this.node, "dojoMoveItem");
        this.events = this.node = null;
    }});
    dojo.dnd.Moveable = function(_29, _2a) {
        this.node = dojo.byId(_29);
        this.handle = (_2a && _2a.handle) ? dojo.byId(_2a.handle) : null;
        if (!this.handle) {
            this.handle = this.node;
        }
        this.delay = (_2a && _2a.delay > 0) ? _2a.delay : 0;
        this.skip = _2a && _2a.skip;
        this.mover = (_2a && _2a.mover) ? _2a.mover : dojo.dnd.Mover;
        this.events = [dojo.connect(this.handle, "onmousedown", this, "onMouseDown"),dojo.connect(this.handle, "ondragstart", dojo, "stopEvent"),dojo.connect(this.handle, "onselectstart", dojo, "stopEvent")];
    };
    dojo.extend(dojo.dnd.Moveable, {handle:"",delay:0,skip:false,markupFactory:function(_2b, _2c) {
        return new dojo.dnd.Moveable(_2c, _2b);
    },destroy:function() {
        dojo.forEach(this.events, dojo.disconnect);
        this.events = this.node = this.handle = null;
    },onMouseDown:function(e) {
        if (this.skip && dojo.dnd.isFormElement(e)) {
            return;
        }
        if (this.delay) {
            this.events.push(dojo.connect(this.handle, "onmousemove", this, "onMouseMove"));
            this.events.push(dojo.connect(this.handle, "onmouseup", this, "onMouseUp"));
            this._lastX = e.pageX;
            this._lastY = e.pageY;
        } else {
            new this.mover(this.node, e);
        }
        dojo.stopEvent(e);
    },onMouseMove:function(e) {
        if (Math.abs(e.pageX - this._lastX) > this.delay || Math.abs(e.pageY - this._lastY) > this.delay) {
            this.onMouseUp(e);
            new this.mover(this.node, e);
        }
        dojo.stopEvent(e);
    },onMouseUp:function(e) {
        dojo.disconnect(this.events.pop());
        dojo.disconnect(this.events.pop());
    }});
    dojo.dnd.constrainedMover = function(fun, _31) {
        var _32 = function(_33, e) {
            dojo.dnd.Mover.call(this, _33, e);
        };
        dojo.extend(_32, dojo.dnd.Mover.prototype);
        dojo.extend(_32, {onMouseMove:function(e) {
            var m = this.marginBox,c = this.constraintBox,l = m.l + e.pageX,t = m.t + e.pageY;
            l = l < c.l ? c.l : c.r < l ? c.r : l;
            t = t < c.t ? c.t : c.b < t ? c.b : t;
            dojo.marginBox(this.node, {l:l,t:t});
        },onFirstMove:function() {
            dojo.dnd.Mover.prototype.onFirstMove.call(this);
            var c = this.constraintBox = fun.call(this),m = this.marginBox;
            c.r = c.l + c.w - (_31 ? m.w : 0);
            c.b = c.t + c.h - (_31 ? m.h : 0);
        }});
        return _32;
    };
    dojo.dnd.boxConstrainedMover = function(box, _3d) {
        return dojo.dnd.constrainedMover(function() {
            return box;
        }, _3d);
    };
    dojo.dnd.parentConstrainedMover = function(_3e, _3f) {
        var fun = function() {
            var n = this.node.parentNode,s = dojo.getComputedStyle(n),mb = dojo._getMarginBox(n, s);
            if (_3e == "margin") {
                return mb;
            }
            var t = dojo._getMarginExtents(n, s);
            mb.l += t.l,mb.t += t.t,mb.w -= t.w,mb.h -= t.h;
            if (_3e == "border") {
                return mb;
            }
            t = dojo._getBorderExtents(n, s);
            mb.l += t.l,mb.t += t.t,mb.w -= t.w,mb.h -= t.h;
            if (_3e == "padding") {
                return mb;
            }
            t = dojo._getPadExtents(n, s);
            mb.l += t.l,mb.t += t.t,mb.w -= t.w,mb.h -= t.h;
            return mb;
        };
        return dojo.dnd.constrainedMover(fun, _3f);
    };
}
if (!dojo._hasResource["dojo.fx"]) {
    dojo._hasResource["dojo.fx"] = true;
    dojo.provide("dojo.fx");
    dojo.provide("dojo.fx.Toggler");
    dojo.fx.chain = function(_45) {
        var _46 = _45.shift();
        var _47 = _46;
        dojo.forEach(_45, function(_48) {
            dojo.connect(_47, "onEnd", _48, "play");
            _47 = _48;
        });
        return _46;
    };
    dojo.fx.combine = function(_49) {
        var _4a = _49.shift();
        dojo.forEach(_49, function(_4b) {
            dojo.forEach(["play","pause","stop"], function(_4c) {
                if (_4b[_4c]) {
                    dojo.connect(_4a, _4c, _4b, _4c);
                }
            }, this);
        });
        return _4a;
    };
    dojo.declare("dojo.fx.Toggler", null, {constructor:function(_4d) {
        var _t = this;
        dojo.mixin(_t, _4d);
        _t.node = _4d.node;
        _t._showArgs = dojo.mixin({}, _4d);
        _t._showArgs.node = _t.node;
        _t._showArgs.duration = _t.showDuration;
        _t.showAnim = _t.showFunc(_t._showArgs);
        _t._hideArgs = dojo.mixin({}, _4d);
        _t._hideArgs.node = _t.node;
        _t._hideArgs.duration = _t.hideDuration;
        _t.hideAnim = _t.hideFunc(_t._hideArgs);
        dojo.connect(_t.showAnim, "beforeBegin", dojo.hitch(_t.hideAnim, "stop", true));
        dojo.connect(_t.hideAnim, "beforeBegin", dojo.hitch(_t.showAnim, "stop", true));
    },node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,_showArgs:null,_showAnim:null,_hideArgs:null,_hideAnim:null,_isShowing:false,_isHiding:false,show:function(_4f) {
        _4f = _4f || 0;
        return this.showAnim.play(_4f);
    },hide:function(_50) {
        _50 = _50 || 0;
        return this.hideAnim.play(_50);
    }});
    dojo.fx.wipeIn = function(_51) {
        _51.node = dojo.byId(_51.node);
        var _52 = _51.node,s = _52.style;
        var _54 = dojo.animateProperty(dojo.mixin({properties:{height:{start:function() {
            s.overflow = "hidden";
            if (s.visibility == "hidden" || s.display == "none") {
                s.height = "1px";
                s.display = "";
                s.visibility = "";
                return 1;
            } else {
                var _55 = dojo.style(_52, "height");
                return Math.max(_55, 1);
            }
        },end:function() {
            return _52.scrollHeight;
        }}}}, _51));
        dojo.connect(_54, "onEnd", _54, function() {
            s.height = "auto";
        });
        return _54;
    };
    dojo.fx.wipeOut = function(_56) {
        var _57 = (_56.node = dojo.byId(_56.node));
        var _58 = dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}}, _56));
        dojo.connect(_58, "beforeBegin", _58, function() {
            var s = _57.style;
            s.overflow = "hidden";
            s.display = "";
        });
        dojo.connect(_58, "onEnd", _58, function() {
            var s = this.node.style;
            s.height = "auto";
            s.display = "none";
        });
        return _58;
    };
    dojo.fx.slideTo = function(_5b) {
        var _5c = _5b.node = dojo.byId(_5b.node);
        var _5d = dojo.getComputedStyle;
        var top = null;
        var _5f = null;
        var _60 = (function() {
            var _61 = _5c;
            return function() {
                var pos = _5d(_61).position;
                top = (pos == "absolute" ? _5c.offsetTop : parseInt(_5d(_5c).top) || 0);
                _5f = (pos == "absolute" ? _5c.offsetLeft : parseInt(_5d(_5c).left) || 0);
                if (pos != "absolute" && pos != "relative") {
                    var ret = dojo.coords(_61, true);
                    top = ret.y;
                    _5f = ret.x;
                    _61.style.position = "absolute";
                    _61.style.top = top + "px";
                    _61.style.left = _5f + "px";
                }
            };
        })();
        _60();
        var _64 = dojo.animateProperty(dojo.mixin({properties:{top:{start:top,end:_5b.top || 0},left:{start:_5f,end:_5b.left || 0}}}, _5b));
        dojo.connect(_64, "beforeBegin", _64, _60);
        return _64;
    };
}
if (!dojo._hasResource["dijit._base.focus"]) {
    dojo._hasResource["dijit._base.focus"] = true;
    dojo.provide("dijit._base.focus");
    dojo.mixin(dijit, {_curFocus:null,_prevFocus:null,isCollapsed:function() {
        var _65 = dojo.global;
        var _66 = dojo.doc;
        if (_66.selection) {
            return !_66.selection.createRange().text;
        } else {
            if (_65.getSelection) {
                var _67 = _65.getSelection();
                if (dojo.isString(_67)) {
                    return !_67;
                } else {
                    return _67.isCollapsed || !_67.toString();
                }
            }
        }
    },getBookmark:function() {
        var _68,_69 = dojo.doc.selection;
        if (_69) {
            var _6a = _69.createRange();
            if (_69.type.toUpperCase() == "CONTROL") {
                _68 = _6a.length ? dojo._toArray(_6a) : null;
            } else {
                _68 = _6a.getBookmark();
            }
        } else {
            if (dojo.global.getSelection) {
                _69 = dojo.global.getSelection();
                if (_69) {
                    var _6a = _69.getRangeAt(0);
                    _68 = _6a.cloneRange();
                }
            } else {
                console.debug("No idea how to store the current selection for this browser!");
            }
        }
        return _68;
    },moveToBookmark:function(_6b) {
        var _6c = dojo.doc;
        if (_6c.selection) {
            var _6d;
            if (dojo.isArray(_6b)) {
                _6d = _6c.body.createControlRange();
                dojo.forEach(_6b, _6d.addElement);
            } else {
                _6d = _6c.selection.createRange();
                _6d.moveToBookmark(_6b);
            }
            _6d.select();
        } else {
            var _6e = dojo.global.getSelection && dojo.global.getSelection();
            if (_6e && _6e.removeAllRanges) {
                _6e.removeAllRanges();
                _6e.addRange(_6b);
            } else {
                console.debug("No idea how to restore selection for this browser!");
            }
        }
    },getFocus:function(_6f, _70) {
        return {node:_6f && dojo.isDescendant(dijit._curFocus, _6f.domNode) ? dijit._prevFocus : dijit._curFocus,bookmark:!dojo.withGlobal(_70 || dojo.global, dijit.isCollapsed) ? dojo.withGlobal(_70 || dojo.global, dijit.getBookmark) : null,openedForWindow:_70};
    },focus:function(_71) {
        if (!_71) {
            return;
        }
        var _72 = "node" in _71 ? _71.node : _71,_73 = _71.bookmark,_74 = _71.openedForWindow;
        if (_72) {
            var _75 = (_72.tagName.toLowerCase() == "iframe") ? _72.contentWindow : _72;
            if (_75 && _75.focus) {
                try {
                    _75.focus();
                } catch(e) {
                }
            }
            dijit._onFocusNode(_72);
        }
        if (_73 && dojo.withGlobal(_74 || dojo.global, dijit.isCollapsed)) {
            if (_74) {
                _74.focus();
            }
            try {
                dojo.withGlobal(_74 || dojo.global, moveToBookmark, null, [_73]);
            } catch(e) {
            }
        }
    },_activeStack:[],registerWin:function(_76) {
        if (!_76) {
            _76 = window;
        }
        dojo.connect(_76.document, "onmousedown", null, function(evt) {
            dijit._ignoreNextBlurEvent = true;
            setTimeout(function() {
                dijit._ignoreNextBlurEvent = false;
            }, 0);
            dijit._onTouchNode(evt.target || evt.srcElement);
        });
        var _78 = _76.document.body || _76.document.getElementsByTagName("body")[0];
        if (_78) {
            if (dojo.isIE) {
                _78.attachEvent("onactivate", function(evt) {
                    if (evt.srcElement.tagName.toLowerCase() != "body") {
                        dijit._onFocusNode(evt.srcElement);
                    }
                });
                _78.attachEvent("ondeactivate", function(evt) {
                    dijit._onBlurNode();
                });
            } else {
                _78.addEventListener("focus", function(evt) {
                    dijit._onFocusNode(evt.target);
                }, true);
                _78.addEventListener("blur", function(evt) {
                    dijit._onBlurNode();
                }, true);
            }
        }
    },_onBlurNode:function() {
        if (dijit._ignoreNextBlurEvent) {
            dijit._ignoreNextBlurEvent = false;
            return;
        }
        dijit._prevFocus = dijit._curFocus;
        dijit._curFocus = null;
        if (dijit._blurAllTimer) {
            clearTimeout(dijit._blurAllTimer);
        }
        dijit._blurAllTimer = setTimeout(function() {
            delete dijit._blurAllTimer;
            dijit._setStack([]);
        }, 100);
    },_onTouchNode:function(_7d) {
        if (dijit._blurAllTimer) {
            clearTimeout(dijit._blurAllTimer);
            delete dijit._blurAllTimer;
        }
        var _7e = [];
        try {
            while (_7d) {
                if (_7d.dijitPopupParent) {
                    _7d = dijit.byId(_7d.dijitPopupParent).domNode;
                } else {
                    if (_7d.tagName && _7d.tagName.toLowerCase() == "body") {
                        if (_7d === dojo.body()) {
                            break;
                        }
                        _7d = dojo.query("iframe").filter(function(_7f) {
                            return _7f.contentDocument.body === _7d;
                        })[0];
                    } else {
                        var id = _7d.getAttribute && _7d.getAttribute("widgetId");
                        if (id) {
                            _7e.unshift(id);
                        }
                        _7d = _7d.parentNode;
                    }
                }
            }
        } catch(e) {
        }
        dijit._setStack(_7e);
    },_onFocusNode:function(_81) {
        if (_81 && _81.tagName && _81.tagName.toLowerCase() == "body") {
            return;
        }
        dijit._onTouchNode(_81);
        if (_81 == dijit._curFocus) {
            return;
        }
        dijit._prevFocus = dijit._curFocus;
        dijit._curFocus = _81;
        dojo.publish("focusNode", [_81]);
        var w = dijit.byId(_81.id);
        if (w && w._setStateClass) {
            w._focused = true;
            w._setStateClass();
            var _83 = dojo.connect(_81, "onblur", function() {
                w._focused = false;
                w._setStateClass();
                dojo.disconnect(_83);
            });
        }
    },_setStack:function(_84) {
        var _85 = dijit._activeStack;
        dijit._activeStack = _84;
        for (var _86 = 0; _86 < Math.min(_85.length, _84.length); _86++) {
            if (_85[_86] != _84[_86]) {
                break;
            }
        }
        for (var i = _85.length - 1; i >= _86; i--) {
            var _88 = dijit.byId(_85[i]);
            if (_88) {
                dojo.publish("widgetBlur", [_88]);
                if (_88._onBlur) {
                    _88._onBlur();
                }
            }
        }
        for (var i = _86; i < _84.length; i++) {
            var _88 = dijit.byId(_84[i]);
            if (_88) {
                dojo.publish("widgetFocus", [_88]);
                if (_88._onFocus) {
                    _88._onFocus();
                }
            }
        }
    }});
    dojo.addOnLoad(dijit.registerWin);
}
if (!dojo._hasResource["dijit._base.manager"]) {
    dojo._hasResource["dijit._base.manager"] = true;
    dojo.provide("dijit._base.manager");
    dojo.declare("dijit.WidgetSet", null, {constructor:function() {
        this._hash = {};
    },add:function(_89) {
        this._hash[_89.id] = _89;
    },remove:function(id) {
        delete this._hash[id];
    },forEach:function(_8b) {
        for (var id in this._hash) {
            _8b(this._hash[id]);
        }
    },filter:function(_8d) {
        var res = new dijit.WidgetSet();
        this.forEach(function(_8f) {
            if (_8d(_8f)) {
                res.add(_8f);
            }
        });
        return res;
    },byId:function(id) {
        return this._hash[id];
    },byClass:function(cls) {
        return this.filter(function(_92) {
            return _92.declaredClass == cls;
        });
    }});
    dijit.registry = new dijit.WidgetSet();
    dijit._widgetTypeCtr = {};
    dijit.getUniqueId = function(_93) {
        var id;
        do{
            id = _93 + "_" + (dijit._widgetTypeCtr[_93] !== undefined ? ++dijit._widgetTypeCtr[_93] : dijit._widgetTypeCtr[_93] = 0);
        } while (dijit.byId(id));
        return id;
    };
    if (dojo.isIE) {
        dojo.addOnUnload(function() {
            dijit.registry.forEach(function(_95) {
                _95.destroy();
            });
        });
    }
    dijit.byId = function(id) {
        return (dojo.isString(id)) ? dijit.registry.byId(id) : id;
    };
    dijit.byNode = function(_97) {
        return dijit.registry.byId(_97.getAttribute("widgetId"));
    };
}
if (!dojo._hasResource["dijit._base.place"]) {
    dojo._hasResource["dijit._base.place"] = true;
    dojo.provide("dijit._base.place");
    dijit.getViewport = function() {
        var _98 = dojo.global;
        var _99 = dojo.doc;
        var w = 0,h = 0;
        if (dojo.isMozilla) {
            w = _99.documentElement.clientWidth;
            h = _98.innerHeight;
        } else {
            if (!dojo.isOpera && _98.innerWidth) {
                w = _98.innerWidth;
                h = _98.innerHeight;
            } else {
                if (dojo.isIE && _99.documentElement && _99.documentElement.clientHeight) {
                    w = _99.documentElement.clientWidth;
                    h = _99.documentElement.clientHeight;
                } else {
                    if (dojo.body().clientWidth) {
                        w = dojo.body().clientWidth;
                        h = dojo.body().clientHeight;
                    }
                }
            }
        }
        var _9c = dojo._docScroll();
        return {w:w,h:h,l:_9c.x,t:_9c.y};
    };
    dijit.placeOnScreen = function(_9d, pos, _9f, _a0) {
        var _a1 = dojo.map(_9f, function(_a2) {
            return {corner:_a2,pos:pos};
        });
        return dijit._place(_9d, _a1);
    };
    dijit._place = function(_a3, _a4, _a5) {
        var _a6 = dijit.getViewport();
        if (!_a3.parentNode || String(_a3.parentNode.tagName).toLowerCase() != "body") {
            dojo.body().appendChild(_a3);
        }
        var _a7 = null;
        for (var i = 0; i < _a4.length; i++) {
            var _a9 = _a4[i].corner;
            var pos = _a4[i].pos;
            if (_a5) {
                _a5(_a9);
            }
            var _ab = _a3.style.display;
            var _ac = _a3.style.visibility;
            _a3.style.visibility = "hidden";
            _a3.style.display = "";
            var mb = dojo.marginBox(_a3);
            _a3.style.display = _ab;
            _a3.style.visibility = _ac;
            var _ae = (_a9.charAt(1) == "L" ? pos.x : Math.max(_a6.l, pos.x - mb.w)),_af = (_a9.charAt(0) == "T" ? pos.y : Math.max(_a6.t, pos.y - mb.h)),_b0 = (_a9.charAt(1) == "L" ? Math.min(_a6.l + _a6.w, _ae + mb.w) : pos.x),_b1 = (_a9.charAt(0) == "T" ? Math.min(_a6.t + _a6.h, _af + mb.h) : pos.y),_b2 = _b0 - _ae,_b3 = _b1 - _af,_b4 = (mb.w - _b2) + (mb.h - _b3);
            if (_a7 == null || _b4 < _a7.overflow) {
                _a7 = {corner:_a9,aroundCorner:_a4[i].aroundCorner,x:_ae,y:_af,w:_b2,h:_b3,overflow:_b4};
            }
            if (_b4 == 0) {
                break;
            }
        }
        _a3.style.left = _a7.x + "px";
        _a3.style.top = _a7.y + "px";
        return _a7;
    };
    dijit.placeOnScreenAroundElement = function(_b5, _b6, _b7, _b8) {
        _b6 = dojo.byId(_b6);
        var _b9 = _b6.style.display;
        _b6.style.display = "";
        var _ba = _b6.offsetWidth;
        var _bb = _b6.offsetHeight;
        var _bc = dojo.coords(_b6, true);
        _b6.style.display = _b9;
        var _bd = [];
        for (var _be in _b7) {
            _bd.push({aroundCorner:_be,corner:_b7[_be],pos:{x:_bc.x + (_be.charAt(1) == "L" ? 0 : _ba),y:_bc.y + (_be.charAt(0) == "T" ? 0 : _bb)}});
        }
        return dijit._place(_b5, _bd, _b8);
    };
}
if (!dojo._hasResource["dijit._base.window"]) {
    dojo._hasResource["dijit._base.window"] = true;
    dojo.provide("dijit._base.window");
    dijit.getDocumentWindow = function(doc) {
        if (dojo.isSafari && !doc._parentWindow) {
            var fix = function(win) {
                win.document._parentWindow = win;
                for (var i = 0; i < win.frames.length; i++) {
                    fix(win.frames[i]);
                }
            };
            fix(window.top);
        }
        if (dojo.isIE && window !== document.parentWindow && !doc._parentWindow) {
            doc.parentWindow.execScript("document._parentWindow = window;", "Javascript");
            var win = doc._parentWindow;
            doc._parentWindow = null;
            return win;
        }
        return doc._parentWindow || doc.parentWindow || doc.defaultView;
    };
}
if (!dojo._hasResource["dijit._base.popup"]) {
    dojo._hasResource["dijit._base.popup"] = true;
    dojo.provide("dijit._base.popup");
    dijit.popup = new function() {
        var _c4 = [],_c5 = 1000,_c6 = 1;
        this.open = function(_c7) {
            var _c8 = _c7.popup,_c9 = _c7.orient || {"BL":"TL","TL":"BL"},_ca = _c7.around,id = (_c7.around && _c7.around.id) ? (_c7.around.id + "_dropdown") : ("popup_" + _c6++);
            if (!_c7.submenu) {
                this.closeAll();
            }
            var _cc = dojo.doc.createElement("div");
            _cc.id = id;
            _cc.className = "dijitPopup";
            _cc.style.zIndex = _c5 + _c4.length;
            if (_c7.parent) {
                _cc.dijitPopupParent = _c7.parent.id;
            }
            dojo.body().appendChild(_cc);
            _c8.domNode.style.display = "";
            _cc.appendChild(_c8.domNode);
            var _cd = new dijit.BackgroundIframe(_cc);
            var _ce = _ca ? dijit.placeOnScreenAroundElement(_cc, _ca, _c9, _c8.orient ? dojo.hitch(_c8, "orient") : null) : dijit.placeOnScreen(_cc, _c7, _c9 == "R" ? ["TR","BR","TL","BL"] : ["TL","BL","TR","BR"]);
            var _cf = [];
            _cf.push(dojo.connect(_cc, "onkeypress", this, function(evt) {
                if (evt.keyCode == dojo.keys.ESCAPE) {
                    _c7.onCancel();
                }
            }));
            if (_c8.onCancel) {
                _cf.push(dojo.connect(_c8, "onCancel", null, _c7.onCancel));
            }
            _cf.push(dojo.connect(_c8, _c8.onExecute ? "onExecute" : "onChange", null, function() {
                if (_c4[0] && _c4[0].onExecute) {
                    _c4[0].onExecute();
                }
            }));
            _c4.push({wrapper:_cc,iframe:_cd,widget:_c8,onExecute:_c7.onExecute,onCancel:_c7.onCancel,onClose:_c7.onClose,handlers:_cf});
            if (_c8.onOpen) {
                _c8.onOpen(_ce);
            }
            return _ce;
        };
        this.close = function() {
            var _d1 = _c4[_c4.length - 1].widget;
            if (_d1.onClose) {
                _d1.onClose();
            }
            if (!_c4.length) {
                return;
            }
            var top = _c4.pop();
            var _d3 = top.wrapper,_d4 = top.iframe,_d1 = top.widget,_d5 = top.onClose;
            dojo.forEach(top.handlers, dojo.disconnect);
            if (!_d1 || !_d1.domNode) {
                return;
            }
            dojo.style(_d1.domNode, "display", "none");
            dojo.body().appendChild(_d1.domNode);
            _d4.destroy();
            dojo._destroyElement(_d3);
            if (_d5) {
                _d5();
            }
        };
        this.closeAll = function() {
            while (_c4.length) {
                this.close();
            }
        };
        this.closeTo = function(_d6) {
            while (_c4.length && _c4[_c4.length - 1].widget.id != _d6.id) {
                this.close();
            }
        };
    }();
    dijit._frames = new function() {
        var _d7 = [];
        this.pop = function() {
            var _d8;
            if (_d7.length) {
                _d8 = _d7.pop();
                _d8.style.display = "";
            } else {
                if (dojo.isIE) {
                    var _d9 = "<iframe src='javascript:\"\"'" + " style='position: absolute; left: 0px; top: 0px;" + "z-index: -1; filter:Alpha(Opacity=\"0\");'>";
                    _d8 = dojo.doc.createElement(_d9);
                } else {
                    var _d8 = dojo.doc.createElement("iframe");
                    _d8.src = "javascript:\"\"";
                    _d8.className = "dijitBackgroundIframe";
                }
                _d8.tabIndex = -1;
                dojo.body().appendChild(_d8);
            }
            return _d8;
        };
        this.push = function(_da) {
            _da.style.display = "";
            if (dojo.isIE) {
                _da.style.removeExpression("width");
                _da.style.removeExpression("height");
            }
            _d7.push(_da);
        };
    }();
    if (dojo.isIE && dojo.isIE < 7) {
        dojo.addOnLoad(function() {
            var f = dijit._frames;
            dojo.forEach([f.pop()], f.push);
        });
    }
    dijit.BackgroundIframe = function(_dc) {
        if (!_dc.id) {
            throw new Error("no id");
        }
        if ((dojo.isIE && dojo.isIE < 7) || (dojo.isFF && dojo.isFF < 3 && dojo.hasClass(dojo.body(), "dijit_a11y"))) {
            var _dd = dijit._frames.pop();
            _dc.appendChild(_dd);
            if (dojo.isIE) {
                _dd.style.setExpression("width", "document.getElementById('" + _dc.id + "').offsetWidth");
                _dd.style.setExpression("height", "document.getElementById('" + _dc.id + "').offsetHeight");
            }
            this.iframe = _dd;
        }
    };
    dojo.extend(dijit.BackgroundIframe, {destroy:function() {
        if (this.iframe) {
            dijit._frames.push(this.iframe);
            delete this.iframe;
        }
    }});
}
if (!dojo._hasResource["dijit._base.scroll"]) {
    dojo._hasResource["dijit._base.scroll"] = true;
    dojo.provide("dijit._base.scroll");
    dijit.scrollIntoView = function(_de) {
        if (dojo.isIE) {
            if (dojo.marginBox(_de.parentNode).h <= _de.parentNode.scrollHeight) {
                _de.scrollIntoView(false);
            }
        } else {
            if (dojo.isMozilla) {
                _de.scrollIntoView(false);
            } else {
                var _df = _de.parentNode;
                var _e0 = _df.scrollTop + dojo.marginBox(_df).h;
                var _e1 = _de.offsetTop + dojo.marginBox(_de).h;
                if (_e0 < _e1) {
                    _df.scrollTop += (_e1 - _e0);
                } else {
                    if (_df.scrollTop > _de.offsetTop) {
                        _df.scrollTop -= (_df.scrollTop - _de.offsetTop);
                    }
                }
            }
        }
    };
}
if (!dojo._hasResource["dijit._base.sniff"]) {
    dojo._hasResource["dijit._base.sniff"] = true;
    dojo.provide("dijit._base.sniff");
    (function() {
        var d = dojo;
        var ie = d.isIE;
        var _e4 = d.isOpera;
        var maj = Math.floor;
        var _e6 = {dj_ie:ie,dj_ie6:maj(ie) == 6,dj_ie7:maj(ie) == 7,dj_iequirks:ie && d.isQuirks,dj_opera:_e4,dj_opera8:maj(_e4) == 8,dj_opera9:maj(_e4) == 9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla};
        for (var p in _e6) {
            if (_e6[p]) {
                var _e8 = dojo.doc.documentElement;
                if (_e8.className) {
                    _e8.className += " " + p;
                } else {
                    _e8.className = p;
                }
            }
        }
    })();
}
if (!dojo._hasResource["dijit._base.bidi"]) {
    dojo._hasResource["dijit._base.bidi"] = true;
    dojo.provide("dijit._base.bidi");
    dojo.addOnLoad(function() {
        if (!dojo._isBodyLtr()) {
            dojo.addClass(dojo.body(), "dijitRtl");
        }
    });
}
if (!dojo._hasResource["dijit._base.typematic"]) {
    dojo._hasResource["dijit._base.typematic"] = true;
    dojo.provide("dijit._base.typematic");
    dijit.typematic = {_fireEventAndReload:function() {
        this._timer = null;
        this._callback(++this._count, this._node, this._evt);
        this._currentTimeout = (this._currentTimeout < 0) ? this._initialDelay : ((this._subsequentDelay > 1) ? this._subsequentDelay : Math.round(this._currentTimeout * this._subsequentDelay));
        this._timer = setTimeout(dojo.hitch(this, "_fireEventAndReload"), this._currentTimeout);
    },trigger:function(evt, _ea, _eb, _ec, obj, _ee, _ef) {
        if (obj != this._obj) {
            this.stop();
            this._initialDelay = _ef ? _ef : 500;
            this._subsequentDelay = _ee ? _ee : 0.9;
            this._obj = obj;
            this._evt = evt;
            this._node = _eb;
            this._currentTimeout = -1;
            this._count = -1;
            this._callback = dojo.hitch(_ea, _ec);
            this._fireEventAndReload();
        }
    },stop:function() {
        if (this._timer) {
            clearTimeout(this._timer);
            this._timer = null;
        }
        if (this._obj) {
            this._callback(-1, this._node, this._evt);
            this._obj = null;
        }
    },addKeyListener:function(_f0, _f1, _f2, _f3, _f4, _f5) {
        var ary = [];
        ary.push(dojo.connect(_f0, "onkeypress", this, function(evt) {
            if (evt.keyCode == _f1.keyCode && (!_f1.charCode || _f1.charCode == evt.charCode) && ((typeof _f1.ctrlKey == "undefined") || _f1.ctrlKey == evt.ctrlKey) && ((typeof _f1.altKey == "undefined") || _f1.altKey == evt.ctrlKey) && ((typeof _f1.shiftKey == "undefined") || _f1.shiftKey == evt.ctrlKey)) {
                dojo.stopEvent(evt);
                dijit.typematic.trigger(_f1, _f2, _f0, _f3, _f1, _f4, _f5);
            } else {
                if (dijit.typematic._obj == _f1) {
                    dijit.typematic.stop();
                }
            }
        }));
        ary.push(dojo.connect(_f0, "onkeyup", this, function(evt) {
            if (dijit.typematic._obj == _f1) {
                dijit.typematic.stop();
            }
        }));
        return ary;
    },addMouseListener:function(_f9, _fa, _fb, _fc, _fd) {
        var ary = [];
        ary.push(dojo.connect(_f9, "mousedown", this, function(evt) {
            dojo.stopEvent(evt);
            dijit.typematic.trigger(evt, _fa, _f9, _fb, _f9, _fc, _fd);
        }));
        ary.push(dojo.connect(_f9, "mouseup", this, function(evt) {
            dojo.stopEvent(evt);
            dijit.typematic.stop();
        }));
        ary.push(dojo.connect(_f9, "mouseout", this, function(evt) {
            dojo.stopEvent(evt);
            dijit.typematic.stop();
        }));
        ary.push(dojo.connect(_f9, "mousemove", this, function(evt) {
            dojo.stopEvent(evt);
        }));
        ary.push(dojo.connect(_f9, "dblclick", this, function(evt) {
            dojo.stopEvent(evt);
            if (dojo.isIE) {
                dijit.typematic.trigger(evt, _fa, _f9, _fb, _f9, _fc, _fd);
                setTimeout("dijit.typematic.stop()", 50);
            }
        }));
        return ary;
    },addListener:function(_104, _105, _106, _107, _108, _109, _10a) {
        return this.addKeyListener(_105, _106, _107, _108, _109, _10a).concat(this.addMouseListener(_104, _107, _108, _109, _10a));
    }};
}
if (!dojo._hasResource["dijit._base.wai"]) {
    dojo._hasResource["dijit._base.wai"] = true;
    dojo.provide("dijit._base.wai");
    dijit.waiNames = ["waiRole","waiState"];
    dijit.wai = {waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node, ns, attr, _10e) {
        if (dojo.isIE) {
            node.setAttribute(this[ns].alias + ":" + attr, this[ns].prefix + _10e);
        } else {
            node.setAttributeNS(this[ns]["namespace"], attr, this[ns].prefix + _10e);
        }
    },getAttr:function(node, ns, attr) {
        if (dojo.isIE) {
            return node.getAttribute(this[ns].alias + ":" + attr);
        } else {
            return node.getAttributeNS(this[ns]["namespace"], attr);
        }
    },removeAttr:function(node, ns, attr) {
        var _115 = true;
        if (dojo.isIE) {
            _115 = node.removeAttribute(this[ns].alias + ":" + attr);
        } else {
            node.removeAttributeNS(this[ns]["namespace"], attr);
        }
        return _115;
    },onload:function() {
        var div = document.createElement("div");
        div.id = "a11yTestNode";
        div.style.cssText = "border: 1px solid;" + "border-color:red green;" + "position: absolute;" + "left: -999px;" + "top: -999px;" + "background-image: url(\"" + dojo.moduleUrl("dijit", "form/templates/blank.gif") + "\");";
        dojo.body().appendChild(div);
        function check() {
            var cs = dojo.getComputedStyle(div);
            if (cs) {
                var _118 = cs.backgroundImage;
                var _119 = (cs.borderTopColor == cs.borderRightColor) || (_118 != null && (_118 == "none" || _118 == "url(invalid-url:)"));
                dojo[_119 ? "addClass" : "removeClass"](dojo.body(), "dijit_a11y");
            }
        }

        ;
        check();
        if (dojo.isIE) {
            setInterval(check, 4000);
        }
    }};
    if (dojo.isIE || dojo.isMoz) {
        dojo._loaders.unshift(dijit.wai.onload);
    }
}
if (!dojo._hasResource["dijit._base"]) {
    dojo._hasResource["dijit._base"] = true;
    dojo.provide("dijit._base");
}
if (!dojo._hasResource["dijit._Widget"]) {
    dojo._hasResource["dijit._Widget"] = true;
    dojo.provide("dijit._Widget");
    dojo.declare("dijit._Widget", null, {constructor:function(_11a, _11b) {
        this.create(_11a, _11b);
    },id:"",lang:"",dir:"",srcNodeRef:null,domNode:null,create:function(_11c, _11d) {
        this.srcNodeRef = dojo.byId(_11d);
        this._connects = [];
        this._attaches = [];
        if (this.srcNodeRef && (typeof this.srcNodeRef.id == "string")) {
            this.id = this.srcNodeRef.id;
        }
        if (_11c) {
            dojo.mixin(this, _11c);
        }
        this.postMixInProperties();
        if (!this.id) {
            this.id = dijit.getUniqueId(this.declaredClass.replace(/\./g, "_"));
        }
        dijit.registry.add(this);
        this.buildRendering();
        if (this.domNode) {
            this.domNode.setAttribute("widgetId", this.id);
            if (this.srcNodeRef && this.srcNodeRef.dir) {
                this.domNode.dir = this.srcNodeRef.dir;
            }
        }
        this.postCreate();
        if (this.srcNodeRef && !this.srcNodeRef.parentNode) {
            delete this.srcNodeRef;
        }
    },postMixInProperties:function() {
    },buildRendering:function() {
        this.domNode = this.srcNodeRef;
    },postCreate:function() {
    },startup:function() {
    },destroyRecursive:function(_11e) {
        this.destroyDescendants();
        this.destroy();
    },destroy:function(_11f) {
        this.uninitialize();
        dojo.forEach(this._connects, function(_120) {
            dojo.forEach(_120, dojo.disconnect);
        });
        this.destroyRendering(_11f);
        dijit.registry.remove(this.id);
    },destroyRendering:function(_121) {
        if (this.bgIframe) {
            this.bgIframe.destroy();
            delete this.bgIframe;
        }
        if (this.domNode) {
            dojo._destroyElement(this.domNode);
            delete this.domNode;
        }
        if (this.srcNodeRef) {
            dojo._destroyElement(this.srcNodeRef);
            delete this.srcNodeRef;
        }
    },destroyDescendants:function() {
        dojo.forEach(this.getDescendants(), function(_122) {
            _122.destroy();
        });
    },uninitialize:function() {
        return false;
    },toString:function() {
        return "[Widget " + this.declaredClass + ", " + (this.id || "NO ID") + "]";
    },getDescendants:function() {
        var list = dojo.query("[widgetId]", this.domNode);
        return list.map(dijit.byNode);
    },nodesWithKeyClick:["input","button"],connect:function(obj, _125, _126) {
        var _127 = [];
        if (_125 == "ondijitclick") {
            var w = this;
            if (!this.nodesWithKeyClick[obj.nodeName]) {
                _127.push(dojo.connect(obj, "onkeydown", this, function(e) {
                    if (e.keyCode == dojo.keys.ENTER) {
                        return (dojo.isString(_126)) ? w[_126](e) : _126.call(w, e);
                    } else {
                        if (e.keyCode == dojo.keys.SPACE) {
                            dojo.stopEvent(e);
                        }
                    }
                }));
                _127.push(dojo.connect(obj, "onkeyup", this, function(e) {
                    if (e.keyCode == dojo.keys.SPACE) {
                        return dojo.isString(_126) ? w[_126](e) : _126.call(w, e);
                    }
                }));
            }
            _125 = "onclick";
        }
        _127.push(dojo.connect(obj, _125, this, _126));
        this._connects.push(_127);
        return _127;
    },disconnect:function(_12b) {
        for (var i = 0; i < this._connects.length; i++) {
            if (this._connects[i] == _12b) {
                dojo.forEach(_12b, dojo.disconnect);
                this._connects.splice(i, 1);
                return;
            }
        }
    },isLeftToRight:function() {
        if (typeof this._ltr == "undefined") {
            this._ltr = (this.dir || dojo.getComputedStyle(this.domNode).direction) != "rtl";
        }
        return this._ltr;
    }});
}
if (!dojo._hasResource["dojo.string"]) {
    dojo._hasResource["dojo.string"] = true;
    dojo.provide("dojo.string");
    dojo.string.pad = function(text, size, ch, end) {
        var out = String(text);
        if (!ch) {
            ch = "0";
        }
        while (out.length < size) {
            if (end) {
                out += ch;
            } else {
                out = ch + out;
            }
        }
        return out;
    };
    dojo.string.substitute = function(_132, map, _134, _135) {
        return _132.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g, function(_136, key, _138) {
            var _139 = dojo.getObject(key, false, map);
            if (_138) {
                _139 = dojo.getObject(_138, false, _135)(_139);
            }
            if (_134) {
                _139 = _134(_139, key);
            }
            return _139.toString();
        });
    };
    dojo.string.trim = function(str) {
        str = str.replace(/^\s+/, "");
        for (var i = str.length - 1; i > 0; i--) {
            if (/\S/.test(str.charAt(i))) {
                str = str.substring(0, i + 1);
                break;
            }
        }
        return str;
    };
}
if (!dojo._hasResource["dojo.date.stamp"]) {
    dojo._hasResource["dojo.date.stamp"] = true;
    dojo.provide("dojo.date.stamp");
    dojo.date.stamp.fromISOString = function(_13c, _13d) {
        if (!dojo.date.stamp._isoRegExp) {
            dojo.date.stamp._isoRegExp = /^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
        }
        var _13e = dojo.date.stamp._isoRegExp.exec(_13c);
        var _13f = null;
        if (_13e) {
            _13e.shift();
            _13e[1] && _13e[1]--;
            _13e[6] && (_13e[6] *= 1000);
            if (_13d) {
                _13d = new Date(_13d);
                dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"], function(prop) {
                    return _13d["get" + prop]();
                }).forEach(function(_141, _142) {
                    if (_13e[_142] === undefined) {
                        _13e[_142] = _141;
                    }
                });
            }
            _13f = new Date(_13e[0] || 1970, _13e[1] || 0, _13e[2] || 0, _13e[3] || 0, _13e[4] || 0, _13e[5] || 0, _13e[6] || 0);
            var _143 = 0;
            var _144 = _13e[7] && _13e[7].charAt(0);
            if (_144 != "Z") {
                _143 = ((_13e[8] || 0) * 60) + (Number(_13e[9]) || 0);
                if (_144 != "-") {
                    _143 *= -1;
                }
            }
            if (_144) {
                _143 -= _13f.getTimezoneOffset();
            }
            if (_143) {
                _13f.setTime(_13f.getTime() + _143 * 60000);
            }
        }
        return _13f;
    };
    dojo.date.stamp.toISOString = function(_145, _146) {
        var _ = function(n) {
            return (n < 10) ? "0" + n : n;
        };
        _146 = _146 || {};
        var _149 = [];
        var _14a = _146.zulu ? "getUTC" : "get";
        var date = "";
        if (_146.selector != "time") {
            date = [_145[_14a + "FullYear"](),_(_145[_14a + "Month"]() + 1),_(_145[_14a + "Date"]())].join("-");
        }
        _149.push(date);
        if (_146.selector != "date") {
            var time = [_(_145[_14a + "Hours"]()),_(_145[_14a + "Minutes"]()),_(_145[_14a + "Seconds"]())].join(":");
            var _14d = _145[_14a + "Milliseconds"]();
            if (_146.milliseconds) {
                time += "." + (_14d < 100 ? "0" : "") + _(_14d);
            }
            if (_146.zulu) {
                time += "Z";
            } else {
                var _14e = _145.getTimezoneOffset();
                var _14f = Math.abs(_14e);
                time += (_14e > 0 ? "-" : "+") + _(Math.floor(_14f / 60)) + ":" + _(_14f % 60);
            }
            _149.push(time);
        }
        return _149.join("T");
    };
}
if (!dojo._hasResource["dojo.parser"]) {
    dojo._hasResource["dojo.parser"] = true;
    dojo.provide("dojo.parser");
    dojo.parser = new function() {
        var d = dojo;

        function val2type(_151) {
            if (d.isString(_151)) {
                return "string";
            }
            if (typeof _151 == "number") {
                return "number";
            }
            if (typeof _151 == "boolean") {
                return "boolean";
            }
            if (d.isFunction(_151)) {
                return "function";
            }
            if (d.isArray(_151)) {
                return "array";
            }
            if (_151 instanceof Date) {
                return "date";
            }
            if (_151 instanceof d._Url) {
                return "url";
            }
            return "object";
        }

        ;
        function str2obj(_152, type) {
            switch (type) {case "string":return _152;case "number":return _152.length ? Number(_152) : NaN;case "boolean":return typeof _152 == "boolean" ? _152 : !(_152.toLowerCase() == "false");case "function":if (d.isFunction(_152)) {
                _152 = _152.toString();
                _152 = d.trim(_152.substring(_152.indexOf("{") + 1, _152.length - 1));
            }try {
                if (_152.search(/[^\w\.]+/i) != -1) {
                    _152 = d.parser._nameAnonFunc(new Function(_152), this);
                }
                return d.getObject(_152, false);
            } catch(e) {
                return new Function();
            }case "array":return _152.split(/\s*,\s*/);case "date":switch (_152) {case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_152);}case "url":return d.baseUrl + _152;default:return d.fromJson(_152);}
        }

        ;
        var _154 = {};

        function getClassInfo(_155) {
            if (!_154[_155]) {
                var cls = d.getObject(_155);
                if (!d.isFunction(cls)) {
                    throw new Error("Could not load class '" + _155 + "'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
                }
                var _157 = cls.prototype;
                var _158 = {};
                for (var name in _157) {
                    if (name.charAt(0) == "_") {
                        continue;
                    }
                    var _15a = _157[name];
                    _158[name] = val2type(_15a);
                }
                _154[_155] = {cls:cls,params:_158};
            }
            return _154[_155];
        }

        ;
        this._functionFromScript = function(_15b) {
            var _15c = "";
            var _15d = "";
            var _15e = _15b.getAttribute("args");
            if (_15e) {
                d.forEach(_15e.split(/\s*,\s*/), function(part, idx) {
                    _15c += "var " + part + " = arguments[" + idx + "]; ";
                });
            }
            var _161 = _15b.getAttribute("with");
            if (_161 && _161.length) {
                d.forEach(_161.split(/\s*,\s*/), function(part) {
                    _15c += "with(" + part + "){";
                    _15d += "}";
                });
            }
            return new Function(_15c + _15b.innerHTML + _15d);
        };
        this._wireUpMethod = function(_163, _164) {
            var nf = this._functionFromScript(_164);
            var _166 = _164.getAttribute("event");
            if (_166) {
                var mode = _164.getAttribute("type");
                if (mode && (mode == "dojo/connect")) {
                    d.connect(_163, _166, null, nf);
                } else {
                    _163[_166] = nf;
                }
            } else {
                nf.call(_163);
            }
        };
        this.instantiate = function(_168) {
            var _169 = [];
            d.forEach(_168, function(node) {
                if (!node) {
                    return;
                }
                var type = node.getAttribute("dojoType");
                if ((!type) || (!type.length)) {
                    return;
                }
                var _16c = getClassInfo(type);
                var _16d = _16c.cls;
                var ps = _16d._noScript || _16d.prototype._noScript;
                var _16f = {};
                var _170 = node.attributes;
                for (var name in _16c.params) {
                    var item = _170.getNamedItem(name);
                    if (!item || (!item.specified && (!dojo.isIE || name.toLowerCase() != "value"))) {
                        continue;
                    }
                    var _173 = _16c.params[name];
                    _16f[name] = str2obj(item.value, _173);
                }
                if (!ps) {
                    var _174 = d.query("> script[type='dojo/method'][event='preamble']", node).orphan();
                    if (_174.length) {
                        _16f.preamble = d.parser._functionFromScript(_174[0]);
                    }
                    var _175 = d.query("> script[type^='dojo/']", node).orphan();
                }
                var _176 = _16d["markupFactory"];
                if (!_176 && _16d["prototype"]) {
                    _176 = _16d.prototype["markupFactory"];
                }
                var _177 = _176 ? _176(_16f, node, _16d) : new _16d(_16f, node);
                _169.push(_177);
                var _178 = node.getAttribute("jsId");
                if (_178) {
                    d.setObject(_178, _177);
                }
                if (!ps) {
                    _175.forEach(function(_179) {
                        d.parser._wireUpMethod(_177, _179);
                    });
                }
            });
            d.forEach(_169, function(_17a) {
                if (_17a && (_17a.startup) && ((!_17a.getParent) || (!_17a.getParent()))) {
                    _17a.startup();
                }
            });
            return _169;
        };
        this.parse = function(_17b) {
            var list = d.query("[dojoType]", _17b);
            var _17d = this.instantiate(list);
            return _17d;
        };
    }();
    (function() {
        var _17e = function() {
            if (djConfig["parseOnLoad"] == true) {
                dojo.parser.parse();
            }
        };
        if (dojo.exists("dijit.wai.onload") && (dijit.wai.onload === dojo._loaders[0])) {
            dojo._loaders.splice(1, 0, _17e);
        } else {
            dojo._loaders.unshift(_17e);
        }
    })();
    dojo.parser._anonCtr = 0;
    dojo.parser._anon = {};
    dojo.parser._nameAnonFunc = function(_17f, _180) {
        var jpn = "$joinpoint";
        var nso = (_180 || dojo.parser._anon);
        if (dojo.isIE) {
            var cn = _17f["__dojoNameCache"];
            if (cn && nso[cn] === _17f) {
                return _17f["__dojoNameCache"];
            }
        }
        var ret = "__" + dojo.parser._anonCtr++;
        while (typeof nso[ret] != "undefined") {
            ret = "__" + dojo.parser._anonCtr++;
        }
        nso[ret] = _17f;
        return ret;
    };
}
if (!dojo._hasResource["dijit._Templated"]) {
    dojo._hasResource["dijit._Templated"] = true;
    dojo.provide("dijit._Templated");
    dojo.declare("dijit._Templated", null, {templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,buildRendering:function() {
        var _185 = dijit._Templated.getCachedTemplate(this.templatePath, this.templateString);
        var node;
        if (dojo.isString(_185)) {
            var _187 = this.declaredClass,_188 = this;
            var tstr = dojo.string.substitute(_185, this, function(_18a, key) {
                if (key.charAt(0) == "!") {
                    _18a = _188[key.substr(1)];
                }
                if (typeof _18a == "undefined") {
                    throw new Error(_187 + " template:" + key);
                }
                return key.charAt(0) == "!" ? _18a : _18a.toString().replace(/"/g, "&quot;");
            }, this);
            node = dijit._Templated._createNodesFromText(tstr)[0];
        } else {
            node = _185.cloneNode(true);
        }
        this._attachTemplateNodes(node);
        if (this.srcNodeRef) {
            dojo.style(this.styleNode || node, "cssText", this.srcNodeRef.style.cssText);
            if (this.srcNodeRef.className) {
                node.className += " " + this.srcNodeRef.className;
            }
        }
        this.domNode = node;
        if (this.srcNodeRef && this.srcNodeRef.parentNode) {
            this.srcNodeRef.parentNode.replaceChild(this.domNode, this.srcNodeRef);
        }
        if (this.widgetsInTemplate) {
            var _18c = dojo.parser.parse(this.domNode);
            this._attachTemplateNodes(_18c, function(n, p) {
                return n[p];
            });
        }
        this._fillContent(this.srcNodeRef);
    },_fillContent:function(_18f) {
        var dest = this.containerNode;
        if (_18f && dest) {
            while (_18f.hasChildNodes()) {
                dest.appendChild(_18f.firstChild);
            }
        }
    },_attachTemplateNodes:function(_191, _192) {
        _192 = _192 || function(n, p) {
            return n.getAttribute(p);
        };
        var _195 = dojo.isArray(_191) ? _191 : (_191.all || _191.getElementsByTagName("*"));
        var x = dojo.isArray(_191) ? 0 : -1;
        for (; x < _195.length; x++) {
            var _197 = (x == -1) ? _191 : _195[x];
            if (this.widgetsInTemplate && _192(_197, "dojoType")) {
                continue;
            }
            var _198 = _192(_197, "dojoAttachPoint");
            if (_198) {
                var _199,_19a = _198.split(/\s*,\s*/);
                while (_199 = _19a.shift()) {
                    if (dojo.isArray(this[_199])) {
                        this[_199].push(_197);
                    } else {
                        this[_199] = _197;
                    }
                }
            }
            var _19b = _192(_197, "dojoAttachEvent");
            if (_19b) {
                var _19c,_19d = _19b.split(/\s*,\s*/);
                var trim = dojo.trim;
                while (_19c = _19d.shift()) {
                    if (_19c) {
                        var _19f = null;
                        if (_19c.indexOf(":") != -1) {
                            var _1a0 = _19c.split(":");
                            _19c = trim(_1a0[0]);
                            _19f = trim(_1a0[1]);
                        } else {
                            _19c = trim(_19c);
                        }
                        if (!_19f) {
                            _19f = _19c;
                        }
                        this.connect(_197, _19c, _19f);
                    }
                }
            }
            var name,_1a2 = ["waiRole","waiState"];
            while (name = _1a2.shift()) {
                var wai = dijit.wai[name];
                var _1a4 = _192(_197, wai.name);
                if (_1a4) {
                    var role = "role";
                    var val;
                    _1a4 = _1a4.split(/\s*,\s*/);
                    while (val = _1a4.shift()) {
                        if (val.indexOf("-") != -1) {
                            var _1a7 = val.split("-");
                            role = _1a7[0];
                            val = _1a7[1];
                        }
                        dijit.wai.setAttr(_197, wai.name, role, val);
                    }
                }
            }
        }
    }});
    dijit._Templated._templateCache = {};
    dijit._Templated.getCachedTemplate = function(_1a8, _1a9) {
        var _1aa = dijit._Templated._templateCache;
        var key = _1a9 || _1a8;
        var _1ac = _1aa[key];
        if (_1ac) {
            return _1ac;
        }
        if (!_1a9) {
            _1a9 = dijit._Templated._sanitizeTemplateString(dojo._getText(_1a8));
        }
        _1a9 = dojo.string.trim(_1a9);
        if (_1a9.match(/\$\{([^\}]+)\}/g)) {
            return (_1aa[key] = _1a9);
        } else {
            return (_1aa[key] = dijit._Templated._createNodesFromText(_1a9)[0]);
        }
    };
    dijit._Templated._sanitizeTemplateString = function(_1ad) {
        if (_1ad) {
            _1ad = _1ad.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im, "");
            var _1ae = _1ad.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
            if (_1ae) {
                _1ad = _1ae[1];
            }
        } else {
            _1ad = "";
        }
        return _1ad;
    };
    if (dojo.isIE) {
        dojo.addOnUnload(function() {
            var _1af = dijit._Templated._templateCache;
            for (var key in _1af) {
                var _1b1 = _1af[key];
                if (!isNaN(_1b1.nodeType)) {
                    dojo._destroyElement(_1b1);
                }
                _1af[key] = null;
            }
        });
    }
    (function() {
        var _1b2 = {cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};
        var tn;
        dijit._Templated._createNodesFromText = function(text) {
            if (!tn) {
                tn = dojo.doc.createElement("div");
                tn.style.display = "none";
            }
            var _1b5 = "none";
            var _1b6 = text.replace(/^\s+/, "");
            for (var type in _1b2) {
                var map = _1b2[type];
                if (map.re.test(_1b6)) {
                    _1b5 = type;
                    text = map.pre + text + map.post;
                    break;
                }
            }
            tn.innerHTML = text;
            dojo.body().appendChild(tn);
            if (tn.normalize) {
                tn.normalize();
            }
            var tag = {cell:"tr",row:"tbody",section:"table"}[_1b5];
            var _1ba = (typeof tag != "undefined") ? tn.getElementsByTagName(tag)[0] : tn;
            var _1bb = [];
            while (_1ba.firstChild) {
                _1bb.push(_1ba.removeChild(_1ba.firstChild));
            }
            tn.innerHTML = "";
            return _1bb;
        };
    })();
    dojo.extend(dijit._Widget, {dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if (!dojo._hasResource["dojo.i18n"]) {
    dojo._hasResource["dojo.i18n"] = true;
    dojo.provide("dojo.i18n");
    dojo.i18n.getLocalization = function(_1bc, _1bd, _1be) {
        _1be = dojo.i18n.normalizeLocale(_1be);
        var _1bf = _1be.split("-");
        var _1c0 = [_1bc,"nls",_1bd].join(".");
        var _1c1 = dojo._loadedModules[_1c0];
        if (_1c1) {
            var _1c2;
            for (var i = _1bf.length; i > 0; i--) {
                var loc = _1bf.slice(0, i).join("_");
                if (_1c1[loc]) {
                    _1c2 = _1c1[loc];
                    break;
                }
            }
            if (!_1c2) {
                _1c2 = _1c1.ROOT;
            }
            if (_1c2) {
                var _1c5 = function() {
                };
                _1c5.prototype = _1c2;
                return new _1c5();
            }
        }
        throw new Error("Bundle not found: " + _1bd + " in " + _1bc + " , locale=" + _1be);
    };
    dojo.i18n.normalizeLocale = function(_1c6) {
        var _1c7 = _1c6 ? _1c6.toLowerCase() : dojo.locale;
        if (_1c7 == "root") {
            _1c7 = "ROOT";
        }
        return _1c7;
    };
    dojo.i18n._requireLocalization = function(_1c8, _1c9, _1ca, _1cb) {
        var _1cc = dojo.i18n.normalizeLocale(_1ca);
        var _1cd = [_1c8,"nls",_1c9].join(".");
        var _1ce = "";
        if (_1cb) {
            var _1cf = _1cb.split(",");
            for (var i = 0; i < _1cf.length; i++) {
                if (_1cc.indexOf(_1cf[i]) == 0) {
                    if (_1cf[i].length > _1ce.length) {
                        _1ce = _1cf[i];
                    }
                }
            }
            if (!_1ce) {
                _1ce = "ROOT";
            }
        }
        var _1d1 = _1cb ? _1ce : _1cc;
        var _1d2 = dojo._loadedModules[_1cd];
        var _1d3 = null;
        if (_1d2) {
            if (djConfig.localizationComplete && _1d2._built) {
                return;
            }
            var _1d4 = _1d1.replace(/-/g, "_");
            var _1d5 = _1cd + "." + _1d4;
            _1d3 = dojo._loadedModules[_1d5];
        }
        if (!_1d3) {
            _1d2 = dojo["provide"](_1cd);
            var syms = dojo._getModuleSymbols(_1c8);
            var _1d7 = syms.concat("nls").join("/");
            var _1d8;
            dojo.i18n._searchLocalePath(_1d1, _1cb, function(loc) {
                var _1da = loc.replace(/-/g, "_");
                var _1db = _1cd + "." + _1da;
                var _1dc = false;
                if (!dojo._loadedModules[_1db]) {
                    dojo["provide"](_1db);
                    var _1dd = [_1d7];
                    if (loc != "ROOT") {
                        _1dd.push(loc);
                    }
                    _1dd.push(_1c9);
                    var _1de = _1dd.join("/") + ".js";
                    _1dc = dojo._loadPath(_1de, null, function(hash) {
                        var _1e0 = function() {
                        };
                        _1e0.prototype = _1d8;
                        _1d2[_1da] = new _1e0();
                        for (var j in hash) {
                            _1d2[_1da][j] = hash[j];
                        }
                    });
                } else {
                    _1dc = true;
                }
                if (_1dc && _1d2[_1da]) {
                    _1d8 = _1d2[_1da];
                } else {
                    _1d2[_1da] = _1d8;
                }
                if (_1cb) {
                    return true;
                }
            });
        }
        if (_1cb && _1cc != _1ce) {
            _1d2[_1cc.replace(/-/g, "_")] = _1d2[_1ce.replace(/-/g, "_")];
        }
    };
    (function() {
        var _1e2 = djConfig.extraLocale;
        if (_1e2) {
            if (!_1e2 instanceof Array) {
                _1e2 = [_1e2];
            }
            var req = dojo.i18n._requireLocalization;
            dojo.i18n._requireLocalization = function(m, b, _1e6, _1e7) {
                req(m, b, _1e6, _1e7);
                if (_1e6) {
                    return;
                }
                for (var i = 0; i < _1e2.length; i++) {
                    req(m, b, _1e2[i], _1e7);
                }
            };
        }
    })();
    dojo.i18n._searchLocalePath = function(_1e9, down, _1eb) {
        _1e9 = dojo.i18n.normalizeLocale(_1e9);
        var _1ec = _1e9.split("-");
        var _1ed = [];
        for (var i = _1ec.length; i > 0; i--) {
            _1ed.push(_1ec.slice(0, i).join("-"));
        }
        _1ed.push(false);
        if (down) {
            _1ed.reverse();
        }
        for (var j = _1ed.length - 1; j >= 0; j--) {
            var loc = _1ed[j] || "ROOT";
            var stop = _1eb(loc);
            if (stop) {
                break;
            }
        }
    };
    dojo.i18n._preloadLocalizations = function(_1f2, _1f3) {
        function preload(_1f4) {
            _1f4 = dojo.i18n.normalizeLocale(_1f4);
            dojo.i18n._searchLocalePath(_1f4, true, function(loc) {
                for (var i = 0; i < _1f3.length; i++) {
                    if (_1f3[i] == loc) {
                        dojo["require"](_1f2 + "_" + loc);
                        return true;
                    }
                }
                return false;
            });
        }

        ;
        preload();
        var _1f7 = djConfig.extraLocale || [];
        for (var i = 0; i < _1f7.length; i++) {
            preload(_1f7[i]);
        }
    };
}
if (!dojo._hasResource["dijit.layout.ContentPane"]) {
    dojo._hasResource["dijit.layout.ContentPane"] = true;
    dojo.provide("dijit.layout.ContentPane");
    dojo.declare("dijit.layout.ContentPane", dijit._Widget, {href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,"class":"dijitContentPane",postCreate:function() {
        this.domNode.title = "";
        if (this.preload) {
            this._loadCheck();
        }
        var _1f9 = dojo.i18n.getLocalization("dijit", "loading", this.lang);
        this.loadingMessage = dojo.string.substitute(this.loadingMessage, _1f9);
        this.errorMessage = dojo.string.substitute(this.errorMessage, _1f9);
        dojo.addClass(this.domNode, this["class"]);
    },startup:function() {
        if (!this._started) {
            this._loadCheck();
            this._started = true;
        }
    },refresh:function() {
        return this._prepareLoad(true);
    },setHref:function(href) {
        this.href = href;
        return this._prepareLoad();
    },setContent:function(data) {
        if (!this._isDownloaded) {
            this.href = "";
            this._onUnloadHandler();
        }
        this._setContent(data || "");
        this._isDownloaded = false;
        if (this.parseOnLoad) {
            this._createSubWidgets();
        }
        this._onLoadHandler();
    },cancel:function() {
        if (this._xhrDfd && (this._xhrDfd.fired == -1)) {
            this._xhrDfd.cancel();
        }
        delete this._xhrDfd;
    },destroy:function() {
        if (this._beingDestroyed) {
            return;
        }
        this._onUnloadHandler();
        this._beingDestroyed = true;
        dijit.layout.ContentPane.superclass.destroy.call(this);
    },resize:function(size) {
        dojo.marginBox(this.domNode, size);
    },_prepareLoad:function(_1fd) {
        this.cancel();
        this.isLoaded = false;
        this._loadCheck(_1fd);
    },_loadCheck:function(_1fe) {
        var _1ff = ((this.open !== false) && (this.domNode.style.display != "none"));
        if (this.href && (_1fe || (this.preload && !this._xhrDfd) || (this.refreshOnShow && _1ff && !this._xhrDfd) || (!this.isLoaded && _1ff && !this._xhrDfd))) {
            this._downloadExternalContent();
        }
    },_downloadExternalContent:function() {
        this._onUnloadHandler();
        this._setContent(this.onDownloadStart.call(this));
        var self = this;
        var _201 = {preventCache:(this.preventCache || this.refreshOnShow),url:this.href,handleAs:"text"};
        if (dojo.isObject(this.ioArgs)) {
            dojo.mixin(_201, this.ioArgs);
        }
        var hand = this._xhrDfd = (this.ioMethod || dojo.xhrGet)(_201);
        hand.addCallback(function(html) {
            try {
                self.onDownloadEnd.call(self);
                self._isDownloaded = true;
                self.setContent.call(self, html);
            } catch(err) {
                self._onError.call(self, "Content", err);
            }
            delete self._xhrDfd;
            return html;
        });
        hand.addErrback(function(err) {
            if (!hand.cancelled) {
                self._onError.call(self, "Download", err);
            }
            delete self._xhrDfd;
            return err;
        });
    },_onLoadHandler:function() {
        this.isLoaded = true;
        try {
            this.onLoad.call(this);
        } catch(e) {
            console.error("Error " + this.widgetId + " running custom onLoad code");
        }
    },_onUnloadHandler:function() {
        this.isLoaded = false;
        this.cancel();
        try {
            this.onUnload.call(this);
        } catch(e) {
            console.error("Error " + this.widgetId + " running custom onUnload code");
        }
    },_setContent:function(cont) {
        this.destroyDescendants();
        try {
            var node = this.containerNode || this.domNode;
            while (node.firstChild) {
                dojo._destroyElement(node.firstChild);
            }
            if (typeof cont == "string") {
                if (this.extractContent) {
                    match = cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
                    if (match) {
                        cont = match[1];
                    }
                }
                node.innerHTML = cont;
            } else {
                if (cont.nodeType) {
                    node.appendChild(cont);
                } else {
                    dojo.forEach(cont, function(n) {
                        node.appendChild(n.cloneNode(true));
                    });
                }
            }
        } catch(e) {
            var _208 = this.onContentError(e);
            try {
                node.innerHTML = _208;
            } catch(e) {
                console.error("Fatal " + this.id + " could not change content due to " + e.message, e);
            }
        }
    },_onError:function(type, err, _20b) {
        var _20c = this["on" + type + "Error"].call(this, err);
        if (_20b) {
            console.error(_20b, err);
        } else {
            if (_20c) {
                this._setContent.call(this, _20c);
            }
        }
    },_createSubWidgets:function() {
        var _20d = this.containerNode || this.domNode;
        try {
            dojo.parser.parse(_20d, true);
        } catch(e) {
            this._onError("Content", e, "Couldn't create widgets in " + this.id + (this.href ? " from " + this.href : ""));
        }
    },onLoad:function(e) {
    },onUnload:function(e) {
    },onDownloadStart:function() {
        return this.loadingMessage;
    },onContentError:function(_210) {
    },onDownloadError:function(_211) {
        return this.errorMessage;
    },onDownloadEnd:function() {
    }});
}
if (!dojo._hasResource["dijit.form.Form"]) {
    dojo._hasResource["dijit.form.Form"] = true;
    dojo.provide("dijit.form.Form");
    dojo.declare("dijit.form._FormMixin", null, {execute:function(_212) {
    },onCancel:function() {
    },onExecute:function() {
    },templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onsubmit:_onSubmit' enctype='multipart/form-data'></form>",_onSubmit:function(e) {
        dojo.stopEvent(e);
        this.onExecute();
        this.execute(this.getValues());
    },submit:function() {
        this.containerNode.submit();
    },setValues:function(obj) {
        var map = {};
        dojo.forEach(this.getDescendants(), function(_216) {
            if (!_216.name) {
                return;
            }
            var _217 = map[_216.name] || (map[_216.name] = []);
            _217.push(_216);
        });
        for (var name in map) {
            var _219 = map[name],_21a = dojo.getObject(name, false, obj);
            if (!dojo.isArray(_21a)) {
                _21a = [_21a];
            }
            if (_219[0].setChecked) {
                dojo.forEach(_219, function(w, i) {
                    w.setChecked(dojo.indexOf(_21a, w.value) != -1);
                });
            } else {
                dojo.forEach(_219, function(w, i) {
                    w.setValue(_21a[i]);
                });
            }
        }
    },getValues:function() {
        var obj = {};
        dojo.forEach(this.getDescendants(), function(_220) {
            var _221 = _220.getValue ? _220.getValue() : _220.value;
            var name = _220.name;
            if (!name) {
                return;
            }
            if (_220.setChecked) {
                if (/Radio/.test(_220.declaredClass)) {
                    if (_220.checked) {
                        dojo.setObject(name, _221, obj);
                    }
                } else {
                    var ary = dojo.getObject(name, false, obj);
                    if (!ary) {
                        ary = [];
                        dojo.setObject(name, ary, obj);
                    }
                    if (_220.checked) {
                        ary.push(_221);
                    }
                }
            } else {
                dojo.setObject(name, _221, obj);
            }
        });
        return obj;
    },isValid:function() {
        return dojo.every(this.getDescendants(), function(_224) {
            return !_224.isValid || _224.isValid();
        });
    }});
    dojo.declare("dijit.form.Form", [dijit._Widget,dijit._Templated,dijit.form._FormMixin], null);
}
if (!dojo._hasResource["dijit.Dialog"]) {
    dojo._hasResource["dijit.Dialog"] = true;
    dojo.provide("dijit.Dialog");
    dojo.declare("dijit.DialogUnderlay", [dijit._Widget,dijit._Templated], {templateString:"<div class=dijitDialogUnderlayWrapper id='${id}_underlay'><div class=dijitDialogUnderlay dojoAttachPoint='node'></div></div>",postCreate:function() {
        dojo.body().appendChild(this.domNode);
        this.bgIframe = new dijit.BackgroundIframe(this.domNode);
    },layout:function() {
        var _225 = dijit.getViewport();
        var is = this.node.style,os = this.domNode.style;
        os.top = _225.t + "px";
        os.left = _225.l + "px";
        is.width = _225.w + "px";
        is.height = _225.h + "px";
        var _228 = dijit.getViewport();
        if (_225.w != _228.w) {
            is.width = _228.w + "px";
        }
        if (_225.h != _228.h) {
            is.height = _228.h + "px";
        }
    },show:function() {
        this.domNode.style.display = "block";
        this.layout();
        if (this.bgIframe.iframe) {
            this.bgIframe.iframe.style.display = "block";
        }
        this._resizeHandler = this.connect(window, "onresize", "layout");
    },hide:function() {
        this.domNode.style.display = "none";
        this.domNode.style.width = this.domNode.style.height = "1px";
        if (this.bgIframe.iframe) {
            this.bgIframe.iframe.style.display = "none";
        }
        this.disconnect(this._resizeHandler);
    },uninitialize:function() {
        if (this.bgIframe) {
            this.bgIframe.destroy();
        }
    }});
    dojo.declare("dijit.Dialog", [dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin], {templateString:null,templateString:"<div class=\"dijitDialog\">\n\t\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\" tabindex=\"0\" waiRole=\"dialog\" title=\"${title}\">\n\t\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\">${title}</span>\n\t\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: hide\">\n\t\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\n\t\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n\t<span dojoAttachPoint=\"tabEnd\" dojoAttachEvent=\"onfocus:_cycleFocus\" tabindex=\"0\"></span>\n</div>\n",title:"",duration:400,_lastFocusItem:null,postCreate:function() {
        dojo.body().appendChild(this.domNode);
        dijit.Dialog.superclass.postCreate.apply(this, arguments);
        this.domNode.style.display = "none";
        this.connect(this, "onExecute", "hide");
        this.connect(this, "onCancel", "hide");
    },onLoad:function() {
        this._position();
        dijit.Dialog.superclass.onLoad.call(this);
    },_setup:function() {
        this._modalconnects = [];
        if (this.titleBar) {
            this._moveable = new dojo.dnd.Moveable(this.domNode, {handle:this.titleBar});
        }
        this._underlay = new dijit.DialogUnderlay();
        var node = this.domNode;
        this._fadeIn = dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay, "show")})]);
        this._fadeOut = dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function() {
            node.style.display = "none";
        }}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay, "hide")})]);
    },uninitialize:function() {
        if (this._underlay) {
            this._underlay.destroy();
        }
    },_position:function() {
        var _22a = dijit.getViewport();
        var mb = dojo.marginBox(this.domNode);
        var _22c = this.domNode.style;
        _22c.left = (_22a.l + (_22a.w - mb.w) / 2) + "px";
        _22c.top = (_22a.t + (_22a.h - mb.h) / 2) + "px";
    },_findLastFocus:function(evt) {
        this._lastFocused = evt.target;
    },_cycleFocus:function(evt) {
        if (!this._lastFocusItem) {
            this._lastFocusItem = this._lastFocused;
        }
        this.titleBar.focus();
    },_onKey:function(evt) {
        if (evt.keyCode) {
            var node = evt.target;
            if (node == this.titleBar && evt.shiftKey && evt.keyCode == dojo.keys.TAB) {
                if (this._lastFocusItem) {
                    this._lastFocusItem.focus();
                }
                dojo.stopEvent(evt);
            } else {
                while (node) {
                    if (node == this.domNode) {
                        if (evt.keyCode == dojo.keys.ESCAPE) {
                            this.hide();
                        } else {
                            return;
                        }
                    }
                    node = node.parentNode;
                }
                if (evt.keyCode != dojo.keys.TAB) {
                    dojo.stopEvent(evt);
                } else {
                    if (!dojo.isOpera) {
                        try {
                            this.titleBar.focus();
                        } catch(e) {
                        }
                    }
                }
            }
        }
    },show:function() {
        if (!this._alreadyInitialized) {
            this._setup();
            this._alreadyInitialized = true;
        }
        if (this._fadeOut.status() == "playing") {
            this._fadeOut.stop();
        }
        this._modalconnects.push(dojo.connect(window, "onscroll", this, "layout"));
        this._modalconnects.push(dojo.connect(document.documentElement, "onkeypress", this, "_onKey"));
        var ev = typeof (document.ondeactivate) == "object" ? "ondeactivate" : "onblur";
        this._modalconnects.push(dojo.connect(this.containerNode, ev, this, "_findLastFocus"));
        dojo.style(this.domNode, "opacity", 0);
        this.domNode.style.display = "block";
        this._loadCheck();
        this._position();
        this._fadeIn.play();
        this._savedFocus = dijit.getFocus(this);
        setTimeout(dojo.hitch(this, function() {
            dijit.focus(this.titleBar);
        }), 50);
    },hide:function() {
        if (!this._alreadyInitialized) {
            return;
        }
        if (this._fadeIn.status() == "playing") {
            this._fadeIn.stop();
        }
        this._fadeOut.play();
        if (this._scrollConnected) {
            this._scrollConnected = false;
        }
        dojo.forEach(this._modalconnects, dojo.disconnect);
        this._modalconnects = [];
        dijit.focus(this._savedFocus);
    },layout:function() {
        if (this.domNode.style.display == "block") {
            this._underlay.layout();
            this._position();
        }
    }});
    dojo.declare("dijit.TooltipDialog", [dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin], {title:"",_lastFocusItem:null,templateString:null,templateString:"<div id=\"${id}\" class=\"dijitTooltipDialog\" >\n\t<div class=\"dijitTooltipContainer\">\n\t\t<div  class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"0\" waiRole=\"dialog\"></div>\n\t</div>\n\t<span dojoAttachPoint=\"tabEnd\" tabindex=\"0\" dojoAttachEvent=\"focus:_cycleFocus\"></span>\n\t<div class=\"dijitTooltipConnector\" ></div>\n</div>\n",postCreate:function() {
        dijit.TooltipDialog.superclass.postCreate.apply(this, arguments);
        this.connect(this.containerNode, "onkeypress", "_onKey");
        var ev = typeof (document.ondeactivate) == "object" ? "ondeactivate" : "onblur";
        this.connect(this.containerNode, ev, "_findLastFocus");
        this.containerNode.title = this.title;
    },orient:function(_233) {
        this.domNode.className = "dijitTooltipDialog " + " dijitTooltipAB" + (_233.charAt(1) == "L" ? "Left" : "Right") + " dijitTooltip" + (_233.charAt(0) == "T" ? "Below" : "Above");
    },onOpen:function(pos) {
        this.orient(pos.corner);
        this._loadCheck();
        this.containerNode.focus();
    },_onKey:function(evt) {
        if (evt.keyCode == dojo.keys.ESCAPE) {
            this.onCancel();
        } else {
            if (evt.target == this.containerNode && evt.shiftKey && evt.keyCode == dojo.keys.TAB) {
                if (this._lastFocusItem) {
                    this._lastFocusItem.focus();
                }
                dojo.stopEvent(evt);
            }
        }
    },_findLastFocus:function(evt) {
        this._lastFocused = evt.target;
    },_cycleFocus:function(evt) {
        if (!this._lastFocusItem) {
            this._lastFocusItem = this._lastFocused;
        }
        this.containerNode.focus();
    }});
}
if (!dojo._hasResource["dojo.AdapterRegistry"]) {
    dojo._hasResource["dojo.AdapterRegistry"] = true;
    dojo.provide("dojo.AdapterRegistry");
    dojo.AdapterRegistry = function(_238) {
        this.pairs = [];
        this.returnWrappers = _238 || false;
    };
    dojo.extend(dojo.AdapterRegistry, {register:function(name, _23a, wrap, _23c, _23d) {
        this.pairs[((_23d) ? "unshift" : "push")]([name,_23a,wrap,_23c]);
    },match:function() {
        for (var i = 0; i < this.pairs.length; i++) {
            var pair = this.pairs[i];
            if (pair[1].apply(this, arguments)) {
                if ((pair[3]) || (this.returnWrappers)) {
                    return pair[2];
                } else {
                    return pair[2].apply(this, arguments);
                }
            }
        }
        throw new Error("No match found");
    },unregister:function(name) {
        for (var i = 0; i < this.pairs.length; i++) {
            var pair = this.pairs[i];
            if (pair[0] == name) {
                this.pairs.splice(i, 1);
                return true;
            }
        }
        return false;
    }});
}
if (!dojo._hasResource["dojo.io.script"]) {
    dojo._hasResource["dojo.io.script"] = true;
    dojo.provide("dojo.io.script");
    dojo.io.script = {get:function(args) {
        var dfd = this._makeScriptDeferred(args);
        var _245 = dfd.ioArgs;
        dojo._ioAddQueryToUrl(_245);
        this.attach(_245.id, _245.url);
        dojo._ioWatch(dfd, this._validCheck, this._ioCheck, this._resHandle);
        return dfd;
    },attach:function(id, url) {
        var _248 = dojo.doc.createElement("script");
        _248.type = "text/javascript";
        _248.src = url;
        _248.id = id;
        dojo.doc.getElementsByTagName("head")[0].appendChild(_248);
    },remove:function(id) {
        dojo._destroyElement(dojo.byId(id));
        if (this["jsonp_" + id]) {
            delete this["jsonp_" + id];
        }
    },_makeScriptDeferred:function(args) {
        var dfd = dojo._ioSetArgs(args, this._deferredCancel, this._deferredOk, this._deferredError);
        var _24c = dfd.ioArgs;
        _24c.id = "dojoIoScript" + (this._counter++);
        _24c.canDelete = false;
        if (args.callbackParamName) {
            _24c.query = _24c.query || "";
            if (_24c.query.length > 0) {
                _24c.query += "&";
            }
            _24c.query += args.callbackParamName + "=dojo.io.script.jsonp_" + _24c.id + "._jsonpCallback";
            _24c.canDelete = true;
            dfd._jsonpCallback = this._jsonpCallback;
            this["jsonp_" + _24c.id] = dfd;
        }
        return dfd;
    },_deferredCancel:function(dfd) {
        dfd.canceled = true;
        if (dfd.ioArgs.canDelete) {
            dojo.io.script._deadScripts.push(dfd.ioArgs.id);
        }
    },_deferredOk:function(dfd) {
        if (dfd.ioArgs.canDelete) {
            dojo.io.script._deadScripts.push(dfd.ioArgs.id);
        }
        if (dfd.ioArgs.json) {
            return dfd.ioArgs.json;
        } else {
            return dfd.ioArgs;
        }
    },_deferredError:function(_24f, dfd) {
        if (dfd.ioArgs.canDelete) {
            if (_24f.dojoType == "timeout") {
                dojo.io.script.remove(dfd.ioArgs.id);
            } else {
                dojo.io.script._deadScripts.push(dfd.ioArgs.id);
            }
        }
        console.debug("dojo.io.script error", _24f);
        return _24f;
    },_deadScripts:[],_counter:1,_validCheck:function(dfd) {
        var _252 = dojo.io.script;
        var _253 = _252._deadScripts;
        if (_253 && _253.length > 0) {
            for (var i = 0; i < _253.length; i++) {
                _252.remove(_253[i]);
            }
            dojo.io.script._deadScripts = [];
        }
        return true;
    },_ioCheck:function(dfd) {
        if (dfd.ioArgs.json) {
            return true;
        }
        var _256 = dfd.ioArgs.args.checkString;
        if (_256 && eval("typeof(" + _256 + ") != 'undefined'")) {
            return true;
        }
        return false;
    },_resHandle:function(dfd) {
        if (dojo.io.script._ioCheck(dfd)) {
            dfd.callback(dfd);
        } else {
            dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));
        }
    },_jsonpCallback:function(json) {
        this.ioArgs.json = json;
    }};
}
if (!dojo._hasResource["dojox._cometd.cometd"]) {
    dojo._hasResource["dojox._cometd.cometd"] = true;
    dojo.provide("dojox._cometd.cometd");
    dojox.cometd = new function() {
        this.initialized = false;
        this.connected = false;
        this.connectionTypes = new dojo.AdapterRegistry(true);
        this.version = 0.1;
        this.minimumVersion = 0.1;
        this.clientId = null;
        this._isXD = false;
        this.handshakeReturn = null;
        this.currentTransport = null;
        this.url = null;
        this.lastMessage = null;
        this.globalTopicChannels = {};
        this.backlog = [];
        this.handleAs = "json-comment-optional";
        this.advice;
        this._subscriptions = [];
        this.tunnelInit = function(_259, _25a) {
        };
        this.tunnelCollapse = function() {
            console.debug("tunnel collapsed!");
        };
        this.init = function(_25b, root, _25d) {
            if (dojo.isString(_25b)) {
                var _25e = root;
                root = _25b;
                _25b = _25e;
            }
            _25b = _25b || {};
            _25b.version = this.version;
            _25b.minimumVersion = this.minimumVersion;
            _25b.channel = "/meta/handshake";
            _25b.ext = {"json-comment-filtered":true};
            this.url = root || djConfig["cometdRoot"];
            if (!this.url) {
                console.debug("no cometd root specified in djConfig and no root passed");
                return;
            }
            var _25f = {url:this.url,handleAs:this.handleAs,content:{"message":dojo.toJson([_25b])},callbackParamName:"jsonp",load:dojo.hitch(this, "finishInit"),error:function(e) {
                console.debug("handshake error!:", e);
            }};
            var _261 = "^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
            var r = ("" + window.location).match(new RegExp(_261));
            if (r[4]) {
                var tmp = r[4].split(":");
                var _264 = tmp[0];
                var _265 = tmp[1] || "80";
                r = this.url.match(new RegExp(_261));
                if (r[4]) {
                    tmp = r[4].split(":");
                    var _266 = tmp[0];
                    var _267 = tmp[1] || "80";
                    this._isXD = ((_266 != _264) || (_267 != _265));
                }
            }
            if (_25d) {
                dojo.mixin(_25f, _25d);
            }
            if (this._isXD) {
                return dojo.io.script.get(_25f);
            } else {
                return dojo.xhrPost(_25f);
            }
        };
        this.finishInit = function(data) {
            data = data[0];
            this.handshakeReturn = data;
            if (data["advice"]) {
                this.advice = data.advice;
            }
            if ((!data.successful) && (!data.authSuccessful)) {
                console.debug("cometd init failed");
                return;
            }
            if (data.version < this.minimumVersion) {
                console.debug("cometd protocol version mismatch. We wanted", this.minimumVersion, "but got", data.version);
                return;
            }
            this.currentTransport = this.connectionTypes.match(data.supportedConnectionTypes, data.version, this._isXD);
            this.currentTransport.version = data.version;
            this.clientId = data.clientId;
            this.tunnelInit = dojo.hitch(this.currentTransport, "tunnelInit");
            this.tunnelCollapse = dojo.hitch(this.currentTransport, "tunnelCollapse");
            this.currentTransport.startup(data);
            while (this.backlog.length != 0) {
                var cur = this.backlog.shift();
                var fn = cur.shift();
                this[fn].apply(this, cur);
            }
            dojo.addOnUnload(dojox.cometd, "disconnect");
        };
        this._getRandStr = function() {
            return Math.random().toString().substring(2, 10);
        };
        this.deliver = function(_26b) {
            dojo.forEach(_26b, this._deliver, this);
            return _26b;
        };
        this._deliver = function(_26c) {
            if (!this.currentTransport) {
                this.backlog.push(["deliver",_26c]);
                return;
            }
            if (!_26c["channel"]) {
                if (_26c["success"] !== true) {
                    console.debug("cometd error: no channel for message!", _26c);
                    return;
                }
            }
            this.lastMessage = _26c;
            if (_26c.advice) {
                this.advice = _26c.advice;
            }
            if ((_26c["channel"]) && (_26c.channel.length > 5) && (_26c.channel.substr(0, 5) == "/meta")) {
                switch (_26c.channel) {case "/meta/subscribe":if (!_26c.successful) {
                    console.debug("cometd subscription error for channel", _26c.channel, ":", _26c.error);
                    return;
                }dojox.cometd.subscribed(_26c.subscription, _26c);break;case "/meta/unsubscribe":if (!_26c.successful) {
                    console.debug("cometd unsubscription error for channel", _26c.channel, ":", _26c.error);
                    return;
                }this.unsubscribed(_26c.subscription, _26c);break;}
            }
            this.currentTransport.deliver(_26c);
            if (_26c.data) {
                var _26d = (this.globalTopicChannels[_26c.channel]) ? _26c.channel : "/cometd" + _26c.channel;
                dojo.publish(_26d, [_26c]);
            }
        };
        this.disconnect = function() {
            dojo.forEach(this._subscriptions, dojo.unsubscribe);
            this._subscriptions = [];
            this.backlog = [];
            if (!this.currentTransport) {
                console.debug("no current transport to disconnect from");
                return;
            }
            this.currentTransport.disconnect();
        };
        this.publish = function(_26e, data, _270) {
            if (!this.currentTransport) {
                this.backlog.push(["publish",_26e,data,_270]);
                return;
            }
            var _271 = {data:data,channel:_26e};
            if (_270) {
                dojo.mixin(_271, _270);
            }
            return this.currentTransport.sendMessage(_271);
        };
        this.subscribe = function(_272, _273, _274, _275) {
            if (!this.currentTransport) {
                this.backlog.push(["subscribe",_272,_273,_274,_275]);
                return;
            }
            if ((_273 !== true) || (_273 !== false)) {
                var ofn = _275;
                _275 = _274;
                _274 = _273;
                _273 = ofn;
            }
            if (_274) {
                var _277 = (_273) ? _272 : "/cometd" + _272;
                if (_273) {
                    this.globalTopicChannels[_272] = true;
                }
                this._subscriptions.push(dojo.subscribe(_277, _274, _275));
            }
            return this.currentTransport.sendMessage({channel:"/meta/subscribe",subscription:_272});
        };
        this.subscribed = function(_278, _279) {
        };
        this.unsubscribe = function(_27a, _27b, _27c, _27d) {
            if (!this.currentTransport) {
                this.backlog.push(["unsubscribe",_27a,_27b,_27c,_27d]);
                return;
            }
            if (_27c) {
                var _27e = (_27b) ? _27a : "/cometd" + _27a;
                dojo.unsubscribe(_27e, _27c, _27d);
            }
            return this.currentTransport.sendMessage({channel:"/meta/unsubscribe",subscription:_27a});
        };
        this.unsubscribed = function(_27f, _280) {
        };
    };
    dojox.cometd.longPollTransport = new function() {
        this.lastTimestamp = null;
        this.lastId = null;
        this.backlog = [];
        this.check = function(_281, _282, _283) {
            return ((!_283) && (dojo.indexOf(_281, "long-polling") >= 0));
        };
        this.tunnelInit = function() {
            if (dojox.cometd.connected) {
                return;
            }
            this.openTunnelWith({message:dojo.toJson([
                {
                    channel:"/meta/connect",
                    clientId:dojox.cometd.clientId,
                    connectionType:"long-polling"
                }
            ])});
        };
        this.tunnelCollapse = function() {
            if (!dojox.cometd.connected) {
                dojox.cometd.connected = false;
                if (dojox.cometd["advice"]) {
                    if (dojox.cometd.advice["reconnect"] == "none") {
                        return;
                    }
                    if ((dojox.cometd.advice["interval"]) && (dojox.cometd.advice.interval > 0)) {
                        setTimeout(function() {
                            dojox.cometd.currentTransport._reconnect();
                        }, dojox.cometd.advice.interval);
                    } else {
                        this._reconnect();
                    }
                } else {
                    this._reconnect();
                }
            }
        };
        this._reconnect = function() {
            if ((dojox.cometd["advice"]) && (dojox.cometd.advice["reconnect"] == "handshake")) {
                dojox.cometd.init(null, dojox.cometd.url);
            } else {
                if (dojox.cometd.initialized) {
                    this.openTunnelWith({message:dojo.toJson([
                        {
                            channel:"/meta/reconnect",
                            connectionType:"long-polling",
                            clientId:dojox.cometd.clientId,
                            timestamp:this.lastTimestamp,
                            id:this.lastId
                        }
                    ])});
                }
            }
        };
        this.deliver = function(_284) {
            if (_284["timestamp"]) {
                this.lastTimestamp = _284.timestamp;
            }
            if (_284["id"]) {
                this.lastId = _284.id;
            }
            if ((_284.channel.length > 5) && (_284.channel.substr(0, 5) == "/meta")) {
                switch (_284.channel) {case "/meta/connect":if (!_284.successful) {
                    console.debug("cometd connection error:", _284.error);
                    return;
                }dojox.cometd.initialized = true;this.processBacklog();break;case "/meta/reconnect":if (!_284.successful) {
                    console.debug("cometd reconnection error:", _284.error);
                    return;
                }break;case "/meta/subscribe":if (!_284.successful) {
                    console.debug("cometd subscription error for channel", _284.channel, ":", _284.error);
                    return;
                }dojox.cometd.subscribed(_284.channel);break;}
            }
        };
        this.openTunnelWith = function(_285, url) {
            var d = dojo.xhrPost({url:(url || dojox.cometd.url),content:_285,handleAs:dojox.cometd.handleAs,load:dojo.hitch(this, function(data) {
                dojox.cometd.connected = false;
                dojox.cometd.deliver(data);
                this.tunnelCollapse();
            }),error:function(err) {
                console.debug("tunnel opening failed:", err);
                dojo.cometd.connected = false;
            }});
            dojox.cometd.connected = true;
        };
        this.processBacklog = function() {
            while (this.backlog.length > 0) {
                this.sendMessage(this.backlog.shift(), true);
            }
        };
        this.sendMessage = function(_28a, _28b) {
            if ((_28b) || (dojox.cometd.initialized)) {
                _28a.clientId = dojox.cometd.clientId;
                return dojo.xhrPost({url:dojox.cometd.url || djConfig["cometdRoot"],handleAs:dojox.cometd.handleAs,load:dojo.hitch(dojox.cometd, "deliver"),content:{message:dojo.toJson([_28a])}});
            } else {
                this.backlog.push(_28a);
            }
        };
        this.startup = function(_28c) {
            if (dojox.cometd.initialized) {
                return;
            }
            this.tunnelInit();
        };
        this.disconnect = function() {
            if (!dojox.cometd.initialized) {
                return;
            }
            dojo.xhrPost({url:dojox.cometd.url || djConfig["cometdRoot"],handleAs:dojox.cometd.handleAs,content:{message:dojo.toJson([
                {
                    channel:"/meta/disconnect",
                    clientId:dojox.cometd.clientId
                }
            ])}});
            dojox.cometd.initialized = false;
        };
    };
    dojox.cometd.callbackPollTransport = new function() {
        this.lastTimestamp = null;
        this.lastId = null;
        this.backlog = [];
        this.check = function(_28d, _28e, _28f) {
            return (dojo.indexOf(_28d, "callback-polling") >= 0);
        };
        this.tunnelInit = function() {
            if (dojox.cometd.connected) {
                return;
            }
            this.openTunnelWith({message:dojo.toJson([
                {
                    channel:"/meta/connect",
                    clientId:dojox.cometd.clientId,
                    connectionType:"callback-polling"
                }
            ])});
        };
        this.tunnelCollapse = function() {
            if (!dojox.cometd.connected) {
                this.openTunnelWith({message:dojo.toJson([
                    {
                        channel:"/meta/reconnect",
                        connectionType:"long-polling",
                        clientId:dojox.cometd.clientId,
                        timestamp:this.lastTimestamp,
                        id:this.lastId
                    }
                ])});
            }
        };
        this.deliver = dojox.cometd.longPollTransport.deliver;
        this.openTunnelWith = function(_290, url) {
            dojo.io.script.get({load:dojo.hitch(this, function(data) {
                dojox.cometd.connected = false;
                dojox.cometd.deliver(data);
                this.tunnelCollapse();
            }),error:function() {
                dojox.cometd.connected = false;
                console.debug("tunnel opening failed");
            },url:(url || dojox.cometd.url),content:_290,handleAs:dojox.cometd.handleAs,callbackParamName:"jsonp"});
            dojox.cometd.connected = true;
        };
        this.processBacklog = function() {
            while (this.backlog.length > 0) {
                this.sendMessage(this.backlog.shift(), true);
            }
        };
        this.sendMessage = function(_293, _294) {
            if ((_294) || (dojox.cometd.initialized)) {
                _293.clientId = dojox.cometd.clientId;
                var _295 = {url:dojox.cometd.url || djConfig["cometdRoot"],handleAs:dojox.cometd.handleAs,load:dojo.hitch(dojox.cometd, "deliver"),callbackParamName:"jsonp",content:{message:dojo.toJson([_293])}};
                return dojo.io.script.get(_295);
            } else {
                this.backlog.push(_293);
            }
        };
        this.startup = function(_296) {
            if (dojox.cometd.initialized) {
                return;
            }
            this.tunnelInit();
        };
        this.disconnect = dojox.cometd.longPollTransport.disconnect;
    };
    dojox.cometd.connectionTypes.register("long-polling", dojox.cometd.longPollTransport.check, dojox.cometd.longPollTransport);
    dojox.cometd.connectionTypes.register("callback-polling", dojox.cometd.callbackPollTransport.check, dojox.cometd.callbackPollTransport);
}
if (!dojo._hasResource["dojox.cometd"]) {
    dojo._hasResource["dojox.cometd"] = true;
    dojo.provide("dojox.cometd");
}

dojo.provide("dojo.nls.jiva_ROOT");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.ROOT");dijit.nls.loading.ROOT={"loadingState": "Loading...", "errorState": "Sorry, an error occurred"};
dojo.provide("dojo.nls.jiva_ru");dojo.provide("dijit.nls.loading.ru");dijit.nls.loading.ru={"loadingState": "Загрузка...", "errorState": "Все в порядке, ничего не работает."};
dojo.provide("dojo.nls.jiva_en-us");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.en_us");dijit.nls.loading.en_us={"loadingState": "Loading...", "errorState": "Sorry, an error occurred"};
dojo.provide("dojo.nls.jiva_en");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.en");dijit.nls.loading.en={"loadingState": "Loading...", "errorState": "Sorry, an error occurred"};
