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

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

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

(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 _8=_1[i];_2+="var "+_8[0]+" = {}; "+_8[1]+" = "+_8[0]+";"+_8[1]+"._scopeName = '"+_8[1]+"';";_3+=(i==0?"":",")+_8[0];_4+=(i==0?"":",")+_8[1];_5[_8[0]]=_8[1];_6[_8[1]]=_8[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(!this["console"]){this.console={log:function(){}};}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 _c=tn+"";console[_c]=function(){var a=Array.apply({},arguments);a.unshift(_c+":");console.log(a.join(" "));};})();}}if(typeof dojo=="undefined"){this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){this.dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){this.dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var _f in djConfig){d.config[_f]=djConfig[_f];}}var _10=["Browser","Rhino","Spidermonkey","Mobile"];var t;while((t=_10.shift())){d["is"+t]=false;}dojo.locale=d.config.locale;var rev="$Rev: 13707 $".match(/\d+/);dojo.version={major:1,minor:1,patch:1,flag:"-kulsa",revision:rev?+rev[0]:999999,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());}dojo._mixin=function(obj,_14){var _15={};for(var x in _14){if(_15[x]===undefined||_15[x]!=_14[x]){obj[x]=_14[x];}}if(d["isIE"]&&_14){var p=_14.toString;if(typeof p=="function"&&p!=obj.toString&&p!=_15.toString&&p!="\nfunction toString() {\n    [native code]\n}\n"){obj.toString=_14.toString;}}return obj;};dojo.mixin=function(obj,_19){for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i]);}return obj;};dojo._getProp=function(_1c,_1d,_1e){var obj=_1e||d.global;for(var i=0,p;obj&&(p=_1c[i]);i++){if(i==0&&this._scopeMap[p]){p=this._scopeMap[p];}obj=(p in obj?obj[p]:(_1d?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_22,_23,_24){var _25=_22.split("."),p=_25.pop(),obj=d._getProp(_25,true,_24);return obj&&p?(obj[p]=_23):undefined;};dojo.getObject=function(_28,_29,_2a){return d._getProp(_28.split("."),_29,_2a);};dojo.exists=function(_2b,obj){return !!d.getObject(_2b,false,obj);};dojo["eval"]=function(_2d){return d.global.eval?d.global.eval(_2d):eval(_2d);};d.deprecated=d.experimental=function(){};})();(function(){var d=dojo;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(_2f){var mp=this._modulePrefixes;return !!(mp[_2f]&&mp[_2f].value);},_getModulePrefix:function(_31){var mp=this._modulePrefixes;if(this._moduleHasPrefix(_31)){return mp[_31].value;}return _31;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_33,_34,cb){var uri=((_33.charAt(0)=="/"||_33.match(/^\w+:/))?"":this.baseUrl)+_33;try{return !_34?this._loadUri(uri,cb):this._loadUriAndCheck(uri,_34,cb);}catch(e){console.error(e);return false;}};dojo._loadUri=function(uri,cb){if(this._loadedUrls[uri]){return true;}var _39=this._getText(uri,true);if(!_39){return false;}this._loadedUrls[uri]=true;this._loadedUrls.push(uri);if(cb){_39="("+_39+")";}else{_39=this._scopePrefix+_39+this._scopeSuffix;}if(d.isMoz){_39+="\r\n//@ sourceURL="+uri;}var _3a=d["eval"](_39);if(cb){cb(_3a);}return true;};dojo._loadUriAndCheck=function(uri,_3c,cb){var ok=false;try{ok=this._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return !!(ok&&this._loadedModules[_3c]);};dojo.loaded=function(){this._loadNotifying=true;this._postLoad=true;var mll=d._loaders;this._loaders=[];for(var x=0;x<mll.length;x++){try{mll[x]();}catch(e){throw e;console.error("dojo.addOnLoad callback failed: "+e,e);}}this._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded();}};dojo.unloaded=function(){var mll=this._unloaders;while(mll.length){(mll.pop())();}};var _42=function(arr,obj,fn){if(!fn){arr.push(obj);}else{if(fn){var _46=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_46.call(obj);});}}};dojo.addOnLoad=function(obj,_48){_42(d._loaders,obj,_48);if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};dojo.addOnUnload=function(obj,_4a){_42(d._unloaders,obj,_4a);};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"||(dojo.config.useXDomain&&d.isOpera)){if(dojo.isAIR){setTimeout(function(){dojo.loaded();},0);}else{setTimeout(dojo._scopeName+".loaded();",0);}}else{d.loaded();}};dojo._getModuleSymbols=function(_4b){var _4c=_4b.split(".");for(var i=_4c.length;i>0;i--){var _4e=_4c.slice(0,i).join(".");if((i==1)&&!this._moduleHasPrefix(_4e)){_4c[0]="../"+_4c[0];}else{var _4f=this._getModulePrefix(_4e);if(_4f!=_4e){_4c.splice(0,i,_4f);break;}}}return _4c;};dojo._global_omit_module_check=false;dojo._loadModule=dojo.require=function(_50,_51){_51=this._global_omit_module_check||_51;var _52=this._loadedModules[_50];if(_52){return _52;}var _53=this._getModuleSymbols(_50).join("/")+".js";var _54=(!_51)?_50:null;var ok=this._loadPath(_53,_54);if(!ok&&!_51){throw new Error("Could not load '"+_50+"'; last tried '"+_53+"'");}if(!_51&&!this._isXDomain){_52=this._loadedModules[_50];if(!_52){throw new Error("symbol '"+_50+"' is not defined after loading '"+_53+"'");}}return _52;};dojo.provide=function(_56){_56=_56+"";return (d._loadedModules[_56]=d.getObject(_56,true));};dojo.platformRequire=function(_57){var _58=_57.common||[];var _59=_58.concat(_57[d._name]||_57["default"]||[]);for(var x=0;x<_59.length;x++){var _5b=_59[x];if(_5b.constructor==Array){d._loadModule.apply(d,_5b);}else{d._loadModule(_5b);}}};dojo.requireIf=function(_5c,_5d){if(_5c===true){var _5e=[];for(var i=1;i<arguments.length;i++){_5e.push(arguments[i]);}d.require.apply(d,_5e);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_60,_61){d._modulePrefixes[_60]={name:_60,value:_61};};dojo.requireLocalization=function(_62,_63,_64,_65){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$");var ire=new RegExp("^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$");dojo._Url=function(){var n=null;var _a=arguments;var uri=[_a[0]];for(var i=1;i<_a.length;i++){if(!_a[i]){continue;}var _6c=new d._Url(_a[i]+"");var _6d=new d._Url(uri[0]+"");if(_6c.path==""&&!_6c.scheme&&!_6c.authority&&!_6c.query){if(_6c.fragment!=n){_6d.fragment=_6c.fragment;}_6c=_6d;}else{if(!_6c.scheme){_6c.scheme=_6d.scheme;if(!_6c.authority){_6c.authority=_6d.authority;if(_6c.path.charAt(0)!="/"){var _6e=_6d.path.substring(0,_6d.path.lastIndexOf("/")+1)+_6c.path;var _6f=_6e.split("/");for(var j=0;j<_6f.length;j++){if(_6f[j]=="."){if(j==_6f.length-1){_6f[j]="";}else{_6f.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_6f[0]=="")&&_6f[j]==".."&&_6f[j-1]!=".."){if(j==(_6f.length-1)){_6f.splice(j,1);_6f[j-1]="";}else{_6f.splice(j-1,2);j-=2;}}}}_6c.path=_6f.join("/");}}}}uri=[];if(_6c.scheme){uri.push(_6c.scheme,":");}if(_6c.authority){uri.push("//",_6c.authority);}uri.push(_6c.path);if(_6c.query){uri.push("?",_6c.query);}if(_6c.fragment){uri.push("#",_6c.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[5];this.port=r[7]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_72,url){var loc=d._getModuleSymbols(_72).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _75=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_75==-1||_75>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 _77=document.getElementsByTagName("script");var _78=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_77.length;i++){var src=_77[i].getAttribute("src");if(!src){continue;}var m=src.match(_78);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=_77[i].getAttribute("djConfig");if(cfg){var _7d=eval("({ "+cfg+" })");for(var x in _7d){dojo.config[x]=_7d[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent;var dav=n.appVersion;var tv=parseFloat(dav);d.isOpera=(dua.indexOf("Opera")>=0)?tv:0;var idx=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(idx){d.isSafari=parseFloat(dav.split("Version/")[1])||((parseFloat(dav.substr(idx+7))>=419.3)?3:2)||2;}d.isAIR=(dua.indexOf("AdobeAIR")>=0)?1:0;d.isKhtml=(dav.indexOf("Konqueror")>=0||d.isSafari)?tv:0;d.isMozilla=d.isMoz=(dua.indexOf("Gecko")>=0&&!d.isKhtml)?tv:0;d.isFF=d.isIE=0;if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1])||0;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||0;}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}var cm=document.compatMode;d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;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 _85=null;var _86=null;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_85=new XMLHttpRequest();}catch(e){}}if(!_85){for(var i=0;i<3;++i){var _88=d._XMLHTTP_PROGIDS[i];try{_85=new ActiveXObject(_88);}catch(e){_86=e;}if(_85){d._XMLHTTP_PROGIDS=[_88];break;}}}if(!_85){throw new Error("XMLHTTP not available: "+_86);}return _85;};d._isDocumentOk=function(_89){var _8a=_89.status||0;return (_8a>=200&&_8a<300)||_8a==304||_8a==1223||(!_8a&&(location.protocol=="file:"||location.protocol=="chrome:"));};var _8b=window.location+"";var _8c=document.getElementsByTagName("base");var _8d=(_8c&&_8c.length>0);d._getText=function(uri,_8f){var _90=this._xhrObj();if(!_8d&&dojo._Url){uri=(new dojo._Url(_8b,uri)).toString();}if(d.config.cacheBust){uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_90.open("GET",uri,false);try{_90.send(null);if(!d._isDocumentOk(_90)){var err=Error("Unable to load "+uri+" status:"+_90.status);err.status=_90.status;err.responseText=_90.responseText;throw err;}}catch(e){if(_8f){return null;}throw e;}return _90.responseText;};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var _93=(e&&e.type)?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_93!="domcontentloaded"&&_93!="load")){return;}arguments.callee.initialized=true;if("_khtmlTimer" in dojo){clearInterval(dojo._khtmlTimer);delete dojo._khtmlTimer;}if(dojo._inFlightCount==0){dojo._modulesLoaded();}};dojo._fakeLoadInit=function(){dojo._loadInit({type:"load"});};if(!dojo.config.afterOnLoad){if(document.addEventListener){if(dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){document.addEventListener("DOMContentLoaded",dojo._loadInit,null);}window.addEventListener("load",dojo._loadInit,null);}if(dojo.isAIR){window.addEventListener("load",dojo._loadInit,null);}else{if(/(WebKit|khtml)/i.test(navigator.userAgent)){dojo._khtmlTimer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dojo._loadInit();}},10);}}}(function(){var _w=window;var _95=function(_96,fp){var _98=_w[_96]||function(){};_w[_96]=function(){fp.apply(_w,arguments);_98.apply(_w,arguments);};};if(dojo.isIE){if(!dojo.config.afterOnLoad){document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");}var _99=true;_95("onbeforeunload",function(){_w.setTimeout(function(){_99=false;},0);});_95("onunload",function(){if(_99){dojo.unloaded();}});try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");}catch(e){}}else{_95("onbeforeunload",function(){dojo.unloaded();});}})();}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _9b in mp){dojo.registerModulePath(_9b,mp[_9b]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");dojo.isString=function(it){return !!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=(function(){var _9e=function(it){return it&&(typeof it=="function"||it instanceof Function);};return dojo.isSafari?function(it){if(typeof it=="function"&&it=="[object NodeList]"){return false;}return _9e(it);}:_9e;})();dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));};dojo.isArrayLike=function(it){var d=dojo;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&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_a5,_a6){for(var i=1,l=arguments.length;i<l;i++){dojo._mixin(_a5.prototype,arguments[i]);}return _a5;};dojo._hitchArgs=function(_a9,_aa){var pre=dojo._toArray(arguments,2);var _ac=dojo.isString(_aa);return function(){var _ad=dojo._toArray(arguments);var f=_ac?(_a9||dojo.global)[_aa]:_aa;return f&&f.apply(_a9||this,pre.concat(_ad));};};dojo.hitch=function(_af,_b0){if(arguments.length>2){return dojo._hitchArgs.apply(dojo,arguments);}if(!_b0){_b0=_af;_af=null;}if(dojo.isString(_b0)){_af=_af||dojo.global;if(!_af[_b0]){throw (["dojo.hitch: scope[\"",_b0,"\"] is null (scope=\"",_af,"\")"].join(""));}return function(){return _af[_b0].apply(_af,arguments||[]);};}return !_af?_b0:function(){return _b0.apply(_af,arguments||[]);};};dojo.delegate=dojo._delegate=function(obj,_b2){function TMP(){};TMP.prototype=obj;var tmp=new TMP();if(_b2){dojo.mixin(tmp,_b2);}return tmp;};dojo.partial=function(_b4){var arr=[null];return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));};dojo._toArray=function(obj,_b7,_b8){var arr=_b8||[];for(var x=_b7||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo.clone=function(o){if(!o){return o;}if(dojo.isArray(o)){var r=[];for(var i=0;i<o.length;++i){r.push(dojo.clone(o[i]));}return r;}if(!dojo.isObject(o)){return o;}if(o.nodeType&&o.cloneNode){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}var r=new o.constructor();for(var i in o){if(!(i in r)||r[i]!=o[i]){r[i]=dojo.clone(o[i]);}}return r;};dojo.trim=function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");dojo.declare=function(_bf,_c0,_c1){var dd=arguments.callee,_c3;if(dojo.isArray(_c0)){_c3=_c0;_c0=_c3.shift();}if(_c3){dojo.forEach(_c3,function(m){if(!m){throw (_bf+": mixin #"+i+" is null");}_c0=dd._delegate(_c0,m);});}var _c5=(_c1||0).constructor,_c6=dd._delegate(_c0),fn;for(var i in _c1){if(dojo.isFunction(fn=_c1[i])&&!0[i]){fn.nom=i;}}dojo.extend(_c6,{declaredClass:_bf,_constructor:_c5,preamble:null},_c1||0);_c6.prototype.constructor=_c6;return dojo.setObject(_bf,_c6);};dojo.mixin(dojo.declare,{_delegate:function(_c9,_ca){var bp=(_c9||0).prototype,mp=(_ca||0).prototype;var _cd=dojo.declare._makeCtor();dojo.mixin(_cd,{superclass:bp,mixin:mp,extend:dojo.declare._extend});if(_c9){_cd.prototype=dojo._delegate(bp);}dojo.extend(_cd,dojo.declare._core,mp||0,{_constructor:null,preamble:null});_cd.prototype.constructor=_cd;_cd.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;return _cd;},_extend:function(_ce){for(var i in _ce){if(dojo.isFunction(fn=_ce[i])&&!0[i]){fn.nom=i;}}dojo.extend(this,_ce);},_makeCtor:function(){return function(){this._construct(arguments);};},_core:{_construct:function(_d0){var c=_d0.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_d0,ii,fn;if(a[0]){if(((fn=a[0].preamble))){a=fn.apply(this,a)||a;}}if((fn=c.prototype.preamble)){a=fn.apply(this,a)||a;}if(ct&&ct.apply){ct.apply(this,a);}if(mct&&mct.apply){mct.apply(this,a);}if((ii=c.prototype._constructor)){ii.apply(this,_d0);}if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){ct.apply(this,_d0);}},_findMixin:function(_d9){var c=this.constructor,p,m;while(c){p=c.superclass;m=c.mixin;if(m==_d9||(m instanceof _d9.constructor)){return p;}if(m&&(m=m._findMixin(_d9))){return m;}c=p&&p.constructor;}},_findMethod:function(_dd,_de,_df,has){var p=_df,c,m,f;do{c=p.constructor;m=c.mixin;if(m&&(m=this._findMethod(_dd,_de,m,has))){return m;}if((f=p[_dd])&&(has==(f==_de))){return p;}p=c.superclass;}while(p);return !has&&(p=this._findMixin(_df))&&this._findMethod(_dd,_de,p,has);},inherited:function(_e5,_e6,_e7){var a=arguments;if(!dojo.isString(a[0])){_e7=_e6;_e6=_e5;_e5=_e6.callee.nom;}a=_e7||_e6;var c=_e6.callee,p=this.constructor.prototype,fn,mp;if(this[_e5]!=c||p[_e5]==c){mp=this._findMethod(_e5,c,p,true);if(!mp){throw (this.declaredClass+": inherited method \""+_e5+"\" mismatch");}p=this._findMethod(_e5,c,mp,false);}fn=p&&p[_e5];if(!fn){throw (mp.declaredClass+": inherited method \""+_e5+"\" not found");}return fn.apply(this,a);}}});}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;var r=t&&t.apply(this,arguments);for(var i in ls){if(!(i in ap)){ls[i].apply(this,arguments);}}return r;};},add:function(_f3,_f4,_f5){_f3=_f3||dojo.global;var f=_f3[_f4];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_f3[_f4]=d;}return f._listeners.push(_f5);},remove:function(_f8,_f9,_fa){var f=(_f8||dojo.global)[_f9];if(f&&f._listeners&&_fa--){delete f._listeners[_fa];}}};dojo.connect=function(obj,_fd,_fe,_ff,_100){var a=arguments,args=[],i=0;args.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];args.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){args.push(a[i]);}return dojo._connect.apply(this,args);};dojo._connect=function(obj,_106,_107,_108){var l=dojo._listener,h=l.add(obj,_106,dojo.hitch(_107,_108));return [obj,_106,h,l];};dojo.disconnect=function(_10b){if(_10b&&_10b[0]!==undefined){dojo._disconnect.apply(this,_10b);delete _10b[0];}};dojo._disconnect=function(obj,_10d,_10e,_10f){_10f.remove(obj,_10d,_10e);};dojo._topics={};dojo.subscribe=function(_110,_111,_112){return [_110,dojo._listener.add(dojo._topics,_110,dojo.hitch(_111,_112))];};dojo.unsubscribe=function(_113){if(_113){dojo._listener.remove(dojo._topics,_113[0],_113[1]);}};dojo.publish=function(_114,args){var f=dojo._topics[_114];if(f){f.apply(this,args||[]);}};dojo.connectPublisher=function(_117,obj,_119){var pf=function(){dojo.publish(_117,arguments);};return (_119)?dojo.connect(obj,_119,pf):dojo.connect(obj,pf);};}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");dojo.Deferred=function(_11b){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_11b;this.silentlyCancelled=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){var err;if(this.fired==-1){if(this.canceller){err=this.canceller(this);}else{this.silentlyCancelled=true;}if(this.fired==-1){if(!(err instanceof Error)){var res=err;err=new Error("Deferred Cancelled");err.dojoType="cancel";err.cancelResult=res;}this.errback(err);}}else{if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){this.results[0].cancel();}}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}this.silentlyCancelled=false;return;}},callback:function(res){this._check();this._resback(res);},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res);}this._resback(res);},addBoth:function(cb,cbfn){var _124=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_124,_124);},addCallback:function(cb,cbfn){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(cb,cbfn){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0){this._fire();}return this;},_fire:function(){var _12b=this.chain;var _12c=this.fired;var res=this.results[_12c];var self=this;var cb=null;while((_12b.length>0)&&(this.paused==0)){var f=_12b.shift()[_12c];if(!f){continue;}try{res=f(res);_12c=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){self._resback(res);self.paused--;if((self.paused==0)&&(self.fired>=0)){self._fire();}};this.paused++;}}catch(err){console.debug(err);_12c=1;res=err;}}this.fired=_12c;this.results[_12c]=res;if((cb)&&(this.paused)){res.addBoth(cb);}}});}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,_135,_136){if(it===undefined){return "undefined";}var _137=typeof it;if(_137=="number"||_137=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}if(it.nodeType&&it.cloneNode){return "";}var _138=arguments.callee;var _139;_136=_136||"";var _13a=_135?_136+dojo.toJsonIndentStr:"";if(typeof it.__json__=="function"){_139=it.__json__();if(it!==_139){return _138(_139,_135,_13a);}}if(typeof it.json=="function"){_139=it.json();if(it!==_139){return _138(_139,_135,_13a);}}var sep=_135?" ":"";var _13c=_135?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_138(obj,_135,_13a);if(typeof val!="string"){val="undefined";}return _13c+_13a+val;});return "["+res.join(","+sep)+_13c+_136+"]";}if(_137=="function"){return null;}var _140=[];for(var key in it){var _142;if(typeof key=="number"){_142="\""+key+"\"";}else{if(typeof key=="string"){_142=dojo._escapeString(key);}else{continue;}}val=_138(it[key],_135,_13a);if(typeof val!="string"){continue;}_140.push(_13c+_13a+_142+":"+sep+val);}return "{"+_140.join(","+sep)+_13c+_136+"}";};}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _143=function(arr,obj,cb){return [dojo.isString(arr)?arr.split(""):arr,obj||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];};dojo.mixin(dojo,{indexOf:function(_147,_148,_149,_14a){var step=1,end=_147.length||0,i=0;if(_14a){i=end-1;step=end=-1;}if(_149!=undefined){i=_149;}if((_14a&&i>end)||i<end){for(;i!=end;i+=step){if(_147[i]==_148){return i;}}}return -1;},lastIndexOf:function(_14d,_14e,_14f){return dojo.indexOf(_14d,_14e,_14f,true);},forEach:function(arr,_151,_152){if(!arr||!arr.length){return;}var _p=_143(arr,_152,_151);arr=_p[0];for(var i=0,l=_p[0].length;i<l;i++){_p[2].call(_p[1],arr[i],i,arr);}},_everyOrSome:function(_156,arr,_158,_159){var _p=_143(arr,_159,_158);arr=_p[0];for(var i=0,l=arr.length;i<l;i++){var _15d=!!_p[2].call(_p[1],arr[i],i,arr);if(_156^_15d){return _15d;}}return _156;},every:function(arr,_15f,_160){return this._everyOrSome(true,arr,_15f,_160);},some:function(arr,_162,_163){return this._everyOrSome(false,arr,_162,_163);},map:function(arr,_165,_166){var _p=_143(arr,_166,_165);arr=_p[0];var _168=(arguments[3]?(new arguments[3]()):[]);for(var i=0;i<arr.length;++i){_168.push(_p[2].call(_p[1],arr[i],i,arr));}return _168;},filter:function(arr,_16b,_16c){var _p=_143(arr,_16c,_16b);arr=_p[0];var _16e=[];for(var i=0;i<arr.length;i++){if(_p[2].call(_p[1],arr[i],i,arr)){_16e.push(arr[i]);}}return _16e;}});})();}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");dojo.Color=function(_170){if(_170){this.setColor(_170);}};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]};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(_176){var d=dojo;if(d.isString(_176)){d.colorFromString(_176,this);}else{if(d.isArray(_176)){d.colorFromArray(_176,this);}else{this._set(_176.r,_176.g,_176.b,_176.a);if(!(_176 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=dojo.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(_17d){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_17d?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_180,end,_182,obj){var d=dojo,t=obj||new dojo.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_180[x]+(end[x]-_180[x])*_182;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_187,obj){var m=_187.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_18a,obj){var d=dojo,t=obj||new d.Color(),bits=(_18a.length==4)?4:8,mask=(1<<bits)-1;_18a=Number("0x"+_18a.substr(1));if(isNaN(_18a)){return null;}d.forEach(["b","g","r"],function(x){var c=_18a&mask;_18a>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new dojo.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=dojo.Color.named[str];return a&&dojo.colorFromArray(a,obj)||dojo.colorFromRgb(str,obj)||dojo.colorFromHex(str,obj);};}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo._gearsObject=function(){var _198;var _199;var _19a=dojo.getObject("google.gears");if(_19a){return _19a;}if(typeof GearsFactory!="undefined"){_198=new GearsFactory();}else{if(dojo.isIE){try{_198=new ActiveXObject("Gears.Factory");}catch(e){}}else{if(navigator.mimeTypes["application/x-googlegears"]){_198=document.createElement("object");_198.setAttribute("type","application/x-googlegears");_198.setAttribute("width",0);_198.setAttribute("height",0);_198.style.display="none";document.documentElement.appendChild(_198);}}}if(!_198){return null;}dojo.setObject("google.gears.factory",_198);return dojo.getObject("google.gears");};dojo.isGears=(!!dojo._gearsObject())||0;dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_19b,_19c){dojo.global=_19b;dojo.doc=_19c;};dojo._fireCallback=function(_19d,_19e,_19f){if(_19e&&dojo.isString(_19d)){_19d=_19e[_19d];}return _19d.apply(_19e,_19f||[]);};dojo.withGlobal=function(_1a0,_1a1,_1a2,_1a3){var rval;var _1a5=dojo.global;var _1a6=dojo.doc;try{dojo.setContext(_1a0,_1a0.document);rval=dojo._fireCallback(_1a1,_1a2,_1a3);}finally{dojo.setContext(_1a5,_1a6);}return rval;};dojo.withDoc=function(_1a7,_1a8,_1a9,_1aa){var rval;var _1ac=dojo.doc;try{dojo.doc=_1a7;rval=dojo._fireCallback(_1a8,_1a9,_1aa);}finally{dojo.doc=_1ac;}return rval;};}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);var _1b1=name;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,_1b5,_1b6){if(node){node.removeEventListener(del._normalizeEventName(_1b5),_1b6,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,_1bc){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";}});dojo.fixEvent=function(evt,_1bf){return del._fixEvent(evt,_1bf);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _1c1=dojo._listener;dojo._connect=function(obj,_1c3,_1c4,_1c5,_1c6){var _1c7=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=!_1c7?0:(!_1c6?1:2),l=[dojo._listener,del,_1c1][lid];var h=l.add(obj,_1c3,dojo.hitch(_1c4,_1c5));return [obj,_1c3,h,lid];};dojo._disconnect=function(obj,_1cc,_1cd,_1ce){([dojo._listener,del,_1c1][_1ce]).remove(obj,_1cc,_1cd);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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};if(dojo.isIE){var _1cf=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;if(!dojo.config._allow_leaks){_1c1=iel=dojo._ie_listener={handlers:[],add:function(_1d3,_1d4,_1d5){_1d3=_1d3||dojo.global;var f=_1d3[_1d4];if(!f||!f._listeners){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d._listeners=[];f=_1d3[_1d4]=d;}return f._listeners.push(ieh.push(_1d5)-1);},remove:function(_1d9,_1da,_1db){var f=(_1d9||dojo.global)[_1da],l=f&&f._listeners;if(f&&l&&_1db--){delete ieh[l[_1db]];delete l[_1db];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_1df,fp){if(!node){return;}_1df=del._normalizeEventName(_1df);if(_1df=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd._listeners||!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,_1df,del._fixCallback(fp));},remove:function(node,_1e4,_1e5){_1e4=del._normalizeEventName(_1e4);iel.remove(node,_1e4,_1e5);if(_1e4=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_1e7){return _1e7.slice(0,2)!="on"?"on"+_1e7:_1e7;},_nop:function(){},_fixEvent:function(evt,_1e9){if(!evt){var w=_1e9&&(_1e9.ownerDocument||_1e9.document||_1e9).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_1e9||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _1ed=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _1ee=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_1ed.scrollLeft||0)-_1ee.x;evt.pageY=evt.clientY+(_1ed.scrollTop||0)-_1ee.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}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;},_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},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp._listeners){return;}var k=evt.keyCode;var _1f4=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_1f4||evt.ctrlKey){var c=_1f4?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);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_1cf(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_1cf(this,0);}this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);};}del._synthesizeEvent=function(evt,_1f9){var faux=dojo.mixin({},evt,_1f9);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_1fc){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.isSafari){dojo.mixin(del,{_fixEvent:function(evt,_1ff){switch(evt.type){case "keypress":var c=evt.charCode,s=evt.shiftKey,k=evt.keyCode;k=k||_203[evt.keyIdentifier]||0;if(evt.keyIdentifier=="Enter"){c=0;}else{if((evt.ctrlKey)&&(c>0)&&(c<27)){c+=96;}else{if(c==dojo.keys.SHIFT_TAB){c=dojo.keys.TAB;s=true;}else{c=(c>=32&&c<63232?c:0);}}}return del._synthesizeEvent(evt,{charCode:c,shiftKey:s,keyCode:k});}return evt;}});dojo.mixin(dojo.keys,{SHIFT_TAB:25,UP_ARROW:63232,DOWN_ARROW:63233,LEFT_ARROW:63234,RIGHT_ARROW:63235,F1:63236,F2:63237,F3:63238,F4:63239,F5:63240,F6:63241,F7:63242,F8:63243,F9:63244,F10:63245,F11:63246,F12:63247,PAUSE:63250,DELETE:63272,HOME:63273,END:63275,PAGE_UP:63276,PAGE_DOWN:63277,INSERT:63302,PRINT_SCREEN:63248,SCROLL_LOCK:63249,NUM_LOCK:63289});var dk=dojo.keys,_203={"Up":dk.UP_ARROW,"Down":dk.DOWN_ARROW,"Left":dk.LEFT_ARROW,"Right":dk.RIGHT_ARROW,"PageUp":dk.PAGE_UP,"PageDown":dk.PAGE_DOWN};}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_206){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c._listeners,t=h[c.target];var r=t&&t.apply(_206,args);for(var i in ls){if(!(i in ap)){h[ls[i]].apply(_206,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.isOpera){dojo.byId=function(id,doc){if(dojo.isString(id)){var _d=doc||dojo.doc;var te=_d.getElementById(id);if(te&&te.attributes.id.value==id){return te;}else{var eles=_d.all[id];if(!eles||!eles.length){return eles;}var i=0;while((te=eles[i++])){if(te.attributes.id.value==id){return te;}}}}else{return id;}};}else{dojo.byId=function(id,doc){return dojo.isString(id)?(doc||dojo.doc).getElementById(id):id;};}(function(){var d=dojo;var _21a=null;dojo.addOnUnload(function(){_21a=null;});dojo._destroyElement=function(node){node=d.byId(node);try{if(!_21a){_21a=document.createElement("div");}_21a.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_21a.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_21d){try{node=d.byId(node);_21d=d.byId(_21d);while(node){if(node===_21d){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_21f){node=d.byId(node);if(d.isMozilla){node.style.MozUserSelect=_21f?"":"none";}else{if(d.isKhtml){node.style.KhtmlUserSelect=_21f?"auto":"none";}else{if(d.isIE){node.unselectable=_21f?"":"on";d.query("*",node).forEach(function(_220){_220.unselectable=_21f?"":"on";});}}}};var _221=function(node,ref){ref.parentNode.insertBefore(node,ref);return true;};var _224=function(node,ref){var pn=ref.parentNode;if(ref==pn.lastChild){pn.appendChild(node);}else{return _221(node,ref.nextSibling);}return true;};dojo.place=function(node,_229,_22a){if(!node||!_229||_22a===undefined){return false;}node=d.byId(node);_229=d.byId(_229);if(typeof _22a=="number"){var cn=_229.childNodes;if((_22a==0&&cn.length==0)||cn.length==_22a){_229.appendChild(node);return true;}if(_22a==0){return _221(node,_229.firstChild);}return _224(node,cn[_22a-1]);}switch(_22a.toLowerCase()){case "before":return _221(node,_229);case "after":return _224(node,_229);case "first":if(_229.firstChild){return _221(node,_229.firstChild);}default:_229.appendChild(node);return true;}};dojo.boxModel="content-box";if(d.isIE){var _dcm=document.compatMode;d.boxModel=_dcm=="BackCompat"||_dcm=="QuirksMode"||d.isIE<6?"border-box":"content-box";}var gcs,dv=document.defaultView;if(d.isSafari){gcs=function(node){var 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.currentStyle;};}else{gcs=function(node){return dv.getComputedStyle(node,null);};}}dojo.getComputedStyle=gcs;if(!d.isIE){dojo._toPixelValue=function(_233,_234){return parseFloat(_234)||0;};}else{dojo._toPixelValue=function(_235,_236){if(!_236){return 0;}if(_236=="medium"){return 4;}if(_236.slice&&(_236.slice(-2)=="px")){return parseFloat(_236);}with(_235){var _237=style.left;var _238=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_236;_236=style.pixelLeft;}catch(e){_236=0;}style.left=_237;runtimeStyle.left=_238;}return _236;};}var px=d._toPixelValue;dojo._getOpacity=d.isIE?function(node){try{return node.filters.alpha.opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE?function(node,_23d){if(_23d==1){var _23e=/FILTER:[^;]*;?/i;node.style.cssText=node.style.cssText.replace(_23e,"");if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){i.style.cssText=i.style.cssText.replace(_23e,"");});}}else{var o="Alpha(Opacity="+_23d*100+")";node.style.filter=o;}if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){i.style.filter=o;});}return _23d;}:function(node,_243){return node.style.opacity=_243;};var _244={left:true,top:true};var _245=/margin|padding|width|height|max|min|offset/;var _246=function(node,type,_249){type=type.toLowerCase();if(d.isIE&&_249=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(!(type in _244)){_244[type]=_245.test(type);}return _244[type]?px(node,_249):_249;};var _24a=d.isIE?"styleFloat":"cssFloat";var _24b={"cssFloat":_24a,"styleFloat":_24a,"float":_24a};dojo.style=function(node,_24d,_24e){var n=d.byId(node),args=arguments.length,op=(_24d=="opacity");_24d=_24b[_24d]||_24d;if(args==3){return op?d._setOpacity(n,_24e):n.style[_24d]=_24e;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&!d.isString(_24d)){for(var x in _24d){d.style(node,x,_24d[x]);}return s;}return (args==1)?s:_246(n,_24d,s[_24d]);};dojo._getPadExtents=function(n,_255){var s=_255||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,_25a){var ne="none",s=_25a||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,_260){var s=_260||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,_265){var s=_265||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isSafari&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_26c){var s=_26c||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{var p=node.parentNode;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){var p=node.parentNode;if(p){var 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._getContentBox=function(node,_277){var s=_277||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,_27e){var s=_27e||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._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||n=="BUTTON";};dojo._setContentSize=function(node,_28c,_28d,_28e){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_28e);if(_28c>=0){_28c+=pb.w;}if(_28d>=0){_28d+=pb.h;}}d._setBox(node,NaN,NaN,_28c,_28d);};dojo._setMarginBox=function(node,_291,_292,_293,_294,_295){var s=_295||gcs(node);var bb=d._usesBorderBox(node),pb=bb?_299:d._getPadBorderExtents(node,s),mb=d._getMarginExtents(node,s);if(_293>=0){_293=Math.max(_293-pb.w-mb.w,0);}if(_294>=0){_294=Math.max(_294-pb.h-mb.h,0);}d._setBox(node,_291,_292,_293,_294);};var _299={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=d.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=dojo.byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _2a5=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_2a9=0,_b=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_2a9+=val-0;if(node==_b){break;}}node=node.parentNode;}return _2a9;};dojo._docScroll=function(){var _b=d.body(),_w=d.global,de=d.doc.documentElement;return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)};};dojo._isBodyLtr=function(){return !("_bodyLtr" in d)?d._bodyLtr=gcs(d.body()).direction=="ltr":d._bodyLtr;};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;return (d.isIE>=7)?{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top}:{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};};dojo._fixIeBiDiScrollLeft=function(_2af){var dd=d.doc;if(d.isIE&&!dojo._isBodyLtr()){var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;return _2af+de.clientWidth-de.scrollWidth;}return _2af;};dojo._abs=function(node,_2b3){var _2b4=node.ownerDocument;var ret={x:0,y:0};var db=d.body();if(d.isIE||(d.isFF>=3)){var _2b7=node.getBoundingClientRect();var _2b8=(d.isIE)?d._getIeDocumentElementOffset():{x:0,y:0};ret.x=_2b7.left-_2b8.x;ret.y=_2b7.top-_2b8.y;}else{if(_2b4["getBoxObjectFor"]){var bo=_2b4.getBoxObjectFor(node),b=d._getBorderExtents(node);ret.x=bo.x-b.l-_2a5(node,"scrollLeft");ret.y=bo.y-b.t-_2a5(node,"scrollTop");}else{if(node["offsetParent"]){var _2bb;if(d.isSafari&&(gcs(node).position=="absolute")&&(node.parentNode==db)){_2bb=db;}else{_2bb=db.parentNode;}if(node.parentNode!=db){var nd=node;if(d.isOpera){nd=db;}ret.x-=_2a5(nd,"scrollLeft");ret.y-=_2a5(nd,"scrollTop");}var _2bd=node;do{var n=_2bd.offsetLeft;if(!d.isOpera||n>0){ret.x+=isNaN(n)?0:n;}var t=_2bd.offsetTop;ret.y+=isNaN(t)?0:t;if(d.isSafari&&_2bd!=node){var cs=gcs(_2bd);ret.x+=px(_2bd,cs.borderLeftWidth);ret.y+=px(_2bd,cs.borderTopWidth);}_2bd=_2bd.offsetParent;}while((_2bd!=_2bb)&&_2bd);}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}}if(_2b3){var _2c1=d._docScroll();ret.y+=_2c1.y;ret.x+=_2c1.x;}return ret;};dojo.coords=function(node,_2c3){var n=d.byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d._abs(n,_2c3);mb.x=abs.x;mb.y=abs.y;return mb;};var _2c8=function(name){switch(name.toLowerCase()){case "tabindex":return (d.isIE&&d.isIE<8)?"tabIndex":"tabindex";default:return name;}};var _2ca={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType"};dojo.hasAttr=function(node,name){var attr=d.byId(node).getAttributeNode(_2c8(name));return attr?attr.specified:false;};var _2ce={};var _ctr=0;var _2d0=dojo._scopeName+"attrid";dojo.attr=function(node,name,_2d3){var args=arguments.length;if(args==2&&!d.isString(name)){for(var x in name){d.attr(node,x,name[x]);}return;}node=d.byId(node);name=_2c8(name);if(args==3){if(d.isFunction(_2d3)){var _2d6=d.attr(node,_2d0);if(!_2d6){_2d6=_ctr++;d.attr(node,_2d0,_2d6);}if(!_2ce[_2d6]){_2ce[_2d6]={};}var h=_2ce[_2d6][name];if(h){d.disconnect(h);}else{try{delete node[name];}catch(e){}}_2ce[_2d6][name]=d.connect(node,name,_2d3);}else{if(typeof _2d3=="boolean"){node[name]=_2d3;}else{node.setAttribute(name,_2d3);}}return;}else{var prop=_2ca[name.toLowerCase()];if(prop){return node[prop];}else{var _2d3=node[name];return (typeof _2d3=="boolean"||typeof _2d3=="function")?_2d3:(d.hasAttr(node,name)?node.getAttribute(name):null);}}};dojo.removeAttr=function(node,name){d.byId(node).removeAttribute(_2c8(name));};})();dojo.hasClass=function(node,_2dc){return ((" "+dojo.byId(node).className+" ").indexOf(" "+_2dc+" ")>=0);};dojo.addClass=function(node,_2de){node=dojo.byId(node);var cls=node.className;if((" "+cls+" ").indexOf(" "+_2de+" ")<0){node.className=cls+(cls?" ":"")+_2de;}};dojo.removeClass=function(node,_2e1){node=dojo.byId(node);var t=dojo.trim((" "+node.className+" ").replace(" "+_2e1+" "," "));if(node.className!=t){node.className=t;}};dojo.toggleClass=function(node,_2e4,_2e5){if(_2e5===undefined){_2e5=!dojo.hasClass(node,_2e4);}dojo[_2e5?"addClass":"removeClass"](node,_2e4);};}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var tnl=function(arr){arr.constructor=dojo.NodeList;dojo._mixin(arr,dojo.NodeList.prototype);return arr;};var _2e9=function(func,_2eb){return function(){var _a=arguments;var aa=d._toArray(_a,0,[null]);var s=this.map(function(i){aa[0]=i;return d[func].apply(d,aa);});return (_2eb||((_a.length>1)||!d.isString(_a[0])))?this:s;};};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};dojo.NodeList._wrap=tnl;dojo.extend(dojo.NodeList,{slice:function(){var a=dojo._toArray(arguments);return tnl(a.slice.apply(this,a));},splice:function(){var a=dojo._toArray(arguments);return tnl(a.splice.apply(this,a));},concat:function(){var a=dojo._toArray(arguments,0,[this]);return tnl(a.concat.apply([],a));},indexOf:function(_2f3,_2f4){return d.indexOf(this,_2f3,_2f4);},lastIndexOf:function(){return d.lastIndexOf.apply(d,d._toArray(arguments,0,[this]));},every:function(_2f5,_2f6){return d.every(this,_2f5,_2f6);},some:function(_2f7,_2f8){return d.some(this,_2f7,_2f8);},map:function(func,obj){return d.map(this,func,obj,d.NodeList);},forEach:function(_2fb,_2fc){d.forEach(this,_2fb,_2fc);return this;},coords:function(){return d.map(this,d.coords);},attr:_2e9("attr"),style:_2e9("style"),addClass:_2e9("addClass",true),removeClass:_2e9("removeClass",true),toggleClass:_2e9("toggleClass",true),connect:_2e9("connect",true),place:function(_2fd,_2fe){var item=d.query(_2fd)[0];return this.forEach(function(i){d.place(i,item,(_2fe||"last"));});},orphan:function(_301){var _302=_301?d._filterQueryResult(this,_301):this;_302.forEach(function(item){if(item.parentNode){item.parentNode.removeChild(item);}});return _302;},adopt:function(_304,_305){var item=this[0];return d.query(_304).forEach(function(ai){d.place(ai,item,_305||"last");});},query:function(_308){if(!_308){return this;}var ret=d.NodeList();this.forEach(function(item){d.query(_308,item).forEach(function(_30b){if(_30b!==undefined){ret.push(_30b);}});});return ret;},filter:function(_30c){var _30d=this;var _a=arguments;var r=d.NodeList();var rp=function(t){if(t!==undefined){r.push(t);}};if(d.isString(_30c)){_30d=d._filterQueryResult(this,_a[0]);if(_a.length==1){return _30d;}_a.shift();}d.forEach(d.filter(_30d,_a[0],_a[1]),rp);return r;},addContent:function(_312,_313){var ta=d.doc.createElement("span");if(d.isString(_312)){ta.innerHTML=_312;}else{ta.appendChild(_312);}if(_313===undefined){_313="last";}var ct=(_313=="first"||_313=="after")?"lastChild":"firstChild";this.forEach(function(item){var tn=ta.cloneNode(true);while(tn[ct]){d.place(tn[ct],item,_313);}});return this;},empty:function(){return this.forEach("item.innerHTML='';");},instantiate:function(_318,_319){var c=d.isFunction(_318)?_318:d.getObject(_318);return this.forEach(function(i){new c(_319||{},i);});}});d.forEach(["blur","focus","click","keydown","keypress","keyup","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],function(evt){var _oe="on"+evt;dojo.NodeList.prototype[_oe]=function(a,b){return this.connect(_oe,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;dojo.provide("dojo._base.query");(function(){var d=dojo;var _321=dojo.isIE?"children":"childNodes";var _322=false;var _323=function(_324){if(">~+".indexOf(_324.charAt(_324.length-1))>=0){_324+=" *";}_324+=" ";var ts=function(s,e){return d.trim(_324.slice(s,e));};var _328=[];var _329=-1;var _32a=-1;var _32b=-1;var _32c=-1;var _32d=-1;var inId=-1;var _32f=-1;var lc="";var cc="";var _332;var x=0;var ql=_324.length;var _335=null;var _cp=null;var _337=function(){if(_32f>=0){var tv=(_32f==x)?null:ts(_32f,x).toLowerCase();_335[(">~+".indexOf(tv)<0)?"tag":"oper"]=tv;_32f=-1;}};var _339=function(){if(inId>=0){_335.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _33a=function(){if(_32d>=0){_335.classes.push(ts(_32d+1,x).replace(/\\/g,""));_32d=-1;}};var _33b=function(){_339();_337();_33a();};for(;lc=cc,cc=_324.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_335){_332=x;_335={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null};_32f=x;}if(_329>=0){if(cc=="]"){if(!_cp.attr){_cp.attr=ts(_329+1,x);}else{_cp.matchFor=ts((_32b||_329+1),x);}var cmf=_cp.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_cp.matchFor=cmf.substring(1,cmf.length-1);}}_335.attrs.push(_cp);_cp=null;_329=_32b=-1;}else{if(cc=="="){var _33d=("|~^$*".indexOf(lc)>=0)?lc:"";_cp.type=_33d+cc;_cp.attr=ts(_329+1,x-_33d.length);_32b=x+1;}}}else{if(_32a>=0){if(cc==")"){if(_32c>=0){_cp.value=ts(_32a+1,x);}_32c=_32a=-1;}}else{if(cc=="#"){_33b();inId=x+1;}else{if(cc=="."){_33b();_32d=x;}else{if(cc==":"){_33b();_32c=x;}else{if(cc=="["){_33b();_329=x;_cp={};}else{if(cc=="("){if(_32c>=0){_cp={name:ts(_32c+1,x),value:null};_335.pseudos.push(_cp);}_32a=x;}else{if(cc==" "&&lc!=cc){_33b();if(_32c>=0){_335.pseudos.push({name:ts(_32c+1,x)});}_335.hasLoops=(_335.pseudos.length||_335.attrs.length||_335.classes.length);_335.query=ts(_332,x);_335.tag=(_335["oper"])?null:(_335.tag||"*");_328.push(_335);_335=null;}}}}}}}}}return _328;};var _33e={"*=":function(attr,_340){return "[contains(@"+attr+", '"+_340+"')]";},"^=":function(attr,_342){return "[starts-with(@"+attr+", '"+_342+"')]";},"$=":function(attr,_344){return "[substring(@"+attr+", string-length(@"+attr+")-"+(_344.length-1)+")='"+_344+"']";},"~=":function(attr,_346){return "[contains(concat(' ',@"+attr+",' '), ' "+_346+" ')]";},"|=":function(attr,_348){return "[contains(concat(' ',@"+attr+",' '), ' "+_348+"-')]";},"=":function(attr,_34a){return "[@"+attr+"='"+_34a+"']";}};var _34b=function(_34c,_34d,_34e,_34f){d.forEach(_34d.attrs,function(attr){var _351;if(attr.type&&_34c[attr.type]){_351=_34c[attr.type](attr.attr,attr.matchFor);}else{if(attr.attr.length){_351=_34e(attr.attr);}}if(_351){_34f(_351);}});};var _352=function(_353){var _354=".";var _355=_323(d.trim(_353));while(_355.length){var tqp=_355.shift();var _357;var _358="";if(tqp.oper==">"){_357="/";tqp=_355.shift();}else{if(tqp.oper=="~"){_357="/following-sibling::";tqp=_355.shift();}else{if(tqp.oper=="+"){_357="/following-sibling::";_358="[position()=1]";tqp=_355.shift();}else{_357="//";}}}_354+=_357+tqp.tag+_358;if(tqp.id){_354+="[@id='"+tqp.id+"'][1]";}d.forEach(tqp.classes,function(cn){var cnl=cn.length;var _35b=" ";if(cn.charAt(cnl-1)=="*"){_35b="";cn=cn.substr(0,cnl-1);}_354+="[contains(concat(' ',@class,' '), ' "+cn+_35b+"')]";});_34b(_33e,tqp,function(_35c){return "[@"+_35c+"]";},function(_35d){_354+=_35d;});}return _354;};var _35e={};var _35f=function(path){if(_35e[path]){return _35e[path];}var doc=d.doc;var _362=_352(path);var tf=function(_364){var ret=[];var _366;try{_366=doc.evaluate(_362,_364,null,XPathResult.ANY_TYPE,null);}catch(e){console.debug("failure in exprssion:",_362,"under:",_364);console.debug(e);}var _367=_366.iterateNext();while(_367){ret.push(_367);_367=_366.iterateNext();}return ret;};return _35e[path]=tf;};var _368={};var _369={};var _36a=function(_36b,_36c){if(!_36b){return _36c;}if(!_36c){return _36b;}return function(){return _36b.apply(window,arguments)&&_36c.apply(window,arguments);};};var _36d=function(root){var ret=[];var te,x=0,tret=root[_321];while(te=tret[x++]){if(te.nodeType==1){ret.push(te);}}return ret;};var _373=function(root,_375){var ret=[];var te=root;while(te=te.nextSibling){if(te.nodeType==1){ret.push(te);if(_375){break;}}}return ret;};var _378=function(_379,_37a,_37b,idx){var nidx=idx+1;var _37e=(_37a.length==nidx);var tqp=_37a[idx];if(tqp.oper){var ecn=(tqp.oper==">")?_36d(_379):_373(_379,(tqp.oper=="+"));if(!ecn||!ecn.length){return;}nidx++;_37e=(_37a.length==nidx);var tf=_382(_37a[idx+1]);for(var x=0,ecnl=ecn.length,te;x<ecnl,te=ecn[x];x++){if(tf(te)){if(_37e){_37b.push(te);}else{_378(te,_37a,_37b,nidx);}}}}var _386=_387(tqp)(_379);if(_37e){while(_386.length){_37b.push(_386.shift());}}else{while(_386.length){_378(_386.shift(),_37a,_37b,nidx);}}};var _388=function(_389,_38a){var ret=[];var x=_389.length-1,te;while(te=_389[x--]){_378(te,_38a,ret,0);}return ret;};var _382=function(q){if(_368[q.query]){return _368[q.query];}var ff=null;if(q.tag){if(q.tag=="*"){ff=_36a(ff,function(elem){return (elem.nodeType==1);});}else{ff=_36a(ff,function(elem){return ((elem.nodeType==1)&&(q.tag==elem.tagName.toLowerCase()));});}}if(q.id){ff=_36a(ff,function(elem){return ((elem.nodeType==1)&&(elem.id==q.id));});}if(q.hasLoops){ff=_36a(ff,_393(q));}return _368[q.query]=ff;};var _394=function(node){var pn=node.parentNode;var pnc=pn.childNodes;var nidx=-1;var _399=pn.firstChild;if(!_399){return nidx;}var ci=node["__cachedIndex"];var cl=pn["__cachedLength"];if(((typeof cl=="number")&&(cl!=pnc.length))||(typeof ci!="number")){pn["__cachedLength"]=pnc.length;var idx=1;do{if(_399===node){nidx=idx;}if(_399.nodeType==1){_399["__cachedIndex"]=idx;idx++;}_399=_399.nextSibling;}while(_399);}else{nidx=ci;}return nidx;};var _39d=0;var _39e="";var _39f=function(elem,attr){if(attr=="class"){return elem.className||_39e;}if(attr=="for"){return elem.htmlFor||_39e;}return elem.getAttribute(attr,2)||_39e;};var _3a2={"*=":function(attr,_3a4){return function(elem){return (_39f(elem,attr).indexOf(_3a4)>=0);};},"^=":function(attr,_3a7){return function(elem){return (_39f(elem,attr).indexOf(_3a7)==0);};},"$=":function(attr,_3aa){var tval=" "+_3aa;return function(elem){var ea=" "+_39f(elem,attr);return (ea.lastIndexOf(_3aa)==(ea.length-_3aa.length));};},"~=":function(attr,_3af){var tval=" "+_3af+" ";return function(elem){var ea=" "+_39f(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_3b4){var _3b5=" "+_3b4+"-";return function(elem){var ea=" "+(elem.getAttribute(attr,2)||"");return ((ea==_3b4)||(ea.indexOf(_3b5)==0));};},"=":function(attr,_3b9){return function(elem){return (_39f(elem,attr)==_3b9);};}};var _3bb={"first-child":function(name,_3bd){return function(elem){if(elem.nodeType!=1){return false;}var fc=elem.previousSibling;while(fc&&(fc.nodeType!=1)){fc=fc.previousSibling;}return (!fc);};},"last-child":function(name,_3c1){return function(elem){if(elem.nodeType!=1){return false;}var nc=elem.nextSibling;while(nc&&(nc.nodeType!=1)){nc=nc.nextSibling;}return (!nc);};},"empty":function(name,_3c5){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,_3cc){return function(elem){return (elem.innerHTML.indexOf(_3cc)>=0);};},"not":function(name,_3cf){var ntf=_382(_323(_3cf)[0]);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_3d3){var pi=parseInt;if(_3d3=="odd"){return function(elem){return (((_394(elem))%2)==1);};}else{if((_3d3=="2n")||(_3d3=="even")){return function(elem){return ((_394(elem)%2)==0);};}else{if(_3d3.indexOf("0n+")==0){var _3d7=pi(_3d3.substr(3));return function(elem){return (elem.parentNode[_321][_3d7-1]===elem);};}else{if((_3d3.indexOf("n+")>0)&&(_3d3.length>3)){var _3d9=_3d3.split("n+",2);var pred=pi(_3d9[0]);var idx=pi(_3d9[1]);return function(elem){return ((_394(elem)%pred)==idx);};}else{if(_3d3.indexOf("n")==-1){var _3d7=pi(_3d3);return function(elem){return (_394(elem)==_3d7);};}}}}}}};var _3de=(d.isIE)?function(cond){var clc=cond.toLowerCase();return function(elem){return elem[cond]||elem[clc];};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _393=function(_3e4){var _3e5=(_369[_3e4.query]||_368[_3e4.query]);if(_3e5){return _3e5;}var ff=null;if(_3e4.id){if(_3e4.tag!="*"){ff=_36a(ff,function(elem){return (elem.tagName.toLowerCase()==_3e4.tag);});}}d.forEach(_3e4.classes,function(_3e8,idx,arr){var _3eb=_3e8.charAt(_3e8.length-1)=="*";if(_3eb){_3e8=_3e8.substr(0,_3e8.length-1);}var re=new RegExp("(?:^|\\s)"+_3e8+(_3eb?".*":"")+"(?:\\s|$)");ff=_36a(ff,function(elem){return re.test(elem.className);});ff.count=idx;});d.forEach(_3e4.pseudos,function(_3ee){if(_3bb[_3ee.name]){ff=_36a(ff,_3bb[_3ee.name](_3ee.name,_3ee.value));}});_34b(_3a2,_3e4,_3de,function(_3ef){ff=_36a(ff,_3ef);});if(!ff){ff=function(){return true;};}return _369[_3e4.query]=ff;};var _3f0={};var _387=function(_3f1,root){var fHit=_3f0[_3f1.query];if(fHit){return fHit;}if(_3f1.id&&!_3f1.hasLoops&&!_3f1.tag){return _3f0[_3f1.query]=function(root){return [d.byId(_3f1.id)];};}var _3f5=_393(_3f1);var _3f6;if(_3f1.tag&&_3f1.id&&!_3f1.hasLoops){_3f6=function(root){var te=d.byId(_3f1.id);if(_3f5(te)){return [te];}};}else{var tret;if(!_3f1.hasLoops){_3f6=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(_3f1.tag);while(te=tret[x++]){ret.push(te);}return ret;};}else{_3f6=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(_3f1.tag);while(te=tret[x++]){if(_3f5(te)){ret.push(te);}}return ret;};}}return _3f0[_3f1.query]=_3f6;};var _402={};var _403={"*":d.isIE?function(root){return root.all;}:function(root){return root.getElementsByTagName("*");},"~":_373,"+":function(root){return _373(root,true);},">":_36d};var _407=function(_408){var _409=_323(d.trim(_408));if(_409.length==1){var tt=_387(_409[0]);tt.nozip=true;return tt;}var sqf=function(root){var _40d=_409.slice(0);var _40e;if(_40d[0].oper==">"){_40e=[root];}else{_40e=_387(_40d.shift())(root);}return _388(_40e,_40d);};return sqf;};var _40f=((document["evaluate"]&&!d.isSafari)?function(_410){var _411=_410.split(" ");if((document["evaluate"])&&(_410.indexOf(":")==-1)&&(_410.indexOf("+")==-1)){if(((_411.length>2)&&(_410.indexOf(">")==-1))||(_411.length>3)||(_410.indexOf("[")>=0)||((1==_411.length)&&(0<=_410.indexOf(".")))){return _35f(_410);}}return _407(_410);}:_407);var _412=function(_413){var qcz=_413.charAt(0);if(d.doc["querySelectorAll"]&&((!d.isSafari)||(d.isSafari>3.1))&&(">+~".indexOf(qcz)==-1)){return function(root){var r=root.querySelectorAll(_413);r.nozip=true;return r;};}if(_403[_413]){return _403[_413];}if(0>_413.indexOf(",")){return _403[_413]=_40f(_413);}else{var _417=_413.split(/\s*,\s*/);var tf=function(root){var _41a=0;var ret=[];var tp;while(tp=_417[_41a++]){ret=ret.concat(_40f(tp,tp.indexOf(" "))(root));}return ret;};return _403[_413]=tf;}};var _41d=0;var _zip=function(arr){if(arr&&arr.nozip){return d.NodeList._wrap(arr);}var ret=new d.NodeList();if(!arr){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_41d++;arr[0]["_zipIdx"]=_41d;for(var x=1,te;te=arr[x];x++){if(arr[x]["_zipIdx"]!=_41d){ret.push(te);}te["_zipIdx"]=_41d;}return ret;};d.query=function(_423,root){if(_423.constructor==d.NodeList){return _423;}if(!d.isString(_423)){return new d.NodeList(_423);}if(d.isString(root)){root=d.byId(root);}return _zip(_412(_423)(root||d.doc));};d.query.pseudos=_3bb;d._filterQueryResult=function(_425,_426){var tnl=new d.NodeList();var ff=(_426)?_382(_323(_426)[0]):function(){return true;};for(var x=0,te;te=_425[x];x++){if(ff(te)){tnl.push(te);}}return tnl;};})();}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _d=dojo;function setValue(obj,name,_42e){var val=obj[name];if(_d.isString(val)){obj[name]=[val,_42e];}else{if(_d.isArray(val)){val.push(_42e);}else{obj[name]=_42e;}}};dojo.formToObject=function(_430){var ret={};var iq="input:not([type=file]):not([type=submit]):not([type=image]):not([type=reset]):not([type=button]), select, textarea";_d.query(iq,_430).filter(function(node){return !node.disabled&&node.name;}).forEach(function(item){var _in=item.name;var type=(item.type||"").toLowerCase();if(type=="radio"||type=="checkbox"){if(item.checked){setValue(ret,_in,item.value);}}else{if(item.multiple){ret[_in]=[];_d.query("option",item).forEach(function(opt){if(opt.selected){setValue(ret,_in,opt.value);}});}else{setValue(ret,_in,item.value);if(type=="image"){ret[_in+".x"]=ret[_in+".y"]=ret[_in].x=ret[_in].y=0;}}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _43a=[];var _43b={};for(var name in map){var _43d=map[name];if(_43d!=_43b[name]){var _43e=enc(name)+"=";if(_d.isArray(_43d)){for(var i=0;i<_43d.length;i++){_43a.push(_43e+enc(_43d[i]));}}else{_43a.push(_43e+enc(_43d));}}}return _43a.join("&");};dojo.formToQuery=function(_440){return _d.objectToQuery(_d.formToObject(_440));};dojo.formToJson=function(_441,_442){return _d.toJson(_d.formToObject(_441),_442);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_d.forEach(qp,function(item){if(item.length){var _448=item.split("=");var name=dec(_448.shift());var val=dec(_448.join("="));if(_d.isString(ret[name])){ret[name]=[ret[name]];}if(_d.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;dojo._contentHandlers={"text":function(xhr){return xhr.responseText;},"json":function(xhr){if(!dojo.config.usePlainJson){console.warn("Consider using mimetype:text/json-comment-filtered"+" to avoid potential security issues with JSON endpoints"+" (use djConfig.usePlainJson=true to turn off this message)");}return (xhr.status==204)?undefined:_d.fromJson(xhr.responseText);},"json-comment-filtered":function(xhr){var _44e=xhr.responseText;var _44f=_44e.indexOf("/*");var _450=_44e.lastIndexOf("*/");if(_44f==-1||_450==-1){throw new Error("JSON was not comment filtered");}return (xhr.status==204)?undefined:_d.fromJson(_44e.substring(_44f+2,_450));},"javascript":function(xhr){return _d.eval(xhr.responseText);},"xml":function(xhr){var _453=xhr.responseXML;if(_d.isIE&&(!_453||window.location.protocol=="file:")){_d.forEach(["MSXML2","Microsoft","MSXML","MSXML3"],function(_454){try{var dom=new ActiveXObject(_454+".XMLDOM");dom.async=false;dom.loadXML(xhr.responseText);_453=dom;}catch(e){}});}return _453;}};dojo._contentHandlers["json-comment-optional"]=function(xhr){var _457=_d._contentHandlers;try{return _457["json-comment-filtered"](xhr);}catch(e){return _457["json"](xhr);}};dojo._ioSetArgs=function(args,_459,_45a,_45b){var _45c={args:args,url:args.url};var _45d=null;if(args.form){var form=_d.byId(args.form);var _45f=form.getAttributeNode("action");_45c.url=_45c.url||(_45f?_45f.value:null);_45d=_d.formToObject(form);}var _460=[{}];if(_45d){_460.push(_45d);}if(args.content){_460.push(args.content);}if(args.preventCache){_460.push({"dojo.preventCache":new Date().valueOf()});}_45c.query=_d.objectToQuery(_d.mixin.apply(null,_460));_45c.handleAs=args.handleAs||"text";var d=new _d.Deferred(_459);d.addCallbacks(_45a,function(_462){return _45b(_462,d);});var ld=args.load;if(ld&&_d.isFunction(ld)){d.addCallback(function(_464){return ld.call(args,_464,_45c);});}var err=args.error;if(err&&_d.isFunction(err)){d.addErrback(function(_466){return err.call(args,_466,_45c);});}var _467=args.handle;if(_467&&_d.isFunction(_467)){d.addBoth(function(_468){return _467.call(args,_468,_45c);});}d.ioArgs=_45c;return d;};var _469=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _at=typeof xhr.abort;if(_at=="function"||_at=="unknown"){xhr.abort();}var err=new Error("xhr cancelled");err.dojoType="cancel";return err;};var _46e=function(dfd){return _d._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);};var _470=function(_471,dfd){console.debug(_471);return _471;};var _473=function(args){var dfd=_d._ioSetArgs(args,_469,_46e,_470);dfd.ioArgs.xhr=_d._xhrObj(dfd.ioArgs.args);return dfd;};var _476=null;var _477=[];var _478=function(){var now=(new Date()).getTime();if(!_d._blockAsync){for(var i=0,tif;i<_477.length&&(tif=_477[i]);i++){var dfd=tif.dfd;try{if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_477.splice(i--,1);}else{if(tif.ioCheck(dfd)){_477.splice(i--,1);tif.resHandle(dfd);}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_477.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();}}}}}catch(e){console.debug(e);dfd.errback(new Error("_watchInFlightError!"));}}}if(!_477.length){clearInterval(_476);_476=null;return;}};dojo._ioCancelAll=function(){try{_d.forEach(_477,function(i){i.dfd.cancel();});}catch(e){}};if(_d.isIE){_d.addOnUnload(_d._ioCancelAll);}_d._ioWatch=function(dfd,_480,_481,_482){if(dfd.ioArgs.args.timeout){dfd.startTime=(new Date()).getTime();}_477.push({dfd:dfd,validCheck:_480,ioCheck:_481,resHandle:_482});if(!_476){_476=setInterval(_478,50);}_478();};var _483="application/x-www-form-urlencoded";var _484=function(dfd){return dfd.ioArgs.xhr.readyState;};var _486=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _488=function(dfd){var xhr=dfd.ioArgs.xhr;if(_d._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);}};var _48c=function(type,dfd){var _48f=dfd.ioArgs;var args=_48f.args;var xhr=_48f.xhr;xhr.open(type,_48f.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{xhr.setRequestHeader(hdr,args.headers[hdr]);}}}xhr.setRequestHeader("Content-Type",args.contentType||_483);if(!args.headers||!args.headers["X-Requested-With"]){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}try{xhr.send(_48f.query);}catch(e){dfd.cancel();}_d._ioWatch(dfd,_484,_486,_488);xhr=null;return dfd;};dojo._ioAddQueryToUrl=function(_493){if(_493.query.length){_493.url+=(_493.url.indexOf("?")==-1?"?":"&")+_493.query;_493.query=null;}};dojo.xhr=function(_494,args,_496){var dfd=_473(args);if(!_496){_d._ioAddQueryToUrl(dfd.ioArgs);}return _48c(_494,dfd);};dojo.xhrGet=function(args){return _d.xhr("GET",args);};dojo.xhrPost=function(args){return _d.xhr("POST",args,true);};dojo.rawXhrPost=function(args){var dfd=_473(args);dfd.ioArgs.query=args.postData;return _48c("POST",dfd);};dojo.xhrPut=function(args){return _d.xhr("PUT",args,true);};dojo.rawXhrPut=function(args){var dfd=_473(args);var _49f=dfd.ioArgs;if(args.putData){_49f.query=args.putData;args.putData=null;}return _48c("PUT",dfd);};dojo.xhrDelete=function(args){return _d.xhr("DELETE",args);};})();}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");(function(){var d=dojo;dojo._Line=function(_4a2,end){this.start=_4a2;this.end=end;this.getValue=function(n){return ((this.end-this.start)*n)+this.start;};};d.declare("dojo._Animation",null,{constructor:function(args){d.mixin(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}},duration:350,repeat:0,rate:10,_percent:0,_startRepeatCount:0,_fire:function(evt,args){try{if(this[evt]){this[evt].apply(this,args||[]);}}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}return this;},play:function(_4a8,_4a9){var _t=this;if(_4a9){_t._stopTimer();_t._active=_t._paused=false;_t._percent=0;}else{if(_t._active&&!_t._paused){return _t;}}_t._fire("beforeBegin");var de=_4a8||_t.delay;var _p=dojo.hitch(_t,"_play",_4a9);if(de>0){setTimeout(_p,de);return _t;}_p();return _t;},_play:function(_4ad){var _t=this;_t._startTime=new Date().valueOf();if(_t._paused){_t._startTime-=_t.duration*_t._percent;}_t._endTime=_t._startTime+_t.duration;_t._active=true;_t._paused=false;var _4af=_t.curve.getValue(_t._percent);if(!_t._percent){if(!_t._startRepeatCount){_t._startRepeatCount=_t.repeat;}_t._fire("onBegin",[_4af]);}_t._fire("onPlay",[_4af]);_t._cycle();return _t;},pause:function(){this._stopTimer();if(!this._active){return this;}this._paused=true;this._fire("onPause",[this.curve.getValue(this._percent)]);return this;},gotoPercent:function(_4b0,_4b1){this._stopTimer();this._active=this._paused=true;this._percent=_4b0;if(_4b1){this.play();}return this;},stop:function(_4b2){if(!this._timer){return this;}this._stopTimer();if(_4b2){this._percent=1;}this._fire("onStop",[this.curve.getValue(this._percent)]);this._active=this._paused=false;return this;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _t=this;if(_t._active){var curr=new Date().valueOf();var step=(curr-_t._startTime)/(_t._endTime-_t._startTime);if(step>=1){step=1;}_t._percent=step;if(_t.easing){step=_t.easing(step);}_t._fire("onAnimate",[_t.curve.getValue(step)]);if(_t._percent<1){_t._startTimer();}else{_t._active=false;if(_t.repeat>0){_t.repeat--;_t.play(null,true);}else{if(_t.repeat==-1){_t.play(null,true);}else{if(_t._startRepeatCount){_t.repeat=_t._startRepeatCount;_t._startRepeatCount=0;}}}_t._percent=0;_t._fire("onEnd");_t._stopTimer();}}return _t;}});var ctr=0;var _4b7=[];var _4b8={run:function(){}};var _4b9=null;dojo._Animation.prototype._startTimer=function(){if(!this._timer){this._timer=d.connect(_4b8,"run",this,"_cycle");ctr++;}if(!_4b9){_4b9=setInterval(d.hitch(_4b8,"run"),this.rate);}};dojo._Animation.prototype._stopTimer=function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_4b9);_4b9=null;ctr=0;}};var _4ba=(d.isIE)?function(node){var ns=node.style;if(!ns.zoom.length&&d.style(node,"zoom")=="normal"){ns.zoom="1";}if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _4be=d.mixin({properties:{}},args);var _4bf=(_4be.properties.opacity={});_4bf.start=!("start" in _4be)?function(){return Number(d.style(_4be.node,"opacity"));}:_4be.start;_4bf.end=_4be.end;var anim=d.animateProperty(_4be);d.connect(anim,"beforeBegin",d.partial(_4ba,_4be.node));return anim;};dojo.fadeIn=function(args){return d._fade(d.mixin({end:1},args));};dojo.fadeOut=function(args){return d._fade(d.mixin({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _4c4=function(_4c5){this._properties=_4c5;for(var p in _4c5){var prop=_4c5[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}this.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p];var _4cc=prop.start;if(_4cc instanceof d.Color){ret[p]=d.blendColors(_4cc,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_4cc)){ret[p]=((prop.end-_4cc)*r)+_4cc+(p!="opacity"?prop.units||"px":"");}}}return ret;};};dojo.animateProperty=function(args){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];prop=pm[p]=d.mixin({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start();}if(d.isFunction(prop.end)){prop.end=prop.end();}var _4d2=(p.toLowerCase().indexOf("color")>=0);function getStyle(node,p){var v=({height:node.offsetHeight,width:node.offsetWidth})[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?Number(v):(_4d2?v:parseFloat(v));};if(!("end" in prop)){prop.end=getStyle(this.node,p);}else{if(!("start" in prop)){prop.start=getStyle(this.node,p);}}if(_4d2){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?Number(prop.start):parseFloat(prop.start);}}this.curve=new _4c4(pm);});d.connect(anim,"onAnimate",anim,function(_4d6){for(var s in _4d6){d.style(this.node,s,_4d6[s]);}});return anim;};dojo.anim=function(node,_4d9,_4da,_4db,_4dc,_4dd){return d.animateProperty({node:node,duration:_4da||d._Animation.prototype.duration,properties:_4d9,easing:_4db,onEnd:_4dc}).play(_4dd||0);};})();}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");if(dojo.config.require){dojo.forEach(dojo.config.require,"dojo['require'](item);");}}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._copyKey=navigator.appVersion.indexOf("Macintosh")<0?"ctrlKey":"metaKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);b.l+=t.x+n.scrollLeft;b.t+=t.y+n.scrollTop;var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-b.l,ry=e.pageY-b.t,dx=0,dy=0;if(rx>0&&rx<b.w){if(rx<w){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(rx>b.w-w){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(ry>b.h-h){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}}var _4f5=n.scrollLeft,_4f6=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_4f5!=n.scrollLeft||_4f6!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_4fc=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo,"stopEvent"),dojo.connect(d,"onselectstart",dojo,"stopEvent"),_4fc];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});},onMouseUp:function(e){if(this.mouseButton==e.button){this.destroy();}},onFirstMove:function(){var s=this.node.style,l,t;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);l=m.l;t=m.t;break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;this.host.onFirstMove(this);dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_506){this.node=dojo.byId(node);if(!_506){_506={};}this.handle=_506.handle?dojo.byId(_506.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_506.delay>0?_506.delay:0;this.skip=_506.skip;this.mover=_506.mover?_506.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_507,node){return new dojo.dnd.Moveable(node,_507);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"));this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{new this.mover(this.node,e,this);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);new this.mover(this.node,e,this);}dojo.stopEvent(e);},onMouseUp:function(e){dojo.disconnect(this.events.pop());dojo.disconnect(this.events.pop());},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onMoveStart:function(_50d){dojo.publish("/dnd/move/start",[_50d]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_50e){dojo.publish("/dnd/move/stop",[_50e]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_50f){},onMove:function(_510,_511){this.onMoving(_510,_511);var s=_510.node.style;s.left=_511.l+"px";s.top=_511.t+"px";this.onMoved(_510,_511);},onMoving:function(_513,_514){},onMoved:function(_515,_516){}});}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _517=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_519){if(!_519){_519={};}if(_519.timeout&&typeof _519.timeout=="number"&&_519.timeout>=0){this.timeout=_519.timeout;}},markupFactory:function(_51a,node){return new dojo.dnd.TimedMoveable(node,_51a);},onMoveStop:function(_51c){if(_51c._timer){clearTimeout(_51c._timer);_517.call(this,_51c,_51c._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_51d,_51e){_51d._leftTop=_51e;if(!_51d._timer){var _t=this;_51d._timer=setTimeout(function(){_51d._timer=null;_517.call(_t,_51d,_51d._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _520={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _523=function(_524){this._index=-1;this._animations=_524||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_523,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.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=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_526,_527){if(!this._current){this._current=this._animations[this._index=0];}if(!_527&&this._current.status()=="playing"){return this;}var _528=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_529=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_52b=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_528);dojo.disconnect(_529);dojo.disconnect(_52b);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_52f,_530){this.pause();var _531=this.duration*_52f;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_531){this._current=a;return true;}_531-=a.duration;return false;});if(this._current){this._current.gotoPercent(_531/_current.duration,_530);}return this;},stop:function(_533){if(this._current){if(_533){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_523,_520);dojo.fx.chain=function(_536){return new _523(_536);};var _537=function(_538){this._animations=_538||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_538,function(a){var _53a=a.duration;if(a.delay){_53a+=a.delay;}if(this.duration<_53a){this.duration=_53a;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_537,{_doAction:function(_53c,args){dojo.forEach(this._animations,function(a){a[_53c].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_53f,args){var t=this._pseudoAnimation;t[_53f].apply(t,args);},play:function(_542,_543){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(_544,_545){var ms=this.duration*_544;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_545);});this._call("gotoProcent",arguments);return this;},stop:function(_548){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_537,_520);dojo.fx.combine=function(_549){return new _537(_549);};})();dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_54c){return this.showAnim.play(_54c||0);},hide:function(_54d){return this.hideAnim.play(_54d||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _552=dojo.style(node,"height");return Math.max(_552,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;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 anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _561=dojo.global;var _562=dojo.doc;if(_562.selection){return !_562.selection.createRange().text;}else{var _563=_561.getSelection();if(dojo.isString(_563)){return !_563;}else{return _563.isCollapsed||!_563.toString();}}},getBookmark:function(){var _564,_565=dojo.doc.selection;if(_565){var _566=_565.createRange();if(_565.type.toUpperCase()=="CONTROL"){if(_566.length){_564=[];var i=0,len=_566.length;while(i<len){_564.push(_566.item(i++));}}else{_564=null;}}else{_564=_566.getBookmark();}}else{if(window.getSelection){_565=dojo.global.getSelection();if(_565){_566=_565.getRangeAt(0);_564=_566.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _564;},moveToBookmark:function(_569){var _56a=dojo.doc;if(_56a.selection){var _56b;if(dojo.isArray(_569)){_56b=_56a.body.createControlRange();dojo.forEach(_569,"range.addElement(item)");}else{_56b=_56a.selection.createRange();_56b.moveToBookmark(_569);}_56b.select();}else{var _56c=dojo.global.getSelection&&dojo.global.getSelection();if(_56c&&_56c.removeAllRanges){_56c.removeAllRanges();_56c.addRange(_569);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(menu,_56e){return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_56e||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_56e||dojo.global,dijit.getBookmark):null,openedForWindow:_56e};},focus:function(_56f){if(!_56f){return;}var node="node" in _56f?_56f.node:_56f,_571=_56f.bookmark,_572=_56f.openedForWindow;if(node){var _573=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_573&&_573.focus){try{_573.focus();}catch(e){}}dijit._onFocusNode(node);}if(_571&&dojo.withGlobal(_572||dojo.global,dijit.isCollapsed)){if(_572){_572.focus();}try{dojo.withGlobal(_572||dojo.global,dijit.moveToBookmark,null,[_571]);}catch(e){}}},_activeStack:[],registerWin:function(_574){if(!_574){_574=window;}dojo.connect(_574.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var body=_574.document.body||_574.document.getElementsByTagName("body")[0];if(body){if(dojo.isIE){body.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});body.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{body.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);body.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}body=null;},_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){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _57d=[];try{while(node){if(node.dijitPopupParent){node=dijit.byId(node.dijitPopupParent).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dijit.getDocumentWindow(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){_57d.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_57d);},_onFocusNode:function(node){if(node&&node.tagName&&node.tagName.toLowerCase()=="body"){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(_580){var _581=dijit._activeStack;dijit._activeStack=_580;for(var _582=0;_582<Math.min(_581.length,_580.length);_582++){if(_581[_582]!=_580[_582]){break;}}for(var i=_581.length-1;i>=_582;i--){var _584=dijit.byId(_581[i]);if(_584){_584._focused=false;_584._hasBeenBlurred=true;if(_584._onBlur){_584._onBlur();}if(_584._setStateClass){_584._setStateClass();}dojo.publish("widgetBlur",[_584]);}}for(i=_582;i<_580.length;i++){_584=dijit.byId(_580[i]);if(_584){_584._focused=true;if(_584._onFocus){_584._onFocus();}if(_584._setStateClass){_584._setStateClass();}dojo.publish("widgetFocus",[_584]);}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_585){if(this._hash[_585.id]){throw new Error("Tried to register widget with id=="+_585.id+" but that id is already registered");}this._hash[_585.id]=_585;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_589){var res=new dijit.WidgetSet();this.forEach(function(_58b){if(_589(_58b)){res.add(_58b);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_58e){return _58e.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_58f){var id;do{id=_58f+"_"+(_58f in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_58f]:dijit._widgetTypeCtr[_58f]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_591){_591.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}node=node.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(elem){var _596=dojo.style(elem);return (_596.visibility!="hidden")&&(_596.visibility!="collapsed")&&(_596.display!="none");};dijit.isTabNavigable=function(elem){if(dojo.hasAttr(elem,"disabled")){return false;}var _598=dojo.hasAttr(elem,"tabindex");var _599=dojo.attr(elem,"tabindex");if(_598&&_599>=0){return true;}var name=elem.nodeName.toLowerCase();if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_598||_599>=0)){return true;}return false;};dijit._getTabNavigable=function(root){var _59c,last,_59e,_59f,_5a0,_5a1;var _5a2=function(_5a3){dojo.query("> *",_5a3).forEach(function(_5a4){var _5a5=dijit._isElementShown(_5a4);if(_5a5&&dijit.isTabNavigable(_5a4)){var _5a6=dojo.attr(_5a4,"tabindex");if(!dojo.hasAttr(_5a4,"tabindex")||_5a6==0){if(!_59c){_59c=_5a4;}last=_5a4;}else{if(_5a6>0){if(!_59e||_5a6<_59f){_59f=_5a6;_59e=_5a4;}if(!_5a0||_5a6>=_5a1){_5a1=_5a6;_5a0=_5a4;}}}}if(_5a5){_5a2(_5a4);}});};if(dijit._isElementShown(root)){_5a2(root);}return {first:_59c,last:last,lowest:_59e,highest:_5a0};};dijit.getFirstInTabbingOrder=function(root){var _5a8=dijit._getTabNavigable(dojo.byId(root));return _5a8.lowest?_5a8.lowest:_5a8.first;};dijit.getLastInTabbingOrder=function(root){var _5aa=dijit._getTabNavigable(dojo.byId(root));return _5aa.last?_5aa.last:_5aa.highest;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _5ab=dojo.global;var _5ac=dojo.doc;var w=0,h=0;var de=_5ac.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var minw,minh,maxw,maxh;var dbw=_5ac.body.clientWidth;if(dbw>dew){minw=dew;maxw=dbw;}else{maxw=dew;minw=dbw;}var dbh=_5ac.body.clientHeight;if(dbh>deh){minh=deh;maxh=dbh;}else{maxh=deh;minh=dbh;}w=(maxw>_5ab.innerWidth)?minw:maxw;h=(maxh>_5ab.innerHeight)?minh:maxh;}else{if(!dojo.isOpera&&_5ab.innerWidth){w=_5ab.innerWidth;h=_5ab.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _5b8=dojo._docScroll();return {w:w,h:h,l:_5b8.x,t:_5b8.y};};dijit.placeOnScreen=function(node,pos,_5bb,_5bc){var _5bd=dojo.map(_5bb,function(_5be){return {corner:_5be,pos:pos};});return dijit._place(node,_5bd);};dijit._place=function(node,_5c0,_5c1){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_5c0,function(_5c4){var _5c5=_5c4.corner;var pos=_5c4.pos;if(_5c1){_5c1(node,_5c4.aroundCorner,_5c5);}var _5c7=node.style;var _5c8=_5c7.display;var _5c9=_5c7.visibility;_5c7.visibility="hidden";_5c7.display="";var mb=dojo.marginBox(node);_5c7.display=_5c8;_5c7.visibility=_5c9;var _5cb=(_5c5.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_5cc=(_5c5.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_5c5.charAt(1)=="L"?Math.min(view.l+view.w,_5cb+mb.w):pos.x),endY=(_5c5.charAt(0)=="T"?Math.min(view.t+view.h,_5cc+mb.h):pos.y),_5cf=endX-_5cb,_5d0=endY-_5cc,_5d1=(mb.w-_5cf)+(mb.h-_5d0);if(best==null||_5d1<best.overflow){best={corner:_5c5,aroundCorner:_5c4.aroundCorner,x:_5cb,y:_5cc,w:_5cf,h:_5d0,overflow:_5d1};}return !_5d1;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_5c1){_5c1(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundElement=function(node,_5d3,_5d4,_5d5){_5d3=dojo.byId(_5d3);var _5d6=_5d3.style.display;_5d3.style.display="";var _5d7=_5d3.offsetWidth;var _5d8=_5d3.offsetHeight;var _5d9=dojo.coords(_5d3,true);_5d3.style.display=_5d6;var _5da=[];for(var _5db in _5d4){_5da.push({aroundCorner:_5db,corner:_5d4[_5db],pos:{x:_5d9.x+(_5db.charAt(1)=="L"?0:_5d7),y:_5d9.y+(_5db.charAt(0)=="T"?0:_5d8)}});}return dijit._place(node,_5da,_5d5);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _5e1=[],_5e2=1000,_5e3=1;this.prepare=function(node){dojo.body().appendChild(node);var s=node.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(args){var _5e7=args.popup,_5e8=args.orient||{"BL":"TL","TL":"BL"},_5e9=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_5e3++);var _5eb=dojo.doc.createElement("div");dijit.setWaiRole(_5eb,"presentation");_5eb.id=id;_5eb.className="dijitPopup";_5eb.style.zIndex=_5e2+_5e1.length;_5eb.style.visibility="hidden";if(args.parent){_5eb.dijitPopupParent=args.parent.id;}dojo.body().appendChild(_5eb);var s=_5e7.domNode.style;s.display="";s.visibility="";s.position="";_5eb.appendChild(_5e7.domNode);var _5ed=new dijit.BackgroundIframe(_5eb);var best=_5e9?dijit.placeOnScreenAroundElement(_5eb,_5e9,_5e8,_5e7.orient?dojo.hitch(_5e7,"orient"):null):dijit.placeOnScreen(_5eb,args,_5e8=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_5eb.style.visibility="visible";var _5ef=[];var _5f0=function(){for(var pi=_5e1.length-1;pi>0&&_5e1[pi].parent===_5e1[pi-1].widget;pi--){}return _5e1[pi];};_5ef.push(dojo.connect(_5eb,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _5f3=_5f0();if(_5f3&&_5f3.onCancel){_5f3.onCancel();}}}}));if(_5e7.onCancel){_5ef.push(dojo.connect(_5e7,"onCancel",null,args.onCancel));}_5ef.push(dojo.connect(_5e7,_5e7.onExecute?"onExecute":"onChange",null,function(){var _5f4=_5f0();if(_5f4&&_5f4.onExecute){_5f4.onExecute();}}));_5e1.push({wrapper:_5eb,iframe:_5ed,widget:_5e7,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_5ef});if(_5e7.onOpen){_5e7.onOpen(best);}return best;};this.close=function(_5f5){while(dojo.some(_5e1,function(elem){return elem.widget==_5f5;})){var top=_5e1.pop(),_5f8=top.wrapper,_5f9=top.iframe,_5fa=top.widget,_5fb=top.onClose;if(_5fa.onClose){_5fa.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_5fa||!_5fa.domNode){return;}this.prepare(_5fa.domNode);_5f9.destroy();dojo._destroyElement(_5f8);if(_5fb){_5fb();}}};}();dijit._frames=new function(){var _5fc=[];this.pop=function(){var _5fd;if(_5fc.length){_5fd=_5fc.pop();_5fd.style.display="";}else{if(dojo.isIE){var html="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_5fd=dojo.doc.createElement(html);}else{_5fd=dojo.doc.createElement("iframe");_5fd.src="javascript:\"\"";_5fd.className="dijitBackgroundIframe";}_5fd.tabIndex=-1;dojo.body().appendChild(_5fd);}return _5fd;};this.push=function(_5ff){_5ff.style.display="";if(dojo.isIE){_5ff.style.removeExpression("width");_5ff.style.removeExpression("height");}_5fc.push(_5ff);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _602=dijit._frames.pop();node.appendChild(_602);if(dojo.isIE){_602.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_602.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_602;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node){var _604=node.parentNode;var _605=_604.scrollTop+dojo.marginBox(_604).h;var _606=node.offsetTop+dojo.marginBox(node).h;if(_605<_606){_604.scrollTop+=(_606-_605);}else{if(_604.scrollTop>node.offsetTop){_604.scrollTop-=(_604.scrollTop-node.offsetTop);}}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _609=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _60c={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_609,dj_opera8:maj(_609)==8,dj_opera9:maj(_609)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2};for(var p in _60c){if(_60c[p]){var html=dojo.doc.documentElement;if(html.className){html.className+=" "+p;}else{html.className=p;}}}})();}if(!dojo._hasResource["dijit._base.bidi"]){dojo._hasResource["dijit._base.bidi"]=true;dojo.provide("dijit._base.bidi");dojo.addOnLoad(function(){if(!dojo._isBodyLtr()){dojo.addClass(dojo.body(),"dijitRtl");}});}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_610,node,_612,obj,_614,_615){if(obj!=this._obj){this.stop();this._initialDelay=_615||500;this._subsequentDelay=_614||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_610,_612);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_617,_618,_619,_61a,_61b){return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.keyCode==_617.keyCode&&(!_617.charCode||_617.charCode==evt.charCode)&&(_617.ctrlKey===undefined||_617.ctrlKey==evt.ctrlKey)&&(_617.altKey===undefined||_617.altKey==evt.ctrlKey)&&(_617.shiftKey===undefined||_617.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_617,_618,node,_619,_617,_61a,_61b);}else{if(dijit.typematic._obj==_617){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_617){dijit.typematic.stop();}})];},addMouseListener:function(node,_61f,_620,_621,_622){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_61f,node,_620,node,_621,_622);}),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){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_61f,node,_620,node,_621,_622);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_629,_62a,_62b,_62c,_62d,_62e,_62f){return this.addKeyListener(_62a,_62b,_62c,_62d,_62e,_62f).concat(this.addMouseListener(_629,_62c,_62d,_62e,_62f));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+dojo.moduleUrl("dojo","resources/blank.gif")+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _632=cs.backgroundImage;var _633=(cs.borderTopColor==cs.borderRightColor)||(_632!=null&&(_632=="none"||_632=="url(invalid-url:)"));dojo[_633?"addClass":"removeClass"](dojo.body(),"dijit_a11y");dojo.body().removeChild(div);}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem){return elem.hasAttribute?elem.hasAttribute("role"):!!elem.getAttribute("role");},getWaiRole:function(elem){var _636=elem.getAttribute("role");if(_636){var _637=_636.indexOf(":");return _637==-1?_636:_636.substring(_637+1);}else{return "";}},setWaiRole:function(elem,role){elem.setAttribute("role",(dojo.isFF&&dojo.isFF<3)?"wairole:"+role:role);},removeWaiRole:function(elem){elem.removeAttribute("role");},hasWaiState:function(elem,_63c){if(dojo.isFF&&dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_63c);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_63c):!!elem.getAttribute("aria-"+_63c);}},getWaiState:function(elem,_63e){if(dojo.isFF&&dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_63e);}else{var _63f=elem.getAttribute("aria-"+_63e);return _63f?_63f:"";}},setWaiState:function(elem,_641,_642){if(dojo.isFF&&dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_641,_642);}else{elem.setAttribute("aria-"+_641,_642);}},removeWaiState:function(elem,_644){if(dojo.isFF&&dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_644);}else{elem.removeAttribute("aria-"+_644);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");if(dojo.isSafari){dojo.connect(window,"load",function(){window.resizeBy(1,0);setTimeout(function(){window.resizeBy(-1,0);},10);});}}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_645,_646){this.create(_645,_646);},create:function(_647,_648){this.srcNodeRef=dojo.byId(_648);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_647){this.params=_647;dojo.mixin(this,_647);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var attr in this.attributeMap){var _64a=this[attr];if(typeof _64a!="object"&&((_64a!==""&&_64a!==false)||(_647&&_647[attr]))){this.setAttribute(attr,_64a);}}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_64b){this.destroyDescendants();this.destroy();},destroy:function(_64c){this.uninitialize();dojo.forEach(this._connects,function(_64d){dojo.forEach(_64d,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){w.destroy();});this.destroyRendering(_64c);dijit.registry.remove(this.id);},destroyRendering:function(_64f){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){dojo._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){dojo._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){dojo.forEach(this.getDescendants(),function(_650){_650.destroy();});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_653){var _654=this[this.attributeMap[attr]||"domNode"];this[attr]=_653;switch(attr){case "class":dojo.addClass(_654,_653);break;case "style":if(_654.style.cssText){_654.style.cssText+="; "+_653;}else{_654.style.cssText=_653;}break;default:if(/^on[A-Z]/.test(attr)){attr=attr.toLowerCase();}if(typeof _653=="function"){_653=dojo.hitch(this,_653);}dojo.attr(_654,attr,_653);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_657,_658){var _659=[];if(_657=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){_659.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_658))?this[_658](e):_658.call(this,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_659.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_658)?this[_658](e):_658.call(this,e);}}));}_657="onclick";}_659.push(dojo.connect(obj,_657,this,_658));this._connects.push(_659);return _659;},disconnect:function(_65c){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_65c){dojo.forEach(_65c,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(!("_ltr" in this)){this._ltr=dojo.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_663,map,_665,_666){return _663.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_667,key,_669){var _66a=dojo.getObject(key,false,map);if(_669){_66a=dojo.getObject(_669,false,_666)(_66a);}if(_665){_66a=_665(_66a,key);}return _66a.toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_66d,_66e){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 _66f=dojo.date.stamp._isoRegExp.exec(_66d);var _670=null;if(_66f){_66f.shift();if(_66f[1]){_66f[1]--;}if(_66f[6]){_66f[6]*=1000;}if(_66e){_66e=new Date(_66e);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _66e["get"+prop]();}).forEach(function(_672,_673){if(_66f[_673]===undefined){_66f[_673]=_672;}});}_670=new Date(_66f[0]||1970,_66f[1]||0,_66f[2]||1,_66f[3]||0,_66f[4]||0,_66f[5]||0,_66f[6]||0);var _674=0;var _675=_66f[7]&&_66f[7].charAt(0);if(_675!="Z"){_674=((_66f[8]||0)*60)+(Number(_66f[9])||0);if(_675!="-"){_674*=-1;}}if(_675){_674-=_670.getTimezoneOffset();}if(_674){_670.setTime(_670.getTime()+_674*60000);}}return _670;};dojo.date.stamp.toISOString=function(_676,_677){var _=function(n){return (n<10)?"0"+n:n;};_677=_677||{};var _67a=[];var _67b=_677.zulu?"getUTC":"get";var date="";if(_677.selector!="time"){var year=_676[_67b+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_676[_67b+"Month"]()+1),_(_676[_67b+"Date"]())].join("-");}_67a.push(date);if(_677.selector!="date"){var time=[_(_676[_67b+"Hours"]()),_(_676[_67b+"Minutes"]()),_(_676[_67b+"Seconds"]())].join(":");var _67f=_676[_67b+"Milliseconds"]();if(_677.milliseconds){time+="."+(_67f<100?"0":"")+_(_67f);}if(_677.zulu){time+="Z";}else{if(_677.selector!="time"){var _680=_676.getTimezoneOffset();var _681=Math.abs(_680);time+=(_680>0?"-":"+")+_(Math.floor(_681/60))+":"+_(_681%60);}}_67a.push(time);}return _67a.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _683=d._scopeName+"Type";var qry="["+_683+"]";function val2type(_685){if(d.isString(_685)){return "string";}if(typeof _685=="number"){return "number";}if(typeof _685=="boolean"){return "boolean";}if(d.isFunction(_685)){return "function";}if(d.isArray(_685)){return "array";}if(_685 instanceof Date){return "date";}if(_685 instanceof d._Url){return "url";}return "object";};function str2obj(_686,type){switch(type){case "string":return _686;case "number":return _686.length?Number(_686):NaN;case "boolean":return typeof _686=="boolean"?_686:!(_686.toLowerCase()=="false");case "function":if(d.isFunction(_686)){_686=_686.toString();_686=d.trim(_686.substring(_686.indexOf("{")+1,_686.length-1));}try{if(_686.search(/[^\w\.]+/i)!=-1){_686=d.parser._nameAnonFunc(new Function(_686),this);}return d.getObject(_686,false);}catch(e){return new Function();}case "array":return _686.split(/\s*,\s*/);case "date":switch(_686){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_686);}case "url":return d.baseUrl+_686;default:return d.fromJson(_686);}};var _688={};function getClassInfo(_689){if(!_688[_689]){var cls=d.getObject(_689);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_689+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _68b=cls.prototype;var _68c={};for(var name in _68b){if(name.charAt(0)=="_"){continue;}var _68e=_68b[name];_68c[name]=val2type(_68e);}_688[_689]={cls:cls,params:_68c};}return _688[_689];};this._functionFromScript=function(_68f){var _690="";var _691="";var _692=_68f.getAttribute("args");if(_692){d.forEach(_692.split(/\s*,\s*/),function(part,idx){_690+="var "+part+" = arguments["+idx+"]; ";});}var _695=_68f.getAttribute("with");if(_695&&_695.length){d.forEach(_695.split(/\s*,\s*/),function(part){_690+="with("+part+"){";_691+="}";});}return new Function(_690+_68f.innerHTML+_691);};this.instantiate=function(_697){var _698=[];d.forEach(_697,function(node){if(!node){return;}var type=node.getAttribute(_683);if((!type)||(!type.length)){return;}var _69b=getClassInfo(type);var _69c=_69b.cls;var ps=_69c._noScript||_69c.prototype._noScript;var _69e={};var _69f=node.attributes;for(var name in _69b.params){var item=_69f.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _6a2=item.value;switch(name){case "class":_6a2=node.className;break;case "style":_6a2=node.style&&node.style.cssText;}var _6a3=_69b.params[name];_69e[name]=str2obj(_6a2,_6a3);}if(!ps){var _6a4=[],_6a5=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_6a6){var _6a7=_6a6.getAttribute("event"),type=_6a6.getAttribute("type"),nf=d.parser._functionFromScript(_6a6);if(_6a7){if(type=="dojo/connect"){_6a4.push({event:_6a7,func:nf});}else{_69e[_6a7]=nf;}}else{_6a5.push(nf);}});}var _6a9=_69c["markupFactory"];if(!_6a9&&_69c["prototype"]){_6a9=_69c.prototype["markupFactory"];}var _6aa=_6a9?_6a9(_69e,node,_69c):new _69c(_69e,node);_698.push(_6aa);var _6ab=node.getAttribute("jsId");if(_6ab){d.setObject(_6ab,_6aa);}if(!ps){d.forEach(_6a4,function(_6ac){d.connect(_6aa,_6ac.event,null,_6ac.func);});d.forEach(_6a5,function(func){func.call(_6aa);});}});d.forEach(_698,function(_6ae){if(_6ae&&_6ae.startup&&!_6ae._started&&(!_6ae.getParent||!_6ae.getParent())){_6ae.startup();}});return _698;};this.parse=function(_6af){var list=d.query(qry,_6af);var _6b1=this.instantiate(list);return _6b1;};}();(function(){var _6b2=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_6b2);}else{dojo._loaders.unshift(_6b2);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_6b3,_6b4){var jpn="$joinpoint";var nso=(_6b4||dojo.parser._anon);if(dojo.isIE){var cn=_6b3["__dojoNameCache"];if(cn&&nso[cn]===_6b3){return _6b3["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_6b3;return ret;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,_stringRepl:function(tmpl){var _6ba=this.declaredClass,_6bb=this;return dojo.string.substitute(tmpl,this,function(_6bc,key){if(key.charAt(0)=="!"){_6bc=_6bb[key.substr(1)];}if(typeof _6bc=="undefined"){throw new Error(_6ba+" template:"+key);}if(!_6bc){return "";}return key.charAt(0)=="!"?_6bc:_6bc.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _6be=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_6be)){node=dijit._Templated._createNodesFromText(this._stringRepl(_6be))[0];}else{node=_6be.cloneNode(true);}this._attachTemplateNodes(node);var _6c0=this.srcNodeRef;if(_6c0&&_6c0.parentNode){_6c0.parentNode.replaceChild(node,_6c0);}this.domNode=node;if(this.widgetsInTemplate){var cw=this._supportingWidgets=dojo.parser.parse(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_6c0);},_fillContent:function(_6c4){var dest=this.containerNode;if(_6c4&&dest){while(_6c4.hasChildNodes()){dest.appendChild(_6c4.firstChild);}}},_attachTemplateNodes:function(_6c6,_6c7){_6c7=_6c7||function(n,p){return n.getAttribute(p);};var _6ca=dojo.isArray(_6c6)?_6c6:(_6c6.all||_6c6.getElementsByTagName("*"));var x=dojo.isArray(_6c6)?0:-1;for(;x<_6ca.length;x++){var _6cc=(x==-1)?_6c6:_6ca[x];if(this.widgetsInTemplate&&_6c7(_6cc,"dojoType")){continue;}var _6cd=_6c7(_6cc,"dojoAttachPoint");if(_6cd){var _6ce,_6cf=_6cd.split(/\s*,\s*/);while((_6ce=_6cf.shift())){if(dojo.isArray(this[_6ce])){this[_6ce].push(_6cc);}else{this[_6ce]=_6cc;}}}var _6d0=_6c7(_6cc,"dojoAttachEvent");if(_6d0){var _6d1,_6d2=_6d0.split(/\s*,\s*/);var trim=dojo.trim;while((_6d1=_6d2.shift())){if(_6d1){var _6d4=null;if(_6d1.indexOf(":")!=-1){var _6d5=_6d1.split(":");_6d1=trim(_6d5[0]);_6d4=trim(_6d5[1]);}else{_6d1=trim(_6d1);}if(!_6d4){_6d4=_6d1;}this.connect(_6cc,_6d1,_6d4);}}}var role=_6c7(_6cc,"waiRole");if(role){dijit.setWaiRole(_6cc,role);}var _6d7=_6c7(_6cc,"waiState");if(_6d7){dojo.forEach(_6d7.split(/\s*,\s*/),function(_6d8){if(_6d8.indexOf("-")!=-1){var pair=_6d8.split("-");dijit.setWaiState(_6cc,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_6da,_6db,_6dc){var _6dd=dijit._Templated._templateCache;var key=_6db||_6da;var _6df=_6dd[key];if(_6df){return _6df;}if(!_6db){_6db=dijit._Templated._sanitizeTemplateString(dojo._getText(_6da));}_6db=dojo.string.trim(_6db);if(_6dc||_6db.match(/\$\{([^\}]+)\}/g)){return (_6dd[key]=_6db);}else{return (_6dd[key]=dijit._Templated._createNodesFromText(_6db)[0]);}};dijit._Templated._sanitizeTemplateString=function(_6e0){if(_6e0){_6e0=_6e0.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _6e1=_6e0.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_6e1){_6e0=_6e1[1];}}else{_6e0="";}return _6e0;};if(dojo.isIE){dojo.addOnUnload(function(){var _6e2=dijit._Templated._templateCache;for(var key in _6e2){var _6e4=_6e2[key];if(!isNaN(_6e4.nodeType)){dojo._destroyElement(_6e4);}delete _6e2[key];}});}(function(){var _6e5={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _6e8="none";var _6e9=text.replace(/^\s+/,"");for(var type in _6e5){var map=_6e5[type];if(map.re.test(_6e9)){_6e8=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_6e8];var _6ed=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _6ee=[];while(_6ed.firstChild){_6ee.push(_6ed.removeChild(_6ed.firstChild));}tn.innerHTML="";return _6ee;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _6f1=dijit.byId(id);return _6f1&&_6f1.isContainer?_6f1:null;}}return null;},_getSibling:function(_6f2){var node=this.domNode;do{node=node[_6f2+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");}});dojo.declare("dijit._Container",null,{isContainer:true,addChild:function(_6f5,_6f6){if(_6f6===undefined){_6f6="last";}var _6f7=this.containerNode||this.domNode;if(_6f6&&typeof _6f6=="number"){var _6f8=dojo.query("> [widgetid]",_6f7);if(_6f8&&_6f8.length>=_6f6){_6f7=_6f8[_6f6-1];_6f6="after";}}dojo.place(_6f5.domNode,_6f7,_6f6);if(this._started&&!_6f5._started){_6f5.startup();}},removeChild:function(_6f9){var node=_6f9.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode||this.domNode).map(dijit.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);},_getSiblingOfChild:function(_6fe,dir){var node=_6fe.domNode;var _701=(dir>0?"nextSibling":"previousSibling");do{node=node[_701];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_702,_703){var _704=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_702,function(code){_704[code]=prev;});dojo.forEach(_703,function(code){_704[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_709,_70a){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_709);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _70b=this._getNextFocusableChild(this.focusedChild,1);if(_70b.getFocalNodes){this.focusChild(_70b,_70b.getFocalNodes()[0]);}else{this.focusChild(_70b);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _70c=this._getNextFocusableChild(this.focusedChild,-1);if(_70c.getFocalNodes){var _70d=_70c.getFocalNodes();this.focusChild(_70c,_70d[_70d.length-1]);}else{this.focusChild(_70c);}},focusChild:function(_70e,node){if(_70e){if(this.focusedChild&&_70e!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_70e;if(node&&_70e.focusFocalNode){_70e.focusFocalNode(node);}else{_70e.focus();}}},_startupChild:function(_710){if(_710.getFocalNodes){dojo.forEach(_710.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_710.focusNode||_710.domNode;if(_710.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _718=dijit.getEnclosingWidget(evt.target);if(_718&&_718.isFocusable()){this.focusedChild=_718;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_71a){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_71b,dir){if(_71b){_71b=this._getSiblingOfChild(_71b,dir);}var _71d=this.getChildren();for(var i=0;i<_71d.length;i++){if(!_71b){_71b=_71d[(dir>0)?0:(_71d.length-1)];}if(_71b.isFocusable()){return _71b;}_71b=this._getSiblingOfChild(_71b,dir);}return null;}});}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],{isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_71f){_71f.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}this.inherited(arguments);},resize:function(args){var node=this.domNode;if(args){dojo.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=dojo.mixin(dojo.marginBox(node),args||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});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 _728=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_72b,dim){_72b.resize?_72b.resize(dim):dojo.marginBox(_72b.domNode,dim);dojo.mixin(_72b,dojo.marginBox(_72b.domNode));dojo.mixin(_72b,dim);};dijit.layout.layoutChildren=function(_72d,dim,_72f){dim=dojo.mixin({},dim);dojo.addClass(_72d,"dijitLayoutContainer");_72f=dojo.filter(_72f,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_72f,function(item){return item.layoutAlign=="client";}));dojo.forEach(_72f,function(_732){var elm=_732.domNode,pos=_732.layoutAlign;var _735=elm.style;_735.left=dim.l+"px";_735.top=dim.t+"px";_735.bottom=_735.right="auto";dojo.addClass(elm,"dijitAlign"+_728(pos));if(pos=="top"||pos=="bottom"){size(_732,{w:dim.w});dim.h-=_732.h;if(pos=="top"){dim.t+=_732.h;}else{_735.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_732,{h:dim.h});dim.w-=_732.w;if(pos=="left"){dim.l+=_732.w;}else{_735.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_732,dim);}}}});};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_736,_737,_738){_738=dojo.i18n.normalizeLocale(_738);var _739=_738.split("-");var _73a=[_736,"nls",_737].join(".");var _73b=dojo._loadedModules[_73a];if(_73b){var _73c;for(var i=_739.length;i>0;i--){var loc=_739.slice(0,i).join("_");if(_73b[loc]){_73c=_73b[loc];break;}}if(!_73c){_73c=_73b.ROOT;}if(_73c){var _73f=function(){};_73f.prototype=_73c;return new _73f();}}throw new Error("Bundle not found: "+_737+" in "+_736+" , locale="+_738);};dojo.i18n.normalizeLocale=function(_740){var _741=_740?_740.toLowerCase():dojo.locale;if(_741=="root"){_741="ROOT";}return _741;};dojo.i18n._requireLocalization=function(_742,_743,_744,_745){var _746=dojo.i18n.normalizeLocale(_744);var _747=[_742,"nls",_743].join(".");var _748="";if(_745){var _749=_745.split(",");for(var i=0;i<_749.length;i++){if(_746.indexOf(_749[i])==0){if(_749[i].length>_748.length){_748=_749[i];}}}if(!_748){_748="ROOT";}}var _74b=_745?_748:_746;var _74c=dojo._loadedModules[_747];var _74d=null;if(_74c){if(dojo.config.localizationComplete&&_74c._built){return;}var _74e=_74b.replace(/-/g,"_");var _74f=_747+"."+_74e;_74d=dojo._loadedModules[_74f];}if(!_74d){_74c=dojo["provide"](_747);var syms=dojo._getModuleSymbols(_742);var _751=syms.concat("nls").join("/");var _752;dojo.i18n._searchLocalePath(_74b,_745,function(loc){var _754=loc.replace(/-/g,"_");var _755=_747+"."+_754;var _756=false;if(!dojo._loadedModules[_755]){dojo["provide"](_755);var _757=[_751];if(loc!="ROOT"){_757.push(loc);}_757.push(_743);var _758=_757.join("/")+".js";_756=dojo._loadPath(_758,null,function(hash){var _75a=function(){};_75a.prototype=_752;_74c[_754]=new _75a();for(var j in hash){_74c[_754][j]=hash[j];}});}else{_756=true;}if(_756&&_74c[_754]){_752=_74c[_754];}else{_74c[_754]=_752;}if(_745){return true;}});}if(_745&&_746!=_748){_74c[_746.replace(/-/g,"_")]=_74c[_748.replace(/-/g,"_")];}};(function(){var _75c=dojo.config.extraLocale;if(_75c){if(!_75c instanceof Array){_75c=[_75c];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_760,_761){req(m,b,_760,_761);if(_760){return;}for(var i=0;i<_75c.length;i++){req(m,b,_75c[i],_761);}};}})();dojo.i18n._searchLocalePath=function(_763,down,_765){_763=dojo.i18n.normalizeLocale(_763);var _766=_763.split("-");var _767=[];for(var i=_766.length;i>0;i--){_767.push(_766.slice(0,i).join("-"));}_767.push(false);if(down){_767.reverse();}for(var j=_767.length-1;j>=0;j--){var loc=_767[j]||"ROOT";var stop=_765(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_76c,_76d){function preload(_76e){_76e=dojo.i18n.normalizeLocale(_76e);dojo.i18n._searchLocalePath(_76e,true,function(loc){for(var i=0;i<_76d.length;i++){if(_76d[i]==loc){dojo["require"](_76c+"_"+loc);return true;}}return false;});};preload();var _771=dojo.config.extraLocale||[];for(var i=0;i<_771.length;i++){preload(_771[i]);}};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,"class":"dijitContentPane",doLayout:"auto",postCreate:function(){this.domNode.title="";if(!this.containerNode){this.containerNode=this.domNode;}if(this.preload){this._loadCheck();}var _773=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_773);this.errorMessage=dojo.string.substitute(this.errorMessage,_773);var _774=dijit.getWaiRole(this.domNode);if(!_774){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this["class"]);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _775=dojo.query(">",this.containerNode||this.domNode),_776=_775.filter("[widgetId]");if(_775.length==1&&_776.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_776[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();this._singleChild.resize(this._contentBox||dojo.contentBox(this.containerNode||this.domNode));}}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited("destroy",arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}},_prepareLoad:function(_77c){this.cancel();this.isLoaded=false;this._loadCheck(_77c);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_77e){var _77f=this._isShown();if(this.href&&(_77e||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_77f&&!this._xhrDfd)||(!this.isLoaded&&_77f&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _781={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_781,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_781);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _788=this.onContentError(e);try{node.innerHTML=_788;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_78b){var _78c=this["on"+type+"Error"].call(this,err);if(_78b){console.error(_78b,err);}else{if(_78c){this._setContent.call(this,_78c);}}},_createSubWidgets:function(){var _78d=this.containerNode||this.domNode;try{dojo.parser.parse(_78d,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_790){},onDownloadError:function(_791){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_792){if(_792.reset){_792.reset();}});},validate:function(){var _793=false;return dojo.every(dojo.map(this.getDescendants(),function(_794){_794._hasBeenBlurred=true;var _795=!_794.validate||_794.validate();if(!_795&&!_793){dijit.scrollIntoView(_794.containerNode||_794.domNode);_794.focus();_793=true;}return _795;}),"return item;");},setValues:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_798){if(!_798.name){return;}var _799=map[_798.name]||(map[_798.name]=[]);_799.push(_798);});for(var name in map){var _79b=map[name],_79c=dojo.getObject(name,false,obj);if(!dojo.isArray(_79c)){_79c=[_79c];}if(typeof _79b[0].checked=="boolean"){dojo.forEach(_79b,function(w,i){w.setValue(dojo.indexOf(_79c,w.value)!=-1);});}else{if(_79b[0]._multiValue){_79b[0].setValue(_79c);}else{dojo.forEach(_79b,function(w,i){w.setValue(_79c[i]);});}}}},getValues:function(){var obj={};dojo.forEach(this.getDescendants(),function(_7a2){var name=_7a2.name;if(!name){return;}var _7a4=(_7a2.getValue&&!_7a2._getValueDeprecated)?_7a2.getValue():_7a2.value;if(typeof _7a2.checked=="boolean"){if(/Radio/.test(_7a2.declaredClass)){if(_7a4!==false){dojo.setObject(name,_7a4,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_7a4!==false){ary.push(_7a4);}}}else{dojo.setObject(name,_7a4,obj);}});return obj;},isValid:function(){return dojo.every(this.getDescendants(),function(_7a6){return !_7a6.isValid||_7a6.isValid();});}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_7a7){},onExecute:function(){},setAttribute:function(attr,_7a9){this.inherited(arguments);switch(attr){case "encType":if(dojo.isIE){this.domNode.encoding=_7a9;}}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.setAttribute("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _7b1=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_7b1.t+"px";os.left=_7b1.l+"px";is.width=_7b1.w+"px";is.height=_7b1.h+"px";var _7b4=dijit.getViewport();if(_7b1.w!=_7b4.w){is.width=_7b4.w+"px";}if(_7b1.h!=_7b4.h){is.height=_7b4.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}this._resizeHandler=this.connect(window,"onresize","layout");},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}this.disconnect(this._resizeHandler);},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_7b5){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.getValues());},_getFocusItems:function(_7b6){var _7b7=dijit.getFirstInTabbingOrder(_7b6);this._firstFocusItem=_7b7?_7b7:_7b6;_7b7=dijit.getLastInTabbingOrder(_7b6);this._lastFocusItem=_7b7?_7b7:this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_7b6,"tabindex","0");this._firstFocusItem=_7b6;}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\">${title}</span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",open:false,duration:400,refocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:"titleBar"}),postCreate:function(){dojo.body().appendChild(this.domNode);this.inherited(arguments);var _7b8=dojo.i18n.getLocalization("dijit","common");if(this.closeButtonNode){this.closeButtonNode.setAttribute("title",_7b8.buttonCancel);}if(this.closeText){this.closeText.setAttribute("title",_7b8.buttonCancel);}var s=this.domNode.style;s.visibility="hidden";s.position="absolute";s.display="";s.top="-9999px";this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_setup:function(){if(this.titleBar){this._moveable=new dojo.dnd.TimedMoveable(this.domNode,{handle:this.titleBar,timeout:0});}this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")});var node=this.domNode;this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})]);},uninitialize:function(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}if(this._underlay){this._underlay.destroy();}},_position:function(){if(dojo.hasClass(dojo.body(),"dojoMove")){return;}var _7bc=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _7be=this.domNode.style;_7be.left=Math.floor((_7bc.l+(_7bc.w-mb.w)/2))+"px";_7be.top=Math.floor((_7bc.t+(_7bc.h-mb.h)/2))+"px";},_onKey:function(evt){if(evt.keyCode){var node=evt.target;if(evt.keyCode==dojo.keys.TAB){this._getFocusItems(this.domNode);}var _7c1=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(!_7c1){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.keyCode==dojo.keys.TAB&&!evt.shiftKey){if(!_7c1){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.keyCode==dojo.keys.ESCAPE){this.hide();}else{return;}}node=node.parentNode;}if(evt.keyCode!=dojo.keys.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,"opacity",0);this.domNode.style.visibility="";this.open=true;this._loadCheck();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);this._getFocusItems(this.domNode);setTimeout(dojo.hitch(this,function(){dijit.focus(this._firstFocusItem);}),50);},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){this._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){var fo=this._savedFocus;setTimeout(dojo.hitch(dijit,"focus",fo),25);}this.inherited(arguments);}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div class=\"dijitTooltipDialog\" waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presenation\"></div>\n</div>\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_7c4,_7c5){this.domNode.className="dijitTooltipDialog "+" dijitTooltipAB"+(_7c5.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_7c5.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this._getFocusItems(this.containerNode);this.orient(this.domNode,pos.aroundCorner,pos.corner);this._loadCheck();dijit.focus(this._firstFocusItem);},_onKey:function(evt){var node=evt.target;if(evt.keyCode==dojo.keys.TAB){this._getFocusItems(this.containerNode);}var _7c9=(this._firstFocusItem==this._lastFocusItem);if(evt.keyCode==dojo.keys.ESCAPE){this.onCancel();}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(!_7c9){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.keyCode==dojo.keys.TAB&&!evt.shiftKey){if(!_7c9){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.keyCode==dojo.keys.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dojo.DeferredList"]){dojo._hasResource["dojo.DeferredList"]=true;dojo.provide("dojo.DeferredList");dojo.declare("dojo.DeferredList",dojo.Deferred,{constructor:function(list,_7cb,_7cc,_7cd,_7ce){this.list=list;this.resultList=new Array(this.list.length);this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_7ce;this.silentlyCancelled=false;if(this.list.length===0&&!_7cb){this.callback(this.resultList);}this.finishedCount=0;this.fireOnOneCallback=_7cb;this.fireOnOneErrback=_7cc;this.consumeErrors=_7cd;dojo.forEach(this.list,function(d,_7d0){d.addCallback(this,function(r){this._cbDeferred(_7d0,true,r);return r;});d.addErrback(this,function(r){this._cbDeferred(_7d0,false,r);return r;});},this);},_cbDeferred:function(_7d3,_7d4,_7d5){this.resultList[_7d3]=[_7d4,_7d5];this.finishedCount+=1;if(this.fired!==0){if(_7d4&&this.fireOnOneCallback){this.callback([_7d3,_7d5]);}else{if(!_7d4&&this.fireOnOneErrback){this.errback(_7d5);}else{if(this.finishedCount==this.list.length){this.callback(this.resultList);}}}}if(!_7d4&&this.consumeErrors){_7d5=null;}return _7d5;},gatherResults:function(_7d6){var d=new dojo.DeferredList(_7d6,false,true,false);d.addCallback(function(_7d8){var ret=[];dojo.forEach(_7d8,function(_7da){ret.push(_7da[1]);});return ret;});return d;}});}if(!dojo._hasResource["dojo.io.script"]){dojo._hasResource["dojo.io.script"]=true;dojo.provide("dojo.io.script");dojo.io.script={get:function(args){var dfd=this._makeScriptDeferred(args);var _7dd=dfd.ioArgs;dojo._ioAddQueryToUrl(_7dd);this.attach(_7dd.id,_7dd.url,args.frameDoc);dojo._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);return dfd;},attach:function(id,url,_7e0){var doc=(_7e0||dojo.doc);var _7e2=doc.createElement("script");_7e2.type="text/javascript";_7e2.src=url;_7e2.id=id;doc.getElementsByTagName("head")[0].appendChild(_7e2);},remove:function(id){dojo._destroyElement(dojo.byId(id));if(this["jsonp_"+id]){delete this["jsonp_"+id];}},_makeScriptDeferred:function(args){var dfd=dojo._ioSetArgs(args,this._deferredCancel,this._deferredOk,this._deferredError);var _7e6=dfd.ioArgs;_7e6.id=dojo._scopeName+"IoScript"+(this._counter++);_7e6.canDelete=false;if(args.callbackParamName){_7e6.query=_7e6.query||"";if(_7e6.query.length>0){_7e6.query+="&";}_7e6.query+=args.callbackParamName+"="+(args.frameDoc?"parent.":"")+"dojo.io.script.jsonp_"+_7e6.id+"._jsonpCallback";_7e6.canDelete=true;dfd._jsonpCallback=this._jsonpCallback;this["jsonp_"+_7e6.id]=dfd;}return dfd;},_deferredCancel:function(dfd){dfd.canceled=true;if(dfd.ioArgs.canDelete){dojo.io.script._deadScripts.push(dfd.ioArgs.id);}},_deferredOk:function(dfd){if(dfd.ioArgs.canDelete){dojo.io.script._deadScripts.push(dfd.ioArgs.id);}if(dfd.ioArgs.json){return dfd.ioArgs.json;}else{return dfd.ioArgs;}},_deferredError:function(_7e9,dfd){if(dfd.ioArgs.canDelete){if(_7e9.dojoType=="timeout"){dojo.io.script.remove(dfd.ioArgs.id);}else{dojo.io.script._deadScripts.push(dfd.ioArgs.id);}}console.debug("dojo.io.script error",_7e9);return _7e9;},_deadScripts:[],_counter:1,_validCheck:function(dfd){var _7ec=dojo.io.script;var _7ed=_7ec._deadScripts;if(_7ed&&_7ed.length>0){for(var i=0;i<_7ed.length;i++){_7ec.remove(_7ed[i]);}dojo.io.script._deadScripts=[];}return true;},_ioCheck:function(dfd){if(dfd.ioArgs.json){return true;}var _7f0=dfd.ioArgs.args.checkString;if(_7f0&&eval("typeof("+_7f0+") != 'undefined'")){return true;}return false;},_resHandle:function(dfd){if(dojo.io.script._ioCheck(dfd)){dfd.callback(dfd);}else{dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));}},_jsonpCallback:function(json){this.ioArgs.json=json;}};}if(!dojo._hasResource["semweb.googleutils"]){dojo._hasResource["semweb.googleutils"]=true;dojo.provide("semweb.googleutils");semweb.googleutils.keys={"localhost:8080":"ABQIAAAAOVuTVW1aChPiS8ukar-AChTwM0brOpm-All5BF6PoaKBxRWWERR6OZAzcHYJcPqM0WXK0J_QKHLiVQ","temppeli.seco.hut.fi:8080":"ABQIAAAAOVuTVW1aChPiS8ukar-AChR9HGaAk9AGeBdAG15zQgPr3Og51RQ5wiy5rYp0xNBs1iFYszNE4JNDRw","frege.seco.hut.fi:8080":"ABQIAAAApp52mLK8RrDcW3PTRCxZ1xQahY80vUNPN1ykT69sltyZ67qEdxRj2WgpSviy08p5DjBYtBqFCjnJCA","www.kulttuurisampo.fi":"ABQIAAAAOVuTVW1aChPiS8ukar-AChT549c6X1f56ZXqi4XlxLb_MPSr2BQZDwaJIv_glbcvR7-JBGf-y-9QKA","demo.seco.tkk.fi":"ABQIAAAAOVuTVW1aChPiS8ukar-AChRkY9KrTsc54SNfat8hJ7dc0OtNkRRuDC5nOgkBT53gdVJJH7oIXf0z-g"};semweb.googleutils.initGoogle=function(key){if(key==undefined){var _7f4=window.location.href.match(/\/\/(.*?)\//);if(_7f4.length==2){_7f4=_7f4[1];key=semweb.googleutils.keys[_7f4];}if(key==undefined){console.log("Couldn't deduce google API key (tried "+_7f4+"). You either need to give it or add it to semweb.googleutils.keys");}}if(typeof (window["google"])!="undefined"){var ret=new dojo.Deferred();ret.callback();return ret;}else{return dojo.io.script.get({url:"http://www.google.com/jsapi?key="+key,callbackParamName:"callback",checkString:"google"});}};semweb.googleutils.loadGoogleMaps=function(key){var ret=new dojo.Deferred();if(typeof (window["google"])!="undefined"){if(typeof (google["maps"])!="undefined"){ret.callback();return ret;}else{semweb.googleutils._loadGoogleMaps(dojo.hitch(ret,ret.callback));return ret;}}else{semweb.googleutils.initGoogle(key).addCallback(dojo.hitch(window,semweb.googleutils._loadGoogleMaps,dojo.hitch(ret,ret.callback)));return ret;}};semweb.googleutils._loadGoogleMaps=function(_7f8){google.load("maps","2",{"callback":_7f8});};}if(!dojo._hasResource["semweb.UIHub"]){dojo._hasResource["semweb.UIHub"]=true;dojo.provide("semweb.UIHub");dojo.declare("semweb.EventHandlerMapping",null,{matches:function(_7f9){if(this.originInstance&&_7f9.originInstance!=this.originInstance){return false;}if(this.originType&&_7f9.originType!=this.originType){return false;}if(this.targetInstance&&_7f9.targetInstance!=this.targetInstance){return false;}if(this.targetType&&_7f9.targetType!=this.targetType){return false;}if(this.eventType&&_7f9.eventType!=this.eventType){return false;}return true;},equals:function(_7fa){if(this["originInstance"]!=_7fa["originInstance"]){return false;}if(this["originType"]!=_7fa["originType"]){return false;}if(this["targetInstance"]!=_7fa["targetInstance"]){return false;}if(this["targetType"]!=_7fa["targetType"]){return false;}if(this["eventType"]!=_7fa["eventType"]){return false;}if(this["handler"]!=_7fa["handler"]){return false;}return true;}});dojo.declare("semweb.UIHub",null,{constructor:function(_7fb,_7fc){dojo.require("dwr.engine",true);dojo.require("dwr.interface.UIHubServer",true);this.handlers=[];this.state={};this.locale=_7fc;this.server=_7fb;this.eventQueue=[];this.server.setLocale(this.locale);},processEventsFromServer:function(_7fd){for(var i=0;i<_7fd.length;i++){this.sendEvent(_7fd[i]);}},sendEvent:function(_7ff){for(var i in this.handlers){if(this.handlers[i].matches(_7ff)){this.handlers[i].handler(_7ff);}}},queueEventToServer:function(_801){this.eventQueue.push(_801);},immediatelySendEventsToServer:function(){this.server.processEventsFromUI(this.eventQueue,dojo.hitch(this,this.processEventsFromServer));},immediatelySendEventToServer:function(_802){this.eventQueue.push(_802);this.immediatelySendEventsToServer();},registerListener:function(_803){this.handlers.push(_803);},deregisterListener:function(_804){for(var i in this.handlers){if(this.handlers[i].equals(_804)){this.handlers.splice(i,1);return;}}console.log("pattern not found in deregisterListener");console.log(_804);}});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),setAttribute:function(attr,_807){this.inherited(arguments);switch(attr){case "disabled":var _808=this[this.attributeMap["tabIndex"]||"domNode"];if(_807){this._hovering=false;this._active=false;_808.removeAttribute("tabIndex");}else{_808.setAttribute("tabIndex",this.tabIndex);}dijit.setWaiState(this[this.attributeMap["disabled"]||"domNode"],"disabled",_807);this._setStateClass();}},setDisabled:function(_809){dojo.deprecated("setDisabled("+_809+") is deprecated. Use setAttribute('disabled',"+_809+") instead.","","2.0");this.setAttribute("disabled",_809);},_onMouse:function(_80a){var _80b=_80a.currentTarget;if(_80b&&_80b.getAttribute){this.stateModifier=_80b.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_80a.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _80c=this.connect(dojo.body(),"onmouseup",function(){this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_80c);});if(this.isFocusable()){this.focus();}break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){setTimeout(dojo.hitch(this,dijit.focus,this.focusNode),0);},_setStateClass:function(){if(!("staticClass" in this)){this.staticClass=(this.stateNode||this.domNode).className;}var _80d=[this.baseClass];function multiply(_80e){_80d=_80d.concat(dojo.map(_80d,function(c){return c+_80e;}),"dijit"+_80e);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}(this.stateNode||this.domNode).className=this.staticClass+" "+_80d.join(" ");},onChange:function(_810){},_onChangeMonitor:"value",_onChangeActive:false,_handleOnChange:function(_811,_812){this._lastValue=_811;if(this._lastValueReported==undefined&&(_812===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_811;}if((this.intermediateChanges||_812||_812===undefined)&&((_811&&_811.toString)?_811.toString():_811)!==((this._lastValueReported&&this._lastValueReported.toString)?this._lastValueReported.toString():this._lastValueReported)){this._lastValueReported=_811;if(this._onChangeActive){this.onChange(_811);}}},reset:function(){this._hasBeenBlurred=false;if(this.setValue&&!this._getValueDeprecated){this.setValue(this._resetValue,true);}else{if(this._onChangeMonitor){this.setAttribute(this._onChangeMonitor,(this._resetValue!==undefined&&this._resetValue!==null)?this._resetValue:"");}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_813){dojo.deprecated("dijit.form._FormWidget:setValue("+_813+") is deprecated.  Use setAttribute('value',"+_813+") instead.","","2.0");this.setAttribute("value",_813);},_getValueDeprecated:true,getValue:function(){dojo.deprecated("dijit.form._FormWidget:getValue() is deprecated.  Use widget.value instead.","","2.0");return this.value;},_layoutHack:function(){if(dojo.isFF==2){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){this.setValue(this.value,null);},setValue:function(_816,_817){this.value=_816;this._handleOnChange(_816,_817);},_getValueDeprecated:false,getValue:function(){return this._lastValue;},undo:function(){this.setValue(this._lastValueReported,false);},_valueChanged:function(){var v=this.getValue();var lv=this._lastValueReported;return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");},_onKeyPress:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){if(this._valueChanged()){this.undo();dojo.stopEvent(e);return false;}}return true;}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode' name=\"${name}\"\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse,onfocus:_onMouse,onblur:_onMouse,onkeypress:_onKeyPress,onkeyup'\n\tautocomplete=\"off\" type=\"${type}\"\n\t/>\n",baseClass:"dijitTextBox",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{maxLength:"focusNode"}),getDisplayedValue:function(){return this.filter(this.textbox.value);},getValue:function(){return this.parse(this.getDisplayedValue(),this.constraints);},setValue:function(_81b,_81c,_81d){var _81e=this.filter(_81b);if((((typeof _81e==typeof _81b)&&(_81b!==undefined))||(_81b===null))&&(_81d==null||_81d==undefined)){_81d=this.format(_81e,this.constraints);}if(_81d!=null&&_81d!=undefined){this.textbox.value=_81d;}dijit.form.TextBox.superclass.setValue.call(this,_81e,_81c);},setDisplayedValue:function(_81f,_820){this.textbox.value=_81f;this.setValue(this.getValue(),_820);},format:function(_821,_822){return ((_821==null||_821==undefined)?"":(_821.toString?_821.toString():_821));},parse:function(_823,_824){return _823;},postCreate:function(){this.textbox.setAttribute("value",this.getDisplayedValue());this.inherited(arguments);this._layoutHack();},filter:function(val){if(val===null||val===undefined){return "";}else{if(typeof val!="string"){return val;}}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this.setValue(this.getValue(),(this.isValid?this.isValid():true));},_onBlur:function(){this._setBlurValue();this.inherited(arguments);},onkeyup:function(){}});dijit.selectInputText=function(_827,_828,stop){var _82a=dojo.global;var _82b=dojo.doc;_827=dojo.byId(_827);if(isNaN(_828)){_828=0;}if(isNaN(stop)){stop=_827.value?_827.value.length:0;}_827.focus();if(_82b["selection"]&&dojo.body()["createTextRange"]){if(_827.createTextRange){var _82c=_827.createTextRange();with(_82c){collapse(true);moveStart("character",_828);moveEnd("character",stop);select();}}}else{if(_82a["getSelection"]){var _82d=_82a.getSelection();if(_827.setSelectionRange){_827.setSelectionRange(_828,stop);}}}};}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:200,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_82e,_82f,_830){if(this.aroundNode&&this.aroundNode===_82f){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_82e;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _831={};var ltr=this.isLeftToRight();dojo.forEach((_830&&_830.length)?_830:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_831[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_831[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_831[ltr?"BL":"BR"]=ltr?"TL":"TR";_831[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_831[ltr?"TL":"TR"]=ltr?"BL":"BR";_831[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_82f,_831,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_82f;},orient:function(node,_836,_837){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_836+"-"+_837];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_838){if(!this.aroundNode||this.aroundNode!==_838){return;}if(this._onDeck){this._onDeck=null;return;}this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_839,_83a,_83b){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_839,_83a,_83b);};dijit.hideTooltip=function(_83c){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_83c);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],postCreate:function(){if(this.srcNodeRef){this.srcNodeRef.style.display="none";}this._connectNodes=[];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseOver","onMouseOut","onFocus","onBlur","onHover","onUnHover"],function(_83f){this.connect(node,_83f.toLowerCase(),"_"+_83f);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},_onMouseOver:function(e){this._onHover(e);},_onMouseOut:function(e){if(dojo.isDescendant(e.relatedTarget,e.target)){return;}this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _845=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_845);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_847){_847=_847||this._connectNodes[0];if(!_847){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_847,this.position);this._connectNode=_847;},close:function(){dijit.hideTooltip(this._connectNode);delete this._connectNode;if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' dojoAttachEvent='onfocus:_update,onkeyup:_onkeyup,onblur:_onMouse,onkeypress:_onKeyPress' autocomplete=\"off\"\n\t\t\ttype='${type}' name='${name}'\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_848){return this.regExp;},state:"",tooltipPosition:[],setValue:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_849,_84a){return (new RegExp("^("+this.regExpGen(_84a)+")"+(this.required?"":"?")+"$")).test(_849)&&(!this.required||!this._isEmpty(_849))&&(this._isEmpty(_849)||this.parse(_849,_84a)!==undefined);},isValid:function(_84b){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_84c){return /^\s*$/.test(_84c);},getErrorMessage:function(_84d){return this.invalidMessage;},getPromptMessage:function(_84e){return this.promptMessage;},validate:function(_84f){var _850="";var _851=this.isValid(_84f);var _852=this._isEmpty(this.textbox.value);this.state=(_851||(!this._hasBeenBlurred&&_852))?"":"Error";this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_851?"false":"true");if(_84f){if(_852){_850=this.getPromptMessage(true);}if(!_850&&this.state=="Error"){_850=this.getErrorMessage(true);}}this.displayMessage(_850);return _851;},_message:"",displayMessage:function(_853){if(this._message==_853){return;}this._message=_853;dijit.hideTooltip(this.domNode);if(_853){dijit.showTooltip(_853,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);},_update:function(e){this._refreshState();this._onMouse(e);},_onkeyup:function(e){this._update(e);this.onkeyup(e);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this.constraints.locale=this.lang;this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}var p=this.regExpGen(this.constraints);this.regExp=p;}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val,_858){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.getValue());return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},setAttribute:function(attr,_85b){this.inherited(arguments);switch(attr){case "disabled":if(this.valueNode){this.valueNode.disabled=this.disabled;}}},postCreate:function(){var _85c=this.textbox;var _85d=(this.valueNode=dojo.doc.createElement("input"));_85d.setAttribute("type",_85c.type);_85d.setAttribute("value",this.toString());dojo.style(_85d,"display","none");_85d.name=this.textbox.name;_85d.disabled=this.textbox.disabled;this.textbox.name=this.textbox.name+"_displayed_";this.textbox.removeAttribute("name");dojo.place(_85d,_85c,"after");this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",compare:function(val1,val2){return val1-val2;},rangeCheck:function(_860,_861){var _862="min" in _861;var _863="max" in _861;if(_862||_863){return (!_862||this.compare(_860,_861.min)>=0)&&(!_863||this.compare(_860,_861.max)<=0);}return true;},isInRange:function(_864){return this.rangeCheck(this.getValue(),this.constraints);},isValid:function(_865){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_865));},getErrorMessage:function(_866){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_866)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited(arguments);if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}},setValue:function(_867,_868){dijit.setWaiState(this.focusNode,"valuenow",_867);this.inherited("setValue",arguments);}});}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,query:{},autoComplete:true,searchDelay:100,searchAttr:"name",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input type=\"text\" autocomplete=\"off\" name=\"${name}\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress, onfocus:_update, compositionend,onkeyup\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n",baseClass:"dijitComboBox",_getCaretPos:function(_869){var pos=0;if(typeof (_869.selectionStart)=="number"){pos=_869.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_869.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_86d,_86e){_86e=parseInt(_86e);dijit.selectInputText(_86d,_86e,_86e);},_setAttribute:function(attr,_870){if(attr=="disabled"){dijit.setWaiState(this.comboNode,"disabled",_870);}},_onKeyPress:function(evt){if(evt.altKey||(evt.ctrlKey&&evt.charCode!=118)){return;}var _872=false;var pw=this._popupWidget;var dk=dojo.keys;if(this._isShowingNow){pw.handleKey(evt);}switch(evt.keyCode){case dk.PAGE_DOWN:case dk.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_872=true;}else{this._announceOption(pw.getHighlightedOption());}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.PAGE_UP:case dk.UP_ARROW:if(this._isShowingNow){this._announceOption(pw.getHighlightedOption());}dojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.ENTER:var _875;if(this._isShowingNow&&(_875=pw.getHighlightedOption())){if(_875==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_875==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this.setDisplayedValue(this.getDisplayedValue());}evt.preventDefault();case dk.TAB:var _876=this.getDisplayedValue();if(pw&&(_876==pw._messages["previousMessage"]||_876==pw._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(pw.getHighlightedOption()){pw.setValue({target:pw.getHighlightedOption()},true);}this._hideResultList();}break;case dk.SPACE:this._prev_key_backspace=false;this._prev_key_esc=false;if(this._isShowingNow&&pw.getHighlightedOption()){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_872=true;}break;case dk.ESCAPE:this._prev_key_backspace=false;this._prev_key_esc=true;if(this._isShowingNow){dojo.stopEvent(evt);this._hideResultList();}this.inherited(arguments);break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_esc=false;this._prev_key_backspace=true;_872=true;break;case dk.RIGHT_ARROW:case dk.LEFT_ARROW:this._prev_key_backspace=false;this._prev_key_esc=false;break;default:this._prev_key_backspace=false;this._prev_key_esc=false;if(dojo.isIE||evt.charCode!=0){_872=true;}}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_872){setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _879=this.ignoreCase?"toLowerCase":"substr";if(text[_879](0).indexOf(this.focusNode.value[_879](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_87b,_87c){if(this.disabled||this.readOnly||(_87c.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_87b.length){this._hideResultList();return;}var _87d=new String(this.store.getValue(_87b[0],this.searchAttr));if(_87d&&this.autoComplete&&!this._prev_key_backspace&&(_87c.query[this.searchAttr]!="*")){this._autoCompleteText(_87d);}this._popupWidget.createOptions(_87b,_87c,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_87c.direction){if(1==_87c.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_87c.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _87e=this._popupWidget.getItems(),_87f=Math.min(_87e.length,this.maxListLength);this._arrowPressed();this.displayMessage("");with(this._popupWidget.domNode.style){width="";height="";}var best=this.open();var _881=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_881.h)&&(best.w==_881.w))?"hidden":"auto";var _882=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_882+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_882,this.domNode.offsetWidth)});dijit.setWaiState(this.comboNode,"expanded","true");},_hideResultList:function(){if(this._isShowingNow){dijit.popup.close(this._popupWidget);this._arrowIdle();this._isShowingNow=false;dijit.setWaiState(this.comboNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _883=this.getDisplayedValue();var pw=this._popupWidget;if(pw&&(_883==pw._messages["previousMessage"]||_883==pw._messages["nextMessage"])){this.setValue(this._lastValueReported,true);}else{this.setDisplayedValue(_883);}},_onBlur:function(){this._hideResultList();this._arrowIdle();this.inherited(arguments);},_announceOption:function(node){if(node==null){return;}var _886;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_886=node.innerHTML;}else{_886=this.store.getValue(node.item,this.searchAttr);}this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_886);},_selectOption:function(evt){var tgt=null;if(!evt){evt={target:this._popupWidget.getHighlightedOption()};}if(!evt.target){this.setDisplayedValue(this.getDisplayedValue());return;}else{tgt=evt.target;}if(!evt.noHide){this._hideResultList();this._setCaretPos(this.focusNode,this.store.getValue(tgt.item,this.searchAttr).length);}this._doSelect(tgt);},_doSelect:function(tgt){this.item=tgt.item;this.setValue(this.store.getValue(tgt.item,this.searchAttr),true);},_onArrowMouseDown:function(evt){if(this.disabled||this.readOnly){return;}dojo.stopEvent(evt);this.focus();if(this._isShowingNow){this._hideResultList();}else{this._startSearch("");}},_startSearchFromInput:function(){this._startSearch(this.focusNode.value);},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this._popupWidget){var _88d=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_88d});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_88d);}this.item=null;var _88e=dojo.clone(this.query);this._lastQuery=_88e[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_88f,_890){var _891=this.store.fetch({queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_88f,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_892){console.error("dijit.form.ComboBox: "+_892);dojo.hitch(_890,"_hideResultList")();},start:0,count:this.pageSize});var _893=function(_894,_895){_894.start+=_894.count*_895;_894.direction=_895;this.store.fetch(_894);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_893,_891);},_88e,this),this.searchDelay);},_getValueField:function(){return this.searchAttr;},_arrowPressed:function(){if(!this.disabled&&!this.readOnly&&this.hasDownArrow){dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");}},_arrowIdle:function(){if(!this.disabled&&!this.readOnly&&this.hasDownArrow){dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");}},compositionend:function(evt){this.onkeypress({charCode:-1});},constructor:function(){this.query={};},postMixInProperties:function(){if(!this.hasDownArrow){this.baseClass="dijitTextBox";}if(!this.store){var _897=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_897);if(!this.value||((typeof _897.selectedIndex=="number")&&_897.selectedIndex.toString()===this.value)){var item=this.store.fetchSelectedItem();if(item){this.value=this.store.getValue(item,this._getValueField());}}}},_postCreate:function(){var _899=dojo.query("label[for=\""+this.id+"\"]");if(_899.length){_899[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_899[0].id);dijit.setWaiState(cn,"disabled",this.disabled);}},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){return {html:false,label:this.store.getValue(item,this.searchAttr)};},open:function(){this._isShowingNow=true;return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});},reset:function(){this.item=null;this.inherited(arguments);}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow:\"auto\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,postMixInProperties:function(){this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);this.inherited("postMixInProperties",arguments);},setValue:function(_89c){this.value=_89c;this.onChange(_89c);},onChange:function(_89d){},onPage:function(_89e){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited("postCreate",arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_8a0){var _8a1=_8a0(item);var _8a2=dojo.doc.createElement("li");dijit.setWaiRole(_8a2,"option");if(_8a1.html){_8a2.innerHTML=_8a1.label;}else{_8a2.appendChild(dojo.doc.createTextNode(_8a1.label));}if(_8a2.innerHTML==""){_8a2.innerHTML="&nbsp;";}_8a2.item=item;return _8a2;},createOptions:function(_8a3,_8a4,_8a5){this.previousButton.style.display=(_8a4.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_8a3,function(item,i){var _8a8=this._createOption(item,_8a5);_8a8.className="dijitMenuItem";dojo.attr(_8a8,"id",this.id+i);this.domNode.insertBefore(_8a8,this.nextButton);},this);this.nextButton.style.display=(_8a4.count==_8a3.length)?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}},getItems:function(){return this.domNode.childNodes;},getListLength:function(){return this.domNode.childNodes.length-2;},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode){return;}else{if(evt.target==this.previousButton){this.onPage(-1);}else{if(evt.target==this.nextButton){this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this.setValue({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemHover");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");this._highlighted_option=null;}},_highlightNextOption:function(){var fc=this.domNode.firstChild;if(!this.getHighlightedOption()){this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}}dijit.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){this._focusOptionNode(this.domNode.firstChild.nextSibling);dijit.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dijit.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){var lc=this.domNode.lastChild;if(!this.getHighlightedOption()){this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}}dijit.scrollIntoView(this._highlighted_option);},_page:function(up){var _8b5=0;var _8b6=this.domNode.scrollTop;var _8b7=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_8b5<_8b7){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _8b8=this.domNode.scrollTop;_8b5+=(_8b8-_8b6)*(up?-1:1);_8b6=_8b8;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(evt){switch(evt.keyCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();break;case dojo.keys.PAGE_DOWN:this.pageDown();break;case dojo.keys.UP_ARROW:this._highlightPrevOption();break;case dojo.keys.PAGE_UP:this.pageUp();break;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{postMixInProperties:function(){dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);dijit.form.ValidationTextBox.prototype.postMixInProperties.apply(this,arguments);},postCreate:function(){dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);dijit.form.ValidationTextBox.prototype.postCreate.apply(this,arguments);},setAttribute:function(attr,_8bc){dijit.form.ValidationTextBox.prototype.setAttribute.apply(this,arguments);dijit.form.ComboBoxMixin.prototype._setAttribute.apply(this,arguments);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;},getValue:function(item,_8bf,_8c0){return (_8bf=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_8c1){return true;},fetch:function(args){var _8c3="^"+args.query.name.replace(/([\\\|\(\)\[\{\^\$\+\?\.\<\>])/g,"\\$1").replace("*",".*")+"$",_8c4=new RegExp(_8c3,args.queryOptions.ignoreCase?"i":""),_8c5=dojo.query("> option",this.root).filter(function(_8c6){return (_8c6.innerText||_8c6.textContent||"").match(_8c4);});var _8c7=args.start||0,end=("count" in args&&args.count!=Infinity)?(_8c7+args.count):_8c5.length;args.onComplete(_8c5.slice(_8c7,end),args);return args;},close:function(_8c9){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];}});}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{labelAttr:"",labelType:"text",_isvalid:true,_lastDisplayedValue:"",isValid:function(){return this._isvalid;},_callbackSetLabel:function(_8d0,_8d1,_8d2){if(_8d1&&_8d1.query[this.searchAttr]!=this._lastQuery){return;}if(!_8d0.length){if(!this._focused){this.valueNode.value="";}dijit.form.TextBox.superclass.setValue.call(this,undefined,!this._focused);this._isvalid=false;this.validate(this._focused);}else{this._setValueFromItem(_8d0[0],_8d2);}},_openResultList:function(_8d3,_8d4){if(_8d4.query[this.searchAttr]!=this._lastQuery){return;}this._isvalid=_8d3.length!=0;this.validate(true);dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);},getValue:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValue:function(_8d5,_8d6,_8d7){this.valueNode.value=_8d5;dijit.form.FilteringSelect.superclass.setValue.call(this,_8d5,_8d7,_8d6);this._lastDisplayedValue=_8d6;},setValue:function(_8d8,_8d9){var self=this;var _8db=function(item,_8dd){if(item){if(self.store.isItemLoaded(item)){self._callbackSetLabel([item],undefined,_8dd);}else{self.store.loadItem({item:item,onItem:function(_8de,_8df){self._callbackSetLabel(_8de,_8df,_8dd);}});}}else{self._isvalid=false;self.validate(false);}};this.store.fetchItemByIdentity({identity:_8d8,onItem:function(item){_8db(item,_8d9);}});},_setValueFromItem:function(item,_8e2){this._isvalid=true;this._setValue(this.store.getIdentity(item),this.labelFunc(item,this.store),_8e2);},labelFunc:function(item,_8e4){return _8e4.getValue(item,this.searchAttr);},_doSelect:function(tgt){this.item=tgt.item;this._setValueFromItem(tgt.item,true);},setDisplayedValue:function(_8e6,_8e7){if(this.store){var _8e8=dojo.clone(this.query);this._lastQuery=_8e8[this.searchAttr]=_8e6;this.textbox.value=_8e6;this._lastDisplayedValue=_8e6;var _8e9=this;this.store.fetch({query:_8e8,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_8ea,_8eb){dojo.hitch(_8e9,"_callbackSetLabel")(_8ea,_8eb,_8e7);},onError:function(_8ec){console.error("dijit.form.FilteringSelect: "+_8ec);dojo.hitch(_8e9,"_setValue")(undefined,_8e6,false);}});}},_getMenuLabelFromItem:function(item){if(this.labelAttr){return {html:this.labelType=="html",label:this.store.getValue(item,this.labelAttr)};}else{return dijit.form.ComboBoxMixin.prototype._getMenuLabelFromItem.apply(this,arguments);}},postMixInProperties:function(){dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);dijit.form.MappedTextBox.prototype.postMixInProperties.apply(this,arguments);},postCreate:function(){dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);dijit.form.MappedTextBox.prototype.postCreate.apply(this,arguments);},setAttribute:function(attr,_8ef){dijit.form.MappedTextBox.prototype.setAttribute.apply(this,arguments);dijit.form.ComboBoxMixin.prototype._setAttribute.apply(this,arguments);},undo:function(){this.setDisplayedValue(this._lastDisplayedValue);},_valueChanged:function(){return this.getDisplayedValue()!=this._lastDisplayedValue;}});}if(!dojo._hasResource["semweb.widget.Selector"]){dojo._hasResource["semweb.widget.Selector"]=true;dojo.provide("semweb.widget.Selector");dojo.declare("semweb.widget.Selector",[dijit._Widget,dijit._Templated],{templateString:"<span class=\"roundedbox hoverparent selectorholder\"><span dojoAttachPoint=\"headingNode\"><span></span></span><div class=\"selector visibleonlyonparenthover\" dojoAttachPoint=\"selectorNode\"><div></div></div></span>",selector:null,selectorCreator:null,selectorId:"",selectorSelector:null,labelNode:null,selectorNode:null,closedLabel:"",openLabel:"",isOpen:false,isClosable:true,currentConstraint:null,constraintId:null,forcedVisibilityHook:null,removeForcedVisibility:function(){this.selectorNode.style.visibility="";dojo.disconnect(this.forcedVisibilityHook);},postCreate:function(){this.inherited("postCreate",arguments);if(this.selector){this.setSelector(this.selector);}if(this.closedLabel||this.openLabel){this.setLabels(this.closedLabel,this.openLabel);}else{if(this.selectorSelector){this.setSelectorSelector(this.selectorSelector);}}dojo.connect(this.domNode,"onmouseover",this,this.open);dojo.connect(this.domNode,"onmouseout",this,this.close);},setSelectorSelector:function(_8f0){this.selectorSelector=_8f0;this.selectorSelector.onChange=dojo.hitch(this,this.onSelectorSelectorChange);this.selectorId=_8f0.getValue();while(this.headingNode.firstChild){this.headingNode.removeChild(this.headingNode.firstChild);}this.headingNode.appendChild(_8f0.domNode);},onSelectorSelectorChange:function(_8f1){this.selectorId=_8f1;this.selectorNode.style.visibility="visible";this.forcedVisibilityHook=dojo.connect(this.selectorNode,"onmouseover",this,this.removeForcedVisibility);if(typeof this.selectorCreator=="object"){this.setSelector(this.selectorCreator.create(this,this.selectorId));}else{this.setSelector(this.selectorCreator(this,this.selectorId));}},setLabels:function(_8f2,_8f3){this.closedLabel=_8f2;this.openLabel=_8f3;if(!this.labelNode){var tmp=document.createElement("span");this.labelNode=document.createElement("span");tmp.appendChild(this.labelNode);this.updateLabel();while(this.headingNode.firstChild){this.headingNode.removeChild(this.headingNode.firstChild);}this.headingNode.appendChild(tmp);if(this.isClosable){tmp.appendChild(document.createTextNode(" "));this.closeNode=document.createElement("span");tmp.appendChild(this.closeNode);this.closeNode.style.color="red";this.closeNode.style.cursor="pointer";this.closeNode.innerHTML="[X]";dojo.connect(this.closeNode,"onclick",this,this.destroy);}}},setSelector:function(_8f5){this.selectorNode.replaceChild(_8f5.domNode,this.selectorNode.childNodes[0]);if(this.selector&&this.selector!=_8f5){this.selector.destroy();}this.selector=_8f5;this.constraintId=_8f5.id;dojo.connect(this.selector,"stateChanged",this,this.selectorStateChanged);},updateLabel:function(){if(this.labelNode){if(this.isOpen){this.labelNode.innerHTML=this.openLabel;}else{this.labelNode.innerHTML=this.closedLabel;}}},open:function(){if(!this.selector&&this.selectorCreator){if(typeof this.selectorCreator=="object"){this.setSelector(this.selectorCreator.create(this,this.selectorId));}else{this.setSelector(this.selectorCreator(this,this.selectorId));}}this.isOpen=true;if(this.labelNode){this.labelNode.innerHTML=this.openLabel;}},close:function(){if(this.labelNode){this.labelNode.innerHTML=this.closedLabel;}this.isOpen=false;},selectorStateChanged:function(){},destroy:function(){if(this.selector&&this.selector.destroy){this.selector.destroy(arguments);}this.inherited("destroy",arguments);},removeConstraint:function(_8f6,_8f7){this.closedLabel=_8f6;this.openLabel=_8f7;this.updateLabel();}});dojo.declare("semweb.widget.ConstraintUpdatingSelector",semweb.widget.Selector,{selectorStateChanged:function(){this.updateConstraint(this.selector.getConstraint());this.inherited("selectorStateChanged",arguments);},updateConstraint:function(_8f8){this.currentConstraint=_8f8;if(this.currentConstraint!=null){VBSearchHub.setConstraint(this.constraintId,this.currentConstraint);}else{VBSearchHub.removeConstraint(this.constraintId);}},destroy:function(){dwr.engine.beginBatch();this.inherited("destroy",arguments);if(this.currentConstraint){VBSearchHub.removeConstraint(this.constraintId);}dwr.engine.endBatch();}});dojo.declare("semweb.widget.SelfConstraintUpdater",null,{stateChanged:function(){var _8f9=this.getConstraint();if(_8f9==null){VBSearchHub.removeConstraint(this.id);}else{VBSearchHub.setConstraint(this.id,_8f9);}}});}if(!dojo._hasResource["semweb.widget.ConstraintUpdatingSelector"]){dojo._hasResource["semweb.widget.ConstraintUpdatingSelector"]=true;dojo.provide("semweb.widget.ConstraintUpdatingSelector");dojo.declare("semweb.widget.ConstraintUpdatingSelector",semweb.widget.Selector,{postCreate:function(){this.inherited(arguments);dojo.require("dwr.engine",true);dojo.require("dwr.interface.VBSearchHub",true);},selectorStateChanged:function(){this.updateConstraint(this.selector.getConstraint());this.inherited("selectorStateChanged",arguments);},updateConstraint:function(_8fa){this.currentConstraint=_8fa;if(this.currentConstraint!=null){VBSearchHub.setConstraint(this.constraintId,this.currentConstraint);}else{VBSearchHub.removeConstraint(this.constraintId);}},destroy:function(){if(this.currentConstraint){VBSearchHub.removeConstraint(this.constraintId);}this.inherited("destroy",arguments);}});dojo.declare("semweb.widget.SelfConstraintUpdater",null,{constructor:function(){this.inherited(arguments);dojo.require("dwr.engine",true);dojo.require("dwr.interface.VBSearchHub",true);},stateChanged:function(){var _8fb=this.getConstraint();if(_8fb==null){VBSearchHub.removeConstraint(this.id);}else{VBSearchHub.setConstraint(this.id,_8fb);}}});}if(!dojo._hasResource["semweb.widget.TabContainer"]){dojo._hasResource["semweb.widget.TabContainer"]=true;dojo.provide("semweb.widget.TabContainer");dojo.declare("semweb.widget.TabContainer",[dijit._Widget,dijit._Templated],{templateString:"<table style=\"border-collapse:collapse;height:100%;width:100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td dojoAttachPoint=\"tabsNode\"><span style=\"font-style:italic;font-weight:normal;font-family:georgia,'new century schoolbook',times,serif\">${heading}</span>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"height:100%;border:1px solid black;padding:3px;\">\n\t\t   \t\t<div style=\"height:100%;width:100%;\" dojoAttachPoint=\"contentNode\"><div></div></div>\n\t\t   \t</td>\n\t\t</tr>\n\t</tbody>\n</table>\n\t\n\t\n",contentNode:null,tabsNode:null,activeTab:null,tabs:null,heading:"",postCreate:function(){this.inherited("postCreate",arguments);for(var _8fc in this.tabs){var _8fd=document.createElement("span");_8fd.appendChild(document.createTextNode(_8fc));_8fd.className="TabContainer_tab";_8fd.onclick=dojo.hitch(this,this.activateTab,this.tabs[_8fc]);this.tabs[_8fc].node=_8fd;this.tabsNode.appendChild(_8fd);}this.activeTab=this.tabs[this.activeTab];this._activateTabNode(this.activeTab.node);this.activeTab.activate(this.contentNode);},activateTab:function(tab){this._deactivateTabNode(this.activeTab.node);this._activateTabNode(tab.node);var _8ff=this.activeTab;this.activeTab=tab;var _900=this.contentNode;this.activeTab.activate(this.contentNode);if(_8ff.deactivate){_8ff.deactivate(_900);}},_deactivateTabNode:function(_901){_901.className="TabContainer_tab";},_activateTabNode:function(_902){_902.className="TabContainer_activetab";}});}if(!dojo._hasResource["semweb.widget.ConstraintUpdatingSelectorList"]){dojo._hasResource["semweb.widget.ConstraintUpdatingSelectorList"]=true;dojo.provide("semweb.widget.ConstraintUpdatingSelectorList");dojo.declare("semweb.widget.ConstraintUpdatingSelectorList",[dijit._Widget,dijit._Templated],{templateString:"<span></span>",bnode:null,selectorSelector:null,selectorCreator:null,lastSelector:null,lastcid:null,postMixInProperties:function(){this.i18n=dojo.i18n.getLocalization("semweb.widget","ConstraintUpdatingSelectorList");},postCreate:function(){this.inherited("postCreate",arguments);this.lastSelector=new semweb.widget.ConstraintUpdatingSelector({selectorSelector:this.selectorSelector,selectorCreator:this.selectorCreator});this.lastcid=dojo.connect(this.lastSelector,"updateConstraint",this,this.createNewSelector);this.domNode.appendChild(this.lastSelector.domNode);this.bnode=this.domNode.childNodes[0];},createNewSelector:function(){var tmp=document.createTextNode(" "+this.i18n["ja"]+" ");this.domNode.appendChild(tmp);dojo.connect(this.lastSelector,"destroy",this,dojo.hitch(this,this.selectorDestroyed,tmp));dojo.disconnect(this.lastcid);this.lastSelector=new semweb.widget.ConstraintUpdatingSelector({selectorSelector:this.selectorSelector,selectorCreator:this.selectorCreator});this.lastcid=dojo.connect(this.lastSelector,"updateConstraint",this,this.createNewSelector);this.domNode.appendChild(this.lastSelector.domNode);},selectorDestroyed:function(_904){this.domNode.removeChild(_904);}});}if(!dojo._hasResource["semweb.widget.Autocompletion"]){dojo._hasResource["semweb.widget.Autocompletion"]=true;dojo.provide("semweb.widget.Autocompletion");dojo.declare("semweb.widget.Autocompletion",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<div><table><tr><td style=\"white-space:nowrap\">${title}</td><td><input class=\"autoCompletion\" dojoAttachPoint=\"input\" dojoAttachEvent=\"onkeyup,onfocus:onkeyup\" /></td></tr></table><div dojoAttachPoint=\"containerNode\"></div></div>",input:null,title:"",onkeyup:function(e){this.getChildren()[0].update(this.input.value);}});}if(!dojo._hasResource["semweb.widget.Tree"]){dojo._hasResource["semweb.widget.Tree"]=true;dojo.provide("semweb.widget.Tree");dojo.declare("semweb.widget.TreeOrNode",[dijit._Widget,dijit._Container,dijit._Templated],{allChildrenLoaded:false,constructor:function(){this.childMap={};},loadChildren:function(_906){this.allChildrenLoaded=true;if(this.containerNode.lastChild){dojo.removeClass(this.containerNode.lastChild,"STreeIsLast");}dojo.forEach(_906,dojo.hitch(this,function(_907){this.createChild(_907);if(_907.children){this.childMap["_"+_907.nodeId].createPath(_907);}}));if(this.containerNode.lastChild){dojo.addClass(this.containerNode.lastChild,"STreeIsLast");}else{if(this.expandNode){this.expandNode.className="STreeExpandLeaf";}}},collapseAll:function(){this.collapse();for(var _908 in this.childMap){if(this.childMap[_908].isFolder){this.childMap[_908].collapseAll();}}},createPath:function(node){var _90a=this;if(this.containerNode.lastChild){dojo.removeClass(this.containerNode.lastChild,"STreeIsLast");}dojo.forEach(node.children,function(_90b){if(!_90a.childMap["_"+_90b.nodeId]){_90a.createChild(_90b);}if(_90b.children){_90a.childMap["_"+_90b.nodeId].createPath(_90b);}});if(this.containerNode.lastChild){dojo.addClass(this.containerNode.lastChild,"STreeIsLast");}this.allChildrenLoaded=true;this.expand();},_expandAll:function(){this.expand();for(var _90c in this.childMap){if(this.childMap[_90c].isFolder){this.childMap[_90c]._expandAll();}}},_getWholeTreeExpand:function(_90d){for(var i in _90d){if(_90d[i].children){this.childMap["_"+_90d[i].nodeId].createPath(_90d[i]);}}},expandAll:function(){this.treeViewService.getWholeTree(this,dojo.hitch(this,this._getWholeTreeExpand));},ensureArray:function(map,id){var tmp=map["_"+id];if(tmp){return tmp;}tmp=[];map["_"+id]=tmp;return tmp;},createChild:function(_912){var cw=new semweb.widget.TreeNode(_912);this.childMap["_"+_912.nodeId]=cw;this.ensureArray(this.tree.nodeMap,_912.nodeId).push(cw);cw.tree=this.tree;this.addChild(cw);return cw;}});dojo.declare("semweb.widget.Tree",[semweb.widget.TreeOrNode],{templateString:"<div dojoAttachPoint=\"containerNode\"><div style=\"float:right\"><img dojoAttachEvent=\"onclick:expandAll\" src=\"scripts/semweb/themes/images/tree/plus.gif\" title=\"avaa koko puu\"/><br /><img src=\"scripts/semweb/themes/images/tree/minus.gif\" dojoAttachEvent=\"onclick:collapseAll\" title=\"sulje koko puu\"/></div></div>",updateTimer:null,searchDelay:200,value:null,treeId:"",expandAllOnStart:false,allExpanded:false,treeViewService:"",constructor:function(){this.nodeMap={};this.ensureArray(this.nodeMap,"root").push(this);this.explanations=[];},postCreate:function(){this.inherited(arguments);this.tree=this;if(dojo.isString(this.treeViewService)){this.treeViewService=eval(this.treeViewService);}this.treeViewService.create(this,this.treeId,dojo.hitch(this,this.afterCreation));},afterCreation:function(){this.treeViewService.getChildren(this,"root",dojo.hitch(this,this.loadChildren));},loadChildren:function(){this.inherited(arguments);if(this.expandAllOnStart==true){this.expandAll();}if(this.treeViewService.afterCreation){this.treeViewService.afterCreation(this);}},createChild:function(_914){dojo.addClass(this.inherited("createChild",arguments).domNode,"STreeIsRoot");},expandAll:function(){if(this.allExpanded){this._expandAll();}else{this.inherited(arguments);this.allExpanded=true;}},expand:function(){},collapse:function(){},hideAll:function(){},getLabel:function(_915){return this.nodeMap["_"+_915][0].title;},update:function(_916){this.value=_916;if(this.updateTimer){clearTimeout(this.updateTimer);}if(_916!=""){this.updateTimer=setTimeout(this.treeViewService.match,this.searchDelay,this,_916,dojo.hitch(this,this.updateCallback));}},updateCallback:function(mr){this.collapseAll();var _918=this;dojo.forEach(this.explanations,function(exp){exp.setExplanation("");dojo.removeClass(exp.titleNode,"STreeExplanation");});dojo.forEach(mr.trees,function(tree){dojo.forEach(_918.nodeMap["_"+tree.nodeId],dojo.partial(function(tree,node){node.createPath(tree);},tree));});dojo.forEach(mr.matches,function(_91d){dojo.forEach(_918.nodeMap["_"+_91d.nodeId],function(node){node.hideAllOnPathToRoot();});});dojo.forEach(mr.matches,function(_91f){var _920=_91f.explanation;dojo.forEach(_918.nodeMap["_"+_91f.nodeId],function(node){_918.explanations.push(node);if(_920){node.setExplanation(_920);}else{dojo.addClass(node.titleNode,"STreeExplanation");}node.openPathToRoot();});});dojo.forEach(mr.matches,function(_922){dojo.forEach(_918.nodeMap["_"+_922.nodeId],function(node){node.setLastOnPathToRoot();});});},getNodes:function(_924){return this.nodeMap["_"+_924];},handleViewUpdate:function(_925){for(var _926 in _925.newChildren){dojo.forEach(this.nodeMap["_"+_926],function(_927){if(_927.containerNode.lastChild){dojo.removeClass(_927.containerNode.lastChild,"STreeIsLast");}dojo.forEach(_925.newChildren[_926],function(_928){_927.createChild(_928);});if(_927.containerNode.lastChild){dojo.addClass(_927.containerNode.lastChild,"STreeIsLast");}});}dojo.forEach(_925.removedChildren,dojo.hitch(this,function(_929){dojo.forEach(this.nodeMap["_"+_929],function(node){var tmp=node.getParent();node.destroy();if(tmp){tmp.childMap["_"+node.nodeId]=undefined;if(tmp.containerNode.lastChild){dojo.addClass(tmp.containerNode.lastChild,"STreeIsLast");}}});this.nodeMap["_"+_929]=undefined;}));for(var _92c in _925.newCounts){dojo.forEach(this.nodeMap["_"+_92c],function(node){node.setCount(_925.newCounts[_92c]);});}},dodeselect:function(node){node.selected=false;dojo.removeClass(node.titleNode,"STreeNodeEmphasized");},deselect:function(node){this.dodeselect(node);this.treeViewService.deselect(this,node);},select:function(node){this.doselect(node);this.treeViewService.select(this,node);},doselect:function(node){node.selected=true;dojo.addClass(node.titleNode,"STreeNodeEmphasized");}});dojo.declare("semweb.widget.TreeNode",[semweb.widget.TreeOrNode,dijit._Contained],{templateString:"<div class=\"STreeNode\"><span dojoAttachPoint=\"expandNode\"></span><div class=\"STreeContent\"><span class=\"STreeTitle\" dojoAttachPoint=\"titleNode\" dojoAttachEvent=\"onclick\">${title}</span><span class=\"STreeCount\" dojoAttachPoint=\"countNode\"></span><span class=\"STreeExplanation\" dojoAttachPoint=\"explanationNode\"></span></div><div dojoAttachPoint=\"containerNode\"></div></div>",expandNode:null,titleNode:null,countNode:null,explanationNode:null,isFolder:false,updateCount:0,count:0,title:"",state:"closed",selected:false,tree:null,nodeId:null,postCreate:function(){if(this.isFolder){this.expandNode.className="STreeExpandClosed";dojo.connect(this.expandNode,"onclick",this,"expandorcollapse");}else{this.expandNode.className="STreeExpandLeaf";}this.setCount(this.count);this.inherited("postCreate",arguments);},setCount:function(_932){this.count=_932;this.countNode.innerHTML="("+_932+")";if(this.count==0){dojo.addClass(this.domNode,"STreeNodeDisabled");}else{dojo.removeClass(this.domNode,"STreeNodeDisabled");}},expandorcollapse:function(_933){if(this.state=="open"){this.collapse();}else{this.expand();}},expand:function(){if(this.state=="open"){return;}if(this.allChildrenLoaded==false){var _934=new dojo.Deferred();_934.addCallback(dojo.hitch(this,this.loadChildren));_934.addCallback(dojo.hitch(this,this._doexpand));this.tree.treeViewService.getChildren(this.tree,this.nodeId||"",dojo.hitch(_934,_934.callback));}else{this._doexpand();}},_doexpand:function(){this.state="open";this.showAll();this.expandNode.className="STreeExpandOpen";this.containerNode.className="STreeVisible";},showAll:function(){if(this.containerNode.lastChild){dojo.removeClass(this.containerNode.lastChild,"STreeIsLast");}dojo.forEach(this.getChildren(),dojo.hitch(this,function(_935){if(_935.count>0||_935.hideOnZeroCount==false){dojo.removeClass(_935.domNode,"STreeHidden");}}));if(this.containerNode.lastChild!=null){dojo.addClass(this.containerNode.lastChild,"STreeIsLast");}},collapse:function(){this.state="closed";this.containerNode.className="STreeHidden";this.expandNode.className="STreeExpandClosed";},hideAll:function(){dojo.forEach(this.getChildren(),function(_936){dojo.addClass(_936.domNode,"STreeHidden");});},hideAllOnPathToRoot:function(){if(this.getParent()){this.getParent().hideAll();if(this.getParent().hideAllOnPathToRoot){this.getParent().hideAllOnPathToRoot();}}},openPathToRoot:function(){this.state="path";dojo.removeClass(this.domNode,"STreeHidden");this.containerNode.className="STreeVisible";if(this.getParent().openPathToRoot){this.getParent().expandNode.className="STreeExpandPath";this.getParent().openPathToRoot();}},setLastOnPathToRoot:function(){if(this.getParent().setLastOnPathToRoot){var _937=this.getParent();dojo.addClass(_937.containerNode.lastChild,"STreeIsLast");this.getParent().setLastOnPathToRoot();}},setExplanation:function(_938){this.explanationNode.innerHTML=_938;},onclick:function(e){if(this.selected){this.tree.deselect(this);}else{this.tree.select(this);}}});}if(!dojo._hasResource["semweb.widget.AutocompletionTree"]){dojo._hasResource["semweb.widget.AutocompletionTree"]=true;dojo.provide("semweb.widget.AutocompletionTree");dojo.declare("semweb.widget.AutocompletionTree",[dijit._Widget,dijit._Templated],{templateString:"<div style=\"width:100%;height:100%\"></div>",treeId:"",tree:null,treeViewService:null,postMixInProperties:function(){this.i18n=dojo.i18n.getLocalization("semweb.widget","AutocompletionTree");},postCreate:function(){var tmp=new semweb.widget.Autocompletion({title:this.i18n["hae_puusta"]});this.tree=new semweb.widget.Tree({id:this.id+"_d",treeId:this.treeId,treeViewService:this.treeViewService});tmp.addChild(this.tree);this.domNode.appendChild(tmp.domNode);},handleViewUpdate:function(_93b){this.tree.handleViewUpdate(_93b);}});}if(!dojo._hasResource["semweb.widget.ListView"]){dojo._hasResource["semweb.widget.ListView"]=true;dojo.provide("semweb.widget.ListView");dojo.declare("semweb.widget.ListView",[dijit._Widget],{max:50,skip:0,provider:null,providerArgs:null,postCreate:function(){this.inherited(arguments);dojo.require("dwr.engine",true);dojo.require("dwr.interface.ListView",true);if(this.provider){ListView.createWithProvider(this.id,this.max,this.provider,this.providerArgs);}else{ListView.create(this.id,this.max);}},skipForward:function(){this.skip=this.skip+this.max;ListView.setSkip(this.id,this.skip,dojo.hitch(this,this.replaceHTML));},skipBackward:function(){this.skip=this.skip-this.max;ListView.setSkip(this.id,this.skip,dojo.hitch(this,this.replaceHTML));},replaceHTML:function(html){this.domNode.innerHTML=html;},handleViewUpdate:function(html){this.skip=0;this.domNode.innerHTML=html;},destroy:function(){ListView.destroy(this.id);}});}if(!dojo._hasResource["semweb.widget.OrganizedView"]){dojo._hasResource["semweb.widget.OrganizedView"]=true;dojo.provide("semweb.widget.OrganizedView");dojo.declare("semweb.widget.OrganizedView",[dijit._Widget],{max:50,skip:0,provider:null,providerArgs:null,postCreate:function(){this.inherited(arguments);dojo.require("dwr.engine",true);dojo.require("dwr.interface.OrganizedView",true);this.domNode.style.height="100%";this.providerArgs.includeproperties=true;OrganizedView.create(this.id,this.max,this.provider,this.providerArgs);},setOrganizerArgs:function(args){args.includeproperties=true;this.providerArgs=args;OrganizedView.setProviderArgs(this.id,args,dojo.hitch(this,this.replaceHTML));},skipForward:function(){this.skip=this.skip+this.max;OrganizedView.setSkip(this.id,this.skip,dojo.hitch(this,this.replaceHTML));},skipBackward:function(){this.skip=this.skip-this.max;OrganizedView.setSkip(this.id,this.skip,dojo.hitch(this,this.replaceHTML));},replaceHTML:function(html){this.domNode.innerHTML=html;},handleViewUpdate:function(html){this.skip=0;this.domNode.innerHTML=html;},destroy:function(){OrganizedView.destroy(this.id);}});}if(!dojo._hasResource["semweb.widget.SearchableTreeView"]){dojo._hasResource["semweb.widget.SearchableTreeView"]=true;dojo.provide("semweb.widget.SearchableTreeView");dojo.declare("semweb.widget.SearchableTreeView",[dijit._Widget,dijit._Templated],{templateString:"<div style=\"width:100%;height:100%\"></div>",treeId:"",tree:null,cdm:null,expandAllOnStart:false,selected:-1,controller:null,postMixInProperties:function(){this.i18n=dojo.i18n.getLocalization("semweb.widget","SearchableTreeView");},_doCreate:function(){this.controller.create(this.id,this.treeId,dojo.hitch(this,this.afterCreation));},postCreate:function(){this.inherited(arguments);if(!this.controller){dojo.require("dwr.engine",true);dojo.require("dwr.interface.SearchableTreeView",true);this.controller=SearchableTreeView;}this._doCreate();},afterCreation:function(){var tmp=new semweb.widget.Autocompletion({title:this.i18n["hae_puusta"]});this.tree=new semweb.widget.Tree({id:this.id+"_d",treeId:this.id,expandAllOnStart:this.expandAllOnStart,treeViewService:{create:function(tree,_943,_944){if(_944){_944();}},getChildren:dojo.hitch(this,function(tree,_946,_947){this.controller.domainGetChildren(tree.treeId,_946,_947);}),getWholeTree:dojo.hitch(this,function(tree,_949){this.controller.domainGetWholeTree(tree.treeId,_949);}),match:dojo.hitch(this,this.domainMatch),select:dojo.hitch(this,this.domainSelect),deselect:dojo.hitch(this,this.domainDeselect),afterCreation:dojo.hitch(this,this.setInitialSelection)}});tmp.addChild(this.tree);this.domNode.appendChild(tmp.domNode);},domainMatch:function(tree,_94b,_94c){if(this.cdm){this.cdm.cancel();}this.cdm=new dojo.Deferred();this.cdm.addCallback(_94c);this.controller.domainMatch(tree.treeId,_94b,dojo.hitch(this.cdm,this.cdm.callback));},setInitialSelection:function(tree){if(this.selected!=-1){this.selectedNode=tree.getNodes(this.selected)[0];tree.doselect(this.selectedNode);}},stateChanged:function(){},getConstraint:function(){if(this.selected==-1){return null;}else{return dojo.mixin(new SearchableTreeViewConstraint(),{type:"stvc",treeId:this.treeId,selectedDomain:this.selected});}},domainSelect:function(tree,node){if(this.selected!=-1){tree.dodeselect(this.selectedNode);}this.selectedNode=node;this.selected=node.nodeId;this.stateChanged();},domainDeselect:function(tree,node){this.selected=-1;this.stateChanged();},handleViewUpdate:function(_952){this.tree.handleViewUpdate(_952);},destroy:function(){this.controller.destroy(this.id);this.inherited("destroy",arguments);}});}if(!dojo._hasResource["semweb.widget.RoleBasedTreeView"]){dojo._hasResource["semweb.widget.RoleBasedTreeView"]=true;dojo.provide("semweb.widget.RoleBasedTreeView");dojo.declare("semweb.widget.RoleBasedTreeView",[dijit._Widget,dijit._Templated],{templateString:"<div>\n\t\n\t<div dojoAttachPoint=\"domainSelectorNode\">\n\t</div>\n\t<br />\n\t${i18n.suhteella}\n\t<br />\n\t<br />\n\t<div dojoAttachPoint=\"roleSelectorNode\">\n\t</div>\n</div>\n",domainSelector:null,roleSelector:null,domainSelectorNode:null,roleSelectorNode:null,treeId:"",roleSearch:true,cdm:null,crm:null,selectedDomain:null,selectedRole:-1,postMixInProperties:function(){this.i18n=dojo.i18n.getLocalization("semweb.widget","RoleBasedTreeView");},postCreate:function(){this.inherited(arguments);dojo.require("dwr.engine",true);dojo.require("dwr.interface.RoleBasedTreeView",true);RoleBasedTreeView.create(this.id,this.treeId,dojo.hitch(this,this.afterCreation));},afterCreation:function(){var tmp=new semweb.widget.Autocompletion({title:this.i18n["hae_puusta"]});var tmp2=new semweb.widget.Tree({id:this.id+"_d",treeId:this.id,treeViewService:{create:function(tree,_956,_957){if(_957){_957();}},getChildren:function(tree,_959,_95a){RoleBasedTreeView.domainGetChildren(tree.treeId,_959,_95a);},getWholeTree:function(tree,_95c){RoleBasedTreeView.domainGetWholeTree(tree.treeId,_95c);},match:dojo.hitch(this,this.domainMatch),select:dojo.hitch(this,this.domainSelect),deselect:dojo.hitch(this,this.domainDeselect)}});tmp.addChild(tmp2);this.domainSelector=tmp2;this.domainSelectorNode.appendChild(tmp.domNode);var tmp2=new semweb.widget.Tree({id:this.id+"_r",treeId:this.id,treeViewService:{create:function(tree,_95e,_95f){if(_95f){_95f();}},getChildren:function(tree,_961,_962){RoleBasedTreeView.roleGetChildren(tree.treeId,_961,_962);},getWholeTree:function(tree,_964){RoleBasedTreeView.roleGetWholeTree(tree.treeId,_964);},match:dojo.hitch(this,this.roleMatch),select:dojo.hitch(this,this.roleSelect),deselect:dojo.hitch(this,this.roleDeselect)}});this.roleSelector=tmp2;if(this.roleSearch==true){var tmp=new semweb.widget.Autocompletion({title:this.i18n["hae_puusta"]});tmp.addChild(tmp2);this.roleSelectorNode.appendChild(tmp.domNode);}else{this.roleSelectorNode.appendChild(tmp2.domNode);}},domainMatch:function(tree,_966,_967){if(this.cdm){this.cdm.cancel();}this.cdm=new dojo.Deferred();this.cdm.addCallback(_967);RoleBasedTreeView.domainMatch(tree.treeId,_966,dojo.hitch(this.cdm,this.cdm.callback));},roleMatch:function(tree,_969,_96a){if(this.crm){this.crm.cancel();}this.crm=new dojo.Deferred();this.crm.addCallback(_96a);RoleBasedTreeView.roleMatch(tree.treeId,_969,dojo.hitch(this.crm,this.crm.callback));},stateChanged:function(){},getConstraint:function(){if(this.selectedDomain==null&&this.selectedRole==-1){return null;}else{return dojo.mixin(new RoleBasedTreeViewConstraint(),{type:"rbtvc",treeId:this.treeId,selectedDomain:this.selectedDomain,selectedRole:this.selectedRole});}},domainSelect:function(tree,node){if(this.selectedDomainNode){tree.dodeselect(this.selectedDomainNode);}this.selectedDomainNode=node;this.selectedDomain=node.nodeId;this.stateChanged();},domainDeselect:function(tree,node){this.selectedDomain=null;this.stateChanged();},roleSelect:function(tree,node){if(this.selectedRoleNode){tree.dodeselect(this.selectedRoleNode);}this.selectedRoleNode=node;this.selectedRole=node.nodeId;this.stateChanged();},roleDeselect:function(tree,node){this.selectedRole=-1;this.stateChanged();},handleViewUpdate:function(_973){this.domainSelector.handleViewUpdate(_973[0]);this.roleSelector.handleViewUpdate(_973[1]);},destroy:function(){RoleBasedTreeView.destroy(this.id);this.inherited("destroy",arguments);}});}if(!dojo._hasResource["semweb.widget.TextSearchView"]){dojo._hasResource["semweb.widget.TextSearchView"]=true;dojo.provide("semweb.widget.TextSearchView");dojo.declare("semweb.widget.TextSearchView",[dijit._Widget,dijit._Templated],{templateString:"<span>\n\t<!-- input box with attached events and class variable -->\n\t<input class=\"autoCompletion\" dojoAttachPoint=\"input\" dojoAttachEvent=\"onkeyup,onfocus:onkeyup\" />\n\t<!-- because of this containerNode definition, the above instantiation attaches the HAResponse \n\t\t child here. I did this so that one could have other visualization types and server calls \n\t\t than the hierarchical one (dummy demonstration included) -->\n\t<div dojoAttachPoint=\"containerNode\" style=\"white-space:nowrap\"></div>\n</span>\n",input:null,updateTimer:null,lang:null,curSearch:null,searchDelay:300,selectedObject:-1,selectedProperty:-1,selectedKeyword:null,postMixInProperties:function(){this.i18n=dojo.i18n.getLocalization("semweb.widget","TextSearchView");},postCreate:function(){this.inherited(arguments);dojo.require("dwr.engine",true);dojo.require("dwr.interface.TextSearchView",true);},getConstraint:function(){return dojo.mixin(new TextSearchViewConstraint(),{type:"tsv",prefix:this.input.value,keyword:this.selectedKeyword,object:this.selectedObject,property:this.selectedProperty});},onkeyup:function(){if(this.updateTimer){clearTimeout(this.updateTimer);}this.expString=this.input.value;if(this.input.value!=""){this.updateTimer=setTimeout(dojo.hitch(this,this.typedNew),this.searchDelay);}},typedNew:function(){this.selectedObject=-1;this.selectedProperty=-1;this.selectedKeyword=null;this.stateChanged();},stateChanged:function(){TextSearchView.setString(this.id,this.input.value);},highlight:function(text){return text.replace(/\[H\]/g,"<span class='highlight'>").replace(/\[\/H\]/g,"</span>");},processTree:function(root,_976,_977){var _978=document.createElement("span");_978.style.cursor="pointer";var _979=document.createElement("span");var _97a=document.createElement("span");var chw=document.createElement("div");_978.appendChild(_979);_978.appendChild(_97a);chw.appendChild(_978);_97a.appendChild(document.createTextNode(" ("+_977.count+")"));if(_977.explanation.name){if(_977.explanation.property){var _97c=this.i18n["ominaisuudessa"]+" "+_977.explanation.propertyName;_979.appendChild(document.createTextNode(_97c));var st="";if(_977.explanation.types){st=_977.explanation.types.join(", ")+": ";}_97c=st+this.highlight(_977.explanation.name)+" "+_97c;_978.style.marginLeft="2.0em";_978.style.backgroundColor="#aaaaaa";_978.onclick=dojo.hitch(this,function(_97e,_97f,_980,_981){this.selectedKeyword=_97e;this.selectedProperty=_97f;this.selectedObject=_980;this.expString=_981;this.stateChanged();},_977.explanation.keyword,_977.explanation.property,_977.explanation.id,_97c);_976.appendChild(chw);}else{var st="";if(_977.explanation.types){st=_977.explanation.types.join(", ")+": ";}st=st+this.highlight(_977.explanation.name);_979.innerHTML=st;_978.style.marginLeft="1.0em";_978.onclick=dojo.hitch(this,function(_982,_983,_984){this.selectedKeyword=_982,this.selectedProperty=-1;this.selectedObject=_983;this.expString=_984,this.stateChanged();},_977.explanation.keyword,_977.explanation.id,st);root.appendChild(chw);}}else{if(_977.explanation.property){var _97c=this.i18n["ominaisuudessa"]+" "+_977.explanation.propertyName;_979.appendChild(document.createTextNode(_97c));_97c=_977.explanation.keyword+" "+_97c;_978.style.backgroundColor="#aaaaaa";_978.style.marginLeft="1.5em";_978.onclick=dojo.hitch(this,function(_985,_986,_987){this.selectedKeyword=_985,this.selectedProperty=_986;this.selectedObject=-1;this.expString=_987;this.stateChanged();},_977.explanation.keyword,_977.explanation.property,_97c);_976.appendChild(chw);}else{_979.appendChild(document.createElement("hr"));var _97c=_977.explanation.keyword;_979.appendChild(document.createTextNode(this.i18n["asiasana"]+" "+_97c));_978.style.marginLeft="0.5em";_978.onclick=dojo.hitch(this,function(_988,_989){this.selectedKeyword=_988,this.selectedProperty=-1;this.selectedObject=-1;this.expString=_989;this.stateChanged();},_977.explanation.keyword,_97c);root.appendChild(chw);}}dojo.forEach(_977.children,dojo.hitch(this,this.processTree,root,chw));},handleViewUpdate:function(_98a){while(this.containerNode.firstChild){this.containerNode.removeChild(this.containerNode.firstChild);}dojo.forEach(_98a.children,dojo.hitch(this,this.processTree,this.containerNode,this.containerNode));},destroy:function(){TextSearchView.destroy(this.id);}});}if(!dojo._hasResource["simile.ajax-api"]){dojo._hasResource["simile.ajax-api"]=true;dojo.provide("simile.ajax-api");SimileAjax_urlPrefix=dojo.moduleUrl("simile").path;if(typeof SimileAjax=="undefined"){SimileAjax={loaded:false,loadingScriptsCount:0,error:null,params:{bundle:"true"}};SimileAjax.Platform=new Object();var _98b=function(doc){return doc.getElementsByTagName("head")[0];};SimileAjax.findScript=function(doc,_98e){var _98f=doc.documentElement.getElementsByTagName("head");for(var h=0;h<_98f.length;h++){var node=_98f[h].firstChild;while(node!=null){if(node.nodeType==1&&node.tagName.toLowerCase()=="script"){var url=node.src;var i=url.indexOf(_98e);if(i>=0){return url;}}node=node.nextSibling;}}return null;};SimileAjax.includeJavascriptFile=function(doc,url,_996,_997){_996=_996||"";if(doc.body==null){try{var q="'"+_996.replace(/'/g,"&apos")+"'";doc.write("<script src='"+url+"' onerror="+q+(_997?" charset='"+_997+"'":"")+" type='text/javascript'>"+_996+"</script>");return;}catch(e){}}var _999=doc.createElement("script");if(_996){try{_999.innerHTML=_996;}catch(e){}_999.setAttribute("onerror",_996);}if(_997){_999.setAttribute("charset",_997);}_999.type="text/javascript";_999.language="JavaScript";_999.src=url;return _98b(doc).appendChild(_999);};SimileAjax.includeJavascriptFiles=function(doc,_99b,_99c){for(var i=0;i<_99c.length;i++){SimileAjax.includeJavascriptFile(doc,_99b+_99c[i]);}SimileAjax.loadingScriptsCount+=_99c.length;SimileAjax.includeJavascriptFile(doc,SimileAjax.urlPrefix+"scripts/signal.js?"+_99c.length);};SimileAjax.includeCssFile=function(doc,url){if(doc.body==null){try{doc.write("<link rel='stylesheet' href='"+url+"' type='text/css'/>");return;}catch(e){}}var link=doc.createElement("link");link.setAttribute("rel","stylesheet");link.setAttribute("type","text/css");link.setAttribute("href",url);_98b(doc).appendChild(link);};SimileAjax.includeCssFiles=function(doc,_9a2,_9a3){for(var i=0;i<_9a3.length;i++){SimileAjax.includeCssFile(doc,_9a2+_9a3[i]);}};SimileAjax.prefixURLs=function(urls,_9a6,_9a7){for(var i=0;i<_9a7.length;i++){urls.push(_9a6+_9a7[i]);}};SimileAjax.parseURLParameters=function(url,to,_9ab){to=to||{};_9ab=_9ab||{};if(typeof url=="undefined"){url=location.href;}var q=url.indexOf("?");if(q<0){return to;}url=(url+"#").slice(q+1,url.indexOf("#"));var _9ad=url.split("&"),_9ae,_9af={};var _9b0=window.decodeURIComponent||unescape;for(var i=0;_9ae=_9ad[i];i++){var eq=_9ae.indexOf("=");var name=_9b0(_9ae.slice(0,eq));var old=_9af[name];if(typeof old=="undefined"){old=[];}else{if(!(old instanceof Array)){old=[old];}}_9af[name]=old.concat(_9b0(_9ae.slice(eq+1)));}for(var i in _9af){if(!_9af.hasOwnProperty(i)){continue;}var type=_9ab[i]||String;var data=_9af[i];if(!(data instanceof Array)){data=[data];}if(type===Boolean&&data[0]=="false"){to[i]=false;}else{to[i]=type.apply(this,data);}}return to;};(function(){var _9b7=["jquery-1.1.3.1.js","platform.js","debug.js","xmlhttp.js","json.js","dom.js","graphics.js","date-time.js","string.js","html.js","data-structure.js","units.js","ajax.js","history.js","window-manager.js"];var _9b8=[];if(typeof SimileAjax_urlPrefix=="string"){SimileAjax.urlPrefix=SimileAjax_urlPrefix;}else{var url=SimileAjax.findScript(document,"simile-ajax-api.js");if(url==null){SimileAjax.error=new Error("Failed to derive URL prefix for Simile Ajax API code files");return;}SimileAjax.urlPrefix=url.substr(0,url.indexOf("simile-ajax-api.js"));}SimileAjax.parseURLParameters(url,SimileAjax.params,{bundle:Boolean});if(SimileAjax.params.bundle){}else{SimileAjax.includeJavascriptFiles(document,SimileAjax.urlPrefix+"scripts/",_9b7);}SimileAjax.includeCssFiles(document,SimileAjax.urlPrefix+"styles/",_9b8);SimileAjax.loaded=true;})();}}if(!dojo._hasResource["simile.ajax"]){dojo._hasResource["simile.ajax"]=true;dojo.provide("simile.ajax");SimileAjax.Platform.os={isMac:false,isWin:false,isWin32:false,isUnix:false};SimileAjax.Platform.browser={isIE:false,isNetscape:false,isMozilla:false,isFirefox:false,isOpera:false,isSafari:false,majorVersion:0,minorVersion:0};(function(){var an=navigator.appName.toLowerCase();var ua=navigator.userAgent.toLowerCase();SimileAjax.Platform.os.isMac=(ua.indexOf("mac")!=-1);SimileAjax.Platform.os.isWin=(ua.indexOf("win")!=-1);SimileAjax.Platform.os.isWin32=SimileAjax.Platform.isWin&&(ua.indexOf("95")!=-1||ua.indexOf("98")!=-1||ua.indexOf("nt")!=-1||ua.indexOf("win32")!=-1||ua.indexOf("32bit")!=-1);SimileAjax.Platform.os.isUnix=(ua.indexOf("x11")!=-1);SimileAjax.Platform.browser.isIE=(an.indexOf("microsoft")!=-1);SimileAjax.Platform.browser.isNetscape=(an.indexOf("netscape")!=-1);SimileAjax.Platform.browser.isMozilla=(ua.indexOf("mozilla")!=-1);SimileAjax.Platform.browser.isFirefox=(ua.indexOf("firefox")!=-1);SimileAjax.Platform.browser.isOpera=(an.indexOf("opera")!=-1);SimileAjax.Platform.browser.isSafari=(an.indexOf("safari")!=-1);var _9bc=function(s){var a=s.split(".");SimileAjax.Platform.browser.majorVersion=parseInt(a[0]);SimileAjax.Platform.browser.minorVersion=parseInt(a[1]);};var _9bf=function(s,sub,_9c2){var i=s.indexOf(sub,_9c2);return i>=0?i:s.length;};if(SimileAjax.Platform.browser.isMozilla){var _9c4=ua.indexOf("mozilla/");if(_9c4>=0){_9bc(ua.substring(_9c4+8,_9bf(ua," ",_9c4)));}}if(SimileAjax.Platform.browser.isIE){var _9c4=ua.indexOf("msie ");if(_9c4>=0){_9bc(ua.substring(_9c4+5,_9bf(ua,";",_9c4)));}}if(SimileAjax.Platform.browser.isNetscape){var _9c4=ua.indexOf("rv:");if(_9c4>=0){_9bc(ua.substring(_9c4+3,_9bf(ua,")",_9c4)));}}if(SimileAjax.Platform.browser.isFirefox){var _9c4=ua.indexOf("firefox/");if(_9c4>=0){_9bc(ua.substring(_9c4+8,_9bf(ua," ",_9c4)));}}if(!("localeCompare" in String.prototype)){String.prototype.localeCompare=function(s){if(this<s){return -1;}else{if(this>s){return 1;}else{return 0;}}};}})();SimileAjax.Platform.getDefaultLocale=function(){return SimileAjax.Platform.clientLocale;};SimileAjax.ListenerQueue=function(_9c6){this._listeners=[];this._wildcardHandlerName=_9c6;};SimileAjax.ListenerQueue.prototype.add=function(_9c7){this._listeners.push(_9c7);};SimileAjax.ListenerQueue.prototype.remove=function(_9c8){var _9c9=this._listeners;for(var i=0;i<_9c9.length;i++){if(_9c9[i]==_9c8){_9c9.splice(i,1);break;}}};SimileAjax.ListenerQueue.prototype.fire=function(_9cb,args){var _9cd=[].concat(this._listeners);for(var i=0;i<_9cd.length;i++){var _9cf=_9cd[i];if(_9cb in _9cf){try{_9cf[_9cb].apply(_9cf,args);}catch(e){SimileAjax.Debug.exception("Error firing event of name "+_9cb,e);}}else{if(this._wildcardHandlerName!=null&&this._wildcardHandlerName in _9cf){try{_9cf[this._wildcardHandlerName].apply(_9cf,[_9cb]);}catch(e){SimileAjax.Debug.exception("Error firing event of name "+_9cb+" to wildcard handler",e);}}}}};SimileAjax.Set=function(a){this._hash={};this._count=0;if(a instanceof Array){for(var i=0;i<a.length;i++){this.add(a[i]);}}else{if(a instanceof SimileAjax.Set){this.addSet(a);}}};SimileAjax.Set.prototype.add=function(o){if(!(o in this._hash)){this._hash[o]=true;this._count++;return true;}return false;};SimileAjax.Set.prototype.addSet=function(set){for(o in set._hash){this.add(o);}};SimileAjax.Set.prototype.remove=function(o){if(o in this._hash){delete this._hash[o];this._count--;return true;}return false;};SimileAjax.Set.prototype.removeSet=function(set){for(o in set._hash){this.remove(o);}};SimileAjax.Set.prototype.retainSet=function(set){for(o in this._hash){if(!set.contains(o)){delete this._hash[o];this._count--;}}};SimileAjax.Set.prototype.contains=function(o){return (o in this._hash);};SimileAjax.Set.prototype.size=function(){return this._count;};SimileAjax.Set.prototype.toArray=function(){var a=[];for(o in this._hash){a.push(o);}return a;};SimileAjax.Set.prototype.visit=function(f){for(o in this._hash){if(f(o)==true){break;}}};SimileAjax.SortedArray=function(_9da,_9db){this._a=(_9db instanceof Array)?_9db:[];this._compare=_9da;};SimileAjax.SortedArray.prototype.add=function(elmt){var sa=this;var _9de=this.find(function(_9df){return sa._compare(_9df,elmt);});if(_9de<this._a.length){this._a.splice(_9de,0,elmt);}else{this._a.push(elmt);}};SimileAjax.SortedArray.prototype.remove=function(elmt){var sa=this;var _9e2=this.find(function(_9e3){return sa._compare(_9e3,elmt);});while(_9e2<this._a.length&&this._compare(this._a[_9e2],elmt)==0){if(this._a[_9e2]==elmt){this._a.splice(_9e2,1);return true;}else{_9e2++;}}return false;};SimileAjax.SortedArray.prototype.removeAll=function(){this._a=[];};SimileAjax.SortedArray.prototype.elementAt=function(_9e4){return this._a[_9e4];};SimileAjax.SortedArray.prototype.length=function(){return this._a.length;};SimileAjax.SortedArray.prototype.find=function(_9e5){var a=0;var b=this._a.length;while(a<b){var mid=Math.floor((a+b)/2);var c=_9e5(this._a[mid]);if(mid==a){return c<0?a+1:a;}else{if(c<0){a=mid;}else{b=mid;}}}return a;};SimileAjax.SortedArray.prototype.getFirst=function(){return (this._a.length>0)?this._a[0]:null;};SimileAjax.SortedArray.prototype.getLast=function(){return (this._a.length>0)?this._a[this._a.length-1]:null;};SimileAjax.EventIndex=function(unit){var _9eb=this;this._unit=(unit!=null)?unit:SimileAjax.NativeDateUnit;this._events=new SimileAjax.SortedArray(function(_9ec,_9ed){return _9eb._unit.compare(_9ec.getStart(),_9ed.getStart());});this._idToEvent={};this._indexed=true;};SimileAjax.EventIndex.prototype.getUnit=function(){return this._unit;};SimileAjax.EventIndex.prototype.getEvent=function(id){return this._idToEvent[id];};SimileAjax.EventIndex.prototype.add=function(evt){this._events.add(evt);this._idToEvent[evt.getID()]=evt;this._indexed=false;};SimileAjax.EventIndex.prototype.removeAll=function(){this._events.removeAll();this._idToEvent={};this._indexed=false;};SimileAjax.EventIndex.prototype.getCount=function(){return this._events.length();};SimileAjax.EventIndex.prototype.getIterator=function(_9f0,_9f1){if(!this._indexed){this._index();}return new SimileAjax.EventIndex._Iterator(this._events,_9f0,_9f1,this._unit);};SimileAjax.EventIndex.prototype.getAllIterator=function(){return new SimileAjax.EventIndex._AllIterator(this._events);};SimileAjax.EventIndex.prototype.getEarliestDate=function(){var evt=this._events.getFirst();return (evt==null)?null:evt.getStart();};SimileAjax.EventIndex.prototype.getLatestDate=function(){var evt=this._events.getLast();if(evt==null){return null;}if(!this._indexed){this._index();}var _9f4=evt._earliestOverlapIndex;var date=this._events.elementAt(_9f4).getEnd();for(var i=_9f4+1;i<this._events.length();i++){date=this._unit.later(date,this._events.elementAt(i).getEnd());}return date;};SimileAjax.EventIndex.prototype._index=function(){var l=this._events.length();for(var i=0;i<l;i++){var evt=this._events.elementAt(i);evt._earliestOverlapIndex=i;}var _9fa=1;for(var i=0;i<l;i++){var evt=this._events.elementAt(i);var end=evt.getEnd();_9fa=Math.max(_9fa,i+1);while(_9fa<l){var evt2=this._events.elementAt(_9fa);var _9fd=evt2.getStart();if(this._unit.compare(_9fd,end)<0){evt2._earliestOverlapIndex=i;_9fa++;}else{break;}}}this._indexed=true;};SimileAjax.EventIndex._Iterator=function(_9fe,_9ff,_a00,unit){this._events=_9fe;this._startDate=_9ff;this._endDate=_a00;this._unit=unit;this._currentIndex=_9fe.find(function(evt){return unit.compare(evt.getStart(),_9ff);});if(this._currentIndex-1>=0){this._currentIndex=this._events.elementAt(this._currentIndex-1)._earliestOverlapIndex;}this._currentIndex--;this._maxIndex=_9fe.find(function(evt){return unit.compare(evt.getStart(),_a00);});this._hasNext=false;this._next=null;this._findNext();};SimileAjax.EventIndex._Iterator.prototype={hasNext:function(){return this._hasNext;},next:function(){if(this._hasNext){var next=this._next;this._findNext();return next;}else{return null;}},_findNext:function(){var unit=this._unit;while((++this._currentIndex)<this._maxIndex){var evt=this._events.elementAt(this._currentIndex);if(unit.compare(evt.getStart(),this._endDate)<0&&unit.compare(evt.getEnd(),this._startDate)>0){this._next=evt;this._hasNext=true;return;}}this._next=null;this._hasNext=false;}};SimileAjax.EventIndex._AllIterator=function(_a07){this._events=_a07;this._index=0;};SimileAjax.EventIndex._AllIterator.prototype={hasNext:function(){return this._index<this._events.length();},next:function(){return this._index<this._events.length()?this._events.elementAt(this._index++):null;}};SimileAjax.DateTime=new Object();SimileAjax.DateTime.MILLISECOND=0;SimileAjax.DateTime.SECOND=1;SimileAjax.DateTime.MINUTE=2;SimileAjax.DateTime.HOUR=3;SimileAjax.DateTime.DAY=4;SimileAjax.DateTime.WEEK=5;SimileAjax.DateTime.MONTH=6;SimileAjax.DateTime.YEAR=7;SimileAjax.DateTime.DECADE=8;SimileAjax.DateTime.CENTURY=9;SimileAjax.DateTime.MILLENNIUM=10;SimileAjax.DateTime.EPOCH=-1;SimileAjax.DateTime.ERA=-2;SimileAjax.DateTime.gregorianUnitLengths=[];(function(){var d=SimileAjax.DateTime;var a=d.gregorianUnitLengths;a[d.MILLISECOND]=1;a[d.SECOND]=1000;a[d.MINUTE]=a[d.SECOND]*60;a[d.HOUR]=a[d.MINUTE]*60;a[d.DAY]=a[d.HOUR]*24;a[d.WEEK]=a[d.DAY]*7;a[d.MONTH]=a[d.DAY]*31;a[d.YEAR]=a[d.DAY]*365;a[d.DECADE]=a[d.YEAR]*10;a[d.CENTURY]=a[d.YEAR]*100;a[d.MILLENNIUM]=a[d.YEAR]*1000;})();SimileAjax.DateTime._dateRegexp=new RegExp("^(-?)([0-9]{4})("+["(-?([0-9]{2})(-?([0-9]{2}))?)","(-?([0-9]{3}))","(-?W([0-9]{2})(-?([1-7]))?)"].join("|")+")?$");SimileAjax.DateTime._timezoneRegexp=new RegExp("Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$");SimileAjax.DateTime._timeRegexp=new RegExp("^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$");SimileAjax.DateTime.setIso8601Date=function(_a0a,_a0b){var d=_a0b.match(SimileAjax.DateTime._dateRegexp);if(!d){throw new Error("Invalid date string: "+_a0b);}var sign=(d[1]=="-")?-1:1;var year=sign*d[2];var _a0f=d[5];var date=d[7];var _a11=d[9];var week=d[11];var _a13=(d[13])?d[13]:1;_a0a.setUTCFullYear(year);if(_a11){_a0a.setUTCMonth(0);_a0a.setUTCDate(Number(_a11));}else{if(week){_a0a.setUTCMonth(0);_a0a.setUTCDate(1);var gd=_a0a.getUTCDay();var day=(gd)?gd:7;var _a16=Number(_a13)+(7*Number(week));if(day<=4){_a0a.setUTCDate(_a16+1-day);}else{_a0a.setUTCDate(_a16+8-day);}}else{if(_a0f){_a0a.setUTCDate(1);_a0a.setUTCMonth(_a0f-1);}if(date){_a0a.setUTCDate(date);}}}return _a0a;};SimileAjax.DateTime.setIso8601Time=function(_a17,_a18){var d=_a18.match(SimileAjax.DateTime._timeRegexp);if(!d){SimileAjax.Debug.warn("Invalid time string: "+_a18);return false;}var _a1a=d[1];var mins=Number((d[3])?d[3]:0);var secs=(d[5])?d[5]:0;var ms=d[7]?(Number("0."+d[7])*1000):0;_a17.setUTCHours(_a1a);_a17.setUTCMinutes(mins);_a17.setUTCSeconds(secs);_a17.setUTCMilliseconds(ms);return _a17;};SimileAjax.DateTime.timezoneOffset=new Date().getTimezoneOffset();SimileAjax.DateTime.setIso8601=function(_a1e,_a1f){var _a20=null;var _a21=(_a1f.indexOf("T")==-1)?_a1f.split(" "):_a1f.split("T");SimileAjax.DateTime.setIso8601Date(_a1e,_a21[0]);if(_a21.length==2){var d=_a21[1].match(SimileAjax.DateTime._timezoneRegexp);if(d){if(d[0]=="Z"){_a20=0;}else{_a20=(Number(d[3])*60)+Number(d[5]);_a20*=((d[2]=="-")?1:-1);}_a21[1]=_a21[1].substr(0,_a21[1].length-d[0].length);}SimileAjax.DateTime.setIso8601Time(_a1e,_a21[1]);}if(_a20==null){_a20=_a1e.getTimezoneOffset();}_a1e.setTime(_a1e.getTime()+_a20*60000);return _a1e;};SimileAjax.DateTime.parseIso8601DateTime=function(_a23){try{return SimileAjax.DateTime.setIso8601(new Date(0),_a23);}catch(e){return null;}};SimileAjax.DateTime.parseGregorianDateTime=function(o){if(o==null){return null;}else{if(o instanceof Date){return o;}}var s=o.toString();if(s.length>0&&s.length<8){var _a26=s.indexOf(" ");if(_a26>0){var year=parseInt(s.substr(0,_a26));var _a28=s.substr(_a26+1);if(_a28.toLowerCase()=="bc"){year=1-year;}}else{var year=parseInt(s);}var d=new Date(0);d.setUTCFullYear(year);return d;}try{return new Date(Date.parse(s));}catch(e){return null;}};SimileAjax.DateTime.roundDownToInterval=function(date,_a2b,_a2c,_a2d,_a2e){var _a2f=_a2c*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR];var _a30=new Date(date.getTime()+_a2f);var _a31=function(d){d.setUTCMilliseconds(0);d.setUTCSeconds(0);d.setUTCMinutes(0);d.setUTCHours(0);};var _a33=function(d){_a31(d);d.setUTCDate(1);d.setUTCMonth(0);};switch(_a2b){case SimileAjax.DateTime.MILLISECOND:var x=_a30.getUTCMilliseconds();_a30.setUTCMilliseconds(x-(x%_a2d));break;case SimileAjax.DateTime.SECOND:_a30.setUTCMilliseconds(0);var x=_a30.getUTCSeconds();_a30.setUTCSeconds(x-(x%_a2d));break;case SimileAjax.DateTime.MINUTE:_a30.setUTCMilliseconds(0);_a30.setUTCSeconds(0);var x=_a30.getUTCMinutes();_a30.setTime(_a30.getTime()-(x%_a2d)*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.MINUTE]);break;case SimileAjax.DateTime.HOUR:_a30.setUTCMilliseconds(0);_a30.setUTCSeconds(0);_a30.setUTCMinutes(0);var x=_a30.getUTCHours();_a30.setUTCHours(x-(x%_a2d));break;case SimileAjax.DateTime.DAY:_a31(_a30);break;case SimileAjax.DateTime.WEEK:_a31(_a30);var d=(_a30.getUTCDay()+7-_a2e)%7;_a30.setTime(_a30.getTime()-d*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.DAY]);break;case SimileAjax.DateTime.MONTH:_a31(_a30);_a30.setUTCDate(1);var x=_a30.getUTCMonth();_a30.setUTCMonth(x-(x%_a2d));break;case SimileAjax.DateTime.YEAR:_a33(_a30);var x=_a30.getUTCFullYear();_a30.setUTCFullYear(x-(x%_a2d));break;case SimileAjax.DateTime.DECADE:_a33(_a30);_a30.setUTCFullYear(Math.floor(_a30.getUTCFullYear()/10)*10);break;case SimileAjax.DateTime.CENTURY:_a33(_a30);_a30.setUTCFullYear(Math.floor(_a30.getUTCFullYear()/100)*100);break;case SimileAjax.DateTime.MILLENNIUM:_a33(_a30);_a30.setUTCFullYear(Math.floor(_a30.getUTCFullYear()/1000)*1000);break;}date.setTime(_a30.getTime()-_a2f);};SimileAjax.DateTime.roundUpToInterval=function(date,_a38,_a39,_a3a,_a3b){var _a3c=date.getTime();SimileAjax.DateTime.roundDownToInterval(date,_a38,_a39,_a3a,_a3b);if(date.getTime()<_a3c){date.setTime(date.getTime()+SimileAjax.DateTime.gregorianUnitLengths[_a38]*_a3a);}};SimileAjax.DateTime.incrementByInterval=function(date,_a3e){switch(_a3e){case SimileAjax.DateTime.MILLISECOND:date.setTime(date.getTime()+1);break;case SimileAjax.DateTime.SECOND:date.setTime(date.getTime()+1000);break;case SimileAjax.DateTime.MINUTE:date.setTime(date.getTime()+SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.MINUTE]);break;case SimileAjax.DateTime.HOUR:date.setTime(date.getTime()+SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR]);break;case SimileAjax.DateTime.DAY:date.setUTCDate(date.getUTCDate()+1);break;case SimileAjax.DateTime.WEEK:date.setUTCDate(date.getUTCDate()+7);break;case SimileAjax.DateTime.MONTH:date.setUTCMonth(date.getUTCMonth()+1);break;case SimileAjax.DateTime.YEAR:date.setUTCFullYear(date.getUTCFullYear()+1);break;case SimileAjax.DateTime.DECADE:date.setUTCFullYear(date.getUTCFullYear()+10);break;case SimileAjax.DateTime.CENTURY:date.setUTCFullYear(date.getUTCFullYear()+100);break;case SimileAjax.DateTime.MILLENNIUM:date.setUTCFullYear(date.getUTCFullYear()+1000);break;}};SimileAjax.DateTime.removeTimeZoneOffset=function(date,_a40){if(date.getTime){date=date.getTime();}return new Date(date+_a40*SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.HOUR]);};SimileAjax.DateTime.getTimezone=function(){var d=new Date();var _a42=d.getUTCHours();var _a43=d.getUTCDate();var _a44=d.getHours();var _a45=d.getDate();if(_a43==_a45){return _a44-_a42;}else{if(_a42>12){return 24-_a42+_a44;}else{return -(_a42+24-_a44);}}};SimileAjax.Debug={silent:false};SimileAjax.Debug.log=function(msg){var f;if("console" in window&&"log" in window.console){f=function(msg2){console.log(msg2);};}else{f=function(msg2){if(!SimileAjax.Debug.silent){alert(msg2);}};}SimileAjax.Debug.log=f;f(msg);};SimileAjax.Debug.warn=function(msg){var f;if("console" in window&&"warn" in window.console){f=function(msg2){console.warn(msg2);};}else{f=function(msg2){if(!SimileAjax.Debug.silent){alert(msg2);}};}SimileAjax.Debug.warn=f;f(msg);};SimileAjax.Debug.exception=function(e,msg){var f,_a51=SimileAjax.parseURLParameters();if(_a51.errors=="throw"||SimileAjax.params.errors=="throw"){f=function(e2,msg2){throw (e2);};}else{if("console" in window&&"error" in window.console){f=function(e2,msg2){if(msg2!=null){console.error(msg2+" %o",e2);}else{console.error(e2);}throw (e2);};}else{f=function(e2,msg2){if(!SimileAjax.Debug.silent){alert("Caught exception: "+msg2+"\n\nDetails: "+("description" in e2?e2.description:e2));}throw (e2);};}}SimileAjax.Debug.exception=f;f(e,msg);};SimileAjax.Debug.objectToString=function(o){return SimileAjax.Debug._objectToString(o,"");};SimileAjax.Debug._objectToString=function(o,_a5a){var _a5b=_a5a+" ";if(typeof o=="object"){var s="{";for(n in o){s+=_a5b+n+": "+SimileAjax.Debug._objectToString(o[n],_a5b)+"\n";}s+=_a5a+"}";return s;}else{if(typeof o=="array"){var s="[";for(var n=0;n<o.length;n++){s+=SimileAjax.Debug._objectToString(o[n],_a5b)+"\n";}s+=_a5a+"]";return s;}else{return o;}}};SimileAjax.DOM=new Object();SimileAjax.DOM.registerEventWithObject=function(elmt,_a5f,obj,_a61){SimileAjax.DOM.registerEvent(elmt,_a5f,function(_a62,evt,_a64){return obj[_a61].call(obj,_a62,evt,_a64);});};SimileAjax.DOM.registerEvent=function(elmt,_a66,_a67){var _a68=function(evt){evt=(evt)?evt:((event)?event:null);if(evt){var _a6a=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);if(_a6a){_a6a=(_a6a.nodeType==1||_a6a.nodeType==9)?_a6a:_a6a.parentNode;}return _a67(elmt,evt,_a6a);}return true;};if(SimileAjax.Platform.browser.isIE){elmt.attachEvent("on"+_a66,_a68);}else{elmt.addEventListener(_a66,_a68,false);}};SimileAjax.DOM.getPageCoordinates=function(elmt){var left=0;var top=0;if(elmt.nodeType!=1){elmt=elmt.parentNode;}var _a6e=elmt;while(_a6e!=null){left+=_a6e.offsetLeft;top+=_a6e.offsetTop;_a6e=_a6e.offsetParent;}var body=document.body;while(elmt!=null&&elmt!=body){if("scrollLeft" in elmt){left-=elmt.scrollLeft;top-=elmt.scrollTop;}elmt=elmt.parentNode;}return {left:left,top:top};};SimileAjax.DOM.getSize=function(elmt){var w=this.getStyle(elmt,"width");var h=this.getStyle(elmt,"height");if(w.indexOf("px")>-1){w=w.replace("px","");}if(h.indexOf("px")>-1){h=h.replace("px","");}return {w:w,h:h};};SimileAjax.DOM.getStyle=function(elmt,_a74){if(elmt.currentStyle){var _a75=elmt.currentStyle[_a74];}else{if(window.getComputedStyle){var _a75=document.defaultView.getComputedStyle(elmt,null).getPropertyValue(_a74);}else{var _a75="";}}return _a75;};SimileAjax.DOM.getEventRelativeCoordinates=function(evt,elmt){if(SimileAjax.Platform.browser.isIE){return {x:evt.offsetX,y:evt.offsetY};}else{var _a78=SimileAjax.DOM.getPageCoordinates(elmt);return {x:evt.pageX-_a78.left,y:evt.pageY-_a78.top};}};SimileAjax.DOM.getEventPageCoordinates=function(evt){if(SimileAjax.Platform.browser.isIE){return {x:evt.clientX+document.body.scrollLeft,y:evt.clientY+document.body.scrollTop};}else{return {x:evt.pageX,y:evt.pageY};}};SimileAjax.DOM.hittest=function(x,y,_a7c){return SimileAjax.DOM._hittest(document.body,x,y,_a7c);};SimileAjax.DOM._hittest=function(elmt,x,y,_a80){var _a81=elmt.childNodes;outer:for(var i=0;i<_a81.length;i++){var _a83=_a81[i];for(var j=0;j<_a80.length;j++){if(_a83==_a80[j]){continue outer;}}if(_a83.offsetWidth==0&&_a83.offsetHeight==0){var _a85=SimileAjax.DOM._hittest(_a83,x,y,_a80);if(_a85!=_a83){return _a85;}}else{var top=0;var left=0;var node=_a83;while(node){top+=node.offsetTop;left+=node.offsetLeft;node=node.offsetParent;}if(left<=x&&top<=y&&(x-left)<_a83.offsetWidth&&(y-top)<_a83.offsetHeight){return SimileAjax.DOM._hittest(_a83,x,y,_a80);}else{if(_a83.nodeType==1&&_a83.tagName=="TR"){var _a89=SimileAjax.DOM._hittest(_a83,x,y,_a80);if(_a89!=_a83){return _a89;}}}}}return elmt;};SimileAjax.DOM.cancelEvent=function(evt){evt.returnValue=false;evt.cancelBubble=true;if("preventDefault" in evt){evt.preventDefault();}};SimileAjax.DOM.appendClassName=function(elmt,_a8c){var _a8d=elmt.className.split(" ");for(var i=0;i<_a8d.length;i++){if(_a8d[i]==_a8c){return;}}_a8d.push(_a8c);elmt.className=_a8d.join(" ");};SimileAjax.DOM.createInputElement=function(type){var div=document.createElement("div");div.innerHTML="<input type='"+type+"' />";return div.firstChild;};SimileAjax.DOM.createDOMFromTemplate=function(_a91){var _a92={};_a92.elmt=SimileAjax.DOM._createDOMFromTemplate(_a91,_a92,null);return _a92;};SimileAjax.DOM._createDOMFromTemplate=function(_a93,_a94,_a95){if(_a93==null){return null;}else{if(typeof _a93!="object"){var node=document.createTextNode(_a93);if(_a95!=null){_a95.appendChild(node);}return node;}else{var elmt=null;if("tag" in _a93){var tag=_a93.tag;if(_a95!=null){if(tag=="tr"){elmt=_a95.insertRow(_a95.rows.length);}else{if(tag=="td"){elmt=_a95.insertCell(_a95.cells.length);}}}if(elmt==null){elmt=tag=="input"?SimileAjax.DOM.createInputElement(_a93.type):document.createElement(tag);if(_a95!=null){_a95.appendChild(elmt);}}}else{elmt=_a93.elmt;if(_a95!=null){_a95.appendChild(elmt);}}for(var _a99 in _a93){var _a9a=_a93[_a99];if(_a99=="field"){_a94[_a9a]=elmt;}else{if(_a99=="className"){elmt.className=_a9a;}else{if(_a99=="id"){elmt.id=_a9a;}else{if(_a99=="title"){elmt.title=_a9a;}else{if(_a99=="type"&&elmt.tagName=="input"){}else{if(_a99=="style"){for(n in _a9a){var v=_a9a[n];if(n=="float"){n=SimileAjax.Platform.browser.isIE?"styleFloat":"cssFloat";}elmt.style[n]=v;}}else{if(_a99=="children"){for(var i=0;i<_a9a.length;i++){SimileAjax.DOM._createDOMFromTemplate(_a9a[i],_a94,elmt);}}else{if(_a99!="tag"&&_a99!="elmt"){elmt.setAttribute(_a99,_a9a);}}}}}}}}}return elmt;}}};SimileAjax.DOM._cachedParent=null;SimileAjax.DOM.createElementFromString=function(s){if(SimileAjax.DOM._cachedParent==null){SimileAjax.DOM._cachedParent=document.createElement("div");}SimileAjax.DOM._cachedParent.innerHTML=s;return SimileAjax.DOM._cachedParent.firstChild;};SimileAjax.DOM.createDOMFromString=function(root,s,_aa0){var elmt=typeof root=="string"?document.createElement(root):root;elmt.innerHTML=s;var dom={elmt:elmt};SimileAjax.DOM._processDOMChildrenConstructedFromString(dom,elmt,_aa0!=null?_aa0:{});return dom;};SimileAjax.DOM._processDOMConstructedFromString=function(dom,elmt,_aa5){var id=elmt.id;if(id!=null&&id.length>0){elmt.removeAttribute("id");if(id in _aa5){var _aa7=elmt.parentNode;_aa7.insertBefore(_aa5[id],elmt);_aa7.removeChild(elmt);dom[id]=_aa5[id];return;}else{dom[id]=elmt;}}if(elmt.hasChildNodes()){SimileAjax.DOM._processDOMChildrenConstructedFromString(dom,elmt,_aa5);}};SimileAjax.DOM._processDOMChildrenConstructedFromString=function(dom,elmt,_aaa){var node=elmt.firstChild;while(node!=null){var _aac=node.nextSibling;if(node.nodeType==1){SimileAjax.DOM._processDOMConstructedFromString(dom,node,_aaa);}node=_aac;}};SimileAjax.Graphics=new Object();SimileAjax.Graphics.pngIsTranslucent=(!SimileAjax.Platform.browser.isIE)||(SimileAjax.Platform.browser.majorVersion>6);SimileAjax.Graphics._createTranslucentImage1=function(url,_aae){elmt=document.createElement("img");elmt.setAttribute("src",url);if(_aae!=null){elmt.style.verticalAlign=_aae;}return elmt;};SimileAjax.Graphics._createTranslucentImage2=function(url,_ab0){elmt=document.createElement("img");elmt.style.width="1px";elmt.style.height="1px";elmt.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"', sizingMethod='image')";elmt.style.verticalAlign=(_ab0!=null)?_ab0:"middle";return elmt;};SimileAjax.Graphics.createTranslucentImage=SimileAjax.Graphics.pngIsTranslucent?SimileAjax.Graphics._createTranslucentImage1:SimileAjax.Graphics._createTranslucentImage2;SimileAjax.Graphics._createTranslucentImageHTML1=function(url,_ab2){return "<img src=\""+url+"\""+(_ab2!=null?" style=\"vertical-align: "+_ab2+";\"":"")+" />";};SimileAjax.Graphics._createTranslucentImageHTML2=function(url,_ab4){var _ab5="width: 1px; height: 1px; "+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"', sizingMethod='image');"+(_ab4!=null?" vertical-align: "+_ab4+";":"");return "<img src='"+url+"' style=\""+_ab5+"\" />";};SimileAjax.Graphics.createTranslucentImageHTML=SimileAjax.Graphics.pngIsTranslucent?SimileAjax.Graphics._createTranslucentImageHTML1:SimileAjax.Graphics._createTranslucentImageHTML2;SimileAjax.Graphics.setOpacity=function(elmt,_ab7){if(SimileAjax.Platform.browser.isIE){elmt.style.filter="progid:DXImageTransform.Microsoft.Alpha(Style=0,Opacity="+_ab7+")";}else{var o=(_ab7/100).toString();elmt.style.opacity=o;elmt.style.MozOpacity=o;}};SimileAjax.Graphics._bubbleMargins={top:33,bottom:42,left:33,right:40};SimileAjax.Graphics._arrowOffsets={top:0,bottom:9,left:1,right:8};SimileAjax.Graphics._bubblePadding=15;SimileAjax.Graphics._bubblePointOffset=6;SimileAjax.Graphics._halfArrowWidth=18;SimileAjax.Graphics.createBubbleForPoint=function(_ab9,_aba,_abb,_abc,_abd){function getWindowDims(){if(typeof window.innerHeight=="number"){return {w:window.innerWidth,h:window.innerHeight};}else{if(document.documentElement&&document.documentElement.clientHeight){return {w:document.documentElement.clientWidth,h:document.documentElement.clientHeight};}else{if(document.body&&document.body.clientHeight){return {w:document.body.clientWidth,h:document.body.clientHeight};}}}};var _abe=function(){if(!_abf._closed){document.body.removeChild(_abf._div);_abf._doc=null;_abf._div=null;_abf._content=null;_abf._closed=true;}};var _abf={_closed:false};var dims=getWindowDims();var _ac1=dims.w;var _ac2=dims.h;var _ac3=SimileAjax.Graphics._bubbleMargins;_abb=parseInt(_abb,10);_abc=parseInt(_abc,10);var _ac4=_ac3.left+_abb+_ac3.right;var _ac5=_ac3.top+_abc+_ac3.bottom;var _ac6=SimileAjax.Graphics.pngIsTranslucent;var _ac7=SimileAjax.urlPrefix;var _ac8=function(elmt,url,_acb,_acc){elmt.style.position="absolute";elmt.style.width=_acb+"px";elmt.style.height=_acc+"px";if(_ac6){elmt.style.background="url("+url+")";}else{elmt.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"', sizingMethod='crop')";}};var div=document.createElement("div");div.style.width=_ac4+"px";div.style.height=_ac5+"px";div.style.position="absolute";div.style.zIndex=1000;var _ace=SimileAjax.WindowManager.pushLayer(_abe,true,div);_abf._div=div;_abf.close=function(){SimileAjax.WindowManager.popLayer(_ace);};var _acf=document.createElement("div");_acf.style.width="100%";_acf.style.height="100%";_acf.style.position="relative";div.appendChild(_acf);var _ad0=function(url,left,top,_ad4,_ad5){var _ad6=document.createElement("div");_ad6.style.left=left+"px";_ad6.style.top=top+"px";_ac8(_ad6,url,_ad4,_ad5);_acf.appendChild(_ad6);};_ad0(_ac7+"images/bubble-top-left.png",0,0,_ac3.left,_ac3.top);_ad0(_ac7+"images/bubble-top.png",_ac3.left,0,_abb,_ac3.top);_ad0(_ac7+"images/bubble-top-right.png",_ac3.left+_abb,0,_ac3.right,_ac3.top);_ad0(_ac7+"images/bubble-left.png",0,_ac3.top,_ac3.left,_abc);_ad0(_ac7+"images/bubble-right.png",_ac3.left+_abb,_ac3.top,_ac3.right,_abc);_ad0(_ac7+"images/bubble-bottom-left.png",0,_ac3.top+_abc,_ac3.left,_ac3.bottom);_ad0(_ac7+"images/bubble-bottom.png",_ac3.left,_ac3.top+_abc,_abb,_ac3.bottom);_ad0(_ac7+"images/bubble-bottom-right.png",_ac3.left+_abb,_ac3.top+_abc,_ac3.right,_ac3.bottom);var _ad7=document.createElement("div");_ad7.style.left=(_ac4-_ac3.right+SimileAjax.Graphics._bubblePadding-16-2)+"px";_ad7.style.top=(_ac3.top-SimileAjax.Graphics._bubblePadding+1)+"px";_ad7.style.cursor="pointer";_ac8(_ad7,_ac7+"images/close-button.png",16,16);SimileAjax.WindowManager.registerEventWithObject(_ad7,"click",_abf,"close");_acf.appendChild(_ad7);var _ad8=document.createElement("div");_ad8.style.position="absolute";_ad8.style.left=_ac3.left+"px";_ad8.style.top=_ac3.top+"px";_ad8.style.width=_abb+"px";_ad8.style.height=_abc+"px";_ad8.style.overflow="auto";_ad8.style.background="white";_acf.appendChild(_ad8);_abf.content=_ad8;(function(){if(_ab9-SimileAjax.Graphics._halfArrowWidth-SimileAjax.Graphics._bubblePadding>0&&_ab9+SimileAjax.Graphics._halfArrowWidth+SimileAjax.Graphics._bubblePadding<_ac1){var left=_ab9-Math.round(_abb/2)-_ac3.left;left=_ab9<(_ac1/2)?Math.max(left,-(_ac3.left-SimileAjax.Graphics._bubblePadding)):Math.min(left,_ac1+(_ac3.right-SimileAjax.Graphics._bubblePadding)-_ac4);if((_abd&&_abd=="top")||(!_abd&&(_aba-SimileAjax.Graphics._bubblePointOffset-_ac5>0))){var _ada=document.createElement("div");_ada.style.left=(_ab9-SimileAjax.Graphics._halfArrowWidth-left)+"px";_ada.style.top=(_ac3.top+_abc)+"px";_ac8(_ada,_ac7+"images/bubble-bottom-arrow.png",37,_ac3.bottom);_acf.appendChild(_ada);div.style.left=left+"px";div.style.top=(_aba-SimileAjax.Graphics._bubblePointOffset-_ac5+SimileAjax.Graphics._arrowOffsets.bottom)+"px";return;}else{if((_abd&&_abd=="bottom")||(!_abd&&(_aba+SimileAjax.Graphics._bubblePointOffset+_ac5<_ac2))){var _ada=document.createElement("div");_ada.style.left=(_ab9-SimileAjax.Graphics._halfArrowWidth-left)+"px";_ada.style.top="0px";_ac8(_ada,_ac7+"images/bubble-top-arrow.png",37,_ac3.top);_acf.appendChild(_ada);div.style.left=left+"px";div.style.top=(_aba+SimileAjax.Graphics._bubblePointOffset-SimileAjax.Graphics._arrowOffsets.top)+"px";return;}}}var top=_aba-Math.round(_abc/2)-_ac3.top;top=_aba<(_ac2/2)?Math.max(top,-(_ac3.top-SimileAjax.Graphics._bubblePadding)):Math.min(top,_ac2+(_ac3.bottom-SimileAjax.Graphics._bubblePadding)-_ac5);if((_abd&&_abd=="left")||(!_abd&&(_ab9-SimileAjax.Graphics._bubblePointOffset-_ac4>0))){var _ada=document.createElement("div");_ada.style.left=(_ac3.left+_abb)+"px";_ada.style.top=(_aba-SimileAjax.Graphics._halfArrowWidth-top)+"px";_ac8(_ada,_ac7+"images/bubble-right-arrow.png",_ac3.right,37);_acf.appendChild(_ada);div.style.left=(_ab9-SimileAjax.Graphics._bubblePointOffset-_ac4+SimileAjax.Graphics._arrowOffsets.right)+"px";div.style.top=top+"px";}else{if((_abd&&_abd=="right")||(!_abd&&(_ab9-SimileAjax.Graphics._bubblePointOffset-_ac4<_ac1))){var _ada=document.createElement("div");_ada.style.left="0px";_ada.style.top=(_aba-SimileAjax.Graphics._halfArrowWidth-top)+"px";_ac8(_ada,_ac7+"images/bubble-left-arrow.png",_ac3.left,37);_acf.appendChild(_ada);div.style.left=(_ab9+SimileAjax.Graphics._bubblePointOffset-SimileAjax.Graphics._arrowOffsets.left)+"px";div.style.top=top+"px";}}})();document.body.appendChild(div);return _abf;};SimileAjax.Graphics.createMessageBubble=function(doc){var _add=doc.createElement("div");if(SimileAjax.Graphics.pngIsTranslucent){var _ade=doc.createElement("div");_ade.style.height="33px";_ade.style.background="url("+SimileAjax.urlPrefix+"images/message-top-left.png) top left no-repeat";_ade.style.paddingLeft="44px";_add.appendChild(_ade);var _adf=doc.createElement("div");_adf.style.height="33px";_adf.style.background="url("+SimileAjax.urlPrefix+"images/message-top-right.png) top right no-repeat";_ade.appendChild(_adf);var _ae0=doc.createElement("div");_ae0.style.background="url("+SimileAjax.urlPrefix+"images/message-left.png) top left repeat-y";_ae0.style.paddingLeft="44px";_add.appendChild(_ae0);var _ae1=doc.createElement("div");_ae1.style.background="url("+SimileAjax.urlPrefix+"images/message-right.png) top right repeat-y";_ae1.style.paddingRight="44px";_ae0.appendChild(_ae1);var _ae2=doc.createElement("div");_ae1.appendChild(_ae2);var _ae3=doc.createElement("div");_ae3.style.height="55px";_ae3.style.background="url("+SimileAjax.urlPrefix+"images/message-bottom-left.png) bottom left no-repeat";_ae3.style.paddingLeft="44px";_add.appendChild(_ae3);var _ae4=doc.createElement("div");_ae4.style.height="55px";_ae4.style.background="url("+SimileAjax.urlPrefix+"images/message-bottom-right.png) bottom right no-repeat";_ae3.appendChild(_ae4);}else{_add.style.border="2px solid #7777AA";_add.style.padding="20px";_add.style.background="white";SimileAjax.Graphics.setOpacity(_add,90);var _ae2=doc.createElement("div");_add.appendChild(_ae2);}return {containerDiv:_add,contentDiv:_ae2};};SimileAjax.Graphics.createAnimation=function(f,from,to,_ae8,cont){return new SimileAjax.Graphics._Animation(f,from,to,_ae8,cont);};SimileAjax.Graphics._Animation=function(f,from,to,_aed,cont){this.f=f;this.cont=(typeof cont=="function")?cont:function(){};this.from=from;this.to=to;this.current=from;this.duration=_aed;this.start=new Date().getTime();this.timePassed=0;};SimileAjax.Graphics._Animation.prototype.run=function(){var a=this;window.setTimeout(function(){a.step();},50);};SimileAjax.Graphics._Animation.prototype.step=function(){this.timePassed+=50;var _af0=this.timePassed/this.duration;var _af1=-Math.cos(_af0*Math.PI)/2+0.5;var _af2=_af1*(this.to-this.from)+this.from;try{this.f(_af2,_af2-this.current);}catch(e){}this.current=_af2;if(this.timePassed<this.duration){this.run();}else{this.f(this.to,0);this["cont"]();}};SimileAjax.Graphics.createStructuredDataCopyButton=function(_af3,_af4,_af5,_af6){var div=document.createElement("div");div.style.position="relative";div.style.display="inline";div.style.width=_af4+"px";div.style.height=_af5+"px";div.style.overflow="hidden";div.style.margin="2px";if(SimileAjax.Graphics.pngIsTranslucent){div.style.background="url("+_af3+") no-repeat";}else{div.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_af3+"', sizingMethod='image')";}var _af8;if(SimileAjax.Platform.browser.isIE){_af8="filter:alpha(opacity=0)";}else{_af8="opacity: 0";}div.innerHTML="<textarea rows='1' autocomplete='off' value='none' style='"+_af8+"' />";var _af9=div.firstChild;_af9.style.width=_af4+"px";_af9.style.height=_af5+"px";_af9.onmousedown=function(evt){evt=(evt)?evt:((event)?event:null);if(evt.button==2){_af9.value=_af6();_af9.select();}};return div;};SimileAjax.History={maxHistoryLength:10,historyFile:"__history__.html",enabled:true,_initialized:false,_listeners:new SimileAjax.ListenerQueue(),_actions:[],_baseIndex:0,_currentIndex:0,_plainDocumentTitle:document.title};SimileAjax.History.formatHistoryEntryTitle=function(_afb){return SimileAjax.History._plainDocumentTitle+" {"+_afb+"}";};SimileAjax.History.initialize=function(){if(SimileAjax.History._initialized){return;}if(SimileAjax.History.enabled){var _afc=document.createElement("iframe");_afc.id="simile-ajax-history";_afc.style.position="absolute";_afc.style.width="10px";_afc.style.height="10px";_afc.style.top="0px";_afc.style.left="0px";_afc.style.visibility="hidden";_afc.src=SimileAjax.History.historyFile+"?0";document.body.appendChild(_afc);SimileAjax.DOM.registerEvent(_afc,"load",SimileAjax.History._handleIFrameOnLoad);SimileAjax.History._iframe=_afc;}SimileAjax.History._initialized=true;};SimileAjax.History.addListener=function(_afd){SimileAjax.History.initialize();SimileAjax.History._listeners.add(_afd);};SimileAjax.History.removeListener=function(_afe){SimileAjax.History.initialize();SimileAjax.History._listeners.remove(_afe);};SimileAjax.History.addAction=function(_aff){SimileAjax.History.initialize();SimileAjax.History._listeners.fire("onBeforePerform",[_aff]);window.setTimeout(function(){try{_aff.perform();SimileAjax.History._listeners.fire("onAfterPerform",[_aff]);if(SimileAjax.History.enabled){SimileAjax.History._actions=SimileAjax.History._actions.slice(0,SimileAjax.History._currentIndex-SimileAjax.History._baseIndex);SimileAjax.History._actions.push(_aff);SimileAjax.History._currentIndex++;var diff=SimileAjax.History._actions.length-SimileAjax.History.maxHistoryLength;if(diff>0){SimileAjax.History._actions=SimileAjax.History._actions.slice(diff);SimileAjax.History._baseIndex+=diff;}try{SimileAjax.History._iframe.contentWindow.location.search="?"+SimileAjax.History._currentIndex;}catch(e){var _b01=SimileAjax.History.formatHistoryEntryTitle(_aff.label);document.title=_b01;}}}catch(e){SimileAjax.Debug.exception(e,"Error adding action {"+_aff.label+"} to history");}},0);};SimileAjax.History.addLengthyAction=function(_b02,undo,_b04){SimileAjax.History.addAction({perform:_b02,undo:undo,label:_b04,uiLayer:SimileAjax.WindowManager.getBaseLayer(),lengthy:true});};SimileAjax.History._handleIFrameOnLoad=function(){try{var q=SimileAjax.History._iframe.contentWindow.location.search;var c=(q.length==0)?0:Math.max(0,parseInt(q.substr(1)));var _b07=function(){var diff=c-SimileAjax.History._currentIndex;SimileAjax.History._currentIndex+=diff;SimileAjax.History._baseIndex+=diff;SimileAjax.History._iframe.contentWindow.location.search="?"+c;};if(c<SimileAjax.History._currentIndex){SimileAjax.History._listeners.fire("onBeforeUndoSeveral",[]);window.setTimeout(function(){while(SimileAjax.History._currentIndex>c&&SimileAjax.History._currentIndex>SimileAjax.History._baseIndex){SimileAjax.History._currentIndex--;var _b09=SimileAjax.History._actions[SimileAjax.History._currentIndex-SimileAjax.History._baseIndex];try{_b09.undo();}catch(e){SimileAjax.Debug.exception(e,"History: Failed to undo action {"+_b09.label+"}");}}SimileAjax.History._listeners.fire("onAfterUndoSeveral",[]);_b07();},0);}else{if(c>SimileAjax.History._currentIndex){SimileAjax.History._listeners.fire("onBeforeRedoSeveral",[]);window.setTimeout(function(){while(SimileAjax.History._currentIndex<c&&SimileAjax.History._currentIndex-SimileAjax.History._baseIndex<SimileAjax.History._actions.length){var _b0a=SimileAjax.History._actions[SimileAjax.History._currentIndex-SimileAjax.History._baseIndex];try{_b0a.perform();}catch(e){SimileAjax.Debug.exception(e,"History: Failed to redo action {"+_b0a.label+"}");}SimileAjax.History._currentIndex++;}SimileAjax.History._listeners.fire("onAfterRedoSeveral",[]);_b07();},0);}else{var _b0b=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex-1;var _b0c=(_b0b>=0&&_b0b<SimileAjax.History._actions.length)?SimileAjax.History.formatHistoryEntryTitle(SimileAjax.History._actions[_b0b].label):SimileAjax.History._plainDocumentTitle;SimileAjax.History._iframe.contentWindow.document.title=_b0c;document.title=_b0c;}}}catch(e){}};SimileAjax.History.getNextUndoAction=function(){try{var _b0d=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex-1;return SimileAjax.History._actions[_b0d];}catch(e){return null;}};SimileAjax.History.getNextRedoAction=function(){try{var _b0e=SimileAjax.History._currentIndex-SimileAjax.History._baseIndex;return SimileAjax.History._actions[_b0e];}catch(e){return null;}};SimileAjax.HTML=new Object();SimileAjax.HTML._e2uHash={};(function(){e2uHash=SimileAjax.HTML._e2uHash;e2uHash["nbsp"]=" [space]";e2uHash["iexcl"]="¡";e2uHash["cent"]="¢";e2uHash["pound"]="£";e2uHash["curren"]="¤";e2uHash["yen"]="¥";e2uHash["brvbar"]="¦";e2uHash["sect"]="§";e2uHash["uml"]="¨";e2uHash["copy"]="©";e2uHash["ordf"]="ª";e2uHash["laquo"]="«";e2uHash["not"]="¬";e2uHash["shy"]="­";e2uHash["reg"]="®";e2uHash["macr"]="¯";e2uHash["deg"]="°";e2uHash["plusmn"]="±";e2uHash["sup2"]="²";e2uHash["sup3"]="³";e2uHash["acute"]="´";e2uHash["micro"]="µ";e2uHash["para"]="¶";e2uHash["middot"]="·";e2uHash["cedil"]="¸";e2uHash["sup1"]="¹";e2uHash["ordm"]="º";e2uHash["raquo"]="»";e2uHash["frac14"]="¼";e2uHash["frac12"]="½";e2uHash["frac34"]="¾";e2uHash["iquest"]="¿";e2uHash["Agrave"]="À";e2uHash["Aacute"]="Á";e2uHash["Acirc"]="Â";e2uHash["Atilde"]="Ã";e2uHash["Auml"]="Ä";e2uHash["Aring"]="Å";e2uHash["AElig"]="Æ";e2uHash["Ccedil"]="Ç";e2uHash["Egrave"]="È";e2uHash["Eacute"]="É";e2uHash["Ecirc"]="Ê";e2uHash["Euml"]="Ë";e2uHash["Igrave"]="Ì";e2uHash["Iacute"]="Í";e2uHash["Icirc"]="Î";e2uHash["Iuml"]="Ï";e2uHash["ETH"]="Ð";e2uHash["Ntilde"]="Ñ";e2uHash["Ograve"]="Ò";e2uHash["Oacute"]="Ó";e2uHash["Ocirc"]="Ô";e2uHash["Otilde"]="Õ";e2uHash["Ouml"]="Ö";e2uHash["times"]="×";e2uHash["Oslash"]="Ø";e2uHash["Ugrave"]="Ù";e2uHash["Uacute"]="Ú";e2uHash["Ucirc"]="Û";e2uHash["Uuml"]="Ü";e2uHash["Yacute"]="Ý";e2uHash["THORN"]="Þ";e2uHash["szlig"]="ß";e2uHash["agrave"]="à";e2uHash["aacute"]="á";e2uHash["acirc"]="â";e2uHash["atilde"]="ã";e2uHash["auml"]="ä";e2uHash["aring"]="å";e2uHash["aelig"]="æ";e2uHash["ccedil"]="ç";e2uHash["egrave"]="è";e2uHash["eacute"]="é";e2uHash["ecirc"]="ê";e2uHash["euml"]="ë";e2uHash["igrave"]="ì";e2uHash["iacute"]="í";e2uHash["icirc"]="î";e2uHash["iuml"]="ï";e2uHash["eth"]="ð";e2uHash["ntilde"]="ñ";e2uHash["ograve"]="ò";e2uHash["oacute"]="ó";e2uHash["ocirc"]="ô";e2uHash["otilde"]="õ";e2uHash["ouml"]="ö";e2uHash["divide"]="÷";e2uHash["oslash"]="ø";e2uHash["ugrave"]="ù";e2uHash["uacute"]="ú";e2uHash["ucirc"]="û";e2uHash["uuml"]="ü";e2uHash["yacute"]="ý";e2uHash["thorn"]="þ";e2uHash["yuml"]="ÿ";e2uHash["quot"]="\"";e2uHash["amp"]="&";e2uHash["lt"]="<";e2uHash["gt"]=">";e2uHash["OElig"]="";e2uHash["oelig"]="œ";e2uHash["Scaron"]="Š";e2uHash["scaron"]="š";e2uHash["Yuml"]="Ÿ";e2uHash["circ"]="ˆ";e2uHash["tilde"]="˜";e2uHash["ensp"]=" ";e2uHash["emsp"]=" ";e2uHash["thinsp"]=" ";e2uHash["zwnj"]="‌";e2uHash["zwj"]="‍";e2uHash["lrm"]="‎";e2uHash["rlm"]="‏";e2uHash["ndash"]="–";e2uHash["mdash"]="—";e2uHash["lsquo"]="‘";e2uHash["rsquo"]="’";e2uHash["sbquo"]="‚";e2uHash["ldquo"]="“";e2uHash["rdquo"]="”";e2uHash["bdquo"]="„";e2uHash["dagger"]="†";e2uHash["Dagger"]="‡";e2uHash["permil"]="‰";e2uHash["lsaquo"]="‹";e2uHash["rsaquo"]="›";e2uHash["euro"]="€";e2uHash["fnof"]="ƒ";e2uHash["Alpha"]="Α";e2uHash["Beta"]="Β";e2uHash["Gamma"]="Γ";e2uHash["Delta"]="Δ";e2uHash["Epsilon"]="Ε";e2uHash["Zeta"]="Ζ";e2uHash["Eta"]="Η";e2uHash["Theta"]="Θ";e2uHash["Iota"]="Ι";e2uHash["Kappa"]="Κ";e2uHash["Lambda"]="Λ";e2uHash["Mu"]="Μ";e2uHash["Nu"]="Ν";e2uHash["Xi"]="Ξ";e2uHash["Omicron"]="Ο";e2uHash["Pi"]="Π";e2uHash["Rho"]="Ρ";e2uHash["Sigma"]="Σ";e2uHash["Tau"]="Τ";e2uHash["Upsilon"]="Υ";e2uHash["Phi"]="Φ";e2uHash["Chi"]="Χ";e2uHash["Psi"]="Ψ";e2uHash["Omega"]="Ω";e2uHash["alpha"]="α";e2uHash["beta"]="β";e2uHash["gamma"]="γ";e2uHash["delta"]="δ";e2uHash["epsilon"]="ε";e2uHash["zeta"]="ζ";e2uHash["eta"]="η";e2uHash["theta"]="θ";e2uHash["iota"]="ι";e2uHash["kappa"]="κ";e2uHash["lambda"]="λ";e2uHash["mu"]="μ";e2uHash["nu"]="ν";e2uHash["xi"]="ξ";e2uHash["omicron"]="ο";e2uHash["pi"]="π";e2uHash["rho"]="ρ";e2uHash["sigmaf"]="ς";e2uHash["sigma"]="σ";e2uHash["tau"]="τ";e2uHash["upsilon"]="υ";e2uHash["phi"]="φ";e2uHash["chi"]="χ";e2uHash["psi"]="ψ";e2uHash["omega"]="ω";e2uHash["thetasym"]="ϑ";e2uHash["upsih"]="ϒ";e2uHash["piv"]="ϖ";e2uHash["bull"]="•";e2uHash["hellip"]="…";e2uHash["prime"]="′";e2uHash["Prime"]="″";e2uHash["oline"]="‾";e2uHash["frasl"]="⁄";e2uHash["weierp"]="℘";e2uHash["image"]="ℑ";e2uHash["real"]="ℜ";e2uHash["trade"]="™";e2uHash["alefsym"]="ℵ";e2uHash["larr"]="←";e2uHash["uarr"]="↑";e2uHash["rarr"]="→";e2uHash["darr"]="↓";e2uHash["harr"]="↔";e2uHash["crarr"]="↵";e2uHash["lArr"]="⇐";e2uHash["uArr"]="⇑";e2uHash["rArr"]="⇒";e2uHash["dArr"]="⇓";e2uHash["hArr"]="⇔";e2uHash["forall"]="∀";e2uHash["part"]="∂";e2uHash["exist"]="∃";e2uHash["empty"]="∅";e2uHash["nabla"]="∇";e2uHash["isin"]="∈";e2uHash["notin"]="∉";e2uHash["ni"]="∋";e2uHash["prod"]="∏";e2uHash["sum"]="∑";e2uHash["minus"]="−";e2uHash["lowast"]="∗";e2uHash["radic"]="√";e2uHash["prop"]="∝";e2uHash["infin"]="∞";e2uHash["ang"]="∠";e2uHash["and"]="∧";e2uHash["or"]="∨";e2uHash["cap"]="∩";e2uHash["cup"]="∪";e2uHash["int"]="∫";e2uHash["there4"]="∴";e2uHash["sim"]="∼";e2uHash["cong"]="≅";e2uHash["asymp"]="≈";e2uHash["ne"]="≠";e2uHash["equiv"]="≡";e2uHash["le"]="≤";e2uHash["ge"]="≥";e2uHash["sub"]="⊂";e2uHash["sup"]="⊃";e2uHash["nsub"]="⊄";e2uHash["sube"]="⊆";e2uHash["supe"]="⊇";e2uHash["oplus"]="⊕";e2uHash["otimes"]="⊗";e2uHash["perp"]="⊥";e2uHash["sdot"]="⋅";e2uHash["lceil"]="⌈";e2uHash["rceil"]="⌉";e2uHash["lfloor"]="⌊";e2uHash["rfloor"]="⌋";e2uHash["lang"]="〈";e2uHash["rang"]="〉";e2uHash["loz"]="◊";e2uHash["spades"]="♠";e2uHash["clubs"]="♣";e2uHash["hearts"]="♥";e2uHash["diams"]="♦";})();SimileAjax.HTML.deEntify=function(s){e2uHash=SimileAjax.HTML._e2uHash;var re=/&(\w+?);/;while(re.test(s)){var m=s.match(re);s=s.replace(re,e2uHash[m[1]]);}return s;};eval(function(p,a,c,k,e,r){e=function(c){return (c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36));};if(!"".replace(/^/,String)){while(c--){r[e(c)]=k[c]||e(c);}k=[function(e){return r[e];}];e=function(){return "\\w+";};c=1;}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c]);}}return p;}("7(1g 18.6==\"I\"){18.I=18.I;u 6=q(a,c){7(18==9||!9.3X)v 14 6(a,c);v 9.3X(a,c)};7(1g $!=\"I\")6.1I$=$;u $=6;6.11=6.8r={3X:q(a,c){a=a||P;7(6.16(a))v 14 6(P)[6.11.1G?\"1G\":\"1W\"](a);7(1g a==\"1s\"){u m=/^[^<]*(<(.|\\s)+>)[^>]*$/.1V(a);7(m)a=6.31([m[1]]);B v 14 6(c).1L(a)}v 9.4E(a.15==2b&&a||(a.3C||a.C&&a!=18&&!a.1q&&a[0]!=I&&a[0].1q)&&6.2L(a)||[a])},3C:\"1.1.3.1\",7W:q(){v 9.C},C:0,1M:q(a){v a==I?6.2L(9):9[a]},1Z:q(a){u b=6(a);b.5q=9;v b},4E:q(a){9.C=0;[].R.O(9,a);v 9},F:q(a,b){v 6.F(9,a,b)},2p:q(a){u b=-1;9.F(q(i){7(9==a)b=i});v b},1b:q(f,d,e){u c=f;7(f.15==33)7(d==I)v 9.C&&6[e||\"1b\"](9[0],f)||I;B{c={};c[f]=d}v 9.F(q(a){E(u b V c)6.1b(e?9.T:9,b,6.4H(9,c[b],e,a,b))})},1f:q(b,a){v 9.1b(b,a,\"2z\")},2A:q(e){7(1g e==\"1s\")v 9.2Y().3e(P.66(e));u t=\"\";6.F(e||9,q(){6.F(9.2S,q(){7(9.1q!=8)t+=9.1q!=1?9.5R:6.11.2A([9])})});v t},8b:q(){u a,1S=19;v 9.F(q(){7(!a)a=6.31(1S,9.2O);u b=a[0].3s(K);9.L.2K(b,9);1v(b.1d)b=b.1d;b.4g(9)})},3e:q(){v 9.2F(19,K,1,q(a){9.4g(a)})},5w:q(){v 9.2F(19,K,-1,q(a){9.2K(a,9.1d)})},5t:q(){v 9.2F(19,N,1,q(a){9.L.2K(a,9)})},5s:q(){v 9.2F(19,N,-1,q(a){9.L.2K(a,9.1X)})},2U:q(){v 9.5q||6([])},1L:q(t){u b=6.3k(9,q(a){v 6.1L(t,a)});v 9.1Z(/[^+>] [^+>]/.17(t)||t.J(\"..\")>-1?6.5g(b):b)},7x:q(e){u d=9.1A(9.1L(\"*\"));d.F(q(){9.1I$1a={};E(u a V 9.$1a)9.1I$1a[a]=6.1c({},9.$1a[a])}).3U();u r=9.1Z(6.3k(9,q(a){v a.3s(e!=I?e:K)}));d.F(q(){u b=9.1I$1a;E(u a V b)E(u c V b[a])6.S.1A(9,a,b[a][c],b[a][c].W);9.1I$1a=H});v r},1i:q(t){v 9.1Z(6.16(t)&&6.2s(9,q(b,a){v t.O(b,[a])})||6.2x(t,9))},4Y:q(t){v 9.1Z(t.15==33&&6.2x(t,9,K)||6.2s(9,q(a){v(t.15==2b||t.3C)?6.2w(a,t)<0:a!=t}))},1A:q(t){v 9.1Z(6.1T(9.1M(),t.15==33?6(t).1M():t.C!=I&&(!t.Q||t.Q==\"6Z\")?t:[t]))},37:q(a){v a?6.2x(a,9).C>0:N},6R:q(a){v a==I?(9.C?9[0].2v:H):9.1b(\"2v\",a)},3F:q(a){v a==I?(9.C?9[0].27:H):9.2Y().3e(a)},2F:q(f,d,g,e){u c=9.C>1,a;v 9.F(q(){7(!a){a=6.31(f,9.2O);7(g<0)a.6E()}u b=9;7(d&&6.Q(9,\"1r\")&&6.Q(a[0],\"2V\"))b=9.3R(\"1z\")[0]||9.4g(P.5h(\"1z\"));6.F(a,q(){e.O(b,[c?9.3s(K):9])})})}};6.1c=6.11.1c=q(){u c=19[0],a=1;7(19.C==1){c=9;a=0}u b;1v((b=19[a++])!=H)E(u i V b)c[i]=b[i];v c};6.1c({6n:q(){7(6.1I$)$=6.1I$;v 6},16:q(a){v!!a&&1g a!=\"1s\"&&!a.Q&&a.15!=2b&&/q/i.17(a+\"\")},40:q(a){v a.4z&&a.2O&&!a.2O.4y},Q:q(b,a){v b.Q&&b.Q.1D()==a.1D()},F:q(a,b,c){7(a.C==I)E(u i V a)b.O(a[i],c||[i,a[i]]);B E(u i=0,4x=a.C;i<4x;i++)7(b.O(a[i],c||[i,a[i]])===N)1F;v a},4H:q(c,b,d,e,a){7(6.16(b))b=b.3D(c,[e]);u f=/z-?2p|5Y-?8p|1e|5U|8i-?1u/i;v b&&b.15==3y&&d==\"2z\"&&!f.17(a)?b+\"4o\":b},12:{1A:q(b,c){6.F(c.2R(/\\s+/),q(i,a){7(!6.12.3w(b.12,a))b.12+=(b.12?\" \":\"\")+a})},1E:q(b,c){b.12=c!=I?6.2s(b.12.2R(/\\s+/),q(a){v!6.12.3w(c,a)}).5M(\" \"):\"\"},3w:q(t,c){v 6.2w(c,(t.12||t).3v().2R(/\\s+/))>-1}},4m:q(e,o,f){E(u i V o){e.T[\"2N\"+i]=e.T[i];e.T[i]=o[i]}f.O(e,[]);E(u i V o)e.T[i]=e.T[\"2N\"+i]},1f:q(e,p){7(p==\"1u\"||p==\"29\"){u b={},3r,3p,d=[\"83\",\"81\",\"80\",\"7Y\"];6.F(d,q(){b[\"7V\"+9]=0;b[\"7T\"+9+\"7S\"]=0});6.4m(e,b,q(){7(6(e).37(':4f')){3r=e.7Q;3p=e.7O}B{e=6(e.3s(K)).1L(\":4b\").5v(\"2B\").2U().1f({48:\"1y\",3i:\"7L\",U:\"2h\",7K:\"0\",7I:\"0\"}).5o(e.L)[0];u a=6.1f(e.L,\"3i\")||\"3n\";7(a==\"3n\")e.L.T.3i=\"7G\";3r=e.7E;3p=e.7D;7(a==\"3n\")e.L.T.3i=\"3n\";e.L.3q(e)}});v p==\"1u\"?3r:3p}v 6.2z(e,p)},2z:q(e,a,d){u g;7(a==\"1e\"&&6.M.1h){g=6.1b(e.T,\"1e\");v g==\"\"?\"1\":g}7(a.3t(/3x/i))a=6.1U;7(!d&&e.T[a])g=e.T[a];B 7(P.3f&&P.3f.3Y){7(a.3t(/3x/i))a=\"3x\";a=a.1o(/([A-Z])/g,\"-$1\").2H();u b=P.3f.3Y(e,H);7(b)g=b.57(a);B 7(a==\"U\")g=\"1P\";B 6.4m(e,{U:\"2h\"},q(){u c=P.3f.3Y(9,\"\");g=c&&c.57(a)||\"\"})}B 7(e.3S){u f=a.1o(/\\-(\\w)/g,q(m,c){v c.1D()});g=e.3S[a]||e.3S[f]}v g},31:q(a,c){u r=[];c=c||P;6.F(a,q(i,b){7(!b)v;7(b.15==3y)b=b.3v();7(1g b==\"1s\"){u s=6.2C(b).2H(),1x=c.5h(\"1x\"),1N=[];u a=!s.J(\"<1H\")&&[1,\"<2y>\",\"</2y>\"]||!s.J(\"<7g\")&&[1,\"<52>\",\"</52>\"]||(!s.J(\"<7c\")||!s.J(\"<1z\")||!s.J(\"<7a\")||!s.J(\"<78\"))&&[1,\"<1r>\",\"</1r>\"]||!s.J(\"<2V\")&&[2,\"<1r><1z>\",\"</1z></1r>\"]||(!s.J(\"<75\")||!s.J(\"<74\"))&&[3,\"<1r><1z><2V>\",\"</2V></1z></1r>\"]||!s.J(\"<73\")&&[2,\"<1r><4W>\",\"</4W></1r>\"]||[0,\"\",\"\"];1x.27=a[1]+b+a[2];1v(a[0]--)1x=1x.1d;7(6.M.1h){7(!s.J(\"<1r\")&&s.J(\"<1z\")<0)1N=1x.1d&&1x.1d.2S;B 7(a[1]==\"<1r>\"&&s.J(\"<1z\")<0)1N=1x.2S;E(u n=1N.C-1;n>=0;--n)7(6.Q(1N[n],\"1z\")&&!1N[n].2S.C)1N[n].L.3q(1N[n])}b=6.2L(1x.2S)}7(0===b.C&&(!6.Q(b,\"34\")&&!6.Q(b,\"2y\")))v;7(b[0]==I||6.Q(b,\"34\")||b.71)r.R(b);B r=6.1T(r,b)});v r},1b:q(c,d,a){u e=6.40(c)?{}:6.3H;7(e[d]){7(a!=I)c[e[d]]=a;v c[e[d]]}B 7(a==I&&6.M.1h&&6.Q(c,\"34\")&&(d==\"70\"||d==\"6Y\"))v c.6W(d).5R;B 7(c.4z){7(a!=I)c.6U(d,a);7(6.M.1h&&/4M|2u/.17(d)&&!6.40(c))v c.35(d,2);v c.35(d)}B{7(d==\"1e\"&&6.M.1h){7(a!=I){c.5U=1;c.1i=(c.1i||\"\").1o(/4L\\([^)]*\\)/,\"\")+(39(a).3v()==\"6M\"?\"\":\"4L(1e=\"+a*4X+\")\")}v c.1i?(39(c.1i.3t(/1e=([^)]*)/)[1])/4X).3v():\"\"}d=d.1o(/-([a-z])/6K,q(z,b){v b.1D()});7(a!=I)c[d]=a;v c[d]}},2C:q(t){v t.1o(/^\\s+|\\s+$/g,\"\")},2L:q(a){u r=[];7(1g a!=\"6I\")E(u i=0,26=a.C;i<26;i++)r.R(a[i]);B r=a.51(0);v r},2w:q(b,a){E(u i=0,26=a.C;i<26;i++)7(a[i]==b)v i;v-1},1T:q(a,b){E(u i=0;b[i];i++)a.R(b[i]);v a},5g:q(a){u r=[],3P=6.1k++;E(u i=0,4G=a.C;i<4G;i++)7(3P!=a[i].1k){a[i].1k=3P;r.R(a[i])}v r},1k:0,2s:q(c,b,d){7(1g b==\"1s\")b=14 45(\"a\",\"i\",\"v \"+b);u a=[];E(u i=0,30=c.C;i<30;i++)7(!d&&b(c[i],i)||d&&!b(c[i],i))a.R(c[i]);v a},3k:q(c,b){7(1g b==\"1s\")b=14 45(\"a\",\"v \"+b);u d=[];E(u i=0,30=c.C;i<30;i++){u a=b(c[i],i);7(a!==H&&a!=I){7(a.15!=2b)a=[a];d=d.6v(a)}}v d}});14 q(){u b=6u.6t.2H();6.M={4D:(b.3t(/.+(?:6s|6q|6o|6m)[\\/: ]([\\d.]+)/)||[])[1],20:/5l/.17(b),2a:/2a/.17(b),1h:/1h/.17(b)&&!/2a/.17(b),3j:/3j/.17(b)&&!/(6h|5l)/.17(b)};6.6g=!6.M.1h||P.6f==\"6c\";6.1U=6.M.1h?\"1U\":\"5x\",6.3H={\"E\":\"68\",\"67\":\"12\",\"3x\":6.1U,5x:6.1U,1U:6.1U,27:\"27\",12:\"12\",2v:\"2v\",2r:\"2r\",2B:\"2B\",65:\"63\",2T:\"2T\",62:\"5Z\"}};6.F({4v:\"a.L\",4p:\"6.4p(a)\",8o:\"6.22(a,2,'1X')\",8n:\"6.22(a,2,'4t')\",8k:\"6.4q(a.L.1d,a)\",8h:\"6.4q(a.1d)\"},q(i,n){6.11[i]=q(a){u b=6.3k(9,n);7(a&&1g a==\"1s\")b=6.2x(a,b);v 9.1Z(b)}});6.F({5o:\"3e\",8g:\"5w\",2K:\"5t\",8f:\"5s\"},q(i,n){6.11[i]=q(){u a=19;v 9.F(q(){E(u j=0,26=a.C;j<26;j++)6(a[j])[n](9)})}});6.F({5v:q(a){6.1b(9,a,\"\");9.8d(a)},8c:q(c){6.12.1A(9,c)},88:q(c){6.12.1E(9,c)},87:q(c){6.12[6.12.3w(9,c)?\"1E\":\"1A\"](9,c)},1E:q(a){7(!a||6.1i(a,[9]).r.C)9.L.3q(9)},2Y:q(){1v(9.1d)9.3q(9.1d)}},q(i,n){6.11[i]=q(){v 9.F(n,19)}});6.F([\"5Q\",\"5P\",\"5O\",\"5N\"],q(i,n){6.11[n]=q(a,b){v 9.1i(\":\"+n+\"(\"+a+\")\",b)}});6.F([\"1u\",\"29\"],q(i,n){6.11[n]=q(h){v h==I?(9.C?6.1f(9[0],n):H):9.1f(n,h.15==33?h:h+\"4o\")}});6.1c({4n:{\"\":\"m[2]=='*'||6.Q(a,m[2])\",\"#\":\"a.35('2m')==m[2]\",\":\":{5P:\"i<m[3]-0\",5O:\"i>m[3]-0\",22:\"m[3]-0==i\",5Q:\"m[3]-0==i\",2Q:\"i==0\",2P:\"i==r.C-1\",5L:\"i%2==0\",5K:\"i%2\",\"2Q-3u\":\"a.L.3R('*')[0]==a\",\"2P-3u\":\"6.22(a.L.5J,1,'4t')==a\",\"86-3u\":\"!6.22(a.L.5J,2,'4t')\",4v:\"a.1d\",2Y:\"!a.1d\",5N:\"(a.5H||a.85||'').J(m[3])>=0\",4f:'\"1y\"!=a.G&&6.1f(a,\"U\")!=\"1P\"&&6.1f(a,\"48\")!=\"1y\"',1y:'\"1y\"==a.G||6.1f(a,\"U\")==\"1P\"||6.1f(a,\"48\")==\"1y\"',84:\"!a.2r\",2r:\"a.2r\",2B:\"a.2B\",2T:\"a.2T||6.1b(a,'2T')\",2A:\"'2A'==a.G\",4b:\"'4b'==a.G\",5F:\"'5F'==a.G\",4l:\"'4l'==a.G\",5E:\"'5E'==a.G\",4k:\"'4k'==a.G\",5D:\"'5D'==a.G\",5C:\"'5C'==a.G\",1J:'\"1J\"==a.G||6.Q(a,\"1J\")',5B:\"/5B|2y|82|1J/i.17(a.Q)\"},\"[\":\"6.1L(m[2],a).C\"},5A:[/^\\[ *(@)([\\w-]+) *([!*$^~=]*) *('?\"?)(.*?)\\4 *\\]/,/^(\\[)\\s*(.*?(\\[.*?\\])?[^[]*?)\\s*\\]/,/^(:)([\\w-]+)\\(\"?'?(.*?(\\(.*?\\))?[^(]*?)\"?'?\\)/,14 3o(\"^([:.#]*)(\"+(6.2J=6.M.20&&6.M.4D<\"3.0.0\"?\"\\\\w\":\"(?:[\\\\w\\7Z-\\7X*1I-]|\\\\\\\\.)\")+\"+)\")],2x:q(a,c,b){u d,1K=[];1v(a&&a!=d){d=a;u f=6.1i(a,c,b);a=f.t.1o(/^\\s*,\\s*/,\"\");1K=b?c=f.r:6.1T(1K,f.r)}v 1K},1L:q(t,l){7(1g t!=\"1s\")v[t];7(l&&!l.1q)l=H;l=l||P;7(!t.J(\"//\")){l=l.4h;t=t.2G(2,t.C)}B 7(!t.J(\"/\")&&!l.2O){l=l.4h;t=t.2G(1,t.C);7(t.J(\"/\")>=1)t=t.2G(t.J(\"/\"),t.C)}u b=[l],2j=[],2P;1v(t&&2P!=t){u r=[];2P=t;t=6.2C(t).1o(/^\\/\\//,\"\");u k=N;u g=14 3o(\"^[/>]\\\\s*(\"+6.2J+\"+)\");u m=g.1V(t);7(m){u o=m[1].1D();E(u i=0;b[i];i++)E(u c=b[i].1d;c;c=c.1X)7(c.1q==1&&(o==\"*\"||c.Q.1D()==o.1D()))r.R(c);b=r;t=t.1o(g,\"\");7(t.J(\" \")==0)7R;k=K}B{g=/^((\\/?\\.\\.)|([>\\/+~]))\\s*([a-z]*)/i;7((m=g.1V(t))!=H){r=[];u o=m[4],1k=6.1k++;m=m[1];E(u j=0,2e=b.C;j<2e;j++)7(m.J(\"..\")<0){u n=m==\"~\"||m==\"+\"?b[j].1X:b[j].1d;E(;n;n=n.1X)7(n.1q==1){7(m==\"~\"&&n.1k==1k)1F;7(!o||n.Q.1D()==o.1D()){7(m==\"~\")n.1k=1k;r.R(n)}7(m==\"+\")1F}}B r.R(b[j].L);b=r;t=6.2C(t.1o(g,\"\"));k=K}}7(t&&!k){7(!t.J(\",\")){7(l==b[0])b.4e();2j=6.1T(2j,b);r=b=[l];t=\" \"+t.2G(1,t.C)}B{u h=14 3o(\"^(\"+6.2J+\"+)(#)(\"+6.2J+\"+)\");u m=h.1V(t);7(m){m=[0,m[2],m[3],m[1]]}B{h=14 3o(\"^([#.]?)(\"+6.2J+\"*)\");m=h.1V(t)}m[2]=m[2].1o(/\\\\/g,\"\");u f=b[b.C-1];7(m[1]==\"#\"&&f&&f.4d){u p=f.4d(m[2]);7((6.M.1h||6.M.2a)&&p&&1g p.2m==\"1s\"&&p.2m!=m[2])p=6('[@2m=\"'+m[2]+'\"]',f)[0];b=r=p&&(!m[3]||6.Q(p,m[3]))?[p]:[]}B{E(u i=0;b[i];i++){u a=m[1]!=\"\"||m[0]==\"\"?\"*\":m[2];7(a==\"*\"&&b[i].Q.2H()==\"7P\")a=\"2E\";r=6.1T(r,b[i].3R(a))}7(m[1]==\".\")r=6.4c(r,m[2]);7(m[1]==\"#\"){u e=[];E(u i=0;r[i];i++)7(r[i].35(\"2m\")==m[2]){e=[r[i]];1F}r=e}b=r}t=t.1o(h,\"\")}}7(t){u d=6.1i(t,r);b=r=d.r;t=6.2C(d.t)}}7(t)b=[];7(b&&l==b[0])b.4e();2j=6.1T(2j,b);v 2j},4c:q(r,m,a){m=\" \"+m+\" \";u b=[];E(u i=0;r[i];i++){u c=(\" \"+r[i].12+\" \").J(m)>=0;7(!a&&c||a&&!c)b.R(r[i])}v b},1i:q(t,r,h){u d;1v(t&&t!=d){d=t;u p=6.5A,m;E(u i=0;p[i];i++){m=p[i].1V(t);7(m){t=t.7N(m[0].C);m[2]=m[2].1o(/\\\\/g,\"\");1F}}7(!m)1F;7(m[1]==\":\"&&m[2]==\"4Y\")r=6.1i(m[3],r,K).r;B 7(m[1]==\".\")r=6.4c(r,m[2],h);B 7(m[1]==\"@\"){u g=[],G=m[3];E(u i=0,2e=r.C;i<2e;i++){u a=r[i],z=a[6.3H[m[2]]||m[2]];7(z==H||/4M|2u/.17(m[2]))z=6.1b(a,m[2])||'';7((G==\"\"&&!!z||G==\"=\"&&z==m[5]||G==\"!=\"&&z!=m[5]||G==\"^=\"&&z&&!z.J(m[5])||G==\"$=\"&&z.2G(z.C-m[5].C)==m[5]||(G==\"*=\"||G==\"~=\")&&z.J(m[5])>=0)^h)g.R(a)}r=g}B 7(m[1]==\":\"&&m[2]==\"22-3u\"){u e=6.1k++,g=[],17=/(\\d*)n\\+?(\\d*)/.1V(m[3]==\"5L\"&&\"2n\"||m[3]==\"5K\"&&\"2n+1\"||!/\\D/.17(m[3])&&\"n+\"+m[3]||m[3]),2Q=(17[1]||1)-0,d=17[2]-0;E(u i=0,2e=r.C;i<2e;i++){u j=r[i],L=j.L;7(e!=L.1k){u c=1;E(u n=L.1d;n;n=n.1X)7(n.1q==1)n.4a=c++;L.1k=e}u b=N;7(2Q==1){7(d==0||j.4a==d)b=K}B 7((j.4a+d)%2Q==0)b=K;7(b^h)g.R(j)}r=g}B{u f=6.4n[m[1]];7(1g f!=\"1s\")f=6.4n[m[1]][m[2]];49(\"f = q(a,i){v \"+f+\"}\");r=6.2s(r,f,h)}}v{r:r,t:t}},4p:q(c){u b=[];u a=c.L;1v(a&&a!=P){b.R(a);a=a.L}v b},22:q(a,e,c,b){e=e||1;u d=0;E(;a;a=a[c])7(a.1q==1&&++d==e)1F;v a},4q:q(n,a){u r=[];E(;n;n=n.1X){7(n.1q==1&&(!a||n!=a))r.R(n)}v r}});6.S={1A:q(d,e,c,b){7(6.M.1h&&d.3m!=I)d=18;7(!c.1Q)c.1Q=9.1Q++;7(b!=I){u f=c;c=q(){v f.O(9,19)};c.W=b;c.1Q=f.1Q}7(!d.$1a)d.$1a={};7(!d.$1p)d.$1p=q(){u a;7(1g 6==\"I\"||6.S.47)v a;a=6.S.1p.O(d,19);v a};u g=d.$1a[e];7(!g){g=d.$1a[e]={};7(d.46)d.46(e,d.$1p,N);B d.7M(\"5r\"+e,d.$1p)}g[c.1Q]=c;7(!9.Y[e])9.Y[e]=[];7(6.2w(d,9.Y[e])==-1)9.Y[e].R(d)},1Q:1,Y:{},1E:q(b,c,a){u d=b.$1a,1Y,2p;7(d){7(c&&c.G){a=c.44;c=c.G}7(!c){E(c V d)9.1E(b,c)}B 7(d[c]){7(a)3l d[c][a.1Q];B E(a V b.$1a[c])3l d[c][a];E(1Y V d[c])1F;7(!1Y){7(b.43)b.43(c,b.$1p,N);B b.7J(\"5r\"+c,b.$1p);1Y=H;3l d[c];1v(9.Y[c]&&((2p=6.2w(b,9.Y[c]))>=0))3l 9.Y[c][2p]}}E(1Y V d)1F;7(!1Y)b.$1p=b.$1a=H}},1t:q(c,b,d){b=6.2L(b||[]);7(!d)6.F(9.Y[c]||[],q(){6.S.1t(c,b,9)});B{u a,1Y,11=6.16(d[c]||H);b.5p(9.42({G:c,1O:d}));7(6.16(d.$1p)&&(a=d.$1p.O(d,b))!==N)9.47=K;7(11&&a!==N&&!6.Q(d,'a'))d[c]();9.47=N}},1p:q(b){u a;b=6.S.42(b||18.S||{});u c=9.$1a&&9.$1a[b.G],1S=[].51.3D(19,1);1S.5p(b);E(u j V c){1S[0].44=c[j];1S[0].W=c[j].W;7(c[j].O(9,1S)===N){b.2d();b.2D();a=N}}7(6.M.1h)b.1O=b.2d=b.2D=b.44=b.W=H;v a},42:q(c){u a=c;c=6.1c({},a);c.2d=q(){7(a.2d)v a.2d();a.7H=N};c.2D=q(){7(a.2D)v a.2D();a.7F=K};7(!c.1O&&c.5n)c.1O=c.5n;7(6.M.20&&c.1O.1q==3)c.1O=a.1O.L;7(!c.41&&c.4j)c.41=c.4j==c.1O?c.7C:c.4j;7(c.5k==H&&c.5j!=H){u e=P.4h,b=P.4y;c.5k=c.5j+(e&&e.5i||b.5i);c.7z=c.7y+(e&&e.5f||b.5f)}7(!c.3h&&(c.5e||c.5d))c.3h=c.5e||c.5d;7(!c.5c&&c.5b)c.5c=c.5b;7(!c.3h&&c.1J)c.3h=(c.1J&1?1:(c.1J&2?3:(c.1J&4?2:0)));v c}};6.11.1c({3g:q(c,a,b){v c==\"3z\"?9.3Z(c,a,b):9.F(q(){6.S.1A(9,c,b||a,b&&a)})},3Z:q(d,b,c){v 9.F(q(){6.S.1A(9,d,q(a){6(9).3U(a);v(c||b).O(9,19)},c&&b)})},3U:q(a,b){v 9.F(q(){6.S.1E(9,a,b)})},1t:q(a,b){v 9.F(q(){6.S.1t(a,b,9)})},1R:q(){u a=19;v 9.5a(q(e){9.4u=0==9.4u?1:0;e.2d();v a[9.4u].O(9,[e])||N})},7w:q(f,g){q 3W(e){u p=e.41;1v(p&&p!=9)2g{p=p.L}25(e){p=9};7(p==9)v N;v(e.G==\"3V\"?f:g).O(9,[e])}v 9.3V(3W).59(3W)},1G:q(f){7(6.3d)f.O(P,[6]);B 6.2q.R(q(){v f.O(9,[6])});v 9}});6.1c({3d:N,2q:[],1G:q(){7(!6.3d){6.3d=K;7(6.2q){6.F(6.2q,q(){9.O(P)});6.2q=H}7(6.M.3j||6.M.2a)P.43(\"58\",6.1G,N);7(!18.7v.C)6(18).1W(q(){6(\"#3T\").1E()})}}});14 q(){6.F((\"7u,7t,1W,7s,7r,3z,5a,7q,\"+\"7p,7o,7n,3V,59,7m,2y,\"+\"4k,7l,7k,7j,2c\").2R(\",\"),q(i,o){6.11[o]=q(f){v f?9.3g(o,f):9.1t(o)}});7(6.M.3j||6.M.2a)P.46(\"58\",6.1G,N);B 7(6.M.1h){P.7i(\"<7h\"+\"7f 2m=3T 7e=K \"+\"2u=//:><\\/3b>\");u a=P.4d(\"3T\");7(a)a.7d=q(){7(9.3a!=\"1n\")v;6.1G()};a=H}B 7(6.M.20)6.3N=3m(q(){7(P.3a==\"79\"||P.3a==\"1n\"){3M(6.3N);6.3N=H;6.1G()}},10);6.S.1A(18,\"1W\",6.1G)};7(6.M.1h)6(18).3Z(\"3z\",q(){u a=6.S.Y;E(u b V a){u c=a[b],i=c.C;7(i&&b!='3z')77 c[i-1]&&6.S.1E(c[i-1],b);1v(--i)}});6.11.1c({76:q(c,b,a){9.1W(c,b,a,1)},1W:q(g,d,c,e){7(6.16(g))v 9.3g(\"1W\",g);c=c||q(){};u f=\"3K\";7(d)7(6.16(d)){c=d;d=H}B{d=6.2E(d);f=\"50\"}u h=9;6.2Z({1C:g,G:f,W:d,2t:e,1n:q(a,b){7(b==\"28\"||!e&&b==\"4V\")h.1b(\"27\",a.3c).3J().F(c,[a.3c,b,a]);B c.O(h,[a.3c,b,a])}});v 9},72:q(){v 6.2E(9)},3J:q(){v 9.1L(\"3b\").F(q(){7(9.2u)6.4U(9.2u);B 6.3I(9.2A||9.5H||9.27||\"\")}).2U()}});6.F(\"4T,4I,4S,4R,4Q,4P\".2R(\",\"),q(i,o){6.11[o]=q(f){v 9.3g(o,f)}});6.1c({1M:q(e,c,a,d,b){7(6.16(c)){a=c;c=H}v 6.2Z({G:\"3K\",1C:e,W:c,28:a,3G:d,2t:b})},6X:q(d,b,a,c){v 6.1M(d,b,a,c,1)},4U:q(b,a){v 6.1M(b,H,a,\"3b\")},6V:q(c,b,a){v 6.1M(c,b,a,\"4N\")},6T:q(d,b,a,c){7(6.16(b)){a=b;b={}}v 6.2Z({G:\"50\",1C:d,W:b,28:a,3G:c})},6S:q(a){6.36.21=a},6Q:q(a){6.1c(6.36,a)},36:{Y:K,G:\"3K\",21:0,4O:\"6P/x-6O-34-6N\",4K:K,38:K,W:H},32:{},2Z:q(s){s=6.1c({},6.36,s);7(s.W){7(s.4K&&1g s.W!=\"1s\")s.W=6.2E(s.W);7(s.G.2H()==\"1M\"){s.1C+=((s.1C.J(\"?\")>-1)?\"&\":\"?\")+s.W;s.W=H}}7(s.Y&&!6.3L++)6.S.1t(\"4T\");u f=N;u h=18.4Z?14 4Z(\"6L.6J\"):14 4J();h.7b(s.G,s.1C,s.38);7(s.W)h.3Q(\"6H-6G\",s.4O);7(s.2t)h.3Q(\"6F-3O-6D\",6.32[s.1C]||\"6C, 6B 6A 6z 4r:4r:4r 6y\");h.3Q(\"X-6x-6w\",\"4J\");7(s.56)s.56(h);7(s.Y)6.S.1t(\"4P\",[h,s]);u g=q(d){7(h&&(h.3a==4||d==\"21\")){f=K;7(i){3M(i);i=H}u c;2g{c=6.54(h)&&d!=\"21\"?s.2t&&6.4F(h,s.1C)?\"4V\":\"28\":\"2c\";7(c!=\"2c\"){u b;2g{b=h.3E(\"53-3O\")}25(e){}7(s.2t&&b)6.32[s.1C]=b;u a=6.55(h,s.3G);7(s.28)s.28(a,c);7(s.Y)6.S.1t(\"4Q\",[h,s])}B 6.2X(s,h,c)}25(e){c=\"2c\";6.2X(s,h,c,e)}7(s.Y)6.S.1t(\"4S\",[h,s]);7(s.Y&&!--6.3L)6.S.1t(\"4I\");7(s.1n)s.1n(h,c);7(s.38)h=H}};u i=3m(g,13);7(s.21>0)4C(q(){7(h){h.6r();7(!f)g(\"21\")}},s.21);2g{h.6p(s.W)}25(e){6.2X(s,h,H,e)}7(!s.38)g();v h},2X:q(s,a,b,e){7(s.2c)s.2c(a,b,e);7(s.Y)6.S.1t(\"4R\",[a,s,e])},3L:0,54:q(r){2g{v!r.23&&7A.7B==\"4l:\"||(r.23>=5u&&r.23<6l)||r.23==5m||6.M.20&&r.23==I}25(e){}v N},4F:q(a,c){2g{u b=a.3E(\"53-3O\");v a.23==5m||b==6.32[c]||6.M.20&&a.23==I}25(e){}v N},55:q(r,b){u c=r.3E(\"6k-G\");u a=!b&&c&&c.J(\"4B\")>=0;a=b==\"4B\"||a?r.6j:r.3c;7(b==\"3b\")6.3I(a);7(b==\"4N\")a=49(\"(\"+a+\")\");7(b==\"3F\")6(\"<1x>\").3F(a).3J();v a},2E:q(a){u s=[];7(a.15==2b||a.3C)6.F(a,q(){s.R(2l(9.6i)+\"=\"+2l(9.2v))});B E(u j V a)7(a[j]&&a[j].15==2b)6.F(a[j],q(){s.R(2l(j)+\"=\"+2l(9))});B s.R(2l(j)+\"=\"+2l(a[j]));v s.5M(\"&\")},3I:q(a){7(18.4A)18.4A(a);B 7(6.M.20)18.4C(a,0);B 49.3D(18,a)}});6.11.1c({1m:q(b,a){v b?9.1w({1u:\"1m\",29:\"1m\",1e:\"1m\"},b,a):9.1i(\":1y\").F(q(){9.T.U=9.2i?9.2i:\"\";7(6.1f(9,\"U\")==\"1P\")9.T.U=\"2h\"}).2U()},1j:q(b,a){v b?9.1w({1u:\"1j\",29:\"1j\",1e:\"1j\"},b,a):9.1i(\":4f\").F(q(){9.2i=9.2i||6.1f(9,\"U\");7(9.2i==\"1P\")9.2i=\"2h\";9.T.U=\"1P\"}).2U()},5G:6.11.1R,1R:q(a,b){v 6.16(a)&&6.16(b)?9.5G(a,b):a?9.1w({1u:\"1R\",29:\"1R\",1e:\"1R\"},a,b):9.F(q(){6(9)[6(9).37(\":1y\")?\"1m\":\"1j\"]()})},6e:q(b,a){v 9.1w({1u:\"1m\"},b,a)},6d:q(b,a){v 9.1w({1u:\"1j\"},b,a)},6b:q(b,a){v 9.1w({1u:\"1R\"},b,a)},6a:q(b,a){v 9.1w({1e:\"1m\"},b,a)},69:q(b,a){v 9.1w({1e:\"1j\"},b,a)},7U:q(c,a,b){v 9.1w({1e:a},c,b)},1w:q(d,h,f,g){v 9.1l(q(){u c=6(9).37(\":1y\"),1H=6.5z(h,f,g),5y=9;E(u p V d){7(d[p]==\"1j\"&&c||d[p]==\"1m\"&&!c)v 6.16(1H.1n)&&1H.1n.O(9);7(p==\"1u\"||p==\"29\"){1H.U=6.1f(9,\"U\");1H.2f=9.T.2f}}7(1H.2f!=H)9.T.2f=\"1y\";9.2k=6.1c({},d);6.F(d,q(a,b){u e=14 6.2M(5y,1H,a);7(b.15==3y)e.2W(e.1K(),b);B e[b==\"1R\"?c?\"1m\":\"1j\":b](d)})})},1l:q(a,b){7(!b){b=a;a=\"2M\"}v 9.F(q(){7(!9.1l)9.1l={};7(!9.1l[a])9.1l[a]=[];9.1l[a].R(b);7(9.1l[a].C==1)b.O(9)})}});6.1c({5z:q(b,a,c){u d=b&&b.15==64?b:{1n:c||!c&&a||6.16(b)&&b,1B:b,2I:c&&a||a&&a.15!=45&&a||(6.2I.4i?\"4i\":\"4w\")};d.1B=(d.1B&&d.1B.15==3y?d.1B:{61:60,89:5u}[d.1B])||8a;d.2N=d.1n;d.1n=q(){6.5I(9,\"2M\");7(6.16(d.2N))d.2N.O(9)};v d},2I:{4w:q(p,n,b,a){v b+a*p},4i:q(p,n,b,a){v((-5W.5X(p*5W.8e)/2)+0.5)*a+b}},1l:{},5I:q(b,a){a=a||\"2M\";7(b.1l&&b.1l[a]){b.1l[a].4e();u f=b.1l[a][0];7(f)f.O(b)}},3B:[],2M:q(f,e,g){u z=9;u y=f.T;z.a=q(){7(e.3A)e.3A.O(f,[z.2o]);7(g==\"1e\")6.1b(y,\"1e\",z.2o);B{y[g]=8m(z.2o)+\"4o\";y.U=\"2h\"}};z.5V=q(){v 39(6.1f(f,g))};z.1K=q(){u r=39(6.2z(f,g));v r&&r>-8l?r:z.5V()};z.2W=q(c,b){z.4s=(14 5T()).5S();z.2o=c;z.a();6.3B.R(q(){v z.3A(c,b)});7(6.3B.C==1){u d=3m(q(){u a=6.3B;E(u i=0;i<a.C;i++)7(!a[i]())a.8j(i--,1);7(!a.C)3M(d)},13)}};z.1m=q(){7(!f.24)f.24={};f.24[g]=6.1b(f.T,g);e.1m=K;z.2W(0,9.1K());7(g!=\"1e\")y[g]=\"8q\";6(f).1m()};z.1j=q(){7(!f.24)f.24={};f.24[g]=6.1b(f.T,g);e.1j=K;z.2W(9.1K(),0)};z.3A=q(a,c){u t=(14 5T()).5S();7(t>e.1B+z.4s){z.2o=c;z.a();7(f.2k)f.2k[g]=K;u b=K;E(u i V f.2k)7(f.2k[i]!==K)b=N;7(b){7(e.U!=H){y.2f=e.2f;y.U=e.U;7(6.1f(f,\"U\")==\"1P\")y.U=\"2h\"}7(e.1j)y.U=\"1P\";7(e.1j||e.1m)E(u p V f.2k)6.1b(y,p,f.24[p])}7(b&&6.16(e.1n))e.1n.O(f);v N}B{u n=t-9.4s;u p=n/e.1B;z.2o=6.2I[e.2I](p,n,a,(c-a),e.1B);z.a()}v K}}})}",62,524,"||||||jQuery|if||this|||||||||||||||||function||||var|return||||||else|length||for|each|type|null|undefined|indexOf|true|parentNode|browser|false|apply|document|nodeName|push|event|style|display|in|data||global|||fn|className||new|constructor|isFunction|test|window|arguments|events|attr|extend|firstChild|opacity|css|typeof|msie|filter|hide|mergeNum|queue|show|complete|replace|handle|nodeType|table|string|trigger|height|while|animate|div|hidden|tbody|add|duration|url|toUpperCase|remove|break|ready|opt|_|button|cur|find|get|tb|target|none|guid|toggle|args|merge|styleFloat|exec|load|nextSibling|ret|pushStack|safari|timeout|nth|status|orig|catch|al|innerHTML|success|width|opera|Array|error|preventDefault|rl|overflow|try|block|oldblock|done|curAnim|encodeURIComponent|id||now|index|readyList|disabled|grep|ifModified|src|value|inArray|multiFilter|select|curCSS|text|checked|trim|stopPropagation|param|domManip|substr|toLowerCase|easing|chars|insertBefore|makeArray|fx|old|ownerDocument|last|first|split|childNodes|selected|end|tr|custom|handleError|empty|ajax|el|clean|lastModified|String|form|getAttribute|ajaxSettings|is|async|parseFloat|readyState|script|responseText|isReady|append|defaultView|bind|which|position|mozilla|map|delete|setInterval|static|RegExp|oWidth|removeChild|oHeight|cloneNode|match|child|toString|has|float|Number|unload|step|timers|jquery|call|getResponseHeader|html|dataType|props|globalEval|evalScripts|GET|active|clearInterval|safariTimer|Modified|num|setRequestHeader|getElementsByTagName|currentStyle|__ie_init|unbind|mouseover|handleHover|init|getComputedStyle|one|isXMLDoc|relatedTarget|fix|removeEventListener|handler|Function|addEventListener|triggered|visibility|eval|nodeIndex|radio|classFilter|getElementById|shift|visible|appendChild|documentElement|swing|fromElement|submit|file|swap|expr|px|parents|sibling|00|startTime|previousSibling|lastToggle|parent|linear|ol|body|tagName|execScript|xml|setTimeout|version|setArray|httpNotModified|fl|prop|ajaxStop|XMLHttpRequest|processData|alpha|href|json|contentType|ajaxSend|ajaxSuccess|ajaxError|ajaxComplete|ajaxStart|getScript|notmodified|colgroup|100|not|ActiveXObject|POST|slice|fieldset|Last|httpSuccess|httpData|beforeSend|getPropertyValue|DOMContentLoaded|mouseout|click|ctrlKey|metaKey|keyCode|charCode|scrollTop|unique|createElement|scrollLeft|clientX|pageX|webkit|304|srcElement|appendTo|unshift|prevObject|on|after|before|200|removeAttr|prepend|cssFloat|self|speed|parse|input|reset|image|password|checkbox|_toggle|textContent|dequeue|lastChild|odd|even|join|contains|gt|lt|eq|nodeValue|getTime|Date|zoom|max|Math|cos|font|maxLength|600|slow|maxlength|readOnly|Object|readonly|createTextNode|class|htmlFor|fadeOut|fadeIn|slideToggle|CSS1Compat|slideUp|slideDown|compatMode|boxModel|compatible|name|responseXML|content|300|ie|noConflict|ra|send|it|abort|rv|userAgent|navigator|concat|With|Requested|GMT|1970|Jan|01|Thu|Since|reverse|If|Type|Content|array|XMLHTTP|ig|Microsoft|NaN|urlencoded|www|application|ajaxSetup|val|ajaxTimeout|post|setAttribute|getJSON|getAttributeNode|getIfModified|method|FORM|action|options|serialize|col|th|td|loadIfModified|do|colg|loaded|tfoot|open|thead|onreadystatechange|defer|ipt|leg|scr|write|keyup|keypress|keydown|change|mousemove|mouseup|mousedown|dblclick|scroll|resize|focus|blur|frames|hover|clone|clientY|pageY|location|protocol|toElement|clientWidth|clientHeight|cancelBubble|relative|returnValue|left|detachEvent|right|absolute|attachEvent|substring|offsetWidth|object|offsetHeight|continue|Width|border|fadeTo|padding|size|uFFFF|Left|u0128|Right|Bottom|textarea|Top|enabled|innerText|only|toggleClass|removeClass|fast|400|wrap|addClass|removeAttribute|PI|insertAfter|prependTo|children|line|splice|siblings|10000|parseInt|prev|next|weight|1px|prototype".split("|"),0,{}));SimileAjax.JSON=new Object();(function(){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\"":"\\\"","\\":"\\\\"};var s={array:function(x){var a=["["],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=",";}a[a.length]=v;b=true;}}}a[a.length]="]";return a.join("");},"boolean":function(x){return String(x);},"null":function(x){return "null";},number:function(x){return isFinite(x)?String(x):"null";},object:function(x){if(x){if(x instanceof Array){return s.array(x);}var a=["{"],b,f,i,v;for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=",";}a.push(s.string(i),":",v);b=true;}}}a[a.length]="}";return a.join("");}return "null";},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c;}c=b.charCodeAt();return "\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);});}return "\""+x+"\"";}};SimileAjax.JSON.toJSONString=function(o){if(o instanceof Object){return s.object(o);}else{if(o instanceof Array){return s.array(o);}else{return o.toString();}}};SimileAjax.JSON.parseJSON=function(){try{return !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(this.replace(/"(\\.|[^"\\])*"/g,"")))&&eval("("+this+")");}catch(e){return false;}};})();String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.startsWith=function(_b2f){return this.length>=_b2f.length&&this.substr(0,_b2f.length)==_b2f;};String.prototype.endsWith=function(_b30){return this.length>=_b30.length&&this.substr(this.length-_b30.length)==_b30;};String.substitute=function(s,_b32){var _b33="";var _b34=0;while(_b34<s.length-1){var _b35=s.indexOf("%",_b34);if(_b35<0||_b35==s.length-1){break;}else{if(_b35>_b34&&s.charAt(_b35-1)=="\\"){_b33+=s.substring(_b34,_b35-1)+"%";_b34=_b35+1;}else{var n=parseInt(s.charAt(_b35+1));if(isNaN(n)||n>=_b32.length){_b33+=s.substring(_b34,_b35+2);}else{_b33+=s.substring(_b34,_b35)+_b32[n].toString();}_b34=_b35+2;}}}if(_b34<s.length){_b33+=s.substring(_b34);}return _b33;};SimileAjax.NativeDateUnit=new Object();SimileAjax.NativeDateUnit.makeDefaultValue=function(){return new Date();};SimileAjax.NativeDateUnit.cloneValue=function(v){return new Date(v.getTime());};SimileAjax.NativeDateUnit.getParser=function(_b38){if(typeof _b38=="string"){_b38=_b38.toLowerCase();}return (_b38=="iso8601"||_b38=="iso 8601")?SimileAjax.DateTime.parseIso8601DateTime:SimileAjax.DateTime.parseGregorianDateTime;};SimileAjax.NativeDateUnit.parseFromObject=function(o){return SimileAjax.DateTime.parseGregorianDateTime(o);};SimileAjax.NativeDateUnit.toNumber=function(v){return v.getTime();};SimileAjax.NativeDateUnit.fromNumber=function(n){return new Date(n);};SimileAjax.NativeDateUnit.compare=function(v1,v2){var n1,n2;if(typeof v1=="object"){n1=v1.getTime();}else{n1=Number(v1);}if(typeof v2=="object"){n2=v2.getTime();}else{n2=Number(v2);}return n1-n2;};SimileAjax.NativeDateUnit.earlier=function(v1,v2){return SimileAjax.NativeDateUnit.compare(v1,v2)<0?v1:v2;};SimileAjax.NativeDateUnit.later=function(v1,v2){return SimileAjax.NativeDateUnit.compare(v1,v2)>0?v1:v2;};SimileAjax.NativeDateUnit.change=function(v,n){return new Date(v.getTime()+n);};SimileAjax.WindowManager={_initialized:false,_listeners:[],_draggedElement:null,_draggedElementCallback:null,_dropTargetHighlightElement:null,_lastCoords:null,_ghostCoords:null,_draggingMode:"",_dragging:false,_layers:[]};SimileAjax.WindowManager.initialize=function(){if(SimileAjax.WindowManager._initialized){return;}SimileAjax.DOM.registerEvent(document.body,"mousedown",SimileAjax.WindowManager._onBodyMouseDown);SimileAjax.DOM.registerEvent(document.body,"mousemove",SimileAjax.WindowManager._onBodyMouseMove);SimileAjax.DOM.registerEvent(document.body,"mouseup",SimileAjax.WindowManager._onBodyMouseUp);SimileAjax.DOM.registerEvent(document,"keydown",SimileAjax.WindowManager._onBodyKeyDown);SimileAjax.DOM.registerEvent(document,"keyup",SimileAjax.WindowManager._onBodyKeyUp);SimileAjax.WindowManager._layers.push({index:0});SimileAjax.WindowManager._historyListener={onBeforeUndoSeveral:function(){},onAfterUndoSeveral:function(){},onBeforeUndo:function(){},onAfterUndo:function(){},onBeforeRedoSeveral:function(){},onAfterRedoSeveral:function(){},onBeforeRedo:function(){},onAfterRedo:function(){}};SimileAjax.History.addListener(SimileAjax.WindowManager._historyListener);SimileAjax.WindowManager._initialized=true;};SimileAjax.WindowManager.getBaseLayer=function(){SimileAjax.WindowManager.initialize();return SimileAjax.WindowManager._layers[0];};SimileAjax.WindowManager.getHighestLayer=function(){SimileAjax.WindowManager.initialize();return SimileAjax.WindowManager._layers[SimileAjax.WindowManager._layers.length-1];};SimileAjax.WindowManager.registerEventWithObject=function(elmt,_b47,obj,_b49,_b4a){SimileAjax.WindowManager.registerEvent(elmt,_b47,function(_b4b,evt,_b4d){return obj[_b49].call(obj,_b4b,evt,_b4d);},_b4a);};SimileAjax.WindowManager.registerEvent=function(elmt,_b4f,_b50,_b51){if(_b51==null){_b51=SimileAjax.WindowManager.getHighestLayer();}var _b52=function(elmt,evt,_b55){if(SimileAjax.WindowManager._canProcessEventAtLayer(_b51)){SimileAjax.WindowManager._popToLayer(_b51.index);try{_b50(elmt,evt,_b55);}catch(e){SimileAjax.Debug.exception(e);}}SimileAjax.DOM.cancelEvent(evt);return false;};SimileAjax.DOM.registerEvent(elmt,_b4f,_b52);};SimileAjax.WindowManager.pushLayer=function(f,_b57,elmt){var _b59={onPop:f,index:SimileAjax.WindowManager._layers.length,ephemeral:(_b57),elmt:elmt};SimileAjax.WindowManager._layers.push(_b59);return _b59;};SimileAjax.WindowManager.popLayer=function(_b5a){for(var i=1;i<SimileAjax.WindowManager._layers.length;i++){if(SimileAjax.WindowManager._layers[i]==_b5a){SimileAjax.WindowManager._popToLayer(i-1);break;}}};SimileAjax.WindowManager.popAllLayers=function(){SimileAjax.WindowManager._popToLayer(0);};SimileAjax.WindowManager.registerForDragging=function(elmt,_b5d,_b5e){SimileAjax.WindowManager.registerEvent(elmt,"mousedown",function(elmt,evt,_b61){SimileAjax.WindowManager._handleMouseDown(elmt,evt,_b5d);},_b5e);};SimileAjax.WindowManager._popToLayer=function(_b62){while(_b62+1<SimileAjax.WindowManager._layers.length){try{var _b63=SimileAjax.WindowManager._layers.pop();if(_b63.onPop!=null){_b63.onPop();}}catch(e){}}};SimileAjax.WindowManager._canProcessEventAtLayer=function(_b64){if(_b64.index==(SimileAjax.WindowManager._layers.length-1)){return true;}for(var i=_b64.index+1;i<SimileAjax.WindowManager._layers.length;i++){if(!SimileAjax.WindowManager._layers[i].ephemeral){return false;}}return true;};SimileAjax.WindowManager._cancelPopups=function(evt){var _b67=(evt)?SimileAjax.DOM.getEventPageCoordinates(evt):{x:-1,y:-1};var i=SimileAjax.WindowManager._layers.length-1;while(i>0&&SimileAjax.WindowManager._layers[i].ephemeral){var _b69=SimileAjax.WindowManager._layers[i];if(_b69.elmt!=null){var elmt=_b69.elmt;var _b6b=SimileAjax.DOM.getPageCoordinates(elmt);if(_b67.x>=_b6b.left&&_b67.x<(_b6b.left+elmt.offsetWidth)&&_b67.y>=_b6b.top&&_b67.y<(_b6b.top+elmt.offsetHeight)){break;}}i--;}SimileAjax.WindowManager._popToLayer(i);};SimileAjax.WindowManager._onBodyMouseDown=function(elmt,evt,_b6e){if(!("eventPhase" in evt)||evt.eventPhase==evt.BUBBLING_PHASE){SimileAjax.WindowManager._cancelPopups(evt);}};SimileAjax.WindowManager._handleMouseDown=function(elmt,evt,_b71){SimileAjax.WindowManager._draggedElement=elmt;SimileAjax.WindowManager._draggedElementCallback=_b71;SimileAjax.WindowManager._lastCoords={x:evt.clientX,y:evt.clientY};SimileAjax.DOM.cancelEvent(evt);return false;};SimileAjax.WindowManager._onBodyKeyDown=function(elmt,evt,_b74){if(SimileAjax.WindowManager._dragging){if(evt.keyCode==27){SimileAjax.WindowManager._cancelDragging();}else{if((evt.keyCode==17||evt.keyCode==16)&&SimileAjax.WindowManager._draggingMode!="copy"){SimileAjax.WindowManager._draggingMode="copy";var img=SimileAjax.Graphics.createTranslucentImage(SimileAjax.urlPrefix+"images/copy.png");img.style.position="absolute";img.style.left=(SimileAjax.WindowManager._ghostCoords.left-16)+"px";img.style.top=(SimileAjax.WindowManager._ghostCoords.top)+"px";document.body.appendChild(img);SimileAjax.WindowManager._draggingModeIndicatorElmt=img;}}}};SimileAjax.WindowManager._onBodyKeyUp=function(elmt,evt,_b78){if(SimileAjax.WindowManager._dragging){if(evt.keyCode==17||evt.keyCode==16){SimileAjax.WindowManager._draggingMode="";if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){document.body.removeChild(SimileAjax.WindowManager._draggingModeIndicatorElmt);SimileAjax.WindowManager._draggingModeIndicatorElmt=null;}}}};SimileAjax.WindowManager._onBodyMouseMove=function(elmt,evt,_b7b){if(SimileAjax.WindowManager._draggedElement!=null){var _b7c=SimileAjax.WindowManager._draggedElementCallback;var _b7d=SimileAjax.WindowManager._lastCoords;var _b7e=evt.clientX-_b7d.x;var _b7f=evt.clientY-_b7d.y;if(!SimileAjax.WindowManager._dragging){if(Math.abs(_b7e)>5||Math.abs(_b7f)>5){try{if("onDragStart" in _b7c){_b7c.onDragStart();}if("ghost" in _b7c&&_b7c.ghost){var _b80=SimileAjax.WindowManager._draggedElement;SimileAjax.WindowManager._ghostCoords=SimileAjax.DOM.getPageCoordinates(_b80);SimileAjax.WindowManager._ghostCoords.left+=_b7e;SimileAjax.WindowManager._ghostCoords.top+=_b7f;var _b81=_b80.cloneNode(true);_b81.style.position="absolute";_b81.style.left=SimileAjax.WindowManager._ghostCoords.left+"px";_b81.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";_b81.style.zIndex=1000;SimileAjax.Graphics.setOpacity(_b81,50);document.body.appendChild(_b81);_b7c._ghostElmt=_b81;}SimileAjax.WindowManager._dragging=true;SimileAjax.WindowManager._lastCoords={x:evt.clientX,y:evt.clientY};document.body.focus();}catch(e){SimileAjax.Debug.exception("WindowManager: Error handling mouse down",e);SimileAjax.WindowManager._cancelDragging();}}}else{try{SimileAjax.WindowManager._lastCoords={x:evt.clientX,y:evt.clientY};if("onDragBy" in _b7c){_b7c.onDragBy(_b7e,_b7f);}if("_ghostElmt" in _b7c){var _b81=_b7c._ghostElmt;SimileAjax.WindowManager._ghostCoords.left+=_b7e;SimileAjax.WindowManager._ghostCoords.top+=_b7f;_b81.style.left=SimileAjax.WindowManager._ghostCoords.left+"px";_b81.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){var _b82=SimileAjax.WindowManager._draggingModeIndicatorElmt;_b82.style.left=(SimileAjax.WindowManager._ghostCoords.left-16)+"px";_b82.style.top=SimileAjax.WindowManager._ghostCoords.top+"px";}if("droppable" in _b7c&&_b7c.droppable){var _b83=SimileAjax.DOM.getEventPageCoordinates(evt);var _b7b=SimileAjax.DOM.hittest(_b83.x,_b83.y,[SimileAjax.WindowManager._ghostElmt,SimileAjax.WindowManager._dropTargetHighlightElement]);_b7b=SimileAjax.WindowManager._findDropTarget(_b7b);if(_b7b!=SimileAjax.WindowManager._potentialDropTarget){if(SimileAjax.WindowManager._dropTargetHighlightElement!=null){document.body.removeChild(SimileAjax.WindowManager._dropTargetHighlightElement);SimileAjax.WindowManager._dropTargetHighlightElement=null;SimileAjax.WindowManager._potentialDropTarget=null;}var _b84=false;if(_b7b!=null){if((!("canDropOn" in _b7c)||_b7c.canDropOn(_b7b))&&(!("canDrop" in _b7b)||_b7b.canDrop(SimileAjax.WindowManager._draggedElement))){_b84=true;}}if(_b84){var _b85=4;var _b86=SimileAjax.DOM.getPageCoordinates(_b7b);var _b87=document.createElement("div");_b87.style.border=_b85+"px solid yellow";_b87.style.backgroundColor="yellow";_b87.style.position="absolute";_b87.style.left=_b86.left+"px";_b87.style.top=_b86.top+"px";_b87.style.width=(_b7b.offsetWidth-_b85*2)+"px";_b87.style.height=(_b7b.offsetHeight-_b85*2)+"px";SimileAjax.Graphics.setOpacity(_b87,30);document.body.appendChild(_b87);SimileAjax.WindowManager._potentialDropTarget=_b7b;SimileAjax.WindowManager._dropTargetHighlightElement=_b87;}}}}}catch(e){SimileAjax.Debug.exception("WindowManager: Error handling mouse move",e);SimileAjax.WindowManager._cancelDragging();}}SimileAjax.DOM.cancelEvent(evt);return false;}};SimileAjax.WindowManager._onBodyMouseUp=function(elmt,evt,_b8a){if(SimileAjax.WindowManager._draggedElement!=null){try{if(SimileAjax.WindowManager._dragging){var _b8b=SimileAjax.WindowManager._draggedElementCallback;if("onDragEnd" in _b8b){_b8b.onDragEnd();}if("droppable" in _b8b&&_b8b.droppable){var _b8c=false;var _b8a=SimileAjax.WindowManager._potentialDropTarget;if(_b8a!=null){if((!("canDropOn" in _b8b)||_b8b.canDropOn(_b8a))&&(!("canDrop" in _b8a)||_b8a.canDrop(SimileAjax.WindowManager._draggedElement))){if("onDropOn" in _b8b){_b8b.onDropOn(_b8a);}_b8a.ondrop(SimileAjax.WindowManager._draggedElement,SimileAjax.WindowManager._draggingMode);_b8c=true;}}if(!_b8c){}}}}finally{SimileAjax.WindowManager._cancelDragging();}SimileAjax.DOM.cancelEvent(evt);return false;}};SimileAjax.WindowManager._cancelDragging=function(){var _b8d=SimileAjax.WindowManager._draggedElementCallback;if("_ghostElmt" in _b8d){var _b8e=_b8d._ghostElmt;document.body.removeChild(_b8e);delete _b8d._ghostElmt;}if(SimileAjax.WindowManager._dropTargetHighlightElement!=null){document.body.removeChild(SimileAjax.WindowManager._dropTargetHighlightElement);SimileAjax.WindowManager._dropTargetHighlightElement=null;}if(SimileAjax.WindowManager._draggingModeIndicatorElmt!=null){document.body.removeChild(SimileAjax.WindowManager._draggingModeIndicatorElmt);SimileAjax.WindowManager._draggingModeIndicatorElmt=null;}SimileAjax.WindowManager._draggedElement=null;SimileAjax.WindowManager._draggedElementCallback=null;SimileAjax.WindowManager._potentialDropTarget=null;SimileAjax.WindowManager._dropTargetHighlightElement=null;SimileAjax.WindowManager._lastCoords=null;SimileAjax.WindowManager._ghostCoords=null;SimileAjax.WindowManager._draggingMode="";SimileAjax.WindowManager._dragging=false;};SimileAjax.WindowManager._findDropTarget=function(elmt){while(elmt!=null){if("ondrop" in elmt&&(typeof elmt.ondrop)=="function"){break;}elmt=elmt.parentNode;}return elmt;};SimileAjax.XmlHttp=new Object();SimileAjax.XmlHttp._onReadyStateChange=function(_b90,_b91,_b92){switch(_b90.readyState){case 4:try{if(_b90.status==0||_b90.status==200){if(_b92){_b92(_b90);}}else{if(_b91){_b91(_b90.statusText,_b90.status,_b90);}}}catch(e){SimileAjax.Debug.exception("XmlHttp: Error handling onReadyStateChange",e);}break;}};SimileAjax.XmlHttp._createRequest=function(){if(SimileAjax.Platform.browser.isIE){var _b93=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(var i=0;i<_b93.length;i++){try{var _b95=_b93[i];var f=function(){return new ActiveXObject(_b95);};var o=f();SimileAjax.XmlHttp._createRequest=f;return o;}catch(e){}}}try{var f=function(){return new XMLHttpRequest();};var o=f();SimileAjax.XmlHttp._createRequest=f;return o;}catch(e){throw new Error("Failed to create an XMLHttpRequest object");}};SimileAjax.XmlHttp.get=function(url,_b99,_b9a){var _b9b=SimileAjax.XmlHttp._createRequest();_b9b.open("GET",url,true);_b9b.onreadystatechange=function(){SimileAjax.XmlHttp._onReadyStateChange(_b9b,_b99,_b9a);};_b9b.send(null);};SimileAjax.XmlHttp.post=function(url,body,_b9e,_b9f){var _ba0=SimileAjax.XmlHttp._createRequest();_ba0.open("POST",url,true);_ba0.onreadystatechange=function(){SimileAjax.XmlHttp._onReadyStateChange(_ba0,_b9e,_b9f);};_ba0.send(body);};SimileAjax.XmlHttp._forceXML=function(_ba1){try{_ba1.overrideMimeType("text/xml");}catch(e){_ba1.setrequestheader("Content-Type","text/xml");}};}if(!dojo._hasResource["simile.widget.timeline.timeline-api"]){dojo._hasResource["simile.widget.timeline.timeline-api"]=true;dojo.provide("simile.widget.timeline.timeline-api");Timeline_urlPrefix=dojo.moduleUrl("simile","widget/timeline/").path;(function(){var _ba2=false;if(document.location.search.length>0){var _ba3=document.location.search.substr(1).split("&");for(var i=0;i<_ba3.length;i++){if(_ba3[i]=="timeline-use-local-resources"){_ba2=true;}}}var _ba5=function(){if("Timeline" in window){return;}window.Timeline=new Object();window.Timeline.DateTime=SimileAjax.DateTime;var _ba6=true;var _ba7=["timeline.js","themes.js","ethers.js","ether-painters.js","labellers.js","sources.js","layouts.js","painters.js","decorators.js"];var _ba8=["timeline.css","ethers.css","events.css"];var _ba9=["timeline.js","labellers.js"];var _baa=[];var _bab=["cs","de","en","es","fr","it","ru","se","vi","zh"];try{var _bac=["en"];var _bad="en";var _bae=function(_baf){var _bb0=_baf.split("&");for(var p=0;p<_bb0.length;p++){var pair=_bb0[p].split("=");if(pair[0]=="locales"){_bac=_bac.concat(pair[1].split(","));}else{if(pair[0]=="defaultLocale"){_bad=pair[1];}else{if(pair[0]=="bundle"){_ba6=pair[1]!="false";}}}}};(function(){if(typeof Timeline_urlPrefix=="string"){Timeline.urlPrefix=Timeline_urlPrefix;if(typeof Timeline_parameters=="string"){_bae(Timeline_parameters);}}else{var _bb3=document.documentElement.getElementsByTagName("head");for(var h=0;h<_bb3.length;h++){var _bb5=_bb3[h].getElementsByTagName("script");for(var s=0;s<_bb5.length;s++){var url=_bb5[s].src;var i=url.indexOf("timeline-api.js");if(i>=0){Timeline.urlPrefix=url.substr(0,i);var q=url.indexOf("?");if(q>0){_bae(url.substr(q+1));}return;}}}throw new Error("Failed to derive URL prefix for Timeline API code files");}})();var _bba=function(_bbb,_bbc){SimileAjax.includeJavascriptFiles(document,_bbb,_bbc);};var _bbd=function(_bbe,_bbf){SimileAjax.includeCssFiles(document,_bbe,_bbf);};if(_ba6){_bbd(Timeline.urlPrefix,["timeline-bundle.css"]);}else{_bba(Timeline.urlPrefix+"scripts/",_ba7);_bbd(Timeline.urlPrefix+"styles/",_ba8);}var _bc0=[];_bc0[_bad]=true;var _bc1=function(_bc2){for(var l=0;l<_bab.length;l++){if(_bc2==_bab[l]){_bc0[_bc2]=true;return true;}}return false;};var _bc4=function(_bc5){if(_bc1(_bc5)){return _bc5;}var dash=_bc5.indexOf("-");if(dash>0&&_bc1(_bc5.substr(0,dash))){return _bc5.substr(0,dash);}return null;};for(var l=0;l<_bac.length;l++){_bc4(_bac[l]);}var _bc8=_bad;var _bc9=("language" in navigator?navigator.language:navigator.browserLanguage).split(";");for(var l=0;l<_bc9.length;l++){var _bca=_bc4(_bc9[l]);if(_bca!=null){_bc8=_bca;break;}}for(var l=0;l<_bab.length;l++){var _bca=_bab[l];if(_bc0[_bca]){_bba(Timeline.urlPrefix+"scripts/l10n/"+_bca+"/",_ba9);_bbd(Timeline.urlPrefix+"styles/l10n/"+_bca+"/",_baa);}}Timeline.serverLocale=_bad;Timeline.clientLocale=_bc8;}catch(e){alert(e);}};if(typeof SimileAjax=="undefined"){window.SimileAjax_onLoad=_ba5;var url=_ba2?"http://127.0.0.1:9999/ajax/api/simile-ajax-api.js?bundle=false":"app/scripts/simile-ajax/simile-ajax-api.js";var _bcc=function(){var _bcd=document.createElement("script");_bcd.type="text/javascript";_bcd.language="JavaScript";_bcd.src=url;document.getElementsByTagName("head")[0].appendChild(_bcd);};if(document.body==null){try{document.write("<script src='"+url+"' type='text/javascript'></script>");}catch(e){_bcc();}}else{_bcc();}}else{_ba5();}})();}if(!dojo._hasResource["simile.widget.timeline.Timeline"]){dojo._hasResource["simile.widget.timeline.Timeline"]=true;dojo.provide("simile.widget.timeline.Timeline");Timeline.SpanHighlightDecorator=function(_bce){this._unit=("unit" in _bce)?_bce.unit:SimileAjax.NativeDateUnit;this._startDate=(typeof _bce.startDate=="string")?this._unit.parseFromObject(_bce.startDate):_bce.startDate;this._endDate=(typeof _bce.endDate=="string")?this._unit.parseFromObject(_bce.endDate):_bce.endDate;this._startLabel=_bce.startLabel;this._endLabel=_bce.endLabel;this._color=_bce.color;this._opacity=("opacity" in _bce)?_bce.opacity:100;};Timeline.SpanHighlightDecorator.prototype.initialize=function(band,_bd0){this._band=band;this._timeline=_bd0;this._layerDiv=null;};Timeline.SpanHighlightDecorator.prototype.paint=function(){if(this._layerDiv!=null){this._band.removeLayerDiv(this._layerDiv);}this._layerDiv=this._band.createLayerDiv(10);this._layerDiv.setAttribute("name","span-highlight-decorator");this._layerDiv.style.display="none";var _bd1=this._band.getMinDate();var _bd2=this._band.getMaxDate();if(this._unit.compare(this._startDate,_bd2)<0&&this._unit.compare(this._endDate,_bd1)>0){_bd1=this._unit.later(_bd1,this._startDate);_bd2=this._unit.earlier(_bd2,this._endDate);var _bd3=this._band.dateToPixelOffset(_bd1);var _bd4=this._band.dateToPixelOffset(_bd2);var doc=this._timeline.getDocument();var _bd6=function(){var _bd7=doc.createElement("table");_bd7.insertRow(0).insertCell(0);return _bd7;};var div=doc.createElement("div");div.style.position="absolute";div.style.overflow="hidden";div.style.background=this._color;if(this._opacity<100){SimileAjax.Graphics.setOpacity(div,this._opacity);}this._layerDiv.appendChild(div);var _bd9=_bd6();_bd9.style.position="absolute";_bd9.style.overflow="hidden";_bd9.style.fontSize="300%";_bd9.style.fontWeight="bold";_bd9.style.color=this._color;_bd9.rows[0].cells[0].innerHTML=this._startLabel;this._layerDiv.appendChild(_bd9);var _bda=_bd6();_bda.style.position="absolute";_bda.style.overflow="hidden";_bda.style.fontSize="300%";_bda.style.fontWeight="bold";_bda.style.color=this._color;_bda.rows[0].cells[0].innerHTML=this._endLabel;this._layerDiv.appendChild(_bda);if(this._timeline.isHorizontal()){div.style.left=_bd3+"px";div.style.width=(_bd4-_bd3)+"px";div.style.top="0px";div.style.height="100%";_bd9.style.right=(this._band.getTotalViewLength()-_bd3)+"px";_bd9.style.width=(this._startLabel.length)+"em";_bd9.style.top="0px";_bd9.style.height="100%";_bd9.style.textAlign="right";_bda.style.left=_bd4+"px";_bda.style.width=(this._endLabel.length)+"em";_bda.style.top="0px";_bda.style.height="100%";}else{div.style.top=_bd3+"px";div.style.height=(_bd4-_bd3)+"px";div.style.left="0px";div.style.width="100%";_bd9.style.bottom=_bd3+"px";_bd9.style.height="1.5px";_bd9.style.left="0px";_bd9.style.width="100%";_bda.style.top=_bd4+"px";_bda.style.height="1.5px";_bda.style.left="0px";_bda.style.width="100%";}}this._layerDiv.style.display="block";};Timeline.SpanHighlightDecorator.prototype.softPaint=function(){};Timeline.PointHighlightDecorator=function(_bdb){this._unit=("unit" in _bdb)?_bdb.unit:SimileAjax.NativeDateUnit;this._date=(typeof _bdb.date=="string")?this._unit.parseFromObject(_bdb.date):_bdb.date;this._width=("width" in _bdb)?_bdb.width:10;this._color=_bdb.color;this._opacity=("opacity" in _bdb)?_bdb.opacity:100;};Timeline.PointHighlightDecorator.prototype.initialize=function(band,_bdd){this._band=band;this._timeline=_bdd;this._layerDiv=null;};Timeline.PointHighlightDecorator.prototype.paint=function(){if(this._layerDiv!=null){this._band.removeLayerDiv(this._layerDiv);}this._layerDiv=this._band.createLayerDiv(10);this._layerDiv.setAttribute("name","span-highlight-decorator");this._layerDiv.style.display="none";var _bde=this._band.getMinDate();var _bdf=this._band.getMaxDate();if(this._unit.compare(this._date,_bdf)<0&&this._unit.compare(this._date,_bde)>0){var _be0=this._band.dateToPixelOffset(this._date);var _be1=_be0-Math.round(this._width/2);var doc=this._timeline.getDocument();var div=doc.createElement("div");div.style.position="absolute";div.style.overflow="hidden";div.style.background=this._color;if(this._opacity<100){SimileAjax.Graphics.setOpacity(div,this._opacity);}this._layerDiv.appendChild(div);if(this._timeline.isHorizontal()){div.style.left=_be1+"px";div.style.width=this._width+"px";div.style.top="0px";div.style.height="100%";}else{div.style.top=_be1+"px";div.style.height=this._width+"px";div.style.left="0px";div.style.width="100%";}}this._layerDiv.style.display="block";};Timeline.PointHighlightDecorator.prototype.softPaint=function(){};Timeline.GregorianEtherPainter=function(_be4){this._params=_be4;this._theme=_be4.theme;this._unit=_be4.unit;this._multiple=("multiple" in _be4)?_be4.multiple:1;};Timeline.GregorianEtherPainter.prototype.initialize=function(band,_be6){this._band=band;this._timeline=_be6;this._backgroundLayer=band.createLayerDiv(0);this._backgroundLayer.setAttribute("name","ether-background");this._backgroundLayer.style.background=this._theme.ether.backgroundColors[band.getIndex()];this._markerLayer=null;this._lineLayer=null;var _be7=("align" in this._params&&this._params.align!=undefined)?this._params.align:this._theme.ether.interval.marker[_be6.isHorizontal()?"hAlign":"vAlign"];var _be8=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;this._intervalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,_be7,_be8);this._highlight=new Timeline.EtherHighlight(this._timeline,this._band,this._theme,this._backgroundLayer);};Timeline.GregorianEtherPainter.prototype.setHighlight=function(_be9,_bea){this._highlight.position(_be9,_bea);};Timeline.GregorianEtherPainter.prototype.paint=function(){if(this._markerLayer){this._band.removeLayerDiv(this._markerLayer);}this._markerLayer=this._band.createLayerDiv(100);this._markerLayer.setAttribute("name","ether-markers");this._markerLayer.style.display="none";if(this._lineLayer){this._band.removeLayerDiv(this._lineLayer);}this._lineLayer=this._band.createLayerDiv(1);this._lineLayer.setAttribute("name","ether-lines");this._lineLayer.style.display="none";var _beb=this._band.getMinDate();var _bec=this._band.getMaxDate();var _bed=this._band.getTimeZone();var _bee=this._band.getLabeller();SimileAjax.DateTime.roundDownToInterval(_beb,this._unit,_bed,this._multiple,this._theme.firstDayOfWeek);var p=this;var _bf0=function(date){for(var i=0;i<p._multiple;i++){SimileAjax.DateTime.incrementByInterval(date,p._unit);}};while(_beb.getTime()<_bec.getTime()){this._intervalMarkerLayout.createIntervalMarker(_beb,_bee,this._unit,this._markerLayer,this._lineLayer);_bf0(_beb);}this._markerLayer.style.display="block";this._lineLayer.style.display="block";};Timeline.GregorianEtherPainter.prototype.softPaint=function(){};Timeline.HotZoneGregorianEtherPainter=function(_bf3){this._params=_bf3;this._theme=_bf3.theme;this._zones=[{startTime:Number.NEGATIVE_INFINITY,endTime:Number.POSITIVE_INFINITY,unit:_bf3.unit,multiple:1}];for(var i=0;i<_bf3.zones.length;i++){var zone=_bf3.zones[i];var _bf6=SimileAjax.DateTime.parseGregorianDateTime(zone.start).getTime();var _bf7=SimileAjax.DateTime.parseGregorianDateTime(zone.end).getTime();for(var j=0;j<this._zones.length&&_bf7>_bf6;j++){var _bf9=this._zones[j];if(_bf6<_bf9.endTime){if(_bf6>_bf9.startTime){this._zones.splice(j,0,{startTime:_bf9.startTime,endTime:_bf6,unit:_bf9.unit,multiple:_bf9.multiple});j++;_bf9.startTime=_bf6;}if(_bf7<_bf9.endTime){this._zones.splice(j,0,{startTime:_bf6,endTime:_bf7,unit:zone.unit,multiple:(zone.multiple)?zone.multiple:1});j++;_bf9.startTime=_bf7;_bf6=_bf7;}else{_bf9.multiple=zone.multiple;_bf9.unit=zone.unit;_bf6=_bf9.endTime;}}}}};Timeline.HotZoneGregorianEtherPainter.prototype.initialize=function(band,_bfb){this._band=band;this._timeline=_bfb;this._backgroundLayer=band.createLayerDiv(0);this._backgroundLayer.setAttribute("name","ether-background");this._backgroundLayer.style.background=this._theme.ether.backgroundColors[band.getIndex()];this._markerLayer=null;this._lineLayer=null;var _bfc=("align" in this._params&&this._params.align!=undefined)?this._params.align:this._theme.ether.interval.marker[_bfb.isHorizontal()?"hAlign":"vAlign"];var _bfd=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;this._intervalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,_bfc,_bfd);this._highlight=new Timeline.EtherHighlight(this._timeline,this._band,this._theme,this._backgroundLayer);};Timeline.HotZoneGregorianEtherPainter.prototype.setHighlight=function(_bfe,_bff){this._highlight.position(_bfe,_bff);};Timeline.HotZoneGregorianEtherPainter.prototype.paint=function(){if(this._markerLayer){this._band.removeLayerDiv(this._markerLayer);}this._markerLayer=this._band.createLayerDiv(100);this._markerLayer.setAttribute("name","ether-markers");this._markerLayer.style.display="none";if(this._lineLayer){this._band.removeLayerDiv(this._lineLayer);}this._lineLayer=this._band.createLayerDiv(1);this._lineLayer.setAttribute("name","ether-lines");this._lineLayer.style.display="none";var _c00=this._band.getMinDate();var _c01=this._band.getMaxDate();var _c02=this._band.getTimeZone();var _c03=this._band.getLabeller();var p=this;var _c05=function(date,zone){for(var i=0;i<zone.multiple;i++){SimileAjax.DateTime.incrementByInterval(date,zone.unit);}};var _c09=0;while(_c09<this._zones.length){if(_c00.getTime()<this._zones[_c09].endTime){break;}_c09++;}var zEnd=this._zones.length-1;while(zEnd>=0){if(_c01.getTime()>this._zones[zEnd].startTime){break;}zEnd--;}for(var z=_c09;z<=zEnd;z++){var zone=this._zones[z];var _c0d=new Date(Math.max(_c00.getTime(),zone.startTime));var _c0e=new Date(Math.min(_c01.getTime(),zone.endTime));SimileAjax.DateTime.roundDownToInterval(_c0d,zone.unit,_c02,zone.multiple,this._theme.firstDayOfWeek);SimileAjax.DateTime.roundUpToInterval(_c0e,zone.unit,_c02,zone.multiple,this._theme.firstDayOfWeek);while(_c0d.getTime()<_c0e.getTime()){this._intervalMarkerLayout.createIntervalMarker(_c0d,_c03,zone.unit,this._markerLayer,this._lineLayer);_c05(_c0d,zone);}}this._markerLayer.style.display="block";this._lineLayer.style.display="block";};Timeline.HotZoneGregorianEtherPainter.prototype.softPaint=function(){};Timeline.YearCountEtherPainter=function(_c0f){this._params=_c0f;this._theme=_c0f.theme;this._startDate=SimileAjax.DateTime.parseGregorianDateTime(_c0f.startDate);this._multiple=("multiple" in _c0f)?_c0f.multiple:1;};Timeline.YearCountEtherPainter.prototype.initialize=function(band,_c11){this._band=band;this._timeline=_c11;this._backgroundLayer=band.createLayerDiv(0);this._backgroundLayer.setAttribute("name","ether-background");this._backgroundLayer.style.background=this._theme.ether.backgroundColors[band.getIndex()];this._markerLayer=null;this._lineLayer=null;var _c12=("align" in this._params)?this._params.align:this._theme.ether.interval.marker[_c11.isHorizontal()?"hAlign":"vAlign"];var _c13=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;this._intervalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,_c12,_c13);this._highlight=new Timeline.EtherHighlight(this._timeline,this._band,this._theme,this._backgroundLayer);};Timeline.YearCountEtherPainter.prototype.setHighlight=function(_c14,_c15){this._highlight.position(_c14,_c15);};Timeline.YearCountEtherPainter.prototype.paint=function(){if(this._markerLayer){this._band.removeLayerDiv(this._markerLayer);}this._markerLayer=this._band.createLayerDiv(100);this._markerLayer.setAttribute("name","ether-markers");this._markerLayer.style.display="none";if(this._lineLayer){this._band.removeLayerDiv(this._lineLayer);}this._lineLayer=this._band.createLayerDiv(1);this._lineLayer.setAttribute("name","ether-lines");this._lineLayer.style.display="none";var _c16=new Date(this._startDate.getTime());var _c17=this._band.getMaxDate();var _c18=this._band.getMinDate().getUTCFullYear()-this._startDate.getUTCFullYear();_c16.setUTCFullYear(this._band.getMinDate().getUTCFullYear()-_c18%this._multiple);var p=this;var _c1a=function(date){for(var i=0;i<p._multiple;i++){SimileAjax.DateTime.incrementByInterval(date,SimileAjax.DateTime.YEAR);}};var _c1d={labelInterval:function(date,_c1f){var diff=date.getUTCFullYear()-p._startDate.getUTCFullYear();return {text:diff,emphasized:diff==0};}};while(_c16.getTime()<_c17.getTime()){this._intervalMarkerLayout.createIntervalMarker(_c16,_c1d,SimileAjax.DateTime.YEAR,this._markerLayer,this._lineLayer);_c1a(_c16);}this._markerLayer.style.display="block";this._lineLayer.style.display="block";};Timeline.YearCountEtherPainter.prototype.softPaint=function(){};Timeline.QuarterlyEtherPainter=function(_c21){this._params=_c21;this._theme=_c21.theme;this._startDate=SimileAjax.DateTime.parseGregorianDateTime(_c21.startDate);};Timeline.QuarterlyEtherPainter.prototype.initialize=function(band,_c23){this._band=band;this._timeline=_c23;this._backgroundLayer=band.createLayerDiv(0);this._backgroundLayer.setAttribute("name","ether-background");this._backgroundLayer.style.background=this._theme.ether.backgroundColors[band.getIndex()];this._markerLayer=null;this._lineLayer=null;var _c24=("align" in this._params)?this._params.align:this._theme.ether.interval.marker[_c23.isHorizontal()?"hAlign":"vAlign"];var _c25=("showLine" in this._params)?this._params.showLine:this._theme.ether.interval.line.show;this._intervalMarkerLayout=new Timeline.EtherIntervalMarkerLayout(this._timeline,this._band,this._theme,_c24,_c25);this._highlight=new Timeline.EtherHighlight(this._timeline,this._band,this._theme,this._backgroundLayer);};Timeline.QuarterlyEtherPainter.prototype.setHighlight=function(_c26,_c27){this._highlight.position(_c26,_c27);};Timeline.QuarterlyEtherPainter.prototype.paint=function(){if(this._markerLayer){this._band.removeLayerDiv(this._markerLayer);}this._markerLayer=this._band.createLayerDiv(100);this._markerLayer.setAttribute("name","ether-markers");this._markerLayer.style.display="none";if(this._lineLayer){this._band.removeLayerDiv(this._lineLayer);}this._lineLayer=this._band.createLayerDiv(1);this._lineLayer.setAttribute("name","ether-lines");this._lineLayer.style.display="none";var _c28=new Date(0);var _c29=this._band.getMaxDate();_c28.setUTCFullYear(Math.max(this._startDate.getUTCFullYear(),this._band.getMinDate().getUTCFullYear()));_c28.setUTCMonth(this._startDate.getUTCMonth());var p=this;var _c2b=function(date){date.setUTCMonth(date.getUTCMonth()+3);};var _c2d={labelInterval:function(date,_c2f){var _c30=(4+(date.getUTCMonth()-p._startDate.getUTCMonth())/3)%4;if(_c30!=0){return {text:"Q"+(_c30+1),emphasized:false};}else{return {text:"Y"+(date.getUTCFullYear()-p._startDate.getUTCFullYear()+1),emphasized:true};}}};while(_c28.getTime()<_c29.getTime()){this._intervalMarkerLayout.createIntervalMarker(_c28,_c2d,SimileAjax.DateTime.YEAR,this._markerLayer,this._lineLayer);_c2b(_c28);}this._markerLayer.style.display="block";this._lineLayer.style.display="block";};Timeline.QuarterlyEtherPainter.prototype.softPaint=function(){};Timeline.EtherIntervalMarkerLayout=function(_c31,band,_c33,_c34,_c35){var _c36=_c31.isHorizontal();if(_c36){if(_c34=="Top"){this.positionDiv=function(div,_c38){div.style.left=_c38+"px";div.style.top="0px";};}else{this.positionDiv=function(div,_c3a){div.style.left=_c3a+"px";div.style.bottom="0px";};}}else{if(_c34=="Left"){this.positionDiv=function(div,_c3c){div.style.top=_c3c+"px";div.style.left="0px";};}else{this.positionDiv=function(div,_c3e){div.style.top=_c3e+"px";div.style.right="0px";};}}var _c3f=_c33.ether.interval.marker;var _c40=_c33.ether.interval.line;var _c41=_c33.ether.interval.weekend;var _c42=(_c36?"h":"v")+_c34;var _c43=_c3f[_c42+"Styler"];var _c44=_c3f[_c42+"EmphasizedStyler"];var day=SimileAjax.DateTime.gregorianUnitLengths[SimileAjax.DateTime.DAY];this.createIntervalMarker=function(date,_c47,unit,_c49,_c4a){var _c4b=Math.round(band.dateToPixelOffset(date));if(_c35&&unit!=SimileAjax.DateTime.WEEK){var _c4c=_c31.getDocument().createElement("div");_c4c.style.position="absolute";if(_c40.opacity<100){SimileAjax.Graphics.setOpacity(_c4c,_c40.opacity);}if(_c36){_c4c.style.borderLeft="1px solid "+_c40.color;_c4c.style.left=_c4b+"px";_c4c.style.width="1px";_c4c.style.top="0px";_c4c.style.height="100%";}else{_c4c.style.borderTop="1px solid "+_c40.color;_c4c.style.top=_c4b+"px";_c4c.style.height="1px";_c4c.style.left="0px";_c4c.style.width="100%";}_c4a.appendChild(_c4c);}if(unit==SimileAjax.DateTime.WEEK){var _c4d=_c33.firstDayOfWeek;var _c4e=new Date(date.getTime()+(6-_c4d-7)*day);var _c4f=new Date(_c4e.getTime()+2*day);var _c50=Math.round(band.dateToPixelOffset(_c4e));var _c51=Math.round(band.dateToPixelOffset(_c4f));var _c52=Math.max(1,_c51-_c50);var _c53=_c31.getDocument().createElement("div");_c53.style.position="absolute";_c53.style.background=_c41.color;if(_c41.opacity<100){SimileAjax.Graphics.setOpacity(_c53,_c41.opacity);}if(_c36){_c53.style.left=_c50+"px";_c53.style.width=_c52+"px";_c53.style.top="0px";_c53.style.height="100%";}else{_c53.style.top=_c50+"px";_c53.style.height=_c52+"px";_c53.style.left="0px";_c53.style.width="100%";}_c4a.appendChild(_c53);}var _c54=_c47.labelInterval(date,unit);var div=_c31.getDocument().createElement("div");div.innerHTML=_c54.text;div.style.position="absolute";(_c54.emphasized?_c44:_c43)(div);this.positionDiv(div,_c4b);_c49.appendChild(div);return div;};};Timeline.EtherHighlight=function(_c56,band,_c58,_c59){var _c5a=_c56.isHorizontal();this._highlightDiv=null;this._createHighlightDiv=function(){if(this._highlightDiv==null){this._highlightDiv=_c56.getDocument().createElement("div");this._highlightDiv.setAttribute("name","ether-highlight");this._highlightDiv.style.position="absolute";this._highlightDiv.style.background=_c58.ether.highlightColor;var _c5b=_c58.ether.highlightOpacity;if(_c5b<100){SimileAjax.Graphics.setOpacity(this._highlightDiv,_c5b);}_c59.appendChild(this._highlightDiv);}};this.position=function(_c5c,_c5d){this._createHighlightDiv();var _c5e=Math.round(band.dateToPixelOffset(_c5c));var _c5f=Math.round(band.dateToPixelOffset(_c5d));var _c60=Math.max(_c5f-_c5e,3);if(_c5a){this._highlightDiv.style.left=_c5e+"px";this._highlightDiv.style.width=_c60+"px";this._highlightDiv.style.top="2px";this._highlightDiv.style.height=(band.getViewWidth()-4)+"px";}else{this._highlightDiv.style.top=_c5e+"px";this._highlightDiv.style.height=_c60+"px";this._highlightDiv.style.left="2px";this._highlightDiv.style.width=(band.getViewWidth()-4)+"px";}};};Timeline.LinearEther=function(_c61){this._params=_c61;this._interval=_c61.interval;this._pixelsPerInterval=_c61.pixelsPerInterval;};Timeline.LinearEther.prototype.initialize=function(_c62){this._timeline=_c62;this._unit=_c62.getUnit();if("startsOn" in this._params){this._start=this._unit.parseFromObject(this._params.startsOn);}else{if("endsOn" in this._params){this._start=this._unit.parseFromObject(this._params.endsOn);this.shiftPixels(-this._timeline.getPixelLength());}else{if("centersOn" in this._params){this._start=this._unit.parseFromObject(this._params.centersOn);this.shiftPixels(-this._timeline.getPixelLength()/2);}else{this._start=this._unit.makeDefaultValue();this.shiftPixels(-this._timeline.getPixelLength()/2);}}}};Timeline.LinearEther.prototype.setDate=function(date){this._start=this._unit.cloneValue(date);};Timeline.LinearEther.prototype.shiftPixels=function(_c64){var _c65=this._interval*_c64/this._pixelsPerInterval;this._start=this._unit.change(this._start,_c65);};Timeline.LinearEther.prototype.dateToPixelOffset=function(date){var _c67=this._unit.compare(date,this._start);return this._pixelsPerInterval*_c67/this._interval;};Timeline.LinearEther.prototype.pixelOffsetToDate=function(_c68){var _c69=_c68*this._interval/this._pixelsPerInterval;return this._unit.change(this._start,_c69);};Timeline.HotZoneEther=function(_c6a){this._params=_c6a;this._interval=_c6a.interval;this._pixelsPerInterval=_c6a.pixelsPerInterval;};Timeline.HotZoneEther.prototype.initialize=function(_c6b){this._timeline=_c6b;this._unit=_c6b.getUnit();this._zones=[{startTime:Number.NEGATIVE_INFINITY,endTime:Number.POSITIVE_INFINITY,magnify:1}];var _c6c=this._params;for(var i=0;i<_c6c.zones.length;i++){var zone=_c6c.zones[i];var _c6f=this._unit.parseFromObject(zone.start);var _c70=this._unit.parseFromObject(zone.end);for(var j=0;j<this._zones.length&&this._unit.compare(_c70,_c6f)>0;j++){var _c72=this._zones[j];if(this._unit.compare(_c6f,_c72.endTime)<0){if(this._unit.compare(_c6f,_c72.startTime)>0){this._zones.splice(j,0,{startTime:_c72.startTime,endTime:_c6f,magnify:_c72.magnify});j++;_c72.startTime=_c6f;}if(this._unit.compare(_c70,_c72.endTime)<0){this._zones.splice(j,0,{startTime:_c6f,endTime:_c70,magnify:zone.magnify*_c72.magnify});j++;_c72.startTime=_c70;_c6f=_c70;}else{_c72.magnify*=zone.magnify;_c6f=_c72.endTime;}}}}if("startsOn" in this._params){this._start=this._unit.parseFromObject(this._params.startsOn);}else{if("endsOn" in this._params){this._start=this._unit.parseFromObject(this._params.endsOn);this.shiftPixels(-this._timeline.getPixelLength());}else{if("centersOn" in this._params){this._start=this._unit.parseFromObject(this._params.centersOn);this.shiftPixels(-this._timeline.getPixelLength()/2);}else{this._start=this._unit.makeDefaultValue();this.shiftPixels(-this._timeline.getPixelLength()/2);}}}};Timeline.HotZoneEther.prototype.setDate=function(date){this._start=this._unit.cloneValue(date);};Timeline.HotZoneEther.prototype.shiftPixels=function(_c74){this._start=this.pixelOffsetToDate(_c74);};Timeline.HotZoneEther.prototype.dateToPixelOffset=function(date){return this._dateDiffToPixelOffset(this._start,date);};Timeline.HotZoneEther.prototype.pixelOffsetToDate=function(_c76){return this._pixelOffsetToDate(_c76,this._start);};Timeline.HotZoneEther.prototype._dateDiffToPixelOffset=function(_c77,_c78){var _c79=this._getScale();var _c7a=_c77;var _c7b=_c78;var _c7c=0;if(this._unit.compare(_c7a,_c7b)<0){var z=0;while(z<this._zones.length){if(this._unit.compare(_c7a,this._zones[z].endTime)<0){break;}z++;}while(this._unit.compare(_c7a,_c7b)<0){var zone=this._zones[z];var _c7f=this._unit.earlier(_c7b,zone.endTime);_c7c+=(this._unit.compare(_c7f,_c7a)/(_c79/zone.magnify));_c7a=_c7f;z++;}}else{var z=this._zones.length-1;while(z>=0){if(this._unit.compare(_c7a,this._zones[z].startTime)>0){break;}z--;}while(this._unit.compare(_c7a,_c7b)>0){var zone=this._zones[z];var _c7f=this._unit.later(_c7b,zone.startTime);_c7c+=(this._unit.compare(_c7f,_c7a)/(_c79/zone.magnify));_c7a=_c7f;z--;}}return _c7c;};Timeline.HotZoneEther.prototype._pixelOffsetToDate=function(_c80,_c81){var _c82=this._getScale();var time=_c81;if(_c80>0){var z=0;while(z<this._zones.length){if(this._unit.compare(time,this._zones[z].endTime)<0){break;}z++;}while(_c80>0){var zone=this._zones[z];var _c86=_c82/zone.magnify;if(zone.endTime==Number.POSITIVE_INFINITY){time=this._unit.change(time,_c80*_c86);_c80=0;}else{var _c87=this._unit.compare(zone.endTime,time)/_c86;if(_c87>_c80){time=this._unit.change(time,_c80*_c86);_c80=0;}else{time=zone.endTime;_c80-=_c87;}}z++;}}else{var z=this._zones.length-1;while(z>=0){if(this._unit.compare(time,this._zones[z].startTime)>0){break;}z--;}_c80=-_c80;while(_c80>0){var zone=this._zones[z];var _c86=_c82/zone.magnify;if(zone.startTime==Number.NEGATIVE_INFINITY){time=this._unit.change(time,-_c80*_c86);_c80=0;}else{var _c87=this._unit.compare(time,zone.startTime)/_c86;if(_c87>_c80){time=this._unit.change(time,-_c80*_c86);_c80=0;}else{time=zone.startTime;_c80-=_c87;}}z--;}}return time;};Timeline.HotZoneEther.prototype._getScale=function(){return this._interval/this._pixelsPerInterval;};Timeline.GregorianDateLabeller=function(_c88,_c89){this._locale=_c88;this._timeZone=_c89;};Timeline.GregorianDateLabeller.monthNames=[];Timeline.GregorianDateLabeller.dayNames=[];Timeline.GregorianDateLabeller.labelIntervalFunctions=[];Timeline.GregorianDateLabeller.getMonthName=function(_c8a,_c8b){return Timeline.GregorianDateLabeller.monthNames[_c8b][_c8a];};Timeline.GregorianDateLabeller.prototype.labelInterval=function(date,_c8d){var f=Timeline.GregorianDateLabeller.labelIntervalFunctions[this._locale];if(f==null){f=Timeline.GregorianDateLabeller.prototype.defaultLabelInterval;}return f.call(this,date,_c8d);};Timeline.GregorianDateLabeller.prototype.labelPrecise=function(date){return SimileAjax.DateTime.removeTimeZoneOffset(date,this._timeZone).toUTCString();};Timeline.GregorianDateLabeller.prototype.defaultLabelInterval=function(date,_c91){var text;var _c93=false;date=SimileAjax.DateTime.removeTimeZoneOffset(date,this._timeZone);switch(_c91){case SimileAjax.DateTime.MILLISECOND:text=date.getUTCMilliseconds();break;case SimileAjax.DateTime.SECOND:text=date.getUTCSeconds();break;case SimileAjax.DateTime.MINUTE:var m=date.getUTCMinutes();if(m==0){text=date.getUTCHours()+":00";_c93=true;}else{text=m;}break;case SimileAjax.DateTime.HOUR:text=date.getUTCHours()+"hr";break;case SimileAjax.DateTime.DAY:text=Timeline.GregorianDateLabeller.getMonthName(date.getUTCMonth(),this._locale)+" "+date.getUTCDate();break;case SimileAjax.DateTime.WEEK:text=Timeline.GregorianDateLabeller.getMonthName(date.getUTCMonth(),this._locale)+" "+date.getUTCDate();break;case SimileAjax.DateTime.MONTH:var m=date.getUTCMonth();if(m!=0){text=Timeline.GregorianDateLabeller.getMonthName(m,this._locale);break;}case SimileAjax.DateTime.YEAR:case SimileAjax.DateTime.DECADE:case SimileAjax.DateTime.CENTURY:case SimileAjax.DateTime.MILLENNIUM:var y=date.getUTCFullYear();if(y>0){text=date.getUTCFullYear();}else{text=(1-y)+"BC";}_c93=(_c91==SimileAjax.DateTime.MONTH)||(_c91==SimileAjax.DateTime.DECADE&&y%100==0)||(_c91==SimileAjax.DateTime.CENTURY&&y%1000==0);break;default:text=date.toUTCString();}return {text:text,emphasized:_c93};};Timeline.StaticTrackBasedLayout=function(_c96){this._eventSource=_c96.eventSource;this._ether=_c96.ether;this._theme=_c96.theme;this._showText=("showText" in _c96)?_c96.showText:true;this._laidout=false;var _c97=this;if(this._eventSource!=null){this._eventSource.addListener({onAddMany:function(){_c97._laidout=false;}});}};Timeline.StaticTrackBasedLayout.prototype.initialize=function(_c98){this._timeline=_c98;};Timeline.StaticTrackBasedLayout.prototype.getTrack=function(evt){if(!this._laidout){this._tracks=[];this._layout();this._laidout=true;}return this._tracks[evt.getID()];};Timeline.StaticTrackBasedLayout.prototype.getTrackCount=function(){if(!this._laidout){this._tracks=[];this._layout();this._laidout=true;}return this._trackCount;};Timeline.StaticTrackBasedLayout.prototype._layout=function(){if(this._eventSource==null){return;}var _c9a=[Number.NEGATIVE_INFINITY];var _c9b=this;var _c9c=this._showText;var _c9d=this._theme;var _c9e=_c9d.event;var _c9f=function(evt,_ca1,_ca2,_ca3){var _ca4=_ca1-1;if(evt.isImprecise()){_ca4=_ca2;}if(_c9c){_ca4=Math.max(_ca4,_ca1+_c9e.label.width);}return _ca4;};var _ca5=function(evt,_ca7,_ca8,_ca9){if(evt.isImprecise()){var _caa=evt.getStart();var _cab=evt.getEnd();var _cac=Math.round(_c9b._ether.dateToPixelOffset(_caa));var _cad=Math.round(_c9b._ether.dateToPixelOffset(_cab));}else{var _cac=_ca7;var _cad=_ca8;}var _cae=_cad;var _caf=Math.max(_cad-_cac,1);if(_c9c){if(_caf<_c9e.label.width){_cae=_cad+_c9e.label.width;}}return _cae;};var _cb0=function(evt){var _cb2=evt.getStart();var _cb3=evt.getEnd();var _cb4=Math.round(_c9b._ether.dateToPixelOffset(_cb2));var _cb5=Math.round(_c9b._ether.dateToPixelOffset(_cb3));var _cb6=0;for(;_cb6<_c9a.length;_cb6++){if(_c9a[_cb6]<_cb4){break;}}if(_cb6>=_c9a.length){_c9a.push(Number.NEGATIVE_INFINITY);}var _cb7=(_c9e.track.offset+_cb6*(_c9e.track.height+_c9e.track.gap))+"em";_c9b._tracks[evt.getID()]=_cb6;if(evt.isInstant()){_c9a[_cb6]=_c9f(evt,_cb4,_cb5,_cb7);}else{_c9a[_cb6]=_ca5(evt,_cb4,_cb5,_cb7);}};var _cb8=this._eventSource.getAllEventIterator();while(_cb8.hasNext()){var evt=_cb8.next();_cb0(evt);}this._trackCount=_c9a.length;};Timeline.DurationEventPainter=function(_cba){this._params=_cba;this._theme=_cba.theme;this._layout=_cba.layout;this._onSelectListeners=[];this._showText=_cba.showText;this._showLineForNoText=("showLineForNoText" in _cba)?_cba.showLineForNoText:_cba.theme.event.instant.showLineForNoText;this._filterMatcher=null;this._highlightMatcher=null;this._eventIdToElmt={};};Timeline.DurationEventPainter.prototype.initialize=function(band,_cbc){this._band=band;this._timeline=_cbc;this._layout.initialize(band,_cbc);this._eventLayer=null;this._highlightLayer=null;};Timeline.DurationEventPainter.prototype.addOnSelectListener=function(_cbd){this._onSelectListeners.push(_cbd);};Timeline.DurationEventPainter.prototype.removeOnSelectListener=function(_cbe){for(var i=0;i<this._onSelectListeners.length;i++){if(this._onSelectListeners[i]==_cbe){this._onSelectListeners.splice(i,1);break;}}};Timeline.DurationEventPainter.prototype.getLayout=function(){return this._layout;};Timeline.DurationEventPainter.prototype.setLayout=function(_cc0){this._layout=_cc0;};Timeline.DurationEventPainter.prototype.getFilterMatcher=function(){return this._filterMatcher;};Timeline.DurationEventPainter.prototype.setFilterMatcher=function(_cc1){this._filterMatcher=_cc1;};Timeline.DurationEventPainter.prototype.getHighlightMatcher=function(){return this._highlightMatcher;};Timeline.DurationEventPainter.prototype.setHighlightMatcher=function(_cc2){this._highlightMatcher=_cc2;};Timeline.DurationEventPainter.prototype.paint=function(){var _cc3=this._band.getEventSource();if(_cc3==null){return;}this._eventIdToElmt={};if(this._highlightLayer!=null){this._band.removeLayerDiv(this._highlightLayer);}this._highlightLayer=this._band.createLayerDiv(105);this._highlightLayer.setAttribute("name","event-highlights");this._highlightLayer.style.display="none";if(this._eventLayer!=null){this._band.removeLayerDiv(this._eventLayer);}this._eventLayer=this._band.createLayerDiv(110);this._eventLayer.setAttribute("name","events");this._eventLayer.style.display="none";var _cc4=this._band.getMinDate();var _cc5=this._band.getMaxDate();var _cc6=(this._filterMatcher!=null)?this._filterMatcher:function(evt){return true;};var _cc8=(this._highlightMatcher!=null)?this._highlightMatcher:function(evt){return -1;};var _cca=_cc3.getEventIterator(_cc4,_cc5);while(_cca.hasNext()){var evt=_cca.next();if(_cc6(evt)){this.paintEvent(evt,_cc8(evt));}}this._highlightLayer.style.display="block";this._eventLayer.style.display="block";};Timeline.DurationEventPainter.prototype.softPaint=function(){};Timeline.DurationEventPainter.prototype.paintEvent=function(evt,_ccd){var _cce=this._params.theme;var _ccf=_cce.event;var _cd0=_ccf.track.offset;var _cd1=("trackHeight" in this._params)?this._params.trackHeight:_ccf.track.height;var _cd2=("trackGap" in this._params)?this._params.trackGap:_ccf.track.gap;var _cd3=evt.getStart();var _cd4=evt.getEnd();var _cd5=Math.round(this._band.dateToPixelOffset(_cd3));var _cd6=Math.round(this._band.dateToPixelOffset(_cd4));var _cd7=(_cd0+this._layout.getTrack(evt)*(_cd1+_cd2));if(evt.isInstant()){this.paintInstantEvent(evt,_cd5,_cd6,_cd7+"em",_cd1,_ccd,_cd7-_cd2,_cd1+2*_cd2);}else{this.paintDurationEvent(evt,_cd5,_cd6,_cd7+"em",_cd1,_ccd,_cd7-_cd2,_cd1+2*_cd2);}};Timeline.DurationEventPainter.prototype.paintInstantEvent=function(evt,_cd9,_cda,_cdb,_cdc,_cdd,_cde,_cdf){var p=this;var doc=this._timeline.getDocument();var _ce2=this._params.theme;var _ce3=_ce2.event;if(evt.isImprecise()){var _ce4=Math.max(_cda-_cd9,1);var _ce5=doc.createElement("div");_ce5.style.position="absolute";_ce5.style.overflow="hidden";_ce5.style.top=_cdb;_ce5.style.height=_cdc+"em";_ce5.style.left=_cd9+"px";_ce5.style.width=_ce4+"px";_ce5.style.background=_ce3.instant.impreciseColor;if(_ce3.instant.impreciseOpacity<100){SimileAjax.Graphics.setOpacity(_ce5,_ce3.instant.impreciseOpacity);}this._eventLayer.appendChild(_ce5);}var div=doc.createElement("div");div.style.position="absolute";div.style.overflow="hidden";this._eventLayer.appendChild(div);var _ce7=evt.getTextColor();var _ce8=evt.getColor();var _ce9=-8;var _ce4=16;if(this._showText){div.style.width=_ce3.label.width+"px";div.style.color=_ce7!=null?_ce7:_ce3.label.outsideColor;this._appendIcon(evt,div);this._eventIdToElmt[evt.getID()]=div.lastChild;div.appendChild(doc.createTextNode(evt.getText()));}else{if(p._showLineForNoText){div.style.width="1px";div.style.borderLeft="1px solid "+(_ce8!=null?_ce8:_ce3.instant.lineColor);_ce9=0;_ce4=1;this._eventIdToElmt[evt.getID()]=div;}else{this._appendIcon(evt,div);this._eventIdToElmt[evt.getID()]=div.lastChild;}}div.style.top=_cdb;div.style.height=_cdc+"em";div.style.left=(_cd9+_ce9)+"px";this._createHighlightDiv(_cdd,(_cd9+_ce9),_ce4,_cde,_cdf);};Timeline.DurationEventPainter.prototype.paintDurationEvent=function(evt,_ceb,_cec,_ced,_cee,_cef,_cf0,_cf1){var p=this;var doc=this._timeline.getDocument();var _cf4=this._params.theme;var _cf5=_cf4.event;var _cf6=function(elmt){elmt.style.cursor="pointer";SimileAjax.DOM.registerEvent(elmt,"mousedown",function(elmt,_cf9,_cfa){p._onClickDurationEvent(_cfa,_cf9,evt);SimileAjax.DOM.cancelEvent(evt);return false;});};var _cfb=Math.max(_cec-_ceb,1);if(evt.isImprecise()){var div=doc.createElement("div");div.style.position="absolute";div.style.overflow="hidden";div.style.top=_ced;div.style.height=_cee+"em";div.style.left=_ceb+"px";div.style.width=_cfb+"px";div.style.background=_cf5.duration.impreciseColor;if(_cf5.duration.impreciseOpacity<100){SimileAjax.Graphics.setOpacity(div,_cf5.duration.impreciseOpacity);}this._eventLayer.appendChild(div);var _cfd=evt.getLatestStart();var _cfe=evt.getEarliestEnd();var _cff=Math.round(p._band.dateToPixelOffset(_cfd));var _d00=Math.round(p._band.dateToPixelOffset(_cfe));}else{var _cff=_ceb;var _d00=_cec;}var _d01=evt.getTextColor();var _d02=true;if(_cff<=_d00){_cfb=Math.max(_d00-_cff,1);_d02=!(_cfb>_cf5.label.width);div=doc.createElement("div");div.style.position="absolute";div.style.overflow="hidden";div.style.top=_ced;div.style.height=_cee+"em";div.style.left=_cff+"px";div.style.width=_cfb+"px";var _d03=evt.getColor();div.style.background=_d03!=null?_d03:_cf5.duration.color;if(_cf5.duration.opacity<100){SimileAjax.Graphics.setOpacity(div,_cf5.duration.opacity);}this._eventLayer.appendChild(div);}else{var temp=_cff;_cff=_d00;_d00=temp;}_cf6(div);if(this._showText){var _d05=doc.createElement("div");_d05.style.position="absolute";_d05.style.top=_ced;_d05.style.height=_cee+"em";_d05.style.left=((_cfb>_cf5.label.width)?_cff:_d00)+"px";_d05.style.width=_cf5.label.width+"px";_d05.style.color=_d01!=null?_d01:(_d02?_cf5.label.outsideColor:_cf5.label.insideColor);_d05.style.overflow="hidden";_d05.appendChild(doc.createTextNode(evt.getText()));this._eventLayer.appendChild(_d05);_cf6(_d05);}this._createHighlightDiv(_cef,_ceb,_cec-_ceb,_cf0,_cf1);this._eventIdToElmt[evt.getID()]=div;};Timeline.DurationEventPainter.prototype._appendIcon=function(evt,div){var p=this;var doc=this._timeline.getDocument();var _d0a=this._params.theme;var _d0b=_d0a.event;var icon=evt.getIcon();var img=SimileAjax.Graphics.createTranslucentImage(icon!=null?icon:_d0b.instant.icon,"middle");div.appendChild(img);div.style.cursor="pointer";SimileAjax.DOM.registerEvent(div,"mousedown",function(elmt,_d0f,_d10){p._onClickInstantEvent(img,_d0f,evt);SimileAjax.DOM.cancelEvent(evt);return false;});};Timeline.DurationEventPainter.prototype._createHighlightDiv=function(_d11,_d12,_d13,_d14,_d15){if(_d11>=0){var doc=this._timeline.getDocument();var _d17=this._params.theme;var _d18=_d17.event;var _d19=_d18.highlightColors[Math.min(_d11,_d18.highlightColors.length-1)];var div=doc.createElement("div");div.style.position="absolute";div.style.overflow="hidden";div.style.left=(_d12-3)+"px";div.style.width=(_d13+6)+"px";div.style.top=_d14+"em";div.style.height=_d15+"em";div.style.background=_d19;this._highlightLayer.appendChild(div);}};Timeline.DurationEventPainter.prototype._onClickInstantEvent=function(icon,_d1c,evt){_d1c.cancelBubble=true;var c=SimileAjax.DOM.getPageCoordinates(icon);this._showBubble(c.left+Math.ceil(icon.offsetWidth/2),c.top+Math.ceil(icon.offsetHeight/2),evt);this._fireOnSelect(evt.getID());};Timeline.DurationEventPainter.prototype._onClickDurationEvent=function(_d1f,_d20,evt){_d20.cancelBubble=true;if("pageX" in _d20){var x=_d20.pageX;var y=_d20.pageY;}else{var c=SimileAjax.DOM.getPageCoordinates(_d1f);var x=_d20.offsetX+c.left;var y=_d20.offsetY+c.top;}this._showBubble(x,y,evt);this._fireOnSelect(evt.getID());};Timeline.DurationEventPainter.prototype.showBubble=function(evt){var elmt=this._eventIdToElmt[evt.getID()];if(elmt){var c=SimileAjax.DOM.getPageCoordinates(elmt);this._showBubble(c.left+elmt.offsetWidth/2,c.top+elmt.offsetHeight/2,evt);}};Timeline.DurationEventPainter.prototype._showBubble=function(x,y,evt){var div=this._band.openBubbleForPoint(x,y,this._theme.event.bubble.width,this._theme.event.bubble.height);evt.fillInfoBubble(div,this._theme,this._band.getLabeller());};Timeline.DurationEventPainter.prototype._fireOnSelect=function(_d2c){for(var i=0;i<this._onSelectListeners.length;i++){this._onSelectListeners[i](_d2c);}};Timeline.DefaultEventSource=function(_d2e){this._events=(_d2e instanceof Object)?_d2e:new SimileAjax.EventIndex();this._listeners=[];};Timeline.DefaultEventSource.prototype.addListener=function(_d2f){this._listeners.push(_d2f);};Timeline.DefaultEventSource.prototype.removeListener=function(_d30){for(var i=0;i<this._listeners.length;i++){if(this._listeners[i]==_d30){this._listeners.splice(i,1);break;}}};Timeline.DefaultEventSource.prototype.loadXML=function(xml,url){var base=this._getBaseURL(url);var _d35=xml.documentElement.getAttribute("wiki-url");var _d36=xml.documentElement.getAttribute("wiki-section");var _d37=xml.documentElement.getAttribute("date-time-format");var _d38=this._events.getUnit().getParser(_d37);var node=xml.documentElement.firstChild;var _d3a=false;while(node!=null){if(node.nodeType==1){var _d3b="";if(node.firstChild!=null&&node.firstChild.nodeType==3){_d3b=node.firstChild.nodeValue;}var evt=new Timeline.DefaultEventSource.Event(node.getAttribute("id"),_d38(node.getAttribute("start")),_d38(node.getAttribute("end")),_d38(node.getAttribute("latestStart")),_d38(node.getAttribute("earliestEnd")),node.getAttribute("isDuration")!="true",node.getAttribute("title"),_d3b,this._resolveRelativeURL(node.getAttribute("image"),base),this._resolveRelativeURL(node.getAttribute("link"),base),this._resolveRelativeURL(node.getAttribute("icon"),base),node.getAttribute("color"),node.getAttribute("textColor"));evt._node=node;evt.getProperty=function(name){return this._node.getAttribute(name);};evt.setWikiInfo(_d35,_d36);this._events.add(evt);_d3a=true;}node=node.nextSibling;}if(_d3a){this._fire("onAddMany",[]);}};Timeline.DefaultEventSource.prototype.loadJSON=function(data,url){var base=this._getBaseURL(url);var _d41=false;if(data&&data.events){var _d42=("wikiURL" in data)?data.wikiURL:null;var _d43=("wikiSection" in data)?data.wikiSection:null;var _d44=("dateTimeFormat" in data)?data.dateTimeFormat:null;var _d45=this._events.getUnit().getParser(_d44);for(var i=0;i<data.events.length;i++){var _d47=data.events[i];var evt=new Timeline.DefaultEventSource.Event(("id" in _d47)?_d47.id:undefined,_d45(_d47.start),_d45(_d47.end),_d45(_d47.latestStart),_d45(_d47.earliestEnd),_d47.isDuration||false,_d47.title,_d47.description,this._resolveRelativeURL(_d47.image,base),this._resolveRelativeURL(_d47.link,base),this._resolveRelativeURL(_d47.icon,base),_d47.color,_d47.textColor);evt._obj=_d47;evt.getProperty=function(name){return this._obj[name];};evt.setWikiInfo(_d42,_d43);this._events.add(evt);_d41=true;}}if(_d41){this._fire("onAddMany",[]);}};Timeline.DefaultEventSource.prototype.loadSPARQL=function(xml,url){var base=this._getBaseURL(url);var _d4d="iso8601";var _d4e=this._events.getUnit().getParser(_d4d);if(xml==null){return;}var node=xml.documentElement.firstChild;while(node!=null&&(node.nodeType!=1||node.nodeName!="results")){node=node.nextSibling;}var _d50=null;var _d51=null;if(node!=null){_d50=node.getAttribute("wiki-url");_d51=node.getAttribute("wiki-section");node=node.firstChild;}var _d52=false;while(node!=null){if(node.nodeType==1){var _d53={};var _d54=node.firstChild;while(_d54!=null){if(_d54.nodeType==1&&_d54.firstChild!=null&&_d54.firstChild.nodeType==1&&_d54.firstChild.firstChild!=null&&_d54.firstChild.firstChild.nodeType==3){_d53[_d54.getAttribute("name")]=_d54.firstChild.firstChild.nodeValue;}_d54=_d54.nextSibling;}if(_d53["start"]==null&&_d53["date"]!=null){_d53["start"]=_d53["date"];}var evt=new Timeline.DefaultEventSource.Event(_d53["id"],_d4e(_d53["start"]),_d4e(_d53["end"]),_d4e(_d53["latestStart"]),_d4e(_d53["earliestEnd"]),_d53["isDuration"]!="true",_d53["title"],_d53["description"],this._resolveRelativeURL(_d53["image"],base),this._resolveRelativeURL(_d53["link"],base),this._resolveRelativeURL(_d53["icon"],base),_d53["color"],_d53["textColor"]);evt._bindings=_d53;evt.getProperty=function(name){return this._bindings[name];};evt.setWikiInfo(_d50,_d51);this._events.add(evt);_d52=true;}node=node.nextSibling;}if(_d52){this._fire("onAddMany",[]);}};Timeline.DefaultEventSource.prototype.add=function(evt){this._events.add(evt);this._fire("onAddOne",[evt]);};Timeline.DefaultEventSource.prototype.addMany=function(_d58){for(var i=0;i<_d58.length;i++){this._events.add(_d58[i]);}this._fire("onAddMany",[]);};Timeline.DefaultEventSource.prototype.clear=function(){this._events.removeAll();this._fire("onClear",[]);};Timeline.DefaultEventSource.prototype.getEvent=function(id){return this._events.getEvent(id);};Timeline.DefaultEventSource.prototype.getEventIterator=function(_d5b,_d5c){return this._events.getIterator(_d5b,_d5c);};Timeline.DefaultEventSource.prototype.getAllEventIterator=function(){return this._events.getAllIterator();};Timeline.DefaultEventSource.prototype.getCount=function(){return this._events.getCount();};Timeline.DefaultEventSource.prototype.getEarliestDate=function(){return this._events.getEarliestDate();};Timeline.DefaultEventSource.prototype.getLatestDate=function(){return this._events.getLatestDate();};Timeline.DefaultEventSource.prototype._fire=function(_d5d,args){for(var i=0;i<this._listeners.length;i++){var _d60=this._listeners[i];if(_d5d in _d60){try{_d60[_d5d].apply(_d60,args);}catch(e){SimileAjax.Debug.exception(e);}}}};Timeline.DefaultEventSource.prototype._getBaseURL=function(url){if(url.indexOf("://")<0){var url2=this._getBaseURL(document.location.href);if(url.substr(0,1)=="/"){url=url2.substr(0,url2.indexOf("/",url2.indexOf("://")+3))+url;}else{url=url2+url;}}var i=url.lastIndexOf("/");if(i<0){return "";}else{return url.substr(0,i+1);}};Timeline.DefaultEventSource.prototype._resolveRelativeURL=function(url,base){if(url==null||url==""){return url;}else{if(url.indexOf("://")>0){return url;}else{if(url.substr(0,1)=="/"){return base.substr(0,base.indexOf("/",base.indexOf("://")+3))+url;}else{return base+url;}}}};Timeline.DefaultEventSource.Event=function(id,_d67,end,_d69,_d6a,_d6b,text,_d6d,_d6e,link,icon,_d71,_d72){id=(id)?id.trim():"";this._id=id.length>0?id:("e"+Math.floor(Math.random()*1000000));this._instant=_d6b||(end==null);this._start=_d67;this._end=(end!=null)?end:_d67;this._latestStart=(_d69!=null)?_d69:(_d6b?this._end:this._start);this._earliestEnd=(_d6a!=null)?_d6a:(_d6b?this._start:this._end);this._text=SimileAjax.HTML.deEntify(text);this._description=SimileAjax.HTML.deEntify(_d6d);this._image=(_d6e!=null&&_d6e!="")?_d6e:null;this._link=(link!=null&&link!="")?link:null;this._icon=(icon!=null&&icon!="")?icon:null;this._color=(_d71!=null&&_d71!="")?_d71:null;this._textColor=(_d72!=null&&_d72!="")?_d72:null;this._wikiURL=null;this._wikiSection=null;};Timeline.DefaultEventSource.Event.prototype={getID:function(){return this._id;},isInstant:function(){return this._instant;},isImprecise:function(){return this._start!=this._latestStart||this._end!=this._earliestEnd;},getStart:function(){return this._start;},getEnd:function(){return this._end;},getLatestStart:function(){return this._latestStart;},getEarliestEnd:function(){return this._earliestEnd;},getText:function(){return this._text;},getDescription:function(){return this._description;},getImage:function(){return this._image;},getLink:function(){return this._link;},getIcon:function(){return this._icon;},getColor:function(){return this._color;},getTextColor:function(){return this._textColor;},getProperty:function(name){return null;},getWikiURL:function(){return this._wikiURL;},getWikiSection:function(){return this._wikiSection;},setWikiInfo:function(_d74,_d75){this._wikiURL=_d74;this._wikiSection=_d75;},fillDescription:function(elmt){elmt.innerHTML=this._description;},fillWikiInfo:function(elmt){if(this._wikiURL!=null&&this._wikiSection!=null){var _d78=this.getProperty("wikiID");if(_d78==null||_d78.length==0){_d78=this.getText();}_d78=_d78.replace(/\s/g,"_");var url=this._wikiURL+this._wikiSection.replace(/\s/g,"_")+"/"+_d78;var a=document.createElement("a");a.href=url;a.target="new";a.innerHTML=Timeline.strings[Timeline.clientLocale].wikiLinkLabel;elmt.appendChild(document.createTextNode("["));elmt.appendChild(a);elmt.appendChild(document.createTextNode("]"));}else{elmt.style.display="none";}},fillTime:function(elmt,_d7c){if(this._instant){if(this.isImprecise()){elmt.appendChild(elmt.ownerDocument.createTextNode(_d7c.labelPrecise(this._start)));elmt.appendChild(elmt.ownerDocument.createElement("br"));elmt.appendChild(elmt.ownerDocument.createTextNode(_d7c.labelPrecise(this._end)));}else{elmt.appendChild(elmt.ownerDocument.createTextNode(_d7c.labelPrecise(this._start)));}}else{if(this.isImprecise()){elmt.appendChild(elmt.ownerDocument.createTextNode(_d7c.labelPrecise(this._start)+" ~ "+_d7c.labelPrecise(this._latestStart)));elmt.appendChild(elmt.ownerDocument.createElement("br"));elmt.appendChild(elmt.ownerDocument.createTextNode(_d7c.labelPrecise(this._earliestEnd)+" ~ "+_d7c.labelPrecise(this._end)));}else{elmt.appendChild(elmt.ownerDocument.createTextNode(_d7c.labelPrecise(this._start)));elmt.appendChild(elmt.ownerDocument.createElement("br"));elmt.appendChild(elmt.ownerDocument.createTextNode(_d7c.labelPrecise(this._end)));}}},fillInfoBubble:function(elmt,_d7e,_d7f){var doc=elmt.ownerDocument;var _d81=this.getText();var link=this.getLink();var _d83=this.getImage();if(_d83!=null){var img=doc.createElement("img");img.src=_d83;_d7e.event.bubble.imageStyler(img);elmt.appendChild(img);}var _d85=doc.createElement("div");var _d86=doc.createTextNode(_d81);if(link!=null){var a=doc.createElement("a");a.href=link;a.appendChild(_d86);_d85.appendChild(a);}else{_d85.appendChild(_d86);}_d7e.event.bubble.titleStyler(_d85);elmt.appendChild(_d85);var _d88=doc.createElement("div");this.fillDescription(_d88);_d7e.event.bubble.bodyStyler(_d88);elmt.appendChild(_d88);var _d89=doc.createElement("div");this.fillTime(_d89,_d7f);_d7e.event.bubble.timeStyler(_d89);elmt.appendChild(_d89);var _d8a=doc.createElement("div");this.fillWikiInfo(_d8a);_d7e.event.bubble.wikiStyler(_d8a);elmt.appendChild(_d8a);}};Timeline.ClassicTheme=new Object();Timeline.ClassicTheme.implementations=[];Timeline.ClassicTheme.create=function(_d8b){if(_d8b==null){_d8b=Timeline.getDefaultLocale();}var f=Timeline.ClassicTheme.implementations[_d8b];if(f==null){f=Timeline.ClassicTheme._Impl;}return new f();};Timeline.ClassicTheme._Impl=function(){this.firstDayOfWeek=0;this.ether={backgroundColors:["#EEE","#DDD","#CCC","#AAA"],highlightColor:"white",highlightOpacity:50,interval:{line:{show:true,color:"#aaa",opacity:25},weekend:{color:"#FFFFE0",opacity:30},marker:{hAlign:"Bottom",hBottomStyler:function(elmt){elmt.className="timeline-ether-marker-bottom";},hBottomEmphasizedStyler:function(elmt){elmt.className="timeline-ether-marker-bottom-emphasized";},hTopStyler:function(elmt){elmt.className="timeline-ether-marker-top";},hTopEmphasizedStyler:function(elmt){elmt.className="timeline-ether-marker-top-emphasized";},vAlign:"Right",vRightStyler:function(elmt){elmt.className="timeline-ether-marker-right";},vRightEmphasizedStyler:function(elmt){elmt.className="timeline-ether-marker-right-emphasized";},vLeftStyler:function(elmt){elmt.className="timeline-ether-marker-left";},vLeftEmphasizedStyler:function(elmt){elmt.className="timeline-ether-marker-left-emphasized";}}}};this.event={track:{offset:0.5,height:1.5,gap:0.5},instant:{icon:Timeline.urlPrefix+"images/dull-blue-circle.png",lineColor:"#58A0DC",impreciseColor:"#58A0DC",impreciseOpacity:20,showLineForNoText:true},duration:{color:"#58A0DC",opacity:100,impreciseColor:"#58A0DC",impreciseOpacity:20},label:{insideColor:"white",outsideColor:"black",width:200},highlightColors:["#FFFF00","#FFC000","#FF0000","#0000FF"],bubble:{width:250,height:125,titleStyler:function(elmt){elmt.className="timeline-event-bubble-title";},bodyStyler:function(elmt){elmt.className="timeline-event-bubble-body";},imageStyler:function(elmt){elmt.className="timeline-event-bubble-image";},wikiStyler:function(elmt){elmt.className="timeline-event-bubble-wiki";},timeStyler:function(elmt){elmt.className="timeline-event-bubble-time";}}};};Timeline.strings={};Timeline.getDefaultLocale=function(){return Timeline.clientLocale;};Timeline.create=function(elmt,_d9b,_d9c,unit){return new Timeline._Impl(elmt,_d9b,_d9c,unit);};Timeline.HORIZONTAL=0;Timeline.VERTICAL=1;Timeline._defaultTheme=null;Timeline.createBandInfo=function(_d9e){var _d9f=("theme" in _d9e)?_d9e.theme:Timeline.getDefaultTheme();var _da0=("eventSource" in _d9e)?_d9e.eventSource:null;var _da1=new Timeline.LinearEther({centersOn:("date" in _d9e)?_d9e.date:new Date(),interval:SimileAjax.DateTime.gregorianUnitLengths[_d9e.intervalUnit],pixelsPerInterval:_d9e.intervalPixels});var _da2=new Timeline.GregorianEtherPainter({unit:_d9e.intervalUnit,multiple:("multiple" in _d9e)?_d9e.multiple:1,theme:_d9f,align:("align" in _d9e)?_d9e.align:undefined});var _da3=new Timeline.StaticTrackBasedLayout({eventSource:_da0,ether:_da1,showText:("showEventText" in _d9e)?_d9e.showEventText:true,theme:_d9f});var _da4={showText:("showEventText" in _d9e)?_d9e.showEventText:true,layout:_da3,theme:_d9f};if("trackHeight" in _d9e){_da4.trackHeight=_d9e.trackHeight;}if("trackGap" in _d9e){_da4.trackGap=_d9e.trackGap;}var _da5=new Timeline.DurationEventPainter(_da4);return {width:_d9e.width,eventSource:_da0,timeZone:("timeZone" in _d9e)?_d9e.timeZone:0,ether:_da1,etherPainter:_da2,eventPainter:_da5};};Timeline.createHotZoneBandInfo=function(_da6){var _da7=("theme" in _da6)?_da6.theme:Timeline.getDefaultTheme();var _da8=("eventSource" in _da6)?_da6.eventSource:null;var _da9=new Timeline.HotZoneEther({centersOn:("date" in _da6)?_da6.date:new Date(),interval:SimileAjax.DateTime.gregorianUnitLengths[_da6.intervalUnit],pixelsPerInterval:_da6.intervalPixels,zones:_da6.zones});var _daa=new Timeline.HotZoneGregorianEtherPainter({unit:_da6.intervalUnit,zones:_da6.zones,theme:_da7,align:("align" in _da6)?_da6.align:undefined});var _dab=new Timeline.StaticTrackBasedLayout({eventSource:_da8,ether:_da9,theme:_da7});var _dac={showText:("showEventText" in _da6)?_da6.showEventText:true,layout:_dab,theme:_da7};if("trackHeight" in _da6){_dac.trackHeight=_da6.trackHeight;}if("trackGap" in _da6){_dac.trackGap=_da6.trackGap;}var _dad=new Timeline.DurationEventPainter(_dac);return {width:_da6.width,eventSource:_da8,timeZone:("timeZone" in _da6)?_da6.timeZone:0,ether:_da9,etherPainter:_daa,eventPainter:_dad};};Timeline.getDefaultTheme=function(){if(Timeline._defaultTheme==null){Timeline._defaultTheme=Timeline.ClassicTheme.create(Timeline.getDefaultLocale());}return Timeline._defaultTheme;};Timeline.setDefaultTheme=function(_dae){Timeline._defaultTheme=_dae;};Timeline.loadXML=function(url,f){var _db1=function(_db2,_db3,_db4){alert("Failed to load data xml from "+url+"\n"+_db2);};var _db5=function(_db6){var xml=_db6.responseXML;if(!xml.documentElement&&_db6.responseStream){xml.load(_db6.responseStream);}f(xml,url);};SimileAjax.XmlHttp.get(url,_db1,_db5);};Timeline.loadJSON=function(url,f){var _dba=function(_dbb,_dbc,_dbd){alert("Failed to load json data from "+url+"\n"+_dbb);};var _dbe=function(_dbf){f(eval("("+_dbf.responseText+")"),url);};SimileAjax.XmlHttp.get(url,_dba,_dbe);};Timeline._Impl=function(elmt,_dc1,_dc2,unit){SimileAjax.WindowManager.initialize();this._containerDiv=elmt;this._bandInfos=_dc1;this._orientation=_dc2==null?Timeline.HORIZONTAL:_dc2;this._unit=(unit!=null)?unit:SimileAjax.NativeDateUnit;this._initialize();};Timeline._Impl.prototype.dispose=function(){for(var i=0;i<this._bands.length;i++){this._bands[i].dispose();}this._bands=null;this._bandInfos=null;this._containerDiv.innerHTML="";};Timeline._Impl.prototype.getBandCount=function(){return this._bands.length;};Timeline._Impl.prototype.getBand=function(_dc5){return this._bands[_dc5];};Timeline._Impl.prototype.layout=function(){this._distributeWidths();};Timeline._Impl.prototype.paint=function(){for(var i=0;i<this._bands.length;i++){this._bands[i].paint();}};Timeline._Impl.prototype.getDocument=function(){return this._containerDiv.ownerDocument;};Timeline._Impl.prototype.addDiv=function(div){this._containerDiv.appendChild(div);};Timeline._Impl.prototype.removeDiv=function(div){this._containerDiv.removeChild(div);};Timeline._Impl.prototype.isHorizontal=function(){return this._orientation==Timeline.HORIZONTAL;};Timeline._Impl.prototype.isVertical=function(){return this._orientation==Timeline.VERTICAL;};Timeline._Impl.prototype.getPixelLength=function(){return this._orientation==Timeline.HORIZONTAL?this._containerDiv.offsetWidth:this._containerDiv.offsetHeight;};Timeline._Impl.prototype.getPixelWidth=function(){return this._orientation==Timeline.VERTICAL?this._containerDiv.offsetWidth:this._containerDiv.offsetHeight;};Timeline._Impl.prototype.getUnit=function(){return this._unit;};Timeline._Impl.prototype.loadXML=function(url,f){var tl=this;var _dcc=function(_dcd,_dce,_dcf){alert("Failed to load data xml from "+url+"\n"+_dcd);tl.hideLoadingMessage();};var _dd0=function(_dd1){try{var xml=_dd1.responseXML;if(!xml.documentElement&&_dd1.responseStream){xml.load(_dd1.responseStream);}f(xml,url);}finally{tl.hideLoadingMessage();}};this.showLoadingMessage();window.setTimeout(function(){SimileAjax.XmlHttp.get(url,_dcc,_dd0);},0);};Timeline._Impl.prototype.loadJSON=function(url,f){var tl=this;var _dd6=function(_dd7,_dd8,_dd9){alert("Failed to load json data from "+url+"\n"+_dd7);tl.hideLoadingMessage();};var _dda=function(_ddb){try{f(eval("("+_ddb.responseText+")"),url);}finally{tl.hideLoadingMessage();}};this.showLoadingMessage();window.setTimeout(function(){SimileAjax.XmlHttp.get(url,_dd6,_dda);},0);};Timeline._Impl.prototype._initialize=function(){var _ddc=this._containerDiv;var doc=_ddc.ownerDocument;_ddc.className=_ddc.className.split(" ").concat("timeline-container").join(" ");while(_ddc.firstChild){_ddc.removeChild(_ddc.firstChild);}var _dde=SimileAjax.Graphics.createTranslucentImage(Timeline.urlPrefix+(this.isHorizontal()?"images/copyright-vertical.png":"images/copyright.png"));_dde.className="timeline-copyright";_dde.title="Timeline (c) SIMILE - http://simile.mit.edu/timeline/";SimileAjax.DOM.registerEvent(_dde,"click",function(){window.location="http://simile.mit.edu/timeline/";});_ddc.appendChild(_dde);this._bands=[];for(var i=0;i<this._bandInfos.length;i++){var band=new Timeline._Band(this,this._bandInfos[i],i);this._bands.push(band);}this._distributeWidths();for(var i=0;i<this._bandInfos.length;i++){var _de1=this._bandInfos[i];if("syncWith" in _de1){this._bands[i].setSyncWithBand(this._bands[_de1.syncWith],("highlight" in _de1)?_de1.highlight:false);}}var _de2=SimileAjax.Graphics.createMessageBubble(doc);_de2.containerDiv.className="timeline-message-container";_ddc.appendChild(_de2.containerDiv);_de2.contentDiv.className="timeline-message";_de2.contentDiv.innerHTML="<img src='"+Timeline.urlPrefix+"images/progress-running.gif' /> Loading...";this.showLoadingMessage=function(){_de2.containerDiv.style.display="block";};this.hideLoadingMessage=function(){_de2.containerDiv.style.display="none";};};Timeline._Impl.prototype._distributeWidths=function(){var _de3=this.getPixelLength();var _de4=this.getPixelWidth();var _de5=0;for(var i=0;i<this._bands.length;i++){var band=this._bands[i];var _de8=this._bandInfos[i];var _de9=_de8.width;var x=_de9.indexOf("%");if(x>0){var _deb=parseInt(_de9.substr(0,x));var _dec=_deb*_de4/100;}else{var _dec=parseInt(_de9);}band.setBandShiftAndWidth(_de5,_dec);band.setViewLength(_de3);_de5+=_dec;}};Timeline._Band=function(_ded,_dee,_def){this._timeline=_ded;this._bandInfo=_dee;this._index=_def;this._locale=("locale" in _dee)?_dee.locale:Timeline.getDefaultLocale();this._timeZone=("timeZone" in _dee)?_dee.timeZone:0;this._labeller=("labeller" in _dee)?_dee.labeller:(("createLabeller" in _ded.getUnit())?_ded.getUnit().createLabeller(this._locale,this._timeZone):new Timeline.GregorianDateLabeller(this._locale,this._timeZone));this._dragging=false;this._changing=false;this._originalScrollSpeed=5;this._scrollSpeed=this._originalScrollSpeed;this._onScrollListeners=[];var b=this;this._syncWithBand=null;this._syncWithBandHandler=function(band){b._onHighlightBandScroll();};this._selectorListener=function(band){b._onHighlightBandScroll();};var _df3=this._timeline.getDocument().createElement("div");_df3.className="timeline-band-input";this._timeline.addDiv(_df3);this._keyboardInput=document.createElement("input");this._keyboardInput.type="text";_df3.appendChild(this._keyboardInput);SimileAjax.DOM.registerEventWithObject(this._keyboardInput,"keydown",this,"_onKeyDown");SimileAjax.DOM.registerEventWithObject(this._keyboardInput,"keyup",this,"_onKeyUp");this._div=this._timeline.getDocument().createElement("div");this._div.className="timeline-band";this._timeline.addDiv(this._div);SimileAjax.DOM.registerEventWithObject(this._div,"mousedown",this,"_onMouseDown");SimileAjax.DOM.registerEventWithObject(this._div,"mousemove",this,"_onMouseMove");SimileAjax.DOM.registerEventWithObject(this._div,"mouseup",this,"_onMouseUp");SimileAjax.DOM.registerEventWithObject(this._div,"mouseout",this,"_onMouseOut");SimileAjax.DOM.registerEventWithObject(this._div,"dblclick",this,"_onDblClick");this._innerDiv=this._timeline.getDocument().createElement("div");this._innerDiv.className="timeline-band-inner";this._div.appendChild(this._innerDiv);this._ether=_dee.ether;_dee.ether.initialize(_ded);this._etherPainter=_dee.etherPainter;_dee.etherPainter.initialize(this,_ded);this._eventSource=_dee.eventSource;if(this._eventSource){this._eventListener={onAddMany:function(){b._onAddMany();},onClear:function(){b._onClear();}};this._eventSource.addListener(this._eventListener);}this._eventPainter=_dee.eventPainter;_dee.eventPainter.initialize(this,_ded);this._decorators=("decorators" in _dee)?_dee.decorators:[];for(var i=0;i<this._decorators.length;i++){this._decorators[i].initialize(this,_ded);}this._bubble=null;};Timeline._Band.SCROLL_MULTIPLES=5;Timeline._Band.prototype.dispose=function(){this.closeBubble();if(this._eventSource){this._eventSource.removeListener(this._eventListener);this._eventListener=null;this._eventSource=null;}this._timeline=null;this._bandInfo=null;this._labeller=null;this._ether=null;this._etherPainter=null;this._eventPainter=null;this._decorators=null;this._onScrollListeners=null;this._syncWithBandHandler=null;this._selectorListener=null;this._div=null;this._innerDiv=null;this._keyboardInput=null;this._bubble=null;};Timeline._Band.prototype.addOnScrollListener=function(_df5){this._onScrollListeners.push(_df5);};Timeline._Band.prototype.removeOnScrollListener=function(_df6){for(var i=0;i<this._onScrollListeners.length;i++){if(this._onScrollListeners[i]==_df6){this._onScrollListeners.splice(i,1);break;}}};Timeline._Band.prototype.setSyncWithBand=function(band,_df9){if(this._syncWithBand){this._syncWithBand.removeOnScrollListener(this._syncWithBandHandler);}this._syncWithBand=band;this._syncWithBand.addOnScrollListener(this._syncWithBandHandler);this._highlight=_df9;this._positionHighlight();};Timeline._Band.prototype.getLocale=function(){return this._locale;};Timeline._Band.prototype.getTimeZone=function(){return this._timeZone;};Timeline._Band.prototype.getLabeller=function(){return this._labeller;};Timeline._Band.prototype.getIndex=function(){return this._index;};Timeline._Band.prototype.getEther=function(){return this._ether;};Timeline._Band.prototype.getEtherPainter=function(){return this._etherPainter;};Timeline._Band.prototype.getEventSource=function(){return this._eventSource;};Timeline._Band.prototype.getEventPainter=function(){return this._eventPainter;};Timeline._Band.prototype.layout=function(){this.paint();};Timeline._Band.prototype.paint=function(){this._etherPainter.paint();this._paintDecorators();this._paintEvents();};Timeline._Band.prototype.softLayout=function(){this.softPaint();};Timeline._Band.prototype.softPaint=function(){this._etherPainter.softPaint();this._softPaintDecorators();this._softPaintEvents();};Timeline._Band.prototype.setBandShiftAndWidth=function(_dfa,_dfb){var _dfc=this._keyboardInput.parentNode;var _dfd=_dfa+Math.floor(_dfb/2);if(this._timeline.isHorizontal()){this._div.style.top=_dfa+"px";this._div.style.height=_dfb+"px";_dfc.style.top=_dfd+"px";_dfc.style.left="-1em";}else{this._div.style.left=_dfa+"px";this._div.style.width=_dfb+"px";_dfc.style.left=_dfd+"px";_dfc.style.top="-1em";}};Timeline._Band.prototype.getViewWidth=function(){if(this._timeline.isHorizontal()){return this._div.offsetHeight;}else{return this._div.offsetWidth;}};Timeline._Band.prototype.setViewLength=function(_dfe){this._viewLength=_dfe;this._recenterDiv();this._onChanging();};Timeline._Band.prototype.getViewLength=function(){return this._viewLength;};Timeline._Band.prototype.getTotalViewLength=function(){return Timeline._Band.SCROLL_MULTIPLES*this._viewLength;};Timeline._Band.prototype.getViewOffset=function(){return this._viewOffset;};Timeline._Band.prototype.getMinDate=function(){return this._ether.pixelOffsetToDate(this._viewOffset);};Timeline._Band.prototype.getMaxDate=function(){return this._ether.pixelOffsetToDate(this._viewOffset+Timeline._Band.SCROLL_MULTIPLES*this._viewLength);};Timeline._Band.prototype.getMinVisibleDate=function(){return this._ether.pixelOffsetToDate(0);};Timeline._Band.prototype.getMaxVisibleDate=function(){return this._ether.pixelOffsetToDate(this._viewLength);};Timeline._Band.prototype.getCenterVisibleDate=function(){return this._ether.pixelOffsetToDate(this._viewLength/2);};Timeline._Band.prototype.setMinVisibleDate=function(date){if(!this._changing){this._moveEther(Math.round(-this._ether.dateToPixelOffset(date)));}};Timeline._Band.prototype.setMaxVisibleDate=function(date){if(!this._changing){this._moveEther(Math.round(this._viewLength-this._ether.dateToPixelOffset(date)));}};Timeline._Band.prototype.setCenterVisibleDate=function(date){if(!this._changing){this._moveEther(Math.round(this._viewLength/2-this._ether.dateToPixelOffset(date)));}};Timeline._Band.prototype.dateToPixelOffset=function(date){return this._ether.dateToPixelOffset(date)-this._viewOffset;};Timeline._Band.prototype.pixelOffsetToDate=function(_e03){return this._ether.pixelOffsetToDate(_e03+this._viewOffset);};Timeline._Band.prototype.createLayerDiv=function(_e04){var div=this._timeline.getDocument().createElement("div");div.className="timeline-band-layer";div.style.zIndex=_e04;this._innerDiv.appendChild(div);var _e06=this._timeline.getDocument().createElement("div");_e06.className="timeline-band-layer-inner";if(SimileAjax.Platform.browser.isIE){_e06.style.cursor="move";}else{_e06.style.cursor="-moz-grab";}div.appendChild(_e06);return _e06;};Timeline._Band.prototype.removeLayerDiv=function(div){this._innerDiv.removeChild(div.parentNode);};Timeline._Band.prototype.closeBubble=function(){if(this._bubble!=null){this._bubble.close();this._bubble=null;}};Timeline._Band.prototype.openBubbleForPoint=function(_e08,_e09,_e0a,_e0b){this.closeBubble();this._bubble=SimileAjax.Graphics.createBubbleForPoint(_e08,_e09,_e0a,_e0b);return this._bubble.content;};Timeline._Band.prototype.scrollToCenter=function(date,f){var _e0e=this._ether.dateToPixelOffset(date);if(_e0e<-this._viewLength/2){this.setCenterVisibleDate(this.pixelOffsetToDate(_e0e+this._viewLength));}else{if(_e0e>3*this._viewLength/2){this.setCenterVisibleDate(this.pixelOffsetToDate(_e0e-this._viewLength));}}this._autoScroll(Math.round(this._viewLength/2-this._ether.dateToPixelOffset(date)),f);};Timeline._Band.prototype.showBubbleForEvent=function(_e0f){var evt=this.getEventSource().getEvent(_e0f);if(evt){var self=this;this.scrollToCenter(evt.getStart(),function(){self._eventPainter.showBubble(evt);});}};Timeline._Band.prototype._onMouseDown=function(_e12,evt,_e14){this.closeBubble();this._dragging=true;this._dragX=evt.clientX;this._dragY=evt.clientY;};Timeline._Band.prototype._onMouseMove=function(_e15,evt,_e17){if(this._dragging){var _e18=evt.clientX-this._dragX;var _e19=evt.clientY-this._dragY;this._dragX=evt.clientX;this._dragY=evt.clientY;this._moveEther(this._timeline.isHorizontal()?_e18:_e19);this._positionHighlight();}};Timeline._Band.prototype._onMouseUp=function(_e1a,evt,_e1c){this._dragging=false;this._keyboardInput.focus();};Timeline._Band.prototype._onMouseOut=function(_e1d,evt,_e1f){var _e20=SimileAjax.DOM.getEventRelativeCoordinates(evt,_e1d);_e20.x+=this._viewOffset;if(_e20.x<0||_e20.x>_e1d.offsetWidth||_e20.y<0||_e20.y>_e1d.offsetHeight){this._dragging=false;}};Timeline._Band.prototype._onDblClick=function(_e21,evt,_e23){var _e24=SimileAjax.DOM.getEventRelativeCoordinates(evt,_e21);var _e25=_e24.x-(this._viewLength/2-this._viewOffset);this._autoScroll(-_e25);};Timeline._Band.prototype._onKeyDown=function(_e26,evt,_e28){if(!this._dragging){switch(evt.keyCode){case 27:break;case 37:case 38:this._scrollSpeed=Math.min(50,Math.abs(this._scrollSpeed*1.05));this._moveEther(this._scrollSpeed);break;case 39:case 40:this._scrollSpeed=-Math.min(50,Math.abs(this._scrollSpeed*1.05));this._moveEther(this._scrollSpeed);break;default:return true;}this.closeBubble();SimileAjax.DOM.cancelEvent(evt);return false;}return true;};Timeline._Band.prototype._onKeyUp=function(_e29,evt,_e2b){if(!this._dragging){this._scrollSpeed=this._originalScrollSpeed;switch(evt.keyCode){case 35:this.setCenterVisibleDate(this._eventSource.getLatestDate());break;case 36:this.setCenterVisibleDate(this._eventSource.getEarliestDate());break;case 33:this._autoScroll(this._timeline.getPixelLength());break;case 34:this._autoScroll(-this._timeline.getPixelLength());break;default:return true;}this.closeBubble();SimileAjax.DOM.cancelEvent(evt);return false;}return true;};Timeline._Band.prototype._autoScroll=function(_e2c,f){var b=this;var a=SimileAjax.Graphics.createAnimation(function(abs,diff){b._moveEther(diff);},0,_e2c,1000,f);a.run();};Timeline._Band.prototype._moveEther=function(_e32){this.closeBubble();this._viewOffset+=_e32;this._ether.shiftPixels(-_e32);if(this._timeline.isHorizontal()){this._div.style.left=this._viewOffset+"px";}else{this._div.style.top=this._viewOffset+"px";}if(this._viewOffset>-this._viewLength*0.5||this._viewOffset<-this._viewLength*(Timeline._Band.SCROLL_MULTIPLES-1.5)){this._recenterDiv();}else{this.softLayout();}this._onChanging();};Timeline._Band.prototype._onChanging=function(){this._changing=true;this._fireOnScroll();this._setSyncWithBandDate();this._changing=false;};Timeline._Band.prototype._fireOnScroll=function(){for(var i=0;i<this._onScrollListeners.length;i++){this._onScrollListeners[i](this);}};Timeline._Band.prototype._setSyncWithBandDate=function(){if(this._syncWithBand){var _e34=this._ether.pixelOffsetToDate(this.getViewLength()/2);this._syncWithBand.setCenterVisibleDate(_e34);}};Timeline._Band.prototype._onHighlightBandScroll=function(){if(this._syncWithBand){var _e35=this._syncWithBand.getCenterVisibleDate();var _e36=this._ether.dateToPixelOffset(_e35);this._moveEther(Math.round(this._viewLength/2-_e36));if(this._highlight){this._etherPainter.setHighlight(this._syncWithBand.getMinVisibleDate(),this._syncWithBand.getMaxVisibleDate());}}};Timeline._Band.prototype._onAddMany=function(){this._paintEvents();};Timeline._Band.prototype._onClear=function(){this._paintEvents();};Timeline._Band.prototype._positionHighlight=function(){if(this._syncWithBand){var _e37=this._syncWithBand.getMinVisibleDate();var _e38=this._syncWithBand.getMaxVisibleDate();if(this._highlight){this._etherPainter.setHighlight(_e37,_e38);}}};Timeline._Band.prototype._recenterDiv=function(){this._viewOffset=-this._viewLength*(Timeline._Band.SCROLL_MULTIPLES-1)/2;if(this._timeline.isHorizontal()){this._div.style.left=this._viewOffset+"px";this._div.style.width=(Timeline._Band.SCROLL_MULTIPLES*this._viewLength)+"px";}else{this._div.style.top=this._viewOffset+"px";this._div.style.height=(Timeline._Band.SCROLL_MULTIPLES*this._viewLength)+"px";}this.layout();};Timeline._Band.prototype._paintEvents=function(){this._eventPainter.paint();};Timeline._Band.prototype._softPaintEvents=function(){this._eventPainter.softPaint();};Timeline._Band.prototype._paintDecorators=function(){for(var i=0;i<this._decorators.length;i++){this._decorators[i].paint();}};Timeline._Band.prototype._softPaintDecorators=function(){for(var i=0;i<this._decorators.length;i++){this._decorators[i].softPaint();}};Timeline.NativeDateUnit=new Object();Timeline.NativeDateUnit.createLabeller=function(_e3b,_e3c){return new Timeline.GregorianDateLabeller(_e3b,_e3c);};Timeline.NativeDateUnit.makeDefaultValue=function(){return new Date();};Timeline.NativeDateUnit.cloneValue=function(v){return new Date(v.getTime());};Timeline.NativeDateUnit.getParser=function(_e3e){if(typeof _e3e=="string"){_e3e=_e3e.toLowerCase();}return (_e3e=="iso8601"||_e3e=="iso 8601")?Timeline.DateTime.parseIso8601DateTime:Timeline.DateTime.parseGregorianDateTime;};Timeline.NativeDateUnit.parseFromObject=function(o){return Timeline.DateTime.parseGregorianDateTime(o);};Timeline.NativeDateUnit.toNumber=function(v){return v.getTime();};Timeline.NativeDateUnit.fromNumber=function(n){return new Date(n);};Timeline.NativeDateUnit.compare=function(v1,v2){var n1,n2;if(typeof v1=="object"){n1=v1.getTime();}else{n1=Number(v1);}if(typeof v2=="object"){n2=v2.getTime();}else{n2=Number(v2);}return n1-n2;};Timeline.NativeDateUnit.earlier=function(v1,v2){return Timeline.NativeDateUnit.compare(v1,v2)<0?v1:v2;};Timeline.NativeDateUnit.later=function(v1,v2){return Timeline.NativeDateUnit.compare(v1,v2)>0?v1:v2;};Timeline.NativeDateUnit.change=function(v,n){return new Date(v.getTime()+n);};}if(!dojo._hasResource["semweb.widget.TimelineView"]){dojo._hasResource["semweb.widget.TimelineView"]=true;dojo.provide("semweb.widget.TimelineView");dojo.declare("semweb.widget.TimelineView",[dijit._Widget,dijit._Templated],{templateString:"<div dojoAttachPoint=\"timelineNode\" style=\"width:100%;height:100%\"></div>",timelineNode:null,eventSource1:null,eventSource2:null,eventSource3:null,bandInfos:null,height:-1,controller:null,postCreate:function(){this.inherited(arguments);if(this.bandInfos==null){this.eventSource1=new Timeline.DefaultEventSource(0);this.eventSource2=new Timeline.DefaultEventSource(0);this.bandInfos=[Timeline.createBandInfo({width:"50%",intervalUnit:SimileAjax.DateTime.YEAR,trackGap:0.2,date:"Jul 01 1875 00:00:00 GMT",intervalPixels:40,eventSource:this.eventSource1}),Timeline.createBandInfo({width:"10%",showEventText:false,trackHeight:0.4,trackGap:0.1,intervalUnit:SimileAjax.DateTime.DECADE,date:"Jul 01 1875 00:00:00 GMT",intervalPixels:40,eventSource:this.eventSource1}),Timeline.createBandInfo({width:"40%",trackGap:0.2,intervalPixels:40,intervalUnit:SimileAjax.DateTime.DECADE,date:"Jul 01 1875 00:00:00 GMT",eventSource:this.eventSource2})];with(this){bandInfos[1].syncWith=0;bandInfos[1].highlight=true;bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout());bandInfos[2].syncWith=0;bandInfos[2].highlight=true;}}if(this.height!=-1){this.timelineNode.style.height=this.height+"px";}Timeline.create(this.timelineNode,this.bandInfos);if(this.controller&&this.controller.create){this.controller.create(this.id);}},destroy:function(){if(this.controller&&this.controller.destroy){this.controller.destroy(this.id);}},handleViewUpdate:function(_e4c){var _e4d=[];var _e4e=[];var _e4f=[];dojo.forEach(_e4c,function(item){if(item.latestEnd==null){item.latestEnd=new Date();}if(item.earliestStart==null){item.earliestStart=new Date(-8640000000000000);}var _e51=item.latestEnd-item.earliestStart;var _e52=new Timeline.DefaultEventSource.Event(item.id,item.earliestStart,item.latestEnd,item.latestStart,item.earliestEnd,true,item.label,item.description,item.imagePath,item.link,item.iconPath,item.color,item.textColor);if(_e51<=365*24*60*60*1000*10+1){_e4d.push(_e52);}else{if(_e51<=365*24*60*60*1000*60+1){_e4e.push(_e52);}}});this.eventSource1.clear();this.eventSource1.addMany(_e4d);this.eventSource2.clear();this.eventSource2.addMany(_e4e);}});}if(!dojo._hasResource["semweb.data.DomModel"]){dojo._hasResource["semweb.data.DomModel"]=true;dojo.provide("semweb.data.DomModel");dojo.declare("semweb.data.DomModel",dijit._Widget,{destroy:function(){},getRoot:function(_e53){_e53(dojo.query("div",this.domNode)[0]);},mayHaveChildren:function(item){return item.childNodes.length>1;},getChildren:function(_e55,_e56){var _e57=_e55.childNodes;var _e58=[];for(var i=0;i<_e57.length;i++){var node=_e57[i];if(node.nodeType!=1){continue;}var item=node;_e58.push(item);}_e56(_e58);},getIdentity:function(item){return item.getAttribute("object");},getLabel:function(item){return item.getAttribute("title");},newItem:function(args,_e5f){},pasteItem:function(_e60,_e61,_e62,_e63){},onChange:function(item){},onChildrenChange:function(_e65,_e66){}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<div class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\twaiRole=\"presentation\"\n\t><button class=\"dijitReset dijitStretch dijitButtonNode dijitButtonContents\" dojoAttachPoint=\"focusNode,titleNode\"\n\t\ttype=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t><span class=\"dijitReset dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\" \n \t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \n\t\t></span\n\t\t><div class=\"dijitReset dijitInline\"><center class=\"dijitReset dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\">${label}</center></div\n\t></button\n></div>\n",_onChangeMonitor:"",_onClick:function(e){if(this.disabled||this.readOnly){dojo.stopEvent(e);return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){dojo.stopEvent(e);}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _e6a=dijit.byNode(node);if(_e6a&&typeof _e6a._onSubmit=="function"){_e6a._onSubmit(e);break;}}}}},postCreate:function(){if(this.showLabel==false){var _e6b="";this.label=this.containerNode.innerHTML;_e6b=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");this.titleNode.title=_e6b;dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_e6e){this.containerNode.innerHTML=this.label=_e6e;this._layoutHack();if(this.showLabel==false){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<div class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\n\twaiRole=\"presentation\"\n\t><div class='dijitReset dijitRight' waiRole=\"presentation\"\n\t><button class=\"dijitReset dijitStretch dijitButtonNode dijitButtonContents\" type=\"${type}\"\n\t\tdojoAttachPoint=\"focusNode,titleNode\" waiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t><div class=\"dijitReset dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t><div class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,popupStateNode\" waiRole=\"presentation\"\n\t\t\tid=\"${id}_label\">${label}</div\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t></button\n></div></div>\n",_fillContent:function(){if(this.srcNodeRef){var _e6f=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_e6f[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _e70=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_e70);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _e73=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_e73||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.keyCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _e77=this.dropDown;if(!_e77){return;}if(!this._opened){if(_e77.href&&!_e77.isLoaded){var self=this;var _e79=dojo.connect(_e77,"onLoad",function(){dojo.disconnect(_e79);self._openDropDown();});_e77._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _e7a=this.dropDown;var _e7b=_e7a.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_e7a,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_e7a.domNode.style.width=_e7b;self.popupStateNode.removeAttribute("popupActive");this._opened=false;}});if(this.domNode.offsetWidth>_e7a.domNode.offsetWidth){var _e7d=null;if(!this.isLeftToRight()){_e7d=_e7a.domNode.parentNode;var _e7e=_e7d.offsetLeft+_e7d.offsetWidth;}dojo.marginBox(_e7a.domNode,{w:this.domNode.offsetWidth});if(_e7d){_e7d.style.left=_e7e-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_e7a.focus){_e7a.focus();}},_closeDropDown:function(_e7f){if(this._opened){dijit.popup.close(this.dropDown);if(_e7f){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td\tclass=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\n\t\t\ttabIndex=\"${tabIndex}\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline ${iconClass}\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\">${label}</div\n\t\t></td\n\t\t><td class='dijitReset dijitStretch dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:""}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,_onChangeMonitor:"checked",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.setAttribute("checked",!this.checked);},setAttribute:function(attr,_e88){this.inherited(arguments);switch(attr){case "checked":dijit.setWaiState(this.focusNode||this.domNode,"pressed",this.checked);this._setStateClass();this._handleOnChange(this.checked,true);}},setChecked:function(_e89){dojo.deprecated("setChecked("+_e89+") is deprecated. Use setAttribute('checked',"+_e89+") instead.","","2.0");this.setAttribute("checked",_e89);},postCreate:function(){this.inherited(arguments);this.setAttribute("checked",this.checked);}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_e8a){_e8a.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_e8b){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.keyCode){case dojo.keys.RIGHT_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);break;case dojo.keys.LEFT_ARROW:if(this.parentMenu){this.onCancel(false);}else{dojo.stopEvent(evt);}break;}},onItemHover:function(item){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}},_onChildBlur:function(item){dijit.popup.close(item.popup);item._blur();this._stopPopupTimer();},onItemUnhover:function(item){},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_iframeContentWindow:function(_e94){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_e94))||dijit.Menu._iframeContentDocument(_e94)["__parent__"]||(_e94.name&&dojo.doc.frames[_e94.name])||null;return win;},_iframeContentDocument:function(_e96){var doc=_e96.contentDocument||(_e96.contentWindow&&_e96.contentWindow.document)||(_e96.name&&dojo.doc.frames[_e96.name]&&dojo.doc.frames[_e96.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_e9b){var node=dojo.byId(_e9b);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _ea5=dojo.coords(e.target,true);x=_ea5.x+10;y=_ea5.y+10;}var self=this;var _ea7=dijit.getFocus(this);function closeAndRestoreFocus(){dijit.focus(_ea7);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_openPopup:function(){this._stopPopupTimer();var _ea9=this.focusedChild;var _eaa=_ea9.popup;if(_eaa.isShowingNow){return;}_eaa.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_eaa,around:_ea9.arrowCell,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){dijit.popup.close(_eaa);_ea9.focus();self.currentPopup=null;}});this.currentPopup=_eaa;if(_eaa.focus){_eaa.focus();}},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" "+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\"><div class=\"dijitMenuItemIcon ${iconClass}\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td tabIndex=\"-1\" class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,focusNode\" waiRole=\"menuitem\"></td>"+"<td class=\"dijitReset\" dojoAttachPoint=\"arrowCell\">"+"<div class=\"dijitMenuExpand\" dojoAttachPoint=\"expand\" style=\"display:none\">"+"<span class=\"dijitInline dijitArrowNode dijitMenuExpandInner\">+</span>"+"</div>"+"</td>"+"</tr>",label:"",iconClass:"",disabled:false,postCreate:function(){dojo.setSelectable(this.domNode,false);this.setDisabled(this.disabled);if(this.label){this.setLabel(this.label);}},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");try{dijit.focus(this.containerNode);}catch(e){}},_blur:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");},setLabel:function(_eae){this.containerNode.innerHTML=this.label=_eae;},setDisabled:function(_eaf){this.disabled=_eaf;dojo[_eaf?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.containerNode,"disabled",_eaf?"true":"false");}});dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _eb0=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_eb0[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";dojo.addClass(this.expand,"dijitMenuExpandEnabled");dojo.style(this.expand,"display","");dijit.setWaiState(this.containerNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,_started:false,postCreate:function(){dijit.setWaiRole((this.containerNode||this.domNode),"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _eb2=this.getChildren();dojo.forEach(_eb2,this._setupChild,this);dojo.some(_eb2,function(_eb3){if(_eb3.selected){this.selectedChildWidget=_eb3;}return _eb3.selected;},this);var _eb4=this.selectedChildWidget;if(!_eb4&&_eb2[0]){_eb4=this.selectedChildWidget=_eb2[0];_eb4.selected=true;}if(_eb4){this._showChild(_eb4);}dojo.publish(this.id+"-startup",[{children:_eb2,selected:_eb4}]);this.inherited(arguments);},_setupChild:function(page){page.domNode.style.display="none";page.domNode.style.position="relative";return page;},addChild:function(_eb6,_eb7){dijit._Container.prototype.addChild.apply(this,arguments);_eb6=this._setupChild(_eb6);if(this._started){this.layout();dojo.publish(this.id+"-addChild",[_eb6,_eb7]);if(!this.selectedChildWidget){this.selectChild(_eb6);}}},removeChild:function(page){dijit._Container.prototype.removeChild.apply(this,arguments);if(this._beingDestroyed){return;}if(this._started){dojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _eb9=this.getChildren();if(_eb9.length){this.selectChild(_eb9[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);}},_transition:function(_ebb,_ebc){if(_ebc){this._hideChild(_ebc);}this._showChild(_ebb);if(this.doLayout&&_ebb.resize){_ebb.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_ebd){var _ebe=this.getChildren();var _ebf=dojo.indexOf(_ebe,this.selectedChildWidget);_ebf+=_ebd?1:_ebe.length-1;return _ebe[_ebf%_ebe.length];},forward:function(){this.selectChild(this._adjacent(true));},back:function(){this.selectChild(this._adjacent(false));},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._contentBox);}},_showChild:function(page){var _ec2=this.getChildren();page.isFirstChild=(page==_ec2[0]);page.isLastChild=(page==_ec2[_ec2.length-1]);page.selected=true;page.domNode.style.display="";if(page._loadCheck){page._loadCheck();}if(page.onShow){page.onShow();}},_hideChild:function(page){page.selected=false;page.domNode.style.display="none";if(page.onHide){page.onHide();}},closeChild:function(page){var _ec5=page.onClose(this,page);if(_ec5){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2menu={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_ec9){var _eca=dojo.doc.createElement("span");this.domNode.appendChild(_eca);var cls=dojo.getObject(this.buttonWidget);var _ecc=new cls({label:page.title,closeButton:page.closable},_eca);this.addChild(_ecc,_ec9);this.pane2button[page]=_ecc;page.controlButton=_ecc;dojo.connect(_ecc,"onClick",dojo.hitch(this,"onButtonClick",page));if(page.closable){dojo.connect(_ecc,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page));var _ecd=dojo.i18n.getLocalization("dijit","common");var _ece=new dijit.Menu({targetNodeIds:[_ecc.id],id:_ecc.id+"_Menu"});var _ecf=new dijit.MenuItem({label:_ecd.itemClose});dojo.connect(_ecf,"onClick",dojo.hitch(this,"onCloseButtonClick",page));_ece.addChild(_ecf);this.pane2menu[page]=_ece;}if(!this._currentChild){_ecc.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}var _ed1=this.pane2button[page];var menu=this.pane2menu[page];if(menu){menu.destroy();}if(_ed1){_ed1.destroy();}this.pane2button[page]=null;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _ed4=this.pane2button[this._currentChild];_ed4.setAttribute("checked",false);_ed4.focusNode.setAttribute("tabIndex","-1");}var _ed5=this.pane2button[page];_ed5.setAttribute("checked",true);this._currentChild=page;_ed5.focusNode.setAttribute("tabIndex","0");var _ed6=dijit.byId(this.containerId);dijit.setWaiState(_ed6.containerNode||_ed6.domNode,"labelledby",_ed5.id);},onButtonClick:function(page){var _ed8=dijit.byId(this.containerId);_ed8.selectChild(page);},onCloseButtonClick:function(page){var _eda=dijit.byId(this.containerId);_eda.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_edc){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_edc=!_edc;}var _edd=this.getChildren();var _ede=dojo.indexOf(_edd,this.pane2button[this._currentChild]);var _edf=_edc?1:_edd.length-1;return _edd[(_ede+_edf)%_edd.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _ee1=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.keyCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_ee1=false;}break;case k.PAGE_UP:if(e.ctrlKey){_ee1=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_ee1=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_ee1=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.keyCode==k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.keyChar=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_ee1!==null){this.adjacent(_ee1).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",templateString:null,templateString:"<div class=\"dijitTabContainer\">\n\t<div dojoAttachPoint=\"tablistNode\"></div>\n\t<div class=\"dijitTabPaneWrapper\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n",_controllerWidget:"dijit.layout.TabController",postCreate:function(){this.inherited(arguments);var _ee7=dojo.getObject(this._controllerWidget);this.tablist=new _ee7({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id},this.tablistNode);},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);if(dojo.isSafari){setTimeout(dojo.hitch(this,"layout"),0);}if(dojo.isIE&&!this.isLeftToRight()&&this.tabPosition=="right-h"&&this.tablist&&this.tablist.pane2button){for(var pane in this.tablist.pane2button){var _eea=this.tablist.pane2button[pane];if(!_eea.closeButton){continue;}tabButtonStyle=_eea.closeButtonNode.style;tabButtonStyle.position="absolute";if(dojo.isIE<7){tabButtonStyle.left=_eea.domNode.offsetWidth+"px";}else{tabButtonStyle.padding="0px";}}}},layout:function(){if(!this.doLayout){return;}var _eeb=this.tabPosition.replace(/-h/,"");var _eec=[{domNode:this.tablist.domNode,layoutAlign:_eeb},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_eec);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_eec[1]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",postMixInProperties:function(){this["class"]="dijitTabLabels-"+this.tabPosition+(this.doLayout?"":" dijitTabNoLayout");this.inherited(arguments);},_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _eed=0;for(var pane in this.pane2button){_eed=Math.max(_eed,dojo.marginBox(this.pane2button[pane].innerDiv).w);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_eed+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span>\n\t        <span dojoAttachPoint='closeButtonNode' class='closeImage' dojoAttachEvent='onmouseenter:_onMouse, onmouseleave:_onMouse, onclick:onClickCloseButton' stateModifier='CloseButton'>\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\n\t        </span>\n        </div>\n    </div>\n</div>\n",postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");}else{this.closeButtonNode.style.display="none";}this.inherited(arguments);dojo.setSelectable(this.containerNode,false);}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_ef0){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_ef0&&_ef0.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_ef4){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("|"),_ef4);};dojo.regexp.group=function(_ef7,_ef8){return "("+(_ef8?"?:":"")+_ef7+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_efa,_efb){var c=document.cookie;if(arguments.length==1){var _efd=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _efd?decodeURIComponent(_efd[1]):undefined;}else{_efb=_efb||{};var exp=_efb.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_efb.expires=d;}if(exp&&exp.toUTCString){_efb.expires=exp.toUTCString();}_efa=encodeURIComponent(_efa);var _f00=name+"="+_efa;for(propName in _efb){_f00+="; "+propName;var _f01=_efb[propName];if(_f01!==true){_f00+="="+_f01;}}document.cookie=_f00;}};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.Tree"]){dojo._hasResource["dijit.Tree"]=true;dojo.provide("dijit.Tree");dojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:"<div class=\"dijitTreeNode\" waiRole=\"presentation\"\n\t><div dojoAttachPoint=\"rowNode\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\n\t\t></span\n\t\t><div dojoAttachPoint=\"contentNode\" class=\"dijitTreeContent\" waiRole=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"iconNode\" class=\"dijitInline dijitTreeIcon\" waiRole=\"presentation\"></div>\n\t\t\t<span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" dojoAttachEvent=\"onfocus:_onNodeFocus\"></span>\n\t\t</div\n\t></div>\n</div>\n",postCreate:function(){this.setLabelNode(this.label);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);}},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_f04=tree.model;if(tree._v10Compat&&item===_f04.root){item=null;}this.iconNode.className="dijitInline dijitTreeIcon "+tree.getIconClass(item,this.isExpanded);this.labelNode.className="dijitTreeLabel "+tree.getLabelClass(item,this.isExpanded);},_updateLayout:function(){var _f05=this.getParent();if(!_f05||_f05.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_f06){var _f07=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var idx=_f06?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.forEach(_f07,function(s){dojo.removeClass(this.expandoNode,s);},this);dojo.addClass(this.expandoNode,_f07[idx]);this.expandoNodeText.innerHTML=_f06?"*":(this.isExpandable?(this.isExpanded?"-":"+"):"*");},expand:function(){if(this.isExpanded){return;}if(this._wipeOut.status()=="playing"){this._wipeOut.stop();}this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");dijit.setWaiRole(this.containerNode,"group");this.contentNode.className="dijitTreeContent dijitTreeContentExpanded";this._setExpando();this._updateItemClasses(this.item);this._wipeIn.play();},collapse:function(){if(!this.isExpanded){return;}if(this._wipeIn.status()=="playing"){this._wipeIn.stop();}this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");this.contentNode.className="dijitTreeContent";this._setExpando();this._updateItemClasses(this.item);this._wipeOut.play();},setLabelNode:function(_f0a){this.labelNode.innerHTML="";this.labelNode.appendChild(dojo.doc.createTextNode(_f0a));},setChildItems:function(_f0b){var tree=this.tree,_f0d=tree.model;this.getChildren().forEach(function(_f0e){dijit._Container.prototype.removeChild.call(this,_f0e);},this);this.state="LOADED";if(_f0b&&_f0b.length>0){this.isExpandable=true;if(!this.containerNode){this.containerNode=this.tree.containerNodeTemplate.cloneNode(true);this.domNode.appendChild(this.containerNode);}dojo.forEach(_f0b,function(item){var id=_f0d.getIdentity(item),_f11=tree._itemNodeMap[id],node=(_f11&&!_f11.getParent())?_f11:new dijit._TreeNode({item:item,tree:tree,isExpandable:_f0d.mayHaveChildren(item),label:tree.getLabel(item)});this.addChild(node);tree._itemNodeMap[id]=node;if(this.tree.persist){if(tree._openedItemIds[id]){tree._expandNode(node);}}},this);dojo.forEach(this.getChildren(),function(_f13,idx){_f13._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(!this.parent){var fc=this.tree.showRoot?this:this.getChildren()[0],_f16=fc?fc.labelNode:this.domNode;_f16.setAttribute("tabIndex","0");}if(this.containerNode&&!this._wipeIn){this._wipeIn=dojo.fx.wipeIn({node:this.containerNode,duration:150});this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:150});}},removeChild:function(node){this.inherited(arguments);var _f18=this.getChildren();if(_f18.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_f18,function(_f19){_f19._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onNodeFocus:function(evt){var node=dijit.getEnclosingWidget(evt.target);this.tree._onTreeFocus(node);}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],openOnClick:false,templateString:"<div class=\"dijitTreeContainer\" waiRole=\"tree\"\n\tdojoAttachEvent=\"onclick:_onClick,onkeypress:_onKeyPress\">\n</div>\n",isExpandable:true,isTree:true,persist:true,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,_publish:function(_f1c,_f1d){dojo.publish(this.id,[dojo.mixin({tree:this,event:_f1c},_f1d||{})]);},postMixInProperties:function(){this.tree=this;this._itemNodeMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}},postCreate:function(){if(this.persist){var _f1e=dojo.cookie(this.cookieName);this._openedItemIds={};if(_f1e){dojo.forEach(_f1e.split(","),function(item){this._openedItemIds[item]=true;},this);}}var div=dojo.doc.createElement("div");div.style.display="none";div.className="dijitTreeContainer";dijit.setWaiRole(div,"presentation");this.containerNodeTemplate=div;if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this._load();this.inherited("postCreate",arguments);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _f21={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_f21[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_f21);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _f23={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_f23.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_f23.getChildren=dojo.hitch(this,function(item,_f25,_f26){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_f25,_f26);});}this.model=new dijit.tree.ForestStoreModel(_f23);this.showRoot=Boolean(this.label);},_load:function(){this.model.getRoot(dojo.hitch(this,function(item){var rn=this.rootNode=new dijit._TreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item)});if(!this.showRoot){rn.rowNode.style.display="none";}this.domNode.appendChild(rn.domNode);this._itemNodeMap[this.model.getIdentity(item)]=rn;rn._updateLayout();this._expandNode(rn);}),function(err){console.error(this,": error loading root: ",err);});},mayHaveChildren:function(item){},getItemChildren:function(_f2b,_f2c){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_f2f){return (!item||this.model.mayHaveChildren(item))?(_f2f?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_f31){},_onKeyPress:function(e){if(e.altKey){return;}var _f33=dijit.getEnclosingWidget(e.target);if(!_f33){return;}if(e.charCode){var _f34=e.charCode;if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){_f34=(String.fromCharCode(_f34)).toLowerCase();this._onLetterKeyNav({node:_f33,key:_f34});dojo.stopEvent(e);}}else{var map=this._keyHandlerMap;if(!map){map={};map[dojo.keys.ENTER]="_onEnterKey";map[this.isLeftToRight()?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW]="_onRightArrow";map[dojo.keys.UP_ARROW]="_onUpArrow";map[dojo.keys.DOWN_ARROW]="_onDownArrow";map[dojo.keys.HOME]="_onHomeKey";map[dojo.keys.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[e.keyCode]){this[this._keyHandlerMap[e.keyCode]]({node:_f33,item:_f33.item});dojo.stopEvent(e);}}},_onEnterKey:function(_f36){this._publish("execute",{item:_f36.item,node:_f36.node});this.onClick(_f36.item,_f36.node);},_onDownArrow:function(_f37){var node=this._getNextNode(_f37.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_f39){var node=_f39.node;var _f3b=node.getPreviousSibling();if(_f3b){node=_f3b;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _f3c=node.getChildren();node=_f3c[_f3c.length-1];}}else{var _f3d=node.getParent();if(!(!this.showRoot&&_f3d===this.rootNode)){node=_f3d;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_f3e){var node=_f3e.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_f40){var node=_f40.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{node=node.getParent();if(node&&node.isTreeNode){this.focusNode(node);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_f43){var node=this;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},_onLetterKeyNav:function(_f46){var node=startNode=_f46.node,key=_f46.key;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==startNode&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==startNode){this.focusNode(node);}}},_onClick:function(e){var _f4a=e.target;var _f4b=dijit.getEnclosingWidget(_f4a);if(!_f4b||!_f4b.isTreeNode){return;}if((this.openOnClick&&_f4b.isExpandable)||(_f4a==_f4b.expandoNode||_f4a==_f4b.expandoNodeText)){if(_f4b.isExpandable){this._onExpandoClick({node:_f4b});}}else{this._publish("execute",{item:_f4b.item,node:_f4b});this.onClick(_f4b.item,_f4b);this.focusNode(_f4b);}dojo.stopEvent(e);},_onExpandoClick:function(_f4c){var node=_f4c.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _f51=node.getNextSibling();if(_f51){return _f51;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();if(this.persist&&node.item){delete this._openedItemIds[this.model.getIdentity(node.item)];this._saveState();}}},_expandNode:function(node){if(!node.isExpandable){return;}var _f54=this.model,item=node.item;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _f56=this;_f54.getChildren(item,function(_f57){node.unmarkProcessing();node.setChildItems(_f57);_f56._expandNode(node);},function(err){console.error(_f56,": error loading root children: ",err);});break;default:node.expand();if(this.persist&&item){this._openedItemIds[_f54.getIdentity(item)]=true;this._saveState();}}},blurNode:function(){var node=this.lastFocused;if(!node){return;}var _f5a=node.labelNode;dojo.removeClass(_f5a,"dijitTreeLabelFocused");_f5a.setAttribute("tabIndex","-1");dijit.setWaiState(_f5a,"selected",false);this.lastFocused=null;},focusNode:function(node){node.labelNode.focus();},_onBlur:function(){this.inherited(arguments);if(this.lastFocused){var _f5c=this.lastFocused.labelNode;dojo.removeClass(_f5c,"dijitTreeLabelFocused");}},_onTreeFocus:function(node){if(node){if(node!=this.lastFocused){this.blurNode();}var _f5e=node.labelNode;_f5e.setAttribute("tabIndex","0");dijit.setWaiState(_f5e,"selected",true);dojo.addClass(_f5e,"dijitTreeLabelFocused");this.lastFocused=node;}},_onItemDelete:function(item){var _f60=this.model.getIdentity(item);var node=this._itemNodeMap[_f60];if(node){var _f62=node.getParent();if(_f62){_f62.removeChild(node);}delete this._itemNodeMap[_f60];node.destroyRecursive();}},_onItemChange:function(item){var _f64=this.model,_f65=_f64.getIdentity(item),node=this._itemNodeMap[_f65];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_onItemChildrenChange:function(_f67,_f68){var _f69=this.model,_f6a=_f69.getIdentity(_f67),_f6b=this._itemNodeMap[_f6a];if(_f6b){_f6b.setChildItems(_f68);}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","));},destroy:function(){if(this.rootNode){this.rootNode.destroyRecursive();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();}});dojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],root:null,query:null,constructor:function(args){dojo.mixin(this,args);this.connects=[];var _f6f=this.store;if(!_f6f.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_f6f.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_f6f,"onNew",this,"_onNewItem"),dojo.connect(_f6f,"onDelete",this,"_onDeleteItem"),dojo.connect(_f6f,"onSet",this,"_onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_f70,_f71){if(this.root){_f70(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_f72){if(_f72.length!=1){throw new Error(this.declaredClass+": query "+query+" returned "+_f72.length+" items, but must return exactly one item");}this.root=_f72[0];_f70(this.root);}),onError:_f71});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_f75,_f76,_f77){var _f78=this.store;var _f79=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_f78.getValues(_f75,this.childrenAttrs[i]);_f79=_f79.concat(vals);}var _f7c=0;dojo.forEach(_f79,function(item){if(!_f78.isItemLoaded(item)){_f7c++;}});if(_f7c==0){_f76(_f79);}else{var _f7e=function _f7e(item){if(--_f7c==0){_f76(_f79);}};dojo.forEach(_f79,function(item){if(!_f78.isItemLoaded(item)){_f78.loadItem({item:item,onItem:_f7e,onError:_f77});}});}},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){return this.store.getLabel(item);},newItem:function(args,_f84){var _f85={parent:_f84,attribute:this.childrenAttrs[0]};return this.store.newItem(args,_f85);},pasteItem:function(_f86,_f87,_f88,_f89){var _f8a=this.store,_f8b=this.childrenAttrs[0];if(_f87){dojo.forEach(this.childrenAttrs,function(attr){if(_f8a.containsValue(_f87,attr,_f86)){if(!_f89){var _f8d=dojo.filter(_f8a.getValues(_f87,attr),function(x){return x!=_f86;});_f8a.setValues(_f87,attr,_f8d);}_f8b=attr;}});}if(_f88){_f8a.setValues(_f88,_f8b,_f8a.getValues(_f88,_f8b).concat(_f86));}},onChange:function(item){},onChildrenChange:function(_f90,_f91){},_onNewItem:function(item,_f93){if(!_f93){return;}this.getChildren(_f93.item,dojo.hitch(this,function(_f94){this.onChildrenChange(_f93.item,_f94);}));},_onDeleteItem:function(item){},_onSetItem:function(item,_f97,_f98,_f99){if(dojo.indexOf(this.childrenAttrs,_f97)!=-1){this.getChildren(item,dojo.hitch(this,function(_f9a){this.onChildrenChange(item,_f9a);}));}else{this.onChange(item);}}});dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_f9b){this.root={store:this,root:true,id:_f9b.rootId,label:_f9b.rootLabel,children:_f9b.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_f9d,_f9e,_f9f){if(_f9d===this.root){if(this.root.children){_f9e(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_fa0){this.root.children=_fa0;_f9e(_fa0);}),onError:_f9f});}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_fa4){if(_fa4===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_fa6,_fa7,_fa8,_fa9){if(_fa7===this.root){if(!_fa9){this.onLeaveRoot(_fa6);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_fa6,_fa7===this.root?null:_fa7,_fa8===this.root?null:_fa8);if(_fa8===this.root){this.onAddToRoot(_fa6);}},onAddToRoot:function(item){console.log(this,": item ",item," added to root");},onLeaveRoot:function(item){console.log(this,": item ",item," removed from root");},_requeryTop:function(){var _fac=this,_fad=this.root.children;this.store.fetch({query:this.query,onComplete:function(_fae){_fac.root.children=_fae;if(_fad.length!=_fae.length||dojo.some(_fad,function(item,idx){return _fae[idx]!=item;})){_fac.onChildrenChange(_fac.root,_fae);}}});},_onNewItem:function(item,_fb2){this._requeryTop();this.inherited(arguments);},_onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.data.util.filter.patternToRegExp=function(_fb4,_fb5){var rxp="^";var c=null;for(var i=0;i<_fb4.length;i++){c=_fb4.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_fb4.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(_fb5){return new RegExp(rxp,"i");}else{return new RegExp(rxp);}};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.data.util.sorter.basicComparator=function(a,b){var ret=0;if(a>b||typeof a==="undefined"||a===null){ret=1;}else{if(a<b||typeof b==="undefined"||b===null){ret=-1;}}return ret;};dojo.data.util.sorter.createSortFunction=function(_fbc,_fbd){var _fbe=[];function createSortFunction(attr,dir){return function(_fc1,_fc2){var a=_fbd.getValue(_fc1,attr);var b=_fbd.getValue(_fc2,attr);var _fc5=null;if(_fbd.comparatorMap){if(typeof attr!=="string"){attr=_fbd.getIdentity(attr);}_fc5=_fbd.comparatorMap[attr]||dojo.data.util.sorter.basicComparator;}_fc5=_fc5||dojo.data.util.sorter.basicComparator;return dir*_fc5(a,b);};};for(var i=0;i<_fbc.length;i++){sortAttribute=_fbc[i];if(sortAttribute.attribute){var _fc7=(sortAttribute.descending)?-1:1;_fbe.push(createSortFunction(sortAttribute.attribute,_fc7));}}return function(rowA,rowB){var i=0;while(i<_fbe.length){var ret=_fbe[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.data.util.simpleFetch.fetch=function(_fcc){_fcc=_fcc||{};if(!_fcc.store){_fcc.store=this;}var self=this;var _fce=function(_fcf,_fd0){if(_fd0.onError){var _fd1=_fd0.scope||dojo.global;_fd0.onError.call(_fd1,_fcf,_fd0);}};var _fd2=function(_fd3,_fd4){var _fd5=_fd4.abort||null;var _fd6=false;var _fd7=_fd4.start?_fd4.start:0;var _fd8=_fd4.count?(_fd7+_fd4.count):_fd3.length;_fd4.abort=function(){_fd6=true;if(_fd5){_fd5.call(_fd4);}};var _fd9=_fd4.scope||dojo.global;if(!_fd4.store){_fd4.store=self;}if(_fd4.onBegin){_fd4.onBegin.call(_fd9,_fd3.length,_fd4);}if(_fd4.sort){_fd3.sort(dojo.data.util.sorter.createSortFunction(_fd4.sort,self));}if(_fd4.onItem){for(var i=_fd7;(i<_fd3.length)&&(i<_fd8);++i){var item=_fd3[i];if(!_fd6){_fd4.onItem.call(_fd9,item,_fd4);}}}if(_fd4.onComplete&&!_fd6){var _fdc=null;if(!_fd4.onItem){_fdc=_fd3.slice(_fd7,_fd8);}_fd4.onComplete.call(_fd9,_fdc,_fd4);}};this._fetchItems(_fcc,_fd2,_fce);return _fcc;};}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(_fdd){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_fdd.url;this._jsonData=_fdd.data;this._datatypeMap=_fdd.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_fde){return dojo.date.stamp.fromISOString(_fde);}};}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=[];},url:"",_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_fe0){if(typeof _fe0!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_fe2,_fe3){var _fe4=this.getValues(item,_fe2);return (_fe4.length>0)?_fe4[0]:_fe3;},getValues:function(item,_fe6){this._assertIsItem(item);this._assertIsAttribute(_fe6);return item[_fe6]||[];},getAttributes:function(item){this._assertIsItem(item);var _fe8=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_fe8.push(key);}}return _fe8;},hasAttribute:function(item,_feb){return this.getValues(item,_feb).length>0;},containsValue:function(item,_fed,_fee){var _fef=undefined;if(typeof _fee==="string"){_fef=dojo.data.util.filter.patternToRegExp(_fee,false);}return this._containsValue(item,_fed,_fee,_fef);},_containsValue:function(item,_ff1,_ff2,_ff3){return dojo.some(this.getValues(item,_ff1),function(_ff4){if(_ff4!==null&&!dojo.isObject(_ff4)&&_ff3){if(_ff4.toString().match(_ff3)){return true;}}else{if(_ff2===_ff4){return true;}}});},isItem:function(_ff5){if(_ff5&&_ff5[this._storeRefPropName]===this){if(this._arrayOfAllItems[_ff5[this._itemNumPropName]]===_ff5){return true;}}return false;},isItemLoaded:function(_ff6){return this.isItem(_ff6);},loadItem:function(_ff7){this._assertIsItem(_ff7.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(_ffa,_ffb,_ffc){var self=this;var _ffe=function(_fff,_1000){var items=[];if(_fff.query){var _1002=_fff.queryOptions?_fff.queryOptions.ignoreCase:false;var _1003={};for(var key in _fff.query){var value=_fff.query[key];if(typeof value==="string"){_1003[key]=dojo.data.util.filter.patternToRegExp(value,_1002);}}for(var i=0;i<_1000.length;++i){var match=true;var _1008=_1000[i];if(_1008===null){match=false;}else{for(var key in _fff.query){var value=_fff.query[key];if(!self._containsValue(_1008,key,value,_1003[key])){match=false;}}}if(match){items.push(_1008);}}_ffb(items,_fff);}else{for(var i=0;i<_1000.length;++i){var item=_1000[i];if(item!==null){items.push(item);}}_ffb(items,_fff);}};if(this._loadFinished){_ffe(_ffa,this._getItemsArray(_ffa.queryOptions));}else{if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_ffa,filter:_ffe});}else{this._loadInProgress=true;var _100a={url:self._jsonFileUrl,handleAs:"json-comment-optional"};var _100b=dojo.xhrGet(_100a);_100b.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_ffe(_ffa,self._getItemsArray(_ffa.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_ffc(e,_ffa);}});_100b.addErrback(function(error){self._loadInProgress=false;_ffc(error,_ffa);});}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_ffe(_ffa,this._getItemsArray(_ffa.queryOptions));}catch(e){_ffc(e,_ffa);}}else{_ffc(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_ffa);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var fData=this._queuedFetches[i];var _1010=fData.args;var _1011=fData.filter;if(_1011){_1011(_1010,this._getItemsArray(_1010.queryOptions));}else{this.fetchItemByIdentity(_1010);}}this._queuedFetches=[];}},_getItemsArray:function(_1012){if(_1012&&_1012.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_1013){},_getItemsFromLoadedData:function(_1014){function valueIsAnItem(_1015){var _1016=((_1015!=null)&&(typeof _1015=="object")&&(!dojo.isArray(_1015))&&(!dojo.isFunction(_1015))&&(_1015.constructor==Object)&&(typeof _1015._reference=="undefined")&&(typeof _1015._type=="undefined")&&(typeof _1015._value=="undefined"));return _1016;};var self=this;function addItemAndSubItemsToArrayOfAllItems(_1018){self._arrayOfAllItems.push(_1018);for(var _1019 in _1018){var _101a=_1018[_1019];if(_101a){if(dojo.isArray(_101a)){var _101b=_101a;for(var k=0;k<_101b.length;++k){var _101d=_101b[k];if(valueIsAnItem(_101d)){addItemAndSubItemsToArrayOfAllItems(_101d);}}}else{if(valueIsAnItem(_101a)){addItemAndSubItemsToArrayOfAllItems(_101a);}}}}};this._labelAttr=_1014.label;var i;var item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_1014.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];addItemAndSubItemsToArrayOfAllItems(item);item[this._rootItemPropName]=true;}var _1020={};var key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var value=item[key];if(value!==null){if(!dojo.isArray(value)){item[key]=[value];}}else{item[key]=[null];}}_1020[key]=key;}}while(_1020[this._storeRefPropName]){this._storeRefPropName+="_";}while(_1020[this._itemNumPropName]){this._itemNumPropName+="_";}while(_1020[this._reverseRefMap]){this._reverseRefMap+="_";}var _1023;var _1024=_1014.identifier;if(_1024){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_1024;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_1023=item[_1024];var _1025=_1023[0];if(!this._itemsByIdentity[_1025]){this._itemsByIdentity[_1025]=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: ["+_1024+"].  Value collided: ["+_1025+"]");}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: ["+_1024+"].  Value collided: ["+_1025+"]");}}}}}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){_1023=item[key];for(var j=0;j<_1023.length;++j){value=_1023[j];if(value!==null&&typeof value=="object"){if(value._type&&value._value){var type=value._type;var _1028=this._datatypeMap[type];if(!_1028){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_1028)){_1023[j]=new _1028(value._value);}else{if(dojo.isFunction(_1028.deserialize)){_1023[j]=_1028.deserialize(value._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(value._reference){var _1029=value._reference;if(!dojo.isObject(_1029)){_1023[j]=this._itemsByIdentity[_1029];}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _102b=this._arrayOfAllItems[k];var found=true;for(var _102d in _1029){if(_102b[_102d]!=_1029[_102d]){found=false;}}if(found){_1023[j]=_102b;}}}if(this.referenceIntegrity){var _102e=_1023[j];if(this.isItem(_102e)){this._addReferenceToMap(_102e,item,key);}}}else{if(this.isItem(value)){if(this.referenceIntegrity){this._addReferenceToMap(value,item,key);}}}}}}}},_addReferenceToMap:function(_102f,_1030,_1031){},getIdentity:function(item){var _1033=this._features["dojo.data.api.Identity"];if(_1033===Number){return item[this._itemNumPropName];}else{var _1034=item[_1033];if(_1034){return _1034[0];}}return null;},fetchItemByIdentity:function(_1035){if(!this._loadFinished){var self=this;if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_1035});}else{this._loadInProgress=true;var _1037={url:self._jsonFileUrl,handleAs:"json-comment-optional"};var _1038=dojo.xhrGet(_1037);_1038.addCallback(function(data){var scope=_1035.scope?_1035.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;var item=self._getItemByIdentity(_1035.identity);if(_1035.onItem){_1035.onItem.call(scope,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_1035.onError){_1035.onError.call(scope,error);}}});_1038.addErrback(function(error){self._loadInProgress=false;if(_1035.onError){var scope=_1035.scope?_1035.scope:dojo.global;_1035.onError.call(scope,error);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;var item=self._getItemByIdentity(_1035.identity);if(_1035.onItem){var scope=_1035.scope?_1035.scope:dojo.global;_1035.onItem.call(scope,item);}}}}else{var item=this._getItemByIdentity(_1035.identity);if(_1035.onItem){var scope=_1035.scope?_1035.scope:dojo.global;_1035.onItem.call(scope,item);}}},_getItemByIdentity:function(_1040){var item=null;if(this._itemsByIdentity){item=this._itemsByIdentity[_1040];}else{item=this._arrayOfAllItems[_1040];}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _1043=this._features["dojo.data.api.Identity"];if(_1043===Number){return null;}else{return [_1043];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl){var _1045={url:self._jsonFileUrl,handleAs:"json-comment-optional",sync:true};var _1046=dojo.xhrGet(_1045);_1046.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}}catch(e){console.log(e);throw e;}});_1046.addErrback(function(error){throw error;});}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.config.afterOnLoad&&dojo.isBrowser){window.setTimeout(dojo._fakeLoadInit,1000);}})();dojo.i18n._preloadLocalizations("dojo.nls.dojo",["fi","xx","ROOT","en","sv"]);
