/*
	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.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_f7,uri){
var loc=dojo.hostenv.getModuleSymbols(_f7).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 _fc=new dojo.uri.Uri(arguments[i].toString());
var _fd=new dojo.uri.Uri(uri.toString());
if((_fc.path=="")&&(_fc.scheme==null)&&(_fc.authority==null)&&(_fc.query==null)){
if(_fc.fragment!=null){
_fd.fragment=_fc.fragment;
}
_fc=_fd;
}else{
if(_fc.scheme==null){
_fc.scheme=_fd.scheme;
if(_fc.authority==null){
_fc.authority=_fd.authority;
if(_fc.path.charAt(0)!="/"){
var _fe=_fd.path.substring(0,_fd.path.lastIndexOf("/")+1)+_fc.path;
var _ff=_fe.split("/");
for(var j=0;j<_ff.length;j++){
if(_ff[j]=="."){
if(j==_ff.length-1){
_ff[j]="";
}else{
_ff.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_ff[0]=="")&&_ff[j]==".."&&_ff[j-1]!=".."){
if(j==_ff.length-1){
_ff.splice(j,1);
_ff[j-1]="";
}else{
_ff.splice(j-1,2);
j-=2;
}
}
}
}
_fc.path=_ff.join("/");
}
}
}
}
uri="";
if(_fc.scheme!=null){
uri+=_fc.scheme+":";
}
if(_fc.authority!=null){
uri+="//"+_fc.authority;
}
uri+=_fc.path;
if(_fc.query!=null){
uri+="?"+_fc.query;
}
if(_fc.fragment!=null){
uri+="#"+_fc.fragment;
}
}
this.uri=uri.toString();
var _101="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_101));
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){
_101="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_101));
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.uri.*");
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_103,_104){
if(!dojo.lang.isFunction(_104)){
dojo.raise("dojo.inherits: superclass argument ["+_104+"] must be a function (subclass: ["+_103+"']");
}
_103.prototype=new _104();
_103.prototype.constructor=_103;
_103.superclass=_104.prototype;
_103["super"]=_104.prototype;
};
dojo.lang._mixin=function(obj,_106){
var tobj={};
for(var x in _106){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_106[x])){
obj[x]=_106[x];
}
}
if(dojo.render.html.ie&&(typeof (_106["toString"])=="function")&&(_106["toString"]!=obj["toString"])&&(_106["toString"]!=tobj["toString"])){
obj.toString=_106.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_10a){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_10d,_10e){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_10d.prototype,arguments[i]);
}
return _10d;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_111,_112,_113,_114){
if(!dojo.lang.isArrayLike(_111)&&dojo.lang.isArrayLike(_112)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_111;
_111=_112;
_112=temp;
}
var _116=dojo.lang.isString(_111);
if(_116){
_111=_111.split("");
}
if(_114){
var step=-1;
var i=_111.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_111.length;
}
if(_113){
while(i!=end){
if(_111[i]===_112){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_111[i]==_112){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_11a,_11b,_11c){
return dojo.lang.find(_11a,_11b,_11c,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_11d,_11e){
return dojo.lang.find(_11d,_11e)>-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.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 _12a=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_12a.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_12c,_12d){
var node=_12c.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_12d&&node&&node.tagName&&node.tagName.toLowerCase()!=_12d.toLowerCase()){
node=dojo.dom.nextElement(node,_12d);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_12f,_130){
var node=_12f.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_130&&node&&node.tagName&&node.tagName.toLowerCase()!=_130.toLowerCase()){
node=dojo.dom.prevElement(node,_130);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_133){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_133&&_133.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_133);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_135){
if(!node){
return null;
}
if(_135){
_135=_135.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_135&&_135.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_135);
}
return node;
};
dojo.dom.moveChildren=function(_136,_137,trim){
var _139=0;
if(trim){
while(_136.hasChildNodes()&&_136.firstChild.nodeType==dojo.dom.TEXT_NODE){
_136.removeChild(_136.firstChild);
}
while(_136.hasChildNodes()&&_136.lastChild.nodeType==dojo.dom.TEXT_NODE){
_136.removeChild(_136.lastChild);
}
}
while(_136.hasChildNodes()){
_137.appendChild(_136.firstChild);
_139++;
}
return _139;
};
dojo.dom.copyChildren=function(_13a,_13b,trim){
var _13d=_13a.cloneNode(true);
return this.moveChildren(_13d,_13b,trim);
};
dojo.dom.replaceChildren=function(node,_13f){
var _140=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_140.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_13f);
for(var i=0;i<_140.length;i++){
dojo.dom.destroyNode(_140[i]);
}
};
dojo.dom.removeChildren=function(node){
var _143=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _143;
};
dojo.dom.replaceNode=function(node,_145){
return node.parentNode.replaceChild(_145,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,_149,_14a){
var _14b=[];
var _14c=(_149&&(_149 instanceof Function||typeof _149=="function"));
while(node){
if(!_14c||_149(node)){
_14b.push(node);
}
if(_14a&&_14b.length>0){
return _14b[0];
}
node=node.parentNode;
}
if(_14a){
return null;
}
return _14b;
};
dojo.dom.getAncestorsByTag=function(node,tag,_14f){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_14f);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_154,_155){
if(_155&&node){
node=node.parentNode;
}
while(node){
if(node==_154){
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 _158=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _159=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_159.length;i++){
try{
doc=new ActiveXObject(_159[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_158.implementation)&&(_158.implementation.createDocument)){
doc=_158.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_15c){
if(!_15c){
_15c="text/xml";
}
if(!dj_undef("DOMParser")){
var _15d=new DOMParser();
return _15d.parseFromString(str,_15c);
}else{
if(!dj_undef("ActiveXObject")){
var _15e=dojo.dom.createDocument();
if(_15e){
_15e.async=false;
_15e.loadXML(str);
return _15e;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _15f=dojo.doc();
if(_15f.createElement){
var tmp=_15f.createElement("xml");
tmp.innerHTML=str;
if(_15f.implementation&&_15f.implementation.createDocument){
var _161=_15f.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_161.importNode(tmp.childNodes.item(i),true);
}
return _161;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_164){
if(_164.firstChild){
_164.insertBefore(node,_164.firstChild);
}else{
_164.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_167){
if((_167!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _168=ref.parentNode;
_168.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_16b){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_16b!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_16b);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_16f){
if((!node)||(!ref)||(!_16f)){
return false;
}
switch(_16f.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,_171,_172){
var _173=_171.childNodes;
if(!_173.length||_173.length==_172){
_171.appendChild(node);
return true;
}
if(_172==0){
return dojo.dom.prependChild(node,_171);
}
return dojo.dom.insertAfter(node,_173[_172-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _176=dojo.doc();
dojo.dom.replaceChildren(node,_176.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _177="";
if(node==null){
return _177;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_177+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_177+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _177;
}
};
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,_17d,_17e,_17f){
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(_17d,_17e,_17f);
}else{
var _180=elem.ownerDocument;
var _181=_180.createNode(2,_17e,_17d);
_181.nodeValue=_17f;
elem.setAttributeNode(_181);
}
};
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 _184=dojo.global();
var _185=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_185.documentElement.clientWidth;
h=_184.innerHeight;
}else{
if(!dojo.render.html.opera&&_184.innerWidth){
w=_184.innerWidth;
h=_184.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_185,"documentElement.clientWidth")){
var w2=_185.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_185.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 _189=dojo.global();
var _18a=dojo.doc();
var top=_189.pageYOffset||_18a.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_189.pageXOffset||_18a.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _18f=dojo.doc();
var _190=dojo.byId(node);
type=type.toLowerCase();
while((_190)&&(_190.nodeName.toLowerCase()!=type)){
if(_190==(_18f["body"]||_18f["documentElement"])){
return null;
}
_190=_190.parentNode;
}
return _190;
};
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 _198={x:0,y:0};
if(e.pageX||e.pageY){
_198.x=e.pageX;
_198.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_198.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_198.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _198;
};
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 _19d=dojo.doc().createElement("script");
_19d.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_19d);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_1a0,_1a1,args,_1a3,_1a4){
dojo.deprecated("dojo.html."+_1a0,"replaced by dojo.html."+_1a1+"("+(_1a3?"node, {"+_1a3+": "+_1a3+"}":"")+")"+(_1a4?"."+_1a4:""),"0.5");
var _1a5=[];
if(_1a3){
var _1a6={};
_1a6[_1a3]=args[1];
_1a5.push(args[0]);
_1a5.push(_1a6);
}else{
_1a5=args;
}
var ret=dojo.html[_1a1].apply(dojo.html,args);
if(_1a4){
return ret[_1a4];
}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.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 _1a9=null;
if(window.getComputedStyle){
var _1aa=getComputedStyle(div,"");
_1a9=_1aa.getPropertyValue("background-image");
}else{
_1a9=div.currentStyle.backgroundImage;
}
var _1ab=false;
if(_1a9!=null&&(_1a9=="none"||_1a9=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_1ac){
this.doAccessibleCheck=_1ac;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
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(_1ad,type,_1af,_1b0,_1b1,_1b2,_1b3,_1b4,fps){
this.type=type;
this.animation=_1ad;
this.coords=_1af;
this.x=_1af[0];
this.y=_1af[1];
this.z=_1af[2];
this.startTime=_1b0;
this.currentTime=_1b1;
this.endTime=_1b2;
this.duration=_1b3;
this.percent=_1b4;
this.fps=fps;
};
dojo.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _1b6=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_1b6[i]=Math.round(this.coords[i]);
}
return _1b6;
}});
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_1b8,_1b9){
var fcn=(dojo.lang.isString(_1b9)?_1b8[_1b9]:_1b9)||function(){
};
return function(){
return fcn.apply(_1b8,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_1bb,_1bc,_1bd){
var nso=(_1bc||dojo.lang.anon);
if((_1bd)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_1bb){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_1bb;
return ret;
};
dojo.lang.forward=function(_1c1){
return function(){
return this[_1c1].apply(this,arguments);
};
};
dojo.lang.curry=function(_1c2,func){
var _1c4=[];
_1c2=_1c2||dj_global;
if(dojo.lang.isString(func)){
func=_1c2[func];
}
for(var x=2;x<arguments.length;x++){
_1c4.push(arguments[x]);
}
var _1c6=(func["__preJoinArity"]||func.length)-_1c4.length;
function gather(_1c7,_1c8,_1c9){
var _1ca=_1c9;
var _1cb=_1c8.slice(0);
for(var x=0;x<_1c7.length;x++){
_1cb.push(_1c7[x]);
}
_1c9=_1c9-_1c7.length;
if(_1c9<=0){
var res=func.apply(_1c2,_1cb);
_1c9=_1ca;
return res;
}else{
return function(){
return gather(arguments,_1cb,_1c9);
};
}
}
return gather([],_1c4,_1c6);
};
dojo.lang.curryArguments=function(_1ce,func,args,_1d1){
var _1d2=[];
var x=_1d1||0;
for(x=_1d1;x<args.length;x++){
_1d2.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_1ce,func].concat(_1d2));
};
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,_1d8,_1d9){
if(!farr.length){
if(typeof _1d9=="function"){
_1d9();
}
return;
}
if((typeof _1d8=="undefined")&&(typeof cb=="number")){
_1d8=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_1d8){
_1d8=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_1d8,_1d9);
},_1d8);
};
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 _1dd=1;
for(var i=1;i<=n;i++){
_1dd*=i;
}
return _1dd;
};
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 _1e9=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_1e9.length;i++){
mean+=_1e9[i];
}
return mean/_1e9.length;
};
dojo.math.round=function(_1ec,_1ed){
if(!_1ed){
var _1ee=1;
}else{
var _1ee=Math.pow(10,_1ed);
}
return Math.round(_1ec*_1ee)/_1ee;
};
dojo.math.sd=dojo.math.standardDeviation=function(){
var _1ef=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_1ef));
};
dojo.math.variance=function(){
var _1f0=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,_1f2=0;
for(var i=0;i<_1f0.length;i++){
mean+=_1f0[i];
_1f2+=Math.pow(_1f0[i],2);
}
return (_1f2/_1f0.length)-Math.pow(mean/_1f0.length,2);
};
dojo.math.range=function(a,b,step){
if(arguments.length<2){
b=a;
a=0;
}
if(arguments.length<3){
step=1;
}
var _1f7=[];
if(step>0){
for(var i=a;i<b;i+=step){
_1f7.push(i);
}
}else{
if(step<0){
for(var i=a;i>b;i+=step){
_1f7.push(i);
}
}else{
throw new Error("dojo.math.range: step must be non-zero");
}
}
return _1f7;
};
dojo.provide("dojo.math.curves");
dojo.math.curves={Line:function(_1f9,end){
this.start=_1f9;
this.end=end;
this.dimensions=_1f9.length;
for(var i=0;i<_1f9.length;i++){
_1f9[i]=Number(_1f9[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _1fd=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_1fd[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _1fd;
};
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 _201=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_201[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);
}
_201[j]=C/D;
}
return _201;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _20b=step*(this.p.length-1);
var node=Math.floor(_20b);
var _20d=_20b-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=_20d;
var u2=_20d*_20d;
var u3=_20d*_20d*_20d;
var _215=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];
_215[k]=x1*u3+x2*u2+x3*u+x4;
}
return _215;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_21b,end,ccw){
var _21e=dojo.math.points.midpoint(_21b,end);
var _21f=dojo.math.points.translate(dojo.math.points.invert(_21e),_21b);
var rad=Math.sqrt(Math.pow(_21f[0],2)+Math.pow(_21f[1],2));
var _221=dojo.math.radToDeg(Math.atan(_21f[1]/_21f[0]));
if(_21f[0]<0){
_221-=90;
}else{
_221+=90;
}
dojo.math.curves.CenteredArc.call(this,_21e,rad,_221,_221+(ccw?-180:180));
},CenteredArc:function(_222,_223,_224,end){
this.center=_222;
this.radius=_223;
this.start=_224||0;
this.end=end;
this.getValue=function(n){
var _227=new Array(2);
var _228=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_227[0]=this.center[0]+this.radius*Math.sin(_228);
_227[1]=this.center[1]-this.radius*Math.cos(_228);
return _227;
};
return this;
},Circle:function(_229,_22a){
dojo.math.curves.CenteredArc.call(this,_229,_22a,0,360);
return this;
},Path:function(){
var _22b=[];
var _22c=[];
var _22d=[];
var _22e=0;
this.add=function(_22f,_230){
if(_230<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_22b.push(_22f);
_22c.push(_230);
_22e+=_230;
computeRanges();
};
this.remove=function(_231){
for(var i=0;i<_22b.length;i++){
if(_22b[i]==_231){
_22b.splice(i,1);
_22e-=_22c.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_22b=[];
_22c=[];
_22e=0;
};
this.getValue=function(n){
var _234=false,_235=0;
for(var i=0;i<_22d.length;i++){
var r=_22d[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
_235=_22b[i].getValue(subN);
_234=true;
break;
}
}
if(!_234){
_235=_22b[_22b.length-1].getValue(1);
}
for(var j=0;j<i;j++){
_235=dojo.math.points.translate(_235,_22b[j].getValue(1));
}
return _235;
};
function computeRanges(){
var _23a=0;
for(var i=0;i<_22c.length;i++){
var end=_23a+_22c[i]/_22e;
var len=end-_23a;
_22d[i]=[_23a,end,len];
_23a=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(_23e,_23f,_240,_241,rate){
if(dojo.lang.isArray(_23e)){
_23e=new dojo.math.curves.Line(_23e[0],_23e[1]);
}
this.curve=_23e;
this.duration=_23f;
this.repeatCount=_241||0;
this.rate=rate||25;
if(_240){
if(dojo.lang.isFunction(_240.getValue)){
this.accel=_240;
}else{
var i=0.35*_240+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(_244){
if(_244){
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,_248){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_248){
this.play();
}
},stop:function(_249){
clearTimeout(this._timer);
var step=this._percent/100;
if(_249){
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(_250){
this._anims=[];
this.repeatCount=_250||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(_255){
if(this._anims.length==0){
return;
}
if(_255||!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(_255);
}
},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 _25e=0;
this.element=a[_25e]||null;
this.atEnd=function(){
return (_25e>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_25e++];
return this.element;
};
this.map=function(fn,_260){
var s=_260||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(){
_25e=0;
this.element=a[_25e];
};
};
dojo.collections.DictionaryIterator=function(obj){
var a=[];
var _266={};
for(var p in obj){
if(!_266[p]){
a.push(obj[p]);
}
}
var _268=0;
this.element=a[_268]||null;
this.atEnd=function(){
return (_268>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_268++];
return this.element;
};
this.map=function(fn,_26a){
var s=_26a||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(){
_268=0;
this.element=a[_268];
};
};
dojo.provide("dojo.collections.ArrayList");
dojo.collections.ArrayList=function(arr){
var _26f=[];
if(arr){
_26f=_26f.concat(arr);
}
this.count=_26f.length;
this.add=function(obj){
_26f.push(obj);
this.count=_26f.length;
};
this.addRange=function(a){
if(a.getIterator){
var e=a.getIterator();
while(!e.atEnd()){
this.add(e.get());
}
this.count=_26f.length;
}else{
for(var i=0;i<a.length;i++){
_26f.push(a[i]);
}
this.count=_26f.length;
}
};
this.clear=function(){
_26f.splice(0,_26f.length);
this.count=0;
};
this.clone=function(){
return new dojo.collections.ArrayList(_26f);
};
this.contains=function(obj){
for(var i=0;i<_26f.length;i++){
if(_26f[i]==obj){
return true;
}
}
return false;
};
this.forEach=function(fn,_277){
var s=_277||dj_global;
if(Array.forEach){
Array.forEach(_26f,fn,s);
}else{
for(var i=0;i<_26f.length;i++){
fn.call(s,_26f[i],i,_26f);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(_26f);
};
this.indexOf=function(obj){
for(var i=0;i<_26f.length;i++){
if(_26f[i]==obj){
return i;
}
}
return -1;
};
this.insert=function(i,obj){
_26f.splice(i,0,obj);
this.count=_26f.length;
};
this.item=function(i){
return _26f[i];
};
this.remove=function(obj){
var i=this.indexOf(obj);
if(i>=0){
_26f.splice(i,1);
}
this.count=_26f.length;
};
this.removeAt=function(i){
_26f.splice(i,1);
this.count=_26f.length;
};
this.reverse=function(){
_26f.reverse();
};
this.sort=function(fn){
if(fn){
_26f.sort(fn);
}else{
_26f.sort();
}
};
this.setByIndex=function(i,obj){
_26f[i]=obj;
this.count=_26f.length;
};
this.toArray=function(){
return [].concat(_26f);
};
this.toString=function(_285){
return _26f.join((_285||","));
};
};
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_287){
var _288=window,_289=2;
if(!dojo.lang.isFunction(func)){
_288=func;
func=_287;
_287=arguments[2];
_289++;
}
if(dojo.lang.isString(func)){
func=_288[func];
}
var args=[];
for(var i=_289;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_288,args);
},_287);
};
dojo.lang.clearTimeout=function(_28c){
dojo.global().clearTimeout(_28c);
};
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(_295,_296,_297){
with(dojo.parseObjPath(_295,_296,_297)){
return dojo.evalProp(prop,obj,_297);
}
};
dojo.lang.setObjPathValue=function(_298,_299,_29a,_29b){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_29b=true;
}
with(dojo.parseObjPath(_298,_29a,_29b)){
if(obj&&(_29b||(prop in obj))){
obj[prop]=_299;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_29c,_29d,init,_29f){
if((dojo.lang.isFunction(_29f))||((!_29f)&&(!dojo.lang.isFunction(init)))){
var temp=_29f;
_29f=init;
init=temp;
}
var _2a1=[];
if(dojo.lang.isArray(_29d)){
_2a1=_29d;
_29d=_2a1.shift();
}
if(!init){
init=dojo.evalObjPath(_29c,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_29d?_29d.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _29d();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_2a1;
for(var i=0,l=_2a1.length;i<l;i++){
dojo.lang.extend(ctor,_2a1[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_29c;
if(dojo.lang.isArray(_29f)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_29f));
}else{
dojo.lang.extend(ctor,(_29f)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _2a6=dojo.parseObjPath(_29c,null,true);
_2a6.obj[_2a6.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(_2ac,_2ad,args){
var _2af,_2b0=this.___proto;
this.___proto=_2ac;
try{
_2af=_2ac[_2ad].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_2b0;
}
return _2af;
},_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(_2c0){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
for(var i=0;i<_2c0.length;i++){
if(!dojo.lang.inArray(this.acceptedTypes,_2c0[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(_2c7){
},dropTargets:[],registerDropTarget:function(_2c8){
},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 _2cd=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_2cd++;
break;
}
}
return _2cd==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_2d1){
var _2d2=dojo.lang.isString(arr);
if(_2d2){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_2d1)){
_2d1=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_2d1){
var _2d3=obj;
obj=_2d1;
_2d1=_2d3;
}
}
if(Array.map){
var _2d4=Array.map(arr,_2d1,obj);
}else{
var _2d4=[];
for(var i=0;i<arr.length;++i){
_2d4.push(_2d1.call(obj,arr[i]));
}
}
if(_2d2){
return _2d4.join("");
}else{
return _2d4;
}
},reduce:function(arr,_2d7,obj,_2d9){
var _2da=_2d7;
if(arguments.length==1){
dojo.debug("dojo.lang.reduce called with too few arguments!");
return false;
}else{
if(arguments.length==2){
_2d9=_2d7;
_2da=arr.shift();
}else{
if(arguments.lenght==3){
if(dojo.lang.isFunction(obj)){
_2d9=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_2d9;
_2d9=obj;
obj=tmp;
}
}
}
}
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_2da=_2d9.call(ob,_2da,val);
});
return _2da;
},forEach:function(_2de,_2df,_2e0){
if(dojo.lang.isString(_2de)){
_2de=_2de.split("");
}
if(Array.forEach){
Array.forEach(_2de,_2df,_2e0);
}else{
if(!_2e0){
_2e0=dj_global;
}
for(var i=0,l=_2de.length;i<l;i++){
_2df.call(_2e0,_2de[i],i,_2de);
}
}
},_everyOrSome:function(_2e3,arr,_2e5,_2e6){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_2e3?"every":"some"](arr,_2e5,_2e6);
}else{
if(!_2e6){
_2e6=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _2e9=_2e5.call(_2e6,arr[i],i,arr);
if(_2e3&&!_2e9){
return false;
}else{
if((!_2e3)&&(_2e9)){
return true;
}
}
}
return Boolean(_2e3);
}
},every:function(arr,_2eb,_2ec){
return this._everyOrSome(true,arr,_2eb,_2ec);
},some:function(arr,_2ee,_2ef){
return this._everyOrSome(false,arr,_2ee,_2ef);
},filter:function(arr,_2f1,_2f2){
var _2f3=dojo.lang.isString(arr);
if(_2f3){
arr=arr.split("");
}
var _2f4;
if(Array.filter){
_2f4=Array.filter(arr,_2f1,_2f2);
}else{
if(!_2f2){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_2f2=dj_global;
}
_2f4=[];
for(var i=0;i<arr.length;i++){
if(_2f1.call(_2f2,arr[i],i,arr)){
_2f4.push(arr[i]);
}
}
}
if(_2f3){
return _2f4.join("");
}else{
return _2f4;
}
},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(_2f9,_2fa){
var _2fb=[];
for(var i=_2fa||0;i<_2f9.length;i++){
_2fb.push(_2f9[i]);
}
return _2fb;
}});
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,_2fe){
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 _301=dl.nameAnonFunc(args[2],ao.adviceObj,_2fe);
ao.adviceFunc=_301;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _301=dl.nameAnonFunc(args[0],ao.srcObj,_2fe);
ao.srcFunc=_301;
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 _301=dl.nameAnonFunc(args[1],dj_global,_2fe);
ao.srcFunc=_301;
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 _301=dl.nameAnonFunc(args[3],dj_global,_2fe);
ao.adviceObj=dj_global;
ao.adviceFunc=_301;
}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 _301=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2fe);
ao.aroundFunc=_301;
}
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 _303={};
for(var x in ao){
_303[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);
}
_303.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_303));
});
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 _30b;
if((arguments.length==1)&&(typeof a1=="object")){
_30b=a1;
}else{
_30b={srcObj:a1,srcFunc:a2};
}
_30b.adviceFunc=function(){
var _30c=[];
for(var x=0;x<arguments.length;x++){
_30c.push(arguments[x]);
}
dojo.debug("("+_30b.srcObj+")."+_30b.srcFunc,":",_30c.join(", "));
};
this.kwConnect(_30b);
};
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(_313,_314){
var fn=(_314)?"disconnect":"connect";
if(typeof _313["srcFunc"]=="function"){
_313.srcObj=_313["srcObj"]||dj_global;
var _316=dojo.lang.nameAnonFunc(_313.srcFunc,_313.srcObj,true);
_313.srcFunc=_316;
}
if(typeof _313["adviceFunc"]=="function"){
_313.adviceObj=_313["adviceObj"]||dj_global;
var _316=dojo.lang.nameAnonFunc(_313.adviceFunc,_313.adviceObj,true);
_313.adviceFunc=_316;
}
_313.srcObj=_313["srcObj"]||dj_global;
_313.adviceObj=_313["adviceObj"]||_313["targetObj"]||dj_global;
_313.adviceFunc=_313["adviceFunc"]||_313["targetFunc"];
return dojo.event[fn](_313);
};
this.kwConnect=function(_317){
return this._kwConnectImpl(_317,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(_31a){
return this._kwConnectImpl(_31a,true);
};
};
dojo.event.MethodInvocation=function(_31b,obj,args){
this.jp_=_31b;
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,_323){
this.object=obj||dj_global;
this.methodname=_323;
this.methodfunc=this.object[_323];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_325){
if(!obj){
obj=dj_global;
}
if(!obj[_325]){
obj[_325]=function(){
};
if(!obj[_325]){
dojo.raise("Cannot set do-nothing method on that object "+_325);
}
}else{
if((!dojo.lang.isFunction(obj[_325]))&&(!dojo.lang.isAlien(obj[_325]))){
return null;
}
}
var _326=_325+"$joinpoint";
var _327=_325+"$joinpoint$method";
var _328=obj[_326];
if(!_328){
var _329=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_329=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_326,_327,_325]);
}
}
var _32a=obj[_325].length;
obj[_327]=obj[_325];
_328=obj[_326]=new dojo.event.MethodJoinPoint(obj,_327);
obj[_325]=function(){
var args=[];
if((_329)&&(!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)&&(_329)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _328.run.apply(_328,args);
};
obj[_325].__preJoinArity=_32a;
}
return _328;
};
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 _330=[];
for(var x=0;x<args.length;x++){
_330[x]=args[x];
}
var _332=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _334=marr[0]||dj_global;
var _335=marr[1];
if(!_334[_335]){
dojo.raise("function \""+_335+"\" does not exist on \""+_334+"\"");
}
var _336=marr[2]||dj_global;
var _337=marr[3];
var msg=marr[6];
var _339;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _334[_335].apply(_334,to.args);
}};
to.args=_330;
var _33b=parseInt(marr[4]);
var _33c=((!isNaN(_33b))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _33f=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;
_332(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_337){
_336[_337].call(_336,to);
}else{
if((_33c)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_334[_335].call(_334,to);
}else{
_334[_335].apply(_334,args);
}
},_33b);
}else{
if(msg){
_334[_335].call(_334,to);
}else{
_334[_335].apply(_334,args);
}
}
}
};
var _342=function(){
if(this.squelch){
try{
return _332.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _332.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_342);
}
var _343;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_343=mi.proceed();
}else{
if(this.methodfunc){
_343=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);
dojo.raise(e);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_342);
}
return (this.methodfunc)?_343: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(_348,_349,_34a,_34b,_34c,_34d,once,_34f,rate,_351){
var arr=this.getArr(_34c);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_348,_349,_34a,_34b,_34f,rate,_351];
if(once){
if(this.hasAdvice(_348,_349,_34c,arr)>=0){
return;
}
}
if(_34d=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_354,_355,_356,arr){
if(!arr){
arr=this.getArr(_356);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _355=="object")?(new String(_355)).toString():_355;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_354)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_35c,_35d,_35e,once){
var arr=this.getArr(_35e);
var ind=this.hasAdvice(_35c,_35d,_35e,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_35c,_35d,_35e,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_362){
if(!this.topics[_362]){
this.topics[_362]=new this.TopicImpl(_362);
}
return this.topics[_362];
};
this.registerPublisher=function(_363,obj,_365){
var _363=this.getTopic(_363);
_363.registerPublisher(obj,_365);
};
this.subscribe=function(_366,obj,_368){
var _366=this.getTopic(_366);
_366.subscribe(obj,_368);
};
this.unsubscribe=function(_369,obj,_36b){
var _369=this.getTopic(_369);
_369.unsubscribe(obj,_36b);
};
this.destroy=function(_36c){
this.getTopic(_36c).destroy();
delete this.topics[_36c];
};
this.publishApply=function(_36d,args){
var _36d=this.getTopic(_36d);
_36d.sendMessage.apply(_36d,args);
};
this.publish=function(_36f,_370){
var _36f=this.getTopic(_36f);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_36f.sendMessage.apply(_36f,args);
};
};
dojo.event.topic.TopicImpl=function(_373){
this.topicName=_373;
this.subscribe=function(_374,_375){
var tf=_375||_374;
var to=(!_375)?dj_global:_374;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_378,_379){
var tf=(!_379)?_378:_379;
var to=(!_379)?null:_378;
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(_37c){
this._getJoinPoint().squelch=_37c;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_37d,_37e){
dojo.event.connect(_37d,_37e,this,"sendMessage");
};
this.sendMessage=function(_37f){
};
};
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(_382){
var na;
var tna;
if(_382){
tna=_382.all||_382.getElementsByTagName("*");
na=[_382];
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 _386={};
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 _38b=0;
this.normalizedEventName=function(_38c){
switch(_38c){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _38c;
break;
default:
return _38c.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,_390){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_390.length;x++){
node.__clobberAttrs__.push(_390[x]);
}
};
this.removeListener=function(node,_393,fp,_395){
if(!_395){
var _395=false;
}
_393=dojo.event.browser.normalizedEventName(_393);
if((_393=="onkey")||(_393=="key")){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_395);
}
_393="onkeypress";
}
if(_393.substr(0,2)=="on"){
_393=_393.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_393,fp,_395);
}
};
this.addListener=function(node,_397,fp,_399,_39a){
if(!node){
return;
}
if(!_399){
var _399=false;
}
_397=dojo.event.browser.normalizedEventName(_397);
if((_397=="onkey")||(_397=="key")){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_399,_39a);
}
_397="onkeypress";
}
if(_397.substr(0,2)!="on"){
_397="on"+_397;
}
if(!_39a){
var _39b=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_399){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_39b=fp;
}
if(node.addEventListener){
node.addEventListener(_397.substr(2),_39b,_399);
return _39b;
}else{
if(typeof node[_397]=="function"){
var _39e=node[_397];
node[_397]=function(e){
_39e(e);
return _39b(e);
};
}else{
node[_397]=_39b;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_397]);
}
return _39b;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_3a1,_3a2){
if(typeof _3a1!="function"){
dojo.raise("listener not a function: "+_3a1);
}
dojo.event.browser.currentEvent.currentTarget=_3a2;
return _3a1.call(_3a2,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,_3a5){
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 _3a7=evt.keyCode;
if(_3a7>=65&&_3a7<=90&&evt.shiftKey==false){
_3a7+=32;
}
if(_3a7>=1&&_3a7<=26&&evt.ctrlKey){
_3a7+=96;
}
evt.key=String.fromCharCode(_3a7);
}
}
}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 _3a7=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_3a7+=32;
}
evt.key=String.fromCharCode(_3a7);
}
}
}
}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=(_3a5?_3a5: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 _3a9=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_3a9.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_3a9.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.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,_3b0){
return (new RegExp("(^|\\s+)"+_3b0+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_3b2){
_3b2+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_3b2);
};
dojo.html.addClass=function(node,_3b4){
if(dojo.html.hasClass(node,_3b4)){
return false;
}
_3b4=(dojo.html.getClass(node)+" "+_3b4).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_3b4);
};
dojo.html.setClass=function(node,_3b6){
node=dojo.byId(node);
var cs=new String(_3b6);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_3b6);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_3b9,_3ba){
try{
if(!_3ba){
var _3bb=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_3b9+"(\\s+|$)"),"$1$2");
}else{
var _3bb=dojo.html.getClass(node).replace(_3b9,"");
}
dojo.html.setClass(node,_3bb);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_3bd,_3be){
dojo.html.removeClass(node,_3be);
dojo.html.addClass(node,_3bd);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_3bf,_3c0,_3c1,_3c2,_3c3){
_3c3=false;
var _3c4=dojo.doc();
_3c0=dojo.byId(_3c0)||_3c4;
var _3c5=_3bf.split(/\s+/g);
var _3c6=[];
if(_3c2!=1&&_3c2!=2){
_3c2=0;
}
var _3c7=new RegExp("(\\s|^)(("+_3c5.join(")|(")+"))(\\s|$)");
var _3c8=_3c5.join(" ").length;
var _3c9=[];
if(!_3c3&&_3c4.evaluate){
var _3ca=".//"+(_3c1||"*")+"[contains(";
if(_3c2!=dojo.html.classMatchType.ContainsAny){
_3ca+="concat(' ',@class,' '), ' "+_3c5.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_3c2==2){
_3ca+=" and string-length(@class)="+_3c8+"]";
}else{
_3ca+="]";
}
}else{
_3ca+="concat(' ',@class,' '), ' "+_3c5.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _3cb=_3c4.evaluate(_3ca,_3c0,null,XPathResult.ANY_TYPE,null);
var _3cc=_3cb.iterateNext();
while(_3cc){
try{
_3c9.push(_3cc);
_3cc=_3cb.iterateNext();
}
catch(e){
break;
}
}
return _3c9;
}else{
if(!_3c1){
_3c1="*";
}
_3c9=_3c0.getElementsByTagName(_3c1);
var node,i=0;
outer:
while(node=_3c9[i++]){
var _3cf=dojo.html.getClasses(node);
if(_3cf.length==0){
continue outer;
}
var _3d0=0;
for(var j=0;j<_3cf.length;j++){
if(_3c7.test(_3cf[j])){
if(_3c2==dojo.html.classMatchType.ContainsAny){
_3c6.push(node);
continue outer;
}else{
_3d0++;
}
}else{
if(_3c2==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_3d0==_3c5.length){
if((_3c2==dojo.html.classMatchType.IsOnly)&&(_3d0==_3cf.length)){
_3c6.push(node);
}else{
if(_3c2==dojo.html.classMatchType.ContainsAll){
_3c6.push(node);
}
}
}
}
return _3c6;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_3d2){
var arr=_3d2.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(_3d6){
return _3d6.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.html.getComputedStyle=function(node,_3d8,_3d9){
node=dojo.byId(node);
var _3d8=dojo.html.toSelectorCase(_3d8);
var _3da=dojo.html.toCamelCase(_3d8);
if(!node||!node.style){
return _3d9;
}else{
if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_3d8);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_3d8);
}else{
return _3d9;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_3da];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_3d8);
}else{
return _3d9;
}
};
dojo.html.getStyleProperty=function(node,_3dd){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_3dd)]:undefined);
};
dojo.html.getStyle=function(node,_3df){
var _3e0=dojo.html.getStyleProperty(node,_3df);
return (_3e0?_3e0:dojo.html.getComputedStyle(node,_3df));
};
dojo.html.setStyle=function(node,_3e2,_3e3){
node=dojo.byId(node);
if(node&&node.style){
var _3e4=dojo.html.toCamelCase(_3e2);
node.style[_3e4]=_3e3;
}
};
dojo.html.setStyleText=function(_3e5,text){
try{
_3e5.style.cssText=text;
}
catch(e){
_3e5.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_3e7,_3e8){
if(!_3e8.style.cssText){
_3e7.setAttribute("style",_3e8.getAttribute("style"));
}else{
_3e7.style.cssText=_3e8.style.cssText;
}
dojo.html.addClass(_3e7,dojo.html.getClass(_3e8));
};
dojo.html.getUnitValue=function(node,_3ea,_3eb){
var s=dojo.html.getComputedStyle(node,_3ea);
if((!s)||((s=="auto")&&(_3eb))){
return {value:0,units:"px"};
}
var _3ed=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_3ed){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_3ed[1]),units:_3ed[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
dojo.html.getPixelValue=function(node,_3ef,_3f0){
var _3f1=dojo.html.getUnitValue(node,_3ef,_3f0);
if(isNaN(_3f1.value)){
return 0;
}
if((_3f1.value)&&(_3f1.units!="px")){
return NaN;
}
return _3f1.value;
};
dojo.html.setPositivePixelValue=function(node,_3f3,_3f4){
if(isNaN(_3f4)){
return false;
}
node.style[_3f3]=Math.max(0,_3f4)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_3f5,_3f6,_3f7){
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){
_3f7=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_3f7=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_3f5+" { "+_3f6+" }";
return dojo.html.styleSheet.insertRule(rule,_3f7);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_3f5,_3f6,_3f7);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_3f9){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_3f9){
_3f9=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_3f9);
}
}else{
if(document.styleSheets[0]){
if(!_3f9){
_3f9=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_3f9);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_3fc,_3fd){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _3fe=dojo.hostenv.getText(URI,false,_3fd);
if(_3fe===null){
return;
}
_3fe=dojo.html.fixPathsInCssText(_3fe,URI);
if(_3fc){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_3fe)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _403=doc.getElementsByTagName("style");
for(var i=0;i<_403.length;i++){
if(_403[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _404=dojo.html.insertCssText(_3fe,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_3fe,"nodeRef":_404});
if(_404&&djConfig.isDebug){
_404.setAttribute("dbgHref",URI);
}
return _404;
};
dojo.html.insertCssText=function(_405,doc,URI){
if(!_405){
return;
}
if(!doc){
doc=document;
}
if(URI){
_405=dojo.html.fixPathsInCssText(_405,URI);
}
var _408=doc.createElement("style");
_408.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(_408);
}
if(_408.styleSheet){
var _40a=function(){
try{
_408.styleSheet.cssText=_405;
}
catch(e){
dojo.debug(e);
}
};
if(_408.styleSheet.disabled){
setTimeout(_40a,10);
}else{
_40a();
}
}else{
var _40b=doc.createTextNode(_405);
_408.appendChild(_40b);
}
return _408;
};
dojo.html.fixPathsInCssText=function(_40c,URI){
if(!_40c||!URI){
return;
}
var _40e,str="",url="",_411="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _412=new RegExp("url\\(\\s*("+_411+")\\s*\\)");
var _413=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_411+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _414=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_411+")['\"]");
while(_40e=_414.exec(_40c)){
url=_40e[2].replace(regexTrim,"$2");
if(!_413.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_40c.substring(0,_40e.index)+"AlphaImageLoader("+_40e[1]+"src='"+url+"'";
_40c=_40c.substr(_40e.index+_40e[0].length);
}
_40c=str+_40c;
str="";
}
while(_40e=_412.exec(_40c)){
url=_40e[1].replace(regexTrim,"$2");
if(!_413.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_40c.substring(0,_40e.index)+"url("+url+")";
_40c=_40c.substr(_40e.index+_40e[0].length);
}
return str+_40c;
};
dojo.html.setActiveStyleSheet=function(_415){
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")==_415){
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 _421={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 _421){
if(_421[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_424,_425){
node=dojo.byId(node);
_425(node,!_424(node));
return _424(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,_42a){
dojo.html[(_42a?"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,_430){
dojo.html.setStyle(node,"display",((_430 instanceof String||typeof _430=="string")?_430:(_430?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,_434){
dojo.html.setStyle(node,"visibility",((_434 instanceof String||typeof _434=="string")?_434:(_434?"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,_438,_439){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_439){
if(_438>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_438=0.999999;
}
}else{
if(_438<0){
_438=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="+_438*100+")";
}
}
node.style.filter="Alpha(Opacity="+_438*100+")";
}else{
if(h.moz){
node.style.opacity=_438;
node.style.MozOpacity=_438;
}else{
if(h.safari){
node.style.opacity=_438;
node.style.KhtmlOpacity=_438;
}else{
node.style.opacity=_438;
}
}
}
};
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 _445=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_445+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _445;
};
dojo.html.setStyleAttributes=function(node,_448){
node=dojo.byId(node);
var _449=_448.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_449.length;i++){
var _44b=_449[i].split(":");
var name=_44b[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _44d=_44b[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_44d);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_44d});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_44d});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_44d});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_44d});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_44d;
}
}
};
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,_44f,_450){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_450){
_450=bs.CONTENT_BOX;
}
var _453=2;
var _454;
switch(_450){
case bs.MARGIN_BOX:
_454=3;
break;
case bs.BORDER_BOX:
_454=2;
break;
case bs.PADDING_BOX:
default:
_454=1;
break;
case bs.CONTENT_BOX:
_454=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){
_453=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 _458;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_458=db;
}else{
_458=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 _45a=node;
do{
var n=_45a["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_45a["offsetTop"];
ret.y+=isNaN(m)?0:m;
_45a=_45a.offsetParent;
}while((_45a!=_458)&&(_45a!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_44f){
var _45d=dojo.html.getScroll();
ret.y+=_45d.top;
ret.x+=_45d.left;
}
var _45e=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_453>_454){
for(var i=_454;i<_453;++i){
ret.y+=_45e[i](node,"top");
ret.x+=_45e[i](node,"left");
}
}else{
if(_453<_454){
for(var i=_454;i>_453;--i){
ret.y-=_45e[i-1](node,"top");
ret.x-=_45e[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,_462,_463){
var _464=0;
for(var x=0;x<_462.length;x++){
_464+=dojo.html.getPixelValue(node,_462[x],_463);
}
return _464;
};
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 _471=dojo.html.getBorder(node);
return {width:pad.width+_471.width,height:pad.height+_471.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 _476=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_476){
_476=dojo.html.getStyle(node,"box-sizing");
}
return (_476?_476: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 _47b=dojo.html.getBorder(node);
return {width:box.width-_47b.width,height:box.height-_47b.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _47d=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_47d.width,height:node.offsetHeight-_47d.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _480=0;
var _481=0;
var isbb=dojo.html.isBorderBox(node);
var _483=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_480=args.width+_483.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_480);
}
if(typeof args.height!="undefined"){
_481=args.height+_483.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_481);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _486=dojo.html.getBorderBox(node);
var _487=dojo.html.getMargin(node);
return {width:_486.width+_487.width,height:_486.height+_487.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _48a=0;
var _48b=0;
var isbb=dojo.html.isBorderBox(node);
var _48d=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _48e=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_48a=args.width-_48d.width;
_48a-=_48e.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_48a);
}
if(typeof args.height!="undefined"){
_48b=args.height-_48d.height;
_48b-=_48e.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_48b);
}
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(_493,_494,_495){
if(_493 instanceof Array||typeof _493=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_493.length<4){
_493.push(0);
}
while(_493.length>4){
_493.pop();
}
var ret={left:_493[0],top:_493[1],width:_493[2],height:_493[3]};
}else{
if(!_493.nodeType&&!(_493 instanceof String||typeof _493=="string")&&("width" in _493||"height" in _493||"left" in _493||"x" in _493||"top" in _493||"y" in _493)){
var ret={left:_493.left||_493.x||0,top:_493.top||_493.y||0,width:_493.width||0,height:_493.height||0};
}else{
var node=dojo.byId(_493);
var pos=dojo.html.abs(node,_494,_495);
var _499=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_499.width,height:_499.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_49b){
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,_49e){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_4a0){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_4a2){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_4a4){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_4a6){
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,_4b0){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_4b2){
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 _4b6=dp+"Idx_"+(this.dsCounter++);
ds.dragSourceId=_4b6;
this.dragSources[_4b6]=ds;
ds.domNode.setAttribute(dp,_4b6);
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 _4b9=ds.dragSourceId;
delete ds.dragSourceId;
delete this.dragSources[_4b9];
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 _4bc=dojo.lang.find(this.dropTargets,dt,true);
if(_4bc>=0){
this.dropTargets.splice(_4bc,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 _4c2=e.target.nodeType==dojo.html.TEXT_NODE?e.target.parentNode:e.target;
if(dojo.html.isTag(_4c2,"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,_4c5){
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(_4c6){
var ret=null;
if(!_4c6){
return;
}
if(this.currentDropTarget){
e.dragObject=_4c6;
var ce=this.currentDropTarget.domNode.childNodes;
if(ce.length>0){
e.dropTarget=ce[0];
while(e.dropTarget==_4c6.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{
_4c6.dragSource.onDragEnd(e);
}
catch(err){
var _4c9={};
for(var i in e){
if(i=="type"){
_4c9.type="mouseup";
continue;
}
_4c9[i]=e[i];
}
_4c6.dragSource.onDragEnd(_4c9);
}
},function(){
_4c6.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(_4d2){
var tn=_4d2.domNode;
if(!tn||!_4d2.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],_4d2]);
},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(_4d9){
if(!_4d9){
return;
}
var tdo=_4d9.onDragStart(e);
if(tdo){
tdo.onDragStart(e);
tdo.dragOffset.y+=dy;
tdo.dragOffset.x+=dx;
tdo.dragSource=_4d9;
this.dragObjects.push(tdo);
}
},this);
this.previousDropTarget=null;
this.cacheTargetLocations();
}
dojo.lang.forEach(this.dragObjects,function(_4db){
if(_4db){
_4db.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 _4de=this.findBestTarget(e);
if(_4de.target===null){
if(this.currentDropTarget){
this.currentDropTarget.onDragOut(e);
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget=null;
}
this.dropAcceptable=false;
return;
}
if(this.currentDropTarget!==_4de.target){
if(this.currentDropTarget){
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget.onDragOut(e);
}
this.currentDropTarget=_4de.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 _4e0=this;
var _4e1=new Object();
_4e1.target=null;
_4e1.points=null;
dojo.lang.every(this.dropTargetDimensions,function(_4e2){
if(!_4e0.isInsideBox(e,_4e2)){
return true;
}
_4e1.target=_4e2[2];
_4e1.points=_4e2;
return Boolean(_4e0.nestedTargets);
});
return _4e1;
},isInsideBox:function(e,_4e4){
if((e.pageX>_4e4[0][0])&&(e.pageX<_4e4[1][0])&&(e.pageY>_4e4[0][1])&&(e.pageY<_4e4[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,"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(_4e9){
return dojo.html.getDocumentWindow(_4e9.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 _4f1=dojo.html.getCursorPosition(e);
with(dojo.html){
var _4f2=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _4f4=_4f2.x+(bb.width/2);
var _4f5=_4f2.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_4f1.x<_4f4?WEST:EAST)|(_4f1.y<_4f5?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(_4f6,e){
_4f6=dojo.byId(_4f6);
var _4f8=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_4f6);
var _4fa=dojo.html.getAbsolutePosition(_4f6,true,dojo.html.boxSizing.BORDER_BOX);
var top=_4fa.y;
var _4fc=top+bb.height;
var left=_4fa.x;
var _4fe=left+bb.width;
return (_4f8.x>=left&&_4f8.x<=_4fe&&_4f8.y>=top&&_4f8.y<=_4fc);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _500="";
if(node==null){
return _500;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _502="unknown";
try{
_502=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_502){
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":
_500+="\n";
_500+=dojo.html.renderedTextContent(node.childNodes[i]);
_500+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_500+="\n";
}else{
_500+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _504="unknown";
try{
_504=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_504){
case "capitalize":
var _505=text.split(" ");
for(var i=0;i<_505.length;i++){
_505[i]=_505[i].charAt(0).toUpperCase()+_505[i].substring(1);
}
text=_505.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_504){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_500)){
text.replace(/^\s/,"");
}
break;
}
_500+=text;
break;
default:
break;
}
}
return _500;
};
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 _509="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_509="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_509="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_509="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _50a=null;
switch(_509){
case "cell":
_50a=tn.getElementsByTagName("tr")[0];
break;
case "row":
_50a=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_50a=tn.getElementsByTagName("table")[0];
break;
default:
_50a=tn;
break;
}
var _50b=[];
for(var x=0;x<_50a.childNodes.length;x++){
_50b.push(_50a.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _50b;
};
dojo.html.placeOnScreen=function(node,_50e,_50f,_510,_511,_512,_513){
if(_50e instanceof Array||typeof _50e=="array"){
_513=_512;
_512=_511;
_511=_510;
_510=_50f;
_50f=_50e[1];
_50e=_50e[0];
}
if(_512 instanceof String||typeof _512=="string"){
_512=_512.split(",");
}
if(!isNaN(_510)){
_510=[Number(_510),Number(_510)];
}else{
if(!(_510 instanceof Array||typeof _510=="array")){
_510=[0,0];
}
}
var _514=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _516=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_516;
if(!(_512 instanceof Array||typeof _512=="array")){
_512=["TL"];
}
var _51a,_51b,_51c=Infinity,_51d;
for(var _51e=0;_51e<_512.length;++_51e){
var _51f=_512[_51e];
var _520=true;
var tryX=_50e-(_51f.charAt(1)=="L"?0:w)+_510[0]*(_51f.charAt(1)=="L"?1:-1);
var tryY=_50f-(_51f.charAt(0)=="T"?0:h)+_510[1]*(_51f.charAt(0)=="T"?1:-1);
if(_511){
tryX-=_514.x;
tryY-=_514.y;
}
if(tryX<0){
tryX=0;
_520=false;
}
if(tryY<0){
tryY=0;
_520=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_520=false;
}else{
x=tryX;
}
x=Math.max(_510[0],x)+_514.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_520=false;
}else{
y=tryY;
}
y=Math.max(_510[1],y)+_514.y;
if(_520){
_51a=x;
_51b=y;
_51c=0;
_51d=_51f;
break;
}else{
var dist=Math.pow(x-tryX-_514.x,2)+Math.pow(y-tryY-_514.y,2);
if(_51c>dist){
_51c=dist;
_51a=x;
_51b=y;
_51d=_51f;
}
}
}
if(!_513){
node.style.left=_51a+"px";
node.style.top=_51b+"px";
}
return {left:_51a,top:_51b,x:_51a,y:_51b,dist:_51c,corner:_51d};
};
dojo.html.placeOnScreenPoint=function(node,_527,_528,_529,_52a){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_527,_528,_529,_52a,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_52c,_52d,_52e,_52f,_530){
var best,_532=Infinity;
_52c=dojo.byId(_52c);
var _533=_52c.style.display;
_52c.style.display="";
var mb=dojo.html.getElementBox(_52c,_52e);
var _535=mb.width;
var _536=mb.height;
var _537=dojo.html.getAbsolutePosition(_52c,true,_52e);
_52c.style.display=_533;
for(var _538 in _52f){
var pos,_53a,_53b;
var _53c=_52f[_538];
_53a=_537.x+(_538.charAt(1)=="L"?0:_535);
_53b=_537.y+(_538.charAt(0)=="T"?0:_536);
pos=dojo.html.placeOnScreen(node,_53a,_53b,_52d,true,_53c,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_532>pos.dist){
_532=pos.dist;
best=pos;
}
}
}
if(!_530){
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 _53e=node.parentNode;
var _53f=_53e.scrollTop+dojo.html.getBorderBox(_53e).height;
var _540=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_53f<_540){
_53e.scrollTop+=(_540-_53f);
}else{
if(_53e.scrollTop>node.offsetTop){
_53e.scrollTop-=(_53e.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _541=dojo.global();
var _542=dojo.doc();
try{
if(_541["getSelection"]){
if(dojo.render.html.safari){
_541.getSelection().collapse();
}else{
_541.getSelection().removeAllRanges();
}
}else{
if(_542.selection){
if(_542.selection.empty){
_542.selection.empty();
}else{
if(_542.selection.clear){
_542.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_543){
_543=dojo.byId(_543)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_543.style.MozUserSelect="none";
}else{
if(h.safari){
_543.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_543.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_545){
_545=dojo.byId(_545)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_545.style.MozUserSelect="";
}else{
if(h.safari){
_545.style.KhtmlUserSelect="";
}else{
if(h.ie){
_545.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_547){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_548){
var _549=dojo.global();
var _54a=dojo.doc();
_548=dojo.byId(_548);
if(_54a["selection"]&&dojo.body()["createTextRange"]){
var _54b=_548.createTextRange();
_54b.moveStart("character",0);
_54b.moveEnd("character",_548.value.length);
_54b.select();
}else{
if(_549["getSelection"]){
var _54c=_549.getSelection();
_548.setSelectionRange(0,_548.value.length);
}
}
_548.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 _54d=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _54f=oSel.getRangeAt(0);
if(_54f.startContainer==_54f.endContainer&&(_54f.endOffset-_54f.startOffset)==1&&_54f.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_54d=dojo.html.selectionType.CONTROL;
}
}
return _54d;
}
},isCollapsed:function(){
var _550=dojo.global();
var _551=dojo.doc();
if(_551["selection"]){
return _551.selection.createRange().text=="";
}else{
if(_550["getSelection"]){
var _552=_550.getSelection();
if(dojo.lang.isString(_552)){
return _552=="";
}else{
return _552.isCollapsed||_552.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _553=dojo.doc().selection.createRange();
if(_553&&_553.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _554=dojo.global().getSelection();
return _554.anchorNode.childNodes[_554.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 _556=dojo.global().getSelection();
if(_556){
var node=_556.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 _558=dojo.global().getSelection();
if(_558){
return _558.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 _559=dojo.global().getSelection();
if(_559&&_559.rangeCount){
var frag=_559.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_55c){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_55d){
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(_562){
var _563=dojo.global();
var _564=dojo.doc();
_562=dojo.byId(_562);
if(_564.selection&&dojo.body().createTextRange){
try{
var _565=dojo.body().createControlRange();
_565.addElement(_562);
_565.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_562);
}
}else{
if(_563["getSelection"]){
var _566=_563.getSelection();
if(_566["removeAllRanges"]){
var _565=_564.createRange();
_565.selectNode(_562);
_566.removeAllRanges();
_566.addRange(_565);
}
}
}
},selectElementChildren:function(_567){
var _568=dojo.global();
var _569=dojo.doc();
_567=dojo.byId(_567);
if(_569.selection&&dojo.body().createTextRange){
var _56a=dojo.body().createTextRange();
_56a.moveToElementText(_567);
_56a.select();
}else{
if(_568["getSelection"]){
var _56b=_568.getSelection();
if(_56b["setBaseAndExtent"]){
_56b.setBaseAndExtent(_567,0,_567,_567.innerText.length-1);
}else{
if(_56b["selectAllChildren"]){
_56b.selectAllChildren(_567);
}
}
}
}
},getBookmark:function(){
var _56c;
var _56d=dojo.doc();
if(_56d["selection"]){
var _56e=_56d.selection.createRange();
_56c=_56e.getBookmark();
}else{
var _56f;
try{
_56f=dojo.global().getSelection();
}
catch(e){
}
if(_56f){
var _56e=_56f.getRangeAt(0);
_56c=_56e.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _56c;
},moveToBookmark:function(_570){
var _571=dojo.doc();
if(_571["selection"]){
var _572=_571.selection.createRange();
_572.moveToBookmark(_570);
_572.select();
}else{
var _573;
try{
_573=dojo.global().getSelection();
}
catch(e){
}
if(_573&&_573["removeAllRanges"]){
_573.removeAllRanges();
_573.addRange(_570);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_574){
if(dojo.global()["getSelection"]){
var _575=dojo.global().getSelection();
if(_575.removeAllRanges){
if(_574){
_575.collapseToStart();
}else{
_575.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_574);
}
}else{
if(dojo.doc().selection){
var _576=dojo.doc().selection.createRange();
_576.collapse(_574);
_576.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _577=dojo.doc().selection;
if(_577.type.toUpperCase()!="NONE"){
_577.clear();
}
return _577;
}else{
var _577=dojo.global().getSelection();
for(var i=0;i<_577.rangeCount;i++){
_577.getRangeAt(i).deleteContents();
}
return _577;
}
}});
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_579){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_579))||dojo.html.iframeContentDocument(_579).__parent__||(_579.name&&document.frames[_579.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_57b){
var doc=_57b.contentDocument||((_57b.contentWindow)&&(_57b.contentWindow.document))||((_57b.name)&&(document.frames[_57b.name])&&(document.frames[_57b.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 _57f=dojo.html.getMarginBox(this.domNode);
if(_57f.width==0||_57f.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_57f.width+"px";
this.iframe.style.height=_57f.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _581=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_581.width+"px";
height=_581.height+"px";
left=_581.left+"px";
top=_581.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(_589){
if(_589){
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(_58a,_58b){
var rgb=null;
if(dojo.lang.isArray(_58a)){
rgb=_58a;
}else{
if(_58a instanceof dojo.gfx.color.Color){
rgb=_58a.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_58a).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_58b);
}});
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,_58f){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_58f);
}
if(!_58f){
_58f=0;
}
_58f=Math.min(Math.max(-1,_58f),1);
_58f=((_58f+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_58f));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_594){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_594));
};
dojo.gfx.color.extractRGB=function(_595){
var hex="0123456789abcdef";
_595=_595.toLowerCase();
if(_595.indexOf("rgb")==0){
var _597=_595.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_597.splice(1,3);
return ret;
}else{
var _599=dojo.gfx.color.hex2rgb(_595);
if(_599){
return _599;
}else{
return dojo.gfx.color.named[_595]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _59b="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_59b+"]","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]=_59b.indexOf(rgb[i].charAt(0))*16+_59b.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(_5a4,end){
this.start=_5a4;
this.end=end;
if(dojo.lang.isArray(_5a4)){
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-_5a4;
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,_5b3,_5b4){
if(!_5b4){
_5b4=_5b3;
_5b3=this;
}
_5b4=dojo.lang.hitch(_5b3,_5b4);
var _5b5=this[evt]||function(){
};
this[evt]=function(){
var ret=_5b5.apply(this,arguments);
_5b4.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_5b9){
this.repeatCount=_5b9;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_5ba,_5bb,_5bc,_5bd,_5be,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_5ba)||(!_5ba&&_5bb.getValue)){
rate=_5be;
_5be=_5bd;
_5bd=_5bc;
_5bc=_5bb;
_5bb=_5ba;
_5ba=null;
}else{
if(_5ba.getValue||dojo.lang.isArray(_5ba)){
rate=_5bd;
_5be=_5bc;
_5bd=_5bb;
_5bc=_5ba;
_5bb=null;
_5ba=null;
}
}
if(dojo.lang.isArray(_5bc)){
this.curve=new dojo.lfx.Line(_5bc[0],_5bc[1]);
}else{
this.curve=_5bc;
}
if(_5bb!=null&&_5bb>0){
this.duration=_5bb;
}
if(_5be){
this.repeatCount=_5be;
}
if(rate){
this.rate=rate;
}
if(_5ba){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_5ba[item]){
this.connect(item,_5ba[item]);
}
},this);
}
if(_5bd&&dojo.lang.isFunction(_5bd)){
this.easing=_5bd;
}
};
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(_5c1,_5c2){
if(_5c2){
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(_5c1>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5c2);
}),_5c1);
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 _5c4=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_5c4]);
this.fire("onBegin",[_5c4]);
}
this.fire("handler",["play",_5c4]);
this.fire("onPlay",[_5c4]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _5c5=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_5c5]);
this.fire("onPause",[_5c5]);
return this;
},gotoPercent:function(pct,_5c7){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_5c7){
this.play();
}
return this;
},stop:function(_5c8){
clearTimeout(this._timer);
var step=this._percent/100;
if(_5c8){
step=1;
}
var _5ca=this.curve.getValue(step);
this.fire("handler",["stop",_5ca]);
this.fire("onStop",[_5ca]);
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 _5cd=this.curve.getValue(step);
this.fire("handler",["animate",_5cd]);
this.fire("onAnimate",[_5cd]);
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(_5ce){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _5cf=arguments;
if(_5cf.length==1&&(dojo.lang.isArray(_5cf[0])||dojo.lang.isArrayLike(_5cf[0]))){
_5cf=_5cf[0];
}
dojo.lang.forEach(_5cf,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(_5d1,_5d2){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_5d1>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5d2);
}),_5d1);
return this;
}
if(_5d2||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_5d2);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_5d3){
this.fire("onStop");
this._animsCall("stop",_5d3);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_5d4){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _5d7=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_5d4](args);
},_5d7);
return this;
}});
dojo.lfx.Chain=function(_5d9){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _5da=arguments;
if(_5da.length==1&&(dojo.lang.isArray(_5da[0])||dojo.lang.isArrayLike(_5da[0]))){
_5da=_5da[0];
}
var _5db=this;
dojo.lang.forEach(_5da,function(anim,i,_5de){
this._anims.push(anim);
if(i<_5de.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(_5df,_5e0){
if(!this._anims.length){
return this;
}
if(_5e0||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _5e1=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_5df>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5e0);
}),_5df);
return this;
}
if(_5e1){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_5e1.play(null,_5e0);
}
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 _5e2=this._anims[this._currAnim];
if(_5e2){
if(!_5e2._active||_5e2._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _5e3=this._anims[this._currAnim];
if(_5e3){
_5e3.stop();
this.fire("onStop",[this._currAnim]);
}
return _5e3;
},_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(_5e4){
var _5e5=arguments;
if(dojo.lang.isArray(arguments[0])){
_5e5=arguments[0];
}
if(_5e5.length==1){
return _5e5[0];
}
return new dojo.lfx.Combine(_5e5);
};
dojo.lfx.chain=function(_5e6){
var _5e7=arguments;
if(dojo.lang.isArray(arguments[0])){
_5e7=arguments[0];
}
if(_5e7.length==1){
return _5e7[0];
}
return new dojo.lfx.Chain(_5e7);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _5e9;
do{
_5e9=dojo.html.getStyle(node,"background-color");
if(_5e9.toLowerCase()=="rgba(0, 0, 0, 0)"){
_5e9="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_5e9));
if(_5e9=="transparent"){
_5e9=[255,255,255,0];
}else{
_5e9=dojo.gfx.color.extractRGB(_5e9);
}
return _5e9;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_5ea){
if(!_5ea){
return [];
}
if(dojo.lang.isArrayLike(_5ea)){
if(!_5ea.alreadyChecked){
var n=[];
dojo.lang.forEach(_5ea,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _5ea;
}
}else{
var n=[];
n.push(dojo.byId(_5ea));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_5ed,_5ee,_5ef,_5f0,_5f1){
_5ed=dojo.lfx.html._byId(_5ed);
var _5f2={"propertyMap":_5ee,"nodes":_5ed,"duration":_5ef,"easing":_5f0||dojo.lfx.easeDefault};
var _5f3=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _5f7 in pm){
pm[_5f7].property=_5f7;
parr.push(pm[_5f7]);
}
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 _5f9=function(_5fa){
var _5fb=[];
dojo.lang.forEach(_5fa,function(c){
_5fb.push(Math.round(c));
});
return _5fb;
};
var _5fd=function(n,_5ff){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _5ff){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_5ff[s]);
}else{
n.style[s]=_5ff[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _601=function(_602){
this._properties=_602;
this.diffs=new Array(_602.length);
dojo.lang.forEach(_602,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 _609=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_609=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_609+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_609+=")";
}else{
_609=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_609;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_5f3(_5f2);
anim.curve=new _601(_5f2.propertyMap);
},onAnimate:function(_60c){
dojo.lang.forEach(_5f2.nodes,function(node){
_5fd(node,_60c);
});
}},_5f2.duration,null,_5f2.easing);
if(_5f1){
for(var x in _5f1){
if(dojo.lang.isFunction(_5f1[x])){
anim.connect(x,anim,_5f1[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_60f){
var _610=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(_60f)){
dojo.lang.forEach(_60f,_610);
}else{
_610(_60f);
}
};
dojo.lfx.html.fade=function(_612,_613,_614,_615,_616){
_612=dojo.lfx.html._byId(_612);
var _617={property:"opacity"};
if(!dj_undef("start",_613)){
_617.start=_613.start;
}else{
_617.start=function(){
return dojo.html.getOpacity(_612[0]);
};
}
if(!dj_undef("end",_613)){
_617.end=_613.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_612,[_617],_614,_615);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_612);
});
if(_616){
anim.connect("onEnd",function(){
_616(_612,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_619,_61a,_61b,_61c){
return dojo.lfx.html.fade(_619,{end:1},_61a,_61b,_61c);
};
dojo.lfx.html.fadeOut=function(_61d,_61e,_61f,_620){
return dojo.lfx.html.fade(_61d,{end:0},_61e,_61f,_620);
};
dojo.lfx.html.fadeShow=function(_621,_622,_623,_624){
_621=dojo.lfx.html._byId(_621);
dojo.lang.forEach(_621,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_621,_622,_623,_624);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_621)){
dojo.lang.forEach(_621,dojo.html.show);
}else{
dojo.html.show(_621);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_627,_628,_629,_62a){
var anim=dojo.lfx.html.fadeOut(_627,_628,_629,function(){
if(dojo.lang.isArrayLike(_627)){
dojo.lang.forEach(_627,dojo.html.hide);
}else{
dojo.html.hide(_627);
}
if(_62a){
_62a(_627,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_62c,_62d,_62e,_62f){
_62c=dojo.lfx.html._byId(_62c);
var _630=[];
dojo.lang.forEach(_62c,function(node){
var _632={};
var _633,_634,_635;
with(node.style){
_633=top;
_634=left;
_635=position;
top="-9999px";
left="-9999px";
position="absolute";
display="";
}
var _636=dojo.html.getBorderBox(node).height;
with(node.style){
top=_633;
left=_634;
position=_635;
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _636;
}}},_62d,_62e);
anim.connect("beforeBegin",function(){
_632.overflow=node.style.overflow;
_632.height=node.style.height;
with(node.style){
overflow="hidden";
_636="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_632.overflow;
_636=_632.height;
}
if(_62f){
_62f(node,anim);
}
});
_630.push(anim);
});
return dojo.lfx.combine(_630);
};
dojo.lfx.html.wipeOut=function(_638,_639,_63a,_63b){
_638=dojo.lfx.html._byId(_638);
var _63c=[];
dojo.lang.forEach(_638,function(node){
var _63e={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_639,_63a,{"beforeBegin":function(){
_63e.overflow=node.style.overflow;
_63e.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_63e.overflow;
height=_63e.height;
}
if(_63b){
_63b(node,anim);
}
}});
_63c.push(anim);
});
return dojo.lfx.combine(_63c);
};
dojo.lfx.html.slideTo=function(_640,_641,_642,_643,_644){
_640=dojo.lfx.html._byId(_640);
var _645=[];
var _646=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_641)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_641={top:_641[0],left:_641[1]};
}
dojo.lang.forEach(_640,function(node){
var top=null;
var left=null;
var init=(function(){
var _64b=node;
return function(){
var pos=_646(_64b,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_646(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_646(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_64b,true);
dojo.html.setStyleAttributes(_64b,"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:(_641.top||0)},"left":{start:left,end:(_641.left||0)}},_642,_643,{"beforeBegin":init});
if(_644){
anim.connect("onEnd",function(){
_644(_640,anim);
});
}
_645.push(anim);
});
return dojo.lfx.combine(_645);
};
dojo.lfx.html.slideBy=function(_64f,_650,_651,_652,_653){
_64f=dojo.lfx.html._byId(_64f);
var _654=[];
var _655=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_650)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_650={top:_650[0],left:_650[1]};
}
dojo.lang.forEach(_64f,function(node){
var top=null;
var left=null;
var init=(function(){
var _65a=node;
return function(){
var pos=_655(_65a,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_655(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_655(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_65a,true);
dojo.html.setStyleAttributes(_65a,"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+(_650.top||0)},"left":{start:left,end:left+(_650.left||0)}},_651,_652).connect("beforeBegin",init);
if(_653){
anim.connect("onEnd",function(){
_653(_64f,anim);
});
}
_654.push(anim);
});
return dojo.lfx.combine(_654);
};
dojo.lfx.html.explode=function(_65e,_65f,_660,_661,_662){
var h=dojo.html;
_65e=dojo.byId(_65e);
_65f=dojo.byId(_65f);
var _664=h.toCoordinateObject(_65e,true);
var _665=document.createElement("div");
h.copyStyle(_665,_65f);
if(_65f.explodeClassName){
_665.className=_65f.explodeClassName;
}
with(_665.style){
position="absolute";
display="none";
var _666=h.getStyle(_65e,"background-color");
backgroundColor="transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_665);
with(_65f.style){
visibility="hidden";
display="block";
}
var _667=h.toCoordinateObject(_65f,true);
with(_65f.style){
display="none";
visibility="visible";
}
var _668={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_668[type]={start:_664[type],end:_667[type]};
});
var anim=new dojo.lfx.propertyAnimation(_665,_668,_660,_661,{"beforeBegin":function(){
h.setDisplay(_665,"block");
},"onEnd":function(){
h.setDisplay(_65f,"block");
_665.parentNode.removeChild(_665);
}});
if(_662){
anim.connect("onEnd",function(){
_662(_65f,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_66b,end,_66d,_66e,_66f){
var h=dojo.html;
_66b=dojo.byId(_66b);
end=dojo.byId(end);
var _671=dojo.html.toCoordinateObject(_66b,true);
var _672=dojo.html.toCoordinateObject(end,true);
var _673=document.createElement("div");
dojo.html.copyStyle(_673,_66b);
if(_66b.explodeClassName){
_673.className=_66b.explodeClassName;
}
dojo.html.setOpacity(_673,0.3);
with(_673.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_66b,"background-color").toLowerCase();
}
dojo.body().appendChild(_673);
var _674={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_674[type]={start:_671[type],end:_672[type]};
});
var anim=new dojo.lfx.propertyAnimation(_673,_674,_66d,_66e,{"beforeBegin":function(){
dojo.html.hide(_66b);
dojo.html.show(_673);
},"onEnd":function(){
_673.parentNode.removeChild(_673);
}});
if(_66f){
anim.connect("onEnd",function(){
_66f(_66b,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_677,_678,_679,_67a,_67b){
_677=dojo.lfx.html._byId(_677);
var _67c=[];
dojo.lang.forEach(_677,function(node){
var _67e=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _680=dojo.html.getStyle(node,"background-image");
var _681=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_67e.length>3){
_67e.pop();
}
var rgb=new dojo.gfx.color.Color(_678);
var _683=new dojo.gfx.color.Color(_67e);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_683}},_679,_67a,{"beforeBegin":function(){
if(_680){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_680){
node.style.backgroundImage=_680;
}
if(_681){
node.style.backgroundColor="transparent";
}
if(_67b){
_67b(node,anim);
}
}});
_67c.push(anim);
});
return dojo.lfx.combine(_67c);
};
dojo.lfx.html.unhighlight=function(_685,_686,_687,_688,_689){
_685=dojo.lfx.html._byId(_685);
var _68a=[];
dojo.lang.forEach(_685,function(node){
var _68c=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_686);
var _68e=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_68c,end:rgb}},_687,_688,{"beforeBegin":function(){
if(_68e){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_68c.toRgb().join(",")+")";
},"onEnd":function(){
if(_689){
_689(node,anim);
}
}});
_68a.push(anim);
});
return dojo.lfx.combine(_68a);
};
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 _690=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);
if(this.dragClass){
_690.dragClass=this.dragClass;
}
if(this.constrainToContainer){
_690.constrainTo(this.constrainingContainer||this.domNode.parentNode);
}
return _690;
},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(_693){
this.constrainToContainer=true;
if(_693){
this.constrainingContainer=_693;
}
},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 _69d=doc.createElement("table");
if(isTr){
var _69e=doc.createElement("tbody");
_69d.appendChild(_69e);
_69e.appendChild(node);
}else{
_69d.appendChild(node);
}
var _69f=((isTr)?this.domNode:this.domNode.firstChild);
var _6a0=((isTr)?node:node.firstChild);
var _6a1=tdp.childNodes;
var _6a2=_6a0.childNodes;
for(var i=0;i<_6a1.length;i++){
if((_6a2[i])&&(_6a2[i].style)){
_6a2[i].style.width=dojo.html.getContentBox(_6a1[i]).width+"px";
}
}
node=_69d;
}
if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){
with(node.style){
top="0px";
left="0px";
}
var _6a4=document.createElement("div");
_6a4.appendChild(node);
this.bgIframe=new dojo.html.BackgroundIframe(_6a4);
_6a4.appendChild(this.bgIframe.iframe);
node=_6a4;
}
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 _6a6=dojo.html.getViewport();
var _6a7=_6a6.width;
var _6a8=_6a6.height;
var _6a9=dojo.html.getScroll().offset;
var x=_6a9.x;
var y=_6a9.y;
}else{
var _6ac=dojo.html.getContentBox(this.constrainingContainer);
_6a7=_6ac.width;
_6a8=_6ac.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+_6a7-mb.width,maxY:y+_6a8-mb.height};
},updateDragOffset:function(){
var _6ae=dojo.html.getScroll().offset;
if(_6ae.y!=this.scrollOffset.y){
var diff=_6ae.y-this.scrollOffset.y;
this.dragOffset.y+=diff;
this.scrollOffset.y=_6ae.y;
}
if(_6ae.x!=this.scrollOffset.x){
var diff=_6ae.x-this.scrollOffset.x;
this.dragOffset.x+=diff;
this.scrollOffset.x=_6ae.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 _6b6=dojo.html.getAbsolutePosition(this.dragClone,true);
var _6b7={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1};
var anim=dojo.lfx.slideTo(this.dragClone,_6b7,300);
var _6b9=this;
dojo.event.connect(anim,"onEnd",function(e){
dojo.html.removeNode(_6b9.dragClone);
_6b9.dragClone=null;
});
anim.play();
break;
}
dojo.event.topic.publish("dragEnd",{source:this});
},constrainTo:function(_6bb){
this.constrainToContainer=true;
if(_6bb){
this.constrainingContainer=_6bb;
}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,_6c0;i<this.domNode.childNodes.length;i++){
_6c0=this.domNode.childNodes[i];
if(_6c0.nodeType!=dojo.html.ELEMENT_NODE){
continue;
}
var pos=dojo.html.getAbsolutePosition(_6c0,true);
var _6c2=dojo.html.getBorderBox(_6c0);
this.childBoxes.push({top:pos.y,bottom:pos.y+_6c2.height,left:pos.x,right:pos.x+_6c2.width,height:_6c2.height,width:_6c2.width,node:_6c0});
}
return true;
},_getNodeUnderMouse:function(e){
for(var i=0,_6c5;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,_6c7){
var i=this._getNodeUnderMouse(e);
if(!this.dropIndicator){
this.createDropIndicator();
}
var _6c9=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;
var hide=false;
if(i<0){
if(this.childBoxes.length){
var _6cb=(dojo.html.gravity(this.childBoxes[0].node,e)&_6c9);
if(_6cb){
hide=true;
}
}else{
var _6cb=true;
}
}else{
var _6cc=this.childBoxes[i];
var _6cb=(dojo.html.gravity(_6cc.node,e)&_6c9);
if(_6cc.node===_6c7[0].dragSource.domNode){
hide=true;
}else{
var _6cd=_6cb?(i>0?this.childBoxes[i-1]:_6cc):(i<this.childBoxes.length-1?this.childBoxes[i+1]:_6cc);
if(_6cd.node===_6c7[0].dragSource.domNode){
hide=true;
}
}
}
if(hide){
this.dropIndicator.style.display="none";
return;
}else{
this.dropIndicator.style.display="";
}
this.placeIndicator(e,_6c7,i,_6cb);
if(!dojo.html.hasParent(this.dropIndicator)){
dojo.body().appendChild(this.dropIndicator);
}
},placeIndicator:function(e,_6cf,_6d0,_6d1){
var _6d2=this.vertical?"left":"top";
var _6d3;
if(_6d0<0){
if(this.childBoxes.length){
_6d3=_6d1?this.childBoxes[0]:this.childBoxes[this.childBoxes.length-1];
}else{
this.dropIndicator.style[_6d2]=dojo.html.getAbsolutePosition(this.domNode,true)[this.vertical?"x":"y"]+"px";
}
}else{
_6d3=this.childBoxes[_6d0];
}
if(_6d3){
this.dropIndicator.style[_6d2]=(_6d1?_6d3[_6d2]:_6d3[this.vertical?"right":"bottom"])+"px";
if(this.vertical){
this.dropIndicator.style.height=_6d3.height+"px";
this.dropIndicator.style.top=_6d3.top+"px";
}else{
this.dropIndicator.style.width=_6d3.width+"px";
this.dropIndicator.style.left=_6d3.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 _6d7=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)&_6d7){
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 _6d8=this.childBoxes[i];
if(dojo.html.gravity(_6d8.node,e)&_6d7){
return this.insert(e,_6d8.node,"before");
}else{
return this.insert(e,_6d8.node,"after");
}
},insert:function(e,_6da,_6db){
var node=e.dragObject.domNode;
if(_6db=="before"){
return dojo.html.insertBefore(node,_6da);
}else{
if(_6db=="after"){
return dojo.html.insertAfter(node,_6da);
}else{
if(_6db=="append"){
_6da.appendChild(node);
return true;
}
}
}
return false;
}},function(node,_6de){
if(arguments.length==0){
return;
}
this.domNode=dojo.byId(node);
dojo.dnd.DropTarget.call(this);
if(_6de&&dojo.lang.isString(_6de)){
_6de=[_6de];
}
this.acceptedTypes=_6de||[];
dojo.dnd.dragManager.registerDropTarget(this);
});
dojo.provide("dojo.dnd.*");
dojo.provide("dojo.experimental");
dojo.experimental=function(_6df,_6e0){
var _6e1="EXPERIMENTAL: "+_6df;
_6e1+=" -- Not yet ready for use.  APIs subject to change without notice.";
if(_6e0){
_6e1+=" "+_6e0;
}
dojo.debug(_6e1);
};
dojo.provide("dojo.i18n.common");
dojo.i18n.getLocalization=function(_6e2,_6e3,_6e4){
dojo.hostenv.preloadLocalizations();
_6e4=dojo.hostenv.normalizeLocale(_6e4);
var _6e5=_6e4.split("-");
var _6e6=[_6e2,"nls",_6e3].join(".");
var _6e7=dojo.hostenv.findModule(_6e6,true);
var _6e8;
for(var i=_6e5.length;i>0;i--){
var loc=_6e5.slice(0,i).join("_");
if(_6e7[loc]){
_6e8=_6e7[loc];
break;
}
}
if(!_6e8){
_6e8=_6e7.ROOT;
}
if(_6e8){
var _6eb=function(){
};
_6eb.prototype=_6e8;
return new _6eb();
}
dojo.raise("Bundle not found: "+_6e3+" in "+_6e2+" , locale="+_6e4);
};
dojo.i18n.isLTR=function(_6ec){
var lang=dojo.hostenv.normalizeLocale(_6ec).split("-")[0];
var RTL={ar:true,fa:true,he:true,ur:true,yi:true};
return !RTL[lang];
};
dojo.provide("dojo.regexp");
dojo.evalObjPath("dojo.regexp.us",true);
dojo.regexp.tld=function(_6ef){
_6ef=(typeof _6ef=="object")?_6ef:{};
if(typeof _6ef.allowCC!="boolean"){
_6ef.allowCC=true;
}
if(typeof _6ef.allowInfra!="boolean"){
_6ef.allowInfra=true;
}
if(typeof _6ef.allowGeneric!="boolean"){
_6ef.allowGeneric=true;
}
var _6f0="arpa";
var _6f1="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(_6ef.allowInfra){
a.push(_6f0);
}
if(_6ef.allowGeneric){
a.push(_6f1);
}
if(_6ef.allowCC){
a.push(ccRE);
}
var _6f4="";
if(a.length>0){
_6f4="("+a.join("|")+")";
}
return _6f4;
};
dojo.regexp.ipAddress=function(_6f5){
_6f5=(typeof _6f5=="object")?_6f5:{};
if(typeof _6f5.allowDottedDecimal!="boolean"){
_6f5.allowDottedDecimal=true;
}
if(typeof _6f5.allowDottedHex!="boolean"){
_6f5.allowDottedHex=true;
}
if(typeof _6f5.allowDottedOctal!="boolean"){
_6f5.allowDottedOctal=true;
}
if(typeof _6f5.allowDecimal!="boolean"){
_6f5.allowDecimal=true;
}
if(typeof _6f5.allowHex!="boolean"){
_6f5.allowHex=true;
}
if(typeof _6f5.allowIPv6!="boolean"){
_6f5.allowIPv6=true;
}
if(typeof _6f5.allowHybrid!="boolean"){
_6f5.allowHybrid=true;
}
var _6f6="((\\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 _6f7="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
var _6f8="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
var _6f9="(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 _6fa="0[xX]0*[\\da-fA-F]{1,8}";
var _6fb="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
var _6fc="([\\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(_6f5.allowDottedDecimal){
a.push(_6f6);
}
if(_6f5.allowDottedHex){
a.push(_6f7);
}
if(_6f5.allowDottedOctal){
a.push(_6f8);
}
if(_6f5.allowDecimal){
a.push(_6f9);
}
if(_6f5.allowHex){
a.push(_6fa);
}
if(_6f5.allowIPv6){
a.push(_6fb);
}
if(_6f5.allowHybrid){
a.push(_6fc);
}
var _6fe="";
if(a.length>0){
_6fe="("+a.join("|")+")";
}
return _6fe;
};
dojo.regexp.host=function(_6ff){
_6ff=(typeof _6ff=="object")?_6ff:{};
if(typeof _6ff.allowIP!="boolean"){
_6ff.allowIP=true;
}
if(typeof _6ff.allowLocal!="boolean"){
_6ff.allowLocal=false;
}
if(typeof _6ff.allowPort!="boolean"){
_6ff.allowPort=true;
}
var _700="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(_6ff);
var _701=(_6ff.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";
var _702=_700;
if(_6ff.allowIP){
_702+="|"+dojo.regexp.ipAddress(_6ff);
}
if(_6ff.allowLocal){
_702+="|localhost";
}
return "("+_702+")"+_701;
};
dojo.regexp.url=function(_703){
_703=(typeof _703=="object")?_703:{};
if(typeof _703.scheme=="undefined"){
_703.scheme=[true,false];
}
var _704=dojo.regexp.buildGroupRE(_703.scheme,function(q){
if(q){
return "(https?|ftps?)\\://";
}
return "";
});
var _706="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";
return _704+dojo.regexp.host(_703)+_706;
};
dojo.regexp.emailAddress=function(_707){
_707=(typeof _707=="object")?_707:{};
if(typeof _707.allowCruft!="boolean"){
_707.allowCruft=false;
}
_707.allowPort=false;
var _708="([\\da-z]+[-._+&'])*[\\da-z]+";
var _709=_708+"@"+dojo.regexp.host(_707);
if(_707.allowCruft){
_709="<?(mailto\\:)?"+_709+">?";
}
return _709;
};
dojo.regexp.emailAddressList=function(_70a){
_70a=(typeof _70a=="object")?_70a:{};
if(typeof _70a.listSeparator!="string"){
_70a.listSeparator="\\s;,";
}
var _70b=dojo.regexp.emailAddress(_70a);
var _70c="("+_70b+"\\s*["+_70a.listSeparator+"]\\s*)*"+_70b+"\\s*["+_70a.listSeparator+"]?\\s*";
return _70c;
};
dojo.regexp.integer=function(_70d){
_70d=(typeof _70d=="object")?_70d:{};
if(typeof _70d.signed=="undefined"){
_70d.signed=[true,false];
}
if(typeof _70d.separator=="undefined"){
_70d.separator="";
}else{
if(typeof _70d.groupSize=="undefined"){
_70d.groupSize=3;
}
}
var _70e=dojo.regexp.buildGroupRE(_70d.signed,function(q){
return q?"[-+]":"";
});
var _710=dojo.regexp.buildGroupRE(_70d.separator,function(sep){
if(sep==""){
return "(0|[1-9]\\d*)";
}
var grp=_70d.groupSize,grp2=_70d.groupSize2;
if(typeof grp2!="undefined"){
var _714="(0|[1-9]\\d{0,"+(grp2-1)+"}(["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"("+_714+"|(0|[1-9]\\d{0,"+(grp-1)+"}))":_714;
}
return "(0|[1-9]\\d{0,"+(grp-1)+"}(["+sep+"]\\d{"+grp+"})*)";
});
return _70e+_710;
};
dojo.regexp.realNumber=function(_715){
_715=(typeof _715=="object")?_715:{};
if(typeof _715.places!="number"){
_715.places=Infinity;
}
if(typeof _715.decimal!="string"){
_715.decimal=".";
}
if(typeof _715.fractional=="undefined"){
_715.fractional=[true,false];
}
if(typeof _715.exponent=="undefined"){
_715.exponent=[true,false];
}
if(typeof _715.eSigned=="undefined"){
_715.eSigned=[true,false];
}
var _716=dojo.regexp.integer(_715);
var _717=dojo.regexp.buildGroupRE(_715.fractional,function(q){
var re="";
if(q&&(_715.places>0)){
re="\\"+_715.decimal;
if(_715.places==Infinity){
re="("+re+"\\d+)?";
}else{
re=re+"\\d{"+_715.places+"}";
}
}
return re;
});
var _71a=dojo.regexp.buildGroupRE(_715.exponent,function(q){
if(q){
return "([eE]"+dojo.regexp.integer({signed:_715.eSigned})+")";
}
return "";
});
return _716+_717+_71a;
};
dojo.regexp.currency=function(_71c){
_71c=(typeof _71c=="object")?_71c:{};
if(typeof _71c.signed=="undefined"){
_71c.signed=[true,false];
}
if(typeof _71c.symbol=="undefined"){
_71c.symbol="$";
}
if(typeof _71c.placement!="string"){
_71c.placement="before";
}
if(typeof _71c.signPlacement!="string"){
_71c.signPlacement="before";
}
if(typeof _71c.separator=="undefined"){
_71c.separator=",";
}
if(typeof _71c.fractional=="undefined"&&typeof _71c.cents!="undefined"){
dojo.deprecated("dojo.regexp.currency: flags.cents","use flags.fractional instead","0.5");
_71c.fractional=_71c.cents;
}
if(typeof _71c.decimal!="string"){
_71c.decimal=".";
}
var _71d=dojo.regexp.buildGroupRE(_71c.signed,function(q){
if(q){
return "[-+]";
}
return "";
});
var _71f=dojo.regexp.buildGroupRE(_71c.symbol,function(_720){
return "\\s?"+_720.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?";
});
switch(_71c.signPlacement){
case "before":
_71f=_71d+_71f;
break;
case "after":
_71f=_71f+_71d;
break;
}
var _721=_71c;
_721.signed=false;
_721.exponent=false;
var _722=dojo.regexp.realNumber(_721);
var _723;
switch(_71c.placement){
case "before":
_723=_71f+_722;
break;
case "after":
_723=_722+_71f;
break;
}
switch(_71c.signPlacement){
case "around":
_723="("+_723+"|"+"\\("+_723+"\\)"+")";
break;
case "begin":
_723=_71d+_723;
break;
case "end":
_723=_723+_71d;
break;
}
return _723;
};
dojo.regexp.us.state=function(_724){
_724=(typeof _724=="object")?_724:{};
if(typeof _724.allowTerritories!="boolean"){
_724.allowTerritories=true;
}
if(typeof _724.allowMilitary!="boolean"){
_724.allowMilitary=true;
}
var _725="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 _726="AS|FM|GU|MH|MP|PW|PR|VI";
var _727="AA|AE|AP";
if(_724.allowTerritories){
_725+="|"+_726;
}
if(_724.allowMilitary){
_725+="|"+_727;
}
return "("+_725+")";
};
dojo.regexp.time=function(_728){
dojo.deprecated("dojo.regexp.time","Use dojo.date.parse instead","0.5");
_728=(typeof _728=="object")?_728:{};
if(typeof _728.format=="undefined"){
_728.format="h:mm:ss t";
}
if(typeof _728.amSymbol!="string"){
_728.amSymbol="AM";
}
if(typeof _728.pmSymbol!="string"){
_728.pmSymbol="PM";
}
var _729=function(_72a){
_72a=_72a.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var amRE=_728.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var pmRE=_728.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_72a=_72a.replace("hh","(0[1-9]|1[0-2])");
_72a=_72a.replace("h","([1-9]|1[0-2])");
_72a=_72a.replace("HH","([01][0-9]|2[0-3])");
_72a=_72a.replace("H","([0-9]|1[0-9]|2[0-3])");
_72a=_72a.replace("mm","([0-5][0-9])");
_72a=_72a.replace("m","([1-5][0-9]|[0-9])");
_72a=_72a.replace("ss","([0-5][0-9])");
_72a=_72a.replace("s","([1-5][0-9]|[0-9])");
_72a=_72a.replace("t","\\s?("+amRE+"|"+pmRE+")\\s?");
return _72a;
};
return dojo.regexp.buildGroupRE(_728.format,_729);
};
dojo.regexp.numberFormat=function(_72d){
_72d=(typeof _72d=="object")?_72d:{};
if(typeof _72d.format=="undefined"){
_72d.format="###-###-####";
}
var _72e=function(_72f){
_72f=_72f.replace(/([.$*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_72f=_72f.replace(/\?/g,"\\d?");
_72f=_72f.replace(/#/g,"\\d");
return _72f;
};
return dojo.regexp.buildGroupRE(_72d.format,_72e);
};
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(_734,_735,_736){
_735=(typeof _735=="object")?_735:{};
var _737=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_736);
if(typeof _735.separator=="undefined"){
_735.separator=_737[1];
}
if(typeof _735.decimal=="undefined"){
_735.decimal=_737[2];
}
if(typeof _735.groupSize=="undefined"){
_735.groupSize=_737[3];
}
if(typeof _735.groupSize2=="undefined"){
_735.groupSize2=_737[4];
}
if(typeof _735.round=="undefined"){
_735.round=true;
}
if(typeof _735.signed=="undefined"){
_735.signed=true;
}
var _738=(_735.signed&&(_734<0))?"-":"";
_734=Math.abs(_734);
var _739=String((((_735.places>0)||!_735.round)?Math.floor:Math.round)(_734));
function splitSubstrings(str,_73b){
for(var subs=[];str.length>=_73b;str=str.substr(0,str.length-_73b)){
subs.push(str.substr(-_73b));
}
if(str.length>0){
subs.push(str);
}
return subs.reverse();
}
if(_735.groupSize2&&(_739.length>_735.groupSize)){
var _73d=splitSubstrings(_739.substr(0,_739.length-_735.groupSize),_735.groupSize2);
_73d.push(_739.substr(-_735.groupSize));
_738=_738+_73d.join(_735.separator);
}else{
if(_735.groupSize){
_738=_738+splitSubstrings(_739,_735.groupSize).join(_735.separator);
}else{
_738=_738+_739;
}
}
if(_735.places>0){
var _73e=_734-Math.floor(_734);
_73e=(_735.round?Math.round:Math.floor)(_73e*Math.pow(10,_735.places));
_738=_738+_735.decimal+_73e;
}
return _738;
};
dojo.i18n.number.parse=function(_73f,_740,_741){
_741=(typeof _741=="object")?_741:{};
var _742=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_740);
if(typeof _741.separator=="undefined"){
_741.separator=_742[1];
}
if(typeof _741.decimal=="undefined"){
_741.decimal=_742[2];
}
if(typeof _741.groupSize=="undefined"){
_741.groupSize=_742[3];
}
if(typeof _741.groupSize2=="undefined"){
_741.groupSize2=_742[4];
}
if(typeof _741.validate=="undefined"){
_741.validate=true;
}
if(_741.validate&&!dojo.i18n.number.isReal(_73f,_740,_741)){
return Number.NaN;
}
var _743=_73f.split(_741.decimal);
if(_743.length>2){
return Number.NaN;
}
var _744=Number(_743[0].replace(new RegExp("\\"+_741.separator,"g"),""));
var _745=(_743.length==1)?0:Number(_743[1])/Math.pow(10,String(_743[1]).length);
return _744+_745;
};
dojo.i18n.number.isInteger=function(_746,_747,_748){
_748=(typeof _748=="object")?_748:{};
var _749=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_747);
if(typeof _748.separator=="undefined"){
_748.separator=_749[1];
}else{
if(dojo.lang.isArray(_748.separator)&&_748.separator.length===0){
_748.separator=[_749[1],""];
}
}
if(typeof _748.groupSize=="undefined"){
_748.groupSize=_749[3];
}
if(typeof _748.groupSize2=="undefined"){
_748.groupSize2=_749[4];
}
var re=new RegExp("^"+dojo.regexp.integer(_748)+"$");
return re.test(_746);
};
dojo.i18n.number.isReal=function(_74b,_74c,_74d){
_74d=(typeof _74d=="object")?_74d:{};
var _74e=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_74c);
if(typeof _74d.separator=="undefined"){
_74d.separator=_74e[1];
}else{
if(dojo.lang.isArray(_74d.separator)&&_74d.separator.length===0){
_74d.separator=[_74e[1],""];
}
}
if(typeof _74d.decimal=="undefined"){
_74d.decimal=_74e[2];
}
if(typeof _74d.groupSize=="undefined"){
_74d.groupSize=_74e[3];
}
if(typeof _74d.groupSize2=="undefined"){
_74d.groupSize2=_74e[4];
}
var re=new RegExp("^"+dojo.regexp.realNumber(_74d)+"$");
return re.test(_74b);
};
(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(_750,_751){
_751=dojo.hostenv.normalizeLocale(_751);
var data=_750[_751];
if(typeof data=="undefined"){
data=_750["*"];
}
return data;
};
dojo.provide("dojo.i18n.currency");
dojo.experimental("dojo.i18n.currency");
dojo.i18n.currency.format=function(_753,iso,_755,_756){
_755=(typeof _755=="object")?_755:{};
var _757=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_756);
if(typeof _755.places=="undefined"){
_755.places=_757.places;
}
if(typeof _755.places=="undefined"){
_755.places=2;
}
_755.signed=false;
var _758=dojo.i18n.number.format(_753,_755,_756);
var sym=_757.symbol;
if(_757.adjSpace=="symbol"){
if(_757.placement=="after"){
sym=" "+sym;
}else{
sym=sym+" ";
}
}
if(_753<0){
if(_757.signPlacement=="before"){
sym="-"+sym;
}else{
if(_757.signPlacement=="after"){
sym=sym+"-";
}
}
}
var spc=(_757.adjSpace=="number")?" ":"";
if(_757.placement=="after"){
_758=_758+spc+sym;
}else{
_758=sym+spc+_758;
}
if(_753<0){
if(_757.signPlacement=="around"){
_758="("+_758+")";
}else{
if(_757.signPlacement=="end"){
_758=_758+"-";
}else{
if(!_757.signPlacement||_757.signPlacement=="begin"){
_758="-"+_758;
}
}
}
}
return _758;
};
dojo.i18n.currency.parse=function(_75b,iso,_75d,_75e){
if(typeof _75e.validate=="undefined"){
_75e.validate=true;
}
if(_75e.validate&&!dojo.i18n.number.isCurrency(_75b,iso,_75d,_75e)){
return Number.NaN;
}
var sign=(_75b.indexOf("-")!=-1);
var abs=abs.replace(/\-/,"");
var _761=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_75d);
abs=abs.replace(new RegExp("\\"+_761.symbol),"");
var _762=dojo.i18n.number.parse(abs,_75d,_75e);
if(sign){
_762=_762*-1;
}
return _762;
};
dojo.i18n.currency.isCurrency=function(_763,iso,_765,_766){
_766=(typeof _766=="object")?_766:{};
var _767=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_765);
if(typeof _766.separator=="undefined"){
_766.separator=_767[0];
}else{
if(dojo.lang.isArray(_766.separator)&&_766.separator.length==0){
_766.separator=[_767[0],""];
}
}
if(typeof _766.decimal=="undefined"){
_766.decimal=_767[2];
}
if(typeof _766.groupSize=="undefined"){
_766.groupSize=_767[3];
}
if(typeof _766.groupSize2=="undefined"){
_766.groupSize2=_767[4];
}
var _768=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_765);
if(typeof _766.places=="undefined"){
_766.places=_768.places;
}
if(typeof _766.places=="undefined"){
_766.places=2;
}
if(typeof _766.symbol=="undefined"){
_766.symbol=_768.symbol;
}else{
if(dojo.lang.isArray(_766.symbol)&&_766.symbol.length==0){
_766.symbol=[_768.symbol,""];
}
}
if(typeof _766.placement=="undefined"){
_766.placement=_768.placement;
}
var re=new RegExp("^"+dojo.regexp.currency(_766)+"$");
return re.test(_763);
};
dojo.i18n.currency._mapToLocalizedFormatData=function(_76a,iso,_76c){
var _76d=dojo.i18n.currency.FORMAT_TABLE[iso];
if(!dojo.lang.isArray(_76d)){
return _76d;
}
return dojo.i18n.number._mapToLocalizedFormatData(_76d[0],_76c);
};
(function(){
var _76e={symbol:"\u062c",placement:"after",htmlSymbol:"?"};
var euro={symbol:"\u20ac",placement:"before",adjSpace:"symbol",htmlSymbol:"&euro;"};
var _770={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:_770,BHD:_76e,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:_770,DKK:{symbol:"kr.",adjSpace:"symbol",signPlacement:"after"},DOP:{symbol:"$"},DZD:_76e,ECS:{symbol:"$",signPlacement:"after"},EGP:_76e,ESP:_770,EUR:euro,FIM:_770,FRF:_770,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:_76e,JPY:{symbol:"\xa5",places:0,htmlSymbol:"&yen;"},KRW:{symbol:"\u20a9",places:0,htmlSymbol:"?"},KWD:_76e,LBP:_76e,LUF:_770,MAD:_76e,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:_76e,PAB:{symbol:"B/",adjSpace:"symbol",signPlacement:"after"},PEN:{symbol:"S/",signPlacement:"after"},PLN:{symbol:"z",placement:"after"},PTE:_770,PYG:{symbol:"Gs.",signPlacement:"after"},QAR:_76e,RUR:{symbol:"rub.",placement:"after"},SAR:_76e,SEK:{symbol:"kr",placement:"after",adjSpace:"symbol"},SGD:{symbol:"$"},SVC:{symbol:"\u20a1",signPlacement:"after",adjSpace:"symbol"},SYP:_76e,TND:_76e,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:_76e,ZAR:{symbol:"R",signPlacement:"around"}};
})();
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,_777,_778){
var out="";
for(var i=0;i<_777;i++){
out+=str;
if(_778&&i<_777-1){
out+=_778;
}
}
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,_787,_788,_789){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_787){
this.mimetype=_787;
}
if(_788){
this.transport=_788;
}
if(arguments.length>=4){
this.changeUrl=_789;
}
}
};
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,_78c,_78d){
},error:function(type,_78f,_790,_791){
},timeout:function(type,_793,_794,_795){
},handle:function(type,data,_798,_799){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_79a){
if(_79a["url"]){
_79a.url=_79a.url.toString();
}
if(_79a["formNode"]){
_79a.formNode=dojo.byId(_79a.formNode);
}
if(!_79a["method"]&&_79a["formNode"]&&_79a["formNode"].method){
_79a.method=_79a["formNode"].method;
}
if(!_79a["handle"]&&_79a["handler"]){
_79a.handle=_79a.handler;
}
if(!_79a["load"]&&_79a["loaded"]){
_79a.load=_79a.loaded;
}
if(!_79a["changeUrl"]&&_79a["changeURL"]){
_79a.changeUrl=_79a.changeURL;
}
_79a.encoding=dojo.lang.firstValued(_79a["encoding"],djConfig["bindEncoding"],"");
_79a.sendTransport=dojo.lang.firstValued(_79a["sendTransport"],djConfig["ioSendTransport"],false);
var _79b=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_79a[fn]&&_79b(_79a[fn])){
continue;
}
if(_79a["handle"]&&_79b(_79a["handle"])){
_79a[fn]=_79a.handle;
}
}
dojo.lang.mixin(this,_79a);
}});
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(_7a2){
if(!(_7a2 instanceof dojo.io.Request)){
try{
_7a2=new dojo.io.Request(_7a2);
}
catch(e){
dojo.debug(e);
}
}
var _7a3="";
if(_7a2["transport"]){
_7a3=_7a2["transport"];
if(!this[_7a3]){
dojo.io.sendBindError(_7a2,"No dojo.io.bind() transport with name '"+_7a2["transport"]+"'.");
return _7a2;
}
if(!this[_7a3].canHandle(_7a2)){
dojo.io.sendBindError(_7a2,"dojo.io.bind() transport with name '"+_7a2["transport"]+"' cannot handle this type of request.");
return _7a2;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_7a2))){
_7a3=tmp;
break;
}
}
if(_7a3==""){
dojo.io.sendBindError(_7a2,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _7a2;
}
}
this[_7a3].bind(_7a2);
_7a2.bindSuccess=true;
return _7a2;
};
dojo.io.sendBindError=function(_7a6,_7a7){
if((typeof _7a6.error=="function"||typeof _7a6.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _7a8=new dojo.io.Error(_7a7);
setTimeout(function(){
_7a6[(typeof _7a6.error=="function")?"error":"handle"]("error",_7a8,null,_7a6);
},50);
}else{
dojo.raise(_7a7);
}
};
dojo.io.queueBind=function(_7a9){
if(!(_7a9 instanceof dojo.io.Request)){
try{
_7a9=new dojo.io.Request(_7a9);
}
catch(e){
dojo.debug(e);
}
}
var _7aa=_7a9.load;
_7a9.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_7aa.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _7ac=_7a9.error;
_7a9.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_7ac.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_7a9);
dojo.io._dispatchNextQueueBind();
return _7a9;
};
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,_7af,last){
var enc=/utf/i.test(_7af||"")?encodeURIComponent:dojo.string.encodeAscii;
var _7b2=[];
var _7b3=new Object();
for(var name in map){
var _7b5=function(elt){
var val=enc(name)+"="+enc(elt);
_7b2[(last==name)?"push":"unshift"](val);
};
if(!_7b3[name]){
var _7b8=map[name];
if(dojo.lang.isArray(_7b8)){
dojo.lang.forEach(_7b8,_7b5);
}else{
_7b5(_7b8);
}
}
}
return _7b2.join("&");
};
dojo.io.setIFrameSrc=function(_7b9,src,_7bb){
try{
var r=dojo.render.html;
if(!_7bb){
if(r.safari){
_7b9.location=src;
}else{
frames[_7b9.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_7b9.contentWindow.document;
}else{
if(r.safari){
idoc=_7b9.document;
}else{
idoc=_7b9.contentWindow;
}
}
if(!idoc){
_7b9.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(_7be,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _7be.replace(/\%\{(\w+)\}/g,function(_7c1,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 _7c4=str.split(" ");
for(var i=0;i<_7c4.length;i++){
_7c4[i]=_7c4[i].charAt(0).toUpperCase()+_7c4[i].substring(1);
}
return _7c4.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 _7c9=escape(str);
var _7ca,re=/%u([0-9A-F]{4})/i;
while((_7ca=_7c9.match(re))){
var num=Number("0x"+_7ca[1]);
var _7cd=escape("&#"+num+";");
ret+=_7c9.substring(0,_7ca.index)+_7cd;
_7c9=_7c9.substring(_7ca.index+_7ca[0].length);
}
ret+=_7c9.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,_7d2){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_7d2){
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,_7db){
if(_7db){
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,_7df,_7e0){
if(_7e0){
str=str.toLowerCase();
_7df=_7df.toLowerCase();
}
return str.indexOf(_7df)==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,_7e6){
if(_7e6=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_7e6=="\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,_7e8){
var _7e9=[];
for(var i=0,_7eb=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_7e8){
_7e9.push(str.substring(_7eb,i));
_7eb=i+1;
}
}
_7e9.push(str.substr(_7eb));
return _7e9;
};
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 _7f0=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_7f2){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_7f0.apply(this,[_7f2]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _7f3=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_7f5){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_7f3){
_7f3.apply(this,[_7f5]);
}
};
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,_7f8){
if(!dojo.render.html.opera){
var _7f9=this._getUrlQuery(_7f8.href);
if(_7f9==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_7f9==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_7f9==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _7fa=this.historyStack.pop();
if(!_7fa){
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(_7fa);
},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 _801=url.split("?");
if(_801.length<2){
return null;
}else{
return _801[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 _804=false;
var _805=node.getElementsByTagName("input");
dojo.lang.forEach(_805,function(_806){
if(_804){
return;
}
if(_806.getAttribute("type")=="file"){
_804=true;
}
});
return _804;
};
dojo.io.formHasFile=function(_807){
return dojo.io.checkChildrenForFile(_807);
};
dojo.io.updateNode=function(node,_809){
node=dojo.byId(node);
var args=_809;
if(dojo.lang.isString(_809)){
args={url:_809};
}
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(_810,_811,_812){
if((!_810)||(!_810.tagName)||(!_810.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_812){
_812=dojo.io.formFilter;
}
var enc=/utf/i.test(_811||"")?encodeURIComponent:dojo.string.encodeAscii;
var _814=[];
for(var i=0;i<_810.elements.length;i++){
var elm=_810.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_812(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){
_814.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_814.push(name+"="+enc(elm.value));
}
}else{
_814.push(name+"="+enc(elm.value));
}
}
}
var _81a=_810.getElementsByTagName("input");
for(var i=0;i<_81a.length;i++){
var _81b=_81a[i];
if(_81b.type.toLowerCase()=="image"&&_81b.form==_810&&_812(_81b)){
var name=enc(_81b.name);
_814.push(name+"="+enc(_81b.value));
_814.push(name+".x=0");
_814.push(name+".y=0");
}
}
return _814.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 _821=form.getElementsByTagName("input");
for(var i=0;i<_821.length;i++){
var _822=_821[i];
if(_822.type.toLowerCase()=="image"&&_822.form==form){
this.connect(_822,"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 _829=false;
if(node.disabled||!node.name){
_829=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_829=node==this.clickedButton;
}else{
_829=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _829;
},connect:function(_82a,_82b,_82c){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_82a,_82b,this,_82c);
}else{
var fcn=dojo.lang.hitch(this,_82c);
_82a[_82b]=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 _82f=this;
var _830={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_832,_833){
return url+"|"+_832+"|"+_833.toLowerCase();
}
function addToCache(url,_835,_836,http){
_830[getCacheKey(url,_835,_836)]=http;
}
function getFromCache(url,_839,_83a){
return _830[getCacheKey(url,_839,_83a)];
}
this.clearCache=function(){
_830={};
};
function doLoad(_83b,http,url,_83e,_83f){
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(_83b.method.toLowerCase()=="head"){
var _841=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _841;
};
var _842=_841.split(/[\r\n]+/g);
for(var i=0;i<_842.length;i++){
var pair=_842[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_83b.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_83b.mimetype=="text/json"||_83b.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_83b.mimetype=="application/xml")||(_83b.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(_83f){
addToCache(url,_83e,_83b.method,http);
}
_83b[(typeof _83b.load=="function")?"load":"handle"]("load",ret,http,_83b);
}else{
var _845=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_83b[(typeof _83b.error=="function")?"error":"handle"]("error",_845,http,_83b);
}
}
function setHeaders(http,_847){
if(_847["headers"]){
for(var _848 in _847["headers"]){
if(_848.toLowerCase()=="content-type"&&!_847["contentType"]){
_847["contentType"]=_847["headers"][_848];
}else{
http.setRequestHeader(_848,_847["headers"][_848]);
}
}
}
}
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&&!_82f._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 _84c=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_84c,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 _84d=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_84e){
return _84d&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_84e["mimetype"].toLowerCase()||""))&&!(_84e["formNode"]&&dojo.io.formHasFile(_84e["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_84f){
if(!_84f["url"]){
if(!_84f["formNode"]&&(_84f["backButton"]||_84f["back"]||_84f["changeUrl"]||_84f["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(_84f);
return true;
}
}
var url=_84f.url;
var _851="";
if(_84f["formNode"]){
var ta=_84f.formNode.getAttribute("action");
if((ta)&&(!_84f["url"])){
url=ta;
}
var tp=_84f.formNode.getAttribute("method");
if((tp)&&(!_84f["method"])){
_84f.method=tp;
}
_851+=dojo.io.encodeForm(_84f.formNode,_84f.encoding,_84f["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_84f["file"]){
_84f.method="post";
}
if(!_84f["method"]){
_84f.method="get";
}
if(_84f.method.toLowerCase()=="get"){
_84f.multipart=false;
}else{
if(_84f["file"]){
_84f.multipart=true;
}else{
if(!_84f["multipart"]){
_84f.multipart=false;
}
}
}
if(_84f["backButton"]||_84f["back"]||_84f["changeUrl"]){
dojo.undo.browser.addToHistory(_84f);
}
var _854=_84f["content"]||{};
if(_84f.sendTransport){
_854["dojo.transport"]="xmlhttp";
}
do{
if(_84f.postContent){
_851=_84f.postContent;
break;
}
if(_854){
_851+=dojo.io.argsFromMap(_854,_84f.encoding);
}
if(_84f.method.toLowerCase()=="get"||!_84f.multipart){
break;
}
var t=[];
if(_851.length){
var q=_851.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(_84f.file){
if(dojo.lang.isArray(_84f.file)){
for(var i=0;i<_84f.file.length;++i){
var o=_84f.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=_84f.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+"--","");
_851=t.join("\r\n");
}
}while(false);
var _85a=_84f["sync"]?false:true;
var _85b=_84f["preventCache"]||(this.preventCache==true&&_84f["preventCache"]!=false);
var _85c=_84f["useCache"]==true||(this.useCache==true&&_84f["useCache"]!=false);
if(!_85b&&_85c){
var _85d=getFromCache(url,_851,_84f.method);
if(_85d){
doLoad(_84f,_85d,url,_851,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_84f);
var _85f=false;
if(_85a){
var _860=this.inFlight.push({"req":_84f,"http":http,"url":url,"query":_851,"useCache":_85c,"startTime":_84f.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_82f._blockAsync=true;
}
if(_84f.method.toLowerCase()=="post"){
if(!_84f.user){
http.open("POST",url,_85a);
}else{
http.open("POST",url,_85a,_84f.user,_84f.password);
}
setHeaders(http,_84f);
http.setRequestHeader("Content-Type",_84f.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_84f.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_851);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_84f,{status:404},url,_851,_85c);
}
}else{
var _861=url;
if(_851!=""){
_861+=(_861.indexOf("?")>-1?"&":"?")+_851;
}
if(_85b){
_861+=(dojo.string.endsWithAny(_861,"?","&")?"":(_861.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_84f.user){
http.open(_84f.method.toUpperCase(),_861,_85a);
}else{
http.open(_84f.method.toUpperCase(),_861,_85a,_84f.user,_84f.password);
}
setHeaders(http,_84f);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_84f,{status:404},url,_851,_85c);
}
}
if(!_85a){
doLoad(_84f,http,url,_851,_85c);
_82f._blockAsync=false;
}
_84f.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,_863,days,path,_866,_867){
var _868=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_868=d.toGMTString();
}
_863=escape(_863);
document.cookie=name+"="+_863+";"+(_868!=-1?" expires="+_868+";":"")+(path?"path="+path:"")+(_866?"; domain="+_866:"")+(_867?"; 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 _86c=document.cookie.substring(idx+name.length+1);
var end=_86c.indexOf(";");
if(end==-1){
end=_86c.length;
}
_86c=_86c.substring(0,end);
_86c=unescape(_86c);
return _86c;
};
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,_873,_874,_875){
if(arguments.length==5){
_875=_873;
_873=null;
_874=null;
}
var _876=[],_877,_878="";
if(!_875){
_877=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_877){
_877={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _877[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_877[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _877){
_876.push(escape(prop)+"="+escape(_877[prop]));
}
_878=_876.join("&");
}
dojo.io.cookie.setCookie(name,_878,days,path,_873,_874);
};
dojo.io.cookie.getObjectCookie=function(name){
var _87b=null,_87c=dojo.io.cookie.getCookie(name);
if(_87c){
_87b={};
var _87d=_87c.split("&");
for(var i=0;i<_87d.length;i++){
var pair=_87d[i].split("=");
var _880=pair[1];
if(isNaN(_880)){
_880=unescape(pair[1]);
}
_87b[unescape(pair[0])]=_880;
}
}
return _87b;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _881=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_881=="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 _883=false;
var _884=node.getElementsByTagName("input");
dojo.lang.forEach(_884,function(_885){
if(_883){
return;
}
if(_885.getAttribute("type")=="file"){
_883=true;
}
});
return _883;
};
dojo.io.formHasFile=function(_886){
return dojo.io.checkChildrenForFile(_886);
};
dojo.io.updateNode=function(node,_888){
node=dojo.byId(node);
var args=_888;
if(dojo.lang.isString(_888)){
args={url:_888};
}
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(_88f,_890,_891){
if((!_88f)||(!_88f.tagName)||(!_88f.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_891){
_891=dojo.io.formFilter;
}
var enc=/utf/i.test(_890||"")?encodeURIComponent:dojo.string.encodeAscii;
var _893=[];
for(var i=0;i<_88f.elements.length;i++){
var elm=_88f.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_891(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){
_893.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_893.push(name+"="+enc(elm.value));
}
}else{
_893.push(name+"="+enc(elm.value));
}
}
}
var _899=_88f.getElementsByTagName("input");
for(var i=0;i<_899.length;i++){
var _89a=_899[i];
if(_89a.type.toLowerCase()=="image"&&_89a.form==_88f&&_891(_89a)){
var name=enc(_89a.name);
_893.push(name+"="+enc(_89a.value));
_893.push(name+".x=0");
_893.push(name+".y=0");
}
}
return _893.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 _8a0=form.getElementsByTagName("input");
for(var i=0;i<_8a0.length;i++){
var _8a1=_8a0[i];
if(_8a1.type.toLowerCase()=="image"&&_8a1.form==form){
this.connect(_8a1,"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 _8a8=false;
if(node.disabled||!node.name){
_8a8=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_8a8=node==this.clickedButton;
}else{
_8a8=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _8a8;
},connect:function(_8a9,_8aa,_8ab){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_8a9,_8aa,this,_8ab);
}else{
var fcn=dojo.lang.hitch(this,_8ab);
_8a9[_8aa]=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 _8ae=this;
var _8af={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_8b1,_8b2){
return url+"|"+_8b1+"|"+_8b2.toLowerCase();
}
function addToCache(url,_8b4,_8b5,http){
_8af[getCacheKey(url,_8b4,_8b5)]=http;
}
function getFromCache(url,_8b8,_8b9){
return _8af[getCacheKey(url,_8b8,_8b9)];
}
this.clearCache=function(){
_8af={};
};
function doLoad(_8ba,http,url,_8bd,_8be){
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(_8ba.method.toLowerCase()=="head"){
var _8c0=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _8c0;
};
var _8c1=_8c0.split(/[\r\n]+/g);
for(var i=0;i<_8c1.length;i++){
var pair=_8c1[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_8ba.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_8ba.mimetype=="text/json"||_8ba.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_8ba.mimetype=="application/xml")||(_8ba.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(_8be){
addToCache(url,_8bd,_8ba.method,http);
}
_8ba[(typeof _8ba.load=="function")?"load":"handle"]("load",ret,http,_8ba);
}else{
var _8c4=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_8ba[(typeof _8ba.error=="function")?"error":"handle"]("error",_8c4,http,_8ba);
}
}
function setHeaders(http,_8c6){
if(_8c6["headers"]){
for(var _8c7 in _8c6["headers"]){
if(_8c7.toLowerCase()=="content-type"&&!_8c6["contentType"]){
_8c6["contentType"]=_8c6["headers"][_8c7];
}else{
http.setRequestHeader(_8c7,_8c6["headers"][_8c7]);
}
}
}
}
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&&!_8ae._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 _8cb=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_8cb,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 _8cc=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_8cd){
return _8cc&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_8cd["mimetype"].toLowerCase()||""))&&!(_8cd["formNode"]&&dojo.io.formHasFile(_8cd["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_8ce){
if(!_8ce["url"]){
if(!_8ce["formNode"]&&(_8ce["backButton"]||_8ce["back"]||_8ce["changeUrl"]||_8ce["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(_8ce);
return true;
}
}
var url=_8ce.url;
var _8d0="";
if(_8ce["formNode"]){
var ta=_8ce.formNode.getAttribute("action");
if((ta)&&(!_8ce["url"])){
url=ta;
}
var tp=_8ce.formNode.getAttribute("method");
if((tp)&&(!_8ce["method"])){
_8ce.method=tp;
}
_8d0+=dojo.io.encodeForm(_8ce.formNode,_8ce.encoding,_8ce["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_8ce["file"]){
_8ce.method="post";
}
if(!_8ce["method"]){
_8ce.method="get";
}
if(_8ce.method.toLowerCase()=="get"){
_8ce.multipart=false;
}else{
if(_8ce["file"]){
_8ce.multipart=true;
}else{
if(!_8ce["multipart"]){
_8ce.multipart=false;
}
}
}
if(_8ce["backButton"]||_8ce["back"]||_8ce["changeUrl"]){
dojo.undo.browser.addToHistory(_8ce);
}
var _8d3=_8ce["content"]||{};
if(_8ce.sendTransport){
_8d3["dojo.transport"]="xmlhttp";
}
do{
if(_8ce.postContent){
_8d0=_8ce.postContent;
break;
}
if(_8d3){
_8d0+=dojo.io.argsFromMap(_8d3,_8ce.encoding);
}
if(_8ce.method.toLowerCase()=="get"||!_8ce.multipart){
break;
}
var t=[];
if(_8d0.length){
var q=_8d0.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(_8ce.file){
if(dojo.lang.isArray(_8ce.file)){
for(var i=0;i<_8ce.file.length;++i){
var o=_8ce.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=_8ce.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+"--","");
_8d0=t.join("\r\n");
}
}while(false);
var _8d9=_8ce["sync"]?false:true;
var _8da=_8ce["preventCache"]||(this.preventCache==true&&_8ce["preventCache"]!=false);
var _8db=_8ce["useCache"]==true||(this.useCache==true&&_8ce["useCache"]!=false);
if(!_8da&&_8db){
var _8dc=getFromCache(url,_8d0,_8ce.method);
if(_8dc){
doLoad(_8ce,_8dc,url,_8d0,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_8ce);
var _8de=false;
if(_8d9){
var _8df=this.inFlight.push({"req":_8ce,"http":http,"url":url,"query":_8d0,"useCache":_8db,"startTime":_8ce.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_8ae._blockAsync=true;
}
if(_8ce.method.toLowerCase()=="post"){
if(!_8ce.user){
http.open("POST",url,_8d9);
}else{
http.open("POST",url,_8d9,_8ce.user,_8ce.password);
}
setHeaders(http,_8ce);
http.setRequestHeader("Content-Type",_8ce.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_8ce.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_8d0);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_8ce,{status:404},url,_8d0,_8db);
}
}else{
var _8e0=url;
if(_8d0!=""){
_8e0+=(_8e0.indexOf("?")>-1?"&":"?")+_8d0;
}
if(_8da){
_8e0+=(dojo.string.endsWithAny(_8e0,"?","&")?"":(_8e0.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_8ce.user){
http.open(_8ce.method.toUpperCase(),_8e0,_8d9);
}else{
http.open(_8ce.method.toUpperCase(),_8e0,_8d9,_8ce.user,_8ce.password);
}
setHeaders(http,_8ce);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_8ce,{status:404},url,_8d0,_8db);
}
}
if(!_8d9){
doLoad(_8ce,http,url,_8d0,_8db);
_8ae._blockAsync=false;
}
_8ce.abort=function(){
try{
http._aborted=true;
}
catch(e){
}
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
}
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_8e1){
this.pairs=[];
this.returnWrappers=_8e1||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_8e3,wrap,_8e5,_8e6){
var type=(_8e6)?"unshift":"push";
this.pairs[type]([name,_8e3,wrap,_8e5]);
},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,_8ee,wrap,_8f0){
dojo.json.jsonRegistry.register(name,_8ee,wrap,_8f0);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _8f3=typeof (o);
if(_8f3=="undefined"){
return "undefined";
}else{
if((_8f3=="number")||(_8f3=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_8f3=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _8f5;
if(typeof (o.__json__)=="function"){
_8f5=o.__json__();
if(o!==_8f5){
return me(_8f5);
}
}
if(typeof (o.json)=="function"){
_8f5=o.json();
if(o!==_8f5){
return me(_8f5);
}
}
if(_8f3!="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;
_8f5=dojo.json.jsonRegistry.match(o);
return me(_8f5);
}
catch(e){
}
if(_8f3=="function"){
return null;
}
res=[];
for(var k in o){
var _8fa;
if(typeof (k)=="number"){
_8fa="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_8fa=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_8fa+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.lang.type");
dojo.lang.whatAmI=function(_8fb){
dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");
return dojo.lang.getType(_8fb);
};
dojo.lang.whatAmI.custom={};
dojo.lang.getType=function(_8fc){
try{
if(dojo.lang.isArray(_8fc)){
return "array";
}
if(dojo.lang.isFunction(_8fc)){
return "function";
}
if(dojo.lang.isString(_8fc)){
return "string";
}
if(dojo.lang.isNumber(_8fc)){
return "number";
}
if(dojo.lang.isBoolean(_8fc)){
return "boolean";
}
if(dojo.lang.isAlien(_8fc)){
return "alien";
}
if(dojo.lang.isUndefined(_8fc)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](_8fc)){
return name;
}
}
if(dojo.lang.isObject(_8fc)){
return "object";
}
}
catch(e){
}
return "unknown";
};
dojo.lang.isNumeric=function(_8fe){
return (!isNaN(_8fe)&&isFinite(_8fe)&&(_8fe!=null)&&!dojo.lang.isBoolean(_8fe)&&!dojo.lang.isArray(_8fe)&&!/^\s*$/.test(_8fe));
};
dojo.lang.isBuiltIn=function(_8ff){
return (dojo.lang.isArray(_8ff)||dojo.lang.isFunction(_8ff)||dojo.lang.isString(_8ff)||dojo.lang.isNumber(_8ff)||dojo.lang.isBoolean(_8ff)||(_8ff==null)||(_8ff instanceof Error)||(typeof _8ff=="error"));
};
dojo.lang.isPureObject=function(_900){
return ((_900!=null)&&dojo.lang.isObject(_900)&&_900.constructor==Object);
};
dojo.lang.isOfType=function(_901,type,_903){
var _904=false;
if(_903){
_904=_903["optional"];
}
if(_904&&((_901===null)||dojo.lang.isUndefined(_901))){
return true;
}
if(dojo.lang.isArray(type)){
var _905=type;
for(var i in _905){
var _907=_905[i];
if(dojo.lang.isOfType(_901,_907)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_901);
case Function:
case "function":
return dojo.lang.isFunction(_901);
case String:
case "string":
return dojo.lang.isString(_901);
case Number:
case "number":
return dojo.lang.isNumber(_901);
case "numeric":
return dojo.lang.isNumeric(_901);
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_901);
case Object:
case "object":
return dojo.lang.isObject(_901);
case "pureobject":
return dojo.lang.isPureObject(_901);
case "builtin":
return dojo.lang.isBuiltIn(_901);
case "alien":
return dojo.lang.isAlien(_901);
case "undefined":
return dojo.lang.isUndefined(_901);
case null:
case "null":
return (_901===null);
case "optional":
dojo.deprecated("dojo.lang.isOfType(value, [type, \"optional\"])","use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");
return ((_901===null)||dojo.lang.isUndefined(_901));
default:
if(dojo.lang.isFunction(type)){
return (_901 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 _909=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_909[i++]];
}while(i<_909.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _90d=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_90d[i++]];
}while(i<_90d.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.provide("dojo.lang.assert");
dojo.lang.assert=function(_910,_911){
if(!_910){
var _912="An assert statement failed.\n"+"The method dojo.lang.assert() was called with a 'false' value.\n";
if(_911){
_912+="Here's the assert message:\n"+_911+"\n";
}
throw new Error(_912);
}
};
dojo.lang.assertType=function(_913,type,_915){
if(dojo.lang.isString(_915)){
dojo.deprecated("dojo.lang.assertType(value, type, \"message\")","use dojo.lang.assertType(value, type) instead","0.5");
}
if(!dojo.lang.isOfType(_913,type,_915)){
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(_916,_917,_918){
var key;
if(!_918){
if(!dojo.lang.assertValidKeywords._errorMessage){
dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:";
}
_918=dojo.lang.assertValidKeywords._errorMessage;
}
if(dojo.lang.isArray(_917)){
for(key in _916){
if(!dojo.lang.inArray(_917,key)){
dojo.lang.assert(false,_918+" "+key);
}
}
}else{
for(key in _916){
if(!(key in _917)){
dojo.lang.assert(false,_918+" "+key);
}
}
}
};
dojo.provide("dojo.lang.repr");
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(name,_91b,wrap,_91d){
dojo.lang.reprRegistry.register(name,_91b,wrap,_91d);
};
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.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_924,_925,_926){
dojo.html.show(node);
if(dojo.lang.isFunction(_926)){
_926();
}
},hide:function(node,_928,_929,_92a){
dojo.html.hide(node);
if(dojo.lang.isFunction(_92a)){
_92a();
}
}};
dojo.lfx.toggle.fade={show:function(node,_92c,_92d,_92e){
dojo.lfx.fadeShow(node,_92c,_92d,_92e).play();
},hide:function(node,_930,_931,_932){
dojo.lfx.fadeHide(node,_930,_931,_932).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_934,_935,_936){
dojo.lfx.wipeIn(node,_934,_935,_936).play();
},hide:function(node,_938,_939,_93a){
dojo.lfx.wipeOut(node,_938,_939,_93a).play();
}};
dojo.lfx.toggle.explode={show:function(node,_93c,_93d,_93e,_93f){
dojo.lfx.explode(_93f||{x:0,y:0,width:0,height:0},node,_93c,_93d,_93e).play();
},hide:function(node,_941,_942,_943,_944){
dojo.lfx.implode(node,_944||{x:0,y:0,width:0,height:0},_941,_942,_943).play();
}};
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_946,_947,_948){
if(!_948||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_946,_947);
}
},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,_94f,_950){
this.name=name;
this.module=_94f;
this.resolver=_950;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_952,_953){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _954=this.resolver(name,_952);
if((_954)&&(!this._loaded[_954])&&(!this._failed[_954])){
var req=dojo.require;
req(_954,false,true);
if(dojo.hostenv.findModule(_954,false)){
this._loaded[_954]=true;
}else{
if(!_953){
dojo.raise("dojo.ns.Ns.resolve: module '"+_954+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_954]=true;
}
}
return Boolean(this._loaded[_954]);
};
dojo.registerNamespace=function(name,_957,_958){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_95a){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_95a;
}
};
dojo.registerNamespaceManifest=function(_95c,path,name,_95f,_960){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_95f,_960);
};
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(_962,_963){
map[_962]=_963;
};
function dojoNamespaceResolver(name,_965){
if(!_965){
_965="html";
}
if(!map[_965]){
return null;
}
return map[_965][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,_967,_968){
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(_96c){
if((_96c==null)||(typeof _96c=="undefined")){
return false;
}
return /^[0-9A-Za-z_]*$/.test(_96c);
}});
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,_96e){
this._providers[this._providers.length]=_96e;
this._providers[name]=_96e;
};
this.setProvider=function(_96f){
};
this.autodetect=function(){
if(this._initialized==true){
return;
}
var _970=null;
for(var i=0;i<this._providers.length;i++){
_970=this._providers[i];
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==false&&_970.getType()==djConfig["forceStorageProvider"]){
_970.isAvailable();
break;
}else{
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==true&&_970.isAvailable()){
break;
}
}
}
if(_970==null){
this._initialized=true;
this.available=false;
this.currentProvider=null;
dojo.raise("No storage provider found for this platform");
}
this.currentProvider=_970;
for(var i in _970){
dojo.storage[i]=_970[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(_972){
try{
var _973=eval("new "+_972+"()");
var _974=_973.isAvailable();
if(_974==null||typeof _974=="undefined"){
return false;
}
return _974;
}
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 _978=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;
}
_978+=s.length;
this.length=_978;
}
}
return this;
};
this.clear=function(){
a=[];
b="";
_978=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);
_978=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);
_978=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("");
}
_978=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.flash");
dojo.flash=function(){
};
dojo.flash={flash6_version:null,flash8_version:null,ready:false,_visible:true,_loadedListeners:new Array(),_installingListeners:new Array(),setSwf:function(_983){
if(_983==null||dojo.lang.isUndefined(_983)){
return;
}
if(_983.flash6!=null&&!dojo.lang.isUndefined(_983.flash6)){
this.flash6_version=_983.flash6;
}
if(_983.flash8!=null&&!dojo.lang.isUndefined(_983.flash8)){
this.flash8_version=_983.flash8;
}
if(!dojo.lang.isUndefined(_983.visible)){
this._visible=_983.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(_984){
this._loadedListeners.push(_984);
},addInstallingListener:function(_985){
this._installingListeners.push(_985);
},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 _988=new dojo.flash.Install();
dojo.flash.installer=_988;
if(_988.needed()==true){
_988.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(_989,_98a,_98b){
_98b=parseFloat("."+_98b);
if(this.versionMajor>=_989&&this.versionMinor>=_98a&&this.versionRevision>=_98b){
return true;
}else{
return false;
}
},_detectVersion:function(){
var _98c;
for(var _98d=25;_98d>0;_98d--){
if(dojo.render.html.ie){
_98c=VBGetSwfVer(_98d);
}else{
_98c=this._JSFlashInfo(_98d);
}
if(_98c==-1){
this.capable=false;
return;
}else{
if(_98c!=0){
var _98e;
if(dojo.render.html.ie){
var _98f=_98c.split(" ");
var _990=_98f[1];
_98e=_990.split(",");
}else{
_98e=_98c.split(".");
}
this.versionMajor=_98e[0];
this.versionMinor=_98e[1];
this.versionRevision=_98e[2];
var _991=this.versionMajor+"."+this.versionRevision;
this.version=parseFloat(_991);
this.capable=true;
break;
}
}
}
},_JSFlashInfo:function(_992){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _993=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _994=navigator.plugins["Shockwave Flash"+_993].description;
var _995=_994.split(" ");
var _996=_995[2].split(".");
var _997=_996[0];
var _998=_996[1];
if(_995[3]!=""){
var _999=_995[3].split("r");
}else{
var _999=_995[4].split("r");
}
var _99a=_999[1]>0?_999[1]:0;
var _99b=_997+"."+_998+"."+_99a;
return _99b;
}
}
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(_99c){
this._visible=_99c;
};
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(_99d,_99e){
if(dojo.lang.isUndefined(_99e)){
_99e=false;
}
var _99f=new dojo.string.Builder();
_99f.append("width: "+this.width+"px; ");
_99f.append("height: "+this.height+"px; ");
if(this._visible==false){
_99f.append("position: absolute; ");
_99f.append("z-index: 10000; ");
_99f.append("top: -1000px; ");
_99f.append("left: -1000px; ");
}
_99f=_99f.toString();
var _9a0;
var _9a1;
if(_99d==6){
_9a1=dojo.flash.flash6_version;
var _9a2=djConfig.baseRelativePath;
_9a1=_9a1+"?baseRelativePath="+escape(_9a2);
_9a0="<embed id=\""+this.id+"\" src=\""+_9a1+"\" "+"    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{
_9a1=dojo.flash.flash8_version;
var _9a3=_9a1;
var _9a4=_9a1;
var _9a2=djConfig.baseRelativePath;
if(_99e){
var _9a5=escape(window.location);
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _9a6=escape(document.title);
_9a3+="?MMredirectURL="+_9a5+"&MMplayerType=ActiveX"+"&MMdoctitle="+_9a6+"&baseRelativePath="+escape(_9a2);
_9a4+="?MMredirectURL="+_9a5+"&MMplayerType=PlugIn"+"&baseRelativePath="+escape(_9a2);
}
if(_9a4.indexOf("?")==-1){
_9a4+="?baseRelativePath="+escape(_9a2);
}
_9a0="<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=\""+_9a3+"\" /> "+"<param name=\"quality\" value=\"high\" /> "+"<param name=\"bgcolor\" value=\"#ffffff\" /> "+"<embed src=\""+_9a4+"\" "+"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>";
}
_9a0="<div id=\""+this.id+"Container\" style=\""+_99f+"\"> "+_9a0+"</div>";
document.writeln(_9a0);
},get:function(){
return document.getElementById(this.id);
},setVisible:function(_9a7){
var _9a8=dojo.byId(this.id+"Container");
if(_9a7==true){
_9a8.style.visibility="visible";
}else{
_9a8.style.position="absolute";
_9a8.style.x="-1000px";
_9a8.style.y="-1000px";
_9a8.style.visibility="hidden";
}
},center:function(){
var _9a9=this.width;
var _9aa=this.height;
var _9ab=dojo.html.getScroll().offset;
var _9ac=dojo.html.getViewport();
var x=_9ab.x+(_9ac.width-_9a9)/2;
var y=_9ab.y+(_9ac.height-_9aa)/2;
var _9af=dojo.byId(this.id+"Container");
_9af.style.top=y+"px";
_9af.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(_9b1,args){
if(_9b1!=null&&!dojo.lang.isUndefined(_9b1)&&/^FSCommand:(.*)/.test(_9b1)==true){
_9b1=_9b1.match(/^FSCommand:(.*)/)[1];
}
if(_9b1=="addCallback"){
this._fscommandAddCallback(_9b1,args);
}else{
if(_9b1=="call"){
this._fscommandCall(_9b1,args);
}else{
if(_9b1=="fscommandReady"){
this._fscommandReady();
}
}
}
},_fscommandAddCallback:function(_9b3,args){
var _9b5=args;
var _9b6=function(){
return dojo.flash.comm._call(_9b5,arguments);
};
dojo.flash.comm[_9b5]=_9b6;
dojo.flash.obj.get().SetVariable("_succeeded",true);
},_fscommandCall:function(_9b7,args){
var _9b9=dojo.flash.obj.get();
var _9ba=args;
var _9bb=parseInt(_9b9.GetVariable("_numArgs"));
var _9bc=new Array();
for(var i=0;i<_9bb;i++){
var _9be=_9b9.GetVariable("_"+i);
_9bc.push(_9be);
}
var _9bf;
if(_9ba.indexOf(".")==-1){
_9bf=window[_9ba];
}else{
_9bf=eval(_9ba);
}
var _9c0=null;
if(!dojo.lang.isUndefined(_9bf)&&_9bf!=null){
_9c0=_9bf.apply(null,_9bc);
}
_9b9.SetVariable("_returnResult",_9c0);
},_fscommandReady:function(){
var _9c1=dojo.flash.obj.get();
_9c1.SetVariable("fscommandReady","true");
},_call:function(_9c2,args){
var _9c4=dojo.flash.obj.get();
_9c4.SetVariable("_functionName",_9c2);
_9c4.SetVariable("_numArgs",args.length);
for(var i=0;i<args.length;i++){
var _9c6=args[i];
_9c6=_9c6.replace(/\0/g,"\\0");
_9c4.SetVariable("_"+i,_9c6);
}
_9c4.TCallLabel("/_flashRunner","execute");
var _9c7=_9c4.GetVariable("_returnResult");
_9c7=_9c7.replace(/\\0/g,"\x00");
return _9c7;
},_addExternalInterfaceCallback:function(_9c8){
var _9c9=function(){
var _9ca=new Array(arguments.length);
for(var i=0;i<arguments.length;i++){
_9ca[i]=arguments[i];
}
return dojo.flash.comm._execFlash(_9c8,_9ca);
};
dojo.flash.comm[_9c8]=_9c9;
},_encodeData:function(data){
var _9cd=/\&([^;]*)\;/g;
data=data.replace(_9cd,"&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(_9cf,_9d0){
var _9d1=dojo.flash.obj.get();
var _9d2=Math.ceil(_9cf.length/1024);
for(var i=0;i<_9d2;i++){
var _9d4=i*1024;
var _9d5=i*1024+1024;
if(i==(_9d2-1)){
_9d5=i*1024+_9cf.length;
}
var _9d6=_9cf.substring(_9d4,_9d5);
_9d6=this._encodeData(_9d6);
_9d1.CallFunction("<invoke name=\"chunkArgumentData\" "+"returntype=\"javascript\">"+"<arguments>"+"<string>"+_9d6+"</string>"+"<number>"+_9d0+"</number>"+"</arguments>"+"</invoke>");
}
},_chunkReturnData:function(){
var _9d7=dojo.flash.obj.get();
var _9d8=_9d7.getReturnLength();
var _9d9=new Array();
for(var i=0;i<_9d8;i++){
var _9db=_9d7.CallFunction("<invoke name=\"chunkReturnData\" "+"returntype=\"javascript\">"+"<arguments>"+"<number>"+i+"</number>"+"</arguments>"+"</invoke>");
if(_9db=="\"\""||_9db=="''"){
_9db="";
}else{
_9db=_9db.substring(1,_9db.length-1);
}
_9d9.push(_9db);
}
var _9dc=_9d9.join("");
return _9dc;
},_execFlash:function(_9dd,_9de){
var _9df=dojo.flash.obj.get();
_9df.startExec();
_9df.setNumberArguments(_9de.length);
for(var i=0;i<_9de.length;i++){
this._chunkArgumentData(_9de[i],i);
}
_9df.exec(_9dd);
var _9e1=this._chunkReturnData();
_9e1=this._decodeData(_9e1);
_9df.endExec();
return _9e1;
}};
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 _9e2=new dojo.flash.Embed(false);
_9e2.write(8);
}else{
if(dojo.flash.info.isVersionOrAbove(6,0,65)){
var _9e2=new dojo.flash.Embed(false);
_9e2.write(8,true);
_9e2.setVisible(true);
_9e2.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 _9e4=globalStorage[location.hostname];
}
catch(e){
this._available=false;
return this._available;
}
this._available=true;
return this._available;
},put:function(key,_9e6,_9e7){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_9e7;
if(dojo.lang.isString(_9e6)){
_9e6="string:"+_9e6;
}else{
_9e6=dojo.json.serialize(_9e6);
}
window.addEventListener("storage",function(evt){
_9e7.call(null,dojo.storage.SUCCESS,key);
},false);
try{
var _9e9=globalStorage[this._domain];
_9e9.setItem(key,_9e6);
}
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 _9eb=globalStorage[this._domain];
var _9ec=_9eb.getItem(key);
if(_9ec==null){
return null;
}
_9ec=_9ec.value;
if(!dojo.lang.isUndefined(_9ec)&&_9ec!=null&&/^string:/.test(_9ec)){
_9ec=_9ec.substring("string:".length);
}else{
_9ec=dojo.json.evalJson(_9ec);
}
return _9ec;
},getKeys:function(){
var _9ed=globalStorage[this._domain];
var _9ee=new Array();
for(i=0;i<_9ed.length;i++){
_9ee[i]=_9ed.key(i);
}
return _9ee;
},clear:function(){
var _9ef=globalStorage[this._domain];
var keys=new Array();
for(var i=0;i<_9ef.length;i++){
keys[keys.length]=_9ef.key(i);
}
for(var i=0;i<keys.length;i++){
_9ef.removeItem(keys[i]);
}
},remove:function(key){
var _9f3=globalStorage[this._domain];
_9f3.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 _9f4=function(){
dojo.storage._flashLoaded();
};
dojo.flash.addLoadedListener(_9f4);
var _9f5=dojo.uri.dojoUri("Storage_version6.swf").toString();
var _9f6=dojo.uri.dojoUri("Storage_version8.swf").toString();
dojo.flash.setSwf({flash6:_9f5,flash8:_9f6,visible:false});
},isAvailable:function(){
if(djConfig["disableFlashStorage"]==true){
this._available=false;
}else{
this._available=true;
}
return this._available;
},put:function(key,_9f8,_9f9){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_9f9;
if(dojo.lang.isString(_9f8)){
_9f8="string:"+_9f8;
}else{
_9f8=dojo.json.serialize(_9f8);
}
dojo.flash.comm.put(key,_9f8,this.namespace);
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _9fb=dojo.flash.comm.get(key,this.namespace);
if(_9fb==""){
return null;
}
if(!dojo.lang.isUndefined(_9fb)&&_9fb!=null&&/^string:/.test(_9fb)){
_9fb=_9fb.substring("string:".length);
}else{
_9fb=dojo.json.evalJson(_9fb);
}
return _9fb;
},getKeys:function(){
var _9fc=dojo.flash.comm.getKeys(this.namespace);
if(_9fc==""){
return [];
}
return _9fc.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(_9fe,key){
var ds=dojo.storage;
var dfo=dojo.flash.obj;
if(_9fe==ds.PENDING){
dfo.center();
dfo.setVisible(true);
}else{
dfo.setVisible(false);
}
if((!dj_undef("_statusHandler",ds))&&(ds._statusHandler!=null)){
ds._statusHandler.call(null,_9fe,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.style");
dojo.deprecated("dojo.style","replaced by dojo.html.style","0.5");
dojo.lang.mixin(dojo.style,dojo.html);
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 _a05=getTagName(node);
if(!_a05){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_a05])){
return _a05;
}
var p=_a05.indexOf(":");
if(p>=0){
return _a05;
}
if(_a05.substr(0,5)=="dojo:"){
return _a05;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_a05;
}
if(_a05.substr(0,4)=="dojo"){
return "dojo:"+_a05.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 _a08=node.className||node.getAttribute("class");
if((_a08)&&(_a08.indexOf)&&(_a08.indexOf("dojo-")!=-1)){
var _a09=_a08.split(" ");
for(var x=0,c=_a09.length;x<c;x++){
if(_a09[x].slice(0,5)=="dojo-"){
return "dojo:"+_a09[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_a0d,_a0e,_a0f){
var _a10=getTagName(node);
if(isIE&&_a10.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _a12=true;
if(_a0e){
var _a13=getDojoTagName(node);
_a10=_a13||_a10;
_a12=Boolean(_a13);
}
var _a14={};
_a14[_a10]=[];
var pos=_a10.indexOf(":");
if(pos>0){
var ns=_a10.substring(0,pos);
_a14["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_a12=false;
}
}
if(_a12){
var _a17=this.parseAttributes(node);
for(var attr in _a17){
if((!_a14[_a10][attr])||(typeof _a14[_a10][attr]!="array")){
_a14[_a10][attr]=[];
}
_a14[_a10][attr].push(_a17[attr]);
}
_a14[_a10].nodeRef=node;
_a14.tagName=_a10;
_a14.index=_a0f||0;
}
var _a18=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(!_a14[ctn]){
_a14[ctn]=[];
}
_a14[ctn].push(this.parseElement(tcn,true,_a0e,_a18));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_a14[ctn][_a14[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_a18++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_a14[_a10].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _a14;
};
this.parseAttributes=function(node){
var _a1d={};
var atts=node.attributes;
var _a1f,i=0;
while((_a1f=atts[i++])){
if(isIE){
if(!_a1f){
continue;
}
if((typeof _a1f=="object")&&(typeof _a1f.nodeValue=="undefined")||(_a1f.nodeValue==null)||(_a1f.nodeValue=="")){
continue;
}
}
var nn=_a1f.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_a1f.nodeName;
_a1d[nn]={value:_a1f.nodeValue};
}
return _a1d;
};
};
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _a22={};
var _a23=[];
this.getUniqueId=function(_a24){
var _a25;
do{
_a25=_a24+"_"+(_a22[_a24]!=undefined?++_a22[_a24]:_a22[_a24]=0);
}while(this.getWidgetById(_a25));
return _a25;
};
this.add=function(_a26){
this.widgets.push(_a26);
if(!_a26.extraArgs["id"]){
_a26.extraArgs["id"]=_a26.extraArgs["ID"];
}
if(_a26.widgetId==""){
if(_a26["id"]){
_a26.widgetId=_a26["id"];
}else{
if(_a26.extraArgs["id"]){
_a26.widgetId=_a26.extraArgs["id"];
}else{
_a26.widgetId=this.getUniqueId(_a26.ns+"_"+_a26.widgetType);
}
}
}
if(this.widgetIds[_a26.widgetId]){
dojo.debug("widget ID collision on ID: "+_a26.widgetId);
}
this.widgetIds[_a26.widgetId]=_a26;
};
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(_a28){
if(dojo.lang.isNumber(_a28)){
var tw=this.widgets[_a28].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_a28,1);
}else{
this.removeById(_a28);
}
};
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 _a2f=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_a2f(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_a34,_a35){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_a34(x)){
ret.push(x);
if(_a35){
return false;
}
}
return true;
});
return (_a35?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 _a3b={};
var _a3c=["dojo.widget"];
for(var i=0;i<_a3c.length;i++){
_a3c[_a3c[i]]=true;
}
this.registerWidgetPackage=function(_a3e){
if(!_a3c[_a3e]){
_a3c[_a3e]=true;
_a3c.push(_a3e);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_a3c,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_a40,_a41,_a42,ns){
var impl=this.getImplementationName(_a40,ns);
if(impl){
var ret=_a41?new impl(_a41):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _a46 in dojo.render){
if(dojo.render[_a46]["capable"]===true){
var _a47=dojo.render[_a46].prefixes;
for(var i=0;i<_a47.length;i++){
_a23.push(_a47[i].toLowerCase());
}
}
}
}
var _a49=function(_a4a,_a4b){
if(!_a4b){
return null;
}
for(var i=0,l=_a23.length,_a4e;i<=l;i++){
_a4e=(i<l?_a4b[_a23[i]]:_a4b);
if(!_a4e){
continue;
}
for(var name in _a4e){
if(name.toLowerCase()==_a4a){
return _a4e[name];
}
}
}
return null;
};
var _a50=function(_a51,_a52){
var _a53=dojo.evalObjPath(_a52,false);
return (_a53?_a49(_a51,_a53):null);
};
this.getImplementationName=function(_a54,ns){
var _a56=_a54.toLowerCase();
ns=ns||"dojo";
var imps=_a3b[ns]||(_a3b[ns]={});
var impl=imps[_a56];
if(impl){
return impl;
}
if(!_a23.length){
buildPrefixCache();
}
var _a59=dojo.ns.get(ns);
if(!_a59){
dojo.ns.register(ns,ns+".widget");
_a59=dojo.ns.get(ns);
}
if(_a59){
_a59.resolve(_a54);
}
impl=_a50(_a56,_a59.module);
if(impl){
return (imps[_a56]=impl);
}
_a59=dojo.ns.require(ns);
if((_a59)&&(_a59.resolver)){
_a59.resolve(_a54);
impl=_a50(_a56,_a59.module);
if(impl){
return (imps[_a56]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_a54+"\" in \""+_a59.module+"\" registered to namespace \""+_a59.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_a3c.length;i++){
impl=_a50(_a56,_a3c[i]);
if(impl){
return (imps[_a56]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_a54+"\" in \""+_a59.module+"\" registered to namespace \""+_a59.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _a5c=this.topWidgets[id];
if(_a5c.checkSize){
_a5c.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(_a61,_a62){
dw[(_a62||_a61)]=h(_a61);
};
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 _a64=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _a64[n];
}
return _a64;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.widget.Widget");
dojo.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 _a66=this.children[i];
if(_a66.onResized){
_a66.onResized();
}
}
},create:function(args,_a68,_a69,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_a68,_a69);
this.mixInProperties(args,_a68,_a69);
this.postMixInProperties(args,_a68,_a69);
dojo.widget.manager.add(this);
this.buildRendering(args,_a68,_a69);
this.initialize(args,_a68,_a69);
this.postInitialize(args,_a68,_a69);
this.postCreate(args,_a68,_a69);
return this;
},destroy:function(_a6b){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_a6b);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _a6c;
var i=0;
while(this.children.length>i){
_a6c=this.children[i];
if(_a6c instanceof dojo.widget.Widget){
this.removeChild(_a6c);
_a6c.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_a6f){
var ret=[];
var _a71=dojo.lang.isFunction(type);
if(!_a71){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_a71){
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(_a6f){
ret=ret.concat(this.children[x].getChildrenOfType(type,_a6f));
}
}
return ret;
},getDescendants:function(){
var _a73=[];
var _a74=[this];
var elem;
while((elem=_a74.pop())){
_a73.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_a74.push(elem);
});
}
}
return _a73;
},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 _a7b;
var _a7c=dojo.widget.lcArgsCache[this.widgetType];
if(_a7c==null){
_a7c={};
for(var y in this){
_a7c[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_a7c;
}
var _a7e={};
for(var x in args){
if(!this[x]){
var y=_a7c[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_a7e[x]){
continue;
}
_a7e[x]=true;
if((typeof this[x])!=(typeof _a7b)){
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 _a80=args[x].split(";");
for(var y=0;y<_a80.length;y++){
var si=_a80[y].indexOf(":");
if((si!=-1)&&(_a80[y].length>si)){
this[x][_a80[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_a80[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_a84){
},initialize:function(args,frag,_a87){
return false;
},postInitialize:function(args,frag,_a8a){
return false;
},postCreate:function(args,frag,_a8d){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_a90){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_a91){
},addChild:function(_a92){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_a93){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_a93){
this.children.splice(x,1);
_a93.parent=null;
break;
}
}
return _a93;
},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(_a98,_a99,_a9a){
var _a9b=_a99.parseProperties(_a98["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_a9c,_a9d,_a9e){
var _a9f=_a9d.parseProperties(_a9c["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_aa2,_aa3,_aa4,_aa5){
dojo.a11y.setAccessibleMode();
var _aa6=type.split(":");
_aa6=(_aa6.length==2)?_aa6[1]:type;
var _aa7=_aa5||_aa2.parseProperties(frag[frag["ns"]+":"+_aa6]);
var _aa8=dojo.widget.manager.getImplementation(_aa6,null,null,frag["ns"]);
if(!_aa8){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_aa8.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_aa7["dojoinsertionindex"]=_aa4;
var ret=_aa8.create(_aa7,frag,_aa3,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_aaa,_aab,_aac,init,_aae){
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(_ab1,_ab2,_ab3,init,_ab5){
var _ab6=_ab1.split(".");
var type=_ab6.pop();
var regx="\\.("+(_ab2?_ab2+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_ab1.search(new RegExp(regx));
_ab6=(r<0?_ab6.join("."):_ab1.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_ab6);
var pos=_ab6.indexOf(".");
var _abb=(pos>-1)?_ab6.substring(0,pos):_ab6;
_ab5=(_ab5)||{};
_ab5.widgetType=type;
if((!init)&&(_ab5["classConstructor"])){
init=_ab5.classConstructor;
delete _ab5.classConstructor;
}
dojo.declare(_ab1,_ab3,init,_ab5);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_abc){
this.propertySetsList=[];
this.fragment=_abc;
this.createComponents=function(frag,_abe){
var _abf=[];
var _ac0=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _ac1=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(_ac1[ltn]){
_ac0=true;
ret=_ac1[ltn](frag,this,_abe,frag.index);
_abf.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_abe,frag.index);
if(ret){
_ac0=true;
_abf.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_ac0){
_abf=_abf.concat(this.createSubComponents(frag,_abe));
}
return _abf;
};
this.createSubComponents=function(_ac6,_ac7){
var frag,_ac9=[];
for(var item in _ac6){
frag=_ac6[item];
if(frag&&typeof frag=="object"&&(frag!=_ac6.nodeRef)&&(frag!=_ac6.tagName)&&(!dojo.dom.isNode(frag))){
_ac9=_ac9.concat(this.createComponents(frag,_ac7));
}
}
return _ac9;
};
this.parsePropertySets=function(_acb){
return [];
};
this.parseProperties=function(_acc){
var _acd={};
for(var item in _acc){
if((_acc[item]==_acc.tagName)||(_acc[item]==_acc.nodeRef)){
}else{
var frag=_acc[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 _ad0=this;
this.getDataProvider(_ad0,frag[0].value);
_acd.dataProvider=this.dataProvider;
}
_acd[item]=frag[0].value;
var _ad1=this.parseProperties(frag);
for(var _ad2 in _ad1){
_acd[_ad2]=_ad1[_ad2];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _acd[item]!="boolean"){
_acd[item]=true;
}
break;
}
}
}
return _acd;
};
this.getDataProvider=function(_ad3,_ad4){
dojo.io.bind({url:_ad4,load:function(type,_ad6){
if(type=="load"){
_ad3.dataProvider=_ad6;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_ad7){
for(var x=0;x<this.propertySetsList.length;x++){
if(_ad7==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_ad9){
var _ada=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _ade=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_ade==cpcc[0].value)){
_ada.push(cpl);
}
}
return _ada;
};
this.getPropertySets=function(_adf){
var ppl="dojo:propertyproviderlist";
var _ae1=[];
var _ae2=_adf.tagName;
if(_adf[ppl]){
var _ae3=_adf[ppl].value.split(" ");
for(var _ae4 in _ae3){
if((_ae4.indexOf("..")==-1)&&(_ae4.indexOf("://")==-1)){
var _ae5=this.getPropertySetById(_ae4);
if(_ae5!=""){
_ae1.push(_ae5);
}
}else{
}
}
}
return this.getPropertySetsByType(_ae2).concat(_ae1);
};
this.createComponentFromScript=function(_ae6,_ae7,_ae8,ns){
_ae8.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_ae7.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_ae8,this,null,null,_ae8)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_ae8,this,null,null,_ae8)];
};
};
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,_aed,_aee,_aef){
var _af0=false;
var _af1=(typeof name=="string");
if(_af1){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _af4=name.toLowerCase();
var _af5=ns+":"+_af4;
_af0=(dojo.byId(name)&&!dojo.widget.tags[_af5]);
}
if((arguments.length==1)&&(_af0||!_af1)){
var xp=new dojo.xml.Parse();
var tn=_af0?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_af8,name,_afa,ns){
_afa[_af5]={dojotype:[{value:_af4}],nodeRef:_af8,fastMixIn:true};
_afa.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_af8,name,_afa,ns);
}
_aed=_aed||{};
var _afc=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_aee){
_afc=true;
_aee=tn;
if(h){
dojo.body().appendChild(_aee);
}
}else{
if(_aef){
dojo.dom.insertAtPosition(tn,_aee,_aef);
}else{
tn=_aee;
}
}
var _afe=fromScript(tn,name.toLowerCase(),_aed,ns);
if((!_afe)||(!_afe[0])||(typeof _afe[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_afc&&_afe[0].domNode.parentNode){
_afe[0].domNode.parentNode.removeChild(_afe[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _afe[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,_b00,_b01,_b02){
var _b03=_b00||obj.templatePath;
var _b04=dojo.widget._templateCache;
if(!_b03&&!obj["widgetType"]){
do{
var _b05="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_b04[_b05]);
obj.widgetType=_b05;
}
var wt=_b03?_b03.toString():obj.widgetType;
var ts=_b04[wt];
if(!ts){
_b04[wt]={"string":null,"node":null};
if(_b02){
ts={};
}else{
ts=_b04[wt];
}
}
if((!obj.templateString)&&(!_b02)){
obj.templateString=_b01||ts["string"];
}
if((!obj.templateNode)&&(!_b02)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_b03)){
var _b08=dojo.hostenv.getText(_b03);
if(_b08){
_b08=_b08.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _b09=_b08.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_b09){
_b08=_b09[1];
}
}else{
_b08="";
}
obj.templateString=_b08;
if(!_b02){
_b04[wt]["string"]=_b08;
}
}
if((!ts["string"])&&(!_b02)){
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,_b0d){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_b0d);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_b0d);
}
},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 _b14=true;
if(dojo.render.html.ie){
_b14=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _b14;
}};
dojo.widget.attachTemplateNodes=function(_b15,_b16,_b17){
var _b18=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_b15){
_b15=_b16.domNode;
}
if(_b15.nodeType!=_b18){
return;
}
var _b1a=_b15.all||_b15.getElementsByTagName("*");
var _b1b=_b16;
for(var x=-1;x<_b1a.length;x++){
var _b1d=(x==-1)?_b15:_b1a[x];
var _b1e=[];
if(!_b16.widgetsInTemplate||!_b1d.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _b20=_b1d.getAttribute(this.attachProperties[y]);
if(_b20){
_b1e=_b20.split(";");
for(var z=0;z<_b1e.length;z++){
if(dojo.lang.isArray(_b16[_b1e[z]])){
_b16[_b1e[z]].push(_b1d);
}else{
_b16[_b1e[z]]=_b1d;
}
}
break;
}
}
var _b22=_b1d.getAttribute(this.eventAttachProperty);
if(_b22){
var evts=_b22.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _b24=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _b26=tevt.split(":");
tevt=trim(_b26[0]);
_b24=trim(_b26[1]);
}
if(!_b24){
_b24=tevt;
}
var tf=function(){
var ntf=new String(_b24);
return function(evt){
if(_b1b[ntf]){
_b1b[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_b1d,tevt,tf,false,true);
}
}
for(var y=0;y<_b17.length;y++){
var _b2a=_b1d.getAttribute(_b17[y]);
if((_b2a)&&(_b2a.length)){
var _b24=null;
var _b2b=_b17[y].substr(4);
_b24=trim(_b2a);
var _b2c=[_b24];
if(_b24.indexOf(";")>=0){
_b2c=dojo.lang.map(_b24.split(";"),trim);
}
for(var z=0;z<_b2c.length;z++){
if(!_b2c[z].length){
continue;
}
var tf=function(){
var ntf=new String(_b2c[z]);
return function(evt){
if(_b1b[ntf]){
_b1b[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_b1d,_b2b,tf,false,true);
}
}
}
}
var _b2f=_b1d.getAttribute(this.templateProperty);
if(_b2f){
_b16[_b2f]=_b1d;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_b1d.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_b1d,wai.name,"role",val);
}else{
var _b33=val.split("-");
dojo.widget.wai.setAttr(_b1d,wai.name,_b33[0],_b33[1]);
}
}
},this);
var _b34=_b1d.getAttribute(this.onBuildProperty);
if(_b34){
eval("var node = baseNode; var widget = targetObj; "+_b34);
}
}
};
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(_b3c,_b3d,pos,ref,_b40){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_b40==undefined){
_b40=this.children.length;
}
this.addWidgetAsDirectChild(_b3c,_b3d,pos,ref,_b40);
this.registerChild(_b3c,_b40);
}
return _b3c;
},addWidgetAsDirectChild:function(_b41,_b42,pos,ref,_b45){
if((!this.containerNode)&&(!_b42)){
this.containerNode=this.domNode;
}
var cn=(_b42)?_b42:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_b45){
_b45=0;
}
_b41.domNode.setAttribute("dojoinsertionindex",_b45);
if(!ref){
cn.appendChild(_b41.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_b41.domNode,ref.parentNode,_b45);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_b41.domNode);
}else{
dojo.dom.insertAtPosition(_b41.domNode,cn,pos);
}
}
}
},registerChild:function(_b47,_b48){
_b47.dojoInsertionIndex=_b48;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_b48){
idx=i;
}
}
this.children.splice(idx+1,0,_b47);
_b47.parent=this;
_b47.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_b47.widgetId];
},removeChild:function(_b4b){
dojo.dom.removeNode(_b4b.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_b4b);
},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,_b4f){
var _b50=this.getFragNodeRef(frag);
if(_b4f&&(_b4f.snarfChildDomOutput||!_b50)){
_b4f.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_b50);
}else{
if(_b50){
if(this.domNode&&(this.domNode!==_b50)){
this._sourceNodeRef=dojo.dom.replaceNode(_b50,this.domNode);
}
}
}
if(_b4f){
_b4f.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _b51=new dojo.xml.Parse();
var _b52;
var _b53=this.domNode.getElementsByTagName("*");
for(var i=0;i<_b53.length;i++){
if(_b53[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_b52=_b53[i];
}
if(_b53[i].getAttribute("dojoType")){
_b53[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_b52){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_b52);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _b56=_b51.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_b56,this);
var _b57=[];
var _b58=[this];
var w;
while((w=_b58.pop())){
for(var i=0;i<w.children.length;i++){
var _b5a=w.children[i];
if(_b5a._processedSubWidgets||!_b5a.extraArgs["issubwidget"]){
continue;
}
_b57.push(_b5a);
if(_b5a.isContainer){
_b58.push(_b5a);
}
}
}
for(var i=0;i<_b57.length;i++){
var _b5b=_b57[i];
if(_b5b._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_b5b._processedSubWidgets=true;
if(_b5b.extraArgs["dojoattachevent"]){
var evts=_b5b.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _b5e=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _b60=tevt.split(":");
tevt=dojo.string.trim(_b60[0]);
_b5e=dojo.string.trim(_b60[1]);
}
if(!_b5e){
_b5e=tevt;
}
if(dojo.lang.isFunction(_b5b[tevt])){
dojo.event.kwConnect({srcObj:_b5b,srcFunc:tevt,targetObj:this,targetFunc:_b5e});
}else{
alert(tevt+" is not a function in widget "+_b5b);
}
}
}
if(_b5b.extraArgs["dojoattachpoint"]){
this[_b5b.extraArgs["dojoattachpoint"]]=_b5b;
}
}
}
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 _b64=args["templateCssPath"]||this.templateCssPath;
if(_b64&&!dojo.widget._cssFiles[_b64.toString()]){
if((!this.templateCssString)&&(_b64)){
this.templateCssString=dojo.hostenv.getText(_b64);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_b64.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_b64);
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 _b67=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_b67);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_b67)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _b69=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_b69=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_b69){
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<_b69.length;i++){
var key=_b69[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 _b70;
if((kval)||(dojo.lang.isString(kval))){
_b70=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_b70.indexOf("\"")>-1){
_b70=_b70.replace("\"","&quot;");
}
tstr=tstr.replace(_b69[i],_b70);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_b67){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_b69)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_b69){
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(_b72,_b73){
if(!_b72){
_b72=this.domNode;
}
if(!_b73){
_b73=this;
}
return dojo.widget.attachTemplateNodes(_b72,_b73,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.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(_b7a){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_b7a&&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 _b7e=w||wh.width;
var _b7f=h||wh.height;
if(this.width==_b7e&&this.height==_b7f){
return false;
}
this.width=_b7e;
this.height=_b7f;
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(_b82){
if(_b82.checkSize){
_b82.checkSize();
}
});
}});
dojo.provide("dojo.widget.*");
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 _b85=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_b85);
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 _b88;
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(_b8a){
dojo.widget.PageContainer.superclass.addChild.apply(this,arguments);
this._setupChild(_b8a);
this.onResized();
if(!this.selectedChildWidget){
this.selectChild(_b8a);
}
},_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,_b8e){
page=dojo.widget.byId(page);
this.correspondingPageButton=_b8e;
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 _b8f=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_b8f+1]);
},back:function(){
var _b90=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_b90-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 _b91=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_b91.width,_b91.height);
}
},_showChild:function(page){
if(this.doLayout){
var _b93=dojo.html.getContentBox(this.containerNode);
page.resizeTo(_b93.width,_b93.height);
}
page.selected=true;
page.show();
},_hideChild:function(page){
page.selected=false;
page.hide();
},closeChild:function(page){
var _b96=page.onClose(this,page);
if(_b96){
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 _b97=dojo.widget.byId(this.containerId);
if(_b97){
dojo.lang.forEach(_b97.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 _b99=dojo.widget.createWidget(this.buttonWidget,{label:page.label,closeButton:page.closable});
this.addChild(_b99);
this.domNode.appendChild(_b99.domNode);
this.pane2button[page]=_b99;
page.controlButton=_b99;
var _b9a=this;
dojo.event.connect(_b99,"onClick",function(){
_b9a.onButtonClick(page);
});
dojo.event.connect(_b99,"onCloseButtonClick",function(){
_b9a.onCloseButtonClick(page);
});
},onRemoveChild:function(page){
if(this._currentChild==page){
this._currentChild=null;
}
var _b9c=this.pane2button[page];
if(_b9c){
_b9c.destroy();
}
this.pane2button[page]=null;
},onSelectChild:function(page){
if(this._currentChild){
var _b9e=this.pane2button[this._currentChild];
_b9e.clearSelected();
}
var _b9f=this.pane2button[page];
_b9f.setSelected();
this._currentChild=page;
},onButtonClick:function(page){
var _ba1=dojo.widget.byId(this.containerId);
_ba1.selectChild(page,false,this);
},onCloseButtonClick:function(page){
var _ba3=dojo.widget.byId(this.containerId);
_ba3.closeChild(page);
},onKey:function(evt){
if((evt.keyCode==evt.KEY_RIGHT_ARROW)||(evt.keyCode==evt.KEY_LEFT_ARROW)){
var _ba5=0;
var next=null;
var _ba5=dojo.lang.find(this.children,this.pane2button[this._currentChild]);
if(evt.keyCode==evt.KEY_RIGHT_ARROW){
next=this.children[(_ba5+1)%this.children.length];
}else{
next=this.children[(_ba5+(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.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:32337,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,_bab,_bac,_bad,_bae){
if(this.isShowingNow){
return;
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.aboutToShow();
var _baf=false,node,_bb1;
if(typeof x=="object"){
node=x;
_bb1=_bac;
_bac=_bab;
_bab=y;
_baf=true;
}
this.parent=_bab;
dojo.body().appendChild(this.domNode);
_bac=_bac||_bab["domNode"]||[];
var _bb2=null;
this.isTopLevel=true;
while(_bab){
if(_bab!==this&&(_bab.setOpenedSubpopup!=undefined&&_bab.applyPopupBasicStyle!=undefined)){
_bb2=_bab;
this.isTopLevel=false;
_bb2.setOpenedSubpopup(this);
break;
}
_bab=_bab.parent;
}
this.parentPopup=_bb2;
this.popupIndex=_bb2?_bb2.popupIndex+1:1;
if(this.isTopLevel){
var _bb3=dojo.html.isNode(_bac)?_bac:null;
dojo.widget.PopupManager.opened(this,_bb3);
}
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(_bac instanceof Array){
_bac={left:_bac[0],top:_bac[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_baf){
this.move(node,_bae,_bb1);
}else{
this.move(x,y,_bae,_bad);
}
this.domNode.style.display="none";
this.explodeSrc=_bac;
this.domNode.setAttribute("id","hover-container"+this.connectId);
this.set_product_hover_position("hover-container"+this.connectId,this._connectNode);
this.domNode.setAttribute("id","hover-container");
this.isShowingNow=true;
},move:function(x,y,_bb6,_bb7){
var _bb8=(typeof x=="object");
if(_bb8){
var _bb9=_bb6;
var node=x;
_bb6=y;
if(!_bb9){
_bb9={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_bb6,this.aroundBox,_bb9);
}else{
if(!_bb7){
_bb7="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_bb6,true,_bb7);
}
},close:function(_bbb){
if(_bbb){
this.domNode.style.display="none";
$(".hover-arrow").hide();
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_bbb);
this.hide();
$(".hover-arrow").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(_bbc){
if(this.parentPopup){
this.parentPopup.closeAll(_bbc);
}else{
this.close(_bbc);
}
},setOpenedSubpopup:function(_bbd){
this.currentSubpopup=_bbd;
},closeSubpopup:function(_bbe){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_bbe);
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.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=true;
this.registeredWindows.push(win);
}
};
this.registerAllWindows=function(_bc2){
if(!_bc2){
_bc2=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_bc2);
for(var i=0;i<_bc2.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_bc2.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,_bc9){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_bc9;
};
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 _bce=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.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 _bd0=document.createElement("span");
dojo.html.insertBefore(_bd0,this.domNode);
}
dojo.body().appendChild(this.domNode);
this._sizeMyselfHelper();
if(_bd0){
dojo.html.insertBefore(this.domNode,_bd0);
dojo.html.removeNode(_bd0);
}
},_sizeMyselfHelper:function(){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _bd2=this.height*this.width2height;
this.containerNode.style.left=_bd2+"px";
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height;
this.leftImage.width=this.rightImage.width=_bd2+1;
this.centerImage.width=this.containerWidth;
this.centerImage.style.left=_bd2+"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*_bd2)+"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(_bdf){
this.leftImage.src=dojo.uri.dojoUri(_bdf+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_bdf+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_bdf+"r.gif");
},_toggleMenu:function(_be0){
var menu=dojo.widget.getWidgetById(_be0);
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(_be3){
this.caption=_be3;
this.containerNode.innerHTML=_be3;
this._sizeMyself();
},setDisabled:function(_be4){
this.disabled=_be4;
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 _be8=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=_be8+1;
this.centerImage.width=this.containerWidth;
this.buttonNode.style.height=this.height+"px";
this.buttonNode.style.width=_be8+this.containerWidth+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
this.arrowBackgroundImage.width=this.arrowWidth;
this.rightImage.width=_be8+1;
this.rightPart.style.height=this.height+"px";
this.rightPart.style.width=this.arrowWidth+_be8+"px";
this._setImageR(this.disabled?this.disabledImg:this.inactiveImg);
this.domNode.style.height=this.height+"px";
var _be9=this.containerWidth+this.splitWidth+this.arrowWidth+2*_be8;
this.domNode.style.width=_be9+"px";
},_setImage:function(_bea){
this.leftImage.src=dojo.uri.dojoUri(_bea+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_bea+"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(_bf0){
this.arrowBackgroundImage.src=dojo.uri.dojoUri(_bf0+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_bf0+"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,_bf5,_bf6){
dojo.widget.html.stabile.setup();
dojo.widget.html.stabile.widgetState[id]=_bf5;
if(_bf6){
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(_bf8){
dojo.widget.html.stabile._getStorage().value=dojo.widget.html.stabile.description(_bf8);
};
dojo.widget.html.stabile.description=function(v,_bfa){
var _bfb=dojo.widget.html.stabile._depth;
var _bfc=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(_bfb>=dojo.widget.html.stabile.depthLimit){
return "[ ... ]";
}
d="[";
var _bff=true;
dojo.widget.html.stabile._depth++;
for(var i=0;i<v.length;i++){
if(_bff){
_bff=false;
}else{
d+=",";
}
d+=arguments.callee(v[i],_bfa);
}
return d+"]";
}
if(v.constructor==Object||v.toString==_bfc){
if(_bfb>=dojo.widget.html.stabile.depthLimit){
return "{ ... }";
}
if(typeof (v.hasOwnProperty)!="function"&&v.prototype){
throw new Error("description: "+v+" not supported by script engine");
}
var _bff=true;
d="{";
dojo.widget.html.stabile._depth++;
for(var key in v){
if(v[key]==void (0)||typeof (v[key])=="function"){
continue;
}
if(_bff){
_bff=false;
}else{
d+=", ";
}
var kd=key;
if(!kd.match(/^[a-zA-Z_][a-zA-Z0-9_]*$/)){
kd=arguments.callee(key,_bfa);
}
d+=kd+": "+arguments.callee(v[key],_bfa);
}
return d+"}";
}
if(_bfa){
if(dojo.widget.html.stabile._recur){
var _c03=Object.prototype.toString;
return _c03.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=_bfb;
}
};
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.ComboBox");
dojo.declare("dojo.widget.incrementalComboBoxDataProvider",null,function(_c05){
this.searchUrl=_c05.dataUrl;
this._cache={};
this._inFlight=false;
this._lastRequest=null;
this.allowCache=false;
},{_addToCache:function(_c06,data){
if(this.allowCache){
this._cache[_c06]=data;
}
},startSearch:function(_c08,_c09){
if(this._inFlight){
}
var tss=encodeURIComponent(_c08);
var _c0b=dojo.string.substituteParams(this.searchUrl,{"searchString":tss});
var _c0c=this;
var _c0d=this._lastRequest=dojo.io.bind({url:_c0b,method:"get",mimetype:"text/json",load:function(type,data,evt){
_c0c._inFlight=false;
if(!dojo.lang.isArray(data)){
var _c11=[];
for(var key in data){
_c11.push([data[key],key]);
}
data=_c11;
}
_c0c._addToCache(_c08,data);
if(_c0d==_c0c._lastRequest){
_c09(data);
}
}});
this._inFlight=true;
}});
dojo.declare("dojo.widget.basicComboBoxDataProvider",null,function(_c13,node){
this._data=[];
this.searchLimit=30;
this.searchType="STARTSTRING";
this.caseSensitive=false;
if(!dj_undef("dataUrl",_c13)&&!dojo.string.isBlank(_c13.dataUrl)){
this._getData(_c13.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 _c1a=[String(text),String(opts[x].value)];
data.push(_c1a);
if(opts[x].selected){
_c13.setAllValues(_c1a[0],_c1a[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 _c1f=[];
for(var key in data){
_c1f.push([data[key],key]);
}
data=_c1f;
}
this.setData(data);
}),mimetype:"text/json"});
},startSearch:function(_c21,_c22){
this._performSearch(_c21,_c22);
},_performSearch:function(_c23,_c24){
var st=this.searchType;
var ret=[];
if(!this.caseSensitive){
_c23=_c23.toLowerCase();
}
for(var x=0;x<this._data.length;x++){
if((this.searchLimit>0)&&(ret.length>=this.searchLimit)){
break;
}
var _c28=new String((!this.caseSensitive)?this._data[x][0].toLowerCase():this._data[x][0]);
if(_c28.length<_c23.length){
continue;
}
if(st=="STARTSTRING"){
if(_c23==_c28.substr(0,_c23.length)){
ret.push(this._data[x]);
}
}else{
if(st=="SUBSTRING"){
if(_c28.indexOf(_c23)>=0){
ret.push(this._data[x]);
}
}else{
if(st=="STARTWORD"){
var idx=_c28.indexOf(_c23);
if(idx==0){
ret.push(this._data[x]);
}
if(idx<=0){
continue;
}
var _c2a=false;
while(idx!=-1){
if(" ,/(".indexOf(_c28.charAt(idx-1))!=-1){
_c2a=true;
break;
}
idx=_c28.indexOf(_c23,idx+1);
}
if(!_c2a){
continue;
}else{
ret.push(this._data[x]);
}
}
}
}
}
_c24(ret);
},setData:function(_c2b){
this._data=_c2b;
}});
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(_c2c){
this.comboBoxValue.value=_c2c;
if(this.textInputNode.value!=_c2c){
this.textInputNode.value=_c2c;
dojo.widget.html.stabile.setState(this.widgetId,this.getState(),true);
this.onValueChanged(_c2c);
}
},onValueChanged:function(_c2d){
},getValue:function(){
return this.comboBoxValue.value;
},getState:function(){
return {value:this.getValue()};
},setState:function(_c2e){
this.setValue(_c2e.value);
},enable:function(){
this.disabled=false;
this.textInputNode.removeAttribute("disabled");
},disable:function(){
this.disabled=true;
this.textInputNode.setAttribute("disabled",true);
},_getCaretPos:function(_c2f){
if(dojo.lang.isNumber(_c2f.selectionStart)){
return _c2f.selectionStart;
}else{
if(dojo.render.html.ie){
var tr=document.selection.createRange().duplicate();
var ntr=_c2f.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(_c32,_c33){
_c33=parseInt(_c33);
this._setSelectedRange(_c32,_c33,_c33);
},_setSelectedRange:function(_c34,_c35,end){
if(!end){
end=_c34.value.length;
}
if(_c34.setSelectionRange){
_c34.focus();
_c34.setSelectionRange(_c35,end);
}else{
if(_c34.createTextRange){
var _c37=_c34.createTextRange();
with(_c37){
collapse(true);
moveEnd("character",end);
moveStart("character",_c35);
select();
}
}else{
_c34.value=_c34.value;
_c34.blur();
_c34.focus();
var dist=parseInt(_c34.value.length)-end;
var _c39=String.fromCharCode(37);
var tcc=_c39.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);
_c34.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 _c3f=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();
_c3f=false;
}
break;
case k.KEY_RIGHT_ARROW:
case k.KEY_LEFT_ARROW:
_c3f=false;
break;
default:
if(evt.charCode==0){
_c3f=false;
}
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_c3f){
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(_c42){
this.comboBoxSelectionValue.value=_c42;
},setAllValues:function(_c43,_c44){
this.setSelectedValue(_c44);
this.setValue(_c43);
},_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 _c48=dojo.html.getContentBox(this.textInputNode);
if(_c48.height<=0){
dojo.lang.setTimeout(this,"onResize",100);
return;
}
var _c49={width:_c48.height,height:_c48.height};
dojo.html.setContentBox(this.downArrowNode,_c49);
},fillInTemplate:function(args,frag){
dojo.html.applyBrowserClass(this.domNode);
var _c4c=this.getFragNodeRef(frag);
if(!this.name&&_c4c.name){
this.name=_c4c.name;
}
this.comboBoxValue.name=this.name;
this.comboBoxSelectionValue.name=this.name+"_selected";
dojo.html.copyStyle(this.domNode,_c4c);
dojo.html.copyStyle(this.textInputNode,_c4c);
dojo.html.copyStyle(this.downArrowNode,_c4c);
with(this.downArrowNode.style){
width="0px";
height="0px";
}
var _c4d;
if(this.dataProviderClass){
if(typeof this.dataProviderClass=="string"){
_c4d=dojo.evalObjPath(this.dataProviderClass);
}else{
_c4d=this.dataProviderClass;
}
}else{
if(this.mode=="remote"){
_c4d=dojo.widget.incrementalComboBoxDataProvider;
}else{
_c4d=dojo.widget.basicComboBoxDataProvider;
}
}
this.dataProvider=new _c4d(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(_c4e){
if(this.disabled){
return;
}
this._clearResultList();
if(!_c4e.length){
this._hideResultList();
}
if((this.autoComplete)&&(_c4e.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+=_c4e[0][0].substr(cpos);
this._setSelectedRange(this.textInputNode,cpos,this.textInputNode.value.length);
}
}
var even=true;
while(_c4e.length){
var tr=_c4e.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(_c53,_c54){
if(this.blurTimer&&(_c53||_c54)){
clearTimeout(this.blurTimer);
}
if(_c54){
this.blurTimer=dojo.lang.setTimeout(this,"_checkBlurred",_c54);
}
},_onMouseOver:function(evt){
if(!this._mouseover_list){
this._handleBlurTimer(true,0);
this._mouseover_list=true;
}
},_onMouseOut:function(evt){
var _c57=evt.relatedTarget;
try{
if(!_c57||_c57.parentNode!=this.optionsListNode){
this._mouseover_list=false;
this._handleBlurTimer(true,100);
this._tryFocus();
}
}
catch(e){
}
},_isInputEqualToResult:function(_c58){
var _c59=this.textInputNode.value;
if(!this.dataProvider.caseSensitive){
_c59=_c59.toLowerCase();
_c58=_c58.toLowerCase();
}
return (_c59==_c58);
},_isValidOption:function(){
var tgt=dojo.html.firstElement(this.optionsListNode);
var _c5b=false;
while(!_c5b&&tgt){
if(this._isInputEqualToResult(tgt.getAttribute("resultName"))){
_c5b=true;
}else{
tgt=dojo.html.nextElement(tgt);
}
}
return _c5b;
},_checkBlurred:function(){
if(!this._hasFocus&&!this._mouseover_list){
this._hideResultList();
if(!this.textInputNode.value.length){
this.setAllValues("","");
return;
}
var _c5c=this._isValidOption();
if(this.forceValidOption&&!_c5c){
this.setAllValues("","");
return;
}
if(!_c5c){
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 _c5f=this.optionsListNode.childNodes;
if(_c5f.length){
var _c60=Math.min(_c5f.length,this.maxListLength);
with(this.optionsListNode.style){
display="";
if(_c60==_c5f.length){
height="";
}else{
height=_c60*dojo.html.getMarginBox(_c5f[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.Checkbox");
dojo.widget.defineWidget("dojo.widget.Checkbox",dojo.widget.HtmlWidget,{templateString:"<span style=\"display: inline-block;\" tabIndex=\"${this.tabIndex}\" waiRole=\"checkbox\" id=\"${this.id}\">\n	<img dojoAttachPoint=\"imageNode\" class=\"dojoHtmlCheckbox\" src=\"${dojoRoot}src/widget/templates/images/blank.gif\" alt=\"\" />\n	<input type=\"checkbox\" name=\"${this.name}\" style=\"display: none\" value=\"${this.value}\"\n		dojoAttachPoint=\"inputNode\">\n</span>",templateCssString:".dojoHtmlCheckbox {\n	border: 0px;\n	width: 16px;\n	height: 16px;\n	margin: 2px;\n	vertical-align: middle;\n}\n\n.dojoHtmlCheckboxOn {\n	background: url(check.gif) 0px 0px;\n}\n.dojoHtmlCheckboxOff {\n	background: url(check.gif) -16px 0px;\n}\n.dojoHtmlCheckboxDisabledOn {\n	background: url(check.gif) -32px 0px;\n}\n.dojoHtmlCheckboxDisabledOff {\n	background: url(check.gif) -48px 0px;\n}\n.dojoHtmlCheckboxOnHover {\n	background: url(check.gif) -64px 0px;\n}\n.dojoHtmlCheckboxOffHover {\n	background: url(check.gif) -80px 0px;\n}",templateCssPath:dojo.uri.dojoUri("src/widget/templates/Checkbox.css"),name:"",id:"",checked:false,tabIndex:"",value:"on",postMixInProperties:function(){
dojo.widget.Checkbox.superclass.postMixInProperties.apply(this,arguments);
if(!this.disabled&&this.tabIndex==""){
this.tabIndex="0";
}
},fillInTemplate:function(){
this._setInfo();
},postCreate:function(){
var _c63=true;
this.id=this.id!=""?this.id:this.widgetId;
if(this.id!=""){
var _c64=document.getElementsByTagName("label");
if(_c64!=null&&_c64.length>0){
for(var i=0;i<_c64.length;i++){
if(_c64[i].htmlFor==this.id){
_c64[i].id=(_c64[i].htmlFor+"label");
this._connectEvents(_c64[i]);
dojo.widget.wai.setAttr(this.domNode,"waiState","labelledby",_c64[i].id);
break;
}
}
}
}
this._connectEvents(this.domNode);
this.inputNode.checked=this.checked;
},_connectEvents:function(node){
dojo.event.connect(node,"onmouseover",this,"mouseOver");
dojo.event.connect(node,"onmouseout",this,"mouseOut");
dojo.event.connect(node,"onkey",this,"onKey");
dojo.event.connect(node,"onclick",this,"_onClick");
dojo.html.disableSelection(node);
},_onClick:function(e){
if(this.disabled==false){
this.checked=!this.checked;
this._setInfo();
}
e.preventDefault();
e.stopPropagation();
this.onClick();
},setValue:function(bool){
if(this.disabled==false){
this.checked=bool;
this._setInfo();
}
},onClick:function(){
},onKey:function(e){
var k=dojo.event.browser.keys;
if(e.key==" "){
this._onClick(e);
}
},mouseOver:function(e){
this._hover(e,true);
},mouseOut:function(e){
this._hover(e,false);
},_hover:function(e,_c6e){
if(this.disabled==false){
var _c6f=this.checked?"On":"Off";
var _c70="dojoHtmlCheckbox"+_c6f+"Hover";
if(_c6e){
dojo.html.addClass(this.imageNode,_c70);
}else{
dojo.html.removeClass(this.imageNode,_c70);
}
}
},_setInfo:function(){
var _c71="dojoHtmlCheckbox"+(this.disabled?"Disabled":"")+(this.checked?"On":"Off");
dojo.html.setClass(this.imageNode,"dojoHtmlCheckbox "+_c71);
this.inputNode.checked=this.checked;
if(this.disabled){
this.inputNode.setAttribute("disabled",true);
}else{
this.inputNode.removeAttribute("disabled");
}
dojo.widget.wai.setAttr(this.domNode,"waiState","checked",this.checked);
}});
dojo.widget.defineWidget("dojo.widget.a11y.Checkbox",dojo.widget.Checkbox,{templateString:"<span class='dojoHtmlCheckbox'>\n	<input type=\"checkbox\" name=\"${this.name}\" tabIndex=\"${this.tabIndex}\" id=\"${this.id}\" value=\"${this.value}\"\n		 dojoAttachEvent=\"onClick: _onClick;\" dojoAttachPoint=\"inputNode\"> \n</span>\n",fillInTemplate:function(){
},postCreate:function(args,frag){
this.inputNode.checked=this.checked;
if(this.disabled){
this.inputNode.setAttribute("disabled",true);
}
},_onClick:function(){
this.onClick();
}});
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,_c76){
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,_c7a){
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();
}
}},_c7a));
},_cacheSetting:function(_c80,_c81){
for(var x in this.bindArgs){
if(dojo.lang.isUndefined(_c80[x])){
_c80[x]=this.bindArgs[x];
}
}
if(dojo.lang.isUndefined(_c80.useCache)){
_c80.useCache=_c81;
}
if(dojo.lang.isUndefined(_c80.preventCache)){
_c80.preventCache=!_c81;
}
if(dojo.lang.isUndefined(_c80.mimetype)){
_c80.mimetype="text/html";
}
return _c80;
},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(_c86){
var st=this[_c86];
var err="";
var _c89=this.scriptScope||window;
for(var i=0;i<st.length;i++){
try{
st[i].call(_c89);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_c86]=[];
if(err.length){
var name=(_c86=="_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(_c90,obj,func){
if(typeof func=="undefined"){
_c90.push(obj);
}else{
_c90.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,_c9a,_c9b){
if(!_c9a){
_c9a="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[_c9a](e);
if(e.returnValue){
switch(_c9b){
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 _c9e=[],_c9f=[],tmp=[];
var _ca1=[],_ca2=[],attr=[],_ca4=[];
var str="",path="",fix="",_ca8="",tag="",_caa="";
if(!url){
url="./";
}
if(s){
var _cab=/<title[^>]*>([\s\S]*?)<\/title>/i;
while(_ca1=_cab.exec(s)){
_c9e.push(_ca1[1]);
s=s.substring(0,_ca1.index)+s.substr(_ca1.index+_ca1[0].length);
}
if(this.adjustPaths){
var _cac=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
var _cad=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
var _cae=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
while(tag=_cac.exec(s)){
str+=s.substring(0,tag.index);
s=s.substring((tag.index+tag[0].length),s.length);
tag=tag[0];
_ca8="";
while(attr=_cad.exec(tag)){
path="";
_caa=attr[3];
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(_cae.exec(_caa)){
path=_caa;
}else{
path=(new dojo.uri.Uri(url,_caa).toString());
}
break;
case "style":
path=dojo.html.fixPathsInCssText(_caa,url);
break;
default:
path=_caa;
}
fix=" "+attr[1]+"="+attr[2]+path+attr[2];
_ca8+=tag.substring(0,attr.index)+fix;
tag=tag.substring((attr.index+attr[0].length),tag.length);
}
str+=_ca8+tag;
}
s=str+s;
}
_cab=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
while(_ca1=_cab.exec(s)){
if(_ca1[1]&&_ca1[1].toLowerCase()=="style"){
_ca4.push(dojo.html.fixPathsInCssText(_ca1[2],url));
}else{
if(attr=_ca1[3].match(/href=(['"]?)([^'">]*)\1/i)){
_ca4.push({path:attr[2]});
}
}
s=s.substring(0,_ca1.index)+s.substr(_ca1.index+_ca1[0].length);
}
var _cab=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _caf=/src=(['"]?)([^"']*)\1/i;
var _cb0=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
var _cb1=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
var _cb2=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
while(_ca1=_cab.exec(s)){
if(this.executeScripts&&_ca1[1]){
if(attr=_caf.exec(_ca1[1])){
if(_cb0.exec(attr[2])){
dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");
}else{
_c9f.push({path:attr[2]});
}
}
}
if(_ca1[2]){
var sc=_ca1[2].replace(_cb1,"");
if(!sc){
continue;
}
while(tmp=_cb2.exec(sc)){
_ca2.push(tmp[0]);
sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
}
if(this.executeScripts){
_c9f.push(sc);
}
}
s=s.substr(0,_ca1.index)+s.substr(_ca1.index+_ca1[0].length);
}
if(this.extractContent){
_ca1=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_ca1){
s=_ca1[1];
}
}
if(this.executeScripts&&this.scriptSeparation){
var _cab=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
var _cb4=/([\s'";:\(])scriptScope(.*)/;
str="";
while(tag=_cab.exec(s)){
tmp=((tag[3]=="'")?"\"":"'");
fix="";
str+=s.substring(0,tag.index)+tag[1];
while(attr=_cb4.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":_ca4,"titles":_c9e,"requires":_ca2,"scripts":_c9f,"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 _cba=this;
function asyncParse(){
if(_cba.executeScripts){
_cba._executeScripts(data.scripts);
}
if(_cba.parseContent){
var node=_cba.containerNode||_cba.domNode;
var _cbc=new dojo.xml.Parse();
var frag=_cbc.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_cba);
}
_cba.onResized();
_cba.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_cbe){
var fcn=dojo.lang.isFunction(_cbe)?_cbe:window[_cbe];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_cbe+"' 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(_cc1){
var self=this;
var tmp="",code="";
for(var i=0;i<_cc1.length;i++){
if(_cc1[i].path){
dojo.io.bind(this._cacheSetting({"url":_cc1[i].path,"load":function(type,_cc7){
dojo.lang.hitch(self,tmp=";"+_cc7);
},"error":function(type,_cc9){
_cc9.text=type+" downloading remote script";
self._handleDefaults.call(self,_cc9,"onExecError","debug");
},"mimetype":"text/plain","sync":true},this.cacheContent));
code+=tmp;
}else{
code+=_cc1[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,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 _ccf=this;
setTimeout(function(){
_ccf._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(_cd1){
if(arguments.length>=3){
_cd1=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]);
}else{
_cd1=new dojo.gfx.color.Color(_cd1);
}
this.bg.style.backgroundColor=_cd1.toString();
return this.bgColor=_cd1;
},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 _cd3=dojo.html.getViewport();
var h=_cd3.height;
var w=_cd3.width;
with(this.bg.style){
width=w+"px";
height=h+"px";
}
var _cd6=dojo.html.getScroll().offset;
this.bg.style.top=_cd6.y+"px";
this.bg.style.left=_cd6.x+"px";
var _cd3=dojo.html.getViewport();
if(_cd3.width!=w){
this.bg.style.width=_cd3.width+"px";
}
if(_cd3.height!=h){
this.bg.style.height=_cd3.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 _cd7=dojo.html.getScroll().offset;
var _cd8=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=_cd7.x+(_cd8.width-mb.width)/2;
var y=_cd7.y+(_cd8.height-mb.height)/2;
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.followScroll&&!this._scrollConnected){
this._scrollConnected=true;
dojo.event.connect(window,"onscroll",this,"_onScroll");
}
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;
dojo.event.disconnect(window,"onscroll",this,"_onScroll");
}
},_onScroll:function(){
var _cde=dojo.html.getScroll().offset;
this.bg.style.top=_cde.y+"px";
this.bg.style.left=_cde.x+"px";
this.placeModalDialog();
},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(_ce5,_ce6){
_ce5.setMonth(0);
_ce5.setDate(_ce6);
return _ce5;
};
dojo.date.getDayOfYear=function(_ce7){
var _ce8=_ce7.getFullYear();
var _ce9=new Date(_ce8-1,11,31);
return Math.floor((_ce7.getTime()-_ce9.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_cea,week,_cec){
if(arguments.length==1){
_cec=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_ced,_cee){
if(arguments.length==1){
_cee=0;
}
var _cef=new Date(_ced.getFullYear(),0,1);
var day=_cef.getDay();
_cef.setDate(_cef.getDate()-day+_cee-(day>_cee?7:0));
return Math.floor((_ced.getTime()-_cef.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_cf1,week,_cf3){
if(arguments.length==1){
_cf3=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_cf4,_cf5){
if(arguments.length==1){
_cf5=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(_cf6){
var _cf7=_cf6.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_cf7==1&&dojo.date.isLeapYear(_cf6)){
return 29;
}else{
return days[_cf7];
}
};
dojo.date.isLeapYear=function(_cf9){
var year=_cf9.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_cfb){
var str=_cfb.toString();
var tz="";
var _cfe;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_cfe=str.match(pat))){
tz=_cfe[1];
}else{
str=_cfb.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_cfe=str.match(pat))){
tz=_cfe[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_d01){
var date=_d01.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(_d03,_d04,_d05){
var dA=_d03;
var dB=_d04||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_d05||(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,_d0d,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(_d0d){
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 _d11=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;
_d11=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_d11=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*_d11)+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,_d19){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _d1a=dtB.getFullYear()-dtA.getFullYear();
var _d1b=(dtB.getMonth()-dtA.getMonth())+(_d1a*12);
var _d1c=dtB.getTime()-dtA.getTime();
var _d1d=_d1c/1000;
var _d1e=_d1d/60;
var _d1f=_d1e/60;
var _d20=_d1f/24;
var _d21=_d20/7;
var _d22=0;
with(dojo.date.dateParts){
switch(_d19){
case YEAR:
_d22=_d1a;
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+=(_d1a*4);
_d22=qB-qA;
break;
case MONTH:
_d22=_d1b;
break;
case WEEK:
_d22=parseInt(_d21);
break;
case DAY:
_d22=_d20;
break;
case WEEKDAY:
var days=Math.round(_d20);
var _d28=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_d28*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_d28=parseInt(days/7);
mod=days%7;
var _d2d=new Date(dtA);
_d2d.setDate(_d2d.getDate()+(_d28*7));
var _d2e=_d2d.getDay();
if(_d20>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 (_d2e+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_d20<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 (_d2e+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_d28*2);
}
_d22=days;
break;
case HOUR:
_d22=_d1f;
break;
case MINUTE:
_d22=_d1e;
break;
case SECOND:
_d22=_d1d;
break;
case MILLISECOND:
_d22=_d1c;
break;
default:
break;
}
}
return Math.round(_d22);
};
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_d2f){
var _d30={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};
_d2f=dojo.hostenv.normalizeLocale(_d2f);
var _d31=_d2f.split("-")[1];
var dow=_d30[_d31];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_d33){
var _d34={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 _d35={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};
_d33=dojo.hostenv.normalizeLocale(_d33);
var _d36=_d33.split("-")[1];
var _d37=_d34[_d36];
var end=_d35[_d36];
if(typeof _d37=="undefined"){
_d37=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:_d37,end:end};
};
dojo.date.isWeekend=function(_d39,_d3a){
var _d3b=dojo.date.getWeekend(_d3a);
var day=(_d39||new Date()).getDay();
if(_d3b.end<_d3b.start){
_d3b.end+=7;
if(day<_d3b.start){
day+=7;
}
}
return day>=_d3b.start&&day<=_d3b.end;
};
dojo.provide("dojo.date.format");
(function(){
dojo.date.format=function(_d3d,_d3e){
if(typeof _d3e=="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(_d3d,_d3e);
}
function formatPattern(_d3f,_d40){
return _d40.replace(/([a-z])\1*/ig,function(_d41){
var s;
var c=_d41.charAt(0);
var l=_d41.length;
var pad;
var _d46=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_d3f.getFullYear()<0?1:0];
break;
case "y":
s=_d3f.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((_d3f.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=_d3f.getMonth();
var _d49;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
_d49=_d46[l-3];
break;
}
if(_d49){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,_d49].join("-");
s=info[prop][m];
}
break;
case "w":
var _d4c=0;
s=dojo.date.getWeekOfYear(_d3f,_d4c);
pad=true;
break;
case "d":
s=_d3f.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_d3f);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_d3f.getDay();
var _d49;
switch(l){
case 1:
case 2:
if(c=="e"){
var _d4e=dojo.date.getFirstDayOfWeek(_d3e.locale);
d=(d-_d4e+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
_d49=_d46[l-3];
break;
}
if(_d49){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,_d49].join("-");
s=info[prop][d];
}
break;
case "a":
var _d4f=(_d3f.getHours()<12)?"am":"pm";
s=info[_d4f];
break;
case "h":
case "H":
case "K":
case "k":
var h=_d3f.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=_d3f.getMinutes();
pad=true;
break;
case "s":
s=_d3f.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_d3f.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_d3f);
if(s){
break;
}
l=4;
case "Z":
var _d51=_d3f.getTimezoneOffset();
var tz=[(_d51<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_d51)/60),2),dojo.string.pad(Math.abs(_d51)%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(_d41+" modifier not yet implemented");
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_d40);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_d3e=_d3e||{};
var _d53=dojo.hostenv.normalizeLocale(_d3e.locale);
var _d54=_d3e.formatLength||"full";
var info=dojo.date._getGregorianBundle(_d53);
var str=[];
var _d56=dojo.lang.curry(this,formatPattern,_d3d);
if(_d3e.selector!="timeOnly"){
var _d57=_d3e.datePattern||info["dateFormat-"+_d54];
if(_d57){
str.push(_processPattern(_d57,_d56));
}
}
if(_d3e.selector!="dateOnly"){
var _d58=_d3e.timePattern||info["timeFormat-"+_d54];
if(_d58){
str.push(_processPattern(_d58,_d56));
}
}
var _d59=str.join(" ");
return _d59;
};
dojo.date.parse=function(_d5a,_d5b){
_d5b=_d5b||{};
var _d5c=dojo.hostenv.normalizeLocale(_d5b.locale);
var info=dojo.date._getGregorianBundle(_d5c);
var _d5e=_d5b.formatLength||"full";
if(!_d5b.selector){
_d5b.selector="dateOnly";
}
var _d5f=_d5b.datePattern||info["dateFormat-"+_d5e];
var _d60=_d5b.timePattern||info["timeFormat-"+_d5e];
var _d61;
if(_d5b.selector=="dateOnly"){
_d61=_d5f;
}else{
if(_d5b.selector=="timeOnly"){
_d61=_d60;
}else{
if(_d5b.selector=="dateTime"){
_d61=_d5f+" "+_d60;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_d5b.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_d61=_d5f;
}
}
}
var _d63=[];
var _d64=_processPattern(_d61,dojo.lang.curry(this,_buildDateTimeRE,_d63,info,_d5b));
var _d65=new RegExp("^"+_d64+"$");
var _d66=_d65.exec(_d5a);
if(!_d66){
return null;
}
var _d67=["abbr","wide","narrow"];
var _d68=new Date(1972,0);
var _d69={};
for(var i=1;i<_d66.length;i++){
var grp=_d63[i-1];
var l=grp.length;
var v=_d66[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_d68.setFullYear(v);
_d69.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _d6f=year.substring(0,2)*100;
var _d70=Number(year.substring(2,4));
var _d71=Math.min(_d70+20,99);
var num=(v<_d71)?_d6f+v:_d6f-100+v;
_d68.setFullYear(num);
_d69.year=num;
}else{
if(_d5b.strict){
return null;
}
_d68.setFullYear(v);
_d69.year=v;
}
}
break;
case "M":
if(l>2){
if(!_d5b.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _d73=info["months-format-"+_d67[l-3]].concat();
for(var j=0;j<_d73.length;j++){
if(!_d5b.strict){
_d73[j]=_d73[j].toLowerCase();
}
if(v==_d73[j]){
_d68.setMonth(j);
_d69.month=j;
break;
}
}
if(j==_d73.length){
dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'.");
return null;
}
}else{
_d68.setMonth(v-1);
_d69.month=v-1;
}
break;
case "E":
case "e":
if(!_d5b.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_d67[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_d5b.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":
_d68.setDate(v);
_d69.date=v;
break;
case "a":
var am=_d5b.am||info.am;
var pm=_d5b.pm||info.pm;
if(!_d5b.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_d5b.strict&&v!=am&&v!=pm){
dojo.debug("dojo.date.parse: Could not parse am/pm part.");
return null;
}
var _d78=_d68.getHours();
if(v==pm&&_d78<12){
_d68.setHours(_d78+12);
}else{
if(v==am&&_d78==12){
_d68.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;
}
_d68.setHours(v);
break;
case "m":
_d68.setMinutes(v);
break;
case "s":
_d68.setSeconds(v);
break;
case "S":
_d68.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_d69.year&&_d68.getFullYear()!=_d69.year){
dojo.debug("Parsed year: '"+_d68.getFullYear()+"' did not match input year: '"+_d69.year+"'.");
return null;
}
if(_d69.month&&_d68.getMonth()!=_d69.month){
dojo.debug("Parsed month: '"+_d68.getMonth()+"' did not match input month: '"+_d69.month+"'.");
return null;
}
if(_d69.date&&_d68.getDate()!=_d69.date){
dojo.debug("Parsed day of month: '"+_d68.getDate()+"' did not match input day of month: '"+_d69.date+"'.");
return null;
}
return _d68;
};
function _processPattern(_d79,_d7a,_d7b,_d7c){
var _d7d=function(x){
return x;
};
_d7a=_d7a||_d7d;
_d7b=_d7b||_d7d;
_d7c=_d7c||_d7d;
var _d7f=_d79.match(/(''|[^'])+/g);
var _d80=false;
for(var i=0;i<_d7f.length;i++){
if(!_d7f[i]){
_d7f[i]="";
}else{
_d7f[i]=(_d80?_d7b:_d7a)(_d7f[i]);
_d80=!_d80;
}
}
return _d7c(_d7f.join(""));
}
function _buildDateTimeRE(_d82,info,_d84,_d85){
return _d85.replace(/([a-z])\1*/ig,function(_d86){
var s;
var c=_d86.charAt(0);
var l=_d86.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=_d84.am||info.am||"AM";
var pm=_d84.pm||info.pm||"PM";
if(_d84.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="+_d85);
}
if(_d82){
_d82.push(_d86);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_d8c,_d8d,_d8e){
var _d8f=null;
function _(s,n){
return dojo.string.pad(s,n||2,_d8f||"0");
}
var info=dojo.date._getGregorianBundle(_d8e);
function $(_d93){
switch(_d93){
case "a":
return dojo.date.getDayShortName(_d8c,_d8e);
case "A":
return dojo.date.getDayName(_d8c,_d8e);
case "b":
case "h":
return dojo.date.getMonthShortName(_d8c,_d8e);
case "B":
return dojo.date.getMonthName(_d8c,_d8e);
case "c":
return dojo.date.format(_d8c,{locale:_d8e});
case "C":
return _(Math.floor(_d8c.getFullYear()/100));
case "d":
return _(_d8c.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_d8f==null){
_d8f=" ";
}
return _(_d8c.getDate());
case "f":
if(_d8f==null){
_d8f=" ";
}
return _(_d8c.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_d8c.getHours());
case "I":
return _(_d8c.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_d8c),3);
case "k":
if(_d8f==null){
_d8f=" ";
}
return _(_d8c.getHours());
case "l":
if(_d8f==null){
_d8f=" ";
}
return _(_d8c.getHours()%12||12);
case "m":
return _(_d8c.getMonth()+1);
case "M":
return _(_d8c.getMinutes());
case "n":
return "\n";
case "p":
return info[_d8c.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_d8c.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_d8c.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_d8c));
case "V":
return _(dojo.date.getIsoWeekOfYear(_d8c));
case "W":
return _(dojo.date.getWeekOfYear(_d8c,1));
case "w":
return String(_d8c.getDay());
case "x":
return dojo.date.format(_d8c,{selector:"dateOnly",locale:_d8e});
case "X":
return dojo.date.format(_d8c,{selector:"timeOnly",locale:_d8e});
case "y":
return _(_d8c.getFullYear()%100);
case "Y":
return String(_d8c.getFullYear());
case "z":
var _d94=_d8c.getTimezoneOffset();
return (_d94>0?"-":"+")+_(Math.floor(Math.abs(_d94)/60))+":"+_(Math.abs(_d94)%60);
case "Z":
return dojo.date.getTimezoneName(_d8c);
case "%":
return "%";
}
}
var _d95="";
var i=0;
var _d97=0;
var _d98=null;
while((_d97=_d8d.indexOf("%",i))!=-1){
_d95+=_d8d.substring(i,_d97++);
switch(_d8d.charAt(_d97++)){
case "_":
_d8f=" ";
break;
case "-":
_d8f="";
break;
case "0":
_d8f="0";
break;
case "^":
_d98="upper";
break;
case "*":
_d98="lower";
break;
case "#":
_d98="swap";
break;
default:
_d8f=null;
_d97--;
break;
}
var _d99=$(_d8d.charAt(_d97++));
switch(_d98){
case "upper":
_d99=_d99.toUpperCase();
break;
case "lower":
_d99=_d99.toLowerCase();
break;
case "swap":
var _d9a=_d99.toLowerCase();
var _d9b="";
var j=0;
var ch="";
while(j<_d99.length){
ch=_d99.charAt(j);
_d9b+=(ch==_d9a.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_d99=_d9b;
break;
default:
break;
}
_d98=null;
_d95+=_d99;
i=_d97;
}
_d95+=_d8d.substring(i);
return _d95;
};
(function(){
var _d9e=[];
dojo.date.addCustomFormats=function(_d9f,_da0){
_d9e.push({pkg:_d9f,name:_da0});
};
dojo.date._getGregorianBundle=function(_da1){
var _da2={};
dojo.lang.forEach(_d9e,function(desc){
var _da4=dojo.i18n.getLocalization(desc.pkg,desc.name,_da1);
_da2=dojo.lang.mixin(_da2,_da4);
},this);
return _da2;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");
dojo.date.getNames=function(item,type,use,_da8){
var _da9;
var _daa=dojo.date._getGregorianBundle(_da8);
var _dab=[item,use,type];
if(use=="standAlone"){
_da9=_daa[_dab.join("-")];
}
_dab[1]="format";
return (_da9||_daa[_dab.join("-")]).concat();
};
dojo.date.getDayName=function(_dac,_dad){
return dojo.date.getNames("days","wide","format",_dad)[_dac.getDay()];
};
dojo.date.getDayShortName=function(_dae,_daf){
return dojo.date.getNames("days","abbr","format",_daf)[_dae.getDay()];
};
dojo.date.getMonthName=function(_db0,_db1){
return dojo.date.getNames("months","wide","format",_db1)[_db0.getMonth()];
};
dojo.date.getMonthShortName=function(_db2,_db3){
return dojo.date.getNames("months","abbr","format",_db3)[_db2.getMonth()];
};
dojo.date.toRelativeString=function(_db4){
var now=new Date();
var diff=(now-_db4)/1000;
var end=" ago";
var _db8=false;
if(diff<0){
_db8=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 _db8?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_db4);
};
dojo.date.toSql=function(_db9,_dba){
return dojo.date.strftime(_db9,"%F"+!_dba?" %T":"");
};
dojo.date.fromSql=function(_dbb){
var _dbc=_dbb.split(/[\- :]/g);
while(_dbc.length<6){
_dbc.push(0);
}
return new Date(_dbc[0],(parseInt(_dbc[1],10)-1),_dbc[2],_dbc[3],_dbc[4],_dbc[5]);
};
dojo.provide("dojo.date.serialize");
dojo.date.setIso8601=function(_dbd,_dbe){
var _dbf=(_dbe.indexOf("T")==-1)?_dbe.split(" "):_dbe.split("T");
_dbd=dojo.date.setIso8601Date(_dbd,_dbf[0]);
if(_dbf.length==2){
_dbd=dojo.date.setIso8601Time(_dbd,_dbf[1]);
}
return _dbd;
};
dojo.date.fromIso8601=function(_dc0){
return dojo.date.setIso8601(new Date(0,0),_dc0);
};
dojo.date.setIso8601Date=function(_dc1,_dc2){
var _dc3="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_dc2.match(new RegExp(_dc3));
if(!d){
dojo.debug("invalid date string: "+_dc2);
return null;
}
var year=d[1];
var _dc6=d[4];
var date=d[6];
var _dc8=d[8];
var week=d[10];
var _dca=d[12]?d[12]:1;
_dc1.setFullYear(year);
if(_dc8){
_dc1.setMonth(0);
_dc1.setDate(Number(_dc8));
}else{
if(week){
_dc1.setMonth(0);
_dc1.setDate(1);
var gd=_dc1.getDay();
var day=gd?gd:7;
var _dcd=Number(_dca)+(7*Number(week));
if(day<=4){
_dc1.setDate(_dcd+1-day);
}else{
_dc1.setDate(_dcd+8-day);
}
}else{
if(_dc6){
_dc1.setDate(1);
_dc1.setMonth(_dc6-1);
}
if(date){
_dc1.setDate(date);
}
}
}
return _dc1;
};
dojo.date.fromIso8601Date=function(_dce){
return dojo.date.setIso8601Date(new Date(0,0),_dce);
};
dojo.date.setIso8601Time=function(_dcf,_dd0){
var _dd1="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_dd0.match(new RegExp(_dd1));
var _dd3=0;
if(d){
if(d[0]!="Z"){
_dd3=(Number(d[3])*60)+Number(d[5]);
_dd3*=((d[2]=="-")?1:-1);
}
_dd3-=_dcf.getTimezoneOffset();
_dd0=_dd0.substr(0,_dd0.length-d[0].length);
}
var _dd4="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
d=_dd0.match(new RegExp(_dd4));
if(!d){
dojo.debug("invalid time string: "+_dd0);
return null;
}
var _dd5=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;
_dcf.setHours(_dd5);
_dcf.setMinutes(mins);
_dcf.setSeconds(secs);
_dcf.setMilliseconds(ms);
if(_dd3!==0){
_dcf.setTime(_dcf.getTime()+_dd3*60000);
}
return _dcf;
};
dojo.date.fromIso8601Time=function(_dd9){
return dojo.date.setIso8601Time(new Date(0,0),_dd9);
};
dojo.date.toRfc3339=function(_dda,_ddb){
if(!_dda){
_dda=new Date();
}
var _=dojo.string.pad;
var _ddd=[];
if(_ddb!="timeOnly"){
var date=[_(_dda.getFullYear(),4),_(_dda.getMonth()+1,2),_(_dda.getDate(),2)].join("-");
_ddd.push(date);
}
if(_ddb!="dateOnly"){
var time=[_(_dda.getHours(),2),_(_dda.getMinutes(),2),_(_dda.getSeconds(),2)].join(":");
var _de0=_dda.getTimezoneOffset();
time+=(_de0>0?"-":"+")+_(Math.floor(Math.abs(_de0)/60),2)+":"+_(Math.abs(_de0)%60,2);
_ddd.push(time);
}
return _ddd.join("T");
};
dojo.date.fromRfc3339=function(_de1){
if(_de1.indexOf("Tany")!=-1){
_de1=_de1.replace("Tany","");
}
var _de2=new Date();
return dojo.date.setIso8601(_de2,_de1);
};
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 _de5=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_de5);
this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate);
this._preInitUI(this.value?this.value:this.today,false,true);
var _de6=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang));
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
_de6.push(_de6.shift());
}
}
var _de8=this.dayLabelsRow.getElementsByTagName("td");
for(i=0;i<7;i++){
_de8.item(i).innerHTML=_de6[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(_de9){
this.setDate(_de9);
},setDate:function(_dea){
if(typeof _dea=="string"){
this.value=dojo.date.fromRfc3339(_dea);
}else{
this.value=new Date(_dea);
}
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(_deb,_dec,_ded){
if(_deb<this.startDate||_deb>this.endDate){
_deb=new Date((_deb<this.startDate)?this.startDate:this.endDate);
}
this.firstDay=this._initFirstDay(_deb,_dec);
this.selectedIsUsed=false;
this.currentIsUsed=false;
var _dee=new Date(this.firstDay);
var _def=_dee.getMonth();
this.curMonth=new Date(_dee);
this.curMonth.setDate(_dee.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(_dee,this.endDate,dojo.date.dateParts.DAY)>days){
this._preInitUI(this.startDate,true,false);
_dee=new Date(this.firstDay);
}
this.curMonth=new Date(_dee);
this.curMonth.setDate(_dee.getDate()+6);
this.curMonth.setDate(1);
var _df1=(_dee.getMonth()==this.curMonth.getMonth())?"current":"previous";
}
if(_ded){
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 _df4=new Date(this.firstDay);
this._setMonthLabel(this.curMonth.getMonth());
this._setYearLabels(this.curMonth.getFullYear());
var _df5=this.calendarDatesContainerNode.getElementsByTagName("td");
var _df6=this.calendarDatesContainerNode.getElementsByTagName("tr");
var _df7;
for(i=0;i<days;i++){
_df7=_df5.item(i);
_df7.innerHTML=_df4.getDate();
var _df8=(_df4.getMonth()<this.curMonth.getMonth())?"previous":(_df4.getMonth()==this.curMonth.getMonth())?"current":"next";
var _df9=_df8;
if(this._isDisabledDate(_df4)){
var _dfa={previous:"disabledPrevious",current:"disabledCurrent",next:"disabledNext"};
_df9=_dfa[_df8];
}
dojo.html.setClass(_df7,this._getDateClassName(_df4,_df9));
if(dojo.html.hasClass(_df7,this.classNames.selectedDate)){
this.selectedNode=_df7;
}
_df4=dojo.date.add(_df4,dojo.date.dateParts.DAY,1);
}
this.lastDay=dojo.date.add(_df4,dojo.date.dateParts.DAY,-1);
this._initControls();
},_initControls:function(){
var d=this.firstDay;
var d2=this.lastDay;
var _dfd,_dfe,_dff,_e00,_e01,_e02;
_dfd=_dfe=_dff=_e00=_e01=_e02=!this.staticDisplay;
with(dojo.date.dateParts){
var add=dojo.date.add;
if(_dfd&&add(d,DAY,(-1*(this._getAdjustedDay(d)+1)))<this.startDate){
_dfd=_dff=_e01=false;
}
if(_dfe&&d2>this.endDate){
_dfe=_e00=_e02=false;
}
if(_dff&&add(d,DAY,-1)<this.startDate){
_dff=_e01=false;
}
if(_e00&&add(d2,DAY,1)>this.endDate){
_e00=_e02=false;
}
if(_e01&&add(d2,YEAR,-1)<this.startDate){
_e01=false;
}
if(_e02&&add(d,YEAR,1)>this.endDate){
_e02=false;
}
}
function enableControl(node,_e05){
dojo.html.setVisibility(node,_e05?"":"hidden");
}
enableControl(this.decreaseWeekNode,_dfd);
enableControl(this.increaseWeekNode,_dfe);
enableControl(this.decreaseMonthNode,_dff);
enableControl(this.increaseMonthNode,_e00);
enableControl(this.previousYearLabelNode,_e01);
enableControl(this.nextYearLabelNode,_e02);
},_incrementWeek:function(evt){
var d=new Date(this.firstDay);
switch(evt.target){
case this.increaseWeekNode.getElementsByTagName("img").item(0):
case this.increaseWeekNode:
var _e08=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
if(_e08<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 _e0b=new Date(this.firstDay);
switch(evt.currentTarget){
case this.increaseMonthNode.getElementsByTagName("img").item(0):
case this.increaseMonthNode:
_e0b=dojo.date.add(_e0b,dojo.date.dateParts.DAY,this.displayWeeks*7);
if(_e0b<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
}else{
var _e0c=true;
}
break;
case this.decreaseMonthNode.getElementsByTagName("img").item(0):
case this.decreaseMonthNode:
if(_e0b>this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
}else{
var _e0d=true;
}
break;
}
if(_e0d){
d=new Date(this.startDate);
}else{
if(_e0c){
d=new Date(this.endDate);
}
}
this._preInitUI(d,false,true);
},_incrementYear:function(evt){
var year=this.curMonth.getFullYear();
var _e10=new Date(this.firstDay);
switch(evt.target){
case this.nextYearLabelNode:
_e10=dojo.date.add(_e10,dojo.date.dateParts.YEAR,1);
if(_e10<this.endDate){
year++;
}else{
var _e11=true;
}
break;
case this.previousYearLabelNode:
_e10=dojo.date.add(_e10,dojo.date.dateParts.YEAR,-1);
if(_e10>this.startDate){
year--;
}else{
var _e12=true;
}
break;
}
var d;
if(_e12){
d=new Date(this.startDate);
}else{
if(_e11){
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(_e17){
this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[_e17];
},_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,_e1d){
var _e1e=this.classNames[_e1d];
if((!this.selectedIsUsed&&this.value)&&(Number(date)==Number(this.value))){
_e1e=this.classNames.selectedDate+" "+_e1e;
this.selectedIsUsed=true;
}
if((!this.currentIsUsed)&&(Number(date)==Number(this.today))){
_e1e=_e1e+" "+this.classNames.currentDate;
this.currentIsUsed=true;
}
return _e1e;
},onClick:function(evt){
dojo.event.browser.stopEvent(evt);
},_handleUiClick:function(evt){
var _e21=evt.target;
if(_e21.nodeType!=dojo.dom.ELEMENT_NODE){
_e21=_e21.parentNode;
}
dojo.event.browser.stopEvent(evt);
this.selectedIsUsed=this.todayIsUsed=false;
var _e22=this.curMonth.getMonth();
var year=this.curMonth.getFullYear();
if(dojo.html.hasClass(_e21,this.classNames["disabledPrevious"])||dojo.html.hasClass(_e21,this.classNames["disabledCurrent"])||dojo.html.hasClass(_e21,this.classNames["disabledNext"])){
return;
}else{
if(dojo.html.hasClass(_e21,this.classNames["next"])){
_e22=++_e22%12;
if(_e22===0){
++year;
}
}else{
if(dojo.html.hasClass(_e21,this.classNames["previous"])){
_e22=--_e22%12;
if(_e22==11){
--year;
}
}
}
}
this.clickedNode=_e21;
this.setDate(new Date(year,_e22,_e21.innerHTML));
},onValueChanged:function(date){
},_isDisabledDate:function(_e25){
if(_e25<this.startDate||_e25>this.endDate){
return true;
}
return this.isDisabledDate(_e25,this.lang);
},isDisabledDate:function(_e26,_e27){
return false;
},_initFirstDay:function(_e28,adj){
var d=new Date(_e28);
if(!adj){
d.setDate(1);
}
d.setDate(d.getDate()-this._getAdjustedDay(d,this.weekStartsOn));
d.setHours(0,0,0,0);
return d;
},_getAdjustedDay:function(_e2b){
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[_e2b.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(_e2e,frag){
dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this,arguments);
var _e30=dojo.i18n.getLocalization("dojo.widget","DropdownDatePicker",this.lang);
this.iconAlt=_e30.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 _e34={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",_e34,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(_e35){
this.setDate(_e35);
},setDate:function(_e36){
this.datePicker.setDate(_e36);
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(_e37){
},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 _e38=dojo.string.trim(this.inputNode.value);
if(_e38){
var _e39=dojo.date.parse(_e38,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});
if(_e39){
this.setDate(_e39);
}
}else{
this.valueNode.value=_e38;
}
}
if(_e38){
this._updateText();
}
},_syncValueNode:function(){
var date=this.datePicker.value;
var _e3b="";
switch(this.saveFormat.toLowerCase()){
case "rfc":
case "iso":
case "":
_e3b=dojo.date.toRfc3339(date,"dateOnly");
break;
case "posix":
case "unix":
_e3b=Number(date);
break;
default:
if(date){
_e3b=dojo.date.format(date,{datePattern:this.saveFormat,selector:"dateOnly",locale:this.lang});
}
}
this.valueNode.value=_e3b;
},destroy:function(_e3c){
this.datePicker.destroy(_e3c);
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 _e3f in this.eventNames){
this.eventNames[_e3f]=this.widgetId+"/"+_e3f;
}
}
},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 _e41=this.getChildrenOfType(dojo.widget.MenuItem2);
for(var i=0;i<_e41.length;i++){
dojo.event.topic.subscribe(this.eventNames.open,_e41[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(_e46){
var node=dojo.byId(_e46);
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,_e50){
if(_e50){
_e50=dir>0?_e50.getNextSibling():_e50.getPreviousSibling();
}
for(var i=0;i<this.children.length;++i){
if(!_e50){
_e50=dir>0?this.children[0]:this.children[this.children.length-1];
}
if(_e50.onHover&&_e50.isShowing()){
return _e50;
}
_e50=dir>0?_e50.getNextSibling():_e50.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(_e56){
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(_e57){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_e57);
this.currentSubpopup=null;
this.currentSubmenuTrigger.is_open=false;
this.currentSubmenuTrigger._closedSubmenu(_e57);
this.currentSubmenuTrigger=null;
},_openSubmenu:function(_e58,_e59){
var _e5a=dojo.html.getAbsolutePosition(_e59.domNode,true);
var _e5b=dojo.html.getMarginBox(this.domNode).width;
var x=_e5a.x+_e5b-this.submenuOverlap;
var y=_e5a.y;
_e58.open(x,y,this,_e59.domNode);
this.currentSubmenuTrigger=_e59;
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 _e62=win._frameElement||win.frameElement;
if(_e62){
var cood=dojo.html.abs(_e62,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 _e64 in this.eventNames){
this.eventNames[_e64]=this.widgetId+"/"+_e64;
}
}
},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(_e65){
var _e66=false;
if(this.disabled){
return false;
}
if(this.submenuId){
if(!this.is_open){
this._stopSubmenuTimer();
this._openSubmenu();
}
_e66=true;
}else{
this.onUnhover();
this.parent.closeAll(true);
}
this.onClick();
dojo.event.topic.publish(this.eventNames.engage,this);
if(_e66&&_e65){
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 _e68=function(){
return function(){
self._openSubmenu();
};
}();
this.hover_timer=dojo.lang.setTimeout(_e68,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 _e69=dojo.widget.getWidgetById(this.submenuId);
if(_e69){
this.parent._openSubmenu(_e69,this);
}
},_closedSubmenu:function(){
this.onUnhover();
},setDisabled:function(_e6a){
this.disabled=_e6a;
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(_e6b){
}});
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(_e6c){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
this.closeSubpopup(_e6c);
},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(_e6f,_e70){
var _e71=dojo.html.getAbsolutePosition(_e70.domNode,true);
var _e72=dojo.html.getAbsolutePosition(this.domNode,true);
var _e73=dojo.html.getBorderBox(this.domNode).height;
var x=_e71.x;
var y=_e72.y+_e73-this.menuOverlap;
_e6f.open(x,y,this,_e70.domNode);
this.currentSubmenuTrigger=_e70;
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(_e76){
this.disabled=_e76;
if(this.disabled){
dojo.html.addClass(this.domNode,"dojoMenuBarItem2Disabled");
}else{
dojo.html.removeClass(this.domNode,"dojoMenuBarItem2Disabled");
}
}});
dojo.widget.Menu2.OperaAndKonqFixer=new function(){
var _e77=true;
var _e78=false;
if(!dojo.lang.isFunction(dojo.doc().oncontextmenu)){
dojo.doc().oncontextmenu=function(){
_e77=false;
_e78=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{
_e77=false;
}
if(_e78){
delete dojo.doc().oncontextmenu;
}
this.fixNode=function(node){
if(_e77){
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(_e77){
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.html.layout");
dojo.widget.html.layout=function(_e7f,_e80,_e81){
dojo.html.addClass(_e7f,"dojoLayoutContainer");
_e80=dojo.lang.filter(_e80,function(_e82,idx){
_e82.idx=idx;
return dojo.lang.inArray(["top","bottom","left","right","client","flood"],_e82.layoutAlign);
});
if(_e81&&_e81!="none"){
var rank=function(_e85){
switch(_e85.layoutAlign){
case "flood":
return 1;
case "left":
case "right":
return (_e81=="left-right")?2:3;
case "top":
case "bottom":
return (_e81=="left-right")?3:2;
default:
return 4;
}
};
_e80.sort(function(a,b){
return (rank(a)-rank(b))||(a.idx-b.idx);
});
}
var f={top:dojo.html.getPixelValue(_e7f,"padding-top",true),left:dojo.html.getPixelValue(_e7f,"padding-left",true)};
dojo.lang.mixin(f,dojo.html.getContentBox(_e7f));
dojo.lang.forEach(_e80,function(_e89){
var elm=_e89.domNode;
var pos=_e89.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(_e89.onResized){
_e89.onResized();
}
}else{
if(pos=="left"||pos=="right"){
var w=dojo.html.getMarginBox(elm).width;
if(_e89.resizeTo){
_e89.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(_e89.resizeTo){
_e89.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 _e91=this.labelPosition.replace(/-h/,"");
var _e92=[{domNode:this.tablist.domNode,layoutAlign:_e91},{domNode:this.containerNode,layoutAlign:"client"}];
dojo.widget.html.layout(this.domNode,_e92);
if(this.selectedChildWidget){
var _e93=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_e93.width,_e93.height);
}
},selectTab:function(tab,_e95){
dojo.deprecated("use selectChild() rather than selectTab(), selectTab() will be removed in","0.5");
this.selectChild(tab,_e95);
},onKey:function(e){
if(e.keyCode==e.KEY_UP_ARROW&&e.ctrlKey){
var _e97=this.correspondingTabButton||this.selectedTabWidget.tabButton;
_e97.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(_e99){
var _e9a=this;
var _e9b=false;
if(this.tree.strictFolders&&_e99==this.actions.ADDCHILD&&!this.isFolder){
_e9b=true;
}
if(dojo.lang.inArray(_e9a.actionsDisabled,_e99)){
_e9b=true;
}
if(this.isLocked()){
_e9b=true;
}
return _e9b;
},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(_ea0){
for(var i=0;i<this.children.length;i++){
this.children[i].adjustDepth(_ea0);
}
this.depth+=_ea0;
if(_ea0>0){
for(var i=0;i<_ea0;i++){
var img=this.tree.makeBlankImg();
this.imgs.unshift(img);
dojo.html.insertBefore(this.imgs[0],this.domNode.firstChild);
}
}
if(_ea0<0){
for(var i=0;i<-_ea0;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,_ea5){
this.tree=tree;
this.depth=_ea5;
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 _eac=this.parent;
for(var i=0;i<this.depth;i++){
var idx=this.imgs.length-(3+i);
var img=(this.tree.showGrid&&!_eac.isLastChild())?this.tree.gridIconSrcV:this.tree.blankIconSrc;
this.setGridImage(idx,img);
_eac=_eac.parent;
}
},updateExpandGridColumn:function(){
if(!this.tree.showGrid){
return;
}
var _eb0=this;
var icon=this.isLastChild()?this.tree.blankIconSrc:this.tree.gridIconSrcV;
dojo.lang.forEach(_eb0.getDescendants(),function(node){
node.setGridImage(_eb0.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(_eb5){
dojo.lang.mixin(this,_eb5);
if(_eb5.title){
this.titleNode.innerHTML=this.title;
}
if(_eb5.afterLabel){
this.afterLabelNode.innerHTML=this.afterLabel;
}
if(_eb5.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,_eb7,type,_eb9){
this.controller=_eb7;
this.treeNode=_eb9;
dojo.dnd.HtmlDragSource.call(this,node,type);
};
dojo.inherits(dojo.dnd.TreeDragSource,dojo.dnd.HtmlDragSource);
dojo.lang.extend(dojo.dnd.TreeDragSource,{onDragStart:function(){
var _eba=dojo.dnd.HtmlDragSource.prototype.onDragStart.call(this);
_eba.treeNode=this.treeNode;
_eba.onDragStart=dojo.lang.hitch(_eba,function(e){
this.savedSelectedNode=this.treeNode.tree.selector.selectedNode;
if(this.savedSelectedNode){
this.savedSelectedNode.unMarkSelected();
}
var _ebc=dojo.dnd.HtmlDragObject.prototype.onDragStart.apply(this,arguments);
var _ebd=this.dragClone.getElementsByTagName("img");
for(var i=0;i<_ebd.length;i++){
_ebd.item(i).style.backgroundImage="url()";
}
return _ebc;
});
_eba.onDragEnd=function(e){
if(this.savedSelectedNode){
this.savedSelectedNode.markSelected();
}
return dojo.dnd.HtmlDragObject.prototype.onDragEnd.apply(this,arguments);
};
return _eba;
},onDragEnd:function(e){
var res=dojo.dnd.HtmlDragSource.prototype.onDragEnd.call(this,e);
return res;
}});
dojo.dnd.TreeDropTarget=function(_ec2,_ec3,type,_ec5){
this.treeNode=_ec5;
this.controller=_ec3;
dojo.dnd.HtmlDropTarget.apply(this,[_ec2,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(_ec6){
if(this.position==_ec6){
return;
}
this.hideIndicator();
this.position=_ec6;
if(_ec6=="before"){
this.treeNode.labelNode.style.borderTop=this.indicatorStyle;
}else{
if(_ec6=="after"){
this.treeNode.labelNode.style.borderBottom=this.indicatorStyle;
}else{
if(_ec6=="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 _ec8=dojo.dnd.HtmlDropTarget.prototype.onDragOver.apply(this,arguments);
if(_ec8&&this.treeNode.isFolder&&!this.treeNode.isExpanded){
this.setAutoExpandTimer();
}
return _ec8;
},accepts:function(_ec9){
var _eca=dojo.dnd.HtmlDropTarget.prototype.accepts.apply(this,arguments);
if(!_eca){
return false;
}
var _ecb=_ec9[0].treeNode;
if(dojo.lang.isUndefined(_ecb)||!_ecb||!_ecb.isTreeNode){
dojo.raise("Source is not TreeNode or not found");
}
if(_ecb===this.treeNode){
return false;
}
return true;
},setAutoExpandTimer:function(){
var _ecc=this;
var _ecd=function(){
if(dojo.dnd.dragManager.currentDropTarget===_ecc){
_ecc.controller.expand(_ecc.treeNode);
}
};
this.autoExpandTimer=dojo.lang.setTimeout(_ecd,_ecc.autoExpandDelay);
},getDNDMode:function(){
return this.treeNode.tree.DNDMode;
},getAcceptPosition:function(e,_ecf){
var _ed0=this.getDNDMode();
if(_ed0&dojo.widget.Tree.prototype.DNDModes.ONTO&&!(!this.treeNode.actionIsDisabled(dojo.widget.TreeNode.prototype.actions.ADDCHILD)&&_ecf.parent!==this.treeNode&&this.controller.canMove(_ecf,this.treeNode))){
_ed0&=~dojo.widget.Tree.prototype.DNDModes.ONTO;
}
var _ed1=this.getPosition(e,_ed0);
if(_ed1=="onto"||(!this.isAdjacentNode(_ecf,_ed1)&&this.controller.canMove(_ecf,this.treeNode.parent))){
return _ed1;
}else{
return false;
}
},onDragOut:function(e){
this.clearAutoExpandTimer();
this.hideIndicator();
},clearAutoExpandTimer:function(){
if(this.autoExpandTimer){
clearTimeout(this.autoExpandTimer);
this.autoExpandTimer=null;
}
},onDragMove:function(e,_ed4){
var _ed5=_ed4[0].treeNode;
var _ed6=this.getAcceptPosition(e,_ed5);
if(_ed6){
this.showIndicator(_ed6);
}
},isAdjacentNode:function(_ed7,_ed8){
if(_ed7===this.treeNode){
return true;
}
if(_ed7.getNextSibling()===this.treeNode&&_ed8=="before"){
return true;
}
if(_ed7.getPreviousSibling()===this.treeNode&&_ed8=="after"){
return true;
}
return false;
},getPosition:function(e,_eda){
var node=dojo.byId(this.treeNode.labelNode);
var _edc=e.pageY||e.clientY+dojo.body().scrollTop;
var _edd=dojo.html.getAbsolutePosition(node).y;
var _ede=dojo.html.getBorderBox(node).height;
var relY=_edc-_edd;
var p=relY/_ede;
var _ee1="";
if(_eda&dojo.widget.Tree.prototype.DNDModes.ONTO&&_eda&dojo.widget.Tree.prototype.DNDModes.BETWEEN){
if(p<=0.3){
_ee1="before";
}else{
if(p<=0.7){
_ee1="onto";
}else{
_ee1="after";
}
}
}else{
if(_eda&dojo.widget.Tree.prototype.DNDModes.BETWEEN){
if(p<=0.5){
_ee1="before";
}else{
_ee1="after";
}
}else{
if(_eda&dojo.widget.Tree.prototype.DNDModes.ONTO){
_ee1="onto";
}
}
}
return _ee1;
},getTargetParentIndex:function(_ee2,_ee3){
var _ee4=_ee3=="before"?this.treeNode.getParentIndex():this.treeNode.getParentIndex()+1;
if(this.treeNode.parent===_ee2.parent&&this.treeNode.getParentIndex()>_ee2.getParentIndex()){
_ee4--;
}
return _ee4;
},onDrop:function(e){
var _ee6=this.position;
this.onDragOut(e);
var _ee7=e.dragObject.treeNode;
if(!dojo.lang.isObject(_ee7)){
dojo.raise("TreeNode not found in dragObject");
}
if(_ee6=="onto"){
return this.controller.move(_ee7,this.treeNode,0);
}else{
var _ee8=this.getTargetParentIndex(_ee7,_ee6);
return this.controller.move(_ee7,this.treeNode.parent,_ee8);
}
}});
dojo.dnd.TreeDNDController=function(_ee9){
this.treeController=_ee9;
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(_eec){
this.unlistenTree(_eec.source);
},onCreateDOMNode:function(_eed){
this.registerDNDNode(_eed.source);
},onAddChild:function(_eee){
this.registerDNDNode(_eee.child);
},onMoveFrom:function(_eef){
var _ef0=this;
dojo.lang.forEach(_eef.child.getDescendants(),function(node){
_ef0.unregisterDNDNode(node);
});
},onMoveTo:function(_ef2){
var _ef3=this;
dojo.lang.forEach(_ef2.child.getDescendants(),function(node){
_ef3.registerDNDNode(node);
});
},registerDNDNode:function(node){
if(!node.tree.DNDMode){
return;
}
var _ef6=null;
var _ef7=null;
if(!node.actionIsDisabled(node.actions.MOVE)){
var _ef6=new dojo.dnd.TreeDragSource(node.labelNode,this,node.tree.widgetId,node);
this.dragSources[node.widgetId]=_ef6;
}
var _ef7=new dojo.dnd.TreeDropTarget(node.labelNode,this.treeController,node.tree.DNDAcceptTypes,node);
this.dropTargets[node.widgetId]=_ef7;
},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(_efd){
var tree=_efd.source;
this.unlistenTree(tree);
if(this.dieWithTree){
this.destroy();
}
},onCreateDOMNode:function(_eff){
var node=_eff.source;
if(node.expandLevel>0){
this.expandToLevel(node,node.expandLevel);
}
},onTreeCreate:function(_f01){
var tree=_f01.source;
var _f03=this;
if(tree.expandLevel){
dojo.lang.forEach(tree.children,function(_f04){
_f03.expandToLevel(_f04,tree.expandLevel-1);
});
}
},expandToLevel:function(node,_f06){
if(_f06==0){
return;
}
var _f07=node.children;
var _f08=this;
var _f09=function(node,_f0b){
this.node=node;
this.expandLevel=_f0b;
this.process=function(){
for(var i=0;i<this.node.children.length;i++){
var _f0d=node.children[i];
_f08.expandToLevel(_f0d,this.expandLevel);
}
};
};
var h=new _f09(node,_f06-1);
this.expand(node,false,h,h.process);
},onTreeClick:function(_f0f){
var node=_f0f.source;
if(node.isLocked()){
return false;
}
if(node.isExpanded){
this.collapse(node);
}else{
this.expand(node);
}
},expand:function(node,sync,_f13,_f14){
node.expand();
if(_f14){
_f14.apply(_f13,[node]);
}
},collapse:function(node){
node.collapse();
},canMove:function(_f16,_f17){
if(_f16.actionIsDisabled(_f16.actions.MOVE)){
return false;
}
if(_f16.parent!==_f17&&_f17.actionIsDisabled(_f17.actions.ADDCHILD)){
return false;
}
var node=_f17;
while(node.isTreeNode){
if(node===_f16){
return false;
}
node=node.parent;
}
return true;
},move:function(_f19,_f1a,_f1b){
if(!this.canMove(_f19,_f1a)){
return false;
}
var _f1c=this.doMove(_f19,_f1a,_f1b);
if(!_f1c){
return _f1c;
}
if(_f1a.isTreeNode){
this.expand(_f1a);
}
return _f1c;
},doMove:function(_f1d,_f1e,_f1f){
_f1d.tree.move(_f1d,_f1e,_f1f);
return true;
},canRemoveNode:function(_f20){
if(_f20.actionIsDisabled(_f20.actions.REMOVE)){
return false;
}
return true;
},removeNode:function(node,_f22,_f23){
if(!this.canRemoveNode(node)){
return false;
}
return this.doRemoveNode(node,_f22,_f23);
},doRemoveNode:function(node,_f25,_f26){
node.tree.removeNode(node);
if(_f26){
_f26.apply(dojo.lang.isUndefined(_f25)?this:_f25,[node]);
}
},canCreateChild:function(_f27,_f28,data){
if(_f27.actionIsDisabled(_f27.actions.ADDCHILD)){
return false;
}
return true;
},createChild:function(_f2a,_f2b,data,_f2d,_f2e){
if(!this.canCreateChild(_f2a,_f2b,data)){
return false;
}
return this.doCreateChild.apply(this,arguments);
},doCreateChild:function(_f2f,_f30,data,_f32,_f33){
var _f34=data.widgetType?data.widgetType:"TreeNode";
var _f35=dojo.widget.createWidget(_f34,data);
_f2f.addChild(_f35,_f30);
this.expand(_f2f);
if(_f33){
_f33.apply(_f32,[_f35]);
}
return _f35;
}});
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(_f39){
this.unlistenTree(_f39.source);
if(this.dieWithTree){
this.destroy();
}
},onCollapse:function(_f3a){
if(!this.selectedNode){
return;
}
var node=_f3a.source;
var _f3c=this.selectedNode.parent;
while(_f3c!==node&&_f3c.isTreeNode){
_f3c=_f3c.parent;
}
if(_f3c.isTreeNode){
this.deselect();
}
},select:function(_f3d){
var node=_f3d.source;
var e=_f3d.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(_f40){
if(_f40.child!==this.selectedNode){
return;
}
if(!dojo.lang.inArray(this.listenedTrees,_f40.newTree)){
this.deselect();
}
},onRemoveNode:function(_f41){
if(_f41.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(_f44){
var _f45=this;
return dojo.lang.inArray(_f45.actionsDisabled,_f44);
},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 _f49=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(_f4d,_f4e){
var _f4f={child:_f4d,index:_f4e,parent:this,domNodeInitialized:_f4d.domNodeInitialized};
this.doAddChild.apply(this,arguments);
dojo.event.topic.publish(this.tree.eventNames.addChild,_f4f);
},doAddChild:function(_f50,_f51){
if(dojo.lang.isUndefined(_f51)){
_f51=this.children.length;
}
if(!_f50.isTreeNode){
dojo.raise("You can only add TreeNode widgets to a "+this.widgetType+" widget!");
return;
}
if(this.isTreeNode){
if(!this.isFolder){
this.setFolder();
}
}
var _f52=this;
dojo.lang.forEach(_f50.getDescendants(),function(elem){
elem.tree=_f52.tree;
});
_f50.parent=this;
if(this.isTreeNode){
this.state=this.loadStates.LOADED;
}
if(_f51<this.children.length){
dojo.html.insertBefore(_f50.domNode,this.children[_f51].domNode);
}else{
this.containerNode.appendChild(_f50.domNode);
if(this.isExpanded&&this.isTreeNode){
this.showChildren();
}
}
this.children.splice(_f51,0,_f50);
if(_f50.domNodeInitialized){
var d=this.isTreeNode?this.depth:-1;
_f50.adjustDepth(d-_f50.depth+1);
_f50.updateIconTree();
}else{
_f50.depth=this.isTreeNode?this.depth+1:0;
_f50.createDOMNode(_f50.tree,_f50.depth);
}
var _f55=_f50.getPreviousSibling();
if(_f50.isLastChild()&&_f55){
_f55.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(_f58,_f59,_f5a){
var _f5b=_f58.parent;
var _f5c=_f58.tree;
this.doMove.apply(this,arguments);
var _f59=_f58.parent;
var _f5d=_f58.tree;
var _f5e={oldParent:_f5b,oldTree:_f5c,newParent:_f59,newTree:_f5d,child:_f58};
dojo.event.topic.publish(_f5c.eventNames.moveFrom,_f5e);
dojo.event.topic.publish(_f5d.eventNames.moveTo,_f5e);
},doMove:function(_f5f,_f60,_f61){
_f5f.parent.doRemoveNode(_f5f);
_f60.doAddChild(_f5f,_f61);
},removeNode:function(_f62){
if(!_f62.parent){
return;
}
var _f63=_f62.tree;
var _f64=_f62.parent;
var _f65=this.doRemoveNode.apply(this,arguments);
dojo.event.topic.publish(this.tree.eventNames.removeNode,{child:_f65,tree:_f63,parent:_f64});
return _f65;
},doRemoveNode:function(_f66){
if(!_f66.parent){
return;
}
var _f67=_f66.parent;
var _f68=_f67.children;
var _f69=_f66.getParentIndex();
if(_f69<0){
dojo.raise("Couldn't find node "+_f66+" for removal");
}
_f68.splice(_f69,1);
dojo.html.removeNode(_f66.domNode);
if(_f67.children.length==0&&!_f67.isTree){
_f67.containerNode.style.display="none";
}
if(_f69==_f68.length&&_f69>0){
_f68[_f69-1].updateExpandGridColumn();
}
if(_f67 instanceof dojo.widget.Tree&&_f69==0&&_f68.length>0){
_f68[0].updateExpandGrid();
}
_f66.parent=_f66.tree=null;
return _f66;
},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("dojo.widget.Tooltip");
dojo.widget.defineWidget("dojo.widget.Tooltip",[dojo.widget.ContentPane,dojo.widget.PopupContainerBase],{caption:"",showDelay:50,hideDelay:20,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);
dojo.widget.Tooltip.superclass.fillInTemplate.call(this,args,frag);
this.addOnLoad(this,"_loadedContent");
dojo.html.addClass(this.domNode,"dojoTooltip");
var _f6d=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_f6d);
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){
var _f71=document.getElementById("maincol");
dojo.event.connect(this.domNode,"onmousemove",this,"_onMouseMove");
dojo.event.connect(this.domNode,"onmouseout",this,"_onMouseMove");
dojo.event.connect(_f71,"onmousemove",this,"_onMouseMove");
dojo.event.connect(_f71,"onmouseout",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;
package_footnote_tooltips_hover();
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;
$(".hover-arrow").hide();
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){
$(".dojoPopupContainer").hide();
this.isShowingNow=false;
}
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.render.Context");
wc.render.contexts={};
wc.render.getContextById=function(id){
return wc.render.contexts[id];
};
wc.render.updateContext=function(id,_f77){
wc.render.getContextById(id).update(_f77);
};
wc.render.declareContext=function(id,_f79,_f7a){
var _f7b=new wc.render.Context(id,_f79,_f7a);
this.contexts[id]=_f7b;
return _f7b;
};
dojo.declare("wc.render.Context",null,{initializer:function(id,_f7d,_f7e){
this.id=id;
this.properties=_f7d?_f7d:{};
this.url=_f7e;
this.contextChangedEventName=id+"/RenderContextChanged";
},id:undefined,properties:undefined,url:undefined,contextChangedEventName:undefined,update:function(_f7f){
if(!this.properties){
this.properties={};
}
if(this.url){
var _f80={};
for(var name in _f7f){
var _f82=_f7f[name];
if(dojo.lang.isUndefined(_f82)){
if(dojo.lang.isUndefined(_f80.clear)){
_f80.clear=[name];
}else{
_f80.clear.push(name);
}
}else{
_f80["set_"+name]=_f82;
}
}
dojo.io.bind({url:this.url,mimetype:"text/json",content:_f80,properties:this.properties,successEventName:this.contextChangedEventName,load:function(type,data,evt,_f86){
if(dojo.lang.isArray(data.renderContextChanges)){
for(var i=0;i<data.renderContextChanges.length;i++){
var name=data.renderContextChanges[i];
_f86.properties[name]=data[name];
}
}
dojo.event.topic.publish(this.successEventName,data);
},error:function(type,_f8a){
var _f8b=dojo.i18n.getLocalization("wc","common");
alert(_f8b.communicationError);
}});
}else{
var data={renderContextChanges:[]};
for(var name in _f7f){
var _f82=_f7f[name];
if(_f82!=this.properties[name]){
data.renderContextChanges.push(name);
if(dojo.lang.isUndefined(_f82)){
delete this.properties[name];
}else{
this.properties[name]=_f82;
data[name]=_f82;
}
}
}
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(_f8e){
var _f8f=new wc.render.RefreshController(_f8e);
this.refreshControllers[_f8e.id]=_f8f;
return _f8f;
};
dojo.declare("wc.render.RefreshController",null,{initializer:function(_f90){
dojo.lang.mixin(this,_f90);
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(_f91){
if(this.widgets[_f91.widgetId]){
dojo.debug("RefreshController.addWidget: duplicate widget ID "+_f91.widgetId);
}
this.widgets[_f91.widgetId]=_f91;
},removeWidget:function(_f92){
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[_f92.widgetId];
},syncRCProperties:function(){
if(this.renderContext){
var _f93={};
var rc=this.renderContext.properties;
for(var prop in rc){
_f93[prop]=rc[prop];
}
this.currentRCProperties=_f93;
}
},renderContextChanged:function(_f96){
for(var _f97 in this.widgets){
this.renderContextChangedHandler(_f96,this.widgets[_f97]);
}
this.syncRCProperties();
},modelChanged:function(_f98){
for(var _f99 in this.widgets){
this.modelChangedHandler(_f98,this.widgets[_f99]);
}
},refreshHandler:function(_f9a,data){
_f9a.setInnerHTML(data);
},refresh:function(_f9c,_f9d){
var _f9e=null;
if(this.formId){
_f9e=document.getElementById(this.formId);
}
dojo.io.bind({url:this.url,mimetype:this.mimetype,formNode:_f9e,content:_f9d,load:function(type,data,evt){
var _fa2=_f9c.controller;
_fa2.refreshHandler(_f9c,data);
if(_fa2.postRefreshHandler!=null){
_fa2.postRefreshHandler(_f9c);
}
},error:function(type,_fa4){
var _fa5=dojo.i18n.getLocalization("wc","common");
alert(_fa5.communicationError);
}});
},testForChangedRC:function(_fa6){
var _fa7=false;
for(var i=0;i<_fa6.length;i++){
var prop=_fa6[i];
if(this.currentRCProperties[prop]!=this.renderContext.properties[prop]){
_fa7=true;
break;
}
}
return _fa7;
}});
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(_fab){
var _fac=new wc.service.Service(_fab);
this.register(_fac);
return _fac;
};
wc.service.register=function(_fad){
this.services[_fad.id]=_fad;
};
wc.service.invoke=function(_fae,_faf){
var _fb0=this.getServiceById(_fae);
if(_fb0){
_fb0.invoke(_faf);
}else{
dojo.debug("Attempt to invoke an unregistered service: "+_fae);
}
};
dojo.declare("wc.service.Service",null,{initializer:function(_fb1){
dojo.lang.mixin(this,_fb1);
},id:undefined,actionId:undefined,url:undefined,formId:undefined,validateParameters:function(_fb2){
return true;
},validateForm:function(_fb3){
return true;
},successTest:function(_fb4){
return !_fb4.errorMessage&&!_fb4.errorMessageKey;
},successHandler:function(_fb5){
},failureHandler:function(_fb6){
var _fb7=_fb6.errorMessage;
if(_fb7){
alert(_fb7);
}else{
_fb7=_fb6.errorMessageKey;
if(_fb7){
alert(_fb7);
}else{
alert("Service request error.");
}
}
},invoke:function(_fb8){
var _fb9=true;
var _fba=null;
if(this.formId){
_fba=document.getElementById(this.formId);
}
if(_fba){
_fb9=this.validateForm(_fba);
}
if(_fb9){
_fb9=this.validateParameters(_fb8);
}
if(_fb9){
dojo.io.bind({url:this.url,method:"post",mimetype:"text/json",formNode:_fba,content:_fb8,service:this,load:function(type,_fbc,evt,_fbe){
var _fbf=_fbe.service;
_fbc.serviceId=_fbf.id;
_fbc.actionId=_fbf.actionId;
dojo.debug("Service response:");
for(var prop in _fbc){
dojo.debug("  "+prop+"="+_fbc[prop]);
}
if(_fbf.successTest(_fbc)){
_fbf.successHandler(_fbc);
dojo.event.topic.publish("modelChanged",_fbc);
if(_fbf.actionId){
dojo.event.topic.publish("modelChanged/"+_fbf.actionId,_fbc);
}
}else{
_fbf.failureHandler(_fbc);
}
},error:function(type,_fc2){
var _fc3=_fb8["path"]+"/NGTSOSessionTimeOutView";
var _fc4="catalogId="+_fb8["catalogId"]+"&storeId="+_fb8["storeId"]+"&langId="+_fb8["langId"];
_fc3=_fc3+"?"+_fc4;
window.open(_fc3,"_self");
}});
}
}});
dojo.provide("wc.service.*");
dojo.provide("wc.widget.*");
dojo.widget.manager.registerWidgetPackage("wc.widget");
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:true,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 _fc5=new Array();
var _fc6=new Array();
_fc5=this.additionalProperties.split(",");
for(var i=0;i<_fc5.length;i++){
_fc6=_fc5[i].split("=");
if(_fc6.length==2){
this[_fc6[0]]=_fc6[1];
}
}
},insertWithBreak:function(_fc8){
if(_fc8!=""){
return _fc8+"<br/><br/>";
}
return "";
},addDragDropFeature:function(){
if(this.dragAndDrop&&this.defaultContent){
var _fc9=null;
_fc9=this.DAPCatalogEntryThumbnailImageLink;
_fc9.name=this.DAPCatalogEntryName.innerHTML;
_fc9.price=this.DAPPriceRange.innerHTML;
_fc9.catentryId=this.catentryId;
var _fca=new Array();
var _fcb=new Array();
_fca=this.dragSourceProperties.split(",");
for(var i=0;i<_fca.length;i++){
_fcb=_fca[i].split("=");
if(_fcb.length==2){
_fc9[_fcb[0]]=_fcb[1];
}
}
new dojo.dnd.HtmlDragSource(_fc9,this.dragSourceType);
}
}});
dojo.widget.defineWidget("wc.widget.BaseContent",dojo.widget.HtmlWidget,{catentryId:"",dragSourceId:"",isContainer:true,widgetType:"BaseContent",dragSourceType:"*",dragSourceProperties:"",templateString:"",userInnerHtml:"",dragAndDrop:true,postCreate:function(){
if(this.userInnerHtml!=""){
this.domNode.innerHTML=this.userInnerHtml;
}
if(this.domNode.innerHTML!=null&&this.domNode.innerHTML!=""){
if(this.dragAndDrop){
var _fcd=null;
_fcd=dojo.byId(this.dragSourceId);
_fcd.catentryId=this.catentryId;
var _fce=new Array();
var _fcf=new Array();
_fce=this.dragSourceProperties.split(",");
for(var i=0;i<_fce.length;i++){
_fcf=_fce[i].split("=");
if(_fcf.length==2){
_fcd[_fcf[0]]=_fcf[1];
}
}
new dojo.dnd.HtmlDragSource(_fcd,this.dragSourceType);
}
}
}});
dojo.widget.defineWidget("wc.widget.ToolTipContent",dojo.widget.Tooltip,{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	/*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(_fd3){
var pos={x:0,y:0};
if(!_fd3.offsetParent){
return pos;
}
pos.x=_fd3.offsetLeft;
pos.y=_fd3.offsetTop;
while(_fd3=_fd3.offsetParent){
pos.x+=_fd3.offsetLeft;
pos.y+=_fd3.offsetTop;
}
return pos;
},_isOverElement:function(_fd5,e){
_fd5=dojo.byId(_fd5);
if(e.target.tagName.toLowerCase()=="option"||e.target.tagName.toLowerCase()=="select"){
var _fd7=this._getPosition(e.target.offsetParent);
dojo.debug("mouse  = ("+_fd7.x+" , "+_fd7.y+") ");
}else{
var _fd7=dojo.html.getCursorPosition(e);
}
var bb=dojo.html.getBorderBox(_fd5);
if(dojo.render.html.safari){
var _fd9=this._getPosition(_fd5);
}else{
var _fd9=dojo.html.getAbsolutePosition(_fd5,true,dojo.html.boxSizing.BORDER_BOX);
}
var top=_fd9.y;
if(_fd5==this.domNode){
var _fdb=top+bb.height+20;
}else{
var _fdb=top+bb.height;
}
var left=_fd9.x;
var _fdd=left+bb.width;
dojo.debug("**** left = "+left+", right = "+_fdd+", top = "+top+", bottom = "+_fdb+" mouse: "+_fd7.x+", "+_fd7.y+") ");
dojo.debug("**** mouse x y = ("+_fd7.x+", "+_fd7.y+") ");
return (_fd7.x>=left&&_fd7.x<=_fdd&&_fd7.y>=top&&_fd7.y<=_fdb);
},_onMouseMove:function(e){
this._mouse=this._getPosition(dojo.byId(e.target));
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+" }");
var _fdf=document.getElementById("errorMsg_"+this.connectId);
if(_fdf!=null){
_fdf.style.display="none";
}
for(i=0;i<5;i++){
select_el=document.getElementById("select_"+this.connectId+"_"+i);
if(select_el!=null){
select_el.style.visibility="visible";
select_el.selectedIndex=0;
}
}
if(typeof (HoverJS)!="undefined"){
if(HoverJS.itemEntries.size()>0){
HoverJS.changeImageAndPrice(this.connectId.substring(9),0);
}else{
CombinedHoverJS.changeImageAndPrice(this.connectId.substring(9),0);
}
}
this._onUnHover(e);
}
},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],"",[35,-31]);
},destroy:function(_fe0){
try{
wc.widget.ToolTipContent.superclass.uninitialize.call(this);
wc.widget.ToolTipContent.superclass.destroy.call(this,_fe0);
}
catch(err){
}
},hide_product_hover:function(e){
$(".dojoPopupContainer").hide();
$(".hover-arrow").hide();
this._onUnHover(e);
},set_product_hover_position:function(_fe2,_fe3,_fe4,_fe5,_fe6){
var _fe4=_fe4==null?36:_fe4;
var _fe5=_fe5==null?-25:_fe5;
var _fe6=_fe6==null?35:_fe6;
var _fe7=$("#"+_fe2);
var _fe3=$(_fe3);
var win=$(window);
_fe7.show();
$(".hover-arrow").show();
var _fe9=win.height();
_fe7.css({top:$(_fe3).offset().top+_fe5,left:$(_fe3).offset().left+_fe4});
if(_fe7.position().top+_fe7.height()+_fe5+80>win.scrollTop()+_fe9||_fe7.position().top<win.scrollTop()){
_fe7.css({top:_fe3.offset().top-_fe7.height()+_fe6});
if(_fe7.position().top<win.scrollTop()){
_fe7.css({top:win.scrollTop()});
}
}
$(".hover-arrow").remove();
$("<div class=\"hover-arrow\"></div>").insertAfter("#"+_fe2).css({top:$(_fe3).offset().top,left:$("#"+_fe2).position().left});
if($("#"+_fe2).position().top>$(".hover-arrow").position().top){
$(".hover-arrow").css({top:$("#"+_fe2).position().top+25});
}
}});
dojo.provide("dojo.dnd.HtmlDragMove");
dojo.declare("dojo.dnd.HtmlDragMoveSource",dojo.dnd.HtmlDragSource,{onDragStart:function(){
var _fea=new dojo.dnd.HtmlDragMoveObject(this.dragObject,this.type);
if(this.constrainToContainer){
_fea.constrainTo(this.constrainingContainer);
}
return _fea;
},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="absolute";
}
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("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 {\ncolor: #FF0000;\nposition: absolute;\nbackground-image: url(images/rangeSelector-button.png);\nwidth: 10px;\nheight: 10px;\ncursor: pointer;/*Added for MR2#<2304> - Start */\nmargin-top:0px;/*Added margin-top pixel value to 0pixels */\nz-index: 10;/*Added for MR2#<2304> - End */\n}\n.rangeSelectorHandleHover {\nbackground-image: url(images/rangeSelector-button-hover.png);\n}\n.rangeSelectorBar {\nposition: absolute; /*MQC 321: Fixing IE positioning issue.*/\nwidth: 130px;/* MQC 321: 125 px increased to 130 px: [in sync with js]*/\nheight: 25px;\ncursor: pointer;\nbackground: url(images/rangeSelector-bar.png) no-repeat;/*Added for MR2#<2304> - Start */\nmargin-top: 20px; /*Modified margin-top pixel value from 35pixels to 20 pixels for MR2#<2304>*/\npadding-right: 3px; /*Added for MR2#<2304> - End */\npadding-left: 2px; /*Added for MR2#<2304> - End */\n}\n.rangeSelectorTooltip{\npadding: 2px 2px 2px 2px;\nfont-size: 9px;\nborder: none;\nz-index: 30;\n}\n.rangeSelectorFirstTooltip{/*First rangeSelectorFirstTooltip.css class created */\nbackground-color: #ffffff;\npadding: 2px 2px 2px 2px;\nfont-size: 9px;\nborder: none;\nz-index: 30;\n}\n.rangeSelectorSecondTooltip{/*Second rangeSelectorSecondTooltip.css class created */\nbackground-color: #ffffff;\npadding: 2px 2px 2px 2px;\nfont-size: 9px;\nborder: none;\nz-index: 30;\nmargin-top: 0px;\n}/*Added for MR2#<2304> - End */\n.rangeSelectorMain{\nwidth: 100%;\nheight: 100%;\n}";this.templateCssPath=dojo.uri.dojoUri("wc/widget/templates/RangeSlider.css");
this.templateString="<div class=\"rangeSelectorMain\" id=\"RangeSlider\" name=\"${this.widgetId}\">\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\"\n	dojoAttachEvent=\"onMouseOver: onSecondMouseOver; onMouseOut: onSecondMouseOut;\"></div>\n   <div style=\"width:100%\">\n	<div  style=\"top:0px ! important; left:0px ! important; float:left; width: 28%;\"><label><b>From</b></label></div>\n	<div style=\"float:left;width: 23%;text-align: center;\" id=\"${this.widgetId}_firstHandle_tooltip\" class=\"rangeSelectorFirstTooltip\"\n	dojoAttachPoint=\"firstTooltip\" ></div>\n	<div style=\"top:0px ! important;float:left;width: 20%;text-align: center;\"><label><b>To</b></label></div>\n	<div style=\"float:left;text-align: center;\" id=\"${this.widgetId}_secondHandle_tooltip\" class=\"rangeSelectorSecondTooltip\"\n   dojoAttachPoint=\"secondTooltip\"></div>\n	</div>\n</div>";
this.firstHandle=null;
this.secondHandle=null;
this.rangeSelectorBar=null;
this.startRange=0;
this.totalRange=0;
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.relativePositionFirst=[-1,-1];
this.relativePositionSecond=[-1,-1];
this.prefix="";
this.suffix="";
this.currencyCode="";
this.tempPOS=130;
this.rangeSliderStart=0;
this.rangeSliderEnd=130;
this.tooltipTempLeftPos=0;
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.rangeSliderStart=dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x;
this.rangeSliderEnd=this.rangeSliderStart+this.pixelsOnSlider;
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(_ff6,name){
this.handleMove=new dojo.widget.SliderDragMoveSource(_ff6);
this.handleMove=new dojo.widget.SliderDragMoveSource(_ff6);
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");
_ff6.name=name;
this.startLimit=dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(this.firstHandle)/2;
this.endLimit=this.startLimit+this.pixelsOnSlider;
var _ff8=[];
if(name=="first"){
_ff8[0]=(this.relativePositionFirst[0]<0)?(this.relativePositionFirst[0]):(this.relativePositionFirst[0]+dojo.html.getContentBoxWidth(this.firstHandle));
_ff8[1]=(this.relativePositionFirst[1]<0)?(this.relativePositionFirst[1]-15):(this.relativePositionFirst[0]+dojo.html.getContentBoxHeight(this.firstHandle));
var _ff9=(this.currentValue.lower-this.startRange)*this.pixelsPerUnit+dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(_ff6)/2;
if(this.showTooltip){
_ff6.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"){
_ff8[0]=(this.relativePositionSecond[0]<0)?(this.relativePositionSecond[0]):(this.relativePositionSecond[0]+dojo.html.getContentBoxWidth(this.secondHandle));
_ff8[1]=(this.relativePositionSecond[1]<0)?(this.relativePositionSecond[1]-15):(this.relativePositionSecond[0]+dojo.html.getContentBoxHeight(this.secondHandle));
var _ff9=(this.currentValue.upper-this.startRange)*this.pixelsPerUnit+dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(_ff6)/2;
if(this.showTooltip){
_ff6.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){
_ff9=this.getPixelValue(this.getUnitValue(_ff9));
}
_ff6.style.left=_ff9+"px";
_ff6.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){
_ff6.tempHandle.style.top=dojo.style.getAbsolutePosition(_ff6,true).y+parseInt(_ff8[1])+"px";
this.tooltipTempLeftPos=dojo.style.getAbsolutePosition(_ff6,true).x+parseInt(_ff8[0]);
if(this.tooltipTempLeftPos<this.rangeSliderStart){
this.tooltipTempLeftPos=this.rangeSliderStart;
}
if((this.tooltipTempLeftPos+40)>(this.rangeSliderEnd+10)){
this.tooltipTempLeftPos=this.rangeSliderEnd-30;
}
_ff6.tempHandle.style.left=this.tooltipTempLeftPos+"px";
}
this.valueChanged(name);
};
this.round=function(_ffa){
return dojo.math.round(_ffa,this.decimalPoints);
};
this.setUnitPosition=function(node,_ffc){
var _ffd=(_ffc-this.startRange)*this.pixelsPerUnit+this.startLimit;
this.setPixelPosition(node,_ffd);
};
this.setPixelPosition=function(node,_fff){
this.currentHandle=node;
var _1000=_fff;
var _1001=dojo.style.getAbsolutePosition(this.rangeSelectorBar,true).x-dojo.html.getContentBoxWidth(this.firstHandle)/2;
var _1002=this.getPixelValue(this.totalRange);
var _1003=[];
if(node.name=="first"){
_1002=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;
_1003[0]=(this.relativePositionFirst[0]<0)?(this.relativePositionFirst[0]-dojo.html.getContentBoxWidth(this.firstTooltip)):(this.relativePositionFirst[0]+dojo.html.getContentBoxWidth(this.firstHandle));
_1003[1]=(this.relativePositionFirst[1]<0)?(this.relativePositionFirst[1]-15):(this.relativePositionFirst[0]+dojo.html.getContentBoxHeight(this.firstHandle));
}else{
if(node.name=="second"){
_1001=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;
_1003[0]=(this.relativePositionSecond[0]<0)?(this.relativePositionSecond[0]-dojo.html.getContentBoxWidth(this.secondTooltip)):(this.relativePositionSecond[0]+dojo.html.getContentBoxWidth(this.secondHandle));
_1003[1]=(this.relativePositionSecond[1]<0)?(this.relativePositionSecond[1]-15):(this.relativePositionSecond[0]+dojo.html.getContentBoxHeight(this.secondHandle));
}else{
dojo.debug("RangeSlider Widget: Something is wrong with node.name:"+name+" in this.setPixelPosition(node,pixelValue)");
}
}
if(_1001<=_1000&&_1000<=_1002){
if(this.snapToGrid&&!this.activeDrag){
_fff=this.getPixelValue(this.getUnitValue(_fff));
}
node.style.left=_fff+"px";
dojo.style.show(node.tempHandle);
if(this.showTooltip){
this.tooltipTempLeftPos=_fff+parseInt(_1003[0]);
if(this.tooltipTempLeftPos<this.rangeSliderStart){
this.tooltipTempLeftPos=this.rangeSliderStart;
}
if((this.tooltipTempLeftPos+40)>(this.rangeSliderEnd+10)){
this.tooltipTempLeftPos=this.rangeSliderEnd-30;
}
node.tempHandle.style.left=this.tooltipTempLeftPos+"px";
node.tempHandle.style.top=dojo.style.getAbsolutePosition(node,true).y+parseInt(_1003[1])+"px";
}
this.valueChanged(node.name);
}
};
this.getUnitValue=function(_1004){
var first=this.startLimit;
var last=_1004;
var res=this.startRange+(last-first)/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(_1008){
_1008=this.round(_1008/this.incrementValue)*this.incrementValue;
var first=this.startLimit;
var last=_1008*this.pixelsPerUnit;
var res=(first+last);
if(res<this.startLimit){
res=this.startLimit;
}
if(res>this.endLimit){
res=this.endLimit;
}
return res;
};
this.getCloserSliderHandle=function(_100c){
var _100d=dojo.style.getAbsolutePosition(this.firstHandle,true).x+dojo.html.getContentBoxWidth(this.firstHandle)/2;
var _100e=dojo.style.getAbsolutePosition(this.secondHandle,true).x+dojo.html.getContentBoxWidth(this.secondHandle)/2;
var _100f=_100c-_100d;
var _1010=_100e-_100c;
if(_100f<=_1010){
return this.firstHandle;
}else{
return this.secondHandle;
}
};
this.getCurrentValues=function(){
return this.currentValue;
};
this.valueChanged=function(_1011){
if(_1011=="first"||_1011=="*"){
this.currentValue.lower=this.round(this.getUnitValue(dojo.style.getAbsolutePosition(this.firstHandle,true).x));
}
if(_1011=="second"||_1011=="*"){
this.currentValue.upper=this.round(this.getUnitValue(dojo.style.getAbsolutePosition(this.secondHandle,true).x));
}
var _1012=this.currentValue.lower;
var _1013=this.currentValue.upper;
if(this.currencyCode!=null&&this.currencyCode!=""){
_1012=dojo.i18n.currency.format(_1012,this.currencyCode,{places:0});
_1013=dojo.i18n.currency.format(_1013,this.currencyCode,{places:0});
}
var _1014=_1012.indexOf(",");
if(_1014>0&&(_1012.substring(_1014+1).length>3)){
_1012=_1012.substring(0,_1014+1)+_1012.substring(_1014+2);
}
_1014=_1013.indexOf(",");
if(_1014>0&&(_1013.substring(_1014+1).length>3)){
_1013=_1013.substring(0,_1014+1)+_1013.substring(_1014+2);
}
if(this.showTooltip){
this.firstTooltip.innerHTML=this.prefix+_1012+this.suffix;
this.secondTooltip.innerHTML=this.prefix+_1013+this.suffix;
}
this.onChange(this);
};
this.getFormattedValues=function(){
var _1015=this.currentValue.lower;
var _1016=this.currentValue.upper;
if(this.currencyCode!=null&&this.currencyCode!=""){
_1015=dojo.i18n.currency.format(_1015,this.currencyCode,{places:0});
_1016=dojo.i18n.currency.format(_1016,this.currencyCode,{places:0});
}
return {lower:_1015,upper:_1016};
};
this.onSliderBarClick=function(e){
var _1018=dojo.html.getScrollOffset().x+e.clientX;
var node=this.getCloserSliderHandle(_1018);
_1018=_1018-dojo.html.getContentBoxWidth(node)/2;
this.setPixelPosition(node,_1018);
this.onChangeMade(this);
};
this.onDragEnd=function(e){
if(this.snapToGrid&&this.activeDrag&&this.currentHandle!==null){
var _101b=this.getPixelValue(this.getUnitValue(dojo.style.getAbsolutePosition(this.currentHandle,true).x));
this.currentHandle.style.left=_101b+"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 _1021=this.createDragMoveObject();
dojo.event.connect(_1021,"onDragMove",this,"onDragMove");
return _1021;
},onDragMove:function(e){
},createDragMoveObject:function(){
var _1023=new dojo.widget.SliderDragMoveObject(this.dragObject,this.type);
_1023.slider=this.slider;
if(this.dragClass){
_1023.dragClass=this.dragClass;
}
return _1023;
},setParent:function(_1024){
this.slider=_1024;
}});
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(_1028){
if(!_1028){
_1028={};
}
_1028.objectId=this.objectId;
this.controller.refresh(this,_1028);
},setInnerHTML:function(html){
this.destroyChildren();
this.containerNode.innerHTML=html;
var _102a=new dojo.xml.Parse();
var frag=_102a.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:999,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 _102f=new Object();
_102f.domNode=tmp;
_102f.left=0;
_102f.top=0;
_102f.Width=0;
_102f.Height=0;
this.objectArray.push(_102f);
tmp=dojo.dom.getNextSiblingElement(tmp);
}
if(this.stopButtonId!=null&&this.stopButtonId!=""){
var _1030=dojo.byId(this.stopButtonId);
if(_1030!=null){
dojo.event.connect(_1030,"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 _1031=this.getChildrenOfType(dojo.widget.HtmlWidget);
var index=0;
for(var i=0;i<this.objectArray.length;i++){
if(dojo.html.hasAttribute(this.objectArray[i]["domNode"],"dojoType")){
var _1034=this.objectArray[i]["domNode"];
this.objectArray.splice(i,1);
var _1035=new Object();
_1035.domNode=_1031[index].domNode;
_1035.left=0;
_1035.top=0;
_1035.Width=0;
_1035.Height=0;
this.objectArray.splice(i,0,_1035);
_1034.parentNode.appendChild(_1031[index++].domNode);
dojo.dom.removeNode(_1034);
}
}
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";
}
this.left=this.getAbsolutePosition(this.widgetContainer,true).x;
this.top=this.getAbsolutePosition(this.widgetContainer,true).y;
var _1036=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]>_1036){
_1036=this.objectArray[i][this._dim];
}
}
if(this.noElementToDisplay==-1){
if(this.widgetDimension==-1){
this.widgetDimension=200;
}
}else{
this.widgetDimension=(this.noElementToDisplay*this.getAbsoluteDimension(this.objectArray[0]["domNode"])[this.dim])+((this.noElementToDisplay+1)*this.padding);
}
this.moveBackwardContainer.style.position="relative";
this.moveBackwardContainer.style.zIndex=this.zIndex;
this.moveBackwardContainer.style[this.pos]=0+"px";
this.moveBackwardContainer.style[this._pos]=(_1036/2)-(this.getAbsoluteDimension(this.moveBackwardContainer)[this._dim]/2)+"px";
var _1037=this.dim+":"+this.widgetDimension+"px";
dojo.html.setStyleAttributes(this.containerNode,_1037);
var _1038=this._dim+":"+_1036+"px";
dojo.html.setStyleAttributes(this.widgetContainer,_1038);
this.moveForwardContainer.style.position="relative";
this.moveForwardContainer.style.zIndex=this.zIndex;
this.moveForwardContainer.style[this.pos]=0+"px";
this.moveForwardContainer.style[this._pos]=(_1036/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]+(_1036/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]+(_1036/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]+(_1036/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]+(_1036/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();
},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 _103c=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[_103c][this.dim]-this.padding;
_103c--;
}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 _103d=new dojo.math.curves.Line([start,0],[end,0]);
}else{
var _103d=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(_103d,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 _1041=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[_1041][this.dim]+this.padding;
_1041++;
}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;
}
if(this.isHorozontal){
var _1042=new dojo.math.curves.Line([start,0],[end,0]);
}else{
var _1042=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(_1042,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 _1044=document.getElementById(this.stopButtonId);
var _1045="";
if(this.currentAnimation!=null&&this.currentAnimation.status()=="playing"){
_1045=(this.translatedTextBundle["Pause"]!=null||this.translatedTextBundle["Pause"]!="")?this.translatedTextBundle["Pause"]:"Pause";
}
if(this.currentAnimation!=null&&this.currentAnimation.status()=="paused"){
_1045=(this.translatedTextBundle["Play"]!=null||this.translatedTextBundle["Play"]!="")?this.translatedTextBundle["Play"]:"Play";
}
if(_1044.innerHTML!=null){
_1044.innerHTML=_1045;
}
if(_1044.value!=null){
_1044.innerHTML=_1045;
}
}
},movementHandler:function(e){
switch(e.type){
case "play":
this.reArrangeElements();
break;
case "pause":
break;
case "animate":
var _1047=e[this.axes];
var _1048=this.oldReference-_1047;
if(_1048!=0){
var i=this.elementCount-1;
var _104a=false;
do{
var _104b=this.objectArray[i];
_104b[this.pos]=_104b[this.pos]-_1048;
if(_104b[this.pos]<this.backwardLimit){
if((_104b[this.pos]+_104b[this.dim])>this.backwardLimit){
_104b["domNode"].style[this.pos]=_104b[this.pos]+"px";
this.applyEffects(_104b);
}else{
if(this.direction=="backward"){
_104a=true;
}
}
}else{
if((_104b[this.pos]+_104b[this.dim])>this.forwardLimit){
if(_104b[this.pos]<this.forwardLimit){
_104b["domNode"].style[this.pos]=_104b[this.pos]+"px";
this.applyEffects(_104b);
}else{
if(this.direction=="forward"){
_104a=true;
}
}
}else{
_104b["domNode"].style[this.pos]=_104b[this.pos]+"px";
}
}
}while(i--);
if(_104a){
this.reArrangeElements();
}
this.oldReference=_1047;
}
break;
case "end":
this.oldReference=this.oldReference_bak;
break;
}
},reArrangeElements:function(){
var _104c=this.objectArray[0];
var _104d=this.objectArray[this.elementCount-1];
if(this.direction=="backward"){
if((_104c[this.pos]+_104c[this.dim])<this.backwardLimit){
_104c[this.pos]=(_104d[this.pos]+_104d[this.dim])+this.padding;
this.objectArray.push(_104c);
this.objectArray.splice(0,1);
}
}
if(this.direction=="forward"){
if(_104d[this.pos]>this.forwardLimit){
_104d[this.pos]=_104c[this.pos]-_104d[this.dim]-this.padding;
var temp=_104d;
this.objectArray.splice(this.elementCount-1,1);
this.objectArray.splice(0,0,temp);
}
}
},applyEffects:function(_104f){
var _1050=_104f["domNode"].style;
var _1051=false;
var _1052=this.backwardLimit;
if(_104f[this.pos]<_1052){
_1051=true;
if(this.hideEffect){
_1050.visibility="hidden";
}else{
if(this.clipEffect){
var clip=_1052-_104f[this.pos];
if(this.isHorozontal){
_1050.clip="rect(auto, auto, auto,"+clip+"px)";
}else{
_1050.clip="rect("+clip+"px, auto, auto, auto)";
}
}
}
}
var _1054=this.forwardLimit;
if((_104f[this.pos]+_104f[this.dim])>this.forwardLimit){
_1051=true;
if(this.hideEffect){
_1050.visibility="hidden";
}else{
if(this.clipEffect){
var clip=_1054-_104f[this.pos];
if(this.isHorozontal){
_1050.clip="rect(auto, "+clip+"px, auto, auto)";
}else{
_1050.clip="rect(auto, auto, "+clip+"px, auto)";
}
}
}
}
if(!_1051){
_1050.clip="rect(auto, auto, auto, auto)";
_1050.visibility="visible";
}
},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 _1058=new Object();
_1058.x=dojo.html.getAbsolutePosition(node,flag).left;
_1058.y=dojo.html.getAbsolutePosition(node,flag).top;
return _1058;
},getAbsoluteDimension:function(node){
var _105a=new Object();
_105a.Width=dojo.html.getOuterWidth(node);
_105a.Height=dojo.html.getOuterHeight(node);
return _105a;
},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 _1061=0;
for(var i=this.elementCount-1;i>=0;i--){
if(this.backwardLimit<this.objectArray[i][this.pos]+this.objectArray[i][this.dim]){
_1061=i;
}
}
return _1061;
},getForwardElementIndex:function(){
var _1063=this.elementCount-1;
for(var i=0;i<this.elementCount;i++){
if(this.forwardLimit>this.objectArray[i][this.pos]){
_1063=i;
}
}
return _1063;
},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(_1066){
var child=this._addChild(_1066);
this._setSizes();
return child;
},_addChild:function(_1068){
if(_1068.open){
dojo.deprecated("open parameter deprecated, use 'selected=true' instead will be removed in ","0.5");
dojo.debug(_1068.widgetId+": open == "+_1068.open);
_1068.selected=true;
}
if(_1068.widgetType!="AccordionPane"){
var _1069=dojo.widget.createWidget("AccordionPane",{label:_1068.label,selected:_1068.selected,labelNodeClass:this.labelNodeClass,containerNodeClass:this.containerNodeClass,allowCollapse:this.allowCollapse});
_1069.addChild(_1068);
this.addWidgetAsDirectChild(_1069);
this.registerChild(_1069,this.children.length);
return _1069;
}else{
dojo.html.addClass(_1068.containerNode,this.containerNodeClass);
dojo.html.addClass(_1068.labelNode,this.labelNodeClass);
this.addWidgetAsDirectChild(_1068);
this.registerChild(_1068,this.children.length);
return _1068;
}
},postCreate:function(){
var _106a=this.children;
this.children=[];
dojo.html.removeChildren(this.domNode);
dojo.lang.forEach(_106a,dojo.lang.hitch(this,"_addChild"));
this._setSizes();
},removeChild:function(_106b){
dojo.widget.AccordionContainer.superclass.removeChild.call(this,_106b);
this._setSizes();
},onResized:function(){
this._setSizes();
},_setSizes:function(){
var _106c=0;
var _106d=0;
dojo.lang.forEach(this.children,function(child,idx){
_106c+=child.getLabelHeight();
if(child.selected){
_106d=idx;
}
});
var _1070=dojo.html.getContentBox(this.domNode);
var y=0;
dojo.lang.forEach(this.children,function(child,idx){
var _1074=child.getLabelHeight();
child.resizeTo(_1070.width,_1070.height-_106c+_1074);
child.domNode.style.zIndex=idx+1;
child.domNode.style.position="absolute";
child.domNode.style.top=y+"px";
y+=(idx==_106d)?dojo.html.getBorderBox(child.domNode).height:_1074;
});
},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,_107d){
dojo.html.setMarginBox(this.domNode,{width:width,height:_107d});
var _107e=[{domNode:this.labelNode,layoutAlign:"top"},{domNode:this.containerNode,layoutAlign:"client"}];
dojo.widget.html.layout(this.domNode,_107e);
var _107f=dojo.html.getContentBox(this.containerNode);
this.children[0].resizeTo(_107f.width,_107f.height);
},getLabelHeight:function(){
return dojo.html.getMarginBox(this.labelNode).height;
},onLabelClick:function(){
this.parent.selectChild(this);
},setSelected:function(_1080){
this.selected=_1080;
(_1080?dojo.html.addClass:dojo.html.removeClass)(this.domNode,this["class"]+"-selected");
var child=this.children[0];
if(child){
if(_1080){
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(_1082){
var _1083=false;
var _1084=null;
var _1085=null;
if(_1082.widgetType!="AccordionPane"&&_1082.widgetType!="WCAccordionPane"){
var _1086=_1082.getChildrenOfType(dojo.widget.HtmlWidget);
dojo.lang.forEach(_1086,function(node){
if(node.widgetType=="TitlePaneTemplate"){
_1082.label=node.domNode.innerHTML;
dojo.dom.removeNode(node.domNode);
}
if(node.widgetType=="ContentPaneTemplate"){
_1084=node;
_1084.setSelected(_1082.selected);
_1083=true;
}
});
var _1088=_1082.labelNodeClass;
var _1089=_1082.labelNodeClass_Expanded;
var _108a=_1082.labelNodeClass_Collapsed;
var _108b=_1082.bottomNodeClass;
var _108c=_1082.bottomNodeClass_Expanded;
var _108d=_1082.bottomNodeClass_Collapsed;
var _108e=_1082.containerNodeClass;
var _108f=_1082.containerNodeClass_Expanded;
var _1090=_1082.containerNodeClass_Collapsed;
if(_1088==""){
_1088=this.labelNodeClass;
}
if(_1089==""){
_1089=this.labelNodeClass_Expanded;
}
if(_108a==""){
_108a=this.labelNodeClass_Collapsed;
}
if(_108b==""){
_108b=this.bottomNodeClass;
}
if(_108c==""){
_108c=this.bottomNodeClass_Expanded;
}
if(_108d==""){
_108d=this.bottomNodeClass_Collapsed;
}
if(_108e==""){
_108e=this.containerNodeClass;
}
if(_108f==""){
_108f=this.containerNodeClass_Expanded;
}
if(_1090==""){
_1090=this.containerNodeClass_Collapsed;
}
var _1091=dojo.widget.createWidget("WCAccordionPane",{label:_1082.label,selected:_1082.selected,allowCollapse:this.allowCollapse,acceptedTypes:_1082.acceptedTypes,dropEventHandler:_1082.dropEventHandler,labelNodeClass:_1088,labelNodeClass_Expanded:_1089,labelNodeClass_Collapsed:_108a,containerNodeClass:_108e,bottomNodeClass:_108b,bottomNodeClass_Expanded:_108c,bottomNodeClass_Collapsed:_108d});
_1091.addChild(_1082);
this.addWidgetAsDirectChild(_1091);
this.registerChild(_1091,this.children.length);
_1085=_1091;
}else{
if(_1082.widgetType=="WCAccordionPane"){
_1082.labelNodeClass=this.labelNodeClass;
_1082.labelNodeClass_Expanded=this.labelNodeClass_Expanded;
_1082.labelNodeClass_Collapsed=this.labelNodeClass_Collapsed;
_1082.bottomNodeClass=this.bottomNodeClass;
_1082.bottomNodeClass_Expanded=this.bottomNodeClass_Expanded;
_1082.bottomNodeClass_Collapsed=this.bottomNodeClass_Collapsed;
}
this.addWidgetAsDirectChild(_1082);
this.registerChild(_1082,this.children.length);
_1085=_1082;
}
if(_1083){
_1085.contentPaneTemplateNode=_1084;
}
return _1085;
},_setSizes:function(){
var _1092=0;
var _1093=0;
dojo.lang.forEach(this.children,function(child,idx){
_1092+=child.getLabelHeight();
if(child.selected){
_1093=idx;
}
});
var _1096=dojo.html.getContentBox(this.domNode);
dojo.lang.forEach(this.children,function(child,idx){
var _1099=child.getLabelHeight();
var _109a=_1096.height-_1092+_1099;
var _109b=(idx==_1093)?_109a:_1099;
child.resizeTo(_1096.width,_109a);
dojo.html.setMarginBox(child.domNode,{width:_1096.width,height:_109b});
if(child.contentPaneTemplateNode!=null){
var _109c=_1096.height-_1092-_1099;
dojo.html.setMarginBox(child.contentPaneTemplateNode.domNode,{width:_1096.width,height:_109c});
}
child.domNode.style.zIndex=idx+1;
});
},selectChild:function(page){
var _109e=dojo.html.getInnerHeight(this.domNode.parentNode);
dojo.lang.forEach(this.children,function(child){
child.setSelected(child==page);
_109e=_109e-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=_109e+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(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(_10a7){
this.selected=_10a7;
dojo.html.addClass(this.bottomNode,this.bottomNodeClass);
dojo.html.addClass(this.labelNode,this.labelNodeClass);
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(_10a8){
this.parentAccordionPane=_10a8;
},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 _10af=this.parentAccordionPane.containerNode.childNodes[this.parentAccordionPane.containerNode.childNodes.length-1];
this.scrollIntoView(_10af);
return true;
},scrollIntoView:function(node){
var _10b1=node.parentNode;
var _10b2=_10b1.scrollTop+dojo.html.getInnerHeight(_10b1);
var _10b3=node.offsetTop+dojo.html.getOuterHeight(node);
if(_10b2<_10b3){
_10b1.scrollTop+=(_10b3-_10b2);
}else{
if(_10b1.scrollTop>node.offsetTop){
_10b1.scrollTop-=(_10b1.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(_10b4){
this.selected=_10b4;
if(this.selected){
this.onShow();
}
},onShow:function(){
dojo.html.setStyle(this.domNode,"overflow-y","auto");
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,_10b7,_10b8){
var node=e.dragObject.domNode;
var node1=node.cloneNode(true);
new dojo.dnd.HtmlDragSource(node1,"*");
if(_10b8=="before"){
return dojo.html.insertBefore(node1,_10b7);
}else{
if(_10b8=="after"){
return dojo.html.insertAfter(node1,_10b7);
}else{
if(_10b8=="append"){
_10b7.appendChild(node1);
return true;
}
}
}
return false;
}});
({communicationError:"Communication error."});
dojo.provide("wc.analytics.GenericEventListener");
dojo.declare("wc.analytics.GenericEventListener",null,{_loaded:false,initializer:function(){
},load:function(){
if(this._loaded==false){
dojo.event.topic.subscribe("/wc/analytics/pageview",this,this.handlePageView);
dojo.event.topic.subscribe("/wc/analytics/productview",this,this.handleProductView);
dojo.event.topic.subscribe("/wc/analytics/cartview",this,this.handleCartView);
dojo.event.topic.subscribe("/wc/analytics/element",this,this.handleElement);
this._loaded=true;
}
},handlePageView:function(obj){
},handleProductView:function(obj){
},handleCartView:function(obj){
},handleElement:function(obj){
}});
dojo.provide("wc.analytics.CoremetricsEventListener");
dojo.declare("wc.analytics.CoremetricsEventListener",wc.analytics.GenericEventListener,{PARAM_STORE_ID:"storeId",handlePageView:function(obj){
dojo.debug("Entry: CoremetricsEventListener.handlePageView");
var _10c0="pagename";
var _10c1="category";
var _10c2="searchTerms";
var _10c3="searchCount";
var _10c4=document.title;
var _10c5=null;
var _10c6=null;
var _10c7=null;
var _10c8=this._getStoreId();
var args=new Array();
for(x in obj){
if(x==_10c0){
_10c4=obj[x];
}else{
if(x==_10c1){
_10c5=obj[x];
}else{
if(x==_10c2){
_10c6=obj[x];
}else{
if(x==_10c3){
_10c7=obj[x];
}else{
if(x==this.PARAM_STORE_ID){
_10c8=obj[x];
}else{
args.push(obj[x]);
}
}
}
}
}
}
args.unshift(_10c4,_10c5,_10c6,_10c7,_10c8);
cmCreatePageviewTag.apply({},args);
dojo.debug("... called cmCreatePageviewTag("+args.join()+")");
dojo.debug("Exit: CoremetricsEventListener.handlePageView");
},handleProductView:function(obj){
dojo.debug("Entry: CoremetricsEventListener.handleProductView");
var _10cb="productId";
var _10cc="name";
var _10cd="category";
var _10ce="masterCategory";
var _10cf=null;
var _10d0=null;
var _10d1=null;
var _10d2=null;
var _10d3=this._getStoreId();
var args=new Array();
for(x in obj){
if(x==_10cb){
_10cf=obj[x];
}else{
if(x==_10cc){
_10d0=obj[x];
}else{
if(x==_10cd){
_10d1=obj[x];
}else{
if(x==_10ce){
_10d2=obj[x];
}else{
if(x==this.PARAM_STORE_ID){
_10d3=obj[x];
}else{
args.push(obj[x]);
}
}
}
}
}
}
if((_10cf==null)||(_10d0==null)||(_10d1==null)||(_10d2==null)){
dojo.debug("... productId, name, category or masterCategory is missing and required. No Coremetrics tags called.");
}else{
args.unshift(null,_10cf,_10d0,_10d1,_10d3,"N",_10d2);
cmCreateProductviewTag.apply({},args);
dojo.debug("... called cmCreateProductviewTag("+args.join()+")");
}
dojo.debug("Exit: CoremetricsEventListener.handleProductView");
},handleCartView:function(obj){
dojo.debug("Entry: CoremetricsEventListener.handleCartView");
var _10d6="productId";
var _10d7="name";
var _10d8="category";
var _10d9="masterCategory";
var _10da="quantity";
var _10db="price";
var _10dc="currency";
var _10dd=false;
if(obj.cart&&dojo.lang.isArrayLike(obj.cart)){
var cart=obj.cart;
for(var i=0;i<cart.length;i++){
var _10e0=null;
var _10e1=null;
var _10e2=null;
var _10e3=null;
var _10e4=null;
var price=null;
var _10e6=null;
var _10e7=this._getStoreId();
var args=new Array();
var _10e9=cart[i];
for(x in _10e9){
if(x==_10d6){
_10e0=_10e9[x];
}else{
if(x==_10d7){
_10e1=_10e9[x];
}else{
if(x==_10d8){
_10e2=_10e9[x];
}else{
if(x==_10d9){
_10e3=_10e9[x];
}else{
if(x==_10da){
_10e4=_10e9[x];
}else{
if(x==_10db){
price=_10e9[x];
}else{
if(x==_10dc){
_10e6=_10e9[x];
}else{
if(x==this.PARAM_STORE_ID){
_10e7=_10e9[x];
}else{
args.push(_10e9[x]);
}
}
}
}
}
}
}
}
}
if((_10e0==null)||(_10e1==null)||(_10e2==null)||(_10e3==null)||(_10e4==null)||(price==null)||(_10e6==null)){
dojo.debug("... productId, name, category, masterCategory, quantity, price or currency is missing and required. No Coremetrics tags called.");
}else{
_10dd=true;
args.unshift(_10e0,_10e1,_10e4,price,_10e2,_10e7,_10e6,_10e3);
cmCreateShopAction5Tag.apply({},args);
dojo.debug("... called cmCreateShopAction5Tag("+args.join()+")");
}
}
}else{
dojo.debug("... no 'cart' parameter found or it is not an array. No Coremetrics tags called.");
}
if(_10dd){
cmDisplayShop5s();
dojo.debug("... called cmDisplayShop5s()");
}
dojo.debug("Exit: CoremetricsEventListener.handleCartView");
},handleElement:function(obj){
dojo.debug("Entry: CoremetricsEventListener.handleElement");
var _10eb="elementId";
var _10ec="category";
var _10ed="pageId";
var _10ee="pageCategory";
var _10ef="location";
var _10f0=null;
var _10f1=null;
var _10f2=null;
var _10f3=null;
var _10f4=null;
var _10f5=this._getStoreId();
var args=new Array();
for(x in obj){
if(x==_10eb){
_10f0=obj[x];
}else{
if(x==_10ec){
_10f1=obj[x];
}else{
if(x==_10ed){
_10f2=obj[x];
}else{
if(x==_10ee){
_10f3=obj[x];
}else{
if(x==_10ef){
_10f4=obj[x];
}else{
if(x==this.PARAM_STORE_ID){
_10f5=obj[x];
}else{
args.push(obj[x]);
}
}
}
}
}
}
}
if(_10f0==null){
dojo.debug("... elementId is missing and required. No Coremetrics tags called.");
}else{
args.unshift(_10f0,_10f1,_10f2,_10f3,_10f4,_10f5);
cmCreatePageElementTag.apply({},args);
dojo.debug("... called cmCreatePageElementTag("+args.join()+")");
}
dojo.debug("Exit: CoremetricsEventListener.handleElement");
},_getStoreId:function(){
var pairs=window.location.search.substr(1).split("&");
for(var i=0;i<pairs.length;i++){
var nvp=pairs[i].split("=");
if((nvp.length==2)&&(nvp[0]==this.PARAM_STORE_ID)){
return nvp[1];
}
}
return null;
}});
}


