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

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

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1,_2){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 _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}),function(_6,_7){_3[_7]=_3[_7]||_6;});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);if(_3[0]<100){_4.setFullYear(_3[0]||1970);}var _8=0,_9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _c=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _d=[],_e=_b.zulu?"getUTC":"get",_f="";if(_b.selector!="time"){var _10=_a[_e+"FullYear"]();_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");}_d.push(_f);if(_b.selector!="date"){var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");var _12=_a[_e+"Milliseconds"]();if(_b.milliseconds){_11+="."+(_12<100?"0":"")+_c(_12);}if(_b.zulu){_11+="Z";}else{if(_b.selector!="time"){var _13=_a.getTimezoneOffset();var _14=Math.abs(_13);_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);}}_d.push(_11);}return _d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _15(_16){if(d.isString(_16)){return "string";}if(typeof _16=="number"){return "number";}if(typeof _16=="boolean"){return "boolean";}if(d.isFunction(_16)){return "function";}if(d.isArray(_16)){return "array";}if(_16 instanceof Date){return "date";}if(_16 instanceof d._Url){return "url";}return "object";};function _17(_18,_19){switch(_19){case "string":return _18;case "number":return _18.length?Number(_18):NaN;case "boolean":return typeof _18=="boolean"?_18:!(_18.toLowerCase()=="false");case "function":if(d.isFunction(_18)){_18=_18.toString();_18=d.trim(_18.substring(_18.indexOf("{")+1,_18.length-1));}try{if(_18===""||_18.search(/[^\w\.]+/i)!=-1){return new Function(_18);}else{return d.getObject(_18,false)||new Function(_18);}}catch(e){return new Function();}case "array":return _18?_18.split(/\s*,\s*/):[];case "date":switch(_18){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_18);}case "url":return d.baseUrl+_18;default:return d.fromJson(_18);}};var _1a={},_1b={};d.connect(d,"extend",function(){_1b={};});function _1c(cls,_1d){for(var _1e in cls){if(_1e.charAt(0)=="_"){continue;}if(_1e in _1a){continue;}_1d[_1e]=_15(cls[_1e]);}return _1d;};function _1f(_20,_21){var c=_1b[_20];if(!c){var cls=d.getObject(_20),_22=null;if(!cls){return null;}if(!_21){_22=_1c(cls.prototype,{});}c={cls:cls,params:_22};}else{if(!_21&&!c.params){c.params=_1c(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_23,_24){var _25="";var _26="";var _27=(_23.getAttribute(_24+"args")||_23.getAttribute("args"));if(_27){d.forEach(_27.split(/\s*,\s*/),function(_28,idx){_25+="var "+_28+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_25+="with("+_2a+"){";_26+="}";});}return new Function(_25+_23.innerHTML+_26);};this.instantiate=function(_2b,_2c,_2d){var _2e=[],_2c=_2c||{};_2d=_2d||{};var _2f=(_2d.scope||d._scopeName)+"Type",_30="data-"+(_2d.scope||d._scopeName)+"-";d.forEach(_2b,function(obj){if(!obj){return;}var _31,_32,_33,_34,_35,_36;if(obj.node){_31=obj.node;_32=obj.type;_36=obj.fastpath;_33=obj.clsInfo||(_32&&_1f(_32,_36));_34=_33&&_33.cls;_35=obj.scripts;}else{_31=obj;_32=_2f in _2c?_2c[_2f]:_31.getAttribute(_2f);_33=_32&&_1f(_32);_34=_33&&_33.cls;_35=(_34&&(_34._noScript||_34.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_31));}if(!_33){throw new Error("Could not load class '"+_32);}var _37={};if(_2d.defaults){d._mixin(_37,_2d.defaults);}if(obj.inherited){d._mixin(_37,obj.inherited);}if(_36){var _38=_31.getAttribute(_30+"props");if(_38&&_38.length){try{_38=d.fromJson.call(_2d.propsThis,"{"+_38+"}");d._mixin(_37,_38);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_38+"'");}}var _39=_31.getAttribute(_30+"attach-point");if(_39){_37.dojoAttachPoint=_39;}var _3a=_31.getAttribute(_30+"attach-event");if(_3a){_37.dojoAttachEvent=_3a;}dojo.mixin(_37,_2c);}else{var _3b=_31.attributes;for(var _3c in _33.params){var _3d=_3c in _2c?{value:_2c[_3c],specified:true}:_3b.getNamedItem(_3c);if(!_3d||(!_3d.specified&&(!dojo.isIE||_3c.toLowerCase()!="value"))){continue;}var _3e=_3d.value;switch(_3c){case "class":_3e="className" in _2c?_2c.className:_31.className;break;case "style":_3e="style" in _2c?_2c.style:(_31.style&&_31.style.cssText);}var _3f=_33.params[_3c];if(typeof _3e=="string"){_37[_3c]=_17(_3e,_3f);}else{_37[_3c]=_3e;}}}var _40=[],_41=[];d.forEach(_35,function(_42){_31.removeChild(_42);var _43=(_42.getAttribute(_30+"event")||_42.getAttribute("event")),_32=_42.getAttribute("type"),nf=d.parser._functionFromScript(_42,_30);if(_43){if(_32=="dojo/connect"){_40.push({event:_43,func:nf});}else{_37[_43]=nf;}}else{_41.push(nf);}});var _44=_34.markupFactory||_34.prototype&&_34.prototype.markupFactory;var _45=_44?_44(_37,_31,_34):new _34(_37,_31);_2e.push(_45);var _46=(_31.getAttribute(_30+"id")||_31.getAttribute("jsId"));if(_46){d.setObject(_46,_45);}d.forEach(_40,function(_47){d.connect(_45,_47.event,null,_47.func);});d.forEach(_41,function(_48){_48.call(_45);});});if(!_2c._started){d.forEach(_2e,function(_49){if(!_2d.noStart&&_49&&dojo.isFunction(_49.startup)&&!_49._started&&(!_49.getParent||!_49.getParent())){_49.startup();}});}return _2e;};this.parse=function(_4a,_4b){var _4c;if(!_4b&&_4a&&_4a.rootNode){_4b=_4a;_4c=_4b.rootNode;}else{_4c=_4a;}_4c=_4c?dojo.byId(_4c):dojo.body();_4b=_4b||{};var _4d=(_4b.scope||d._scopeName)+"Type",_4e="data-"+(_4b.scope||d._scopeName)+"-";function _4f(_50,_51){var _52=dojo.clone(_50.inherited);dojo.forEach(["dir","lang"],function(_53){var val=_50.node.getAttribute(_53);if(val){_52[_53]=val;}});var _54=_50.clsInfo&&!_50.clsInfo.cls.prototype._noScript?_50.scripts:null;var _55=(!_50.clsInfo||!_50.clsInfo.cls.prototype.stopParser)||(_4b&&_4b.template);for(var _56=_50.node.firstChild;_56;_56=_56.nextSibling){if(_56.nodeType==1){var _57,_58=_55&&_56.getAttribute(_4e+"type");if(_58){_57=_58;}else{_57=_55&&_56.getAttribute(_4d);}var _59=_58==_57;if(_57){var _5a={"type":_57,fastpath:_59,clsInfo:_1f(_57,_59),node:_56,scripts:[],inherited:_52};_51.push(_5a);_4f(_5a,_51);}else{if(_54&&_56.nodeName.toLowerCase()=="script"){_57=_56.getAttribute("type");if(_57&&/^dojo\/\w/i.test(_57)){_54.push(_56);}}else{if(_55){_4f({node:_56,inherited:_52},_51);}}}}}};var _5b={};if(_4b&&_4b.inherited){for(var key in _4b.inherited){if(_4b.inherited[key]){_5b[key]=_4b.inherited[key];}}}var _5c=[];_4f({node:_4c,inherited:_5b},_5c);var _5d=_4b&&_4b.template?{template:true}:null;return this.instantiate(_5c,_5d,_4b);};}();(function(){var _5e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_5e);}else{dojo._loaders.unshift(_5e);}})();}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_5f){if(this._hash[_5f.id]){throw new Error("Tried to register widget with id=="+_5f.id+" but that id is already registered");}this._hash[_5f.id]=_5f;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_60,_61){_61=_61||dojo.global;var i=0,id;for(id in this._hash){_60.call(_61,this._hash[id],i++,this._hash);}return this;},filter:function(_62,_63){_63=_63||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_62.call(_63,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_64;for(id in this._hash){_64=this._hash[id];if(_64.declaredClass==cls){res.add(_64);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_65,_66){return dojo.map(this.toArray(),_65,_66);},every:function(_67,_68){_68=_68||dojo.global;var x=0,i;for(i in this._hash){if(!_67.call(_68,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_69,_6a){_6a=_6a||dojo.global;var x=0,i;for(i in this._hash){if(_69.call(_6a,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _6b=dijit.registry._hash,_6c=dojo.attr,_6d=dojo.hasAttr,_6e=dojo.style;dijit.byId=function(id){return typeof id=="string"?_6b[id]:id;};var _6f={};dijit.getUniqueId=function(_70){var id;do{id=_70+"_"+(_70 in _6f?++_6f[_70]:_6f[_70]=0);}while(_6b[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_71){var _72=[];function _73(_74){for(var _75=_74.firstChild;_75;_75=_75.nextSibling){if(_75.nodeType==1){var _76=_75.getAttribute("widgetId");if(_76){var _77=_6b[_76];if(_77){_72.push(_77);}}else{_73(_75);}}}};_73(_71);return _72;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_78){if(!_78._destroyed){if(_78.destroyRecursive){_78.destroyRecursive();}else{if(_78.destroy){_78.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_79){return _6b[_79.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_7a){while(_7a){var id=_7a.getAttribute&&_7a.getAttribute("widgetId");if(id){return _6b[id];}_7a=_7a.parentNode;}return null;};var _7b=(dijit._isElementShown=function(_7c){var s=_6e(_7c);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_6c(_7c,"type")!="hidden");});dijit.hasDefaultTabStop=function(_7d){switch(_7d.nodeName.toLowerCase()){case "a":return _6d(_7d,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _7e;try{var _7f=_7d.contentDocument;if("designMode" in _7f&&_7f.designMode=="on"){return true;}_7e=_7f.body;}catch(e1){try{_7e=_7d.contentWindow.document.body;}catch(e2){return false;}}return _7e.contentEditable=="true"||(_7e.firstChild&&_7e.firstChild.contentEditable=="true");default:return _7d.contentEditable=="true";}};var _80=(dijit.isTabNavigable=function(_81){if(_6c(_81,"disabled")){return false;}else{if(_6d(_81,"tabIndex")){return _6c(_81,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_81);}}});dijit._getTabNavigable=function(_82){var _83,_84,_85,_86,_87,_88,_89={};function _8a(_8b){return _8b&&_8b.tagName.toLowerCase()=="input"&&_8b.type&&_8b.type.toLowerCase()=="radio"&&_8b.name&&_8b.name.toLowerCase();};var _8c=function(_8d){dojo.query("> *",_8d).forEach(function(_8e){if((dojo.isIE<=9&&_8e.scopeName!=="HTML")||!_7b(_8e)){return;}if(_80(_8e)){var _8f=_6c(_8e,"tabIndex");if(!_6d(_8e,"tabIndex")||_8f==0){if(!_83){_83=_8e;}_84=_8e;}else{if(_8f>0){if(!_85||_8f<_86){_86=_8f;_85=_8e;}if(!_87||_8f>=_88){_88=_8f;_87=_8e;}}}var rn=_8a(_8e);if(dojo.attr(_8e,"checked")&&rn){_89[rn]=_8e;}}if(_8e.nodeName.toUpperCase()!="SELECT"){_8c(_8e);}});};if(_7b(_82)){_8c(_82);}function rs(_90){return _89[_8a(_90)]||_90;};return {first:rs(_83),last:rs(_84),lowest:rs(_85),highest:rs(_87)};};dijit.getFirstInTabbingOrder=function(_91){var _92=dijit._getTabNavigable(dojo.byId(_91));return _92.lowest?_92.lowest:_92.first;};dijit.getLastInTabbingOrder=function(_93){var _94=dijit._getTabNavigable(dojo.byId(_93));return _94.last?_94.last:_94.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_95){if(_95){dojo.mixin(this,_95);}},get:function(_96){return this[_96];},set:function(_97,_98){if(typeof _97==="object"){for(var x in _97){this.set(x,_97[x]);}return this;}var _99=this[_97];this[_97]=_98;if(this._watchCallbacks){this._watchCallbacks(_97,_99,_98);}return this;},watch:function(_9a,_9b){var _9c=this._watchCallbacks;if(!_9c){var _9d=this;_9c=this._watchCallbacks=function(_9e,_9f,_a0,_a1){var _a2=function(_a3){if(_a3){_a3=_a3.slice();for(var i=0,l=_a3.length;i<l;i++){try{_a3[i].call(_9d,_9e,_9f,_a0);}catch(e){console.error(e);}}}};_a2(_9c["_"+_9e]);if(!_a1){_a2(_9c["*"]);}};}if(!_9b&&typeof _9a==="function"){_9b=_9a;_9a="*";}else{_9a="_"+_9a;}var _a4=_9c[_9a];if(typeof _a4!=="object"){_a4=_9c[_9a]=[];}_a4.push(_9b);return {unwatch:function(){_a4.splice(dojo.indexOf(_a4,_9b),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_a5,_a6){this.create(_a5,_a6);},create:function(_a7,_a8){this.srcNodeRef=dojo.byId(_a8);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_a7){this.params=_a7;dojo._mixin(this,_a7);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _a9=this.srcNodeRef;if(_a9&&_a9.parentNode&&this.domNode!==_a9){_a9.parentNode.replaceChild(this.domNode,_a9);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _aa=function(_ab,_ac){if((_ac.params&&_ab in _ac.params)||_ac[_ab]){_ac.set(_ab,_ac[_ab]);}};for(var _ad in this.attributeMap){_aa(_ad,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_aa(a,this);}},this);},_getSetterAttributes:function(){var _ae=this.constructor;if(!_ae._setterAttrs){var r=(_ae._setterAttrs=[]),_af,_b0=_ae.prototype;for(var _b1 in _b0){if(dojo.isFunction(_b0[_b1])&&(_af=_b1.match(/^_set([a-zA-Z]*)Attr$/))&&_af[1]){r.push(_af[1].charAt(0).toLowerCase()+_af[1].substr(1));}}}return _ae._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _b2=this.baseClass.split(" ");if(!this.isLeftToRight()){_b2=_b2.concat(dojo.map(_b2,function(_b3){return _b3+"Rtl";}));}dojo.addClass(this.domNode,_b2);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_b4){this._beingDestroyed=true;this.destroyDescendants(_b4);this.destroy(_b4);},destroy:function(_b5){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_b6){dfe(_b6,d.disconnect);});dfe(this._subscribes,function(_b7){dun(_b7);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_b5);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_b8){if(this.bgIframe){this.bgIframe.destroy(_b8);delete this.bgIframe;}if(this.domNode){if(_b8){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_b8){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_b9){dojo.forEach(this.getChildren(),function(_ba){if(_ba.destroyRecursive){_ba.destroyRecursive(_b9);}});},uninitialize:function(){return false;},_setClassAttr:function(_bb){var _bc=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_bc,_bb,this["class"]);this._set("class",_bb);},_setStyleAttr:function(_bd){var _be=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_bd)){dojo.style(_be,_bd);}else{if(_be.style.cssText){_be.style.cssText+="; "+_bd;}else{_be.style.cssText=_bd;}}this._set("style",_bd);},_attrToDom:function(_bf,_c0){var _c1=this.attributeMap[_bf];dojo.forEach(dojo.isArray(_c1)?_c1:[_c1],function(_c2){var _c3=this[_c2.node||_c2||"domNode"];var _c4=_c2.type||"attribute";switch(_c4){case "attribute":if(dojo.isFunction(_c0)){_c0=dojo.hitch(this,_c0);}var _c5=_c2.attribute?_c2.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_bf)?_bf.toLowerCase():_bf);dojo.attr(_c3,_c5,_c0);break;case "innerText":_c3.innerHTML="";_c3.appendChild(dojo.doc.createTextNode(_c0));break;case "innerHTML":_c3.innerHTML=_c0;break;case "class":dojo.replaceClass(_c3,_c0,this[_bf]);break;}},this);},get:function(_c6){var _c7=this._getAttrNames(_c6);return this[_c7.g]?this[_c7.g]():this[_c6];},set:function(_c8,_c9){if(typeof _c8==="object"){for(var x in _c8){this.set(x,_c8[x]);}return this;}var _ca=this._getAttrNames(_c8);if(this[_ca.s]){var _cb=this[_ca.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(_c8 in this.attributeMap){this._attrToDom(_c8,_c9);}this._set(_c8,_c9);}return _cb||this;},_attrPairNames:{},_getAttrNames:function(_cc){var apn=this._attrPairNames;if(apn[_cc]){return apn[_cc];}var uc=_cc.charAt(0).toUpperCase()+_cc.substr(1);return (apn[_cc]={n:_cc+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(_cd,_ce){var _cf=this[_cd];this[_cd]=_ce;if(this._watchCallbacks&&this._created&&_ce!==_cf){this._watchCallbacks(_cd,_cf,_ce);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},connect:function(obj,_d0,_d1){var _d2=[dojo._connect(obj,_d0,this,_d1)];this._connects.push(_d2);return _d2;},disconnect:function(_d3){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_d3){dojo.forEach(_d3,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_d4,_d5){var _d6=dojo.subscribe(_d4,this,_d5);this._subscribes.push(_d6);return _d6;},unsubscribe:function(_d7){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_d7){dojo.unsubscribe(_d7);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_d8,_d9){if(_d8.declaredClass&&_d8.addChild){_d8.addChild(this,_d9);}else{dojo.place(this.domNode,_d8,_d9);}return this;},defer:function(fcn,_da){var _db=setTimeout(dojo.hitch(this,function(){_db=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_da||0);return {remove:function(){if(_db){clearTimeout(_db);_db=null;}return null;}};}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _dc=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _dd=dojo._docScroll();return {w:_dc.clientWidth,h:_dc.clientHeight,l:_dd.x,t:_dd.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_de,pos){_de=dojo.byId(_de);var _df,doc=_de.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){_df=dojo.body();var _e0=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_df,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_e0,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_e0.removeChild(div);_df.removeChild(_e0);}if(!("position_fixed_support" in dojo.window)){_df=dojo.body();var _e1=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_df,"last"),_e2=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_e1,"last");dojo.window.position_fixed_support=dojo.position(_e2).x!=dojo.position(_e1).x;_e1.removeChild(_e2);_df.removeChild(_e1);}try{_df=doc.body||doc.getElementsByTagName("body")[0];var _e3=doc.documentElement||_df.parentNode,_e4=dojo.isIE,_e5=dojo.isWebKit;if(_de==_df||_de==_e3){return;}if(!(dojo.isMozilla||_e4||_e5||dojo.isOpera)&&("scrollIntoView" in _de)){_de.scrollIntoView(false);return;}var _e6=doc.compatMode=="BackCompat",_e7=Math.min(_df.clientWidth||_e3.clientWidth,_e3.clientWidth||_df.clientWidth),_e8=Math.min(_df.clientHeight||_e3.clientHeight,_e3.clientHeight||_df.clientHeight),_e9=(_e5||_e6)?_df:_e3,_ea=pos||dojo.position(_de),el=_de.parentNode,_eb=function(el){return (_e4<=6||(_e4==7&&_e6))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_eb(_de)){return;}while(el){if(el==_df){el=_e9;}var _ec=dojo.position(el),_ed=_eb(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_e9){_ec.w=_e7;_ec.h=_e8;if(_e9==_e3&&_e4&&rtl){_ec.x+=_e9.offsetWidth-_ec.w;}if(_ec.x<0||!_e4||_e4>=9){_ec.x=0;}if(_ec.y<0||!_e4||_e4>=9){_ec.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_ec.w-=pb.w;_ec.h-=pb.h;_ec.x+=pb.l;_ec.y+=pb.t;var _ee=el.clientWidth,_ef=_ec.w-_ee;if(_ee>0&&_ef>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_ec.x+=_ef;}_ec.w=_ee;}_ee=el.clientHeight;_ef=_ec.h-_ee;if(_ee>0&&_ef>0){_ec.h=_ee;}}if(_ed){if(_ec.y<0){_ec.h+=_ec.y;_ec.y=0;}if(_ec.x<0){_ec.w+=_ec.x;_ec.x=0;}if(_ec.y+_ec.h>_e8){_ec.h=_e8-_ec.y;}if(_ec.x+_ec.w>_e7){_ec.w=_e7-_ec.x;}}var l=_ea.x-_ec.x,t=_ea.y-_ec.y,r=l+_ea.w-_ec.w,bot=t+_ea.h-_ec.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_e9||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_e4==8&&!_e6)||_e4>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_ea.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_e9||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_ea.y-=s;}el=(el!=_e9)&&!_ed&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_de.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_f0){var _f1=dojo.doc,_f2=_f0.mark;if(_f2){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_f2.pRange){var r=_f2;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_f2);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_f1.selection&&_f2){var rg;if(_f2.pRange){rg=_f2.range;}else{if(dojo.isArray(_f2)){rg=_f1.body.createControlRange();dojo.forEach(_f2,function(n){rg.addElement(n);});}else{rg=_f1.body.createTextRange();rg.moveToBookmark(_f2);}}rg.select();}}}},getFocus:function(_f3,_f4){var _f5=!dijit._curFocus||(_f3&&dojo.isDescendant(dijit._curFocus,_f3.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_f5,bookmark:(_f5==dijit._curFocus)&&dojo.withGlobal(_f4||dojo.global,dijit.getBookmark),openedForWindow:_f4};},focus:function(_f6){if(!_f6){return;}var _f7="node" in _f6?_f6.node:_f6,_f8=_f6.bookmark,_f9=_f6.openedForWindow,_fa=_f8?_f8.isCollapsed:false;if(_f7){var _fb=(_f7.tagName.toLowerCase()=="iframe")?_f7.contentWindow:_f7;if(_fb&&_fb.focus){try{_fb.focus();}catch(e){}}dijit._onFocusNode(_f7);}if(_f8&&dojo.withGlobal(_f9||dojo.global,dijit.isCollapsed)&&!_fa){if(_f9){_f9.focus();}try{dojo.withGlobal(_f9||dojo.global,dijit.moveToBookmark,null,[_f8]);}catch(e2){}}},_activeStack:[],registerIframe:function(_fc){return dijit.registerWin(_fc.contentWindow,_fc);},unregisterIframe:function(_fd){dijit.unregisterWin(_fd);},registerWin:function(_fe,_ff){var _100=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_ff||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_fe.document.documentElement:_fe.document;if(doc){if(dojo.isIE){_fe.document.body.attachEvent("onmousedown",_100);var _101=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_ff||evt.srcElement);}else{dijit._onTouchNode(_ff||evt.srcElement);}};doc.attachEvent("onactivate",_101);var _102=function(evt){dijit._onBlurNode(_ff||evt.srcElement);};doc.attachEvent("ondeactivate",_102);return function(){_fe.document.detachEvent("onmousedown",_100);doc.detachEvent("onactivate",_101);doc.detachEvent("ondeactivate",_102);doc=null;};}else{doc.body.addEventListener("mousedown",_100,true);var _103=function(evt){dijit._onFocusNode(_ff||evt.target);};doc.addEventListener("focus",_103,true);var _104=function(evt){dijit._onBlurNode(_ff||evt.target);};doc.addEventListener("blur",_104,true);return function(){doc.body.removeEventListener("mousedown",_100,true);doc.removeEventListener("focus",_103,true);doc.removeEventListener("blur",_104,true);doc=null;};}}},unregisterWin:function(_105){_105&&_105();},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _106=[];try{while(node){var _107=dojo.attr(node,"dijitPopupParent");if(_107){node=dijit.byId(_107).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_108=id&&dijit.byId(id);if(_108&&!(by=="mouse"&&_108.get("disabled"))){_106.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_106,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_109,by){var _10a=dijit._activeStack;dijit._activeStack=_109;for(var _10b=0;_10b<Math.min(_10a.length,_109.length);_10b++){if(_10a[_10b]!=_109[_10b]){break;}}var _10c;for(var i=_10a.length-1;i>=_10b;i--){_10c=dijit.byId(_10a[i]);if(_10c){_10c._focused=false;_10c.set("focused",false);_10c._hasBeenBlurred=true;if(_10c._onBlur){_10c._onBlur(by);}dojo.publish("widgetBlur",[_10c,by]);}}for(i=_10b;i<_109.length;i++){_10c=dijit.byId(_109[i]);if(_10c){_10c._focused=true;_10c.set("focused",true);if(_10c._onFocus){_10c._onFocus(by);}dojo.publish("widgetFocus",[_10c,by]);}}}});dojo.addOnLoad(function(){var _10d=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_10d);_10d=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_10e){this.pairs=[];this.returnWrappers=_10e||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_10f,wrap,_110,_111){this.pairs[((_111)?"unshift":"push")]([name,_10f,wrap,_110]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_112,_113){var _114=dojo.map(_112,function(_115){var c={corner:_115,pos:{x:pos.x,y:pos.y}};if(_113){c.pos.x+=_115.charAt(1)=="L"?_113.x:-_113.x;c.pos.y+=_115.charAt(0)=="T"?_113.y:-_113.y;}return c;});return dijit._place(node,_114);};dijit._place=function(node,_116,_117,_118){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_116,function(_119){var _11a=_119.corner;var pos=_119.pos;var _11b=0;var _11c={w:_11a.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_11a.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_117){var res=_117(node,_119.aroundCorner,_11a,_11c,_118);_11b=typeof res=="undefined"?0:res;}var _11d=node.style;var _11e=_11d.display;var _11f=_11d.visibility;_11d.visibility="hidden";_11d.display="";var mb=dojo.marginBox(node);_11d.display=_11e;_11d.visibility=_11f;var _120=Math.max(view.l,_11a.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_121=Math.max(view.t,_11a.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_11a.charAt(1)=="L"?(_120+mb.w):pos.x),endY=Math.min(view.t+view.h,_11a.charAt(0)=="T"?(_121+mb.h):pos.y),_122=endX-_120,_123=endY-_121;_11b+=(mb.w-_122)+(mb.h-_123);if(best==null||_11b<best.overflow){best={corner:_11a,aroundCorner:_119.aroundCorner,x:_120,y:_121,w:_122,h:_123,overflow:_11b,spaceAvailable:_11c};}return !_11b;});if(best.overflow&&_117){_117(node,best.aroundCorner,best.corner,best.spaceAvailable,_118);}var l=dojo._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};dijit.placeOnScreenAroundNode=function(node,_124,_125,_126){_124=dojo.byId(_124);var _127=dojo.position(_124,true);return dijit._placeOnScreenAroundRect(node,_127.x,_127.y,_127.w,_127.h,_125,_126);};dijit.placeOnScreenAroundRectangle=function(node,_128,_129,_12a){return dijit._placeOnScreenAroundRect(node,_128.x,_128.y,_128.width,_128.height,_129,_12a);};dijit._placeOnScreenAroundRect=function(node,x,y,_12b,_12c,_12d,_12e){var _12f=[];for(var _130 in _12d){_12f.push({aroundCorner:_130,corner:_12d[_130],pos:{x:x+(_130.charAt(1)=="L"?0:_12b),y:y+(_130.charAt(0)=="T"?0:_12c)}});}return dijit._place(node,_12f,_12e,{w:_12b,h:_12c});};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_131,_132,_133){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_134,_135){var _136={};dojo.forEach(_134,function(pos){switch(pos){case "after":_136[_135?"BR":"BL"]=_135?"BL":"BR";break;case "before":_136[_135?"BL":"BR"]=_135?"BR":"BL";break;case "below-alt":_135=!_135;case "below":_136[_135?"BL":"BR"]=_135?"TL":"TR";_136[_135?"BR":"BL"]=_135?"TR":"TL";break;case "above-alt":_135=!_135;case "above":default:_136[_135?"TL":"TR"]=_135?"BL":"BR";_136[_135?"TR":"TL"]=_135?"BR":"BL";break;}});return _136;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_137){var node=_137.domNode||_137,_138=_137.declaredClass?_137._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_138){_138=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_138.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_137.declaredClass){_137._popupWrapper=_138;dojo.connect(_137,"destroy",function(){dojo.destroy(_138);delete _137._popupWrapper;});}}return _138;},moveOffScreen:function(_139){var _13a=this._createWrapper(_139);dojo.style(_13a,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_13b){var _13c=this._createWrapper(_13b);dojo.style(_13c,"display","none");},getTopPopup:function(){var _13d=this._stack;for(var pi=_13d.length-1;pi>0&&_13d[pi].parent===_13d[pi-1].widget;pi--){}return _13d[pi];},open:function(args){var _13e=this._stack,_13f=args.popup,_140=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_141=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_13e.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_13e[_13e.length-1].widget.domNode))){dijit.popup.close(_13e[_13e.length-1].widget);}var _142=this._createWrapper(_13f);dojo.attr(_142,{id:id,style:{zIndex:this._beginZIndex+_13e.length},"class":"dijitPopup "+(_13f.baseClass||_13f["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_13f.bgIframe){_13f.bgIframe=new dijit.BackgroundIframe(_142);}}var best=_141?dijit.placeOnScreenAroundElement(_142,_141,_140,_13f.orient?dojo.hitch(_13f,"orient"):null):dijit.placeOnScreen(_142,args,_140=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_142.style.display="";_142.style.visibility="visible";_13f.domNode.style.visibility="visible";var _143=[];_143.push(dojo.connect(_142,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _144=this.getTopPopup();if(_144&&_144.onCancel){_144.onCancel();}}}}));if(_13f.onCancel){_143.push(dojo.connect(_13f,"onCancel",args.onCancel));}_143.push(dojo.connect(_13f,_13f.onExecute?"onExecute":"onChange",this,function(){var _145=this.getTopPopup();if(_145&&_145.onExecute){_145.onExecute();}}));_13e.push({widget:_13f,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_143});if(_13f.onOpen){_13f.onOpen(best);}return best;},close:function(_146){var _147=this._stack;while((_146&&dojo.some(_147,function(elem){return elem.widget==_146;}))||(!_146&&_147.length)){var top=_147.pop(),_148=top.widget,_149=top.onClose;if(_148.onClose){_148.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_148&&_148.domNode){this.hide(_148);}if(_149){_149();}}}};dijit._frames=new function(){var _14a=[];this.pop=function(){var _14b;if(_14a.length){_14b=_14a.pop();_14b.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_14b=dojo.doc.createElement(html);}else{_14b=dojo.create("iframe");_14b.src="javascript:\"\"";_14b.className="dijitBackgroundIframe";dojo.style(_14b,"opacity",0.1);}_14b.tabIndex=-1;dijit.setWaiRole(_14b,"presentation");}return _14b;};this.push=function(_14c){_14c.style.display="none";_14a.push(_14c);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _14d=(this.iframe=dijit._frames.pop());node.appendChild(_14d);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_14d,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_14e=d.isOpera,maj=Math.floor,ff=d.isFF,_14f=d.boxModel.replace(/-/,""),_150={dj_quirks:d.isQuirks,dj_opera:_14e,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_150["dj_ie"]=true;_150["dj_ie"+maj(ie)]=true;_150["dj_iequirks"]=d.isQuirks;}if(ff){_150["dj_ff"+maj(ff)]=true;}_150["dj_"+_14f]=true;var _151="";for(var clz in _150){if(_150[clz]){_151+=clz+" ";}}html.className=d.trim(html.className+" "+_151);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _152="dj_rtl dijitRtl "+_151.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_152);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_153,node,_154,obj,_155,_156,_157){if(obj!=this._obj){this.stop();this._initialDelay=_156||500;this._subsequentDelay=_155||0.9;this._minDelay=_157||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_153,_154);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_158,_159,_15a,_15b,_15c,_15d){if(_158.keyCode){_158.charOrCode=_158.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_158.charCode){_158.charOrCode=String.fromCharCode(_158.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_158.charOrCode&&(_158.ctrlKey===undefined||_158.ctrlKey==evt.ctrlKey)&&(_158.altKey===undefined||_158.altKey==evt.altKey)&&(_158.metaKey===undefined||_158.metaKey==(evt.metaKey||false))&&(_158.shiftKey===undefined||_158.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_159,node,_15a,_158,_15b,_15c,_15d);}else{if(dijit.typematic._obj==_158){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_158){dijit.typematic.stop();}})];},addMouseListener:function(node,_15e,_15f,_160,_161,_162){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_15e,node,_15f,node,_160,_161,_162);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE<9){dijit.typematic.trigger(evt,_15e,node,_15f,node,_160,_161,_162);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_163,_164,_165,_166,_167,_168,_169,_16a){return this.addKeyListener(_164,_165,_166,_167,_168,_169,_16a).concat(this.addMouseListener(_163,_166,_167,_168,_169,_16a));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _16b=cs.backgroundImage;var _16c=(cs.borderTopColor==cs.borderRightColor)||(_16b!=null&&(_16b=="none"||_16b=="url(invalid-url:)"));dojo[_16c?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem,role){var _16d=this.getWaiRole(elem);return role?(_16d.indexOf(role)>-1):(_16d.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _16e=dojo.attr(elem,"role");if(!_16e){return;}if(role){var t=dojo.trim((" "+_16e+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_16f){return elem.hasAttribute?elem.hasAttribute("aria-"+_16f):!!elem.getAttribute("aria-"+_16f);},getWaiState:function(elem,_170){return elem.getAttribute("aria-"+_170)||"";},setWaiState:function(elem,_171,_172){elem.setAttribute("aria-"+_171,_172);},removeWaiState:function(elem,_173){elem.removeAttribute("aria-"+_173);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_174,_175){if(_174&&dojo.isFunction(_174._onConnect)){_174._onConnect(_175);}});dijit._connectOnUseEventHandler=function(_176){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _177=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_177);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_177);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,create:function(_178,_179){this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_17a){if(_17a in this._deferredConnects){var _17b=this[this._deferredConnects[_17a]||"domNode"];this.connect(_17b,_17a.toLowerCase(),_17a);delete this._deferredConnects[_17a];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_17c){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_17c);},attr:function(name,_17d){if(dojo.config.isDebug){var _17e=arguments.callee._ach||(arguments.callee._ach={}),_17f=(arguments.callee.caller||"unknown caller").toString();if(!_17e[_17f]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_17f,"","2.0");_17e[_17f]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_180,_181){var d=dojo,dc=d._connect,_182=this.inherited(arguments,[obj,_180=="ondijitclick"?"onclick":_180,_181]);if(_180=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_181);_182.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}}return _182;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_183,map,_184,_185){_185=_185||dojo.global;_184=_184?dojo.hitch(_185,_184):function(v){return v;};return _183.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_186,key,_187){var _188=dojo.getObject(key,false,map);if(_187){_188=dojo.getObject(_187,false,_185).call(_185,_188,key);}return _184(_188,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_189,url,_18a){if(typeof _189=="string"){var _18b=dojo.moduleUrl(_189,url);}else{_18b=_189;_18a=url;}var key=_18b.toString();var val=_18a;if(_18a!=undefined&&!dojo.isString(_18a)){val=("value" in _18a?_18a.value:undefined);}var _18c=_18a&&_18a.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_18c?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_18c?dojo.cache._sanitize(val):val;}val=cache[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _18d=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_18d){val=_18d[1];}}else{val="";}return val;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _18e=this.declaredClass,_18f=this;return dojo.string.substitute(tmpl,this,function(_190,key){if(key.charAt(0)=="!"){_190=dojo.getObject(key.substr(1),false,_18f);}if(typeof _190=="undefined"){throw new Error(_18e+" template:"+key);}if(_190==null){return "";}return key.charAt(0)=="!"?_190:_190.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _191=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_191)){node=dojo._toDom(this._stringRepl(_191));if(node.nodeType!=1){throw new Error("Invalid template: "+_191);}}else{node=_191.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_192){var dest=this.containerNode;if(_192&&dest){while(_192.hasChildNodes()){dest.appendChild(_192.firstChild);}}},_attachTemplateNodes:function(_193,_194){_194=_194||function(n,p){return n.getAttribute(p);};var _195=dojo.isArray(_193)?_193:(_193.all||_193.getElementsByTagName("*"));var x=dojo.isArray(_193)?0:-1;for(;x<_195.length;x++){var _196=(x==-1)?_193:_195[x];if(this.widgetsInTemplate&&(_194(_196,"dojoType")||_194(_196,"data-dojo-type"))){continue;}var _197=_194(_196,"dojoAttachPoint")||_194(_196,"data-dojo-attach-point");if(_197){var _198,_199=_197.split(/\s*,\s*/);while((_198=_199.shift())){if(dojo.isArray(this[_198])){this[_198].push(_196);}else{this[_198]=_196;}this._attachPoints.push(_198);}}var _19a=_194(_196,"dojoAttachEvent")||_194(_196,"data-dojo-attach-event");if(_19a){var _19b,_19c=_19a.split(/\s*,\s*/);var trim=dojo.trim;while((_19b=_19c.shift())){if(_19b){var _19d=null;if(_19b.indexOf(":")!=-1){var _19e=_19b.split(":");_19b=trim(_19e[0]);_19d=trim(_19e[1]);}else{_19b=trim(_19b);}if(!_19d){_19d=_19b;}this._attachEvents.push(this.connect(_196,_19b,_19d));}}}var role=_194(_196,"waiRole");if(role){dijit.setWaiRole(_196,role);}var _19f=_194(_196,"waiState");if(_19f){dojo.forEach(_19f.split(/\s*,\s*/),function(_1a0){if(_1a0.indexOf("-")!=-1){var pair=_1a0.split("-");dijit.setWaiState(_196,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_1a1){delete this[_1a1];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1a2,_1a3,_1a4){var _1a5=dijit._Templated._templateCache;var key=_1a3||_1a2;var _1a6=_1a5[key];if(_1a6){try{if(!_1a6.ownerDocument||_1a6.ownerDocument==dojo.doc){return _1a6;}}catch(e){}dojo.destroy(_1a6);}if(!_1a3){_1a3=dojo.cache(_1a2,{sanitize:true});}_1a3=dojo.string.trim(_1a3);if(_1a4||_1a3.match(/\$\{([^\}]+)\}/g)){return (_1a5[key]=_1a3);}else{var node=dojo._toDom(_1a3);if(node.nodeType!=1){throw new Error("Invalid template: "+_1a3);}return (_1a5[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1a7=dijit._Templated._templateCache;for(var key in _1a7){var _1a8=_1a7[key];if(typeof _1a8=="object"){dojo.destroy(_1a8);}delete _1a7[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></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(_1a9,_1aa,_1ab,rtl){if(this.aroundNode&&this.aroundNode===_1aa){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_1a9;var pos=dijit.placeOnScreenAroundElement(this.domNode,_1aa,dijit.getPopupAroundAlignment((_1ab&&_1ab.length)?_1ab:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_1aa;},orient:function(node,_1ac,_1ad,_1ae,_1af){this.connectorNode.style.top="";var _1b0=_1ae.w-this.connectorNode.offsetWidth;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"}[_1ac+"-"+_1ad];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _1b1=Math.min((Math.max(_1b0,1)),size.w);var _1b2=_1b1<size.w;this.domNode.style.width=_1b1+"px";if(_1b2){this.containerNode.style.overflow="auto";var _1b3=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_1b3>_1b1){_1b3=_1b3+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_1b3+"px";}}if(_1ad.charAt(0)=="B"&&_1ac.charAt(0)=="B"){var mb=dojo.marginBox(node);var _1b4=this.connectorNode.offsetHeight;if(mb.h>_1ae.h){var _1b5=_1ae.h-(_1af.h/2)-(_1b4/2);this.connectorNode.style.top=_1b5+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_1af.h/2-_1b4/2,0),mb.h-_1b4)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_1b0);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_1b6){if(this._onDeck&&this._onDeck[1]==_1b6){this._onDeck=null;}else{if(this.aroundNode===_1b6){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_1b7,_1b8,_1b9,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_1b7,_1b8,_1b9,rtl);};dijit.hideTooltip=function(_1ba){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_1ba);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_1bb){dojo.forEach(this._connections||[],function(_1bc){dojo.forEach(_1bc,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_1bb)?_1bb:(_1bb?[_1bb]:[]);this._connections=dojo.map(ary,function(id){var node=dojo.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_1bb);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(dojo.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=dojo.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _1bd=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_1bd);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_1be){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_1be,this.position,!this.isLeftToRight());this._connectNode=_1be;this.onShow(_1be,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_1bf,_1c0){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,dojo.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_1c1){if(!this.disabled){switch(_1c1.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var _1c2=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1c2);});break;}}},_setStateClass:function(){var _1c3=this.baseClass.split(" ");function _1c4(_1c5){_1c3=_1c3.concat(dojo.map(_1c3,function(c){return c+_1c5;}),"dijit"+_1c5);};if(!this.isLeftToRight()){_1c4("Rtl");}if(this.checked){_1c4("Checked");}if(this.state){_1c4(this.state);}if(this.selected){_1c4("Selected");}if(this.disabled){_1c4("Disabled");}else{if(this.readOnly){_1c4("ReadOnly");}else{if(this.active){_1c4("Active");}else{if(this.hovering){_1c4("Hover");}}}}if(this._focused){_1c4("Focused");}var tn=this.stateNode||this.domNode,_1c6={};dojo.forEach(tn.className.split(" "),function(c){_1c6[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1c6[c];});}dojo.forEach(_1c3,function(c){_1c6[c]=true;});var _1c7=[];for(var c in _1c6){_1c7.push(c);}tn.className=_1c7.join(" ");this._stateClasses=_1c3;},_trackMouseState:function(node,_1c8){var _1c9=false,_1ca=false,_1cb=false;var self=this,cn=dojo.hitch(this,"connect",node);function _1cc(){var _1cd=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_1c8+"Hover",_1c9&&!_1ca&&!_1cd);dojo.toggleClass(node,_1c8+"Active",_1ca&&!_1cd);dojo.toggleClass(node,_1c8+"Focused",_1cb&&!_1cd);};cn("onmouseenter",function(){_1c9=true;_1cc();});cn("onmouseleave",function(){_1c9=false;_1ca=false;_1cc();});cn("onmousedown",function(){_1ca=true;_1cc();});cn("onmouseup",function(){_1ca=false;_1cc();});cn("onfocus",function(){_1cb=true;_1cc();});cn("onblur",function(){_1cb=false;_1cc();});this.watch("disabled",_1cc);this.watch("readOnly",_1cc);}});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_1ce){this._set("disabled",_1ce);dojo.attr(this.focusNode,"disabled",_1ce);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_1ce);}dijit.setWaiState(this.focusNode,"disabled",_1ce);if(_1ce){this._set("hovering",false);this._set("active",false);var _1cf="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_1cf)?_1cf:[_1cf],function(_1d0){var node=this[_1d0];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.focusNode.setAttribute("tabIndex",this.tabIndex);}}},setDisabled:function(_1d1){dojo.deprecated("setDisabled("+_1d1+") is deprecated. Use set('disabled',"+_1d1+") instead.","","2.0");this.set("disabled",_1d1);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){if(!this.disabled){dijit.focus(this.focusNode);}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_1d2){},_onChangeActive:false,_handleOnChange:function(_1d3,_1d4){if(this._lastValueReported==undefined&&(_1d4===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1d3;}this._pendingOnChange=this._pendingOnChange||(typeof _1d3!=typeof this._lastValueReported)||(this.compare(_1d3,this._lastValueReported)!=0);if((this.intermediateChanges||_1d4||_1d4===undefined)&&this._pendingOnChange){this._lastValueReported=_1d3;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1d3);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_1d5){dojo.deprecated("dijit.form._FormWidget:setValue("+_1d5+") is deprecated.  Use set('value',"+_1d5+") instead.","","2.0");this.set("value",_1d5);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&dojo.mouseButtons.isLeft(e)&&this.isFocusable()){var _1d6=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_1d6);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1d7){dojo.attr(this.focusNode,"readOnly",_1d7);dijit.setWaiState(this.focusNode,"readonly",_1d7);this._set("readOnly",_1d7);},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_1d8,_1d9){this._handleOnChange(_1d8,_1d9);},_handleOnChange:function(_1da,_1db){this._set("value",_1da);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _1dc=this.domNode;var _1dd=_1dc.parentNode;var _1de=_1dc.firstChild||_1dc;var _1df=_1de.style.filter;var _1e0=this;while(_1dd&&_1dd.clientHeight==0){(function ping(){var _1e1=_1e0.connect(_1dd,"onscroll",function(e){_1e0.disconnect(_1e1);_1de.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1de.style.filter=_1df;},0);});})();_1dd=_1dd.parentNode;}}}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1e2,_1e3){var _1e4=this.containerNode;if(_1e3&&typeof _1e3=="number"){var _1e5=this.getChildren();if(_1e5&&_1e5.length>=_1e3){_1e4=_1e5[_1e3-1].domNode;_1e3="after";}}dojo.place(_1e2.domNode,_1e4,_1e3);if(this._started&&!_1e2._started){_1e2.startup();}},removeChild:function(_1e6){if(typeof _1e6=="number"){_1e6=this.getChildren()[_1e6];}if(_1e6){var node=_1e6.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1e7){dojo.forEach(this.getChildren(),function(_1e8){_1e8.destroyRecursive(_1e7);});},_getSiblingOfChild:function(_1e9,dir){var node=_1e9.domNode,_1ea=(dir>0?"nextSibling":"previousSibling");do{node=node[_1ea];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_1eb){return dojo.indexOf(this.getChildren(),_1eb);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1ec){_1ec.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _1ed=this.dropDown,_1ee=false;if(e&&this._opened){var c=dojo.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_1ee){if(dojo.hasClass(t,"dijitPopup")){_1ee=true;}else{t=t.parentNode;}}if(_1ee){t=e.target;if(_1ed.onItemClick){var _1ef;while(t&&!(_1ef=dijit.byNode(t))){t=t.parentNode;}if(_1ef&&_1ef.onClick&&_1ef.getParent){_1ef.getParent().onItemClick(_1ef,e);}}return;}}}if(this._opened&&_1ed.focus&&_1ed.autoFocus!==false){window.setTimeout(dojo.hitch(_1ed,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _1f0={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_1f0+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_1f1=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){dojo.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==dojo.keys.DOWN_ARROW||((e.charOrCode==dojo.keys.ENTER||e.charOrCode==" ")&&((_1f1.tagName||"").toLowerCase()!=="input"||(_1f1.type&&_1f1.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;dojo.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}},_onBlur:function(){var _1f2=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_1f2);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_1f3){_1f3();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _1f4=this.dropDown,_1f5=_1f4.domNode,_1f6=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_1f5.style.width){this._explicitDDWidth=true;}if(_1f5.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _1f7={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_1f7.width="";}if(!this._explicitDDHeight){_1f7.height="";}dojo.style(_1f5,_1f7);var _1f8=this.maxHeight;if(_1f8==-1){var _1f9=dojo.window.getBox(),_1fa=dojo.position(_1f6,false);_1f8=Math.floor(Math.max(_1fa.y,_1f9.h-(_1fa.y+_1fa.h)));}if(_1f4.startup&&!_1f4._started){_1f4.startup();}dijit.popup.moveOffScreen(_1f4);var mb=dojo._getMarginSize(_1f5);var _1fb=(_1f8&&mb.h>_1f8);dojo.style(_1f5,{overflowX:"hidden",overflowY:_1fb?"auto":"hidden"});if(_1fb){mb.h=_1f8;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_1f6.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_1f6.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_1f4.resize)){_1f4.resize(mb);}else{dojo.marginBox(_1f5,mb);}}var _1fc=dijit.popup.open({parent:this,popup:_1f4,around:_1f6,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){dojo.attr(self._popupStateNode,"popupActive",false);dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _1fc;},closeDropDown:function(_1fd){if(this._opened){if(_1fd){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _1fe=dijit.byNode(node);if(_1fe&&typeof _1fe._onSubmit=="function"){_1fe._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_1ff){if(_1ff&&(!this.params||!("label" in this.params))){this.set("label",_1ff.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_200){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_200);},_setLabelAttr:function(_201){this._set("label",_201);this.containerNode.innerHTML=_201;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _202=this.iconClass||"dijitNoIcon",_203=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_203,_202);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\n\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){if(this.srcNodeRef){var _204=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_204[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _205=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_205);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _206=this.dropDown;return (!!_206&&(!_206.href||_206.isLoaded));},loadDropDown:function(){var _207=this.dropDown;if(!_207){return;}if(!this.isLoaded()){var _208=dojo.connect(_207,"onLoad",this,function(){dojo.disconnect(_208);this.openDropDown();});_207.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\n\t\t></div\n\t\t></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\trole=\"button\" aria-haspopup=\"true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t\t><td style=\"display:none !important;\"\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\n\t\t/></td></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_209){if(!this.disabled){dijit.focus(_209=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_20a,_20b){this._set("checked",_20a);dojo.attr(this.focusNode||this.domNode,"checked",_20a);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_20a);this._handleOnChange(_20a,_20b);},setChecked:function(_20c){dojo.deprecated("setChecked("+_20c+") is deprecated. Use set('checked',"+_20c+") instead.","","2.0");this.set("checked",_20c);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dojox.gfx.matrix"]){dojo._hasResource["dojox.gfx.matrix"]=true;dojo.provide("dojox.gfx.matrix");(function(){var m=dojox.gfx.matrix;var _20d={};m._degToRad=function(_20e){return _20d[_20e]||(_20d[_20e]=(Math.PI*_20e/180));};m._radToDeg=function(_20f){return _20f/Math.PI*180;};m.Matrix2D=function(arg){if(arg){if(typeof arg=="number"){this.xx=this.yy=arg;}else{if(arg instanceof Array){if(arg.length>0){var _210=m.normalize(arg[0]);for(var i=1;i<arg.length;++i){var l=_210,r=dojox.gfx.matrix.normalize(arg[i]);_210=new m.Matrix2D();_210.xx=l.xx*r.xx+l.xy*r.yx;_210.xy=l.xx*r.xy+l.xy*r.yy;_210.yx=l.yx*r.xx+l.yy*r.yx;_210.yy=l.yx*r.xy+l.yy*r.yy;_210.dx=l.xx*r.dx+l.xy*r.dy+l.dx;_210.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}dojo.mixin(this,_210);}}else{dojo.mixin(this,arg);}}}};dojo.extend(m.Matrix2D,{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0});dojo.mixin(m,{identity:new m.Matrix2D(),flipX:new m.Matrix2D({xx:-1}),flipY:new m.Matrix2D({yy:-1}),flipXY:new m.Matrix2D({xx:-1,yy:-1}),translate:function(a,b){if(arguments.length>1){return new m.Matrix2D({dx:a,dy:b});}return new m.Matrix2D({dx:a.x,dy:a.y});},scale:function(a,b){if(arguments.length>1){return new m.Matrix2D({xx:a,yy:b});}if(typeof a=="number"){return new m.Matrix2D({xx:a,yy:a});}return new m.Matrix2D({xx:a.x,yy:a.y});},rotate:function(_211){var c=Math.cos(_211);var s=Math.sin(_211);return new m.Matrix2D({xx:c,xy:-s,yx:s,yy:c});},rotateg:function(_212){return m.rotate(m._degToRad(_212));},skewX:function(_213){return new m.Matrix2D({xy:Math.tan(_213)});},skewXg:function(_214){return m.skewX(m._degToRad(_214));},skewY:function(_215){return new m.Matrix2D({yx:Math.tan(_215)});},skewYg:function(_216){return m.skewY(m._degToRad(_216));},reflect:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=2*a*b/n2;return new m.Matrix2D({xx:2*a2/n2-1,xy:xy,yx:xy,yy:2*b2/n2-1});},project:function(a,b){if(arguments.length==1){b=a.y;a=a.x;}var a2=a*a,b2=b*b,n2=a2+b2,xy=a*b/n2;return new m.Matrix2D({xx:a2/n2,xy:xy,yx:xy,yy:b2/n2});},normalize:function(_217){return (_217 instanceof m.Matrix2D)?_217:new m.Matrix2D(_217);},clone:function(_218){var obj=new m.Matrix2D();for(var i in _218){if(typeof (_218[i])=="number"&&typeof (obj[i])=="number"&&obj[i]!=_218[i]){obj[i]=_218[i];}}return obj;},invert:function(_219){var M=m.normalize(_219),D=M.xx*M.yy-M.xy*M.yx,M=new m.Matrix2D({xx:M.yy/D,xy:-M.xy/D,yx:-M.yx/D,yy:M.xx/D,dx:(M.xy*M.dy-M.yy*M.dx)/D,dy:(M.yx*M.dx-M.xx*M.dy)/D});return M;},_multiplyPoint:function(_21a,x,y){return {x:_21a.xx*x+_21a.xy*y+_21a.dx,y:_21a.yx*x+_21a.yy*y+_21a.dy};},multiplyPoint:function(_21b,a,b){var M=m.normalize(_21b);if(typeof a=="number"&&typeof b=="number"){return m._multiplyPoint(M,a,b);}return m._multiplyPoint(M,a.x,a.y);},multiply:function(_21c){var M=m.normalize(_21c);for(var i=1;i<arguments.length;++i){var l=M,r=m.normalize(arguments[i]);M=new m.Matrix2D();M.xx=l.xx*r.xx+l.xy*r.yx;M.xy=l.xx*r.xy+l.xy*r.yy;M.yx=l.yx*r.xx+l.yy*r.yx;M.yy=l.yx*r.xy+l.yy*r.yy;M.dx=l.xx*r.dx+l.xy*r.dy+l.dx;M.dy=l.yx*r.dx+l.yy*r.dy+l.dy;}return M;},_sandwich:function(_21d,x,y){return m.multiply(m.translate(x,y),_21d,m.translate(-x,-y));},scaleAt:function(a,b,c,d){switch(arguments.length){case 4:return m._sandwich(m.scale(a,b),c,d);case 3:if(typeof c=="number"){return m._sandwich(m.scale(a),b,c);}return m._sandwich(m.scale(a,b),c.x,c.y);}return m._sandwich(m.scale(a),b.x,b.y);},rotateAt:function(_21e,a,b){if(arguments.length>2){return m._sandwich(m.rotate(_21e),a,b);}return m._sandwich(m.rotate(_21e),a.x,a.y);},rotategAt:function(_21f,a,b){if(arguments.length>2){return m._sandwich(m.rotateg(_21f),a,b);}return m._sandwich(m.rotateg(_21f),a.x,a.y);},skewXAt:function(_220,a,b){if(arguments.length>2){return m._sandwich(m.skewX(_220),a,b);}return m._sandwich(m.skewX(_220),a.x,a.y);},skewXgAt:function(_221,a,b){if(arguments.length>2){return m._sandwich(m.skewXg(_221),a,b);}return m._sandwich(m.skewXg(_221),a.x,a.y);},skewYAt:function(_222,a,b){if(arguments.length>2){return m._sandwich(m.skewY(_222),a,b);}return m._sandwich(m.skewY(_222),a.x,a.y);},skewYgAt:function(_223,a,b){if(arguments.length>2){return m._sandwich(m.skewYg(_223),a,b);}return m._sandwich(m.skewYg(_223),a.x,a.y);}});})();dojox.gfx.Matrix2D=dojox.gfx.matrix.Matrix2D;}if(!dojo._hasResource["dojox.gfx._base"]){dojo._hasResource["dojox.gfx._base"]=true;dojo.provide("dojox.gfx._base");(function(){var g=dojox.gfx,b=g._base;g._hasClass=function(node,_224){var cls=node.getAttribute("className");return cls&&(" "+cls+" ").indexOf(" "+_224+" ")>=0;};g._addClass=function(node,_225){var cls=node.getAttribute("className")||"";if(!cls||(" "+cls+" ").indexOf(" "+_225+" ")<0){node.setAttribute("className",cls+(cls?" ":"")+_225);}};g._removeClass=function(node,_226){var cls=node.getAttribute("className");if(cls){node.setAttribute("className",cls.replace(new RegExp("(^|\\s+)"+_226+"(\\s+|$)"),"$1$2"));}};b._getFontMeasurements=function(){var _227={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.create("div",{style:{position:"absolute",left:"0",top:"-100px",width:"30px",height:"1000em",borderWidth:"0",margin:"0",padding:"0",outline:"none",lineHeight:"1",overflow:"hidden"}},dojo.body());for(var p in _227){div.style.fontSize=p;_227[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);return _227;};var _228=null;b._getCachedFontMeasurements=function(_229){if(_229||!_228){_228=b._getFontMeasurements();}return _228;};var _22a=null,_22b={};b._getTextBox=function(text,_22c,_22d){var m,s,al=arguments.length;if(!_22a){_22a=dojo.create("div",{style:{position:"absolute",top:"-10000px",left:"0"}},dojo.body());}m=_22a;m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(al>1&&_22c){for(var i in _22c){if(i in _22b){continue;}s[i]=_22c[i];}}if(al>2&&_22d){m.className=_22d;}m.innerHTML=text;if(m["getBoundingClientRect"]){var bcr=m.getBoundingClientRect();return {l:bcr.left,t:bcr.top,w:bcr.width||(bcr.right-bcr.left),h:bcr.height||(bcr.bottom-bcr.top)};}else{return dojo.marginBox(m);}};var _22e=0;b._getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++_22e);}while(dojo.byId(id));return id;};})();dojo.mixin(dojox.gfx,{defaultPath:{type:"path",path:""},defaultPolyline:{type:"polyline",points:[]},defaultRect:{type:"rect",x:0,y:0,width:100,height:100,r:0},defaultEllipse:{type:"ellipse",cx:0,cy:0,rx:200,ry:100},defaultCircle:{type:"circle",cx:0,cy:0,r:100},defaultLine:{type:"line",x1:0,y1:0,x2:100,y2:100},defaultImage:{type:"image",x:0,y:0,width:0,height:0,src:""},defaultText:{type:"text",x:0,y:0,text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultTextPath:{type:"textpath",text:"",align:"start",decoration:"none",rotated:false,kerning:true},defaultStroke:{type:"stroke",color:"black",style:"solid",width:1,cap:"butt",join:4},defaultLinearGradient:{type:"linear",x1:0,y1:0,x2:100,y2:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultRadialGradient:{type:"radial",cx:0,cy:0,r:100,colors:[{offset:0,color:"black"},{offset:1,color:"white"}]},defaultPattern:{type:"pattern",x:0,y:0,width:0,height:0,src:""},defaultFont:{type:"font",style:"normal",variant:"normal",weight:"normal",size:"10pt",family:"serif"},getDefault:(function(){var _22f={};return function(type){var t=_22f[type];if(t){return new t();}t=_22f[type]=new Function;t.prototype=dojox.gfx["default"+type];return new t();};})(),normalizeColor:function(_230){return (_230 instanceof dojo.Color)?_230:new dojo.Color(_230);},normalizeParameters:function(_231,_232){if(_232){var _233={};for(var x in _231){if(x in _232&&!(x in _233)){_231[x]=_232[x];}}}return _231;},makeParameters:function(_234,_235){if(!_235){return dojo.delegate(_234);}var _236={};for(var i in _234){if(!(i in _236)){_236[i]=dojo.clone((i in _235)?_235[i]:_234[i]);}}return _236;},formatNumber:function(x,_237){var val=x.toString();if(val.indexOf("e")>=0){val=x.toFixed(4);}else{var _238=val.indexOf(".");if(_238>=0&&val.length-_238>5){val=x.toFixed(4);}}if(x<0){return val;}return _237?" "+val:val;},makeFontString:function(font){return font.style+" "+font.variant+" "+font.weight+" "+font.size+" "+font.family;},splitFontString:function(str){var font=dojox.gfx.getDefault("Font");var t=str.split(/\s+/);do{if(t.length<5){break;}font.style=t[0];font.variant=t[1];font.weight=t[2];var i=t[3].indexOf("/");font.size=i<0?t[3]:t[3].substring(0,i);var j=4;if(i<0){if(t[4]=="/"){j=6;}else{if(t[4].charAt(0)=="/"){j=5;}}}if(j<t.length){font.family=t.slice(j).join(" ");}}while(false);return font;},cm_in_pt:72/2.54,mm_in_pt:7.2/2.54,px_in_pt:function(){return dojox.gfx._base._getCachedFontMeasurements()["12pt"]/12;},pt2px:function(len){return len*dojox.gfx.px_in_pt();},px2pt:function(len){return len/dojox.gfx.px_in_pt();},normalizedLength:function(len){if(len.length==0){return 0;}if(len.length>2){var _239=dojox.gfx.px_in_pt();var val=parseFloat(len);switch(len.slice(-2)){case "px":return val;case "pt":return val*_239;case "in":return val*72*_239;case "pc":return val*12*_239;case "mm":return val*dojox.gfx.mm_in_pt*_239;case "cm":return val*dojox.gfx.cm_in_pt*_239;}}return parseFloat(len);},pathVmlRegExp:/([A-Za-z]+)|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,pathSvgRegExp:/([A-Za-z])|(\d+(\.\d+)?)|(\.\d+)|(-\d+(\.\d+)?)|(-\.\d+)/g,equalSources:function(a,b){return a&&b&&a==b;},switchTo:function(_23a){var ns=dojox.gfx[_23a];if(ns){dojo.forEach(["Group","Rect","Ellipse","Circle","Line","Polyline","Image","Text","Path","TextPath","Surface","createSurface"],function(name){dojox.gfx[name]=ns[name];});}}});}if(!dojo._hasResource["dojox.gfx"]){dojo._hasResource["dojox.gfx"]=true;dojo.provide("dojox.gfx");dojo.loadInit(function(){var gfx=dojo.getObject("dojox.gfx",true),sl,flag,_23b;while(!gfx.renderer){if(dojo.config.forceGfxRenderer){dojox.gfx.renderer=dojo.config.forceGfxRenderer;break;}var _23c=(typeof dojo.config.gfxRenderer=="string"?dojo.config.gfxRenderer:"svg,vml,canvas,silverlight").split(",");for(var i=0;i<_23c.length;++i){switch(_23c[i]){case "svg":if("SVGAngle" in dojo.global){dojox.gfx.renderer="svg";}break;case "vml":if(dojo.isIE){dojox.gfx.renderer="vml";}break;case "silverlight":try{if(dojo.isIE){sl=new ActiveXObject("AgControl.AgControl");if(sl&&sl.IsVersionSupported("1.0")){flag=true;}}else{if(navigator.plugins["Silverlight Plug-In"]){flag=true;}}}catch(e){flag=false;}finally{sl=null;}if(flag){dojox.gfx.renderer="silverlight";}break;case "canvas":if(dojo.global.CanvasRenderingContext2D){dojox.gfx.renderer="canvas";}break;}if(gfx.renderer){break;}}break;}if(dojo.config.isDebug){console.log("gfx renderer = "+gfx.renderer);}if(gfx[gfx.renderer]){gfx.switchTo(gfx.renderer);}else{gfx.loadAndSwitch=gfx.renderer;dojo["require"]("dojox.gfx."+gfx.renderer);}});}if(!dojo._hasResource["dojox.lang.functional.lambda"]){dojo._hasResource["dojox.lang.functional.lambda"]=true;dojo.provide("dojox.lang.functional.lambda");(function(){var df=dojox.lang.functional,_23d={};var _23e="ab".split(/a*/).length>1?String.prototype.split:function(sep){var r=this.split.call(this,sep),m=sep.exec(this);if(m&&m.index==0){r.unshift("");}return r;};var _23f=function(s){var args=[],_240=_23e.call(s,/\s*->\s*/m);if(_240.length>1){while(_240.length){s=_240.pop();args=_240.pop().split(/\s*,\s*|\s+/m);if(_240.length){_240.push("(function("+args+"){return ("+s+")})");}}}else{if(s.match(/\b_\b/)){args=["_"];}else{var l=s.match(/^\s*(?:[+*\/%&|\^\.=<>]|!=)/m),r=s.match(/[+\-*\/%&|\^\.=<>!]\s*$/m);if(l||r){if(l){args.push("$1");s="$1"+s;}if(r){args.push("$2");s=s+"$2";}}else{var vars=s.replace(/(?:\b[A-Z]|\.[a-zA-Z_$])[a-zA-Z_$\d]*|[a-zA-Z_$][a-zA-Z_$\d]*:|this|true|false|null|undefined|typeof|instanceof|in|delete|new|void|arguments|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval|isFinite|isNaN|parseFloat|parseInt|unescape|dojo|dijit|dojox|window|document|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/g,"").match(/([a-z_$][a-z_$\d]*)/gi)||[],t={};dojo.forEach(vars,function(v){if(!(v in t)){args.push(v);t[v]=1;}});}}}return {args:args,body:s};};var _241=function(a){return a.length?function(){var i=a.length-1,x=df.lambda(a[i]).apply(this,arguments);for(--i;i>=0;--i){x=df.lambda(a[i]).call(this,x);}return x;}:function(x){return x;};};dojo.mixin(df,{rawLambda:function(s){return _23f(s);},buildLambda:function(s){s=_23f(s);return "function("+s.args.join(",")+"){return ("+s.body+");}";},lambda:function(s){if(typeof s=="function"){return s;}if(s instanceof Array){return _241(s);}if(s in _23d){return _23d[s];}s=_23f(s);return _23d[s]=new Function(s.args,"return ("+s.body+");");},clearLambdaCache:function(){_23d={};}});})();}if(!dojo._hasResource["dojox.lang.functional.array"]){dojo._hasResource["dojox.lang.functional.array"]=true;dojo.provide("dojox.lang.functional.array");(function(){var d=dojo,df=dojox.lang.functional,_242={};d.mixin(df,{filter:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t=[],v,i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){v=a.next();if(f.call(o,v,i++,a)){t.push(v);}}}else{for(i in a){if(!(i in _242)){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}}}}return t;},forEach:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;f.call(o,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();f.call(o,a.next(),i++,a)){}}else{for(i in a){if(!(i in _242)){f.call(o,a[i],i,a);}}}}return o;},map:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,i;if(d.isArray(a)){t=new Array(n=a.length);for(i=0;i<n;t[i]=f.call(o,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){t=[];for(i=0;a.hasNext();t.push(f.call(o,a.next(),i++,a))){}}else{t=[];for(i in a){if(!(i in _242)){t.push(f.call(o,a[i],i,a));}}}}return t;},every:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){if(!f.call(o,a[i],i,a)){return false;}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){if(!f.call(o,a.next(),i++,a)){return false;}}}else{for(i in a){if(!(i in _242)){if(!f.call(o,a[i],i,a)){return false;}}}}}return true;},some:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;++i){if(f.call(o,a[i],i,a)){return true;}}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();){if(f.call(o,a.next(),i++,a)){return true;}}}else{for(i in a){if(!(i in _242)){if(f.call(o,a[i],i,a)){return true;}}}}}return false;}});})();}if(!dojo._hasResource["dojox.lang.functional.object"]){dojo._hasResource["dojox.lang.functional.object"]=true;dojo.provide("dojox.lang.functional.object");(function(){var d=dojo,df=dojox.lang.functional,_243={};d.mixin(df,{keys:function(obj){var t=[];for(var i in obj){if(!(i in _243)){t.push(i);}}return t;},values:function(obj){var t=[];for(var i in obj){if(!(i in _243)){t.push(obj[i]);}}return t;},filterIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);var t={},v,i;for(i in obj){if(!(i in _243)){v=obj[i];if(f.call(o,v,i,obj)){t[i]=v;}}}return t;},forIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);for(var i in obj){if(!(i in _243)){f.call(o,obj[i],i,obj);}}return o;},mapIn:function(obj,f,o){o=o||d.global;f=df.lambda(f);var t={},i;for(i in obj){if(!(i in _243)){t[i]=f.call(o,obj[i],i,obj);}}return t;}});})();}if(!dojo._hasResource["dojox.lang.functional"]){dojo._hasResource["dojox.lang.functional"]=true;dojo.provide("dojox.lang.functional");}if(!dojo._hasResource["dojox.lang.functional.fold"]){dojo._hasResource["dojox.lang.functional.fold"]=true;dojo.provide("dojox.lang.functional.fold");(function(){var d=dojo,df=dojox.lang.functional,_244={};d.mixin(df,{foldl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var i,n;if(d.isArray(a)){for(i=0,n=a.length;i<n;z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){for(i=0;a.hasNext();z=f.call(o,z,a.next(),i++,a)){}}else{for(i in a){if(!(i in _244)){z=f.call(o,z,a[i],i,a);}}}}return z;},foldl1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var z,i,n;if(d.isArray(a)){z=a[0];for(i=1,n=a.length;i<n;z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){if(a.hasNext()){z=a.next();for(i=1;a.hasNext();z=f.call(o,z,a.next(),i++,a)){}}}else{var _245=true;for(i in a){if(!(i in _244)){if(_245){z=a[i];_245=false;}else{z=f.call(o,z,a[i],i,a);}}}}}return z;},foldr:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},foldr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,z=a[n-1],i=n-1;for(;i>0;--i,z=f.call(o,z,a[i],i,a)){}return z;},reduce:function(a,f,z){return arguments.length<3?df.foldl1(a,f):df.foldl(a,f,z);},reduceRight:function(a,f,z){return arguments.length<3?df.foldr1(a,f):df.foldr(a,f,z);},unfold:function(pr,f,g,z,o){o=o||d.global;f=df.lambda(f);g=df.lambda(g);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(f.call(o,z)),z=g.call(o,z)){}return t;}});})();}if(!dojo._hasResource["dojox.lang.functional.reversed"]){dojo._hasResource["dojox.lang.functional.reversed"]=true;dojo.provide("dojox.lang.functional.reversed");(function(){var d=dojo,df=dojox.lang.functional;d.mixin(df,{filterRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t=[],v,i=a.length-1;for(;i>=0;--i){v=a[i];if(f.call(o,v,i,a)){t.push(v);}}return t;},forEachRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;f.call(o,a[i],i,a),--i){}},mapRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n),i=n-1,j=0;for(;i>=0;t[j++]=f.call(o,a[i],i,a),--i){}return t;},everyRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(!f.call(o,a[i],i,a)){return false;}}return true;},someRev:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);for(var i=a.length-1;i>=0;--i){if(f.call(o,a[i],i,a)){return true;}}return false;}});})();}if(!dojo._hasResource["dojox.charting.Element"]){dojo._hasResource["dojox.charting.Element"]=true;dojo.provide("dojox.charting.Element");dojo.declare("dojox.charting.Element",null,{chart:null,group:null,htmlElements:null,dirty:true,constructor:function(_246){this.chart=_246;this.group=null;this.htmlElements=[];this.dirty=true;this.trailingSymbol="...";this._events=[];},createGroup:function(_247){if(!_247){_247=this.chart.surface;}if(!this.group){this.group=_247.createGroup();}return this;},purgeGroup:function(){this.destroyHtmlElements();if(this.group){this.group.clear();this.group.removeShape();this.group=null;}this.dirty=true;if(this._events.length){dojo.forEach(this._events,function(item){item.shape.disconnect(item.handle);});this._events=[];}return this;},cleanGroup:function(_248){this.destroyHtmlElements();if(!_248){_248=this.chart.surface;}if(this.group){this.group.clear();}else{this.group=_248.createGroup();}this.dirty=true;return this;},destroyHtmlElements:function(){if(this.htmlElements.length){dojo.forEach(this.htmlElements,dojo.destroy);this.htmlElements=[];}},destroy:function(){this.purgeGroup();},getTextWidth:function(s,font){return dojox.gfx._base._getTextBox(s,{font:font}).w||0;},getTextWithLimitLength:function(s,font,_249,_24a){if(!s||s.length<=0){return {text:"",truncated:_24a||false};}if(!_249||_249<=0){return {text:s,truncated:_24a||false};}var _24b=2,_24c=0.618,_24d=s.substring(0,1)+this.trailingSymbol,_24e=this.getTextWidth(_24d,font);if(_249<=_24e){return {text:_24d,truncated:true};}var _24f=this.getTextWidth(s,font);if(_24f<=_249){return {text:s,truncated:_24a||false};}else{var _250=0,end=s.length;while(_250<end){if(end-_250<=_24b){while(this.getTextWidth(s.substring(0,_250)+this.trailingSymbol,font)>_249){_250-=1;}return {text:(s.substring(0,_250)+this.trailingSymbol),truncated:true};}var _251=_250+Math.round((end-_250)*_24c),_252=this.getTextWidth(s.substring(0,_251),font);if(_252<_249){_250=_251;end=end;}else{_250=_250;end=_251;}}}},getTextWithLimitCharCount:function(s,font,_253,_254){if(!s||s.length<=0){return {text:"",truncated:_254||false};}if(!_253||_253<=0||s.length<=_253){return {text:s,truncated:_254||false};}return {text:s.substring(0,_253)+this.trailingSymbol,truncated:true};},_plotFill:function(fill,dim,_255){if(!fill||!fill.type||!fill.space){return fill;}var _256=fill.space;switch(fill.type){case "linear":if(_256==="plot"||_256==="shapeX"||_256==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_256;if(_256==="plot"||_256==="shapeX"){var span=dim.height-_255.t-_255.b;fill.y1=_255.t+span*fill.y1/100;fill.y2=_255.t+span*fill.y2/100;}if(_256==="plot"||_256==="shapeY"){var span=dim.width-_255.l-_255.r;fill.x1=_255.l+span*fill.x1/100;fill.x2=_255.l+span*fill.x2/100;}}break;case "radial":if(_256==="plot"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_256;var _257=dim.width-_255.l-_255.r,_258=dim.height-_255.t-_255.b;fill.cx=_255.l+_257*fill.cx/100;fill.cy=_255.t+_258*fill.cy/100;fill.r=fill.r*Math.sqrt(_257*_257+_258*_258)/200;}break;case "pattern":if(_256==="plot"||_256==="shapeX"||_256==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_256;if(_256==="plot"||_256==="shapeX"){var span=dim.height-_255.t-_255.b;fill.y=_255.t+span*fill.y/100;fill.height=span*fill.height/100;}if(_256==="plot"||_256==="shapeY"){var span=dim.width-_255.l-_255.r;fill.x=_255.l+span*fill.x/100;fill.width=span*fill.width/100;}}break;}return fill;},_shapeFill:function(fill,bbox){if(!fill||!fill.space){return fill;}var _259=fill.space;switch(fill.type){case "linear":if(_259==="shape"||_259==="shapeX"||_259==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient,fill);fill.space=_259;if(_259==="shape"||_259==="shapeX"){var span=bbox.width;fill.x1=bbox.x+span*fill.x1/100;fill.x2=bbox.x+span*fill.x2/100;}if(_259==="shape"||_259==="shapeY"){var span=bbox.height;fill.y1=bbox.y+span*fill.y1/100;fill.y2=bbox.y+span*fill.y2/100;}}break;case "radial":if(_259==="shape"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_259;fill.cx=bbox.x+bbox.width/2;fill.cy=bbox.y+bbox.height/2;fill.r=fill.r*bbox.width/200;}break;case "pattern":if(_259==="shape"||_259==="shapeX"||_259==="shapeY"){fill=dojox.gfx.makeParameters(dojox.gfx.defaultPattern,fill);fill.space=_259;if(_259==="shape"||_259==="shapeX"){var span=bbox.width;fill.x=bbox.x+span*fill.x/100;fill.width=span*fill.width/100;}if(_259==="shape"||_259==="shapeY"){var span=bbox.height;fill.y=bbox.y+span*fill.y/100;fill.height=span*fill.height/100;}}break;}return fill;},_pseudoRadialFill:function(fill,_25a,_25b,_25c,end){if(!fill||fill.type!=="radial"||fill.space!=="shape"){return fill;}var _25d=fill.space;fill=dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient,fill);fill.space=_25d;if(arguments.length<4){fill.cx=_25a.x;fill.cy=_25a.y;fill.r=fill.r*_25b/100;return fill;}var _25e=arguments.length<5?_25c:(end+_25c)/2;return {type:"linear",x1:_25a.x,y1:_25a.y,x2:_25a.x+fill.r*_25b*Math.cos(_25e)/100,y2:_25a.y+fill.r*_25b*Math.sin(_25e)/100,colors:fill.colors};return fill;}});}if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");dojo.getObject("colors",true,dojo);(function(){var _25f=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_260,obj){var m=_260.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}return dojo.colorFromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_25f(m1,m2,H+1/3)*256,_25f(m1,m2,H)*256,_25f(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _261=function(c,low,high){c=Number(c);return isNaN(c)?high:c<low?low:c>high?high:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_261(t.r,0,255));t.g=Math.round(_261(t.g,0,255));t.b=Math.round(_261(t.b,0,255));t.a=_261(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojox.color._base"]){dojo._hasResource["dojox.color._base"]=true;dojo.provide("dojox.color._base");dojox.color.Color=dojo.Color;dojox.color.blend=dojo.blendColors;dojox.color.fromRgb=dojo.colorFromRgb;dojox.color.fromHex=dojo.colorFromHex;dojox.color.fromArray=dojo.colorFromArray;dojox.color.fromString=dojo.colorFromString;dojox.color.greyscale=dojo.colors.makeGrey;dojo.mixin(dojox.color,{fromCmy:function(cyan,_262,_263){if(dojo.isArray(cyan)){_262=cyan[1],_263=cyan[2],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_262=cyan.m,_263=cyan.y,cyan=cyan.c;}}cyan/=100,_262/=100,_263/=100;var r=1-cyan,g=1-_262,b=1-_263;return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromCmyk:function(cyan,_264,_265,_266){if(dojo.isArray(cyan)){_264=cyan[1],_265=cyan[2],_266=cyan[3],cyan=cyan[0];}else{if(dojo.isObject(cyan)){_264=cyan.m,_265=cyan.y,_266=cyan.b,cyan=cyan.c;}}cyan/=100,_264/=100,_265/=100,_266/=100;var r,g,b;r=1-Math.min(1,cyan*(1-_266)+_266);g=1-Math.min(1,_264*(1-_266)+_266);b=1-Math.min(1,_265*(1-_266)+_266);return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsl:function(hue,_267,_268){if(dojo.isArray(hue)){_267=hue[1],_268=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_267=hue.s,_268=hue.l,hue=hue.h;}}_267/=100;_268/=100;while(hue<0){hue+=360;}while(hue>=360){hue-=360;}var r,g,b;if(hue<120){r=(120-hue)/60,g=hue/60,b=0;}else{if(hue<240){r=0,g=(240-hue)/60,b=(hue-120)/60;}else{r=(hue-240)/60,g=0,b=(360-hue)/60;}}r=2*_267*Math.min(r,1)+(1-_267);g=2*_267*Math.min(g,1)+(1-_267);b=2*_267*Math.min(b,1)+(1-_267);if(_268<0.5){r*=_268,g*=_268,b*=_268;}else{r=(1-_268)*r+2*_268-1;g=(1-_268)*g+2*_268-1;b=(1-_268)*b+2*_268-1;}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});},fromHsv:function(hue,_269,_26a){if(dojo.isArray(hue)){_269=hue[1],_26a=hue[2],hue=hue[0];}else{if(dojo.isObject(hue)){_269=hue.s,_26a=hue.v,hue=hue.h;}}if(hue==360){hue=0;}_269/=100;_26a/=100;var r,g,b;if(_269==0){r=_26a,b=_26a,g=_26a;}else{var _26b=hue/60,i=Math.floor(_26b),f=_26b-i;var p=_26a*(1-_269);var q=_26a*(1-(_269*f));var t=_26a*(1-(_269*(1-f)));switch(i){case 0:r=_26a,g=t,b=p;break;case 1:r=q,g=_26a,b=p;break;case 2:r=p,g=_26a,b=t;break;case 3:r=p,g=q,b=_26a;break;case 4:r=t,g=p,b=_26a;break;case 5:r=_26a,g=p,b=q;break;}}return new dojox.color.Color({r:Math.round(r*255),g:Math.round(g*255),b:Math.round(b*255)});}});dojo.extend(dojox.color.Color,{toCmy:function(){var cyan=1-(this.r/255),_26c=1-(this.g/255),_26d=1-(this.b/255);return {c:Math.round(cyan*100),m:Math.round(_26c*100),y:Math.round(_26d*100)};},toCmyk:function(){var cyan,_26e,_26f,_270;var r=this.r/255,g=this.g/255,b=this.b/255;_270=Math.min(1-r,1-g,1-b);cyan=(1-r-_270)/(1-_270);_26e=(1-g-_270)/(1-_270);_26f=(1-b-_270)/(1-_270);return {c:Math.round(cyan*100),m:Math.round(_26e*100),y:Math.round(_26f*100),b:Math.round(_270*100)};},toHsl:function(){var r=this.r/255,g=this.g/255,b=this.b/255;var min=Math.min(r,b,g),max=Math.max(r,g,b);var _271=max-min;var h=0,s=0,l=(min+max)/2;if(l>0&&l<1){s=_271/((l<0.5)?(2*l):(2-2*l));}if(_271>0){if(max==r&&max!=g){h+=(g-b)/_271;}if(max==g&&max!=b){h+=(2+(b-r)/_271);}if(max==b&&max!=r){h+=(4+(r-g)/_271);}h*=60;}return {h:h,s:Math.round(s*100),l:Math.round(l*100)};},toHsv:function(){var r=this.r/255,g=this.g/255,b=this.b/255;var min=Math.min(r,b,g),max=Math.max(r,g,b);var _272=max-min;var h=null,s=(max==0)?0:(_272/max);if(s==0){h=0;}else{if(r==max){h=60*(g-b)/_272;}else{if(g==max){h=120+60*(b-r)/_272;}else{h=240+60*(r-g)/_272;}}if(h<0){h+=360;}}return {h:h,s:Math.round(s*100),v:Math.round(max*100)};}});}if(!dojo._hasResource["dojox.color"]){dojo._hasResource["dojox.color"]=true;dojo.provide("dojox.color");}if(!dojo._hasResource["dojox.color.Palette"]){dojo._hasResource["dojox.color.Palette"]=true;dojo.provide("dojox.color.Palette");(function(){var dxc=dojox.color;dxc.Palette=function(base){this.colors=[];if(base instanceof dojox.color.Palette){this.colors=base.colors.slice(0);}else{if(base instanceof dojox.color.Color){this.colors=[null,null,base,null,null];}else{if(dojo.isArray(base)){this.colors=dojo.map(base.slice(0),function(item){if(dojo.isString(item)){return new dojox.color.Color(item);}return item;});}else{if(dojo.isString(base)){this.colors=[null,null,new dojox.color.Color(base),null,null];}}}}};function _273(p,_274,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var r=(_274=="dr")?item.r+val:item.r,g=(_274=="dg")?item.g+val:item.g,b=(_274=="db")?item.b+val:item.b,a=(_274=="da")?item.a+val:item.a;ret.colors.push(new dojox.color.Color({r:Math.min(255,Math.max(0,r)),g:Math.min(255,Math.max(0,g)),b:Math.min(255,Math.max(0,b)),a:Math.min(1,Math.max(0,a))}));});return ret;};function tCMY(p,_275,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmy(),c=(_275=="dc")?o.c+val:o.c,m=(_275=="dm")?o.m+val:o.m,y=(_275=="dy")?o.y+val:o.y;ret.colors.push(dojox.color.fromCmy(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y))));});return ret;};function _276(p,_277,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toCmyk(),c=(_277=="dc")?o.c+val:o.c,m=(_277=="dm")?o.m+val:o.m,y=(_277=="dy")?o.y+val:o.y,k=(_277=="dk")?o.b+val:o.b;ret.colors.push(dojox.color.fromCmyk(Math.min(100,Math.max(0,c)),Math.min(100,Math.max(0,m)),Math.min(100,Math.max(0,y)),Math.min(100,Math.max(0,k))));});return ret;};function tHSL(p,_278,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsl(),h=(_278=="dh")?o.h+val:o.h,s=(_278=="ds")?o.s+val:o.s,l=(_278=="dl")?o.l+val:o.l;ret.colors.push(dojox.color.fromHsl(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,l))));});return ret;};function tHSV(p,_279,val){var ret=new dojox.color.Palette();ret.colors=[];dojo.forEach(p.colors,function(item){var o=item.toHsv(),h=(_279=="dh")?o.h+val:o.h,s=(_279=="ds")?o.s+val:o.s,v=(_279=="dv")?o.v+val:o.v;ret.colors.push(dojox.color.fromHsv(h%360,Math.min(100,Math.max(0,s)),Math.min(100,Math.max(0,v))));});return ret;};function _27a(val,low,high){return high-((high-val)*((high-low)/high));};dojo.extend(dxc.Palette,{transform:function(_27b){var fn=_273;if(_27b.use){var use=_27b.use.toLowerCase();if(use.indexOf("hs")==0){if(use.charAt(2)=="l"){fn=tHSL;}else{fn=tHSV;}}else{if(use.indexOf("cmy")==0){if(use.charAt(3)=="k"){fn=_276;}else{fn=tCMY;}}}}else{if("dc" in _27b||"dm" in _27b||"dy" in _27b){if("dk" in _27b){fn=_276;}else{fn=tCMY;}}else{if("dh" in _27b||"ds" in _27b){if("dv" in _27b){fn=tHSV;}else{fn=tHSL;}}}}var _27c=this;for(var p in _27b){if(p=="use"){continue;}_27c=fn(_27c,p,_27b[p]);}return _27c;},clone:function(){return new dxc.Palette(this);}});dojo.mixin(dxc.Palette,{generators:{analogous:function(args){var high=args.high||60,low=args.low||18,base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h=[(hsv.h+low+360)%360,(hsv.h+Math.round(low/2)+360)%360,hsv.h,(hsv.h-Math.round(high/2)+360)%360,(hsv.h-high+360)%360];var s1=Math.max(10,(hsv.s<=95)?hsv.s+5:(100-(hsv.s-95))),s2=(hsv.s>1)?hsv.s-1:21-hsv.s,v1=(hsv.v>=92)?hsv.v-9:Math.max(hsv.v+9,20),v2=(hsv.v<=90)?Math.max(hsv.v+5,20):(95+Math.ceil((hsv.v-90)/2)),s=[s1,s2,hsv.s,s1,s1],v=[v1,v2,hsv.v,v1,v2];return new dxc.Palette(dojo.map(h,function(hue,i){return dojox.color.fromHsv(hue,s[i],v[i]);}));},monochromatic:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var s1=(hsv.s-30>9)?hsv.s-30:hsv.s+30,s2=hsv.s,v1=_27a(hsv.v,20,100),v2=(hsv.v-20>20)?hsv.v-20:hsv.v+60,v3=(hsv.v-50>20)?hsv.v-50:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(hsv.h,s1,v1),dojox.color.fromHsv(hsv.h,s2,v3),base,dojox.color.fromHsv(hsv.h,s1,v3),dojox.color.fromHsv(hsv.h,s2,v2)]);},triadic:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=(hsv.h+57+360)%360,h2=(hsv.h-157+360)%360,s1=(hsv.s>20)?hsv.s-10:hsv.s+10,s2=(hsv.s>90)?hsv.s-10:hsv.s+10,s3=(hsv.s>95)?hsv.s-5:hsv.s+5,v1=(hsv.v-20>20)?hsv.v-20:hsv.v+20,v2=(hsv.v-30>20)?hsv.v-30:hsv.v+30,v3=(hsv.v-30>70)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(h1,s1,hsv.v),dojox.color.fromHsv(hsv.h,s2,v2),base,dojox.color.fromHsv(h2,s2,v1),dojox.color.fromHsv(h2,s3,v3)]);},complementary:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,s1=Math.max(hsv.s-10,0),s2=_27a(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(hsv.h,s1,v1),dojox.color.fromHsv(hsv.h,s2,v2),base,dojox.color.fromHsv(h1,s3,v2),dojox.color.fromHsv(h1,hsv.s,hsv.v)]);},splitComplementary:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,_27d=args.da||30,hsv=base.toHsv();var _27e=((hsv.h*2)+137<360)?(hsv.h*2)+137:Math.floor(hsv.h/2)-137,h1=(_27e-_27d+360)%360,h2=(_27e+_27d)%360,s1=Math.max(hsv.s-10,0),s2=_27a(hsv.s,10,100),s3=Math.min(100,hsv.s+20),v1=Math.min(100,hsv.v+30),v2=(hsv.v>20)?hsv.v-30:hsv.v+30;return new dxc.Palette([dojox.color.fromHsv(h1,s1,v1),dojox.color.fromHsv(h1,s2,v2),base,dojox.color.fromHsv(h2,s3,v2),dojox.color.fromHsv(h2,hsv.s,hsv.v)]);},compound:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var h1=((hsv.h*2)+18<360)?(hsv.h*2)+18:Math.floor(hsv.h/2)-18,h2=((hsv.h*2)+120<360)?(hsv.h*2)+120:Math.floor(hsv.h/2)-120,h3=((hsv.h*2)+99<360)?(hsv.h*2)+99:Math.floor(hsv.h/2)-99,s1=(hsv.s-40>10)?hsv.s-40:hsv.s+40,s2=(hsv.s-10>80)?hsv.s-10:hsv.s+10,s3=(hsv.s-25>10)?hsv.s-25:hsv.s+25,v1=(hsv.v-40>10)?hsv.v-40:hsv.v+40,v2=(hsv.v-20>80)?hsv.v-20:hsv.v+20,v3=Math.max(hsv.v,20);return new dxc.Palette([dojox.color.fromHsv(h1,s1,v1),dojox.color.fromHsv(h1,s2,v2),base,dojox.color.fromHsv(h2,s3,v3),dojox.color.fromHsv(h3,s2,v2)]);},shades:function(args){var base=dojo.isString(args.base)?new dojox.color.Color(args.base):args.base,hsv=base.toHsv();var s=(hsv.s==100&&hsv.v==0)?0:hsv.s,v1=(hsv.v-50>20)?hsv.v-50:hsv.v+30,v2=(hsv.v-25>=20)?hsv.v-25:hsv.v+55,v3=(hsv.v-75>=20)?hsv.v-75:hsv.v+5,v4=Math.max(hsv.v-10,20);return new dxc.Palette([new dojox.color.fromHsv(hsv.h,s,v1),new dojox.color.fromHsv(hsv.h,s,v2),base,new dojox.color.fromHsv(hsv.h,s,v3),new dojox.color.fromHsv(hsv.h,s,v4)]);}},generate:function(base,type){if(dojo.isFunction(type)){return type({base:base});}else{if(dxc.Palette.generators[type]){return dxc.Palette.generators[type]({base:base});}}throw new Error("dojox.color.Palette.generate: the specified generator ('"+type+"') does not exist.");}});})();}if(!dojo._hasResource["dojox.lang.utils"]){dojo._hasResource["dojox.lang.utils"]=true;dojo.provide("dojox.lang.utils");(function(){var _27f={},du=dojox.lang.utils,opts=Object.prototype.toString;var _280=function(o){if(o){switch(opts.call(o)){case "[object Array]":return o.slice(0);case "[object Object]":return dojo.delegate(o);}}return o;};dojo.mixin(du,{coerceType:function(_281,_282){switch(typeof _281){case "number":return Number(eval("("+_282+")"));case "string":return String(_282);case "boolean":return Boolean(eval("("+_282+")"));}return eval("("+_282+")");},updateWithObject:function(_283,_284,conv){if(!_284){return _283;}for(var x in _283){if(x in _284&&!(x in _27f)){var t=_283[x];if(t&&typeof t=="object"){du.updateWithObject(t,_284[x],conv);}else{_283[x]=conv?du.coerceType(t,_284[x]):_280(_284[x]);}}}return _283;},updateWithPattern:function(_285,_286,_287,conv){if(!_286||!_287){return _285;}for(var x in _287){if(x in _286&&!(x in _27f)){_285[x]=conv?du.coerceType(_287[x],_286[x]):_280(_286[x]);}}return _285;},merge:function(_288,_289){if(_289){var _28a=opts.call(_288),_28b=opts.call(_289),t,i,l,m;switch(_28b){case "[object Array]":if(_28b==_28a){t=new Array(Math.max(_288.length,_289.length));for(i=0,l=t.length;i<l;++i){t[i]=du.merge(_288[i],_289[i]);}return t;}return _289.slice(0);case "[object Object]":if(_28b==_28a&&_288){t=dojo.delegate(_288);for(i in _289){if(i in _288){l=_288[i];m=_289[i];if(m!==l){t[i]=du.merge(l,m);}}else{t[i]=dojo.clone(_289[i]);}}return t;}return dojo.clone(_289);}}return _289;}});})();}if(!dojo._hasResource["dojox.gfx.gradutils"]){dojo._hasResource["dojox.gfx.gradutils"]=true;dojo.provide("dojox.gfx.gradutils");(function(){var d=dojo,m=dojox.gfx.matrix,C=d.Color;function _28c(o,c){if(o<=0){return c[0].color;}var len=c.length;if(o>=1){return c[len-1].color;}for(var i=0;i<len;++i){var stop=c[i];if(stop.offset>=o){if(i){var prev=c[i-1];return d.blendColors(new C(prev.color),new C(stop.color),(o-prev.offset)/(stop.offset-prev.offset));}return stop.color;}}return c[len-1].color;};dojox.gfx.gradutils.getColor=function(fill,pt){var o;if(fill){switch(fill.type){case "linear":var _28d=Math.atan2(fill.y2-fill.y1,fill.x2-fill.x1),_28e=m.rotate(-_28d),_28f=m.project(fill.x2-fill.x1,fill.y2-fill.y1),p=m.multiplyPoint(_28f,pt),pf1=m.multiplyPoint(_28f,fill.x1,fill.y1),pf2=m.multiplyPoint(_28f,fill.x2,fill.y2),_290=m.multiplyPoint(_28e,pf2.x-pf1.x,pf2.y-pf1.y).x,o=m.multiplyPoint(_28e,p.x-pf1.x,p.y-pf1.y).x/_290;break;case "radial":var dx=pt.x-fill.cx,dy=pt.y-fill.cy,o=Math.sqrt(dx*dx+dy*dy)/fill.r;break;}return _28c(o,fill.colors);}return new C(fill||[0,0,0,0]);};dojox.gfx.gradutils.reverse=function(fill){if(fill){switch(fill.type){case "linear":case "radial":fill=dojo.delegate(fill);if(fill.colors){var c=fill.colors,l=c.length,i=0,stop,n=fill.colors=new Array(c.length);for(;i<l;++i){stop=c[i];n[i]={offset:1-stop.offset,color:stop.color};}n.sort(function(a,b){return a.offset-b.offset;});}break;}}return fill;};})();}if(!dojo._hasResource["dojox.charting.Theme"]){dojo._hasResource["dojox.charting.Theme"]=true;dojo.provide("dojox.charting.Theme");dojo.declare("dojox.charting.Theme",null,{shapeSpaces:{shape:1,shapeX:1,shapeY:1},constructor:function(_291){_291=_291||{};var def=dojox.charting.Theme.defaultTheme;dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){this[name]=dojo.delegate(def[name],_291[name]);},this);if(_291.seriesThemes&&_291.seriesThemes.length){this.colors=null;this.seriesThemes=_291.seriesThemes.slice(0);}else{this.seriesThemes=null;this.colors=(_291.colors||dojox.charting.Theme.defaultColors).slice(0);}this.markerThemes=null;if(_291.markerThemes&&_291.markerThemes.length){this.markerThemes=_291.markerThemes.slice(0);}this.markers=_291.markers?dojo.clone(_291.markers):dojo.delegate(dojox.charting.Theme.defaultMarkers);this.noGradConv=_291.noGradConv;this.noRadialConv=_291.noRadialConv;if(_291.reverseFills){this.reverseFills();}this._current=0;this._buildMarkerArray();},clone:function(){var _292=new dojox.charting.Theme({chart:this.chart,plotarea:this.plotarea,axis:this.axis,series:this.series,marker:this.marker,colors:this.colors,markers:this.markers,seriesThemes:this.seriesThemes,markerThemes:this.markerThemes,noGradConv:this.noGradConv,noRadialConv:this.noRadialConv});dojo.forEach(["clone","clear","next","skip","addMixin","post","getTick"],function(name){if(this.hasOwnProperty(name)){_292[name]=this[name];}},this);return _292;},clear:function(){this._current=0;},next:function(_293,_294,_295){var _296=dojox.lang.utils.merge,_297,_298;if(this.colors){_297=dojo.delegate(this.series);_298=dojo.delegate(this.marker);var _299=new dojo.Color(this.colors[this._current%this.colors.length]),old;if(_297.stroke&&_297.stroke.color){_297.stroke=dojo.delegate(_297.stroke);old=new dojo.Color(_297.stroke.color);_297.stroke.color=new dojo.Color(_299);_297.stroke.color.a=old.a;}else{_297.stroke={color:_299};}if(_298.stroke&&_298.stroke.color){_298.stroke=dojo.delegate(_298.stroke);old=new dojo.Color(_298.stroke.color);_298.stroke.color=new dojo.Color(_299);_298.stroke.color.a=old.a;}else{_298.stroke={color:_299};}if(!_297.fill||_297.fill.type){_297.fill=_299;}else{old=new dojo.Color(_297.fill);_297.fill=new dojo.Color(_299);_297.fill.a=old.a;}if(!_298.fill||_298.fill.type){_298.fill=_299;}else{old=new dojo.Color(_298.fill);_298.fill=new dojo.Color(_299);_298.fill.a=old.a;}}else{_297=this.seriesThemes?_296(this.series,this.seriesThemes[this._current%this.seriesThemes.length]):this.series;_298=this.markerThemes?_296(this.marker,this.markerThemes[this._current%this.markerThemes.length]):_297;}var _29a=_298&&_298.symbol||this._markers[this._current%this._markers.length];var _29b={series:_297,marker:_298,symbol:_29a};++this._current;if(_294){_29b=this.addMixin(_29b,_293,_294);}if(_295){_29b=this.post(_29b,_293);}return _29b;},skip:function(){++this._current;},addMixin:function(_29c,_29d,_29e,_29f){if(dojo.isArray(_29e)){dojo.forEach(_29e,function(m){_29c=this.addMixin(_29c,_29d,m);},this);}else{var t={};if("color" in _29e){if(_29d=="line"||_29d=="area"){dojo.setObject("series.stroke.color",_29e.color,t);dojo.setObject("marker.stroke.color",_29e.color,t);}else{dojo.setObject("series.fill",_29e.color,t);}}dojo.forEach(["stroke","outline","shadow","fill","font","fontColor","labelWiring"],function(name){var _2a0="marker"+name.charAt(0).toUpperCase()+name.substr(1),b=_2a0 in _29e;if(name in _29e){dojo.setObject("series."+name,_29e[name],t);if(!b){dojo.setObject("marker."+name,_29e[name],t);}}if(b){dojo.setObject("marker."+name,_29e[_2a0],t);}});if("marker" in _29e){t.symbol=_29e.marker;}_29c=dojox.lang.utils.merge(_29c,t);}if(_29f){_29c=this.post(_29c,_29d);}return _29c;},post:function(_2a1,_2a2){var fill=_2a1.series.fill,t;if(!this.noGradConv&&this.shapeSpaces[fill.space]&&fill.type=="linear"){if(_2a2=="bar"){t={x1:fill.y1,y1:fill.x1,x2:fill.y2,y2:fill.x2};}else{if(!this.noRadialConv&&fill.space=="shape"&&(_2a2=="slice"||_2a2=="circle")){t={type:"radial",cx:0,cy:0,r:100};}}if(t){return dojox.lang.utils.merge(_2a1,{series:{fill:t}});}}return _2a1;},getTick:function(name,_2a3){var tick=this.axis.tick,_2a4=name+"Tick";merge=dojox.lang.utils.merge;if(tick){if(this.axis[_2a4]){tick=merge(tick,this.axis[_2a4]);}}else{tick=this.axis[_2a4];}if(_2a3){if(tick){if(_2a3[_2a4]){tick=merge(tick,_2a3[_2a4]);}}else{tick=_2a3[_2a4];}}return tick;},inspectObjects:function(f){dojo.forEach(["chart","plotarea","axis","series","marker"],function(name){f(this[name]);},this);if(this.seriesThemes){dojo.forEach(this.seriesThemes,f);}if(this.markerThemes){dojo.forEach(this.markerThemes,f);}},reverseFills:function(){this.inspectObjects(function(o){if(o&&o.fill){o.fill=dojox.gfx.gradutils.reverse(o.fill);}});},addMarker:function(name,_2a5){this.markers[name]=_2a5;this._buildMarkerArray();},setMarkers:function(obj){this.markers=obj;this._buildMarkerArray();},_buildMarkerArray:function(){this._markers=[];for(var p in this.markers){this._markers.push(this.markers[p]);}}});dojo.mixin(dojox.charting.Theme,{defaultMarkers:{CIRCLE:"m-3,0 c0,-4 6,-4 6,0 m-6,0 c0,4 6,4 6,0",SQUARE:"m-3,-3 l0,6 6,0 0,-6 z",DIAMOND:"m0,-3 l3,3 -3,3 -3,-3 z",CROSS:"m0,-3 l0,6 m-3,-3 l6,0",X:"m-3,-3 l6,6 m0,-6 l-6,6",TRIANGLE:"m-3,3 l3,-6 3,6 z",TRIANGLE_INVERTED:"m-3,-3 l3,6 3,-6 z"},defaultColors:["#54544c","#858e94","#6e767a","#948585","#474747"],defaultTheme:{chart:{stroke:null,fill:"white",pageStyle:null,titleGap:20,titlePos:"top",titleFont:"normal normal bold 14pt Tahoma",titleFontColor:"#333"},plotarea:{stroke:null,fill:"white"},axis:{stroke:{color:"#333",width:1},tick:{color:"#666",position:"center",font:"normal normal normal 7pt Tahoma",fontColor:"#333",titleGap:15,titleFont:"normal normal normal 11pt Tahoma",titleFontColor:"#333",titleOrientation:"axis"},majorTick:{width:1,length:6},minorTick:{width:0.8,length:3},microTick:{width:0.5,length:1}},series:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000",labelWiring:{width:1,color:"#ccc"}},marker:{stroke:{width:1.5,color:"#333"},outline:{width:0.1,color:"#ccc"},shadow:null,fill:"#ccc",font:"normal normal normal 8pt Tahoma",fontColor:"#000"}},defineColors:function(_2a6){_2a6=_2a6||{};var c=[],n=_2a6.num||5;if(_2a6.colors){var l=_2a6.colors.length;for(var i=0;i<n;i++){c.push(_2a6.colors[i%l]);}return c;}if(_2a6.hue){var s=_2a6.saturation||100;var st=_2a6.low||30;var end=_2a6.high||90;var l=(end+st)/2;return dojox.color.Palette.generate(dojox.color.fromHsv(_2a6.hue,s,l),"monochromatic").colors;}if(_2a6.generator){return dojox.color.Palette.generate(_2a6.base,_2a6.generator).colors;}return c;},generateGradient:function(_2a7,_2a8,_2a9){var fill=dojo.delegate(_2a7);fill.colors=[{offset:0,color:_2a8},{offset:1,color:_2a9}];return fill;},generateHslColor:function(_2aa,_2ab){_2aa=new dojox.color.Color(_2aa);var hsl=_2aa.toHsl(),_2ac=dojox.color.fromHsl(hsl.h,hsl.s,_2ab);_2ac.a=_2aa.a;return _2ac;},generateHslGradient:function(_2ad,_2ae,_2af,_2b0){_2ad=new dojox.color.Color(_2ad);var hsl=_2ad.toHsl(),_2b1=dojox.color.fromHsl(hsl.h,hsl.s,_2af),_2b2=dojox.color.fromHsl(hsl.h,hsl.s,_2b0);_2b1.a=_2b2.a=_2ad.a;return dojox.charting.Theme.generateGradient(_2ae,_2b1,_2b2);}});}if(!dojo._hasResource["dojox.charting.Series"]){dojo._hasResource["dojox.charting.Series"]=true;dojo.provide("dojox.charting.Series");dojo.declare("dojox.charting.Series",dojox.charting.Element,{constructor:function(_2b3,data,_2b4){dojo.mixin(this,_2b4);if(typeof this.plot!="string"){this.plot="default";}this.update(data);},clear:function(){this.dyn={};},update:function(data){if(dojo.isArray(data)){this.data=data;}else{this.source=data;this.data=this.source.data;if(this.source.setSeriesObject){this.source.setSeriesObject(this);}}this.dirty=true;this.clear();}});}if(!dojo._hasResource["dojox.charting.axis2d.common"]){dojo._hasResource["dojox.charting.axis2d.common"]=true;dojo.provide("dojox.charting.axis2d.common");(function(){var g=dojox.gfx;var _2b5=function(s){s.marginLeft="0px";s.marginTop="0px";s.marginRight="0px";s.marginBottom="0px";s.paddingLeft="0px";s.paddingTop="0px";s.paddingRight="0px";s.paddingBottom="0px";s.borderLeftWidth="0px";s.borderTopWidth="0px";s.borderRightWidth="0px";s.borderBottomWidth="0px";};var _2b6=function(n){if(n["getBoundingClientRect"]){var bcr=n.getBoundingClientRect();return bcr.width||(bcr.right-bcr.left);}else{return dojo.marginBox(n).w;}};dojo.mixin(dojox.charting.axis2d.common,{createText:{gfx:function(_2b7,_2b8,x,y,_2b9,text,font,_2ba){return _2b8.createText({x:x,y:y,text:text,align:_2b9}).setFont(font).setFill(_2ba);},html:function(_2bb,_2bc,x,y,_2bd,text,font,_2be,_2bf){var p=dojo.doc.createElement("div"),s=p.style,_2c0;_2b5(s);s.font=font;p.innerHTML=String(text).replace(/\s/g,"&nbsp;");s.color=_2be;s.position="absolute";s.left="-10000px";dojo.body().appendChild(p);var size=g.normalizedLength(g.splitFontString(font).size);if(!_2bf){_2c0=_2b6(p);}dojo.body().removeChild(p);s.position="relative";if(_2bf){s.width=_2bf+"px";switch(_2bd){case "middle":s.textAlign="center";s.left=(x-_2bf/2)+"px";break;case "end":s.textAlign="right";s.left=(x-_2bf)+"px";break;default:s.left=x+"px";s.textAlign="left";break;}}else{switch(_2bd){case "middle":s.left=Math.floor(x-_2c0/2)+"px";break;case "end":s.left=Math.floor(x-_2c0)+"px";break;default:s.left=Math.floor(x)+"px";break;}}s.top=Math.floor(y-size)+"px";s.whiteSpace="nowrap";var wrap=dojo.doc.createElement("div"),w=wrap.style;_2b5(w);w.width="0px";w.height="0px";wrap.appendChild(p);_2bb.node.insertBefore(wrap,_2bb.node.firstChild);return wrap;}}});})();}if(!dojo._hasResource["dojox.charting.Chart"]){dojo._hasResource["dojox.charting.Chart"]=true;dojo.provide("dojox.charting.Chart");(function(){var df=dojox.lang.functional,dc=dojox.charting,g=dojox.gfx,_2c1=df.lambda("item.clear()"),_2c2=df.lambda("item.purgeGroup()"),_2c3=df.lambda("item.destroy()"),_2c4=df.lambda("item.dirty = false"),_2c5=df.lambda("item.dirty = true"),_2c6=df.lambda("item.name");dojo.declare("dojox.charting.Chart",null,{constructor:function(node,_2c7){if(!_2c7){_2c7={};}this.margins=_2c7.margins?_2c7.margins:{l:10,t:10,r:10,b:10};this.stroke=_2c7.stroke;this.fill=_2c7.fill;this.delayInMs=_2c7.delayInMs||200;this.title=_2c7.title;this.titleGap=_2c7.titleGap;this.titlePos=_2c7.titlePos;this.titleFont=_2c7.titleFont;this.titleFontColor=_2c7.titleFontColor;this.chartTitle=null;this.theme=null;this.axes={};this.stack=[];this.plots={};this.series=[];this.runs={};this.dirty=true;this.coords=null;this.node=dojo.byId(node);var box=dojo.marginBox(node);this.surface=g.createSurface(this.node,box.w||400,box.h||300);},destroy:function(){dojo.forEach(this.series,_2c3);dojo.forEach(this.stack,_2c3);df.forIn(this.axes,_2c3);if(this.chartTitle&&this.chartTitle.tagName){dojo.destroy(this.chartTitle);}this.surface.destroy();},getCoords:function(){if(!this.coords){this.coords=dojo.coords(this.node,true);}return this.coords;},setTheme:function(_2c8){this.theme=_2c8.clone();this.dirty=true;return this;},addAxis:function(name,_2c9){var axis,_2ca=_2c9&&_2c9.type||"Default";if(typeof _2ca=="string"){if(!dc.axis2d||!dc.axis2d[_2ca]){throw Error("Can't find axis: "+_2ca+" - didn't you forget to dojo"+".require() it?");}axis=new dc.axis2d[_2ca](this,_2c9);}else{axis=new _2ca(this,_2c9);}axis.name=name;axis.dirty=true;if(name in this.axes){this.axes[name].destroy();}this.axes[name]=axis;this.dirty=true;return this;},getAxis:function(name){return this.axes[name];},removeAxis:function(name){if(name in this.axes){this.axes[name].destroy();delete this.axes[name];this.dirty=true;}return this;},addPlot:function(name,_2cb){var plot,_2cc=_2cb&&_2cb.type||"Default";if(typeof _2cc=="string"){if(!dc.plot2d||!dc.plot2d[_2cc]){throw Error("Can't find plot: "+_2cc+" - didn't you forget to dojo"+".require() it?");}plot=new dc.plot2d[_2cc](this,_2cb);}else{plot=new _2cc(this,_2cb);}plot.name=name;plot.dirty=true;if(name in this.plots){this.stack[this.plots[name]].destroy();this.stack[this.plots[name]]=plot;}else{this.plots[name]=this.stack.length;this.stack.push(plot);}this.dirty=true;return this;},removePlot:function(name){if(name in this.plots){var _2cd=this.plots[name];delete this.plots[name];this.stack[_2cd].destroy();this.stack.splice(_2cd,1);df.forIn(this.plots,function(idx,name,_2ce){if(idx>_2cd){_2ce[name]=idx-1;}});var ns=dojo.filter(this.series,function(run){return run.plot!=name;});if(ns.length<this.series.length){dojo.forEach(this.series,function(run){if(run.plot==name){run.destroy();}});this.runs={};dojo.forEach(ns,function(run,_2cf){this.runs[run.plot]=_2cf;},this);this.series=ns;}this.dirty=true;}return this;},getPlotOrder:function(){return df.map(this.stack,_2c6);},setPlotOrder:function(_2d0){var _2d1={},_2d2=df.filter(_2d0,function(name){if(!(name in this.plots)||(name in _2d1)){return false;}_2d1[name]=1;return true;},this);if(_2d2.length<this.stack.length){df.forEach(this.stack,function(plot){var name=plot.name;if(!(name in _2d1)){_2d2.push(name);}});}var _2d3=df.map(_2d2,function(name){return this.stack[this.plots[name]];},this);df.forEach(_2d3,function(plot,i){this.plots[plot.name]=i;},this);this.stack=_2d3;this.dirty=true;return this;},movePlotToFront:function(name){if(name in this.plots){var _2d4=this.plots[name];if(_2d4){var _2d5=this.getPlotOrder();_2d5.splice(_2d4,1);_2d5.unshift(name);return this.setPlotOrder(_2d5);}}return this;},movePlotToBack:function(name){if(name in this.plots){var _2d6=this.plots[name];if(_2d6<this.stack.length-1){var _2d7=this.getPlotOrder();_2d7.splice(_2d6,1);_2d7.push(name);return this.setPlotOrder(_2d7);}}return this;},addSeries:function(name,data,_2d8){var run=new dc.Series(this,data,_2d8);run.name=name;if(name in this.runs){this.series[this.runs[name]].destroy();this.series[this.runs[name]]=run;}else{this.runs[name]=this.series.length;this.series.push(run);}this.dirty=true;if(!("ymin" in run)&&"min" in run){run.ymin=run.min;}if(!("ymax" in run)&&"max" in run){run.ymax=run.max;}return this;},removeSeries:function(name){if(name in this.runs){var _2d9=this.runs[name];delete this.runs[name];this.series[_2d9].destroy();this.series.splice(_2d9,1);df.forIn(this.runs,function(idx,name,runs){if(idx>_2d9){runs[name]=idx-1;}});this.dirty=true;}return this;},updateSeries:function(name,data){if(name in this.runs){var run=this.series[this.runs[name]];run.update(data);this._invalidateDependentPlots(run.plot,false);this._invalidateDependentPlots(run.plot,true);}return this;},getSeriesOrder:function(_2da){return df.map(df.filter(this.series,function(run){return run.plot==_2da;}),_2c6);},setSeriesOrder:function(_2db){var _2dc,_2dd={},_2de=df.filter(_2db,function(name){if(!(name in this.runs)||(name in _2dd)){return false;}var run=this.series[this.runs[name]];if(_2dc){if(run.plot!=_2dc){return false;}}else{_2dc=run.plot;}_2dd[name]=1;return true;},this);df.forEach(this.series,function(run){var name=run.name;if(!(name in _2dd)&&run.plot==_2dc){_2de.push(name);}});var _2df=df.map(_2de,function(name){return this.series[this.runs[name]];},this);this.series=_2df.concat(df.filter(this.series,function(run){return run.plot!=_2dc;}));df.forEach(this.series,function(run,i){this.runs[run.name]=i;},this);this.dirty=true;return this;},moveSeriesToFront:function(name){if(name in this.runs){var _2e0=this.runs[name],_2e1=this.getSeriesOrder(this.series[_2e0].plot);if(name!=_2e1[0]){_2e1.splice(_2e0,1);_2e1.unshift(name);return this.setSeriesOrder(_2e1);}}return this;},moveSeriesToBack:function(name){if(name in this.runs){var _2e2=this.runs[name],_2e3=this.getSeriesOrder(this.series[_2e2].plot);if(name!=_2e3[_2e3.length-1]){_2e3.splice(_2e2,1);_2e3.push(name);return this.setSeriesOrder(_2e3);}}return this;},resize:function(_2e4,_2e5){var box;switch(arguments.length){case 1:box=dojo.mixin({},_2e4);dojo.marginBox(this.node,box);break;case 2:box={w:_2e4,h:_2e5};dojo.marginBox(this.node,box);break;}box=dojo.marginBox(this.node);this.surface.setDimensions(box.w,box.h);this.dirty=true;this.coords=null;return this.render();},getGeometry:function(){var ret={};df.forIn(this.axes,function(axis){if(axis.initialized()){ret[axis.name]={name:axis.name,vertical:axis.vertical,scaler:axis.scaler,ticks:axis.ticks};}});return ret;},setAxisWindow:function(name,_2e6,_2e7,zoom){var axis=this.axes[name];if(axis){axis.setWindow(_2e6,_2e7);dojo.forEach(this.stack,function(plot){if(plot.hAxis==name||plot.vAxis==name){plot.zoom=zoom;}});}return this;},setWindow:function(sx,sy,dx,dy,zoom){if(!("plotArea" in this)){this.calculateGeometry();}df.forIn(this.axes,function(axis){var _2e8,_2e9,_2ea=axis.getScaler().bounds,s=_2ea.span/(_2ea.upper-_2ea.lower);if(axis.vertical){_2e8=sy;_2e9=dy/s/_2e8;}else{_2e8=sx;_2e9=dx/s/_2e8;}axis.setWindow(_2e8,_2e9);});dojo.forEach(this.stack,function(plot){plot.zoom=zoom;});return this;},zoomIn:function(name,_2eb){var axis=this.axes[name];if(axis){var _2ec,_2ed,_2ee=axis.getScaler().bounds;var _2ef=Math.min(_2eb[0],_2eb[1]);var _2f0=Math.max(_2eb[0],_2eb[1]);_2ef=_2eb[0]<_2ee.lower?_2ee.lower:_2ef;_2f0=_2eb[1]>_2ee.upper?_2ee.upper:_2f0;_2ec=(_2ee.upper-_2ee.lower)/(_2f0-_2ef);_2ed=_2ef-_2ee.lower;this.setAxisWindow(name,_2ec,_2ed);this.render();}},calculateGeometry:function(){if(this.dirty){return this.fullGeometry();}var _2f1=dojo.filter(this.stack,function(plot){return plot.dirty||(plot.hAxis&&this.axes[plot.hAxis].dirty)||(plot.vAxis&&this.axes[plot.vAxis].dirty);},this);_2f2(_2f1,this.plotArea);return this;},fullGeometry:function(){this._makeDirty();dojo.forEach(this.stack,_2c1);if(!this.theme){this.setTheme(new dojox.charting.Theme(dojox.charting._def));}dojo.forEach(this.series,function(run){if(!(run.plot in this.plots)){if(!dc.plot2d||!dc.plot2d.Default){throw Error("Can't find plot: Default - didn't you forget to dojo"+".require() it?");}var plot=new dc.plot2d.Default(this,{});plot.name=run.plot;this.plots[run.plot]=this.stack.length;this.stack.push(plot);}this.stack[this.plots[run.plot]].addSeries(run);},this);dojo.forEach(this.stack,function(plot){if(plot.hAxis){plot.setAxis(this.axes[plot.hAxis]);}if(plot.vAxis){plot.setAxis(this.axes[plot.vAxis]);}},this);var dim=this.dim=this.surface.getDimensions();dim.width=g.normalizedLength(dim.width);dim.height=g.normalizedLength(dim.height);df.forIn(this.axes,_2c1);_2f2(this.stack,dim);var _2f3=this.offsets={l:0,r:0,t:0,b:0};df.forIn(this.axes,function(axis){df.forIn(axis.getOffsets(),function(o,i){_2f3[i]+=o;});});if(this.title){this.titleGap=(this.titleGap==0)?0:this.titleGap||this.theme.chart.titleGap||20;this.titlePos=this.titlePos||this.theme.chart.titlePos||"top";this.titleFont=this.titleFont||this.theme.chart.titleFont;this.titleFontColor=this.titleFontColor||this.theme.chart.titleFontColor||"black";var _2f4=g.normalizedLength(g.splitFontString(this.titleFont).size);_2f3[this.titlePos=="top"?"t":"b"]+=(_2f4+this.titleGap);}df.forIn(this.margins,function(o,i){_2f3[i]+=o;});this.plotArea={width:dim.width-_2f3.l-_2f3.r,height:dim.height-_2f3.t-_2f3.b};df.forIn(this.axes,_2c1);_2f2(this.stack,this.plotArea);return this;},render:function(){if(this.theme){this.theme.clear();}if(this.dirty){return this.fullRender();}this.calculateGeometry();df.forEachRev(this.stack,function(plot){plot.render(this.dim,this.offsets);},this);df.forIn(this.axes,function(axis){axis.render(this.dim,this.offsets);},this);this._makeClean();if(this.surface.render){this.surface.render();}return this;},fullRender:function(){this.fullGeometry();var _2f5=this.offsets,dim=this.dim,rect;dojo.forEach(this.series,_2c2);df.forIn(this.axes,_2c2);dojo.forEach(this.stack,_2c2);if(this.chartTitle&&this.chartTitle.tagName){dojo.destroy(this.chartTitle);}this.surface.clear();this.chartTitle=null;var t=this.theme,fill=t.plotarea&&t.plotarea.fill,_2f6=t.plotarea&&t.plotarea.stroke,rect={x:_2f5.l-1,y:_2f5.t-1,width:dim.width-_2f5.l-_2f5.r+2,height:dim.height-_2f5.t-_2f5.b+2};if(fill){fill=dc.Element.prototype._shapeFill(dc.Element.prototype._plotFill(fill,dim,_2f5),rect);this.surface.createRect(rect).setFill(fill);}if(_2f6){this.surface.createRect({x:_2f5.l,y:_2f5.t,width:dim.width-_2f5.l-_2f5.r+1,height:dim.height-_2f5.t-_2f5.b+1}).setStroke(_2f6);}df.foldr(this.stack,function(z,plot){return plot.render(dim,_2f5),0;},0);fill=this.fill!==undefined?this.fill:(t.chart&&t.chart.fill);_2f6=this.stroke!==undefined?this.stroke:(t.chart&&t.chart.stroke);if(fill=="inherit"){var node=this.node,fill=new dojo.Color(dojo.style(node,"backgroundColor"));while(fill.a==0&&node!=document.documentElement){fill=new dojo.Color(dojo.style(node,"backgroundColor"));node=node.parentNode;}}if(fill){fill=dc.Element.prototype._plotFill(fill,dim,_2f5);if(_2f5.l){rect={width:_2f5.l,height:dim.height+1};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_2f5.r){rect={x:dim.width-_2f5.r,width:_2f5.r+1,height:dim.height+2};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_2f5.t){rect={width:dim.width+1,height:_2f5.t};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}if(_2f5.b){rect={y:dim.height-_2f5.b,width:dim.width+1,height:_2f5.b+2};this.surface.createRect(rect).setFill(dc.Element.prototype._shapeFill(fill,rect));}}if(_2f6){this.surface.createRect({width:dim.width-1,height:dim.height-1}).setStroke(_2f6);}if(this.title){var _2f7=(g.renderer=="canvas"),_2f8=_2f7||!dojo.isIE&&!dojo.isOpera?"html":"gfx",_2f9=g.normalizedLength(g.splitFontString(this.titleFont).size);this.chartTitle=dc.axis2d.common.createText[_2f8](this,this.surface,dim.width/2,this.titlePos=="top"?_2f9+this.margins.t:dim.height-this.margins.b,"middle",this.title,this.titleFont,this.titleFontColor);}df.forIn(this.axes,function(axis){axis.render(dim,_2f5);});this._makeClean();if(this.surface.render){this.surface.render();}return this;},delayedRender:function(){if(!this._delayedRenderHandle){this._delayedRenderHandle=setTimeout(dojo.hitch(this,function(){clearTimeout(this._delayedRenderHandle);this._delayedRenderHandle=null;this.render();}),this.delayInMs);}return this;},connectToPlot:function(name,_2fa,_2fb){return name in this.plots?this.stack[this.plots[name]].connect(_2fa,_2fb):null;},fireEvent:function(_2fc,_2fd,_2fe){if(_2fc in this.runs){var _2ff=this.series[this.runs[_2fc]].plot;if(_2ff in this.plots){var plot=this.stack[this.plots[_2ff]];if(plot){plot.fireEvent(_2fc,_2fd,_2fe);}}}return this;},_makeClean:function(){dojo.forEach(this.axes,_2c4);dojo.forEach(this.stack,_2c4);dojo.forEach(this.series,_2c4);this.dirty=false;},_makeDirty:function(){dojo.forEach(this.axes,_2c5);dojo.forEach(this.stack,_2c5);dojo.forEach(this.series,_2c5);this.dirty=true;},_invalidateDependentPlots:function(_300,_301){if(_300 in this.plots){var plot=this.stack[this.plots[_300]],axis,_302=_301?"vAxis":"hAxis";if(plot[_302]){axis=this.axes[plot[_302]];if(axis&&axis.dependOnData()){axis.dirty=true;dojo.forEach(this.stack,function(p){if(p[_302]&&p[_302]==plot[_302]){p.dirty=true;}});}}else{plot.dirty=true;}}}});function _303(_304){return {min:_304.hmin,max:_304.hmax};};function _305(_306){return {min:_306.vmin,max:_306.vmax};};function _307(_308,h){_308.hmin=h.min;_308.hmax=h.max;};function _309(_30a,v){_30a.vmin=v.min;_30a.vmax=v.max;};function _30b(_30c,_30d){if(_30c&&_30d){_30c.min=Math.min(_30c.min,_30d.min);_30c.max=Math.max(_30c.max,_30d.max);}return _30c||_30d;};function _2f2(_30e,_30f){var _310={},axes={};dojo.forEach(_30e,function(plot){var _311=_310[plot.name]=plot.getSeriesStats();if(plot.hAxis){axes[plot.hAxis]=_30b(axes[plot.hAxis],_303(_311));}if(plot.vAxis){axes[plot.vAxis]=_30b(axes[plot.vAxis],_305(_311));}});dojo.forEach(_30e,function(plot){var _312=_310[plot.name];if(plot.hAxis){_307(_312,axes[plot.hAxis]);}if(plot.vAxis){_309(_312,axes[plot.vAxis]);}plot.initializeScalers(_30f,_312);});};})();}if(!dojo._hasResource["dojox.charting.widget.Chart"]){dojo._hasResource["dojox.charting.widget.Chart"]=true;dojo.provide("dojox.charting.widget.Chart");(function(){var _313,_314,_315,_316,_317,_318=function(o){return o;},df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting,d=dojo;dojo.declare("dojox.charting.widget.Chart",dijit._Widget,{theme:null,margins:null,stroke:null,fill:null,buildRendering:function(){var n=this.domNode=this.srcNodeRef;var axes=d.query("> .axis",n).map(_314).filter(_318),_319=d.query("> .plot",n).map(_315).filter(_318),_31a=d.query("> .action",n).map(_316).filter(_318),_31b=d.query("> .series",n).map(_317).filter(_318);n.innerHTML="";var c=this.chart=new dc.Chart(n,{margins:this.margins,stroke:this.stroke,fill:this.fill});if(this.theme){c.setTheme(this.theme);}axes.forEach(function(axis){c.addAxis(axis.name,axis.kwArgs);});_319.forEach(function(plot){c.addPlot(plot.name,plot.kwArgs);});this.actions=_31a.map(function(_31c){return new _31c.action(c,_31c.plot,_31c.kwArgs);});var _31d=df.foldl(_31b,function(_31e,_31f){if(_31f.type=="data"){c.addSeries(_31f.name,_31f.data,_31f.kwArgs);_31e=true;}else{c.addSeries(_31f.name,[0],_31f.kwArgs);var kw={};du.updateWithPattern(kw,_31f.kwArgs,{"query":"","queryOptions":null,"start":0,"count":1},true);if(_31f.kwArgs.sort){kw.sort=dojo.clone(_31f.kwArgs.sort);}d.mixin(kw,{onComplete:function(data){var _320;if("valueFn" in _31f.kwArgs){var fn=_31f.kwArgs.valueFn;_320=d.map(data,function(x){return fn(_31f.data.getValue(x,_31f.field,0));});}else{_320=d.map(data,function(x){return _31f.data.getValue(x,_31f.field,0);});}c.addSeries(_31f.name,_320,_31f.kwArgs).render();}});_31f.data.fetch(kw);}return _31e;},false);if(_31d){c.render();}},destroy:function(){this.chart.destroy();this.inherited(arguments);},resize:function(box){this.chart.resize(box);}});_313=function(node,type,kw){var dp=eval("("+type+".prototype.defaultParams)");var x,attr;for(x in dp){if(x in kw){continue;}attr=node.getAttribute(x);kw[x]=du.coerceType(dp[x],attr==null||typeof attr=="undefined"?dp[x]:attr);}var op=eval("("+type+".prototype.optionalParams)");for(x in op){if(x in kw){continue;}attr=node.getAttribute(x);if(attr!=null){kw[x]=du.coerceType(op[x],attr);}}};_314=function(node){var name=node.getAttribute("name"),type=node.getAttribute("type");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.axis2d[type]){type=dojox._scopeName+".charting.axis2d."+type;}var axis=eval("("+type+")");if(axis){kw.type=axis;}}else{type=dojox._scopeName+".charting.axis2d.Default";}_313(node,type,kw);if(kw.font||kw.fontColor){if(!kw.tick){kw.tick={};}if(kw.font){kw.tick.font=kw.font;}if(kw.fontColor){kw.tick.fontColor=kw.fontColor;}}return o;};_315=function(node){var name=node.getAttribute("name"),type=node.getAttribute("type");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.plot2d&&dc.plot2d[type]){type=dojox._scopeName+".charting.plot2d."+type;}var plot=eval("("+type+")");if(plot){kw.type=plot;}}else{type=dojox._scopeName+".charting.plot2d.Default";}_313(node,type,kw);return o;};_316=function(node){var plot=node.getAttribute("plot"),type=node.getAttribute("type");if(!plot){plot="default";}var o={plot:plot,kwArgs:{}},kw=o.kwArgs;if(type){if(dc.action2d[type]){type=dojox._scopeName+".charting.action2d."+type;}var _321=eval("("+type+")");if(!_321){return null;}o.action=_321;}else{return null;}_313(node,type,kw);return o;};_317=function(node){var ga=d.partial(d.attr,node);var name=ga("name");if(!name){return null;}var o={name:name,kwArgs:{}},kw=o.kwArgs,t;t=ga("plot");if(t!=null){kw.plot=t;}t=ga("marker");if(t!=null){kw.marker=t;}t=ga("stroke");if(t!=null){kw.stroke=eval("("+t+")");}t=ga("outline");if(t!=null){kw.outline=eval("("+t+")");}t=ga("shadow");if(t!=null){kw.shadow=eval("("+t+")");}t=ga("fill");if(t!=null){kw.fill=eval("("+t+")");}t=ga("font");if(t!=null){kw.font=t;}t=ga("fontColor");if(t!=null){kw.fontColor=eval("("+t+")");}t=ga("legend");if(t!=null){kw.legend=t;}t=ga("data");if(t!=null){o.type="data";o.data=t?dojo.map(String(t).split(","),Number):[];return o;}t=ga("array");if(t!=null){o.type="data";o.data=eval("("+t+")");return o;}t=ga("store");if(t!=null){o.type="store";o.data=eval("("+t+")");t=ga("field");o.field=t!=null?t:"value";t=ga("query");if(!!t){kw.query=t;}t=ga("queryOptions");if(!!t){kw.queryOptions=eval("("+t+")");}t=ga("start");if(!!t){kw.start=Number(t);}t=ga("count");if(!!t){kw.count=Number(t);}t=ga("sort");if(!!t){kw.sort=eval("("+t+")");}t=ga("valueFn");if(!!t){kw.valueFn=df.lambda(t);}return o;}return null;};})();}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.getObject("fx.easing",true,dojo);dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojox.gfx.fx"]){dojo._hasResource["dojox.gfx.fx"]=true;dojo.provide("dojox.gfx.fx");(function(){var d=dojo,g=dojox.gfx,m=g.matrix;function _322(_323,end){this.start=_323,this.end=end;};_322.prototype.getValue=function(r){return (this.end-this.start)*r+this.start;};function _324(_325,end,_326){this.start=_325,this.end=end;this.units=_326;};_324.prototype.getValue=function(r){return (this.end-this.start)*r+this.start+this.units;};function _327(_328,end){this.start=_328,this.end=end;this.temp=new dojo.Color();};_327.prototype.getValue=function(r){return d.blendColors(this.start,this.end,r,this.temp);};function _329(_32a){this.values=_32a;this.length=_32a.length;};_329.prototype.getValue=function(r){return this.values[Math.min(Math.floor(r*this.length),this.length-1)];};function _32b(_32c,def){this.values=_32c;this.def=def?def:{};};_32b.prototype.getValue=function(r){var ret=dojo.clone(this.def);for(var i in this.values){ret[i]=this.values[i].getValue(r);}return ret;};function _32d(_32e,_32f){this.stack=_32e;this.original=_32f;};_32d.prototype.getValue=function(r){var ret=[];dojo.forEach(this.stack,function(t){if(t instanceof m.Matrix2D){ret.push(t);return;}if(t.name=="original"&&this.original){ret.push(this.original);return;}if(!(t.name in m)){return;}var f=m[t.name];if(typeof f!="function"){ret.push(f);return;}var val=dojo.map(t.start,function(v,i){return (t.end[i]-v)*r+v;}),_330=f.apply(m,val);if(_330 instanceof m.Matrix2D){ret.push(_330);}},this);return ret;};var _331=new d.Color(0,0,0,0);function _332(prop,obj,name,def){if(prop.values){return new _329(prop.values);}var _333,_334,end;if(prop.start){_334=g.normalizeColor(prop.start);}else{_334=_333=obj?(name?obj[name]:obj):def;}if(prop.end){end=g.normalizeColor(prop.end);}else{if(!_333){_333=obj?(name?obj[name]:obj):def;}end=_333;}return new _327(_334,end);};function _335(prop,obj,name,def){if(prop.values){return new _329(prop.values);}var _336,_337,end;if(prop.start){_337=prop.start;}else{_337=_336=obj?obj[name]:def;}if(prop.end){end=prop.end;}else{if(typeof _336!="number"){_336=obj?obj[name]:def;}end=_336;}return new _322(_337,end);};g.fx.animateStroke=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_338=args.shape,_339;d.connect(anim,"beforeBegin",anim,function(){_339=_338.getStroke();var prop=args.color,_33a={},_33b,_33c,end;if(prop){_33a.color=_332(prop,_339,"color",_331);}prop=args.style;if(prop&&prop.values){_33a.style=new _329(prop.values);}prop=args.width;if(prop){_33a.width=_335(prop,_339,"width",1);}prop=args.cap;if(prop&&prop.values){_33a.cap=new _329(prop.values);}prop=args.join;if(prop){if(prop.values){_33a.join=new _329(prop.values);}else{_33c=prop.start?prop.start:(_339&&_339.join||0);end=prop.end?prop.end:(_339&&_339.join||0);if(typeof _33c=="number"&&typeof end=="number"){_33a.join=new _322(_33c,end);}}}this.curve=new _32b(_33a,_339);});d.connect(anim,"onAnimate",_338,"setStroke");return anim;};g.fx.animateFill=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_33d=args.shape,fill;d.connect(anim,"beforeBegin",anim,function(){fill=_33d.getFill();var prop=args.color,_33e={};if(prop){this.curve=_332(prop,fill,"",_331);}});d.connect(anim,"onAnimate",_33d,"setFill");return anim;};g.fx.animateFont=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_33f=args.shape,font;d.connect(anim,"beforeBegin",anim,function(){font=_33f.getFont();var prop=args.style,_340={},_341,_342,end;if(prop&&prop.values){_340.style=new _329(prop.values);}prop=args.variant;if(prop&&prop.values){_340.variant=new _329(prop.values);}prop=args.weight;if(prop&&prop.values){_340.weight=new _329(prop.values);}prop=args.family;if(prop&&prop.values){_340.family=new _329(prop.values);}prop=args.size;if(prop&&prop.units){_342=parseFloat(prop.start?prop.start:(_33f.font&&_33f.font.size||"0"));end=parseFloat(prop.end?prop.end:(_33f.font&&_33f.font.size||"0"));_340.size=new _324(_342,end,prop.units);}this.curve=new _32b(_340,font);});d.connect(anim,"onAnimate",_33f,"setFont");return anim;};g.fx.animateTransform=function(args){if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args),_343=args.shape,_344;d.connect(anim,"beforeBegin",anim,function(){_344=_343.getTransform();this.curve=new _32d(args.transform,_344);});d.connect(anim,"onAnimate",_343,"setTransform");return anim;};})();}if(!dojo._hasResource["dojox.charting.action2d.Base"]){dojo._hasResource["dojox.charting.action2d.Base"]=true;dojo.provide("dojox.charting.action2d.Base");(function(){var _345=400,_346=dojo.fx.easing.backOut,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.Base",null,{overOutEvents:{onmouseover:1,onmouseout:1},constructor:function(_347,plot,_348){this.chart=_347;this.plot=plot||"default";this.anim={};if(!_348){_348={};}this.duration=_348.duration?_348.duration:_345;this.easing=_348.easing?_348.easing:_346;},connect:function(){this.handle=this.chart.connectToPlot(this.plot,this,"process");},disconnect:function(){if(this.handle){dojo.disconnect(this.handle);this.handle=null;}},reset:function(){},destroy:function(){this.disconnect();df.forIn(this.anim,function(o){df.forIn(o,function(anim){anim.action.stop(true);});});this.anim={};}});})();}if(!dojo._hasResource["dojox.charting.action2d.Highlight"]){dojo._hasResource["dojox.charting.action2d.Highlight"]=true;dojo.provide("dojox.charting.action2d.Highlight");(function(){var _349=100,_34a=75,_34b=50,c=dojox.color,cc=function(_34c){return function(){return _34c;};},hl=function(_34d){var a=new c.Color(_34d),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=_349;if(x.l<_34b){x.l=_34a;}else{if(x.l>_34a){x.l=_34b;}else{x.l=x.l-_34b>_34a-x.l?_34b:_34a;}}}return c.fromHsl(x);};dojo.declare("dojox.charting.action2d.Highlight",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut},optionalParams:{highlight:"red"},constructor:function(_34e,plot,_34f){var a=_34f&&_34f.highlight;this.colorFun=a?(dojo.isFunction(a)?a:cc(a)):hl;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _350=o.run.name,_351=o.index,anim,_352,_353;if(_350 in this.anim){anim=this.anim[_350][_351];}else{this.anim[_350]={};}if(anim){anim.action.stop(true);}else{var _354=o.shape.getFill();if(!_354||!(_354 instanceof dojo.Color)){return;}this.anim[_350][_351]=anim={start:_354,end:this.colorFun(_354)};}var _355=anim.start,end=anim.end;if(o.type=="onmouseout"){var t=_355;_355=end;end=t;}anim.action=dojox.gfx.fx.animateFill({shape:o.shape,duration:this.duration,easing:this.easing,color:{start:_355,end:end}});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_350]){delete this.anim[_350][_351];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _356=this;dojo.mixin(_356,args);_356.node=args.node;_356._showArgs=dojo.mixin({},args);_356._showArgs.node=_356.node;_356._showArgs.duration=_356.showDuration;_356.showAnim=_356.showFunc(_356._showArgs);_356._hideArgs=dojo.mixin({},args);_356._hideArgs.node=_356.node;_356._hideArgs.duration=_356.hideDuration;_356.hideAnim=_356.hideFunc(_356._hideArgs);dojo.connect(_356.showAnim,"beforeBegin",dojo.hitch(_356.hideAnim,"stop",true));dojo.connect(_356.hideAnim,"beforeBegin",dojo.hitch(_356.showAnim,"stop",true));},show:function(_357){return this.showAnim.play(_357||0);},hide:function(_358){return this.hideAnim.play(_358||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_359={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _35a=function(_35b){this._index=-1;this._animations=_35b||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_35a,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_35c,_35d){if(!this._current){this._current=this._animations[this._index=0];}if(!_35d&&this._current.status()=="playing"){return this;}var _35e=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_35f=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_360=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_35e);d.disconnect(_35f);d.disconnect(_360);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_361,_362){this.pause();var _363=this.duration*_361;this._current=null;d.some(this._animations,function(a){if(a.duration<=_363){this._current=a;return true;}_363-=a.duration;return false;});if(this._current){this._current.gotoPercent(_363/this._current.duration,_362);}return this;},stop:function(_364){if(this._current){if(_364){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_35a,_359);dojo.fx.chain=function(_365){return new _35a(_365);};var _366=function(_367){this._animations=_367||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_367,function(a){var _368=a.duration;if(a.delay){_368+=a.delay;}if(this.duration<_368){this.duration=_368;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_366,{_doAction:function(_369,args){d.forEach(this._animations,function(a){a[_369].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_36a,args){var t=this._pseudoAnimation;t[_36a].apply(t,args);},play:function(_36b,_36c){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(_36d,_36e){var ms=this.duration*_36d;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_36e);});this._call("gotoPercent",arguments);return this;},stop:function(_36f){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_366,_359);dojo.fx.combine=function(_370){return new _366(_370);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _371=d.style(node,"height");return Math.max(_371,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dojox.charting.action2d.Magnify"]){dojo._hasResource["dojox.charting.action2d.Magnify"]=true;dojo.provide("dojox.charting.action2d.Magnify");(function(){var _372=2,m=dojox.gfx.matrix,gf=dojox.gfx.fx;dojo.declare("dojox.charting.action2d.Magnify",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,scale:_372},optionalParams:{},constructor:function(_373,plot,_374){this.scale=_374&&typeof _374.scale=="number"?_374.scale:_372;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)||!("cx" in o)||!("cy" in o)){return;}var _375=o.run.name,_376=o.index,_377=[],anim,init,_378;if(_375 in this.anim){anim=this.anim[_375][_376];}else{this.anim[_375]={};}if(anim){anim.action.stop(true);}else{this.anim[_375][_376]=anim={};}if(o.type=="onmouseover"){init=m.identity;_378=this.scale;}else{init=m.scaleAt(this.scale,o.cx,o.cy);_378=1/this.scale;}var _379={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"scaleAt",start:[1,o.cx,o.cy],end:[_378,o.cx,o.cy]},init]};if(o.shape){_377.push(gf.animateTransform(_379));}if(o.oultine){_379.shape=o.outline;_377.push(gf.animateTransform(_379));}if(o.shadow){_379.shape=o.shadow;_377.push(gf.animateTransform(_379));}if(!_377.length){delete this.anim[_375][_376];return;}anim.action=dojo.fx.combine(_377);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_375]){delete this.anim[_375][_376];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojox.lang.functional.scan"]){dojo._hasResource["dojox.lang.functional.scan"]=true;dojo.provide("dojox.lang.functional.scan");(function(){var d=dojo,df=dojox.lang.functional,_37a={};d.mixin(df,{scanl:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,i;if(d.isArray(a)){t=new Array((n=a.length)+1);t[0]=z;for(i=0;i<n;z=f.call(o,z,a[i],i,a),t[++i]=z){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){t=[z];for(i=0;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}else{t=[z];for(i in a){if(!(i in _37a)){t.push(z=f.call(o,z,a[i],i,a));}}}}return t;},scanl1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var t,n,z,_37b=true;if(d.isArray(a)){t=new Array(n=a.length);t[0]=z=a[0];for(var i=1;i<n;t[i]=z=f.call(o,z,a[i],i,a),++i){}}else{if(typeof a.hasNext=="function"&&typeof a.next=="function"){if(a.hasNext()){t=[z=a.next()];for(var i=1;a.hasNext();t.push(z=f.call(o,z,a.next(),i++,a))){}}}else{for(var i in a){if(!(i in _37a)){if(_37b){t=[z=a[i]];_37b=false;}else{t.push(z=f.call(o,z,a[i],i,a));}}}}}return t;},scanr:function(a,f,z,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n+1),i=n;t[n]=z;for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){}return t;},scanr1:function(a,f,o){if(typeof a=="string"){a=a.split("");}o=o||d.global;f=df.lambda(f);var n=a.length,t=new Array(n),z=a[n-1],i=n-1;t[i]=z;for(;i>0;--i,z=f.call(o,z,a[i],i,a),t[i]=z){}return t;}});})();}if(!dojo._hasResource["dojox.charting.action2d.MoveSlice"]){dojo._hasResource["dojox.charting.action2d.MoveSlice"]=true;dojo.provide("dojox.charting.action2d.MoveSlice");(function(){var _37c=1.05,_37d=7,m=dojox.gfx.matrix,gf=dojox.gfx.fx,df=dojox.lang.functional;dojo.declare("dojox.charting.action2d.MoveSlice",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,scale:_37c,shift:_37d},optionalParams:{},constructor:function(_37e,plot,_37f){if(!_37f){_37f={};}this.scale=typeof _37f.scale=="number"?_37f.scale:_37c;this.shift=typeof _37f.shift=="number"?_37f.shift:_37d;this.connect();},process:function(o){if(!o.shape||o.element!="slice"||!(o.type in this.overOutEvents)){return;}if(!this.angles){var _380=m._degToRad(o.plot.opt.startAngle);if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",_380),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",_380),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _381=o.index,anim,_382,_383,_384,_385,_386=(this.angles[_381]+this.angles[_381+1])/2,_387=m.rotateAt(-_386,o.cx,o.cy),_388=m.rotateAt(_386,o.cx,o.cy);anim=this.anim[_381];if(anim){anim.action.stop(true);}else{this.anim[_381]=anim={};}if(o.type=="onmouseover"){_384=0;_385=this.shift;_382=1;_383=this.scale;}else{_384=this.shift;_385=0;_382=this.scale;_383=1;}anim.action=dojox.gfx.fx.animateTransform({shape:o.shape,duration:this.duration,easing:this.easing,transform:[_388,{name:"translate",start:[_384,0],end:[_385,0]},{name:"scaleAt",start:[_382,o.cx,o.cy],end:[_383,o.cx,o.cy]},_387]});if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){delete this.anim[_381];});}anim.action.play();},reset:function(){delete this.angles;}});})();}if(!dojo._hasResource["dojox.charting.action2d.Shake"]){dojo._hasResource["dojox.charting.action2d.Shake"]=true;dojo.provide("dojox.charting.action2d.Shake");(function(){var _389=3,m=dojox.gfx.matrix,gf=dojox.gfx.fx;dojo.declare("dojox.charting.action2d.Shake",dojox.charting.action2d.Base,{defaultParams:{duration:400,easing:dojo.fx.easing.backOut,shiftX:_389,shiftY:_389},optionalParams:{},constructor:function(_38a,plot,_38b){if(!_38b){_38b={};}this.shiftX=typeof _38b.shiftX=="number"?_38b.shiftX:_389;this.shiftY=typeof _38b.shiftY=="number"?_38b.shiftY:_389;this.connect();},process:function(o){if(!o.shape||!(o.type in this.overOutEvents)){return;}var _38c=o.run.name,_38d=o.index,_38e=[],anim,_38f=o.type=="onmouseover"?this.shiftX:-this.shiftX,_390=o.type=="onmouseover"?this.shiftY:-this.shiftY;if(_38c in this.anim){anim=this.anim[_38c][_38d];}else{this.anim[_38c]={};}if(anim){anim.action.stop(true);}else{this.anim[_38c][_38d]=anim={};}var _391={shape:o.shape,duration:this.duration,easing:this.easing,transform:[{name:"translate",start:[this.shiftX,this.shiftY],end:[0,0]},m.identity]};if(o.shape){_38e.push(gf.animateTransform(_391));}if(o.oultine){_391.shape=o.outline;_38e.push(gf.animateTransform(_391));}if(o.shadow){_391.shape=o.shadow;_38e.push(gf.animateTransform(_391));}if(!_38e.length){delete this.anim[_38c][_38d];return;}anim.action=dojo.fx.combine(_38e);if(o.type=="onmouseout"){dojo.connect(anim.action,"onEnd",this,function(){if(this.anim[_38c]){delete this.anim[_38c][_38d];}});}anim.action.play();}});})();}if(!dojo._hasResource["dojox.charting.action2d.Tooltip"]){dojo._hasResource["dojox.charting.action2d.Tooltip"]=true;dojo.provide("dojox.charting.action2d.Tooltip");(function(){var _392=function(o){var t=o.run&&o.run.data&&o.run.data[o.index];if(t&&typeof t!="number"&&(t.tooltip||t.text)){return t.tooltip||t.text;}if(o.element=="candlestick"){return "<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" style=\"font-size:0.9em;\">"+"<tr><td>Open:</td><td align=\"right\"><strong>"+o.data.open+"</strong></td></tr>"+"<tr><td>High:</td><td align=\"right\"><strong>"+o.data.high+"</strong></td></tr>"+"<tr><td>Low:</td><td align=\"right\"><strong>"+o.data.low+"</strong></td></tr>"+"<tr><td>Close:</td><td align=\"right\"><strong>"+o.data.close+"</strong></td></tr>"+(o.data.mid!==undefined?"<tr><td>Mid:</td><td align=\"right\"><strong>"+o.data.mid+"</strong></td></tr>":"")+"</table>";}return o.element=="bar"?o.x:o.y;};var df=dojox.lang.functional,m=dojox.gfx.matrix,pi4=Math.PI/4,pi2=Math.PI/2;dojo.declare("dojox.charting.action2d.Tooltip",dojox.charting.action2d.Base,{defaultParams:{text:_392},optionalParams:{},constructor:function(_393,plot,_394){this.text=_394&&_394.text?_394.text:_392;this.connect();},process:function(o){if(o.type==="onplotreset"||o.type==="onmouseout"){dijit.hideTooltip(this.aroundRect);this.aroundRect=null;if(o.type==="onplotreset"){delete this.angles;}return;}if(!o.shape||o.type!=="onmouseover"){return;}var _395={type:"rect"},_396=["after","before"];switch(o.element){case "marker":_395.x=o.cx;_395.y=o.cy;_395.width=_395.height=1;break;case "circle":_395.x=o.cx-o.cr;_395.y=o.cy-o.cr;_395.width=_395.height=2*o.cr;break;case "column":_396=["above","below"];case "bar":_395=dojo.clone(o.shape.getShape());break;case "candlestick":_395.x=o.x;_395.y=o.y;_395.width=o.width;_395.height=o.height;break;default:if(!this.angles){if(typeof o.run.data[0]=="number"){this.angles=df.map(df.scanl(o.run.data,"+",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"+",0));}else{this.angles=df.map(df.scanl(o.run.data,"a + b.y",0),"* 2 * Math.PI / this",df.foldl(o.run.data,"a + b.y",0));}}var _397=m._degToRad(o.plot.opt.startAngle),_398=(this.angles[o.index]+this.angles[o.index+1])/2+_397;_395.x=o.cx+o.cr*Math.cos(_398);_395.y=o.cy+o.cr*Math.sin(_398);_395.width=_395.height=1;if(_398<pi4){}else{if(_398<pi2+pi4){_396=["below","above"];}else{if(_398<Math.PI+pi4){_396=["before","after"];}else{if(_398<2*Math.PI-pi4){_396=["above","below"];}}}}break;}var lt=dojo.coords(this.chart.node,true);_395.x+=lt.x;_395.y+=lt.y;_395.x=Math.round(_395.x);_395.y=Math.round(_395.y);_395.width=Math.ceil(_395.width);_395.height=Math.ceil(_395.height);this.aroundRect=_395;var _399=this.text(o);if(_399){dijit.showTooltip(_399,this.aroundRect,_396);}}});})();}if(!dojo._hasResource["dojox.charting.scaler.common"]){dojo._hasResource["dojox.charting.scaler.common"]=true;dojo.provide("dojox.charting.scaler.common");(function(){var eq=function(a,b){return Math.abs(a-b)<=0.000001*(Math.abs(a)+Math.abs(b));};dojo.mixin(dojox.charting.scaler.common,{findString:function(val,text){val=val.toLowerCase();for(var i=0;i<text.length;++i){if(val==text[i]){return true;}}return false;},getNumericLabel:function(_39a,_39b,_39c){var def="";if(dojo.number){def=(_39c.fixed?dojo.number.format(_39a,{places:_39b<0?-_39b:0}):dojo.number.format(_39a))||"";}else{def=_39c.fixed?_39a.toFixed(_39b<0?-_39b:0):_39a.toString();}if(_39c.labelFunc){var r=_39c.labelFunc(def,_39a,_39b);if(r){return r;}}if(_39c.labels){var l=_39c.labels,lo=0,hi=l.length;while(lo<hi){var mid=Math.floor((lo+hi)/2),val=l[mid].value;if(val<_39a){lo=mid+1;}else{hi=mid;}}if(lo<l.length&&eq(l[lo].value,_39a)){return l[lo].text;}--lo;if(lo>=0&&lo<l.length&&eq(l[lo].value,_39a)){return l[lo].text;}lo+=2;if(lo<l.length&&eq(l[lo].value,_39a)){return l[lo].text;}}return def;}});})();}if(!dojo._hasResource["dojox.charting.scaler.linear"]){dojo._hasResource["dojox.charting.scaler.linear"]=true;dojo.provide("dojox.charting.scaler.linear");(function(){var _39d=3,dc=dojox.charting,dcs=dc.scaler,dcsc=dcs.common,_39e=dcsc.findString,_39f=dcsc.getNumericLabel;var _3a0=function(min,max,_3a1,_3a2,_3a3,_3a4,span){_3a1=dojo.delegate(_3a1);if(!_3a2){if(_3a1.fixUpper=="major"){_3a1.fixUpper="minor";}if(_3a1.fixLower=="major"){_3a1.fixLower="minor";}}if(!_3a3){if(_3a1.fixUpper=="minor"){_3a1.fixUpper="micro";}if(_3a1.fixLower=="minor"){_3a1.fixLower="micro";}}if(!_3a4){if(_3a1.fixUpper=="micro"){_3a1.fixUpper="none";}if(_3a1.fixLower=="micro"){_3a1.fixLower="none";}}var _3a5=_39e(_3a1.fixLower,["major"])?Math.floor(_3a1.min/_3a2)*_3a2:_39e(_3a1.fixLower,["minor"])?Math.floor(_3a1.min/_3a3)*_3a3:_39e(_3a1.fixLower,["micro"])?Math.floor(_3a1.min/_3a4)*_3a4:_3a1.min,_3a6=_39e(_3a1.fixUpper,["major"])?Math.ceil(_3a1.max/_3a2)*_3a2:_39e(_3a1.fixUpper,["minor"])?Math.ceil(_3a1.max/_3a3)*_3a3:_39e(_3a1.fixUpper,["micro"])?Math.ceil(_3a1.max/_3a4)*_3a4:_3a1.max;if(_3a1.useMin){min=_3a5;}if(_3a1.useMax){max=_3a6;}var _3a7=(!_3a2||_3a1.useMin&&_39e(_3a1.fixLower,["major"]))?min:Math.ceil(min/_3a2)*_3a2,_3a8=(!_3a3||_3a1.useMin&&_39e(_3a1.fixLower,["major","minor"]))?min:Math.ceil(min/_3a3)*_3a3,_3a9=(!_3a4||_3a1.useMin&&_39e(_3a1.fixLower,["major","minor","micro"]))?min:Math.ceil(min/_3a4)*_3a4,_3aa=!_3a2?0:(_3a1.useMax&&_39e(_3a1.fixUpper,["major"])?Math.round((max-_3a7)/_3a2):Math.floor((max-_3a7)/_3a2))+1,_3ab=!_3a3?0:(_3a1.useMax&&_39e(_3a1.fixUpper,["major","minor"])?Math.round((max-_3a8)/_3a3):Math.floor((max-_3a8)/_3a3))+1,_3ac=!_3a4?0:(_3a1.useMax&&_39e(_3a1.fixUpper,["major","minor","micro"])?Math.round((max-_3a9)/_3a4):Math.floor((max-_3a9)/_3a4))+1,_3ad=_3a3?Math.round(_3a2/_3a3):0,_3ae=_3a4?Math.round(_3a3/_3a4):0,_3af=_3a2?Math.floor(Math.log(_3a2)/Math.LN10):0,_3b0=_3a3?Math.floor(Math.log(_3a3)/Math.LN10):0,_3b1=span/(max-min);if(!isFinite(_3b1)){_3b1=1;}return {bounds:{lower:_3a5,upper:_3a6,from:min,to:max,scale:_3b1,span:span},major:{tick:_3a2,start:_3a7,count:_3aa,prec:_3af},minor:{tick:_3a3,start:_3a8,count:_3ab,prec:_3b0},micro:{tick:_3a4,start:_3a9,count:_3ac,prec:0},minorPerMajor:_3ad,microPerMinor:_3ae,scaler:dcs.linear};};dojo.mixin(dojox.charting.scaler.linear,{buildScaler:function(min,max,span,_3b2){var h={fixUpper:"none",fixLower:"none",natural:false};if(_3b2){if("fixUpper" in _3b2){h.fixUpper=String(_3b2.fixUpper);}if("fixLower" in _3b2){h.fixLower=String(_3b2.fixLower);}if("natural" in _3b2){h.natural=Boolean(_3b2.natural);}}if("min" in _3b2){min=_3b2.min;}if("max" in _3b2){max=_3b2.max;}if(_3b2.includeZero){if(min>0){min=0;}if(max<0){max=0;}}h.min=min;h.useMin=true;h.max=max;h.useMax=true;if("from" in _3b2){min=_3b2.from;h.useMin=false;}if("to" in _3b2){max=_3b2.to;h.useMax=false;}if(max<=min){return _3a0(min,max,h,0,0,0,span);}var mag=Math.floor(Math.log(max-min)/Math.LN10),_3b3=_3b2&&("majorTickStep" in _3b2)?_3b2.majorTickStep:Math.pow(10,mag),_3b4=0,_3b5=0,_3b6;if(_3b2&&("minorTickStep" in _3b2)){_3b4=_3b2.minorTickStep;}else{do{_3b4=_3b3/10;if(!h.natural||_3b4>0.9){_3b6=_3a0(min,max,h,_3b3,_3b4,0,span);if(_3b6.bounds.scale*_3b6.minor.tick>_39d){break;}}_3b4=_3b3/5;if(!h.natural||_3b4>0.9){_3b6=_3a0(min,max,h,_3b3,_3b4,0,span);if(_3b6.bounds.scale*_3b6.minor.tick>_39d){break;}}_3b4=_3b3/2;if(!h.natural||_3b4>0.9){_3b6=_3a0(min,max,h,_3b3,_3b4,0,span);if(_3b6.bounds.scale*_3b6.minor.tick>_39d){break;}}return _3a0(min,max,h,_3b3,0,0,span);}while(false);}if(_3b2&&("microTickStep" in _3b2)){_3b5=_3b2.microTickStep;_3b6=_3a0(min,max,h,_3b3,_3b4,_3b5,span);}else{do{_3b5=_3b4/10;if(!h.natural||_3b5>0.9){_3b6=_3a0(min,max,h,_3b3,_3b4,_3b5,span);if(_3b6.bounds.scale*_3b6.micro.tick>_39d){break;}}_3b5=_3b4/5;if(!h.natural||_3b5>0.9){_3b6=_3a0(min,max,h,_3b3,_3b4,_3b5,span);if(_3b6.bounds.scale*_3b6.micro.tick>_39d){break;}}_3b5=_3b4/2;if(!h.natural||_3b5>0.9){_3b6=_3a0(min,max,h,_3b3,_3b4,_3b5,span);if(_3b6.bounds.scale*_3b6.micro.tick>_39d){break;}}_3b5=0;}while(false);}return _3b5?_3b6:_3a0(min,max,h,_3b3,_3b4,0,span);},buildTicks:function(_3b7,_3b8){var step,next,tick,_3b9=_3b7.major.start,_3ba=_3b7.minor.start,_3bb=_3b7.micro.start;if(_3b8.microTicks&&_3b7.micro.tick){step=_3b7.micro.tick,next=_3bb;}else{if(_3b8.minorTicks&&_3b7.minor.tick){step=_3b7.minor.tick,next=_3ba;}else{if(_3b7.major.tick){step=_3b7.major.tick,next=_3b9;}else{return null;}}}var _3bc=1/_3b7.bounds.scale;if(_3b7.bounds.to<=_3b7.bounds.from||isNaN(_3bc)||!isFinite(_3bc)||step<=0||isNaN(step)||!isFinite(step)){return null;}var _3bd=[],_3be=[],_3bf=[];while(next<=_3b7.bounds.to+_3bc){if(Math.abs(_3b9-next)<step/2){tick={value:_3b9};if(_3b8.majorLabels){tick.label=_39f(_3b9,_3b7.major.prec,_3b8);}_3bd.push(tick);_3b9+=_3b7.major.tick;_3ba+=_3b7.minor.tick;_3bb+=_3b7.micro.tick;}else{if(Math.abs(_3ba-next)<step/2){if(_3b8.minorTicks){tick={value:_3ba};if(_3b8.minorLabels&&(_3b7.minMinorStep<=_3b7.minor.tick*_3b7.bounds.scale)){tick.label=_39f(_3ba,_3b7.minor.prec,_3b8);}_3be.push(tick);}_3ba+=_3b7.minor.tick;_3bb+=_3b7.micro.tick;}else{if(_3b8.microTicks){_3bf.push({value:_3bb});}_3bb+=_3b7.micro.tick;}}next+=step;}return {major:_3bd,minor:_3be,micro:_3bf};},getTransformerFromModel:function(_3c0){var _3c1=_3c0.bounds.from,_3c2=_3c0.bounds.scale;return function(x){return (x-_3c1)*_3c2;};},getTransformerFromPlot:function(_3c3){var _3c4=_3c3.bounds.from,_3c5=_3c3.bounds.scale;return function(x){return x/_3c5+_3c4;};}});})();}if(!dojo._hasResource["dojox.charting.axis2d.Base"]){dojo._hasResource["dojox.charting.axis2d.Base"]=true;dojo.provide("dojox.charting.axis2d.Base");dojo.declare("dojox.charting.axis2d.Base",dojox.charting.Element,{constructor:function(_3c6,_3c7){this.vertical=_3c7&&_3c7.vertical;},clear:function(){return this;},initialized:function(){return false;},calculate:function(min,max,span){return this;},getScaler:function(){return null;},getTicks:function(){return null;},getOffsets:function(){return {l:0,r:0,t:0,b:0};},render:function(dim,_3c8){this.dirty=false;return this;}});}if(!dojo._hasResource["dojox.charting.axis2d.Invisible"]){dojo._hasResource["dojox.charting.axis2d.Invisible"]=true;dojo.provide("dojox.charting.axis2d.Invisible");(function(){var dc=dojox.charting,df=dojox.lang.functional,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_3c9=du.merge,_3ca=4,_3cb=45;dojo.declare("dojox.charting.axis2d.Invisible",dojox.charting.axis2d.Base,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null},constructor:function(_3cc,_3cd){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3cd);du.updateWithPattern(this.opt,_3cd,this.optionalParams);},dependOnData:function(){return !("min" in this.opt)||!("max" in this.opt);},clear:function(){delete this.scaler;delete this.ticks;this.dirty=true;return this;},initialized:function(){return "scaler" in this&&!(this.dirty&&this.dependOnData());},setWindow:function(_3ce,_3cf){this.scale=_3ce;this.offset=_3cf;return this.clear();},getWindowScale:function(){return "scale" in this?this.scale:1;},getWindowOffset:function(){return "offset" in this?this.offset:0;},_groupLabelWidth:function(_3d0,font,_3d1){if(!_3d0.length){return 0;}if(dojo.isObject(_3d0[0])){_3d0=df.map(_3d0,function(_3d2){return _3d2.text;});}if(_3d1){_3d0=df.map(_3d0,function(_3d3){return dojo.trim(_3d3).length==0?"":_3d3.substring(0,_3d1)+this.trailingSymbol;},this);}var s=_3d0.join("<br>");return dojox.gfx._base._getTextBox(s,{font:font}).w||0;},calculate:function(min,max,span,_3d4){if(this.initialized()){return this;}var o=this.opt;this.labels="labels" in o?o.labels:_3d4;this.scaler=lin.buildScaler(min,max,span,o);var tsb=this.scaler.bounds;if("scale" in this){o.from=tsb.lower+this.offset;o.to=(tsb.upper-tsb.lower)/this.scale+o.from;if(!isFinite(o.from)||isNaN(o.from)||!isFinite(o.to)||isNaN(o.to)||o.to-o.from>=tsb.upper-tsb.lower){delete o.from;delete o.to;delete this.scale;delete this.offset;}else{if(o.from<tsb.lower){o.to+=tsb.lower-o.from;o.from=tsb.lower;}else{if(o.to>tsb.upper){o.from+=tsb.upper-o.to;o.to=tsb.upper;}}this.offset=o.from-tsb.lower;}this.scaler=lin.buildScaler(min,max,span,o);tsb=this.scaler.bounds;if(this.scale==1&&this.offset==0){delete this.scale;delete this.offset;}}var ta=this.chart.theme.axis,_3d5=0,_3d6=o.rotation%360,_3d7=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),size=_3d7?g.normalizedLength(g.splitFontString(_3d7).size):0,cosr=Math.abs(Math.cos(_3d6*Math.PI/180)),sinr=Math.abs(Math.sin(_3d6*Math.PI/180));if(_3d6<0){_3d6+=360;}if(size){if(this.vertical?_3d6!=0&&_3d6!=180:_3d6!=90&&_3d6!=270){if(this.labels){_3d5=this._groupLabelWidth(this.labels,_3d7,o.maxLabelCharCount);}else{var _3d8=Math.ceil(Math.log(Math.max(Math.abs(tsb.from),Math.abs(tsb.to)))/Math.LN10),t=[];if(tsb.from<0||tsb.to<0){t.push("-");}t.push(dojo.string.rep("9",_3d8));var _3d9=Math.floor(Math.log(tsb.to-tsb.from)/Math.LN10);if(_3d9>0){t.push(".");t.push(dojo.string.rep("9",_3d9));}_3d5=dojox.gfx._base._getTextBox(t.join(""),{font:_3d7}).w;}_3d5=o.maxLabelSize?Math.min(o.maxLabelSize,_3d5):_3d5;}else{_3d5=size;}switch(_3d6){case 0:case 90:case 180:case 270:break;default:var gap1=Math.sqrt(_3d5*_3d5+size*size),gap2=this.vertical?size*cosr+_3d5*sinr:_3d5*cosr+size*sinr;_3d5=Math.min(gap1,gap2);break;}}this.scaler.minMinorStep=_3d5+_3ca;this.ticks=lin.buildTicks(this.scaler,o);return this;},getScaler:function(){return this.scaler;},getTicks:function(){return this.ticks;}});})();}if(!dojo._hasResource["dojox.charting.axis2d.Default"]){dojo._hasResource["dojox.charting.axis2d.Default"]=true;dojo.provide("dojox.charting.axis2d.Default");(function(){var dc=dojox.charting,du=dojox.lang.utils,g=dojox.gfx,lin=dc.scaler.linear,_3da=4,_3db=45;dojo.declare("dojox.charting.axis2d.Default",dojox.charting.axis2d.Invisible,{defaultParams:{vertical:false,fixUpper:"none",fixLower:"none",natural:false,leftBottom:true,includeZero:false,fixed:true,majorLabels:true,minorTicks:true,minorLabels:true,microTicks:false,rotation:0,htmlLabels:true},optionalParams:{min:0,max:1,from:0,to:1,majorTickStep:4,minorTickStep:2,microTickStep:1,labels:[],labelFunc:null,maxLabelSize:0,maxLabelCharCount:0,trailingSymbol:null,stroke:{},majorTick:{},minorTick:{},microTick:{},tick:{},font:"",fontColor:"",title:"",titleGap:0,titleFont:"",titleFontColor:"",titleOrientation:""},constructor:function(_3dc,_3dd){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_3dd);du.updateWithPattern(this.opt,_3dd,this.optionalParams);},getOffsets:function(){var s=this.scaler,_3de={l:0,r:0,t:0,b:0};if(!s){return _3de;}var o=this.opt,_3df=0,a,b,c,d,gl=dc.scaler.common.getNumericLabel,_3e0=0,ma=s.major,mi=s.minor,ta=this.chart.theme.axis,_3e1=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_3e2=o.titleFont||(ta.tick&&ta.tick.titleFont),_3e3=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_3e4=this.chart.theme.getTick("major",o),_3e5=this.chart.theme.getTick("minor",o),size=_3e1?g.normalizedLength(g.splitFontString(_3e1).size):0,_3e6=_3e2?g.normalizedLength(g.splitFontString(_3e2).size):0,_3e7=o.rotation%360,_3e8=o.leftBottom,cosr=Math.abs(Math.cos(_3e7*Math.PI/180)),sinr=Math.abs(Math.sin(_3e7*Math.PI/180));this.trailingSymbol=(o.trailingSymbol===undefined||o.trailingSymbol===null)?this.trailingSymbol:o.trailingSymbol;if(_3e7<0){_3e7+=360;}if(size){if(this.labels){_3df=this._groupLabelWidth(this.labels,_3e1,o.maxLabelCharCount);}else{_3df=this._groupLabelWidth([gl(ma.start,ma.prec,o),gl(ma.start+ma.count*ma.tick,ma.prec,o),gl(mi.start,mi.prec,o),gl(mi.start+mi.count*mi.tick,mi.prec,o)],_3e1,o.maxLabelCharCount);}_3df=o.maxLabelSize?Math.min(o.maxLabelSize,_3df):_3df;if(this.vertical){var side=_3e8?"l":"r";switch(_3e7){case 0:case 180:_3de[side]=_3df;_3de.t=_3de.b=size/2;break;case 90:case 270:_3de[side]=size;_3de.t=_3de.b=_3df/2;break;default:if(_3e7<=_3db||(180<_3e7&&_3e7<=(180+_3db))){_3de[side]=size*sinr/2+_3df*cosr;_3de[_3e8?"t":"b"]=size*cosr/2+_3df*sinr;_3de[_3e8?"b":"t"]=size*cosr/2;}else{if(_3e7>(360-_3db)||(180>_3e7&&_3e7>(180-_3db))){_3de[side]=size*sinr/2+_3df*cosr;_3de[_3e8?"b":"t"]=size*cosr/2+_3df*sinr;_3de[_3e8?"t":"b"]=size*cosr/2;}else{if(_3e7<90||(180<_3e7&&_3e7<270)){_3de[side]=size*sinr+_3df*cosr;_3de[_3e8?"t":"b"]=size*cosr+_3df*sinr;}else{_3de[side]=size*sinr+_3df*cosr;_3de[_3e8?"b":"t"]=size*cosr+_3df*sinr;}}}break;}_3de[side]+=_3da+Math.max(_3e4.length,_3e5.length)+(o.title?(_3e6+_3e3):0);}else{var side=_3e8?"b":"t";switch(_3e7){case 0:case 180:_3de[side]=size;_3de.l=_3de.r=_3df/2;break;case 90:case 270:_3de[side]=_3df;_3de.l=_3de.r=size/2;break;default:if((90-_3db)<=_3e7&&_3e7<=90||(270-_3db)<=_3e7&&_3e7<=270){_3de[side]=size*sinr/2+_3df*cosr;_3de[_3e8?"r":"l"]=size*cosr/2+_3df*sinr;_3de[_3e8?"l":"r"]=size*cosr/2;}else{if(90<=_3e7&&_3e7<=(90+_3db)||270<=_3e7&&_3e7<=(270+_3db)){_3de[side]=size*sinr/2+_3df*cosr;_3de[_3e8?"l":"r"]=size*cosr/2+_3df*sinr;_3de[_3e8?"r":"l"]=size*cosr/2;}else{if(_3e7<_3db||(180<_3e7&&_3e7<(180-_3db))){_3de[side]=size*sinr+_3df*cosr;_3de[_3e8?"r":"l"]=size*cosr+_3df*sinr;}else{_3de[side]=size*sinr+_3df*cosr;_3de[_3e8?"l":"r"]=size*cosr+_3df*sinr;}}}break;}_3de[side]+=_3da+Math.max(_3e4.length,_3e5.length)+(o.title?(_3e6+_3e3):0);}}if(_3df){this._cachedLabelWidth=_3df;}return _3de;},render:function(dim,_3e9){if(!this.dirty){return this;}var o=this.opt,ta=this.chart.theme.axis,_3ea=o.leftBottom,_3eb=o.rotation%360,_3ec,stop,_3ed,_3ee=0,_3ef,_3f0,_3f1,_3f2,_3f3,_3f4,_3f5=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font),_3f6=o.titleFont||(ta.tick&&ta.tick.titleFont),_3f7=o.fontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"black",_3f8=o.titleFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_3f9=(o.titleGap==0)?0:o.titleGap||(ta.tick&&ta.tick.titleGap)||15,_3fa=o.titleOrientation||(ta.tick&&ta.tick.titleOrientation)||"axis",_3fb=this.chart.theme.getTick("major",o),_3fc=this.chart.theme.getTick("minor",o),_3fd=this.chart.theme.getTick("micro",o),_3fe=Math.max(_3fb.length,_3fc.length,_3fd.length),_3ff="stroke" in o?o.stroke:ta.stroke,size=_3f5?g.normalizedLength(g.splitFontString(_3f5).size):0,cosr=Math.abs(Math.cos(_3eb*Math.PI/180)),sinr=Math.abs(Math.sin(_3eb*Math.PI/180)),_400=_3f6?g.normalizedLength(g.splitFontString(_3f6).size):0;if(_3eb<0){_3eb+=360;}if(this.vertical){_3ec={y:dim.height-_3e9.b};stop={y:_3e9.t};_3ed={y:(dim.height-_3e9.b+_3e9.t)/2};_3ef=size*sinr+(this._cachedLabelWidth||0)*cosr+_3da+Math.max(_3fb.length,_3fc.length)+_400+_3f9;_3f0={x:0,y:-1};_3f3={x:0,y:0};_3f1={x:1,y:0};_3f2={x:_3da,y:0};switch(_3eb){case 0:_3f4="end";_3f3.y=size*0.4;break;case 90:_3f4="middle";_3f3.x=-size;break;case 180:_3f4="start";_3f3.y=-size*0.4;break;case 270:_3f4="middle";break;default:if(_3eb<_3db){_3f4="end";_3f3.y=size*0.4;}else{if(_3eb<90){_3f4="end";_3f3.y=size*0.4;}else{if(_3eb<(180-_3db)){_3f4="start";}else{if(_3eb<(180+_3db)){_3f4="start";_3f3.y=-size*0.4;}else{if(_3eb<270){_3f4="start";_3f3.x=_3ea?0:size*0.4;}else{if(_3eb<(360-_3db)){_3f4="end";_3f3.x=_3ea?0:size*0.4;}else{_3f4="end";_3f3.y=size*0.4;}}}}}}}if(_3ea){_3ec.x=stop.x=_3e9.l;_3ee=(_3fa&&_3fa=="away")?90:270;_3ed.x=_3e9.l-_3ef+(_3ee==270?_400:0);_3f1.x=-1;_3f2.x=-_3f2.x;}else{_3ec.x=stop.x=dim.width-_3e9.r;_3ee=(_3fa&&_3fa=="axis")?90:270;_3ed.x=dim.width-_3e9.r+_3ef-(_3ee==270?0:_400);switch(_3f4){case "start":_3f4="end";break;case "end":_3f4="start";break;case "middle":_3f3.x+=size;break;}}}else{_3ec={x:_3e9.l};stop={x:dim.width-_3e9.r};_3ed={x:(dim.width-_3e9.r+_3e9.l)/2};_3ef=size*cosr+(this._cachedLabelWidth||0)*sinr+_3da+Math.max(_3fb.length,_3fc.length)+_400+_3f9;_3f0={x:1,y:0};_3f3={x:0,y:0};_3f1={x:0,y:1};_3f2={x:0,y:_3da};switch(_3eb){case 0:_3f4="middle";_3f3.y=size;break;case 90:_3f4="start";_3f3.x=-size*0.4;break;case 180:_3f4="middle";break;case 270:_3f4="end";_3f3.x=size*0.4;break;default:if(_3eb<(90-_3db)){_3f4="start";_3f3.y=_3ea?size:0;}else{if(_3eb<(90+_3db)){_3f4="start";_3f3.x=-size*0.4;}else{if(_3eb<180){_3f4="start";_3f3.y=_3ea?0:-size;}else{if(_3eb<(270-_3db)){_3f4="end";_3f3.y=_3ea?0:-size;}else{if(_3eb<(270+_3db)){_3f4="end";_3f3.y=_3ea?size*0.4:0;}else{_3f4="end";_3f3.y=_3ea?size:0;}}}}}}if(_3ea){_3ec.y=stop.y=dim.height-_3e9.b;_3ee=(_3fa&&_3fa=="axis")?180:0;_3ed.y=dim.height-_3e9.b+_3ef-(_3ee?_400:0);}else{_3ec.y=stop.y=_3e9.t;_3ee=(_3fa&&_3fa=="away")?180:0;_3ed.y=_3e9.t-_3ef+(_3ee?0:_400);_3f1.y=-1;_3f2.y=-_3f2.y;switch(_3f4){case "start":_3f4="end";break;case "end":_3f4="start";break;case "middle":_3f3.y-=size;break;}}}this.cleanGroup();try{var s=this.group,c=this.scaler,t=this.ticks,_401,f=lin.getTransformerFromModel(this.scaler),_402=!_3ee&&!_3eb&&this.opt.htmlLabels&&!dojo.isIE&&!dojo.isOpera?"html":"gfx",dx=_3f1.x*_3fb.length,dy=_3f1.y*_3fb.length;s.createLine({x1:_3ec.x,y1:_3ec.y,x2:stop.x,y2:stop.y}).setStroke(_3ff);if(o.title){var _403=dc.axis2d.common.createText[_402](this.chart,s,_3ed.x,_3ed.y,"middle",o.title,_3f6,_3f8);if(_402=="html"){this.htmlElements.push(_403);}else{_403.setTransform(g.matrix.rotategAt(_3ee,_3ed.x,_3ed.y));}}dojo.forEach(t.major,function(tick){var _404=f(tick.value),elem,x=_3ec.x+_3f0.x*_404,y=_3ec.y+_3f0.y*_404;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3fb);if(tick.label){var _405=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_3f5,o.maxLabelCharCount):{text:tick.label,truncated:false};_405=o.maxLabelSize?this.getTextWithLimitLength(_405.text,_3f5,o.maxLabelSize,_405.truncated):_405;elem=dc.axis2d.common.createText[_402](this.chart,s,x+dx+_3f2.x+(_3eb?0:_3f3.x),y+dy+_3f2.y+(_3eb?0:_3f3.y),_3f4,_405.text,_3f5,_3f7);_405.truncated&&this.labelTooltip(elem,this.chart,tick.label,_405.text,_3f5,_402);if(_402=="html"){this.htmlElements.push(elem);}else{if(_3eb){elem.setTransform([{dx:_3f3.x,dy:_3f3.y},g.matrix.rotategAt(_3eb,x+dx+_3f2.x,y+dy+_3f2.y)]);}}}},this);dx=_3f1.x*_3fc.length;dy=_3f1.y*_3fc.length;_401=c.minMinorStep<=c.minor.tick*c.bounds.scale;dojo.forEach(t.minor,function(tick){var _406=f(tick.value),elem,x=_3ec.x+_3f0.x*_406,y=_3ec.y+_3f0.y*_406;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3fc);if(_401&&tick.label){var _407=o.maxLabelCharCount?this.getTextWithLimitCharCount(tick.label,_3f5,o.maxLabelCharCount):{text:tick.label,truncated:false};_407=o.maxLabelSize?this.getTextWithLimitLength(_407.text,_3f5,o.maxLabelSize,_407.truncated):_407;elem=dc.axis2d.common.createText[_402](this.chart,s,x+dx+_3f2.x+(_3eb?0:_3f3.x),y+dy+_3f2.y+(_3eb?0:_3f3.y),_3f4,_407.text,_3f5,_3f7);_407.truncated&&this.labelTooltip(elem,this.chart,tick.label,_407.text,_3f5,_402);if(_402=="html"){this.htmlElements.push(elem);}else{if(_3eb){elem.setTransform([{dx:_3f3.x,dy:_3f3.y},g.matrix.rotategAt(_3eb,x+dx+_3f2.x,y+dy+_3f2.y)]);}}}},this);dx=_3f1.x*_3fd.length;dy=_3f1.y*_3fd.length;dojo.forEach(t.micro,function(tick){var _408=f(tick.value),elem,x=_3ec.x+_3f0.x*_408,y=_3ec.y+_3f0.y*_408;s.createLine({x1:x,y1:y,x2:x+dx,y2:y+dy}).setStroke(_3fd);},this);}catch(e){}this.dirty=false;return this;},labelTooltip:function(elem,_409,_40a,_40b,font,_40c){if(!dijit||!dijit.Tooltip){return;}var _40d={type:"rect"},_40e=["above","below"],_40f=dojox.gfx._base._getTextBox(_40b,{font:font}).w||0;fontHeight=font?g.normalizedLength(g.splitFontString(font).size):0;if(_40c=="html"){dojo.mixin(_40d,dojo.coords(elem.firstChild,true));_40d.width=Math.ceil(_40f);_40d.height=Math.ceil(fontHeight);this._events.push({shape:dojo,handle:dojo.connect(elem.firstChild,"onmouseover",this,function(e){dijit.showTooltip(_40a,_40d,_40e);})});this._events.push({shape:dojo,handle:dojo.connect(elem.firstChild,"onmouseout",this,function(e){dijit.hideTooltip(_40d);})});}else{var shp=elem.getShape(),lt=dojo.coords(_409.node,true);_40d=dojo.mixin(_40d,{x:shp.x-_40f/2,y:shp.y});_40d.x+=lt.x;_40d.y+=lt.y;_40d.x=Math.round(_40d.x);_40d.y=Math.round(_40d.y);_40d.width=Math.ceil(_40f);_40d.height=Math.ceil(fontHeight);this._events.push({shape:elem,handle:elem.connect("onmouseenter",this,function(e){dijit.showTooltip(_40a,_40d,_40e);})});this._events.push({shape:elem,handle:elem.connect("onmouseleave",this,function(e){dijit.hideTooltip(_40d);})});}}});})();}if(!dojo._hasResource["dojox.charting.plot2d.common"]){dojo._hasResource["dojox.charting.plot2d.common"]=true;dojo.provide("dojox.charting.plot2d.common");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common;dojo.mixin(dojox.charting.plot2d.common,{makeStroke:function(_410){if(!_410){return _410;}if(typeof _410=="string"||_410 instanceof dojo.Color){_410={color:_410};}return dojox.gfx.makeParameters(dojox.gfx.defaultStroke,_410);},augmentColor:function(_411,_412){var t=new dojo.Color(_411),c=new dojo.Color(_412);c.a=t.a;return c;},augmentStroke:function(_413,_414){var s=dc.makeStroke(_413);if(s){s.color=dc.augmentColor(s.color,_414);}return s;},augmentFill:function(fill,_415){var fc,c=new dojo.Color(_415);if(typeof fill=="string"||fill instanceof dojo.Color){return dc.augmentColor(fill,_415);}return fill;},defaultStats:{vmin:Number.POSITIVE_INFINITY,vmax:Number.NEGATIVE_INFINITY,hmin:Number.POSITIVE_INFINITY,hmax:Number.NEGATIVE_INFINITY},collectSimpleStats:function(_416){var _417=dojo.delegate(dc.defaultStats);for(var i=0;i<_416.length;++i){var run=_416[i];for(var j=0;j<run.data.length;j++){if(run.data[j]!==null){if(typeof run.data[j]=="number"){var _418=_417.vmin,_419=_417.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){if(val!==null){var x=i+1,y=val;if(isNaN(y)){y=0;}_417.hmin=Math.min(_417.hmin,x);_417.hmax=Math.max(_417.hmax,x);_417.vmin=Math.min(_417.vmin,y);_417.vmax=Math.max(_417.vmax,y);}});}if("ymin" in run){_417.vmin=Math.min(_418,run.ymin);}if("ymax" in run){_417.vmax=Math.max(_419,run.ymax);}}else{var _41a=_417.hmin,_41b=_417.hmax,_418=_417.vmin,_419=_417.vmax;if(!("xmin" in run)||!("xmax" in run)||!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,i){if(val!==null){var x="x" in val?val.x:i+1,y=val.y;if(isNaN(x)){x=0;}if(isNaN(y)){y=0;}_417.hmin=Math.min(_417.hmin,x);_417.hmax=Math.max(_417.hmax,x);_417.vmin=Math.min(_417.vmin,y);_417.vmax=Math.max(_417.vmax,y);}});}if("xmin" in run){_417.hmin=Math.min(_41a,run.xmin);}if("xmax" in run){_417.hmax=Math.max(_41b,run.xmax);}if("ymin" in run){_417.vmin=Math.min(_418,run.ymin);}if("ymax" in run){_417.vmax=Math.max(_419,run.ymax);}}break;}}}return _417;},calculateBarSize:function(_41c,opt,_41d){if(!_41d){_41d=1;}var gap=opt.gap,size=(_41c-2*gap)/_41d;if("minBarSize" in opt){size=Math.max(size,opt.minBarSize);}if("maxBarSize" in opt){size=Math.min(size,opt.maxBarSize);}size=Math.max(size,1);gap=(_41c-size*_41d)/2;return {size:size,gap:gap};},collectStackedStats:function(_41e){var _41f=dojo.clone(dc.defaultStats);if(_41e.length){_41f.hmin=Math.min(_41f.hmin,1);_41f.hmax=df.foldl(_41e,"seed, run -> Math.max(seed, run.data.length)",_41f.hmax);for(var i=0;i<_41f.hmax;++i){var v=_41e[0].data[i];v=v&&(typeof v=="number"?v:v.y);if(isNaN(v)){v=0;}_41f.vmin=Math.min(_41f.vmin,v);for(var j=1;j<_41e.length;++j){var t=_41e[j].data[i];t=t&&(typeof t=="number"?t:t.y);if(isNaN(t)){t=0;}v+=t;}_41f.vmax=Math.max(_41f.vmax,v);}}return _41f;},curve:function(a,_420){var arr=a.slice(0);if(_420=="x"){arr[arr.length]=arr[0];}var p=dojo.map(arr,function(item,i){if(i==0){return "M"+item.x+","+item.y;}if(!isNaN(_420)){var dx=item.x-arr[i-1].x,dy=arr[i-1].y;return "C"+(item.x-(_420-1)*(dx/_420))+","+dy+" "+(item.x-(dx/_420))+","+item.y+" "+item.x+","+item.y;}else{if(_420=="X"||_420=="x"||_420=="S"){var p0,p1=arr[i-1],p2=arr[i],p3;var bz1x,bz1y,bz2x,bz2y;var f=1/6;if(i==1){if(_420=="x"){p0=arr[arr.length-2];}else{p0=p1;}f=1/3;}else{p0=arr[i-2];}if(i==(arr.length-1)){if(_420=="x"){p3=arr[1];}else{p3=p2;}f=1/3;}else{p3=arr[i+1];}var p1p2=Math.sqrt((p2.x-p1.x)*(p2.x-p1.x)+(p2.y-p1.y)*(p2.y-p1.y));var p0p2=Math.sqrt((p2.x-p0.x)*(p2.x-p0.x)+(p2.y-p0.y)*(p2.y-p0.y));var p1p3=Math.sqrt((p3.x-p1.x)*(p3.x-p1.x)+(p3.y-p1.y)*(p3.y-p1.y));var _421=p0p2*f;var _422=p1p3*f;if(_421>p1p2/2&&_422>p1p2/2){_421=p1p2/2;_422=p1p2/2;}else{if(_421>p1p2/2){_421=p1p2/2;_422=p1p2/2*p1p3/p0p2;}else{if(_422>p1p2/2){_422=p1p2/2;_421=p1p2/2*p0p2/p1p3;}}}if(_420=="S"){if(p0==p1){_421=0;}if(p2==p3){_422=0;}}bz1x=p1.x+_421*(p2.x-p0.x)/p0p2;bz1y=p1.y+_421*(p2.y-p0.y)/p0p2;bz2x=p2.x-_422*(p3.x-p1.x)/p1p3;bz2y=p2.y-_422*(p3.y-p1.y)/p1p3;}}return "C"+(bz1x+","+bz1y+" "+bz2x+","+bz2y+" "+p2.x+","+p2.y);});return p.join(" ");},getLabel:function(_423,_424,_425){if(dojo.number){return (_424?dojo.number.format(_423,{places:_425}):dojo.number.format(_423))||"";}return _424?_423.toFixed(_425):_423.toString();}});})();}if(!dojo._hasResource["dojox.charting.scaler.primitive"]){dojo._hasResource["dojox.charting.scaler.primitive"]=true;dojo.provide("dojox.charting.scaler.primitive");dojox.charting.scaler.primitive={buildScaler:function(min,max,span,_426){if(min==max){min-=0.5;max+=0.5;}return {bounds:{lower:min,upper:max,from:min,to:max,scale:span/(max-min),span:span},scaler:dojox.charting.scaler.primitive};},buildTicks:function(_427,_428){return {major:[],minor:[],micro:[]};},getTransformerFromModel:function(_429){var _42a=_429.bounds.from,_42b=_429.bounds.scale;return function(x){return (x-_42a)*_42b;};},getTransformerFromPlot:function(_42c){var _42d=_42c.bounds.from,_42e=_42c.bounds.scale;return function(x){return x/_42e+_42d;};}};}if(!dojo._hasResource["dojox.charting.plot2d._PlotEvents"]){dojo._hasResource["dojox.charting.plot2d._PlotEvents"]=true;dojo.provide("dojox.charting.plot2d._PlotEvents");dojo.declare("dojox.charting.plot2d._PlotEvents",null,{constructor:function(){this._shapeEvents=[];this._eventSeries={};},destroy:function(){this.resetEvents();this.inherited(arguments);},plotEvent:function(o){},raiseEvent:function(o){this.plotEvent(o);var t=dojo.delegate(o);t.originalEvent=o.type;t.originalPlot=o.plot;t.type="onindirect";dojo.forEach(this.chart.stack,function(plot){if(plot!==this&&plot.plotEvent){t.plot=plot;plot.plotEvent(t);}},this);},connect:function(_42f,_430){this.dirty=true;return dojo.connect(this,"plotEvent",_42f,_430);},events:function(){var ls=this.plotEvent._listeners;if(!ls||!ls.length){return false;}for(var i in ls){if(!(i in Array.prototype)){return true;}}return false;},resetEvents:function(){if(this._shapeEvents.length){dojo.forEach(this._shapeEvents,function(item){item.shape.disconnect(item.handle);});this._shapeEvents=[];}this.raiseEvent({type:"onplotreset",plot:this});},_connectSingleEvent:function(o,_431){this._shapeEvents.push({shape:o.eventMask,handle:o.eventMask.connect(_431,this,function(e){o.type=_431;o.event=e;this.raiseEvent(o);o.event=null;})});},_connectEvents:function(o){if(o){o.chart=this.chart;o.plot=this;o.hAxis=this.hAxis||null;o.vAxis=this.vAxis||null;o.eventMask=o.eventMask||o.shape;this._connectSingleEvent(o,"onmouseover");this._connectSingleEvent(o,"onmouseout");this._connectSingleEvent(o,"onclick");}},_reconnectEvents:function(_432){var a=this._eventSeries[_432];if(a){dojo.forEach(a,this._connectEvents,this);}},fireEvent:function(_433,_434,_435,_436){var s=this._eventSeries[_433];if(s&&s.length&&_435<s.length){var o=s[_435];o.type=_434;o.event=_436||null;this.raiseEvent(o);o.event=null;}}});}if(!dojo._hasResource["dojox.charting.plot2d.Base"]){dojo._hasResource["dojox.charting.plot2d.Base"]=true;dojo.provide("dojox.charting.plot2d.Base");dojo.declare("dojox.charting.plot2d.Base",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{constructor:function(_437,_438){this.zoom=null,this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};},clear:function(){this.series=[];this._hAxis=null;this._vAxis=null;this.dirty=true;return this;},setAxis:function(axis){if(axis){this[axis.vertical?"_vAxis":"_hAxis"]=axis;}return this;},addSeries:function(run){this.series.push(run);return this;},getSeriesStats:function(){return dojox.charting.plot2d.common.collectSimpleStats(this.series);},calculateAxes:function(dim){this.initializeScalers(dim,this.getSeriesStats());return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},isDataDirty:function(){return dojo.some(this.series,function(item){return item.dirty;});},performZoom:function(dim,_439){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_43a=dim.height-_439.b,_43b=this._hScaler.bounds,_43c=(_43b.from-_43b.lower)*_43b.scale,_43d=this._vScaler.bounds,_43e=(_43d.from-_43d.lower)*_43d.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_43c)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_43e-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),shape=this.group,anim=dojox.gfx.fx.animateTransform(dojo.delegate({shape:shape,duration:1200,transform:[{name:"translate",start:[0,0],end:[_439.l*(1-rHScale),_43a*(1-rVScale)]},{name:"scale",start:[1,1],end:[rHScale,rVScale]},{name:"original"},{name:"translate",start:[0,0],end:[rXOffset,rYOffset]}]},this.zoom));dojo.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_43c,yoffset:_43e});this.zoomQueue.push(anim);dojo.connect(anim,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();if(this.zoomQueue.length>0){this.zoomQueue[0].play();}});if(this.zoomQueue.length==1){this.zoomQueue[0].play();}return this;},render:function(dim,_43f){return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_440){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_440.hmin,_440.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_440.hmin,_440.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_440.vmin,_440.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_440.vmin,_440.vmax,dim.height);}return this;}});}if(!dojo._hasResource["dojox.charting.plot2d.Default"]){dojo._hasResource["dojox.charting.plot2d.Default"]=true;dojo.provide("dojox.charting.plot2d.Default");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_441=df.lambda("item.purgeGroup()");var _442=1200;dojo.declare("dojox.charting.plot2d.Default",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",lines:true,areas:false,markers:false,tension:"",animate:false},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_443,_444){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_444);du.updateWithPattern(this.opt,_444,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_445){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_445);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_441);this._eventSeries={};this.cleanGroup();this.group.setTransform(null);var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_446,_447,_448,_449=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}var _44a=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_44b=[],_44c=[],rseg=null,_44d,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_44e=this._eventSeries[run.name]=new Array(run.data.length);for(var j=0;j<run.data.length;j++){if(run.data[j]!=null){if(!rseg){rseg=[];_44c.push(j);_44b.push(rseg);}rseg.push(run.data[j]);}else{rseg=null;}}for(var seg=0;seg<_44b.length;seg++){if(typeof _44b[seg][0]=="number"){_44d=dojo.map(_44b[seg],function(v,i){return {x:ht(i+_44c[seg]+1)+_445.l,y:dim.height-_445.b-vt(v)};},this);}else{_44d=dojo.map(_44b[seg],function(v,i){return {x:ht(v.x)+_445.l,y:dim.height-_445.b-vt(v.y)};},this);}var _44f=this.opt.tension?dc.curve(_44d,this.opt.tension):"";if(this.opt.areas&&_44d.length>1){var fill=_44a.series.fill;var _450=dojo.clone(_44d);if(this.opt.tension){var _451="L"+_450[_450.length-1].x+","+(dim.height-_445.b)+" L"+_450[0].x+","+(dim.height-_445.b)+" L"+_450[0].x+","+_450[0].y;run.dyn.fill=s.createPath(_44f+" "+_451).setFill(fill).getFill();}else{_450.push({x:_44d[_44d.length-1].x,y:dim.height-_445.b});_450.push({x:_44d[0].x,y:dim.height-_445.b});_450.push(_44d[0]);run.dyn.fill=s.createPolyline(_450).setFill(fill).getFill();}}if(this.opt.lines||this.opt.markers){_446=_44a.series.stroke;if(_44a.series.outline){_447=run.dyn.outline=dc.makeStroke(_44a.series.outline);_447.width=2*_447.width+_446.width;}}if(this.opt.markers){run.dyn.marker=_44a.symbol;}var _452=null,_453=null,_454=null;if(_446&&_44a.series.shadow&&_44d.length>1){var _455=_44a.series.shadow,_456=dojo.map(_44d,function(c){return {x:c.x+_455.dx,y:c.y+_455.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_456,this.opt.tension)).setStroke(_455).getStroke();}else{run.dyn.shadow=s.createPolyline(_456).setStroke(_455).getStroke();}}if(this.opt.markers&&_44a.marker.shadow){_455=_44a.marker.shadow;_454=dojo.map(_456,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_44a.symbol).setStroke(_455).setFill(_455.color);},this);}}if(this.opt.lines&&_44d.length>1){if(_447){if(this.opt.tension){run.dyn.outline=s.createPath(_44f).setStroke(_447).getStroke();}else{run.dyn.outline=s.createPolyline(_44d).setStroke(_447).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_44f).setStroke(_446).getStroke();}else{run.dyn.stroke=s.createPolyline(_44d).setStroke(_446).getStroke();}}if(this.opt.markers){_452=new Array(_44d.length);_453=new Array(_44d.length);_447=null;if(_44a.marker.outline){_447=dc.makeStroke(_44a.marker.outline);_447.width=2*_447.width+(_44a.marker.stroke?_44a.marker.stroke.width:0);}dojo.forEach(_44d,function(c,i){var path="M"+c.x+" "+c.y+" "+_44a.symbol;if(_447){_453[i]=s.createPath(path).setStroke(_447);}_452[i]=s.createPath(path).setStroke(_44a.marker.stroke).setFill(_44a.marker.fill);},this);run.dyn.markerFill=_44a.marker.fill;run.dyn.markerStroke=_44a.marker.stroke;if(_449){dojo.forEach(_452,function(s,i){var o={element:"marker",index:i+_44c[seg],run:run,shape:s,outline:_453[i]||null,shadow:_454&&_454[i]||null,cx:_44d[i].x,cy:_44d[i].y};if(typeof _44b[seg][0]=="number"){o.x=i+_44c[seg]+1;o.y=_44b[seg][i];}else{o.x=_44b[seg][i].x;o.y=_44b[seg][i].y;}this._connectEvents(o);_44e[i+_44c[seg]]=o;},this);}else{delete this._eventSeries[run.name];}}}run.dirty=false;}if(this.animate){var _457=this.group;dojox.gfx.fx.animateTransform(dojo.delegate({shape:_457,duration:_442,transform:[{name:"translate",start:[0,dim.height-_445.b],end:[0,0]},{name:"scale",start:[1,0],end:[1,1]},{name:"original"}]},this.animate)).play();}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Lines"]){dojo._hasResource["dojox.charting.plot2d.Lines"]=true;dojo.provide("dojox.charting.plot2d.Lines");dojo.declare("dojox.charting.plot2d.Lines",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Areas"]){dojo._hasResource["dojox.charting.plot2d.Areas"]=true;dojo.provide("dojox.charting.plot2d.Areas");dojo.declare("dojox.charting.plot2d.Areas",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Markers"]){dojo._hasResource["dojox.charting.plot2d.Markers"]=true;dojo.provide("dojox.charting.plot2d.Markers");dojo.declare("dojox.charting.plot2d.Markers",dojox.charting.plot2d.Default,{constructor:function(){this.opt.markers=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.MarkersOnly"]){dojo._hasResource["dojox.charting.plot2d.MarkersOnly"]=true;dojo.provide("dojox.charting.plot2d.MarkersOnly");dojo.declare("dojox.charting.plot2d.MarkersOnly",dojox.charting.plot2d.Default,{constructor:function(){this.opt.lines=false;this.opt.markers=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Scatter"]){dojo._hasResource["dojox.charting.plot2d.Scatter"]=true;dojo.provide("dojox.charting.plot2d.Scatter");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_458=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Scatter",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",shadows:null,animate:null},optionalParams:{markerStroke:{},markerOutline:{},markerShadow:{},markerFill:{},markerFont:"",markerFontColor:""},constructor:function(_459,_45a){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_45a);du.updateWithPattern(this.opt,_45a,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_45b){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_45b);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_458);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_45c=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}var _45d=t.next("marker",[this.opt,run]),s=run.group,_45e,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);if(typeof run.data[0]=="number"){_45e=dojo.map(run.data,function(v,i){return {x:ht(i+1)+_45b.l,y:dim.height-_45b.b-vt(v)};},this);}else{_45e=dojo.map(run.data,function(v,i){return {x:ht(v.x)+_45b.l,y:dim.height-_45b.b-vt(v.y)};},this);}var _45f=new Array(_45e.length),_460=new Array(_45e.length),_461=new Array(_45e.length);dojo.forEach(_45e,function(c,i){var _462=typeof run.data[i]=="number"?t.post(_45d,"marker"):t.addMixin(_45d,"marker",run.data[i],true),path="M"+c.x+" "+c.y+" "+_462.symbol;if(_462.marker.shadow){_45f[i]=s.createPath("M"+(c.x+_462.marker.shadow.dx)+" "+(c.y+_462.marker.shadow.dy)+" "+_462.symbol).setStroke(_462.marker.shadow).setFill(_462.marker.shadow.color);if(this.animate){this._animateScatter(_45f[i],dim.height-_45b.b);}}if(_462.marker.outline){var _463=dc.makeStroke(_462.marker.outline);_463.width=2*_463.width+_462.marker.stroke.width;_461[i]=s.createPath(path).setStroke(_463);if(this.animate){this._animateScatter(_461[i],dim.height-_45b.b);}}var _464=dc.makeStroke(_462.marker.stroke),fill=this._plotFill(_462.marker.fill,dim,_45b);if(fill&&(fill.type==="linear"||fill.type=="radial")){var _465=dojox.gfx.gradutils.getColor(fill,{x:c.x,y:c.y});if(_464){_464.color=_465;}_460[i]=s.createPath(path).setStroke(_464).setFill(_465);}else{_460[i]=s.createPath(path).setStroke(_464).setFill(fill);}if(this.animate){this._animateScatter(_460[i],dim.height-_45b.b);}},this);if(_460.length){run.dyn.stroke=_460[_460.length-1].getStroke();run.dyn.fill=_460[_460.length-1].getFill();}if(_45c){var _466=new Array(_460.length);dojo.forEach(_460,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_461&&_461[i]||null,shadow:_45f&&_45f[i]||null,cx:_45e[i].x,cy:_45e[i].y};if(typeof run.data[0]=="number"){o.x=i+1;o.y=run.data[i];}else{o.x=run.data[i].x;o.y=run.data[i].y;}this._connectEvents(o);_466[i]=o;},this);this._eventSeries[run.name]=_466;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateScatter:function(_467,_468){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_467,duration:1200,transform:[{name:"translate",start:[0,_468],end:[0,0]},{name:"scale",start:[0,0],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.lang.functional.sequence"]){dojo._hasResource["dojox.lang.functional.sequence"]=true;dojo.provide("dojox.lang.functional.sequence");(function(){var d=dojo,df=dojox.lang.functional;d.mixin(df,{repeat:function(n,f,z,o){o=o||d.global;f=df.lambda(f);var t=new Array(n),i=1;t[0]=z;for(;i<n;t[i]=z=f.call(o,z),++i){}return t;},until:function(pr,f,z,o){o=o||d.global;f=df.lambda(f);pr=df.lambda(pr);var t=[];for(;!pr.call(o,z);t.push(z),z=f.call(o,z)){}return t;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Stacked"]){dojo._hasResource["dojox.charting.plot2d.Stacked"]=true;dojo.provide("dojox.charting.plot2d.Stacked");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_469=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Stacked",dojox.charting.plot2d.Default,{getSeriesStats:function(){var _46a=dc.collectStackedStats(this.series);this._maxRunLength=_46a.hmax;return _46a;},render:function(dim,_46b){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_46b);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_469);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,_46c=this.events(),ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler);for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _46d=t.next(this.opt.areas?"area":"line",[this.opt,run],true),s=run.group,_46e,_46f=dojo.map(acc,function(v,i){return {x:ht(i+1)+_46b.l,y:dim.height-_46b.b-vt(v)};},this);var _470=this.opt.tension?dc.curve(_46f,this.opt.tension):"";if(this.opt.areas){var _471=dojo.clone(_46f);if(this.opt.tension){var p=dc.curve(_471,this.opt.tension);p+=" L"+_46f[_46f.length-1].x+","+(dim.height-_46b.b)+" L"+_46f[0].x+","+(dim.height-_46b.b)+" L"+_46f[0].x+","+_46f[0].y;run.dyn.fill=s.createPath(p).setFill(_46d.series.fill).getFill();}else{_471.push({x:_46f[_46f.length-1].x,y:dim.height-_46b.b});_471.push({x:_46f[0].x,y:dim.height-_46b.b});_471.push(_46f[0]);run.dyn.fill=s.createPolyline(_471).setFill(_46d.series.fill).getFill();}}if(this.opt.lines||this.opt.markers){if(_46d.series.outline){_46e=dc.makeStroke(_46d.series.outline);_46e.width=2*_46e.width+_46d.series.stroke.width;}}if(this.opt.markers){run.dyn.marker=_46d.symbol;}var _472,_473,_474;if(_46d.series.shadow&&_46d.series.stroke){var _475=_46d.series.shadow,_476=dojo.map(_46f,function(c){return {x:c.x+_475.dx,y:c.y+_475.dy};});if(this.opt.lines){if(this.opt.tension){run.dyn.shadow=s.createPath(dc.curve(_476,this.opt.tension)).setStroke(_475).getStroke();}else{run.dyn.shadow=s.createPolyline(_476).setStroke(_475).getStroke();}}if(this.opt.markers){_475=_46d.marker.shadow;_474=dojo.map(_476,function(c){return s.createPath("M"+c.x+" "+c.y+" "+_46d.symbol).setStroke(_475).setFill(_475.color);},this);}}if(this.opt.lines){if(_46e){if(this.opt.tension){run.dyn.outline=s.createPath(_470).setStroke(_46e).getStroke();}else{run.dyn.outline=s.createPolyline(_46f).setStroke(_46e).getStroke();}}if(this.opt.tension){run.dyn.stroke=s.createPath(_470).setStroke(_46d.series.stroke).getStroke();}else{run.dyn.stroke=s.createPolyline(_46f).setStroke(_46d.series.stroke).getStroke();}}if(this.opt.markers){_472=new Array(_46f.length);_473=new Array(_46f.length);_46e=null;if(_46d.marker.outline){_46e=dc.makeStroke(_46d.marker.outline);_46e.width=2*_46e.width+(_46d.marker.stroke?_46d.marker.stroke.width:0);}dojo.forEach(_46f,function(c,i){var path="M"+c.x+" "+c.y+" "+_46d.symbol;if(_46e){_473[i]=s.createPath(path).setStroke(_46e);}_472[i]=s.createPath(path).setStroke(_46d.marker.stroke).setFill(_46d.marker.fill);},this);if(_46c){var _477=new Array(_472.length);dojo.forEach(_472,function(s,i){var o={element:"marker",index:i,run:run,shape:s,outline:_473[i]||null,shadow:_474&&_474[i]||null,cx:_46f[i].x,cy:_46f[i].y,x:i+1,y:run.data[i]};this._connectEvents(o);_477[i]=o;},this);this._eventSeries[run.name]=_477;}else{delete this._eventSeries[run.name];}}run.dirty=false;for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedLines"]){dojo._hasResource["dojox.charting.plot2d.StackedLines"]=true;dojo.provide("dojox.charting.plot2d.StackedLines");dojo.declare("dojox.charting.plot2d.StackedLines",dojox.charting.plot2d.Stacked,{constructor:function(){this.opt.lines=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.StackedAreas"]){dojo._hasResource["dojox.charting.plot2d.StackedAreas"]=true;dojo.provide("dojox.charting.plot2d.StackedAreas");dojo.declare("dojox.charting.plot2d.StackedAreas",dojox.charting.plot2d.Stacked,{constructor:function(){this.opt.lines=true;this.opt.areas=true;}});}if(!dojo._hasResource["dojox.charting.plot2d.Columns"]){dojo._hasResource["dojox.charting.plot2d.Columns"]=true;dojo.provide("dojox.charting.plot2d.Columns");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_478=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Columns",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_479,_47a){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_47a);du.updateWithPattern(this.opt,_47a,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _47b=dc.collectSimpleStats(this.series);_47b.hmin-=0.5;_47b.hmax+=0.5;return _47b;},render:function(dim,_47c){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_47c);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_478);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_47d,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_47e=Math.max(0,this._vScaler.bounds.lower),_47f=vt(_47e),_480=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_47d=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _481=t.next("column",[this.opt,run]),s=run.group,_482=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _483=run.data[j];if(_483!==null){var v=typeof _483=="number"?_483:_483.y,vv=vt(v),_484=vv-_47f,h=Math.abs(_484),_485=typeof _483!="number"?t.addMixin(_481,"column",_483,true):t.post(_481,"column");if(_47d>=1&&h>=1){var rect={x:_47c.l+ht(j+0.5)+gap,y:dim.height-_47c.b-(v>_47e?vv:_47f),width:_47d,height:h};var _486=this._plotFill(_485.series.fill,dim,_47c);_486=this._shapeFill(_486,rect);var _487=s.createRect(rect).setFill(_486).setStroke(_485.series.stroke);run.dyn.fill=_487.getFill();run.dyn.stroke=_487.getStroke();if(_480){var o={element:"column",index:j,run:run,shape:_487,x:j+0.5,y:v};this._connectEvents(o);_482[j]=o;}if(this.animate){this._animateColumn(_487,dim.height-_47c.b-_47f,h);}}}}this._eventSeries[run.name]=_482;run.dirty=false;}this.dirty=false;return this;},_animateColumn:function(_488,_489,_48a){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_488,duration:1200,transform:[{name:"translate",start:[0,_489-(_489/_48a)],end:[0,0]},{name:"scale",start:[1,1/_48a],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedColumns"]){dojo._hasResource["dojox.charting.plot2d.StackedColumns"]=true;dojo.provide("dojox.charting.plot2d.StackedColumns");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_48b=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedColumns",dojox.charting.plot2d.Columns,{getSeriesStats:function(){var _48c=dc.collectStackedStats(this.series);this._maxRunLength=_48c.hmax;_48c.hmin-=0.5;_48c.hmax+=0.5;return _48c;},render:function(dim,_48d){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var _48e=run.data[j];if(_48e!==null){var v=typeof _48e=="number"?_48e:_48e.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_48d);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_48b);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_48f,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_490=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_48f=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _491=t.next("column",[this.opt,run]),s=run.group,_492=new Array(acc.length);for(var j=0;j<acc.length;++j){var _48e=run.data[j];if(_48e!==null){var v=acc[j],_493=vt(v),_494=typeof _48e!="number"?t.addMixin(_491,"column",_48e,true):t.post(_491,"column");if(_48f>=1&&_493>=1){var rect={x:_48d.l+ht(j+0.5)+gap,y:dim.height-_48d.b-vt(v),width:_48f,height:_493};var _495=this._plotFill(_494.series.fill,dim,_48d);_495=this._shapeFill(_495,rect);var _496=s.createRect(rect).setFill(_495).setStroke(_494.series.stroke);run.dyn.fill=_496.getFill();run.dyn.stroke=_496.getStroke();if(_490){var o={element:"column",index:j,run:run,shape:_496,x:j+0.5,y:v};this._connectEvents(o);_492[j]=o;}if(this.animate){this._animateColumn(_496,dim.height-_48d.b,_493);}}}}this._eventSeries[run.name]=_492;run.dirty=false;for(var j=0;j<run.data.length;++j){var _48e=run.data[j];if(_48e!==null){var v=typeof _48e=="number"?_48e:_48e.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]){dojo._hasResource["dojox.charting.plot2d.ClusteredColumns"]=true;dojo.provide("dojox.charting.plot2d.ClusteredColumns");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_497=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredColumns",dojox.charting.plot2d.Columns,{render:function(dim,_498){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_498);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_497);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_499,_49a,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_49b=Math.max(0,this._vScaler.bounds.lower),_49c=vt(_49b),_49d=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_499=_49a=f.size;for(var i=0;i<this.series.length;++i){var run=this.series[i],_49e=_49a*i;if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _49f=t.next("column",[this.opt,run]),s=run.group,_4a0=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _4a1=run.data[j];if(_4a1!==null){var v=typeof _4a1=="number"?_4a1:_4a1.y,vv=vt(v),_4a2=vv-_49c,h=Math.abs(_4a2),_4a3=typeof _4a1!="number"?t.addMixin(_49f,"column",_4a1,true):t.post(_49f,"column");if(_499>=1&&h>=1){var rect={x:_498.l+ht(j+0.5)+gap+_49e,y:dim.height-_498.b-(v>_49b?vv:_49c),width:_499,height:h};var _4a4=this._plotFill(_4a3.series.fill,dim,_498);_4a4=this._shapeFill(_4a4,rect);var _4a5=s.createRect(rect).setFill(_4a4).setStroke(_4a3.series.stroke);run.dyn.fill=_4a5.getFill();run.dyn.stroke=_4a5.getStroke();if(_49d){var o={element:"column",index:j,run:run,shape:_4a5,x:j+0.5,y:v};this._connectEvents(o);_4a0[j]=o;}if(this.animate){this._animateColumn(_4a5,dim.height-_498.b-_49c,h);}}}}this._eventSeries[run.name]=_4a0;run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Bars"]){dojo._hasResource["dojox.charting.plot2d.Bars"]=true;dojo.provide("dojox.charting.plot2d.Bars");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_4a6=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bars",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:0,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_4a7,_4a8){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4a8);du.updateWithPattern(this.opt,_4a8,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},getSeriesStats:function(){var _4a9=dc.collectSimpleStats(this.series),t;_4a9.hmin-=0.5;_4a9.hmax+=0.5;t=_4a9.hmin,_4a9.hmin=_4a9.vmin,_4a9.vmin=t;t=_4a9.hmax,_4a9.hmax=_4a9.vmax,_4a9.vmax=t;return _4a9;},render:function(dim,_4aa){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4aa);}this.dirty=this.isDirty();this.resetEvents();if(this.dirty){dojo.forEach(this.series,_4a6);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4ab,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4ac=Math.max(0,this._hScaler.bounds.lower),_4ad=ht(_4ac),_4ae=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_4ab=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4af=t.next("bar",[this.opt,run]),s=run.group,_4b0=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _4b1=run.data[j];if(_4b1!==null){var v=typeof _4b1=="number"?_4b1:_4b1.y,hv=ht(v),_4b2=hv-_4ad,w=Math.abs(_4b2),_4b3=typeof _4b1!="number"?t.addMixin(_4af,"bar",_4b1,true):t.post(_4af,"bar");if(w>=1&&_4ab>=1){var rect={x:_4aa.l+(v<_4ac?hv:_4ad),y:dim.height-_4aa.b-vt(j+1.5)+gap,width:w,height:_4ab};var _4b4=this._plotFill(_4b3.series.fill,dim,_4aa);_4b4=this._shapeFill(_4b4,rect);var _4b5=s.createRect(rect).setFill(_4b4).setStroke(_4b3.series.stroke);run.dyn.fill=_4b5.getFill();run.dyn.stroke=_4b5.getStroke();if(_4ae){var o={element:"bar",index:j,run:run,shape:_4b5,x:v,y:j+1.5};this._connectEvents(o);_4b0[j]=o;}if(this.animate){this._animateBar(_4b5,_4aa.l+_4ad,-w);}}}}this._eventSeries[run.name]=_4b0;run.dirty=false;}this.dirty=false;return this;},_animateBar:function(_4b6,_4b7,_4b8){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_4b6,duration:1200,transform:[{name:"translate",start:[_4b7-(_4b7/_4b8),0],end:[0,0]},{name:"scale",start:[1/_4b8,1],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.StackedBars"]){dojo._hasResource["dojox.charting.plot2d.StackedBars"]=true;dojo.provide("dojox.charting.plot2d.StackedBars");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_4b9=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.StackedBars",dojox.charting.plot2d.Bars,{getSeriesStats:function(){var _4ba=dc.collectStackedStats(this.series),t;this._maxRunLength=_4ba.hmax;_4ba.hmin-=0.5;_4ba.hmax+=0.5;t=_4ba.hmin,_4ba.hmin=_4ba.vmin,_4ba.vmin=t;t=_4ba.hmax,_4ba.hmax=_4ba.vmax,_4ba.vmax=t;return _4ba;},render:function(dim,_4bb){if(this._maxRunLength<=0){return this;}var acc=df.repeat(this._maxRunLength,"-> 0",0);for(var i=0;i<this.series.length;++i){var run=this.series[i];for(var j=0;j<run.data.length;++j){var _4bc=run.data[j];if(_4bc!==null){var v=typeof _4bc=="number"?_4bc:_4bc.y;if(isNaN(v)){v=0;}acc[j]+=v;}}}if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4bb);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_4b9);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4bd,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4be=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt);gap=f.gap;_4bd=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4bf=t.next("bar",[this.opt,run]),s=run.group,_4c0=new Array(acc.length);for(var j=0;j<acc.length;++j){var _4bc=run.data[j];if(_4bc!==null){var v=acc[j],_4c1=ht(v),_4c2=typeof _4bc!="number"?t.addMixin(_4bf,"bar",_4bc,true):t.post(_4bf,"bar");if(_4c1>=1&&_4bd>=1){var rect={x:_4bb.l,y:dim.height-_4bb.b-vt(j+1.5)+gap,width:_4c1,height:_4bd};var _4c3=this._plotFill(_4c2.series.fill,dim,_4bb);_4c3=this._shapeFill(_4c3,rect);var _4c4=s.createRect(rect).setFill(_4c3).setStroke(_4c2.series.stroke);run.dyn.fill=_4c4.getFill();run.dyn.stroke=_4c4.getStroke();if(_4be){var o={element:"bar",index:j,run:run,shape:_4c4,x:v,y:j+1.5};this._connectEvents(o);_4c0[j]=o;}if(this.animate){this._animateBar(_4c4,_4bb.l,-_4c1);}}}}this._eventSeries[run.name]=_4c0;run.dirty=false;for(var j=0;j<run.data.length;++j){var _4bc=run.data[j];if(_4bc!==null){var v=typeof _4bc=="number"?_4bc:_4bc.y;if(isNaN(v)){v=0;}acc[j]-=v;}}}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.ClusteredBars"]){dojo._hasResource["dojox.charting.plot2d.ClusteredBars"]=true;dojo.provide("dojox.charting.plot2d.ClusteredBars");(function(){var df=dojox.lang.functional,dc=dojox.charting.plot2d.common,_4c5=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.ClusteredBars",dojox.charting.plot2d.Bars,{render:function(dim,_4c6){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_4c6);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_4c5);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_4c7,_4c8,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_4c9=Math.max(0,this._hScaler.bounds.lower),_4ca=ht(_4c9),_4cb=this.events();f=dc.calculateBarSize(this._vScaler.bounds.scale,this.opt,this.series.length);gap=f.gap;_4c7=_4c8=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i],_4cc=_4c8*(this.series.length-i-1);if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _4cd=t.next("bar",[this.opt,run]),s=run.group,_4ce=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var _4cf=run.data[j];if(_4cf!==null){var v=typeof _4cf=="number"?_4cf:_4cf.y,hv=ht(v),_4d0=hv-_4ca,w=Math.abs(_4d0),_4d1=typeof _4cf!="number"?t.addMixin(_4cd,"bar",_4cf,true):t.post(_4cd,"bar");if(w>=1&&_4c7>=1){var rect={x:_4c6.l+(v<_4c9?hv:_4ca),y:dim.height-_4c6.b-vt(j+1.5)+gap+_4cc,width:w,height:_4c7};var _4d2=this._plotFill(_4d1.series.fill,dim,_4c6);_4d2=this._shapeFill(_4d2,rect);var _4d3=s.createRect(rect).setFill(_4d2).setStroke(_4d1.series.stroke);run.dyn.fill=_4d3.getFill();run.dyn.stroke=_4d3.getStroke();if(_4cb){var o={element:"bar",index:j,run:run,shape:_4d3,x:v,y:j+1.5};this._connectEvents(o);_4ce[j]=o;}if(this.animate){this._animateBar(_4d3,_4c6.l+_4ca,-_4d0);}}}}this._eventSeries[run.name]=_4ce;run.dirty=false;}this.dirty=false;return this;}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Grid"]){dojo._hasResource["dojox.charting.plot2d.Grid"]=true;dojo.provide("dojox.charting.plot2d.Grid");(function(){var du=dojox.lang.utils,dc=dojox.charting.plot2d.common;dojo.declare("dojox.charting.plot2d.Grid",dojox.charting.Element,{defaultParams:{hAxis:"x",vAxis:"y",hMajorLines:true,hMinorLines:false,vMajorLines:true,vMinorLines:false,hStripes:"none",vStripes:"none",animate:null},optionalParams:{},constructor:function(_4d4,_4d5){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4d5);this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.dirty=true;this.animate=this.opt.animate;this.zoom=null,this.zoomQueue=[];this.lastWindow={vscale:1,hscale:1,xoffset:0,yoffset:0};},clear:function(){this._hAxis=null;this._vAxis=null;this.dirty=true;return this;},setAxis:function(axis){if(axis){this[axis.vertical?"_vAxis":"_hAxis"]=axis;}return this;},addSeries:function(run){return this;},getSeriesStats:function(){return dojo.delegate(dc.defaultStats);},initializeScalers:function(){return this;},isDirty:function(){return this.dirty||this._hAxis&&this._hAxis.dirty||this._vAxis&&this._vAxis.dirty;},performZoom:function(dim,_4d6){var vs=this._vAxis.scale||1,hs=this._hAxis.scale||1,_4d7=dim.height-_4d6.b,_4d8=this._hAxis.getScaler().bounds,_4d9=(_4d8.from-_4d8.lower)*_4d8.scale,_4da=this._vAxis.getScaler().bounds,_4db=(_4da.from-_4da.lower)*_4da.scale;rVScale=vs/this.lastWindow.vscale,rHScale=hs/this.lastWindow.hscale,rXOffset=(this.lastWindow.xoffset-_4d9)/((this.lastWindow.hscale==1)?hs:this.lastWindow.hscale),rYOffset=(_4db-this.lastWindow.yoffset)/((this.lastWindow.vscale==1)?vs:this.lastWindow.vscale),shape=this.group,anim=dojox.gfx.fx.animateTransform(dojo.delegate({shape:shape,duration:1200,transform:[{name:"translate",start:[0,0],end:[_4d6.l*(1-rHScale),_4d7*(1-rVScale)]},{name:"scale",start:[1,1],end:[rHScale,rVScale]},{name:"original"},{name:"translate",start:[0,0],end:[rXOffset,rYOffset]}]},this.zoom));dojo.mixin(this.lastWindow,{vscale:vs,hscale:hs,xoffset:_4d9,yoffset:_4db});this.zoomQueue.push(anim);dojo.connect(anim,"onEnd",this,function(){this.zoom=null;this.zoomQueue.shift();if(this.zoomQueue.length>0){this.zoomQueue[0].play();}});if(this.zoomQueue.length==1){this.zoomQueue[0].play();}return this;},getRequiredColors:function(){return 0;},render:function(dim,_4dc){if(this.zoom){return this.performZoom(dim,_4dc);}this.dirty=this.isDirty();if(!this.dirty){return this;}this.cleanGroup();var s=this.group,ta=this.chart.theme.axis;try{var _4dd=this._vAxis.getScaler(),vt=_4dd.scaler.getTransformerFromModel(_4dd),_4de=this._vAxis.getTicks();if(this.opt.hMinorLines){dojo.forEach(_4de.minor,function(tick){var y=dim.height-_4dc.b-vt(tick.value);var _4df=s.createLine({x1:_4dc.l,y1:y,x2:dim.width-_4dc.r,y2:y}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_4df,"h",_4dc.l,_4dc.r+_4dc.l-dim.width);}},this);}if(this.opt.hMajorLines){dojo.forEach(_4de.major,function(tick){var y=dim.height-_4dc.b-vt(tick.value);var _4e0=s.createLine({x1:_4dc.l,y1:y,x2:dim.width-_4dc.r,y2:y}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_4e0,"h",_4dc.l,_4dc.r+_4dc.l-dim.width);}},this);}}catch(e){}try{var _4e1=this._hAxis.getScaler(),ht=_4e1.scaler.getTransformerFromModel(_4e1),_4de=this._hAxis.getTicks();if(_4de&&this.opt.vMinorLines){dojo.forEach(_4de.minor,function(tick){var x=_4dc.l+ht(tick.value);var _4e2=s.createLine({x1:x,y1:_4dc.t,x2:x,y2:dim.height-_4dc.b}).setStroke(ta.minorTick);if(this.animate){this._animateGrid(_4e2,"v",dim.height-_4dc.b,dim.height-_4dc.b-_4dc.t);}},this);}if(_4de&&this.opt.vMajorLines){dojo.forEach(_4de.major,function(tick){var x=_4dc.l+ht(tick.value);var _4e3=s.createLine({x1:x,y1:_4dc.t,x2:x,y2:dim.height-_4dc.b}).setStroke(ta.majorTick);if(this.animate){this._animateGrid(_4e3,"v",dim.height-_4dc.b,dim.height-_4dc.b-_4dc.t);}},this);}}catch(e){}this.dirty=false;return this;},_animateGrid:function(_4e4,type,_4e5,size){var _4e6=type=="h"?[_4e5,0]:[0,_4e5];var _4e7=type=="h"?[1/size,1]:[1,1/size];dojox.gfx.fx.animateTransform(dojo.delegate({shape:_4e4,duration:1200,transform:[{name:"translate",start:_4e6,end:[0,0]},{name:"scale",start:_4e7,end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Pie"]){dojo._hasResource["dojox.charting.plot2d.Pie"]=true;dojo.provide("dojox.charting.plot2d.Pie");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,da=dojox.charting.axis2d.common,g=dojox.gfx,m=g.matrix,_4e8=0.2;dojo.declare("dojox.charting.plot2d.Pie",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:20,labelStyle:"default",htmlLabels:true,radGrad:"native",fanSize:5,startAngle:0},optionalParams:{radius:0,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:"",labelWiring:{}},constructor:function(_4e9,_4ea){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_4ea);du.updateWithPattern(this.opt,_4ea,this.optionalParams);this.run=null;this.dyn=[];},clear:function(){this.dirty=true;this.dyn=[];this.run=null;return this;},setAxis:function(axis){return this;},addSeries:function(run){this.run=run;return this;},getSeriesStats:function(){return dojo.delegate(dc.defaultStats);},initializeScalers:function(){return this;},getRequiredColors:function(){return this.run?this.run.data.length:0;},render:function(dim,_4eb){if(!this.dirty){return this;}this.resetEvents();this.dirty=false;this._eventSeries={};this.cleanGroup();var s=this.group,t=this.chart.theme;if(!this.run||!this.run.data.length){return this;}var rx=(dim.width-_4eb.l-_4eb.r)/2,ry=(dim.height-_4eb.t-_4eb.b)/2,r=Math.min(rx,ry),_4ec="font" in this.opt?this.opt.font:t.axis.font,size=_4ec?g.normalizedLength(g.splitFontString(_4ec).size):0,_4ed="fontColor" in this.opt?this.opt.fontColor:t.axis.fontColor,_4ee=m._degToRad(this.opt.startAngle),_4ef=_4ee,step,_4f0,_4f1,_4f2,_4f3,_4f4,run=this.run.data,_4f5=this.events();if(typeof run[0]=="number"){_4f0=df.map(run,"x ? Math.max(x, 0) : 0");if(df.every(_4f0,"<= 0")){return this;}_4f1=df.map(_4f0,"/this",df.foldl(_4f0,"+",0));if(this.opt.labels){_4f2=dojo.map(_4f1,function(x){return x>0?this._getLabel(x*100)+"%":"";},this);}}else{_4f0=df.map(run,"x ? Math.max(x.y, 0) : 0");if(df.every(_4f0,"<= 0")){return this;}_4f1=df.map(_4f0,"/this",df.foldl(_4f0,"+",0));if(this.opt.labels){_4f2=dojo.map(_4f1,function(x,i){if(x<=0){return "";}var v=run[i];return "text" in v?v.text:this._getLabel(x*100)+"%";},this);}}var _4f6=df.map(run,function(v,i){if(v===null||typeof v=="number"){return t.next("slice",[this.opt,this.run],true);}return t.next("slice",[this.opt,this.run,v],true);},this);if(this.opt.labels){_4f3=df.foldl1(df.map(_4f2,function(_4f7,i){var font=_4f6[i].series.font;return dojox.gfx._base._getTextBox(_4f7,{font:font}).w;},this),"Math.max(a, b)")/2;if(this.opt.labelOffset<0){r=Math.min(rx-2*_4f3,ry-size)+this.opt.labelOffset;}_4f4=r-this.opt.labelOffset;}if("radius" in this.opt){r=this.opt.radius;_4f4=r-this.opt.labelOffset;}var _4f8={cx:_4eb.l+rx,cy:_4eb.t+ry,r:r};this.dyn=[];var _4f9=new Array(_4f1.length);dojo.some(_4f1,function(_4fa,i){if(_4fa<=0){return false;}var v=run[i],_4fb=_4f6[i],_4fc;if(_4fa>=1){_4fc=this._plotFill(_4fb.series.fill,dim,_4eb);_4fc=this._shapeFill(_4fc,{x:_4f8.cx-_4f8.r,y:_4f8.cy-_4f8.r,width:2*_4f8.r,height:2*_4f8.r});_4fc=this._pseudoRadialFill(_4fc,{x:_4f8.cx,y:_4f8.cy},_4f8.r);var _4fd=s.createCircle(_4f8).setFill(_4fc).setStroke(_4fb.series.stroke);this.dyn.push({fill:_4fc,stroke:_4fb.series.stroke});if(_4f5){var o={element:"slice",index:i,run:this.run,shape:_4fd,x:i,y:typeof v=="number"?v:v.y,cx:_4f8.cx,cy:_4f8.cy,cr:r};this._connectEvents(o);_4f9[i]=o;}return true;}var end=_4ef+_4fa*2*Math.PI;if(i+1==_4f1.length){end=_4ee+2*Math.PI;}var step=end-_4ef,x1=_4f8.cx+r*Math.cos(_4ef),y1=_4f8.cy+r*Math.sin(_4ef),x2=_4f8.cx+r*Math.cos(end),y2=_4f8.cy+r*Math.sin(end);var _4fe=m._degToRad(this.opt.fanSize);if(_4fb.series.fill&&_4fb.series.fill.type==="radial"&&this.opt.radGrad==="fan"&&step>_4fe){var _4ff=s.createGroup(),_500=Math.ceil(step/_4fe),_501=step/_500;_4fc=this._shapeFill(_4fb.series.fill,{x:_4f8.cx-_4f8.r,y:_4f8.cy-_4f8.r,width:2*_4f8.r,height:2*_4f8.r});for(var j=0;j<_500;++j){var _502=j==0?x1:_4f8.cx+r*Math.cos(_4ef+(j-_4e8)*_501),_503=j==0?y1:_4f8.cy+r*Math.sin(_4ef+(j-_4e8)*_501),_504=j==_500-1?x2:_4f8.cx+r*Math.cos(_4ef+(j+1+_4e8)*_501),_505=j==_500-1?y2:_4f8.cy+r*Math.sin(_4ef+(j+1+_4e8)*_501),fan=_4ff.createPath({}).moveTo(_4f8.cx,_4f8.cy).lineTo(_502,_503).arcTo(r,r,0,_501>Math.PI,true,_504,_505).lineTo(_4f8.cx,_4f8.cy).closePath().setFill(this._pseudoRadialFill(_4fc,{x:_4f8.cx,y:_4f8.cy},r,_4ef+(j+0.5)*_501,_4ef+(j+0.5)*_501));}_4ff.createPath({}).moveTo(_4f8.cx,_4f8.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_4f8.cx,_4f8.cy).closePath().setStroke(_4fb.series.stroke);_4fd=_4ff;}else{_4fd=s.createPath({}).moveTo(_4f8.cx,_4f8.cy).lineTo(x1,y1).arcTo(r,r,0,step>Math.PI,true,x2,y2).lineTo(_4f8.cx,_4f8.cy).closePath().setStroke(_4fb.series.stroke);var _4fc=_4fb.series.fill;if(_4fc&&_4fc.type==="radial"){_4fc=this._shapeFill(_4fc,{x:_4f8.cx-_4f8.r,y:_4f8.cy-_4f8.r,width:2*_4f8.r,height:2*_4f8.r});if(this.opt.radGrad==="linear"){_4fc=this._pseudoRadialFill(_4fc,{x:_4f8.cx,y:_4f8.cy},r,_4ef,end);}}else{if(_4fc&&_4fc.type==="linear"){_4fc=this._plotFill(_4fc,dim,_4eb);_4fc=this._shapeFill(_4fc,_4fd.getBoundingBox());}}_4fd.setFill(_4fc);}this.dyn.push({fill:_4fc,stroke:_4fb.series.stroke});if(_4f5){var o={element:"slice",index:i,run:this.run,shape:_4fd,x:i,y:typeof v=="number"?v:v.y,cx:_4f8.cx,cy:_4f8.cy,cr:r};this._connectEvents(o);_4f9[i]=o;}_4ef=end;return false;},this);if(this.opt.labels){if(this.opt.labelStyle=="default"){_4ef=_4ee;dojo.some(_4f1,function(_506,i){if(_506<=0){return false;}var _507=_4f6[i];if(_506>=1){var v=run[i],elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_4f8.cx,_4f8.cy+size/2,"middle",_4f2[i],_507.series.font,_507.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}return true;}var end=_4ef+_506*2*Math.PI,v=run[i];if(i+1==_4f1.length){end=_4ee+2*Math.PI;}var _508=(_4ef+end)/2,x=_4f8.cx+_4f4*Math.cos(_508),y=_4f8.cy+_4f4*Math.sin(_508)+size/2;var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,x,y,"middle",_4f2[i],_507.series.font,_507.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}_4ef=end;return false;},this);}else{if(this.opt.labelStyle=="columns"){_4ef=_4ee;var _509=[];dojo.forEach(_4f1,function(_50a,i){var end=_4ef+_50a*2*Math.PI;if(i+1==_4f1.length){end=_4ee+2*Math.PI;}var _50b=(_4ef+end)/2;_509.push({angle:_50b,left:Math.cos(_50b)<0,theme:_4f6[i],index:i,omit:end-_4ef<0.001});_4ef=end;});var _50c=dojox.gfx._base._getTextBox("a",{font:_4ec}).h;this._getProperLabelRadius(_509,_50c,_4f8.r*1.1);dojo.forEach(_509,function(_50d,i){if(!_50d.omit){var _50e=_4f8.cx-_4f8.r*2,_50f=_4f8.cx+_4f8.r*2,_510=dojox.gfx._base._getTextBox(_4f2[i],{font:_4ec}).w,x=_4f8.cx+_50d.labelR*Math.cos(_50d.angle),y=_4f8.cy+_50d.labelR*Math.sin(_50d.angle),_511=(_50d.left)?(_50e+_510):(_50f-_510),_512=(_50d.left)?_50e:_511;var _513=s.createPath().moveTo(_4f8.cx+_4f8.r*Math.cos(_50d.angle),_4f8.cy+_4f8.r*Math.sin(_50d.angle));if(Math.abs(_50d.labelR*Math.cos(_50d.angle))<_4f8.r*2-_510){_513.lineTo(x,y);}_513.lineTo(_511,y).setStroke(_50d.theme.series.labelWiring);var elem=da.createText[this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx"](this.chart,s,_512,y,"left",_4f2[i],_50d.theme.series.font,_50d.theme.series.fontColor);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}},this);}}}var esi=0;this._eventSeries[this.run.name]=df.map(run,function(v){return v<=0?null:_4f9[esi++];});return this;},_getProperLabelRadius:function(_514,_515,_516){var _517={},_518={},_519=1,_51a=1;if(_514.length==1){_514[0].labelR=_516;return;}for(var i=0;i<_514.length;i++){var _51b=Math.abs(Math.sin(_514[i].angle));if(_514[i].left){if(_519>_51b){_519=_51b;_517=_514[i];}}else{if(_51a>_51b){_51a=_51b;_518=_514[i];}}}_517.labelR=_518.labelR=_516;this._caculateLabelR(_517,_514,_515);this._caculateLabelR(_518,_514,_515);},_caculateLabelR:function(_51c,_51d,_51e){var i=_51c.index,_51f=_51d.length,_520=_51c.labelR;while(!(_51d[i%_51f].left^_51d[(i+1)%_51f].left)){if(!_51d[(i+1)%_51f].omit){var _521=(Math.sin(_51d[i%_51f].angle)*_520+((_51d[i%_51f].left)?(-_51e):_51e))/Math.sin(_51d[(i+1)%_51f].angle);_520=(_521<_51c.labelR)?_51c.labelR:_521;_51d[(i+1)%_51f].labelR=_520;}i++;}i=_51c.index,j=(i==0)?_51f-1:i-1;while(!(_51d[i].left^_51d[j].left)){if(!_51d[j].omit){var _521=(Math.sin(_51d[i].angle)*_520+((_51d[i].left)?_51e:(-_51e)))/Math.sin(_51d[j].angle);_520=(_521<_51c.labelR)?_51c.labelR:_521;_51d[j].labelR=_520;}i--;j--;i=(i<0)?i+_51d.length:i;j=(j<0)?j+_51d.length:j;}},_getLabel:function(_522){return dc.getLabel(_522,this.opt.fixed,this.opt.precision);}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Bubble"]){dojo._hasResource["dojox.charting.plot2d.Bubble"]=true;dojo.provide("dojox.charting.plot2d.Bubble");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_523=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Bubble",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",animate:null},optionalParams:{stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_524,_525){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_525);du.updateWithPattern(this.opt,_525,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},render:function(dim,_526){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_526);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_523);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_527=this.events();for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();if(!run.data.length){run.dirty=false;t.skip();continue;}if(typeof run.data[0]=="number"){console.warn("dojox.charting.plot2d.Bubble: the data in the following series cannot be rendered as a bubble chart; ",run);continue;}var _528=t.next("circle",[this.opt,run]),s=run.group,_529=dojo.map(run.data,function(v,i){return v?{x:ht(v.x)+_526.l,y:dim.height-_526.b-vt(v.y),radius:this._vScaler.bounds.scale*(v.size/2)}:null;},this);var _52a=null,_52b=null,_52c=null;if(_528.series.shadow){_52c=dojo.map(_529,function(item){if(item!==null){var _52d=t.addMixin(_528,"circle",item,true),_52e=_52d.series.shadow;var _52f=s.createCircle({cx:item.x+_52e.dx,cy:item.y+_52e.dy,r:item.radius}).setStroke(_52e).setFill(_52e.color);if(this.animate){this._animateBubble(_52f,dim.height-_526.b,item.radius);}return _52f;}return null;},this);if(_52c.length){run.dyn.shadow=_52c[_52c.length-1].getStroke();}}if(_528.series.outline){_52b=dojo.map(_529,function(item){if(item!==null){var _530=t.addMixin(_528,"circle",item,true),_531=dc.makeStroke(_530.series.outline);_531.width=2*_531.width+_528.series.stroke.width;var _532=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setStroke(_531);if(this.animate){this._animateBubble(_532,dim.height-_526.b,item.radius);}return _532;}return null;},this);if(_52b.length){run.dyn.outline=_52b[_52b.length-1].getStroke();}}_52a=dojo.map(_529,function(item){if(item!==null){var _533=t.addMixin(_528,"circle",item,true),rect={x:item.x-item.radius,y:item.y-item.radius,width:2*item.radius,height:2*item.radius};var _534=this._plotFill(_533.series.fill,dim,_526);_534=this._shapeFill(_534,rect);var _535=s.createCircle({cx:item.x,cy:item.y,r:item.radius}).setFill(_534).setStroke(_533.series.stroke);if(this.animate){this._animateBubble(_535,dim.height-_526.b,item.radius);}return _535;}return null;},this);if(_52a.length){run.dyn.fill=_52a[_52a.length-1].getFill();run.dyn.stroke=_52a[_52a.length-1].getStroke();}if(_527){var _536=new Array(_52a.length);dojo.forEach(_52a,function(s,i){if(s!==null){var o={element:"circle",index:i,run:run,shape:s,outline:_52b&&_52b[i]||null,shadow:_52c&&_52c[i]||null,x:run.data[i].x,y:run.data[i].y,r:run.data[i].size/2,cx:_529[i].x,cy:_529[i].y,cr:_529[i].radius};this._connectEvents(o);_536[i]=o;}},this);this._eventSeries[run.name]=_536;}else{delete this._eventSeries[run.name];}run.dirty=false;}this.dirty=false;return this;},_animateBubble:function(_537,_538,size){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_537,duration:1200,transform:[{name:"translate",start:[0,_538],end:[0,0]},{name:"scale",start:[0,1/size],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Candlesticks"]){dojo._hasResource["dojox.charting.plot2d.Candlesticks"]=true;dojo.provide("dojox.charting.plot2d.Candlesticks");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_539=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.Candlesticks",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_53a,_53b){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_53b);du.updateWithPattern(this.opt,_53b,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_53c){var _53d=dojo.delegate(dc.defaultStats);for(var i=0;i<_53c.length;i++){var run=_53c[i];if(!run.data.length){continue;}var _53e=_53d.vmin,_53f=_53d.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_53d.hmin=Math.min(_53d.hmin,x);_53d.hmax=Math.max(_53d.hmax,x);_53d.vmin=Math.min(_53d.vmin,val.open,val.close,val.high,val.low);_53d.vmax=Math.max(_53d.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_53d.vmin=Math.min(_53e,run.ymin);}if("ymax" in run){_53d.vmax=Math.max(_53f,run.ymax);}}return _53d;},getSeriesStats:function(){var _540=this.collectStats(this.series);_540.hmin-=0.5;_540.hmax+=0.5;return _540;},render:function(dim,_541){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_541);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_539);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_542,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_543=Math.max(0,this._vScaler.bounds.lower),_544=vt(_543),_545=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_542=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _546=t.next("candlestick",[this.opt,run]),s=run.group,_547=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _548=t.addMixin(_546,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_541.l+gap,y=dim.height-_541.b,open=vt(v.open),_549=vt(v.close),high=vt(v.high),low=vt(v.low);if("mid" in v){var mid=vt(v.mid);}if(low>high){var tmp=high;high=low;low=tmp;}if(_542>=1){var _54a=open>_549;var line={x1:_542/2,x2:_542/2,y1:y-high,y2:y-low},rect={x:0,y:y-Math.max(open,_549),width:_542,height:Math.max(_54a?open-_549:_549-open,1)};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _54b=shape.createGroup();_54b.createLine(line).setStroke(_548.series.stroke);_54b.createRect(rect).setStroke(_548.series.stroke).setFill(_54a?_548.series.fill:"white");if("mid" in v){_54b.createLine({x1:(_548.series.stroke.width||1),x2:_542-(_548.series.stroke.width||1),y1:y-mid,y2:y-mid}).setStroke(_54a?"white":_548.series.stroke);}run.dyn.fill=_548.series.fill;run.dyn.stroke=_548.series.stroke;if(_545){var o={element:"candlestick",index:j,run:run,shape:_54b,x:x,y:y-Math.max(open,_549),cx:_542/2,cy:(y-Math.max(open,_549))+(Math.max(_54a?open-_549:_549-open,1)/2),width:_542,height:Math.max(_54a?open-_549:_549-open,1),data:v};this._connectEvents(o);_547[j]=o;}}if(this.animate){this._animateCandlesticks(shape,y-low,high-low);}}}this._eventSeries[run.name]=_547;run.dirty=false;}this.dirty=false;return this;},_animateCandlesticks:function(_54c,_54d,_54e){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_54c,duration:1200,transform:[{name:"translate",start:[0,_54d-(_54d/_54e)],end:[0,0]},{name:"scale",start:[1,1/_54e],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.OHLC"]){dojo._hasResource["dojox.charting.plot2d.OHLC"]=true;dojo.provide("dojox.charting.plot2d.OHLC");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,_54f=df.lambda("item.purgeGroup()");dojo.declare("dojox.charting.plot2d.OHLC",dojox.charting.plot2d.Base,{defaultParams:{hAxis:"x",vAxis:"y",gap:2,animate:null},optionalParams:{minBarSize:1,maxBarSize:1,stroke:{},outline:{},shadow:{},fill:{},font:"",fontColor:""},constructor:function(_550,_551){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_551);du.updateWithPattern(this.opt,_551,this.optionalParams);this.series=[];this.hAxis=this.opt.hAxis;this.vAxis=this.opt.vAxis;this.animate=this.opt.animate;},collectStats:function(_552){var _553=dojo.delegate(dc.defaultStats);for(var i=0;i<_552.length;i++){var run=_552[i];if(!run.data.length){continue;}var _554=_553.vmin,_555=_553.vmax;if(!("ymin" in run)||!("ymax" in run)){dojo.forEach(run.data,function(val,idx){if(val!==null){var x=val.x||idx+1;_553.hmin=Math.min(_553.hmin,x);_553.hmax=Math.max(_553.hmax,x);_553.vmin=Math.min(_553.vmin,val.open,val.close,val.high,val.low);_553.vmax=Math.max(_553.vmax,val.open,val.close,val.high,val.low);}});}if("ymin" in run){_553.vmin=Math.min(_554,run.ymin);}if("ymax" in run){_553.vmax=Math.max(_555,run.ymax);}}return _553;},getSeriesStats:function(){var _556=this.collectStats(this.series);_556.hmin-=0.5;_556.hmax+=0.5;return _556;},render:function(dim,_557){if(this.zoom&&!this.isDataDirty()){return this.performZoom(dim,_557);}this.resetEvents();this.dirty=this.isDirty();if(this.dirty){dojo.forEach(this.series,_54f);this._eventSeries={};this.cleanGroup();var s=this.group;df.forEachRev(this.series,function(item){item.cleanGroup(s);});}var t=this.chart.theme,f,gap,_558,ht=this._hScaler.scaler.getTransformerFromModel(this._hScaler),vt=this._vScaler.scaler.getTransformerFromModel(this._vScaler),_559=Math.max(0,this._vScaler.bounds.lower),_55a=vt(_559),_55b=this.events();f=dc.calculateBarSize(this._hScaler.bounds.scale,this.opt);gap=f.gap;_558=f.size;for(var i=this.series.length-1;i>=0;--i){var run=this.series[i];if(!this.dirty&&!run.dirty){t.skip();this._reconnectEvents(run.name);continue;}run.cleanGroup();var _55c=t.next("candlestick",[this.opt,run]),s=run.group,_55d=new Array(run.data.length);for(var j=0;j<run.data.length;++j){var v=run.data[j];if(v!==null){var _55e=t.addMixin(_55c,"candlestick",v,true);var x=ht(v.x||(j+0.5))+_557.l+gap,y=dim.height-_557.b,open=vt(v.open),_55f=vt(v.close),high=vt(v.high),low=vt(v.low);if(low>high){var tmp=high;high=low;low=tmp;}if(_558>=1){var hl={x1:_558/2,x2:_558/2,y1:y-high,y2:y-low},op={x1:0,x2:((_558/2)+((_55e.series.stroke.width||1)/2)),y1:y-open,y2:y-open},cl={x1:((_558/2)-((_55e.series.stroke.width||1)/2)),x2:_558,y1:y-_55f,y2:y-_55f};shape=s.createGroup();shape.setTransform({dx:x,dy:0});var _560=shape.createGroup();_560.createLine(hl).setStroke(_55e.series.stroke);_560.createLine(op).setStroke(_55e.series.stroke);_560.createLine(cl).setStroke(_55e.series.stroke);run.dyn.stroke=_55e.series.stroke;if(_55b){var o={element:"candlestick",index:j,run:run,shape:_560,x:x,y:y-Math.max(open,_55f),cx:_558/2,cy:(y-Math.max(open,_55f))+(Math.max(open>_55f?open-_55f:_55f-open,1)/2),width:_558,height:Math.max(open>_55f?open-_55f:_55f-open,1),data:v};this._connectEvents(o);_55d[j]=o;}}if(this.animate){this._animateOHLC(shape,y-low,high-low);}}}this._eventSeries[run.name]=_55d;run.dirty=false;}this.dirty=false;return this;},_animateOHLC:function(_561,_562,_563){dojox.gfx.fx.animateTransform(dojo.delegate({shape:_561,duration:1200,transform:[{name:"translate",start:[0,_562-(_562/_563)],end:[0,0]},{name:"scale",start:[1,1/_563],end:[1,1]},{name:"original"}]},this.animate)).play();}});})();}if(!dojo._hasResource["dojox.charting.plot2d.Spider"]){dojo._hasResource["dojox.charting.plot2d.Spider"]=true;dojo.provide("dojox.charting.plot2d.Spider");dojo.experimental("dojox.charting.plot2d.Spider");(function(){var df=dojox.lang.functional,du=dojox.lang.utils,dc=dojox.charting.plot2d.common,da=dojox.charting.axis2d.common,g=dojox.gfx,m=g.matrix,_564=0.2;dojo.declare("dojox.charting.plot2d.Spider",[dojox.charting.Element,dojox.charting.plot2d._PlotEvents],{defaultParams:{labels:true,ticks:false,fixed:true,precision:1,labelOffset:-10,labelStyle:"default",htmlLabels:true,startAngle:-90,divisions:3,axisColor:"",axisWidth:0,spiderColor:"",spiderWidth:0,seriesWidth:0,seriesFillAlpha:0.2,spiderOrigin:0.16,markerSize:3,spiderType:"polygon",animationType:dojo.fx.easing.backOut,axisTickFont:"",axisTickFontColor:"",axisFont:"",axisFontColor:""},optionalParams:{radius:0,font:"",fontColor:""},constructor:function(_565,_566){this.opt=dojo.clone(this.defaultParams);du.updateWithObject(this.opt,_566);du.updateWithPattern(this.opt,_566,this.optionalParams);this.series=[];this.dyn=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};},clear:function(){this.dirty=true;this.dyn=[];this.series=[];this.datas={};this.labelKey=[];this.oldSeriePoints={};this.animations={};return this;},setAxis:function(axis){return this;},addSeries:function(run){var _567=false;this.series.push(run);for(var key in run.data){var val=run.data[key],data=this.datas[key];if(data){data.vlist.push(val);data.min=Math.min(data.min,val);data.max=Math.max(data.max,val);}else{this.datas[key]={min:val,max:val,vlist:[val]};}}if(this.labelKey.length<=0){for(var key in run.data){this.labelKey.push(key);}}return this;},getSeriesStats:function(){return dojox.charting.plot2d.common.collectSimpleStats(this.series);},calculateAxes:function(dim){this.initializeScalers(dim,this.getSeriesStats());return this;},getRequiredColors:function(){return this.series.length;},initializeScalers:function(dim,_568){if(this._hAxis){if(!this._hAxis.initialized()){this._hAxis.calculate(_568.hmin,_568.hmax,dim.width);}this._hScaler=this._hAxis.getScaler();}else{this._hScaler=dojox.charting.scaler.primitive.buildScaler(_568.hmin,_568.hmax,dim.width);}if(this._vAxis){if(!this._vAxis.initialized()){this._vAxis.calculate(_568.vmin,_568.vmax,dim.height);}this._vScaler=this._vAxis.getScaler();}else{this._vScaler=dojox.charting.scaler.primitive.buildScaler(_568.vmin,_568.vmax,dim.height);}return this;},render:function(dim,_569){if(!this.dirty){return this;}this.dirty=false;this.cleanGroup();var s=this.group,t=this.chart.theme;this.resetEvents();if(!this.series||!this.series.length){return this;}var o=this.opt,ta=t.axis,rx=(dim.width-_569.l-_569.r)/2,ry=(dim.height-_569.t-_569.b)/2,r=Math.min(rx,ry),_56a=o.font||(ta.majorTick&&ta.majorTick.font)||(ta.tick&&ta.tick.font)||"normal normal normal 7pt Tahoma",_56b=o.axisFont||(ta.tick&&ta.tick.titleFont)||"normal normal normal 11pt Tahoma",_56c=o.axisTickFontColor||(ta.majorTick&&ta.majorTick.fontColor)||(ta.tick&&ta.tick.fontColor)||"silver",_56d=o.axisFontColor||(ta.tick&&ta.tick.titleFontColor)||"black",_56e=o.axisColor||(ta.tick&&ta.tick.axisColor)||"silver",_56f=o.spiderColor||(ta.tick&&ta.tick.spiderColor)||"silver",_570=o.axisWidth||(ta.stroke&&ta.stroke.width)||2,_571=o.spiderWidth||(ta.stroke&&ta.stroke.width)||2,_572=o.seriesWidth||(ta.stroke&&ta.stroke.width)||2,_573=g.normalizedLength(g.splitFontString(_56b).size),_574=m._degToRad(o.startAngle),_575=_574,step,_576,_577,_578,_579,_57a,_57b,_57c,_57d,_57e,_57f,ro=o.spiderOrigin,dv=o.divisions>=3?o.divisions:3,ms=o.markerSize,spt=o.spiderType,at=o.animationType,_580=o.labelOffset<-10?o.labelOffset:-10,_581=0.2;if(o.labels){_578=dojo.map(this.series,function(s){return s.name;},this);_579=df.foldl1(df.map(_578,function(_582,i){var font=t.series.font;return dojox.gfx._base._getTextBox(_582,{font:font}).w;},this),"Math.max(a, b)")/2;r=Math.min(rx-2*_579,ry-_573)+_580;_57a=r-_580;}if("radius" in o){r=o.radius;_57a=r-_580;}r/=(1+_581);var _583={cx:_569.l+rx,cy:_569.t+ry,r:r};for(var i=this.series.length-1;i>=0;i--){var _584=this.series[i];if(!this.dirty&&!_584.dirty){t.skip();continue;}_584.cleanGroup();var run=_584.data;if(run!==null){var len=this._getObjectLength(run);if(!_57b||_57b.length<=0){_57b=[],_57c=[],_57f=[];this._buildPoints(_57b,len,_583,r,_575,true);this._buildPoints(_57c,len,_583,r*ro,_575,true);this._buildPoints(_57f,len,_583,_57a,_575);if(dv>2){_57d=[],_57e=[];for(var j=0;j<dv-2;j++){_57d[j]=[];this._buildPoints(_57d[j],len,_583,r*(ro+(1-ro)*(j+1)/(dv-1)),_575,true);_57e[j]=r*(ro+(1-ro)*(j+1)/(dv-1));}}}}}var _585=s.createGroup(),_586={color:_56e,width:_570},_587={color:_56f,width:_571};for(var j=_57b.length-1;j>=0;--j){var _588=_57b[j],st={x:_588.x+(_588.x-_583.cx)*_581,y:_588.y+(_588.y-_583.cy)*_581},nd={x:_588.x+(_588.x-_583.cx)*_581/2,y:_588.y+(_588.y-_583.cy)*_581/2};_585.createLine({x1:_583.cx,y1:_583.cy,x2:st.x,y2:st.y}).setStroke(_586);this._drawArrow(_585,st,nd,_586);}var _589=s.createGroup();for(var j=_57f.length-1;j>=0;--j){var _588=_57f[j],_58a=dojox.gfx._base._getTextBox(this.labelKey[j],{font:_56b}).w||0,_58b=this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx";elem=da.createText[_58b](this.chart,_589,(!dojo._isBodyLtr()&&_58b=="html")?(_588.x+_58a-dim.width):_588.x,_588.y,"middle",this.labelKey[j],_56b,_56d);if(this.opt.htmlLabels){this.htmlElements.push(elem);}}var _58c=s.createGroup();if(spt=="polygon"){_58c.createPolyline(_57b).setStroke(_587);_58c.createPolyline(_57c).setStroke(_587);if(_57d.length>0){for(var j=_57d.length-1;j>=0;--j){_58c.createPolyline(_57d[j]).setStroke(_587);}}}else{var _58d=this._getObjectLength(this.datas);_58c.createCircle({cx:_583.cx,cy:_583.cy,r:r}).setStroke(_587);_58c.createCircle({cx:_583.cx,cy:_583.cy,r:r*ro}).setStroke(_587);if(_57e.length>0){for(var j=_57e.length-1;j>=0;--j){_58c.createCircle({cx:_583.cx,cy:_583.cy,r:_57e[j]}).setStroke(_587);}}}var _58e=s.createGroup(),len=this._getObjectLength(this.datas),k=0;for(var key in this.datas){var data=this.datas[key],min=data.min,max=data.max,_58f=max-min,end=_575+2*Math.PI*k/len;for(var i=0;i<dv;i++){var text=min+_58f*i/(dv-1),_588=this._getCoordinate(_583,r*(ro+(1-ro)*i/(dv-1)),end);text=this._getLabel(text);var _58a=dojox.gfx._base._getTextBox(text,{font:_56a}).w||0,_58b=this.opt.htmlLabels&&dojox.gfx.renderer!="vml"?"html":"gfx";if(this.opt.htmlLabels){this.htmlElements.push(da.createText[_58b](this.chart,_58e,(!dojo._isBodyLtr()&&_58b=="html")?(_588.x+_58a-dim.width):_588.x,_588.y,"start",text,_56a,_56c));}}k++;}this.chart.seriesShapes={};var _590=[];for(var i=this.series.length-1;i>=0;i--){var _584=this.series[i],run=_584.data;if(run!==null){var _591=[],k=0,_592=[];for(var key in run){var data=this.datas[key],min=data.min,max=data.max,_58f=max-min,_593=run[key],end=_575+2*Math.PI*k/len,_588=this._getCoordinate(_583,r*(ro+(1-ro)*(_593-min)/_58f),end);_591.push(_588);_592.push({sname:_584.name,key:key,data:_593});k++;}_591[_591.length]=_591[0];_592[_592.length]=_592[0];var _594=this._getBoundary(_591),_595=t.next("spider",[o,_584]),ts=_584.group,f=g.normalizeColor(_595.series.fill),sk={color:_595.series.fill,width:_572};f.a=o.seriesFillAlpha;_584.dyn={fill:f,stroke:sk};var osps=this.oldSeriePoints[_584.name];var cs=this._createSeriesEntry(ts,(osps||_57c),_591,f,sk,r,ro,ms,at);this.chart.seriesShapes[_584.name]=cs;this.oldSeriePoints[_584.name]=_591;var po={element:"spider_poly",index:i,id:"spider_poly_"+_584.name,run:_584,plot:this,shape:cs.poly,parent:ts,brect:_594,cx:_583.cx,cy:_583.cy,cr:r,f:f,s:s};this._connectEvents(po);var so={element:"spider_plot",index:i,id:"spider_plot_"+_584.name,run:_584,plot:this,shape:_584.group};this._connectEvents(so);dojo.forEach(cs.circles,function(c,i){var _596=c.getShape(),co={element:"spider_circle",index:i,id:"spider_circle_"+_584.name+i,run:_584,plot:this,shape:c,parent:ts,tdata:_592[i],cx:_591[i].x,cy:_591[i].y,f:f,s:s};this._connectEvents(co);},this);}}return this;},_createSeriesEntry:function(ts,osps,sps,f,sk,r,ro,ms,at){var _597=ts.createPolyline(osps).setFill(f).setStroke(sk),_598=[];for(var j=0;j<osps.length;j++){var _599=osps[j],cr=ms;var _59a=ts.createCircle({cx:_599.x,cy:_599.y,r:cr}).setFill(f).setStroke(sk);_598.push(_59a);}var _59b=dojo.map(sps,function(np,j){var sp=osps[j],anim=new dojo._Animation({duration:1000,easing:at,curve:[sp.y,np.y]});var spl=_597,sc=_598[j];dojo.connect(anim,"onAnimate",function(y){var _59c=spl.getShape();_59c.points[j].y=y;spl.setShape(_59c);var _59d=sc.getShape();_59d.cy=y;sc.setShape(_59d);});return anim;});var _59e=dojo.map(sps,function(np,j){var sp=osps[j],anim=new dojo._Animation({duration:1000,easing:at,curve:[sp.x,np.x]});var spl=_597,sc=_598[j];dojo.connect(anim,"onAnimate",function(x){var _59f=spl.getShape();_59f.points[j].x=x;spl.setShape(_59f);var _5a0=sc.getShape();_5a0.cx=x;sc.setShape(_5a0);});return anim;});var _5a1=dojo.fx.combine(_59b.concat(_59e));_5a1.play();return {group:ts,poly:_597,circles:_598};},plotEvent:function(o){var _5a2=o.id?o.id:"default",a;if(_5a2 in this.animations){a=this.animations[_5a2];a.anim&&a.anim.stop(true);}else{a=this.animations[_5a2]={};}if(o.element=="spider_poly"){if(!a.color){var _5a3=o.shape.getFill();if(!_5a3||!(_5a3 instanceof dojo.Color)){return;}a.color={start:_5a3,end:_5a4(_5a3)};}var _5a5=a.color.start,end=a.color.end;if(o.type=="onmouseout"){var t=_5a5;_5a5=end;end=t;}a.anim=dojox.gfx.fx.animateFill({shape:o.shape,duration:800,easing:dojo.fx.easing.backOut,color:{start:_5a5,end:end}});a.anim.play();}else{if(o.element=="spider_circle"){var init,_5a6,_5a7=1.5;if(o.type=="onmouseover"){init=dojox.gfx.matrix.identity;_5a6=_5a7;var _5a8={type:"rect"};_5a8.x=o.cx;_5a8.y=o.cy;_5a8.width=_5a8.height=1;var lt=dojo.coords(this.chart.node,true);_5a8.x+=lt.x;_5a8.y+=lt.y;_5a8.x=Math.round(_5a8.x);_5a8.y=Math.round(_5a8.y);_5a8.width=Math.ceil(_5a8.width);_5a8.height=Math.ceil(_5a8.height);this.aroundRect=_5a8;var _5a9=["after","before"];if(dijit&&dijit.Tooltip){dijit.showTooltip(o.tdata.sname+"<br/>"+o.tdata.key+"<br/>"+o.tdata.data,this.aroundRect,_5a9);}}else{init=dojox.gfx.matrix.scaleAt(_5a7,o.cx,o.cy);_5a6=1/_5a7;if(dijit&&dijit.Tooltip){this.aroundRect&&dijit.hideTooltip(this.aroundRect);}}var cs=o.shape.getShape(),init=m.scaleAt(_5a7,cs.cx,cs.cy),_5aa={shape:o.shape,duration:200,easing:dojo.fx.easing.backOut,transform:[{name:"scaleAt",start:[1,cs.cx,cs.cy],end:[_5a6,cs.cx,cs.cy]},init]};a.anim=dojox.gfx.fx.animateTransform(_5aa);a.anim.play();}else{if(o.element=="spider_plot"){if(o.type=="onmouseover"&&!dojo.isIE){o.shape.moveToFront();}}}}},_getBoundary:function(_5ab){var xmax=_5ab[0].x,xmin=_5ab[0].x,ymax=_5ab[0].y,ymin=_5ab[0].y;for(var i=0;i<_5ab.length;i++){var _5ac=_5ab[i];xmax=Math.max(_5ac.x,xmax);ymax=Math.max(_5ac.y,ymax);xmin=Math.min(_5ac.x,xmin);ymin=Math.min(_5ac.y,ymin);}return {x:xmin,y:ymin,width:xmax-xmin,height:ymax-ymin};},_drawArrow:function(s,_5ad,end,_5ae){var len=Math.sqrt(Math.pow(end.x-_5ad.x,2)+Math.pow(end.y-_5ad.y,2)),sin=(end.y-_5ad.y)/len,cos=(end.x-_5ad.x)/len,_5af={x:end.x+(len/3)*(-sin),y:end.y+(len/3)*cos},_5b0={x:end.x+(len/3)*sin,y:end.y+(len/3)*(-cos)};s.createPolyline([_5ad,_5af,_5b0]).setFill(_5ae.color).setStroke(_5ae);},_buildPoints:function(_5b1,_5b2,_5b3,_5b4,_5b5,_5b6){for(var i=0;i<_5b2;i++){var end=_5b5+2*Math.PI*i/_5b2;_5b1.push(this._getCoordinate(_5b3,_5b4,end));}if(_5b6){_5b1.push(this._getCoordinate(_5b3,_5b4,_5b5+2*Math.PI));}},_getCoordinate:function(_5b7,_5b8,_5b9){return {x:_5b7.cx+_5b8*Math.cos(_5b9),y:_5b7.cy+_5b8*Math.sin(_5b9)};},_getObjectLength:function(obj){var _5ba=0;if(dojo.isObject(obj)){for(var key in obj){_5ba++;}}return _5ba;},_getLabel:function(_5bb){return dc.getLabel(_5bb,this.opt.fixed,this.opt.precision);}});function _5a4(_5bc){var a=new dojox.color.Color(_5bc),x=a.toHsl();if(x.s==0){x.l=x.l<50?100:0;}else{x.s=100;if(x.l<50){x.l=75;}else{if(x.l>75){x.l=50;}else{x.l=x.l-50>75-x.l?50:75;}}}var _5bc=dojox.color.fromHsl(x);_5bc.a=0.7;return _5bc;};})();}if(!dojo._hasResource["dojox.charting.Chart2D"]){dojo._hasResource["dojox.charting.Chart2D"]=true;dojo.provide("dojox.charting.Chart2D");dojo.deprecated("dojox.charting.Chart2D","Use dojo.charting.Chart instead and require all other components explicitly","2.0");dojox.charting.Chart2D=dojox.charting.Chart;}if(!dojo._hasResource["dojox.charting.widget.Chart2D"]){dojo._hasResource["dojox.charting.widget.Chart2D"]=true;dojo.provide("dojox.charting.widget.Chart2D");dojo.deprecated("dojox.charting.widget.Chart2D","Use dojo.charting.widget.Chart instead and require all other components explicitly","2.0");dojox.charting.widget.Chart2D=dojox.charting.widget.Chart;}if(!dojo._hasResource["dojox.charting.themes.gradientGenerator"]){dojo._hasResource["dojox.charting.themes.gradientGenerator"]=true;dojo.provide("dojox.charting.themes.gradientGenerator");(function(){var gg=dojox.charting.themes.gradientGenerator;gg.generateFills=function(_5bd,_5be,_5bf,_5c0){var _5c1=dojox.charting.Theme;return dojo.map(_5bd,function(c){return _5c1.generateHslGradient(c,_5be,_5bf,_5c0);});};gg.updateFills=function(_5c2,_5c3,_5c4,_5c5){var _5c6=dojox.charting.Theme;dojo.forEach(_5c2,function(t){if(t.fill&&!t.fill.type){t.fill=_5c6.generateHslGradient(t.fill,_5c3,_5c4,_5c5);}});};gg.generateMiniTheme=function(_5c7,_5c8,_5c9,_5ca,_5cb){var _5cc=dojox.charting.Theme;return dojo.map(_5c7,function(c){c=new dojox.color.Color(c);return {fill:_5cc.generateHslGradient(c,_5c8,_5c9,_5ca),stroke:{color:_5cc.generateHslColor(c,_5cb)}};});};gg.generateGradientByIntensity=function(_5cd,_5ce){_5cd=new dojo.Color(_5cd);return dojo.map(_5ce,function(stop){var s=stop.i/255;return {offset:stop.o,color:new dojo.Color([_5cd.r*s,_5cd.g*s,_5cd.b*s,_5cd.a])};});};})();}if(!dojo._hasResource["dojox.charting.themes.PrimaryColors"]){dojo._hasResource["dojox.charting.themes.PrimaryColors"]=true;dojo.provide("dojox.charting.themes.PrimaryColors");(function(){var dc=dojox.charting,_5cf=dc.themes,_5d0=["#f00","#0f0","#00f","#ff0","#0ff","#f0f"],_5d1={type:"linear",space:"plot",x1:0,y1:0,x2:0,y2:100};_5cf.PrimaryColors=new dc.Theme({seriesThemes:_5cf.gradientGenerator.generateMiniTheme(_5d0,_5d1,90,40,25)});})();}if(!dojo._hasResource["dojox.charting.themes.ThreeD"]){dojo._hasResource["dojox.charting.themes.ThreeD"]=true;dojo.provide("dojox.charting.themes.ThreeD");(function(){var dc=dojox.charting,_5d2=dc.themes,_5d3=dc.Theme,gi=_5d2.gradientGenerator.generateGradientByIntensity,_5d4=["#f00","#0f0","#00f","#ff0","#0ff","#f0f"],_5d5={type:"linear",space:"shape",x1:0,y1:0,x2:100,y2:0},_5d6=[{o:0,i:174},{o:0.08,i:231},{o:0.18,i:237},{o:0.3,i:231},{o:0.39,i:221},{o:0.49,i:206},{o:0.58,i:187},{o:0.68,i:165},{o:0.8,i:128},{o:0.9,i:102},{o:1,i:174}],_5d7=2,_5d8=100,_5d9=50,_5da=dojo.map(_5d4,function(c){var fill=dojo.delegate(_5d5),_5d4=fill.colors=_5d2.gradientGenerator.generateGradientByIntensity(c,_5d6),_5db=_5d4[_5d7].color;_5db.r+=_5d8;_5db.g+=_5d8;_5db.b+=_5d8;_5db.sanitize();return fill;});_5d2.ThreeD=_5d2.PrimaryColors.clone();_5d2.ThreeD.series.shadow={dx:1,dy:1,width:3,color:[0,0,0,0.15]};_5d2.ThreeD.next=function(_5dc,_5dd,_5de){if(_5dc=="bar"||_5dc=="column"){var _5df=this._current%this.seriesThemes.length,s=this.seriesThemes[_5df],old=s.fill;s.fill=_5da[_5df];var _5e0=_5d3.prototype.next.apply(this,arguments);s.fill=old;return _5e0;}return _5d3.prototype.next.apply(this,arguments);};})();}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_5e1,_5e2){var _5e3=[];var _5e4,_5e5,_5e6=0;while(_5e4=re.exec(str)){_5e5=str.slice(_5e6,re.lastIndex-_5e4[0].length);if(_5e5.length){_5e3.push(_5e5);}if(_5e1){if(dojo.isOpera){var copy=_5e4.slice(0);while(copy.length<_5e4.length){copy.push(null);}_5e4=copy;}var _5e7=_5e1.apply(_5e2,_5e4.slice(1).concat(_5e3.length));if(typeof _5e7!="undefined"){_5e3.push(_5e7);}}_5e6=re.lastIndex;}_5e5=str.slice(_5e6);if(_5e5.length){_5e3.push(_5e5);}return _5e3;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_5e8,_5e9){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _5ea=new dojox.string.sprintf.Formatter(_5e8);return _5ea.format.apply(_5ea,args);};dojox.string.sprintf.Formatter=function(_5eb){var _5ec=[];this._mapped=false;this._format=_5eb;this._tokens=dojox.string.tokenize(_5eb,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_5ed,_5ee,_5ef,_5f0,_5f1,_5f2,_5f3){if(_5ed){this._mapped=true;}return {mapping:_5ed,intmapping:_5ee,flags:_5ef,_minWidth:_5f0,period:_5f1,_precision:_5f2,specifier:_5f3};},_specifiers:{b:{base:2,isInt:true},o:{base:8,isInt:true},x:{base:16,isInt:true},X:{extend:["x"],toUpper:true},d:{base:10,isInt:true},i:{extend:["d"]},u:{extend:["d"],isUnsigned:true},c:{setArg:function(_5f4){if(!isNaN(_5f4.arg)){var num=parseInt(_5f4.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_5f4.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_5f5){_5f5.maxWidth=(_5f5.period==".")?_5f5.precision:-1;}},e:{isDouble:true,doubleNotation:"e"},E:{extend:["e"],toUpper:true},f:{isDouble:true,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:true,doubleNotation:"g"},G:{extend:["g"],toUpper:true}},format:function(_5f6){if(this._mapped&&typeof _5f6!="object"){throw new Error("format requires a mapping");}var str="";var _5f7=0;for(var i=0,_5f8;i<this._tokens.length;i++){_5f8=this._tokens[i];if(typeof _5f8=="string"){str+=_5f8;}else{if(this._mapped){if(typeof _5f6[_5f8.mapping]=="undefined"){throw new Error("missing key "+_5f8.mapping);}_5f8.arg=_5f6[_5f8.mapping];}else{if(_5f8.intmapping){var _5f7=parseInt(_5f8.intmapping)-1;}if(_5f7>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_5f8.arg=arguments[_5f7++];}if(!_5f8.compiled){_5f8.compiled=true;_5f8.sign="";_5f8.zeroPad=false;_5f8.rightJustify=false;_5f8.alternative=false;var _5f9={};for(var fi=_5f8.flags.length;fi--;){var flag=_5f8.flags.charAt(fi);_5f9[flag]=true;switch(flag){case " ":_5f8.sign=" ";break;case "+":_5f8.sign="+";break;case "0":_5f8.zeroPad=(_5f9["-"])?false:true;break;case "-":_5f8.rightJustify=true;_5f8.zeroPad=false;break;case "#":_5f8.alternative=true;break;default:throw Error("bad formatting flag '"+_5f8.flags.charAt(fi)+"'");}}_5f8.minWidth=(_5f8._minWidth)?parseInt(_5f8._minWidth):0;_5f8.maxWidth=-1;_5f8.toUpper=false;_5f8.isUnsigned=false;_5f8.isInt=false;_5f8.isDouble=false;_5f8.precision=1;if(_5f8.period=="."){if(_5f8._precision){_5f8.precision=parseInt(_5f8._precision);}else{_5f8.precision=0;}}var _5fa=this._specifiers[_5f8.specifier];if(typeof _5fa=="undefined"){throw new Error("unexpected specifier '"+_5f8.specifier+"'");}if(_5fa.extend){dojo.mixin(_5fa,this._specifiers[_5fa.extend]);delete _5fa.extend;}dojo.mixin(_5f8,_5fa);}if(typeof _5f8.setArg=="function"){_5f8.setArg(_5f8);}if(typeof _5f8.setMaxWidth=="function"){_5f8.setMaxWidth(_5f8);}if(_5f8._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_5f8.minWidth=parseInt(arguments[_5f7++]);if(isNaN(_5f8.minWidth)){throw new Error("the argument for * width at position "+_5f7+" is not a number in "+this._format);}if(_5f8.minWidth<0){_5f8.rightJustify=true;_5f8.minWidth=-_5f8.minWidth;}}if(_5f8._precision=="*"&&_5f8.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_5f8.precision=parseInt(arguments[_5f7++]);if(isNaN(_5f8.precision)){throw Error("the argument for * precision at position "+_5f7+" is not a number in "+this._format);}if(_5f8.precision<0){_5f8.precision=1;_5f8.period="";}}if(_5f8.isInt){if(_5f8.period=="."){_5f8.zeroPad=false;}this.formatInt(_5f8);}else{if(_5f8.isDouble){if(_5f8.period!="."){_5f8.precision=6;}this.formatDouble(_5f8);}}this.fitField(_5f8);str+=""+_5f8.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_5fb){var i=parseInt(_5fb.arg);if(!isFinite(i)){if(typeof _5fb.arg!="number"){throw new Error("format argument '"+_5fb.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_5fb.isUnsigned||_5fb.base!=10)){i=4294967295+i+1;}if(i<0){_5fb.arg=(-i).toString(_5fb.base);this.zeroPad(_5fb);_5fb.arg="-"+_5fb.arg;}else{_5fb.arg=i.toString(_5fb.base);if(!i&&!_5fb.precision){_5fb.arg="";}else{this.zeroPad(_5fb);}if(_5fb.sign){_5fb.arg=_5fb.sign+_5fb.arg;}}if(_5fb.base==16){if(_5fb.alternative){_5fb.arg="0x"+_5fb.arg;}_5fb.arg=_5fb.toUpper?_5fb.arg.toUpperCase():_5fb.arg.toLowerCase();}if(_5fb.base==8){if(_5fb.alternative&&_5fb.arg.charAt(0)!="0"){_5fb.arg="0"+_5fb.arg;}}},formatDouble:function(_5fc){var f=parseFloat(_5fc.arg);if(!isFinite(f)){if(typeof _5fc.arg!="number"){throw new Error("format argument '"+_5fc.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_5fc.doubleNotation){case "e":_5fc.arg=f.toExponential(_5fc.precision);break;case "f":_5fc.arg=f.toFixed(_5fc.precision);break;case "g":if(Math.abs(f)<0.0001){_5fc.arg=f.toExponential(_5fc.precision>0?_5fc.precision-1:_5fc.precision);}else{_5fc.arg=f.toPrecision(_5fc.precision);}if(!_5fc.alternative){_5fc.arg=_5fc.arg.replace(/(\..*[^0])0*/,"$1");_5fc.arg=_5fc.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_5fc.doubleNotation+"'");}_5fc.arg=_5fc.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_5fc.arg=_5fc.arg.replace(/^\./,"0.");}if(_5fc.alternative){_5fc.arg=_5fc.arg.replace(/^(\d+)$/,"$1.");_5fc.arg=_5fc.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_5fc.sign){_5fc.arg=_5fc.sign+_5fc.arg;}_5fc.arg=_5fc.toUpper?_5fc.arg.toUpperCase():_5fc.arg.toLowerCase();},zeroPad:function(_5fd,_5fe){_5fe=(arguments.length==2)?_5fe:_5fd.precision;if(typeof _5fd.arg!="string"){_5fd.arg=""+_5fd.arg;}var _5ff=_5fe-10;while(_5fd.arg.length<_5ff){_5fd.arg=(_5fd.rightJustify)?_5fd.arg+this._zeros10:this._zeros10+_5fd.arg;}var pad=_5fe-_5fd.arg.length;_5fd.arg=(_5fd.rightJustify)?_5fd.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_5fd.arg;},fitField:function(_600){if(_600.maxWidth>=0&&_600.arg.length>_600.maxWidth){return _600.arg.substring(0,_600.maxWidth);}if(_600.zeroPad){this.zeroPad(_600,_600.minWidth);return;}this.spacePad(_600);},spacePad:function(_601,_602){_602=(arguments.length==2)?_602:_601.minWidth;if(typeof _601.arg!="string"){_601.arg=""+_601.arg;}var _603=_602-10;while(_601.arg.length<_603){_601.arg=(_601.rightJustify)?_601.arg+this._spaces10:this._spaces10+_601.arg;}var pad=_602-_601.arg.length;_601.arg=(_601.rightJustify)?_601.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_601.arg;}});}
