/*
	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;
var dj_currentContext=this;
function dj_undef(_1,_2){
return (typeof (_2||dj_currentContext)[_1]=="undefined");
}
if(dj_undef("djConfig",this)){
var djConfig={};
}
if(dj_undef("dojo",this)){
var dojo={};
}
dojo.global=function(){
return dj_currentContext;
};
dojo.locale=djConfig.locale;
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 6824 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
if((!_4)||(!_3)){
return undefined;
}
if(!dj_undef(_3,_4)){
return _4[_3];
}
return (_5?(_4[_3]={}):undefined);
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7||dojo.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(_e,_f){
if(typeof _e!="string"){
return dojo.global();
}
if(_e.indexOf(".")==-1){
return dojo.evalProp(_e,dojo.global(),_f);
}
var ref=dojo.parseObjPath(_e,dojo.global(),_f);
if(ref){
return dojo.evalProp(ref.prop,ref.obj,_f);
}
return null;
};
dojo.errorToString=function(_11){
if(!dj_undef("message",_11)){
return _11.message;
}else{
if(!dj_undef("description",_11)){
return _11.description;
}else{
return _11;
}
}
};
dojo.raise=function(_12,_13){
if(_13){
_12=_12+": "+dojo.errorToString(_13);
}else{
_12=dojo.errorToString(_12);
}
try{
if(djConfig.isDebug){
dojo.hostenv.println("FATAL exception raised: "+_12);
}
}
catch(e){
}
throw _13||Error(_12);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_15){
return dj_global.eval?dj_global.eval(_15):eval(_15);
}
dojo.unimplemented=function(_16,_17){
var _18="'"+_16+"' not implemented";
if(_17!=null){
_18+=" "+_17;
}
dojo.raise(_18);
};
dojo.deprecated=function(_19,_1a,_1b){
var _1c="DEPRECATED: "+_19;
if(_1a){
_1c+=" "+_1a;
}
if(_1b){
_1c+=" -- will be removed in version: "+_1b;
}
dojo.debug(_1c);
};
dojo.render=(function(){
function vscaffold(_1d,_1e){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};
for(var i=0;i<_1e.length;i++){
tmp[_1e[i]]=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 _21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_21;
}else{
for(var _22 in _21){
if(typeof djConfig[_22]=="undefined"){
djConfig[_22]=_21[_22];
}
}
}
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 _25=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _26={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_27,_28){
this.modulePrefixes_[_27]={name:_27,value:_28};
},moduleHasPrefix:function(_29){
var mp=this.modulePrefixes_;
return Boolean(mp[_29]&&mp[_29].value);
},getModulePrefix:function(_2b){
if(this.moduleHasPrefix(_2b)){
return this.modulePrefixes_[_2b].value;
}
return _2b;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _26){
dojo.hostenv[_2c]=_26[_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 true;
}
var _33=this.getText(uri,null,true);
if(!_33){
return false;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return true;
};
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 Boolean(ok&&this.findModule(_36,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;i>0;i--){
var _45=_43.slice(0,i).join(".");
if((i==1)&&!this.moduleHasPrefix(_45)){
_43[0]="../"+_43[0];
}else{
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=_47.split(".");
var _4d=this.getModuleSymbols(_47);
var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/));
var _4f=_4d[_4d.length-1];
var ok;
if(_4f=="*"){
_47=_4c.slice(0,-1).join(".");
while(_4d.length){
_4d.pop();
_4d.push(this.pkgFileName);
_4b=_4d.join("/")+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,!_49?_47:null);
if(ok){
break;
}
_4d.pop();
}
}else{
_4b=_4d.join("/")+".js";
_47=_4c.join(".");
var _51=!_49?_47:null;
ok=this.loadPath(_4b,_51);
if(!ok&&!_48){
_4d.pop();
while(_4d.length){
_4b=_4d.join("/")+".js";
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
_4d.pop();
_4b=_4d.join("/")+"/"+this.pkgFileName+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,_51);
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(_52){
var _53=String(_52);
var _54=_53;
var _55=_52.split(/\./);
if(_55[_55.length-1]=="*"){
_55.pop();
_54=_55.join(".");
}
var _56=dojo.evalObjPath(_54,true);
this.loaded_modules_[_53]=_56;
this.loaded_modules_[_54]=_56;
return _56;
};
dojo.hostenv.findModule=function(_57,_58){
var lmn=String(_57);
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
if(_58){
dojo.raise("no loaded module named '"+_57+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_5a){
var _5b=_5a["common"]||[];
var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]);
for(var x=0;x<_5c.length;x++){
var _5e=_5c[x];
if(_5e.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5e);
}else{
dojo.hostenv.loadModule(_5e);
}
}
};
dojo.require=function(_5f){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(_60,_61){
var _62=arguments[0];
if((_62===true)||(_62=="common")||(_62&&dojo.render[_62].capable)){
var _63=[];
for(var i=1;i<arguments.length;i++){
_63.push(arguments[i]);
}
dojo.require.apply(dojo,_63);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(_65){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.registerModulePath=function(_66,_67){
return dojo.hostenv.setModulePrefix(_66,_67);
};
dojo.setModulePrefix=function(_68,_69){
dojo.deprecated("dojo.setModulePrefix(\""+_68+"\", \""+_69+"\")","replaced by dojo.registerModulePath","0.5");
return dojo.registerModulePath(_68,_69);
};
dojo.exists=function(obj,_6b){
var p=_6b.split(".");
for(var i=0;i<p.length;i++){
if(!obj[p[i]]){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.hostenv.normalizeLocale=function(_6e){
var _6f=_6e?_6e.toLowerCase():dojo.locale;
if(_6f=="root"){
_6f="ROOT";
}
return _6f;
};
dojo.hostenv.searchLocalePath=function(_70,_71,_72){
_70=dojo.hostenv.normalizeLocale(_70);
var _73=_70.split("-");
var _74=[];
for(var i=_73.length;i>0;i--){
_74.push(_73.slice(0,i).join("-"));
}
_74.push(false);
if(_71){
_74.reverse();
}
for(var j=_74.length-1;j>=0;j--){
var loc=_74[j]||"ROOT";
var _78=_72(loc);
if(_78){
break;
}
}
};
dojo.hostenv.localesGenerated=["ROOT","es-es","es","it-it","pt-br","de","fr-fr","zh-cn","pt","en-us","zh","fr","zh-tw","it","en-gb","xx","de-de","ko-kr","ja-jp","ko","en","ja"];
dojo.hostenv.registerNlsPrefix=function(){
dojo.registerModulePath("nls","nls");
};
dojo.hostenv.preloadLocalizations=function(){
if(dojo.hostenv.localesGenerated){
dojo.hostenv.registerNlsPrefix();
function preload(_79){
_79=dojo.hostenv.normalizeLocale(_79);
dojo.hostenv.searchLocalePath(_79,true,function(loc){
for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){
if(dojo.hostenv.localesGenerated[i]==loc){
dojo["require"]("nls.dojo_"+loc);
return true;
}
}
return false;
});
}
preload();
var _7c=djConfig.extraLocale||[];
for(var i=0;i<_7c.length;i++){
preload(_7c[i]);
}
}
dojo.hostenv.preloadLocalizations=function(){
};
};
dojo.requireLocalization=function(_7e,_7f,_80,_81){
dojo.hostenv.preloadLocalizations();
var _82=dojo.hostenv.normalizeLocale(_80);
var _83=[_7e,"nls",_7f].join(".");
var _84="";
if(_81){
var _85=_81.split(",");
for(var i=0;i<_85.length;i++){
if(_82.indexOf(_85[i])==0){
if(_85[i].length>_84.length){
_84=_85[i];
}
}
}
if(!_84){
_84="ROOT";
}
}
var _87=_81?_84:_82;
var _88=dojo.hostenv.findModule(_83);
var _89=null;
if(_88){
if(djConfig.localizationComplete&&_88._built){
return;
}
var _8a=_87.replace("-","_");
var _8b=_83+"."+_8a;
_89=dojo.hostenv.findModule(_8b);
}
if(!_89){
_88=dojo.hostenv.startPackage(_83);
var _8c=dojo.hostenv.getModuleSymbols(_7e);
var _8d=_8c.concat("nls").join("/");
var _8e;
dojo.hostenv.searchLocalePath(_87,_81,function(loc){
var _90=loc.replace("-","_");
var _91=_83+"."+_90;
var _92=false;
if(!dojo.hostenv.findModule(_91)){
dojo.hostenv.startPackage(_91);
var _93=[_8d];
if(loc!="ROOT"){
_93.push(loc);
}
_93.push(_7f);
var _94=_93.join("/")+".js";
_92=dojo.hostenv.loadPath(_94,null,function(_95){
var _96=function(){
};
_96.prototype=_8e;
_88[_90]=new _96();
for(var j in _95){
_88[_90][j]=_95[j];
}
});
}else{
_92=true;
}
if(_92&&_88[_90]){
_8e=_88[_90];
}else{
_88[_90]=_8e;
}
if(_81){
return true;
}
});
}
if(_81&&_82!=_84){
_88[_82.replace("-","_")]=_88[_84.replace("-","_")];
}
};
(function(){
var _98=djConfig.extraLocale;
if(_98){
if(!_98 instanceof Array){
_98=[_98];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_9c,_9d){
req(m,b,_9c,_9d);
if(_9c){
return;
}
for(var i=0;i<_98.length;i++){
req(m,b,_98[i],_9d);
}
};
}
})();
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _9f=document.location.toString();
var _a0=_9f.split("?",2);
if(_a0.length>1){
var _a1=_a0[1];
var _a2=_a1.split("&");
for(var x in _a2){
var sp=_a2[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 _a6=document.getElementsByTagName("script");
var _a7=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_a6.length;i++){
var src=_a6[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_a7);
if(m){
var _ab=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_ab+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_ab;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_ab;
}
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 _b3=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_b3>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_b3+6,_b3+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;
var cm=document["compatMode"];
drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;
dojo.locale=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;
var _b5=window["document"];
var tdi=_b5["implementation"];
if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
if(drh.safari){
var tmp=dua.split("AppleWebKit/")[1];
var ver=parseFloat(tmp.split(" ")[0]);
if(ver>=420){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
}else{
}
})();
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 _b9=null;
var _ba=null;
try{
_b9=new XMLHttpRequest();
}
catch(e){
}
if(!_b9){
for(var i=0;i<3;++i){
var _bc=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_b9=new ActiveXObject(_bc);
}
catch(e){
_ba=e;
}
if(_b9){
dojo.hostenv._XMLHTTP_PROGIDS=[_bc];
break;
}
}
}
if(!_b9){
return dojo.raise("XMLHTTP not available",_ba);
}
return _b9;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_be,_bf){
if(!_be){
this._blockAsync=true;
}
var _c0=this.getXmlhttpObject();
function isDocumentOk(_c1){
var _c2=_c1["status"];
return Boolean((!_c2)||((200<=_c2)&&(300>_c2))||(_c2==304));
}
if(_be){
var _c3=this,_c4=null,gbl=dojo.global();
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
_c0.onreadystatechange=function(){
if(_c4){
gbl.clearTimeout(_c4);
_c4=null;
}
if(_c3._blockAsync||(xhr&&xhr._blockAsync)){
_c4=gbl.setTimeout(function(){
_c0.onreadystatechange.apply(this);
},10);
}else{
if(4==_c0.readyState){
if(isDocumentOk(_c0)){
_be(_c0.responseText);
}
}
}
};
}
_c0.open("GET",uri,_be?true:false);
try{
_c0.send(null);
if(_be){
return null;
}
if(!isDocumentOk(_c0)){
var err=Error("Unable to load "+uri+" status:"+_c0.status);
err.status=_c0.status;
err.responseText=_c0.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_bf)&&(!_be)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return _c0.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_c8){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_c8);
}else{
try{
var _c9=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_c9){
_c9=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_c8));
_c9.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_c8+"</div>");
}
catch(e2){
window.status=_c8;
}
}
}
};
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(_cb,_cc,fp){
var _ce=_cb["on"+_cc]||function(){
};
_cb["on"+_cc]=function(){
fp.apply(_cb,arguments);
_ce.apply(_cb,arguments);
};
return true;
}
function dj_load_init(e){
var _d0=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_d0!="domcontentloaded"&&_d0!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _d1=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_d1();
dojo.hostenv.modulesLoaded();
}else{
dojo.hostenv.modulesLoadedListeners.unshift(_d1);
}
}
if(document.addEventListener){
if(dojo.render.html.opera||(dojo.render.html.moz&&!djConfig.delayMozLoadingFix)){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
}
window.addEventListener("load",dj_load_init,null);
}
if(dojo.render.html.ie&&dojo.render.os.win){
document.attachEvent("onreadystatechange",function(e){
if(document.readyState=="complete"){
dj_load_init();
}
});
}
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
var _timer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dj_load_init();
}
},10);
}
if(dojo.render.html.ie){
dj_addNodeEvtHdlr(window,"beforeunload",function(){
dojo.hostenv._unloading=true;
window.setTimeout(function(){
dojo.hostenv._unloading=false;
},0);
});
}
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){
dojo.hostenv.unloaded();
}
});
dojo.hostenv.makeWidgets=function(){
var _d3=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_d3=_d3.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_d3=_d3.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_d3.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _d4=new dojo.xml.Parse();
if(_d3.length>0){
for(var x=0;x<_d3.length;x++){
var _d6=document.getElementById(_d3[x]);
if(!_d6){
continue;
}
var _d7=_d4.parseElement(_d6,null,true);
dojo.widget.getParser().createComponents(_d7);
}
}else{
if(djConfig.parseWidgets){
var _d7=_d4.parseElement(dojo.body(),null,true);
dojo.widget.getParser().createComponents(_d7);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
if(!dj_undef("document",this)){
dj_currentDocument=this.document;
}
dojo.doc=function(){
return dj_currentDocument;
};
dojo.body=function(){
return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0];
};
dojo.byId=function(id,doc){
if((id)&&((typeof id=="string")||(id instanceof String))){
if(!doc){
doc=dj_currentDocument;
}
var ele=doc.getElementById(id);
if(ele&&(ele.id!=id)&&doc.all){
ele=null;
eles=doc.all[id];
if(eles){
if(eles.length){
for(var i=0;i<eles.length;i++){
if(eles[i].id==id){
ele=eles[i];
break;
}
}
}else{
ele=eles;
}
}
}
return ele;
}
return id;
};
dojo.setContext=function(_dc,_dd){
dj_currentContext=_dc;
dj_currentDocument=_dd;
};
dojo._fireCallback=function(_de,_df,_e0){
if((_df)&&((typeof _de=="string")||(_de instanceof String))){
_de=_df[_de];
}
return (_df?_de.apply(_df,_e0||[]):_de());
};
dojo.withGlobal=function(_e1,_e2,_e3,_e4){
var _e5;
var _e6=dj_currentContext;
var _e7=dj_currentDocument;
try{
dojo.setContext(_e1,_e1.document);
_e5=dojo._fireCallback(_e2,_e3,_e4);
}
finally{
dojo.setContext(_e6,_e7);
}
return _e5;
};
dojo.withDoc=function(_e8,_e9,_ea,_eb){
var _ec;
var _ed=dj_currentDocument;
try{
dj_currentDocument=_e8;
_ec=dojo._fireCallback(_e9,_ea,_eb);
}
finally{
dj_currentDocument=_ed;
}
return _ec;
};
}
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _ee=false;
var _ef=false;
var _f0=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_ee=true;
}else{
if(typeof this["load"]=="function"){
_ef=true;
}else{
if(window.widget){
_f0=true;
}
}
}
var _f1=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_f1.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_ee)&&(!_f0)){
_f1.push("browser_debug.js");
}
var _f2=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_f2=djConfig["baseLoaderUri"];
}
for(var x=0;x<_f1.length;x++){
var _f4=_f2+"src/"+_f1[x];
if(_ee||_ef){
load(_f4);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_f4+"'></scr"+"ipt>");
}
catch(e){
var _f5=document.createElement("script");
_f5.src=_f4;
document.getElementsByTagName("head")[0].appendChild(_f5);
}
}
}
})();
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_f6,_f7){
if(!dojo.lang.isFunction(_f7)){
dojo.raise("dojo.inherits: superclass argument ["+_f7+"] must be a function (subclass: ["+_f6+"']");
}
_f6.prototype=new _f7();
_f6.prototype.constructor=_f6;
_f6.superclass=_f7.prototype;
_f6["super"]=_f7.prototype;
};
dojo.lang._mixin=function(obj,_f9){
var _fa={};
for(var x in _f9){
if((typeof _fa[x]=="undefined")||(_fa[x]!=_f9[x])){
obj[x]=_f9[x];
}
}
if(dojo.render.html.ie&&(typeof (_f9["toString"])=="function")&&(_f9["toString"]!=obj["toString"])&&(_f9["toString"]!=_fa["toString"])){
obj.toString=_f9.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_fd){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_100,_101){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_100.prototype,arguments[i]);
}
return _100;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_104,_105,_106,_107){
if(!dojo.lang.isArrayLike(_104)&&dojo.lang.isArrayLike(_105)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_104;
_104=_105;
_105=temp;
}
var _109=dojo.lang.isString(_104);
if(_109){
_104=_104.split("");
}
if(_107){
var step=-1;
var i=_104.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_104.length;
}
if(_106){
while(i!=end){
if(_104[i]===_105){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_104[i]==_105){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_10d,_10e,_10f){
return dojo.lang.find(_10d,_10e,_10f,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_110,_111){
return dojo.lang.find(_110,_111)>-1;
};
dojo.lang.isObject=function(it){
if(typeof it=="undefined"){
return false;
}
return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));
};
dojo.lang.isArray=function(it){
return (it&&it instanceof Array||typeof it=="array");
};
dojo.lang.isArrayLike=function(it){
if((!it)||(dojo.lang.isUndefined(it))){
return false;
}
if(dojo.lang.isString(it)){
return false;
}
if(dojo.lang.isFunction(it)){
return false;
}
if(dojo.lang.isArray(it)){
return true;
}
if((it.tagName)&&(it.tagName.toLowerCase()=="form")){
return false;
}
if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(it){
return (it instanceof Function||typeof it=="function");
};
(function(){
if((dojo.render.html.capable)&&(dojo.render.html["safari"])){
dojo.lang.isFunction=function(it){
if((typeof (it)=="function")&&(it=="[object NodeList]")){
return false;
}
return (it instanceof Function||typeof it=="function");
};
}
})();
dojo.lang.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.lang.isAlien=function(it){
if(!it){
return false;
}
return !dojo.lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.lang.isBoolean=function(it){
return (it instanceof Boolean||typeof it=="boolean");
};
dojo.lang.isNumber=function(it){
return (it instanceof Number||typeof it=="number");
};
dojo.lang.isUndefined=function(it){
return ((typeof (it)=="undefined")&&(it==undefined));
};
dojo.provide("dojo.animation.AnimationEvent");
dojo.deprecated("dojo.animation.AnimationEvent is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");
dojo.animation.AnimationEvent=function(_11c,type,_11e,_11f,_120,_121,_122,_123,fps){
this.type=type;
this.animation=_11c;
this.coords=_11e;
this.x=_11e[0];
this.y=_11e[1];
this.z=_11e[2];
this.startTime=_11f;
this.currentTime=_120;
this.endTime=_121;
this.duration=_122;
this.percent=_123;
this.fps=fps;
};
dojo.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _125=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_125[i]=Math.round(this.coords[i]);
}
return _125;
}});
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_127,_128){
var fcn=(dojo.lang.isString(_128)?_127[_128]:_128)||function(){
};
return function(){
return fcn.apply(_127,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_12a,_12b,_12c){
var nso=(_12b||dojo.lang.anon);
if((_12c)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_12a){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_12a;
return ret;
};
dojo.lang.forward=function(_130){
return function(){
return this[_130].apply(this,arguments);
};
};
dojo.lang.curry=function(_131,func){
var _133=[];
_131=_131||dj_global;
if(dojo.lang.isString(func)){
func=_131[func];
}
for(var x=2;x<arguments.length;x++){
_133.push(arguments[x]);
}
var _135=(func["__preJoinArity"]||func.length)-_133.length;
function gather(_136,_137,_138){
var _139=_138;
var _13a=_137.slice(0);
for(var x=0;x<_136.length;x++){
_13a.push(_136[x]);
}
_138=_138-_136.length;
if(_138<=0){
var res=func.apply(_131,_13a);
_138=_139;
return res;
}else{
return function(){
return gather(arguments,_13a,_138);
};
}
}
return gather([],_133,_135);
};
dojo.lang.curryArguments=function(_13d,func,args,_140){
var _141=[];
var x=_140||0;
for(x=_140;x<args.length;x++){
_141.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_13d,func].concat(_141));
};
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,_147,_148){
if(!farr.length){
if(typeof _148=="function"){
_148();
}
return;
}
if((typeof _147=="undefined")&&(typeof cb=="number")){
_147=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_147){
_147=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_147,_148);
},_147);
};
dojo.provide("dojo.math");
dojo.math.degToRad=function(x){
return (x*Math.PI)/180;
};
dojo.math.radToDeg=function(x){
return (x*180)/Math.PI;
};
dojo.math.factorial=function(n){
if(n<1){
return 0;
}
var _14c=1;
for(var i=1;i<=n;i++){
_14c*=i;
}
return _14c;
};
dojo.math.permutations=function(n,k){
if(n==0||k==0){
return 1;
}
return (dojo.math.factorial(n)/dojo.math.factorial(n-k));
};
dojo.math.combinations=function(n,r){
if(n==0||r==0){
return 1;
}
return (dojo.math.factorial(n)/(dojo.math.factorial(n-r)*dojo.math.factorial(r)));
};
dojo.math.bernstein=function(t,n,i){
return (dojo.math.combinations(n,i)*Math.pow(t,i)*Math.pow(1-t,n-i));
};
dojo.math.gaussianRandom=function(){
var k=2;
do{
var i=2*Math.random()-1;
var j=2*Math.random()-1;
k=i*i+j*j;
}while(k>=1);
k=Math.sqrt((-2*Math.log(k))/k);
return i*k;
};
dojo.math.mean=function(){
var _158=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_158.length;i++){
mean+=_158[i];
}
return mean/_158.length;
};
dojo.math.round=function(_15b,_15c){
if(!_15c){
var _15d=1;
}else{
var _15d=Math.pow(10,_15c);
}
return Math.round(_15b*_15d)/_15d;
};
dojo.math.sd=dojo.math.standardDeviation=function(){
var _15e=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_15e));
};
dojo.math.variance=function(){
var _15f=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,_161=0;
for(var i=0;i<_15f.length;i++){
mean+=_15f[i];
_161+=Math.pow(_15f[i],2);
}
return (_161/_15f.length)-Math.pow(mean/_15f.length,2);
};
dojo.math.range=function(a,b,step){
if(arguments.length<2){
b=a;
a=0;
}
if(arguments.length<3){
step=1;
}
var _166=[];
if(step>0){
for(var i=a;i<b;i+=step){
_166.push(i);
}
}else{
if(step<0){
for(var i=a;i>b;i+=step){
_166.push(i);
}
}else{
throw new Error("dojo.math.range: step must be non-zero");
}
}
return _166;
};
dojo.provide("dojo.math.curves");
dojo.math.curves={Line:function(_168,end){
this.start=_168;
this.end=end;
this.dimensions=_168.length;
for(var i=0;i<_168.length;i++){
_168[i]=Number(_168[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _16c=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_16c[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _16c;
};
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 _170=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_170[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);
}
_170[j]=C/D;
}
return _170;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _17a=step*(this.p.length-1);
var node=Math.floor(_17a);
var _17c=_17a-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=_17c;
var u2=_17c*_17c;
var u3=_17c*_17c*_17c;
var _184=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];
_184[k]=x1*u3+x2*u2+x3*u+x4;
}
return _184;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_18a,end,ccw){
var _18d=dojo.math.points.midpoint(_18a,end);
var _18e=dojo.math.points.translate(dojo.math.points.invert(_18d),_18a);
var rad=Math.sqrt(Math.pow(_18e[0],2)+Math.pow(_18e[1],2));
var _190=dojo.math.radToDeg(Math.atan(_18e[1]/_18e[0]));
if(_18e[0]<0){
_190-=90;
}else{
_190+=90;
}
dojo.math.curves.CenteredArc.call(this,_18d,rad,_190,_190+(ccw?-180:180));
},CenteredArc:function(_191,_192,_193,end){
this.center=_191;
this.radius=_192;
this.start=_193||0;
this.end=end;
this.getValue=function(n){
var _196=new Array(2);
var _197=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_196[0]=this.center[0]+this.radius*Math.sin(_197);
_196[1]=this.center[1]-this.radius*Math.cos(_197);
return _196;
};
return this;
},Circle:function(_198,_199){
dojo.math.curves.CenteredArc.call(this,_198,_199,0,360);
return this;
},Path:function(){
var _19a=[];
var _19b=[];
var _19c=[];
var _19d=0;
this.add=function(_19e,_19f){
if(_19f<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_19a.push(_19e);
_19b.push(_19f);
_19d+=_19f;
computeRanges();
};
this.remove=function(_1a0){
for(var i=0;i<_19a.length;i++){
if(_19a[i]==_1a0){
_19a.splice(i,1);
_19d-=_19b.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_19a=[];
_19b=[];
_19d=0;
};
this.getValue=function(n){
var _1a3=false,_1a4=0;
for(var i=0;i<_19c.length;i++){
var r=_19c[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
_1a4=_19a[i].getValue(subN);
_1a3=true;
break;
}
}
if(!_1a3){
_1a4=_19a[_19a.length-1].getValue(1);
}
for(var j=0;j<i;j++){
_1a4=dojo.math.points.translate(_1a4,_19a[j].getValue(1));
}
return _1a4;
};
function computeRanges(){
var _1a9=0;
for(var i=0;i<_19b.length;i++){
var end=_1a9+_19b[i]/_19d;
var len=end-_1a9;
_19c[i]=[_1a9,end,len];
_1a9=end;
}
}
return this;
}};
dojo.provide("dojo.animation.Animation");
dojo.deprecated("dojo.animation.Animation is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");
dojo.animation.Animation=function(_1ad,_1ae,_1af,_1b0,rate){
if(dojo.lang.isArray(_1ad)){
_1ad=new dojo.math.curves.Line(_1ad[0],_1ad[1]);
}
this.curve=_1ad;
this.duration=_1ae;
this.repeatCount=_1b0||0;
this.rate=rate||25;
if(_1af){
if(dojo.lang.isFunction(_1af.getValue)){
this.accel=_1af;
}else{
var i=0.35*_1af+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(_1b3){
if(_1b3){
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,_1b7){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_1b7){
this.play();
}
},stop:function(_1b8){
clearTimeout(this._timer);
var step=this._percent/100;
if(_1b8){
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.AnimationSequence");
dojo.deprecated("dojo.animation.AnimationSequence is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");
dojo.animation.AnimationSequence=function(_1bf){
this._anims=[];
this.repeatCount=_1bf||0;
};
dojo.lang.extend(dojo.animation.AnimationSequence,{repeatCount:0,_anims:[],_currAnim:-1,onBegin:null,onEnd:null,onNext:null,handler:null,add:function(){
for(var i=0;i<arguments.length;i++){
this._anims.push(arguments[i]);
arguments[i]._animSequence=this;
}
},remove:function(anim){
for(var i=0;i<this._anims.length;i++){
if(this._anims[i]==anim){
this._anims[i]._animSequence=null;
this._anims.splice(i,1);
break;
}
}
},removeAll:function(){
for(var i=0;i<this._anims.length;i++){
this._anims[i]._animSequence=null;
}
this._anims=[];
this._currAnim=-1;
},clear:function(){
this.removeAll();
},play:function(_1c4){
if(this._anims.length==0){
return;
}
if(_1c4||!this._anims[this._currAnim]){
this._currAnim=0;
}
if(this._anims[this._currAnim]){
if(this._currAnim==0){
var e={type:"begin",animation:this._anims[this._currAnim]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
this._anims[this._currAnim].play(_1c4);
}
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
}
},playPause:function(){
if(this._anims.length==0){
return;
}
if(this._currAnim==-1){
this._currAnim=0;
}
if(this._anims[this._currAnim]){
this._anims[this._currAnim].playPause();
}
},stop:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].stop();
}
},status:function(){
if(this._anims[this._currAnim]){
return this._anims[this._currAnim].status();
}else{
return "stopped";
}
},_setCurrent:function(anim){
for(var i=0;i<this._anims.length;i++){
if(this._anims[i]==anim){
this._currAnim=i;
break;
}
}
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return;
}
this._currAnim++;
if(this._anims[this._currAnim]){
var e={type:"next",animation:this._anims[this._currAnim]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onNext=="function"){
this.onNext(e);
}
this._anims[this._currAnim].play(true);
}else{
var e={type:"end",animation:this._anims[this._anims.length-1]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this._currAnim=0;
this.repeatCount--;
this._anims[this._currAnim].play(true);
}else{
if(this.repeatCount==-1){
this._currAnim=0;
this._anims[this._currAnim].play(true);
}else{
this._currAnim=-1;
}
}
}
}});
dojo.provide("dojo.animation.*");
dojo.deprecated("dojo.Animation.* is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");
dojo.provide("dojo.collections.Collections");
dojo.collections.DictionaryEntry=function(k,v){
this.key=k;
this.value=v;
this.valueOf=function(){
return this.value;
};
this.toString=function(){
return String(this.value);
};
};
dojo.collections.Iterator=function(arr){
var a=arr;
var _1cd=0;
this.element=a[_1cd]||null;
this.atEnd=function(){
return (_1cd>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_1cd++];
return this.element;
};
this.map=function(fn,_1cf){
var s=_1cf||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_1cd=0;
this.element=a[_1cd];
};
};
dojo.collections.DictionaryIterator=function(obj){
var a=[];
var _1d5={};
for(var p in obj){
if(!_1d5[p]){
a.push(obj[p]);
}
}
var _1d7=0;
this.element=a[_1d7]||null;
this.atEnd=function(){
return (_1d7>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_1d7++];
return this.element;
};
this.map=function(fn,_1d9){
var s=_1d9||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_1d7=0;
this.element=a[_1d7];
};
};
dojo.provide("dojo.collections.ArrayList");
dojo.collections.ArrayList=function(arr){
var _1de=[];
if(arr){
_1de=_1de.concat(arr);
}
this.count=_1de.length;
this.add=function(obj){
_1de.push(obj);
this.count=_1de.length;
};
this.addRange=function(a){
if(a.getIterator){
var e=a.getIterator();
while(!e.atEnd()){
this.add(e.get());
}
this.count=_1de.length;
}else{
for(var i=0;i<a.length;i++){
_1de.push(a[i]);
}
this.count=_1de.length;
}
};
this.clear=function(){
_1de.splice(0,_1de.length);
this.count=0;
};
this.clone=function(){
return new dojo.collections.ArrayList(_1de);
};
this.contains=function(obj){
for(var i=0;i<_1de.length;i++){
if(_1de[i]==obj){
return true;
}
}
return false;
};
this.forEach=function(fn,_1e6){
var s=_1e6||dj_global;
if(Array.forEach){
Array.forEach(_1de,fn,s);
}else{
for(var i=0;i<_1de.length;i++){
fn.call(s,_1de[i],i,_1de);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(_1de);
};
this.indexOf=function(obj){
for(var i=0;i<_1de.length;i++){
if(_1de[i]==obj){
return i;
}
}
return -1;
};
this.insert=function(i,obj){
_1de.splice(i,0,obj);
this.count=_1de.length;
};
this.item=function(i){
return _1de[i];
};
this.remove=function(obj){
var i=this.indexOf(obj);
if(i>=0){
_1de.splice(i,1);
}
this.count=_1de.length;
};
this.removeAt=function(i){
_1de.splice(i,1);
this.count=_1de.length;
};
this.reverse=function(){
_1de.reverse();
};
this.sort=function(fn){
if(fn){
_1de.sort(fn);
}else{
_1de.sort();
}
};
this.setByIndex=function(i,obj){
_1de[i]=obj;
this.count=_1de.length;
};
this.toArray=function(){
return [].concat(_1de);
};
this.toString=function(_1f4){
return _1de.join((_1f4||","));
};
};
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_1f6){
var _1f7=window,_1f8=2;
if(!dojo.lang.isFunction(func)){
_1f7=func;
func=_1f6;
_1f6=arguments[2];
_1f8++;
}
if(dojo.lang.isString(func)){
func=_1f7[func];
}
var args=[];
for(var i=_1f8;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_1f7,args);
},_1f6);
};
dojo.lang.clearTimeout=function(_1fb){
dojo.global().clearTimeout(_1fb);
};
dojo.lang.getNameInObj=function(ns,item){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===item){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj,deep){
var i,ret;
if(obj===null){
return null;
}
if(dojo.lang.isObject(obj)){
ret=new obj.constructor();
for(i in obj){
if(dojo.lang.isUndefined(ret[i])){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}
}else{
if(dojo.lang.isArray(obj)){
ret=[];
for(i=0;i<obj.length;i++){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}else{
ret=obj;
}
}
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(_204,_205,_206){
with(dojo.parseObjPath(_204,_205,_206)){
return dojo.evalProp(prop,obj,_206);
}
};
dojo.lang.setObjPathValue=function(_207,_208,_209,_20a){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_20a=true;
}
with(dojo.parseObjPath(_207,_209,_20a)){
if(obj&&(_20a||(prop in obj))){
obj[prop]=_208;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_20b,_20c,init,_20e){
if((dojo.lang.isFunction(_20e))||((!_20e)&&(!dojo.lang.isFunction(init)))){
var temp=_20e;
_20e=init;
init=temp;
}
var _210=[];
if(dojo.lang.isArray(_20c)){
_210=_20c;
_20c=_210.shift();
}
if(!init){
init=dojo.evalObjPath(_20b,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_20c?_20c.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _20c();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_210;
for(var i=0,l=_210.length;i<l;i++){
dojo.lang.extend(ctor,_210[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_20b;
if(dojo.lang.isArray(_20e)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_20e));
}else{
dojo.lang.extend(ctor,(_20e)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _215=dojo.parseObjPath(_20b,null,true);
_215.obj[_215.prop]=ctor;
return ctor;
};
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._contextMethod(s,"constructor",arguments);
}
}
var ms=(self.constructor.mixins)||([]);
for(var i=0,m;(m=ms[i]);i++){
(((m.prototype)&&(m.prototype.initializer))||(m)).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare._common={_getPropContext:function(){
return (this.___proto||this);
},_contextMethod:function(_21b,_21c,args){
var _21e,_21f=this.___proto;
this.___proto=_21b;
try{
_21e=_21b[_21c].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_21f;
}
return _21e;
},_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._contextMethod(p,prop,args):p[prop]);
},inherited:function(prop,args){
dojo.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");
this._inherited(prop,args);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.dnd.DragAndDrop");
dojo.declare("dojo.dnd.DragSource",null,{type:"",onDragEnd:function(evt){
},onDragStart:function(evt){
},onSelected:function(evt){
},unregister:function(){
dojo.dnd.dragManager.unregisterDragSource(this);
},reregister:function(){
dojo.dnd.dragManager.registerDragSource(this);
}});
dojo.declare("dojo.dnd.DragObject",null,{type:"",register:function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragObject"]){
dm.registerDragObject(this);
}
},onDragStart:function(evt){
},onDragMove:function(evt){
},onDragOver:function(evt){
},onDragOut:function(evt){
},onDragEnd:function(evt){
},onDragLeave:dojo.lang.forward("onDragOut"),onDragEnter:dojo.lang.forward("onDragOver"),ondragout:dojo.lang.forward("onDragOut"),ondragover:dojo.lang.forward("onDragOver")});
dojo.declare("dojo.dnd.DropTarget",null,{acceptsType:function(type){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
if(!dojo.lang.inArray(this.acceptedTypes,type)){
return false;
}
}
return true;
},accepts:function(_22f){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
for(var i=0;i<_22f.length;i++){
if(!dojo.lang.inArray(this.acceptedTypes,_22f[i].type)){
return false;
}
}
}
return true;
},unregister:function(){
dojo.dnd.dragManager.unregisterDropTarget(this);
},onDragOver:function(evt){
},onDragOut:function(evt){
},onDragMove:function(evt){
},onDropStart:function(evt){
},onDrop:function(evt){
},onDropEnd:function(){
}},function(){
this.acceptedTypes=[];
});
dojo.dnd.DragEvent=function(){
this.dragSource=null;
this.dragObject=null;
this.target=null;
this.eventStatus="success";
};
dojo.declare("dojo.dnd.DragManager",null,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(_236){
},dropTargets:[],registerDropTarget:function(_237){
},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){
},onMouseOut:function(){
},onMouseMove:function(){
},onMouseUp:function(){
}});
dojo.provide("dojo.lang.array");
dojo.lang.mixin(dojo.lang,{has:function(obj,name){
try{
return typeof obj[name]!="undefined";
}
catch(e){
return false;
}
},isEmpty:function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _23c=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_23c++;
break;
}
}
return _23c==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_240){
var _241=dojo.lang.isString(arr);
if(_241){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_240)){
_240=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_240){
var _242=obj;
obj=_240;
_240=_242;
}
}
if(Array.map){
var _243=Array.map(arr,_240,obj);
}else{
var _243=[];
for(var i=0;i<arr.length;++i){
_243.push(_240.call(obj,arr[i]));
}
}
if(_241){
return _243.join("");
}else{
return _243;
}
},reduce:function(arr,_246,obj,_248){
var _249=_246;
if(arguments.length==1){
dojo.debug("dojo.lang.reduce called with too few arguments!");
return false;
}else{
if(arguments.length==2){
_248=_246;
_249=arr.shift();
}else{
if(arguments.lenght==3){
if(dojo.lang.isFunction(obj)){
_248=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_248;
_248=obj;
obj=tmp;
}
}
}
}
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_249=_248.call(ob,_249,val);
});
return _249;
},forEach:function(_24d,_24e,_24f){
if(dojo.lang.isString(_24d)){
_24d=_24d.split("");
}
if(Array.forEach){
Array.forEach(_24d,_24e,_24f);
}else{
if(!_24f){
_24f=dj_global;
}
for(var i=0,l=_24d.length;i<l;i++){
_24e.call(_24f,_24d[i],i,_24d);
}
}
},_everyOrSome:function(_252,arr,_254,_255){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_252?"every":"some"](arr,_254,_255);
}else{
if(!_255){
_255=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _258=_254.call(_255,arr[i],i,arr);
if(_252&&!_258){
return false;
}else{
if((!_252)&&(_258)){
return true;
}
}
}
return Boolean(_252);
}
},every:function(arr,_25a,_25b){
return this._everyOrSome(true,arr,_25a,_25b);
},some:function(arr,_25d,_25e){
return this._everyOrSome(false,arr,_25d,_25e);
},filter:function(arr,_260,_261){
var _262=dojo.lang.isString(arr);
if(_262){
arr=arr.split("");
}
var _263;
if(Array.filter){
_263=Array.filter(arr,_260,_261);
}else{
if(!_261){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_261=dj_global;
}
_263=[];
for(var i=0;i<arr.length;i++){
if(_260.call(_261,arr[i],i,arr)){
_263.push(arr[i]);
}
}
}
if(_262){
return _263.join("");
}else{
return _263;
}
},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;
},toArray:function(_268,_269){
var _26a=[];
for(var i=_269||0;i<_268.length;i++){
_26a.push(_268[i]);
}
return _26a;
}});
dojo.provide("dojo.event.common");
dojo.event=new function(){
this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_26d){
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 _270=dl.nameAnonFunc(args[2],ao.adviceObj,_26d);
ao.adviceFunc=_270;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _270=dl.nameAnonFunc(args[0],ao.srcObj,_26d);
ao.srcFunc=_270;
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 _270=dl.nameAnonFunc(args[1],dj_global,_26d);
ao.srcFunc=_270;
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 _270=dl.nameAnonFunc(args[3],dj_global,_26d);
ao.adviceObj=dj_global;
ao.adviceFunc=_270;
}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 _270=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_26d);
ao.aroundFunc=_270;
}
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);
}
if(!ao.adviceFunc){
dojo.debug("bad adviceFunc for srcFunc: "+ao.srcFunc);
dojo.debugShallow(ao);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.connect(ao);
}
ao.srcFunc="onkeypress";
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _272={};
for(var x in ao){
_272[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);
}
_272.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_272));
});
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 _27a;
if((arguments.length==1)&&(typeof a1=="object")){
_27a=a1;
}else{
_27a={srcObj:a1,srcFunc:a2};
}
_27a.adviceFunc=function(){
var _27b=[];
for(var x=0;x<arguments.length;x++){
_27b.push(arguments[x]);
}
dojo.debug("("+_27a.srcObj+")."+_27a.srcFunc,":",_27b.join(", "));
};
this.kwConnect(_27a);
};
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(_282,_283){
var fn=(_283)?"disconnect":"connect";
if(typeof _282["srcFunc"]=="function"){
_282.srcObj=_282["srcObj"]||dj_global;
var _285=dojo.lang.nameAnonFunc(_282.srcFunc,_282.srcObj,true);
_282.srcFunc=_285;
}
if(typeof _282["adviceFunc"]=="function"){
_282.adviceObj=_282["adviceObj"]||dj_global;
var _285=dojo.lang.nameAnonFunc(_282.adviceFunc,_282.adviceObj,true);
_282.adviceFunc=_285;
}
_282.srcObj=_282["srcObj"]||dj_global;
_282.adviceObj=_282["adviceObj"]||_282["targetObj"]||dj_global;
_282.adviceFunc=_282["adviceFunc"]||_282["targetFunc"];
return dojo.event[fn](_282);
};
this.kwConnect=function(_286){
return this._kwConnectImpl(_286,false);
};
this.disconnect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(!ao.adviceFunc){
return;
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.disconnect(ao);
}
ao.srcFunc="onkeypress";
}
if(!ao.srcObj[ao.srcFunc]){
return null;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc,true);
mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
return mjp;
};
this.kwDisconnect=function(_289){
return this._kwConnectImpl(_289,true);
};
};
dojo.event.MethodInvocation=function(_28a,obj,args){
this.jp_=_28a;
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,_292){
this.object=obj||dj_global;
this.methodname=_292;
this.methodfunc=this.object[_292];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_294){
if(!obj){
obj=dj_global;
}
if(!obj[_294]){
obj[_294]=function(){
};
if(!obj[_294]){
dojo.raise("Cannot set do-nothing method on that object "+_294);
}
}else{
if((!dojo.lang.isFunction(obj[_294]))&&(!dojo.lang.isAlien(obj[_294]))){
return null;
}
}
var _295=_294+"$joinpoint";
var _296=_294+"$joinpoint$method";
var _297=obj[_295];
if(!_297){
var _298=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_298=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_295,_296,_294]);
}
}
var _299=obj[_294].length;
obj[_296]=obj[_294];
_297=obj[_295]=new dojo.event.MethodJoinPoint(obj,_296);
obj[_294]=function(){
var args=[];
if((_298)&&(!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{
if(obj.event){
evt=obj.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)&&(_298)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _297.run.apply(_297,args);
};
obj[_294].__preJoinArity=_299;
}
return _297;
};
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 _29f=[];
for(var x=0;x<args.length;x++){
_29f[x]=args[x];
}
var _2a1=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _2a3=marr[0]||dj_global;
var _2a4=marr[1];
if(!_2a3[_2a4]){
dojo.raise("function \""+_2a4+"\" does not exist on \""+_2a3+"\"");
}
var _2a5=marr[2]||dj_global;
var _2a6=marr[3];
var msg=marr[6];
var _2a8;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _2a3[_2a4].apply(_2a3,to.args);
}};
to.args=_29f;
var _2aa=parseInt(marr[4]);
var _2ab=((!isNaN(_2aa))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _2ae=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;
_2a1(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_2a6){
_2a5[_2a6].call(_2a5,to);
}else{
if((_2ab)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_2a3[_2a4].call(_2a3,to);
}else{
_2a3[_2a4].apply(_2a3,args);
}
},_2aa);
}else{
if(msg){
_2a3[_2a4].call(_2a3,to);
}else{
_2a3[_2a4].apply(_2a3,args);
}
}
}
};
var _2b1=function(){
if(this.squelch){
try{
return _2a1.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _2a1.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_2b1);
}
var _2b2;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_2b2=mi.proceed();
}else{
if(this.methodfunc){
_2b2=this.object[this.methodname].apply(this.object,args);
}
}
}
catch(e){
if(!this.squelch){
dojo.debug(e,"when calling",this.methodname,"on",this.object,"with arguments",args);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_2b1);
}
return (this.methodfunc)?_2b2:null;
},getArr:function(kind){
var type="after";
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
type="before";
}else{
if(kind=="around"){
type="around";
}
}
if(!this[type]){
this[type]=[];
}
return this[type];
},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(_2b7,_2b8,_2b9,_2ba,_2bb,_2bc,once,_2be,rate,_2c0){
var arr=this.getArr(_2bb);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_2b7,_2b8,_2b9,_2ba,_2be,rate,_2c0];
if(once){
if(this.hasAdvice(_2b7,_2b8,_2bb,arr)>=0){
return;
}
}
if(_2bc=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_2c3,_2c4,_2c5,arr){
if(!arr){
arr=this.getArr(_2c5);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _2c4=="object")?(new String(_2c4)).toString():_2c4;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_2c3)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_2cb,_2cc,_2cd,once){
var arr=this.getArr(_2cd);
var ind=this.hasAdvice(_2cb,_2cc,_2cd,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_2cb,_2cc,_2cd,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_2d1){
if(!this.topics[_2d1]){
this.topics[_2d1]=new this.TopicImpl(_2d1);
}
return this.topics[_2d1];
};
this.registerPublisher=function(_2d2,obj,_2d4){
var _2d2=this.getTopic(_2d2);
_2d2.registerPublisher(obj,_2d4);
};
this.subscribe=function(_2d5,obj,_2d7){
var _2d5=this.getTopic(_2d5);
_2d5.subscribe(obj,_2d7);
};
this.unsubscribe=function(_2d8,obj,_2da){
var _2d8=this.getTopic(_2d8);
_2d8.unsubscribe(obj,_2da);
};
this.destroy=function(_2db){
this.getTopic(_2db).destroy();
delete this.topics[_2db];
};
this.publishApply=function(_2dc,args){
var _2dc=this.getTopic(_2dc);
_2dc.sendMessage.apply(_2dc,args);
};
this.publish=function(_2de,_2df){
var _2de=this.getTopic(_2de);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_2de.sendMessage.apply(_2de,args);
};
};
dojo.event.topic.TopicImpl=function(_2e2){
this.topicName=_2e2;
this.subscribe=function(_2e3,_2e4){
var tf=_2e4||_2e3;
var to=(!_2e4)?dj_global:_2e3;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_2e7,_2e8){
var tf=(!_2e8)?_2e7:_2e8;
var to=(!_2e8)?null:_2e7;
return dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this._getJoinPoint=function(){
return dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage");
};
this.setSquelch=function(_2eb){
this._getJoinPoint().squelch=_2eb;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_2ec,_2ed){
dojo.event.connect(_2ec,_2ed,this,"sendMessage");
};
this.sendMessage=function(_2ee){
};
};
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(_2f1){
var na;
var tna;
if(_2f1){
tna=_2f1.all||_2f1.getElementsByTagName("*");
na=[_2f1];
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 _2f5={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
try{
if(el&&el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
catch(e){
}
}
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){
}
if(dojo.widget){
for(var name in dojo.widget._templateCache){
if(dojo.widget._templateCache[name].node){
dojo.dom.destroyNode(dojo.widget._templateCache[name].node);
dojo.widget._templateCache[name].node=null;
delete dojo.widget._templateCache[name].node;
}
}
}
try{
window.onload=null;
}
catch(e){
}
try{
window.onunload=null;
}
catch(e){
}
dojo._ie_clobber.clobberNodes=[];
});
}
dojo.event.browser=new function(){
var _2fa=0;
this.normalizedEventName=function(_2fb){
switch(_2fb){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _2fb;
break;
default:
return _2fb.toLowerCase();
break;
}
};
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,_2ff){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
try{
for(var x=0;x<_2ff.length;x++){
node.__clobberAttrs__.push(_2ff[x]);
}
}
catch(e){
}
};
this.removeListener=function(node,_302,fp,_304){
if(!_304){
var _304=false;
}
_302=dojo.event.browser.normalizedEventName(_302);
if((_302=="onkey")||(_302=="key")){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_304);
}
_302="onkeypress";
}
if(_302.substr(0,2)=="on"){
_302=_302.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_302,fp,_304);
}
};
this.addListener=function(node,_306,fp,_308,_309){
if(!node){
return;
}
if(!_308){
var _308=false;
}
_306=dojo.event.browser.normalizedEventName(_306);
if((_306=="onkey")||(_306=="key")){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_308,_309);
}
_306="onkeypress";
}
if(_306.substr(0,2)!="on"){
_306="on"+_306;
}
if(!_309){
var _30a=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_308){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_30a=fp;
}
if(node.addEventListener){
node.addEventListener(_306.substr(2),_30a,_308);
return _30a;
}else{
if(typeof node[_306]=="function"){
var _30d=node[_306];
node[_306]=function(e){
_30d(e);
return _30a(e);
};
}else{
node[_306]=_30a;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_306]);
}
return _30a;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_310,_311){
if(typeof _310!="function"){
dojo.raise("listener not a function: "+_310);
}
dojo.event.browser.currentEvent.currentTarget=_311;
return _310.call(_311,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_CLEAR:12,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_HELP:47,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_NUMPAD_MULTIPLY:106,KEY_NUMPAD_PLUS:107,KEY_NUMPAD_ENTER:108,KEY_NUMPAD_MINUS:109,KEY_NUMPAD_PERIOD:110,KEY_NUMPAD_DIVIDE:111,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_F13:124,KEY_F14:125,KEY_F15:126,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,_314){
if(!evt){
if(window["event"]){
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(evt["type"]=="keydown"&&dojo.render.html.ie){
switch(evt.keyCode){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_LEFT_WINDOW:
case evt.KEY_RIGHT_WINDOW:
case evt.KEY_SELECT:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
case evt.KEY_NUMPAD_0:
case evt.KEY_NUMPAD_1:
case evt.KEY_NUMPAD_2:
case evt.KEY_NUMPAD_3:
case evt.KEY_NUMPAD_4:
case evt.KEY_NUMPAD_5:
case evt.KEY_NUMPAD_6:
case evt.KEY_NUMPAD_7:
case evt.KEY_NUMPAD_8:
case evt.KEY_NUMPAD_9:
case evt.KEY_NUMPAD_PERIOD:
break;
case evt.KEY_NUMPAD_MULTIPLY:
case evt.KEY_NUMPAD_PLUS:
case evt.KEY_NUMPAD_ENTER:
case evt.KEY_NUMPAD_MINUS:
case evt.KEY_NUMPAD_DIVIDE:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
case evt.KEY_PAGE_UP:
case evt.KEY_PAGE_DOWN:
case evt.KEY_END:
case evt.KEY_HOME:
case evt.KEY_LEFT_ARROW:
case evt.KEY_UP_ARROW:
case evt.KEY_RIGHT_ARROW:
case evt.KEY_DOWN_ARROW:
case evt.KEY_INSERT:
case evt.KEY_DELETE:
case evt.KEY_F1:
case evt.KEY_F2:
case evt.KEY_F3:
case evt.KEY_F4:
case evt.KEY_F5:
case evt.KEY_F6:
case evt.KEY_F7:
case evt.KEY_F8:
case evt.KEY_F9:
case evt.KEY_F10:
case evt.KEY_F11:
case evt.KEY_F12:
case evt.KEY_F12:
case evt.KEY_F13:
case evt.KEY_F14:
case evt.KEY_F15:
case evt.KEY_CLEAR:
case evt.KEY_HELP:
evt.key=evt.keyCode;
break;
default:
if(evt.ctrlKey||evt.altKey){
var _316=evt.keyCode;
if(_316>=65&&_316<=90&&evt.shiftKey==false){
_316+=32;
}
if(_316>=1&&_316<=26&&evt.ctrlKey){
_316+=96;
}
evt.key=String.fromCharCode(_316);
}
}
}else{
if(evt["type"]=="keypress"){
if(dojo.render.html.opera){
if(evt.which==0){
evt.key=evt.keyCode;
}else{
if(evt.which>0){
switch(evt.which){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
evt.key=evt.which;
break;
default:
var _316=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_316+=32;
}
evt.key=String.fromCharCode(_316);
}
}
}
}else{
if(dojo.render.html.ie){
if(!evt.ctrlKey&&!evt.altKey&&evt.keyCode>=evt.KEY_SPACE){
evt.key=String.fromCharCode(evt.keyCode);
}
}else{
if(dojo.render.html.safari){
switch(evt.keyCode){
case 25:
evt.key=evt.KEY_TAB;
evt.shift=true;
break;
case 63232:
evt.key=evt.KEY_UP_ARROW;
break;
case 63233:
evt.key=evt.KEY_DOWN_ARROW;
break;
case 63234:
evt.key=evt.KEY_LEFT_ARROW;
break;
case 63235:
evt.key=evt.KEY_RIGHT_ARROW;
break;
case 63236:
evt.key=evt.KEY_F1;
break;
case 63237:
evt.key=evt.KEY_F2;
break;
case 63238:
evt.key=evt.KEY_F3;
break;
case 63239:
evt.key=evt.KEY_F4;
break;
case 63240:
evt.key=evt.KEY_F5;
break;
case 63241:
evt.key=evt.KEY_F6;
break;
case 63242:
evt.key=evt.KEY_F7;
break;
case 63243:
evt.key=evt.KEY_F8;
break;
case 63244:
evt.key=evt.KEY_F9;
break;
case 63245:
evt.key=evt.KEY_F10;
break;
case 63246:
evt.key=evt.KEY_F11;
break;
case 63247:
evt.key=evt.KEY_F12;
break;
case 63250:
evt.key=evt.KEY_PAUSE;
break;
case 63272:
evt.key=evt.KEY_DELETE;
break;
case 63273:
evt.key=evt.KEY_HOME;
break;
case 63275:
evt.key=evt.KEY_END;
break;
case 63276:
evt.key=evt.KEY_PAGE_UP;
break;
case 63277:
evt.key=evt.KEY_PAGE_DOWN;
break;
case 63302:
evt.key=evt.KEY_INSERT;
break;
case 63248:
case 63249:
case 63289:
break;
default:
evt.key=evt.charCode>=evt.KEY_SPACE?String.fromCharCode(evt.charCode):evt.keyCode;
}
}else{
evt.key=evt.charCode>0?String.fromCharCode(evt.charCode):evt.keyCode;
}
}
}
}
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=(_314?_314:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var doc=(evt.srcElement&&evt.srcElement.ownerDocument)?evt.srcElement.ownerDocument:document;
var _318=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_318.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_318.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(evt){
if(window.event){
evt.cancelBubble=true;
evt.returnValue=false;
}else{
evt.preventDefault();
evt.stopPropagation();
}
};
};
dojo.provide("dojo.event.*");
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=="function"){
try{
return wh instanceof Element;
}
catch(e){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getUniqueId=function(){
var _31b=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_31b.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_31d,_31e){
var node=_31d.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_31e&&node&&node.tagName&&node.tagName.toLowerCase()!=_31e.toLowerCase()){
node=dojo.dom.nextElement(node,_31e);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_320,_321){
var node=_320.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_321&&node&&node.tagName&&node.tagName.toLowerCase()!=_321.toLowerCase()){
node=dojo.dom.prevElement(node,_321);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_324){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_324&&_324.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_324);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_326){
if(!node){
return null;
}
if(_326){
_326=_326.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_326&&_326.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_326);
}
return node;
};
dojo.dom.moveChildren=function(_327,_328,trim){
var _32a=0;
if(trim){
while(_327.hasChildNodes()&&_327.firstChild.nodeType==dojo.dom.TEXT_NODE){
_327.removeChild(_327.firstChild);
}
while(_327.hasChildNodes()&&_327.lastChild.nodeType==dojo.dom.TEXT_NODE){
_327.removeChild(_327.lastChild);
}
}
while(_327.hasChildNodes()){
_328.appendChild(_327.firstChild);
_32a++;
}
return _32a;
};
dojo.dom.copyChildren=function(_32b,_32c,trim){
var _32e=_32b.cloneNode(true);
return this.moveChildren(_32e,_32c,trim);
};
dojo.dom.replaceChildren=function(node,_330){
var _331=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_331.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_330);
for(var i=0;i<_331.length;i++){
dojo.dom.destroyNode(_331[i]);
}
};
dojo.dom.removeChildren=function(node){
var _334=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _334;
};
dojo.dom.replaceNode=function(node,_336){
return node.parentNode.replaceChild(_336,node);
};
dojo.dom.destroyNode=function(node){
if(node.parentNode){
node=dojo.dom.removeNode(node);
}
if(node.nodeType!=3){
if(dojo.evalObjPath("dojo.event.browser.clean",false)){
dojo.event.browser.clean(node);
}
if(dojo.render.html.ie){
node.outerHTML="";
}
}
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_33a,_33b){
var _33c=[];
var _33d=(_33a&&(_33a instanceof Function||typeof _33a=="function"));
while(node){
if(!_33d||_33a(node)){
_33c.push(node);
}
if(_33b&&_33c.length>0){
return _33c[0];
}
node=node.parentNode;
}
if(_33b){
return null;
}
return _33c;
};
dojo.dom.getAncestorsByTag=function(node,tag,_340){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_340);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_345,_346){
if(_346&&node){
node=node.parentNode;
}
while(node){
if(node==_345){
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;
var _349=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _34a=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_34a.length;i++){
try{
doc=new ActiveXObject(_34a[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_349.implementation)&&(_349.implementation.createDocument)){
doc=_349.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_34d){
if(!_34d){
_34d="text/xml";
}
if(!dj_undef("DOMParser")){
var _34e=new DOMParser();
return _34e.parseFromString(str,_34d);
}else{
if(!dj_undef("ActiveXObject")){
var _34f=dojo.dom.createDocument();
if(_34f){
_34f.async=false;
_34f.loadXML(str);
return _34f;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _350=dojo.doc();
if(_350.createElement){
var tmp=_350.createElement("xml");
tmp.innerHTML=str;
if(_350.implementation&&_350.implementation.createDocument){
var _352=_350.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_352.importNode(tmp.childNodes.item(i),true);
}
return _352;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_355){
if(_355.firstChild){
_355.insertBefore(node,_355.firstChild);
}else{
_355.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_358){
if((_358!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _359=ref.parentNode;
_359.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_35c){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_35c!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_35c);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_360){
if((!node)||(!ref)||(!_360)){
return false;
}
switch(_360.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,_362,_363){
var _364=_362.childNodes;
if(!_364.length||_364.length==_363){
_362.appendChild(node);
return true;
}
if(_363==0){
return dojo.dom.prependChild(node,_362);
}
return dojo.dom.insertAfter(node,_364[_363-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _367=dojo.doc();
dojo.dom.replaceChildren(node,_367.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _368="";
if(node==null){
return _368;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_368+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_368+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _368;
}
};
dojo.dom.hasParent=function(node){
return Boolean(node&&node.parentNode&&dojo.dom.isNode(node.parentNode));
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName==String(arguments[i])){
return String(arguments[i]);
}
}
}
return "";
};
dojo.dom.setAttributeNS=function(elem,_36e,_36f,_370){
if(elem==null||((elem==undefined)&&(typeof elem=="undefined"))){
dojo.raise("No element given to dojo.dom.setAttributeNS");
}
if(!((elem.setAttributeNS==undefined)&&(typeof elem.setAttributeNS=="undefined"))){
elem.setAttributeNS(_36e,_36f,_370);
}else{
var _371=elem.ownerDocument;
var _372=_371.createNode(2,_36f,_36e);
_372.nodeValue=_370;
elem.setAttributeNode(_372);
}
};
dojo.provide("dojo.html.common");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.html.body=function(){
dojo.deprecated("dojo.html.body() moved to dojo.body()","0.5");
return dojo.body();
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=dojo.global().event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getViewport=function(){
var _375=dojo.global();
var _376=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_376.documentElement.clientWidth;
h=_375.innerHeight;
}else{
if(!dojo.render.html.opera&&_375.innerWidth){
w=_375.innerWidth;
h=_375.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_376,"documentElement.clientWidth")){
var w2=_376.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_376.documentElement.clientHeight;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
return {width:w,height:h};
};
dojo.html.getScroll=function(){
var _37a=dojo.global();
var _37b=dojo.doc();
var top=_37a.pageYOffset||_37b.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_37a.pageXOffset||_37b.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _380=dojo.doc();
var _381=dojo.byId(node);
type=type.toLowerCase();
while((_381)&&(_381.nodeName.toLowerCase()!=type)){
if(_381==(_380["body"]||_380["documentElement"])){
return null;
}
_381=_381.parentNode;
}
return _381;
};
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){
return dojo.html.getAttribute(dojo.byId(node),attr)?true:false;
};
dojo.html.getCursorPosition=function(e){
e=e||dojo.global().event;
var _389={x:0,y:0};
if(e.pageX||e.pageY){
_389.x=e.pageX;
_389.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_389.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_389.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _389;
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName.toLowerCase()==String(arguments[i]).toLowerCase()){
return String(arguments[i]).toLowerCase();
}
}
}
return "";
};
if(dojo.render.html.ie&&!dojo.render.html.ie70){
if(window.location.href.substr(0,6).toLowerCase()!="https:"){
(function(){
var _38e=dojo.doc().createElement("script");
_38e.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_38e);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_391,_392,args,_394,_395){
dojo.deprecated("dojo.html."+_391,"replaced by dojo.html."+_392+"("+(_394?"node, {"+_394+": "+_394+"}":"")+")"+(_395?"."+_395:""),"0.5");
var _396=[];
if(_394){
var _397={};
_397[_394]=args[1];
_396.push(args[0]);
_396.push(_397);
}else{
_396=args;
}
var ret=dojo.html[_392].apply(dojo.html,args);
if(_395){
return ret[_395];
}else{
return ret;
}
};
dojo.html.getViewportWidth=function(){
return dojo.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width");
};
dojo.html.getViewportHeight=function(){
return dojo.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height");
};
dojo.html.getViewportSize=function(){
return dojo.html._callDeprecated("getViewportSize","getViewport",arguments);
};
dojo.html.getScrollTop=function(){
return dojo.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top");
};
dojo.html.getScrollLeft=function(){
return dojo.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left");
};
dojo.html.getScrollOffset=function(){
return dojo.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset");
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_39a,uri){
var loc=dojo.hostenv.getModuleSymbols(_39a).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _39f=new dojo.uri.Uri(arguments[i].toString());
var _3a0=new dojo.uri.Uri(uri.toString());
if((_39f.path=="")&&(_39f.scheme==null)&&(_39f.authority==null)&&(_39f.query==null)){
if(_39f.fragment!=null){
_3a0.fragment=_39f.fragment;
}
_39f=_3a0;
}else{
if(_39f.scheme==null){
_39f.scheme=_3a0.scheme;
if(_39f.authority==null){
_39f.authority=_3a0.authority;
if(_39f.path.charAt(0)!="/"){
var path=_3a0.path.substring(0,_3a0.path.lastIndexOf("/")+1)+_39f.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;
}
}
}
}
_39f.path=segs.join("/");
}
}
}
}
uri="";
if(_39f.scheme!=null){
uri+=_39f.scheme+":";
}
if(_39f.authority!=null){
uri+="//"+_39f.authority;
}
uri+=_39f.path;
if(_39f.query!=null){
uri+="?"+_39f.query;
}
if(_39f.fragment!=null){
uri+="#"+_39f.fragment;
}
}
this.uri=uri.toString();
var _3a4="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_3a4));
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){
_3a4="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_3a4));
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.html.style");
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 cs.replace(/^\s+|\s+$/g,"");
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_3ab){
return (new RegExp("(^|\\s+)"+_3ab+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_3ad){
_3ad+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_3ad);
};
dojo.html.addClass=function(node,_3af){
if(dojo.html.hasClass(node,_3af)){
return false;
}
_3af=(dojo.html.getClass(node)+" "+_3af).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_3af);
};
dojo.html.setClass=function(node,_3b1){
node=dojo.byId(node);
var cs=new String(_3b1);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_3b1);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_3b4,_3b5){
try{
if(!_3b5){
var _3b6=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_3b4+"(\\s+|$)"),"$1$2");
}else{
var _3b6=dojo.html.getClass(node).replace(_3b4,"");
}
dojo.html.setClass(node,_3b6);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_3b8,_3b9){
dojo.html.removeClass(node,_3b9);
dojo.html.addClass(node,_3b8);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_3ba,_3bb,_3bc,_3bd,_3be){
_3be=false;
var _3bf=dojo.doc();
_3bb=dojo.byId(_3bb)||_3bf;
var _3c0=_3ba.split(/\s+/g);
var _3c1=[];
if(_3bd!=1&&_3bd!=2){
_3bd=0;
}
var _3c2=new RegExp("(\\s|^)(("+_3c0.join(")|(")+"))(\\s|$)");
var _3c3=_3c0.join(" ").length;
var _3c4=[];
if(!_3be&&_3bf.evaluate){
var _3c5=".//"+(_3bc||"*")+"[contains(";
if(_3bd!=dojo.html.classMatchType.ContainsAny){
_3c5+="concat(' ',@class,' '), ' "+_3c0.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_3bd==2){
_3c5+=" and string-length(@class)="+_3c3+"]";
}else{
_3c5+="]";
}
}else{
_3c5+="concat(' ',@class,' '), ' "+_3c0.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _3c6=_3bf.evaluate(_3c5,_3bb,null,XPathResult.ANY_TYPE,null);
var _3c7=_3c6.iterateNext();
while(_3c7){
try{
_3c4.push(_3c7);
_3c7=_3c6.iterateNext();
}
catch(e){
break;
}
}
return _3c4;
}else{
if(!_3bc){
_3bc="*";
}
_3c4=_3bb.getElementsByTagName(_3bc);
var node,i=0;
outer:
while(node=_3c4[i++]){
var _3ca=dojo.html.getClasses(node);
if(_3ca.length==0){
continue outer;
}
var _3cb=0;
for(var j=0;j<_3ca.length;j++){
if(_3c2.test(_3ca[j])){
if(_3bd==dojo.html.classMatchType.ContainsAny){
_3c1.push(node);
continue outer;
}else{
_3cb++;
}
}else{
if(_3bd==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_3cb==_3c0.length){
if((_3bd==dojo.html.classMatchType.IsOnly)&&(_3cb==_3ca.length)){
_3c1.push(node);
}else{
if(_3bd==dojo.html.classMatchType.ContainsAll){
_3c1.push(node);
}
}
}
}
return _3c1;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_3cd){
var arr=_3cd.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
dojo.html.toSelectorCase=function(_3d1){
return _3d1.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.html.getComputedStyle=function(node,_3d3,_3d4){
node=dojo.byId(node);
var _3d3=dojo.html.toSelectorCase(_3d3);
var _3d5=dojo.html.toCamelCase(_3d3);
if(!node||!node.style){
return _3d4;
}else{
if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_3d3);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_3d3);
}else{
return _3d4;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_3d5];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_3d3);
}else{
return _3d4;
}
};
dojo.html.getStyleProperty=function(node,_3d8){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_3d8)]:undefined);
};
dojo.html.getStyle=function(node,_3da){
var _3db=dojo.html.getStyleProperty(node,_3da);
return (_3db?_3db:dojo.html.getComputedStyle(node,_3da));
};
dojo.html.setStyle=function(node,_3dd,_3de){
node=dojo.byId(node);
if(node&&node.style){
var _3df=dojo.html.toCamelCase(_3dd);
node.style[_3df]=_3de;
}
};
dojo.html.setStyleText=function(_3e0,text){
try{
_3e0.style.cssText=text;
}
catch(e){
_3e0.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_3e2,_3e3){
if(!_3e3.style.cssText){
_3e2.setAttribute("style",_3e3.getAttribute("style"));
}else{
_3e2.style.cssText=_3e3.style.cssText;
}
dojo.html.addClass(_3e2,dojo.html.getClass(_3e3));
};
dojo.html.getUnitValue=function(node,_3e5,_3e6){
var s=dojo.html.getComputedStyle(node,_3e5);
if((!s)||((s=="auto")&&(_3e6))){
return {value:0,units:"px"};
}
var _3e8=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_3e8){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_3e8[1]),units:_3e8[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
dojo.html.getPixelValue=function(node,_3ea,_3eb){
var _3ec=dojo.html.getUnitValue(node,_3ea,_3eb);
if(isNaN(_3ec.value)){
return 0;
}
if((_3ec.value)&&(_3ec.units!="px")){
return NaN;
}
return _3ec.value;
};
dojo.html.setPositivePixelValue=function(node,_3ee,_3ef){
if(isNaN(_3ef)){
return false;
}
node.style[_3ee]=Math.max(0,_3ef)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_3f0,_3f1,_3f2){
if(!dojo.html.styleSheet){
if(document.createStyleSheet){
dojo.html.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
dojo.html.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(dojo.html.styleSheet.cssRules){
_3f2=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_3f2=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_3f0+" { "+_3f1+" }";
return dojo.html.styleSheet.insertRule(rule,_3f2);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_3f0,_3f1,_3f2);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_3f4){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_3f4){
_3f4=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_3f4);
}
}else{
if(document.styleSheets[0]){
if(!_3f4){
_3f4=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_3f4);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_3f7,_3f8){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _3f9=dojo.hostenv.getText(URI,false,_3f8);
if(_3f9===null){
return;
}
_3f9=dojo.html.fixPathsInCssText(_3f9,URI);
if(_3f7){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_3f9)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _3fe=doc.getElementsByTagName("style");
for(var i=0;i<_3fe.length;i++){
if(_3fe[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _3ff=dojo.html.insertCssText(_3f9,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_3f9,"nodeRef":_3ff});
if(_3ff&&djConfig.isDebug){
_3ff.setAttribute("dbgHref",URI);
}
return _3ff;
};
dojo.html.insertCssText=function(_400,doc,URI){
if(!_400){
return;
}
if(!doc){
doc=document;
}
if(URI){
_400=dojo.html.fixPathsInCssText(_400,URI);
}
var _403=doc.createElement("style");
_403.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(_403);
}
if(_403.styleSheet){
var _405=function(){
try{
_403.styleSheet.cssText=_400;
}
catch(e){
dojo.debug(e);
}
};
if(_403.styleSheet.disabled){
setTimeout(_405,10);
}else{
_405();
}
}else{
var _406=doc.createTextNode(_400);
_403.appendChild(_406);
}
return _403;
};
dojo.html.fixPathsInCssText=function(_407,URI){
if(!_407||!URI){
return;
}
var _409,str="",url="",_40c="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _40d=new RegExp("url\\(\\s*("+_40c+")\\s*\\)");
var _40e=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_40c+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _40f=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_40c+")['\"]");
while(_409=_40f.exec(_407)){
url=_409[2].replace(regexTrim,"$2");
if(!_40e.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_407.substring(0,_409.index)+"AlphaImageLoader("+_409[1]+"src='"+url+"'";
_407=_407.substr(_409.index+_409[0].length);
}
_407=str+_407;
str="";
}
while(_409=_40d.exec(_407)){
url=_409[1].replace(regexTrim,"$2");
if(!_40e.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_407.substring(0,_409.index)+"url("+url+")";
_407=_407.substr(_409.index+_409[0].length);
}
return str+_407;
};
dojo.html.setActiveStyleSheet=function(_410){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_410){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=dojo.doc().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=dojo.doc().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.applyBrowserClass=function(node){
var drh=dojo.render.html;
var _41c={dj_ie:drh.ie,dj_ie55:drh.ie55,dj_ie6:drh.ie60,dj_ie7:drh.ie70,dj_iequirks:drh.ie&&drh.quirks,dj_opera:drh.opera,dj_opera8:drh.opera&&(Math.floor(dojo.render.version)==8),dj_opera9:drh.opera&&(Math.floor(dojo.render.version)==9),dj_khtml:drh.khtml,dj_safari:drh.safari,dj_gecko:drh.mozilla};
for(var p in _41c){
if(_41c[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_41f,_420){
node=dojo.byId(node);
_420(node,!_41f(node));
return _41f(node);
};
dojo.html.show=function(node){
node=dojo.byId(node);
if(dojo.html.getStyleProperty(node,"display")=="none"){
dojo.html.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
dojo.html.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=dojo.html.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
dojo.html.setStyle(node,"display","none");
};
dojo.html.setShowing=function(node,_425){
dojo.html[(_425?"show":"hide")](node);
};
dojo.html.isShowing=function(node){
return (dojo.html.getStyleProperty(node,"display")!="none");
};
dojo.html.toggleShowing=function(node){
return dojo.html._toggle(node,dojo.html.isShowing,dojo.html.setShowing);
};
dojo.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
dojo.html.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in dojo.html.displayMap?dojo.html.displayMap[tag]:"block");
}
};
dojo.html.setDisplay=function(node,_42b){
dojo.html.setStyle(node,"display",((_42b instanceof String||typeof _42b=="string")?_42b:(_42b?dojo.html.suggestDisplayByTagName(node):"none")));
};
dojo.html.isDisplayed=function(node){
return (dojo.html.getComputedStyle(node,"display")!="none");
};
dojo.html.toggleDisplay=function(node){
return dojo.html._toggle(node,dojo.html.isDisplayed,dojo.html.setDisplay);
};
dojo.html.setVisibility=function(node,_42f){
dojo.html.setStyle(node,"visibility",((_42f instanceof String||typeof _42f=="string")?_42f:(_42f?"visible":"hidden")));
};
dojo.html.isVisible=function(node){
return (dojo.html.getComputedStyle(node,"visibility")!="hidden");
};
dojo.html.toggleVisibility=function(node){
return dojo.html._toggle(node,dojo.html.isVisible,dojo.html.setVisibility);
};
dojo.html.setOpacity=function(node,_433,_434){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_434){
if(_433>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_433=0.999999;
}
}else{
if(_433<0){
_433=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="+_433*100+")";
}
}
node.style.filter="Alpha(Opacity="+_433*100+")";
}else{
if(h.moz){
node.style.opacity=_433;
node.style.MozOpacity=_433;
}else{
if(h.safari){
node.style.opacity=_433;
node.style.KhtmlOpacity=_433;
}else{
node.style.opacity=_433;
}
}
}
};
dojo.html.clearOpacity=function(node){
node=dojo.byId(node);
var ns=node.style;
var h=dojo.render.html;
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;
}
}
}
};
dojo.html.getOpacity=function(node){
node=dojo.byId(node);
var h=dojo.render.html;
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);
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _440=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_440+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _440;
};
dojo.html.setStyleAttributes=function(node,_443){
node=dojo.byId(node);
var _444=_443.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_444.length;i++){
var _446=_444[i].split(":");
var name=_446[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _448=_446[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_448);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_448});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_448});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_448});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_448});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_448;
}
}
};
dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_44a,_44b){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_44b){
_44b=bs.CONTENT_BOX;
}
var _44e=2;
var _44f;
switch(_44b){
case bs.MARGIN_BOX:
_44f=3;
break;
case bs.BORDER_BOX:
_44f=2;
break;
case bs.PADDING_BOX:
default:
_44f=1;
break;
case bs.CONTENT_BOX:
_44f=0;
break;
}
var h=dojo.render.html;
var db=document["body"]||document["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
_44e=1;
try{
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop");
}
catch(e){
}
}else{
if(node["offsetParent"]){
var _453;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_453=db;
}else{
_453=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(dojo.render.html.opera){
nd=db;
}
ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft");
ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop");
}
var _455=node;
do{
var n=_455["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_455["offsetTop"];
ret.y+=isNaN(m)?0:m;
_455=_455.offsetParent;
}while((_455!=_453)&&(_455!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_44a){
var _458=dojo.html.getScroll();
ret.y+=_458.top;
ret.x+=_458.left;
}
var _459=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_44e>_44f){
for(var i=_44f;i<_44e;++i){
ret.y+=_459[i](node,"top");
ret.x+=_459[i](node,"left");
}
}else{
if(_44e<_44f){
for(var i=_44f;i>_44e;--i){
ret.y-=_459[i-1](node,"top");
ret.x-=_459[i-1](node,"left");
}
}
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.isPositionAbsolute=function(node){
return (dojo.html.getComputedStyle(node,"position")=="absolute");
};
dojo.html._sumPixelValues=function(node,_45d,_45e){
var _45f=0;
for(var x=0;x<_45d.length;x++){
_45f+=dojo.html.getPixelValue(node,_45d[x],_45e);
}
return _45f;
};
dojo.html.getMargin=function(node){
return {width:dojo.html._sumPixelValues(node,["margin-left","margin-right"],(dojo.html.getComputedStyle(node,"position")=="absolute")),height:dojo.html._sumPixelValues(node,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(node,"position")=="absolute"))};
};
dojo.html.getBorder=function(node){
return {width:dojo.html.getBorderExtent(node,"left")+dojo.html.getBorderExtent(node,"right"),height:dojo.html.getBorderExtent(node,"top")+dojo.html.getBorderExtent(node,"bottom")};
};
dojo.html.getBorderExtent=function(node,side){
return (dojo.html.getStyle(node,"border-"+side+"-style")=="none"?0:dojo.html.getPixelValue(node,"border-"+side+"-width"));
};
dojo.html.getMarginExtent=function(node,side){
return dojo.html._sumPixelValues(node,["margin-"+side],dojo.html.isPositionAbsolute(node));
};
dojo.html.getPaddingExtent=function(node,side){
return dojo.html._sumPixelValues(node,["padding-"+side],true);
};
dojo.html.getPadding=function(node){
return {width:dojo.html._sumPixelValues(node,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(node,["padding-top","padding-bottom"],true)};
};
dojo.html.getPadBorder=function(node){
var pad=dojo.html.getPadding(node);
var _46c=dojo.html.getBorder(node);
return {width:pad.width+_46c.width,height:pad.height+_46c.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if(((h.ie)||(h.opera))&&node.nodeName!="IMG"){
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 _471=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_471){
_471=dojo.html.getStyle(node,"box-sizing");
}
return (_471?_471:bs.CONTENT_BOX);
}
};
dojo.html.isBorderBox=function(node){
return (dojo.html.getBoxSizing(node)==dojo.html.boxSizing.BORDER_BOX);
};
dojo.html.getBorderBox=function(node){
node=dojo.byId(node);
return {width:node.offsetWidth,height:node.offsetHeight};
};
dojo.html.getPaddingBox=function(node){
var box=dojo.html.getBorderBox(node);
var _476=dojo.html.getBorder(node);
return {width:box.width-_476.width,height:box.height-_476.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _478=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_478.width,height:node.offsetHeight-_478.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _47b=0;
var _47c=0;
var isbb=dojo.html.isBorderBox(node);
var _47e=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_47b=args.width+_47e.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_47b);
}
if(typeof args.height!="undefined"){
_47c=args.height+_47e.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_47c);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _481=dojo.html.getBorderBox(node);
var _482=dojo.html.getMargin(node);
return {width:_481.width+_482.width,height:_481.height+_482.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _485=0;
var _486=0;
var isbb=dojo.html.isBorderBox(node);
var _488=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _489=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_485=args.width-_488.width;
_485-=_489.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_485);
}
if(typeof args.height!="undefined"){
_486=args.height-_488.height;
_486-=_489.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_486);
}
return ret;
};
dojo.html.getElementBox=function(node,type){
var bs=dojo.html.boxSizing;
switch(type){
case bs.MARGIN_BOX:
return dojo.html.getMarginBox(node);
case bs.BORDER_BOX:
return dojo.html.getBorderBox(node);
case bs.PADDING_BOX:
return dojo.html.getPaddingBox(node);
case bs.CONTENT_BOX:
default:
return dojo.html.getContentBox(node);
}
};
dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_48e,_48f,_490){
if(_48e instanceof Array||typeof _48e=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_48e.length<4){
_48e.push(0);
}
while(_48e.length>4){
_48e.pop();
}
var ret={left:_48e[0],top:_48e[1],width:_48e[2],height:_48e[3]};
}else{
if(!_48e.nodeType&&!(_48e instanceof String||typeof _48e=="string")&&("width" in _48e||"height" in _48e||"left" in _48e||"x" in _48e||"top" in _48e||"y" in _48e)){
var ret={left:_48e.left||_48e.x||0,top:_48e.top||_48e.y||0,width:_48e.width||0,height:_48e.height||0};
}else{
var node=dojo.byId(_48e);
var pos=dojo.html.abs(node,_48f,_490);
var _494=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_494.width,height:_494.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_496){
return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width");
};
dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){
return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height");
};
dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){
return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width");
};
dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){
return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height");
};
dojo.html.getTotalOffset=function(node,type,_499){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_49b){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_49d){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_49f){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_4a1){
return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top");
};
dojo.html.getMarginWidth=function(node){
return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width");
};
dojo.html.getMarginHeight=function(node){
return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height");
};
dojo.html.getBorderWidth=function(node){
return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width");
};
dojo.html.getBorderHeight=function(node){
return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height");
};
dojo.html.getPaddingWidth=function(node){
return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width");
};
dojo.html.getPaddingHeight=function(node){
return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height");
};
dojo.html.getPadBorderWidth=function(node){
return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width");
};
dojo.html.getPadBorderHeight=function(node){
return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height");
};
dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){
return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width");
};
dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){
return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height");
};
dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){
return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width");
};
dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){
return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height");
};
dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(node,_4ab){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_4ad){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.dnd.HtmlDragManager");
dojo.declare("dojo.dnd.HtmlDragManager",dojo.dnd.DragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],dragSources:[],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 _4b1=dp+"Idx_"+(this.dsCounter++);
ds.dragSourceId=_4b1;
this.dragSources[_4b1]=ds;
ds.domNode.setAttribute(dp,_4b1);
if(dojo.render.html.ie){
dojo.event.browser.addListener(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},unregisterDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _4b4=ds.dragSourceId;
delete ds.dragSourceId;
delete this.dragSources[_4b4];
ds.domNode.setAttribute(dp,null);
if(dojo.render.html.ie){
dojo.event.browser.removeListener(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},registerDropTarget:function(dt){
this.dropTargets.push(dt);
},unregisterDropTarget:function(dt){
var _4b7=dojo.lang.find(this.dropTargets,dt,true);
if(_4b7>=0){
this.dropTargets.splice(_4b7,1);
}
},getDragSource:function(e){
var tn=e.target;
if(tn===dojo.body()){
return;
}
var ta=dojo.html.getAttribute(tn,this.dsPrefix);
while((!ta)&&(tn)){
tn=tn.parentNode;
if((!tn)||(tn===dojo.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 _4bd=e.target.nodeType==dojo.html.TEXT_NODE?e.target.parentNode:e.target;
if(dojo.html.isTag(_4bd,"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,_4c0){
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(_4c1){
var ret=null;
if(!_4c1){
return;
}
if(this.currentDropTarget){
e.dragObject=_4c1;
var ce=this.currentDropTarget.domNode.childNodes;
if(ce.length>0){
e.dropTarget=ce[0];
while(e.dropTarget==_4c1.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{
_4c1.dragSource.onDragEnd(e);
}
catch(err){
var _4c4={};
for(var i in e){
if(i=="type"){
_4c4.type="mouseup";
continue;
}
_4c4[i]=e[i];
}
_4c1.dragSource.onDragEnd(_4c4);
}
},function(){
_4c1.onDragEnd(e);
}]);
},this);
this.selectedSources=[];
this.dragObjects=[];
this.dragSource=null;
if(this.currentDropTarget){
this.currentDropTarget.onDropEnd();
}
}else{
}
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();
}
}
if(this.dragObjects.length){
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(){
dojo.profile.start("cacheTargetLocations");
this.dropTargetDimensions=[];
dojo.lang.forEach(this.dropTargets,function(_4cd){
var tn=_4cd.domNode;
if(!tn||!_4cd.accepts([this.dragSource])){
return;
}
var abs=dojo.html.getAbsolutePosition(tn,true);
var bb=dojo.html.getBorderBox(tn);
this.dropTargetDimensions.push([[abs.x,abs.y],[abs.x+bb.width,abs.y+bb.height],_4cd]);
},this);
dojo.profile.end("cacheTargetLocations");
},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(_4d4){
if(!_4d4){
return;
}
var tdo=_4d4.onDragStart(e);
if(tdo){
tdo.onDragStart(e);
tdo.dragOffset.y+=dy;
tdo.dragOffset.x+=dx;
tdo.dragSource=_4d4;
this.dragObjects.push(tdo);
}
},this);
this.previousDropTarget=null;
this.cacheTargetLocations();
}
dojo.lang.forEach(this.dragObjects,function(_4d6){
if(_4d6){
_4d6.onDragMove(e);
}
});
if(this.currentDropTarget){
var c=dojo.html.toCoordinateObject(this.currentDropTarget.domNode,true);
var dtp=[[c.x,c.y],[c.x+c.width,c.y+c.height]];
}
if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}else{
var _4d9=this.findBestTarget(e);
if(_4d9.target===null){
if(this.currentDropTarget){
this.currentDropTarget.onDragOut(e);
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget=null;
}
this.dropAcceptable=false;
return;
}
if(this.currentDropTarget!==_4d9.target){
if(this.currentDropTarget){
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget.onDragOut(e);
}
this.currentDropTarget=_4d9.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 _4db=this;
var _4dc=new Object();
_4dc.target=null;
_4dc.points=null;
dojo.lang.every(this.dropTargetDimensions,function(_4dd){
if(!_4db.isInsideBox(e,_4dd)){
return true;
}
_4dc.target=_4dd[2];
_4dc.points=_4dd;
return Boolean(_4db.nestedTargets);
});
return _4dc;
},isInsideBox:function(e,_4df){
if((e.pageX>_4df[0][0])&&(e.pageX<_4df[1][0])&&(e.pageY>_4df[0][1])&&(e.pageY<_4df[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.html.*");
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_4e4){
return dojo.html.getDocumentWindow(_4e4.ownerDocument);
};
dojo.html.getDocumentWindow=function(doc){
if(dojo.render.html.safari&&!doc._parentWindow){
var fix=function(win){
win.document._parentWindow=win;
for(var i=0;i<win.frames.length;i++){
fix(win.frames[i]);
}
};
fix(window.top);
}
if(dojo.render.html.ie&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _4ec=dojo.html.getCursorPosition(e);
with(dojo.html){
var _4ed=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _4ef=_4ed.x+(bb.width/2);
var _4f0=_4ed.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_4ec.x<_4ef?WEST:EAST)|(_4ec.y<_4f0?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.overElement=function(_4f1,e){
_4f1=dojo.byId(_4f1);
var _4f3=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_4f1);
var _4f5=dojo.html.getAbsolutePosition(_4f1,true,dojo.html.boxSizing.BORDER_BOX);
var top=_4f5.y;
var _4f7=top+bb.height;
var left=_4f5.x;
var _4f9=left+bb.width;
return (_4f3.x>=left&&_4f3.x<=_4f9&&_4f3.y>=top&&_4f3.y<=_4f7);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _4fb="";
if(node==null){
return _4fb;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _4fd="unknown";
try{
_4fd=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_4fd){
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":
_4fb+="\n";
_4fb+=dojo.html.renderedTextContent(node.childNodes[i]);
_4fb+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_4fb+="\n";
}else{
_4fb+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _4ff="unknown";
try{
_4ff=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_4ff){
case "capitalize":
var _500=text.split(" ");
for(var i=0;i<_500.length;i++){
_500[i]=_500[i].charAt(0).toUpperCase()+_500[i].substring(1);
}
text=_500.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_4ff){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_4fb)){
text.replace(/^\s/,"");
}
break;
}
_4fb+=text;
break;
default:
break;
}
}
return _4fb;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=txt.replace(/^\s+|\s+$/g,"");
}
var tn=dojo.doc().createElement("div");
tn.style.visibility="hidden";
dojo.body().appendChild(tn);
var _504="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_504="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_504="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_504="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _505=null;
switch(_504){
case "cell":
_505=tn.getElementsByTagName("tr")[0];
break;
case "row":
_505=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_505=tn.getElementsByTagName("table")[0];
break;
default:
_505=tn;
break;
}
var _506=[];
for(var x=0;x<_505.childNodes.length;x++){
_506.push(_505.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _506;
};
dojo.html.placeOnScreen=function(node,_509,_50a,_50b,_50c,_50d,_50e){
if(_509 instanceof Array||typeof _509=="array"){
_50e=_50d;
_50d=_50c;
_50c=_50b;
_50b=_50a;
_50a=_509[1];
_509=_509[0];
}
if(_50d instanceof String||typeof _50d=="string"){
_50d=_50d.split(",");
}
if(!isNaN(_50b)){
_50b=[Number(_50b),Number(_50b)];
}else{
if(!(_50b instanceof Array||typeof _50b=="array")){
_50b=[0,0];
}
}
var _50f=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _511=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_511;
if(!(_50d instanceof Array||typeof _50d=="array")){
_50d=["TL"];
}
var _515,_516,_517=Infinity,_518;
for(var _519=0;_519<_50d.length;++_519){
var _51a=_50d[_519];
var _51b=true;
var tryX=_509-(_51a.charAt(1)=="L"?0:w)+_50b[0]*(_51a.charAt(1)=="L"?1:-1);
var tryY=_50a-(_51a.charAt(0)=="T"?0:h)+_50b[1]*(_51a.charAt(0)=="T"?1:-1);
if(_50c){
tryX-=_50f.x;
tryY-=_50f.y;
}
if(tryX<0){
tryX=0;
_51b=false;
}
if(tryY<0){
tryY=0;
_51b=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_51b=false;
}else{
x=tryX;
}
x=Math.max(_50b[0],x)+_50f.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_51b=false;
}else{
y=tryY;
}
y=Math.max(_50b[1],y)+_50f.y;
if(_51b){
_515=x;
_516=y;
_517=0;
_518=_51a;
break;
}else{
var dist=Math.pow(x-tryX-_50f.x,2)+Math.pow(y-tryY-_50f.y,2);
if(_517>dist){
_517=dist;
_515=x;
_516=y;
_518=_51a;
}
}
}
if(!_50e){
node.style.left=_515+"px";
node.style.top=_516+"px";
}
return {left:_515,top:_516,x:_515,y:_516,dist:_517,corner:_518};
};
dojo.html.placeOnScreenPoint=function(node,_522,_523,_524,_525){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_522,_523,_524,_525,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_527,_528,_529,_52a,_52b){
var best,_52d=Infinity;
_527=dojo.byId(_527);
var _52e=_527.style.display;
_527.style.display="";
var mb=dojo.html.getElementBox(_527,_529);
var _530=mb.width;
var _531=mb.height;
var _532=dojo.html.getAbsolutePosition(_527,true,_529);
_527.style.display=_52e;
for(var _533 in _52a){
var pos,_535,_536;
var _537=_52a[_533];
_535=_532.x+(_533.charAt(1)=="L"?0:_530);
_536=_532.y+(_533.charAt(0)=="T"?0:_531);
pos=dojo.html.placeOnScreen(node,_535,_536,_528,true,_537,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_52d>pos.dist){
_52d=pos.dist;
best=pos;
}
}
}
if(!_52b){
node.style.left=best.left+"px";
node.style.top=best.top+"px";
}
return best;
};
dojo.html.scrollIntoView=function(node){
if(!node){
return;
}
if(dojo.render.html.ie){
if(dojo.html.getBorderBox(node.parentNode).height<=node.parentNode.scrollHeight){
node.scrollIntoView(false);
}
}else{
if(dojo.render.html.mozilla){
node.scrollIntoView(false);
}else{
var _539=node.parentNode;
var _53a=_539.scrollTop+dojo.html.getBorderBox(_539).height;
var _53b=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_53a<_53b){
_539.scrollTop+=(_53b-_53a);
}else{
if(_539.scrollTop>node.offsetTop){
_539.scrollTop-=(_539.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _53c=dojo.global();
var _53d=dojo.doc();
try{
if(_53c["getSelection"]){
if(dojo.render.html.safari){
_53c.getSelection().collapse();
}else{
_53c.getSelection().removeAllRanges();
}
}else{
if(_53d.selection){
if(_53d.selection.empty){
_53d.selection.empty();
}else{
if(_53d.selection.clear){
_53d.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_53e){
_53e=dojo.byId(_53e)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_53e.style.MozUserSelect="none";
}else{
if(h.safari){
_53e.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_53e.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_540){
_540=dojo.byId(_540)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_540.style.MozUserSelect="";
}else{
if(h.safari){
_540.style.KhtmlUserSelect="";
}else{
if(h.ie){
_540.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_542){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_543){
var _544=dojo.global();
var _545=dojo.doc();
_543=dojo.byId(_543);
if(_545["selection"]&&dojo.body()["createTextRange"]){
var _546=_543.createTextRange();
_546.moveStart("character",0);
_546.moveEnd("character",_543.value.length);
_546.select();
}else{
if(_544["getSelection"]){
var _547=_544.getSelection();
_543.setSelectionRange(0,_543.value.length);
}
}
_543.focus();
};
dojo.html.isSelectionCollapsed=function(){
dojo.deprecated("dojo.html.isSelectionCollapsed","replaced by dojo.html.selection.isCollapsed",0.5);
return dojo.html.selection.isCollapsed();
};
dojo.lang.mixin(dojo.html.selection,{getType:function(){
if(dojo.doc()["selection"]){
return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()];
}else{
var _548=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _54a=oSel.getRangeAt(0);
if(_54a.startContainer==_54a.endContainer&&(_54a.endOffset-_54a.startOffset)==1&&_54a.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_548=dojo.html.selectionType.CONTROL;
}
}
return _548;
}
},isCollapsed:function(){
var _54b=dojo.global();
var _54c=dojo.doc();
if(_54c["selection"]){
return _54c.selection.createRange().text=="";
}else{
if(_54b["getSelection"]){
var _54d=_54b.getSelection();
if(dojo.lang.isString(_54d)){
return _54d=="";
}else{
return _54d.isCollapsed||_54d.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _54e=dojo.doc().selection.createRange();
if(_54e&&_54e.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _54f=dojo.global().getSelection();
return _54f.anchorNode.childNodes[_54f.anchorOffset];
}
}
},getParentElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
var p=dojo.html.selection.getSelectedElement();
if(p){
return p.parentNode;
}
}else{
if(dojo.doc()["selection"]){
return dojo.doc().selection.createRange().parentElement();
}else{
var _551=dojo.global().getSelection();
if(_551){
var node=_551.anchorNode;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.parentNode;
}
return node;
}
}
}
},getSelectedText:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().text;
}else{
var _553=dojo.global().getSelection();
if(_553){
return _553.toString();
}
}
},getSelectedHtml:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().htmlText;
}else{
var _554=dojo.global().getSelection();
if(_554&&_554.rangeCount){
var frag=_554.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_557){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_558){
var node=dojo.html.selection.getSelectedElement()||dojo.html.selection.getParentElement();
while(node){
if(dojo.html.selection.isTag(node,arguments).length>0){
return node;
}
node=node.parentNode;
}
return null;
},isTag:function(node,tags){
if(node&&node.tagName){
for(var i=0;i<tags.length;i++){
if(node.tagName.toLowerCase()==String(tags[i]).toLowerCase()){
return String(tags[i]).toLowerCase();
}
}
}
return "";
},selectElement:function(_55d){
var _55e=dojo.global();
var _55f=dojo.doc();
_55d=dojo.byId(_55d);
if(_55f.selection&&dojo.body().createTextRange){
try{
var _560=dojo.body().createControlRange();
_560.addElement(_55d);
_560.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_55d);
}
}else{
if(_55e["getSelection"]){
var _561=_55e.getSelection();
if(_561["removeAllRanges"]){
var _560=_55f.createRange();
_560.selectNode(_55d);
_561.removeAllRanges();
_561.addRange(_560);
}
}
}
},selectElementChildren:function(_562){
var _563=dojo.global();
var _564=dojo.doc();
_562=dojo.byId(_562);
if(_564.selection&&dojo.body().createTextRange){
var _565=dojo.body().createTextRange();
_565.moveToElementText(_562);
_565.select();
}else{
if(_563["getSelection"]){
var _566=_563.getSelection();
if(_566["setBaseAndExtent"]){
_566.setBaseAndExtent(_562,0,_562,_562.innerText.length-1);
}else{
if(_566["selectAllChildren"]){
_566.selectAllChildren(_562);
}
}
}
}
},getBookmark:function(){
var _567;
var _568=dojo.doc();
if(_568["selection"]){
var _569=_568.selection.createRange();
_567=_569.getBookmark();
}else{
var _56a;
try{
_56a=dojo.global().getSelection();
}
catch(e){
}
if(_56a){
var _569=_56a.getRangeAt(0);
_567=_569.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _567;
},moveToBookmark:function(_56b){
var _56c=dojo.doc();
if(_56c["selection"]){
var _56d=_56c.selection.createRange();
_56d.moveToBookmark(_56b);
_56d.select();
}else{
var _56e;
try{
_56e=dojo.global().getSelection();
}
catch(e){
}
if(_56e&&_56e["removeAllRanges"]){
_56e.removeAllRanges();
_56e.addRange(_56b);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_56f){
if(dojo.global()["getSelection"]){
var _570=dojo.global().getSelection();
if(_570.removeAllRanges){
if(_56f){
_570.collapseToStart();
}else{
_570.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_56f);
}
}else{
if(dojo.doc().selection){
var _571=dojo.doc().selection.createRange();
_571.collapse(_56f);
_571.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _572=dojo.doc().selection;
if(_572.type.toUpperCase()!="NONE"){
_572.clear();
}
return _572;
}else{
var _572=dojo.global().getSelection();
for(var i=0;i<_572.rangeCount;i++){
_572.getRangeAt(i).deleteContents();
}
return _572;
}
}});
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_574){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_574))||dojo.html.iframeContentDocument(_574).__parent__||(_574.name&&document.frames[_574.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_576){
var doc=_576.contentDocument||((_576.contentWindow)&&(_576.contentWindow.document))||((_576.name)&&(document.frames[_576.name])&&(document.frames[_576.name].document))||null;
return doc;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe src='javascript:false'"+" style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=dojo.doc().createElement(html);
this.iframe.tabIndex=-1;
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
dojo.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.parentNode){
var _57a=dojo.html.getMarginBox(this.domNode);
if(_57a.width==0||_57a.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_57a.width+"px";
this.iframe.style.height=_57a.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _57c=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_57c.width+"px";
height=_57c.height+"px";
left=_57c.left+"px";
top=_57c.top+"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){
this.iframe.style.display="block";
}
},hide:function(){
if(this.iframe){
this.iframe.style.display="none";
}
},remove:function(){
if(this.iframe){
dojo.html.removeNode(this.iframe,true);
delete this.iframe;
this.iframe=null;
}
}});
dojo.provide("dojo.gfx.color");
dojo.gfx.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.gfx.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.gfx.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.gfx.color.Color.fromArray=function(arr){
return new dojo.gfx.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.extend(dojo.gfx.color.Color,{toRgb:function(_584){
if(_584){
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.gfx.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_585,_586){
var rgb=null;
if(dojo.lang.isArray(_585)){
rgb=_585;
}else{
if(_585 instanceof dojo.gfx.color.Color){
rgb=_585.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_585).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_586);
}});
dojo.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.gfx.color.blend=function(a,b,_58a){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_58a);
}
if(!_58a){
_58a=0;
}
_58a=Math.min(Math.max(-1,_58a),1);
_58a=((_58a+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_58a));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_58f){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_58f));
};
dojo.gfx.color.extractRGB=function(_590){
var hex="0123456789abcdef";
_590=_590.toLowerCase();
if(_590.indexOf("rgb")==0){
var _592=_590.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_592.splice(1,3);
return ret;
}else{
var _594=dojo.gfx.color.hex2rgb(_590);
if(_594){
return _594;
}else{
return dojo.gfx.color.named[_590]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _596="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_596+"]","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]=_596.indexOf(rgb[i].charAt(0))*16+_596.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.gfx.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.lfx.Animation");
dojo.lfx.Line=function(_59f,end){
this.start=_59f;
this.end=end;
if(dojo.lang.isArray(_59f)){
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-_59f;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeDefault=function(n){
if(dojo.render.html.khtml){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
}else{
return (0.5+((Math.sin((n+1.5)*Math.PI))/2));
}
};
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,connect:function(evt,_5ae,_5af){
if(!_5af){
_5af=_5ae;
_5ae=this;
}
_5af=dojo.lang.hitch(_5ae,_5af);
var _5b0=this[evt]||function(){
};
this[evt]=function(){
var ret=_5b0.apply(this,arguments);
_5af.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_5b4){
this.repeatCount=_5b4;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_5b5,_5b6,_5b7,_5b8,_5b9,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_5b5)||(!_5b5&&_5b6.getValue)){
rate=_5b9;
_5b9=_5b8;
_5b8=_5b7;
_5b7=_5b6;
_5b6=_5b5;
_5b5=null;
}else{
if(_5b5.getValue||dojo.lang.isArray(_5b5)){
rate=_5b8;
_5b9=_5b7;
_5b8=_5b6;
_5b7=_5b5;
_5b6=null;
_5b5=null;
}
}
if(dojo.lang.isArray(_5b7)){
this.curve=new dojo.lfx.Line(_5b7[0],_5b7[1]);
}else{
this.curve=_5b7;
}
if(_5b6!=null&&_5b6>0){
this.duration=_5b6;
}
if(_5b9){
this.repeatCount=_5b9;
}
if(rate){
this.rate=rate;
}
if(_5b5){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_5b5[item]){
this.connect(item,_5b5[item]);
}
},this);
}
if(_5b8&&dojo.lang.isFunction(_5b8)){
this.easing=_5b8;
}
};
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(_5bc,_5bd){
if(_5bd){
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(_5bc>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5bd);
}),_5bc);
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 _5bf=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_5bf]);
this.fire("onBegin",[_5bf]);
}
this.fire("handler",["play",_5bf]);
this.fire("onPlay",[_5bf]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _5c0=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_5c0]);
this.fire("onPause",[_5c0]);
return this;
},gotoPercent:function(pct,_5c2){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_5c2){
this.play();
}
return this;
},stop:function(_5c3){
clearTimeout(this._timer);
var step=this._percent/100;
if(_5c3){
step=1;
}
var _5c5=this.curve.getValue(step);
this.fire("handler",["stop",_5c5]);
this.fire("onStop",[_5c5]);
this._active=false;
this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
return this;
},_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 _5c8=this.curve.getValue(step);
this.fire("handler",["animate",_5c8]);
this.fire("onAnimate",[_5c8]);
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(_5c9){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _5ca=arguments;
if(_5ca.length==1&&(dojo.lang.isArray(_5ca[0])||dojo.lang.isArrayLike(_5ca[0]))){
_5ca=_5ca[0];
}
dojo.lang.forEach(_5ca,function(anim){
this._anims.push(anim);
anim.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"));
},this);
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_5cc,_5cd){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_5cc>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5cd);
}),_5cc);
return this;
}
if(_5cd||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_5cd);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_5ce){
this.fire("onStop");
this._animsCall("stop",_5ce);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_5cf){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _5d2=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_5cf](args);
},_5d2);
return this;
}});
dojo.lfx.Chain=function(_5d4){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _5d5=arguments;
if(_5d5.length==1&&(dojo.lang.isArray(_5d5[0])||dojo.lang.isArrayLike(_5d5[0]))){
_5d5=_5d5[0];
}
var _5d6=this;
dojo.lang.forEach(_5d5,function(anim,i,_5d9){
this._anims.push(anim);
if(i<_5d9.length-1){
anim.connect("onEnd",dojo.lang.hitch(this,"_playNext"));
}else{
anim.connect("onEnd",dojo.lang.hitch(this,function(){
this.fire("onEnd");
}));
}
},this);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_5da,_5db){
if(!this._anims.length){
return this;
}
if(_5db||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _5dc=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_5da>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5db);
}),_5da);
return this;
}
if(_5dc){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_5dc.play(null,_5db);
}
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 _5dd=this._anims[this._currAnim];
if(_5dd){
if(!_5dd._active||_5dd._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _5de=this._anims[this._currAnim];
if(_5de){
_5de.stop();
this.fire("onStop",[this._currAnim]);
}
return _5de;
},_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(_5df){
var _5e0=arguments;
if(dojo.lang.isArray(arguments[0])){
_5e0=arguments[0];
}
if(_5e0.length==1){
return _5e0[0];
}
return new dojo.lfx.Combine(_5e0);
};
dojo.lfx.chain=function(_5e1){
var _5e2=arguments;
if(dojo.lang.isArray(arguments[0])){
_5e2=arguments[0];
}
if(_5e2.length==1){
return _5e2[0];
}
return new dojo.lfx.Chain(_5e2);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _5e4;
do{
_5e4=dojo.html.getStyle(node,"background-color");
if(_5e4.toLowerCase()=="rgba(0, 0, 0, 0)"){
_5e4="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_5e4));
if(_5e4=="transparent"){
_5e4=[255,255,255,0];
}else{
_5e4=dojo.gfx.color.extractRGB(_5e4);
}
return _5e4;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_5e5){
if(!_5e5){
return [];
}
if(dojo.lang.isArrayLike(_5e5)){
if(!_5e5.alreadyChecked){
var n=[];
dojo.lang.forEach(_5e5,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _5e5;
}
}else{
var n=[];
n.push(dojo.byId(_5e5));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_5e8,_5e9,_5ea,_5eb,_5ec){
_5e8=dojo.lfx.html._byId(_5e8);
var _5ed={"propertyMap":_5e9,"nodes":_5e8,"duration":_5ea,"easing":_5eb||dojo.lfx.easeDefault};
var _5ee=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _5f2 in pm){
pm[_5f2].property=_5f2;
parr.push(pm[_5f2]);
}
pm=args.propertyMap=parr;
}
dojo.lang.forEach(pm,function(prop){
if(dj_undef("start",prop)){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.html.getComputedStyle(args.nodes[0],prop.property));
}else{
prop.start=dojo.html.getOpacity(args.nodes[0]);
}
}
});
}
};
var _5f4=function(_5f5){
var _5f6=[];
dojo.lang.forEach(_5f5,function(c){
_5f6.push(Math.round(c));
});
return _5f6;
};
var _5f8=function(n,_5fa){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _5fa){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_5fa[s]);
}else{
n.style[s]=_5fa[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _5fc=function(_5fd){
this._properties=_5fd;
this.diffs=new Array(_5fd.length);
dojo.lang.forEach(_5fd,function(prop,i){
if(dojo.lang.isFunction(prop.start)){
prop.start=prop.start(prop,i);
}
if(dojo.lang.isFunction(prop.end)){
prop.end=prop.end(prop,i);
}
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.gfx.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 _604=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_604=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_604+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_604+=")";
}else{
_604=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_604;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_5ee(_5ed);
anim.curve=new _5fc(_5ed.propertyMap);
},onAnimate:function(_607){
dojo.lang.forEach(_5ed.nodes,function(node){
_5f8(node,_607);
});
}},_5ed.duration,null,_5ed.easing);
if(_5ec){
for(var x in _5ec){
if(dojo.lang.isFunction(_5ec[x])){
anim.connect(x,anim,_5ec[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_60a){
var _60b=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.html.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.html.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
if(dojo.lang.isArrayLike(_60a)){
dojo.lang.forEach(_60a,_60b);
}else{
_60b(_60a);
}
};
dojo.lfx.html.fade=function(_60d,_60e,_60f,_610,_611){
_60d=dojo.lfx.html._byId(_60d);
var _612={property:"opacity"};
if(!dj_undef("start",_60e)){
_612.start=_60e.start;
}else{
_612.start=function(){
return dojo.html.getOpacity(_60d[0]);
};
}
if(!dj_undef("end",_60e)){
_612.end=_60e.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_60d,[_612],_60f,_610);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_60d);
});
if(_611){
anim.connect("onEnd",function(){
_611(_60d,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_614,_615,_616,_617){
return dojo.lfx.html.fade(_614,{end:1},_615,_616,_617);
};
dojo.lfx.html.fadeOut=function(_618,_619,_61a,_61b){
return dojo.lfx.html.fade(_618,{end:0},_619,_61a,_61b);
};
dojo.lfx.html.fadeShow=function(_61c,_61d,_61e,_61f){
_61c=dojo.lfx.html._byId(_61c);
dojo.lang.forEach(_61c,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_61c,_61d,_61e,_61f);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_61c)){
dojo.lang.forEach(_61c,dojo.html.show);
}else{
dojo.html.show(_61c);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_622,_623,_624,_625){
var anim=dojo.lfx.html.fadeOut(_622,_623,_624,function(){
if(dojo.lang.isArrayLike(_622)){
dojo.lang.forEach(_622,dojo.html.hide);
}else{
dojo.html.hide(_622);
}
if(_625){
_625(_622,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_627,_628,_629,_62a){
_627=dojo.lfx.html._byId(_627);
var _62b=[];
dojo.lang.forEach(_627,function(node){
var _62d={};
var _62e,_62f,_630;
with(node.style){
_62e=top;
_62f=left;
_630=position;
top="-9999px";
left="-9999px";
position="absolute";
display="";
}
var _631=dojo.html.getBorderBox(node).height;
with(node.style){
top=_62e;
left=_62f;
position=_630;
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _631;
}}},_628,_629);
anim.connect("beforeBegin",function(){
_62d.overflow=node.style.overflow;
_62d.height=node.style.height;
with(node.style){
overflow="hidden";
_631="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_62d.overflow;
_631=_62d.height;
}
if(_62a){
_62a(node,anim);
}
});
_62b.push(anim);
});
return dojo.lfx.combine(_62b);
};
dojo.lfx.html.wipeOut=function(_633,_634,_635,_636){
_633=dojo.lfx.html._byId(_633);
var _637=[];
dojo.lang.forEach(_633,function(node){
var _639={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_634,_635,{"beforeBegin":function(){
_639.overflow=node.style.overflow;
_639.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_639.overflow;
height=_639.height;
}
if(_636){
_636(node,anim);
}
}});
_637.push(anim);
});
return dojo.lfx.combine(_637);
};
dojo.lfx.html.slideTo=function(_63b,_63c,_63d,_63e,_63f){
_63b=dojo.lfx.html._byId(_63b);
var _640=[];
var _641=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_63c)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_63c={top:_63c[0],left:_63c[1]};
}
dojo.lang.forEach(_63b,function(node){
var top=null;
var left=null;
var init=(function(){
var _646=node;
return function(){
var pos=_641(_646,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_641(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_641(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_646,true);
dojo.html.setStyleAttributes(_646,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:(_63c.top||0)},"left":{start:left,end:(_63c.left||0)}},_63d,_63e,{"beforeBegin":init});
if(_63f){
anim.connect("onEnd",function(){
_63f(_63b,anim);
});
}
_640.push(anim);
});
return dojo.lfx.combine(_640);
};
dojo.lfx.html.slideBy=function(_64a,_64b,_64c,_64d,_64e){
_64a=dojo.lfx.html._byId(_64a);
var _64f=[];
var _650=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_64b)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_64b={top:_64b[0],left:_64b[1]};
}
dojo.lang.forEach(_64a,function(node){
var top=null;
var left=null;
var init=(function(){
var _655=node;
return function(){
var pos=_650(_655,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_650(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_650(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_655,true);
dojo.html.setStyleAttributes(_655,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:top+(_64b.top||0)},"left":{start:left,end:left+(_64b.left||0)}},_64c,_64d).connect("beforeBegin",init);
if(_64e){
anim.connect("onEnd",function(){
_64e(_64a,anim);
});
}
_64f.push(anim);
});
return dojo.lfx.combine(_64f);
};
dojo.lfx.html.explode=function(_659,_65a,_65b,_65c,_65d){
var h=dojo.html;
_659=dojo.byId(_659);
_65a=dojo.byId(_65a);
var _65f=h.toCoordinateObject(_659,true);
var _660=document.createElement("div");
h.copyStyle(_660,_65a);
if(_65a.explodeClassName){
_660.className=_65a.explodeClassName;
}
with(_660.style){
position="absolute";
display="none";
var _661=h.getStyle(_659,"background-color");
backgroundColor="transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_660);
with(_65a.style){
visibility="hidden";
display="block";
}
var _662=h.toCoordinateObject(_65a,true);
with(_65a.style){
display="none";
visibility="visible";
}
var _663={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_663[type]={start:_65f[type],end:_662[type]};
});
var anim=new dojo.lfx.propertyAnimation(_660,_663,_65b,_65c,{"beforeBegin":function(){
h.setDisplay(_660,"block");
},"onEnd":function(){
h.setDisplay(_65a,"block");
_660.parentNode.removeChild(_660);
}});
if(_65d){
anim.connect("onEnd",function(){
_65d(_65a,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_666,end,_668,_669,_66a){
var h=dojo.html;
_666=dojo.byId(_666);
end=dojo.byId(end);
var _66c=dojo.html.toCoordinateObject(_666,true);
var _66d=dojo.html.toCoordinateObject(end,true);
var _66e=document.createElement("div");
dojo.html.copyStyle(_66e,_666);
if(_666.explodeClassName){
_66e.className=_666.explodeClassName;
}
dojo.html.setOpacity(_66e,0.3);
with(_66e.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_666,"background-color").toLowerCase();
}
dojo.body().appendChild(_66e);
var _66f={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_66f[type]={start:_66c[type],end:_66d[type]};
});
var anim=new dojo.lfx.propertyAnimation(_66e,_66f,_668,_669,{"beforeBegin":function(){
dojo.html.hide(_666);
dojo.html.show(_66e);
},"onEnd":function(){
_66e.parentNode.removeChild(_66e);
}});
if(_66a){
anim.connect("onEnd",function(){
_66a(_666,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_672,_673,_674,_675,_676){
_672=dojo.lfx.html._byId(_672);
var _677=[];
dojo.lang.forEach(_672,function(node){
var _679=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _67b=dojo.html.getStyle(node,"background-image");
var _67c=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_679.length>3){
_679.pop();
}
var rgb=new dojo.gfx.color.Color(_673);
var _67e=new dojo.gfx.color.Color(_679);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_67e}},_674,_675,{"beforeBegin":function(){
if(_67b){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_67b){
node.style.backgroundImage=_67b;
}
if(_67c){
node.style.backgroundColor="transparent";
}
if(_676){
_676(node,anim);
}
}});
_677.push(anim);
});
return dojo.lfx.combine(_677);
};
dojo.lfx.html.unhighlight=function(_680,_681,_682,_683,_684){
_680=dojo.lfx.html._byId(_680);
var _685=[];
dojo.lang.forEach(_680,function(node){
var _687=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_681);
var _689=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_687,end:rgb}},_682,_683,{"beforeBegin":function(){
if(_689){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_687.toRgb().join(",")+")";
},"onEnd":function(){
if(_684){
_684(node,anim);
}
}});
_685.push(anim);
});
return dojo.lfx.combine(_685);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.dnd.HtmlDragAndDrop");
dojo.declare("dojo.dnd.HtmlDragSource",dojo.dnd.DragSource,{dragClass:"",onDragStart:function(){
var _68b=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);
if(this.dragClass){
_68b.dragClass=this.dragClass;
}
if(this.constrainToContainer){
_68b.constrainTo(this.constrainingContainer||this.domNode.parentNode);
}
return _68b;
},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(_68e){
this.constrainToContainer=true;
if(_68e){
this.constrainingContainer=_68e;
}
},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(dojo.byId(arguments[i]));
}
}},function(node,type){
node=dojo.byId(node);
this.dragObjects=[];
this.constrainToContainer=false;
if(node){
this.domNode=node;
this.dragObject=node;
this.type=(type)||(this.domNode.nodeName.toLowerCase());
dojo.dnd.DragSource.prototype.reregister.call(this);
}
});
dojo.declare("dojo.dnd.HtmlDragObject",dojo.dnd.DragObject,{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.html.setOpacity(node,this.opacity);
}
var ltn=node.tagName.toLowerCase();
var isTr=(ltn=="tr");
if((isTr)||(ltn=="tbody")){
var doc=this.domNode.ownerDocument;
var _698=doc.createElement("table");
if(isTr){
var _699=doc.createElement("tbody");
_698.appendChild(_699);
_699.appendChild(node);
}else{
_698.appendChild(node);
}
var _69a=((isTr)?this.domNode:this.domNode.firstChild);
var _69b=((isTr)?node:node.firstChild);
var _69c=tdp.childNodes;
var _69d=_69b.childNodes;
for(var i=0;i<_69c.length;i++){
if((_69d[i])&&(_69d[i].style)){
_69d[i].style.width=dojo.html.getContentBox(_69c[i]).width+"px";
}
}
node=_698;
}
if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){
with(node.style){
top="0px";
left="0px";
}
var _69f=document.createElement("div");
_69f.appendChild(node);
this.bgIframe=new dojo.html.BackgroundIframe(_69f);
_69f.appendChild(this.bgIframe.iframe);
node=_69f;
}
node.style.zIndex=999;
return node;
},onDragStart:function(e){
dojo.html.clearSelection();
this.scrollOffset=dojo.html.getScroll().offset;
this.dragStartPosition=dojo.html.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.html.getAbsolutePosition(this.domNode.offsetParent,true):{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";
}
dojo.body().appendChild(this.dragClone);
dojo.event.topic.publish("dragStart",{source:this});
},getConstraints:function(){
if(this.constrainingContainer.nodeName.toLowerCase()=="body"){
var _6a1=dojo.html.getViewport();
var _6a2=_6a1.width;
var _6a3=_6a1.height;
var _6a4=dojo.html.getScroll().offset;
var x=_6a4.x;
var y=_6a4.y;
}else{
var _6a7=dojo.html.getContentBox(this.constrainingContainer);
_6a2=_6a7.width;
_6a3=_6a7.height;
x=this.containingBlockPosition.x+dojo.html.getPixelValue(this.constrainingContainer,"padding-left",true)+dojo.html.getBorderExtent(this.constrainingContainer,"left");
y=this.containingBlockPosition.y+dojo.html.getPixelValue(this.constrainingContainer,"padding-top",true)+dojo.html.getBorderExtent(this.constrainingContainer,"top");
}
var mb=dojo.html.getMarginBox(this.domNode);
return {minX:x,minY:y,maxX:x+_6a2-mb.width,maxY:y+_6a3-mb.height};
},updateDragOffset:function(){
var _6a9=dojo.html.getScroll().offset;
if(_6a9.y!=this.scrollOffset.y){
var diff=_6a9.y-this.scrollOffset.y;
this.dragOffset.y+=diff;
this.scrollOffset.y=_6a9.y;
}
if(_6a9.x!=this.scrollOffset.x){
var diff=_6a9.x-this.scrollOffset.x;
this.dragOffset.x+=diff;
this.scrollOffset.x=_6a9.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.html.removeNode(this.dragClone);
this.dragClone=null;
break;
case "dropFailure":
var _6b1=dojo.html.getAbsolutePosition(this.dragClone,true);
var _6b2={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1};
var anim=dojo.lfx.slideTo(this.dragClone,_6b2,300);
var _6b4=this;
dojo.event.connect(anim,"onEnd",function(e){
dojo.html.removeNode(_6b4.dragClone);
_6b4.dragClone=null;
});
anim.play();
break;
}
dojo.event.topic.publish("dragEnd",{source:this});
},constrainTo:function(_6b6){
this.constrainToContainer=true;
if(_6b6){
this.constrainingContainer=_6b6;
}else{
this.constrainingContainer=this.domNode.parentNode;
}
}},function(node,type){
this.domNode=dojo.byId(node);
this.type=type;
this.constrainToContainer=false;
this.dragSource=null;
dojo.dnd.DragObject.prototype.register.call(this);
});
dojo.declare("dojo.dnd.HtmlDropTarget",dojo.dnd.DropTarget,{vertical:false,onDragOver:function(e){
if(!this.accepts(e.dragObjects)){
return false;
}
this.childBoxes=[];
for(var i=0,_6bb;i<this.domNode.childNodes.length;i++){
_6bb=this.domNode.childNodes[i];
if(_6bb.nodeType!=dojo.html.ELEMENT_NODE){
continue;
}
var pos=dojo.html.getAbsolutePosition(_6bb,true);
var _6bd=dojo.html.getBorderBox(_6bb);
this.childBoxes.push({top:pos.y,bottom:pos.y+_6bd.height,left:pos.x,right:pos.x+_6bd.width,height:_6bd.height,width:_6bd.width,node:_6bb});
}
return true;
},_getNodeUnderMouse:function(e){
for(var i=0,_6c0;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;
if(this.vertical){
borderLeftWidth="1px";
borderLeftColor="black";
borderLeftStyle="solid";
height=dojo.html.getBorderBox(this.domNode).height+"px";
top=dojo.html.getAbsolutePosition(this.domNode,true).y+"px";
}else{
borderTopWidth="1px";
borderTopColor="black";
borderTopStyle="solid";
width=dojo.html.getBorderBox(this.domNode).width+"px";
left=dojo.html.getAbsolutePosition(this.domNode,true).x+"px";
}
}
},onDragMove:function(e,_6c2){
var i=this._getNodeUnderMouse(e);
if(!this.dropIndicator){
this.createDropIndicator();
}
var _6c4=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;
var hide=false;
if(i<0){
if(this.childBoxes.length){
var _6c6=(dojo.html.gravity(this.childBoxes[0].node,e)&_6c4);
if(_6c6){
hide=true;
}
}else{
var _6c6=true;
}
}else{
var _6c7=this.childBoxes[i];
var _6c6=(dojo.html.gravity(_6c7.node,e)&_6c4);
if(_6c7.node===_6c2[0].dragSource.domNode){
hide=true;
}else{
var _6c8=_6c6?(i>0?this.childBoxes[i-1]:_6c7):(i<this.childBoxes.length-1?this.childBoxes[i+1]:_6c7);
if(_6c8.node===_6c2[0].dragSource.domNode){
hide=true;
}
}
}
if(hide){
this.dropIndicator.style.display="none";
return;
}else{
this.dropIndicator.style.display="";
}
this.placeIndicator(e,_6c2,i,_6c6);
if(!dojo.html.hasParent(this.dropIndicator)){
dojo.body().appendChild(this.dropIndicator);
}
},placeIndicator:function(e,_6ca,_6cb,_6cc){
var _6cd=this.vertical?"left":"top";
var _6ce;
if(_6cb<0){
if(this.childBoxes.length){
_6ce=_6cc?this.childBoxes[0]:this.childBoxes[this.childBoxes.length-1];
}else{
this.dropIndicator.style[_6cd]=dojo.html.getAbsolutePosition(this.domNode,true)[this.vertical?"x":"y"]+"px";
}
}else{
_6ce=this.childBoxes[_6cb];
}
if(_6ce){
this.dropIndicator.style[_6cd]=(_6cc?_6ce[_6cd]:_6ce[this.vertical?"right":"bottom"])+"px";
if(this.vertical){
this.dropIndicator.style.height=_6ce.height+"px";
this.dropIndicator.style.top=_6ce.top+"px";
}else{
this.dropIndicator.style.width=_6ce.width+"px";
this.dropIndicator.style.left=_6ce.left+"px";
}
}
},onDragOut:function(e){
if(this.dropIndicator){
dojo.html.removeNode(this.dropIndicator);
delete this.dropIndicator;
}
},onDrop:function(e){
this.onDragOut(e);
var i=this._getNodeUnderMouse(e);
var _6d2=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;
if(i<0){
if(this.childBoxes.length){
if(dojo.html.gravity(this.childBoxes[0].node,e)&_6d2){
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 _6d3=this.childBoxes[i];
if(dojo.html.gravity(_6d3.node,e)&_6d2){
return this.insert(e,_6d3.node,"before");
}else{
return this.insert(e,_6d3.node,"after");
}
},insert:function(e,_6d5,_6d6){
var node=e.dragObject.domNode;
if(_6d6=="before"){
return dojo.html.insertBefore(node,_6d5);
}else{
if(_6d6=="after"){
return dojo.html.insertAfter(node,_6d5);
}else{
if(_6d6=="append"){
_6d5.appendChild(node);
return true;
}
}
}
return false;
}},function(node,_6d9){
if(arguments.length==0){
return;
}
this.domNode=dojo.byId(node);
dojo.dnd.DropTarget.call(this);
if(_6d9&&dojo.lang.isString(_6d9)){
_6d9=[_6d9];
}
this.acceptedTypes=_6d9||[];
dojo.dnd.dragManager.registerDropTarget(this);
});
dojo.provide("dojo.dnd.*");
if(!this["dojo"]){
alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");
}
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,_6e0,_6e1){
var out="";
for(var i=0;i<_6e0;i++){
out+=str;
if(_6e1&&i<_6e0-1){
out+=_6e1;
}
}
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.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_6f0,_6f1,_6f2){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_6f0){
this.mimetype=_6f0;
}
if(_6f1){
this.transport=_6f1;
}
if(arguments.length>=4){
this.changeUrl=_6f2;
}
}
};
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,_6f5,_6f6){
},error:function(type,_6f8,_6f9,_6fa){
},timeout:function(type,_6fc,_6fd,_6fe){
},handle:function(type,data,_701,_702){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_703){
if(_703["url"]){
_703.url=_703.url.toString();
}
if(_703["formNode"]){
_703.formNode=dojo.byId(_703.formNode);
}
if(!_703["method"]&&_703["formNode"]&&_703["formNode"].method){
_703.method=_703["formNode"].method;
}
if(!_703["handle"]&&_703["handler"]){
_703.handle=_703.handler;
}
if(!_703["load"]&&_703["loaded"]){
_703.load=_703.loaded;
}
if(!_703["changeUrl"]&&_703["changeURL"]){
_703.changeUrl=_703.changeURL;
}
_703.encoding=dojo.lang.firstValued(_703["encoding"],djConfig["bindEncoding"],"");
_703.sendTransport=dojo.lang.firstValued(_703["sendTransport"],djConfig["ioSendTransport"],false);
var _704=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_703[fn]&&_704(_703[fn])){
continue;
}
if(_703["handle"]&&_704(_703["handle"])){
_703[fn]=_703.handle;
}
}
dojo.lang.mixin(this,_703);
}});
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(_70b){
if(!(_70b instanceof dojo.io.Request)){
try{
_70b=new dojo.io.Request(_70b);
}
catch(e){
dojo.debug(e);
}
}
var _70c="";
if(_70b["transport"]){
_70c=_70b["transport"];
if(!this[_70c]){
dojo.io.sendBindError(_70b,"No dojo.io.bind() transport with name '"+_70b["transport"]+"'.");
return _70b;
}
if(!this[_70c].canHandle(_70b)){
dojo.io.sendBindError(_70b,"dojo.io.bind() transport with name '"+_70b["transport"]+"' cannot handle this type of request.");
return _70b;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_70b))){
_70c=tmp;
break;
}
}
if(_70c==""){
dojo.io.sendBindError(_70b,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _70b;
}
}
this[_70c].bind(_70b);
_70b.bindSuccess=true;
return _70b;
};
dojo.io.sendBindError=function(_70f,_710){
if((typeof _70f.error=="function"||typeof _70f.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _711=new dojo.io.Error(_710);
setTimeout(function(){
_70f[(typeof _70f.error=="function")?"error":"handle"]("error",_711,null,_70f);
},50);
}else{
dojo.raise(_710);
}
};
dojo.io.queueBind=function(_712){
if(!(_712 instanceof dojo.io.Request)){
try{
_712=new dojo.io.Request(_712);
}
catch(e){
dojo.debug(e);
}
}
var _713=_712.load;
_712.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_713.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _715=_712.error;
_712.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_715.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_712);
dojo.io._dispatchNextQueueBind();
return _712;
};
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,_718,last){
var enc=/utf/i.test(_718||"")?encodeURIComponent:dojo.string.encodeAscii;
var _71b=[];
var _71c=new Object();
for(var name in map){
var _71e=function(elt){
var val=enc(name)+"="+enc(elt);
_71b[(last==name)?"push":"unshift"](val);
};
if(!_71c[name]){
var _721=map[name];
if(dojo.lang.isArray(_721)){
dojo.lang.forEach(_721,_71e);
}else{
_71e(_721);
}
}
}
return _71b.join("&");
};
dojo.io.setIFrameSrc=function(_722,src,_724){
try{
var r=dojo.render.html;
if(!_724){
if(r.safari){
_722.location=src;
}else{
frames[_722.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_722.contentWindow.document;
}else{
if(r.safari){
idoc=_722.document;
}else{
idoc=_722.contentWindow;
}
}
if(!idoc){
_722.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_727,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _727.replace(/\%\{(\w+)\}/g,function(_72a,key){
if(typeof (map[key])!="undefined"&&map[key]!=null){
return map[key];
}
dojo.raise("Substitution not found: "+key);
});
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
if(arguments.length==0){
str=this;
}
var _72d=str.split(" ");
for(var i=0;i<_72d.length;i++){
_72d[i]=_72d[i].charAt(0).toUpperCase()+_72d[i].substring(1);
}
return _72d.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 _732=escape(str);
var _733,re=/%u([0-9A-F]{4})/i;
while((_733=_732.match(re))){
var num=Number("0x"+_733[1]);
var _736=escape("&#"+num+";");
ret+=_732.substring(0,_733.index)+_736;
_732=_732.substring(_733.index+_733[0].length);
}
ret+=_732.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,_73b){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_73b){
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;
}
return str.substring(0,len).replace(/\.+$/,"")+"...";
};
dojo.string.endsWith=function(str,end,_744){
if(_744){
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,_748,_749){
if(_749){
str=str.toLowerCase();
_748=_748.toLowerCase();
}
return str.indexOf(_748)==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,_74f){
if(_74f=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_74f=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n").replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_751){
var _752=[];
for(var i=0,_754=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_751){
_752.push(str.substring(_754,i));
_754=i+1;
}
}
_752.push(str.substr(_754));
return _752;
};
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:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState=this._createState(this.initialHref,args,this.initialHash);
},addToHistory:function(args){
this.forwardStack=[];
var hash=null;
var url=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
dojo.body().appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
if(this.historyStack.length==0&&this.initialState.urlHash==hash){
this.initialState=this._createState(url,args,hash);
return;
}else{
if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){
this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash);
return;
}
}
this.changingUrl=true;
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
url=this._loadIframeHistory();
var _759=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_75b){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_759.apply(this,[_75b]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _75c=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_75e){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_75c){
_75c.apply(this,[_75e]);
}
};
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);
}
}
}
}else{
url=this._loadIframeHistory();
}
this.historyStack.push(this._createState(url,args,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,_761){
if(!dojo.render.html.opera){
var _762=this._getUrlQuery(_761.href);
if(_762==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_762==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_762==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _763=this.historyStack.pop();
if(!_763){
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(_763);
},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);
},_createState:function(url,args,hash){
return {"url":url,"kwArgs":args,"urlHash":hash};
},_getUrlQuery:function(url){
var _76a=url.split("?");
if(_76a.length<2){
return null;
}else{
return _76a[1];
}
},_loadIframeHistory:function(){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
return url;
}};
dojo.provide("dojo.io.BrowserIO");
if(!dj_undef("window")){
dojo.io.checkChildrenForFile=function(node){
var _76d=false;
var _76e=node.getElementsByTagName("input");
dojo.lang.forEach(_76e,function(_76f){
if(_76d){
return;
}
if(_76f.getAttribute("type")=="file"){
_76d=true;
}
});
return _76d;
};
dojo.io.formHasFile=function(_770){
return dojo.io.checkChildrenForFile(_770);
};
dojo.io.updateNode=function(node,_772){
node=dojo.byId(node);
var args=_772;
if(dojo.lang.isString(_772)){
args={url:_772};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
dojo.dom.destroyNode(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(["file","submit","image","reset","button"],type);
};
dojo.io.encodeForm=function(_779,_77a,_77b){
if((!_779)||(!_779.tagName)||(!_779.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_77b){
_77b=dojo.io.formFilter;
}
var enc=/utf/i.test(_77a||"")?encodeURIComponent:dojo.string.encodeAscii;
var _77d=[];
for(var i=0;i<_779.elements.length;i++){
var elm=_779.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_77b(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){
_77d.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_77d.push(name+"="+enc(elm.value));
}
}else{
_77d.push(name+"="+enc(elm.value));
}
}
}
var _783=_779.getElementsByTagName("input");
for(var i=0;i<_783.length;i++){
var _784=_783[i];
if(_784.type.toLowerCase()=="image"&&_784.form==_779&&_77b(_784)){
var name=enc(_784.name);
_77d.push(name+"="+enc(_784.value));
_77d.push(name+".x=0");
_77d.push(name+".y=0");
}
}
return _77d.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(["submit","button"],node.type.toLowerCase())){
this.connect(node,"onclick","click");
}
}
var _78a=form.getElementsByTagName("input");
for(var i=0;i<_78a.length;i++){
var _78b=_78a[i];
if(_78b.type.toLowerCase()=="image"&&_78b.form==form){
this.connect(_78b,"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 _792=false;
if(node.disabled||!node.name){
_792=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_792=node==this.clickedButton;
}else{
_792=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _792;
},connect:function(_793,_794,_795){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_793,_794,this,_795);
}else{
var fcn=dojo.lang.hitch(this,_795);
_793[_794]=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 _798=this;
var _799={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_79b,_79c){
return url+"|"+_79b+"|"+_79c.toLowerCase();
}
function addToCache(url,_79e,_79f,http){
_799[getCacheKey(url,_79e,_79f)]=http;
}
function getFromCache(url,_7a2,_7a3){
return _799[getCacheKey(url,_7a2,_7a3)];
}
this.clearCache=function(){
_799={};
};
function doLoad(_7a4,http,url,_7a7,_7a8){
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(_7a4.method.toLowerCase()=="head"){
var _7aa=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _7aa;
};
var _7ab=_7aa.split(/[\r\n]+/g);
for(var i=0;i<_7ab.length;i++){
var pair=_7ab[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_7a4.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_7a4.mimetype=="text/json"||_7a4.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_7a4.mimetype=="application/xml")||(_7a4.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(_7a8){
addToCache(url,_7a7,_7a4.method,http);
}
_7a4[(typeof _7a4.load=="function")?"load":"handle"]("load",ret,http,_7a4);
}else{
var _7ae=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_7a4[(typeof _7a4.error=="function")?"error":"handle"]("error",_7ae,http,_7a4);
}
}
function setHeaders(http,_7b0){
if(_7b0["headers"]){
for(var _7b1 in _7b0["headers"]){
if(_7b1.toLowerCase()=="content-type"&&!_7b0["contentType"]){
_7b0["contentType"]=_7b0["headers"][_7b1];
}else{
http.setRequestHeader(_7b1,_7b0["headers"][_7b1]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
if(!dojo.hostenv._blockAsync&&!_798._blockAsync){
for(var x=this.inFlight.length-1;x>=0;x--){
try{
var tif=this.inFlight[x];
if(!tif||tif.http._aborted||!tif.http.readyState){
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);
}
}
}
}
catch(e){
try{
var _7b5=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_7b5,tif.http,tif.req);
}
catch(e2){
dojo.debug("XMLHttpTransport error callback failed: "+e2);
}
}
}
}
clearTimeout(this.inFlightTimer);
if(this.inFlight.length==0){
this.inFlightTimer=null;
return;
}
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
};
var _7b6=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_7b7){
return _7b6&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_7b7["mimetype"].toLowerCase()||""))&&!(_7b7["formNode"]&&dojo.io.formHasFile(_7b7["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_7b8){
if(!_7b8["url"]){
if(!_7b8["formNode"]&&(_7b8["backButton"]||_7b8["back"]||_7b8["changeUrl"]||_7b8["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(_7b8);
return true;
}
}
var url=_7b8.url;
var _7ba="";
if(_7b8["formNode"]){
var ta=_7b8.formNode.getAttribute("action");
if((ta)&&(!_7b8["url"])){
url=ta;
}
var tp=_7b8.formNode.getAttribute("method");
if((tp)&&(!_7b8["method"])){
_7b8.method=tp;
}
_7ba+=dojo.io.encodeForm(_7b8.formNode,_7b8.encoding,_7b8["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_7b8["file"]){
_7b8.method="post";
}
if(!_7b8["method"]){
_7b8.method="get";
}
if(_7b8.method.toLowerCase()=="get"){
_7b8.multipart=false;
}else{
if(_7b8["file"]){
_7b8.multipart=true;
}else{
if(!_7b8["multipart"]){
_7b8.multipart=false;
}
}
}
if(_7b8["backButton"]||_7b8["back"]||_7b8["changeUrl"]){
dojo.undo.browser.addToHistory(_7b8);
}
var _7bd=_7b8["content"]||{};
if(_7b8.sendTransport){
_7bd["dojo.transport"]="xmlhttp";
}
do{
if(_7b8.postContent){
_7ba=_7b8.postContent;
break;
}
if(_7bd){
_7ba+=dojo.io.argsFromMap(_7bd,_7b8.encoding);
}
if(_7b8.method.toLowerCase()=="get"||!_7b8.multipart){
break;
}
var t=[];
if(_7ba.length){
var q=_7ba.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(_7b8.file){
if(dojo.lang.isArray(_7b8.file)){
for(var i=0;i<_7b8.file.length;++i){
var o=_7b8.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=_7b8.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+"--","");
_7ba=t.join("\r\n");
}
}while(false);
var _7c3=_7b8["sync"]?false:true;
var _7c4=_7b8["preventCache"]||(this.preventCache==true&&_7b8["preventCache"]!=false);
var _7c5=_7b8["useCache"]==true||(this.useCache==true&&_7b8["useCache"]!=false);
if(!_7c4&&_7c5){
var _7c6=getFromCache(url,_7ba,_7b8.method);
if(_7c6){
doLoad(_7b8,_7c6,url,_7ba,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_7b8);
var _7c8=false;
if(_7c3){
var _7c9=this.inFlight.push({"req":_7b8,"http":http,"url":url,"query":_7ba,"useCache":_7c5,"startTime":_7b8.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_798._blockAsync=true;
}
if(_7b8.method.toLowerCase()=="post"){
if(!_7b8.user){
http.open("POST",url,_7c3);
}else{
http.open("POST",url,_7c3,_7b8.user,_7b8.password);
}
setHeaders(http,_7b8);
http.setRequestHeader("Content-Type",_7b8.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_7b8.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_7ba);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_7b8,{status:404},url,_7ba,_7c5);
}
}else{
var _7ca=url;
if(_7ba!=""){
_7ca+=(_7ca.indexOf("?")>-1?"&":"?")+_7ba;
}
if(_7c4){
_7ca+=(dojo.string.endsWithAny(_7ca,"?","&")?"":(_7ca.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_7b8.user){
http.open(_7b8.method.toUpperCase(),_7ca,_7c3);
}else{
http.open(_7b8.method.toUpperCase(),_7ca,_7c3,_7b8.user,_7b8.password);
}
setHeaders(http,_7b8);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_7b8,{status:404},url,_7ba,_7c5);
}
}
if(!_7c3){
doLoad(_7b8,http,url,_7ba,_7c5);
_798._blockAsync=false;
}
_7b8.abort=function(){
try{
http._aborted=true;
}
catch(e){
}
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
}
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_7cc,days,path,_7cf,_7d0){
var _7d1=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_7d1=d.toGMTString();
}
_7cc=escape(_7cc);
document.cookie=name+"="+_7cc+";"+(_7d1!=-1?" expires="+_7d1+";":"")+(path?"path="+path:"")+(_7cf?"; domain="+_7cf:"")+(_7d0?"; 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 _7d5=document.cookie.substring(idx+name.length+1);
var end=_7d5.indexOf(";");
if(end==-1){
end=_7d5.length;
}
_7d5=_7d5.substring(0,end);
_7d5=unescape(_7d5);
return _7d5;
};
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,_7dc,_7dd,_7de){
if(arguments.length==5){
_7de=_7dc;
_7dc=null;
_7dd=null;
}
var _7df=[],_7e0,_7e1="";
if(!_7de){
_7e0=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_7e0){
_7e0={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _7e0[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_7e0[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _7e0){
_7df.push(escape(prop)+"="+escape(_7e0[prop]));
}
_7e1=_7df.join("&");
}
dojo.io.cookie.setCookie(name,_7e1,days,path,_7dc,_7dd);
};
dojo.io.cookie.getObjectCookie=function(name){
var _7e4=null,_7e5=dojo.io.cookie.getCookie(name);
if(_7e5){
_7e4={};
var _7e6=_7e5.split("&");
for(var i=0;i<_7e6.length;i++){
var pair=_7e6[i].split("=");
var _7e9=pair[1];
if(isNaN(_7e9)){
_7e9=unescape(pair[1]);
}
_7e4[unescape(pair[0])]=_7e9;
}
}
return _7e4;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _7ea=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_7ea=="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.io.BrowserIO");
if(!dj_undef("window")){
dojo.io.checkChildrenForFile=function(node){
var _7ec=false;
var _7ed=node.getElementsByTagName("input");
dojo.lang.forEach(_7ed,function(_7ee){
if(_7ec){
return;
}
if(_7ee.getAttribute("type")=="file"){
_7ec=true;
}
});
return _7ec;
};
dojo.io.formHasFile=function(_7ef){
return dojo.io.checkChildrenForFile(_7ef);
};
dojo.io.updateNode=function(node,_7f1){
node=dojo.byId(node);
var args=_7f1;
if(dojo.lang.isString(_7f1)){
args={url:_7f1};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
dojo.dom.destroyNode(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(["file","submit","image","reset","button"],type);
};
dojo.io.encodeForm=function(_7f8,_7f9,_7fa){
if((!_7f8)||(!_7f8.tagName)||(!_7f8.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_7fa){
_7fa=dojo.io.formFilter;
}
var enc=/utf/i.test(_7f9||"")?encodeURIComponent:dojo.string.encodeAscii;
var _7fc=[];
for(var i=0;i<_7f8.elements.length;i++){
var elm=_7f8.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_7fa(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){
_7fc.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_7fc.push(name+"="+enc(elm.value));
}
}else{
_7fc.push(name+"="+enc(elm.value));
}
}
}
var _802=_7f8.getElementsByTagName("input");
for(var i=0;i<_802.length;i++){
var _803=_802[i];
if(_803.type.toLowerCase()=="image"&&_803.form==_7f8&&_7fa(_803)){
var name=enc(_803.name);
_7fc.push(name+"="+enc(_803.value));
_7fc.push(name+".x=0");
_7fc.push(name+".y=0");
}
}
return _7fc.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(["submit","button"],node.type.toLowerCase())){
this.connect(node,"onclick","click");
}
}
var _809=form.getElementsByTagName("input");
for(var i=0;i<_809.length;i++){
var _80a=_809[i];
if(_80a.type.toLowerCase()=="image"&&_80a.form==form){
this.connect(_80a,"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 _811=false;
if(node.disabled||!node.name){
_811=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_811=node==this.clickedButton;
}else{
_811=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _811;
},connect:function(_812,_813,_814){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_812,_813,this,_814);
}else{
var fcn=dojo.lang.hitch(this,_814);
_812[_813]=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 _817=this;
var _818={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_81a,_81b){
return url+"|"+_81a+"|"+_81b.toLowerCase();
}
function addToCache(url,_81d,_81e,http){
_818[getCacheKey(url,_81d,_81e)]=http;
}
function getFromCache(url,_821,_822){
return _818[getCacheKey(url,_821,_822)];
}
this.clearCache=function(){
_818={};
};
function doLoad(_823,http,url,_826,_827){
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(_823.method.toLowerCase()=="head"){
var _829=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _829;
};
var _82a=_829.split(/[\r\n]+/g);
for(var i=0;i<_82a.length;i++){
var pair=_82a[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_823.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_823.mimetype=="text/json"||_823.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_823.mimetype=="application/xml")||(_823.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(_827){
addToCache(url,_826,_823.method,http);
}
_823[(typeof _823.load=="function")?"load":"handle"]("load",ret,http,_823);
}else{
var _82d=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_823[(typeof _823.error=="function")?"error":"handle"]("error",_82d,http,_823);
}
}
function setHeaders(http,_82f){
if(_82f["headers"]){
for(var _830 in _82f["headers"]){
if(_830.toLowerCase()=="content-type"&&!_82f["contentType"]){
_82f["contentType"]=_82f["headers"][_830];
}else{
http.setRequestHeader(_830,_82f["headers"][_830]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
if(!dojo.hostenv._blockAsync&&!_817._blockAsync){
for(var x=this.inFlight.length-1;x>=0;x--){
try{
var tif=this.inFlight[x];
if(!tif||tif.http._aborted||!tif.http.readyState){
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);
}
}
}
}
catch(e){
try{
var _834=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_834,tif.http,tif.req);
}
catch(e2){
dojo.debug("XMLHttpTransport error callback failed: "+e2);
}
}
}
}
clearTimeout(this.inFlightTimer);
if(this.inFlight.length==0){
this.inFlightTimer=null;
return;
}
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
};
var _835=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_836){
return _835&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_836["mimetype"].toLowerCase()||""))&&!(_836["formNode"]&&dojo.io.formHasFile(_836["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_837){
if(!_837["url"]){
if(!_837["formNode"]&&(_837["backButton"]||_837["back"]||_837["changeUrl"]||_837["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(_837);
return true;
}
}
var url=_837.url;
var _839="";
if(_837["formNode"]){
var ta=_837.formNode.getAttribute("action");
if((ta)&&(!_837["url"])){
url=ta;
}
var tp=_837.formNode.getAttribute("method");
if((tp)&&(!_837["method"])){
_837.method=tp;
}
_839+=dojo.io.encodeForm(_837.formNode,_837.encoding,_837["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_837["file"]){
_837.method="post";
}
if(!_837["method"]){
_837.method="get";
}
if(_837.method.toLowerCase()=="get"){
_837.multipart=false;
}else{
if(_837["file"]){
_837.multipart=true;
}else{
if(!_837["multipart"]){
_837.multipart=false;
}
}
}
if(_837["backButton"]||_837["back"]||_837["changeUrl"]){
dojo.undo.browser.addToHistory(_837);
}
var _83c=_837["content"]||{};
if(_837.sendTransport){
_83c["dojo.transport"]="xmlhttp";
}
do{
if(_837.postContent){
_839=_837.postContent;
break;
}
if(_83c){
_839+=dojo.io.argsFromMap(_83c,_837.encoding);
}
if(_837.method.toLowerCase()=="get"||!_837.multipart){
break;
}
var t=[];
if(_839.length){
var q=_839.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(_837.file){
if(dojo.lang.isArray(_837.file)){
for(var i=0;i<_837.file.length;++i){
var o=_837.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=_837.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+"--","");
_839=t.join("\r\n");
}
}while(false);
var _842=_837["sync"]?false:true;
var _843=_837["preventCache"]||(this.preventCache==true&&_837["preventCache"]!=false);
var _844=_837["useCache"]==true||(this.useCache==true&&_837["useCache"]!=false);
if(!_843&&_844){
var _845=getFromCache(url,_839,_837.method);
if(_845){
doLoad(_837,_845,url,_839,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_837);
var _847=false;
if(_842){
var _848=this.inFlight.push({"req":_837,"http":http,"url":url,"query":_839,"useCache":_844,"startTime":_837.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_817._blockAsync=true;
}
if(_837.method.toLowerCase()=="post"){
if(!_837.user){
http.open("POST",url,_842);
}else{
http.open("POST",url,_842,_837.user,_837.password);
}
setHeaders(http,_837);
http.setRequestHeader("Content-Type",_837.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_837.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_839);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_837,{status:404},url,_839,_844);
}
}else{
var _849=url;
if(_839!=""){
_849+=(_849.indexOf("?")>-1?"&":"?")+_839;
}
if(_843){
_849+=(dojo.string.endsWithAny(_849,"?","&")?"":(_849.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_837.user){
http.open(_837.method.toUpperCase(),_849,_842);
}else{
http.open(_837.method.toUpperCase(),_849,_842,_837.user,_837.password);
}
setHeaders(http,_837);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_837,{status:404},url,_839,_844);
}
}
if(!_842){
doLoad(_837,http,url,_839,_844);
_817._blockAsync=false;
}
_837.abort=function(){
try{
http._aborted=true;
}
catch(e){
}
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
}
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_84a){
this.pairs=[];
this.returnWrappers=_84a||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_84c,wrap,_84e,_84f){
var type=(_84f)?"unshift":"push";
this.pairs[type]([name,_84c,wrap,_84e]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.provide("dojo.json");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_857,wrap,_859){
dojo.json.jsonRegistry.register(name,_857,wrap,_859);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _85c=typeof (o);
if(_85c=="undefined"){
return "undefined";
}else{
if((_85c=="number")||(_85c=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_85c=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _85e;
if(typeof (o.__json__)=="function"){
_85e=o.__json__();
if(o!==_85e){
return me(_85e);
}
}
if(typeof (o.json)=="function"){
_85e=o.json();
if(o!==_85e){
return me(_85e);
}
}
if(_85c!="function"&&typeof (o.length)=="number"){
var res=[];
for(var i=0;i<o.length;i++){
var val=me(o[i]);
if(typeof (val)!="string"){
val="undefined";
}
res.push(val);
}
return "["+res.join(",")+"]";
}
try{
window.o=o;
_85e=dojo.json.jsonRegistry.match(o);
return me(_85e);
}
catch(e){
}
if(_85c=="function"){
return null;
}
res=[];
for(var k in o){
var _863;
if(typeof (k)=="number"){
_863="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_863=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_863+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.lang.type");
dojo.lang.whatAmI=function(_864){
dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");
return dojo.lang.getType(_864);
};
dojo.lang.whatAmI.custom={};
dojo.lang.getType=function(_865){
try{
if(dojo.lang.isArray(_865)){
return "array";
}
if(dojo.lang.isFunction(_865)){
return "function";
}
if(dojo.lang.isString(_865)){
return "string";
}
if(dojo.lang.isNumber(_865)){
return "number";
}
if(dojo.lang.isBoolean(_865)){
return "boolean";
}
if(dojo.lang.isAlien(_865)){
return "alien";
}
if(dojo.lang.isUndefined(_865)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](_865)){
return name;
}
}
if(dojo.lang.isObject(_865)){
return "object";
}
}
catch(e){
}
return "unknown";
};
dojo.lang.isNumeric=function(_867){
return (!isNaN(_867)&&isFinite(_867)&&(_867!=null)&&!dojo.lang.isBoolean(_867)&&!dojo.lang.isArray(_867)&&!/^\s*$/.test(_867));
};
dojo.lang.isBuiltIn=function(_868){
return (dojo.lang.isArray(_868)||dojo.lang.isFunction(_868)||dojo.lang.isString(_868)||dojo.lang.isNumber(_868)||dojo.lang.isBoolean(_868)||(_868==null)||(_868 instanceof Error)||(typeof _868=="error"));
};
dojo.lang.isPureObject=function(_869){
return ((_869!=null)&&dojo.lang.isObject(_869)&&_869.constructor==Object);
};
dojo.lang.isOfType=function(_86a,type,_86c){
var _86d=false;
if(_86c){
_86d=_86c["optional"];
}
if(_86d&&((_86a===null)||dojo.lang.isUndefined(_86a))){
return true;
}
if(dojo.lang.isArray(type)){
var _86e=type;
for(var i in _86e){
var _870=_86e[i];
if(dojo.lang.isOfType(_86a,_870)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_86a);
case Function:
case "function":
return dojo.lang.isFunction(_86a);
case String:
case "string":
return dojo.lang.isString(_86a);
case Number:
case "number":
return dojo.lang.isNumber(_86a);
case "numeric":
return dojo.lang.isNumeric(_86a);
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_86a);
case Object:
case "object":
return dojo.lang.isObject(_86a);
case "pureobject":
return dojo.lang.isPureObject(_86a);
case "builtin":
return dojo.lang.isBuiltIn(_86a);
case "alien":
return dojo.lang.isAlien(_86a);
case "undefined":
return dojo.lang.isUndefined(_86a);
case null:
case "null":
return (_86a===null);
case "optional":
dojo.deprecated("dojo.lang.isOfType(value, [type, \"optional\"])","use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");
return ((_86a===null)||dojo.lang.isUndefined(_86a));
default:
if(dojo.lang.isFunction(type)){
return (_86a instanceof type);
}else{
dojo.raise("dojo.lang.isOfType() was passed an invalid type");
}
}
}
dojo.raise("If we get here, it means a bug was introduced above.");
};
dojo.lang.getObject=function(str){
var _872=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_872[i++]];
}while(i<_872.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _876=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_876[i++]];
}while(i<_876.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.provide("dojo.lang.assert");
dojo.lang.assert=function(_879,_87a){
if(!_879){
var _87b="An assert statement failed.\n"+"The method dojo.lang.assert() was called with a 'false' value.\n";
if(_87a){
_87b+="Here's the assert message:\n"+_87a+"\n";
}
throw new Error(_87b);
}
};
dojo.lang.assertType=function(_87c,type,_87e){
if(dojo.lang.isString(_87e)){
dojo.deprecated("dojo.lang.assertType(value, type, \"message\")","use dojo.lang.assertType(value, type) instead","0.5");
}
if(!dojo.lang.isOfType(_87c,type,_87e)){
if(!dojo.lang.assertType._errorMessage){
dojo.lang.assertType._errorMessage="Type mismatch: dojo.lang.assertType() failed.";
}
dojo.lang.assert(false,dojo.lang.assertType._errorMessage);
}
};
dojo.lang.assertValidKeywords=function(_87f,_880,_881){
var key;
if(!_881){
if(!dojo.lang.assertValidKeywords._errorMessage){
dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:";
}
_881=dojo.lang.assertValidKeywords._errorMessage;
}
if(dojo.lang.isArray(_880)){
for(key in _87f){
if(!dojo.lang.inArray(_880,key)){
dojo.lang.assert(false,_881+" "+key);
}
}
}else{
for(key in _87f){
if(!(key in _880)){
dojo.lang.assert(false,_881+" "+key);
}
}
}
};
dojo.provide("dojo.lang.repr");
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(name,_884,wrap,_886){
dojo.lang.reprRegistry.register(name,_884,wrap,_886);
};
dojo.lang.repr=function(obj){
if(typeof (obj)=="undefined"){
return "undefined";
}else{
if(obj===null){
return "null";
}
}
try{
if(typeof (obj["__repr__"])=="function"){
return obj["__repr__"]();
}else{
if((typeof (obj["repr"])=="function")&&(obj.repr!=arguments.callee)){
return obj["repr"]();
}
}
return dojo.lang.reprRegistry.match(obj);
}
catch(e){
if(typeof (obj.NAME)=="string"&&(obj.toString==Function.prototype.toString||obj.toString==Object.prototype.toString)){
return obj.NAME;
}
}
if(typeof (obj)=="function"){
obj=(obj+"").replace(/^\s+/,"");
var idx=obj.indexOf("{");
if(idx!=-1){
obj=obj.substr(0,idx)+"{...}";
}
}
return obj+"";
};
dojo.lang.reprArrayLike=function(arr){
try{
var na=dojo.lang.map(arr,dojo.lang.repr);
return "["+na.join(", ")+"]";
}
catch(e){
}
};
(function(){
var m=dojo.lang;
m.registerRepr("arrayLike",m.isArrayLike,m.reprArrayLike);
m.registerRepr("string",m.isString,m.reprString);
m.registerRepr("numbers",m.isNumber,m.reprNumber);
m.registerRepr("boolean",m.isBoolean,m.reprNumber);
})();
dojo.provide("dojo.lang.*");
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_88d,_88e,_88f){
if(!_88f||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_88d,_88e);
}
},allow:function(name){
if(this.failed[name]){
return false;
}
if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,name))){
return false;
}
return ((name==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,name)));
},get:function(name){
return this.namespaces[name];
},require:function(name){
var ns=this.namespaces[name];
if((ns)&&(this.loaded[name])){
return ns;
}
if(!this.allow(name)){
return false;
}
if(this.loading[name]){
dojo.debug("dojo.namespace.require: re-entrant request to load namespace \""+name+"\" must fail.");
return false;
}
var req=dojo.require;
this.loading[name]=true;
try{
if(name=="dojo"){
req("dojo.namespaces.dojo");
}else{
if(!dojo.hostenv.moduleHasPrefix(name)){
dojo.registerModulePath(name,"../"+name);
}
req([name,"manifest"].join("."),false,true);
}
if(!this.namespaces[name]){
this.failed[name]=true;
}
}
finally{
this.loading[name]=false;
}
return this.namespaces[name];
}};
dojo.ns.Ns=function(name,_896,_897){
this.name=name;
this.module=_896;
this.resolver=_897;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_899,_89a){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _89b=this.resolver(name,_899);
if((_89b)&&(!this._loaded[_89b])&&(!this._failed[_89b])){
var req=dojo.require;
req(_89b,false,true);
if(dojo.hostenv.findModule(_89b,false)){
this._loaded[_89b]=true;
}else{
if(!_89a){
dojo.raise("dojo.ns.Ns.resolve: module '"+_89b+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_89b]=true;
}
}
return Boolean(this._loaded[_89b]);
};
dojo.registerNamespace=function(name,_89e,_89f){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_8a1){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_8a1;
}
};
dojo.registerNamespaceManifest=function(_8a3,path,name,_8a6,_8a7){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_8a6,_8a7);
};
dojo.registerNamespace("dojo","dojo.widget");
dojo.provide("dojo.namespaces.dojo");
(function(){
var map={html:{"accordioncontainer":"dojo.widget.AccordionContainer","animatedpng":"dojo.widget.AnimatedPng","button":"dojo.widget.Button","chart":"dojo.widget.Chart","checkbox":"dojo.widget.Checkbox","clock":"dojo.widget.Clock","colorpalette":"dojo.widget.ColorPalette","combobox":"dojo.widget.ComboBox","combobutton":"dojo.widget.Button","contentpane":"dojo.widget.ContentPane","currencytextbox":"dojo.widget.CurrencyTextbox","datepicker":"dojo.widget.DatePicker","datetextbox":"dojo.widget.DateTextbox","debugconsole":"dojo.widget.DebugConsole","dialog":"dojo.widget.Dialog","dropdownbutton":"dojo.widget.Button","dropdowndatepicker":"dojo.widget.DropdownDatePicker","dropdowntimepicker":"dojo.widget.DropdownTimePicker","emaillisttextbox":"dojo.widget.InternetTextbox","emailtextbox":"dojo.widget.InternetTextbox","editor":"dojo.widget.Editor","editor2":"dojo.widget.Editor2","filteringtable":"dojo.widget.FilteringTable","fisheyelist":"dojo.widget.FisheyeList","fisheyelistitem":"dojo.widget.FisheyeList","floatingpane":"dojo.widget.FloatingPane","modalfloatingpane":"dojo.widget.FloatingPane","form":"dojo.widget.Form","googlemap":"dojo.widget.GoogleMap","inlineeditbox":"dojo.widget.InlineEditBox","integerspinner":"dojo.widget.Spinner","integertextbox":"dojo.widget.IntegerTextbox","ipaddresstextbox":"dojo.widget.InternetTextbox","layoutcontainer":"dojo.widget.LayoutContainer","linkpane":"dojo.widget.LinkPane","popupmenu2":"dojo.widget.Menu2","menuitem2":"dojo.widget.Menu2","menuseparator2":"dojo.widget.Menu2","menubar2":"dojo.widget.Menu2","menubaritem2":"dojo.widget.Menu2","pagecontainer":"dojo.widget.PageContainer","pagecontroller":"dojo.widget.PageContainer","popupcontainer":"dojo.widget.PopupContainer","progressbar":"dojo.widget.ProgressBar","radiogroup":"dojo.widget.RadioGroup","realnumbertextbox":"dojo.widget.RealNumberTextbox","regexptextbox":"dojo.widget.RegexpTextbox","repeater":"dojo.widget.Repeater","resizabletextarea":"dojo.widget.ResizableTextarea","richtext":"dojo.widget.RichText","select":"dojo.widget.Select","show":"dojo.widget.Show","showaction":"dojo.widget.ShowAction","showslide":"dojo.widget.ShowSlide","slidervertical":"dojo.widget.Slider","sliderhorizontal":"dojo.widget.Slider","slider":"dojo.widget.Slider","slideshow":"dojo.widget.SlideShow","sortabletable":"dojo.widget.SortableTable","splitcontainer":"dojo.widget.SplitContainer","tabcontainer":"dojo.widget.TabContainer","tabcontroller":"dojo.widget.TabContainer","taskbar":"dojo.widget.TaskBar","textbox":"dojo.widget.Textbox","timepicker":"dojo.widget.TimePicker","timetextbox":"dojo.widget.DateTextbox","titlepane":"dojo.widget.TitlePane","toaster":"dojo.widget.Toaster","toggler":"dojo.widget.Toggler","toolbar":"dojo.widget.Toolbar","toolbarcontainer":"dojo.widget.Toolbar","toolbaritem":"dojo.widget.Toolbar","toolbarbuttongroup":"dojo.widget.Toolbar","toolbarbutton":"dojo.widget.Toolbar","toolbardialog":"dojo.widget.Toolbar","toolbarmenu":"dojo.widget.Toolbar","toolbarseparator":"dojo.widget.Toolbar","toolbarspace":"dojo.widget.Toolbar","toolbarselect":"dojo.widget.Toolbar","toolbarcolordialog":"dojo.widget.Toolbar","tooltip":"dojo.widget.Tooltip","tree":"dojo.widget.Tree","treebasiccontroller":"dojo.widget.TreeBasicController","treecontextmenu":"dojo.widget.TreeContextMenu","treedisablewrapextension":"dojo.widget.TreeDisableWrapExtension","treedociconextension":"dojo.widget.TreeDocIconExtension","treeeditor":"dojo.widget.TreeEditor","treeemphasizeonselect":"dojo.widget.TreeEmphasizeOnSelect","treeexpandtonodeonselect":"dojo.widget.TreeExpandToNodeOnSelect","treelinkextension":"dojo.widget.TreeLinkExtension","treeloadingcontroller":"dojo.widget.TreeLoadingController","treemenuitem":"dojo.widget.TreeContextMenu","treenode":"dojo.widget.TreeNode","treerpccontroller":"dojo.widget.TreeRPCController","treeselector":"dojo.widget.TreeSelector","treetoggleonselect":"dojo.widget.TreeToggleOnSelect","treev3":"dojo.widget.TreeV3","treebasiccontrollerv3":"dojo.widget.TreeBasicControllerV3","treecontextmenuv3":"dojo.widget.TreeContextMenuV3","treedndcontrollerv3":"dojo.widget.TreeDndControllerV3","treeloadingcontrollerv3":"dojo.widget.TreeLoadingControllerV3","treemenuitemv3":"dojo.widget.TreeContextMenuV3","treerpccontrollerv3":"dojo.widget.TreeRpcControllerV3","treeselectorv3":"dojo.widget.TreeSelectorV3","urltextbox":"dojo.widget.InternetTextbox","usphonenumbertextbox":"dojo.widget.UsTextbox","ussocialsecuritynumbertextbox":"dojo.widget.UsTextbox","usstatetextbox":"dojo.widget.UsTextbox","usziptextbox":"dojo.widget.UsTextbox","validationtextbox":"dojo.widget.ValidationTextbox","treeloadingcontroller":"dojo.widget.TreeLoadingController","wizardcontainer":"dojo.widget.Wizard","wizardpane":"dojo.widget.Wizard","yahoomap":"dojo.widget.YahooMap"},svg:{"chart":"dojo.widget.svg.Chart"},vml:{"chart":"dojo.widget.vml.Chart"}};
dojo.addDojoNamespaceMapping=function(_8a9,_8aa){
map[_8a9]=_8aa;
};
function dojoNamespaceResolver(name,_8ac){
if(!_8ac){
_8ac="html";
}
if(!map[_8ac]){
return null;
}
return map[_8ac][name];
}
dojo.registerNamespaceResolver("dojo",dojoNamespaceResolver);
})();
dojo.provide("dojo.storage");
dojo.storage=new function(){
};
dojo.declare("dojo.storage",null,{SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",namespace:"default",onHideSettingsUI:null,initialize:function(){
dojo.unimplemented("dojo.storage.initialize");
},isAvailable:function(){
dojo.unimplemented("dojo.storage.isAvailable");
},put:function(key,_8ae,_8af){
dojo.unimplemented("dojo.storage.put");
},get:function(key){
dojo.unimplemented("dojo.storage.get");
},hasKey:function(key){
return (this.get(key)!=null);
},getKeys:function(){
dojo.unimplemented("dojo.storage.getKeys");
},clear:function(){
dojo.unimplemented("dojo.storage.clear");
},remove:function(key){
dojo.unimplemented("dojo.storage.remove");
},isPermanent:function(){
dojo.unimplemented("dojo.storage.isPermanent");
},getMaximumSize:function(){
dojo.unimplemented("dojo.storage.getMaximumSize");
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.unimplemented("dojo.storage.showSettingsUI");
},hideSettingsUI:function(){
dojo.unimplemented("dojo.storage.hideSettingsUI");
},getType:function(){
dojo.unimplemented("dojo.storage.getType");
},isValidKey:function(_8b3){
if((_8b3==null)||(typeof _8b3=="undefined")){
return false;
}
return /^[0-9A-Za-z_]*$/.test(_8b3);
}});
dojo.storage.manager=new function(){
this.currentProvider=null;
this.available=false;
this._initialized=false;
this._providers=[];
this.namespace="default";
this.initialize=function(){
this.autodetect();
};
this.register=function(name,_8b5){
this._providers[this._providers.length]=_8b5;
this._providers[name]=_8b5;
};
this.setProvider=function(_8b6){
};
this.autodetect=function(){
if(this._initialized==true){
return;
}
var _8b7=null;
for(var i=0;i<this._providers.length;i++){
_8b7=this._providers[i];
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==false&&_8b7.getType()==djConfig["forceStorageProvider"]){
_8b7.isAvailable();
break;
}else{
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==true&&_8b7.isAvailable()){
break;
}
}
}
if(_8b7==null){
this._initialized=true;
this.available=false;
this.currentProvider=null;
dojo.raise("No storage provider found for this platform");
}
this.currentProvider=_8b7;
for(var i in _8b7){
dojo.storage[i]=_8b7[i];
}
dojo.storage.manager=this;
dojo.storage.initialize();
this._initialized=true;
this.available=true;
};
this.isAvailable=function(){
return this.available;
};
this.isInitialized=function(){
if(this.currentProvider.getType()=="dojo.storage.browser.FlashStorageProvider"&&dojo.flash.ready==false){
return false;
}else{
return this._initialized;
}
};
this.supportsProvider=function(_8b9){
try{
var _8ba=eval("new "+_8b9+"()");
var _8bb=_8ba.isAvailable();
if(_8bb==null||typeof _8bb=="undefined"){
return false;
}
return _8bb;
}
catch(exception){
return false;
}
};
this.getProvider=function(){
return this.currentProvider;
};
this.loaded=function(){
};
};
dojo.provide("dojo.string.Builder");
dojo.string.Builder=function(str){
this.arrConcat=(dojo.render.html.capable&&dojo.render.html["ie"]);
var a=[];
var b="";
var _8bf=this.length=b.length;
if(this.arrConcat){
if(b.length>0){
a.push(b);
}
b="";
}
this.toString=this.valueOf=function(){
return (this.arrConcat)?a.join(""):b;
};
this.append=function(){
for(var x=0;x<arguments.length;x++){
var s=arguments[x];
if(dojo.lang.isArrayLike(s)){
this.append.apply(this,s);
}else{
if(this.arrConcat){
a.push(s);
}else{
b+=s;
}
_8bf+=s.length;
this.length=_8bf;
}
}
return this;
};
this.clear=function(){
a=[];
b="";
_8bf=this.length=0;
return this;
};
this.remove=function(f,l){
var s="";
if(this.arrConcat){
b=a.join("");
}
a=[];
if(f>0){
s=b.substring(0,(f-1));
}
b=s+b.substring(f+l);
_8bf=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.replace=function(o,n){
if(this.arrConcat){
b=a.join("");
}
a=[];
b=b.replace(o,n);
_8bf=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.insert=function(idx,s){
if(this.arrConcat){
b=a.join("");
}
a=[];
if(idx==0){
b=s+b;
}else{
var t=b.split("");
t.splice(idx,0,s);
b=t.join("");
}
_8bf=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.append.apply(this,arguments);
};
dojo.provide("dojo.string.*");
dojo.provide("dojo.uri.*");
dojo.provide("dojo.flash");
dojo.flash=function(){
};
dojo.flash={flash6_version:null,flash8_version:null,ready:false,_visible:true,_loadedListeners:new Array(),_installingListeners:new Array(),setSwf:function(_8ca){
if(_8ca==null||dojo.lang.isUndefined(_8ca)){
return;
}
if(_8ca.flash6!=null&&!dojo.lang.isUndefined(_8ca.flash6)){
this.flash6_version=_8ca.flash6;
}
if(_8ca.flash8!=null&&!dojo.lang.isUndefined(_8ca.flash8)){
this.flash8_version=_8ca.flash8;
}
if(!dojo.lang.isUndefined(_8ca.visible)){
this._visible=_8ca.visible;
}
this._initialize();
},useFlash6:function(){
if(this.flash6_version==null){
return false;
}else{
if(this.flash6_version!=null&&dojo.flash.info.commVersion==6){
return true;
}else{
return false;
}
}
},useFlash8:function(){
if(this.flash8_version==null){
return false;
}else{
if(this.flash8_version!=null&&dojo.flash.info.commVersion==8){
return true;
}else{
return false;
}
}
},addLoadedListener:function(_8cb){
this._loadedListeners.push(_8cb);
},addInstallingListener:function(_8cc){
this._installingListeners.push(_8cc);
},loaded:function(){
dojo.flash.ready=true;
if(dojo.flash._loadedListeners.length>0){
for(var i=0;i<dojo.flash._loadedListeners.length;i++){
dojo.flash._loadedListeners[i].call(null);
}
}
},installing:function(){
if(dojo.flash._installingListeners.length>0){
for(var i=0;i<dojo.flash._installingListeners.length;i++){
dojo.flash._installingListeners[i].call(null);
}
}
},_initialize:function(){
var _8cf=new dojo.flash.Install();
dojo.flash.installer=_8cf;
if(_8cf.needed()==true){
_8cf.install();
}else{
dojo.flash.obj=new dojo.flash.Embed(this._visible);
dojo.flash.obj.write(dojo.flash.info.commVersion);
dojo.flash.comm=new dojo.flash.Communicator();
}
}};
dojo.flash.Info=function(){
if(dojo.render.html.ie){
document.writeln("<script language=\"VBScript\" type=\"text/vbscript\">");
document.writeln("Function VBGetSwfVer(i)");
document.writeln("  on error resume next");
document.writeln("  Dim swControl, swVersion");
document.writeln("  swVersion = 0");
document.writeln("  set swControl = CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" + CStr(i))");
document.writeln("  if (IsObject(swControl)) then");
document.writeln("    swVersion = swControl.GetVariable(\"$version\")");
document.writeln("  end if");
document.writeln("  VBGetSwfVer = swVersion");
document.writeln("End Function");
document.writeln("</script>");
}
this._detectVersion();
this._detectCommunicationVersion();
};
dojo.flash.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:false,commVersion:6,installing:false,isVersionOrAbove:function(_8d0,_8d1,_8d2){
_8d2=parseFloat("."+_8d2);
if(this.versionMajor>=_8d0&&this.versionMinor>=_8d1&&this.versionRevision>=_8d2){
return true;
}else{
return false;
}
},_detectVersion:function(){
var _8d3;
for(var _8d4=25;_8d4>0;_8d4--){
if(dojo.render.html.ie){
_8d3=VBGetSwfVer(_8d4);
}else{
_8d3=this._JSFlashInfo(_8d4);
}
if(_8d3==-1){
this.capable=false;
return;
}else{
if(_8d3!=0){
var _8d5;
if(dojo.render.html.ie){
var _8d6=_8d3.split(" ");
var _8d7=_8d6[1];
_8d5=_8d7.split(",");
}else{
_8d5=_8d3.split(".");
}
this.versionMajor=_8d5[0];
this.versionMinor=_8d5[1];
this.versionRevision=_8d5[2];
var _8d8=this.versionMajor+"."+this.versionRevision;
this.version=parseFloat(_8d8);
this.capable=true;
break;
}
}
}
},_JSFlashInfo:function(_8d9){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _8da=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _8db=navigator.plugins["Shockwave Flash"+_8da].description;
var _8dc=_8db.split(" ");
var _8dd=_8dc[2].split(".");
var _8de=_8dd[0];
var _8df=_8dd[1];
if(_8dc[3]!=""){
var _8e0=_8dc[3].split("r");
}else{
var _8e0=_8dc[4].split("r");
}
var _8e1=_8e0[1]>0?_8e0[1]:0;
var _8e2=_8de+"."+_8df+"."+_8e1;
return _8e2;
}
}
return -1;
},_detectCommunicationVersion:function(){
if(this.capable==false){
this.commVersion=null;
return;
}
if(typeof djConfig["forceFlashComm"]!="undefined"&&typeof djConfig["forceFlashComm"]!=null){
this.commVersion=djConfig["forceFlashComm"];
return;
}
if(dojo.render.html.safari==true||dojo.render.html.opera==true){
this.commVersion=8;
}else{
this.commVersion=6;
}
}};
dojo.flash.Embed=function(_8e3){
this._visible=_8e3;
};
dojo.flash.Embed.prototype={width:215,height:138,id:"flashObject",_visible:true,protocol:function(){
switch(window.location.protocol){
case "https:":
return "https";
break;
default:
return "http";
break;
}
},write:function(_8e4,_8e5){
if(dojo.lang.isUndefined(_8e5)){
_8e5=false;
}
var _8e6=new dojo.string.Builder();
_8e6.append("width: "+this.width+"px; ");
_8e6.append("height: "+this.height+"px; ");
if(this._visible==false){
_8e6.append("position: absolute; ");
_8e6.append("z-index: 10000; ");
_8e6.append("top: -1000px; ");
_8e6.append("left: -1000px; ");
}
_8e6=_8e6.toString();
var _8e7;
var _8e8;
if(_8e4==6){
_8e8=dojo.flash.flash6_version;
var _8e9=djConfig.baseRelativePath;
_8e8=_8e8+"?baseRelativePath="+escape(_8e9);
_8e7="<embed id=\""+this.id+"\" src=\""+_8e8+"\" "+"    quality=\"high\" bgcolor=\"#ffffff\" "+"    width=\""+this.width+"\" height=\""+this.height+"\" "+"    name=\""+this.id+"\" "+"    align=\"middle\" allowScriptAccess=\"sameDomain\" "+"    type=\"application/x-shockwave-flash\" swLiveConnect=\"true\" "+"    pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\">";
}else{
_8e8=dojo.flash.flash8_version;
var _8ea=_8e8;
var _8eb=_8e8;
var _8e9=djConfig.baseRelativePath;
if(_8e5){
var _8ec=escape(window.location);
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _8ed=escape(document.title);
_8ea+="?MMredirectURL="+_8ec+"&MMplayerType=ActiveX"+"&MMdoctitle="+_8ed+"&baseRelativePath="+escape(_8e9);
_8eb+="?MMredirectURL="+_8ec+"&MMplayerType=PlugIn"+"&baseRelativePath="+escape(_8e9);
}
if(_8eb.indexOf("?")==-1){
_8eb+="?baseRelativePath="+escape(_8e9)+"' ";
}
_8e7="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" "+"codebase=\""+this.protocol()+"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/"+"swflash.cab#version=8,0,0,0\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"align=\"middle\"> "+"<param name=\"allowScriptAccess\" value=\"sameDomain\" /> "+"<param name=\"movie\" value=\""+_8ea+"\" /> "+"<param name=\"quality\" value=\"high\" /> "+"<param name=\"bgcolor\" value=\"#ffffff\" /> "+"<embed src=\""+_8eb+"' "+"quality=\"high\" "+"bgcolor=\"#ffffff\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"name=\""+this.id+"\" "+"swLiveConnect=\"true\" "+"align=\"middle\" "+"allowScriptAccess=\"sameDomain\" "+"type=\"application/x-shockwave-flash\" "+"pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\" />"+"</object>";
}
_8e7="<div id=\""+this.id+"Container\" style=\""+_8e6+"\"> "+_8e7+"</div>";
document.writeln(_8e7);
},get:function(){
return document.getElementById(this.id);
},setVisible:function(_8ee){
var _8ef=dojo.byId(this.id+"Container");
if(_8ee==true){
_8ef.style.visibility="visible";
}else{
_8ef.style.position="absolute";
_8ef.style.x="-1000px";
_8ef.style.y="-1000px";
_8ef.style.visibility="hidden";
}
},center:function(){
var _8f0=this.width;
var _8f1=this.height;
var _8f2=dojo.html.getScroll().offset;
var _8f3=dojo.html.getViewport();
var x=_8f2.x+(_8f3.width-_8f0)/2;
var y=_8f2.y+(_8f3.height-_8f1)/2;
var _8f6=dojo.byId(this.id+"Container");
_8f6.style.top=y+"px";
_8f6.style.left=x+"px";
}};
dojo.flash.Communicator=function(){
if(dojo.flash.useFlash6()){
this._writeFlash6();
}else{
if(dojo.flash.useFlash8()){
this._writeFlash8();
}
}
};
dojo.flash.Communicator.prototype={_writeFlash6:function(){
var id=dojo.flash.obj.id;
document.writeln("<script language=\"JavaScript\">");
document.writeln("  function "+id+"_DoFSCommand(command, args){ ");
document.writeln("    dojo.flash.comm._handleFSCommand(command, args); ");
document.writeln("}");
document.writeln("</script>");
if(dojo.render.html.ie){
document.writeln("<SCRIPT LANGUAGE=VBScript> ");
document.writeln("on error resume next ");
document.writeln("Sub "+id+"_FSCommand(ByVal command, ByVal args)");
document.writeln(" call "+id+"_DoFSCommand(command, args)");
document.writeln("end sub");
document.writeln("</SCRIPT> ");
}
},_writeFlash8:function(){
},_handleFSCommand:function(_8f8,args){
if(_8f8!=null&&!dojo.lang.isUndefined(_8f8)&&/^FSCommand:(.*)/.test(_8f8)==true){
_8f8=_8f8.match(/^FSCommand:(.*)/)[1];
}
if(_8f8=="addCallback"){
this._fscommandAddCallback(_8f8,args);
}else{
if(_8f8=="call"){
this._fscommandCall(_8f8,args);
}else{
if(_8f8=="fscommandReady"){
this._fscommandReady();
}
}
}
},_fscommandAddCallback:function(_8fa,args){
var _8fc=args;
var _8fd=function(){
return dojo.flash.comm._call(_8fc,arguments);
};
dojo.flash.comm[_8fc]=_8fd;
dojo.flash.obj.get().SetVariable("_succeeded",true);
},_fscommandCall:function(_8fe,args){
var _900=dojo.flash.obj.get();
var _901=args;
var _902=parseInt(_900.GetVariable("_numArgs"));
var _903=new Array();
for(var i=0;i<_902;i++){
var _905=_900.GetVariable("_"+i);
_903.push(_905);
}
var _906;
if(_901.indexOf(".")==-1){
_906=window[_901];
}else{
_906=eval(_901);
}
var _907=null;
if(!dojo.lang.isUndefined(_906)&&_906!=null){
_907=_906.apply(null,_903);
}
_900.SetVariable("_returnResult",_907);
},_fscommandReady:function(){
var _908=dojo.flash.obj.get();
_908.SetVariable("fscommandReady","true");
},_call:function(_909,args){
var _90b=dojo.flash.obj.get();
_90b.SetVariable("_functionName",_909);
_90b.SetVariable("_numArgs",args.length);
for(var i=0;i<args.length;i++){
var _90d=args[i];
_90d=_90d.replace(/\0/g,"\\0");
_90b.SetVariable("_"+i,_90d);
}
_90b.TCallLabel("/_flashRunner","execute");
var _90e=_90b.GetVariable("_returnResult");
_90e=_90e.replace(/\\0/g,"\x00");
return _90e;
},_addExternalInterfaceCallback:function(_90f){
var _910=function(){
var _911=new Array(arguments.length);
for(var i=0;i<arguments.length;i++){
_911[i]=arguments[i];
}
return dojo.flash.comm._execFlash(_90f,_911);
};
dojo.flash.comm[_90f]=_910;
},_encodeData:function(data){
var _914=/\&([^;]*)\;/g;
data=data.replace(_914,"&amp;$1;");
data=data.replace(/</g,"&lt;");
data=data.replace(/>/g,"&gt;");
data=data.replace("\\","&custom_backslash;&custom_backslash;");
data=data.replace(/\n/g,"\\n");
data=data.replace(/\r/g,"\\r");
data=data.replace(/\f/g,"\\f");
data=data.replace(/\0/g,"\\0");
data=data.replace(/\'/g,"\\'");
data=data.replace(/\"/g,"\\\"");
return data;
},_decodeData:function(data){
if(data==null||typeof data=="undefined"){
return data;
}
data=data.replace(/\&custom_lt\;/g,"<");
data=data.replace(/\&custom_gt\;/g,">");
data=eval("\""+data+"\"");
return data;
},_chunkArgumentData:function(_916,_917){
var _918=dojo.flash.obj.get();
var _919=Math.ceil(_916.length/1024);
for(var i=0;i<_919;i++){
var _91b=i*1024;
var _91c=i*1024+1024;
if(i==(_919-1)){
_91c=i*1024+_916.length;
}
var _91d=_916.substring(_91b,_91c);
_91d=this._encodeData(_91d);
_918.CallFunction("<invoke name=\"chunkArgumentData\" "+"returntype=\"javascript\">"+"<arguments>"+"<string>"+_91d+"</string>"+"<number>"+_917+"</number>"+"</arguments>"+"</invoke>");
}
},_chunkReturnData:function(){
var _91e=dojo.flash.obj.get();
var _91f=_91e.getReturnLength();
var _920=new Array();
for(var i=0;i<_91f;i++){
var _922=_91e.CallFunction("<invoke name=\"chunkReturnData\" "+"returntype=\"javascript\">"+"<arguments>"+"<number>"+i+"</number>"+"</arguments>"+"</invoke>");
if(_922=="\"\""||_922=="''"){
_922="";
}else{
_922=_922.substring(1,_922.length-1);
}
_920.push(_922);
}
var _923=_920.join("");
return _923;
},_execFlash:function(_924,_925){
var _926=dojo.flash.obj.get();
_926.startExec();
_926.setNumberArguments(_925.length);
for(var i=0;i<_925.length;i++){
this._chunkArgumentData(_925[i],i);
}
_926.exec(_924);
var _928=this._chunkReturnData();
_928=this._decodeData(_928);
_926.endExec();
return _928;
}};
dojo.flash.Install=function(){
};
dojo.flash.Install.prototype={needed:function(){
if(dojo.flash.info.capable==false){
return true;
}
if(dojo.render.os.mac==true&&!dojo.flash.info.isVersionOrAbove(8,0,0)){
return true;
}
if(!dojo.flash.info.isVersionOrAbove(6,0,0)){
return true;
}
return false;
},install:function(){
dojo.flash.info.installing=true;
dojo.flash.installing();
if(dojo.flash.info.capable==false){
var _929=new dojo.flash.Embed(false);
_929.write(8);
}else{
if(dojo.flash.info.isVersionOrAbove(6,0,65)){
var _929=new dojo.flash.Embed(false);
_929.write(8,true);
_929.setVisible(true);
_929.center();
}else{
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=+dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}
}
},_onInstallStatus:function(msg){
if(msg=="Download.Complete"){
dojo.flash._initialize();
}else{
if(msg=="Download.Cancelled"){
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}else{
if(msg=="Download.Failed"){
alert("There was an error downloading the Flash Player update. "+"Please try again later, or visit macromedia.com to download "+"the latest version of the Flash plugin.");
}
}
}
}};
dojo.flash.info=new dojo.flash.Info();
dojo.provide("dojo.storage.browser");
dojo.storage.browser.WhatWGStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.WhatWGStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.WhatWGStorageProvider,{namespace:"default",initialized:false,_domain:null,_available:null,_statusHandler:null,initialize:function(){
if(djConfig["disableWhatWGStorage"]==true){
return;
}
this._domain=location.hostname;
this.initialized=true;
dojo.storage.manager.loaded();
},isAvailable:function(){
try{
var _92b=globalStorage[location.hostname];
}
catch(e){
this._available=false;
return this._available;
}
this._available=true;
return this._available;
},put:function(key,_92d,_92e){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_92e;
if(dojo.lang.isString(_92d)){
_92d="string:"+_92d;
}else{
_92d=dojo.json.serialize(_92d);
}
window.addEventListener("storage",function(evt){
_92e.call(null,dojo.storage.SUCCESS,key);
},false);
try{
var _930=globalStorage[this._domain];
_930.setItem(key,_92d);
}
catch(e){
this._statusHandler.call(null,dojo.storage.FAILED,key,e.toString());
}
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _932=globalStorage[this._domain];
var _933=_932.getItem(key);
if(_933==null){
return null;
}
_933=_933.value;
if(!dojo.lang.isUndefined(_933)&&_933!=null&&/^string:/.test(_933)){
_933=_933.substring("string:".length);
}else{
_933=dojo.json.evalJson(_933);
}
return _933;
},getKeys:function(){
var _934=globalStorage[this._domain];
var _935=new Array();
for(i=0;i<_934.length;i++){
_935[i]=_934.key(i);
}
return _935;
},clear:function(){
var _936=globalStorage[this._domain];
var keys=new Array();
for(var i=0;i<_936.length;i++){
keys[keys.length]=_936.key(i);
}
for(var i=0;i<keys.length;i++){
_936.removeItem(keys[i]);
}
},remove:function(key){
var _93a=globalStorage[this._domain];
_93a.removeItem(key);
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},hideSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},getType:function(){
return "dojo.storage.browser.WhatWGStorageProvider";
}});
dojo.storage.browser.FlashStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.FlashStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.FlashStorageProvider,{namespace:"default",initialized:false,_available:null,_statusHandler:null,initialize:function(){
if(djConfig["disableFlashStorage"]==true){
return;
}
var _93b=function(){
dojo.storage._flashLoaded();
};
dojo.flash.addLoadedListener(_93b);
var _93c=dojo.uri.dojoUri("Storage_version6.swf").toString();
var _93d=dojo.uri.dojoUri("Storage_version8.swf").toString();
dojo.flash.setSwf({flash6:_93c,flash8:_93d,visible:false});
},isAvailable:function(){
if(djConfig["disableFlashStorage"]==true){
this._available=false;
}else{
this._available=true;
}
return this._available;
},put:function(key,_93f,_940){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_940;
if(dojo.lang.isString(_93f)){
_93f="string:"+_93f;
}else{
_93f=dojo.json.serialize(_93f);
}
dojo.flash.comm.put(key,_93f,this.namespace);
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _942=dojo.flash.comm.get(key,this.namespace);
if(_942==""){
return null;
}
if(!dojo.lang.isUndefined(_942)&&_942!=null&&/^string:/.test(_942)){
_942=_942.substring("string:".length);
}else{
_942=dojo.json.evalJson(_942);
}
return _942;
},getKeys:function(){
var _943=dojo.flash.comm.getKeys(this.namespace);
if(_943==""){
return [];
}
return _943.split(",");
},clear:function(){
dojo.flash.comm.clear(this.namespace);
},remove:function(key){
dojo.unimplemented("dojo.storage.browser.FlashStorageProvider.remove");
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return true;
},showSettingsUI:function(){
dojo.flash.comm.showSettings();
dojo.flash.obj.setVisible(true);
dojo.flash.obj.center();
},hideSettingsUI:function(){
dojo.flash.obj.setVisible(false);
if(dojo.storage.onHideSettingsUI!=null&&!dojo.lang.isUndefined(dojo.storage.onHideSettingsUI)){
dojo.storage.onHideSettingsUI.call(null);
}
},getType:function(){
return "dojo.storage.browser.FlashStorageProvider";
},_flashLoaded:function(){
this._initialized=true;
dojo.storage.manager.loaded();
},_onStatus:function(_945,key){
var ds=dojo.storage;
var dfo=dojo.flash.obj;
if(_945==ds.PENDING){
dfo.center();
dfo.setVisible(true);
}else{
dfo.setVisible(false);
}
if((!dj_undef("_statusHandler",ds))&&(ds._statusHandler!=null)){
ds._statusHandler.call(null,_945,key);
}
}});
dojo.storage.manager.register("dojo.storage.browser.WhatWGStorageProvider",new dojo.storage.browser.WhatWGStorageProvider());
dojo.storage.manager.register("dojo.storage.browser.FlashStorageProvider",new dojo.storage.browser.FlashStorageProvider());
dojo.storage.manager.initialize();
dojo.provide("dojo.storage.*");
dojo.provide("dojo.xml.Parse");
dojo.xml.Parse=function(){
var isIE=((dojo.render.html.capable)&&(dojo.render.html.ie));
function getTagName(node){
try{
return node.tagName.toLowerCase();
}
catch(e){
return "";
}
}
function getDojoTagName(node){
var _94c=getTagName(node);
if(!_94c){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_94c])){
return _94c;
}
var p=_94c.indexOf(":");
if(p>=0){
return _94c;
}
if(_94c.substr(0,5)=="dojo:"){
return _94c;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_94c;
}
if(_94c.substr(0,4)=="dojo"){
return "dojo:"+_94c.substring(4);
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
if(djt.indexOf(":")<0){
djt="dojo:"+djt;
}
return djt.toLowerCase();
}
djt=node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type");
if(djt){
return "dojo:"+djt.toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((dj_global["djConfig"])&&(!djConfig["ignoreClassNames"])){
var _94f=node.className||node.getAttribute("class");
if((_94f)&&(_94f.indexOf)&&(_94f.indexOf("dojo-")!=-1)){
var _950=_94f.split(" ");
for(var x=0,c=_950.length;x<c;x++){
if(_950[x].slice(0,5)=="dojo-"){
return "dojo:"+_950[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_954,_955,_956){
var _957=getTagName(node);
if(isIE&&_957.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _959=true;
if(_955){
var _95a=getDojoTagName(node);
_957=_95a||_957;
_959=Boolean(_95a);
}
var _95b={};
_95b[_957]=[];
var pos=_957.indexOf(":");
if(pos>0){
var ns=_957.substring(0,pos);
_95b["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_959=false;
}
}
if(_959){
var _95e=this.parseAttributes(node);
for(var attr in _95e){
if((!_95b[_957][attr])||(typeof _95b[_957][attr]!="array")){
_95b[_957][attr]=[];
}
_95b[_957][attr].push(_95e[attr]);
}
_95b[_957].nodeRef=node;
_95b.tagName=_957;
_95b.index=_956||0;
}
var _95f=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
var ctn=getDojoTagName(tcn)||getTagName(tcn);
if(!_95b[ctn]){
_95b[ctn]=[];
}
_95b[ctn].push(this.parseElement(tcn,true,_955,_95f));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_95b[ctn][_95b[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_95f++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_95b[_957].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _95b;
};
this.parseAttributes=function(node){
var _964={};
var atts=node.attributes;
var _966,i=0;
while((_966=atts[i++])){
if(isIE){
if(!_966){
continue;
}
if((typeof _966=="object")&&(typeof _966.nodeValue=="undefined")||(_966.nodeValue==null)||(_966.nodeValue=="")){
continue;
}
}
var nn=_966.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_966.nodeName;
_964[nn]={value:_966.nodeValue};
}
return _964;
};
};
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _969={};
var _96a=[];
this.getUniqueId=function(_96b){
var _96c;
do{
_96c=_96b+"_"+(_969[_96b]!=undefined?++_969[_96b]:_969[_96b]=0);
}while(this.getWidgetById(_96c));
return _96c;
};
this.add=function(_96d){
this.widgets.push(_96d);
if(!_96d.extraArgs["id"]){
_96d.extraArgs["id"]=_96d.extraArgs["ID"];
}
if(_96d.widgetId==""){
if(_96d["id"]){
_96d.widgetId=_96d["id"];
}else{
if(_96d.extraArgs["id"]){
_96d.widgetId=_96d.extraArgs["id"];
}else{
_96d.widgetId=this.getUniqueId(_96d.ns+"_"+_96d.widgetType);
}
}
}
if(this.widgetIds[_96d.widgetId]){
dojo.debug("widget ID collision on ID: "+_96d.widgetId);
}
this.widgetIds[_96d.widgetId]=_96d;
};
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(_96f){
if(dojo.lang.isNumber(_96f)){
var tw=this.widgets[_96f].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_96f,1);
}else{
this.removeById(_96f);
}
};
this.removeById=function(id){
if(!dojo.lang.isString(id)){
id=id["widgetId"];
if(!id){
dojo.debug("invalid widget or id passed to removeById");
return;
}
}
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
if(dojo.lang.isString(id)){
return this.widgetIds[id];
}
return id;
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var _976=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_976(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_97b,_97c){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_97b(x)){
ret.push(x);
if(_97c){
return false;
}
}
return true;
});
return (_97c?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
node=dojo.byId(node);
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 _982={};
var _983=["dojo.widget"];
for(var i=0;i<_983.length;i++){
_983[_983[i]]=true;
}
this.registerWidgetPackage=function(_985){
if(!_983[_985]){
_983[_985]=true;
_983.push(_985);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_983,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_987,_988,_989,ns){
var impl=this.getImplementationName(_987,ns);
if(impl){
var ret=_988?new impl(_988):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _98d in dojo.render){
if(dojo.render[_98d]["capable"]===true){
var _98e=dojo.render[_98d].prefixes;
for(var i=0;i<_98e.length;i++){
_96a.push(_98e[i].toLowerCase());
}
}
}
}
var _990=function(_991,_992){
if(!_992){
return null;
}
for(var i=0,l=_96a.length,_995;i<=l;i++){
_995=(i<l?_992[_96a[i]]:_992);
if(!_995){
continue;
}
for(var name in _995){
if(name.toLowerCase()==_991){
return _995[name];
}
}
}
return null;
};
var _997=function(_998,_999){
var _99a=dojo.evalObjPath(_999,false);
return (_99a?_990(_998,_99a):null);
};
this.getImplementationName=function(_99b,ns){
var _99d=_99b.toLowerCase();
ns=ns||"dojo";
var imps=_982[ns]||(_982[ns]={});
var impl=imps[_99d];
if(impl){
return impl;
}
if(!_96a.length){
buildPrefixCache();
}
var _9a0=dojo.ns.get(ns);
if(!_9a0){
dojo.ns.register(ns,ns+".widget");
_9a0=dojo.ns.get(ns);
}
if(_9a0){
_9a0.resolve(_99b);
}
impl=_997(_99d,_9a0.module);
if(impl){
return (imps[_99d]=impl);
}
_9a0=dojo.ns.require(ns);
if((_9a0)&&(_9a0.resolver)){
_9a0.resolve(_99b);
impl=_997(_99d,_9a0.module);
if(impl){
return (imps[_99d]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_99b+"\" in \""+_9a0.module+"\" registered to namespace \""+_9a0.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_983.length;i++){
impl=_997(_99d,_983[i]);
if(impl){
return (imps[_99d]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_99b+"\" in \""+_9a0.module+"\" registered to namespace \""+_9a0.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _9a3=this.topWidgets[id];
if(_9a3.checkSize){
_9a3.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(_9a8,_9a9){
dw[(_9a9||_9a8)]=h(_9a8);
};
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 _9ab=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _9ab[n];
}
return _9ab;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.a11y");
dojo.a11y={imgPath:dojo.uri.dojoUri("src/widget/templates/images"),doAccessibleCheck:true,accessible:null,checkAccessible:function(){
if(this.accessible===null){
this.accessible=false;
if(this.doAccessibleCheck==true){
this.accessible=this.testAccessible();
}
}
return this.accessible;
},testAccessible:function(){
this.accessible=false;
if(dojo.render.html.ie||dojo.render.html.mozilla){
var div=document.createElement("div");
div.style.backgroundImage="url(\""+this.imgPath+"/tab_close.gif\")";
dojo.body().appendChild(div);
var _9ad=null;
if(window.getComputedStyle){
var _9ae=getComputedStyle(div,"");
_9ad=_9ae.getPropertyValue("background-image");
}else{
_9ad=div.currentStyle.backgroundImage;
}
var _9af=false;
if(_9ad!=null&&(_9ad=="none"||_9ad=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_9b0){
this.doAccessibleCheck=_9b0;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.widget.Widget");
dojo.declare("dojo.widget.Widget",null,function(){
this.children=[];
this.extraArgs={};
},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){
return (this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase();
},toString:function(){
return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.disabled=false;
},disable:function(){
this.disabled=true;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _9b2=this.children[i];
if(_9b2.onResized){
_9b2.onResized();
}
}
},create:function(args,_9b4,_9b5,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_9b4,_9b5);
this.mixInProperties(args,_9b4,_9b5);
this.postMixInProperties(args,_9b4,_9b5);
dojo.widget.manager.add(this);
this.buildRendering(args,_9b4,_9b5);
this.initialize(args,_9b4,_9b5);
this.postInitialize(args,_9b4,_9b5);
this.postCreate(args,_9b4,_9b5);
return this;
},destroy:function(_9b7){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_9b7);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _9b8;
var i=0;
while(this.children.length>i){
_9b8=this.children[i];
if(_9b8 instanceof dojo.widget.Widget){
this.removeChild(_9b8);
_9b8.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_9bb){
var ret=[];
var _9bd=dojo.lang.isFunction(type);
if(!_9bd){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_9bd){
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(_9bb){
ret=ret.concat(this.children[x].getChildrenOfType(type,_9bb));
}
}
return ret;
},getDescendants:function(){
var _9bf=[];
var _9c0=[this];
var elem;
while((elem=_9c0.pop())){
_9bf.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_9c0.push(elem);
});
}
}
return _9bf;
},isFirstChild:function(){
return this===this.parent.children[0];
},isLastChild:function(){
return this===this.parent.children[this.parent.children.length-1];
},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 _9c7;
var _9c8=dojo.widget.lcArgsCache[this.widgetType];
if(_9c8==null){
_9c8={};
for(var y in this){
_9c8[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_9c8;
}
var _9ca={};
for(var x in args){
if(!this[x]){
var y=_9c8[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_9ca[x]){
continue;
}
_9ca[x]=true;
if((typeof this[x])!=(typeof _9c7)){
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.kwConnect({srcObj:this,srcFunc:x,adviceObj:this,adviceFunc: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]=dojo.uri.dojoUri(args[x]);
}else{
var _9cc=args[x].split(";");
for(var y=0;y<_9cc.length;y++){
var si=_9cc[y].indexOf(":");
if((si!=-1)&&(_9cc[y].length>si)){
this[x][_9cc[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_9cc[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_9d0){
},initialize:function(args,frag,_9d3){
return false;
},postInitialize:function(args,frag,_9d6){
return false;
},postCreate:function(args,frag,_9d9){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_9dc){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_9dd){
},addChild:function(_9de){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_9df){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_9df){
this.children.splice(x,1);
_9df.parent=null;
break;
}
}
return _9df;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.parent.children[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.parent.children,this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.parent.children.length-1){
return null;
}
if(idx<0){
return null;
}
return this.parent.children[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5");
};
dojo.widget.tags["dojo:propertyset"]=function(_9e4,_9e5,_9e6){
var _9e7=_9e5.parseProperties(_9e4["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_9e8,_9e9,_9ea){
var _9eb=_9e9.parseProperties(_9e8["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_9ee,_9ef,_9f0,_9f1){
dojo.a11y.setAccessibleMode();
var _9f2=type.split(":");
_9f2=(_9f2.length==2)?_9f2[1]:type;
var _9f3=_9f1||_9ee.parseProperties(frag[frag["ns"]+":"+_9f2]);
var _9f4=dojo.widget.manager.getImplementation(_9f2,null,null,frag["ns"]);
if(!_9f4){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_9f4.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_9f3["dojoinsertionindex"]=_9f0;
var ret=_9f4.create(_9f3,frag,_9ef,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_9f6,_9f7,_9f8,init,_9fa){
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(_9fd,_9fe,_9ff,init,_a01){
var _a02=_9fd.split(".");
var type=_a02.pop();
var regx="\\.("+(_9fe?_9fe+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_9fd.search(new RegExp(regx));
_a02=(r<0?_a02.join("."):_9fd.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_a02);
var pos=_a02.indexOf(".");
var _a07=(pos>-1)?_a02.substring(0,pos):_a02;
_a01=(_a01)||{};
_a01.widgetType=type;
if((!init)&&(_a01["classConstructor"])){
init=_a01.classConstructor;
delete _a01.classConstructor;
}
dojo.declare(_9fd,_9ff,init,_a01);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_a08){
this.propertySetsList=[];
this.fragment=_a08;
this.createComponents=function(frag,_a0a){
var _a0b=[];
var _a0c=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _a0d=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();
frag.tagName=ltn;
var ret;
if(_a0d[ltn]){
_a0c=true;
ret=_a0d[ltn](frag,this,_a0a,frag.index);
_a0b.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_a0a,frag.index);
if(ret){
_a0c=true;
_a0b.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_a0c){
_a0b=_a0b.concat(this.createSubComponents(frag,_a0a));
}
return _a0b;
};
this.createSubComponents=function(_a12,_a13){
var frag,_a15=[];
for(var item in _a12){
frag=_a12[item];
if(frag&&typeof frag=="object"&&(frag!=_a12.nodeRef)&&(frag!=_a12.tagName)&&(!dojo.dom.isNode(frag))){
_a15=_a15.concat(this.createComponents(frag,_a13));
}
}
return _a15;
};
this.parsePropertySets=function(_a17){
return [];
};
this.parseProperties=function(_a18){
var _a19={};
for(var item in _a18){
if((_a18[item]==_a18.tagName)||(_a18[item]==_a18.nodeRef)){
}else{
var frag=_a18[item];
if(frag.tagName&&dojo.widget.tags[frag.tagName.toLowerCase()]){
}else{
if(frag[0]&&frag[0].value!=""&&frag[0].value!=null){
try{
if(item.toLowerCase()=="dataprovider"){
var _a1c=this;
this.getDataProvider(_a1c,frag[0].value);
_a19.dataProvider=this.dataProvider;
}
_a19[item]=frag[0].value;
var _a1d=this.parseProperties(frag);
for(var _a1e in _a1d){
_a19[_a1e]=_a1d[_a1e];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _a19[item]!="boolean"){
_a19[item]=true;
}
break;
}
}
}
return _a19;
};
this.getDataProvider=function(_a1f,_a20){
dojo.io.bind({url:_a20,load:function(type,_a22){
if(type=="load"){
_a1f.dataProvider=_a22;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_a23){
for(var x=0;x<this.propertySetsList.length;x++){
if(_a23==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_a25){
var _a26=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _a2a=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_a2a==cpcc[0].value)){
_a26.push(cpl);
}
}
return _a26;
};
this.getPropertySets=function(_a2b){
var ppl="dojo:propertyproviderlist";
var _a2d=[];
var _a2e=_a2b.tagName;
if(_a2b[ppl]){
var _a2f=_a2b[ppl].value.split(" ");
for(var _a30 in _a2f){
if((_a30.indexOf("..")==-1)&&(_a30.indexOf("://")==-1)){
var _a31=this.getPropertySetById(_a30);
if(_a31!=""){
_a2d.push(_a31);
}
}else{
}
}
}
return this.getPropertySetsByType(_a2e).concat(_a2d);
};
this.createComponentFromScript=function(_a32,_a33,_a34,ns){
_a34.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_a33.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_a34,this,null,null,_a34)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_a34,this,null,null,_a34)];
};
};
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,_a39,_a3a,_a3b){
var _a3c=false;
var _a3d=(typeof name=="string");
if(_a3d){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _a40=name.toLowerCase();
var _a41=ns+":"+_a40;
_a3c=(dojo.byId(name)&&!dojo.widget.tags[_a41]);
}
if((arguments.length==1)&&(_a3c||!_a3d)){
var xp=new dojo.xml.Parse();
var tn=_a3c?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_a44,name,_a46,ns){
_a46[_a41]={dojotype:[{value:_a40}],nodeRef:_a44,fastMixIn:true};
_a46.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_a44,name,_a46,ns);
}
_a39=_a39||{};
var _a48=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_a3a){
_a48=true;
_a3a=tn;
if(h){
dojo.body().appendChild(_a3a);
}
}else{
if(_a3b){
dojo.dom.insertAtPosition(tn,_a3a,_a3b);
}else{
tn=_a3a;
}
}
var _a4a=fromScript(tn,name.toLowerCase(),_a39,ns);
if((!_a4a)||(!_a4a[0])||(typeof _a4a[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_a48&&_a4a[0].domNode.parentNode){
_a4a[0].domNode.parentNode.removeChild(_a4a[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _a4a[0];
};
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.fillFromTemplateCache=function(obj,_a4c,_a4d,_a4e){
var _a4f=_a4c||obj.templatePath;
var _a50=dojo.widget._templateCache;
if(!_a4f&&!obj["widgetType"]){
do{
var _a51="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_a50[_a51]);
obj.widgetType=_a51;
}
var wt=_a4f?_a4f.toString():obj.widgetType;
var ts=_a50[wt];
if(!ts){
_a50[wt]={"string":null,"node":null};
if(_a4e){
ts={};
}else{
ts=_a50[wt];
}
}
if((!obj.templateString)&&(!_a4e)){
obj.templateString=_a4d||ts["string"];
}
if((!obj.templateNode)&&(!_a4e)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_a4f)){
var _a54=dojo.hostenv.getText(_a4f);
if(_a54){
_a54=_a54.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _a55=_a54.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_a55){
_a54=_a55[1];
}
}else{
_a54="";
}
obj.templateString=_a54;
if(!_a4e){
_a50[wt]["string"]=_a54;
}
}
if((!ts["string"])&&(!_a4e)){
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:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_a59){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_a59);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_a59);
}
},getAttr:function(node,ns,attr){
if(dojo.render.html.ie){
return node.getAttribute(this[ns].alias+":"+attr);
}else{
return node.getAttributeNS(this[ns]["namespace"],attr);
}
},removeAttr:function(node,ns,attr){
var _a60=true;
if(dojo.render.html.ie){
_a60=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _a60;
}};
dojo.widget.attachTemplateNodes=function(_a61,_a62,_a63){
var _a64=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_a61){
_a61=_a62.domNode;
}
if(_a61.nodeType!=_a64){
return;
}
var _a66=_a61.all||_a61.getElementsByTagName("*");
var _a67=_a62;
for(var x=-1;x<_a66.length;x++){
var _a69=(x==-1)?_a61:_a66[x];
var _a6a=[];
if(!_a62.widgetsInTemplate||!_a69.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _a6c=_a69.getAttribute(this.attachProperties[y]);
if(_a6c){
_a6a=_a6c.split(";");
for(var z=0;z<_a6a.length;z++){
if(dojo.lang.isArray(_a62[_a6a[z]])){
_a62[_a6a[z]].push(_a69);
}else{
_a62[_a6a[z]]=_a69;
}
}
break;
}
}
var _a6e=_a69.getAttribute(this.eventAttachProperty);
if(_a6e){
var evts=_a6e.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _a70=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _a72=tevt.split(":");
tevt=trim(_a72[0]);
_a70=trim(_a72[1]);
}
if(!_a70){
_a70=tevt;
}
var tf=function(){
var ntf=new String(_a70);
return function(evt){
if(_a67[ntf]){
_a67[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_a69,tevt,tf,false,true);
}
}
for(var y=0;y<_a63.length;y++){
var _a76=_a69.getAttribute(_a63[y]);
if((_a76)&&(_a76.length)){
var _a70=null;
var _a77=_a63[y].substr(4);
_a70=trim(_a76);
var _a78=[_a70];
if(_a70.indexOf(";")>=0){
_a78=dojo.lang.map(_a70.split(";"),trim);
}
for(var z=0;z<_a78.length;z++){
if(!_a78[z].length){
continue;
}
var tf=function(){
var ntf=new String(_a78[z]);
return function(evt){
if(_a67[ntf]){
_a67[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_a69,_a77,tf,false,true);
}
}
}
}
var _a7b=_a69.getAttribute(this.templateProperty);
if(_a7b){
_a62[_a7b]=_a69;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_a69.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_a69,wai.name,"role",val);
}else{
var _a7f=val.split("-");
dojo.widget.wai.setAttr(_a69,wai.name,_a7f[0],_a7f[1]);
}
}
},this);
var _a80=_a69.getAttribute(this.onBuildProperty);
if(_a80){
eval("var node = baseNode; var widget = targetObj; "+_a80);
}
}
};
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].length<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,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,widgetsInTemplate:false,addChild:function(_a88,_a89,pos,ref,_a8c){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_a8c==undefined){
_a8c=this.children.length;
}
this.addWidgetAsDirectChild(_a88,_a89,pos,ref,_a8c);
this.registerChild(_a88,_a8c);
}
return _a88;
},addWidgetAsDirectChild:function(_a8d,_a8e,pos,ref,_a91){
if((!this.containerNode)&&(!_a8e)){
this.containerNode=this.domNode;
}
var cn=(_a8e)?_a8e:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_a91){
_a91=0;
}
_a8d.domNode.setAttribute("dojoinsertionindex",_a91);
if(!ref){
cn.appendChild(_a8d.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_a8d.domNode,ref.parentNode,_a91);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_a8d.domNode);
}else{
dojo.dom.insertAtPosition(_a8d.domNode,cn,pos);
}
}
}
},registerChild:function(_a93,_a94){
_a93.dojoInsertionIndex=_a94;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_a94){
idx=i;
}
}
this.children.splice(idx+1,0,_a93);
_a93.parent=this;
_a93.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_a93.widgetId];
},removeChild:function(_a97){
dojo.dom.removeNode(_a97.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_a97);
},getFragNodeRef:function(frag){
if(!frag){
return null;
}
if(!frag[this.getNamespacedType()]){
dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return frag[this.getNamespacedType()]["nodeRef"];
},postInitialize:function(args,frag,_a9b){
var _a9c=this.getFragNodeRef(frag);
if(_a9b&&(_a9b.snarfChildDomOutput||!_a9c)){
_a9b.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_a9c);
}else{
if(_a9c){
if(this.domNode&&(this.domNode!==_a9c)){
this._sourceNodeRef=dojo.dom.replaceNode(_a9c,this.domNode);
}
}
}
if(_a9b){
_a9b.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _a9d=new dojo.xml.Parse();
var _a9e;
var _a9f=this.domNode.getElementsByTagName("*");
for(var i=0;i<_a9f.length;i++){
if(_a9f[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_a9e=_a9f[i];
}
if(_a9f[i].getAttribute("dojoType")){
_a9f[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_a9e){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_a9e);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _aa2=_a9d.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_aa2,this);
var _aa3=[];
var _aa4=[this];
var w;
while((w=_aa4.pop())){
for(var i=0;i<w.children.length;i++){
var _aa6=w.children[i];
if(_aa6._processedSubWidgets||!_aa6.extraArgs["issubwidget"]){
continue;
}
_aa3.push(_aa6);
if(_aa6.isContainer){
_aa4.push(_aa6);
}
}
}
for(var i=0;i<_aa3.length;i++){
var _aa7=_aa3[i];
if(_aa7._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_aa7._processedSubWidgets=true;
if(_aa7.extraArgs["dojoattachevent"]){
var evts=_aa7.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _aaa=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _aac=tevt.split(":");
tevt=dojo.string.trim(_aac[0]);
_aaa=dojo.string.trim(_aac[1]);
}
if(!_aaa){
_aaa=tevt;
}
if(dojo.lang.isFunction(_aa7[tevt])){
dojo.event.kwConnect({srcObj:_aa7,srcFunc:tevt,targetObj:this,targetFunc:_aaa});
}else{
alert(tevt+" is not a function in widget "+_aa7);
}
}
}
if(_aa7.extraArgs["dojoattachpoint"]){
this[_aa7.extraArgs["dojoattachpoint"]]=_aa7;
}
}
}
if(this.isContainer&&!frag["dojoDontFollow"]){
dojo.widget.getParser().createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
var _ab0=args["templateCssPath"]||this.templateCssPath;
if(_ab0&&!dojo.widget._cssFiles[_ab0.toString()]){
if((!this.templateCssString)&&(_ab0)){
this.templateCssString=dojo.hostenv.getText(_ab0);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_ab0.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_ab0);
dojo.widget._cssStrings[this.templateCssString]=true;
}
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 _ab3=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_ab3);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_ab3)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _ab5=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_ab5=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_ab5){
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<_ab5.length;i++){
var key=_ab5[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 _abc;
if((kval)||(dojo.lang.isString(kval))){
_abc=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_abc.indexOf("\"")>-1){
_abc=_abc.replace("\"","&quot;");
}
tstr=tstr.replace(_ab5[i],_abc);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_ab3){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_ab5)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_ab5){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes();
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_abe,_abf){
if(!_abe){
_abe=this.domNode;
}
if(!_abf){
_abf=this;
}
return dojo.widget.attachTemplateNodes(_abe,_abf,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
dojo.dom.destroyNode(this.domNode);
delete this.domNode;
}
catch(e){
}
if(this._sourceNodeRef){
try{
dojo.dom.destroyNode(this._sourceNodeRef);
}
catch(e){
}
}
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_ac1,_ac2,_ac3){
dojo.html.show(node);
if(dojo.lang.isFunction(_ac3)){
_ac3();
}
},hide:function(node,_ac5,_ac6,_ac7){
dojo.html.hide(node);
if(dojo.lang.isFunction(_ac7)){
_ac7();
}
}};
dojo.lfx.toggle.fade={show:function(node,_ac9,_aca,_acb){
dojo.lfx.fadeShow(node,_ac9,_aca,_acb).play();
},hide:function(node,_acd,_ace,_acf){
dojo.lfx.fadeHide(node,_acd,_ace,_acf).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_ad1,_ad2,_ad3){
dojo.lfx.wipeIn(node,_ad1,_ad2,_ad3).play();
},hide:function(node,_ad5,_ad6,_ad7){
dojo.lfx.wipeOut(node,_ad5,_ad6,_ad7).play();
}};
dojo.lfx.toggle.explode={show:function(node,_ad9,_ada,_adb,_adc){
dojo.lfx.explode(_adc||{x:0,y:0,width:0,height:0},node,_ad9,_ada,_adb).play();
},hide:function(node,_ade,_adf,_ae0,_ae1){
dojo.lfx.implode(node,_ae1||{x:0,y:0,width:0,height:0},_ade,_adf,_ae0).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
if(this.lang===""){
this.lang=null;
}
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_ae8){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_ae8&&this.domNode){
dojo.event.browser.clean(this.domNode);
}
dojo.widget.HtmlWidget.superclass.destroyRendering.call(this);
}
catch(e){
}
},isShowing:function(){
return dojo.html.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isShowing()){
this.hide();
}else{
this.show();
}
},show:function(){
if(this.isShowing()){
return;
}
this.animationInProgress=true;
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(){
if(!this.isShowing()){
return;
}
this.animationInProgress=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;
}
var wh=dojo.html.getMarginBox(this.domNode);
var _aec=w||wh.width;
var _aed=h||wh.height;
if(this.width==_aec&&this.height==_aed){
return false;
}
this.width=_aec;
this.height=_aed;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
dojo.html.setMarginBox(this.domNode,{width:w,height:h});
if(this.isShowing()){
this.onResized();
}
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_af0){
if(_af0.checkSize){
_af0.checkSize();
}
});
}});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.widget.Button");
dojo.widget.defineWidget("dojo.widget.Button",dojo.widget.HtmlWidget,{isContainer:true,caption:"",templateString:"<div dojoAttachPoint=\"buttonNode\" class=\"dojoButton\" style=\"position:relative;\" dojoAttachEvent=\"onMouseOver; onMouseOut; onMouseDown; onMouseUp; onClick:buttonClick; onKey:onKey; onFocus;\">\n  <div class=\"dojoButtonContents\" align=center dojoAttachPoint=\"containerNode\" style=\"position:absolute;z-index:2;\"></div>\n  <img dojoAttachPoint=\"leftImage\" style=\"position:absolute;left:0px;\">\n  <img dojoAttachPoint=\"centerImage\" style=\"position:absolute;z-index:1;\">\n  <img dojoAttachPoint=\"rightImage\" style=\"position:absolute;top:0px;right:0px;\">\n</div>\n",templateCssString:"/* ---- button --- */\n.dojoButton {\n	padding: 0 0 0 0;\n	font-size: 8pt;\n	white-space: nowrap;\n	cursor: pointer;\n	font-family: Myriad, Tahoma, Verdana, sans-serif;\n}\n\n.dojoButton .dojoButtonContents {\n	padding: 2px 2px 2px 2px;\n	text-align: center;		/* if icon and label are split across two lines, center icon */\n	color: white;\n}\n\n.dojoButtonLeftPart .dojoButtonContents {\n	padding-right: 8px;\n}\n\n.dojoButtonDisabled {\n	cursor: url(\"images/no.gif\"), default;\n}\n\n\n.dojoButtonContents img {\n	vertical-align: middle;	/* if icon and label are on same line, center them */\n}\n\n/* -------- colors ------------ */\n\n.dojoButtonHover .dojoButtonContents {\n}\n\n.dojoButtonDepressed .dojoButtonContents {\n	color: #293a4b;\n}\n\n.dojoButtonDisabled .dojoButtonContents {\n	color: #aaa;\n}\n\n\n/* ---------- drop down button specific ---------- */\n\n/* border between label and arrow (for drop down buttons */\n.dojoButton .border {\n	width: 1px;\n	background: gray;\n}\n\n/* button arrow */\n.dojoButton .downArrow {\n	padding-left: 10px;\n	text-align: center;\n}\n\n.dojoButton.disabled .downArrow {\n	cursor : default;\n}",templateCssPath:dojo.uri.dojoUri("src/widget/templates/ButtonTemplate.css"),inactiveImg:"src/widget/templates/images/soriaButton-",activeImg:"src/widget/templates/images/soriaActive-",pressedImg:"src/widget/templates/images/soriaPressed-",disabledImg:"src/widget/templates/images/soriaDisabled-",width2height:1/3,fillInTemplate:function(){
if(this.caption){
this.containerNode.appendChild(document.createTextNode(this.caption));
}
dojo.html.disableSelection(this.containerNode);
},postCreate:function(){
this._sizeMyself();
},_sizeMyself:function(){
if(this.domNode.parentNode){
var _af1=document.createElement("span");
dojo.html.insertBefore(_af1,this.domNode);
}
dojo.body().appendChild(this.domNode);
this._sizeMyselfHelper();
if(_af1){
dojo.html.insertBefore(this.domNode,_af1);
dojo.html.removeNode(_af1);
}
},_sizeMyselfHelper:function(){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _af3=this.height*this.width2height;
this.containerNode.style.left=_af3+"px";
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height;
this.leftImage.width=this.rightImage.width=_af3+1;
this.centerImage.width=this.containerWidth;
this.centerImage.style.left=_af3+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
if(this.disabled){
dojo.html.prependClass(this.domNode,"dojoButtonDisabled");
this.domNode.removeAttribute("tabIndex");
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
}else{
dojo.html.removeClass(this.domNode,"dojoButtonDisabled");
this.domNode.setAttribute("tabIndex","0");
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
}
this.domNode.style.height=this.height+"px";
this.domNode.style.width=(this.containerWidth+2*_af3)+"px";
},onMouseOver:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.activeImg);
},onMouseDown:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonDepressed");
dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.pressedImg);
},onMouseUp:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");
this._setImage(this.activeImg);
},onMouseOut:function(e){
if(this.disabled){
return;
}
if(e.toElement&&dojo.html.isDescendantOf(e.toElement,this.buttonNode)){
return;
}
dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");
this._setImage(this.inactiveImg);
},onKey:function(e){
if(!e.key){
return;
}
var menu=dojo.widget.getWidgetById(this.menuId);
if(e.key==e.KEY_ENTER||e.key==" "){
this.onMouseDown(e);
this.buttonClick(e);
dojo.lang.setTimeout(this,"onMouseUp",75,e);
dojo.event.browser.stopEvent(e);
}
if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}
},onFocus:function(e){
var menu=dojo.widget.getWidgetById(this.menuId);
if(menu){
dojo.event.connectOnce(this.domNode,"onblur",this,"onBlur");
}
},onBlur:function(e){
var menu=dojo.widget.getWidgetById(this.menuId);
if(!menu){
return;
}
if(menu.close&&menu.isShowingNow){
menu.close();
}
},buttonClick:function(e){
if(!this.disabled){
try{
this.domNode.focus();
}
catch(e2){
}
this.onClick(e);
}
},onClick:function(e){
},_setImage:function(_b00){
this.leftImage.src=dojo.uri.dojoUri(_b00+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_b00+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_b00+"r.gif");
},_toggleMenu:function(_b01){
var menu=dojo.widget.getWidgetById(_b01);
if(!menu){
return;
}
if(menu.open&&!menu.isShowingNow){
var pos=dojo.html.getAbsolutePosition(this.domNode,false);
menu.open(pos.x,pos.y+this.height,this);
}else{
if(menu.close&&menu.isShowingNow){
menu.close();
}else{
menu.toggle();
}
}
},setCaption:function(_b04){
this.caption=_b04;
this.containerNode.innerHTML=_b04;
this._sizeMyself();
},setDisabled:function(_b05){
this.disabled=_b05;
this._sizeMyself();
}});
dojo.widget.defineWidget("dojo.widget.DropDownButton",dojo.widget.Button,{menuId:"",downArrow:"src/widget/templates/images/whiteDownArrow.gif",disabledDownArrow:"src/widget/templates/images/whiteDownArrow.gif",fillInTemplate:function(){
dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this,arguments);
this.arrow=document.createElement("img");
dojo.html.setClass(this.arrow,"downArrow");
dojo.widget.wai.setAttr(this.domNode,"waiState","haspopup",this.menuId);
},_sizeMyselfHelper:function(){
this.arrow.src=dojo.uri.dojoUri(this.disabled?this.disabledDownArrow:this.downArrow);
this.containerNode.appendChild(this.arrow);
dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this);
},onClick:function(e){
this._toggleMenu(this.menuId);
}});
dojo.widget.defineWidget("dojo.widget.ComboButton",dojo.widget.Button,{menuId:"",templateString:"<div class=\"dojoButton\" style=\"position:relative;top:0px;left:0px; text-align:none;\" dojoAttachEvent=\"onKey;onFocus\">\n\n	<div dojoAttachPoint=\"buttonNode\" class=\"dojoButtonLeftPart\" style=\"position:absolute;left:0px;top:0px;\"\n		dojoAttachEvent=\"onMouseOver; onMouseOut; onMouseDown; onMouseUp; onClick:buttonClick;\">\n		<div class=\"dojoButtonContents\" dojoAttachPoint=\"containerNode\" style=\"position:absolute;top:0px;right:0px;z-index:2;\"></div>\n		<img dojoAttachPoint=\"leftImage\" style=\"position:absolute;left:0px;top:0px;\">\n		<img dojoAttachPoint=\"centerImage\" style=\"position:absolute;right:0px;top:0px;z-index:1;\">\n	</div>\n\n	<div dojoAttachPoint=\"rightPart\" class=\"dojoButtonRightPart\" style=\"position:absolute;top:0px;right:0px;\"\n		dojoAttachEvent=\"onMouseOver:rightOver; onMouseOut:rightOut; onMouseDown:rightDown; onMouseUp:rightUp; onClick:rightClick;\">\n		<img dojoAttachPoint=\"arrowBackgroundImage\" style=\"position:absolute;top:0px;left:0px;z-index:1;\">\n		<img src=\"${dojoRoot}src/widget/templates/images/whiteDownArrow.gif\"\n		  		style=\"z-index:2;position:absolute;left:3px;top:50%;\">\n		<img dojoAttachPoint=\"rightImage\" style=\"position:absolute;top:0px;right:0px;\">\n	</div>\n\n</div>\n",splitWidth:2,arrowWidth:5,_sizeMyselfHelper:function(e){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _b09=this.height/3;
if(this.disabled){
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
this.domNode.removeAttribute("tabIndex");
}else{
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
this.domNode.setAttribute("tabIndex","0");
}
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.arrowBackgroundImage.height=this.height;
this.leftImage.width=_b09+1;
this.centerImage.width=this.containerWidth;
this.buttonNode.style.height=this.height+"px";
this.buttonNode.style.width=_b09+this.containerWidth+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
this.arrowBackgroundImage.width=this.arrowWidth;
this.rightImage.width=_b09+1;
this.rightPart.style.height=this.height+"px";
this.rightPart.style.width=this.arrowWidth+_b09+"px";
this._setImageR(this.disabled?this.disabledImg:this.inactiveImg);
this.domNode.style.height=this.height+"px";
var _b0a=this.containerWidth+this.splitWidth+this.arrowWidth+2*_b09;
this.domNode.style.width=_b0a+"px";
},_setImage:function(_b0b){
this.leftImage.src=dojo.uri.dojoUri(_b0b+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_b0b+"c.gif");
},rightOver:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.activeImg);
},rightDown:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonDepressed");
dojo.html.removeClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.pressedImg);
},rightUp:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonHover");
dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");
this._setImageR(this.activeImg);
},rightOut:function(e){
if(this.disabled){
return;
}
dojo.html.removeClass(this.rightPart,"dojoButtonHover");
dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");
this._setImageR(this.inactiveImg);
},rightClick:function(e){
if(this.disabled){
return;
}
try{
this.domNode.focus();
}
catch(e2){
}
this._toggleMenu(this.menuId);
},_setImageR:function(_b11){
this.arrowBackgroundImage.src=dojo.uri.dojoUri(_b11+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_b11+"r.gif");
},onKey:function(e){
if(!e.key){
return;
}
var menu=dojo.widget.getWidgetById(this.menuId);
if(e.key==e.KEY_ENTER||e.key==" "){
this.onMouseDown(e);
this.buttonClick(e);
dojo.lang.setTimeout(this,"onMouseUp",75,e);
dojo.event.browser.stopEvent(e);
}else{
if(e.key==e.KEY_DOWN_ARROW&&e.altKey){
this.rightDown(e);
this.rightClick(e);
dojo.lang.setTimeout(this,"rightUp",75,e);
dojo.event.browser.stopEvent(e);
}else{
if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}
}
}
}});
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,_b16,_b17){
dojo.widget.html.stabile.setup();
dojo.widget.html.stabile.widgetState[id]=_b16;
if(_b17){
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(_b19){
dojo.widget.html.stabile._getStorage().value=dojo.widget.html.stabile.description(_b19);
};
dojo.widget.html.stabile.description=function(v,_b1b){
var _b1c=dojo.widget.html.stabile._depth;
var _b1d=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(_b1c>=dojo.widget.html.stabile.depthLimit){
return "[ ... ]";
}
d="[";
var _b20=true;
dojo.widget.html.stabile._depth++;
for(var i=0;i<v.length;i++){
if(_b20){
_b20=false;
}else{
d+=",";
}
d+=arguments.callee(v[i],_b1b);
}
return d+"]";
}
if(v.constructor==Object||v.toString==_b1d){
if(_b1c>=dojo.widget.html.stabile.depthLimit){
return "{ ... }";
}
if(typeof (v.hasOwnProperty)!="function"&&v.prototype){
throw new Error("description: "+v+" not supported by script engine");
}
var _b20=true;
d="{";
dojo.widget.html.stabile._depth++;
for(var key in v){
if(v[key]==void (0)||typeof (v[key])=="function"){
continue;
}
if(_b20){
_b20=false;
}else{
d+=", ";
}
var kd=key;
if(!kd.match(/^[a-zA-Z_][a-zA-Z0-9_]*$/)){
kd=arguments.callee(key,_b1b);
}
d+=kd+": "+arguments.callee(v[key],_b1b);
}
return d+"}";
}
if(_b1b){
if(dojo.widget.html.stabile._recur){
var _b24=Object.prototype.toString;
return _b24.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=_b1c;
}
};
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.PopupContainer");
dojo.declare("dojo.widget.PopupContainerBase",null,function(){
this.queueOnAnimationFinish=[];
},{isContainer:true,templateString:"<div dojoAttachPoint=\"containerNode\" style=\"display:none;position:absolute;\" class=\"dojoPopupContainer\" ></div>",isShowingNow:false,currentSubpopup:null,beginZIndex:1000,parentPopup:null,parent:null,popupIndex:0,aroundBox:dojo.html.boxSizing.BORDER_BOX,openedForWindow:null,processKey:function(evt){
return false;
},applyPopupBasicStyle:function(){
with(this.domNode.style){
display="none";
position="absolute";
}
},aboutToShow:function(){
},open:function(x,y,_b29,_b2a,_b2b,_b2c){
if(this.isShowingNow){
return;
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.aboutToShow();
var _b2d=false,node,_b2f;
if(typeof x=="object"){
node=x;
_b2f=_b2a;
_b2a=_b29;
_b29=y;
_b2d=true;
}
this.parent=_b29;
dojo.body().appendChild(this.domNode);
_b2a=_b2a||_b29["domNode"]||[];
var _b30=null;
this.isTopLevel=true;
while(_b29){
if(_b29!==this&&(_b29.setOpenedSubpopup!=undefined&&_b29.applyPopupBasicStyle!=undefined)){
_b30=_b29;
this.isTopLevel=false;
_b30.setOpenedSubpopup(this);
break;
}
_b29=_b29.parent;
}
this.parentPopup=_b30;
this.popupIndex=_b30?_b30.popupIndex+1:1;
if(this.isTopLevel){
var _b31=dojo.html.isNode(_b2a)?_b2a:null;
dojo.widget.PopupManager.opened(this,_b31);
}
if(this.isTopLevel&&!dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
this._bookmark=dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.getBookmark);
}else{
this._bookmark=null;
}
if(_b2a instanceof Array){
_b2a={left:_b2a[0],top:_b2a[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_b2d){
this.move(node,_b2c,_b2f);
}else{
this.move(x,y,_b2c,_b2b);
}
this.domNode.style.display="none";
this.explodeSrc=_b2a;
this.show();
this.isShowingNow=true;
},move:function(x,y,_b34,_b35){
var _b36=(typeof x=="object");
if(_b36){
var _b37=_b34;
var node=x;
_b34=y;
if(!_b37){
_b37={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_b34,this.aroundBox,_b37);
}else{
if(!_b35){
_b35="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_b34,true,_b35);
}
},close:function(_b39){
if(_b39){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_b39);
this.hide();
if(this.bgIframe){
this.bgIframe.hide();
this.bgIframe.size({left:0,top:0,width:0,height:0});
}
if(this.isTopLevel){
dojo.widget.PopupManager.closed(this);
}
this.isShowingNow=false;
if(this.parent){
setTimeout(dojo.lang.hitch(this,function(){
try{
if(this.parent["focus"]){
this.parent.focus();
}else{
this.parent.domNode.focus();
}
}
catch(e){
dojo.debug("No idea how to focus to parent",e);
}
}),10);
}
if(this._bookmark&&dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
if(this.openedForWindow){
this.openedForWindow.focus();
}
try{
dojo.withGlobal(this.openedForWindow||dojo.global(),"moveToBookmark",dojo.html.selection,[this._bookmark]);
}
catch(e){
}
}
this._bookmark=null;
},closeAll:function(_b3a){
if(this.parentPopup){
this.parentPopup.closeAll(_b3a);
}else{
this.close(_b3a);
}
},setOpenedSubpopup:function(_b3b){
this.currentSubpopup=_b3b;
},closeSubpopup:function(_b3c){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_b3c);
this.currentSubpopup=null;
},onShow:function(){
dojo.widget.PopupContainer.superclass.onShow.apply(this,arguments);
this.openedSize={w:this.domNode.style.width,h:this.domNode.style.height};
if(dojo.render.html.ie){
if(!this.bgIframe){
this.bgIframe=new dojo.html.BackgroundIframe();
this.bgIframe.setZIndex(this.domNode);
}
this.bgIframe.size(this.domNode);
this.bgIframe.show();
}
this.processQueue();
},processQueue:function(){
if(!this.queueOnAnimationFinish.length){
return;
}
var func=this.queueOnAnimationFinish.shift();
var args=this.queueOnAnimationFinish.shift();
func.apply(this,args);
},onHide:function(){
dojo.widget.HtmlWidget.prototype.onHide.call(this);
if(this.openedSize){
with(this.domNode.style){
width=this.openedSize.w;
height=this.openedSize.h;
}
}
this.processQueue();
}});
dojo.widget.defineWidget("dojo.widget.PopupContainer",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase],{});
dojo.widget.PopupManager=new function(){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
this.focusNode=null;
this.registeredWindows=[];
this.registerWin=function(win){
if(!win.__PopupManagerRegistered){
dojo.event.connect(win.document,"onmousedown",this,"onClick");
dojo.event.connect(win,"onscroll",this,"onClick");
dojo.event.connect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=true;
this.registeredWindows.push(win);
}
};
this.registerAllWindows=function(_b40){
if(!_b40){
_b40=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_b40);
for(var i=0;i<_b40.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_b40.frames[i].document);
if(win){
this.registerAllWindows(win);
}
}
catch(e){
}
}
};
this.unRegisterWin=function(win){
if(win.__PopupManagerRegistered){
dojo.event.disconnect(win.document,"onmousedown",this,"onClick");
dojo.event.disconnect(win,"onscroll",this,"onClick");
dojo.event.disconnect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=false;
}
};
this.unRegisterAllWindows=function(){
for(var i=0;i<this.registeredWindows.length;++i){
this.unRegisterWin(this.registeredWindows[i]);
}
this.registeredWindows=[];
};
dojo.addOnLoad(this,"registerAllWindows");
dojo.addOnUnload(this,"unRegisterAllWindows");
this.closed=function(menu){
if(this.currentMenu==menu){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
}
};
this.opened=function(menu,_b47){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_b47;
};
this.setFocusedMenu=function(menu){
this.currentFocusMenu=menu;
};
this.onKey=function(e){
if(!e.key){
return;
}
if(!this.currentMenu||!this.currentMenu.isShowingNow){
return;
}
var m=this.currentFocusMenu;
while(m){
if(m.processKey(e)){
e.preventDefault();
e.stopPropagation();
break;
}
m=m.parentPopup;
}
},this.onClick=function(e){
if(!this.currentMenu){
return;
}
var _b4c=dojo.html.getScroll().offset;
var m=this.currentMenu;
while(m){
if(dojo.html.overElement(m.domNode,e)||dojo.html.isDescendantOf(e.target,m.domNode)){
return;
}
m=m.currentSubpopup;
}
if(this.currentButton&&dojo.html.overElement(this.currentButton,e)){
return;
}
this.currentMenu.close();
};
};
dojo.provide("dojo.widget.ComboBox");
dojo.declare("dojo.widget.incrementalComboBoxDataProvider",null,function(_b4e){
this.searchUrl=_b4e.dataUrl;
this._cache={};
this._inFlight=false;
this._lastRequest=null;
this.allowCache=false;
},{_addToCache:function(_b4f,data){
if(this.allowCache){
this._cache[_b4f]=data;
}
},startSearch:function(_b51,_b52){
if(this._inFlight){
}
var tss=encodeURIComponent(_b51);
var _b54=dojo.string.substituteParams(this.searchUrl,{"searchString":tss});
var _b55=this;
var _b56=this._lastRequest=dojo.io.bind({url:_b54,method:"get",mimetype:"text/json",load:function(type,data,evt){
_b55._inFlight=false;
if(!dojo.lang.isArray(data)){
var _b5a=[];
for(var key in data){
_b5a.push([data[key],key]);
}
data=_b5a;
}
_b55._addToCache(_b51,data);
if(_b56==_b55._lastRequest){
_b52(data);
}
}});
this._inFlight=true;
}});
dojo.declare("dojo.widget.basicComboBoxDataProvider",null,function(_b5c,node){
this._data=[];
this.searchLimit=30;
this.searchType="STARTSTRING";
this.caseSensitive=false;
if(!dj_undef("dataUrl",_b5c)&&!dojo.string.isBlank(_b5c.dataUrl)){
this._getData(_b5c.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++){
var text=opts[x].textContent||opts[x].innerText||opts[x].innerHTML;
var _b63=[String(text),String(opts[x].value)];
data.push(_b63);
if(opts[x].selected){
_b5c.setAllValues(_b63[0],_b63[1]);
}
}
this.setData(data);
}
}
},{_getData:function(url){
dojo.io.bind({url:url,load:dojo.lang.hitch(this,function(type,data,evt){
if(!dojo.lang.isArray(data)){
var _b68=[];
for(var key in data){
_b68.push([data[key],key]);
}
data=_b68;
}
this.setData(data);
}),mimetype:"text/json"});
},startSearch:function(_b6a,_b6b){
this._performSearch(_b6a,_b6b);
},_performSearch:function(_b6c,_b6d){
var st=this.searchType;
var ret=[];
if(!this.caseSensitive){
_b6c=_b6c.toLowerCase();
}
for(var x=0;x<this._data.length;x++){
if((this.searchLimit>0)&&(ret.length>=this.searchLimit)){
break;
}
var _b71=new String((!this.caseSensitive)?this._data[x][0].toLowerCase():this._data[x][0]);
if(_b71.length<_b6c.length){
continue;
}
if(st=="STARTSTRING"){
if(_b6c==_b71.substr(0,_b6c.length)){
ret.push(this._data[x]);
}
}else{
if(st=="SUBSTRING"){
if(_b71.indexOf(_b6c)>=0){
ret.push(this._data[x]);
}
}else{
if(st=="STARTWORD"){
var idx=_b71.indexOf(_b6c);
if(idx==0){
ret.push(this._data[x]);
}
if(idx<=0){
continue;
}
var _b73=false;
while(idx!=-1){
if(" ,/(".indexOf(_b71.charAt(idx-1))!=-1){
_b73=true;
break;
}
idx=_b71.indexOf(_b6c,idx+1);
}
if(!_b73){
continue;
}else{
ret.push(this._data[x]);
}
}
}
}
}
_b6d(ret);
},setData:function(_b74){
this._data=_b74;
}});
dojo.widget.defineWidget("dojo.widget.ComboBox",dojo.widget.HtmlWidget,{forceValidOption:false,searchType:"stringstart",dataProvider:null,autoComplete:true,searchDelay:100,dataUrl:"",fadeTime:200,maxListLength:8,mode:"local",selectedResult:null,dataProviderClass:"",buttonSrc:dojo.uri.dojoUri("src/widget/templates/images/combo_box_arrow.png"),dropdownToggle:"fade",templateString:"<span _=\"whitespace and CR's between tags adds &nbsp; in FF\"\n	class=\"dojoComboBoxOuter\"\n	><input style=\"display:none\"  tabindex=\"-1\" name=\"\" value=\"\" \n		dojoAttachPoint=\"comboBoxValue\"\n	><input style=\"display:none\"  tabindex=\"-1\" name=\"\" value=\"\" \n		dojoAttachPoint=\"comboBoxSelectionValue\"\n	><input type=\"text\" autocomplete=\"off\" class=\"dojoComboBox\"\n		dojoAttachEvent=\"key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize;\"\n		dojoAttachPoint=\"textInputNode\"\n	><img hspace=\"0\"\n		vspace=\"0\"\n		class=\"dojoComboBox\"\n		dojoAttachPoint=\"downArrowNode\"\n		dojoAttachEvent=\"onMouseUp: handleArrowClick; onResize;\"\n		src=\"${this.buttonSrc}\"\n></span>\n",templateCssString:".dojoComboBoxOuter {\n	border: 0px !important;\n	margin: 0px !important;\n	padding: 0px !important;\n	background: transparent !important;\n	white-space: nowrap !important;\n}\n\n.dojoComboBox {\n	border: 1px inset #afafaf;\n	margin: 0px;\n	padding: 0px;\n	vertical-align: middle !important;\n	float: none !important;\n	position: static !important;\n	display: inline !important;\n}\n\n/* the input box */\ninput.dojoComboBox {\n	border-right-width: 0px !important; \n	margin-right: 0px !important;\n	padding-right: 0px !important;\n}\n\n/* the down arrow */\nimg.dojoComboBox {\n	border-left-width: 0px !important;\n	padding-left: 0px !important;\n	margin-left: 0px !important;\n}\n\n/* IE vertical-alignment calculations can be off by +-1 but these margins are collapsed away */\n.dj_ie img.dojoComboBox {\n	margin-top: 1px; \n	margin-bottom: 1px; \n}\n\n/* the drop down */\n.dojoComboBoxOptions {\n	font-family: Verdana, Helvetica, Garamond, sans-serif;\n	/* font-size: 0.7em; */\n	background-color: white;\n	border: 1px solid #afafaf;\n	position: absolute;\n	z-index: 1000; \n	overflow: auto;\n	cursor: default;\n}\n\n.dojoComboBoxItem {\n	padding-left: 2px;\n	padding-top: 2px;\n	margin: 0px;\n}\n\n.dojoComboBoxItemEven {\n	background-color: #f4f4f4;\n}\n\n.dojoComboBoxItemOdd {\n	background-color: white;\n}\n\n.dojoComboBoxItemHighlight {\n	background-color: #63709A;\n	color: white;\n}\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/ComboBox.css"),setValue:function(_b75){
this.comboBoxValue.value=_b75;
if(this.textInputNode.value!=_b75){
this.textInputNode.value=_b75;
dojo.widget.html.stabile.setState(this.widgetId,this.getState(),true);
this.onValueChanged(_b75);
}
},onValueChanged:function(_b76){
},getValue:function(){
return this.comboBoxValue.value;
},getState:function(){
return {value:this.getValue()};
},setState:function(_b77){
this.setValue(_b77.value);
},enable:function(){
this.disabled=false;
this.textInputNode.removeAttribute("disabled");
},disable:function(){
this.disabled=true;
this.textInputNode.setAttribute("disabled",true);
},_getCaretPos:function(_b78){
if(dojo.lang.isNumber(_b78.selectionStart)){
return _b78.selectionStart;
}else{
if(dojo.render.html.ie){
var tr=document.selection.createRange().duplicate();
var ntr=_b78.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(_b7b,_b7c){
_b7c=parseInt(_b7c);
this._setSelectedRange(_b7b,_b7c,_b7c);
},_setSelectedRange:function(_b7d,_b7e,end){
if(!end){
end=_b7d.value.length;
}
if(_b7d.setSelectionRange){
_b7d.focus();
_b7d.setSelectionRange(_b7e,end);
}else{
if(_b7d.createTextRange){
var _b80=_b7d.createTextRange();
with(_b80){
collapse(true);
moveEnd("character",end);
moveStart("character",_b7e);
select();
}
}else{
_b7d.value=_b7d.value;
_b7d.blur();
_b7d.focus();
var dist=parseInt(_b7d.value.length)-end;
var _b82=String.fromCharCode(37);
var tcc=_b82.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);
_b7d.dispatchEvent(te);
}
}
}
},_handleKeyEvents:function(evt){
if(evt.ctrlKey||evt.altKey||!evt.key){
return;
}
this._prev_key_backspace=false;
this._prev_key_esc=false;
var k=dojo.event.browser.keys;
var _b88=true;
switch(evt.key){
case k.KEY_DOWN_ARROW:
if(!this.popupWidget.isShowingNow){
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_TAB:
if(!this.autoComplete&&this.popupWidget.isShowingNow&&this._highlighted_option){
dojo.event.browser.stopEvent(evt);
this._selectOption({"target":this._highlighted_option,"noHide":false});
this._setSelectedRange(this.textInputNode,this.textInputNode.value.length,null);
}else{
this._selectOption();
return;
}
break;
case k.KEY_ENTER:
if(this.popupWidget.isShowingNow){
dojo.event.browser.stopEvent(evt);
}
if(this.autoComplete){
this._selectOption();
return;
}
case " ":
if(this.popupWidget.isShowingNow&&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();
_b88=false;
}
break;
case k.KEY_RIGHT_ARROW:
case k.KEY_LEFT_ARROW:
_b88=false;
break;
default:
if(evt.charCode==0){
_b88=false;
}
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_b88){
this._blurOptionNode();
this.searchTimer=setTimeout(dojo.lang.hitch(this,this._startSearchFromInput),this.searchDelay);
}
},compositionEnd:function(evt){
evt.key=evt.keyCode;
this._handleKeyEvents(evt);
},onKeyUp:function(evt){
this.setValue(this.textInputNode.value);
},setSelectedValue:function(_b8b){
this.comboBoxSelectionValue.value=_b8b;
},setAllValues:function(_b8c,_b8d){
this.setSelectedValue(_b8d);
this.setValue(_b8c);
},_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);
}
}
dojo.html.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function(){
if(this._highlighted_option&&this._highlighted_option.previousSibling){
this._focusOptionNode(this._highlighted_option.previousSibling);
}else{
this._highlighted_option=null;
this._hideResultList();
return;
}
dojo.html.scrollIntoView(this._highlighted_option);
},_itemMouseOver:function(evt){
if(evt.target===this.optionsListNode){
return;
}
this._focusOptionNode(evt.target);
dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight");
},_itemMouseOut:function(evt){
if(evt.target===this.optionsListNode){
return;
}
this._blurOptionNode();
},onResize:function(){
var _b91=dojo.html.getContentBox(this.textInputNode);
if(_b91.height<=0){
dojo.lang.setTimeout(this,"onResize",100);
return;
}
var _b92={width:_b91.height,height:_b91.height};
dojo.html.setContentBox(this.downArrowNode,_b92);
},fillInTemplate:function(args,frag){
dojo.html.applyBrowserClass(this.domNode);
var _b95=this.getFragNodeRef(frag);
if(!this.name&&_b95.name){
this.name=_b95.name;
}
this.comboBoxValue.name=this.name;
this.comboBoxSelectionValue.name=this.name+"_selected";
dojo.html.copyStyle(this.domNode,_b95);
dojo.html.copyStyle(this.textInputNode,_b95);
dojo.html.copyStyle(this.downArrowNode,_b95);
with(this.downArrowNode.style){
width="0px";
height="0px";
}
var _b96;
if(this.dataProviderClass){
if(typeof this.dataProviderClass=="string"){
_b96=dojo.evalObjPath(this.dataProviderClass);
}else{
_b96=this.dataProviderClass;
}
}else{
if(this.mode=="remote"){
_b96=dojo.widget.incrementalComboBoxDataProvider;
}else{
_b96=dojo.widget.basicComboBoxDataProvider;
}
}
this.dataProvider=new _b96(this,this.getFragNodeRef(frag));
this.popupWidget=new dojo.widget.createWidget("PopupContainer",{toggle:this.dropdownToggle,toggleDuration:this.toggleDuration});
dojo.event.connect(this,"destroy",this.popupWidget,"destroy");
this.optionsListNode=this.popupWidget.domNode;
this.domNode.appendChild(this.optionsListNode);
dojo.html.addClass(this.optionsListNode,"dojoComboBoxOptions");
dojo.event.connect(this.optionsListNode,"onclick",this,"_selectOption");
dojo.event.connect(this.optionsListNode,"onmouseover",this,"_onMouseOver");
dojo.event.connect(this.optionsListNode,"onmouseout",this,"_onMouseOut");
dojo.event.connect(this.optionsListNode,"onmouseover",this,"_itemMouseOver");
dojo.event.connect(this.optionsListNode,"onmouseout",this,"_itemMouseOut");
},_openResultList:function(_b97){
if(this.disabled){
return;
}
this._clearResultList();
if(!_b97.length){
this._hideResultList();
}
if((this.autoComplete)&&(_b97.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+=_b97[0][0].substr(cpos);
this._setSelectedRange(this.textInputNode,cpos,this.textInputNode.value.length);
}
}
var even=true;
while(_b97.length){
var tr=_b97.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);
}
}
this._showResultList();
},_onFocusInput:function(){
this._hasFocus=true;
},_onBlurInput:function(){
this._hasFocus=false;
this._handleBlurTimer(true,500);
},_handleBlurTimer:function(_b9c,_b9d){
if(this.blurTimer&&(_b9c||_b9d)){
clearTimeout(this.blurTimer);
}
if(_b9d){
this.blurTimer=dojo.lang.setTimeout(this,"_checkBlurred",_b9d);
}
},_onMouseOver:function(evt){
if(!this._mouseover_list){
this._handleBlurTimer(true,0);
this._mouseover_list=true;
}
},_onMouseOut:function(evt){
var _ba0=evt.relatedTarget;
try{
if(!_ba0||_ba0.parentNode!=this.optionsListNode){
this._mouseover_list=false;
this._handleBlurTimer(true,100);
this._tryFocus();
}
}
catch(e){
}
},_isInputEqualToResult:function(_ba1){
var _ba2=this.textInputNode.value;
if(!this.dataProvider.caseSensitive){
_ba2=_ba2.toLowerCase();
_ba1=_ba1.toLowerCase();
}
return (_ba2==_ba1);
},_isValidOption:function(){
var tgt=dojo.html.firstElement(this.optionsListNode);
var _ba4=false;
while(!_ba4&&tgt){
if(this._isInputEqualToResult(tgt.getAttribute("resultName"))){
_ba4=true;
}else{
tgt=dojo.html.nextElement(tgt);
}
}
return _ba4;
},_checkBlurred:function(){
if(!this._hasFocus&&!this._mouseover_list){
this._hideResultList();
if(!this.textInputNode.value.length){
this.setAllValues("","");
return;
}
var _ba5=this._isValidOption();
if(this.forceValidOption&&!_ba5){
this.setAllValues("","");
return;
}
if(!_ba5){
this.setSelectedValue("");
}
}
},_selectOption:function(evt){
var tgt=null;
if(!evt){
evt={target:this._highlighted_option};
}
if(!dojo.html.isDescendantOf(evt.target,this.optionsListNode)){
if(!this.textInputNode.value.length){
return;
}
tgt=dojo.html.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===dojo.body()){
return false;
}
}
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(){
if(this.optionsListNode.innerHTML){
this.optionsListNode.innerHTML="";
}
},_hideResultList:function(){
this.popupWidget.close();
},_showResultList:function(){
var _ba8=this.optionsListNode.childNodes;
if(_ba8.length){
var _ba9=Math.min(_ba8.length,this.maxListLength);
with(this.optionsListNode.style){
display="";
if(_ba9==_ba8.length){
height="";
}else{
height=_ba9*dojo.html.getMarginBox(_ba8[0]).height+"px";
}
width=(dojo.html.getMarginBox(this.domNode).width-2)+"px";
}
this.popupWidget.open(this.domNode,this,this.downArrowNode);
}else{
this._hideResultList();
}
},handleArrowClick:function(){
this._handleBlurTimer(true,0);
this._tryFocus();
if(this.popupWidget.isShowingNow){
this._hideResultList();
}else{
this._startSearch("");
}
},_tryFocus:function(){
try{
this.textInputNode.focus();
}
catch(e){
}
},_startSearchFromInput:function(){
this._startSearch(this.textInputNode.value);
},_startSearch:function(key){
this.dataProvider.startSearch(key,dojo.lang.hitch(this,"_openResultList"));
},postCreate:function(){
this.onResize();
dojo.event.connect(this.textInputNode,"onblur",this,"_onBlurInput");
dojo.event.connect(this.textInputNode,"onfocus",this,"_onFocusInput");
if(this.disabled){
this.disable();
}
var s=dojo.widget.html.stabile.getState(this.widgetId);
if(s){
this.setState(s);
}
}});
dojo.provide("dojo.widget.ContentPane");
dojo.widget.defineWidget("dojo.widget.ContentPane",dojo.widget.HtmlWidget,function(){
this._styleNodes=[];
this._onLoadStack=[];
this._onUnloadStack=[];
this._callOnUnload=false;
this._ioBindObj;
this.scriptScope;
this.bindArgs={};
},{isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptSeparation:true,loadingMessage:"Loading...",isLoaded:false,postCreate:function(args,frag,_bae){
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.ContentPane.superclass.show.call(this);
},refresh:function(){
this.isLoaded=false;
this.loadContents();
},loadContents:function(){
if(this.isLoaded){
return;
}
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.href!=""){
this._downloadExternalContent(this.href,this.cacheContent&&!this.refreshOnShow);
}
}
},setUrl:function(url){
this.href=url;
this.isLoaded=false;
if(this.preload||this.isShowing()){
this.loadContents();
}
},abort:function(){
var bind=this._ioBindObj;
if(!bind||!bind.abort){
return;
}
bind.abort();
delete this._ioBindObj;
},_downloadExternalContent:function(url,_bb2){
this.abort();
this._handleDefaults(this.loadingMessage,"onDownloadStart");
var self=this;
this._ioBindObj=dojo.io.bind(this._cacheSetting({url:url,mimetype:"text/html",handler:function(type,data,xhr){
delete self._ioBindObj;
if(type=="load"){
self.onDownloadEnd.call(self,url,data);
}else{
var e={responseText:xhr.responseText,status:xhr.status,statusText:xhr.statusText,responseHeaders:xhr.getAllResponseHeaders(),text:"Error loading '"+url+"' ("+xhr.status+" "+xhr.statusText+")"};
self._handleDefaults.call(self,e,"onDownloadError");
self.onLoad();
}
}},_bb2));
},_cacheSetting:function(_bb8,_bb9){
for(var x in this.bindArgs){
if(dojo.lang.isUndefined(_bb8[x])){
_bb8[x]=this.bindArgs[x];
}
}
if(dojo.lang.isUndefined(_bb8.useCache)){
_bb8.useCache=_bb9;
}
if(dojo.lang.isUndefined(_bb8.preventCache)){
_bb8.preventCache=!_bb9;
}
if(dojo.lang.isUndefined(_bb8.mimetype)){
_bb8.mimetype="text/html";
}
return _bb8;
},onLoad:function(e){
this._runStack("_onLoadStack");
this.isLoaded=true;
},onUnLoad:function(e){
dojo.deprecated(this.widgetType+".onUnLoad, use .onUnload (lowercased load)",0.5);
},onUnload:function(e){
this._runStack("_onUnloadStack");
delete this.scriptScope;
if(this.onUnLoad!==dojo.widget.ContentPane.prototype.onUnLoad){
this.onUnLoad.apply(this,arguments);
}
},_runStack:function(_bbe){
var st=this[_bbe];
var err="";
var _bc1=this.scriptScope||window;
for(var i=0;i<st.length;i++){
try{
st[i].call(_bc1);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_bbe]=[];
if(err.length){
var name=(_bbe=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
this._handleDefaults(name+" failure\n "+err,"onExecError","debug");
}
},addOnLoad:function(obj,func){
this._pushOnStack(this._onLoadStack,obj,func);
},addOnUnload:function(obj,func){
this._pushOnStack(this._onUnloadStack,obj,func);
},addOnUnLoad:function(){
dojo.deprecated(this.widgetType+".addOnUnLoad, use addOnUnload instead. (lowercased Load)",0.5);
this.addOnUnload.apply(this,arguments);
},_pushOnStack:function(_bc8,obj,func){
if(typeof func=="undefined"){
_bc8.push(obj);
}else{
_bc8.push(function(){
obj[func]();
});
}
},destroy:function(){
this.onUnload();
dojo.widget.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,_bd2,_bd3){
if(!_bd2){
_bd2="onContentError";
}
if(dojo.lang.isString(e)){
e={text:e};
}
if(!e.text){
e.text=e.toString();
}
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[_bd2](e);
if(e.returnValue){
switch(_bd3){
case true:
case "alert":
alert(e.toString());
break;
case "debug":
dojo.debug(e.toString());
break;
default:
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=false;
if(arguments.callee._loopStop){
dojo.debug(e.toString());
}else{
arguments.callee._loopStop=true;
this._setContent(e.toString());
}
}
}
arguments.callee._loopStop=false;
},splitAndFixPaths:function(s,url){
var _bd6=[],_bd7=[],tmp=[];
var _bd9=[],_bda=[],attr=[],_bdc=[];
var str="",path="",fix="",_be0="",tag="",_be2="";
if(!url){
url="./";
}
if(s){
var _be3=/<title[^>]*>([\s\S]*?)<\/title>/i;
while(_bd9=_be3.exec(s)){
_bd6.push(_bd9[1]);
s=s.substring(0,_bd9.index)+s.substr(_bd9.index+_bd9[0].length);
}
if(this.adjustPaths){
var _be4=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
var _be5=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
var _be6=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
while(tag=_be4.exec(s)){
str+=s.substring(0,tag.index);
s=s.substring((tag.index+tag[0].length),s.length);
tag=tag[0];
_be0="";
while(attr=_be5.exec(tag)){
path="";
_be2=attr[3];
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(_be6.exec(_be2)){
path=_be2;
}else{
path=(new dojo.uri.Uri(url,_be2).toString());
}
break;
case "style":
path=dojo.html.fixPathsInCssText(_be2,url);
break;
default:
path=_be2;
}
fix=" "+attr[1]+"="+attr[2]+path+attr[2];
_be0+=tag.substring(0,attr.index)+fix;
tag=tag.substring((attr.index+attr[0].length),tag.length);
}
str+=_be0+tag;
}
s=str+s;
}
_be3=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
while(_bd9=_be3.exec(s)){
if(_bd9[1]&&_bd9[1].toLowerCase()=="style"){
_bdc.push(dojo.html.fixPathsInCssText(_bd9[2],url));
}else{
if(attr=_bd9[3].match(/href=(['"]?)([^'">]*)\1/i)){
_bdc.push({path:attr[2]});
}
}
s=s.substring(0,_bd9.index)+s.substr(_bd9.index+_bd9[0].length);
}
var _be3=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _be7=/src=(['"]?)([^"']*)\1/i;
var _be8=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
var _be9=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
var _bea=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
while(_bd9=_be3.exec(s)){
if(this.executeScripts&&_bd9[1]){
if(attr=_be7.exec(_bd9[1])){
if(_be8.exec(attr[2])){
dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");
}else{
_bd7.push({path:attr[2]});
}
}
}
if(_bd9[2]){
var sc=_bd9[2].replace(_be9,"");
if(!sc){
continue;
}
while(tmp=_bea.exec(sc)){
_bda.push(tmp[0]);
sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
}
if(this.executeScripts){
_bd7.push(sc);
}
}
s=s.substr(0,_bd9.index)+s.substr(_bd9.index+_bd9[0].length);
}
if(this.extractContent){
_bd9=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_bd9){
s=_bd9[1];
}
}
if(this.executeScripts&&this.scriptSeparation){
var _be3=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
var _bec=/([\s'";:\(])scriptScope(.*)/;
str="";
while(tag=_be3.exec(s)){
tmp=((tag[3]=="'")?"\"":"'");
fix="";
str+=s.substring(0,tag.index)+tag[1];
while(attr=_bec.exec(tag[2])){
tag[2]=tag[2].substring(0,attr.index)+attr[1]+"dojo.widget.byId("+tmp+this.widgetId+tmp+").scriptScope"+attr[2];
}
str+=tag[2];
s=s.substr(tag.index+tag[0].length);
}
s=str+s;
}
}
return {"xml":s,"styles":_bdc,"titles":_bd6,"requires":_bda,"scripts":_bd7,"url":url};
},_setContent:function(cont){
this.destroyChildren();
for(var i=0;i<this._styleNodes.length;i++){
if(this._styleNodes[i]&&this._styleNodes[i].parentNode){
this._styleNodes[i].parentNode.removeChild(this._styleNodes[i]);
}
}
this._styleNodes=[];
try{
var node=this.containerNode||this.domNode;
while(node.firstChild){
dojo.html.destroyNode(node.firstChild);
}
if(typeof cont!="string"){
node.appendChild(cont);
}else{
node.innerHTML=cont;
}
}
catch(e){
e.text="Couldn't load content:"+e.description;
this._handleDefaults(e,"onContentError");
}
},setContent:function(data){
this.abort();
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=true;
if(!data||dojo.html.isNode(data)){
this._setContent(data);
this.onResized();
this.onLoad();
}else{
if(typeof data.xml!="string"){
this.href="";
data=this.splitAndFixPaths(data);
}
this._setContent(data.xml);
for(var i=0;i<data.styles.length;i++){
if(data.styles[i].path){
this._styleNodes.push(dojo.html.insertCssFile(data.styles[i].path,dojo.doc(),false,true));
}else{
this._styleNodes.push(dojo.html.insertCssText(data.styles[i]));
}
}
if(this.parseContent){
for(var i=0;i<data.requires.length;i++){
try{
eval(data.requires[i]);
}
catch(e){
e.text="ContentPane: error in package loading calls, "+(e.description||e);
this._handleDefaults(e,"onContentError","debug");
}
}
}
var _bf2=this;
function asyncParse(){
if(_bf2.executeScripts){
_bf2._executeScripts(data.scripts);
}
if(_bf2.parseContent){
var node=_bf2.containerNode||_bf2.domNode;
var _bf4=new dojo.xml.Parse();
var frag=_bf4.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_bf2);
}
_bf2.onResized();
_bf2.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_bf6){
var fcn=dojo.lang.isFunction(_bf6)?_bf6:window[_bf6];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_bf6+"' not a function.","onExecError",true);
return;
}
this.handler=function(){
return fcn.apply(this,arguments);
};
},_runHandler:function(){
var ret=true;
if(dojo.lang.isFunction(this.handler)){
this.handler(this,this.domNode);
ret=false;
}
this.onLoad();
return ret;
},_executeScripts:function(_bf9){
var self=this;
var tmp="",code="";
for(var i=0;i<_bf9.length;i++){
if(_bf9[i].path){
dojo.io.bind(this._cacheSetting({"url":_bf9[i].path,"load":function(type,_bff){
dojo.lang.hitch(self,tmp=";"+_bff);
},"error":function(type,_c01){
_c01.text=type+" downloading remote script";
self._handleDefaults.call(self,_c01,"onExecError","debug");
},"mimetype":"text/plain","sync":true},this.cacheContent));
code+=tmp;
}else{
code+=_bf9[i];
}
}
try{
if(this.scriptSeparation){
delete this.scriptScope;
this.scriptScope=new (new Function("_container_",code+"; return this;"))(self);
}else{
var djg=dojo.global();
if(djg.execScript){
djg.execScript(code);
}else{
var djd=dojo.doc();
var sc=djd.createElement("script");
sc.appendChild(djd.createTextNode(code));
(this.containerNode||this.domNode).appendChild(sc);
}
}
}
catch(e){
e.text="Error running scripts from content:\n"+e.description;
this._handleDefaults(e,"onExecError","debug");
}
}});
dojo.provide("dojo.widget.Dialog");
dojo.declare("dojo.widget.ModalDialogBase",null,{isContainer:true,focusElement:"",bgColor:"black",bgOpacity:0.4,followScroll:true,closeOnBackgroundClick:false,minimumX:5,minimumY:50,trapTabs:function(e){
if(e.target==this.tabStartOuter){
if(this._fromTrap){
this.tabStart.focus();
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabEnd.focus();
}
}else{
if(e.target==this.tabStart){
if(this._fromTrap){
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabEnd.focus();
}
}else{
if(e.target==this.tabEndOuter){
if(this._fromTrap){
this.tabEnd.focus();
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabStart.focus();
}
}else{
if(e.target==this.tabEnd){
if(this._fromTrap){
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabStart.focus();
}
}
}
}
}
},clearTrap:function(e){
var _c07=this;
setTimeout(function(){
_c07._fromTrap=false;
},100);
},postCreate:function(){
with(this.domNode.style){
position="absolute";
zIndex=999;
display="none";
overflow="visible";
}
var b=dojo.body();
b.appendChild(this.domNode);
this.bg=document.createElement("div");
this.bg.className="dialogUnderlay";
with(this.bg.style){
position="absolute";
left=top="0px";
zIndex=998;
display="none";
}
b.appendChild(this.bg);
this.setBackgroundColor(this.bgColor);
this.bgIframe=new dojo.html.BackgroundIframe();
if(this.bgIframe.iframe){
with(this.bgIframe.iframe.style){
position="absolute";
left=top="0px";
zIndex=90;
display="none";
}
}
if(this.closeOnBackgroundClick){
dojo.event.kwConnect({srcObj:this.bg,srcFunc:"onclick",adviceObj:this,adviceFunc:"onBackgroundClick",once:true});
}
},uninitialize:function(){
this.bgIframe.remove();
dojo.html.removeNode(this.bg,true);
},setBackgroundColor:function(_c09){
if(arguments.length>=3){
_c09=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]);
}else{
_c09=new dojo.gfx.color.Color(_c09);
}
this.bg.style.backgroundColor=_c09.toString();
return this.bgColor=_c09;
},setBackgroundOpacity:function(op){
if(arguments.length==0){
op=this.bgOpacity;
}
dojo.html.setOpacity(this.bg,op);
try{
this.bgOpacity=dojo.html.getOpacity(this.bg);
}
catch(e){
this.bgOpacity=op;
}
return this.bgOpacity;
},_sizeBackground:function(){
if(this.bgOpacity>0){
var _c0b=dojo.html.getViewport();
var h=_c0b.height;
var w=_c0b.width;
with(this.bg.style){
width=w+"px";
height=h+"px";
}
var _c0e=dojo.html.getScroll().offset;
this.bg.style.top=_c0e.y+"px";
this.bg.style.left=_c0e.x+"px";
var _c0b=dojo.html.getViewport();
if(_c0b.width!=w){
this.bg.style.width=_c0b.width+"px";
}
if(_c0b.height!=h){
this.bg.style.height=_c0b.height+"px";
}
}
this.bgIframe.size(this.bg);
},_showBackground:function(){
if(this.bgOpacity>0){
this.bg.style.display="block";
}
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="block";
}
},placeModalDialog:function(){
var _c0f=dojo.html.getScroll().offset;
var _c10=dojo.html.getViewport();
var mb;
if(this.isShowing()){
mb=dojo.html.getMarginBox(this.domNode);
}else{
dojo.html.setVisibility(this.domNode,false);
dojo.html.show(this.domNode);
mb=dojo.html.getMarginBox(this.domNode);
dojo.html.hide(this.domNode);
dojo.html.setVisibility(this.domNode,true);
}
var x=_c0f.x+(_c10.width-mb.width)/2;
var y=_c0f.y+(_c10.height-mb.height)/2;
dojo.debug("minimum("+this.minimumX+","+this.minimumY+") actual("+x+","+y+")");
if(x<this.minimumX+_c0f.x){
x=this.minimumX+_c0f.x;
}
if(y<this.minimumY+_c0f.y){
y=this.minimumY+_c0f.x;
}
dojo.debug("new("+x+","+y+") "+_c0f.y);
with(this.domNode.style){
left=x+"px";
top=y+"px";
}
},_onKey:function(evt){
if(evt.key){
var node=evt.target;
while(node!=null){
if(node==this.domNode){
return;
}
node=node.parentNode;
}
if(evt.key!=evt.KEY_TAB){
dojo.event.browser.stopEvent(evt);
}else{
if(!dojo.render.html.opera){
try{
this.tabStart.focus();
}
catch(e){
}
}
}
}
},showModalDialog:function(){
if(!this._scrollConnected){
this._scrollConnected=true;
if(this.followScroll){
dojo.event.connect(window,"onscroll",this,"_onScroll");
}else{
dojo.event.connect(window,"onscroll",this,"_onScrollHoldDialog");
}
}
dojo.event.connect(document.documentElement,"onkey",this,"_onKey");
this.placeModalDialog();
this.setBackgroundOpacity();
this._sizeBackground();
this._showBackground();
this._fromTrap=true;
setTimeout(dojo.lang.hitch(this,function(){
try{
this.tabStart.focus();
}
catch(e){
}
}),50);
},hideModalDialog:function(){
if(this.focusElement){
dojo.byId(this.focusElement).focus();
dojo.byId(this.focusElement).blur();
}
this.bg.style.display="none";
this.bg.style.width=this.bg.style.height="1px";
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
dojo.event.disconnect(document.documentElement,"onkey",this,"_onKey");
if(this._scrollConnected){
this._scrollConnected=false;
if(this.followScroll){
dojo.event.disconnect(window,"onscroll",this,"_onScroll");
}else{
dojo.event.disconnect(window,"onscroll",this,"_onScrollHoldDialog");
}
}
},_onScroll:function(){
var _c16=dojo.html.getScroll().offset;
this.bg.style.top=_c16.y+"px";
this.bg.style.left=_c16.x+"px";
this.placeModalDialog();
},_onScrollHoldDialog:function(){
var _c17=dojo.html.getScroll().offset;
this.bg.style.top=_c17.y+"px";
this.bg.style.left=_c17.x+"px";
},checkSize:function(){
if(this.isShowing()){
this._sizeBackground();
this.placeModalDialog();
this.onResized();
}
},onBackgroundClick:function(){
if(this.lifetime-this.timeRemaining>=this.blockDuration){
return;
}
this.hide();
}});
dojo.widget.defineWidget("dojo.widget.Dialog",[dojo.widget.ContentPane,dojo.widget.ModalDialogBase],{templateString:"<div id=\"${this.widgetId}\" class=\"dojoDialog\" dojoattachpoint=\"wrapper\">\n	<span dojoattachpoint=\"tabStartOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\"	tabindex=\"0\"></span>\n	<span dojoattachpoint=\"tabStart\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n	<div dojoattachpoint=\"containerNode\" style=\"position: relative; z-index: 2;\"></div>\n	<span dojoattachpoint=\"tabEnd\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n	<span dojoattachpoint=\"tabEndOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n</div>\n",blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){
dojo.widget.Dialog.superclass.postMixInProperties.apply(this,arguments);
if(this.closeNode){
this.setCloseControl(this.closeNode);
}
},postCreate:function(){
dojo.widget.Dialog.superclass.postCreate.apply(this,arguments);
dojo.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments);
},show:function(){
if(this.lifetime){
this.timeRemaining=this.lifetime;
if(this.timerNode){
this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
}
if(this.blockDuration&&this.closeNode){
if(this.lifetime>this.blockDuration){
this.closeNode.style.visibility="hidden";
}else{
this.closeNode.style.display="none";
}
}
if(this.timer){
clearInterval(this.timer);
}
this.timer=setInterval(dojo.lang.hitch(this,"_onTick"),100);
}
this.showModalDialog();
dojo.widget.Dialog.superclass.show.call(this);
},onLoad:function(){
this.placeModalDialog();
dojo.widget.Dialog.superclass.onLoad.call(this);
},fillInTemplate:function(){
},hide:function(){
this.hideModalDialog();
dojo.widget.Dialog.superclass.hide.call(this);
if(this.timer){
clearInterval(this.timer);
}
},setTimerNode:function(node){
this.timerNode=node;
},setCloseControl:function(node){
this.closeNode=dojo.byId(node);
dojo.event.connect(this.closeNode,"onclick",this,"hide");
},setShowControl:function(node){
node=dojo.byId(node);
dojo.event.connect(node,"onclick",this,"show");
},_onTick:function(){
if(this.timer){
this.timeRemaining-=100;
if(this.lifetime-this.timeRemaining>=this.blockDuration){
if(this.closeNode){
this.closeNode.style.visibility="visible";
}
}
if(!this.timeRemaining){
clearInterval(this.timer);
this.hide();
}else{
if(this.timerNode){
this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
}
}
}
}});
dojo.provide("dojo.widget.DropdownContainer");
dojo.widget.defineWidget("dojo.widget.DropdownContainer",dojo.widget.HtmlWidget,{inputWidth:"7em",id:"",inputId:"",inputName:"",iconURL:dojo.uri.dojoUri("src/widget/templates/images/combo_box_arrow.png"),copyClasses:false,iconAlt:"",containerToggle:"plain",containerToggleDuration:150,templateString:"<span style=\"white-space:nowrap\"><input type=\"hidden\" name=\"\" value=\"\" dojoAttachPoint=\"valueNode\" /><input name=\"\" type=\"text\" value=\"\" style=\"vertical-align:middle;\" dojoAttachPoint=\"inputNode\" autocomplete=\"off\" /> <img src=\"${this.iconURL}\" alt=\"${this.iconAlt}\" dojoAttachEvent=\"onclick:onIconClick\" dojoAttachPoint=\"buttonNode\" style=\"vertical-align:middle; cursor:pointer; cursor:hand\" /></span>",templateCssPath:"",isContainer:true,attachTemplateNodes:function(){
dojo.widget.DropdownContainer.superclass.attachTemplateNodes.apply(this,arguments);
this.popup=dojo.widget.createWidget("PopupContainer",{toggle:this.containerToggle,toggleDuration:this.containerToggleDuration});
this.containerNode=this.popup.domNode;
},fillInTemplate:function(args,frag){
this.domNode.appendChild(this.popup.domNode);
if(this.id){
this.domNode.id=this.id;
}
if(this.inputId){
this.inputNode.id=this.inputId;
}
if(this.inputName){
this.inputNode.name=this.inputName;
}
this.inputNode.style.width=this.inputWidth;
this.inputNode.disabled=this.disabled;
if(this.copyClasses){
this.inputNode.style="";
this.inputNode.className=this.getFragNodeRef(frag).className;
}
dojo.event.connect(this.inputNode,"onchange",this,"onInputChange");
},onIconClick:function(evt){
if(this.disabled){
return;
}
if(!this.popup.isShowingNow){
this.popup.open(this.inputNode,this,this.buttonNode);
}else{
this.popup.close();
}
},hideContainer:function(){
if(this.popup.isShowingNow){
this.popup.close();
}
},onInputChange:function(){
},enable:function(){
this.inputNode.disabled=false;
dojo.widget.DropdownContainer.superclass.enable.apply(this,arguments);
},disable:function(){
this.inputNode.disabled=true;
dojo.widget.DropdownContainer.superclass.disable.apply(this,arguments);
}});
dojo.provide("dojo.date.common");
dojo.date.setDayOfYear=function(_c1e,_c1f){
_c1e.setMonth(0);
_c1e.setDate(_c1f);
return _c1e;
};
dojo.date.getDayOfYear=function(_c20){
var _c21=_c20.getFullYear();
var _c22=new Date(_c21-1,11,31);
return Math.floor((_c20.getTime()-_c22.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_c23,week,_c25){
if(arguments.length==1){
_c25=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_c26,_c27){
if(arguments.length==1){
_c27=0;
}
var _c28=new Date(_c26.getFullYear(),0,1);
var day=_c28.getDay();
_c28.setDate(_c28.getDate()-day+_c27-(day>_c27?7:0));
return Math.floor((_c26.getTime()-_c28.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_c2a,week,_c2c){
if(arguments.length==1){
_c2c=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_c2d,_c2e){
if(arguments.length==1){
_c2e=1;
}
dojo.unimplemented("dojo.date.getIsoWeekOfYear");
};
dojo.date.shortTimezones=["IDLW","BET","HST","MART","AKST","PST","MST","CST","EST","AST","NFT","BST","FST","AT","GMT","CET","EET","MSK","IRT","GST","AFT","AGTT","IST","NPT","ALMT","MMT","JT","AWST","JST","ACST","AEST","LHST","VUT","NFT","NZT","CHAST","PHOT","LINT"];
dojo.date.timezoneOffsets=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,540,570,600,630,660,690,720,765,780,840];
dojo.date.getDaysInMonth=function(_c2f){
var _c30=_c2f.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_c30==1&&dojo.date.isLeapYear(_c2f)){
return 29;
}else{
return days[_c30];
}
};
dojo.date.isLeapYear=function(_c32){
var year=_c32.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_c34){
var str=_c34.toString();
var tz="";
var _c37;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_c37=str.match(pat))){
tz=_c37[1];
}else{
str=_c34.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_c37=str.match(pat))){
tz=_c37[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_c3a){
var date=_c3a.getDate();
if(date%100!=11&&date%10==1){
return "st";
}else{
if(date%100!=12&&date%10==2){
return "nd";
}else{
if(date%100!=13&&date%10==3){
return "rd";
}else{
return "th";
}
}
}
};
dojo.date.compareTypes={DATE:1,TIME:2};
dojo.date.compare=function(_c3c,_c3d,_c3e){
var dA=_c3c;
var dB=_c3d||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_c3e||(DATE|TIME);
var d1=new Date((opt&DATE)?dA.getFullYear():now.getFullYear(),(opt&DATE)?dA.getMonth():now.getMonth(),(opt&DATE)?dA.getDate():now.getDate(),(opt&TIME)?dA.getHours():0,(opt&TIME)?dA.getMinutes():0,(opt&TIME)?dA.getSeconds():0);
var d2=new Date((opt&DATE)?dB.getFullYear():now.getFullYear(),(opt&DATE)?dB.getMonth():now.getMonth(),(opt&DATE)?dB.getDate():now.getDate(),(opt&TIME)?dB.getHours():0,(opt&TIME)?dB.getMinutes():0,(opt&TIME)?dB.getSeconds():0);
}
if(d1.valueOf()>d2.valueOf()){
return 1;
}
if(d1.valueOf()<d2.valueOf()){
return -1;
}
return 0;
};
dojo.date.dateParts={YEAR:0,MONTH:1,DAY:2,HOUR:3,MINUTE:4,SECOND:5,MILLISECOND:6,QUARTER:7,WEEK:8,WEEKDAY:9};
dojo.date.add=function(dt,_c46,incr){
if(typeof dt=="number"){
dt=new Date(dt);
}
function fixOvershoot(){
if(sum.getDate()<dt.getDate()){
sum.setDate(0);
}
}
var sum=new Date(dt);
with(dojo.date.dateParts){
switch(_c46){
case YEAR:
sum.setFullYear(dt.getFullYear()+incr);
fixOvershoot();
break;
case QUARTER:
incr*=3;
case MONTH:
sum.setMonth(dt.getMonth()+incr);
fixOvershoot();
break;
case WEEK:
incr*=7;
case DAY:
sum.setDate(dt.getDate()+incr);
break;
case WEEKDAY:
var dat=dt.getDate();
var _c4a=0;
var days=0;
var strt=0;
var trgt=0;
var adj=0;
var mod=incr%5;
if(mod==0){
days=(incr>0)?5:-5;
_c4a=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_c4a=parseInt(incr/5);
}
strt=dt.getDay();
if(strt==6&&incr>0){
adj=1;
}else{
if(strt==0&&incr<0){
adj=-1;
}
}
trgt=(strt+days);
if(trgt==0||trgt==6){
adj=(incr>0)?2:-2;
}
sum.setDate(dat+(7*_c4a)+days+adj);
break;
case HOUR:
sum.setHours(sum.getHours()+incr);
break;
case MINUTE:
sum.setMinutes(sum.getMinutes()+incr);
break;
case SECOND:
sum.setSeconds(sum.getSeconds()+incr);
break;
case MILLISECOND:
sum.setMilliseconds(sum.getMilliseconds()+incr);
break;
default:
break;
}
}
return sum;
};
dojo.date.diff=function(dtA,dtB,_c52){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _c53=dtB.getFullYear()-dtA.getFullYear();
var _c54=(dtB.getMonth()-dtA.getMonth())+(_c53*12);
var _c55=dtB.getTime()-dtA.getTime();
var _c56=_c55/1000;
var _c57=_c56/60;
var _c58=_c57/60;
var _c59=_c58/24;
var _c5a=_c59/7;
var _c5b=0;
with(dojo.date.dateParts){
switch(_c52){
case YEAR:
_c5b=_c53;
break;
case QUARTER:
var mA=dtA.getMonth();
var mB=dtB.getMonth();
var qA=Math.floor(mA/3)+1;
var qB=Math.floor(mB/3)+1;
qB+=(_c53*4);
_c5b=qB-qA;
break;
case MONTH:
_c5b=_c54;
break;
case WEEK:
_c5b=parseInt(_c5a);
break;
case DAY:
_c5b=_c59;
break;
case WEEKDAY:
var days=Math.round(_c59);
var _c61=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_c61*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_c61=parseInt(days/7);
mod=days%7;
var _c66=new Date(dtA);
_c66.setDate(_c66.getDate()+(_c61*7));
var _c67=_c66.getDay();
if(_c59>0){
switch(true){
case aDay==6:
adj=-1;
break;
case aDay==0:
adj=0;
break;
case bDay==6:
adj=-1;
break;
case bDay==0:
adj=-2;
break;
case (_c67+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_c59<0){
switch(true){
case aDay==6:
adj=0;
break;
case aDay==0:
adj=1;
break;
case bDay==6:
adj=2;
break;
case bDay==0:
adj=1;
break;
case (_c67+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_c61*2);
}
_c5b=days;
break;
case HOUR:
_c5b=_c58;
break;
case MINUTE:
_c5b=_c57;
break;
case SECOND:
_c5b=_c56;
break;
case MILLISECOND:
_c5b=_c55;
break;
default:
break;
}
}
return Math.round(_c5b);
};
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_c68){
var _c69={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,gb:0,sy:4};
_c68=dojo.hostenv.normalizeLocale(_c68);
var _c6a=_c68.split("-")[1];
var dow=_c69[_c6a];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_c6c){
var _c6d={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};
var _c6e={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};
_c6c=dojo.hostenv.normalizeLocale(_c6c);
var _c6f=_c6c.split("-")[1];
var _c70=_c6d[_c6f];
var end=_c6e[_c6f];
if(typeof _c70=="undefined"){
_c70=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:_c70,end:end};
};
dojo.date.isWeekend=function(_c72,_c73){
var _c74=dojo.date.getWeekend(_c73);
var day=(_c72||new Date()).getDay();
if(_c74.end<_c74.start){
_c74.end+=7;
if(day<_c74.start){
day+=7;
}
}
return day>=_c74.start&&day<=_c74.end;
};
dojo.provide("dojo.i18n.common");
dojo.i18n.getLocalization=function(_c76,_c77,_c78){
dojo.hostenv.preloadLocalizations();
_c78=dojo.hostenv.normalizeLocale(_c78);
var _c79=_c78.split("-");
var _c7a=[_c76,"nls",_c77].join(".");
var _c7b=dojo.hostenv.findModule(_c7a,true);
var _c7c;
for(var i=_c79.length;i>0;i--){
var loc=_c79.slice(0,i).join("_");
if(_c7b[loc]){
_c7c=_c7b[loc];
break;
}
}
if(!_c7c){
_c7c=_c7b.ROOT;
}
if(_c7c){
var _c7f=function(){
};
_c7f.prototype=_c7c;
return new _c7f();
}
dojo.raise("Bundle not found: "+_c77+" in "+_c76+" , locale="+_c78);
};
dojo.i18n.isLTR=function(_c80){
var lang=dojo.hostenv.normalizeLocale(_c80).split("-")[0];
var RTL={ar:true,fa:true,he:true,ur:true,yi:true};
return !RTL[lang];
};
dojo.provide("dojo.date.format");
(function(){
dojo.date.format=function(_c83,_c84){
if(typeof _c84=="string"){
dojo.deprecated("dojo.date.format","To format dates with POSIX-style strings, please use dojo.date.strftime instead","0.5");
return dojo.date.strftime(_c83,_c84);
}
function formatPattern(_c85,_c86){
return _c86.replace(/([a-z])\1*/ig,function(_c87){
var s;
var c=_c87.charAt(0);
var l=_c87.length;
var pad;
var _c8c=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_c85.getFullYear()<0?1:0];
break;
case "y":
s=_c85.getFullYear();
switch(l){
case 1:
break;
case 2:
s=String(s).substr(-2);
break;
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_c85.getMonth()+1)/3);
switch(l){
case 1:
case 2:
pad=true;
break;
case 3:
case 4:
dojo.unimplemented("Quarter format not implemented");
}
break;
case "M":
case "L":
var m=_c85.getMonth();
var _c8f;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
_c8f=_c8c[l-3];
break;
}
if(_c8f){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,_c8f].join("-");
s=info[prop][m];
}
break;
case "w":
var _c92=0;
s=dojo.date.getWeekOfYear(_c85,_c92);
pad=true;
break;
case "d":
s=_c85.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_c85);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_c85.getDay();
var _c8f;
switch(l){
case 1:
case 2:
if(c=="e"){
var _c94=dojo.date.getFirstDayOfWeek(_c84.locale);
d=(d-_c94+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
_c8f=_c8c[l-3];
break;
}
if(_c8f){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,_c8f].join("-");
s=info[prop][d];
}
break;
case "a":
var _c95=(_c85.getHours()<12)?"am":"pm";
s=info[_c95];
break;
case "h":
case "H":
case "K":
case "k":
var h=_c85.getHours();
switch(c){
case "h":
s=(h%12)||12;
break;
case "H":
s=h;
break;
case "K":
s=(h%12);
break;
case "k":
s=h||24;
break;
}
pad=true;
break;
case "m":
s=_c85.getMinutes();
pad=true;
break;
case "s":
s=_c85.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_c85.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_c85);
if(s){
break;
}
l=4;
case "Z":
var _c97=_c85.getTimezoneOffset();
var tz=[(_c97<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_c97)/60),2),dojo.string.pad(Math.abs(_c97)%60,2)];
if(l==4){
tz.splice(0,0,"GMT");
tz.splice(3,0,":");
}
s=tz.join("");
break;
case "Y":
case "u":
case "W":
case "F":
case "g":
case "A":
dojo.debug(_c87+" modifier not yet implemented");
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_c86);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_c84=_c84||{};
var _c99=dojo.hostenv.normalizeLocale(_c84.locale);
var _c9a=_c84.formatLength||"full";
var info=dojo.date._getGregorianBundle(_c99);
var str=[];
var _c9c=dojo.lang.curry(this,formatPattern,_c83);
if(_c84.selector!="timeOnly"){
var _c9d=_c84.datePattern||info["dateFormat-"+_c9a];
if(_c9d){
str.push(_processPattern(_c9d,_c9c));
}
}
if(_c84.selector!="dateOnly"){
var _c9e=_c84.timePattern||info["timeFormat-"+_c9a];
if(_c9e){
str.push(_processPattern(_c9e,_c9c));
}
}
var _c9f=str.join(" ");
return _c9f;
};
dojo.date.parse=function(_ca0,_ca1){
_ca1=_ca1||{};
var _ca2=dojo.hostenv.normalizeLocale(_ca1.locale);
var info=dojo.date._getGregorianBundle(_ca2);
var _ca4=_ca1.formatLength||"full";
if(!_ca1.selector){
_ca1.selector="dateOnly";
}
var _ca5=_ca1.datePattern||info["dateFormat-"+_ca4];
var _ca6=_ca1.timePattern||info["timeFormat-"+_ca4];
var _ca7;
if(_ca1.selector=="dateOnly"){
_ca7=_ca5;
}else{
if(_ca1.selector=="timeOnly"){
_ca7=_ca6;
}else{
if(_ca1.selector=="dateTime"){
_ca7=_ca5+" "+_ca6;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_ca1.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_ca7=_ca5;
}
}
}
var _ca9=[];
var _caa=_processPattern(_ca7,dojo.lang.curry(this,_buildDateTimeRE,_ca9,info,_ca1));
var _cab=new RegExp("^"+_caa+"$");
var _cac=_cab.exec(_ca0);
if(!_cac){
return null;
}
var _cad=["abbr","wide","narrow"];
var _cae=new Date(1972,0);
var _caf={};
for(var i=1;i<_cac.length;i++){
var grp=_ca9[i-1];
var l=grp.length;
var v=_cac[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_cae.setFullYear(v);
_caf.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _cb5=year.substring(0,2)*100;
var _cb6=Number(year.substring(2,4));
var _cb7=Math.min(_cb6+20,99);
var num=(v<_cb7)?_cb5+v:_cb5-100+v;
_cae.setFullYear(num);
_caf.year=num;
}else{
if(_ca1.strict){
return null;
}
_cae.setFullYear(v);
_caf.year=v;
}
}
break;
case "M":
if(l>2){
if(!_ca1.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _cb9=info["months-format-"+_cad[l-3]].concat();
for(var j=0;j<_cb9.length;j++){
if(!_ca1.strict){
_cb9[j]=_cb9[j].toLowerCase();
}
if(v==_cb9[j]){
_cae.setMonth(j);
_caf.month=j;
break;
}
}
if(j==_cb9.length){
dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'.");
return null;
}
}else{
_cae.setMonth(v-1);
_caf.month=v-1;
}
break;
case "E":
case "e":
if(!_ca1.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_cad[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_ca1.strict){
days[j]=days[j].toLowerCase();
}
if(v==days[j]){
break;
}
}
if(j==days.length){
dojo.debug("dojo.date.parse: Could not parse weekday name: '"+v+"'.");
return null;
}
break;
case "d":
_cae.setDate(v);
_caf.date=v;
break;
case "a":
var am=_ca1.am||info.am;
var pm=_ca1.pm||info.pm;
if(!_ca1.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_ca1.strict&&v!=am&&v!=pm){
dojo.debug("dojo.date.parse: Could not parse am/pm part.");
return null;
}
var _cbe=_cae.getHours();
if(v==pm&&_cbe<12){
_cae.setHours(_cbe+12);
}else{
if(v==am&&_cbe==12){
_cae.setHours(0);
}
}
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
dojo.debug("dojo.date.parse: Illegal hours value");
return null;
}
_cae.setHours(v);
break;
case "m":
_cae.setMinutes(v);
break;
case "s":
_cae.setSeconds(v);
break;
case "S":
_cae.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_caf.year&&_cae.getFullYear()!=_caf.year){
dojo.debug("Parsed year: '"+_cae.getFullYear()+"' did not match input year: '"+_caf.year+"'.");
return null;
}
if(_caf.month&&_cae.getMonth()!=_caf.month){
dojo.debug("Parsed month: '"+_cae.getMonth()+"' did not match input month: '"+_caf.month+"'.");
return null;
}
if(_caf.date&&_cae.getDate()!=_caf.date){
dojo.debug("Parsed day of month: '"+_cae.getDate()+"' did not match input day of month: '"+_caf.date+"'.");
return null;
}
return _cae;
};
function _processPattern(_cbf,_cc0,_cc1,_cc2){
var _cc3=function(x){
return x;
};
_cc0=_cc0||_cc3;
_cc1=_cc1||_cc3;
_cc2=_cc2||_cc3;
var _cc5=_cbf.match(/(''|[^'])+/g);
var _cc6=false;
for(var i=0;i<_cc5.length;i++){
if(!_cc5[i]){
_cc5[i]="";
}else{
_cc5[i]=(_cc6?_cc1:_cc0)(_cc5[i]);
_cc6=!_cc6;
}
}
return _cc2(_cc5.join(""));
}
function _buildDateTimeRE(_cc8,info,_cca,_ccb){
return _ccb.replace(/([a-z])\1*/ig,function(_ccc){
var s;
var c=_ccc.charAt(0);
var l=_ccc.length;
switch(c){
case "y":
s="\\d"+((l==2)?"{2,4}":"+");
break;
case "M":
s=(l>2)?"\\S+":"\\d{1,2}";
break;
case "d":
s="\\d{1,2}";
break;
case "E":
s="\\S+";
break;
case "h":
case "H":
case "K":
case "k":
s="\\d{1,2}";
break;
case "m":
case "s":
s="[0-5]\\d";
break;
case "S":
s="\\d{1,3}";
break;
case "a":
var am=_cca.am||info.am||"AM";
var pm=_cca.pm||info.pm||"PM";
if(_cca.strict){
s=am+"|"+pm;
}else{
s=am;
s+=(am!=am.toLowerCase())?"|"+am.toLowerCase():"";
s+="|";
s+=(pm!=pm.toLowerCase())?pm+"|"+pm.toLowerCase():pm;
}
break;
default:
dojo.unimplemented("parse of date format, pattern="+_ccb);
}
if(_cc8){
_cc8.push(_ccc);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_cd2,_cd3,_cd4){
var _cd5=null;
function _(s,n){
return dojo.string.pad(s,n||2,_cd5||"0");
}
var info=dojo.date._getGregorianBundle(_cd4);
function $(_cd9){
switch(_cd9){
case "a":
return dojo.date.getDayShortName(_cd2,_cd4);
case "A":
return dojo.date.getDayName(_cd2,_cd4);
case "b":
case "h":
return dojo.date.getMonthShortName(_cd2,_cd4);
case "B":
return dojo.date.getMonthName(_cd2,_cd4);
case "c":
return dojo.date.format(_cd2,{locale:_cd4});
case "C":
return _(Math.floor(_cd2.getFullYear()/100));
case "d":
return _(_cd2.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_cd5==null){
_cd5=" ";
}
return _(_cd2.getDate());
case "f":
if(_cd5==null){
_cd5=" ";
}
return _(_cd2.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_cd2.getHours());
case "I":
return _(_cd2.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_cd2),3);
case "k":
if(_cd5==null){
_cd5=" ";
}
return _(_cd2.getHours());
case "l":
if(_cd5==null){
_cd5=" ";
}
return _(_cd2.getHours()%12||12);
case "m":
return _(_cd2.getMonth()+1);
case "M":
return _(_cd2.getMinutes());
case "n":
return "\n";
case "p":
return info[_cd2.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_cd2.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_cd2.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_cd2));
case "V":
return _(dojo.date.getIsoWeekOfYear(_cd2));
case "W":
return _(dojo.date.getWeekOfYear(_cd2,1));
case "w":
return String(_cd2.getDay());
case "x":
return dojo.date.format(_cd2,{selector:"dateOnly",locale:_cd4});
case "X":
return dojo.date.format(_cd2,{selector:"timeOnly",locale:_cd4});
case "y":
return _(_cd2.getFullYear()%100);
case "Y":
return String(_cd2.getFullYear());
case "z":
var _cda=_cd2.getTimezoneOffset();
return (_cda>0?"-":"+")+_(Math.floor(Math.abs(_cda)/60))+":"+_(Math.abs(_cda)%60);
case "Z":
return dojo.date.getTimezoneName(_cd2);
case "%":
return "%";
}
}
var _cdb="";
var i=0;
var _cdd=0;
var _cde=null;
while((_cdd=_cd3.indexOf("%",i))!=-1){
_cdb+=_cd3.substring(i,_cdd++);
switch(_cd3.charAt(_cdd++)){
case "_":
_cd5=" ";
break;
case "-":
_cd5="";
break;
case "0":
_cd5="0";
break;
case "^":
_cde="upper";
break;
case "*":
_cde="lower";
break;
case "#":
_cde="swap";
break;
default:
_cd5=null;
_cdd--;
break;
}
var _cdf=$(_cd3.charAt(_cdd++));
switch(_cde){
case "upper":
_cdf=_cdf.toUpperCase();
break;
case "lower":
_cdf=_cdf.toLowerCase();
break;
case "swap":
var _ce0=_cdf.toLowerCase();
var _ce1="";
var j=0;
var ch="";
while(j<_cdf.length){
ch=_cdf.charAt(j);
_ce1+=(ch==_ce0.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_cdf=_ce1;
break;
default:
break;
}
_cde=null;
_cdb+=_cdf;
i=_cdd;
}
_cdb+=_cd3.substring(i);
return _cdb;
};
(function(){
var _ce4=[];
dojo.date.addCustomFormats=function(_ce5,_ce6){
_ce4.push({pkg:_ce5,name:_ce6});
};
dojo.date._getGregorianBundle=function(_ce7){
var _ce8={};
dojo.lang.forEach(_ce4,function(desc){
var _cea=dojo.i18n.getLocalization(desc.pkg,desc.name,_ce7);
_ce8=dojo.lang.mixin(_ce8,_cea);
},this);
return _ce8;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");
dojo.date.getNames=function(item,type,use,_cee){
var _cef;
var _cf0=dojo.date._getGregorianBundle(_cee);
var _cf1=[item,use,type];
if(use=="standAlone"){
_cef=_cf0[_cf1.join("-")];
}
_cf1[1]="format";
return (_cef||_cf0[_cf1.join("-")]).concat();
};
dojo.date.getDayName=function(_cf2,_cf3){
return dojo.date.getNames("days","wide","format",_cf3)[_cf2.getDay()];
};
dojo.date.getDayShortName=function(_cf4,_cf5){
return dojo.date.getNames("days","abbr","format",_cf5)[_cf4.getDay()];
};
dojo.date.getMonthName=function(_cf6,_cf7){
return dojo.date.getNames("months","wide","format",_cf7)[_cf6.getMonth()];
};
dojo.date.getMonthShortName=function(_cf8,_cf9){
return dojo.date.getNames("months","abbr","format",_cf9)[_cf8.getMonth()];
};
dojo.date.toRelativeString=function(_cfa){
var now=new Date();
var diff=(now-_cfa)/1000;
var end=" ago";
var _cfe=false;
if(diff<0){
_cfe=true;
end=" from now";
diff=-diff;
}
if(diff<60){
diff=Math.round(diff);
return diff+" second"+(diff==1?"":"s")+end;
}
if(diff<60*60){
diff=Math.round(diff/60);
return diff+" minute"+(diff==1?"":"s")+end;
}
if(diff<60*60*24){
diff=Math.round(diff/3600);
return diff+" hour"+(diff==1?"":"s")+end;
}
if(diff<60*60*24*7){
diff=Math.round(diff/(3600*24));
if(diff==1){
return _cfe?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_cfa);
};
dojo.date.toSql=function(_cff,_d00){
return dojo.date.strftime(_cff,"%F"+!_d00?" %T":"");
};
dojo.date.fromSql=function(_d01){
var _d02=_d01.split(/[\- :]/g);
while(_d02.length<6){
_d02.push(0);
}
return new Date(_d02[0],(parseInt(_d02[1],10)-1),_d02[2],_d02[3],_d02[4],_d02[5]);
};
dojo.provide("dojo.date.serialize");
dojo.date.setIso8601=function(_d03,_d04){
var _d05=(_d04.indexOf("T")==-1)?_d04.split(" "):_d04.split("T");
_d03=dojo.date.setIso8601Date(_d03,_d05[0]);
if(_d05.length==2){
_d03=dojo.date.setIso8601Time(_d03,_d05[1]);
}
return _d03;
};
dojo.date.fromIso8601=function(_d06){
return dojo.date.setIso8601(new Date(0,0),_d06);
};
dojo.date.setIso8601Date=function(_d07,_d08){
var _d09="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_d08.match(new RegExp(_d09));
if(!d){
dojo.debug("invalid date string: "+_d08);
return null;
}
var year=d[1];
var _d0c=d[4];
var date=d[6];
var _d0e=d[8];
var week=d[10];
var _d10=d[12]?d[12]:1;
_d07.setFullYear(year);
if(_d0e){
_d07.setMonth(0);
_d07.setDate(Number(_d0e));
}else{
if(week){
_d07.setMonth(0);
_d07.setDate(1);
var gd=_d07.getDay();
var day=gd?gd:7;
var _d13=Number(_d10)+(7*Number(week));
if(day<=4){
_d07.setDate(_d13+1-day);
}else{
_d07.setDate(_d13+8-day);
}
}else{
if(_d0c){
_d07.setDate(1);
_d07.setMonth(_d0c-1);
}
if(date){
_d07.setDate(date);
}
}
}
return _d07;
};
dojo.date.fromIso8601Date=function(_d14){
return dojo.date.setIso8601Date(new Date(0,0),_d14);
};
dojo.date.setIso8601Time=function(_d15,_d16){
var _d17="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_d16.match(new RegExp(_d17));
var _d19=0;
if(d){
if(d[0]!="Z"){
_d19=(Number(d[3])*60)+Number(d[5]);
_d19*=((d[2]=="-")?1:-1);
}
_d19-=_d15.getTimezoneOffset();
_d16=_d16.substr(0,_d16.length-d[0].length);
}
var _d1a="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
d=_d16.match(new RegExp(_d1a));
if(!d){
dojo.debug("invalid time string: "+_d16);
return null;
}
var _d1b=d[1];
var mins=Number((d[3])?d[3]:0);
var secs=(d[5])?d[5]:0;
var ms=d[7]?(Number("0."+d[7])*1000):0;
_d15.setHours(_d1b);
_d15.setMinutes(mins);
_d15.setSeconds(secs);
_d15.setMilliseconds(ms);
if(_d19!==0){
_d15.setTime(_d15.getTime()+_d19*60000);
}
return _d15;
};
dojo.date.fromIso8601Time=function(_d1f){
return dojo.date.setIso8601Time(new Date(0,0),_d1f);
};
dojo.date.toRfc3339=function(_d20,_d21){
if(!_d20){
_d20=new Date();
}
var _=dojo.string.pad;
var _d23=[];
if(_d21!="timeOnly"){
var date=[_(_d20.getFullYear(),4),_(_d20.getMonth()+1,2),_(_d20.getDate(),2)].join("-");
_d23.push(date);
}
if(_d21!="dateOnly"){
var time=[_(_d20.getHours(),2),_(_d20.getMinutes(),2),_(_d20.getSeconds(),2)].join(":");
var _d26=_d20.getTimezoneOffset();
time+=(_d26>0?"-":"+")+_(Math.floor(Math.abs(_d26)/60),2)+":"+_(Math.abs(_d26)%60,2);
_d23.push(time);
}
return _d23.join("T");
};
dojo.date.fromRfc3339=function(_d27){
if(_d27.indexOf("Tany")!=-1){
_d27=_d27.replace("Tany","");
}
var _d28=new Date();
return dojo.date.setIso8601(_d28,_d27);
};
dojo.provide("dojo.widget.DatePicker");
dojo.widget.defineWidget("dojo.widget.DatePicker",dojo.widget.HtmlWidget,{value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",storedDate:"",staticDisplay:false,dayWidth:"narrow",classNames:{previous:"previousMonth",disabledPrevious:"previousMonthDisabled",current:"currentMonth",disabledCurrent:"currentMonthDisabled",next:"nextMonth",disabledNext:"nextMonthDisabled",currentDate:"currentDate",selectedDate:"selectedItem"},templateString:"<div class=\"datePickerContainer\" dojoAttachPoint=\"datePickerContainerNode\">\n	<table cellspacing=\"0\" cellpadding=\"0\" class=\"calendarContainer\">\n		<thead>\n			<tr>\n				<td class=\"monthWrapper\" valign=\"top\">\n					<table class=\"monthContainer\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n						<tr>\n							<td class=\"monthCurve monthCurveTL\" valign=\"top\"></td>\n							<td class=\"monthLabelContainer\" valign=\"top\">\n								<span dojoAttachPoint=\"increaseWeekNode\" \n									dojoAttachEvent=\"onClick: onIncrementWeek;\" \n									class=\"incrementControl increase\">\n									<img src=\"${dojoRoot}src/widget/templates/images/incrementMonth.png\" \n									alt=\"&darr;\" style=\"width:7px;height:5px;\" />\n								</span>\n								<span \n									dojoAttachPoint=\"increaseMonthNode\" \n									dojoAttachEvent=\"onClick: onIncrementMonth;\" class=\"incrementControl increase\">\n									<img src=\"${dojoRoot}src/widget/templates/images/incrementMonth.png\" \n										alt=\"&darr;\"  dojoAttachPoint=\"incrementMonthImageNode\">\n								</span>\n								<span \n									dojoAttachPoint=\"decreaseWeekNode\" \n									dojoAttachEvent=\"onClick: onIncrementWeek;\" \n									class=\"incrementControl decrease\">\n									<img src=\"${dojoRoot}src/widget/templates/images/decrementMonth.png\" alt=\"&uarr;\" style=\"width:7px;height:5px;\" />\n								</span>\n								<span \n									dojoAttachPoint=\"decreaseMonthNode\" \n									dojoAttachEvent=\"onClick: onIncrementMonth;\" class=\"incrementControl decrease\">\n									<img src=\"${dojoRoot}src/widget/templates/images/decrementMonth.png\" \n										alt=\"&uarr;\" dojoAttachPoint=\"decrementMonthImageNode\">\n								</span>\n								<span dojoAttachPoint=\"monthLabelNode\" class=\"month\"></span>\n							</td>\n							<td class=\"monthCurve monthCurveTR\" valign=\"top\"></td>\n						</tr>\n					</table>\n				</td>\n			</tr>\n		</thead>\n		<tbody>\n			<tr>\n				<td colspan=\"3\">\n					<table class=\"calendarBodyContainer\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n						<thead>\n							<tr dojoAttachPoint=\"dayLabelsRow\">\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n							</tr>\n						</thead>\n						<tbody dojoAttachPoint=\"calendarDatesContainerNode\" \n							dojoAttachEvent=\"onClick: _handleUiClick;\">\n							<tr dojoAttachPoint=\"calendarWeekTemplate\">\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n							</tr>\n						</tbody>\n					</table>\n				</td>\n			</tr>\n		</tbody>\n		<tfoot>\n			<tr>\n				<td colspan=\"3\" class=\"yearWrapper\">\n					<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"yearContainer\">\n						<tr>\n							<td class=\"curveBL\" valign=\"top\"></td>\n							<td valign=\"top\">\n								<h3 class=\"yearLabel\">\n									<span dojoAttachPoint=\"previousYearLabelNode\"\n										dojoAttachEvent=\"onClick: onIncrementYear;\" class=\"previousYear\"></span>\n									<span class=\"selectedYear\" dojoAttachPoint=\"currentYearLabelNode\"></span>\n									<span dojoAttachPoint=\"nextYearLabelNode\" \n										dojoAttachEvent=\"onClick: onIncrementYear;\" class=\"nextYear\"></span>\n								</h3>\n							</td>\n							<td class=\"curveBR\" valign=\"top\"></td>\n						</tr>\n					</table>\n				</td>\n			</tr>\n		</tfoot>\n	</table>\n	\n</div>\n",templateCssString:".datePickerContainer {\n	width:164px; /* needed for proper user styling */\n}\n\n.calendarContainer {\n/*	border:1px solid #566f8f;*/\n}\n\n.calendarBodyContainer {\n	width:100%; /* needed for the explode effect (explain?) */\n	background: #7591bc url(\"images/dpBg.gif\") top left repeat-x;\n}\n\n.calendarBodyContainer thead tr td {\n	color:#293a4b;\n	font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n	text-align:center;\n	padding:0.25em;\n	background: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\n}\n\n.calendarBodyContainer tbody tr td {\n	color:#fff;\n	font:bold 0.7em Helvetica, Arial, Verdana, sans-serif;\n	text-align:center;\n	padding:0.4em;\n	background: url(\"images/dpVertLine.gif\") top right repeat-y;\n	cursor:pointer;\n	cursor:hand;\n}\n\n\n.monthWrapper {\n	padding-bottom:2px;\n	background: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\n}\n\n.monthContainer {\n	width:100%;\n}\n\n.monthLabelContainer {\n	text-align:center;\n	font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n	background: url(\"images/dpMonthBg.png\") repeat-x top left !important;\n	color:#293a4b;\n	padding:0.25em;\n}\n\n.monthCurve {\n	width:12px;\n}\n\n.monthCurveTL {\n	background: url(\"images/dpCurveTL.png\") no-repeat top left !important;\n}\n\n.monthCurveTR {\n		background: url(\"images/dpCurveTR.png\") no-repeat top right !important;\n}\n\n\n.yearWrapper {\n	background: url(\"images/dpHorizLineFoot.gif\") top left repeat-x;\n	padding-top:2px;\n}\n\n.yearContainer {\n	width:100%;\n}\n\n.yearContainer td {\n	background:url(\"images/dpYearBg.png\") top left repeat-x;\n}\n\n.yearContainer .yearLabel {\n	margin:0;\n	padding:0.45em 0 0.45em 0;\n	color:#fff;\n	font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n	text-align:center;\n}\n\n.curveBL {\n	background: url(\"images/dpCurveBL.png\") bottom left no-repeat !important;\n	width:9px !important;\n	padding:0;\n	margin:0;\n}\n\n.curveBR {\n	background: url(\"images/dpCurveBR.png\") bottom right no-repeat !important;\n	width:9px !important;\n	padding:0;\n	margin:0;\n}\n\n\n.previousMonth {\n	background-color:#6782a8 !important;\n}\n\n.previousMonthDisabled {\n	background-color:#a4a5a6 !important;\n	cursor:default !important\n}\n.currentMonth {\n}\n\n.currentMonthDisabled {\n	background-color:#bbbbbc !important;\n	cursor:default !important\n}\n.nextMonth {\n	background-color:#6782a8 !important;\n}\n.nextMonthDisabled {\n	background-color:#a4a5a6 !important;\n	cursor:default !important;\n}\n\n.currentDate {\n	text-decoration:underline;\n	font-style:italic;\n}\n\n.selectedItem {\n	background-color:#fff !important;\n	color:#6782a8 !important;\n}\n\n.yearLabel .selectedYear {\n	padding:0.2em;\n	background-color:#9ec3fb !important;\n}\n\n.nextYear, .previousYear {\n	cursor:pointer;cursor:hand;\n	padding:0;\n}\n\n.nextYear {\n	margin:0 0 0 0.55em;\n}\n\n.previousYear {\n	margin:0 0.55em 0 0;\n}\n\n.incrementControl {\n	cursor:pointer;cursor:hand;\n	width:1em;\n}\n\n.increase {\n	float:right;\n}\n\n.decrease {\n	float:left;\n}\n\n.lastColumn {\n	background-image:none !important;\n}\n\n\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/DatePicker.css"),postMixInProperties:function(){
dojo.widget.DatePicker.superclass.postMixInProperties.apply(this,arguments);
if(this.storedDate){
dojo.deprecated("dojo.widget.DatePicker","use 'value' instead of 'storedDate'","0.5");
this.value=this.storedDate;
}
this.startDate=dojo.date.fromRfc3339(this.startDate);
this.endDate=dojo.date.fromRfc3339(this.endDate);
this.startDate.setHours(0,0,0,0);
this.endDate.setHours(24,0,0,-1);
if(!this.weekStartsOn){
this.weekStartsOn=dojo.date.getFirstDayOfWeek(this.lang);
}
this.today=new Date();
this.today.setHours(0,0,0,0);
if(typeof (this.value)=="string"&&this.value.toLowerCase()=="today"){
this.value=new Date();
}else{
if(this.value&&(typeof this.value=="string")&&(this.value.split("-").length>2)){
this.value=dojo.date.fromRfc3339(this.value);
this.value.setHours(0,0,0,0);
}
}
},fillInTemplate:function(args,frag){
dojo.widget.DatePicker.superclass.fillInTemplate.apply(this,arguments);
var _d2b=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_d2b);
this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate);
this._preInitUI(this.value?this.value:this.today,false,true);
var _d2c=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang));
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
_d2c.push(_d2c.shift());
}
}
var _d2e=this.dayLabelsRow.getElementsByTagName("td");
for(i=0;i<7;i++){
_d2e.item(i).innerHTML=_d2c[i];
}
if(this.value){
this.setValue(this.value);
}
},getValue:function(){
return dojo.date.toRfc3339(new Date(this.value),"dateOnly");
},getDate:function(){
return this.value;
},setValue:function(_d2f){
this.setDate(_d2f);
},setDate:function(_d30){
if(typeof _d30=="string"){
this.value=dojo.date.fromRfc3339(_d30);
}else{
this.value=new Date(_d30);
}
this.value.setHours(0,0,0,0);
if(this.selectedNode!=null){
dojo.html.removeClass(this.selectedNode,this.classNames.selectedDate);
}
if(this.clickedNode!=null){
dojo.html.addClass(this.clickedNode,this.classNames.selectedDate);
this.selectedNode=this.clickedNode;
}else{
this._preInitUI(this.value,false,true);
}
this.clickedNode=null;
this.onValueChanged(this.value);
},_preInitUI:function(_d31,_d32,_d33){
if(_d31<this.startDate||_d31>this.endDate){
_d31=new Date((_d31<this.startDate)?this.startDate:this.endDate);
}
this.firstDay=this._initFirstDay(_d31,_d32);
this.selectedIsUsed=false;
this.currentIsUsed=false;
var _d34=new Date(this.firstDay);
var _d35=_d34.getMonth();
this.curMonth=new Date(_d34);
this.curMonth.setDate(_d34.getDate()+6);
this.curMonth.setDate(1);
if(this.displayWeeks==""||this.adjustWeeks){
this.adjustWeeks=true;
this.displayWeeks=Math.ceil((dojo.date.getDaysInMonth(this.curMonth)+this._getAdjustedDay(this.curMonth))/7);
}
var days=this.displayWeeks*7;
if(dojo.date.diff(this.startDate,this.endDate,dojo.date.dateParts.DAY)<days){
this.staticDisplay=true;
if(dojo.date.diff(_d34,this.endDate,dojo.date.dateParts.DAY)>days){
this._preInitUI(this.startDate,true,false);
_d34=new Date(this.firstDay);
}
this.curMonth=new Date(_d34);
this.curMonth.setDate(_d34.getDate()+6);
this.curMonth.setDate(1);
var _d37=(_d34.getMonth()==this.curMonth.getMonth())?"current":"previous";
}
if(_d33){
this._initUI(days);
}
},_initUI:function(days){
dojo.dom.removeChildren(this.calendarDatesContainerNode);
for(var i=0;i<this.displayWeeks;i++){
this.calendarDatesContainerNode.appendChild(this.weekTemplate.cloneNode(true));
}
var _d3a=new Date(this.firstDay);
this._setMonthLabel(this.curMonth.getMonth());
this._setYearLabels(this.curMonth.getFullYear());
var _d3b=this.calendarDatesContainerNode.getElementsByTagName("td");
var _d3c=this.calendarDatesContainerNode.getElementsByTagName("tr");
var _d3d;
for(i=0;i<days;i++){
_d3d=_d3b.item(i);
_d3d.innerHTML=_d3a.getDate();
var _d3e=(_d3a.getMonth()<this.curMonth.getMonth())?"previous":(_d3a.getMonth()==this.curMonth.getMonth())?"current":"next";
var _d3f=_d3e;
if(this._isDisabledDate(_d3a)){
var _d40={previous:"disabledPrevious",current:"disabledCurrent",next:"disabledNext"};
_d3f=_d40[_d3e];
}
dojo.html.setClass(_d3d,this._getDateClassName(_d3a,_d3f));
if(dojo.html.hasClass(_d3d,this.classNames.selectedDate)){
this.selectedNode=_d3d;
}
_d3a=dojo.date.add(_d3a,dojo.date.dateParts.DAY,1);
}
this.lastDay=dojo.date.add(_d3a,dojo.date.dateParts.DAY,-1);
this._initControls();
},_initControls:function(){
var d=this.firstDay;
var d2=this.lastDay;
var _d43,_d44,_d45,_d46,_d47,_d48;
_d43=_d44=_d45=_d46=_d47=_d48=!this.staticDisplay;
with(dojo.date.dateParts){
var add=dojo.date.add;
if(_d43&&add(d,DAY,(-1*(this._getAdjustedDay(d)+1)))<this.startDate){
_d43=_d45=_d47=false;
}
if(_d44&&d2>this.endDate){
_d44=_d46=_d48=false;
}
if(_d45&&add(d,DAY,-1)<this.startDate){
_d45=_d47=false;
}
if(_d46&&add(d2,DAY,1)>this.endDate){
_d46=_d48=false;
}
if(_d47&&add(d2,YEAR,-1)<this.startDate){
_d47=false;
}
if(_d48&&add(d,YEAR,1)>this.endDate){
_d48=false;
}
}
function enableControl(node,_d4b){
dojo.html.setVisibility(node,_d4b?"":"hidden");
}
enableControl(this.decreaseWeekNode,_d43);
enableControl(this.increaseWeekNode,_d44);
enableControl(this.decreaseMonthNode,_d45);
enableControl(this.increaseMonthNode,_d46);
enableControl(this.previousYearLabelNode,_d47);
enableControl(this.nextYearLabelNode,_d48);
},_incrementWeek:function(evt){
var d=new Date(this.firstDay);
switch(evt.target){
case this.increaseWeekNode.getElementsByTagName("img").item(0):
case this.increaseWeekNode:
var _d4e=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
if(_d4e<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
}
break;
case this.decreaseWeekNode.getElementsByTagName("img").item(0):
case this.decreaseWeekNode:
if(d>=this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.WEEK,-1);
}
break;
}
this._preInitUI(d,true,true);
},_incrementMonth:function(evt){
var d=new Date(this.curMonth);
var _d51=new Date(this.firstDay);
switch(evt.currentTarget){
case this.increaseMonthNode.getElementsByTagName("img").item(0):
case this.increaseMonthNode:
_d51=dojo.date.add(_d51,dojo.date.dateParts.DAY,this.displayWeeks*7);
if(_d51<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
}else{
var _d52=true;
}
break;
case this.decreaseMonthNode.getElementsByTagName("img").item(0):
case this.decreaseMonthNode:
if(_d51>this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
}else{
var _d53=true;
}
break;
}
if(_d53){
d=new Date(this.startDate);
}else{
if(_d52){
d=new Date(this.endDate);
}
}
this._preInitUI(d,false,true);
},_incrementYear:function(evt){
var year=this.curMonth.getFullYear();
var _d56=new Date(this.firstDay);
switch(evt.target){
case this.nextYearLabelNode:
_d56=dojo.date.add(_d56,dojo.date.dateParts.YEAR,1);
if(_d56<this.endDate){
year++;
}else{
var _d57=true;
}
break;
case this.previousYearLabelNode:
_d56=dojo.date.add(_d56,dojo.date.dateParts.YEAR,-1);
if(_d56>this.startDate){
year--;
}else{
var _d58=true;
}
break;
}
var d;
if(_d58){
d=new Date(this.startDate);
}else{
if(_d57){
d=new Date(this.endDate);
}else{
d=new Date(year,this.curMonth.getMonth(),1);
}
}
this._preInitUI(d,false,true);
},onIncrementWeek:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementWeek(evt);
}
},onIncrementMonth:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementMonth(evt);
}
},onIncrementYear:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementYear(evt);
}
},_setMonthLabel:function(_d5d){
this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[_d5d];
},_setYearLabels:function(year){
var y=year-1;
var that=this;
function f(n){
that[n+"YearLabelNode"].innerHTML=dojo.date.format(new Date(y++,0),{formatLength:"yearOnly",locale:that.lang});
}
f("previous");
f("current");
f("next");
},_getDateClassName:function(date,_d63){
var _d64=this.classNames[_d63];
if((!this.selectedIsUsed&&this.value)&&(Number(date)==Number(this.value))){
_d64=this.classNames.selectedDate+" "+_d64;
this.selectedIsUsed=true;
}
if((!this.currentIsUsed)&&(Number(date)==Number(this.today))){
_d64=_d64+" "+this.classNames.currentDate;
this.currentIsUsed=true;
}
return _d64;
},onClick:function(evt){
dojo.event.browser.stopEvent(evt);
},_handleUiClick:function(evt){
var _d67=evt.target;
if(_d67.nodeType!=dojo.dom.ELEMENT_NODE){
_d67=_d67.parentNode;
}
dojo.event.browser.stopEvent(evt);
this.selectedIsUsed=this.todayIsUsed=false;
var _d68=this.curMonth.getMonth();
var year=this.curMonth.getFullYear();
if(dojo.html.hasClass(_d67,this.classNames["disabledPrevious"])||dojo.html.hasClass(_d67,this.classNames["disabledCurrent"])||dojo.html.hasClass(_d67,this.classNames["disabledNext"])){
return;
}else{
if(dojo.html.hasClass(_d67,this.classNames["next"])){
_d68=++_d68%12;
if(_d68===0){
++year;
}
}else{
if(dojo.html.hasClass(_d67,this.classNames["previous"])){
_d68=--_d68%12;
if(_d68==11){
--year;
}
}
}
}
this.clickedNode=_d67;
this.setDate(new Date(year,_d68,_d67.innerHTML));
},onValueChanged:function(date){
},_isDisabledDate:function(_d6b){
if(_d6b<this.startDate||_d6b>this.endDate){
return true;
}
return this.isDisabledDate(_d6b,this.lang);
},isDisabledDate:function(_d6c,_d6d){
return false;
},_initFirstDay:function(_d6e,adj){
var d=new Date(_d6e);
if(!adj){
d.setDate(1);
}
d.setDate(d.getDate()-this._getAdjustedDay(d,this.weekStartsOn));
d.setHours(0,0,0,0);
return d;
},_getAdjustedDay:function(_d71){
var days=[0,1,2,3,4,5,6];
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
days.unshift(days.pop());
}
}
return days[_d71.getDay()];
},destroy:function(){
dojo.widget.DatePicker.superclass.destroy.apply(this,arguments);
dojo.html.destroyNode(this.weekTemplate);
}});
dojo.provide("dojo.widget.DropdownDatePicker");
dojo.widget.defineWidget("dojo.widget.DropdownDatePicker",dojo.widget.DropdownContainer,{iconURL:dojo.uri.dojoUri("src/widget/templates/images/dateIcon.gif"),formatLength:"short",displayFormat:"",dateFormat:"",saveFormat:"",value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",staticDisplay:false,postMixInProperties:function(_d74,frag){
dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this,arguments);
var _d76=dojo.i18n.getLocalization("dojo.widget","DropdownDatePicker",this.lang);
this.iconAlt=_d76.selectDate;
if(typeof (this.value)=="string"&&this.value.toLowerCase()=="today"){
this.value=new Date();
}
if(this.value&&isNaN(this.value)){
var orig=this.value;
this.value=dojo.date.fromRfc3339(this.value);
if(!this.value){
this.value=new Date(orig);
dojo.deprecated("dojo.widget.DropdownDatePicker","date attributes must be passed in Rfc3339 format","0.5");
}
}
if(this.value&&!isNaN(this.value)){
this.value=new Date(this.value);
}
},fillInTemplate:function(args,frag){
dojo.widget.DropdownDatePicker.superclass.fillInTemplate.call(this,args,frag);
var _d7a={widgetContainerId:this.widgetId,lang:this.lang,value:this.value,startDate:this.startDate,endDate:this.endDate,displayWeeks:this.displayWeeks,weekStartsOn:this.weekStartsOn,adjustWeeks:this.adjustWeeks,staticDisplay:this.staticDisplay};
this.datePicker=dojo.widget.createWidget("DatePicker",_d7a,this.containerNode,"child");
dojo.event.connect(this.datePicker,"onValueChanged",this,"_updateText");
if(this.value){
this._updateText();
}
this.containerNode.explodeClassName="calendarBodyContainer";
this.valueNode.name=this.name;
},getValue:function(){
return this.valueNode.value;
},getDate:function(){
return this.datePicker.value;
},setValue:function(_d7b){
this.setDate(_d7b);
},setDate:function(_d7c){
this.datePicker.setDate(_d7c);
this._syncValueNode();
},_updateText:function(){
if(this.dateFormat){
dojo.deprecated("dojo.widget.DropdownDatePicker","Must use displayFormat attribute instead of dateFormat.  See dojo.date.format for specification.","0.5");
this.inputNode.value=dojo.date.strftime(this.datePicker.value,this.dateFormat,this.lang);
}else{
if(this.datePicker.value){
this.inputNode.value=dojo.date.format(this.datePicker.value,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});
}else{
this.inputNode.value="";
}
}
if(this.value<this.datePicker.startDate||this.value>this.datePicker.endDate){
this.inputNode.value="";
}
this._syncValueNode();
this.onValueChanged(this.getDate());
this.hideContainer();
},onValueChanged:function(_d7d){
},onInputChange:function(){
if(this.dateFormat){
dojo.deprecated("dojo.widget.DropdownDatePicker","Cannot parse user input.  Must use displayFormat attribute instead of dateFormat.  See dojo.date.format for specification.","0.5");
}else{
var _d7e=dojo.string.trim(this.inputNode.value);
if(_d7e){
var _d7f=dojo.date.parse(_d7e,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});
if(_d7f){
this.setDate(_d7f);
}
}else{
this.valueNode.value=_d7e;
}
}
if(_d7e){
this._updateText();
}
},_syncValueNode:function(){
var date=this.datePicker.value;
var _d81="";
switch(this.saveFormat.toLowerCase()){
case "rfc":
case "iso":
case "":
_d81=dojo.date.toRfc3339(date,"dateOnly");
break;
case "posix":
case "unix":
_d81=Number(date);
break;
default:
if(date){
_d81=dojo.date.format(date,{datePattern:this.saveFormat,selector:"dateOnly",locale:this.lang});
}
}
this.valueNode.value=_d81;
},destroy:function(_d82){
this.datePicker.destroy(_d82);
dojo.widget.DropdownDatePicker.superclass.destroy.apply(this,arguments);
}});
dojo.provide("dojo.widget.Menu2");
dojo.widget.defineWidget("dojo.widget.PopupMenu2",dojo.widget.PopupContainer,function(){
this.targetNodeIds=[];
this.eventNames={open:""};
},{snarfChildDomOutput:true,eventNaming:"default",templateString:"<table class=\"dojoPopupMenu2\" border=0 cellspacing=0 cellpadding=0 style=\"display: none;\"><tbody dojoAttachPoint=\"containerNode\"></tbody></table>",templateCssString:"\n.dojoPopupMenu2 {\n	position: absolute;\n	border: 1px solid #7298d0;\n	background:#85aeec url(images/soriaMenuBg.gif) repeat-x bottom left !important;\n	padding: 1px;\n	margin-top: 1px;\n	margin-bottom: 1px;\n}\n\n.dojoMenuItem2{\n	white-space: nowrap;\n	font: menu;\n	margin: 0;\n}\n\n.dojoMenuItem2Hover {\n	background-color: #D2E4FD;\n	cursor:pointer;\n	cursor:hand;\n}\n\n.dojoMenuItem2Icon {\n	position: relative;\n	background-position: center center;\n	background-repeat: no-repeat;\n	width: 16px;\n	height: 16px;\n	padding-right: 3px;\n}\n\n.dojoMenuItem2Label {\n	position: relative;\n	vertical-align: middle;\n}\n\n/* main label text */\n.dojoMenuItem2Label {\n	position: relative;\n	vertical-align: middle;\n}\n\n.dojoMenuItem2Accel {\n	position: relative;\n	vertical-align: middle;\n	padding-left: 3px;\n}\n\n.dojoMenuItem2Disabled .dojoMenuItem2Label,\n.dojoMenuItem2Disabled .dojoMenuItem2Accel {\n	color: #607a9e;\n}\n\n.dojoMenuItem2Submenu {\n	position: relative;\n	background-position: center center;\n	background-repeat: no-repeat;\n	background-image: url(images/submenu_off.gif);\n	width: 5px;\n	height: 9px;\n	padding-left: 3px;\n}\n.dojoMenuItem2Hover .dojoMenuItem2Submenu {\n	background-image: url(images/submenu_on.gif);\n}\n\n.dojoMenuItem2Disabled .dojoMenuItem2Submenu {\n	background-image: url(images/submenu_disabled.gif);\n}\n\n.dojoMenuSeparator2 {\n	font-size: 1px;\n	margin: 0;\n}\n\n.dojoMenuSeparator2Top {\n	height: 50%;\n	border-bottom: 1px solid #7a98c4;\n	margin: 0px 2px;\n	font-size: 1px;\n}\n\n.dojoMenuSeparator2Bottom {\n	height: 50%;\n	border-top: 1px solid #c9deff;\n	margin: 0px 2px;\n	font-size: 1px;\n}\n\n.dojoMenuBar2 {\n	/*position: relative;*/\n	background:#85aeec url(images/soriaBarBg.gif) repeat-x top left;\n	border-bottom:1px solid #6b9fec;\n	\n}\n\n.dojoMenuBar2Client {\n	padding: 1px;\n}\n\n.dojoMenuBarItem2 {\n	white-space: nowrap;\n	font: menu;\n	margin: 0;\n	position: relative;\n	vertical-align: middle;\n	z-index: 1;\n	padding: 3px 8px;\n}\n\n.dojoMenuBarItem2 span {\n	margin: 0;\n	position: relative;\n	z-index: 2;\n	cursor:pointer;\n	cursor:hand;\n}\n\n.dojoMenuBarItem2Hover {\n	background-color:#d2e4fd;\n}\n\n.dojoMenuBarItem2Disabled span {\n	color: #4f6582;\n}\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/Menu2.css"),templateCssString:"",submenuDelay:500,submenuOverlap:5,contextMenuForWindow:false,initialize:function(args,frag){
if(this.eventNaming=="default"){
for(var _d85 in this.eventNames){
this.eventNames[_d85]=this.widgetId+"/"+_d85;
}
}
},postCreate:function(){
if(this.contextMenuForWindow){
var doc=dojo.body();
this.bindDomNode(doc);
}else{
if(this.targetNodeIds.length>0){
dojo.lang.forEach(this.targetNodeIds,this.bindDomNode,this);
}
}
this._subscribeSubitemsOnOpen();
},_subscribeSubitemsOnOpen:function(){
var _d87=this.getChildrenOfType(dojo.widget.MenuItem2);
for(var i=0;i<_d87.length;i++){
dojo.event.topic.subscribe(this.eventNames.open,_d87[i],"menuOpen");
}
},getTopOpenEvent:function(){
var menu=this;
while(menu.parentPopup){
menu=menu.parentPopup;
}
return menu.openEvent;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dojo.html.getElementWindow(node);
if(dojo.html.isTag(node,"iframe")=="iframe"){
win=dojo.html.iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
dojo.widget.Menu2.OperaAndKonqFixer.fixNode(node);
dojo.event.kwConnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
if(dojo.render.html.moz&&win.document.designMode.toLowerCase()=="on"){
dojo.event.browser.addListener(node,"contextmenu",dojo.lang.hitch(this,"onOpen"));
}
dojo.widget.PopupManager.registerWin(win);
},unBindDomNode:function(_d8c){
var node=dojo.byId(_d8c);
dojo.event.kwDisconnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
dojo.widget.Menu2.OperaAndKonqFixer.cleanNode(node);
},_moveToNext:function(evt){
this._highlightOption(1);
return true;
},_moveToPrevious:function(evt){
this._highlightOption(-1);
return true;
},_moveToParentMenu:function(evt){
if(this._highlighted_option&&this.parentPopup){
if(evt._menu2UpKeyProcessed){
return true;
}else{
this._highlighted_option.onUnhover();
this.closeSubpopup();
evt._menu2UpKeyProcessed=true;
}
}
return false;
},_moveToChildMenu:function(evt){
if(this._highlighted_option&&this._highlighted_option.submenuId){
this._highlighted_option._onClick(true);
return true;
}
return false;
},_selectCurrentItem:function(evt){
if(this._highlighted_option){
this._highlighted_option._onClick();
return true;
}
return false;
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey||!evt.key){
return false;
}
var rval=false;
switch(evt.key){
case evt.KEY_DOWN_ARROW:
rval=this._moveToNext(evt);
break;
case evt.KEY_UP_ARROW:
rval=this._moveToPrevious(evt);
break;
case evt.KEY_RIGHT_ARROW:
rval=this._moveToChildMenu(evt);
break;
case evt.KEY_LEFT_ARROW:
rval=this._moveToParentMenu(evt);
break;
case " ":
case evt.KEY_ENTER:
if(rval=this._selectCurrentItem(evt)){
break;
}
case evt.KEY_ESCAPE:
dojo.widget.PopupManager.currentMenu.close();
rval=true;
break;
}
return rval;
},_findValidItem:function(dir,_d96){
if(_d96){
_d96=dir>0?_d96.getNextSibling():_d96.getPreviousSibling();
}
for(var i=0;i<this.children.length;++i){
if(!_d96){
_d96=dir>0?this.children[0]:this.children[this.children.length-1];
}
if(_d96.onHover&&_d96.isShowing()){
return _d96;
}
_d96=dir>0?_d96.getNextSibling():_d96.getPreviousSibling();
}
},_highlightOption:function(dir){
var item;
if((!this._highlighted_option)){
item=this._findValidItem(dir);
}else{
item=this._findValidItem(dir,this._highlighted_option);
}
if(item){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
item.onHover();
dojo.html.scrollIntoView(item.domNode);
try{
var node=dojo.html.getElementsByClass("dojoMenuItem2Label",item.domNode)[0];
node.focus();
}
catch(e){
}
}
},onItemClick:function(item){
},close:function(_d9c){
if(this.animationInProgress){
dojo.widget.PopupMenu2.superclass.close.apply(this,arguments);
return;
}
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
dojo.widget.PopupMenu2.superclass.close.apply(this,arguments);
},closeSubpopup:function(_d9d){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_d9d);
this.currentSubpopup=null;
this.currentSubmenuTrigger.is_open=false;
this.currentSubmenuTrigger._closedSubmenu(_d9d);
this.currentSubmenuTrigger=null;
},_openSubmenu:function(_d9e,_d9f){
var _da0=dojo.html.getAbsolutePosition(_d9f.domNode,true);
var _da1=dojo.html.getMarginBox(this.domNode).width;
var x=_da0.x+_da1-this.submenuOverlap;
var y=_da0.y;
_d9e.open(x,y,this,_d9f.domNode);
this.currentSubmenuTrigger=_d9f;
this.currentSubmenuTrigger.is_open=true;
},onOpen:function(e){
this.openEvent=e;
if(e["target"]){
this.openedForWindow=dojo.html.getElementWindow(e.target);
}else{
this.openedForWindow=null;
}
var x=e.pageX,y=e.pageY;
var win=dojo.html.getElementWindow(e.target);
var _da8=win._frameElement||win.frameElement;
if(_da8){
var cood=dojo.html.abs(_da8,true);
x+=cood.x-dojo.withGlobal(win,dojo.html.getScroll).left;
y+=cood.y-dojo.withGlobal(win,dojo.html.getScroll).top;
}
this.open(x,y,null,[x,y]);
e.preventDefault();
e.stopPropagation();
}});
dojo.widget.defineWidget("dojo.widget.MenuItem2",dojo.widget.HtmlWidget,function(){
this.eventNames={engage:""};
},{templateString:"<tr class=\"dojoMenuItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick; onKey:onKey;\">"+"<td><div class=\"${this.iconClass}\" style=\"${this.iconStyle}\"></div></td>"+"<td tabIndex=\"-1\" class=\"dojoMenuItem2Label\">${this.caption}</td>"+"<td class=\"dojoMenuItem2Accel\">${this.accelKey}</td>"+"<td><div class=\"dojoMenuItem2Submenu\" style=\"display:${this.arrowDisplay};\"></div></td>"+"</tr>",is_hovering:false,hover_timer:null,is_open:false,topPosition:0,caption:"Untitled",accelKey:"",iconSrc:"",disabledClass:"dojoMenuItem2Disabled",iconClass:"dojoMenuItem2Icon",submenuId:"",eventNaming:"default",highlightClass:"dojoMenuItem2Hover",postMixInProperties:function(){
this.iconStyle="";
if(this.iconSrc){
if((this.iconSrc.toLowerCase().substring(this.iconSrc.length-4)==".png")&&(dojo.render.html.ie55||dojo.render.html.ie60)){
this.iconStyle="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.iconSrc+"', sizingMethod='image')";
}else{
this.iconStyle="background-image: url("+this.iconSrc+")";
}
}
this.arrowDisplay=this.submenuId?"block":"none";
dojo.widget.MenuItem2.superclass.postMixInProperties.apply(this,arguments);
},fillInTemplate:function(){
dojo.html.disableSelection(this.domNode);
if(this.disabled){
this.setDisabled(true);
}
if(this.eventNaming=="default"){
for(var _daa in this.eventNames){
this.eventNames[_daa]=this.widgetId+"/"+_daa;
}
}
},onHover:function(){
this.onUnhover();
if(this.is_hovering){
return;
}
if(this.is_open){
return;
}
if(this.parent._highlighted_option){
this.parent._highlighted_option.onUnhover();
}
this.parent.closeSubpopup();
this.parent._highlighted_option=this;
dojo.widget.PopupManager.setFocusedMenu(this.parent);
this._highlightItem();
if(this.is_hovering){
this._stopSubmenuTimer();
}
this.is_hovering=true;
this._startSubmenuTimer();
},onUnhover:function(){
if(!this.is_open){
this._unhighlightItem();
}
this.is_hovering=false;
this.parent._highlighted_option=null;
if(this.parent.parentPopup){
dojo.widget.PopupManager.setFocusedMenu(this.parent.parentPopup);
}
this._stopSubmenuTimer();
},_onClick:function(_dab){
var _dac=false;
if(this.disabled){
return false;
}
if(this.submenuId){
if(!this.is_open){
this._stopSubmenuTimer();
this._openSubmenu();
}
_dac=true;
}else{
this.onUnhover();
this.parent.closeAll(true);
}
this.onClick();
dojo.event.topic.publish(this.eventNames.engage,this);
if(_dac&&_dab){
dojo.widget.getWidgetById(this.submenuId)._highlightOption(1);
}
return;
},onClick:function(){
this.parent.onItemClick(this);
},_highlightItem:function(){
dojo.html.addClass(this.domNode,this.highlightClass);
},_unhighlightItem:function(){
dojo.html.removeClass(this.domNode,this.highlightClass);
},_startSubmenuTimer:function(){
this._stopSubmenuTimer();
if(this.disabled){
return;
}
var self=this;
var _dae=function(){
return function(){
self._openSubmenu();
};
}();
this.hover_timer=dojo.lang.setTimeout(_dae,this.parent.submenuDelay);
},_stopSubmenuTimer:function(){
if(this.hover_timer){
dojo.lang.clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_openSubmenu:function(){
if(this.disabled){
return;
}
this.parent.closeSubpopup();
var _daf=dojo.widget.getWidgetById(this.submenuId);
if(_daf){
this.parent._openSubmenu(_daf,this);
}
},_closedSubmenu:function(){
this.onUnhover();
},setDisabled:function(_db0){
this.disabled=_db0;
if(this.disabled){
dojo.html.addClass(this.domNode,this.disabledClass);
}else{
dojo.html.removeClass(this.domNode,this.disabledClass);
}
},enable:function(){
this.setDisabled(false);
},disable:function(){
this.setDisabled(true);
},menuOpen:function(_db1){
}});
dojo.widget.defineWidget("dojo.widget.MenuSeparator2",dojo.widget.HtmlWidget,{templateString:"<tr class=\"dojoMenuSeparator2\"><td colspan=4>"+"<div class=\"dojoMenuSeparator2Top\"></div>"+"<div class=\"dojoMenuSeparator2Bottom\"></div>"+"</td></tr>",postCreate:function(){
dojo.html.disableSelection(this.domNode);
}});
dojo.widget.defineWidget("dojo.widget.MenuBar2",dojo.widget.PopupMenu2,{menuOverlap:2,templateString:"<div class=\"dojoMenuBar2\" tabIndex=\"0\"><table class=\"dojoMenuBar2Client\"><tr dojoAttachPoint=\"containerNode\"></tr></table></div>",close:function(_db2){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
this.closeSubpopup(_db2);
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey){
return false;
}
if(!dojo.html.hasClass(evt.target,"dojoMenuBar2")){
return false;
}
var rval=false;
switch(evt.key){
case evt.KEY_DOWN_ARROW:
rval=this._moveToChildMenu(evt);
break;
case evt.KEY_UP_ARROW:
rval=this._moveToParentMenu(evt);
break;
case evt.KEY_RIGHT_ARROW:
rval=this._moveToNext(evt);
break;
case evt.KEY_LEFT_ARROW:
rval=this._moveToPrevious(evt);
break;
default:
rval=dojo.widget.MenuBar2.superclass.processKey.apply(this,arguments);
break;
}
return rval;
},postCreate:function(){
dojo.widget.MenuBar2.superclass.postCreate.apply(this,arguments);
dojo.widget.PopupManager.opened(this);
this.isShowingNow=true;
},_openSubmenu:function(_db5,_db6){
var _db7=dojo.html.getAbsolutePosition(_db6.domNode,true);
var _db8=dojo.html.getAbsolutePosition(this.domNode,true);
var _db9=dojo.html.getBorderBox(this.domNode).height;
var x=_db7.x;
var y=_db8.y+_db9-this.menuOverlap;
_db5.open(x,y,this,_db6.domNode);
this.currentSubmenuTrigger=_db6;
this.currentSubmenuTrigger.is_open=true;
}});
dojo.widget.defineWidget("dojo.widget.MenuBarItem2",dojo.widget.MenuItem2,{templateString:"<td class=\"dojoMenuBarItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick;\">"+"<span>${this.caption}</span>"+"</td>",highlightClass:"dojoMenuBarItem2Hover",setDisabled:function(_dbc){
this.disabled=_dbc;
if(this.disabled){
dojo.html.addClass(this.domNode,"dojoMenuBarItem2Disabled");
}else{
dojo.html.removeClass(this.domNode,"dojoMenuBarItem2Disabled");
}
}});
dojo.widget.Menu2.OperaAndKonqFixer=new function(){
var _dbd=true;
var _dbe=false;
if(!dojo.lang.isFunction(dojo.doc().oncontextmenu)){
dojo.doc().oncontextmenu=function(){
_dbd=false;
_dbe=true;
};
}
if(dojo.doc().createEvent){
try{
var e=dojo.doc().createEvent("MouseEvents");
e.initMouseEvent("contextmenu",1,1,dojo.global(),1,0,0,0,0,0,0,0,0,0,null);
dojo.doc().dispatchEvent(e);
}
catch(e){
}
}else{
_dbd=false;
}
if(_dbe){
delete dojo.doc().oncontextmenu;
}
this.fixNode=function(node){
if(_dbd){
if(!dojo.lang.isFunction(node.oncontextmenu)){
node.oncontextmenu=function(e){
};
}
if(dojo.render.html.opera){
node._menufixer_opera=function(e){
if(e.ctrlKey){
this.oncontextmenu(e);
}
};
dojo.event.connect(node,"onclick",node,"_menufixer_opera");
}else{
node._menufixer_konq=function(e){
if(e.button==2){
e.preventDefault();
this.oncontextmenu(e);
}
};
dojo.event.connect(node,"onmousedown",node,"_menufixer_konq");
}
}
};
this.cleanNode=function(node){
if(_dbd){
if(node._menufixer_opera){
dojo.event.disconnect(node,"onclick",node,"_menufixer_opera");
delete node._menufixer_opera;
}else{
if(node._menufixer_konq){
dojo.event.disconnect(node,"onmousedown",node,"_menufixer_konq");
delete node._menufixer_konq;
}
}
if(node.oncontextmenu){
delete node.oncontextmenu;
}
}
};
};
dojo.provide("dojo.widget.PageContainer");
dojo.widget.defineWidget("dojo.widget.PageContainer",dojo.widget.HtmlWidget,{isContainer:true,doLayout:true,templateString:"<div dojoAttachPoint='containerNode'></div>",selectedChild:"",fillInTemplate:function(args,frag){
var _dc7=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_dc7);
dojo.widget.PageContainer.superclass.fillInTemplate.apply(this,arguments);
},postCreate:function(args,frag){
if(this.children.length){
dojo.lang.forEach(this.children,this._setupChild,this);
var _dca;
if(this.selectedChild){
this.selectChild(this.selectedChild);
}else{
for(var i=0;i<this.children.length;i++){
if(this.children[i].selected){
this.selectChild(this.children[i]);
break;
}
}
if(!this.selectedChildWidget){
this.selectChild(this.children[0]);
}
}
}
},addChild:function(_dcc){
dojo.widget.PageContainer.superclass.addChild.apply(this,arguments);
this._setupChild(_dcc);
this.onResized();
if(!this.selectedChildWidget){
this.selectChild(_dcc);
}
},_setupChild:function(page){
page.hide();
page.domNode.style.position="relative";
dojo.event.topic.publish(this.widgetId+"-addChild",page);
},removeChild:function(page){
dojo.widget.PageContainer.superclass.removeChild.apply(this,arguments);
if(this._beingDestroyed){
return;
}
dojo.event.topic.publish(this.widgetId+"-removeChild",page);
this.onResized();
if(this.selectedChildWidget===page){
this.selectedChildWidget=undefined;
if(this.children.length>0){
this.selectChild(this.children[0],true);
}
}
},selectChild:function(page,_dd0){
page=dojo.widget.byId(page);
this.correspondingPageButton=_dd0;
if(this.selectedChildWidget){
this._hideChild(this.selectedChildWidget);
}
this.selectedChildWidget=page;
this.selectedChild=page.widgetId;
this._showChild(page);
page.isFirstChild=(page==this.children[0]);
page.isLastChild=(page==this.children[this.children.length-1]);
dojo.event.topic.publish(this.widgetId+"-selectChild",page);
},forward:function(){
var _dd1=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_dd1+1]);
},back:function(){
var _dd2=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_dd2-1]);
},onResized:function(){
if(this.doLayout&&this.selectedChildWidget){
with(this.selectedChildWidget.domNode.style){
top=dojo.html.getPixelValue(this.containerNode,"padding-top",true);
left=dojo.html.getPixelValue(this.containerNode,"padding-left",true);
}
var _dd3=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_dd3.width,_dd3.height);
}
},_showChild:function(page){
if(this.doLayout){
var _dd5=dojo.html.getContentBox(this.containerNode);
page.resizeTo(_dd5.width,_dd5.height);
}
page.selected=true;
page.show();
},_hideChild:function(page){
page.selected=false;
page.hide();
},closeChild:function(page){
var _dd8=page.onClose(this,page);
if(_dd8){
this.removeChild(page);
page.destroy();
}
},destroy:function(){
this._beingDestroyed=true;
dojo.event.topic.destroy(this.widgetId+"-addChild");
dojo.event.topic.destroy(this.widgetId+"-removeChild");
dojo.event.topic.destroy(this.widgetId+"-selectChild");
dojo.widget.PageContainer.superclass.destroy.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.PageController",dojo.widget.HtmlWidget,{templateString:"<span wairole='tablist' dojoAttachEvent='onKey'></span>",isContainer:true,containerId:"",buttonWidget:"PageButton","class":"dojoPageController",fillInTemplate:function(){
dojo.html.addClass(this.domNode,this["class"]);
dojo.widget.wai.setAttr(this.domNode,"waiRole","role","tablist");
},postCreate:function(){
this.pane2button={};
var _dd9=dojo.widget.byId(this.containerId);
if(_dd9){
dojo.lang.forEach(_dd9.children,this.onAddChild,this);
}
dojo.event.topic.subscribe(this.containerId+"-addChild",this,"onAddChild");
dojo.event.topic.subscribe(this.containerId+"-removeChild",this,"onRemoveChild");
dojo.event.topic.subscribe(this.containerId+"-selectChild",this,"onSelectChild");
},destroy:function(){
dojo.event.topic.unsubscribe(this.containerId+"-addChild",this,"onAddChild");
dojo.event.topic.unsubscribe(this.containerId+"-removeChild",this,"onRemoveChild");
dojo.event.topic.unsubscribe(this.containerId+"-selectChild",this,"onSelectChild");
dojo.widget.PageController.superclass.destroy.apply(this,arguments);
},onAddChild:function(page){
var _ddb=dojo.widget.createWidget(this.buttonWidget,{label:page.label,closeButton:page.closable});
this.addChild(_ddb);
this.domNode.appendChild(_ddb.domNode);
this.pane2button[page]=_ddb;
page.controlButton=_ddb;
var _ddc=this;
dojo.event.connect(_ddb,"onClick",function(){
_ddc.onButtonClick(page);
});
dojo.event.connect(_ddb,"onCloseButtonClick",function(){
_ddc.onCloseButtonClick(page);
});
},onRemoveChild:function(page){
if(this._currentChild==page){
this._currentChild=null;
}
var _dde=this.pane2button[page];
if(_dde){
_dde.destroy();
}
this.pane2button[page]=null;
},onSelectChild:function(page){
if(this._currentChild){
var _de0=this.pane2button[this._currentChild];
_de0.clearSelected();
}
var _de1=this.pane2button[page];
_de1.setSelected();
this._currentChild=page;
},onButtonClick:function(page){
var _de3=dojo.widget.byId(this.containerId);
_de3.selectChild(page,false,this);
},onCloseButtonClick:function(page){
var _de5=dojo.widget.byId(this.containerId);
_de5.closeChild(page);
},onKey:function(evt){
if((evt.keyCode==evt.KEY_RIGHT_ARROW)||(evt.keyCode==evt.KEY_LEFT_ARROW)){
var _de7=0;
var next=null;
var _de7=dojo.lang.find(this.children,this.pane2button[this._currentChild]);
if(evt.keyCode==evt.KEY_RIGHT_ARROW){
next=this.children[(_de7+1)%this.children.length];
}else{
next=this.children[(_de7+(this.children.length-1))%this.children.length];
}
dojo.event.browser.stopEvent(evt);
next.onClick();
}
}});
dojo.widget.defineWidget("dojo.widget.PageButton",dojo.widget.HtmlWidget,{templateString:"<span class='item'>"+"<span dojoAttachEvent='onClick' dojoAttachPoint='titleNode' class='selectButton'>${this.label}</span>"+"<span dojoAttachEvent='onClick:onCloseButtonClick' class='closeButton'>[X]</span>"+"</span>",label:"foo",closeButton:false,onClick:function(){
this.focus();
},onCloseButtonMouseOver:function(){
dojo.html.addClass(this.closeButtonNode,"closeHover");
},onCloseButtonMouseOut:function(){
dojo.html.removeClass(this.closeButtonNode,"closeHover");
},onCloseButtonClick:function(evt){
},setSelected:function(){
dojo.html.addClass(this.domNode,"current");
this.titleNode.setAttribute("tabIndex","0");
},clearSelected:function(){
dojo.html.removeClass(this.domNode,"current");
this.titleNode.setAttribute("tabIndex","-1");
},focus:function(){
if(this.titleNode.focus){
this.titleNode.focus();
}
}});
dojo.lang.extend(dojo.widget.Widget,{label:"",selected:false,closable:false,onClose:function(){
return true;
}});
dojo.provide("dojo.widget.html.layout");
dojo.widget.html.layout=function(_dea,_deb,_dec){
dojo.html.addClass(_dea,"dojoLayoutContainer");
_deb=dojo.lang.filter(_deb,function(_ded,idx){
_ded.idx=idx;
return dojo.lang.inArray(["top","bottom","left","right","client","flood"],_ded.layoutAlign);
});
if(_dec&&_dec!="none"){
var rank=function(_df0){
switch(_df0.layoutAlign){
case "flood":
return 1;
case "left":
case "right":
return (_dec=="left-right")?2:3;
case "top":
case "bottom":
return (_dec=="left-right")?3:2;
default:
return 4;
}
};
_deb.sort(function(a,b){
return (rank(a)-rank(b))||(a.idx-b.idx);
});
}
var f={top:dojo.html.getPixelValue(_dea,"padding-top",true),left:dojo.html.getPixelValue(_dea,"padding-left",true)};
dojo.lang.mixin(f,dojo.html.getContentBox(_dea));
dojo.lang.forEach(_deb,function(_df4){
var elm=_df4.domNode;
var pos=_df4.layoutAlign;
with(elm.style){
left=f.left+"px";
top=f.top+"px";
bottom="auto";
right="auto";
}
dojo.html.addClass(elm,"dojoAlign"+dojo.string.capitalize(pos));
if((pos=="top")||(pos=="bottom")){
dojo.html.setMarginBox(elm,{width:f.width});
var h=dojo.html.getMarginBox(elm).height;
f.height-=h;
if(pos=="top"){
f.top+=h;
}else{
elm.style.top=f.top+f.height+"px";
}
if(_df4.onResized){
_df4.onResized();
}
}else{
if(pos=="left"||pos=="right"){
var w=dojo.html.getMarginBox(elm).width;
if(_df4.resizeTo){
_df4.resizeTo(w,f.height);
}else{
dojo.html.setMarginBox(elm,{width:w,height:f.height});
}
f.width-=w;
if(pos=="left"){
f.left+=w;
}else{
elm.style.left=f.left+f.width+"px";
}
}else{
if(pos=="flood"||pos=="client"){
if(_df4.resizeTo){
_df4.resizeTo(f.width,f.height);
}else{
dojo.html.setMarginBox(elm,{width:f.width,height:f.height});
}
}
}
}
});
};
dojo.html.insertCssText(".dojoLayoutContainer{ position: relative; display: block; overflow: hidden; }\n"+"body .dojoAlignTop, body .dojoAlignBottom, body .dojoAlignLeft, body .dojoAlignRight { position: absolute; overflow: hidden; }\n"+"body .dojoAlignClient { position: absolute }\n"+".dojoAlignClient { overflow: auto; }\n");
dojo.provide("dojo.widget.TabContainer");
dojo.widget.defineWidget("dojo.widget.TabContainer",dojo.widget.PageContainer,{labelPosition:"top",closeButton:"none",templateString:null,templateString:"<div id=\"${this.widgetId}\" class=\"dojoTabContainer\">\n	<div dojoAttachPoint=\"tablistNode\"></div>\n	<div class=\"dojoTabPaneWrapper\" dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onKey\" waiRole=\"tabpanel\"></div>\n</div>\n",templateCssString:".dojoTabContainer {\n	position : relative;\n}\n\n.dojoTabPaneWrapper {\n	border : 1px solid #6290d2;\n	_zoom: 1; /* force IE6 layout mode so top border doesnt disappear */\n	display: block;\n	clear: both;\n	overflow: hidden;\n}\n\n.dojoTabLabels-top {\n	position : relative;\n	top : 0px;\n	left : 0px;\n	overflow : visible;\n	margin-bottom : -1px;\n	width : 100%;\n	z-index: 2;	/* so the bottom of the tab label will cover up the border of dojoTabPaneWrapper */\n}\n\n.dojoTabNoLayout.dojoTabLabels-top .dojoTab {\n	margin-bottom: -1px;\n	_margin-bottom: 0px; /* IE filter so top border lines up correctly */\n}\n\n.dojoTab {\n	position : relative;\n	float : left;\n	padding-left : 9px;\n	border-bottom : 1px solid #6290d2;\n	background : url(images/tab_left.gif) no-repeat left top;\n	cursor: pointer;\n	white-space: nowrap;\n	z-index: 3;\n}\n\n.dojoTab div {\n	display : block;\n	padding : 4px 15px 4px 6px;\n	background : url(images/tab_top_right.gif) no-repeat right top;\n	color : #333;\n	font-size : 90%;\n}\n\n.dojoTab .close {\n	display : inline-block;\n	height : 12px;\n	width : 12px;\n	padding : 0 12px 0 0;\n	margin : 0 -10px 0 10px;\n	cursor : default;\n	font-size: small;\n}\n\n.dojoTab .closeImage {\n	background : url(images/tab_close.gif) no-repeat right top;\n}\n\n.dojoTab .closeHover {\n	background-image : url(images/tab_close_h.gif);\n}\n\n.dojoTab.current {\n	padding-bottom : 1px;\n	border-bottom : 0;\n	background-position : 0 -150px;\n}\n\n.dojoTab.current div {\n	padding-bottom : 5px;\n	margin-bottom : -1px;\n	background-position : 100% -150px;\n}\n\n/* bottom tabs */\n\n.dojoTabLabels-bottom {\n	position : relative;\n	bottom : 0px;\n	left : 0px;\n	overflow : visible;\n	margin-top : -1px;\n	width : 100%;\n	z-index: 2;\n}\n\n.dojoTabNoLayout.dojoTabLabels-bottom {\n	position : relative;\n}\n\n.dojoTabLabels-bottom .dojoTab {\n	border-top :  1px solid #6290d2;\n	border-bottom : 0;\n	background : url(images/tab_bot_left.gif) no-repeat left bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab div {\n	background : url(images/tab_bot_right.gif) no-repeat right bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab.current {\n	border-top : 0;\n	background : url(images/tab_bot_left_curr.gif) no-repeat left bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab.current div {\n	padding-top : 4px;\n	background : url(images/tab_bot_right_curr.gif) no-repeat right bottom;\n}\n\n/* right-h tabs */\n\n.dojoTabLabels-right-h {\n	overflow : visible;\n	margin-left : -1px;\n	z-index: 2;\n}\n\n.dojoTabLabels-right-h .dojoTab {\n	padding-left : 0;\n	border-left :  1px solid #6290d2;\n	border-bottom : 0;\n	background : url(images/tab_bot_right.gif) no-repeat right bottom;\n	float : none;\n}\n\n.dojoTabLabels-right-h .dojoTab div {\n	padding : 4px 15px 4px 15px;\n}\n\n.dojoTabLabels-right-h .dojoTab.current {\n	border-left :  0;\n	border-bottom :  1px solid #6290d2;\n}\n\n/* left-h tabs */\n\n.dojoTabLabels-left-h {\n	overflow : visible;\n	margin-right : -1px;\n	z-index: 2;\n}\n\n.dojoTabLabels-left-h .dojoTab {\n	border-right :  1px solid #6290d2;\n	border-bottom : 0;\n	float : none;\n	background : url(images/tab_top_left.gif) no-repeat left top;\n}\n\n.dojoTabLabels-left-h .dojoTab.current {\n	border-right : 0;\n	border-bottom :  1px solid #6290d2;\n	padding-bottom : 0;\n	background : url(images/tab_top_left.gif) no-repeat 0 -150px;\n}\n\n.dojoTabLabels-left-h .dojoTab div {\n	background : 0;\n	border-bottom :  1px solid #6290d2;\n}\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/TabContainer.css"),selectedTab:"",postMixInProperties:function(){
if(this.selectedTab){
dojo.deprecated("selectedTab deprecated, use selectedChild instead, will be removed in","0.5");
this.selectedChild=this.selectedTab;
}
if(this.closeButton!="none"){
dojo.deprecated("closeButton deprecated, use closable='true' on each child instead, will be removed in","0.5");
}
dojo.widget.TabContainer.superclass.postMixInProperties.apply(this,arguments);
},fillInTemplate:function(){
this.tablist=dojo.widget.createWidget("TabController",{id:this.widgetId+"_tablist",labelPosition:this.labelPosition,doLayout:this.doLayout,containerId:this.widgetId},this.tablistNode);
dojo.widget.TabContainer.superclass.fillInTemplate.apply(this,arguments);
},postCreate:function(args,frag){
dojo.widget.TabContainer.superclass.postCreate.apply(this,arguments);
this.onResized();
},_setupChild:function(tab){
if(this.closeButton=="tab"||this.closeButton=="pane"){
tab.closable=true;
}
dojo.html.addClass(tab.domNode,"dojoTabPane");
dojo.widget.TabContainer.superclass._setupChild.apply(this,arguments);
},onResized:function(){
if(!this.doLayout){
return;
}
var _dfc=this.labelPosition.replace(/-h/,"");
var _dfd=[{domNode:this.tablist.domNode,layoutAlign:_dfc},{domNode:this.containerNode,layoutAlign:"client"}];
dojo.widget.html.layout(this.domNode,_dfd);
if(this.selectedChildWidget){
var _dfe=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_dfe.width,_dfe.height);
}
},selectTab:function(tab,_e00){
dojo.deprecated("use selectChild() rather than selectTab(), selectTab() will be removed in","0.5");
this.selectChild(tab,_e00);
},onKey:function(e){
if(e.keyCode==e.KEY_UP_ARROW&&e.ctrlKey){
var _e02=this.correspondingTabButton||this.selectedTabWidget.tabButton;
_e02.focus();
dojo.event.browser.stopEvent(e);
}else{
if(e.keyCode==e.KEY_DELETE&&e.altKey){
if(this.selectedChildWidget.closable){
this.closeChild(this.selectedChildWidget);
dojo.event.browser.stopEvent(e);
}
}
}
},destroy:function(){
this.tablist.destroy();
dojo.widget.TabContainer.superclass.destroy.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.TabController",dojo.widget.PageController,{templateString:"<div wairole='tablist' dojoAttachEvent='onKey'></div>",labelPosition:"top",doLayout:true,"class":"",buttonWidget:"TabButton",postMixInProperties:function(){
if(!this["class"]){
this["class"]="dojoTabLabels-"+this.labelPosition+(this.doLayout?"":" dojoTabNoLayout");
}
dojo.widget.TabController.superclass.postMixInProperties.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.TabButton",dojo.widget.PageButton,{templateString:"<div class='dojoTab' dojoAttachEvent='onClick'>"+"<div dojoAttachPoint='innerDiv'>"+"<span dojoAttachPoint='titleNode' tabIndex='-1' waiRole='tab'>${this.label}</span>"+"<span dojoAttachPoint='closeButtonNode' class='close closeImage' style='${this.closeButtonStyle}'"+"    dojoAttachEvent='onMouseOver:onCloseButtonMouseOver; onMouseOut:onCloseButtonMouseOut; onClick:onCloseButtonClick'></span>"+"</div>"+"</div>",postMixInProperties:function(){
this.closeButtonStyle=this.closeButton?"":"display: none";
dojo.widget.TabButton.superclass.postMixInProperties.apply(this,arguments);
},fillInTemplate:function(){
dojo.html.disableSelection(this.titleNode);
dojo.widget.TabButton.superclass.fillInTemplate.apply(this,arguments);
},onCloseButtonClick:function(evt){
evt.stopPropagation();
dojo.widget.TabButton.superclass.onCloseButtonClick.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.a11y.TabButton",dojo.widget.TabButton,{imgPath:dojo.uri.dojoUri("src/widget/templates/images/tab_close.gif"),templateString:"<div class='dojoTab' dojoAttachEvent='onClick;onKey'>"+"<div dojoAttachPoint='innerDiv'>"+"<span dojoAttachPoint='titleNode' tabIndex='-1' waiRole='tab'>${this.label}</span>"+"<img class='close' src='${this.imgPath}' alt='[x]' style='${this.closeButtonStyle}'"+"    dojoAttachEvent='onClick:onCloseButtonClick'>"+"</div>"+"</div>"});
dojo.provide("dojo.widget.TreeNode");
dojo.widget.defineWidget("dojo.widget.TreeNode",dojo.widget.HtmlWidget,function(){
this.actionsDisabled=[];
},{widgetType:"TreeNode",loadStates:{UNCHECKED:"UNCHECKED",LOADING:"LOADING",LOADED:"LOADED"},actions:{MOVE:"MOVE",REMOVE:"REMOVE",EDIT:"EDIT",ADDCHILD:"ADDCHILD"},isContainer:true,lockLevel:0,templateString:("<div class=\"dojoTreeNode\"> "+"<span treeNode=\"${this.widgetId}\" class=\"dojoTreeNodeLabel\" dojoAttachPoint=\"labelNode\"> "+"\t\t<span dojoAttachPoint=\"titleNode\" dojoAttachEvent=\"onClick: onTitleClick\" class=\"dojoTreeNodeLabelTitle\">${this.title}</span> "+"</span> "+"<span class=\"dojoTreeNodeAfterLabel\" dojoAttachPoint=\"afterLabelNode\">${this.afterLabel}</span> "+"<div dojoAttachPoint=\"containerNode\" style=\"display:none\"></div> "+"</div>").replace(/(>|<)\s+/g,"$1"),childIconSrc:"",childIconFolderSrc:dojo.uri.dojoUri("src/widget/templates/images/Tree/closed.gif"),childIconDocumentSrc:dojo.uri.dojoUri("src/widget/templates/images/Tree/document.gif"),childIcon:null,isTreeNode:true,objectId:"",afterLabel:"",afterLabelNode:null,expandIcon:null,title:"",object:"",isFolder:false,labelNode:null,titleNode:null,imgs:null,expandLevel:"",tree:null,depth:0,isExpanded:false,state:null,domNodeInitialized:false,isFirstChild:function(){
return this.getParentIndex()==0?true:false;
},isLastChild:function(){
return this.getParentIndex()==this.parent.children.length-1?true:false;
},lock:function(){
return this.tree.lock.apply(this,arguments);
},unlock:function(){
return this.tree.unlock.apply(this,arguments);
},isLocked:function(){
return this.tree.isLocked.apply(this,arguments);
},cleanLock:function(){
return this.tree.cleanLock.apply(this,arguments);
},actionIsDisabled:function(_e04){
var _e05=this;
var _e06=false;
if(this.tree.strictFolders&&_e04==this.actions.ADDCHILD&&!this.isFolder){
_e06=true;
}
if(dojo.lang.inArray(_e05.actionsDisabled,_e04)){
_e06=true;
}
if(this.isLocked()){
_e06=true;
}
return _e06;
},getInfo:function(){
var info={widgetId:this.widgetId,objectId:this.objectId,index:this.getParentIndex(),isFolder:this.isFolder};
return info;
},initialize:function(args,frag){
this.state=this.loadStates.UNCHECKED;
for(var i=0;i<this.actionsDisabled.length;i++){
this.actionsDisabled[i]=this.actionsDisabled[i].toUpperCase();
}
this.expandLevel=parseInt(this.expandLevel);
},adjustDepth:function(_e0b){
for(var i=0;i<this.children.length;i++){
this.children[i].adjustDepth(_e0b);
}
this.depth+=_e0b;
if(_e0b>0){
for(var i=0;i<_e0b;i++){
var img=this.tree.makeBlankImg();
this.imgs.unshift(img);
dojo.html.insertBefore(this.imgs[0],this.domNode.firstChild);
}
}
if(_e0b<0){
for(var i=0;i<-_e0b;i++){
this.imgs.shift();
dojo.html.removeNode(this.domNode.firstChild);
}
}
},markLoading:function(){
this._markLoadingSavedIcon=this.expandIcon.src;
this.expandIcon.src=this.tree.expandIconSrcLoading;
},unMarkLoading:function(){
if(!this._markLoadingSavedIcon){
return;
}
var im=new Image();
im.src=this.tree.expandIconSrcLoading;
if(this.expandIcon.src==im.src){
this.expandIcon.src=this._markLoadingSavedIcon;
}
this._markLoadingSavedIcon=null;
},setFolder:function(){
dojo.event.connect(this.expandIcon,"onclick",this,"onTreeClick");
this.expandIcon.src=this.isExpanded?this.tree.expandIconSrcMinus:this.tree.expandIconSrcPlus;
this.isFolder=true;
},createDOMNode:function(tree,_e10){
this.tree=tree;
this.depth=_e10;
this.imgs=[];
for(var i=0;i<this.depth+1;i++){
var img=this.tree.makeBlankImg();
this.domNode.insertBefore(img,this.labelNode);
this.imgs.push(img);
}
this.expandIcon=this.imgs[this.imgs.length-1];
this.childIcon=this.tree.makeBlankImg();
this.imgs.push(this.childIcon);
dojo.html.insertBefore(this.childIcon,this.titleNode);
if(this.children.length||this.isFolder){
this.setFolder();
}else{
this.state=this.loadStates.LOADED;
}
dojo.event.connect(this.childIcon,"onclick",this,"onIconClick");
for(var i=0;i<this.children.length;i++){
this.children[i].parent=this;
var node=this.children[i].createDOMNode(this.tree,this.depth+1);
this.containerNode.appendChild(node);
}
if(this.children.length){
this.state=this.loadStates.LOADED;
}
this.updateIcons();
this.domNodeInitialized=true;
dojo.event.topic.publish(this.tree.eventNames.createDOMNode,{source:this});
return this.domNode;
},onTreeClick:function(e){
dojo.event.topic.publish(this.tree.eventNames.treeClick,{source:this,event:e});
},onIconClick:function(e){
dojo.event.topic.publish(this.tree.eventNames.iconClick,{source:this,event:e});
},onTitleClick:function(e){
dojo.event.topic.publish(this.tree.eventNames.titleClick,{source:this,event:e});
},markSelected:function(){
dojo.html.addClass(this.titleNode,"dojoTreeNodeLabelSelected");
},unMarkSelected:function(){
dojo.html.removeClass(this.titleNode,"dojoTreeNodeLabelSelected");
},updateExpandIcon:function(){
if(this.isFolder){
this.expandIcon.src=this.isExpanded?this.tree.expandIconSrcMinus:this.tree.expandIconSrcPlus;
}else{
this.expandIcon.src=this.tree.blankIconSrc;
}
},updateExpandGrid:function(){
if(this.tree.showGrid){
if(this.depth){
this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcL:this.tree.gridIconSrcT);
}else{
if(this.isFirstChild()){
this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcX:this.tree.gridIconSrcY);
}else{
this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcL:this.tree.gridIconSrcT);
}
}
}else{
this.setGridImage(-2,this.tree.blankIconSrc);
}
},updateChildGrid:function(){
if((this.depth||this.tree.showRootGrid)&&this.tree.showGrid){
this.setGridImage(-1,(this.children.length&&this.isExpanded)?this.tree.gridIconSrcP:this.tree.gridIconSrcC);
}else{
if(this.tree.showGrid&&!this.tree.showRootGrid){
this.setGridImage(-1,(this.children.length&&this.isExpanded)?this.tree.gridIconSrcZ:this.tree.blankIconSrc);
}else{
this.setGridImage(-1,this.tree.blankIconSrc);
}
}
},updateParentGrid:function(){
var _e17=this.parent;
for(var i=0;i<this.depth;i++){
var idx=this.imgs.length-(3+i);
var img=(this.tree.showGrid&&!_e17.isLastChild())?this.tree.gridIconSrcV:this.tree.blankIconSrc;
this.setGridImage(idx,img);
_e17=_e17.parent;
}
},updateExpandGridColumn:function(){
if(!this.tree.showGrid){
return;
}
var _e1b=this;
var icon=this.isLastChild()?this.tree.blankIconSrc:this.tree.gridIconSrcV;
dojo.lang.forEach(_e1b.getDescendants(),function(node){
node.setGridImage(_e1b.depth,icon);
});
this.updateExpandGrid();
},updateIcons:function(){
this.imgs[0].style.display=this.tree.showRootGrid?"inline":"none";
this.buildChildIcon();
this.updateExpandGrid();
this.updateChildGrid();
this.updateParentGrid();
dojo.profile.stop("updateIcons");
},buildChildIcon:function(){
if(this.childIconSrc){
this.childIcon.src=this.childIconSrc;
}
this.childIcon.style.display=this.childIconSrc?"inline":"none";
},setGridImage:function(idx,src){
if(idx<0){
idx=this.imgs.length+idx;
}
this.imgs[idx].style.backgroundImage="url("+src+")";
},updateIconTree:function(){
this.tree.updateIconTree.call(this);
},expand:function(){
if(this.isExpanded){
return;
}
if(this.children.length){
this.showChildren();
}
this.isExpanded=true;
this.updateExpandIcon();
dojo.event.topic.publish(this.tree.eventNames.expand,{source:this});
},collapse:function(){
if(!this.isExpanded){
return;
}
this.hideChildren();
this.isExpanded=false;
this.updateExpandIcon();
dojo.event.topic.publish(this.tree.eventNames.collapse,{source:this});
},hideChildren:function(){
this.tree.toggleObj.hide(this.containerNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,"onHide"));
if(dojo.exists(dojo,"dnd.dragManager.dragObjects")&&dojo.dnd.dragManager.dragObjects.length){
dojo.dnd.dragManager.cacheTargetLocations();
}
},showChildren:function(){
this.tree.toggleObj.show(this.containerNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,"onShow"));
if(dojo.exists(dojo,"dnd.dragManager.dragObjects")&&dojo.dnd.dragManager.dragObjects.length){
dojo.dnd.dragManager.cacheTargetLocations();
}
},addChild:function(){
return this.tree.addChild.apply(this,arguments);
},doAddChild:function(){
return this.tree.doAddChild.apply(this,arguments);
},edit:function(_e20){
dojo.lang.mixin(this,_e20);
if(_e20.title){
this.titleNode.innerHTML=this.title;
}
if(_e20.afterLabel){
this.afterLabelNode.innerHTML=this.afterLabel;
}
if(_e20.childIconSrc){
this.buildChildIcon();
}
},removeNode:function(){
return this.tree.removeNode.apply(this,arguments);
},doRemoveNode:function(){
return this.tree.doRemoveNode.apply(this,arguments);
},toString:function(){
return "["+this.widgetType+" Tree:"+this.tree+" ID:"+this.widgetId+" Title:"+this.title+"]";
}});
dojo.provide("dojo.dnd.TreeDragAndDrop");
dojo.dnd.TreeDragSource=function(node,_e22,type,_e24){
this.controller=_e22;
this.treeNode=_e24;
dojo.dnd.HtmlDragSource.call(this,node,type);
};
dojo.inherits(dojo.dnd.TreeDragSource,dojo.dnd.HtmlDragSource);
dojo.lang.extend(dojo.dnd.TreeDragSource,{onDragStart:function(){
var _e25=dojo.dnd.HtmlDragSource.prototype.onDragStart.call(this);
_e25.treeNode=this.treeNode;
_e25.onDragStart=dojo.lang.hitch(_e25,function(e){
this.savedSelectedNode=this.treeNode.tree.selector.selectedNode;
if(this.savedSelectedNode){
this.savedSelectedNode.unMarkSelected();
}
var _e27=dojo.dnd.HtmlDragObject.prototype.onDragStart.apply(this,arguments);
var _e28=this.dragClone.getElementsByTagName("img");
for(var i=0;i<_e28.length;i++){
_e28.item(i).style.backgroundImage="url()";
}
return _e27;
});
_e25.onDragEnd=function(e){
if(this.savedSelectedNode){
this.savedSelectedNode.markSelected();
}
return dojo.dnd.HtmlDragObject.prototype.onDragEnd.apply(this,arguments);
};
return _e25;
},onDragEnd:function(e){
var res=dojo.dnd.HtmlDragSource.prototype.onDragEnd.call(this,e);
return res;
}});
dojo.dnd.TreeDropTarget=function(_e2d,_e2e,type,_e30){
this.treeNode=_e30;
this.controller=_e2e;
dojo.dnd.HtmlDropTarget.apply(this,[_e2d,type]);
};
dojo.inherits(dojo.dnd.TreeDropTarget,dojo.dnd.HtmlDropTarget);
dojo.lang.extend(dojo.dnd.TreeDropTarget,{autoExpandDelay:1500,autoExpandTimer:null,position:null,indicatorStyle:"2px black solid",showIndicator:function(_e31){
if(this.position==_e31){
return;
}
this.hideIndicator();
this.position=_e31;
if(_e31=="before"){
this.treeNode.labelNode.style.borderTop=this.indicatorStyle;
}else{
if(_e31=="after"){
this.treeNode.labelNode.style.borderBottom=this.indicatorStyle;
}else{
if(_e31=="onto"){
this.treeNode.markSelected();
}
}
}
},hideIndicator:function(){
this.treeNode.labelNode.style.borderBottom="";
this.treeNode.labelNode.style.borderTop="";
this.treeNode.unMarkSelected();
this.position=null;
},onDragOver:function(e){
var _e33=dojo.dnd.HtmlDropTarget.prototype.onDragOver.apply(this,arguments);
if(_e33&&this.treeNode.isFolder&&!this.treeNode.isExpanded){
this.setAutoExpandTimer();
}
return _e33;
},accepts:function(_e34){
var _e35=dojo.dnd.HtmlDropTarget.prototype.accepts.apply(this,arguments);
if(!_e35){
return false;
}
var _e36=_e34[0].treeNode;
if(dojo.lang.isUndefined(_e36)||!_e36||!_e36.isTreeNode){
dojo.raise("Source is not TreeNode or not found");
}
if(_e36===this.treeNode){
return false;
}
return true;
},setAutoExpandTimer:function(){
var _e37=this;
var _e38=function(){
if(dojo.dnd.dragManager.currentDropTarget===_e37){
_e37.controller.expand(_e37.treeNode);
}
};
this.autoExpandTimer=dojo.lang.setTimeout(_e38,_e37.autoExpandDelay);
},getDNDMode:function(){
return this.treeNode.tree.DNDMode;
},getAcceptPosition:function(e,_e3a){
var _e3b=this.getDNDMode();
if(_e3b&dojo.widget.Tree.prototype.DNDModes.ONTO&&!(!this.treeNode.actionIsDisabled(dojo.widget.TreeNode.prototype.actions.ADDCHILD)&&_e3a.parent!==this.treeNode&&this.controller.canMove(_e3a,this.treeNode))){
_e3b&=~dojo.widget.Tree.prototype.DNDModes.ONTO;
}
var _e3c=this.getPosition(e,_e3b);
if(_e3c=="onto"||(!this.isAdjacentNode(_e3a,_e3c)&&this.controller.canMove(_e3a,this.treeNode.parent))){
return _e3c;
}else{
return false;
}
},onDragOut:function(e){
this.clearAutoExpandTimer();
this.hideIndicator();
},clearAutoExpandTimer:function(){
if(this.autoExpandTimer){
clearTimeout(this.autoExpandTimer);
this.autoExpandTimer=null;
}
},onDragMove:function(e,_e3f){
var _e40=_e3f[0].treeNode;
var _e41=this.getAcceptPosition(e,_e40);
if(_e41){
this.showIndicator(_e41);
}
},isAdjacentNode:function(_e42,_e43){
if(_e42===this.treeNode){
return true;
}
if(_e42.getNextSibling()===this.treeNode&&_e43=="before"){
return true;
}
if(_e42.getPreviousSibling()===this.treeNode&&_e43=="after"){
return true;
}
return false;
},getPosition:function(e,_e45){
var node=dojo.byId(this.treeNode.labelNode);
var _e47=e.pageY||e.clientY+dojo.body().scrollTop;
var _e48=dojo.html.getAbsolutePosition(node).y;
var _e49=dojo.html.getBorderBox(node).height;
var relY=_e47-_e48;
var p=relY/_e49;
var _e4c="";
if(_e45&dojo.widget.Tree.prototype.DNDModes.ONTO&&_e45&dojo.widget.Tree.prototype.DNDModes.BETWEEN){
if(p<=0.3){
_e4c="before";
}else{
if(p<=0.7){
_e4c="onto";
}else{
_e4c="after";
}
}
}else{
if(_e45&dojo.widget.Tree.prototype.DNDModes.BETWEEN){
if(p<=0.5){
_e4c="before";
}else{
_e4c="after";
}
}else{
if(_e45&dojo.widget.Tree.prototype.DNDModes.ONTO){
_e4c="onto";
}
}
}
return _e4c;
},getTargetParentIndex:function(_e4d,_e4e){
var _e4f=_e4e=="before"?this.treeNode.getParentIndex():this.treeNode.getParentIndex()+1;
if(this.treeNode.parent===_e4d.parent&&this.treeNode.getParentIndex()>_e4d.getParentIndex()){
_e4f--;
}
return _e4f;
},onDrop:function(e){
var _e51=this.position;
this.onDragOut(e);
var _e52=e.dragObject.treeNode;
if(!dojo.lang.isObject(_e52)){
dojo.raise("TreeNode not found in dragObject");
}
if(_e51=="onto"){
return this.controller.move(_e52,this.treeNode,0);
}else{
var _e53=this.getTargetParentIndex(_e52,_e51);
return this.controller.move(_e52,this.treeNode.parent,_e53);
}
}});
dojo.dnd.TreeDNDController=function(_e54){
this.treeController=_e54;
this.dragSources={};
this.dropTargets={};
};
dojo.lang.extend(dojo.dnd.TreeDNDController,{listenTree:function(tree){
dojo.event.topic.subscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode");
dojo.event.topic.subscribe(tree.eventNames.moveFrom,this,"onMoveFrom");
dojo.event.topic.subscribe(tree.eventNames.moveTo,this,"onMoveTo");
dojo.event.topic.subscribe(tree.eventNames.addChild,this,"onAddChild");
dojo.event.topic.subscribe(tree.eventNames.removeNode,this,"onRemoveNode");
dojo.event.topic.subscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
},unlistenTree:function(tree){
dojo.event.topic.unsubscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode");
dojo.event.topic.unsubscribe(tree.eventNames.moveFrom,this,"onMoveFrom");
dojo.event.topic.unsubscribe(tree.eventNames.moveTo,this,"onMoveTo");
dojo.event.topic.unsubscribe(tree.eventNames.addChild,this,"onAddChild");
dojo.event.topic.unsubscribe(tree.eventNames.removeNode,this,"onRemoveNode");
dojo.event.topic.unsubscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
},onTreeDestroy:function(_e57){
this.unlistenTree(_e57.source);
},onCreateDOMNode:function(_e58){
this.registerDNDNode(_e58.source);
},onAddChild:function(_e59){
this.registerDNDNode(_e59.child);
},onMoveFrom:function(_e5a){
var _e5b=this;
dojo.lang.forEach(_e5a.child.getDescendants(),function(node){
_e5b.unregisterDNDNode(node);
});
},onMoveTo:function(_e5d){
var _e5e=this;
dojo.lang.forEach(_e5d.child.getDescendants(),function(node){
_e5e.registerDNDNode(node);
});
},registerDNDNode:function(node){
if(!node.tree.DNDMode){
return;
}
var _e61=null;
var _e62=null;
if(!node.actionIsDisabled(node.actions.MOVE)){
var _e61=new dojo.dnd.TreeDragSource(node.labelNode,this,node.tree.widgetId,node);
this.dragSources[node.widgetId]=_e61;
}
var _e62=new dojo.dnd.TreeDropTarget(node.labelNode,this.treeController,node.tree.DNDAcceptTypes,node);
this.dropTargets[node.widgetId]=_e62;
},unregisterDNDNode:function(node){
if(this.dragSources[node.widgetId]){
dojo.dnd.dragManager.unregisterDragSource(this.dragSources[node.widgetId]);
delete this.dragSources[node.widgetId];
}
if(this.dropTargets[node.widgetId]){
dojo.dnd.dragManager.unregisterDropTarget(this.dropTargets[node.widgetId]);
delete this.dropTargets[node.widgetId];
}
}});
dojo.provide("dojo.widget.TreeBasicController");
dojo.widget.defineWidget("dojo.widget.TreeBasicController",dojo.widget.HtmlWidget,{widgetType:"TreeBasicController",DNDController:"",dieWithTree:false,initialize:function(args,frag){
if(this.DNDController=="create"){
dojo.require("dojo.dnd.TreeDragAndDrop");
this.DNDController=new dojo.dnd.TreeDNDController(this);
}
},listenTree:function(tree){
dojo.event.topic.subscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode");
dojo.event.topic.subscribe(tree.eventNames.treeClick,this,"onTreeClick");
dojo.event.topic.subscribe(tree.eventNames.treeCreate,this,"onTreeCreate");
dojo.event.topic.subscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
if(this.DNDController){
this.DNDController.listenTree(tree);
}
},unlistenTree:function(tree){
dojo.event.topic.unsubscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode");
dojo.event.topic.unsubscribe(tree.eventNames.treeClick,this,"onTreeClick");
dojo.event.topic.unsubscribe(tree.eventNames.treeCreate,this,"onTreeCreate");
dojo.event.topic.unsubscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
},onTreeDestroy:function(_e68){
var tree=_e68.source;
this.unlistenTree(tree);
if(this.dieWithTree){
this.destroy();
}
},onCreateDOMNode:function(_e6a){
var node=_e6a.source;
if(node.expandLevel>0){
this.expandToLevel(node,node.expandLevel);
}
},onTreeCreate:function(_e6c){
var tree=_e6c.source;
var _e6e=this;
if(tree.expandLevel){
dojo.lang.forEach(tree.children,function(_e6f){
_e6e.expandToLevel(_e6f,tree.expandLevel-1);
});
}
},expandToLevel:function(node,_e71){
if(_e71==0){
return;
}
var _e72=node.children;
var _e73=this;
var _e74=function(node,_e76){
this.node=node;
this.expandLevel=_e76;
this.process=function(){
for(var i=0;i<this.node.children.length;i++){
var _e78=node.children[i];
_e73.expandToLevel(_e78,this.expandLevel);
}
};
};
var h=new _e74(node,_e71-1);
this.expand(node,false,h,h.process);
},onTreeClick:function(_e7a){
var node=_e7a.source;
if(node.isLocked()){
return false;
}
if(node.isExpanded){
this.collapse(node);
}else{
this.expand(node);
}
},expand:function(node,sync,_e7e,_e7f){
node.expand();
if(_e7f){
_e7f.apply(_e7e,[node]);
}
},collapse:function(node){
node.collapse();
},canMove:function(_e81,_e82){
if(_e81.actionIsDisabled(_e81.actions.MOVE)){
return false;
}
if(_e81.parent!==_e82&&_e82.actionIsDisabled(_e82.actions.ADDCHILD)){
return false;
}
var node=_e82;
while(node.isTreeNode){
if(node===_e81){
return false;
}
node=node.parent;
}
return true;
},move:function(_e84,_e85,_e86){
if(!this.canMove(_e84,_e85)){
return false;
}
var _e87=this.doMove(_e84,_e85,_e86);
if(!_e87){
return _e87;
}
if(_e85.isTreeNode){
this.expand(_e85);
}
return _e87;
},doMove:function(_e88,_e89,_e8a){
_e88.tree.move(_e88,_e89,_e8a);
return true;
},canRemoveNode:function(_e8b){
if(_e8b.actionIsDisabled(_e8b.actions.REMOVE)){
return false;
}
return true;
},removeNode:function(node,_e8d,_e8e){
if(!this.canRemoveNode(node)){
return false;
}
return this.doRemoveNode(node,_e8d,_e8e);
},doRemoveNode:function(node,_e90,_e91){
node.tree.removeNode(node);
if(_e91){
_e91.apply(dojo.lang.isUndefined(_e90)?this:_e90,[node]);
}
},canCreateChild:function(_e92,_e93,data){
if(_e92.actionIsDisabled(_e92.actions.ADDCHILD)){
return false;
}
return true;
},createChild:function(_e95,_e96,data,_e98,_e99){
if(!this.canCreateChild(_e95,_e96,data)){
return false;
}
return this.doCreateChild.apply(this,arguments);
},doCreateChild:function(_e9a,_e9b,data,_e9d,_e9e){
var _e9f=data.widgetType?data.widgetType:"TreeNode";
var _ea0=dojo.widget.createWidget(_e9f,data);
_e9a.addChild(_ea0,_e9b);
this.expand(_e9a);
if(_e9e){
_e9e.apply(_e9d,[_ea0]);
}
return _ea0;
}});
dojo.provide("dojo.widget.TreeSelector");
dojo.widget.defineWidget("dojo.widget.TreeSelector",dojo.widget.HtmlWidget,function(){
this.eventNames={};
this.listenedTrees=[];
},{widgetType:"TreeSelector",selectedNode:null,dieWithTree:false,eventNamesDefault:{select:"select",destroy:"destroy",deselect:"deselect",dblselect:"dblselect"},initialize:function(){
for(name in this.eventNamesDefault){
if(dojo.lang.isUndefined(this.eventNames[name])){
this.eventNames[name]=this.widgetId+"/"+this.eventNamesDefault[name];
}
}
},destroy:function(){
dojo.event.topic.publish(this.eventNames.destroy,{source:this});
return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments);
},listenTree:function(tree){
dojo.event.topic.subscribe(tree.eventNames.titleClick,this,"select");
dojo.event.topic.subscribe(tree.eventNames.iconClick,this,"select");
dojo.event.topic.subscribe(tree.eventNames.collapse,this,"onCollapse");
dojo.event.topic.subscribe(tree.eventNames.moveFrom,this,"onMoveFrom");
dojo.event.topic.subscribe(tree.eventNames.removeNode,this,"onRemoveNode");
dojo.event.topic.subscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
this.listenedTrees.push(tree);
},unlistenTree:function(tree){
dojo.event.topic.unsubscribe(tree.eventNames.titleClick,this,"select");
dojo.event.topic.unsubscribe(tree.eventNames.iconClick,this,"select");
dojo.event.topic.unsubscribe(tree.eventNames.collapse,this,"onCollapse");
dojo.event.topic.unsubscribe(tree.eventNames.moveFrom,this,"onMoveFrom");
dojo.event.topic.unsubscribe(tree.eventNames.removeNode,this,"onRemoveNode");
dojo.event.topic.unsubscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
for(var i=0;i<this.listenedTrees.length;i++){
if(this.listenedTrees[i]===tree){
this.listenedTrees.splice(i,1);
break;
}
}
},onTreeDestroy:function(_ea4){
this.unlistenTree(_ea4.source);
if(this.dieWithTree){
this.destroy();
}
},onCollapse:function(_ea5){
if(!this.selectedNode){
return;
}
var node=_ea5.source;
var _ea7=this.selectedNode.parent;
while(_ea7!==node&&_ea7.isTreeNode){
_ea7=_ea7.parent;
}
if(_ea7.isTreeNode){
this.deselect();
}
},select:function(_ea8){
var node=_ea8.source;
var e=_ea8.event;
if(this.selectedNode===node){
if(e.ctrlKey||e.shiftKey||e.metaKey){
this.deselect();
return;
}
dojo.event.topic.publish(this.eventNames.dblselect,{node:node});
return;
}
if(this.selectedNode){
this.deselect();
}
this.doSelect(node);
dojo.event.topic.publish(this.eventNames.select,{node:node});
},onMoveFrom:function(_eab){
if(_eab.child!==this.selectedNode){
return;
}
if(!dojo.lang.inArray(this.listenedTrees,_eab.newTree)){
this.deselect();
}
},onRemoveNode:function(_eac){
if(_eac.child!==this.selectedNode){
return;
}
this.deselect();
},doSelect:function(node){
node.markSelected();
this.selectedNode=node;
},deselect:function(){
var node=this.selectedNode;
this.selectedNode=null;
node.unMarkSelected();
dojo.event.topic.publish(this.eventNames.deselect,{node:node});
}});
dojo.provide("dojo.widget.Tree");
dojo.widget.defineWidget("dojo.widget.Tree",dojo.widget.HtmlWidget,function(){
this.eventNames={};
this.tree=this;
this.DNDAcceptTypes=[];
this.actionsDisabled=[];
},{widgetType:"Tree",eventNamesDefault:{createDOMNode:"createDOMNode",treeCreate:"treeCreate",treeDestroy:"treeDestroy",treeClick:"treeClick",iconClick:"iconClick",titleClick:"titleClick",moveFrom:"moveFrom",moveTo:"moveTo",addChild:"addChild",removeNode:"removeNode",expand:"expand",collapse:"collapse"},isContainer:true,DNDMode:"off",lockLevel:0,strictFolders:true,DNDModes:{BETWEEN:1,ONTO:2},DNDAcceptTypes:"",templateCssString:"\n.dojoTree {\n	font: caption;\n	font-size: 11px;\n	font-weight: normal;\n	overflow: auto;\n}\n\n\n.dojoTreeNodeLabelTitle {\n	padding-left: 2px;\n	color: WindowText;\n}\n\n.dojoTreeNodeLabel {\n	cursor:hand;\n	cursor:pointer;\n}\n\n.dojoTreeNodeLabelTitle:hover {\n	text-decoration: underline;\n}\n\n.dojoTreeNodeLabelSelected {\n	background-color: Highlight;\n	color: HighlightText;\n}\n\n.dojoTree div {\n	white-space: nowrap;\n}\n\n.dojoTree img, .dojoTreeNodeLabel img {\n	vertical-align: middle;\n}\n\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/images/Tree/Tree.css"),templateString:"<div class=\"dojoTree\"></div>",isExpanded:true,isTree:true,objectId:"",controller:"",selector:"",menu:"",expandLevel:"",blankIconSrc:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_blank.gif"),gridIconSrcT:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_t.gif"),gridIconSrcL:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_l.gif"),gridIconSrcV:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_v.gif"),gridIconSrcP:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_p.gif"),gridIconSrcC:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_c.gif"),gridIconSrcX:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_x.gif"),gridIconSrcY:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_y.gif"),gridIconSrcZ:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_grid_z.gif"),expandIconSrcPlus:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_expand_plus.gif"),expandIconSrcMinus:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_expand_minus.gif"),expandIconSrcLoading:dojo.uri.dojoUri("src/widget/templates/images/Tree/treenode_loading.gif"),iconWidth:18,iconHeight:18,showGrid:true,showRootGrid:true,actionIsDisabled:function(_eaf){
var _eb0=this;
return dojo.lang.inArray(_eb0.actionsDisabled,_eaf);
},actions:{ADDCHILD:"ADDCHILD"},getInfo:function(){
var info={widgetId:this.widgetId,objectId:this.objectId};
return info;
},initializeController:function(){
if(this.controller!="off"){
if(this.controller){
this.controller=dojo.widget.byId(this.controller);
}else{
dojo.require("dojo.widget.TreeBasicController");
this.controller=dojo.widget.createWidget("TreeBasicController",{DNDController:(this.DNDMode?"create":""),dieWithTree:true});
}
this.controller.listenTree(this);
}else{
this.controller=null;
}
},initializeSelector:function(){
if(this.selector!="off"){
if(this.selector){
this.selector=dojo.widget.byId(this.selector);
}else{
dojo.require("dojo.widget.TreeSelector");
this.selector=dojo.widget.createWidget("TreeSelector",{dieWithTree:true});
}
this.selector.listenTree(this);
}else{
this.selector=null;
}
},initialize:function(args,frag){
var _eb4=this;
for(name in this.eventNamesDefault){
if(dojo.lang.isUndefined(this.eventNames[name])){
this.eventNames[name]=this.widgetId+"/"+this.eventNamesDefault[name];
}
}
for(var i=0;i<this.actionsDisabled.length;i++){
this.actionsDisabled[i]=this.actionsDisabled[i].toUpperCase();
}
if(this.DNDMode=="off"){
this.DNDMode=0;
}else{
if(this.DNDMode=="between"){
this.DNDMode=this.DNDModes.ONTO|this.DNDModes.BETWEEN;
}else{
if(this.DNDMode=="onto"){
this.DNDMode=this.DNDModes.ONTO;
}
}
}
this.expandLevel=parseInt(this.expandLevel);
this.initializeSelector();
this.initializeController();
if(this.menu){
this.menu=dojo.widget.byId(this.menu);
this.menu.listenTree(this);
}
this.containerNode=this.domNode;
},postCreate:function(){
this.createDOMNode();
},createDOMNode:function(){
dojo.html.disableSelection(this.domNode);
for(var i=0;i<this.children.length;i++){
this.children[i].parent=this;
var node=this.children[i].createDOMNode(this,0);
this.domNode.appendChild(node);
}
if(!this.showRootGrid){
for(var i=0;i<this.children.length;i++){
this.children[i].expand();
}
}
dojo.event.topic.publish(this.eventNames.treeCreate,{source:this});
},destroy:function(){
dojo.event.topic.publish(this.tree.eventNames.treeDestroy,{source:this});
return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments);
},addChild:function(_eb8,_eb9){
var _eba={child:_eb8,index:_eb9,parent:this,domNodeInitialized:_eb8.domNodeInitialized};
this.doAddChild.apply(this,arguments);
dojo.event.topic.publish(this.tree.eventNames.addChild,_eba);
},doAddChild:function(_ebb,_ebc){
if(dojo.lang.isUndefined(_ebc)){
_ebc=this.children.length;
}
if(!_ebb.isTreeNode){
dojo.raise("You can only add TreeNode widgets to a "+this.widgetType+" widget!");
return;
}
if(this.isTreeNode){
if(!this.isFolder){
this.setFolder();
}
}
var _ebd=this;
dojo.lang.forEach(_ebb.getDescendants(),function(elem){
elem.tree=_ebd.tree;
});
_ebb.parent=this;
if(this.isTreeNode){
this.state=this.loadStates.LOADED;
}
if(_ebc<this.children.length){
dojo.html.insertBefore(_ebb.domNode,this.children[_ebc].domNode);
}else{
this.containerNode.appendChild(_ebb.domNode);
if(this.isExpanded&&this.isTreeNode){
this.showChildren();
}
}
this.children.splice(_ebc,0,_ebb);
if(_ebb.domNodeInitialized){
var d=this.isTreeNode?this.depth:-1;
_ebb.adjustDepth(d-_ebb.depth+1);
_ebb.updateIconTree();
}else{
_ebb.depth=this.isTreeNode?this.depth+1:0;
_ebb.createDOMNode(_ebb.tree,_ebb.depth);
}
var _ec0=_ebb.getPreviousSibling();
if(_ebb.isLastChild()&&_ec0){
_ec0.updateExpandGridColumn();
}
},makeBlankImg:function(){
var img=document.createElement("img");
img.style.width=this.iconWidth+"px";
img.style.height=this.iconHeight+"px";
img.src=this.blankIconSrc;
img.style.verticalAlign="middle";
return img;
},updateIconTree:function(){
if(!this.isTree){
this.updateIcons();
}
for(var i=0;i<this.children.length;i++){
this.children[i].updateIconTree();
}
},toString:function(){
return "["+this.widgetType+" ID:"+this.widgetId+"]";
},move:function(_ec3,_ec4,_ec5){
var _ec6=_ec3.parent;
var _ec7=_ec3.tree;
this.doMove.apply(this,arguments);
var _ec4=_ec3.parent;
var _ec8=_ec3.tree;
var _ec9={oldParent:_ec6,oldTree:_ec7,newParent:_ec4,newTree:_ec8,child:_ec3};
dojo.event.topic.publish(_ec7.eventNames.moveFrom,_ec9);
dojo.event.topic.publish(_ec8.eventNames.moveTo,_ec9);
},doMove:function(_eca,_ecb,_ecc){
_eca.parent.doRemoveNode(_eca);
_ecb.doAddChild(_eca,_ecc);
},removeNode:function(_ecd){
if(!_ecd.parent){
return;
}
var _ece=_ecd.tree;
var _ecf=_ecd.parent;
var _ed0=this.doRemoveNode.apply(this,arguments);
dojo.event.topic.publish(this.tree.eventNames.removeNode,{child:_ed0,tree:_ece,parent:_ecf});
return _ed0;
},doRemoveNode:function(_ed1){
if(!_ed1.parent){
return;
}
var _ed2=_ed1.parent;
var _ed3=_ed2.children;
var _ed4=_ed1.getParentIndex();
if(_ed4<0){
dojo.raise("Couldn't find node "+_ed1+" for removal");
}
_ed3.splice(_ed4,1);
dojo.html.removeNode(_ed1.domNode);
if(_ed2.children.length==0&&!_ed2.isTree){
_ed2.containerNode.style.display="none";
}
if(_ed4==_ed3.length&&_ed4>0){
_ed3[_ed4-1].updateExpandGridColumn();
}
if(_ed2 instanceof dojo.widget.Tree&&_ed4==0&&_ed3.length>0){
_ed3[0].updateExpandGrid();
}
_ed1.parent=_ed1.tree=null;
return _ed1;
},markLoading:function(){
},unMarkLoading:function(){
},lock:function(){
!this.lockLevel&&this.markLoading();
this.lockLevel++;
},unlock:function(){
if(!this.lockLevel){
dojo.raise("unlock: not locked");
}
this.lockLevel--;
!this.lockLevel&&this.unMarkLoading();
},isLocked:function(){
var node=this;
while(true){
if(node.lockLevel){
return true;
}
if(node instanceof dojo.widget.Tree){
break;
}
node=node.parent;
}
return false;
},flushLock:function(){
this.lockLevel=0;
this.unMarkLoading();
}});
dojo.provide("wc.render.Context");
wc.render.contexts={};
wc.render.getContextById=function(id){
return wc.render.contexts[id];
};
wc.render.updateContext=function(id,_ed8){
wc.render.getContextById(id).update(_ed8);
};
wc.render.declareContext=function(id,_eda,_edb){
var _edc=new wc.render.Context(id,_eda,_edb);
this.contexts[id]=_edc;
return _edc;
};
dojo.declare("wc.render.Context",null,{initializer:function(id,_ede,_edf){
this.id=id;
this.properties=_ede?_ede:{};
this.url=_edf;
this.contextChangedEventName=id+"/RenderContextChanged";
},id:undefined,properties:undefined,url:undefined,contextChangedEventName:undefined,update:function(_ee0){
if(!this.properties){
this.properties={};
}
if(this.url){
var _ee1={};
for(var name in _ee0){
var _ee3=_ee0[name];
if(dojo.lang.isUndefined(_ee3)){
if(dojo.lang.isUndefined(_ee1.clear)){
_ee1.clear=[name];
}else{
_ee1.clear.push(name);
}
}else{
_ee1["set_"+name]=_ee3;
}
}
dojo.io.bind({url:this.url,mimetype:"text/json",content:_ee1,properties:this.properties,successEventName:this.contextChangedEventName,load:function(type,data,evt,_ee7){
if(dojo.lang.isArray(data.renderContextChanges)){
for(var i=0;i<data.renderContextChanges.length;i++){
var name=data.renderContextChanges[i];
_ee7.properties[name]=data[name];
}
}
dojo.event.topic.publish(this.successEventName,data);
},error:function(type,_eeb){
var _eec=dojo.i18n.getLocalization("wc","common");
alert(_eec.communicationError);
}});
}else{
var data={renderContextChanges:[]};
for(var name in _ee0){
var _ee3=_ee0[name];
if(_ee3!=this.properties[name]){
data.renderContextChanges.push(name);
if(dojo.lang.isUndefined(_ee3)){
delete this.properties[name];
}else{
this.properties[name]=_ee3;
data[name]=_ee3;
}
}
}
dojo.event.topic.publish(this.contextChangedEventName,data);
}
}});
dojo.provide("wc.render.RefreshController");
wc.render.refreshControllers={};
wc.render.getRefreshControllerById=function(id){
return wc.render.refreshControllers[id];
};
wc.render.declareRefreshController=function(_eef){
var _ef0=new wc.render.RefreshController(_eef);
this.refreshControllers[_eef.id]=_ef0;
return _ef0;
};
dojo.declare("wc.render.RefreshController",null,{initializer:function(_ef1){
dojo.lang.mixin(this,_ef1);
this.syncRCProperties();
if(dojo.lang.isFunction(this.renderContextChangedHandler)){
dojo.event.topic.subscribe(this.renderContext.contextChangedEventName,this,"renderContextChanged");
}
if(dojo.lang.isFunction(this.modelChangedHandler)){
dojo.event.topic.subscribe("modelChanged",this,"modelChanged");
}
this.widgets={};
},id:undefined,renderContext:undefined,url:undefined,mimetype:"text/html",renderContextChangedHandler:undefined,modelChangedHandler:undefined,postRefreshHandler:undefined,currentRCProperties:undefined,widgets:undefined,formId:undefined,addWidget:function(_ef2){
if(this.widgets[_ef2.widgetId]){
dojo.debug("RefreshController.addWidget: duplicate widget ID "+_ef2.widgetId);
}
this.widgets[_ef2.widgetId]=_ef2;
},removeWidget:function(_ef3){
if(typeof this.widgets=="undefined"){
dojo.debug("this.widgets in RefreshController#removeWidget(widget) is not defined yet. No deletion is needed");
return;
}
delete this.widgets[_ef3.widgetId];
},syncRCProperties:function(){
if(this.renderContext){
var _ef4={};
var rc=this.renderContext.properties;
for(var prop in rc){
_ef4[prop]=rc[prop];
}
this.currentRCProperties=_ef4;
}
},renderContextChanged:function(_ef7){
for(var _ef8 in this.widgets){
this.renderContextChangedHandler(_ef7,this.widgets[_ef8]);
}
this.syncRCProperties();
},modelChanged:function(_ef9){
for(var _efa in this.widgets){
this.modelChangedHandler(_ef9,this.widgets[_efa]);
}
},refreshHandler:function(_efb,data){
_efb.setInnerHTML(data);
},refresh:function(_efd,_efe){
var _eff=null;
if(this.formId){
_eff=document.getElementById(this.formId);
}
dojo.io.bind({url:this.url,mimetype:this.mimetype,formNode:_eff,content:_efe,load:function(type,data,evt){
var _f03=_efd.controller;
_f03.refreshHandler(_efd,data);
if(_f03.postRefreshHandler!=null){
_f03.postRefreshHandler(_efd);
}
},error:function(type,_f05){
var _f06=dojo.i18n.getLocalization("wc","common");
alert(_f06.communicationError);
}});
},testForChangedRC:function(_f07){
var _f08=false;
for(var i=0;i<_f07.length;i++){
var prop=_f07[i];
if(this.currentRCProperties[prop]!=this.renderContext.properties[prop]){
_f08=true;
break;
}
}
return _f08;
}});
dojo.provide("wc.render.common");
dojo.provide("wc.render.*");
dojo.provide("wc.service.common");
wc.service.services={};
wc.service.getServiceById=function(id){
return wc.service.services[id];
};
wc.service.declare=function(_f0c){
var _f0d=new wc.service.Service(_f0c);
this.register(_f0d);
return _f0d;
};
wc.service.register=function(_f0e){
this.services[_f0e.id]=_f0e;
};
wc.service.invoke=function(_f0f,_f10){
var _f11=this.getServiceById(_f0f);
if(_f11){
_f11.invoke(_f10);
}else{
dojo.debug("Attempt to invoke an unregistered service: "+_f0f);
}
};
dojo.declare("wc.service.Service",null,{initializer:function(_f12){
dojo.lang.mixin(this,_f12);
},id:undefined,actionId:undefined,url:undefined,formId:undefined,validateParameters:function(_f13){
return true;
},validateForm:function(_f14){
return true;
},successTest:function(_f15){
return !_f15.errorMessage&&!_f15.errorMessageKey;
},successHandler:function(_f16){
},failureHandler:function(_f17){
var _f18=_f17.errorMessage;
if(_f18){
alert(_f18);
}else{
_f18=_f17.errorMessageKey;
if(_f18){
alert(_f18);
}else{
alert("Service request error.");
}
}
},invoke:function(_f19){
var _f1a=true;
var _f1b=null;
if(this.formId){
_f1b=document.getElementById(this.formId);
}
if(_f1b){
_f1a=this.validateForm(_f1b);
}
if(_f1a){
_f1a=this.validateParameters(_f19);
}
if(_f1a){
dojo.io.bind({url:this.url,mimetype:"text/json",formNode:_f1b,content:_f19,service:this,load:function(type,_f1d,evt,_f1f){
var _f20=_f1f.service;
_f1d.serviceId=_f20.id;
_f1d.actionId=_f20.actionId;
dojo.debug("Service response:");
for(var prop in _f1d){
dojo.debug("  "+prop+"="+_f1d[prop]);
}
if(_f20.successTest(_f1d)){
_f20.successHandler(_f1d);
dojo.event.topic.publish("modelChanged",_f1d);
if(_f20.actionId){
dojo.event.topic.publish("modelChanged/"+_f20.actionId,_f1d);
}
}else{
_f20.failureHandler(_f1d);
}
},error:function(type,_f23){
var _f24=dojo.i18n.getLocalization("wc","common");
alert(_f24.communicationError);
}});
}
}});
dojo.provide("wc.service.*");
dojo.provide("wc.widget.*");
dojo.widget.manager.registerWidgetPackage("wc.widget");
dojo.provide("wc.widget.Dialog");
dojo.declare("wc.widget.Dialog",dojo.widget.Dialog,{dialogClass:"",allowedElementId:"proweb_wgt",postCreate:function(){
wc.widget.Dialog.superclass.postCreate.apply(this,arguments);
if(this.dialogClass){
this.domNode.className=this.domNode.className+" "+this.dialogClass;
}
},_onKey:function(evt){
if(evt.key){
var node=evt.target;
while(node!=null){
if(node==this.domNode||node.id==this.allowedElementId){
return;
}
node=node.parentNode;
}
if(evt.key!=evt.KEY_TAB){
dojo.event.browser.stopEvent(evt);
}else{
if(!dojo.render.html.opera){
try{
this.tabStart.focus();
}
catch(e){
}
}
}
}
}});
dojo.provide("dojo.widget.Tooltip");
dojo.widget.defineWidget("dojo.widget.Tooltip",[dojo.widget.ContentPane,dojo.widget.PopupContainerBase],{caption:"",showDelay:500,hideDelay:100,connectId:"",templateCssString:".dojoTooltip {\n	border: solid black 1px;\n	background: beige;\n	color: black;\n	position: absolute;\n	font-size: small;\n	padding: 2px 2px 2px 2px;\n	z-index: 10;\n	display: block;\n}\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/TooltipTemplate.css"),fillInTemplate:function(args,frag){
if(this.caption!=""){
this.domNode.appendChild(document.createTextNode(this.caption));
}
this._connectNode=dojo.byId(this.connectId);
if(this._connectNode==null){
this._connectNode=dojo.widget.byId(this.connectId).containerNode;
}
dojo.widget.Tooltip.superclass.fillInTemplate.call(this,args,frag);
this.addOnLoad(this,"_loadedContent");
dojo.html.addClass(this.domNode,"dojoTooltip");
var _f29=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_f29);
this.applyPopupBasicStyle();
},postCreate:function(args,frag){
dojo.event.connect(this._connectNode,"onmouseover",this,"_onMouseOver");
dojo.widget.Tooltip.superclass.postCreate.call(this,args,frag);
},_onMouseOver:function(e){
this._mouse={x:e.pageX,y:e.pageY};
if(!this._tracking){
dojo.event.connect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=true;
}
this._onHover(e);
},_onMouseMove:function(e){
this._mouse={x:e.pageX,y:e.pageY};
if(dojo.html.overElement(this._connectNode,e)||dojo.html.overElement(this.domNode,e)){
this._onHover(e);
}else{
this._onUnHover(e);
}
},_onHover:function(e){
if(this._hover){
return;
}
this._hover=true;
if(this._hideTimer){
clearTimeout(this._hideTimer);
delete this._hideTimer;
}
if(!this.isShowingNow&&!this._showTimer){
this._showTimer=setTimeout(dojo.lang.hitch(this,"open"),this.showDelay);
}
},_onUnHover:function(e){
if(!this._hover){
return;
}
this._hover=false;
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
if(this.isShowingNow&&!this._hideTimer){
this._hideTimer=setTimeout(dojo.lang.hitch(this,"close"),this.hideDelay);
}
if(!this.isShowingNow){
dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=false;
}
},open:function(){
if(this.isShowingNow){
return;
}
dojo.widget.PopupContainerBase.prototype.open.call(this,this._mouse.x,this._mouse.y,null,[this._mouse.x,this._mouse.y],"TL,TR,BL,BR",[10,15]);
},close:function(){
if(this.isShowingNow){
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
if(this._hideTimer){
clearTimeout(this._hideTimer);
delete this._hideTimer;
}
dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=false;
dojo.widget.PopupContainerBase.prototype.close.call(this);
}
},_position:function(){
this.move(this._mouse.x,this._mouse.y,[10,15],"TL,TR,BL,BR");
},_loadedContent:function(){
if(this.isShowingNow){
this._position();
}
},checkSize:function(){
},uninitialize:function(){
this.close();
dojo.event.disconnect(this._connectNode,"onmouseover",this,"_onMouseOver");
}});
dojo.provide("wc.widget.ProductQuickView");
dojo.provide("wc.widget.BaseContent");
dojo.provide("wc.widget.ToolTipContent");
dojo.widget.defineWidget("wc.widget.ProductQuickView",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"containerNode\">\n<table dojoAttachPoint=\"DAPProductQuickViewTable\" cellpadding=\"1\" cellspacing=\"1\" border=\"0\" class=\"pqv_table\">\n<tr> \n	<td class=\"pqv_img_view\">\n		<div dojoAttachPoint = \"DAPCatalogEntryContainer\" style=\"display:block;\">\n			<a dojoAttachPoint = \"DAPCatalogEntryThumbnailImageLink\"  >\n				<span>\n					<img id = \"DAPCatalogEntryThumbnailImageConnectId\" dojoAttachPoint = \"DAPCatalogEntryThumbnailImage\"  alt=\"\" border=\"0\"/>\n				</span>\n			</a><div>\n			<a dojoAttachPoint = \"DAPCatalogEntryNameLink\" >\n				<span dojoAttachPoint = \"DAPCatalogEntryName\" class=\"pqv_productName\">\n				</span>\n			</a></div>\n			<br/>\n			<span dojoAttachPoint = \"DAPSKU\" class=\"pqv_text\"></span>\n			<span dojoAttachPoint = \"DAPShortDescription\" class=\"pqv_text\"></span>\n			<a dojoAttachPoint = \"DAPPriceImageLink\" ><img dojoAttachPoint = \"DAPPriceImage\"  alt='' width=\"1\" height=\"1\" border=\"0\" />\n			</a>\n			<span dojoAttachPoint = \"DAPPriceRange\" class=\"pqv_price\"></span>\n			<span class=\"pqv_img_border\">\n					<img dojoAttachPoint = \"DAPDiscountImage\"  border = \"0\"/>\n					<a  dojoAttachPoint = \"DAPDiscountLink\"  class = \"pqv_discount\">\n					<span dojoAttachPoint = \"DAPDiscountDetails\" class = \"pqv_discount\"></span>\n					</a>\n			</span>\n			<span dojoAttachPoint = \"DAPAdditionalText\"></span>\n		</div>\n	</td>\n</tr>\n</table>\n</div>",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n	.pqv_table {\n		font-family: Verdana, Arial,sans-serif; \n		font-size: 11px; \n		color:#444444; \n		width: 100%;\n	}\n	.pqv_img_view {\n		text-align : center; \n		width:120px;\n		display:block;\n		padding-top:12px;\n		padding-bottom:10px;\n		vertical-align:top;\n	}\n\n	.pqv_price {\n		font-size:  12px; \n		color: #444444; \n		font-family: arial, helvetica, sans-serif; \n		text-align: right;\n	}\n\n	.pqv_discountPrice{\n		font-size:  9pt; \n		color: #9B9B9B; \n		font-family: arial, helvetica, sans-serif;\n	}\n	.pqv_productName{\n		font-size:  11px; \n		color: #427DBE; \n		font-family: Verdana, Arial,sans-serif;\n		font-weight: bold;\n	}\n	.pqv_discount {\n		font-family:Verdana,Arial,sans-serif; \n		font-size:11px; \n		font-weight:bold; \n		color:#427DBE; \n		vertical-align:middle;\n	}\n	.pqv_text{\n		color:#174D8A;\n		font-size: 11px;\n	}",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickView.css"),isContainer:true,widgetType:"ProductQuickView",identifier:"",defaultContent:false,dragAndDrop:false,dragSourceProperties:"",CatalogEntryThumbnailImageLink:"",CatalogEntryThumbnailImageSrc:"",CatalogEntryThumbnailImageAlt:"",CatalogEntryNameLink:"",CatalogEntryName:"",PriceImageLink:"",PriceImageSrc:"",PriceRange:"",SKU:"",ShortDescription:"",DiscountImage:"",DiscountLink:"",DiscountDetails:"",AdditionalText:"",catentryId:"",dragSourceType:"*",additionalProperties:"",DAPCatalogEntryContainer:null,DAPCatalogEntryThumbnailImageLink:null,DAPCatalogEntryThumbnailImage:null,DAPCatalogEntryNameLink:null,DAPCatalogEntryName:null,DAPPriceImageLink:null,DAPPriceImage:null,DAPPriceRange:null,DAPSKU:null,DAPShortDescription:null,DAPDiscountImage:null,DAPDiscountLink:null,DAPDiscountDetails:null,DAPAdditionalText:null,DAPProductQuickViewTable:null,fillInTemplate:function(){
if(this.defaultContent){
this.DAPCatalogEntryContainer.style.display="block";
this.DAPCatalogEntryThumbnailImageLink.href=this.CatalogEntryThumbnailImageLink;
this.DAPCatalogEntryThumbnailImage.src=this.CatalogEntryThumbnailImageSrc;
this.DAPCatalogEntryThumbnailImage.alt=this.CatalogEntryThumbnailImageAlt;
this.DAPCatalogEntryThumbnailImage.id=this.catentryId;
this.DAPCatalogEntryNameLink.href=this.CatalogEntryNameLink;
this.DAPCatalogEntryName.innerHTML=this.CatalogEntryName;
this.DAPPriceImageLink.href=this.PriceImageLink;
this.DAPPriceImage.src=this.PriceImageSrc;
this.DAPPriceRange.innerHTML=this.insertWithBreak(this.PriceRange);
this.DAPSKU.innerHTML=this.insertWithBreak(this.SKU);
this.DAPShortDescription.innerHTML=this.insertWithBreak(this.ShortDescription);
this.DAPDiscountImage.src=this.DiscountImage;
this.DAPDiscountLink.href=this.insertWithBreak(this.DiscountLink);
this.DAPDiscountDetails.innerHTML=this.insertWithBreak(this.DiscountDetails);
this.DAPAdditionalText.innerHTML=this.insertWithBreak(this.AdditionalText);
}else{
this.DAPCatalogEntryContainer.style.display="none";
dojo.dom.removeChildren(this.DAPProductQuickViewTable);
}
this.addDragDropFeature();
var _f30=new Array();
var _f31=new Array();
_f30=this.additionalProperties.split(",");
for(var i=0;i<_f30.length;i++){
_f31=_f30[i].split("=");
if(_f31.length==2){
this[_f31[0]]=_f31[1];
}
}
},insertWithBreak:function(_f33){
if(_f33!=""){
return _f33+"<br/><br/>";
}
return "";
},addDragDropFeature:function(){
if(this.dragAndDrop&&this.defaultContent){
var _f34=null;
_f34=this.DAPCatalogEntryThumbnailImageLink;
_f34.name=this.DAPCatalogEntryName.innerHTML;
_f34.price=this.DAPPriceRange.innerHTML;
_f34.catentryId=this.catentryId;
var _f35=new Array();
var _f36=new Array();
_f35=this.dragSourceProperties.split(",");
for(var i=0;i<_f35.length;i++){
_f36=_f35[i].split("=");
if(_f36.length==2){
_f34[_f36[0]]=_f36[1];
}
}
new dojo.dnd.HtmlDragSource(_f34,this.dragSourceType);
}
}});
dojo.widget.defineWidget("wc.widget.BaseContent",dojo.widget.HtmlWidget,{catentryId:"",dragSourceId:"",isContainer:true,widgetType:"BaseContent",dragSourceType:"*",dragSourceProperties:"",templateString:"",userInnerHtml:"",dragAndDrop:false,postCreate:function(){
if(this.userInnerHtml!=""){
this.domNode.innerHTML=this.userInnerHtml;
}
if(this.domNode.innerHTML!=null&&this.domNode.innerHTML!=""){
if(this.dragAndDrop){
var _f38=null;
_f38=dojo.byId(this.dragSourceId);
_f38.catentryId=this.catentryId;
var _f39=new Array();
var _f3a=new Array();
_f39=this.dragSourceProperties.split(",");
for(var i=0;i<_f39.length;i++){
_f3a=_f39[i].split("=");
if(_f3a.length==2){
_f38[_f3a[0]]=_f3a[1];
}
}
new dojo.dnd.HtmlDragSource(_f38,this.dragSourceType);
}
}
}});
dojo.widget.defineWidget("wc.widget.ToolTipContent",dojo.widget.Tooltip,{connectId:"",userInnerHtml:"",toolTipSize:500,templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n.dojoTooltip {\n	color: black;\n	position: absolute;\n	z-index: 10;\n}",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickViewToolTip.css"),fillInTemplate:function(args,frag){
if(this.userInnerHtml!=""){
this.containerNode.innerHTML=this.userInnerHtml;
}
wc.widget.ToolTipContent.superclass.fillInTemplate.call(this,args,frag);
},_getPosition:function(_f3e){
var pos={x:0,y:0};
if(!_f3e.offsetParent){
return pos;
}
pos.x=_f3e.offsetLeft;
pos.y=_f3e.offsetTop;
while(_f3e=_f3e.offsetParent){
pos.x+=_f3e.offsetLeft;
pos.y+=_f3e.offsetTop;
}
return pos;
},open:function(){
if(this.isShowingNow){
return;
}
var _f40=dojo.byId(this.connectId);
var _f41=dojo.html.getAbsolutePosition(_f40,true,dojo.html.boxSizing.BORDER_BOX);
var bb=dojo.html.getBorderBox(_f40);
var xPos=_f41.x+bb.width-this.toolTipSize-11;
var yPos=_f41.y+6;
dojo.widget.PopupContainerBase.prototype.open.call(this,xPos,yPos,null,[xPos,yPos],"TL,TR,BL,BR",[10,15]);
},_isOverElement:function(_f45,e){
_f45=dojo.byId(_f45);
if(e.target.tagName.toLowerCase()=="option"||e.target.tagName.toLowerCase()=="select"){
var _f47=this._getPosition(e.target.offsetParent);
dojo.debug("mouse  = ("+_f47.x+" , "+_f47.y+") ");
}else{
var _f47=dojo.html.getCursorPosition(e);
}
var bb=dojo.html.getBorderBox(_f45);
var _f49=dojo.html.getAbsolutePosition(_f45,true,dojo.html.boxSizing.BORDER_BOX);
var top=_f49.y;
var _f4b=top+bb.height;
var left=_f49.x;
var _f4d=left+bb.width;
dojo.debug("**** left = "+left+", right = "+_f4d+", top = "+top+", bottom = "+_f4b+" mouse: "+_f47.x+", "+_f47.y+") ");
dojo.debug("**** mouse x y = ("+_f47.x+", "+_f47.y+") ");
return (_f47.x>=left&&_f47.x<=_f4d&&_f47.y>=top&&_f47.y<=_f4b);
},_onMouseMove:function(e){
this._mouse={x:e.pageX,y:e.pageY};
dojo.debug("mouse x = "+this._mouse.x+" y = "+this._mouse.y+" and target: "+e.target+" with coordinates: ("+this._getPosition(dojo.byId(e.target)).x+", "+this._getPosition(dojo.byId(e.target)).y+") ");
if(this._isOverElement(this._connectNode,e)||this._isOverElement(this.domNode,e)){
dojo.debug("on mouse on hover: {x = "+this._mouse.x+", y = "+this._mouse.y+" }");
this._onHover(e);
}else{
dojo.debug("on mousemove unhover "+e+" and target is: "+e.target+" unHovering with mouse = {x = "+this._mouse.x+", y = "+this._mouse.y+" }");
this._onUnHover(e);
}
},destroy:function(_f4f){
try{
wc.widget.ToolTipContent.superclass.uninitialize.call(this);
wc.widget.ToolTipContent.superclass.destroy.call(this,_f4f);
}
catch(err){
}
}});
dojo.provide("dojo.dnd.HtmlDragMove");
dojo.declare("dojo.dnd.HtmlDragMoveSource",dojo.dnd.HtmlDragSource,{onDragStart:function(){
var _f50=new dojo.dnd.HtmlDragMoveObject(this.dragObject,this.type);
if(this.constrainToContainer){
_f50.constrainTo(this.constrainingContainer);
}
return _f50;
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragMoveSource(this.dragObjects[i]));
}
}});
dojo.declare("dojo.dnd.HtmlDragMoveObject",dojo.dnd.HtmlDragObject,{onDragStart:function(e){
dojo.html.clearSelection();
this.dragClone=this.domNode;
if(dojo.html.getComputedStyle(this.domNode,"position")!="absolute"){
this.domNode.style.position="relative";
}
var left=parseInt(dojo.html.getComputedStyle(this.domNode,"left"));
var top=parseInt(dojo.html.getComputedStyle(this.domNode,"top"));
this.dragStartPosition={x:isNaN(left)?0:left,y:isNaN(top)?0:top};
this.scrollOffset=dojo.html.getScroll().offset;
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.containingBlockPosition={x:0,y:0};
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
dojo.event.connect(this.domNode,"onclick",this,"_squelchOnClick");
},onDragEnd:function(e){
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.domNode.style.top=y+"px";
}
if(!this.disableX){
this.domNode.style.left=x+"px";
}
},_squelchOnClick:function(e){
dojo.event.browser.stopEvent(e);
dojo.event.disconnect(this.domNode,"onclick",this,"_squelchOnClick");
}});
dojo.provide("dojo.style");
dojo.deprecated("dojo.style","replaced by dojo.html.style","0.5");
dojo.lang.mixin(dojo.style,dojo.html);
dojo.provide("dojo.experimental");
dojo.experimental=function(_f59,_f5a){
var _f5b="EXPERIMENTAL: "+_f59;
_f5b+=" -- Not yet ready for use.  APIs subject to change without notice.";
if(_f5a){
_f5b+=" "+_f5a;
}
dojo.debug(_f5b);
};
dojo.provide("dojo.regexp");
dojo.evalObjPath("dojo.regexp.us",true);
dojo.regexp.tld=function(_f5c){
_f5c=(typeof _f5c=="object")?_f5c:{};
if(typeof _f5c.allowCC!="boolean"){
_f5c.allowCC=true;
}
if(typeof _f5c.allowInfra!="boolean"){
_f5c.allowInfra=true;
}
if(typeof _f5c.allowGeneric!="boolean"){
_f5c.allowGeneric=true;
}
var _f5d="arpa";
var _f5e="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";
var ccRE="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|"+"bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|"+"ec|ee|eg|er|eu|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|"+"gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|"+"la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|"+"my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|"+"re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|"+"tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";
var a=[];
if(_f5c.allowInfra){
a.push(_f5d);
}
if(_f5c.allowGeneric){
a.push(_f5e);
}
if(_f5c.allowCC){
a.push(ccRE);
}
var _f61="";
if(a.length>0){
_f61="("+a.join("|")+")";
}
return _f61;
};
dojo.regexp.ipAddress=function(_f62){
_f62=(typeof _f62=="object")?_f62:{};
if(typeof _f62.allowDottedDecimal!="boolean"){
_f62.allowDottedDecimal=true;
}
if(typeof _f62.allowDottedHex!="boolean"){
_f62.allowDottedHex=true;
}
if(typeof _f62.allowDottedOctal!="boolean"){
_f62.allowDottedOctal=true;
}
if(typeof _f62.allowDecimal!="boolean"){
_f62.allowDecimal=true;
}
if(typeof _f62.allowHex!="boolean"){
_f62.allowHex=true;
}
if(typeof _f62.allowIPv6!="boolean"){
_f62.allowIPv6=true;
}
if(typeof _f62.allowHybrid!="boolean"){
_f62.allowHybrid=true;
}
var _f63="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var _f64="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
var _f65="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
var _f66="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|"+"4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";
var _f67="0[xX]0*[\\da-fA-F]{1,8}";
var _f68="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
var _f69="([\\da-fA-F]{1,4}\\:){6}"+"((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var a=[];
if(_f62.allowDottedDecimal){
a.push(_f63);
}
if(_f62.allowDottedHex){
a.push(_f64);
}
if(_f62.allowDottedOctal){
a.push(_f65);
}
if(_f62.allowDecimal){
a.push(_f66);
}
if(_f62.allowHex){
a.push(_f67);
}
if(_f62.allowIPv6){
a.push(_f68);
}
if(_f62.allowHybrid){
a.push(_f69);
}
var _f6b="";
if(a.length>0){
_f6b="("+a.join("|")+")";
}
return _f6b;
};
dojo.regexp.host=function(_f6c){
_f6c=(typeof _f6c=="object")?_f6c:{};
if(typeof _f6c.allowIP!="boolean"){
_f6c.allowIP=true;
}
if(typeof _f6c.allowLocal!="boolean"){
_f6c.allowLocal=false;
}
if(typeof _f6c.allowPort!="boolean"){
_f6c.allowPort=true;
}
var _f6d="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(_f6c);
var _f6e=(_f6c.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";
var _f6f=_f6d;
if(_f6c.allowIP){
_f6f+="|"+dojo.regexp.ipAddress(_f6c);
}
if(_f6c.allowLocal){
_f6f+="|localhost";
}
return "("+_f6f+")"+_f6e;
};
dojo.regexp.url=function(_f70){
_f70=(typeof _f70=="object")?_f70:{};
if(typeof _f70.scheme=="undefined"){
_f70.scheme=[true,false];
}
var _f71=dojo.regexp.buildGroupRE(_f70.scheme,function(q){
if(q){
return "(https?|ftps?)\\://";
}
return "";
});
var _f73="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";
return _f71+dojo.regexp.host(_f70)+_f73;
};
dojo.regexp.emailAddress=function(_f74){
_f74=(typeof _f74=="object")?_f74:{};
if(typeof _f74.allowCruft!="boolean"){
_f74.allowCruft=false;
}
_f74.allowPort=false;
var _f75="([\\da-z]+[-._+&'])*[\\da-z]+";
var _f76=_f75+"@"+dojo.regexp.host(_f74);
if(_f74.allowCruft){
_f76="<?(mailto\\:)?"+_f76+">?";
}
return _f76;
};
dojo.regexp.emailAddressList=function(_f77){
_f77=(typeof _f77=="object")?_f77:{};
if(typeof _f77.listSeparator!="string"){
_f77.listSeparator="\\s;,";
}
var _f78=dojo.regexp.emailAddress(_f77);
var _f79="("+_f78+"\\s*["+_f77.listSeparator+"]\\s*)*"+_f78+"\\s*["+_f77.listSeparator+"]?\\s*";
return _f79;
};
dojo.regexp.integer=function(_f7a){
_f7a=(typeof _f7a=="object")?_f7a:{};
if(typeof _f7a.signed=="undefined"){
_f7a.signed=[true,false];
}
if(typeof _f7a.separator=="undefined"){
_f7a.separator="";
}else{
if(typeof _f7a.groupSize=="undefined"){
_f7a.groupSize=3;
}
}
var _f7b=dojo.regexp.buildGroupRE(_f7a.signed,function(q){
return q?"[-+]":"";
});
var _f7d=dojo.regexp.buildGroupRE(_f7a.separator,function(sep){
if(sep==""){
return "(0|[1-9]\\d*)";
}
var grp=_f7a.groupSize,grp2=_f7a.groupSize2;
if(typeof grp2!="undefined"){
var _f81="(0|[1-9]\\d{0,"+(grp2-1)+"}(["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"("+_f81+"|(0|[1-9]\\d{0,"+(grp-1)+"}))":_f81;
}
return "(0|[1-9]\\d{0,"+(grp-1)+"}(["+sep+"]\\d{"+grp+"})*)";
});
return _f7b+_f7d;
};
dojo.regexp.realNumber=function(_f82){
_f82=(typeof _f82=="object")?_f82:{};
if(typeof _f82.places!="number"){
_f82.places=Infinity;
}
if(typeof _f82.decimal!="string"){
_f82.decimal=".";
}
if(typeof _f82.fractional=="undefined"){
_f82.fractional=[true,false];
}
if(typeof _f82.exponent=="undefined"){
_f82.exponent=[true,false];
}
if(typeof _f82.eSigned=="undefined"){
_f82.eSigned=[true,false];
}
var _f83=dojo.regexp.integer(_f82);
var _f84=dojo.regexp.buildGroupRE(_f82.fractional,function(q){
var re="";
if(q&&(_f82.places>0)){
re="\\"+_f82.decimal;
if(_f82.places==Infinity){
re="("+re+"\\d+)?";
}else{
re=re+"\\d{"+_f82.places+"}";
}
}
return re;
});
var _f87=dojo.regexp.buildGroupRE(_f82.exponent,function(q){
if(q){
return "([eE]"+dojo.regexp.integer({signed:_f82.eSigned})+")";
}
return "";
});
return _f83+_f84+_f87;
};
dojo.regexp.currency=function(_f89){
_f89=(typeof _f89=="object")?_f89:{};
if(typeof _f89.signed=="undefined"){
_f89.signed=[true,false];
}
if(typeof _f89.symbol=="undefined"){
_f89.symbol="$";
}
if(typeof _f89.placement!="string"){
_f89.placement="before";
}
if(typeof _f89.signPlacement!="string"){
_f89.signPlacement="before";
}
if(typeof _f89.separator=="undefined"){
_f89.separator=",";
}
if(typeof _f89.fractional=="undefined"&&typeof _f89.cents!="undefined"){
dojo.deprecated("dojo.regexp.currency: flags.cents","use flags.fractional instead","0.5");
_f89.fractional=_f89.cents;
}
if(typeof _f89.decimal!="string"){
_f89.decimal=".";
}
var _f8a=dojo.regexp.buildGroupRE(_f89.signed,function(q){
if(q){
return "[-+]";
}
return "";
});
var _f8c=dojo.regexp.buildGroupRE(_f89.symbol,function(_f8d){
return "\\s?"+_f8d.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?";
});
switch(_f89.signPlacement){
case "before":
_f8c=_f8a+_f8c;
break;
case "after":
_f8c=_f8c+_f8a;
break;
}
var _f8e=_f89;
_f8e.signed=false;
_f8e.exponent=false;
var _f8f=dojo.regexp.realNumber(_f8e);
var _f90;
switch(_f89.placement){
case "before":
_f90=_f8c+_f8f;
break;
case "after":
_f90=_f8f+_f8c;
break;
}
switch(_f89.signPlacement){
case "around":
_f90="("+_f90+"|"+"\\("+_f90+"\\)"+")";
break;
case "begin":
_f90=_f8a+_f90;
break;
case "end":
_f90=_f90+_f8a;
break;
}
return _f90;
};
dojo.regexp.us.state=function(_f91){
_f91=(typeof _f91=="object")?_f91:{};
if(typeof _f91.allowTerritories!="boolean"){
_f91.allowTerritories=true;
}
if(typeof _f91.allowMilitary!="boolean"){
_f91.allowMilitary=true;
}
var _f92="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";
var _f93="AS|FM|GU|MH|MP|PW|PR|VI";
var _f94="AA|AE|AP";
if(_f91.allowTerritories){
_f92+="|"+_f93;
}
if(_f91.allowMilitary){
_f92+="|"+_f94;
}
return "("+_f92+")";
};
dojo.regexp.time=function(_f95){
dojo.deprecated("dojo.regexp.time","Use dojo.date.parse instead","0.5");
_f95=(typeof _f95=="object")?_f95:{};
if(typeof _f95.format=="undefined"){
_f95.format="h:mm:ss t";
}
if(typeof _f95.amSymbol!="string"){
_f95.amSymbol="AM";
}
if(typeof _f95.pmSymbol!="string"){
_f95.pmSymbol="PM";
}
var _f96=function(_f97){
_f97=_f97.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var amRE=_f95.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var pmRE=_f95.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_f97=_f97.replace("hh","(0[1-9]|1[0-2])");
_f97=_f97.replace("h","([1-9]|1[0-2])");
_f97=_f97.replace("HH","([01][0-9]|2[0-3])");
_f97=_f97.replace("H","([0-9]|1[0-9]|2[0-3])");
_f97=_f97.replace("mm","([0-5][0-9])");
_f97=_f97.replace("m","([1-5][0-9]|[0-9])");
_f97=_f97.replace("ss","([0-5][0-9])");
_f97=_f97.replace("s","([1-5][0-9]|[0-9])");
_f97=_f97.replace("t","\\s?("+amRE+"|"+pmRE+")\\s?");
return _f97;
};
return dojo.regexp.buildGroupRE(_f95.format,_f96);
};
dojo.regexp.numberFormat=function(_f9a){
_f9a=(typeof _f9a=="object")?_f9a:{};
if(typeof _f9a.format=="undefined"){
_f9a.format="###-###-####";
}
var _f9b=function(_f9c){
_f9c=_f9c.replace(/([.$*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_f9c=_f9c.replace(/\?/g,"\\d?");
_f9c=_f9c.replace(/#/g,"\\d");
return _f9c;
};
return dojo.regexp.buildGroupRE(_f9a.format,_f9b);
};
dojo.regexp.buildGroupRE=function(a,re){
if(!(a instanceof Array)){
return re(a);
}
var b=[];
for(var i=0;i<a.length;i++){
b.push(re(a[i]));
}
return "("+b.join("|")+")";
};
dojo.provide("dojo.i18n.number");
dojo.experimental("dojo.i18n.number");
dojo.i18n.number.format=function(_fa1,_fa2,_fa3){
_fa2=(typeof _fa2=="object")?_fa2:{};
var _fa4=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_fa3);
if(typeof _fa2.separator=="undefined"){
_fa2.separator=_fa4[1];
}
if(typeof _fa2.decimal=="undefined"){
_fa2.decimal=_fa4[2];
}
if(typeof _fa2.groupSize=="undefined"){
_fa2.groupSize=_fa4[3];
}
if(typeof _fa2.groupSize2=="undefined"){
_fa2.groupSize2=_fa4[4];
}
if(typeof _fa2.round=="undefined"){
_fa2.round=true;
}
if(typeof _fa2.signed=="undefined"){
_fa2.signed=true;
}
var _fa5=(_fa2.signed&&(_fa1<0))?"-":"";
_fa1=Math.abs(_fa1);
var _fa6=String((((_fa2.places>0)||!_fa2.round)?Math.floor:Math.round)(_fa1));
function splitSubstrings(str,_fa8){
for(var subs=[];str.length>=_fa8;str=str.substr(0,str.length-_fa8)){
subs.push(str.substr(-_fa8));
}
if(str.length>0){
subs.push(str);
}
return subs.reverse();
}
if(_fa2.groupSize2&&(_fa6.length>_fa2.groupSize)){
var _faa=splitSubstrings(_fa6.substr(0,_fa6.length-_fa2.groupSize),_fa2.groupSize2);
_faa.push(_fa6.substr(-_fa2.groupSize));
_fa5=_fa5+_faa.join(_fa2.separator);
}else{
if(_fa2.groupSize){
_fa5=_fa5+splitSubstrings(_fa6,_fa2.groupSize).join(_fa2.separator);
}else{
_fa5=_fa5+_fa6;
}
}
if(_fa2.places>0){
var _fab=_fa1-Math.floor(_fa1);
_fab=(_fa2.round?Math.round:Math.floor)(_fab*Math.pow(10,_fa2.places));
_fa5=_fa5+_fa2.decimal+_fab;
}
return _fa5;
};
dojo.i18n.number.parse=function(_fac,_fad,_fae){
_fae=(typeof _fae=="object")?_fae:{};
var _faf=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_fad);
if(typeof _fae.separator=="undefined"){
_fae.separator=_faf[1];
}
if(typeof _fae.decimal=="undefined"){
_fae.decimal=_faf[2];
}
if(typeof _fae.groupSize=="undefined"){
_fae.groupSize=_faf[3];
}
if(typeof _fae.groupSize2=="undefined"){
_fae.groupSize2=_faf[4];
}
if(typeof _fae.validate=="undefined"){
_fae.validate=true;
}
if(_fae.validate&&!dojo.i18n.number.isReal(_fac,_fad,_fae)){
return Number.NaN;
}
var _fb0=_fac.split(_fae.decimal);
if(_fb0.length>2){
return Number.NaN;
}
var _fb1=Number(_fb0[0].replace(new RegExp("\\"+_fae.separator,"g"),""));
var _fb2=(_fb0.length==1)?0:Number(_fb0[1])/Math.pow(10,String(_fb0[1]).length);
return _fb1+_fb2;
};
dojo.i18n.number.isInteger=function(_fb3,_fb4,_fb5){
_fb5=(typeof _fb5=="object")?_fb5:{};
var _fb6=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_fb4);
if(typeof _fb5.separator=="undefined"){
_fb5.separator=_fb6[1];
}else{
if(dojo.lang.isArray(_fb5.separator)&&_fb5.separator.length===0){
_fb5.separator=[_fb6[1],""];
}
}
if(typeof _fb5.groupSize=="undefined"){
_fb5.groupSize=_fb6[3];
}
if(typeof _fb5.groupSize2=="undefined"){
_fb5.groupSize2=_fb6[4];
}
var re=new RegExp("^"+dojo.regexp.integer(_fb5)+"$");
return re.test(_fb3);
};
dojo.i18n.number.isReal=function(_fb8,_fb9,_fba){
_fba=(typeof _fba=="object")?_fba:{};
var _fbb=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_fb9);
if(typeof _fba.separator=="undefined"){
_fba.separator=_fbb[1];
}else{
if(dojo.lang.isArray(_fba.separator)&&_fba.separator.length===0){
_fba.separator=[_fbb[1],""];
}
}
if(typeof _fba.decimal=="undefined"){
_fba.decimal=_fbb[2];
}
if(typeof _fba.groupSize=="undefined"){
_fba.groupSize=_fbb[3];
}
if(typeof _fba.groupSize2=="undefined"){
_fba.groupSize2=_fbb[4];
}
var re=new RegExp("^"+dojo.regexp.realNumber(_fba)+"$");
return re.test(_fb8);
};
(function(){
dojo.i18n.number.FORMAT_TABLE={"ar-ae":["","",",",1],"ar-bh":["","",",",1],"ar-dz":["","",",",1],"ar-eg":["","",",",1],"ar-jo":["","",",",1],"ar-kw":["","",",",1],"ar-lb":["","",",",1],"ar-ma":["","",",",1],"ar-om":["","",",",1],"ar-qa":["","",",",1],"ar-sa":["","",",",1],"ar-sy":["","",",",1],"ar-tn":["","",",",1],"ar-ye":["","",",",1],"cs-cz":[".",".",",",3],"da-dk":[".",".",",",3],"de-at":[".",".",",",3],"de-de":[".",".",",",3],"de-lu":[".",".",",",3],"de-ch":["'","'",".",3],"el-gr":[".",".",",",3],"en-au":[",",",",".",3],"en-ca":[",",",",".",3],"en-gb":[",",",",".",3],"en-hk":[",",",",".",3],"en-ie":[",",",",".",3],"en-in":[",",",",".",3,2],"en-nz":[",",",",".",3],"en-us":[",",",",".",3],"en-za":[",",",",".",3],"es-ar":[".",".",",",3],"es-bo":[".",".",",",3],"es-cl":[".",".",",",3],"es-co":[".",".",",",3],"es-cr":[".",".",",",3],"es-do":[".",".",",",3],"es-ec":[".",".",",",3],"es-es":[".",".",",",3],"es-gt":[",",",",".",3],"es-hn":[",",",",".",3],"es-mx":[",",",",".",3],"es-ni":[",",",",".",3],"es-pa":[",",",",".",3],"es-pe":[",",",",".",3],"es-pr":[",",",",".",3],"es-py":[".",".",",",3],"es-sv":[",",",",".",3],"es-uy":[".",".",",",3],"es-ve":[".",".",",",3],"fi-fi":[" "," ",",",3],"fr-be":[".",".",",",3],"fr-ca":[" "," ",",",3],"fr-ch":[" "," ",".",3],"fr-fr":[" "," ",",",3],"fr-lu":[".",".",",",3],"he-il":[",",",",".",3],"hu-hu":[" "," ",",",3],"it-ch":[" "," ",".",3],"it-it":[".",".",",",3],"ja-jp":[",",",",".",3],"ko-kr":[",",",",".",3],"no-no":[".",".",",",3],"nl-be":[" "," ",",",3],"nl-nl":[".",".",",",3],"pl-pl":[".",".",",",3],"pt-br":[".",".",",",3],"pt-pt":[".",".","$",3],"ru-ru":[" "," ",",",3],"sv-se":["."," ",",",3],"tr-tr":[".",".",",",3],"zh-cn":[",",",",".",3],"zh-hk":[",",",",".",3],"zh-tw":[",",",",".",3],"*":[",",",",".",3]};
})();
dojo.i18n.number._mapToLocalizedFormatData=function(_fbd,_fbe){
_fbe=dojo.hostenv.normalizeLocale(_fbe);
var data=_fbd[_fbe];
if(typeof data=="undefined"){
data=_fbd["*"];
}
return data;
};
dojo.provide("dojo.i18n.currency");
dojo.experimental("dojo.i18n.currency");
dojo.i18n.currency.format=function(_fc0,iso,_fc2,_fc3){
_fc2=(typeof _fc2=="object")?_fc2:{};
var _fc4=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_fc3);
if(typeof _fc2.places=="undefined"){
_fc2.places=_fc4.places;
}
if(typeof _fc2.places=="undefined"){
_fc2.places=2;
}
_fc2.signed=false;
var _fc5=dojo.i18n.number.format(_fc0,_fc2,_fc3);
var sym=_fc4.symbol;
if(_fc4.adjSpace=="symbol"){
if(_fc4.placement=="after"){
sym=" "+sym;
}else{
sym=sym+" ";
}
}
if(_fc0<0){
if(_fc4.signPlacement=="before"){
sym="-"+sym;
}else{
if(_fc4.signPlacement=="after"){
sym=sym+"-";
}
}
}
var spc=(_fc4.adjSpace=="number")?" ":"";
if(_fc4.placement=="after"){
_fc5=_fc5+spc+sym;
}else{
_fc5=sym+spc+_fc5;
}
if(_fc0<0){
if(_fc4.signPlacement=="around"){
_fc5="("+_fc5+")";
}else{
if(_fc4.signPlacement=="end"){
_fc5=_fc5+"-";
}else{
if(!_fc4.signPlacement||_fc4.signPlacement=="begin"){
_fc5="-"+_fc5;
}
}
}
}
return _fc5;
};
dojo.i18n.currency.parse=function(_fc8,iso,_fca,_fcb){
if(typeof _fcb.validate=="undefined"){
_fcb.validate=true;
}
if(_fcb.validate&&!dojo.i18n.number.isCurrency(_fc8,iso,_fca,_fcb)){
return Number.NaN;
}
var sign=(_fc8.indexOf("-")!=-1);
var abs=abs.replace(/\-/,"");
var _fce=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_fca);
abs=abs.replace(new RegExp("\\"+_fce.symbol),"");
var _fcf=dojo.i18n.number.parse(abs,_fca,_fcb);
if(sign){
_fcf=_fcf*-1;
}
return _fcf;
};
dojo.i18n.currency.isCurrency=function(_fd0,iso,_fd2,_fd3){
_fd3=(typeof _fd3=="object")?_fd3:{};
var _fd4=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_fd2);
if(typeof _fd3.separator=="undefined"){
_fd3.separator=_fd4[0];
}else{
if(dojo.lang.isArray(_fd3.separator)&&_fd3.separator.length==0){
_fd3.separator=[_fd4[0],""];
}
}
if(typeof _fd3.decimal=="undefined"){
_fd3.decimal=_fd4[2];
}
if(typeof _fd3.groupSize=="undefined"){
_fd3.groupSize=_fd4[3];
}
if(typeof _fd3.groupSize2=="undefined"){
_fd3.groupSize2=_fd4[4];
}
var _fd5=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_fd2);
if(typeof _fd3.places=="undefined"){
_fd3.places=_fd5.places;
}
if(typeof _fd3.places=="undefined"){
_fd3.places=2;
}
if(typeof _fd3.symbol=="undefined"){
_fd3.symbol=_fd5.symbol;
}else{
if(dojo.lang.isArray(_fd3.symbol)&&_fd3.symbol.length==0){
_fd3.symbol=[_fd5.symbol,""];
}
}
if(typeof _fd3.placement=="undefined"){
_fd3.placement=_fd5.placement;
}
var re=new RegExp("^"+dojo.regexp.currency(_fd3)+"$");
return re.test(_fd0);
};
dojo.i18n.currency._mapToLocalizedFormatData=function(_fd7,iso,_fd9){
var _fda=dojo.i18n.currency.FORMAT_TABLE[iso];
if(!dojo.lang.isArray(_fda)){
return _fda;
}
return dojo.i18n.number._mapToLocalizedFormatData(_fda[0],_fd9);
};
(function(){
var _fdb={symbol:"\u062c",placement:"after",htmlSymbol:"?"};
var euro={symbol:"\u20ac",placement:"before",adjSpace:"symbol",htmlSymbol:"&euro;"};
var _fdd={symbol:"\u20ac",placement:"after",htmlSymbol:"&euro;"};
dojo.i18n.currency.FORMAT_TABLE={AED:{symbol:"\u062c",placement:"after"},ARS:{symbol:"$",signPlacement:"after"},ATS:{symbol:"\u20ac",adjSpace:"number",signPlacement:"after",htmlSymbol:"&euro;"},AUD:{symbol:"$"},BOB:{symbol:"$b"},BRL:{symbol:"R$",adjSpace:"symbol"},BEF:_fdd,BHD:_fdb,CAD:[{"*":{symbol:"$"},"fr-ca":{symbol:"$",placement:"after",signPlacement:"around"}}],CHF:{symbol:"CHF",adjSpace:"symbol",signPlacement:"after"},CLP:{symbol:"$"},COP:{symbol:"$",signPlacement:"around"},CNY:{symbol:"\xa5",htmlSymbol:"&yen;"},CRC:{symbol:"\u20a1",signPlacement:"after",htmlSymbol:"?"},CZK:{symbol:"Kc",adjSpace:"symbol",signPlacement:"after"},DEM:_fdd,DKK:{symbol:"kr.",adjSpace:"symbol",signPlacement:"after"},DOP:{symbol:"$"},DZD:_fdb,ECS:{symbol:"$",signPlacement:"after"},EGP:_fdb,ESP:_fdd,EUR:euro,FIM:_fdd,FRF:_fdd,GBP:{symbol:"\xa3",htmlSymbol:"&pound;"},GRD:{symbol:"\u20ac",signPlacement:"end",htmlSymbol:"&euro;"},GTQ:{symbol:"Q",signPlacement:"after"},HKD:{symbol:"HK$"},HNL:{symbol:"L.",signPlacement:"end"},HUF:{symbol:"Ft",placement:"after",adjSpace:"symbol"},IEP:{symbol:"\u20ac",htmlSymbol:"&euro;"},ILS:{symbol:"\u05e9\"\u05d7",placement:"after",htmlSymbol:"?"},INR:{symbol:"Rs."},ITL:{symbol:"\u20ac",signPlacement:"after",htmlSymbol:"&euro;"},JOD:_fdb,JPY:{symbol:"\xa5",places:0,htmlSymbol:"&yen;"},KRW:{symbol:"\u20a9",places:0,htmlSymbol:"?"},KWD:_fdb,LBP:_fdb,LUF:_fdd,MAD:_fdb,MXN:{symbol:"$",signPlacement:"around"},NIO:{symbol:"C$",adjSpace:"symbol",signPlacement:"after"},NLG:{symbol:"\u20ac",signPlacement:"end",htmlSymbol:"&euro;"},NOK:{symbol:"kr",adjSpace:"symbol",signPlacement:"after"},NZD:{symbol:"$"},OMR:_fdb,PAB:{symbol:"B/",adjSpace:"symbol",signPlacement:"after"},PEN:{symbol:"S/",signPlacement:"after"},PLN:{symbol:"z",placement:"after"},PTE:_fdd,PYG:{symbol:"Gs.",signPlacement:"after"},QAR:_fdb,RUR:{symbol:"rub.",placement:"after"},SAR:_fdb,SEK:{symbol:"kr",placement:"after",adjSpace:"symbol"},SGD:{symbol:"$"},SVC:{symbol:"\u20a1",signPlacement:"after",adjSpace:"symbol"},SYP:_fdb,TND:_fdb,TRL:{symbol:"TL",placement:"after"},TWD:{symbol:"NT$"},USD:{symbol:"$"},UYU:{symbol:"$U",signplacement:"after",adjSpace:"symbol"},VEB:{symbol:"Bs",signplacement:"after",adjSpace:"symbol"},YER:_fdb,ZAR:{symbol:"R",signPlacement:"around"}};
})();
dojo.provide("wc.widget.RangeSlider");
wc.widget.RangeSlider=function(){
dojo.widget.HtmlWidget.call(this);
this.widgetType="RangeSlider";
this.isContainer=true;
this.templateCssString="/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n.rangeSelectorHandle { \n  color: #FF0000;\n  position: absolute; \n  background-image: url(images/rangeSelector-button.png);\n  width: 25px; \n  height: 25px;\n  cursor: pointer;\n  z-index: 10;\n}\n\n.rangeSelectorHandleHover { \n  background-image: url(images/rangeSelector-button-hover.png);\n}\n\n.rangeSelectorBar { \n  width: 300px;\n  height: 25px;\n  cursor: pointer;\n  background: url(images/rangeSelector-bar.png) no-repeat;\n}\n\n.rangeSelectorTooltip{\n  position: absolute;\n  background-color: #ffffff;\n  border: solid 1px #000000;\n  padding: 2px 2px 2px 2px;\n  font-size: small;\n  z-index: 30;\n}\n";this.templateCssPath=dojo.uri.dojoUri("wc/widget/templates/RangeSlider.css");
this.templateString="<div class=\"rangeSelectorMain\">\n    <div id=\"${this.widgetId}_firstHandle\" class=\"rangeSelectorHandle\" dojoAttachPoint=\"firstHandle\" dojoAttachEvent=\"onMouseOver: onFirstMouseOver; onMouseOut: onFirstMouseOut;\"></div>\n    <div class=\"rangeSelectorBar\" dojoAttachPoint=\"rangeSelectorBar\"></div>\n    <div id=\"${this.widgetId}_secondHandle\" class=\"rangeSelectorHandle\" dojoAttachPoint=\"secondHandle\" dojoAttachEvent=\"onMouseOver: onSecondMouseOver; onMouseOut: onSecondMouseOut;\"></div>\n\n	<div id=\"${this.widgetId}_firstHandle_tooltip\" class=\"rangeSelectorTooltip\" dojoAttachPoint=\"firstTooltip\"></div>\n   	<div id=\"${this.widgetId}_secondHandle_tooltip\" class=\"rangeSelectorTooltip\" dojoAttachPoint=\"secondTooltip\"></div>\n</div>\n";
this.firstHandle=null;
this.secondHandle=null;
this.rangeSelectorBar=null;
this.startRange=0;
this.totalRange=100;
this.defaultStart=0;
this.defaultEnd=0;
this.clickSelect=true;
this.snapToGrid=true;
this.activeDrag=true;
this.incrementValue=1;
this.decimalPoints=0;
this.showTooltip=true;
this.showTooltipAllTime=true;
this.ralativePositionFirst=[-1,-1];
this.ralativePositionSecond=[1,-1];
this.prefix="";
this.suffix="";
this.currencyCode="";
this.firstTooltip=null;
this.secondTooltip=null;
this.currentValue=new Object();
this.fillInTemplate=function(args,frag){
dojo.lang.setTimeout(this,"initWidget",0);
};
this.initWidget=function(){
this.pixelsOnSlider=dojo.html.getContentBoxWidth(this.rangeSelectorBar);
this.endRange=this.startRange+this.totalRange;
this.pixelsPerUnit=(this.pixelsOnSlider)/this.totalRange;
this.noOfDecimalUnits=(this.totalRange*(Math.pow(10,this.decimalPoints)))/this.incrementValue;
var x=Math.log(this.noOfDecimalUnits/this.pixelsOnSlider)*Math.LOG10E;
if(x>0){
dojo.debug("RangeSlider Widget: The whole range (along with decimal values) cannot be represented by the specified width of the widget. "+"Please set decimalPoints value to "+Math.floor(this.decimalPoints-x)+" or less, OR "+"Set the width of the widget to "+(this.noOfDecimalUnits)+" Pixels.");
dojo.debug("RangeSlider Widget: The decimalPoints value is set to "+Math.floor(this.decimalPoints-x)+" from its origional value "+this.decimalPoints);
this.decimalPoints=Math.floor(this.decimalPoints-x);
}
if(this.pixelsPerUnit<1){
dojo.debug("RangeSlider Widget: The whole range cannot be represented by the specified width of the widget. "+"Please decrese the range  by "+dojo.math.round((1-this.pixelsPerUnit)*this.totalRange)+" Units OR "+"Increase the width of the widget by "+dojo.math.round((1-this.pixelsPerUnit)*this.totalRange)+" Pixels.");
}
if(this.defaultStart<this.startRange||this.defaultStart>=this.endRange){
this.defaultStart=this.startRange;
}
if(this.defaultEnd>this.endRange||this.defaultEnd<=this.startRange){
this.defaultEnd=this.endRange;
}
this.currentValue.lower=this.defaultStart;
this.currentValue.upper=this.defaultEnd;
this.setupSlider(this.firstHandle,"first");
this.setupSlider(this.secondHandle,"second");
if(this.clickSelect){
dojo.event.connect(this.rangeSelectorBar,"onclick",this,"onSliderBarClick");
}
if(typeof window!="undefined"){
dojo.event.connect(window,"onresize",this,"onWindowResized");
}
};
this.setupSlider=function(_fe1,name){
this.handleMove=new dojo.widget.SliderDragMoveSource(_fe1);
this.handleMove=new dojo.widget.SliderDragMoveSource(_fe1);
this.handleMove.setParent(this);
dojo.event.connect(this.handleMove,"onDragMove",this,"onDragMove");
dojo.event.connect(this.handleMove,"onDragEnd",this,"onDragEnd");
dojo.event.connect(this.handleMove,"onClick",this,"onClick");
_fe1.name=name;
this.startLimit=dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(this.firstHandle)/2;
this.endLimit=this.startLimit+this.pixelsOnSlider;
var _fe3=[];
if(name=="first"){
_fe3[0]=(this.ralativePositionFirst[0]<0)?(this.ralativePositionFirst[0]-20):(this.ralativePositionFirst[0]+dojo.html.getContentBoxWidth(this.firstHandle));
_fe3[1]=(this.ralativePositionFirst[1]<0)?(this.ralativePositionFirst[1]-15):(this.ralativePositionFirst[0]+dojo.html.getContentBoxHeight(this.firstHandle));
var _fe4=(this.currentValue.lower-this.startRange)*this.pixelsPerUnit+dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(_fe1)/2;
if(this.showTooltip){
_fe1.tempHandle=this.firstTooltip;
dojo.style.hide(this.firstTooltip);
if(this.showTooltipAllTime){
dojo.style.show(this.firstTooltip);
}
}else{
dojo.style.hide(this.firstTooltip);
}
}else{
if(name=="second"){
_fe3[0]=(this.ralativePositionSecond[0]<0)?(this.ralativePositionSecond[0]-20):(this.ralativePositionSecond[0]+dojo.html.getContentBoxWidth(this.secondHandle));
_fe3[1]=(this.ralativePositionSecond[1]<0)?(this.ralativePositionSecond[1]-15):(this.ralativePositionSecond[0]+dojo.html.getContentBoxHeight(this.secondHandle));
var _fe4=(this.currentValue.upper-this.startRange)*this.pixelsPerUnit+dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(_fe1)/2;
if(this.showTooltip){
_fe1.tempHandle=this.secondTooltip;
dojo.style.hide(this.secondTooltip);
if(this.showTooltipAllTime){
dojo.style.show(this.secondTooltip);
}
}else{
dojo.style.hide(this.secondTooltip);
}
}else{
dojo.debug("RangeSlider Widget: Something is wrong with name:"+name+" in this.setupSlider(handle, name)");
}
}
if(this.snapToGrid){
_fe4=this.getPixelValue(this.getUnitValue(_fe4));
}
_fe1.style.left=_fe4+"px";
_fe1.style.top=dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).y+dojo.html.getContentBoxHeight(this.rangeSelectorBar)/2-dojo.html.getContentBoxHeight(this.firstHandle)/2+"px";
if(this.showTooltip){
_fe1.tempHandle.style.position="absolute";
_fe1.tempHandle.style.top=dojo.style.getAbsolutePosition(_fe1,true).y+parseInt(_fe3[1])+"px";
_fe1.tempHandle.style.left=dojo.style.getAbsolutePosition(_fe1,true).x+parseInt(_fe3[0])+"px";
}
this.valueChanged(name);
};
this.round=function(_fe5){
return dojo.math.round(_fe5,this.decimalPoints);
};
this.setUnitPosition=function(node,_fe7){
var _fe8=(_fe7-this.startRange)*this.pixelsPerUnit+this.startLimit;
this.setPixelPosition(node,_fe8);
};
this.setPixelPosition=function(node,_fea){
this.currentHandle=node;
var _feb=_fea;
var _fec=this.getPixelValue(0)-5;
var _fed=this.getPixelValue(this.totalRange)+5;
var _fee=[];
if(node.name=="first"){
_fed=dojo.style.getAbsolutePosition(this.secondHandle,true).x;
this.secondHandle.style.zIndex=10;
this.secondTooltip.style.zIndex=30;
this.firstHandle.style.zIndex=20;
this.firstTooltip.style.zIndex=40;
_fee[0]=(this.ralativePositionFirst[0]<0)?(this.ralativePositionFirst[0]-20):(this.ralativePositionFirst[0]+dojo.html.getContentBoxWidth(this.firstHandle));
_fee[1]=(this.ralativePositionFirst[1]<0)?(this.ralativePositionFirst[1]-15):(this.ralativePositionFirst[0]+dojo.html.getContentBoxHeight(this.firstHandle));
}else{
if(node.name=="second"){
_fec=dojo.style.getAbsolutePosition(this.firstHandle,true).x;
this.firstHandle.style.zIndex=10;
this.firstTooltip.style.zIndex=30;
this.secondHandle.style.zIndex=20;
this.secondTooltip.style.zIndex=40;
_fee[0]=(this.ralativePositionSecond[0]<0)?(this.ralativePositionSecond[0]-20):(this.ralativePositionSecond[0]+dojo.html.getContentBoxWidth(this.secondHandle));
_fee[1]=(this.ralativePositionSecond[1]<0)?(this.ralativePositionSecond[1]-15):(this.ralativePositionSecond[0]+dojo.html.getContentBoxHeight(this.secondHandle));
}else{
dojo.debug("RangeSlider Widget: Something is wrong with node.name:"+name+" in this.setPixelPosition(node,pixelValue)");
}
}
if(_fec<=_feb&&_feb<=_fed){
if(this.snapToGrid&&!this.activeDrag){
_fea=this.getPixelValue(this.getUnitValue(_fea));
}
node.style.left=_fea+"px";
dojo.style.show(node.tempHandle);
if(this.showTooltip){
node.tempHandle.style.position="absolute";
node.tempHandle.style.left=_fea+parseInt(_fee[0])+"px";
node.tempHandle.style.top=dojo.style.getAbsolutePosition(node,true).y+parseInt(_fee[1])+"px";
}
this.valueChanged(node.name);
}
};
this.getUnitValue=function(_fef){
var _ff0=this.startLimit;
var last=_fef;
var res=this.startRange+(last-_ff0)/this.pixelsPerUnit;
var res=this.round(res/this.incrementValue)*this.incrementValue;
if(res<this.startRange){
res=this.startRange;
}
if(res>this.endRange){
res=this.endRange;
}
return res;
};
this.getPixelValue=function(_ff3){
_ff3=this.round(_ff3/this.incrementValue)*this.incrementValue;
var _ff4=this.startLimit;
var last=_ff3*this.pixelsPerUnit;
var res=(_ff4+last);
if(res<this.startLimit){
res=this.startLimit;
}
if(res>this.endLimit){
res=this.endLimit;
}
return res;
};
this.getCloserSliderHandle=function(_ff7){
var _ff8=dojo.style.getAbsolutePosition(this.firstHandle,true).x+dojo.html.getContentBoxWidth(this.firstHandle)/2;
var _ff9=dojo.style.getAbsolutePosition(this.secondHandle,true).x+dojo.html.getContentBoxWidth(this.secondHandle)/2;
var _ffa=_ff7-_ff8;
var _ffb=_ff9-_ff7;
if(_ffa<=_ffb){
return this.firstHandle;
}else{
return this.secondHandle;
}
};
this.getCurrentValues=function(){
return this.currentValue;
};
this.valueChanged=function(_ffc){
if(_ffc=="first"||_ffc=="*"){
this.currentValue.lower=this.round(this.getUnitValue(dojo.style.getAbsolutePosition(this.firstHandle,true).x));
}
if(_ffc=="second"||_ffc=="*"){
this.currentValue.upper=this.round(this.getUnitValue(dojo.style.getAbsolutePosition(this.secondHandle,true).x));
}
var _ffd=this.currentValue.lower;
var _ffe=this.currentValue.upper;
if(this.currencyCode!=null&&this.currencyCode!=""){
_ffd=dojo.i18n.currency.format(_ffd,this.currencyCode,{places:0});
_ffe=dojo.i18n.currency.format(_ffe,this.currencyCode,{places:0});
}
if(this.showTooltip){
this.firstTooltip.innerHTML=this.prefix+_ffd+this.suffix;
this.secondTooltip.innerHTML=this.prefix+_ffe+this.suffix;
}
this.onChange(this);
};
this.getFormattedValues=function(){
var _fff=this.currentValue.lower;
var _1000=this.currentValue.upper;
if(this.currencyCode!=null&&this.currencyCode!=""){
_fff=dojo.i18n.currency.format(_fff,this.currencyCode,{places:0});
_1000=dojo.i18n.currency.format(_1000,this.currencyCode,{places:0});
}
return {lower:_fff,upper:_1000};
};
this.onSliderBarClick=function(e){
var _1002=dojo.html.getScrollOffset().x+e.clientX;
var node=this.getCloserSliderHandle(_1002);
_1002=_1002-dojo.html.getContentBoxWidth(node)/2;
this.setPixelPosition(node,_1002);
this.onChangeMade(this);
};
this.onDragEnd=function(e){
if(this.snapToGrid&&this.activeDrag&&this.currentHandle!==null){
var _1005=this.getPixelValue(this.getUnitValue(dojo.style.getAbsolutePosition(this.currentHandle,true).x));
this.currentHandle.style.left=_1005+"px";
}
if(!this.showTooltipAllTime){
dojo.style.hide(this.firstTooltip);
dojo.style.hide(this.secondTooltip);
}
this.onChangeMade(this);
};
this.onFirstMouseOver=function(){
if(!this.showTooltipAllTime){
dojo.style.show(this.firstTooltip);
}
dojo.html.addClass(this.firstHandle,"rangeSelectorHandleHover");
};
this.onFirstMouseOut=function(){
if(!this.showTooltipAllTime){
dojo.style.hide(this.firstTooltip);
}
dojo.html.removeClass(this.firstHandle,"rangeSelectorHandleHover");
};
this.onSecondMouseOver=function(){
if(!this.showTooltipAllTime){
dojo.style.show(this.secondTooltip);
}
dojo.html.addClass(this.secondHandle,"rangeSelectorHandleHover");
};
this.onSecondMouseOut=function(){
if(!this.showTooltipAllTime){
dojo.style.hide(this.secondTooltip);
}
dojo.html.removeClass(this.secondHandle,"rangeSelectorHandleHover");
};
this.onDragMove=function(e){
};
this.onClick=function(e){
};
this.onChange=function(e){
};
this.onChangeMade=function(e){
};
this.onWindowResized=function(){
this.setupSlider(this.firstHandle,"first");
this.setupSlider(this.secondHandle,"second");
};
};
dojo.inherits(wc.widget.RangeSlider,dojo.widget.HtmlWidget);
dojo.widget.tags.addParseTreeHandler("dojo:RangeSlider");
dojo.declare("dojo.widget.SliderDragMoveSource",dojo.dnd.HtmlDragMoveSource,{isDragInProgress:false,slider:null,onDragStart:function(e){
var _100b=this.createDragMoveObject();
dojo.event.connect(_100b,"onDragMove",this,"onDragMove");
return _100b;
},onDragMove:function(e){
},createDragMoveObject:function(){
var _100d=new dojo.widget.SliderDragMoveObject(this.dragObject,this.type);
_100d.slider=this.slider;
if(this.dragClass){
_100d.dragClass=this.dragClass;
}
return _100d;
},setParent:function(_100e){
this.slider=_100e;
}});
dojo.declare("dojo.widget.SliderDragMoveObject",dojo.dnd.HtmlDragMoveObject,{slider:null,onDragMove:function(e){
if(this.slider.isEnableX&&0==this.slider.valueSizeX){
this.slider.valueSizeX=(this.constraints.maxX-this.constraints.minX)/this.slider.valuesX;
}
if(this.slider.isEnableY&&0==this.slider.valueSizeY){
this.slider.valueSizeY=(this.constraints.maxY-this.constraints.minY)/this.slider.valuesY;
}
this.updateDragOffset();
var x=this.dragOffset.x+e.pageX;
var y=this.dragOffset.y+e.pageY;
this.slider.setPixelPosition(this.domNode,x);
}});
dojo.provide("wc.widget.RefreshArea");
dojo.widget.defineWidget("wc.widget.RefreshArea",dojo.widget.HtmlWidget,{isContainer:true,controllerId:"",objectId:"",controller:null,initialize:function(){
this.controller=wc.render.getRefreshControllerById(this.controllerId);
if(!this.controller){
throw new Error("Could not locate RefreshController \""+this.controllerId+"\".");
}
this.controller.addWidget(this);
this.containerNode=this.domNode;
},destroy:function(){
this.controller.removeWidget(this);
return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments);
},refresh:function(_1012){
if(!_1012){
_1012={};
}
_1012.objectId=this.objectId;
this.controller.refresh(this,_1012);
},setInnerHTML:function(html){
this.destroyChildren();
this.containerNode.innerHTML=html;
var _1014=new dojo.xml.Parse();
var frag=_1014.parseElement(this.containerNode,null,true);
dojo.widget.getParser().createSubComponents(frag,this);
}});
dojo.provide("wc.widget.ScrollablePane");
dojo.widget.defineWidget("wc.widget.ScrollablePane",dojo.widget.HtmlWidget,{identifier:"",widgetType:"ScrollablePane",isContainer:true,snarfChildDomOutput:true,templateString:"<div dojoAttachPoint=\"widgetContainer\" >\n	<table>\n		<tr>\n			<td>\n				<div dojoAttachPoint=\"moveBackwardContainer\">\n					<div dojoAttachPoint=\"moveBackwardButton\" \n						 dojoAttachEvent=\"onClick: backward; onMouseOver: onBackwardMouseOver; onMouseOut: onBackwardMouseOut;\">\n					</div>\n				</div>\n			</td>\n\n			<td>\n				<div id=\"${this.widgetId}_container\" \n					dojoAttachPoint=\"containerNode\" \n					dojoAttachEvent=\"onMouseOver:onContainerMouseOver; onMouseOut:onContainerMouseOut;\">\n				</div>\n			</td>\n\n			<td>\n				<div dojoAttachPoint=\"moveForwardContainer\">\n					<div dojoAttachPoint=\"moveForwardButton\" \n					dojoAttachEvent=\"onClick: forward; onMouseOver: onForwardMouseOver; onMouseOut: onForwardMouseOut;\">\n					</div>\n				</div>\n			</td>\n		</tr>\n	</table>\n</div>",elements:[],objectArray:[],elementCount:0,forwardAnimation:null,backwardAnimation:null,oldReference:0,direction:"forward",backwardLimit:0,forwardLimit:100,padding:10,pixelsToMove:-1,elementsToMove:1,duration:1500,repeatCount:-1,direction:"forward",acceleration:0,exitEffect:"clip fade",widgetDimension:-1,noElementToDisplay:-1,mouseOverTimeOut:2000,stopButtonId:"",isHorozontal:true,widgetContainer:null,moveBackwardContainer:null,moveForwardContainer:null,moveBackwardButton:null,moveForwardButton:null,containerNode:null,widgetContainerClass:"",moveBackwardButtonClass:"",containerNodeClass:"",moveForwardButtonClass:"",moveForwardButtonHoverClass:"",moveBackwardButtonHoverClass:"",scrollablePaneElementsClass:"",onForward:function(){
},onBackward:function(){
},isMouseOverNow:false,zIndex:998,translatedTextBundle:new Object(),fillInTemplate:function(args,frag){
dojo.html.disableSelection(this.widgetContainer);
dojo.html.addClass(this.widgetContainer,this.widgetContainerClass);
dojo.html.addClass(this.moveForwardButton,this.moveForwardButtonClass);
dojo.html.addClass(this.containerNode,this.containerNodeClass);
dojo.html.addClass(this.moveBackwardButton,this.moveBackwardButtonClass);
dojo.html.hide(this.widgetContainer);
this.objectArray=[];
var tmp=dojo.dom.getFirstChildElement(this.containerNode);
while(tmp){
var _1019=new Object();
_1019.domNode=tmp;
_1019.left=0;
_1019.top=0;
_1019.Width=0;
_1019.Height=0;
this.objectArray.push(_1019);
tmp=dojo.dom.getNextSiblingElement(tmp);
}
if(this.stopButtonId!=null&&this.stopButtonId!=""){
var _101a=dojo.byId(this.stopButtonId);
if(_101a!=null){
dojo.event.connect(_101a,"onclick",this,"playPause");
}
}
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onWindowResized");
dojo.event.connect(window,"onresize",this,"onWindowResized");
}
this.fadeEffect=false;
this.clipEffect=false;
this.hideEffect=false;
if(this.exitEffect.indexOf("fade")>-1){
this.fadeEffect=true;
}
if(this.exitEffect.indexOf("clip")>-1){
this.clipEffect=true;
}
if(this.exitEffect.indexOf("hide")>-1){
this.hideEffect=true;
}
if(this.objectArray!==null&&this.objectArray.length>0){
dojo.lang.setTimeout(this,"initWidget",0);
}
},initWidget:function(){
dojo.html.show(this.widgetContainer);
var _101b=this.getChildrenOfType(dojo.widget.HtmlWidget);
var index=0;
for(var i=0;i<this.objectArray.length&&index<_101b.length;i++){
dojo.debug("initWidget this.objectArray["+i+"] = "+this.objectArray[i].dojoType+" of "+this.objectArray.length);
if(dojo.html.hasAttribute(this.objectArray[i]["domNode"],"dojoType")){
var _101e=this.objectArray[i]["domNode"];
this.objectArray.splice(i,1);
dojo.debug(index+", "+_101b.length+", "+_101b[index].domNode);
var _101f=new Object();
_101f.domNode=_101b[index].domNode;
_101f.left=0;
_101f.top=0;
_101f.Width=0;
_101f.Height=0;
this.objectArray.splice(i,0,_101f);
_101e.parentNode.appendChild(_101b[index++].domNode);
dojo.dom.removeNode(_101e);
}
}
dojo.debug("initWidget 3");
if(this.isHorozontal){
this.axes="x";
this.pos="left";
this.dim="Width";
this._pos="top";
this._dim="Height";
}else{
this.axes="y";
this.pos="top";
this.dim="Height";
this._pos="left";
this._dim="Width";
}
dojo.debug("initWidget 4");
this.left=this.getAbsolutePosition(this.widgetContainer,true).x;
this.top=this.getAbsolutePosition(this.widgetContainer,true).y;
var _1020=0;
for(var i=0;i<this.objectArray.length;i++){
this.objectArray[i][this._dim]=this.getAbsoluteDimension(this.objectArray[i]["domNode"])[this.dim];
this.objectArray[i][this.dim]=this.getAbsoluteDimension(this.objectArray[i]["domNode"])[this._dim];
if(this.objectArray[i][this._dim]>_1020){
_1020=this.objectArray[i][this._dim];
}
}
dojo.debug("maxDimension = "+_1020);
_1020=_1020+((this.noElementToDisplay+1)*this.padding);
dojo.debug("maxDimension = "+_1020);
if(this.noElementToDisplay==-1){
if(this.widgetDimension==-1){
this.widgetDimension=200;
}
}else{
dojo.debug("this.objectArray[0]['domNode'] = "+this.objectArray[0]["domNode"].id);
dojo.debug("this.padding = "+this.padding);
dojo.debug("this.noElementToDisplay = "+this.noElementToDisplay);
dojo.debug("this.getAbsoluteDimension(this.objectArray[0]['domNode'])[this.dim]) = "+this.getAbsoluteDimension(this.objectArray[0]["domNode"])[this.dim]);
this.widgetDimension=(this.noElementToDisplay*this.getAbsoluteDimension(this.objectArray[0]["domNode"])[this.dim])+((this.noElementToDisplay+1)*this.padding);
}
dojo.debug("widgetDimension = "+this.widgetDimension);
this.widgetDimension=this.getAbsoluteDimension(this.objectArray[0]["domNode"])[this.dim];
dojo.debug("widgetDimension = "+this.widgetDimension);
this.moveBackwardContainer.style.position="relative";
this.moveBackwardContainer.style.zIndex=this.zIndex;
this.moveBackwardContainer.style[this.pos]=0+"px";
this.moveBackwardContainer.style[this._pos]=(_1020/2)-(this.getAbsoluteDimension(this.moveBackwardContainer)[this._dim]/2)+"px";
var _1021=this.dim+":"+this.widgetDimension+"px";
dojo.html.setStyleAttributes(this.containerNode,_1021);
var _1022=this._dim+":"+_1020+"px";
dojo.html.setStyleAttributes(this.widgetContainer,_1022);
this.moveForwardContainer.style.position="relative";
this.moveForwardContainer.style.zIndex=this.zIndex;
this.moveForwardContainer.style[this.pos]=0+"px";
this.moveForwardContainer.style[this._pos]=(_1020/2)-(this.getAbsoluteDimension(this.moveForwardContainer)[this._dim]/2)+"px";
this.backwardLimit=this.getAbsolutePosition(this.moveBackwardContainer,true)[this.axes]+this.getAbsoluteDimension(this.moveBackwardContainer)[this.dim]+this.padding;
this.forwardLimit=this.getAbsolutePosition(this.moveForwardContainer,true)[this.axes]-this.padding;
if(!(this.exitEffect.indexOf("clip")>-1)&&!(this.exitEffect.indexOf("hide")>-1)){
this.exitEffect=this.exitEffect+" clip";
}
if(this.direction=="forward"){
dojo.html.addClass(this.objectArray[0]["domNode"],this.scrollablePaneElementsClass);
this.objectArray[0][this._pos]=this[this._pos]+(_1020/2)-(this.objectArray[0][this._dim]/2);
this.objectArray[0][this.pos]=this.getAbsolutePosition(this.moveBackwardContainer,true)[this.axes]+this.getAbsoluteDimension(this.moveBackwardContainer)[this.dim]+this.padding;
this.objectArray[0]["domNode"].style.position="absolute";
this.objectArray[0]["domNode"].style[this.pos]=this.objectArray[0][this.pos]+"px";
this.objectArray[0]["domNode"].style[this._pos]=this.objectArray[0][this._pos]+"px";
this.elementCount=this.objectArray.length;
for(var i=1;i<this.elementCount;i++){
dojo.html.addClass(this.objectArray[i]["domNode"],this.scrollablePaneElementsClass);
this.objectArray[i][this._pos]=this[this._pos]+(_1020/2)-(this.objectArray[0][this._dim]/2);
this.objectArray[i][this.pos]=this.getAbsolutePosition(this.objectArray[i-1]["domNode"],true)[this.axes]+this.objectArray[i-1][this.dim]+this.padding;
this.objectArray[i]["domNode"].style.position="absolute";
this.objectArray[i]["domNode"].style[this.pos]=this.objectArray[i][this.pos]+"px";
this.objectArray[i]["domNode"].style[this._pos]=this.objectArray[i][this._pos]+"px";
}
}else{
this.elementCount=this.objectArray.length;
dojo.html.addClass(this.objectArray[this.elementCount-1]["domNode"],this.scrollablePaneElementsClass);
this.objectArray[this.elementCount-1][this._pos]=this[this._pos]+(_1020/2)-(this.objectArray[0][this._dim]/2);
this.objectArray[this.elementCount-1][this.pos]=this.getAbsolutePosition(this.moveForwardContainer,true)[this.axes]-this.objectArray[this.elementCount-1][this.dim]-this.padding;
this.objectArray[this.elementCount-1]["domNode"].style.position="absolute";
this.objectArray[this.elementCount-1]["domNode"].style[this.pos]=this.objectArray[this.elementCount-1][this.pos]+"px";
this.objectArray[this.elementCount-1]["domNode"].style[this._pos]=this.objectArray[this.elementCount-1][this._pos]+"px";
for(var i=this.elementCount-2;i>-1;i--){
dojo.html.addClass(this.objectArray[i]["domNode"],this.scrollablePaneElementsClass);
this.objectArray[i][this._pos]=this[this._pos]+(_1020/2)-(this.objectArray[0][this._dim]/2);
this.objectArray[i][this.pos]=this.getAbsolutePosition(this.objectArray[i+1]["domNode"],true)[this.axes]-this.objectArray[i+1][this.dim]-this.padding;
this.objectArray[i]["domNode"].style.position="absolute";
this.objectArray[i]["domNode"].style[this.pos]=this.objectArray[i][this.pos]+"px";
this.objectArray[i]["domNode"].style[this._pos]=this.objectArray[i][this._pos]+"px";
}
}
for(var i=0;i<this.elementCount;i++){
this.applyEffects(this.objectArray[i]);
}
if(this.repeatCount==-1){
if(this.direction=="forward"){
this.forward();
}else{
this.backward();
}
}
this.updatePlayPauseLabel();
dojo.debug("LEAVE initWidget");
},forward:function(){
if(this.backwardAnimation!=null&&(this.backwardAnimation.status()=="playing"||this.backwardAnimation.status()=="paused")){
this.backwardAnimation.stop();
}
if(this.forwardAnimation!=null&&(this.forwardAnimation.status()=="playing")){
this.forwardAnimation.gotoPercent(100,true);
this.forwardAnimation.stop();
for(var i=0;i<this.elementCount;i++){
this.applyEffects(this.objectArray[i]);
}
dojo.lang.setTimeout(this,"playAnimationOnTimeOut",this.mouseOverTimeOut);
}else{
if(this.pixelsToMove==-1){
if(this.elementsToMove<=1){
if(this.repeatCount==-1){
var start=this.forwardLimit-this.objectArray[this.getForwardElementIndex()][this.dim]-this.padding;
}else{
var start=this.getAbsolutePosition(this.objectArray[this.getForwardElementIndex()]["domNode"],true)[this.axes]-this.padding;
}
var end=this.forwardLimit;
}else{
var _1026=this.elementCount-1;
if(this.elementsToMove>=this.elementCount){
this.elementsToMove=this.elementCount-1;
}
if(this.repeatCount==-1){
var start=this.forwardLimit-this.padding;
}else{
var start=this.getAbsolutePosition(this.objectArray[this.getForwardElementIndex()]["domNode"],true)[this.axes]+this.objectArray[this.getForwardElementIndex()][this.dim];
}
for(var i=0;i<this.elementsToMove;i++){
if((this.getForwardElementIndex()-i)<0){
start=start-this.objectArray[_1026][this.dim]-this.padding;
_1026--;
}else{
start=start-this.objectArray[this.getForwardElementIndex()-i][this.dim]-this.padding;
}
var end=this.forwardLimit-this.padding/2;
}
}
}else{
var start=0;
var end=this.pixelsToMove;
}
if(this.isHorozontal){
var _1027=new dojo.math.curves.Line([start,0],[end,0]);
}else{
var _1027=new dojo.math.curves.Line([0,start],[0,end]);
}
this.oldReference=start;
this.oldReference_bak=start;
this.direction="forward";
this.forwardAnimation=new dojo.animation.Animation(_1027,this.duration,this.acceleration,this.repeatCount);
dojo.event.connect(this.forwardAnimation,"handler",this,"movementHandler");
this.currentAnimation=this.forwardAnimation;
this.forwardAnimation.playPause();
this.onForward();
}
},backward:function(){
if(this.forwardAnimation!=null&&(this.forwardAnimation.status()=="playing"||this.forwardAnimation.status()=="paused")){
this.forwardAnimation.stop();
}
if(this.backwardAnimation!=null&&(this.backwardAnimation.status()=="playing")){
this.backwardAnimation.gotoPercent(100,true);
this.backwardAnimation.stop();
for(var i=0;i<this.elementCount;i++){
this.applyEffects(this.objectArray[i]);
}
dojo.lang.setTimeout(this,"playAnimationOnTimeOut",this.mouseOverTimeOut);
}else{
if(this.pixelsToMove==-1){
if(this.elementsToMove==1){
if(this.repeatCount==-1){
var start=this.backwardLimit+this.objectArray[this.getBackwardElementIndex()][this.dim]+this.padding;
}else{
var start=this.getAbsolutePosition(this.objectArray[this.getBackwardElementIndex()]["domNode"],true)[this.axes]+this.objectArray[this.getBackwardElementIndex()][this.dim]+this.padding;
}
var end=this.backwardLimit;
}else{
var _102b=0;
if(this.repeatCount==-1){
var start=this.backwardLimit+this.padding;
}else{
var start=this.getAbsolutePosition(this.objectArray[this.getBackwardElementIndex()]["domNode"],true)[this.axes];
}
if(this.elementsToMove>=this.elementCount){
this.elementsToMove=this.elementCount-1;
}
for(var i=0;i<this.elementsToMove;i++){
if((this.getBackwardElementIndex()+i)>=this.elementCount){
start=start+this.objectArray[_102b][this.dim]+this.padding;
_102b++;
}else{
start=start+this.objectArray[this.getBackwardElementIndex()+i][this.dim]+this.padding;
}
var end=this.backwardLimit+this.padding/2;
}
}
}else{
var start=this.pixelsToMove;
var end=0;
}
dojo.debug("start = "+start);
dojo.debug("end = "+end);
if(this.isHorozontal){
var _102c=new dojo.math.curves.Line([start,0],[end,0]);
}else{
var _102c=new dojo.math.curves.Line([0,start],[0,end]);
}
this.oldReference=start;
this.oldReference_bak=start;
this.direction="backward";
this.backwardAnimation=new dojo.animation.Animation(_102c,this.duration,this.acceleration,this.repeatCount);
dojo.event.connect(this.backwardAnimation,"handler",this,"movementHandler");
this.currentAnimation=this.backwardAnimation;
this.backwardAnimation.playPause();
this.onBackward();
}
},playPause:function(_this){
if(this.currentAnimation!=null){
this.currentAnimation.playPause();
this.updatePlayPauseLabel();
}
},updatePlayPauseLabel:function(){
if(this.stopButtonId!=null&&this.stopButtonId!=""){
var _102e=document.getElementById(this.stopButtonId);
var _102f="";
if(this.currentAnimation!=null&&this.currentAnimation.status()=="playing"){
_102f=(this.translatedTextBundle["Pause"]!=null||this.translatedTextBundle["Pause"]!="")?this.translatedTextBundle["Pause"]:"Pause";
}
if(this.currentAnimation!=null&&this.currentAnimation.status()=="paused"){
_102f=(this.translatedTextBundle["Play"]!=null||this.translatedTextBundle["Play"]!="")?this.translatedTextBundle["Play"]:"Play";
}
if(_102e.innerHTML!=null){
_102e.innerHTML=_102f;
}
if(_102e.value!=null){
_102e.innerHTML=_102f;
}
}
},movementHandler:function(e){
switch(e.type){
case "play":
this.reArrangeElements();
break;
case "pause":
break;
case "animate":
var _1031=e[this.axes];
var _1032=this.oldReference-_1031;
if(_1032!=0){
var i=this.elementCount-1;
var _1034=false;
do{
var _1035=this.objectArray[i];
_1035[this.pos]=_1035[this.pos]-_1032;
if(_1035[this.pos]<this.backwardLimit){
if((_1035[this.pos]+_1035[this.dim])>this.backwardLimit){
_1035["domNode"].style[this.pos]=_1035[this.pos]+"px";
this.applyEffects(_1035);
}else{
if(this.direction=="backward"){
_1034=true;
}
}
}else{
if((_1035[this.pos]+_1035[this.dim])>this.forwardLimit){
if(_1035[this.pos]<this.forwardLimit){
_1035["domNode"].style[this.pos]=_1035[this.pos]+"px";
this.applyEffects(_1035);
}else{
if(this.direction=="forward"){
_1034=true;
}
}
}else{
_1035["domNode"].style[this.pos]=_1035[this.pos]+"px";
}
}
}while(i--);
if(_1034){
this.reArrangeElements();
}
this.oldReference=_1031;
}
break;
case "end":
this.oldReference=this.oldReference_bak;
break;
}
},reArrangeElements:function(){
var _1036=this.objectArray[0];
var _1037=this.objectArray[this.elementCount-1];
if(this.direction=="backward"){
if((_1036[this.pos]+_1036[this.dim])<this.backwardLimit){
_1036[this.pos]=(_1037[this.pos]+_1037[this.dim])+this.padding;
this.objectArray.push(_1036);
this.objectArray.splice(0,1);
}
}
if(this.direction=="forward"){
if(_1037[this.pos]>this.forwardLimit){
_1037[this.pos]=_1036[this.pos]-_1037[this.dim]-this.padding;
var temp=_1037;
this.objectArray.splice(this.elementCount-1,1);
this.objectArray.splice(0,0,temp);
}
}
},applyEffects:function(_1039){
var _103a=_1039["domNode"].style;
var _103b=false;
var _103c=this.backwardLimit;
var _103d=this.forwardLimit;
if(_1039[this.pos]<_103c){
_103b=true;
if(this.hideEffect){
_103a.visibility="hidden";
}else{
if(this.clipEffect){
var pos=_1039[this.pos];
var clip=_103c-pos;
if(this.isHorozontal){
_103a.clip="rect(auto, auto, auto,"+clip+"px)";
}else{
_103a.clip="rect("+clip+"px, auto, auto, auto)";
}
}
}
}else{
if((_1039[this.pos]+_1039[this.dim])>this.forwardLimit){
_103b=true;
if(this.hideEffect){
_103a.visibility="hidden";
}else{
if(this.clipEffect){
var clip=_103d-_1039[this.pos];
if(this.isHorozontal){
_103a.clip="rect(auto, "+clip+"px, auto, auto)";
}else{
_103a.clip="rect(auto, auto, "+clip+"px, auto)";
}
}
}
}
}
if(!_103b){
_103a.clip="rect(auto, auto, auto, auto)";
}
},onContainerMouseOver:function(){
this.isMouseOverNow=true;
if(this.currentAnimation!=null){
this.currentAnimation.pause();
}
},onContainerMouseOut:function(){
this.isMouseOverNow=false;
dojo.lang.setTimeout(this,"playAnimationOnContainerMouseOut",this.mouseOverTimeOut);
},playAnimationOnContainerMouseOut:function(){
if(this.currentAnimation!=null&&!this.isMouseOverNow){
if(this.currentAnimation.status()=="paused"){
this.currentAnimation.playPause();
}
}
},playAnimationOnTimeOut:function(){
if(this.currentAnimation!=null&&(this.currentAnimation.status()=="stopped")){
for(var i=0;i<this.elementCount;i++){
this.applyEffects(this.objectArray[i]);
}
this.currentAnimation.play();
}
},getAbsolutePosition:function(node,flag){
var _1043=new Object();
_1043.x=dojo.html.getAbsolutePosition(node,flag).left;
_1043.y=dojo.html.getAbsolutePosition(node,flag).top;
return _1043;
},getAbsoluteDimension:function(node){
var _1045=new Object();
_1045.Width=dojo.html.getOuterWidth(node);
_1045.Height=dojo.html.getOuterHeight(node);
return _1045;
},setAbsoluteDimension:function(node,value,dim){
if(dim=="Width"){
dojo.html.setOuterWidth(node,value);
}else{
if(dim=="Height"){
dojo.html.setOuterHeight(node,value);
}else{
alert("Parameter dim was not recognized!!");
}
}
},setAbsolutePosition:function(node,value,pos){
if(pos=="left"){
node.style.left=value+"px";
}else{
if(pos=="top"){
node.style.top=value+"px";
}else{
alert("Parameter pos was not recognized!!");
}
}
},getBackwardElementIndex:function(){
var _104c=0;
for(var i=this.elementCount-1;i>=0;i--){
if(this.backwardLimit<this.objectArray[i][this.pos]+this.objectArray[i][this.dim]){
_104c=i;
}
}
return _104c;
},getForwardElementIndex:function(){
var _104e=this.elementCount-1;
for(var i=0;i<this.elementCount;i++){
if(this.forwardLimit>this.objectArray[i][this.pos]){
_104e=i;
}
}
return _104e;
},onBackwardMouseOver:function(){
dojo.html.removeClass(this.moveBackwardButton,this.moveBackwardButtonClass);
dojo.html.addClass(this.moveBackwardButton,this.moveBackwardButtonHoverClass);
},onBackwardMouseOut:function(){
dojo.html.removeClass(this.moveBackwardButton,this.moveBackwardButtonHoverClass);
dojo.html.addClass(this.moveBackwardButton,this.moveBackwardButtonClass);
},onForwardMouseOver:function(){
dojo.html.removeClass(this.moveForwardButton,this.moveForwardButtonClass);
dojo.html.addClass(this.moveForwardButton,this.moveForwardButtonHoverClass);
},onForwardMouseOut:function(){
dojo.html.removeClass(this.moveForwardButton,this.moveForwardButtonHoverClass);
dojo.html.addClass(this.moveForwardButton,this.moveForwardButtonClass);
},onWindowResized:function(){
this.backwardLimit=this.getAbsolutePosition(this.moveBackwardContainer,true)[this.axes]+this.getAbsoluteDimension(this.moveBackwardContainer)[this.dim]+this.padding;
this.forwardLimit=this.getAbsolutePosition(this.moveForwardContainer,true)[this.axes]-this.padding;
for(var i=0;i<this.elementCount;i++){
this.applyEffects(this.objectArray[i]);
}
}});
dojo.provide("dojo.widget.AccordionContainer");
dojo.widget.defineWidget("dojo.widget.AccordionContainer",dojo.widget.HtmlWidget,{isContainer:true,labelNodeClass:"label",containerNodeClass:"accBody",duration:250,fillInTemplate:function(){
with(this.domNode.style){
if(position!="absolute"){
position="relative";
}
overflow="hidden";
}
},addChild:function(_1051){
var child=this._addChild(_1051);
this._setSizes();
return child;
},_addChild:function(_1053){
if(_1053.open){
dojo.deprecated("open parameter deprecated, use 'selected=true' instead will be removed in ","0.5");
dojo.debug(_1053.widgetId+": open == "+_1053.open);
_1053.selected=true;
}
if(_1053.widgetType!="AccordionPane"){
var _1054=dojo.widget.createWidget("AccordionPane",{label:_1053.label,selected:_1053.selected,labelNodeClass:this.labelNodeClass,containerNodeClass:this.containerNodeClass,allowCollapse:this.allowCollapse});
_1054.addChild(_1053);
this.addWidgetAsDirectChild(_1054);
this.registerChild(_1054,this.children.length);
return _1054;
}else{
dojo.html.addClass(_1053.containerNode,this.containerNodeClass);
dojo.html.addClass(_1053.labelNode,this.labelNodeClass);
this.addWidgetAsDirectChild(_1053);
this.registerChild(_1053,this.children.length);
return _1053;
}
},postCreate:function(){
var _1055=this.children;
this.children=[];
dojo.html.removeChildren(this.domNode);
dojo.lang.forEach(_1055,dojo.lang.hitch(this,"_addChild"));
this._setSizes();
},removeChild:function(_1056){
dojo.widget.AccordionContainer.superclass.removeChild.call(this,_1056);
this._setSizes();
},onResized:function(){
this._setSizes();
},_setSizes:function(){
var _1057=0;
var _1058=0;
dojo.lang.forEach(this.children,function(child,idx){
_1057+=child.getLabelHeight();
if(child.selected){
_1058=idx;
}
});
var _105b=dojo.html.getContentBox(this.domNode);
var y=0;
dojo.lang.forEach(this.children,function(child,idx){
var _105f=child.getLabelHeight();
child.resizeTo(_105b.width,_105b.height-_1057+_105f);
child.domNode.style.zIndex=idx+1;
child.domNode.style.position="absolute";
child.domNode.style.top=y+"px";
y+=(idx==_1058)?dojo.html.getBorderBox(child.domNode).height:_105f;
});
},selectChild:function(page){
dojo.lang.forEach(this.children,function(child){
child.setSelected(child==page);
});
var y=0;
var anims=[];
dojo.lang.forEach(this.children,function(child,idx){
if(child.domNode.style.top!=(y+"px")){
anims.push(dojo.lfx.html.slideTo(child.domNode,{top:y,left:0},this.duration));
}
y+=child.selected?dojo.html.getBorderBox(child.domNode).height:child.getLabelHeight();
},this);
dojo.lfx.combine(anims).play();
}});
dojo.widget.defineWidget("dojo.widget.AccordionPane",dojo.widget.HtmlWidget,{label:"","class":"dojoAccordionPane",labelNodeClass:"label",containerNodeClass:"accBody",selected:false,templateString:"<div dojoAttachPoint=\"domNode\">\n<div dojoAttachPoint=\"labelNode\" dojoAttachEvent=\"onclick: onLabelClick\" class=\"${this.labelNodeClass}\">${this.label}</div>\n<div dojoAttachPoint=\"containerNode\" style=\"overflow: hidden;\" class=\"${this.containerNodeClass}\"></div>\n</div>\n",templateCssString:".dojoAccordionPane .label {\n	color: #000;\n	font-weight: bold;\n	background: url(\"images/soriaAccordionOff.gif\") repeat-x top left #85aeec;\n	border:1px solid #d9d9d9;\n	font-size:0.9em;\n}\n\n.dojoAccordionPane-selected .label {\n	background: url(\"images/soriaAccordionSelected.gif\") repeat-x top left #85aeec;\n	border:1px solid #84a3d1;\n}\n\n.dojoAccordionPane .label:hover {\n	cursor: pointer;\n}\n\n.dojoAccordionPane .accBody {\n	background: #fff;\n	overflow: auto;\n	border:1px solid #84a3d1;\n}",templateCssPath:dojo.uri.dojoUri("src/widget/templates/AccordionPane.css"),isContainer:true,fillInTemplate:function(){
dojo.html.addClass(this.domNode,this["class"]);
dojo.widget.AccordionPane.superclass.fillInTemplate.call(this);
dojo.html.disableSelection(this.labelNode);
this.setSelected(this.selected);
},setLabel:function(label){
this.labelNode.innerHTML=label;
},resizeTo:function(width,_1068){
dojo.html.setMarginBox(this.domNode,{width:width,height:_1068});
var _1069=[{domNode:this.labelNode,layoutAlign:"top"},{domNode:this.containerNode,layoutAlign:"client"}];
dojo.widget.html.layout(this.domNode,_1069);
var _106a=dojo.html.getContentBox(this.containerNode);
this.children[0].resizeTo(_106a.width,_106a.height);
},getLabelHeight:function(){
return dojo.html.getMarginBox(this.labelNode).height;
},onLabelClick:function(){
this.parent.selectChild(this);
},setSelected:function(_106b){
this.selected=_106b;
(_106b?dojo.html.addClass:dojo.html.removeClass)(this.domNode,this["class"]+"-selected");
var child=this.children[0];
if(child){
if(_106b){
if(!child.isShowing()){
child.show();
}else{
child.onShow();
}
}else{
child.onHide();
}
}
}});
dojo.lang.extend(dojo.widget.Widget,{open:false});
dojo.provide("wc.widget.WCAccordionContainer");
dojo.provide("wc.widget.WCAccordionPane");
dojo.provide("wc.widget.WCAccordionDropTarget");
dojo.provide("wc.widget.TitlePaneTemplate");
dojo.provide("wc.widget.ContentPaneTemplate");
dojo.widget.defineWidget("wc.widget.WCAccordionContainer",dojo.widget.AccordionContainer,{widgetType:"WCAccordionContainer",isContainer:true,labelNodeClass:"",labelNodeClass_Expanded:"",labelNodeClass_Collapsed:"",containerNodeClass:"",containerNodeClass_Collapsed:"",containerNodeClass_Expanded:"",bottomNodeClass:"",bottomNodeClass_Expanded:"",bottomNodeClass_Collapsed:"",_addChild:function(_106d){
var _106e=false;
var _106f=null;
var _1070=null;
if(_106d.widgetType!="AccordionPane"&&_106d.widgetType!="WCAccordionPane"){
var _1071=_106d.getChildrenOfType(dojo.widget.HtmlWidget);
dojo.lang.forEach(_1071,function(node){
if(node.widgetType=="TitlePaneTemplate"){
_106d.label=node.domNode.innerHTML;
dojo.dom.removeNode(node.domNode);
}
if(node.widgetType=="ContentPaneTemplate"){
_106f=node;
_106f.setSelected(_106d.selected);
_106e=true;
}
});
var _1073=_106d.labelNodeClass;
var _1074=_106d.labelNodeClass_Expanded;
var _1075=_106d.labelNodeClass_Collapsed;
var _1076=_106d.bottomNodeClass;
var _1077=_106d.bottomNodeClass_Expanded;
var _1078=_106d.bottomNodeClass_Collapsed;
var _1079=_106d.containerNodeClass;
var _107a=_106d.containerNodeClass_Expanded;
var _107b=_106d.containerNodeClass_Collapsed;
if(_1073==""){
_1073=this.labelNodeClass;
}
if(_1074==""){
_1074=this.labelNodeClass_Expanded;
}
if(_1075==""){
_1075=this.labelNodeClass_Collapsed;
}
if(_1076==""){
_1076=this.bottomNodeClass;
}
if(_1077==""){
_1077=this.bottomNodeClass_Expanded;
}
if(_1078==""){
_1078=this.bottomNodeClass_Collapsed;
}
if(_1079==""){
_1079=this.containerNodeClass;
}
if(_107a==""){
_107a=this.containerNodeClass_Expanded;
}
if(_107b==""){
_107b=this.containerNodeClass_Collapsed;
}
var _107c=dojo.widget.createWidget("wc:WCAccordionPane",{label:_106d.label,selected:_106d.selected,allowCollapse:this.allowCollapse,acceptedTypes:_106d.acceptedTypes,dropEventHandler:_106d.dropEventHandler,labelNodeClass:_1073,labelNodeClass_Expanded:_1074,labelNodeClass_Collapsed:_1075,containerNodeClass:_1079,bottomNodeClass:_1076,bottomNodeClass_Expanded:_1077,bottomNodeClass_Collapsed:_1078});
_107c.addChild(_106d);
this.addWidgetAsDirectChild(_107c);
this.registerChild(_107c,this.children.length);
_1070=_107c;
}else{
if(_106d.widgetType=="WCAccordionPane"){
_106d.labelNodeClass=this.labelNodeClass;
_106d.labelNodeClass_Expanded=this.labelNodeClass_Expanded;
_106d.labelNodeClass_Collapsed=this.labelNodeClass_Collapsed;
_106d.bottomNodeClass=this.bottomNodeClass;
_106d.bottomNodeClass_Expanded=this.bottomNodeClass_Expanded;
_106d.bottomNodeClass_Collapsed=this.bottomNodeClass_Collapsed;
}
this.addWidgetAsDirectChild(_106d);
this.registerChild(_106d,this.children.length);
_1070=_106d;
}
if(_106e){
_1070.contentPaneTemplateNode=_106f;
}
return _1070;
},_setSizes:function(){
var _107d=0;
var _107e=0;
dojo.lang.forEach(this.children,function(child,idx){
_107d+=child.getLabelHeight();
if(child.selected){
_107e=idx;
}
});
var _1081=dojo.html.getContentBox(this.domNode);
dojo.lang.forEach(this.children,function(child,idx){
var _1084=child.getLabelHeight();
var _1085=_1081.height-_107d+_1084;
var _1086=(idx==_107e)?_1085:_1084;
child.resizeTo(_1081.width,_1085);
dojo.html.setMarginBox(child.domNode,{width:_1081.width,height:_1086});
if(child.contentPaneTemplateNode!=null){
var _1087=_1081.height-_107d-_1084;
dojo.html.setMarginBox(child.contentPaneTemplateNode.domNode,{width:_1081.width,height:_1087});
}
child.domNode.style.zIndex=idx+1;
});
},selectChild:function(page){
var _1089=dojo.html.getInnerHeight(this.domNode.parentNode);
dojo.lang.forEach(this.children,function(child){
child.setSelected(child==page);
_1089=_1089-child.getLabelHeight();
});
var anims=[];
var to=0;
var from=0;
dojo.lang.forEach(this.children,function(child,idx){
this.animationCallback=function(){
};
if(child!=null&&child.contentPaneTemplateNode!=null){
if(child.selected){
this.animationCallback=function(){
child.contentPaneTemplateNode.onShow();
};
}
child.contentPaneTemplateNode.onHide();
}
if(child.selected){
to=_1089+child.getLabelHeight();
from=dojo.html.getContentBox(child.domNode).height;
}else{
to=child.getLabelHeight();
from=dojo.html.getContentBox(child.domNode).height;
}
if(to!=from){
anims.push(dojo.lfx.propertyAnimation(child.domNode,{"height":{start:from,end:to}},this.duration,null,{"onEnd":this.animationCallback}));
}
},this);
dojo.lfx.combine(anims).play();
},selectChild1:function(page){
var _1089=dojo.html.getInnerHeight(this.domNode.parentNode);
dojo.lang.forEach(this.children,function(child){
child.setSelected(child==page);
_1089=_1089-child.getLabelHeight();
});
var anims=[];
var to=0;
var from=0;
dojo.lang.forEach(this.children,function(child,idx){
this.animationCallback=function(){
};
if(child!=null&&child.contentPaneTemplateNode!=null){
if(child.selected){
this.animationCallback=function(){
child.contentPaneTemplateNode.onShow();
};
}
child.contentPaneTemplateNode.onHide();
}
if(child.selected){
to=_1089+child.getLabelHeight();
from=dojo.html.getContentBox(child.domNode).height;
}else{
to=child.getLabelHeight();
from=dojo.html.getContentBox(child.domNode).height;
}
if(to!=from){
anims.push(dojo.lfx.propertyAnimation(child.domNode,{"height":{start:from,end:to}},this.duration,null,{"onEnd":this.animationCallback}));
}
},this);
dojo.lfx.combine(anims).play();
}});
dojo.widget.defineWidget("wc.widget.WCAccordionPane",dojo.widget.AccordionPane,{widgetType:"WCAccordionPane",labelNodeClass_Expanded:"",labelNodeClass_Collapsed:"",containerNodeClass:"",containerNodeClass_Collapsed:"",containerNodeClass_Expanded:"",bottomNodeClass:"",bottomNodeClass_Expanded:"",bottomNodeClass_Collapsed:"",bottomNode:null,templateString:"<div dojoAttachPoint=\"domNode\">\n	<a dojoAttachEvent=\"onfocus: onLabelClick;\" tabindex=\"0\">\n		<div dojoAttachPoint=\"labelNode\" dojoAttachEvent=\"onclick: onLabelClick;\" class=\"${this.labelNodeClass}\">${this.label}</div>\n	</a>\n	<div dojoAttachPoint=\"containerNode\" style=\"overflow: hidden;\" class=\"${this.containerNodeClass}\"></div>\n	<a dojoAttachEvent=\"onfocus: onLabelClick;\" tabindex=\"0\">\n		<div dojoAttachPoint=\"bottomNode\" ><br></div>\n	</a>\n</div>\n",dropTarget:null,acceptedTypes:[],dropEventHandler:function(e){
},contentPaneTemplateNode:null,fillInTemplate:function(){
dojo.event.kwConnect({type:"after",srcObj:this,srcFunc:"setSelected",targetObj:this,targetFunc:"setStyles"});
if(this.acceptedTypes.length>0&&this.dropEventHandler!==null){
this.dropTarget=new wc.widget.WCAccordionDropTarget(this.domNode,this.acceptedTypes);
this.dropTarget.setParentAccordion(this);
this.onDropEventHandler=this.dropEventHandler;
}
dojo.html.addClass(this.labelNode,this.labelNodeClass);
dojo.html.addClass(this.containerNode,this.containerNodeClass);
dojo.html.addClass(this.bottomNode,this.bottomNodeClass);
wc.widget.WCAccordionPane.superclass.fillInTemplate.call(this);
},postCreate:function(){
if(this.label){
this.labelNode.innerHTML=this.label;
}
},getLabelHeight:function(){
if(!this.label||this.label==""){
return 0;
}else{
if(dojo.html.isVisible(this.bottomNode)){
return dojo.html.getMarginBox(this.labelNode).height+dojo.html.getMarginBox(this.bottomNode).height;
}else{
return dojo.html.getMarginBox(this.labelNode).height;
}
}
},onDropEventHandler:function(e){
},setStyles:function(_1092){
this.selected=_1092;
dojo.html.addClass(this.bottomNode,this.bottomNodeClass);
dojo.html.addClass(this.labelNode,this.labelNodeClass);
if(!this.label||this.label==""){
dojo.html.removeClass(this.bottomNode,this.bottomNodeClass);
dojo.html.removeClass(this.labelNode,this.labelNodeClass);
dojo.html.removeClass(this.containerNode,this.containerNodeClass);
dojo.html.removeClass(this.labelNode,this.labelNodeClass_Collapsed);
dojo.html.removeClass(this.labelNode,this.labelNodeClass_Expanded);
dojo.html.removeClass(this.bottomNode,this.bottomNodeClass_Collapsed);
dojo.html.removeClass(this.bottomNode,this.bottomNodeClass_Expanded);
dojo.html.removeClass(this.containerNode,this.containerNodeClass_Collapsed);
dojo.html.removeClass(this.containerNode,this.containerNodeClass_Expanded);
}else{
if(this.selected){
if(this.labelNodeClass_Expanded!=""){
dojo.html.removeClass(this.labelNode,this.labelNodeClass);
dojo.html.removeClass(this.labelNode,this.labelNodeClass_Collapsed);
dojo.html.addClass(this.labelNode,this.labelNodeClass_Expanded);
}
if(this.bottomNodeClass_Expanded!=""){
dojo.html.removeClass(this.bottomNode,this.bottomNodeClass);
dojo.html.removeClass(this.bottomNode,this.bottomNodeClass_Collapsed);
dojo.html.addClass(this.bottomNode,this.bottomNodeClass_Expanded);
}
if(this.containerNodeClass_Expanded!=""){
dojo.html.removeClass(this.bottomNode,this.containerNodeClass);
dojo.html.removeClass(this.bottomNode,this.containerNodeClass_Collapsed);
dojo.html.addClass(this.bottomNode,this.containerNodeClass_Expanded);
}
}else{
if(this.labelNodeClass_Collapsed!=""){
dojo.html.removeClass(this.labelNode,this.labelNodeClass);
dojo.html.removeClass(this.labelNode,this.labelNodeClass_Expanded);
dojo.html.addClass(this.labelNode,this.labelNodeClass_Collapsed);
}
if(this.bottomNodeClass_Collapsed!=""){
dojo.html.removeClass(this.bottomNode,this.bottomNodeClass);
dojo.html.removeClass(this.bottomNode,this.bottomNodeClass_Expanded);
dojo.html.addClass(this.bottomNode,this.bottomNodeClass_Collapsed);
}
if(this.containerNodeClass_Collapsed!=""){
dojo.html.removeClass(this.bottomNode,this.containerNodeClass);
dojo.html.removeClass(this.bottomNode,this.containerNodeClass_Expanded);
dojo.html.addClass(this.bottomNode,this.containerNodeClass_Collapsed);
}
}
}
}});
dojo.widget.defineWidget("wc.widget.WCAccordionDropTarget",dojo.dnd.HtmlDropTarget,{parentAccordionPane:null,setParentAccordion:function(_1093){
this.parentAccordionPane=_1093;
},onDrop:function(e){
this.onDragOut(e);
this.parentAccordionPane.onDropEventHandler(e);
this.onDragOut(e);
return true;
},onDragOver:function(e){
if(this.accepts(e.dragObjects)){
if(!this.parentAccordionPane.selected){
this.parentAccordionPane.onLabelClick();
}
}
this.childBoxes=[];
for(var i=0,child;i<this.domNode.childNodes.length;i++){
child=this.domNode.childNodes[i];
if(child.nodeType!=dojo.html.ELEMENT_NODE){
continue;
}
var pos=dojo.html.getAbsolutePosition(child,true);
var inner=dojo.html.getBorderBox(child);
this.childBoxes.push({top:pos.y,bottom:pos.y+inner.height,left:pos.x,right:pos.x+inner.width,height:inner.height,width:inner.width,node:child});
}
var _109a=this.parentAccordionPane.containerNode.childNodes[this.parentAccordionPane.containerNode.childNodes.length-1];
this.scrollIntoView(_109a);
return true;
},scrollIntoView:function(node){
var _109c=node.parentNode;
var _109d=_109c.scrollTop+dojo.html.getInnerHeight(_109c);
var _109e=node.offsetTop+dojo.html.getOuterHeight(node);
if(_109d<_109e){
_109c.scrollTop+=(_109e-_109d);
}else{
if(_109c.scrollTop>node.offsetTop){
_109c.scrollTop-=(_109c.scrollTop-node.offsetTop);
}
}
}});
dojo.widget.defineWidget("wc.widget.TitlePaneTemplate",dojo.widget.HtmlWidget,{widgetType:"TitlePaneTemplate",isContainer:true});
dojo.widget.defineWidget("wc.widget.ContentPaneTemplate",dojo.widget.HtmlWidget,{widgetType:"ContentPaneTemplate",isContainer:true,selected:false,setSelected:function(_109f){
this.selected=_109f;
if(this.selected){
this.onShow();
}
},onShow:function(){
dojo.html.setStyle(this.domNode,"diaplay","block");
},onHide:function(){
dojo.html.setStyle(this.domNode,"overflow","hidden");
dojo.html.setStyle(this.domNode,"diaplay","none");
}});
dojo.lang.extend(dojo.widget.Widget,{label:"",open:false,allowCollapse:false,acceptedTypes:[],labelNodeClass:"",labelNodeClass_Expanded:"",labelNodeClass_Collapsed:"",containerNodeClass:"",containerNodeClass_Collapsed:"",containerNodeClass_Expanded:"",bottomNodeClass:"",bottomNodeClass_Expanded:"",bottomNodeClass_Collapsed:"",dropEventHandler:function(e){
alert("dropEventHandler is not defined !!!");
}});
dojo.provide("wc.widget.WCHtmlDropTarget");
dojo.widget.defineWidget("wc.widget.WCHtmlDropTarget",dojo.dnd.HtmlDropTarget,{insert:function(e,_10a2,_10a3){
var node=e.dragObject.domNode;
var node1=node.cloneNode(true);
new dojo.dnd.HtmlDragSource(node1,"*");
if(_10a3=="before"){
return dojo.html.insertBefore(node1,_10a2);
}else{
if(_10a3=="after"){
return dojo.html.insertAfter(node1,_10a2);
}else{
if(_10a3=="append"){
_10a2.appendChild(node1);
return true;
}
}
}
return false;
}});
dojo.provide("wc.widget.MiniCartToolTipContent");
dojo.widget.defineWidget("wc.widget.MiniCartToolTipContent",wc.widget.ToolTipContent,{connectId:"",userInnerHtml:"",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n.dojoTooltip {\n	border: 0px;\n	color: black;\n	position: relative;\n	z-index: 10;\n}",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlMiniCartToolTipContent.css"),showDelay:200,toolTipSize:300,fillInTemplate:function(args,frag){
if(this.userInnerHtml!=""){
this.containerNode.innerHTML=this.userInnerHtml;
}
wc.widget.MiniCartToolTipContent.superclass.fillInTemplate.call(this,args,frag);
},_getPosition:function(_10a8){
var pos={x:0,y:0};
if(!_10a8.offsetParent){
return pos;
}
pos.x=_10a8.offsetLeft;
pos.y=_10a8.offsetTop;
while(_10a8=_10a8.offsetParent){
pos.x+=_10a8.offsetLeft;
pos.y+=_10a8.offsetTop;
}
return pos;
},open:function(){
if(this.isShowingNow){
return;
}
var _10aa=dojo.byId(this.connectId);
var _10ab=dojo.html.getAbsolutePosition(_10aa,true,dojo.html.boxSizing.BORDER_BOX);
var bb=dojo.html.getBorderBox(_10aa);
var xPos=_10ab.x+bb.width-this.toolTipSize-11;
var yPos=_10ab.y+6;
dojo.widget.PopupContainerBase.prototype.open.call(this,xPos,yPos,null,[xPos,yPos],"TL,TR,BL,BR",[10,15]);
},_isOverElement:function(_10af,e){
//_10af=dojo.byId(_10af);
//if(e.target.tagName.toLowerCase()=="option"||e.target.tagName.toLowerCase()=="select"){
//var mouse=this._getPosition(e.target.offsetParent);
//dojo.debug("mouse  = ("+mouse.x+" , "+mouse.y+") ");
//}else{
//var mouse=dojo.html.getCursorPosition(e);
//}
//var bb=dojo.html.getBorderBox(_10af);
//var _10b3=dojo.html.getAbsolutePosition(_10af,true,dojo.html.boxSizing.BORDER_BOX);
//var top=_10b3.y;
//var _10b5=top+bb.height;
//var left=_10b3.x;
//var right=left+bb.width;
//dojo.debug("**** mini cart: left = "+left+", right = "+right+", top = "+top+", bottom = "+_10b5+" mouse: "+mouse.x+", "+mouse.y+") ");
//dojo.debug("**** mouse x y = ("+mouse.x+", "+mouse.y+") ");
//return (mouse.x>=left&&mouse.x<=right&&mouse.y>=top&&mouse.y<=_10b5);
return false;
},_onMouseMove:function(e){
this._mouse={x:e.pageX,y:e.pageY};
dojo.debug("mouse x = "+this._mouse.x+" y = "+this._mouse.y+" and target: "+e.target+" with coordinates: ("+this._getPosition(dojo.byId(e.target)).x+", "+this._getPosition(dojo.byId(e.target)).y+") ");
if(this._isOverElement(this._connectNode,e)||this._isOverElement(this.domNode,e)){
dojo.debug("on mouse on hover: {x = "+this._mouse.x+", y = "+this._mouse.y+" }");
this._onHover(e);
}else{
dojo.debug("on mousemove unhover "+e+" and target is: "+e.target+" unHovering with mouse = {x = "+this._mouse.x+", y = "+this._mouse.y+" }");
this._onUnHover(e);
}
}});

