/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

(function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i<_1.length;i++){var _7=_1[i];_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";_3+=(i==0?"":",")+_7[0];_4+=(i==0?"":",")+_7[1];_5[_7[0]]=_7[1];_6[_7[1]]=_7[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(typeof this["loadFirebugConsole"]=="function"){this["loadFirebugConsole"]();}else{this.console=this.console||{};var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _8=tn+"";console[_8]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(_8+":");console["log"](a.join(" "));}:function(){};console[_8]._fake=true;})();}}}if(typeof dojo=="undefined"){dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};var _9=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null;if(_9){for(var c in _9){d.config[c]=_9[c];}}dojo.locale=d.config.locale;var _a="$Rev: 24595 $".match(/\d+/);dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:_a?+_a[0]:NaN,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());}var _b,_c,_d={};for(var i in {toString:1}){_b=[];break;}dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];_c=_b.length;dojo._mixin=function(_e,_f){var _10,s,i;for(_10 in _f){s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}if(_c&&_f){for(i=0;i<_c;++i){_10=_b[i];s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}}return _e;};dojo.mixin=function(obj,_11){if(!obj){obj={};}for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i]);}return obj;};dojo._getProp=function(_12,_13,_14){var obj=_14||d.global;for(var i=0,p;obj&&(p=_12[i]);i++){if(i==0&&d._scopeMap[p]){p=d._scopeMap[p];}obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_15,_16,_17){var _18=_15.split("."),p=_18.pop(),obj=d._getProp(_18,true,_17);return obj&&p?(obj[p]=_16):undefined;};dojo.getObject=function(_19,_1a,_1b){return d._getProp(_19.split("."),_1a,_1b);};dojo.exists=function(_1c,obj){return d.getObject(_1c,false,obj)!==undefined;};dojo["eval"]=function(_1d){return d.global.eval?d.global.eval(_1d):eval(_1d);};d.deprecated=d.experimental=function(){};})();(function(){var d=dojo,_1e;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_1f){var mp=d._modulePrefixes;return !!(mp[_1f]&&mp[_1f].value);},_getModulePrefix:function(_20){var mp=d._modulePrefixes;if(d._moduleHasPrefix(_20)){return mp[_20].value;}return _20;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_21,_22,cb){var uri=((_21.charAt(0)=="/"||_21.match(/^\w+:/))?"":d.baseUrl)+_21;try{_1e=_22;return !_22?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_22,cb);}catch(e){console.error(e);return false;}finally{_1e=null;}};dojo._loadUri=function(uri,cb){if(d._loadedUrls[uri]){return true;}d._inFlightCount++;var _23=d._getText(uri,true);if(_23){d._loadedUrls[uri]=true;d._loadedUrls.push(uri);if(cb){_23=/^define\(/.test(_23)?_23:"("+_23+")";}else{_23=d._scopePrefix+_23+d._scopeSuffix;}if(!d.isIE){_23+="\r\n//@ sourceURL="+uri;}var _24=d["eval"](_23);if(cb){cb(_24);}}if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){setTimeout(function(){if(d._inFlightCount==0){d._callLoaded();}},0);}return !!_23;};dojo._loadUriAndCheck=function(uri,_25,cb){var ok=false;try{ok=d._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return !!(ok&&d._loadedModules[_25]);};dojo.loaded=function(){d._loadNotifying=true;d._postLoad=true;var mll=d._loaders;d._loaders=[];for(var x=0;x<mll.length;x++){mll[x]();}d._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded();}};dojo.unloaded=function(){var mll=d._unloaders;while(mll.length){(mll.pop())();}};d._onto=function(arr,obj,fn){if(!fn){arr.push(obj);}else{if(fn){var _26=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_26.call(obj);});}}};dojo.ready=dojo.addOnLoad=function(obj,_27){d._onto(d._loaders,obj,_27);if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};var dca=d.config.addOnLoad;if(dca){d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);}dojo._modulesLoaded=function(){if(d._postLoad){return;}if(d._inFlightCount>0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){setTimeout(d.isAIR?function(){d.loaded();}:d._scopeName+".loaded();",0);}else{d.loaded();}};dojo._getModuleSymbols=function(_28){var _29=_28.split(".");for(var i=_29.length;i>0;i--){var _2a=_29.slice(0,i).join(".");if(i==1&&!d._moduleHasPrefix(_2a)){_29[0]="../"+_29[0];}else{var _2b=d._getModulePrefix(_2a);if(_2b!=_2a){_29.splice(0,i,_2b);break;}}}return _29;};dojo._global_omit_module_check=false;dojo.loadInit=function(_2c){_2c();};dojo._loadModule=dojo.require=function(_2d,_2e){_2e=d._global_omit_module_check||_2e;var _2f=d._loadedModules[_2d];if(_2f){return _2f;}var _30=d._getModuleSymbols(_2d).join("/")+".js";var _31=!_2e?_2d:null;var ok=d._loadPath(_30,_31);if(!ok&&!_2e){throw new Error("Could not load '"+_2d+"'; last tried '"+_30+"'");}if(!_2e&&!d._isXDomain){_2f=d._loadedModules[_2d];if(!_2f){throw new Error("symbol '"+_2d+"' is not defined after loading '"+_30+"'");}}return _2f;};dojo.provide=function(_32){_32=_32+"";return (d._loadedModules[_32]=d.getObject(_32,true));};dojo.platformRequire=function(_33){var _34=_33.common||[];var _35=_34.concat(_33[d._name]||_33["default"]||[]);for(var x=0;x<_35.length;x++){var _36=_35[x];if(_36.constructor==Array){d._loadModule.apply(d,_36);}else{d._loadModule(_36);}}};dojo.requireIf=function(_37,_38){if(_37===true){var _39=[];for(var i=1;i<arguments.length;i++){_39.push(arguments[i]);}d.require.apply(d,_39);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_3a,_3b){d._modulePrefixes[_3a]={name:_3a,value:_3b};};dojo.requireLocalization=function(_3c,_3d,_3e,_3f){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");dojo._Url=function(){var n=null,_40=arguments,uri=[_40[0]];for(var i=1;i<_40.length;i++){if(!_40[i]){continue;}var _41=new d._Url(_40[i]+""),_42=new d._Url(uri[0]+"");if(_41.path==""&&!_41.scheme&&!_41.authority&&!_41.query){if(_41.fragment!=n){_42.fragment=_41.fragment;}_41=_42;}else{if(!_41.scheme){_41.scheme=_42.scheme;if(!_41.authority){_41.authority=_42.authority;if(_41.path.charAt(0)!="/"){var _43=_42.path.substring(0,_42.path.lastIndexOf("/")+1)+_41.path;var _44=_43.split("/");for(var j=0;j<_44.length;j++){if(_44[j]=="."){if(j==_44.length-1){_44[j]="";}else{_44.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_44[0]=="")&&_44[j]==".."&&_44[j-1]!=".."){if(j==(_44.length-1)){_44.splice(j,1);_44[j-1]="";}else{_44.splice(j-1,2);j-=2;}}}}_41.path=_44.join("/");}}}}uri=[];if(_41.scheme){uri.push(_41.scheme,":");}if(_41.authority){uri.push("//",_41.authority);}uri.push(_41.path);if(_41.query){uri.push("?",_41.query);}if(_41.fragment){uri.push("#",_41.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_45,url){var loc=d._getModuleSymbols(_45).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _46=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_46==-1||_46>loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _47=document.getElementsByTagName("script");var _48=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_47.length;i++){var src=_47[i].getAttribute("src");if(!src){continue;}var m=src.match(_48);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=(_47[i].getAttribute("djConfig")||_47[i].getAttribute("data-dojo-config"));if(cfg){var _49=eval("({ "+cfg+" })");for(var x in _49){dojo.config[x]=_49[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);if(dua.indexOf("Opera")>=0){d.isOpera=tv;}if(dua.indexOf("AdobeAIR")>=0){d.isAIR=1;}d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;d.isMac=dav.indexOf("Macintosh")>=0;var _4a=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_4a&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_4a+7))<=419.3){d.isSafari=2;}}if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){d.isMozilla=d.isMoz=tv;}if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var _4b=document.documentMode;if(_4b&&_4b!=5&&Math.floor(d.isIE)!=_4b){d.isIE=_4b;}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}d.isQuirks=document.compatMode=="BackCompat";d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _4c,_4d;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_4c=new XMLHttpRequest();}catch(e){}}if(!_4c){for(var i=0;i<3;++i){var _4e=d._XMLHTTP_PROGIDS[i];try{_4c=new ActiveXObject(_4e);}catch(e){_4d=e;}if(_4c){d._XMLHTTP_PROGIDS=[_4e];break;}}}if(!_4c){throw new Error("XMLHTTP not available: "+_4d);}return _4c;};d._isDocumentOk=function(_4f){var _50=_4f.status||0,lp=location.protocol;return (_50>=200&&_50<300)||_50==304||_50==1223||(!_50&&(lp=="file:"||lp=="chrome:"||lp=="chrome-extension:"||lp=="app:"));};var _51=window.location+"";var _52=document.getElementsByTagName("base");var _53=(_52&&_52.length>0);d._getText=function(uri,_54){var _55=d._xhrObj();if(!_53&&dojo._Url){uri=(new dojo._Url(_51,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_55.open("GET",uri,false);try{_55.send(null);if(!d._isDocumentOk(_55)){var err=Error("Unable to load "+uri+" status:"+_55.status);err.status=_55.status;err.responseText=_55.responseText;throw err;}}catch(e){if(_54){return null;}throw e;}return _55.responseText;};var _56=window;var _57=function(_58,fp){var _59=_56.attachEvent||_56.addEventListener;_58=_56.attachEvent?_58:_58.substring(2);_59(_58,function(){fp.apply(_56,arguments);},false);};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}d=null;};var _5a=0;d.addOnWindowUnload=function(obj,_5b){d._onto(d._windowUnloaders,obj,_5b);if(!_5a){_5a=1;_57("onunload",d.windowUnloaded);}};var _5c=0;d.addOnUnload=function(obj,_5d){d._onto(d._unloaders,obj,_5d);if(!_5c){_5c=1;_57("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){if(dojo._scrollIntervalId){clearInterval(dojo._scrollIntervalId);dojo._scrollIntervalId=0;}if(!dojo._initFired){dojo._initFired=true;if(!dojo.config.afterOnLoad&&window.detachEvent){window.detachEvent("onload",dojo._loadInit);}if(dojo._inFlightCount==0){dojo._modulesLoaded();}}};if(!dojo.config.afterOnLoad){if(document.addEventListener){document.addEventListener("DOMContentLoaded",dojo._loadInit,false);window.addEventListener("load",dojo._loadInit,false);}else{if(window.attachEvent){window.attachEvent("onload",dojo._loadInit);if(!dojo.config.skipIeDomLoaded&&self===self.top){dojo._scrollIntervalId=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");dojo._loadInit();}}catch(e){}},30);}}}}if(dojo.isIE){try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var _5e=["*","group","roundrect","oval","shape","rect","imagedata","path","textpath","text"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE>=8){i=1;l=_5e.length;}for(;i<l;++i){s.addRule("v\\:"+_5e[i],"behavior:url(#default#VML); display:inline-block");}})();}catch(e){}}}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _5f in mp){dojo.registerModulePath(_5f,mp[_5f]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.require("dojo._base._loader.loader_debug");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");(function(){var d=dojo,_60=Object.prototype.toString;dojo.isString=function(it){return (typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=function(it){return _60.call(it)==="[object Function]";};dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));};dojo.isArrayLike=function(it){return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_61,_62){for(var i=1,l=arguments.length;i<l;i++){d._mixin(_61.prototype,arguments[i]);}return _61;};dojo._hitchArgs=function(_63,_64){var pre=d._toArray(arguments,2);var _65=d.isString(_64);return function(){var _66=d._toArray(arguments);var f=_65?(_63||d.global)[_64]:_64;return f&&f.apply(_63||this,pre.concat(_66));};};dojo.hitch=function(_67,_68){if(arguments.length>2){return d._hitchArgs.apply(d,arguments);}if(!_68){_68=_67;_67=null;}if(d.isString(_68)){_67=_67||d.global;if(!_67[_68]){throw (["dojo.hitch: scope[\"",_68,"\"] is null (scope=\"",_67,"\")"].join(""));}return function(){return _67[_68].apply(_67,arguments||[]);};}return !_67?_68:function(){return _68.apply(_67,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_69){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_69){d._mixin(tmp,_69);}return tmp;};})();var _6a=function(obj,_6b,_6c){return (_6c||[]).concat(Array.prototype.slice.call(obj,_6b||0));};var _6d=function(obj,_6e,_6f){var arr=_6f||[];for(var x=_6e||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo._toArray=d.isIE?function(obj){return ((obj.item)?_6d:_6a).apply(this,arguments);}:_6a;dojo.partial=function(_70){var arr=[null];return d.hitch.apply(d,arr.concat(d._toArray(arguments)));};var _71=d._extraNames,_72=_71.length,_73={};dojo.clone=function(o){if(!o||typeof o!="object"||d.isFunction(o)){return o;}if(o.nodeType&&"cloneNode" in o){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}if(o instanceof RegExp){return new RegExp(o);}var r,i,l,s,_74;if(d.isArray(o)){r=[];for(i=0,l=o.length;i<l;++i){if(i in o){r.push(d.clone(o[i]));}}}else{r=o.constructor?new o.constructor():{};}for(_74 in o){s=o[_74];if(!(_74 in r)||(r[_74]!==s&&(!(_74 in _73)||_73[_74]!==s))){r[_74]=d.clone(s);}}if(_72){for(i=0;i<_72;++i){_74=_71[i];s=o[_74];if(!(_74 in r)||(r[_74]!==s&&(!(_74 in _73)||_73[_74]!==s))){r[_74]=s;}}}return r;};dojo.trim=String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};var _75=/\{([^\}]+)\}/g;dojo.replace=function(_76,map,_77){return _76.replace(_77||_75,d.isFunction(map)?map:function(_78,k){return d.getObject(k,false,map);});};})();}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _79=function(arr,obj,cb){return [(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb];};var _7a=function(_7b,arr,_7c,_7d){var _7e=_79(arr,_7d,_7c);arr=_7e[0];for(var i=0,l=arr.length;i<l;++i){var _7f=!!_7e[2].call(_7e[1],arr[i],i,arr);if(_7b^_7f){return _7f;}}return _7b;};dojo.mixin(dojo,{indexOf:function(_80,_81,_82,_83){var _84=1,end=_80.length||0,i=0;if(_83){i=end-1;_84=end=-1;}if(_82!=undefined){i=_82;}if((_83&&i>end)||i<end){for(;i!=end;i+=_84){if(_80[i]==_81){return i;}}}return -1;},lastIndexOf:function(_85,_86,_87){return dojo.indexOf(_85,_86,_87,true);},forEach:function(arr,_88,_89){if(!arr||!arr.length){return;}var _8a=_79(arr,_89,_88);arr=_8a[0];for(var i=0,l=arr.length;i<l;++i){_8a[2].call(_8a[1],arr[i],i,arr);}},every:function(arr,_8b,_8c){return _7a(true,arr,_8b,_8c);},some:function(arr,_8d,_8e){return _7a(false,arr,_8d,_8e);},map:function(arr,_8f,_90){var _91=_79(arr,_90,_8f);arr=_91[0];var _92=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){_92.push(_91[2].call(_91[1],arr[i],i,arr));}return _92;},filter:function(arr,_93,_94){var _95=_79(arr,_94,_93);arr=_95[0];var _96=[];for(var i=0,l=arr.length;i<l;++i){if(_95[2].call(_95[1],arr[i],i,arr)){_96.push(arr[i]);}}return _96;}});})();}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");(function(){var d=dojo,mix=d._mixin,op=Object.prototype,_97=op.toString,_98=new Function,_99=0,_9a="constructor";function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg);};function _9b(_9c,_9d){var _9e=[],_9f=[{cls:0,refs:[]}],_a0={},_a1=1,l=_9c.length,i=0,j,lin,_a2,top,_a3,rec,_a4,_a5;for(;i<l;++i){_a2=_9c[i];if(!_a2){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_9d);}else{if(_97.call(_a2)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",_9d);}}lin=_a2._meta?_a2._meta.bases:[_a2];top=0;for(j=lin.length-1;j>=0;--j){_a3=lin[j].prototype;if(!_a3.hasOwnProperty("declaredClass")){_a3.declaredClass="uniqName_"+(_99++);}_a4=_a3.declaredClass;if(!_a0.hasOwnProperty(_a4)){_a0[_a4]={count:0,refs:[],cls:lin[j]};++_a1;}rec=_a0[_a4];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_9f[0].refs.push(top);}while(_9f.length){top=_9f.pop();_9e.push(top.cls);--_a1;while(_a5=top.refs,_a5.length==1){top=_a5[0];if(!top||--top.count){top=0;break;}_9e.push(top.cls);--_a1;}if(top){for(i=0,l=_a5.length;i<l;++i){top=_a5[i];if(!--top.count){_9f.push(top);}}}}if(_a1){err("can't build consistent linearization",_9d);}_a2=_9c[0];_9e[0]=_a2?_a2._meta&&_a2===_9e[_9e.length-_a2._meta.bases.length]?_a2._meta.bases.length:1:0;return _9e;};function _a6(_a7,a,f){var _a8,_a9,_aa,_ab,_ac,_ad,_ae,opf,pos,_af=this._inherited=this._inherited||{};if(typeof _a7=="string"){_a8=_a7;_a7=a;a=f;}f=0;_ab=_a7.callee;_a8=_a8||_ab.nom;if(!_a8){err("can't deduce a name to call inherited()",this.declaredClass);}_ac=this.constructor._meta;_aa=_ac.bases;pos=_af.p;if(_a8!=_9a){if(_af.c!==_ab){pos=0;_ad=_aa[0];_ac=_ad._meta;if(_ac.hidden[_a8]!==_ab){_a9=_ac.chains;if(_a9&&typeof _a9[_a8]=="string"){err("calling chained method with inherited: "+_a8,this.declaredClass);}do{_ac=_ad._meta;_ae=_ad.prototype;if(_ac&&(_ae[_a8]===_ab&&_ae.hasOwnProperty(_a8)||_ac.hidden[_a8]===_ab)){break;}}while(_ad=_aa[++pos]);pos=_ad?pos:-1;}}_ad=_aa[++pos];if(_ad){_ae=_ad.prototype;if(_ad._meta&&_ae.hasOwnProperty(_a8)){f=_ae[_a8];}else{opf=op[_a8];do{_ae=_ad.prototype;f=_ae[_a8];if(f&&(_ad._meta?_ae.hasOwnProperty(_a8):f!==opf)){break;}}while(_ad=_aa[++pos]);}}f=_ad&&f||op[_a8];}else{if(_af.c!==_ab){pos=0;_ac=_aa[0]._meta;if(_ac&&_ac.ctor!==_ab){_a9=_ac.chains;if(!_a9||_a9.constructor!=="manual"){err("calling chained constructor with inherited",this.declaredClass);}while(_ad=_aa[++pos]){_ac=_ad._meta;if(_ac&&_ac.ctor===_ab){break;}}pos=_ad?pos:-1;}}while(_ad=_aa[++pos]){_ac=_ad._meta;f=_ac?_ac.ctor:_ad;if(f){break;}}f=_ad&&f;}_af.c=f;_af.p=pos;if(f){return a===true?f:f.apply(this,a||_a7);}};function _b0(_b1,_b2){if(typeof _b1=="string"){return this.inherited(_b1,_b2,true);}return this.inherited(_b1,true);};function _b3(cls){var _b4=this.constructor._meta.bases;for(var i=0,l=_b4.length;i<l;++i){if(_b4[i]===cls){return true;}}return this instanceof cls;};function _b5(_b6,_b7){var _b8,i=0,l=d._extraNames.length;for(_b8 in _b7){if(_b8!=_9a&&_b7.hasOwnProperty(_b8)){_b6[_b8]=_b7[_b8];}}for(;i<l;++i){_b8=d._extraNames[i];if(_b8!=_9a&&_b7.hasOwnProperty(_b8)){_b6[_b8]=_b7[_b8];}}};function _b9(_ba,_bb){var _bc,t,i=0,l=d._extraNames.length;for(_bc in _bb){t=_bb[_bc];if((t!==op[_bc]||!(_bc in op))&&_bc!=_9a){if(_97.call(t)=="[object Function]"){t.nom=_bc;}_ba[_bc]=t;}}for(;i<l;++i){_bc=d._extraNames[i];t=_bb[_bc];if((t!==op[_bc]||!(_bc in op))&&_bc!=_9a){if(_97.call(t)=="[object Function]"){t.nom=_bc;}_ba[_bc]=t;}}return _ba;};function _bd(_be){_b9(this.prototype,_be);return this;};function _bf(_c0,_c1){return function(){var a=arguments,_c2=a,a0=a[0],f,i,m,l=_c0.length,_c3;if(!(this instanceof a.callee)){return _c4(a);}if(_c1&&(a0&&a0.preamble||this.preamble)){_c3=new Array(_c0.length);_c3[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_c0[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_c3[i]=a;}}for(i=l-1;i>=0;--i){f=_c0[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_c3?_c3[i]:a);}}f=this.postscript;if(f){f.apply(this,_c2);}};};function _c5(_c6,_c7){return function(){var a=arguments,t=a,a0=a[0],f;if(!(this instanceof a.callee)){return _c4(a);}if(_c7){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(_c6){_c6.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _c8(_c9){return function(){var a=arguments,i=0,f,m;if(!(this instanceof a.callee)){return _c4(a);}for(;f=_c9[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function _ca(_cb,_cc,_cd){return function(){var b,m,f,i=0,_ce=1;if(_cd){i=_cc.length-1;_ce=-1;}for(;b=_cc[i];i+=_ce){m=b._meta;f=(m?m.hidden:b.prototype)[_cb];if(f){f.apply(this,arguments);}}};};function _cf(_d0){_98.prototype=_d0.prototype;var t=new _98;_98.prototype=null;return t;};function _c4(_d1){var _d2=_d1.callee,t=_cf(_d2);_d2.apply(t,_d1);return t;};d.declare=function(_d3,_d4,_d5){if(typeof _d3!="string"){_d5=_d4;_d4=_d3;_d3="";}_d5=_d5||{};var _d6,i,t,_d7,_d8,_d9,_da,_db=1,_dc=_d4;if(_97.call(_d4)=="[object Array]"){_d9=_9b(_d4,_d3);t=_d9[0];_db=_d9.length-t;_d4=_d9[_db];}else{_d9=[0];if(_d4){if(_97.call(_d4)=="[object Function]"){t=_d4._meta;_d9=_d9.concat(t?t.bases:_d4);}else{err("base class is not a callable constructor.",_d3);}}else{if(_d4!==null){err("unknown base class. Did you use dojo.require to pull it in?",_d3);}}}if(_d4){for(i=_db-1;;--i){_d6=_cf(_d4);if(!i){break;}t=_d9[i];(t._meta?_b5:mix)(_d6,t.prototype);_d7=new Function;_d7.superclass=_d4;_d7.prototype=_d6;_d4=_d6.constructor=_d7;}}else{_d6={};}_b9(_d6,_d5);t=_d5.constructor;if(t!==op.constructor){t.nom=_9a;_d6.constructor=t;}for(i=_db-1;i;--i){t=_d9[i]._meta;if(t&&t.chains){_da=mix(_da||{},t.chains);}}if(_d6["-chains-"]){_da=mix(_da||{},_d6["-chains-"]);}t=!_da||!_da.hasOwnProperty(_9a);_d9[0]=_d7=(_da&&_da.constructor==="manual")?_c8(_d9):(_d9.length==1?_c5(_d5.constructor,t):_bf(_d9,t));_d7._meta={bases:_d9,hidden:_d5,chains:_da,parents:_dc,ctor:_d5.constructor};_d7.superclass=_d4&&_d4.prototype;_d7.extend=_bd;_d7.prototype=_d6;_d6.constructor=_d7;_d6.getInherited=_b0;_d6.inherited=_a6;_d6.isInstanceOf=_b3;if(_d3){_d6.declaredClass=_d3;d.setObject(_d3,_d7);}if(_da){for(_d8 in _da){if(_d6[_d8]&&typeof _da[_d8]=="string"&&_d8!=_9a){t=_d6[_d8]=_ca(_d8,_d9,_da[_d8]==="after");t.nom=_d8;}}}return _d7;};d.safeMixin=_b9;})();}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target,r=t&&t.apply(this,arguments),i,lls=[].concat(ls);for(i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}return r;};},add:function(_dd,_de,_df){_dd=_dd||dojo.global;var f=_dd[_de];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_dd[_de]=d;}return f._listeners.push(_df);},remove:function(_e0,_e1,_e2){var f=(_e0||dojo.global)[_e1];if(f&&f._listeners&&_e2--){delete f._listeners[_e2];}}};dojo.connect=function(obj,_e3,_e4,_e5,_e6){var a=arguments,_e7=[],i=0;_e7.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_e7.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){_e7.push(a[i]);}return dojo._connect.apply(this,_e7);};dojo._connect=function(obj,_e8,_e9,_ea){var l=dojo._listener,h=l.add(obj,_e8,dojo.hitch(_e9,_ea));return [obj,_e8,h,l];};dojo.disconnect=function(_eb){if(_eb&&_eb[0]!==undefined){dojo._disconnect.apply(this,_eb);delete _eb[0];}};dojo._disconnect=function(obj,_ec,_ed,_ee){_ee.remove(obj,_ec,_ed);};dojo._topics={};dojo.subscribe=function(_ef,_f0,_f1){return [_ef,dojo._listener.add(dojo._topics,_ef,dojo.hitch(_f0,_f1))];};dojo.unsubscribe=function(_f2){if(_f2){dojo._listener.remove(dojo._topics,_f2[0],_f2[1]);}};dojo.publish=function(_f3,_f4){var f=dojo._topics[_f3];if(f){f.apply(this,_f4||[]);}};dojo.connectPublisher=function(_f5,obj,_f6){var pf=function(){dojo.publish(_f5,arguments);};return _f6?dojo.connect(obj,_f6,pf):dojo.connect(obj,pf);};}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");(function(){var _f7=function(){};var _f8=Object.freeze||function(){};dojo.Deferred=function(_f9){var _fa,_fb,_fc,_fd,_fe;var _ff=(this.promise={});function _100(_101){if(_fb){throw new Error("This deferred has already been resolved");}_fa=_101;_fb=true;_102();};function _102(){var _103;while(!_103&&_fe){var _104=_fe;_fe=_fe.next;if((_103=(_104.progress==_f7))){_fb=false;}var func=(_fc?_104.error:_104.resolved);if(func){try{var _105=func(_fa);if(_105&&typeof _105.then==="function"){_105.then(dojo.hitch(_104.deferred,"resolve"),dojo.hitch(_104.deferred,"reject"));continue;}var _106=_103&&_105===undefined;if(_103&&!_106){_fc=_105 instanceof Error;}_104.deferred[_106&&_fc?"reject":"resolve"](_106?_fa:_105);}catch(e){_104.deferred.reject(e);}}else{if(_fc){_104.deferred.reject(_fa);}else{_104.deferred.resolve(_fa);}}}};this.resolve=this.callback=function(_107){this.fired=0;this.results=[_107,null];_100(_107);};this.reject=this.errback=function(_108){_fc=true;this.fired=1;_100(_108);this.results=[null,_108];if(!_108||_108.log!==false){(dojo.config.deferredOnError||function(x){console.error(x);})(_108);}};this.progress=function(_109){var _10a=_fe;while(_10a){var _10b=_10a.progress;_10b&&_10b(_109);_10a=_10a.next;}};this.addCallbacks=function(_10c,_10d){this.then(_10c,_10d,_f7);return this;};this.then=_ff.then=function(_10e,_10f,_110){var _111=_110==_f7?this:new dojo.Deferred(_ff.cancel);var _112={resolved:_10e,error:_10f,progress:_110,deferred:_111};if(_fe){_fd=_fd.next=_112;}else{_fe=_fd=_112;}if(_fb){_102();}return _111.promise;};var _113=this;this.cancel=_ff.cancel=function(){if(!_fb){var _114=_f9&&_f9(_113);if(!_fb){if(!(_114 instanceof Error)){_114=new Error(_114);}_114.log=false;_113.reject(_114);}}};_f8(_ff);};dojo.extend(dojo.Deferred,{addCallback:function(_115){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(_116){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addBoth:function(_117){var _118=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_118,_118);},fired:-1});})();dojo.when=function(_119,_11a,_11b,_11c){if(_119&&typeof _119.then==="function"){return _119.then(_11a,_11b,_11c);}return _11a(_119);};}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(json){return eval("("+json+")");};dojo._escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_11d,_11e){if(it===undefined){return "undefined";}var _11f=typeof it;if(_11f=="number"||_11f=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _120=arguments.callee;var _121;_11e=_11e||"";var _122=_11d?_11e+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_121=tf.call(it);if(it!==_121){return _120(_121,_11d,_122);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var sep=_11d?" ":"";var _123=_11d?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_120(obj,_11d,_122);if(typeof val!="string"){val="undefined";}return _123+_122+val;});return "["+res.join(","+sep)+_123+_11e+"]";}if(_11f=="function"){return null;}var _124=[],key;for(key in it){var _125,val;if(typeof key=="number"){_125="\""+key+"\"";}else{if(typeof key=="string"){_125=dojo._escapeString(key);}else{continue;}}val=_120(it[key],_11d,_122);if(typeof val!="string"){continue;}_124.push(_123+_122+_125+":"+sep+val);}return "{"+_124.join(","+sep)+_123+_11e+"}";};}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(_126){if(_126){this.setColor(_126);}};dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:d.config.transparentColor||[255,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_127){if(d.isString(_127)){d.colorFromString(_127,this);}else{if(d.isArray(_127)){d.colorFromArray(_127,this);}else{this._set(_127.r,_127.g,_127.b,_127.a);if(!(_127 instanceof d.Color)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=d.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_128){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_128?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_129,end,_12a,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_129[x]+(end[x]-_129[x])*_12a;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_12b,obj){var m=_12b.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_12c,obj){var t=obj||new d.Color(),bits=(_12c.length==4)?4:8,mask=(1<<bits)-1;_12c=Number("0x"+_12c.substr(1));if(isNaN(_12c)){return null;}d.forEach(["b","g","r"],function(x){var c=_12c&mask;_12c>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new d.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=d.Color.named[str];return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);};})();}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_12d,_12e){dojo.global=_12d;dojo.doc=_12e;};dojo.withGlobal=function(_12f,_130,_131,_132){var _133=dojo.global;try{dojo.global=_12f;return dojo.withDoc.call(null,_12f.document,_130,_131,_132);}finally{dojo.global=_133;}};dojo.withDoc=function(_134,_135,_136,_137){var _138=dojo.doc,_139=dojo._bodyLtr,oldQ=dojo.isQuirks;try{dojo.doc=_134;delete dojo._bodyLtr;dojo.isQuirks=dojo.doc.compatMode=="BackCompat";if(_136&&typeof _135=="string"){_135=_136[_135];}return _135.apply(_136,_137||[]);}finally{dojo.doc=_138;delete dojo._bodyLtr;if(_139!==undefined){dojo._bodyLtr=_139;}dojo.isQuirks=oldQ;}};}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_13a,_13b){if(node){_13a=del._normalizeEventName(_13a);if(!dojo.isIE&&(_13a=="mouseenter"||_13a=="mouseleave")){_13a=(_13a=="mouseenter")?"mouseover":"mouseout";}node.removeEventListener(_13a,_13b,false);}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name;},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_13c){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode>=32?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});dojo.fixEvent=function(evt,_13d){return del._fixEvent(evt,_13d);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _13e=dojo._listener;dojo._connect=function(obj,_13f,_140,_141,_142){var _143=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_143?(_142?2:1):0,l=[dojo._listener,del,_13e][lid];var h=l.add(obj,_13f,dojo.hitch(_140,_141));return [obj,_13f,h,lid];};dojo._disconnect=function(obj,_144,_145,_146){([dojo._listener,del,_13e][_146]).remove(obj,_144,_145);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};var _147=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[_147];};if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_148){return e.button&_148;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_149){return e.button==_149;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}if(dojo.isIE){var _14a=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;var _14b=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_13e=iel=dojo._ie_listener={handlers:[],add:function(_14c,_14d,_14e){_14c=_14c||dojo.global;var f=_14c[_14d];if(!f||!f[_14b]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_14b]=[];f=_14c[_14d]=d;}return f[_14b].push(ieh.push(_14e)-1);},remove:function(_14f,_150,_151){var f=(_14f||dojo.global)[_150],l=f&&f[_14b];if(f&&l&&_151--){delete ieh[l[_151]];delete l[_151];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_152,fp){if(!node){return;}_152=del._normalizeEventName(_152);if(_152=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[_14b]||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(node,_152,del._fixCallback(fp));},remove:function(node,_153,_154){_153=del._normalizeEventName(_153);iel.remove(node,_153,_154);if(_153=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_155){return _155.slice(0,2)!="on"?"on"+_155:_155;},_nop:function(){},_fixEvent:function(evt,_156){if(!evt){var w=_156&&(_156.ownerDocument||_156.document||_156).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_156||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _157=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _158=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_157.scrollLeft||0)-_158.x;evt.pageY=evt.clientY+(_157.scrollTop||0)-_158.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(dojo.isIE<9||dojo.isQuirks){evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;}return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;del._setKeyChar(evt);break;}return evt;},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[_14b]){return;}var k=evt.keyCode;var _159=(k!=13||(dojo.isIE>=9&&!dojo.isQuirks))&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_159||evt.ctrlKey){var c=_159?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){evt.cancelBubble=faux.cancelBubble;}evt.returnValue=faux.returnValue;_14a(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_14a(this,0);}this.returnValue=false;}});dojo.stopEvent=(dojo.isIE<9||dojo.isQuirks)?function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);}:dojo.stopEvent;}del._synthesizeEvent=function(evt,_15a){var faux=dojo.mixin({},evt,_15a);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_15b){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=c<41&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32;}return del._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isWebKit){del._add=del.add;del._remove=del.remove;dojo.mixin(del,{add:function(node,_15c,fp){if(!node){return;}var _15d=del._add(node,_15c,fp);if(del._normalizeEventName(_15c)=="keypress"){_15d._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _15e=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_15e||evt.ctrlKey){var c=_15e?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if(!evt.shiftKey&&c>=65&&c<=90){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});fp.call(evt.currentTarget,faux);}});}return _15d;},remove:function(node,_15f,_160){if(node){if(_160._stealthKeyDownHandle){del._remove(node,"keydown",_160._stealthKeyDownHandle);}del._remove(node,_15f,_160);}},_fixEvent:function(evt,_161){switch(evt.type){case "keypress":if(evt.faux){return evt;}var c=evt.charCode;c=c>=32?c:0;return del._synthesizeEvent(evt,{charCode:c,faux:true});}return evt;}});}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_162){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];var r=t&&t.apply(_162,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_162,args);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE){dojo.byId=function(id,doc){if(typeof id!="string"){return id;}var _163=doc||dojo.doc,te=_163.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_163.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dojo.byId=function(id,doc){return ((typeof id=="string")?(doc||dojo.doc).getElementById(id):id)||null;};}(function(){var d=dojo;var byId=d.byId;var _164=null,_165;d.addOnWindowUnload(function(){_164=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_164||_165!=doc){_164=doc.createElement("div");_165=doc;}_164.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_164.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_166){try{node=byId(node);_166=byId(_166);while(node){if(node==_166){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_167){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_167?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_167?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_167?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _168=function(node,ref){var _169=ref.parentNode;if(_169){_169.insertBefore(node,ref);}};var _16a=function(node,ref){var _16b=ref.parentNode;if(_16b){if(_16b.lastChild==ref){_16b.appendChild(node);}else{_16b.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_16c,_16d){_16c=byId(_16c);if(typeof node=="string"){node=/^\s*</.test(node)?d._toDom(node,_16c.ownerDocument):byId(node);}if(typeof _16d=="number"){var cn=_16c.childNodes;if(!cn.length||cn.length<=_16d){_16c.appendChild(node);}else{_168(node,cn[_16d<0?0:_16d]);}}else{switch(_16d){case "before":_168(node,_16c);break;case "after":_16a(node,_16c);break;case "replace":_16c.parentNode.replaceChild(node,_16c);break;case "only":d.empty(_16c);_16c.appendChild(node);break;case "first":if(_16c.firstChild){_168(node,_16c.firstChild);break;}default:_16c.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}var gcs;if(d.isWebKit){gcs=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(d.isIE){gcs=function(node){return node.nodeType==1?node.currentStyle:{};};}else{gcs=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(_16e,_16f){return parseFloat(_16f)||0;};}else{d._toPixelValue=function(_170,_171){if(!_171){return 0;}if(_171=="medium"){return 4;}if(_171.slice&&_171.slice(-2)=="px"){return parseFloat(_171);}with(_170){var _172=style.left;var _173=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_171;_171=style.pixelLeft;}catch(e){_171=0;}style.left=_172;runtimeStyle.left=_173;}return _171;};}var px=d._toPixelValue;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};dojo._getOpacity=d.isIE<9?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE<9?function(node,_174){var ov=_174*100,_175=_174==1;node.style.zoom=_175?"":1;if(!af(node)){if(_175){return _174;}node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}af(node,1).Enabled=!_175;if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,_174);});}return _174;}:function(node,_176){return node.style.opacity=_176;};var _177={left:true,top:true};var _178=/margin|padding|width|height|max|min|offset/;var _179=function(node,type,_17a){type=type.toLowerCase();if(d.isIE){if(_17a=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_17a){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _177)){_177[type]=_178.test(type);}return _177[type]?px(node,_17a):_17a;};var _17b=d.isIE?"styleFloat":"cssFloat",_17c={"cssFloat":_17b,"styleFloat":_17b,"float":_17b};dojo.style=function(node,_17d,_17e){var n=byId(node),args=arguments.length,op=(_17d=="opacity");_17d=_17c[_17d]||_17d;if(args==3){return op?d._setOpacity(n,_17e):n.style[_17d]=_17e;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _17d!="string"){for(var x in _17d){d.style(node,x,_17d[x]);}return s;}return (args==1)?s:_179(n,_17d,s[_17d]||n.style[_17d]);};dojo._getPadExtents=function(n,_17f){var s=_17f||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_180){var ne="none",s=_180||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_181){var s=_181||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_182){var s=_182||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isWebKit&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_183){var s=_183||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getMarginSize=function(node,_184){node=byId(node);var me=d._getMarginExtents(node,_184||gcs(node));var size=node.getBoundingClientRect();return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};};dojo._getContentBox=function(node,_185){var s=_185||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight;}else{h=node.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(node,_186){var s=_186||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};dojo._isButtonTag=function(node){return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);};dojo._setContentSize=function(node,_187,_188,_189){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_189);if(_187>=0){_187+=pb.w;}if(_188>=0){_188+=pb.h;}}d._setBox(node,NaN,NaN,_187,_188);};dojo._setMarginBox=function(node,_18a,_18b,_18c,_18d,_18e){var s=_18e||gcs(node),bb=d._usesBorderBox(node),pb=bb?_18f:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_18c>=0&&!ns.width){ns.width="4px";}if(_18d>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_18c>=0){_18c=Math.max(_18c-pb.w-mb.w,0);}if(_18d>=0){_18d=Math.max(_18d-pb.h-mb.h,0);}d._setBox(node,_18a,_18b,_18c,_18d);};var _18f={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _190=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_191=0,_192=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_191+=val-0;if(node==_192){break;}}node=node.parentNode;}return _191;};dojo._docScroll=function(){var n=d.global;return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.isQuirks?d.doc.body:d.doc.documentElement,{x:d._fixIeBiDiScrollLeft(n.scrollLeft||0),y:n.scrollTop||0});};dojo._isBodyLtr=function(){return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE<8){var r=de.getBoundingClientRect();var l=r.left,t=r.top;if(d.isIE<7){l+=de.clientLeft;t+=de.clientTop;}return {x:l<0?0:l,y:t<0?0:t};}else{return {x:0,y:0};}};dojo._fixIeBiDiScrollLeft=function(_193){var ie=d.isIE;if(ie&&!d._isBodyLtr()){var qk=d.isQuirks,de=qk?d.doc.body:d.doc.documentElement;if(ie==6&&!qk&&d.global.frameElement&&de.scrollHeight>de.clientHeight){_193+=de.clientLeft;}return (ie<8||qk)?(_193+de.clientWidth-de.scrollWidth):-_193;}return _193;};dojo._abs=dojo.position=function(node,_194){node=byId(node);var db=d.body(),dh=db.parentNode,ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(d.isIE){var _195=d._getIeDocumentElementOffset();ret.x-=_195.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_195.y+(d.isQuirks?db.clientTop+db.offsetTop:0);}else{if(d.isFF==3){var cs=gcs(dh);ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);}}if(_194){var _196=d._docScroll();ret.x+=_196.x;ret.y+=_196.y;}return ret;};dojo.coords=function(node,_197){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_197);mb.x=abs.x;mb.y=abs.y;return mb;};var _198={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_199={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_19a={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _19b=function(name){return _199[name.toLowerCase()]||name;};var _19c=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _19a[_198[lc]||name]||_19c(byId(node),_199[lc]||name);};var _19d={},_19e=0,_19f=dojo._scopeName+"attrid",_1a0={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_1a1){node=byId(node);var args=arguments.length,prop;if(args==2&&typeof name!="string"){for(var x in name){d.attr(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_1a2=_198[lc]||name,_1a3=_19a[_1a2],_1a4=_199[lc]||name;if(args==3){do{if(_1a2=="style"&&typeof _1a1!="string"){d.style(node,_1a1);break;}if(_1a2=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _1a0){d.empty(node);node.appendChild(d._toDom(_1a1,node.ownerDocument));}else{node[_1a2]=_1a1;}break;}if(d.isFunction(_1a1)){var _1a5=d.attr(node,_19f);if(!_1a5){_1a5=_19e++;d.attr(node,_19f,_1a5);}if(!_19d[_1a5]){_19d[_1a5]={};}var h=_19d[_1a5][_1a2];if(h){d.disconnect(h);}else{try{delete node[_1a2];}catch(e){}}_19d[_1a5][_1a2]=d.connect(node,_1a2,_1a1);break;}if(_1a3||typeof _1a1=="boolean"){node[_1a2]=_1a1;break;}node.setAttribute(_1a4,_1a1);}while(false);return node;}_1a1=node[_1a2];if(_1a3&&typeof _1a1!="undefined"){return _1a1;}if(_1a2!="href"&&(typeof _1a1=="boolean"||d.isFunction(_1a1))){return _1a1;}return _19c(node,_1a4)?node.getAttribute(_1a4):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_19b(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_1a6=_198[lc]||name;if((_1a6 in node)&&_1a6!="href"){return node[_1a6];}var _1a7=_199[lc]||name;return _19c(node,_1a7)?node.getAttribute(_1a7):null;};dojo.create=function(tag,_1a8,_1a9,pos){var doc=d.doc;if(_1a9){_1a9=byId(_1a9);doc=_1a9.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_1a8){d.attr(tag,_1a8);}if(_1a9){d.place(tag,_1a9,pos);}return tag;};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){byId(node).innerHTML="";};var _1aa={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_1ab=/<\s*([\w\:]+)/,_1ac={},_1ad=0,_1ae="__"+d._scopeName+"ToDomId";for(var _1af in _1aa){if(_1aa.hasOwnProperty(_1af)){var tw=_1aa[_1af];tw.pre=_1af=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}d._toDom=function(frag,doc){doc=doc||d.doc;var _1b0=doc[_1ae];if(!_1b0){doc[_1ae]=_1b0=++_1ad+"";_1ac[_1b0]=doc.createElement("div");}frag+="";var _1b1=frag.match(_1ab),tag=_1b1?_1b1[1].toLowerCase():"",_1b2=_1ac[_1b0],wrap,i,fc,df;if(_1b1&&_1aa[tag]){wrap=_1aa[tag];_1b2.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_1b2=_1b2.firstChild;}}else{_1b2.innerHTML=frag;}if(_1b2.childNodes.length==1){return _1b2.removeChild(_1b2.firstChild);}df=doc.createDocumentFragment();while(fc=_1b2.firstChild){df.appendChild(fc);}return df;};var _1b3="className";dojo.hasClass=function(node,_1b4){return ((" "+byId(node)[_1b3]+" ").indexOf(" "+_1b4+" ")>=0);};var _1b5=/\s+/,a1=[""],_1b6={},_1b7=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1;}else{return s.split(_1b5);}}return s||"";};dojo.addClass=function(node,_1b8){node=byId(node);_1b8=_1b7(_1b8);var cls=node[_1b3],_1b9;cls=cls?" "+cls+" ":" ";_1b9=cls.length;for(var i=0,len=_1b8.length,c;i<len;++i){c=_1b8[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_1b9<cls.length){node[_1b3]=cls.substr(1,cls.length-2);}};dojo.removeClass=function(node,_1ba){node=byId(node);var cls;if(_1ba!==undefined){_1ba=_1b7(_1ba);cls=" "+node[_1b3]+" ";for(var i=0,len=_1ba.length;i<len;++i){cls=cls.replace(" "+_1ba[i]+" "," ");}cls=d.trim(cls);}else{cls="";}if(node[_1b3]!=cls){node[_1b3]=cls;}};dojo.replaceClass=function(node,_1bb,_1bc){node=byId(node);_1b6.className=node.className;dojo.removeClass(_1b6,_1bc);dojo.addClass(_1b6,_1bb);if(node.className!==_1b6.className){node.className=_1b6.className;}};dojo.toggleClass=function(node,_1bd,_1be){if(_1be===undefined){_1be=!d.hasClass(node,_1bd);}d[_1be?"addClass":"removeClass"](node,_1bd);};})();}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var ap=Array.prototype,aps=ap.slice,apc=ap.concat;var tnl=function(a,_1bf,_1c0){if(!a.sort){a=aps.call(a,0);}var ctor=_1c0||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return _1bf?a._stash(_1bf):a;};var _1c1=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||d.global;return function(node){a[0]=node;return f.apply(o,a);};};var _1c2=function(f,o){return function(){this.forEach(_1c1(f,arguments,o));return this;};};var _1c3=function(f,o){return function(){return this.map(_1c1(f,arguments,o));};};var _1c4=function(f,o){return function(){return this.filter(_1c1(f,arguments,o));};};var _1c5=function(f,g,o){return function(){var a=arguments,body=_1c1(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _1c6=function(a){return a.length==1&&(typeof a[0]=="string");};var _1c7=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};d._NodeListCtor=d.NodeList;var nl=d.NodeList,nlp=nl.prototype;nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_1c3;nl._adaptAsForEach=_1c2;nl._adaptAsFilter=_1c4;nl._adaptWithCondition=_1c5;d.forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});d.forEach(["indexOf","lastIndexOf","every","some"],function(name){var f=d[name];nlp[name]=function(){return f.apply(d,[this].concat(aps.call(arguments,0)));};});d.forEach(["attr","style"],function(name){nlp[name]=_1c5(d[name],_1c6);});d.forEach(["connect","addClass","removeClass","replaceClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=_1c2(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_1c8,_1c9){var _1ca=_1c8.parse===true?true:false;if(typeof _1c8.template=="string"){var _1cb=_1c8.templateFunc||(dojo.string&&dojo.string.substitute);_1c8=_1cb?_1cb(_1c8.template,_1c8):_1c8;}var type=(typeof _1c8);if(type=="string"||type=="number"){_1c8=dojo._toDom(_1c8,(_1c9&&_1c9.ownerDocument));if(_1c8.nodeType==11){_1c8=dojo._toArray(_1c8.childNodes);}else{_1c8=[_1c8];}}else{if(!dojo.isArrayLike(_1c8)){_1c8=[_1c8];}else{if(!dojo.isArray(_1c8)){_1c8=dojo._toArray(_1c8);}}}if(_1ca){_1c8._runParse=true;}return _1c8;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_1cc,_1cd,_1ce){if(_1cc.nodeType!=1&&_1cd=="only"){return;}var _1cf=_1cc,_1d0;var _1d1=ary.length;for(var i=_1d1-1;i>=0;i--){var node=(_1ce?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_1d0){_1d0=_1cf.ownerDocument.createElement("div");}_1d0.appendChild(node);dojo.parser.parse(_1d0);node=_1d0.firstChild;while(_1d0.firstChild){_1d0.removeChild(_1d0.firstChild);}}if(i==_1d1-1){dojo.place(node,_1cf,_1cd);}else{_1cf.parentNode.insertBefore(node,_1cf);}_1cf=node;}},_stash:function(_1d2){this._parent=_1d2;return this;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor();}},concat:function(item){var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a;});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(d.map(this,func,obj),this);},forEach:function(_1d3,_1d4){d.forEach(this,_1d3,_1d4);return this;},coords:_1c3(d.coords),position:_1c3(d.position),place:function(_1d5,_1d6){var item=d.query(_1d5)[0];return this.forEach(function(node){d.place(node,item,_1d6);});},orphan:function(_1d7){return (_1d7?d._filterQueryResult(this,_1d7):this).forEach(_1c7);},adopt:function(_1d8,_1d9){return d.query(_1d8).place(this[0],_1d9)._stash(this);},query:function(_1da){if(!_1da){return this;}var ret=this.map(function(node){return d.query(_1da,node).filter(function(_1db){return _1db!==undefined;});});return this._wrap(apc.apply([],ret),this);},filter:function(_1dc){var a=arguments,_1dd=this,_1de=0;if(typeof _1dc=="string"){_1dd=d._filterQueryResult(this,a[0]);if(a.length==1){return _1dd._stash(this);}_1de=1;}return this._wrap(d.filter(_1dd,a[_1de],a[_1de+1]),this);},addContent:function(_1df,_1e0){_1df=this._normalize(_1df,this[0]);for(var i=0,node;(node=this[i]);i++){this._place(_1df,node,_1e0,i>0);}return this;},instantiate:function(_1e1,_1e2){var c=d.isFunction(_1e1)?_1e1:d.getObject(_1e1);_1e2=_1e2||{};return this.forEach(function(node){new c(_1e2,node);});},at:function(){var t=new this._NodeListCtor();d.forEach(arguments,function(i){if(i<0){i=this.length+i;}if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];d.forEach(nl.events,function(evt){var _1e3="on"+evt;nlp[_1e3]=function(a,b){return this.connect(_1e3,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;(function(){var _1e4=function(d){var trim=d.trim;var each=d.forEach;var qlc=(d._NodeListCtor=d.NodeList);var _1e5=function(){return d.doc;};var _1e6=((d.isWebKit||d.isMozilla)&&((_1e5().compatMode)=="BackCompat"));var _1e7=!!_1e5().firstChild["children"]?"children":"childNodes";var _1e8=">~+";var _1e9=false;var _1ea=function(){return true;};var _1eb=function(_1ec){if(_1e8.indexOf(_1ec.slice(-1))>=0){_1ec+=" * ";}else{_1ec+=" ";}var ts=function(s,e){return trim(_1ec.slice(s,e));};var _1ed=[];var _1ee=-1,_1ef=-1,_1f0=-1,_1f1=-1,_1f2=-1,inId=-1,_1f3=-1,lc="",cc="",_1f4;var x=0,ql=_1ec.length,_1f5=null,_1f6=null;var _1f7=function(){if(_1f3>=0){var tv=(_1f3==x)?null:ts(_1f3,x);_1f5[(_1e8.indexOf(tv)<0)?"tag":"oper"]=tv;_1f3=-1;}};var _1f8=function(){if(inId>=0){_1f5.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1f9=function(){if(_1f2>=0){_1f5.classes.push(ts(_1f2+1,x).replace(/\\/g,""));_1f2=-1;}};var _1fa=function(){_1f8();_1f7();_1f9();};var _1fb=function(){_1fa();if(_1f1>=0){_1f5.pseudos.push({name:ts(_1f1+1,x)});}_1f5.loops=(_1f5.pseudos.length||_1f5.attrs.length||_1f5.classes.length);_1f5.oquery=_1f5.query=ts(_1f4,x);_1f5.otag=_1f5.tag=(_1f5["oper"])?null:(_1f5.tag||"*");if(_1f5.tag){_1f5.tag=_1f5.tag.toUpperCase();}if(_1ed.length&&(_1ed[_1ed.length-1].oper)){_1f5.infixOper=_1ed.pop();_1f5.query=_1f5.infixOper.query+" "+_1f5.query;}_1ed.push(_1f5);_1f5=null;};for(;lc=cc,cc=_1ec.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_1f5){_1f4=x;_1f5={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return (_1e9)?this.otag:this.tag;}};_1f3=x;}if(_1ee>=0){if(cc=="]"){if(!_1f6.attr){_1f6.attr=ts(_1ee+1,x);}else{_1f6.matchFor=ts((_1f0||_1ee+1),x);}var cmf=_1f6.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_1f6.matchFor=cmf.slice(1,-1);}}_1f5.attrs.push(_1f6);_1f6=null;_1ee=_1f0=-1;}else{if(cc=="="){var _1fc=("|~^$*".indexOf(lc)>=0)?lc:"";_1f6.type=_1fc+cc;_1f6.attr=ts(_1ee+1,x-_1fc.length);_1f0=x+1;}}}else{if(_1ef>=0){if(cc==")"){if(_1f1>=0){_1f6.value=ts(_1ef+1,x);}_1f1=_1ef=-1;}}else{if(cc=="#"){_1fa();inId=x+1;}else{if(cc=="."){_1fa();_1f2=x;}else{if(cc==":"){_1fa();_1f1=x;}else{if(cc=="["){_1fa();_1ee=x;_1f6={};}else{if(cc=="("){if(_1f1>=0){_1f6={name:ts(_1f1+1,x),value:null};_1f5.pseudos.push(_1f6);}_1ef=x;}else{if((cc==" ")&&(lc!=cc)){_1fb();}}}}}}}}}return _1ed;};var _1fd=function(_1fe,_1ff){if(!_1fe){return _1ff;}if(!_1ff){return _1fe;}return function(){return _1fe.apply(window,arguments)&&_1ff.apply(window,arguments);};};var _200=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _201=function(n){return (1==n.nodeType);};var _202="";var _203=function(elem,attr){if(!elem){return _202;}if(attr=="class"){return elem.className||_202;}if(attr=="for"){return elem.htmlFor||_202;}if(attr=="style"){return elem.style.cssText||_202;}return (_1e9?elem.getAttribute(attr):elem.getAttribute(attr,2))||_202;};var _204={"*=":function(attr,_205){return function(elem){return (_203(elem,attr).indexOf(_205)>=0);};},"^=":function(attr,_206){return function(elem){return (_203(elem,attr).indexOf(_206)==0);};},"$=":function(attr,_207){var tval=" "+_207;return function(elem){var ea=" "+_203(elem,attr);return (ea.lastIndexOf(_207)==(ea.length-_207.length));};},"~=":function(attr,_208){var tval=" "+_208+" ";return function(elem){var ea=" "+_203(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_209){var _20a=" "+_209+"-";return function(elem){var ea=" "+_203(elem,attr);return ((ea==_209)||(ea.indexOf(_20a)==0));};},"=":function(attr,_20b){return function(elem){return (_203(elem,attr)==_20b);};}};var _20c=(typeof _1e5().firstChild.nextElementSibling=="undefined");var _20d=!_20c?"nextElementSibling":"nextSibling";var _20e=!_20c?"previousElementSibling":"previousSibling";var _20f=(_20c?_201:_1ea);var _210=function(node){while(node=node[_20e]){if(_20f(node)){return false;}}return true;};var _211=function(node){while(node=node[_20d]){if(_20f(node)){return false;}}return true;};var _212=function(node){var root=node.parentNode;var i=0,tret=root[_1e7],ci=(node["_i"]||-1),cl=(root["_l"]||-1);if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}root["_l"]=l;ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_20d]){if(_20f(te)){te["_i"]=++i;if(node===te){ci=i;}}}return ci;};var _213=function(elem){return !((_212(elem))%2);};var _214=function(elem){return ((_212(elem))%2);};var _215={"checked":function(name,_216){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"first-child":function(){return _210;},"last-child":function(){return _211;},"only-child":function(name,_217){return function(node){if(!_210(node)){return false;}if(!_211(node)){return false;}return true;};},"empty":function(name,_218){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_219){var cz=_219.charAt(0);if(cz=="\""||cz=="'"){_219=_219.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_219)>=0);};},"not":function(name,_21a){var p=_1eb(_21a)[0];var _21b={el:1};if(p.tag!="*"){_21b.tag=1;}if(!p.classes.length){_21b.classes=1;}var ntf=_21c(p,_21b);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_21d){var pi=parseInt;if(_21d=="odd"){return _214;}else{if(_21d=="even"){return _213;}}if(_21d.indexOf("n")!=-1){var _21e=_21d.split("n",2);var pred=_21e[0]?((_21e[0]=="-")?-1:pi(_21e[0])):1;var idx=_21e[1]?pi(_21e[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_212(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_21d=idx;}}var _21f=pi(_21d);return function(elem){return (_212(elem)==_21f);};}};var _220=(d.isIE<9||(dojo.isIE&&dojo.isQuirks))?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_1e9?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _21c=function(_221,_222){if(!_221){return _1ea;}_222=_222||{};var ff=null;if(!("el" in _222)){ff=_1fd(ff,_201);}if(!("tag" in _222)){if(_221.tag!="*"){ff=_1fd(ff,function(elem){return (elem&&(elem.tagName==_221.getTag()));});}}if(!("classes" in _222)){each(_221.classes,function(_223,idx,arr){var re=new RegExp("(?:^|\\s)"+_223+"(?:\\s|$)");ff=_1fd(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _222)){each(_221.pseudos,function(_224){var pn=_224.name;if(_215[pn]){ff=_1fd(ff,_215[pn](pn,_224.value));}});}if(!("attrs" in _222)){each(_221.attrs,function(attr){var _225;var a=attr.attr;if(attr.type&&_204[attr.type]){_225=_204[attr.type](a,attr.matchFor);}else{if(a.length){_225=_220(a);}}if(_225){ff=_1fd(ff,_225);}});}if(!("id" in _222)){if(_221.id){ff=_1fd(ff,function(elem){return (!!elem&&(elem.id==_221.id));});}}if(!ff){if(!("default" in _222)){ff=_1ea;}}return ff;};var _226=function(_227){return function(node,ret,bag){while(node=node[_20d]){if(_20c&&(!_201(node))){continue;}if((!bag||_228(node,bag))&&_227(node)){ret.push(node);}break;}return ret;};};var _229=function(_22a){return function(root,ret,bag){var te=root[_20d];while(te){if(_20f(te)){if(bag&&!_228(te,bag)){break;}if(_22a(te)){ret.push(te);}}te=te[_20d];}return ret;};};var _22b=function(_22c){_22c=_22c||_1ea;return function(root,ret,bag){var te,x=0,tret=root[_1e7];while(te=tret[x++]){if(_20f(te)&&(!bag||_228(te,bag))&&(_22c(te,x))){ret.push(te);}}return ret;};};var _22d=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _22e={};var _22f=function(_230){var _231=_22e[_230.query];if(_231){return _231;}var io=_230.infixOper;var oper=(io?io.oper:"");var _232=_21c(_230,{el:1});var qt=_230.tag;var _233=("*"==qt);var ecs=_1e5()["getElementsByClassName"];if(!oper){if(_230.id){_232=(!_230.loops&&_233)?_1ea:_21c(_230,{el:1,id:1});_231=function(root,arr){var te=d.byId(_230.id,(root.ownerDocument||root));if(!te||!_232(te)){return;}if(9==root.nodeType){return _200(te,arr);}else{if(_22d(te,root)){return _200(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_230.classes.length&&!_1e6){_232=_21c(_230,{el:1,classes:1,id:1});var _234=_230.classes.join(" ");_231=function(root,arr,bag){var ret=_200(0,arr),te,x=0;var tret=root.getElementsByClassName(_234);while((te=tret[x++])){if(_232(te,root)&&_228(te,bag)){ret.push(te);}}return ret;};}else{if(!_233&&!_230.loops){_231=function(root,arr,bag){var ret=_200(0,arr),te,x=0;var tret=root.getElementsByTagName(_230.getTag());while((te=tret[x++])){if(_228(te,bag)){ret.push(te);}}return ret;};}else{_232=_21c(_230,{el:1,tag:1,id:1});_231=function(root,arr,bag){var ret=_200(0,arr),te,x=0;var tret=root.getElementsByTagName(_230.getTag());while((te=tret[x++])){if(_232(te,root)&&_228(te,bag)){ret.push(te);}}return ret;};}}}}else{var _235={el:1};if(_233){_235.tag=1;}_232=_21c(_230,_235);if("+"==oper){_231=_226(_232);}else{if("~"==oper){_231=_229(_232);}else{if(">"==oper){_231=_22b(_232);}}}}return _22e[_230.query]=_231;};var _236=function(root,_237){var _238=_200(root),qp,x,te,qpl=_237.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_237[i];x=_238.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_22f(qp);for(var j=0;(te=_238[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_238=ret;}return ret;};var _239={},_23a={};var _23b=function(_23c){var _23d=_1eb(trim(_23c));if(_23d.length==1){var tef=_22f(_23d[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true;}return r;};}return function(root){return _236(root,_23d);};};var nua=navigator.userAgent;var wk="WebKit/";var _23e=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var _23f=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var _240=(!!_1e5()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_23e));var _241=/n\+\d|([^ ])?([>~+])([^ =])?/g;var _242=function(_243,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_243;};var _244=function(_245,_246){_245=_245.replace(_241,_242);if(_240){var _247=_23a[_245];if(_247&&!_246){return _247;}}var _248=_239[_245];if(_248){return _248;}var qcz=_245.charAt(0);var _249=(-1==_245.indexOf(" "));if((_245.indexOf("#")>=0)&&(_249)){_246=true;}var _24a=(_240&&(!_246)&&(_1e8.indexOf(qcz)==-1)&&(!d.isIE||(_245.indexOf(":")==-1))&&(!(_1e6&&(_245.indexOf(".")>=0)))&&(_245.indexOf(":contains")==-1)&&(_245.indexOf(":checked")==-1)&&(_245.indexOf("|=")==-1));if(_24a){var tq=(_1e8.indexOf(_245.charAt(_245.length-1))>=0)?(_245+" *"):_245;return _23a[_245]=function(root){try{if(!((9==root.nodeType)||_249)){throw "";}var r=root[qsa](tq);r[_23f]=true;return r;}catch(e){return _244(_245,true)(root);}};}else{var _24b=_245.split(/\s*,\s*/);return _239[_245]=((_24b.length<2)?_23b(_245):function(root){var _24c=0,ret=[],tp;while((tp=_24b[_24c++])){ret=ret.concat(_23b(tp)(root));}return ret;});}};var _24d=0;var _24e=d.isIE?function(node){if(_1e9){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_24d)||_24d);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_24d));};var _228=function(node,bag){if(!bag){return 1;}var id=_24e(node);if(!bag[id]){return bag[id]=1;}return 0;};var _24f="_zipIdx";var _250=function(arr){if(arr&&arr.nozip){return (qlc._wrap)?qlc._wrap(arr):arr;}var ret=new qlc();if(!arr||!arr.length){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_24d++;if(d.isIE&&_1e9){var _251=_24d+"";arr[0].setAttribute(_24f,_251);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_24f)!=_251){ret.push(te);}te.setAttribute(_24f,_251);}}else{if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_201(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_24f]=_24d;}for(var x=1,te;te=arr[x];x++){if(arr[x][_24f]!=_24d){ret.push(te);}te[_24f]=_24d;}}}return ret;};d.query=function(_252,root){qlc=d._NodeListCtor;if(!_252){return new qlc();}if(_252.constructor==qlc){return _252;}if(typeof _252!="string"){return new qlc(_252);}if(typeof root=="string"){root=d.byId(root);if(!root){return new qlc();}}root=root||_1e5();var od=root.ownerDocument||root.documentElement;_1e9=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));var r=_244(_252)(root);if(r&&r.nozip&&!qlc._wrap){return r;}return _250(r);};d.query.pseudos=_215;d._filterQueryResult=function(_253,_254,root){var _255=new d._NodeListCtor(),_256=_1eb(_254),_257=(_256.length==1&&!/[^\w#\.]/.test(_254))?_21c(_256[0]):function(node){return dojo.query(_254,root).indexOf(node)!=-1;};for(var x=0,te;te=_253[x];x++){if(_257(te)){_255.push(te);}}return _255;};};var _258=function(){acme={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;},forEach:function(arr,_259,_25a){if(!arr||!arr.length){return;}for(var i=0,l=arr.length;i<l;++i){_259.call(_25a||window,arr[i],i,arr);}},byId:function(id,doc){if(typeof id=="string"){return (doc||document).getElementById(id);}else{return id;}},doc:document,NodeList:Array};var n=navigator;var dua=n.userAgent;var dav=n.appVersion;var tv=parseFloat(dav);acme.isOpera=(dua.indexOf("Opera")>=0)?tv:undefined;acme.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:undefined;acme.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;acme.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;var _25b=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_25b&&!acme.isChrome){acme.isSafari=parseFloat(dav.split("Version/")[1]);if(!acme.isSafari||parseFloat(dav.substr(_25b+7))<=419.3){acme.isSafari=2;}}if(document.all&&!acme.isOpera){acme.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;}Array._wrap=function(arr){return arr;};return acme;};if(this["dojo"]){dojo.provide("dojo._base.query");_1e4(this["queryPortability"]||this["acme"]||dojo);}else{_1e4(this["queryPortability"]||this["acme"]||_258());}})();}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _25c=dojo,cfg=_25c.config;function _25d(obj,name,_25e){if(_25e===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_25e];}else{if(_25c.isArray(val)){val.push(_25e);}else{obj[name]=_25e;}}};dojo.fieldToObject=function(_25f){var ret=null;var item=_25c.byId(_25f);if(item){var _260=item.name;var type=(item.type||"").toLowerCase();if(_260&&type&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){ret=item.value;}}else{if(item.multiple){ret=[];_25c.query("option",item).forEach(function(opt){if(opt.selected){ret.push(opt.value);}});}else{ret=item.value;}}}}return ret;};dojo.formToObject=function(_261){var ret={};var _262="file|submit|image|reset|button|";_25c.forEach(dojo.byId(_261).elements,function(item){var _263=item.name;var type=(item.type||"").toLowerCase();if(_263&&type&&_262.indexOf(type)==-1&&!item.disabled){_25d(ret,_263,_25c.fieldToObject(item));if(type=="image"){ret[_263+".x"]=ret[_263+".y"]=ret[_263].x=ret[_263].y=0;}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _264=[];var _265={};for(var name in map){var _266=map[name];if(_266!=_265[name]){var _267=enc(name)+"=";if(_25c.isArray(_266)){for(var i=0;i<_266.length;i++){_264.push(_267+enc(_266[i]));}}else{_264.push(_267+enc(_266));}}}return _264.join("&");};dojo.formToQuery=function(_268){return _25c.objectToQuery(_25c.formToObject(_268));};dojo.formToJson=function(_269,_26a){return _25c.toJson(_25c.formToObject(_269),_26a);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_25c.forEach(qp,function(item){if(item.length){var _26b=item.split("=");var name=dec(_26b.shift());var val=dec(_26b.join("="));if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(_25c.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;var _26c=_25c._contentHandlers=dojo.contentHandlers={text:function(xhr){return xhr.responseText;},json:function(xhr){return _25c.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!dojo.config.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _26d=xhr.responseText;var _26e=_26d.indexOf("/*");var _26f=_26d.lastIndexOf("*/");if(_26e==-1||_26f==-1){throw new Error("JSON was not comment filtered");}return _25c.fromJson(_26d.substring(_26e+2,_26f));},javascript:function(xhr){return _25c.eval(xhr.responseText);},xml:function(xhr){var _270=xhr.responseXML;if(_25c.isIE&&(!_270||!_270.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_25c.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_270=dom;}catch(e){return false;}return true;});}return _270;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _26c["json-comment-filtered"](xhr);}else{return _26c["json"](xhr);}}};dojo._ioSetArgs=function(args,_271,_272,_273){var _274={args:args,url:args.url};var _275=null;if(args.form){var form=_25c.byId(args.form);var _276=form.getAttributeNode("action");_274.url=_274.url||(_276?_276.value:null);_275=_25c.formToObject(form);}var _277=[{}];if(_275){_277.push(_275);}if(args.content){_277.push(args.content);}if(args.preventCache){_277.push({"dojo.preventCache":new Date().valueOf()});}_274.query=_25c.objectToQuery(_25c.mixin.apply(null,_277));_274.handleAs=args.handleAs||"text";var d=new _25c.Deferred(_271);d.addCallbacks(_272,function(_278){return _273(_278,d);});var ld=args.load;if(ld&&_25c.isFunction(ld)){d.addCallback(function(_279){return ld.call(args,_279,_274);});}var err=args.error;if(err&&_25c.isFunction(err)){d.addErrback(function(_27a){return err.call(args,_27a,_274);});}var _27b=args.handle;if(_27b&&_25c.isFunction(_27b)){d.addBoth(function(_27c){return _27b.call(args,_27c,_274);});}if(cfg.ioPublish&&_25c.publish&&_274.args.ioPublish!==false){d.addCallbacks(function(res){_25c.publish("/dojo/io/load",[d,res]);return res;},function(res){_25c.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){_25c.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_274;return d;};var _27d=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _27e=typeof xhr.abort;if(_27e=="function"||_27e=="object"||_27e=="unknown"){xhr.abort();}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}return err;};var _27f=function(dfd){var ret=_26c[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _280=function(_281,dfd){if(!dfd.ioArgs.args.failOk){console.error(_281);}return _281;};var _282=null;var _283=[];var _284=0;var _285=function(dfd){if(_284<=0){_284=0;if(cfg.ioPublish&&_25c.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_25c.publish("/dojo/io/stop");}}};var _286=function(){var now=(new Date()).getTime();if(!_25c._blockAsync){for(var i=0,tif;i<_283.length&&(tif=_283[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_283.splice(i--,1);_284-=1;}else{if(tif.ioCheck(dfd)){_283.splice(i--,1);tif.resHandle(dfd);_284-=1;}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_283.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();_284-=1;}}}}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(e){dfd.errback(e);}}}}_285(dfd);if(!_283.length){clearInterval(_282);_282=null;return;}};dojo._ioCancelAll=function(){try{_25c.forEach(_283,function(i){try{i.dfd.cancel();}catch(e){}});}catch(e){}};if(_25c.isIE){_25c.addOnWindowUnload(_25c._ioCancelAll);}_25c._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_25c.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_284){_25c.publish("/dojo/io/start");}_284+=1;_25c.publish("/dojo/io/send",[dfd]);}};_25c._ioWatch=function(dfd,_287,_288,_289){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime();}_283.push({dfd:dfd,validCheck:_287,ioCheck:_288,resHandle:_289});if(!_282){_282=setInterval(_286,50);}if(args.sync){_286();}};var _28a="application/x-www-form-urlencoded";var _28b=function(dfd){return dfd.ioArgs.xhr.readyState;};var _28c=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _28d=function(dfd){var xhr=dfd.ioArgs.xhr;if(_25c._isDocumentOk(xhr)){dfd.callback(dfd);}else{var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);err.status=xhr.status;err.responseText=xhr.responseText;dfd.errback(err);}};dojo._ioAddQueryToUrl=function(_28e){if(_28e.query.length){_28e.url+=(_28e.url.indexOf("?")==-1?"?":"&")+_28e.query;_28e.query=null;}};dojo.xhr=function(_28f,args,_290){var dfd=_25c._ioSetArgs(args,_27d,_27f,_280);var _291=dfd.ioArgs;var xhr=_291.xhr=_25c._xhrObj(_291.args);if(!xhr){dfd.cancel();return dfd;}if("postData" in args){_291.query=args.postData;}else{if("putData" in args){_291.query=args.putData;}else{if("rawBody" in args){_291.query=args.rawBody;}else{if((arguments.length>2&&!_290)||"POST|PUT".indexOf(_28f.toUpperCase())==-1){_25c._ioAddQueryToUrl(_291);}}}}xhr.open(_28f,_291.url,args.sync!==true,args.user||undefined,args.password||undefined);if(args.headers){for(var hdr in args.headers){if(hdr.toLowerCase()==="content-type"&&!args.contentType){args.contentType=args.headers[hdr];}else{if(args.headers[hdr]){xhr.setRequestHeader(hdr,args.headers[hdr]);}}}}xhr.setRequestHeader("Content-Type",args.contentType||_28a);if(!args.headers||!("X-Requested-With" in args.headers)){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}_25c._ioNotifyStart(dfd);if(dojo.config.debugAtAllCosts){xhr.send(_291.query);}else{try{xhr.send(_291.query);}catch(e){_291.error=e;dfd.cancel();}}_25c._ioWatch(dfd,_28b,_28c,_28d);xhr=null;return dfd;};dojo.xhrGet=function(args){return _25c.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return _25c.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return _25c.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return _25c.xhr("DELETE",args);};})();}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");(function(){var d=dojo;var _292=d._mixin;dojo._Line=function(_293,end){this.start=_293;this.end=end;};dojo._Line.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};dojo.Animation=function(args){_292(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}};d._Animation=d.Animation;d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _294=this._percent,_295=this.easing;return _295?_295(_294):_294;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(d.config.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}return this;},play:function(_296,_297){var _298=this;if(_298._delayTimer){_298._clearTimer();}if(_297){_298._stopTimer();_298._active=_298._paused=false;_298._percent=0;}else{if(_298._active&&!_298._paused){return _298;}}_298._fire("beforeBegin",[_298.node]);var de=_296||_298.delay,_299=dojo.hitch(_298,"_play",_297);if(de>0){_298._delayTimer=setTimeout(_299,de);return _298;}_299();return _298;},_play:function(_29a){var _29b=this;if(_29b._delayTimer){_29b._clearTimer();}_29b._startTime=new Date().valueOf();if(_29b._paused){_29b._startTime-=_29b.duration*_29b._percent;}_29b._active=true;_29b._paused=false;var _29c=_29b.curve.getValue(_29b._getStep());if(!_29b._percent){if(!_29b._startRepeatCount){_29b._startRepeatCount=_29b.repeat;}_29b._fire("onBegin",[_29c]);}_29b._fire("onPlay",[_29c]);_29b._cycle();return _29b;},pause:function(){var _29d=this;if(_29d._delayTimer){_29d._clearTimer();}_29d._stopTimer();if(!_29d._active){return _29d;}_29d._paused=true;_29d._fire("onPause",[_29d.curve.getValue(_29d._getStep())]);return _29d;},gotoPercent:function(_29e,_29f){var _2a0=this;_2a0._stopTimer();_2a0._active=_2a0._paused=true;_2a0._percent=_29e;if(_29f){_2a0.play();}return _2a0;},stop:function(_2a1){var _2a2=this;if(_2a2._delayTimer){_2a2._clearTimer();}if(!_2a2._timer){return _2a2;}_2a2._stopTimer();if(_2a1){_2a2._percent=1;}_2a2._fire("onStop",[_2a2.curve.getValue(_2a2._getStep())]);_2a2._active=_2a2._paused=false;return _2a2;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _2a3=this;if(_2a3._active){var curr=new Date().valueOf();var step=(curr-_2a3._startTime)/(_2a3.duration);if(step>=1){step=1;}_2a3._percent=step;if(_2a3.easing){step=_2a3.easing(step);}_2a3._fire("onAnimate",[_2a3.curve.getValue(step)]);if(_2a3._percent<1){_2a3._startTimer();}else{_2a3._active=false;if(_2a3.repeat>0){_2a3.repeat--;_2a3.play(null,true);}else{if(_2a3.repeat==-1){_2a3.play(null,true);}else{if(_2a3._startRepeatCount){_2a3.repeat=_2a3._startRepeatCount;_2a3._startRepeatCount=0;}}}_2a3._percent=0;_2a3._fire("onEnd",[_2a3.node]);!_2a3.repeat&&_2a3._stopTimer();}}return _2a3;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_2a4=null,_2a5={run:function(){}};d.extend(d.Animation,{_startTimer:function(){if(!this._timer){this._timer=d.connect(_2a5,"run",this,"_cycle");ctr++;}if(!_2a4){_2a4=setInterval(d.hitch(_2a5,"run"),this.rate);}},_stopTimer:function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_2a4);_2a4=null;ctr=0;}}});var _2a6=d.isIE?function(node){var ns=node.style;if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _2a7=_292({properties:{}},args),_2a8=(_2a7.properties.opacity={});_2a8.start=!("start" in _2a7)?function(){return +d.style(_2a7.node,"opacity")||0;}:_2a7.start;_2a8.end=_2a7.end;var anim=d.animateProperty(_2a7);d.connect(anim,"beforeBegin",d.partial(_2a6,_2a7.node));return anim;};dojo.fadeIn=function(args){return d._fade(_292({end:1},args));};dojo.fadeOut=function(args){return d._fade(_292({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _2a9=function(_2aa){this._properties=_2aa;for(var p in _2aa){var prop=_2aa[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}};_2a9.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_2ab=prop.start;if(_2ab instanceof d.Color){ret[p]=d.blendColors(_2ab,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_2ab)){ret[p]=((prop.end-_2ab)*r)+_2ab+(p!="opacity"?prop.units||"px":0);}}}return ret;};dojo.animateProperty=function(args){var n=args.node=d.byId(args.node);if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args);d.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];if(d.isFunction(prop)){prop=prop(n);}prop=pm[p]=_292({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start(n);}if(d.isFunction(prop.end)){prop.end=prop.end(n);}var _2ac=(p.toLowerCase().indexOf("color")>=0);function _2ad(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?+v:(_2ac?v:parseFloat(v));};if(!("end" in prop)){prop.end=_2ad(n,p);}else{if(!("start" in prop)){prop.start=_2ad(n,p);}}if(_2ac){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _2a9(pm);});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim;};dojo.anim=function(node,_2ae,_2af,_2b0,_2b1,_2b2){return d.animateProperty({node:node,duration:_2af||d.Animation.prototype.duration,properties:_2ae,easing:_2b0,onEnd:_2b1}).play(_2b2||0);};})();}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");dojo.forEach(dojo.config.require,function(i){dojo["require"](i);});}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);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(_2b3,map,_2b4,_2b5){_2b5=_2b5||dojo.global;_2b4=_2b4?dojo.hitch(_2b5,_2b4):function(v){return v;};return _2b3.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_2b6,key,_2b7){var _2b8=dojo.getObject(key,false,map);if(_2b7){_2b8=dojo.getObject(_2b7,false,_2b5).call(_2b5,_2b8,key);}return _2b4(_2b8,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.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 _2b9=this;dojo.mixin(_2b9,args);_2b9.node=args.node;_2b9._showArgs=dojo.mixin({},args);_2b9._showArgs.node=_2b9.node;_2b9._showArgs.duration=_2b9.showDuration;_2b9.showAnim=_2b9.showFunc(_2b9._showArgs);_2b9._hideArgs=dojo.mixin({},args);_2b9._hideArgs.node=_2b9.node;_2b9._hideArgs.duration=_2b9.hideDuration;_2b9.hideAnim=_2b9.hideFunc(_2b9._hideArgs);dojo.connect(_2b9.showAnim,"beforeBegin",dojo.hitch(_2b9.hideAnim,"stop",true));dojo.connect(_2b9.hideAnim,"beforeBegin",dojo.hitch(_2b9.showAnim,"stop",true));},show:function(_2ba){return this.showAnim.play(_2ba||0);},hide:function(_2bb){return this.hideAnim.play(_2bb||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_2bc={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _2bd=function(_2be){this._index=-1;this._animations=_2be||[];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(_2bd,{_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(_2bf,_2c0){if(!this._current){this._current=this._animations[this._index=0];}if(!_2c0&&this._current.status()=="playing"){return this;}var _2c1=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_2c2=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_2c3=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_2c1);d.disconnect(_2c2);d.disconnect(_2c3);});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(_2c4,_2c5){this.pause();var _2c6=this.duration*_2c4;this._current=null;d.some(this._animations,function(a){if(a.duration<=_2c6){this._current=a;return true;}_2c6-=a.duration;return false;});if(this._current){this._current.gotoPercent(_2c6/this._current.duration,_2c5);}return this;},stop:function(_2c7){if(this._current){if(_2c7){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(_2bd,_2bc);dojo.fx.chain=function(_2c8){return new _2bd(_2c8);};var _2c9=function(_2ca){this._animations=_2ca||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_2ca,function(a){var _2cb=a.duration;if(a.delay){_2cb+=a.delay;}if(this.duration<_2cb){this.duration=_2cb;}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(_2c9,{_doAction:function(_2cc,args){d.forEach(this._animations,function(a){a[_2cc].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_2cd,args){var t=this._pseudoAnimation;t[_2cd].apply(t,args);},play:function(_2ce,_2cf){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(_2d0,_2d1){var ms=this.duration*_2d0;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_2d1);});this._call("gotoPercent",arguments);return this;},stop:function(_2d2){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(_2c9,_2bc);dojo.fx.combine=function(_2d3){return new _2c9(_2d3);};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 _2d4=d.style(node,"height");return Math.max(_2d4,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["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(_2d5){if(this._hash[_2d5.id]){throw new Error("Tried to register widget with id=="+_2d5.id+" but that id is already registered");}this._hash[_2d5.id]=_2d5;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_2d6){_2d6=_2d6||dojo.global;var i=0,id;for(id in this._hash){func.call(_2d6,this._hash[id],i++,this._hash);}return this;},filter:function(_2d7,_2d8){_2d8=_2d8||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_2d7.call(_2d8,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,_2d9;for(id in this._hash){_2d9=this._hash[id];if(_2d9.declaredClass==cls){res.add(_2d9);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_2da){return dojo.map(this.toArray(),func,_2da);},every:function(func,_2db){_2db=_2db||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_2db,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_2dc){_2dc=_2dc||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_2dc,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_2dd=dojo.hasAttr,_2de=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _2df={};dijit.getUniqueId=function(_2e0){var id;do{id=_2e0+"_"+(_2e0 in _2df?++_2df[_2e0]:_2df[_2e0]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _2e1=[];function _2e2(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _2e3=node.getAttribute("widgetId");if(_2e3){var _2e4=hash[_2e3];if(_2e4){_2e1.push(_2e4);}}else{_2e2(node);}}}};_2e2(root);return _2e1;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_2e5){if(!_2e5._destroyed){if(_2e5.destroyRecursive){_2e5.destroyRecursive();}else{if(_2e5.destroy){_2e5.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(node){return hash[node.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;};var _2e6=(dijit._isElementShown=function(elem){var s=_2de(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(attr(elem,"type")!="hidden");});dijit.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _2dd(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2e7=elem.contentDocument;if("designMode" in _2e7&&_2e7.designMode=="on"){return true;}body=_2e7.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true");default:return elem.contentEditable=="true";}};var _2e8=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_2dd(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _2e9,last,_2ea,_2eb,_2ec,_2ed,_2ee={};function _2ef(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2f0=function(_2f1){dojo.query("> *",_2f1).forEach(function(_2f2){if((dojo.isIE&&_2f2.scopeName!=="HTML")||!_2e6(_2f2)){return;}if(_2e8(_2f2)){var _2f3=attr(_2f2,"tabIndex");if(!_2dd(_2f2,"tabIndex")||_2f3==0){if(!_2e9){_2e9=_2f2;}last=_2f2;}else{if(_2f3>0){if(!_2ea||_2f3<_2eb){_2eb=_2f3;_2ea=_2f2;}if(!_2ec||_2f3>=_2ed){_2ed=_2f3;_2ec=_2f2;}}}var rn=_2ef(_2f2);if(dojo.attr(_2f2,"checked")&&rn){_2ee[rn]=_2f2;}}if(_2f2.nodeName.toUpperCase()!="SELECT"){_2f0(_2f2);}});};if(_2e6(root)){_2f0(root);}function rs(node){return _2ee[_2ef(node)]||node;};return {first:rs(_2e9),last:rs(last),lowest:rs(_2ea),highest:rs(_2ec)};};dijit.getFirstInTabbingOrder=function(root){var _2f4=dijit._getTabNavigable(dojo.byId(root));return _2f4.lowest?_2f4.lowest:_2f4.first;};dijit.getLastInTabbingOrder=function(root){var _2f5=dijit._getTabNavigable(dojo.byId(root));return _2f5.last?_2f5.last:_2f5.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_2f6){if(_2f6){dojo.mixin(this,_2f6);}},get:function(name){return this[name];},set:function(name,_2f7){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _2f8=this[name];this[name]=_2f7;if(this._watchCallbacks){this._watchCallbacks(name,_2f8,_2f7);}return this;},watch:function(name,_2f9){var _2fa=this._watchCallbacks;if(!_2fa){var self=this;_2fa=this._watchCallbacks=function(name,_2fb,_2fc,_2fd){var _2fe=function(_2ff){if(_2ff){_2ff=_2ff.slice();for(var i=0,l=_2ff.length;i<l;i++){try{_2ff[i].call(self,name,_2fb,_2fc);}catch(e){console.error(e);}}}};_2fe(_2fa["_"+name]);if(!_2fd){_2fe(_2fa["*"]);}};}if(!_2f9&&typeof name==="function"){_2f9=name;name="*";}else{name="_"+name;}var _300=_2fa[name];if(typeof _300!=="object"){_300=_2fa[name]=[];}_300.push(_2f9);return {unwatch:function(){_300.splice(dojo.indexOf(_300,_2f9),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_301,_302){this.create(_301,_302);},create:function(_303,_304){this.srcNodeRef=dojo.byId(_304);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_303){this.params=_303;dojo._mixin(this,_303);}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 _305=this.srcNodeRef;if(_305&&_305.parentNode&&this.domNode!==_305){_305.parentNode.replaceChild(this.domNode,_305);}}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 _306=function(attr,_307){if((_307.params&&attr in _307.params)||_307[attr]){_307.set(attr,_307[attr]);}};for(var attr in this.attributeMap){_306(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_306(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_308,_309=ctor.prototype;for(var _30a in _309){if(dojo.isFunction(_309[_30a])&&(_308=_30a.match(/^_set([a-zA-Z]*)Attr$/))&&_308[1]){r.push(_308[1].charAt(0).toLowerCase()+_308[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _30b=this.baseClass.split(" ");if(!this.isLeftToRight()){_30b=_30b.concat(dojo.map(_30b,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_30b);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_30c){this._beingDestroyed=true;this.destroyDescendants(_30c);this.destroy(_30c);},destroy:function(_30d){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_30e){dfe(_30e,d.disconnect);});dfe(this._subscribes,function(_30f){dun(_30f);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_30d);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_310){if(this.bgIframe){this.bgIframe.destroy(_310);delete this.bgIframe;}if(this.domNode){if(_310){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_310){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_311){dojo.forEach(this.getChildren(),function(_312){if(_312.destroyRecursive){_312.destroyRecursive(_311);}});},uninitialize:function(){return false;},_setClassAttr:function(_313){var _314=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_314,_313,this["class"]);this._set("class",_313);},_setStyleAttr:function(_315){var _316=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_315)){dojo.style(_316,_315);}else{if(_316.style.cssText){_316.style.cssText+="; "+_315;}else{_316.style.cssText=_315;}}this._set("style",_315);},_attrToDom:function(attr,_317){var _318=this.attributeMap[attr];dojo.forEach(dojo.isArray(_318)?_318:[_318],function(_319){var _31a=this[_319.node||_319||"domNode"];var type=_319.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_317)){_317=dojo.hitch(this,_317);}var _31b=_319.attribute?_319.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_31a,_31b,_317);break;case "innerText":_31a.innerHTML="";_31a.appendChild(dojo.doc.createTextNode(_317));break;case "innerHTML":_31a.innerHTML=_317;break;case "class":dojo.replaceClass(_31a,_317,this[attr]);break;}},this);},get:function(name){var _31c=this._getAttrNames(name);return this[_31c.g]?this[_31c.g]():this[name];},set:function(name,_31d){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _31e=this._getAttrNames(name);if(this[_31e.s]){var _31f=this[_31e.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_31d);}this._set(name,_31d);}return _31f||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"});},_set:function(name,_320){var _321=this[name];this[name]=_320;if(this._watchCallbacks&&this._created&&_320!==_321){this._watchCallbacks(name,_321,_320);}},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):[];},connect:function(obj,_322,_323){var _324=[dojo._connect(obj,_322,this,_323)];this._connects.push(_324);return _324;},disconnect:function(_325){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_325){dojo.forEach(_325,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_326,_327){var _328=dojo.subscribe(_326,this,_327);this._subscribes.push(_328);return _328;},unsubscribe:function(_329){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_329){dojo.unsubscribe(_329);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_32a,_32b){if(_32a.declaredClass&&_32a.addChild){_32a.addChild(this,_32b);}else{dojo.place(this.domNode,_32a,_32b);}return this;}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _32c=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _32d=dojo._docScroll();return {w:_32c.clientWidth,h:_32c.clientHeight,l:_32d.x,t:_32d.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(node,pos){try{node=dojo.byId(node);var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if((!(dojo.isMoz||isIE||isWK||dojo.isOpera)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _32e=doc.compatMode=="BackCompat",_32f=(isIE>=9&&node.ownerDocument.parentWindow.frameElement)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_32e?body:html),_330=isWK?body:_32f,_331=_32f.clientWidth,_332=_32f.clientHeight,rtl=!dojo._isBodyLtr(),_333=pos||dojo.position(node),el=node.parentNode,_334=function(el){return ((isIE<=6||(isIE&&_32e))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_334(node)){return;}while(el){if(el==body){el=_330;}var _335=dojo.position(el),_336=_334(el);if(el==_330){_335.w=_331;_335.h=_332;if(_330==html&&isIE&&rtl){_335.x+=_330.offsetWidth-_335.w;}if(_335.x<0||!isIE){_335.x=0;}if(_335.y<0||!isIE){_335.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_335.w-=pb.w;_335.h-=pb.h;_335.x+=pb.l;_335.y+=pb.t;var _337=el.clientWidth,_338=_335.w-_337;if(_337>0&&_338>0){_335.w=_337;_335.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_338:0;}_337=el.clientHeight;_338=_335.h-_337;if(_337>0&&_338>0){_335.h=_337;}}if(_336){if(_335.y<0){_335.h+=_335.y;_335.y=0;}if(_335.x<0){_335.w+=_335.x;_335.x=0;}if(_335.y+_335.h>_332){_335.h=_332-_335.y;}if(_335.x+_335.w>_331){_335.w=_331-_335.x;}}var l=_333.x-_335.x,t=_333.y-Math.max(_335.y,0),r=l+_333.w-_335.w,bot=t+_333.h-_335.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_32e)||isIE>=9)){s=-s;}_333.x+=el.scrollLeft;el.scrollLeft+=s;_333.x-=el.scrollLeft;}if(bot*t>0){_333.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_333.y-=el.scrollTop;}el=(el!=_330)&&!_336&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}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};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}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(_339){var _33a=dojo.doc,mark=_339.mark;if(mark){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_33a.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_33a.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_33a.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_33b){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_33b||dojo.global,dijit.getBookmark),openedForWindow:_33b};},focus:function(_33c){if(!_33c){return;}var node="node" in _33c?_33c.node:_33c,_33d=_33c.bookmark,_33e=_33c.openedForWindow,_33f=_33d?_33d.isCollapsed:false;if(node){var _340=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_340&&_340.focus){try{_340.focus();}catch(e){}}dijit._onFocusNode(node);}if(_33d&&dojo.withGlobal(_33e||dojo.global,dijit.isCollapsed)&&!_33f){if(_33e){_33e.focus();}try{dojo.withGlobal(_33e||dojo.global,dijit.moveToBookmark,null,[_33d]);}catch(e2){}}},_activeStack:[],registerIframe:function(_341){return dijit.registerWin(_341.contentWindow,_341);},unregisterIframe:function(_342){dijit.unregisterWin(_342);},registerWin:function(_343,_344){var _345=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_344||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_343.document.documentElement:_343.document;if(doc){if(dojo.isIE){_343.document.body.attachEvent("onmousedown",_345);var _346=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_344||evt.srcElement);}else{dijit._onTouchNode(_344||evt.srcElement);}};doc.attachEvent("onactivate",_346);var _347=function(evt){dijit._onBlurNode(_344||evt.srcElement);};doc.attachEvent("ondeactivate",_347);return function(){_343.document.detachEvent("onmousedown",_345);doc.detachEvent("onactivate",_346);doc.detachEvent("ondeactivate",_347);doc=null;};}else{doc.body.addEventListener("mousedown",_345,true);var _348=function(evt){dijit._onFocusNode(_344||evt.target);};doc.addEventListener("focus",_348,true);var _349=function(evt){dijit._onBlurNode(_344||evt.target);};doc.addEventListener("blur",_349,true);return function(){doc.body.removeEventListener("mousedown",_345,true);doc.removeEventListener("focus",_348,true);doc.removeEventListener("blur",_349,true);doc=null;};}}},unregisterWin:function(_34a){_34a&&_34a();},_onBlurNode:function(node){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(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _34b=[];try{while(node){var _34c=dojo.attr(node,"dijitPopupParent");if(_34c){node=dijit.byId(_34c).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_34d=id&&dijit.byId(id);if(_34d&&!(by=="mouse"&&_34d.get("disabled"))){_34b.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_34b,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_34e,by){var _34f=dijit._activeStack;dijit._activeStack=_34e;for(var _350=0;_350<Math.min(_34f.length,_34e.length);_350++){if(_34f[_350]!=_34e[_350]){break;}}var _351;for(var i=_34f.length-1;i>=_350;i--){_351=dijit.byId(_34f[i]);if(_351){_351._focused=false;_351.set("focused",false);_351._hasBeenBlurred=true;if(_351._onBlur){_351._onBlur(by);}dojo.publish("widgetBlur",[_351,by]);}}for(i=_350;i<_34e.length;i++){_351=dijit.byId(_34e[i]);if(_351){_351._focused=true;_351.set("focused",true);if(_351._onFocus){_351._onFocus(by);}dojo.publish("widgetFocus",[_351,by]);}}}});dojo.addOnLoad(function(){var _352=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_352);_352=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_353){this.pairs=[];this.returnWrappers=_353||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_354,wrap,_355,_356){this.pairs[((_356)?"unshift":"push")]([name,_354,wrap,_355]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_357,_358){var _359=dojo.map(_357,function(_35a){var c={corner:_35a,pos:{x:pos.x,y:pos.y}};if(_358){c.pos.x+=_35a.charAt(1)=="L"?_358.x:-_358.x;c.pos.y+=_35a.charAt(0)=="T"?_358.y:-_358.y;}return c;});return dijit._place(node,_359);};dijit._place=function(node,_35b,_35c,_35d){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_35b,function(_35e){var _35f=_35e.corner;var pos=_35e.pos;var _360=0;var _361={w:_35f.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_35f.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_35c){var res=_35c(node,_35e.aroundCorner,_35f,_361,_35d);_360=typeof res=="undefined"?0:res;}var _362=node.style;var _363=_362.display;var _364=_362.visibility;_362.visibility="hidden";_362.display="";var mb=dojo.marginBox(node);_362.display=_363;_362.visibility=_364;var _365=Math.max(view.l,_35f.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_366=Math.max(view.t,_35f.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_35f.charAt(1)=="L"?(_365+mb.w):pos.x),endY=Math.min(view.t+view.h,_35f.charAt(0)=="T"?(_366+mb.h):pos.y),_367=endX-_365,_368=endY-_366;_360+=(mb.w-_367)+(mb.h-_368);if(best==null||_360<best.overflow){best={corner:_35f,aroundCorner:_35e.aroundCorner,x:_365,y:_366,w:_367,h:_368,overflow:_360,spaceAvailable:_361};}return !_360;});if(best.overflow&&_35c){_35c(node,best.aroundCorner,best.corner,best.spaceAvailable,_35d);}var l=dojo._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";return best;};dijit.placeOnScreenAroundNode=function(node,_369,_36a,_36b){_369=dojo.byId(_369);var _36c=dojo.position(_369,true);return dijit._placeOnScreenAroundRect(node,_36c.x,_36c.y,_36c.w,_36c.h,_36a,_36b);};dijit.placeOnScreenAroundRectangle=function(node,_36d,_36e,_36f){return dijit._placeOnScreenAroundRect(node,_36d.x,_36d.y,_36d.width,_36d.height,_36e,_36f);};dijit._placeOnScreenAroundRect=function(node,x,y,_370,_371,_372,_373){var _374=[];for(var _375 in _372){_374.push({aroundCorner:_375,corner:_372[_375],pos:{x:x+(_375.charAt(1)=="L"?0:_370),y:y+(_375.charAt(0)=="T"?0:_371)}});}return dijit._place(node,_374,_373,{w:_370,h:_371});};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(node,_376,_377,_378){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_379,_37a){var _37b={};dojo.forEach(_379,function(pos){switch(pos){case "after":_37b[_37a?"BR":"BL"]=_37a?"BL":"BR";break;case "before":_37b[_37a?"BL":"BR"]=_37a?"BR":"BL";break;case "below-alt":_37a=!_37a;case "below":_37b[_37a?"BL":"BR"]=_37a?"TL":"TR";_37b[_37a?"BR":"BL"]=_37a?"TR":"TL";break;case "above-alt":_37a=!_37a;case "above":default:_37b[_37a?"TL":"TR"]=_37a?"BL":"BR";_37b[_37a?"TR":"TL"]=_37a?"BR":"BL";break;}});return _37b;};}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,_createWrapper:function(_37c){var _37d=_37c.declaredClass?_37c._popupWrapper:(_37c.parentNode&&dojo.hasClass(_37c.parentNode,"dijitPopup")),node=_37c.domNode||_37c;if(!_37d){_37d=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_37d.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_37c.declaredClass){_37c._popupWrapper=_37d;dojo.connect(_37c,"destroy",function(){dojo.destroy(_37d);delete _37c._popupWrapper;});}}return _37d;},moveOffScreen:function(_37e){var _37f=this._createWrapper(_37e);dojo.style(_37f,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_380){var _381=this._createWrapper(_380);dojo.style(_381,"display","none");},getTopPopup:function(){var _382=this._stack;for(var pi=_382.length-1;pi>0&&_382[pi].parent===_382[pi-1].widget;pi--){}return _382[pi];},open:function(args){var _383=this._stack,_384=args.popup,_385=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_386=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_383.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_383[_383.length-1].widget.domNode))){dijit.popup.close(_383[_383.length-1].widget);}var _387=this._createWrapper(_384);dojo.attr(_387,{id:id,style:{zIndex:this._beginZIndex+_383.length},"class":"dijitPopup "+(_384.baseClass||_384["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_384.bgIframe){_384.bgIframe=new dijit.BackgroundIframe(_387);}}var best=_386?dijit.placeOnScreenAroundElement(_387,_386,_385,_384.orient?dojo.hitch(_384,"orient"):null):dijit.placeOnScreen(_387,args,_385=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_387.style.display="";_387.style.visibility="visible";_384.domNode.style.visibility="visible";var _388=[];_388.push(dojo.connect(_387,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _389=this.getTopPopup();if(_389&&_389.onCancel){_389.onCancel();}}}}));if(_384.onCancel){_388.push(dojo.connect(_384,"onCancel",args.onCancel));}_388.push(dojo.connect(_384,_384.onExecute?"onExecute":"onChange",this,function(){var _38a=this.getTopPopup();if(_38a&&_38a.onExecute){_38a.onExecute();}}));_383.push({widget:_384,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_388});if(_384.onOpen){_384.onOpen(best);}return best;},close:function(_38b){var _38c=this._stack;while((_38b&&dojo.some(_38c,function(elem){return elem.widget==_38b;}))||(!_38b&&_38c.length)){var top=_38c.pop(),_38d=top.widget,_38e=top.onClose;if(_38d.onClose){_38d.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_38d&&_38d.domNode){this.hide(_38d);}if(_38e){_38e();}}}};dijit._frames=new function(){var _38f=[];this.pop=function(){var _390;if(_38f.length){_390=_38f.pop();_390.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_390=dojo.doc.createElement(html);}else{_390=dojo.create("iframe");_390.src="javascript:\"\"";_390.className="dijitBackgroundIframe";dojo.style(_390,"opacity",0.1);}_390.tabIndex=-1;dijit.setWaiRole(_390,"presentation");}return _390;};this.push=function(_391){_391.style.display="none";_38f.push(_391);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _392=(this.iframe=dijit._frames.pop());node.appendChild(_392);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_392,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.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(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_393=d.isOpera,maj=Math.floor,ff=d.isFF,_394=d.boxModel.replace(/-/,""),_395={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_393,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};_395["dj_"+_394]=true;var _396="";for(var clz in _395){if(_395[clz]){_396+=clz+" ";}}html.className=d.trim(html.className+" "+_396);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _397="dj_rtl dijitRtl "+_396.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_397);}});})();}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,_398,node,_399,obj,_39a,_39b,_39c){if(obj!=this._obj){this.stop();this._initialDelay=_39b||500;this._subsequentDelay=_39a||0.9;this._minDelay=_39c||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_398,_399);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(node,_39d,_39e,_39f,_3a0,_3a1,_3a2){if(_39d.keyCode){_39d.charOrCode=_39d.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_39d.charCode){_39d.charOrCode=String.fromCharCode(_39d.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_39d.charOrCode&&(_39d.ctrlKey===undefined||_39d.ctrlKey==evt.ctrlKey)&&(_39d.altKey===undefined||_39d.altKey==evt.altKey)&&(_39d.metaKey===undefined||_39d.metaKey==(evt.metaKey||false))&&(_39d.shiftKey===undefined||_39d.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_39e,node,_39f,_39d,_3a0,_3a1,_3a2);}else{if(dijit.typematic._obj==_39d){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_39d){dijit.typematic.stop();}})];},addMouseListener:function(node,_3a3,_3a4,_3a5,_3a6,_3a7){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_3a3,node,_3a4,node,_3a5,_3a6,_3a7);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_3a3,node,_3a4,node,_3a5,_3a6,_3a7);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_3a8,_3a9,_3aa,_3ab,_3ac,_3ad,_3ae,_3af){return this.addKeyListener(_3a9,_3aa,_3ab,_3ac,_3ad,_3ae,_3af).concat(this.addMouseListener(_3a8,_3ab,_3ac,_3ad,_3ae,_3af));}};}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 _3b0=cs.backgroundImage;var _3b1=(cs.borderTopColor==cs.borderRightColor)||(_3b0!=null&&(_3b0=="none"||_3b0=="url(invalid-url:)"));dojo[_3b1?"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,{hasWaiRole:function(elem,role){var _3b2=this.getWaiRole(elem);return role?(_3b2.indexOf(role)>-1):(_3b2.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _3b3=dojo.attr(elem,"role");if(!_3b3){return;}if(role){var t=dojo.trim((" "+_3b3+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_3b4){return elem.hasAttribute?elem.hasAttribute("aria-"+_3b4):!!elem.getAttribute("aria-"+_3b4);},getWaiState:function(elem,_3b5){return elem.getAttribute("aria-"+_3b5)||"";},setWaiState:function(elem,_3b6,_3b7){elem.setAttribute("aria-"+_3b6,_3b7);},removeWaiState:function(elem,_3b8){elem.removeAttribute("aria-"+_3b8);}});}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.connect(dojo,"_connect",function(_3b9,_3ba){if(_3b9&&dojo.isFunction(_3b9._onConnect)){_3b9._onConnect(_3ba);}});dijit._connectOnUseEventHandler=function(_3bb){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _3bc=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_3bc);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_3bc);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_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,create:function(_3bd,_3be){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];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_3bf){if(_3bf in this._deferredConnects){var _3c0=this[this._deferredConnects[_3bf]||"domNode"];this.connect(_3c0,_3bf.toLowerCase(),_3bf);delete this._deferredConnects[_3bf];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_3c1){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_3c1);},attr:function(name,_3c2){if(dojo.config.isDebug){var _3c3=arguments.callee._ach||(arguments.callee._ach={}),_3c4=(arguments.callee.caller||"unknown caller").toString();if(!_3c3[_3c4]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_3c4,"","2.0");_3c3[_3c4]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_3c5,_3c6){var d=dojo,dc=d._connect,_3c7=this.inherited(arguments,[obj,_3c5=="ondijitclick"?"onclick":_3c5,_3c6]);if(_3c5=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_3c6);_3c7.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;if(!("openDropDown" in this&&obj==this._buttonNode)){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);}}));}}return _3c7;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_3c8,_3c9){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 _3ca=dojo.date.stamp._isoRegExp.exec(_3c8),_3cb=null;if(_3ca){_3ca.shift();if(_3ca[1]){_3ca[1]--;}if(_3ca[6]){_3ca[6]*=1000;}if(_3c9){_3c9=new Date(_3c9);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _3c9["get"+prop]();}),function(_3cc,_3cd){_3ca[_3cd]=_3ca[_3cd]||_3cc;});}_3cb=new Date(_3ca[0]||1970,_3ca[1]||0,_3ca[2]||1,_3ca[3]||0,_3ca[4]||0,_3ca[5]||0,_3ca[6]||0);if(_3ca[0]<100){_3cb.setFullYear(_3ca[0]||1970);}var _3ce=0,_3cf=_3ca[7]&&_3ca[7].charAt(0);if(_3cf!="Z"){_3ce=((_3ca[8]||0)*60)+(Number(_3ca[9])||0);if(_3cf!="-"){_3ce*=-1;}}if(_3cf){_3ce-=_3cb.getTimezoneOffset();}if(_3ce){_3cb.setTime(_3cb.getTime()+_3ce*60000);}}return _3cb;};dojo.date.stamp.toISOString=function(_3d0,_3d1){var _3d2=function(n){return (n<10)?"0"+n:n;};_3d1=_3d1||{};var _3d3=[],_3d4=_3d1.zulu?"getUTC":"get",date="";if(_3d1.selector!="time"){var year=_3d0[_3d4+"FullYear"]();date=["0000".substr((year+"").length)+year,_3d2(_3d0[_3d4+"Month"]()+1),_3d2(_3d0[_3d4+"Date"]())].join("-");}_3d3.push(date);if(_3d1.selector!="date"){var time=[_3d2(_3d0[_3d4+"Hours"]()),_3d2(_3d0[_3d4+"Minutes"]()),_3d2(_3d0[_3d4+"Seconds"]())].join(":");var _3d5=_3d0[_3d4+"Milliseconds"]();if(_3d1.milliseconds){time+="."+(_3d5<100?"0":"")+_3d2(_3d5);}if(_3d1.zulu){time+="Z";}else{if(_3d1.selector!="time"){var _3d6=_3d0.getTimezoneOffset();var _3d7=Math.abs(_3d6);time+=(_3d6>0?"-":"+")+_3d2(Math.floor(_3d7/60))+":"+_3d2(_3d7%60);}}_3d3.push(time);}return _3d3.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;function _3d8(_3d9){if(d.isString(_3d9)){return "string";}if(typeof _3d9=="number"){return "number";}if(typeof _3d9=="boolean"){return "boolean";}if(d.isFunction(_3d9)){return "function";}if(d.isArray(_3d9)){return "array";}if(_3d9 instanceof Date){return "date";}if(_3d9 instanceof d._Url){return "url";}return "object";};function _3da(_3db,type){switch(type){case "string":return _3db;case "number":return _3db.length?Number(_3db):NaN;case "boolean":return typeof _3db=="boolean"?_3db:!(_3db.toLowerCase()=="false");case "function":if(d.isFunction(_3db)){_3db=_3db.toString();_3db=d.trim(_3db.substring(_3db.indexOf("{")+1,_3db.length-1));}try{if(_3db===""||_3db.search(/[^\w\.]+/i)!=-1){return new Function(_3db);}else{return d.getObject(_3db,false)||new Function(_3db);}}catch(e){return new Function();}case "array":return _3db?_3db.split(/\s*,\s*/):[];case "date":switch(_3db){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_3db);}case "url":return d.baseUrl+_3db;default:return d.fromJson(_3db);}};var _3dc={},_3dd={};d.connect(d,"extend",function(){_3dd={};});function _3de(cls,_3df){for(var name in cls){if(name.charAt(0)=="_"){continue;}if(name in _3dc){continue;}_3df[name]=_3d8(cls[name]);}return _3df;};function _3e0(_3e1,_3e2){var c=_3dd[_3e1];if(!c){var cls=d.getObject(_3e1),_3e3=null;if(!cls){return null;}if(!_3e2){_3e3=_3de(cls.prototype,{});}c={cls:cls,params:_3e3};}else{if(!_3e2&&!c.params){c.params=_3de(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_3e4,_3e5){var _3e6="";var _3e7="";var _3e8=(_3e4.getAttribute(_3e5+"args")||_3e4.getAttribute("args"));if(_3e8){d.forEach(_3e8.split(/\s*,\s*/),function(part,idx){_3e6+="var "+part+" = arguments["+idx+"]; ";});}var _3e9=_3e4.getAttribute("with");if(_3e9&&_3e9.length){d.forEach(_3e9.split(/\s*,\s*/),function(part){_3e6+="with("+part+"){";_3e7+="}";});}return new Function(_3e6+_3e4.innerHTML+_3e7);};this.instantiate=function(_3ea,_3eb,args){var _3ec=[],_3eb=_3eb||{};args=args||{};var _3ed=(args.scope||d._scopeName)+"Type",_3ee="data-"+(args.scope||d._scopeName)+"-";d.forEach(_3ea,function(obj){if(!obj){return;}var node,type,_3ef,_3f0,_3f1,_3f2;if(obj.node){node=obj.node;type=obj.type;_3f2=obj.fastpath;_3ef=obj.clsInfo||(type&&_3e0(type,_3f2));_3f0=_3ef&&_3ef.cls;_3f1=obj.scripts;}else{node=obj;type=_3ed in _3eb?_3eb[_3ed]:node.getAttribute(_3ed);_3ef=type&&_3e0(type);_3f0=_3ef&&_3ef.cls;_3f1=(_3f0&&(_3f0._noScript||_3f0.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_3ef){throw new Error("Could not load class '"+type);}var _3f3={};if(args.defaults){d._mixin(_3f3,args.defaults);}if(obj.inherited){d._mixin(_3f3,obj.inherited);}if(_3f2){var _3f4=node.getAttribute(_3ee+"props");if(_3f4&&_3f4.length){try{_3f4=d.fromJson.call(args.propsThis,"{"+_3f4+"}");d._mixin(_3f3,_3f4);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_3f4+"'");}}var _3f5=node.getAttribute(_3ee+"attach-point");if(_3f5){_3f3.dojoAttachPoint=_3f5;}var _3f6=node.getAttribute(_3ee+"attach-event");if(_3f6){_3f3.dojoAttachEvent=_3f6;}dojo.mixin(_3f3,_3eb);}else{var _3f7=node.attributes;for(var name in _3ef.params){var item=name in _3eb?{value:_3eb[name],specified:true}:_3f7.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _3f8=item.value;switch(name){case "class":_3f8="className" in _3eb?_3eb.className:node.className;break;case "style":_3f8="style" in _3eb?_3eb.style:(node.style&&node.style.cssText);}var _3f9=_3ef.params[name];if(typeof _3f8=="string"){_3f3[name]=_3da(_3f8,_3f9);}else{_3f3[name]=_3f8;}}}var _3fa=[],_3fb=[];d.forEach(_3f1,function(_3fc){node.removeChild(_3fc);var _3fd=(_3fc.getAttribute(_3ee+"event")||_3fc.getAttribute("event")),type=_3fc.getAttribute("type"),nf=d.parser._functionFromScript(_3fc,_3ee);if(_3fd){if(type=="dojo/connect"){_3fa.push({event:_3fd,func:nf});}else{_3f3[_3fd]=nf;}}else{_3fb.push(nf);}});var _3fe=_3f0.markupFactory||_3f0.prototype&&_3f0.prototype.markupFactory;var _3ff=_3fe?_3fe(_3f3,node,_3f0):new _3f0(_3f3,node);_3ec.push(_3ff);var _400=(node.getAttribute(_3ee+"id")||node.getAttribute("jsId"));if(_400){d.setObject(_400,_3ff);}d.forEach(_3fa,function(_401){d.connect(_3ff,_401.event,null,_401.func);});d.forEach(_3fb,function(func){func.call(_3ff);});});if(!_3eb._started){d.forEach(_3ec,function(_402){if(!args.noStart&&_402&&dojo.isFunction(_402.startup)&&!_402._started&&(!_402.getParent||!_402.getParent())){_402.startup();}});}return _3ec;};this.parse=function(_403,args){var root;if(!args&&_403&&_403.rootNode){args=_403;root=args.rootNode;}else{root=_403;}root=root?dojo.byId(root):dojo.body();args=args||{};var _404=(args.scope||d._scopeName)+"Type",_405="data-"+(args.scope||d._scopeName)+"-";function scan(_406,list){var _407=dojo.clone(_406.inherited);dojo.forEach(["dir","lang"],function(name){var val=_406.node.getAttribute(name);if(val){_407[name]=val;}});var _408=_406.clsInfo&&!_406.clsInfo.cls.prototype._noScript?_406.scripts:null;var _409=(!_406.clsInfo||!_406.clsInfo.cls.prototype.stopParser)||(args&&args.template);for(var _40a=_406.node.firstChild;_40a;_40a=_40a.nextSibling){if(_40a.nodeType==1){var type,_40b=_409&&_40a.getAttribute(_405+"type");if(_40b){type=_40b;}else{type=_409&&_40a.getAttribute(_404);}var _40c=_40b==type;if(type){var _40d={"type":type,fastpath:_40c,clsInfo:_3e0(type,_40c),node:_40a,scripts:[],inherited:_407};list.push(_40d);scan(_40d,list);}else{if(_408&&_40a.nodeName.toLowerCase()=="script"){type=_40a.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_408.push(_40a);}}else{if(_409){scan({node:_40a,inherited:_407},list);}}}}}};var _40e={};if(args&&args.inherited){for(var key in args.inherited){if(args.inherited[key]){_40e[key]=args.inherited[key];}}}var list=[];scan({node:root,inherited:_40e},list);var _40f=args&&args.template?{template:true}:null;return this.instantiate(list,_40f,args);};}();(function(){var _410=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_410);}else{dojo._loaders.unshift(_410);}})();}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var _411={};dojo.cache=function(_412,url,_413){if(typeof _412=="string"){var _414=dojo.moduleUrl(_412,url);}else{_414=_412;_413=url;}var key=_414.toString();var val=_413;if(_413!=undefined&&!dojo.isString(_413)){val=("value" in _413?_413.value:undefined);}var _415=_413&&_413.sanitize?true:false;if(typeof val=="string"){val=_411[key]=_415?dojo.cache._sanitize(val):val;}else{if(val===null){delete _411[key];}else{if(!(key in _411)){val=dojo._getText(key);_411[key]=_415?dojo.cache._sanitize(val):val;}val=_411[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _416=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_416){val=_416[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=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _417=this.declaredClass,_418=this;return dojo.string.substitute(tmpl,this,function(_419,key){if(key.charAt(0)=="!"){_419=dojo.getObject(key.substr(1),false,_418);}if(typeof _419=="undefined"){throw new Error(_417+" template:"+key);}if(_419==null){return "";}return key.charAt(0)=="!"?_419:_419.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _41a=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_41a)){node=dojo._toDom(this._stringRepl(_41a));if(node.nodeType!=1){throw new Error("Invalid template: "+_41a);}}else{node=_41a.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_41b){var dest=this.containerNode;if(_41b&&dest){while(_41b.hasChildNodes()){dest.appendChild(_41b.firstChild);}}},_attachTemplateNodes:function(_41c,_41d){_41d=_41d||function(n,p){return n.getAttribute(p);};var _41e=dojo.isArray(_41c)?_41c:(_41c.all||_41c.getElementsByTagName("*"));var x=dojo.isArray(_41c)?0:-1;for(;x<_41e.length;x++){var _41f=(x==-1)?_41c:_41e[x];if(this.widgetsInTemplate&&(_41d(_41f,"dojoType")||_41d(_41f,"data-dojo-type"))){continue;}var _420=_41d(_41f,"dojoAttachPoint")||_41d(_41f,"data-dojo-attach-point");if(_420){var _421,_422=_420.split(/\s*,\s*/);while((_421=_422.shift())){if(dojo.isArray(this[_421])){this[_421].push(_41f);}else{this[_421]=_41f;}this._attachPoints.push(_421);}}var _423=_41d(_41f,"dojoAttachEvent")||_41d(_41f,"data-dojo-attach-event");if(_423){var _424,_425=_423.split(/\s*,\s*/);var trim=dojo.trim;while((_424=_425.shift())){if(_424){var _426=null;if(_424.indexOf(":")!=-1){var _427=_424.split(":");_424=trim(_427[0]);_426=trim(_427[1]);}else{_424=trim(_424);}if(!_426){_426=_424;}this._attachEvents.push(this.connect(_41f,_424,_426));}}}var role=_41d(_41f,"waiRole");if(role){dijit.setWaiRole(_41f,role);}var _428=_41d(_41f,"waiState");if(_428){dojo.forEach(_428.split(/\s*,\s*/),function(_429){if(_429.indexOf("-")!=-1){var pair=_429.split("-");dijit.setWaiState(_41f,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(_42a){delete this[_42a];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_42b,_42c,_42d){var _42e=dijit._Templated._templateCache;var key=_42c||_42b;var _42f=_42e[key];if(_42f){try{if(!_42f.ownerDocument||_42f.ownerDocument==dojo.doc){return _42f;}}catch(e){}dojo.destroy(_42f);}if(!_42c){_42c=dojo.cache(_42b,{sanitize:true});}_42c=dojo.string.trim(_42c);if(_42d||_42c.match(/\$\{([^\}]+)\}/g)){return (_42e[key]=_42c);}else{var node=dojo._toDom(_42c);if(node.nodeType!=1){throw new Error("Invalid template: "+_42c);}return (_42e[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _430=dijit._Templated._templateCache;for(var key in _430){var _431=_430[key];if(typeof _431=="object"){dojo.destroy(_431);}delete _430[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojox.image.SlideShow"]){dojo._hasResource["dojox.image.SlideShow"]=true;dojo.provide("dojox.image.SlideShow");dojo.declare("dojox.image.SlideShow",[dijit._Widget,dijit._Templated],{dynamicScale:false,minwidth:320,minheight:240,imageHeight:375,imageWidth:500,title:"",titleTemplate:"<span class=\"slideShowTitleString\">${title}</span>",counterTemplate:"<p class=\"slideShowCounterText\">${current}/${total}</p>",noLink:false,loop:true,hasNav:true,images:[],pageSize:20,autoLoad:true,autoStart:false,fixedHeight:false,imageStore:null,linkAttr:"link",imageLargeAttr:"imageUrl",titleAttr:"title",slideshowInterval:3,templateString:"<div dojoAttachPoint=\"outerNode\" class=\"slideShowWrapper\">\n\t<div style=\"position:relative;\" dojoAttachPoint=\"innerWrapper\">\n\t\t<div class=\"slideShowHeading\">\n\t\t<div class=\"slideShowNav\" dojoAttachEvent=\"onclick: _handleClick\"></div>\n\t\t<div class=\"slideShowTitle\" dojoAttachPoint=\"titleNode\"></div>\n\n\t\t</div>\n\t\t<div dojoAttachPoint=\"navNode\" class=\"slideShowCtrl\" dojoAttachEvent=\"onclick: _handleClick\">\n\t\t\t<span dojoAttachPoint=\"navPrev\" class=\"slideShowCtrlPrev\"></span>\n\t\t\t<span dojoAttachPoint=\"navPlay\" class=\"slideShowCtrlPlay\"></span>\n\t\t\t<span dojoAttachPoint=\"navNext\" class=\"slideShowCtrlNext\"></span>\n\t\t\t<div class=\"slideShowCounter\" dojoAttachPoint=\"counterNode\"></div>            \n\t\t</div>\n\n\t\t<div dojoAttachPoint=\"largeNode\" class=\"slideShowImageWrapper\"></div>\t\t\n\t\t<div dojoAttachPoint=\"hiddenNode\" class=\"slideShowHiddenImageNode\"></div>\n\t</div>\n</div>\n",_imageCounter:0,_tmpImage:null,_request:null,postCreate:function(){this.inherited(arguments);var img=document.createElement("img");img.setAttribute("width",this.imageWidth);img.setAttribute("height",this.imageHeight);if(this.hasNav){dojo.connect(this.outerNode,"onmouseover",this,function(evt){try{this._showNav();}catch(e){}});dojo.connect(this.outerNode,"onmouseout",this,function(evt){try{this._hideNav(evt);}catch(e){}});}var _432=this.imagewidth+"px";this.outerNode.style.width=(this.dynamicScale==1)?"100%":_432;if(this.dynamicScale==1){dojo.addClass(this.domNode,"isFullscreen");}img.setAttribute("src",this._blankGif);var _433=this;this.largeNode.appendChild(img);this._tmpImage=this._currentImage=img;this._fitSize(true);this._loadImage(0,dojo.hitch(this,"showImage",0));this._calcNavDimensions();},setDataStore:function(_434,_435,_436){this.reset();var _437=this;this._request={query:{},start:_435.start||0,count:_435.count||this.pageSize,onBegin:function(_438,_439){_437.maxPhotos=_438;}};if(_435.query){dojo.mixin(this._request.query,_435.query);}if(_436){dojo.forEach(["imageLargeAttr","linkAttr","titleAttr"],function(_43a){if(_436[_43a]){this[_43a]=_436[_43a];}},this);}var _43b=function(_43c){_437.maxPhotos=_43c.length;_437.showImage(0);_437._request.onComplete=null;if(_437.autoStart){_437.toggleSlideShow();}};this.imageStore=_434;this._request.onComplete=_43b;this._request.start=0;this.imageStore.fetch(this._request);},reset:function(){while(this.largeNode.firstChild){this.largeNode.removeChild(this.largeNode.firstChild);}this.largeNode.appendChild(this._tmpImage);while(this.hiddenNode.firstChild){this.hiddenNode.removeChild(this.hiddenNode.firstChild);}dojo.forEach(this.images,function(img){if(img&&img.parentNode){img.parentNode.removeChild(img);}});this.images=[];this.isInitialized=false;this._imageCounter=0;},isImageLoaded:function(_43d){return this.images&&this.images.length>_43d&&this.images[_43d];},moveImageLoadingPointer:function(_43e){this._imageCounter=_43e;},destroy:function(){if(this._slideId){this._stop();}this.inherited(arguments);},showNextImage:function(_43f,_440){if(_43f&&this._timerCancelled){return false;}if(this.imageIndex+1>=this.maxPhotos){if(_43f&&(this.loop||_440)){this.imageIndex=-1;}else{if(this._slideId){this._stop();}return false;}}this.showImage(this.imageIndex+1,dojo.hitch(this,function(){if(_43f){this._startTimer();}}));return true;},toggleSlideShow:function(){if(this._slideId){this._stop();}else{dojo.toggleClass(this.domNode,"slideShowPaused");this._timerCancelled=false;if(this.images[this.imageIndex]&&this.images[this.imageIndex]._img.complete){var _441=this.showNextImage(true,true);if(!_441){this._stop();}}else{var idx=this.imageIndex;var _442=dojo.subscribe(this.getShowTopicName(),dojo.hitch(this,function(info){setTimeout(dojo.hitch(this,function(){if(info.index==idx){var _443=this.showNextImage(true,true);if(!_443){this._stop();}dojo.unsubscribe(_442);}}),this.slideshowInterval*1000);}));dojo.publish(this.getShowTopicName(),[{index:idx,title:"",url:""}]);}}},getShowTopicName:function(){return (this.widgetId||this.id)+"/imageShow";},getLoadTopicName:function(){return (this.widgetId?this.widgetId:this.id)+"/imageLoad";},showImage:function(_444,_445){if(!_445&&this._slideId){this.toggleSlideShow();}var _446=this;var _447=this.largeNode.getElementsByTagName("div");this.imageIndex=_444;var _448=function(){if(_446.images[_444]){while(_446.largeNode.firstChild){_446.largeNode.removeChild(_446.largeNode.firstChild);}dojo.style(_446.images[_444],"opacity",0);_446.largeNode.appendChild(_446.images[_444]);_446._currentImage=_446.images[_444]._img;_446._fitSize();if(_446.dynamicScale){dojo.connect(window,"resize",function(){_446._dynamicScaleIt(_446._currentImage);});}var _449=function(a,b,c){var img=_446.images[_444].firstChild;if(img.tagName.toLowerCase()!="img"){img=img.firstChild;}var _44a=img.getAttribute("imagetitle")||"";if(_446._navShowing){_446._showNav(true);}dojo.publish(_446.getShowTopicName(),[{index:_444,title:_44a,url:img.getAttribute("src")}]);if(_445){_445(a,b,c);}_446._setTitle(_44a);};var _44b=function(){dojo.fadeIn({node:_446.images[_444],duration:1000,onEnd:_449}).play();};setTimeout(_44b,150);}else{_446._loadImage(_444,function(){dojo.publish(_446.getLoadTopicName(),[_444]);_446.showImage(_444,_445);});}};if(_447&&_447.length>0){dojo.fadeOut({node:_447[0],duration:600,onEnd:function(){_446.hiddenNode.appendChild(_447[0]);_448();}}).play();}else{_448();}},_fitSize:function(_44c){if(!this.fixedHeight||_44c){var _44d=(this._currentImage.height+(this.hasNav?0:0));dojo.style(this.innerWrapper,"height",_44d+"px");return;}dojo.style(this.largeNode,"paddingTop",this._getTopPadding()+"px");},_getTopPadding:function(){if(!this.fixedHeight){return 0;}return (this.imageHeight-this._currentImage.height)/2;},_loadNextImage:function(){if(!this.autoLoad){return;}while(this.images.length>=this._imageCounter&&this.images[this._imageCounter]){this._imageCounter++;}this._loadImage(this._imageCounter);},_loadImage:function(_44e,_44f){if(this.images[_44e]||!this._request){return;}var _450=_44e-(_44e%this.pageSize);this._request.start=_450;this._request.onComplete=function(_451){var diff=_44e-_450;if(_451&&_451.length>diff){_452(_451[diff]);}else{}};var _453=this;var _452=function(item){var url=_453.imageStore.getValue(item,_453.imageLargeAttr);var img=new Image();var div=document.createElement("div");div._img=img;var link=_453.imageStore.getValue(item,_453.linkAttr);if(!link||_453.noLink){div.appendChild(img);}else{var a=document.createElement("a");a.setAttribute("href",link);a.setAttribute("target","_blank");div.appendChild(a);a.appendChild(img);}div.setAttribute("id",_453.id+"_imageDiv"+_44e);dojo.connect(img,"onload",function(){if(_453.dynamicScale===true){_453._dynamicScaleIt(img);}else{_453._fitImage(img);}if(_453.dynamicScale===true){div.setAttribute("width","100%");div.setAttribute("height","100%");}else{div.setAttribute("width",_453.imageWidth);div.setAttribute("height",_453.imageHeight);}dojo.publish(_453.getLoadTopicName(),[_44e]);setTimeout(_453._loadNextImage,1);if(_44f){_44f();}});_453.hiddenNode.appendChild(div);var _454=document.createElement("div");dojo.addClass(_454,"slideShowTitle");div.appendChild(_454);_453.images[_44e]=div;img.setAttribute("src",url);var _455=_453.imageStore.getValue(item,_453.titleAttr);if(_455){img.setAttribute("imagetitle",_455);}};this.imageStore.fetch(this._request);},_stop:function(){if(this._slideId){clearTimeout(this._slideId);}this._slideId=null;this._timerCancelled=true;dojo.removeClass(this.domNode,"slideShowPaused");},_prev:function(){if(this.imageIndex<1){return;}this.showImage(this.imageIndex-1);},_next:function(){this.showNextImage();},_startTimer:function(){var id=this.id;this._slideId=setTimeout(function(){dijit.byId(id).showNextImage(true);},this.slideshowInterval*1000);},_calcNavDimensions:function(){dojo.style(this.navNode,"position","absolute");dojo.style(this.navNode,"top","-10000px");dojo._setOpacity(this.navNode,99);this.navPlay._size=dojo.marginBox(this.navPlay);this.navPrev._size=dojo.marginBox(this.navPrev);this.navNext._size=dojo.marginBox(this.navNext);dojo._setOpacity(this.navNode,1);dojo.style(this.navNode,"position","");dojo.style(this.navNode,"top","");},_setTitle:function(_456){this.titleNode.innerHTML=dojo.string.substitute(this.titleTemplate,{title:_456});this.counterNode.innerHTML=dojo.string.substitute(this.counterTemplate,{current:1+this.imageIndex,total:this.maxPhotos||""});},_fitImage:function(img){var _457=img.width;var _458=img.height;if((_457>this.imageWidth)||(_458>this.imageHeight)){var _459=this.imageWidth/_457;var _45a=this.imageHeight/_458;var _45b=Math.min(_459,_45a);img.setAttribute("height",Math.floor(_458*_45b));img.setAttribute("width",Math.floor(_457*_45b));}},_dynamicScaleIt:function(img){var _45c=dojo.doc.documentElement.offsetWidth;var _45d=dojo.doc.documentElement.offsetHeight;var _45e=img.width;var _45f=img.height;var _460=_45e/_45f;this.domNode.style.width=dojo.doc.documentElement.offsetWidth+"px";this.domNode.style.height=dojo.doc.documentElement.offsetHeight+"px";if((_45d<this.minheight)&&(_45c<this.minwidth)){img.setAttribute("height",this.minheight);img.setAttribute("width",this.minwidth);}else{if(_460<_45c/_45d){dojo.attr(img,"width",_45c);var newH=Math.ceil(_45c/_460);dojo.attr(img,"height",newH);img.style.marginTop=(_45d-newH)/2+"px";img.style.marginLeft=0;}else{dojo.attr(img,"height",_45d);var newW=Math.ceil(_45d*_460);dojo.attr(img,"width",newW);img.style.marginLeft=(_45c-newW)/2+"px";img.style.marginTop=0;}}},_handleClick:function(e){switch(e.target){case this.navNext:this._next();break;case this.navPrev:this._prev();break;case this.navPlay:this.toggleSlideShow();break;}},_showNav:function(_461){if(this._navShowing&&!_461){return;}dojo.style(this.navNode,"marginTop","0");dojo.style(this.navPlay,"marginLeft","0");var _462=dojo.marginBox(this.outerNode);var _463=this._currentImage.height-this.navPlay._size.h-10+this._getTopPadding();if(_463>this._currentImage.height){_463+=10;}dojo[this.imageIndex<1?"addClass":"removeClass"](this.navPrev,"slideShowCtrlHide");dojo[this.imageIndex+1>=this.maxPhotos?"addClass":"removeClass"](this.navNext,"slideShowCtrlHide");var _464=this;if(this._navAnim){this._navAnim.stop();}if(this._navShowing){return;}this._navAnim=dojo.animateProperty({node:this.navNode,duration:500,properties:{opacity:{end:1}}});this._navAnim.play();this._navShowing=true;},_hideNav:function(e){if(!e||!this._overElement(this.outerNode,e)){var _465=this;if(this._navAnim){this._navAnim.stop();}this._navAnim=dojo.animateProperty({node:this.navNode,duration:500,properties:{opacity:{end:0}},onEnd:function(){_465._navAnim=null;}});this._navAnim.play();this._navShowing=false;}},_overElement:function(_466,e){if(typeof (dojo)=="undefined"){return false;}_466=dojo.byId(_466);var m={x:e.pageX,y:e.pageY};var bb=dojo._getBorderBox(_466);var absl=dojo.coords(_466,true);var left=absl.x;return (m.x>=left&&m.x<=(left+bb.w)&&m.y>=absl.y&&m.y<=(top+bb.h));}});}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);dojo.data.util.filter.patternToRegExp=function(_467,_468){var rxp="^";var c=null;for(var i=0;i<_467.length;i++){c=_467.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_467.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_468){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_469,_46a){var _46b=[];function _46c(attr,dir,comp,s){return function(_46d,_46e){var a=s.getValue(_46d,attr);var b=s.getValue(_46e,attr);return dir*comp(a,b);};};var _46f;var map=_46a.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_469.length;i++){_46f=_469[i];var attr=_46f.attribute;if(attr){var dir=(_46f.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_46b.push(_46c(attr,dir,comp,_46a));}}return function(rowA,rowB){var i=0;while(i<_46b.length){var ret=_46b[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.getObject("data.util.simpleFetch",true,dojo);dojo.data.util.simpleFetch.fetch=function(_470){_470=_470||{};if(!_470.store){_470.store=this;}var self=this;var _471=function(_472,_473){if(_473.onError){var _474=_473.scope||dojo.global;_473.onError.call(_474,_472,_473);}};var _475=function(_476,_477){var _478=_477.abort||null;var _479=false;var _47a=_477.start?_477.start:0;var _47b=(_477.count&&(_477.count!==Infinity))?(_47a+_477.count):_476.length;_477.abort=function(){_479=true;if(_478){_478.call(_477);}};var _47c=_477.scope||dojo.global;if(!_477.store){_477.store=self;}if(_477.onBegin){_477.onBegin.call(_47c,_476.length,_477);}if(_477.sort){_476.sort(dojo.data.util.sorter.createSortFunction(_477.sort,self));}if(_477.onItem){for(var i=_47a;(i<_476.length)&&(i<_47b);++i){var item=_476[i];if(!_479){_477.onItem.call(_47c,item,_477);}}}if(_477.onComplete&&!_479){var _47d=null;if(!_477.onItem){_47d=_476.slice(_47a,_47b);}_477.onComplete.call(_47c,_47d,_477);}};this._fetchItems(_470,_475,_471);return _470;};}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_47e){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_47e.url;this._ccUrl=_47e.url;this.url=_47e.url;this._jsonData=_47e.data;this.data=null;this._datatypeMap=_47e.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_47f){return dojo.date.stamp.fromISOString(_47f);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_47e.urlPreventCache!==undefined){this.urlPreventCache=_47e.urlPreventCache?true:false;}if(_47e.hierarchical!==undefined){this.hierarchical=_47e.hierarchical?true:false;}if(_47e.clearOnClose){this.clearOnClose=true;}if("failOk" in _47e){this.failOk=_47e.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_480){if(typeof _480!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_481,_482){var _483=this.getValues(item,_481);return (_483.length>0)?_483[0]:_482;},getValues:function(item,_484){this._assertIsItem(item);this._assertIsAttribute(_484);return (item[_484]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _485=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_485.push(key);}}return _485;},hasAttribute:function(item,_486){this._assertIsItem(item);this._assertIsAttribute(_486);return (_486 in item);},containsValue:function(item,_487,_488){var _489=undefined;if(typeof _488==="string"){_489=dojo.data.util.filter.patternToRegExp(_488,false);}return this._containsValue(item,_487,_488,_489);},_containsValue:function(item,_48a,_48b,_48c){return dojo.some(this.getValues(item,_48a),function(_48d){if(_48d!==null&&!dojo.isObject(_48d)&&_48c){if(_48d.toString().match(_48c)){return true;}}else{if(_48b===_48d){return true;}}});},isItem:function(_48e){if(_48e&&_48e[this._storeRefPropName]===this){if(this._arrayOfAllItems[_48e[this._itemNumPropName]]===_48e){return true;}}return false;},isItemLoaded:function(_48f){return this.isItem(_48f);},loadItem:function(_490){this._assertIsItem(_490.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_491,_492,_493){var self=this,_494=function(_495,_496){var _497=[],i,key;if(_495.query){var _498,_499=_495.queryOptions?_495.queryOptions.ignoreCase:false;var _49a={};for(key in _495.query){_498=_495.query[key];if(typeof _498==="string"){_49a[key]=dojo.data.util.filter.patternToRegExp(_498,_499);}else{if(_498 instanceof RegExp){_49a[key]=_498;}}}for(i=0;i<_496.length;++i){var _49b=true;var _49c=_496[i];if(_49c===null){_49b=false;}else{for(key in _495.query){_498=_495.query[key];if(!self._containsValue(_49c,key,_498,_49a[key])){_49b=false;}}}if(_49b){_497.push(_49c);}}_492(_497,_495);}else{for(i=0;i<_496.length;++i){var item=_496[i];if(item!==null){_497.push(item);}}_492(_497,_495);}};if(this._loadFinished){_494(_491,this._getItemsArray(_491.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_491,filter:_494});}else{this._loadInProgress=true;var _49d={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _49e=dojo.xhrGet(_49d);_49e.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_494(_491,self._getItemsArray(_491.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_493(e,_491);}});_49e.addErrback(function(_49f){self._loadInProgress=false;_493(_49f,_491);});var _4a0=null;if(_491.abort){_4a0=_491.abort;}_491.abort=function(){var df=_49e;if(df&&df.fired===-1){df.cancel();df=null;}if(_4a0){_4a0.call(_491);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_494(_491,this._getItemsArray(_491.queryOptions));}catch(e){_493(e,_491);}}else{_493(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_491);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _4a1=this._queuedFetches[i],_4a2=_4a1.args,_4a3=_4a1.filter;if(_4a3){_4a3(_4a2,this._getItemsArray(_4a2.queryOptions));}else{this.fetchItemByIdentity(_4a2);}}this._queuedFetches=[];}},_getItemsArray:function(_4a4){if(_4a4&&_4a4.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_4a5){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_4a6){var _4a7=false,self=this;function _4a8(_4a9){var _4aa=((_4a9!==null)&&(typeof _4a9==="object")&&(!dojo.isArray(_4a9)||_4a7)&&(!dojo.isFunction(_4a9))&&(_4a9.constructor==Object||dojo.isArray(_4a9))&&(typeof _4a9._reference==="undefined")&&(typeof _4a9._type==="undefined")&&(typeof _4a9._value==="undefined")&&self.hierarchical);return _4aa;};function _4ab(_4ac){self._arrayOfAllItems.push(_4ac);for(var _4ad in _4ac){var _4ae=_4ac[_4ad];if(_4ae){if(dojo.isArray(_4ae)){var _4af=_4ae;for(var k=0;k<_4af.length;++k){var _4b0=_4af[k];if(_4a8(_4b0)){_4ab(_4b0);}}}else{if(_4a8(_4ae)){_4ab(_4ae);}}}}};this._labelAttr=_4a6.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_4a6.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_4a7=true;}_4ab(item);item[this._rootItemPropName]=true;}var _4b1={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _4b2=item[key];if(_4b2!==null){if(!dojo.isArray(_4b2)){item[key]=[_4b2];}}else{item[key]=[null];}}_4b1[key]=key;}}while(_4b1[this._storeRefPropName]){this._storeRefPropName+="_";}while(_4b1[this._itemNumPropName]){this._itemNumPropName+="_";}while(_4b1[this._reverseRefMap]){this._reverseRefMap+="_";}var _4b3;var _4b4=_4a6.identifier;if(_4b4){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_4b4;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_4b3=item[_4b4];var _4b5=_4b3[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_4b5)){this._itemsByIdentity[_4b5]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_4b4+"].  Value collided: ["+_4b5+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_4b4+"].  Value collided: ["+_4b5+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_4b3=item[key];for(var j=0;j<_4b3.length;++j){_4b2=_4b3[j];if(_4b2!==null&&typeof _4b2=="object"){if(("_type" in _4b2)&&("_value" in _4b2)){var type=_4b2._type;var _4b6=this._datatypeMap[type];if(!_4b6){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_4b6)){_4b3[j]=new _4b6(_4b2._value);}else{if(dojo.isFunction(_4b6.deserialize)){_4b3[j]=_4b6.deserialize(_4b2._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_4b2._reference){var _4b7=_4b2._reference;if(!dojo.isObject(_4b7)){_4b3[j]=this._getItemByIdentity(_4b7);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _4b8=this._arrayOfAllItems[k],_4b9=true;for(var _4ba in _4b7){if(_4b8[_4ba]!=_4b7[_4ba]){_4b9=false;}}if(_4b9){_4b3[j]=_4b8;}}}if(this.referenceIntegrity){var _4bb=_4b3[j];if(this.isItem(_4bb)){this._addReferenceToMap(_4bb,item,key);}}}else{if(this.isItem(_4b2)){if(this.referenceIntegrity){this._addReferenceToMap(_4b2,item,key);}}}}}}}},_addReferenceToMap:function(_4bc,_4bd,_4be){},getIdentity:function(item){var _4bf=this._features["dojo.data.api.Identity"];if(_4bf===Number){return item[this._itemNumPropName];}else{var _4c0=item[_4bf];if(_4c0){return _4c0[0];}}return null;},fetchItemByIdentity:function(_4c1){var item,_4c2;if(!this._loadFinished){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_4c1});}else{this._loadInProgress=true;var _4c3={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _4c4=dojo.xhrGet(_4c3);_4c4.addCallback(function(data){var _4c5=_4c1.scope?_4c1.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_4c1.identity);if(_4c1.onItem){_4c1.onItem.call(_4c5,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_4c1.onError){_4c1.onError.call(_4c5,error);}}});_4c4.addErrback(function(_4c6){self._loadInProgress=false;if(_4c1.onError){var _4c7=_4c1.scope?_4c1.scope:dojo.global;_4c1.onError.call(_4c7,_4c6);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_4c1.identity);if(_4c1.onItem){_4c2=_4c1.scope?_4c1.scope:dojo.global;_4c1.onItem.call(_4c2,item);}}}}else{item=this._getItemByIdentity(_4c1.identity);if(_4c1.onItem){_4c2=_4c1.scope?_4c1.scope:dojo.global;_4c1.onItem.call(_4c2,item);}}},_getItemByIdentity:function(_4c8){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_4c8)){item=this._itemsByIdentity[_4c8];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_4c8)){item=this._arrayOfAllItems[_4c8];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _4c9=this._features["dojo.data.api.Identity"];if(_4c9===Number){return null;}else{return [_4c9];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _4ca={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _4cb=dojo.xhrGet(_4ca);_4cb.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){console.log(e);throw e;}});_4cb.addErrback(function(_4cc){throw _4cc;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["gluecklich.StandardPage"]){dojo._hasResource["gluecklich.StandardPage"]=true;dojo.provide("gluecklich.StandardPage");dojo.declare("gluecklich.StandardPage",null,{constructor:function(){},init:function(){dojo.xhrGet({url:this.config.i18nGeneralDataFile,handleAs:"json"}).then(dojo.hitch(this,"_setupMenu"));},_setupMenu:function(_4cd){nls.regCatId("i18n_products",_4cd.i18n_products);nls.regCatId("i18n_contact",_4cd.i18n_contact);nls.regCatId("i18n_shops",_4cd.i18n_shops);nls.regCatId("i18n_friends",_4cd.i18n_friends);nls.regCatId("i18n_facebooklink",_4cd.i18n_facebooklink);},setupSlideShow:function(){var _4ce=new dojo.data.ItemFileReadStore({url:this.config.slideshowFileStore});var _4cf=new dojox.image.SlideShow({slideShowInterval:10,loop:true,autoLoad:true,id:"defaultslideshow",autoStart:false,noLink:true,dynamicScale:true,titleSettable:false,minwidth:830,minheight:590}).placeAt(dojo.body());dojo.style(dijit.byId("defaultslideshow").domNode,{"position":"absolute","left":"0px","top":"0px","width":"100%","height":"100%","text-align":"left","margin":"0px","padding":"0px","z-index":"0","border":"none","overflow":"hidden"});_4cf.setDataStore(_4ce,{query:{},count:this.config.slideShowImageCount},{imageLargeAttr:"large"});},setupNls:function(){dojo.query(".langMenuHolder .langMenuItem").forEach(function(node){dojo.connect(node,"onclick",this,"activateLanguage");},this);},activateLanguage:function(_4d0){nls.setLang(_4d0.target.id);dojo.query(".langMenuHolder .langMenuItem").forEach(function(node){if(node.id===_4d0.target.id){dojo.addClass(node,"active");}else{dojo.removeClass(node,"active");}});}});}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(_4d1,_4d2){var _4d3=this.containerNode;if(_4d2&&typeof _4d2=="number"){var _4d4=this.getChildren();if(_4d4&&_4d4.length>=_4d2){_4d3=_4d4[_4d2-1].domNode;_4d2="after";}}dojo.place(_4d1.domNode,_4d3,_4d2);if(this._started&&!_4d1._started){_4d1.startup();}},removeChild:function(_4d5){if(typeof _4d5=="number"){_4d5=this.getChildren()[_4d5];}if(_4d5){var node=_4d5.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_4d6){dojo.forEach(this.getChildren(),function(_4d7){_4d7.destroyRecursive(_4d6);});},_getSiblingOfChild:function(_4d8,dir){var node=_4d8.domNode,_4d9=(dir>0?"nextSibling":"previousSibling");do{node=node[_4d9];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_4da){return dojo.indexOf(this.getChildren(),_4da);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_4db){_4db.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 _4dc=dijit.getEnclosingWidget(this.domNode.parentNode);return _4dc&&_4dc.isContainer?_4dc:null;},_getSibling:function(_4dd){var node=this.domNode;do{node=node[_4dd+"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,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _4de=this.getParent&&this.getParent();if(!(_4de&&_4de.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_4df,_4e0){var node=this.domNode;if(_4df){dojo.marginBox(node,_4df);if(_4df.t){node.style.top=_4df.t+"px";}if(_4df.l){node.style.left=_4df.l+"px";}}var mb=_4e0||{};dojo.mixin(mb,_4df||{});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(_4e1){var cls=this.baseClass+"-child "+(_4e1.baseClass?this.baseClass+"-"+_4e1.baseClass:"");dojo.addClass(_4e1.domNode,cls);},addChild:function(_4e2,_4e3){this.inherited(arguments);if(this._started){this._setupChild(_4e2);}},removeChild:function(_4e4){var cls=this.baseClass+"-child"+(_4e4.baseClass?" "+this.baseClass+"-"+_4e4.baseClass:"");dojo.removeClass(_4e4.domNode,cls);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 _4e5=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_4e6,dim){var _4e7=_4e6.resize?_4e6.resize(dim):dojo.marginBox(_4e6.domNode,dim);if(_4e7){dojo.mixin(_4e6,_4e7);}else{dojo.mixin(_4e6,dojo.marginBox(_4e6.domNode));dojo.mixin(_4e6,dim);}};dijit.layout.layoutChildren=function(_4e8,dim,_4e9,_4ea,_4eb){dim=dojo.mixin({},dim);dojo.addClass(_4e8,"dijitLayoutContainer");_4e9=dojo.filter(_4e9,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_4e9,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_4e9,function(_4ec){var elm=_4ec.domNode,pos=(_4ec.region||_4ec.layoutAlign);var _4ed=elm.style;_4ed.left=dim.l+"px";_4ed.top=dim.t+"px";_4ed.position="absolute";dojo.addClass(elm,"dijitAlign"+_4e5(pos));var _4ee={};if(_4ea&&_4ea==_4ec.id){_4ee[_4ec.region=="top"||_4ec.region=="bottom"?"h":"w"]=_4eb;}if(pos=="top"||pos=="bottom"){_4ee.w=dim.w;size(_4ec,_4ee);dim.h-=_4ec.h;if(pos=="top"){dim.t+=_4ec.h;}else{_4ed.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_4ee.h=dim.h;size(_4ec,_4ee);dim.w-=_4ec.w;if(pos=="left"){dim.l+=_4ec.w;}else{_4ed.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_4ec,dim);}}}});};})();}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_4ef){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_4ef&&_4ef.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_4f0){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("|"),_4f0);};dojo.regexp.group=function(_4f1,_4f2){return "("+(_4f2?"?:":"")+_4f1+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_4f3,_4f4){var c=document.cookie;if(arguments.length==1){var _4f5=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _4f5?decodeURIComponent(_4f5[1]):undefined;}else{_4f4=_4f4||{};var exp=_4f4.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_4f4.expires=d;}if(exp&&exp.toUTCString){_4f4.expires=exp.toUTCString();}_4f3=encodeURIComponent(_4f3);var _4f6=name+"="+_4f3,_4f7;for(_4f7 in _4f4){_4f6+="; "+_4f7;var _4f8=_4f4[_4f7];if(_4f8!==true){_4f6+="="+_4f8;}}document.cookie=_4f6;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.layout.BorderContainer"]){dojo._hasResource["dijit.layout.BorderContainer"]=true;dojo.provide("dijit.layout.BorderContainer");dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){if(!this.gutters){this.baseClass+="NoGutter";}this.inherited(arguments);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_4f9){var _4fa=_4f9.region;if(_4fa){this.inherited(arguments);dojo.addClass(_4f9.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_4fa=="leading"){_4fa=ltr?"left":"right";}if(_4fa=="trailing"){_4fa=ltr?"right":"left";}if(_4fa!="center"&&(_4f9.splitter||this.gutters)&&!_4f9._splitterWidget){var _4fb=dojo.getObject(_4f9.splitter?this._splitterClass:"dijit.layout._Gutter");var _4fc=new _4fb({id:_4f9.id+"_splitter",container:this,child:_4f9,region:_4fa,live:this.liveSplitters});_4fc.isSplitter=true;_4f9._splitterWidget=_4fc;dojo.place(_4fc.domNode,_4f9.domNode,"after");_4fc.startup();}_4f9.region=_4fa;}},layout:function(){this._layoutChildren();},addChild:function(_4fd,_4fe){this.inherited(arguments);if(this._started){this.layout();}},removeChild:function(_4ff){var _500=_4ff.region;var _501=_4ff._splitterWidget;if(_501){_501.destroy();delete _4ff._splitterWidget;}this.inherited(arguments);if(this._started){this._layoutChildren();}dojo.removeClass(_4ff.domNode,this.baseClass+"Pane");dojo.style(_4ff.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});dojo.style(_4ff.domNode,_500=="top"||_500=="bottom"?"width":"height","auto");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_502){return !_502.isSplitter;});},getSplitter:function(_503){return dojo.filter(this.getChildren(),function(_504){return _504.region==_503;})[0]._splitterWidget;},resize:function(_505,_506){if(!this.cs||!this.pe){var node=this.domNode;this.cs=dojo.getComputedStyle(node);this.pe=dojo._getPadExtents(node,this.cs);this.pe.r=dojo._toPixelValue(node,this.cs.paddingRight);this.pe.b=dojo._toPixelValue(node,this.cs.paddingBottom);dojo.style(node,"padding","0px");}this.inherited(arguments);},_layoutChildren:function(_507,_508){if(!this._borderBox||!this._borderBox.h){return;}var _509=dojo.map(this.getChildren(),function(_50a,idx){return {pane:_50a,weight:[_50a.region=="center"?Infinity:0,_50a.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(_50a.region)?1:-1),idx]};},this);_509.sort(function(a,b){var aw=a.weight,bw=b.weight;for(var i=0;i<aw.length;i++){if(aw[i]!=bw[i]){return aw[i]-bw[i];}}return 0;});var _50b=[];dojo.forEach(_509,function(_50c){var pane=_50c.pane;_50b.push(pane);if(pane._splitterWidget){_50b.push(pane._splitterWidget);}});var dim={l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h};dijit.layout.layoutChildren(this.domNode,dim,_50b,_507,_508);},destroyRecursive:function(){dojo.forEach(this.getChildren(),function(_50d){var _50e=_50d._splitterWidget;if(_50e){_50e.destroy();}delete _50d._splitterWidget;});this.inherited(arguments);}});dojo.extend(dijit._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});dojo.declare("dijit.layout._Splitter",[dijit._Widget,dijit._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse\" tabIndex=\"0\" role=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region;},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var _50f=dojo.cookie(this._cookieName);if(_50f){this.child.domNode.style[this.horizontal?"height":"width"]=_50f;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_510=dojo.marginBox(this.child.domNode)[dim],_511=dojo.filter(this.container.getChildren(),function(_512){return _512.region=="center";})[0],_513=dojo.marginBox(_511.domNode)[dim];return Math.min(this.child.maxSize,_510+_513);},_startDrag:function(e){if(!this.cover){this.cover=dojo.doc.createElement("div");dojo.addClass(this.cover,"dijitSplitterCover");dojo.place(this.cover,this.child.domNode,"after");}dojo.addClass(this.cover,"dijitSplitterCoverActive");if(this.fake){dojo.destroy(this.fake);}if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");dojo.addClass(this.domNode,"dijitSplitterShadow");dojo.place(this.fake,this.domNode,"after");}dojo.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake){dojo.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");}var _514=this._factor,_515=this.horizontal,axis=_515?"pageY":"pageX",_516=e[axis],_517=this.domNode.style,dim=_515?"h":"w",_518=dojo.marginBox(this.child.domNode)[dim],max=this._computeMaxSize(),min=this.child.minSize||20,_519=this.region,_51a=_519=="top"||_519=="bottom"?"top":"left",_51b=parseInt(_517[_51a],10),_51c=this._resize,_51d=dojo.hitch(this.container,"_layoutChildren",this.child.id),de=dojo.doc;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_51e){var _51f=e[axis]-_516,_520=_514*_51f+_518,_521=Math.max(Math.min(_520,max),min);if(_51c||_51e){_51d(_521);}_517[_51a]=_51f+_51b+_514*(_521-_520)+"px";}),dojo.connect(de,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent),dojo.connect(de,"onmouseup",this,"_stopDrag")]);dojo.stopEvent(e);},_onMouse:function(e){var o=(e.type=="mouseover"||e.type=="mouseenter");dojo.toggleClass(this.domNode,"dijitSplitterHover",o);dojo.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",o);},_stopDrag:function(e){try{if(this.cover){dojo.removeClass(this.cover,"dijitSplitterCoverActive");}if(this.fake){dojo.destroy(this.fake);}dojo.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow");this._drag(e);this._drag(e,true);}finally{this._cleanupHandlers();delete this._drag;}if(this.container.persist){dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});}},_cleanupHandlers:function(){dojo.forEach(this._handlers,dojo.disconnect);delete this._handlers;},_onKeyPress:function(e){this._resize=true;var _522=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _522?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _522?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _523=dojo._getMarginSize(this.child.domNode)[_522?"h":"w"]+this._factor*tick;this.container._layoutChildren(this.child.id,Math.max(Math.min(_523,this._computeMaxSize()),this.child.minSize));dojo.stopEvent(e);},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments);}});dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" role=\"presentation\"></div>",postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_524){_524.startup();_524._started=true;});},startup:function(){if(this._started){return;}var _525=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_525&&_525.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _526=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_527=_526.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_528=dojo.filter(_527.map(dijit.byNode),function(_529){return _529&&_529.domNode&&_529.resize;});if(_526.length==_527.length&&_528.length==1){this._singleChild=_528[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_52a,_52b){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_52a,_52b);},_scheduleLayout:function(_52c,_52d){if(this._isShown()){this._layout(_52c,_52d);}else{this._needLayout=true;this._changeSize=_52c;this._resultSize=_52d;}},_layout:function(_52e,_52f){if(_52e){dojo.marginBox(this.domNode,_52e);}var cn=this.containerNode;if(cn===this.domNode){var mb=_52f||{};dojo.mixin(mb,_52e||{});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();delete this._needLayout;},_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(_530){if(_530.resize){_530.resize();}});}},_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,_531=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_531&&_531.style&&(_531.style.display!="none");}}},_onShow:function(){if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);this._wasShown=true;}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _532=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 _533=cont.length,i=0;i<cont.length;i=_533==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,parserScope:dojo._scopeName,startup:true,constructor:function(_534,node){dojo.mixin(this,_534||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_532++].join("_");}},set:function(cont,_535){if(undefined!==cont){this.content=cont;}if(_535){this._mixin(_535);}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 _536=this.onContentError(e);try{node.innerHTML=_536;}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 _537=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_537){cont=_537[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(_538){var _539={},key;for(key in _538){if(key in _539){continue;}this[key]=_538[key];}},_parse:function(){var _53a=this.node;try{var _53b={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_53b[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_53a,noStart:!this.startup,inherited:_53b,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_53c){var _53d=this["on"+type+"Error"].call(this,err);if(_53c){console.error(_53c,err);}else{if(_53d){dojo.html._setNodeContent(this.node,_53d,true);}}}});dojo.html.set=function(node,cont,_53e){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_53e){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_53e,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_53f,_540,_541){_541=dojo.i18n.normalizeLocale(_541);var _542=_541.split("-");var _543=[_53f,"nls",_540].join(".");var _544=dojo._loadedModules[_543];if(_544){var _545;for(var i=_542.length;i>0;i--){var loc=_542.slice(0,i).join("_");if(_544[loc]){_545=_544[loc];break;}}if(!_545){_545=_544.ROOT;}if(_545){var _546=function(){};_546.prototype=_545;return new _546();}}throw new Error("Bundle not found: "+_540+" in "+_53f+" , locale="+_541);};dojo.i18n.normalizeLocale=function(_547){var _548=_547?_547.toLowerCase():dojo.locale;if(_548=="root"){_548="ROOT";}return _548;};dojo.i18n._requireLocalization=function(_549,_54a,_54b,_54c){var _54d=dojo.i18n.normalizeLocale(_54b);var _54e=[_549,"nls",_54a].join(".");var _54f="";if(_54c){var _550=_54c.split(",");for(var i=0;i<_550.length;i++){if(_54d["indexOf"](_550[i])==0){if(_550[i].length>_54f.length){_54f=_550[i];}}}if(!_54f){_54f="ROOT";}}var _551=_54c?_54f:_54d;var _552=dojo._loadedModules[_54e];var _553=null;if(_552){if(dojo.config.localizationComplete&&_552._built){return;}var _554=_551.replace(/-/g,"_");var _555=_54e+"."+_554;_553=dojo._loadedModules[_555];}if(!_553){_552=dojo["provide"](_54e);var syms=dojo._getModuleSymbols(_549);var _556=syms.concat("nls").join("/");var _557;dojo.i18n._searchLocalePath(_551,_54c,function(loc){var _558=loc.replace(/-/g,"_");var _559=_54e+"."+_558;var _55a=false;if(!dojo._loadedModules[_559]){dojo["provide"](_559);var _55b=[_556];if(loc!="ROOT"){_55b.push(loc);}_55b.push(_54a);var _55c=_55b.join("/")+".js";_55a=dojo._loadPath(_55c,null,function(hash){hash=hash.root||hash;var _55d=function(){};_55d.prototype=_557;_552[_558]=new _55d();for(var j in hash){_552[_558][j]=hash[j];}});}else{_55a=true;}if(_55a&&_552[_558]){_557=_552[_558];}else{_552[_558]=_557;}if(_54c){return true;}});}if(_54c&&_54d!=_54f){_552[_54d.replace(/-/g,"_")]=_552[_54f.replace(/-/g,"_")];}};(function(){var _55e=dojo.config.extraLocale;if(_55e){if(!_55e instanceof Array){_55e=[_55e];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_55f,_560){req(m,b,_55f,_560);if(_55f){return;}for(var i=0;i<_55e.length;i++){req(m,b,_55e[i],_560);}};}})();dojo.i18n._searchLocalePath=function(_561,down,_562){_561=dojo.i18n.normalizeLocale(_561);var _563=_561.split("-");var _564=[];for(var i=_563.length;i>0;i--){_564.push(_563.slice(0,i).join("-"));}_564.push(false);if(down){_564.reverse();}for(var j=_564.length-1;j>=0;j--){var loc=_564[j]||"ROOT";var stop=_562(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_565,_566){function _567(_568){_568=dojo.i18n.normalizeLocale(_568);dojo.i18n._searchLocalePath(_568,true,function(loc){for(var i=0;i<_566.length;i++){if(_566[i]==loc){dojo["require"](_565+"_"+loc);return true;}}return false;});};_567();var _569=dojo.config.extraLocale||[];for(var i=0;i<_569.length;i++){_567(_569[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,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_56a,_56b){if((!_56a||!_56a.template)&&_56b&&!("href" in _56a)&&!("content" in _56a)){var df=dojo.doc.createDocumentFragment();_56b=dojo.byId(_56b);while(_56b.firstChild){df.appendChild(_56b.firstChild);}_56a=dojo.delegate(_56a,{content:df});}this.inherited(arguments,[_56a,_56b]);},postMixInProperties:function(){this.inherited(arguments);var _56c=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_56c);this.errorMessage=dojo.string.substitute(this.errorMessage,_56c);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){dojo.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},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.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&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._set("href","");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));}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(_56d){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _56e={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_56e,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_56e));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._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("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 _56f=this._contentSetter;dojo.forEach(this.getChildren(),function(_570){if(_570.destroyRecursive){_570.destroyRecursive();}});if(_56f){dojo.forEach(_56f.parseResults,function(_571){if(_571.destroyRecursive&&_571.domNode&&_571.domNode.parentNode==dojo.body()){_571.destroyRecursive();}});delete _56f.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_572){this.destroyDescendants();var _573=this._contentSetter;if(!(_573&&_573 instanceof dojo.html._ContentSetter)){_573=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _574=this.onContentError(e);try{this.containerNode.innerHTML=_574;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _575=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_573.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_575);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_572){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_576){this.onLoadDeferred.errback(err);var _577=this["on"+type+"Error"].call(this,err);if(_576){console.error(_576,err);}else{if(_577){this._setContent(_577,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_578){},onDownloadError:function(_579){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dojox.html._base"]){dojo._hasResource["dojox.html._base"]=true;dojo.provide("dojox.html._base");(function(){if(dojo.isIE){var _57a=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _57b=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _57c=dojox.html._adjustCssPaths=function(_57d,_57e){if(!_57e||!_57d){return;}if(_57a){_57e=_57e.replace(_57a,function(_57f,pre,_580,url,post){return pre+(new dojo._Url(_57d,"./"+url).toString())+post;});}return _57e.replace(_57b,function(_581,_582,_583,_584,_585,_586){if(_583){return "@import \""+(new dojo._Url(_57d,"./"+_583).toString())+"\""+_586;}else{return "url("+(new dojo._Url(_57d,"./"+_585).toString())+")"+_586;}});};var _587=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _588=dojox.html._adjustHtmlPaths=function(_589,cont){var url=_589||"./";return cont.replace(_587,function(tag,_58a,name,_58b,_58c,_58d,_58e,end){return _58a+(name?(name+"="+_58b+(new dojo._Url(url,_58c).toString())+_58b):("style="+_58d+_57c(url,_58e)+_58d))+end;});};var _58f=dojox.html._snarfStyles=function(_590,cont,_591){_591.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_592,_593,_594,_595,_596,href){var i,attr=(_593||_595||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_594){i=_591.push(_590?_57c(_590,_594):_594);}else{i=_591.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _597={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_597[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_591.attributes[i-1]=_597;}return "";});};var _598=dojox.html._snarfScripts=function(cont,_599){_599.code="";cont=cont.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(_59a){return _59a.replace(/<(\/?)script\b/ig,"&lt;$1Script");});function _59b(src){if(_599.downloadRemote){src=src.replace(/&([a-z0-9#]+);/g,function(m,name){switch(name){case "amp":return "&";case "gt":return ">";case "lt":return "<";default:return name.charAt(0)=="#"?String.fromCharCode(name.substring(1)):"&"+name+";";}});dojo.xhrGet({url:src,sync:true,load:function(code){_599.code+=code+";";},error:_599.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_59c,_59d,src,code){if(src){_59b(src);}else{_599.code+=code;}return "";});};var _59e=dojox.html.evalInGlobal=function(code,_59f){_59f=_59f||dojo.doc.body;var n=_59f.ownerDocument.createElement("script");n.type="text/javascript";_59f.appendChild(n);n.text=code;};dojo.declare("dojox.html._ContentSetter",[dojo.html._ContentSetter],{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_5a0){this._styleNodes=[];var st,att,_5a1,doc=this.node.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_5a0.length;i<e;i++){_5a1=_5a0[i];att=_5a0.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);head.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_5a1;}else{st.appendChild(doc.createTextNode(_5a1));}}},empty:function(){this.inherited("empty",arguments);this._styles=[];},onBegin:function(){this.inherited("onBegin",arguments);var cont=this.content,node=this.node;var _5a2=this._styles;if(dojo.isString(cont)){if(this.adjustPaths&&this.referencePath){cont=_588(this.referencePath,cont);}if(this.renderStyles||this.cleanContent){cont=_58f(this.referencePath,cont,_5a2);}if(this.executeScripts){var _5a3=this;var _5a4={downloadRemote:true,errBack:function(e){_5a3._onError.call(_5a3,"Exec","Error downloading remote script in \""+_5a3.id+"\"",e);}};cont=_598(cont,_5a4);this._code=_5a4.code;}}this.content=cont;},onEnd:function(){var code=this._code,_5a5=this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}if(this.renderStyles&&_5a5&&_5a5.length){this._renderStyles(_5a5);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_59e(code,this.node);}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}this.inherited("onEnd",arguments);},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}delete this._styleNodes;dojo.mixin(this,dojo.getObject(this.declaredClass).prototype);}});dojox.html.set=function(node,cont,_5a6){if(!_5a6){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojox.html._ContentSetter(dojo.mixin(_5a6,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;},onExecError:function(e){},_setContent:function(cont){var _5a7=this._contentSetter;if(!(_5a7&&_5a7 instanceof dojox.html._ContentSetter)){_5a7=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _5a8=this.onContentError(e);try{this.containerNode.innerHTML=_5a8;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};this.inherited("_setContent",arguments);}});}if(!dojo._hasResource["gluecklich.FriendsPage"]){dojo._hasResource["gluecklich.FriendsPage"]=true;dojo.provide("gluecklich.FriendsPage");dojo.declare("gluecklich.FriendsPage",[gluecklich.StandardPage],{constructor:function(){},init:function(){dojo.parser.parse();this.config={i18nGeneralDataFile:"./data/content/common_stuff/navigation_elements.json",i18nPageDataFile:"./data/content/friends/friends_nls_data.json",slideshowFileStore:"/data/context/white.json",slideShowImageCount:1,UseDefaultSlideShow:true};this.inherited(arguments);dojo.xhrGet({url:this.config.i18nPageDataFile,handleAs:"json"}).then(dojo.hitch(this,"setupContent"));this.setupSlideShow();this.setupNls();},setupContent:function(_5a9){nls.regCatId("i18n_theteamtitle",_5a9.i18n_theteamtitle);nls.regCatId("i18n_whatelseisgluecklich",_5a9.i18n_whatelseisgluecklich);nls.regCatId("i18n_luistrenker_text",_5a9.i18n_luistrenker_text);nls.regCatId("i18n_fassa_text",_5a9.i18n_fassa_text);nls.regCatId("i18n_jep_text",_5a9.i18n_jep_text);nls.regCatId("i18n_werkbank_text",_5a9.i18n_werkbank_text);nls.regCatId("i18n_dolomite_text",_5a9.i18n_dolomite_text);nls.regCatId("i18n_franz_text",_5a9.i18n_franz_text);nls.regCatId("i18n_lowie_text",_5a9.i18n_lowie_text);}});}if(!dojo._hasResource["dojox.fx._base"]){dojo._hasResource["dojox.fx._base"]=true;dojo.provide("dojox.fx._base");dojo.mixin(dojox.fx,{anim:dojo.anim,animateProperty:dojo.animateProperty,fadeTo:dojo._fade,fadeIn:dojo.fadeIn,fadeOut:dojo.fadeOut,combine:dojo.fx.combine,chain:dojo.fx.chain,slideTo:dojo.fx.slideTo,wipeIn:dojo.fx.wipeIn,wipeOut:dojo.fx.wipeOut});dojox.fx.sizeTo=function(args){var node=args.node=dojo.byId(args.node),abs="absolute";var _5aa=args.method||"chain";if(!args.duration){args.duration=500;}if(_5aa=="chain"){args.duration=Math.floor(args.duration/2);}var top,_5ab,left,_5ac,_5ad,_5ae=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n),pos=cs.position,w=cs.width,h=cs.height;top=(pos==abs?n.offsetTop:parseInt(cs.top)||0);left=(pos==abs?n.offsetLeft:parseInt(cs.left)||0);_5ad=(w=="auto"?0:parseInt(w));_5ae=(h=="auto"?0:parseInt(h));_5ac=left-Math.floor((args.width-_5ad)/2);_5ab=top-Math.floor((args.height-_5ae)/2);if(pos!=abs&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position=abs;n.style.top=top+"px";n.style.left=left+"px";}};})(node);var _5af=dojo.animateProperty(dojo.mixin({properties:{height:function(){init();return {end:args.height||0,start:_5ae};},top:function(){return {start:top,end:_5ab};}}},args));var _5b0=dojo.animateProperty(dojo.mixin({properties:{width:function(){return {start:_5ad,end:args.width||0};},left:function(){return {start:left,end:_5ac};}}},args));var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_5af,_5b0]);return anim;};dojox.fx.slideBy=function(args){var node=args.node=dojo.byId(args.node),top,left;var init=(function(n){return function(){var cs=dojo.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=dojo.coords(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 _5b1=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));dojo.connect(_5b1,"beforeBegin",_5b1,init);return _5b1;};dojox.fx.crossFade=function(args){var _5b2=args.nodes[0]=dojo.byId(args.nodes[0]),op1=dojo.style(_5b2,"opacity"),_5b3=args.nodes[1]=dojo.byId(args.nodes[1]),op2=dojo.style(_5b3,"opacity");var _5b4=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_5b2},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_5b3},args))]);return _5b4;};dojox.fx.highlight=function(args){var node=args.node=dojo.byId(args.node);args.duration=args.duration||400;var _5b5=args.color||"#ffff99",_5b6=dojo.style(node,"backgroundColor");if(_5b6=="rgba(0, 0, 0, 0)"){_5b6="transparent";}var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_5b5,end:_5b6}}},args));if(_5b6=="transparent"){dojo.connect(anim,"onEnd",anim,function(){node.style.backgroundColor=_5b6;});}return anim;};dojox.fx.wipeTo=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var dir=(args.width?"width":"height"),_5b7=args[dir],_5b8={};_5b8[dir]={start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s[dir]="1px";s.display="";s.visibility="";return 1;}else{var now=dojo.style(node,dir);return Math.max(now,1);}},end:_5b7};var anim=dojo.animateProperty(dojo.mixin({properties:_5b8},args));return anim;};}if(!dojo._hasResource["dojox.fx"]){dojo._hasResource["dojox.fx"]=true;dojo.provide("dojox.fx");}if(!dojo._hasResource["dojo.DeferredList"]){dojo._hasResource["dojo.DeferredList"]=true;dojo.provide("dojo.DeferredList");dojo.DeferredList=function(list,_5b9,_5ba,_5bb,_5bc){var _5bd=[];dojo.Deferred.call(this);var self=this;if(list.length===0&&!_5b9){this.resolve([0,[]]);}var _5be=0;dojo.forEach(list,function(item,i){item.then(function(_5bf){if(_5b9){self.resolve([i,_5bf]);}else{_5c0(true,_5bf);}},function(_5c1){if(_5ba){self.reject(_5c1);}else{_5c0(false,_5c1);}if(_5bb){return null;}throw _5c1;});function _5c0(_5c2,_5c3){_5bd[i]=[_5c2,_5c3];_5be++;if(_5be===list.length){self.resolve(_5bd);}};});};dojo.DeferredList.prototype=new dojo.Deferred();dojo.DeferredList.prototype.gatherResults=function(_5c4){var d=new dojo.DeferredList(_5c4,false,true,false);d.addCallback(function(_5c5){var ret=[];dojo.forEach(_5c5,function(_5c6){ret.push(_5c6[1]);});return ret;});return d;};}if(!dojo._hasResource["dojo.store.util.QueryResults"]){dojo._hasResource["dojo.store.util.QueryResults"]=true;dojo.provide("dojo.store.util.QueryResults");dojo.getObject("store.util",true,dojo);dojo.store.util.QueryResults=function(_5c7){if(!_5c7){return _5c7;}if(_5c7.then){_5c7=dojo.delegate(_5c7);}function _5c8(_5c9){if(!_5c7[_5c9]){_5c7[_5c9]=function(){var args=arguments;return dojo.when(_5c7,function(_5ca){Array.prototype.unshift.call(args,_5ca);return dojo.store.util.QueryResults(dojo[_5c9].apply(dojo,args));});};}};_5c8("forEach");_5c8("filter");_5c8("map");if(!_5c7.total){_5c7.total=dojo.when(_5c7,function(_5cb){return _5cb.length;});}return _5c7;};}if(!dojo._hasResource["dojo.store.util.SimpleQueryEngine"]){dojo._hasResource["dojo.store.util.SimpleQueryEngine"]=true;dojo.provide("dojo.store.util.SimpleQueryEngine");dojo.getObject("store.util",true,dojo);dojo.store.util.SimpleQueryEngine=function(_5cc,_5cd){switch(typeof _5cc){default:throw new Error("Can not query with a "+typeof _5cc);case "object":case "undefined":var _5ce=_5cc;_5cc=function(_5cf){for(var key in _5ce){var _5d0=_5ce[key];if(_5d0&&_5d0.test){if(!_5d0.test(_5cf[key])){return false;}}else{if(_5d0!=_5cf[key]){return false;}}}return true;};break;case "string":if(!this[_5cc]){throw new Error("No filter function "+_5cc+" was found in store");}_5cc=this[_5cc];case "function":}function _5d1(_5d2){var _5d3=dojo.filter(_5d2,_5cc);if(_5cd&&_5cd.sort){_5d3.sort(function(a,b){for(var sort,i=0;sort=_5cd.sort[i];i++){var _5d4=a[sort.attribute];var _5d5=b[sort.attribute];if(_5d4!=_5d5){return !!sort.descending==_5d4>_5d5?-1:1;}}return 0;});}if(_5cd&&(_5cd.start||_5cd.count)){var _5d6=_5d3.length;_5d3=_5d3.slice(_5cd.start||0,(_5cd.start||0)+(_5cd.count||Infinity));_5d3.total=_5d6;}return _5d3;};_5d1.matches=_5cc;return _5d1;};}if(!dojo._hasResource["dojo.store.Memory"]){dojo._hasResource["dojo.store.Memory"]=true;dojo.provide("dojo.store.Memory");dojo.declare("dojo.store.Memory",null,{constructor:function(_5d7){this.index={};dojo.mixin(this,_5d7);this.setData(this.data||[]);},data:null,idProperty:"id",index:null,queryEngine:dojo.store.util.SimpleQueryEngine,get:function(id){return this.index[id];},getIdentity:function(_5d8){return _5d8[this.idProperty];},put:function(_5d9,_5da){var id=_5da&&_5da.id||_5d9[this.idProperty]||Math.random();this.index[id]=_5d9;var data=this.data,_5db=this.idProperty;for(var i=0,l=data.length;i<l;i++){if(data[i][_5db]==id){data[i]=_5d9;return id;}}this.data.push(_5d9);return id;},add:function(_5dc,_5dd){if(this.index[_5dd&&_5dd.id||_5dc[this.idProperty]]){throw new Error("Object already exists");}return this.put(_5dc,_5dd);},remove:function(id){delete this.index[id];var data=this.data,_5de=this.idProperty;for(var i=0,l=data.length;i<l;i++){if(data[i][_5de]==id){data.splice(i,1);return;}}},query:function(_5df,_5e0){return dojo.store.util.QueryResults(this.queryEngine(_5df,_5e0)(this.data));},setData:function(data){if(data.items){this.idProperty=data.identifier;data=this.data=data.items;}else{this.data=data;}for(var i=0,l=data.length;i<l;i++){var _5e1=data[i];this.index[_5e1[this.idProperty]]=_5e1;}}});}if(!dojo._hasResource["mediavitamin.CarouselAssetLoader"]){dojo._hasResource["mediavitamin.CarouselAssetLoader"]=true;dojo.provide("mediavitamin.CarouselAssetLoader");dojo.declare("mediavitamin.CarouselAssetLoader",[dijit._Widget],{childItemQuery:">",childItemMetadataQuery:"[data-carousel-meta-type]",_incrementalId:0,_maxConnectionsPerHostIE:{6:1,7:1,8:5,9:5},constructor:function(_5e2){if(dojo.config.isDebug){console.debug(this.id+": "+"constructor");}this.controllerWidget=_5e2.controllerWidget;this.assetStore=new dojo.store.Memory();this._incrementalIndexByCollection={};if(dojo.isIE){this.maxConnections=this._maxConnectionsPerHostIE[dojo.isIE];}else{this.maxConnections=5;}this.currentLoadProcesses=[];this.postponedLoadProcesses=[];},addData:function(_5e3){if(dojo.config.isDebug){console.debug(this.id+": "+"addData");}var _5e4=[];var _5e5;if(_5e3.node){_5e4.push(this._populateStoreFromNode(_5e3.node));}if(_5e3.store){_5e4.push(this._populateStoreFromStore(_5e3.store));}if(_5e3.url){_5e4.push(this._populateStoreFromURL(_5e3.url));}var _5e5=new dojo.DeferredList(_5e4);_5e5.then(dojo.hitch(this,this.computeItemsToLoad));},_populateStoreFromNode:function(_5e6){if(dojo.config.isDebug){console.debug(this.id+": "+"_populateStoreFromNode");}var _5e7=new dojo.Deferred();dojo.query(this.childItemQuery,_5e6).forEach(function(_5e8,_5e9){var _5ea;var _5eb=dojo.query(">",_5e8)[0];var _5ec=this._createIncrementalId();var _5ed=dojo.attr(_5e8,"data-carousel-collection-name")||this.controllerWidget.defaultCollection;var _5ee=this._createIncrementalIndexByCollection(_5ed);var _5ef=this._createIncrementalUniqueIndex();var _5f0;_5ea=this._dataItemFactory({id:_5ec,itemNodeId:_5ec,collectionName:_5ed,collectionIndex:_5ee,uniqueIndex:_5ef,itemSrc:this.getSourceForNode(_5eb),itemSrcType:this.getSourceTypeForNode(_5eb),itemType:_5eb.tagName.toLowerCase(),itemNode:_5eb,metaData:this._getMetaDataFromNode(_5eb.parentNode),itemWidth:dojo.attr(_5eb,"width"),itemHeight:dojo.attr(_5eb,"height")});dojo.place(dojo.attr(_5eb,{"id":_5ec,style:{"opacity":"0","display":"none"}}),this.controllerWidget.nodeCache,"last");this._addNewItemToStore(_5ea);},this);_5e7.resolve();dojo.empty(this.controllerWidget.containerNode);return _5e7;},_dataItemFactory:function(_5f1){if(dojo.config.isDebug){console.debug(this.id+": "+"_dataItemFactory");}return {id:_5f1.id,itemNodeId:_5f1.id,collectionName:_5f1.collectionName,collectionIndex:_5f1.collectionIndex,uniqueIndex:_5f1.uniqueIndex,itemSrc:_5f1.itemSrc,itemSrcType:_5f1.itemSrcType,itemType:_5f1.itemType,itemNode:_5f1.itemNode,metaData:_5f1.metaData||null,itemWidth:_5f1.itemWidth||null,itemHeight:_5f1.itemHeight||null,isLoaded:false,itemLoader:null};},_getMetaDataFromNode:function(node){var _5f2=dojo.query(this.childItemMetadataQuery,node);var _5f3={};dojo.forEach(_5f2,function(_5f4,_5f5){var _5f6=dojo.attr(_5f4,"data-carousel-meta-type");_5f3[_5f6]=dojo.string.trim(_5f4.innerHTML);},this);return _5f3;},computeItemsToLoad:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"computeItemsToLoad");}var _5f7=this.assetStore.query({itemType:"img",itemSrcType:"sync"});dojo.forEach(_5f7,function(_5f8){this.addToLoadQueue(_5f8);},this);},addToLoadQueue:function(_5f9,_5fa){if(dojo.config.isDebug){console.debug(this.id+": "+"addToLoadQueue");}if(_5f9.isLoaded==true||_5f9.isLoaded=="loading"){return _5f9.itemLoader;}var _5fb=this.getLengthOfObject(this.currentLoadProcesses);if(!_5f9.itemLoader){_5f9.itemLoader=new dojo.Deferred();}if(_5fb<this.maxConnections){this.currentLoadProcesses[_5f9.id]=_5f9.itemLoader;_5f9.itemLoader.then(dojo.hitch(this,"handleLoaderQueueItemDone",_5f9));this.loadAsset(_5f9);}else{this.postponedLoadProcesses.push({assetDataItem:_5f9,isRequired:_5fa});console.warn("queue was full, postponing "+_5f9.id);}this._putItemtoStore(_5f9);return _5f9.itemLoader;},handleLoaderQueueItemDone:function(_5fc){delete this.currentLoadProcesses[_5fc.id];var _5fd={};if(this.postponedLoadProcesses.length>0){console.warn("getting item from queue");this.postponedLoadProcesses=this.prioritizeQueue(this.postponedLoadProcesses);_5fd=this.postponedLoadProcesses.shift();this.addToLoadQueue(_5fd.assetDataItem,_5fd.isRequired);}},prioritizeQueue:function(_5fe){var _5ff=[];var i;for(i=0;i<_5fe.length;i++){if(_5fe[i].isRequired===true){_5ff.push(_5fe[i]);}}for(i=0;i<_5fe.length;i++){if(!_5fe[i].isRequired===true){_5ff.push(_5fe[i]);}}return _5ff;},loadAsset:function(_600){if(dojo.config.isDebug){console.debug(this.id+": "+"loading asset: "+_600.id);}if(_600.itemType.toLowerCase()==="img"){var _601=new Image();var _602;var _603;dojo.connect(_601,"onload",this,function(){_600.itemWidth=_601.width;_600.itemHeight=_601.height;_600.isLoaded=true;delete _601;if(dojo.config.isDebug){console.debug("loaded id: "+_600.id);}_600.itemLoader.resolve("loaded");if(!dojo.attr(_600.itemNode,"src")){dojo.attr(_600.itemNode,"src",_600.itemSrc);}this._putItemtoStore(_600);});dojo.connect(_601,"onerror",this,function(evt){delete _601;console.error(evt);_600.itemWidth=320;_600.itemHeight=240;_600.itemSrc=dojo.moduleUrl("mediavitamin").path+"resources/images/404.png";_600.itemLoader.resolve("notFound");if(dojo.attr(!_600.itemNode,"src")){dojo.attr(_600.itemNode,"src",_600.itemSrc);}this._putItemtoStore(_600);});_601.src=_600.itemSrc;_600.isLoaded="loading";this._putItemtoStore(_600);}else{_600.itemLoader=new dojo.Deferred();_600.isLoaded=true;_600.itemLoader.resolve("loaded");this._putItemtoStore(_600);}return _600.itemLoader;},getSourceForNode:function(node){if(dojo.config.isDebug){console.debug(this.id+": "+"getSourceForNode");}if(node.tagName.toLowerCase()==="img"){if(dojo.attr(node,"src")){return dojo.attr(node,"src");}else{if(dojo.attr(node,"lazyLoadSrc")){return dojo.attr(node,"lazyLoadSrc");}else{console.error("no source for image has been specified in the markup");}}}else{if(node.tagName.toLowerCase()==="video"){var _604=[];dojo.query(">",node).forEach(function(_605){if(dojo.attr(_605,"src")){_604[dojo.attr(_605,"type").split("/")[1]]=dojo.attr(_605,"src");}},this);return _604;}}},getSourceTypeForNode:function(node){if(dojo.config.isDebug){console.debug(this.id+": "+"getSourceTypeForNode");}if(node.tagName.toLowerCase()==="img"){if(dojo.attr(node,"src")){return "sync";}else{if(dojo.attr(node,"lazyLoadSrc")){return "async";}else{console.error("no source for image has been specified in the markup");}}}else{if(node.tagName.toLowerCase()==="video"){return "async";}}},_createIncrementalId:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"_createIncrementalId");}this._incrementalId=this._incrementalId+1;return this.id+"_"+this._incrementalId;},_createIncrementalIndexByCollection:function(_606){if(dojo.config.isDebug){console.debug(this.id+": "+"_createIncrementalIndexByCollection");}if(!this._incrementalIndexByCollection[_606]){this._incrementalIndexByCollection[_606]={};this._incrementalIndexByCollection[_606].indexPos=-1;}this._incrementalIndexByCollection[_606].indexPos=this._incrementalIndexByCollection[_606].indexPos+1;return this._incrementalIndexByCollection[_606].indexPos;},_createIncrementalUniqueIndex:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"_createIncrementalUniqueIndex");}if(!this.uniqueIndex){this.uniqueIndex=0;}this.uniqueIndex=this.uniqueIndex+1;return this.uniqueIndex;},_addNewItemToStore:function(item){if(dojo.config.isDebug){console.debug(this.id+": "+"_addNewItemToStore");}this.assetStore.add(item);},_populateStore:function(_607){dojo.forEach(_607,function(){this._addNewItemToStore(item);},this);},_putItemtoStore:function(item){if(dojo.config.isDebug){console.debug(this.id+": "+"_putItemtoStore: "+item.id);}this.assetStore.put(item);},getLengthOfObject:function(_608){var _609=0;for(key in _608){_609=_609+1;}return _609;}});}if(!dojo._hasResource["mediavitamin.CarouselQueue"]){dojo._hasResource["mediavitamin.CarouselQueue"]=true;dojo.provide("mediavitamin.CarouselQueue");dojo.declare("mediavitamin.CarouselQueue",null,{constructor:function(_60a){this.listeners=[];this.queue={};this.controllerWidget=_60a.controllerWidget;},addQueuesFromTopics:function(_60b){dojo.forEach(_60b,function(_60c){this.addQueue(_60c);},this);},addQueue:function(_60d){if(dojo.config.isDebug){console.log("creating evt handler for: "+_60d);}var _60e=[];if(!this.queue[_60d]){this.queue[_60d]=[];}this.listeners[_60d]=dojo.subscribe(_60d,this,function(_60f){_60e.push(_60f);this.queue[_60d].push(_60f);if(dojo.config.isDebug){console.warn("i just came into the queue");console.warn(_60f);console.log("queue now contains:");console.log(this.queue[_60d]);}});},_handleNewReadyMessage:function(_610){var _611=[];_611.push(_610);this.queue[this.controllerWidget.id+"/ready"].push(_610);if(dojo.config.isDebug){console.warn("i just came into the queue");console.warn(_610);console.log("queue now contains:");console.log(this.queue[topic]);}},_getQueue:function(_612){return this.queue[_612];},_unsubscribeQueue:function(_613){if(dojo.config.isDebug){console.debug("disconnecting handler.. queue contained:");console.debug("queue: "+this.queue[_613]);console.debug("listeners: "+this.listeners[_613]);}dojo.unsubscribe(this.listeners[_613]);this.queue[_613]=undefined;},subscribeQueue:function(_614){var _615=[];if(_614.ignoreOlder){_615.push(this.queue[_614.topic][this.queue[_614.topic].length-1]);}else{_615=this.queue[_614.topic];}if(_615[0]){dojo.forEach(_615,function(_616){_614.callback.call(_614.scope,_616);});}this._unsubscribeQueue(_614.topic);dojo.subscribe(this.id+"_"+_614.topic,_614.scope,_614.callback);}});}if(!dojo._hasResource["mediavitamin.CarouselController"]){dojo._hasResource["mediavitamin.CarouselController"]=true;dojo.provide("mediavitamin.CarouselController");dojo.declare("mediavitamin.CarouselController",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("mediavitamin","resources/Carousel.html","<div data-dojo-attach-point=\"outerNode\" style=\"overflow: hidden; width:100%; height:100%\"><div style=\"position:relative;\" style=\"overflow: hidden; width:100%; height:100%\" data-dojo-attach-point=\"nodeCache\"></div><div data-dojo-attach-point=\"containerNode\"></div></div>\n"),initialCollection:null,dataStore:false,jsonUrl:false,defaultCollection:"defaultCollection",constructor:function(){if(dojo.config.isDebug){console.debug("CarouselController: constructor");}this._incrementalIndexByCollection={};this.preloadAssetsOfCollection=[];this._supportingWidgets=[];this.views=[];},startup:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"startup");}if(this.get("started")){return;}this.queue=new mediavitamin.CarouselQueue({controllerWidget:this});this.queue.addQueue(this.id+"/ready");this.inherited(arguments);var _617=this.id;this.assetLoader=new mediavitamin.CarouselAssetLoader({controllerWidget:this});this._supportingWidgets.push(this.assetLoader);this.loadData();this._setInitialState();dojo.publish(this.id+"/ready",[this.get("currentDataItem")]);this.set("started",true);},_setInitialState:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"_setInitialState");}this.initialCollection=this.initialCollection||this.get("collections")[0];this.initialCollectionIndex=this.initialCollectionIndex||0;this._set("_moveDirection","nowhere");this._set("_currentCollectionName",this.initialCollection);this._set("_currentCollectionIndex",this.initialCollectionIndex);this._set("_currentDataItem",this.getItemByCollectionAndIndex(this.initialCollection,this.initialCollectionIndex));},loadData:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"loadData");}var _618;var _619;var _61a;if(this.containerNode.childNodes){if(this.containerNode.childNodes.length>=1){_618=this.containerNode;}}if(this.dataStoreId){_619=dataStoreId;}if(this.jsonUrl){_61a=this.jsonUrl;}this.assetLoader.addData({node:_618,store:_619,url:_61a});},registerView:function(_61b){if(dojo.config.isDebug){console.debug(this.id+": "+"registerView");}this.views.push(_61b);_61b.set("currentCollectionIndex",this.get("currentCollectionIndex"));_61b.set("currentCollection",this.get("currentCollection"));},_getCurrentCollectionIndexAttr:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"getCurrentCollectionIndexAttr");}return this._currentCollectionIndex;},_getCurrentCollectionNameAttr:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"getCurrentCollectionNameAttr");}return this._currentCollectionName;},_getCollectionsAttr:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"getCollectionsAttr");}var _61c=[];dojo.forEach(this.assetLoader.assetStore.query({},{sort:[{attribute:"collectionIndex"}]}),function(item){_61c.push(item.collectionName);});var j=0;var _61d=[];var i;for(i=0;i<_61c.length;i++){_61d[j]=_61c[i];j++;if((i>0)&&(_61c[i]===_61c[i-1])){_61d.pop();j--;}}return (_61d);},_getCurrentDataItemAttr:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"getCurrentDataItemAttr");}return this._currentDataItem;},_getMoveDirectionAttr:function(){return this._moveDirection;},_setCurrentCollectionIndexAttr:function(_61e){if(this.get("currentCollectionIndex")===_61e){return;}if(dojo.config.isDebug){console.debug(this.id+": "+"_setCurrentCollectionIndexAttr");}this.set("moveDirection",this._computeMoveDirection(_61e));this._set("_currentCollectionIndex",_61e);dojo.publish(this.id+"/currentCollectionIndex",[{collectionIndex:_61e}]);this._set("_currentCollectionName",this.get("currentCollectionName"));this._set("_currentDataItem",this.getItemByCollectionAndIndex(this.get("currentCollectionName"),_61e));},_setCurrentCollectionNameAttr:function(_61f){if(this.get("currentCollectionName")===_61f){return;}if(dojo.config.isDebug){console.debug(this.id+": "+"setCurrentCollectionNameAttr");}this.set("moveDirection","nowhere");this._set("_currentCollectionName",_61f);dojo.publish(this.id+"/currentCollectionName",[{collectionName:_61f}]);this._set("_currentCollectionIndex",0);this._set("_currentDataItem",this.getItemByCollectionAndIndex(_61f,0));},_setCurrentDataItemAttr:function(_620){if(this.get("currentDataItem")===_620){return;}if(dojo.config.isDebug){console.debug(this.id+": "+"setCurrentDataItemAttr");}this.set("moveDirection",this._computeMoveDirection(_620.uniqueIndex));this._set("_currentDataItem",_620);dojo.publish(this.id+"/currentDataItem",[{dataItem:_620}]);this._set("_currentCollectionName",_620.collectionName);this._set("_currentCollectionIndex",_620.collectionIndex);},_setMoveDirectionAttr:function(_621){this._set("_moveDirection",_621);},getCurrentItems:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"getCurrentItems");}return (this.assetLoader.assetStore.query({collectionName:this.get("currentCollectionName")},{sort:[{attribute:"collectionIndex"}]}));},getCurrentMetaData:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"getCurrentMetaData");}return (this._currentItemDataItem.metaData);},getItemsByCollection:function(_622){if(dojo.config.isDebug){console.debug(this.id+": "+"getItemsByCollection");}return (this.assetLoader.assetStore.query({collectionName:_622},{sort:[{attribute:"collectionIndex"}]}));},getItemByCollectionAndIndex:function(_623,_624){if(dojo.config.isDebug){console.debug(this.id+": "+"getItemByCollectionAndIndex");}return this.assetLoader.assetStore.query({collectionName:_623,collectionIndex:_624})[0];},getNextDataItemFromDataItem:function(_625,loop){if(dojo.config.isDebug){console.debug(this.id+": "+"getNextDataItemFromDataItem");}var _626=_625.collectionIndex+1;var _627=_625.collectionName;var _628;_628=this.assetLoader.assetStore.query({collectionName:_627,collectionIndex:_626})[0];if(!_628&&loop){_628=this.assetLoader.assetStore.query({collectionName:_627,collectionIndex:0})[0];}return _628;},getPreviousDataItemFromDataItem:function(_629,loop){if(dojo.config.isDebug){console.debug(this.id+": "+"getPreviousDataItemFromDataItem");}var _62a=_629.collectionIndex-1;var _62b=_629.collectionName;var _62c;var _62d;_62c=this.assetLoader.assetStore.query({collectionName:_62b,collectionIndex:_62a})[0];if(!_62c&&loop){_62d=this.assetLoader.assetStore.query().length;nextItem=this.assetLoader.assetStore.query({collectionName:_62b,collectionIndex:(_62d-1)})[0];}return _62c;},getItemDataItemByIndex:function(_62e){if(dojo.config.isDebug){console.debug(this.id+": "+"getItemDataItemByIndex");}return this.assetLoader.assetStore.query(dojo.mixin({collectionIndex:_62e},{collectionName:this.get("currentCollectionName")}))[0];},_setStartedAttr:function(){this._set("started",true);},_computeMoveDirection:function(_62f){var _630;if(this.get("currentCollectionIndex")>_62f){_630="downwards";}else{if(this.get("currentCollectionIndex")<_62f){_630="upwards";}else{_630="nowhere";}}return _630;},returnUniqueItems:function(_631){var a=_631.concat();for(var i=0;i<a.length;++i){for(var j=i+1;j<a.length;++j){if(a[i]===a[j]){a.splice(j,1);}}}return a;}});}if(!dojo._hasResource["dojox.embed.Flash"]){dojo._hasResource["dojox.embed.Flash"]=true;dojo.provide("dojox.embed.Flash");(function(){var _632,_633;var _634=9;var _635="dojox-embed-flash-",_636=0;var _637={expressInstall:false,width:320,height:240,swLiveConnect:"true",allowScriptAccess:"sameDomain",allowNetworking:"all",style:null,redirect:null};function prep(_638){_638=dojo.delegate(_637,_638);if(!("path" in _638)){console.error("dojox.embed.Flash(ctor):: no path reference to a Flash movie was provided.");return null;}if(!("id" in _638)){_638.id=(_635+_636++);}return _638;};if(dojo.isIE){_632=function(_639){_639=prep(_639);if(!_639){return null;}var p;var path=_639.path;if(_639.vars){var a=[];for(p in _639.vars){a.push(p+"="+_639.vars[p]);}_639.params.FlashVars=a.join("&");delete _639.vars;}var s="<object id=\""+_639.id+"\" "+"classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" "+"width=\""+_639.width+"\" "+"height=\""+_639.height+"\""+((_639.style)?" style=\""+_639.style+"\"":"")+">"+"<param name=\"movie\" value=\""+path+"\" />";if(_639.params){for(p in _639.params){s+="<param name=\""+p+"\" value=\""+_639.params[p]+"\" />";}}s+="</object>";return {id:_639.id,markup:s};};_633=(function(){var _63a=10,_63b=null;while(!_63b&&_63a>7){try{_63b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_63a--);}catch(e){}}if(_63b){var v=_63b.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 _63c=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]=_63c;}catch(e){}}}});});}else{_632=function(_63d){_63d=prep(_63d);if(!_63d){return null;}var p;var path=_63d.path;if(_63d.vars){var a=[];for(p in _63d.vars){a.push(p+"="+_63d.vars[p]);}_63d.params.flashVars=a.join("&");delete _63d.vars;}var s="<embed type=\"application/x-shockwave-flash\" "+"src=\""+path+"\" "+"id=\""+_63d.id+"\" "+"width=\""+_63d.width+"\" "+"height=\""+_63d.height+"\""+((_63d.style)?" style=\""+_63d.style+"\" ":"")+"pluginspage=\""+window.location.protocol+"//www.adobe.com/go/getflashplayer\" ";if(_63d.params){for(p in _63d.params){s+=" "+p+"=\""+_63d.params[p]+"\"";}}s+=" />";return {id:_63d.id,markup:s};};_633=(function(){var _63e=navigator.plugins["Shockwave Flash"];if(_63e&&_63e.description){var v=_63e.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(_63f,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=_63f.minimumVersion||_634;this.id=null;this.movie=null;this.domNode=null;if(node){node=dojo.byId(node);}setTimeout(dojo.hitch(this,function(){if(_63f.expressInstall||this.available&&this.available>=this.minimumVersion){if(_63f&&node){this.init(_63f,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(_640){console.warn("embed.Flash.movie.onReady:",_640);},onLoad:function(_641){console.warn("embed.Flash.movie.onLoad:",_641);},onError:function(msg){},_onload:function(){clearInterval(this._poller);delete this._poller;delete this._pollCount;delete this._pollMax;this.onLoad(this.movie);},init:function(_642,node){console.log("embed.Flash.movie.init");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,_643=false;this._poller=null;this._pollCount=0;this._pollMax=15;this.pollTime=100;if(dojox.embed.Flash.initialized){this.id=dojox.embed.Flash.place(_642,node);this.domNode=node;setTimeout(dojo.hitch(this,function(){this.movie=this.byId(this.id,_642.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(_644,doc){doc=doc||document;if(doc.embeds[_644]){return doc.embeds[_644];}if(doc[_644]){return doc[_644];}if(window[_644]){return window[_644];}if(document[_644]){return document[_644];}return null;}});dojo.mixin(dojox.embed.Flash,{minSupported:8,available:_633.major,supported:(_633.major>=_633.required),minimumRequired:_633.required,version:_633,initialized:false,onInitialize:function(){dojox.embed.Flash.initialized=true;},__ie_markup__:function(_645){return _632(_645);},proxy:function(obj,_646){dojo.forEach((dojo.isArray(_646)?_646:[_646]),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(_647,node){var o=_632(_647);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["dojox.av._Media"]){dojo._hasResource["dojox.av._Media"]=true;dojo.provide("dojox.av._Media");dojo.declare("dojox.av._Media",null,{mediaUrl:"",initialVolume:1,autoPlay:false,bufferTime:2000,minBufferTime:300,updateTime:100,id:"",isDebug:false,percentDownloaded:0,_flashObject:null,flashMedia:null,allowScriptAccess:"always",allowNetworking:"all",wmode:"transparent",allowFullScreen:true,_initStatus:function(){this.status="ready";this._positionHandle=dojo.connect(this,"onPosition",this,"_figureStatus");},getTime:function(){return this.flashMedia.getTime();},onLoad:function(mov){},onDownloaded:function(_648){},onClick:function(evt){},onSwfSized:function(data){},onMetaData:function(data,evt){this.duration=data.duration;},onPosition:function(time){},onStart:function(data){},onPlay:function(data){},onPause:function(data){},onEnd:function(data){},onStop:function(){},onBuffer:function(_649){this.isBuffering=_649;},onError:function(data,url){console.warn("ERROR-"+data.type.toUpperCase()+":",data.info.code," - URL:",url);},onStatus:function(data){},onPlayerStatus:function(data){},onResize:function(){},_figureStatus:function(){var pos=this.getTime();if(this.status=="stopping"){this.status="stopped";this.onStop(this._eventFactory());}else{if(this.status=="ending"&&pos==this._prevPos){this.status="ended";this.onEnd(this._eventFactory());}else{if(this.duration&&pos>this.duration-0.5){this.status="ending";}else{if(pos===0){if(this.status=="ready"){}else{this.status="stopped";if(this._prevStatus!="stopped"){this.onStop(this._eventFactory());}}}else{if(this.status=="ready"){this.status="started";this.onStart(this._eventFactory());this.onPlay(this._eventFactory());}else{if(this.isBuffering){this.status="buffering";}else{if(this.status=="started"||(this.status=="playing"&&pos!=this._prevPos)){this.status="playing";}else{if(!this.isStopped&&this.status=="playing"&&pos==this._prevPos){this.status="paused";console.warn("pause",pos,this._prevPos);if(this.status!=this._prevStatus){this.onPause(this._eventFactory());}}else{if((this.status=="paused"||this.status=="stopped")&&pos!=this._prevPos){this.status="started";this.onPlay(this._eventFactory());}}}}}}}}}this._prevPos=pos;this._prevStatus=this.status;this.onStatus(this.status);},_eventFactory:function(){var evt={status:this.status};return evt;},_sub:function(_64a,_64b){dojo.subscribe(this.id+"/"+_64a,this,_64b);},_normalizeVolume:function(vol){if(vol>1){while(vol>1){vol*=0.1;}}return vol;},_normalizeUrl:function(_64c){console.log("  url:",_64c);if(_64c&&(_64c.toLowerCase().indexOf("http")<0||_64c.indexOf("/")==0)){var loc=window.location.href.split("/");loc.pop();loc=loc.join("/")+"/";console.log("  loc:",loc);_64c=loc+_64c;}return _64c;},destroy:function(){if(!this.flashMedia){this._cons.push(dojo.connect(this,"onLoad",this,"destroy"));return;}dojo.forEach(this._subs,function(s){dojo.unsubscribe(s);});dojo.forEach(this._cons,function(c){dojo.disconnect(c);});this._flashObject.destroy();}});}if(!dojo._hasResource["dojox.av.FLVideo"]){dojo._hasResource["dojox.av.FLVideo"]=true;dojo.provide("dojox.av.FLVideo");dojo.experimental("dojox.av.FLVideo");dojo.declare("dojox.av.FLVideo",[dijit._Widget,dojox.av._Media],{_swfPath:dojo.moduleUrl("dojox.av","resources/video.swf"),constructor:function(_64d){dojo.global.swfIsInHTML=function(){return true;};},postCreate:function(){this._subs=[];this._cons=[];this.mediaUrl=this._normalizeUrl(this.mediaUrl);this.initialVolume=this._normalizeVolume(this.initialVolume);var args={path:this._swfPath.uri,width:"100%",height:"100%",minimumVersion:9,expressInstall:true,params:{allowFullScreen:this.allowFullScreen,wmode:this.wmode,allowScriptAccess:this.allowScriptAccess,allowNetworking:this.allowNetworking},vars:{videoUrl:this.mediaUrl,id:this.id,autoPlay:this.autoPlay,volume:this.initialVolume,isDebug:this.isDebug}};this._sub("stageClick","onClick");this._sub("stageSized","onSwfSized");this._sub("mediaStatus","onPlayerStatus");this._sub("mediaMeta","onMetaData");this._sub("mediaError","onError");this._sub("mediaStart","onStart");this._sub("mediaEnd","onEnd");this._flashObject=new dojox.embed.Flash(args,this.domNode);this._flashObject.onError=function(err){console.error("Flash Error:",err);};this._flashObject.onLoad=dojo.hitch(this,function(mov){this.flashMedia=mov;this.isPlaying=this.autoPlay;this.isStopped=!this.autoPlay;this.onLoad(this.flashMedia);this._initStatus();this._update();});this.inherited(arguments);},play:function(_64e){this.isPlaying=true;this.isStopped=false;this.flashMedia.doPlay(this._normalizeUrl(_64e));},pause:function(){this.isPlaying=false;this.isStopped=false;if(this.onPaused){this.onPaused();}this.flashMedia.pause();},seek:function(time){this.flashMedia.seek(time);},volume:function(vol){if(vol){if(!this.flashMedia){this.initialVolume=vol;}this.flashMedia.setVolume(this._normalizeVolume(vol));}if(!this.flashMedia||!this.flashMedia.doGetVolume){return this.initialVolume;}return this.flashMedia.getVolume();},_checkBuffer:function(time,_64f){if(this.percentDownloaded==100){if(this.isBuffering){this.onBuffer(false);this.flashMedia.doPlay();}return;}if(!this.isBuffering&&_64f<0.1){this.onBuffer(true);this.flashMedia.pause();return;}var _650=this.percentDownloaded*0.01*this.duration;if(!this.isBuffering&&time+this.minBufferTime*0.001>_650){this.onBuffer(true);this.flashMedia.pause();}else{if(this.isBuffering&&time+this.bufferTime*0.001<=_650){this.onBuffer(false);this.flashMedia.doPlay();}}},_update:function(){var time=Math.min(this.getTime()||0,this.duration);var dObj=this.flashMedia.getLoaded();this.percentDownloaded=Math.ceil(dObj.bytesLoaded/dObj.bytesTotal*100);this.onDownloaded(this.percentDownloaded);this.onPosition(time);if(this.duration){this._checkBuffer(time,dObj.buffer);}this._updateHandle=setTimeout(dojo.hitch(this,"_update"),this.updateTime);},destroy:function(){clearTimeout(this._updateHandle);dojo.disconnect(this._positionHandle);this.inherited(arguments);}});}if(!dojo._hasResource["dojox.image.MagnifierLite"]){dojo._hasResource["dojox.image.MagnifierLite"]=true;dojo.provide("dojox.image.MagnifierLite");dojo.experimental("dojox.image.MagnifierLite");dojo.declare("dojox.image.MagnifierLite",dijit._Widget,{glassSize:125,scale:6,postCreate:function(){this.inherited(arguments);this._adjustScale();this._createGlass();this.connect(this.domNode,"onmouseenter","_showGlass");this.connect(this.glassNode,"onmousemove","_placeGlass");this.connect(this.img,"onmouseout","_hideGlass");this.connect(window,"onresize","_adjustScale");},_createGlass:function(){var node=this.glassNode=dojo.create("div",{style:{height:this.glassSize+"px",width:this.glassSize+"px"},className:"glassNode"},dojo.body());this.surfaceNode=node.appendChild(dojo.create("div"));this.img=dojo.place(dojo.clone(this.domNode),node);dojo.style(this.img,{position:"absolute",top:0,left:0,width:this._zoomSize.w+"px",height:this._zoomSize.h+"px"});},_adjustScale:function(){this.offset=dojo.coords(this.domNode,true);this._imageSize={w:this.offset.w,h:this.offset.h};this._zoomSize={w:this._imageSize.w*this.scale,h:this._imageSize.h*this.scale};},_sumAncestorProperties:function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_651=0,_652=dojo.body();while(node&&node.style){if(dojo.getComputedStyle(node).position=="fixed"){return 0;}val=node[prop];if(val){_651+=val-0;if(node==_652){break;}}node=node.parentNode;}return _651;},_showGlass:function(e){this._placeGlass(e);dojo.style(this.glassNode,{visibility:"visible",display:""});},_hideGlass:function(e){dojo.style(this.glassNode,{visibility:"hidden",display:"none"});},_placeGlass:function(e){this._setImage(e);var sub=Math.floor(this.glassSize/2);dojo.style(this.glassNode,{top:Math.floor(e.pageY-sub)+"px",left:Math.floor(e.pageX-sub)+"px"});},_setImage:function(e){var xOff=(e.pageX-this.offset.l)/this.offset.w,yOff=(e.pageY-this.offset.t)/this.offset.h,x=(this._zoomSize.w*xOff*-1)+(this.glassSize*xOff),y=(this._zoomSize.h*yOff*-1)+(this.glassSize*yOff);dojo.style(this.img,{top:y+"px",left:x+"px"});},destroy:function(_653){dojo.destroy(this.glassNode);this.inherited(arguments);}});}if(!dojo._hasResource["mediavitamin.ImageMagnifier"]){dojo._hasResource["mediavitamin.ImageMagnifier"]=true;dojo.provide("mediavitamin.ImageMagnifier");dojo.declare("mediavitamin.ImageMagnifier",[dojox.image.MagnifierLite],{_adjustScale:function(){this.offset=dojo.coords(this.domNode,true);this.offset.l=this.offset.x;this.offset.t=this.offset.y;this._imageSize={w:this.offset.w,h:this.offset.h};this._zoomSize={w:this._imageSize.w*this.scale,h:this._imageSize.h*this.scale};}});}if(!dojo._hasResource["mediavitamin.CarouselViewBase"]){dojo._hasResource["mediavitamin.CarouselViewBase"]=true;dojo.provide("mediavitamin.CarouselViewBase");dojo.declare("mediavitamin.CarouselViewBase",[],{_loadAssets:function(_654,_655){if(dojo.config.isDebug){console.debug(this.id+": "+"_loadAssets");}var _656=[];var _657;dojo.forEach(_654,function(_658){_656.push(this.controllerWidget.assetLoader.addToLoadQueue(_658,_655));},this);_657=new dojo.DeferredList(_656);return {combinedLoader:_657,singleLoaders:_656};},_computeAssetsToBeLoaded:function(_659){if(dojo.config.isDebug){console.debug(this.id+": "+"_computeAssetsToBeLoaded");}var _65a=[];var _65b=[];var _65c=_659.collectionName;var _65d=this.controllerWidget.get("collections");var _65e=_659.index;var _65f=[];var _660;var _661;var _662=_65e+this.maxAmountOfItemsShown;var i=1;_65a.push(_659);_65a.push(_659);_660=_659;while(_660&&(i<=this.maxAmountOfItemsShown)){_660=this.controllerWidget.getNextDataItemFromDataItem(_660);if(_660){_65a.push(_660);}i=i+1;}dojo.forEach(_65d,function(_663){dojo.forEach(this.preloadAssetIndexesOfCollection,function(_664){_65a.push(this.controllerWidget.getItemByCollectionAndIndex(_663,_664));},this);},this);_660=_659;_661=0;while(_660&&(_661<this.preloadAssetRange)){_660=this.controllerWidget.getPreviousDataItemFromDataItem(_660);if(_660){_65b.push(_660);}_661=_661+1;}_660=_659;_661=0;while(_660&&(_661<-this.preloadAssetRange)){_660=this.controllerWidget.getPreviousDataItemFromDataItem(_660);if(_660){_65b.push(_660);}_661=_661-1;}_65a=this.controllerWidget.returnUniqueItems(_65a);_65b=this.controllerWidget.returnUniqueItems(_65b);return {required:_65a,optional:_65b};},_isHostType:function(_665,_666){var _667={"boolean":1,"number":1,"string":1,"undefined":1};var type=typeof _665[_666];return type=="object"?!!_665[_666]:!_667[type];},_determinePlayerType:function(){var _668=document.createElement("video");var type=this._isHostType(_668,"canPlayType");if(!type){return "flash";}if((_668.canPlayType("video/ogg; codecs=\"theora\"")=="probably")||(_668.canPlayType("video/mp4; codecs=\"avc1.42E01E\"")=="probably")||(_668.canPlayType("video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"")=="probably")||(_668.canPlayType("video/webm; codecs=\"vp8, vorbis\"")=="probably")){return "html5";}return "flash";},resizeAssetNodeByWidth:function(_669){if(dojo.config.isDebug){console.debug(this.id+": "+"resizeAssetNodeByWidth");}var _66a=_669.assetWidth/_669.assetHeight;dojo.attr(_669.node,"width",_669.targetWidth);dojo.style(_669.node,"width",_669.targetWidth+"px");var newH=Math.ceil(_669.targetWidth*_66a);dojo.attr(_669.node,"height",newH);dojo.style(_669.node,"height",newH+"px");_669.node.style.marginLeft=0;if(dojo.config.isDebug){console.debug(this.id+": "+_669.node);console.debug(this.id+": "+"resized asset to: "+_669.targetWidth+" / "+newH);}},getResizedAssetSizeByWidth:function(_66b){var _66c=_66b.assetWidth/_66b.assetHeight;var newH=Math.ceil(_66b.targetWidth*_66c);return {width:_66b.targetWidth,height:newH};},resizeAssetNodeByHeight:function(_66d){if(dojo.config.isDebug){console.debug(this.id+": "+"resizeAssetNodeByHeight");}var _66e=_66d.assetWidth/_66d.assetHeight;dojo.attr(_66d.node,"height",_66d.targetHeight);dojo.style(_66d.node,"height",_66d.targetHeight+"px");var newW=Math.ceil(_66d.targetHeight*_66e);dojo.attr(_66d.node,"width",newW);dojo.style(_66d.node,"width",newW+"px");_66d.node.style.marginTop=0;if(dojo.config.isDebug){console.debug(this.id+": "+_66d.node);console.debug(this.id+": "+"resized asset to: "+newW+" / "+_66d.targetHeight);}},getResizedAssetSizeByWidth:function(_66f){var _670=_66f.assetWidth/_66f.assetHeight;var newW=Math.ceil(_66f.targetHeight*_670);return {width:newW,height:_66f.targetHeight};},resizeAssetNodeByTargetSize:function(_671){if(dojo.config.isDebug){console.debug(this.id+": "+"resizeAssetNodeByTargetSize");console.debug(this.id+": "+"current image size is reported at: "+_671.assetWidth+" , "+_671.assetHeight);}var _672=_671.assetWidth/_671.assetHeight;if(_672<_671.targetWidth/_671.targetHeight){dojo.attr(_671.node,"width",_671.targetWidth);dojo.style(_671.node,"width",_671.targetWidth+"px");var newH=Math.ceil(_671.targetWidth/_672);dojo.attr(_671.node,"height",newH);dojo.style(_671.node,"height",newH+"px");_671.node.style.marginTop=(_671.targetHeight-newH)/2+"px";_671.node.style.marginLeft=0;if(dojo.config.isDebug){console.debug(this.id+": "+_671.node);console.debug(this.id+": "+"resized asset to: "+_671.targetWidth+" / "+newH);}}else{dojo.attr(_671.node,"height",_671.targetHeight);dojo.style(_671.node,"height",_671.targetHeight+"px");var newW=Math.ceil(h*_672);dojo.attr(_671.node,"width",newW);dojo.style(_671.node,"width",newW+"px");_671.node.style.marginLeft=(_671.targetWidth-newW)/2+"px";_671.node.style.marginTop=0;if(dojo.config.isDebug){console.debug(this.id+": "+_671.node);console.debug(this.id+": "+"resized asset to: "+newW+" / "+h);}}},getComputedZIndex:function(_673){var _674=dojo.style(_673,"zIndex");var body=dojo.body();if(_674==="auto"){while((_673!==body)&&(_674==="auto")){_674=dojo.style(_673,"zIndex");if(_674==="auto"){_673=_673.parentNode;}}if(_673===body){return 1;}else{if(_674!=="auto"){return (_674*1)+1;}}}else{return (_674*1);}}});}if(!dojo._hasResource["mediavitamin.CarouselParentMonitor"]){dojo._hasResource["mediavitamin.CarouselParentMonitor"]=true;dojo.provide("mediavitamin.CarouselParentMonitor");dojo.declare("mediavitamin.CarouselParentMonitor",[],{monitorParent:true,monitorInterval:50,startup:function(){this._parentNode=this.domNode;if(this.monitorParent){this._startMonitoringParentNode();}this.inherited(arguments);},onParentSizeChange:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"onParentSizeChange");}},_startMonitoringParentNode:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"_startMonitoringParentNode");}this.parentMarginBox=this._getParentMarginBox(this._parentNode);this._monitorTimer=setInterval(dojo.hitch(this,"_monitorParentNodeSize"),this.monitorInterval);},_getParentMarginBox:function(_675){if(_675===dojo.body()){return dojo.window.getBox();}else{return dojo._getMarginSize(_675);}},_monitorParentNodeSize:function(){var _676=this._getParentMarginBox(this._parentNode);if((this.parentMarginBox.w!==_676.w)||(this.parentMarginBox.h!==_676.h)){this._onParentSizeChange();}},_onParentSizeChange:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"_onParentSizeChange");}this.parentMarginBox=this._getParentMarginBox(this._parentNode);this.onParentSizeChange();}});}if(!dojo._hasResource["mediavitamin.CarouselPerspectiveView"]){dojo._hasResource["mediavitamin.CarouselPerspectiveView"]=true;dojo.provide("mediavitamin.CarouselPerspectiveView");dojo.declare("mediavitamin.CarouselPerspectiveView",[dijit._Widget,dijit._Templated,mediavitamin.CarouselViewBase,mediavitamin.CarouselParentMonitor],{preloadAssetRange:0,preloadassetUniqueIndexesOfCollection:[1],maxAmountOfItemsShown:4,templateString:dojo.cache("mediavitamin","resources/CarouselPerspectiveView.html","<div data-dojo-attach-point=\"outerNode\" style=\"overflow: hidden; width:100%; height:100%\">\n  <div style=\"display: none\" data-dojo-attach-point=\"nodeCache\"></div>\n  <div data-dojo-attach-point=\"containerNode\"></div>\n</div>\n"),constructor:function(_677){if(dojo.config.isDebug){console.debug("Constructor invoked for mediavitamin.CarouselPerspectiveView");}this.shownItems=[];this.assetsToRemove=[];this._supportingWidgets=[];this._availableAssets={};},startup:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"startup");}this.inherited(arguments);dojo.setSelectable(this.domNode);var _678;var _679;this._parentNode=this.domNode;this._startMonitoringParentNode();this.controllerWidget=dijit.byId(this.controllerWidget);this.controllerWidget.registerView(this);this.prepareNewState();this.parentZIndex=this.getComputedZIndex(this.domNode);this.connect(this,"onParentSizeChange","handleParentResize");this.connect(this.domNode,"onclick","gotoNextItem");this.subscribe(this.controllerWidget.id+"/currentDataItem",dojo.hitch(this,"handleDataItemUpdate"));},gotoNextItem:function(){this.controllerWidget.set("currentDataItem",this.controllerWidget.getNextDataItemFromDataItem(this.controllerWidget.get("currentDataItem"),true));},handleDataItemUpdate:function(_67a){this.prepareNewState();},handleDataLoaded:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"handleDataLoaded");}this.prepareDom();},handleParentResize:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"handleParentResize");}this.prepareNewState();},prepareNewState:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"prepareNewState");}this.set("loadedAsset",this.controllerWidget.get("currentDataItem"));if(this.shownItems){this.oldShownItems=[];dojo.forEach(this.shownItems,function(item){this.oldShownItems.push({assetUniqueIndex:item.assetUniqueIndex,virtualZIndex:item.virtualZIndex,dataItem:item.dataItem,instance:item.instance});},this);}this.shownItems=this.computeAssetsToShow(this.get("loadedAsset"));if(this.oldShownItems){this.itemsToRemove=this.computeItemsToRemove(this.get("loadedAsset"));}assetLoadList=this._computeAssetsToBeLoaded(this.get("loadedAsset"));requiredLoader=this._loadAssets(assetLoadList.required,true);requiredLoader.combinedLoader.then(dojo.hitch(this,"_loadAssets",assetLoadList.optional));requiredLoader.combinedLoader.then(dojo.hitch(this,"onDataLoaded"));},computeAssetsToShow:function(_67b){if(dojo.config.isDebug){console.debug(this.id+": "+"computeAssetsToShow");}var _67c=[];var _67d;var _67e;var _67f;_67c.push({assetUniqueIndex:_67b.uniqueIndex});_67e=_67b;_67d=1;while(_67e&&(_67d<=(this.maxAmountOfItemsShown-1))){_67e=this.controllerWidget.getNextDataItemFromDataItem(_67e,true);if(_67e){_67c.push({assetUniqueIndex:_67e.uniqueIndex});}_67d=_67d+1;}_67f=_67c.length;_67c=_67c.reverse();dojo.forEach(_67c,function(_680,_681){dojo.mixin(_680,{virtualZIndex:_681});});_67c=_67c.reverse();return _67c;},computeItemsToRemove:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"computeItemsToRemove");}var _682=[];var _683;dojo.forEach(this.oldShownItems,function(_684){_683=false;dojo.forEach(this.shownItems,function(_685){if(_684.assetUniqueIndex===_685.assetUniqueIndex){_683=true;}});if(!_683){console.debug("found item to remove with index: "+_684.assetUniqueIndex);dojo.mixin(_684,{toBeRemoved:true});_682.push(_684);}},this);return _682;},prepareDom:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"prepareDom");}var _686=[];var _687=[];dojo.forEach(this.shownItems,function(item){_686.push(this.controllerWidget.assetLoader.assetStore.query({uniqueIndex:item.assetUniqueIndex})[0]);},this);dojo.forEach(_686,function(item,_688){if(!this._availableAssets[item.uniqueIndex]){var _689=item;var _68a=dojo.create("img",{},this.nodeCache,"last");var _68b=new mediavitamin.CarouselPerspectiveViewImageRepresentation({dataItem:_689,parentWidget:this},_68a);_68b.startup();this._availableAssets[item.uniqueIndex]={instance:_68b,dataItem:item};this._supportingWidgets.push(_68b);}dojo.mixin(this.shownItems[_688],this._availableAssets[item.uniqueIndex]);},this);if(this.itemsToRemove[0]){_686=this.itemsToRemove.concat(this.shownItems);}else{_686=this.shownItems;}dojo.forEach(_686,function(_68c){_687.push(this.styleAsset(_68c));},this);dojo.fx.combine(_687).play();},styleAsset:function(_68d){if(dojo.config.isDebug){console.debug(this.id+": "+"styleAsset");}var _68e,from,to,_68f,_690,_691;_691=this.controllerWidget.get("moveDirection");if(_691==="upwards"){if(_68d.toBeRemoved){_690=true;from=_68d.virtualZIndex;}else{from=_68d.virtualZIndex-1;}if(_68d.virtualZIndex===0){_68f=true;from=_68d.virtualZIndex;}}else{if(_691==="asddownwards"){if(_68d.toBeRemoved){console.debug("removing item with unique index of: "+_68d.assetUniqueIndex);_690=true;from=_68d.virtualZIndex;}else{from=_68d.virtualZIndex+1;}if(_68d.virtualZIndex>=this.shownItems.length-1){_68f=true;from=this.shownItems.length-1;}}else{if(_691==="nowhere"||_691==="downwards"){if(_68d.virtualZIndex>0){from=_68d.virtualZIndex-1;}else{from=0;}_68f=true;}else{console.error("move direction not forseen.");}}}to=_68d.virtualZIndex;if(_68d.toBeRemoved){_690=true;}_68e={from:from,to:to,fromNodeCache:_68f,destroy:_690};dojo.style(_68d.instance.domNode,{position:"absolute"});dojo.style(_68d.instance.domNode,{zIndex:(this.parentZIndex||this.getComputedZIndex(this.domNode))+_68d.virtualZIndex});return _68d.instance.transition(_68e);},setLoadedAssetAttr:function(_692){this._set("_loadedAsset",_692);},getLoadedAssetAttr:function(){return this._loadedAsset;},setCurrentIndexAttr:function(_693){this._set("_currentIndex",_693);},setCurrentCollectionAttr:function(_694){this._set("_currentCollection",_694);},getCurrentIndexAttr:function(){return this._currentIndex;},getCurrentCollectionAttr:function(){return this._currentCollection;},getImageScaleByZIndex:function(_695){var _696=[1,0.9,0.8,0.7];_696=_696.reverse();return _696[_695];},getImageScaleForTopExit:function(){return 1.2;},getImageScaleForBottomExit:function(){return 0.5;},getImageTranslationByZIndex:function(_697){var _698=this.controllerWidget.getCurrentItems().length;_697=_697+1;_697=_698-_697;var _699=[{x:300,y:76},{x:189,y:96},{x:90,y:116}];if(_697>-1){return _699[_697];}else{return {x:300,y:76};}},getImageTranslationForTopExit:function(){return {x:-100,y:-50};},getImageTranslationForBottomExit:function(){return {x:800,y:250};},getOpacityByZIndex:function(_69a){var _69b=[1,0.8,0.6];_69b=_69b.reverse();return _69b[_69a];},getOpacityForTopExit:function(){return 0;},getOpacityForBottomExit:function(){return 0;},onDataLoaded:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"onDataLoaded");}this.handleDataLoaded();}});dojo.declare("mediavitamin.CarouselPerspectiveViewImageRepresentation",[dijit._Widget],{animationDuration:600,constructor:function(_69c){if(dojo.config.isDebug){console.debug("instantiated image for: "+_69c.dataItem.itemSrc);}this.imageSource=_69c.dataItem.itemSrc;this.parentWidget=_69c.parentWidget;this.dataItem=_69c.dataItem;this._supportingWidgets=[];},startup:function(){this.domNode=dojo.create("img",{src:this.imageSource},this.domNode,"replace");},destroy:function(){if(dojo.config.isDebug){console.debug(this.id+": "+"destroy");}delete this.parentWidget._availableAssets[this.dataItem.uniqueIndex];dojo.forEach(this._supportingWidgets,function(_69d){_69d.destroyRecursive();});this.inherited(arguments);},moveToContainerNode:function(_69e,_69f){if(dojo.config.isDebug){console.debug(this.id+": "+"moveToContainerNode");}dojo.place(_69e,this.parentWidget.containerNode,_69f);},transition:function(_6a0){if(dojo.config.isDebug){console.debug(this.id+": "+"transition");}var _6a1,_6a2,_6a3,_6a4,_6a5,_6a6,_6a7,_6a8,_6a9,that,_6aa,_6ab;that=this;_6aa=this.parentWidget.getResizedAssetSizeByWidth({node:this.domNode,assetWidth:Math.round(this.dataItem.itemWidth),assetHeight:Math.round(this.dataItem.itemHeight),targetHeight:Math.round(this.parentWidget.parentMarginBox.h*this.parentWidget.getImageScaleByZIndex(_6a0.from))});_6ab=this.parentWidget.getResizedAssetSizeByWidth({node:this.domNode,assetWidth:Math.round(this.dataItem.itemWidth),assetHeight:Math.round(this.dataItem.itemHeight),targetHeight:Math.round(this.parentWidget.parentMarginBox.h*this.parentWidget.getImageScaleByZIndex(_6a0.to))});_6a2={start:Math.round(this.parentWidget.getImageTranslationByZIndex(_6a0.from).x),end:Math.round(this.parentWidget.getImageTranslationByZIndex(_6a0.to).x),units:"px"};_6a3={start:Math.round(this.parentWidget.getImageTranslationByZIndex(_6a0.from).y),end:Math.round(this.parentWidget.getImageTranslationByZIndex(_6a0.to).y),units:"px"};_6a4={start:this.parentWidget.getOpacityByZIndex(_6a0.from),end:this.parentWidget.getOpacityByZIndex(_6a0.to)||1};_6a5={start:Math.round(_6aa.width),end:Math.round(_6ab.width),units:"px"};_6a6={start:Math.round(_6aa.height),end:Math.round(_6ab.height),units:"px"};if(_6a0.fromNodeCache){if(_6a0.to===0){_6a9="first";}else{_6a9="last";}var that;_6a7=function(){that.moveToContainerNode(that.domNode,_6a9);};}if(_6a0.from===this.parentWidget.controllerWidget.getCurrentItems().length-1){_6a8=function(){dojo.forEach(that._supportingWidgets,function(_6ac){_6ac.destroyRecursive();});};}if(_6a0.to===(this.parentWidget.controllerWidget.getCurrentItems().length-1)){var that=this;_6a8=function(){if(that._supportingWidgets[0]){dojo.forEach(that._supportingWidgets,function(_6ad){_6ad.destroyRecursive();});dojo.query(".magnifierContainer").forEach(function(node){dojo.destroy(node);});}var _6ae=dojo.create("div",{"class":"magnifierContainer",style:{zIndex:2500,right:_6a2.end+"px",top:_6a3.end+"px",width:_6a5.end+"px",height:_6a6.end+"px",position:"absolute"}},that.parentWidget.containerNode,"last");var _6af=dojo.create("img",{style:{display:"none"}},_6ae,"first");dojo.setSelectable(_6ae);dojo.setSelectable(_6af);that.connect(_6af,"onload",function(evt){dojo.attr(evt.target,"width",_6a5.end+"px");dojo.attr(evt.target,"height",_6a6.end+"px");dojo.attr(evt.target,{style:{position:"relative",left:"0px",top:"0px",display:"block"}});that._supportingWidgets.push(new mediavitamin.ImageMagnifier({scale:3,glassSize:200},evt.target));that.isMagnified=true;});_6af.src=that.domNode.src;};}_6a1=dojo.animateProperty({node:this.domNode,duration:this.animationDuration,properties:{right:_6a2,top:_6a3,opacity:_6a4,width:_6a5,height:_6a6,onBegin:_6a7,onEnd:_6a8}});return _6a1;},destroyRecursive:function(){dojo.forEach(this._supportingWidgets,function(_6b0){_6b0.destroyRecursive();});this.inherited(arguments);}});}if(!dojo._hasResource["gluecklich.ProductPageBase"]){dojo._hasResource["gluecklich.ProductPageBase"]=true;dojo.provide("gluecklich.ProductPageBase");dojo.declare("gluecklich.ProductPageBase",null,{constructor:function(){},init:function(){dojo.xhrGet({url:this.config.i18nGeneralDataFile,handleAs:"json"}).then(dojo.hitch(this,"_setupMenu"));this._adjustProductParentContainerSize();dojo.connect(window,"resize",this,"_adjustProductParentContainerSize");},_adjustProductParentContainerSize:function(){var _6b1=dojo.coords(dojo.query(".border")[0]);var _6b2=dojo.query(".contentsRight")[0];var _6b3=dojo.byId("mediavitamin_CarouselPerspectiveView_0");var _6b4=dojo.window.getBox();var _6b5=_6b4.w-(_6b1.w+_6b1.x)-40;var _6b6=_6b4.h-45-42-85;if(_6b5<10){_6b5=10;}if(_6b6<10){_6b6=10;}dojo.style(_6b2,{maxWidth:_6b5+"px",minWidth:_6b5-10+"px",height:_6b6+"px"});dojo.style(_6b3,{maxWidth:_6b5+"px",minWidth:_6b5-10+"px",height:_6b6+"px"});},_setupMenu:function(_6b7){nls.regCatId("i18n_products",_6b7.i18n_products);nls.regCatId("i18n_contact",_6b7.i18n_contact);nls.regCatId("i18n_shops",_6b7.i18n_shops);nls.regCatId("i18n_friends",_6b7.i18n_friends);nls.regCatId("i18n_facebooklink",_6b7.i18n_facebooklink);},setupNls:function(){dojo.query(".langMenuHolder .langMenuItem").forEach(function(node){dojo.connect(node,"onclick",this,"activateLanguage");},this);},activateLanguage:function(_6b8){nls.setLang(_6b8.target.id);dojo.query(".langMenuHolder .langMenuItem").forEach(function(node){if(node.id===_6b8.target.id){dojo.addClass(node,"active");}else{dojo.removeClass(node,"active");}});}});}if(!dojo._hasResource["gluecklich.GenericProduct"]){dojo._hasResource["gluecklich.GenericProduct"]=true;dojo.provide("gluecklich.GenericProduct");dojo.declare("gluecklich.GenericProduct",[gluecklich.ProductPageBase],{constructor:function(){if(dojo.isIE<=7){alert("Da Ihre version von Internet Explorer vor mehr als Zehn Jahre auf dem Markt gebracht wurde, ist dieser heutzutage leider nicht mehr unterstützt. Bitte führen Sie eine Betriebsystemaktualisierung durch Windows Update durch, um eine aktuelle Version von Internet Explorer zu benutzen.\n\nLa versione di Internet Explorer che state correntemente utilizzando e' stata rilasciata sul mercato piu' di dieci anni fa. Per questo motivo, non e' piu' supportata. Vi preghiamo di utilizzare Windows Update ed effettuare un aggiornamento gratuito del sistema operativo per ottenere una versione aggiornata di Internet Explorer.\n\nYour version of Internex explorer is outdated and unsupported. Please use Windows Update to obtain a more recent copy of Internet Explorer.");}},init:function(){dojo.parser.parse();this.config={i18nGeneralDataFile:"./data/content/common_stuff/navigation_elements.json",i18nPageDataFile:"./data/content/products/navigation_elements.json"};this.inherited(arguments);dojo.xhrGet({url:this.config.i18nPageDataFile,handleAs:"json"}).then(dojo.hitch(this,"setupContent"));this.setupNls();this.setupEvents();},setupContent:function(_6b9){nls.regCatId("i18n_janker",_6b9.i18n_janker);nls.regCatId("i18n_weste",_6b9.i18n_weste);nls.regCatId("i18n_cappotto",_6b9.i18n_mantel);nls.regCatId("i18n_womans",_6b9.i18n_womans);nls.regCatId("i18n_mens",_6b9.i18n_mens);},handleNewContent:function(_6ba){var _6bb={en:_6ba.metaData.descriptionEn,de:_6ba.metaData.descriptionDe,it:_6ba.metaData.descriptionIt};nls.regCatId("i18n_productText",_6bb);},setupEvents:function(){dojo.query(".pagerButton").forEach(function(node){dojo.connect(node,"onclick",this,"handleButtonClick");},this);dojo.subscribe(dijit.byId("mediaController").id+"/currentDataItem",dojo.hitch(this,"handleDataItemUpdate"));dijit.byId("mediaController").queue.subscribeQueue({topic:"mediaController/ready",callback:this.handleNewContent,scope:this,ignoreOlder:false});},handleButtonClick:function(evt){var _6bc=evt.target.id;var _6bd=_6bc.split("_")[1];dijit.byId("mediaController").set("currentDataItem",dijit.byId("mediaController").getItemByCollectionAndIndex(dijit.byId("mediaController").get("currentCollectionName"),_6bd));},handleDataItemUpdate:function(_6be){var _6bf=_6be.dataItem;var _6c0;var _6c1=dijit.byId("mediaController").getCurrentItems().length;var _6c2;this.handleNewContent(_6be.dataItem);for(_6c0=0;_6c0<_6c1;_6c0++){_6c2=dojo.byId("pagerButton_"+_6c0);if(_6c0===_6bf.collectionIndex){dojo.addClass(_6c2,"active");}else{dojo.removeClass(_6c2,"active");}}}});}if(!dojo._hasResource["gluecklich.HomePage"]){dojo._hasResource["gluecklich.HomePage"]=true;dojo.provide("gluecklich.HomePage");dojo.declare("gluecklich.HomePage",[gluecklich.StandardPage],{constructor:function(){},init:function(){dojo.parser.parse();this.config={i18nGeneralDataFile:"/data/content/common_stuff/navigation_elements.json",i18nPageDataFile:"/data/content/index/index_nls_data.json",slideshowFileStore:"/data/context/index.json",slideShowImageCount:1,UseDefaultSlideShow:true,noLink:false};this.inherited(arguments);dojo.xhrGet({url:this.config.i18nPageDataFile,handleAs:"json"}).then(dojo.hitch(this,"setupContent"));this.setupSlideShow();this.setupNls();},setupContent:function(_6c3){nls.regCatId("i18n_homepagetext",_6c3.homepageText);}});}if(!dojo._hasResource["gluecklich.KontaktPage"]){dojo._hasResource["gluecklich.KontaktPage"]=true;dojo.provide("gluecklich.KontaktPage");dojo.declare("gluecklich.KontaktPage",[gluecklich.StandardPage],{constructor:function(){},init:function(){dojo.parser.parse();this.config={i18nGeneralDataFile:"./data/content/common_stuff/navigation_elements.json",i18nPageDataFile:"./data/content/team/team_nls_data.json",slideshowFileStore:"/data/context/white.json",slideShowImageCount:1,UseDefaultSlideShow:true};this.inherited(arguments);dojo.xhrGet({url:this.config.i18nPageDataFile,handleAs:"json"}).then(dojo.hitch(this,"setupContent"));this.setupSlideShow();this.setupNls();},setupContent:function(_6c4){nls.regCatId("i18n_theteamtitle",_6c4.theteamtitle);nls.regCatId("i18n_whoisgluecklich",_6c4.whoisgluecklich);nls.regCatId("i18n_team_headertext",_6c4.team_headertext);nls.regCatId("i18n_teamrole_claudia",_6c4.teamrole_claudia);nls.regCatId("i18n_teamrole_christoph",_6c4.teamrole_christoph);}});}if(!dojo._hasResource["gluecklich.MensProduct"]){dojo._hasResource["gluecklich.MensProduct"]=true;dojo.provide("gluecklich.MensProduct");dojo.declare("gluecklich.MensProduct",[gluecklich.GenericProduct,gluecklich.ProductPageBase],{constructor:function(){if(dojo.isIE<=7){alert("Da Ihre version von Internet Explorer vor mehr als Zehn Jahre auf dem Markt gebracht wurde, ist dieser heutzutage leider nicht mehr unterstützt. Bitte führen Sie eine Betriebsystemaktualisierung durch Windows Update durch, um eine aktuelle Version von Internet Explorer zu benutzen.\n\nLa versione di Internet Explorer che state correntemente utilizzando e' stata rilasciata sul mercato piu' di dieci anni fa. Per questo motivo, non e' piu' supportata. Vi preghiamo di utilizzare Windows Update ed effettuare un aggiornamento gratuito del sistema operativo per ottenere una versione aggiornata di Internet Explorer.\n\nYour version of Internex explorer is outdated and unsupported. Please use Windows Update to obtain a more recent copy of Internet Explorer.");}},setupEvents:function(){dojo.query(".pagerButton").forEach(function(node){dojo.connect(node,"onclick",this,"handleButtonClick");},this);dojo.subscribe(dijit.byId("mediaController").id+"/currentDataItem",dojo.hitch(this,"handleDataItemUpdate"));dijit.byId("mediaController").queue.subscribeQueue({topic:"mediaController/ready",callback:this.handleNewContent,scope:this,ignoreOlder:false});dojo.connect(dojo.byId("i18n_weste"),"onclick",this,"activateWeste");dojo.connect(dojo.byId("i18n_janker"),"onclick",this,"activateJanker");},activateWeste:function(){dijit.byId("mediaController").set("currentDataItem",dijit.byId("mediaController").getItemDataItemByIndex(1));},activateJanker:function(){dijit.byId("mediaController").set("currentDataItem",dijit.byId("mediaController").getItemDataItemByIndex(0));},setupContent:function(_6c5){nls.regCatId("i18n_janker",_6c5.i18n_janker);nls.regCatId("i18n_weste",_6c5.i18n_weste);nls.regCatId("i18n_womans",_6c5.i18n_womans);nls.regCatId("i18n_mens",_6c5.i18n_mens);},handleDataItemUpdate:function(_6c6){var _6c7=_6c6.dataItem;var _6c8;var _6c9=dijit.byId("mediaController").getCurrentItems().length;var _6ca;this.handleNewContent(_6c6.dataItem);for(_6c8=0;_6c8<_6c9;_6c8++){_6ca=dojo.byId("pagerButton_"+_6c8);if(_6c8===_6c7.collectionIndex){dojo.addClass(_6ca,"active");}else{dojo.removeClass(_6ca,"active");}}if(_6c7.collectionIndex===0){dojo.addClass(dojo.byId("i18n_janker"),"active");dojo.removeClass(dojo.byId("i18n_weste"),"active");}else{if(_6c7.collectionIndex===1){dojo.removeClass(dojo.byId("i18n_janker"),"active");dojo.addClass(dojo.byId("i18n_weste"),"active");}}}});}if(!dojo._hasResource["gluecklich.ShopsPage"]){dojo._hasResource["gluecklich.ShopsPage"]=true;dojo.provide("gluecklich.ShopsPage");dojo.declare("gluecklich.ShopsPage",[gluecklich.StandardPage],{constructor:function(){},init:function(){dojo.parser.parse();this.config={i18nGeneralDataFile:"./data/content/common_stuff/navigation_elements.json",i18nPageDataFile:"./data/content/shops/shops_nls_data.json",slideshowFileStore:"/data/context/white.json",slideShowImageCount:1,UseDefaultSlideShow:true};this.inherited(arguments);dojo.xhrGet({url:this.config.i18nPageDataFile,handleAs:"json"}).then(dojo.hitch(this,"setupContent"));this.setupSlideShow();this.setupNls();},setupContent:function(_6cb){nls.regCatId("i18n_shopstitle",_6cb.i18n_shopstitle);nls.regCatId("i18n_whoelsemakesgluecklich",_6cb.i18n_whoelsemakesgluecklich);}});}dojo.i18n._preloadLocalizations("dojo.nls.dojo",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);if(dojo.isBrowser&&(document.readyState==="complete"||dojo.config.afterOnLoad)){window.setTimeout(dojo._loadInit,100);}})();

