/*Copyright(c)2008 AG Interactive,All Rights Reserved;Copyright(c)2004-2008 The Dojo Foundation,All Rights Reserved*//*This is a compiled version of Dojo built for AG Interactive.*/if(typeof dojo=="undefined"){
var dj_global=this;
var dj_currentContext=this;
function dj_undef(_1,_2){
return (typeof (_2||dj_currentContext)[_1]=="undefined");
}
if(dj_undef("djConfig",this)){
var djConfig={};
}
if(dj_undef("dojo",this)){
var dojo={};
}
dojo.global=function(){
return dj_currentContext;
};
dojo.locale=djConfig.locale;
dojo.version={major:0,minor:4,patch:1,flag:"ag_rebirth",revision:Number("$Rev: 8615 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
if((!_4)||(!_3)){
return undefined;
}
if(!dj_undef(_3,_4)){
return _4[_3];
}
return (_5?(_4[_3]={}):undefined);
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7||dojo.global());
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_e,_f){
if(typeof _e!="string"){
return dojo.global();
}
if(_e.indexOf(".")==-1){
return dojo.evalProp(_e,dojo.global(),_f);
}
var ref=dojo.parseObjPath(_e,dojo.global(),_f);
if(ref){
return dojo.evalProp(ref.prop,ref.obj,_f);
}
return null;
};
dojo.errorToString=function(_11){
if(!dj_undef("message",_11)){
return _11.message;
}else{
if(!dj_undef("description",_11)){
return _11.description;
}else{
return _11;
}
}
};
dojo.raise=function(_12,_13){
if(_13){
_12=_12+": "+dojo.errorToString(_13);
}else{
_12=dojo.errorToString(_12);
}
try{
if(djConfig.isDebug){
dojo.hostenv.println("FATAL exception raised: "+_12);
}
}
catch(e){
}
throw _13||Error(_12);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_15){
return dj_global.eval?dj_global.eval(_15):eval(_15);
}
dojo.unimplemented=function(_16,_17){
var _18="'"+_16+"' not implemented";
if(_17!=null){
_18+=" "+_17;
}
dojo.raise(_18);
};
dojo.deprecated=function(_19,_1a,_1b){
var _1c="DEPRECATED: "+_19;
if(_1a){
_1c+=" "+_1a;
}
if(_1b){
_1c+=" -- will be removed in version: "+_1b;
}
dojo.debug(_1c);
};
dojo.render=(function(){
function vscaffold(_1d,_1e){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};
for(var i=0;i<_1e.length;i++){
tmp[_1e[i]]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_21;
}else{
for(var _22 in _21){
if(typeof djConfig[_22]=="undefined"){
djConfig[_22]=_21[_22];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
var _25=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _26={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_27,_28){
this.modulePrefixes_[_27]={name:_27,value:_28};
},moduleHasPrefix:function(_29){
var mp=this.modulePrefixes_;
return Boolean(mp[_29]&&mp[_29].value);
},getModulePrefix:function(_2b){
if(this.moduleHasPrefix(_2b)){
return this.modulePrefixes_[_2b].value;
}
return _2b;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _26){
dojo.hostenv[_2c]=_26[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if(_2d.charAt(0)=="/"||_2d.match(/^\w+:/)){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return !_2e?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb);
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return true;
}
var _33=this.getText(uri,null,true);
if(!_33){
return false;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return true;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return Boolean(ok&&this.findModule(_36,false));
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if(this.loadUriStack.length==0&&this.getTextStack.length==0){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length;i>0;i--){
var _45=_43.slice(0,i).join(".");
if((i==1)&&!this.moduleHasPrefix(_45)){
_43[0]="../"+_43[0];
}else{
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=_47.split(".");
var _4d=this.getModuleSymbols(_47);
var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/));
var _4f=_4d[_4d.length-1];
var ok;
if(_4f=="*"){
_47=_4c.slice(0,-1).join(".");
while(_4d.length){
_4d.pop();
_4d.push(this.pkgFileName);
_4b=_4d.join("/")+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,!_49?_47:null);
if(ok){
break;
}
_4d.pop();
}
}else{
_4b=_4d.join("/")+".js";
_47=_4c.join(".");
var _51=!_49?_47:null;
ok=this.loadPath(_4b,_51);
if(!ok&&!_48){
_4d.pop();
while(_4d.length){
_4b=_4d.join("/")+".js";
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
_4d.pop();
_4b=_4d.join("/")+"/"+this.pkgFileName+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
}
}
if(!ok&&!_49){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_52){
var _53=String(_52);
var _54=_53;
var _55=_52.split(/\./);
if(_55[_55.length-1]=="*"){
_55.pop();
_54=_55.join(".");
}
var _56=dojo.evalObjPath(_54,true);
this.loaded_modules_[_53]=_56;
this.loaded_modules_[_54]=_56;
return _56;
};
dojo.hostenv.findModule=function(_57,_58){
var lmn=String(_57);
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
if(_58){
dojo.raise("no loaded module named '"+_57+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_5a){
var _5b=_5a["common"]||[];
var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]);
for(var x=0;x<_5c.length;x++){
var _5e=_5c[x];
if(_5e.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5e);
}else{
dojo.hostenv.loadModule(_5e);
}
}
};
dojo.require=function(_5f){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(_60,_61){
var _62=arguments[0];
if((_62===true)||(_62=="common")||(_62&&dojo.render[_62].capable)){
var _63=[];
for(var i=1;i<arguments.length;i++){
_63.push(arguments[i]);
}
dojo.require.apply(dojo,_63);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(_65){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.registerModulePath=function(_66,_67){
return dojo.hostenv.setModulePrefix(_66,_67);
};
dojo.setModulePrefix=function(_68,_69){
dojo.deprecated("dojo.setModulePrefix(\""+_68+"\", \""+_69+"\")","replaced by dojo.registerModulePath","0.5");
return dojo.registerModulePath(_68,_69);
};
dojo.exists=function(obj,_6b){
var p=_6b.split(".");
for(var i=0;i<p.length;i++){
if(!obj[p[i]]){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.hostenv.normalizeLocale=function(_6e){
var _6f=_6e?_6e.toLowerCase():dojo.locale;
if(_6f=="root"){
_6f="ROOT";
}
return _6f;
};
dojo.hostenv.searchLocalePath=function(_70,_71,_72){
_70=dojo.hostenv.normalizeLocale(_70);
var _73=_70.split("-");
var _74=[];
for(var i=_73.length;i>0;i--){
_74.push(_73.slice(0,i).join("-"));
}
_74.push(false);
if(_71){
_74.reverse();
}
for(var j=_74.length-1;j>=0;j--){
var loc=_74[j]||"ROOT";
var _78=_72(loc);
if(_78){
break;
}
}
};
dojo.hostenv.localesGenerated;
dojo.hostenv.registerNlsPrefix=function(){
dojo.registerModulePath("nls","nls");
};
dojo.hostenv.preloadLocalizations=function(){
if(dojo.hostenv.localesGenerated){
dojo.hostenv.registerNlsPrefix();
function preload(_79){
_79=dojo.hostenv.normalizeLocale(_79);
dojo.hostenv.searchLocalePath(_79,true,function(loc){
for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){
if(dojo.hostenv.localesGenerated[i]==loc){
dojo["require"]("nls.dojo_"+loc);
return true;
}
}
return false;
});
}
preload();
var _7c=djConfig.extraLocale||[];
for(var i=0;i<_7c.length;i++){
preload(_7c[i]);
}
}
dojo.hostenv.preloadLocalizations=function(){
};
};
dojo.requireLocalization=function(_7e,_7f,_80,_81){
dojo.hostenv.preloadLocalizations();
var _82=dojo.hostenv.normalizeLocale(_80);
var _83=[_7e,"nls",_7f].join(".");
var _84="";
if(_81){
var _85=_81.split(",");
for(var i=0;i<_85.length;i++){
if(_82.indexOf(_85[i])==0){
if(_85[i].length>_84.length){
_84=_85[i];
}
}
}
if(!_84){
_84="ROOT";
}
}
var _87=_81?_84:_82;
var _88=dojo.hostenv.findModule(_83);
var _89=null;
if(_88){
if(djConfig.localizationComplete&&_88._built){
return;
}
var _8a=_87.replace("-","_");
var _8b=_83+"."+_8a;
_89=dojo.hostenv.findModule(_8b);
}
if(!_89){
_88=dojo.hostenv.startPackage(_83);
var _8c=dojo.hostenv.getModuleSymbols(_7e);
var _8d=_8c.concat("nls").join("/");
var _8e;
dojo.hostenv.searchLocalePath(_87,_81,function(loc){
var _90=loc.replace("-","_");
var _91=_83+"."+_90;
var _92=false;
if(!dojo.hostenv.findModule(_91)){
dojo.hostenv.startPackage(_91);
var _93=[_8d];
if(loc!="ROOT"){
_93.push(loc);
}
_93.push(_7f);
var _94=_93.join("/")+".js";
_92=dojo.hostenv.loadPath(_94,null,function(_95){
var _96=function(){
};
_96.prototype=_8e;
_88[_90]=new _96();
for(var j in _95){
_88[_90][j]=_95[j];
}
});
}else{
_92=true;
}
if(_92&&_88[_90]){
_8e=_88[_90];
}else{
_88[_90]=_8e;
}
if(_81){
return true;
}
});
}
if(_81&&_82!=_84){
_88[_82.replace("-","_")]=_88[_84.replace("-","_")];
}
};
(function(){
var _98=djConfig.extraLocale;
if(_98){
if(!_98 instanceof Array){
_98=[_98];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_9c,_9d){
req(m,b,_9c,_9d);
if(_9c){
return;
}
for(var i=0;i<_98.length;i++){
req(m,b,_98[i],_9d);
}
};
}
})();
dojo.hostenv.resetXd=function(){
this.isXDomain=djConfig.forceXDomain||false;
this.xdTimer=0;
this.xdInFlight={};
this.xdOrderedReqs=[];
this.xdDepMap={};
this.xdContents=[];
};
dojo.hostenv.resetXd();
dojo.hostenv.createXdPackage=function(_9f){
var _a0=[];
var _a1=/dojo.(require|requireIf|requireAll|provide|requireAfterIf|requireAfter|kwCompoundRequire|conditionalRequire|hostenv\.conditionalLoadModule|.hostenv\.loadModule|hostenv\.moduleLoaded)\(([\w\W]*?)\)/mg;
var _a2;
while((_a2=_a1.exec(_9f))!=null){
_a0.push("\""+_a2[1]+"\", "+_a2[2]);
}
var _a3=[];
_a3.push("dojo.hostenv.packageLoaded({\n");
if(_a0.length>0){
_a3.push("depends: [");
for(var i=0;i<_a0.length;i++){
if(i>0){
_a3.push(",\n");
}
_a3.push("["+_a0[i]+"]");
}
_a3.push("],");
}
_a3.push("\ndefinePackage: function(dojo){");
_a3.push(_9f);
_a3.push("\n}});");
return _a3.join("");
};
dojo.hostenv.loadPath=function(_a5,_a6,cb){
var _a8=_a5.indexOf(":");
var _a9=_a5.indexOf("/");
var uri;
var _ab=false;
if(_a8>0&&_a8<_a9){
uri=_a5;
this.isXDomain=_ab=true;
}else{
uri=this.getBaseScriptUri()+_a5;
_a8=uri.indexOf(":");
_a9=uri.indexOf("/");
if(_a8>0&&_a8<_a9&&(!location.host||uri.indexOf("http://"+location.host)!=0)){
this.isXDomain=_ab=true;
}
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_a6||this.isXDomain)?this.loadUri(uri,cb,_ab,_a6):this.loadUriAndCheck(uri,_a6,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb,_ae,_af){
if(this.loadedUris[uri]){
return 1;
}
if(this.isXDomain){
this.xdOrderedReqs.push(_af);
if(uri.indexOf("__package__")!=-1){
_af+=".*";
}
this.xdInFlight[_af]=true;
this.inFlightCount++;
if(!this.xdTimer){
this.xdTimer=setInterval("dojo.hostenv.watchInFlightXDomain();",100);
}
this.xdStartTime=(new Date()).getTime();
}
if(_ae){
var _b0=uri.lastIndexOf(".");
if(_b0<=0){
_b0=uri.length-1;
}
var _b1=uri.substring(0,_b0)+".xd";
if(_b0!=uri.length-1){
_b1+=uri.substring(_b0,uri.length);
}
var _b2=document.createElement("script");
_b2.type="text/javascript";
_b2.src=_b1;
if(!this.headElement){
this.headElement=document.getElementsByTagName("head")[0];
}
this.headElement.appendChild(_b2);
}else{
var _b3=this.getText(uri,null,true);
if(_b3==null){
return 0;
}
if(this.isXDomain){
var pkg=this.createXdPackage(_b3);
dj_eval(pkg);
}else{
if(cb){
_b3="("+_b3+")";
}
var _b5=dj_eval(_b3);
if(cb){
cb(_b5);
}
}
}
this.loadedUris[uri]=true;
return 1;
};
dojo.hostenv.packageLoaded=function(pkg){
var _b7=pkg.depends;
var _b8=null;
var _b9=null;
var _ba=[];
if(_b7&&_b7.length>0){
var dep=null;
var _bc=0;
var _bd=false;
for(var i=0;i<_b7.length;i++){
dep=_b7[i];
if(dep[0]=="provide"||dep[0]=="hostenv.moduleLoaded"){
_ba.push(dep[1]);
}else{
if(!_b8){
_b8=[];
}
if(!_b9){
_b9=[];
}
var _bf=this.unpackXdDependency(dep);
if(_bf.requires){
_b8=_b8.concat(_bf.requires);
}
if(_bf.requiresAfter){
_b9=_b9.concat(_bf.requiresAfter);
}
}
var _c0=dep[0];
var _c1=_c0.split(".");
if(_c1.length==2){
dojo[_c1[0]][_c1[1]].apply(dojo[_c1[0]],dep.slice(1));
}else{
dojo[_c0].apply(dojo,dep.slice(1));
}
}
var _c2=this.xdContents.push({content:pkg.definePackage,isDefined:false})-1;
for(var i=0;i<_ba.length;i++){
this.xdDepMap[_ba[i]]={requires:_b8,requiresAfter:_b9,contentIndex:_c2};
}
for(var i=0;i<_ba.length;i++){
this.xdInFlight[_ba[i]]=false;
}
}
};
dojo.hostenv.xdLoadFlattenedBundle=function(_c3,_c4,_c5,_c6){
_c5=_c5||"root";
var _c7=dojo.hostenv.normalizeLocale(_c5).replace("-","_");
var _c8=[_c3,"nls",_c4].join(".");
var _c9=dojo.hostenv.startPackage(_c8);
_c9[_c7]=_c6;
var _ca=[_c3,_c7,_c4].join(".");
var _cb=dojo.hostenv.xdBundleMap[_ca];
if(_cb){
for(var _cc in _cb){
_c9[_cc]=_c6;
}
}
};
dojo.hostenv.xdBundleMap={};
dojo.xdRequireLocalization=function(_cd,_ce,_cf,_d0){
var _d1=_d0.split(",");
var _d2=dojo.hostenv.normalizeLocale(_cf);
var _d3="";
for(var i=0;i<_d1.length;i++){
if(_d2.indexOf(_d1[i])==0){
if(_d1[i].length>_d3.length){
_d3=_d1[i];
}
}
}
var _d5=_d3.replace("-","_");
var _d6=dojo.evalObjPath([_cd,"nls",_ce].join("."));
if(_d6&&_d6[_d5]){
bundle[_d2.replace("-","_")]=_d6[_d5];
}else{
var _d7=[_cd,(_d5||"root"),_ce].join(".");
var _d8=dojo.hostenv.xdBundleMap[_d7];
if(!_d8){
_d8=dojo.hostenv.xdBundleMap[_d7]={};
}
_d8[_d2.replace("-","_")]=true;
dojo.require(_cd+".nls"+(_d3?"."+_d3:"")+"."+_ce);
}
};
(function(){
var _d9=djConfig.extraLocale;
if(_d9){
if(!_d9 instanceof Array){
_d9=[_d9];
}
dojo._xdReqLoc=dojo.xdRequireLocalization;
dojo.xdRequireLocalization=function(m,b,_dc,_dd){
dojo._xdReqLoc(m,b,_dc,_dd);
if(_dc){
return;
}
for(var i=0;i<_d9.length;i++){
dojo._xdReqLoc(m,b,_d9[i],_dd);
}
};
}
})();
dojo.hostenv.unpackXdDependency=function(dep){
var _e0=null;
var _e1=null;
switch(dep[0]){
case "requireIf":
case "requireAfterIf":
case "conditionalRequire":
if((dep[1]===true)||(dep[1]=="common")||(dep[1]&&dojo.render[dep[1]].capable)){
_e0=[{name:dep[2],content:null}];
}
break;
case "requireAll":
dep.shift();
_e0=dep;
dojo.hostenv.flattenRequireArray(_e0);
break;
case "kwCompoundRequire":
case "hostenv.conditionalLoadModule":
var _e2=dep[1];
var _e3=_e2["common"]||[];
var _e0=(_e2[dojo.hostenv.name_])?_e3.concat(_e2[dojo.hostenv.name_]||[]):_e3.concat(_e2["default"]||[]);
dojo.hostenv.flattenRequireArray(_e0);
break;
case "require":
case "requireAfter":
case "hostenv.loadModule":
_e0=[{name:dep[1],content:null}];
break;
}
if(dep[0]=="requireAfterIf"){
_e1=_e0;
_e0=null;
}
return {requires:_e0,requiresAfter:_e1};
};
dojo.hostenv.xdWalkReqs=function(){
var _e4=null;
var req;
for(var i=0;i<this.xdOrderedReqs.length;i++){
req=this.xdOrderedReqs[i];
if(this.xdDepMap[req]){
_e4=[req];
_e4[req]=true;
this.xdEvalReqs(_e4);
}
}
};
dojo.hostenv.xdTraceReqs=function(_e7,_e8){
if(_e7&&_e7.length>0){
var _e9;
for(var i=0;i<_e7.length;i++){
_e9=_e7[i].name;
if(_e9&&!_e8[_e9]){
_e8.push(_e9);
_e8[_e9]=true;
this.xdEvalReqs(_e8);
}
}
}
};
dojo.hostenv.xdEvalReqs=function(_eb){
if(_eb.length>0){
var req=_eb[_eb.length-1];
var pkg=this.xdDepMap[req];
if(pkg){
this.xdTraceReqs(pkg.requires,_eb);
var _ee=this.xdContents[pkg.contentIndex];
if(!_ee.isDefined){
_ee.content(dojo);
_ee.isDefined=true;
}
this.xdDepMap[req]=null;
this.xdTraceReqs(pkg.requiresAfter,_eb);
}
_eb.pop();
this.xdEvalReqs(_eb);
}
};
dojo.hostenv.clearXdInterval=function(){
clearInterval(this.xdTimer);
this.xdTimer=0;
};
dojo.hostenv.watchInFlightXDomain=function(){
var _ef=(djConfig.xdWaitSeconds||30)*1000;
if(this.xdStartTime+_ef<(new Date()).getTime()){
this.clearXdInterval();
var _f0="";
for(var _f1 in this.xdInFlight){
if(this.xdInFlight[_f1]){
_f0+=_f1+" ";
}
}
dojo.raise("Could not load cross-domain packages: "+_f0);
}
for(var _f1 in this.xdInFlight){
if(this.xdInFlight[_f1]){
return;
}
}
this.clearXdInterval();
this.xdWalkReqs();
for(var i=0;i<this.xdContents.length;i++){
var _f3=this.xdContents[i];
if(_f3.content&&!_f3.isDefined){
_f3.content(dojo);
}
}
this.resetXd();
this.inFlightCount=0;
this.callLoaded();
};
dojo.hostenv.flattenRequireArray=function(_f4){
if(_f4){
for(var i=0;i<_f4.length;i++){
if(_f4[i] instanceof Array){
_f4[i]={name:_f4[i][0],content:null};
}else{
_f4[i]={name:_f4[i],content:null};
}
}
}
};
dojo.hostenv.xdHasCalledPreload=false;
dojo.hostenv.xdRealCallLoaded=dojo.hostenv.callLoaded;
dojo.hostenv.callLoaded=function(){
if(this.xdHasCalledPreload||dojo.hostenv.getModulePrefix("dojo")=="src"||!this.localesGenerated){
this.xdRealCallLoaded();
this.xdHasCalledPreload=true;
}else{
if(this.localesGenerated){
this.registerNlsPrefix=function(){
dojo.registerModulePath("nls",dojo.hostenv.getModulePrefix("dojo")+"/../nls");
};
this.preloadLocalizations();
}
this.xdHasCalledPreload=true;
}
};
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _f6=document.location.toString();
var _f7=_f6.split("?",2);
if(_f7.length>1){
var _f8=_f7[1];
var _f9=_f8.split("&");
for(var x in _f9){
var sp=_f9[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 _fd=document.getElementsByTagName("script");
var _fe=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_fd.length;i++){
var src=_fd[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_fe);
if(m){
var root=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
root+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=root;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=root;
}
break;
}
}
}
var dr=dojo.render;
var drh=dojo.render.html;
var drs=dojo.render.svg;
var dua=(drh.UA=navigator.userAgent);
var dav=(drh.AV=navigator.appVersion);
var t=true;
var f=false;
drh.capable=t;
drh.support.builtin=t;
dr.ver=parseFloat(drh.AV);
dr.os.mac=dav.indexOf("Macintosh")>=0;
dr.os.win=dav.indexOf("Windows")>=0;
dr.os.linux=dav.indexOf("X11")>=0;
drh.opera=dua.indexOf("Opera")>=0;
drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);
drh.safari=dav.indexOf("Safari")>=0;
var _10a=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_10a>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_10a+6,_10a+14);
}
drh.ie=(document.all)&&(!drh.opera);
drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;
drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;
drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;
drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;
var cm=document["compatMode"];
drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;
dojo.locale=dojo.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
var tdoc=window["document"];
var tdi=tdoc["implementation"];
if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
if(drh.safari){
var tmp=dua.split("AppleWebKit/")[1];
var ver=parseFloat(tmp.split(" ")[0]);
if(ver>=420){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
}else{
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var http=null;
var _111=null;
try{
http=new XMLHttpRequest();
}
catch(e){
}
if(!http){
for(var i=0;i<3;++i){
var _113=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
http=new ActiveXObject(_113);
}
catch(e){
_111=e;
}
if(http){
dojo.hostenv._XMLHTTP_PROGIDS=[_113];
break;
}
}
}
if(!http){
return dojo.raise("XMLHTTP not available",_111);
}
return http;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_115,_116){
if(!_115){
this._blockAsync=true;
}
var http=this.getXmlhttpObject();
function isDocumentOk(http){
var stat=http["status"];
return Boolean((!stat)||((200<=stat)&&(300>stat))||(stat==304));
}
if(_115){
var _11a=this,_11b=null,gbl=dojo.global();
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
http.onreadystatechange=function(){
if(_11b){
gbl.clearTimeout(_11b);
_11b=null;
}
if(_11a._blockAsync||(xhr&&xhr._blockAsync)){
_11b=gbl.setTimeout(function(){
http.onreadystatechange.apply(this);
},10);
}else{
if(4==http.readyState){
if(isDocumentOk(http)){
_115(http.responseText);
}
}
}
};
}
http.open("GET",uri,_115?true:false);
try{
http.send(null);
if(_115){
return null;
}
if(!isDocumentOk(http)){
var err=Error("Unable to load "+uri+" status:"+http.status);
err.status=http.status;
err.responseText=http.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_116)&&(!_115)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return http.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(line){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(line);
}else{
try{
var _120=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_120){
_120=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(line));
_120.appendChild(div);
}
catch(e){
try{
document.write("<div>"+line+"</div>");
}
catch(e2){
window.status=line;
}
}
}
};
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(node,_123,fp){
var _125=node["on"+_123]||function(){
};
node["on"+_123]=function(){
fp.apply(node,arguments);
_125.apply(node,arguments);
};
return true;
}
function dj_load_init(e){
var type=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(type!="domcontentloaded"&&type!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _128=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_128();
dojo.hostenv.modulesLoaded();
}else{
dojo.hostenv.modulesLoadedListeners.unshift(_128);
}
}
if(document.addEventListener){
if(dojo.render.html.opera||(dojo.render.html.moz&&!djConfig.delayMozLoadingFix)){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
}
window.addEventListener("load",dj_load_init,null);
}
if(dojo.render.html.ie&&dojo.render.os.win){
document.attachEvent("onreadystatechange",function(e){
if(document.readyState=="complete"){
dj_load_init();
}
});
}
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
var _timer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dj_load_init();
}
},10);
}
if(dojo.render.html.ie){
dj_addNodeEvtHdlr(window,"beforeunload",function(){
dojo.hostenv._unloading=true;
window.setTimeout(function(){
dojo.hostenv._unloading=false;
},0);
});
}
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){
dojo.hostenv.unloaded();
}
});
dojo.hostenv.makeWidgets=function(){
var sids=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
sids=sids.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
sids=sids.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(sids.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _12b=new dojo.xml.Parse();
if(sids.length>0){
for(var x=0;x<sids.length;x++){
var _12d=document.getElementById(sids[x]);
if(!_12d){
continue;
}
var frag=_12b.parseElement(_12d,null,true);
dojo.widget.getParser().createComponents(frag);
}
}else{
if(djConfig.parseWidgets){
var frag=_12b.parseElement(dojo.body(),null,true);
dojo.widget.getParser().createComponents(frag);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
if(!dj_undef("document",this)){
dj_currentDocument=this.document;
}
dojo.doc=function(){
return dj_currentDocument;
};
dojo.body=function(){
return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0];
};
dojo.byId=function(id,doc){
if((id)&&((typeof id=="string")||(id instanceof String))){
if(!doc){
doc=dj_currentDocument;
}
var ele=doc.getElementById(id);
if(ele&&(ele.id!=id)&&doc.all){
ele=null;
eles=doc.all[id];
if(eles){
if(eles.length){
for(var i=0;i<eles.length;i++){
if(eles[i].id==id){
ele=eles[i];
break;
}
}
}else{
ele=eles;
}
}
}
return ele;
}
return id;
};
dojo.setContext=function(_133,_134){
dj_currentContext=_133;
dj_currentDocument=_134;
};
dojo._fireCallback=function(_135,_136,_137){
if((_136)&&((typeof _135=="string")||(_135 instanceof String))){
_135=_136[_135];
}
return (_136?_135.apply(_136,_137||[]):_135());
};
dojo.withGlobal=function(_138,_139,_13a,_13b){
var rval;
var _13d=dj_currentContext;
var _13e=dj_currentDocument;
try{
dojo.setContext(_138,_138.document);
rval=dojo._fireCallback(_139,_13a,_13b);
}
finally{
dojo.setContext(_13d,_13e);
}
return rval;
};
dojo.withDoc=function(_13f,_140,_141,_142){
var rval;
var _144=dj_currentDocument;
try{
dj_currentDocument=_13f;
rval=dojo._fireCallback(_140,_141,_142);
}
finally{
dj_currentDocument=_144;
}
return rval;
};
}
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _145=false;
var _146=false;
var _147=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_145=true;
}else{
if(typeof this["load"]=="function"){
_146=true;
}else{
if(window.widget){
_147=true;
}
}
}
var tmps=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
tmps.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_145)&&(!_147)){
tmps.push("browser_debug.js");
}
var _149=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_149=djConfig["baseLoaderUri"];
}
for(var x=0;x<tmps.length;x++){
var _14b=_149+"src/"+tmps[x];
if(_145||_146){
load(_14b);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_14b+"'></scr"+"ipt>");
}
catch(e){
var _14c=document.createElement("script");
_14c.src=_14b;
document.getElementsByTagName("head")[0].appendChild(_14c);
}
}
}
})();
dojo.provide("dojo.dom");
dojo.dom.ELEMENT_NODE=1;
dojo.dom.ATTRIBUTE_NODE=2;
dojo.dom.TEXT_NODE=3;
dojo.dom.CDATA_SECTION_NODE=4;
dojo.dom.ENTITY_REFERENCE_NODE=5;
dojo.dom.ENTITY_NODE=6;
dojo.dom.PROCESSING_INSTRUCTION_NODE=7;
dojo.dom.COMMENT_NODE=8;
dojo.dom.DOCUMENT_NODE=9;
dojo.dom.DOCUMENT_TYPE_NODE=10;
dojo.dom.DOCUMENT_FRAGMENT_NODE=11;
dojo.dom.NOTATION_NODE=12;
dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";
dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};
dojo.dom.isNode=function(wh){
if(typeof Element=="function"){
try{
return wh instanceof Element;
}
catch(e){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getUniqueId=function(){
var _14e=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_14e.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_150,_151){
var node=_150.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_151&&node&&node.tagName&&node.tagName.toLowerCase()!=_151.toLowerCase()){
node=dojo.dom.nextElement(node,_151);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_153,_154){
var node=_153.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_154&&node&&node.tagName&&node.tagName.toLowerCase()!=_154.toLowerCase()){
node=dojo.dom.prevElement(node,_154);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_157){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_157&&_157.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_157);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_159){
if(!node){
return null;
}
if(_159){
_159=_159.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_159&&_159.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_159);
}
return node;
};
dojo.dom.moveChildren=function(_15a,_15b,trim){
var _15d=0;
if(trim){
while(_15a.hasChildNodes()&&_15a.firstChild.nodeType==dojo.dom.TEXT_NODE){
_15a.removeChild(_15a.firstChild);
}
while(_15a.hasChildNodes()&&_15a.lastChild.nodeType==dojo.dom.TEXT_NODE){
_15a.removeChild(_15a.lastChild);
}
}
while(_15a.hasChildNodes()){
_15b.appendChild(_15a.firstChild);
_15d++;
}
return _15d;
};
dojo.dom.copyChildren=function(_15e,_15f,trim){
var _161=_15e.cloneNode(true);
return this.moveChildren(_161,_15f,trim);
};
dojo.dom.replaceChildren=function(node,_163){
var _164=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_164.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_163);
for(var i=0;i<_164.length;i++){
dojo.dom.destroyNode(_164[i]);
}
};
dojo.dom.removeChildren=function(node){
var _167=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _167;
};
dojo.dom.replaceNode=function(node,_169){
return node.parentNode.replaceChild(_169,node);
};
dojo.dom.destroyNode=function(node){
if(node.parentNode){
node=dojo.dom.removeNode(node);
}
if(node.nodeType!=3){
if(dojo.evalObjPath("dojo.event.browser.clean",false)){
dojo.event.browser.clean(node);
}
if(dojo.render.html.ie){
node.outerHTML="";
}
}
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_16d,_16e){
var _16f=[];
var _170=(_16d&&(_16d instanceof Function||typeof _16d=="function"));
while(node){
if(!_170||_16d(node)){
_16f.push(node);
}
if(_16e&&_16f.length>0){
return _16f[0];
}
node=node.parentNode;
}
if(_16e){
return null;
}
return _16f;
};
dojo.dom.getAncestorsByTag=function(node,tag,_173){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_173);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_178,_179){
if(_179&&node){
node=node.parentNode;
}
while(node){
if(node==_178){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
var _17c=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _17d=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_17d.length;i++){
try{
doc=new ActiveXObject(_17d[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_17c.implementation)&&(_17c.implementation.createDocument)){
doc=_17c.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_180){
if(!_180){
_180="text/xml";
}
if(!dj_undef("DOMParser")){
var _181=new DOMParser();
return _181.parseFromString(str,_180);
}else{
if(!dj_undef("ActiveXObject")){
var _182=dojo.dom.createDocument();
if(_182){
_182.async=false;
_182.loadXML(str);
return _182;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _183=dojo.doc();
if(_183.createElement){
var tmp=_183.createElement("xml");
tmp.innerHTML=str;
if(_183.implementation&&_183.implementation.createDocument){
var _185=_183.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_185.importNode(tmp.childNodes.item(i),true);
}
return _185;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_188){
if(_188.firstChild){
_188.insertBefore(node,_188.firstChild);
}else{
_188.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_18b){
if((_18b!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _18c=ref.parentNode;
_18c.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_18f){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_18f!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_18f);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_193){
if((!node)||(!ref)||(!_193)){
return false;
}
switch(_193.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,_195,_196){
var _197=_195.childNodes;
if(!_197.length||_197.length==_196){
_195.appendChild(node);
return true;
}
if(_196==0){
return dojo.dom.prependChild(node,_195);
}
return dojo.dom.insertAfter(node,_197[_196-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _19a=dojo.doc();
dojo.dom.replaceChildren(node,_19a.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _19b="";
if(node==null){
return _19b;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_19b+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_19b+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _19b;
}
};
dojo.dom.hasParent=function(node){
return Boolean(node&&node.parentNode&&dojo.dom.isNode(node.parentNode));
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName==String(arguments[i])){
return String(arguments[i]);
}
}
}
return "";
};
dojo.dom.setAttributeNS=function(elem,_1a1,_1a2,_1a3){
if(elem==null||((elem==undefined)&&(typeof elem=="undefined"))){
dojo.raise("No element given to dojo.dom.setAttributeNS");
}
if(!((elem.setAttributeNS==undefined)&&(typeof elem.setAttributeNS=="undefined"))){
elem.setAttributeNS(_1a1,_1a2,_1a3);
}else{
var _1a4=elem.ownerDocument;
var _1a5=_1a4.createNode(2,_1a2,_1a1);
_1a5.nodeValue=_1a3;
elem.setAttributeNode(_1a5);
}
};
dojo.provide("dojo.xml.Parse");
dojo.xml.Parse=function(){
var isIE=((dojo.render.html.capable)&&(dojo.render.html.ie));
function getTagName(node){
try{
return node.tagName.toLowerCase();
}
catch(e){
return "";
}
}
function getDojoTagName(node){
var _1a9=getTagName(node);
if(!_1a9){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_1a9])){
return _1a9;
}
var p=_1a9.indexOf(":");
if(p>=0){
return _1a9;
}
if(_1a9.substr(0,5)=="dojo:"){
return _1a9;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_1a9;
}
if(_1a9.substr(0,4)=="dojo"){
return "dojo:"+_1a9.substring(4);
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
if(djt.indexOf(":")<0){
djt="dojo:"+djt;
}
return djt.toLowerCase();
}
djt=node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type");
if(djt){
return "dojo:"+djt.toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((dj_global["djConfig"])&&(!djConfig["ignoreClassNames"])){
var _1ac=node.className||node.getAttribute("class");
if((_1ac)&&(_1ac.indexOf)&&(_1ac.indexOf("dojo-")!=-1)){
var _1ad=_1ac.split(" ");
for(var x=0,c=_1ad.length;x<c;x++){
if(_1ad[x].slice(0,5)=="dojo-"){
return "dojo:"+_1ad[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_1b1,_1b2,_1b3){
var _1b4=getTagName(node);
if(isIE&&_1b4.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _1b6=true;
if(_1b2){
var _1b7=getDojoTagName(node);
_1b4=_1b7||_1b4;
_1b6=Boolean(_1b7);
}
var _1b8={};
_1b8[_1b4]=[];
var pos=_1b4.indexOf(":");
if(pos>0){
var ns=_1b4.substring(0,pos);
_1b8["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_1b6=false;
}
}
if(_1b6){
var _1bb=this.parseAttributes(node);
for(var attr in _1bb){
if((!_1b8[_1b4][attr])||(typeof _1b8[_1b4][attr]!="array")){
_1b8[_1b4][attr]=[];
}
_1b8[_1b4][attr].push(_1bb[attr]);
}
_1b8[_1b4].nodeRef=node;
_1b8.tagName=_1b4;
_1b8.index=_1b3||0;
}
var _1bc=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
var ctn=getDojoTagName(tcn)||getTagName(tcn);
if(!_1b8[ctn]){
_1b8[ctn]=[];
}
_1b8[ctn].push(this.parseElement(tcn,true,_1b2,_1bc));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_1b8[ctn][_1b8[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_1bc++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_1b8[_1b4].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _1b8;
};
this.parseAttributes=function(node){
var _1c1={};
var atts=node.attributes;
var _1c3,i=0;
while((_1c3=atts[i++])){
if(isIE){
if(!_1c3){
continue;
}
if((typeof _1c3=="object")&&(typeof _1c3.nodeValue=="undefined")||(_1c3.nodeValue==null)||(_1c3.nodeValue=="")){
continue;
}
}
var nn=_1c3.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_1c3.nodeName;
_1c1[nn]={value:_1c3.nodeValue};
}
return _1c1;
};
};
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_1c6,_1c7){
if(!dojo.lang.isFunction(_1c7)){
dojo.raise("dojo.inherits: superclass argument ["+_1c7+"] must be a function (subclass: ["+_1c6+"']");
}
_1c6.prototype=new _1c7();
_1c6.prototype.constructor=_1c6;
_1c6.superclass=_1c7.prototype;
_1c6["super"]=_1c7.prototype;
};
dojo.lang._mixin=function(obj,_1c9){
var tobj={};
for(var x in _1c9){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_1c9[x])){
obj[x]=_1c9[x];
}
}
if(dojo.render.html.ie&&(typeof (_1c9["toString"])=="function")&&(_1c9["toString"]!=obj["toString"])&&(_1c9["toString"]!=tobj["toString"])){
obj.toString=_1c9.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_1cd){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_1d0,_1d1){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_1d0.prototype,arguments[i]);
}
return _1d0;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_1d4,_1d5,_1d6,_1d7){
if(!dojo.lang.isArrayLike(_1d4)&&dojo.lang.isArrayLike(_1d5)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_1d4;
_1d4=_1d5;
_1d5=temp;
}
var _1d9=dojo.lang.isString(_1d4);
if(_1d9){
_1d4=_1d4.split("");
}
if(_1d7){
var step=-1;
var i=_1d4.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_1d4.length;
}
if(_1d6){
while(i!=end){
if(_1d4[i]===_1d5){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_1d4[i]==_1d5){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_1dd,_1de,_1df){
return dojo.lang.find(_1dd,_1de,_1df,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_1e0,_1e1){
return dojo.lang.find(_1e0,_1e1)>-1;
};
dojo.lang.isObject=function(it){
if(typeof it=="undefined"){
return false;
}
return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));
};
dojo.lang.isArray=function(it){
return (it&&it instanceof Array||typeof it=="array");
};
dojo.lang.isArrayLike=function(it){
if((!it)||(dojo.lang.isUndefined(it))){
return false;
}
if(dojo.lang.isString(it)){
return false;
}
if(dojo.lang.isFunction(it)){
return false;
}
if(dojo.lang.isArray(it)){
return true;
}
if((it.tagName)&&(it.tagName.toLowerCase()=="form")){
return false;
}
if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(it){
return (it instanceof Function||typeof it=="function");
};
(function(){
if((dojo.render.html.capable)&&(dojo.render.html["safari"])){
dojo.lang.isFunction=function(it){
if((typeof (it)=="function")&&(it=="[object NodeList]")){
return false;
}
return (it instanceof Function||typeof it=="function");
};
}
})();
dojo.lang.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.lang.isAlien=function(it){
try{
if(!it){
return false;
}
return !dojo.lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
}
catch(err){
return false;
}
};
dojo.lang.isBoolean=function(it){
return (it instanceof Boolean||typeof it=="boolean");
};
dojo.lang.isNumber=function(it){
return (it instanceof Number||typeof it=="number");
};
dojo.lang.isUndefined=function(it){
return ((typeof (it)=="undefined")&&(it==undefined));
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_1ec,_1ed){
var fcn=(dojo.lang.isString(_1ed)?_1ec[_1ed]:_1ed)||function(){
};
return function(){
return fcn.apply(_1ec,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_1ef,_1f0,_1f1){
var nso=(_1f0||dojo.lang.anon);
if((_1f1)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_1ef){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_1ef;
return ret;
};
dojo.lang.forward=function(_1f5){
return function(){
return this[_1f5].apply(this,arguments);
};
};
dojo.lang.curry=function(_1f6,func){
var _1f8=[];
_1f6=_1f6||dj_global;
if(dojo.lang.isString(func)){
func=_1f6[func];
}
for(var x=2;x<arguments.length;x++){
_1f8.push(arguments[x]);
}
var _1fa=(func["__preJoinArity"]||func.length)-_1f8.length;
function gather(_1fb,_1fc,_1fd){
var _1fe=_1fd;
var _1ff=_1fc.slice(0);
for(var x=0;x<_1fb.length;x++){
_1ff.push(_1fb[x]);
}
_1fd=_1fd-_1fb.length;
if(_1fd<=0){
var res=func.apply(_1f6,_1ff);
_1fd=_1fe;
return res;
}else{
return function(){
return gather(arguments,_1ff,_1fd);
};
}
}
return gather([],_1f8,_1fa);
};
dojo.lang.curryArguments=function(_202,func,args,_205){
var _206=[];
var x=_205||0;
for(x=_205;x<args.length;x++){
_206.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_202,func].concat(_206));
};
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,_20c,_20d){
if(!farr.length){
if(typeof _20d=="function"){
_20d();
}
return;
}
if((typeof _20c=="undefined")&&(typeof cb=="number")){
_20c=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_20c){
_20c=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_20c,_20d);
},_20c);
};
dojo.provide("dojo.lang.array");
dojo.lang.mixin(dojo.lang,{has:function(obj,name){
try{
return typeof obj[name]!="undefined";
}
catch(e){
return false;
}
},isEmpty:function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _212=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_212++;
break;
}
}
return _212==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_216){
var _217=dojo.lang.isString(arr);
if(_217){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_216)){
_216=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_216){
var _218=obj;
obj=_216;
_216=_218;
}
}
if(Array.map){
var _219=Array.map(arr,_216,obj);
}else{
var _219=[];
for(var i=0;i<arr.length;++i){
_219.push(_216.call(obj,arr[i]));
}
}
if(_217){
return _219.join("");
}else{
return _219;
}
},reduce:function(arr,_21c,obj,_21e){
var _21f=_21c;
if(arguments.length==1){
dojo.debug("dojo.lang.reduce called with too few arguments!");
return false;
}else{
if(arguments.length==2){
_21e=_21c;
_21f=arr.shift();
}else{
if(arguments.lenght==3){
if(dojo.lang.isFunction(obj)){
_21e=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_21e;
_21e=obj;
obj=tmp;
}
}
}
}
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_21f=_21e.call(ob,_21f,val);
});
return _21f;
},forEach:function(_223,_224,_225){
if(dojo.lang.isString(_223)){
_223=_223.split("");
}
if(Array.forEach){
Array.forEach(_223,_224,_225);
}else{
if(!_225){
_225=dj_global;
}
for(var i=0,l=_223.length;i<l;i++){
_224.call(_225,_223[i],i,_223);
}
}
},_everyOrSome:function(_228,arr,_22a,_22b){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_228?"every":"some"](arr,_22a,_22b);
}else{
if(!_22b){
_22b=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _22e=_22a.call(_22b,arr[i],i,arr);
if(_228&&!_22e){
return false;
}else{
if((!_228)&&(_22e)){
return true;
}
}
}
return Boolean(_228);
}
},every:function(arr,_230,_231){
return this._everyOrSome(true,arr,_230,_231);
},some:function(arr,_233,_234){
return this._everyOrSome(false,arr,_233,_234);
},filter:function(arr,_236,_237){
var _238=dojo.lang.isString(arr);
if(_238){
arr=arr.split("");
}
var _239;
if(Array.filter){
_239=Array.filter(arr,_236,_237);
}else{
if(!_237){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_237=dj_global;
}
_239=[];
for(var i=0;i<arr.length;i++){
if(_236.call(_237,arr[i],i,arr)){
_239.push(arr[i]);
}
}
}
if(_238){
return _239.join("");
}else{
return _239;
}
},unnest:function(){
var out=[];
for(var i=0;i<arguments.length;i++){
if(dojo.lang.isArrayLike(arguments[i])){
var add=dojo.lang.unnest.apply(this,arguments[i]);
out=out.concat(add);
}else{
out.push(arguments[i]);
}
}
return out;
},toArray:function(_23e,_23f){
var _240=[];
for(var i=_23f||0;i<_23e.length;i++){
_240.push(_23e[i]);
}
return _240;
}});
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_243){
var _244=window,_245=2;
if(!dojo.lang.isFunction(func)){
_244=func;
func=_243;
_243=arguments[2];
_245++;
}
if(dojo.lang.isString(func)){
func=_244[func];
}
var args=[];
for(var i=_245;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_244,args);
},_243);
};
dojo.lang.clearTimeout=function(_248){
dojo.global().clearTimeout(_248);
};
dojo.lang.getNameInObj=function(ns,item){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===item){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj,deep){
var i,ret;
if(obj===null){
return null;
}
if(dojo.lang.isObject(obj)){
ret=new obj.constructor();
for(i in obj){
if(dojo.lang.isUndefined(ret[i])){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}
}else{
if(dojo.lang.isArray(obj)){
ret=[];
for(i=0;i<obj.length;i++){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}else{
ret=obj;
}
}
return ret;
};
dojo.lang.firstValued=function(){
for(var i=0;i<arguments.length;i++){
if(typeof arguments[i]!="undefined"){
return arguments[i];
}
}
return undefined;
};
dojo.lang.getObjPathValue=function(_251,_252,_253){
with(dojo.parseObjPath(_251,_252,_253)){
return dojo.evalProp(prop,obj,_253);
}
};
dojo.lang.setObjPathValue=function(_254,_255,_256,_257){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_257=true;
}
with(dojo.parseObjPath(_254,_256,_257)){
if(obj&&(_257||(prop in obj))){
obj[prop]=_255;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_258,_259,init,_25b){
if((dojo.lang.isFunction(_25b))||((!_25b)&&(!dojo.lang.isFunction(init)))){
var temp=_25b;
_25b=init;
init=temp;
}
var _25d=[];
if(dojo.lang.isArray(_259)){
_25d=_259;
_259=_25d.shift();
}
if(!init){
init=dojo.evalObjPath(_258,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_259?_259.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _259();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_25d;
for(var i=0,l=_25d.length;i<l;i++){
dojo.lang.extend(ctor,_25d[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_258;
if(dojo.lang.isArray(_25b)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_25b));
}else{
dojo.lang.extend(ctor,(_25b)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _262=dojo.parseObjPath(_258,null,true);
_262.obj[_262.prop]=ctor;
return ctor;
};
dojo.lang.declare._makeConstructor=function(){
return function(){
var self=this._getPropContext();
var s=self.constructor.superclass;
if((s)&&(s.constructor)){
if(s.constructor==arguments.callee){
this._inherited("constructor",arguments);
}else{
this._contextMethod(s,"constructor",arguments);
}
}
var ms=(self.constructor.mixins)||([]);
for(var i=0,m;(m=ms[i]);i++){
(((m.prototype)&&(m.prototype.initializer))||(m)).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare._common={_getPropContext:function(){
return (this.___proto||this);
},_contextMethod:function(_268,_269,args){
var _26b,_26c=this.___proto;
this.___proto=_268;
try{
_26b=_268[_269].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_26c;
}
return _26b;
},_inherited:function(prop,args){
var p=this._getPropContext();
do{
if((!p.constructor)||(!p.constructor.superclass)){
return;
}
p=p.constructor.superclass;
}while(!(prop in p));
return (dojo.lang.isFunction(p[prop])?this._contextMethod(p,prop,args):p[prop]);
},inherited:function(prop,args){
dojo.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");
this._inherited(prop,args);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_273,_274,_275){
if(!_275||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_273,_274);
}
},allow:function(name){
if(this.failed[name]){
return false;
}
if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,name))){
return false;
}
return ((name==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,name)));
},get:function(name){
return this.namespaces[name];
},require:function(name){
var ns=this.namespaces[name];
if((ns)&&(this.loaded[name])){
return ns;
}
if(!this.allow(name)){
return false;
}
if(this.loading[name]){
dojo.debug("dojo.namespace.require: re-entrant request to load namespace \""+name+"\" must fail.");
return false;
}
var req=dojo.require;
this.loading[name]=true;
try{
if(name=="dojo"){
req("dojo.namespaces.dojo");
}else{
if(!dojo.hostenv.moduleHasPrefix(name)){
dojo.registerModulePath(name,"../"+name);
}
req([name,"manifest"].join("."),false,true);
}
if(!this.namespaces[name]){
this.failed[name]=true;
}
}
finally{
this.loading[name]=false;
}
return this.namespaces[name];
}};
dojo.ns.Ns=function(name,_27c,_27d){
this.name=name;
this.module=_27c;
this.resolver=_27d;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_27f,_280){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _281=this.resolver(name,_27f);
if((_281)&&(!this._loaded[_281])&&(!this._failed[_281])){
var req=dojo.require;
req(_281,false,true);
if(dojo.hostenv.findModule(_281,false)){
this._loaded[_281]=true;
}else{
if(!_280){
dojo.raise("dojo.ns.Ns.resolve: module '"+_281+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_281]=true;
}
}
return Boolean(this._loaded[_281]);
};
dojo.registerNamespace=function(name,_284,_285){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_287){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_287;
}
};
dojo.registerNamespaceManifest=function(_289,path,name,_28c,_28d){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_28c,_28d);
};
dojo.registerNamespace("dojo","dojo.widget");
dojo.provide("dojo.event.common");
dojo.event=new function(){
this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_28f){
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 _292=dl.nameAnonFunc(args[2],ao.adviceObj,_28f);
ao.adviceFunc=_292;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _292=dl.nameAnonFunc(args[0],ao.srcObj,_28f);
ao.srcFunc=_292;
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 _292=dl.nameAnonFunc(args[1],dj_global,_28f);
ao.srcFunc=_292;
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 _292=dl.nameAnonFunc(args[3],dj_global,_28f);
ao.adviceObj=dj_global;
ao.adviceFunc=_292;
}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 _292=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_28f);
ao.aroundFunc=_292;
}
if(dl.isFunction(ao.srcFunc)){
ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(dl.isFunction(ao.adviceFunc)){
ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){
ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc);
}
if(!ao.srcObj){
dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);
}
if(!ao.adviceObj){
dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);
}
if(!ao.adviceFunc){
dojo.debug("bad adviceFunc for srcFunc: "+ao.srcFunc);
dojo.debugShallow(ao);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.connect(ao);
}
ao.srcFunc="onkeypress";
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _294={};
for(var x in ao){
_294[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);
}
_294.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_294));
});
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 _29c;
if((arguments.length==1)&&(typeof a1=="object")){
_29c=a1;
}else{
_29c={srcObj:a1,srcFunc:a2};
}
_29c.adviceFunc=function(){
var _29d=[];
for(var x=0;x<arguments.length;x++){
_29d.push(arguments[x]);
}
dojo.debug("("+_29c.srcObj+")."+_29c.srcFunc,":",_29d.join(", "));
};
this.kwConnect(_29c);
};
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(_2a4,_2a5){
var fn=(_2a5)?"disconnect":"connect";
if(typeof _2a4["srcFunc"]=="function"){
_2a4.srcObj=_2a4["srcObj"]||dj_global;
var _2a7=dojo.lang.nameAnonFunc(_2a4.srcFunc,_2a4.srcObj,true);
_2a4.srcFunc=_2a7;
}
if(typeof _2a4["adviceFunc"]=="function"){
_2a4.adviceObj=_2a4["adviceObj"]||dj_global;
var _2a7=dojo.lang.nameAnonFunc(_2a4.adviceFunc,_2a4.adviceObj,true);
_2a4.adviceFunc=_2a7;
}
_2a4.srcObj=_2a4["srcObj"]||dj_global;
_2a4.adviceObj=_2a4["adviceObj"]||_2a4["targetObj"]||dj_global;
_2a4.adviceFunc=_2a4["adviceFunc"]||_2a4["targetFunc"];
return dojo.event[fn](_2a4);
};
this.kwConnect=function(_2a8){
return this._kwConnectImpl(_2a8,false);
};
this.disconnect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(!ao.adviceFunc){
return;
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.disconnect(ao);
}
ao.srcFunc="onkeypress";
}
if(!ao.srcObj[ao.srcFunc]){
return null;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc,true);
mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
return mjp;
};
this.kwDisconnect=function(_2ab){
return this._kwConnectImpl(_2ab,true);
};
};
dojo.event.MethodInvocation=function(_2ac,obj,args){
this.jp_=_2ac;
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,_2b4){
this.object=obj||dj_global;
this.methodname=_2b4;
this.methodfunc=this.object[_2b4];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_2b6){
if(!obj){
obj=dj_global;
}
if(!obj[_2b6]){
obj[_2b6]=function(){
};
if(!obj[_2b6]){
dojo.raise("Cannot set do-nothing method on that object "+_2b6);
}
}else{
if((!dojo.lang.isFunction(obj[_2b6]))&&(!dojo.lang.isAlien(obj[_2b6]))){
return null;
}
}
var _2b7=_2b6+"$joinpoint";
var _2b8=_2b6+"$joinpoint$method";
var _2b9=obj[_2b7];
if(!_2b9){
var _2ba=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_2ba=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_2b7,_2b8,_2b6]);
}
}
var _2bb=obj[_2b6].length;
obj[_2b8]=obj[_2b6];
_2b9=obj[_2b7]=new dojo.event.MethodJoinPoint(obj,_2b8);
obj[_2b6]=function(){
var args=[];
if((_2ba)&&(!arguments.length)){
var evt=null;
try{
if(obj.ownerDocument){
evt=obj.ownerDocument.parentWindow.event;
}else{
if(obj.documentElement){
evt=obj.documentElement.ownerDocument.parentWindow.event;
}else{
if(obj.event){
evt=obj.event;
}else{
evt=window.event;
}
}
}
}
catch(e){
evt=window.event;
}
if(evt){
args.push(dojo.event.browser.fixEvent(evt,this));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(_2ba)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _2b9.run.apply(_2b9,args);
};
obj[_2b6].__preJoinArity=_2bb;
}
return _2b9;
};
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 _2c1=[];
for(var x=0;x<args.length;x++){
_2c1[x]=args[x];
}
var _2c3=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _2c5=marr[0]||dj_global;
var _2c6=marr[1];
if(!_2c5[_2c6]){
dojo.raise("function \""+_2c6+"\" does not exist on \""+_2c5+"\"");
}
var _2c7=marr[2]||dj_global;
var _2c8=marr[3];
var msg=marr[6];
var _2ca;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _2c5[_2c6].apply(_2c5,to.args);
}};
to.args=_2c1;
var _2cc=parseInt(marr[4]);
var _2cd=((!isNaN(_2cc))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _2d0=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;
_2c3(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_2c8){
_2c7[_2c8].call(_2c7,to);
}else{
if((_2cd)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_2c5[_2c6].call(_2c5,to);
}else{
_2c5[_2c6].apply(_2c5,args);
}
},_2cc);
}else{
if(msg){
_2c5[_2c6].call(_2c5,to);
}else{
_2c5[_2c6].apply(_2c5,args);
}
}
}
};
var _2d3=function(){
if(this.squelch){
try{
return _2c3.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _2c3.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_2d3);
}
var _2d4;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_2d4=mi.proceed();
}else{
if(this.methodfunc){
_2d4=this.object[this.methodname].apply(this.object,args);
}
}
}
catch(e){
if(!this.squelch){
dojo.debug(e,"when calling",this.methodname,"on",this.object,"with arguments",args);
dojo.raise(e);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_2d3);
}
return (this.methodfunc)?_2d4:null;
},getArr:function(kind){
var type="after";
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
type="before";
}else{
if(kind=="around"){
type="around";
}
}
if(!this[type]){
this[type]=[];
}
return this[type];
},kwAddAdvice:function(args){
this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"]);
},addAdvice:function(_2d9,_2da,_2db,_2dc,_2dd,_2de,once,_2e0,rate,_2e2){
var arr=this.getArr(_2dd);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_2d9,_2da,_2db,_2dc,_2e0,rate,_2e2];
if(once){
if(this.hasAdvice(_2d9,_2da,_2dd,arr)>=0){
return;
}
}
if(_2de=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_2e5,_2e6,_2e7,arr){
if(!arr){
arr=this.getArr(_2e7);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _2e6=="object")?(new String(_2e6)).toString():_2e6;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_2e5)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_2ed,_2ee,_2ef,once){
var arr=this.getArr(_2ef);
var ind=this.hasAdvice(_2ed,_2ee,_2ef,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_2ed,_2ee,_2ef,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_2f3){
if(!this.topics[_2f3]){
this.topics[_2f3]=new this.TopicImpl(_2f3);
}
return this.topics[_2f3];
};
this.registerPublisher=function(_2f4,obj,_2f6){
var _2f4=this.getTopic(_2f4);
_2f4.registerPublisher(obj,_2f6);
};
this.subscribe=function(_2f7,obj,_2f9){
var _2f7=this.getTopic(_2f7);
_2f7.subscribe(obj,_2f9);
};
this.unsubscribe=function(_2fa,obj,_2fc){
var _2fa=this.getTopic(_2fa);
_2fa.unsubscribe(obj,_2fc);
};
this.destroy=function(_2fd){
this.getTopic(_2fd).destroy();
delete this.topics[_2fd];
};
this.publishApply=function(_2fe,args){
var _2fe=this.getTopic(_2fe);
_2fe.sendMessage.apply(_2fe,args);
};
this.publish=function(_300,_301){
var _300=this.getTopic(_300);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_300.sendMessage.apply(_300,args);
};
};
dojo.event.topic.TopicImpl=function(_304){
this.topicName=_304;
this.subscribe=function(_305,_306){
var tf=_306||_305;
var to=(!_306)?dj_global:_305;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_309,_30a){
var tf=(!_30a)?_309:_30a;
var to=(!_30a)?null:_309;
return dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this._getJoinPoint=function(){
return dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage");
};
this.setSquelch=function(_30d){
this._getJoinPoint().squelch=_30d;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_30e,_30f){
dojo.event.connect(_30e,_30f,this,"sendMessage");
};
this.sendMessage=function(_310){
};
};
dojo.provide("dojo.event.browser");
dojo._ie_clobber=new function(){
this.clobberNodes=[];
function nukeProp(node,prop){
try{
node[prop]=null;
}
catch(e){
}
try{
delete node[prop];
}
catch(e){
}
try{
node.removeAttribute(prop);
}
catch(e){
}
}
this.clobber=function(_313){
var na;
var tna;
if(_313){
tna=_313.all||_313.getElementsByTagName("*");
na=[_313];
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 _317={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
try{
if(el&&el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
catch(e){
}
}
na=null;
};
};
if(dojo.render.html.ie){
dojo.addOnUnload(function(){
dojo._ie_clobber.clobber();
try{
if((dojo["widget"])&&(dojo.widget["manager"])){
dojo.widget.manager.destroyAll();
}
}
catch(e){
}
if(dojo.widget){
for(var name in dojo.widget._templateCache){
if(dojo.widget._templateCache[name].node){
dojo.dom.destroyNode(dojo.widget._templateCache[name].node);
dojo.widget._templateCache[name].node=null;
delete dojo.widget._templateCache[name].node;
}
}
}
try{
window.onload=null;
}
catch(e){
}
try{
window.onunload=null;
}
catch(e){
}
dojo._ie_clobber.clobberNodes=[];
});
}
dojo.event.browser=new function(){
var _31c=0;
this.normalizedEventName=function(_31d){
switch(_31d){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _31d;
break;
default:
return _31d.toLowerCase();
break;
}
};
this.clean=function(node){
if(dojo.render.html.ie){
dojo._ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!dojo.render.html.ie){
return;
}
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo._ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_321){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_321.length;x++){
node.__clobberAttrs__.push(_321[x]);
}
};
this.removeListener=function(node,_324,fp,_326){
if(!_326){
var _326=false;
}
_324=dojo.event.browser.normalizedEventName(_324);
if((_324=="onkey")||(_324=="key")){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_326);
}
_324="onkeypress";
}
if(_324.substr(0,2)=="on"){
_324=_324.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_324,fp,_326);
}
};
this.addListener=function(node,_328,fp,_32a,_32b){
if(!node){
return;
}
if(!_32a){
var _32a=false;
}
_328=dojo.event.browser.normalizedEventName(_328);
if((_328=="onkey")||(_328=="key")){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_32a,_32b);
}
_328="onkeypress";
}
if(_328.substr(0,2)!="on"){
_328="on"+_328;
}
if(!_32b){
var _32c=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_32a){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_32c=fp;
}
if(node.addEventListener){
node.addEventListener(_328.substr(2),_32c,_32a);
return _32c;
}else{
if(typeof node[_328]=="function"){
var _32f=node[_328];
node[_328]=function(e){
_32f(e);
return _32c(e);
};
}else{
node[_328]=_32c;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_328]);
}
return _32c;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_332,_333){
if(typeof _332!="function"){
dojo.raise("listener not a function: "+_332);
}
dojo.event.browser.currentEvent.currentTarget=_333;
return _332.call(_333,dojo.event.browser.currentEvent);
};
this._stopPropagation=function(){
dojo.event.browser.currentEvent.cancelBubble=true;
};
this._preventDefault=function(){
dojo.event.browser.currentEvent.returnValue=false;
};
this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_CLEAR:12,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_HELP:47,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_NUMPAD_MULTIPLY:106,KEY_NUMPAD_PLUS:107,KEY_NUMPAD_ENTER:108,KEY_NUMPAD_MINUS:109,KEY_NUMPAD_PERIOD:110,KEY_NUMPAD_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_F13:124,KEY_F14:125,KEY_F15:126,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};
this.revKeys=[];
for(var key in this.keys){
this.revKeys[this.keys[key]]=key;
}
this.fixEvent=function(evt,_336){
if(!evt){
if(window["event"]){
evt=window.event;
}
}
if((evt["type"])&&(evt["type"].indexOf("key")==0)){
evt.keys=this.revKeys;
for(var key in this.keys){
evt[key]=this.keys[key];
}
if(evt["type"]=="keydown"&&dojo.render.html.ie){
switch(evt.keyCode){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_LEFT_WINDOW:
case evt.KEY_RIGHT_WINDOW:
case evt.KEY_SELECT:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
case evt.KEY_NUMPAD_0:
case evt.KEY_NUMPAD_1:
case evt.KEY_NUMPAD_2:
case evt.KEY_NUMPAD_3:
case evt.KEY_NUMPAD_4:
case evt.KEY_NUMPAD_5:
case evt.KEY_NUMPAD_6:
case evt.KEY_NUMPAD_7:
case evt.KEY_NUMPAD_8:
case evt.KEY_NUMPAD_9:
case evt.KEY_NUMPAD_PERIOD:
break;
case evt.KEY_NUMPAD_MULTIPLY:
case evt.KEY_NUMPAD_PLUS:
case evt.KEY_NUMPAD_ENTER:
case evt.KEY_NUMPAD_MINUS:
case evt.KEY_NUMPAD_DIVIDE:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
case evt.KEY_PAGE_UP:
case evt.KEY_PAGE_DOWN:
case evt.KEY_END:
case evt.KEY_HOME:
case evt.KEY_LEFT_ARROW:
case evt.KEY_UP_ARROW:
case evt.KEY_RIGHT_ARROW:
case evt.KEY_DOWN_ARROW:
case evt.KEY_INSERT:
case evt.KEY_DELETE:
case evt.KEY_F1:
case evt.KEY_F2:
case evt.KEY_F3:
case evt.KEY_F4:
case evt.KEY_F5:
case evt.KEY_F6:
case evt.KEY_F7:
case evt.KEY_F8:
case evt.KEY_F9:
case evt.KEY_F10:
case evt.KEY_F11:
case evt.KEY_F12:
case evt.KEY_F12:
case evt.KEY_F13:
case evt.KEY_F14:
case evt.KEY_F15:
case evt.KEY_CLEAR:
case evt.KEY_HELP:
evt.key=evt.keyCode;
break;
default:
if(evt.ctrlKey||evt.altKey){
var _338=evt.keyCode;
if(_338>=65&&_338<=90&&evt.shiftKey==false){
_338+=32;
}
if(_338>=1&&_338<=26&&evt.ctrlKey){
_338+=96;
}
evt.key=String.fromCharCode(_338);
}
}
}else{
if(evt["type"]=="keypress"){
if(dojo.render.html.opera){
if(evt.which==0){
evt.key=evt.keyCode;
}else{
if(evt.which>0){
switch(evt.which){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
evt.key=evt.which;
break;
default:
var _338=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_338+=32;
}
evt.key=String.fromCharCode(_338);
}
}
}
}else{
if(dojo.render.html.ie){
if(!evt.ctrlKey&&!evt.altKey&&evt.keyCode>=evt.KEY_SPACE){
evt.key=String.fromCharCode(evt.keyCode);
}
}else{
if(dojo.render.html.safari){
switch(evt.keyCode){
case 25:
evt.key=evt.KEY_TAB;
evt.shift=true;
break;
case 63232:
evt.key=evt.KEY_UP_ARROW;
break;
case 63233:
evt.key=evt.KEY_DOWN_ARROW;
break;
case 63234:
evt.key=evt.KEY_LEFT_ARROW;
break;
case 63235:
evt.key=evt.KEY_RIGHT_ARROW;
break;
case 63236:
evt.key=evt.KEY_F1;
break;
case 63237:
evt.key=evt.KEY_F2;
break;
case 63238:
evt.key=evt.KEY_F3;
break;
case 63239:
evt.key=evt.KEY_F4;
break;
case 63240:
evt.key=evt.KEY_F5;
break;
case 63241:
evt.key=evt.KEY_F6;
break;
case 63242:
evt.key=evt.KEY_F7;
break;
case 63243:
evt.key=evt.KEY_F8;
break;
case 63244:
evt.key=evt.KEY_F9;
break;
case 63245:
evt.key=evt.KEY_F10;
break;
case 63246:
evt.key=evt.KEY_F11;
break;
case 63247:
evt.key=evt.KEY_F12;
break;
case 63250:
evt.key=evt.KEY_PAUSE;
break;
case 63272:
evt.key=evt.KEY_DELETE;
break;
case 63273:
evt.key=evt.KEY_HOME;
break;
case 63275:
evt.key=evt.KEY_END;
break;
case 63276:
evt.key=evt.KEY_PAGE_UP;
break;
case 63277:
evt.key=evt.KEY_PAGE_DOWN;
break;
case 63302:
evt.key=evt.KEY_INSERT;
break;
case 63248:
case 63249:
case 63289:
break;
default:
evt.key=evt.charCode>=evt.KEY_SPACE?String.fromCharCode(evt.charCode):evt.keyCode;
}
}else{
evt.key=evt.charCode>0?String.fromCharCode(evt.charCode):evt.keyCode;
}
}
}
}
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=(_336?_336:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var doc=(evt.srcElement&&evt.srcElement.ownerDocument)?evt.srcElement.ownerDocument:document;
var _33a=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_33a.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_33a.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
this.currentEvent=evt;
evt.callListener=this.callListener;
evt.stopPropagation=this._stopPropagation;
evt.preventDefault=this._preventDefault;
}
return evt;
};
this.stopEvent=function(evt){
if(window.event){
evt.cancelBubble=true;
evt.returnValue=false;
}else{
evt.preventDefault();
evt.stopPropagation();
}
};
};
dojo.provide("dojo.event.*");
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _33c={};
var _33d=[];
this.getUniqueId=function(_33e){
var _33f;
do{
_33f=_33e+"_"+(_33c[_33e]!=undefined?++_33c[_33e]:_33c[_33e]=0);
}while(this.getWidgetById(_33f));
return _33f;
};
this.add=function(_340){
this.widgets.push(_340);
if(!_340.extraArgs["id"]){
_340.extraArgs["id"]=_340.extraArgs["ID"];
}
if(_340.widgetId==""){
if(_340["id"]){
_340.widgetId=_340["id"];
}else{
if(_340.extraArgs["id"]){
_340.widgetId=_340.extraArgs["id"];
}else{
_340.widgetId=this.getUniqueId(_340.ns+"_"+_340.widgetType);
}
}
}
if(this.widgetIds[_340.widgetId]){
dojo.debug("widget ID collision on ID: "+_340.widgetId);
}
this.widgetIds[_340.widgetId]=_340;
};
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(_342){
if(dojo.lang.isNumber(_342)){
var tw=this.widgets[_342].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_342,1);
}else{
this.removeById(_342);
}
};
this.removeById=function(id){
if(!dojo.lang.isString(id)){
id=id["widgetId"];
if(!id){
dojo.debug("invalid widget or id passed to removeById");
return;
}
}
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
if(dojo.lang.isString(id)){
return this.widgetIds[id];
}
return id;
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var _349=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_349(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_34e,_34f){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_34e(x)){
ret.push(x);
if(_34f){
return false;
}
}
return true;
});
return (_34f?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
node=dojo.byId(node);
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _355={};
var _356=["dojo.widget"];
for(var i=0;i<_356.length;i++){
_356[_356[i]]=true;
}
this.registerWidgetPackage=function(_358){
if(!_356[_358]){
_356[_358]=true;
_356.push(_358);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_356,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_35a,_35b,_35c,ns){
var impl=this.getImplementationName(_35a,ns);
if(impl){
var ret=_35b?new impl(_35b):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _360 in dojo.render){
if(dojo.render[_360]["capable"]===true){
var _361=dojo.render[_360].prefixes;
for(var i=0;i<_361.length;i++){
_33d.push(_361[i].toLowerCase());
}
}
}
}
var _363=function(_364,_365){
if(!_365){
return null;
}
for(var i=0,l=_33d.length,_368;i<=l;i++){
_368=(i<l?_365[_33d[i]]:_365);
if(!_368){
continue;
}
for(var name in _368){
if(name.toLowerCase()==_364){
return _368[name];
}
}
}
return null;
};
var _36a=function(_36b,_36c){
var _36d=dojo.evalObjPath(_36c,false);
return (_36d?_363(_36b,_36d):null);
};
this.getImplementationName=function(_36e,ns){
var _370=_36e.toLowerCase();
ns=ns||"dojo";
var imps=_355[ns]||(_355[ns]={});
var impl=imps[_370];
if(impl){
return impl;
}
if(!_33d.length){
buildPrefixCache();
}
var _373=dojo.ns.get(ns);
if(!_373){
dojo.ns.register(ns,ns+".widget");
_373=dojo.ns.get(ns);
}
if(_373){
_373.resolve(_36e);
}
impl=_36a(_370,_373.module);
if(impl){
return (imps[_370]=impl);
}
_373=dojo.ns.require(ns);
if((_373)&&(_373.resolver)){
_373.resolve(_36e);
impl=_36a(_370,_373.module);
if(impl){
return (imps[_370]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_36e+"\" in \""+_373.module+"\" registered to namespace \""+_373.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_356.length;i++){
impl=_36a(_370,_356[i]);
if(impl){
return (imps[_370]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_36e+"\" in \""+_373.module+"\" registered to namespace \""+_373.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _376=this.topWidgets[id];
if(_376.checkSize){
_376.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(_37b,_37c){
dw[(_37c||_37b)]=h(_37b);
};
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 _37e=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _37e[n];
}
return _37e;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_380,uri){
var loc=dojo.hostenv.getModuleSymbols(_380).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _385=new dojo.uri.Uri(arguments[i].toString());
var _386=new dojo.uri.Uri(uri.toString());
if((_385.path=="")&&(_385.scheme==null)&&(_385.authority==null)&&(_385.query==null)){
if(_385.fragment!=null){
_386.fragment=_385.fragment;
}
_385=_386;
}else{
if(_385.scheme==null){
_385.scheme=_386.scheme;
if(_385.authority==null){
_385.authority=_386.authority;
if(_385.path.charAt(0)!="/"){
var path=_386.path.substring(0,_386.path.lastIndexOf("/")+1)+_385.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;
}
}
}
}
_385.path=segs.join("/");
}
}
}
}
uri="";
if(_385.scheme!=null){
uri+=_385.scheme+":";
}
if(_385.authority!=null){
uri+="//"+_385.authority;
}
uri+=_385.path;
if(_385.query!=null){
uri+="?"+_385.query;
}
if(_385.fragment!=null){
uri+="#"+_385.fragment;
}
}
this.uri=uri.toString();
var _38a="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_38a));
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){
_38a="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_38a));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.uri.*");
dojo.provide("dojo.html.common");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.html.body=function(){
dojo.deprecated("dojo.html.body() moved to dojo.body()","0.5");
return dojo.body();
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=dojo.global().event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getViewport=function(){
var _38e=dojo.global();
var _38f=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_38f.documentElement.clientWidth;
h=_38e.innerHeight;
}else{
if(!dojo.render.html.opera&&_38e.innerWidth){
w=_38e.innerWidth;
h=_38e.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_38f,"documentElement.clientWidth")){
var w2=_38f.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_38f.documentElement.clientHeight;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
return {width:w,height:h};
};
dojo.html.getScroll=function(){
var _393=dojo.global();
var _394=dojo.doc();
var top=_393.pageYOffset||_394.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_393.pageXOffset||_394.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _399=dojo.doc();
var _39a=dojo.byId(node);
type=type.toLowerCase();
while((_39a)&&(_39a.nodeName.toLowerCase()!=type)){
if(_39a==(_399["body"]||_399["documentElement"])){
return null;
}
_39a=_39a.parentNode;
}
return _39a;
};
dojo.html.getAttribute=function(node,attr){
node=dojo.byId(node);
if((!node)||(!node.getAttribute)){
return null;
}
var ta=typeof attr=="string"?attr:new String(attr);
var v=node.getAttribute(ta.toUpperCase());
if((v)&&(typeof v=="string")&&(v!="")){
return v;
}
if(v&&v.value){
return v.value;
}
if((node.getAttributeNode)&&(node.getAttributeNode(ta))){
return (node.getAttributeNode(ta)).value;
}else{
if(node.getAttribute(ta)){
return node.getAttribute(ta);
}else{
if(node.getAttribute(ta.toLowerCase())){
return node.getAttribute(ta.toLowerCase());
}
}
}
return null;
};
dojo.html.hasAttribute=function(node,attr){
return dojo.html.getAttribute(dojo.byId(node),attr)?true:false;
};
dojo.html.getCursorPosition=function(e){
e=e||dojo.global().event;
var _3a2={x:0,y:0};
if(e.pageX||e.pageY){
_3a2.x=e.pageX;
_3a2.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_3a2.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_3a2.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _3a2;
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName.toLowerCase()==String(arguments[i]).toLowerCase()){
return String(arguments[i]).toLowerCase();
}
}
}
return "";
};
if(dojo.render.html.ie&&!dojo.render.html.ie70){
if(window.location.href.substr(0,6).toLowerCase()!="https:"){
(function(){
var _3a7=dojo.doc().createElement("script");
_3a7.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_3a7);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_3aa,_3ab,args,_3ad,_3ae){
dojo.deprecated("dojo.html."+_3aa,"replaced by dojo.html."+_3ab+"("+(_3ad?"node, {"+_3ad+": "+_3ad+"}":"")+")"+(_3ae?"."+_3ae:""),"0.5");
var _3af=[];
if(_3ad){
var _3b0={};
_3b0[_3ad]=args[1];
_3af.push(args[0]);
_3af.push(_3b0);
}else{
_3af=args;
}
var ret=dojo.html[_3ab].apply(dojo.html,args);
if(_3ae){
return ret[_3ae];
}else{
return ret;
}
};
dojo.html.getViewportWidth=function(){
return dojo.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width");
};
dojo.html.getViewportHeight=function(){
return dojo.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height");
};
dojo.html.getViewportSize=function(){
return dojo.html._callDeprecated("getViewportSize","getViewport",arguments);
};
dojo.html.getScrollTop=function(){
return dojo.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top");
};
dojo.html.getScrollLeft=function(){
return dojo.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left");
};
dojo.html.getScrollOffset=function(){
return dojo.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset");
};
dojo.provide("dojo.a11y");
dojo.a11y={imgPath:dojo.uri.dojoUri("src/widget/templates/images"),doAccessibleCheck:true,accessible:null,checkAccessible:function(){
if(this.accessible===null){
this.accessible=false;
if(this.doAccessibleCheck==true){
this.accessible=this.testAccessible();
}
}
return this.accessible;
},testAccessible:function(){
this.accessible=false;
if(dojo.render.html.ie||dojo.render.html.mozilla){
var div=document.createElement("div");
div.style.backgroundImage="url(\""+this.imgPath+"/tab_close.gif\")";
dojo.body().appendChild(div);
var _3b3=null;
if(window.getComputedStyle){
var _3b4=getComputedStyle(div,"");
_3b3=_3b4.getPropertyValue("background-image");
}else{
_3b3=div.currentStyle.backgroundImage;
}
var _3b5=false;
if(_3b3!=null&&(_3b3=="none"||_3b3=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_3b6){
this.doAccessibleCheck=_3b6;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.widget.Widget");
dojo.declare("dojo.widget.Widget",null,function(){
this.children=[];
this.extraArgs={};
},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){
return (this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase();
},toString:function(){
return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.disabled=false;
},disable:function(){
this.disabled=true;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _3b8=this.children[i];
if(_3b8.onResized){
_3b8.onResized();
}
}
},create:function(args,_3ba,_3bb,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_3ba,_3bb);
this.mixInProperties(args,_3ba,_3bb);
this.postMixInProperties(args,_3ba,_3bb);
dojo.widget.manager.add(this);
this.buildRendering(args,_3ba,_3bb);
this.initialize(args,_3ba,_3bb);
this.postInitialize(args,_3ba,_3bb);
this.postCreate(args,_3ba,_3bb);
return this;
},destroy:function(_3bd){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_3bd);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _3be;
var i=0;
while(this.children.length>i){
_3be=this.children[i];
if(_3be instanceof dojo.widget.Widget){
this.removeChild(_3be);
_3be.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_3c1){
var ret=[];
var _3c3=dojo.lang.isFunction(type);
if(!_3c3){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_3c3){
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(_3c1){
ret=ret.concat(this.children[x].getChildrenOfType(type,_3c1));
}
}
return ret;
},getDescendants:function(){
var _3c5=[];
var _3c6=[this];
var elem;
while((elem=_3c6.pop())){
_3c5.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_3c6.push(elem);
});
}
}
return _3c5;
},isFirstChild:function(){
return this===this.parent.children[0];
},isLastChild:function(){
return this===this.parent.children[this.parent.children.length-1];
},satisfyPropertySets:function(args){
return args;
},mixInProperties:function(args,frag){
if((args["fastMixIn"])||(frag["fastMixIn"])){
for(var x in args){
this[x]=args[x];
}
return;
}
var _3cd;
var _3ce=dojo.widget.lcArgsCache[this.widgetType];
if(_3ce==null){
_3ce={};
for(var y in this){
_3ce[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_3ce;
}
var _3d0={};
for(var x in args){
if(!this[x]){
var y=_3ce[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_3d0[x]){
continue;
}
_3d0[x]=true;
if((typeof this[x])!=(typeof _3cd)){
if(typeof args[x]!="string"){
this[x]=args[x];
}else{
if(dojo.lang.isString(this[x])){
this[x]=args[x];
}else{
if(dojo.lang.isNumber(this[x])){
this[x]=new Number(args[x]);
}else{
if(dojo.lang.isBoolean(this[x])){
this[x]=(args[x].toLowerCase()=="false")?false:true;
}else{
if(dojo.lang.isFunction(this[x])){
if(args[x].search(/[^\w\.]+/i)==-1){
this[x]=dojo.evalObjPath(args[x],false);
}else{
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.kwConnect({srcObj:this,srcFunc:x,adviceObj:this,adviceFunc:tn});
}
}else{
if(dojo.lang.isArray(this[x])){
this[x]=args[x].split(";");
}else{
if(this[x] instanceof Date){
this[x]=new Date(Number(args[x]));
}else{
if(typeof this[x]=="object"){
if(this[x] instanceof dojo.uri.Uri){
this[x]=dojo.uri.dojoUri(args[x]);
}else{
var _3d2=args[x].split(";");
for(var y=0;y<_3d2.length;y++){
var si=_3d2[y].indexOf(":");
if((si!=-1)&&(_3d2[y].length>si)){
this[x][_3d2[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_3d2[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_3d6){
},initialize:function(args,frag,_3d9){
return false;
},postInitialize:function(args,frag,_3dc){
return false;
},postCreate:function(args,frag,_3df){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_3e2){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_3e3){
},addChild:function(_3e4){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_3e5){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_3e5){
this.children.splice(x,1);
_3e5.parent=null;
break;
}
}
return _3e5;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.parent.children[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.parent.children,this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.parent.children.length-1){
return null;
}
if(idx<0){
return null;
}
return this.parent.children[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5");
};
dojo.widget.tags["dojo:propertyset"]=function(_3ea,_3eb,_3ec){
var _3ed=_3eb.parseProperties(_3ea["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_3ee,_3ef,_3f0){
var _3f1=_3ef.parseProperties(_3ee["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_3f4,_3f5,_3f6,_3f7){
dojo.a11y.setAccessibleMode();
var _3f8=type.split(":");
_3f8=(_3f8.length==2)?_3f8[1]:type;
var _3f9=_3f7||_3f4.parseProperties(frag[frag["ns"]+":"+_3f8]);
var _3fa=dojo.widget.manager.getImplementation(_3f8,null,null,frag["ns"]);
if(!_3fa){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_3fa.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_3f9["dojoinsertionindex"]=_3f6;
var ret=_3fa.create(_3f9,frag,_3f5,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_3fc,_3fd,_3fe,init,_400){
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(_403,_404,_405,init,_407){
var _408=_403.split(".");
var type=_408.pop();
var regx="\\.("+(_404?_404+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_403.search(new RegExp(regx));
_408=(r<0?_408.join("."):_403.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_408);
var pos=_408.indexOf(".");
var _40d=(pos>-1)?_408.substring(0,pos):_408;
_407=(_407)||{};
_407.widgetType=type;
if((!init)&&(_407["classConstructor"])){
init=_407.classConstructor;
delete _407.classConstructor;
}
dojo.declare(_403,_405,init,_407);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_40e){
this.propertySetsList=[];
this.fragment=_40e;
this.createComponents=function(frag,_410){
var _411=[];
var _412=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _413=dojo.widget.tags;
var tna=String(frag.tagName).split(";");
for(var x=0;x<tna.length;x++){
var ltn=tna[x].replace(/^\s+|\s+$/g,"").toLowerCase();
frag.tagName=ltn;
var ret;
if(_413[ltn]){
_412=true;
ret=_413[ltn](frag,this,_410,frag.index);
_411.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_410,frag.index);
if(ret){
_412=true;
_411.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_412){
_411=_411.concat(this.createSubComponents(frag,_410));
}
return _411;
};
this.createSubComponents=function(_418,_419){
var frag,_41b=[];
for(var item in _418){
frag=_418[item];
if(frag&&typeof frag=="object"&&(frag!=_418.nodeRef)&&(frag!=_418.tagName)&&(!dojo.dom.isNode(frag))){
_41b=_41b.concat(this.createComponents(frag,_419));
}
}
return _41b;
};
this.parsePropertySets=function(_41d){
return [];
};
this.parseProperties=function(_41e){
var _41f={};
for(var item in _41e){
if((_41e[item]==_41e.tagName)||(_41e[item]==_41e.nodeRef)){
}else{
var frag=_41e[item];
if(frag.tagName&&dojo.widget.tags[frag.tagName.toLowerCase()]){
}else{
if(frag[0]&&frag[0].value!=""&&frag[0].value!=null){
try{
if(item.toLowerCase()=="dataprovider"){
var _422=this;
this.getDataProvider(_422,frag[0].value);
_41f.dataProvider=this.dataProvider;
}
_41f[item]=frag[0].value;
var _423=this.parseProperties(frag);
for(var _424 in _423){
_41f[_424]=_423[_424];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _41f[item]!="boolean"){
_41f[item]=true;
}
break;
}
}
}
return _41f;
};
this.getDataProvider=function(_425,_426){
dojo.io.bind({url:_426,load:function(type,_428){
if(type=="load"){
_425.dataProvider=_428;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_429){
for(var x=0;x<this.propertySetsList.length;x++){
if(_429==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_42b){
var _42c=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _430=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_430==cpcc[0].value)){
_42c.push(cpl);
}
}
return _42c;
};
this.getPropertySets=function(_431){
var ppl="dojo:propertyproviderlist";
var _433=[];
var _434=_431.tagName;
if(_431[ppl]){
var _435=_431[ppl].value.split(" ");
for(var _436 in _435){
if((_436.indexOf("..")==-1)&&(_436.indexOf("://")==-1)){
var _437=this.getPropertySetById(_436);
if(_437!=""){
_433.push(_437);
}
}else{
}
}
}
return this.getPropertySetsByType(_434).concat(_433);
};
this.createComponentFromScript=function(_438,_439,_43a,ns){
_43a.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_439.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_43a,this,null,null,_43a)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_43a,this,null,null,_43a)];
};
};
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,_43f,_440,_441){
var _442=false;
var _443=(typeof name=="string");
if(_443){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _446=name.toLowerCase();
var _447=ns+":"+_446;
_442=(dojo.byId(name)&&!dojo.widget.tags[_447]);
}
if((arguments.length==1)&&(_442||!_443)){
var xp=new dojo.xml.Parse();
var tn=_442?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_44a,name,_44c,ns){
_44c[_447]={dojotype:[{value:_446}],nodeRef:_44a,fastMixIn:true};
_44c.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_44a,name,_44c,ns);
}
_43f=_43f||{};
var _44e=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_440){
_44e=true;
_440=tn;
if(h){
dojo.body().appendChild(_440);
}
}else{
if(_441){
dojo.dom.insertAtPosition(tn,_440,_441);
}else{
tn=_440;
}
}
var _450=fromScript(tn,name.toLowerCase(),_43f,ns);
if((!_450)||(!_450[0])||(typeof _450[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_44e&&_450[0].domNode.parentNode){
_450[0].domNode.parentNode.removeChild(_450[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _450[0];
};
dojo.provide("dojo.html.style");
dojo.html.getClass=function(node){
node=dojo.byId(node);
if(!node){
return "";
}
var cs="";
if(node.className){
cs=node.className;
}else{
if(dojo.html.hasAttribute(node,"class")){
cs=dojo.html.getAttribute(node,"class");
}
}
return cs.replace(/^\s+|\s+$/g,"");
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_456){
return (new RegExp("(^|\\s+)"+_456+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_458){
_458+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_458);
};
dojo.html.addClass=function(node,_45a){
if(dojo.html.hasClass(node,_45a)){
return false;
}
_45a=(dojo.html.getClass(node)+" "+_45a).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_45a);
};
dojo.html.setClass=function(node,_45c){
node=dojo.byId(node);
var cs=new String(_45c);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_45c);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_45f,_460){
try{
if(!_460){
var _461=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_45f+"(\\s+|$)"),"$1$2");
}else{
var _461=dojo.html.getClass(node).replace(_45f,"");
}
dojo.html.setClass(node,_461);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_463,_464){
dojo.html.removeClass(node,_464);
dojo.html.addClass(node,_463);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_465,_466,_467,_468,_469){
_469=false;
var _46a=dojo.doc();
_466=dojo.byId(_466)||_46a;
var _46b=_465.split(/\s+/g);
var _46c=[];
if(_468!=1&&_468!=2){
_468=0;
}
var _46d=new RegExp("(\\s|^)(("+_46b.join(")|(")+"))(\\s|$)");
var _46e=_46b.join(" ").length;
var _46f=[];
if(!_469&&_46a.evaluate){
var _470=".//"+(_467||"*")+"[contains(";
if(_468!=dojo.html.classMatchType.ContainsAny){
_470+="concat(' ',@class,' '), ' "+_46b.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_468==2){
_470+=" and string-length(@class)="+_46e+"]";
}else{
_470+="]";
}
}else{
_470+="concat(' ',@class,' '), ' "+_46b.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _471=_46a.evaluate(_470,_466,null,XPathResult.ANY_TYPE,null);
var _472=_471.iterateNext();
while(_472){
try{
_46f.push(_472);
_472=_471.iterateNext();
}
catch(e){
break;
}
}
return _46f;
}else{
if(!_467){
_467="*";
}
_46f=_466.getElementsByTagName(_467);
var node,i=0;
outer:
while(node=_46f[i++]){
var _475=dojo.html.getClasses(node);
if(_475.length==0){
continue outer;
}
var _476=0;
for(var j=0;j<_475.length;j++){
if(_46d.test(_475[j])){
if(_468==dojo.html.classMatchType.ContainsAny){
_46c.push(node);
continue outer;
}else{
_476++;
}
}else{
if(_468==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_476==_46b.length){
if((_468==dojo.html.classMatchType.IsOnly)&&(_476==_475.length)){
_46c.push(node);
}else{
if(_468==dojo.html.classMatchType.ContainsAll){
_46c.push(node);
}
}
}
}
return _46c;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_478){
var arr=_478.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
dojo.html.toSelectorCase=function(_47c){
return _47c.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.html.getComputedStyle=function(node,_47e,_47f){
node=dojo.byId(node);
var _47e=dojo.html.toSelectorCase(_47e);
var _480=dojo.html.toCamelCase(_47e);
if(!node||!node.style){
return _47f;
}else{
if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_47e);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_47e);
}else{
return _47f;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_480];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_47e);
}else{
return _47f;
}
};
dojo.html.getStyleProperty=function(node,_483){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_483)]:undefined);
};
dojo.html.getStyle=function(node,_485){
var _486=dojo.html.getStyleProperty(node,_485);
return (_486?_486:dojo.html.getComputedStyle(node,_485));
};
dojo.html.setStyle=function(node,_488,_489){
node=dojo.byId(node);
if(node&&node.style){
var _48a=dojo.html.toCamelCase(_488);
node.style[_48a]=_489;
}
};
dojo.html.setStyleText=function(_48b,text){
try{
_48b.style.cssText=text;
}
catch(e){
_48b.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_48d,_48e){
if(!_48e.style.cssText){
_48d.setAttribute("style",_48e.getAttribute("style"));
}else{
_48d.style.cssText=_48e.style.cssText;
}
dojo.html.addClass(_48d,dojo.html.getClass(_48e));
};
dojo.html.getUnitValue=function(node,_490,_491){
var s=dojo.html.getComputedStyle(node,_490);
if((!s)||((s=="auto")&&(_491))){
return {value:0,units:"px"};
}
var _493=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_493){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_493[1]),units:_493[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
dojo.html.getPixelValue=function(node,_495,_496){
var _497=dojo.html.getUnitValue(node,_495,_496);
if(isNaN(_497.value)){
return 0;
}
if((_497.value)&&(_497.units!="px")){
return NaN;
}
return _497.value;
};
dojo.html.setPositivePixelValue=function(node,_499,_49a){
if(isNaN(_49a)){
return false;
}
node.style[_499]=Math.max(0,_49a)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_49b,_49c,_49d){
if(!dojo.html.styleSheet){
if(document.createStyleSheet){
dojo.html.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
dojo.html.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(dojo.html.styleSheet.cssRules){
_49d=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_49d=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_49b+" { "+_49c+" }";
return dojo.html.styleSheet.insertRule(rule,_49d);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_49b,_49c,_49d);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_49f){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_49f){
_49f=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_49f);
}
}else{
if(document.styleSheets[0]){
if(!_49f){
_49f=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_49f);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_4a2,_4a3){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _4a4=dojo.hostenv.getText(URI,false,_4a3);
if(_4a4===null){
return;
}
_4a4=dojo.html.fixPathsInCssText(_4a4,URI);
if(_4a2){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_4a4)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _4a9=doc.getElementsByTagName("style");
for(var i=0;i<_4a9.length;i++){
if(_4a9[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _4aa=dojo.html.insertCssText(_4a4,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_4a4,"nodeRef":_4aa});
if(_4aa&&djConfig.isDebug){
_4aa.setAttribute("dbgHref",URI);
}
return _4aa;
};
dojo.html.insertCssText=function(_4ab,doc,URI){
if(!_4ab){
return;
}
if(!doc){
doc=document;
}
if(URI){
_4ab=dojo.html.fixPathsInCssText(_4ab,URI);
}
var _4ae=doc.createElement("style");
_4ae.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(_4ae);
}
if(_4ae.styleSheet){
var _4b0=function(){
try{
_4ae.styleSheet.cssText=_4ab;
}
catch(e){
dojo.debug(e);
}
};
if(_4ae.styleSheet.disabled){
setTimeout(_4b0,10);
}else{
_4b0();
}
}else{
var _4b1=doc.createTextNode(_4ab);
_4ae.appendChild(_4b1);
}
return _4ae;
};
dojo.html.fixPathsInCssText=function(_4b2,URI){
if(!_4b2||!URI){
return;
}
var _4b4,str="",url="",_4b7="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _4b8=new RegExp("url\\(\\s*("+_4b7+")\\s*\\)");
var _4b9=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_4b7+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _4ba=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_4b7+")['\"]");
while(_4b4=_4ba.exec(_4b2)){
url=_4b4[2].replace(regexTrim,"$2");
if(!_4b9.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_4b2.substring(0,_4b4.index)+"AlphaImageLoader("+_4b4[1]+"src='"+url+"'";
_4b2=_4b2.substr(_4b4.index+_4b4[0].length);
}
_4b2=str+_4b2;
str="";
}
while(_4b4=_4b8.exec(_4b2)){
url=_4b4[1].replace(regexTrim,"$2");
if(!_4b9.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_4b2.substring(0,_4b4.index)+"url("+url+")";
_4b2=_4b2.substr(_4b4.index+_4b4[0].length);
}
return str+_4b2;
};
dojo.html.setActiveStyleSheet=function(_4bb){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_4bb){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.getPreferredStyleSheet=function(){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.applyBrowserClass=function(node){
var drh=dojo.render.html;
var _4c7={dj_ie:drh.ie,dj_ie55:drh.ie55,dj_ie6:drh.ie60,dj_ie7:drh.ie70,dj_iequirks:drh.ie&&drh.quirks,dj_opera:drh.opera,dj_opera8:drh.opera&&(Math.floor(dojo.render.version)==8),dj_opera9:drh.opera&&(Math.floor(dojo.render.version)==9),dj_khtml:drh.khtml,dj_safari:drh.safari,dj_gecko:drh.mozilla};
for(var p in _4c7){
if(_4c7[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.fillFromTemplateCache=function(obj,_4ca,_4cb,_4cc){
var _4cd=_4ca||obj.templatePath;
var _4ce=dojo.widget._templateCache;
if(!_4cd&&!obj["widgetType"]){
do{
var _4cf="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_4ce[_4cf]);
obj.widgetType=_4cf;
}
var wt=_4cd?_4cd.toString():obj.widgetType;
var ts=_4ce[wt];
if(!ts){
_4ce[wt]={"string":null,"node":null};
if(_4cc){
ts={};
}else{
ts=_4ce[wt];
}
}
if((!obj.templateString)&&(!_4cc)){
obj.templateString=_4cb||ts["string"];
}
if((!obj.templateNode)&&(!_4cc)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_4cd)){
var _4d2=dojo.hostenv.getText(_4cd);
if(_4d2){
_4d2=_4d2.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _4d3=_4d2.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_4d3){
_4d2=_4d3[1];
}
}else{
_4d2="";
}
obj.templateString=_4d2;
if(!_4cc){
_4ce[wt]["string"]=_4d2;
}
}
if((!ts["string"])&&(!_4cc)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_4d7){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_4d7);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_4d7);
}
},getAttr:function(node,ns,attr){
if(dojo.render.html.ie){
return node.getAttribute(this[ns].alias+":"+attr);
}else{
return node.getAttributeNS(this[ns]["namespace"],attr);
}
},removeAttr:function(node,ns,attr){
var _4de=true;
if(dojo.render.html.ie){
_4de=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _4de;
}};
dojo.widget.attachTemplateNodes=function(_4df,_4e0,_4e1){
var _4e2=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_4df){
_4df=_4e0.domNode;
}
if(_4df.nodeType!=_4e2){
return;
}
var _4e4=_4df.all||_4df.getElementsByTagName("*");
var _4e5=_4e0;
for(var x=-1;x<_4e4.length;x++){
var _4e7=(x==-1)?_4df:_4e4[x];
var _4e8=[];
if(!_4e0.widgetsInTemplate||!_4e7.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _4ea=_4e7.getAttribute(this.attachProperties[y]);
if(_4ea){
_4e8=_4ea.split(";");
for(var z=0;z<_4e8.length;z++){
if(dojo.lang.isArray(_4e0[_4e8[z]])){
_4e0[_4e8[z]].push(_4e7);
}else{
_4e0[_4e8[z]]=_4e7;
}
}
break;
}
}
var _4ec=_4e7.getAttribute(this.eventAttachProperty);
if(_4ec){
var evts=_4ec.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _4ee=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _4f0=tevt.split(":");
tevt=trim(_4f0[0]);
_4ee=trim(_4f0[1]);
}
if(!_4ee){
_4ee=tevt;
}
var tf=function(){
var ntf=new String(_4ee);
return function(evt){
if(_4e5[ntf]){
_4e5[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_4e7,tevt,tf,false,true);
}
}
for(var y=0;y<_4e1.length;y++){
var _4f4=_4e7.getAttribute(_4e1[y]);
if((_4f4)&&(_4f4.length)){
var _4ee=null;
var _4f5=_4e1[y].substr(4);
_4ee=trim(_4f4);
var _4f6=[_4ee];
if(_4ee.indexOf(";")>=0){
_4f6=dojo.lang.map(_4ee.split(";"),trim);
}
for(var z=0;z<_4f6.length;z++){
if(!_4f6[z].length){
continue;
}
var tf=function(){
var ntf=new String(_4f6[z]);
return function(evt){
if(_4e5[ntf]){
_4e5[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_4e7,_4f5,tf,false,true);
}
}
}
}
var _4f9=_4e7.getAttribute(this.templateProperty);
if(_4f9){
_4e0[_4f9]=_4e7;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_4e7.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_4e7,wai.name,"role",val);
}else{
var _4fd=val.split("-");
dojo.widget.wai.setAttr(_4e7,wai.name,_4fd[0],_4fd[1]);
}
}
},this);
var _4fe=_4e7.getAttribute(this.onBuildProperty);
if(_4fe){
eval("var node = baseNode; var widget = targetObj; "+_4fe);
}
}
};
dojo.widget.getDojoEventsFromStr=function(str){
var re=/(dojoOn([a-z]+)(\s?))=/gi;
var evts=str?str.match(re)||[]:[];
var ret=[];
var lem={};
for(var x=0;x<evts.length;x++){
if(evts[x].length<1){
continue;
}
var cm=evts[x].replace(/\s/,"");
cm=(cm.slice(0,cm.length-1));
if(!lem[cm]){
lem[cm]=true;
ret.push(cm);
}
}
return ret;
};
dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,function(){
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
},{templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,widgetsInTemplate:false,addChild:function(_506,_507,pos,ref,_50a){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_50a==undefined){
_50a=this.children.length;
}
this.addWidgetAsDirectChild(_506,_507,pos,ref,_50a);
this.registerChild(_506,_50a);
}
return _506;
},addWidgetAsDirectChild:function(_50b,_50c,pos,ref,_50f){
if((!this.containerNode)&&(!_50c)){
this.containerNode=this.domNode;
}
var cn=(_50c)?_50c:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_50f){
_50f=0;
}
_50b.domNode.setAttribute("dojoinsertionindex",_50f);
if(!ref){
cn.appendChild(_50b.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_50b.domNode,ref.parentNode,_50f);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_50b.domNode);
}else{
dojo.dom.insertAtPosition(_50b.domNode,cn,pos);
}
}
}
},registerChild:function(_511,_512){
_511.dojoInsertionIndex=_512;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_512){
idx=i;
}
}
this.children.splice(idx+1,0,_511);
_511.parent=this;
_511.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_511.widgetId];
},removeChild:function(_515){
dojo.dom.removeNode(_515.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_515);
},getFragNodeRef:function(frag){
if(!frag){
return null;
}
if(!frag[this.getNamespacedType()]){
dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return frag[this.getNamespacedType()]["nodeRef"];
},postInitialize:function(args,frag,_519){
var _51a=this.getFragNodeRef(frag);
if(_519&&(_519.snarfChildDomOutput||!_51a)){
_519.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_51a);
}else{
if(_51a){
if(this.domNode&&(this.domNode!==_51a)){
this._sourceNodeRef=dojo.dom.replaceNode(_51a,this.domNode);
}
}
}
if(_519){
_519.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _51b=new dojo.xml.Parse();
var _51c;
var _51d=this.domNode.getElementsByTagName("*");
for(var i=0;i<_51d.length;i++){
if(_51d[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_51c=_51d[i];
}
if(_51d[i].getAttribute("dojoType")){
_51d[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_51c){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_51c);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _520=_51b.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_520,this);
var _521=[];
var _522=[this];
var w;
while((w=_522.pop())){
for(var i=0;i<w.children.length;i++){
var _524=w.children[i];
if(_524._processedSubWidgets||!_524.extraArgs["issubwidget"]){
continue;
}
_521.push(_524);
if(_524.isContainer){
_522.push(_524);
}
}
}
for(var i=0;i<_521.length;i++){
var _525=_521[i];
if(_525._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_525._processedSubWidgets=true;
if(_525.extraArgs["dojoattachevent"]){
var evts=_525.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _528=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _52a=tevt.split(":");
tevt=dojo.string.trim(_52a[0]);
_528=dojo.string.trim(_52a[1]);
}
if(!_528){
_528=tevt;
}
if(dojo.lang.isFunction(_525[tevt])){
dojo.event.kwConnect({srcObj:_525,srcFunc:tevt,targetObj:this,targetFunc:_528});
}else{
alert(tevt+" is not a function in widget "+_525);
}
}
}
if(_525.extraArgs["dojoattachpoint"]){
this[_525.extraArgs["dojoattachpoint"]]=_525;
}
}
}
if(this.isContainer&&!frag["dojoDontFollow"]){
dojo.widget.getParser().createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
var _52e=args["templateCssPath"]||this.templateCssPath;
if(_52e&&!dojo.widget._cssFiles[_52e.toString()]){
if((!this.templateCssString)&&(_52e)){
this.templateCssString=dojo.hostenv.getText(_52e);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_52e.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_52e);
dojo.widget._cssStrings[this.templateCssString]=true;
}
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _531=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_531);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_531)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _533=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_533=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_533){
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<_533.length;i++){
var key=_533[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 _53a;
if((kval)||(dojo.lang.isString(kval))){
_53a=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_53a.indexOf("\"")>-1){
_53a=_53a.replace("\"","&quot;");
}
tstr=tstr.replace(_533[i],_53a);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_531){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_533)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_533){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes();
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_53c,_53d){
if(!_53c){
_53c=this.domNode;
}
if(!_53d){
_53d=this;
}
return dojo.widget.attachTemplateNodes(_53c,_53d,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
dojo.dom.destroyNode(this.domNode);
delete this.domNode;
}
catch(e){
}
if(this._sourceNodeRef){
try{
dojo.dom.destroyNode(this._sourceNodeRef);
}
catch(e){
}
}
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_53f,_540){
node=dojo.byId(node);
_540(node,!_53f(node));
return _53f(node);
};
dojo.html.show=function(node){
node=dojo.byId(node);
if(dojo.html.getStyleProperty(node,"display")=="none"){
dojo.html.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
dojo.html.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=dojo.html.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
dojo.html.setStyle(node,"display","none");
};
dojo.html.setShowing=function(node,_545){
dojo.html[(_545?"show":"hide")](node);
};
dojo.html.isShowing=function(node){
return (dojo.html.getStyleProperty(node,"display")!="none");
};
dojo.html.toggleShowing=function(node){
return dojo.html._toggle(node,dojo.html.isShowing,dojo.html.setShowing);
};
dojo.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
dojo.html.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in dojo.html.displayMap?dojo.html.displayMap[tag]:"block");
}
};
dojo.html.setDisplay=function(node,_54b){
dojo.html.setStyle(node,"display",((_54b instanceof String||typeof _54b=="string")?_54b:(_54b?dojo.html.suggestDisplayByTagName(node):"none")));
};
dojo.html.isDisplayed=function(node){
return (dojo.html.getComputedStyle(node,"display")!="none");
};
dojo.html.toggleDisplay=function(node){
return dojo.html._toggle(node,dojo.html.isDisplayed,dojo.html.setDisplay);
};
dojo.html.setVisibility=function(node,_54f){
dojo.html.setStyle(node,"visibility",((_54f instanceof String||typeof _54f=="string")?_54f:(_54f?"visible":"hidden")));
};
dojo.html.isVisible=function(node){
return (dojo.html.getComputedStyle(node,"visibility")!="hidden");
};
dojo.html.toggleVisibility=function(node){
return dojo.html._toggle(node,dojo.html.isVisible,dojo.html.setVisibility);
};
dojo.html.setOpacity=function(node,_553,_554){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_554){
if(_553>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_553=0.999999;
}
}else{
if(_553<0){
_553=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="+_553*100+")";
}
}
node.style.filter="Alpha(Opacity="+_553*100+")";
}else{
if(h.moz){
node.style.opacity=_553;
node.style.MozOpacity=_553;
}else{
if(h.safari){
node.style.opacity=_553;
node.style.KhtmlOpacity=_553;
}else{
node.style.opacity=_553;
}
}
}
};
dojo.html.clearOpacity=function(node){
node=dojo.byId(node);
var ns=node.style;
var h=dojo.render.html;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
dojo.html.getOpacity=function(node){
node=dojo.byId(node);
var h=dojo.render.html;
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _560=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_560+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _560;
};
dojo.html.setStyleAttributes=function(node,_563){
node=dojo.byId(node);
var _564=_563.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_564.length;i++){
var _566=_564[i].split(":");
var name=_566[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _568=_566[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_568);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_568});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_568});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_568});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_568});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_568;
}
}
};
dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_56a,_56b){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_56b){
_56b=bs.CONTENT_BOX;
}
var _56e=2;
var _56f;
switch(_56b){
case bs.MARGIN_BOX:
_56f=3;
break;
case bs.BORDER_BOX:
_56f=2;
break;
case bs.PADDING_BOX:
default:
_56f=1;
break;
case bs.CONTENT_BOX:
_56f=0;
break;
}
var h=dojo.render.html;
var db=document["body"]||document["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
_56e=1;
try{
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop");
}
catch(e){
}
}else{
if(node["offsetParent"]){
var _573;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_573=db;
}else{
_573=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(dojo.render.html.opera){
nd=db;
}
ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft");
ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop");
}
var _575=node;
do{
var n=_575["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_575["offsetTop"];
ret.y+=isNaN(m)?0:m;
_575=_575.offsetParent;
}while((_575!=_573)&&(_575!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_56a){
var _578=dojo.html.getScroll();
ret.y+=_578.top;
ret.x+=_578.left;
}
var _579=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_56e>_56f){
for(var i=_56f;i<_56e;++i){
ret.y+=_579[i](node,"top");
ret.x+=_579[i](node,"left");
}
}else{
if(_56e<_56f){
for(var i=_56f;i>_56e;--i){
ret.y-=_579[i-1](node,"top");
ret.x-=_579[i-1](node,"left");
}
}
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.isPositionAbsolute=function(node){
return (dojo.html.getComputedStyle(node,"position")=="absolute");
};
dojo.html._sumPixelValues=function(node,_57d,_57e){
var _57f=0;
for(var x=0;x<_57d.length;x++){
_57f+=dojo.html.getPixelValue(node,_57d[x],_57e);
}
return _57f;
};
dojo.html.getMargin=function(node){
return {width:dojo.html._sumPixelValues(node,["margin-left","margin-right"],(dojo.html.getComputedStyle(node,"position")=="absolute")),height:dojo.html._sumPixelValues(node,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(node,"position")=="absolute"))};
};
dojo.html.getBorder=function(node){
return {width:dojo.html.getBorderExtent(node,"left")+dojo.html.getBorderExtent(node,"right"),height:dojo.html.getBorderExtent(node,"top")+dojo.html.getBorderExtent(node,"bottom")};
};
dojo.html.getBorderExtent=function(node,side){
return (dojo.html.getStyle(node,"border-"+side+"-style")=="none"?0:dojo.html.getPixelValue(node,"border-"+side+"-width"));
};
dojo.html.getMarginExtent=function(node,side){
return dojo.html._sumPixelValues(node,["margin-"+side],dojo.html.isPositionAbsolute(node));
};
dojo.html.getPaddingExtent=function(node,side){
return dojo.html._sumPixelValues(node,["padding-"+side],true);
};
dojo.html.getPadding=function(node){
return {width:dojo.html._sumPixelValues(node,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(node,["padding-top","padding-bottom"],true)};
};
dojo.html.getPadBorder=function(node){
var pad=dojo.html.getPadding(node);
var _58c=dojo.html.getBorder(node);
return {width:pad.width+_58c.width,height:pad.height+_58c.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if(((h.ie)||(h.opera))&&node.nodeName!="IMG"){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _591=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_591){
_591=dojo.html.getStyle(node,"box-sizing");
}
return (_591?_591:bs.CONTENT_BOX);
}
};
dojo.html.isBorderBox=function(node){
return (dojo.html.getBoxSizing(node)==dojo.html.boxSizing.BORDER_BOX);
};
dojo.html.getBorderBox=function(node){
node=dojo.byId(node);
return {width:node.offsetWidth,height:node.offsetHeight};
};
dojo.html.getPaddingBox=function(node){
var box=dojo.html.getBorderBox(node);
var _596=dojo.html.getBorder(node);
return {width:box.width-_596.width,height:box.height-_596.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _598=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_598.width,height:node.offsetHeight-_598.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _59b=0;
var _59c=0;
var isbb=dojo.html.isBorderBox(node);
var _59e=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_59b=args.width+_59e.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_59b);
}
if(typeof args.height!="undefined"){
_59c=args.height+_59e.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_59c);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _5a1=dojo.html.getBorderBox(node);
var _5a2=dojo.html.getMargin(node);
return {width:_5a1.width+_5a2.width,height:_5a1.height+_5a2.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _5a5=0;
var _5a6=0;
var isbb=dojo.html.isBorderBox(node);
var _5a8=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _5a9=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_5a5=args.width-_5a8.width;
_5a5-=_5a9.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_5a5);
}
if(typeof args.height!="undefined"){
_5a6=args.height-_5a8.height;
_5a6-=_5a9.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_5a6);
}
return ret;
};
dojo.html.getElementBox=function(node,type){
var bs=dojo.html.boxSizing;
switch(type){
case bs.MARGIN_BOX:
return dojo.html.getMarginBox(node);
case bs.BORDER_BOX:
return dojo.html.getBorderBox(node);
case bs.PADDING_BOX:
return dojo.html.getPaddingBox(node);
case bs.CONTENT_BOX:
default:
return dojo.html.getContentBox(node);
}
};
dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_5ae,_5af,_5b0){
if(_5ae instanceof Array||typeof _5ae=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_5ae.length<4){
_5ae.push(0);
}
while(_5ae.length>4){
_5ae.pop();
}
var ret={left:_5ae[0],top:_5ae[1],width:_5ae[2],height:_5ae[3]};
}else{
if(!_5ae.nodeType&&!(_5ae instanceof String||typeof _5ae=="string")&&("width" in _5ae||"height" in _5ae||"left" in _5ae||"x" in _5ae||"top" in _5ae||"y" in _5ae)){
var ret={left:_5ae.left||_5ae.x||0,top:_5ae.top||_5ae.y||0,width:_5ae.width||0,height:_5ae.height||0};
}else{
var node=dojo.byId(_5ae);
var pos=dojo.html.abs(node,_5af,_5b0);
var _5b4=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_5b4.width,height:_5b4.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_5b6){
return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width");
};
dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){
return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height");
};
dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){
return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width");
};
dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){
return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height");
};
dojo.html.getTotalOffset=function(node,type,_5b9){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_5bb){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_5bd){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_5bf){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_5c1){
return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top");
};
dojo.html.getMarginWidth=function(node){
return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width");
};
dojo.html.getMarginHeight=function(node){
return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height");
};
dojo.html.getBorderWidth=function(node){
return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width");
};
dojo.html.getBorderHeight=function(node){
return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height");
};
dojo.html.getPaddingWidth=function(node){
return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width");
};
dojo.html.getPaddingHeight=function(node){
return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height");
};
dojo.html.getPadBorderWidth=function(node){
return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width");
};
dojo.html.getPadBorderHeight=function(node){
return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height");
};
dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){
return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width");
};
dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){
return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height");
};
dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){
return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width");
};
dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){
return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height");
};
dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(node,_5cb){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_5cd){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_5ce){
return dojo.html.getDocumentWindow(_5ce.ownerDocument);
};
dojo.html.getDocumentWindow=function(doc){
if(dojo.render.html.safari&&!doc._parentWindow){
var fix=function(win){
if(win.document){
win.document._parentWindow=win;
for(var i=0;i<win.frames.length;i++){
fix(win.frames[i]);
}
}
};
fix(window.top);
}
if(dojo.render.html.ie&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _5d6=dojo.html.getCursorPosition(e);
with(dojo.html){
var _5d7=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _5d9=_5d7.x+(bb.width/2);
var _5da=_5d7.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_5d6.x<_5d9?WEST:EAST)|(_5d6.y<_5da?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.overElement=function(_5db,e){
_5db=dojo.byId(_5db);
var _5dd=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_5db);
var _5df=dojo.html.getAbsolutePosition(_5db,true,dojo.html.boxSizing.BORDER_BOX);
var top=_5df.y;
var _5e1=top+bb.height;
var left=_5df.x;
var _5e3=left+bb.width;
return (_5dd.x>=left&&_5dd.x<=_5e3&&_5dd.y>=top&&_5dd.y<=_5e1);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _5e5="";
if(node==null){
return _5e5;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _5e7="unknown";
try{
_5e7=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_5e7){
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":
_5e5+="\n";
_5e5+=dojo.html.renderedTextContent(node.childNodes[i]);
_5e5+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_5e5+="\n";
}else{
_5e5+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _5e9="unknown";
try{
_5e9=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_5e9){
case "capitalize":
var _5ea=text.split(" ");
for(var i=0;i<_5ea.length;i++){
_5ea[i]=_5ea[i].charAt(0).toUpperCase()+_5ea[i].substring(1);
}
text=_5ea.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_5e9){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_5e5)){
text.replace(/^\s/,"");
}
break;
}
_5e5+=text;
break;
default:
break;
}
}
return _5e5;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=txt.replace(/^\s+|\s+$/g,"");
}
var tn=dojo.doc().createElement("div");
tn.style.visibility="hidden";
dojo.body().appendChild(tn);
var _5ee="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_5ee="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_5ee="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_5ee="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _5ef=null;
switch(_5ee){
case "cell":
_5ef=tn.getElementsByTagName("tr")[0];
break;
case "row":
_5ef=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_5ef=tn.getElementsByTagName("table")[0];
break;
default:
_5ef=tn;
break;
}
var _5f0=[];
for(var x=0;x<_5ef.childNodes.length;x++){
_5f0.push(_5ef.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _5f0;
};
dojo.html.placeOnScreen=function(node,_5f3,_5f4,_5f5,_5f6,_5f7,_5f8){
if(_5f3 instanceof Array||typeof _5f3=="array"){
_5f8=_5f7;
_5f7=_5f6;
_5f6=_5f5;
_5f5=_5f4;
_5f4=_5f3[1];
_5f3=_5f3[0];
}
if(_5f7 instanceof String||typeof _5f7=="string"){
_5f7=_5f7.split(",");
}
if(!isNaN(_5f5)){
_5f5=[Number(_5f5),Number(_5f5)];
}else{
if(!(_5f5 instanceof Array||typeof _5f5=="array")){
_5f5=[0,0];
}
}
var _5f9=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _5fb=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_5fb;
if(!(_5f7 instanceof Array||typeof _5f7=="array")){
_5f7=["TL"];
}
var _5ff,_600,_601=Infinity,_602;
for(var _603=0;_603<_5f7.length;++_603){
var _604=_5f7[_603];
var _605=true;
var tryX=_5f3-(_604.charAt(1)=="L"?0:w)+_5f5[0]*(_604.charAt(1)=="L"?1:-1);
var tryY=_5f4-(_604.charAt(0)=="T"?0:h)+_5f5[1]*(_604.charAt(0)=="T"?1:-1);
if(_5f6){
tryX-=_5f9.x;
tryY-=_5f9.y;
}
if(tryX<0){
tryX=0;
_605=false;
}
if(tryY<0){
tryY=0;
_605=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_605=false;
}else{
x=tryX;
}
x=Math.max(_5f5[0],x)+_5f9.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_605=false;
}else{
y=tryY;
}
y=Math.max(_5f5[1],y)+_5f9.y;
if(_605){
_5ff=x;
_600=y;
_601=0;
_602=_604;
break;
}else{
var dist=Math.pow(x-tryX-_5f9.x,2)+Math.pow(y-tryY-_5f9.y,2);
if(_601>dist){
_601=dist;
_5ff=x;
_600=y;
_602=_604;
}
}
}
if(!_5f8){
node.style.left=_5ff+"px";
node.style.top=_600+"px";
}
return {left:_5ff,top:_600,x:_5ff,y:_600,dist:_601,corner:_602};
};
dojo.html.placeOnScreenPoint=function(node,_60c,_60d,_60e,_60f){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_60c,_60d,_60e,_60f,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_611,_612,_613,_614,_615){
var best,_617=Infinity;
_611=dojo.byId(_611);
var _618=_611.style.display;
_611.style.display="";
var mb=dojo.html.getElementBox(_611,_613);
var _61a=mb.width;
var _61b=mb.height;
var _61c=dojo.html.getAbsolutePosition(_611,true,_613);
_611.style.display=_618;
for(var _61d in _614){
var pos,_61f,_620;
var _621=_614[_61d];
_61f=_61c.x+(_61d.charAt(1)=="L"?0:_61a);
_620=_61c.y+(_61d.charAt(0)=="T"?0:_61b);
pos=dojo.html.placeOnScreen(node,_61f,_620,_612,true,_621,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_617>pos.dist){
_617=pos.dist;
best=pos;
}
}
}
if(!_615){
node.style.left=best.left+"px";
node.style.top=best.top+"px";
}
return best;
};
dojo.html.scrollIntoView=function(node){
if(!node){
return;
}
if(dojo.render.html.ie){
if(dojo.html.getBorderBox(node.parentNode).height<=node.parentNode.scrollHeight){
node.scrollIntoView(false);
}
}else{
if(dojo.render.html.mozilla){
node.scrollIntoView(false);
}else{
var _623=node.parentNode;
var _624=_623.scrollTop+dojo.html.getBorderBox(_623).height;
var _625=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_624<_625){
_623.scrollTop+=(_625-_624);
}else{
if(_623.scrollTop>node.offsetTop){
_623.scrollTop-=(_623.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.gfx.color");
dojo.gfx.color.Color=function(r,g,b,a){
if(dojo.lang.isArray(r)){
this.r=r[0];
this.g=r[1];
this.b=r[2];
this.a=r[3]||1;
}else{
if(dojo.lang.isString(r)){
var rgb=dojo.gfx.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.gfx.color.Color){
this.r=r.r;
this.b=r.b;
this.g=r.g;
this.a=r.a;
}else{
this.r=r;
this.g=g;
this.b=b;
this.a=a;
}
}
}
};
dojo.gfx.color.Color.fromArray=function(arr){
return new dojo.gfx.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.extend(dojo.gfx.color.Color,{toRgb:function(_62c){
if(_62c){
return this.toRgba();
}else{
return [this.r,this.g,this.b];
}
},toRgba:function(){
return [this.r,this.g,this.b,this.a];
},toHex:function(){
return dojo.gfx.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_62d,_62e){
var rgb=null;
if(dojo.lang.isArray(_62d)){
rgb=_62d;
}else{
if(_62d instanceof dojo.gfx.color.Color){
rgb=_62d.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_62d).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_62e);
}});
dojo.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.gfx.color.blend=function(a,b,_632){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_632);
}
if(!_632){
_632=0;
}
_632=Math.min(Math.max(-1,_632),1);
_632=((_632+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_632));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_637){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_637));
};
dojo.gfx.color.extractRGB=function(_638){
var hex="0123456789abcdef";
_638=_638.toLowerCase();
if(_638.indexOf("rgb")==0){
var _63a=_638.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_63a.splice(1,3);
return ret;
}else{
var _63c=dojo.gfx.color.hex2rgb(_638);
if(_63c){
return _63c;
}else{
return dojo.gfx.color.named[_638]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _63e="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_63e+"]","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]=_63e.indexOf(rgb[i].charAt(0))*16+_63e.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.gfx.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.lfx.Animation");
dojo.lfx.Line=function(_647,end){
this.start=_647;
this.end=end;
if(dojo.lang.isArray(_647)){
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-_647;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeDefault=function(n){
if(dojo.render.html.khtml){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
}else{
return (0.5+((Math.sin((n+1.5)*Math.PI))/2));
}
};
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:25,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(evt,_656,_657){
if(!_657){
_657=_656;
_656=this;
}
_657=dojo.lang.hitch(_656,_657);
var _658=this[evt]||function(){
};
this[evt]=function(){
var ret=_658.apply(this,arguments);
_657.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_65c){
this.repeatCount=_65c;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_65d,_65e,_65f,_660,_661,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_65d)||(!_65d&&_65e.getValue)){
rate=_661;
_661=_660;
_660=_65f;
_65f=_65e;
_65e=_65d;
_65d=null;
}else{
if(_65d.getValue||dojo.lang.isArray(_65d)){
rate=_660;
_661=_65f;
_660=_65e;
_65f=_65d;
_65e=null;
_65d=null;
}
}
if(dojo.lang.isArray(_65f)){
this.curve=new dojo.lfx.Line(_65f[0],_65f[1]);
}else{
this.curve=_65f;
}
if(_65e!=null&&_65e>0){
this.duration=_65e;
}
if(_661){
this.repeatCount=_661;
}
if(rate){
this.rate=rate;
}
if(_65d){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_65d[item]){
this.connect(item,_65d[item]);
}
},this);
}
if(_660&&dojo.lang.isFunction(_660)){
this.easing=_660;
}
};
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(_664,_665){
if(_665){
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(_664>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_665);
}),_664);
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 _667=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_667]);
this.fire("onBegin",[_667]);
}
this.fire("handler",["play",_667]);
this.fire("onPlay",[_667]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _668=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_668]);
this.fire("onPause",[_668]);
return this;
},gotoPercent:function(pct,_66a){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_66a){
this.play();
}
return this;
},stop:function(_66b){
clearTimeout(this._timer);
var step=this._percent/100;
if(_66b){
step=1;
}
var _66d=this.curve.getValue(step);
this.fire("handler",["stop",_66d]);
this.fire("onStop",[_66d]);
this._active=false;
this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
return this;
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if((this.easing)&&(dojo.lang.isFunction(this.easing))){
step=this.easing(step);
}
var _670=this.curve.getValue(step);
this.fire("handler",["animate",_670]);
this.fire("onAnimate",[_670]);
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(_671){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _672=arguments;
if(_672.length==1&&(dojo.lang.isArray(_672[0])||dojo.lang.isArrayLike(_672[0]))){
_672=_672[0];
}
dojo.lang.forEach(_672,function(anim){
this._anims.push(anim);
anim.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"));
},this);
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_674,_675){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_674>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_675);
}),_674);
return this;
}
if(_675||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_675);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_676){
this.fire("onStop");
this._animsCall("stop",_676);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_677){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _67a=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_677](args);
},_67a);
return this;
}});
dojo.lfx.Chain=function(_67c){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _67d=arguments;
if(_67d.length==1&&(dojo.lang.isArray(_67d[0])||dojo.lang.isArrayLike(_67d[0]))){
_67d=_67d[0];
}
var _67e=this;
dojo.lang.forEach(_67d,function(anim,i,_681){
this._anims.push(anim);
if(i<_681.length-1){
anim.connect("onEnd",dojo.lang.hitch(this,"_playNext"));
}else{
anim.connect("onEnd",dojo.lang.hitch(this,function(){
this.fire("onEnd");
}));
}
},this);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_682,_683){
if(!this._anims.length){
return this;
}
if(_683||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _684=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_682>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_683);
}),_682);
return this;
}
if(_684){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_684.play(null,_683);
}
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 _685=this._anims[this._currAnim];
if(_685){
if(!_685._active||_685._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _686=this._anims[this._currAnim];
if(_686){
_686.stop();
this.fire("onStop",[this._currAnim]);
}
return _686;
},_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(_687){
var _688=arguments;
if(dojo.lang.isArray(arguments[0])){
_688=arguments[0];
}
if(_688.length==1){
return _688[0];
}
return new dojo.lfx.Combine(_688);
};
dojo.lfx.chain=function(_689){
var _68a=arguments;
if(dojo.lang.isArray(arguments[0])){
_68a=arguments[0];
}
if(_68a.length==1){
return _68a[0];
}
return new dojo.lfx.Chain(_68a);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _68c;
do{
_68c=dojo.html.getStyle(node,"background-color");
if(_68c.toLowerCase()=="rgba(0, 0, 0, 0)"){
_68c="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_68c));
if(_68c=="transparent"){
_68c=[255,255,255,0];
}else{
_68c=dojo.gfx.color.extractRGB(_68c);
}
return _68c;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_68d){
if(!_68d){
return [];
}
if(dojo.lang.isArrayLike(_68d)){
if(!_68d.alreadyChecked){
var n=[];
dojo.lang.forEach(_68d,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _68d;
}
}else{
var n=[];
n.push(dojo.byId(_68d));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_690,_691,_692,_693,_694){
_690=dojo.lfx.html._byId(_690);
var _695={"propertyMap":_691,"nodes":_690,"duration":_692,"easing":_693||dojo.lfx.easeDefault};
var _696=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _69a in pm){
pm[_69a].property=_69a;
parr.push(pm[_69a]);
}
pm=args.propertyMap=parr;
}
dojo.lang.forEach(pm,function(prop){
if(dj_undef("start",prop)){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.html.getComputedStyle(args.nodes[0],prop.property));
}else{
prop.start=dojo.html.getOpacity(args.nodes[0]);
}
}
});
}
};
var _69c=function(_69d){
var _69e=[];
dojo.lang.forEach(_69d,function(c){
_69e.push(Math.round(c));
});
return _69e;
};
var _6a0=function(n,_6a2){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _6a2){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_6a2[s]);
}else{
n.style[s]=_6a2[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _6a4=function(_6a5){
this._properties=_6a5;
this.diffs=new Array(_6a5.length);
dojo.lang.forEach(_6a5,function(prop,i){
if(dojo.lang.isFunction(prop.start)){
prop.start=prop.start(prop,i);
}
if(dojo.lang.isFunction(prop.end)){
prop.end=prop.end(prop,i);
}
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.gfx.color.Color){
prop.startRgb=prop.start.toRgb();
prop.endRgb=prop.end.toRgb();
}else{
this.diffs[i]=prop.end-prop.start;
}
}
},this);
this.getValue=function(n){
var ret={};
dojo.lang.forEach(this._properties,function(prop,i){
var _6ac=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_6ac=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_6ac+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_6ac+=")";
}else{
_6ac=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_6ac;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_696(_695);
anim.curve=new _6a4(_695.propertyMap);
},onAnimate:function(_6af){
dojo.lang.forEach(_695.nodes,function(node){
_6a0(node,_6af);
});
}},_695.duration,null,_695.easing);
if(_694){
for(var x in _694){
if(dojo.lang.isFunction(_694[x])){
anim.connect(x,anim,_694[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_6b2){
var _6b3=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.html.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.html.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
if(dojo.lang.isArrayLike(_6b2)){
dojo.lang.forEach(_6b2,_6b3);
}else{
_6b3(_6b2);
}
};
dojo.lfx.html.fade=function(_6b5,_6b6,_6b7,_6b8,_6b9){
_6b5=dojo.lfx.html._byId(_6b5);
var _6ba={property:"opacity"};
if(!dj_undef("start",_6b6)){
_6ba.start=_6b6.start;
}else{
_6ba.start=function(){
return dojo.html.getOpacity(_6b5[0]);
};
}
if(!dj_undef("end",_6b6)){
_6ba.end=_6b6.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_6b5,[_6ba],_6b7,_6b8);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_6b5);
});
if(_6b9){
anim.connect("onEnd",function(){
_6b9(_6b5,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_6bc,_6bd,_6be,_6bf){
return dojo.lfx.html.fade(_6bc,{end:1},_6bd,_6be,_6bf);
};
dojo.lfx.html.fadeOut=function(_6c0,_6c1,_6c2,_6c3){
return dojo.lfx.html.fade(_6c0,{end:0},_6c1,_6c2,_6c3);
};
dojo.lfx.html.fadeShow=function(_6c4,_6c5,_6c6,_6c7){
_6c4=dojo.lfx.html._byId(_6c4);
dojo.lang.forEach(_6c4,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_6c4,_6c5,_6c6,_6c7);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_6c4)){
dojo.lang.forEach(_6c4,dojo.html.show);
}else{
dojo.html.show(_6c4);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_6ca,_6cb,_6cc,_6cd){
var anim=dojo.lfx.html.fadeOut(_6ca,_6cb,_6cc,function(){
if(dojo.lang.isArrayLike(_6ca)){
dojo.lang.forEach(_6ca,dojo.html.hide);
}else{
dojo.html.hide(_6ca);
}
if(_6cd){
_6cd(_6ca,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_6cf,_6d0,_6d1,_6d2){
_6cf=dojo.lfx.html._byId(_6cf);
var _6d3=[];
dojo.lang.forEach(_6cf,function(node){
var _6d5={};
var _6d6,_6d7,_6d8;
with(node.style){
_6d6=top;
_6d7=left;
_6d8=position;
top="-9999px";
left="-9999px";
position="absolute";
display="";
}
var _6d9=dojo.html.getBorderBox(node).height;
with(node.style){
top=_6d6;
left=_6d7;
position=_6d8;
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _6d9;
}}},_6d0,_6d1);
anim.connect("beforeBegin",function(){
_6d5.overflow=node.style.overflow;
_6d5.height=node.style.height;
with(node.style){
overflow="hidden";
_6d9="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_6d5.overflow;
_6d9=_6d5.height;
}
if(_6d2){
_6d2(node,anim);
}
});
_6d3.push(anim);
});
return dojo.lfx.combine(_6d3);
};
dojo.lfx.html.wipeOut=function(_6db,_6dc,_6dd,_6de){
_6db=dojo.lfx.html._byId(_6db);
var _6df=[];
dojo.lang.forEach(_6db,function(node){
var _6e1={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_6dc,_6dd,{"beforeBegin":function(){
_6e1.overflow=node.style.overflow;
_6e1.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_6e1.overflow;
height=_6e1.height;
}
if(_6de){
_6de(node,anim);
}
}});
_6df.push(anim);
});
return dojo.lfx.combine(_6df);
};
dojo.lfx.html.slideTo=function(_6e3,_6e4,_6e5,_6e6,_6e7){
_6e3=dojo.lfx.html._byId(_6e3);
var _6e8=[];
var _6e9=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_6e4)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_6e4={top:_6e4[0],left:_6e4[1]};
}
dojo.lang.forEach(_6e3,function(node){
var top=null;
var left=null;
var init=(function(){
var _6ee=node;
return function(){
var pos=_6e9(_6ee,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_6e9(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_6e9(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_6ee,true);
dojo.html.setStyleAttributes(_6ee,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:(_6e4.top||0)},"left":{start:left,end:(_6e4.left||0)}},_6e5,_6e6,{"beforeBegin":init});
if(_6e7){
anim.connect("onEnd",function(){
_6e7(_6e3,anim);
});
}
_6e8.push(anim);
});
return dojo.lfx.combine(_6e8);
};
dojo.lfx.html.slideBy=function(_6f2,_6f3,_6f4,_6f5,_6f6){
_6f2=dojo.lfx.html._byId(_6f2);
var _6f7=[];
var _6f8=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_6f3)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_6f3={top:_6f3[0],left:_6f3[1]};
}
dojo.lang.forEach(_6f2,function(node){
var top=null;
var left=null;
var init=(function(){
var _6fd=node;
return function(){
var pos=_6f8(_6fd,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_6f8(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_6f8(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_6fd,true);
dojo.html.setStyleAttributes(_6fd,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:top+(_6f3.top||0)},"left":{start:left,end:left+(_6f3.left||0)}},_6f4,_6f5).connect("beforeBegin",init);
if(_6f6){
anim.connect("onEnd",function(){
_6f6(_6f2,anim);
});
}
_6f7.push(anim);
});
return dojo.lfx.combine(_6f7);
};
dojo.lfx.html.explode=function(_701,_702,_703,_704,_705){
var h=dojo.html;
_701=dojo.byId(_701);
_702=dojo.byId(_702);
var _707=h.toCoordinateObject(_701,true);
var _708=document.createElement("div");
h.copyStyle(_708,_702);
if(_702.explodeClassName){
_708.className=_702.explodeClassName;
}
with(_708.style){
position="absolute";
display="none";
var _709=h.getStyle(_701,"background-color");
backgroundColor=_709?_709.toLowerCase():"transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_708);
with(_702.style){
visibility="hidden";
display="block";
}
var _70a=h.toCoordinateObject(_702,true);
with(_702.style){
display="none";
visibility="visible";
}
var _70b={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_70b[type]={start:_707[type],end:_70a[type]};
});
var anim=new dojo.lfx.propertyAnimation(_708,_70b,_703,_704,{"beforeBegin":function(){
h.setDisplay(_708,"block");
},"onEnd":function(){
h.setDisplay(_702,"block");
_708.parentNode.removeChild(_708);
}});
if(_705){
anim.connect("onEnd",function(){
_705(_702,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_70e,end,_710,_711,_712){
var h=dojo.html;
_70e=dojo.byId(_70e);
end=dojo.byId(end);
var _714=dojo.html.toCoordinateObject(_70e,true);
var _715=dojo.html.toCoordinateObject(end,true);
var _716=document.createElement("div");
dojo.html.copyStyle(_716,_70e);
if(_70e.explodeClassName){
_716.className=_70e.explodeClassName;
}
dojo.html.setOpacity(_716,0.3);
with(_716.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_70e,"background-color").toLowerCase();
}
dojo.body().appendChild(_716);
var _717={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_717[type]={start:_714[type],end:_715[type]};
});
var anim=new dojo.lfx.propertyAnimation(_716,_717,_710,_711,{"beforeBegin":function(){
dojo.html.hide(_70e);
dojo.html.show(_716);
},"onEnd":function(){
_716.parentNode.removeChild(_716);
}});
if(_712){
anim.connect("onEnd",function(){
_712(_70e,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_71a,_71b,_71c,_71d,_71e){
_71a=dojo.lfx.html._byId(_71a);
var _71f=[];
dojo.lang.forEach(_71a,function(node){
var _721=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _723=dojo.html.getStyle(node,"background-image");
var _724=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_721.length>3){
_721.pop();
}
var rgb=new dojo.gfx.color.Color(_71b);
var _726=new dojo.gfx.color.Color(_721);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_726}},_71c,_71d,{"beforeBegin":function(){
if(_723){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_723){
node.style.backgroundImage=_723;
}
if(_724){
node.style.backgroundColor="transparent";
}
if(_71e){
_71e(node,anim);
}
}});
_71f.push(anim);
});
return dojo.lfx.combine(_71f);
};
dojo.lfx.html.unhighlight=function(_728,_729,_72a,_72b,_72c){
_728=dojo.lfx.html._byId(_728);
var _72d=[];
dojo.lang.forEach(_728,function(node){
var _72f=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_729);
var _731=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_72f,end:rgb}},_72a,_72b,{"beforeBegin":function(){
if(_731){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_72f.toRgb().join(",")+")";
},"onEnd":function(){
if(_72c){
_72c(node,anim);
}
}});
_72d.push(anim);
});
return dojo.lfx.combine(_72d);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_734,_735,_736){
dojo.html.show(node);
if(dojo.lang.isFunction(_736)){
_736();
}
},hide:function(node,_738,_739,_73a){
dojo.html.hide(node);
if(dojo.lang.isFunction(_73a)){
_73a();
}
}};
dojo.lfx.toggle.fade={show:function(node,_73c,_73d,_73e){
dojo.lfx.fadeShow(node,_73c,_73d,_73e).play();
},hide:function(node,_740,_741,_742){
dojo.lfx.fadeHide(node,_740,_741,_742).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_744,_745,_746){
dojo.lfx.wipeIn(node,_744,_745,_746).play();
},hide:function(node,_748,_749,_74a){
dojo.lfx.wipeOut(node,_748,_749,_74a).play();
}};
dojo.lfx.toggle.explode={show:function(node,_74c,_74d,_74e,_74f){
dojo.lfx.explode(_74f||{x:0,y:0,width:0,height:0},node,_74c,_74d,_74e).play();
},hide:function(node,_751,_752,_753,_754){
dojo.lfx.implode(node,_754||{x:0,y:0,width:0,height:0},_751,_752,_753).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
if(this.lang===""){
this.lang=null;
}
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_75b){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_75b&&this.domNode){
dojo.event.browser.clean(this.domNode);
}
dojo.widget.HtmlWidget.superclass.destroyRendering.call(this);
}
catch(e){
}
},isShowing:function(){
return dojo.html.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isShowing()){
this.hide();
}else{
this.show();
}
},show:function(){
if(this.isShowing()){
return;
}
this.animationInProgress=true;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
this.checkSize();
},hide:function(){
if(!this.isShowing()){
return;
}
this.animationInProgress=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
var wh=dojo.html.getMarginBox(this.domNode);
var _75f=w||wh.width;
var _760=h||wh.height;
if(this.width==_75f&&this.height==_760){
return false;
}
this.width=_75f;
this.height=_760;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
dojo.html.setMarginBox(this.domNode,{width:w,height:h});
if(this.isShowing()){
this.onResized();
}
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_763){
if(_763.checkSize){
_763.checkSize();
}
});
}});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.string.common");
dojo.string.trim=function(str,wh){
if(!str.replace){
return str;
}
if(!str.length){
return str;
}
var re=(wh>0)?(/^\s+/):(wh<0)?(/\s+$/):(/^\s+|\s+$/g);
return str.replace(re,"");
};
dojo.string.trimStart=function(str){
return dojo.string.trim(str,1);
};
dojo.string.trimEnd=function(str){
return dojo.string.trim(str,-1);
};
dojo.string.repeat=function(str,_76a,_76b){
var out="";
for(var i=0;i<_76a;i++){
out+=str;
if(_76b&&i<_76a-1){
out+=_76b;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_77a,_77b,_77c){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_77a){
this.mimetype=_77a;
}
if(_77b){
this.transport=_77b;
}
if(arguments.length>=4){
this.changeUrl=_77c;
}
}
};
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,_77f,_780){
},error:function(type,_782,_783,_784){
},timeout:function(type,_786,_787,_788){
},handle:function(type,data,_78b,_78c){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_78d){
if(_78d["url"]){
_78d.url=_78d.url.toString();
}
if(_78d["formNode"]){
_78d.formNode=dojo.byId(_78d.formNode);
}
if(!_78d["method"]&&_78d["formNode"]&&_78d["formNode"].method){
_78d.method=_78d["formNode"].method;
}
if(!_78d["handle"]&&_78d["handler"]){
_78d.handle=_78d.handler;
}
if(!_78d["load"]&&_78d["loaded"]){
_78d.load=_78d.loaded;
}
if(!_78d["changeUrl"]&&_78d["changeURL"]){
_78d.changeUrl=_78d.changeURL;
}
_78d.encoding=dojo.lang.firstValued(_78d["encoding"],djConfig["bindEncoding"],"");
_78d.sendTransport=dojo.lang.firstValued(_78d["sendTransport"],djConfig["ioSendTransport"],false);
var _78e=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_78d[fn]&&_78e(_78d[fn])){
continue;
}
if(_78d["handle"]&&_78e(_78d["handle"])){
_78d[fn]=_78d.handle;
}
}
dojo.lang.mixin(this,_78d);
}});
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(_795){
if(!(_795 instanceof dojo.io.Request)){
try{
_795=new dojo.io.Request(_795);
}
catch(e){
dojo.debug(e);
}
}
var _796="";
if(_795["transport"]){
_796=_795["transport"];
if(!this[_796]){
dojo.io.sendBindError(_795,"No dojo.io.bind() transport with name '"+_795["transport"]+"'.");
return _795;
}
if(!this[_796].canHandle(_795)){
dojo.io.sendBindError(_795,"dojo.io.bind() transport with name '"+_795["transport"]+"' cannot handle this type of request.");
return _795;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_795))){
_796=tmp;
break;
}
}
if(_796==""){
dojo.io.sendBindError(_795,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _795;
}
}
this[_796].bind(_795);
_795.bindSuccess=true;
return _795;
};
dojo.io.sendBindError=function(_799,_79a){
if((typeof _799.error=="function"||typeof _799.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _79b=new dojo.io.Error(_79a);
setTimeout(function(){
_799[(typeof _799.error=="function")?"error":"handle"]("error",_79b,null,_799);
},50);
}else{
dojo.raise(_79a);
}
};
dojo.io.queueBind=function(_79c){
if(!(_79c instanceof dojo.io.Request)){
try{
_79c=new dojo.io.Request(_79c);
}
catch(e){
dojo.debug(e);
}
}
var _79d=_79c.load;
_79c.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_79d.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _79f=_79c.error;
_79c.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_79f.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_79c);
dojo.io._dispatchNextQueueBind();
return _79c;
};
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,_7a2,last){
var enc=/utf/i.test(_7a2||"")?encodeURIComponent:dojo.string.encodeAscii;
var _7a5=[];
var _7a6=new Object();
for(var name in map){
var _7a8=function(elt){
var val=enc(name)+"="+enc(elt);
_7a5[(last==name)?"push":"unshift"](val);
};
if(!_7a6[name]){
var _7ab=map[name];
if(dojo.lang.isArray(_7ab)){
dojo.lang.forEach(_7ab,_7a8);
}else{
_7a8(_7ab);
}
}
}
return _7a5.join("&");
};
dojo.io.setIFrameSrc=function(_7ac,src,_7ae){
try{
var r=dojo.render.html;
if(!_7ae){
if(r.safari){
_7ac.location=src;
}else{
frames[_7ac.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_7ac.contentWindow.document;
}else{
if(r.safari){
idoc=_7ac.document;
}else{
idoc=_7ac.contentWindow;
}
}
if(!idoc){
_7ac.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_7b1,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _7b1.replace(/\%\{(\w+)\}/g,function(_7b4,key){
if(typeof (map[key])!="undefined"&&map[key]!=null){
return map[key];
}
dojo.raise("Substitution not found: "+key);
});
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
if(arguments.length==0){
str=this;
}
var _7b7=str.split(" ");
for(var i=0;i<_7b7.length;i++){
_7b7[i]=_7b7[i].charAt(0).toUpperCase()+_7b7[i].substring(1);
}
return _7b7.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 _7bc=escape(str);
var _7bd,re=/%u([0-9A-F]{4})/i;
while((_7bd=_7bc.match(re))){
var num=Number("0x"+_7bd[1]);
var _7c0=escape("&#"+num+";");
ret+=_7bc.substring(0,_7bd.index)+_7c0;
_7bc=_7bc.substring(_7bd.index+_7bd[0].length);
}
ret+=_7bc.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,_7c5){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_7c5){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dojo.string.escapeSql=function(str){
return str.replace(/'/gm,"''");
};
dojo.string.escapeRegExp=function(str){
return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");
};
dojo.string.escapeJavaScript=function(str){
return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");
};
dojo.string.escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.string.summary=function(str,len){
if(!len||str.length<=len){
return str;
}
return str.substring(0,len).replace(/\.+$/,"")+"...";
};
dojo.string.endsWith=function(str,end,_7ce){
if(_7ce){
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,_7d2,_7d3){
if(_7d3){
str=str.toLowerCase();
_7d2=_7d2.toLowerCase();
}
return str.indexOf(_7d2)==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,_7d9){
if(_7d9=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_7d9=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n").replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_7db){
var _7dc=[];
for(var i=0,_7de=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_7db){
_7dc.push(str.substring(_7de,i));
_7de=i+1;
}
}
_7dc.push(str.substr(_7de));
return _7dc;
};
dojo.provide("dojo.undo.browser");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState=this._createState(this.initialHref,args,this.initialHash);
},addToHistory:function(args){
this.forwardStack=[];
var hash=null;
var url=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
dojo.body().appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
if(this.historyStack.length==0&&this.initialState.urlHash==hash){
this.initialState=this._createState(url,args,hash);
return;
}else{
if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){
this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash);
return;
}
}
this.changingUrl=true;
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
url=this._loadIframeHistory();
var _7e3=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_7e5){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_7e3.apply(this,[_7e5]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _7e6=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_7e8){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_7e6){
_7e6.apply(this,[_7e8]);
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}else{
if(args["handle"]){
args.handle=tfw;
}
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200);
}
}
}
}else{
url=this._loadIframeHistory();
}
this.historyStack.push(this._createState(url,args,hash));
},checkLocation:function(){
if(!this.changingUrl){
var hsl=this.historyStack.length;
if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(hsl==1)){
this.handleBackButton();
return;
}
if(this.forwardStack.length>0){
if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){
this.handleForwardButton();
return;
}
}
if((hsl>=2)&&(this.historyStack[hsl-2])){
if(this.historyStack[hsl-2].urlHash==window.location.hash){
this.handleBackButton();
return;
}
}
}
},iframeLoaded:function(evt,_7eb){
if(!dojo.render.html.opera){
var _7ec=this._getUrlQuery(_7eb.href);
if(_7ec==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_7ec==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_7ec==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _7ed=this.historyStack.pop();
if(!_7ed){
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(_7ed);
},handleForwardButton:function(){
var last=this.forwardStack.pop();
if(!last){
return;
}
if(last.kwArgs["forward"]){
last.kwArgs.forward();
}else{
if(last.kwArgs["forwardButton"]){
last.kwArgs.forwardButton();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("forward");
}
}
}
this.historyStack.push(last);
},_createState:function(url,args,hash){
return {"url":url,"kwArgs":args,"urlHash":hash};
},_getUrlQuery:function(url){
var _7f4=url.split("?");
if(_7f4.length<2){
return null;
}else{
return _7f4[1];
}
},_loadIframeHistory:function(){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
return url;
}};
dojo.provide("dojo.io.BrowserIO");
if(!dj_undef("window")){
dojo.io.checkChildrenForFile=function(node){
var _7f7=false;
var _7f8=node.getElementsByTagName("input");
dojo.lang.forEach(_7f8,function(_7f9){
if(_7f7){
return;
}
if(_7f9.getAttribute("type")=="file"){
_7f7=true;
}
});
return _7f7;
};
dojo.io.formHasFile=function(_7fa){
return dojo.io.checkChildrenForFile(_7fa);
};
dojo.io.updateNode=function(node,_7fc){
node=dojo.byId(node);
var args=_7fc;
if(dojo.lang.isString(_7fc)){
args={url:_7fc};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
dojo.dom.destroyNode(node.firstChild);
}
node.innerHTML=d;
};
dojo.io.bind(args);
};
dojo.io.formFilter=function(node){
var type=(node.type||"").toLowerCase();
return !node.disabled&&node.name&&!dojo.lang.inArray(["file","submit","image","reset","button"],type);
};
dojo.io.encodeForm=function(_803,_804,_805){
if((!_803)||(!_803.tagName)||(!_803.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_805){
_805=dojo.io.formFilter;
}
var enc=/utf/i.test(_804||"")?encodeURIComponent:dojo.string.encodeAscii;
var _807=[];
for(var i=0;i<_803.elements.length;i++){
var elm=_803.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_805(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){
_807.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_807.push(name+"="+enc(elm.value));
}
}else{
_807.push(name+"="+enc(elm.value));
}
}
}
var _80d=_803.getElementsByTagName("input");
for(var i=0;i<_80d.length;i++){
var _80e=_80d[i];
if(_80e.type.toLowerCase()=="image"&&_80e.form==_803&&_805(_80e)){
var name=enc(_80e.name);
_807.push(name+"="+enc(_80e.value));
_807.push(name+".x=0");
_807.push(name+".y=0");
}
}
return _807.join("&")+"&";
};
dojo.io.FormBind=function(args){
this.bindArgs={};
if(args&&args.formNode){
this.init(args);
}else{
if(args){
this.init({formNode:args});
}
}
};
dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){
var form=dojo.byId(args.formNode);
if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){
throw new Error("FormBind: Couldn't apply, invalid form");
}else{
if(this.form==form){
return;
}else{
if(this.form){
throw new Error("FormBind: Already applied to a form");
}
}
}
dojo.lang.mixin(this.bindArgs,args);
this.form=form;
this.connect(form,"onsubmit","submit");
for(var i=0;i<form.elements.length;i++){
var node=form.elements[i];
if(node&&node.type&&dojo.lang.inArray(["submit","button"],node.type.toLowerCase())){
this.connect(node,"onclick","click");
}
}
var _814=form.getElementsByTagName("input");
for(var i=0;i<_814.length;i++){
var _815=_814[i];
if(_815.type.toLowerCase()=="image"&&_815.form==form){
this.connect(_815,"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 _81c=false;
if(node.disabled||!node.name){
_81c=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_81c=node==this.clickedButton;
}else{
_81c=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _81c;
},connect:function(_81d,_81e,_81f){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_81d,_81e,this,_81f);
}else{
var fcn=dojo.lang.hitch(this,_81f);
_81d[_81e]=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 _822=this;
var _823={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_825,_826){
return url+"|"+_825+"|"+_826.toLowerCase();
}
function addToCache(url,_828,_829,http){
_823[getCacheKey(url,_828,_829)]=http;
}
function getFromCache(url,_82c,_82d){
return _823[getCacheKey(url,_82c,_82d)];
}
this.clearCache=function(){
_823={};
};
function doLoad(_82e,http,url,_831,_832){
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(_82e.method.toLowerCase()=="head"){
var _834=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _834;
};
var _835=_834.split(/[\r\n]+/g);
for(var i=0;i<_835.length;i++){
var pair=_835[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_82e.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_82e.mimetype=="text/json"||_82e.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_82e.mimetype=="application/xml")||(_82e.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(_832){
addToCache(url,_831,_82e.method,http);
}
_82e[(typeof _82e.load=="function")?"load":"handle"]("load",ret,http,_82e);
}else{
var _838=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_82e[(typeof _82e.error=="function")?"error":"handle"]("error",_838,http,_82e);
}
}
function setHeaders(http,_83a){
if(_83a["headers"]){
for(var _83b in _83a["headers"]){
if(_83b.toLowerCase()=="content-type"&&!_83a["contentType"]){
_83a["contentType"]=_83a["headers"][_83b];
}else{
http.setRequestHeader(_83b,_83a["headers"][_83b]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
if(!dojo.hostenv._blockAsync&&!_822._blockAsync){
for(var x=this.inFlight.length-1;x>=0;x--){
try{
var tif=this.inFlight[x];
if(!tif||tif.http._aborted||!tif.http.readyState){
this.inFlight.splice(x,1);
continue;
}
if(4==tif.http.readyState){
this.inFlight.splice(x,1);
doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);
}else{
if(tif.startTime){
if(!now){
now=(new Date()).getTime();
}
if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){
if(typeof tif.http.abort=="function"){
tif.http.abort();
}
this.inFlight.splice(x,1);
tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);
}
}
}
}
catch(e){
try{
var _83f=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_83f,tif.http,tif.req);
}
catch(e2){
dojo.debug("XMLHttpTransport error callback failed: "+e2);
}
}
}
}
clearTimeout(this.inFlightTimer);
if(this.inFlight.length==0){
this.inFlightTimer=null;
return;
}
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
};
var _840=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_841){
return _840&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_841["mimetype"].toLowerCase()||""))&&!(_841["formNode"]&&dojo.io.formHasFile(_841["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_842){
if(!_842["url"]){
if(!_842["formNode"]&&(_842["backButton"]||_842["back"]||_842["changeUrl"]||_842["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(_842);
return true;
}
}
var url=_842.url;
var _844="";
if(_842["formNode"]){
var ta=_842.formNode.getAttribute("action");
if((ta)&&(!_842["url"])){
url=ta;
}
var tp=_842.formNode.getAttribute("method");
if((tp)&&(!_842["method"])){
_842.method=tp;
}
_844+=dojo.io.encodeForm(_842.formNode,_842.encoding,_842["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_842["file"]){
_842.method="post";
}
if(!_842["method"]){
_842.method="get";
}
if(_842.method.toLowerCase()=="get"){
_842.multipart=false;
}else{
if(_842["file"]){
_842.multipart=true;
}else{
if(!_842["multipart"]){
_842.multipart=false;
}
}
}
if(_842["backButton"]||_842["back"]||_842["changeUrl"]){
dojo.undo.browser.addToHistory(_842);
}
var _847=_842["content"]||{};
if(_842.sendTransport){
_847["dojo.transport"]="xmlhttp";
}
do{
if(_842.postContent){
_844=_842.postContent;
break;
}
if(_847){
_844+=dojo.io.argsFromMap(_847,_842.encoding);
}
if(_842.method.toLowerCase()=="get"||!_842.multipart){
break;
}
var t=[];
if(_844.length){
var q=_844.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(_842.file){
if(dojo.lang.isArray(_842.file)){
for(var i=0;i<_842.file.length;++i){
var o=_842.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=_842.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+"--","");
_844=t.join("\r\n");
}
}while(false);
var _84d=_842["sync"]?false:true;
var _84e=_842["preventCache"]||(this.preventCache==true&&_842["preventCache"]!=false);
var _84f=_842["useCache"]==true||(this.useCache==true&&_842["useCache"]!=false);
if(!_84e&&_84f){
var _850=getFromCache(url,_844,_842.method);
if(_850){
doLoad(_842,_850,url,_844,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_842);
var _852=false;
if(_84d){
var _853=this.inFlight.push({"req":_842,"http":http,"url":url,"query":_844,"useCache":_84f,"startTime":_842.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_822._blockAsync=true;
}
if(_842.method.toLowerCase()=="post"){
if(!_842.user){
http.open("POST",url,_84d);
}else{
http.open("POST",url,_84d,_842.user,_842.password);
}
setHeaders(http,_842);
http.setRequestHeader("Content-Type",_842.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_842.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_844);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_842,{status:404},url,_844,_84f);
}
}else{
var _854=url;
if(_844!=""){
_854+=(_854.indexOf("?")>-1?"&":"?")+_844;
}
if(_84e){
_854+=(dojo.string.endsWithAny(_854,"?","&")?"":(_854.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_842.user){
http.open(_842.method.toUpperCase(),_854,_84d);
}else{
http.open(_842.method.toUpperCase(),_854,_84d,_842.user,_842.password);
}
setHeaders(http,_842);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_842,{status:404},url,_844,_84f);
}
}
if(!_84d){
doLoad(_842,http,url,_844,_84f);
_822._blockAsync=false;
}
_842.abort=function(){
try{
http._aborted=true;
}
catch(e){
}
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
}
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_856,days,path,_859,_85a){
var _85b=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_85b=d.toGMTString();
}
_856=escape(_856);
document.cookie=name+"="+_856+";"+(_85b!=-1?" expires="+_85b+";":"")+(path?"path="+path:"")+(_859?"; domain="+_859:"")+(_85a?"; 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 _85f=document.cookie.substring(idx+name.length+1);
var end=_85f.indexOf(";");
if(end==-1){
end=_85f.length;
}
_85f=_85f.substring(0,end);
_85f=unescape(_85f);
return _85f;
};
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,_866,_867,_868){
if(arguments.length==5){
_868=_866;
_866=null;
_867=null;
}
var _869=[],_86a,_86b="";
if(!_868){
_86a=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_86a){
_86a={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _86a[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_86a[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _86a){
_869.push(escape(prop)+"="+escape(_86a[prop]));
}
_86b=_869.join("&");
}
dojo.io.cookie.setCookie(name,_86b,days,path,_866,_867);
};
dojo.io.cookie.getObjectCookie=function(name){
var _86e=null,_86f=dojo.io.cookie.getCookie(name);
if(_86f){
_86e={};
var _870=_86f.split("&");
for(var i=0;i<_870.length;i++){
var pair=_870[i].split("=");
var _873=pair[1];
if(isNaN(_873)){
_873=unescape(pair[1]);
}
_86e[unescape(pair[0])]=_873;
}
}
return _86e;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _874=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_874=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.io.*");
dojo.provide("dojo.widget.ContentPane");
dojo.widget.defineWidget("dojo.widget.ContentPane",dojo.widget.HtmlWidget,function(){
this._styleNodes=[];
this._onLoadStack=[];
this._onUnloadStack=[];
this._callOnUnload=false;
this._ioBindObj;
this.scriptScope;
this.bindArgs={};
},{isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptSeparation:true,loadingMessage:"Loading...",isLoaded:false,postCreate:function(args,frag,_877){
if(this.handler!==""){
this.setHandler(this.handler);
}
if(this.isShowing()||this.preload){
this.loadContents();
}
},show:function(){
if(this.refreshOnShow){
this.refresh();
}else{
this.loadContents();
}
dojo.widget.ContentPane.superclass.show.call(this);
},refresh:function(){
this.isLoaded=false;
this.loadContents();
},loadContents:function(){
if(this.isLoaded){
return;
}
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.href!=""){
this._downloadExternalContent(this.href,this.cacheContent&&!this.refreshOnShow);
}
}
},setUrl:function(url){
this.href=url;
this.isLoaded=false;
if(this.preload||this.isShowing()){
this.loadContents();
}
},abort:function(){
var bind=this._ioBindObj;
if(!bind||!bind.abort){
return;
}
bind.abort();
delete this._ioBindObj;
},_downloadExternalContent:function(url,_87b){
this.abort();
this._handleDefaults(this.loadingMessage,"onDownloadStart");
var self=this;
this._ioBindObj=dojo.io.bind(this._cacheSetting({url:url,mimetype:"text/html",handler:function(type,data,xhr){
delete self._ioBindObj;
if(type=="load"){
self.onDownloadEnd.call(self,url,data);
}else{
var e={responseText:xhr.responseText,status:xhr.status,statusText:xhr.statusText,responseHeaders:xhr.getAllResponseHeaders(),text:"Error loading '"+url+"' ("+xhr.status+" "+xhr.statusText+")"};
self._handleDefaults.call(self,e,"onDownloadError");
self.onLoad();
}
}},_87b));
},_cacheSetting:function(_881,_882){
for(var x in this.bindArgs){
if(dojo.lang.isUndefined(_881[x])){
_881[x]=this.bindArgs[x];
}
}
if(dojo.lang.isUndefined(_881.useCache)){
_881.useCache=_882;
}
if(dojo.lang.isUndefined(_881.preventCache)){
_881.preventCache=!_882;
}
if(dojo.lang.isUndefined(_881.mimetype)){
_881.mimetype="text/html";
}
return _881;
},onLoad:function(e){
this._runStack("_onLoadStack");
this.isLoaded=true;
},onUnLoad:function(e){
dojo.deprecated(this.widgetType+".onUnLoad, use .onUnload (lowercased load)",0.5);
},onUnload:function(e){
this._runStack("_onUnloadStack");
delete this.scriptScope;
if(this.onUnLoad!==dojo.widget.ContentPane.prototype.onUnLoad){
this.onUnLoad.apply(this,arguments);
}
},_runStack:function(_887){
var st=this[_887];
var err="";
var _88a=this.scriptScope||window;
for(var i=0;i<st.length;i++){
try{
st[i].call(_88a);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_887]=[];
if(err.length){
var name=(_887=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
this._handleDefaults(name+" failure\n "+err,"onExecError","debug");
}
},addOnLoad:function(obj,func){
this._pushOnStack(this._onLoadStack,obj,func);
},addOnUnload:function(obj,func){
this._pushOnStack(this._onUnloadStack,obj,func);
},addOnUnLoad:function(){
dojo.deprecated(this.widgetType+".addOnUnLoad, use addOnUnload instead. (lowercased Load)",0.5);
this.addOnUnload.apply(this,arguments);
},_pushOnStack:function(_891,obj,func){
if(typeof func=="undefined"){
_891.push(obj);
}else{
_891.push(function(){
obj[func]();
});
}
},destroy:function(){
this.onUnload();
dojo.widget.ContentPane.superclass.destroy.call(this);
},onExecError:function(e){
},onContentError:function(e){
},onDownloadError:function(e){
},onDownloadStart:function(e){
},onDownloadEnd:function(url,data){
data=this.splitAndFixPaths(data,url);
this.setContent(data);
},_handleDefaults:function(e,_89b,_89c){
if(!_89b){
_89b="onContentError";
}
if(dojo.lang.isString(e)){
e={text:e};
}
if(!e.text){
e.text=e.toString();
}
e.toString=function(){
return this.text;
};
if(typeof e.returnValue!="boolean"){
e.returnValue=true;
}
if(typeof e.preventDefault!="function"){
e.preventDefault=function(){
this.returnValue=false;
};
}
this[_89b](e);
if(e.returnValue){
switch(_89c){
case true:
case "alert":
alert(e.toString());
break;
case "debug":
dojo.debug(e.toString());
break;
default:
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=false;
if(arguments.callee._loopStop){
dojo.debug(e.toString());
}else{
arguments.callee._loopStop=true;
this._setContent(e.toString());
}
}
}
arguments.callee._loopStop=false;
},splitAndFixPaths:function(s,url){
var _89f=[],_8a0=[],tmp=[];
var _8a2=[],_8a3=[],attr=[],_8a5=[];
var str="",path="",fix="",_8a9="",tag="",_8ab="";
if(!url){
url="./";
}
if(s){
var _8ac=/<title[^>]*>([\s\S]*?)<\/title>/i;
while(_8a2=_8ac.exec(s)){
_89f.push(_8a2[1]);
s=s.substring(0,_8a2.index)+s.substr(_8a2.index+_8a2[0].length);
}
if(this.adjustPaths){
var _8ad=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
var _8ae=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
var _8af=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
while(tag=_8ad.exec(s)){
str+=s.substring(0,tag.index);
s=s.substring((tag.index+tag[0].length),s.length);
tag=tag[0];
_8a9="";
while(attr=_8ae.exec(tag)){
path="";
_8ab=attr[3];
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(_8af.exec(_8ab)){
path=_8ab;
}else{
path=(new dojo.uri.Uri(url,_8ab).toString());
}
break;
case "style":
path=dojo.html.fixPathsInCssText(_8ab,url);
break;
default:
path=_8ab;
}
fix=" "+attr[1]+"="+attr[2]+path+attr[2];
_8a9+=tag.substring(0,attr.index)+fix;
tag=tag.substring((attr.index+attr[0].length),tag.length);
}
str+=_8a9+tag;
}
s=str+s;
}
_8ac=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
while(_8a2=_8ac.exec(s)){
if(_8a2[1]&&_8a2[1].toLowerCase()=="style"){
_8a5.push(dojo.html.fixPathsInCssText(_8a2[2],url));
}else{
if(attr=_8a2[3].match(/href=(['"]?)([^'">]*)\1/i)){
_8a5.push({path:attr[2]});
}
}
s=s.substring(0,_8a2.index)+s.substr(_8a2.index+_8a2[0].length);
}
var _8ac=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _8b0=/src=(['"]?)([^"']*)\1/i;
var _8b1=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
var _8b2=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
var _8b3=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
while(_8a2=_8ac.exec(s)){
if(this.executeScripts&&_8a2[1]){
if(attr=_8b0.exec(_8a2[1])){
if(_8b1.exec(attr[2])){
dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");
}else{
_8a0.push({path:attr[2]});
}
}
}
if(_8a2[2]){
var sc=_8a2[2].replace(_8b2,"");
if(!sc){
continue;
}
while(tmp=_8b3.exec(sc)){
_8a3.push(tmp[0]);
sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
}
if(this.executeScripts){
_8a0.push(sc);
}
}
s=s.substr(0,_8a2.index)+s.substr(_8a2.index+_8a2[0].length);
}
if(this.extractContent){
_8a2=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_8a2){
s=_8a2[1];
}
}
if(this.executeScripts&&this.scriptSeparation){
var _8ac=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
var _8b5=/([\s'";:\(])scriptScope(.*)/;
str="";
while(tag=_8ac.exec(s)){
tmp=((tag[3]=="'")?"\"":"'");
fix="";
str+=s.substring(0,tag.index)+tag[1];
while(attr=_8b5.exec(tag[2])){
tag[2]=tag[2].substring(0,attr.index)+attr[1]+"dojo.widget.byId("+tmp+this.widgetId+tmp+").scriptScope"+attr[2];
}
str+=tag[2];
s=s.substr(tag.index+tag[0].length);
}
s=str+s;
}
}
return {"xml":s,"styles":_8a5,"titles":_89f,"requires":_8a3,"scripts":_8a0,"url":url};
},_setContent:function(cont){
this.destroyChildren();
for(var i=0;i<this._styleNodes.length;i++){
if(this._styleNodes[i]&&this._styleNodes[i].parentNode){
this._styleNodes[i].parentNode.removeChild(this._styleNodes[i]);
}
}
this._styleNodes=[];
try{
var node=this.containerNode||this.domNode;
while(node.firstChild){
dojo.html.destroyNode(node.firstChild);
}
if(typeof cont!="string"){
node.appendChild(cont);
}else{
node.innerHTML=cont;
}
}
catch(e){
e.text="Couldn't load content:"+e.description;
this._handleDefaults(e,"onContentError");
}
},setContent:function(data){
this.abort();
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=true;
if(!data||dojo.html.isNode(data)){
this._setContent(data);
this.onResized();
this.onLoad();
}else{
if(typeof data.xml!="string"){
this.href="";
data=this.splitAndFixPaths(data);
}
this._setContent(data.xml);
for(var i=0;i<data.styles.length;i++){
if(data.styles[i].path){
this._styleNodes.push(dojo.html.insertCssFile(data.styles[i].path,dojo.doc(),false,true));
}else{
this._styleNodes.push(dojo.html.insertCssText(data.styles[i]));
}
}
if(this.parseContent){
for(var i=0;i<data.requires.length;i++){
try{
eval(data.requires[i]);
}
catch(e){
e.text="ContentPane: error in package loading calls, "+(e.description||e);
this._handleDefaults(e,"onContentError","debug");
}
}
}
var _8bb=this;
function asyncParse(){
if(_8bb.executeScripts){
_8bb._executeScripts(data.scripts);
}
if(_8bb.parseContent){
var node=_8bb.containerNode||_8bb.domNode;
var _8bd=new dojo.xml.Parse();
var frag=_8bd.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_8bb);
}
_8bb.onResized();
_8bb.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_8bf){
var fcn=dojo.lang.isFunction(_8bf)?_8bf:window[_8bf];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_8bf+"' not a function.","onExecError",true);
return;
}
this.handler=function(){
return fcn.apply(this,arguments);
};
},_runHandler:function(){
var ret=true;
if(dojo.lang.isFunction(this.handler)){
this.handler(this,this.domNode);
ret=false;
}
this.onLoad();
return ret;
},_executeScripts:function(_8c2){
var self=this;
var tmp="",code="";
for(var i=0;i<_8c2.length;i++){
if(_8c2[i].path){
dojo.io.bind(this._cacheSetting({"url":_8c2[i].path,"load":function(type,_8c8){
dojo.lang.hitch(self,tmp=";"+_8c8);
},"error":function(type,_8ca){
_8ca.text=type+" downloading remote script";
self._handleDefaults.call(self,_8ca,"onExecError","debug");
},"mimetype":"text/plain","sync":true},this.cacheContent));
code+=tmp;
}else{
code+=_8c2[i];
}
}
try{
if(this.scriptSeparation){
delete this.scriptScope;
this.scriptScope=new (new Function("_container_",code+"; return this;"))(self);
}else{
var djg=dojo.global();
if(djg.execScript){
djg.execScript(code);
}else{
var djd=dojo.doc();
var sc=djd.createElement("script");
sc.appendChild(djd.createTextNode(code));
(this.containerNode||this.domNode).appendChild(sc);
}
}
}
catch(e){
e.text="Error running scripts from content:\n"+e.description;
this._handleDefaults(e,"onExecError","debug");
}
}});
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _8ce=dojo.global();
var _8cf=dojo.doc();
try{
if(_8ce["getSelection"]){
if(dojo.render.html.safari){
_8ce.getSelection().collapse();
}else{
_8ce.getSelection().removeAllRanges();
}
}else{
if(_8cf.selection){
if(_8cf.selection.empty){
_8cf.selection.empty();
}else{
if(_8cf.selection.clear){
_8cf.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_8d0){
_8d0=dojo.byId(_8d0)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_8d0.style.MozUserSelect="none";
}else{
if(h.safari){
_8d0.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_8d0.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_8d2){
_8d2=dojo.byId(_8d2)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_8d2.style.MozUserSelect="";
}else{
if(h.safari){
_8d2.style.KhtmlUserSelect="";
}else{
if(h.ie){
_8d2.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_8d4){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_8d5){
var _8d6=dojo.global();
var _8d7=dojo.doc();
_8d5=dojo.byId(_8d5);
if(_8d7["selection"]&&dojo.body()["createTextRange"]){
var _8d8=_8d5.createTextRange();
_8d8.moveStart("character",0);
_8d8.moveEnd("character",_8d5.value.length);
_8d8.select();
}else{
if(_8d6["getSelection"]){
var _8d9=_8d6.getSelection();
_8d5.setSelectionRange(0,_8d5.value.length);
}
}
_8d5.focus();
};
dojo.html.isSelectionCollapsed=function(){
dojo.deprecated("dojo.html.isSelectionCollapsed","replaced by dojo.html.selection.isCollapsed",0.5);
return dojo.html.selection.isCollapsed();
};
dojo.lang.mixin(dojo.html.selection,{getType:function(){
if(dojo.doc()["selection"]){
return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()];
}else{
var _8da=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _8dc=oSel.getRangeAt(0);
if(_8dc.startContainer==_8dc.endContainer&&(_8dc.endOffset-_8dc.startOffset)==1&&_8dc.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_8da=dojo.html.selectionType.CONTROL;
}
}
return _8da;
}
},isCollapsed:function(){
var _8dd=dojo.global();
var _8de=dojo.doc();
if(_8de["selection"]){
return _8de.selection.createRange().text=="";
}else{
if(_8dd["getSelection"]){
var _8df=_8dd.getSelection();
if(dojo.lang.isString(_8df)){
return _8df=="";
}else{
return _8df.isCollapsed||_8df.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _8e0=dojo.doc().selection.createRange();
if(_8e0&&_8e0.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _8e1=dojo.global().getSelection();
return _8e1.anchorNode.childNodes[_8e1.anchorOffset];
}
}
},getParentElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
var p=dojo.html.selection.getSelectedElement();
if(p){
return p.parentNode;
}
}else{
if(dojo.doc()["selection"]){
return dojo.doc().selection.createRange().parentElement();
}else{
var _8e3=dojo.global().getSelection();
if(_8e3){
var node=_8e3.anchorNode;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.parentNode;
}
return node;
}
}
}
},getSelectedText:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().text;
}else{
var _8e5=dojo.global().getSelection();
if(_8e5){
return _8e5.toString();
}
}
},getSelectedHtml:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().htmlText;
}else{
var _8e6=dojo.global().getSelection();
if(_8e6&&_8e6.rangeCount){
var frag=_8e6.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_8e9){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_8ea){
var node=dojo.html.selection.getSelectedElement()||dojo.html.selection.getParentElement();
while(node){
if(dojo.html.selection.isTag(node,arguments).length>0){
return node;
}
node=node.parentNode;
}
return null;
},isTag:function(node,tags){
if(node&&node.tagName){
for(var i=0;i<tags.length;i++){
if(node.tagName.toLowerCase()==String(tags[i]).toLowerCase()){
return String(tags[i]).toLowerCase();
}
}
}
return "";
},selectElement:function(_8ef){
var _8f0=dojo.global();
var _8f1=dojo.doc();
_8ef=dojo.byId(_8ef);
if(_8f1.selection&&dojo.body().createTextRange){
try{
var _8f2=dojo.body().createControlRange();
_8f2.addElement(_8ef);
_8f2.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_8ef);
}
}else{
if(_8f0["getSelection"]){
var _8f3=_8f0.getSelection();
if(_8f3["removeAllRanges"]){
var _8f2=_8f1.createRange();
_8f2.selectNode(_8ef);
_8f3.removeAllRanges();
_8f3.addRange(_8f2);
}
}
}
},selectElementChildren:function(_8f4){
var _8f5=dojo.global();
var _8f6=dojo.doc();
_8f4=dojo.byId(_8f4);
if(_8f6.selection&&dojo.body().createTextRange){
var _8f7=dojo.body().createTextRange();
_8f7.moveToElementText(_8f4);
_8f7.select();
}else{
if(_8f5["getSelection"]){
var _8f8=_8f5.getSelection();
if(_8f8["setBaseAndExtent"]){
_8f8.setBaseAndExtent(_8f4,0,_8f4,_8f4.innerText.length-1);
}else{
if(_8f8["selectAllChildren"]){
_8f8.selectAllChildren(_8f4);
}
}
}
}
},getBookmark:function(){
var _8f9;
var _8fa=dojo.doc();
if(_8fa["selection"]){
var _8fb=_8fa.selection.createRange();
_8f9=_8fb.getBookmark();
}else{
var _8fc;
try{
_8fc=dojo.global().getSelection();
}
catch(e){
}
if(_8fc){
var _8fb=_8fc.getRangeAt(0);
_8f9=_8fb.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _8f9;
},moveToBookmark:function(_8fd){
var _8fe=dojo.doc();
if(_8fe["selection"]){
var _8ff=_8fe.selection.createRange();
_8ff.moveToBookmark(_8fd);
_8ff.select();
}else{
var _900;
try{
_900=dojo.global().getSelection();
}
catch(e){
}
if(_900&&_900["removeAllRanges"]){
_900.removeAllRanges();
_900.addRange(_8fd);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_901){
if(dojo.global()["getSelection"]){
var _902=dojo.global().getSelection();
if(_902.removeAllRanges){
if(_901){
_902.collapseToStart();
}else{
_902.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_901);
}
}else{
if(dojo.doc().selection){
var _903=dojo.doc().selection.createRange();
_903.collapse(_901);
_903.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _904=dojo.doc().selection;
if(_904.type.toUpperCase()!="NONE"){
_904.clear();
}
return _904;
}else{
var _904=dojo.global().getSelection();
for(var i=0;i<_904.rangeCount;i++){
_904.getRangeAt(i).deleteContents();
}
return _904;
}
}});
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_906){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_906))||dojo.html.iframeContentDocument(_906).__parent__||(_906.name&&document.frames[_906.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_908){
var doc=_908.contentDocument||((_908.contentWindow)&&(_908.contentWindow.document))||((_908.name)&&(document.frames[_908.name])&&(document.frames[_908.name].document))||null;
return doc;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe src='javascript:false'"+" style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=dojo.doc().createElement(html);
this.iframe.tabIndex=-1;
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
dojo.body().appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode&&this.domNode.parentNode){
var _90c=dojo.html.getMarginBox(this.domNode);
if(_90c.width==0||_90c.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_90c.width+"px";
this.iframe.style.height=_90c.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _90e=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_90e.width+"px";
height=_90e.height+"px";
left=_90e.left+"px";
top=_90e.top+"px";
}
},setZIndex:function(node){
if(!this.iframe){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.style.zIndex=node;
}
}
},show:function(){
if(this.iframe){
this.iframe.style.display="block";
}
},hide:function(){
if(this.iframe){
this.iframe.style.display="none";
}
},remove:function(){
if(this.iframe){
dojo.html.removeNode(this.iframe,true);
delete this.iframe;
this.iframe=null;
}
}});
dojo.provide("dojo.widget.PopupContainer");
dojo.declare("dojo.widget.PopupContainerBase",null,function(){
this.queueOnAnimationFinish=[];
},{isContainer:true,templateString:"<div dojoAttachPoint=\"containerNode\" style=\"display:none;position:absolute;\" class=\"dojoPopupContainer\" ></div>",isShowingNow:false,currentSubpopup:null,beginZIndex:1000,parentPopup:null,parent:null,popupIndex:0,aroundBox:dojo.html.boxSizing.BORDER_BOX,openedForWindow:null,processKey:function(evt){
return false;
},applyPopupBasicStyle:function(){
with(this.domNode.style){
display="none";
position="absolute";
}
},aboutToShow:function(){
},open:function(x,y,_913,_914,_915,_916){
if(this.isShowingNow){
return;
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.aboutToShow();
var _917=false,node,_919;
if(typeof x=="object"){
node=x;
_919=_914;
_914=_913;
_913=y;
_917=true;
}
this.parent=_913;
dojo.body().appendChild(this.domNode);
_914=_914||_913["domNode"]||[];
var _91a=null;
this.isTopLevel=true;
while(_913){
if(_913!==this&&(_913.setOpenedSubpopup!=undefined&&_913.applyPopupBasicStyle!=undefined)){
_91a=_913;
this.isTopLevel=false;
_91a.setOpenedSubpopup(this);
break;
}
_913=_913.parent;
}
this.parentPopup=_91a;
this.popupIndex=_91a?_91a.popupIndex+1:1;
if(this.isTopLevel){
var _91b=dojo.html.isNode(_914)?_914:null;
dojo.widget.PopupManager.opened(this,_91b);
}
if(this.isTopLevel&&!dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
this._bookmark=dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.getBookmark);
}else{
this._bookmark=null;
}
if(_914 instanceof Array){
_914={left:_914[0],top:_914[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_917){
this.move(node,_916,_919);
}else{
this.move(x,y,_916,_915);
}
this.domNode.style.display="none";
this.explodeSrc=_914;
this.show();
this.isShowingNow=true;
},move:function(x,y,_91e,_91f){
var _920=(typeof x=="object");
if(_920){
var _921=_91e;
var node=x;
_91e=y;
if(!_921){
_921={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_91e,this.aroundBox,_921);
}else{
if(!_91f){
_91f="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_91e,true,_91f);
}
},close:function(_923){
if(_923){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_923);
this.hide();
if(this.bgIframe){
this.bgIframe.hide();
this.bgIframe.size({left:0,top:0,width:0,height:0});
}
if(this.isTopLevel){
dojo.widget.PopupManager.closed(this);
}
this.isShowingNow=false;
if(this.parent){
setTimeout(dojo.lang.hitch(this,function(){
try{
if(this.parent["focus"]){
this.parent.focus();
}else{
this.parent.domNode.focus();
}
}
catch(e){
dojo.debug("No idea how to focus to parent",e);
}
}),10);
}
if(this._bookmark&&dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
if(this.openedForWindow){
this.openedForWindow.focus();
}
try{
dojo.withGlobal(this.openedForWindow||dojo.global(),"moveToBookmark",dojo.html.selection,[this._bookmark]);
}
catch(e){
}
}
this._bookmark=null;
},closeAll:function(_924){
if(this.parentPopup){
this.parentPopup.closeAll(_924);
}else{
this.close(_924);
}
},setOpenedSubpopup:function(_925){
this.currentSubpopup=_925;
},closeSubpopup:function(_926){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_926);
this.currentSubpopup=null;
},onShow:function(){
dojo.widget.PopupContainer.superclass.onShow.apply(this,arguments);
this.openedSize={w:this.domNode.style.width,h:this.domNode.style.height};
if(dojo.render.html.ie){
if(!this.bgIframe){
this.bgIframe=new dojo.html.BackgroundIframe();
this.bgIframe.setZIndex(this.domNode);
}
this.bgIframe.size(this.domNode);
this.bgIframe.show();
}
this.processQueue();
},processQueue:function(){
if(!this.queueOnAnimationFinish.length){
return;
}
var func=this.queueOnAnimationFinish.shift();
var args=this.queueOnAnimationFinish.shift();
func.apply(this,args);
},onHide:function(){
dojo.widget.HtmlWidget.prototype.onHide.call(this);
if(this.openedSize){
with(this.domNode.style){
width=this.openedSize.w;
height=this.openedSize.h;
}
}
this.processQueue();
}});
dojo.widget.defineWidget("dojo.widget.PopupContainer",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase],{});
dojo.widget.PopupManager=new function(){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
this.focusNode=null;
this.registeredWindows=[];
this.registerWin=function(win){
if(!win.__PopupManagerRegistered){
dojo.event.connect(win.document,"onmousedown",this,"onClick");
dojo.event.connect(win,"onscroll",this,"onClick");
dojo.event.connect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=true;
this.registeredWindows.push(win);
}
};
this.registerAllWindows=function(_92a){
if(!_92a){
_92a=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_92a);
for(var i=0;i<_92a.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_92a.frames[i].document);
if(win){
this.registerAllWindows(win);
}
}
catch(e){
}
}
};
this.unRegisterWin=function(win){
if(win.__PopupManagerRegistered){
dojo.event.disconnect(win.document,"onmousedown",this,"onClick");
dojo.event.disconnect(win,"onscroll",this,"onClick");
dojo.event.disconnect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=false;
}
};
this.unRegisterAllWindows=function(){
for(var i=0;i<this.registeredWindows.length;++i){
this.unRegisterWin(this.registeredWindows[i]);
}
this.registeredWindows=[];
};
dojo.addOnLoad(this,"registerAllWindows");
dojo.addOnUnload(this,"unRegisterAllWindows");
this.closed=function(menu){
if(this.currentMenu==menu){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
}
};
this.opened=function(menu,_931){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_931;
};
this.setFocusedMenu=function(menu){
this.currentFocusMenu=menu;
};
this.onKey=function(e){
if(!e.key){
return;
}
if(!this.currentMenu||!this.currentMenu.isShowingNow){
return;
}
var m=this.currentFocusMenu;
while(m){
if(m.processKey(e)){
e.preventDefault();
e.stopPropagation();
break;
}
m=m.parentPopup;
}
},this.onClick=function(e){
if(!this.currentMenu){
return;
}
var _936=dojo.html.getScroll().offset;
var m=this.currentMenu;
while(m){
if(dojo.html.overElement(m.domNode,e)||dojo.html.isDescendantOf(e.target,m.domNode)){
return;
}
m=m.currentSubpopup;
}
if(this.currentButton&&dojo.html.overElement(this.currentButton,e)){
return;
}
this.currentMenu.close();
};
};
dojo.provide("dojo.widget.Tooltip");
dojo.widget.defineWidget("dojo.widget.Tooltip",[dojo.widget.ContentPane,dojo.widget.PopupContainerBase],{caption:"",showDelay:500,hideDelay:100,connectId:"",templateCssString:".dojoTooltip {\n	border: solid black 1px;\n	background: beige;\n	color: black;\n	position: absolute;\n	font-size: small;\n	padding: 2px 2px 2px 2px;\n	z-index: 10;\n	display: block;\n}\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/TooltipTemplate.css"),fillInTemplate:function(args,frag){
if(this.caption!=""){
this.domNode.appendChild(document.createTextNode(this.caption));
}
this._connectNode=dojo.byId(this.connectId);
dojo.widget.Tooltip.superclass.fillInTemplate.call(this,args,frag);
this.addOnLoad(this,"_loadedContent");
dojo.html.addClass(this.domNode,"dojoTooltip");
var _93a=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_93a);
this.applyPopupBasicStyle();
},postCreate:function(args,frag){
dojo.event.connect(this._connectNode,"onmouseover",this,"_onMouseOver");
dojo.widget.Tooltip.superclass.postCreate.call(this,args,frag);
},_onMouseOver:function(e){
this._mouse={x:e.pageX,y:e.pageY};
if(!this._tracking){
dojo.event.connect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=true;
}
this._onHover(e);
},_onMouseMove:function(e){
this._mouse={x:e.pageX,y:e.pageY};
if(dojo.html.overElement(this._connectNode,e)||dojo.html.overElement(this.domNode,e)){
this._onHover(e);
}else{
this._onUnHover(e);
}
},_onHover:function(e){
if(this._hover){
return;
}
this._hover=true;
if(this._hideTimer){
clearTimeout(this._hideTimer);
delete this._hideTimer;
}
if(!this.isShowingNow&&!this._showTimer){
this._showTimer=setTimeout(dojo.lang.hitch(this,"open"),this.showDelay);
}
},_onUnHover:function(e){
if(!this._hover){
return;
}
this._hover=false;
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
if(this.isShowingNow&&!this._hideTimer){
this._hideTimer=setTimeout(dojo.lang.hitch(this,"close"),this.hideDelay);
}
if(!this.isShowingNow){
dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=false;
}
},open:function(){
if(this.isShowingNow){
return;
}
dojo.widget.PopupContainerBase.prototype.open.call(this,this._mouse.x,this._mouse.y,null,[this._mouse.x,this._mouse.y],"TL,TR,BL,BR",[10,15]);
},close:function(){
if(this.isShowingNow){
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
if(this._hideTimer){
clearTimeout(this._hideTimer);
delete this._hideTimer;
}
dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=false;
dojo.widget.PopupContainerBase.prototype.close.call(this);
}
},_position:function(){
this.move(this._mouse.x,this._mouse.y,[10,15],"TL,TR,BL,BR");
},_loadedContent:function(){
if(this.isShowingNow){
this._position();
}
},checkSize:function(){
},uninitialize:function(){
this.close();
dojo.event.disconnect(this._connectNode,"onmouseover",this,"_onMouseOver");
}});
dojo.provide("ag.widget.ProductDetailPane");
dojo.widget.defineWidget("ag.widget.ProductDetailPane",[dojo.widget.ContentPane],{templateString:"<div>\n<div class=\"agi-tabless\">\n                    <span > \n                        <img src=\"${this.imghost}/${this.imgbase}/details/card_details.gif\" \n                            width=\"112\" height=\"18\" \n                            alt=\"ecard detail\" \n                            border=\"0\" title=\"ecard detail\" />\n                    </span>\n                    <span class=\"quicksend-button clickable\"  dojoAttachEvent=\"onClick:switchPanes\">  \n                            <img    src=\"${this.imghost}/${this.imgbase}/details/quick_send.gif\" \n                                    width=\"108\" height=\"18\" \n                                    alt=\"quick send\" border=\"0\" \n                                    title=\"quick send\" />\n                    </span>\n                    <br clear=\"all\" />\n</div>\n<div class=\"detail-panel\" id=\"detail-panel-${this.productNumber}\" > \n    <div class=\"agi-largethumb\"><a href=\"${this.display_url}\"><img id=\"largethumb-${this.productNumber}\" src=\"${this.bigThumbUrl}\" width=\"200\" height=\"108\" alt=\"${this.title}\" border=\"0\" title=\"${this.title}\" /></a></div>\n\n    <div class=\"agi-ratewithcard\">\n    <div id=\"agi-${this.rating_owned}rating\" class=\"agi-ratingsection\">\n        <ul class=\"star-rating\">\n          <li id=\"current-pop-rating\" class=\"current-rating\" style=\"width: ${this.rating_pct}%;\">&nbsp;</li>\n          <li><span title=\"I hate it!\" class=\"one-star\"></span></li>\n          <li><span title=\"I don't like it\" class=\"two-stars\"></span></li>\n          <li><span title=\"It's Ok\" class=\"three-stars\"></span></li>\n          <li><span title=\"I like it\" class=\"four-stars\"></sspan></li>\n        </ul>\n    </div>\n	\n	<strong class=\"agi-ratetext\">${this.rating_owned} rating</strong>\n	\n	<div style=\"clear:both;\"></div>\n	\n    </div>\n	</div>\n	\n	\n    <div id=\"agi-largethumbdetail\">\n        <h2>${this.title}</h2>\n        <p>\n            <strong>ecard message</strong>\n               ${this.synopsis} \n        </p>    \n        <div class=\"agi-button\">\n            <a href=\"${this.display_url}\">\n                <img src=\"${this.imghost}/${this.imgbase}/button/viewecard.gif\" \n                     border=\"0\" width=\"110\" height=\"20\" \n                     alt=\"view ecard\" title=\"view ecard\"/>\n            </a>\n        </div>\n    </div>\n</div> \n</div>\n",title:"",synopsis:"",productNumber:"",display_url:"",connectId:"",bigThumbUrl:"",price:"",imghost:"",imgbase:"",ahost:"",khost:"",pathNumber:"",rating_pct:0,rating_owned:"average",fromNode:true,fromAjax:false,buildRendering:function(args,frag){
this.parent=null;
this._connectNode=dojo.byId(this.connectId);
if(this.fromNode&&!this.fromAjax){
this.title=(dojo.html.getElementsByClass("title",this._connectNode,"a")[0]).firstChild.nodeValue;
synopsisNode=dojo.html.getElementsByClass("synopsis",this._connectNode,"dd")[0];
if(synopsisNode.firstChild!=null){
this.synopsis=synopsisNode.firstChild.nodeValue;
}else{
this.synopsis="";
}
this.display_url=(dojo.html.getElementsByClass("title",this._connectNode,"a")[0]).getAttribute("href");
this.bigThumbUrl=(dojo.html.getElementsByClass("big-thumb",this._connectNode,"img")[0]).getAttribute("src");
formatNode=dojo.html.getElementsByClass("format",this._connectNode,"dd")[0];
if(formatNode.hasChildNodes()){
this.format=formatNode.firstChild.nodeValue;
}
}
ag.widget.ProductDetailPane.superclass.buildRendering.call(this,args,frag);
},switchPanes:function(){
dojo.debug("switching panes 2");
}});
dojo.provide("ag.widget.QuickSendPane");
dojo.widget.defineWidget("ag.widget.QuickSendPane",[dojo.widget.ContentPane],{templateString:"<div>\n\n<div class=\"agi-tabless\">\n    <span class=\"clickable\" dojoAttachEvent=\"onClick:switchPanes\" ><img src=\"${this.imghost}/${this.imgbase}/details/gray_card_details.gif\" width=\"112\" height=\"18\" alt=\"card details\" border=\"0\" /></span>\n    <span><img src=\"${this.imghost}/${this.imgbase}/details/red_quick_send.gif\" width=\"108\" height=\"18\" alt=\"quick send\" border=\"0\" title=\"quick send\"/></span><br style=\"clear:both;\" />\n</div>\n\n<div class=\"agi-quickpad\">\n<div class=\"agi-formpage\">\n    <form action=\"${this.khost}/ecards/custom.pd\" id=\"form-%(productnumber)s\" method=\"POST\" onsubmit=\"return debounce(this,null,20);\">\n        <fieldset>\n        <div class=\"agi-poppertitle\">to</div>\n        <label for=\"toemail-${this.productNumber}\">email</label><span><textarea cols=\"60\" rows=\"2\" dojoAttachEvent=\"onFocus:getAddress\" name=\"toemail\" id=\"toemail-${this.productNumber}\" class=\"to-email\"></textarea></span>\n        </fieldset>\n        <fieldset>\n        <div class=\"agi-poppertitle\">from</div>\n        <label for=\"fromname\">name</label><span>${this.from_name}</span>\n        <label for=\"fromemail\">email</label><span>${this.from_email}</span>\n        <label for=\"frommessage\">message</label><span><textarea name=\"pn1465\" id=\"frommessage\" class=\"quicksend-message\"></textarea></span>\n        </fieldset>\n        <div class=\"agi-buttons\">\n            <div class=\"agi-button\"><input type=\"image\" class=\"send-button\" onClick=\"this.form.action.value='send';this.form.action.name='btnSend'\" src=\"${this.imghost}/${this.imgbase}/button/sendecard.gif\" style=\"width:110px;height:20px;\" /></div>\n            <div class=\"agi-button\"><input type=\"image\"  class=\"preview-button\"  onClick=\"this.form.action.value='preview'; this.form.action.name='btnPreview'\"  src=\"${this.imghost}/${this.imgbase}/button/preview.gif\" style=\"width:80px;height:20px;\" /></div>\n        </div>\n        <input type=\"hidden\" name=\"action\" value=\"\" />\n        <input type=\"hidden\" name=\"prodnum\" value=\"${this.productNumber}\" />\n        <input type=\"hidden\" name=\"path\" value=\"${this.pathNumber}\" />\n        <input type=\"hidden\" name=\"blnquicksend\" value=\"1\"/>\n        <input type=\"hidden\" name=\"notify_nopickup\" value=\"Y\" />\n        <input type=\"hidden\" name=\"reply_request\" value=\"Y\" />\n        <input type=\"hidden\" name=\"cc_sender\" value=\"Y\" />\n    </form>\n</div>\n</div>\n\n</div>\n",imghost:"",imgbase:"agbeta",email_address:"",from_email:"",full_name:"",from_name:"",ahost:"",khost:"",productNumber:"",pathNumber:"",customerType:"free",displayUrl:"",switchPanes:function(){
dojo.debug("starting switchpanes");
},getAddress:function(evt){
connectAutoComplete("toemail-"+this.productNumber);
},buildRendering:function(args,frag){
if(this.email_address!=""){
this.from_email="<input id=fromemail type=\"text\" maxlength=75 name=fromemail class=agi-lazyinput disabled=disabled  value='"+this.email_address+"' />";
}else{
this.from_email="<input id=fromemail type=\"text\" maxlength=75 name=fromemail value='' />";
}
this.from_name="<input id=fromname type=text maxlength=75 name=fromname value='"+this.full_name+"' />";
ag.widget.QuickSendPane.superclass.buildRendering.call(this,args,frag);
}});
dojo.provide("ag.widget.FreeQuickSendPane");
dojo.widget.defineWidget("ag.widget.FreeQuickSendPane",[ag.widget.QuickSendPane],{templateString:"<div>\n        <div class=\"agi-tabless\">\n            <span class=\"clickable\" dojoAttachEvent=\"onClick:switchPanes\" ><img src=\"${this.imghost}/${this.imgbase}/details/gray_card_details.gif\" width=\"112\" height=\"18\" alt=\"card details\" border=\"0\" /></span>\n            <span><img src=\"${this.imghost}/${this.imgbase}/details/red_quick_send.gif\" width=\"108\" height=\"18\" alt=\"quick send\" border=\"0\" title=\"quick send\"/></span>\n            <br clear=\"all\" />\n        </div>\n		\n        <div class=\"agi-quickpad\">\n			<p>You must be a paid member to quick send this card. Please sign in or join now to send.</p>\n        </div>\n		\n		<div class=\"agi-buttons\">\n			<div class=\"agi-button\"><a href=\"javascript:doJoin()\"><img src=\"${this.imghost}/${this.imgbase}/button/joinnow.gif\" border=\"0\"/></a></div>\n       		<div class=\"agi-button\"><a  href=\"${this.display_url}\"><img src=\"${this.imghost}/${this.imgbase}/button/viewecard.gif\" border=\"0\" width=\"110\" height=\"20\" alt=\"view ecard\" title=\"view ecard\"/></a></div>\n        </div>\n</div>     \n"});
dojo.provide("ag.widget.Popper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.Popper",[dojo.widget.Tooltip],{templateString:null,templateString:"<div \n    style=\"display:none;position:absolute;\" \n    id=\"popper-contents\" \n    class=\"agi-detailpopup\">\n\n    <div class=\"agi-close\">\n        <span>${this.format} ${this.mature_message}</span>     \n        <img class=\"pop-closer\" src=\"${this.imghost}/${this.imgbase}/x.gif\"/> \n    </div>\n</div>\n",templateCssPath:"",productNumber:"",title:"",synopsis:"",smallThumbUrl:"",path:"",displayUrl:"",detailPaneClass:"ProductDetailPane",imghost:"",imgbase:"agbeta",ahost:"",khost:"",format:"",isQuickSend:true,customerType:"free",rating_pct:0,rating_owned:"average",fromNode:true,beginZIndex:300,dataId:"",showDelay:800,hideDelay:200,price:1,email_address:"",full_name:"",mature_flag:false,mature_message:"",_quickSendPane:null,_productDetailPane:null,_dataNode:null,isLoaded:false,initialize:function(args,frag,_948){
ag.widget.Popper.superclass.initialize(this,args,frag,_948);
if(!this.isQuickSend){
dojo.html.addClass(this.domNode,"non-quicksend");
}
this.parent=null;
},_handleSynopsis:function(_949){
if(_949.length>250){
_949=_949.substring(0,_949.indexOf(" ",250))+"...";
}
return _949;
},buildRendering:function(args,frag){
if(this.fromNode){
var _94c="";
this._dataNode=dojo.byId(this.dataId);
var qs=(dojo.html.getElementsByClass("isquicksend",this._dataNode,"dd")[0]).firstChild.nodeValue;
if(qs.indexOf("True")>-1){
this.isQuickSend=true;
}else{
this.isQuickSend=false;
}
this.title=(dojo.html.getElementsByClass("title",this._dataNode)[0]).getAttribute("title");
this.price=(dojo.html.getElementsByClass("price",this._dataNode,"dd")[0]).firstChild.nodeValue;
synopsisNode=(dojo.html.getElementsByClass("synopsis",this._dataNode,"dd")[0]);
if(synopsisNode.firstChild!==null){
_94c=synopsisNode.innerHTML;
}
this.synopsis=this._handleSynopsis(_94c);
this.displayUrl=(dojo.html.getElementsByClass("title",this._dataNode)[0]).getAttribute("href");
this.bigThumbUrl=(dojo.html.getElementsByClass("large-preview",this._dataNode,"dd")[0]).firstChild.nodeValue;
this.smallThumbUrl=(dojo.html.getElementsByClass("small-thumb",this._dataNode,"img")[0]).getAttribute("src");
mature_nodes=dojo.html.getElementsByClass("mature",this._dataNode,"dd");
if(mature_nodes.length>0){
mature=mature_nodes[0].firstChild.nodeValue;
if(mature.indexOf("1")>-1){
this.mature_flag=true;
}else{
this.mature_flag=false;
}
if(this.mature_flag){
this.mature_message="&nbsp;(mature)";
}else{
this.mature_message="";
}
}else{
this.mature_message="";
}
dojo.debug("mature flag is "+this.mature_flag);
customerTypeNode=(dojo.html.getElementsByClass("customertype",this._dataNode,"dd")[0]);
if(customerTypeNode.hasChildNodes()){
var cust=customerTypeNode.firstChild.nodeValue;
if(cust.indexOf("free")>-1){
this.customerType="free";
}else{
this.customerType="pay";
}
}
formatNode=dojo.html.getElementsByClass("format",this._dataNode,"dd")[0];
if(formatNode.hasChildNodes()){
this.format=formatNode.firstChild.nodeValue;
}
pathNode=dojo.html.getElementsByClass("path",this._dataNode,"dd")[0];
if(pathNode.hasChildNodes()){
this.path=pathNode.firstChild.nodeValue;
}
this.rating_pct=(dojo.html.getElementsByClass("rating_pct",this._dataNode,"dd")[0]).firstChild.nodeValue;
this.rating_owned=(dojo.html.getElementsByClass("rating_owned",this._dataNode,"dd")[0]).firstChild.nodeValue;
}
ckname=get_cookie_name("customer");
if(this.customerType!="free"||get_cookie_value(ckname,"status")==5){
this.email_address=AGCookie.getCookieValue("customer","email");
if(this.email_address=="null"){
this.email_address="";
}
var _94f=AGCookie.getCookieValue("customer","name");
var _950=AGCookie.getCookieValue("customer","lname");
if(_94f=="null"){
_94f="";
}
if(_950=="null"){
_950="";
}
this.full_name=_94f+" "+_950;
}
ag.widget.Popper.superclass.buildRendering.call(this,args,frag);
},postCreate:function(args,frag){
dojo.event.connectOnce(this._connectNode,"onmouseover",this,"_onMouseOver");
dojo.event.connectOnce(this.domNode,"onmouseover",this,"_onMouseOver");
dojo.event.connectOnce(this._connectNode,"onmouseout",this,"_onMouseOver");
dojo.event.connectOnce(this.domNode,"onmouseout",this,"_onMouseOver");
},uninitialize:function(){
dojo.widget.Tooltip.prototype.uninitialize.call(this);
dojo.event.disconnect(this.domNode,"onmouseover",this,"_onMouseOver");
dojo.event.disconnect(this._connectNode,"onmouseover",this,"_onMouseOver");
dojo.event.disconnect(this.domNode,"onmouseout",this,"_onMouseOver");
dojo.event.disconnect(this._connectNode,"onmouseout",this,"_onMouseOver");
},open:function(){
if(this.isShowingNow||dojo.widget.PopupManager.quickSendActive){
return;
}
if(this.point!==undefined){
this._popHere(this.point);
}else{
pos=dojo.html.abs(this._connectNode,true);
vpWidth=dojo.html.getViewport().width;
if((pos.x+400)>vpWidth){
this._popLeft(pos);
}else{
this._popRight(pos);
}
}
},_hasProductDetailPane:function(){
return this._productDetailPane!==null;
},_hasQuickSendPane:function(){
return this._quickSendPane!==null;
},_setProductDetailPane:function(pane){
this._productDetailPane=pane;
},_setQuickSendPane:function(pane){
this._quickSendPane=pane;
},destroy:function(_955){
this.parent=null;
ag.widget.Popper.superclass.destroy.call(this,_955);
},aboutToShow:function(){
if(!this._hasProductDetailPane()){
detailPane=dojo.widget.createWidget(this.detailPaneClass,{connectId:this.connectId,title:this.title,price:this.price,imghost:this.imghost,imgbase:this.imgbase,ahost:this.ahost,khost:this.khost,productNumber:this.productNumber,pathNumber:this.path,synopsis:this.synopsis,bigThumbUrl:this.bigThumbUrl,display_url:this.displayUrl,rating_pct:this.rating_pct,rating_owned:this.rating_owned,email_address:this.email_address,full_name:this.full_name,customerTyoe:this.customerType,fromNode:false,mature_flag:this.mature_flag},null);
this.addChild(detailPane);
this._productDetailPane=detailPane;
}
if(!this._hasQuickSendPane()){
if(this.customerType=="free"&&parseInt(this.price)!=0){
paneClass="FreeQuickSendPane";
}else{
paneClass="QuickSendPane";
}
qsPane=dojo.widget.createWidget(paneClass,{productNumber:this.productNumber,imghost:this.imghost,imgbase:this.imgbase,ahost:this.ahost,khost:this.khost,pathNumber:this.path,display_url:this.displayUrl,email_address:this.email_address,full_name:this.full_name,customerType:this.customerType,fromNode:false,mature_flag:this.mature_flag});
this.addChild(qsPane);
this._quickSendPane=qsPane;
}
dojo.event.connect(this._quickSendPane,"switchPanes",this,"showDetailPane");
dojo.event.connect(this._productDetailPane,"switchPanes",this,"showQuickSendPane");
this._quickSendPane.hide();
this._productDetailPane.show();
},setDetailPane:function(pane){
this._productDetailPane=pane;
this.addChild(pane);
},setQuickSendPane:function(pane){
this._quickSendPane=pane;
this.addChild(pane);
},showDetailPane:function(){
dojo.widget.PopupManager.quickSendActive=false;
this._quickSendPane.hide();
this._productDetailPane.show();
},showQuickSendPane:function(){
dojo.widget.PopupManager.quickSendActive=true;
this._productDetailPane.hide();
this._quickSendPane.show();
},forceClose:function(){
dojo.widget.PopupManager.quickSendActive=false;
this.close();
},close:function(){
if(dojo.widget.PopupManager.quickSendActive){
return;
}else{
dojo.widget.PopupManager.quickSendActive=false;
dojo.widget.Tooltip.prototype.close.call(this,close);
dojo.html.removeClass(this._connectNode,"popped_right");
dojo.html.removeClass(this._connectNode,"popped_left");
this.postCreate();
}
},_popRight:function(pos){
this.domNode.style.top=-1000;
this.domNode.style.left=-1000;
dojo.html.addClass(this._connectNode,"popped_right");
dojo.widget.PopupContainerBase.prototype.open.call(this,pos.x+100,pos.y-50,pos.x+100,pos.y-50,this._connectNode,null,[0,15]);
},_popLeft:function(pos){
dojo.html.addClass(this._connectNode,"popped_left");
dojo.widget.PopupContainerBase.prototype.open.call(this,pos.x-280,pos.y-50,pos.x-280,pos.y-50,this._connectNode,null,[0,15]);
},_popHere:function(_95a){
dojo.widget.PopupContainerBase.prototype.open.call(this,_95a.x,_95a.y,_95a.x,_95a.y,this._connectNode,null,[0,15]);
},fillInTemplate:function(args,frag){
ag.widget.Popper.superclass.fillInTemplate.call(this,args,frag);
dojo.html.removeClass(this.domNode,"dojoTooltip");
closeEl=getElementByClass("agi-close",this.domNode,"div");
dojo.event.connect(closeEl,"onclick",this,"forceClose");
}});
getElementByClass=function(cls,el,tag){
return dojo.html.getElementsByClass(cls,el,tag)[0];
};
dojo.provide("ag.widget.FreePrintablesDetailPane");
dojo.widget.defineWidget("ag.widget.FreePrintablesDetailPane",[ag.widget.ProductDetailPane],{templateString:"<div>\n<div class=\"agi-tabless\">\n                    <span> \n                        <img src=\"${this.imghost}/${this.imgbase}/details/printable_details.gif\" \n                            width=\"177\" height=\"18\" \n                            alt=\"create &#38; print detail\" \n                            border=\"0\" title=\"create &#38; print detail\" />\n                    </span>\n                    <br clear=\"all\" />\n</div>\n<div class=\"detail-panel\" id=\"detail-panel-${this.productNumber}\" > \n    <div class=\"agi-largethumb\"><a href=\"${this.display_url}\"><img id=\"largethumb-${this.productNumber}\" src=\"${this.bigThumbUrl}\" width=\"200\" height=\"200\" alt=\"${this.title}\" border=\"0\" title=\"${this.title}\" /></a></div>\n    </div>\n    <div id=\"agi-largethumbdetail\">\n        <h2>${this.title}</h2>\n        <br>\n        <p>\n               ${this.synopsis} \n        </p>    \n        <div class=\"agi-button\">\n            <p><a href=\"${this.display_url}\"><img src=\"${this.imghost}/${this.imgbase}/button/viewdetails_cp.gif\" \n                     border=\"0\" width=\"145\" height=\"20\" \n                     alt=\"view create &#38; print product\" title=\"view create &#38; print product\"/></a></p>\n            <p><a href=\"javascript:doJoin()\"><img src=\"${this.imghost}/${this.imgbase}/button/joinnowtoprint.gif\"\n                    border=\"0\" width=\"145\" height=\"20\"\n                    alt=\"join now to print\" title=\"join now to print\"/></a></p>\n        </div>\n    </div>\n</div> \n</div>\n"});
dojo.provide("ag.widget.PrintablesDetailPane");
dojo.widget.defineWidget("ag.widget.PrintablesDetailPane",[ag.widget.ProductDetailPane],{templateString:"<div>\n<div class=\"agi-tabless\">\n                    <span> \n                        <img src=\"${this.imghost}/${this.imgbase}/details/printable_details.gif\" \n                            width=\"177\" height=\"18\" \n                            alt=\"create &#38; print detail\" \n                            border=\"0\" title=\"create &#38; print detail\" />\n                    </span>\n                    <br clear=\"all\" />\n</div>\n<div class=\"detail-panel\" id=\"detail-panel-${this.productNumber}\" > \n    <div class=\"agi-largethumb\"><a href=\"${this.display_url}\"><img id=\"largethumb-${this.productNumber}\" src=\"${this.bigThumbUrl}\" width=\"200\" height=\"200\" alt=\"${this.title}\" border=\"0\" title=\"${this.title}\" /></a></div>\n\n    <div class=\"agi-ratewithcard\">\n    <div id=\"agi-${this.rating_owned}rating\" class=\"agi-ratingsection\">\n        <ul class=\"star-rating\">\n          <li id=\"current-pop-rating\" class=\"current-rating\" style=\"width: ${this.rating_pct}%;\">&nbsp;</li>\n          <li><span title=\"I hate it!\" class=\"one-star\"></span></li>\n          <li><span title=\"I don't like it\" class=\"two-stars\"></span></li>\n          <li><span title=\"It's Ok\" class=\"three-stars\"></span></li>\n          <li><span title=\"I like it\" class=\"four-stars\"></sspan></li>\n        </ul>\n    </div>\n	\n	<strong class=\"agi-ratetext\">${this.rating_owned} rating</strong>\n	\n	<div style=\"clear:both;\"></div>\n	\n    </div>\n    </div>\n    <div id=\"agi-largethumbdetail\">\n        <h2>${this.title}</h2>\n        <br>\n        <p>\n               ${this.synopsis} \n        </p>    \n        <div class=\"agi-button\">\n            <p><a href=\"${this.display_url}\"><img src=\"${this.imghost}/${this.imgbase}/button/viewdetails_cp.gif\" \n                     border=\"0\" width=\"145\" height=\"20\" \n                     alt=\"view create &#38; print product\" title=\"view create &#38; print product\"/></a></p>\n            <span id=\"prx${this.productNumber}\"></span>\n        </div>\n    </div>\n</div> \n</div>\n",postCreate:function(args,frag){
ag.widget.PrintablesDetailPane.superclass.postCreate.call(this,args,frag);
if(this.plugin_url){
var _962=this.imghost+"/cp";
var _963=this.imghost+"/"+this.imgbase+"/button/print.gif";
var _964=145;
var _965=20;
var _966=0;
var _id="prx"+this.productNumber;
set_cphost(_962);
write_pers_button(_963,this.plugin_url,_964,_965,_966,_id);
}
}});
dojo.provide("ag.widget.PrintablesPopper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.PrintablesPopper",[ag.widget.Popper],{plugin_url:"",aboutToShow:function(){
if(!this._hasProductDetailPane()){
var _968=this.customerType.toLowerCase().replace(/\s+$/g,"");
if(_968=="free"&&Number(this.price)>0){
detailPaneClass="FreePrintablesDetailPane";
}else{
detailPaneClass="PrintablesDetailPane";
}
detailPane=dojo.widget.createWidget(detailPaneClass,{connectId:this.connectId,title:this.title,imghost:this.imghost,imgbase:this.imgbase,ahost:this.ahost,khost:this.khost,productNumber:this.productNumber,pathNumber:this.path,synopsis:this.synopsis,bigThumbUrl:this.bigThumbUrl,display_url:this.displayUrl,rating_pct:this.rating_pct,rating_owned:this.rating_owned,fromNode:false,plugin_url:this.plugin_url},null);
this.addChild(detailPane);
this._productDetailPane=detailPane;
}
this._productDetailPane.show();
},buildRendering:function(args,frag){
if(this.fromNode){
this.plugin_url="";
var _96b=dojo.byId(this.dataId);
var _96c=(dojo.html.getElementsByClass("plugin_url",_96b,"dd")[0]).firstChild;
if(_96c){
this.plugin_url=_96c.nodeValue;
}
}
ag.widget.PrintablesPopper.superclass.buildRendering.call(this,args,frag);
}});
dojo.provide("ag.widget.InvitationsDetailPane");
dojo.widget.defineWidget("ag.widget.InvitationsDetailPane",[ag.widget.ProductDetailPane],{format:"",templateString:"<div>\n<div class=\"agi-tabless\">\n                    <span> \n                        <img src=\"${this.imghost}/${this.imgbase}/details/invitations_details.gif\" \n                            width=\"107\" height=\"18\" \n                            alt=\"invitations details\" \n                            border=\"0\" title=\"invitations details\" />\n                    </span>\n                    <br clear=\"all\" />\n</div>\n<div class=\"detail-panel\" id=\"detail-panel-${this.productNumber}\" > \n    <div class=\"agi-largethumb\"><a href=\"${this.display_url}\"><img id=\"largethumb-${this.productNumber}\" src=\"${this.bigThumbUrl}\" width=\"200\" height=\"108\" alt=\"${this.title}\" border=\"0\" title=\"${this.title}\" /></a></div>\n    </div>\n    <div id=\"agi-largethumbdetail\">\n        <h2>${this.title}</h2>\n        <p>\n           ${this.synopsis} \n        </p>    \n        <div class=\"agi-button\">\n            <a href=\"${this.display_url}\">\n                <img src=\"${this.imghost}/${this.imgbase}/button/viewinvitations.gif\" \n                     border=\"0\" width=\"108\" height=\"20\" \n                     alt=\"view invitations\" title=\"view invitations\"/>\n            </a>\n        </div>\n    </div>\n</div> \n</div>\n"});
dojo.provide("ag.widget.InvitationsPopper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.InvitationsPopper",[ag.widget.Popper],{aboutToShow:function(){
dojo.debug(this.rating_pct);
if(!this._hasProductDetailPane()){
dojo.debug("type: "+this.customerType+" price: "+this.price);
detailPaneClass="InvitationsDetailPane";
detailPane=dojo.widget.createWidget(detailPaneClass,{connectId:this.connectId,title:this.title,imghost:this.imghost,imgbase:this.imgbase,ahost:this.ahost,khost:this.khost,productNumber:this.productNumber,pathNumber:this.path,synopsis:this.synopsis,bigThumbUrl:this.bigThumbUrl,display_url:this.displayUrl,rating_pct:this.rating_pct,rating_owned:this.rating_owned,format:this.format,fromNode:false},null);
this.addChild(detailPane);
this._productDetailPane=detailPane;
}
this._productDetailPane.show();
}});
dojo.provide("ag.widget.DownloadsDetailPane");
dojo.widget.defineWidget("ag.widget.DownloadsDetailPane",[ag.widget.ProductDetailPane],{format:"",button_name:"",templateString:"<div>\n<div class=\"agi-tabless\">\n                    <span > \n                        <img src=\"${this.imghost}/${this.imgbase}/details/${this.button_name}_details.gif\" \n                             height=\"18\" \n                            alt=\"${this.format} details\" \n                            border=\"0\" title=\"${this.format} details\" />\n                    </span>\n                    <br clear=\"all\" />\n</div>\n<div class=\"detail-panel\" id=\"detail-panel-${this.productNumber}\" > \n    <div class=\"agi-largethumb\"><a href=\"${this.display_url}\"><img id=\"largethumb-${this.productNumber}\" src=\"${this.bigThumbUrl}\" width=\"200\" height=\"150\" alt=\"${this.title}\" border=\"0\" title=\"${this.title}\" /></a></div>\n\n    </div>\n    <div id=\"agi-largethumbdetail\">\n        <h2>${this.title}</h2>\n        <p>\n           ${this.synopsis} \n        </p>    \n        <div class=\"agi-button\">\n            <a href=\"${this.display_url}\">\n                <img src=\"${this.imghost}/${this.imgbase}/button/view${this.button_name}.gif\" \n                     border=\"0\" height=\"20\" \n                     alt=\"view downloads\" title=\"view downloads\"/>\n            </a>\n        </div>\n    </div>\n</div> \n</div>\n"});
dojo.provide("ag.widget.DownloadsPopper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.DownloadsPopper",[ag.widget.Popper],{aboutToShow:function(){
dojo.debug(this.rating_pct);
if(!this._hasProductDetailPane()){
dojo.debug("type: "+this.customerType+" price: "+this.price);
detailPaneClass="DownloadsDetailPane";
detailPane=dojo.widget.createWidget(detailPaneClass,{connectId:this.connectId,title:this.title,imghost:this.imghost,imgbase:this.imgbase,ahost:this.ahost,khost:this.khost,productNumber:this.productNumber,pathNumber:this.path,synopsis:this.synopsis,bigThumbUrl:this.bigThumbUrl,display_url:this.displayUrl,rating_pct:this.rating_pct,rating_owned:this.rating_owned,format:this.format,button_name:this.button_name,fromNode:false},null);
this.addChild(detailPane);
this._productDetailPane=detailPane;
}
this._productDetailPane.show();
},buildRendering:function(args,frag){
if(this.fromNode){
this.button_name="";
var _96f=dojo.byId(this.dataId);
var _970=(dojo.html.getElementsByClass("button_name",_96f,"dd")[0]).firstChild;
if(_970){
this.button_name=_970.nodeValue.replace(/ /,"");
}
}
ag.widget.DownloadsPopper.superclass.buildRendering.call(this,args,frag);
}});
dojo.provide("ag.widget.FlashPopper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.FlashPopper",[ag.widget.Popper],{point:{x:0,y:0},initialize:function(args,frag,_973){
ag.widget.FlashPopper.superclass.initialize(this,args,frag,_973);
},open:function(){
if(this.isShowingNow||dojo.widget.PopupManager.quickSendActive){
return;
}
dojo.widget.PopupContainerBase.prototype.open.call(this,this.point.x,this.point.y,this.point.x,this.point.y,null,null,[0,15]);
},postCreate:function(args,frag){
dojo.event.connect(this.domNode,"onmouseover",this,"_onMouseOver");
dojo.event.connect(this.domNode,"onmouseout",this,"_onMouseOver");
}});
dojo.provide("ag.widget.MomDetailPane");
dojo.widget.defineWidget("ag.widget.MomDetailPane",[ag.widget.ProductDetailPane],{format:"",button_name:"",templateString:"<div id=\"mompopper\">\n<img src=\"${this.imghost}${this.thumb_url}\" width=\"125\" height=\"125\" border=\"0\" align=\"left\" style=\"margin: 5px;\">\n<h1>${this.first_name} ${this.last_name}</h1>\n<h2>${this.location}<br/>${this.country}</h2>\n<h3 style=\"padding-top: 15px; padding-bottom: 15px;\"><a href=\"${this.ahost}${this.display_url}\">View Her Page</a></h3>\n<div><img src=\"${this.imghost}/agbeta/md07/popperhp.gif\" alt=\"sponsored by HP\" border=\"0\" /></div>\n</div>\n"});
dojo.provide("ag.widget.MomPopper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.MomPopper",[ag.widget.Popper],{aboutToShow:function(){
dojo.debug(this.rating_pct);
if(!this._hasProductDetailPane()){
dojo.debug("type: "+this.customerType+" price: "+this.price);
detailPaneClass="MomDetailPane";
detailPane=dojo.widget.createWidget(detailPaneClass,{connectId:this.connectId,imghost:this.imghost,ahost:this.ahost,khost:this.khost,display_url:this.display_url,thumb_url:this.thumb_url,format:this.format,first_name:this.first_name,last_name:this.last_name,location:this.location,country:this.country,mom_id:this.mom_id,fromNode:false},null);
this.addChild(detailPane);
this._productDetailPane=detailPane;
}
this._productDetailPane.show();
},buildRendering:function(args,frag){
if(this.fromNode){
var _978=dojo.byId(this.dataId);
this.first_name=(dojo.html.getElementsByClass("first_name",_978,"dd")[0]).firstChild.nodeValue;
this.last_name=(dojo.html.getElementsByClass("last_name",_978,"dd")[0]).firstChild.nodeValue;
this.format=this.first_name+" "+this.last_name;
this.location=(dojo.html.getElementsByClass("location",_978,"dd")[0]).firstChild.nodeValue;
this.country=(dojo.html.getElementsByClass("country",_978,"dd")[0]).firstChild.nodeValue;
this.mom_id=(dojo.html.getElementsByClass("mom_id",_978,"dd")[0]).firstChild.nodeValue;
this.display_url=(dojo.html.getElementsByClass("display_url",_978,"dd")[0]).firstChild.nodeValue;
this.thumb_url=(dojo.html.getElementsByClass("thumb_url",_978,"dd")[0]).firstChild.nodeValue;
}
ag.widget.Popper.superclass.buildRendering.call(this,args,frag);
},_popRight:function(pos){
dojo.html.addClass(this._connectNode,"popped_right");
dojo.widget.PopupContainerBase.prototype.open.call(this,pos.x+60,pos.y-50,pos.x+60,pos.y-50,this._connectNode,null,[0,15]);
},_popLeft:function(pos){
dojo.html.addClass(this._connectNode,"popped_left");
dojo.widget.PopupContainerBase.prototype.open.call(this,pos.x-290,pos.y-50,pos.x-290,pos.y-50,this._connectNode,null,[0,15]);
}});
dojo.provide("ag.widget.PaperCardDetailPane");
dojo.widget.defineWidget("ag.widget.PaperCardDetailPane",[ag.widget.ProductDetailPane],{format:"",button_name:"",templateString:"<div id=\"papercardpopper\">\n<div id=\"cardDetail\"></div>\n<div id=\"agi-paperpopimg\"><img src=\"${this.thumb}\" ></div>\n<div id=\"agi-paperpopdetails\">${this.message}</div>\n</div>\n"});
dojo.provide("ag.widget.PaperCardPopper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.PaperCardPopper",[ag.widget.Popper],{aboutToShow:function(){
dojo.debug(this.rating_pct);
if(!this._hasProductDetailPane()){
detailPaneClass="PaperCardDetailPane";
detailPane=dojo.widget.createWidget(detailPaneClass,{connectId:this.connectId,imghost:this.imghost,thumb:this.thumb,message:this.message,fromNode:false},null);
this.addChild(detailPane);
this._productDetailPane=detailPane;
}
this._productDetailPane.show();
},buildRendering:function(args,frag){
if(this.fromNode){
var _97d=dojo.byId(this.dataId);
this.title=(dojo.html.getElementsByClass("title",_97d,"dd")[0]).firstChild.nodeValue;
this.message=(dojo.html.getElementsByClass("message",_97d,"dd")[0]).innerHTML;
this.thumb=(dojo.html.getElementsByClass("thumb",_97d,"dd")[0]).firstChild.nodeValue;
this.format=this.title;
}
ag.widget.Popper.superclass.buildRendering.call(this,args,frag);
},_popRight:function(pos){
dojo.html.addClass(this._connectNode,"popped_right");
dojo.widget.PopupContainerBase.prototype.open.call(this,pos.x+120,pos.y-120,pos.x+120,pos.y-120,this._connectNode,null,[0,15]);
},_popLeft:function(pos){
dojo.html.addClass(this._connectNode,"popped_left");
dojo.widget.PopupContainerBase.prototype.open.call(this,pos.x-282,pos.y-120,pos.x-282,pos.y-120,this._connectNode,null,[0,15]);
}});
if(!this["dojo"]){
alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");
}
dojo.provide("ag.widget.BMAProductDetailPane");
dojo.widget.defineWidget("ag.widget.BMAProductDetailPane",[dojo.widget.ContentPane],{templateString:"<div>\n<div class=\"agi-tabless\">\n                    <span> \n                        <img src=\"${this.imghost}/bma/details/card_details.gif\" \n                            width=\"119\" height=\"18\" \n                            alt=\"ecard detail\" \n                            border=\"0\" title=\"ecard detail\" />\n                    </span>\n                    <!--span class=\"quicksend-button clickable\"  dojoAttachEvent=\"onClick:switchPanes\">  \n                            <img src=\"${this.imghost}/bma/details/quick_send.gif\" \n                                    width=\"100\" height=\"18\" \n                                    alt=\"quick send\" border=\"0\" \n                                    title=\"quick send\" />\n                    </span-->\n                    <br clear=\"all\" />\n</div>\n<div class=\"detail-panel\" id=\"detail-panel-${this.productNumber}\" > \n    <div class=\"agi-largethumb\"><a href=\"${this.display_url}\"><img id=\"largethumb-${this.productNumber}\" src=\"${this.bigThumbUrl}\" width=\"200\" height=\"108\" alt=\"${this.title}\" border=\"0\" title=\"${this.title}\" /></a></div>\n\n    <!--div class=\"agi-ratewithcard\">\n    <div id=\"agi-${this.rating_owned}rating\" class=\"agi-ratingsection\">\n        <ul class=\"star-rating\">\n          <li id=\"current-pop-rating\" class=\"current-rating\" style=\"width: ${this.rating_pct}%;\">&nbsp;</li>\n          <li><span title=\"I hate it!\" class=\"one-star\"></span></li>\n          <li><span title=\"I don't like it\" class=\"two-stars\"></span></li>\n          <li><span title=\"It's Ok\" class=\"three-stars\"></span></li>\n          <li><span title=\"I like it\" class=\"four-stars\"></span></li>\n        </ul>\n    </div>\n	\n	<strong class=\"agi-ratetext\">${this.rating_owned} rating</strong>\n	\n	<div style=\"clear:both;\"></div>\n	\n    </div-->\n\n	\n	\n    <div id=\"agi-largethumbdetail\">\n        <h2>${this.title}</h2>\n        <p>\n               ${this.synopsis}\n        </p>    \n        <div class=\"agi-button\">\n            <a href=\"${this.display_url}\">\n                <img src=\"${this.imghost}/bma/button/viewecard.gif\" border=\"0\" width=\"104\" height=\"21\" alt=\"view ecard\" title=\"view ecard\" />\n            </a>\n        </div>\n        ${this.join_button}\n    </div>\n</div> \n</div>\n",title:"",synopsis:"",productNumber:"",display_url:"",connectId:"",bigThumbUrl:"",price:"",imghost:"",ahost:"",khost:"",pathNumber:"",rating_pct:0,rating_owned:"average",fromNode:true,fromAjax:false,buildRendering:function(args,frag){
this.parent=null;
this._connectNode=dojo.byId(this.connectId);
if(this.fromNode&&!this.fromAjax){
this.title=(dojo.html.getElementsByClass("title",this._connectNode,"a")[0]).firstChild.nodeValue;
synopsisNode=dojo.html.getElementsByClass("synopsis",this._connectNode,"dd")[0];
if(synopsisNode.firstChild!=null){
this.synopsis=synopsisNode.firstChild.nodeValue;
}else{
this.synopsis="";
}
this.display_url=(dojo.html.getElementsByClass("title",this._connectNode,"a")[0]).getAttribute("href");
this.bigThumbUrl=(dojo.html.getElementsByClass("big-thumb",this._connectNode,"img")[0]).getAttribute("src");
formatNode=dojo.html.getElementsByClass("format",this._connectNode,"dd")[0];
if(formatNode.hasChildNodes()){
this.format=formatNode.firstChild.nodeValue;
}
}
ag.widget.BMAProductDetailPane.superclass.buildRendering.call(this,args,frag);
},switchPanes:function(){
dojo.debug("switching panes 2");
}});
dojo.provide("ag.widget.BMAPopper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.BMAPopper",[dojo.widget.Tooltip],{templateString:null,templateString:"<div style=\"display:none;position:absolute;\" id=\"popper-contents\" class=\"agi-detailpopup\">\n	<div class=\"agi-close\">\n		<span>${this.format} ${this.mature_message}</span>\n		<img class=\"pop-closer\" src=\"${this.imghost}/bma/popperx.gif\" />\n	</div>\n</div>",templateCssPath:"",productNumber:"",title:"",synopsis:"",smallThumbUrl:"",path:"",displayUrl:"",detailPaneClass:"BMAProductDetailPane",imghost:"",ahost:"",khost:"",format:"",isQuickSend:true,customerType:"free",rating_pct:0,rating_owned:"average",fromNode:true,beginZIndex:300,dataId:"",showDelay:800,hideDelay:200,price:1,email_address:"",join_button:"",mature_flag:false,mature_message:"",_quickSendPane:null,_productDetailPane:null,_dataNode:null,isLoaded:false,initialize:function(args,frag,_984){
ag.widget.BMAPopper.superclass.initialize(this,args,frag,_984);
if(!this.isQuickSend){
dojo.html.addClass(this.domNode,"non-quicksend");
}
this.parent=null;
},_handleSynopsis:function(_985){
if(_985.length>250){
_985=_985.substring(0,_985.indexOf(" ",250))+"...";
}
return _985;
},buildRendering:function(args,frag){
if(this.fromNode){
var _988="";
this._dataNode=dojo.byId(this.dataId);
var qs=(dojo.html.getElementsByClass("isquicksend",this._dataNode,"dd")[0]).firstChild.nodeValue;
if(qs.indexOf("True")>-1){
this.isQuickSend=true;
}else{
this.isQuickSend=false;
}
this.title=(dojo.html.getElementsByClass("title",this._dataNode)[0]).getAttribute("title");
this.price=(dojo.html.getElementsByClass("price",this._dataNode,"dd")[0]).firstChild.nodeValue;
synopsisNode=(dojo.html.getElementsByClass("synopsis",this._dataNode,"dd")[0]);
if(synopsisNode.firstChild!==null){
_988=synopsisNode.innerHTML;
}
this.synopsis=this._handleSynopsis(_988);
this.displayUrl=(dojo.html.getElementsByClass("title",this._dataNode)[0]).getAttribute("href");
this.bigThumbUrl=(dojo.html.getElementsByClass("large-preview",this._dataNode,"dd")[0]).firstChild.nodeValue;
this.smallThumbUrl=(dojo.html.getElementsByClass("small-thumb",this._dataNode,"img")[0]).getAttribute("src");
mature_nodes=dojo.html.getElementsByClass("mature",this._dataNode,"dd");
if(mature_nodes.length>0){
mature=mature_nodes[0].firstChild.nodeValue;
if(mature.indexOf("1")>-1){
this.mature_flag=true;
}else{
this.mature_flag=false;
}
if(this.mature_flag){
this.mature_message="&nbsp;(mature)";
}else{
this.mature_message="";
}
}else{
this.mature_message="";
}
dojo.debug("mature flag is "+this.mature_flag);
customerTypeNode=(dojo.html.getElementsByClass("customertype",this._dataNode,"dd")[0]);
if(customerTypeNode.hasChildNodes()){
var cust=customerTypeNode.firstChild.nodeValue;
if(cust.indexOf("free")>-1){
this.customerType="free";
}else{
this.customerType="pay";
}
}
formatNode=dojo.html.getElementsByClass("format",this._dataNode,"dd")[0];
if(formatNode.hasChildNodes()){
this.format=formatNode.firstChild.nodeValue;
}
pathNode=dojo.html.getElementsByClass("path",this._dataNode,"dd")[0];
if(pathNode.hasChildNodes()){
this.path=pathNode.firstChild.nodeValue;
}
if(dojo.html.getElementsByClass("rating_pct",this._dataNode,"dd").length>0){
this.rating_pct=(dojo.html.getElementsByClass("rating_pct",this._dataNode,"dd")[0]).firstChild.nodeValue;
this.rating_owned=(dojo.html.getElementsByClass("rating_owned",this._dataNode,"dd")[0]).firstChild.nodeValue;
}
}
ckname=get_cookie_name("customer");
if(this.customerType=="free"&&parseInt(this.price)!=0){
this.join_button="<div class=agi-button><a href=javascript:doJoin()><img src="+this.imghost+"/bma/button/joinnow.gif border=0 width=77 height=21 alt=Join Now title=Join Now /></a></div>";
}
if(this.customerType!="free"||get_cookie_value(ckname,"status")==5){
this.email_address=AGCookie.getCookieValue("customer","email");
if(this.email_address=="null"){
this.email_address="";
}
}
ag.widget.BMAPopper.superclass.buildRendering.call(this,args,frag);
},postCreate:function(args,frag){
dojo.event.connectOnce(this._connectNode,"onmouseover",this,"_onMouseOver");
dojo.event.connectOnce(this.domNode,"onmouseover",this,"_onMouseOver");
dojo.event.connectOnce(this._connectNode,"onmouseout",this,"_onMouseOver");
dojo.event.connectOnce(this.domNode,"onmouseout",this,"_onMouseOver");
},uninitialize:function(){
dojo.widget.Tooltip.prototype.uninitialize.call(this);
dojo.event.disconnect(this.domNode,"onmouseover",this,"_onMouseOver");
dojo.event.disconnect(this._connectNode,"onmouseover",this,"_onMouseOver");
dojo.event.disconnect(this.domNode,"onmouseout",this,"_onMouseOver");
dojo.event.disconnect(this._connectNode,"onmouseout",this,"_onMouseOver");
},open:function(){
if(this.isShowingNow||dojo.widget.PopupManager.quickSendActive){
return;
}
if(this.point!==undefined){
this._popHere(this.point);
}else{
pos=dojo.html.abs(this._connectNode,true);
vpWidth=dojo.html.getViewport().width;
if((pos.x+400)>vpWidth){
this._popLeft(pos);
}else{
this._popRight(pos);
}
}
},_hasProductDetailPane:function(){
return this._productDetailPane!==null;
},_hasQuickSendPane:function(){
return this._quickSendPane!==null;
},_setProductDetailPane:function(pane){
this._productDetailPane=pane;
},_setQuickSendPane:function(pane){
this._quickSendPane=pane;
},destroy:function(_98f){
this.parent=null;
ag.widget.BMAPopper.superclass.destroy.call(this,_98f);
},aboutToShow:function(){
if(!this._hasProductDetailPane()){
detailPane=dojo.widget.createWidget(this.detailPaneClass,{connectId:this.connectId,title:this.title,price:this.price,imghost:this.imghost,ahost:this.ahost,khost:this.khost,productNumber:this.productNumber,pathNumber:this.path,synopsis:this.synopsis,bigThumbUrl:this.bigThumbUrl,display_url:this.displayUrl,rating_pct:this.rating_pct,rating_owned:this.rating_owned,email_address:this.email_address,customerTyoe:this.customerType,join_button:this.join_button,fromNode:false,mature_flag:this.mature_flag},null);
this.addChild(detailPane);
this._productDetailPane=detailPane;
}
if(!this._hasQuickSendPane()){
if(this.customerType=="free"&&parseInt(this.price)!=0){
paneClass="FreeQuickSendPane";
}else{
paneClass="QuickSendPane";
}
qsPane=dojo.widget.createWidget(paneClass,{productNumber:this.productNumber,imghost:this.imghost,ahost:this.ahost,khost:this.khost,pathNumber:this.path,display_url:this.displayUrl,email_address:this.email_address,customerType:this.customerType,fromNode:false,mature_flag:this.mature_flag});
this.addChild(qsPane);
this._quickSendPane=qsPane;
}
dojo.event.connect(this._quickSendPane,"switchPanes",this,"showDetailPane");
dojo.event.connect(this._productDetailPane,"switchPanes",this,"showQuickSendPane");
this._quickSendPane.hide();
this._productDetailPane.show();
},setDetailPane:function(pane){
this._productDetailPane=pane;
this.addChild(pane);
},setQuickSendPane:function(pane){
this._quickSendPane=pane;
this.addChild(pane);
},showDetailPane:function(){
dojo.widget.PopupManager.quickSendActive=false;
this._quickSendPane.hide();
this._productDetailPane.show();
},showQuickSendPane:function(){
dojo.widget.PopupManager.quickSendActive=true;
this._productDetailPane.hide();
this._quickSendPane.show();
},forceClose:function(){
dojo.widget.PopupManager.quickSendActive=false;
this.close();
},close:function(){
if(dojo.widget.PopupManager.quickSendActive){
return;
}else{
dojo.widget.PopupManager.quickSendActive=false;
dojo.widget.Tooltip.prototype.close.call(this,close);
dojo.html.removeClass(this._connectNode,"popped_right");
dojo.html.removeClass(this._connectNode,"popped_left");
this.postCreate();
}
},_popRight:function(pos){
this.domNode.style.top=-1000;
this.domNode.style.left=-1000;
dojo.html.addClass(this._connectNode,"popped_right");
dojo.widget.PopupContainerBase.prototype.open.call(this,pos.x+100,pos.y-50,pos.x+100,pos.y-50,this._connectNode,null,[0,15]);
},_popLeft:function(pos){
dojo.html.addClass(this._connectNode,"popped_left");
dojo.widget.PopupContainerBase.prototype.open.call(this,pos.x-280,pos.y-50,pos.x-280,pos.y-50,this._connectNode,null,[0,15]);
},_popHere:function(_994){
dojo.widget.PopupContainerBase.prototype.open.call(this,_994.x,_994.y,_994.x,_994.y,this._connectNode,null,[0,15]);
},fillInTemplate:function(args,frag){
ag.widget.BMAPopper.superclass.fillInTemplate.call(this,args,frag);
dojo.html.removeClass(this.domNode,"dojoTooltip");
closeEl=getElementByClass("agi-close",this.domNode,"div");
dojo.event.connect(closeEl,"onclick",this,"forceClose");
}});
getElementByClass=function(cls,el,tag){
return dojo.html.getElementsByClass(cls,el,tag)[0];
};
dojo.provide("ag.widget.BMADownloadsDetailPane");
dojo.widget.defineWidget("ag.widget.BMADownloadsDetailPane",[ag.widget.ProductDetailPane],{format:"",button_name:"",templateString:"<div>\n<div class=\"agi-tabless\">\n                    <span > \n                        <img src=\"${this.imghost}/bma/details/download_details.gif\" height=\"18\" alt=\"${this.format} details\" border=\"0\" title=\"${this.format} details\" />\n                    </span>\n                    <br clear=\"all\" />\n</div>\n<div class=\"detail-panel\" id=\"detail-panel-${this.productNumber}\" > \n    <div class=\"agi-largethumb\"><a href=\"${this.display_url}\"><img id=\"largethumb-${this.productNumber}\" src=\"${this.bigThumbUrl}\" width=\"200\" height=\"150\" alt=\"${this.title}\" border=\"0\" title=\"${this.title}\" /></a></div>\n\n    </div>\n    <div id=\"agi-largethumbdetail\">\n        <h2>${this.title}</h2>\n        <p>\n           ${this.synopsis} \n        </p>    \n        <div class=\"agi-button\">\n            <a href=\"${this.display_url}\">\n                <img src=\"${this.imghost}/bma/button/viewdownloads.gif\" border=\"0\" height=\"21\" alt=\"View Downloads\" title=\"View Downloads\" />\n            </a>\n        </div>\n    </div>\n</div> \n</div>\n"});
dojo.provide("ag.widget.BMADownloadsPopper");
dojo.widget.PopupManager.onKey=null;
dojo.widget.PopupManager.onClick=null;
dojo.widget.defineWidget("ag.widget.BMADownloadsPopper",[ag.widget.BMAPopper],{aboutToShow:function(){
dojo.debug(this.rating_pct);
if(!this._hasProductDetailPane()){
dojo.debug("type: "+this.customerType+" price: "+this.price);
detailPaneClass="BMADownloadsDetailPane";
detailPane=dojo.widget.createWidget(detailPaneClass,{connectId:this.connectId,title:this.title,imghost:this.imghost,ahost:this.ahost,khost:this.khost,productNumber:this.productNumber,pathNumber:this.path,synopsis:this.synopsis,bigThumbUrl:this.bigThumbUrl,display_url:this.displayUrl,rating_pct:this.rating_pct,rating_owned:this.rating_owned,format:this.format,button_name:this.button_name,fromNode:false},null);
this.addChild(detailPane);
this._productDetailPane=detailPane;
}
this._productDetailPane.show();
},buildRendering:function(args,frag){
if(this.fromNode){
this.button_name="";
var _99c=dojo.byId(this.dataId);
var _99d=(dojo.html.getElementsByClass("button_name",_99c,"dd")[0]).firstChild;
if(_99d){
this.button_name=_99d.nodeValue.replace(/ /,"");
}
}
ag.widget.BMADownloadsPopper.superclass.buildRendering.call(this,args,frag);
}});
dojo.provide("dojo.crypto");
dojo.crypto.cipherModes={ECB:0,CBC:1,PCBC:2,CFB:3,OFB:4,CTR:5};
dojo.crypto.outputTypes={Base64:0,Hex:1,String:2,Raw:3};
dojo.provide("dojo.crypto.MD5");
dojo.crypto.MD5=new function(){
var _99e=8;
var mask=(1<<_99e)-1;
function toWord(s){
var wa=[];
for(var i=0;i<s.length*_99e;i+=_99e){
wa[i>>5]|=(s.charCodeAt(i/_99e)&mask)<<(i%32);
}
return wa;
}
function toString(wa){
var s=[];
for(var i=0;i<wa.length*32;i+=_99e){
s.push(String.fromCharCode((wa[i>>5]>>>(i%32))&mask));
}
return s.join("");
}
function toHex(wa){
var h="0123456789abcdef";
var s=[];
for(var i=0;i<wa.length*4;i++){
s.push(h.charAt((wa[i>>2]>>((i%4)*8+4))&15)+h.charAt((wa[i>>2]>>((i%4)*8))&15));
}
return s.join("");
}
function toBase64(wa){
var p="=";
var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var s=[];
for(var i=0;i<wa.length*4;i+=3){
var t=(((wa[i>>2]>>8*(i%4))&255)<<16)|(((wa[i+1>>2]>>8*((i+1)%4))&255)<<8)|((wa[i+2>>2]>>8*((i+2)%4))&255);
for(var j=0;j<4;j++){
if(i*8+j*6>wa.length*32){
s.push(p);
}else{
s.push(tab.charAt((t>>6*(3-j))&63));
}
}
}
return s.join("");
}
function add(x,y){
var l=(x&65535)+(y&65535);
var m=(x>>16)+(y>>16)+(l>>16);
return (m<<16)|(l&65535);
}
function R(n,c){
return (n<<c)|(n>>>(32-c));
}
function C(q,a,b,x,s,t){
return add(R(add(add(a,q),add(x,t)),s),b);
}
function FF(a,b,c,d,x,s,t){
return C((b&c)|((~b)&d),a,b,x,s,t);
}
function GG(a,b,c,d,x,s,t){
return C((b&d)|(c&(~d)),a,b,x,s,t);
}
function HH(a,b,c,d,x,s,t){
return C(b^c^d,a,b,x,s,t);
}
function II(a,b,c,d,x,s,t){
return C(c^(b|(~d)),a,b,x,s,t);
}
function core(x,len){
x[len>>5]|=128<<((len)%32);
x[(((len+64)>>>9)<<4)+14]=len;
var a=1732584193;
var b=-271733879;
var c=-1732584194;
var d=271733878;
for(var i=0;i<x.length;i+=16){
var olda=a;
var oldb=b;
var oldc=c;
var oldd=d;
a=FF(a,b,c,d,x[i+0],7,-680876936);
d=FF(d,a,b,c,x[i+1],12,-389564586);
c=FF(c,d,a,b,x[i+2],17,606105819);
b=FF(b,c,d,a,x[i+3],22,-1044525330);
a=FF(a,b,c,d,x[i+4],7,-176418897);
d=FF(d,a,b,c,x[i+5],12,1200080426);
c=FF(c,d,a,b,x[i+6],17,-1473231341);
b=FF(b,c,d,a,x[i+7],22,-45705983);
a=FF(a,b,c,d,x[i+8],7,1770035416);
d=FF(d,a,b,c,x[i+9],12,-1958414417);
c=FF(c,d,a,b,x[i+10],17,-42063);
b=FF(b,c,d,a,x[i+11],22,-1990404162);
a=FF(a,b,c,d,x[i+12],7,1804603682);
d=FF(d,a,b,c,x[i+13],12,-40341101);
c=FF(c,d,a,b,x[i+14],17,-1502002290);
b=FF(b,c,d,a,x[i+15],22,1236535329);
a=GG(a,b,c,d,x[i+1],5,-165796510);
d=GG(d,a,b,c,x[i+6],9,-1069501632);
c=GG(c,d,a,b,x[i+11],14,643717713);
b=GG(b,c,d,a,x[i+0],20,-373897302);
a=GG(a,b,c,d,x[i+5],5,-701558691);
d=GG(d,a,b,c,x[i+10],9,38016083);
c=GG(c,d,a,b,x[i+15],14,-660478335);
b=GG(b,c,d,a,x[i+4],20,-405537848);
a=GG(a,b,c,d,x[i+9],5,568446438);
d=GG(d,a,b,c,x[i+14],9,-1019803690);
c=GG(c,d,a,b,x[i+3],14,-187363961);
b=GG(b,c,d,a,x[i+8],20,1163531501);
a=GG(a,b,c,d,x[i+13],5,-1444681467);
d=GG(d,a,b,c,x[i+2],9,-51403784);
c=GG(c,d,a,b,x[i+7],14,1735328473);
b=GG(b,c,d,a,x[i+12],20,-1926607734);
a=HH(a,b,c,d,x[i+5],4,-378558);
d=HH(d,a,b,c,x[i+8],11,-2022574463);
c=HH(c,d,a,b,x[i+11],16,1839030562);
b=HH(b,c,d,a,x[i+14],23,-35309556);
a=HH(a,b,c,d,x[i+1],4,-1530992060);
d=HH(d,a,b,c,x[i+4],11,1272893353);
c=HH(c,d,a,b,x[i+7],16,-155497632);
b=HH(b,c,d,a,x[i+10],23,-1094730640);
a=HH(a,b,c,d,x[i+13],4,681279174);
d=HH(d,a,b,c,x[i+0],11,-358537222);
c=HH(c,d,a,b,x[i+3],16,-722521979);
b=HH(b,c,d,a,x[i+6],23,76029189);
a=HH(a,b,c,d,x[i+9],4,-640364487);
d=HH(d,a,b,c,x[i+12],11,-421815835);
c=HH(c,d,a,b,x[i+15],16,530742520);
b=HH(b,c,d,a,x[i+2],23,-995338651);
a=II(a,b,c,d,x[i+0],6,-198630844);
d=II(d,a,b,c,x[i+7],10,1126891415);
c=II(c,d,a,b,x[i+14],15,-1416354905);
b=II(b,c,d,a,x[i+5],21,-57434055);
a=II(a,b,c,d,x[i+12],6,1700485571);
d=II(d,a,b,c,x[i+3],10,-1894986606);
c=II(c,d,a,b,x[i+10],15,-1051523);
b=II(b,c,d,a,x[i+1],21,-2054922799);
a=II(a,b,c,d,x[i+8],6,1873313359);
d=II(d,a,b,c,x[i+15],10,-30611744);
c=II(c,d,a,b,x[i+6],15,-1560198380);
b=II(b,c,d,a,x[i+13],21,1309151649);
a=II(a,b,c,d,x[i+4],6,-145523070);
d=II(d,a,b,c,x[i+11],10,-1120210379);
c=II(c,d,a,b,x[i+2],15,718787259);
b=II(b,c,d,a,x[i+9],21,-343485551);
a=add(a,olda);
b=add(b,oldb);
c=add(c,oldc);
d=add(d,oldd);
}
return [a,b,c,d];
}
function hmac(data,key){
var wa=toWord(key);
if(wa.length>16){
wa=core(wa,key.length*_99e);
}
var l=[],r=[];
for(var i=0;i<16;i++){
l[i]=wa[i]^909522486;
r[i]=wa[i]^1549556828;
}
var h=core(l.concat(toWord(data)),512+data.length*_99e);
return core(r.concat(h),640);
}
this.compute=function(data,_9ec){
var out=_9ec||dojo.crypto.outputTypes.Base64;
switch(out){
case dojo.crypto.outputTypes.Hex:
return toHex(core(toWord(data),data.length*_99e));
case dojo.crypto.outputTypes.String:
return toString(core(toWord(data),data.length*_99e));
default:
return toBase64(core(toWord(data),data.length*_99e));
}
};
this.getHMAC=function(data,key,_9f0){
var out=_9f0||dojo.crypto.outputTypes.Base64;
switch(out){
case dojo.crypto.outputTypes.Hex:
return toHex(hmac(data,key));
case dojo.crypto.outputTypes.String:
return toString(hmac(data,key));
default:
return toBase64(hmac(data,key));
}
};
}();
dojo.provide("dojo.crypto.*");
dojo.provide("dojo.lang.type");
dojo.lang.whatAmI=function(_9f2){
dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");
return dojo.lang.getType(_9f2);
};
dojo.lang.whatAmI.custom={};
dojo.lang.getType=function(_9f3){
try{
if(dojo.lang.isArray(_9f3)){
return "array";
}
if(dojo.lang.isFunction(_9f3)){
return "function";
}
if(dojo.lang.isString(_9f3)){
return "string";
}
if(dojo.lang.isNumber(_9f3)){
return "number";
}
if(dojo.lang.isBoolean(_9f3)){
return "boolean";
}
if(dojo.lang.isAlien(_9f3)){
return "alien";
}
if(dojo.lang.isUndefined(_9f3)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](_9f3)){
return name;
}
}
if(dojo.lang.isObject(_9f3)){
return "object";
}
}
catch(e){
}
return "unknown";
};
dojo.lang.isNumeric=function(_9f5){
return (!isNaN(_9f5)&&isFinite(_9f5)&&(_9f5!=null)&&!dojo.lang.isBoolean(_9f5)&&!dojo.lang.isArray(_9f5)&&!/^\s*$/.test(_9f5));
};
dojo.lang.isBuiltIn=function(_9f6){
return (dojo.lang.isArray(_9f6)||dojo.lang.isFunction(_9f6)||dojo.lang.isString(_9f6)||dojo.lang.isNumber(_9f6)||dojo.lang.isBoolean(_9f6)||(_9f6==null)||(_9f6 instanceof Error)||(typeof _9f6=="error"));
};
dojo.lang.isPureObject=function(_9f7){
return ((_9f7!=null)&&dojo.lang.isObject(_9f7)&&_9f7.constructor==Object);
};
dojo.lang.isOfType=function(_9f8,type,_9fa){
var _9fb=false;
if(_9fa){
_9fb=_9fa["optional"];
}
if(_9fb&&((_9f8===null)||dojo.lang.isUndefined(_9f8))){
return true;
}
if(dojo.lang.isArray(type)){
var _9fc=type;
for(var i in _9fc){
var _9fe=_9fc[i];
if(dojo.lang.isOfType(_9f8,_9fe)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_9f8);
case Function:
case "function":
return dojo.lang.isFunction(_9f8);
case String:
case "string":
return dojo.lang.isString(_9f8);
case Number:
case "number":
return dojo.lang.isNumber(_9f8);
case "numeric":
return dojo.lang.isNumeric(_9f8);
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_9f8);
case Object:
case "object":
return dojo.lang.isObject(_9f8);
case "pureobject":
return dojo.lang.isPureObject(_9f8);
case "builtin":
return dojo.lang.isBuiltIn(_9f8);
case "alien":
return dojo.lang.isAlien(_9f8);
case "undefined":
return dojo.lang.isUndefined(_9f8);
case null:
case "null":
return (_9f8===null);
case "optional":
dojo.deprecated("dojo.lang.isOfType(value, [type, \"optional\"])","use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");
return ((_9f8===null)||dojo.lang.isUndefined(_9f8));
default:
if(dojo.lang.isFunction(type)){
return (_9f8 instanceof type);
}else{
dojo.raise("dojo.lang.isOfType() was passed an invalid type");
}
}
}
dojo.raise("If we get here, it means a bug was introduced above.");
};
dojo.lang.getObject=function(str){
var _a00=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_a00[i++]];
}while(i<_a00.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _a04=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_a04[i++]];
}while(i<_a04.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.provide("dojo.lang.assert");
dojo.lang.assert=function(_a07,_a08){
if(!_a07){
var _a09="An assert statement failed.\n"+"The method dojo.lang.assert() was called with a 'false' value.\n";
if(_a08){
_a09+="Here's the assert message:\n"+_a08+"\n";
}
throw new Error(_a09);
}
};
dojo.lang.assertType=function(_a0a,type,_a0c){
if(dojo.lang.isString(_a0c)){
dojo.deprecated("dojo.lang.assertType(value, type, \"message\")","use dojo.lang.assertType(value, type) instead","0.5");
}
if(!dojo.lang.isOfType(_a0a,type,_a0c)){
if(!dojo.lang.assertType._errorMessage){
dojo.lang.assertType._errorMessage="Type mismatch: dojo.lang.assertType() failed.";
}
dojo.lang.assert(false,dojo.lang.assertType._errorMessage);
}
};
dojo.lang.assertValidKeywords=function(_a0d,_a0e,_a0f){
var key;
if(!_a0f){
if(!dojo.lang.assertValidKeywords._errorMessage){
dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:";
}
_a0f=dojo.lang.assertValidKeywords._errorMessage;
}
if(dojo.lang.isArray(_a0e)){
for(key in _a0d){
if(!dojo.lang.inArray(_a0e,key)){
dojo.lang.assert(false,_a0f+" "+key);
}
}
}else{
for(key in _a0d){
if(!(key in _a0e)){
dojo.lang.assert(false,_a0f+" "+key);
}
}
}
};
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_a11){
this.pairs=[];
this.returnWrappers=_a11||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_a13,wrap,_a15,_a16){
var type=(_a16)?"unshift":"push";
this.pairs[type]([name,_a13,wrap,_a15]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.provide("dojo.lang.repr");
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(name,_a1e,wrap,_a20){
dojo.lang.reprRegistry.register(name,_a1e,wrap,_a20);
};
dojo.lang.repr=function(obj){
if(typeof (obj)=="undefined"){
return "undefined";
}else{
if(obj===null){
return "null";
}
}
try{
if(typeof (obj["__repr__"])=="function"){
return obj["__repr__"]();
}else{
if((typeof (obj["repr"])=="function")&&(obj.repr!=arguments.callee)){
return obj["repr"]();
}
}
return dojo.lang.reprRegistry.match(obj);
}
catch(e){
if(typeof (obj.NAME)=="string"&&(obj.toString==Function.prototype.toString||obj.toString==Object.prototype.toString)){
return obj.NAME;
}
}
if(typeof (obj)=="function"){
obj=(obj+"").replace(/^\s+/,"");
var idx=obj.indexOf("{");
if(idx!=-1){
obj=obj.substr(0,idx)+"{...}";
}
}
return obj+"";
};
dojo.lang.reprArrayLike=function(arr){
try{
var na=dojo.lang.map(arr,dojo.lang.repr);
return "["+na.join(", ")+"]";
}
catch(e){
}
};
(function(){
var m=dojo.lang;
m.registerRepr("arrayLike",m.isArrayLike,m.reprArrayLike);
m.registerRepr("string",m.isString,m.reprString);
m.registerRepr("numbers",m.isNumber,m.reprNumber);
m.registerRepr("boolean",m.isBoolean,m.reprNumber);
})();
dojo.provide("dojo.lang.*");
dojo.provide("dojo.storage");
dojo.storage=new function(){
};
dojo.declare("dojo.storage",null,{SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",namespace:"default",onHideSettingsUI:null,initialize:function(){
dojo.unimplemented("dojo.storage.initialize");
},isAvailable:function(){
dojo.unimplemented("dojo.storage.isAvailable");
},put:function(key,_a27,_a28){
dojo.unimplemented("dojo.storage.put");
},get:function(key){
dojo.unimplemented("dojo.storage.get");
},hasKey:function(key){
return (this.get(key)!=null);
},getKeys:function(){
dojo.unimplemented("dojo.storage.getKeys");
},clear:function(){
dojo.unimplemented("dojo.storage.clear");
},remove:function(key){
dojo.unimplemented("dojo.storage.remove");
},isPermanent:function(){
dojo.unimplemented("dojo.storage.isPermanent");
},getMaximumSize:function(){
dojo.unimplemented("dojo.storage.getMaximumSize");
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.unimplemented("dojo.storage.showSettingsUI");
},hideSettingsUI:function(){
dojo.unimplemented("dojo.storage.hideSettingsUI");
},getType:function(){
dojo.unimplemented("dojo.storage.getType");
},isValidKey:function(_a2c){
if((_a2c==null)||(typeof _a2c=="undefined")){
return false;
}
return /^[0-9A-Za-z_]*$/.test(_a2c);
}});
dojo.storage.manager=new function(){
this.currentProvider=null;
this.available=false;
this._initialized=false;
this._providers=[];
this.namespace="default";
this.initialize=function(){
this.autodetect();
};
this.register=function(name,_a2e){
this._providers[this._providers.length]=_a2e;
this._providers[name]=_a2e;
};
this.setProvider=function(_a2f){
};
this.autodetect=function(){
if(this._initialized==true){
return;
}
var _a30=null;
for(var i=0;i<this._providers.length;i++){
_a30=this._providers[i];
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==false&&_a30.getType()==djConfig["forceStorageProvider"]){
_a30.isAvailable();
break;
}else{
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==true&&_a30.isAvailable()){
break;
}
}
}
if(_a30==null){
this._initialized=true;
this.available=false;
this.currentProvider=null;
dojo.raise("No storage provider found for this platform");
}
this.currentProvider=_a30;
for(var i in _a30){
dojo.storage[i]=_a30[i];
}
dojo.storage.manager=this;
dojo.storage.initialize();
this._initialized=true;
this.available=true;
};
this.isAvailable=function(){
return this.available;
};
this.isInitialized=function(){
if(this.currentProvider.getType()=="dojo.storage.browser.FlashStorageProvider"&&dojo.flash.ready==false){
return false;
}else{
return this._initialized;
}
};
this.supportsProvider=function(_a32){
try{
var _a33=eval("new "+_a32+"()");
var _a34=_a33.isAvailable();
if(_a34==null||typeof _a34=="undefined"){
return false;
}
return _a34;
}
catch(exception){
return false;
}
};
this.getProvider=function(){
return this.currentProvider;
};
this.loaded=function(){
};
};
dojo.provide("dojo.string.Builder");
dojo.string.Builder=function(str){
this.arrConcat=(dojo.render.html.capable&&dojo.render.html["ie"]);
var a=[];
var b="";
var _a38=this.length=b.length;
if(this.arrConcat){
if(b.length>0){
a.push(b);
}
b="";
}
this.toString=this.valueOf=function(){
return (this.arrConcat)?a.join(""):b;
};
this.append=function(){
for(var x=0;x<arguments.length;x++){
var s=arguments[x];
if(dojo.lang.isArrayLike(s)){
this.append.apply(this,s);
}else{
if(this.arrConcat){
a.push(s);
}else{
b+=s;
}
_a38+=s.length;
this.length=_a38;
}
}
return this;
};
this.clear=function(){
a=[];
b="";
_a38=this.length=0;
return this;
};
this.remove=function(f,l){
var s="";
if(this.arrConcat){
b=a.join("");
}
a=[];
if(f>0){
s=b.substring(0,(f-1));
}
b=s+b.substring(f+l);
_a38=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.replace=function(o,n){
if(this.arrConcat){
b=a.join("");
}
a=[];
b=b.replace(o,n);
_a38=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.insert=function(idx,s){
if(this.arrConcat){
b=a.join("");
}
a=[];
if(idx==0){
b=s+b;
}else{
var t=b.split("");
t.splice(idx,0,s);
b=t.join("");
}
_a38=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.append.apply(this,arguments);
};
dojo.provide("dojo.string.*");
dojo.provide("dojo.flash");
dojo.flash=function(){
};
dojo.flash={flash6_version:null,flash8_version:null,ready:false,_visible:true,_loadedListeners:new Array(),_installingListeners:new Array(),setSwf:function(_a43){
if(_a43==null||dojo.lang.isUndefined(_a43)){
return;
}
if(_a43.flash6!=null&&!dojo.lang.isUndefined(_a43.flash6)){
this.flash6_version=_a43.flash6;
}
if(_a43.flash8!=null&&!dojo.lang.isUndefined(_a43.flash8)){
this.flash8_version=_a43.flash8;
}
if(!dojo.lang.isUndefined(_a43.visible)){
this._visible=_a43.visible;
}
this._initialize();
},useFlash6:function(){
if(this.flash6_version==null){
return false;
}else{
if(this.flash6_version!=null&&dojo.flash.info.commVersion==6){
return true;
}else{
return false;
}
}
},useFlash8:function(){
if(this.flash8_version==null){
return false;
}else{
if(this.flash8_version!=null&&dojo.flash.info.commVersion==8){
return true;
}else{
return false;
}
}
},addLoadedListener:function(_a44){
this._loadedListeners.push(_a44);
},addInstallingListener:function(_a45){
this._installingListeners.push(_a45);
},loaded:function(){
dojo.flash.ready=true;
if(dojo.flash._loadedListeners.length>0){
for(var i=0;i<dojo.flash._loadedListeners.length;i++){
dojo.flash._loadedListeners[i].call(null);
}
}
},installing:function(){
if(dojo.flash._installingListeners.length>0){
for(var i=0;i<dojo.flash._installingListeners.length;i++){
dojo.flash._installingListeners[i].call(null);
}
}
},_initialize:function(){
var _a48=new dojo.flash.Install();
dojo.flash.installer=_a48;
if(_a48.needed()==true){
_a48.install();
}else{
dojo.flash.obj=new dojo.flash.Embed(this._visible);
dojo.flash.obj.write(dojo.flash.info.commVersion);
dojo.flash.comm=new dojo.flash.Communicator();
}
}};
dojo.flash.Info=function(){
if(dojo.render.html.ie){
document.writeln("<script language=\"VBScript\" type=\"text/vbscript\">");
document.writeln("Function VBGetSwfVer(i)");
document.writeln("  on error resume next");
document.writeln("  Dim swControl, swVersion");
document.writeln("  swVersion = 0");
document.writeln("  set swControl = CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" + CStr(i))");
document.writeln("  if (IsObject(swControl)) then");
document.writeln("    swVersion = swControl.GetVariable(\"$version\")");
document.writeln("  end if");
document.writeln("  VBGetSwfVer = swVersion");
document.writeln("End Function");
document.writeln("</script>");
}
this._detectVersion();
this._detectCommunicationVersion();
};
dojo.flash.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:false,commVersion:6,installing:false,isVersionOrAbove:function(_a49,_a4a,_a4b){
_a4b=parseFloat("."+_a4b);
if(this.versionMajor>=_a49&&this.versionMinor>=_a4a&&this.versionRevision>=_a4b){
return true;
}else{
return false;
}
},_detectVersion:function(){
var _a4c;
for(var _a4d=25;_a4d>0;_a4d--){
if(dojo.render.html.ie){
_a4c=VBGetSwfVer(_a4d);
}else{
_a4c=this._JSFlashInfo(_a4d);
}
if(_a4c==-1){
this.capable=false;
return;
}else{
if(_a4c!=0){
var _a4e;
if(dojo.render.html.ie){
var _a4f=_a4c.split(" ");
var _a50=_a4f[1];
_a4e=_a50.split(",");
}else{
_a4e=_a4c.split(".");
}
this.versionMajor=_a4e[0];
this.versionMinor=_a4e[1];
this.versionRevision=_a4e[2];
var _a51=this.versionMajor+"."+this.versionRevision;
this.version=parseFloat(_a51);
this.capable=true;
break;
}
}
}
},_JSFlashInfo:function(_a52){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _a53=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _a54=navigator.plugins["Shockwave Flash"+_a53].description;
var _a55=_a54.split(" ");
var _a56=_a55[2].split(".");
var _a57=_a56[0];
var _a58=_a56[1];
if(_a55[3]!=""){
var _a59=_a55[3].split("r");
}else{
var _a59=_a55[4].split("r");
}
var _a5a=_a59[1]>0?_a59[1]:0;
var _a5b=_a57+"."+_a58+"."+_a5a;
return _a5b;
}
}
return -1;
},_detectCommunicationVersion:function(){
if(this.capable==false){
this.commVersion=null;
return;
}
if(typeof djConfig["forceFlashComm"]!="undefined"&&typeof djConfig["forceFlashComm"]!=null){
this.commVersion=djConfig["forceFlashComm"];
return;
}
if(dojo.render.html.safari==true||dojo.render.html.opera==true){
this.commVersion=8;
}else{
this.commVersion=6;
}
}};
dojo.flash.Embed=function(_a5c){
this._visible=_a5c;
};
dojo.flash.Embed.prototype={width:215,height:138,id:"flashObject",_visible:true,protocol:function(){
switch(window.location.protocol){
case "https:":
return "https";
break;
default:
return "http";
break;
}
},write:function(_a5d,_a5e){
if(dojo.lang.isUndefined(_a5e)){
_a5e=false;
}
var _a5f=new dojo.string.Builder();
_a5f.append("width: "+this.width+"px; ");
_a5f.append("height: "+this.height+"px; ");
if(this._visible==false){
_a5f.append("position: absolute; ");
_a5f.append("z-index: 10000; ");
_a5f.append("top: -1000px; ");
_a5f.append("left: -1000px; ");
}
_a5f=_a5f.toString();
var _a60;
var _a61;
if(_a5d==6){
_a61=dojo.flash.flash6_version;
var _a62=djConfig.baseRelativePath;
_a61=_a61+"?baseRelativePath="+escape(_a62);
_a60="<embed id=\""+this.id+"\" src=\""+_a61+"\" "+"    quality=\"high\" bgcolor=\"#ffffff\" "+"    width=\""+this.width+"\" height=\""+this.height+"\" "+"    name=\""+this.id+"\" "+"    align=\"middle\" allowScriptAccess=\"sameDomain\" "+"    type=\"application/x-shockwave-flash\" swLiveConnect=\"true\" "+"    pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\">";
}else{
_a61=dojo.flash.flash8_version;
var _a63=_a61;
var _a64=_a61;
var _a62=djConfig.baseRelativePath;
if(_a5e){
var _a65=escape(window.location);
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _a66=escape(document.title);
_a63+="?MMredirectURL="+_a65+"&MMplayerType=ActiveX"+"&MMdoctitle="+_a66+"&baseRelativePath="+escape(_a62);
_a64+="?MMredirectURL="+_a65+"&MMplayerType=PlugIn"+"&baseRelativePath="+escape(_a62);
}
if(_a64.indexOf("?")==-1){
_a64+="?baseRelativePath="+escape(_a62);
}
_a60="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" "+"codebase=\""+this.protocol()+"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/"+"swflash.cab#version=8,0,0,0\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"align=\"middle\"> "+"<param name=\"allowScriptAccess\" value=\"sameDomain\" /> "+"<param name=\"movie\" value=\""+_a64+"\" /> "+"<param name=\"quality\" value=\"high\" /> "+"<param name=\"bgcolor\" value=\"#ffffff\" /> "+"<embed src=\""+_a64+"\" "+"quality=\"high\" "+"bgcolor=\"#ffffff\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"name=\""+this.id+"\" "+"swLiveConnect=\"true\" "+"align=\"middle\" "+"allowScriptAccess=\"sameDomain\" "+"type=\"application/x-shockwave-flash\" "+"pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\" />"+"</object>";
}
_a60="<div id=\""+this.id+"Container\" style=\""+_a5f+"\"> "+_a60+"</div>";
document.writeln(_a60);
},get:function(){
return document.getElementById(this.id);
},setVisible:function(_a67){
var _a68=dojo.byId(this.id+"Container");
if(_a67==true){
_a68.style.visibility="visible";
}else{
_a68.style.position="absolute";
_a68.style.x="-1000px";
_a68.style.y="-1000px";
_a68.style.visibility="hidden";
}
},center:function(){
var _a69=this.width;
var _a6a=this.height;
var _a6b=dojo.html.getScroll().offset;
var _a6c=dojo.html.getViewport();
var x=_a6b.x+(_a6c.width-_a69)/2;
var y=_a6b.y+(_a6c.height-_a6a)/2;
var _a6f=dojo.byId(this.id+"Container");
_a6f.style.top=y+"px";
_a6f.style.left=x+"px";
}};
dojo.flash.Communicator=function(){
if(dojo.flash.useFlash6()){
this._writeFlash6();
}else{
if(dojo.flash.useFlash8()){
this._writeFlash8();
}
}
};
dojo.flash.Communicator.prototype={_writeFlash6:function(){
var id=dojo.flash.obj.id;
document.writeln("<script language=\"JavaScript\">");
document.writeln("  function "+id+"_DoFSCommand(command, args){ ");
document.writeln("    dojo.flash.comm._handleFSCommand(command, args); ");
document.writeln("}");
document.writeln("</script>");
if(dojo.render.html.ie){
document.writeln("<SCRIPT LANGUAGE=VBScript> ");
document.writeln("on error resume next ");
document.writeln("Sub "+id+"_FSCommand(ByVal command, ByVal args)");
document.writeln(" call "+id+"_DoFSCommand(command, args)");
document.writeln("end sub");
document.writeln("</SCRIPT> ");
}
},_writeFlash8:function(){
},_handleFSCommand:function(_a71,args){
if(_a71!=null&&!dojo.lang.isUndefined(_a71)&&/^FSCommand:(.*)/.test(_a71)==true){
_a71=_a71.match(/^FSCommand:(.*)/)[1];
}
if(_a71=="addCallback"){
this._fscommandAddCallback(_a71,args);
}else{
if(_a71=="call"){
this._fscommandCall(_a71,args);
}else{
if(_a71=="fscommandReady"){
this._fscommandReady();
}
}
}
},_fscommandAddCallback:function(_a73,args){
var _a75=args;
var _a76=function(){
return dojo.flash.comm._call(_a75,arguments);
};
dojo.flash.comm[_a75]=_a76;
dojo.flash.obj.get().SetVariable("_succeeded",true);
},_fscommandCall:function(_a77,args){
var _a79=dojo.flash.obj.get();
var _a7a=args;
var _a7b=parseInt(_a79.GetVariable("_numArgs"));
var _a7c=new Array();
for(var i=0;i<_a7b;i++){
var _a7e=_a79.GetVariable("_"+i);
_a7c.push(_a7e);
}
var _a7f;
if(_a7a.indexOf(".")==-1){
_a7f=window[_a7a];
}else{
_a7f=eval(_a7a);
}
var _a80=null;
if(!dojo.lang.isUndefined(_a7f)&&_a7f!=null){
_a80=_a7f.apply(null,_a7c);
}
_a79.SetVariable("_returnResult",_a80);
},_fscommandReady:function(){
var _a81=dojo.flash.obj.get();
_a81.SetVariable("fscommandReady","true");
},_call:function(_a82,args){
var _a84=dojo.flash.obj.get();
_a84.SetVariable("_functionName",_a82);
_a84.SetVariable("_numArgs",args.length);
for(var i=0;i<args.length;i++){
var _a86=args[i];
_a86=_a86.replace(/\0/g,"\\0");
_a84.SetVariable("_"+i,_a86);
}
_a84.TCallLabel("/_flashRunner","execute");
var _a87=_a84.GetVariable("_returnResult");
_a87=_a87.replace(/\\0/g,"\x00");
return _a87;
},_addExternalInterfaceCallback:function(_a88){
var _a89=function(){
var _a8a=new Array(arguments.length);
for(var i=0;i<arguments.length;i++){
_a8a[i]=arguments[i];
}
return dojo.flash.comm._execFlash(_a88,_a8a);
};
dojo.flash.comm[_a88]=_a89;
},_encodeData:function(data){
var _a8d=/\&([^;]*)\;/g;
data=data.replace(_a8d,"&amp;$1;");
data=data.replace(/</g,"&lt;");
data=data.replace(/>/g,"&gt;");
data=data.replace("\\","&custom_backslash;&custom_backslash;");
data=data.replace(/\n/g,"\\n");
data=data.replace(/\r/g,"\\r");
data=data.replace(/\f/g,"\\f");
data=data.replace(/\0/g,"\\0");
data=data.replace(/\'/g,"\\'");
data=data.replace(/\"/g,"\\\"");
return data;
},_decodeData:function(data){
if(data==null||typeof data=="undefined"){
return data;
}
data=data.replace(/\&custom_lt\;/g,"<");
data=data.replace(/\&custom_gt\;/g,">");
data=eval("\""+data+"\"");
return data;
},_chunkArgumentData:function(_a8f,_a90){
var _a91=dojo.flash.obj.get();
var _a92=Math.ceil(_a8f.length/1024);
for(var i=0;i<_a92;i++){
var _a94=i*1024;
var _a95=i*1024+1024;
if(i==(_a92-1)){
_a95=i*1024+_a8f.length;
}
var _a96=_a8f.substring(_a94,_a95);
_a96=this._encodeData(_a96);
_a91.CallFunction("<invoke name=\"chunkArgumentData\" "+"returntype=\"javascript\">"+"<arguments>"+"<string>"+_a96+"</string>"+"<number>"+_a90+"</number>"+"</arguments>"+"</invoke>");
}
},_chunkReturnData:function(){
var _a97=dojo.flash.obj.get();
var _a98=_a97.getReturnLength();
var _a99=new Array();
for(var i=0;i<_a98;i++){
var _a9b=_a97.CallFunction("<invoke name=\"chunkReturnData\" "+"returntype=\"javascript\">"+"<arguments>"+"<number>"+i+"</number>"+"</arguments>"+"</invoke>");
if(_a9b=="\"\""||_a9b=="''"){
_a9b="";
}else{
_a9b=_a9b.substring(1,_a9b.length-1);
}
_a99.push(_a9b);
}
var _a9c=_a99.join("");
return _a9c;
},_execFlash:function(_a9d,_a9e){
var _a9f=dojo.flash.obj.get();
_a9f.startExec();
_a9f.setNumberArguments(_a9e.length);
for(var i=0;i<_a9e.length;i++){
this._chunkArgumentData(_a9e[i],i);
}
_a9f.exec(_a9d);
var _aa1=this._chunkReturnData();
_aa1=this._decodeData(_aa1);
_a9f.endExec();
return _aa1;
}};
dojo.flash.Install=function(){
};
dojo.flash.Install.prototype={needed:function(){
if(dojo.flash.info.capable==false){
return true;
}
if(dojo.render.os.mac==true&&!dojo.flash.info.isVersionOrAbove(8,0,0)){
return true;
}
if(!dojo.flash.info.isVersionOrAbove(6,0,0)){
return true;
}
return false;
},install:function(){
dojo.flash.info.installing=true;
dojo.flash.installing();
if(dojo.flash.info.capable==false){
var _aa2=new dojo.flash.Embed(false);
_aa2.write(8);
}else{
if(dojo.flash.info.isVersionOrAbove(6,0,65)){
var _aa2=new dojo.flash.Embed(false);
_aa2.write(8,true);
_aa2.setVisible(true);
_aa2.center();
}else{
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=+dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}
}
},_onInstallStatus:function(msg){
if(msg=="Download.Complete"){
dojo.flash._initialize();
}else{
if(msg=="Download.Cancelled"){
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}else{
if(msg=="Download.Failed"){
alert("There was an error downloading the Flash Player update. "+"Please try again later, or visit macromedia.com to download "+"the latest version of the Flash plugin.");
}
}
}
}};
dojo.flash.info=new dojo.flash.Info();
dojo.provide("dojo.json");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_aa5,wrap,_aa7){
dojo.json.jsonRegistry.register(name,_aa5,wrap,_aa7);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _aaa=typeof (o);
if(_aaa=="undefined"){
return "undefined";
}else{
if((_aaa=="number")||(_aaa=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_aaa=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _aac;
if(typeof (o.__json__)=="function"){
_aac=o.__json__();
if(o!==_aac){
return me(_aac);
}
}
if(typeof (o.json)=="function"){
_aac=o.json();
if(o!==_aac){
return me(_aac);
}
}
if(_aaa!="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;
_aac=dojo.json.jsonRegistry.match(o);
return me(_aac);
}
catch(e){
}
if(_aaa=="function"){
return null;
}
res=[];
for(var k in o){
var _ab1;
if(typeof (k)=="number"){
_ab1="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_ab1=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_ab1+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.storage.browser");
dojo.storage.browser.WhatWGStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.WhatWGStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.WhatWGStorageProvider,{namespace:"default",initialized:false,_domain:null,_available:null,_statusHandler:null,initialize:function(){
if(djConfig["disableWhatWGStorage"]==true){
return;
}
this._domain=location.hostname;
this.initialized=true;
dojo.storage.manager.loaded();
},isAvailable:function(){
try{
var _ab2=globalStorage[location.hostname];
}
catch(e){
this._available=false;
return this._available;
}
this._available=true;
return this._available;
},put:function(key,_ab4,_ab5){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_ab5;
if(dojo.lang.isString(_ab4)){
_ab4="string:"+_ab4;
}else{
_ab4=dojo.json.serialize(_ab4);
}
window.addEventListener("storage",function(evt){
_ab5.call(null,dojo.storage.SUCCESS,key);
},false);
try{
var _ab7=globalStorage[this._domain];
_ab7.setItem(key,_ab4);
}
catch(e){
this._statusHandler.call(null,dojo.storage.FAILED,key,e.toString());
}
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _ab9=globalStorage[this._domain];
var _aba=_ab9.getItem(key);
if(_aba==null){
return null;
}
_aba=_aba.value;
if(!dojo.lang.isUndefined(_aba)&&_aba!=null&&/^string:/.test(_aba)){
_aba=_aba.substring("string:".length);
}else{
_aba=dojo.json.evalJson(_aba);
}
return _aba;
},getKeys:function(){
var _abb=globalStorage[this._domain];
var _abc=new Array();
for(i=0;i<_abb.length;i++){
_abc[i]=_abb.key(i);
}
return _abc;
},clear:function(){
var _abd=globalStorage[this._domain];
var keys=new Array();
for(var i=0;i<_abd.length;i++){
keys[keys.length]=_abd.key(i);
}
for(var i=0;i<keys.length;i++){
_abd.removeItem(keys[i]);
}
},remove:function(key){
var _ac1=globalStorage[this._domain];
_ac1.removeItem(key);
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},hideSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},getType:function(){
return "dojo.storage.browser.WhatWGStorageProvider";
}});
dojo.storage.browser.FlashStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.FlashStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.FlashStorageProvider,{namespace:"default",initialized:false,_available:null,_statusHandler:null,initialize:function(){
if(djConfig["disableFlashStorage"]==true){
return;
}
var _ac2=function(){
dojo.storage._flashLoaded();
};
dojo.flash.addLoadedListener(_ac2);
var _ac3=dojo.uri.dojoUri("Storage_version6.swf").toString();
var _ac4=dojo.uri.dojoUri("Storage_version8.swf").toString();
dojo.flash.setSwf({flash6:_ac3,flash8:_ac4,visible:false});
},isAvailable:function(){
if(djConfig["disableFlashStorage"]==true){
this._available=false;
}else{
this._available=true;
}
return this._available;
},put:function(key,_ac6,_ac7){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_ac7;
if(dojo.lang.isString(_ac6)){
_ac6="string:"+_ac6;
}else{
_ac6=dojo.json.serialize(_ac6);
}
dojo.flash.comm.put(key,_ac6,this.namespace);
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _ac9=dojo.flash.comm.get(key,this.namespace);
if(_ac9==""){
return null;
}
if(!dojo.lang.isUndefined(_ac9)&&_ac9!=null&&/^string:/.test(_ac9)){
_ac9=_ac9.substring("string:".length);
}else{
_ac9=dojo.json.evalJson(_ac9);
}
return _ac9;
},getKeys:function(){
var _aca=dojo.flash.comm.getKeys(this.namespace);
if(_aca==""){
return [];
}
return _aca.split(",");
},clear:function(){
dojo.flash.comm.clear(this.namespace);
},remove:function(key){
dojo.unimplemented("dojo.storage.browser.FlashStorageProvider.remove");
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return true;
},showSettingsUI:function(){
dojo.flash.comm.showSettings();
dojo.flash.obj.setVisible(true);
dojo.flash.obj.center();
},hideSettingsUI:function(){
dojo.flash.obj.setVisible(false);
if(dojo.storage.onHideSettingsUI!=null&&!dojo.lang.isUndefined(dojo.storage.onHideSettingsUI)){
dojo.storage.onHideSettingsUI.call(null);
}
},getType:function(){
return "dojo.storage.browser.FlashStorageProvider";
},_flashLoaded:function(){
this._initialized=true;
dojo.storage.manager.loaded();
},_onStatus:function(_acc,key){
var ds=dojo.storage;
var dfo=dojo.flash.obj;
if(_acc==ds.PENDING){
dfo.center();
dfo.setVisible(true);
}else{
dfo.setVisible(false);
}
if((!dj_undef("_statusHandler",ds))&&(ds._statusHandler!=null)){
ds._statusHandler.call(null,_acc,key);
}
}});
dojo.storage.manager.register("dojo.storage.browser.WhatWGStorageProvider",new dojo.storage.browser.WhatWGStorageProvider());
dojo.storage.manager.register("dojo.storage.browser.FlashStorageProvider",new dojo.storage.browser.FlashStorageProvider());
dojo.storage.manager.initialize();
dojo.provide("dojo.storage.*");
dojo.provide("dojo.namespaces.dojo");
(function(){
var map={html:{"accordioncontainer":"dojo.widget.AccordionContainer","animatedpng":"dojo.widget.AnimatedPng","button":"dojo.widget.Button","chart":"dojo.widget.Chart","checkbox":"dojo.widget.Checkbox","clock":"dojo.widget.Clock","colorpalette":"dojo.widget.ColorPalette","combobox":"dojo.widget.ComboBox","combobutton":"dojo.widget.Button","contentpane":"dojo.widget.ContentPane","currencytextbox":"dojo.widget.CurrencyTextbox","datepicker":"dojo.widget.DatePicker","datetextbox":"dojo.widget.DateTextbox","debugconsole":"dojo.widget.DebugConsole","dialog":"dojo.widget.Dialog","dropdownbutton":"dojo.widget.Button","dropdowndatepicker":"dojo.widget.DropdownDatePicker","dropdowntimepicker":"dojo.widget.DropdownTimePicker","emaillisttextbox":"dojo.widget.InternetTextbox","emailtextbox":"dojo.widget.InternetTextbox","editor":"dojo.widget.Editor","editor2":"dojo.widget.Editor2","filteringtable":"dojo.widget.FilteringTable","fisheyelist":"dojo.widget.FisheyeList","fisheyelistitem":"dojo.widget.FisheyeList","floatingpane":"dojo.widget.FloatingPane","modalfloatingpane":"dojo.widget.FloatingPane","form":"dojo.widget.Form","googlemap":"dojo.widget.GoogleMap","inlineeditbox":"dojo.widget.InlineEditBox","integerspinner":"dojo.widget.Spinner","integertextbox":"dojo.widget.IntegerTextbox","ipaddresstextbox":"dojo.widget.InternetTextbox","layoutcontainer":"dojo.widget.LayoutContainer","linkpane":"dojo.widget.LinkPane","popupmenu2":"dojo.widget.Menu2","menuitem2":"dojo.widget.Menu2","menuseparator2":"dojo.widget.Menu2","menubar2":"dojo.widget.Menu2","menubaritem2":"dojo.widget.Menu2","pagecontainer":"dojo.widget.PageContainer","pagecontroller":"dojo.widget.PageContainer","popupcontainer":"dojo.widget.PopupContainer","progressbar":"dojo.widget.ProgressBar","radiogroup":"dojo.widget.RadioGroup","realnumbertextbox":"dojo.widget.RealNumberTextbox","regexptextbox":"dojo.widget.RegexpTextbox","repeater":"dojo.widget.Repeater","resizabletextarea":"dojo.widget.ResizableTextarea","richtext":"dojo.widget.RichText","select":"dojo.widget.Select","show":"dojo.widget.Show","showaction":"dojo.widget.ShowAction","showslide":"dojo.widget.ShowSlide","slidervertical":"dojo.widget.Slider","sliderhorizontal":"dojo.widget.Slider","slider":"dojo.widget.Slider","slideshow":"dojo.widget.SlideShow","sortabletable":"dojo.widget.SortableTable","splitcontainer":"dojo.widget.SplitContainer","tabcontainer":"dojo.widget.TabContainer","tabcontroller":"dojo.widget.TabContainer","taskbar":"dojo.widget.TaskBar","textbox":"dojo.widget.Textbox","timepicker":"dojo.widget.TimePicker","timetextbox":"dojo.widget.DateTextbox","titlepane":"dojo.widget.TitlePane","toaster":"dojo.widget.Toaster","toggler":"dojo.widget.Toggler","toolbar":"dojo.widget.Toolbar","toolbarcontainer":"dojo.widget.Toolbar","toolbaritem":"dojo.widget.Toolbar","toolbarbuttongroup":"dojo.widget.Toolbar","toolbarbutton":"dojo.widget.Toolbar","toolbardialog":"dojo.widget.Toolbar","toolbarmenu":"dojo.widget.Toolbar","toolbarseparator":"dojo.widget.Toolbar","toolbarspace":"dojo.widget.Toolbar","toolbarselect":"dojo.widget.Toolbar","toolbarcolordialog":"dojo.widget.Toolbar","tooltip":"dojo.widget.Tooltip","tree":"dojo.widget.Tree","treebasiccontroller":"dojo.widget.TreeBasicController","treecontextmenu":"dojo.widget.TreeContextMenu","treedisablewrapextension":"dojo.widget.TreeDisableWrapExtension","treedociconextension":"dojo.widget.TreeDocIconExtension","treeeditor":"dojo.widget.TreeEditor","treeemphasizeonselect":"dojo.widget.TreeEmphasizeOnSelect","treeexpandtonodeonselect":"dojo.widget.TreeExpandToNodeOnSelect","treelinkextension":"dojo.widget.TreeLinkExtension","treeloadingcontroller":"dojo.widget.TreeLoadingController","treemenuitem":"dojo.widget.TreeContextMenu","treenode":"dojo.widget.TreeNode","treerpccontroller":"dojo.widget.TreeRPCController","treeselector":"dojo.widget.TreeSelector","treetoggleonselect":"dojo.widget.TreeToggleOnSelect","treev3":"dojo.widget.TreeV3","treebasiccontrollerv3":"dojo.widget.TreeBasicControllerV3","treecontextmenuv3":"dojo.widget.TreeContextMenuV3","treedndcontrollerv3":"dojo.widget.TreeDndControllerV3","treeloadingcontrollerv3":"dojo.widget.TreeLoadingControllerV3","treemenuitemv3":"dojo.widget.TreeContextMenuV3","treerpccontrollerv3":"dojo.widget.TreeRpcControllerV3","treeselectorv3":"dojo.widget.TreeSelectorV3","urltextbox":"dojo.widget.InternetTextbox","usphonenumbertextbox":"dojo.widget.UsTextbox","ussocialsecuritynumbertextbox":"dojo.widget.UsTextbox","usstatetextbox":"dojo.widget.UsTextbox","usziptextbox":"dojo.widget.UsTextbox","validationtextbox":"dojo.widget.ValidationTextbox","treeloadingcontroller":"dojo.widget.TreeLoadingController","wizardcontainer":"dojo.widget.Wizard","wizardpane":"dojo.widget.Wizard","yahoomap":"dojo.widget.YahooMap"},svg:{"chart":"dojo.widget.svg.Chart"},vml:{"chart":"dojo.widget.vml.Chart"}};
dojo.addDojoNamespaceMapping=function(_ad1,_ad2){
map[_ad1]=_ad2;
};
function dojoNamespaceResolver(name,_ad4){
if(!_ad4){
_ad4="html";
}
if(!map[_ad4]){
return null;
}
return map[_ad4][name];
}
dojo.registerNamespaceResolver("dojo",dojoNamespaceResolver);
})();
dojo.provide("dojo.html.*");
dojo.provide("dojo.html");
dojo.deprecated("dojo.html","replaced by dojo.html.*","0.5");
dojo.provide("dojo.debug.Firebug");
dojo.deprecated("dojo.debug.Firebug is slated for removal in 0.5; use dojo.debug.console instead.","0.5");
if(dojo.render.html.moz){
if(console&&console.log){
var consoleLog=function(){
if(!djConfig.isDebug){
return;
}
var args=dojo.lang.toArray(arguments);
args.splice(0,0,"DEBUG: ");
console.log.apply(console,args);
};
dojo.debug=consoleLog;
dojo.debugDeep=consoleLog;
dojo.debugShallow=function(obj){
if(!djConfig.isDebug){
return;
}
if(dojo.lang.isArray(obj)){
console.log("Array: ",obj);
for(var i=0;x<obj.length;i++){
console.log("    ","["+i+"]",obj[i]);
}
}else{
console.log("Object: ",obj);
var _ad8=[];
for(var prop in obj){
_ad8.push(prop);
}
_ad8.sort();
dojo.lang.forEach(_ad8,function(prop){
try{
console.log("    ",prop,obj[prop]);
}
catch(e){
console.log("    ",prop,"ERROR",e.message,e);
}
});
}
};
}else{
dojo.debug("dojo.debug.Firebug requires Firebug > 0.4");
}
}
dojo.provide("ag.html");
ag.html.setOptions=function(_adb,_adc){
_adb.options.length=0;
var _add=ag.html._buildOptions(_adc);
var i=0;
var o;
for(o=0;o<_add.length;o++){
_adb.options[i]=_add[o];
i++;
}
};
ag.html._buildOptions=function(_ae0){
var _ae1=new Array();
var _ae2=0;
var t;
for(t=0;t<_ae0.length;t++){
var _ae4=_ae0[t][1];
var _ae5=_ae0[t][0];
var o=new Option(_ae5,_ae4);
_ae1[_ae1.length]=o;
_ae2++;
}
if(_ae2>1){
_ae1.unshift(new Option("",""));
}
return _ae1;
};
dojo.provide("ag.search");
ag.search.refined=new Array();
ag.search.fillOptions=function(evt,url){
ag.search.lockdown();
ag.search.setValues(evt.target.value,url,ag.search._fill,"filter");
last_refinement=evt.target.id;
ag.search.refined.push(evt.target.id);
dojo.debug("refined is :"+ag.search.refined);
dojo.debug("last refinement is "+last_refinement);
};
ag.search.reset=function(_ae9,url){
dojo.debug("starting reset");
ag.search.lockdown();
ag.search.refined=new Array();
ag.search.setValues(_ae9,url,ag.search._reset,"reset");
};
ag.search.setValues=function(_aeb,url,_aed,_aee){
var _aef=new Object();
_aef["filter"]=_aeb;
_aef["pd_nogzip"]="1";
_aef["action"]=_aee;
var data=dojo.io.bind({url:url,content:_aef,load:_aed,mimetype:"text/json"});
};
ag.search._fill=function(type,data,evt){
dojo.debug("doing fill. last is "+last_refinement);
for(i in data){
var _af4=dojo.byId(i);
ag.html.setOptions(_af4,data[i]);
if(i==last_refinement){
ag.search.setFilterContext(data[i]);
}
}
ag.search.crumbs();
ag.search.unlock();
};
ag.search._reset=function(type,data,evt){
ag.search._fill(type,data,evt);
ag.search.unlockall();
ag.search.disableButtons();
};
ag.search.setFilterContext=function(_af8){
var _af9=dojo.byId("filter_ctx");
_af9.value=_af8[0][1];
};
ag.search.disableButtons=function(){
resetbutton=dojo.byId("reset-button");
resetbutton.src=imghost+"/agbeta/button/resetbw.gif";
dojo.event.disconnect(resetbutton,"onclick","reset");
refinebutton=dojo.byId("refine-button");
refinebutton.src=imghost+"/agbeta/button/refinebw.gif";
refinebutton.disabled=true;
dojo.byId("refine-reset");
};
ag.search.enableButtons=function(){
resetbutton=dojo.byId("reset-button");
resetbutton.src=imghost+"/agbeta/button/reset.gif";
dojo.event.connect(resetbutton,"onclick","reset");
refinebutton=dojo.byId("refine-button");
refinebutton.src=imghost+"/agbeta/button/refine.gif";
refinebutton.disabled=false;
};
ag.search.lockdown=function(){
ag.search.disableButtons();
ag.search._toggleWait();
for(i in ag.search.refinements){
var _afa=ag.search.refinements[i];
if(_afa.length>0){
var _afb="sblock-"+_afa;
dojo.debug("locking down sblock-"+_afa);
var _afc=dojo.byId("sblock-"+_afa);
dojo.html.addClass(_afc,"agi-results-inactive");
var _afd=dojo.byId(_afa);
_afd.disabled=true;
_afd.title="not available";
}
}
};
ag.search._toggleWait=function(){
var _afe=dojo.byId("crumb-container");
dojo.html.toggleShowing(_afe);
var _aff=dojo.byId("wait-spinner");
dojo.html.toggleShowing(_aff);
};
ag.search.unlock=function(){
ag.search.enableButtons();
ag.search._toggleWait();
for(i in ag.search.refinements){
var _b00=ag.search.refinements[i];
if(_b00.length>0&&(_b00!=last_refinement)&&(!dojo.lang.inArray(ag.search.refined,_b00))&&(dojo.byId(_b00).options.length>1)){
dojo.debug("len is "+dojo.byId(_b00).options.length);
var _b01="sblock-"+_b00;
dojo.debug("unlocking sblock-"+_b00);
var _b02=dojo.byId("sblock-"+_b00);
dojo.html.removeClass(_b02,"agi-results-inactive");
var _b03=dojo.byId(_b00);
_b03.disabled=false;
}
}
};
ag.search.unlockall=function(){
for(i in ag.search.refinements){
var _b04=ag.search.refinements[i];
var _b05="sblock-"+_b04;
var _b06=dojo.byId("sblock-"+_b04);
dojo.html.removeClass(_b06,"agi-results-inactive");
var _b07=dojo.byId(_b04);
_b07.disabled=false;
}
};
ag.search.crumbs=function(){
var _b08=ag.search.refined.length;
var _b09=dojo.byId("refine-crumbs");
var _b0a=dojo.byId("refinements");
var _b0b="";
for(i in ag.search.refined){
var _b0c=ag.search.refined[i];
var _b0d=dojo.byId(_b0c);
var _b0e=_b0d.selectedIndex;
if(i>0){
_b0b+=", ";
}
_b0b+=_b0d.options[_b0e].text;
}
_b0a.value=_b0b;
_b09.innerHTML=_b0b;
};

