/*
	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.
*/

if(typeof dojo=="undefined"){
var dj_global=this;
function dj_undef(_1,_2){
if(_2==null){
_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:0,patch:0,flag:"dev",revision:Number("$Rev: 4342 $".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!=null?_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);
}
var _f=dojo.parseObjPath(_d,dj_global,_e);
if(_f){
return dojo.evalProp(_f.prop,_f.obj,_e);
}
return null;
};
dojo.errorToString=function(_10){
if(!dj_undef("message",_10)){
return _10.message;
}else{
if(!dj_undef("description",_10)){
return _10.description;
}else{
return _10;
}
}
};
dojo.raise=function(_11,_12){
if(_12){
_11=_11+": "+dojo.errorToString(_12);
}
try{
dojo.hostenv.println("FATAL: "+_11);
}
catch(e){
}
throw Error(_11);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_14){
return dj_global.eval?dj_global.eval(_14):eval(_14);
}
dojo.unimplemented=function(_15,_16){
var _17="'"+_15+"' not implemented";
if(_16!=null){
_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 _21 in _1f){
tmp[_21]=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:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _27){
dojo.hostenv[_2c]=_27[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if((_2d.charAt(0)=="/")||(_2d.match(/^\w+:/))){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_2e)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return 1;
}
var _33=this.getText(uri,null,true);
if(_33==null){
return 0;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_36,false)))?true:false;
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if((this.loadUriStack.length==0)&&(this.getTextStack.length==0)){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length-1;i>0;i--){
var _45=_43.slice(0,i).join(".");
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=this.getModuleSymbols(_47);
var _4d=((_4c[0].charAt(0)!="/")&&(!_4c[0].match(/^\w+:/)));
var _4e=_4c[_4c.length-1];
var _4f=_47.split(".");
if(_4e=="*"){
_47=(_4f.slice(0,-1)).join(".");
while(_4c.length){
_4c.pop();
_4c.push(this.pkgFileName);
_4b=_4c.join("/")+".js";
if(_4d&&(_4b.charAt(0)=="/")){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
}
}else{
_4b=_4c.join("/")+".js";
_47=_4f.join(".");
var ok=this.loadPath(_4b,((!_49)?_47:null));
if((!ok)&&(!_48)){
_4c.pop();
while(_4c.length){
_4b=_4c.join("/")+".js";
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
_4b=_4c.join("/")+"/"+this.pkgFileName+".js";
if(_4d&&(_4b.charAt(0)=="/")){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_49)){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_51){
var _52=dojo.evalObjPath((_51.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_51)).toLowerCase()]=_52;
var _53=_51.split(/\./);
if(_53[_53.length-1]=="*"){
_53.pop();
}
return dojo.evalObjPath(_53.join("."),true);
};
dojo.hostenv.findModule=function(_54,_55){
var lmn=(new String(_54)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _57=dojo.evalObjPath(_54);
if((_54)&&(typeof _57!="undefined")&&(_57)){
this.loaded_modules_[lmn]=_57;
return _57;
}
if(_55){
dojo.raise("no loaded module named '"+_54+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_58){
var _59=_58["common"]||[];
var _5a=(_58[dojo.hostenv.name_])?_59.concat(_58[dojo.hostenv.name_]||[]):_59.concat(_58["default"]||[]);
for(var x=0;x<_5a.length;x++){
var _5c=_5a[x];
if(_5c.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5c);
}else{
dojo.hostenv.loadModule(_5c);
}
}
};
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 _5d=[];
for(var i=1;i<arguments.length;i++){
_5d.push(arguments[i]);
}
dojo.require.apply(dojo,_5d);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_5f,_60){
return dojo.hostenv.setModulePrefix(_5f,_60);
};
dojo.exists=function(obj,_62){
var p=_62.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 _65=document.location.toString();
var _66=_65.split("?",2);
if(_66.length>1){
var _67=_66[1];
var _68=_67.split("&");
for(var x in _68){
var sp=_68[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 _6c=document.getElementsByTagName("script");
var _6d=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_6c.length;i++){
var src=_6c[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_6d);
if(m){
var _71=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_71+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_71;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_71;
}
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 _79=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_79>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_79+6,_79+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;
drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;
dojo.locale=(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _7a=null;
var _7b=null;
try{
_7a=new XMLHttpRequest();
}
catch(e){
}
if(!_7a){
for(var i=0;i<3;++i){
var _7d=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_7a=new ActiveXObject(_7d);
}
catch(e){
_7b=e;
}
if(_7a){
dojo.hostenv._XMLHTTP_PROGIDS=[_7d];
break;
}
}
}
if(!_7a){
return dojo.raise("XMLHTTP not available",_7b);
}
return _7a;
};
dojo.hostenv.getText=function(uri,_7f,_80){
var _81=this.getXmlhttpObject();
if(_7f){
_81.onreadystatechange=function(){
if(4==_81.readyState){
if((!_81["status"])||((200<=_81.status)&&(300>_81.status))){
_7f(_81.responseText);
}
}
};
}
_81.open("GET",uri,_7f?true:false);
try{
_81.send(null);
if(_7f){
return null;
}
if((_81["status"])&&((200>_81.status)||(300<=_81.status))){
throw Error("Unable to load "+uri+" status:"+_81.status);
}
}
catch(e){
if((_80)&&(!_7f)){
return null;
}else{
throw e;
}
}
return _81.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_82){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_82);
}else{
try{
var _83=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_83){
_83=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_82));
_83.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_82+"</div>");
}
catch(e2){
window.status=_82;
}
}
}
};
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(_85,_86,fp,_88){
var _89=_85["on"+_86]||function(){
};
_85["on"+_86]=function(){
fp.apply(_85,arguments);
_89.apply(_85,arguments);
};
return true;
}
dj_addNodeEvtHdlr(window,"load",function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
var _8a=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_8a();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_8a);
}
});
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
});
dojo.hostenv.makeWidgets=function(){
var _8b=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_8b=_8b.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_8b=_8b.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_8b.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _8c=new dojo.xml.Parse();
if(_8b.length>0){
for(var x=0;x<_8b.length;x++){
var _8e=document.getElementById(_8b[x]);
if(!_8e){
continue;
}
var _8f=_8c.parseElement(_8e,null,true);
dojo.widget.getParser().createComponents(_8f);
}
}else{
if(djConfig.parseWidgets){
var _8f=_8c.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_8f);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.write("<style>v:*{ behavior:url(#default#VML); }</style>");
document.write("<xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
dojo.byId=function(id,doc){
if(id&&(typeof id=="string"||id instanceof String)){
if(!doc){
doc=document;
}
return doc.getElementById(id);
}
return id;
};
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _92=false;
var _93=false;
var _94=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_92=true;
}else{
if(typeof this["load"]=="function"){
_93=true;
}else{
if(window.widget){
_94=true;
}
}
}
var _95=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_95.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_92)&&(!_94)){
_95.push("browser_debug.js");
}
if((this["djConfig"])&&(djConfig["compat"])){
_95.push("compat/"+djConfig["compat"]+".js");
}
var _96=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_96=djConfig["baseLoaderUri"];
}
for(var x=0;x<_95.length;x++){
var _98=_96+"src/"+_95[x];
if(_92||_93){
load(_98);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_98+"'></scr"+"ipt>");
}
catch(e){
var _99=document.createElement("script");
_99.src=_98;
document.getElementsByTagName("head")[0].appendChild(_99);
}
}
}
})();
dojo.fallback_locale="en";
dojo.normalizeLocale=function(_9a){
return _9a?_9a.toLowerCase():dojo.locale;
};
dojo.requireLocalization=function(_9b,_9c,_9d){
dojo.debug("EXPERIMENTAL: dojo.requireLocalization");
var _9e=dojo.hostenv.getModuleSymbols(_9b);
var _9f=_9e.concat("nls").join("/");
_9d=dojo.normalizeLocale(_9d);
var _a0=_9d.split("-");
var _a1=[];
for(var i=_a0.length;i>0;i--){
_a1.push(_a0.slice(0,i).join("-"));
}
if(_a1[_a1.length-1]!=dojo.fallback_locale){
_a1.push(dojo.fallback_locale);
}
var _a3=[_9b,"_nls",_9c].join(".");
var _a4=dojo.hostenv.startPackage(_a3);
dojo.hostenv.loaded_modules_[_a3]=_a4;
var _a5=false;
for(var i=_a1.length-1;i>=0;i--){
var loc=_a1[i];
var pkg=[_a3,loc].join(".");
var _a8=false;
if(!dojo.hostenv.findModule(pkg)){
dojo.hostenv.loaded_modules_[pkg]=null;
var _a9=[_9f,loc,_9c].join("/")+".js";
_a8=dojo.hostenv.loadPath(_a9,null,function(_aa){
_a4[loc]=_aa;
if(_a5){
for(var x in _a5){
if(!_a4[loc][x]){
_a4[loc][x]=_a5[x];
}
}
}
});
}else{
_a8=true;
}
if(_a8&&_a4[loc]){
_a5=_a4[loc];
}
}
};
dojo.provide("dojo.lang.common");
dojo.lang._mixin=function(obj,_ad){
var _ae={};
for(var x in _ad){
if(typeof _ae[x]=="undefined"||_ae[x]!=_ad[x]){
obj[x]=_ad[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_ad["toString"])&&_ad["toString"]!=obj["toString"]){
obj.toString=_ad.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_b1){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_b3,_b4){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_b3.prototype,arguments[i]);
}
return _b3;
};
dojo.lang.find=function(arr,val,_b8,_b9){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _bb=dojo.lang.isString(arr);
if(_bb){
arr=arr.split("");
}
if(_b9){
var _bc=-1;
var i=arr.length-1;
var end=-1;
}else{
var _bc=1;
var i=0;
var end=arr.length;
}
if(_b8){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_bc;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_bc;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_c1){
return dojo.lang.find(arr,val,_c1,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(arr,val){
return dojo.lang.find(arr,val)>-1;
};
dojo.lang.isObject=function(wh){
if(typeof wh=="undefined"){
return false;
}
return (typeof wh=="object"||wh===null||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh));
};
dojo.lang.isArray=function(wh){
return (wh instanceof Array||typeof wh=="array");
};
dojo.lang.isArrayLike=function(wh){
if(dojo.lang.isString(wh)){
return false;
}
if(dojo.lang.isFunction(wh)){
return false;
}
if(dojo.lang.isArray(wh)){
return true;
}
if(typeof wh!="undefined"&&wh&&dojo.lang.isNumber(wh.length)&&isFinite(wh.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(wh){
if(!wh){
return false;
}
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
if(!wh){
return false;
}
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh));
};
dojo.lang.isBoolean=function(wh){
return (wh instanceof Boolean||typeof wh=="boolean");
};
dojo.lang.isNumber=function(wh){
return (wh instanceof Number||typeof wh=="number");
};
dojo.lang.isUndefined=function(wh){
return ((wh==undefined)&&(typeof wh=="undefined"));
};
dojo.provide("dojo.lang.array");
dojo.lang.has=function(obj,_ce){
try{
return (typeof obj[_ce]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _d1=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_d1++;
break;
}
}
return (_d1==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_d5){
var _d6=dojo.lang.isString(arr);
if(_d6){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_d5)){
_d5=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_d5){
var _d7=obj;
obj=_d5;
_d5=_d7;
}
}
if(Array.map){
var _d8=Array.map(arr,_d5,obj);
}else{
var _d8=[];
for(var i=0;i<arr.length;++i){
_d8.push(_d5.call(obj,arr[i]));
}
}
if(_d6){
return _d8.join("");
}else{
return _d8;
}
};
dojo.lang.forEach=function(_da,_db,_dc){
if(dojo.lang.isString(_da)){
_da=_da.split("");
}
if(Array.forEach){
Array.forEach(_da,_db,_dc);
}else{
if(!_dc){
_dc=dj_global;
}
for(var i=0,l=_da.length;i<l;i++){
_db.call(_dc,_da[i],i,_da);
}
}
};
dojo.lang._everyOrSome=function(_de,arr,_e0,_e1){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_de)?"every":"some"](arr,_e0,_e1);
}else{
if(!_e1){
_e1=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _e3=_e0.call(_e1,arr[i],i,arr);
if((_de)&&(!_e3)){
return false;
}else{
if((!_de)&&(_e3)){
return true;
}
}
}
return (_de)?true:false;
}
};
dojo.lang.every=function(arr,_e5,_e6){
return this._everyOrSome(true,arr,_e5,_e6);
};
dojo.lang.some=function(arr,_e8,_e9){
return this._everyOrSome(false,arr,_e8,_e9);
};
dojo.lang.filter=function(arr,_eb,_ec){
var _ed=dojo.lang.isString(arr);
if(_ed){
arr=arr.split("");
}
if(Array.filter){
var _ee=Array.filter(arr,_eb,_ec);
}else{
if(!_ec){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_ec=dj_global;
}
var _ee=[];
for(var i=0;i<arr.length;i++){
if(_eb.call(_ec,arr[i],i,arr)){
_ee.push(arr[i]);
}
}
}
if(_ed){
return _ee.join("");
}else{
return _ee;
}
};
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(_f3,_f4){
var _f5=[];
for(var i=_f4||0;i<_f3.length;i++){
_f5.push(_f3[i]);
}
return _f5;
};
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(_f7,_f8){
var _f9=window,argsStart=2;
if(!dojo.lang.isFunction(_f7)){
_f9=_f7;
_f7=_f8;
_f8=arguments[2];
argsStart++;
}
if(dojo.lang.isString(_f7)){
_f7=_f9[_f7];
}
var _fa=[];
for(var i=argsStart;i<arguments.length;i++){
_fa.push(arguments[i]);
}
return setTimeout(function(){
_f7.apply(_f9,_fa);
},_f8);
};
dojo.lang.getNameInObj=function(ns,_fd){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===_fd){
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(_102,_103,_104){
with(dojo.parseObjPath(_102,_103,_104)){
return dojo.evalProp(prop,obj,_104);
}
};
dojo.lang.setObjPathValue=function(_105,_106,_107,_108){
if(arguments.length<4){
_108=true;
}
with(dojo.parseObjPath(_105,_107,_108)){
if(obj&&(_108||(prop in obj))){
obj[prop]=_106;
}
}
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_109,_10a){
if(dojo.lang.isString(_10a)){
var fcn=_109[_10a];
}else{
var fcn=_10a;
}
return function(){
return fcn.apply(_109,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_10c,_10d,_10e){
var nso=(_10d||dojo.lang.anon);
if((_10e)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
if(nso[x]===_10c){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_10c;
return ret;
};
dojo.lang.forward=function(_112){
return function(){
return this[_112].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _115=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_115.push(arguments[x]);
}
var _117=(func["__preJoinArity"]||func.length)-_115.length;
function gather(_118,_119,_11a){
var _11b=_11a;
var _11c=_119.slice(0);
for(var x=0;x<_118.length;x++){
_11c.push(_118[x]);
}
_11a=_11a-_118.length;
if(_11a<=0){
var res=func.apply(ns,_11c);
_11a=_11b;
return res;
}else{
return function(){
return gather(arguments,_11c,_11a);
};
}
}
return gather([],_115,_117);
};
dojo.lang.curryArguments=function(ns,func,args,_122){
var _123=[];
var x=_122||0;
for(x=_122;x<args.length;x++){
_123.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_123));
};
dojo.lang.tryThese=function(){
for(var x=0;x<arguments.length;x++){
try{
if(typeof arguments[x]=="function"){
var ret=(arguments[x]());
if(ret){
return ret;
}
}
}
catch(e){
dojo.debug(e);
}
}
};
dojo.lang.delayThese=function(farr,cb,_129,_12a){
if(!farr.length){
if(typeof _12a=="function"){
_12a();
}
return;
}
if((typeof _129=="undefined")&&(typeof cb=="number")){
_129=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_129){
_129=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_129,_12a);
},_129);
};
dojo.provide("dojo.event");
dojo.event=new function(){
this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_12c){
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 _12f=dl.nameAnonFunc(args[2],ao.adviceObj,_12c);
ao.adviceFunc=_12f;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _12f=dl.nameAnonFunc(args[0],ao.srcObj,_12c);
ao.srcFunc=_12f;
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 _12f=dl.nameAnonFunc(args[1],dj_global,_12c);
ao.srcFunc=_12f;
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 _12f=dl.nameAnonFunc(args[3],dj_global,_12c);
ao.adviceObj=dj_global;
ao.adviceFunc=_12f;
}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 _12f=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_12c);
ao.aroundFunc=_12f;
}
if(dl.isFunction(ao.srcFunc)){
ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(dl.isFunction(ao.adviceFunc)){
ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){
ao.aroundFunc=dl.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,true);
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _131={};
for(var x in ao){
_131[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);
}
_131.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_131));
});
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 _139;
if((arguments.length==1)&&(typeof a1=="object")){
_139=a1;
}else{
_139={srcObj:a1,srcFunc:a2};
}
_139.adviceFunc=function(){
var _13a=[];
for(var x=0;x<arguments.length;x++){
_13a.push(arguments[x]);
}
dojo.debug("("+_139.srcObj+")."+_139.srcFunc,":",_13a.join(", "));
};
this.kwConnect(_139);
};
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,true);
ao.once=true;
return this.connect(ao);
};
this._kwConnectImpl=function(_141,_142){
var fn=(_142)?"disconnect":"connect";
if(typeof _141["srcFunc"]=="function"){
_141.srcObj=_141["srcObj"]||dj_global;
var _144=dojo.lang.nameAnonFunc(_141.srcFunc,_141.srcObj,true);
_141.srcFunc=_144;
}
if(typeof _141["adviceFunc"]=="function"){
_141.adviceObj=_141["adviceObj"]||dj_global;
var _144=dojo.lang.nameAnonFunc(_141.adviceFunc,_141.adviceObj,true);
_141.adviceFunc=_144;
}
return dojo.event[fn]((_141["type"]||_141["adviceType"]||"after"),_141["srcObj"]||dj_global,_141["srcFunc"],_141["adviceObj"]||_141["targetObj"]||dj_global,_141["adviceFunc"]||_141["targetFunc"],_141["aroundObj"],_141["aroundFunc"],_141["once"],_141["delay"],_141["rate"],_141["adviceMsg"]||false);
};
this.kwConnect=function(_145){
return this._kwConnectImpl(_145,false);
};
this.disconnect=function(){
var ao=interpolateArgs(arguments,true);
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(_148){
return this._kwConnectImpl(_148,true);
};
};
dojo.event.MethodInvocation=function(_149,obj,args){
this.jp_=_149;
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,_151){
this.object=obj||dj_global;
this.methodname=_151;
this.methodfunc=this.object[_151];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_153){
if(!obj){
obj=dj_global;
}
if(!obj[_153]){
obj[_153]=function(){
};
if(!obj[_153]){
dojo.raise("Cannot set do-nothing method on that object "+_153);
}
}else{
if((!dojo.lang.isFunction(obj[_153]))&&(!dojo.lang.isAlien(obj[_153]))){
return null;
}
}
var _154=_153+"$joinpoint";
var _155=_153+"$joinpoint$method";
var _156=obj[_154];
if(!_156){
var _157=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_157=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_154,_155,_153]);
}
}
var _158=obj[_153].length;
obj[_155]=obj[_153];
_156=obj[_154]=new dojo.event.MethodJoinPoint(obj,_155);
obj[_153]=function(){
var args=[];
if((_157)&&(!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)&&(_157)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _156.run.apply(_156,args);
};
obj[_153].__preJoinArity=_158;
}
return _156;
};
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 _15e=[];
for(var x=0;x<args.length;x++){
_15e[x]=args[x];
}
var _160=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _162=marr[0]||dj_global;
var _163=marr[1];
if(!_162[_163]){
dojo.raise("function \""+_163+"\" does not exist on \""+_162+"\"");
}
var _164=marr[2]||dj_global;
var _165=marr[3];
var msg=marr[6];
var _167;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _162[_163].apply(_162,to.args);
}};
to.args=_15e;
var _169=parseInt(marr[4]);
var _16a=((!isNaN(_169))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _16d=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;
_160(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_165){
_164[_165].call(_164,to);
}else{
if((_16a)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_162[_163].call(_162,to);
}else{
_162[_163].apply(_162,args);
}
},_169);
}else{
if(msg){
_162[_163].call(_162,to);
}else{
_162[_163].apply(_162,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_160);
}
var _170;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_170=mi.proceed();
}else{
if(this.methodfunc){
_170=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_160);
}
return (this.methodfunc)?_170: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(_175,_176,_177,_178,_179,_17a,once,_17c,rate,_17e){
var arr=this.getArr(_179);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_175,_176,_177,_178,_17c,rate,_17e];
if(once){
if(this.hasAdvice(_175,_176,_179,arr)>=0){
return;
}
}
if(_17a=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_181,_182,_183,arr){
if(!arr){
arr=this.getArr(_183);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _182=="object")?(new String(_182)).toString():_182;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_181)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_189,_18a,_18b,once){
var arr=this.getArr(_18b);
var ind=this.hasAdvice(_189,_18a,_18b,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_189,_18a,_18b,arr);
}
return true;
}});
dojo.provide("dojo.graphics.color");
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(_195){
if(_195){
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(_196,_197){
return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_196).toRgb(),_197);
}});
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,_19a){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_19a);
}
if(!_19a){
_19a=0;
}else{
if(_19a>1){
_19a=1;
}else{
if(_19a<-1){
_19a=-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*_19a));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_1a0){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_1a0));
};
dojo.graphics.color.extractRGB=function(_1a1){
var hex="0123456789abcdef";
_1a1=_1a1.toLowerCase();
if(_1a1.indexOf("rgb")==0){
var _1a3=_1a1.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_1a3.splice(1,3);
return ret;
}else{
var _1a5=dojo.graphics.color.hex2rgb(_1a1);
if(_1a5){
return _1a5;
}else{
return dojo.graphics.color.named[_1a1]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _1a7="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_1a7+"]","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]=_1a7.indexOf(rgb[i].charAt(0))*16+_1a7.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.graphics.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.joinPath=function(){
var arr=[];
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i]);
}
return arr.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/");
};
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _1b5=new dojo.uri.Uri(arguments[i].toString());
var _1b6=new dojo.uri.Uri(uri.toString());
if(_1b5.path==""&&_1b5.scheme==null&&_1b5.authority==null&&_1b5.query==null){
if(_1b5.fragment!=null){
_1b6.fragment=_1b5.fragment;
}
_1b5=_1b6;
}else{
if(_1b5.scheme==null){
_1b5.scheme=_1b6.scheme;
if(_1b5.authority==null){
_1b5.authority=_1b6.authority;
if(_1b5.path.charAt(0)!="/"){
var path=_1b6.path.substring(0,_1b6.path.lastIndexOf("/")+1)+_1b5.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;
}
}
}
}
_1b5.path=segs.join("/");
}
}
}
}
uri="";
if(_1b5.scheme!=null){
uri+=_1b5.scheme+":";
}
if(_1b5.authority!=null){
uri+="//"+_1b5.authority;
}
uri+=_1b5.path;
if(_1b5.query!=null){
uri+="?"+_1b5.query;
}
if(_1b5.fragment!=null){
uri+="#"+_1b5.fragment;
}
}
this.uri=uri.toString();
var _1ba="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_1ba));
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){
_1ba="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_1ba));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.style");
(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 _1c2=ds.getStyle(node,"-moz-box-sizing");
if(!_1c2){
_1c2=ds.getStyle(node,"box-sizing");
}
return (_1c2?_1c2:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_1c5,_1c6){
var s=ds.getComputedStyle(node,_1c5);
if((!s)||((s=="auto")&&(_1c6))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _1c8=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_1c8){
return ds.getUnitValue.bad;
}
return {value:Number(_1c8[1]),units:_1c8[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_1ca,_1cb){
var _1cc=ds.getUnitValue(node,_1ca,_1cb);
if(isNaN(_1cc.value)){
return 0;
}
if((_1cc.value)&&(_1cc.units!="px")){
return NaN;
}
return _1cc.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,_1ce,_1cf){
if(isNaN(_1cf)){
return false;
}
node.style[_1ce]=Math.max(0,_1cf)+"px";
return true;
};
ds._sumPixelValues=function(node,_1d1,_1d2){
var _1d3=0;
for(var x=0;x<_1d1.length;x++){
_1d3+=ds.getPixelValue(node,_1d1[x],_1d2);
}
return _1d3;
};
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,_1e0){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_1e0+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_1e0);
};
ds.setMarginBoxWidth=function(node,_1e2){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_1e2-=ds.getPadBorderWidth(node);
}
_1e2-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_1e2);
};
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,_1eb){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_1eb+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_1eb);
};
ds.setMarginBoxHeight=function(node,_1ed){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_1ed-=ds.getPadBorderHeight(node);
}
_1ed-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_1ed);
};
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,_1ef){
node=dojo.byId(node);
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(document.getBoxObjectFor){
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-ds.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-ds.sumAncestorProperties(node,"scrollTop");
}else{
if(node["offsetParent"]){
var _1f4;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_1f4=db;
}else{
_1f4=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(window.opera){
nd=db;
}
ret.x-=ds.sumAncestorProperties(nd,"scrollLeft");
ret.y-=ds.sumAncestorProperties(nd,"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!=_1f4)&&(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(_1ef){
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 _1fa=0;
while(node){
var val=node[prop];
if(val){
_1fa+=val-0;
if(node==document.body){
break;
}
}
node=node.parentNode;
}
return _1fa;
};
ds.getTotalOffset=function(node,type,_1fe){
return ds.abs(node,_1fe)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_200){
return ds.getTotalOffset(node,"left",_200);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_202){
return ds.getTotalOffset(node,"top",_202);
};
ds.styleSheet=null;
ds.insertCssRule=function(_203,_204,_205){
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){
_205=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_205=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_203+" { "+_204+" }";
return ds.styleSheet.insertRule(rule,_205);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_203,_204,_205);
}else{
return null;
}
}
};
ds.removeCssRule=function(_207){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_207){
_207=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_207);
}
}else{
if(document.styleSheets[0]){
if(!_207){
_207=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_207);
}
}
return true;
};
ds.insertCssFile=function(URI,doc,_20a){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _20b=dojo.hostenv.getText(URI);
_20b=ds.fixPathsInCssText(_20b,URI);
if(_20a){
var _20c=doc.getElementsByTagName("style");
var _20d="";
for(var i=0;i<_20c.length;i++){
_20d=(_20c[i].styleSheet&&_20c[i].styleSheet.cssText)?_20c[i].styleSheet.cssText:_20c[i].innerHTML;
if(_20b==_20d){
return;
}
}
}
var _20f=ds.insertCssText(_20b);
if(_20f&&djConfig.isDebug){
_20f.setAttribute("dbgHref",URI);
}
return _20f;
};
ds.insertCssText=function(_210,doc,URI){
if(!_210){
return;
}
if(!doc){
doc=document;
}
if(URI){
_210=ds.fixPathsInCssText(_210,URI);
}
var _213=doc.createElement("style");
_213.setAttribute("type","text/css");
var head=doc.getElementsByTagName("head")[0];
if(!head){
dojo.debug("No head tag in document, aborting styles");
return;
}else{
head.appendChild(_213);
}
if(_213.styleSheet){
_213.styleSheet.cssText=_210;
}else{
var _215=doc.createTextNode(_210);
_213.appendChild(_215);
}
return _213;
};
ds.fixPathsInCssText=function(_216,URI){
if(!_216||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_216.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_216.slice(0,pos+4);
_216=_216.substring(pos+4,_216.length);
url+=_216.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_216=_216.substring(url.length-1,_216.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+_216;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _21c;
do{
_21c=ds.getStyle(node,"background-color");
if(_21c.toLowerCase()=="rgba(0, 0, 0, 0)"){
_21c="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_21c,["transparent",""]));
if(_21c=="transparent"){
_21c=[255,255,255,0];
}else{
_21c=dojo.graphics.color.extractRGB(_21c);
}
return _21c;
};
ds.getComputedStyle=function(node,_21e,_21f){
node=dojo.byId(node);
var _21e=ds.toSelectorCase(_21e);
var _220=ds.toCamelCase(_21e);
if(!node||!node.style){
return _21f;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_21e);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_21e);
}else{
return _21f;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_220];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_21e);
}else{
return _21f;
}
};
ds.getStyleProperty=function(node,_223){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_223)]:undefined);
};
ds.getStyle=function(node,_225){
var _226=ds.getStyleProperty(node,_225);
return (_226?_226:ds.getComputedStyle(node,_225));
};
ds.setStyle=function(node,_228,_229){
node=dojo.byId(node);
if(node&&node.style){
var _22a=ds.toCamelCase(_228);
node.style[_22a]=_229;
}
};
ds.toCamelCase=function(_22b){
var arr=_22b.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(_22e){
return _22e.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_230,_231){
node=dojo.byId(node);
if(!_231){
if(_230>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_230=0.999999;
}
}else{
if(_230<0){
_230=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="+_230*100+")";
}
}
node.style.filter="Alpha(Opacity="+_230*100+")";
}else{
if(h.moz){
node.style.opacity=_230;
node.style.MozOpacity=_230;
}else{
if(h.safari){
node.style.opacity=_230;
node.style.KhtmlOpacity=_230;
}else{
node.style.opacity=_230;
}
}
}
};
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.setStyleAttributes=function(node,_239){
var _23a={"opacity":dojo.style.setOpacity,"content-height":dojo.style.setContentHeight,"content-width":dojo.style.setContentWidth,"outer-height":dojo.style.setOuterHeight,"outer-width":dojo.style.setOuterWidth};
var _23b=_239.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_23b.length;i++){
var _23d=_23b[i].split(":");
var name=_23d[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _23f=_23d[1].replace(/\s*$/,"").replace(/^\s*/,"");
if(dojo.lang.has(_23a,name)){
_23a[name](node,_23f);
}else{
node.style[dojo.style.toCamelCase(name)]=_23f;
}
}
};
ds._toggle=function(node,_241,_242){
node=dojo.byId(node);
_242(node,!_241(node));
return _241(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,_247){
ds[(_247?"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,_24d){
ds.setStyle(node,"display",(dojo.lang.isString(_24d)?_24d:(_24d?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,_251){
ds.setStyle(node,"visibility",(dojo.lang.isString(_251)?_251:(_251?"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(_254,_255){
if(dojo.lang.isArray(_254)){
while(_254.length<4){
_254.push(0);
}
while(_254.length>4){
_254.pop();
}
var ret=_254;
}else{
var node=dojo.byId(_254);
var pos=ds.getAbsolutePosition(node,_255);
var ret=[pos.x,pos.y,ds.getBorderBoxWidth(node),ds.getBorderBoxHeight(node)];
}
ret.x=ret[0];
ret.y=ret[1];
ret.w=ret[2];
ret.h=ret[3];
return ret;
};
})();
dojo.provide("dojo.math.curves");
dojo.math.curves={Line:function(_259,end){
this.start=_259;
this.end=end;
this.dimensions=_259.length;
for(var i=0;i<_259.length;i++){
_259[i]=Number(_259[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _25d=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_25d[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _25d;
};
return this;
},Bezier:function(pnts){
this.getValue=function(step){
if(step>=1){
return this.p[this.p.length-1];
}
if(step<=0){
return this.p[0];
}
var _261=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_261[k]=0;
}
for(var j=0;j<this.p[0].length;j++){
var C=0;
var D=0;
for(var i=0;i<this.p.length;i++){
C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i);
}
for(var l=0;l<this.p.length;l++){
D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l);
}
_261[j]=C/D;
}
return _261;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _26b=step*(this.p.length-1);
var node=Math.floor(_26b);
var _26d=_26b-node;
var i0=node-1;
if(i0<0){
i0=0;
}
var i=node;
var i1=node+1;
if(i1>=this.p.length){
i1=this.p.length-1;
}
var i2=node+2;
if(i2>=this.p.length){
i2=this.p.length-1;
}
var u=_26d;
var u2=_26d*_26d;
var u3=_26d*_26d*_26d;
var _275=new Array(this.p[0].length);
for(var k=0;k<this.p[0].length;k++){
var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);
var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);
var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);
var x4=this.p[i][k];
_275[k]=x1*u3+x2*u2+x3*u+x4;
}
return _275;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_27b,end,ccw){
var _27e=dojo.math.points.midpoint(_27b,end);
var _27f=dojo.math.points.translate(dojo.math.points.invert(_27e),_27b);
var rad=Math.sqrt(Math.pow(_27f[0],2)+Math.pow(_27f[1],2));
var _281=dojo.math.radToDeg(Math.atan(_27f[1]/_27f[0]));
if(_27f[0]<0){
_281-=90;
}else{
_281+=90;
}
dojo.math.curves.CenteredArc.call(this,_27e,rad,_281,_281+(ccw?-180:180));
},CenteredArc:function(_282,_283,_284,end){
this.center=_282;
this.radius=_283;
this.start=_284||0;
this.end=end;
this.getValue=function(n){
var _287=new Array(2);
var _288=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_287[0]=this.center[0]+this.radius*Math.sin(_288);
_287[1]=this.center[1]-this.radius*Math.cos(_288);
return _287;
};
return this;
},Circle:function(_289,_28a){
dojo.math.curves.CenteredArc.call(this,_289,_28a,0,360);
return this;
},Path:function(){
var _28b=[];
var _28c=[];
var _28d=[];
var _28e=0;
this.add=function(_28f,_290){
if(_290<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_28b.push(_28f);
_28c.push(_290);
_28e+=_290;
computeRanges();
};
this.remove=function(_291){
for(var i=0;i<_28b.length;i++){
if(_28b[i]==_291){
_28b.splice(i,1);
_28e-=_28c.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_28b=[];
_28c=[];
_28e=0;
};
this.getValue=function(n){
var _294=false,value=0;
for(var i=0;i<_28d.length;i++){
var r=_28d[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
value=_28b[i].getValue(subN);
_294=true;
break;
}
}
if(!_294){
value=_28b[_28b.length-1].getValue(1);
}
for(var j=0;j<i;j++){
value=dojo.math.points.translate(value,_28b[j].getValue(1));
}
return value;
};
function computeRanges(){
var _299=0;
for(var i=0;i<_28c.length;i++){
var end=_299+_28c[i]/_28e;
var len=end-_299;
_28d[i]=[_299,end,len];
_299=end;
}
}
return this;
}};
dojo.provide("dojo.animation.AnimationEvent");
dojo.animation.AnimationEvent=function(anim,type,_29f,_2a0,_2a1,_2a2,dur,pct,fps){
this.type=type;
this.animation=anim;
this.coords=_29f;
this.x=_29f[0];
this.y=_29f[1];
this.z=_29f[2];
this.startTime=_2a0;
this.currentTime=_2a1;
this.endTime=_2a2;
this.duration=dur;
this.percent=pct;
this.fps=fps;
};
dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _2a6=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_2a6[i]=Math.round(this.coords[i]);
}
return _2a6;
}});
dojo.provide("dojo.animation.Animation");
dojo.animation.Animation=function(_2a8,_2a9,_2aa,_2ab,rate){
if(dojo.lang.isArray(_2a8)){
_2a8=new dojo.math.curves.Line(_2a8[0],_2a8[1]);
}
this.curve=_2a8;
this.duration=_2a9;
this.repeatCount=_2ab||0;
this.rate=rate||25;
if(_2aa){
if(dojo.lang.isFunction(_2aa.getValue)){
this.accel=_2aa;
}else{
var i=0.35*_2aa+0.5;
this.accel=new dojo.math.curves.CatmullRom([[0],[i],[1]],0.45);
}
}
};
dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(_2ae){
if(_2ae){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return;
}
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._lastFrame=this._startTime;
var e=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0);
this._active=true;
this._paused=false;
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
e.type="begin";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
e.type="play";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPlay=="function"){
this.onPlay(e);
}
if(this._animSequence){
this._animSequence._setCurrent(this);
}
this._cycle();
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return;
}
this._paused=true;
var e=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPause=="function"){
this.onPause(e);
}
},playPause:function(){
if(!this._active||this._paused){
this.play();
}else{
this.pause();
}
},gotoPercent:function(pct,_2b2){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_2b2){
this.play();
}
},stop:function(_2b3){
clearTimeout(this._timer);
var step=this._percent/100;
if(_2b3){
step=1;
}
var e=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(step),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onStop=="function"){
this.onStop(e);
}
this._active=false;
this._paused=false;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
var fps=1000/(curr-this._lastFrame);
this._lastFrame=curr;
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if(this.accel&&this.accel.getValue){
step=this.accel.getValue(step);
}
var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps));
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onAnimate=="function"){
this.onAnimate(e);
}
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
e.type="end";
this._active=false;
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this.repeatCount--;
this.play(true);
}else{
if(this.repeatCount==-1){
this.play(true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
if(this._animSequence){
this._animSequence._playNext();
}
}
}
}
}
}});
dojo.provide("dojo.animation");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_2ba){
if(!this.topics[_2ba]){
this.topics[_2ba]=new this.TopicImpl(_2ba);
}
return this.topics[_2ba];
};
this.registerPublisher=function(_2bb,obj,_2bd){
var _2bb=this.getTopic(_2bb);
_2bb.registerPublisher(obj,_2bd);
};
this.subscribe=function(_2be,obj,_2c0){
var _2be=this.getTopic(_2be);
_2be.subscribe(obj,_2c0);
};
this.unsubscribe=function(_2c1,obj,_2c3){
var _2c1=this.getTopic(_2c1);
_2c1.unsubscribe(obj,_2c3);
};
this.destroy=function(_2c4){
this.getTopic(_2c4).destroy();
delete this.topics[_2c4];
};
this.publishApply=function(_2c5,args){
var _2c5=this.getTopic(_2c5);
_2c5.sendMessage.apply(_2c5,args);
};
this.publish=function(_2c7,_2c8){
var _2c7=this.getTopic(_2c7);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_2c7.sendMessage.apply(_2c7,args);
};
};
dojo.event.topic.TopicImpl=function(_2cb){
this.topicName=_2cb;
this.subscribe=function(_2cc,_2cd){
var tf=_2cd||_2cc;
var to=(!_2cd)?dj_global:_2cc;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_2d0,_2d1){
var tf=(!_2d1)?_2d0:_2d1;
var to=(!_2d1)?null:_2d0;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_2d4,_2d5){
dojo.event.connect(_2d4,_2d5,this,"sendMessage");
};
this.sendMessage=function(_2d6){
};
};
dojo.provide("dojo.event.browser");
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(_2d9){
var na;
var tna;
if(_2d9){
tna=_2d9.all||_2d9.getElementsByTagName("*");
na=[_2d9];
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 _2dd={};
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){
dojo.addOnUnload(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 _2e1=0;
this.clean=function(node){
if(dojo.render.html.ie){
dojo._ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!dojo.render.html.ie){
return;
}
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo._ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_2e5){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_2e5.length;x++){
node.__clobberAttrs__.push(_2e5[x]);
}
};
this.removeListener=function(node,_2e8,fp,_2ea){
if(!_2ea){
var _2ea=false;
}
_2e8=_2e8.toLowerCase();
if(_2e8.substr(0,2)=="on"){
_2e8=_2e8.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_2e8,fp,_2ea);
}
};
this.addListener=function(node,_2ec,fp,_2ee,_2ef){
if(!node){
return;
}
if(!_2ee){
var _2ee=false;
}
_2ec=_2ec.toLowerCase();
if(_2ec.substr(0,2)!="on"){
_2ec="on"+_2ec;
}
if(!_2ef){
var _2f0=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_2ee){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_2f0=fp;
}
if(node.addEventListener){
node.addEventListener(_2ec.substr(2),_2f0,_2ee);
return _2f0;
}else{
if(typeof node[_2ec]=="function"){
var _2f3=node[_2ec];
node[_2ec]=function(e){
_2f3(e);
return _2f0(e);
};
}else{
node[_2ec]=_2f0;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_2ec]);
}
return _2f0;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_2f6,_2f7){
if(typeof _2f6!="function"){
dojo.raise("listener not a function: "+_2f6);
}
dojo.event.browser.currentEvent.currentTarget=_2f7;
return _2f6.call(_2f7,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,_2fa){
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=(_2fa?_2fa:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var _2fc=((dojo.render.html.ie55)||(document["compatMode"]=="BackCompat"))?document.body:document.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_2fc.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_2fc.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.provide("dojo.event.*");
dojo.provide("dojo.fx.html");
dojo.deprecated("dojo.fx.html","use dojo.lfx.html instead","0.4");
dojo.fx.duration=300;
dojo.fx.html._makeFadeable=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
dojo.fx.html.fadeOut=function(node,_300,_301,_302){
return dojo.fx.html.fade(node,_300,dojo.style.getOpacity(node),0,_301,_302);
};
dojo.fx.html.fadeIn=function(node,_304,_305,_306){
return dojo.fx.html.fade(node,_304,dojo.style.getOpacity(node),1,_305,_306);
};
dojo.fx.html.fadeHide=function(node,_308,_309,_30a){
node=dojo.byId(node);
if(!_308){
_308=150;
}
return dojo.fx.html.fadeOut(node,_308,function(node){
node.style.display="none";
if(typeof _309=="function"){
_309(node);
}
});
};
dojo.fx.html.fadeShow=function(node,_30d,_30e,_30f){
node=dojo.byId(node);
if(!_30d){
_30d=150;
}
node.style.display="block";
return dojo.fx.html.fade(node,_30d,0,1,_30e,_30f);
};
dojo.fx.html.fade=function(node,_311,_312,_313,_314,_315){
node=dojo.byId(node);
dojo.fx.html._makeFadeable(node);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_312],[_313]),_311||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
dojo.style.setOpacity(node,e.x);
});
if(_314){
dojo.event.connect(anim,"onEnd",function(e){
_314(node,anim);
});
}
if(!_315){
anim.play(true);
}
return anim;
};
dojo.fx.html.slideTo=function(node,_31a,_31b,_31c,_31d){
if(!dojo.lang.isNumber(_31a)){
var tmp=_31a;
_31a=_31b;
_31b=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slide(node,_31a,[left,top],_31b,_31c,_31d);
};
dojo.fx.html.slideBy=function(node,_323,_324,_325,_326){
if(!dojo.lang.isNumber(_323)){
var tmp=_323;
_323=_324;
_324=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slideTo(node,_323,[left+_324[0],top+_324[1]],_325,_326);
};
dojo.fx.html.slide=function(node,_32c,_32d,_32e,_32f,_330){
if(!dojo.lang.isNumber(_32c)){
var tmp=_32c;
_32c=_32e;
_32e=_32d;
_32d=tmp;
}
node=dojo.byId(node);
if(dojo.style.getComputedStyle(node,"position")=="static"){
node.style.position="relative";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_32d,_32e),_32c||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
with(node.style){
left=e.x+"px";
top=e.y+"px";
}
});
if(_32f){
dojo.event.connect(anim,"onEnd",function(e){
_32f(node,anim);
});
}
if(!_330){
anim.play(true);
}
return anim;
};
dojo.fx.html.colorFadeIn=function(node,_336,_337,_338,_339,_33a){
if(!dojo.lang.isNumber(_336)){
var tmp=_336;
_336=_337;
_337=tmp;
}
node=dojo.byId(node);
var _33c=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _33e=bg=="transparent"||bg=="rgba(0, 0, 0, 0)";
while(_33c.length>3){
_33c.pop();
}
var rgb=new dojo.graphics.color.Color(_337).toRgb();
var anim=dojo.fx.html.colorFade(node,_336||dojo.fx.duration,_337,_33c,_339,true);
dojo.event.connect(anim,"onEnd",function(e){
if(_33e){
node.style.backgroundColor="transparent";
}
});
if(_338>0){
node.style.backgroundColor="rgb("+rgb.join(",")+")";
if(!_33a){
setTimeout(function(){
anim.play(true);
},_338);
}
}else{
if(!_33a){
anim.play(true);
}
}
return anim;
};
dojo.fx.html.highlight=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeFrom=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeOut=function(node,_343,_344,_345,_346,_347){
if(!dojo.lang.isNumber(_343)){
var tmp=_343;
_343=_344;
_344=tmp;
}
node=dojo.byId(node);
var _349=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node)).toRgb();
var rgb=new dojo.graphics.color.Color(_344).toRgb();
var anim=dojo.fx.html.colorFade(node,_343||dojo.fx.duration,_349,rgb,_346,_345>0||_347);
if(_345>0){
node.style.backgroundColor="rgb("+_349.join(",")+")";
if(!_347){
setTimeout(function(){
anim.play(true);
},_345);
}
}
return anim;
};
dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFade=function(node,_34d,_34e,_34f,_350,_351){
if(!dojo.lang.isNumber(_34d)){
var tmp=_34d;
_34d=_34f;
_34f=_34e;
_34e=tmp;
}
node=dojo.byId(node);
var _353=new dojo.graphics.color.Color(_34e).toRgb();
var _354=new dojo.graphics.color.Color(_34f).toRgb();
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_353,_354),_34d||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")";
});
if(_350){
dojo.event.connect(anim,"onEnd",function(e){
_350(node,anim);
});
}
if(!_351){
anim.play(true);
}
return anim;
};
dojo.fx.html.wipeIn=function(node,_359,_35a,_35b){
node=dojo.byId(node);
var _35c=dojo.style.getStyle(node,"overflow");
if(_35c=="visible"){
node.style.overflow="hidden";
}
node.style.height=0;
dojo.style.show(node);
var anim=dojo.fx.html.wipe(node,_359,0,node.scrollHeight,null,true);
dojo.event.connect(anim,"onEnd",function(){
node.style.overflow=_35c;
node.style.visibility="";
node.style.height="auto";
if(_35a){
_35a(node,anim);
}
});
if(!_35b){
anim.play();
}
return anim;
};
dojo.fx.html.wipeOut=function(node,_35f,_360,_361){
node=dojo.byId(node);
var _362=dojo.style.getStyle(node,"overflow");
if(_362=="visible"){
node.style.overflow="hidden";
}
var anim=dojo.fx.html.wipe(node,_35f,node.offsetHeight,0,null,true);
dojo.event.connect(anim,"onEnd",function(){
dojo.style.hide(node);
node.style.visibility="hidden";
node.style.overflow=_362;
if(_360){
_360(node,anim);
}
});
if(!_361){
anim.play();
}
return anim;
};
dojo.fx.html.wipe=function(node,_365,_366,_367,_368,_369){
node=dojo.byId(node);
var anim=new dojo.animation.Animation([[_366],[_367]],_365||dojo.fx.duration,1);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.height=e.x+"px";
});
dojo.event.connect(anim,"onEnd",function(){
if(_368){
_368(node,anim);
}
});
if(!_369){
anim.play();
}
return anim;
};
dojo.fx.html.wiper=function(node,_36d){
this.node=dojo.byId(node);
if(_36d){
dojo.event.connect(dojo.byId(_36d),"onclick",this,"toggle");
}
};
dojo.lang.extend(dojo.fx.html.wiper,{duration:dojo.fx.duration,_anim:null,toggle:function(){
if(!this._anim){
var type="wipe"+(dojo.style.isVisible(this.node)?"Out":"In");
this._anim=dojo.fx[type](this.node,this.duration,dojo.lang.hitch(this,"_callback"));
}
},_callback:function(){
this._anim=null;
}});
dojo.fx.html.explode=function(_36f,_370,_371,_372,_373){
var _374=dojo.style.toCoordinateArray(_36f);
var _375=document.createElement("div");
with(_375.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_375);
_370=dojo.byId(_370);
with(_370.style){
visibility="hidden";
display="block";
}
var _376=dojo.style.toCoordinateArray(_370);
with(_370.style){
display="none";
visibility="visible";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_374,_376),_371||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_375.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_375.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_370.style.display="block";
_375.parentNode.removeChild(_375);
if(_372){
_372(_370,anim);
}
});
if(!_373){
anim.play();
}
return anim;
};
dojo.fx.html.implode=function(_37a,end,_37c,_37d,_37e){
var _37f=dojo.style.toCoordinateArray(_37a);
var _380=dojo.style.toCoordinateArray(end);
_37a=dojo.byId(_37a);
var _381=document.createElement("div");
with(_381.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_381);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_37f,_380),_37c||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_37a.style.display="none";
_381.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_381.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_381.parentNode.removeChild(_381);
if(_37d){
_37d(_37a,anim);
}
});
if(!_37e){
anim.play();
}
return anim;
};
dojo.fx.html.Exploder=function(_385,_386){
_385=dojo.byId(_385);
_386=dojo.byId(_386);
var _387=this;
this.waitToHide=500;
this.timeToShow=100;
this.waitToShow=200;
this.timeToHide=70;
this.autoShow=false;
this.autoHide=false;
var _388=null;
var _389=null;
var _38a=null;
var _38b=null;
var _38c=null;
var _38d=null;
this.showing=false;
this.onBeforeExplode=null;
this.onAfterExplode=null;
this.onBeforeImplode=null;
this.onAfterImplode=null;
this.onExploding=null;
this.onImploding=null;
this.timeShow=function(){
clearTimeout(_38a);
_38a=setTimeout(_387.show,_387.waitToShow);
};
this.show=function(){
clearTimeout(_38a);
clearTimeout(_38b);
if((_389&&_389.status()=="playing")||(_388&&_388.status()=="playing")||_387.showing){
return;
}
if(typeof _387.onBeforeExplode=="function"){
_387.onBeforeExplode(_385,_386);
}
_388=dojo.fx.html.explode(_385,_386,_387.timeToShow,function(e){
_387.showing=true;
if(typeof _387.onAfterExplode=="function"){
_387.onAfterExplode(_385,_386);
}
});
if(typeof _387.onExploding=="function"){
dojo.event.connect(_388,"onAnimate",this,"onExploding");
}
};
this.timeHide=function(){
clearTimeout(_38a);
clearTimeout(_38b);
if(_387.showing){
_38b=setTimeout(_387.hide,_387.waitToHide);
}
};
this.hide=function(){
clearTimeout(_38a);
clearTimeout(_38b);
if(_388&&_388.status()=="playing"){
return;
}
_387.showing=false;
if(typeof _387.onBeforeImplode=="function"){
_387.onBeforeImplode(_385,_386);
}
_389=dojo.fx.html.implode(_386,_385,_387.timeToHide,function(e){
if(typeof _387.onAfterImplode=="function"){
_387.onAfterImplode(_385,_386);
}
});
if(typeof _387.onImploding=="function"){
dojo.event.connect(_389,"onAnimate",this,"onImploding");
}
};
dojo.event.connect(_385,"onclick",function(e){
if(_387.showing){
_387.hide();
}else{
_387.show();
}
});
dojo.event.connect(_385,"onmouseover",function(e){
if(_387.autoShow){
_387.timeShow();
}
});
dojo.event.connect(_385,"onmouseout",function(e){
if(_387.autoHide){
_387.timeHide();
}
});
dojo.event.connect(_386,"onmouseover",function(e){
clearTimeout(_38b);
});
dojo.event.connect(_386,"onmouseout",function(e){
if(_387.autoHide){
_387.timeHide();
}
});
dojo.event.connect(document.documentElement||document.body,"onclick",function(e){
function isDesc(node,_397){
while(node){
if(node==_397){
return true;
}
node=node.parentNode;
}
return false;
}
if(_387.autoHide&&_387.showing&&!isDesc(e.target,_386)&&!isDesc(e.target,_385)){
_387.hide();
}
});
return this;
};
dojo.fx.html.toggle={};
dojo.fx.html.toggle.plain={show:function(node,_399,_39a,_39b){
dojo.style.show(node);
if(dojo.lang.isFunction(_39b)){
_39b();
}
},hide:function(node,_39d,_39e,_39f){
dojo.style.hide(node);
if(dojo.lang.isFunction(_39f)){
_39f();
}
}};
dojo.fx.html.toggle.fade={show:function(node,_3a1,_3a2,_3a3){
dojo.fx.html.fadeShow(node,_3a1,_3a3);
},hide:function(node,_3a5,_3a6,_3a7){
dojo.fx.html.fadeHide(node,_3a5,_3a7);
}};
dojo.fx.html.toggle.wipe={show:function(node,_3a9,_3aa,_3ab){
dojo.fx.html.wipeIn(node,_3a9,_3ab);
},hide:function(node,_3ad,_3ae,_3af){
dojo.fx.html.wipeOut(node,_3ad,_3af);
}};
dojo.fx.html.toggle.explode={show:function(node,_3b1,_3b2,_3b3){
dojo.fx.html.explode(_3b2||[0,0,0,0],node,_3b1,_3b3);
},hide:function(node,_3b5,_3b6,_3b7){
dojo.fx.html.implode(node,_3b6||[0,0,0,0],_3b5,_3b7);
}};
dojo.lang.mixin(dojo.fx,dojo.fx.html);
dojo.provide("dojo.string.common");
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,_3be,_3bf){
var out="";
for(var i=0;i<_3be;i++){
out+=str;
if(_3bf&&i<_3be-1){
out+=_3bf;
}
}
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.provide("dojo.dom");
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 _3cf=node.tagName;
if(_3cf.substr(0,5).toLowerCase()!="dojo:"){
if(_3cf.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_3cf.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 _3d1=node.className||node.getAttribute("class");
if((_3d1)&&(_3d1.indexOf)&&(_3d1.indexOf("dojo-")!=-1)){
var _3d2=_3d1.split(" ");
for(var x=0;x<_3d2.length;x++){
if((_3d2[x].length>5)&&(_3d2[x].indexOf("dojo-")>=0)){
return "dojo:"+_3d2[x].substr(5).toLowerCase();
}
}
}
}
}
return _3cf.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(_3d5,_3d6){
var node=_3d5.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_3d6&&node&&node.tagName&&node.tagName.toLowerCase()!=_3d6.toLowerCase()){
node=dojo.dom.nextElement(node,_3d6);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_3d8,_3d9){
var node=_3d8.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_3d9&&node&&node.tagName&&node.tagName.toLowerCase()!=_3d9.toLowerCase()){
node=dojo.dom.prevElement(node,_3d9);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_3dc){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_3dc&&_3dc.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_3dc);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_3de){
if(!node){
return null;
}
if(_3de){
_3de=_3de.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_3de&&_3de.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_3de);
}
return node;
};
dojo.dom.moveChildren=function(_3df,_3e0,trim){
var _3e2=0;
if(trim){
while(_3df.hasChildNodes()&&_3df.firstChild.nodeType==dojo.dom.TEXT_NODE){
_3df.removeChild(_3df.firstChild);
}
while(_3df.hasChildNodes()&&_3df.lastChild.nodeType==dojo.dom.TEXT_NODE){
_3df.removeChild(_3df.lastChild);
}
}
while(_3df.hasChildNodes()){
_3e0.appendChild(_3df.firstChild);
_3e2++;
}
return _3e2;
};
dojo.dom.copyChildren=function(_3e3,_3e4,trim){
var _3e6=_3e3.cloneNode(true);
return this.moveChildren(_3e6,_3e4,trim);
};
dojo.dom.removeChildren=function(node){
var _3e8=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _3e8;
};
dojo.dom.replaceChildren=function(node,_3ea){
dojo.dom.removeChildren(node);
node.appendChild(_3ea);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_3ed,_3ee){
var _3ef=[];
var _3f0=dojo.lang.isFunction(_3ed);
while(node){
if(!_3f0||_3ed(node)){
_3ef.push(node);
}
if(_3ee&&_3ef.length>0){
return _3ef[0];
}
node=node.parentNode;
}
if(_3ee){
return null;
}
return _3ef;
};
dojo.dom.getAncestorsByTag=function(node,tag,_3f3){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_3f3);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_3f8,_3f9){
if(_3f9&&node){
node=node.parentNode;
}
while(node){
if(node==_3f8){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
if(!dj_undef("ActiveXObject")){
var _3fc=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_3fc.length;i++){
try{
doc=new ActiveXObject(_3fc[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((document.implementation)&&(document.implementation.createDocument)){
doc=document.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_3ff){
if(!_3ff){
_3ff="text/xml";
}
if(!dj_undef("DOMParser")){
var _400=new DOMParser();
return _400.parseFromString(str,_3ff);
}else{
if(!dj_undef("ActiveXObject")){
var _401=dojo.dom.createDocument();
if(_401){
_401.async=false;
_401.loadXML(str);
return _401;
}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 _403=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_403.importNode(tmp.childNodes.item(i),true);
}
return _403;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_406){
if(_406.firstChild){
_406.insertBefore(node,_406.firstChild);
}else{
_406.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_409){
if(_409!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _40a=ref.parentNode;
_40a.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_40d){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_40d!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_40d);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_411){
if((!node)||(!ref)||(!_411)){
return false;
}
switch(_411.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,_413,_414){
var _415=_413.childNodes;
if(!_415.length){
_413.appendChild(node);
return true;
}
var _416=null;
for(var i=0;i<_415.length;i++){
var _418=_415.item(i)["getAttribute"]?parseInt(_415.item(i).getAttribute("dojoinsertionindex")):-1;
if(_418<_414){
_416=_415.item(i);
}
}
if(_416){
return dojo.dom.insertAfter(node,_416);
}else{
return dojo.dom.insertBefore(node,_415.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _41b="";
if(node==null){
return _41b;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_41b+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_41b+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _41b;
}
};
dojo.dom.collectionToArray=function(_41d){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_41d);
};
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.xml.Parse=function(){
function getDojoTagName(node){
var _422=node.tagName;
if(_422.substr(0,5).toLowerCase()!="dojo:"){
if(_422.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_422.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 _424=node.className||node.getAttribute("class");
if(_424&&_424.indexOf&&_424.indexOf("dojo-")!=-1){
var _425=_424.split(" ");
for(var x=0;x<_425.length;x++){
if(_425[x].length>5&&_425[x].indexOf("dojo-")>=0){
return "dojo:"+_425[x].substr(5).toLowerCase();
}
}
}
}
}
return _422.toLowerCase();
}
this.parseElement=function(node,_428,_429,_42a){
if(node.getAttribute("parseWidgets")=="false"){
return {};
}
var _42b={};
var _42c=getDojoTagName(node);
_42b[_42c]=[];
if((!_429)||(_42c.substr(0,4).toLowerCase()=="dojo")){
var _42d=parseAttributes(node);
for(var attr in _42d){
if((!_42b[_42c][attr])||(typeof _42b[_42c][attr]!="array")){
_42b[_42c][attr]=[];
}
_42b[_42c][attr].push(_42d[attr]);
}
_42b[_42c].nodeRef=node;
_42b.tagName=_42c;
_42b.index=_42a||0;
}
var _42f=0;
var tcn,i=0,nodes=node.childNodes;
while(tcn=nodes[i++]){
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_42f++;
var ctn=getDojoTagName(tcn);
if(!_42b[ctn]){
_42b[ctn]=[];
}
_42b[ctn].push(this.parseElement(tcn,true,_429,_42f));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_42b[ctn][_42b[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_42b[_42c].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _42b;
};
function parseAttributes(node){
var _433={};
var atts=node.attributes;
var _435,i=0;
while(_435=atts[i++]){
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_435){
continue;
}
if((typeof _435=="object")&&(typeof _435.nodeValue=="undefined")||(_435.nodeValue==null)||(_435.nodeValue=="")){
continue;
}
}
var nn=(_435.nodeName.indexOf("dojo:")==-1)?_435.nodeName:_435.nodeName.split("dojo:")[1];
_433[nn]={value:_435.nodeValue};
}
return _433;
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_437,_438,init,_43a){
if((dojo.lang.isFunction(_43a))||((!_43a)&&(!dojo.lang.isFunction(init)))){
var temp=_43a;
_43a=init;
init=temp;
}
var _43c=[];
if(dojo.lang.isArray(_438)){
_43c=_438;
_438=_43c.shift();
}
if(!init){
init=dojo.evalObjPath(_437,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_438?_438.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _438();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_43c;
for(var i=0,l=_43c.length;i<l;i++){
dojo.lang.extend(ctor,_43c[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_437;
if(dojo.lang.isArray(_43a)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_43a));
}else{
dojo.lang.extend(ctor,(_43a)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare.base);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
dojo.lang.setObjPathValue(_437,ctor,null,true);
};
dojo.lang.declare._makeConstructor=function(){
return 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);
}
}
var m=(self.constructor.mixins)||([]);
for(var i=0,l=m.length;i<l;i++){
(((m[i].prototype)&&(m[i].prototype.initializer))||(m[i])).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare.base={_getPropContext:function(){
return (this.___proto||this);
},_inherited:function(_444,_445,args){
var _447=this.___proto;
this.___proto=_444;
var _448=_444[_445].apply(this,(args||[]));
this.___proto=_447;
return _448;
},inheritedFrom:function(ctor,prop,args){
var p=((ctor)&&(ctor.prototype)&&(ctor.prototype[prop]));
return (dojo.lang.isFunction(p)?p.apply(this,(args||[])):p);
},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 (dojo.lang.isFunction(p[prop])?this._inherited(p,prop,args):p[prop]);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _450={};
var _451=[];
this.getUniqueId=function(_452){
return _452+"_"+(_450[_452]!=undefined?++_450[_452]:_450[_452]=0);
};
this.add=function(_453){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_453);
if(!_453.extraArgs["id"]){
_453.extraArgs["id"]=_453.extraArgs["ID"];
}
if(_453.widgetId==""){
if(_453["id"]){
_453.widgetId=_453["id"];
}else{
if(_453.extraArgs["id"]){
_453.widgetId=_453.extraArgs["id"];
}else{
_453.widgetId=this.getUniqueId(_453.widgetType);
}
}
}
if(this.widgetIds[_453.widgetId]){
dojo.debug("widget ID collision on ID: "+_453.widgetId);
}
this.widgetIds[_453.widgetId]=_453;
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(_455){
var tw=this.widgets[_455].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_455,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(_45f,_460){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_45f(x)){
ret.push(x);
if(_460){
return false;
}
}
return true;
});
return (_460?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 _466={};
var _467=["dojo.widget"];
for(var i=0;i<_467.length;i++){
_467[_467[i]]=true;
}
this.registerWidgetPackage=function(_469){
if(!_467[_469]){
_467[_469]=true;
_467.push(_469);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_467,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_46b,_46c,_46d){
var impl=this.getImplementationName(_46b);
if(impl){
var ret=new impl(_46c);
return ret;
}
};
this.getImplementationName=function(_470){
var _471=_470.toLowerCase();
var impl=_466[_471];
if(impl){
return impl;
}
if(!_451.length){
for(var _473 in dojo.render){
if(dojo.render[_473]["capable"]===true){
var _474=dojo.render[_473].prefixes;
for(var i=0;i<_474.length;i++){
_451.push(_474[i].toLowerCase());
}
}
}
_451.push("");
}
for(var i=0;i<_467.length;i++){
var _476=dojo.evalObjPath(_467[i]);
if(!_476){
continue;
}
for(var j=0;j<_451.length;j++){
if(!_476[_451[j]]){
continue;
}
for(var _478 in _476[_451[j]]){
if(_478.toLowerCase()!=_471){
continue;
}
_466[_471]=_476[_451[j]][_478];
return _466[_471];
}
}
for(var j=0;j<_451.length;j++){
for(var _478 in _476){
if(_478.toLowerCase()!=(_451[j]+_471)){
continue;
}
_466[_471]=_476[_478];
return _466[_471];
}
}
}
throw new Error("Could not locate \""+_470+"\" class");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _47a=this.topWidgets[id];
if(_47a.checkSize){
_47a.checkSize();
}
}
}
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(_47f,_480){
dw[(_480||_47f)]=h(_47f);
};
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 _482=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _482[n];
}
return _482;
};
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.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 _484=this.children[i];
if(_484.onResized){
_484.onResized();
}
}
},create:function(args,_486,_487){
this.satisfyPropertySets(args,_486,_487);
this.mixInProperties(args,_486,_487);
this.postMixInProperties(args,_486,_487);
dojo.widget.manager.add(this);
this.buildRendering(args,_486,_487);
this.initialize(args,_486,_487);
this.postInitialize(args,_486,_487);
this.postCreate(args,_486,_487);
return this;
},destroy:function(_488){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_488);
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,_48b){
var ret=[];
var _48d=dojo.lang.isFunction(type);
if(!_48d){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_48d){
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(_48b){
ret=ret.concat(this.children[x].getChildrenOfType(type,_48b));
}
}
return ret;
},getDescendants:function(){
var _48f=[];
var _490=[this];
var elem;
while(elem=_490.pop()){
_48f.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_490.push(elem);
});
}
return _48f;
},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 _497;
var _498=dojo.widget.lcArgsCache[this.widgetType];
if(_498==null){
_498={};
for(var y in this){
_498[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_498;
}
var _49a={};
for(var x in args){
if(!this[x]){
var y=_498[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_49a[x]){
continue;
}
_49a[x]=true;
if((typeof this[x])!=(typeof _497)){
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 _49c=args[x].split(";");
for(var y=0;y<_49c.length;y++){
var si=_49c[y].indexOf(":");
if((si!=-1)&&(_49c[y].length>si)){
this[x][_49c[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_49c[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(_4a4){
},addChild:function(_4a5){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_4a6){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_4a6){
this.children.splice(x,1);
break;
}
}
return _4a6;
},resize:function(_4a8,_4a9){
this.setWidth(_4a8);
this.setHeight(_4a9);
},setWidth:function(_4aa){
if((typeof _4aa=="string")&&(_4aa.substr(-1)=="%")){
this.setPercentageWidth(_4aa);
}else{
this.setNativeWidth(_4aa);
}
},setHeight:function(_4ab){
if((typeof _4ab=="string")&&(_4ab.substr(-1)=="%")){
this.setPercentageHeight(_4ab);
}else{
this.setNativeHeight(_4ab);
}
},setPercentageHeight:function(_4ac){
return false;
},setNativeHeight:function(_4ad){
return false;
},setPercentageWidth:function(_4ae){
return false;
},setNativeWidth:function(_4af){
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 _4b3=type.toLowerCase();
this[_4b3]=function(_4b4,_4b5,_4b6,_4b7,_4b8){
return dojo.widget.buildWidgetFromParseTree(_4b3,_4b4,_4b5,_4b6,_4b7,_4b8);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_4b9,_4ba,_4bb){
var _4bc=_4ba.parseProperties(_4b9["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_4bd,_4be,_4bf){
var _4c0=_4be.parseProperties(_4bd["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_4c3,_4c4,_4c5,_4c6){
var _4c7=type.split(":");
_4c7=(_4c7.length==2)?_4c7[1]:type;
var _4c8=_4c6||_4c3.parseProperties(frag["dojo:"+_4c7]);
var _4c9=dojo.widget.manager.getImplementation(_4c7);
if(!_4c9){
throw new Error("cannot find \""+_4c7+"\" widget");
}else{
if(!_4c9.create){
throw new Error("\""+_4c7+"\" widget object does not appear to implement *Widget");
}
}
_4c8["dojoinsertionindex"]=_4c5;
var ret=_4c9.create(_4c8,frag,_4c4);
return ret;
};
dojo.widget.defineWidget=function(_4cb,_4cc,_4cd,init,_4cf){
if(dojo.lang.isString(arguments[3])){
dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2]);
}else{
var args=[arguments[0]],p=3;
if(dojo.lang.isString(arguments[1])){
args.push(arguments[1],arguments[2]);
}else{
args.push("",arguments[1]);
p=2;
}
if(dojo.lang.isFunction(arguments[p])){
args.push(arguments[p],arguments[p+1]);
}else{
args.push(null,arguments[p]);
}
dojo.widget._defineWidget.apply(this,args);
}
};
dojo.widget.defineWidget.renderers="html|svg|vml";
dojo.widget._defineWidget=function(_4d1,_4d2,_4d3,init,_4d5){
var _4d6=_4d1.split(".");
var type=_4d6.pop();
var regx="\\.("+(_4d2?_4d2+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_4d1.search(new RegExp(regx));
_4d6=(r<0?_4d6.join("."):_4d1.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_4d6);
dojo.widget.tags.addParseTreeHandler("dojo:"+type.toLowerCase());
_4d5=(_4d5)||{};
_4d5.widgetType=type;
if((!init)&&(_4d5["classConstructor"])){
init=_4d5.classConstructor;
delete _4d5.classConstructor;
}
dojo.declare(_4d1,_4d3,init,_4d5);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_4da){
this.propertySetsList=[];
this.fragment=_4da;
this.createComponents=function(frag,_4dc){
var _4dd=[];
var _4de=false;
try{
if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){
var _4df=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(_4df[ltn]){
_4de=true;
frag.tagName=ltn;
var ret=_4df[ltn](frag,this,_4dc,frag["index"]);
_4dd.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(!_4de){
_4dd=_4dd.concat(this.createSubComponents(frag,_4dc));
}
return _4dd;
};
this.createSubComponents=function(_4e4,_4e5){
var frag,comps=[];
for(var item in _4e4){
frag=_4e4[item];
if((frag)&&(typeof frag=="object")&&(frag!=_4e4.nodeRef)&&(frag!=_4e4["tagName"])){
comps=comps.concat(this.createComponents(frag,_4e5));
}
}
return comps;
};
this.parsePropertySets=function(_4e8){
return [];
var _4e9=[];
for(var item in _4e8){
if((_4e8[item]["tagName"]=="dojo:propertyset")){
_4e9.push(_4e8[item]);
}
}
this.propertySetsList.push(_4e9);
return _4e9;
};
this.parseProperties=function(_4eb){
var _4ec={};
for(var item in _4eb){
if((_4eb[item]==_4eb["tagName"])||(_4eb[item]==_4eb.nodeRef)){
}else{
if((_4eb[item]["tagName"])&&(dojo.widget.tags[_4eb[item].tagName.toLowerCase()])){
}else{
if((_4eb[item][0])&&(_4eb[item][0].value!="")&&(_4eb[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _4ee=this;
this.getDataProvider(_4ee,_4eb[item][0].value);
_4ec.dataProvider=this.dataProvider;
}
_4ec[item]=_4eb[item][0].value;
var _4ef=this.parseProperties(_4eb[item]);
for(var _4f0 in _4ef){
_4ec[_4f0]=_4ef[_4f0];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _4ec;
};
this.getDataProvider=function(_4f1,_4f2){
dojo.io.bind({url:_4f2,load:function(type,_4f4){
if(type=="load"){
_4f1.dataProvider=_4f4;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_4f5){
for(var x=0;x<this.propertySetsList.length;x++){
if(_4f5==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_4f7){
var _4f8=[];
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)){
_4f8.push(cpl);
}
}
return _4f8;
};
this.getPropertySets=function(_4fc){
var ppl="dojo:propertyproviderlist";
var _4fe=[];
var _4ff=_4fc["tagName"];
if(_4fc[ppl]){
var _500=_4fc[ppl].value.split(" ");
for(var _501 in _500){
if((_501.indexOf("..")==-1)&&(_501.indexOf("://")==-1)){
var _502=this.getPropertySetById(_501);
if(_502!=""){
_4fe.push(_502);
}
}else{
}
}
}
return (this.getPropertySetsByType(_4ff)).concat(_4fe);
};
this.createComponentFromScript=function(_503,_504,_505){
var ltn="dojo:"+_504.toLowerCase();
if(dojo.widget.tags[ltn]){
_505.fastMixIn=true;
return [dojo.widget.tags[ltn](_505,this,null,null,_505)];
}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,_509,_50a,_50b){
var _50c=name.toLowerCase();
var _50d="dojo:"+_50c;
var _50e=(dojo.byId(name)&&(!dojo.widget.tags[_50d]));
if((arguments.length==1)&&((typeof name!="string")||(_50e))){
var xp=new dojo.xml.Parse();
var tn=(_50e)?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_511,name,_513){
_513[_50d]={dojotype:[{value:_50c}],nodeRef:_511,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_511,name,_513,true);
}
if(typeof name!="string"&&typeof _509=="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,_509,_50a);
}
_509=_509||{};
var _514=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_50a){
_514=true;
_50a=tn;
if(h){
document.body.appendChild(_50a);
}
}else{
if(_50b){
dojo.dom.insertAtPosition(tn,_50a,_50b);
}else{
tn=_50a;
}
}
var _516=fromScript(tn,name,_509);
if(!_516||!_516[0]||typeof _516[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_514){
if(_516[0].domNode.parentNode){
_516[0].domNode.parentNode.removeChild(_516[0].domNode);
}
}
return _516[0];
};
dojo.widget.fromScript=function(name,_518,_519,_51a){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead","0.4");
return dojo.widget.createWidget(name,_518,_519,_51a);
};
dojo.provide("dojo.uri.*");
dojo.provide("dojo.widget.DomWidget");
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,_51c,_51d,_51e,_51f){
var _520=_51c||obj.templatePath;
var _521=_51d||obj.templateCssPath;
if(_520&&!(_520 instanceof dojo.uri.Uri)){
_520=dojo.uri.dojoUri(_520);
dojo.deprecated("templatePath should be of type dojo.uri.Uri",null,"0.4");
}
if(_521&&!(_521 instanceof dojo.uri.Uri)){
_521=dojo.uri.dojoUri(_521);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri",null,"0.4");
}
var _522=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _523="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_522[_523]);
obj.widgetType=_523;
}
var wt=obj.widgetType;
if(_521&&!dojo.widget._cssFiles[_521.toString()]){
if((!obj.templateCssString)&&(_521)){
obj.templateCssString=dojo.hostenv.getText(_521);
obj.templateCssPath=null;
}
if((obj["templateCssString"])&&(!obj.templateCssString["loaded"])){
dojo.style.insertCssText(obj.templateCssString,null,_521);
if(!obj.templateCssString){
obj.templateCssString="";
}
obj.templateCssString.loaded=true;
}
dojo.widget._cssFiles[_521.toString()]=true;
}
var ts=_522[wt];
if(!ts){
_522[wt]={"string":null,"node":null};
if(_51f){
ts={};
}else{
ts=_522[wt];
}
}
if((!obj.templateString)&&(!_51f)){
obj.templateString=_51e||ts["string"];
}
if((!obj.templateNode)&&(!_51f)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_520)){
var _526=dojo.hostenv.getText(_520);
if(_526){
_526=_526.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _527=_526.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_527){
_526=_527[1];
}
}else{
_526="";
}
obj.templateString=_526;
if(!_51f){
_522[wt]["string"]=_526;
}
}
if((!ts["string"])&&(!_51f)){
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,_52a){
if(dojo.render.html.ie){
node.setAttribute(this[attr].alias+":"+this[attr].nsName,this[attr].prefix+_52a);
}else{
node.setAttributeNS(this[attr].namespace,this[attr].nsName,this[attr].prefix+_52a);
}
}};
dojo.widget.attachTemplateNodes=function(_52b,_52c,_52d){
var _52e=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_52b){
_52b=_52c.domNode;
}
if(_52b.nodeType!=_52e){
return;
}
var _530=_52b.all||_52b.getElementsByTagName("*");
var _531=_52c;
for(var x=-1;x<_530.length;x++){
var _533=(x==-1)?_52b:_530[x];
var _534=[];
for(var y=0;y<this.attachProperties.length;y++){
var _536=_533.getAttribute(this.attachProperties[y]);
if(_536){
_534=_536.split(";");
for(var z=0;z<_534.length;z++){
if(dojo.lang.isArray(_52c[_534[z]])){
_52c[_534[z]].push(_533);
}else{
_52c[_534[z]]=_533;
}
}
break;
}
}
var _538=_533.getAttribute(this.templateProperty);
if(_538){
_52c[_538]=_533;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_533.getAttribute(wai.name);
if(val){
dojo.widget.wai.setAttr(_533,wai.name,val);
}
},this);
var _53c=_533.getAttribute(this.eventAttachProperty);
if(_53c){
var evts=_53c.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _53e=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _540=tevt.split(":");
tevt=trim(_540[0]);
_53e=trim(_540[1]);
}
if(!_53e){
_53e=tevt;
}
var tf=function(){
var ntf=new String(_53e);
return function(evt){
if(_531[ntf]){
_531[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_533,tevt,tf,false,true);
}
}
for(var y=0;y<_52d.length;y++){
var _544=_533.getAttribute(_52d[y]);
if((_544)&&(_544.length)){
var _53e=null;
var _545=_52d[y].substr(4);
_53e=trim(_544);
var _546=[_53e];
if(_53e.indexOf(";")>=0){
_546=dojo.lang.map(_53e.split(";"),trim);
}
for(var z=0;z<_546.length;z++){
if(!_546[z].length){
continue;
}
var tf=function(){
var ntf=new String(_546[z]);
return function(evt){
if(_531[ntf]){
_531[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_533,_545,tf,false,true);
}
}
}
var _549=_533.getAttribute(this.onBuildProperty);
if(_549){
eval("var node = baseNode; var widget = targetObj; "+_549);
}
}
};
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(_551,_552,pos,ref,_555){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_551,_552,pos,ref,_555);
this.registerChild(_551,_555);
}
return _551;
},addWidgetAsDirectChild:function(_556,_557,pos,ref,_55a){
if((!this.containerNode)&&(!_557)){
this.containerNode=this.domNode;
}
var cn=(_557)?_557:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=document.body;
}
ref=cn.lastChild;
}
if(!_55a){
_55a=0;
}
_556.domNode.setAttribute("dojoinsertionindex",_55a);
if(!ref){
cn.appendChild(_556.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_556.domNode,ref.parentNode,_55a);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_556.domNode);
}else{
dojo.dom.insertAtPosition(_556.domNode,cn,pos);
}
}
}
},registerChild:function(_55c,_55d){
_55c.dojoInsertionIndex=_55d;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_55d){
idx=i;
}
}
this.children.splice(idx+1,0,_55c);
_55c.parent=this;
_55c.addedTo(this);
delete dojo.widget.manager.topWidgets[_55c.widgetId];
},removeChild:function(_560){
dojo.dom.removeNode(_560.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_560);
},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,_564){
var _565=this.getFragNodeRef(frag);
if(_564&&(_564.snarfChildDomOutput||!_565)){
_564.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_565);
}else{
if(_565){
if(this.domNode&&(this.domNode!==_565)){
var _566=_565.parentNode.replaceChild(this.domNode,_565);
}
}
}
if(_564){
_564.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _567=dojo.widget.getParser();
_567.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 _56d=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_56d=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_56d);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_56d)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _56f=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_56f=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_56f){
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<_56f.length;i++){
var key=_56f[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?dojo.lang.getObjPathValue(key.substring(5),this):hash[key];
var _576;
if((kval)||(dojo.lang.isString(kval))){
_576=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_56f[i],_576);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_56d){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_56f)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_56f){
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(_578,_579){
if(!_579){
_579=this;
}
return dojo.widget.attachTemplateNodes(_578,_579,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.html");
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(_57a){
_57a=dojo.byId(_57a)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_57a.style.MozUserSelect="none";
}else{
if(h.safari){
_57a.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_57a.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_57c){
_57c=dojo.byId(_57c)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_57c.style.MozUserSelect="";
}else{
if(h.safari){
_57c.style.KhtmlUserSelect="";
}else{
if(h.ie){
_57c.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_57e){
_57e=dojo.byId(_57e);
if(document.selection&&document.body.createTextRange){
var _57f=document.body.createTextRange();
_57f.moveToElementText(_57e);
_57f.select();
}else{
if(window["getSelection"]){
var _580=window.getSelection();
if(_580["selectAllChildren"]){
_580.selectAllChildren(_57e);
}
}
}
};
dojo.html.selectInputText=function(_581){
_581=dojo.byId(_581);
if(document.selection&&document.body.createTextRange){
var _582=_581.createTextRange();
_582.moveStart("character",0);
_582.moveEnd("character",_581.value.length);
_582.select();
}else{
if(window["getSelection"]){
var _583=window.getSelection();
_581.setSelectionRange(0,_581.value.length);
}
}
_581.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _584=window.getSelection();
if(dojo.lang.isString(_584)){
return _584=="";
}else{
return _584.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 _58f=dojo.byId(node);
type=type.toLowerCase();
while((_58f)&&(_58f.nodeName.toLowerCase()!=type)){
if(_58f==(document["body"]||document["documentElement"])){
return null;
}
_58f=_58f.parentNode;
}
return _58f;
};
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,_59b){
return dojo.lang.inArray(dojo.html.getClasses(node),_59b);
};
dojo.html.prependClass=function(node,_59d){
_59d+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_59d);
};
dojo.html.addClass=function(node,_59f){
if(dojo.html.hasClass(node,_59f)){
return false;
}
_59f=dojo.string.trim(dojo.html.getClass(node)+" "+_59f);
return dojo.html.setClass(node,_59f);
};
dojo.html.setClass=function(node,_5a1){
node=dojo.byId(node);
var cs=new String(_5a1);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_5a1);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_5a4,_5a5){
var _5a4=dojo.string.trim(new String(_5a4));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_5a5){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_5a4)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_5a4){
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,_5aa,_5ab){
dojo.html.removeClass(node,_5ab);
dojo.html.addClass(node,_5aa);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_5ac,_5ad,_5ae,_5af,_5b0){
_5ad=dojo.byId(_5ad)||document;
var _5b1=_5ac.split(/\s+/g);
var _5b2=[];
if(_5af!=1&&_5af!=2){
_5af=0;
}
var _5b3=new RegExp("(\\s|^)(("+_5b1.join(")|(")+"))(\\s|$)");
var _5b4=[];
if(!_5b0&&document.evaluate){
var _5b5="//"+(_5ae||"*")+"[contains(";
if(_5af!=dojo.html.classMatchType.ContainsAny){
_5b5+="concat(' ',@class,' '), ' "+_5b1.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')]";
}else{
_5b5+="concat(' ',@class,' '), ' "+_5b1.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _5b6=document.evaluate(_5b5,_5ad,null,XPathResult.ANY_TYPE,null);
var _5b7=_5b6.iterateNext();
while(_5b7){
try{
_5b4.push(_5b7);
_5b7=_5b6.iterateNext();
}
catch(e){
break;
}
}
return _5b4;
}else{
if(!_5ae){
_5ae="*";
}
_5b4=_5ad.getElementsByTagName(_5ae);
var node,i=0;
outer:
while(node=_5b4[i++]){
var _5b9=dojo.html.getClasses(node);
if(_5b9.length==0){
continue outer;
}
var _5ba=0;
for(var j=0;j<_5b9.length;j++){
if(_5b3.test(_5b9[j])){
if(_5af==dojo.html.classMatchType.ContainsAny){
_5b2.push(node);
continue outer;
}else{
_5ba++;
}
}else{
if(_5af==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_5ba==_5b1.length){
if((_5af==dojo.html.classMatchType.IsOnly)&&(_5ba==_5b9.length)){
_5b2.push(node);
}else{
if(_5af==dojo.html.classMatchType.ContainsAll){
_5b2.push(node);
}
}
}
}
return _5b2;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _5bd={x:0,y:0};
if(e.pageX||e.pageY){
_5bd.x=e.pageX;
_5bd.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_5bd.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_5bd.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _5bd;
};
dojo.html.overElement=function(_5c0,e){
_5c0=dojo.byId(_5c0);
var _5c2=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_5c0,true);
var _5c4=top+getInnerHeight(_5c0);
var left=getAbsoluteX(_5c0,true);
var _5c6=left+getInnerWidth(_5c0);
}
return (_5c2.x>=left&&_5c2.x<=_5c6&&_5c2.y>=top&&_5c2.y<=_5c4);
};
dojo.html.setActiveStyleSheet=function(_5c7){
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")==_5c7){
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(_5ce,_5cf){
if(dojo.lang.isUndefined(_5cf.style.cssText)){
_5ce.setAttribute("style",_5cf.getAttribute("style"));
}else{
_5ce.style.cssText=_5cf.style.cssText;
}
dojo.html.addClass(_5ce,dojo.html.getClass(_5cf));
};
dojo.html._callExtrasDeprecated=function(_5d0,args){
var _5d2="dojo.html.extras";
dojo.deprecated("dojo.html."+_5d0,"moved to "+_5d2,"0.4");
dojo["require"](_5d2);
return dojo.html[_5d0].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.string.substituteParams=function(_5d3,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _5d3.replace(/\%\{(\w+)\}/g,function(_5d6,key){
return map[key]||dojo.raise("Substitution not found: "+key);
});
};
dojo.string.paramString=function(str,_5d9,_5da){
dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");
for(var name in _5d9){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_5d9[name]);
}
if(_5da){
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 _5de=str.split(" ");
for(var i=0;i<_5de.length;i++){
_5de[i]=_5de[i].charAt(0).toUpperCase()+_5de[i].substring(1);
}
return _5de.join(" ");
};
dojo.string.isBlank=function(str){
if(!dojo.lang.isString(str)){
return true;
}
return (dojo.string.trim(str).length==0);
};
dojo.string.encodeAscii=function(str){
if(!dojo.lang.isString(str)){
return str;
}
var ret="";
var _5e3=escape(str);
var _5e4,re=/%u([0-9A-F]{4})/i;
while((_5e4=_5e3.match(re))){
var num=Number("0x"+_5e4[1]);
var _5e6=escape("&#"+num+";");
ret+=_5e3.substring(0,_5e4.index)+_5e6;
_5e3=_5e3.substring(_5e4.index+_5e4[0].length);
}
ret+=_5e3.replace(/\+/g,"%2B");
return ret;
};
dojo.string.escape=function(type,str){
var args=dojo.lang.toArray(arguments,1);
switch(type.toLowerCase()){
case "xml":
case "html":
case "xhtml":
return dojo.string.escapeXml.apply(this,args);
case "sql":
return dojo.string.escapeSql.apply(this,args);
case "regexp":
case "regex":
return dojo.string.escapeRegExp.apply(this,args);
case "javascript":
case "jscript":
case "js":
return dojo.string.escapeJavaScript.apply(this,args);
case "ascii":
return dojo.string.encodeAscii.apply(this,args);
default:
return str;
}
};
dojo.string.escapeXml=function(str,_5eb){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_5eb){
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,_5f4){
if(_5f4){
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,_5f8,_5f9){
if(_5f9){
str=str.toLowerCase();
_5f8=_5f8.toLowerCase();
}
return str.indexOf(_5f8)==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,_5ff){
if(_5ff=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_5ff=="\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,_601){
var _602=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_601){
_602.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_602.push(str.substr(prevcomma));
return _602;
};
dojo.provide("dojo.html.extras");
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _606=dojo.html.getCursorPosition(e);
with(dojo.html){
var _607=getAbsoluteX(node,true)+(getInnerWidth(node)/2);
var _608=getAbsoluteY(node,true)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_606.x<_607?WEST:EAST)|(_606.y<_608?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 _60a="";
if(node==null){
return _60a;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _60c="unknown";
try{
_60c=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_60c){
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":
_60a+="\n";
_60a+=dojo.html.renderedTextContent(node.childNodes[i]);
_60a+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_60a+="\n";
}else{
_60a+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _60e="unknown";
try{
_60e=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_60e){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_60e){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_60a)){
text.replace(/^\s/,"");
}
break;
}
_60a+=text;
break;
default:
break;
}
}
return _60a;
};
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 _612="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_612="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_612="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_612="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _613=null;
switch(_612){
case "cell":
_613=tn.getElementsByTagName("tr")[0];
break;
case "row":
_613=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_613=tn.getElementsByTagName("table")[0];
break;
default:
_613=tn;
break;
}
var _614=[];
for(var x=0;x<_613.childNodes.length;x++){
_614.push(_613.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _614;
};
dojo.html.placeOnScreen=function(node,_617,_618,_619,_61a){
if(dojo.lang.isArray(_617)){
_61a=_619;
_619=_618;
_618=_617[1];
_617=_617[0];
}
if(!isNaN(_619)){
_619=[Number(_619),Number(_619)];
}else{
if(!dojo.lang.isArray(_619)){
_619=[0,0];
}
}
var _61b=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_619[0];
var h=node.offsetHeight+_619[1];
if(_61a){
_617-=_61b.x;
_618-=_61b.y;
}
var x=_617+w;
if(x>view.w){
x=view.w-w;
}else{
x=_617;
}
x=Math.max(_619[0],x)+_61b.x;
var y=_618+h;
if(y>view.h){
y=view.h-h;
}else{
y=_618;
}
y=Math.max(_619[1],y)+_61b.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,_623,_624,_625,_626){
if(dojo.lang.isArray(_623)){
_626=_625;
_625=_624;
_624=_623[1];
_623=_623[0];
}
if(!isNaN(_625)){
_625=[Number(_625),Number(_625)];
}else{
if(!dojo.lang.isArray(_625)){
_625=[0,0];
}
}
var _627=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var _629=node.style.display;
node.style.display="";
var w=dojo.style.getInnerWidth(node);
var h=dojo.style.getInnerHeight(node);
node.style.display=_629;
if(_626){
_623-=_627.x;
_624-=_627.y;
}
var x=-1,y=-1;
if((_623+_625[0])+w<=view.w&&(_624+_625[1])+h<=view.h){
x=(_623+_625[0]);
y=(_624+_625[1]);
}
if((x<0||y<0)&&(_623-_625[0])<=view.w&&(_624+_625[1])+h<=view.h){
x=(_623-_625[0])-w;
y=(_624+_625[1]);
}
if((x<0||y<0)&&(_623+_625[0])+w<=view.w&&(_624-_625[1])<=view.h){
x=(_623+_625[0]);
y=(_624-_625[1])-h;
}
if((x<0||y<0)&&(_623-_625[0])<=view.w&&(_624-_625[1])<=view.h){
x=(_623-_625[0])-w;
y=(_624-_625[1])-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_623,_624,_625,_626);
}
x+=_627.x;
y+=_627.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.ie55||dojo.render.html.ie60){
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&&this.domNode.parentElement){
var w=dojo.style.getOuterWidth(this.domNode);
var h=dojo.style.getOuterHeight(this.domNode);
if(w==0||h==0){
dojo.lang.setTimeout(this,this.onResized,50);
return;
}
var s=this.iframe.style;
s.width=w+"px";
s.height=h+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _634=dojo.style.toCoordinateArray(node,true);
var s=this.iframe.style;
s.width=_634.w+"px";
s.height=_634.h+"px";
s.left=_634.x+"px";
s.top=_634.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.lfx.Line=function(_638,end){
this.start=_638;
this.end=end;
if(dojo.lang.isArray(_638)){
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-_638;
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(_647,_648,_649,_64a,_64b,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_647)||(!_647&&_648.getValue)){
rate=_64b;
_64b=_64a;
_64a=_649;
_649=_648;
_648=_647;
_647=null;
}else{
if(_647.getValue||dojo.lang.isArray(_647)){
rate=_64a;
_64b=_649;
_64a=_648;
_649=_647;
_648=null;
_647=null;
}
}
if(dojo.lang.isArray(_649)){
this.curve=new dojo.lfx.Line(_649[0],_649[1]);
}else{
this.curve=_649;
}
if(_648!=null&&_648>0){
this.duration=_648;
}
if(_64b){
this.repeatCount=_64b;
}
if(rate){
this.rate=rate;
}
if(_647){
this.handler=_647.handler;
this.beforeBegin=_647.beforeBegin;
this.onBegin=_647.onBegin;
this.onEnd=_647.onEnd;
this.onPlay=_647.onPlay;
this.onPause=_647.onPause;
this.onStop=_647.onStop;
this.onAnimate=_647.onAnimate;
}
if(_64a&&dojo.lang.isFunction(_64a)){
this.easing=_64a;
}
};
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(_64d,_64e){
if(_64e){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return this;
}
}
this.fire("handler",["beforeBegin"]);
this.fire("beforeBegin");
if(_64d>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_64e);
}),_64d);
return this;
}
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 _650=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_650]);
this.fire("onBegin",[_650]);
}
this.fire("handler",["play",_650]);
this.fire("onPlay",[_650]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _651=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_651]);
this.fire("onPause",[_651]);
return this;
},gotoPercent:function(pct,_653){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_653){
this.play();
}
},stop:function(_654){
clearTimeout(this._timer);
var step=this._percent/100;
if(_654){
step=1;
}
var _656=this.curve.getValue(step);
this.fire("handler",["stop",_656]);
this.fire("onStop",[_656]);
this._active=false;
this._paused=false;
return this;
},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 _659=this.curve.getValue(step);
this.fire("handler",["animate",_659]);
this.fire("onAnimate",[_659]);
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;
}
}
}
}
}
return this;
}});
dojo.lfx.Combine=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _65a=arguments;
if(_65a.length==1&&(dojo.lang.isArray(_65a[0])||dojo.lang.isArrayLike(_65a[0]))){
_65a=_65a[0];
}
var _65b=this;
dojo.lang.forEach(_65a,function(anim){
_65b._anims.push(anim);
var _65d=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_65d();
_65b._onAnimsEnded();
};
});
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_65e,_65f){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_65e>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_65f);
}),_65e);
return this;
}
if(_65f||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_65f);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_660){
this.fire("onStop");
this._animsCall("stop",_660);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_661){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _664=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_661](args);
},_664);
return this;
}});
dojo.lfx.Chain=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _666=arguments;
if(_666.length==1&&(dojo.lang.isArray(_666[0])||dojo.lang.isArrayLike(_666[0]))){
_666=_666[0];
}
var _667=this;
dojo.lang.forEach(_666,function(anim,i,_66a){
_667._anims.push(anim);
var _66b=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
if(i<_66a.length-1){
anim.onEnd=function(){
_66b();
_667._playNext();
};
}else{
anim.onEnd=function(){
_66b();
_667.fire("onEnd");
};
}
},_667);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_66c,_66d){
if(!this._anims.length){
return this;
}
if(_66d||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _66e=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_66c>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_66d);
}),_66c);
return this;
}
if(_66e){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_66e.play(null,_66d);
}
return this;
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
this.fire("onPause",[this._currAnim]);
}
return this;
},playPause:function(){
if(this._anims.length==0){
return this;
}
if(this._currAnim==-1){
this._currAnim=0;
}
var _66f=this._anims[this._currAnim];
if(_66f){
if(!_66f._active||_66f._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _670=this._anims[this._currAnim];
if(_670){
_670.stop();
this.fire("onStop",[this._currAnim]);
}
return _670;
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return this;
}
this._currAnim++;
if(this._anims[this._currAnim]){
this._anims[this._currAnim].play(null,true);
}
return this;
}});
dojo.lfx.combine=function(){
var _671=arguments;
if(dojo.lang.isArray(arguments[0])){
_671=arguments[0];
}
return new dojo.lfx.Combine(_671);
};
dojo.lfx.chain=function(){
var _672=arguments;
if(dojo.lang.isArray(arguments[0])){
_672=arguments[0];
}
return new dojo.lfx.Chain(_672);
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_673){
if(!_673){
return [];
}
if(dojo.lang.isArray(_673)){
if(!_673.alreadyChecked){
var n=[];
dojo.lang.forEach(_673,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _673;
}
}else{
var n=[];
n.push(dojo.byId(_673));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_676,_677,_678,_679){
_676=dojo.lfx.html._byId(_676);
if(_676.length==1){
dojo.lang.forEach(_677,function(prop){
if(typeof prop["start"]=="undefined"){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.style.getComputedStyle(_676[0],prop.property));
}else{
prop.start=dojo.style.getOpacity(_676[0]);
}
}
});
}
var _67b=function(_67c){
var _67d=new Array(_67c.length);
for(var i=0;i<_67c.length;i++){
_67d[i]=Math.round(_67c[i]);
}
return _67d;
};
var _67f=function(n,_681){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _681){
if(s=="opacity"){
dojo.style.setOpacity(n,_681[s]);
}else{
n.style[s]=_681[s];
}
}
};
var _683=function(_684){
this._properties=_684;
this.diffs=new Array(_684.length);
dojo.lang.forEach(_684,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 _68b=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.graphics.color.Color){
_68b=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_68b+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_68b+=")";
}else{
_68b=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.style.toCamelCase(prop.property)]=_68b;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({onAnimate:function(_68e){
dojo.lang.forEach(_676,function(node){
_67f(node,_68e);
});
}},_678,new _683(_677),_679);
return anim;
};
dojo.lfx.html._makeFadeable=function(_690){
var _691=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(_690)){
dojo.lang.forEach(_690,_691);
}else{
_691(_690);
}
};
dojo.lfx.html.fadeIn=function(_693,_694,_695,_696){
_693=dojo.lfx.html._byId(_693);
dojo.lfx.html._makeFadeable(_693);
var anim=dojo.lfx.propertyAnimation(_693,[{property:"opacity",start:dojo.style.getOpacity(_693[0]),end:1}],_694,_695);
if(_696){
var _698=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_698();
_696(_693,anim);
};
}
return anim;
};
dojo.lfx.html.fadeOut=function(_699,_69a,_69b,_69c){
_699=dojo.lfx.html._byId(_699);
dojo.lfx.html._makeFadeable(_699);
var anim=dojo.lfx.propertyAnimation(_699,[{property:"opacity",start:dojo.style.getOpacity(_699[0]),end:0}],_69a,_69b);
if(_69c){
var _69e=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_69e();
_69c(_699,anim);
};
}
return anim;
};
dojo.lfx.html.fadeShow=function(_69f,_6a0,_6a1,_6a2){
var anim=dojo.lfx.html.fadeIn(_69f,_6a0,_6a1,_6a2);
var _6a4=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_6a4();
if(dojo.lang.isArrayLike(_69f)){
dojo.lang.forEach(_69f,dojo.style.show);
}else{
dojo.style.show(_69f);
}
};
return anim;
};
dojo.lfx.html.fadeHide=function(_6a5,_6a6,_6a7,_6a8){
var anim=dojo.lfx.html.fadeOut(_6a5,_6a6,_6a7,function(){
if(dojo.lang.isArrayLike(_6a5)){
dojo.lang.forEach(_6a5,dojo.style.hide);
}else{
dojo.style.hide(_6a5);
}
if(_6a8){
_6a8(_6a5,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_6aa,_6ab,_6ac,_6ad){
_6aa=dojo.lfx.html._byId(_6aa);
var _6ae=[];
dojo.lang.forEach(_6aa,function(node){
var _6b0=dojo.style.getStyle(node,"overflow");
if(_6b0=="visible"){
node.style.overflow="hidden";
}
node.style.height="0px";
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:0,end:node.scrollHeight}],_6ab,_6ac);
var _6b2=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6b2();
node.style.overflow=_6b0;
node.style.height="auto";
if(_6ad){
_6ad(node,anim);
}
};
_6ae.push(anim);
});
if(_6aa.length>1){
return dojo.lfx.combine(_6ae);
}else{
return _6ae[0];
}
};
dojo.lfx.html.wipeOut=function(_6b3,_6b4,_6b5,_6b6){
_6b3=dojo.lfx.html._byId(_6b3);
var _6b7=[];
dojo.lang.forEach(_6b3,function(node){
var _6b9=dojo.style.getStyle(node,"overflow");
if(_6b9=="visible"){
node.style.overflow="hidden";
}
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:dojo.style.getContentBoxHeight(node),end:0}],_6b4,_6b5);
var _6bb=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6bb();
dojo.style.hide(node);
node.style.overflow=_6b9;
if(_6b6){
_6b6(node,anim);
}
};
_6b7.push(anim);
});
if(_6b3.length>1){
return dojo.lfx.combine(_6b7);
}else{
return _6b7[0];
}
};
dojo.lfx.html.slideTo=function(_6bc,_6bd,_6be,_6bf,_6c0){
_6bc=dojo.lfx.html._byId(_6bc);
var _6c1=[];
dojo.lang.forEach(_6bc,function(node){
var top=null;
var left=null;
var init=(function(){
var _6c6=node;
return function(){
top=_6c6.offsetTop;
left=_6c6.offsetLeft;
if(!dojo.style.isPositionAbsolute(_6c6)){
var ret=dojo.style.abs(_6c6,true);
dojo.style.setStyleAttributes(_6c6,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:_6bd[0]},{property:"left",start:left,end:_6bd[1]}],_6be,_6bf);
var _6c9=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_6c9();
init();
};
if(_6c0){
var _6ca=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6ca();
_6c0(_6bc,anim);
};
}
_6c1.push(anim);
});
if(_6bc.length>1){
return dojo.lfx.combine(_6c1);
}else{
return _6c1[0];
}
};
dojo.lfx.html.slideBy=function(_6cb,_6cc,_6cd,_6ce,_6cf){
_6cb=dojo.lfx.html._byId(_6cb);
var _6d0=[];
dojo.lang.forEach(_6cb,function(node){
var top=null;
var left=null;
var init=(function(){
var _6d5=node;
return function(){
top=node.offsetTop;
left=node.offsetLeft;
if(!dojo.style.isPositionAbsolute(_6d5)){
var ret=dojo.style.abs(_6d5);
dojo.style.setStyleAttributes(_6d5,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:top+_6cc[0]},{property:"left",start:left,end:left+_6cc[1]}],_6cd,_6ce);
var _6d8=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_6d8();
init();
};
if(_6cf){
var _6d9=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6d9();
_6cf(_6cb,anim);
};
}
_6d0.push(anim);
});
if(_6cb.length>1){
return dojo.lfx.combine(_6d0);
}else{
return _6d0[0];
}
};
dojo.lfx.html.explode=function(_6da,_6db,_6dc,_6dd,_6de){
_6da=dojo.byId(_6da);
_6db=dojo.byId(_6db);
var _6df=dojo.style.toCoordinateArray(_6da,true);
var _6e0=document.createElement("div");
dojo.html.copyStyle(_6e0,_6db);
with(_6e0.style){
position="absolute";
display="none";
}
document.body.appendChild(_6e0);
with(_6db.style){
visibility="hidden";
display="block";
}
var _6e1=dojo.style.toCoordinateArray(_6db,true);
with(_6db.style){
display="none";
visibility="visible";
}
var anim=new dojo.lfx.propertyAnimation(_6e0,[{property:"height",start:_6df[3],end:_6e1[3]},{property:"width",start:_6df[2],end:_6e1[2]},{property:"top",start:_6df[1],end:_6e1[1]},{property:"left",start:_6df[0],end:_6e1[0]},{property:"opacity",start:0.3,end:1}],_6dc,_6dd);
anim.beforeBegin=function(){
dojo.style.setDisplay(_6e0,"block");
};
anim.onEnd=function(){
dojo.style.setDisplay(_6db,"block");
_6e0.parentNode.removeChild(_6e0);
};
if(_6de){
var _6e3=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6e3();
_6de(_6db,anim);
};
}
return anim;
};
dojo.lfx.html.implode=function(_6e4,end,_6e6,_6e7,_6e8){
_6e4=dojo.byId(_6e4);
end=dojo.byId(end);
var _6e9=dojo.style.toCoordinateArray(_6e4,true);
var _6ea=dojo.style.toCoordinateArray(end,true);
var _6eb=document.createElement("div");
dojo.html.copyStyle(_6eb,_6e4);
dojo.style.setOpacity(_6eb,0.3);
with(_6eb.style){
position="absolute";
display="none";
}
document.body.appendChild(_6eb);
var anim=new dojo.lfx.propertyAnimation(_6eb,[{property:"height",start:_6e9[3],end:_6ea[3]},{property:"width",start:_6e9[2],end:_6ea[2]},{property:"top",start:_6e9[1],end:_6ea[1]},{property:"left",start:_6e9[0],end:_6ea[0]},{property:"opacity",start:1,end:0.3}],_6e6,_6e7);
anim.beforeBegin=function(){
dojo.style.hide(_6e4);
dojo.style.show(_6eb);
};
anim.onEnd=function(){
_6eb.parentNode.removeChild(_6eb);
};
if(_6e8){
var _6ed=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6ed();
_6e8(_6e4,anim);
};
}
return anim;
};
dojo.lfx.html.highlight=function(_6ee,_6ef,_6f0,_6f1,_6f2){
_6ee=dojo.lfx.html._byId(_6ee);
var _6f3=[];
dojo.lang.forEach(_6ee,function(node){
var _6f5=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _6f7=dojo.style.getStyle(node,"background-image");
var _6f8=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_6f5.length>3){
_6f5.pop();
}
var rgb=new dojo.graphics.color.Color(_6ef);
var _6fa=new dojo.graphics.color.Color(_6f5);
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:rgb,end:_6fa}],_6f0,_6f1);
var _6fc=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_6fc();
if(_6f7){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
};
var _6fd=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6fd();
if(_6f7){
node.style.backgroundImage=_6f7;
}
if(_6f8){
node.style.backgroundColor="transparent";
}
if(_6f2){
_6f2(node,anim);
}
};
_6f3.push(anim);
});
if(_6ee.length>1){
return dojo.lfx.combine(_6f3);
}else{
return _6f3[0];
}
};
dojo.lfx.html.unhighlight=function(_6fe,_6ff,_700,_701,_702){
_6fe=dojo.lfx.html._byId(_6fe);
var _703=[];
dojo.lang.forEach(_6fe,function(node){
var _705=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node));
var rgb=new dojo.graphics.color.Color(_6ff);
var _707=dojo.style.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:_705,end:rgb}],_700,_701);
var _709=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_709();
if(_707){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_705.toRgb().join(",")+")";
};
var _70a=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_70a();
if(_702){
_702(node,anim);
}
};
_703.push(anim);
});
if(_6fe.length>1){
return dojo.lfx.combine(_703);
}else{
return _703[0];
}
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_70c,_70d,_70e){
dojo.style.show(node);
if(dojo.lang.isFunction(_70e)){
_70e();
}
},hide:function(node,_710,_711,_712){
dojo.style.hide(node);
if(dojo.lang.isFunction(_712)){
_712();
}
}};
dojo.lfx.toggle.fade={show:function(node,_714,_715,_716){
dojo.lfx.fadeShow(node,_714,_715,_716).play();
},hide:function(node,_718,_719,_71a){
dojo.lfx.fadeHide(node,_718,_719,_71a).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_71c,_71d,_71e){
dojo.lfx.wipeIn(node,_71c,_71d,_71e).play();
},hide:function(node,_720,_721,_722){
dojo.lfx.wipeOut(node,_720,_721,_722).play();
}};
dojo.lfx.toggle.explode={show:function(node,_724,_725,_726,_727){
dojo.lfx.explode(_727||[0,0,0,0],node,_724,_725,_726).play();
},hide:function(node,_729,_72a,_72b,_72c){
dojo.lfx.implode(node,_72c||[0,0,0,0],_729,_72a,_72b).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
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(_731){
var ch=this.getContainerHeight();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_735){
try{
if(!_735){
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;
this.checkSize();
},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;
},checkSize: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(_73a){
_73a.checkSize();
});
}});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.io.IO");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_73c,_73d,_73e){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_73c){
this.mimetype=_73c;
}
if(_73d){
this.transport=_73d;
}
if(arguments.length>=4){
this.changeUrl=_73e;
}
}
};
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,_743){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_745){
if(_745["url"]){
_745.url=_745.url.toString();
}
if(_745["formNode"]){
_745.formNode=dojo.byId(_745.formNode);
}
if(!_745["method"]&&_745["formNode"]&&_745["formNode"].method){
_745.method=_745["formNode"].method;
}
if(!_745["handle"]&&_745["handler"]){
_745.handle=_745.handler;
}
if(!_745["load"]&&_745["loaded"]){
_745.load=_745.loaded;
}
if(!_745["changeUrl"]&&_745["changeURL"]){
_745.changeUrl=_745.changeURL;
}
_745.encoding=dojo.lang.firstValued(_745["encoding"],djConfig["bindEncoding"],"");
_745.sendTransport=dojo.lang.firstValued(_745["sendTransport"],djConfig["ioSendTransport"],false);
var _746=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_746(_745[fn])){
continue;
}
if(_746(_745["handle"])){
_745[fn]=_745.handle;
}
}
dojo.lang.mixin(this,_745);
}});
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(_74d){
if(!(_74d instanceof dojo.io.Request)){
try{
_74d=new dojo.io.Request(_74d);
}
catch(e){
dojo.debug(e);
}
}
var _74e="";
if(_74d["transport"]){
_74e=_74d["transport"];
if(!this[_74e]){
return _74d;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_74d))){
_74e=tmp;
}
}
if(_74e==""){
return _74d;
}
}
var xhr=this[_74e].bind(_74d);
_74d.bindSuccess=true;
return xhr;
};
dojo.io.queueBind=function(_752){
if(!(_752 instanceof dojo.io.Request)){
try{
_752=new dojo.io.Request(_752);
}
catch(e){
dojo.debug(e);
}
}
var _753=_752.load;
_752.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_753.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _755=_752.error;
_752.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_755.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_752);
dojo.io._dispatchNextQueueBind();
return _752;
};
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,_758,last){
var enc=/utf/i.test(_758||"")?encodeURIComponent:dojo.string.encodeAscii;
var _75b=[];
var _75c=new Object();
for(var name in map){
var _75e=function(elt){
var val=enc(name)+"="+enc(elt);
_75b[(last==name)?"push":"unshift"](val);
};
if(!_75c[name]){
var _761=map[name];
if(dojo.lang.isArray(_761)){
dojo.lang.forEach(_761,_75e);
}else{
_75e(_761);
}
}
}
return _75b.join("&");
};
dojo.io.setIFrameSrc=function(_762,src,_764){
try{
var r=dojo.render.html;
if(!_764){
if(r.safari){
_762.location=src;
}else{
frames[_762.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_762.contentWindow.document;
}else{
if(r.safari){
idoc=_762.document;
}else{
idoc=_762.contentWindow;
}
}
if(!idoc){
_762.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.undo.browser");
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){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
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 _76b=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_76d){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_76b.apply(this,[_76d]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _76e=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_770){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_76e){
_76e.apply(this,[_770]);
}
};
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,_773){
if(!dojo.render.html.opera){
var _774=this._getUrlQuery(_773.href);
if(_774==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_774==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_774==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _775=this.historyStack.pop();
if(!_775){
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(_775);
},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 _779=url.split("?");
if(_779.length<2){
return null;
}else{
return _779[1];
}
}};
dojo.provide("dojo.io.BrowserIO");
dojo.io.checkChildrenForFile=function(node){
var _77b=false;
var _77c=node.getElementsByTagName("input");
dojo.lang.forEach(_77c,function(_77d){
if(_77b){
return;
}
if(_77d.getAttribute("type")=="file"){
_77b=true;
}
});
return _77b;
};
dojo.io.formHasFile=function(_77e){
return dojo.io.checkChildrenForFile(_77e);
};
dojo.io.updateNode=function(node,_780){
node=dojo.byId(node);
var args=_780;
if(dojo.lang.isString(_780)){
args={url:_780};
}
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(_787,_788,_789){
if((!_787)||(!_787.tagName)||(!_787.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_789){
_789=dojo.io.formFilter;
}
var enc=/utf/i.test(_788||"")?encodeURIComponent:dojo.string.encodeAscii;
var _78b=[];
for(var i=0;i<_787.elements.length;i++){
var elm=_787.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_789(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){
_78b.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_78b.push(name+"="+enc(elm.value));
}
}else{
_78b.push(name+"="+enc(elm.value));
}
}
}
var _791=_787.getElementsByTagName("input");
for(var i=0;i<_791.length;i++){
var _792=_791[i];
if(_792.type.toLowerCase()=="image"&&_792.form==_787&&_789(_792)){
var name=enc(_792.name);
_78b.push(name+"="+enc(_792.value));
_78b.push(name+".x=0");
_78b.push(name+".y=0");
}
}
return _78b.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 _798=form.getElementsByTagName("input");
for(var i=0;i<_798.length;i++){
var _799=_798[i];
if(_799.type.toLowerCase()=="image"&&_799.form==form){
this.connect(_799,"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 _7a0=false;
if(node.disabled||!node.name){
_7a0=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_7a0=node==this.clickedButton;
}else{
_7a0=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _7a0;
},connect:function(_7a1,_7a2,_7a3){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_7a1,_7a2,this,_7a3);
}else{
var fcn=dojo.lang.hitch(this,_7a3);
_7a1[_7a2]=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 _7a6=this;
var _7a7={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_7a9,_7aa){
return url+"|"+_7a9+"|"+_7aa.toLowerCase();
}
function addToCache(url,_7ac,_7ad,http){
_7a7[getCacheKey(url,_7ac,_7ad)]=http;
}
function getFromCache(url,_7b0,_7b1){
return _7a7[getCacheKey(url,_7b0,_7b1)];
}
this.clearCache=function(){
_7a7={};
};
function doLoad(_7b2,http,url,_7b5,_7b6){
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(_7b2.method.toLowerCase()=="head"){
var _7b8=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _7b8;
};
var _7b9=_7b8.split(/[\r\n]+/g);
for(var i=0;i<_7b9.length;i++){
var pair=_7b9[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_7b2.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_7b2.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_7b2.mimetype=="application/xml")||(_7b2.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"||!http.getResponseHeader("Content-Type")){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_7b6){
addToCache(url,_7b5,_7b2.method,http);
}
_7b2[(typeof _7b2.load=="function")?"load":"handle"]("load",ret,http,_7b2);
}else{
var _7bc=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_7b2[(typeof _7b2.error=="function")?"error":"handle"]("error",_7bc,http,_7b2);
}
}
function setHeaders(http,_7be){
if(_7be["headers"]){
for(var _7bf in _7be["headers"]){
if(_7bf.toLowerCase()=="content-type"&&!_7be["contentType"]){
_7be["contentType"]=_7be["headers"][_7bf];
}else{
http.setRequestHeader(_7bf,_7be["headers"][_7bf]);
}
}
}
}
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 _7c3=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_7c4){
return _7c3&&dojo.lang.inArray((_7c4["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_7c4["formNode"]&&dojo.io.formHasFile(_7c4["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_7c5){
if(!_7c5["url"]){
if(!_7c5["formNode"]&&(_7c5["backButton"]||_7c5["back"]||_7c5["changeUrl"]||_7c5["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(_7c5);
return true;
}
}
var url=_7c5.url;
var _7c7="";
if(_7c5["formNode"]){
var ta=_7c5.formNode.getAttribute("action");
if((ta)&&(!_7c5["url"])){
url=ta;
}
var tp=_7c5.formNode.getAttribute("method");
if((tp)&&(!_7c5["method"])){
_7c5.method=tp;
}
_7c7+=dojo.io.encodeForm(_7c5.formNode,_7c5.encoding,_7c5["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_7c5["file"]){
_7c5.method="post";
}
if(!_7c5["method"]){
_7c5.method="get";
}
if(_7c5.method.toLowerCase()=="get"){
_7c5.multipart=false;
}else{
if(_7c5["file"]){
_7c5.multipart=true;
}else{
if(!_7c5["multipart"]){
_7c5.multipart=false;
}
}
}
if(_7c5["backButton"]||_7c5["back"]||_7c5["changeUrl"]){
dojo.undo.browser.addToHistory(_7c5);
}
var _7ca=_7c5["content"]||{};
if(_7c5.sendTransport){
_7ca["dojo.transport"]="xmlhttp";
}
do{
if(_7c5.postContent){
_7c7=_7c5.postContent;
break;
}
if(_7ca){
_7c7+=dojo.io.argsFromMap(_7ca,_7c5.encoding);
}
if(_7c5.method.toLowerCase()=="get"||!_7c5.multipart){
break;
}
var t=[];
if(_7c7.length){
var q=_7c7.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(_7c5.file){
if(dojo.lang.isArray(_7c5.file)){
for(var i=0;i<_7c5.file.length;++i){
var o=_7c5.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=_7c5.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+"--","");
_7c7=t.join("\r\n");
}
}while(false);
var _7d0=_7c5["sync"]?false:true;
var _7d1=_7c5["preventCache"]||(this.preventCache==true&&_7c5["preventCache"]!=false);
var _7d2=_7c5["useCache"]==true||(this.useCache==true&&_7c5["useCache"]!=false);
if(!_7d1&&_7d2){
var _7d3=getFromCache(url,_7c7,_7c5.method);
if(_7d3){
doLoad(_7c5,_7d3,url,_7c7,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_7c5);
var _7d5=false;
if(_7d0){
var _7d6=this.inFlight.push({"req":_7c5,"http":http,"url":url,"query":_7c7,"useCache":_7d2,"startTime":_7c5.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_7c5.method.toLowerCase()=="post"){
http.open("POST",url,_7d0);
setHeaders(http,_7c5);
http.setRequestHeader("Content-Type",_7c5.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_7c5.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_7c7);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_7c5,{status:404},url,_7c7,_7d2);
}
}else{
var _7d7=url;
if(_7c7!=""){
_7d7+=(_7d7.indexOf("?")>-1?"&":"?")+_7c7;
}
if(_7d1){
_7d7+=(dojo.string.endsWithAny(_7d7,"?","&")?"":(_7d7.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_7c5.method.toUpperCase(),_7d7,_7d0);
setHeaders(http,_7c5);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_7c5,{status:404},url,_7c7,_7d2);
}
}
if(!_7d0){
doLoad(_7c5,http,url,_7c7,_7d2);
}
_7c5.abort=function(){
return http.abort();
};
return http;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_7d9,days,path,_7dc,_7dd){
var _7de=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_7de=d.toGMTString();
}
_7d9=escape(_7d9);
document.cookie=name+"="+_7d9+";"+(_7de!=-1?" expires="+_7de+";":"")+(path?"path="+path:"")+(_7dc?"; domain="+_7dc:"")+(_7dd?"; 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;
}
var _7e2=document.cookie.substring(idx+name.length+1);
var end=_7e2.indexOf(";");
if(end==-1){
end=_7e2.length;
}
_7e2=_7e2.substring(0,end);
_7e2=unescape(_7e2);
return _7e2;
};
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,_7e9,_7ea,_7eb){
if(arguments.length==5){
_7eb=_7e9;
_7e9=null;
_7ea=null;
}
var _7ec=[],cookie,value="";
if(!_7eb){
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){
_7ec.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_7ec.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_7e9,_7ea);
};
dojo.io.cookie.getObjectCookie=function(name){
var _7ef=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_7ef={};
var _7f0=cookie.split("&");
for(var i=0;i<_7f0.length;i++){
var pair=_7f0[i].split("=");
var _7f3=pair[1];
if(isNaN(_7f3)){
_7f3=unescape(pair[1]);
}
_7ef[unescape(pair[0])]=_7f3;
}
}
return _7ef;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _7f4=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_7f4=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.io.*");
dojo.provide("dojo.widget.ContentPane");
dojo.provide("dojo.widget.html.ContentPane");
dojo.widget.html.ContentPane=function(){
this._onLoadStack=[];
this._onUnLoadStack=[];
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,adjustPaths: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,_7f7){
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,_7fa){
this._handleDefaults("Loading...","onDownloadStart");
var self=this;
dojo.io.bind({url:url,useCache:_7fa,preventCache:!_7fa,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){
this._runStack("_onLoadStack");
},onUnLoad:function(e){
this._runStack("_onUnLoadStack");
this.scriptScope=null;
},_runStack:function(_801){
var st=this[_801];
var err="";
for(var i=0;i<st.length;i++){
try{
st[i].call(this.scriptScope);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_801]=[];
if(err.length){
var name=(_801=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
this._handleDefaults(name+" failure\n "+err,"onExecError",true);
}
},addOnLoad:function(obj,func){
this._pushOnStack(this._onLoadStack,obj,func);
},addOnUnLoad:function(obj,func){
this._pushOnStack(this._onUnLoadStack,obj,func);
},_pushOnStack:function(_80a,obj,func){
if(typeof func=="undefined"){
_80a.push(obj);
}else{
_80a.push(function(){
obj[func]();
});
}
},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,_814,_815){
if(!_814){
_814="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[_814](e);
if(e.returnValue){
if(_815){
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 _818=[];
var _819=[];
var _81a=[];
var _81b=[];
var _81c=[];
var _81d=[];
var _81e=[];
while(_81e){
_81e=s.match(/<title[^>]*>([\s\S]*?)<\/title>/i);
if(!_81e){
break;
}
_818.push(_81e[1]);
s=s.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"");
}
var _81e=[];
while(_81e){
_81e=s.match(/<style[^>]*>([\s\S]*?)<\/style>/i);
if(!_81e){
break;
}
_81b.push(dojo.style.fixPathsInCssText(_81e[1],url));
s=s.replace(/<style[^>]*?>[\s\S]*?<\/style>/i,"");
}
var pos=0;
var pos2=0;
var stop=0;
var str="";
var _823="";
var attr=[];
var fix="";
var _826="";
var tag="";
var _828="";
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;
_826="";
fix="";
_828="";
var _829=0;
while(pos2!=-1){
_826+=tag.substring(0,pos2)+fix;
tag=tag.substring(pos2+_829,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){
_823=(new dojo.uri.Uri(url,attr[3]).toString());
}else{
pos2=pos2+attr[3].length;
continue;
}
break;
case "style":
_823=dojo.style.fixPathsInCssText(attr[3],url);
break;
default:
pos2=pos2+attr[3].length;
continue;
}
_828=" "+attr[1]+"="+attr[2]+attr[3]+attr[2];
_829=_828.length;
fix=" "+attr[1]+"="+attr[2]+_823+attr[2];
pos2=tag.search(new RegExp(dojo.string.escapeRegExp(_828)));
}
str+=_826+tag;
pos=0;
}
s=str+s;
_81e=[];
var tmp=[];
while(_81e){
_81e=s.match(/<script([^>]*)>([\s\S]*?)<\/script>/i);
if(!_81e){
break;
}
if(_81e[1]){
attr=_81e[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{
_81c.push(attr[2]);
}
}
}
if(_81e[2]){
var sc=_81e[2].replace(/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g,"");
if(!sc){
continue;
}
tmp=[];
while(tmp&&_81d.length<100){
tmp=sc.match(/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix))\((['"]).*?\1\)\s*;?/);
if(!tmp){
break;
}
_81d.push(tmp[0]);
sc=sc.replace(tmp[0],"");
}
_819.push(sc);
}
s=s.replace(/<script[^>]*>[\s\S]*?<\/script>/i,"");
}
if(this.executeScripts){
var _828=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*\S=(['"])[^>]*[^\.\]])scriptScope([^>]*>)/;
var pos=0;
var str="";
_81e=[];
var cit="";
while(pos>-1){
pos=s.search(_828);
if(pos>-1){
cit=((RegExp.$2=="'")?"\"":"'");
str+=s.substring(0,pos);
s=s.substr(pos).replace(_828,"$1dojo.widget.byId("+cit+this.widgetId+cit+").scriptScope$3");
}
}
s=str+s;
}
_81e=[];
while(_81e){
_81e=s.match(/<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>/i);
if(!_81e){
break;
}
attr=_81e[1].match(/href=(['"]?)([^'">]*)\1/i);
if(attr){
_81a.push(attr[2]);
}
s=s.replace(new RegExp(_81e[0]),"");
}
return {"xml":s,"styles":_81b,"linkStyles":_81a,"titles":_818,"requires":_81d,"scripts":_819,"remoteScripts":_81c,"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 content:"+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);
this.onResized();
this.onLoad();
}else{
if((!data.xml)&&(this.adjustPaths)){
data=this.splitAndFixPaths(data);
}
if(this.extractContent){
var _831=data.xml.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_831){
data.xml=_831[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 _833=this;
function asyncParse(){
if(_833.executeScripts){
_833._executeScripts(data);
}
if(_833.parseContent){
var node=_833.containerNode||_833.domNode;
var _835=new dojo.xml.Parse();
var frag=_835.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_833);
}
_833.onResized();
_833.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_837){
var fcn=dojo.lang.isFunction(_837)?_837:window[_837];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_837+"' 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,_83d){
dojo.lang.hitch(self,data.scripts.push(_83d));
},"error":function(type,_83f){
self._handleDefaults.call(self,type+" downloading remote script","onExecError",true);
},"mimetype":"text/plain","sync":true});
}
var _840="";
for(var i=0;i<data.scripts.length;i++){
_840+=data.scripts[i];
}
try{
this.scriptScope=null;
this.scriptScope=new (new Function("_container_",_840+"; return this;"))(self);
}
catch(e){
this._handleDefaults("Error running scripts from content:\n"+e,"onExecError",true);
}
}});
dojo.widget.tags.addParseTreeHandler("dojo:ContentPane");
dojo.provide("dojo.widget.MemSearchContentPane");
dojo.widget.MemSearchContentPane=function(){
dojo.widget.html.ContentPane.call(this);
};
dojo.inherits(dojo.widget.MemSearchContentPane,dojo.widget.html.ContentPane);
dojo.lang.extend(dojo.widget.MemSearchContentPane,{widgetType:"MemSearchContentPane",setUrl:function(url,cnt){
this.href=url;
this.isLoaded=false;
if(this.preload||this.isShowing()){
this.loadContents(cnt);
}
},loadContents:function(cnt){
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,cnt);
}
}
},_downloadExternalContent:function(url,_845,cnt){
_845=false;
this._handleDefaults("<div style='text-align:center; padding-top:60px; padding-bottom:60px;'><img src='res/busy.gif'><span style='position:relative; top:-9px; left: 7px; font-size:120%'>Please wait...</span></div>","onDownloadStart");
var self=this;
dojo.io.bind({url:url,useCache:_845,preventCache:!_845,mimetype:"text/html",method:"POST",content:cnt,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();
}
self.downloadContentSuccess(type,data,e);
}});
},downloadContentSuccess:function(type,data,e){
}});
dojo.widget.tags.addParseTreeHandler("dojo:MemSearchContentPane");
dojo.provide("dojo.widget.ListMemberSearchWidget");
dojo.widget.ListMemberSearchWidget=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.ListMemberSearchWidget,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.ListMemberSearchWidget,{widgetType:"ListMemberSearchWidget",members:[],lastNameSortButton:null,firstNameSortButton:null,emailSortButton:null,currSortBy:"lastNameF",resultsTable:null,categoryRow:null,fillInTemplate:function(args,frag){
this.lastNameSortButton=dojo.byId("listMemberSearchLastNameSortButton");
this.firstNameSortButton=dojo.byId("listMemberSearchFirstNameSortButton");
this.emailSortButton=dojo.byId("listMemberSearchEmailSortButton");
this.resultsTable=dojo.byId("listMemberResultsTable");
this.categoryRow=dojo.byId("listMemberSearchCategories");
this.wireEvents();
},postCreate:function(){
this.currSortBy="lastNameF";
this.members=[];
this.populateMemberResults();
},populateMemberResults:function(){
var trs=this.resultsTable.getElementsByTagName("tr");
for(i in trs){
if(dojo.html.hasAttribute(trs[i],"email")){
this.members.push(dojo.widget.getWidgetById(trs[i].getAttribute("id")));
}
}
},wireEvents:function(){
dojo.event.connect(this.lastNameSortButton,"onclick",this,"sortByLastName");
dojo.event.connect(this.firstNameSortButton,"onclick",this,"sortByFirstName");
dojo.event.connect(this.emailSortButton,"onclick",this,"sortByEmail");
},sortByLastName:function(){
if(this.currSortBy=="lastNameF"){
this.sortBy("lastNameR");
}else{
this.sortBy("lastNameF");
}
},sortByFirstName:function(){
if(this.currSortBy=="firstNameF"){
this.sortBy("firstNameR");
}else{
this.sortBy("firstNameF");
}
},sortByEmail:function(){
if(this.currSortBy=="emailF"){
this.sortBy("emailR");
}else{
this.sortBy("emailF");
}
},sortBy:function(_851){
if(this.currSortBy==_851){
return;
}
switch(_851){
case "lastNameF":
this.members.sort(function(a,b){
if(a.lastName<b.lastName){
return -1;
}else{
if(a.lastName>b.lastName){
return 1;
}else{
return 0;
}
}
});
this.currSortBy="lastNameF";
break;
case "lastNameR":
this.members.sort(function(a,b){
if(a.lastName<b.lastName){
return 1;
}else{
if(a.lastName>b.lastName){
return -1;
}else{
return 0;
}
}
});
this.currSortBy="lastNameR";
break;
case "emailF":
this.members.sort(function(a,b){
if(a.email<b.email){
return -1;
}else{
if(a.email>b.email){
return 1;
}else{
return 0;
}
}
});
this.currSortBy="emailF";
break;
case "emailR":
this.members.sort(function(a,b){
if(a.email<b.email){
return 1;
}else{
if(a.email>b.email){
return -1;
}else{
return 0;
}
}
});
this.currSortBy="emailR";
break;
case "firstNameF":
this.members.sort(function(a,b){
if(a.firstName<b.firstName){
return -1;
}else{
if(a.firstName>b.firstName){
return 1;
}else{
return 0;
}
}
});
this.currSortBy="firstNameF";
break;
case "firstNameR":
this.members.sort(function(a,b){
if(a.firstName<b.firstName){
return 1;
}else{
if(a.firstName>b.firstName){
return -1;
}else{
return 0;
}
}
});
this.currSortBy="firstNameR";
break;
}
this.displayResults();
},displayResults:function(){
for(var i=0;i<this.members.length;++i){
if(i%2==0){
dojo.html.setClass(this.members[i].domNode,"TblResultRow1");
}else{
dojo.html.setClass(this.members[i].domNode,"TblResultRow2");
}
this.resultsTable.appendChild(this.members[i].domNode);
}
}});
dojo.widget.tags.addParseTreeHandler("dojo:ListMemberSearchWidget");
dojo.provide("dojo.widget.SearchMemberListResult");
dojo.widget.SearchMemberListResult=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.SearchMemberListResult,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.SearchMemberListResult,{widgetType:"SearchMemberListResult",email:"",officePhone:"",firstName:"",lastName:"",profileURL:"",fillInTemplate:function(args,frag){
var td1=document.createElement("td");
td1.innerHTML=this.lastName;
this.domNode.appendChild(td1);
var td2=document.createElement("td");
td2.innerHTML=this.firstName;
this.domNode.appendChild(td2);
var td3=document.createElement("td");
td3.innerHTML=this.officePhone;
this.domNode.appendChild(td3);
var td4=document.createElement("td");
td4.innerHTML="<a href='mailto:"+this.email+"?subject=Email from AAML-TX Website' class='common-link'>"+this.email+"</a>";
this.domNode.appendChild(td4);
var td5=document.createElement("td");
td5.innerHTML="<span style='text-decoration: underline; cursor: pointer;'><b>View</b></span>";
this.domNode.appendChild(td5);
var span=this.domNode.getElementsByTagName("span")[0];
var _867=this;
dojo.event.connect(span,"onclick",function(){
location.href=_867.profileURL;
});
},wireEvents:function(){
}});
dojo.widget.tags.addParseTreeHandler("dojo:SearchMemberListResult");
dojo.provide("dojo.widget.ComboBox");
dojo.widget.incrementalComboBoxDataProvider=function(url,_869,_86a){
this.searchUrl=url;
this.inFlight=false;
this.activeRequest=null;
this.allowCache=false;
this.currXHR=null;
this.cache={};
this.init=function(cbox){
this.searchUrl=cbox.dataUrl;
};
this.addToCache=function(_86c,data){
if(this.allowCache){
this.cache[_86c]=data;
}
};
this.startSearch=function(_86e,type,_870){
if(this.inFlight){
}
if(this.currXHR){
this.currXHR.abort();
this.currXHR=null;
}
var tss=encodeURIComponent(_86e);
var _872=dojo.string.paramString(this.searchUrl,{"searchString":tss});
var _873=this;
var _874=dojo.io.bind({url:_872+"?searchStr="+_86e,method:"get",mimetype:"text/json",load:function(type,data,evt){
_873.inFlight=false;
if(!dojo.lang.isArray(data)){
var _878=[];
for(var key in data){
_878.push([data[key],key]);
}
data=_878;
}
_873.addToCache(_86e,data);
_873.provideSearchResults(data);
this.currXHR=null;
}});
this.currXHR=_874;
this.inFlight=true;
};
};
dojo.widget.ComboBoxDataProvider=function(_87a,_87b,_87c){
this.data=[];
this.searchTimeout=500;
this.searchLimit=30;
this.searchType="STARTSTRING";
this.caseSensitive=false;
this._lastSearch="";
this._lastSearchResults=null;
this.init=function(cbox,node){
if(!dojo.string.isBlank(cbox.dataUrl)){
this.getData(cbox.dataUrl);
}else{
if((node)&&(node.nodeName.toLowerCase()=="select")){
var opts=node.getElementsByTagName("option");
var ol=opts.length;
var data=[];
for(var x=0;x<ol;x++){
if(opts[x].value==""){
continue;
}
var _883=[new String(opts[x].innerHTML),new String(opts[x].value)];
data.push(_883);
if(opts[x].selected){
cbox.setAllValues(_883[0],_883[1]);
}
}
this.setData(data);
}
}
};
this.getData=function(url){
dojo.io.bind({url:url,load:dojo.lang.hitch(this,function(type,data,evt){
if(!dojo.lang.isArray(data)){
var _888=[];
for(var key in data){
_888.push([data[key],key]);
}
data=_888;
}
this.setData(data);
}),mimetype:"text/json"});
};
this.startSearch=function(_88a,type,_88c){
this._preformSearch(_88a,type,_88c);
};
this._preformSearch=function(_88d,type,_88f){
var st=type||this.searchType;
var ret=[];
if(!this.caseSensitive){
_88d=_88d.toLowerCase();
}
for(var x=0;x<this.data.length;x++){
if((!_88f)&&(ret.length>=this.searchLimit)){
break;
}
var _893=new String((!this.caseSensitive)?this.data[x][0].toLowerCase():this.data[x][0]);
if(_893.length<_88d.length){
continue;
}
if(st=="STARTSTRING"){
if(_88d==_893.substr(0,_88d.length)){
ret.push(this.data[x]);
}
}else{
if(st=="SUBSTRING"){
if(_893.indexOf(_88d)>=0){
ret.push(this.data[x]);
}
}else{
if(st=="STARTWORD"){
var idx=_893.indexOf(_88d);
if(idx==0){
ret.push(this.data[x]);
}
if(idx<=0){
continue;
}
var _895=false;
while(idx!=-1){
if(" ,/(".indexOf(_893.charAt(idx-1))!=-1){
_895=true;
break;
}
idx=_893.indexOf(_88d,idx+1);
}
if(!_895){
continue;
}else{
ret.push(this.data[x]);
}
}
}
}
}
this.provideSearchResults(ret);
};
this.provideSearchResults=function(_896){
};
this.addData=function(_897){
this.data=this.data.concat(_897);
};
this.setData=function(_898){
this.data=_898;
};
if(_87a){
this.setData(_87a);
}
};
dojo.declare("dojo.widget.ComboBox",null,{widgetType:"ComboBox",isContainer:false,forceValidOption:false,searchType:"stringstart",dataProvider:null,startSearch:function(_899){
},openResultList:function(_89a){
},clearResultList:function(){
},hideResultList:function(){
},selectNextResult:function(){
},selectPrevResult:function(){
},setSelectedResult:function(){
}});
dojo.provide("dojo.widget.html.stabile");
dojo.widget.html.stabile={_sqQuotables:new RegExp("([\\\\'])","g"),_depth:0,_recur:false,depthLimit:2};
dojo.widget.html.stabile.getState=function(id){
dojo.widget.html.stabile.setup();
return dojo.widget.html.stabile.widgetState[id];
};
dojo.widget.html.stabile.setState=function(id,_89d,_89e){
dojo.widget.html.stabile.setup();
dojo.widget.html.stabile.widgetState[id]=_89d;
if(_89e){
dojo.widget.html.stabile.commit(dojo.widget.html.stabile.widgetState);
}
};
dojo.widget.html.stabile.setup=function(){
if(!dojo.widget.html.stabile.widgetState){
var text=dojo.widget.html.stabile.getStorage().value;
dojo.widget.html.stabile.widgetState=text?dj_eval("("+text+")"):{};
}
};
dojo.widget.html.stabile.commit=function(_8a0){
dojo.widget.html.stabile.getStorage().value=dojo.widget.html.stabile.description(_8a0);
};
dojo.widget.html.stabile.description=function(v,_8a2){
var _8a3=dojo.widget.html.stabile._depth;
var _8a4=function(){
return this.description(this,true);
};
try{
if(v===void (0)){
return "undefined";
}
if(v===null){
return "null";
}
if(typeof (v)=="boolean"||typeof (v)=="number"||v instanceof Boolean||v instanceof Number){
return v.toString();
}
if(typeof (v)=="string"||v instanceof String){
var v1=v.replace(dojo.widget.html.stabile._sqQuotables,"\\$1");
v1=v1.replace(/\n/g,"\\n");
v1=v1.replace(/\r/g,"\\r");
return "'"+v1+"'";
}
if(v instanceof Date){
return "new Date("+d.getFullYear+","+d.getMonth()+","+d.getDate()+")";
}
var d;
if(v instanceof Array||v.push){
if(_8a3>=dojo.widget.html.stabile.depthLimit){
return "[ ... ]";
}
d="[";
var _8a7=true;
dojo.widget.html.stabile._depth++;
for(var i=0;i<v.length;i++){
if(_8a7){
_8a7=false;
}else{
d+=",";
}
d+=arguments.callee(v[i],_8a2);
}
return d+"]";
}
if(v.constructor==Object||v.toString==_8a4){
if(_8a3>=dojo.widget.html.stabile.depthLimit){
return "{ ... }";
}
if(typeof (v.hasOwnProperty)!="function"&&v.prototype){
throw new Error("description: "+v+" not supported by script engine");
}
var _8a7=true;
d="{";
dojo.widget.html.stabile._depth++;
for(var key in v){
if(v[key]==void (0)||typeof (v[key])=="function"){
continue;
}
if(_8a7){
_8a7=false;
}else{
d+=", ";
}
var kd=key;
if(!kd.match(/^[a-zA-Z_][a-zA-Z0-9_]*$/)){
kd=arguments.callee(key,_8a2);
}
d+=kd+": "+arguments.callee(v[key],_8a2);
}
return d+"}";
}
if(_8a2){
if(dojo.widget.html.stabile._recur){
var _8ab=Object.prototype.toString;
return _8ab.apply(v,[]);
}else{
dojo.widget.html.stabile._recur=true;
return v.toString();
}
}else{
throw new Error("Unknown type: "+v);
return "'unknown'";
}
}
finally{
dojo.widget.html.stabile._depth=_8a3;
}
};
dojo.widget.html.stabile.getStorage=function(){
if(dojo.widget.html.stabile.dataField){
return dojo.widget.html.stabile.dataField;
}
var form=document.forms._dojo_form;
return dojo.widget.html.stabile.dataField=form?form.stabile:{value:""};
};
dojo.provide("dojo.widget.html.ComboBox");
dojo.widget.defineWidget("dojo.widget.html.ComboBox",[dojo.widget.HtmlWidget,dojo.widget.ComboBox],{autoComplete:true,formInputName:"",name:"",textInputNode:null,comboBoxValue:null,comboBoxSelectionValue:null,optionsListWrapper:null,optionsListNode:null,downArrowNode:null,cbTableNode:null,searchTimer:null,searchDelay:100,dataUrl:"",fadeTime:200,maxListLength:8,mode:"local",selectedResult:null,_highlighted_option:null,_prev_key_backspace:false,_prev_key_esc:false,_result_list_open:false,_gotFocus:false,_mouseover_list:false,dataProviderClass:"dojo.widget.ComboBoxDataProvider",templatePath:dojo.uri.dojoUri("src/widget/templates/HtmlComboBox.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/HtmlComboBox.css"),setValue:function(_8ad){
this.comboBoxValue.value=_8ad;
if(this.textInputNode.value!=_8ad){
this.textInputNode.value=_8ad;
}
dojo.widget.html.stabile.setState(this.widgetId,this.getState(),true);
},getValue:function(){
return this.comboBoxValue.value;
},getState:function(){
return {value:this.getValue()};
},setState:function(_8ae){
this.setValue(_8ae.value);
},getCaretPos:function(_8af){
if(dojo.lang.isNumber(_8af.selectionStart)){
return _8af.selectionStart;
}else{
if(dojo.render.html.ie){
var tr=document.selection.createRange().duplicate();
var ntr=_8af.createTextRange();
tr.move("character",0);
ntr.move("character",0);
try{
ntr.setEndPoint("EndToEnd",tr);
return String(ntr.text).replace(/\r/g,"").length;
}
catch(e){
return 0;
}
}
}
},setCaretPos:function(_8b2,_8b3){
_8b3=parseInt(_8b3);
this.setSelectedRange(_8b2,_8b3,_8b3);
},setSelectedRange:function(_8b4,_8b5,end){
if(!end){
end=_8b4.value.length;
}
if(_8b4.setSelectionRange){
_8b4.focus();
_8b4.setSelectionRange(_8b5,end);
}else{
if(_8b4.createTextRange){
var _8b7=_8b4.createTextRange();
with(_8b7){
collapse(true);
moveEnd("character",end);
moveStart("character",_8b5);
select();
}
}else{
_8b4.value=_8b4.value;
_8b4.blur();
_8b4.focus();
var dist=parseInt(_8b4.value.length)-end;
var _8b9=String.fromCharCode(37);
var tcc=_8b9.charCodeAt(0);
for(var x=0;x<dist;x++){
var te=document.createEvent("KeyEvents");
te.initKeyEvent("keypress",true,true,null,false,false,false,false,tcc,tcc);
_8b4.dispatchEvent(te);
}
}
}
},_handleKeyEvents:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
this._prev_key_backspace=false;
this._prev_key_esc=false;
var k=dojo.event.browser.keys;
var _8bf=true;
var _8c0=evt.keyCode;
if(_8c0==0&&evt.charCode==k.KEY_SPACE){
_8c0=k.KEY_SPACE;
}
switch(_8c0){
case k.KEY_DOWN_ARROW:
if(!this._result_list_open){
this.startSearchFromInput();
}
this.highlightNextOption();
dojo.event.browser.stopEvent(evt);
return;
case k.KEY_UP_ARROW:
this.highlightPrevOption();
dojo.event.browser.stopEvent(evt);
return;
case k.KEY_ENTER:
if(this._result_list_open){
dojo.event.browser.stopEvent(evt);
}
case k.KEY_TAB:
if(!this.autoComplete&&this._result_list_open&&this._highlighted_option){
dojo.event.browser.stopEvent(evt);
this.selectOption({"target":this._highlighted_option,"noHide":true});
this.setSelectedRange(this.textInputNode,this.textInputNode.value.length,null);
}else{
this.selectOption();
return;
}
break;
case k.KEY_SPACE:
if(this._result_list_open&&this._highlighted_option){
dojo.event.browser.stopEvent(evt);
this.selectOption();
this.hideResultList();
return;
}
break;
case k.KEY_ESCAPE:
this.hideResultList();
this._prev_key_esc=true;
return;
case k.KEY_BACKSPACE:
this._prev_key_backspace=true;
if(!this.textInputNode.value.length){
this.setAllValues("","");
this.hideResultList();
_8bf=false;
}
break;
case k.KEY_RIGHT_ARROW:
case k.KEY_LEFT_ARROW:
case k.KEY_SHIFT:
_8bf=false;
break;
default:
if(evt.charCode==0){
_8bf=false;
}
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_8bf){
this.blurOptionNode();
this.searchTimer=setTimeout(dojo.lang.hitch(this,this.startSearchFromInput),this.searchDelay);
}
},onKeyDown:function(evt){
if(!document.createEvent){
this._handleKeyEvents(evt);
}
},onKeyPress:function(evt){
if(document.createEvent){
this._handleKeyEvents(evt);
}
},onKeyUp:function(evt){
this.setValue(this.textInputNode.value);
},setSelectedValue:function(_8c4){
this.comboBoxSelectionValue.value=_8c4;
this.hideResultList();
},setAllValues:function(_8c5,_8c6){
this.setValue(_8c5);
this.setSelectedValue(_8c6);
},scrollIntoView:function(){
var node=this._highlighted_option;
var _8c8=this.optionsListNode;
if(dojo.render.html.ie||dojo.render.html.mozilla){
node.scrollIntoView(false);
}else{
var _8c9=_8c8.scrollTop+dojo.style.getInnerHeight(_8c8);
var _8ca=node.offsetTop+dojo.style.getOuterHeight(node);
if(_8c9<_8ca){
_8c8.scrollTop+=(_8ca-_8c9);
}else{
if(_8c8.scrollTop>node.offsetTop){
_8c8.scrollTop-=(_8c8.scrollTop-node.offsetTop);
}
}
}
},focusOptionNode:function(node){
if(this._highlighted_option!=node){
this.blurOptionNode();
this._highlighted_option=node;
dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight");
}
},blurOptionNode:function(){
if(this._highlighted_option){
dojo.html.removeClass(this._highlighted_option,"dojoComboBoxItemHighlight");
this._highlighted_option=null;
}
},highlightNextOption:function(){
if((!this._highlighted_option)||!this._highlighted_option.parentNode){
this.focusOptionNode(this.optionsListNode.firstChild);
}else{
if(this._highlighted_option.nextSibling){
this.focusOptionNode(this._highlighted_option.nextSibling);
}
}
this.scrollIntoView();
},highlightPrevOption:function(){
if(this._highlighted_option&&this._highlighted_option.previousSibling){
this.focusOptionNode(this._highlighted_option.previousSibling);
}else{
this._highlighted_option=null;
this.hideResultList();
return;
}
this.scrollIntoView();
},itemMouseOver:function(evt){
this.focusOptionNode(evt.target);
dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight");
},itemMouseOut:function(evt){
this.blurOptionNode();
},fillInTemplate:function(args,frag){
this.comboBoxValue.name=this.name;
this.comboBoxSelectionValue.name=this.name+"_selected";
var _8d0=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_8d0);
var _8d1;
if(this.mode=="remote"){
_8d1=dojo.widget.incrementalComboBoxDataProvider;
}else{
if(typeof this.dataProviderClass=="string"){
_8d1=dojo.evalObjPath(this.dataProviderClass);
}else{
_8d1=this.dataProviderClass;
}
}
this.dataProvider=new _8d1();
this.dataProvider.init(this,this.getFragNodeRef(frag));
this.optionsIframe=new dojo.html.BackgroundIframe(this.optionsListWrapper);
this.optionsIframe.size([0,0,0,0]);
},focus:function(){
this.tryFocus();
},openResultList:function(_8d2){
this.clearResultList();
if(!_8d2.length){
this.hideResultList();
}
if((this.autoComplete)&&(_8d2.length)&&(!this._prev_key_backspace)&&(this.textInputNode.value.length>0)){
var cpos=this.getCaretPos(this.textInputNode);
if((cpos+1)>this.textInputNode.value.length){
this.textInputNode.value+=_8d2[0][0].substr(cpos);
this.setSelectedRange(this.textInputNode,cpos,this.textInputNode.value.length);
}
}
var even=true;
while(_8d2.length){
var tr=_8d2.shift();
if(tr){
var td=document.createElement("div");
td.appendChild(document.createTextNode(tr[0]));
td.setAttribute("resultName",tr[0]);
td.setAttribute("resultValue",tr[1]);
td.className="dojoComboBoxItem "+((even)?"dojoComboBoxItemEven":"dojoComboBoxItemOdd");
even=(!even);
this.optionsListNode.appendChild(td);
dojo.event.connect(td,"onmouseover",this,"itemMouseOver");
dojo.event.connect(td,"onmouseout",this,"itemMouseOut");
}
}
this.showResultList();
},onFocusInput:function(){
this._hasFocus=true;
},onBlurInput:function(){
this._hasFocus=false;
this._handleBlurTimer(true,500);
},_handleBlurTimer:function(_8d7,_8d8){
if(this.blurTimer&&(_8d7||_8d8)){
clearTimeout(this.blurTimer);
}
if(_8d8){
this.blurTimer=dojo.lang.setTimeout(this,"checkBlurred",_8d8);
}
},_onMouseOver:function(evt){
if(!this._mouseover_list){
this._handleBlurTimer(true,0);
this._mouseover_list=true;
}
},_onMouseOut:function(evt){
var _8db=evt.relatedTarget;
if(!_8db||_8db.parentNode!=this.optionsListNode){
this._mouseover_list=false;
this._handleBlurTimer(true,100);
this.tryFocus();
}
},_isInputEqualToResult:function(_8dc){
input=this.textInputNode.value;
if(!this.dataProvider.caseSensitive){
input=input.toLowerCase();
_8dc=_8dc.toLowerCase();
}
return (input==_8dc);
},_isValidOption:function(){
tgt=dojo.dom.firstElement(this.optionsListNode);
isValidOption=false;
while(!isValidOption&&tgt){
if(this._isInputEqualToResult(tgt.getAttribute("resultName"))){
isValidOption=true;
}else{
tgt=dojo.dom.nextElement(tgt);
}
}
return isValidOption;
},checkBlurred:function(){
if(!this._hasFocus&&!this._mouseover_list){
this.hideResultList();
if(!this.textInputNode.value.length){
this.setAllValues("","");
return;
}
isValidOption=this._isValidOption();
if(this.forceValidOption&&!isValidOption){
this.setAllValues("","");
return;
}
if(!isValidOption){
this.setSelectedValue("");
}
}
},sizeBackgroundIframe:function(){
var w=dojo.style.getOuterWidth(this.optionsListNode);
var h=dojo.style.getOuterHeight(this.optionsListNode);
if(w==0||h==0){
dojo.lang.setTimeout(this,"sizeBackgroundIframe",100);
return;
}
if(this._result_list_open){
this.optionsIframe.size([0,0,w,h]);
}
},selectOption:function(evt){
var tgt=null;
if(!evt){
evt={target:this._highlighted_option};
}
if(!dojo.dom.isDescendantOf(evt.target,this.optionsListNode)){
if(!this.textInputNode.value.length){
return;
}
tgt=dojo.dom.firstElement(this.optionsListNode);
if(!tgt||!this._isInputEqualToResult(tgt.getAttribute("resultName"))){
return;
}
}else{
tgt=evt.target;
}
while((tgt.nodeType!=1)||(!tgt.getAttribute("resultName"))){
tgt=tgt.parentNode;
if(tgt===document.body){
return false;
}
}
this.textInputNode.value=tgt.getAttribute("resultName");
this.selectedResult=[tgt.getAttribute("resultName"),tgt.getAttribute("resultValue")];
this.setAllValues(tgt.getAttribute("resultName"),tgt.getAttribute("resultValue"));
if(!evt.noHide){
this.hideResultList();
this.setSelectedRange(this.textInputNode,0,null);
}
this.tryFocus();
},clearResultList:function(){
var oln=this.optionsListNode;
while(oln.firstChild){
dojo.event.disconnect(oln.firstChild,"onmouseover",this,"itemMouseOver");
dojo.event.disconnect(oln.firstChild,"onmouseout",this,"itemMouseOut");
oln.removeChild(oln.firstChild);
}
},hideResultList:function(){
if(this._result_list_open){
this._result_list_open=false;
this.optionsIframe.size([0,0,0,0]);
dojo.lfx.fadeHide(this.optionsListNode,this.fadeTime).play();
}
},showResultList:function(){
var _8e2=this.optionsListNode.childNodes;
if(_8e2.length){
var _8e3=this.maxListLength;
if(_8e2.length<_8e3){
_8e3=_8e2.length;
}
with(this.optionsListNode.style){
display="";
height=((_8e3)?(dojo.style.getOuterHeight(_8e2[0])*_8e3):0)+"px";
width=dojo.html.getOuterWidth(this.cbTableNode)-2+"px";
}
if(!this._result_list_open){
dojo.html.setOpacity(this.optionsListNode,0);
dojo.lfx.fadeIn(this.optionsListNode,this.fadeTime).play();
}
this._iframeTimer=dojo.lang.setTimeout(this,"sizeBackgroundIframe",200);
this._result_list_open=true;
}else{
this.hideResultList();
}
},handleArrowClick:function(){
this._handleBlurTimer(true,0);
this.tryFocus();
if(this._result_list_open){
this.hideResultList();
}else{
this.startSearchFromInput();
}
},tryFocus:function(){
try{
this.textInputNode.focus();
}
catch(e){
}
},startSearchFromInput:function(){
this.startSearch(this.textInputNode.value);
},postCreate:function(){
dojo.event.connect(this,"startSearch",this.dataProvider,"startSearch");
dojo.event.connect(this.dataProvider,"provideSearchResults",this,"openResultList");
dojo.event.connect(this.textInputNode,"onblur",this,"onBlurInput");
dojo.event.connect(this.textInputNode,"onfocus",this,"onFocusInput");
var s=dojo.widget.html.stabile.getState(this.widgetId);
if(s){
this.setState(s);
}
}});
dojo.provide("dojo.widget.CityComboBox");
dojo.widget.CityComboBox=function(){
dojo.widget.html.ComboBox.call(this);
};
dojo.inherits(dojo.widget.CityComboBox,dojo.widget.html.ComboBox);
dojo.lang.extend(dojo.widget.CityComboBox,{widgetType:"CityComboBox",inputValueID:"",fieldSize:"",showResultList:function(){
var _8e5=this.optionsListNode.childNodes;
if(_8e5.length){
var _8e6=this.maxListLength;
if(_8e5.length<_8e6){
_8e6=_8e5.length;
}
with(this.optionsListNode.style){
display="";
height=((_8e6)?(dojo.style.getOuterHeight(_8e5[0])*_8e6):0)+"px";
width=dojo.html.getOuterWidth(this.cbTableNode)-2+"px";
}
this.optionsListNode.scrollLeft=2000;
if(this.optionsListNode.scrollLeft>0){
this.optionsListNode.style.width=this.optionsListNode.offsetWidth+this.optionsListNode.scrollLeft+"px";
}
if(!this._result_list_open){
dojo.html.setOpacity(this.optionsListNode,0);
dojo.lfx.fadeIn(this.optionsListNode,this.fadeTime).play();
}
this._iframeTimer=dojo.lang.setTimeout(this,"sizeBackgroundIframe",200);
this._result_list_open=true;
}else{
this.hideResultList();
}
},postCreate:function(){
dojo.event.connect(this,"startSearch",this.dataProvider,"startSearch");
dojo.event.connect(this.dataProvider,"provideSearchResults",this,"openResultList");
dojo.event.connect(this.textInputNode,"onblur",this,"onBlurInput");
dojo.event.connect(this.textInputNode,"onfocus",this,"onFocusInput");
var s=dojo.widget.html.stabile.getState(this.widgetId);
if(s){
this.setState(s);
}
this.textInputNode.setAttribute("size",this.fieldSize);
this.comboBoxValue.setAttribute("id",this.inputValueID);
this.optionsListWrapper.style.zIndex=5000;
this.optionsIframe.setZIndex(4999);
}});
dojo.widget.tags.addParseTreeHandler("dojo:CityComboBox");
dojo.provide("dojo.widget.SearchMemberMapResultItem");
dojo.widget.SearchMemberMapResultItem=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.SearchMemberMapResultItem,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.SearchMemberMapResultItem,{widgetType:"SearchMemberMapResultItem",name:"",address:"",cityStateZip:"",officePhone:"",email:"",websiteURL:"",longitude:"",latitude:"",photoPath:"",memberID:"",marker:null,first:"",last:"",numResults:"",fillInTemplate:function(args,frag){
this.longitude=parseFloat(this.longitude);
this.latitude=parseFloat(this.latitude);
if(parseInt(this.first)==1){
searchWidget.map=new GMap(dojo.byId("searchMemberMapContainer"));
searchWidget.map.addControl(new GSmallMapControl());
searchWidget.map.centerAndZoom(new GPoint(0,0),7);
searchWidget.totLong=0;
searchWidget.totLat=0;
}
this.marker=new GMarker(new GPoint(this.longitude,this.latitude));
var _8ea=this;
var html="<div><table cellspacing=\"0\" cellpadding=\"2\" border=\"0\"><tr>";
if(this.photoPath!=""){
html+="<td valign=\"top\" width=\"48\"><div class=\"MemberResultPhoto\" style=\"padding-right:5px;\"><img src=\"res/Member_Images/"+this.photoPath+"\" width=\"48\" border=\"0\" class=\"mapResultThumbnail\" /></div></td>";
}
html+="<td valign=\"top\"><div class=\"MemberResultInfo\"><div class=\"MemberResultName\"><a href=\"4-1_Member-Profile.cfm?mid="+this.memberID+"\" class=\"common-link\">"+this.name+"</a></div>"+this.address+"<br>"+this.cityStateZip+"<br>";
if(this.officePhone!=""){
html+=this.officePhone+"<br>";
}
html+="<a href=\"mailto:"+this.email+"\" class=\"common-link\">"+this.email+"</a><br><a target=\"_blank\" href=\""+this.websiteURL+"\" class=\"common-link\">"+this.websiteURL+"</a></div></td></tr></table></div>";
GEvent.addListener(this.marker,"click",function(){
_8ea.marker.openInfoWindowHtml(html);
});
searchWidget.map.addOverlay(this.marker);
searchWidget.totLong+=this.longitude;
searchWidget.totLat+=this.latitude;
if(parseInt(this.last)==1){
searchWidget.map.centerAndZoom(new GPoint(searchWidget.totLong/(parseInt(this.numResults)),searchWidget.totLat/(parseInt(this.numResults))),11);
}
dojo.event.connect(this.domNode,"onclick",function(){
GEvent.trigger(_8ea.marker,"click");
});
},postCreate:function(args,frag){
}});
dojo.widget.tags.addParseTreeHandler("dojo:SearchMemberMapResultItem");
dojo.provide("dojo.dnd.DragSource");
dojo.provide("dojo.dnd.DropTarget");
dojo.provide("dojo.dnd.DragObject");
dojo.provide("dojo.dnd.DragAndDrop");
dojo.dnd.DragSource=function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragSource"]){
dm.registerDragSource(this);
}
};
dojo.lang.extend(dojo.dnd.DragSource,{type:"",onDragEnd:function(){
},onDragStart:function(){
},onSelected:function(){
},unregister:function(){
dojo.dnd.dragManager.unregisterDragSource(this);
},reregister:function(){
dojo.dnd.dragManager.registerDragSource(this);
}});
dojo.dnd.DragObject=function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragObject"]){
dm.registerDragObject(this);
}
};
dojo.lang.extend(dojo.dnd.DragObject,{type:"",onDragStart:function(){
},onDragMove:function(){
},onDragOver:function(){
},onDragOut:function(){
},onDragEnd:function(){
},onDragLeave:this.onDragOut,onDragEnter:this.onDragOver,ondragout:this.onDragOut,ondragover:this.onDragOver});
dojo.dnd.DropTarget=function(){
if(this.constructor==dojo.dnd.DropTarget){
return;
}
this.acceptedTypes=[];
dojo.dnd.dragManager.registerDropTarget(this);
};
dojo.lang.extend(dojo.dnd.DropTarget,{acceptsType:function(type){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
if(!dojo.lang.inArray(this.acceptedTypes,type)){
return false;
}
}
return true;
},accepts:function(_8f1){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
for(var i=0;i<_8f1.length;i++){
if(!dojo.lang.inArray(this.acceptedTypes,_8f1[i].type)){
return false;
}
}
}
return true;
},onDragOver:function(){
},onDragOut:function(){
},onDragMove:function(){
},onDropStart:function(){
},onDrop:function(){
},onDropEnd:function(){
}});
dojo.dnd.DragEvent=function(){
this.dragSource=null;
this.dragObject=null;
this.target=null;
this.eventStatus="success";
};
dojo.dnd.DragManager=function(){
};
dojo.lang.extend(dojo.dnd.DragManager,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(){
},dropTargets:[],registerDropTarget:function(){
},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){
},onMouseOut:function(){
},onMouseMove:function(){
},onMouseUp:function(){
}});
dojo.provide("dojo.dnd.HtmlDragManager");
dojo.dnd.HtmlDragManager=function(){
};
dojo.inherits(dojo.dnd.HtmlDragManager,dojo.dnd.DragManager);
dojo.lang.extend(dojo.dnd.HtmlDragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,threshold:7,dropAcceptable:false,cancelEvent:function(e){
e.stopPropagation();
e.preventDefault();
},registerDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _8f6=dp+"Idx_"+(this.dsCounter++);
ds.dragSourceId=_8f6;
this.dragSources[_8f6]=ds;
ds.domNode.setAttribute(dp,_8f6);
if(dojo.render.html.ie){
dojo.event.connect(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},unregisterDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _8f9=ds.dragSourceId;
delete ds.dragSourceId;
delete this.dragSources[_8f9];
ds.domNode.setAttribute(dp,null);
}
if(dojo.render.html.ie){
dojo.event.disconnect(ds.domNode,"ondragstart",this.cancelEvent);
}
},registerDropTarget:function(dt){
this.dropTargets.push(dt);
},unregisterDropTarget:function(dt){
var _8fc=dojo.lang.find(this.dropTargets,dt,true);
if(_8fc>=0){
this.dropTargets.splice(_8fc,1);
}
},getDragSource:function(e){
var tn=e.target;
if(tn===document.body){
return;
}
var ta=dojo.html.getAttribute(tn,this.dsPrefix);
while((!ta)&&(tn)){
tn=tn.parentNode;
if((!tn)||(tn===document.body)){
return;
}
ta=dojo.html.getAttribute(tn,this.dsPrefix);
}
return this.dragSources[ta];
},onKeyDown:function(e){
},onMouseDown:function(e){
if(this.disabled){
return;
}
if(dojo.render.html.ie){
if(e.button!=1){
return;
}
}else{
if(e.which!=1){
return;
}
}
var _902=e.target.nodeType==dojo.dom.TEXT_NODE?e.target.parentNode:e.target;
if(dojo.html.isTag(_902,"button","textarea","input","select","option")){
return;
}
var ds=this.getDragSource(e);
if(!ds){
return;
}
if(!dojo.lang.inArray(this.selectedSources,ds)){
this.selectedSources.push(ds);
ds.onSelected();
}
this.mouseDownX=e.pageX;
this.mouseDownY=e.pageY;
e.preventDefault();
dojo.event.connect(document,"onmousemove",this,"onMouseMove");
},onMouseUp:function(e,_905){
if(this.selectedSources.length==0){
return;
}
this.mouseDownX=null;
this.mouseDownY=null;
this._dragTriggered=false;
e.dragSource=this.dragSource;
if((!e.shiftKey)&&(!e.ctrlKey)){
if(this.currentDropTarget){
this.currentDropTarget.onDropStart();
}
dojo.lang.forEach(this.dragObjects,function(_906){
var ret=null;
if(!_906){
return;
}
if(this.currentDropTarget){
e.dragObject=_906;
var ce=this.currentDropTarget.domNode.childNodes;
if(ce.length>0){
e.dropTarget=ce[0];
while(e.dropTarget==_906.domNode){
e.dropTarget=e.dropTarget.nextSibling;
}
}else{
e.dropTarget=this.currentDropTarget.domNode;
}
if(this.dropAcceptable){
ret=this.currentDropTarget.onDrop(e);
}else{
this.currentDropTarget.onDragOut(e);
}
}
e.dragStatus=this.dropAcceptable&&ret?"dropSuccess":"dropFailure";
dojo.lang.delayThese([function(){
try{
_906.dragSource.onDragEnd(e);
}
catch(err){
var _909={};
for(var i in e){
if(i=="type"){
_909.type="mouseup";
continue;
}
_909[i]=e[i];
}
_906.dragSource.onDragEnd(_909);
}
},function(){
_906.onDragEnd(e);
}]);
},this);
this.selectedSources=[];
this.dragObjects=[];
this.dragSource=null;
if(this.currentDropTarget){
this.currentDropTarget.onDropEnd();
}
}
dojo.event.disconnect(document,"onmousemove",this,"onMouseMove");
this.currentDropTarget=null;
},onScroll:function(){
for(var i=0;i<this.dragObjects.length;i++){
if(this.dragObjects[i].updateDragOffset){
this.dragObjects[i].updateDragOffset();
}
}
this.cacheTargetLocations();
},_dragStartDistance:function(x,y){
if((!this.mouseDownX)||(!this.mouseDownX)){
return;
}
var dx=Math.abs(x-this.mouseDownX);
var dx2=dx*dx;
var dy=Math.abs(y-this.mouseDownY);
var dy2=dy*dy;
return parseInt(Math.sqrt(dx2+dy2),10);
},cacheTargetLocations:function(){
this.dropTargetDimensions=[];
dojo.lang.forEach(this.dropTargets,function(_912){
var tn=_912.domNode;
if(!tn){
return;
}
var ttx=dojo.style.getAbsoluteX(tn,true);
var tty=dojo.style.getAbsoluteY(tn,true);
this.dropTargetDimensions.push([[ttx,tty],[ttx+dojo.style.getInnerWidth(tn),tty+dojo.style.getInnerHeight(tn)],_912]);
},this);
},onMouseMove:function(e){
if((dojo.render.html.ie)&&(e.button!=1)){
this.currentDropTarget=null;
this.onMouseUp(e,true);
return;
}
if((this.selectedSources.length)&&(!this.dragObjects.length)){
var dx;
var dy;
if(!this._dragTriggered){
this._dragTriggered=(this._dragStartDistance(e.pageX,e.pageY)>this.threshold);
if(!this._dragTriggered){
return;
}
dx=e.pageX-this.mouseDownX;
dy=e.pageY-this.mouseDownY;
}
this.dragSource=this.selectedSources[0];
dojo.lang.forEach(this.selectedSources,function(_919){
if(!_919){
return;
}
var tdo=_919.onDragStart(e);
if(tdo){
tdo.onDragStart(e);
tdo.dragOffset.top+=dy;
tdo.dragOffset.left+=dx;
tdo.dragSource=_919;
this.dragObjects.push(tdo);
}
},this);
this.previousDropTarget=null;
this.cacheTargetLocations();
}
dojo.lang.forEach(this.dragObjects,function(_91b){
if(_91b){
_91b.onDragMove(e);
}
});
if(this.currentDropTarget){
var c=dojo.style.toCoordinateArray(this.currentDropTarget.domNode,true);
var dtp=[[c[0],c[1]],[c[0]+c[2],c[1]+c[3]]];
}
if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}else{
var _91e=this.findBestTarget(e);
if(_91e.target===null){
if(this.currentDropTarget){
this.currentDropTarget.onDragOut(e);
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget=null;
}
this.dropAcceptable=false;
return;
}
if(this.currentDropTarget!==_91e.target){
if(this.currentDropTarget){
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget.onDragOut(e);
}
this.currentDropTarget=_91e.target;
e.dragObjects=this.dragObjects;
this.dropAcceptable=this.currentDropTarget.onDragOver(e);
}else{
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}
}
},findBestTarget:function(e){
var _920=this;
var _921=new Object();
_921.target=null;
_921.points=null;
dojo.lang.every(this.dropTargetDimensions,function(_922){
if(!_920.isInsideBox(e,_922)){
return true;
}
_921.target=_922[2];
_921.points=_922;
return Boolean(_920.nestedTargets);
});
return _921;
},isInsideBox:function(e,_924){
if((e.pageX>_924[0][0])&&(e.pageX<_924[1][0])&&(e.pageY>_924[0][1])&&(e.pageY<_924[1][1])){
return true;
}
return false;
},onMouseOver:function(e){
},onMouseOut:function(e){
}});
dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager();
(function(){
var d=document;
var dm=dojo.dnd.dragManager;
dojo.event.connect(d,"onkeydown",dm,"onKeyDown");
dojo.event.connect(d,"onmouseover",dm,"onMouseOver");
dojo.event.connect(d,"onmouseout",dm,"onMouseOut");
dojo.event.connect(d,"onmousedown",dm,"onMouseDown");
dojo.event.connect(d,"onmouseup",dm,"onMouseUp");
dojo.event.connect(window,"onscroll",dm,"onScroll");
})();
dojo.provide("dojo.dnd.HtmlDragAndDrop");
dojo.provide("dojo.dnd.HtmlDragSource");
dojo.provide("dojo.dnd.HtmlDropTarget");
dojo.provide("dojo.dnd.HtmlDragObject");
dojo.dnd.HtmlDragSource=function(node,type){
node=dojo.byId(node);
this.dragObjects=[];
this.constrainToContainer=false;
if(node){
this.domNode=node;
this.dragObject=node;
dojo.dnd.DragSource.call(this);
this.type=(type)||(this.domNode.nodeName.toLowerCase());
}
};
dojo.inherits(dojo.dnd.HtmlDragSource,dojo.dnd.DragSource);
dojo.lang.extend(dojo.dnd.HtmlDragSource,{dragClass:"",onDragStart:function(){
var _92b=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);
if(this.dragClass){
_92b.dragClass=this.dragClass;
}
if(this.constrainToContainer){
_92b.constrainTo(this.constrainingContainer||this.domNode.parentNode);
}
return _92b;
},setDragHandle:function(node){
node=dojo.byId(node);
dojo.dnd.dragManager.unregisterDragSource(this);
this.domNode=node;
dojo.dnd.dragManager.registerDragSource(this);
},setDragTarget:function(node){
this.dragObject=node;
},constrainTo:function(_92e){
this.constrainToContainer=true;
if(_92e){
this.constrainingContainer=_92e;
}
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragSource(this.dragObjects[i]));
}
},addDragObjects:function(el){
for(var i=0;i<arguments.length;i++){
this.dragObjects.push(arguments[i]);
}
}});
dojo.dnd.HtmlDragObject=function(node,type){
this.domNode=dojo.byId(node);
this.type=type;
this.constrainToContainer=false;
this.dragSource=null;
};
dojo.inherits(dojo.dnd.HtmlDragObject,dojo.dnd.DragObject);
dojo.lang.extend(dojo.dnd.HtmlDragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){
var node=this.domNode.cloneNode(true);
if(this.dragClass){
dojo.html.addClass(node,this.dragClass);
}
if(this.opacity<1){
dojo.style.setOpacity(node,this.opacity);
}
if(node.tagName.toLowerCase()=="tr"){
var doc=this.domNode.ownerDocument;
var _936=doc.createElement("table");
var _937=doc.createElement("tbody");
_937.appendChild(node);
_936.appendChild(_937);
var _938=this.domNode.childNodes;
var _939=node.childNodes;
for(var i=0;i<_938.length;i++){
if((_939[i])&&(_939[i].style)){
_939[i].style.width=dojo.style.getContentWidth(_938[i])+"px";
}
}
node=_936;
}
if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){
with(node.style){
top="0px";
left="0px";
}
var _93b=document.createElement("div");
_93b.appendChild(node);
this.bgIframe=new dojo.html.BackgroundIframe(_93b);
_93b.appendChild(this.bgIframe.iframe);
node=_93b;
}
node.style.zIndex=999;
return node;
},onDragStart:function(e){
dojo.html.clearSelection();
this.scrollOffset=dojo.html.getScrollOffset();
this.dragStartPosition=dojo.style.getAbsolutePosition(this.domNode,true);
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.dragClone=this.createDragNode();
this.containingBlockPosition=this.domNode.offsetParent?dojo.style.getAbsolutePosition(this.domNode.offsetParent):{x:0,y:0};
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
with(this.dragClone.style){
position="absolute";
top=this.dragOffset.y+e.pageY+"px";
left=this.dragOffset.x+e.pageX+"px";
}
document.body.appendChild(this.dragClone);
dojo.event.topic.publish("dragStart",{source:this});
},getConstraints:function(){
if(this.constrainingContainer.nodeName.toLowerCase()=="body"){
var _93d=dojo.html.getViewportWidth();
var _93e=dojo.html.getViewportHeight();
var x=0;
var y=0;
}else{
_93d=dojo.style.getContentWidth(this.constrainingContainer);
_93e=dojo.style.getContentHeight(this.constrainingContainer);
x=this.containingBlockPosition.x+dojo.style.getPixelValue(this.constrainingContainer,"padding-left",true)+dojo.style.getBorderExtent(this.constrainingContainer,"left");
y=this.containingBlockPosition.y+dojo.style.getPixelValue(this.constrainingContainer,"padding-top",true)+dojo.style.getBorderExtent(this.constrainingContainer,"top");
}
return {minX:x,minY:y,maxX:x+_93d-dojo.style.getOuterWidth(this.domNode),maxY:y+_93e-dojo.style.getOuterHeight(this.domNode)};
},updateDragOffset:function(){
var _941=dojo.html.getScrollOffset();
if(_941.y!=this.scrollOffset.y){
var diff=_941.y-this.scrollOffset.y;
this.dragOffset.y+=diff;
this.scrollOffset.y=_941.y;
}
if(_941.x!=this.scrollOffset.x){
var diff=_941.x-this.scrollOffset.x;
this.dragOffset.x+=diff;
this.scrollOffset.x=_941.x;
}
},onDragMove:function(e){
this.updateDragOffset();
var x=this.dragOffset.x+e.pageX;
var y=this.dragOffset.y+e.pageY;
if(this.constrainToContainer){
if(x<this.constraints.minX){
x=this.constraints.minX;
}
if(y<this.constraints.minY){
y=this.constraints.minY;
}
if(x>this.constraints.maxX){
x=this.constraints.maxX;
}
if(y>this.constraints.maxY){
y=this.constraints.maxY;
}
}
this.setAbsolutePosition(x,y);
dojo.event.topic.publish("dragMove",{source:this});
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.dragClone.style.top=y+"px";
}
if(!this.disableX){
this.dragClone.style.left=x+"px";
}
},onDragEnd:function(e){
switch(e.dragStatus){
case "dropSuccess":
dojo.dom.removeNode(this.dragClone);
this.dragClone=null;
break;
case "dropFailure":
var _949=dojo.style.getAbsolutePosition(this.dragClone,true);
var _94a=[this.dragStartPosition.x+1,this.dragStartPosition.y+1];
var line=new dojo.lfx.Line(_949,_94a);
var anim=new dojo.lfx.Animation(500,line,dojo.lfx.easeOut);
var _94d=this;
dojo.event.connect(anim,"onAnimate",function(e){
_94d.dragClone.style.left=e[0]+"px";
_94d.dragClone.style.top=e[1]+"px";
});
dojo.event.connect(anim,"onEnd",function(e){
dojo.lang.setTimeout(function(){
dojo.dom.removeNode(_94d.dragClone);
_94d.dragClone=null;
},200);
});
anim.play();
break;
}
dojo.event.connect(this.domNode,"onclick",this,"squelchOnClick");
dojo.event.topic.publish("dragEnd",{source:this});
},squelchOnClick:function(e){
e.preventDefault();
dojo.event.disconnect(this.domNode,"onclick",this,"squelchOnClick");
},constrainTo:function(_951){
this.constrainToContainer=true;
if(_951){
this.constrainingContainer=_951;
}else{
this.constrainingContainer=this.domNode.parentNode;
}
}});
dojo.dnd.HtmlDropTarget=function(node,_953){
if(arguments.length==0){
return;
}
this.domNode=dojo.byId(node);
dojo.dnd.DropTarget.call(this);
if(_953&&dojo.lang.isString(_953)){
_953=[_953];
}
this.acceptedTypes=_953||[];
};
dojo.inherits(dojo.dnd.HtmlDropTarget,dojo.dnd.DropTarget);
dojo.lang.extend(dojo.dnd.HtmlDropTarget,{onDragOver:function(e){
if(!this.accepts(e.dragObjects)){
return false;
}
this.childBoxes=[];
for(var i=0,child;i<this.domNode.childNodes.length;i++){
child=this.domNode.childNodes[i];
if(child.nodeType!=dojo.dom.ELEMENT_NODE){
continue;
}
var pos=dojo.style.getAbsolutePosition(child,true);
var _957=dojo.style.getInnerHeight(child);
var _958=dojo.style.getInnerWidth(child);
this.childBoxes.push({top:pos.y,bottom:pos.y+_957,left:pos.x,right:pos.x+_958,node:child});
}
return true;
},_getNodeUnderMouse:function(e){
for(var i=0,child;i<this.childBoxes.length;i++){
with(this.childBoxes[i]){
if(e.pageX>=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){
return i;
}
}
}
return -1;
},createDropIndicator:function(){
this.dropIndicator=document.createElement("div");
with(this.dropIndicator.style){
position="absolute";
zIndex=999;
borderTopWidth="1px";
borderTopColor="black";
borderTopStyle="solid";
width=dojo.style.getInnerWidth(this.domNode)+"px";
left=dojo.style.getAbsoluteX(this.domNode,true)+"px";
}
},onDragMove:function(e,_95c){
var i=this._getNodeUnderMouse(e);
if(!this.dropIndicator){
this.createDropIndicator();
}
if(i<0){
if(this.childBoxes.length){
var _95e=(dojo.html.gravity(this.childBoxes[0].node,e)&dojo.html.gravity.NORTH);
}else{
var _95e=true;
}
}else{
var _95f=this.childBoxes[i];
var _95e=(dojo.html.gravity(_95f.node,e)&dojo.html.gravity.NORTH);
}
this.placeIndicator(e,_95c,i,_95e);
if(!dojo.html.hasParent(this.dropIndicator)){
document.body.appendChild(this.dropIndicator);
}
},placeIndicator:function(e,_961,_962,_963){
with(this.dropIndicator.style){
if(_962<0){
if(this.childBoxes.length){
top=(_963?this.childBoxes[0].top:this.childBoxes[this.childBoxes.length-1].bottom)+"px";
}else{
top=dojo.style.getAbsoluteY(this.domNode,true)+"px";
}
}else{
var _964=this.childBoxes[_962];
top=(_963?_964.top:_964.bottom)+"px";
}
}
},onDragOut:function(e){
if(this.dropIndicator){
dojo.dom.removeNode(this.dropIndicator);
delete this.dropIndicator;
}
},onDrop:function(e){
this.onDragOut(e);
var i=this._getNodeUnderMouse(e);
if(i<0){
if(this.childBoxes.length){
if(dojo.html.gravity(this.childBoxes[0].node,e)&dojo.html.gravity.NORTH){
return this.insert(e,this.childBoxes[0].node,"before");
}else{
return this.insert(e,this.childBoxes[this.childBoxes.length-1].node,"after");
}
}
return this.insert(e,this.domNode,"append");
}
var _968=this.childBoxes[i];
if(dojo.html.gravity(_968.node,e)&dojo.html.gravity.NORTH){
return this.insert(e,_968.node,"before");
}else{
return this.insert(e,_968.node,"after");
}
},insert:function(e,_96a,_96b){
var node=e.dragObject.domNode;
if(_96b=="before"){
return dojo.html.insertBefore(node,_96a);
}else{
if(_96b=="after"){
return dojo.html.insertAfter(node,_96a);
}else{
if(_96b=="append"){
_96a.appendChild(node);
return true;
}
}
}
return false;
}});
dojo.provide("dojo.dnd.*");
dojo.provide("dojo.dnd.SearchMemberListDragMove");
dojo.provide("dojo.dnd.SearchMemberListDragMoveSource");
dojo.provide("dojo.dnd.SearchMemberListDragMoveObject");
dojo.dnd.SearchMemberListDragMoveSource=function(node,type,_96f,_970){
this.scrollList=_96f;
this.scrollRatio=_970;
dojo.dnd.HtmlDragSource.call(this,node,type);
};
dojo.inherits(dojo.dnd.SearchMemberListDragMoveSource,dojo.dnd.HtmlDragSource);
dojo.lang.extend(dojo.dnd.SearchMemberListDragMoveSource,{onDragStart:function(){
var _971=new dojo.dnd.SearchMemberListDragMoveObject(this.dragObject,this.type,this.scrollList,this.scrollRatio);
if(this.constrainToContainer){
_971.constrainTo(this.constrainingContainer);
}
return _971;
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.SearchMemberListDragMoveSource(this.dragObjects[i]));
}
}});
dojo.dnd.SearchMemberListDragMoveObject=function(node,type,_975,_976){
this.scrollList=_975;
this.scrollRatio=_976;
dojo.dnd.HtmlDragObject.call(this,node,type);
};
dojo.inherits(dojo.dnd.SearchMemberListDragMoveObject,dojo.dnd.HtmlDragObject);
dojo.lang.extend(dojo.dnd.SearchMemberListDragMoveObject,{disableX:true,disableY:false,onDragEnd:function(e){
dojo.event.connect(this.domNode,"onclick",this,"squelchOnClick");
},onDragStart:function(e){
dojo.html.clearSelection();
this.dragClone=this.domNode;
this.scrollOffset=dojo.html.getScrollOffset();
this.dragStartPosition=dojo.style.getAbsolutePosition(this.domNode,true);
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.containingBlockPosition=this.domNode.offsetParent?dojo.style.getAbsolutePosition(this.domNode.offsetParent,true):{x:0,y:0};
this.dragClone.style.position="absolute";
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
},onDragMove:function(e){
var t=this.scrollRatio*(parseInt(this.domNode.style.top)+1);
this.scrollList.style.top=-t+"px";
this.updateDragOffset();
var x=this.dragOffset.x+e.pageX;
var y=this.dragOffset.y+e.pageY;
if(this.constrainToContainer){
if(x<this.constraints.minX){
x=this.constraints.minX-1;
}
if(y<this.constraints.minY){
y=this.constraints.minY-1;
}
if(x>this.constraints.maxX){
x=this.constraints.maxX-1;
}
if(y>this.constraints.maxY){
y=this.constraints.maxY-1;
}
}
this.setAbsolutePosition(x,y);
dojo.event.topic.publish("dragMove",{source:this});
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.domNode.style.top=(y-this.containingBlockPosition.y)+"px";
}
if(!this.disableX){
this.domNode.style.left=(x-this.containingBlockPosition.x)+"px";
}
}});
dojo.provide("dojo.widget.SearchMemberMapList");
dojo.widget.SearchMemberMapList=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.SearchMemberMapList,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.SearchMemberMapList,{widgetType:"SearchMemberMapList",fillInTemplate:function(args,frag){
dojo.html.setOpacity(dojo.byId("divMapNameListContent"),0.8);
dojo.html.setOpacity(dojo.byId("divMapNameListTitle"),0.8);
},postCreate:function(args,frag){
var b=dojo.html.getContentHeight(dojo.byId("divMapNameListScrollBar"))-dojo.html.getContentHeight(dojo.byId("dragHandle"));
var x=dojo.html.getContentHeight(dojo.byId("divMapNameList"));
var y=dojo.html.getContentHeight(dojo.byId("divMapNameListScrollable"));
var a=x-y;
if(a>0){
var _987=new dojo.dnd.SearchMemberListDragMoveSource(dojo.byId("dragHandle"),null,dojo.byId("divMapNameList"),(a/b));
_987.constrainToContainer=dojo.byId("divMapNameListScrollBar");
}else{
dojo.byId("divMapNameListScrollBar").style.visibility="hidden";
}
}});
dojo.widget.tags.addParseTreeHandler("dojo:SearchMemberMapList");

