/*
	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:[]};
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;
}
var _33=this.getText(uri,null,true);
if(_33==null){
return 0;
}
this.loadedUris[uri]=true;
var _34=dj_eval(_33);
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.post_load_=true;
var mll=this.modulesLoadedListeners;
this.modulesLoadedListeners=[];
for(var x=0;x<mll.length;x++){
mll[x]();
}
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.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._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_3e,_3f,_40){
if(!_3e){
return;
}
_40=this._global_omit_module_check||_40;
var _41=this.findModule(_3e,false);
if(_41){
return _41;
}
if(dj_undef(_3e,this.loading_modules_)){
this.addedToLoadingCount.push(_3e);
}
this.loading_modules_[_3e]=1;
var _42=_3e.replace(/\./g,"/")+".js";
var _43=_3e.split(".");
var _44=_3e.split(".");
for(var i=_43.length-1;i>0;i--){
var _46=_43.slice(0,i).join(".");
var _47=this.getModulePrefix(_46);
if(_47!=_46){
_43.splice(0,i,_47);
break;
}
}
var _48=_43[_43.length-1];
if(_48=="*"){
_3e=(_44.slice(0,-1)).join(".");
while(_43.length){
_43.pop();
_43.push(this.pkgFileName);
_42=_43.join("/")+".js";
if(_42.charAt(0)=="/"){
_42=_42.slice(1);
}
ok=this.loadPath(_42,((!_40)?_3e:null));
if(ok){
break;
}
_43.pop();
}
}else{
_42=_43.join("/")+".js";
_3e=_44.join(".");
var ok=this.loadPath(_42,((!_40)?_3e:null));
if((!ok)&&(!_3f)){
_43.pop();
while(_43.length){
_42=_43.join("/")+".js";
ok=this.loadPath(_42,((!_40)?_3e:null));
if(ok){
break;
}
_43.pop();
_42=_43.join("/")+"/"+this.pkgFileName+".js";
if(_42.charAt(0)=="/"){
_42=_42.slice(1);
}
ok=this.loadPath(_42,((!_40)?_3e:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_40)){
dojo.raise("Could not load '"+_3e+"'; last tried '"+_42+"'");
}
}
if(!_40&&!this["isXDomain"]){
_41=this.findModule(_3e,false);
if(!_41){
dojo.raise("symbol '"+_3e+"' is not defined after loading '"+_42+"'");
}
}
return _41;
};
dojo.hostenv.startPackage=function(_4a){
var _4b=dojo.evalObjPath((_4a.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_4a)).toLowerCase()]=_4b;
var _4c=_4a.split(/\./);
if(_4c[_4c.length-1]=="*"){
_4c.pop();
}
return dojo.evalObjPath(_4c.join("."),true);
};
dojo.hostenv.findModule=function(_4d,_4e){
var lmn=(new String(_4d)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _50=dojo.evalObjPath(_4d);
if((_4d)&&(typeof _50!="undefined")&&(_50)){
this.loaded_modules_[lmn]=_50;
return _50;
}
if(_4e){
dojo.raise("no loaded module named '"+_4d+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_51){
var _52=_51["common"]||[];
var _53=(_51[dojo.hostenv.name_])?_52.concat(_51[dojo.hostenv.name_]||[]):_52.concat(_51["default"]||[]);
for(var x=0;x<_53.length;x++){
var _55=_53[x];
if(_55.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_55);
}else{
dojo.hostenv.loadModule(_55);
}
}
};
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 _56=[];
for(var i=1;i<arguments.length;i++){
_56.push(arguments[i]);
}
dojo.require.apply(dojo,_56);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_58,_59){
return dojo.hostenv.setModulePrefix(_58,_59);
};
dojo.exists=function(obj,_5b){
var p=_5b.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 _5e=document.location.toString();
var _5f=_5e.split("?",2);
if(_5f.length>1){
var _60=_5f[1];
var _61=_60.split("&");
for(var x in _61){
var sp=_61[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 _65=document.getElementsByTagName("script");
var _66=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_65.length;i++){
var src=_65[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_66);
if(m){
root=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
root+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=root;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=root;
}
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 _71=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_71>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_71+6,_71+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;
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 _72=null;
var _73=null;
try{
_72=new XMLHttpRequest();
}
catch(e){
}
if(!_72){
for(var i=0;i<3;++i){
var _75=DJ_XMLHTTP_PROGIDS[i];
try{
_72=new ActiveXObject(_75);
}
catch(e){
_73=e;
}
if(_72){
DJ_XMLHTTP_PROGIDS=[_75];
break;
}
}
}
if(!_72){
return dojo.raise("XMLHTTP not available",_73);
}
return _72;
};
dojo.hostenv.getText=function(uri,_77,_78){
var _79=this.getXmlhttpObject();
if(_77){
_79.onreadystatechange=function(){
if((4==_79.readyState)&&(_79["status"])){
if(_79.status==200){
_77(_79.responseText);
}
}
};
}
_79.open("GET",uri,_77?true:false);
try{
_79.send(null);
}
catch(e){
if(_78&&!_77){
return null;
}else{
throw e;
}
}
if(_77){
return null;
}
return _79.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_7a){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_7a);
}else{
try{
var _7b=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_7b){
_7b=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_7a));
_7b.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_7a+"</div>");
}
catch(e2){
window.status=_7a;
}
}
}
};
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(_7d,_7e,fp,_80){
var _81=_7d["on"+_7e]||function(){
};
_7d["on"+_7e]=function(){
fp.apply(_7d,arguments);
_81.apply(_7d,arguments);
};
return true;
}
dj_addNodeEvtHdlr(window,"load",function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
var _82=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_82();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_82);
}
});
dojo.hostenv.makeWidgets=function(){
var _83=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_83=_83.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_83=_83.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_83.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
try{
var _84=new dojo.xml.Parse();
if(_83.length>0){
for(var x=0;x<_83.length;x++){
var _86=document.getElementById(_83[x]);
if(!_86){
continue;
}
var _87=_84.parseElement(_86,null,true);
dojo.widget.getParser().createComponents(_87);
}
}else{
if(djConfig.parseWidgets){
var _87=_84.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_87);
}
}
}
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.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
}
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 _8a=false;
var _8b=false;
var _8c=false;
if((typeof this["load"]=="function")&&(typeof this["Packages"]=="function")){
_8a=true;
}else{
if(typeof this["load"]=="function"){
_8b=true;
}else{
if(window.widget){
_8c=true;
}
}
}
var _8d=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_8d.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_8a)&&(!_8c)){
_8d.push("browser_debug.js");
}
if((this["djConfig"])&&(djConfig["compat"])){
_8d.push("compat/"+djConfig["compat"]+".js");
}
var _8e=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_8e=djConfig["baseLoaderUri"];
}
for(var x=0;x<_8d.length;x++){
var _90=_8e+"src/"+_8d[x];
if(_8a||_8b){
load(_90);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_90+"'></scr"+"ipt>");
}
catch(e){
var _91=document.createElement("script");
_91.src=_90;
document.getElementsByTagName("head")[0].appendChild(_91);
}
}
}
})();
dojo.provide("dojo.lang.common");
dojo.require("dojo.lang");
dojo.lang.mixin=function(obj,_93){
var _94={};
for(var x in _93){
if(typeof _94[x]=="undefined"||_94[x]!=_93[x]){
obj[x]=_93[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_93["toString"])&&_93["toString"]!=obj["toString"]){
obj.toString=_93.toString;
}
return obj;
};
dojo.lang.extend=function(_96,_97){
this.mixin(_96.prototype,_97);
};
dojo.lang.find=function(arr,val,_9a,_9b){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _9d=dojo.lang.isString(arr);
if(_9d){
arr=arr.split("");
}
if(_9b){
var _9e=-1;
var i=arr.length-1;
var end=-1;
}else{
var _9e=1;
var i=0;
var end=arr.length;
}
if(_9a){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_9e;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_9e;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_a3){
return dojo.lang.find(arr,val,_a3,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){
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){
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
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.func");
dojo.require("dojo.lang.common");
dojo.lang.hitch=function(_af,_b0){
if(dojo.lang.isString(_b0)){
var fcn=_af[_b0];
}else{
var fcn=_b0;
}
return function(){
return fcn.apply(_af,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_b2,_b3){
var nso=(_b3||dojo.lang.anon);
if((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true)){
for(var x in nso){
if(nso[x]===_b2){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_b2;
return ret;
};
dojo.lang.forward=function(_b7){
return function(){
return this[_b7].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,_b9){
var _ba=[];
ns=ns||dj_global;
if(dojo.lang.isString(_b9)){
_b9=ns[_b9];
}
for(var x=2;x<arguments.length;x++){
_ba.push(arguments[x]);
}
var _bc=(_b9["__preJoinArity"]||_b9.length)-_ba.length;
function gather(_bd,_be,_bf){
var _c0=_bf;
var _c1=_be.slice(0);
for(var x=0;x<_bd.length;x++){
_c1.push(_bd[x]);
}
_bf=_bf-_bd.length;
if(_bf<=0){
var res=_b9.apply(ns,_c1);
_bf=_c0;
return res;
}else{
return function(){
return gather(arguments,_c1,_bf);
};
}
}
return gather([],_ba,_bc);
};
dojo.lang.curryArguments=function(ns,_c5,_c6,_c7){
var _c8=[];
var x=_c7||0;
for(x=_c7;x<_c6.length;x++){
_c8.push(_c6[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,_c5].concat(_c8));
};
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(_cc,cb,_ce,_cf){
if(!_cc.length){
if(typeof _cf=="function"){
_cf();
}
return;
}
if((typeof _ce=="undefined")&&(typeof cb=="number")){
_ce=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_ce){
_ce=0;
}
}
}
setTimeout(function(){
(_cc.shift())();
cb();
dojo.lang.delayThese(_cc,cb,_ce,_cf);
},_ce);
};
dojo.provide("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.lang.has=function(obj,_d1){
try{
return (typeof obj[_d1]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _d4=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_d4++;
break;
}
}
return (_d4==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_d8){
var _d9=dojo.lang.isString(arr);
if(_d9){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_d8)){
_d8=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_d8){
var _da=obj;
obj=_d8;
_d8=_da;
}
}
if(Array.map){
var _db=Array.map(arr,_d8,obj);
}else{
var _db=[];
for(var i=0;i<arr.length;++i){
_db.push(_d8.call(obj,arr[i]));
}
}
if(_d9){
return _db.join("");
}else{
return _db;
}
};
dojo.lang.forEach=function(_dd,_de,_df){
if(dojo.lang.isString(_dd)){
_dd=_dd.split("");
}
if(Array.forEach){
Array.forEach(_dd,_de,_df);
}else{
if(!_df){
_df=dj_global;
}
for(var i=0,l=_dd.length;i<l;i++){
_de.call(_df,_dd[i],i,_dd);
}
}
};
dojo.lang._everyOrSome=function(_e1,arr,_e3,_e4){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_e1)?"every":"some"](arr,_e3,_e4);
}else{
if(!_e4){
_e4=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _e6=_e3.call(_e4,arr[i],i,arr);
if((_e1)&&(!_e6)){
return false;
}else{
if((!_e1)&&(_e6)){
return true;
}
}
}
return (_e1)?true:false;
}
};
dojo.lang.every=function(arr,_e8,_e9){
return this._everyOrSome(true,arr,_e8,_e9);
};
dojo.lang.some=function(arr,_eb,_ec){
return this._everyOrSome(false,arr,_eb,_ec);
};
dojo.lang.filter=function(arr,_ee,_ef){
var _f0=dojo.lang.isString(arr);
if(_f0){
arr=arr.split("");
}
if(Array.filter){
var _f1=Array.filter(arr,_ee,_ef);
}else{
if(!_ef){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_ef=dj_global;
}
var _f1=[];
for(var i=0;i<arr.length;i++){
if(_ee.call(_ef,arr[i],i,arr)){
_f1.push(arr[i]);
}
}
}
if(_f0){
return _f1.join("");
}else{
return _f1;
}
};
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(_f6,_f7){
var _f8=[];
for(var i=_f7||0;i<_f6.length;i++){
_f8.push(_f6[i]);
}
return _f8;
};
dojo.provide("dojo.lang.extras");
dojo.require("dojo.lang.common");
dojo.lang.setTimeout=function(_fa,_fb){
var _fc=window,argsStart=2;
if(!dojo.lang.isFunction(_fa)){
_fc=_fa;
_fa=_fb;
_fb=arguments[2];
argsStart++;
}
if(dojo.lang.isString(_fa)){
_fa=_fc[_fa];
}
var _fd=[];
for(var i=argsStart;i<arguments.length;i++){
_fd.push(arguments[i]);
}
return setTimeout(function(){
_fa.apply(_fc,_fd);
},_fb);
};
dojo.lang.getNameInObj=function(ns,item){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===item){
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(_105,_106,_107){
with(dojo.parseObjPath(_105,_106,_107)){
return dojo.evalProp(prop,obj,_107);
}
};
dojo.lang.setObjPathValue=function(_108,_109,_10a,_10b){
if(arguments.length<4){
_10b=true;
}
with(dojo.parseObjPath(_108,_10a,_10b)){
if(obj&&(_10b||(prop in obj))){
obj[prop]=_109;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.extras");
dojo.lang.declare=function(_10c,_10d,_10e,init){
var ctor=function(){
var self=this._getPropContext();
var s=self.constructor.superclass;
if((s)&&(s.constructor)){
if(s.constructor==arguments.callee){
this.inherited("constructor",arguments);
}else{
this._inherited(s,"constructor",arguments);
}
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
var scp=(_10d?_10d.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _10d();
scp.prototyping=false;
}
ctor.prototype.constructor=ctor;
ctor.superclass=scp;
dojo.lang.extend(ctor,dojo.lang.declare.base);
_10e=(_10e||{});
_10e.initializer=(_10e.initializer)||(init)||(function(){
});
_10e.className=_10c;
dojo.lang.extend(ctor,_10e);
dojo.lang.setObjPathValue(_10c,ctor,null,true);
};
dojo.lang.declare.base={_getPropContext:function(){
return (this.___proto||this);
},_inherited:function(_114,_115,args){
var _117=this.___proto;
this.___proto=_114;
var _118=_114[_115].apply(this,(args||[]));
this.___proto=_117;
return _118;
},inherited:function(prop,args){
var p=this._getPropContext();
do{
if((!p.constructor)||(!p.constructor.superclass)){
return;
}
p=p.constructor.superclass;
}while(!(prop in p));
return (typeof p[prop]=="function"?this._inherited(p,prop,args):p[prop]);
}};
dojo.declare=dojo.lang.declare;
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 _11f=dojo.lang.nameAnonFunc(args[2],ao.adviceObj);
ao.adviceFunc=_11f;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _11f=dojo.lang.nameAnonFunc(args[0],ao.srcObj);
ao.srcFunc=_11f;
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 _11f=dojo.lang.nameAnonFunc(args[1],dj_global);
ao.srcFunc=_11f;
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 _11f=dojo.lang.nameAnonFunc(args[3],dj_global);
ao.adviceObj=dj_global;
ao.adviceFunc=_11f;
}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 _11f=dojo.lang.nameAnonFunc(ao.aroundFunc,ao.aroundObj);
ao.aroundFunc=_11f;
}
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 _121={};
for(var x in ao){
_121[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);
}
_121.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_121));
});
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 _129;
if((arguments.length==1)&&(typeof a1=="object")){
_129=a1;
}else{
_129={srcObj:a1,srcFunc:a2};
}
_129.adviceFunc=function(){
var _12a=[];
for(var x=0;x<arguments.length;x++){
_12a.push(arguments[x]);
}
dojo.debug("("+_129.srcObj+")."+_129.srcFunc,":",_12a.join(", "));
};
this.kwConnect(_129);
};
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(_131,_132){
var fn=(_132)?"disconnect":"connect";
if(typeof _131["srcFunc"]=="function"){
_131.srcObj=_131["srcObj"]||dj_global;
var _134=dojo.lang.nameAnonFunc(_131.srcFunc,_131.srcObj);
_131.srcFunc=_134;
}
if(typeof _131["adviceFunc"]=="function"){
_131.adviceObj=_131["adviceObj"]||dj_global;
var _134=dojo.lang.nameAnonFunc(_131.adviceFunc,_131.adviceObj);
_131.adviceFunc=_134;
}
return dojo.event[fn]((_131["type"]||_131["adviceType"]||"after"),_131["srcObj"]||dj_global,_131["srcFunc"],_131["adviceObj"]||_131["targetObj"]||dj_global,_131["adviceFunc"]||_131["targetFunc"],_131["aroundObj"],_131["aroundFunc"],_131["once"],_131["delay"],_131["rate"],_131["adviceMsg"]||false);
};
this.kwConnect=function(_135){
return this._kwConnectImpl(_135,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(_138){
return this._kwConnectImpl(_138,true);
};
};
dojo.event.MethodInvocation=function(_139,obj,args){
this.jp_=_139;
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,_141){
this.object=obj||dj_global;
this.methodname=_141;
this.methodfunc=this.object[_141];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_143){
if(!obj){
obj=dj_global;
}
if(!obj[_143]){
obj[_143]=function(){
};
}else{
if((!dojo.lang.isFunction(obj[_143]))&&(!dojo.lang.isAlien(obj[_143]))){
return null;
}
}
var _144=_143+"$joinpoint";
var _145=_143+"$joinpoint$method";
var _146=obj[_144];
if(!_146){
var _147=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_147=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_144,_145,_143]);
}
}
var _148=obj[_143].length;
obj[_145]=obj[_143];
_146=obj[_144]=new dojo.event.MethodJoinPoint(obj,_145);
obj[_143]=function(){
var args=[];
if((_147)&&(!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)&&(_147)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _146.run.apply(_146,args);
};
obj[_143].__preJoinArity=_148;
}
return _146;
};
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 _14e=[];
for(var x=0;x<args.length;x++){
_14e[x]=args[x];
}
var _150=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _152=marr[0]||dj_global;
var _153=marr[1];
if(!_152[_153]){
dojo.raise("function \""+_153+"\" does not exist on \""+_152+"\"");
}
var _154=marr[2]||dj_global;
var _155=marr[3];
var msg=marr[6];
var _157;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _152[_153].apply(_152,to.args);
}};
to.args=_14e;
var _159=parseInt(marr[4]);
var _15a=((!isNaN(_159))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _15d=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;
_150(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_155){
_154[_155].call(_154,to);
}else{
if((_15a)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_152[_153].call(_152,to);
}else{
_152[_153].apply(_152,args);
}
},_159);
}else{
if(msg){
_152[_153].call(_152,to);
}else{
_152[_153].apply(_152,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_150);
}
var _160;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_160=mi.proceed();
}else{
if(this.methodfunc){
_160=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_150);
}
return (this.methodfunc)?_160: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(_165,_166,_167,_168,_169,_16a,once,_16c,rate,_16e){
var arr=this.getArr(_169);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_165,_166,_167,_168,_16c,rate,_16e];
if(once){
if(this.hasAdvice(_165,_166,_169,arr)>=0){
return;
}
}
if(_16a=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_171,_172,_173,arr){
if(!arr){
arr=this.getArr(_173);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
if((arr[x][0]==_171)&&(arr[x][1]==_172)){
ind=x;
}
}
return ind;
},removeAdvice:function(_177,_178,_179,once){
var arr=this.getArr(_179);
var ind=this.hasAdvice(_177,_178,_179,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_177,_178,_179,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_17d){
if(!this.topics[_17d]){
this.topics[_17d]=new this.TopicImpl(_17d);
}
return this.topics[_17d];
};
this.registerPublisher=function(_17e,obj,_180){
var _17e=this.getTopic(_17e);
_17e.registerPublisher(obj,_180);
};
this.subscribe=function(_181,obj,_183){
var _181=this.getTopic(_181);
_181.subscribe(obj,_183);
};
this.unsubscribe=function(_184,obj,_186){
var _184=this.getTopic(_184);
_184.unsubscribe(obj,_186);
};
this.destroy=function(_187){
this.getTopic(_187).destroy();
delete this.topics[_187];
};
this.publish=function(_188,_189){
var _188=this.getTopic(_188);
var args=[];
if(arguments.length==2&&(dojo.lang.isArray(_189)||_189.callee)){
args=_189;
}else{
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
}
_188.sendMessage.apply(_188,args);
};
};
dojo.event.topic.TopicImpl=function(_18c){
this.topicName=_18c;
this.subscribe=function(_18d,_18e){
var tf=_18e||_18d;
var to=(!_18e)?dj_global:_18d;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_191,_192){
var tf=(!_192)?_191:_192;
var to=(!_192)?null:_191;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_195,_196){
dojo.event.connect(_195,_196,this,"sendMessage");
};
this.sendMessage=function(_197){
};
};
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(_19a){
var na;
var tna;
if(_19a){
tna=_19a.all||_19a.getElementsByTagName("*");
na=[_19a];
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 _19e={};
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 _1a2=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,_1a6){
this.addClobberNode(node);
for(var x=0;x<_1a6.length;x++){
node.__clobberAttrs__.push(_1a6[x]);
}
};
this.removeListener=function(node,_1a9,fp,_1ab){
if(!_1ab){
var _1ab=false;
}
_1a9=_1a9.toLowerCase();
if(_1a9.substr(0,2)=="on"){
_1a9=_1a9.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_1a9,fp,_1ab);
}
};
this.addListener=function(node,_1ad,fp,_1af,_1b0){
if(!node){
return;
}
if(!_1af){
var _1af=false;
}
_1ad=_1ad.toLowerCase();
if(_1ad.substr(0,2)!="on"){
_1ad="on"+_1ad;
}
if(!_1b0){
var _1b1=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_1af){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_1b1=fp;
}
if(node.addEventListener){
node.addEventListener(_1ad.substr(2),_1b1,_1af);
return _1b1;
}else{
if(typeof node[_1ad]=="function"){
var _1b4=node[_1ad];
node[_1ad]=function(e){
_1b4(e);
return _1b1(e);
};
}else{
node[_1ad]=_1b1;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_1ad]);
}
return _1b1;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_1b7,_1b8){
if(typeof _1b7!="function"){
dojo.raise("listener not a function: "+_1b7);
}
dojo.event.browser.currentEvent.currentTarget=_1b8;
return _1b7.call(_1b8,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,_1bb){
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=(_1bb?_1bb: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.widget.Manager");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.func");
dojo.require("dojo.event.*");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _1be={};
var _1bf=[];
this.getUniqueId=function(_1c0){
return _1c0+"_"+(_1be[_1c0]!=undefined?++_1be[_1c0]:_1be[_1c0]=0);
};
this.add=function(_1c1){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_1c1);
if(!_1c1.extraArgs["id"]){
_1c1.extraArgs["id"]=_1c1.extraArgs["ID"];
}
if(_1c1.widgetId==""){
if(_1c1["id"]){
_1c1.widgetId=_1c1["id"];
}else{
if(_1c1.extraArgs["id"]){
_1c1.widgetId=_1c1.extraArgs["id"];
}else{
_1c1.widgetId=this.getUniqueId(_1c1.widgetType);
}
}
}
if(this.widgetIds[_1c1.widgetId]){
dojo.debug("widget ID collision on ID: "+_1c1.widgetId);
}
this.widgetIds[_1c1.widgetId]=_1c1;
dojo.profile.end("dojo.widget.manager.add");
};
this.destroyAll=function(){
for(var x=this.widgets.length-1;x>=0;x--){
try{
this.widgets[x].destroy(true);
delete this.widgets[x];
}
catch(e){
}
}
};
this.remove=function(_1c3){
var tw=this.widgets[_1c3].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_1c3,1);
};
this.removeById=function(id){
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
return this.widgetIds[id];
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(x.widgetType.toLowerCase()==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsOfType=function(id){
dojo.deprecated("getWidgetsOfType","use getWidgetsByType","0.4");
return dojo.widget.manager.getWidgetsByType(id);
};
this.getWidgetsByFilter=function(_1cd,_1ce){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_1cd(x)){
ret.push(x);
if(_1ce){
return false;
}
}
return true;
});
return (_1ce?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _1d4={};
var _1d5=["dojo.widget"];
for(var i=0;i<_1d5.length;i++){
_1d5[_1d5[i]]=true;
}
this.registerWidgetPackage=function(_1d7){
if(!_1d5[_1d7]){
_1d5[_1d7]=true;
_1d5.push(_1d7);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_1d5,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_1d9,_1da,_1db){
var impl=this.getImplementationName(_1d9);
if(impl){
var ret=new impl(_1da);
return ret;
}
};
this.getImplementationName=function(_1de){
var _1df=_1de.toLowerCase();
var impl=_1d4[_1df];
if(impl){
return impl;
}
if(!_1bf.length){
for(var _1e1 in dojo.render){
if(dojo.render[_1e1]["capable"]===true){
var _1e2=dojo.render[_1e1].prefixes;
for(var i=0;i<_1e2.length;i++){
_1bf.push(_1e2[i].toLowerCase());
}
}
}
_1bf.push("");
}
for(var i=0;i<_1d5.length;i++){
var _1e4=dojo.evalObjPath(_1d5[i]);
if(!_1e4){
continue;
}
for(var j=0;j<_1bf.length;j++){
if(!_1e4[_1bf[j]]){
continue;
}
for(var _1e6 in _1e4[_1bf[j]]){
if(_1e6.toLowerCase()!=_1df){
continue;
}
_1d4[_1df]=_1e4[_1bf[j]][_1e6];
return _1d4[_1df];
}
}
for(var j=0;j<_1bf.length;j++){
for(var _1e6 in _1e4){
if(_1e6.toLowerCase()!=(_1bf[j]+_1df)){
continue;
}
_1d4[_1df]=_1e4[_1e6];
return _1d4[_1df];
}
}
}
throw new Error("Could not locate \""+_1de+"\" class");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _1e8=this.topWidgets[id];
if(_1e8.onParentResized){
_1e8.onParentResized();
}
}
}
catch(e){
}
finally{
this.resizing=false;
}
};
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onWindowResized");
dojo.event.connect(window,"onresize",this,"onWindowResized");
}
};
(function(){
var dw=dojo.widget;
var dwm=dw.manager;
var h=dojo.lang.curry(dojo.lang,"hitch",dwm);
var g=function(_1ed,_1ee){
dw[(_1ee||_1ed)]=h(_1ed);
};
g("add","addWidget");
g("destroyAll","destroyAllWidgets");
g("remove","removeWidget");
g("removeById","removeWidgetById");
g("getWidgetById");
g("getWidgetById","byId");
g("getWidgetsByType");
g("getWidgetsByFilter");
g("getWidgetsByType","byType");
g("getWidgetsByFilter","byFilter");
g("getWidgetByNode","byNode");
dw.all=function(n){
var _1f0=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _1f0[n];
}
return _1f0;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.widget.Widget");
dojo.provide("dojo.widget.tags");
dojo.require("dojo.lang.func");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.declare");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.event.*");
dojo.declare("dojo.widget.Widget",null,{initializer:function(){
this.children=[];
this.extraArgs={};
},parent:null,isTopLevel:false,isModal:false,isEnabled:true,isHidden:false,isContainer:false,widgetId:"",widgetType:"Widget",toString:function(){
return "[Widget "+this.widgetType+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.isEnabled=true;
},disable:function(){
this.isEnabled=false;
},hide:function(){
this.isHidden=true;
},show:function(){
this.isHidden=false;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _1f2=this.children[i];
if(_1f2.onResized){
_1f2.onResized();
}
}
},create:function(args,_1f4,_1f5){
this.satisfyPropertySets(args,_1f4,_1f5);
this.mixInProperties(args,_1f4,_1f5);
this.postMixInProperties(args,_1f4,_1f5);
dojo.widget.manager.add(this);
this.buildRendering(args,_1f4,_1f5);
this.initialize(args,_1f4,_1f5);
this.postInitialize(args,_1f4,_1f5);
this.postCreate(args,_1f4,_1f5);
return this;
},destroy:function(_1f6){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_1f6);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
while(this.children.length>0){
var tc=this.children[0];
this.removeChild(tc);
tc.destroy();
}
},getChildrenOfType:function(type,_1f9){
var ret=[];
var _1fb=dojo.lang.isFunction(type);
if(!_1fb){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_1fb){
if(this.children[x] instanceof type){
ret.push(this.children[x]);
}
}else{
if(this.children[x].widgetType.toLowerCase()==type){
ret.push(this.children[x]);
}
}
if(_1f9){
ret=ret.concat(this.children[x].getChildrenOfType(type,_1f9));
}
}
return ret;
},getDescendants:function(){
var _1fd=[];
var _1fe=[this];
var elem;
while(elem=_1fe.pop()){
_1fd.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_1fe.push(elem);
});
}
return _1fd;
},satisfyPropertySets:function(args){
return args;
},mixInProperties:function(args,frag){
if((args["fastMixIn"])||(frag["fastMixIn"])){
for(var x in args){
this[x]=args[x];
}
return;
}
var _205;
var _206=dojo.widget.lcArgsCache[this.widgetType];
if(_206==null){
_206={};
for(var y in this){
_206[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_206;
}
var _208={};
for(var x in args){
if(!this[x]){
var y=_206[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_208[x]){
continue;
}
_208[x]=true;
if((typeof this[x])!=(typeof _205)){
if(typeof args[x]!="string"){
this[x]=args[x];
}else{
if(dojo.lang.isString(this[x])){
this[x]=args[x];
}else{
if(dojo.lang.isNumber(this[x])){
this[x]=new Number(args[x]);
}else{
if(dojo.lang.isBoolean(this[x])){
this[x]=(args[x].toLowerCase()=="false")?false:true;
}else{
if(dojo.lang.isFunction(this[x])){
if(args[x].search(/[^\w\.]+/i)==-1){
this[x]=dojo.evalObjPath(args[x],false);
}else{
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.connect(this,x,this,tn);
}
}else{
if(dojo.lang.isArray(this[x])){
this[x]=args[x].split(";");
}else{
if(this[x] instanceof Date){
this[x]=new Date(Number(args[x]));
}else{
if(typeof this[x]=="object"){
if(this[x] instanceof dojo.uri.Uri){
this[x]=args[x];
}else{
var _20a=args[x].split(";");
for(var y=0;y<_20a.length;y++){
var si=_20a[y].indexOf(":");
if((si!=-1)&&(_20a[y].length>si)){
this[x][_20a[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_20a[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(){
},initialize:function(args,frag){
return false;
},postInitialize:function(args,frag){
return false;
},postCreate:function(args,frag){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},cleanUp:function(){
dojo.unimplemented("dojo.widget.Widget.cleanUp");
return false;
},addedTo:function(_212){
},addChild:function(_213){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_214){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_214){
this.children.splice(x,1);
break;
}
}
return _214;
},resize:function(_216,_217){
this.setWidth(_216);
this.setHeight(_217);
},setWidth:function(_218){
if((typeof _218=="string")&&(_218.substr(-1)=="%")){
this.setPercentageWidth(_218);
}else{
this.setNativeWidth(_218);
}
},setHeight:function(_219){
if((typeof _219=="string")&&(_219.substr(-1)=="%")){
this.setPercentageHeight(_219);
}else{
this.setNativeHeight(_219);
}
},setPercentageHeight:function(_21a){
return false;
},setNativeHeight:function(_21b){
return false;
},setPercentageWidth:function(_21c){
return false;
},setNativeWidth:function(_21d){
return false;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.getSiblings()[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.getSiblings(),this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.getSiblings().length-1){
return null;
}
if(idx<0){
return null;
}
return this.getSiblings()[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
var _221=type.toLowerCase();
this[_221]=function(_222,_223,_224,_225,_226){
return dojo.widget.buildWidgetFromParseTree(_221,_222,_223,_224,_225,_226);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_227,_228,_229){
var _22a=_228.parseProperties(_227["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_22b,_22c,_22d){
var _22e=_22c.parseProperties(_22b["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_231,_232,_233,_234){
var _235=type.split(":");
_235=(_235.length==2)?_235[1]:type;
var _236=_234||_231.parseProperties(frag["dojo:"+_235]);
var _237=dojo.widget.manager.getImplementation(_235);
if(!_237){
throw new Error("cannot find \""+_235+"\" widget");
}else{
if(!_237.create){
throw new Error("\""+_235+"\" widget object does not appear to implement *Widget");
}
}
_236["dojoinsertionindex"]=_233;
var ret=_237.create(_236,frag,_232);
return ret;
};
dojo.widget.defineWidget=function(_239,_23a,_23b,_23c,ctor){
var _23e=_239.split(".");
var type=_23e.pop();
if(_23c){
while((_23e.length)&&(_23e.pop()!=_23c)){
}
}
_23e=_23e.join(".");
dojo.widget.manager.registerWidgetPackage(_23e);
dojo.widget.tags.addParseTreeHandler("dojo:"+type.toLowerCase());
if(!_23b){
_23b={};
}
_23b.widgetType=type;
if((!ctor)&&(_23b["classConstructor"])){
ctor=_23b.classConstructor;
delete _23b.classConstructor;
}
dojo.declare(_239,_23a,_23b,ctor);
};
dojo.provide("dojo.widget.Tooltip");
dojo.require("dojo.widget.Widget");
dojo.widget.tags.addParseTreeHandler("dojo:tooltip");
dojo.widget.Tooltip=function(){
dojo.widget.Widget.call(this);
this.widgetType="Tooltip";
this.isContainer=true;
};
dojo.inherits(dojo.widget.Tooltip,dojo.widget.Widget);
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 _242=node.tagName;
if(_242.substr(0,5).toLowerCase()!="dojo:"){
if(_242.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_242.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 _244=node.className||node.getAttribute("class");
if((_244)&&(_244.indexOf)&&(_244.indexOf("dojo-")!=-1)){
var _245=_244.split(" ");
for(var x=0;x<_245.length;x++){
if((_245[x].length>5)&&(_245[x].indexOf("dojo-")>=0)){
return "dojo:"+_245[x].substr(5).toLowerCase();
}
}
}
}
}
return _242.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(_248,_249){
var node=_248.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_249&&node&&node.tagName&&node.tagName.toLowerCase()!=_249.toLowerCase()){
node=dojo.dom.nextElement(node,_249);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_24b,_24c){
var node=_24b.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_24c&&node&&node.tagName&&node.tagName.toLowerCase()!=_24c.toLowerCase()){
node=dojo.dom.prevElement(node,_24c);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_24f){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_24f&&_24f.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_24f);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_251){
if(!node){
return null;
}
if(_251){
_251=_251.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_251&&_251.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_251);
}
return node;
};
dojo.dom.moveChildren=function(_252,_253,trim){
var _255=0;
if(trim){
while(_252.hasChildNodes()&&_252.firstChild.nodeType==dojo.dom.TEXT_NODE){
_252.removeChild(_252.firstChild);
}
while(_252.hasChildNodes()&&_252.lastChild.nodeType==dojo.dom.TEXT_NODE){
_252.removeChild(_252.lastChild);
}
}
while(_252.hasChildNodes()){
_253.appendChild(_252.firstChild);
_255++;
}
return _255;
};
dojo.dom.copyChildren=function(_256,_257,trim){
var _259=_256.cloneNode(true);
return this.moveChildren(_259,_257,trim);
};
dojo.dom.removeChildren=function(node){
var _25b=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _25b;
};
dojo.dom.replaceChildren=function(node,_25d){
dojo.dom.removeChildren(node);
node.appendChild(_25d);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_260,_261){
var _262=[];
var _263=dojo.lang.isFunction(_260);
while(node){
if(!_263||_260(node)){
_262.push(node);
}
if(_261&&_262.length>0){
return _262[0];
}
node=node.parentNode;
}
if(_261){
return null;
}
return _262;
};
dojo.dom.getAncestorsByTag=function(node,tag,_266){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_266);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_26b,_26c){
if(_26c&&node){
node=node.parentNode;
}
while(node){
if(node==_26b){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
};
dojo.dom.createDocumentFromText=function(str,_26f){
if(!_26f){
_26f="text/xml";
}
if(typeof DOMParser!="undefined"){
var _270=new DOMParser();
return _270.parseFromString(str,_26f);
}else{
if(typeof ActiveXObject!="undefined"){
var _271=new ActiveXObject("Microsoft.XMLDOM");
if(_271){
_271.async=false;
_271.loadXML(str);
return _271;
}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 _273=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_273.importNode(tmp.childNodes.item(i),true);
}
return _273;
}
return tmp.document&&tmp.document.firstChild?tmp.document.firstChild:tmp;
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_276){
if(_276.firstChild){
_276.insertBefore(node,_276.firstChild);
}else{
_276.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_279){
if(_279!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _27a=ref.parentNode;
_27a.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_27d){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_27d!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_27d);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_281){
if((!node)||(!ref)||(!_281)){
return false;
}
switch(_281.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,_283,_284){
var _285=_283.childNodes;
if(!_285.length){
_283.appendChild(node);
return true;
}
var _286=null;
for(var i=0;i<_285.length;i++){
var _288=_285.item(i)["getAttribute"]?parseInt(_285.item(i).getAttribute("dojoinsertionindex")):-1;
if(_288<_284){
_286=_285.item(i);
}
}
if(_286){
return dojo.dom.insertAfter(node,_286);
}else{
return dojo.dom.insertBefore(node,_285.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _28b="";
if(node==null){
return _28b;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_28b+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_28b+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _28b;
}
};
dojo.dom.collectionToArray=function(_28d){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_28d);
};
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.xml.Parse");
dojo.require("dojo.dom");
dojo.xml.Parse=function(){
function getDojoTagName(node){
var _292=node.tagName;
if(_292.substr(0,5).toLowerCase()!="dojo:"){
if(_292.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_292.substring(4).toLowerCase();
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if(node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type")){
return "dojo:"+node.getAttributeNS(dojo.dom.dojoml,"type").toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if(!dj_global["djConfig"]||!djConfig["ignoreClassNames"]){
var _294=node.className||node.getAttribute("class");
if(_294&&_294.indexOf&&_294.indexOf("dojo-")!=-1){
var _295=_294.split(" ");
for(var x=0;x<_295.length;x++){
if(_295[x].length>5&&_295[x].indexOf("dojo-")>=0){
return "dojo:"+_295[x].substr(5).toLowerCase();
}
}
}
}
}
return _292.toLowerCase();
}
this.parseElement=function(node,_298,_299,_29a){
if(node.getAttribute("parseWidgets")=="false"){
return {};
}
var _29b={};
var _29c=getDojoTagName(node);
_29b[_29c]=[];
if((!_299)||(_29c.substr(0,4).toLowerCase()=="dojo")){
var _29d=parseAttributes(node);
for(var attr in _29d){
if((!_29b[_29c][attr])||(typeof _29b[_29c][attr]!="array")){
_29b[_29c][attr]=[];
}
_29b[_29c][attr].push(_29d[attr]);
}
_29b[_29c].nodeRef=node;
_29b.tagName=_29c;
_29b.index=_29a||0;
}
var _29f=0;
var tcn,i=0,nodes=node.childNodes;
while(tcn=nodes[i++]){
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_29f++;
var ctn=getDojoTagName(tcn);
if(!_29b[ctn]){
_29b[ctn]=[];
}
_29b[ctn].push(this.parseElement(tcn,true,_299,_29f));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_29b[ctn][_29b[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_29b[_29c].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _29b;
};
function parseAttributes(node){
var _2a3={};
var atts=node.attributes;
var _2a5,i=0;
while(_2a5=atts[i++]){
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_2a5){
continue;
}
if((typeof _2a5=="object")&&(typeof _2a5.nodeValue=="undefined")||(_2a5.nodeValue==null)||(_2a5.nodeValue=="")){
continue;
}
}
var nn=(_2a5.nodeName.indexOf("dojo:")==-1)?_2a5.nodeName:_2a5.nodeName.split("dojo:")[1];
_2a3[nn]={value:_2a5.nodeValue};
}
return _2a3;
}
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_2a7){
this.propertySetsList=[];
this.fragment=_2a7;
this.createComponents=function(frag,_2a9){
var _2aa=[];
var _2ab=false;
try{
if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){
var _2ac=dojo.widget.tags;
var tna=String(frag["tagName"]).split(";");
for(var x=0;x<tna.length;x++){
var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();
if(_2ac[ltn]){
_2ab=true;
frag.tagName=ltn;
var ret=_2ac[ltn](frag,this,_2a9,frag["index"]);
_2aa.push(ret);
}else{
if((dojo.lang.isString(ltn))&&(ltn.substr(0,5)=="dojo:")){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_2ab){
_2aa=_2aa.concat(this.createSubComponents(frag,_2a9));
}
return _2aa;
};
this.createSubComponents=function(_2b1,_2b2){
var frag,comps=[];
for(var item in _2b1){
frag=_2b1[item];
if((frag)&&(typeof frag=="object")&&(frag!=_2b1.nodeRef)&&(frag!=_2b1["tagName"])){
comps=comps.concat(this.createComponents(frag,_2b2));
}
}
return comps;
};
this.parsePropertySets=function(_2b5){
return [];
var _2b6=[];
for(var item in _2b5){
if((_2b5[item]["tagName"]=="dojo:propertyset")){
_2b6.push(_2b5[item]);
}
}
this.propertySetsList.push(_2b6);
return _2b6;
};
this.parseProperties=function(_2b8){
var _2b9={};
for(var item in _2b8){
if((_2b8[item]==_2b8["tagName"])||(_2b8[item]==_2b8.nodeRef)){
}else{
if((_2b8[item]["tagName"])&&(dojo.widget.tags[_2b8[item].tagName.toLowerCase()])){
}else{
if((_2b8[item][0])&&(_2b8[item][0].value!="")&&(_2b8[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _2bb=this;
this.getDataProvider(_2bb,_2b8[item][0].value);
_2b9.dataProvider=this.dataProvider;
}
_2b9[item]=_2b8[item][0].value;
var _2bc=this.parseProperties(_2b8[item]);
for(var _2bd in _2bc){
_2b9[_2bd]=_2bc[_2bd];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _2b9;
};
this.getDataProvider=function(_2be,_2bf){
dojo.io.bind({url:_2bf,load:function(type,_2c1){
if(type=="load"){
_2be.dataProvider=_2c1;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_2c2){
for(var x=0;x<this.propertySetsList.length;x++){
if(_2c2==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_2c4){
var _2c5=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl["componentClass"]||cpl["componentType"]||null;
if((cpcc)&&(propertySetId==cpcc[0].value)){
_2c5.push(cpl);
}
}
return _2c5;
};
this.getPropertySets=function(_2c9){
var ppl="dojo:propertyproviderlist";
var _2cb=[];
var _2cc=_2c9["tagName"];
if(_2c9[ppl]){
var _2cd=_2c9[ppl].value.split(" ");
for(propertySetId in _2cd){
if((propertySetId.indexOf("..")==-1)&&(propertySetId.indexOf("://")==-1)){
var _2ce=this.getPropertySetById(propertySetId);
if(_2ce!=""){
_2cb.push(_2ce);
}
}else{
}
}
}
return (this.getPropertySetsByType(_2cc)).concat(_2cb);
};
this.createComponentFromScript=function(_2cf,_2d0,_2d1){
var ltn="dojo:"+_2d0.toLowerCase();
if(dojo.widget.tags[ltn]){
_2d1.fastMixIn=true;
return [dojo.widget.tags[ltn](_2d1,this,null,null,_2d1)];
}else{
if(ltn.substr(0,5)=="dojo:"){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
};
};
dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()};
dojo.widget.getParser=function(name){
if(!name){
name="dojo";
}
if(!this._parser_collection[name]){
this._parser_collection[name]=new dojo.widget.Parse();
}
return this._parser_collection[name];
};
dojo.widget.createWidget=function(name,_2d5,_2d6,_2d7){
var _2d8=name.toLowerCase();
var _2d9="dojo:"+_2d8;
var _2da=(dojo.byId(name)&&(!dojo.widget.tags[_2d9]));
if((arguments.length==1)&&((typeof name!="string")||(_2da))){
var xp=new dojo.xml.Parse();
var tn=(_2da)?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_2dd,name,_2df){
_2df[_2d9]={dojotype:[{value:_2d8}],nodeRef:_2dd,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_2dd,name,_2df,true);
}
if(typeof name!="string"&&typeof _2d5=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])","0.4");
return fromScript(name,_2d5,_2d6);
}
_2d5=_2d5||{};
var _2e0=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_2d6){
_2e0=true;
_2d6=tn;
if(h){
document.body.appendChild(_2d6);
}
}else{
if(_2d7){
dojo.dom.insertAtPosition(tn,_2d6,_2d7);
}else{
tn=_2d6;
}
}
var _2e2=fromScript(tn,name,_2d5);
if(!_2e2[0]||typeof _2e2[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_2e0){
if(_2e2[0].domNode.parentNode){
_2e2[0].domNode.parentNode.removeChild(_2e2[0].domNode);
}
}
return _2e2[0];
};
dojo.widget.fromScript=function(name,_2e4,_2e5,_2e6){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead","0.4");
return dojo.widget.createWidget(name,_2e4,_2e5,_2e6);
};
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 _2ec=new dojo.uri.Uri(arguments[i].toString());
var _2ed=new dojo.uri.Uri(uri.toString());
if(_2ec.path==""&&_2ec.scheme==null&&_2ec.authority==null&&_2ec.query==null){
if(_2ec.fragment!=null){
_2ed.fragment=_2ec.fragment;
}
_2ec=_2ed;
}else{
if(_2ec.scheme==null){
_2ec.scheme=_2ed.scheme;
if(_2ec.authority==null){
_2ec.authority=_2ed.authority;
if(_2ec.path.charAt(0)!="/"){
var path=_2ed.path.substring(0,_2ed.path.lastIndexOf("/")+1)+_2ec.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;
}
}
}
}
_2ec.path=segs.join("/");
}
}
}
}
uri="";
if(_2ec.scheme!=null){
uri+=_2ec.scheme+":";
}
if(_2ec.authority!=null){
uri+="//"+_2ec.authority;
}
uri+=_2ec.path;
if(_2ec.query!=null){
uri+="?"+_2ec.query;
}
if(_2ec.fragment!=null){
uri+="#"+_2ec.fragment;
}
}
this.uri=uri.toString();
var _2f1="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_2f1));
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){
_2f1="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_2f1));
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.kwCompoundRequire({common:["dojo.uri.Uri",false,false]});
dojo.provide("dojo.uri.*");
dojo.provide("dojo.widget.DomWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.widget.Widget");
dojo.require("dojo.dom");
dojo.require("dojo.xml.Parse");
dojo.require("dojo.uri.*");
dojo.require("dojo.lang.func");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.buildFromTemplate=function(){
dojo.lang.forward("fillFromTemplateCache");
};
dojo.widget.fillFromTemplateCache=function(obj,_2f4,_2f5,_2f6,_2f7){
var _2f8=_2f4||obj.templatePath;
var _2f9=_2f5||obj.templateCssPath;
if(_2f8&&!(_2f8 instanceof dojo.uri.Uri)){
_2f8=dojo.uri.dojoUri(_2f8);
dojo.deprecated("templatePath should be of type dojo.uri.Uri",null,"0.4");
}
if(_2f9&&!(_2f9 instanceof dojo.uri.Uri)){
_2f9=dojo.uri.dojoUri(_2f9);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri",null,"0.4");
}
var _2fa=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _2fb="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_2fa[_2fb]);
obj.widgetType=_2fb;
}
var wt=obj.widgetType;
if((!obj.templateCssString)&&(_2f9)&&(!dojo.widget._cssFiles[_2f9])){
obj.templateCssString=dojo.hostenv.getText(_2f9);
obj.templateCssPath=null;
dojo.widget._cssFiles[_2f9]=true;
}
if((obj["templateCssString"])&&(!obj.templateCssString["loaded"])){
dojo.style.insertCssText(obj.templateCssString,null,_2f9);
if(!obj.templateCssString){
obj.templateCssString="";
}
obj.templateCssString.loaded=true;
}
var ts=_2fa[wt];
if(!ts){
_2fa[wt]={"string":null,"node":null};
if(_2f7){
ts={};
}else{
ts=_2fa[wt];
}
}
if(!obj.templateString){
obj.templateString=_2f6||ts["string"];
}
if(!obj.templateNode){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_2f8)){
var _2fe=dojo.hostenv.getText(_2f8);
if(_2fe){
var _2ff=_2fe.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2ff){
_2fe=_2ff[1];
}
}else{
_2fe="";
}
obj.templateString=_2fe;
if(!_2f7){
_2fa[wt]["string"]=_2fe;
}
}
if((!ts["string"])&&(!_2f7)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole",namespace:"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:",nsName:"role"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:"",nsName:"state"},setAttr:function(node,attr,_302){
if(dojo.render.html.ie){
node.setAttribute(this[attr].alias+":"+this[attr].nsName,this[attr].prefix+_302);
}else{
node.setAttributeNS(this[attr].namespace,this[attr].nsName,this[attr].prefix+_302);
}
}};
dojo.widget.attachTemplateNodes=function(_303,_304,_305){
var _306=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_303){
_303=_304.domNode;
}
if(_303.nodeType!=_306){
return;
}
var _308=_303.all||_303.getElementsByTagName("*");
var _309=_304;
for(var x=-1;x<_308.length;x++){
var _30b=(x==-1)?_303:_308[x];
var _30c=[];
for(var y=0;y<this.attachProperties.length;y++){
var _30e=_30b.getAttribute(this.attachProperties[y]);
if(_30e){
_30c=_30e.split(";");
for(var z=0;z<_30c.length;z++){
if(dojo.lang.isArray(_304[_30c[z]])){
_304[_30c[z]].push(_30b);
}else{
_304[_30c[z]]=_30b;
}
}
break;
}
}
var _310=_30b.getAttribute(this.templateProperty);
if(_310){
_304[_310]=_30b;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_30b.getAttribute(wai.name);
if(val){
dojo.widget.wai.setAttr(_30b,wai.name,val);
}
},this);
var _314=_30b.getAttribute(this.eventAttachProperty);
if(_314){
var evts=_314.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _316=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _318=tevt.split(":");
tevt=trim(_318[0]);
_316=trim(_318[1]);
}
if(!_316){
_316=tevt;
}
var tf=function(){
var ntf=new String(_316);
return function(evt){
if(_309[ntf]){
_309[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_30b,tevt,tf,false,true);
}
}
for(var y=0;y<_305.length;y++){
var _31c=_30b.getAttribute(_305[y]);
if((_31c)&&(_31c.length)){
var _316=null;
var _31d=_305[y].substr(4);
_316=trim(_31c);
var _31e=[_316];
if(_316.indexOf(";")>=0){
_31e=dojo.lang.map(_316.split(";"),trim);
}
for(var z=0;z<_31e.length;z++){
if(!_31e[z].length){
continue;
}
var tf=function(){
var ntf=new String(_31e[z]);
return function(evt){
if(_309[ntf]){
_309[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_30b,_31d,tf,false,true);
}
}
}
var _321=_30b.getAttribute(this.onBuildProperty);
if(_321){
eval("var node = baseNode; var widget = targetObj; "+_321);
}
}
};
dojo.widget.getDojoEventsFromStr=function(str){
var re=/(dojoOn([a-z]+)(\s?))=/gi;
var evts=str?str.match(re)||[]:[];
var ret=[];
var lem={};
for(var x=0;x<evts.length;x++){
if(evts[x].legth<1){
continue;
}
var cm=evts[x].replace(/\s/,"");
cm=(cm.slice(0,cm.length-1));
if(!lem[cm]){
lem[cm]=true;
ret.push(cm);
}
}
return ret;
};
dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,{initializer:function(){
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
},templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,addChild:function(_329,_32a,pos,ref,_32d){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_329,_32a,pos,ref,_32d);
this.registerChild(_329,_32d);
}
return _329;
},addWidgetAsDirectChild:function(_32e,_32f,pos,ref,_332){
if((!this.containerNode)&&(!_32f)){
this.containerNode=this.domNode;
}
var cn=(_32f)?_32f:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=document.body;
}
ref=cn.lastChild;
}
if(!_332){
_332=0;
}
_32e.domNode.setAttribute("dojoinsertionindex",_332);
if(!ref){
cn.appendChild(_32e.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_32e.domNode,ref.parentNode,_332);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_32e.domNode);
}else{
dojo.dom.insertAtPosition(_32e.domNode,cn,pos);
}
}
}
},registerChild:function(_334,_335){
_334.dojoInsertionIndex=_335;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_335){
idx=i;
}
}
this.children.splice(idx+1,0,_334);
_334.parent=this;
_334.addedTo(this);
delete dojo.widget.manager.topWidgets[_334.widgetId];
},removeChild:function(_338){
dojo.dom.removeNode(_338.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_338);
},getFragNodeRef:function(frag){
if(!frag||!frag["dojo:"+this.widgetType.toLowerCase()]){
dojo.raise("Error: no frag for widget type "+this.widgetType+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return (frag?frag["dojo:"+this.widgetType.toLowerCase()]["nodeRef"]:null);
},postInitialize:function(args,frag,_33c){
var _33d=this.getFragNodeRef(frag);
if(_33c&&(_33c.snarfChildDomOutput||!_33d)){
_33c.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_33d);
}else{
if(_33d){
if(this.domNode&&(this.domNode!==_33d)){
var _33e=_33d.parentNode.replaceChild(this.domNode,_33d);
}
}
}
if(_33c){
_33c.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _33f=dojo.widget.getParser();
_33f.createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _345=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_345=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_345);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_345)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _347=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_347=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_347){
var hash=this.strings||{};
for(var key in dojo.widget.defaultStrings){
if(dojo.lang.isUndefined(hash[key])){
hash[key]=dojo.widget.defaultStrings[key];
}
}
for(var i=0;i<_347.length;i++){
var key=_347[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?this[key.substring(5)]:hash[key];
var _34e;
if((kval)||(dojo.lang.isString(kval))){
_34e=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_347[i],_34e);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
ts.node=this.templateNode;
}
}
if((!this.templateNode)&&(!_347)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_347){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes(this.domNode,this);
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_350,_351){
if(!_351){
_351=this;
}
return dojo.widget.attachTemplateNodes(_350,_351,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerHeight");
},getContainerWidth:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerWidth");
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
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(_358){
if(_358){
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(_359,_35a){
return dojo.graphics.color.blend(this.toRgb(),new Color(_359).toRgb(),_35a);
}});
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,_35d){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_35d);
}
if(!_35d){
_35d=0;
}else{
if(_35d>1){
_35d=1;
}else{
if(_35d<-1){
_35d=-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*_35d));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_363){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_363));
};
dojo.graphics.color.extractRGB=function(_364){
var hex="0123456789abcdef";
_364=_364.toLowerCase();
if(_364.indexOf("rgb")==0){
var _366=_364.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_366.splice(1,3);
return ret;
}else{
var _368=dojo.graphics.color.hex2rgb(_364);
if(_368){
return _368;
}else{
return dojo.graphics.color.named[_364]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _36a="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_36a+"]","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]=_36a.indexOf(rgb[i].charAt(0))*16+_36a.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.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 _379=ds.getStyle(node,"-moz-box-sizing");
if(!_379){
_379=ds.getStyle(node,"box-sizing");
}
return (_379?_379:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_37c,_37d){
var s=ds.getComputedStyle(node,_37c);
if((!s)||((s=="auto")&&(_37d))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _37f=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_37f){
return ds.getUnitValue.bad;
}
return {value:Number(_37f[1]),units:_37f[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_381,_382){
var _383=ds.getUnitValue(node,_381,_382);
if(isNaN(_383.value)){
return 0;
}
if((_383.value)&&(_383.units!="px")){
return NaN;
}
return _383.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,_385,_386){
if(isNaN(_386)){
return false;
}
node.style[_385]=Math.max(0,_386)+"px";
return true;
};
ds._sumPixelValues=function(node,_388,_389){
var _38a=0;
for(x=0;x<_388.length;x++){
_38a+=ds.getPixelValue(node,_388[x],_389);
}
return _38a;
};
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,_396){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_396+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_396);
};
ds.setMarginBoxWidth=function(node,_398){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_398-=ds.getPadBorderWidth(node);
}
_398-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_398);
};
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,_3a1){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_3a1+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_3a1);
};
ds.setMarginBoxHeight=function(node,_3a3){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_3a3-=ds.getPadBorderHeight(node);
}
_3a3-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_3a3);
};
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,_3a5){
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 _3a9;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_3a9=db;
}else{
_3a9=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!=_3a9)&&(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(_3a5){
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 _3ae=0;
while(node){
var val=node[prop];
if(val){
_3ae+=val-0;
}
node=node.parentNode;
}
return _3ae;
};
ds.getTotalOffset=function(node,type,_3b2){
node=dojo.byId(node);
return ds.abs(node,_3b2)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_3b4){
return ds.getTotalOffset(node,"left",_3b4);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_3b6){
return ds.getTotalOffset(node,"top",_3b6);
};
ds.styleSheet=null;
ds.insertCssRule=function(_3b7,_3b8,_3b9){
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){
_3b9=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_3b9=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_3b7+" { "+_3b8+" }";
return ds.styleSheet.insertRule(rule,_3b9);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_3b7,_3b8,_3b9);
}else{
return null;
}
}
};
ds.removeCssRule=function(_3bb){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_3bb){
_3bb=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_3bb);
}
}else{
if(document.styleSheets[0]){
if(!_3bb){
_3bb=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_3bb);
}
}
return true;
};
ds.insertCssFile=function(URI,doc,_3be){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _3bf=dojo.hostenv.getText(URI);
_3bf=ds.fixPathsInCssText(_3bf,URI);
if(_3be){
var _3c0=doc.getElementsByTagName("style");
var _3c1="";
for(var i=0;i<_3c0.length;i++){
_3c1=(_3c0[i].styleSheet&&_3c0[i].styleSheet.cssText)?_3c0[i].styleSheet.cssText:_3c0[i].innerHTML;
if(_3bf==_3c1){
return;
}
}
}
var _3c3=ds.insertCssText(_3bf);
if(_3c3&&djConfig.isDebug){
_3c3.setAttribute("dbgHref",URI);
}
return _3c3;
};
ds.insertCssText=function(_3c4,doc,URI){
if(!_3c4){
return;
}
if(!doc){
doc=document;
}
if(URI){
_3c4=ds.fixPathsInCssText(_3c4,URI);
}
var _3c7=doc.createElement("style");
_3c7.setAttribute("type","text/css");
if(_3c7.styleSheet){
_3c7.styleSheet.cssText=_3c4;
}else{
var _3c8=doc.createTextNode(_3c4);
_3c7.appendChild(_3c8);
}
var head=doc.getElementsByTagName("head")[0];
if(!head){
dojo.debug("No head tag in document, aborting styles");
}else{
head.appendChild(_3c7);
}
return _3c7;
};
ds.fixPathsInCssText=function(_3ca,URI){
if(!_3ca||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_3ca.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_3ca.slice(0,pos+4);
_3ca=_3ca.substring(pos+4,_3ca.length);
url+=_3ca.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_3ca=_3ca.substring(url.length-1,_3ca.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+_3ca;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _3d0;
do{
_3d0=ds.getStyle(node,"background-color");
if(_3d0.toLowerCase()=="rgba(0, 0, 0, 0)"){
_3d0="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_3d0,["transparent",""]));
if(_3d0=="transparent"){
_3d0=[255,255,255,0];
}else{
_3d0=dojo.graphics.color.extractRGB(_3d0);
}
return _3d0;
};
ds.getComputedStyle=function(node,_3d2,_3d3){
node=dojo.byId(node);
var _3d2=ds.toSelectorCase(_3d2);
var _3d4=ds.toCamelCase(_3d2);
if(!node||!node.style){
return _3d3;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_3d2);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_3d2);
}else{
return _3d3;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_3d4];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_3d2);
}else{
return _3d3;
}
};
ds.getStyleProperty=function(node,_3d7){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_3d7)]:undefined);
};
ds.getStyle=function(node,_3d9){
var _3da=ds.getStyleProperty(node,_3d9);
return (_3da?_3da:ds.getComputedStyle(node,_3d9));
};
ds.setStyle=function(node,_3dc,_3dd){
node=dojo.byId(node);
if(node&&node.style){
var _3de=ds.toCamelCase(_3dc);
node.style[_3de]=_3dd;
}
};
ds.toCamelCase=function(_3df){
var arr=_3df.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(_3e2){
return _3e2.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_3e4,_3e5){
node=dojo.byId(node);
if(!_3e5){
if(_3e4>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_3e4=0.999999;
}
}else{
if(_3e4<0){
_3e4=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="+_3e4*100+")";
}
}
node.style.filter="Alpha(Opacity="+_3e4*100+")";
}else{
if(h.moz){
node.style.opacity=_3e4;
node.style.MozOpacity=_3e4;
}else{
if(h.safari){
node.style.opacity=_3e4;
node.style.KhtmlOpacity=_3e4;
}else{
node.style.opacity=_3e4;
}
}
}
};
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,_3ed,_3ee){
node=dojo.byId(node);
_3ee(node,!_3ed(node));
return _3ed(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,_3f3){
ds[(_3f3?"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,_3f9){
ds.setStyle(node,"display",(dojo.lang.isString(_3f9)?_3f9:(_3f9?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,_3fd){
ds.setStyle(node,"visibility",(dojo.lang.isString(_3fd)?_3fd:(_3fd?"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(_400,_401){
if(dojo.lang.isArray(_400)){
while(_400.length<4){
_400.push(0);
}
while(_400.length>4){
_400.pop();
}
var ret=_400;
}else{
var node=dojo.byId(_400);
var pos=ds.getAbsolutePosition(node,_401);
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.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,_40b,_40c){
var out="";
for(var i=0;i<_40b;i++){
out+=str;
if(_40c&&i<_40b-1){
out+=_40c;
}
}
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.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(_41a){
_41a=dojo.byId(_41a)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_41a.style.MozUserSelect="none";
}else{
if(h.safari){
_41a.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_41a.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_41c){
_41c=dojo.byId(_41c)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_41c.style.MozUserSelect="";
}else{
if(h.safari){
_41c.style.KhtmlUserSelect="";
}else{
if(h.ie){
_41c.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_41e){
_41e=dojo.byId(_41e);
if(document.selection&&document.body.createTextRange){
var _41f=document.body.createTextRange();
_41f.moveToElementText(_41e);
_41f.select();
}else{
if(window["getSelection"]){
var _420=window.getSelection();
if(_420["selectAllChildren"]){
_420.selectAllChildren(_41e);
}
}
}
};
dojo.html.selectInputText=function(_421){
_421=dojo.byId(_421);
if(document.selection&&document.body.createTextRange){
var _422=_421.createTextRange();
_422.moveStart("character",0);
_422.moveEnd("character",_421.value.length);
_422.select();
}else{
if(window["getSelection"]){
var _423=window.getSelection();
_421.setSelectionRange(0,_421.value.length);
}
}
_421.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _424=window.getSelection();
if(dojo.lang.isString(_424)){
return _424=="";
}else{
return _424.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 _42f=dojo.byId(node);
type=type.toLowerCase();
while((_42f)&&(_42f.nodeName.toLowerCase()!=type)){
if(_42f==(document["body"]||document["documentElement"])){
return null;
}
_42f=_42f.parentNode;
}
return _42f;
};
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,_43b){
return dojo.lang.inArray(dojo.html.getClasses(node),_43b);
};
dojo.html.prependClass=function(node,_43d){
_43d+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_43d);
};
dojo.html.addClass=function(node,_43f){
if(dojo.html.hasClass(node,_43f)){
return false;
}
_43f=dojo.string.trim(dojo.html.getClass(node)+" "+_43f);
return dojo.html.setClass(node,_43f);
};
dojo.html.setClass=function(node,_441){
node=dojo.byId(node);
var cs=new String(_441);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_441);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_444,_445){
var _444=dojo.string.trim(new String(_444));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_445){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_444)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_444){
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,_44a,_44b){
dojo.html.removeClass(node,_44b);
dojo.html.addClass(node,_44a);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_44c,_44d,_44e,_44f){
_44d=dojo.byId(_44d)||document;
var _450=_44c.split(/\s+/g);
var _451=[];
if(_44f!=1&&_44f!=2){
_44f=0;
}
var _452=new RegExp("(\\s|^)(("+_450.join(")|(")+"))(\\s|$)");
if(!_44e){
_44e="*";
}
var _453=_44d.getElementsByTagName(_44e);
var node,i=0;
outer:
while(node=_453[i++]){
var _455=dojo.html.getClasses(node);
if(_455.length==0){
continue outer;
}
var _456=0;
for(var j=0;j<_455.length;j++){
if(_452.test(_455[j])){
if(_44f==dojo.html.classMatchType.ContainsAny){
_451.push(node);
continue outer;
}else{
_456++;
}
}else{
if(_44f==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_456==_450.length){
if(_44f==dojo.html.classMatchType.IsOnly&&_456==_455.length){
_451.push(node);
}else{
if(_44f==dojo.html.classMatchType.ContainsAll){
_451.push(node);
}
}
}
}
return _451;
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _459={x:0,y:0};
if(e.pageX||e.pageY){
_459.x=e.pageX;
_459.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_459.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_459.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _459;
};
dojo.html.overElement=function(_45c,e){
_45c=dojo.byId(_45c);
var _45e=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_45c,true);
var _460=top+getInnerHeight(_45c);
var left=getAbsoluteX(_45c,true);
var _462=left+getInnerWidth(_45c);
}
return (_45e.x>=left&&_45e.x<=_462&&_45e.y>=top&&_45e.y<=_460);
};
dojo.html.setActiveStyleSheet=function(_463){
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")==_463){
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(_46a,_46b){
if(dojo.lang.isUndefined(_46b.style.cssText)){
_46a.setAttribute("style",_46b.getAttribute("style"));
}else{
_46a.style.cssText=_46b.style.cssText;
}
dojo.html.addClass(_46a,dojo.html.getClass(_46b));
};
dojo.html._callExtrasDeprecated=function(_46c,args){
var _46e="dojo.html.extras";
dojo.deprecated("dojo.html."+_46c,"moved to "+_46e,"0.4");
dojo["require"](_46e);
return dojo.html[_46c].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.provide("dojo.string.extras");
dojo.require("dojo.string.common");
dojo.require("dojo.lang");
dojo.string.paramString=function(str,_470,_471){
for(var name in _470){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_470[name]);
}
if(_471){
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 _475=str.split(" ");
var _476="";
var len=_475.length;
for(var i=0;i<len;i++){
var word=_475[i];
word=word.charAt(0).toUpperCase()+word.substring(1,word.length);
_476+=word;
if(i<len-1){
_476+=" ";
}
}
return new String(_476);
};
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 _47d=escape(str);
var _47e,re=/%u([0-9A-F]{4})/i;
while((_47e=_47d.match(re))){
var num=Number("0x"+_47e[1]);
var _480=escape("&#"+num+";");
ret+=_47d.substring(0,_47e.index)+_480;
_47d=_47d.substring(_47e.index+_47e[0].length);
}
ret+=_47d.replace(/\+/g,"%2B");
return ret;
};
dojo.string.escape=function(type,str){
var args=[];
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
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,_486){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_486){
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,_48f){
if(_48f){
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,_493,_494){
if(_494){
str=str.toLowerCase();
_493=_493.toLowerCase();
}
return str.indexOf(_493)==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,_49a){
if(_49a=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_49a=="\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,_49c){
var _49d=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_49c){
_49d.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_49d.push(str.substr(prevcomma));
return _49d;
};
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 _4a1=dojo.html.getCursorPosition(e);
with(dojo.html){
var _4a2=getAbsoluteX(node,true)+(getInnerWidth(node)/2);
var _4a3=getAbsoluteY(node,true)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_4a1.x<_4a2?WEST:EAST)|(_4a1.y<_4a3?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 _4a5="";
if(node==null){
return _4a5;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _4a7="unknown";
try{
_4a7=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_4a7){
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":
_4a5+="\n";
_4a5+=dojo.html.renderedTextContent(node.childNodes[i]);
_4a5+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_4a5+="\n";
}else{
_4a5+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _4a9="unknown";
try{
_4a9=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_4a9){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_4a9){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_4a5)){
text.replace(/^\s/,"");
}
break;
}
_4a5+=text;
break;
default:
break;
}
}
return _4a5;
};
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 _4ad="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_4ad="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_4ad="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_4ad="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _4ae=null;
switch(_4ad){
case "cell":
_4ae=tn.getElementsByTagName("tr")[0];
break;
case "row":
_4ae=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_4ae=tn.getElementsByTagName("table")[0];
break;
default:
_4ae=tn;
break;
}
var _4af=[];
for(var x=0;x<_4ae.childNodes.length;x++){
_4af.push(_4ae.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _4af;
};
dojo.html.placeOnScreen=function(node,_4b2,_4b3,_4b4,_4b5){
if(dojo.lang.isArray(_4b2)){
_4b5=_4b4;
_4b4=_4b3;
_4b3=_4b2[1];
_4b2=_4b2[0];
}
if(!isNaN(_4b4)){
_4b4=[Number(_4b4),Number(_4b4)];
}else{
if(!dojo.lang.isArray(_4b4)){
_4b4=[0,0];
}
}
var _4b6=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_4b4[0];
var h=node.offsetHeight+_4b4[1];
if(_4b5){
_4b2-=_4b6.x;
_4b3-=_4b6.y;
}
var x=_4b2+w;
if(x>view.w){
x=view.w-w;
}else{
x=_4b2;
}
x=Math.max(_4b4[0],x)+_4b6.x;
var y=_4b3+h;
if(y>view.h){
y=view.h-h;
}else{
y=_4b3;
}
y=Math.max(_4b4[1],y)+_4b6.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,_4be,_4bf,_4c0,_4c1){
if(dojo.lang.isArray(_4be)){
_4c1=_4c0;
_4c0=_4bf;
_4bf=_4be[1];
_4be=_4be[0];
}
if(!isNaN(_4c0)){
_4c0=[Number(_4c0),Number(_4c0)];
}else{
if(!dojo.lang.isArray(_4c0)){
_4c0=[0,0];
}
}
var _4c2=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var _4c4=node.style.display;
node.style.display="";
var w=dojo.style.getInnerWidth(node);
var h=dojo.style.getInnerHeight(node);
node.style.display=_4c4;
if(_4c1){
_4be-=_4c2.x;
_4bf-=_4c2.y;
}
var x=-1,y=-1;
if((_4be+_4c0[0])+w<=view.w&&(_4bf+_4c0[1])+h<=view.h){
x=(_4be+_4c0[0]);
y=(_4bf+_4c0[1]);
}
if((x<0||y<0)&&(_4be-_4c0[0])<=view.w&&(_4bf+_4c0[1])+h<=view.h){
x=(_4be-_4c0[0])-w;
y=(_4bf+_4c0[1]);
}
if((x<0||y<0)&&(_4be+_4c0[0])+w<=view.w&&(_4bf-_4c0[1])<=view.h){
x=(_4be+_4c0[0]);
y=(_4bf-_4c0[1])-h;
}
if((x<0||y<0)&&(_4be-_4c0[0])<=view.w&&(_4bf-_4c0[1])<=view.h){
x=(_4be-_4c0[0])-w;
y=(_4bf-_4c0[1])-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_4be,_4bf,_4c0,_4c1);
}
x+=_4c2.x;
y+=_4c2.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;
}
coords=dojo.style.toCoordinateArray(node,true);
var s=this.iframe.style;
s.width=coords.w+"px";
s.height=coords.h+"px";
s.left=coords.x+"px";
s.top=coords.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.lfx.Animation");
dojo.provide("dojo.lfx.Line");
dojo.require("dojo.lang.func");
dojo.lfx.Line=function(_4d2,end){
this.start=_4d2;
this.end=end;
if(dojo.lang.isArray(_4d2)){
var diff=[];
dojo.lang.forEach(this.start,function(s,i){
diff[i]=this.end[i]-s;
},this);
this.getValue=function(n){
var res=[];
dojo.lang.forEach(this.start,function(s,i){
res[i]=(diff[i]*n)+s;
},this);
return res;
};
}else{
var diff=end-_4d2;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:25,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
},_active:false,_paused:false});
dojo.lfx.Animation=function(_4e1,_4e2,_4e3,_4e4,_4e5,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_4e1)||(!_4e1&&_4e2.getValue)){
rate=_4e5;
_4e5=_4e4;
_4e4=_4e3;
_4e3=_4e2;
_4e2=_4e1;
_4e1=null;
}else{
if(_4e1.getValue||dojo.lang.isArray(_4e1)){
rate=_4e4;
_4e5=_4e3;
_4e4=_4e2;
_4e3=_4e1;
_4e2=null;
_4e1=null;
}
}
if(dojo.lang.isArray(_4e3)){
this.curve=new dojo.lfx.Line(_4e3[0],_4e3[1]);
}else{
this.curve=_4e3;
}
if(_4e2!=null&&_4e2>0){
this.duration=_4e2;
}
if(_4e5){
this.repeatCount=_4e5;
}
if(rate){
this.rate=rate;
}
if(_4e1){
this.handler=_4e1.handler;
this.beforeBegin=_4e1.beforeBegin;
this.onBegin=_4e1.onBegin;
this.onEnd=_4e1.onEnd;
this.onPlay=_4e1.onPlay;
this.onPause=_4e1.onPause;
this.onStop=_4e1.onStop;
this.onAnimate=_4e1.onAnimate;
}
if(_4e4&&dojo.lang.isFunction(_4e4)){
this.easing=_4e4;
}
};
dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_4e7,_4e8){
if(_4e8){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return;
}
}
this.fire("beforeBegin");
if(_4e7>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_4e8);
}),_4e7);
return;
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._active=true;
this._paused=false;
var step=this._percent/100;
var _4ea=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_4ea]);
this.fire("onBegin",[_4ea]);
}
this.fire("handler",["play",_4ea]);
this.fire("onPlay",[_4ea]);
this._cycle();
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return;
}
this._paused=true;
var _4eb=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_4eb]);
this.fire("onPause",[_4eb]);
},gotoPercent:function(pct,_4ed){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_4ed){
this.play();
}
},stop:function(_4ee){
clearTimeout(this._timer);
var step=this._percent/100;
if(_4ee){
step=1;
}
var _4f0=this.curve.getValue(step);
this.fire("handler",["stop",_4f0]);
this.fire("onStop",[_4f0]);
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);
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if(this.easing&&dojo.lang.isFunction(this.easing)){
step=this.easing(step);
}
var _4f3=this.curve.getValue(step);
this.fire("handler",["animate",_4f3]);
this.fire("onAnimate",[_4f3]);
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
this._active=false;
this.fire("handler",["end"]);
this.fire("onEnd");
if(this.repeatCount>0){
this.repeatCount--;
this.play(null,true);
}else{
if(this.repeatCount==-1){
this.play(null,true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
}
}
}
}
}});
dojo.lfx.Combine=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _4f4=arguments;
if(_4f4.length==1&&(dojo.lang.isArray(_4f4[0])||dojo.lang.isArrayLike(_4f4[0]))){
_4f4=_4f4[0];
}
var _4f5=this;
dojo.lang.forEach(_4f4,function(anim){
_4f5._anims.push(anim);
dojo.event.connect(anim,"onEnd",function(){
_4f5._onAnimsEnded();
});
});
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_4f7,_4f8){
if(!this._anims.length){
return;
}
this.fire("beforeBegin");
if(_4f7>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_4f8);
}),_4f7);
return;
}
if(_4f8||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_4f8);
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
},stop:function(_4f9){
this.fire("onStop");
this._animsCall("stop",_4f9);
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
},_animsCall:function(_4fa){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _4fd=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_4fa](args);
},_4fd);
}});
dojo.lfx.Chain=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _4ff=arguments;
if(_4ff.length==1&&(dojo.lang.isArray(_4ff[0])||dojo.lang.isArrayLike(_4ff[0]))){
_4ff=_4ff[0];
}
var _500=this;
dojo.lang.forEach(_4ff,function(anim,i,_503){
_500._anims.push(anim);
if(i<_503.length-1){
dojo.event.connect(anim,"onEnd",function(){
_500._playNext();
});
}else{
dojo.event.connect(anim,"onEnd",function(){
_500.fire("onEnd");
});
}
},_500);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_504,_505){
if(!this._anims.length){
return;
}
if(_505||!this._anims[this._currAnim]){
this._currAnim=0;
}
this.fire("beforeBegin");
if(_504>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_505);
}),_504);
return;
}
if(this._anims[this._currAnim]){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
this._anims[this._currAnim].play(null,_505);
}
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
this.fire("onPause",[this._currAnim]);
}
},playPause:function(){
if(this._anims.length==0){
return;
}
if(this._currAnim==-1){
this._currAnim=0;
}
var _506=this._anims[this._currAnim];
if(_506){
if(!_506._active||_506._paused){
this.play();
}else{
this.pause();
}
}
},stop:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].stop();
this.fire("onStop",[this._currAnim]);
}
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return;
}
this._currAnim++;
if(this._anims[this._currAnim]){
this._anims[this._currAnim].play(null,true);
}
}});
dojo.lfx.combine=function(){
var _507=arguments;
if(dojo.lang.isArray(arguments[0])){
_507=arguments[0];
}
return new dojo.lfx.Combine(_507);
};
dojo.lfx.chain=function(){
var _508=arguments;
if(dojo.lang.isArray(arguments[0])){
_508=arguments[0];
}
return new dojo.lfx.Chain(_508);
};
dojo.provide("dojo.lfx.html");
dojo.require("dojo.lfx.Animation");
dojo.require("dojo.html");
dojo.require("dojo.event");
dojo.require("dojo.lang.func");
dojo.lfx.html._byId=function(_509){
if(dojo.lang.isArrayLike(_509)){
if(!_509.alreadyChecked){
var n=[];
dojo.lang.forEach(_509,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _509;
}
}else{
var n=[];
n.push(dojo.byId(_509));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_50c,_50d,_50e,_50f){
_50c=dojo.lfx.html._byId(_50c);
if(_50c.length==1){
dojo.lang.forEach(_50d,function(prop){
if(typeof prop["start"]=="undefined"){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.style.getComputedStyle(_50c[0],prop.property));
}else{
prop.start=dojo.style.getOpacity(_50c[0]);
}
}
});
}
var _511=function(_512){
var _513=new Array(_512.length);
for(var i=0;i<_512.length;i++){
_513[i]=Math.round(_512[i]);
}
return _513;
};
var _515=function(n,_517){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(s in _517){
if(s=="opacity"){
dojo.style.setOpacity(n,_517[s]);
}else{
n.style[s]=_517[s];
}
}
};
var _518=function(_519){
this._properties=_519;
this.diffs=new Array(_519.length);
dojo.lang.forEach(_519,function(prop,i){
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.graphics.color.Color){
prop.startRgb=prop.start.toRgb();
prop.endRgb=prop.end.toRgb();
}else{
this.diffs[i]=prop.end-prop.start;
}
}
},this);
this.getValue=function(n){
var ret={};
dojo.lang.forEach(this._properties,function(prop,i){
var _520=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.graphics.color.Color){
_520=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_520+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_520+=")";
}else{
_520=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.style.toCamelCase(prop.property)]=_520;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation(_50e,new _518(_50d),_50f);
dojo.event.connect(anim,"onAnimate",function(_523){
dojo.lang.forEach(_50c,function(node){
_515(node,_523);
});
});
return anim;
};
dojo.lfx.html._makeFadeable=function(_525){
var _526=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";
}
}
};
if(dojo.lang.isArrayLike(_525)){
dojo.lang.forEach(_525,_526);
}else{
_526(_525);
}
};
dojo.lfx.html.fadeIn=function(_528,_529,_52a,_52b){
_528=dojo.lfx.html._byId(_528);
dojo.lfx.html._makeFadeable(_528);
var anim=dojo.lfx.propertyAnimation(_528,[{property:"opacity",start:dojo.style.getOpacity(_528[0]),end:1}],_529,_52a);
if(_52b){
dojo.event.connect(anim,"onEnd",function(){
_52b(_528,anim);
});
}
return anim;
};
dojo.lfx.html.fadeOut=function(_52d,_52e,_52f,_530){
_52d=dojo.lfx.html._byId(_52d);
dojo.lfx.html._makeFadeable(_52d);
var anim=dojo.lfx.propertyAnimation(_52d,[{property:"opacity",start:dojo.style.getOpacity(_52d[0]),end:0}],_52e,_52f);
if(_530){
dojo.event.connect(anim,"onEnd",function(){
_530(_52d,anim);
});
}
return anim;
};
dojo.lfx.html.fadeShow=function(_532,_533,_534,_535){
var anim=dojo.lfx.html.fadeIn(_532,_533,_534,_535);
dojo.event.connect(anim,"beforeBegin",function(){
if(dojo.lang.isArrayLike(_532)){
dojo.lang.forEach(_532,dojo.style.show);
}else{
dojo.style.show(_532);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_537,_538,_539,_53a){
var anim=dojo.lfx.html.fadeOut(_537,_538,_539,function(){
if(dojo.lang.isArrayLike(_537)){
dojo.lang.forEach(_537,dojo.style.hide);
}else{
dojo.style.hide(_537);
}
if(_53a){
_53a(_537,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_53c,_53d,_53e,_53f){
_53c=dojo.lfx.html._byId(_53c);
var _540=[];
var init=function(node,_543){
if(_543=="visible"){
node.style.overflow="hidden";
}
dojo.style.show(node);
node.style.height=0;
};
dojo.lang.forEach(_53c,function(node){
var _545=dojo.style.getStyle(node,"overflow");
var _546=function(){
init(node,_545);
};
_546();
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:0,end:node.scrollHeight}],_53d,_53e);
dojo.event.connect(anim,"beforeBegin",_546);
dojo.event.connect(anim,"onEnd",function(){
node.style.overflow=_545;
node.style.height="auto";
if(_53f){
_53f(node,anim);
}
});
_540.push(anim);
});
if(_53c.length>1){
return dojo.lfx.combine(_540);
}else{
return _540[0];
}
};
dojo.lfx.html.wipeOut=function(_548,_549,_54a,_54b){
_548=dojo.lfx.html._byId(_548);
var _54c=[];
var init=function(node,_54f){
dojo.style.show(node);
if(_54f=="visible"){
node.style.overflow="hidden";
}
};
dojo.lang.forEach(_548,function(node){
var _551=dojo.style.getStyle(node,"overflow");
var _552=function(){
init(node,_551);
};
_552();
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:node.offsetHeight,end:0}],_549,_54a);
dojo.event.connect(anim,"beforeBegin",_552);
dojo.event.connect(anim,"onEnd",function(){
dojo.style.hide(node);
node.style.overflow=_551;
if(_54b){
_54b(node,anim);
}
});
_54c.push(anim);
});
if(_548.length>1){
return dojo.lfx.combine(_54c);
}else{
return _54c[0];
}
};
dojo.lfx.html.slideTo=function(_554,_555,_556,_557,_558){
_554=dojo.lfx.html._byId(_554);
var _559=[];
dojo.lang.forEach(_554,function(node){
var top=null;
var left=null;
var pos=null;
var init=(function(){
var _55f=node;
return function(){
top=node.offsetTop;
left=node.offsetLeft;
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;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:_555[0]},{property:"left",start:left,end:_555[1]}],_556,_557);
dojo.event.connect(anim,"beforeBegin",init);
if(_558){
dojo.event.connect(anim,"onEnd",function(){
_558(node,anim);
});
}
_559.push(anim);
});
if(_554.length>1){
return dojo.lfx.combine(_559);
}else{
return _559[0];
}
};
dojo.lfx.html.explode=function(_561,_562,_563,_564,_565){
var _566=dojo.style.toCoordinateArray(_561);
var _567=document.createElement("div");
with(_567.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_567);
_562=dojo.byId(_562);
with(_562.style){
visibility="hidden";
display="block";
}
var _568=dojo.style.toCoordinateArray(_562);
with(_562.style){
display="none";
visibility="visible";
}
var anim=new dojo.lfx.Animation({beforeBegin:function(){
dojo.style.setDisplay(_567,"block");
},onAnimate:function(_56a){
with(_567.style){
left=_56a[0]+"px";
top=_56a[1]+"px";
width=_56a[2]+"px";
height=_56a[3]+"px";
}
},onEnd:function(){
dojo.style.setDisplay(_562,"block");
_567.parentNode.removeChild(_567);
}},_563,new dojo.lfx.Line(_566,_568),_564);
if(_565){
dojo.event.connect(anim,"onEnd",function(){
_565(_562,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_56b,end,_56d,_56e,_56f){
var _570=dojo.style.toCoordinateArray(_56b);
var _571=dojo.style.toCoordinateArray(end);
_56b=dojo.byId(_56b);
var _572=document.createElement("div");
with(_572.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_572);
var anim=new dojo.lfx.Animation({beforeBegin:function(){
dojo.style.hide(_56b);
dojo.style.show(_572);
},onAnimate:function(_574){
with(_572.style){
left=_574[0]+"px";
top=_574[1]+"px";
width=_574[2]+"px";
height=_574[3]+"px";
}
},onEnd:function(){
_572.parentNode.removeChild(_572);
}},_56d,new dojo.lfx.Line(_570,_571),_56e);
if(_56f){
dojo.event.connect(anim,"onEnd",function(){
_56f(_56b,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_575,_576,_577,_578,_579){
_575=dojo.lfx.html._byId(_575);
var _57a=[];
dojo.lang.forEach(_575,function(node){
var _57c=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _57e=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_57c.length>3){
_57c.pop();
}
var rgb=new dojo.graphics.color.Color(_576);
var _580=new dojo.graphics.color.Color(_57c);
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:rgb,end:_580}],_577,_578);
dojo.event.connect(anim,"beforeBegin",function(){
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
});
dojo.event.connect(anim,"onEnd",function(){
if(_57e){
node.style.backgroundColor="transparent";
}
if(_579){
_579(node,anim);
}
});
_57a.push(anim);
});
if(_575.length>1){
return dojo.lfx.combine(_57a);
}else{
return _57a[0];
}
};
dojo.lfx.html.unhighlight=function(_582,_583,_584,_585,_586){
_582=dojo.lfx.html._byId(_582);
var _587=[];
dojo.lang.forEach(_582,function(node){
var _589=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node));
var rgb=new dojo.graphics.color.Color(_583);
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:_589,end:rgb}],_584,_585);
dojo.event.connect(anim,"beforeBegin",function(){
node.style.backgroundColor="rgb("+_589.toRgb().join(",")+")";
});
if(_586){
dojo.event.connect(anim,"onEnd",function(){
_586(node,anim);
});
}
_587.push(anim);
});
if(_582.length>1){
return dojo.lfx.combine(_587);
}else{
return _587[0];
}
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggle");
dojo.require("dojo.lfx.*");
dojo.lfx.toggle.plain={show:function(node,_58d,_58e,_58f){
dojo.style.show(node);
if(dojo.lang.isFunction(_58f)){
_58f();
}
},hide:function(node,_591,_592,_593){
dojo.style.hide(node);
if(dojo.lang.isFunction(_593)){
_593();
}
}};
dojo.lfx.toggle.fade={show:function(node,_595,_596,_597){
dojo.lfx.fadeShow(node,_595,_596,_597).play();
},hide:function(node,_599,_59a,_59b){
dojo.lfx.fadeHide(node,_599,_59a,_59b).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_59d,_59e,_59f){
dojo.lfx.wipeIn(node,_59d,_59e,_59f).play();
},hide:function(node,_5a1,_5a2,_5a3){
dojo.lfx.wipeOut(node,_5a1,_5a2,_5a3).play();
}};
dojo.lfx.toggle.explode={show:function(node,_5a5,_5a6,_5a7,_5a8){
dojo.lfx.explode(_5a8||[0,0,0,0],node,_5a5,_5a6,_5a7).play();
},hide:function(node,_5aa,_5ab,_5ac,_5ad){
dojo.lfx.implode(node,_5ad||[0,0,0,0],_5aa,_5ab,_5ac).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.DomWidget");
dojo.require("dojo.html");
dojo.require("dojo.html.extras");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.func");
dojo.require("dojo.lfx.toggle");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,toggle:"plain",toggleDuration:150,animationInProgress:false,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_5b2){
var ch=this.getContainerHeight();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_5b6){
try{
if(!_5b6){
dojo.event.browser.clean(this.domNode);
}
this.domNode.parentNode.removeChild(this.domNode);
delete this.domNode;
}
catch(e){
}
},isShowing:function(){
return dojo.style.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isHidden){
this.show();
}else{
this.hide();
}
},show:function(){
this.animationInProgress=true;
this.isHidden=false;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
},hide:function(){
this.animationInProgress=true;
this.isHidden=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
w=w||dojo.style.getOuterWidth(this.domNode);
h=h||dojo.style.getOuterHeight(this.domNode);
if(this.width==w&&this.height==h){
return false;
}
this.width=w;
this.height=h;
return true;
},onParentResized:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
if(!this._isResized(w,h)){
return;
}
dojo.style.setOuterWidth(this.domNode,w);
dojo.style.setOuterHeight(this.domNode,h);
this.onResized();
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_5bb){
_5bb.onParentResized();
});
}});
dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"]});
dojo.provide("dojo.widget.*");
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,_5bd,_5be,_5bf){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_5bd){
this.mimetype=_5bd;
}
if(_5be){
this.transport=_5be;
}
if(arguments.length>=4){
this.changeUrl=_5bf;
}
}
};
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(type,data,evt){
},error:function(type,_5c4){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_5c6){
if(_5c6["url"]){
_5c6.url=_5c6.url.toString();
}
if(_5c6["formNode"]){
_5c6.formNode=dojo.byId(_5c6.formNode);
}
if(!_5c6["method"]&&_5c6["formNode"]&&_5c6["formNode"].method){
_5c6.method=_5c6["formNode"].method;
}
if(!_5c6["handle"]&&_5c6["handler"]){
_5c6.handle=_5c6.handler;
}
if(!_5c6["load"]&&_5c6["loaded"]){
_5c6.load=_5c6.loaded;
}
if(!_5c6["changeUrl"]&&_5c6["changeURL"]){
_5c6.changeUrl=_5c6.changeURL;
}
_5c6.encoding=dojo.lang.firstValued(_5c6["encoding"],djConfig["bindEncoding"],"");
_5c6.sendTransport=dojo.lang.firstValued(_5c6["sendTransport"],djConfig["ioSendTransport"],false);
var _5c7=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_5c7(_5c6[fn])){
continue;
}
if(_5c7(_5c6["handle"])){
_5c6[fn]=_5c6.handle;
}
}
dojo.lang.mixin(this,_5c6);
}});
dojo.io.Error=function(msg,type,num){
this.message=msg;
this.type=type||"unknown";
this.number=num||0;
};
dojo.io.transports.addTransport=function(name){
this.push(name);
this[name]=dojo.io[name];
};
dojo.io.bind=function(_5ce){
if(!(_5ce instanceof dojo.io.Request)){
try{
_5ce=new dojo.io.Request(_5ce);
}
catch(e){
dojo.debug(e);
}
}
var _5cf="";
if(_5ce["transport"]){
_5cf=_5ce["transport"];
if(!this[_5cf]){
return _5ce;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_5ce))){
_5cf=tmp;
}
}
if(_5cf==""){
return _5ce;
}
}
this[_5cf].bind(_5ce);
_5ce.bindSuccess=true;
return _5ce;
};
dojo.io.queueBind=function(_5d2){
if(!(_5d2 instanceof dojo.io.Request)){
try{
_5d2=new dojo.io.Request(_5d2);
}
catch(e){
dojo.debug(e);
}
}
var _5d3=_5d2.load;
_5d2.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_5d3.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _5d5=_5d2.error;
_5d2.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_5d5.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_5d2);
dojo.io._dispatchNextQueueBind();
return _5d2;
};
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,_5d8,last){
var enc=/utf/i.test(_5d8||"")?encodeURIComponent:dojo.string.encodeAscii;
var _5db=[];
var _5dc=new Object();
for(var name in map){
var _5de=function(elt){
var val=enc(name)+"="+enc(elt);
_5db[(last==name)?"push":"unshift"](val);
};
if(!_5dc[name]){
var _5e1=map[name];
if(dojo.lang.isArray(_5e1)){
dojo.lang.forEach(_5e1,_5de);
}else{
_5de(_5e1);
}
}
}
return _5db.join("&");
};
dojo.io.setIFrameSrc=function(_5e2,src,_5e4){
try{
var r=dojo.render.html;
if(!_5e4){
if(r.safari){
_5e2.location=src;
}else{
frames[_5e2.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_5e2.contentWindow.document;
}else{
if(r.safari){
idoc=_5e2.document;
}else{
idoc=_5e2.contentWindow;
}
}
idoc.location.replace(src);
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
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 _5eb=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_5ed){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_5eb.apply(this,[_5ed]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _5ee=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_5f0){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_5ee){
_5ee.apply(this,[_5f0]);
}
};
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,_5f3){
var _5f4=this._getUrlQuery(_5f3.href);
if(_5f4==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_5f4==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_5f4==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
},handleBackButton:function(){
var _5f5=this.historyStack.pop();
if(!_5f5){
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(_5f5);
},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 _5f9=url.split("?");
if(_5f9.length<2){
return null;
}else{
return _5f9[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 _5fb=false;
var _5fc=node.getElementsByTagName("input");
dojo.lang.forEach(_5fc,function(_5fd){
if(_5fb){
return;
}
if(_5fd.getAttribute("type")=="file"){
_5fb=true;
}
});
return _5fb;
};
dojo.io.formHasFile=function(_5fe){
return dojo.io.checkChildrenForFile(_5fe);
};
dojo.io.updateNode=function(node,_600){
node=dojo.byId(node);
var args=_600;
if(dojo.lang.isString(_600)){
args={url:_600};
}
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(_607,_608,_609){
if((!_607)||(!_607.tagName)||(!_607.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_609){
_609=dojo.io.formFilter;
}
var enc=/utf/i.test(_608||"")?encodeURIComponent:dojo.string.encodeAscii;
var _60b=[];
for(var i=0;i<_607.elements.length;i++){
var elm=_607.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_609(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){
_60b.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_60b.push(name+"="+enc(elm.value));
}
}else{
_60b.push(name+"="+enc(elm.value));
}
}
}
var _611=_607.getElementsByTagName("input");
for(var i=0;i<_611.length;i++){
var _612=_611[i];
if(_612.type.toLowerCase()=="image"&&_612.form==_607&&_609(_612)){
var name=enc(_612.name);
_60b.push(name+"="+enc(_612.value));
_60b.push(name+".x=0");
_60b.push(name+".y=0");
}
}
return _60b.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 _618=form.getElementsByTagName("input");
for(var i=0;i<_618.length;i++){
var _619=_618[i];
if(_619.type.toLowerCase()=="image"&&_619.form==form){
this.connect(_619,"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 _620=false;
if(node.disabled||!node.name){
_620=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_620=node==this.clickedButton;
}else{
_620=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _620;
},connect:function(_621,_622,_623){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_621,_622,this,_623);
}else{
var fcn=dojo.lang.hitch(this,_623);
_621[_622]=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 _626=this;
var _627={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_629,_62a){
return url+"|"+_629+"|"+_62a.toLowerCase();
}
function addToCache(url,_62c,_62d,http){
_627[getCacheKey(url,_62c,_62d)]=http;
}
function getFromCache(url,_630,_631){
return _627[getCacheKey(url,_630,_631)];
}
this.clearCache=function(){
_627={};
};
function doLoad(_632,http,url,_635,_636){
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(_632.method.toLowerCase()=="head"){
var _638=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _638;
};
var _639=_638.split(/[\r\n]+/g);
for(var i=0;i<_639.length;i++){
var pair=_639[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_632.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_632.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_632.mimetype=="application/xml")||(_632.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_636){
addToCache(url,_635,_632.method,http);
}
_632[(typeof _632.load=="function")?"load":"handle"]("load",ret,http,_632);
}else{
var _63c=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_632[(typeof _632.error=="function")?"error":"handle"]("error",_63c,http,_632);
}
}
function setHeaders(http,_63e){
if(_63e["headers"]){
for(var _63f in _63e["headers"]){
if(_63f.toLowerCase()=="content-type"&&!_63e["contentType"]){
_63e["contentType"]=_63e["headers"][_63f];
}else{
http.setRequestHeader(_63f,_63e["headers"][_63f]);
}
}
}
}
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 _643=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_644){
return _643&&dojo.lang.inArray((_644["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_644["formNode"]&&dojo.io.formHasFile(_644["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_645){
if(!_645["url"]){
if(!_645["formNode"]&&(_645["backButton"]||_645["back"]||_645["changeUrl"]||_645["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(_645);
return true;
}
}
var url=_645.url;
var _647="";
if(_645["formNode"]){
var ta=_645.formNode.getAttribute("action");
if((ta)&&(!_645["url"])){
url=ta;
}
var tp=_645.formNode.getAttribute("method");
if((tp)&&(!_645["method"])){
_645.method=tp;
}
_647+=dojo.io.encodeForm(_645.formNode,_645.encoding,_645["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_645["file"]){
_645.method="post";
}
if(!_645["method"]){
_645.method="get";
}
if(_645.method.toLowerCase()=="get"){
_645.multipart=false;
}else{
if(_645["file"]){
_645.multipart=true;
}else{
if(!_645["multipart"]){
_645.multipart=false;
}
}
}
if(_645["backButton"]||_645["back"]||_645["changeUrl"]){
dojo.undo.browser.addToHistory(_645);
}
var _64a=_645["content"]||{};
if(_645.sendTransport){
_64a["dojo.transport"]="xmlhttp";
}
do{
if(_645.postContent){
_647=_645.postContent;
break;
}
if(_64a){
_647+=dojo.io.argsFromMap(_64a,_645.encoding);
}
if(_645.method.toLowerCase()=="get"||!_645.multipart){
break;
}
var t=[];
if(_647.length){
var q=_647.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(_645.file){
if(dojo.lang.isArray(_645.file)){
for(var i=0;i<_645.file.length;++i){
var o=_645.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=_645.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+"--","");
_647=t.join("\r\n");
}
}while(false);
var _650=_645["sync"]?false:true;
var _651=_645["preventCache"]||(this.preventCache==true&&_645["preventCache"]!=false);
var _652=_645["useCache"]==true||(this.useCache==true&&_645["useCache"]!=false);
if(!_651&&_652){
var _653=getFromCache(url,_647,_645.method);
if(_653){
doLoad(_645,_653,url,_647,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_645);
var _655=false;
if(_650){
var _656=this.inFlight.push({"req":_645,"http":http,"url":url,"query":_647,"useCache":_652,"startTime":_645.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_645.method.toLowerCase()=="post"){
http.open("POST",url,_650);
setHeaders(http,_645);
http.setRequestHeader("Content-Type",_645.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_645.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_647);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_645,{status:404},url,_647,_652);
}
}else{
var _657=url;
if(_647!=""){
_657+=(_657.indexOf("?")>-1?"&":"?")+_647;
}
if(_651){
_657+=(dojo.string.endsWithAny(_657,"?","&")?"":(_657.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_645.method.toUpperCase(),_657,_650);
setHeaders(http,_645);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_645,{status:404},url,_647,_652);
}
}
if(!_650){
doLoad(_645,http,url,_647,_652);
}
_645.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_659,days,path,_65c,_65d){
var _65e=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_65e=d.toGMTString();
}
_659=escape(_659);
document.cookie=name+"="+_659+";"+(_65e!=-1?" expires="+_65e+";":"")+(path?"path="+path:"")+(_65c?"; domain="+_65c:"")+(_65d?"; secure":"");
};
dojo.io.cookie.set=dojo.io.cookie.setCookie;
dojo.io.cookie.getCookie=function(name){
var idx=document.cookie.lastIndexOf(name+"=");
if(idx==-1){
return null;
}
value=document.cookie.substring(idx+name.length+1);
var end=value.indexOf(";");
if(end==-1){
end=value.length;
}
value=value.substring(0,end);
value=unescape(value);
return value;
};
dojo.io.cookie.get=dojo.io.cookie.getCookie;
dojo.io.cookie.deleteCookie=function(name){
dojo.io.cookie.setCookie(name,"-",0);
};
dojo.io.cookie.setObjectCookie=function(name,obj,days,path,_668,_669,_66a){
if(arguments.length==5){
_66a=_668;
_668=null;
_669=null;
}
var _66b=[],cookie,value="";
if(!_66a){
cookie=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!cookie){
cookie={};
}
for(var prop in obj){
if(prop==null){
delete cookie[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
cookie[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in cookie){
_66b.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_66b.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_668,_669);
};
dojo.io.cookie.getObjectCookie=function(name){
var _66e=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_66e={};
var _66f=cookie.split("&");
for(var i=0;i<_66f.length;i++){
var pair=_66f[i].split("=");
var _672=pair[1];
if(isNaN(_672)){
_672=unescape(pair[1]);
}
_66e[unescape(pair[0])]=_672;
}
}
return _66e;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _673=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_673=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.kwCompoundRequire({common:["dojo.io"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});
dojo.provide("dojo.io.*");
dojo.provide("dojo.widget.ContentPane");
dojo.provide("dojo.widget.html.ContentPane");
dojo.require("dojo.widget.*");
dojo.require("dojo.io.*");
dojo.require("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.ContentPane");
dojo.require("dojo.string");
dojo.require("dojo.string.extras");
dojo.require("dojo.style");
dojo.widget.html.ContentPane=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.html.ContentPane,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.html.ContentPane,{widgetType:"ContentPane",isContainer:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptScope:null,_remoteStyles:null,_callOnUnLoad:false,postCreate:function(args,frag,_676){
if(this.handler!=""){
this.setHandler(this.handler);
}
if(this.isShowing()||this.preload){
this.loadContents();
}
},show:function(){
if(this.refreshOnShow){
this.refresh();
}else{
this.loadContents();
}
dojo.widget.html.ContentPane.superclass.show.call(this);
},refresh:function(){
this.isLoaded=false;
this.loadContents();
},loadContents:function(){
if(this.isLoaded){
return;
}
this.isLoaded=true;
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.href!=""){
this._downloadExternalContent(this.href,this.cacheContent);
}
}
},setUrl:function(url){
this.href=url;
this.isLoaded=false;
if(this.preload||this.isShowing()){
this.loadContents();
}
},_downloadExternalContent:function(url,_679){
this._handleDefaults("Loading...","onDownloadStart");
var self=this;
dojo.io.bind({url:url,useCache:_679,preventCache:!_679,mimetype:"text/html",handler:function(type,data,e){
if(type=="load"){
self.onDownloadEnd.call(self,url,data);
}else{
self._handleDefaults.call(self,"Error loading '"+url+"' ("+e.status+" "+e.statusText+")","onDownloadError");
self.onLoad();
}
}});
},onLoad:function(e){
},onUnLoad:function(e){
this.scriptScope=null;
},destroy:function(){
this.onUnLoad();
dojo.widget.html.ContentPane.superclass.destroy.call(this);
},onExecError:function(e){
},onContentError:function(e){
},onDownloadError:function(e){
},onDownloadStart:function(e){
},onDownloadEnd:function(url,data){
data=this.splitAndFixPaths(data,url);
this.setContent(data);
},_handleDefaults:function(e,_687,_688){
if(!_687){
_687="onContentError";
}
if(dojo.lang.isString(e)){
e={"text":e,"toString":function(){
return this.text;
}};
}
if(typeof e.returnValue!="boolean"){
e.returnValue=true;
}
if(typeof e.preventDefault!="function"){
e.preventDefault=function(){
this.returnValue=false;
};
}
this[_687](e);
if(e.returnValue){
if(_688){
alert(e.toString());
}else{
if(this._callOnUnLoad){
this.onUnLoad();
}
this._callOnUnLoad=false;
this._setContent(e.toString());
}
}
},splitAndFixPaths:function(s,url){
if(!url){
url="./";
}
if(!s){
return "";
}
var _68b=[];
var _68c=[];
var _68d=[];
var _68e=[];
var _68f=[];
var _690=[];
var _691=[];
while(_691){
_691=s.match(/<title[^>]*>([\s\S]*?)<\/title>/i);
if(!_691){
break;
}
_68b.push(_691[1]);
s=s.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"");
}
var _691=[];
while(_691){
_691=s.match(/<style[^>]*>([\s\S]*?)<\/style>/i);
if(!_691){
break;
}
_68e.push(dojo.style.fixPathsInCssText(_691[1],url));
s=s.replace(/<style[^>]*?>[\s\S]*?<\/style>/i,"");
}
var pos=0;
var pos2=0;
var stop=0;
var str="";
var _696="";
var attr=[];
var fix="";
var _699="";
var tag="";
var _69b="";
while(pos>-1){
pos=s.search(/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i);
if(pos==-1){
break;
}
str+=s.substring(0,pos);
s=s.substring(pos,s.length);
tag=s.match(/^<[a-z][a-z0-9]*[^>]*>/i)[0];
s=s.substring(tag.length,s.length);
pos2=0;
_699="";
fix="";
_69b="";
var _69c=0;
while(pos2!=-1){
_699+=tag.substring(0,pos2)+fix;
tag=tag.substring(pos2+_69c,tag.length);
attr=tag.match(/ (src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i);
if(!attr){
break;
}
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(attr[3].search(/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/)==-1){
_696=(new dojo.uri.Uri(url,attr[3]).toString());
}else{
pos2=pos2+attr[3].length;
continue;
}
break;
case "style":
_696=dojo.style.fixPathsInCssText(attr[3],url);
break;
default:
pos2=pos2+attr[3].length;
continue;
}
_69b=" "+attr[1]+"="+attr[2]+attr[3]+attr[2];
_69c=_69b.length;
fix=" "+attr[1]+"="+attr[2]+_696+attr[2];
pos2=tag.search(new RegExp(dojo.string.escapeRegExp(_69b)));
}
str+=_699+tag;
pos=0;
}
s=str+s;
_691=[];
var tmp=[];
while(_691){
_691=s.match(/<script([^>]*)>([\s\S]*?)<\/script>/i);
if(!_691){
break;
}
if(_691[1]){
attr=_691[1].match(/src=(['"]?)([^"']*)\1/i);
if(attr){
var tmp=attr[2].search(/.*(\bdojo\b(?:\.uncompressed)?\.js)$/);
if(tmp>-1){
dojo.debug("Security note! inhibit:"+attr[2]+" from  beeing loaded again.");
}else{
_68f.push(attr[2]);
}
}
}
if(_691[2]){
var sc=_691[2].replace(/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g,"");
if(!sc){
continue;
}
tmp=[];
while(tmp&&_690.length<100){
tmp=sc.match(/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix))\((['"]).*?\1\)\s*;?/);
if(!tmp){
break;
}
_690.push(tmp[0]);
sc=sc.replace(tmp[0],"");
}
_68c.push(sc);
}
s=s.replace(/<script[^>]*>[\s\S]*?<\/script>/i,"");
}
if(this.executeScripts){
var _69b=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*\S=(['"])[^>]*[^\.\]])scriptScope([^>]*>)/;
var pos=0;
var str="";
_691=[];
var cit="";
while(pos>-1){
pos=s.search(_69b);
if(pos>-1){
cit=((RegExp.$2=="'")?"\"":"'");
str+=s.substring(0,pos);
s=s.substr(pos).replace(_69b,"$1dojo.widget.byId("+cit+this.widgetId+cit+").scriptScope$3");
}
}
s=str+s;
}
_691=[];
while(_691){
_691=s.match(/<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>/i);
if(!_691){
break;
}
attr=_691[1].match(/href=(['"]?)([^'">]*)\1/i);
if(attr){
_68d.push(attr[2]);
}
s=s.replace(new RegExp(_691[0]),"");
}
return {"xml":s,"styles":_68e,"linkStyles":_68d,"titles":_68b,"requires":_690,"scripts":_68c,"remoteScripts":_68f,"url":url};
},_setContent:function(xml){
this.destroyChildren();
if(this._remoteStyles){
for(var i=0;i<this._remoteStyles.length;i++){
if(this._remoteStyles[i]&&this._remoteStyles.parentNode){
this._remoteStyles[i].parentNode.removeChild(this._remoteStyles[i]);
}
}
this._remoteStyles=null;
}
var node=this.containerNode||this.domNode;
try{
if(typeof xml!="string"){
node.innerHTML="";
node.appendChild(xml);
}else{
node.innerHTML=xml;
}
}
catch(e){
e="Could'nt load html:"+e;
this._handleDefaults(e,"onContentError");
}
},setContent:function(data){
if(this._callOnUnLoad){
this.onUnLoad();
}
this._callOnUnLoad=true;
if(!data||dojo.dom.isNode(data)){
this._setContent(data);
}else{
if(!data.xml){
data=this.splitAndFixPaths(data);
}
if(this.extractContent){
var _6a4=data.xml.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_6a4){
data.xml=_6a4[1];
}
}
for(var i=0;i<data.styles.length;i++){
if(i==0){
this._remoteStyles=[];
}
this._remoteStyles.push(dojo.style.insertCssText(data.styles[i]));
}
for(var i=0;i<data.linkStyles.length;i++){
if(i==0){
this._remoteStyles=[];
}
this._remoteStyles.push(dojo.style.insertCssFile(data.linkStyles[i]));
}
this._setContent(data.xml);
if(this.parseContent){
for(var i=0;i<data.requires.length;i++){
try{
eval(data.requires[i]);
}
catch(e){
this._handleDefaults(e,"onContentError",true);
}
}
var node=this.containerNode||this.domNode;
var _6a7=new dojo.xml.Parse();
var frag=_6a7.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,this);
}
if(this.executeScripts){
this._executeScripts(data);
}
}
this.onResized();
this.onLoad();
},setHandler:function(_6a9){
var fcn=dojo.lang.isFunction(_6a9)?_6a9:window[_6a9];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_6a9+"' not a function.","onExecError",true);
return;
}
this.handler=function(){
return fcn.apply(this,arguments);
};
},_runHandler:function(){
if(dojo.lang.isFunction(this.handler)){
this.handler(this,this.domNode);
return false;
}
return true;
},_executeScripts:function(data){
var self=this;
for(var i=0;i<data.remoteScripts.length;i++){
dojo.io.bind({"url":data.remoteScripts[i],"useCash":this.cacheContent,"load":function(type,_6af){
dojo.lang.hitch(self,data.scripts.push(_6af));
},"error":function(type,_6b1){
self._handleDefaults.call(self,type+" downloading remote script","onExecError",true);
},"mimetype":"text/plain","sync":true});
}
var _6b2="";
for(var i=0;i<data.scripts.length;i++){
_6b2+=data.scripts[i];
}
this.scriptScope=null;
this.scriptScope=new (new Function("_container_",_6b2+"; return this;"))(self);
try{
}
catch(e){
this._handleDefaults("Error running scripts from content:\n"+e,"onExecError",true);
}
}});
dojo.widget.tags.addParseTreeHandler("dojo:ContentPane");
dojo.provide("dojo.widget.html.Tooltip");
dojo.require("dojo.widget.html.ContentPane");
dojo.require("dojo.widget.Tooltip");
dojo.require("dojo.uri");
dojo.require("dojo.widget.*");
dojo.require("dojo.event");
dojo.require("dojo.style");
dojo.require("dojo.html");
dojo.widget.html.Tooltip=function(){
dojo.widget.Tooltip.call(this);
dojo.widget.html.ContentPane.call(this);
};
dojo.inherits(dojo.widget.html.Tooltip,dojo.widget.html.ContentPane);
dojo.lang.extend(dojo.widget.html.Tooltip,{caption:"",showDelay:500,hideDelay:100,connectId:"",templatePath:dojo.uri.dojoUri("src/widget/templates/HtmlTooltipTemplate.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/HtmlTooltipTemplate.css"),connectNode:null,state:"erased",fillInTemplate:function(args,frag){
if(this.caption!=""){
this.domNode.appendChild(document.createTextNode(this.caption));
}
this.connectNode=dojo.byId(this.connectId);
dojo.widget.html.Tooltip.superclass.fillInTemplate.call(this,args,frag);
},postCreate:function(args,frag){
document.body.appendChild(this.domNode);
dojo.event.connect(this.connectNode,"onmouseover",this,"onMouseOver");
dojo.widget.html.Tooltip.superclass.postCreate.call(this,args,frag);
},onMouseOver:function(e){
this.mouse={x:e.pageX,y:e.pageY};
if(!this.showTimer){
this.showTimer=setTimeout(dojo.lang.hitch(this,"show"),this.showDelay);
dojo.event.connect(document.documentElement,"onmousemove",this,"onMouseMove");
}
},onMouseMove:function(e){
this.mouse={x:e.pageX,y:e.pageY};
if(dojo.html.overElement(this.connectNode,e)||dojo.html.overElement(this.domNode,e)){
if(this.hideTimer){
clearTimeout(this.hideTimer);
delete this.hideTimer;
}
}else{
if(this.showTimer){
clearTimeout(this.showTimer);
delete this.showTimer;
}
if((this.state=="displaying"||this.state=="displayed")&&!this.hideTimer){
this.hideTimer=setTimeout(dojo.lang.hitch(this,"hide"),this.hideDelay);
}
}
},show:function(){
if(this.state=="erasing"){
this.displayScheduled=true;
return;
}
if(this.state=="displaying"||this.state=="displayed"){
return;
}
if(!this.bgIframe){
this.bgIframe=new dojo.html.BackgroundIframe(this.domNode);
}
this.position();
this.explodeSrc=[this.mouse.x,this.mouse.y];
this.state="displaying";
dojo.widget.html.Tooltip.superclass.show.call(this);
},onShow:function(){
dojo.widget.html.Tooltip.superclass.onShow.call(this);
this.state="displayed";
if(this.eraseScheduled){
this.hide();
this.eraseScheduled=false;
}
},hide:function(){
if(this.state=="displaying"){
this.eraseScheduled=true;
return;
}
if(this.state=="displayed"){
this.state="erasing";
if(this.showTimer){
clearTimeout(this.showTimer);
delete this.showTimer;
}
if(this.hideTimer){
clearTimeout(this.hideTimer);
delete this.hideTimer;
}
dojo.event.disconnect(document.documentElement,"onmousemove",this,"onMouseMove");
dojo.widget.html.Tooltip.superclass.hide.call(this);
}
},onHide:function(){
this.state="erased";
if(this.displayScheduled){
this.display();
this.displayScheduled=false;
}
},position:function(){
dojo.html.placeOnScreenPoint(this.domNode,this.mouse.x,this.mouse.y,[10,15],true);
this.bgIframe.onResized();
},onLoad:function(){
dojo.lang.setTimeout(this,this.position,50);
dojo.widget.html.Tooltip.superclass.onLoad.apply(this,arguments);
},onParentResized:function(){
}});

