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

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

		http://dojotoolkit.org/community/licensing.shtml
*/

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

var dj_global=this;
function dj_undef(_1,_2){
if(!_2){
_2=dj_global;
}
return (typeof _2[_1]=="undefined");
}
if(dj_undef("djConfig")){
var djConfig={};
}
if(dj_undef("dojo")){
var dojo={};
}
dojo.version={major:0,minor:3,patch:0,flag:"+",revision:Number("$Rev: 4030 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
return (_4&&!dj_undef(_3,_4)?_4[_3]:(_5?(_4[_3]={}):undefined));
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7?_7:dj_global);
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_d,_e){
if(typeof _d!="string"){
return dj_global;
}
if(_d.indexOf(".")==-1){
return dojo.evalProp(_d,dj_global,_e);
}
with(dojo.parseObjPath(_d,dj_global,_e)){
return dojo.evalProp(prop,obj,_e);
}
};
dojo.errorToString=function(_f){
return ((!dj_undef("message",_f))?_f.message:(dj_undef("description",_f)?_f:_f.description));
};
dojo.raise=function(_10,_11){
if(_11){
_10=_10+": "+dojo.errorToString(_11);
}
var he=dojo.hostenv;
if((!dj_undef("hostenv",dojo))&&(!dj_undef("println",dojo.hostenv))){
dojo.hostenv.println("FATAL: "+_10);
}
throw Error(_10);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(s){
return dj_global.eval?dj_global.eval(s):eval(s);
}
dojo.unimplemented=function(_15,_16){
var _17="'"+_15+"' not implemented";
if((!dj_undef(_16))&&(_16)){
_17+=" "+_16;
}
dojo.raise(_17);
};
dojo.deprecated=function(_18,_19,_1a){
var _1b="DEPRECATED: "+_18;
if(_19){
_1b+=" "+_19;
}
if(_1a){
_1b+=" -- will be removed in version: "+_1a;
}
dojo.debug(_1b);
};
dojo.inherits=function(_1c,_1d){
if(typeof _1d!="function"){
dojo.raise("dojo.inherits: superclass argument ["+_1d+"] must be a function (subclass: ["+_1c+"']");
}
_1c.prototype=new _1d();
_1c.prototype.constructor=_1c;
_1c.superclass=_1d.prototype;
_1c["super"]=_1d.prototype;
};
dojo.render=(function(){
function vscaffold(_1e,_1f){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1e};
for(var x in _1f){
tmp[x]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _22={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_22;
}else{
for(var _23 in _22){
if(typeof djConfig[_23]=="undefined"){
djConfig[_23]=_22[_23];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
var _26=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _27={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_28,_29){
this.modulePrefixes_[_28]={name:_28,value:_29};
},getModulePrefix:function(_2a){
var mp=this.modulePrefixes_;
if((mp[_2a])&&(mp[_2a]["name"])){
return mp[_2a].value;
}
return _2a;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],loadNotifying:false};
for(var _2c in _27){
dojo.hostenv[_2c]=_27[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
if((_2d.charAt(0)=="/")||(_2d.match(/^\w+:/))){
dojo.raise("relpath '"+_2d+"'; must be relative");
}
var uri=this.getBaseScriptUri()+_2d;
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_2e)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return 1;
}
var _33=this.getText(uri,null,true);
if(_33==null){
return 0;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_36,false)))?true:false;
};
dojo.loaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.addOnLoad=function(obj,_3c){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3c]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if((this.loadUriStack.length==0)&&(this.getTextStack.length==0)){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_3e){
var _3f=_3e.split(".");
for(var i=_3f.length-1;i>0;i--){
var _41=_3f.slice(0,i).join(".");
var _42=this.getModulePrefix(_41);
if(_42!=_41){
_3f.splice(0,i,_42);
break;
}
}
return _3f;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_43,_44,_45){
if(!_43){
return;
}
_45=this._global_omit_module_check||_45;
var _46=this.findModule(_43,false);
if(_46){
return _46;
}
if(dj_undef(_43,this.loading_modules_)){
this.addedToLoadingCount.push(_43);
}
this.loading_modules_[_43]=1;
var _47=_43.replace(/\./g,"/")+".js";
var _48=this.getModuleSymbols(_43);
var _49=_48[_48.length-1];
var _4a=_43.split(".");
if(_49=="*"){
_43=(_4a.slice(0,-1)).join(".");
while(_48.length){
_48.pop();
_48.push(this.pkgFileName);
_47=_48.join("/")+".js";
if(_47.charAt(0)=="/"){
_47=_47.slice(1);
}
ok=this.loadPath(_47,((!_45)?_43:null));
if(ok){
break;
}
_48.pop();
}
}else{
_47=_48.join("/")+".js";
_43=_4a.join(".");
var ok=this.loadPath(_47,((!_45)?_43:null));
if((!ok)&&(!_44)){
_48.pop();
while(_48.length){
_47=_48.join("/")+".js";
ok=this.loadPath(_47,((!_45)?_43:null));
if(ok){
break;
}
_48.pop();
_47=_48.join("/")+"/"+this.pkgFileName+".js";
if(_47.charAt(0)=="/"){
_47=_47.slice(1);
}
ok=this.loadPath(_47,((!_45)?_43:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_45)){
dojo.raise("Could not load '"+_43+"'; last tried '"+_47+"'");
}
}
if(!_45&&!this["isXDomain"]){
_46=this.findModule(_43,false);
if(!_46){
dojo.raise("symbol '"+_43+"' is not defined after loading '"+_47+"'");
}
}
return _46;
};
dojo.hostenv.startPackage=function(_4c){
var _4d=dojo.evalObjPath((_4c.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_4c)).toLowerCase()]=_4d;
var _4e=_4c.split(/\./);
if(_4e[_4e.length-1]=="*"){
_4e.pop();
}
return dojo.evalObjPath(_4e.join("."),true);
};
dojo.hostenv.findModule=function(_4f,_50){
var lmn=(new String(_4f)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _52=dojo.evalObjPath(_4f);
if((_4f)&&(typeof _52!="undefined")&&(_52)){
this.loaded_modules_[lmn]=_52;
return _52;
}
if(_50){
dojo.raise("no loaded module named '"+_4f+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_53){
var _54=_53["common"]||[];
var _55=(_53[dojo.hostenv.name_])?_54.concat(_53[dojo.hostenv.name_]||[]):_54.concat(_53["default"]||[]);
for(var x=0;x<_55.length;x++){
var _57=_55[x];
if(_57.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_57);
}else{
dojo.hostenv.loadModule(_57);
}
}
};
dojo.require=function(){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(){
if((arguments[0]===true)||(arguments[0]=="common")||(arguments[0]&&dojo.render[arguments[0]].capable)){
var _58=[];
for(var i=1;i<arguments.length;i++){
_58.push(arguments[i]);
}
dojo.require.apply(dojo,_58);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_5a,_5b){
return dojo.hostenv.setModulePrefix(_5a,_5b);
};
dojo.exists=function(obj,_5d){
var p=_5d.split(".");
for(var i=0;i<p.length;i++){
if(!(obj[p[i]])){
return false;
}
obj=obj[p[i]];
}
return true;
};
if(typeof window=="undefined"){
dojo.raise("no window object");
}
(function(){
if(djConfig.allowQueryConfig){
var _60=document.location.toString();
var _61=_60.split("?",2);
if(_61.length>1){
var _62=_61[1];
var _63=_62.split("&");
for(var x in _63){
var sp=_63[x].split("=");
if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){
var opt=sp[0].substr(9);
try{
djConfig[opt]=eval(sp[1]);
}
catch(e){
djConfig[opt]=sp[1];
}
}
}
}
}
if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){
var _67=document.getElementsByTagName("script");
var _68=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_67.length;i++){
var src=_67[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_68);
if(m){
var _6c=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_6c+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_6c;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_6c;
}
break;
}
}
}
var dr=dojo.render;
var drh=dojo.render.html;
var drs=dojo.render.svg;
var dua=drh.UA=navigator.userAgent;
var dav=drh.AV=navigator.appVersion;
var t=true;
var f=false;
drh.capable=t;
drh.support.builtin=t;
dr.ver=parseFloat(drh.AV);
dr.os.mac=dav.indexOf("Macintosh")>=0;
dr.os.win=dav.indexOf("Windows")>=0;
dr.os.linux=dav.indexOf("X11")>=0;
drh.opera=dua.indexOf("Opera")>=0;
drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);
drh.safari=dav.indexOf("Safari")>=0;
var _74=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_74>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_74+6,_74+14);
}
drh.ie=(document.all)&&(!drh.opera);
drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;
drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;
drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;
dojo.locale=(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
var DJ_XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _75=null;
var _76=null;
try{
_75=new XMLHttpRequest();
}
catch(e){
}
if(!_75){
for(var i=0;i<3;++i){
var _78=DJ_XMLHTTP_PROGIDS[i];
try{
_75=new ActiveXObject(_78);
}
catch(e){
_76=e;
}
if(_75){
DJ_XMLHTTP_PROGIDS=[_78];
break;
}
}
}
if(!_75){
return dojo.raise("XMLHTTP not available",_76);
}
return _75;
};
dojo.hostenv.getText=function(uri,_7a,_7b){
var _7c=this.getXmlhttpObject();
if(_7a){
_7c.onreadystatechange=function(){
if((4==_7c.readyState)&&(_7c["status"])){
if(_7c.status==200){
_7a(_7c.responseText);
}
}
};
}
_7c.open("GET",uri,_7a?true:false);
try{
_7c.send(null);
}
catch(e){
if(_7b&&!_7a){
return null;
}else{
throw e;
}
}
if(_7a){
return null;
}
return _7c.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_7d){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_7d);
}else{
try{
var _7e=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_7e){
_7e=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_7d));
_7e.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_7d+"</div>");
}
catch(e2){
window.status=_7d;
}
}
}
};
dojo.addOnLoad(function(){
dojo.hostenv._println_safe=true;
while(dojo.hostenv._println_buffer.length>0){
dojo.hostenv.println(dojo.hostenv._println_buffer.shift());
}
});
function dj_addNodeEvtHdlr(_80,_81,fp,_83){
var _84=_80["on"+_81]||function(){
};
_80["on"+_81]=function(){
fp.apply(_80,arguments);
_84.apply(_80,arguments);
};
return true;
}
dj_addNodeEvtHdlr(window,"load",function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
var _85=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_85();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_85);
}
});
dojo.hostenv.makeWidgets=function(){
var _86=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_86=_86.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_86=_86.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_86.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
try{
var _87=new dojo.xml.Parse();
if(_86.length>0){
for(var x=0;x<_86.length;x++){
var _89=document.getElementById(_86[x]);
if(!_89){
continue;
}
var _8a=_87.parseElement(_89,null,true);
dojo.widget.getParser().createComponents(_8a);
}
}else{
if(djConfig.parseWidgets){
var _8a=_87.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_8a);
}
}
}
catch(e){
dojo.debug("auto-build-widgets error:",e);
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.write("<style>v:*{ behavior:url(#default#VML); }</style>");
document.write("<xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
dojo.byId=function(id,doc){
if(id&&(typeof id=="string"||id instanceof String)){
if(!doc){
doc=document;
}
return doc.getElementById(id);
}
return id;
};
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _8d=false;
var _8e=false;
var _8f=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_8d=true;
}else{
if(typeof this["load"]=="function"){
_8e=true;
}else{
if(window.widget){
_8f=true;
}
}
}
var _90=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_90.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_8d)&&(!_8f)){
_90.push("browser_debug.js");
}
if((this["djConfig"])&&(djConfig["compat"])){
_90.push("compat/"+djConfig["compat"]+".js");
}
var _91=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_91=djConfig["baseLoaderUri"];
}
for(var x=0;x<_90.length;x++){
var _93=_91+"src/"+_90[x];
if(_8d||_8e){
load(_93);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_93+"'></scr"+"ipt>");
}
catch(e){
var _94=document.createElement("script");
_94.src=_93;
document.getElementsByTagName("head")[0].appendChild(_94);
}
}
}
})();
dojo.fallback_locale="en";
dojo.normalizeLocale=function(_95){
return _95?_95.toLowerCase():dojo.locale;
};
dojo.requireLocalization=function(_96,_97,_98){
dojo.debug("EXPERIMENTAL: dojo.requireLocalization");
var _99=dojo.hostenv.getModuleSymbols(_96);
var _9a=_99.concat("nls").join("/");
_98=dojo.normalizeLocale(_98);
var _9b=_98.split("-");
var _9c=[];
for(var i=_9b.length;i>0;i--){
_9c.push(_9b.slice(0,i).join("-"));
}
if(_9c[_9c.length-1]!=dojo.fallback_locale){
_9c.push(dojo.fallback_locale);
}
var _9e=[_96,"_nls",_97].join(".");
var _9f=dojo.hostenv.startPackage(_9e);
dojo.hostenv.loaded_modules_[_9e]=_9f;
var _a0=false;
for(var i=_9c.length-1;i>=0;i--){
var loc=_9c[i];
var pkg=[_9e,loc].join(".");
var _a3=false;
if(!dojo.hostenv.findModule(pkg)){
dojo.hostenv.loaded_modules_[pkg]=null;
var _a4=[_9a,loc,_97].join("/")+".js";
_a3=dojo.hostenv.loadPath(_a4,null,function(_a5){
_9f[loc]=_a5;
if(_a0){
for(var x in _a0){
if(!_9f[loc][x]){
_9f[loc][x]=_a0[x];
}
}
}
});
}else{
_a3=true;
}
if(_a3&&_9f[loc]){
_a0=_9f[loc];
}
}
};
dojo.provide("dojo.string.common");
dojo.require("dojo.string");
dojo.string.trim=function(str,wh){
if(!str.replace){
return str;
}
if(!str.length){
return str;
}
var re=(wh>0)?(/^\s+/):(wh<0)?(/\s+$/):(/^\s+|\s+$/g);
return str.replace(re,"");
};
dojo.string.trimStart=function(str){
return dojo.string.trim(str,1);
};
dojo.string.trimEnd=function(str){
return dojo.string.trim(str,-1);
};
dojo.string.repeat=function(str,_ad,_ae){
var out="";
for(var i=0;i<_ad;i++){
out+=str;
if(_ae&&i<_ad-1){
out+=_ae;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.require("dojo.string.common");
dojo.provide("dojo.lang.common");
dojo.require("dojo.lang");
dojo.lang.mixin=function(obj,_bd){
var _be={};
for(var x in _bd){
if(typeof _be[x]=="undefined"||_be[x]!=_bd[x]){
obj[x]=_bd[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_bd["toString"])&&_bd["toString"]!=obj["toString"]){
obj.toString=_bd.toString;
}
return obj;
};
dojo.lang.extend=function(_c0,_c1){
this.mixin(_c0.prototype,_c1);
};
dojo.lang.find=function(arr,val,_c4,_c5){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _c7=dojo.lang.isString(arr);
if(_c7){
arr=arr.split("");
}
if(_c5){
var _c8=-1;
var i=arr.length-1;
var end=-1;
}else{
var _c8=1;
var i=0;
var end=arr.length;
}
if(_c4){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_c8;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_c8;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_cd){
return dojo.lang.find(arr,val,_cd,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(arr,val){
return dojo.lang.find(arr,val)>-1;
};
dojo.lang.isObject=function(wh){
if(!wh){
return false;
}
return (typeof wh=="object"||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh));
};
dojo.lang.isArray=function(wh){
return (wh instanceof Array||typeof wh=="array");
};
dojo.lang.isArrayLike=function(wh){
if(dojo.lang.isString(wh)){
return false;
}
if(dojo.lang.isFunction(wh)){
return false;
}
if(dojo.lang.isArray(wh)){
return true;
}
if(typeof wh!="undefined"&&wh&&dojo.lang.isNumber(wh.length)&&isFinite(wh.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(wh){
if(!wh){
return false;
}
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
if(!wh){
return false;
}
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh));
};
dojo.lang.isBoolean=function(wh){
return (wh instanceof Boolean||typeof wh=="boolean");
};
dojo.lang.isNumber=function(wh){
return (wh instanceof Number||typeof wh=="number");
};
dojo.lang.isUndefined=function(wh){
return ((wh==undefined)&&(typeof wh=="undefined"));
};
dojo.provide("dojo.lang.extras");
dojo.require("dojo.lang.common");
dojo.lang.setTimeout=function(_d9,_da){
var _db=window,argsStart=2;
if(!dojo.lang.isFunction(_d9)){
_db=_d9;
_d9=_da;
_da=arguments[2];
argsStart++;
}
if(dojo.lang.isString(_d9)){
_d9=_db[_d9];
}
var _dc=[];
for(var i=argsStart;i<arguments.length;i++){
_dc.push(arguments[i]);
}
return setTimeout(function(){
_d9.apply(_db,_dc);
},_da);
};
dojo.lang.getNameInObj=function(ns,_df){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===_df){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj){
var ret={},key;
for(key in obj){
if(dojo.lang.isUndefined(ret[key])){
ret[key]=obj[key];
}
}
return ret;
};
dojo.lang.firstValued=function(){
for(var i=0;i<arguments.length;i++){
if(typeof arguments[i]!="undefined"){
return arguments[i];
}
}
return undefined;
};
dojo.lang.getObjPathValue=function(_e4,_e5,_e6){
with(dojo.parseObjPath(_e4,_e5,_e6)){
return dojo.evalProp(prop,obj,_e6);
}
};
dojo.lang.setObjPathValue=function(_e7,_e8,_e9,_ea){
if(arguments.length<4){
_ea=true;
}
with(dojo.parseObjPath(_e7,_e9,_ea)){
if(obj&&(_ea||(prop in obj))){
obj[prop]=_e8;
}
}
};
dojo.provide("dojo.io.IO");
dojo.require("dojo.string");
dojo.require("dojo.lang.extras");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_ec,_ed,_ee){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_ec){
this.mimetype=_ec;
}
if(_ed){
this.transport=_ed;
}
if(arguments.length>=4){
this.changeUrl=_ee;
}
}
};
dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(_ef,_f0,evt){
},error:function(_f2,_f3){
},timeout:function(_f4){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_f5){
if(_f5["url"]){
_f5.url=_f5.url.toString();
}
if(_f5["formNode"]){
_f5.formNode=dojo.byId(_f5.formNode);
}
if(!_f5["method"]&&_f5["formNode"]&&_f5["formNode"].method){
_f5.method=_f5["formNode"].method;
}
if(!_f5["handle"]&&_f5["handler"]){
_f5.handle=_f5.handler;
}
if(!_f5["load"]&&_f5["loaded"]){
_f5.load=_f5.loaded;
}
if(!_f5["changeUrl"]&&_f5["changeURL"]){
_f5.changeUrl=_f5.changeURL;
}
_f5.encoding=dojo.lang.firstValued(_f5["encoding"],djConfig["bindEncoding"],"");
_f5.sendTransport=dojo.lang.firstValued(_f5["sendTransport"],djConfig["ioSendTransport"],false);
var _f6=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_f6(_f5[fn])){
continue;
}
if(_f6(_f5["handle"])){
_f5[fn]=_f5.handle;
}
}
dojo.lang.mixin(this,_f5);
}});
dojo.io.Error=function(msg,_fa,num){
this.message=msg;
this.type=_fa||"unknown";
this.number=num||0;
};
dojo.io.transports.addTransport=function(_fc){
this.push(_fc);
this[_fc]=dojo.io[_fc];
};
dojo.io.bind=function(_fd){
if(!(_fd instanceof dojo.io.Request)){
try{
_fd=new dojo.io.Request(_fd);
}
catch(e){
dojo.debug(e);
}
}
var _fe="";
if(_fd["transport"]){
_fe=_fd["transport"];
if(!this[_fe]){
return _fd;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_fd))){
_fe=tmp;
}
}
if(_fe==""){
return _fd;
}
}
this[_fe].bind(_fd);
_fd.bindSuccess=true;
return _fd;
};
dojo.io.queueBind=function(_101){
if(!(_101 instanceof dojo.io.Request)){
try{
_101=new dojo.io.Request(_101);
}
catch(e){
dojo.debug(e);
}
}
var _102=_101.load;
_101.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_102.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _104=_101.error;
_101.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_104.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_101);
dojo.io._dispatchNextQueueBind();
return _101;
};
dojo.io._dispatchNextQueueBind=function(){
if(!dojo.io._queueBindInFlight){
dojo.io._queueBindInFlight=true;
if(dojo.io._bindQueue.length>0){
dojo.io.bind(dojo.io._bindQueue.shift());
}else{
dojo.io._queueBindInFlight=false;
}
}
};
dojo.io._bindQueue=[];
dojo.io._queueBindInFlight=false;
dojo.io.argsFromMap=function(map,_107,last){
var enc=/utf/i.test(_107||"")?encodeURIComponent:dojo.string.encodeAscii;
var _10a=[];
var _10b=new Object();
for(var name in map){
var _10d=function(elt){
var val=enc(name)+"="+enc(elt);
_10a[(last==name)?"push":"unshift"](val);
};
if(!_10b[name]){
var _110=map[name];
if(dojo.lang.isArray(_110)){
dojo.lang.forEach(_110,_10d);
}else{
_10d(_110);
}
}
}
return _10a.join("&");
};
dojo.io.setIFrameSrc=function(_111,src,_113){
try{
var r=dojo.render.html;
if(!_113){
if(r.safari){
_111.location=src;
}else{
frames[_111.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_111.contentWindow.document;
}else{
if(r.safari){
idoc=_111.document;
}else{
idoc=_111.contentWindow;
}
}
idoc.location.replace(src);
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.lang.has=function(obj,name){
try{
return (typeof obj[name]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _11a=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_11a++;
break;
}
}
return (_11a==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_11e){
var _11f=dojo.lang.isString(arr);
if(_11f){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_11e)){
_11e=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_11e){
var _120=obj;
obj=_11e;
_11e=_120;
}
}
if(Array.map){
var _121=Array.map(arr,_11e,obj);
}else{
var _121=[];
for(var i=0;i<arr.length;++i){
_121.push(_11e.call(obj,arr[i]));
}
}
if(_11f){
return _121.join("");
}else{
return _121;
}
};
dojo.lang.forEach=function(_123,_124,_125){
if(dojo.lang.isString(_123)){
_123=_123.split("");
}
if(Array.forEach){
Array.forEach(_123,_124,_125);
}else{
if(!_125){
_125=dj_global;
}
for(var i=0,l=_123.length;i<l;i++){
_124.call(_125,_123[i],i,_123);
}
}
};
dojo.lang._everyOrSome=function(_127,arr,_129,_12a){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_127)?"every":"some"](arr,_129,_12a);
}else{
if(!_12a){
_12a=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _12c=_129.call(_12a,arr[i],i,arr);
if((_127)&&(!_12c)){
return false;
}else{
if((!_127)&&(_12c)){
return true;
}
}
}
return (_127)?true:false;
}
};
dojo.lang.every=function(arr,_12e,_12f){
return this._everyOrSome(true,arr,_12e,_12f);
};
dojo.lang.some=function(arr,_131,_132){
return this._everyOrSome(false,arr,_131,_132);
};
dojo.lang.filter=function(arr,_134,_135){
var _136=dojo.lang.isString(arr);
if(_136){
arr=arr.split("");
}
if(Array.filter){
var _137=Array.filter(arr,_134,_135);
}else{
if(!_135){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_135=dj_global;
}
var _137=[];
for(var i=0;i<arr.length;i++){
if(_134.call(_135,arr[i],i,arr)){
_137.push(arr[i]);
}
}
}
if(_136){
return _137.join("");
}else{
return _137;
}
};
dojo.lang.unnest=function(){
var out=[];
for(var i=0;i<arguments.length;i++){
if(dojo.lang.isArrayLike(arguments[i])){
var add=dojo.lang.unnest.apply(this,arguments[i]);
out=out.concat(add);
}else{
out.push(arguments[i]);
}
}
return out;
};
dojo.lang.toArray=function(_13c,_13d){
var _13e=[];
for(var i=_13d||0;i<_13c.length;i++){
_13e.push(_13c[i]);
}
return _13e;
};
dojo.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.lang.hitch=function(_140,_141){
if(dojo.lang.isString(_141)){
var fcn=_140[_141];
}else{
var fcn=_141;
}
return function(){
return fcn.apply(_140,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_143,_144){
var nso=(_144||dojo.lang.anon);
if((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true)){
for(var x in nso){
if(nso[x]===_143){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_143;
return ret;
};
dojo.lang.forward=function(_148){
return function(){
return this[_148].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _14b=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_14b.push(arguments[x]);
}
var _14d=(func["__preJoinArity"]||func.length)-_14b.length;
function gather(_14e,_14f,_150){
var _151=_150;
var _152=_14f.slice(0);
for(var x=0;x<_14e.length;x++){
_152.push(_14e[x]);
}
_150=_150-_14e.length;
if(_150<=0){
var res=func.apply(ns,_152);
_150=_151;
return res;
}else{
return function(){
return gather(arguments,_152,_150);
};
}
}
return gather([],_14b,_14d);
};
dojo.lang.curryArguments=function(ns,func,args,_158){
var _159=[];
var x=_158||0;
for(x=_158;x<args.length;x++){
_159.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_159));
};
dojo.lang.tryThese=function(){
for(var x=0;x<arguments.length;x++){
try{
if(typeof arguments[x]=="function"){
var ret=(arguments[x]());
if(ret){
return ret;
}
}
}
catch(e){
dojo.debug(e);
}
}
};
dojo.lang.delayThese=function(farr,cb,_15f,_160){
if(!farr.length){
if(typeof _160=="function"){
_160();
}
return;
}
if((typeof _15f=="undefined")&&(typeof cb=="number")){
_15f=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_15f){
_15f=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_15f,_160);
},_15f);
};
dojo.provide("dojo.string.extras");
dojo.require("dojo.string.common");
dojo.require("dojo.lang");
dojo.string.substituteParams=function(_161,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _161.replace(/\%\{(\w+)\}/g,function(_164,key){
return map[key]||dojo.raise("Substitution not found: "+key);
});
};
dojo.string.paramString=function(str,_167,_168){
dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");
for(var name in _167){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_167[name]);
}
if(_168){
str=str.replace(/%\{([^\}\s]+)\}/g,"");
}
return str;
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
if(arguments.length==0){
str=this;
}
var _16c=str.split(" ");
for(var i in _16c){
_16c[i]=_16c[i].charAt(0).toUpperCase()+_16c[i].substring(1);
}
return _16c.join(" ");
};
dojo.string.isBlank=function(str){
if(!dojo.lang.isString(str)){
return true;
}
return (dojo.string.trim(str).length==0);
};
dojo.string.encodeAscii=function(str){
if(!dojo.lang.isString(str)){
return str;
}
var ret="";
var _171=escape(str);
var _172,re=/%u([0-9A-F]{4})/i;
while((_172=_171.match(re))){
var num=Number("0x"+_172[1]);
var _174=escape("&#"+num+";");
ret+=_171.substring(0,_172.index)+_174;
_171=_171.substring(_172.index+_172[0].length);
}
ret+=_171.replace(/\+/g,"%2B");
return ret;
};
dojo.string.escape=function(type,str){
var args=dojo.lang.toArray(arguments,1);
switch(type.toLowerCase()){
case "xml":
case "html":
case "xhtml":
return dojo.string.escapeXml.apply(this,args);
case "sql":
return dojo.string.escapeSql.apply(this,args);
case "regexp":
case "regex":
return dojo.string.escapeRegExp.apply(this,args);
case "javascript":
case "jscript":
case "js":
return dojo.string.escapeJavaScript.apply(this,args);
case "ascii":
return dojo.string.encodeAscii.apply(this,args);
default:
return str;
}
};
dojo.string.escapeXml=function(str,_179){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_179){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dojo.string.escapeSql=function(str){
return str.replace(/'/gm,"''");
};
dojo.string.escapeRegExp=function(str){
return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");
};
dojo.string.escapeJavaScript=function(str){
return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");
};
dojo.string.escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.string.summary=function(str,len){
if(!len||str.length<=len){
return str;
}else{
return str.substring(0,len).replace(/\.+$/,"")+"...";
}
};
dojo.string.endsWith=function(str,end,_182){
if(_182){
str=str.toLowerCase();
end=end.toLowerCase();
}
if((str.length-end.length)<0){
return false;
}
return str.lastIndexOf(end)==str.length-end.length;
};
dojo.string.endsWithAny=function(str){
for(var i=1;i<arguments.length;i++){
if(dojo.string.endsWith(str,arguments[i])){
return true;
}
}
return false;
};
dojo.string.startsWith=function(str,_186,_187){
if(_187){
str=str.toLowerCase();
_186=_186.toLowerCase();
}
return str.indexOf(_186)==0;
};
dojo.string.startsWithAny=function(str){
for(var i=1;i<arguments.length;i++){
if(dojo.string.startsWith(str,arguments[i])){
return true;
}
}
return false;
};
dojo.string.has=function(str){
for(var i=1;i<arguments.length;i++){
if(str.indexOf(arguments[i])>-1){
return true;
}
}
return false;
};
dojo.string.normalizeNewlines=function(text,_18d){
if(_18d=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_18d=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n");
text=text.replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_18f){
var _190=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_18f){
_190.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_190.push(str.substr(prevcomma));
return _190;
};
dojo.provide("dojo.dom");
dojo.require("dojo.lang.array");
dojo.dom.ELEMENT_NODE=1;
dojo.dom.ATTRIBUTE_NODE=2;
dojo.dom.TEXT_NODE=3;
dojo.dom.CDATA_SECTION_NODE=4;
dojo.dom.ENTITY_REFERENCE_NODE=5;
dojo.dom.ENTITY_NODE=6;
dojo.dom.PROCESSING_INSTRUCTION_NODE=7;
dojo.dom.COMMENT_NODE=8;
dojo.dom.DOCUMENT_NODE=9;
dojo.dom.DOCUMENT_TYPE_NODE=10;
dojo.dom.DOCUMENT_FRAGMENT_NODE=11;
dojo.dom.NOTATION_NODE=12;
dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";
dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};
dojo.dom.isNode=function(wh){
if(typeof Element=="object"){
try{
return wh instanceof Element;
}
catch(E){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getTagName=function(node){
dojo.deprecated("dojo.dom.getTagName","use node.tagName instead","0.4");
var _194=node.tagName;
if(_194.substr(0,5).toLowerCase()!="dojo:"){
if(_194.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_194.substring(4).toLowerCase();
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((node.getAttributeNS)&&(node.getAttributeNS(this.dojoml,"type"))){
return "dojo:"+node.getAttributeNS(this.dojoml,"type").toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){
var _196=node.className||node.getAttribute("class");
if((_196)&&(_196.indexOf)&&(_196.indexOf("dojo-")!=-1)){
var _197=_196.split(" ");
for(var x=0;x<_197.length;x++){
if((_197[x].length>5)&&(_197[x].indexOf("dojo-")>=0)){
return "dojo:"+_197[x].substr(5).toLowerCase();
}
}
}
}
}
return _194.toLowerCase();
};
dojo.dom.getUniqueId=function(){
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(document.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_19a,_19b){
var node=_19a.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_19b&&node&&node.tagName&&node.tagName.toLowerCase()!=_19b.toLowerCase()){
node=dojo.dom.nextElement(node,_19b);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_19d,_19e){
var node=_19d.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_19e&&node&&node.tagName&&node.tagName.toLowerCase()!=_19e.toLowerCase()){
node=dojo.dom.prevElement(node,_19e);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_1a1){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1a1&&_1a1.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_1a1);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_1a3){
if(!node){
return null;
}
if(_1a3){
_1a3=_1a3.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1a3&&_1a3.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_1a3);
}
return node;
};
dojo.dom.moveChildren=function(_1a4,_1a5,trim){
var _1a7=0;
if(trim){
while(_1a4.hasChildNodes()&&_1a4.firstChild.nodeType==dojo.dom.TEXT_NODE){
_1a4.removeChild(_1a4.firstChild);
}
while(_1a4.hasChildNodes()&&_1a4.lastChild.nodeType==dojo.dom.TEXT_NODE){
_1a4.removeChild(_1a4.lastChild);
}
}
while(_1a4.hasChildNodes()){
_1a5.appendChild(_1a4.firstChild);
_1a7++;
}
return _1a7;
};
dojo.dom.copyChildren=function(_1a8,_1a9,trim){
var _1ab=_1a8.cloneNode(true);
return this.moveChildren(_1ab,_1a9,trim);
};
dojo.dom.removeChildren=function(node){
var _1ad=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _1ad;
};
dojo.dom.replaceChildren=function(node,_1af){
dojo.dom.removeChildren(node);
node.appendChild(_1af);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_1b2,_1b3){
var _1b4=[];
var _1b5=dojo.lang.isFunction(_1b2);
while(node){
if(!_1b5||_1b2(node)){
_1b4.push(node);
}
if(_1b3&&_1b4.length>0){
return _1b4[0];
}
node=node.parentNode;
}
if(_1b3){
return null;
}
return _1b4;
};
dojo.dom.getAncestorsByTag=function(node,tag,_1b8){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_1b8);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_1bd,_1be){
if(_1be&&node){
node=node.parentNode;
}
while(node){
if(node==_1bd){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
if(!dj_undef("ActiveXObject")){
var _1c1=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_1c1.length;i++){
try{
doc=new ActiveXObject(_1c1[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((document.implementation)&&(document.implementation.createDocument)){
doc=document.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_1c4){
if(!_1c4){
_1c4="text/xml";
}
if(!dj_undef("DOMParser")){
var _1c5=new DOMParser();
return _1c5.parseFromString(str,_1c4);
}else{
if(!dj_undef("ActiveXObject")){
var _1c6=dojo.dom.createDocument();
if(_1c6){
_1c6.async=false;
_1c6.loadXML(str);
return _1c6;
}else{
dojo.debug("toXml didn't work?");
}
}else{
if(document.createElement){
var tmp=document.createElement("xml");
tmp.innerHTML=str;
if(document.implementation&&document.implementation.createDocument){
var _1c8=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_1c8.importNode(tmp.childNodes.item(i),true);
}
return _1c8;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_1cb){
if(_1cb.firstChild){
_1cb.insertBefore(node,_1cb.firstChild);
}else{
_1cb.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_1ce){
if(_1ce!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _1cf=ref.parentNode;
_1cf.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_1d2){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_1d2!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_1d2);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_1d6){
if((!node)||(!ref)||(!_1d6)){
return false;
}
switch(_1d6.toLowerCase()){
case "before":
return dojo.dom.insertBefore(node,ref);
case "after":
return dojo.dom.insertAfter(node,ref);
case "first":
if(ref.firstChild){
return dojo.dom.insertBefore(node,ref.firstChild);
}else{
ref.appendChild(node);
return true;
}
break;
default:
ref.appendChild(node);
return true;
}
};
dojo.dom.insertAtIndex=function(node,_1d8,_1d9){
var _1da=_1d8.childNodes;
if(!_1da.length){
_1d8.appendChild(node);
return true;
}
var _1db=null;
for(var i=0;i<_1da.length;i++){
var _1dd=_1da.item(i)["getAttribute"]?parseInt(_1da.item(i).getAttribute("dojoinsertionindex")):-1;
if(_1dd<_1d9){
_1db=_1da.item(i);
}
}
if(_1db){
return dojo.dom.insertAfter(node,_1db);
}else{
return dojo.dom.insertBefore(node,_1da.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _1e0="";
if(node==null){
return _1e0;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_1e0+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_1e0+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _1e0;
}
};
dojo.dom.collectionToArray=function(_1e2){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_1e2);
};
dojo.dom.hasParent=function(node){
return node&&node.parentNode&&dojo.dom.isNode(node.parentNode);
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
var arr=dojo.lang.toArray(arguments,1);
return arr[dojo.lang.find(node.tagName,arr)]||"";
}
return "";
};
dojo.provide("dojo.undo.browser");
dojo.require("dojo.io");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
dojo.undo.browser={initialHref:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState={"url":this.initialHref,"kwArgs":args,"urlHash":this.initialHash};
},addToHistory:function(args){
var hash=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
(document.body||document.getElementsByTagName("body")[0]).appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if((!args["changeUrl"])||(dojo.render.html.ie)){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
}
if(args["changeUrl"]){
this.changingUrl=true;
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
var _1ea=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_1ec){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_1ea.apply(this,[_1ec]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _1ed=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_1ef){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_1ed){
_1ed.apply(this,[_1ef]);
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}else{
if(args["handle"]){
args.handle=tfw;
}
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200);
}
}
}
}
this.historyStack.push({"url":url,"kwArgs":args,"urlHash":hash});
},checkLocation:function(){
if(!this.changingUrl){
var hsl=this.historyStack.length;
if((window.location.hash==this.initialHash)||(window.location.href==this.initialHref)&&(hsl==1)){
this.handleBackButton();
return;
}
if(this.forwardStack.length>0){
if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){
this.handleForwardButton();
return;
}
}
if((hsl>=2)&&(this.historyStack[hsl-2])){
if(this.historyStack[hsl-2].urlHash==window.location.hash){
this.handleBackButton();
return;
}
}
}
},iframeLoaded:function(evt,_1f2){
var _1f3=this._getUrlQuery(_1f2.href);
if(_1f3==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_1f3==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_1f3==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
},handleBackButton:function(){
var _1f4=this.historyStack.pop();
if(!_1f4){
return;
}
var last=this.historyStack[this.historyStack.length-1];
if(!last&&this.historyStack.length==0){
last=this.initialState;
}
if(last){
if(last.kwArgs["back"]){
last.kwArgs["back"]();
}else{
if(last.kwArgs["backButton"]){
last.kwArgs["backButton"]();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("back");
}
}
}
}
this.forwardStack.push(_1f4);
},handleForwardButton:function(){
var last=this.forwardStack.pop();
if(!last){
return;
}
if(last.kwArgs["forward"]){
last.kwArgs.forward();
}else{
if(last.kwArgs["forwardButton"]){
last.kwArgs.forwardButton();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("forward");
}
}
}
this.historyStack.push(last);
},_getUrlQuery:function(url){
var _1f8=url.split("?");
if(_1f8.length<2){
return null;
}else{
return _1f8[1];
}
}};
dojo.provide("dojo.io.BrowserIO");
dojo.require("dojo.io");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.func");
dojo.require("dojo.string.extras");
dojo.require("dojo.dom");
dojo.require("dojo.undo.browser");
dojo.io.checkChildrenForFile=function(node){
var _1fa=false;
var _1fb=node.getElementsByTagName("input");
dojo.lang.forEach(_1fb,function(_1fc){
if(_1fa){
return;
}
if(_1fc.getAttribute("type")=="file"){
_1fa=true;
}
});
return _1fa;
};
dojo.io.formHasFile=function(_1fd){
return dojo.io.checkChildrenForFile(_1fd);
};
dojo.io.updateNode=function(node,_1ff){
node=dojo.byId(node);
var args=_1ff;
if(dojo.lang.isString(_1ff)){
args={url:_1ff};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
if(dojo["event"]){
try{
dojo.event.browser.clean(node.firstChild);
}
catch(e){
}
}
node.removeChild(node.firstChild);
}
node.innerHTML=d;
};
dojo.io.bind(args);
};
dojo.io.formFilter=function(node){
var type=(node.type||"").toLowerCase();
return !node.disabled&&node.name&&!dojo.lang.inArray(type,["file","submit","image","reset","button"]);
};
dojo.io.encodeForm=function(_206,_207,_208){
if((!_206)||(!_206.tagName)||(!_206.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_208){
_208=dojo.io.formFilter;
}
var enc=/utf/i.test(_207||"")?encodeURIComponent:dojo.string.encodeAscii;
var _20a=[];
for(var i=0;i<_206.elements.length;i++){
var elm=_206.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_208(elm)){
continue;
}
var name=enc(elm.name);
var type=elm.type.toLowerCase();
if(type=="select-multiple"){
for(var j=0;j<elm.options.length;j++){
if(elm.options[j].selected){
_20a.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_20a.push(name+"="+enc(elm.value));
}
}else{
_20a.push(name+"="+enc(elm.value));
}
}
}
var _210=_206.getElementsByTagName("input");
for(var i=0;i<_210.length;i++){
var _211=_210[i];
if(_211.type.toLowerCase()=="image"&&_211.form==_206&&_208(_211)){
var name=enc(_211.name);
_20a.push(name+"="+enc(_211.value));
_20a.push(name+".x=0");
_20a.push(name+".y=0");
}
}
return _20a.join("&")+"&";
};
dojo.io.FormBind=function(args){
this.bindArgs={};
if(args&&args.formNode){
this.init(args);
}else{
if(args){
this.init({formNode:args});
}
}
};
dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){
var form=dojo.byId(args.formNode);
if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){
throw new Error("FormBind: Couldn't apply, invalid form");
}else{
if(this.form==form){
return;
}else{
if(this.form){
throw new Error("FormBind: Already applied to a form");
}
}
}
dojo.lang.mixin(this.bindArgs,args);
this.form=form;
this.connect(form,"onsubmit","submit");
for(var i=0;i<form.elements.length;i++){
var node=form.elements[i];
if(node&&node.type&&dojo.lang.inArray(node.type.toLowerCase(),["submit","button"])){
this.connect(node,"onclick","click");
}
}
var _217=form.getElementsByTagName("input");
for(var i=0;i<_217.length;i++){
var _218=_217[i];
if(_218.type.toLowerCase()=="image"&&_218.form==form){
this.connect(_218,"onclick","click");
}
}
},onSubmit:function(form){
return true;
},submit:function(e){
e.preventDefault();
if(this.onSubmit(this.form)){
dojo.io.bind(dojo.lang.mixin(this.bindArgs,{formFilter:dojo.lang.hitch(this,"formFilter")}));
}
},click:function(e){
var node=e.currentTarget;
if(node.disabled){
return;
}
this.clickedButton=node;
},formFilter:function(node){
var type=(node.type||"").toLowerCase();
var _21f=false;
if(node.disabled||!node.name){
_21f=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_21f=node==this.clickedButton;
}else{
_21f=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _21f;
},connect:function(_220,_221,_222){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_220,_221,this,_222);
}else{
var fcn=dojo.lang.hitch(this,_222);
_220[_221]=function(e){
if(!e){
e=window.event;
}
if(!e.currentTarget){
e.currentTarget=e.srcElement;
}
if(!e.preventDefault){
e.preventDefault=function(){
window.event.returnValue=false;
};
}
fcn(e);
};
}
}});
dojo.io.XMLHTTPTransport=new function(){
var _225=this;
var _226={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_228,_229){
return url+"|"+_228+"|"+_229.toLowerCase();
}
function addToCache(url,_22b,_22c,http){
_226[getCacheKey(url,_22b,_22c)]=http;
}
function getFromCache(url,_22f,_230){
return _226[getCacheKey(url,_22f,_230)];
}
this.clearCache=function(){
_226={};
};
function doLoad(_231,http,url,_234,_235){
if(((http.status>=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){
var ret;
if(_231.method.toLowerCase()=="head"){
var _237=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _237;
};
var _238=_237.split(/[\r\n]+/g);
for(var i=0;i<_238.length;i++){
var pair=_238[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_231.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_231.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_231.mimetype=="application/xml")||(_231.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_235){
addToCache(url,_234,_231.method,http);
}
_231[(typeof _231.load=="function")?"load":"handle"]("load",ret,http,_231);
}else{
var _23b=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_231[(typeof _231.error=="function")?"error":"handle"]("error",_23b,http,_231);
}
}
function setHeaders(http,_23d){
if(_23d["headers"]){
for(var _23e in _23d["headers"]){
if(_23e.toLowerCase()=="content-type"&&!_23d["contentType"]){
_23d["contentType"]=_23d["headers"][_23e];
}else{
http.setRequestHeader(_23e,_23d["headers"][_23e]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
for(var x=this.inFlight.length-1;x>=0;x--){
var tif=this.inFlight[x];
if(!tif){
this.inFlight.splice(x,1);
continue;
}
if(4==tif.http.readyState){
this.inFlight.splice(x,1);
doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);
}else{
if(tif.startTime){
if(!now){
now=(new Date()).getTime();
}
if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){
if(typeof tif.http.abort=="function"){
tif.http.abort();
}
this.inFlight.splice(x,1);
tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);
}
}
}
}
if(this.inFlight.length==0){
clearInterval(this.inFlightTimer);
this.inFlightTimer=null;
}
};
var _242=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_243){
return _242&&dojo.lang.inArray((_243["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_243["formNode"]&&dojo.io.formHasFile(_243["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_244){
if(!_244["url"]){
if(!_244["formNode"]&&(_244["backButton"]||_244["back"]||_244["changeUrl"]||_244["watchForURL"])&&(!djConfig.preventBackButtonFix)){
dojo.deprecated("Using dojo.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request","Use dojo.undo.browser.addToHistory() instead.","0.4");
dojo.undo.browser.addToHistory(_244);
return true;
}
}
var url=_244.url;
var _246="";
if(_244["formNode"]){
var ta=_244.formNode.getAttribute("action");
if((ta)&&(!_244["url"])){
url=ta;
}
var tp=_244.formNode.getAttribute("method");
if((tp)&&(!_244["method"])){
_244.method=tp;
}
_246+=dojo.io.encodeForm(_244.formNode,_244.encoding,_244["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_244["file"]){
_244.method="post";
}
if(!_244["method"]){
_244.method="get";
}
if(_244.method.toLowerCase()=="get"){
_244.multipart=false;
}else{
if(_244["file"]){
_244.multipart=true;
}else{
if(!_244["multipart"]){
_244.multipart=false;
}
}
}
if(_244["backButton"]||_244["back"]||_244["changeUrl"]){
dojo.undo.browser.addToHistory(_244);
}
var _249=_244["content"]||{};
if(_244.sendTransport){
_249["dojo.transport"]="xmlhttp";
}
do{
if(_244.postContent){
_246=_244.postContent;
break;
}
if(_249){
_246+=dojo.io.argsFromMap(_249,_244.encoding);
}
if(_244.method.toLowerCase()=="get"||!_244.multipart){
break;
}
var t=[];
if(_246.length){
var q=_246.split("&");
for(var i=0;i<q.length;++i){
if(q[i].length){
var p=q[i].split("=");
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+p[0]+"\"","",p[1]);
}
}
}
if(_244.file){
if(dojo.lang.isArray(_244.file)){
for(var i=0;i<_244.file.length;++i){
var o=_244.file[i];
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+o.name+"\"; filename=\""+("fileName" in o?o.fileName:o.name)+"\"","Content-Type: "+("contentType" in o?o.contentType:"application/octet-stream"),"",o.content);
}
}else{
var o=_244.file;
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+o.name+"\"; filename=\""+("fileName" in o?o.fileName:o.name)+"\"","Content-Type: "+("contentType" in o?o.contentType:"application/octet-stream"),"",o.content);
}
}
if(t.length){
t.push("--"+this.multipartBoundary+"--","");
_246=t.join("\r\n");
}
}while(false);
var _24f=_244["sync"]?false:true;
var _250=_244["preventCache"]||(this.preventCache==true&&_244["preventCache"]!=false);
var _251=_244["useCache"]==true||(this.useCache==true&&_244["useCache"]!=false);
if(!_250&&_251){
var _252=getFromCache(url,_246,_244.method);
if(_252){
doLoad(_244,_252,url,_246,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_244);
var _254=false;
if(_24f){
var _255=this.inFlight.push({"req":_244,"http":http,"url":url,"query":_246,"useCache":_251,"startTime":_244.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_244.method.toLowerCase()=="post"){
http.open("POST",url,_24f);
setHeaders(http,_244);
http.setRequestHeader("Content-Type",_244.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_244.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_246);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_244,{status:404},url,_246,_251);
}
}else{
var _256=url;
if(_246!=""){
_256+=(_256.indexOf("?")>-1?"&":"?")+_246;
}
if(_250){
_256+=(dojo.string.endsWithAny(_256,"?","&")?"":(_256.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_244.method.toUpperCase(),_256,_24f);
setHeaders(http,_244);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_244,{status:404},url,_246,_251);
}
}
if(!_24f){
doLoad(_244,http,url,_246,_251);
}
_244.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.event");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.func");
dojo.event=new function(){
this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args){
var dl=dojo.lang;
var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};
switch(args.length){
case 0:
return;
case 1:
return;
case 2:
ao.srcFunc=args[0];
ao.adviceFunc=args[1];
break;
case 3:
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
var _25a=dojo.lang.nameAnonFunc(args[2],ao.adviceObj);
ao.adviceFunc=_25a;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _25a=dojo.lang.nameAnonFunc(args[0],ao.srcObj);
ao.srcFunc=_25a;
ao.adviceObj=args[1];
ao.adviceFunc=args[2];
}
}
}
}
break;
case 4:
if((dl.isObject(args[0]))&&(dl.isObject(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isString(args[1]))&&(dl.isObject(args[2]))){
ao.adviceType=args[0];
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isFunction(args[1]))&&(dl.isObject(args[2]))){
ao.adviceType=args[0];
ao.srcObj=dj_global;
var _25a=dojo.lang.nameAnonFunc(args[1],dj_global);
ao.srcFunc=_25a;
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))&&(dl.isFunction(args[3]))){
ao.srcObj=args[1];
ao.srcFunc=args[2];
var _25a=dojo.lang.nameAnonFunc(args[3],dj_global);
ao.adviceObj=dj_global;
ao.adviceFunc=_25a;
}else{
if(dl.isObject(args[1])){
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=dj_global;
ao.adviceFunc=args[3];
}else{
if(dl.isObject(args[2])){
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
ao.aroundFunc=args[3];
}
}
}
}
}
}
break;
case 6:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundFunc=args[5];
ao.aroundObj=dj_global;
break;
default:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundObj=args[5];
ao.aroundFunc=args[6];
ao.once=args[7];
ao.delay=args[8];
ao.rate=args[9];
ao.adviceMsg=args[10];
break;
}
if(dl.isFunction(ao.aroundFunc)){
var _25a=dojo.lang.nameAnonFunc(ao.aroundFunc,ao.aroundObj);
ao.aroundFunc=_25a;
}
if(!dl.isString(ao.srcFunc)){
ao.srcFunc=dojo.lang.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(!dl.isString(ao.adviceFunc)){
ao.adviceFunc=dojo.lang.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(!dl.isString(ao.aroundFunc))){
ao.aroundFunc=dojo.lang.getNameInObj(ao.aroundObj,ao.aroundFunc);
}
if(!ao.srcObj){
dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);
}
if(!ao.adviceObj){
dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments);
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _25c={};
for(var x in ao){
_25c[x]=ao[x];
}
var mjps=[];
dojo.lang.forEach(ao.srcObj,function(src){
if((dojo.render.html.capable)&&(dojo.lang.isString(src))){
src=dojo.byId(src);
}
_25c.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_25c));
});
return mjps;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
if(ao.adviceFunc){
var mjp2=dojo.event.MethodJoinPoint.getForMethod(ao.adviceObj,ao.adviceFunc);
}
mjp.kwAddAdvice(ao);
return mjp;
};
this.log=function(a1,a2){
var _264;
if((arguments.length==1)&&(typeof a1=="object")){
_264=a1;
}else{
_264={srcObj:a1,srcFunc:a2};
}
_264.adviceFunc=function(){
var _265=[];
for(var x=0;x<arguments.length;x++){
_265.push(arguments[x]);
}
dojo.debug("("+_264.srcObj+")."+_264.srcFunc,":",_265.join(", "));
};
this.kwConnect(_264);
};
this.connectBefore=function(){
var args=["before"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectAround=function(){
var args=["around"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectOnce=function(){
var ao=interpolateArgs(arguments);
ao.once=true;
return this.connect(ao);
};
this._kwConnectImpl=function(_26c,_26d){
var fn=(_26d)?"disconnect":"connect";
if(typeof _26c["srcFunc"]=="function"){
_26c.srcObj=_26c["srcObj"]||dj_global;
var _26f=dojo.lang.nameAnonFunc(_26c.srcFunc,_26c.srcObj);
_26c.srcFunc=_26f;
}
if(typeof _26c["adviceFunc"]=="function"){
_26c.adviceObj=_26c["adviceObj"]||dj_global;
var _26f=dojo.lang.nameAnonFunc(_26c.adviceFunc,_26c.adviceObj);
_26c.adviceFunc=_26f;
}
return dojo.event[fn]((_26c["type"]||_26c["adviceType"]||"after"),_26c["srcObj"]||dj_global,_26c["srcFunc"],_26c["adviceObj"]||_26c["targetObj"]||dj_global,_26c["adviceFunc"]||_26c["targetFunc"],_26c["aroundObj"],_26c["aroundFunc"],_26c["once"],_26c["delay"],_26c["rate"],_26c["adviceMsg"]||false);
};
this.kwConnect=function(_270){
return this._kwConnectImpl(_270,false);
};
this.disconnect=function(){
var ao=interpolateArgs(arguments);
if(!ao.adviceFunc){
return;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
};
this.kwDisconnect=function(_273){
return this._kwConnectImpl(_273,true);
};
};
dojo.event.MethodInvocation=function(_274,obj,args){
this.jp_=_274;
this.object=obj;
this.args=[];
for(var x=0;x<args.length;x++){
this.args[x]=args[x];
}
this.around_index=-1;
};
dojo.event.MethodInvocation.prototype.proceed=function(){
this.around_index++;
if(this.around_index>=this.jp_.around.length){
return this.jp_.object[this.jp_.methodname].apply(this.jp_.object,this.args);
}else{
var ti=this.jp_.around[this.around_index];
var mobj=ti[0]||dj_global;
var meth=ti[1];
return mobj[meth].call(mobj,this);
}
};
dojo.event.MethodJoinPoint=function(obj,_27c){
this.object=obj||dj_global;
this.methodname=_27c;
this.methodfunc=this.object[_27c];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_27e){
if(!obj){
obj=dj_global;
}
if(!obj[_27e]){
obj[_27e]=function(){
};
}else{
if((!dojo.lang.isFunction(obj[_27e]))&&(!dojo.lang.isAlien(obj[_27e]))){
return null;
}
}
var _27f=_27e+"$joinpoint";
var _280=_27e+"$joinpoint$method";
var _281=obj[_27f];
if(!_281){
var _282=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_282=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_27f,_280,_27e]);
}
}
var _283=obj[_27e].length;
obj[_280]=obj[_27e];
_281=obj[_27f]=new dojo.event.MethodJoinPoint(obj,_280);
obj[_27e]=function(){
var args=[];
if((_282)&&(!arguments.length)){
var evt=null;
try{
if(obj.ownerDocument){
evt=obj.ownerDocument.parentWindow.event;
}else{
if(obj.documentElement){
evt=obj.documentElement.ownerDocument.parentWindow.event;
}else{
evt=window.event;
}
}
}
catch(e){
evt=window.event;
}
if(evt){
args.push(dojo.event.browser.fixEvent(evt,this));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(_282)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _281.run.apply(_281,args);
};
obj[_27e].__preJoinArity=_283;
}
return _281;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){
this.object[this.methodname]=this.methodfunc;
this.before=[];
this.after=[];
this.around=[];
},disconnect:dojo.lang.forward("unintercept"),run:function(){
var obj=this.object||dj_global;
var args=arguments;
var _289=[];
for(var x=0;x<args.length;x++){
_289[x]=args[x];
}
var _28b=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _28d=marr[0]||dj_global;
var _28e=marr[1];
if(!_28d[_28e]){
dojo.raise("function \""+_28e+"\" does not exist on \""+_28d+"\"");
}
var _28f=marr[2]||dj_global;
var _290=marr[3];
var msg=marr[6];
var _292;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _28d[_28e].apply(_28d,to.args);
}};
to.args=_289;
var _294=parseInt(marr[4]);
var _295=((!isNaN(_294))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _298=false;
if((marr["last"])&&((cur-marr.last)<=rate)){
if(dojo.event.canTimeout){
if(marr["delayTimer"]){
clearTimeout(marr.delayTimer);
}
var tod=parseInt(rate*2);
var mcpy=dojo.lang.shallowCopy(marr);
marr.delayTimer=setTimeout(function(){
mcpy[5]=0;
_28b(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_290){
_28f[_290].call(_28f,to);
}else{
if((_295)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_28d[_28e].call(_28d,to);
}else{
_28d[_28e].apply(_28d,args);
}
},_294);
}else{
if(msg){
_28d[_28e].call(_28d,to);
}else{
_28d[_28e].apply(_28d,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_28b);
}
var _29b;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_29b=mi.proceed();
}else{
if(this.methodfunc){
_29b=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_28b);
}
return (this.methodfunc)?_29b:null;
},getArr:function(kind){
var arr=this.after;
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
arr=this.before;
}else{
if(kind=="around"){
arr=this.around;
}
}
return arr;
},kwAddAdvice:function(args){
this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"]);
},addAdvice:function(_2a0,_2a1,_2a2,_2a3,_2a4,_2a5,once,_2a7,rate,_2a9){
var arr=this.getArr(_2a4);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_2a0,_2a1,_2a2,_2a3,_2a7,rate,_2a9];
if(once){
if(this.hasAdvice(_2a0,_2a1,_2a4,arr)>=0){
return;
}
}
if(_2a5=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_2ac,_2ad,_2ae,arr){
if(!arr){
arr=this.getArr(_2ae);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
if((arr[x][0]==_2ac)&&(arr[x][1]==_2ad)){
ind=x;
}
}
return ind;
},removeAdvice:function(_2b2,_2b3,_2b4,once){
var arr=this.getArr(_2b4);
var ind=this.hasAdvice(_2b2,_2b3,_2b4,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_2b2,_2b3,_2b4,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_2b8){
if(!this.topics[_2b8]){
this.topics[_2b8]=new this.TopicImpl(_2b8);
}
return this.topics[_2b8];
};
this.registerPublisher=function(_2b9,obj,_2bb){
var _2b9=this.getTopic(_2b9);
_2b9.registerPublisher(obj,_2bb);
};
this.subscribe=function(_2bc,obj,_2be){
var _2bc=this.getTopic(_2bc);
_2bc.subscribe(obj,_2be);
};
this.unsubscribe=function(_2bf,obj,_2c1){
var _2bf=this.getTopic(_2bf);
_2bf.unsubscribe(obj,_2c1);
};
this.destroy=function(_2c2){
this.getTopic(_2c2).destroy();
delete this.topics[_2c2];
};
this.publish=function(_2c3,_2c4){
var _2c3=this.getTopic(_2c3);
var args=[];
if(arguments.length==2&&(dojo.lang.isArray(_2c4)||_2c4.callee)){
args=_2c4;
}else{
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
}
_2c3.sendMessage.apply(_2c3,args);
};
};
dojo.event.topic.TopicImpl=function(_2c7){
this.topicName=_2c7;
this.subscribe=function(_2c8,_2c9){
var tf=_2c9||_2c8;
var to=(!_2c9)?dj_global:_2c8;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_2cc,_2cd){
var tf=(!_2cd)?_2cc:_2cd;
var to=(!_2cd)?null:_2cc;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_2d0,_2d1){
dojo.event.connect(_2d0,_2d1,this,"sendMessage");
};
this.sendMessage=function(_2d2){
};
};
dojo.provide("dojo.event.browser");
dojo.require("dojo.event");
dojo_ie_clobber=new function(){
this.clobberNodes=[];
function nukeProp(node,prop){
try{
node[prop]=null;
}
catch(e){
}
try{
delete node[prop];
}
catch(e){
}
try{
node.removeAttribute(prop);
}
catch(e){
}
}
this.clobber=function(_2d5){
var na;
var tna;
if(_2d5){
tna=_2d5.all||_2d5.getElementsByTagName("*");
na=[_2d5];
for(var x=0;x<tna.length;x++){
if(tna[x]["__doClobber__"]){
na.push(tna[x]);
}
}
}else{
try{
window.onload=null;
}
catch(e){
}
na=(this.clobberNodes.length)?this.clobberNodes:document.all;
}
tna=null;
var _2d9={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
if(el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
na=null;
};
};
if(dojo.render.html.ie){
window.onunload=function(){
dojo_ie_clobber.clobber();
try{
if((dojo["widget"])&&(dojo.widget["manager"])){
dojo.widget.manager.destroyAll();
}
}
catch(e){
}
try{
window.onload=null;
}
catch(e){
}
try{
window.onunload=null;
}
catch(e){
}
dojo_ie_clobber.clobberNodes=[];
};
}
dojo.event.browser=new function(){
var _2dd=0;
this.clean=function(node){
if(dojo.render.html.ie){
dojo_ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo_ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_2e1){
this.addClobberNode(node);
for(var x=0;x<_2e1.length;x++){
node.__clobberAttrs__.push(_2e1[x]);
}
};
this.removeListener=function(node,_2e4,fp,_2e6){
if(!_2e6){
var _2e6=false;
}
_2e4=_2e4.toLowerCase();
if(_2e4.substr(0,2)=="on"){
_2e4=_2e4.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_2e4,fp,_2e6);
}
};
this.addListener=function(node,_2e8,fp,_2ea,_2eb){
if(!node){
return;
}
if(!_2ea){
var _2ea=false;
}
_2e8=_2e8.toLowerCase();
if(_2e8.substr(0,2)!="on"){
_2e8="on"+_2e8;
}
if(!_2eb){
var _2ec=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_2ea){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_2ec=fp;
}
if(node.addEventListener){
node.addEventListener(_2e8.substr(2),_2ec,_2ea);
return _2ec;
}else{
if(typeof node[_2e8]=="function"){
var _2ef=node[_2e8];
node[_2e8]=function(e){
_2ef(e);
return _2ec(e);
};
}else{
node[_2e8]=_2ec;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_2e8]);
}
return _2ec;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_2f2,_2f3){
if(typeof _2f2!="function"){
dojo.raise("listener not a function: "+_2f2);
}
dojo.event.browser.currentEvent.currentTarget=_2f3;
return _2f2.call(_2f3,dojo.event.browser.currentEvent);
};
this.stopPropagation=function(){
dojo.event.browser.currentEvent.cancelBubble=true;
};
this.preventDefault=function(){
dojo.event.browser.currentEvent.returnValue=false;
};
this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};
this.revKeys=[];
for(var key in this.keys){
this.revKeys[this.keys[key]]=key;
}
this.fixEvent=function(evt,_2f6){
if((!evt)&&(window["event"])){
var evt=window.event;
}
if((evt["type"])&&(evt["type"].indexOf("key")==0)){
evt.keys=this.revKeys;
for(var key in this.keys){
evt[key]=this.keys[key];
}
if((dojo.render.html.ie)&&(evt["type"]=="keypress")){
evt.charCode=evt.keyCode;
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=(_2f6?_2f6:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
if(!evt.pageX){
evt.pageX=evt.clientX+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
this.currentEvent=evt;
evt.callListener=this.callListener;
evt.stopPropagation=this.stopPropagation;
evt.preventDefault=this.preventDefault;
}
return evt;
};
this.stopEvent=function(ev){
if(window.event){
ev.returnValue=false;
ev.cancelBubble=true;
}else{
ev.preventDefault();
ev.stopPropagation();
}
};
};
dojo.kwCompoundRequire({common:["dojo.event","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});
dojo.provide("dojo.event.*");
dojo.provide("dojo.graphics.color");
dojo.require("dojo.lang.array");
dojo.graphics.color.Color=function(r,g,b,a){
if(dojo.lang.isArray(r)){
this.r=r[0];
this.g=r[1];
this.b=r[2];
this.a=r[3]||1;
}else{
if(dojo.lang.isString(r)){
var rgb=dojo.graphics.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.graphics.color.Color){
this.r=r.r;
this.b=r.b;
this.g=r.g;
this.a=r.a;
}else{
this.r=r;
this.g=g;
this.b=b;
this.a=a;
}
}
}
};
dojo.graphics.color.Color.fromArray=function(arr){
return new dojo.graphics.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.lang.extend(dojo.graphics.color.Color,{toRgb:function(_2ff){
if(_2ff){
return this.toRgba();
}else{
return [this.r,this.g,this.b];
}
},toRgba:function(){
return [this.r,this.g,this.b,this.a];
},toHex:function(){
return dojo.graphics.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_300,_301){
return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_300).toRgb(),_301);
}});
dojo.graphics.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.graphics.color.blend=function(a,b,_304){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_304);
}
if(!_304){
_304=0;
}else{
if(_304>1){
_304=1;
}else{
if(_304<-1){
_304=-1;
}
}
}
var c=new Array(3);
for(var i=0;i<3;i++){
var half=Math.abs(a[i]-b[i])/2;
c[i]=Math.floor(Math.min(a[i],b[i])+half+(half*_304));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_30a){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_30a));
};
dojo.graphics.color.extractRGB=function(_30b){
var hex="0123456789abcdef";
_30b=_30b.toLowerCase();
if(_30b.indexOf("rgb")==0){
var _30d=_30b.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_30d.splice(1,3);
return ret;
}else{
var _30f=dojo.graphics.color.hex2rgb(_30b);
if(_30f){
return _30f;
}else{
return dojo.graphics.color.named[_30b]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _311="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_311+"]","g"),"")!=""){
return null;
}
if(hex.length==3){
rgb[0]=hex.charAt(0)+hex.charAt(0);
rgb[1]=hex.charAt(1)+hex.charAt(1);
rgb[2]=hex.charAt(2)+hex.charAt(2);
}else{
rgb[0]=hex.substring(0,2);
rgb[1]=hex.substring(2,4);
rgb[2]=hex.substring(4);
}
for(var i=0;i<rgb.length;i++){
rgb[i]=_311.indexOf(rgb[i].charAt(0))*16+_311.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.graphics.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.joinPath=function(){
var arr=[];
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i]);
}
return arr.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/");
};
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _31f=new dojo.uri.Uri(arguments[i].toString());
var _320=new dojo.uri.Uri(uri.toString());
if(_31f.path==""&&_31f.scheme==null&&_31f.authority==null&&_31f.query==null){
if(_31f.fragment!=null){
_320.fragment=_31f.fragment;
}
_31f=_320;
}else{
if(_31f.scheme==null){
_31f.scheme=_320.scheme;
if(_31f.authority==null){
_31f.authority=_320.authority;
if(_31f.path.charAt(0)!="/"){
var path=_320.path.substring(0,_320.path.lastIndexOf("/")+1)+_31f.path;
var segs=path.split("/");
for(var j=0;j<segs.length;j++){
if(segs[j]=="."){
if(j==segs.length-1){
segs[j]="";
}else{
segs.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){
if(j==segs.length-1){
segs.splice(j,1);
segs[j-1]="";
}else{
segs.splice(j-1,2);
j-=2;
}
}
}
}
_31f.path=segs.join("/");
}
}
}
}
uri="";
if(_31f.scheme!=null){
uri+=_31f.scheme+":";
}
if(_31f.authority!=null){
uri+="//"+_31f.authority;
}
uri+=_31f.path;
if(_31f.query!=null){
uri+="?"+_31f.query;
}
if(_31f.fragment!=null){
uri+="#"+_31f.fragment;
}
}
this.uri=uri.toString();
var _324="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_324));
this.scheme=r[2]||(r[1]?"":null);
this.authority=r[4]||(r[3]?"":null);
this.path=r[5];
this.query=r[7]||(r[6]?"":null);
this.fragment=r[9]||(r[8]?"":null);
if(this.authority!=null){
_324="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_324));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.style");
dojo.require("dojo.graphics.color");
dojo.require("dojo.uri.Uri");
dojo.require("dojo.lang.common");
(function(){
var h=dojo.render.html;
var ds=dojo.style;
var db=document["body"]||document["documentElement"];
ds.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
var bs=ds.boxSizing;
ds.getBoxSizing=function(node){
if((h.ie)||(h.opera)){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _32c=ds.getStyle(node,"-moz-box-sizing");
if(!_32c){
_32c=ds.getStyle(node,"box-sizing");
}
return (_32c?_32c:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_32f,_330){
var s=ds.getComputedStyle(node,_32f);
if((!s)||((s=="auto")&&(_330))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _332=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_332){
return ds.getUnitValue.bad;
}
return {value:Number(_332[1]),units:_332[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_334,_335){
var _336=ds.getUnitValue(node,_334,_335);
if(isNaN(_336.value)){
return 0;
}
if((_336.value)&&(_336.units!="px")){
return NaN;
}
return _336.value;
};
ds.getNumericStyle=function(){
dojo.deprecated("dojo.(style|html).getNumericStyle","in favor of dojo.(style|html).getPixelValue","0.4");
return ds.getPixelValue.apply(this,arguments);
};
ds.setPositivePixelValue=function(node,_338,_339){
if(isNaN(_339)){
return false;
}
node.style[_338]=Math.max(0,_339)+"px";
return true;
};
ds._sumPixelValues=function(node,_33b,_33c){
var _33d=0;
for(var x=0;x<_33b.length;x++){
_33d+=ds.getPixelValue(node,_33b[x],_33c);
}
return _33d;
};
ds.isPositionAbsolute=function(node){
return (ds.getComputedStyle(node,"position")=="absolute");
};
ds.getBorderExtent=function(node,side){
return (ds.getStyle(node,"border-"+side+"-style")=="none"?0:ds.getPixelValue(node,"border-"+side+"-width"));
};
ds.getMarginWidth=function(node){
return ds._sumPixelValues(node,["margin-left","margin-right"],ds.isPositionAbsolute(node));
};
ds.getBorderWidth=function(node){
return ds.getBorderExtent(node,"left")+ds.getBorderExtent(node,"right");
};
ds.getPaddingWidth=function(node){
return ds._sumPixelValues(node,["padding-left","padding-right"],true);
};
ds.getPadBorderWidth=function(node){
return ds.getPaddingWidth(node)+ds.getBorderWidth(node);
};
ds.getContentBoxWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth-ds.getPadBorderWidth(node);
};
ds.getBorderBoxWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth;
};
ds.getMarginBoxWidth=function(node){
return ds.getInnerWidth(node)+ds.getMarginWidth(node);
};
ds.setContentBoxWidth=function(node,_34a){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_34a+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_34a);
};
ds.setMarginBoxWidth=function(node,_34c){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_34c-=ds.getPadBorderWidth(node);
}
_34c-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_34c);
};
ds.getContentWidth=ds.getContentBoxWidth;
ds.getInnerWidth=ds.getBorderBoxWidth;
ds.getOuterWidth=ds.getMarginBoxWidth;
ds.setContentWidth=ds.setContentBoxWidth;
ds.setOuterWidth=ds.setMarginBoxWidth;
ds.getMarginHeight=function(node){
return ds._sumPixelValues(node,["margin-top","margin-bottom"],ds.isPositionAbsolute(node));
};
ds.getBorderHeight=function(node){
return ds.getBorderExtent(node,"top")+ds.getBorderExtent(node,"bottom");
};
ds.getPaddingHeight=function(node){
return ds._sumPixelValues(node,["padding-top","padding-bottom"],true);
};
ds.getPadBorderHeight=function(node){
return ds.getPaddingHeight(node)+ds.getBorderHeight(node);
};
ds.getContentBoxHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight-ds.getPadBorderHeight(node);
};
ds.getBorderBoxHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight;
};
ds.getMarginBoxHeight=function(node){
return ds.getInnerHeight(node)+ds.getMarginHeight(node);
};
ds.setContentBoxHeight=function(node,_355){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_355+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_355);
};
ds.setMarginBoxHeight=function(node,_357){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_357-=ds.getPadBorderHeight(node);
}
_357-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_357);
};
ds.getContentHeight=ds.getContentBoxHeight;
ds.getInnerHeight=ds.getBorderBoxHeight;
ds.getOuterHeight=ds.getMarginBoxHeight;
ds.setContentHeight=ds.setContentBoxHeight;
ds.setOuterHeight=ds.setMarginBoxHeight;
ds.getAbsolutePosition=ds.abs=function(node,_359){
var ret=[];
ret.x=ret.y=0;
var st=dojo.html.getScrollTop();
var sl=dojo.html.getScrollLeft();
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(node["offsetParent"]){
var _35d;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_35d=db;
}else{
_35d=db.parentNode;
}
if(node.parentNode!=db){
ret.x-=ds.sumAncestorProperties(node,"scrollLeft");
ret.y-=ds.sumAncestorProperties(node,"scrollTop");
}
do{
var n=node["offsetLeft"];
ret.x+=isNaN(n)?0:n;
var m=node["offsetTop"];
ret.y+=isNaN(m)?0:m;
node=node.offsetParent;
}while((node!=_35d)&&(node!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
if(_359){
ret.y+=st;
ret.x+=sl;
}
ret[0]=ret.x;
ret[1]=ret.y;
return ret;
};
ds.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _362=0;
while(node){
var val=node[prop];
if(val){
_362+=val-0;
}
node=node.parentNode;
}
return _362;
};
ds.getTotalOffset=function(node,type,_366){
node=dojo.byId(node);
return ds.abs(node,_366)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_368){
return ds.getTotalOffset(node,"left",_368);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_36a){
return ds.getTotalOffset(node,"top",_36a);
};
ds.styleSheet=null;
ds.insertCssRule=function(_36b,_36c,_36d){
if(!ds.styleSheet){
if(document.createStyleSheet){
ds.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
ds.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(ds.styleSheet.cssRules){
_36d=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_36d=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_36b+" { "+_36c+" }";
return ds.styleSheet.insertRule(rule,_36d);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_36b,_36c,_36d);
}else{
return null;
}
}
};
ds.removeCssRule=function(_36f){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_36f){
_36f=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_36f);
}
}else{
if(document.styleSheets[0]){
if(!_36f){
_36f=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_36f);
}
}
return true;
};
ds.insertCssFile=function(URI,doc,_372){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _373=dojo.hostenv.getText(URI);
_373=ds.fixPathsInCssText(_373,URI);
if(_372){
var _374=doc.getElementsByTagName("style");
var _375="";
for(var i=0;i<_374.length;i++){
_375=(_374[i].styleSheet&&_374[i].styleSheet.cssText)?_374[i].styleSheet.cssText:_374[i].innerHTML;
if(_373==_375){
return;
}
}
}
var _377=ds.insertCssText(_373);
if(_377&&djConfig.isDebug){
_377.setAttribute("dbgHref",URI);
}
return _377;
};
ds.insertCssText=function(_378,doc,URI){
if(!_378){
return;
}
if(!doc){
doc=document;
}
if(URI){
_378=ds.fixPathsInCssText(_378,URI);
}
var _37b=doc.createElement("style");
_37b.setAttribute("type","text/css");
var head=doc.getElementsByTagName("head")[0];
if(!head){
dojo.debug("No head tag in document, aborting styles");
return;
}else{
head.appendChild(_37b);
}
if(_37b.styleSheet){
_37b.styleSheet.cssText=_378;
}else{
var _37d=doc.createTextNode(_378);
_37b.appendChild(_37d);
}
return _37b;
};
ds.fixPathsInCssText=function(_37e,URI){
if(!_37e||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_37e.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_37e.slice(0,pos+4);
_37e=_37e.substring(pos+4,_37e.length);
url+=_37e.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_37e=_37e.substring(url.length-1,_37e.length);
url=url.replace(/^[\s\t]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s\t]*?\)/,"$2");
if(url.search(/(file|https?|ftps?):\/\//)==-1){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=url;
}
return str+_37e;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _384;
do{
_384=ds.getStyle(node,"background-color");
if(_384.toLowerCase()=="rgba(0, 0, 0, 0)"){
_384="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_384,["transparent",""]));
if(_384=="transparent"){
_384=[255,255,255,0];
}else{
_384=dojo.graphics.color.extractRGB(_384);
}
return _384;
};
ds.getComputedStyle=function(node,_386,_387){
node=dojo.byId(node);
var _386=ds.toSelectorCase(_386);
var _388=ds.toCamelCase(_386);
if(!node||!node.style){
return _387;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_386);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_386);
}else{
return _387;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_388];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_386);
}else{
return _387;
}
};
ds.getStyleProperty=function(node,_38b){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_38b)]:undefined);
};
ds.getStyle=function(node,_38d){
var _38e=ds.getStyleProperty(node,_38d);
return (_38e?_38e:ds.getComputedStyle(node,_38d));
};
ds.setStyle=function(node,_390,_391){
node=dojo.byId(node);
if(node&&node.style){
var _392=ds.toCamelCase(_390);
node.style[_392]=_391;
}
};
ds.toCamelCase=function(_393){
var arr=_393.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
ds.toSelectorCase=function(_396){
return _396.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_398,_399){
node=dojo.byId(node);
if(!_399){
if(_398>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_398=0.999999;
}
}else{
if(_398<0){
_398=0;
}
}
}
if(h.ie){
if(node.nodeName.toLowerCase()=="tr"){
var tds=node.getElementsByTagName("td");
for(var x=0;x<tds.length;x++){
tds[x].style.filter="Alpha(Opacity="+_398*100+")";
}
}
node.style.filter="Alpha(Opacity="+_398*100+")";
}else{
if(h.moz){
node.style.opacity=_398;
node.style.MozOpacity=_398;
}else{
if(h.safari){
node.style.opacity=_398;
node.style.KhtmlOpacity=_398;
}else{
node.style.opacity=_398;
}
}
}
};
ds.getOpacity=function getOpacity(node){
node=dojo.byId(node);
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
ds.clearOpacity=function clearOpacity(node){
node=dojo.byId(node);
var ns=node.style;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
ds._toggle=function(node,_3a1,_3a2){
node=dojo.byId(node);
_3a2(node,!_3a1(node));
return _3a1(node);
};
ds.show=function(node){
node=dojo.byId(node);
if(ds.getStyleProperty(node,"display")=="none"){
ds.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
ds.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=ds.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
ds.setStyle(node,"display","none");
};
ds.setShowing=function(node,_3a7){
ds[(_3a7?"show":"hide")](node);
};
ds.isShowing=function(node){
return (ds.getStyleProperty(node,"display")!="none");
};
ds.toggleShowing=function(node){
return ds._toggle(node,ds.isShowing,ds.setShowing);
};
ds.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
ds.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in ds.displayMap?ds.displayMap[tag]:"block");
}
};
ds.setDisplay=function(node,_3ad){
ds.setStyle(node,"display",(dojo.lang.isString(_3ad)?_3ad:(_3ad?ds.suggestDisplayByTagName(node):"none")));
};
ds.isDisplayed=function(node){
return (ds.getComputedStyle(node,"display")!="none");
};
ds.toggleDisplay=function(node){
return ds._toggle(node,ds.isDisplayed,ds.setDisplay);
};
ds.setVisibility=function(node,_3b1){
ds.setStyle(node,"visibility",(dojo.lang.isString(_3b1)?_3b1:(_3b1?"visible":"hidden")));
};
ds.isVisible=function(node){
return (ds.getComputedStyle(node,"visibility")!="hidden");
};
ds.toggleVisibility=function(node){
return ds._toggle(node,ds.isVisible,ds.setVisibility);
};
ds.toCoordinateArray=function(_3b4,_3b5){
if(dojo.lang.isArray(_3b4)){
while(_3b4.length<4){
_3b4.push(0);
}
while(_3b4.length>4){
_3b4.pop();
}
var ret=_3b4;
}else{
var node=dojo.byId(_3b4);
var pos=ds.getAbsolutePosition(node,_3b5);
var ret=[pos.x,pos.y,ds.getBorderBoxWidth(node),ds.getBorderBoxHeight(node)];
}
ret.x=ret[0];
ret.y=ret[1];
ret.w=ret[2];
ret.h=ret[3];
return ret;
};
})();
dojo.provide("dojo.math.curves");
dojo.require("dojo.math");
dojo.math.curves={Line:function(_3b9,end){
this.start=_3b9;
this.end=end;
this.dimensions=_3b9.length;
for(var i=0;i<_3b9.length;i++){
_3b9[i]=Number(_3b9[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _3bd=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_3bd[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _3bd;
};
return this;
},Bezier:function(pnts){
this.getValue=function(step){
if(step>=1){
return this.p[this.p.length-1];
}
if(step<=0){
return this.p[0];
}
var _3c1=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_3c1[k]=0;
}
for(var j=0;j<this.p[0].length;j++){
var C=0;
var D=0;
for(var i=0;i<this.p.length;i++){
C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i);
}
for(var l=0;l<this.p.length;l++){
D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l);
}
_3c1[j]=C/D;
}
return _3c1;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _3cb=step*(this.p.length-1);
var node=Math.floor(_3cb);
var _3cd=_3cb-node;
var i0=node-1;
if(i0<0){
i0=0;
}
var i=node;
var i1=node+1;
if(i1>=this.p.length){
i1=this.p.length-1;
}
var i2=node+2;
if(i2>=this.p.length){
i2=this.p.length-1;
}
var u=_3cd;
var u2=_3cd*_3cd;
var u3=_3cd*_3cd*_3cd;
var _3d5=new Array(this.p[0].length);
for(var k=0;k<this.p[0].length;k++){
var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);
var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);
var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);
var x4=this.p[i][k];
_3d5[k]=x1*u3+x2*u2+x3*u+x4;
}
return _3d5;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_3db,end,ccw){
var _3de=dojo.math.points.midpoint(_3db,end);
var _3df=dojo.math.points.translate(dojo.math.points.invert(_3de),_3db);
var rad=Math.sqrt(Math.pow(_3df[0],2)+Math.pow(_3df[1],2));
var _3e1=dojo.math.radToDeg(Math.atan(_3df[1]/_3df[0]));
if(_3df[0]<0){
_3e1-=90;
}else{
_3e1+=90;
}
dojo.math.curves.CenteredArc.call(this,_3de,rad,_3e1,_3e1+(ccw?-180:180));
},CenteredArc:function(_3e2,_3e3,_3e4,end){
this.center=_3e2;
this.radius=_3e3;
this.start=_3e4||0;
this.end=end;
this.getValue=function(n){
var _3e7=new Array(2);
var _3e8=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_3e7[0]=this.center[0]+this.radius*Math.sin(_3e8);
_3e7[1]=this.center[1]-this.radius*Math.cos(_3e8);
return _3e7;
};
return this;
},Circle:function(_3e9,_3ea){
dojo.math.curves.CenteredArc.call(this,_3e9,_3ea,0,360);
return this;
},Path:function(){
var _3eb=[];
var _3ec=[];
var _3ed=[];
var _3ee=0;
this.add=function(_3ef,_3f0){
if(_3f0<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_3eb.push(_3ef);
_3ec.push(_3f0);
_3ee+=_3f0;
computeRanges();
};
this.remove=function(_3f1){
for(var i=0;i<_3eb.length;i++){
if(_3eb[i]==_3f1){
_3eb.splice(i,1);
_3ee-=_3ec.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_3eb=[];
_3ec=[];
_3ee=0;
};
this.getValue=function(n){
var _3f4=false,value=0;
for(var i=0;i<_3ed.length;i++){
var r=_3ed[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
value=_3eb[i].getValue(subN);
_3f4=true;
break;
}
}
if(!_3f4){
value=_3eb[_3eb.length-1].getValue(1);
}
for(var j=0;j<i;j++){
value=dojo.math.points.translate(value,_3eb[j].getValue(1));
}
return value;
};
function computeRanges(){
var _3f9=0;
for(var i=0;i<_3ec.length;i++){
var end=_3f9+_3ec[i]/_3ee;
var len=end-_3f9;
_3ed[i]=[_3f9,end,len];
_3f9=end;
}
}
return this;
}};
dojo.provide("dojo.animation.AnimationEvent");
dojo.require("dojo.lang");
dojo.animation.AnimationEvent=function(anim,type,_3ff,_400,_401,_402,dur,pct,fps){
this.type=type;
this.animation=anim;
this.coords=_3ff;
this.x=_3ff[0];
this.y=_3ff[1];
this.z=_3ff[2];
this.startTime=_400;
this.currentTime=_401;
this.endTime=_402;
this.duration=dur;
this.percent=pct;
this.fps=fps;
};
dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _406=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_406[i]=Math.round(this.coords[i]);
}
return _406;
}});
dojo.provide("dojo.animation.Animation");
dojo.require("dojo.animation.AnimationEvent");
dojo.require("dojo.lang.func");
dojo.require("dojo.math");
dojo.require("dojo.math.curves");
dojo.animation.Animation=function(_408,_409,_40a,_40b,rate){
if(dojo.lang.isArray(_408)){
_408=new dojo.math.curves.Line(_408[0],_408[1]);
}
this.curve=_408;
this.duration=_409;
this.repeatCount=_40b||0;
this.rate=rate||25;
if(_40a){
if(dojo.lang.isFunction(_40a.getValue)){
this.accel=_40a;
}else{
var i=0.35*_40a+0.5;
this.accel=new dojo.math.curves.CatmullRom([[0],[i],[1]],0.45);
}
}
};
dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(_40e){
if(_40e){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return;
}
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._lastFrame=this._startTime;
var e=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0);
this._active=true;
this._paused=false;
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
e.type="begin";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
e.type="play";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPlay=="function"){
this.onPlay(e);
}
if(this._animSequence){
this._animSequence._setCurrent(this);
}
this._cycle();
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return;
}
this._paused=true;
var e=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPause=="function"){
this.onPause(e);
}
},playPause:function(){
if(!this._active||this._paused){
this.play();
}else{
this.pause();
}
},gotoPercent:function(pct,_412){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_412){
this.play();
}
},stop:function(_413){
clearTimeout(this._timer);
var step=this._percent/100;
if(_413){
step=1;
}
var e=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(step),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onStop=="function"){
this.onStop(e);
}
this._active=false;
this._paused=false;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
var fps=1000/(curr-this._lastFrame);
this._lastFrame=curr;
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if(this.accel&&this.accel.getValue){
step=this.accel.getValue(step);
}
var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps));
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onAnimate=="function"){
this.onAnimate(e);
}
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
e.type="end";
this._active=false;
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this.repeatCount--;
this.play(true);
}else{
if(this.repeatCount==-1){
this.play(true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
if(this._animSequence){
this._animSequence._playNext();
}
}
}
}
}
}});
dojo.provide("dojo.animation");
dojo.require("dojo.animation.Animation");
dojo.provide("dojo.fx.html");
dojo.require("dojo.style");
dojo.require("dojo.math.curves");
dojo.require("dojo.lang.func");
dojo.require("dojo.animation");
dojo.require("dojo.event.*");
dojo.require("dojo.graphics.color");
dojo.fx.duration=300;
dojo.fx.html._makeFadeable=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
dojo.fx.html.fadeOut=function(node,_41c,_41d,_41e){
return dojo.fx.html.fade(node,_41c,dojo.style.getOpacity(node),0,_41d,_41e);
};
dojo.fx.html.fadeIn=function(node,_420,_421,_422){
return dojo.fx.html.fade(node,_420,dojo.style.getOpacity(node),1,_421,_422);
};
dojo.fx.html.fadeHide=function(node,_424,_425,_426){
node=dojo.byId(node);
if(!_424){
_424=150;
}
return dojo.fx.html.fadeOut(node,_424,function(node){
node.style.display="none";
if(typeof _425=="function"){
_425(node);
}
});
};
dojo.fx.html.fadeShow=function(node,_429,_42a,_42b){
node=dojo.byId(node);
if(!_429){
_429=150;
}
node.style.display="block";
return dojo.fx.html.fade(node,_429,0,1,_42a,_42b);
};
dojo.fx.html.fade=function(node,_42d,_42e,_42f,_430,_431){
node=dojo.byId(node);
dojo.fx.html._makeFadeable(node);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_42e],[_42f]),_42d||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
dojo.style.setOpacity(node,e.x);
});
if(_430){
dojo.event.connect(anim,"onEnd",function(e){
_430(node,anim);
});
}
if(!_431){
anim.play(true);
}
return anim;
};
dojo.fx.html.slideTo=function(node,_436,_437,_438,_439){
if(!dojo.lang.isNumber(_436)){
var tmp=_436;
_436=_437;
_437=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slide(node,_436,[left,top],_437,_438,_439);
};
dojo.fx.html.slideBy=function(node,_43f,_440,_441,_442){
if(!dojo.lang.isNumber(_43f)){
var tmp=_43f;
_43f=_440;
_440=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slideTo(node,_43f,[left+_440[0],top+_440[1]],_441,_442);
};
dojo.fx.html.slide=function(node,_448,_449,_44a,_44b,_44c){
if(!dojo.lang.isNumber(_448)){
var tmp=_448;
_448=_44a;
_44a=_449;
_449=tmp;
}
node=dojo.byId(node);
if(dojo.style.getComputedStyle(node,"position")=="static"){
node.style.position="relative";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_449,_44a),_448||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
with(node.style){
left=e.x+"px";
top=e.y+"px";
}
});
if(_44b){
dojo.event.connect(anim,"onEnd",function(e){
_44b(node,anim);
});
}
if(!_44c){
anim.play(true);
}
return anim;
};
dojo.fx.html.colorFadeIn=function(node,_452,_453,_454,_455,_456){
if(!dojo.lang.isNumber(_452)){
var tmp=_452;
_452=_453;
_453=tmp;
}
node=dojo.byId(node);
var _458=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _45a=bg=="transparent"||bg=="rgba(0, 0, 0, 0)";
while(_458.length>3){
_458.pop();
}
var rgb=new dojo.graphics.color.Color(_453).toRgb();
var anim=dojo.fx.html.colorFade(node,_452||dojo.fx.duration,_453,_458,_455,true);
dojo.event.connect(anim,"onEnd",function(e){
if(_45a){
node.style.backgroundColor="transparent";
}
});
if(_454>0){
node.style.backgroundColor="rgb("+rgb.join(",")+")";
if(!_456){
setTimeout(function(){
anim.play(true);
},_454);
}
}else{
if(!_456){
anim.play(true);
}
}
return anim;
};
dojo.fx.html.highlight=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeFrom=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeOut=function(node,_45f,_460,_461,_462,_463){
if(!dojo.lang.isNumber(_45f)){
var tmp=_45f;
_45f=_460;
_460=tmp;
}
node=dojo.byId(node);
var _465=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node)).toRgb();
var rgb=new dojo.graphics.color.Color(_460).toRgb();
var anim=dojo.fx.html.colorFade(node,_45f||dojo.fx.duration,_465,rgb,_462,_461>0||_463);
if(_461>0){
node.style.backgroundColor="rgb("+_465.join(",")+")";
if(!_463){
setTimeout(function(){
anim.play(true);
},_461);
}
}
return anim;
};
dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFade=function(node,_469,_46a,_46b,_46c,_46d){
if(!dojo.lang.isNumber(_469)){
var tmp=_469;
_469=_46b;
_46b=_46a;
_46a=tmp;
}
node=dojo.byId(node);
var _46f=new dojo.graphics.color.Color(_46a).toRgb();
var _470=new dojo.graphics.color.Color(_46b).toRgb();
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_46f,_470),_469||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")";
});
if(_46c){
dojo.event.connect(anim,"onEnd",function(e){
_46c(node,anim);
});
}
if(!_46d){
anim.play(true);
}
return anim;
};
dojo.fx.html.textColorFade=function(node,_475,_476,_477,_478,_479){
if(!dojo.lang.isNumber(_475)){
var tmp=_475;
_475=_477;
_477=_476;
_476=tmp;
}
node=dojo.byId(node);
var _47b=new dojo.graphics.color.Color(_476).toRgb();
var _47c=new dojo.graphics.color.Color(_477).toRgb();
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_47b,_47c),_475||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.color="rgb("+e.coordsAsInts().join(",")+")";
});
if(_478){
dojo.event.connect(anim,"onEnd",function(e){
_478(node,anim);
});
}
if(!_479){
anim.play(true);
}
return anim;
};
dojo.fx.html.wipeIn=function(node,_481,_482,_483){
node=dojo.byId(node);
var _484=dojo.style.getStyle(node,"overflow");
if(_484=="visible"){
node.style.overflow="hidden";
}
node.style.height=0;
dojo.style.show(node);
var anim=dojo.fx.html.wipe(node,_481,0,node.scrollHeight,null,true);
dojo.event.connect(anim,"onEnd",function(){
node.style.overflow=_484;
node.style.height="auto";
if(_482){
_482(node,anim);
}
});
if(!_483){
anim.play();
}
return anim;
};
dojo.fx.html.wipeOut=function(node,_487,_488,_489){
node=dojo.byId(node);
var _48a=dojo.style.getStyle(node,"overflow");
if(_48a=="visible"){
node.style.overflow="hidden";
}
var anim=dojo.fx.html.wipe(node,_487,node.offsetHeight,0,null,true);
dojo.event.connect(anim,"onEnd",function(){
dojo.style.hide(node);
node.style.overflow=_48a;
if(_488){
_488(node,anim);
}
});
if(!_489){
anim.play();
}
return anim;
};
dojo.fx.html.wipe=function(node,_48d,_48e,_48f,_490,_491){
node=dojo.byId(node);
var anim=new dojo.animation.Animation([[_48e],[_48f]],_48d||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.height=e.x+"px";
});
dojo.event.connect(anim,"onEnd",function(){
if(_490){
_490(node,anim);
}
});
if(!_491){
anim.play();
}
return anim;
};
dojo.fx.html.wiper=function(node,_495){
this.node=dojo.byId(node);
if(_495){
dojo.event.connect(dojo.byId(_495),"onclick",this,"toggle");
}
};
dojo.lang.extend(dojo.fx.html.wiper,{duration:dojo.fx.duration,_anim:null,toggle:function(){
if(!this._anim){
var type="wipe"+(dojo.style.isVisible(this.node)?"Hide":"Show");
this._anim=dojo.fx[type](this.node,this.duration,dojo.lang.hitch(this,"_callback"));
}
},_callback:function(){
this._anim=null;
}});
dojo.fx.html.explode=function(_497,_498,_499,_49a,_49b){
var _49c=dojo.style.toCoordinateArray(_497);
var _49d=document.createElement("div");
with(_49d.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_49d);
_498=dojo.byId(_498);
with(_498.style){
visibility="hidden";
display="block";
}
var _49e=dojo.style.toCoordinateArray(_498);
with(_498.style){
display="none";
visibility="visible";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_49c,_49e),_499||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_49d.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_49d.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_498.style.display="block";
_49d.parentNode.removeChild(_49d);
if(_49a){
_49a(_498,anim);
}
});
if(!_49b){
anim.play();
}
return anim;
};
dojo.fx.html.implode=function(_4a2,end,_4a4,_4a5,_4a6){
var _4a7=dojo.style.toCoordinateArray(_4a2);
var _4a8=dojo.style.toCoordinateArray(end);
_4a2=dojo.byId(_4a2);
var _4a9=document.createElement("div");
with(_4a9.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_4a9);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_4a7,_4a8),_4a4||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_4a2.style.display="none";
_4a9.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_4a9.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_4a9.parentNode.removeChild(_4a9);
if(_4a5){
_4a5(_4a2,anim);
}
});
if(!_4a6){
anim.play();
}
return anim;
};
dojo.fx.html.Exploder=function(_4ad,_4ae){
_4ad=dojo.byId(_4ad);
_4ae=dojo.byId(_4ae);
var _4af=this;
this.waitToHide=500;
this.timeToShow=100;
this.waitToShow=200;
this.timeToHide=70;
this.autoShow=false;
this.autoHide=false;
var _4b0=null;
var _4b1=null;
var _4b2=null;
var _4b3=null;
var _4b4=null;
var _4b5=null;
this.showing=false;
this.onBeforeExplode=null;
this.onAfterExplode=null;
this.onBeforeImplode=null;
this.onAfterImplode=null;
this.onExploding=null;
this.onImploding=null;
this.timeShow=function(){
clearTimeout(_4b2);
_4b2=setTimeout(_4af.show,_4af.waitToShow);
};
this.show=function(){
clearTimeout(_4b2);
clearTimeout(_4b3);
if((_4b1&&_4b1.status()=="playing")||(_4b0&&_4b0.status()=="playing")||_4af.showing){
return;
}
if(typeof _4af.onBeforeExplode=="function"){
_4af.onBeforeExplode(_4ad,_4ae);
}
_4b0=dojo.fx.html.explode(_4ad,_4ae,_4af.timeToShow,function(e){
_4af.showing=true;
if(typeof _4af.onAfterExplode=="function"){
_4af.onAfterExplode(_4ad,_4ae);
}
});
if(typeof _4af.onExploding=="function"){
dojo.event.connect(_4b0,"onAnimate",this,"onExploding");
}
};
this.timeHide=function(){
clearTimeout(_4b2);
clearTimeout(_4b3);
if(_4af.showing){
_4b3=setTimeout(_4af.hide,_4af.waitToHide);
}
};
this.hide=function(){
clearTimeout(_4b2);
clearTimeout(_4b3);
if(_4b0&&_4b0.status()=="playing"){
return;
}
_4af.showing=false;
if(typeof _4af.onBeforeImplode=="function"){
_4af.onBeforeImplode(_4ad,_4ae);
}
_4b1=dojo.fx.html.implode(_4ae,_4ad,_4af.timeToHide,function(e){
if(typeof _4af.onAfterImplode=="function"){
_4af.onAfterImplode(_4ad,_4ae);
}
});
if(typeof _4af.onImploding=="function"){
dojo.event.connect(_4b1,"onAnimate",this,"onImploding");
}
};
dojo.event.connect(_4ad,"onclick",function(e){
if(_4af.showing){
_4af.hide();
}else{
_4af.show();
}
});
dojo.event.connect(_4ad,"onmouseover",function(e){
if(_4af.autoShow){
_4af.timeShow();
}
});
dojo.event.connect(_4ad,"onmouseout",function(e){
if(_4af.autoHide){
_4af.timeHide();
}
});
dojo.event.connect(_4ae,"onmouseover",function(e){
clearTimeout(_4b3);
});
dojo.event.connect(_4ae,"onmouseout",function(e){
if(_4af.autoHide){
_4af.timeHide();
}
});
dojo.event.connect(document.documentElement||document.body,"onclick",function(e){
function isDesc(node,_4bf){
while(node){
if(node==_4bf){
return true;
}
node=node.parentNode;
}
return false;
}
if(_4af.autoHide&&_4af.showing&&!isDesc(e.target,_4ae)&&!isDesc(e.target,_4ad)){
_4af.hide();
}
});
return this;
};
dojo.fx.html.toggle={};
dojo.fx.html.toggle.plain={show:function(node,_4c1,_4c2,_4c3){
dojo.style.show(node);
if(dojo.lang.isFunction(_4c3)){
_4c3();
}
},hide:function(node,_4c5,_4c6,_4c7){
dojo.style.hide(node);
if(dojo.lang.isFunction(_4c7)){
_4c7();
}
}};
dojo.fx.html.toggle.fade={show:function(node,_4c9,_4ca,_4cb){
dojo.fx.html.fadeShow(node,_4c9,_4cb);
},hide:function(node,_4cd,_4ce,_4cf){
dojo.fx.html.fadeHide(node,_4cd,_4cf);
}};
dojo.fx.html.toggle.wipe={show:function(node,_4d1,_4d2,_4d3){
dojo.fx.html.wipeIn(node,_4d1,_4d3);
},hide:function(node,_4d5,_4d6,_4d7){
dojo.fx.html.wipeOut(node,_4d5,_4d7);
}};
dojo.fx.html.toggle.explode={show:function(node,_4d9,_4da,_4db){
dojo.fx.html.explode(_4da||[0,0,0,0],node,_4d9,_4db);
},hide:function(node,_4dd,_4de,_4df){
dojo.fx.html.implode(node,_4de||[0,0,0,0],_4dd,_4df);
}};
dojo.lang.mixin(dojo.fx,dojo.fx.html);
dojo.kwCompoundRequire({browser:["dojo.fx.html"],dashboard:["dojo.fx.html"]});
dojo.provide("dojo.fx.*");
dojo.provide("dojo.html");
dojo.require("dojo.lang.func");
dojo.require("dojo.dom");
dojo.require("dojo.style");
dojo.require("dojo.string");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.lang.mixin(dojo.html,dojo.style);
dojo.html.clearSelection=function(){
try{
if(window["getSelection"]){
if(dojo.render.html.safari){
window.getSelection().collapse();
}else{
window.getSelection().removeAllRanges();
}
}else{
if(document.selection){
if(document.selection.empty){
document.selection.empty();
}else{
if(document.selection.clear){
document.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_4e0){
_4e0=dojo.byId(_4e0)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_4e0.style.MozUserSelect="none";
}else{
if(h.safari){
_4e0.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_4e0.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_4e2){
_4e2=dojo.byId(_4e2)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_4e2.style.MozUserSelect="";
}else{
if(h.safari){
_4e2.style.KhtmlUserSelect="";
}else{
if(h.ie){
_4e2.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_4e4){
_4e4=dojo.byId(_4e4);
if(document.selection&&document.body.createTextRange){
var _4e5=document.body.createTextRange();
_4e5.moveToElementText(_4e4);
_4e5.select();
}else{
if(window["getSelection"]){
var _4e6=window.getSelection();
if(_4e6["selectAllChildren"]){
_4e6.selectAllChildren(_4e4);
}
}
}
};
dojo.html.selectInputText=function(_4e7){
_4e7=dojo.byId(_4e7);
if(document.selection&&document.body.createTextRange){
var _4e8=_4e7.createTextRange();
_4e8.moveStart("character",0);
_4e8.moveEnd("character",_4e7.value.length);
_4e8.select();
}else{
if(window["getSelection"]){
var _4e9=window.getSelection();
_4e7.setSelectionRange(0,_4e7.value.length);
}
}
_4e7.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _4ea=window.getSelection();
if(dojo.lang.isString(_4ea)){
return _4ea=="";
}else{
return _4ea.isCollapsed;
}
}
}
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=window.event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getDocumentWidth=function(){
dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");
return dojo.html.getViewportWidth();
};
dojo.html.getDocumentHeight=function(){
dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");
return dojo.html.getViewportHeight();
};
dojo.html.getDocumentSize=function(){
dojo.deprecated("dojo.html.getDocument*","replaced of dojo.html.getViewport*","0.4");
return dojo.html.getViewportSize();
};
dojo.html.getViewportWidth=function(){
var w=0;
if(window.innerWidth){
w=window.innerWidth;
}
if(dojo.exists(document,"documentElement.clientWidth")){
var w2=document.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
return w;
}
if(document.body){
return document.body.clientWidth;
}
return 0;
};
dojo.html.getViewportHeight=function(){
if(window.innerHeight){
return window.innerHeight;
}
if(dojo.exists(document,"documentElement.clientHeight")){
return document.documentElement.clientHeight;
}
if(document.body){
return document.body.clientHeight;
}
return 0;
};
dojo.html.getViewportSize=function(){
var ret=[dojo.html.getViewportWidth(),dojo.html.getViewportHeight()];
ret.w=ret[0];
ret.h=ret[1];
return ret;
};
dojo.html.getScrollTop=function(){
return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
};
dojo.html.getScrollLeft=function(){
return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
};
dojo.html.getScrollOffset=function(){
var off=[dojo.html.getScrollLeft(),dojo.html.getScrollTop()];
off.x=off[0];
off.y=off[1];
return off;
};
dojo.html.getParentOfType=function(node,type){
dojo.deprecated("dojo.html.getParentOfType","replaced by dojo.html.getParentByType*","0.4");
return dojo.html.getParentByType(node,type);
};
dojo.html.getParentByType=function(node,type){
var _4f5=dojo.byId(node);
type=type.toLowerCase();
while((_4f5)&&(_4f5.nodeName.toLowerCase()!=type)){
if(_4f5==(document["body"]||document["documentElement"])){
return null;
}
_4f5=_4f5.parentNode;
}
return _4f5;
};
dojo.html.getAttribute=function(node,attr){
node=dojo.byId(node);
if((!node)||(!node.getAttribute)){
return null;
}
var ta=typeof attr=="string"?attr:new String(attr);
var v=node.getAttribute(ta.toUpperCase());
if((v)&&(typeof v=="string")&&(v!="")){
return v;
}
if(v&&v.value){
return v.value;
}
if((node.getAttributeNode)&&(node.getAttributeNode(ta))){
return (node.getAttributeNode(ta)).value;
}else{
if(node.getAttribute(ta)){
return node.getAttribute(ta);
}else{
if(node.getAttribute(ta.toLowerCase())){
return node.getAttribute(ta.toLowerCase());
}
}
}
return null;
};
dojo.html.hasAttribute=function(node,attr){
node=dojo.byId(node);
return dojo.html.getAttribute(node,attr)?true:false;
};
dojo.html.getClass=function(node){
node=dojo.byId(node);
if(!node){
return "";
}
var cs="";
if(node.className){
cs=node.className;
}else{
if(dojo.html.hasAttribute(node,"class")){
cs=dojo.html.getAttribute(node,"class");
}
}
return dojo.string.trim(cs);
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_501){
return dojo.lang.inArray(dojo.html.getClasses(node),_501);
};
dojo.html.prependClass=function(node,_503){
_503+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_503);
};
dojo.html.addClass=function(node,_505){
if(dojo.html.hasClass(node,_505)){
return false;
}
_505=dojo.string.trim(dojo.html.getClass(node)+" "+_505);
return dojo.html.setClass(node,_505);
};
dojo.html.setClass=function(node,_507){
node=dojo.byId(node);
var cs=new String(_507);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_507);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_50a,_50b){
var _50a=dojo.string.trim(new String(_50a));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_50b){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_50a)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_50a){
nca.push(cs[i]);
}
}
}
dojo.html.setClass(node,nca.join(" "));
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_510,_511){
dojo.html.removeClass(node,_511);
dojo.html.addClass(node,_510);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_512,_513,_514,_515,_516){
_513=dojo.byId(_513)||document;
var _517=_512.split(/\s+/g);
var _518=[];
if(_515!=1&&_515!=2){
_515=0;
}
var _519=new RegExp("(\\s|^)(("+_517.join(")|(")+"))(\\s|$)");
var _51a=[];
if(!_516&&document.evaluate){
var _51b="//"+(_514||"*")+"[contains(";
if(_515!=dojo.html.classMatchType.ContainsAny){
_51b+="concat(' ',@class,' '), ' "+_517.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')]";
}else{
_51b+="concat(' ',@class,' '), ' "+_517.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _51c=document.evaluate(_51b,_513,null,XPathResult.ANY_TYPE,null);
var _51d=_51c.iterateNext();
while(_51d){
try{
_51a.push(_51d);
_51d=_51c.iterateNext();
}
catch(e){
break;
}
}
return _51a;
}else{
if(!_514){
_514="*";
}
_51a=_513.getElementsByTagName(_514);
var node,i=0;
outer:
while(node=_51a[i++]){
var _51f=dojo.html.getClasses(node);
if(_51f.length==0){
continue outer;
}
var _520=0;
for(var j=0;j<_51f.length;j++){
if(_519.test(_51f[j])){
if(_515==dojo.html.classMatchType.ContainsAny){
_518.push(node);
continue outer;
}else{
_520++;
}
}else{
if(_515==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_520==_517.length){
if((_515==dojo.html.classMatchType.IsOnly)&&(_520==_51f.length)){
_518.push(node);
}else{
if(_515==dojo.html.classMatchType.ContainsAll){
_518.push(node);
}
}
}
}
return _518;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _523={x:0,y:0};
if(e.pageX||e.pageY){
_523.x=e.pageX;
_523.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_523.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_523.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _523;
};
dojo.html.overElement=function(_526,e){
_526=dojo.byId(_526);
var _528=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_526,true);
var _52a=top+getInnerHeight(_526);
var left=getAbsoluteX(_526,true);
var _52c=left+getInnerWidth(_526);
}
return (_528.x>=left&&_528.x<=_52c&&_528.y>=top&&_528.y<=_52a);
};
dojo.html.setActiveStyleSheet=function(_52d){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_52d){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.getPreferredStyleSheet=function(){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.body=function(){
return document.body||document.getElementsByTagName("body")[0];
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var arr=dojo.lang.map(dojo.lang.toArray(arguments,1),function(a){
return String(a).toLowerCase();
});
return arr[dojo.lang.find(node.tagName.toLowerCase(),arr)]||"";
}
return "";
};
dojo.html.copyStyle=function(_534,_535){
if(dojo.lang.isUndefined(_535.style.cssText)){
_534.setAttribute("style",_535.getAttribute("style"));
}else{
_534.style.cssText=_535.style.cssText;
}
dojo.html.addClass(_534,dojo.html.getClass(_535));
};
dojo.html._callExtrasDeprecated=function(_536,args){
var _538="dojo.html.extras";
dojo.deprecated("dojo.html."+_536,"moved to "+_538,"0.4");
dojo["require"](_538);
return dojo.html[_536].apply(dojo.html,args);
};
dojo.html.createNodesFromText=function(){
return dojo.html._callExtrasDeprecated("createNodesFromText",arguments);
};
dojo.html.gravity=function(){
return dojo.html._callExtrasDeprecated("gravity",arguments);
};
dojo.html.placeOnScreen=function(){
return dojo.html._callExtrasDeprecated("placeOnScreen",arguments);
};
dojo.html.placeOnScreenPoint=function(){
return dojo.html._callExtrasDeprecated("placeOnScreenPoint",arguments);
};
dojo.html.renderedTextContent=function(){
return dojo.html._callExtrasDeprecated("renderedTextContent",arguments);
};
dojo.html.BackgroundIframe=function(){
return dojo.html._callExtrasDeprecated("BackgroundIframe",arguments);
};
dojo.require("dojo.html");
dojo.provide("dojo.html.extras");
dojo.require("dojo.string.extras");
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _53b=dojo.html.getCursorPosition(e);
with(dojo.html){
var _53c=getAbsoluteX(node,true)+(getInnerWidth(node)/2);
var _53d=getAbsoluteY(node,true)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_53b.x<_53c?WEST:EAST)|(_53b.y<_53d?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _53f="";
if(node==null){
return _53f;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _541="unknown";
try{
_541=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_541){
case "block":
case "list-item":
case "run-in":
case "table":
case "table-row-group":
case "table-header-group":
case "table-footer-group":
case "table-row":
case "table-column-group":
case "table-column":
case "table-cell":
case "table-caption":
_53f+="\n";
_53f+=dojo.html.renderedTextContent(node.childNodes[i]);
_53f+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_53f+="\n";
}else{
_53f+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _543="unknown";
try{
_543=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_543){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_543){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_53f)){
text.replace(/^\s/,"");
}
break;
}
_53f+=text;
break;
default:
break;
}
}
return _53f;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=dojo.string.trim(txt);
}
var tn=document.createElement("div");
tn.style.visibility="hidden";
document.body.appendChild(tn);
var _547="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_547="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_547="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_547="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _548=null;
switch(_547){
case "cell":
_548=tn.getElementsByTagName("tr")[0];
break;
case "row":
_548=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_548=tn.getElementsByTagName("table")[0];
break;
default:
_548=tn;
break;
}
var _549=[];
for(var x=0;x<_548.childNodes.length;x++){
_549.push(_548.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _549;
};
dojo.html.placeOnScreen=function(node,_54c,_54d,_54e,_54f){
if(dojo.lang.isArray(_54c)){
_54f=_54e;
_54e=_54d;
_54d=_54c[1];
_54c=_54c[0];
}
if(!isNaN(_54e)){
_54e=[Number(_54e),Number(_54e)];
}else{
if(!dojo.lang.isArray(_54e)){
_54e=[0,0];
}
}
var _550=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_54e[0];
var h=node.offsetHeight+_54e[1];
if(_54f){
_54c-=_550.x;
_54d-=_550.y;
}
var x=_54c+w;
if(x>view.w){
x=view.w-w;
}else{
x=_54c;
}
x=Math.max(_54e[0],x)+_550.x;
var y=_54d+h;
if(y>view.h){
y=view.h-h;
}else{
y=_54d;
}
y=Math.max(_54e[1],y)+_550.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.placeOnScreenPoint=function(node,_558,_559,_55a,_55b){
if(dojo.lang.isArray(_558)){
_55b=_55a;
_55a=_559;
_559=_558[1];
_558=_558[0];
}
if(!isNaN(_55a)){
_55a=[Number(_55a),Number(_55a)];
}else{
if(!dojo.lang.isArray(_55a)){
_55a=[0,0];
}
}
var _55c=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var _55e=node.style.display;
node.style.display="";
var w=dojo.style.getInnerWidth(node);
var h=dojo.style.getInnerHeight(node);
node.style.display=_55e;
if(_55b){
_558-=_55c.x;
_559-=_55c.y;
}
var x=-1,y=-1;
if((_558+_55a[0])+w<=view.w&&(_559+_55a[1])+h<=view.h){
x=(_558+_55a[0]);
y=(_559+_55a[1]);
}
if((x<0||y<0)&&(_558-_55a[0])<=view.w&&(_559+_55a[1])+h<=view.h){
x=(_558-_55a[0])-w;
y=(_559+_55a[1]);
}
if((x<0||y<0)&&(_558+_55a[0])+w<=view.w&&(_559-_55a[1])<=view.h){
x=(_558+_55a[0]);
y=(_559-_55a[1])-h;
}
if((x<0||y<0)&&(_558-_55a[0])<=view.w&&(_559-_55a[1])<=view.h){
x=(_558-_55a[0])-w;
y=(_559-_55a[1])-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_558,_559,_55a,_55b);
}
x+=_55c.x;
y+=_55c.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie){
var html="<iframe "+"style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=document.createElement(html);
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
document.body.appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode){
var w=dojo.style.getOuterWidth(this.domNode);
var h=dojo.style.getOuterHeight(this.domNode);
if(w==0||h==0){
dojo.lang.setTimeout(this,this.onResized,50);
return;
}
var s=this.iframe.style;
s.width=w+"px";
s.height=h+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _569=dojo.style.toCoordinateArray(node,true);
var s=this.iframe.style;
s.width=_569.w+"px";
s.height=_569.h+"px";
s.left=_569.x+"px";
s.top=_569.y+"px";
},setZIndex:function(node){
if(!this.iframe){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.style.zIndex=node;
}
}
},show:function(){
if(!this.iframe){
return;
}
this.iframe.style.display="block";
},hide:function(){
if(!this.ie){
return;
}
var s=this.iframe.style;
s.display="none";
},remove:function(){
dojo.dom.removeNode(this.iframe);
}});
dojo.provide("dojo.html.shadow");
dojo.require("dojo.lang");
dojo.require("dojo.uri");
dojo.html.shadow=function(node){
this.init(node);
};
dojo.lang.extend(dojo.html.shadow,{shadowPng:dojo.uri.dojoUri("src/html/images/shadow"),shadowThickness:8,shadowOffset:15,init:function(node){
this.node=node;
this.pieces={};
var x1=-1*this.shadowThickness;
var y0=this.shadowOffset;
var y1=this.shadowOffset+this.shadowThickness;
this._makePiece("tl","top",y0,"left",x1);
this._makePiece("l","top",y1,"left",x1,"scale");
this._makePiece("tr","top",y0,"left",0);
this._makePiece("r","top",y1,"left",0,"scale");
this._makePiece("bl","top",0,"left",x1);
this._makePiece("b","top",0,"left",0,"crop");
this._makePiece("br","top",0,"left",0);
},_makePiece:function(name,_573,_574,_575,_576,_577){
var img;
var url=this.shadowPng+name.toUpperCase()+".png";
if(dojo.render.html.ie){
img=document.createElement("div");
img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"'"+(_577?", sizingMethod='"+_577+"'":"")+")";
}else{
img=document.createElement("img");
img.src=url;
}
img.style.position="absolute";
img.style[_573]=_574+"px";
img.style[_575]=_576+"px";
img.style.width=this.shadowThickness+"px";
img.style.height=this.shadowThickness+"px";
this.pieces[name]=img;
this.node.appendChild(img);
},size:function(_57a,_57b){
var _57c=_57b-(this.shadowOffset+this.shadowThickness+1);
with(this.pieces){
l.style.height=_57c+"px";
r.style.height=_57c+"px";
b.style.width=(_57a-1)+"px";
bl.style.top=(_57b-1)+"px";
b.style.top=(_57b-1)+"px";
br.style.top=(_57b-1)+"px";
tr.style.left=(_57a-1)+"px";
r.style.left=(_57a-1)+"px";
br.style.left=(_57a-1)+"px";
}
}});
dojo.kwCompoundRequire({common:["dojo.html","dojo.html.extras","dojo.html.shadow"]});
dojo.provide("dojo.html.*");
dojo.provide("dojo.experimental");
dojo.experimental=function(_57d,_57e){
var mess="EXPERIMENTAL: "+_57d;
mess+=" -- Not yet ready for use.  APIs subject to change without notice.";
if(_57e){
mess+=" "+_57e;
}
dojo.debug(mess);
};
dojo.provide("dojo.behavior");
dojo.require("dojo.event.*");
dojo.require("dojo.experimental");
dojo.experimental("dojo.behavior");
dojo.behavior=new function(){
function arrIn(obj,name){
if(!obj[name]){
obj[name]=[];
}
return obj[name];
}
function forIn(obj,_583,func){
var _585={};
for(var x in obj){
if(typeof _585[x]=="undefined"){
if(!func){
_583(obj[x],x);
}else{
func.call(_583,obj[x],x);
}
}
}
}
this.behaviors={};
this.add=function(_587){
var _588={};
forIn(_587,this,function(_589,name){
var _58b=arrIn(this.behaviors,name);
if((dojo.lang.isString(_589))||(dojo.lang.isFunction(_589))){
_589={found:_589};
}
forIn(_589,function(rule,_58d){
arrIn(_58b,_58d).push(rule);
});
});
};
this.apply=function(){
dojo.profile.start("dojo.behavior.apply");
var r=dojo.render.html;
var _58f=(!r.safari);
if(r.safari){
var uas=r.UA.split("AppleWebKit/")[1];
if(parseInt(uas.match(/[0-9.]{3,}/))>=420){
_58f=true;
}
}
if((dj_undef("behaviorFastParse",djConfig)?(_58f):djConfig["behaviorFastParse"])){
this.applyFast();
}else{
this.applySlow();
}
dojo.profile.end("dojo.behavior.apply");
};
this.matchCache={};
this.elementsById=function(id,_592){
var _593=[];
var _594=[];
arrIn(this.matchCache,id);
if(_592){
var _595=this.matchCache[id];
for(var x=0;x<_595.length;x++){
if(_595[x].id!=""){
_593.push(_595[x]);
_595.splice(x,1);
x--;
}
}
}
var _597=dojo.byId(id);
while(_597){
if(!_597["idcached"]){
_594.push(_597);
}
_597.id="";
_597=dojo.byId(id);
}
this.matchCache[id]=this.matchCache[id].concat(_594);
dojo.lang.forEach(this.matchCache[id],function(node){
node.id=id;
node.idcached=true;
});
return {"removed":_593,"added":_594,"match":this.matchCache[id]};
};
this.applyToNode=function(node,_59a,_59b){
if(typeof _59a=="string"){
dojo.event.topic.registerPublisher(_59a,node,_59b);
}else{
if(typeof _59a=="function"){
if(_59b=="found"){
_59a(node);
}else{
dojo.event.connect(node,_59b,_59a);
}
}else{
_59a.srcObj=node;
_59a.srcFunc=_59b;
dojo.event.kwConnect(_59a);
}
}
};
this.applyFast=function(){
dojo.profile.start("dojo.behavior.applyFast");
forIn(this.behaviors,function(_59c,id){
var _59e=dojo.behavior.elementsById(id);
dojo.lang.forEach(_59e.added,function(elem){
forIn(_59c,function(_5a0,_5a1){
if(dojo.lang.isArray(_5a0)){
dojo.lang.forEach(_5a0,function(_5a2){
dojo.behavior.applyToNode(elem,_5a2,_5a1);
});
}
});
});
});
dojo.profile.end("dojo.behavior.applyFast");
};
this.applySlow=function(){
dojo.profile.start("dojo.behavior.applySlow");
var all=document.getElementsByTagName("*");
var _5a4=all.length;
for(var x=0;x<_5a4;x++){
var elem=all[x];
if((elem.id)&&(!elem["behaviorAdded"])&&(this.behaviors[elem.id])){
elem["behaviorAdded"]=true;
forIn(this.behaviors[elem.id],function(_5a7,_5a8){
if(dojo.lang.isArray(_5a7)){
dojo.lang.forEach(_5a7,function(_5a9){
dojo.behavior.applyToNode(elem,_5a9,_5a8);
});
}
});
}
}
dojo.profile.end("dojo.behavior.applySlow");
};
};
dojo.addOnLoad(dojo.behavior,"apply");

