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

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

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

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(typeof dojo=="undefined"){
var dj_global=this;
function dj_undef(_1,_2){
if(_2==null){
_2=dj_global;
}
return (typeof _2[_1]=="undefined");
}
if(dj_undef("djConfig")){
var djConfig={};
}
if(dj_undef("dojo")){
var dojo={};
}
dojo.version={major:0,minor:3,patch:1,flag:"-ning",revision:Number("$Rev: 4342 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
return (_4&&!dj_undef(_3,_4)?_4[_3]:(_5?(_4[_3]={}):undefined));
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7!=null?_7:dj_global);
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_d,_e){
if(typeof _d!="string"){
return dj_global;
}
if(_d.indexOf(".")==-1){
return dojo.evalProp(_d,dj_global,_e);
}
var _f=dojo.parseObjPath(_d,dj_global,_e);
if(_f){
return dojo.evalProp(_f.prop,_f.obj,_e);
}
return null;
};
dojo.errorToString=function(_10){
if(!dj_undef("message",_10)){
return _10.message;
}else{
if(!dj_undef("description",_10)){
return _10.description;
}else{
return _10;
}
}
};
dojo.raise=function(_11,_12){
if(_12){
_11=_11+": "+dojo.errorToString(_12);
}
try{
dojo.hostenv.println("FATAL: "+_11);
}
catch(e){
}
throw Error(_11);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_14){
return dj_global.eval?dj_global.eval(_14):eval(_14);
}
dojo.unimplemented=function(_15,_16){
var _17="'"+_15+"' not implemented";
if(_16!=null){
_17+=" "+_16;
}
dojo.raise(_17);
};
dojo.deprecated=function(_18,_19,_1a){
var _1b="DEPRECATED: "+_18;
if(_19){
_1b+=" "+_19;
}
if(_1a){
_1b+=" -- will be removed in version: "+_1a;
}
dojo.debug(_1b);
};
dojo.inherits=function(_1c,_1d){
if(typeof _1d!="function"){
dojo.raise("dojo.inherits: superclass argument ["+_1d+"] must be a function (subclass: ["+_1c+"']");
}
_1c.prototype=new _1d();
_1c.prototype.constructor=_1c;
_1c.superclass=_1d.prototype;
_1c["super"]=_1d.prototype;
};
dojo.render=(function(){
function vscaffold(_1e,_1f){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1e};
for(var _21 in _1f){
tmp[_21]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _22={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_22;
}else{
for(var _23 in _22){
if(typeof djConfig[_23]=="undefined"){
djConfig[_23]=_22[_23];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
var _26=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _27={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_28,_29){
this.modulePrefixes_[_28]={name:_28,value:_29};
},getModulePrefix:function(_2a){
var mp=this.modulePrefixes_;
if((mp[_2a])&&(mp[_2a]["name"])){
return mp[_2a].value;
}
return _2a;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _27){
dojo.hostenv[_2c]=_27[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if((_2d.charAt(0)=="/")||(_2d.match(/^\w+:/))){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_2e)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return 1;
}
var _33=this.getText(uri,null,true);
if(_33==null){
return 0;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_36,false)))?true:false;
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if((this.loadUriStack.length==0)&&(this.getTextStack.length==0)){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length-1;i>0;i--){
var _45=_43.slice(0,i).join(".");
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=this.getModuleSymbols(_47);
var _4d=((_4c[0].charAt(0)!="/")&&(!_4c[0].match(/^\w+:/)));
var _4e=_4c[_4c.length-1];
var _4f=_47.split(".");
if(_4e=="*"){
_47=(_4f.slice(0,-1)).join(".");
while(_4c.length){
_4c.pop();
_4c.push(this.pkgFileName);
_4b=_4c.join("/")+".js";
if(_4d&&(_4b.charAt(0)=="/")){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
}
}else{
_4b=_4c.join("/")+".js";
_47=_4f.join(".");
var ok=this.loadPath(_4b,((!_49)?_47:null));
if((!ok)&&(!_48)){
_4c.pop();
while(_4c.length){
_4b=_4c.join("/")+".js";
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
_4b=_4c.join("/")+"/"+this.pkgFileName+".js";
if(_4d&&(_4b.charAt(0)=="/")){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_49)){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_51){
var _52=dojo.evalObjPath((_51.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_51)).toLowerCase()]=_52;
var _53=_51.split(/\./);
if(_53[_53.length-1]=="*"){
_53.pop();
}
return dojo.evalObjPath(_53.join("."),true);
};
dojo.hostenv.findModule=function(_54,_55){
var lmn=(new String(_54)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _57=dojo.evalObjPath(_54);
if((_54)&&(typeof _57!="undefined")&&(_57)){
this.loaded_modules_[lmn]=_57;
return _57;
}
if(_55){
dojo.raise("no loaded module named '"+_54+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_58){
var _59=_58["common"]||[];
var _5a=(_58[dojo.hostenv.name_])?_59.concat(_58[dojo.hostenv.name_]||[]):_59.concat(_58["default"]||[]);
for(var x=0;x<_5a.length;x++){
var _5c=_5a[x];
if(_5c.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5c);
}else{
dojo.hostenv.loadModule(_5c);
}
}
};
dojo.require=function(){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(){
if((arguments[0]===true)||(arguments[0]=="common")||(arguments[0]&&dojo.render[arguments[0]].capable)){
var _5d=[];
for(var i=1;i<arguments.length;i++){
_5d.push(arguments[i]);
}
dojo.require.apply(dojo,_5d);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_5f,_60){
return dojo.hostenv.setModulePrefix(_5f,_60);
};
dojo.exists=function(obj,_62){
var p=_62.split(".");
for(var i=0;i<p.length;i++){
if(!(obj[p[i]])){
return false;
}
obj=obj[p[i]];
}
return true;
};
}
if(typeof window=="undefined"){
dojo.raise("no window object");
}
(function(){
if(djConfig.allowQueryConfig){
var _65=document.location.toString();
var _66=_65.split("?",2);
if(_66.length>1){
var _67=_66[1];
var _68=_67.split("&");
for(var x in _68){
var sp=_68[x].split("=");
if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){
var opt=sp[0].substr(9);
try{
djConfig[opt]=eval(sp[1]);
}
catch(e){
djConfig[opt]=sp[1];
}
}
}
}
}
if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){
var _6c=document.getElementsByTagName("script");
var _6d=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_6c.length;i++){
var src=_6c[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_6d);
if(m){
var _71=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_71+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_71;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_71;
}
break;
}
}
}
var dr=dojo.render;
var drh=dojo.render.html;
var drs=dojo.render.svg;
var dua=drh.UA=navigator.userAgent;
var dav=drh.AV=navigator.appVersion;
var t=true;
var f=false;
drh.capable=t;
drh.support.builtin=t;
dr.ver=parseFloat(drh.AV);
dr.os.mac=dav.indexOf("Macintosh")>=0;
dr.os.win=dav.indexOf("Windows")>=0;
dr.os.linux=dav.indexOf("X11")>=0;
drh.opera=dua.indexOf("Opera")>=0;
drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);
drh.safari=dav.indexOf("Safari")>=0;
var _79=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_79>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_79+6,_79+14);
}
drh.ie=(document.all)&&(!drh.opera);
drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;
drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;
drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;
drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;
dojo.locale=(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _7a=null;
var _7b=null;
try{
_7a=new XMLHttpRequest();
}
catch(e){
}
if(!_7a){
for(var i=0;i<3;++i){
var _7d=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_7a=new ActiveXObject(_7d);
}
catch(e){
_7b=e;
}
if(_7a){
dojo.hostenv._XMLHTTP_PROGIDS=[_7d];
break;
}
}
}
if(!_7a){
return dojo.raise("XMLHTTP not available",_7b);
}
return _7a;
};
dojo.hostenv.getText=function(uri,_7f,_80){
var _81=this.getXmlhttpObject();
if(_7f){
_81.onreadystatechange=function(){
if(4==_81.readyState){
if((!_81["status"])||((200<=_81.status)&&(300>_81.status))){
_7f(_81.responseText);
}
}
};
}
_81.open("GET",uri,_7f?true:false);
try{
_81.send(null);
if(_7f){
return null;
}
if((_81["status"])&&((200>_81.status)||(300<=_81.status))){
throw Error("Unable to load "+uri+" status:"+_81.status);
}
}
catch(e){
if((_80)&&(!_7f)){
return null;
}else{
throw e;
}
}
return _81.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_82){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_82);
}else{
try{
var _83=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_83){
_83=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_82));
_83.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_82+"</div>");
}
catch(e2){
window.status=_82;
}
}
}
};
dojo.addOnLoad(function(){
dojo.hostenv._println_safe=true;
while(dojo.hostenv._println_buffer.length>0){
dojo.hostenv.println(dojo.hostenv._println_buffer.shift());
}
});
function dj_addNodeEvtHdlr(_85,_86,fp,_88){
var _89=_85["on"+_86]||function(){
};
_85["on"+_86]=function(){
fp.apply(_85,arguments);
_89.apply(_85,arguments);
};
return true;
}
dj_addNodeEvtHdlr(window,"load",function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
var _8a=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_8a();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_8a);
}
});
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
});
dojo.hostenv.makeWidgets=function(){
var _8b=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_8b=_8b.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_8b=_8b.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_8b.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _8c=new dojo.xml.Parse();
if(_8b.length>0){
for(var x=0;x<_8b.length;x++){
var _8e=document.getElementById(_8b[x]);
if(!_8e){
continue;
}
var _8f=_8c.parseElement(_8e,null,true);
dojo.widget.getParser().createComponents(_8f);
}
}else{
if(djConfig.parseWidgets){
var _8f=_8c.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_8f);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.write("<style>v:*{ behavior:url(#default#VML); }</style>");
document.write("<xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
dojo.byId=function(id,doc){
if(id&&(typeof id=="string"||id instanceof String)){
if(!doc){
doc=document;
}
return doc.getElementById(id);
}
return id;
};
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _92=false;
var _93=false;
var _94=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_92=true;
}else{
if(typeof this["load"]=="function"){
_93=true;
}else{
if(window.widget){
_94=true;
}
}
}
var _95=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_95.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_92)&&(!_94)){
_95.push("browser_debug.js");
}
if((this["djConfig"])&&(djConfig["compat"])){
_95.push("compat/"+djConfig["compat"]+".js");
}
var _96=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_96=djConfig["baseLoaderUri"];
}
for(var x=0;x<_95.length;x++){
var _98=_96+"src/"+_95[x];
if(_92||_93){
load(_98);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_98+"'></scr"+"ipt>");
}
catch(e){
var _99=document.createElement("script");
_99.src=_98;
document.getElementsByTagName("head")[0].appendChild(_99);
}
}
}
})();
dojo.fallback_locale="en";
dojo.normalizeLocale=function(_9a){
return _9a?_9a.toLowerCase():dojo.locale;
};
dojo.requireLocalization=function(_9b,_9c,_9d){
dojo.debug("EXPERIMENTAL: dojo.requireLocalization");
var _9e=dojo.hostenv.getModuleSymbols(_9b);
var _9f=_9e.concat("nls").join("/");
_9d=dojo.normalizeLocale(_9d);
var _a0=_9d.split("-");
var _a1=[];
for(var i=_a0.length;i>0;i--){
_a1.push(_a0.slice(0,i).join("-"));
}
if(_a1[_a1.length-1]!=dojo.fallback_locale){
_a1.push(dojo.fallback_locale);
}
var _a3=[_9b,"_nls",_9c].join(".");
var _a4=dojo.hostenv.startPackage(_a3);
dojo.hostenv.loaded_modules_[_a3]=_a4;
var _a5=false;
for(var i=_a1.length-1;i>=0;i--){
var loc=_a1[i];
var pkg=[_a3,loc].join(".");
var _a8=false;
if(!dojo.hostenv.findModule(pkg)){
dojo.hostenv.loaded_modules_[pkg]=null;
var _a9=[_9f,loc,_9c].join("/")+".js";
_a8=dojo.hostenv.loadPath(_a9,null,function(_aa){
_a4[loc]=_aa;
if(_a5){
for(var x in _a5){
if(!_a4[loc][x]){
_a4[loc][x]=_a5[x];
}
}
}
});
}else{
_a8=true;
}
if(_a8&&_a4[loc]){
_a5=_a4[loc];
}
}
};
if(!dojo.hostenv.findModule("ning.loader",false)){
dojo.provide("ning.loader");
(function(){
var _ac=/xn_dojo_uncompressed=true/.test(window.location);
var _ad={ning:{loader:{__module__:true}}};
var _ae={};
var _af=[];
var _b0=function(_b1,_b2){
var _b3=_b2.split(".");
var cur=_b1;
for(var i=0;i<_b3.length;++i){
var _b6=_b3[i];
if(!cur[_b6]){
cur[_b6]={};
}
cur=cur[_b6];
}
cur["__module__"]=true;
};
var _b7=function(_b8,_b9){
var _ba=[];
var _bb=false;
for(var i in _b8){
if(i=="__module__"){
_bb=true;
}else{
_ba.push(i+_b7(_b8[i],true));
}
}
if(_ba.length>(_bb?0:1)){
return ((_bb?"{":"(")+_ba.join(",")+(_bb?"}":")")).replace(/(\)|}),/g,"$1");
}
return _ba[0]?((_b9?".":"")+_ba[0]):"";
};
var _bd=dojo.hostenv.startPackage;
dojo.hostenv.startPackage=function(_be){
_b0(_ad,_be);
return _bd.apply(dojo.hostenv,arguments);
};
ning.loader={_pending:{},_evalInTopLevel:function(_bf){
if(!_bf){
return;
}
window.execScript?window.execScript(_bf):eval.call(window,_bf);
},version:null,guard:function(_c0,_c1){
if(!dojo.hostenv.findModule(modulename,false)){
_c1();
}
},setPrefixPattern:function(_c2,_c3){
var _c4=String(_c2).replace(/^\/(.*)\/$/,"$1");
if(_c4==String(_c2)){
throw "Bogus parameter "+_c2+" passed to ning.loader.setPrefixPattern";
}
if(_ae[_c2]){
if(_ae[_c2]==_c3){
return;
}
throw "Pattern "+_c2+" has already been defined by calling ning.loader.setPrefixPattern";
}
_ae[_c4]=_c3;
_af.push(new RegExp("^"+_c4+"$"));
},require:function(){
var _c5="6.11_"+(ning.loader.version||(new Date()).valueOf());
var _c6=800;
var url="http://"+window.location.host+"/xn/loader?v="+_c5+"&r=";
var _c8=arguments.length-1;
var _c9=false;
if(arguments[_c8] instanceof Function||typeof arguments[_c8]=="function"){
_c9=arguments[_c8];
}else{
++_c8;
}
var _ca=null;
for(var i=0;i<_c8;++i){
if(arguments[i]&&!dojo.hostenv.findModule(arguments[i],false)){
if(!_ca){
_ca={};
}
_b0(_ca,arguments[i]);
}
}
if(!_ca){
if(_c9){
_c9();
}
return;
}
url+=_b7(_ca);
url+="&p=";
if(dojo&&dojo.hostenv&&dojo.hostenv.modulePrefixes_){
for(var i in dojo.hostenv.modulePrefixes_){
var _cc=false;
var _cd=dojo.hostenv.modulePrefixes_[i].name;
for(var p=0;p<_af.length;++p){
var _cf=_af[p];
if(_cf.test(_cd)){
_cc=true;
break;
}
}
if(!_cc){
url+=encodeURIComponent(_cd)+":"+encodeURIComponent(dojo.hostenv.modulePrefixes_[i].value)+",";
}
}
}
for(var _cf in _ae){
url+=encodeURIComponent(_cf)+"=>"+encodeURIComponent(_ae[_cf]);
}
if(_ac){
url+="&uncompressed=true";
}
if(url.length>_c6){
for(var i=0;i<_c8;++i){
dojo.require.apply(dojo,[arguments[i]]);
}
if(_c9){
_c9();
}
return;
}
url+="&h="+_b7(_ad);
if(url.length>_c6){
url=url.substring(0,_c6);
}
if(_c9){
if(djConfig.isDebug){
var id=(new Date()).getTime();
ning.loader._pending[id]=function(){
_c9();
ning.loader._pending[id]=null;
};
var _d1=document.createElement("script");
_d1.setAttribute("src",url+"&pending="+id);
document.getElementsByTagName("head").item(0).appendChild(_d1);
}else{
dojo.hostenv.getText(url,function(_d2){
try{
ning.loader._evalInTopLevel(_d2);
_c9();
}
catch(e){
setTimeout(function(){
throw e;
},0);
}
});
}
}else{
ning.loader._evalInTopLevel(dojo.hostenv.getText(url));
}
},setDebug:function(_d3){
_ac=!_d3;
}};
})();
}
dojo.provide("dojo.string.common");
dojo.require("dojo.string");
dojo.string.trim=function(str,wh){
if(!str.replace){
return str;
}
if(!str.length){
return str;
}
var re=(wh>0)?(/^\s+/):(wh<0)?(/\s+$/):(/^\s+|\s+$/g);
return str.replace(re,"");
};
dojo.string.trimStart=function(str){
return dojo.string.trim(str,1);
};
dojo.string.trimEnd=function(str){
return dojo.string.trim(str,-1);
};
dojo.string.repeat=function(str,_da,_db){
var out="";
for(var i=0;i<_da;i++){
out+=str;
if(_db&&i<_da-1){
out+=_db;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.require("dojo.string.common");
dojo.provide("dojo.lang.common");
dojo.require("dojo.lang");
dojo.lang._mixin=function(obj,_ea){
var _eb={};
for(var x in _ea){
if(typeof _eb[x]=="undefined"||_eb[x]!=_ea[x]){
obj[x]=_ea[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_ea["toString"])&&_ea["toString"]!=obj["toString"]){
obj.toString=_ea.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_ee){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_f0,_f1){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_f0.prototype,arguments[i]);
}
return _f0;
};
dojo.lang.find=function(arr,val,_f5,_f6){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _f8=dojo.lang.isString(arr);
if(_f8){
arr=arr.split("");
}
if(_f6){
var _f9=-1;
var i=arr.length-1;
var end=-1;
}else{
var _f9=1;
var i=0;
var end=arr.length;
}
if(_f5){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_f9;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_f9;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_fe){
return dojo.lang.find(arr,val,_fe,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(arr,val){
return dojo.lang.find(arr,val)>-1;
};
dojo.lang.isObject=function(wh){
if(typeof wh=="undefined"){
return false;
}
return (typeof wh=="object"||wh===null||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh));
};
dojo.lang.isArray=function(wh){
return (wh instanceof Array||typeof wh=="array");
};
dojo.lang.isArrayLike=function(wh){
if(dojo.lang.isString(wh)){
return false;
}
if(dojo.lang.isFunction(wh)){
return false;
}
if(dojo.lang.isArray(wh)){
return true;
}
if(typeof wh!="undefined"&&wh&&dojo.lang.isNumber(wh.length)&&isFinite(wh.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(wh){
if(!wh){
return false;
}
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
if(!wh){
return false;
}
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh));
};
dojo.lang.isBoolean=function(wh){
return (wh instanceof Boolean||typeof wh=="boolean");
};
dojo.lang.isNumber=function(wh){
return (wh instanceof Number||typeof wh=="number");
};
dojo.lang.isUndefined=function(wh){
return ((wh==undefined)&&(typeof wh=="undefined"));
};
dojo.provide("dojo.lang.extras");
dojo.require("dojo.lang.common");
dojo.lang.setTimeout=function(func,_10b){
var _10c=window,argsStart=2;
if(!dojo.lang.isFunction(func)){
_10c=func;
func=_10b;
_10b=arguments[2];
argsStart++;
}
if(dojo.lang.isString(func)){
func=_10c[func];
}
var args=[];
for(var i=argsStart;i<arguments.length;i++){
args.push(arguments[i]);
}
return setTimeout(function(){
func.apply(_10c,args);
},_10b);
};
dojo.lang.getNameInObj=function(ns,item){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===item){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj){
var ret={},key;
for(key in obj){
if(dojo.lang.isUndefined(ret[key])){
ret[key]=obj[key];
}
}
return ret;
};
dojo.lang.firstValued=function(){
for(var i=0;i<arguments.length;i++){
if(typeof arguments[i]!="undefined"){
return arguments[i];
}
}
return undefined;
};
dojo.lang.getObjPathValue=function(_115,_116,_117){
with(dojo.parseObjPath(_115,_116,_117)){
return dojo.evalProp(prop,obj,_117);
}
};
dojo.lang.setObjPathValue=function(_118,_119,_11a,_11b){
if(arguments.length<4){
_11b=true;
}
with(dojo.parseObjPath(_118,_11a,_11b)){
if(obj&&(_11b||(prop in obj))){
obj[prop]=_119;
}
}
};
dojo.provide("dojo.io");
dojo.provide("dojo.io.IO");
dojo.require("dojo.string");
dojo.require("dojo.lang.extras");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_11d,_11e,_11f){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_11d){
this.mimetype=_11d;
}
if(_11e){
this.transport=_11e;
}
if(arguments.length>=4){
this.changeUrl=_11f;
}
}
};
dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,evt){
},error:function(type,_124){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_126){
if(_126["url"]){
_126.url=_126.url.toString();
}
if(_126["formNode"]){
_126.formNode=dojo.byId(_126.formNode);
}
if(!_126["method"]&&_126["formNode"]&&_126["formNode"].method){
_126.method=_126["formNode"].method;
}
if(!_126["handle"]&&_126["handler"]){
_126.handle=_126.handler;
}
if(!_126["load"]&&_126["loaded"]){
_126.load=_126.loaded;
}
if(!_126["changeUrl"]&&_126["changeURL"]){
_126.changeUrl=_126.changeURL;
}
_126.encoding=dojo.lang.firstValued(_126["encoding"],djConfig["bindEncoding"],"");
_126.sendTransport=dojo.lang.firstValued(_126["sendTransport"],djConfig["ioSendTransport"],false);
var _127=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_127(_126[fn])){
continue;
}
if(_127(_126["handle"])){
_126[fn]=_126.handle;
}
}
dojo.lang.mixin(this,_126);
}});
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(_12e){
if(!(_12e instanceof dojo.io.Request)){
try{
_12e=new dojo.io.Request(_12e);
}
catch(e){
dojo.debug(e);
}
}
var _12f="";
if(_12e["transport"]){
_12f=_12e["transport"];
if(!this[_12f]){
return _12e;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_12e))){
_12f=tmp;
}
}
if(_12f==""){
return _12e;
}
}
this[_12f].bind(_12e);
_12e.bindSuccess=true;
return _12e;
};
dojo.io.queueBind=function(_132){
if(!(_132 instanceof dojo.io.Request)){
try{
_132=new dojo.io.Request(_132);
}
catch(e){
dojo.debug(e);
}
}
var _133=_132.load;
_132.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_133.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _135=_132.error;
_132.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_135.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_132);
dojo.io._dispatchNextQueueBind();
return _132;
};
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,_138,last){
var enc=/utf/i.test(_138||"")?encodeURIComponent:dojo.string.encodeAscii;
var _13b=[];
var _13c=new Object();
for(var name in map){
var _13e=function(elt){
var val=enc(name)+"="+enc(elt);
_13b[(last==name)?"push":"unshift"](val);
};
if(!_13c[name]){
var _141=map[name];
if(dojo.lang.isArray(_141)){
dojo.lang.forEach(_141,_13e);
}else{
_13e(_141);
}
}
}
return _13b.join("&");
};
dojo.io.setIFrameSrc=function(_142,src,_144){
try{
var r=dojo.render.html;
if(!_144){
if(r.safari){
_142.location=src;
}else{
frames[_142.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_142.contentWindow.document;
}else{
if(r.safari){
idoc=_142.document;
}else{
idoc=_142.contentWindow;
}
}
if(!idoc){
_142.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.lang.has=function(obj,name){
try{
return (typeof obj[name]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _14b=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_14b++;
break;
}
}
return (_14b==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_14f){
var _150=dojo.lang.isString(arr);
if(_150){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_14f)){
_14f=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_14f){
var _151=obj;
obj=_14f;
_14f=_151;
}
}
if(Array.map){
var _152=Array.map(arr,_14f,obj);
}else{
var _152=[];
for(var i=0;i<arr.length;++i){
_152.push(_14f.call(obj,arr[i]));
}
}
if(_150){
return _152.join("");
}else{
return _152;
}
};
dojo.lang.forEach=function(_154,_155,_156){
if(dojo.lang.isString(_154)){
_154=_154.split("");
}
if(Array.forEach){
Array.forEach(_154,_155,_156);
}else{
if(!_156){
_156=dj_global;
}
for(var i=0,l=_154.length;i<l;i++){
_155.call(_156,_154[i],i,_154);
}
}
};
dojo.lang._everyOrSome=function(_158,arr,_15a,_15b){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_158)?"every":"some"](arr,_15a,_15b);
}else{
if(!_15b){
_15b=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _15d=_15a.call(_15b,arr[i],i,arr);
if((_158)&&(!_15d)){
return false;
}else{
if((!_158)&&(_15d)){
return true;
}
}
}
return (_158)?true:false;
}
};
dojo.lang.every=function(arr,_15f,_160){
return this._everyOrSome(true,arr,_15f,_160);
};
dojo.lang.some=function(arr,_162,_163){
return this._everyOrSome(false,arr,_162,_163);
};
dojo.lang.filter=function(arr,_165,_166){
var _167=dojo.lang.isString(arr);
if(_167){
arr=arr.split("");
}
if(Array.filter){
var _168=Array.filter(arr,_165,_166);
}else{
if(!_166){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_166=dj_global;
}
var _168=[];
for(var i=0;i<arr.length;i++){
if(_165.call(_166,arr[i],i,arr)){
_168.push(arr[i]);
}
}
}
if(_167){
return _168.join("");
}else{
return _168;
}
};
dojo.lang.unnest=function(){
var out=[];
for(var i=0;i<arguments.length;i++){
if(dojo.lang.isArrayLike(arguments[i])){
var add=dojo.lang.unnest.apply(this,arguments[i]);
out=out.concat(add);
}else{
out.push(arguments[i]);
}
}
return out;
};
dojo.lang.toArray=function(_16d,_16e){
var _16f=[];
for(var i=_16e||0;i<_16d.length;i++){
_16f.push(_16d[i]);
}
return _16f;
};
dojo.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.lang.hitch=function(_171,_172){
if(dojo.lang.isString(_172)){
var fcn=_171[_172];
}else{
var fcn=_172;
}
return function(){
return fcn.apply(_171,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_174,_175,_176){
var nso=(_175||dojo.lang.anon);
if((_176)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
if(nso[x]===_174){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_174;
return ret;
};
dojo.lang.forward=function(_17a){
return function(){
return this[_17a].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _17d=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_17d.push(arguments[x]);
}
var _17f=(func["__preJoinArity"]||func.length)-_17d.length;
function gather(_180,_181,_182){
var _183=_182;
var _184=_181.slice(0);
for(var x=0;x<_180.length;x++){
_184.push(_180[x]);
}
_182=_182-_180.length;
if(_182<=0){
var res=func.apply(ns,_184);
_182=_183;
return res;
}else{
return function(){
return gather(arguments,_184,_182);
};
}
}
return gather([],_17d,_17f);
};
dojo.lang.curryArguments=function(ns,func,args,_18a){
var _18b=[];
var x=_18a||0;
for(x=_18a;x<args.length;x++){
_18b.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_18b));
};
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,_191,_192){
if(!farr.length){
if(typeof _192=="function"){
_192();
}
return;
}
if((typeof _191=="undefined")&&(typeof cb=="number")){
_191=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_191){
_191=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_191,_192);
},_191);
};
dojo.provide("dojo.string.extras");
dojo.require("dojo.string.common");
dojo.require("dojo.lang");
dojo.string.substituteParams=function(_193,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _193.replace(/\%\{(\w+)\}/g,function(_196,key){
if(dojo.lang.isUndefined(map[key])){
dojo.raise("Substitution not found: "+key);
}
return map[key];
});
};
dojo.string.paramString=function(str,_199,_19a){
dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");
for(var name in _199){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_199[name]);
}
if(_19a){
str=str.replace(/%\{([^\}\s]+)\}/g,"");
}
return str;
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
if(arguments.length==0){
str=this;
}
var _19e=str.split(" ");
for(var i=0;i<_19e.length;i++){
_19e[i]=_19e[i].charAt(0).toUpperCase()+_19e[i].substring(1);
}
return _19e.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 _1a3=escape(str);
var _1a4,re=/%u([0-9A-F]{4})/i;
while((_1a4=_1a3.match(re))){
var num=Number("0x"+_1a4[1]);
var _1a6=escape("&#"+num+";");
ret+=_1a3.substring(0,_1a4.index)+_1a6;
_1a3=_1a3.substring(_1a4.index+_1a4[0].length);
}
ret+=_1a3.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,_1ab){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_1ab){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dojo.string.escapeSql=function(str){
return str.replace(/'/gm,"''");
};
dojo.string.escapeRegExp=function(str){
return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");
};
dojo.string.escapeJavaScript=function(str){
return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");
};
dojo.string.escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.string.summary=function(str,len){
if(!len||str.length<=len){
return str;
}else{
return str.substring(0,len).replace(/\.+$/,"")+"...";
}
};
dojo.string.endsWith=function(str,end,_1b4){
if(_1b4){
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,_1b8,_1b9){
if(_1b9){
str=str.toLowerCase();
_1b8=_1b8.toLowerCase();
}
return str.indexOf(_1b8)==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,_1bf){
if(_1bf=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_1bf=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n");
text=text.replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_1c1){
var _1c2=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_1c1){
_1c2.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_1c2.push(str.substr(prevcomma));
return _1c2;
};
dojo.provide("dojo.dom");
dojo.require("dojo.lang.array");
dojo.dom.ELEMENT_NODE=1;
dojo.dom.ATTRIBUTE_NODE=2;
dojo.dom.TEXT_NODE=3;
dojo.dom.CDATA_SECTION_NODE=4;
dojo.dom.ENTITY_REFERENCE_NODE=5;
dojo.dom.ENTITY_NODE=6;
dojo.dom.PROCESSING_INSTRUCTION_NODE=7;
dojo.dom.COMMENT_NODE=8;
dojo.dom.DOCUMENT_NODE=9;
dojo.dom.DOCUMENT_TYPE_NODE=10;
dojo.dom.DOCUMENT_FRAGMENT_NODE=11;
dojo.dom.NOTATION_NODE=12;
dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";
dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};
dojo.dom.isNode=function(wh){
if(typeof Element=="object"){
try{
return wh instanceof Element;
}
catch(E){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getTagName=function(node){
dojo.deprecated("dojo.dom.getTagName","use node.tagName instead","0.4");
var _1c6=node.tagName;
if(_1c6.substr(0,5).toLowerCase()!="dojo:"){
if(_1c6.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_1c6.substring(4).toLowerCase();
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((node.getAttributeNS)&&(node.getAttributeNS(this.dojoml,"type"))){
return "dojo:"+node.getAttributeNS(this.dojoml,"type").toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){
var _1c8=node.className||node.getAttribute("class");
if((_1c8)&&(_1c8.indexOf)&&(_1c8.indexOf("dojo-")!=-1)){
var _1c9=_1c8.split(" ");
for(var x=0;x<_1c9.length;x++){
if((_1c9[x].length>5)&&(_1c9[x].indexOf("dojo-")>=0)){
return "dojo:"+_1c9[x].substr(5).toLowerCase();
}
}
}
}
}
return _1c6.toLowerCase();
};
dojo.dom.getUniqueId=function(){
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(document.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_1cc,_1cd){
var node=_1cc.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_1cd&&node&&node.tagName&&node.tagName.toLowerCase()!=_1cd.toLowerCase()){
node=dojo.dom.nextElement(node,_1cd);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_1cf,_1d0){
var node=_1cf.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_1d0&&node&&node.tagName&&node.tagName.toLowerCase()!=_1d0.toLowerCase()){
node=dojo.dom.prevElement(node,_1d0);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_1d3){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1d3&&_1d3.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_1d3);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_1d5){
if(!node){
return null;
}
if(_1d5){
_1d5=_1d5.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1d5&&_1d5.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_1d5);
}
return node;
};
dojo.dom.moveChildren=function(_1d6,_1d7,trim){
var _1d9=0;
if(trim){
while(_1d6.hasChildNodes()&&_1d6.firstChild.nodeType==dojo.dom.TEXT_NODE){
_1d6.removeChild(_1d6.firstChild);
}
while(_1d6.hasChildNodes()&&_1d6.lastChild.nodeType==dojo.dom.TEXT_NODE){
_1d6.removeChild(_1d6.lastChild);
}
}
while(_1d6.hasChildNodes()){
_1d7.appendChild(_1d6.firstChild);
_1d9++;
}
return _1d9;
};
dojo.dom.copyChildren=function(_1da,_1db,trim){
var _1dd=_1da.cloneNode(true);
return this.moveChildren(_1dd,_1db,trim);
};
dojo.dom.removeChildren=function(node){
var _1df=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _1df;
};
dojo.dom.replaceChildren=function(node,_1e1){
dojo.dom.removeChildren(node);
node.appendChild(_1e1);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_1e4,_1e5){
var _1e6=[];
var _1e7=dojo.lang.isFunction(_1e4);
while(node){
if(!_1e7||_1e4(node)){
_1e6.push(node);
}
if(_1e5&&_1e6.length>0){
return _1e6[0];
}
node=node.parentNode;
}
if(_1e5){
return null;
}
return _1e6;
};
dojo.dom.getAncestorsByTag=function(node,tag,_1ea){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_1ea);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_1ef,_1f0){
if(_1f0&&node){
node=node.parentNode;
}
while(node){
if(node==_1ef){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
if(!dj_undef("ActiveXObject")){
var _1f3=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_1f3.length;i++){
try{
doc=new ActiveXObject(_1f3[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((document.implementation)&&(document.implementation.createDocument)){
doc=document.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_1f6){
if(!_1f6){
_1f6="text/xml";
}
if(!dj_undef("DOMParser")){
var _1f7=new DOMParser();
return _1f7.parseFromString(str,_1f6);
}else{
if(!dj_undef("ActiveXObject")){
var _1f8=dojo.dom.createDocument();
if(_1f8){
_1f8.async=false;
_1f8.loadXML(str);
return _1f8;
}else{
dojo.debug("toXml didn't work?");
}
}else{
if(document.createElement){
var tmp=document.createElement("xml");
tmp.innerHTML=str;
if(document.implementation&&document.implementation.createDocument){
var _1fa=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_1fa.importNode(tmp.childNodes.item(i),true);
}
return _1fa;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_1fd){
if(_1fd.firstChild){
_1fd.insertBefore(node,_1fd.firstChild);
}else{
_1fd.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_200){
if(_200!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _201=ref.parentNode;
_201.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_204){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_204!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_204);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_208){
if((!node)||(!ref)||(!_208)){
return false;
}
switch(_208.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,_20a,_20b){
var _20c=_20a.childNodes;
if(!_20c.length){
_20a.appendChild(node);
return true;
}
var _20d=null;
for(var i=0;i<_20c.length;i++){
var _20f=_20c.item(i)["getAttribute"]?parseInt(_20c.item(i).getAttribute("dojoinsertionindex")):-1;
if(_20f<_20b){
_20d=_20c.item(i);
}
}
if(_20d){
return dojo.dom.insertAfter(node,_20d);
}else{
return dojo.dom.insertBefore(node,_20c.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _212="";
if(node==null){
return _212;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_212+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_212+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _212;
}
};
dojo.dom.collectionToArray=function(_214){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_214);
};
dojo.dom.hasParent=function(node){
return node&&node.parentNode&&dojo.dom.isNode(node.parentNode);
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
var arr=dojo.lang.toArray(arguments,1);
return arr[dojo.lang.find(node.tagName,arr)]||"";
}
return "";
};
dojo.provide("dojo.undo.browser");
dojo.require("dojo.io");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState={"url":this.initialHref,"kwArgs":args,"urlHash":this.initialHash};
},addToHistory:function(args){
var hash=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
(document.body||document.getElementsByTagName("body")[0]).appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if((!args["changeUrl"])||(dojo.render.html.ie)){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
}
if(args["changeUrl"]){
this.changingUrl=true;
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
var _21c=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_21e){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_21c.apply(this,[_21e]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _21f=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_221){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_21f){
_21f.apply(this,[_221]);
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}else{
if(args["handle"]){
args.handle=tfw;
}
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200);
}
}
}
}
this.historyStack.push({"url":url,"kwArgs":args,"urlHash":hash});
},checkLocation:function(){
if(!this.changingUrl){
var hsl=this.historyStack.length;
if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(hsl==1)){
this.handleBackButton();
return;
}
if(this.forwardStack.length>0){
if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){
this.handleForwardButton();
return;
}
}
if((hsl>=2)&&(this.historyStack[hsl-2])){
if(this.historyStack[hsl-2].urlHash==window.location.hash){
this.handleBackButton();
return;
}
}
}
},iframeLoaded:function(evt,_224){
if(!dojo.render.html.opera){
var _225=this._getUrlQuery(_224.href);
if(_225==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_225==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_225==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _226=this.historyStack.pop();
if(!_226){
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(_226);
},handleForwardButton:function(){
var last=this.forwardStack.pop();
if(!last){
return;
}
if(last.kwArgs["forward"]){
last.kwArgs.forward();
}else{
if(last.kwArgs["forwardButton"]){
last.kwArgs.forwardButton();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("forward");
}
}
}
this.historyStack.push(last);
},_getUrlQuery:function(url){
var _22a=url.split("?");
if(_22a.length<2){
return null;
}else{
return _22a[1];
}
}};
dojo.provide("dojo.io.BrowserIO");
dojo.require("dojo.io");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.func");
dojo.require("dojo.string.extras");
dojo.require("dojo.dom");
dojo.require("dojo.undo.browser");
dojo.io.checkChildrenForFile=function(node){
var _22c=false;
var _22d=node.getElementsByTagName("input");
dojo.lang.forEach(_22d,function(_22e){
if(_22c){
return;
}
if(_22e.getAttribute("type")=="file"){
_22c=true;
}
});
return _22c;
};
dojo.io.formHasFile=function(_22f){
return dojo.io.checkChildrenForFile(_22f);
};
dojo.io.updateNode=function(node,_231){
node=dojo.byId(node);
var args=_231;
if(dojo.lang.isString(_231)){
args={url:_231};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
if(dojo["event"]){
try{
dojo.event.browser.clean(node.firstChild);
}
catch(e){
}
}
node.removeChild(node.firstChild);
}
node.innerHTML=d;
};
dojo.io.bind(args);
};
dojo.io.formFilter=function(node){
var type=(node.type||"").toLowerCase();
return !node.disabled&&node.name&&!dojo.lang.inArray(type,["file","submit","image","reset","button"]);
};
dojo.io.encodeForm=function(_238,_239,_23a){
if((!_238)||(!_238.tagName)||(!_238.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_23a){
_23a=dojo.io.formFilter;
}
var enc=/utf/i.test(_239||"")?encodeURIComponent:dojo.string.encodeAscii;
var _23c=[];
for(var i=0;i<_238.elements.length;i++){
var elm=_238.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_23a(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){
_23c.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_23c.push(name+"="+enc(elm.value));
}
}else{
_23c.push(name+"="+enc(elm.value));
}
}
}
var _242=_238.getElementsByTagName("input");
for(var i=0;i<_242.length;i++){
var _243=_242[i];
if(_243.type.toLowerCase()=="image"&&_243.form==_238&&_23a(_243)){
var name=enc(_243.name);
_23c.push(name+"="+enc(_243.value));
_23c.push(name+".x=0");
_23c.push(name+".y=0");
}
}
return _23c.join("&")+"&";
};
dojo.io.FormBind=function(args){
this.bindArgs={};
if(args&&args.formNode){
this.init(args);
}else{
if(args){
this.init({formNode:args});
}
}
};
dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){
var form=dojo.byId(args.formNode);
if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){
throw new Error("FormBind: Couldn't apply, invalid form");
}else{
if(this.form==form){
return;
}else{
if(this.form){
throw new Error("FormBind: Already applied to a form");
}
}
}
dojo.lang.mixin(this.bindArgs,args);
this.form=form;
this.connect(form,"onsubmit","submit");
for(var i=0;i<form.elements.length;i++){
var node=form.elements[i];
if(node&&node.type&&dojo.lang.inArray(node.type.toLowerCase(),["submit","button"])){
this.connect(node,"onclick","click");
}
}
var _249=form.getElementsByTagName("input");
for(var i=0;i<_249.length;i++){
var _24a=_249[i];
if(_24a.type.toLowerCase()=="image"&&_24a.form==form){
this.connect(_24a,"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 _251=false;
if(node.disabled||!node.name){
_251=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_251=node==this.clickedButton;
}else{
_251=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _251;
},connect:function(_252,_253,_254){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_252,_253,this,_254);
}else{
var fcn=dojo.lang.hitch(this,_254);
_252[_253]=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 _257=this;
var _258={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_25a,_25b){
return url+"|"+_25a+"|"+_25b.toLowerCase();
}
function addToCache(url,_25d,_25e,http){
_258[getCacheKey(url,_25d,_25e)]=http;
}
function getFromCache(url,_261,_262){
return _258[getCacheKey(url,_261,_262)];
}
this.clearCache=function(){
_258={};
};
function doLoad(_263,http,url,_266,_267){
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(_263.method.toLowerCase()=="head"){
var _269=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _269;
};
var _26a=_269.split(/[\r\n]+/g);
for(var i=0;i<_26a.length;i++){
var pair=_26a[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_263.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_263.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_263.mimetype=="application/xml")||(_263.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(_267){
addToCache(url,_266,_263.method,http);
}
_263[(typeof _263.load=="function")?"load":"handle"]("load",ret,http,_263);
}else{
var _26d=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_263[(typeof _263.error=="function")?"error":"handle"]("error",_26d,http,_263);
}
}
function setHeaders(http,_26f){
if(_26f["headers"]){
for(var _270 in _26f["headers"]){
if(_270.toLowerCase()=="content-type"&&!_26f["contentType"]){
_26f["contentType"]=_26f["headers"][_270];
}else{
http.setRequestHeader(_270,_26f["headers"][_270]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
for(var x=this.inFlight.length-1;x>=0;x--){
var tif=this.inFlight[x];
if(!tif){
this.inFlight.splice(x,1);
continue;
}
if(4==tif.http.readyState){
this.inFlight.splice(x,1);
doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);
}else{
if(tif.startTime){
if(!now){
now=(new Date()).getTime();
}
if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){
if(typeof tif.http.abort=="function"){
tif.http.abort();
}
this.inFlight.splice(x,1);
tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);
}
}
}
}
if(this.inFlight.length==0){
clearInterval(this.inFlightTimer);
this.inFlightTimer=null;
}
};
var _274=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_275){
return _274&&dojo.lang.inArray((_275["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_275["formNode"]&&dojo.io.formHasFile(_275["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_276){
if(!_276["url"]){
if(!_276["formNode"]&&(_276["backButton"]||_276["back"]||_276["changeUrl"]||_276["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(_276);
return true;
}
}
var url=_276.url;
var _278="";
if(_276["formNode"]){
var ta=_276.formNode.getAttribute("action");
if((ta)&&(!_276["url"])){
url=ta;
}
var tp=_276.formNode.getAttribute("method");
if((tp)&&(!_276["method"])){
_276.method=tp;
}
_278+=dojo.io.encodeForm(_276.formNode,_276.encoding,_276["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_276["file"]){
_276.method="post";
}
if(!_276["method"]){
_276.method="get";
}
if(_276.method.toLowerCase()=="get"){
_276.multipart=false;
}else{
if(_276["file"]){
_276.multipart=true;
}else{
if(!_276["multipart"]){
_276.multipart=false;
}
}
}
if(_276["backButton"]||_276["back"]||_276["changeUrl"]){
dojo.undo.browser.addToHistory(_276);
}
var _27b=_276["content"]||{};
if(_276.sendTransport){
_27b["dojo.transport"]="xmlhttp";
}
do{
if(_276.postContent){
_278=_276.postContent;
break;
}
if(_27b){
_278+=dojo.io.argsFromMap(_27b,_276.encoding);
}
if(_276.method.toLowerCase()=="get"||!_276.multipart){
break;
}
var t=[];
if(_278.length){
var q=_278.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(_276.file){
if(dojo.lang.isArray(_276.file)){
for(var i=0;i<_276.file.length;++i){
var o=_276.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=_276.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+"--","");
_278=t.join("\r\n");
}
}while(false);
var _281=_276["sync"]?false:true;
var _282=_276["preventCache"]||(this.preventCache==true&&_276["preventCache"]!=false);
var _283=_276["useCache"]==true||(this.useCache==true&&_276["useCache"]!=false);
if(!_282&&_283){
var _284=getFromCache(url,_278,_276.method);
if(_284){
doLoad(_276,_284,url,_278,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_276);
var _286=false;
if(_281){
var _287=this.inFlight.push({"req":_276,"http":http,"url":url,"query":_278,"useCache":_283,"startTime":_276.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_276.method.toLowerCase()=="post"){
http.open("POST",url,_281);
setHeaders(http,_276);
http.setRequestHeader("Content-Type",_276.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_276.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_278);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_276,{status:404},url,_278,_283);
}
}else{
var _288=url;
if(_278!=""){
_288+=(_288.indexOf("?")>-1?"&":"?")+_278;
}
if(_282){
_288+=(dojo.string.endsWithAny(_288,"?","&")?"":(_288.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_276.method.toUpperCase(),_288,_281);
setHeaders(http,_276);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_276,{status:404},url,_278,_283);
}
}
if(!_281){
doLoad(_276,http,url,_278,_283);
}
_276.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_28a,days,path,_28d,_28e){
var _28f=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_28f=d.toGMTString();
}
_28a=escape(_28a);
document.cookie=name+"="+_28a+";"+(_28f!=-1?" expires="+_28f+";":"")+(path?"path="+path:"")+(_28d?"; domain="+_28d:"")+(_28e?"; 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 _293=document.cookie.substring(idx+name.length+1);
var end=_293.indexOf(";");
if(end==-1){
end=_293.length;
}
_293=_293.substring(0,end);
_293=unescape(_293);
return _293;
};
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,_29a,_29b,_29c){
if(arguments.length==5){
_29c=_29a;
_29a=null;
_29b=null;
}
var _29d=[],cookie,value="";
if(!_29c){
cookie=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!cookie){
cookie={};
}
for(var prop in obj){
if(prop==null){
delete cookie[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
cookie[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in cookie){
_29d.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_29d.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_29a,_29b);
};
dojo.io.cookie.getObjectCookie=function(name){
var _2a0=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_2a0={};
var _2a1=cookie.split("&");
for(var i=0;i<_2a1.length;i++){
var pair=_2a1[i].split("=");
var _2a4=pair[1];
if(isNaN(_2a4)){
_2a4=unescape(pair[1]);
}
_2a0[unescape(pair[0])]=_2a4;
}
}
return _2a0;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _2a5=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_2a5=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.date");
dojo.date.setDayOfYear=function(_2a6,_2a7){
_2a6.setMonth(0);
_2a6.setDate(_2a7);
return _2a6;
};
dojo.date.getDayOfYear=function(_2a8){
var _2a9=new Date(_2a8.getFullYear(),0,1);
return Math.floor((_2a8.getTime()-_2a9.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_2aa,week,_2ac){
if(arguments.length==1){
_2ac=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_2ad,_2ae){
if(arguments.length==1){
_2ae=0;
}
var _2af=new Date(_2ad.getFullYear(),0,1);
var day=_2af.getDay();
_2af.setDate(_2af.getDate()-day+_2ae-(day>_2ae?7:0));
return Math.floor((_2ad.getTime()-_2af.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_2b1,week,_2b3){
if(arguments.length==1){
_2b3=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_2b4,_2b5){
if(arguments.length==1){
_2b5=1;
}
dojo.unimplemented("dojo.date.getIsoWeekOfYear");
};
dojo.date.setIso8601=function(_2b6,_2b7){
var _2b8=(_2b7.indexOf("T")==-1)?_2b7.split(" "):_2b7.split("T");
dojo.date.setIso8601Date(_2b6,_2b8[0]);
if(_2b8.length==2){
dojo.date.setIso8601Time(_2b6,_2b8[1]);
}
return _2b6;
};
dojo.date.fromIso8601=function(_2b9){
return dojo.date.setIso8601(new Date(0,0),_2b9);
};
dojo.date.setIso8601Date=function(_2ba,_2bb){
var _2bc="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_2bb.match(new RegExp(_2bc));
if(!d){
dojo.debug("invalid date string: "+_2bb);
return false;
}
var year=d[1];
var _2bf=d[4];
var date=d[6];
var _2c1=d[8];
var week=d[10];
var _2c3=(d[12])?d[12]:1;
_2ba.setYear(year);
if(_2c1){
dojo.date.setDayOfYear(_2ba,Number(_2c1));
}else{
if(week){
_2ba.setMonth(0);
_2ba.setDate(1);
var gd=_2ba.getDay();
var day=(gd)?gd:7;
var _2c6=Number(_2c3)+(7*Number(week));
if(day<=4){
_2ba.setDate(_2c6+1-day);
}else{
_2ba.setDate(_2c6+8-day);
}
}else{
if(_2bf){
_2ba.setDate(1);
_2ba.setMonth(_2bf-1);
}
if(date){
_2ba.setDate(date);
}
}
}
return _2ba;
};
dojo.date.fromIso8601Date=function(_2c7){
return dojo.date.setIso8601Date(new Date(0,0),_2c7);
};
dojo.date.setIso8601Time=function(_2c8,_2c9){
var _2ca="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_2c9.match(new RegExp(_2ca));
var _2cc=0;
if(d){
if(d[0]!="Z"){
_2cc=(Number(d[3])*60)+Number(d[5]);
_2cc*=((d[2]=="-")?1:-1);
}
_2cc-=_2c8.getTimezoneOffset();
_2c9=_2c9.substr(0,_2c9.length-d[0].length);
}
var _2cd="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
var d=_2c9.match(new RegExp(_2cd));
if(!d){
dojo.debug("invalid time string: "+_2c9);
return false;
}
var _2ce=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;
_2c8.setHours(_2ce);
_2c8.setMinutes(mins);
_2c8.setSeconds(secs);
_2c8.setMilliseconds(ms);
if(_2cc!=0){
_2c8.setTime(_2c8.getTime()+_2cc*60000);
}
return _2c8;
};
dojo.date.fromIso8601Time=function(_2d2){
return dojo.date.setIso8601Time(new Date(0,0),_2d2);
};
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.months=["January","February","March","April","May","June","July","August","September","October","November","December"];
dojo.date.shortMonths=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"];
dojo.date.days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
dojo.date.shortDays=["Sun","Mon","Tues","Wed","Thur","Fri","Sat"];
dojo.date.getDaysInMonth=function(_2d3){
var _2d4=_2d3.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_2d4==1&&dojo.date.isLeapYear(_2d3)){
return 29;
}else{
return days[_2d4];
}
};
dojo.date.isLeapYear=function(_2d6){
var year=_2d6.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getDayName=function(_2d8){
return dojo.date.days[_2d8.getDay()];
};
dojo.date.getDayShortName=function(_2d9){
return dojo.date.shortDays[_2d9.getDay()];
};
dojo.date.getMonthName=function(_2da){
return dojo.date.months[_2da.getMonth()];
};
dojo.date.getMonthShortName=function(_2db){
return dojo.date.shortMonths[_2db.getMonth()];
};
dojo.date.getTimezoneName=function(_2dc){
var _2dd=-(_2dc.getTimezoneOffset());
for(var i=0;i<dojo.date.timezoneOffsets.length;i++){
if(dojo.date.timezoneOffsets[i]==_2dd){
return dojo.date.shortTimezones[i];
}
}
function $(s){
s=String(s);
while(s.length<2){
s="0"+s;
}
return s;
}
return (_2dd<0?"-":"+")+$(Math.floor(Math.abs(_2dd)/60))+":"+$(Math.abs(_2dd)%60);
};
dojo.date.getOrdinal=function(_2e0){
var date=_2e0.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.format=dojo.date.strftime=function(_2e2,_2e3){
var _2e4=null;
function _(s,n){
s=String(s);
n=(n||2)-s.length;
while(n-->0){
s=(_2e4==null?"0":_2e4)+s;
}
return s;
}
function $(_2e7){
switch(_2e7){
case "a":
return dojo.date.getDayShortName(_2e2);
break;
case "A":
return dojo.date.getDayName(_2e2);
break;
case "b":
case "h":
return dojo.date.getMonthShortName(_2e2);
break;
case "B":
return dojo.date.getMonthName(_2e2);
break;
case "c":
return _2e2.toLocaleString();
break;
case "C":
return _(Math.floor(_2e2.getFullYear()/100));
break;
case "d":
return _(_2e2.getDate());
break;
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
break;
case "e":
if(_2e4==null){
_2e4=" ";
}
return _(_2e2.getDate(),2);
break;
case "g":
break;
case "G":
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
break;
case "H":
return _(_2e2.getHours());
break;
case "I":
return _(_2e2.getHours()%12||12);
break;
case "j":
return _(dojo.date.getDayOfYear(_2e2),3);
break;
case "m":
return _(_2e2.getMonth()+1);
break;
case "M":
return _(_2e2.getMinutes());
break;
case "n":
return "\n";
break;
case "p":
return _2e2.getHours()<12?"am":"pm";
break;
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
break;
case "R":
return $("H")+":"+$("M");
break;
case "S":
return _(_2e2.getSeconds());
break;
case "t":
return "\t";
break;
case "T":
return $("H")+":"+$("M")+":"+$("S");
break;
case "u":
return String(_2e2.getDay()||7);
break;
case "U":
return _(dojo.date.getWeekOfYear(_2e2));
break;
case "V":
return _(dojo.date.getIsoWeekOfYear(_2e2));
break;
case "W":
return _(dojo.date.getWeekOfYear(_2e2,1));
break;
case "w":
return String(_2e2.getDay());
break;
case "x":
break;
case "X":
break;
case "y":
return _(_2e2.getFullYear()%100);
break;
case "Y":
return String(_2e2.getFullYear());
break;
case "z":
var _2e8=_2e2.getTimezoneOffset();
return (_2e8>0?"-":"+")+_(Math.floor(Math.abs(_2e8)/60))+":"+_(Math.abs(_2e8)%60);
break;
case "Z":
return dojo.date.getTimezoneName(_2e2);
break;
case "%":
return "%";
break;
}
}
var _2e9="";
var i=0,index=0,switchCase;
while((index=_2e3.indexOf("%",i))!=-1){
_2e9+=_2e3.substring(i,index++);
switch(_2e3.charAt(index++)){
case "_":
_2e4=" ";
break;
case "-":
_2e4="";
break;
case "0":
_2e4="0";
break;
case "^":
switchCase="upper";
break;
case "#":
switchCase="swap";
break;
default:
_2e4=null;
index--;
break;
}
var _2eb=$(_2e3.charAt(index++));
if(switchCase=="upper"||(switchCase=="swap"&&/[a-z]/.test(_2eb))){
_2eb=_2eb.toUpperCase();
}else{
if(switchCase=="swap"&&!/[a-z]/.test(_2eb)){
_2eb=_2eb.toLowerCase();
}
}
var _2ec=null;
_2e9+=_2eb;
i=index;
}
_2e9+=_2e3.substring(i);
return _2e9;
};
dojo.date.compareTypes={DATE:1,TIME:2};
dojo.date.compare=function(_2ed,_2ee,_2ef){
var dA=_2ed;
var dB=_2ee||new Date();
var now=new Date();
var opt=_2ef||(dojo.date.compareTypes.DATE|dojo.date.compareTypes.TIME);
var d1=new Date(((opt&dojo.date.compareTypes.DATE)?(dA.getFullYear()):now.getFullYear()),((opt&dojo.date.compareTypes.DATE)?(dA.getMonth()):now.getMonth()),((opt&dojo.date.compareTypes.DATE)?(dA.getDate()):now.getDate()),((opt&dojo.date.compareTypes.TIME)?(dA.getHours()):0),((opt&dojo.date.compareTypes.TIME)?(dA.getMinutes()):0),((opt&dojo.date.compareTypes.TIME)?(dA.getSeconds()):0));
var d2=new Date(((opt&dojo.date.compareTypes.DATE)?(dB.getFullYear()):now.getFullYear()),((opt&dojo.date.compareTypes.DATE)?(dB.getMonth()):now.getMonth()),((opt&dojo.date.compareTypes.DATE)?(dB.getDate()):now.getDate()),((opt&dojo.date.compareTypes.TIME)?(dB.getHours()):0),((opt&dojo.date.compareTypes.TIME)?(dB.getMinutes()):0),((opt&dojo.date.compareTypes.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};
dojo.date.add=function(d,unit,_2f8){
var n=(_2f8)?_2f8:1;
var v;
switch(unit){
case dojo.date.dateParts.YEAR:
v=new Date(d.getFullYear()+n,d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds());
break;
case dojo.date.dateParts.MONTH:
v=new Date(d.getFullYear(),d.getMonth()+n,d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds());
break;
case dojo.date.dateParts.HOUR:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours()+n,d.getMinutes(),d.getSeconds(),d.getMilliseconds());
break;
case dojo.date.dateParts.MINUTE:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes()+n,d.getSeconds(),d.getMilliseconds());
break;
case dojo.date.dateParts.SECOND:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds()+n,d.getMilliseconds());
break;
case dojo.date.dateParts.MILLISECOND:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds()+n);
break;
default:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate()+n,d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds());
}
return v;
};
dojo.date.toString=function(date,_2fc){
dojo.deprecated("dojo.date.toString","use dojo.date.format instead","0.4");
if(_2fc.indexOf("#d")>-1){
_2fc=_2fc.replace(/#dddd/g,dojo.date.getDayOfWeekName(date));
_2fc=_2fc.replace(/#ddd/g,dojo.date.getShortDayOfWeekName(date));
_2fc=_2fc.replace(/#dd/g,(date.getDate().toString().length==1?"0":"")+date.getDate());
_2fc=_2fc.replace(/#d/g,date.getDate());
}
if(_2fc.indexOf("#M")>-1){
_2fc=_2fc.replace(/#MMMM/g,dojo.date.getMonthName(date));
_2fc=_2fc.replace(/#MMM/g,dojo.date.getShortMonthName(date));
_2fc=_2fc.replace(/#MM/g,((date.getMonth()+1).toString().length==1?"0":"")+(date.getMonth()+1));
_2fc=_2fc.replace(/#M/g,date.getMonth()+1);
}
if(_2fc.indexOf("#y")>-1){
var _2fd=date.getFullYear().toString();
_2fc=_2fc.replace(/#yyyy/g,_2fd);
_2fc=_2fc.replace(/#yy/g,_2fd.substring(2));
_2fc=_2fc.replace(/#y/g,_2fd.substring(3));
}
if(_2fc.indexOf("#")==-1){
return _2fc;
}
if(_2fc.indexOf("#h")>-1){
var _2fe=date.getHours();
_2fe=(_2fe>12?_2fe-12:(_2fe==0)?12:_2fe);
_2fc=_2fc.replace(/#hh/g,(_2fe.toString().length==1?"0":"")+_2fe);
_2fc=_2fc.replace(/#h/g,_2fe);
}
if(_2fc.indexOf("#H")>-1){
_2fc=_2fc.replace(/#HH/g,(date.getHours().toString().length==1?"0":"")+date.getHours());
_2fc=_2fc.replace(/#H/g,date.getHours());
}
if(_2fc.indexOf("#m")>-1){
_2fc=_2fc.replace(/#mm/g,(date.getMinutes().toString().length==1?"0":"")+date.getMinutes());
_2fc=_2fc.replace(/#m/g,date.getMinutes());
}
if(_2fc.indexOf("#s")>-1){
_2fc=_2fc.replace(/#ss/g,(date.getSeconds().toString().length==1?"0":"")+date.getSeconds());
_2fc=_2fc.replace(/#s/g,date.getSeconds());
}
if(_2fc.indexOf("#T")>-1){
_2fc=_2fc.replace(/#TT/g,date.getHours()>=12?"PM":"AM");
_2fc=_2fc.replace(/#T/g,date.getHours()>=12?"P":"A");
}
if(_2fc.indexOf("#t")>-1){
_2fc=_2fc.replace(/#tt/g,date.getHours()>=12?"pm":"am");
_2fc=_2fc.replace(/#t/g,date.getHours()>=12?"p":"a");
}
return _2fc;
};
dojo.date.daysInMonth=function(_2ff,year){
dojo.deprecated("daysInMonth(month, year)","replaced by getDaysInMonth(dateObject)","0.4");
return dojo.date.getDaysInMonth(new Date(year,_2ff,1));
};
dojo.date.toLongDateString=function(date){
dojo.deprecated("dojo.date.toLongDateString","use dojo.date.format(date, \"%B %e, %Y\") instead","0.4");
return dojo.date.format(date,"%B %e, %Y");
};
dojo.date.toShortDateString=function(date){
dojo.deprecated("dojo.date.toShortDateString","use dojo.date.format(date, \"%b %e, %Y\") instead","0.4");
return dojo.date.format(date,"%b %e, %Y");
};
dojo.date.toMilitaryTimeString=function(date){
dojo.deprecated("dojo.date.toMilitaryTimeString","use dojo.date.format(date, \"%T\")","0.4");
return dojo.date.format(date,"%T");
};
dojo.date.toRelativeString=function(date){
var now=new Date();
var diff=(now-date)/1000;
var end=" ago";
var _308=false;
if(diff<0){
_308=true;
end=" from now";
diff=-diff;
}
if(diff<60){
diff=Math.round(diff);
return diff+" second"+(diff==1?"":"s")+end;
}else{
if(diff<3600){
diff=Math.round(diff/60);
return diff+" minute"+(diff==1?"":"s")+end;
}else{
if(diff<3600*24){
diff=Math.round(diff/3600);
return diff+" hour"+(diff==1?"":"s")+end;
}else{
if(diff<3600*24*7){
diff=Math.round(diff/(3600*24));
if(diff==1){
return _308?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}else{
return dojo.date.toShortDateString(date);
}
}
}
}
};
dojo.date.getDayOfWeekName=function(date){
dojo.deprecated("dojo.date.getDayOfWeekName","use dojo.date.getDayName instead","0.4");
return dojo.date.days[date.getDay()];
};
dojo.date.getShortDayOfWeekName=function(date){
dojo.deprecated("dojo.date.getShortDayOfWeekName","use dojo.date.getDayShortName instead","0.4");
return dojo.date.shortDays[date.getDay()];
};
dojo.date.getShortMonthName=function(date){
dojo.deprecated("dojo.date.getShortMonthName","use dojo.date.getMonthShortName instead","0.4");
return dojo.date.shortMonths[date.getMonth()];
};
dojo.date.toSql=function(date,_30d){
return dojo.date.format(date,"%F"+!_30d?" %T":"");
};
dojo.date.fromSql=function(_30e){
var _30f=_30e.split(/[\- :]/g);
while(_30f.length<6){
_30f.push(0);
}
return new Date(_30f[0],(parseInt(_30f[1],10)-1),_30f[2],_30f[3],_30f[4],_30f[5]);
};
dojo.provide("dojo.xml.Parse");
dojo.require("dojo.dom");
dojo.xml.Parse=function(){
function getDojoTagName(node){
var _311=node.tagName;
if(_311.substr(0,5).toLowerCase()!="dojo:"){
if(_311.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_311.substring(4).toLowerCase();
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if(node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type")){
return "dojo:"+node.getAttributeNS(dojo.dom.dojoml,"type").toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if(!dj_global["djConfig"]||!djConfig["ignoreClassNames"]){
var _313=node.className||node.getAttribute("class");
if(_313&&_313.indexOf&&_313.indexOf("dojo-")!=-1){
var _314=_313.split(" ");
for(var x=0;x<_314.length;x++){
if(_314[x].length>5&&_314[x].indexOf("dojo-")>=0){
return "dojo:"+_314[x].substr(5).toLowerCase();
}
}
}
}
}
return _311.toLowerCase();
}
this.parseElement=function(node,_317,_318,_319){
if(node.getAttribute("parseWidgets")=="false"){
return {};
}
var _31a={};
var _31b=getDojoTagName(node);
_31a[_31b]=[];
if((!_318)||(_31b.substr(0,4).toLowerCase()=="dojo")){
var _31c=parseAttributes(node);
for(var attr in _31c){
if((!_31a[_31b][attr])||(typeof _31a[_31b][attr]!="array")){
_31a[_31b][attr]=[];
}
_31a[_31b][attr].push(_31c[attr]);
}
_31a[_31b].nodeRef=node;
_31a.tagName=_31b;
_31a.index=_319||0;
}
var _31e=0;
var tcn,i=0,nodes=node.childNodes;
while(tcn=nodes[i++]){
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_31e++;
var ctn=getDojoTagName(tcn);
if(!_31a[ctn]){
_31a[ctn]=[];
}
_31a[ctn].push(this.parseElement(tcn,true,_318,_31e));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_31a[ctn][_31a[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_31a[_31b].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _31a;
};
function parseAttributes(node){
var _322={};
var atts=node.attributes;
var _324,i=0;
while(_324=atts[i++]){
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_324){
continue;
}
if((typeof _324=="object")&&(typeof _324.nodeValue=="undefined")||(_324.nodeValue==null)||(_324.nodeValue=="")){
continue;
}
}
var nn=(_324.nodeName.indexOf("dojo:")==-1)?_324.nodeName:_324.nodeName.split("dojo:")[1];
_322[nn]={value:_324.nodeValue};
}
return _322;
}
};
dojo.provide("dojo.lang.declare");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.extras");
dojo.lang.declare=function(_326,_327,init,_329){
if((dojo.lang.isFunction(_329))||((!_329)&&(!dojo.lang.isFunction(init)))){
var temp=_329;
_329=init;
init=temp;
}
var _32b=[];
if(dojo.lang.isArray(_327)){
_32b=_327;
_327=_32b.shift();
}
if(!init){
init=dojo.evalObjPath(_326,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_327?_327.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _327();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_32b;
for(var i=0,l=_32b.length;i<l;i++){
dojo.lang.extend(ctor,_32b[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_326;
if(dojo.lang.isArray(_329)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_329));
}else{
dojo.lang.extend(ctor,(_329)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare.base);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
dojo.lang.setObjPathValue(_326,ctor,null,true);
};
dojo.lang.declare._makeConstructor=function(){
return function(){
var self=this._getPropContext();
var s=self.constructor.superclass;
if((s)&&(s.constructor)){
if(s.constructor==arguments.callee){
this.inherited("constructor",arguments);
}else{
this._inherited(s,"constructor",arguments);
}
}
var m=(self.constructor.mixins)||([]);
for(var i=0,l=m.length;i<l;i++){
(((m[i].prototype)&&(m[i].prototype.initializer))||(m[i])).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare.base={_getPropContext:function(){
return (this.___proto||this);
},_inherited:function(_333,_334,args){
var _336=this.___proto;
this.___proto=_333;
var _337=_333[_334].apply(this,(args||[]));
this.___proto=_336;
return _337;
},inheritedFrom:function(ctor,prop,args){
var p=((ctor)&&(ctor.prototype)&&(ctor.prototype[prop]));
return (dojo.lang.isFunction(p)?p.apply(this,(args||[])):p);
},inherited:function(prop,args){
var p=this._getPropContext();
do{
if((!p.constructor)||(!p.constructor.superclass)){
return;
}
p=p.constructor.superclass;
}while(!(prop in p));
return (dojo.lang.isFunction(p[prop])?this._inherited(p,prop,args):p[prop]);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.event");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.func");
dojo.event=new function(){
this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_340){
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 _343=dl.nameAnonFunc(args[2],ao.adviceObj,_340);
ao.adviceFunc=_343;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _343=dl.nameAnonFunc(args[0],ao.srcObj,_340);
ao.srcFunc=_343;
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 _343=dl.nameAnonFunc(args[1],dj_global,_340);
ao.srcFunc=_343;
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 _343=dl.nameAnonFunc(args[3],dj_global,_340);
ao.adviceObj=dj_global;
ao.adviceFunc=_343;
}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 _343=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_340);
ao.aroundFunc=_343;
}
if(dl.isFunction(ao.srcFunc)){
ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(dl.isFunction(ao.adviceFunc)){
ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){
ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc);
}
if(!ao.srcObj){
dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);
}
if(!ao.adviceObj){
dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _345={};
for(var x in ao){
_345[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);
}
_345.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_345));
});
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 _34d;
if((arguments.length==1)&&(typeof a1=="object")){
_34d=a1;
}else{
_34d={srcObj:a1,srcFunc:a2};
}
_34d.adviceFunc=function(){
var _34e=[];
for(var x=0;x<arguments.length;x++){
_34e.push(arguments[x]);
}
dojo.debug("("+_34d.srcObj+")."+_34d.srcFunc,":",_34e.join(", "));
};
this.kwConnect(_34d);
};
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(_355,_356){
var fn=(_356)?"disconnect":"connect";
if(typeof _355["srcFunc"]=="function"){
_355.srcObj=_355["srcObj"]||dj_global;
var _358=dojo.lang.nameAnonFunc(_355.srcFunc,_355.srcObj,true);
_355.srcFunc=_358;
}
if(typeof _355["adviceFunc"]=="function"){
_355.adviceObj=_355["adviceObj"]||dj_global;
var _358=dojo.lang.nameAnonFunc(_355.adviceFunc,_355.adviceObj,true);
_355.adviceFunc=_358;
}
return dojo.event[fn]((_355["type"]||_355["adviceType"]||"after"),_355["srcObj"]||dj_global,_355["srcFunc"],_355["adviceObj"]||_355["targetObj"]||dj_global,_355["adviceFunc"]||_355["targetFunc"],_355["aroundObj"],_355["aroundFunc"],_355["once"],_355["delay"],_355["rate"],_355["adviceMsg"]||false);
};
this.kwConnect=function(_359){
return this._kwConnectImpl(_359,false);
};
this.disconnect=function(){
var ao=interpolateArgs(arguments,true);
if(!ao.adviceFunc){
return;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
};
this.kwDisconnect=function(_35c){
return this._kwConnectImpl(_35c,true);
};
};
dojo.event.MethodInvocation=function(_35d,obj,args){
this.jp_=_35d;
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,_365){
this.object=obj||dj_global;
this.methodname=_365;
this.methodfunc=this.object[_365];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_367){
if(!obj){
obj=dj_global;
}
if(!obj[_367]){
obj[_367]=function(){
};
if(!obj[_367]){
dojo.raise("Cannot set do-nothing method on that object "+_367);
}
}else{
if((!dojo.lang.isFunction(obj[_367]))&&(!dojo.lang.isAlien(obj[_367]))){
return null;
}
}
var _368=_367+"$joinpoint";
var _369=_367+"$joinpoint$method";
var _36a=obj[_368];
if(!_36a){
var _36b=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_36b=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_368,_369,_367]);
}
}
var _36c=obj[_367].length;
obj[_369]=obj[_367];
_36a=obj[_368]=new dojo.event.MethodJoinPoint(obj,_369);
obj[_367]=function(){
var args=[];
if((_36b)&&(!arguments.length)){
var evt=null;
try{
if(obj.ownerDocument){
evt=obj.ownerDocument.parentWindow.event;
}else{
if(obj.documentElement){
evt=obj.documentElement.ownerDocument.parentWindow.event;
}else{
evt=window.event;
}
}
}
catch(e){
evt=window.event;
}
if(evt){
args.push(dojo.event.browser.fixEvent(evt,this));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(_36b)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _36a.run.apply(_36a,args);
};
obj[_367].__preJoinArity=_36c;
}
return _36a;
};
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 _372=[];
for(var x=0;x<args.length;x++){
_372[x]=args[x];
}
var _374=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _376=marr[0]||dj_global;
var _377=marr[1];
if(!_376[_377]){
dojo.raise("function \""+_377+"\" does not exist on \""+_376+"\"");
}
var _378=marr[2]||dj_global;
var _379=marr[3];
var msg=marr[6];
var _37b;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _376[_377].apply(_376,to.args);
}};
to.args=_372;
var _37d=parseInt(marr[4]);
var _37e=((!isNaN(_37d))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _381=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;
_374(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_379){
_378[_379].call(_378,to);
}else{
if((_37e)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_376[_377].call(_376,to);
}else{
_376[_377].apply(_376,args);
}
},_37d);
}else{
if(msg){
_376[_377].call(_376,to);
}else{
_376[_377].apply(_376,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_374);
}
var _384;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_384=mi.proceed();
}else{
if(this.methodfunc){
_384=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_374);
}
return (this.methodfunc)?_384:null;
},getArr:function(kind){
var arr=this.after;
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
arr=this.before;
}else{
if(kind=="around"){
arr=this.around;
}
}
return arr;
},kwAddAdvice:function(args){
this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"]);
},addAdvice:function(_389,_38a,_38b,_38c,_38d,_38e,once,_390,rate,_392){
var arr=this.getArr(_38d);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_389,_38a,_38b,_38c,_390,rate,_392];
if(once){
if(this.hasAdvice(_389,_38a,_38d,arr)>=0){
return;
}
}
if(_38e=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_395,_396,_397,arr){
if(!arr){
arr=this.getArr(_397);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _396=="object")?(new String(_396)).toString():_396;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_395)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_39d,_39e,_39f,once){
var arr=this.getArr(_39f);
var ind=this.hasAdvice(_39d,_39e,_39f,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_39d,_39e,_39f,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_3a3){
if(!this.topics[_3a3]){
this.topics[_3a3]=new this.TopicImpl(_3a3);
}
return this.topics[_3a3];
};
this.registerPublisher=function(_3a4,obj,_3a6){
var _3a4=this.getTopic(_3a4);
_3a4.registerPublisher(obj,_3a6);
};
this.subscribe=function(_3a7,obj,_3a9){
var _3a7=this.getTopic(_3a7);
_3a7.subscribe(obj,_3a9);
};
this.unsubscribe=function(_3aa,obj,_3ac){
var _3aa=this.getTopic(_3aa);
_3aa.unsubscribe(obj,_3ac);
};
this.destroy=function(_3ad){
this.getTopic(_3ad).destroy();
delete this.topics[_3ad];
};
this.publishApply=function(_3ae,args){
var _3ae=this.getTopic(_3ae);
_3ae.sendMessage.apply(_3ae,args);
};
this.publish=function(_3b0,_3b1){
var _3b0=this.getTopic(_3b0);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_3b0.sendMessage.apply(_3b0,args);
};
};
dojo.event.topic.TopicImpl=function(_3b4){
this.topicName=_3b4;
this.subscribe=function(_3b5,_3b6){
var tf=_3b6||_3b5;
var to=(!_3b6)?dj_global:_3b5;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_3b9,_3ba){
var tf=(!_3ba)?_3b9:_3ba;
var to=(!_3ba)?null:_3b9;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_3bd,_3be){
dojo.event.connect(_3bd,_3be,this,"sendMessage");
};
this.sendMessage=function(_3bf){
};
};
dojo.provide("dojo.event.browser");
dojo.require("dojo.event");
dojo._ie_clobber=new function(){
this.clobberNodes=[];
function nukeProp(node,prop){
try{
node[prop]=null;
}
catch(e){
}
try{
delete node[prop];
}
catch(e){
}
try{
node.removeAttribute(prop);
}
catch(e){
}
}
this.clobber=function(_3c2){
var na;
var tna;
if(_3c2){
tna=_3c2.all||_3c2.getElementsByTagName("*");
na=[_3c2];
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 _3c6={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
if(el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
na=null;
};
};
if(dojo.render.html.ie){
dojo.addOnUnload(function(){
dojo._ie_clobber.clobber();
try{
if((dojo["widget"])&&(dojo.widget["manager"])){
dojo.widget.manager.destroyAll();
}
}
catch(e){
}
try{
window.onload=null;
}
catch(e){
}
try{
window.onunload=null;
}
catch(e){
}
dojo._ie_clobber.clobberNodes=[];
});
}
dojo.event.browser=new function(){
var _3ca=0;
this.clean=function(node){
if(dojo.render.html.ie){
dojo._ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!dojo.render.html.ie){
return;
}
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo._ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_3ce){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_3ce.length;x++){
node.__clobberAttrs__.push(_3ce[x]);
}
};
this.removeListener=function(node,_3d1,fp,_3d3){
if(!_3d3){
var _3d3=false;
}
_3d1=_3d1.toLowerCase();
if(_3d1.substr(0,2)=="on"){
_3d1=_3d1.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_3d1,fp,_3d3);
}
};
this.addListener=function(node,_3d5,fp,_3d7,_3d8){
if(!node){
return;
}
if(!_3d7){
var _3d7=false;
}
_3d5=_3d5.toLowerCase();
if(_3d5.substr(0,2)!="on"){
_3d5="on"+_3d5;
}
var _3d9;
if(!_3d8){
_3d9=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_3d7){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_3d9=fp;
}
if(node.addEventListener){
node.addEventListener(_3d5.substr(2),_3d9,_3d7);
return _3d9;
}else{
if(typeof node[_3d5]=="function"){
var _3dc=node[_3d5];
node[_3d5]=function(e){
_3dc(e);
return _3d9(e);
};
}else{
node[_3d5]=_3d9;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_3d5]);
}
return _3d9;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj)&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_3df,_3e0){
if(typeof _3df!="function"){
dojo.raise("listener not a function: "+_3df);
}
dojo.event.browser.currentEvent.currentTarget=_3e0;
return _3df.call(_3e0,dojo.event.browser.currentEvent);
};
this.stopPropagation=function(){
dojo.event.browser.currentEvent.cancelBubble=true;
};
this.preventDefault=function(){
dojo.event.browser.currentEvent.returnValue=false;
};
this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};
this.revKeys=[];
for(var key in this.keys){
this.revKeys[this.keys[key]]=key;
}
this.fixEvent=function(evt,_3e3){
if((!evt)&&(window["event"])){
var evt=window.event;
}
if((evt["type"])&&(evt["type"].indexOf("key")==0)){
evt.keys=this.revKeys;
for(var key in this.keys){
evt[key]=this.keys[key];
}
if((dojo.render.html.ie)&&(evt["type"]=="keypress")){
evt.charCode=evt.keyCode;
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=(_3e3?_3e3:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var _3e5=((dojo.render.html.ie55)||(document["compatMode"]=="BackCompat"))?document.body:document.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_3e5.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_3e5.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
this.currentEvent=evt;
evt.callListener=this.callListener;
evt.stopPropagation=this.stopPropagation;
evt.preventDefault=this.preventDefault;
}
return evt;
};
this.stopEvent=function(ev){
if(window.event){
ev.returnValue=false;
ev.cancelBubble=true;
}else{
ev.preventDefault();
ev.stopPropagation();
}
};
};
dojo.kwCompoundRequire({common:["dojo.event","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});
dojo.provide("dojo.event.*");
dojo.provide("dojo.widget.Manager");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.func");
dojo.require("dojo.event.*");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _3e7={};
var _3e8=[];
this.getUniqueId=function(_3e9){
return _3e9+"_"+(_3e7[_3e9]!=undefined?++_3e7[_3e9]:_3e7[_3e9]=0);
};
this.add=function(_3ea){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_3ea);
if(!_3ea.extraArgs["id"]){
_3ea.extraArgs["id"]=_3ea.extraArgs["ID"];
}
if(_3ea.widgetId==""){
if(_3ea["id"]){
_3ea.widgetId=_3ea["id"];
}else{
if(_3ea.extraArgs["id"]){
_3ea.widgetId=_3ea.extraArgs["id"];
}else{
_3ea.widgetId=this.getUniqueId(_3ea.widgetType);
}
}
}
if(this.widgetIds[_3ea.widgetId]){
dojo.debug("widget ID collision on ID: "+_3ea.widgetId);
}
this.widgetIds[_3ea.widgetId]=_3ea;
dojo.profile.end("dojo.widget.manager.add");
};
this.destroyAll=function(){
for(var x=this.widgets.length-1;x>=0;x--){
try{
this.widgets[x].destroy(true);
delete this.widgets[x];
}
catch(e){
}
}
};
this.remove=function(_3ec){
var tw=this.widgets[_3ec].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_3ec,1);
};
this.removeById=function(id){
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
return this.widgetIds[id];
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(x.widgetType.toLowerCase()==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsOfType=function(id){
dojo.deprecated("getWidgetsOfType","use getWidgetsByType","0.4");
return dojo.widget.manager.getWidgetsByType(id);
};
this.getWidgetsByFilter=function(_3f6,_3f7){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_3f6(x)){
ret.push(x);
if(_3f7){
return false;
}
}
return true;
});
return (_3f7?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _3fd={};
var _3fe=["dojo.widget"];
for(var i=0;i<_3fe.length;i++){
_3fe[_3fe[i]]=true;
}
this.registerWidgetPackage=function(_400){
if(!_3fe[_400]){
_3fe[_400]=true;
_3fe.push(_400);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_3fe,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_402,_403,_404){
var impl=this.getImplementationName(_402);
if(impl){
var ret=new impl(_403);
return ret;
}
};
this.getImplementationName=function(_407){
var _408=_407.toLowerCase();
var impl=_3fd[_408];
if(impl){
return impl;
}
if(!_3e8.length){
for(var _40a in dojo.render){
if(dojo.render[_40a]["capable"]===true){
var _40b=dojo.render[_40a].prefixes;
for(var i=0;i<_40b.length;i++){
_3e8.push(_40b[i].toLowerCase());
}
}
}
_3e8.push("");
}
for(var i=0;i<_3fe.length;i++){
var _40d=dojo.evalObjPath(_3fe[i]);
if(!_40d){
continue;
}
for(var j=0;j<_3e8.length;j++){
if(!_40d[_3e8[j]]){
continue;
}
for(var _40f in _40d[_3e8[j]]){
if(_40f.toLowerCase()!=_408){
continue;
}
_3fd[_408]=_40d[_3e8[j]][_40f];
return _3fd[_408];
}
}
for(var j=0;j<_3e8.length;j++){
for(var _40f in _40d){
if(_40f.toLowerCase()!=(_3e8[j]+_408)){
continue;
}
_3fd[_408]=_40d[_40f];
return _3fd[_408];
}
}
}
throw new Error("Could not locate \""+_407+"\" class");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _411=this.topWidgets[id];
if(_411.checkSize){
_411.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(_416,_417){
dw[(_417||_416)]=h(_416);
};
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 _419=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _419[n];
}
return _419;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.widget.Widget");
dojo.provide("dojo.widget.tags");
dojo.require("dojo.lang.func");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.declare");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.event.*");
dojo.declare("dojo.widget.Widget",null,{initializer:function(){
this.children=[];
this.extraArgs={};
},parent:null,isTopLevel:false,isModal:false,isEnabled:true,isHidden:false,isContainer:false,widgetId:"",widgetType:"Widget",toString:function(){
return "[Widget "+this.widgetType+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.isEnabled=true;
},disable:function(){
this.isEnabled=false;
},hide:function(){
this.isHidden=true;
},show:function(){
this.isHidden=false;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _41b=this.children[i];
if(_41b.onResized){
_41b.onResized();
}
}
},create:function(args,_41d,_41e){
this.satisfyPropertySets(args,_41d,_41e);
this.mixInProperties(args,_41d,_41e);
this.postMixInProperties(args,_41d,_41e);
dojo.widget.manager.add(this);
this.buildRendering(args,_41d,_41e);
this.initialize(args,_41d,_41e);
this.postInitialize(args,_41d,_41e);
this.postCreate(args,_41d,_41e);
return this;
},destroy:function(_41f){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_41f);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
while(this.children.length>0){
var tc=this.children[0];
this.removeChild(tc);
tc.destroy();
}
},getChildrenOfType:function(type,_422){
var ret=[];
var _424=dojo.lang.isFunction(type);
if(!_424){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_424){
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(_422){
ret=ret.concat(this.children[x].getChildrenOfType(type,_422));
}
}
return ret;
},getDescendants:function(){
var _426=[];
var _427=[this];
var elem;
while(elem=_427.pop()){
_426.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_427.push(elem);
});
}
return _426;
},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 _42e;
var _42f=dojo.widget.lcArgsCache[this.widgetType];
if(_42f==null){
_42f={};
for(var y in this){
_42f[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_42f;
}
var _431={};
for(var x in args){
if(!this[x]){
var y=_42f[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_431[x]){
continue;
}
_431[x]=true;
if((typeof this[x])!=(typeof _42e)){
if(typeof args[x]!="string"){
this[x]=args[x];
}else{
if(dojo.lang.isString(this[x])){
this[x]=args[x];
}else{
if(dojo.lang.isNumber(this[x])){
this[x]=new Number(args[x]);
}else{
if(dojo.lang.isBoolean(this[x])){
this[x]=(args[x].toLowerCase()=="false")?false:true;
}else{
if(dojo.lang.isFunction(this[x])){
if(args[x].search(/[^\w\.]+/i)==-1){
this[x]=dojo.evalObjPath(args[x],false);
}else{
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.connect(this,x,this,tn);
}
}else{
if(dojo.lang.isArray(this[x])){
this[x]=args[x].split(";");
}else{
if(this[x] instanceof Date){
this[x]=new Date(Number(args[x]));
}else{
if(typeof this[x]=="object"){
if(this[x] instanceof dojo.uri.Uri){
this[x]=args[x];
}else{
var _433=args[x].split(";");
for(var y=0;y<_433.length;y++){
var si=_433[y].indexOf(":");
if((si!=-1)&&(_433[y].length>si)){
this[x][_433[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_433[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(){
},initialize:function(args,frag){
return false;
},postInitialize:function(args,frag){
return false;
},postCreate:function(args,frag){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},cleanUp:function(){
dojo.unimplemented("dojo.widget.Widget.cleanUp");
return false;
},addedTo:function(_43b){
},addChild:function(_43c){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_43d){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_43d){
this.children.splice(x,1);
break;
}
}
return _43d;
},resize:function(_43f,_440){
this.setWidth(_43f);
this.setHeight(_440);
},setWidth:function(_441){
if((typeof _441=="string")&&(_441.substr(-1)=="%")){
this.setPercentageWidth(_441);
}else{
this.setNativeWidth(_441);
}
},setHeight:function(_442){
if((typeof _442=="string")&&(_442.substr(-1)=="%")){
this.setPercentageHeight(_442);
}else{
this.setNativeHeight(_442);
}
},setPercentageHeight:function(_443){
return false;
},setNativeHeight:function(_444){
return false;
},setPercentageWidth:function(_445){
return false;
},setNativeWidth:function(_446){
return false;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.getSiblings()[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.getSiblings(),this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.getSiblings().length-1){
return null;
}
if(idx<0){
return null;
}
return this.getSiblings()[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
var _44a=type.toLowerCase();
this[_44a]=function(_44b,_44c,_44d,_44e,_44f){
return dojo.widget.buildWidgetFromParseTree(_44a,_44b,_44c,_44d,_44e,_44f);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_450,_451,_452){
var _453=_451.parseProperties(_450["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_454,_455,_456){
var _457=_455.parseProperties(_454["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_45a,_45b,_45c,_45d){
var _45e=type.split(":");
_45e=(_45e.length==2)?_45e[1]:type;
var _45f=_45d||_45a.parseProperties(frag["dojo:"+_45e]);
var _460=dojo.widget.manager.getImplementation(_45e);
if(!_460){
throw new Error("cannot find \""+_45e+"\" widget");
}else{
if(!_460.create){
throw new Error("\""+_45e+"\" widget object does not appear to implement *Widget");
}
}
_45f["dojoinsertionindex"]=_45c;
var ret=_460.create(_45f,frag,_45b);
return ret;
};
dojo.widget.defineWidget=function(_462,_463,_464,init,_466){
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(_468,_469,_46a,init,_46c){
var _46d=_468.split(".");
var type=_46d.pop();
var regx="\\.("+(_469?_469+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_468.search(new RegExp(regx));
_46d=(r<0?_46d.join("."):_468.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_46d);
dojo.widget.tags.addParseTreeHandler("dojo:"+type.toLowerCase());
_46c=(_46c)||{};
_46c.widgetType=type;
if((!init)&&(_46c["classConstructor"])){
init=_46c.classConstructor;
delete _46c.classConstructor;
}
dojo.declare(_468,_46a,init,_46c);
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_471){
this.propertySetsList=[];
this.fragment=_471;
this.createComponents=function(frag,_473){
var _474=[];
var _475=false;
try{
if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){
var _476=dojo.widget.tags;
var tna=String(frag["tagName"]).split(";");
for(var x=0;x<tna.length;x++){
var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();
if(_476[ltn]){
_475=true;
frag.tagName=ltn;
var ret=_476[ltn](frag,this,_473,frag["index"]);
_474.push(ret);
}else{
if((dojo.lang.isString(ltn))&&(ltn.substr(0,5)=="dojo:")){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_475){
_474=_474.concat(this.createSubComponents(frag,_473));
}
return _474;
};
this.createSubComponents=function(_47b,_47c){
var frag,comps=[];
for(var item in _47b){
frag=_47b[item];
if((frag)&&(typeof frag=="object")&&(frag!=_47b.nodeRef)&&(frag!=_47b["tagName"])){
comps=comps.concat(this.createComponents(frag,_47c));
}
}
return comps;
};
this.parsePropertySets=function(_47f){
return [];
var _480=[];
for(var item in _47f){
if((_47f[item]["tagName"]=="dojo:propertyset")){
_480.push(_47f[item]);
}
}
this.propertySetsList.push(_480);
return _480;
};
this.parseProperties=function(_482){
var _483={};
for(var item in _482){
if((_482[item]==_482["tagName"])||(_482[item]==_482.nodeRef)){
}else{
if((_482[item]["tagName"])&&(dojo.widget.tags[_482[item].tagName.toLowerCase()])){
}else{
if((_482[item][0])&&(_482[item][0].value!="")&&(_482[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _485=this;
this.getDataProvider(_485,_482[item][0].value);
_483.dataProvider=this.dataProvider;
}
_483[item]=_482[item][0].value;
var _486=this.parseProperties(_482[item]);
for(var _487 in _486){
_483[_487]=_486[_487];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _483;
};
this.getDataProvider=function(_488,_489){
dojo.io.bind({url:_489,load:function(type,_48b){
if(type=="load"){
_488.dataProvider=_48b;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_48c){
for(var x=0;x<this.propertySetsList.length;x++){
if(_48c==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_48e){
var _48f=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl["componentClass"]||cpl["componentType"]||null;
if((cpcc)&&(propertySetId==cpcc[0].value)){
_48f.push(cpl);
}
}
return _48f;
};
this.getPropertySets=function(_493){
var ppl="dojo:propertyproviderlist";
var _495=[];
var _496=_493["tagName"];
if(_493[ppl]){
var _497=_493[ppl].value.split(" ");
for(var _498 in _497){
if((_498.indexOf("..")==-1)&&(_498.indexOf("://")==-1)){
var _499=this.getPropertySetById(_498);
if(_499!=""){
_495.push(_499);
}
}else{
}
}
}
return (this.getPropertySetsByType(_496)).concat(_495);
};
this.createComponentFromScript=function(_49a,_49b,_49c){
var ltn="dojo:"+_49b.toLowerCase();
if(dojo.widget.tags[ltn]){
_49c.fastMixIn=true;
return [dojo.widget.tags[ltn](_49c,this,null,null,_49c)];
}else{
if(ltn.substr(0,5)=="dojo:"){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
};
};
dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()};
dojo.widget.getParser=function(name){
if(!name){
name="dojo";
}
if(!this._parser_collection[name]){
this._parser_collection[name]=new dojo.widget.Parse();
}
return this._parser_collection[name];
};
dojo.widget.createWidget=function(name,_4a0,_4a1,_4a2){
var _4a3=name.toLowerCase();
var _4a4="dojo:"+_4a3;
var _4a5=(dojo.byId(name)&&(!dojo.widget.tags[_4a4]));
if((arguments.length==1)&&((typeof name!="string")||(_4a5))){
var xp=new dojo.xml.Parse();
var tn=(_4a5)?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_4a8,name,_4aa){
_4aa[_4a4]={dojotype:[{value:_4a3}],nodeRef:_4a8,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_4a8,name,_4aa,true);
}
if(typeof name!="string"&&typeof _4a0=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])","0.4");
return fromScript(name,_4a0,_4a1);
}
_4a0=_4a0||{};
var _4ab=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_4a1){
_4ab=true;
_4a1=tn;
if(h){
document.body.appendChild(_4a1);
}
}else{
if(_4a2){
dojo.dom.insertAtPosition(tn,_4a1,_4a2);
}else{
tn=_4a1;
}
}
var _4ad=fromScript(tn,name,_4a0);
if(!_4ad||!_4ad[0]||typeof _4ad[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_4ab){
if(_4ad[0].domNode.parentNode){
_4ad[0].domNode.parentNode.removeChild(_4ad[0].domNode);
}
}
return _4ad[0];
};
dojo.widget.fromScript=function(name,_4af,_4b0,_4b1){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead","0.4");
return dojo.widget.createWidget(name,_4af,_4b0,_4b1);
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.joinPath=function(){
var arr=[];
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i]);
}
return arr.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/");
};
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _4b7=new dojo.uri.Uri(arguments[i].toString());
var _4b8=new dojo.uri.Uri(uri.toString());
if(_4b7.path==""&&_4b7.scheme==null&&_4b7.authority==null&&_4b7.query==null){
if(_4b7.fragment!=null){
_4b8.fragment=_4b7.fragment;
}
_4b7=_4b8;
}else{
if(_4b7.scheme==null){
_4b7.scheme=_4b8.scheme;
if(_4b7.authority==null){
_4b7.authority=_4b8.authority;
if(_4b7.path.charAt(0)!="/"){
var path=_4b8.path.substring(0,_4b8.path.lastIndexOf("/")+1)+_4b7.path;
var segs=path.split("/");
for(var j=0;j<segs.length;j++){
if(segs[j]=="."){
if(j==segs.length-1){
segs[j]="";
}else{
segs.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){
if(j==segs.length-1){
segs.splice(j,1);
segs[j-1]="";
}else{
segs.splice(j-1,2);
j-=2;
}
}
}
}
_4b7.path=segs.join("/");
}
}
}
}
uri="";
if(_4b7.scheme!=null){
uri+=_4b7.scheme+":";
}
if(_4b7.authority!=null){
uri+="//"+_4b7.authority;
}
uri+=_4b7.path;
if(_4b7.query!=null){
uri+="?"+_4b7.query;
}
if(_4b7.fragment!=null){
uri+="#"+_4b7.fragment;
}
}
this.uri=uri.toString();
var _4bc="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_4bc));
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){
_4bc="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_4bc));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.kwCompoundRequire({common:[["dojo.uri.Uri",false,false]]});
dojo.provide("dojo.uri.*");
dojo.provide("dojo.widget.DomWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.widget.Widget");
dojo.require("dojo.dom");
dojo.require("dojo.xml.Parse");
dojo.require("dojo.uri.*");
dojo.require("dojo.lang.func");
dojo.require("dojo.lang.extras");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.buildFromTemplate=function(){
dojo.lang.forward("fillFromTemplateCache");
};
dojo.widget.fillFromTemplateCache=function(obj,_4bf,_4c0,_4c1,_4c2){
var _4c3=_4bf||obj.templatePath;
var _4c4=_4c0||obj.templateCssPath;
if(_4c3&&!(_4c3 instanceof dojo.uri.Uri)){
_4c3=dojo.uri.dojoUri(_4c3);
dojo.deprecated("templatePath should be of type dojo.uri.Uri",null,"0.4");
}
if(_4c4&&!(_4c4 instanceof dojo.uri.Uri)){
_4c4=dojo.uri.dojoUri(_4c4);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri",null,"0.4");
}
var _4c5=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _4c6="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_4c5[_4c6]);
obj.widgetType=_4c6;
}
var wt=obj.widgetType;
if(_4c4&&!dojo.widget._cssFiles[_4c4.toString()]){
if((!obj.templateCssString)&&(_4c4)){
obj.templateCssString=dojo.hostenv.getText(_4c4);
obj.templateCssPath=null;
}
if((obj["templateCssString"])&&(!obj.templateCssString["loaded"])){
dojo.style.insertCssText(obj.templateCssString,null,_4c4);
if(!obj.templateCssString){
obj.templateCssString="";
}
obj.templateCssString.loaded=true;
}
dojo.widget._cssFiles[_4c4.toString()]=true;
}
var ts=_4c5[wt];
if(!ts){
_4c5[wt]={"string":null,"node":null};
if(_4c2){
ts={};
}else{
ts=_4c5[wt];
}
}
if((!obj.templateString)&&(!_4c2)){
obj.templateString=_4c1||ts["string"];
}
if((!obj.templateNode)&&(!_4c2)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_4c3)){
var _4c9=dojo.hostenv.getText(_4c3);
if(_4c9){
_4c9=_4c9.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _4ca=_4c9.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_4ca){
_4c9=_4ca[1];
}
}else{
_4c9="";
}
obj.templateString=_4c9;
if(!_4c2){
_4c5[wt]["string"]=_4c9;
}
}
if((!ts["string"])&&(!_4c2)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole",namespace:"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:",nsName:"role"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:"",nsName:"state"},setAttr:function(node,attr,_4cd){
if(dojo.render.html.ie){
node.setAttribute(this[attr].alias+":"+this[attr].nsName,this[attr].prefix+_4cd);
}else{
node.setAttributeNS(this[attr].namespace,this[attr].nsName,this[attr].prefix+_4cd);
}
}};
dojo.widget.attachTemplateNodes=function(_4ce,_4cf,_4d0){
var _4d1=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_4ce){
_4ce=_4cf.domNode;
}
if(_4ce.nodeType!=_4d1){
return;
}
var _4d3=_4ce.all||_4ce.getElementsByTagName("*");
var _4d4=_4cf;
for(var x=-1;x<_4d3.length;x++){
var _4d6=(x==-1)?_4ce:_4d3[x];
var _4d7=[];
for(var y=0;y<this.attachProperties.length;y++){
var _4d9=_4d6.getAttribute(this.attachProperties[y]);
if(_4d9){
_4d7=_4d9.split(";");
for(var z=0;z<_4d7.length;z++){
if(dojo.lang.isArray(_4cf[_4d7[z]])){
_4cf[_4d7[z]].push(_4d6);
}else{
_4cf[_4d7[z]]=_4d6;
}
}
break;
}
}
var _4db=_4d6.getAttribute(this.templateProperty);
if(_4db){
_4cf[_4db]=_4d6;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_4d6.getAttribute(wai.name);
if(val){
dojo.widget.wai.setAttr(_4d6,wai.name,val);
}
},this);
var _4df=_4d6.getAttribute(this.eventAttachProperty);
if(_4df){
var evts=_4df.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _4e1=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _4e3=tevt.split(":");
tevt=trim(_4e3[0]);
_4e1=trim(_4e3[1]);
}
if(!_4e1){
_4e1=tevt;
}
var tf=function(){
var ntf=new String(_4e1);
return function(evt){
if(_4d4[ntf]){
_4d4[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_4d6,tevt,tf,false,true);
}
}
for(var y=0;y<_4d0.length;y++){
var _4e7=_4d6.getAttribute(_4d0[y]);
if((_4e7)&&(_4e7.length)){
var _4e1=null;
var _4e8=_4d0[y].substr(4);
_4e1=trim(_4e7);
var _4e9=[_4e1];
if(_4e1.indexOf(";")>=0){
_4e9=dojo.lang.map(_4e1.split(";"),trim);
}
for(var z=0;z<_4e9.length;z++){
if(!_4e9[z].length){
continue;
}
var tf=function(){
var ntf=new String(_4e9[z]);
return function(evt){
if(_4d4[ntf]){
_4d4[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_4d6,_4e8,tf,false,true);
}
}
}
var _4ec=_4d6.getAttribute(this.onBuildProperty);
if(_4ec){
eval("var node = baseNode; var widget = targetObj; "+_4ec);
}
}
};
dojo.widget.getDojoEventsFromStr=function(str){
var re=/(dojoOn([a-z]+)(\s?))=/gi;
var evts=str?str.match(re)||[]:[];
var ret=[];
var lem={};
for(var x=0;x<evts.length;x++){
if(evts[x].legth<1){
continue;
}
var cm=evts[x].replace(/\s/,"");
cm=(cm.slice(0,cm.length-1));
if(!lem[cm]){
lem[cm]=true;
ret.push(cm);
}
}
return ret;
};
dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,{initializer:function(){
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
},templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,addChild:function(_4f4,_4f5,pos,ref,_4f8){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_4f4,_4f5,pos,ref,_4f8);
this.registerChild(_4f4,_4f8);
}
return _4f4;
},addWidgetAsDirectChild:function(_4f9,_4fa,pos,ref,_4fd){
if((!this.containerNode)&&(!_4fa)){
this.containerNode=this.domNode;
}
var cn=(_4fa)?_4fa:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=document.body;
}
ref=cn.lastChild;
}
if(!_4fd){
_4fd=0;
}
_4f9.domNode.setAttribute("dojoinsertionindex",_4fd);
if(!ref){
cn.appendChild(_4f9.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_4f9.domNode,ref.parentNode,_4fd);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_4f9.domNode);
}else{
dojo.dom.insertAtPosition(_4f9.domNode,cn,pos);
}
}
}
},registerChild:function(_4ff,_500){
_4ff.dojoInsertionIndex=_500;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_500){
idx=i;
}
}
this.children.splice(idx+1,0,_4ff);
_4ff.parent=this;
_4ff.addedTo(this);
delete dojo.widget.manager.topWidgets[_4ff.widgetId];
},removeChild:function(_503){
dojo.dom.removeNode(_503.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_503);
},getFragNodeRef:function(frag){
if(!frag||!frag["dojo:"+this.widgetType.toLowerCase()]){
dojo.raise("Error: no frag for widget type "+this.widgetType+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return (frag?frag["dojo:"+this.widgetType.toLowerCase()]["nodeRef"]:null);
},postInitialize:function(args,frag,_507){
var _508=this.getFragNodeRef(frag);
if(_507&&(_507.snarfChildDomOutput||!_508)){
_507.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_508);
}else{
if(_508){
if(this.domNode&&(this.domNode!==_508)){
var _509=_508.parentNode.replaceChild(this.domNode,_508);
}
}
}
if(_507){
_507.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _50a=dojo.widget.getParser();
_50a.createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _510=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_510=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_510);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_510)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _512=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_512=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_512){
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<_512.length;i++){
var key=_512[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 _519;
if((kval)||(dojo.lang.isString(kval))){
_519=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_512[i],_519);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_510){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_512)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_512){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes(this.domNode,this);
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_51b,_51c){
if(!_51c){
_51c=this;
}
return dojo.widget.attachTemplateNodes(_51b,_51c,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerHeight");
},getContainerWidth:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerWidth");
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.graphics.color");
dojo.require("dojo.lang.array");
dojo.graphics.color.Color=function(r,g,b,a){
if(dojo.lang.isArray(r)){
this.r=r[0];
this.g=r[1];
this.b=r[2];
this.a=r[3]||1;
}else{
if(dojo.lang.isString(r)){
var rgb=dojo.graphics.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.graphics.color.Color){
this.r=r.r;
this.b=r.b;
this.g=r.g;
this.a=r.a;
}else{
this.r=r;
this.g=g;
this.b=b;
this.a=a;
}
}
}
};
dojo.graphics.color.Color.fromArray=function(arr){
return new dojo.graphics.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.lang.extend(dojo.graphics.color.Color,{toRgb:function(_523){
if(_523){
return this.toRgba();
}else{
return [this.r,this.g,this.b];
}
},toRgba:function(){
return [this.r,this.g,this.b,this.a];
},toHex:function(){
return dojo.graphics.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_524,_525){
return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_524).toRgb(),_525);
}});
dojo.graphics.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.graphics.color.blend=function(a,b,_528){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_528);
}
if(!_528){
_528=0;
}else{
if(_528>1){
_528=1;
}else{
if(_528<-1){
_528=-1;
}
}
}
var c=new Array(3);
for(var i=0;i<3;i++){
var half=Math.abs(a[i]-b[i])/2;
c[i]=Math.floor(Math.min(a[i],b[i])+half+(half*_528));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_52e){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_52e));
};
dojo.graphics.color.extractRGB=function(_52f){
var hex="0123456789abcdef";
_52f=_52f.toLowerCase();
if(_52f.indexOf("rgb")==0){
var _531=_52f.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_531.splice(1,3);
return ret;
}else{
var _533=dojo.graphics.color.hex2rgb(_52f);
if(_533){
return _533;
}else{
return dojo.graphics.color.named[_52f]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _535="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_535+"]","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]=_535.indexOf(rgb[i].charAt(0))*16+_535.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.graphics.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.style");
dojo.require("dojo.graphics.color");
dojo.require("dojo.uri.Uri");
dojo.require("dojo.lang.common");
(function(){
var h=dojo.render.html;
var ds=dojo.style;
var db=document["body"]||document["documentElement"];
ds.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
var bs=ds.boxSizing;
ds.getBoxSizing=function(node){
if((h.ie)||(h.opera)){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _544=ds.getStyle(node,"-moz-box-sizing");
if(!_544){
_544=ds.getStyle(node,"box-sizing");
}
return (_544?_544:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_547,_548){
var s=ds.getComputedStyle(node,_547);
if((!s)||((s=="auto")&&(_548))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _54a=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_54a){
return ds.getUnitValue.bad;
}
return {value:Number(_54a[1]),units:_54a[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_54c,_54d){
var _54e=ds.getUnitValue(node,_54c,_54d);
if(isNaN(_54e.value)){
return 0;
}
if((_54e.value)&&(_54e.units!="px")){
return NaN;
}
return _54e.value;
};
ds.getNumericStyle=function(){
dojo.deprecated("dojo.(style|html).getNumericStyle","in favor of dojo.(style|html).getPixelValue","0.4");
return ds.getPixelValue.apply(this,arguments);
};
ds.setPositivePixelValue=function(node,_550,_551){
if(isNaN(_551)){
return false;
}
node.style[_550]=Math.max(0,_551)+"px";
return true;
};
ds._sumPixelValues=function(node,_553,_554){
var _555=0;
for(var x=0;x<_553.length;x++){
_555+=ds.getPixelValue(node,_553[x],_554);
}
return _555;
};
ds.isPositionAbsolute=function(node){
return (ds.getComputedStyle(node,"position")=="absolute");
};
ds.getBorderExtent=function(node,side){
return (ds.getStyle(node,"border-"+side+"-style")=="none"?0:ds.getPixelValue(node,"border-"+side+"-width"));
};
ds.getMarginWidth=function(node){
return ds._sumPixelValues(node,["margin-left","margin-right"],ds.isPositionAbsolute(node));
};
ds.getBorderWidth=function(node){
return ds.getBorderExtent(node,"left")+ds.getBorderExtent(node,"right");
};
ds.getPaddingWidth=function(node){
return ds._sumPixelValues(node,["padding-left","padding-right"],true);
};
ds.getPadBorderWidth=function(node){
return ds.getPaddingWidth(node)+ds.getBorderWidth(node);
};
ds.getContentBoxWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth-ds.getPadBorderWidth(node);
};
ds.getBorderBoxWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth;
};
ds.getMarginBoxWidth=function(node){
return ds.getInnerWidth(node)+ds.getMarginWidth(node);
};
ds.setContentBoxWidth=function(node,_562){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_562+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_562);
};
ds.setMarginBoxWidth=function(node,_564){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_564-=ds.getPadBorderWidth(node);
}
_564-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_564);
};
ds.getContentWidth=ds.getContentBoxWidth;
ds.getInnerWidth=ds.getBorderBoxWidth;
ds.getOuterWidth=ds.getMarginBoxWidth;
ds.setContentWidth=ds.setContentBoxWidth;
ds.setOuterWidth=ds.setMarginBoxWidth;
ds.getMarginHeight=function(node){
return ds._sumPixelValues(node,["margin-top","margin-bottom"],ds.isPositionAbsolute(node));
};
ds.getBorderHeight=function(node){
return ds.getBorderExtent(node,"top")+ds.getBorderExtent(node,"bottom");
};
ds.getPaddingHeight=function(node){
return ds._sumPixelValues(node,["padding-top","padding-bottom"],true);
};
ds.getPadBorderHeight=function(node){
return ds.getPaddingHeight(node)+ds.getBorderHeight(node);
};
ds.getContentBoxHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight-ds.getPadBorderHeight(node);
};
ds.getBorderBoxHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight;
};
ds.getMarginBoxHeight=function(node){
return ds.getInnerHeight(node)+ds.getMarginHeight(node);
};
ds.setContentBoxHeight=function(node,_56d){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_56d+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_56d);
};
ds.setMarginBoxHeight=function(node,_56f){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_56f-=ds.getPadBorderHeight(node);
}
_56f-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_56f);
};
ds.getContentHeight=ds.getContentBoxHeight;
ds.getInnerHeight=ds.getBorderBoxHeight;
ds.getOuterHeight=ds.getMarginBoxHeight;
ds.setContentHeight=ds.setContentBoxHeight;
ds.setOuterHeight=ds.setMarginBoxHeight;
ds.getAbsolutePosition=ds.abs=function(node,_571){
node=dojo.byId(node);
var ret=[];
ret.x=ret.y=0;
var st=dojo.html.getScrollTop();
var sl=dojo.html.getScrollLeft();
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-ds.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-ds.sumAncestorProperties(node,"scrollTop");
}else{
if(node["offsetParent"]){
var _576;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_576=db;
}else{
_576=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(window.opera){
nd=db;
}
ret.x-=ds.sumAncestorProperties(nd,"scrollLeft");
ret.y-=ds.sumAncestorProperties(nd,"scrollTop");
}
do{
var n=node["offsetLeft"];
ret.x+=isNaN(n)?0:n;
var m=node["offsetTop"];
ret.y+=isNaN(m)?0:m;
node=node.offsetParent;
}while((node!=_576)&&(node!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_571){
ret.y+=st;
ret.x+=sl;
}
ret[0]=ret.x;
ret[1]=ret.y;
return ret;
};
ds.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _57c=0;
while(node){
var val=node[prop];
if(val){
_57c+=val-0;
if(node==document.body){
break;
}
}
node=node.parentNode;
}
return _57c;
};
ds.getTotalOffset=function(node,type,_580){
return ds.abs(node,_580)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_582){
return ds.getTotalOffset(node,"left",_582);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_584){
return ds.getTotalOffset(node,"top",_584);
};
ds.styleSheet=null;
ds.insertCssRule=function(_585,_586,_587){
if(!ds.styleSheet){
if(document.createStyleSheet){
ds.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
ds.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(ds.styleSheet.cssRules){
_587=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_587=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_585+" { "+_586+" }";
return ds.styleSheet.insertRule(rule,_587);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_585,_586,_587);
}else{
return null;
}
}
};
ds.removeCssRule=function(_589){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_589){
_589=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_589);
}
}else{
if(document.styleSheets[0]){
if(!_589){
_589=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_589);
}
}
return true;
};
ds.insertCssFile=function(URI,doc,_58c){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _58d=dojo.hostenv.getText(URI);
_58d=ds.fixPathsInCssText(_58d,URI);
if(_58c){
var _58e=doc.getElementsByTagName("style");
var _58f="";
for(var i=0;i<_58e.length;i++){
_58f=(_58e[i].styleSheet&&_58e[i].styleSheet.cssText)?_58e[i].styleSheet.cssText:_58e[i].innerHTML;
if(_58d==_58f){
return;
}
}
}
var _591=ds.insertCssText(_58d);
if(_591&&djConfig.isDebug){
_591.setAttribute("dbgHref",URI);
}
return _591;
};
ds.insertCssText=function(_592,doc,URI){
if(!_592){
return;
}
if(!doc){
doc=document;
}
if(URI){
_592=ds.fixPathsInCssText(_592,URI);
}
var _595=doc.createElement("style");
_595.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(_595);
}
if(_595.styleSheet){
_595.styleSheet.cssText=_592;
}else{
var _597=doc.createTextNode(_592);
_595.appendChild(_597);
}
return _595;
};
ds.fixPathsInCssText=function(_598,URI){
if(!_598||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_598.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_598.slice(0,pos+4);
_598=_598.substring(pos+4,_598.length);
url+=_598.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_598=_598.substring(url.length-1,_598.length);
url=url.replace(/^[\s\t]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s\t]*?\)/,"$2");
if(url.search(/(file|https?|ftps?):\/\//)==-1){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=url;
}
return str+_598;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _59e;
do{
_59e=ds.getStyle(node,"background-color");
if(_59e.toLowerCase()=="rgba(0, 0, 0, 0)"){
_59e="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_59e,["transparent",""]));
if(_59e=="transparent"){
_59e=[255,255,255,0];
}else{
_59e=dojo.graphics.color.extractRGB(_59e);
}
return _59e;
};
ds.getComputedStyle=function(node,_5a0,_5a1){
node=dojo.byId(node);
var _5a0=ds.toSelectorCase(_5a0);
var _5a2=ds.toCamelCase(_5a0);
if(!node||!node.style){
return _5a1;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_5a0);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_5a0);
}else{
return _5a1;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_5a2];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_5a0);
}else{
return _5a1;
}
};
ds.getStyleProperty=function(node,_5a5){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_5a5)]:undefined);
};
ds.getStyle=function(node,_5a7){
var _5a8=ds.getStyleProperty(node,_5a7);
return (_5a8?_5a8:ds.getComputedStyle(node,_5a7));
};
ds.setStyle=function(node,_5aa,_5ab){
node=dojo.byId(node);
if(node&&node.style){
var _5ac=ds.toCamelCase(_5aa);
node.style[_5ac]=_5ab;
}
};
ds.toCamelCase=function(_5ad){
var arr=_5ad.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
ds.toSelectorCase=function(_5b0){
return _5b0.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_5b2,_5b3){
node=dojo.byId(node);
if(!_5b3){
if(_5b2>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_5b2=0.999999;
}
}else{
if(_5b2<0){
_5b2=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="+_5b2*100+")";
}
}
node.style.filter="Alpha(Opacity="+_5b2*100+")";
}else{
if(h.moz){
node.style.opacity=_5b2;
node.style.MozOpacity=_5b2;
}else{
if(h.safari){
node.style.opacity=_5b2;
node.style.KhtmlOpacity=_5b2;
}else{
node.style.opacity=_5b2;
}
}
}
};
ds.getOpacity=function getOpacity(node){
node=dojo.byId(node);
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
ds.clearOpacity=function clearOpacity(node){
node=dojo.byId(node);
var ns=node.style;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
ds.setStyleAttributes=function(node,_5bb){
var _5bc={"opacity":dojo.style.setOpacity,"content-height":dojo.style.setContentHeight,"content-width":dojo.style.setContentWidth,"outer-height":dojo.style.setOuterHeight,"outer-width":dojo.style.setOuterWidth};
var _5bd=_5bb.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_5bd.length;i++){
var _5bf=_5bd[i].split(":");
var name=_5bf[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _5c1=_5bf[1].replace(/\s*$/,"").replace(/^\s*/,"");
if(dojo.lang.has(_5bc,name)){
_5bc[name](node,_5c1);
}else{
node.style[dojo.style.toCamelCase(name)]=_5c1;
}
}
};
ds._toggle=function(node,_5c3,_5c4){
node=dojo.byId(node);
_5c4(node,!_5c3(node));
return _5c3(node);
};
ds.show=function(node){
node=dojo.byId(node);
if(ds.getStyleProperty(node,"display")=="none"){
ds.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
ds.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=ds.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
ds.setStyle(node,"display","none");
};
ds.setShowing=function(node,_5c9){
ds[(_5c9?"show":"hide")](node);
};
ds.isShowing=function(node){
return (ds.getStyleProperty(node,"display")!="none");
};
ds.toggleShowing=function(node){
return ds._toggle(node,ds.isShowing,ds.setShowing);
};
ds.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
ds.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in ds.displayMap?ds.displayMap[tag]:"block");
}
};
ds.setDisplay=function(node,_5cf){
ds.setStyle(node,"display",(dojo.lang.isString(_5cf)?_5cf:(_5cf?ds.suggestDisplayByTagName(node):"none")));
};
ds.isDisplayed=function(node){
return (ds.getComputedStyle(node,"display")!="none");
};
ds.toggleDisplay=function(node){
return ds._toggle(node,ds.isDisplayed,ds.setDisplay);
};
ds.setVisibility=function(node,_5d3){
ds.setStyle(node,"visibility",(dojo.lang.isString(_5d3)?_5d3:(_5d3?"visible":"hidden")));
};
ds.isVisible=function(node){
return (ds.getComputedStyle(node,"visibility")!="hidden");
};
ds.toggleVisibility=function(node){
return ds._toggle(node,ds.isVisible,ds.setVisibility);
};
ds.toCoordinateArray=function(_5d6,_5d7){
if(dojo.lang.isArray(_5d6)){
while(_5d6.length<4){
_5d6.push(0);
}
while(_5d6.length>4){
_5d6.pop();
}
var ret=_5d6;
}else{
var node=dojo.byId(_5d6);
var pos=ds.getAbsolutePosition(node,_5d7);
var ret=[pos.x,pos.y,ds.getBorderBoxWidth(node),ds.getBorderBoxHeight(node)];
}
ret.x=ret[0];
ret.y=ret[1];
ret.w=ret[2];
ret.h=ret[3];
return ret;
};
})();
dojo.provide("dojo.html");
dojo.require("dojo.lang.func");
dojo.require("dojo.dom");
dojo.require("dojo.style");
dojo.require("dojo.string");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.lang.mixin(dojo.html,dojo.style);
dojo.html.clearSelection=function(){
try{
if(window["getSelection"]){
if(dojo.render.html.safari){
window.getSelection().collapse();
}else{
window.getSelection().removeAllRanges();
}
}else{
if(document.selection){
if(document.selection.empty){
document.selection.empty();
}else{
if(document.selection.clear){
document.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_5db){
_5db=dojo.byId(_5db)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_5db.style.MozUserSelect="none";
}else{
if(h.safari){
_5db.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_5db.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_5dd){
_5dd=dojo.byId(_5dd)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_5dd.style.MozUserSelect="";
}else{
if(h.safari){
_5dd.style.KhtmlUserSelect="";
}else{
if(h.ie){
_5dd.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_5df){
_5df=dojo.byId(_5df);
if(document.selection&&document.body.createTextRange){
var _5e0=document.body.createTextRange();
_5e0.moveToElementText(_5df);
_5e0.select();
}else{
if(window["getSelection"]){
var _5e1=window.getSelection();
if(_5e1["selectAllChildren"]){
_5e1.selectAllChildren(_5df);
}
}
}
};
dojo.html.selectInputText=function(_5e2){
_5e2=dojo.byId(_5e2);
if(document.selection&&document.body.createTextRange){
var _5e3=_5e2.createTextRange();
_5e3.moveStart("character",0);
_5e3.moveEnd("character",_5e2.value.length);
_5e3.select();
}else{
if(window["getSelection"]){
var _5e4=window.getSelection();
_5e2.setSelectionRange(0,_5e2.value.length);
}
}
_5e2.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _5e5=window.getSelection();
if(dojo.lang.isString(_5e5)){
return _5e5=="";
}else{
return _5e5.isCollapsed;
}
}
}
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=window.event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getDocumentWidth=function(){
dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");
return dojo.html.getViewportWidth();
};
dojo.html.getDocumentHeight=function(){
dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");
return dojo.html.getViewportHeight();
};
dojo.html.getDocumentSize=function(){
dojo.deprecated("dojo.html.getDocument*","replaced of dojo.html.getViewport*","0.4");
return dojo.html.getViewportSize();
};
dojo.html.getViewportWidth=function(){
var w=0;
if(window.innerWidth){
w=window.innerWidth;
}
if(dojo.exists(document,"documentElement.clientWidth")){
var w2=document.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
return w;
}
if(document.body){
return document.body.clientWidth;
}
return 0;
};
dojo.html.getViewportHeight=function(){
if(window.innerHeight){
return window.innerHeight;
}
if(dojo.exists(document,"documentElement.clientHeight")){
return document.documentElement.clientHeight;
}
if(document.body){
return document.body.clientHeight;
}
return 0;
};
dojo.html.getViewportSize=function(){
var ret=[dojo.html.getViewportWidth(),dojo.html.getViewportHeight()];
ret.w=ret[0];
ret.h=ret[1];
return ret;
};
dojo.html.getScrollTop=function(){
return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
};
dojo.html.getScrollLeft=function(){
return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
};
dojo.html.getScrollOffset=function(){
var off=[dojo.html.getScrollLeft(),dojo.html.getScrollTop()];
off.x=off[0];
off.y=off[1];
return off;
};
dojo.html.getParentOfType=function(node,type){
dojo.deprecated("dojo.html.getParentOfType","replaced by dojo.html.getParentByType*","0.4");
return dojo.html.getParentByType(node,type);
};
dojo.html.getParentByType=function(node,type){
var _5f0=dojo.byId(node);
type=type.toLowerCase();
while((_5f0)&&(_5f0.nodeName.toLowerCase()!=type)){
if(_5f0==(document["body"]||document["documentElement"])){
return null;
}
_5f0=_5f0.parentNode;
}
return _5f0;
};
dojo.html.getAttribute=function(node,attr){
node=dojo.byId(node);
if((!node)||(!node.getAttribute)){
return null;
}
var ta=typeof attr=="string"?attr:new String(attr);
var v=node.getAttribute(ta.toUpperCase());
if((v)&&(typeof v=="string")&&(v!="")){
return v;
}
if(v&&v.value){
return v.value;
}
if((node.getAttributeNode)&&(node.getAttributeNode(ta))){
return (node.getAttributeNode(ta)).value;
}else{
if(node.getAttribute(ta)){
return node.getAttribute(ta);
}else{
if(node.getAttribute(ta.toLowerCase())){
return node.getAttribute(ta.toLowerCase());
}
}
}
return null;
};
dojo.html.hasAttribute=function(node,attr){
node=dojo.byId(node);
return dojo.html.getAttribute(node,attr)?true:false;
};
dojo.html.getClass=function(node){
node=dojo.byId(node);
if(!node){
return "";
}
var cs="";
if(node.className){
cs=node.className;
}else{
if(dojo.html.hasAttribute(node,"class")){
cs=dojo.html.getAttribute(node,"class");
}
}
return dojo.string.trim(cs);
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_5fc){
return dojo.lang.inArray(dojo.html.getClasses(node),_5fc);
};
dojo.html.prependClass=function(node,_5fe){
_5fe+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_5fe);
};
dojo.html.addClass=function(node,_600){
if(dojo.html.hasClass(node,_600)){
return false;
}
_600=dojo.string.trim(dojo.html.getClass(node)+" "+_600);
return dojo.html.setClass(node,_600);
};
dojo.html.setClass=function(node,_602){
node=dojo.byId(node);
var cs=new String(_602);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_602);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_605,_606){
var _605=dojo.string.trim(new String(_605));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_606){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_605)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_605){
nca.push(cs[i]);
}
}
}
dojo.html.setClass(node,nca.join(" "));
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_60b,_60c){
dojo.html.removeClass(node,_60c);
dojo.html.addClass(node,_60b);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_60d,_60e,_60f,_610,_611){
_60e=dojo.byId(_60e)||document;
var _612=_60d.split(/\s+/g);
var _613=[];
if(_610!=1&&_610!=2){
_610=0;
}
var _614=new RegExp("(\\s|^)(("+_612.join(")|(")+"))(\\s|$)");
var _615=[];
if(!_611&&document.evaluate){
var _616=".//"+(_60f||"*")+"[contains(";
if(_610!=dojo.html.classMatchType.ContainsAny){
_616+="concat(' ',@class,' '), ' "+_612.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')]";
}else{
_616+="concat(' ',@class,' '), ' "+_612.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _617=document.evaluate(_616,_60e,null,XPathResult.ANY_TYPE,null);
var _618=_617.iterateNext();
while(_618){
try{
_615.push(_618);
_618=_617.iterateNext();
}
catch(e){
break;
}
}
return _615;
}else{
if(!_60f){
_60f="*";
}
_615=_60e.getElementsByTagName(_60f);
var node,i=0;
outer:
while(node=_615[i++]){
var _61a=dojo.html.getClasses(node);
if(_61a.length==0){
continue outer;
}
var _61b=0;
for(var j=0;j<_61a.length;j++){
if(_614.test(_61a[j])){
if(_610==dojo.html.classMatchType.ContainsAny){
_613.push(node);
continue outer;
}else{
_61b++;
}
}else{
if(_610==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_61b==_612.length){
if((_610==dojo.html.classMatchType.IsOnly)&&(_61b==_61a.length)){
_613.push(node);
}else{
if(_610==dojo.html.classMatchType.ContainsAll){
_613.push(node);
}
}
}
}
return _613;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _61e={x:0,y:0};
if(e.pageX||e.pageY){
_61e.x=e.pageX;
_61e.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_61e.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_61e.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _61e;
};
dojo.html.overElement=function(_621,e){
_621=dojo.byId(_621);
var _623=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_621,true);
var _625=top+getInnerHeight(_621);
var left=getAbsoluteX(_621,true);
var _627=left+getInnerWidth(_621);
}
return (_623.x>=left&&_623.x<=_627&&_623.y>=top&&_623.y<=_625);
};
dojo.html.setActiveStyleSheet=function(_628){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_628){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.getPreferredStyleSheet=function(){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.body=function(){
return document.body||document.getElementsByTagName("body")[0];
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var arr=dojo.lang.map(dojo.lang.toArray(arguments,1),function(a){
return String(a).toLowerCase();
});
return arr[dojo.lang.find(node.tagName.toLowerCase(),arr)]||"";
}
return "";
};
dojo.html.copyStyle=function(_62f,_630){
if(dojo.lang.isUndefined(_630.style.cssText)){
_62f.setAttribute("style",_630.getAttribute("style"));
}else{
_62f.style.cssText=_630.style.cssText;
}
dojo.html.addClass(_62f,dojo.html.getClass(_630));
};
dojo.html._callExtrasDeprecated=function(_631,args){
var _633="dojo.html.extras";
dojo.deprecated("dojo.html."+_631,"moved to "+_633,"0.4");
dojo["require"](_633);
return dojo.html[_631].apply(dojo.html,args);
};
dojo.html.createNodesFromText=function(){
return dojo.html._callExtrasDeprecated("createNodesFromText",arguments);
};
dojo.html.gravity=function(){
return dojo.html._callExtrasDeprecated("gravity",arguments);
};
dojo.html.placeOnScreen=function(){
return dojo.html._callExtrasDeprecated("placeOnScreen",arguments);
};
dojo.html.placeOnScreenPoint=function(){
return dojo.html._callExtrasDeprecated("placeOnScreenPoint",arguments);
};
dojo.html.renderedTextContent=function(){
return dojo.html._callExtrasDeprecated("renderedTextContent",arguments);
};
dojo.html.BackgroundIframe=function(){
return dojo.html._callExtrasDeprecated("BackgroundIframe",arguments);
};
dojo.require("dojo.html");
dojo.provide("dojo.html.extras");
dojo.require("dojo.string.extras");
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _636=dojo.html.getCursorPosition(e);
with(dojo.html){
var _637=getAbsoluteX(node,true)+(getInnerWidth(node)/2);
var _638=getAbsoluteY(node,true)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_636.x<_637?WEST:EAST)|(_636.y<_638?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _63a="";
if(node==null){
return _63a;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _63c="unknown";
try{
_63c=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_63c){
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":
_63a+="\n";
_63a+=dojo.html.renderedTextContent(node.childNodes[i]);
_63a+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_63a+="\n";
}else{
_63a+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _63e="unknown";
try{
_63e=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_63e){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_63e){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_63a)){
text.replace(/^\s/,"");
}
break;
}
_63a+=text;
break;
default:
break;
}
}
return _63a;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=dojo.string.trim(txt);
}
var tn=document.createElement("div");
tn.style.visibility="hidden";
document.body.appendChild(tn);
var _642="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_642="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_642="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_642="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _643=null;
switch(_642){
case "cell":
_643=tn.getElementsByTagName("tr")[0];
break;
case "row":
_643=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_643=tn.getElementsByTagName("table")[0];
break;
default:
_643=tn;
break;
}
var _644=[];
for(var x=0;x<_643.childNodes.length;x++){
_644.push(_643.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _644;
};
dojo.html.placeOnScreen=function(node,_647,_648,_649,_64a){
if(dojo.lang.isArray(_647)){
_64a=_649;
_649=_648;
_648=_647[1];
_647=_647[0];
}
if(!isNaN(_649)){
_649=[Number(_649),Number(_649)];
}else{
if(!dojo.lang.isArray(_649)){
_649=[0,0];
}
}
var _64b=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_649[0];
var h=node.offsetHeight+_649[1];
if(_64a){
_647-=_64b.x;
_648-=_64b.y;
}
var x=_647+w;
if(x>view.w){
x=view.w-w;
}else{
x=_647;
}
x=Math.max(_649[0],x)+_64b.x;
var y=_648+h;
if(y>view.h){
y=view.h-h;
}else{
y=_648;
}
y=Math.max(_649[1],y)+_64b.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.placeOnScreenPoint=function(node,_653,_654,_655,_656){
if(dojo.lang.isArray(_653)){
_656=_655;
_655=_654;
_654=_653[1];
_653=_653[0];
}
if(!isNaN(_655)){
_655=[Number(_655),Number(_655)];
}else{
if(!dojo.lang.isArray(_655)){
_655=[0,0];
}
}
var _657=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var _659=node.style.display;
node.style.display="";
var w=dojo.style.getInnerWidth(node);
var h=dojo.style.getInnerHeight(node);
node.style.display=_659;
if(_656){
_653-=_657.x;
_654-=_657.y;
}
var x=-1,y=-1;
if((_653+_655[0])+w<=view.w&&(_654+_655[1])+h<=view.h){
x=(_653+_655[0]);
y=(_654+_655[1]);
}
if((x<0||y<0)&&(_653-_655[0])<=view.w&&(_654+_655[1])+h<=view.h){
x=(_653-_655[0])-w;
y=(_654+_655[1]);
}
if((x<0||y<0)&&(_653+_655[0])+w<=view.w&&(_654-_655[1])<=view.h){
x=(_653+_655[0]);
y=(_654-_655[1])-h;
}
if((x<0||y<0)&&(_653-_655[0])<=view.w&&(_654-_655[1])<=view.h){
x=(_653-_655[0])-w;
y=(_654-_655[1])-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_653,_654,_655,_656);
}
x+=_657.x;
y+=_657.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe "+"style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=document.createElement(html);
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
document.body.appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode&&this.domNode.parentElement){
var w=dojo.style.getOuterWidth(this.domNode);
var h=dojo.style.getOuterHeight(this.domNode);
if(w==0||h==0){
dojo.lang.setTimeout(this,this.onResized,50);
return;
}
var s=this.iframe.style;
s.width=w+"px";
s.height=h+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _664=dojo.style.toCoordinateArray(node,true);
var s=this.iframe.style;
s.width=_664.w+"px";
s.height=_664.h+"px";
s.left=_664.x+"px";
s.top=_664.y+"px";
},setZIndex:function(node){
if(!this.iframe){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.style.zIndex=node;
}
}
},show:function(){
if(!this.iframe){
return;
}
this.iframe.style.display="block";
},hide:function(){
if(!this.ie){
return;
}
var s=this.iframe.style;
s.display="none";
},remove:function(){
dojo.dom.removeNode(this.iframe);
}});
dojo.provide("dojo.lfx.Animation");
dojo.provide("dojo.lfx.Line");
dojo.require("dojo.lang.func");
dojo.lfx.Line=function(_668,end){
this.start=_668;
this.end=end;
if(dojo.lang.isArray(_668)){
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-_668;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:25,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
},_active:false,_paused:false});
dojo.lfx.Animation=function(_677,_678,_679,_67a,_67b,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_677)||(!_677&&_678.getValue)){
rate=_67b;
_67b=_67a;
_67a=_679;
_679=_678;
_678=_677;
_677=null;
}else{
if(_677.getValue||dojo.lang.isArray(_677)){
rate=_67a;
_67b=_679;
_67a=_678;
_679=_677;
_678=null;
_677=null;
}
}
if(dojo.lang.isArray(_679)){
this.curve=new dojo.lfx.Line(_679[0],_679[1]);
}else{
this.curve=_679;
}
if(_678!=null&&_678>0){
this.duration=_678;
}
if(_67b){
this.repeatCount=_67b;
}
if(rate){
this.rate=rate;
}
if(_677){
this.handler=_677.handler;
this.beforeBegin=_677.beforeBegin;
this.onBegin=_677.onBegin;
this.onEnd=_677.onEnd;
this.onPlay=_677.onPlay;
this.onPause=_677.onPause;
this.onStop=_677.onStop;
this.onAnimate=_677.onAnimate;
}
if(_67a&&dojo.lang.isFunction(_67a)){
this.easing=_67a;
}
};
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(_67d,_67e){
if(_67e){
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(_67d>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_67e);
}),_67d);
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 _680=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_680]);
this.fire("onBegin",[_680]);
}
this.fire("handler",["play",_680]);
this.fire("onPlay",[_680]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _681=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_681]);
this.fire("onPause",[_681]);
return this;
},gotoPercent:function(pct,_683){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_683){
this.play();
}
},stop:function(_684){
clearTimeout(this._timer);
var step=this._percent/100;
if(_684){
step=1;
}
var _686=this.curve.getValue(step);
this.fire("handler",["stop",_686]);
this.fire("onStop",[_686]);
this._active=false;
this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if((this.easing)&&(dojo.lang.isFunction(this.easing))){
step=this.easing(step);
}
var _689=this.curve.getValue(step);
this.fire("handler",["animate",_689]);
this.fire("onAnimate",[_689]);
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
this._active=false;
this.fire("handler",["end"]);
this.fire("onEnd");
if(this.repeatCount>0){
this.repeatCount--;
this.play(null,true);
}else{
if(this.repeatCount==-1){
this.play(null,true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
}
}
}
}
return this;
}});
dojo.lfx.Combine=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _68a=arguments;
if(_68a.length==1&&(dojo.lang.isArray(_68a[0])||dojo.lang.isArrayLike(_68a[0]))){
_68a=_68a[0];
}
var _68b=this;
dojo.lang.forEach(_68a,function(anim){
_68b._anims.push(anim);
var _68d=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_68d();
_68b._onAnimsEnded();
};
});
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_68e,_68f){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_68e>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_68f);
}),_68e);
return this;
}
if(_68f||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_68f);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_690){
this.fire("onStop");
this._animsCall("stop",_690);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_691){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _694=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_691](args);
},_694);
return this;
}});
dojo.lfx.Chain=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _696=arguments;
if(_696.length==1&&(dojo.lang.isArray(_696[0])||dojo.lang.isArrayLike(_696[0]))){
_696=_696[0];
}
var _697=this;
dojo.lang.forEach(_696,function(anim,i,_69a){
_697._anims.push(anim);
var _69b=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
if(i<_69a.length-1){
anim.onEnd=function(){
_69b();
_697._playNext();
};
}else{
anim.onEnd=function(){
_69b();
_697.fire("onEnd");
};
}
},_697);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_69c,_69d){
if(!this._anims.length){
return this;
}
if(_69d||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _69e=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_69c>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_69d);
}),_69c);
return this;
}
if(_69e){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_69e.play(null,_69d);
}
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 _69f=this._anims[this._currAnim];
if(_69f){
if(!_69f._active||_69f._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _6a0=this._anims[this._currAnim];
if(_6a0){
_6a0.stop();
this.fire("onStop",[this._currAnim]);
}
return _6a0;
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return this;
}
this._currAnim++;
if(this._anims[this._currAnim]){
this._anims[this._currAnim].play(null,true);
}
return this;
}});
dojo.lfx.combine=function(){
var _6a1=arguments;
if(dojo.lang.isArray(arguments[0])){
_6a1=arguments[0];
}
return new dojo.lfx.Combine(_6a1);
};
dojo.lfx.chain=function(){
var _6a2=arguments;
if(dojo.lang.isArray(arguments[0])){
_6a2=arguments[0];
}
return new dojo.lfx.Chain(_6a2);
};
dojo.provide("dojo.lfx.html");
dojo.require("dojo.lfx.Animation");
dojo.require("dojo.html");
dojo.lfx.html._byId=function(_6a3){
if(!_6a3){
return [];
}
if(dojo.lang.isArray(_6a3)){
if(!_6a3.alreadyChecked){
var n=[];
dojo.lang.forEach(_6a3,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _6a3;
}
}else{
var n=[];
n.push(dojo.byId(_6a3));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_6a6,_6a7,_6a8,_6a9){
_6a6=dojo.lfx.html._byId(_6a6);
if(_6a6.length==1){
dojo.lang.forEach(_6a7,function(prop){
if(typeof prop["start"]=="undefined"){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.style.getComputedStyle(_6a6[0],prop.property));
}else{
prop.start=dojo.style.getOpacity(_6a6[0]);
}
}
});
}
var _6ab=function(_6ac){
var _6ad=new Array(_6ac.length);
for(var i=0;i<_6ac.length;i++){
_6ad[i]=Math.round(_6ac[i]);
}
return _6ad;
};
var _6af=function(n,_6b1){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _6b1){
if(s=="opacity"){
dojo.style.setOpacity(n,_6b1[s]);
}else{
n.style[s]=_6b1[s];
}
}
};
var _6b3=function(_6b4){
this._properties=_6b4;
this.diffs=new Array(_6b4.length);
dojo.lang.forEach(_6b4,function(prop,i){
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.graphics.color.Color){
prop.startRgb=prop.start.toRgb();
prop.endRgb=prop.end.toRgb();
}else{
this.diffs[i]=prop.end-prop.start;
}
}
},this);
this.getValue=function(n){
var ret={};
dojo.lang.forEach(this._properties,function(prop,i){
var _6bb=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.graphics.color.Color){
_6bb=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_6bb+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_6bb+=")";
}else{
_6bb=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.style.toCamelCase(prop.property)]=_6bb;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({onAnimate:function(_6be){
dojo.lang.forEach(_6a6,function(node){
_6af(node,_6be);
});
}},_6a8,new _6b3(_6a7),_6a9);
return anim;
};
dojo.lfx.html._makeFadeable=function(_6c0){
var _6c1=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
if(dojo.lang.isArrayLike(_6c0)){
dojo.lang.forEach(_6c0,_6c1);
}else{
_6c1(_6c0);
}
};
dojo.lfx.html.fadeIn=function(_6c3,_6c4,_6c5,_6c6){
_6c3=dojo.lfx.html._byId(_6c3);
dojo.lfx.html._makeFadeable(_6c3);
var anim=dojo.lfx.propertyAnimation(_6c3,[{property:"opacity",start:dojo.style.getOpacity(_6c3[0]),end:1}],_6c4,_6c5);
if(_6c6){
var _6c8=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6c8();
_6c6(_6c3,anim);
};
}
return anim;
};
dojo.lfx.html.fadeOut=function(_6c9,_6ca,_6cb,_6cc){
_6c9=dojo.lfx.html._byId(_6c9);
dojo.lfx.html._makeFadeable(_6c9);
var anim=dojo.lfx.propertyAnimation(_6c9,[{property:"opacity",start:dojo.style.getOpacity(_6c9[0]),end:0}],_6ca,_6cb);
if(_6cc){
var _6ce=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6ce();
_6cc(_6c9,anim);
};
}
return anim;
};
dojo.lfx.html.fadeShow=function(_6cf,_6d0,_6d1,_6d2){
var anim=dojo.lfx.html.fadeIn(_6cf,_6d0,_6d1,_6d2);
var _6d4=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_6d4();
if(dojo.lang.isArrayLike(_6cf)){
dojo.lang.forEach(_6cf,dojo.style.show);
}else{
dojo.style.show(_6cf);
}
};
return anim;
};
dojo.lfx.html.fadeHide=function(_6d5,_6d6,_6d7,_6d8){
var anim=dojo.lfx.html.fadeOut(_6d5,_6d6,_6d7,function(){
if(dojo.lang.isArrayLike(_6d5)){
dojo.lang.forEach(_6d5,dojo.style.hide);
}else{
dojo.style.hide(_6d5);
}
if(_6d8){
_6d8(_6d5,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_6da,_6db,_6dc,_6dd){
_6da=dojo.lfx.html._byId(_6da);
var _6de=[];
dojo.lang.forEach(_6da,function(node){
var _6e0=dojo.style.getStyle(node,"overflow");
if(_6e0=="visible"){
node.style.overflow="hidden";
}
node.style.height="0px";
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:0,end:node.scrollHeight}],_6db,_6dc);
var _6e2=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6e2();
node.style.overflow=_6e0;
node.style.height="auto";
if(_6dd){
_6dd(node,anim);
}
};
_6de.push(anim);
});
if(_6da.length>1){
return dojo.lfx.combine(_6de);
}else{
return _6de[0];
}
};
dojo.lfx.html.wipeOut=function(_6e3,_6e4,_6e5,_6e6){
_6e3=dojo.lfx.html._byId(_6e3);
var _6e7=[];
dojo.lang.forEach(_6e3,function(node){
var _6e9=dojo.style.getStyle(node,"overflow");
if(_6e9=="visible"){
node.style.overflow="hidden";
}
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:dojo.style.getContentBoxHeight(node),end:0}],_6e4,_6e5);
var _6eb=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6eb();
dojo.style.hide(node);
node.style.overflow=_6e9;
if(_6e6){
_6e6(node,anim);
}
};
_6e7.push(anim);
});
if(_6e3.length>1){
return dojo.lfx.combine(_6e7);
}else{
return _6e7[0];
}
};
dojo.lfx.html.slideTo=function(_6ec,_6ed,_6ee,_6ef,_6f0){
_6ec=dojo.lfx.html._byId(_6ec);
var _6f1=[];
dojo.lang.forEach(_6ec,function(node){
var top=null;
var left=null;
var init=(function(){
var _6f6=node;
return function(){
top=_6f6.offsetTop;
left=_6f6.offsetLeft;
if(!dojo.style.isPositionAbsolute(_6f6)){
var ret=dojo.style.abs(_6f6,true);
dojo.style.setStyleAttributes(_6f6,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:_6ed[0]},{property:"left",start:left,end:_6ed[1]}],_6ee,_6ef);
var _6f9=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_6f9();
init();
};
if(_6f0){
var _6fa=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_6fa();
_6f0(_6ec,anim);
};
}
_6f1.push(anim);
});
if(_6ec.length>1){
return dojo.lfx.combine(_6f1);
}else{
return _6f1[0];
}
};
dojo.lfx.html.slideBy=function(_6fb,_6fc,_6fd,_6fe,_6ff){
_6fb=dojo.lfx.html._byId(_6fb);
var _700=[];
dojo.lang.forEach(_6fb,function(node){
var top=null;
var left=null;
var init=(function(){
var _705=node;
return function(){
top=node.offsetTop;
left=node.offsetLeft;
if(!dojo.style.isPositionAbsolute(_705)){
var ret=dojo.style.abs(_705);
dojo.style.setStyleAttributes(_705,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:top+_6fc[0]},{property:"left",start:left,end:left+_6fc[1]}],_6fd,_6fe);
var _708=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_708();
init();
};
if(_6ff){
var _709=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_709();
_6ff(_6fb,anim);
};
}
_700.push(anim);
});
if(_6fb.length>1){
return dojo.lfx.combine(_700);
}else{
return _700[0];
}
};
dojo.lfx.html.explode=function(_70a,_70b,_70c,_70d,_70e){
_70a=dojo.byId(_70a);
_70b=dojo.byId(_70b);
var _70f=dojo.style.toCoordinateArray(_70a,true);
var _710=document.createElement("div");
dojo.html.copyStyle(_710,_70b);
with(_710.style){
position="absolute";
display="none";
}
document.body.appendChild(_710);
with(_70b.style){
visibility="hidden";
display="block";
}
var _711=dojo.style.toCoordinateArray(_70b,true);
with(_70b.style){
display="none";
visibility="visible";
}
var anim=new dojo.lfx.propertyAnimation(_710,[{property:"height",start:_70f[3],end:_711[3]},{property:"width",start:_70f[2],end:_711[2]},{property:"top",start:_70f[1],end:_711[1]},{property:"left",start:_70f[0],end:_711[0]},{property:"opacity",start:0.3,end:1}],_70c,_70d);
anim.beforeBegin=function(){
dojo.style.setDisplay(_710,"block");
};
anim.onEnd=function(){
dojo.style.setDisplay(_70b,"block");
_710.parentNode.removeChild(_710);
};
if(_70e){
var _713=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_713();
_70e(_70b,anim);
};
}
return anim;
};
dojo.lfx.html.implode=function(_714,end,_716,_717,_718){
_714=dojo.byId(_714);
end=dojo.byId(end);
var _719=dojo.style.toCoordinateArray(_714,true);
var _71a=dojo.style.toCoordinateArray(end,true);
var _71b=document.createElement("div");
dojo.html.copyStyle(_71b,_714);
dojo.style.setOpacity(_71b,0.3);
with(_71b.style){
position="absolute";
display="none";
}
document.body.appendChild(_71b);
var anim=new dojo.lfx.propertyAnimation(_71b,[{property:"height",start:_719[3],end:_71a[3]},{property:"width",start:_719[2],end:_71a[2]},{property:"top",start:_719[1],end:_71a[1]},{property:"left",start:_719[0],end:_71a[0]},{property:"opacity",start:1,end:0.3}],_716,_717);
anim.beforeBegin=function(){
dojo.style.hide(_714);
dojo.style.show(_71b);
};
anim.onEnd=function(){
_71b.parentNode.removeChild(_71b);
};
if(_718){
var _71d=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_71d();
_718(_714,anim);
};
}
return anim;
};
dojo.lfx.html.highlight=function(_71e,_71f,_720,_721,_722){
_71e=dojo.lfx.html._byId(_71e);
var _723=[];
dojo.lang.forEach(_71e,function(node){
var _725=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _727=dojo.style.getStyle(node,"background-image");
var _728=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_725.length>3){
_725.pop();
}
var rgb=new dojo.graphics.color.Color(_71f);
var _72a=new dojo.graphics.color.Color(_725);
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:rgb,end:_72a}],_720,_721);
var _72c=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_72c();
if(_727){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
};
var _72d=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_72d();
if(_727){
node.style.backgroundImage=_727;
}
if(_728){
node.style.backgroundColor="transparent";
}
if(_722){
_722(node,anim);
}
};
_723.push(anim);
});
if(_71e.length>1){
return dojo.lfx.combine(_723);
}else{
return _723[0];
}
};
dojo.lfx.html.unhighlight=function(_72e,_72f,_730,_731,_732){
_72e=dojo.lfx.html._byId(_72e);
var _733=[];
dojo.lang.forEach(_72e,function(node){
var _735=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node));
var rgb=new dojo.graphics.color.Color(_72f);
var _737=dojo.style.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:_735,end:rgb}],_730,_731);
var _739=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_739();
if(_737){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_735.toRgb().join(",")+")";
};
var _73a=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_73a();
if(_732){
_732(node,anim);
}
};
_733.push(anim);
});
if(_72e.length>1){
return dojo.lfx.combine(_733);
}else{
return _733[0];
}
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggle");
dojo.require("dojo.lfx.*");
dojo.lfx.toggle.plain={show:function(node,_73c,_73d,_73e){
dojo.style.show(node);
if(dojo.lang.isFunction(_73e)){
_73e();
}
},hide:function(node,_740,_741,_742){
dojo.style.hide(node);
if(dojo.lang.isFunction(_742)){
_742();
}
}};
dojo.lfx.toggle.fade={show:function(node,_744,_745,_746){
dojo.lfx.fadeShow(node,_744,_745,_746).play();
},hide:function(node,_748,_749,_74a){
dojo.lfx.fadeHide(node,_748,_749,_74a).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_74c,_74d,_74e){
dojo.lfx.wipeIn(node,_74c,_74d,_74e).play();
},hide:function(node,_750,_751,_752){
dojo.lfx.wipeOut(node,_750,_751,_752).play();
}};
dojo.lfx.toggle.explode={show:function(node,_754,_755,_756,_757){
dojo.lfx.explode(_757||[0,0,0,0],node,_754,_755,_756).play();
},hide:function(node,_759,_75a,_75b,_75c){
dojo.lfx.implode(node,_75c||[0,0,0,0],_759,_75a,_75b).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.DomWidget");
dojo.require("dojo.html");
dojo.require("dojo.html.extras");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.func");
dojo.require("dojo.lfx.toggle");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,toggle:"plain",toggleDuration:150,animationInProgress:false,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_761){
var ch=this.getContainerHeight();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_765){
try{
if(!_765){
dojo.event.browser.clean(this.domNode);
}
this.domNode.parentNode.removeChild(this.domNode);
delete this.domNode;
}
catch(e){
}
},isShowing:function(){
return dojo.style.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isHidden){
this.show();
}else{
this.hide();
}
},show:function(){
this.animationInProgress=true;
this.isHidden=false;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
this.checkSize();
},hide:function(){
this.animationInProgress=true;
this.isHidden=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
w=w||dojo.style.getOuterWidth(this.domNode);
h=h||dojo.style.getOuterHeight(this.domNode);
if(this.width==w&&this.height==h){
return false;
}
this.width=w;
this.height=h;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
if(!this._isResized(w,h)){
return;
}
dojo.style.setOuterWidth(this.domNode,w);
dojo.style.setOuterHeight(this.domNode,h);
this.onResized();
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_76a){
_76a.checkSize();
});
}});
dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});
dojo.provide("dojo.widget.*");
if((dojo!=null)&&(dojo.provide!=null)){
dojo.provide("trimpath.template");
}
TrimPath=new Object();
(function(){
if(TrimPath.evalEx==null){
TrimPath.evalEx=function(src){
return eval(src);
};
}
var _76c;
if(Array.prototype.pop==null){
Array.prototype.pop=function(){
if(this.length===0){
return _76c;
}
return this[--this.length];
};
}
if(Array.prototype.push==null){
Array.prototype.push=function(){
for(var i=0;i<arguments.length;++i){
this[this.length]=arguments[i];
}
return this.length;
};
}
var _76e;
var _76f;
var _770;
var _771;
var _772;
var _773;
var _774;
var _775;
_76e=function(_776){
_776=_776.replace(/\t/g,"    ");
_776=_776.replace(/\r\n/g,"\n");
_776=_776.replace(/\r/g,"\n");
_776=_776.replace(/^(\s*\S*(\s+\S+)*)\s*$/,"$1");
return _776;
};
_76f=function(_777){
_777=_777.replace(/^\s+/g,"");
_777=_777.replace(/\s+$/g,"");
_777=_777.replace(/\s+/g," ");
_777=_777.replace(/^(\s*\S*(\s+\S+)*)\s*$/,"$1");
return _777;
};
_770=function(_778,_779,_77a){
var expr=_778[_779];
if(_779<=0){
_77a.push(expr);
return;
}
var _77c=expr.split(":");
_77a.push("_MODIFIERS[\"");
_77a.push(_77c[0]);
_77a.push("\"](");
_770(_778,_779-1,_77a);
if(_77c.length>1){
_77a.push(",");
_77a.push(_77c[1]);
}
_77a.push(")");
};
_771=function(_77d,_77e,_77f,_780,etc){
var _782=_77d.slice(1,-1).split(" ");
var stmt=etc.statementDef[_782[0]];
if(stmt==null){
_774(_77d,_77f);
return;
}
if(stmt.delta<0){
if(_77e.stack.length<=0){
throw new etc.ParseError(_780,_77e.line,"close tag does not match any previous statement: "+_77d);
}
_77e.stack.pop();
}
if(stmt.delta>0){
_77e.stack.push(_77d);
}
if(stmt.paramMin!=null&&stmt.paramMin>=_782.length){
throw new etc.ParseError(_780,_77e.line,"statement needs more parameters: "+_77d);
}
if(stmt.prefixFunc!=null){
_77f.push(stmt.prefixFunc(_782,_77e,_780,etc));
}else{
_77f.push(stmt.prefix);
}
if(stmt.suffix!=null){
if(_782.length<=1){
if(stmt.paramDefault!=null){
_77f.push(stmt.paramDefault);
}
}else{
for(var i=1;i<_782.length;i++){
if(i>1){
_77f.push(" ");
}
_77f.push(_782[i]);
}
}
_77f.push(stmt.suffix);
}
};
_772=function(text,_786){
if(text==null||text.length<=0){
return;
}
text=text.replace(/\\/g,"\\\\");
text=text.replace(/\n/g,"\\n");
text=text.replace(/"/g,"\\\"");
_786.push("_OUT.write(\"");
_786.push(text);
_786.push("\");");
};
_773=function(line,_788){
var _789="}";
var _78a=-1;
while(_78a+_789.length<line.length){
var _78b="${",endMark="}";
var _78c=line.indexOf(_78b,_78a+_789.length);
if(_78c<0){
break;
}
if(line.charAt(_78c+2)=="%"){
_78b="${%";
endMark="%}";
}
var _78d=line.indexOf(endMark,_78c+_78b.length);
if(_78d<0){
break;
}
_772(line.substring(_78a+_789.length,_78c),_788);
var _78e=line.substring(_78c+_78b.length,_78d).replace(/\|\|/g,"#@@#").split("|");
for(var k in _78e){
if(_78e[k].replace){
_78e[k]=_78e[k].replace(/#@@#/g,"||");
}
}
_788.push("_OUT.write(");
_770(_78e,_78e.length-1,_788);
_788.push(");");
_78a=_78d;
_789=endMark;
}
_772(line.substring(_78a+_789.length),_788);
};
_774=function(text,_791){
if(text.length<=0){
return;
}
var _792=0;
var _793=text.length-1;
while(_792<text.length&&(text.charAt(_792)=="\n")){
_792++;
}
while(_793>=0&&(text.charAt(_793)==" "||text.charAt(_793)=="\t")){
_793--;
}
if(_793<_792){
_793=_792;
}
if(_792>0){
_791.push("if (_FLAGS.keepWhitespace == true) _OUT.write(\"");
var s=text.substring(0,_792).replace("\n","\\n");
while(s.charAt(s.length-1)=="\n"){
s=s.substring(0,s.length-1);
}
_791.push(s);
_791.push("\");");
}
var _795=text.substring(_792,_793+1).split("\n");
for(var i=0;i<_795.length;i++){
_773(_795[i],_791);
if(i<_795.length-1){
_791.push("_OUT.write(\"\\n\");\n");
}
}
if(_793+1<text.length){
_791.push("if (_FLAGS.keepWhitespace == true) _OUT.write(\"");
var s=text.substring(_793+1).replace("\n","\\n");
while(s.charAt(s.length-1)=="\n"){
s=s.substring(0,s.length-1);
}
_791.push(s);
_791.push("\");");
}
};
_775=function(body,_798,etc){
body=_76e(body);
var _79a=["var TrimPath_Template_TEMP = function(_OUT, _CONTEXT, _FLAGS) { with (_CONTEXT) {"];
var _79b={stack:[],line:1};
var _79c=-1;
while(_79c+1<body.length){
var _79d=_79c;
_79d=body.indexOf("{",_79d+1);
while(_79d>=0){
var _79e=body.indexOf("}",_79d+1);
var stmt=body.substring(_79d,_79e);
var _7a0=stmt.match(/^\{(cdata|minify|eval)/);
if(_7a0){
var _7a1=_7a0[1];
var _7a2=_79d+_7a1.length+1;
var _7a3=body.indexOf("}",_7a2);
if(_7a3>=0){
var _7a4;
if(_7a3-_7a2<=0){
_7a4="{/"+_7a1+"}";
}else{
_7a4=body.substring(_7a2+1,_7a3);
}
var _7a5=body.indexOf(_7a4,_7a3+1);
if(_7a5>=0){
_774(body.substring(_79c+1,_79d),_79a);
var _7a6=body.substring(_7a3+1,_7a5);
if(_7a1=="cdata"){
_772(_7a6,_79a);
}else{
if(_7a1=="minify"){
_772(_76f(_7a6),_79a);
}else{
if(_7a1=="eval"){
if(_7a6!=null&&_7a6.length>0){
_79a.push("_OUT.write( (function() { "+_7a6+" })() );");
}
}
}
}
_79d=_79c=_7a5+_7a4.length-1;
}
}
}else{
if(body.charAt(_79d-1)!="$"&&body.charAt(_79d-1)!="\\"){
var _7a7=(body.charAt(_79d+1)=="/"?2:1);
if(body.substring(_79d+_7a7,_79d+10+_7a7).search(TrimPath.parseTemplate_etc.statementTag)==0){
break;
}
}
}
_79d=body.indexOf("{",_79d+1);
}
if(_79d<0){
break;
}
var _79e=body.indexOf("}",_79d+1);
if(_79e<0){
break;
}
_774(body.substring(_79c+1,_79d),_79a);
_771(body.substring(_79d,_79e+1),_79b,_79a,_798,etc);
_79c=_79e;
}
_774(body.substring(_79c+1),_79a);
if(_79b.stack.length!=0){
throw new etc.ParseError(_798,_79b.line,"unclosed, unmatched statement(s): "+_79b.stack.join(","));
}
_79a.push("}}; TrimPath_Template_TEMP");
return _79a.join("");
};
TrimPath.parseTemplate=function(_7a8,_7a9,_7aa){
if(_7aa==null){
_7aa=TrimPath.parseTemplate_etc;
}
var _7ab=_775(_7a8,_7a9,_7aa);
var func=TrimPath.evalEx(_7ab,_7a9,1);
if(func!=null){
return new _7aa.Template(_7a9,_7a8,_7ab,func,_7aa);
}
return null;
};
try{
String.prototype.process=function(_7ad,_7ae){
var _7af=TrimPath.parseTemplate(this,null);
if(_7af!=null){
return _7af.process(_7ad,_7ae);
}
return this;
};
}
catch(e){
}
TrimPath.parseTemplate_etc={};
TrimPath.parseTemplate_etc.statementTag="forelse|for|if|elseif|else|var|macro";
TrimPath.parseTemplate_etc.statementDef={"if":{delta:1,prefix:"if (",suffix:") {",paramMin:1},"else":{delta:0,prefix:"} else {"},"elseif":{delta:0,prefix:"} else if (",suffix:") {",paramDefault:"true"},"/if":{delta:-1,prefix:"}"},"for":{delta:1,paramMin:3,prefixFunc:function(_7b0,_7b1,_7b2,etc){
if(_7b0[2]!="in"){
throw new etc.ParseError(_7b2,_7b1.line,"bad for loop statement: "+_7b0.join(" "));
}
var _7b4=_7b0[1];
var _7b5="__LIST__"+_7b4;
return ["var ",_7b5," = ",_7b0[3],";","var __LENGTH_STACK__;","if (typeof(__LENGTH_STACK__) == 'undefined' || !__LENGTH_STACK__.length) __LENGTH_STACK__ = new Array();","__LENGTH_STACK__[__LENGTH_STACK__.length] = 0;","if ((",_7b5,") != null) { ","var ",_7b4,"_ct = 0;","for (var ",_7b4,"_index in ",_7b5,") { ",_7b4,"_ct++;","if (typeof(",_7b5,"[",_7b4,"_index]) == 'function') {continue;}","__LENGTH_STACK__[__LENGTH_STACK__.length - 1]++;","var ",_7b4," = ",_7b5,"[",_7b4,"_index];"].join("");
}},"forelse":{delta:0,prefix:"} } if (__LENGTH_STACK__[__LENGTH_STACK__.length - 1] == 0) { if (",suffix:") {",paramDefault:"true"},"/for":{delta:-1,prefix:"} }; delete __LENGTH_STACK__[__LENGTH_STACK__.length - 1];"},"var":{delta:0,prefix:"var ",suffix:";"},"macro":{delta:1,prefixFunc:function(_7b6,_7b7,_7b8,etc){
var _7ba=_7b6[1].split("(")[0];
return ["var ",_7ba," = function",_7b6.slice(1).join(" ").substring(_7ba.length),"{ var _OUT_arr = []; var _OUT = { write: function(m) { if (m) _OUT_arr.push(m); } }; "].join("");
}},"/macro":{delta:-1,prefix:" return _OUT_arr.join(''); };"}};
TrimPath.parseTemplate_etc.modifierDef={"eat":function(v){
return "";
},"escape":function(s){
return String(s).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");
},"capitalize":function(s){
return String(s).toUpperCase();
},"default":function(s,d){
return s!=null?s:d;
}};
TrimPath.parseTemplate_etc.modifierDef.h=TrimPath.parseTemplate_etc.modifierDef.escape;
TrimPath.parseTemplate_etc.Template=function(_7c0,_7c1,_7c2,func,etc){
this.process=function(_7c5,_7c6){
if(_7c5==null){
_7c5={};
}
if(_7c5._MODIFIERS==null){
_7c5._MODIFIERS={};
}
if(_7c5.defined==null){
_7c5.defined=function(str){
return (_7c5[str]!=undefined);
};
}
for(var k in etc.modifierDef){
if(_7c5._MODIFIERS[k]==null){
_7c5._MODIFIERS[k]=etc.modifierDef[k];
}
}
if(_7c6==null){
_7c6={};
}
var _7c9=[];
var _7ca={write:function(m){
_7c9.push(m);
}};
try{
func(_7ca,_7c5,_7c6);
}
catch(e){
if(_7c6.throwExceptions==true){
throw e;
}
var _7cc=new String(_7c9.join("")+"[ERROR: "+e.toString()+(e.message?"; "+e.message:"")+"]");
_7cc["exception"]=e;
return _7cc;
}
return _7c9.join("");
};
this.name=_7c0;
this.source=_7c1;
this.sourceFunc=_7c2;
this.toString=function(){
return "TrimPath.Template ["+_7c0+"]";
};
};
TrimPath.parseTemplate_etc.ParseError=function(name,line,_7cf){
this.name=name;
this.line=line;
this.message=_7cf;
};
TrimPath.parseTemplate_etc.ParseError.prototype.toString=function(){
return ("TrimPath template ParseError in "+this.name+": line "+this.line+", "+this.message);
};
TrimPath.parseDOMTemplate=function(_7d0,_7d1,_7d2){
if(_7d1==null){
_7d1=document;
}
var _7d3=_7d1.getElementById(_7d0);
var _7d4=_7d3.value;
if(_7d4==null){
_7d4=_7d3.innerHTML;
}
_7d4=_7d4.replace(/&lt;/g,"<").replace(/&gt;/g,">");
return TrimPath.parseTemplate(_7d4,_7d0,_7d2);
};
TrimPath.processDOMTemplate=function(_7d5,_7d6,_7d7,_7d8,_7d9){
return TrimPath.parseDOMTemplate(_7d5,_7d8,_7d9).process(_7d6,_7d7);
};
})();
dojo.provide("dojo.AdapterRegistry");
dojo.require("dojo.lang.func");
dojo.AdapterRegistry=function(){
this.pairs=[];
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_7db,wrap,_7dd){
if(_7dd){
this.pairs.unshift([name,_7db,wrap]);
}else{
this.pairs.push([name,_7db,wrap]);
}
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
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.require("dojo.lang.func");
dojo.require("dojo.string.extras");
dojo.require("dojo.AdapterRegistry");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_7e4,wrap,_7e6){
dojo.json.jsonRegistry.register(name,_7e4,wrap,_7e6);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},evalJSON:function(json){
dojo.deprecated("dojo.json.evalJSON","use dojo.json.evalJson","0.4");
return this.evalJson(json);
},serialize:function(o){
var _7ea=typeof (o);
if(_7ea=="undefined"){
return "undefined";
}else{
if((_7ea=="number")||(_7ea=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_7ea=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _7ec;
if(typeof (o.__json__)=="function"){
_7ec=o.__json__();
if(o!==_7ec){
return me(_7ec);
}
}
if(typeof (o.json)=="function"){
_7ec=o.json();
if(o!==_7ec){
return me(_7ec);
}
}
if(_7ea!="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;
_7ec=dojo.json.jsonRegistry.match(o);
return me(_7ec);
}
catch(e){
}
if(_7ea=="function"){
return null;
}
res=[];
for(var k in o){
var _7f1;
if(typeof (k)=="number"){
_7f1="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_7f1=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_7f1+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("ning.system");
dojo.require("dojo.io");
dojo.require("dojo.json");
dojo.require("dojo.string");
ning.system.buildUrl=function(args){
if(!args){
args={};
}
if(dojo.lang.isString(args)){
args={subdomain:args};
}
var _7f3=args.ssl?"https":"http";
var _7f4=args.subdomain||"www";
var path=args.path||"/";
var _7f6=args.query||"";
if(dojo.lang.isString(_7f6)){
if(_7f6.length>0){
_7f6="?"+_7f6;
}
}else{
var tmp="";
for(var i in _7f6){
tmp+=dojo.string.substituteParams("%{separator}%{key}=%{value}",{separator:tmp.length?"&":"?",key:encodeURIComponent(i),value:encodeURIComponent(_7f6[i])});
}
_7f6=tmp;
}
return dojo.string.substituteParams("%{scheme}://%{subdomain}.%{host}%{port}%{path}%{query}",{scheme:_7f3,subdomain:_7f4,path:path,query:_7f6,host:ning._.domains.base,port:args.ssl?(ning._.domains.ports.ssl==443?"":":"+ning._.domains.ports.ssl):(ning._.domains.ports.http==80?"":":"+ning._.domains.ports.http)});
};
ning.system.generateCaptcha=function(_7f9){
dojo.io.bind({url:"/xn/rest/1.0/captcha",load:function(type,data,evt){
_7f9(data.captcha);
},mimetype:"text/json",encoding:"utf-8",error:function(type,err){
alert("Error Fetching Captcha");
},preventCache:true});
};
ning.system.signIn=function(args){
var _800={};
for(var i in args.params){
_800[i]=args.params[i];
}
_800.xn_user=args.id;
_800.xn_password=args.password;
_800.xn_rememberMe=args.remember;
_800.target=args.target||window.location;
_800.errorTarget=args.errorTarget||_800.target;
try{
if(!/[:\/?&]/.test(_800.target)){
_800.target=decodeURIComponent(_800.target);
}
if(!/[:\/?&]/.test(_800.errorTarget)){
_800.errorTarget=decodeURIComponent(_800.errorTarget);
}
}
catch(e){
}
window.location=ning.system.buildUrl({subdomain:ning.CurrentApp.id,ssl:true,path:"/xn/identity/1.0/signin",query:_800});
};
ning.system.signOut=function(args){
if(!args){
args={};
}
args.target=args.target||window.location;
args.errorTarget=args.errorTarget||args.target;
try{
args.target=decodeURIComponent(args.target);
args.errorTarget=decodeURIComponent(args.errorTarget);
}
catch(e){
}
window.location=ning.system.buildUrl({subdomain:ning.CurrentApp.id,ssl:false,path:"/xn/identity/1.0/signout",query:args});
};
ning.system.signUp=function(args){
var form=args.formNode;
delete args.formNode;
args.target=args.target||window.location;
args.errorTarget=args.errorTarget||args.target;
try{
args.target=decodeURIComponent(args.target);
args.errorTarget=decodeURIComponent(args.errorTarget);
}
catch(e){
}
args.profile_originAppId=ning.CurrentApp.id;
form.setAttribute("action",ning.system.buildUrl({subdomain:ning.CurrentApp.id,ssl:true,path:"/xn/identity/1.0/signup",query:args}));
form.submit();
};
ning.system.cloneApp=function(args){
var a={url:"/xn/rest/1.0/application",method:"POST",mimetype:"text/json",encoding:"utf-8",load:function(type,data,evt){
if(data.errors){
if(args.failure){
args.failure(data.errors);
}
}else{
ning._.track("Clone App","cloned");
if(args.success){
args.success(data.application);
}
}
},error:function(type,data,_80c){
if(data&&data.type=="unknown"&&_80c&&_80c.responseText){
data=dojo.json.evalJSON(_80c.responseText);
}
if(args.failure){
args.failure((data&&data.errors)?data.errors:["An unexpected error occurred"]);
}
}};
if(args.error){
a.error=args.error;
}
if(args.formNode){
a.formNode=args.formNode;
}
if(args.content){
a.content=args.content;
}
dojo.io.bind(a);
};
ning.system.findProfiles=function(term,from,to,_810,_811){
if(dojo.lang.isFunction(from)){
_810=from;
_811=to;
from=0;
to=1;
}
_811=_811||dj_global;
var url="/xn/rest/internal/profile/search?term="+term+"&from="+from+"&to="+to;
dojo.io.bind({url:url,mimetype:"text/json",encoding:"utf-8",method:"GET",load:function(a,data,b){
_810.apply(_811,[data.results]);
}});
};
dojo.setModulePrefix("trimpath","../trimpath");
dojo.setModulePrefix("snazzy","../../snazzy/js");
dojo.setModulePrefix("ning","../ning");
dojo.provide("ning.ning");
dojo.require("dojo.io.cookie");
dojo.require("dojo.undo.browser");
dojo.require("ning.system");
ning._={CurrentClientTime:dojo.date.format(new Date(),"%Y-%m-%dT%H:%M:%S%z"),bar:{},loaded:false,track:function(name,_817,_818){
ning.whenLoaded(function(){
if(!window["s_xn"]){
return;
}
s_xn.pageName="Ning - "+ning.CurrentApp.name.replace(/'/gm,"&#039;");
s_xn.channel=_818||"Ningbar";
s_xn.prop1="";
if(_817=="invited"){
s_xn.prop1+="Message Sent ";
}
s_xn.prop1=_818||"Ningbar";
var _819=(ning.Bar.getOpenPanelName()=="user");
var _81a=_819?"User":ning.Bar.getOpenPanelLabel();
if(_81a){
s_xn.prop1+=" - "+_81a;
}
if(name){
s_xn.prop1+=" - "+name;
}
s_xn.eVar2=ning.CurrentApp.id;
s_xn.events="";
if(_817=="registered"){
s_xn.events="event1";
}else{
if(_817=="invited"){
s_xn.events="event2";
}else{
if(_817=="cloned"){
s_xn.events="event3";
}else{
if(_817=="befriended"){
s_xn.events="event5";
}else{
if(_817=="contributed"){
s_xn.events="event6";
}else{
if(_817=="bought"){
s_xn.events="event7";
}
}
}
}
}
}
void (s_xn.t());
});
}};
(function(){
var _81b=djConfig.baseRelativePath.substring(0,djConfig.baseRelativePath.indexOf("/js/"))+"/";
ning._.buildStaticPath=function(path){
return _81b+path;
};
})();
ning.whenLoaded=function(_81d){
if(ning._.loaded){
_81d();
}else{
dojo.addOnLoad(_81d);
}
};
dojo.addOnLoad(function(){
ning._.loaded=true;
dojo.undo.browser.setInitialState({back:function(){
ning.Bar._disable();
}});
if(dojo.io.cookie.getCookie("xn_track_app_creation")=="true"){
dojo.io.cookie.setCookie("xn_track_app_creation","false",0,"/","."+ning._.domains.base);
ning._.track("Clone App","cloned");
}
if(dojo.io.cookie.getCookie("xn_track_profile_creation")=="true"){
dojo.io.cookie.setCookie("xn_track_profile_creation","false",0,"/","."+ning._.domains.base);
ning._.track("Sign Up","registered");
}
});
dojo.provide("ning.hooks.bar");
(function(){
if(typeof (ning.hooks.bar.allowPanelAddition)=="undefined"){
ning.hooks.bar.allowPanelAddition=function(args){
return true;
};
}
if(typeof (ning.hooks.bar.allowDialogAddition)=="undefined"){
ning.hooks.bar.allowDialogAddition=function(args){
return true;
};
}
if(typeof (ning.hooks.bar.allowBrandPanelAddition)=="undefined"){
ning.hooks.bar.allowBrandPanelAddition=function(args){
return true;
};
}
})();
dojo.provide("ning.hooks.tags");
dojo.require("dojo.string");
dojo.require("dojo.event.*");
dojo.require("dojo.event.browser");
dojo.require("ning.system");
if(typeof (ning.hooks.viewTag)=="undefined"){
ning.hooks.viewTag=function(tag,_822){
if(_822){
dojo.event.browser.stopEvent(_822);
}
window.location=ning.system.buildUrl({subdomain:"browse",path:"/any/any/"+tag});
};
}
dojo.provide("ning.api");
dojo.require("dojo.json");
(function(){
var _823=function(_824,_825,_826,_827,_828){
var ctx=_828||dj_global;
dojo.io.bind({url:_825.replace(/\[/g,"%5B").replace(/\]/g,"%5D").replace(/\|/g,"%7C"),method:_824,content:_826,mimetype:"text/json",encoding:"utf-8",load:function(type,_82b){
if(!_82b||_82b.errors){
if(dojo.lang.isFunction(_827.error)){
_827.error.apply(ctx,[_82b]);
}
}else{
if(dojo.lang.isFunction(_827.success)){
_827.success.apply(ctx,[_82b]);
}
}
if(dojo.lang.isFunction(_827.after)){
_827.after.apply(ctx,[]);
}
},error:function(type,_82d,_82e){
if(_82d&&_82d.type=="unknown"&&_82e&&_82e.responseText){
_82d=dojo.json.evalJSON(_82e.responseText);
}
if(dojo.lang.isFunction(_827.error)){
_827.error.apply(ctx,[_82d]);
}
if(dojo.lang.isFunction(_827.after)){
_827.after.apply(ctx,[]);
}
},preventCache:true});
};
ning.api.get=function(url,_830,_831){
_823("GET",url,null,_830||{},_831);
};
ning.api.post=function(url,_833,_834,_835){
_823("POST",url,_833,_834||{},_835);
};
})();
dojo.provide("ning.hooks.profiles");
dojo.require("dojo.string");
dojo.require("dojo.event.*");
dojo.require("dojo.event.browser");
dojo.require("ning.api");
dojo.require("ning.system");
if(typeof (ning.hooks.viewProfile)=="undefined"){
ning.hooks.viewProfile_panelWidget=null;
ning.hooks.viewProfile=function(_836,_837){
if(_837){
dojo.event.browser.stopEvent(_837);
}
var _838=ning&&ning.Bar&&ning.Bar.panelExists("friend-requests");
var _839=ning&&ning.Bar&&ning.Bar.panelExists("people");
if(_838||_839){
if(!_836){
ning.Bar.open(_839?"people":"friend-requests");
}else{
ning.api.get("/xn/rest/1.0/profile:"+_836,{success:function(_83a){
if(_838){
ning._.bar.user.viewProfile(_83a.profile);
}else{
ning._.bar.people.viewProfile(_83a.profile);
}
},error:function(_83b){
ning.Bar.open(_839?"people":"friend-requests");
}});
}
}else{
var _83c=function(){
ning.loader.require("dojo.widget.*","ning._.bar.people.xnPeopleOnApp","ning._.bar.people.xnPeopleUserPinned",function(){
if(_836=="__internal_allOnApp"){
ning.hooks.viewProfile_panelWidget.setContent(dojo.widget.createWidget("xnPeopleOnApp",{panelWidget:ning.hooks.viewProfile_panelWidget}));
}else{
ning.api.get("/xn/rest/1.0/profile:"+_836,{success:function(_83d){
ning.hooks.viewProfile_panelWidget.setContent(dojo.widget.createWidget("xnPeopleUserPinned",{panelWidget:ning.hooks.viewProfile_panelWidget,profile:_83d.profile}));
},error:function(_83e){
ning.hooks.viewProfile_panelWidget.showError("Sorry, that user does not exist.","",function(){
ning.Bar.close();
});
}});
}
});
};
if(ning.hooks.viewProfile_panelWidget){
_83c();
}else{
ning.Bar.addPanel({name:"view-profile",order:103,icon:ning._.buildStaticPath("ningbar/gfx/menu/request.gif"),iconSize:{width:10,height:13},label:"",open:function(div,_840){
ning.hooks.viewProfile_panelWidget=_840;
_83c();
},cache:false,close:function(){
if(ning.hooks.viewProfile_panelWidget){
ning.hooks.viewProfile_panelWidget=null;
ning.Bar.removePanel("view-profile");
}
}}).menuListItem.id="xn_friends";
ning.Bar.select("view-profile");
}
}
};
}
dojo.provide("ning.hooks.*");
dojo.kwCompoundRequire({common:["ning.hooks.bar","ning.hooks.tags","ning.hooks.profiles"]});

