/*********************
* jwplayercontrols, version 2.0
* Accessible controls for the JW Player
**********************
*    This work is Copyright (c) 2008-2011, The Ohio State University Web Accessibility Center.
*    Released under the Academic Free License version 3.0:
*    http://www.opensource.org/licenses/afl-3.0.php
*    This license allows for free distribution and use so long as attribution is maintained.
*
*    jwplayercontrols was developed by the Ohio State University 
*    Web Accessbility Center (wac.osu.edu) and Webhipster LTD.
*    The current version was funded in part through a grant from 
*    Ohio Rehabilitation Services Commission in partnership with 
*    the Ohio Board of Regents.
*
*    jwplayercontrols uses Dojo Toolkit, LongTail JW Player, and FamFam Silk icons. 
*    License details for these can be found in the readme.txt available in the
*    download for jwplayercontrols, available at http://go.osu.edu/jwpc
*
*    Please note: The version of the JW Player we are using is released under a
*    Creative Commons Attribution-NonCommercial-ShareAlike license which forbids
*    commercial use. If you intend to make money through use of the player, you must
*    use a commercially licensed version of the JW Player.
**********************/

if (!dojo._hasResource["dojo.window"]) {
    dojo._hasResource["dojo.window"] = true; dojo.provide("dojo.window");
    dojo.window.getBox = function () {
        var _1 = (dojo.doc.compatMode == "BackCompat") ? dojo.body() : dojo.doc.documentElement;
        var _2 = dojo._docScroll();
        return { w: _1.clientWidth, h: _1.clientHeight, l: _2.x, t: _2.y };
    };
    dojo.window.get = function (_3) {
        if (dojo.isIE && window !== document.parentWindow) {
            _3.parentWindow.execScript("document._parentWindow = window;", "Javascript");
            var _4 = _3._parentWindow;
            _3._parentWindow = null;
            return _4;
        }
        return _3.parentWindow || _3.defaultView;
    };
    dojo.window.scrollIntoView = function (_5, _6) {
        try {
            _5 = dojo.byId(_5);
            var _7 = _5.ownerDocument || dojo.doc, _8 = _7.body || dojo.body(), _9 = _7.documentElement || _8.parentNode, _a = dojo.isIE, _b = dojo.isWebKit;
            if ((!(dojo.isMoz || _a || _b || dojo.isOpera) || _5 == _8 || _5 == _9) && (typeof _5.scrollIntoView != "undefined")) {
                _5.scrollIntoView(false);
                return;
            }
            var _c = _7.compatMode == "BackCompat", _d = _c ? _8 : _9, _e = _b ? _8 : _d, _f = _d.clientWidth, _10 = _d.clientHeight, rtl = !dojo._isBodyLtr(), _11 = _6 || dojo.position(_5), el = _5.parentNode, _12 = function (el) {
                return ((_a <= 6 || (_a && _c)) ? false : (dojo.style(el, "position").toLowerCase() == "fixed"));
            };
            if (_12(_5)) {
                return;
            }
            while (el) {
                if (el == _8) {
                    el = _e;
                } 
var _13 = dojo.position(el), _14 = _12(el); if (el == _e) { _13.w = _f; _13.h = _10; if (_e == _9 && _a && rtl) { _13.x += _e.offsetWidth - _13.w; } if (_13.x < 0 || !_a) { _13.x = 0; } if (_13.y < 0 || !_a) { _13.y = 0; } } else { var pb = dojo._getPadBorderExtents(el); _13.w -= pb.w; _13.h -= pb.h; _13.x += pb.l; _13.y += pb.t; } if (el != _e) { var _15 = el.clientWidth, _16 = _13.w - _15; if (_15 > 0 && _16 > 0) { _13.w = _15; if (_a && rtl) { _13.x += _16; } } _15 = el.clientHeight; _16 = _13.h - _15; if (_15 > 0 && _16 > 0) { _13.h = _15; } } if (_14) { if (_13.y < 0) { _13.h += _13.y; _13.y = 0; } if (_13.x < 0) { _13.w += _13.x; _13.x = 0; } if (_13.y + _13.h > _10) { _13.h = _10 - _13.y; } if (_13.x + _13.w > _f) { _13.w = _f - _13.x; } } var l = _11.x - _13.x, t = _11.y - Math.max(_13.y, 0), r = l + _11.w - _13.w, bot = t + _11.h - _13.h; if (r * l > 0) { var s = Math[l < 0 ? "max" : "min"](l, r); _11.x += el.scrollLeft; el.scrollLeft += (_a >= 8 && !_c && rtl) ? -s : s; _11.x -= el.scrollLeft; } if (bot * t > 0) { _11.y += el.scrollTop; el.scrollTop += Math[t < 0 ? "max" : "min"](t, bot); _11.y -= el.scrollTop; } el = (el != _e) && !_14 && el.parentNode; } } catch (error) { console.error("scrollIntoView: " + error); _5.scrollIntoView(false); } }; } 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 = {}; this.length = 0; }, add: function (_17) { if (this._hash[_17.id]) { throw new Error("Tried to register widget with id==" + _17.id + " but that id is already registered"); } this._hash[_17.id] = _17; this.length++; }, remove: function (id) { if (this._hash[id]) { delete this._hash[id]; this.length--; } }, forEach: function (_18, _19) { _19 = _19 || dojo.global; var i = 0, id; for (id in this._hash) { _18.call(_19, this._hash[id], i++, this._hash); } return this; }, filter: function (_1a, _1b) { _1b = _1b || dojo.global; var res = new dijit.WidgetSet(), i = 0, id; for (id in this._hash) { var w = this._hash[id]; if (_1a.call(_1b, w, i++, this._hash)) { res.add(w); } } return res; }, byId: function (id) { return this._hash[id]; }, byClass: function (cls) { var res = new dijit.WidgetSet(), id, _1c; for (id in this._hash) { _1c = this._hash[id]; if (_1c.declaredClass == cls) { res.add(_1c); } } return res; }, toArray: function () { var ar = []; for (var id in this._hash) { ar.push(this._hash[id]); } return ar; }, map: function (_1d, _1e) { return dojo.map(this.toArray(), _1d, _1e); }, every: function (_1f, _20) { _20 = _20 || dojo.global; var x = 0, i; for (i in this._hash) { if (!_1f.call(_20, this._hash[i], x++, this._hash)) { return false; } } return true; }, some: function (_21, _22) { _22 = _22 || dojo.global; var x = 0, i; for (i in this._hash) { if (_21.call(_22, this._hash[i], x++, this._hash)) { return true; } } return false; } }); (function () { dijit.registry = new dijit.WidgetSet(); var _23 = dijit.registry._hash, _24 = dojo.attr, _25 = dojo.hasAttr, _26 = dojo.style; dijit.byId = function (id) { return typeof id == "string" ? _23[id] : id; }; var _27 = {}; dijit.getUniqueId = function (_28) { var id; do { id = _28 + "_" + (_28 in _27 ? ++_27[_28] : _27[_28] = 0); } while (_23[id]); return dijit._scopeName == "dijit" ? id : dijit._scopeName + "_" + id; }; dijit.findWidgets = function (_29) { var _2a = []; function _2b(_2c) { for (var _2d = _2c.firstChild; _2d; _2d = _2d.nextSibling) { if (_2d.nodeType == 1) { var _2e = _2d.getAttribute("widgetId"); if (_2e) { _2a.push(_23[_2e]); } else { _2b(_2d); } } } }; _2b(_29); return _2a; }; dijit._destroyAll = function () { dijit._curFocus = null; dijit._prevFocus = null; dijit._activeStack = []; dojo.forEach(dijit.findWidgets(dojo.body()), function (_2f) { if (!_2f._destroyed) { if (_2f.destroyRecursive) { _2f.destroyRecursive(); } else { if (_2f.destroy) { _2f.destroy(); } } } }); }; if (dojo.isIE) { dojo.addOnWindowUnload(function () { dijit._destroyAll(); }); } dijit.byNode = function (_30) { return _23[_30.getAttribute("widgetId")]; }; dijit.getEnclosingWidget = function (_31) { while (_31) { var id = _31.getAttribute && _31.getAttribute("widgetId"); if (id) { return _23[id]; } _31 = _31.parentNode; } return null; }; var _32 = (dijit._isElementShown = function (_33) { var s = _26(_33); return (s.visibility != "hidden") && (s.visibility != "collapsed") && (s.display != "none") && (_24(_33, "type") != "hidden"); }); dijit.hasDefaultTabStop = function (_34) { switch (_34.nodeName.toLowerCase()) { case "a": return _25(_34, "href"); case "area": case "button": case "input": case "object": case "select": case "textarea": return true; case "iframe": if (dojo.isMoz) { try { return _34.contentDocument.designMode == "on"; } catch (err) { return false; } } else { if (dojo.isWebKit) { var doc = _34.contentDocument, _35 = doc && doc.body; return _35 && _35.contentEditable == "true"; } else { try { doc = _34.contentWindow.document; _35 = doc && doc.body; return _35 && _35.firstChild && _35.firstChild.contentEditable == "true"; } catch (e) { return false; } } } default: return _34.contentEditable == "true"; } }; var _36 = (dijit.isTabNavigable = function (_37) { if (_24(_37, "disabled")) { return false; } else { if (_25(_37, "tabIndex")) { return _24(_37, "tabIndex") >= 0; } else { return dijit.hasDefaultTabStop(_37); } } }); dijit._getTabNavigable = function (_38) { var _39, _3a, _3b, _3c, _3d, _3e; var _3f = function (_40) { dojo.query("> *", _40).forEach(function (_41) { if ((dojo.isIE && _41.scopeName !== "HTML") || !_32(_41)) { return; } if (_36(_41)) { var _42 = _24(_41, "tabIndex"); if (!_25(_41, "tabIndex") || _42 == 0) { if (!_39) { _39 = _41; } _3a = _41; } else { if (_42 > 0) { if (!_3b || _42 < _3c) { _3c = _42; _3b = _41; } if (!_3d || _42 >= _3e) { _3e = _42; _3d = _41; } } } } if (_41.nodeName.toUpperCase() != "SELECT") { _3f(_41); } }); }; if (_32(_38)) { _3f(_38); } return { first: _39, last: _3a, lowest: _3b, highest: _3d }; }; dijit.getFirstInTabbingOrder = function (_43) { var _44 = dijit._getTabNavigable(dojo.byId(_43)); return _44.lowest ? _44.lowest : _44.first; }; dijit.getLastInTabbingOrder = function (_45) { var _46 = dijit._getTabNavigable(dojo.byId(_45)); return _46.last ? _46.last : _46.highest; }; dijit.defaultDuration = dojo.config["defaultDuration"] || 200; })(); } 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 () { return dijit.getBookmark().isCollapsed; }, getBookmark: function () { var bm, rg, tg, sel = dojo.doc.selection, cf = dijit._curFocus; if (dojo.global.getSelection) { sel = dojo.global.getSelection(); if (sel) { if (sel.isCollapsed) { tg = cf ? cf.tagName : ""; if (tg) { tg = tg.toLowerCase(); if (tg == "textarea" || (tg == "input" && (!cf.type || cf.type.toLowerCase() == "text"))) { sel = { start: cf.selectionStart, end: cf.selectionEnd, node: cf, pRange: true }; return { isCollapsed: (sel.end <= sel.start), mark: sel }; } } bm = { isCollapsed: true }; } else { rg = sel.getRangeAt(0); bm = { isCollapsed: false, mark: rg.cloneRange() }; } } } else { if (sel) { tg = cf ? cf.tagName : ""; tg = tg.toLowerCase(); if (cf && tg && (tg == "button" || tg == "textarea" || tg == "input")) { if (sel.type && sel.type.toLowerCase() == "none") { return { isCollapsed: true, mark: null }; } else { rg = sel.createRange(); return { isCollapsed: rg.text && rg.text.length ? false : true, mark: { range: rg, pRange: true} }; } } bm = {}; try { rg = sel.createRange(); bm.isCollapsed = !(sel.type == "Text" ? rg.htmlText.length : rg.length); } catch (e) { bm.isCollapsed = true; return bm; } if (sel.type.toUpperCase() == "CONTROL") { if (rg.length) { bm.mark = []; var i = 0, len = rg.length; while (i < len) { bm.mark.push(rg.item(i++)); } } else { bm.isCollapsed = true; bm.mark = null; } } else { bm.mark = rg.getBookmark(); } } else { console.warn("No idea how to store the current selection for this browser!"); } } return bm; }, moveToBookmark: function (_47) { var _48 = dojo.doc, _49 = _47.mark; if (_49) { if (dojo.global.getSelection) { var sel = dojo.global.getSelection(); if (sel && sel.removeAllRanges) { if (_49.pRange) { var r = _49; var n = r.node; n.selectionStart = r.start; n.selectionEnd = r.end; } else { sel.removeAllRanges(); sel.addRange(_49); } } else { console.warn("No idea how to restore selection for this browser!"); } } else { if (_48.selection && _49) { var rg; if (_49.pRange) { rg = _49.range; } else { if (dojo.isArray(_49)) { rg = _48.body.createControlRange(); dojo.forEach(_49, function (n) { rg.addElement(n); }); } else { rg = _48.body.createTextRange(); rg.moveToBookmark(_49); } } rg.select(); } } } }, getFocus: function (_4a, _4b) { var _4c = !dijit._curFocus || (_4a && dojo.isDescendant(dijit._curFocus, _4a.domNode)) ? dijit._prevFocus : dijit._curFocus; return { node: _4c, bookmark: (_4c == dijit._curFocus) && dojo.withGlobal(_4b || dojo.global, dijit.getBookmark), openedForWindow: _4b }; }, focus: function (_4d) { if (!_4d) { return; } var _4e = "node" in _4d ? _4d.node : _4d, _4f = _4d.bookmark, _50 = _4d.openedForWindow, _51 = _4f ? _4f.isCollapsed : false; if (_4e) { var _52 = (_4e.tagName.toLowerCase() == "iframe") ? _4e.contentWindow : _4e; if (_52 && _52.focus) { try { _52.focus(); } catch (e) { } } dijit._onFocusNode(_4e); } if (_4f && dojo.withGlobal(_50 || dojo.global, dijit.isCollapsed) && !_51) { if (_50) { _50.focus(); } try { dojo.withGlobal(_50 || dojo.global, dijit.moveToBookmark, null, [_4f]); } catch (e2) { } } }, _activeStack: [], registerIframe: function (_53) { return dijit.registerWin(_53.contentWindow, _53); }, unregisterIframe: function (_54) { dijit.unregisterWin(_54); }, registerWin: function (_55, _56) { var _57 = function (evt) { dijit._justMouseDowned = true; setTimeout(function () { dijit._justMouseDowned = false; }, 0); if (dojo.isIE && evt && evt.srcElement && evt.srcElement.parentNode == null) { return; } dijit._onTouchNode(_56 || evt.target || evt.srcElement, "mouse"); }; var doc = dojo.isIE ? _55.document.documentElement : _55.document; if (doc) { if (dojo.isIE) { doc.attachEvent("onmousedown", _57); var _58 = function (evt) { if (evt.srcElement.tagName.toLowerCase() != "#document" && dijit.isTabNavigable(evt.srcElement)) { dijit._onFocusNode(_56 || evt.srcElement); } else { dijit._onTouchNode(_56 || evt.srcElement); } }; doc.attachEvent("onactivate", _58); var _59 = function (evt) { dijit._onBlurNode(_56 || evt.srcElement); }; doc.attachEvent("ondeactivate", _59); return function () { doc.detachEvent("onmousedown", _57); doc.detachEvent("onactivate", _58); doc.detachEvent("ondeactivate", _59); doc = null; }; } else { doc.addEventListener("mousedown", _57, true); var _5a = function (evt) { dijit._onFocusNode(_56 || evt.target); }; doc.addEventListener("focus", _5a, true); var _5b = function (evt) { dijit._onBlurNode(_56 || evt.target); }; doc.addEventListener("blur", _5b, true); return function () { doc.removeEventListener("mousedown", _57, true); doc.removeEventListener("focus", _5a, true); doc.removeEventListener("blur", _5b, true); doc = null; }; } } }, unregisterWin: function (_5c) { _5c && _5c(); }, _onBlurNode: function (_5d) { dijit._prevFocus = dijit._curFocus; dijit._curFocus = null; if (dijit._justMouseDowned) { return; } if (dijit._clearActiveWidgetsTimer) { clearTimeout(dijit._clearActiveWidgetsTimer); } dijit._clearActiveWidgetsTimer = setTimeout(function () { delete dijit._clearActiveWidgetsTimer; dijit._setStack([]); dijit._prevFocus = null; }, 100); }, _onTouchNode: function (_5e, by) { if (dijit._clearActiveWidgetsTimer) { clearTimeout(dijit._clearActiveWidgetsTimer); delete dijit._clearActiveWidgetsTimer; } var _5f = []; try { while (_5e) { var _60 = dojo.attr(_5e, "dijitPopupParent"); if (_60) { _5e = dijit.byId(_60).domNode; } else { if (_5e.tagName && _5e.tagName.toLowerCase() == "body") { if (_5e === dojo.body()) { break; } _5e = dojo.window.get(_5e.ownerDocument).frameElement; } else { var id = _5e.getAttribute && _5e.getAttribute("widgetId"), _61 = id && dijit.byId(id); if (_61 && !(by == "mouse" && _61.get("disabled"))) { _5f.unshift(id); } _5e = _5e.parentNode; } } } } catch (e) { } dijit._setStack(_5f, by); }, _onFocusNode: function (_62) { if (!_62) { return; } if (_62.nodeType == 9) { return; } dijit._onTouchNode(_62); if (_62 == dijit._curFocus) { return; } if (dijit._curFocus) { dijit._prevFocus = dijit._curFocus; } dijit._curFocus = _62; dojo.publish("focusNode", [_62]); }, _setStack: function (_63, by) { var _64 = dijit._activeStack; dijit._activeStack = _63; for (var _65 = 0; _65 < Math.min(_64.length, _63.length); _65++) { if (_64[_65] != _63[_65]) { break; } } var _66; for (var i = _64.length - 1; i >= _65; i--) { _66 = dijit.byId(_64[i]); if (_66) { _66._focused = false; _66._hasBeenBlurred = true; if (_66._onBlur) { _66._onBlur(by); } dojo.publish("widgetBlur", [_66, by]); } } for (i = _65; i < _63.length; i++) { _66 = dijit.byId(_63[i]); if (_66) { _66._focused = true; if (_66._onFocus) { _66._onFocus(by); } dojo.publish("widgetFocus", [_66, by]); } } } }); dojo.addOnLoad(function () { var _67 = dijit.registerWin(window); if (dojo.isIE) { dojo.addOnWindowUnload(function () { dijit.unregisterWin(_67); _67 = null; }); } }); } if (!dojo._hasResource["dojo.AdapterRegistry"]) { dojo._hasResource["dojo.AdapterRegistry"] = true; dojo.provide("dojo.AdapterRegistry"); dojo.AdapterRegistry = function (_68) { this.pairs = []; this.returnWrappers = _68 || false; }; dojo.extend(dojo.AdapterRegistry, { register: function (_69, _6a, _6b, _6c, _6d) { this.pairs[((_6d) ? "unshift" : "push")]([_69, _6a, _6b, _6c]); }, match: function () { for (var i = 0; i < this.pairs.length; i++) { var _6e = this.pairs[i]; if (_6e[1].apply(this, arguments)) { if ((_6e[3]) || (this.returnWrappers)) { return _6e[2]; } else { return _6e[2].apply(this, arguments); } } } throw new Error("No match found"); }, unregister: function (_6f) { for (var i = 0; i < this.pairs.length; i++) { var _70 = this.pairs[i]; if (_70[0] == _6f) { this.pairs.splice(i, 1); return true; } } return false; } }); } 
if (!dojo._hasResource["dijit._base.place"]) {
    dojo._hasResource["dijit._base.place"] = true; dojo.provide("dijit._base.place"); dijit.getViewport = function () { return dojo.window.getBox(); }; dijit.placeOnScreen = function (_71, pos, _72, _73) { var _74 = dojo.map(_72, function (_75) { var c = { corner: _75, pos: { x: pos.x, y: pos.y} }; if (_73) { c.pos.x += _75.charAt(1) == "L" ? _73.x : -_73.x; c.pos.y += _75.charAt(0) == "T" ? _73.y : -_73.y; } return c; }); return dijit._place(_71, _74); }; dijit._place = function (_76, _77, _78) {
        var _79 = dojo.window.getBox(); if (!_76.parentNode || String(_76.parentNode.tagName).toLowerCase() != "body") { dojo.body().appendChild(_76); } 
var _7a = null; dojo.some(_77, function (_7b) { var _7c = _7b.corner; var pos = _7b.pos; if (_78) { _78(_76, _7b.aroundCorner, _7c); } var _7d = _76.style; var _7e = _7d.display; var _7f = _7d.visibility; _7d.visibility = "hidden"; _7d.display = ""; var mb = dojo.marginBox(_76); _7d.display = _7e; _7d.visibility = _7f; var _80 = Math.max(_79.l, _7c.charAt(1) == "L" ? pos.x : (pos.x - mb.w)), _81 = Math.max(_79.t, _7c.charAt(0) == "T" ? pos.y : (pos.y - mb.h)), _82 = Math.min(_79.l + _79.w, _7c.charAt(1) == "L" ? (_80 + mb.w) : pos.x), _83 = Math.min(_79.t + _79.h, _7c.charAt(0) == "T" ? (_81 + mb.h) : pos.y), _84 = _82 - _80, _85 = _83 - _81, _86 = (mb.w - _84) + (mb.h - _85); if (_7a == null || _86 < _7a.overflow) { _7a = { corner: _7c, aroundCorner: _7b.aroundCorner, x: _80, y: _81, w: _84, h: _85, overflow: _86 }; } return !_86; }); _76.style.left = _7a.x + "px"; _76.style.top = _7a.y + "px"; if (_7a.overflow && _78) { _78(_76, _7a.aroundCorner, _7a.corner); } return _7a; }; dijit.placeOnScreenAroundNode = function (_87, _88, _89, _8a) { _88 = dojo.byId(_88); var _8b = _88.style.display; _88.style.display = ""; var _8c = dojo.position(_88, true); _88.style.display = _8b; return dijit._placeOnScreenAroundRect(_87, _8c.x, _8c.y, _8c.w, _8c.h, _89, _8a); }; dijit.placeOnScreenAroundRectangle = function (_8d, _8e, _8f, _90) { return dijit._placeOnScreenAroundRect(_8d, _8e.x, _8e.y, _8e.width, _8e.height, _8f, _90); }; dijit._placeOnScreenAroundRect = function (_91, x, y, _92, _93, _94, _95) { var _96 = []; for (var _97 in _94) { _96.push({ aroundCorner: _97, corner: _94[_97], pos: { x: x + (_97.charAt(1) == "L" ? 0 : _92), y: y + (_97.charAt(0) == "T" ? 0 : _93)} }); } return dijit._place(_91, _96, _95); }; dijit.placementRegistry = new dojo.AdapterRegistry(); dijit.placementRegistry.register("node", function (n, x) { return typeof x == "object" && typeof x.offsetWidth != "undefined" && typeof x.offsetHeight != "undefined"; }, dijit.placeOnScreenAroundNode); dijit.placementRegistry.register("rect", function (n, x) { return typeof x == "object" && "x" in x && "y" in x && "width" in x && "height" in x; }, dijit.placeOnScreenAroundRectangle); dijit.placeOnScreenAroundElement = function (_98, _99, _9a, _9b) { return dijit.placementRegistry.match.apply(dijit.placementRegistry, arguments); }; dijit.getPopupAroundAlignment = function (_9c, _9d) { var _9e = {}; dojo.forEach(_9c, function (pos) { switch (pos) { case "after": _9e[_9d ? "BR" : "BL"] = _9d ? "BL" : "BR"; break; case "before": _9e[_9d ? "BL" : "BR"] = _9d ? "BR" : "BL"; break; case "below": _9e[_9d ? "BL" : "BR"] = _9d ? "TL" : "TR"; _9e[_9d ? "BR" : "BL"] = _9d ? "TR" : "TL"; break; case "above": default: _9e[_9d ? "TL" : "TR"] = _9d ? "BL" : "BR"; _9e[_9d ? "TR" : "TL"] = _9d ? "BR" : "BL"; break; } }); return _9e; }; } if (!dojo._hasResource["dijit._base.window"]) { dojo._hasResource["dijit._base.window"] = true; dojo.provide("dijit._base.window"); dijit.getDocumentWindow = function (doc) { return dojo.window.get(doc); }; } if (!dojo._hasResource["dijit._base.popup"]) {
    dojo._hasResource["dijit._base.popup"] = true; dojo.provide("dijit._base.popup"); dijit.popup = { _stack: [], _beginZIndex: 1000, _idGen: 1, moveOffScreen: function (_9f) {
        var _a0 = _9f.parentNode; if (!_a0 || !dojo.hasClass(_a0, "dijitPopup")) { _a0 = dojo.create("div", { "class": "dijitPopup", style: { visibility: "hidden", top: "-9999px"} }, dojo.body()); dijit.setWaiRole(_a0, "presentation"); _a0.appendChild(_9f); } 
var s = _9f.style; s.display = ""; s.visibility = ""; s.position = ""; s.top = "0px"; dojo.style(_a0, { visibility: "hidden", top: "-9999px" }); }, getTopPopup: function () { var _a1 = this._stack; for (var pi = _a1.length - 1; pi > 0 && _a1[pi].parent === _a1[pi - 1].widget; pi--) { } return _a1[pi]; }, open: function (_a2) { var _a3 = this._stack, _a4 = _a2.popup, _a5 = _a2.orient || ((_a2.parent ? _a2.parent.isLeftToRight() : dojo._isBodyLtr()) ? { "BL": "TL", "BR": "TR", "TL": "BL", "TR": "BR"} : { "BR": "TR", "BL": "TL", "TR": "BR", "TL": "BL" }), _a6 = _a2.around, id = (_a2.around && _a2.around.id) ? (_a2.around.id + "_dropdown") : ("popup_" + this._idGen++); var _a7 = _a4.domNode.parentNode; if (!_a7 || !dojo.hasClass(_a7, "dijitPopup")) { this.moveOffScreen(_a4.domNode); _a7 = _a4.domNode.parentNode; } dojo.attr(_a7, { id: id, style: { zIndex: this._beginZIndex + _a3.length }, "class": "dijitPopup " + (_a4.baseClass || _a4["class"] || "").split(" ")[0] + "Popup", dijitPopupParent: _a2.parent ? _a2.parent.id : "" }); if (dojo.isIE || dojo.isMoz) { var _a8 = _a7.childNodes[1]; if (!_a8) { _a8 = new dijit.BackgroundIframe(_a7); } } var _a9 = _a6 ? dijit.placeOnScreenAroundElement(_a7, _a6, _a5, _a4.orient ? dojo.hitch(_a4, "orient") : null) : dijit.placeOnScreen(_a7, _a2, _a5 == "R" ? ["TR", "BR", "TL", "BL"] : ["TL", "BL", "TR", "BR"], _a2.padding); _a7.style.visibility = "visible"; _a4.domNode.style.visibility = "visible"; var _aa = []; _aa.push(dojo.connect(_a7, "onkeypress", this, function (evt) { if (evt.charOrCode == dojo.keys.ESCAPE && _a2.onCancel) { dojo.stopEvent(evt); _a2.onCancel(); } else { if (evt.charOrCode === dojo.keys.TAB) { dojo.stopEvent(evt); var _ab = this.getTopPopup(); if (_ab && _ab.onCancel) { _ab.onCancel(); } } } })); if (_a4.onCancel) { _aa.push(dojo.connect(_a4, "onCancel", _a2.onCancel)); } _aa.push(dojo.connect(_a4, _a4.onExecute ? "onExecute" : "onChange", this, function () { var _ac = this.getTopPopup(); if (_ac && _ac.onExecute) { _ac.onExecute(); } })); _a3.push({ wrapper: _a7, iframe: _a8, widget: _a4, parent: _a2.parent, onExecute: _a2.onExecute, onCancel: _a2.onCancel, onClose: _a2.onClose, handlers: _aa }); if (_a4.onOpen) { _a4.onOpen(_a9); } return _a9; }, close: function (_ad) { var _ae = this._stack; while (dojo.some(_ae, function (_af) { return _af.widget == _ad; })) { var top = _ae.pop(), _b0 = top.wrapper, _b1 = top.iframe, _b2 = top.widget, _b3 = top.onClose; if (_b2.onClose) { _b2.onClose(); } dojo.forEach(top.handlers, dojo.disconnect); if (_b2 && _b2.domNode) { this.moveOffScreen(_b2.domNode); } else { dojo.destroy(_b0); } if (_b3) { _b3(); } } } }; dijit._frames = new function () { var _b4 = []; this.pop = function () { var _b5; if (_b4.length) { _b5 = _b4.pop(); _b5.style.display = ""; } else { if (dojo.isIE) { var _b6 = dojo.config["dojoBlankHtmlUrl"] || (dojo.moduleUrl("dojo", "resources/blank.html") + "") || "javascript:\"\""; var _b7 = "<iframe src='" + _b6 + "'" + " style='position: absolute; left: 0px; top: 0px;" + "z-index: -1; filter:Alpha(Opacity=\"0\");'>"; _b5 = dojo.doc.createElement(_b7); } else { _b5 = dojo.create("iframe"); _b5.src = "javascript:\"\""; _b5.className = "dijitBackgroundIframe"; dojo.style(_b5, "opacity", 0.1); } _b5.tabIndex = -1; dijit.setWaiRole(_b5, "presentation"); } return _b5; }; this.push = function (_b8) { _b8.style.display = "none"; _b4.push(_b8); }; } (); dijit.BackgroundIframe = function (_b9) { if (!_b9.id) { throw new Error("no id"); } if (dojo.isIE || dojo.isMoz) { var _ba = dijit._frames.pop(); _b9.appendChild(_ba); if (dojo.isIE < 7) { this.resize(_b9); this._conn = dojo.connect(_b9, "onresize", this, function () { this.resize(_b9); }); } else { dojo.style(_ba, { width: "100%", height: "100%" }); } this.iframe = _ba; } }; dojo.extend(dijit.BackgroundIframe, { resize: function (_bb) { if (this.iframe && dojo.isIE < 7) { dojo.style(this.iframe, { width: _bb.offsetWidth + "px", height: _bb.offsetHeight + "px" }); } }, destroy: function () { if (this._conn) { dojo.disconnect(this._conn); this._conn = null; } 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 (_bc, pos) { dojo.window.scrollIntoView(_bc, pos); }; } if (!dojo._hasResource["dojo.uacss"]) { dojo._hasResource["dojo.uacss"] = true; dojo.provide("dojo.uacss"); (function () { var d = dojo, _bd = d.doc.documentElement, ie = d.isIE, _be = d.isOpera, maj = Math.floor, ff = d.isFF, _bf = d.boxModel.replace(/-/, ""), _c0 = { dj_ie: ie, dj_ie6: maj(ie) == 6, dj_ie7: maj(ie) == 7, dj_ie8: maj(ie) == 8, dj_quirks: d.isQuirks, dj_iequirks: ie && d.isQuirks, dj_opera: _be, dj_khtml: d.isKhtml, dj_webkit: d.isWebKit, dj_safari: d.isSafari, dj_chrome: d.isChrome, dj_gecko: d.isMozilla, dj_ff3: maj(ff) == 3 }; _c0["dj_" + _bf] = true; var _c1 = ""; for (var clz in _c0) { if (_c0[clz]) { _c1 += clz + " "; } } _bd.className = d.trim(_bd.className + " " + _c1); dojo._loaders.unshift(function () { if (!dojo._isBodyLtr()) { var _c2 = "dj_rtl dijitRtl " + _c1.replace(/ /g, "-rtl "); _bd.className = d.trim(_bd.className + " " + _c2); } }); })(); } if (!dojo._hasResource["dijit._base.sniff"]) { dojo._hasResource["dijit._base.sniff"] = true; dojo.provide("dijit._base.sniff"); } 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 = Math.max(this._currentTimeout < 0 ? this._initialDelay : (this._subsequentDelay > 1 ? this._subsequentDelay : Math.round(this._currentTimeout * this._subsequentDelay)), this._minDelay); this._timer = setTimeout(dojo.hitch(this, "_fireEventAndReload"), this._currentTimeout); }, trigger: function (evt, _c3, _c4, _c5, obj, _c6, _c7, _c8) { if (obj != this._obj) { this.stop(); this._initialDelay = _c7 || 500; this._subsequentDelay = _c6 || 0.9; this._minDelay = _c8 || 10; this._obj = obj; this._evt = evt; this._node = _c4; this._currentTimeout = -1; this._count = -1; this._callback = dojo.hitch(_c3, _c5); this._fireEventAndReload(); this._evt = dojo.mixin({ faux: true }, evt); } }, 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 (_c9, _ca, _cb, _cc, _cd, _ce, _cf) { if (_ca.keyCode) { _ca.charOrCode = _ca.keyCode; dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.", "", "2.0"); } else { if (_ca.charCode) { _ca.charOrCode = String.fromCharCode(_ca.charCode); dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.", "", "2.0"); } } return [dojo.connect(_c9, "onkeypress", this, function (evt) { if (evt.charOrCode == _ca.charOrCode && (_ca.ctrlKey === undefined || _ca.ctrlKey == evt.ctrlKey) && (_ca.altKey === undefined || _ca.altKey == evt.altKey) && (_ca.metaKey === undefined || _ca.metaKey == (evt.metaKey || false)) && (_ca.shiftKey === undefined || _ca.shiftKey == evt.shiftKey)) { dojo.stopEvent(evt); dijit.typematic.trigger(evt, _cb, _c9, _cc, _ca, _cd, _ce, _cf); } else { if (dijit.typematic._obj == _ca) { dijit.typematic.stop(); } } }), dojo.connect(_c9, "onkeyup", this, function (evt) { if (dijit.typematic._obj == _ca) { dijit.typematic.stop(); } })]; }, addMouseListener: function (_d0, _d1, _d2, _d3, _d4, _d5) { var dc = dojo.connect; return [dc(_d0, "mousedown", this, function (evt) { dojo.stopEvent(evt); dijit.typematic.trigger(evt, _d1, _d0, _d2, _d0, _d3, _d4, _d5); }), dc(_d0, "mouseup", this, function (evt) { dojo.stopEvent(evt); dijit.typematic.stop(); }), dc(_d0, "mouseout", this, function (evt) { dojo.stopEvent(evt); dijit.typematic.stop(); }), dc(_d0, "mousemove", this, function (evt) { evt.preventDefault(); }), dc(_d0, "dblclick", this, function (evt) { dojo.stopEvent(evt); if (dojo.isIE) { dijit.typematic.trigger(evt, _d1, _d0, _d2, _d0, _d3, _d4, _d5); setTimeout(dojo.hitch(this, dijit.typematic.stop), 50); } })]; }, addListener: function (_d6, _d7, _d8, _d9, _da, _db, _dc, _dd) { return this.addKeyListener(_d7, _d8, _d9, _da, _db, _dc, _dd).concat(this.addMouseListener(_d6, _d9, _da, _db, _dc, _dd)); } }; } if (!dojo._hasResource["dijit._base.wai"]) {
    dojo._hasResource["dijit._base.wai"] = true; dojo.provide("dijit._base.wai");
    dijit.wai = { onload: function () { var div = dojo.create("div", { id: "a11yTestNode", style: { cssText: "border: 1px solid;" + "border-color:red green;" + "position: absolute;" + "height: 5px;" + "top: -999px;" + "background-image: url(\"" + (dojo.config.blankGif || dojo.moduleUrl("dojo", "resources/blank.gif")) + "\");"} }, dojo.body()); var cs = dojo.getComputedStyle(div); if (cs) { var _de = cs.backgroundImage; var _df = (cs.borderTopColor == cs.borderRightColor) || (_de != null && (_de == "none" || _de == "url(invalid-url:)")); dojo[_df ? "addClass" : "removeClass"](dojo.body(), "dijit_a11y"); if (dojo.isIE) { div.outerHTML = ""; } else { dojo.body().removeChild(div); } } } }; if (dojo.isIE || dojo.isMoz) { dojo._loaders.unshift(dijit.wai.onload); } dojo.mixin(dijit, { _XhtmlRoles: /banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/, hasWaiRole: function (_e0, _e1) { var _e2 = this.getWaiRole(_e0); return _e1 ? (_e2.indexOf(_e1) > -1) : (_e2.length > 0); }, getWaiRole: function (_e3) { return dojo.trim((dojo.attr(_e3, "role") || "").replace(this._XhtmlRoles, "").replace("wairole:", "")); }, setWaiRole: function (_e4, _e5) { var _e6 = dojo.attr(_e4, "role") || ""; if (!this._XhtmlRoles.test(_e6)) { dojo.attr(_e4, "role", _e5); } else { if ((" " + _e6 + " ").indexOf(" " + _e5 + " ") < 0) { var _e7 = dojo.trim(_e6.replace(this._XhtmlRoles, "")); var _e8 = dojo.trim(_e6.replace(_e7, "")); dojo.attr(_e4, "role", _e8 + (_e8 ? " " : "") + _e5); } } }, removeWaiRole: function (_e9, _ea) { var _eb = dojo.attr(_e9, "role"); if (!_eb) { return; } if (_ea) { var t = dojo.trim((" " + _eb + " ").replace(" " + _ea + " ", " ")); dojo.attr(_e9, "role", t); } else { _e9.removeAttribute("role"); } }, hasWaiState: function (_ec, _ed) { return _ec.hasAttribute ? _ec.hasAttribute("aria-" + _ed) : !!_ec.getAttribute("aria-" + _ed); }, getWaiState: function (_ee, _ef) { return _ee.getAttribute("aria-" + _ef) || ""; }, setWaiState: function (_f0, _f1, _f2) { _f0.setAttribute("aria-" + _f1, _f2); }, removeWaiState: function (_f3, _f4) { _f3.removeAttribute("aria-" + _f4); } });
} 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.require("dijit._base"); dojo.connect(dojo, "_connect", function (_f5, _f6) { if (_f5 && dojo.isFunction(_f5._onConnect)) { _f5._onConnect(_f6); } }); dijit._connectOnUseEventHandler = function (_f7) { }; dijit._lastKeyDownNode = null; if (dojo.isIE) { (function () { var _f8 = function (evt) { dijit._lastKeyDownNode = evt.srcElement; }; dojo.doc.attachEvent("onkeydown", _f8); dojo.addOnWindowUnload(function () { dojo.doc.detachEvent("onkeydown", _f8); }); })(); } else { dojo.doc.addEventListener("keydown", function (evt) { dijit._lastKeyDownNode = evt.target; }, true); } (function () { var _f9 = {}, _fa = function (_fb) { var dc = _fb.declaredClass; if (!_f9[dc]) { var r = [], _fc, _fd = _fb.constructor.prototype; for (var _fe in _fd) { if (dojo.isFunction(_fd[_fe]) && (_fc = _fe.match(/^_set([a-zA-Z]*)Attr$/)) && _fc[1]) { r.push(_fc[1].charAt(0).toLowerCase() + _fc[1].substr(1)); } } _f9[dc] = r; } return _f9[dc] || []; }; dojo.declare("dijit._Widget", null, { id: "", lang: "", dir: "", "class": "", style: "", title: "", tooltip: "", baseClass: "", srcNodeRef: null, domNode: null, containerNode: null, attributeMap: { id: "", dir: "", lang: "", "class": "", style: "", title: "" }, _deferredConnects: { onClick: "", onDblClick: "", onKeyDown: "", onKeyPress: "", onKeyUp: "", onMouseMove: "", onMouseDown: "", onMouseOut: "", onMouseOver: "", onMouseLeave: "", onMouseEnter: "", onMouseUp: "" }, onClick: dijit._connectOnUseEventHandler, onDblClick: dijit._connectOnUseEventHandler, onKeyDown: dijit._connectOnUseEventHandler, onKeyPress: dijit._connectOnUseEventHandler, onKeyUp: dijit._connectOnUseEventHandler, onMouseDown: dijit._connectOnUseEventHandler, onMouseMove: dijit._connectOnUseEventHandler, onMouseOut: dijit._connectOnUseEventHandler, onMouseOver: dijit._connectOnUseEventHandler, onMouseLeave: dijit._connectOnUseEventHandler, onMouseEnter: dijit._connectOnUseEventHandler, onMouseUp: dijit._connectOnUseEventHandler, _blankGif: (dojo.config.blankGif || dojo.moduleUrl("dojo", "resources/blank.gif")).toString(), postscript: function (_ff, _100) { this.create(_ff, _100); }, create: function (_101, _102) { this.srcNodeRef = dojo.byId(_102); this._connects = []; this._subscribes = []; this._deferredConnects = dojo.clone(this._deferredConnects); for (var attr in this.attributeMap) { delete this._deferredConnects[attr]; } for (attr in this._deferredConnects) { if (this[attr] !== dijit._connectOnUseEventHandler) { delete this._deferredConnects[attr]; } } if (this.srcNodeRef && (typeof this.srcNodeRef.id == "string")) { this.id = this.srcNodeRef.id; } if (_101) { this.params = _101; dojo.mixin(this, _101); } this.postMixInProperties(); if (!this.id) { this.id = dijit.getUniqueId(this.declaredClass.replace(/\./g, "_")); } dijit.registry.add(this); this.buildRendering(); if (this.domNode) { this._applyAttributes(); var _103 = this.srcNodeRef; if (_103 && _103.parentNode) { _103.parentNode.replaceChild(this.domNode, _103); } for (attr in this.params) { this._onConnect(attr); } } if (this.domNode) { this.domNode.setAttribute("widgetId", this.id); } this.postCreate(); if (this.srcNodeRef && !this.srcNodeRef.parentNode) { delete this.srcNodeRef; } this._created = true; }, _applyAttributes: function () { var _104 = function (attr, _105) { if ((_105.params && attr in _105.params) || _105[attr]) { _105.set(attr, _105[attr]); } }; for (var attr in this.attributeMap) { _104(attr, this); } dojo.forEach(_fa(this), function (a) { if (!(a in this.attributeMap)) { _104(a, this); } }, this); }, postMixInProperties: function () { }, buildRendering: function () { this.domNode = this.srcNodeRef || dojo.create("div"); }, postCreate: function () { if (this.baseClass) { var _106 = this.baseClass.split(" "); if (!this.isLeftToRight()) { _106 = _106.concat(dojo.map(_106, function (name) { return name + "Rtl"; })); } dojo.addClass(this.domNode, _106); } }, startup: function () { this._started = true; }, destroyRecursive: function (_107) { this._beingDestroyed = true; this.destroyDescendants(_107); this.destroy(_107); }, destroy: function (_108) { this._beingDestroyed = true; this.uninitialize(); var d = dojo, dfe = d.forEach, dun = d.unsubscribe; dfe(this._connects, function (_109) { dfe(_109, d.disconnect); }); dfe(this._subscribes, function (_10a) { dun(_10a); }); dfe(this._supportingWidgets || [], function (w) { if (w.destroyRecursive) { w.destroyRecursive(); } else { if (w.destroy) { w.destroy(); } } }); this.destroyRendering(_108); dijit.registry.remove(this.id); this._destroyed = true; }, destroyRendering: function (_10b) { if (this.bgIframe) { this.bgIframe.destroy(_10b); delete this.bgIframe; } if (this.domNode) { if (_10b) { dojo.removeAttr(this.domNode, "widgetId"); } else { dojo.destroy(this.domNode); } delete this.domNode; } if (this.srcNodeRef) { if (!_10b) { dojo.destroy(this.srcNodeRef); } delete this.srcNodeRef; } }, destroyDescendants: function (_10c) { dojo.forEach(this.getChildren(), function (_10d) { if (_10d.destroyRecursive) { _10d.destroyRecursive(_10c); } }); }, uninitialize: function () { return false; }, onFocus: function () { }, onBlur: function () { }, _onFocus: function (e) { this.onFocus(); }, _onBlur: function () { this.onBlur(); }, _onConnect: function (_10e) { if (_10e in this._deferredConnects) { var _10f = this[this._deferredConnects[_10e] || "domNode"]; this.connect(_10f, _10e.toLowerCase(), _10e); delete this._deferredConnects[_10e]; } }, _setClassAttr: function (_110) { var _111 = this[this.attributeMap["class"] || "domNode"]; dojo.removeClass(_111, this["class"]); this["class"] = _110; dojo.addClass(_111, _110); }, _setStyleAttr: function (_112) { var _113 = this[this.attributeMap.style || "domNode"]; if (dojo.isObject(_112)) { dojo.style(_113, _112); } else { if (_113.style.cssText) { _113.style.cssText += "; " + _112; } else { _113.style.cssText = _112; } } this.style = _112; }, setAttribute: function (attr, _114) { dojo.deprecated(this.declaredClass + "::setAttribute(attr, value) is deprecated. Use set() instead.", "", "2.0"); this.set(attr, _114); }, _attrToDom: function (attr, _115) { var _116 = this.attributeMap[attr]; dojo.forEach(dojo.isArray(_116) ? _116 : [_116], function (_117) { var _118 = this[_117.node || _117 || "domNode"]; var type = _117.type || "attribute"; switch (type) { case "attribute": if (dojo.isFunction(_115)) { _115 = dojo.hitch(this, _115); } var _119 = _117.attribute ? _117.attribute : (/^on[A-Z][a-zA-Z]*$/.test(attr) ? attr.toLowerCase() : attr); dojo.attr(_118, _119, _115); break; case "innerText": _118.innerHTML = ""; _118.appendChild(dojo.doc.createTextNode(_115)); break; case "innerHTML": _118.innerHTML = _115; break; case "class": dojo.removeClass(_118, this[attr]); dojo.addClass(_118, _115); break; } }, this); this[attr] = _115; }, attr: function (name, _11a) { if (dojo.config.isDebug) { var _11b = arguments.callee._ach || (arguments.callee._ach = {}), _11c = (arguments.callee.caller || "unknown caller").toString(); if (!_11b[_11c]) { dojo.deprecated(this.declaredClass + "::attr() is deprecated. Use get() or set() instead, called from " + _11c, "", "2.0"); _11b[_11c] = true; } } var args = arguments.length; if (args >= 2 || typeof name === "object") { return this.set.apply(this, arguments); } else { return this.get(name); } }, get: function (name) { var _11d = this._getAttrNames(name); return this[_11d.g] ? this[_11d.g]() : this[name]; }, set: function (name, _11e) { if (typeof name === "object") { for (var x in name) { this.set(x, name[x]); } return this; } var _11f = this._getAttrNames(name); if (this[_11f.s]) { var _120 = this[_11f.s].apply(this, Array.prototype.slice.call(arguments, 1)); } else { if (name in this.attributeMap) { this._attrToDom(name, _11e); } var _121 = this[name]; this[name] = _11e; } return _120 || this; }, _attrPairNames: {}, _getAttrNames: function (name) { var apn = this._attrPairNames; if (apn[name]) { return apn[name]; } var uc = name.charAt(0).toUpperCase() + name.substr(1); return (apn[name] = { n: name + "Node", s: "_set" + uc + "Attr", g: "_get" + uc + "Attr" }); }, toString: function () { return "[Widget " + this.declaredClass + ", " + (this.id || "NO ID") + "]"; }, getDescendants: function () { return this.containerNode ? dojo.query("[widgetId]", this.containerNode).map(dijit.byNode) : []; }, getChildren: function () { return this.containerNode ? dijit.findWidgets(this.containerNode) : []; }, nodesWithKeyClick: ["input", "button"], connect: function (obj, _122, _123) { var d = dojo, dc = d._connect, _124 = []; if (_122 == "ondijitclick") { if (dojo.indexOf(this.nodesWithKeyClick, obj.nodeName.toLowerCase()) == -1) { var m = d.hitch(this, _123); _124.push(dc(obj, "onkeydown", this, function (e) { if ((e.keyCode == d.keys.ENTER || e.keyCode == d.keys.SPACE) && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey) { dijit._lastKeyDownNode = e.target; e.preventDefault(); } }), dc(obj, "onkeyup", this, function (e) { if ((e.keyCode == d.keys.ENTER || e.keyCode == d.keys.SPACE) && e.target === dijit._lastKeyDownNode && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey) { dijit._lastKeyDownNode = null; return m(e); } })); } _122 = "onclick"; } _124.push(dc(obj, _122, this, _123)); this._connects.push(_124); return _124; }, disconnect: function (_125) { for (var i = 0; i < this._connects.length; i++) { if (this._connects[i] == _125) { dojo.forEach(_125, dojo.disconnect); this._connects.splice(i, 1); return; } } }, subscribe: function (_126, _127) { var d = dojo, _128 = d.subscribe(_126, this, _127); this._subscribes.push(_128); return _128; }, unsubscribe: function (_129) { for (var i = 0; i < this._subscribes.length; i++) { if (this._subscribes[i] == _129) { dojo.unsubscribe(_129); this._subscribes.splice(i, 1); return; } } }, isLeftToRight: function () { return this.dir ? (this.dir == "ltr") : dojo._isBodyLtr(); }, isFocusable: function () { return this.focus && (dojo.style(this.domNode, "display") != "none"); }, placeAt: function (_12a, _12b) { if (_12a.declaredClass && _12a.addChild) { _12a.addChild(this, _12b); } else { dojo.place(this.domNode, _12a, _12b); } return this; }, _onShow: function () { this.onShow(); }, onShow: function () { }, onHide: function () { }, onClose: function () { return true; } }); })(); } if (!dojo._hasResource["dojo.string"]) { dojo._hasResource["dojo.string"] = true; dojo.provide("dojo.string"); dojo.string.rep = function (str, num) { if (num <= 0 || !str) { return ""; } var buf = []; for (; ; ) { if (num & 1) { buf.push(str); } if (!(num >>= 1)) { break; } str += str; } return buf.join(""); }; dojo.string.pad = function (text, size, ch, end) { if (!ch) { ch = "0"; } var out = String(text), pad = dojo.string.rep(ch, Math.ceil((size - out.length) / ch.length)); return end ? out + pad : pad + out; }; dojo.string.substitute = function (_12c, map, _12d, _12e) { _12e = _12e || dojo.global; _12d = _12d ? dojo.hitch(_12e, _12d) : function (v) { return v; }; return _12c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g, function (_12f, key, _130) { var _131 = dojo.getObject(key, false, map); if (_130) { _131 = dojo.getObject(_130, false, _12e).call(_12e, _131, key); } return _12d(_131, key).toString(); }); }; dojo.string.trim = String.prototype.trim ? dojo.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 (_132, _133) { 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 _134 = dojo.date.stamp._isoRegExp.exec(_132), _135 = null; if (_134) { _134.shift(); if (_134[1]) { _134[1]--; } if (_134[6]) { _134[6] *= 1000; } if (_133) { _133 = new Date(_133); dojo.forEach(dojo.map(["FullYear", "Month", "Date", "Hours", "Minutes", "Seconds", "Milliseconds"], function (prop) { return _133["get" + prop](); }), function (_136, _137) { _134[_137] = _134[_137] || _136; }); } _135 = new Date(_134[0] || 1970, _134[1] || 0, _134[2] || 1, _134[3] || 0, _134[4] || 0, _134[5] || 0, _134[6] || 0); if (_134[0] < 100) { _135.setFullYear(_134[0] || 1970); } var _138 = 0, _139 = _134[7] && _134[7].charAt(0); if (_139 != "Z") { _138 = ((_134[8] || 0) * 60) + (Number(_134[9]) || 0); if (_139 != "-") { _138 *= -1; } } if (_139) { _138 -= _135.getTimezoneOffset(); } if (_138) { _135.setTime(_135.getTime() + _138 * 60000); } } return _135; }; dojo.date.stamp.toISOString = function (_13a, _13b) {
        var _13c = function (n) { return (n < 10) ? "0" + n : n; }; _13b = _13b || {}; var _13d = [], _13e = _13b.zulu ? "getUTC" : "get", date = ""; 
if (_13b.selector != "time") { var year = _13a[_13e + "FullYear"](); date = ["0000".substr((year + "").length) + year, _13c(_13a[_13e + "Month"]() + 1), _13c(_13a[_13e + "Date"]())].join("-"); } _13d.push(date); if (_13b.selector != "date") { var time = [_13c(_13a[_13e + "Hours"]()), _13c(_13a[_13e + "Minutes"]()), _13c(_13a[_13e + "Seconds"]())].join(":"); var _13f = _13a[_13e + "Milliseconds"](); if (_13b.milliseconds) { time += "." + (_13f < 100 ? "0" : "") + _13c(_13f); } if (_13b.zulu) { time += "Z"; } else { if (_13b.selector != "time") { var _140 = _13a.getTimezoneOffset(); var _141 = Math.abs(_140); time += (_140 > 0 ? "-" : "+") + _13c(Math.floor(_141 / 60)) + ":" + _13c(_141 % 60); } } _13d.push(time); } return _13d.join("T"); }; } if (!dojo._hasResource["dojo.parser"]) {
    dojo._hasResource["dojo.parser"] = true; dojo.provide("dojo.parser"); new Date("X"); dojo.parser = new function () {
        var d = dojo; this._attrName = d._scopeName + "Type"; this._query = "[" + this._attrName + "]"; function _142(_143) { if (d.isString(_143)) { return "string"; } if (typeof _143 == "number") { return "number"; } if (typeof _143 == "boolean") { return "boolean"; } if (d.isFunction(_143)) { return "function"; } if (d.isArray(_143)) { return "array"; } if (_143 instanceof Date) { return "date"; } if (_143 instanceof d._Url) { return "url"; } return "object"; }; function _144(_145, type) { switch (type) { case "string": return _145; case "number": return _145.length ? Number(_145) : NaN; case "boolean": return typeof _145 == "boolean" ? _145 : !(_145.toLowerCase() == "false"); case "function": if (d.isFunction(_145)) { _145 = _145.toString(); _145 = d.trim(_145.substring(_145.indexOf("{") + 1, _145.length - 1)); } try { if (_145 === "" || _145.search(/[^\w\.]+/i) != -1) { return new Function(_145); } else { return d.getObject(_145, false) || new Function(_145); } } catch (e) { return new Function(); } case "array": return _145 ? _145.split(/\s*,\s*/) : []; case "date": switch (_145) { case "": return new Date(""); case "now": return new Date(); default: return d.date.stamp.fromISOString(_145); } case "url": return d.baseUrl + _145; default: return d.fromJson(_145); } }; var _146 = {}; dojo.connect(dojo, "extend", function () { _146 = {}; }); function _147(_148) { if (!_146[_148]) { var cls = d.getObject(_148); if (!cls) { return null; } var _149 = cls.prototype; var _14a = {}, _14b = {}; for (var name in _149) { if (name.charAt(0) == "_") { continue; } if (name in _14b) { continue; } var _14c = _149[name]; _14a[name] = _142(_14c); } _146[_148] = { cls: cls, params: _14a }; } return _146[_148]; }; this._functionFromScript = function (_14d) { var _14e = ""; var _14f = ""; var _150 = _14d.getAttribute("args"); if (_150) { d.forEach(_150.split(/\s*,\s*/), function (part, idx) { _14e += "var " + part + " = arguments[" + idx + "]; "; }); } var _151 = _14d.getAttribute("with"); if (_151 && _151.length) { d.forEach(_151.split(/\s*,\s*/), function (part) { _14e += "with(" + part + "){"; _14f += "}"; }); } return new Function(_14e + _14d.innerHTML + _14f); }; this.instantiate = function (_152, _153, args) { var _154 = [], dp = dojo.parser; _153 = _153 || {}; args = args || {}; d.forEach(_152, function (obj) { if (!obj) { return; } var node, type, _155, _156, _157; if (obj.node) { node = obj.node; type = obj.type; _155 = obj.clsInfo || (type && _147(type)); _156 = _155 && _155.cls; _157 = obj.scripts; } else { node = obj; type = dp._attrName in _153 ? _153[dp._attrName] : node.getAttribute(dp._attrName); _155 = type && _147(type); _156 = _155 && _155.cls; _157 = (_156 && (_156._noScript || _156.prototype._noScript) ? [] : d.query("> script[type^='dojo/']", node)); } if (!_155) { throw new Error("Could not load class '" + type); } var _158 = {}, _159 = node.attributes; if (args.defaults) { dojo.mixin(_158, args.defaults); } if (obj.inherited) { dojo.mixin(_158, obj.inherited); } for (var name in _155.params) { var item = name in _153 ? { value: _153[name], specified: true} : _159.getNamedItem(name); if (!item || (!item.specified && (!dojo.isIE || name.toLowerCase() != "value"))) { continue; } var _15a = item.value; switch (name) { case "class": _15a = "className" in _153 ? _153.className : node.className; break; case "style": _15a = "style" in _153 ? _153.style : (node.style && node.style.cssText); } var _15b = _155.params[name]; if (typeof _15a == "string") { _158[name] = _144(_15a, _15b); } else { _158[name] = _15a; } } var _15c = [], _15d = []; d.forEach(_157, function (_15e) { node.removeChild(_15e); var _15f = _15e.getAttribute("event"), type = _15e.getAttribute("type"), nf = d.parser._functionFromScript(_15e); if (_15f) { if (type == "dojo/connect") { _15c.push({ event: _15f, func: nf }); } else { _158[_15f] = nf; } } else { _15d.push(nf); } }); var _160 = _156.markupFactory || _156.prototype && _156.prototype.markupFactory; var _161 = _160 ? _160(_158, node, _156) : new _156(_158, node); _154.push(_161); var _162 = node.getAttribute("jsId"); if (_162) { d.setObject(_162, _161); } d.forEach(_15c, function (_163) { d.connect(_161, _163.event, null, _163.func); }); d.forEach(_15d, function (func) { func.call(_161); }); }); if (!_153._started) { d.forEach(_154, function (_164) { if (!args.noStart && _164 && _164.startup && !_164._started && (!_164.getParent || !_164.getParent())) { _164.startup(); } }); } return _154; }; this.parse = function (_165, args) {
            var root; if (!args && _165 && _165.rootNode) { args = _165; root = args.rootNode; } else { root = _165; } var _166 = this._attrName; function scan(_167, list) {
                var _168 = dojo.clone(_167.inherited); dojo.forEach(["dir", "lang"], function (name) { var val = _167.node.getAttribute(name); if (val) { _168[name] = val; } }); var _169 = _167.scripts; var _16a = !_167.clsInfo || !_167.clsInfo.cls.prototype.stopParser; for (var _16b = _167.node.firstChild; _16b; _16b = _16b.nextSibling) {
                    if (_16b.nodeType == 1) {
                        var type = _16a && _16b.getAttribute(_166); if (type) { var _16c = { "type": type, clsInfo: _147(type), node: _16b, scripts: [], inherited: _168 }; list.push(_16c); scan(_16c, list); } else {
                            if (_169 && _16b.nodeName.toLowerCase() == "script") {
                                type = _16b.getAttribute("type");
                                if (type && /^dojo\//i.test(type)) { _169.push(_16b); } 
                            } else { if (_16a) { scan({ node: _16b, inherited: _168 }, list); } } 
                        } 
                    } 
                } 
            };
            var list = []; scan({ node: root ? dojo.byId(root) : dojo.body(), inherited: (args && args.inherited) || { dir: dojo._isBodyLtr() ? "ltr" : "rtl"} }, list); return this.instantiate(list, null, args);
        };
    } ();
    (function () {
        var _16d = function () { if (dojo.config.parseOnLoad) { dojo.parser.parse(); } };
        if (dojo.exists("dijit.wai.onload") && (dijit.wai.onload === dojo._loaders[0])) { dojo._loaders.splice(1, 0, _16d); } else { dojo._loaders.unshift(_16d); } 
    })();
}
if (!dojo._hasResource["dojo.cache"]) {
    dojo._hasResource["dojo.cache"] = true; dojo.provide("dojo.cache");
    (function () {
        var _16e = {}; dojo.cache = function (_16f, url, _170) {
            if (typeof _16f == "string") { var _171 = dojo.moduleUrl(_16f, url); } else { _171 = _16f; _170 = url; }
            var key = _171.toString(); var val = _170; if (_170 != undefined && !dojo.isString(_170)) { val = ("value" in _170 ? _170.value : undefined); }
            var _172 = _170 && _170.sanitize ? true : false; if (typeof val == "string") { val = _16e[key] = _172 ? dojo.cache._sanitize(val) : val; } else { if (val === null) { delete _16e[key]; } else { if (!(key in _16e)) { val = dojo._getText(key); _16e[key] = _172 ? dojo.cache._sanitize(val) : val; } val = _16e[key]; } } return val;
        }; dojo.cache._sanitize = function (val) {
            if (val) {
                val = val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im, "");
                var _173 = val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im); if (_173) { val = _173[1]; } 
            } else { val = ""; } return val;
        };
    })();
} if (!dojo._hasResource["dijit._Templated"]) {
    dojo._hasResource["dijit._Templated"] = true; dojo.provide("dijit._Templated"); dojo.declare("dijit._Templated", null, { templateString: null, templatePath: null, widgetsInTemplate: false, _skipNodeCache: false, _earlyTemplatedStartup: false, constructor: function () { this._attachPoints = []; }, _stringRepl: function (tmpl) { var _174 = this.declaredClass, _175 = this; return dojo.string.substitute(tmpl, this, function (_176, key) { if (key.charAt(0) == "!") { _176 = dojo.getObject(key.substr(1), false, _175); } if (typeof _176 == "undefined") { throw new Error(_174 + " template:" + key); } if (_176 == null) { return ""; } return key.charAt(0) == "!" ? _176 : _176.toString().replace(/"/g, "&quot;"); }, this); }, buildRendering: function () {
        var _177 = dijit._Templated.getCachedTemplate(this.templatePath, this.templateString, this._skipNodeCache); var node; if (dojo.isString(_177)) {
            node = dojo._toDom(this._stringRepl(_177));
            if (node.nodeType != 1) { throw new Error("Invalid template: " + _177); }
        }
        else { 
        node = _177.cloneNode(true); }
        this.domNode = node; 
        this._attachTemplateNodes(node);
        if (this.widgetsInTemplate) {
            var _178 = dojo.parser, qry, attr; if (_178._query != "[dojoType]") { qry = _178._query; attr = _178._attrName; _178._query = "[dojoType]"; _178._attrName = "dojoType"; }
            var cw = (this._startupWidgets = dojo.parser.parse(node, { noStart: !this._earlyTemplatedStartup, inherited: { dir: this.dir, lang: this.lang} })); if (qry) { _178._query = qry; _178._attrName = attr; }
            this._supportingWidgets = dijit.findWidgets(node);
            this._attachTemplateNodes(cw, function (n, p) { return n[p]; });
        }
        this._fillContent(this.srcNodeRef);
    }, _fillContent: function (_179) {
        var dest = this.containerNode; 
    if (_179 && dest) { while (_179.hasChildNodes()) { dest.appendChild(_179.firstChild); } } }, _attachTemplateNodes: function (_17a, _17b) {
        _17b = _17b || function (n, p) { return n.getAttribute(p); }; var _17c = dojo.isArray(_17a) ? _17a : (_17a.all || _17a.getElementsByTagName("*")); var x = dojo.isArray(_17a) ? 0 : -1; for (; x < _17c.length; x++) {
            var _17d = (x == -1) ? _17a : _17c[x]; if (this.widgetsInTemplate && _17b(_17d, "dojoType")) { continue; } var _17e = _17b(_17d, "dojoAttachPoint"); if (_17e) { var _17f, _180 = _17e.split(/\s*,\s*/); while ((_17f = _180.shift())) { if (dojo.isArray(this[_17f])) { this[_17f].push(_17d); } else { this[_17f] = _17d; } this._attachPoints.push(_17f); } } var _181 = _17b(_17d, "dojoAttachEvent"); if (_181) { var _182, _183 = _181.split(/\s*,\s*/); var trim = dojo.trim; while ((_182 = _183.shift())) { if (_182) { var _184 = null; if (_182.indexOf(":") != -1) { var _185 = _182.split(":"); _182 = trim(_185[0]); _184 = trim(_185[1]); } else { _182 = trim(_182); } if (!_184) { _184 = _182; } this.connect(_17d, _182, _184); } } } var role = _17b(_17d, "waiRole"); if (role) { dijit.setWaiRole(_17d, role); } var _186 = _17b(_17d, "waiState");
            if (_186) { dojo.forEach(_186.split(/\s*,\s*/), function (_187) { if (_187.indexOf("-") != -1) { var pair = _187.split("-"); dijit.setWaiState(_17d, pair[0], pair[1]); } }); } 
        } 
    }, startup: function () { dojo.forEach(this._startupWidgets, function (w) { if (w && !w._started && w.startup) { w.startup(); } }); this.inherited(arguments); }, destroyRendering: function () { dojo.forEach(this._attachPoints, function (_188) { delete this[_188]; }, this); this._attachPoints = []; this.inherited(arguments); } 
}); dijit._Templated._templateCache = {}; dijit._Templated.getCachedTemplate = function (_189, _18a, _18b) { var _18c = dijit._Templated._templateCache; var key = _18a || _189; var _18d = _18c[key]; if (_18d) { try { if (!_18d.ownerDocument || _18d.ownerDocument == dojo.doc) { return _18d; } } catch (e) { } dojo.destroy(_18d); } if (!_18a) { _18a = dojo.cache(_189, { sanitize: true }); } _18a = dojo.string.trim(_18a); if (_18b || _18a.match(/\$\{([^\}]+)\}/g)) { return (_18c[key] = _18a); } else { var node = dojo._toDom(_18a); if (node.nodeType != 1) { throw new Error("Invalid template: " + _18a); } return (_18c[key] = node); } }; if (dojo.isIE) { dojo.addOnWindowUnload(function () { var _18e = dijit._Templated._templateCache; for (var key in _18e) { var _18f = _18e[key]; if (typeof _18f == "object") { dojo.destroy(_18f); } delete _18e[key]; } }); } dojo.extend(dijit._Widget, { dojoAttachEvent: "", dojoAttachPoint: "", waiRole: "", waiState: "" });
} if (!dojo._hasResource["dijit._Container"]) {
    dojo._hasResource["dijit._Container"] = true; dojo.provide("dijit._Container"); dojo.declare("dijit._Container", null, { isContainer: true, buildRendering: function () { this.inherited(arguments); if (!this.containerNode) { this.containerNode = this.domNode; } }, addChild: function (_190, _191) { var _192 = this.containerNode; if (_191 && typeof _191 == "number") { var _193 = this.getChildren(); if (_193 && _193.length >= _191) { _192 = _193[_191 - 1].domNode; _191 = "after"; } } dojo.place(_190.domNode, _192, _191); if (this._started && !_190._started) { _190.startup(); } }, removeChild: function (_194) { if (typeof _194 == "number" && _194 > 0) { _194 = this.getChildren()[_194]; } if (_194) { var node = _194.domNode; if (node && node.parentNode) { node.parentNode.removeChild(node); } } }, hasChildren: function () { return this.getChildren().length > 0; }, destroyDescendants: function (_195) { dojo.forEach(this.getChildren(), function (_196) { _196.destroyRecursive(_195); }); }, _getSiblingOfChild: function (_197, dir) { var node = _197.domNode, _198 = (dir > 0 ? "nextSibling" : "previousSibling"); do { node = node[_198]; } while (node && (node.nodeType != 1 || !dijit.byNode(node))); return node && dijit.byNode(node); }, getIndexOfChild: function (_199) { return dojo.indexOf(this.getChildren(), _199); }, startup: function () {
        if (this._started) { return; } dojo.forEach(this.getChildren(), function (_19a) { _19a.startup(); });
        this.inherited(arguments);
    } 
});
 } if (!dojo._hasResource["dijit._Contained"]) {
    dojo._hasResource["dijit._Contained"] = true; 
dojo.provide("dijit._Contained"); dojo.declare("dijit._Contained", null, { getParent: function () { var _19b = dijit.getEnclosingWidget(this.domNode.parentNode); return _19b && _19b.isContainer ? _19b : null; }, _getSibling: function (_19c) { var node = this.domNode; do { node = node[_19c + "Sibling"]; } while (node && node.nodeType != 1); return node && dijit.byNode(node); }, getPreviousSibling: function () { return this._getSibling("previous"); }, getNextSibling: function () { return this._getSibling("next"); }, getIndexInParent: function () { var p = this.getParent(); if (!p || !p.getIndexOfChild) { return -1; } return p.getIndexOfChild(this); } }); } if (!dojo._hasResource["dijit.layout._LayoutWidget"]) {
    dojo._hasResource["dijit.layout._LayoutWidget"] = true; dojo.provide("dijit.layout._LayoutWidget"); dojo.declare("dijit.layout._LayoutWidget", [dijit._Widget, dijit._Container, dijit._Contained], { baseClass: "dijitLayoutContainer", isLayoutContainer: true, postCreate: function () { dojo.addClass(this.domNode, "dijitContainer"); this.inherited(arguments); }, startup: function () { if (this._started) { return; } this.inherited(arguments); var _19d = this.getParent && this.getParent(); if (!(_19d && _19d.isLayoutContainer)) { this.resize(); this.connect(dojo.isIE ? this.domNode : dojo.global, "onresize", function () { this.resize(); }); } }, resize: function (_19e, _19f) {
        var node = this.domNode; if (_19e) { dojo.marginBox(node, _19e); if (_19e.t) { node.style.top = _19e.t + "px"; } if (_19e.l) { node.style.left = _19e.l + "px"; } } var mb = _19f || {}; dojo.mixin(mb, _19e || {}); if (!("h" in mb) || !("w" in mb)) { mb = dojo.mixin(dojo.marginBox(node), mb); } var cs = dojo.getComputedStyle(node); var me = dojo._getMarginExtents(node, cs); var be = dojo._getBorderExtents(node, cs); var bb = (this._borderBox = { w: mb.w - (me.w + be.w), h: mb.h - (me.h + be.h) });
        var pe = dojo._getPadExtents(node, cs); this._contentBox = { l: dojo._toPixelValue(node, cs.paddingLeft), t: dojo._toPixelValue(node, cs.paddingTop), w: bb.w - pe.w, h: bb.h - pe.h };
        this.layout();
    }, layout: function () { }, _setupChild: function (_1a0) {
        dojo.addClass(_1a0.domNode, this.baseClass + "-child"); 
if (_1a0.baseClass) { dojo.addClass(_1a0.domNode, this.baseClass + "-" + _1a0.baseClass); } }, addChild: function (_1a1, _1a2) { this.inherited(arguments); if (this._started) { this._setupChild(_1a1); } }, removeChild: function (_1a3) { dojo.removeClass(_1a3.domNode, this.baseClass + "-child"); if (_1a3.baseClass) { dojo.removeClass(_1a3.domNode, this.baseClass + "-" + _1a3.baseClass); } this.inherited(arguments); } }); dijit.layout.marginBox2contentBox = function (node, mb) { var cs = dojo.getComputedStyle(node); var me = dojo._getMarginExtents(node, cs); var pb = dojo._getPadBorderExtents(node, cs); return { l: dojo._toPixelValue(node, cs.paddingLeft), t: dojo._toPixelValue(node, cs.paddingTop), w: mb.w - (me.w + pb.w), h: mb.h - (me.h + pb.h) }; }; (function () { var _1a4 = function (word) { return word.substring(0, 1).toUpperCase() + word.substring(1); }; var size = function (_1a5, dim) { _1a5.resize ? _1a5.resize(dim) : dojo.marginBox(_1a5.domNode, dim); dojo.mixin(_1a5, dojo.marginBox(_1a5.domNode)); dojo.mixin(_1a5, dim); }; dijit.layout.layoutChildren = function (_1a6, dim, _1a7) { dim = dojo.mixin({}, dim); dojo.addClass(_1a6, "dijitLayoutContainer"); _1a7 = dojo.filter(_1a7, function (item) { return item.layoutAlign != "client"; }).concat(dojo.filter(_1a7, function (item) { return item.layoutAlign == "client"; })); dojo.forEach(_1a7, function (_1a8) { var elm = _1a8.domNode, pos = _1a8.layoutAlign; var _1a9 = elm.style; _1a9.left = dim.l + "px"; _1a9.top = dim.t + "px"; _1a9.bottom = _1a9.right = "auto"; dojo.addClass(elm, "dijitAlign" + _1a4(pos)); if (pos == "top" || pos == "bottom") { size(_1a8, { w: dim.w }); dim.h -= _1a8.h; if (pos == "top") { dim.t += _1a8.h; } else { _1a9.top = dim.t + dim.h + "px"; } } else { if (pos == "left" || pos == "right") { size(_1a8, { h: dim.h }); dim.w -= _1a8.w; if (pos == "left") { dim.l += _1a8.w; } else { _1a9.left = dim.l + dim.w + "px"; } } else { if (pos == "client") { size(_1a8, dim); } } } }); }; })(); } if (!dojo._hasResource["dijit._CssStateMixin"]) { dojo._hasResource["dijit._CssStateMixin"] = true; dojo.provide("dijit._CssStateMixin"); dojo.declare("dijit._CssStateMixin", [], { cssStateNodes: {}, postCreate: function () { this.inherited(arguments); dojo.forEach(["onmouseenter", "onmouseleave", "onmousedown"], function (e) { this.connect(this.domNode, e, "_cssMouseEvent"); }, this); this.connect(this, "set", function (name, _1aa) { if (arguments.length >= 2 && { disabled: true, readOnly: true, checked: true, selected: true}[name]) { this._setStateClass(); } }); dojo.forEach(["_onFocus", "_onBlur"], function (ap) { this.connect(this, ap, "_setStateClass"); }, this); for (var ap in this.cssStateNodes) { this._trackMouseState(this[ap], this.cssStateNodes[ap]); } this._setStateClass(); }, _cssMouseEvent: function (_1ab) { if (!this.disabled) { switch (_1ab.type) { case "mouseenter": case "mouseover": this._hovering = true; this._active = this._mouseDown; break; case "mouseleave": case "mouseout": this._hovering = false; this._active = false; break; case "mousedown": this._active = true; this._mouseDown = true; var _1ac = this.connect(dojo.body(), "onmouseup", function () { this._active = false; this._mouseDown = false; this._setStateClass(); this.disconnect(_1ac); }); break; } this._setStateClass(); } }, _setStateClass: function () { var _1ad = this.baseClass.split(" "); function _1ae(_1af) { _1ad = _1ad.concat(dojo.map(_1ad, function (c) { return c + _1af; }), "dijit" + _1af); }; if (!this.isLeftToRight()) { _1ae("Rtl"); } if (this.checked) { _1ae("Checked"); } if (this.state) { _1ae(this.state); } if (this.selected) { _1ae("Selected"); } if (this.disabled) { _1ae("Disabled"); } else { if (this.readOnly) { _1ae("ReadOnly"); } else { if (this._active) { _1ae("Active"); } else { if (this._hovering) { _1ae("Hover"); } } } } if (this._focused) { _1ae("Focused"); } var tn = this.stateNode || this.domNode, _1b0 = {}; dojo.forEach(tn.className.split(" "), function (c) { _1b0[c] = true; }); if ("_stateClasses" in this) { dojo.forEach(this._stateClasses, function (c) { delete _1b0[c]; }); } dojo.forEach(_1ad, function (c) { _1b0[c] = true; }); var _1b1 = []; for (var c in _1b0) { _1b1.push(c); } tn.className = _1b1.join(" "); this._stateClasses = _1ad; }, _trackMouseState: function (node, _1b2) { var _1b3 = false, _1b4 = false, _1b5 = false; var self = this, cn = dojo.hitch(this, "connect", node); function _1b6() { var _1b7 = ("disabled" in self && self.disabled) || ("readonly" in self && self.readonly); dojo.toggleClass(node, _1b2 + "Hover", _1b3 && !_1b4 && !_1b7); dojo.toggleClass(node, _1b2 + "Active", _1b4 && !_1b7); dojo.toggleClass(node, _1b2 + "Focused", _1b5 && !_1b7); }; cn("onmouseenter", function () { _1b3 = true; _1b6(); }); cn("onmouseleave", function () { _1b3 = false; _1b4 = false; _1b6(); }); cn("onmousedown", function () { _1b4 = true; _1b6(); }); cn("onmouseup", function () { _1b4 = false; _1b6(); }); cn("onfocus", function () { _1b5 = true; _1b6(); }); cn("onblur", function () { _1b5 = false; _1b6(); }); this.connect(this, "set", function (name, _1b8) { if (name == "disabled" || name == "readOnly") { _1b6(); } }); } }); } if (!dojo._hasResource["dijit.form._FormWidget"]) {
    dojo._hasResource["dijit.form._FormWidget"] = true; dojo.provide("dijit.form._FormWidget"); dojo.declare("dijit.form._FormWidget", [dijit._Widget, dijit._Templated, dijit._CssStateMixin], { name: "", alt: "", value: "", type: "text", tabIndex: "0", disabled: false, intermediateChanges: false, scrollOnFocus: true, attributeMap: dojo.delegate(dijit._Widget.prototype.attributeMap, { value: "focusNode", id: "focusNode", tabIndex: "focusNode", alt: "focusNode", title: "focusNode" }), postMixInProperties: function () { this.nameAttrSetting = this.name ? ("name=\"" + this.name.replace(/'/g, "&quot;") + "\"") : ""; this.inherited(arguments); }, postCreate: function () { this.inherited(arguments); this.connect(this.domNode, "onmousedown", "_onMouseDown"); }, _setDisabledAttr: function (_1b9) { this.disabled = _1b9; dojo.attr(this.focusNode, "disabled", _1b9); if (this.valueNode) { dojo.attr(this.valueNode, "disabled", _1b9); } dijit.setWaiState(this.focusNode, "disabled", _1b9); if (_1b9) { this._hovering = false; this._active = false; var _1ba = "tabIndex" in this.attributeMap ? this.attributeMap.tabIndex : "focusNode"; dojo.forEach(dojo.isArray(_1ba) ? _1ba : [_1ba], function (_1bb) { var node = this[_1bb]; if (dojo.isWebKit || dijit.hasDefaultTabStop(node)) { node.setAttribute("tabIndex", "-1"); } else { node.removeAttribute("tabIndex"); } }, this); } else { this.focusNode.setAttribute("tabIndex", this.tabIndex); } }, setDisabled: function (_1bc) { dojo.deprecated("setDisabled(" + _1bc + ") is deprecated. Use set('disabled'," + _1bc + ") instead.", "", "2.0"); this.set("disabled", _1bc); }, _onFocus: function (e) { if (this.scrollOnFocus) { dojo.window.scrollIntoView(this.domNode); } this.inherited(arguments); }, isFocusable: function () { return !this.disabled && !this.readOnly && this.focusNode && (dojo.style(this.domNode, "display") != "none"); }, focus: function () { dijit.focus(this.focusNode); }, compare: function (val1, val2) { if (typeof val1 == "number" && typeof val2 == "number") { return (isNaN(val1) && isNaN(val2)) ? 0 : val1 - val2; } else { if (val1 > val2) { return 1; } else { if (val1 < val2) { return -1; } else { return 0; } } } }, onChange: function (_1bd) { }, _onChangeActive: false, _handleOnChange: function (_1be, _1bf) {
        this._lastValue = _1be;
        if (this._lastValueReported == undefined && (_1bf === null || !this._onChangeActive)) { this._resetValue = this._lastValueReported = _1be; }
        if ((this.intermediateChanges || _1bf || _1bf === undefined) && ((typeof _1be != typeof this._lastValueReported) || this.compare(_1be, this._lastValueReported) != 0)) {
            this._lastValueReported = _1be;
            if (this._onChangeActive) {
                if (this._onChangeHandle) { clearTimeout(this._onChangeHandle); } this._onChangeHandle = setTimeout(dojo.hitch(this, function () { this._onChangeHandle = null; this.onChange(_1be); }), 0);
            } 
        } 
    }, create: function () { this.inherited(arguments); this._onChangeActive = true; }, destroy: function () { if (this._onChangeHandle) { clearTimeout(this._onChangeHandle); this.onChange(this._lastValueReported); } this.inherited(arguments); }, setValue: function (_1c0) { dojo.deprecated("dijit.form._FormWidget:setValue(" + _1c0 + ") is deprecated.  Use set('value'," + _1c0 + ") instead.", "", "2.0"); this.set("value", _1c0); }, getValue: function () { dojo.deprecated(this.declaredClass + "::getValue() is deprecated. Use get('value') instead.", "", "2.0"); return this.get("value"); }, _onMouseDown: function (e) { if (!e.ctrlKey && this.isFocusable()) { var _1c1 = this.connect(dojo.body(), "onmouseup", function () { if (this.isFocusable()) { this.focus(); } this.disconnect(_1c1); }); } } 
}); dojo.declare("dijit.form._FormValueWidget", dijit.form._FormWidget, { readOnly: false, attributeMap: dojo.delegate(dijit.form._FormWidget.prototype.attributeMap, { value: "", readOnly: "focusNode" }), _setReadOnlyAttr: function (_1c2) { this.readOnly = _1c2; dojo.attr(this.focusNode, "readOnly", _1c2); dijit.setWaiState(this.focusNode, "readonly", _1c2); }, postCreate: function () { this.inherited(arguments); if (dojo.isIE) { this.connect(this.focusNode || this.domNode, "onkeydown", this._onKeyDown); } if (this._resetValue === undefined) { this._resetValue = this.value; } }, _setValueAttr: function (_1c3, _1c4) { this.value = _1c3; this._handleOnChange(_1c3, _1c4); }, _getValueAttr: function () { return this._lastValue; }, undo: function () { this._setValueAttr(this._lastValueReported, false); }, reset: function () { this._hasBeenBlurred = false; this._setValueAttr(this._resetValue, true); }, _onKeyDown: function (e) { if (e.keyCode == dojo.keys.ESCAPE && !(e.ctrlKey || e.altKey || e.metaKey)) { var te; if (dojo.isIE) { e.preventDefault(); te = document.createEventObject(); te.keyCode = dojo.keys.ESCAPE; te.shiftKey = e.shiftKey; e.srcElement.fireEvent("onkeypress", te); } } }, _layoutHackIE7: function () { if (dojo.isIE == 7) { var _1c5 = this.domNode; var _1c6 = _1c5.parentNode; var _1c7 = _1c5.firstChild || _1c5; var _1c8 = _1c7.style.filter; var _1c9 = this; while (_1c6 && _1c6.clientHeight == 0) { (function ping() { var _1ca = _1c9.connect(_1c6, "onscroll", function (e) { _1c9.disconnect(_1ca); _1c7.style.filter = (new Date()).getMilliseconds(); setTimeout(function () { _1c7.style.filter = _1c8; }, 0); }); })(); _1c6 = _1c6.parentNode; } } } });
} if (!dojo._hasResource["dijit.dijit"]) { dojo._hasResource["dijit.dijit"] = true; dojo.provide("dijit.dijit"); } if (!dojo._hasResource["dijit._HasDropDown"]) { dojo._hasResource["dijit._HasDropDown"] = true; dojo.provide("dijit._HasDropDown"); dojo.declare("dijit._HasDropDown", null, { _buttonNode: null, _arrowWrapperNode: null, _popupStateNode: null, _aroundNode: null, dropDown: null, autoWidth: true, forceWidth: false, maxHeight: 0, dropDownPosition: ["below", "above"], _stopClickEvents: true, _onDropDownMouseDown: function (e) { if (this.disabled || this.readOnly) { return; } this._docHandler = this.connect(dojo.doc, "onmouseup", "_onDropDownMouseUp"); this.toggleDropDown(); }, _onDropDownMouseUp: function (e) { if (e && this._docHandler) { this.disconnect(this._docHandler); } var _1cb = this.dropDown, _1cc = false; if (e && this._opened) { var c = dojo.position(this._buttonNode, true); if (!(e.pageX >= c.x && e.pageX <= c.x + c.w) || !(e.pageY >= c.y && e.pageY <= c.y + c.h)) { var t = e.target; while (t && !_1cc) { if (dojo.hasClass(t, "dijitPopup")) { _1cc = true; } else { t = t.parentNode; } } if (_1cc) { t = e.target; if (_1cb.onItemClick) { var _1cd; while (t && !(_1cd = dijit.byNode(t))) { t = t.parentNode; } if (_1cd && _1cd.onClick && _1cd.getParent) { _1cd.getParent().onItemClick(_1cd, e); } } return; } } } if (this._opened && _1cb.focus) { window.setTimeout(dojo.hitch(_1cb, "focus"), 1); } }, _onDropDownClick: function (e) { if (this._stopClickEvents) { dojo.stopEvent(e); } }, _setupDropdown: function () { this._buttonNode = this._buttonNode || this.focusNode || this.domNode; this._popupStateNode = this._popupStateNode || this.focusNode || this._buttonNode; this._aroundNode = this._aroundNode || this.domNode; this.connect(this._buttonNode, "onmousedown", "_onDropDownMouseDown"); this.connect(this._buttonNode, "onclick", "_onDropDownClick"); this.connect(this._buttonNode, "onkeydown", "_onDropDownKeydown"); this.connect(this._buttonNode, "onkeyup", "_onKey"); if (this._setStateClass) { this.connect(this, "openDropDown", "_setStateClass"); this.connect(this, "closeDropDown", "_setStateClass"); } var _1ce = { "after": this.isLeftToRight() ? "Right" : "Left", "before": this.isLeftToRight() ? "Left" : "Right", "above": "Up", "below": "Down", "left": "Left", "right": "Right"}[this.dropDownPosition[0]] || this.dropDownPosition[0] || "Down"; dojo.addClass(this._arrowWrapperNode || this._buttonNode, "dijit" + _1ce + "ArrowButton"); }, postCreate: function () { this._setupDropdown(); this.inherited(arguments); }, destroyDescendants: function () { if (this.dropDown) { if (!this.dropDown._destroyed) { this.dropDown.destroyRecursive(); } delete this.dropDown; } this.inherited(arguments); }, _onDropDownKeydown: function (e) { if (e.keyCode == dojo.keys.DOWN_ARROW || e.keyCode == dojo.keys.ENTER || e.keyCode == dojo.keys.SPACE) { e.preventDefault(); } }, _onKey: function (e) { if (this.disabled || this.readOnly) { return; } var d = this.dropDown; if (d && this._opened && d.handleKey) { if (d.handleKey(e) === false) { return; } } if (d && this._opened && e.keyCode == dojo.keys.ESCAPE) { this.toggleDropDown(); } else { if (d && !this._opened && (e.keyCode == dojo.keys.DOWN_ARROW || e.keyCode == dojo.keys.ENTER || e.keyCode == dojo.keys.SPACE)) { this.toggleDropDown(); if (d.focus) { setTimeout(dojo.hitch(d, "focus"), 1); } } } }, _onBlur: function () { this.closeDropDown(); this.inherited(arguments); }, isLoaded: function () { return true; }, loadDropDown: function (_1cf) { _1cf(); }, toggleDropDown: function () { if (this.disabled || this.readOnly) { return; } this.focus(); var _1d0 = this.dropDown; if (!_1d0) { return; } if (!this._opened) { if (!this.isLoaded()) { this.loadDropDown(dojo.hitch(this, "openDropDown")); return; } else { this.openDropDown(); } } else { this.closeDropDown(); } }, openDropDown: function () { var _1d1 = this.dropDown; var _1d2 = _1d1.domNode; var self = this; if (!this._preparedNode) { dijit.popup.moveOffScreen(_1d2); this._preparedNode = true; if (_1d2.style.width) { this._explicitDDWidth = true; } if (_1d2.style.height) { this._explicitDDHeight = true; } } if (this.maxHeight || this.forceWidth || this.autoWidth) { var _1d3 = { display: "", visibility: "hidden" }; if (!this._explicitDDWidth) { _1d3.width = ""; } if (!this._explicitDDHeight) { _1d3.height = ""; } dojo.style(_1d2, _1d3); var mb = dojo.marginBox(_1d2); var _1d4 = (this.maxHeight && mb.h > this.maxHeight); dojo.style(_1d2, { overflowX: "hidden", overflowY: _1d4 ? "auto" : "hidden" }); if (_1d4) { mb.h = this.maxHeight; if ("w" in mb) { mb.w += 16; } } else { delete mb.h; } delete mb.t; delete mb.l; if (this.forceWidth) { mb.w = this.domNode.offsetWidth; } else { if (this.autoWidth) { mb.w = Math.max(mb.w, this.domNode.offsetWidth); } else { delete mb.w; } } if (dojo.isFunction(_1d1.resize)) { _1d1.resize(mb); } else { dojo.marginBox(_1d2, mb); } } var _1d5 = dijit.popup.open({ parent: this, popup: _1d1, around: this._aroundNode, orient: dijit.getPopupAroundAlignment((this.dropDownPosition && this.dropDownPosition.length) ? this.dropDownPosition : ["below"], this.isLeftToRight()), onExecute: function () { self.closeDropDown(true); }, onCancel: function () { self.closeDropDown(true); }, onClose: function () { dojo.attr(self._popupStateNode, "popupActive", false); dojo.removeClass(self._popupStateNode, "dijitHasDropDownOpen"); self._opened = false; self.state = ""; } }); dojo.attr(this._popupStateNode, "popupActive", "true"); dojo.addClass(self._popupStateNode, "dijitHasDropDownOpen"); this._opened = true; this.state = "Opened"; return _1d5; }, closeDropDown: function (_1d6) { if (this._opened) { if (_1d6) { this.focus(); } dijit.popup.close(this.dropDown); this._opened = false; this.state = ""; } } }); } if (!dojo._hasResource["dijit.form.Button"]) { dojo._hasResource["dijit.form.Button"] = true; dojo.provide("dijit.form.Button"); dojo.declare("dijit.form.Button", dijit.form._FormWidget, { label: "", showLabel: true, iconClass: "", type: "button", baseClass: "dijitButton", templateString: dojo.cache("dijit.form", "templates/Button.html", "<span class=\"dijit dijitReset dijitInline\"\r\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\r\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\r\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\r\n\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t></span\r\n\t\t></span\r\n\t></span\r\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\"\r\n\t\tdojoAttachPoint=\"valueNode\"\r\n/></span>\r\n"), attributeMap: dojo.delegate(dijit.form._FormWidget.prototype.attributeMap, { value: "valueNode", iconClass: { node: "iconNode", type: "class"} }), _onClick: function (e) { if (this.disabled) { return false; } this._clicked(); return this.onClick(e); }, _onButtonClick: function (e) { if (this._onClick(e) === false) { e.preventDefault(); } else { if (this.type == "submit" && !(this.valueNode || this.focusNode).form) { for (var node = this.domNode; node.parentNode; node = node.parentNode) { var _1d7 = dijit.byNode(node); if (_1d7 && typeof _1d7._onSubmit == "function") { _1d7._onSubmit(e); break; } } } else { if (this.valueNode) { this.valueNode.click(); e.preventDefault(); } } } }, _fillContent: function (_1d8) { if (_1d8 && (!this.params || !("label" in this.params))) { this.set("label", _1d8.innerHTML); } }, postCreate: function () { dojo.setSelectable(this.focusNode, false); this.inherited(arguments); }, _setShowLabelAttr: function (val) { if (this.containerNode) { dojo.toggleClass(this.containerNode, "dijitDisplayNone", !val); } this.showLabel = val; }, onClick: function (e) { return true; }, _clicked: function (e) { }, setLabel: function (_1d9) { dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.", "", "2.0"); this.set("label", _1d9); }, _setLabelAttr: function (_1da) { this.containerNode.innerHTML = this.label = _1da; if (this.showLabel == false && !this.params.title) { this.titleNode.title = dojo.trim(this.containerNode.innerText || this.containerNode.textContent || ""); } } }); dojo.declare("dijit.form.DropDownButton", [dijit.form.Button, dijit._Container, dijit._HasDropDown], { baseClass: "dijitDropDownButton", templateString: dojo.cache("dijit.form", "templates/DropDownButton.html", "<span class=\"dijit dijitReset dijitInline\"\r\n\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\r\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\r\n\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\r\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\r\n\t\t\t\tid=\"${id}_label\"\r\n\t\t\t></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t></span\r\n\t></span\r\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\"\r\n\t\tdojoAttachPoint=\"valueNode\"\r\n/></span>\r\n"), _fillContent: function () { if (this.srcNodeRef) { var _1db = dojo.query("*", this.srcNodeRef); dijit.form.DropDownButton.superclass._fillContent.call(this, _1db[0]); this.dropDownContainer = this.srcNodeRef; } }, startup: function () { if (this._started) { return; } if (!this.dropDown) { var _1dc = dojo.query("[widgetId]", this.dropDownContainer)[0]; this.dropDown = dijit.byNode(_1dc); delete this.dropDownContainer; } dijit.popup.moveOffScreen(this.dropDown.domNode); this.inherited(arguments); }, isLoaded: function () { var _1dd = this.dropDown; return (!_1dd.href || _1dd.isLoaded); }, loadDropDown: function () { var _1de = this.dropDown; if (!_1de) { return; } if (!this.isLoaded()) { var _1df = dojo.connect(_1de, "onLoad", this, function () { dojo.disconnect(_1df); this.openDropDown(); }); _1de.refresh(); } else { this.openDropDown(); } }, isFocusable: function () { return this.inherited(arguments) && !this._mouseDown; } }); dojo.declare("dijit.form.ComboButton", dijit.form.DropDownButton, { templateString: dojo.cache("dijit.form", "templates/ComboButton.html", "<table class=\"dijit dijitReset dijitInline dijitLeft\"\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\r\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></div\r\n\t\t></td\r\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\r\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\r\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\r\n\t\t\ttitle=\"${optionsTitle}\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t\t><td style=\"display:none !important;\"\r\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\r\n\t\t/></td></tr></tbody\r\n></table>\r\n"), attributeMap: dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap), { id: "", tabIndex: ["focusNode", "titleNode"], title: "titleNode" }), optionsTitle: "", baseClass: "dijitComboButton", cssStateNodes: { "buttonNode": "dijitButtonNode", "titleNode": "dijitButtonContents", "_popupStateNode": "dijitDownArrowButton" }, _focusedNode: null, _onButtonKeyPress: function (evt) { if (evt.charOrCode == dojo.keys[this.isLeftToRight() ? "RIGHT_ARROW" : "LEFT_ARROW"]) { dijit.focus(this._popupStateNode); dojo.stopEvent(evt); } }, _onArrowKeyPress: function (evt) { if (evt.charOrCode == dojo.keys[this.isLeftToRight() ? "LEFT_ARROW" : "RIGHT_ARROW"]) { dijit.focus(this.titleNode); dojo.stopEvent(evt); } }, focus: function (_1e0) { dijit.focus(_1e0 == "start" ? this.titleNode : this._popupStateNode); } }); dojo.declare("dijit.form.ToggleButton", dijit.form.Button, { baseClass: "dijitToggleButton", checked: false, attributeMap: dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap), { checked: "focusNode" }), _clicked: function (evt) { this.set("checked", !this.checked); }, _setCheckedAttr: function (_1e1, _1e2) { this.checked = _1e1; dojo.attr(this.focusNode || this.domNode, "checked", _1e1); dijit.setWaiState(this.focusNode || this.domNode, "pressed", _1e1); this._handleOnChange(_1e1, _1e2); }, setChecked: function (_1e3) { dojo.deprecated("setChecked(" + _1e3 + ") is deprecated. Use set('checked'," + _1e3 + ") instead.", "", "2.0"); this.set("checked", _1e3); }, reset: function () { this._hasBeenBlurred = false; this.set("checked", this.params.checked || false); } }); } if (!dojo._hasResource["dijit.form.DropDownButton"]) { dojo._hasResource["dijit.form.DropDownButton"] = true; dojo.provide("dijit.form.DropDownButton"); } if (!dojo._hasResource["dijit._KeyNavContainer"]) {
    dojo._hasResource["dijit._KeyNavContainer"] = true; dojo.provide("dijit._KeyNavContainer"); dojo.declare("dijit._KeyNavContainer", dijit._Container, { tabIndex: "0", _keyNavCodes: {}, connectKeyNavHandlers: function (_1e4, _1e5) { var _1e6 = (this._keyNavCodes = {}); var prev = dojo.hitch(this, this.focusPrev); var next = dojo.hitch(this, this.focusNext); dojo.forEach(_1e4, function (code) { _1e6[code] = prev; }); dojo.forEach(_1e5, function (code) { _1e6[code] = next; }); this.connect(this.domNode, "onkeypress", "_onContainerKeypress"); this.connect(this.domNode, "onfocus", "_onContainerFocus"); }, startupKeyNavChildren: function () { dojo.forEach(this.getChildren(), dojo.hitch(this, "_startupChild")); }, addChild: function (_1e7, _1e8) { dijit._KeyNavContainer.superclass.addChild.apply(this, arguments); this._startupChild(_1e7); }, focus: function () { this.focusFirstChild(); }, focusFirstChild: function () { var _1e9 = this._getFirstFocusableChild(); if (_1e9) { this.focusChild(_1e9); } }, focusNext: function () {
        var _1ea = this._getNextFocusableChild(this.focusedChild, 1);
        this.focusChild(_1ea);
    }, focusPrev: function () { var _1eb = this._getNextFocusableChild(this.focusedChild, -1); this.focusChild(_1eb, true); }, focusChild: function (_1ec, last) { if (this.focusedChild && _1ec !== this.focusedChild) { this._onChildBlur(this.focusedChild); } _1ec.focus(last ? "end" : "start"); this.focusedChild = _1ec; }, _startupChild: function (_1ed) { _1ed.set("tabIndex", "-1"); this.connect(_1ed, "_onFocus", function () { _1ed.set("tabIndex", this.tabIndex); }); this.connect(_1ed, "_onBlur", function () { _1ed.set("tabIndex", "-1"); }); }, _onContainerFocus: function (evt) { if (evt.target !== this.domNode) { return; } this.focusFirstChild(); dojo.attr(this.domNode, "tabIndex", "-1"); }, _onBlur: function (evt) { if (this.tabIndex) { dojo.attr(this.domNode, "tabIndex", this.tabIndex); } this.inherited(arguments); }, _onContainerKeypress: function (evt) { if (evt.ctrlKey || evt.altKey) { return; } var func = this._keyNavCodes[evt.charOrCode]; if (func) { func(); dojo.stopEvent(evt); } }, _onChildBlur: function (_1ee) { }, _getFirstFocusableChild: function () { return this._getNextFocusableChild(null, 1); }, _getNextFocusableChild: function (_1ef, dir) { if (_1ef) { _1ef = this._getSiblingOfChild(_1ef, dir); } var _1f0 = this.getChildren(); for (var i = 0; i < _1f0.length; i++) { if (!_1ef) { _1ef = _1f0[(dir > 0) ? 0 : (_1f0.length - 1)]; } if (_1ef.isFocusable()) { return _1ef; } _1ef = this._getSiblingOfChild(_1ef, dir); } return null; } 
});
} if (!dojo._hasResource["dijit.ToolbarSeparator"]) { dojo._hasResource["dijit.ToolbarSeparator"] = true; dojo.provide("dijit.ToolbarSeparator"); dojo.declare("dijit.ToolbarSeparator", [dijit._Widget, dijit._Templated], { templateString: "<div class=\"dijitToolbarSeparator dijitInline\" waiRole=\"presentation\"></div>", postCreate: function () { dojo.setSelectable(this.domNode, false); }, isFocusable: function () { return false; } }); } if (!dojo._hasResource["dijit.Toolbar"]) { dojo._hasResource["dijit.Toolbar"] = true; dojo.provide("dijit.Toolbar"); dojo.declare("dijit.Toolbar", [dijit._Widget, dijit._Templated, dijit._KeyNavContainer], { templateString: "<div class=\"dijit\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">" + "</div>", baseClass: "dijitToolbar", postCreate: function () { this.connectKeyNavHandlers(this.isLeftToRight() ? [dojo.keys.LEFT_ARROW] : [dojo.keys.RIGHT_ARROW], this.isLeftToRight() ? [dojo.keys.RIGHT_ARROW] : [dojo.keys.LEFT_ARROW]); this.inherited(arguments); }, startup: function () { if (this._started) { return; } this.startupKeyNavChildren(); this.inherited(arguments); } }); } if (!dojo._hasResource["dojo.html"]) { dojo._hasResource["dojo.html"] = true; dojo.provide("dojo.html"); (function () { var _1f1 = 0, d = dojo; dojo.html._secureForInnerHtml = function (cont) { return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig, ""); }; dojo.html._emptyNode = dojo.empty; dojo.html._setNodeContent = function (node, cont) { d.empty(node); if (cont) { if (typeof cont == "string") { cont = d._toDom(cont, node.ownerDocument); } if (!cont.nodeType && d.isArrayLike(cont)) { for (var _1f2 = cont.length, i = 0; i < cont.length; i = _1f2 == cont.length ? i + 1 : 0) { d.place(cont[i], node, "last"); } } else { d.place(cont, node, "last"); } } return node; }; dojo.declare("dojo.html._ContentSetter", null, { node: "", content: "", id: "", cleanContent: false, extractContent: false, parseContent: false, constructor: function (_1f3, node) { dojo.mixin(this, _1f3 || {}); node = this.node = dojo.byId(this.node || node); if (!this.id) { this.id = ["Setter", (node) ? node.id || node.tagName : "", _1f1++].join("_"); } }, set: function (cont, _1f4) { if (undefined !== cont) { this.content = cont; } if (_1f4) { this._mixin(_1f4); } this.onBegin(); this.setContent(); this.onEnd(); return this.node; }, setContent: function () { var node = this.node; if (!node) { throw new Error(this.declaredClass + ": setContent given no node"); } try { node = dojo.html._setNodeContent(node, this.content); } catch (e) { var _1f5 = this.onContentError(e); try { node.innerHTML = _1f5; } catch (e) { console.error("Fatal " + this.declaredClass + ".setContent could not change content due to " + e.message, e); } } this.node = node; }, empty: function () { if (this.parseResults && this.parseResults.length) { dojo.forEach(this.parseResults, function (w) { if (w.destroy) { w.destroy(); } }); delete this.parseResults; } dojo.html._emptyNode(this.node); }, onBegin: function () { var cont = this.content; if (dojo.isString(cont)) { if (this.cleanContent) { cont = dojo.html._secureForInnerHtml(cont); } if (this.extractContent) { var _1f6 = cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im); if (_1f6) { cont = _1f6[1]; } } } this.empty(); this.content = cont; return this.node; }, onEnd: function () { if (this.parseContent) { this._parse(); } return this.node; }, tearDown: function () { delete this.parseResults; delete this.node; delete this.content; }, onContentError: function (err) { return "Error occured setting content: " + err; }, _mixin: function (_1f7) { var _1f8 = {}, key; for (key in _1f7) { if (key in _1f8) { continue; } this[key] = _1f7[key]; } }, _parse: function () { var _1f9 = this.node; try { this.parseResults = dojo.parser.parse({ rootNode: _1f9, dir: this.dir, lang: this.lang }); } catch (e) { this._onError("Content", e, "Error parsing in _ContentSetter#" + this.id); } }, _onError: function (type, err, _1fa) { var _1fb = this["on" + type + "Error"].call(this, err); if (_1fa) { console.error(_1fa, err); } else { if (_1fb) { dojo.html._setNodeContent(this.node, _1fb, true); } } } }); dojo.html.set = function (node, cont, _1fc) { if (undefined == cont) { console.warn("dojo.html.set: no cont argument provided, using empty string"); cont = ""; } if (!_1fc) { return dojo.html._setNodeContent(node, cont, true); } else { var op = new dojo.html._ContentSetter(dojo.mixin(_1fc, { content: cont, node: node })); return op.set(); } }; })(); } if (!dojo._hasResource["dojo.i18n"]) { dojo._hasResource["dojo.i18n"] = true; dojo.provide("dojo.i18n"); dojo.i18n.getLocalization = function (_1fd, _1fe, _1ff) { _1ff = dojo.i18n.normalizeLocale(_1ff); var _200 = _1ff.split("-"); var _201 = [_1fd, "nls", _1fe].join("."); var _202 = dojo._loadedModules[_201]; if (_202) { var _203; for (var i = _200.length; i > 0; i--) { var loc = _200.slice(0, i).join("_"); if (_202[loc]) { _203 = _202[loc]; break; } } if (!_203) { _203 = _202.ROOT; } if (_203) { var _204 = function () { }; _204.prototype = _203; return new _204(); } } throw new Error("Bundle not found: " + _1fe + " in " + _1fd + " , locale=" + _1ff); }; dojo.i18n.normalizeLocale = function (_205) { var _206 = _205 ? _205.toLowerCase() : dojo.locale; if (_206 == "root") { _206 = "ROOT"; } return _206; }; dojo.i18n._requireLocalization = function (_207, _208, _209, _20a) { var _20b = dojo.i18n.normalizeLocale(_209); var _20c = [_207, "nls", _208].join("."); var _20d = ""; if (_20a) { var _20e = _20a.split(","); for (var i = 0; i < _20e.length; i++) { if (_20b["indexOf"](_20e[i]) == 0) { if (_20e[i].length > _20d.length) { _20d = _20e[i]; } } } if (!_20d) { _20d = "ROOT"; } } var _20f = _20a ? _20d : _20b; var _210 = dojo._loadedModules[_20c]; var _211 = null; if (_210) { if (dojo.config.localizationComplete && _210._built) { return; } var _212 = _20f.replace(/-/g, "_"); var _213 = _20c + "." + _212; _211 = dojo._loadedModules[_213]; } if (!_211) { _210 = dojo["provide"](_20c); var syms = dojo._getModuleSymbols(_207); var _214 = syms.concat("nls").join("/"); var _215; dojo.i18n._searchLocalePath(_20f, _20a, function (loc) { var _216 = loc.replace(/-/g, "_"); var _217 = _20c + "." + _216; var _218 = false; if (!dojo._loadedModules[_217]) { dojo["provide"](_217); var _219 = [_214]; if (loc != "ROOT") { _219.push(loc); } _219.push(_208); var _21a = _219.join("/") + ".js"; _218 = dojo._loadPath(_21a, null, function (hash) { var _21b = function () { }; _21b.prototype = _215; _210[_216] = new _21b(); for (var j in hash) { _210[_216][j] = hash[j]; } }); } else { _218 = true; } if (_218 && _210[_216]) { _215 = _210[_216]; } else { _210[_216] = _215; } if (_20a) { return true; } }); } if (_20a && _20b != _20d) { _210[_20b.replace(/-/g, "_")] = _210[_20d.replace(/-/g, "_")]; } }; (function () { var _21c = dojo.config.extraLocale; if (_21c) { if (!_21c instanceof Array) { _21c = [_21c]; } var req = dojo.i18n._requireLocalization; dojo.i18n._requireLocalization = function (m, b, _21d, _21e) { req(m, b, _21d, _21e); if (_21d) { return; } for (var i = 0; i < _21c.length; i++) { req(m, b, _21c[i], _21e); } }; } })(); dojo.i18n._searchLocalePath = function (_21f, down, _220) { _21f = dojo.i18n.normalizeLocale(_21f); var _221 = _21f.split("-"); var _222 = []; for (var i = _221.length; i > 0; i--) { _222.push(_221.slice(0, i).join("-")); } _222.push(false); if (down) { _222.reverse(); } for (var j = _222.length - 1; j >= 0; j--) { var loc = _222[j] || "ROOT"; var stop = _220(loc); if (stop) { break; } } }; dojo.i18n._preloadLocalizations = function (_223, _224) { function _225(_226) { _226 = dojo.i18n.normalizeLocale(_226); dojo.i18n._searchLocalePath(_226, true, function (loc) { for (var i = 0; i < _224.length; i++) { if (_224[i] == loc) { dojo["require"](_223 + "_" + loc); return true; } } return false; }); }; _225(); var _227 = dojo.config.extraLocale || []; for (var i = 0; i < _227.length; i++) { _225(_227[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, baseClass: "dijitContentPane", doLayout: true, ioArgs: {}, isContainer: true, isLayoutContainer: true, onLoadDeferred: null, attributeMap: dojo.delegate(dijit._Widget.prototype.attributeMap, { title: [] }), postMixInProperties: function () { this.inherited(arguments); if (!this.href && this.srcNodeRef && this.srcNodeRef.innerHTML) { this.isLoaded = true; } }, buildRendering: function () { this.inherited(arguments); if (!this.containerNode) { this.containerNode = this.domNode; } }, postCreate: function () { this.domNode.title = ""; if (!dojo.attr(this.domNode, "role")) { dijit.setWaiRole(this.domNode, "group"); } dojo.addClass(this.domNode, this.baseClass); }, startup: function () { if (this._started) { return; } var _228 = dijit._Contained.prototype.getParent.call(this); this._childOfLayoutWidget = _228 && _228.isLayoutContainer; this._needLayout = !this._childOfLayoutWidget; if (this.isLoaded) { dojo.forEach(this.getChildren(), function (_229) { _229.startup(); }); } if (this._isShown() || this.preload) { this._onShow(); } this.inherited(arguments); }, _checkIfSingleChild: function () { var _22a = dojo.query("> *", this.containerNode).filter(function (node) { return node.tagName !== "SCRIPT"; }), _22b = _22a.filter(function (node) { return dojo.hasAttr(node, "dojoType") || dojo.hasAttr(node, "widgetId"); }), _22c = dojo.filter(_22b.map(dijit.byNode), function (_22d) { return _22d && _22d.domNode && _22d.resize; }); if (_22a.length == _22b.length && _22c.length == 1) { this._singleChild = _22c[0]; } else { delete this._singleChild; } dojo.toggleClass(this.containerNode, this.baseClass + "SingleChild", !!this._singleChild); }, setHref: function (href) { dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.", "", "2.0"); return this.set("href", href); }, _setHrefAttr: function (href) { this.cancel(); this.onLoadDeferred = new dojo.Deferred(dojo.hitch(this, "cancel")); this.href = href; if (this._created && (this.preload || this._isShown())) { this._load(); } else { this._hrefChanged = true; } return this.onLoadDeferred; }, setContent: function (data) { dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.", "", "2.0"); this.set("content", data); }, _setContentAttr: function (data) { this.href = ""; this.cancel(); this.onLoadDeferred = new dojo.Deferred(dojo.hitch(this, "cancel")); this._setContent(data || ""); this._isDownloaded = false; return this.onLoadDeferred; }, _getContentAttr: function () { return this.containerNode.innerHTML; }, cancel: function () { if (this._xhrDfd && (this._xhrDfd.fired == -1)) { this._xhrDfd.cancel(); } delete this._xhrDfd; this.onLoadDeferred = null; }, uninitialize: function () { if (this._beingDestroyed) { this.cancel(); } this.inherited(arguments); }, destroyRecursive: function (_22e) { if (this._beingDestroyed) { return; } this.inherited(arguments); }, resize: function (_22f, _230) { if (!this._wasShown) { this._onShow(); } this._resizeCalled = true; if (_22f) { dojo.marginBox(this.domNode, _22f); } var cn = this.containerNode; if (cn === this.domNode) { var mb = _230 || {}; dojo.mixin(mb, _22f || {}); if (!("h" in mb) || !("w" in mb)) { mb = dojo.mixin(dojo.marginBox(cn), mb); } this._contentBox = dijit.layout.marginBox2contentBox(cn, mb); } else { this._contentBox = dojo.contentBox(cn); } this._layoutChildren(); }, _isShown: function () { if (this._childOfLayoutWidget) { if (this._resizeCalled && "open" in this) { return this.open; } return this._resizeCalled; } else { if ("open" in this) { return this.open; } else { var node = this.domNode; return (node.style.display != "none") && (node.style.visibility != "hidden") && !dojo.hasClass(node, "dijitHidden"); } } }, _onShow: function () { if (this.href) { if (!this._xhrDfd && (!this.isLoaded || this._hrefChanged || this.refreshOnShow)) { this.refresh(); } } else { if (!this._childOfLayoutWidget && this._needLayout) { this._layoutChildren(); } } this.inherited(arguments); this._wasShown = true; }, refresh: function () { this.cancel(); this.onLoadDeferred = new dojo.Deferred(dojo.hitch(this, "cancel")); this._load(); return this.onLoadDeferred; }, _load: function () { this._setContent(this.onDownloadStart(), true); var self = this; var _231 = { preventCache: (this.preventCache || this.refreshOnShow), url: this.href, handleAs: "text" }; if (dojo.isObject(this.ioArgs)) { dojo.mixin(_231, this.ioArgs); } var hand = (this._xhrDfd = (this.ioMethod || dojo.xhrGet)(_231)); hand.addCallback(function (html) { try { self._isDownloaded = true; self._setContent(html, false); self.onDownloadEnd(); } catch (err) { self._onError("Content", err); } delete self._xhrDfd; return html; }); hand.addErrback(function (err) { if (!hand.canceled) { self._onError("Download", err); } delete self._xhrDfd; return err; }); delete this._hrefChanged; }, _onLoadHandler: function (data) { this.isLoaded = true; try { this.onLoadDeferred.callback(data); this.onLoad(data); } catch (e) { console.error("Error " + this.widgetId + " running custom onLoad code: " + e.message); } }, _onUnloadHandler: function () { this.isLoaded = false; try { this.onUnload(); } catch (e) { console.error("Error " + this.widgetId + " running custom onUnload code: " + e.message); } }, destroyDescendants: function () { if (this.isLoaded) { this._onUnloadHandler(); } var _232 = this._contentSetter; dojo.forEach(this.getChildren(), function (_233) { if (_233.destroyRecursive) { _233.destroyRecursive(); } }); if (_232) { dojo.forEach(_232.parseResults, function (_234) { if (_234.destroyRecursive && _234.domNode && _234.domNode.parentNode == dojo.body()) { _234.destroyRecursive(); } }); delete _232.parseResults; } dojo.html._emptyNode(this.containerNode); delete this._singleChild; }, _setContent: function (cont, _235) { this.destroyDescendants(); var _236 = this._contentSetter; if (!(_236 && _236 instanceof dojo.html._ContentSetter)) { _236 = this._contentSetter = new dojo.html._ContentSetter({ node: this.containerNode, _onError: dojo.hitch(this, this._onError), onContentError: dojo.hitch(this, function (e) { var _237 = this.onContentError(e); try { this.containerNode.innerHTML = _237; } catch (e) { console.error("Fatal " + this.id + " could not change content due to " + e.message, e); } }) }); } var _238 = dojo.mixin({ cleanContent: this.cleanContent, extractContent: this.extractContent, parseContent: this.parseOnLoad, dir: this.dir, lang: this.lang }, this._contentSetterParams || {}); dojo.mixin(_236, _238); _236.set((dojo.isObject(cont) && cont.domNode) ? cont.domNode : cont); delete this._contentSetterParams; if (!_235) { dojo.forEach(this.getChildren(), function (_239) { if (!this.parseOnLoad || _239.getParent) { _239.startup(); } }, this); this._scheduleLayout(); this._onLoadHandler(cont); } }, _onError: function (type, err, _23a) { this.onLoadDeferred.errback(err); var _23b = this["on" + type + "Error"].call(this, err); if (_23a) { console.error(_23a, err); } else { if (_23b) { this._setContent(_23b, true); } } }, _scheduleLayout: function () { if (this._isShown()) { this._layoutChildren(); } else { this._needLayout = true; } }, _layoutChildren: function () { if (this.doLayout) { this._checkIfSingleChild(); } if (this._singleChild && this._singleChild.resize) { var cb = this._contentBox || dojo.contentBox(this.containerNode); this._singleChild.resize({ w: cb.w, h: cb.h }); } else { dojo.forEach(this.getChildren(), function (_23c) { if (_23c.resize) { _23c.resize(); } }); } delete this._needLayout; }, onLoad: function (data) { }, onUnload: function () { }, onDownloadStart: function () { return this.loadingMessage; }, onContentError: function (_23d) { }, onDownloadError: function (_23e) { return this.errorMessage; }, onDownloadEnd: function () { } }); } if (!dojo._hasResource["dijit.form._FormMixin"]) { dojo._hasResource["dijit.form._FormMixin"] = true; dojo.provide("dijit.form._FormMixin"); dojo.declare("dijit.form._FormMixin", null, { reset: function () { dojo.forEach(this.getDescendants(), function (_23f) { if (_23f.reset) { _23f.reset(); } }); }, validate: function () { var _240 = false; return dojo.every(dojo.map(this.getDescendants(), function (_241) { _241._hasBeenBlurred = true; var _242 = _241.disabled || !_241.validate || _241.validate(); if (!_242 && !_240) { dojo.window.scrollIntoView(_241.containerNode || _241.domNode); _241.focus(); _240 = true; } return _242; }), function (item) { return item; }); }, setValues: function (val) { dojo.deprecated(this.declaredClass + "::setValues() is deprecated. Use set('value', val) instead.", "", "2.0"); return this.set("value", val); }, _setValueAttr: function (obj) { var map = {}; dojo.forEach(this.getDescendants(), function (_243) { if (!_243.name) { return; } var _244 = map[_243.name] || (map[_243.name] = []); _244.push(_243); }); for (var name in map) { if (!map.hasOwnProperty(name)) { continue; } var _245 = map[name], _246 = dojo.getObject(name, false, obj); if (_246 === undefined) { continue; } if (!dojo.isArray(_246)) { _246 = [_246]; } if (typeof _245[0].checked == "boolean") { dojo.forEach(_245, function (w, i) { w.set("value", dojo.indexOf(_246, w.value) != -1); }); } else { if (_245[0].multiple) { _245[0].set("value", _246); } else { dojo.forEach(_245, function (w, i) { w.set("value", _246[i]); }); } } } }, getValues: function () { dojo.deprecated(this.declaredClass + "::getValues() is deprecated. Use get('value') instead.", "", "2.0"); return this.get("value"); }, _getValueAttr: function () { var obj = {}; dojo.forEach(this.getDescendants(), function (_247) { var name = _247.name; if (!name || _247.disabled) { return; } var _248 = _247.get("value"); if (typeof _247.checked == "boolean") { if (/Radio/.test(_247.declaredClass)) { if (_248 !== false) { dojo.setObject(name, _248, obj); } else { _248 = dojo.getObject(name, false, obj); if (_248 === undefined) { dojo.setObject(name, null, obj); } } } else { var ary = dojo.getObject(name, false, obj); if (!ary) { ary = []; dojo.setObject(name, ary, obj); } if (_248 !== false) { ary.push(_248); } } } else { var prev = dojo.getObject(name, false, obj); if (typeof prev != "undefined") { if (dojo.isArray(prev)) { prev.push(_248); } else { dojo.setObject(name, [prev, _248], obj); } } else { dojo.setObject(name, _248, obj); } } }); return obj; }, isValid: function () { this._invalidWidgets = dojo.filter(this.getDescendants(), function (_249) { return !_249.disabled && _249.isValid && !_249.isValid(); }); return !this._invalidWidgets.length; }, onValidStateChange: function (_24a) { }, _widgetChange: function (_24b) { var _24c = this._lastValidState; if (!_24b || this._lastValidState === undefined) { _24c = this.isValid(); if (this._lastValidState === undefined) { this._lastValidState = _24c; } } else { if (_24b.isValid) { this._invalidWidgets = dojo.filter(this._invalidWidgets || [], function (w) { return (w != _24b); }, this); if (!_24b.isValid() && !_24b.get("disabled")) { this._invalidWidgets.push(_24b); } _24c = (this._invalidWidgets.length === 0); } } if (_24c !== this._lastValidState) { this._lastValidState = _24c; this.onValidStateChange(_24c); } }, connectChildren: function () { dojo.forEach(this._changeConnections, dojo.hitch(this, "disconnect")); var _24d = this; var _24e = (this._changeConnections = []); dojo.forEach(dojo.filter(this.getDescendants(), function (item) { return item.validate; }), function (_24f) { _24e.push(_24d.connect(_24f, "validate", dojo.hitch(_24d, "_widgetChange", _24f))); _24e.push(_24d.connect(_24f, "_setDisabledAttr", dojo.hitch(_24d, "_widgetChange", _24f))); }); this._widgetChange(null); }, startup: function () { this.inherited(arguments); this._changeConnections = []; this.connectChildren(); } }); } if (!dojo._hasResource["dijit._DialogMixin"]) { dojo._hasResource["dijit._DialogMixin"] = true; dojo.provide("dijit._DialogMixin"); dojo.declare("dijit._DialogMixin", null, { attributeMap: dijit._Widget.prototype.attributeMap, execute: function (_250) { }, onCancel: function () { }, onExecute: function () { }, _onSubmit: function () { this.onExecute(); this.execute(this.get("value")); }, _getFocusItems: function (_251) { var _252 = dijit._getTabNavigable(dojo.byId(_251)); this._firstFocusItem = _252.lowest || _252.first || _251; this._lastFocusItem = _252.last || _252.highest || this._firstFocusItem; if (dojo.isMoz && this._firstFocusItem.tagName.toLowerCase() == "input" && dojo.getNodeProp(this._firstFocusItem, "type").toLowerCase() == "file") { dojo.attr(_251, "tabIndex", "0"); this._firstFocusItem = _251; } } }); } if (!dojo._hasResource["dijit.TooltipDialog"]) {
    dojo._hasResource["dijit.TooltipDialog"] = true; dojo.provide("dijit.TooltipDialog"); dojo.declare("dijit.TooltipDialog", [dijit.layout.ContentPane, dijit._Templated, dijit.form._FormMixin, dijit._DialogMixin], { title: "", doLayout: false, autofocus: true, baseClass: "dijitTooltipDialog", _firstFocusItem: null, _lastFocusItem: null, templateString: dojo.cache("dijit", "templates/TooltipDialog.html", "<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n"), postCreate: function () { this.inherited(arguments); this.connect(this.containerNode, "onkeypress", "_onKey"); this.containerNode.title = this.title; }, orient: function (node, _253, _254) { var c = this._currentOrientClass; if (c) { dojo.removeClass(this.domNode, c); } c = "dijitTooltipAB" + (_254.charAt(1) == "L" ? "Left" : "Right") + " dijitTooltip" + (_254.charAt(0) == "T" ? "Below" : "Above"); dojo.addClass(this.domNode, c); this._currentOrientClass = c; }, onOpen: function (pos) {
        this.orient(this.domNode, pos.aroundCorner, pos.corner); 
this._onShow(); if (this.autofocus) { this._getFocusItems(this.containerNode); dijit.focus(this._firstFocusItem); } }, onClose: function () { this.onHide(); }, _onKey: function (evt) { var node = evt.target; var dk = dojo.keys; if (evt.charOrCode === dk.TAB) { this._getFocusItems(this.containerNode); } var _255 = (this._firstFocusItem == this._lastFocusItem); if (evt.charOrCode == dk.ESCAPE) { setTimeout(dojo.hitch(this, "onCancel"), 0); dojo.stopEvent(evt); } else { if (node == this._firstFocusItem && evt.shiftKey && evt.charOrCode === dk.TAB) { if (!_255) { dijit.focus(this._lastFocusItem); } dojo.stopEvent(evt); } else { if (node == this._lastFocusItem && evt.charOrCode === dk.TAB && !evt.shiftKey) { if (!_255) { dijit.focus(this._firstFocusItem); } dojo.stopEvent(evt); } else { if (evt.charOrCode === dk.TAB) { evt.stopPropagation(); } } } } } }); } if (!dojo._hasResource["dojo.dnd.common"]) { dojo._hasResource["dojo.dnd.common"] = true; dojo.provide("dojo.dnd.common"); dojo.dnd.getCopyKeyState = dojo.isCopyKey; dojo.dnd._uniqueId = 0; dojo.dnd.getUniqueId = function () { var id; do { id = dojo._scopeName + "Unique" + (++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.position(n, true); 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 - t.x, ry = e.pageY - t.y, dx = 0, dy = 0; if (dojo.isWebKit || dojo.isOpera) { rx += dojo.body().scrollLeft, ry += dojo.body().scrollTop; } 
if (rx > 0 && rx < b.w) { if (rx < w) { dx = -w; } else { if (rx > b.w - w) { dx = w; } } } if (ry > 0 && ry < b.h) { if (ry < h) { dy = -h; } else { if (ry > b.h - h) { dy = h; } } } var _256 = n.scrollLeft, _257 = n.scrollTop; n.scrollLeft = n.scrollLeft + dx; n.scrollTop = n.scrollTop + dy; if (_256 != n.scrollLeft || _257 != n.scrollTop) { return; } } } try { n = n.parentNode; } catch (x) { n = null; } } dojo.dnd.autoScroll(e); }; } if (!dojo._hasResource["dojo.dnd.Mover"]) { dojo._hasResource["dojo.dnd.Mover"] = true; dojo.provide("dojo.dnd.Mover"); dojo.declare("dojo.dnd.Mover", null, { constructor: function (node, e, host) { this.node = dojo.byId(node); this.marginBox = { l: e.pageX, t: e.pageY }; this.mouseButton = e.button; var h = this.host = host, d = node.ownerDocument, _258 = dojo.connect(d, "onmousemove", this, "onFirstMove"); this.events = [dojo.connect(d, "onmousemove", this, "onMouseMove"), dojo.connect(d, "onmouseup", this, "onMouseUp"), dojo.connect(d, "ondragstart", dojo.stopEvent), dojo.connect(d.body, "onselectstart", dojo.stopEvent), _258]; if (h && h.onMoveStart) { h.onMoveStart(this); } }, onMouseMove: function (e) { dojo.dnd.autoScroll(e); var m = this.marginBox; this.host.onMove(this, { l: m.l + e.pageX, t: m.t + e.pageY }, e); dojo.stopEvent(e); }, onMouseUp: function (e) { if (dojo.isWebKit && dojo.isMac && this.mouseButton == 2 ? e.button == 0 : this.mouseButton == e.button) { this.destroy(); } dojo.stopEvent(e); }, onFirstMove: function (e) { var s = this.node.style, l, t, h = this.host; switch (s.position) { case "relative": case "absolute": l = Math.round(parseFloat(s.left)) || 0; t = Math.round(parseFloat(s.top)) || 0; break; default: s.position = "absolute"; var m = dojo.marginBox(this.node); var b = dojo.doc.body; var bs = dojo.getComputedStyle(b); var bm = dojo._getMarginBox(b, bs); var bc = dojo._getContentBox(b, bs); l = m.l - (bc.l - bm.l); t = m.t - (bc.t - bm.t); break; } this.marginBox.l = l - this.marginBox.l; this.marginBox.t = t - this.marginBox.t; if (h && h.onFirstMove) { h.onFirstMove(this, e); } dojo.disconnect(this.events.pop()); }, destroy: function () { dojo.forEach(this.events, dojo.disconnect); var h = this.host; if (h && h.onMoveStop) { h.onMoveStop(this); } this.events = this.node = this.host = null; } }); } if (!dojo._hasResource["dojo.dnd.Moveable"]) { dojo._hasResource["dojo.dnd.Moveable"] = true; dojo.provide("dojo.dnd.Moveable"); dojo.declare("dojo.dnd.Moveable", null, { handle: "", delay: 0, skip: false, constructor: function (node, _259) { this.node = dojo.byId(node); if (!_259) { _259 = {}; } this.handle = _259.handle ? dojo.byId(_259.handle) : null; if (!this.handle) { this.handle = this.node; } this.delay = _259.delay > 0 ? _259.delay : 0; this.skip = _259.skip; this.mover = _259.mover ? _259.mover : dojo.dnd.Mover; this.events = [dojo.connect(this.handle, "onmousedown", this, "onMouseDown"), dojo.connect(this.handle, "ondragstart", this, "onSelectStart"), dojo.connect(this.handle, "onselectstart", this, "onSelectStart")]; }, markupFactory: function (_25a, node) { return new dojo.dnd.Moveable(node, _25a); }, 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"), dojo.connect(this.handle, "onmouseup", this, "onMouseUp")); this._lastX = e.pageX; this._lastY = e.pageY; } else { this.onDragDetected(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); this.onDragDetected(e); } dojo.stopEvent(e); }, onMouseUp: function (e) { for (var i = 0; i < 2; ++i) { dojo.disconnect(this.events.pop()); } dojo.stopEvent(e); }, onSelectStart: function (e) { if (!this.skip || !dojo.dnd.isFormElement(e)) { dojo.stopEvent(e); } }, onDragDetected: function (e) { new this.mover(this.node, e, this); }, onMoveStart: function (_25b) { dojo.publish("/dnd/move/start", [_25b]); dojo.addClass(dojo.body(), "dojoMove"); dojo.addClass(this.node, "dojoMoveItem"); }, onMoveStop: function (_25c) { dojo.publish("/dnd/move/stop", [_25c]); dojo.removeClass(dojo.body(), "dojoMove"); dojo.removeClass(this.node, "dojoMoveItem"); }, onFirstMove: function (_25d, e) { }, onMove: function (_25e, _25f, e) { this.onMoving(_25e, _25f); var s = _25e.node.style; s.left = _25f.l + "px"; s.top = _25f.t + "px"; this.onMoved(_25e, _25f); }, onMoving: function (_260, _261) { }, onMoved: function (_262, _263) { } }); } if (!dojo._hasResource["dojo.dnd.move"]) { dojo._hasResource["dojo.dnd.move"] = true; dojo.provide("dojo.dnd.move"); dojo.declare("dojo.dnd.move.constrainedMoveable", dojo.dnd.Moveable, { constraints: function () { }, within: false, markupFactory: function (_264, node) { return new dojo.dnd.move.constrainedMoveable(node, _264); }, constructor: function (node, _265) { if (!_265) { _265 = {}; } this.constraints = _265.constraints; this.within = _265.within; }, onFirstMove: function (_266) { var c = this.constraintBox = this.constraints.call(this, _266); c.r = c.l + c.w; c.b = c.t + c.h; if (this.within) { var mb = dojo.marginBox(_266.node); c.r -= mb.w; c.b -= mb.h; } }, onMove: function (_267, _268) { var c = this.constraintBox, s = _267.node.style; s.left = (_268.l < c.l ? c.l : c.r < _268.l ? c.r : _268.l) + "px"; s.top = (_268.t < c.t ? c.t : c.b < _268.t ? c.b : _268.t) + "px"; } }); dojo.declare("dojo.dnd.move.boxConstrainedMoveable", dojo.dnd.move.constrainedMoveable, { box: {}, markupFactory: function (_269, node) { return new dojo.dnd.move.boxConstrainedMoveable(node, _269); }, constructor: function (node, _26a) { var box = _26a && _26a.box; this.constraints = function () { return box; }; } }); dojo.declare("dojo.dnd.move.parentConstrainedMoveable", dojo.dnd.move.constrainedMoveable, { area: "content", markupFactory: function (_26b, node) { return new dojo.dnd.move.parentConstrainedMoveable(node, _26b); }, constructor: function (node, _26c) { var area = _26c && _26c.area; this.constraints = function () { var n = this.node.parentNode, s = dojo.getComputedStyle(n), mb = dojo._getMarginBox(n, s); if (area == "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 (area == "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 (area == "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; }; } }); dojo.dnd.move.constrainedMover = function (fun, _26d) { dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead"); var _26e = function (node, e, _26f) { dojo.dnd.Mover.call(this, node, e, _26f); }; dojo.extend(_26e, dojo.dnd.Mover.prototype); dojo.extend(_26e, { onMouseMove: function (e) { dojo.dnd.autoScroll(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; this.host.onMove(this, { l: l, t: t }); }, onFirstMove: function () { dojo.dnd.Mover.prototype.onFirstMove.call(this); var c = this.constraintBox = fun.call(this); c.r = c.l + c.w; c.b = c.t + c.h; if (_26d) { var mb = dojo.marginBox(this.node); c.r -= mb.w; c.b -= mb.h; } } }); return _26e; }; dojo.dnd.move.boxConstrainedMover = function (box, _270) { dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead"); return dojo.dnd.move.constrainedMover(function () { return box; }, _270); }; dojo.dnd.move.parentConstrainedMover = function (area, _271) { dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead"); var fun = function () { var n = this.node.parentNode, s = dojo.getComputedStyle(n), mb = dojo._getMarginBox(n, s); if (area == "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 (area == "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 (area == "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.move.constrainedMover(fun, _271); }; dojo.dnd.constrainedMover = dojo.dnd.move.constrainedMover; dojo.dnd.boxConstrainedMover = dojo.dnd.move.boxConstrainedMover; dojo.dnd.parentConstrainedMover = dojo.dnd.move.parentConstrainedMover; } if (!dojo._hasResource["dojo.regexp"]) { dojo._hasResource["dojo.regexp"] = true; dojo.provide("dojo.regexp"); dojo.regexp.escapeString = function (str, _272) { return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, function (ch) { if (_272 && _272.indexOf(ch) != -1) { return ch; } return "\\" + ch; }); }; dojo.regexp.buildGroupRE = function (arr, re, _273) { if (!(arr instanceof Array)) { return re(arr); } var b = []; for (var i = 0; i < arr.length; i++) { b.push(re(arr[i])); } return dojo.regexp.group(b.join("|"), _273); }; dojo.regexp.group = function (_274, _275) { return "(" + (_275 ? "?:" : "") + _274 + ")"; }; } if (!dojo._hasResource["dojo.number"]) {
    dojo._hasResource["dojo.number"] = true; dojo.provide("dojo.number"); dojo.number.format = function (_276, _277) { _277 = dojo.mixin({}, _277 || {}); var _278 = dojo.i18n.normalizeLocale(_277.locale), _279 = dojo.i18n.getLocalization("dojo.cldr", "number", _278); _277.customs = _279; var _27a = _277.pattern || _279[(_277.type || "decimal") + "Format"]; if (isNaN(_276) || Math.abs(_276) == Infinity) { return null; } return dojo.number._applyPattern(_276, _27a, _277); }; dojo.number._numberPatternRE = /[#0,]*[#0](?:\.0*#*)?/; dojo.number._applyPattern = function (_27b, _27c, _27d) { _27d = _27d || {}; var _27e = _27d.customs.group, _27f = _27d.customs.decimal, _280 = _27c.split(";"), _281 = _280[0]; _27c = _280[(_27b < 0) ? 1 : 0] || ("-" + _281); if (_27c.indexOf("%") != -1) { _27b *= 100; } else { if (_27c.indexOf("‰") != -1) { _27b *= 1000; } else { if (_27c.indexOf("¤") != -1) { _27e = _27d.customs.currencyGroup || _27e; _27f = _27d.customs.currencyDecimal || _27f; _27c = _27c.replace(/\u00a4{1,3}/, function (_282) { var prop = ["symbol", "currency", "displayName"][_282.length - 1]; return _27d[prop] || _27d.currency || ""; }); } else { if (_27c.indexOf("E") != -1) { throw new Error("exponential notation not supported"); } } } } var _283 = dojo.number._numberPatternRE; var _284 = _281.match(_283); if (!_284) { throw new Error("unable to find a number expression in pattern: " + _27c); } if (_27d.fractional === false) { _27d.places = 0; } return _27c.replace(_283, dojo.number._formatAbsolute(_27b, _284[0], { decimal: _27f, group: _27e, places: _27d.places, round: _27d.round })); }; dojo.number.round = function (_285, _286, _287) { var _288 = 10 / (_287 || 10); return (_288 * +_285).toFixed(_286) / _288; }; if ((0.9).toFixed() == 0) { (function () { var _289 = dojo.number.round; dojo.number.round = function (v, p, m) { var d = Math.pow(10, -p || 0), a = Math.abs(v); if (!v || a >= d || a * Math.pow(10, p + 1) < 5) { d = 0; } return _289(v, p, m) + (v > 0 ? d : -d); }; })(); } dojo.number._formatAbsolute = function (_28a, _28b, _28c) { _28c = _28c || {}; if (_28c.places === true) { _28c.places = 0; } if (_28c.places === Infinity) { _28c.places = 6; } var _28d = _28b.split("."), _28e = typeof _28c.places == "string" && _28c.places.indexOf(","), _28f = _28c.places; if (_28e) { _28f = _28c.places.substring(_28e + 1); } else { if (!(_28f >= 0)) { _28f = (_28d[1] || []).length; } } if (!(_28c.round < 0)) { _28a = dojo.number.round(_28a, _28f, _28c.round); } var _290 = String(Math.abs(_28a)).split("."), _291 = _290[1] || ""; if (_28d[1] || _28c.places) { if (_28e) { _28c.places = _28c.places.substring(0, _28e); } var pad = _28c.places !== undefined ? _28c.places : (_28d[1] && _28d[1].lastIndexOf("0") + 1); if (pad > _291.length) { _290[1] = dojo.string.pad(_291, pad, "0", true); } if (_28f < _291.length) { _290[1] = _291.substr(0, _28f); } } else { if (_290[1]) { _290.pop(); } } var _292 = _28d[0].replace(",", ""); pad = _292.indexOf("0"); if (pad != -1) { pad = _292.length - pad; if (pad > _290[0].length) { _290[0] = dojo.string.pad(_290[0], pad); } if (_292.indexOf("#") == -1) { _290[0] = _290[0].substr(_290[0].length - pad); } } var _293 = _28d[0].lastIndexOf(","), _294, _295; if (_293 != -1) { _294 = _28d[0].length - _293 - 1; var _296 = _28d[0].substr(0, _293); _293 = _296.lastIndexOf(","); if (_293 != -1) { _295 = _296.length - _293 - 1; } } var _297 = []; for (var _298 = _290[0]; _298; ) { var off = _298.length - _294; _297.push((off > 0) ? _298.substr(off) : _298); _298 = (off > 0) ? _298.slice(0, off) : ""; if (_295) { _294 = _295; delete _295; } } _290[0] = _297.reverse().join(_28c.group || ","); return _290.join(_28c.decimal || "."); }; dojo.number.regexp = function (_299) { return dojo.number._parseInfo(_299).regexp; }; dojo.number._parseInfo = function (_29a) {
        _29a = _29a || {}; var _29b = dojo.i18n.normalizeLocale(_29a.locale), _29c = dojo.i18n.getLocalization("dojo.cldr", "number", _29b), _29d = _29a.pattern || _29c[(_29a.type || "decimal") + "Format"], _29e = _29c.group, _29f = _29c.decimal, _2a0 = 1; if (_29d.indexOf("%") != -1) { _2a0 /= 100; } else { if (_29d.indexOf("‰") != -1) { _2a0 /= 1000; } else { var _2a1 = _29d.indexOf("¤") != -1; if (_2a1) { _29e = _29c.currencyGroup || _29e; _29f = _29c.currencyDecimal || _29f; } } } var _2a2 = _29d.split(";"); 
if (_2a2.length == 1) { _2a2.push("-" + _2a2[0]); } var re = dojo.regexp.buildGroupRE(_2a2, function (_2a3) { _2a3 = "(?:" + dojo.regexp.escapeString(_2a3, ".") + ")"; return _2a3.replace(dojo.number._numberPatternRE, function (_2a4) { var _2a5 = { signed: false, separator: _29a.strict ? _29e : [_29e, ""], fractional: _29a.fractional, decimal: _29f, exponent: false }, _2a6 = _2a4.split("."), _2a7 = _29a.places; if (_2a6.length == 1 && _2a0 != 1) { _2a6[1] = "###"; } if (_2a6.length == 1 || _2a7 === 0) { _2a5.fractional = false; } else { if (_2a7 === undefined) { _2a7 = _29a.pattern ? _2a6[1].lastIndexOf("0") + 1 : Infinity; } if (_2a7 && _29a.fractional == undefined) { _2a5.fractional = true; } if (!_29a.places && (_2a7 < _2a6[1].length)) { _2a7 += "," + _2a6[1].length; } _2a5.places = _2a7; } var _2a8 = _2a6[0].split(","); if (_2a8.length > 1) { _2a5.groupSize = _2a8.pop().length; if (_2a8.length > 1) { _2a5.groupSize2 = _2a8.pop().length; } } return "(" + dojo.number._realNumberRegexp(_2a5) + ")"; }); }, true); if (_2a1) { re = re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g, function (_2a9, _2aa, _2ab, _2ac) { var prop = ["symbol", "currency", "displayName"][_2ab.length - 1], _2ad = dojo.regexp.escapeString(_29a[prop] || _29a.currency || ""); _2aa = _2aa ? "[\\s\\xa0]" : ""; _2ac = _2ac ? "[\\s\\xa0]" : ""; if (!_29a.strict) { if (_2aa) { _2aa += "*"; } if (_2ac) { _2ac += "*"; } return "(?:" + _2aa + _2ad + _2ac + ")?"; } return _2aa + _2ad + _2ac; }); } return { regexp: re.replace(/[\xa0 ]/g, "[\\s\\xa0]"), group: _29e, decimal: _29f, factor: _2a0 }; }; dojo.number.parse = function (_2ae, _2af) { var info = dojo.number._parseInfo(_2af), _2b0 = (new RegExp("^" + info.regexp + "$")).exec(_2ae); if (!_2b0) { return NaN; } var _2b1 = _2b0[1]; if (!_2b0[1]) { if (!_2b0[2]) { return NaN; } _2b1 = _2b0[2]; info.factor *= -1; } _2b1 = _2b1.replace(new RegExp("[" + info.group + "\\s\\xa0" + "]", "g"), "").replace(info.decimal, "."); return _2b1 * info.factor; }; dojo.number._realNumberRegexp = function (_2b2) { _2b2 = _2b2 || {}; if (!("places" in _2b2)) { _2b2.places = Infinity; } if (typeof _2b2.decimal != "string") { _2b2.decimal = "."; } if (!("fractional" in _2b2) || /^0/.test(_2b2.places)) { _2b2.fractional = [true, false]; } if (!("exponent" in _2b2)) { _2b2.exponent = [true, false]; } if (!("eSigned" in _2b2)) { _2b2.eSigned = [true, false]; } var _2b3 = dojo.number._integerRegexp(_2b2), _2b4 = dojo.regexp.buildGroupRE(_2b2.fractional, function (q) { var re = ""; if (q && (_2b2.places !== 0)) { re = "\\" + _2b2.decimal; if (_2b2.places == Infinity) { re = "(?:" + re + "\\d+)?"; } else { re += "\\d{" + _2b2.places + "}"; } } return re; }, true); var _2b5 = dojo.regexp.buildGroupRE(_2b2.exponent, function (q) { if (q) { return "([eE]" + dojo.number._integerRegexp({ signed: _2b2.eSigned }) + ")"; } return ""; }); var _2b6 = _2b3 + _2b4; if (_2b4) { _2b6 = "(?:(?:" + _2b6 + ")|(?:" + _2b4 + "))"; } return _2b6 + _2b5; }; dojo.number._integerRegexp = function (_2b7) { _2b7 = _2b7 || {}; if (!("signed" in _2b7)) { _2b7.signed = [true, false]; } if (!("separator" in _2b7)) { _2b7.separator = ""; } else { if (!("groupSize" in _2b7)) { _2b7.groupSize = 3; } } var _2b8 = dojo.regexp.buildGroupRE(_2b7.signed, function (q) { return q ? "[-+]" : ""; }, true); var _2b9 = dojo.regexp.buildGroupRE(_2b7.separator, function (sep) { if (!sep) { return "(?:\\d+)"; } sep = dojo.regexp.escapeString(sep); if (sep == " ") { sep = "\\s"; } else { if (sep == " ") { sep = "\\s\\xa0"; } } var grp = _2b7.groupSize, grp2 = _2b7.groupSize2; if (grp2) { var _2ba = "(?:0|[1-9]\\d{0," + (grp2 - 1) + "}(?:[" + sep + "]\\d{" + grp2 + "})*[" + sep + "]\\d{" + grp + "})"; return ((grp - grp2) > 0) ? "(?:" + _2ba + "|(?:0|[1-9]\\d{0," + (grp - 1) + "}))" : _2ba; } return "(?:0|[1-9]\\d{0," + (grp - 1) + "}(?:[" + sep + "]\\d{" + grp + "})*)"; }, true); return _2b8 + _2b9; }; } if (!dojo._hasResource["dijit.form.HorizontalSlider"]) { dojo._hasResource["dijit.form.HorizontalSlider"] = true; dojo.provide("dijit.form.HorizontalSlider"); dojo.declare("dijit.form.HorizontalSlider", [dijit.form._FormValueWidget, dijit._Container], { templateString: dojo.cache("dijit.form", "templates/HorizontalSlider.html", "<table class=\"dijit dijitReset dijitSlider dijitSliderH\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress,onkeyup:_onKeyUp\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"topDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${!nameAttrSetting}\r\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\"\r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" aria-live=\"off\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\r\n\t\t\t></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n></table>\r\n"), value: 0, showButtons: true, minimum: 0, maximum: 100, discreteValues: Infinity, pageIncrement: 2, clickSelect: true, slideDuration: dijit.defaultDuration, widgetsInTemplate: true, attributeMap: dojo.delegate(dijit.form._FormWidget.prototype.attributeMap, { id: "" }), baseClass: "dijitSlider", cssStateNodes: { incrementButton: "dijitSliderIncrementButton", decrementButton: "dijitSliderDecrementButton", focusNode: "dijitSliderThumb" }, _mousePixelCoord: "pageX", _pixelCount: "w", _startingPixelCoord: "x", _startingPixelCount: "l", _handleOffsetCoord: "left", _progressPixelSize: "width", _onKeyUp: function (e) { if (this.disabled || this.readOnly || e.altKey || e.ctrlKey || e.metaKey) { return; } this._setValueAttr(this.value, true); }, _onKeyPress: function (e) { if (this.disabled || this.readOnly || e.altKey || e.ctrlKey || e.metaKey) { return; } switch (e.charOrCode) { case dojo.keys.HOME: this._setValueAttr(this.minimum, false); break; case dojo.keys.END: this._setValueAttr(this.maximum, false); break; case ((this._descending || this.isLeftToRight()) ? dojo.keys.RIGHT_ARROW : dojo.keys.LEFT_ARROW): case (this._descending === false ? dojo.keys.DOWN_ARROW : dojo.keys.UP_ARROW): case (this._descending === false ? dojo.keys.PAGE_DOWN : dojo.keys.PAGE_UP): this.increment(e); break; case ((this._descending || this.isLeftToRight()) ? dojo.keys.LEFT_ARROW : dojo.keys.RIGHT_ARROW): case (this._descending === false ? dojo.keys.UP_ARROW : dojo.keys.DOWN_ARROW): case (this._descending === false ? dojo.keys.PAGE_UP : dojo.keys.PAGE_DOWN): this.decrement(e); break; default: return; } dojo.stopEvent(e); }, _onHandleClick: function (e) { if (this.disabled || this.readOnly) { return; } if (!dojo.isIE) { dijit.focus(this.sliderHandle); } dojo.stopEvent(e); }, _isReversed: function () { return !this.isLeftToRight(); }, _onBarClick: function (e) { if (this.disabled || this.readOnly || !this.clickSelect) { return; } dijit.focus(this.sliderHandle); dojo.stopEvent(e); var _2bb = dojo.position(this.sliderBarContainer, true); var _2bc = e[this._mousePixelCoord] - _2bb[this._startingPixelCoord]; this._setPixelValue(this._isReversed() ? (_2bb[this._pixelCount] - _2bc) : _2bc, _2bb[this._pixelCount], true); this._movable.onMouseDown(e); }, _setPixelValue: function (_2bd, _2be, _2bf) { if (this.disabled || this.readOnly) { return; } _2bd = _2bd < 0 ? 0 : _2be < _2bd ? _2be : _2bd; var _2c0 = this.discreteValues; if (_2c0 <= 1 || _2c0 == Infinity) { _2c0 = _2be; } _2c0--; var _2c1 = _2be / _2c0; var _2c2 = Math.round(_2bd / _2c1); this._setValueAttr((this.maximum - this.minimum) * _2c2 / _2c0 + this.minimum, _2bf); }, _setValueAttr: function (_2c3, _2c4) { this.valueNode.value = this.value = _2c3; var _2c5 = Math.floor(_2c3 % 60); _2c5 = dojo.string.pad(_2c5, 2, "0"); var _2c6 = Math.floor((_2c3 / 60) % 60); var _2c7 = Math.floor(_2c3 / (60 * 60)); if (_2c6 > 9 || _2c7 > 0) { _2c6 = dojo.string.pad(_2c6, 2, "0"); } var _2c8 = ""; if (_2c7 > 0) { _2c8 = _2c7 + " hours "; } if (eval(_2c6) > 0) { _2c8 += _2c6 + " minutes "; } _2c8 += _2c5 + " seconds"; dijit.setWaiState(this.focusNode, "valuenow", _2c8); this.inherited(arguments); var _2c9 = (_2c3 - this.minimum) / (this.maximum - this.minimum); var _2ca = (this._descending === false) ? this.remainingBar : this.progressBar; var _2cb = (this._descending === false) ? this.progressBar : this.remainingBar; if (this._inProgressAnim && this._inProgressAnim.status != "stopped") { this._inProgressAnim.stop(true); } if (_2c4 && this.slideDuration > 0 && _2ca.style[this._progressPixelSize]) { var _2cc = this; var _2cd = {}; var _2ce = parseFloat(_2ca.style[this._progressPixelSize]); var _2cf = this.slideDuration * (_2c9 - _2ce / 100); if (_2cf == 0) { return; } if (_2cf < 0) { _2cf = 0 - _2cf; } _2cd[this._progressPixelSize] = { start: _2ce, end: _2c9 * 100, units: "%" }; this._inProgressAnim = dojo.animateProperty({ node: _2ca, duration: _2cf, onAnimate: function (v) { _2cb.style[_2cc._progressPixelSize] = (100 - parseFloat(v[_2cc._progressPixelSize])) + "%"; }, onEnd: function () { delete _2cc._inProgressAnim; }, properties: _2cd }); this._inProgressAnim.play(); } else { _2ca.style[this._progressPixelSize] = (_2c9 * 100) + "%"; _2cb.style[this._progressPixelSize] = ((1 - _2c9) * 100) + "%"; } }, _bumpValue: function (_2d0, _2d1) { if (this.disabled || this.readOnly) { return; } var s = dojo.getComputedStyle(this.sliderBarContainer); var c = dojo._getContentBox(this.sliderBarContainer, s); var _2d2 = this.discreteValues; if (_2d2 <= 1 || _2d2 == Infinity) { _2d2 = c[this._pixelCount]; } _2d2--; var _2d3 = (this.value - this.minimum) * _2d2 / (this.maximum - this.minimum) + _2d0; if (_2d3 < 0) { _2d3 = 0; } if (_2d3 > _2d2) { _2d3 = _2d2; } _2d3 = _2d3 * (this.maximum - this.minimum) / _2d2 + this.minimum; this._setValueAttr(_2d3, _2d1); }, _onClkBumper: function (val) { if (this.disabled || this.readOnly || !this.clickSelect) { return; } this._setValueAttr(val, true); }, _onClkIncBumper: function () { this._onClkBumper(this._descending === false ? this.minimum : this.maximum); }, _onClkDecBumper: function () { this._onClkBumper(this._descending === false ? this.maximum : this.minimum); }, decrement: function (e) { this._bumpValue(e.charOrCode == dojo.keys.PAGE_DOWN ? -this.pageIncrement : -1); }, increment: function (e) { this._bumpValue(e.charOrCode == dojo.keys.PAGE_UP ? this.pageIncrement : 1); }, _mouseWheeled: function (evt) { dojo.stopEvent(evt); var _2d4 = !dojo.isMozilla; var _2d5 = evt[(_2d4 ? "wheelDelta" : "detail")] * (_2d4 ? 1 : -1); this._bumpValue(_2d5 < 0 ? -1 : 1, true); }, startup: function () { if (this._started) { return; } dojo.forEach(this.getChildren(), function (_2d6) { if (this[_2d6.container] != this.containerNode) { this[_2d6.container].appendChild(_2d6.domNode); } }, this); this.inherited(arguments); }, _typematicCallback: function (_2d7, _2d8, e) { if (_2d7 == -1) { this._setValueAttr(this.value, true); } else { this[(_2d8 == (this._descending ? this.incrementButton : this.decrementButton)) ? "decrement" : "increment"](e); } }, postCreate: function () { if (this.showButtons) { this.incrementButton.style.display = ""; this.decrementButton.style.display = ""; this._connects.push(dijit.typematic.addMouseListener(this.decrementButton, this, "_typematicCallback", 25, 500)); this._connects.push(dijit.typematic.addMouseListener(this.incrementButton, this, "_typematicCallback", 25, 500)); } this.connect(this.domNode, !dojo.isMozilla ? "onmousewheel" : "DOMMouseScroll", "_mouseWheeled"); var _2d9 = dojo.declare(dijit.form._SliderMover, { widget: this }); this._movable = new dojo.dnd.Moveable(this.sliderHandle, { mover: _2d9 }); var _2da = dojo.query("label[for=\"" + this.id + "\"]"); if (_2da.length) { _2da[0].id = (this.id + "_label"); dijit.setWaiState(this.focusNode, "labelledby", _2da[0].id); } dijit.setWaiState(this.focusNode, "valuemin", this.minimum); dijit.setWaiState(this.focusNode, "valuemax", this.maximum); this.inherited(arguments); this._layoutHackIE7(); }, destroy: function () { this._movable.destroy(); if (this._inProgressAnim && this._inProgressAnim.status != "stopped") { this._inProgressAnim.stop(true); } this._supportingWidgets = dijit.findWidgets(this.domNode); this.inherited(arguments); } }); dojo.declare("dijit.form._SliderMover", dojo.dnd.Mover, { onMouseMove: function (e) { var _2db = this.widget; var _2dc = _2db._abspos; if (!_2dc) { _2dc = _2db._abspos = dojo.position(_2db.sliderBarContainer, true); _2db._setPixelValue_ = dojo.hitch(_2db, "_setPixelValue"); _2db._isReversed_ = _2db._isReversed(); } var _2dd = e[_2db._mousePixelCoord] - _2dc[_2db._startingPixelCoord]; _2db._setPixelValue_(_2db._isReversed_ ? (_2dc[_2db._pixelCount] - _2dd) : _2dd, _2dc[_2db._pixelCount], false); }, destroy: function (e) { dojo.dnd.Mover.prototype.destroy.apply(this, arguments); var _2de = this.widget; _2de._abspos = null; _2de._setValueAttr(_2de.value, true); } }); } if (!dojo._hasResource["dojo.NodeList-manipulate"]) { dojo._hasResource["dojo.NodeList-manipulate"] = true; dojo.provide("dojo.NodeList-manipulate"); (function () { function _2df(node) { var text = "", ch = node.childNodes; for (var i = 0, n; n = ch[i]; i++) { if (n.nodeType != 8) { if (n.nodeType == 1) { text += _2df(n); } else { text += n.nodeValue; } } } return text; }; function _2e0(node) { while (node.childNodes[0] && node.childNodes[0].nodeType == 1) { node = node.childNodes[0]; } return node; }; function _2e1(html, _2e2) { if (typeof html == "string") { html = dojo._toDom(html, (_2e2 && _2e2.ownerDocument)); if (html.nodeType == 11) { html = html.childNodes[0]; } } else { if (html.nodeType == 1 && html.parentNode) { html = html.cloneNode(false); } } return html; }; dojo.extend(dojo.NodeList, { _placeMultiple: function (_2e3, _2e4) { var nl2 = typeof _2e3 == "string" || _2e3.nodeType ? dojo.query(_2e3) : _2e3; var _2e5 = []; for (var i = 0; i < nl2.length; i++) { var _2e6 = nl2[i]; var _2e7 = this.length; for (var j = _2e7 - 1, item; item = this[j]; j--) { if (i > 0) { item = this._cloneNode(item); _2e5.unshift(item); } if (j == _2e7 - 1) { dojo.place(item, _2e6, _2e4); } else { _2e6.parentNode.insertBefore(item, _2e6); } _2e6 = item; } } if (_2e5.length) { _2e5.unshift(0); _2e5.unshift(this.length - 1); Array.prototype.splice.apply(this, _2e5); } return this; }, innerHTML: function (_2e8) { if (arguments.length) { return this.addContent(_2e8, "only"); } else { return this[0].innerHTML; } }, text: function (_2e9) { if (arguments.length) { for (var i = 0, node; node = this[i]; i++) { if (node.nodeType == 1) { dojo.empty(node); node.appendChild(node.ownerDocument.createTextNode(_2e9)); } } return this; } else { var _2ea = ""; for (i = 0; node = this[i]; i++) { _2ea += _2df(node); } return _2ea; } }, val: function (_2eb) { if (arguments.length) { var _2ec = dojo.isArray(_2eb); for (var _2ed = 0, node; node = this[_2ed]; _2ed++) { var name = node.nodeName.toUpperCase(); var type = node.type; var _2ee = _2ec ? _2eb[_2ed] : _2eb; if (name == "SELECT") { var opts = node.options; for (var i = 0; i < opts.length; i++) { var opt = opts[i]; if (node.multiple) { opt.selected = (dojo.indexOf(_2eb, opt.value) != -1); } else { opt.selected = (opt.value == _2ee); } } } else { if (type == "checkbox" || type == "radio") { node.checked = (node.value == _2ee); } else { node.value = _2ee; } } } return this; } else { node = this[0]; if (!node || node.nodeType != 1) { return undefined; } _2eb = node.value || ""; if (node.nodeName.toUpperCase() == "SELECT" && node.multiple) { _2eb = []; opts = node.options; for (i = 0; i < opts.length; i++) { opt = opts[i]; if (opt.selected) { _2eb.push(opt.value); } } if (!_2eb.length) { _2eb = null; } } return _2eb; } }, append: function (_2ef) { return this.addContent(_2ef, "last"); }, appendTo: function (_2f0) { return this._placeMultiple(_2f0, "last"); }, prepend: function (_2f1) { return this.addContent(_2f1, "first"); }, prependTo: function (_2f2) { return this._placeMultiple(_2f2, "first"); }, after: function (_2f3) { return this.addContent(_2f3, "after"); }, insertAfter: function (_2f4) { return this._placeMultiple(_2f4, "after"); }, before: function (_2f5) { return this.addContent(_2f5, "before"); }, insertBefore: function (_2f6) { return this._placeMultiple(_2f6, "before"); }, remove: dojo.NodeList.prototype.orphan, wrap: function (html) { if (this[0]) { html = _2e1(html, this[0]); for (var i = 0, node; node = this[i]; i++) { var _2f7 = this._cloneNode(html); if (node.parentNode) { node.parentNode.replaceChild(_2f7, node); } var _2f8 = _2e0(_2f7); _2f8.appendChild(node); } } return this; }, wrapAll: function (html) { if (this[0]) { html = _2e1(html, this[0]); this[0].parentNode.replaceChild(html, this[0]); var _2f9 = _2e0(html); for (var i = 0, node; node = this[i]; i++) { _2f9.appendChild(node); } } return this; }, wrapInner: function (html) { if (this[0]) { html = _2e1(html, this[0]); for (var i = 0; i < this.length; i++) { var _2fa = this._cloneNode(html); this._wrap(dojo._toArray(this[i].childNodes), null, this._NodeListCtor).wrapAll(_2fa); } } return this; }, replaceWith: function (_2fb) { _2fb = this._normalize(_2fb, this[0]); for (var i = 0, node; node = this[i]; i++) { this._place(_2fb, node, "before", i > 0); node.parentNode.removeChild(node); } return this; }, replaceAll: function (_2fc) { var nl = dojo.query(_2fc); var _2fd = this._normalize(this, this[0]); for (var i = 0, node; node = nl[i]; i++) { this._place(_2fd, node, "before", i > 0); node.parentNode.removeChild(node); } return this; }, clone: function () { var ary = []; for (var i = 0; i < this.length; i++) { ary.push(this._cloneNode(this[i])); } return this._wrap(ary, this, this._NodeListCtor); } }); if (!dojo.NodeList.prototype.html) { dojo.NodeList.prototype.html = dojo.NodeList.prototype.innerHTML; } })(); } if (!dojo._hasResource["dojox.embed.Flash"]) {
    dojo._hasResource["dojox.embed.Flash"] = true; dojo.provide("dojox.embed.Flash"); (function () {
        var _2fe, _2ff; var _300 = 9; var _301 = "dojox-embed-flash-", _302 = 0; var _303 = { expressInstall: false, width: 320, height: 240, swLiveConnect: "true", allowScriptAccess: "sameDomain", allowNetworking: "all", style: null, redirect: null }; function prep(_304) { _304 = dojo.delegate(_303, _304); if (!("path" in _304)) { console.error("dojox.embed.Flash(ctor):: no path reference to a Flash movie was provided."); return null; } if (!("id" in _304)) { _304.id = (_301 + _302++); } return _304; }; if (dojo.isIE) {
            _2fe = function (_305) { _305 = prep(_305); if (!_305) { return null; } var p; var path = _305.path; if (_305.vars) { var a = []; for (p in _305.vars) { a.push(p + "=" + _305.vars[p]); } _305.params.FlashVars = a.join("&"); delete _305.vars; } var s = "<object id=\"" + _305.id + "\" " + "classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" " + "width=\"" + _305.width + "\" " + "height=\"" + _305.height + "\"" + ((_305.style) ? " style=\"" + _305.style + "\"" : "") + ">" + "<param name=\"movie\" value=\"" + path + "\" />"; if (_305.params) { for (p in _305.params) { s += "<param name=\"" + p + "\" value=\"" + _305.params[p] + "\" />"; } } s += "</object>"; return { id: _305.id, markup: s }; };
            _2ff = (function () { var _306 = 10, _307 = null; while (!_307 && _306 > 7) { try { _307 = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + _306--); } catch (e) { } } if (_307) { var v = _307.GetVariable("$version").split(" ")[1].split(","); return { major: (v[0] != null) ? parseInt(v[0]) : 0, minor: (v[1] != null) ? parseInt(v[1]) : 0, rev: (v[2] != null) ? parseInt(v[2]) : 0 }; } return { major: 0, minor: 0, rev: 0 }; })(); dojo.addOnUnload(function () { var _308 = function () { }; var objs = dojo.query("object").reverse().style("display", "none").forEach(function (i) { for (var p in i) { if ((p != "FlashVars") && dojo.isFunction(i[p])) { try { i[p] = _308; } catch (e) { } } } }); });
        } else { _2fe = function (_309) { _309 = prep(_309); if (!_309) { return null; } var p; var path = _309.path; if (_309.vars) { var a = []; for (p in _309.vars) { a.push(p + "=" + _309.vars[p]); } _309.params.flashVars = a.join("&"); delete _309.vars; } var s = "<embed type=\"application/x-shockwave-flash\" " + "src=\"" + path + "\" " + "id=\"" + _309.id + "\" " + "width=\"" + _309.width + "\" " + "height=\"" + _309.height + "\"" + ((_309.style) ? " style=\"" + _309.style + "\" " : "") + "swLiveConnect=\"" + _309.swLiveConnect + "\" " + "allowScriptAccess=\"" + _309.allowScriptAccess + "\" " + "allowNetworking=\"" + _309.allowNetworking + "\" " + "pluginspage=\"" + window.location.protocol + "//www.adobe.com/go/getflashplayer\" "; if (_309.params) { for (p in _309.params) { s += " " + p + "=\"" + _309.params[p] + "\""; } } s += " />"; return { id: _309.id, markup: s }; }; _2ff = (function () { var _30a = navigator.plugins["Shockwave Flash"]; if (_30a && _30a.description) { var v = _30a.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."); return { major: (v[0] != null) ? parseInt(v[0]) : 0, minor: (v[1] != null) ? parseInt(v[1]) : 0, rev: (v[2] != null) ? parseInt(v[2]) : 0 }; } return { major: 0, minor: 0, rev: 0 }; })(); } dojox.embed.Flash = function (_30b, node) { if (location.href.toLowerCase().indexOf("file://") > -1) { throw new Error("dojox.embed.Flash can't be run directly from a file. To instatiate the required SWF correctly it must be run from a server, like localHost."); } this.available = dojox.embed.Flash.available; this.minimumVersion = _30b.minimumVersion || _300; this.id = null; this.movie = null; this.domNode = null; if (node) { node = dojo.byId(node); } setTimeout(dojo.hitch(this, function () { if (_30b.expressInstall || this.available && this.available >= this.minimumVersion) { if (_30b && node) { this.init(_30b, node); } else { this.onError("embed.Flash was not provided with the proper arguments."); } } else { if (!this.available) { this.onError("Flash is not installed."); } else { this.onError("Flash version detected: " + this.available + " is out of date. Minimum required: " + this.minimumVersion); } } }), 100); }; dojo.extend(dojox.embed.Flash, { onReady: function (_30c) { }, onLoad: function (_30d) { }, onError: function (msg) { }, _onload: function () { clearInterval(this._poller); delete this._poller; delete this._pollCount; delete this._pollMax; this.onLoad(this.movie); }, init: function (_30e, node) { this.destroy(); node = dojo.byId(node || this.domNode); if (!node) { throw new Error("dojox.embed.Flash: no domNode reference has been passed."); } var p = 0, _30f = false; this._poller = null; this._pollCount = 0; this._pollMax = 15; this.pollTime = 100; if (dojox.embed.Flash.initialized) { this.id = dojox.embed.Flash.place(_30e, node); this.domNode = node; setTimeout(dojo.hitch(this, function () { this.movie = this.byId(this.id, _30e.doc); this.onReady(this.movie); this._poller = setInterval(dojo.hitch(this, function () { try { p = this.movie.PercentLoaded(); } catch (e) { console.warn("this.movie.PercentLoaded() failed"); } if (p == 100) { this._onload(); } else { if (p == 0 && this._pollCount++ > this._pollMax) { clearInterval(this._poller); throw new Error("Building SWF failed."); } } }), this.pollTime); }), 1); } }, _destroy: function () { try { this.domNode.removeChild(this.movie); } catch (e) { } this.id = this.movie = this.domNode = null; }, destroy: function () { if (!this.movie) { return; } var test = dojo.delegate({ id: true, movie: true, domNode: true, onReady: true, onLoad: true }); for (var p in this) { if (!test[p]) { delete this[p]; } } if (this._poller) { dojo.connect(this, "onLoad", this, "_destroy"); } else { this._destroy(); } }, byId: function (_310, doc) { doc = doc || document; if (doc.embeds[_310]) { return doc.embeds[_310]; } if (doc[_310]) { return doc[_310]; } if (window[_310]) { return window[_310]; } if (document[_310]) { return document[_310]; } return null; } }); dojo.mixin(dojox.embed.Flash, { minSupported: 8, available: _2ff.major, supported: (_2ff.major >= _2ff.required), minimumRequired: _2ff.required, version: _2ff, initialized: false, onInitialize: function () { dojox.embed.Flash.initialized = true; }, __ie_markup__: function (_311) { return _2fe(_311); }, proxy: function (obj, _312) { dojo.forEach((dojo.isArray(_312) ? _312 : [_312]), function (item) { this[item] = dojo.hitch(this, function () { return (function () { return eval(this.movie.CallFunction("<invoke name=\"" + item + "\" returntype=\"javascript\">" + "<arguments>" + dojo.map(arguments, function (item) { return __flash__toXML(item); }).join("") + "</arguments>" + "</invoke>")); }).apply(this, arguments || []); }); }, obj); } }); dojox.embed.Flash.place = function (_313, node) { var o = _2fe(_313); node = dojo.byId(node); if (!node) { node = dojo.doc.createElement("div"); node.id = o.id + "-container"; dojo.body().appendChild(node); } if (o) { node.innerHTML = o.markup; return o.id; } return null; }; dojox.embed.Flash.onInitialize();
    })();
} if (!dojo._hasResource["dojo.fx.Toggler"]) { dojo._hasResource["dojo.fx.Toggler"] = true; dojo.provide("dojo.fx.Toggler"); dojo.declare("dojo.fx.Toggler", null, { node: null, showFunc: dojo.fadeIn, hideFunc: dojo.fadeOut, showDuration: 200, hideDuration: 200, constructor: function (args) { var _314 = this; dojo.mixin(_314, args); _314.node = args.node; _314._showArgs = dojo.mixin({}, args); _314._showArgs.node = _314.node; _314._showArgs.duration = _314.showDuration; _314.showAnim = _314.showFunc(_314._showArgs); _314._hideArgs = dojo.mixin({}, args); _314._hideArgs.node = _314.node; _314._hideArgs.duration = _314.hideDuration; _314.hideAnim = _314.hideFunc(_314._hideArgs); dojo.connect(_314.showAnim, "beforeBegin", dojo.hitch(_314.hideAnim, "stop", true)); dojo.connect(_314.hideAnim, "beforeBegin", dojo.hitch(_314.showAnim, "stop", true)); }, show: function (_315) { return this.showAnim.play(_315 || 0); }, hide: function (_316) { return this.hideAnim.play(_316 || 0); } }); } if (!dojo._hasResource["dojo.fx"]) { dojo._hasResource["dojo.fx"] = true; dojo.provide("dojo.fx"); (function () { var d = dojo, _317 = { _fire: function (evt, args) { if (this[evt]) { this[evt].apply(this, args || []); } return this; } }; var _318 = function (_319) { this._index = -1; this._animations = _319 || []; this._current = this._onAnimateCtx = this._onEndCtx = null; this.duration = 0; d.forEach(this._animations, function (a) { this.duration += a.duration; if (a.delay) { this.duration += a.delay; } }, this); }; d.extend(_318, { _onAnimate: function () { this._fire("onAnimate", arguments); }, _onEnd: function () { d.disconnect(this._onAnimateCtx); d.disconnect(this._onEndCtx); this._onAnimateCtx = this._onEndCtx = null; if (this._index + 1 == this._animations.length) { this._fire("onEnd"); } else { this._current = this._animations[++this._index]; this._onAnimateCtx = d.connect(this._current, "onAnimate", this, "_onAnimate"); this._onEndCtx = d.connect(this._current, "onEnd", this, "_onEnd"); this._current.play(0, true); } }, play: function (_31a, _31b) { if (!this._current) { this._current = this._animations[this._index = 0]; } if (!_31b && this._current.status() == "playing") { return this; } var _31c = d.connect(this._current, "beforeBegin", this, function () { this._fire("beforeBegin"); }), _31d = d.connect(this._current, "onBegin", this, function (arg) { this._fire("onBegin", arguments); }), _31e = d.connect(this._current, "onPlay", this, function (arg) { this._fire("onPlay", arguments); d.disconnect(_31c); d.disconnect(_31d); d.disconnect(_31e); }); if (this._onAnimateCtx) { d.disconnect(this._onAnimateCtx); } this._onAnimateCtx = d.connect(this._current, "onAnimate", this, "_onAnimate"); if (this._onEndCtx) { d.disconnect(this._onEndCtx); } this._onEndCtx = d.connect(this._current, "onEnd", this, "_onEnd"); this._current.play.apply(this._current, arguments); return this; }, pause: function () { if (this._current) { var e = d.connect(this._current, "onPause", this, function (arg) { this._fire("onPause", arguments); d.disconnect(e); }); this._current.pause(); } return this; }, gotoPercent: function (_31f, _320) { this.pause(); var _321 = this.duration * _31f; this._current = null; d.some(this._animations, function (a) { if (a.duration <= _321) { this._current = a; return true; } _321 -= a.duration; return false; }); if (this._current) { this._current.gotoPercent(_321 / this._current.duration, _320); } return this; }, stop: function (_322) { if (this._current) { if (_322) { for (; this._index + 1 < this._animations.length; ++this._index) { this._animations[this._index].stop(true); } this._current = this._animations[this._index]; } var e = d.connect(this._current, "onStop", this, function (arg) { this._fire("onStop", arguments); d.disconnect(e); }); this._current.stop(); } return this; }, status: function () { return this._current ? this._current.status() : "stopped"; }, destroy: function () { if (this._onAnimateCtx) { d.disconnect(this._onAnimateCtx); } if (this._onEndCtx) { d.disconnect(this._onEndCtx); } } }); d.extend(_318, _317); dojo.fx.chain = function (_323) { return new _318(_323); }; var _324 = function (_325) { this._animations = _325 || []; this._connects = []; this._finished = 0; this.duration = 0; d.forEach(_325, function (a) { var _326 = a.duration; if (a.delay) { _326 += a.delay; } if (this.duration < _326) { this.duration = _326; } this._connects.push(d.connect(a, "onEnd", this, "_onEnd")); }, this); this._pseudoAnimation = new d.Animation({ curve: [0, 1], duration: this.duration }); var self = this; d.forEach(["beforeBegin", "onBegin", "onPlay", "onAnimate", "onPause", "onStop", "onEnd"], function (evt) { self._connects.push(d.connect(self._pseudoAnimation, evt, function () { self._fire(evt, arguments); })); }); }; d.extend(_324, { _doAction: function (_327, args) { d.forEach(this._animations, function (a) { a[_327].apply(a, args); }); return this; }, _onEnd: function () { if (++this._finished > this._animations.length) { this._fire("onEnd"); } }, _call: function (_328, args) { var t = this._pseudoAnimation; t[_328].apply(t, args); }, play: function (_329, _32a) { this._finished = 0; this._doAction("play", arguments); this._call("play", arguments); return this; }, pause: function () { this._doAction("pause", arguments); this._call("pause", arguments); return this; }, gotoPercent: function (_32b, _32c) { var ms = this.duration * _32b; d.forEach(this._animations, function (a) { a.gotoPercent(a.duration < ms ? 1 : (ms / a.duration), _32c); }); this._call("gotoPercent", arguments); return this; }, stop: function (_32d) { this._doAction("stop", arguments); this._call("stop", arguments); return this; }, status: function () { return this._pseudoAnimation.status(); }, destroy: function () { d.forEach(this._connects, dojo.disconnect); } }); d.extend(_324, _317); dojo.fx.combine = function (_32e) { return new _324(_32e); }; dojo.fx.wipeIn = function (args) { var node = args.node = d.byId(args.node), s = node.style, o; var anim = d.animateProperty(d.mixin({ properties: { height: { start: function () { o = s.overflow; s.overflow = "hidden"; if (s.visibility == "hidden" || s.display == "none") { s.height = "1px"; s.display = ""; s.visibility = ""; return 1; } else { var _32f = d.style(node, "height"); return Math.max(_32f, 1); } }, end: function () { return node.scrollHeight; } }} }, args)); d.connect(anim, "onEnd", function () { s.height = "auto"; s.overflow = o; }); return anim; }; dojo.fx.wipeOut = function (args) { var node = args.node = d.byId(args.node), s = node.style, o; var anim = d.animateProperty(d.mixin({ properties: { height: { end: 1}} }, args)); d.connect(anim, "beforeBegin", function () { o = s.overflow; s.overflow = "hidden"; s.display = ""; }); d.connect(anim, "onEnd", function () { s.overflow = o; s.height = "auto"; s.display = "none"; }); return anim; }; dojo.fx.slideTo = function (args) { var node = args.node = d.byId(args.node), top = null, left = null; var init = (function (n) { return function () { var cs = d.getComputedStyle(n); var pos = cs.position; top = (pos == "absolute" ? n.offsetTop : parseInt(cs.top) || 0); left = (pos == "absolute" ? n.offsetLeft : parseInt(cs.left) || 0); if (pos != "absolute" && pos != "relative") { var ret = d.position(n, true); top = ret.y; left = ret.x; n.style.position = "absolute"; n.style.top = top + "px"; n.style.left = left + "px"; } }; })(node); init(); var anim = d.animateProperty(d.mixin({ properties: { top: args.top || 0, left: args.left || 0} }, args)); d.connect(anim, "beforeBegin", anim, init); return anim; }; })(); } if (!dojo._hasResource["dojo.NodeList-fx"]) { dojo._hasResource["dojo.NodeList-fx"] = true; dojo.provide("dojo.NodeList-fx"); dojo.extend(dojo.NodeList, { _anim: function (obj, _330, args) { args = args || {}; var a = dojo.fx.combine(this.map(function (item) { var _331 = { node: item }; dojo.mixin(_331, args); return obj[_330](_331); })); return args.auto ? a.play() && this : a; }, wipeIn: function (args) { return this._anim(dojo.fx, "wipeIn", args); }, wipeOut: function (args) { return this._anim(dojo.fx, "wipeOut", args); }, slideTo: function (args) { return this._anim(dojo.fx, "slideTo", args); }, fadeIn: function (args) { return this._anim(dojo, "fadeIn", args); }, fadeOut: function (args) { return this._anim(dojo, "fadeOut", args); }, animateProperty: function (args) { return this._anim(dojo, "animateProperty", args); }, anim: function (_332, _333, _334, _335, _336) { var _337 = dojo.fx.combine(this.map(function (item) { return dojo.animateProperty({ node: item, properties: _332, duration: _333 || 350, easing: _334 }); })); if (_335) { dojo.connect(_337, "onEnd", _335); } return _337.play(_336 || 0); } }); } if (!dojo._hasResource["jwpc.jwpc"]) {
    dojo._hasResource["jwpc.jwpc"] = true; var jwpc_global_var = null; var jwpc_global_obj = []; dojo.provide("jwpc.jwpc"); dojo.declare("jwpc.jwpc", [dijit._Widget, dijit._Templated], { jwpc_videofile: "", jwpc_videolength: "", jwpc_previewimage: "", jwpc_videoheight: 240, jwpc_videowidth: 320, jwpc_captionfile: "", jwpc_captionstate: "false", jwpc_captionbg: "false", jwpc_captionfontsize: 15, jwpc_audiodescfile: "", jwpc_audiodescstate: "false", jwpc_advolume: 80, jwpc_currentvolume: 80, jwpc_volumeincrease: 20, jwpc_volumedecrease: -20, jwpc_dockicons: "false", jwpc_icons: "false", jwpc_seekdivisor: 20, jwpc_mute: "false", jwpc_token: "", jwpc_provider: "", jwpc_videotitle: "", jwpc_plugins: "", jwpc_id: "", jwpc_flashVersion: "10.0", jwpc_expressInstall: false, jwpc_allowScriptAccess: "always", jwpc_focusable: "a,input,button,textarea,select,area,object,embed,[tabindex=0]", jwpc_headinglevel: "3", maxHeight: null, maxWidth: null, vidHeight: null, vidWidth: null, newHeight: null, newWidth: null, ecB: null, eb: null, plw: null, plc: null, calcpos: 0, sliderIncrement: 0, valuenow: 0, forwardSkiptime: 0, backSkiptime: 0, jwpc_currentPosition: 0, jwpc_currentPlayState: null, jwpc_muteState: false, jwpc_duration: 0, jwpc_player: null, jwpc_oldPosition: 0, jwpc_timerfocus: false, jwpc_arrowSeek: false, duration: 0, tabindex: [], templateString: "<div aria-describedby=\"${id}_jwpc_playerdesc\" aria-labelledby=\"${id}_jwpc_playerheader\"><div class=\"jwpc_playercontainer\" id=\"${id}_jwpc_playercontainer\" dojoAttachPoint=\"jwpc_playercontainer\"><h${jwpc_headinglevel} id=\"${id}_jwpc_playerheader\" tabindex=\"0\" class=\"jwpc_semantic\">Video: ${jwpc_videotitle}</h${jwpc_headinglevel}><div id=\"${id}_jwpc_playerdesc\" class=\"jwpc_semantic\"><p id=\"${id}_jwpc_instructions\">Tab til Spill av/Pause knappen. Bruk piltastene for å navigere i kontrollene. Bruk Tab for å se medgått tid og time scrubber slider.<br>Merk: Scrubber virker ikke sammen med VoiceOver på Mac.</p><p>Tastatursnarveier virker når avspilleren har fokus.</p><ul><li>Alt kontroll P for å spille / pause.</li><li>Alt kontroll for å stoppe.</li><li>Alt kontroll F for å gå fremover.</li><li>Alt kontroll B for å gå tilbake.</li><li>Alt kontroll D for å redusere volumet.</li><li>Alt kontroll U for å øke volumet.</li><li>Alt kontroll M for å dempe lyden.</li><li>Alt kontroll A for lydbeskrivelse.</li><li>Alt kontroll C for overskrifter/titler.</li><li>Alt kontroll R endrer størrelsen på spilleren.</li></ul><p>Merk: Tastatursnarveier virker ikke med VoiceOver på Mac.</p></div><div id=\"${id}_jwpc_playerwrapper\" role=\"application\" class=\"jwpc_playerwrapper\" dojoAttachPoint=\"jwpc_playerwrapper\"><div class=\"jwpc_playercontrols\" dojoAttachPoint=\"jwpc_playercontrols\"><div class=\"jwpc_playertoolbar\" dojoAttachPoint=\"jwpc_playertoolbar\"></div><div class=\"jwpc_timewrapper\" dojoAttachPoint=\"jwpc_timewrapper\"><div tabindex=\"0\" class=\"jwpc_timer\" aria-live=\"off\" aria-labelledby=\"${id}_jwpc_timerlabel\" dojoAttachPoint=\"jwpc_timer\"><span class=\"jwpc_timerlabel\" id=\"${id}_jwpc_timerlabel\" dojoAttachPoint=\"jwpc_timerlabel\">0:00:00/0:00:00</span></div><div class=\"jwpc_timeline\" id=\"${id}_jwpc_timeline\" dojoAttachPoint=\"jwpc_timeline\"></div></div></div><div class=\"jwpc_playerplaceholder\" id=\"${id}_jwpc_playerplaceholder\" dojoAttachPoint=\"jwpc_playerplaceholder\"><div class=\"no-flash\"><p class=\"jwpc_semantic\">You will need the <a href=\"http://www.adobe.com/go/getflashplayer\">Flash Player</a> to see the video.</p></div></div></div></div>", baseClass: "jwpc", constructor: function () { jwpc_global_var = this; }, postCreate: function () {
        this.inherited(arguments); if (this.jwpc_id != "") { dojo.byId(this.jwpc_id).appendChild(this.domNode); } var _338 = this.jwpc_videolength; _338 = dojo.trim(_338); _338.match(/(\d):(\d\d):(\d\d)/); var _339 = RegExp.$1; var _33a = RegExp.$2; var _33b = RegExp.$3; this.jwpc_duration = (eval(_339 * 60 * 60) + eval(_33a * 60) + eval(_33b)); this.duration = 100 / this.jwpc_duration; this.jwpc_player = this.id + "_movie"; this.forwardSkiptime = Math.floor(this.jwpc_duration / this.jwpc_seekdivisor); this.backSkiptime = Math.floor(this.jwpc_duration / this.jwpc_seekdivisor); this.jwpc_videoheight += 24; var _33c = Math.floor(this.forwardSkiptime % 60); _33c = dojo.string.pad(_33c, 2, "0"); var _33d = Math.floor((this.forwardSkiptime / 60) % 60); var _33e = Math.floor(this.forwardSkiptime / (60 * 60)); if (_33d > 9 || _33e > 0) { _33d = dojo.string.pad(_33d, 2, "0"); } this.skiptimeHuman = ""; if (_33e > 0) { this.skiptimeHuman = _33e + " hours "; } if (eval(_33d) > 0) { this.skiptimeHuman += _33d + " minutes "; } this.skiptimeHuman += _33c + " seconds"; var _33f = parseInt(this.jwpc_headinglevel) + 1; dojo.place("<h" + _33f + ">Instructions</h" + _33f + ">", this.id + "_jwpc_playerdesc", "first"); dojo.place("<h" + _33f + ">Keyboard Shortcuts</h" + _33f + ">", this.id + "_jwpc_instructions", "after"); jwpc_global_obj.push(jwpc_global_var); var _340 = { "file": this.jwpc_videofile, "image": this.jwpc_previewimage, "audiodescription.file": this.jwpc_audiodescfile, "audiodescription.volume": this.jwpc_advolume, "audiodescription.state": this.jwpc_audiodescstate, "captions.file": this.jwpc_captionfile, "captions.back": this.jwpc_captionbg, "captions.fontsize": this.jwpc_captionfontsize, "captions.state": this.jwpc_captionstate, "controlbar": "bottom", "dock": this.jwpc_dockicons, "icons": this.jwpc_icons, "mute": this.jwpc_mute, "volume": this.jwpc_currentvolume, "id": this.jwpc_player, "provider": this.jwpc_provider, "token": this.jwpc_token }; if (this.jwpc_audiodescfile != "") { _340.plugins = this.jwpc_plugins + "/audiodescription.swf"; } if (this.jwpc_captionfile != "") { _340.plugins = this.jwpc_plugins + "/captions.swf"; } if (this.jwpc_audiodescfile != "" && this.jwpc_captionfile != "") { _340.plugins = this.jwpc_plugins + "/audiodescription.swf" + "," + this.jwpc_plugins + "/captions.swf"; } var _341 = { "allowfullscreen": "true", "wmode": "opaque", "allowScriptAccess": "always", "allowNetworking": "all" }; this.movie = new dojox.embed.Flash({ expressInstall: this.jwpc_expressInstall, allowScriptAccess: this.jwpc_allowScriptAccess, params: _341, path: this.jwpc_plugins + "/player.swf", width: "100%", height: "100%", minimumVersion: this.jwpc_flashVersion, vars: _340, id: this.jwpc_player }, this.jwpc_playerplaceholder); this.slider = new dijit.form.HorizontalSlider({ value: 0, name: this.id, onFocus: dojo.hitch(this, this.sliderFocus), onBlur: dojo.hitch(this, this.sliderBlur), onKeyUp: dojo.hitch(this, this.sliderKeyUp), onChange: dojo.hitch(this, this.sliderChange), onMouseEnter: dojo.hitch(this, this.sliderEnter), onMouseLeave: dojo.hitch(this, this.sliderLeave), onMouseUp: dojo.hitch(this, this.sliderMouseUp), intermediateChanges: "true", minimum: 0, maximum: this.jwpc_duration, discreteValues: this.jwpc_duration + 1, showButtons: false }, dojo.byId(this.id + "_jwpc_timeline")); if (dojox.embed.Flash.available < this.jwpc_flashVersion) { dojo.query("#" + this.id + "_jwpc_playerplaceholder p").removeClass("jwpc_semantic"); } else { var _342 = dojo.create("div", { id: this.id + "_fullscreen", innerHTML: "<div></div><p style=\"position: absolute; top: 41.5%; text-align: center; width: 100%; color: rgb(255, 255, 255);\"><span id=\"fullscreen\">For å skru på fullskjerm, høyreklikk videoen og klikk <strong>\"Toggle&nbsp;Fullscreen...\"</strong> i menyen.</span><span id=\"loading\"><strong style=\"display:block;clear:both;margin-bottom:1em;\">Laster...</strong><img src=\"/_layouts/Hdir.Inter.Felles/VideoWebPart/jwpc/themes/base/images/loading.gif\" width=\"128\" height=\"15\" alt=\"\" /></span></p>" }, this.jwpc_playerwrapper); dojo.style(_342, { "width": "100%", "top": "0", "position": "absolute", "height": (this.jwpc_videoheight - 24) + "px", "text-align": "center", "fontSize": "1.1em", "left": "-9999px", "zIndex": "999" }); dojo.query("#" + this.id + "_fullscreen div").style({ "width": "100%", "height": "100%", "background": "rgb(0,0,0)", "opacity": "0" }); dojo.connect(_342, "onmouseover", this, function () { if (this.jwpc_currentPlayState == "BUFFERING") { dojo.query("#" + this.id + "_fullscreen #fullscreen").style({ "display": "none" }); dojo.query("#" + this.id + "_fullscreen #loading").style({ "display": "block" }); } else { dojo.query("#" + this.id + "_fullscreen div").fadeOut().play(); dojo.query("#" + this.id + "_fullscreen p").fadeOut().play(); dojo.style(this.id + "_fullscreen", { "left": -9999 + "px" }); } }); dojo.query(".jwpc_timer").onfocus(function () { dojo.addClass(this, "focused"); }); dojo.query(".jwpc_timer").onblur(function () { dojo.removeClass(this, "focused"); }); } dojo.style(this.jwpc_playercontainer, { width: this.jwpc_videowidth + "px" }); dojo.style(this.jwpc_playerwrapper, { width: this.jwpc_videowidth + "px", height: this.jwpc_videoheight + "px" }); this.toolbar = new dijit.Toolbar({}, this.jwpc_playertoolbar);
        this.playB = new dijit.form.Button({ iconClass: "jwIcon jwIconPlay", showLabel: false, id: this.id + "_jwpc_Play", label: "Spill av/Pause", onClick: dojo.hitch(this, this.playPause) });
        this.stopB = new dijit.form.Button({ iconClass: "jwIcon jwIconStop", showLabel: false, label: "Stopp", onClick: dojo.hitch(this, this.stop) });
        this.backB = new dijit.form.Button({ iconClass: "jwIcon jwIconBack", showLabel: false, label: "Gå tilbake " + this.skiptimeHuman, onClick: dojo.hitch(this, this.seekBack) });
        this.forwardB = new dijit.form.Button({ iconClass: "jwIcon jwIconForward", showLabel: false, label: "Gå fremover " + this.skiptimeHuman, onClick: dojo.hitch(this, this.seekForward) });
        this.vdB = new dijit.form.Button({ iconClass: "jwIcon jwIconVolumeDown", showLabel: false, id: this.id + "_jwpc_VolumeDown", label: "Reduser volum til " + eval(this.jwpc_currentvolume + this.jwpc_volumedecrease) + "%", onClick: dojo.hitch(this, this.volumeDown) });
        this.vuB = new dijit.form.Button({ iconClass: "jwIcon jwIconVolumeUp", showLabel: false, id: this.id + "_jwpc_VolumeUp", label: "Øk volum til " + eval(this.jwpc_currentvolume + this.jwpc_volumeincrease) + "%", onClick: dojo.hitch(this, this.volumeUp) }); 
        this.muteB = new dijit.form.Button({ iconClass: "jwIcon jwIconMuteOff", showLabel: false, id: this.id + "_jwpc_Mute", label: "Skru av lyd", onClick: dojo.hitch(this, this.mute) });
        this.descriptionB = new dijit.form.Button({ iconClass: "jwIcon jwIconAdOn", showLabel: false, id: this.id + "_jwpc_Description", label: "Lydbeskrivelse", onClick: dojo.hitch(this, this.description) });
        this.captionsB = new dijit.form.Button({ iconClass: "jwIcon jwIconCcOn", showLabel: false, id: this.id + "_jwpc_Captions", label: "Overskrifter", onClick: dojo.hitch(this, this.captions) });
        this.enlargeB = new dijit.form.Button({ iconClass: "jwIcon jwIconEnlarge", showLabel: false, id: this.id + "_jwpc_Enlarge", label: "For å vise film i fullskjerm, høyreklikk på filmen og velg \"Toggle fullscreen\" fra menyen", onClick: dojo.hitch(this, this.enlarge), onMouseOver: dojo.hitch(this, this.enlargeMouseOver), onFocus: dojo.hitch(this, this.enlargeMouseOver), onMouseOut: dojo.hitch(this, this.enlargeMouseOut), onBlur: dojo.hitch(this, this.enlargeMouseOut) }); this.slider.startup(); this.toolbar.addChild(this.playB); this.toolbar.addChild(this.stopB); this.toolbar.addChild(this.backB); this.toolbar.addChild(this.forwardB); this.toolbar.addChild(new dijit.ToolbarSeparator()); this.toolbar.addChild(this.vdB); this.toolbar.addChild(this.vuB); this.toolbar.addChild(this.muteB); this.toolbar.addChild(new dijit.ToolbarSeparator()); if (this.jwpc_audiodescfile != "") { this.toolbar.addChild(this.descriptionB); } if (this.jwpc_captionfile != "") { this.toolbar.addChild(this.captionsB); } if (this.jwpc_audiodescfile != "" || this.jwpc_captionfile != "") { this.toolbar.addChild(new dijit.ToolbarSeparator()); } this.toolbar.addChild(this.enlargeB); dojo.query("#" + this.id + " .dijitSliderImageHandle").html("<div id=\"" + this.id + "_jwpc_currentposition\" class=\"jwpc_currentposition jwpc_semantic\"><div><span class=\"jwpc_semantic\">Current time: 0:00:00</span></div></div>"); var mutB = dijit.byId(this.id + "_jwpc_Mute"); var mute = dojo.byId(this.id + "_jwpc_Mute").childNodes[0]; if (this.jwpc_mute == "true") { mutB.set("label", "Skru på lyd"); dojo.removeClass(mute, "jwIconMuteOff"); dojo.addClass(mute, "jwIconMuteOn"); } else { mutB.set("label", "Skru av lyd"); dojo.removeClass(mute, "jwIconMuteOn"); dojo.addClass(mute, "jwIconMuteOff"); } if (this.jwpc_audiodescfile != "") { var desc = dojo.byId(this.id + "_jwpc_Description").childNodes[0]; var _343 = dijit.byId(this.id + "_jwpc_Description"); if (this.jwpc_audiodescstate == "false") { dojo.removeClass(desc, "jwIconAdOn"); dojo.addClass(desc, "jwIconAdOff"); _343.set("label", "Skru på lydbeskrivelse"); } else { dojo.removeClass(desc, "jwIconAdOff"); dojo.addClass(desc, "jwIconAdOn"); _343.set("label", "Skru av lydbeskrivelse"); } } if (this.jwpc_captionfile != "") { var cap = dojo.byId(this.id + "_jwpc_Captions").childNodes[0]; var capB = dijit.byId(this.id + "_jwpc_Captions"); if (this.jwpc_captionstate == "false") { dojo.removeClass(cap, "jwIconCcOn"); dojo.addClass(cap, "jwIconCcOff"); capB.set("label", "Skru på avspillertitler"); } else { dojo.removeClass(cap, "jwIconCcOff"); dojo.addClass(cap, "jwIconCcOn"); capB.set("label", "Skru av avspillertitler"); } } dojo.connect(window, "onresize", this, this.windowReposition); dojo.connect(window, "onscroll", this, this.windowReposition); dojo.connect(dojo.byId(this.id), "onkeypress", this, function (_344) { if (_344.altKey && _344.keyChar == "p" && (_344.ctrlKey || _344.metaKey)) { dojo.byId(this.id + "_jwpc_Play").focus(); this.playPause(); } if (_344.altKey && _344.keyChar == "s" && (_344.ctrlKey || _344.metaKey)) { this.stop(); } if (_344.altKey && _344.keyChar == "b" && (_344.ctrlKey || _344.metaKey)) { this.seekBack(); } if (_344.altKey && _344.keyChar == "f" && (_344.ctrlKey || _344.metaKey)) { this.seekForward(); } if (_344.altKey && _344.keyChar == "d" && (_344.ctrlKey || _344.metaKey)) { this.volumeDown(); } if (_344.altKey && _344.keyChar == "u" && (_344.ctrlKey || _344.metaKey)) { this.volumeUp(); } if (_344.altKey && _344.keyChar == "m" && (_344.ctrlKey || _344.metaKey)) { this.mute(); } if (_344.altKey && _344.keyChar == "r" && (_344.ctrlKey || _344.metaKey)) { this.enlarge(); } if (_344.keyCode == "27" && dojo.hasClass(this.id + "_jwpc_Enlarge", "active") && dojox.embed.Flash.available >= this.jwpc_flashVersion) { this.enlarge(); } if (this.jwpc_captionfile != "") { if (_344.altKey && _344.keyChar == "c" && (_344.ctrlKey || _344.metaKey)) { this.captions(); } } if (this.jwpc_audiodescfile != "") { if (_344.altKey && _344.keyChar == "a" && (_344.ctrlKey || _344.metaKey)) { this.description(); } } });
        this.helpB = new dijit.form.DropDownButton({ iconClass: "jwIcon jwIconHelp", showLabel: false, id: this.id + "_jwpc_Help", label: "Hjelp" });
        this.toolbar.addChild(this.helpB); 
        this.helpB.dropDown = new dijit.TooltipDialog({ baseClass: "jwpc", style: "width: 385px", content: "<div class=\"jwpc_helpdialog\" role=\"document\" tabindex=\"0\"><h4>Snarveier</h4><p class=\"jwpc_semantic\">Trykk Escape for å returnere til vanlig navigering.</p><p>Snarveiene er bare tilgjengelige når spilleren har fokus.<br>Snarveier virker ikke når videoen vises i fullskjermsvisning.</p><ul><li><code>Alt + Control + P</code> Spill av/pause</li><li><code>Alt + Control + S</code> Stopp</li><li><code>Alt + Control + F</code> Gå fremover</li><li><code>Alt + Control + B</code> Gå tilbake</li><li><code>Alt + Control + D</code> Reduser volumet</li><li><code>Alt + Control + U</code> Øk volumet</li><li><code>Alt + Control + M</code> Skru av lyd</li><li><code>Alt + Control + A</code> Lydbeskrivelse (Hvis tilgjengelig)</li><li><code>Alt + Control + C</code> Overskrifter (Hvis tilgjengelig)</li><li><code>Alt + Control + R</code> Endre spillerens størrelse</li></ul></div>" }); dojo.style(this.id, { width: dojo.marginBox(this.id + "_jwpc_playercontainer").w + "px", height: dojo.marginBox(this.id + "_jwpc_playercontainer").h + "px" }); if (dojo.byId("jwpc-underlay-container") === null || dojo.byId("jwpc-underlay-container") === undefined) { dojo.create("div", { id: "jwpc-underlay-container", innerHTML: "<div id=\"jwpc-shim\"></div>" }, dojo.body()); } if (dojo.isIE <= 7) { dojo.create("div", { id: this.id + "_ie-shim", style: "display:none" }, this.id, "after"); } 
    }, windowReposition: function () { if (dojo.hasClass(this.id + "_jwpc_Enlarge", "active")) { var _345 = dojo.window.getBox(); dojo.style("jwpc-underlay-container", { width: _345.w + "px", height: _345.h + "px", top: _345.t + "px", left: _345.l + "px" }); } }, accessibilityButtonStateChecker: function () { var desc = dojo.byId(this.id + "_jwpc_Description").childNodes[0]; var _346 = dijit.byId(this.id + "_jwpc_Description"); var cap = dojo.byId(this.id + "_jwpc_Captions").childNodes[0]; var capB = dijit.byId(this.id + "_jwpc_Captions"); if (dojo.byId(this.jwpc_player).adState("") === "false") { dojo.removeClass(desc, "jwIconAdOn"); dojo.addClass(desc, "jwIconAdOff"); _346.set("label", "Skru på avspillertitler"); } else { dojo.removeClass(desc, "jwIconAdOff"); dojo.addClass(desc, "jwIconAdOn"); _346.set("label", "Skru av avspillertitler"); } if (dojo.byId(this.jwpc_player).captionState("") === "false") { dojo.removeClass(cap, "jwIconCcOn"); dojo.addClass(cap, "jwIconCcOff"); capB.set("label", "Skru på avspillertitler"); } else { dojo.removeClass(cap, "jwIconCcOff"); dojo.addClass(cap, "jwIconCcOn"); capB.set("label", "Skru av avspillertitler"); } }, enlargeMouseOver: function () { if (dojox.embed.Flash.available >= this.jwpc_flashVersion) { dojo.query("#" + this.id + "_fullscreen #fullscreen").style({ "display": "block" }); dojo.query("#" + this.id + "_fullscreen #loading").style({ "display": "none" }); dojo.style(this.id + "_fullscreen", { "left": "0" }); dojo.query("#" + this.id + "_fullscreen div").fadeIn({ end: 0.75 }).play(); dojo.query("#" + this.id + "_fullscreen p").fadeIn().play(); } }, enlargeMouseOut: function (e) { if (dojox.embed.Flash.available >= this.jwpc_flashVersion) { if (this.jwpc_currentPlayState == "BUFFERING") { dojo.query("#" + this.id + "_fullscreen #fullscreen").style({ "display": "none" }); dojo.query("#" + this.id + "_fullscreen #loading").style({ "display": "block" }); } else { dojo.query("#" + this.id + "_fullscreen div").fadeOut().play(); dojo.query("#" + this.id + "_fullscreen p").fadeOut().play(); } } }, sliderEnter: function () { dojo.addClass(this.id + "_jwpc_currentposition", "hoverActive"); dojo.removeClass(this.id + "_jwpc_currentposition", "jwpc_semantic"); }, sliderLeave: function () { dojo.removeClass(this.id + "_jwpc_currentposition", "hoverActive"); if (!dojo.hasClass(this.id + "_jwpc_currentposition", "focusActive")) { dojo.addClass(this.id + "_jwpc_currentposition", "jwpc_semantic"); } }, sliderFocus: function () { if (this.jwpc_currentPosition == 0) { dijit.byId(this.id + "_jwpc_timeline").set("disabled", true); } if (this.jwpc_currentPlayState == "BUFFERING" || this.jwpc_currentPlayState == "PLAYING") { dojo.byId(this.jwpc_player).sendEvent("PLAY"); } dojo.addClass(this.id + "_jwpc_currentposition", "focusActive"); dojo.removeClass(this.id + "_jwpc_currentposition", "jwpc_semantic"); }, sliderBlur: function () { dijit.byId(this.id + "_jwpc_timeline").set("disabled", false); dojo.removeClass(this.id + "_jwpc_currentposition", "focusActive"); if (!dojo.hasClass(this.id + "_jwpc_currentposition", "hoverActive")) { dojo.addClass(this.id + "_jwpc_currentposition", "jwpc_semantic"); } }, seek: function (_347) { dojo.byId(this.jwpc_player).sendEvent("SEEK", _347); }, sliderStart: function () { if (this.jwpc_currentPosition != 0 && (this.jwpc_currentPlayState != "BUFFERING" || this.jwpc_currentPlayState != "PLAYING")) { dojo.byId(this.id + "_jwpc_Play").focus(); if (this.slider.value == this.valuenow) { this.playPause(); this.seek(this.slider.value); } else { this.seek(this.slider.value); } } }, sliderKeyUp: function (e) { var key = e.keyCode; if (key == dojo.keys.ENTER || key == dojo.keys.SPACE) { this.sliderStart(); } if (key == dojo.keys.LEFT_ARROW || key == dojo.keys.RIGHT_ARROW) { this.jwpc_arrowSeek = true; } }, sliderMouseUp: function () { this.sliderStart(); }, sliderChange: function (val) { this.updateTimer(val); this.moveSlider(val); }, moveSlider: function (_348) { var _349 = Math.floor(_348 % 60); _349 = dojo.string.pad(_349, 2, "0"); var _34a = Math.floor((_348 / 60) % 60); var _34b = Math.floor(_348 / (60 * 60)); if (_34a > 9 || _34b > 0) { _34a = dojo.string.pad(_34a, 2, "0"); } var _34c = ""; if (_34b > 0) { _34c = _34b + " hours "; } if (eval(_34a) > 0) { _34c += _34a + " minutes "; } _34c += _349 + " seconds"; this.sliderIncrement = Math.floor(parseFloat(this.duration * (_348)) * 10000) / 10000; dojo.query("#" + this.id + " .dijitSliderProgressBar").style({ "width": this.sliderIncrement + "%" }); dojo.query("#" + this.id + " .dijitSliderImageHandle").attr("aria-valuenow", _34c); dojo.query("#" + this.id + " input[name=\"" + this.id + "\"]").attr("value", _348); }, addListeners: function (obj) { dojo.byId(obj.id).addModelListener("STATE", "playListener"); dojo.byId(obj.id).addModelListener("TIME", "timeListener"); dojo.byId(obj.id).addControllerListener("VOLUME", "volumeListener"); dojo.byId(obj.id).addControllerListener("MUTE", "muteListener"); dojo.byId(obj.id).addModelListener("STATE", "stateListener"); }, updateState: function (obj) { this.jwpc_currentPlayState = obj.newstate; if (this.jwpc_currentPlayState == "COMPLETED") { this.stop(); } else { if (this.jwpc_currentPlayState == "BUFFERING") { dojo.query("#" + this.id + "_fullscreen #fullscreen").style({ "display": "none" }); dojo.query("#" + this.id + "_fullscreen #loading").style({ "display": "block" }); dojo.style(this.id + "_fullscreen", { "left": "0" }); dojo.query("#" + this.id + "_fullscreen div").fadeIn({ end: 0.75 }).play(); dojo.query("#" + this.id + "_fullscreen p").fadeIn().play(); } else { dojo.query("#" + this.id + "_fullscreen div").fadeOut().play(); dojo.query("#" + this.id + "_fullscreen p").fadeOut().play(); } } }, updatePlayButtons: function (obj) { this.jwpc_currentPlayState = obj.newstate; var pb = dojo.byId(this.id + "_jwpc_Play").childNodes[0]; var pbd = dijit.byId(this.id + "_jwpc_Play"); if (this.jwpc_currentPlayState == "BUFFERING" || this.jwpc_currentPlayState == "PLAYING") { dojo.removeClass(pb, "jwIconPlay"); dojo.addClass(pb, "jwIconPause"); pbd.set("label", "Pause"); } else { dojo.removeClass(pb, "jwIconPause"); dojo.addClass(pb, "jwIconPlay"); pbd.set("label", "Spill av"); } }, updatePosition: function (obj) { this.jwpc_currentPosition = Math.floor(obj.position); this.updateTimer(this.jwpc_currentPosition); this.sliderPosition(this.jwpc_currentPosition); this.accessibilityButtonStateChecker(); }, updateTimer: function (_34d) { var pos = Math.floor(_34d); var dur = Math.floor(this.jwpc_duration); var _34e = Math.floor(dur % 60); _34e = dojo.string.pad(_34e, 2, "0"); var _34f = Math.floor((dur / 60) % 60); var _350 = Math.floor(dur / (60 * 60)); var _351 = Math.floor(pos % 60); _351 = dojo.string.pad(_351, 2, "0"); var _352 = Math.floor((pos / 60) % 60); var _353 = Math.floor(pos / (60 * 60)); if (_34f > 9 || _350 > 0) { _34f = dojo.string.pad(_34f, 2, "0"); _352 = dojo.string.pad(_352, 2, "0"); } var _354 = ""; var _355 = ""; if (_350 > 0) { _354 = _353 + ":"; _355 = _350 + ":"; } if (eval(_34f) > 0) { _354 += _352 + ":"; _355 += _34f + ":"; } _354 += _351; _355 += _34e; dojo.byId(this.id + "_jwpc_timerlabel").innerHTML = "<span class=\"jwpc_semantic\">Elapsed time: </span>" + _354 + "/" + _355; dojo.query("#" + this.id + "_jwpc_currentposition div").html(_354); }, sliderPosition: function (_356) { this.valuenow = Math.floor(_356); if (this.jwpc_oldPosition < this.valuenow && this.slider.value < _356) { this.slider.value = this.valuenow; var _357 = Math.floor(this.valuenow % 60); _357 = dojo.string.pad(_357, 2, "0"); var _358 = Math.floor((this.valuenow / 60) % 60); var _359 = Math.floor(this.valuenow / (60 * 60)); if (_358 > 9 || _359 > 0) { _358 = dojo.string.pad(_358, 2, "0"); } var _35a = ""; if (_359 > 0) { _35a = _359 + " hours "; } if (eval(_358) > 0) { _35a += _358 + " minutes "; } _35a += _357 + " seconds"; dojo.query("#" + this.id + " .dijitSliderImageHandle").attr("aria-valuenow", _35a); dojo.query("#" + this.id + " input[name=\"" + this.id + "\"]").attr("value", this.valuenow); this.sliderIncrement = this.sliderIncrement + this.duration; dojo.query("#" + this.id + " .dijitSliderProgressBar").style({ "width": (Math.round(parseFloat(this.sliderIncrement) * 10000) / 10000) + "%" }); } this.jwpc_oldPosition = _356; }, updateMuteButton: function (obj) { this.jwpc_muteState = obj.state; var mutB = dijit.byId(this.id + "_jwpc_Mute"); var mute = dojo.byId(this.id + "_jwpc_Mute").childNodes[0]; if (this.jwpc_muteState) { mutB.set("label", "Skru på lyden"); dojo.removeClass(mute, "jwIconMuteOff"); dojo.addClass(mute, "jwIconMuteOn"); } if (this.jwpc_currentvolume != 0 && !this.jwpc_muteState) { mutB.set("label", "Skru av lyden"); dojo.removeClass(mute, "jwIconMuteOn"); dojo.addClass(mute, "jwIconMuteOff"); } var uvb = dijit.byId(this.id + "_jwpc_VolumeUp"); var dvb = dijit.byId(this.id + "_jwpc_VolumeDown"); if (this.jwpc_currentvolume < 100 && !this.jwpc_muteState) { uvb.set("label", "Øk volumet til " + eval(this.jwpc_currentvolume + this.jwpc_volumeincrease) + "%"); dvb.set("label", "Reduser volumet til " + eval(this.jwpc_currentvolume + this.jwpc_volumedecrease) + "%"); } else { if (this.jwpc_muteState) { var _35b = ((this.jwpc_currentvolume + this.jwpc_volumeincrease) >= 100) ? (100) : (this.jwpc_currentvolume + this.jwpc_volumeincrease); uvb.set("label", "Øk volumet til " + _35b + "%"); dvb.set("label", "Lyden er skrudd av"); } else { uvb.set("label", "Volumet er 100%"); dvb.set("label", "Reduser volumet til " + eval(100 + this.jwpc_volumedecrease) + "%"); } } }, updateVolumeButtons: function (obj) { this.jwpc_currentvolume = obj.percentage; if (this.jwpc_currentvolume == 0) { this.jwpc_muteState = true; } else { this.jwpc_muteState = false; } var uvb = dijit.byId(this.id + "_jwpc_VolumeUp"); var dvb = dijit.byId(this.id + "_jwpc_VolumeDown"); var mutB = dijit.byId(this.id + "_jwpc_Mute"); var mute = dojo.byId(this.id + "_jwpc_Mute").childNodes[0]; if (this.jwpc_currentvolume < 100 && !this.jwpc_muteState) { uvb.set("label", "Øk volumet til " + eval(this.jwpc_currentvolume + this.jwpc_volumeincrease) + "%"); dvb.set("label", "Reduser volumet til " + eval(this.jwpc_currentvolume + this.jwpc_volumedecrease) + "%"); mutB.set("label", "Skru av lyden"); dojo.removeClass(mute, "jwIconMuteOn"); dojo.addClass(mute, "jwIconMuteOff"); } else { if (this.jwpc_muteState) { var _35c = ((this.jwpc_currentvolume + this.jwpc_volumeincrease) >= 100) ? (100) : (this.jwpc_currentvolume + this.jwpc_volumeincrease); uvb.set("label", "Øk volumet til " + _35c + "%"); dvb.set("label", "Lyden er skrudd av"); mutB.set("label", "Skru på lyden"); dojo.removeClass(mute, "jwIconMuteOff"); dojo.addClass(mute, "jwIconMuteOn"); } else { uvb.set("label", "Volumet er 100%"); dvb.set("label", "Reduser volumet til " + eval(100 + this.jwpc_volumedecrease) + "%"); } } }, playPause: function () { if (this.jwpc_arrowSeek == true) { dojo.byId(this.jwpc_player).sendEvent("SEEK", this.slider.value); this.jwpc_arrowSeek = false; } else { this.slider.value = Math.floor(this.jwpc_currentPosition); this.moveSlider(this.jwpc_currentPosition); dojo.byId(this.jwpc_player).sendEvent("PLAY"); } }, stop: function () { dojo.byId(this.jwpc_player).sendEvent("STOP"); var pb = dojo.byId(this.id + "_jwpc_Play").childNodes[0]; dojo.removeClass(pb, "jwIconPause"); dojo.addClass(pb, "jwIconPlay"); this.updateTimer(0); this.jwpc_oldPosition = 0; this.sliderIncrement = 0; this.slider.value = 0; this.jwpc_currentPosition = 0; this.jwpc_oldPosition = 0; this.slider.value = 0; this.moveSlider(0); }, seekBack: function () { var _35d = Math.floor(this.jwpc_currentPosition - this.backSkiptime); if (_35d > 0) { this.moveSlider(_35d); dojo.byId(this.jwpc_player).sendEvent("SEEK", _35d); } }, seekForward: function () { var _35e = Math.floor(this.jwpc_currentPosition + this.forwardSkiptime); if (_35e < this.jwpc_duration && this.jwpc_currentPosition != 0) { this.moveSlider(_35e); dojo.byId(this.jwpc_player).sendEvent("SEEK", _35e); } }, volume: function (_35f) { var _360 = _35f; dojo.byId(this.jwpc_player).sendEvent("VOLUME", _360); }, volumeDown: function () { var _361 = this.jwpc_currentvolume + this.jwpc_volumedecrease; if (_361 <= 0) { _361 = 0; } dojo.byId(this.jwpc_player).sendEvent("VOLUME", _361); }, volumeUp: function () { var _362 = this.jwpc_currentvolume + this.jwpc_volumeincrease; if (_362 >= 100) { _362 = 100; } dojo.byId(this.jwpc_player).sendEvent("VOLUME", _362); }, mute: function () { dojo.byId(this.jwpc_player).sendEvent("MUTE"); }, description: function () { if (this.jwpc_audiodescfile) { var desc = dojo.byId(this.id + "_jwpc_Description").childNodes[0]; var _363 = dijit.byId(this.id + "_jwpc_Description"); dojo.byId(this.jwpc_player).toggleAD("true"); if (dojo.byId(this.jwpc_player).adState("") === "false") { dojo.removeClass(desc, "jwIconAdOn"); dojo.addClass(desc, "jwIconAdOff"); _363.set("label", "Skru på lydbeskrivelse"); } else { dojo.removeClass(desc, "jwIconAdOff"); dojo.addClass(desc, "jwIconAdOn"); _363.set("label", "Skru av lydbeskrivelse"); } } else { this.descriptionB.setDisabled(true); } }, captions: function () { if (this.jwpc_captionfile) { var cap = dojo.byId(this.id + "_jwpc_Captions").childNodes[0]; var capB = dijit.byId(this.id + "_jwpc_Captions"); dojo.byId(this.jwpc_player).toggleCaptions("true"); if (dojo.byId(this.jwpc_player).captionState("") === "false") { dojo.removeClass(cap, "jwIconCcOn"); dojo.addClass(cap, "jwIconCcOff"); capB.set("label", "Skru på avspillertitler"); this.jwpc_captionstate = "false"; } else { dojo.removeClass(cap, "jwIconCcOff"); dojo.addClass(cap, "jwIconCcOn"); capB.set("label", "Skru av avspillertitler"); this.jwpc_captionstate = "true"; } } else { this.captionsB.setDisabled(true); } }, resizeVideo: function () { this.maxHeight = dojo.window.getBox().h - 58; this.maxWidth = dojo.window.getBox().w - 48; this.vidHeight = this.jwpc_videoheight; this.vidWidth = this.jwpc_videowidth; if (this.vidWidth / this.maxWidth > this.vidHeight / this.maxHeight) { this.newWidth = this.maxWidth; this.newHeight = this.newWidth / this.vidWidth * this.vidHeight; } else { this.newHeight = this.maxHeight; this.newWidth = this.newHeight / this.vidHeight * this.vidWidth; } this.ecB = dijit.byId(this.id + "_jwpc_Enlarge"); this.eb = dojo.byId(this.id + "_jwpc_Enlarge").childNodes[0]; this.plw = dojo.byId(this.id + "_jwpc_playerwrapper"); this.plc = dojo.byId(this.id + "_jwpc_playercontainer"); dojo.style(this.plw, { width: this.newWidth + "px", height: this.newHeight + "px" }); var _364 = dojo.window.getBox(); dojo.style("jwpc-underlay-container", { display: "block", width: _364.w + "px", height: _364.h + "px", top: _364.t + "px", left: _364.l + "px" }); dojo.query("#jwpc-shim").style({ position: "absolute", top: ((dojo.window.getBox().h / 2) - ((this.newHeight / 2) - 8)) + "px" }); dojo.style(this.plc, { width: this.newWidth + "px", top: Math.floor(dojo.position("jwpc-shim", true).y - dojo.position(this.plc, true).y + 20) + "px", left: Math.floor(dojo.window.getBox().w / 2 - (this.newWidth / 2) - dojo.position(this.id, true).x - 5) + "px", zIndex: 999 }); dojo.query("#" + this.id + "_fullscreen").style({ fontSize: "1.8em", height: this.newHeight - 24 + "px" }); }, enlarge: function () { if (dojo.hasClass(this.id + "_jwpc_Enlarge", "active") === false && (dojox.embed.Flash.available >= this.jwpc_flashVersion)) { if (dojo.isIE <= 7) { dojo.style(this.id, { position: "absolute", zIndex: 9999 }); dojo.query("#" + this.id + "_ie-shim").style({ display: "block", height: this.jwpc_videoheight + "px", width: this.jwpc_videowidth + "px" }); } this.resizeVideo(); dojo.query(this.jwpc_focusable).forEach(function (node, _365, _366) { jwpc_global_var.tabindex[_365] = node.getAttribute("tabindex"); node.setAttribute("tabindex", -1); }); dojo.query(".jwpc_timer, .dijitSliderImageHandle, .dijitToolbar").attr("tabindex", -1); dojo.query(".jwpc_timer, .dijitSliderImageHandle, .dijitToolbar", dojo.byId(this.id)).attr("tabindex", 0); dojo.removeClass(this.eb, "jwIconEnlarge"); dojo.addClass(this.eb, "jwIconUnEnlarge"); this.ecB.set("label", "Reduser spillerstørrelsen"); dojo.addClass(this.id + "_jwpc_Enlarge", "active"); } else { if (dojo.hasClass(this.id + "_jwpc_Enlarge", "active") === true && dojox.embed.Flash.available >= this.jwpc_flashVersion) { dojo.query(this.jwpc_focusable).forEach(function (node, _367, _368) { if (jwpc_global_var.tabindex[_367] !== null) { node.setAttribute("tabindex", jwpc_global_var.tabindex[_367]); } else { node.removeAttribute("tabindex"); } }); dojo.query(".jwpc_timer, .dijitSliderImageHandle, .dijitToolbar").attr("tabindex", 0); this.tabindex = []; if (dojo.isIE <= 7) { dojo.style(this.id, { position: "relative", zIndex: "" }); dojo.query("#" + this.id + "_ie-shim").style({ display: "none" }); } dojo.style("jwpc-underlay-container", { display: "none" }); dojo.style(this.plc, { width: this.jwpc_videowidth + "px", left: 0, top: 0, zIndex: 997 }); dojo.style(this.plw, { width: this.jwpc_videowidth + "px", height: this.jwpc_videoheight + "px" }); dojo.removeClass(this.eb, "jwIconUnEnlarge"); dojo.addClass(this.eb, "jwIconEnlarge"); this.ecB.set("label", "Gjør filmen større"); dojo.query("#" + this.id + "_fullscreen").style({ "fontSize": "1.1em", "height": (this.jwpc_videoheight - 24) + "px" }); dojo.removeClass(this.id + "_jwpc_Enlarge", "active"); } } } 
}); playListener = function (obj) { for (var i = 0; i < jwpc_global_obj.length; i++) { var ins = jwpc_global_obj[i]; if (obj.id.replace(/_movie/, "") == ins.id) { ins.updatePlayButtons(obj); } } }; timeListener = function (obj) { for (var i = 0; i < jwpc_global_obj.length; i++) { var ins = jwpc_global_obj[i]; if (obj.id.replace(/_movie/, "") == ins.id) { ins.updatePosition(obj); } } };
volumeListener=function(obj){for(var i=0;i<jwpc_global_obj.length;i++){var ins=jwpc_global_obj[i];if(obj.id.replace(/_movie/,"")==ins.id){ins.updateVolumeButtons(obj);}}};muteListener=function(obj){for(var i=0;i<jwpc_global_obj.length;i++){var ins=jwpc_global_obj[i];if(obj.id.replace(/_movie/,"")==ins.id){ins.updateMuteButton(obj);}}};stateListener=function(obj){for(var i=0;i<jwpc_global_obj.length;i++){var ins=jwpc_global_obj[i];if(obj.id.replace(/_movie/,"")==ins.id){ins.updateState(obj);}}};playerReady=function(obj){for(var i=0;i<jwpc_global_obj.length;i++){var ins=jwpc_global_obj[i];ins.addListeners(obj);ins.updateTimer(ins.jwpc_currentPosition);}};}

