Solved

PopUp Behaviour(using DOJO)

Posted on 2008-09-29
47
8,581 Views
Last Modified: 2012-06-27
In IE popup *briefly* displays big ugly black border.  No need for ugly border.
Dojo already does most of the work. It calculates the position where the popup should show, connecting a div body as the popup to a particular object ,  the way the popup opens (explode or fade) etc.
I am using DOJO with AJAX
In My CSS file

.popAvailability {        
      width: 283px;      
       }
If I change my css like this
.popAvailability {      
      position: absolute;
      width: 283px;      
       }
Then PopUp displays without the ugly black border.But the position where the popup should show is not correct

Please help me in this.

Thanks
0
Comment
Question by:vvsrk76
  • 27
  • 20
47 Comments
 
LVL 14

Expert Comment

by:EMB01
ID: 22599534
At what position do you wish for the popup to show?
0
 

Author Comment

by:vvsrk76
ID: 22599545
DOJO calculates the position where the popup should show
0
 

Author Comment

by:vvsrk76
ID: 22599559
Attched sample code
<a style="cursor:pointer;" onclick="javascript:showTooltip('AltPartTooltip<c:out value="${status.count}" />')" id="AltParts<c:out value="${status.count}" />">Yes</a>

			        				<div dojoType="IMCToolTipContent" widgetId="AltPartTooltip<c:out value="${status.count}" />" connectId = "AltParts<c:out value="${status.count}" />" 

			        				 href="AjaxAlternatePartsDisplayURL?ajaxCall=true&catRefNum=<c:out value="${product.itemBean.catalogEntryReferenceNumber}" />&catEntryIds=<c:out value="${catEntryIds}" />&index=<c:out value="${status.count}" />" 

			        				 showDelay="1000" style="display:none" toggle="fade" toggleDuration="250" executeScripts="true"> 

			        				</div>

Open in new window

0
 

Author Comment

by:vvsrk76
ID: 22599601
everthing works fine for me.But when we click the link popup opens with black border.
In fire fox its work fine.
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22599987
Have you tried changing your CSS to something as simple as:
.popAvailability {      
      border: none;
      width: 283px;      
       }

... Instead of applying the position attribute?
0
 

Author Comment

by:vvsrk76
ID: 22600250
I tried that one too. it did not work.
black border(blinking) just appears when we click the link.
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22600385
Do you have a published example that I can take a look at? Maybe, try this in the mean time:
.popAvailability {      
      position: absolute;
      z-index: auto;
      width: 283px;      
       }

Or, increase the x-index to 1.
0
 

Author Comment

by:vvsrk76
ID: 22600647
Go to our website

www.imcparts.net
 Login ID: krishna
pwd: password

In the home page right side top corner enter part number 01011 in the text box and click on GO button.
In the Alternate part section under avail? column click on 'Yes ' link it opens pop up.
So you can see the blck border

0
 

Author Comment

by:vvsrk76
ID: 22600654
Only it happens in IE only
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22600778
It's obviously a problem with IE rendering alpha-transparencies. Is the shadow graphic outside the green borders a .PNG graphic? If so, check this out:
http://www.twinhelix.com/css/iepngfix/

Otherwise, we'll have to look deeper into your fading shadow popup script.
0
 

Author Comment

by:vvsrk76
ID: 22600922
Can you please explain where do I change in my css?
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22601049
Well, first: Do you know if it's a .PNG graphic or not? Post some of your code so I can see, if you would. Just post the files regarding the CSS and JS for the popup.
0
 

Author Comment

by:vvsrk76
ID: 22601140
I am using DOJO

<script type="text/javascript" src="/wcsstore/dojo041/dojo.js"></script>
<script type="text/javascript">
      dojo.registerModulePath("wc", "wc");  
 
       //AJAX request support
      dojo.require("dojo.io.*");
</script>

function showTooltip(widId)
{
      var tooltipWidget = dojo.widget.byId(widId);
      tooltipWidget.open();
}
function closeTooltip(widId)
{
      var tooltipWidget = dojo.widget.byId(widId);
      tooltipWidget.close();
}


I am Ataching dojo.js
/*

	Copyright (c) 2004-2006, The Dojo Foundation

	All Rights Reserved.
 

	Licensed under the Academic Free License version 2.1 or above OR the

	modified BSD license. For more information on Dojo licensing, see:
 

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

*/
 

/*

	This is a compiled version of Dojo, built for deployment and not for

	development. To get an editable version, please visit:
 

		http://dojotoolkit.org
 

	for documentation and information on getting the source.

*/
 

if(typeof dojo=="undefined"){

var dj_global=this;

var dj_currentContext=this;

function dj_undef(_1,_2){

return (typeof (_2||dj_currentContext)[_1]=="undefined");

}

if(dj_undef("djConfig",this)){

var djConfig={};

}

if(dj_undef("dojo",this)){

var dojo={};

}

dojo.global=function(){

return dj_currentContext;

};

dojo.locale=djConfig.locale;

dojo.version={major:0,minor:4,patch:1,flag:"",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=["ROOT","es-es","es","it-it","pt-br","de","fr-fr","zh-cn","pt","en-us","zh","fr","zh-tw","it","en-gb","xx","de-de","ko-kr","ja-jp","ko","en","ja"];

dojo.hostenv.registerNlsPrefix=function(){

dojo.registerModulePath("nls","nls");

};

dojo.hostenv.preloadLocalizations=function(){

if(dojo.hostenv.localesGenerated){

dojo.hostenv.registerNlsPrefix();

function preload(_79){

_79=dojo.hostenv.normalizeLocale(_79);

dojo.hostenv.searchLocalePath(_79,true,function(loc){

for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){

if(dojo.hostenv.localesGenerated[i]==loc){

dojo["require"]("nls.dojo_"+loc);

return true;

}

}

return false;

});

}

preload();

var _7c=djConfig.extraLocale||[];

for(var i=0;i<_7c.length;i++){

preload(_7c[i]);

}

}

dojo.hostenv.preloadLocalizations=function(){

};

};

dojo.requireLocalization=function(_7e,_7f,_80,_81){

dojo.hostenv.preloadLocalizations();

var _82=dojo.hostenv.normalizeLocale(_80);

var _83=[_7e,"nls",_7f].join(".");

var _84="";

if(_81){

var _85=_81.split(",");

for(var i=0;i<_85.length;i++){

if(_82.indexOf(_85[i])==0){

if(_85[i].length>_84.length){

_84=_85[i];

}

}

}

if(!_84){

_84="ROOT";

}

}

var _87=_81?_84:_82;

var _88=dojo.hostenv.findModule(_83);

var _89=null;

if(_88){

if(djConfig.localizationComplete&&_88._built){

return;

}

var _8a=_87.replace("-","_");

var _8b=_83+"."+_8a;

_89=dojo.hostenv.findModule(_8b);

}

if(!_89){

_88=dojo.hostenv.startPackage(_83);

var _8c=dojo.hostenv.getModuleSymbols(_7e);

var _8d=_8c.concat("nls").join("/");

var _8e;

dojo.hostenv.searchLocalePath(_87,_81,function(loc){

var _90=loc.replace("-","_");

var _91=_83+"."+_90;

var _92=false;

if(!dojo.hostenv.findModule(_91)){

dojo.hostenv.startPackage(_91);

var _93=[_8d];

if(loc!="ROOT"){

_93.push(loc);

}

_93.push(_7f);

var _94=_93.join("/")+".js";

_92=dojo.hostenv.loadPath(_94,null,function(_95){

var _96=function(){

};

_96.prototype=_8e;

_88[_90]=new _96();

for(var j in _95){

_88[_90][j]=_95[j];

}

});

}else{

_92=true;

}

if(_92&&_88[_90]){

_8e=_88[_90];

}else{

_88[_90]=_8e;

}

if(_81){

return true;

}

});

}

if(_81&&_82!=_84){

_88[_82.replace("-","_")]=_88[_84.replace("-","_")];

}

};

(function(){

var _98=djConfig.extraLocale;

if(_98){

if(!_98 instanceof Array){

_98=[_98];

}

var req=dojo.requireLocalization;

dojo.requireLocalization=function(m,b,_9c,_9d){

req(m,b,_9c,_9d);

if(_9c){

return;

}

for(var i=0;i<_98.length;i++){

req(m,b,_98[i],_9d);

}

};

}

})();

}

if(typeof window!="undefined"){

(function(){

if(djConfig.allowQueryConfig){

var _9f=document.location.toString();

var _a0=_9f.split("?",2);

if(_a0.length>1){

var _a1=_a0[1];

var _a2=_a1.split("&");

for(var x in _a2){

var sp=_a2[x].split("=");

if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){

var opt=sp[0].substr(9);

try{

djConfig[opt]=eval(sp[1]);

}

catch(e){

djConfig[opt]=sp[1];

}

}

}

}

}

if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){

var _a6=document.getElementsByTagName("script");

var _a7=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;

for(var i=0;i<_a6.length;i++){

var src=_a6[i].getAttribute("src");

if(!src){

continue;

}

var m=src.match(_a7);

if(m){

var _ab=src.substring(0,m.index);

if(src.indexOf("bootstrap1")>-1){

_ab+="../";

}

if(!this["djConfig"]){

djConfig={};

}

if(djConfig["baseScriptUri"]==""){

djConfig["baseScriptUri"]=_ab;

}

if(djConfig["baseRelativePath"]==""){

djConfig["baseRelativePath"]=_ab;

}

break;

}

}

}

var dr=dojo.render;

var drh=dojo.render.html;

var drs=dojo.render.svg;

var dua=(drh.UA=navigator.userAgent);

var dav=(drh.AV=navigator.appVersion);

var t=true;

var f=false;

drh.capable=t;

drh.support.builtin=t;

dr.ver=parseFloat(drh.AV);

dr.os.mac=dav.indexOf("Macintosh")>=0;

dr.os.win=dav.indexOf("Windows")>=0;

dr.os.linux=dav.indexOf("X11")>=0;

drh.opera=dua.indexOf("Opera")>=0;

drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);

drh.safari=dav.indexOf("Safari")>=0;

var _b3=dua.indexOf("Gecko");

drh.mozilla=drh.moz=(_b3>=0)&&(!drh.khtml);

if(drh.mozilla){

drh.geckoVersion=dua.substring(_b3+6,_b3+14);

}

drh.ie=(document.all)&&(!drh.opera);

drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;

drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;

drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;

drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;

var cm=document["compatMode"];

drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;

dojo.locale=dojo.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();

dr.vml.capable=drh.ie;

drs.capable=f;

drs.support.plugin=f;

drs.support.builtin=f;

var _b5=window["document"];

var tdi=_b5["implementation"];

if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){

drs.capable=t;

drs.support.builtin=t;

drs.support.plugin=f;

}

if(drh.safari){

var tmp=dua.split("AppleWebKit/")[1];

var ver=parseFloat(tmp.split(" ")[0]);

if(ver>=420){

drs.capable=t;

drs.support.builtin=t;

drs.support.plugin=f;

}

}else{

}

})();

dojo.hostenv.startPackage("dojo.hostenv");

dojo.render.name=dojo.hostenv.name_="browser";

dojo.hostenv.searchIds=[];

dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];

dojo.hostenv.getXmlhttpObject=function(){

var _b9=null;

var _ba=null;

try{

_b9=new XMLHttpRequest();

}

catch(e){

}

if(!_b9){

for(var i=0;i<3;++i){

var _bc=dojo.hostenv._XMLHTTP_PROGIDS[i];

try{

_b9=new ActiveXObject(_bc);

}

catch(e){

_ba=e;

}

if(_b9){

dojo.hostenv._XMLHTTP_PROGIDS=[_bc];

break;

}

}

}

if(!_b9){

return dojo.raise("XMLHTTP not available",_ba);

}

return _b9;

};

dojo.hostenv._blockAsync=false;

dojo.hostenv.getText=function(uri,_be,_bf){

if(!_be){

this._blockAsync=true;

}

var _c0=this.getXmlhttpObject();

function isDocumentOk(_c1){

var _c2=_c1["status"];

return Boolean((!_c2)||((200<=_c2)&&(300>_c2))||(_c2==304));

}

if(_be){

var _c3=this,_c4=null,gbl=dojo.global();

var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");

_c0.onreadystatechange=function(){

if(_c4){

gbl.clearTimeout(_c4);

_c4=null;

}

if(_c3._blockAsync||(xhr&&xhr._blockAsync)){

_c4=gbl.setTimeout(function(){

_c0.onreadystatechange.apply(this);

},10);

}else{

if(4==_c0.readyState){

if(isDocumentOk(_c0)){

_be(_c0.responseText);

}

}

}

};

}

_c0.open("GET",uri,_be?true:false);

try{

_c0.send(null);

if(_be){

return null;

}

if(!isDocumentOk(_c0)){

var err=Error("Unable to load "+uri+" status:"+_c0.status);

err.status=_c0.status;

err.responseText=_c0.responseText;

throw err;

}

}

catch(e){

this._blockAsync=false;

if((_bf)&&(!_be)){

return null;

}else{

throw e;

}

}

this._blockAsync=false;

return _c0.responseText;

};

dojo.hostenv.defaultDebugContainerId="dojoDebug";

dojo.hostenv._println_buffer=[];

dojo.hostenv._println_safe=false;

dojo.hostenv.println=function(_c8){

if(!dojo.hostenv._println_safe){

dojo.hostenv._println_buffer.push(_c8);

}else{

try{

var _c9=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);

if(!_c9){

_c9=dojo.body();

}

var div=document.createElement("div");

div.appendChild(document.createTextNode(_c8));

_c9.appendChild(div);

}

catch(e){

try{

document.write("<div>"+_c8+"</div>");

}

catch(e2){

window.status=_c8;

}

}

}

};

dojo.addOnLoad(function(){

dojo.hostenv._println_safe=true;

while(dojo.hostenv._println_buffer.length>0){

dojo.hostenv.println(dojo.hostenv._println_buffer.shift());

}

});

function dj_addNodeEvtHdlr(_cb,_cc,fp){

var _ce=_cb["on"+_cc]||function(){

};

_cb["on"+_cc]=function(){

fp.apply(_cb,arguments);

_ce.apply(_cb,arguments);

};

return true;

}

function dj_load_init(e){

var _d0=(e&&e.type)?e.type.toLowerCase():"load";

if(arguments.callee.initialized||(_d0!="domcontentloaded"&&_d0!="load")){

return;

}

arguments.callee.initialized=true;

if(typeof (_timer)!="undefined"){

clearInterval(_timer);

delete _timer;

}

var _d1=function(){

if(dojo.render.html.ie){

dojo.hostenv.makeWidgets();

}

};

if(dojo.hostenv.inFlightCount==0){

_d1();

dojo.hostenv.modulesLoaded();

}else{

dojo.hostenv.modulesLoadedListeners.unshift(_d1);

}

}

if(document.addEventListener){

if(dojo.render.html.opera||(dojo.render.html.moz&&!djConfig.delayMozLoadingFix)){

document.addEventListener("DOMContentLoaded",dj_load_init,null);

}

window.addEventListener("load",dj_load_init,null);

}

if(dojo.render.html.ie&&dojo.render.os.win){

document.attachEvent("onreadystatechange",function(e){

if(document.readyState=="complete"){

dj_load_init();

}

});

}

if(/(WebKit|khtml)/i.test(navigator.userAgent)){

var _timer=setInterval(function(){

if(/loaded|complete/.test(document.readyState)){

dj_load_init();

}

},10);

}

if(dojo.render.html.ie){

dj_addNodeEvtHdlr(window,"beforeunload",function(){

dojo.hostenv._unloading=true;

window.setTimeout(function(){

dojo.hostenv._unloading=false;

},0);

});

}

dj_addNodeEvtHdlr(window,"unload",function(){

dojo.hostenv.unloaded();

if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){

dojo.hostenv.unloaded();

}

});

dojo.hostenv.makeWidgets=function(){

var _d3=[];

if(djConfig.searchIds&&djConfig.searchIds.length>0){

_d3=_d3.concat(djConfig.searchIds);

}

if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){

_d3=_d3.concat(dojo.hostenv.searchIds);

}

if((djConfig.parseWidgets)||(_d3.length>0)){

if(dojo.evalObjPath("dojo.widget.Parse")){

var _d4=new dojo.xml.Parse();

if(_d3.length>0){

for(var x=0;x<_d3.length;x++){

var _d6=document.getElementById(_d3[x]);

if(!_d6){

continue;

}

var _d7=_d4.parseElement(_d6,null,true);

dojo.widget.getParser().createComponents(_d7);

}

}else{

if(djConfig.parseWidgets){

var _d7=_d4.parseElement(dojo.body(),null,true);

dojo.widget.getParser().createComponents(_d7);

}

}

}

}

};

dojo.addOnLoad(function(){

if(!dojo.render.html.ie){

dojo.hostenv.makeWidgets();

}

});

try{

if(dojo.render.html.ie){

document.namespaces.add("v","urn:schemas-microsoft-com:vml");

document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");

}

}

catch(e){

}

dojo.hostenv.writeIncludes=function(){

};

if(!dj_undef("document",this)){

dj_currentDocument=this.document;

}

dojo.doc=function(){

return dj_currentDocument;

};

dojo.body=function(){

return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0];

};

dojo.byId=function(id,doc){

if((id)&&((typeof id=="string")||(id instanceof String))){

if(!doc){

doc=dj_currentDocument;

}

var ele=doc.getElementById(id);

if(ele&&(ele.id!=id)&&doc.all){

ele=null;

eles=doc.all[id];

if(eles){

if(eles.length){

for(var i=0;i<eles.length;i++){

if(eles[i].id==id){

ele=eles[i];

break;

}

}

}else{

ele=eles;

}

}

}

return ele;

}

return id;

};

dojo.setContext=function(_dc,_dd){

dj_currentContext=_dc;

dj_currentDocument=_dd;

};

dojo._fireCallback=function(_de,_df,_e0){

if((_df)&&((typeof _de=="string")||(_de instanceof String))){

_de=_df[_de];

}

return (_df?_de.apply(_df,_e0||[]):_de());

};

dojo.withGlobal=function(_e1,_e2,_e3,_e4){

var _e5;

var _e6=dj_currentContext;

var _e7=dj_currentDocument;

try{

dojo.setContext(_e1,_e1.document);

_e5=dojo._fireCallback(_e2,_e3,_e4);

}

finally{

dojo.setContext(_e6,_e7);

}

return _e5;

};

dojo.withDoc=function(_e8,_e9,_ea,_eb){

var _ec;

var _ed=dj_currentDocument;

try{

dj_currentDocument=_e8;

_ec=dojo._fireCallback(_e9,_ea,_eb);

}

finally{

dj_currentDocument=_ed;

}

return _ec;

};

}

(function(){

if(typeof dj_usingBootstrap!="undefined"){

return;

}

var _ee=false;

var _ef=false;

var _f0=false;

if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){

_ee=true;

}else{

if(typeof this["load"]=="function"){

_ef=true;

}else{

if(window.widget){

_f0=true;

}

}

}

var _f1=[];

if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){

_f1.push("debug.js");

}

if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_ee)&&(!_f0)){

_f1.push("browser_debug.js");

}

var _f2=djConfig["baseScriptUri"];

if((this["djConfig"])&&(djConfig["baseLoaderUri"])){

_f2=djConfig["baseLoaderUri"];

}

for(var x=0;x<_f1.length;x++){

var _f4=_f2+"src/"+_f1[x];

if(_ee||_ef){

load(_f4);

}else{

try{

document.write("<scr"+"ipt type='text/javascript' src='"+_f4+"'></scr"+"ipt>");

}

catch(e){

var _f5=document.createElement("script");

_f5.src=_f4;

document.getElementsByTagName("head")[0].appendChild(_f5);

}

}

}

})();

dojo.provide("dojo.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,_fc,_fd){

var out="";

for(var i=0;i<_fc;i++){

out+=str;

if(_fd&&i<_fc-1){

out+=_fd;

}

}

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.lang.common");

dojo.lang.inherits=function(_10b,_10c){

if(!dojo.lang.isFunction(_10c)){

dojo.raise("dojo.inherits: superclass argument ["+_10c+"] must be a function (subclass: ["+_10b+"']");

}

_10b.prototype=new _10c();

_10b.prototype.constructor=_10b;

_10b.superclass=_10c.prototype;

_10b["super"]=_10c.prototype;

};

dojo.lang._mixin=function(obj,_10e){

var tobj={};

for(var x in _10e){

if((typeof tobj[x]=="undefined")||(tobj[x]!=_10e[x])){

obj[x]=_10e[x];

}

}

if(dojo.render.html.ie&&(typeof (_10e["toString"])=="function")&&(_10e["toString"]!=obj["toString"])&&(_10e["toString"]!=tobj["toString"])){

obj.toString=_10e.toString;

}

return obj;

};

dojo.lang.mixin=function(obj,_112){

for(var i=1,l=arguments.length;i<l;i++){

dojo.lang._mixin(obj,arguments[i]);

}

return obj;

};

dojo.lang.extend=function(_115,_116){

for(var i=1,l=arguments.length;i<l;i++){

dojo.lang._mixin(_115.prototype,arguments[i]);

}

return _115;

};

dojo.inherits=dojo.lang.inherits;

dojo.mixin=dojo.lang.mixin;

dojo.extend=dojo.lang.extend;

dojo.lang.find=function(_119,_11a,_11b,_11c){

if(!dojo.lang.isArrayLike(_119)&&dojo.lang.isArrayLike(_11a)){

dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");

var temp=_119;

_119=_11a;

_11a=temp;

}

var _11e=dojo.lang.isString(_119);

if(_11e){

_119=_119.split("");

}

if(_11c){

var step=-1;

var i=_119.length-1;

var end=-1;

}else{

var step=1;

var i=0;

var end=_119.length;

}

if(_11b){

while(i!=end){

if(_119[i]===_11a){

return i;

}

i+=step;

}

}else{

while(i!=end){

if(_119[i]==_11a){

return i;

}

i+=step;

}

}

return -1;

};

dojo.lang.indexOf=dojo.lang.find;

dojo.lang.findLast=function(_122,_123,_124){

return dojo.lang.find(_122,_123,_124,true);

};

dojo.lang.lastIndexOf=dojo.lang.findLast;

dojo.lang.inArray=function(_125,_126){

return dojo.lang.find(_125,_126)>-1;

};

dojo.lang.isObject=function(it){

if(typeof it=="undefined"){

return false;

}

return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));

};

dojo.lang.isArray=function(it){

return (it&&it instanceof Array||typeof it=="array");

};

dojo.lang.isArrayLike=function(it){

if((!it)||(dojo.lang.isUndefined(it))){

return false;

}

if(dojo.lang.isString(it)){

return false;

}

if(dojo.lang.isFunction(it)){

return false;

}

if(dojo.lang.isArray(it)){

return true;

}

if((it.tagName)&&(it.tagName.toLowerCase()=="form")){

return false;

}

if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){

return true;

}

return false;

};

dojo.lang.isFunction=function(it){

return (it instanceof Function||typeof it=="function");

};

(function(){

if((dojo.render.html.capable)&&(dojo.render.html["safari"])){

dojo.lang.isFunction=function(it){

if((typeof (it)=="function")&&(it=="[object NodeList]")){

return false;

}

return (it instanceof Function||typeof it=="function");

};

}

})();

dojo.lang.isString=function(it){

return (typeof it=="string"||it instanceof String);

};

dojo.lang.isAlien=function(it){

if(!it){

return false;

}

return !dojo.lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));

};

dojo.lang.isBoolean=function(it){

return (it instanceof Boolean||typeof it=="boolean");

};

dojo.lang.isNumber=function(it){

return (it instanceof Number||typeof it=="number");

};

dojo.lang.isUndefined=function(it){

return ((typeof (it)=="undefined")&&(it==undefined));

};

dojo.provide("dojo.lang.extras");

dojo.lang.setTimeout=function(func,_132){

var _133=window,_134=2;

if(!dojo.lang.isFunction(func)){

_133=func;

func=_132;

_132=arguments[2];

_134++;

}

if(dojo.lang.isString(func)){

func=_133[func];

}

var args=[];

for(var i=_134;i<arguments.length;i++){

args.push(arguments[i]);

}

return dojo.global().setTimeout(function(){

func.apply(_133,args);

},_132);

};

dojo.lang.clearTimeout=function(_137){

dojo.global().clearTimeout(_137);

};

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(_140,_141,_142){

with(dojo.parseObjPath(_140,_141,_142)){

return dojo.evalProp(prop,obj,_142);

}

};

dojo.lang.setObjPathValue=function(_143,_144,_145,_146){

dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");

if(arguments.length<4){

_146=true;

}

with(dojo.parseObjPath(_143,_145,_146)){

if(obj&&(_146||(prop in obj))){

obj[prop]=_144;

}

}

};

dojo.provide("dojo.io.common");

dojo.io.transports=[];

dojo.io.hdlrFuncNames=["load","error","timeout"];

dojo.io.Request=function(url,_148,_149,_14a){

if((arguments.length==1)&&(arguments[0].constructor==Object)){

this.fromKwArgs(arguments[0]);

}else{

this.url=url;

if(_148){

this.mimetype=_148;

}

if(_149){

this.transport=_149;

}

if(arguments.length>=4){

this.changeUrl=_14a;

}

}

};

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,_14d,_14e){

},error:function(type,_150,_151,_152){

},timeout:function(type,_154,_155,_156){

},handle:function(type,data,_159,_15a){

},timeoutSeconds:0,abort:function(){

},fromKwArgs:function(_15b){

if(_15b["url"]){

_15b.url=_15b.url.toString();

}

if(_15b["formNode"]){

_15b.formNode=dojo.byId(_15b.formNode);

}

if(!_15b["method"]&&_15b["formNode"]&&_15b["formNode"].method){

_15b.method=_15b["formNode"].method;

}

if(!_15b["handle"]&&_15b["handler"]){

_15b.handle=_15b.handler;

}

if(!_15b["load"]&&_15b["loaded"]){

_15b.load=_15b.loaded;

}

if(!_15b["changeUrl"]&&_15b["changeURL"]){

_15b.changeUrl=_15b.changeURL;

}

_15b.encoding=dojo.lang.firstValued(_15b["encoding"],djConfig["bindEncoding"],"");

_15b.sendTransport=dojo.lang.firstValued(_15b["sendTransport"],djConfig["ioSendTransport"],false);

var _15c=dojo.lang.isFunction;

for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){

var fn=dojo.io.hdlrFuncNames[x];

if(_15b[fn]&&_15c(_15b[fn])){

continue;

}

if(_15b["handle"]&&_15c(_15b["handle"])){

_15b[fn]=_15b.handle;

}

}

dojo.lang.mixin(this,_15b);

}});

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(_163){

if(!(_163 instanceof dojo.io.Request)){

try{

_163=new dojo.io.Request(_163);

}

catch(e){

dojo.debug(e);

}

}

var _164="";

if(_163["transport"]){

_164=_163["transport"];

if(!this[_164]){

dojo.io.sendBindError(_163,"No dojo.io.bind() transport with name '"+_163["transport"]+"'.");

return _163;

}

if(!this[_164].canHandle(_163)){

dojo.io.sendBindError(_163,"dojo.io.bind() transport with name '"+_163["transport"]+"' cannot handle this type of request.");

return _163;

}

}else{

for(var x=0;x<dojo.io.transports.length;x++){

var tmp=dojo.io.transports[x];

if((this[tmp])&&(this[tmp].canHandle(_163))){

_164=tmp;

break;

}

}

if(_164==""){

dojo.io.sendBindError(_163,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");

return _163;

}

}

this[_164].bind(_163);

_163.bindSuccess=true;

return _163;

};

dojo.io.sendBindError=function(_167,_168){

if((typeof _167.error=="function"||typeof _167.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){

var _169=new dojo.io.Error(_168);

setTimeout(function(){

_167[(typeof _167.error=="function")?"error":"handle"]("error",_169,null,_167);

},50);

}else{

dojo.raise(_168);

}

};

dojo.io.queueBind=function(_16a){

if(!(_16a instanceof dojo.io.Request)){

try{

_16a=new dojo.io.Request(_16a);

}

catch(e){

dojo.debug(e);

}

}

var _16b=_16a.load;

_16a.load=function(){

dojo.io._queueBindInFlight=false;

var ret=_16b.apply(this,arguments);

dojo.io._dispatchNextQueueBind();

return ret;

};

var _16d=_16a.error;

_16a.error=function(){

dojo.io._queueBindInFlight=false;

var ret=_16d.apply(this,arguments);

dojo.io._dispatchNextQueueBind();

return ret;

};

dojo.io._bindQueue.push(_16a);

dojo.io._dispatchNextQueueBind();

return _16a;

};

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,_170,last){

var enc=/utf/i.test(_170||"")?encodeURIComponent:dojo.string.encodeAscii;

var _173=[];

var _174=new Object();

for(var name in map){

var _176=function(elt){

var val=enc(name)+"="+enc(elt);

_173[(last==name)?"push":"unshift"](val);

};

if(!_174[name]){

var _179=map[name];

if(dojo.lang.isArray(_179)){

dojo.lang.forEach(_179,_176);

}else{

_176(_179);

}

}

}

return _173.join("&");

};

dojo.io.setIFrameSrc=function(_17a,src,_17c){

try{

var r=dojo.render.html;

if(!_17c){

if(r.safari){

_17a.location=src;

}else{

frames[_17a.name].location=src;

}

}else{

var idoc;

if(r.ie){

idoc=_17a.contentWindow.document;

}else{

if(r.safari){

idoc=_17a.document;

}else{

idoc=_17a.contentWindow;

}

}

if(!idoc){

_17a.location=src;

return;

}else{

idoc.location.replace(src);

}

}

}

catch(e){

dojo.debug(e);

dojo.debug("setIFrameSrc: "+e);

}

};

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 _183=0;

for(var x in obj){

if(obj[x]&&(!tmp[x])){

_183++;

break;

}

}

return _183==0;

}else{

if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){

return obj.length==0;

}

}

},map:function(arr,obj,_187){

var _188=dojo.lang.isString(arr);

if(_188){

arr=arr.split("");

}

if(dojo.lang.isFunction(obj)&&(!_187)){

_187=obj;

obj=dj_global;

}else{

if(dojo.lang.isFunction(obj)&&_187){

var _189=obj;

obj=_187;

_187=_189;

}

}

if(Array.map){

var _18a=Array.map(arr,_187,obj);

}else{

var _18a=[];

for(var i=0;i<arr.length;++i){

_18a.push(_187.call(obj,arr[i]));

}

}

if(_188){

return _18a.join("");

}else{

return _18a;

}

},reduce:function(arr,_18d,obj,_18f){

var _190=_18d;

if(arguments.length==1){

dojo.debug("dojo.lang.reduce called with too few arguments!");

return false;

}else{

if(arguments.length==2){

_18f=_18d;

_190=arr.shift();

}else{

if(arguments.lenght==3){

if(dojo.lang.isFunction(obj)){

_18f=obj;

obj=null;

}

}else{

if(dojo.lang.isFunction(obj)){

var tmp=_18f;

_18f=obj;

obj=tmp;

}

}

}

}

var ob=obj?obj:dj_global;

dojo.lang.map(arr,function(val){

_190=_18f.call(ob,_190,val);

});

return _190;

},forEach:function(_194,_195,_196){

if(dojo.lang.isString(_194)){

_194=_194.split("");

}

if(Array.forEach){

Array.forEach(_194,_195,_196);

}else{

if(!_196){

_196=dj_global;

}

for(var i=0,l=_194.length;i<l;i++){

_195.call(_196,_194[i],i,_194);

}

}

},_everyOrSome:function(_199,arr,_19b,_19c){

if(dojo.lang.isString(arr)){

arr=arr.split("");

}

if(Array.every){

return Array[_199?"every":"some"](arr,_19b,_19c);

}else{

if(!_19c){

_19c=dj_global;

}

for(var i=0,l=arr.length;i<l;i++){

var _19f=_19b.call(_19c,arr[i],i,arr);

if(_199&&!_19f){

return false;

}else{

if((!_199)&&(_19f)){

return true;

}

}

}

return Boolean(_199);

}

},every:function(arr,_1a1,_1a2){

return this._everyOrSome(true,arr,_1a1,_1a2);

},some:function(arr,_1a4,_1a5){

return this._everyOrSome(false,arr,_1a4,_1a5);

},filter:function(arr,_1a7,_1a8){

var _1a9=dojo.lang.isString(arr);

if(_1a9){

arr=arr.split("");

}

var _1aa;

if(Array.filter){

_1aa=Array.filter(arr,_1a7,_1a8);

}else{

if(!_1a8){

if(arguments.length>=3){

dojo.raise("thisObject doesn't exist!");

}

_1a8=dj_global;

}

_1aa=[];

for(var i=0;i<arr.length;i++){

if(_1a7.call(_1a8,arr[i],i,arr)){

_1aa.push(arr[i]);

}

}

}

if(_1a9){

return _1aa.join("");

}else{

return _1aa;

}

},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(_1af,_1b0){

var _1b1=[];

for(var i=_1b0||0;i<_1af.length;i++){

_1b1.push(_1af[i]);

}

return _1b1;

}});

dojo.provide("dojo.lang.func");

dojo.lang.hitch=function(_1b3,_1b4){

var fcn=(dojo.lang.isString(_1b4)?_1b3[_1b4]:_1b4)||function(){

};

return function(){

return fcn.apply(_1b3,arguments);

};

};

dojo.lang.anonCtr=0;

dojo.lang.anon={};

dojo.lang.nameAnonFunc=function(_1b6,_1b7,_1b8){

var nso=(_1b7||dojo.lang.anon);

if((_1b8)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){

for(var x in nso){

try{

if(nso[x]===_1b6){

return x;

}

}

catch(e){

}

}

}

var ret="__"+dojo.lang.anonCtr++;

while(typeof nso[ret]!="undefined"){

ret="__"+dojo.lang.anonCtr++;

}

nso[ret]=_1b6;

return ret;

};

dojo.lang.forward=function(_1bc){

return function(){

return this[_1bc].apply(this,arguments);

};

};

dojo.lang.curry=function(_1bd,func){

var _1bf=[];

_1bd=_1bd||dj_global;

if(dojo.lang.isString(func)){

func=_1bd[func];

}

for(var x=2;x<arguments.length;x++){

_1bf.push(arguments[x]);

}

var _1c1=(func["__preJoinArity"]||func.length)-_1bf.length;

function gather(_1c2,_1c3,_1c4){

var _1c5=_1c4;

var _1c6=_1c3.slice(0);

for(var x=0;x<_1c2.length;x++){

_1c6.push(_1c2[x]);

}

_1c4=_1c4-_1c2.length;

if(_1c4<=0){

var res=func.apply(_1bd,_1c6);

_1c4=_1c5;

return res;

}else{

return function(){

return gather(arguments,_1c6,_1c4);

};

}

}

return gather([],_1bf,_1c1);

};

dojo.lang.curryArguments=function(_1c9,func,args,_1cc){

var _1cd=[];

var x=_1cc||0;

for(x=_1cc;x<args.length;x++){

_1cd.push(args[x]);

}

return dojo.lang.curry.apply(dojo.lang,[_1c9,func].concat(_1cd));

};

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,_1d3,_1d4){

if(!farr.length){

if(typeof _1d4=="function"){

_1d4();

}

return;

}

if((typeof _1d3=="undefined")&&(typeof cb=="number")){

_1d3=cb;

cb=function(){

};

}else{

if(!cb){

cb=function(){

};

if(!_1d3){

_1d3=0;

}

}

}

setTimeout(function(){

(farr.shift())();

cb();

dojo.lang.delayThese(farr,cb,_1d3,_1d4);

},_1d3);

};

dojo.provide("dojo.string.extras");

dojo.string.substituteParams=function(_1d5,hash){

var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);

return _1d5.replace(/\%\{(\w+)\}/g,function(_1d8,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 _1db=str.split(" ");

for(var i=0;i<_1db.length;i++){

_1db[i]=_1db[i].charAt(0).toUpperCase()+_1db[i].substring(1);

}

return _1db.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 _1e0=escape(str);

var _1e1,re=/%u([0-9A-F]{4})/i;

while((_1e1=_1e0.match(re))){

var num=Number("0x"+_1e1[1]);

var _1e4=escape("&#"+num+";");

ret+=_1e0.substring(0,_1e1.index)+_1e4;

_1e0=_1e0.substring(_1e1.index+_1e1[0].length);

}

ret+=_1e0.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,_1e9){

str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");

if(!_1e9){

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,_1f2){

if(_1f2){

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,_1f6,_1f7){

if(_1f7){

str=str.toLowerCase();

_1f6=_1f6.toLowerCase();

}

return str.indexOf(_1f6)==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,_1fd){

if(_1fd=="\n"){

text=text.replace(/\r\n/g,"\n");

text=text.replace(/\r/g,"\n");

}else{

if(_1fd=="\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,_1ff){

var _200=[];

for(var i=0,_202=0;i<str.length;i++){

if(str.charAt(i)=="\\"){

i++;

continue;

}

if(str.charAt(i)==_1ff){

_200.push(str.substring(_202,i));

_202=i+1;

}

}

_200.push(str.substr(_202));

return _200;

};

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 _204=dojo.doc();

do{

var id="dj_unique_"+(++arguments.callee._idIncrement);

}while(_204.getElementById(id));

return id;

};

dojo.dom.getUniqueId._idIncrement=0;

dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_206,_207){

var node=_206.firstChild;

while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){

node=node.nextSibling;

}

if(_207&&node&&node.tagName&&node.tagName.toLowerCase()!=_207.toLowerCase()){

node=dojo.dom.nextElement(node,_207);

}

return node;

};

dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_209,_20a){

var node=_209.lastChild;

while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){

node=node.previousSibling;

}

if(_20a&&node&&node.tagName&&node.tagName.toLowerCase()!=_20a.toLowerCase()){

node=dojo.dom.prevElement(node,_20a);

}

return node;

};

dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_20d){

if(!node){

return null;

}

do{

node=node.nextSibling;

}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);

if(node&&_20d&&_20d.toLowerCase()!=node.tagName.toLowerCase()){

return dojo.dom.nextElement(node,_20d);

}

return node;

};

dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_20f){

if(!node){

return null;

}

if(_20f){

_20f=_20f.toLowerCase();

}

do{

node=node.previousSibling;

}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);

if(node&&_20f&&_20f.toLowerCase()!=node.tagName.toLowerCase()){

return dojo.dom.prevElement(node,_20f);

}

return node;

};

dojo.dom.moveChildren=function(_210,_211,trim){

var _213=0;

if(trim){

while(_210.hasChildNodes()&&_210.firstChild.nodeType==dojo.dom.TEXT_NODE){

_210.removeChild(_210.firstChild);

}

while(_210.hasChildNodes()&&_210.lastChild.nodeType==dojo.dom.TEXT_NODE){

_210.removeChild(_210.lastChild);

}

}

while(_210.hasChildNodes()){

_211.appendChild(_210.firstChild);

_213++;

}

return _213;

};

dojo.dom.copyChildren=function(_214,_215,trim){

var _217=_214.cloneNode(true);

return this.moveChildren(_217,_215,trim);

};

dojo.dom.replaceChildren=function(node,_219){

var _21a=[];

if(dojo.render.html.ie){

for(var i=0;i<node.childNodes.length;i++){

_21a.push(node.childNodes[i]);

}

}

dojo.dom.removeChildren(node);

node.appendChild(_219);

for(var i=0;i<_21a.length;i++){

dojo.dom.destroyNode(_21a[i]);

}

};

dojo.dom.removeChildren=function(node){

var _21d=node.childNodes.length;

while(node.hasChildNodes()){

dojo.dom.removeNode(node.firstChild);

}

return _21d;

};

dojo.dom.replaceNode=function(node,_21f){

return node.parentNode.replaceChild(_21f,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,_223,_224){

var _225=[];

var _226=(_223&&(_223 instanceof Function||typeof _223=="function"));

while(node){

if(!_226||_223(node)){

_225.push(node);

}

if(_224&&_225.length>0){

return _225[0];

}

node=node.parentNode;

}

if(_224){

return null;

}

return _225;

};

dojo.dom.getAncestorsByTag=function(node,tag,_229){

tag=tag.toLowerCase();

return dojo.dom.getAncestors(node,function(el){

return ((el.tagName)&&(el.tagName.toLowerCase()==tag));

},_229);

};

dojo.dom.getFirstAncestorByTag=function(node,tag){

return dojo.dom.getAncestorsByTag(node,tag,true);

};

dojo.dom.isDescendantOf=function(node,_22e,_22f){

if(_22f&&node){

node=node.parentNode;

}

while(node){

if(node==_22e){

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 _232=dojo.doc();

if(!dj_undef("ActiveXObject")){

var _233=["MSXML2","Microsoft","MSXML","MSXML3"];

for(var i=0;i<_233.length;i++){

try{

doc=new ActiveXObject(_233[i]+".XMLDOM");

}

catch(e){

}

if(doc){

break;

}

}

}else{

if((_232.implementation)&&(_232.implementation.createDocument)){

doc=_232.implementation.createDocument("","",null);

}

}

return doc;

};

dojo.dom.createDocumentFromText=function(str,_236){

if(!_236){

_236="text/xml";

}

if(!dj_undef("DOMParser")){

var _237=new DOMParser();

return _237.parseFromString(str,_236);

}else{

if(!dj_undef("ActiveXObject")){

var _238=dojo.dom.createDocument();

if(_238){

_238.async=false;

_238.loadXML(str);

return _238;

}else{

dojo.debug("toXml didn't work?");

}

}else{

var _239=dojo.doc();

if(_239.createElement){

var tmp=_239.createElement("xml");

tmp.innerHTML=str;

if(_239.implementation&&_239.implementation.createDocument){

var _23b=_239.implementation.createDocument("foo","",null);

for(var i=0;i<tmp.childNodes.length;i++){

_23b.importNode(tmp.childNodes.item(i),true);

}

return _23b;

}

return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));

}

}

}

return null;

};

dojo.dom.prependChild=function(node,_23e){

if(_23e.firstChild){

_23e.insertBefore(node,_23e.firstChild);

}else{

_23e.appendChild(node);

}

return true;

};

dojo.dom.insertBefore=function(node,ref,_241){

if((_241!=true)&&(node===ref||node.nextSibling===ref)){

return false;

}

var _242=ref.parentNode;

_242.insertBefore(node,ref);

return true;

};

dojo.dom.insertAfter=function(node,ref,_245){

var pn=ref.parentNode;

if(ref==pn.lastChild){

if((_245!=true)&&(node===ref)){

return false;

}

pn.appendChild(node);

}else{

return this.insertBefore(node,ref.nextSibling,_245);

}

return true;

};

dojo.dom.insertAtPosition=function(node,ref,_249){

if((!node)||(!ref)||(!_249)){

return false;

}

switch(_249.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,_24b,_24c){

var _24d=_24b.childNodes;

if(!_24d.length||_24d.length==_24c){

_24b.appendChild(node);

return true;

}

if(_24c==0){

return dojo.dom.prependChild(node,_24b);

}

return dojo.dom.insertAfter(node,_24d[_24c-1]);

};

dojo.dom.textContent=function(node,text){

if(arguments.length>1){

var _250=dojo.doc();

dojo.dom.replaceChildren(node,_250.createTextNode(text));

return text;

}else{

if(node.textContent!=undefined){

return node.textContent;

}

var _251="";

if(node==null){

return _251;

}

for(var i=0;i<node.childNodes.length;i++){

switch(node.childNodes[i].nodeType){

case 1:

case 5:

_251+=dojo.dom.textContent(node.childNodes[i]);

break;

case 3:

case 2:

case 4:

_251+=node.childNodes[i].nodeValue;

break;

default:

break;

}

}

return _251;

}

};

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,_257,_258,_259){

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(_257,_258,_259);

}else{

var _25a=elem.ownerDocument;

var _25b=_25a.createNode(2,_258,_257);

_25b.nodeValue=_259;

elem.setAttributeNode(_25b);

}

};

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 _260=args["back"]||args["backButton"]||args["handle"];

var tcb=function(_262){

if(window.location.hash!=""){

setTimeout("window.location.href = '"+hash+"';",1);

}

_260.apply(this,[_262]);

};

if(args["back"]){

args.back=tcb;

}else{

if(args["backButton"]){

args.backButton=tcb;

}else{

if(args["handle"]){

args.handle=tcb;

}

}

}

var _263=args["forward"]||args["forwardButton"]||args["handle"];

var tfw=function(_265){

if(window.location.hash!=""){

window.location.href=hash;

}

if(_263){

_263.apply(this,[_265]);

}

};

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,_268){

if(!dojo.render.html.opera){

var _269=this._getUrlQuery(_268.href);

if(_269==null){

if(this.historyStack.length==1){

this.handleBackButton();

}

return;

}

if(this.moveForward){

this.moveForward=false;

return;

}

if(this.historyStack.length>=2&&_269==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){

this.handleBackButton();

}else{

if(this.forwardStack.length>0&&_269==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){

this.handleForwardButton();

}

}

}

},handleBackButton:function(){

var _26a=this.historyStack.pop();

if(!_26a){

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(_26a);

},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 _271=url.split("?");

if(_271.length<2){

return null;

}else{

return _271[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 _274=false;

var _275=node.getElementsByTagName("input");

dojo.lang.forEach(_275,function(_276){

if(_274){

return;

}

if(_276.getAttribute("type")=="file"){

_274=true;

}

});

return _274;

};

dojo.io.formHasFile=function(_277){

return dojo.io.checkChildrenForFile(_277);

};

dojo.io.updateNode=function(node,_279){

node=dojo.byId(node);

var args=_279;

if(dojo.lang.isString(_279)){

args={url:_279};

}

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(_280,_281,_282){

if((!_280)||(!_280.tagName)||(!_280.tagName.toLowerCase()=="form")){

dojo.raise("Attempted to encode a non-form element.");

}

if(!_282){

_282=dojo.io.formFilter;

}

var enc=/utf/i.test(_281||"")?encodeURIComponent:dojo.string.encodeAscii;

var _284=[];

for(var i=0;i<_280.elements.length;i++){

var elm=_280.elements[i];

if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_282(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){

_284.push(name+"="+enc(elm.options[j].value));

}

}

}else{

if(dojo.lang.inArray(["radio","checkbox"],type)){

if(elm.checked){

_284.push(name+"="+enc(elm.value));

}

}else{

_284.push(name+"="+enc(elm.value));

}

}

}

var _28a=_280.getElementsByTagName("input");

for(var i=0;i<_28a.length;i++){

var _28b=_28a[i];

if(_28b.type.toLowerCase()=="image"&&_28b.form==_280&&_282(_28b)){

var name=enc(_28b.name);

_284.push(name+"="+enc(_28b.value));

_284.push(name+".x=0");

_284.push(name+".y=0");

}

}

return _284.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 _291=form.getElementsByTagName("input");

for(var i=0;i<_291.length;i++){

var _292=_291[i];

if(_292.type.toLowerCase()=="image"&&_292.form==form){

this.connect(_292,"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 _299=false;

if(node.disabled||!node.name){

_299=false;

}else{

if(dojo.lang.inArray(["submit","button","image"],type)){

if(!this.clickedButton){

this.clickedButton=node;

}

_299=node==this.clickedButton;

}else{

_299=!dojo.lang.inArray(["file","submit","reset","button"],type);

}

}

return _299;

},connect:function(_29a,_29b,_29c){

if(dojo.evalObjPath("dojo.event.connect")){

dojo.event.connect(_29a,_29b,this,_29c);

}else{

var fcn=dojo.lang.hitch(this,_29c);

_29a[_29b]=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 _29f=this;

var _2a0={};

this.useCache=false;

this.preventCache=false;

function getCacheKey(url,_2a2,_2a3){

return url+"|"+_2a2+"|"+_2a3.toLowerCase();

}

function addToCache(url,_2a5,_2a6,http){

_2a0[getCacheKey(url,_2a5,_2a6)]=http;

}

function getFromCache(url,_2a9,_2aa){

return _2a0[getCacheKey(url,_2a9,_2aa)];

}

this.clearCache=function(){

_2a0={};

};

function doLoad(_2ab,http,url,_2ae,_2af){

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(_2ab.method.toLowerCase()=="head"){

var _2b1=http.getAllResponseHeaders();

ret={};

ret.toString=function(){

return _2b1;

};

var _2b2=_2b1.split(/[\r\n]+/g);

for(var i=0;i<_2b2.length;i++){

var pair=_2b2[i].match(/^([^:]+)\s*:\s*(.+)$/i);

if(pair){

ret[pair[1]]=pair[2];

}

}

}else{

if(_2ab.mimetype=="text/javascript"){

try{

ret=dj_eval(http.responseText);

}

catch(e){

dojo.debug(e);

dojo.debug(http.responseText);

ret=null;

}

}else{

if(_2ab.mimetype=="text/json"||_2ab.mimetype=="application/json"){

try{

ret=dj_eval("("+http.responseText+")");

}

catch(e){

dojo.debug(e);

dojo.debug(http.responseText);

ret=false;

}

}else{

if((_2ab.mimetype=="application/xml")||(_2ab.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(_2af){

addToCache(url,_2ae,_2ab.method,http);

}

_2ab[(typeof _2ab.load=="function")?"load":"handle"]("load",ret,http,_2ab);

}else{

var _2b5=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);

_2ab[(typeof _2ab.error=="function")?"error":"handle"]("error",_2b5,http,_2ab);

}

}

function setHeaders(http,_2b7){

if(_2b7["headers"]){

for(var _2b8 in _2b7["headers"]){

if(_2b8.toLowerCase()=="content-type"&&!_2b7["contentType"]){

_2b7["contentType"]=_2b7["headers"][_2b8];

}else{

http.setRequestHeader(_2b8,_2b7["headers"][_2b8]);

}

}

}

}

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&&!_29f._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 _2bc=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);

tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_2bc,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 _2bd=dojo.hostenv.getXmlhttpObject()?true:false;

this.canHandle=function(_2be){

return _2bd&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_2be["mimetype"].toLowerCase()||""))&&!(_2be["formNode"]&&dojo.io.formHasFile(_2be["formNode"]));

};

this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";

this.bind=function(_2bf){

if(!_2bf["url"]){

if(!_2bf["formNode"]&&(_2bf["backButton"]||_2bf["back"]||_2bf["changeUrl"]||_2bf["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(_2bf);

return true;

}

}

var url=_2bf.url;

var _2c1="";

if(_2bf["formNode"]){

var ta=_2bf.formNode.getAttribute("action");

if((ta)&&(!_2bf["url"])){

url=ta;

}

var tp=_2bf.formNode.getAttribute("method");

if((tp)&&(!_2bf["method"])){

_2bf.method=tp;

}

_2c1+=dojo.io.encodeForm(_2bf.formNode,_2bf.encoding,_2bf["formFilter"]);

}

if(url.indexOf("#")>-1){

dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);

url=url.split("#")[0];

}

if(_2bf["file"]){

_2bf.method="post";

}

if(!_2bf["method"]){

_2bf.method="get";

}

if(_2bf.method.toLowerCase()=="get"){

_2bf.multipart=false;

}else{

if(_2bf["file"]){

_2bf.multipart=true;

}else{

if(!_2bf["multipart"]){

_2bf.multipart=false;

}

}

}

if(_2bf["backButton"]||_2bf["back"]||_2bf["changeUrl"]){

dojo.undo.browser.addToHistory(_2bf);

}

var _2c4=_2bf["content"]||{};

if(_2bf.sendTransport){

_2c4["dojo.transport"]="xmlhttp";

}

do{

if(_2bf.postContent){

_2c1=_2bf.postContent;

break;

}

if(_2c4){

_2c1+=dojo.io.argsFromMap(_2c4,_2bf.encoding);

}

if(_2bf.method.toLowerCase()=="get"||!_2bf.multipart){

break;

}

var t=[];

if(_2c1.length){

var q=_2c1.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(_2bf.file){

if(dojo.lang.isArray(_2bf.file)){

for(var i=0;i<_2bf.file.length;++i){

var o=_2bf.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=_2bf.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+"--","");

_2c1=t.join("\r\n");

}

}while(false);

var _2ca=_2bf["sync"]?false:true;

var _2cb=_2bf["preventCache"]||(this.preventCache==true&&_2bf["preventCache"]!=false);

var _2cc=_2bf["useCache"]==true||(this.useCache==true&&_2bf["useCache"]!=false);

if(!_2cb&&_2cc){

var _2cd=getFromCache(url,_2c1,_2bf.method);

if(_2cd){

doLoad(_2bf,_2cd,url,_2c1,false);

return;

}

}

var http=dojo.hostenv.getXmlhttpObject(_2bf);

var _2cf=false;

if(_2ca){

var _2d0=this.inFlight.push({"req":_2bf,"http":http,"url":url,"query":_2c1,"useCache":_2cc,"startTime":_2bf.timeoutSeconds?(new Date()).getTime():0});

this.startWatchingInFlight();

}else{

_29f._blockAsync=true;

}

if(_2bf.method.toLowerCase()=="post"){

if(!_2bf.user){

http.open("POST",url,_2ca);

}else{

http.open("POST",url,_2ca,_2bf.user,_2bf.password);

}

setHeaders(http,_2bf);

http.setRequestHeader("Content-Type",_2bf.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_2bf.contentType||"application/x-www-form-urlencoded"));

try{

http.send(_2c1);

}

catch(e){

if(typeof http.abort=="function"){

http.abort();

}

doLoad(_2bf,{status:404},url,_2c1,_2cc);

}

}else{

var _2d1=url;

if(_2c1!=""){

_2d1+=(_2d1.indexOf("?")>-1?"&":"?")+_2c1;

}

if(_2cb){

_2d1+=(dojo.string.endsWithAny(_2d1,"?","&")?"":(_2d1.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();

}

if(!_2bf.user){

http.open(_2bf.method.toUpperCase(),_2d1,_2ca);

}else{

http.open(_2bf.method.toUpperCase(),_2d1,_2ca,_2bf.user,_2bf.password);

}

setHeaders(http,_2bf);

try{

http.send(null);

}

catch(e){

if(typeof http.abort=="function"){

http.abort();

}

doLoad(_2bf,{status:404},url,_2c1,_2cc);

}

}

if(!_2ca){

doLoad(_2bf,http,url,_2c1,_2cc);

_29f._blockAsync=false;

}

_2bf.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,_2d3,days,path,_2d6,_2d7){

var _2d8=-1;

if((typeof days=="number")&&(days>=0)){

var d=new Date();

d.setTime(d.getTime()+(days*24*60*60*1000));

_2d8=d.toGMTString();

}

_2d3=escape(_2d3);

document.cookie=name+"="+_2d3+";"+(_2d8!=-1?" expires="+_2d8+";":"")+(path?"path="+path:"")+(_2d6?"; domain="+_2d6:"")+(_2d7?"; 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 _2dc=document.cookie.substring(idx+name.length+1);

var end=_2dc.indexOf(";");

if(end==-1){

end=_2dc.length;

}

_2dc=_2dc.substring(0,end);

_2dc=unescape(_2dc);

return _2dc;

};

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,_2e3,_2e4,_2e5){

if(arguments.length==5){

_2e5=_2e3;

_2e3=null;

_2e4=null;

}

var _2e6=[],_2e7,_2e8="";

if(!_2e5){

_2e7=dojo.io.cookie.getObjectCookie(name);

}

if(days>=0){

if(!_2e7){

_2e7={};

}

for(var prop in obj){

if(obj[prop]==null){

delete _2e7[prop];

}else{

if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){

_2e7[prop]=obj[prop];

}

}

}

prop=null;

for(var prop in _2e7){

_2e6.push(escape(prop)+"="+escape(_2e7[prop]));

}

_2e8=_2e6.join("&");

}

dojo.io.cookie.setCookie(name,_2e8,days,path,_2e3,_2e4);

};

dojo.io.cookie.getObjectCookie=function(name){

var _2eb=null,_2ec=dojo.io.cookie.getCookie(name);

if(_2ec){

_2eb={};

var _2ed=_2ec.split("&");

for(var i=0;i<_2ed.length;i++){

var pair=_2ed[i].split("=");

var _2f0=pair[1];

if(isNaN(_2f0)){

_2f0=unescape(pair[1]);

}

_2eb[unescape(pair[0])]=_2f0;

}

}

return _2eb;

};

dojo.io.cookie.isSupported=function(){

if(typeof navigator.cookieEnabled!="boolean"){

dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);

var _2f1=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");

navigator.cookieEnabled=(_2f1=="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.event.common");

dojo.event=new function(){

this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);

function interpolateArgs(args,_2f3){

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 _2f6=dl.nameAnonFunc(args[2],ao.adviceObj,_2f3);

ao.adviceFunc=_2f6;

}else{

if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){

ao.adviceType="after";

ao.srcObj=dj_global;

var _2f6=dl.nameAnonFunc(args[0],ao.srcObj,_2f3);

ao.srcFunc=_2f6;

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 _2f6=dl.nameAnonFunc(args[1],dj_global,_2f3);

ao.srcFunc=_2f6;

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 _2f6=dl.nameAnonFunc(args[3],dj_global,_2f3);

ao.adviceObj=dj_global;

ao.adviceFunc=_2f6;

}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 _2f6=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2f3);

ao.aroundFunc=_2f6;

}

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 _2f8={};

for(var x in ao){

_2f8[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);

}

_2f8.srcObj=src;

mjps.push(dojo.event.connect.call(dojo.event,_2f8));

});

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 _300;

if((arguments.length==1)&&(typeof a1=="object")){

_300=a1;

}else{

_300={srcObj:a1,srcFunc:a2};

}

_300.adviceFunc=function(){

var _301=[];

for(var x=0;x<arguments.length;x++){

_301.push(arguments[x]);

}

dojo.debug("("+_300.srcObj+")."+_300.srcFunc,":",_301.join(", "));

};

this.kwConnect(_300);

};

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(_308,_309){

var fn=(_309)?"disconnect":"connect";

if(typeof _308["srcFunc"]=="function"){

_308.srcObj=_308["srcObj"]||dj_global;

var _30b=dojo.lang.nameAnonFunc(_308.srcFunc,_308.srcObj,true);

_308.srcFunc=_30b;

}

if(typeof _308["adviceFunc"]=="function"){

_308.adviceObj=_308["adviceObj"]||dj_global;

var _30b=dojo.lang.nameAnonFunc(_308.adviceFunc,_308.adviceObj,true);

_308.adviceFunc=_30b;

}

_308.srcObj=_308["srcObj"]||dj_global;

_308.adviceObj=_308["adviceObj"]||_308["targetObj"]||dj_global;

_308.adviceFunc=_308["adviceFunc"]||_308["targetFunc"];

return dojo.event[fn](_308);

};

this.kwConnect=function(_30c){

return this._kwConnectImpl(_30c,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(_30f){

return this._kwConnectImpl(_30f,true);

};

};

dojo.event.MethodInvocation=function(_310,obj,args){

this.jp_=_310;

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,_318){

this.object=obj||dj_global;

this.methodname=_318;

this.methodfunc=this.object[_318];

this.squelch=false;

};

dojo.event.MethodJoinPoint.getForMethod=function(obj,_31a){

if(!obj){

obj=dj_global;

}

if(!obj[_31a]){

obj[_31a]=function(){

};

if(!obj[_31a]){

dojo.raise("Cannot set do-nothing method on that object "+_31a);

}

}else{

if((!dojo.lang.isFunction(obj[_31a]))&&(!dojo.lang.isAlien(obj[_31a]))){

return null;

}

}

var _31b=_31a+"$joinpoint";

var _31c=_31a+"$joinpoint$method";

var _31d=obj[_31b];

if(!_31d){

var _31e=false;

if(dojo.event["browser"]){

if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){

_31e=true;

dojo.event.browser.addClobberNodeAttrs(obj,[_31b,_31c,_31a]);

}

}

var _31f=obj[_31a].length;

obj[_31c]=obj[_31a];

_31d=obj[_31b]=new dojo.event.MethodJoinPoint(obj,_31c);

obj[_31a]=function(){

var args=[];

if((_31e)&&(!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)&&(_31e)&&(dojo.event.browser.isEvent(arguments[x]))){

args.push(dojo.event.browser.fixEvent(arguments[x],this));

}else{

args.push(arguments[x]);

}

}

}

return _31d.run.apply(_31d,args);

};

obj[_31a].__preJoinArity=_31f;

}

return _31d;

};

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 _325=[];

for(var x=0;x<args.length;x++){

_325[x]=args[x];

}

var _327=function(marr){

if(!marr){

dojo.debug("Null argument to unrollAdvice()");

return;

}

var _329=marr[0]||dj_global;

var _32a=marr[1];

if(!_329[_32a]){

dojo.raise("function \""+_32a+"\" does not exist on \""+_329+"\"");

}

var _32b=marr[2]||dj_global;

var _32c=marr[3];

var msg=marr[6];

var _32e;

var to={args:[],jp_:this,object:obj,proceed:function(){

return _329[_32a].apply(_329,to.args);

}};

to.args=_325;

var _330=parseInt(marr[4]);

var _331=((!isNaN(_330))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));

if(marr[5]){

var rate=parseInt(marr[5]);

var cur=new Date();

var _334=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;

_327(mcpy);

},tod);

}

return;

}else{

marr.last=cur;

}

}

if(_32c){

_32b[_32c].call(_32b,to);

}else{

if((_331)&&((dojo.render.html)||(dojo.render.svg))){

dj_global["setTimeout"](function(){

if(msg){

_329[_32a].call(_329,to);

}else{

_329[_32a].apply(_329,args);

}

},_330);

}else{

if(msg){

_329[_32a].call(_329,to);

}else{

_329[_32a].apply(_329,args);

}

}

}

};

var _337=function(){

if(this.squelch){

try{

return _327.apply(this,arguments);

}

catch(e){

dojo.debug(e);

}

}else{

return _327.apply(this,arguments);

}

};

if((this["before"])&&(this.before.length>0)){

dojo.lang.forEach(this.before.concat(new Array()),_337);

}

var _338;

try{

if((this["around"])&&(this.around.length>0)){

var mi=new dojo.event.MethodInvocation(this,obj,args);

_338=mi.proceed();

}else{

if(this.methodfunc){

_338=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()),_337);

}

return (this.methodfunc)?_338: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(_33d,_33e,_33f,_340,_341,_342,once,_344,rate,_346){

var arr=this.getArr(_341);

if(!arr){

dojo.raise("bad this: "+this);

}

var ao=[_33d,_33e,_33f,_340,_344,rate,_346];

if(once){

if(this.hasAdvice(_33d,_33e,_341,arr)>=0){

return;

}

}

if(_342=="first"){

arr.unshift(ao);

}else{

arr.push(ao);

}

},hasAdvice:function(_349,_34a,_34b,arr){

if(!arr){

arr=this.getArr(_34b);

}

var ind=-1;

for(var x=0;x<arr.length;x++){

var aao=(typeof _34a=="object")?(new String(_34a)).toString():_34a;

var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];

if((arr[x][0]==_349)&&(a1o==aao)){

ind=x;

}

}

return ind;

},removeAdvice:function(_351,_352,_353,once){

var arr=this.getArr(_353);

var ind=this.hasAdvice(_351,_352,_353,arr);

if(ind==-1){

return false;

}

while(ind!=-1){

arr.splice(ind,1);

if(once){

break;

}

ind=this.hasAdvice(_351,_352,_353,arr);

}

return true;

}});

dojo.provide("dojo.event.topic");

dojo.event.topic=new function(){

this.topics={};

this.getTopic=function(_357){

if(!this.topics[_357]){

this.topics[_357]=new this.TopicImpl(_357);

}

return this.topics[_357];

};

this.registerPublisher=function(_358,obj,_35a){

var _358=this.getTopic(_358);

_358.registerPublisher(obj,_35a);

};

this.subscribe=function(_35b,obj,_35d){

var _35b=this.getTopic(_35b);

_35b.subscribe(obj,_35d);

};

this.unsubscribe=function(_35e,obj,_360){

var _35e=this.getTopic(_35e);

_35e.unsubscribe(obj,_360);

};

this.destroy=function(_361){

this.getTopic(_361).destroy();

delete this.topics[_361];

};

this.publishApply=function(_362,args){

var _362=this.getTopic(_362);

_362.sendMessage.apply(_362,args);

};

this.publish=function(_364,_365){

var _364=this.getTopic(_364);

var args=[];

for(var x=1;x<arguments.length;x++){

args.push(arguments[x]);

}

_364.sendMessage.apply(_364,args);

};

};

dojo.event.topic.TopicImpl=function(_368){

this.topicName=_368;

this.subscribe=function(_369,_36a){

var tf=_36a||_369;

var to=(!_36a)?dj_global:_369;

return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});

};

this.unsubscribe=function(_36d,_36e){

var tf=(!_36e)?_36d:_36e;

var to=(!_36e)?null:_36d;

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(_371){

this._getJoinPoint().squelch=_371;

};

this.destroy=function(){

this._getJoinPoint().disconnect();

};

this.registerPublisher=function(_372,_373){

dojo.event.connect(_372,_373,this,"sendMessage");

};

this.sendMessage=function(_374){

};

};

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(_377){

var na;

var tna;

if(_377){

tna=_377.all||_377.getElementsByTagName("*");

na=[_377];

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 _37b={};

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 _380=0;

this.normalizedEventName=function(_381){

switch(_381){

case "CheckboxStateChange":

case "DOMAttrModified":

case "DOMMenuItemActive":

case "DOMMenuItemInactive":

case "DOMMouseScroll":

case "DOMNodeInserted":

case "DOMNodeRemoved":

case "RadioStateChange":

return _381;

break;

default:

return _381.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,_385){

if(!dojo.render.html.ie){

return;

}

this.addClobberNode(node);

for(var x=0;x<_385.length;x++){

node.__clobberAttrs__.push(_385[x]);

}

};

this.removeListener=function(node,_388,fp,_38a){

if(!_38a){

var _38a=false;

}

_388=dojo.event.browser.normalizedEventName(_388);

if((_388=="onkey")||(_388=="key")){

if(dojo.render.html.ie){

this.removeListener(node,"onkeydown",fp,_38a);

}

_388="onkeypress";

}

if(_388.substr(0,2)=="on"){

_388=_388.substr(2);

}

if(node.removeEventListener){

node.removeEventListener(_388,fp,_38a);

}

};

this.addListener=function(node,_38c,fp,_38e,_38f){

if(!node){

return;

}

if(!_38e){

var _38e=false;

}

_38c=dojo.event.browser.normalizedEventName(_38c);

if((_38c=="onkey")||(_38c=="key")){

if(dojo.render.html.ie){

this.addListener(node,"onkeydown",fp,_38e,_38f);

}

_38c="onkeypress";

}

if(_38c.substr(0,2)!="on"){

_38c="on"+_38c;

}

if(!_38f){

var _390=function(evt){

if(!evt){

evt=window.event;

}

var ret=fp(dojo.event.browser.fixEvent(evt,this));

if(_38e){

dojo.event.browser.stopEvent(evt);

}

return ret;

};

}else{

_390=fp;

}

if(node.addEventListener){

node.addEventListener(_38c.substr(2),_390,_38e);

return _390;

}else{

if(typeof node[_38c]=="function"){

var _393=node[_38c];

node[_38c]=function(e){

_393(e);

return _390(e);

};

}else{

node[_38c]=_390;

}

if(dojo.render.html.ie){

this.addClobberNodeAttrs(node,[_38c]);

}

return _390;

}

};

this.isEvent=function(obj){

return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);

};

this.currentEvent=null;

this.callListener=function(_396,_397){

if(typeof _396!="function"){

dojo.raise("listener not a function: "+_396);

}

dojo.event.browser.currentEvent.currentTarget=_397;

return _396.call(_397,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,_39a){

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 _39c=evt.keyCode;

if(_39c>=65&&_39c<=90&&evt.shiftKey==false){

_39c+=32;

}

if(_39c>=1&&_39c<=26&&evt.ctrlKey){

_39c+=96;

}

evt.key=String.fromCharCode(_39c);

}

}

}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 _39c=evt.which;

if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){

_39c+=32;

}

evt.key=String.fromCharCode(_39c);

}

}

}

}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=(_39a?_39a: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 _39e=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;

if(!evt.pageX){

evt.pageX=evt.clientX+(_39e.scrollLeft||0);

}

if(!evt.pageY){

evt.pageY=evt.clientY+(_39e.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.lang.declare");

dojo.lang.declare=function(_3a0,_3a1,init,_3a3){

if((dojo.lang.isFunction(_3a3))||((!_3a3)&&(!dojo.lang.isFunction(init)))){

var temp=_3a3;

_3a3=init;

init=temp;

}

var _3a5=[];

if(dojo.lang.isArray(_3a1)){

_3a5=_3a1;

_3a1=_3a5.shift();

}

if(!init){

init=dojo.evalObjPath(_3a0,false);

if((init)&&(!dojo.lang.isFunction(init))){

init=null;

}

}

var ctor=dojo.lang.declare._makeConstructor();

var scp=(_3a1?_3a1.prototype:null);

if(scp){

scp.prototyping=true;

ctor.prototype=new _3a1();

scp.prototyping=false;

}

ctor.superclass=scp;

ctor.mixins=_3a5;

for(var i=0,l=_3a5.length;i<l;i++){

dojo.lang.extend(ctor,_3a5[i].prototype);

}

ctor.prototype.initializer=null;

ctor.prototype.declaredClass=_3a0;

if(dojo.lang.isArray(_3a3)){

dojo.lang.extend.apply(dojo.lang,[ctor].concat(_3a3));

}else{

dojo.lang.extend(ctor,(_3a3)||{});

}

dojo.lang.extend(ctor,dojo.lang.declare._common);

ctor.prototype.constructor=ctor;

ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){

});

var _3aa=dojo.parseObjPath(_3a0,null,true);

_3aa.obj[_3aa.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(_3b0,_3b1,args){

var _3b3,_3b4=this.___proto;

this.___proto=_3b0;

try{

_3b3=_3b0[_3b1].apply(this,(args||[]));

}

catch(e){

throw e;

}

finally{

this.___proto=_3b4;

}

return _3b3;

},_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.i18n.common");

dojo.i18n.getLocalization=function(_3ba,_3bb,_3bc){

dojo.hostenv.preloadLocalizations();

_3bc=dojo.hostenv.normalizeLocale(_3bc);

var _3bd=_3bc.split("-");

var _3be=[_3ba,"nls",_3bb].join(".");

var _3bf=dojo.hostenv.findModule(_3be,true);

var _3c0;

for(var i=_3bd.length;i>0;i--){

var loc=_3bd.slice(0,i).join("_");

if(_3bf[loc]){

_3c0=_3bf[loc];

break;

}

}

if(!_3c0){

_3c0=_3bf.ROOT;

}

if(_3c0){

var _3c3=function(){

};

_3c3.prototype=_3c0;

return new _3c3();

}

dojo.raise("Bundle not found: "+_3bb+" in "+_3ba+" , locale="+_3bc);

};

dojo.i18n.isLTR=function(_3c4){

var lang=dojo.hostenv.normalizeLocale(_3c4).split("-")[0];

var RTL={ar:true,fa:true,he:true,ur:true,yi:true};

return !RTL[lang];

};

dojo.provide("wc.render.Context");

wc.render.contexts={};

wc.render.getContextById=function(id){

return wc.render.contexts[id];

};

wc.render.updateContext=function(id,_3c9){

wc.render.getContextById(id).update(_3c9);

};

wc.render.declareContext=function(id,_3cb,_3cc){

var _3cd=new wc.render.Context(id,_3cb,_3cc);

this.contexts[id]=_3cd;

return _3cd;

};

dojo.declare("wc.render.Context",null,{initializer:function(id,_3cf,_3d0){

this.id=id;

this.properties=_3cf?_3cf:{};

this.url=_3d0;

this.contextChangedEventName=id+"/RenderContextChanged";

},id:undefined,properties:undefined,url:undefined,contextChangedEventName:undefined,update:function(_3d1){

if(!this.properties){

this.properties={};

}

if(this.url){

var _3d2={};

for(var name in _3d1){

var _3d4=_3d1[name];

if(dojo.lang.isUndefined(_3d4)){

if(dojo.lang.isUndefined(_3d2.clear)){

_3d2.clear=[name];

}else{

_3d2.clear.push(name);

}

}else{

_3d2["set_"+name]=_3d4;

}

}

dojo.io.bind({url:this.url,mimetype:"text/json",content:_3d2,properties:this.properties,successEventName:this.contextChangedEventName,load:function(type,data,evt,_3d8){

if(dojo.lang.isArray(data.renderContextChanges)){

for(var i=0;i<data.renderContextChanges.length;i++){

var name=data.renderContextChanges[i];

_3d8.properties[name]=data[name];

}

}

dojo.event.topic.publish(this.successEventName,data);

},error:function(type,_3dc){

var _3dd=dojo.i18n.getLocalization("wc","common");

alert(_3dd.communicationError);

}});

}else{

var data={renderContextChanges:[]};

for(var name in _3d1){

var _3d4=_3d1[name];

if(_3d4!=this.properties[name]){

data.renderContextChanges.push(name);

if(dojo.lang.isUndefined(_3d4)){

delete this.properties[name];

}else{

this.properties[name]=_3d4;

data[name]=_3d4;

}

}

}

dojo.event.topic.publish(this.contextChangedEventName,data);

}

}});

dojo.provide("wc.render.RefreshController");

wc.render.refreshControllers={};

wc.render.getRefreshControllerById=function(id){

return wc.render.refreshControllers[id];

};

wc.render.declareRefreshController=function(_3e0){

var _3e1=new wc.render.RefreshController(_3e0);

this.refreshControllers[_3e0.id]=_3e1;

return _3e1;

};

dojo.declare("wc.render.RefreshController",null,{initializer:function(_3e2){

dojo.lang.mixin(this,_3e2);

this.syncRCProperties();

if(dojo.lang.isFunction(this.renderContextChangedHandler)){

dojo.event.topic.subscribe(this.renderContext.contextChangedEventName,this,"renderContextChanged");

}

if(dojo.lang.isFunction(this.modelChangedHandler)){

dojo.event.topic.subscribe("modelChanged",this,"modelChanged");

}

this.widgets={};

},id:undefined,renderContext:undefined,url:undefined,mimetype:"text/html",renderContextChangedHandler:undefined,modelChangedHandler:undefined,postRefreshHandler:undefined,currentRCProperties:undefined,widgets:undefined,formId:undefined,addWidget:function(_3e3){

if(this.widgets[_3e3.widgetId]){

dojo.debug("RefreshController.addWidget: duplicate widget ID "+_3e3.widgetId);

}

this.widgets[_3e3.widgetId]=_3e3;

},removeWidget:function(_3e4){

if(typeof this.widgets=="undefined"){

dojo.debug("this.widgets in RefreshController#removeWidget(widget) is not defined yet. No deletion is needed");

return;

}

delete this.widgets[_3e4.widgetId];

},syncRCProperties:function(){

if(this.renderContext){

var _3e5={};

var rc=this.renderContext.properties;

for(var prop in rc){

_3e5[prop]=rc[prop];

}

this.currentRCProperties=_3e5;

}

},renderContextChanged:function(_3e8){

for(var _3e9 in this.widgets){

this.renderContextChangedHandler(_3e8,this.widgets[_3e9]);

}

this.syncRCProperties();

},modelChanged:function(_3ea){

for(var _3eb in this.widgets){

this.modelChangedHandler(_3ea,this.widgets[_3eb]);

}

},refreshHandler:function(_3ec,data){

_3ec.setInnerHTML(data);

},refresh:function(_3ee,_3ef){

var _3f0=null;

if(this.formId){

_3f0=document.getElementById(this.formId);

}

dojo.io.bind({url:this.url,mimetype:this.mimetype,formNode:_3f0,content:_3ef,load:function(type,data,evt){

var _3f4=_3ee.controller;

_3f4.refreshHandler(_3ee,data);

if(_3f4.postRefreshHandler!=null){

_3f4.postRefreshHandler(_3ee);

}

},error:function(type,_3f6){

var _3f7=dojo.i18n.getLocalization("wc","common");

alert(_3f7.communicationError);

}});

},testForChangedRC:function(_3f8){

var _3f9=false;

for(var i=0;i<_3f8.length;i++){

var prop=_3f8[i];

if(this.currentRCProperties[prop]!=this.renderContext.properties[prop]){

_3f9=true;

break;

}

}

return _3f9;

}});

dojo.provide("wc.render.common");

dojo.provide("wc.render.*");

dojo.provide("wc.service.common");

wc.service.services={};

wc.service.getServiceById=function(id){

return wc.service.services[id];

};

wc.service.declare=function(_3fd){

var _3fe=new wc.service.Service(_3fd);

this.register(_3fe);

return _3fe;

};

wc.service.register=function(_3ff){

this.services[_3ff.id]=_3ff;

};

wc.service.invoke=function(_400,_401){

var _402=this.getServiceById(_400);

if(_402){

_402.invoke(_401);

}else{

dojo.debug("Attempt to invoke an unregistered service: "+_400);

}

};

dojo.declare("wc.service.Service",null,{initializer:function(_403){

dojo.lang.mixin(this,_403);

},id:undefined,actionId:undefined,url:undefined,formId:undefined,validateParameters:function(_404){

return true;

},validateForm:function(_405){

return true;

},successTest:function(_406){

return !_406.errorMessage&&!_406.errorMessageKey;

},successHandler:function(_407){

},failureHandler:function(_408){

var _409=_408.errorMessage;

if(_409){

alert(_409);

}else{

_409=_408.errorMessageKey;

if(_409){

alert(_409);

}else{

alert("Service request error.");

}

}

},invoke:function(_40a){

var _40b=true;

var _40c=null;

if(this.formId){

_40c=document.getElementById(this.formId);

}

if(_40c){

_40b=this.validateForm(_40c);

}

if(_40b){

_40b=this.validateParameters(_40a);

}

if(_40b){

dojo.io.bind({url:this.url,mimetype:"text/json",formNode:_40c,content:_40a,service:this,load:function(type,_40e,evt,_410){

var _411=_410.service;

_40e.serviceId=_411.id;

_40e.actionId=_411.actionId;

dojo.debug("Service response:");

for(var prop in _40e){

dojo.debug("  "+prop+"="+_40e[prop]);

}

if(_411.successTest(_40e)){

_411.successHandler(_40e);

dojo.event.topic.publish("modelChanged",_40e);

if(_411.actionId){

dojo.event.topic.publish("modelChanged/"+_411.actionId,_40e);

}

}else{

_411.failureHandler(_40e);

}

},error:function(type,_414){

var _415=dojo.i18n.getLocalization("wc","common");

alert(_415.communicationError);

}});

}

}});

dojo.provide("wc.service.*");

if(!this["dojo"]){

alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");

}

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 _419=getTagName(node);

if(!_419){

return "";

}

if((dojo.widget)&&(dojo.widget.tags[_419])){

return _419;

}

var p=_419.indexOf(":");

if(p>=0){

return _419;

}

if(_419.substr(0,5)=="dojo:"){

return _419;

}

if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){

return node.scopeName.toLowerCase()+":"+_419;

}

if(_419.substr(0,4)=="dojo"){

return "dojo:"+_419.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 _41c=node.className||node.getAttribute("class");

if((_41c)&&(_41c.indexOf)&&(_41c.indexOf("dojo-")!=-1)){

var _41d=_41c.split(" ");

for(var x=0,c=_41d.length;x<c;x++){

if(_41d[x].slice(0,5)=="dojo-"){

return "dojo:"+_41d[x].substr(5).toLowerCase();

}

}

}

}

return "";

}

this.parseElement=function(node,_421,_422,_423){

var _424=getTagName(node);

if(isIE&&_424.indexOf("/")==0){

return null;

}

try{

var attr=node.getAttribute("parseWidgets");

if(attr&&attr.toLowerCase()=="false"){

return {};

}

}

catch(e){

}

var _426=true;

if(_422){

var _427=getDojoTagName(node);

_424=_427||_424;

_426=Boolean(_427);

}

var _428={};

_428[_424]=[];

var pos=_424.indexOf(":");

if(pos>0){

var ns=_424.substring(0,pos);

_428["ns"]=ns;

if((dojo.ns)&&(!dojo.ns.allow(ns))){

_426=false;

}

}

if(_426){

var _42b=this.parseAttributes(node);

for(var attr in _42b){

if((!_428[_424][attr])||(typeof _428[_424][attr]!="array")){

_428[_424][attr]=[];

}

_428[_424][attr].push(_42b[attr]);

}

_428[_424].nodeRef=node;

_428.tagName=_424;

_428.index=_423||0;

}

var _42c=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(!_428[ctn]){

_428[ctn]=[];

}

_428[ctn].push(this.parseElement(tcn,true,_422,_42c));

if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){

_428[ctn][_428[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;

}

_42c++;

break;

case dojo.dom.TEXT_NODE:

if(node.childNodes.length==1){

_428[_424].push({value:node.childNodes.item(0).nodeValue});

}

break;

default:

break;

}

}

return _428;

};

this.parseAttributes=function(node){

var _431={};

var atts=node.attributes;

var _433,i=0;

while((_433=atts[i++])){

if(isIE){

if(!_433){

continue;

}

if((typeof _433=="object")&&(typeof _433.nodeValue=="undefined")||(_433.nodeValue==null)||(_433.nodeValue=="")){

continue;

}

}

var nn=_433.nodeName.split(":");

nn=(nn.length==2)?nn[1]:_433.nodeName;

_431[nn]={value:_433.nodeValue};

}

return _431;

};

};

dojo.provide("dojo.ns");

dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_437,_438,_439){

if(!_439||!this.namespaces[name]){

this.namespaces[name]=new dojo.ns.Ns(name,_437,_438);

}

},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,_440,_441){

this.name=name;

this.module=_440;

this.resolver=_441;

this._loaded=[];

this._failed=[];

};

dojo.ns.Ns.prototype.resolve=function(name,_443,_444){

if(!this.resolver||djConfig["skipAutoRequire"]){

return false;

}

var _445=this.resolver(name,_443);

if((_445)&&(!this._loaded[_445])&&(!this._failed[_445])){

var req=dojo.require;

req(_445,false,true);

if(dojo.hostenv.findModule(_445,false)){

this._loaded[_445]=true;

}else{

if(!_444){

dojo.raise("dojo.ns.Ns.resolve: module '"+_445+"' not found after loading via namespace '"+this.name+"'");

}

this._failed[_445]=true;

}

}

return Boolean(this._loaded[_445]);

};

dojo.registerNamespace=function(name,_448,_449){

dojo.ns.register.apply(dojo.ns,arguments);

};

dojo.registerNamespaceResolver=function(name,_44b){

var n=dojo.ns.namespaces[name];

if(n){

n.resolver=_44b;

}

};

dojo.registerNamespaceManifest=function(_44d,path,name,_450,_451){

dojo.registerModulePath(name,path);

dojo.registerNamespace(name,_450,_451);

};

dojo.registerNamespace("dojo","dojo.widget");

dojo.provide("dojo.widget.Manager");

dojo.widget.manager=new function(){

this.widgets=[];

this.widgetIds=[];

this.topWidgets={};

var _452={};

var _453=[];

this.getUniqueId=function(_454){

var _455;

do{

_455=_454+"_"+(_452[_454]!=undefined?++_452[_454]:_452[_454]=0);

}while(this.getWidgetById(_455));

return _455;

};

this.add=function(_456){

this.widgets.push(_456);

if(!_456.extraArgs["id"]){

_456.extraArgs["id"]=_456.extraArgs["ID"];

}

if(_456.widgetId==""){

if(_456["id"]){

_456.widgetId=_456["id"];

}else{

if(_456.extraArgs["id"]){

_456.widgetId=_456.extraArgs["id"];

}else{

_456.widgetId=this.getUniqueId(_456.ns+"_"+_456.widgetType);

}

}

}

if(this.widgetIds[_456.widgetId]){

dojo.debug("widget ID collision on ID: "+_456.widgetId);

}

this.widgetIds[_456.widgetId]=_456;

};

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(_458){

if(dojo.lang.isNumber(_458)){

var tw=this.widgets[_458].widgetId;

delete this.widgetIds[tw];

this.widgets.splice(_458,1);

}else{

this.removeById(_458);

}

};

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 _45f=(type.indexOf(":")<0?function(x){

return x.widgetType.toLowerCase();

}:function(x){

return x.getNamespacedType();

});

var ret=[];

dojo.lang.forEach(this.widgets,function(x){

if(_45f(x)==lt){

ret.push(x);

}

});

return ret;

};

this.getWidgetsByFilter=function(_464,_465){

var ret=[];

dojo.lang.every(this.widgets,function(x){

if(_464(x)){

ret.push(x);

if(_465){

return false;

}

}

return true;

});

return (_465?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 _46b={};

var _46c=["dojo.widget"];

for(var i=0;i<_46c.length;i++){

_46c[_46c[i]]=true;

}

this.registerWidgetPackage=function(_46e){

if(!_46c[_46e]){

_46c[_46e]=true;

_46c.push(_46e);

}

};

this.getWidgetPackageList=function(){

return dojo.lang.map(_46c,function(elt){

return (elt!==true?elt:undefined);

});

};

this.getImplementation=function(_470,_471,_472,ns){

var impl=this.getImplementationName(_470,ns);

if(impl){

var ret=_471?new impl(_471):new impl();

return ret;

}

};

function buildPrefixCache(){

for(var _476 in dojo.render){

if(dojo.render[_476]["capable"]===true){

var _477=dojo.render[_476].prefixes;

for(var i=0;i<_477.length;i++){

_453.push(_477[i].toLowerCase());

}

}

}

}

var _479=function(_47a,_47b){

if(!_47b){

return null;

}

for(var i=0,l=_453.length,_47e;i<=l;i++){

_47e=(i<l?_47b[_453[i]]:_47b);

if(!_47e){

continue;

}

for(var name in _47e){

if(name.toLowerCase()==_47a){

return _47e[name];

}

}

}

return null;

};

var _480=function(_481,_482){

var _483=dojo.evalObjPath(_482,false);

return (_483?_479(_481,_483):null);

};

this.getImplementationName=function(_484,ns){

var _486=_484.toLowerCase();

ns=ns||"dojo";

var imps=_46b[ns]||(_46b[ns]={});

var impl=imps[_486];

if(impl){

return impl;

}

if(!_453.length){

buildPrefixCache();

}

var _489=dojo.ns.get(ns);

if(!_489){

dojo.ns.register(ns,ns+".widget");

_489=dojo.ns.get(ns);

}

if(_489){

_489.resolve(_484);

}

impl=_480(_486,_489.module);

if(impl){

return (imps[_486]=impl);

}

_489=dojo.ns.require(ns);

if((_489)&&(_489.resolver)){

_489.resolve(_484);

impl=_480(_486,_489.module);

if(impl){

return (imps[_486]=impl);

}

}

dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_484+"\" in \""+_489.module+"\" registered to namespace \""+_489.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");

for(var i=0;i<_46c.length;i++){

impl=_480(_486,_46c[i]);

if(impl){

return (imps[_486]=impl);

}

}

throw new Error("Could not locate widget implementation for \""+_484+"\" in \""+_489.module+"\" registered to namespace \""+_489.name+"\"");

};

this.resizing=false;

this.onWindowResized=function(){

if(this.resizing){

return;

}

try{

this.resizing=true;

for(var id in this.topWidgets){

var _48c=this.topWidgets[id];

if(_48c.checkSize){

_48c.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(_491,_492){

dw[(_492||_491)]=h(_491);

};

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 _494=dwm.getAllWidgets.apply(dwm,arguments);

if(arguments.length>0){

return _494[n];

}

return _494;

};

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(_496,uri){

var loc=dojo.hostenv.getModuleSymbols(_496).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 _49b=new dojo.uri.Uri(arguments[i].toString());

var _49c=new dojo.uri.Uri(uri.toString());

if((_49b.path=="")&&(_49b.scheme==null)&&(_49b.authority==null)&&(_49b.query==null)){

if(_49b.fragment!=null){

_49c.fragment=_49b.fragment;

}

_49b=_49c;

}else{

if(_49b.scheme==null){

_49b.scheme=_49c.scheme;

if(_49b.authority==null){

_49b.authority=_49c.authority;

if(_49b.path.charAt(0)!="/"){

var path=_49c.path.substring(0,_49c.path.lastIndexOf("/")+1)+_49b.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;

}

}

}

}

_49b.path=segs.join("/");

}

}

}

}

uri="";

if(_49b.scheme!=null){

uri+=_49b.scheme+":";

}

if(_49b.authority!=null){

uri+="//"+_49b.authority;

}

uri+=_49b.path;

if(_49b.query!=null){

uri+="?"+_49b.query;

}

if(_49b.fragment!=null){

uri+="#"+_49b.fragment;

}

}

this.uri=uri.toString();

var _4a0="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";

var r=this.uri.match(new RegExp(_4a0));

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){

_4a0="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";

r=this.authority.match(new RegExp(_4a0));

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 _4a4=dojo.global();

var _4a5=dojo.doc();

var w=0;

var h=0;

if(dojo.render.html.mozilla){

w=_4a5.documentElement.clientWidth;

h=_4a4.innerHeight;

}else{

if(!dojo.render.html.opera&&_4a4.innerWidth){

w=_4a4.innerWidth;

h=_4a4.innerHeight;

}else{

if(!dojo.render.html.opera&&dojo.exists(_4a5,"documentElement.clientWidth")){

var w2=_4a5.documentElement.clientWidth;

if(!w||w2&&w2<w){

w=w2;

}

h=_4a5.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 _4a9=dojo.global();

var _4aa=dojo.doc();

var top=_4a9.pageYOffset||_4aa.documentElement.scrollTop||dojo.body().scrollTop||0;

var left=_4a9.pageXOffset||_4aa.documentElement.scrollLeft||dojo.body().scrollLeft||0;

return {top:top,left:left,offset:{x:left,y:top}};

};

dojo.html.getParentByType=function(node,type){

var _4af=dojo.doc();

var _4b0=dojo.byId(node);

type=type.toLowerCase();

while((_4b0)&&(_4b0.nodeName.toLowerCase()!=type)){

if(_4b0==(_4af["body"]||_4af["documentElement"])){

return null;

}

_4b0=_4b0.parentNode;

}

return _4b0;

};

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 _4b8={x:0,y:0};

if(e.pageX||e.pageY){

_4b8.x=e.pageX;

_4b8.y=e.pageY;

}else{

var de=dojo.doc().documentElement;

var db=dojo.body();

_4b8.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);

_4b8.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);

}

return _4b8;

};

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 _4bd=dojo.doc().createElement("script");

_4bd.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";

dojo.doc().getElementsByTagName("head")[0].appendChild(_4bd);

})();

}

}else{

dojo.html.createExternalElement=function(doc,tag){

return doc.createElement(tag);

};

}

dojo.html._callDeprecated=function(_4c0,_4c1,args,_4c3,_4c4){

dojo.deprecated("dojo.html."+_4c0,"replaced by dojo.html."+_4c1+"("+(_4c3?"node, {"+_4c3+": "+_4c3+"}":"")+")"+(_4c4?"."+_4c4:""),"0.5");

var _4c5=[];

if(_4c3){

var _4c6={};

_4c6[_4c3]=args[1];

_4c5.push(args[0]);

_4c5.push(_4c6);

}else{

_4c5=args;

}

var ret=dojo.html[_4c1].apply(dojo.html,args);

if(_4c4){

return ret[_4c4];

}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 _4c9=null;

if(window.getComputedStyle){

var _4ca=getComputedStyle(div,"");

_4c9=_4ca.getPropertyValue("background-image");

}else{

_4c9=div.currentStyle.backgroundImage;

}

var _4cb=false;

if(_4c9!=null&&(_4c9=="none"||_4c9=="url(invalid-url:)")){

this.accessible=true;

}

dojo.body().removeChild(div);

}

return this.accessible;

},setCheckAccessible:function(_4cc){

this.doAccessibleCheck=_4cc;

},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 _4ce=this.children[i];

if(_4ce.onResized){

_4ce.onResized();

}

}

},create:function(args,_4d0,_4d1,ns){

if(ns){

this.ns=ns;

}

this.satisfyPropertySets(args,_4d0,_4d1);

this.mixInProperties(args,_4d0,_4d1);

this.postMixInProperties(args,_4d0,_4d1);

dojo.widget.manager.add(this);

this.buildRendering(args,_4d0,_4d1);

this.initialize(args,_4d0,_4d1);

this.postInitialize(args,_4d0,_4d1);

this.postCreate(args,_4d0,_4d1);

return this;

},destroy:function(_4d3){

if(this.parent){

this.parent.removeChild(this);

}

this.destroyChildren();

this.uninitialize();

this.destroyRendering(_4d3);

dojo.widget.manager.removeById(this.widgetId);

},destroyChildren:function(){

var _4d4;

var i=0;

while(this.children.length>i){

_4d4=this.children[i];

if(_4d4 instanceof dojo.widget.Widget){

this.removeChild(_4d4);

_4d4.destroy();

continue;

}

i++;

}

},getChildrenOfType:function(type,_4d7){

var ret=[];

var _4d9=dojo.lang.isFunction(type);

if(!_4d9){

type=type.toLowerCase();

}

for(var x=0;x<this.children.length;x++){

if(_4d9){

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(_4d7){

ret=ret.concat(this.children[x].getChildrenOfType(type,_4d7));

}

}

return ret;

},getDescendants:function(){

var _4db=[];

var _4dc=[this];

var elem;

while((elem=_4dc.pop())){

_4db.push(elem);

if(elem.children){

dojo.lang.forEach(elem.children,function(elem){

_4dc.push(elem);

});

}

}

return _4db;

},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 _4e3;

var _4e4=dojo.widget.lcArgsCache[this.widgetType];

if(_4e4==null){

_4e4={};

for(var y in this){

_4e4[((new String(y)).toLowerCase())]=y;

}

dojo.widget.lcArgsCache[this.widgetType]=_4e4;

}

var _4e6={};

for(var x in args){

if(!this[x]){

var y=_4e4[(new String(x)).toLowerCase()];

if(y){

args[y]=args[x];

x=y;

}

}

if(_4e6[x]){

continue;

}

_4e6[x]=true;

if((typeof this[x])!=(typeof _4e3)){

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 _4e8=args[x].split(";");

for(var y=0;y<_4e8.length;y++){

var si=_4e8[y].indexOf(":");

if((si!=-1)&&(_4e8[y].length>si)){

this[x][_4e8[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_4e8[y].substr(si+1);

}

}

}

}else{

this[x]=args[x];

}

}

}

}

}

}

}

}

}else{

this.extraArgs[x.toLowerCase()]=args[x];

}

}

},postMixInProperties:function(args,frag,_4ec){

},initialize:function(args,frag,_4ef){

return false;

},postInitialize:function(args,frag,_4f2){

return false;

},postCreate:function(args,frag,_4f5){

return false;

},uninitialize:function(){

return false;

},buildRendering:function(args,frag,_4f8){

dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");

return false;

},destroyRendering:function(){

dojo.unimplemented("dojo.widget.Widget.destroyRendering");

return false;

},addedTo:function(_4f9){

},addChild:function(_4fa){

dojo.unimplemented("dojo.widget.Widget.addChild");

return false;

},removeChild:function(_4fb){

for(var x=0;x<this.children.length;x++){

if(this.children[x]===_4fb){

this.children.splice(x,1);

_4fb.parent=null;

break;

}

}

return _4fb;

},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(_500,_501,_502){

var _503=_501.parseProperties(_500["dojo:propertyset"]);

};

dojo.widget.tags["dojo:connect"]=function(_504,_505,_506){

var _507=_505.parseProperties(_504["dojo:connect"]);

};

dojo.widget.buildWidgetFromParseTree=function(type,frag,_50a,_50b,_50c,_50d){

dojo.a11y.setAccessibleMode();

var _50e=type.split(":");

_50e=(_50e.length==2)?_50e[1]:type;

var _50f=_50d||_50a.parseProperties(frag[frag["ns"]+":"+_50e]);

var _510=dojo.widget.manager.getImplementation(_50e,null,null,frag["ns"]);

if(!_510){

throw new Error("cannot find \""+type+"\" widget");

}else{

if(!_510.create){

throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");

}

}

_50f["dojoinsertionindex"]=_50c;

var ret=_510.create(_50f,frag,_50b,frag["ns"]);

return ret;

};

dojo.widget.defineWidget=function(_512,_513,_514,init,_516){

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(_519,_51a,_51b,init,_51d){

var _51e=_519.split(".");

var type=_51e.pop();

var regx="\\.("+(_51a?_51a+"|":"")+dojo.widget.defineWidget.renderers+")\\.";

var r=_519.search(new RegExp(regx));

_51e=(r<0?_51e.join("."):_519.substr(0,r));

dojo.widget.manager.registerWidgetPackage(_51e);

var pos=_51e.indexOf(".");

var _523=(pos>-1)?_51e.substring(0,pos):_51e;

_51d=(_51d)||{};

_51d.widgetType=type;

if((!init)&&(_51d["classConstructor"])){

init=_51d.classConstructor;

delete _51d.classConstructor;

}

dojo.declare(_519,_51b,init,_51d);

};

dojo.provide("dojo.widget.Parse");

dojo.widget.Parse=function(_524){

this.propertySetsList=[];

this.fragment=_524;

this.createComponents=function(frag,_526){

var _527=[];

var _528=false;

try{

if(frag&&frag.tagName&&(frag!=frag.nodeRef)){

var _529=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(_529[ltn]){

_528=true;

ret=_529[ltn](frag,this,_526,frag.index);

_527.push(ret);

}else{

if(ltn.indexOf(":")==-1){

ltn="dojo:"+ltn;

}

ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_526,frag.index);

if(ret){

_528=true;

_527.push(ret);

}

}

}

}

}

catch(e){

dojo.debug("dojo.widget.Parse: error:",e);

}

if(!_528){

_527=_527.concat(this.createSubComponents(frag,_526));

}

return _527;

};

this.createSubComponents=function(_52e,_52f){

var frag,_531=[];

for(var item in _52e){

frag=_52e[item];

if(frag&&typeof frag=="object"&&(frag!=_52e.nodeRef)&&(frag!=_52e.tagName)&&(!dojo.dom.isNode(frag))){

_531=_531.concat(this.createComponents(frag,_52f));

}

}

return _531;

};

this.parsePropertySets=function(_533){

return [];

};

this.parseProperties=function(_534){

var _535={};

for(var item in _534){

if((_534[item]==_534.tagName)||(_534[item]==_534.nodeRef)){

}else{

var frag=_534[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 _538=this;

this.getDataProvider(_538,frag[0].value);

_535.dataProvider=this.dataProvider;

}

_535[item]=frag[0].value;

var _539=this.parseProperties(frag);

for(var _53a in _539){

_535[_53a]=_539[_53a];

}

}

catch(e){

dojo.debug(e);

}

}

}

switch(item.toLowerCase()){

case "checked":

case "disabled":

if(typeof _535[item]!="boolean"){

_535[item]=true;

}

break;

}

}

}

return _535;

};

this.getDataProvider=function(_53b,_53c){

dojo.io.bind({url:_53c,load:function(type,_53e){

if(type=="load"){

_53b.dataProvider=_53e;

}

},mimetype:"text/javascript",sync:true});

};

this.getPropertySetById=function(_53f){

for(var x=0;x<this.propertySetsList.length;x++){

if(_53f==this.propertySetsList[x]["id"][0].value){

return this.propertySetsList[x];

}

}

return "";

};

this.getPropertySetsByType=function(_541){

var _542=[];

for(var x=0;x<this.propertySetsList.length;x++){

var cpl=this.propertySetsList[x];

var cpcc=cpl.componentClass||cpl.componentType||null;

var _546=this.propertySetsList[x]["id"][0].value;

if(cpcc&&(_546==cpcc[0].value)){

_542.push(cpl);

}

}

return _542;

};

this.getPropertySets=function(_547){

var ppl="dojo:propertyproviderlist";

var _549=[];

var _54a=_547.tagName;

if(_547[ppl]){

var _54b=_547[ppl].value.split(" ");

for(var _54c in _54b){

if((_54c.indexOf("..")==-1)&&(_54c.indexOf("://")==-1)){

var _54d=this.getPropertySetById(_54c);

if(_54d!=""){

_549.push(_54d);

}

}else{

}

}

}

return this.getPropertySetsByType(_54a).concat(_549);

};

this.createComponentFromScript=function(_54e,_54f,_550,ns){

_550.fastMixIn=true;

var ltn=(ns||"dojo")+":"+_54f.toLowerCase();

if(dojo.widget.tags[ltn]){

return [dojo.widget.tags[ltn](_550,this,null,null,_550)];

}

return [dojo.widget.buildWidgetFromParseTree(ltn,_550,this,null,null,_550)];

};

};

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,_555,_556,_557){

var _558=false;

var _559=(typeof name=="string");

if(_559){

var pos=name.indexOf(":");

var ns=(pos>-1)?name.substring(0,pos):"dojo";

if(pos>-1){

name=name.substring(pos+1);

}

var _55c=name.toLowerCase();

var _55d=ns+":"+_55c;

_558=(dojo.byId(name)&&!dojo.widget.tags[_55d]);

}

if((arguments.length==1)&&(_558||!_559)){

var xp=new dojo.xml.Parse();

var tn=_558?dojo.byId(name):name;

return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];

}

function fromScript(_560,name,_562,ns){

_562[_55d]={dojotype:[{value:_55c}],nodeRef:_560,fastMixIn:true};

_562.ns=ns;

return dojo.widget.getParser().createComponentFromScript(_560,name,_562,ns);

}

_555=_555||{};

var _564=false;

var tn=null;

var h=dojo.render.html.capable;

if(h){

tn=document.createElement("span");

}

if(!_556){

_564=true;

_556=tn;

if(h){

dojo.body().appendChild(_556);

}

}else{

if(_557){

dojo.dom.insertAtPosition(tn,_556,_557);

}else{

tn=_556;

}

}

var _566=fromScript(tn,name.toLowerCase(),_555,ns);

if((!_566)||(!_566[0])||(typeof _566[0].widgetType=="undefined")){

throw new Error("createWidget: Creation of \""+name+"\" widget failed.");

}

try{

if(_564&&_566[0].domNode.parentNode){

_566[0].domNode.parentNode.removeChild(_566[0].domNode);

}

}

catch(e){

dojo.debug(e);

}

return _566[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,_56c){

return (new RegExp("(^|\\s+)"+_56c+"(\\s+|$)")).test(dojo.html.getClass(node));

};

dojo.html.prependClass=function(node,_56e){

_56e+=" "+dojo.html.getClass(node);

return dojo.html.setClass(node,_56e);

};

dojo.html.addClass=function(node,_570){

if(dojo.html.hasClass(node,_570)){

return false;

}

_570=(dojo.html.getClass(node)+" "+_570).replace(/^\s+|\s+$/g,"");

return dojo.html.setClass(node,_570);

};

dojo.html.setClass=function(node,_572){

node=dojo.byId(node);

var cs=new String(_572);

try{

if(typeof node.className=="string"){

node.className=cs;

}else{

if(node.setAttribute){

node.setAttribute("class",_572);

node.className=cs;

}else{

return false;

}

}

}

catch(e){

dojo.debug("dojo.html.setClass() failed",e);

}

return true;

};

dojo.html.removeClass=function(node,_575,_576){

try{

if(!_576){

var _577=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_575+"(\\s+|$)"),"$1$2");

}else{

var _577=dojo.html.getClass(node).replace(_575,"");

}

dojo.html.setClass(node,_577);

}

catch(e){

dojo.debug("dojo.html.removeClass() failed",e);

}

return true;

};

dojo.html.replaceClass=function(node,_579,_57a){

dojo.html.removeClass(node,_57a);

dojo.html.addClass(node,_579);

};

dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};

dojo.html.getElementsByClass=function(_57b,_57c,_57d,_57e,_57f){

_57f=false;

var _580=dojo.doc();

_57c=dojo.byId(_57c)||_580;

var _581=_57b.split(/\s+/g);

var _582=[];

if(_57e!=1&&_57e!=2){

_57e=0;

}

var _583=new RegExp("(\\s|^)(("+_581.join(")|(")+"))(\\s|$)");

var _584=_581.join(" ").length;

var _585=[];

if(!_57f&&_580.evaluate){

var _586=".//"+(_57d||"*")+"[contains(";

if(_57e!=dojo.html.classMatchType.ContainsAny){

_586+="concat(' ',@class,' '), ' "+_581.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";

if(_57e==2){

_586+=" and string-length(@class)="+_584+"]";

}else{

_586+="]";

}

}else{

_586+="concat(' ',@class,' '), ' "+_581.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";

}

var _587=_580.evaluate(_586,_57c,null,XPathResult.ANY_TYPE,null);

var _588=_587.iterateNext();

while(_588){

try{

_585.push(_588);

_588=_587.iterateNext();

}

catch(e){

break;

}

}

return _585;

}else{

if(!_57d){

_57d="*";

}

_585=_57c.getElementsByTagName(_57d);

var node,i=0;

outer:

while(node=_585[i++]){

var _58b=dojo.html.getClasses(node);

if(_58b.length==0){

continue outer;

}

var _58c=0;

for(var j=0;j<_58b.length;j++){

if(_583.test(_58b[j])){

if(_57e==dojo.html.classMatchType.ContainsAny){

_582.push(node);

continue outer;

}else{

_58c++;

}

}else{

if(_57e==dojo.html.classMatchType.IsOnly){

continue outer;

}

}

}

if(_58c==_581.length){

if((_57e==dojo.html.classMatchType.IsOnly)&&(_58c==_58b.length)){

_582.push(node);

}else{

if(_57e==dojo.html.classMatchType.ContainsAll){

_582.push(node);

}

}

}

}

return _582;

}

};

dojo.html.getElementsByClassName=dojo.html.getElementsByClass;

dojo.html.toCamelCase=function(_58e){

var arr=_58e.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(_592){

return _592.replace(/([A-Z])/g,"-$1").toLowerCase();

};

dojo.html.getComputedStyle=function(node,_594,_595){

node=dojo.byId(node);

var _594=dojo.html.toSelectorCase(_594);

var _596=dojo.html.toCamelCase(_594);

if(!node||!node.style){

return _595;

}else{

if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){

try{

var cs=document.defaultView.getComputedStyle(node,"");

if(cs){

return cs.getPropertyValue(_594);

}

}

catch(e){

if(node.style.getPropertyValue){

return node.style.getPropertyValue(_594);

}else{

return _595;

}

}

}else{

if(node.currentStyle){

return node.currentStyle[_596];

}

}

}

if(node.style.getPropertyValue){

return node.style.getPropertyValue(_594);

}else{

return _595;

}

};

dojo.html.getStyleProperty=function(node,_599){

node=dojo.byId(node);

return (node&&node.style?node.style[dojo.html.toCamelCase(_599)]:undefined);

};

dojo.html.getStyle=function(node,_59b){

var _59c=dojo.html.getStyleProperty(node,_59b);

return (_59c?_59c:dojo.html.getComputedStyle(node,_59b));

};

dojo.html.setStyle=function(node,_59e,_59f){

node=dojo.byId(node);

if(node&&node.style){

var _5a0=dojo.html.toCamelCase(_59e);

node.style[_5a0]=_59f;

}

};

dojo.html.setStyleText=function(_5a1,text){

try{

_5a1.style.cssText=text;

}

catch(e){

_5a1.setAttribute("style",text);

}

};

dojo.html.copyStyle=function(_5a3,_5a4){

if(!_5a4.style.cssText){

_5a3.setAttribute("style",_5a4.getAttribute("style"));

}else{

_5a3.style.cssText=_5a4.style.cssText;

}

dojo.html.addClass(_5a3,dojo.html.getClass(_5a4));

};

dojo.html.getUnitValue=function(node,_5a6,_5a7){

var s=dojo.html.getComputedStyle(node,_5a6);

if((!s)||((s=="auto")&&(_5a7))){

return {value:0,units:"px"};

}

var _5a9=s.match(/(\-?[\d.]+)([a-z%]*)/i);

if(!_5a9){

return dojo.html.getUnitValue.bad;

}

return {value:Number(_5a9[1]),units:_5a9[2].toLowerCase()};

};

dojo.html.getUnitValue.bad={value:NaN,units:""};

dojo.html.getPixelValue=function(node,_5ab,_5ac){

var _5ad=dojo.html.getUnitValue(node,_5ab,_5ac);

if(isNaN(_5ad.value)){

return 0;

}

if((_5ad.value)&&(_5ad.units!="px")){

return NaN;

}

return _5ad.value;

};

dojo.html.setPositivePixelValue=function(node,_5af,_5b0){

if(isNaN(_5b0)){

return false;

}

node.style[_5af]=Math.max(0,_5b0)+"px";

return true;

};

dojo.html.styleSheet=null;

dojo.html.insertCssRule=function(_5b1,_5b2,_5b3){

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){

_5b3=dojo.html.styleSheet.cssRules.length;

}else{

if(dojo.html.styleSheet.rules){

_5b3=dojo.html.styleSheet.rules.length;

}else{

return null;

}

}

}

if(dojo.html.styleSheet.insertRule){

var rule=_5b1+" { "+_5b2+" }";

return dojo.html.styleSheet.insertRule(rule,_5b3);

}else{

if(dojo.html.styleSheet.addRule){

return dojo.html.styleSheet.addRule(_5b1,_5b2,_5b3);

}else{

return null;

}

}

};

dojo.html.removeCssRule=function(_5b5){

if(!dojo.html.styleSheet){

dojo.debug("no stylesheet defined for removing rules");

return false;

}

if(dojo.render.html.ie){

if(!_5b5){

_5b5=dojo.html.styleSheet.rules.length;

dojo.html.styleSheet.removeRule(_5b5);

}

}else{

if(document.styleSheets[0]){

if(!_5b5){

_5b5=dojo.html.styleSheet.cssRules.length;

}

dojo.html.styleSheet.deleteRule(_5b5);

}

}

return true;

};

dojo.html._insertedCssFiles=[];

dojo.html.insertCssFile=function(URI,doc,_5b8,_5b9){

if(!URI){

return;

}

if(!doc){

doc=document;

}

var _5ba=dojo.hostenv.getText(URI,false,_5b9);

if(_5ba===null){

return;

}

_5ba=dojo.html.fixPathsInCssText(_5ba,URI);

if(_5b8){

var idx=-1,node,ent=dojo.html._insertedCssFiles;

for(var i=0;i<ent.length;i++){

if((ent[i].doc==doc)&&(ent[i].cssText==_5ba)){

idx=i;

node=ent[i].nodeRef;

break;

}

}

if(node){

var _5bf=doc.getElementsByTagName("style");

for(var i=0;i<_5bf.length;i++){

if(_5bf[i]==node){

return;

}

}

dojo.html._insertedCssFiles.shift(idx,1);

}

}

var _5c0=dojo.html.insertCssText(_5ba,doc);

dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_5ba,"nodeRef":_5c0});

if(_5c0&&djConfig.isDebug){

_5c0.setAttribute("dbgHref",URI);

}

return _5c0;

};

dojo.html.insertCssText=function(_5c1,doc,URI){

if(!_5c1){

return;

}

if(!doc){

doc=document;

}

if(URI){

_5c1=dojo.html.fixPathsInCssText(_5c1,URI);

}

var _5c4=doc.createElement("style");

_5c4.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(_5c4);

}

if(_5c4.styleSheet){

var _5c6=function(){

try{

_5c4.styleSheet.cssText=_5c1;

}

catch(e){

dojo.debug(e);

}

};

if(_5c4.styleSheet.disabled){

setTimeout(_5c6,10);

}else{

_5c6();

}

}else{

var _5c7=doc.createTextNode(_5c1);

_5c4.appendChild(_5c7);

}

return _5c4;

};

dojo.html.fixPathsInCssText=function(_5c8,URI){

if(!_5c8||!URI){

return;

}

var _5ca,str="",url="",_5cd="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";

var _5ce=new RegExp("url\\(\\s*("+_5cd+")\\s*\\)");

var _5cf=/(file|https?|ftps?):\/\//;

regexTrim=new RegExp("^[\\s]*(['\"]?)("+_5cd+")\\1[\\s]*?$");

if(dojo.render.html.ie55||dojo.render.html.ie60){

var _5d0=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_5cd+")['\"]");

while(_5ca=_5d0.exec(_5c8)){

url=_5ca[2].replace(regexTrim,"$2");

if(!_5cf.exec(url)){

url=(new dojo.uri.Uri(URI,url).toString());

}

str+=_5c8.substring(0,_5ca.index)+"AlphaImageLoader("+_5ca[1]+"src='"+url+"'";

_5c8=_5c8.substr(_5ca.index+_5ca[0].length);

}

_5c8=str+_5c8;

str="";

}

while(_5ca=_5ce.exec(_5c8)){

url=_5ca[1].replace(regexTrim,"$2");

if(!_5cf.exec(url)){

url=(new dojo.uri.Uri(URI,url).toString());

}

str+=_5c8.substring(0,_5ca.index)+"url("+url+")";

_5c8=_5c8.substr(_5ca.index+_5ca[0].length);

}

return str+_5c8;

};

dojo.html.setActiveStyleSheet=function(_5d1){

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")==_5d1){

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 _5dd={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 _5dd){

if(_5dd[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,_5e0,_5e1,_5e2){

var _5e3=_5e0||obj.templatePath;

var _5e4=dojo.widget._templateCache;

if(!_5e3&&!obj["widgetType"]){

do{

var _5e5="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;

}while(_5e4[_5e5]);

obj.widgetType=_5e5;

}

var wt=_5e3?_5e3.toString():obj.widgetType;

var ts=_5e4[wt];

if(!ts){

_5e4[wt]={"string":null,"node":null};

if(_5e2){

ts={};

}else{

ts=_5e4[wt];

}

}

if((!obj.templateString)&&(!_5e2)){

obj.templateString=_5e1||ts["string"];

}

if((!obj.templateNode)&&(!_5e2)){

obj.templateNode=ts["node"];

}

if((!obj.templateNode)&&(!obj.templateString)&&(_5e3)){

var _5e8=dojo.hostenv.getText(_5e3);

if(_5e8){

_5e8=_5e8.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");

var _5e9=_5e8.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);

if(_5e9){

_5e8=_5e9[1];

}

}else{

_5e8="";

}

obj.templateString=_5e8;

if(!_5e2){

_5e4[wt]["string"]=_5e8;

}

}

if((!ts["string"])&&(!_5e2)){

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,_5ed){

if(dojo.render.html.ie){

node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_5ed);

}else{

node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_5ed);

}

},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 _5f4=true;

if(dojo.render.html.ie){

_5f4=node.removeAttribute(this[ns].alias+":"+attr);

}else{

node.removeAttributeNS(this[ns]["namespace"],attr);

}

return _5f4;

}};

dojo.widget.attachTemplateNodes=function(_5f5,_5f6,_5f7){

var _5f8=dojo.dom.ELEMENT_NODE;

function trim(str){

return str.replace(/^\s+|\s+$/g,"");

}

if(!_5f5){

_5f5=_5f6.domNode;

}

if(_5f5.nodeType!=_5f8){

return;

}

var _5fa=_5f5.all||_5f5.getElementsByTagName("*");

var _5fb=_5f6;

for(var x=-1;x<_5fa.length;x++){

var _5fd=(x==-1)?_5f5:_5fa[x];

var _5fe=[];

if(!_5f6.widgetsInTemplate||!_5fd.getAttribute("dojoType")){

for(var y=0;y<this.attachProperties.length;y++){

var _600=_5fd.getAttribute(this.attachProperties[y]);

if(_600){

_5fe=_600.split(";");

for(var z=0;z<_5fe.length;z++){

if(dojo.lang.isArray(_5f6[_5fe[z]])){

_5f6[_5fe[z]].push(_5fd);

}else{

_5f6[_5fe[z]]=_5fd;

}

}

break;

}

}

var _602=_5fd.getAttribute(this.eventAttachProperty);

if(_602){

var evts=_602.split(";");

for(var y=0;y<evts.length;y++){

if((!evts[y])||(!evts[y].length)){

continue;

}

var _604=null;

var tevt=trim(evts[y]);

if(evts[y].indexOf(":")>=0){

var _606=tevt.split(":");

tevt=trim(_606[0]);

_604=trim(_606[1]);

}

if(!_604){

_604=tevt;

}

var tf=function(){

var ntf=new String(_604);

return function(evt){

if(_5fb[ntf]){

_5fb[ntf](dojo.event.browser.fixEvent(evt,this));

}

};

}();

dojo.event.browser.addListener(_5fd,tevt,tf,false,true);

}

}

for(var y=0;y<_5f7.length;y++){

var _60a=_5fd.getAttribute(_5f7[y]);

if((_60a)&&(_60a.length)){

var _604=null;

var _60b=_5f7[y].substr(4);

_604=trim(_60a);

var _60c=[_604];

if(_604.indexOf(";")>=0){

_60c=dojo.lang.map(_604.split(";"),trim);

}

for(var z=0;z<_60c.length;z++){

if(!_60c[z].length){

continue;

}

var tf=function(){

var ntf=new String(_60c[z]);

return function(evt){

if(_5fb[ntf]){

_5fb[ntf](dojo.event.browser.fixEvent(evt,this));

}

};

}();

dojo.event.browser.addListener(_5fd,_60b,tf,false,true);

}

}

}

}

var _60f=_5fd.getAttribute(this.templateProperty);

if(_60f){

_5f6[_60f]=_5fd;

}

dojo.lang.forEach(dojo.widget.waiNames,function(name){

var wai=dojo.widget.wai[name];

var val=_5fd.getAttribute(wai.name);

if(val){

if(val.indexOf("-")==-1){

dojo.widget.wai.setAttr(_5fd,wai.name,"role",val);

}else{

var _613=val.split("-");

dojo.widget.wai.setAttr(_5fd,wai.name,_613[0],_613[1]);

}

}

},this);

var _614=_5fd.getAttribute(this.onBuildProperty);

if(_614){

eval("var node = baseNode; var widget = targetObj; "+_614);

}

}

};

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(_61c,_61d,pos,ref,_620){

if(!this.isContainer){

dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");

return null;

}else{

if(_620==undefined){

_620=this.children.length;

}

this.addWidgetAsDirectChild(_61c,_61d,pos,ref,_620);

this.registerChild(_61c,_620);

}

return _61c;

},addWidgetAsDirectChild:function(_621,_622,pos,ref,_625){

if((!this.containerNode)&&(!_622)){

this.containerNode=this.domNode;

}

var cn=(_622)?_622:this.containerNode;

if(!pos){

pos="after";

}

if(!ref){

if(!cn){

cn=dojo.body();

}

ref=cn.lastChild;

}

if(!_625){

_625=0;

}

_621.domNode.setAttribute("dojoinsertionindex",_625);

if(!ref){

cn.appendChild(_621.domNode);

}else{

if(pos=="insertAtIndex"){

dojo.dom.insertAtIndex(_621.domNode,ref.parentNode,_625);

}else{

if((pos=="after")&&(ref===cn.lastChild)){

cn.appendChild(_621.domNode);

}else{

dojo.dom.insertAtPosition(_621.domNode,cn,pos);

}

}

}

},registerChild:function(_627,_628){

_627.dojoInsertionIndex=_628;

var idx=-1;

for(var i=0;i<this.children.length;i++){

if(this.children[i].dojoInsertionIndex<=_628){

idx=i;

}

}

this.children.splice(idx+1,0,_627);

_627.parent=this;

_627.addedTo(this,idx+1);

delete dojo.widget.manager.topWidgets[_627.widgetId];

},removeChild:function(_62b){

dojo.dom.removeNode(_62b.domNode);

return dojo.widget.DomWidget.superclass.removeChild.call(this,_62b);

},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,_62f){

var _630=this.getFragNodeRef(frag);

if(_62f&&(_62f.snarfChildDomOutput||!_630)){

_62f.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_630);

}else{

if(_630){

if(this.domNode&&(this.domNode!==_630)){

this._sourceNodeRef=dojo.dom.replaceNode(_630,this.domNode);

}

}

}

if(_62f){

_62f.registerChild(this,args.dojoinsertionindex);

}else{

dojo.widget.manager.topWidgets[this.widgetId]=this;

}

if(this.widgetsInTemplate){

var _631=new dojo.xml.Parse();

var _632;

var _633=this.domNode.getElementsByTagName("*");

for(var i=0;i<_633.length;i++){

if(_633[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){

_632=_633[i];

}

if(_633[i].getAttribute("dojoType")){

_633[i].setAttribute("isSubWidget",true);

}

}

if(this.isContainer&&!this.containerNode){

if(_632){

var src=this.getFragNodeRef(frag);

if(src){

dojo.dom.moveChildren(src,_632);

frag["dojoDontFollow"]=true;

}

}else{

dojo.debug("No subContainerWidget node can be found in template file for widget "+this);

}

}

var _636=_631.parseElement(this.domNode,null,true);

dojo.widget.getParser().createSubComponents(_636,this);

var _637=[];

var _638=[this];

var w;

while((w=_638.pop())){

for(var i=0;i<w.children.length;i++){

var _63a=w.children[i];

if(_63a._processedSubWidgets||!_63a.extraArgs["issubwidget"]){

continue;

}

_637.push(_63a);

if(_63a.isContainer){

_638.push(_63a);

}

}

}

for(var i=0;i<_637.length;i++){

var _63b=_637[i];

if(_63b._processedSubWidgets){

dojo.debug("This should not happen: widget._processedSubWidgets is already true!");

return;

}

_63b._processedSubWidgets=true;

if(_63b.extraArgs["dojoattachevent"]){

var evts=_63b.extraArgs["dojoattachevent"].split(";");

for(var j=0;j<evts.length;j++){

var _63e=null;

var tevt=dojo.string.trim(evts[j]);

if(tevt.indexOf(":")>=0){

var _640=tevt.split(":");

tevt=dojo.string.trim(_640[0]);

_63e=dojo.string.trim(_640[1]);

}

if(!_63e){

_63e=tevt;

}

if(dojo.lang.isFunction(_63b[tevt])){

dojo.event.kwConnect({srcObj:_63b,srcFunc:tevt,targetObj:this,targetFunc:_63e});

}else{

alert(tevt+" is not a function in widget "+_63b);

}

}

}

if(_63b.extraArgs["dojoattachpoint"]){

this[_63b.extraArgs["dojoattachpoint"]]=_63b;

}

}

}

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 _644=args["templateCssPath"]||this.templateCssPath;

if(_644&&!dojo.widget._cssFiles[_644.toString()]){

if((!this.templateCssString)&&(_644)){

this.templateCssString=dojo.hostenv.getText(_644);

this.templateCssPath=null;

}

dojo.widget._cssFiles[_644.toString()]=true;

}

if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){

dojo.html.insertCssText(this.templateCssString,null,_644);

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 _647=false;

if(args["templatepath"]){

args["templatePath"]=args["templatepath"];

}

dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_647);

var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];

if((ts)&&(!_647)){

if(!this.templateString.length){

this.templateString=ts["string"];

}

if(!this.templateNode){

this.templateNode=ts["node"];

}

}

var _649=false;

var node=null;

var tstr=this.templateString;

if((!this.templateNode)&&(this.templateString)){

_649=this.templateString.match(/\$\{([^\}]+)\}/g);

if(_649){

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<_649.length;i++){

var key=_649[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 _650;

if((kval)||(dojo.lang.isString(kval))){

_650=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);

while(_650.indexOf("\"")>-1){

_650=_650.replace("\"","&quot;");

}

tstr=tstr.replace(_649[i],_650);

}

}

}else{

this.templateNode=this.createNodesFromText(this.templateString,true)[0];

if(!_647){

ts.node=this.templateNode;

}

}

}

if((!this.templateNode)&&(!_649)){

dojo.debug("DomWidget.buildFromTemplate: could not create template");

return false;

}else{

if(!_649){

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(_652,_653){

if(!_652){

_652=this.domNode;

}

if(!_653){

_653=this;

}

return dojo.widget.attachTemplateNodes(_652,_653,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,_655,_656){

node=dojo.byId(node);

_656(node,!_655(node));

return _655(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,_65b){

dojo.html[(_65b?"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,_661){

dojo.html.setStyle(node,"display",((_661 instanceof String||typeof _661=="string")?_661:(_661?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,_665){

dojo.html.setStyle(node,"visibility",((_665 instanceof String||typeof _665=="string")?_665:(_665?"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,_669,_66a){

node=dojo.byId(node);

var h=dojo.render.html;

if(!_66a){

if(_669>=1){

if(h.ie){

dojo.html.clearOpacity(node);

return;

}else{

_669=0.999999;

}

}else{

if(_669<0){

_669=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="+_669*100+")";

}

}

node.style.filter="Alpha(Opacity="+_669*100+")";

}else{

if(h.moz){

node.style.opacity=_669;

node.style.MozOpacity=_669;

}else{

if(h.safari){

node.style.opacity=_669;

node.style.KhtmlOpacity=_669;

}else{

node.style.opacity=_669;

}

}

}

};

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 _676=0;

while(node){

if(dojo.html.getComputedStyle(node,"position")=="fixed"){

return 0;

}

var val=node[prop];

if(val){

_676+=val-0;

if(node==dojo.body()){

break;

}

}

node=node.parentNode;

}

return _676;

};

dojo.html.setStyleAttributes=function(node,_679){

node=dojo.byId(node);

var _67a=_679.replace(/(;)?\s*$/,"").split(";");

for(var i=0;i<_67a.length;i++){

var _67c=_67a[i].split(":");

var name=_67c[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();

var _67e=_67c[1].replace(/\s*$/,"").replace(/^\s*/,"");

switch(name){

case "opacity":

dojo.html.setOpacity(node,_67e);

break;

case "content-height":

dojo.html.setContentBox(node,{height:_67e});

break;

case "content-width":

dojo.html.setContentBox(node,{width:_67e});

break;

case "outer-height":

dojo.html.setMarginBox(node,{height:_67e});

break;

case "outer-width":

dojo.html.setMarginBox(node,{width:_67e});

break;

default:

node.style[dojo.html.toCamelCase(name)]=_67e;

}

}

};

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,_680,_681){

node=dojo.byId(node,node.ownerDocument);

var ret={x:0,y:0};

var bs=dojo.html.boxSizing;

if(!_681){

_681=bs.CONTENT_BOX;

}

var _684=2;

var _685;

switch(_681){

case bs.MARGIN_BOX:

_685=3;

break;

case bs.BORDER_BOX:

_685=2;

break;

case bs.PADDING_BOX:

default:

_685=1;

break;

case bs.CONTENT_BOX:

_685=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){

_684=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 _689;

if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){

_689=db;

}else{

_689=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 _68b=node;

do{

var n=_68b["offsetLeft"];

if(!h.opera||n>0){

ret.x+=isNaN(n)?0:n;

}

var m=_68b["offsetTop"];

ret.y+=isNaN(m)?0:m;

_68b=_68b.offsetParent;

}while((_68b!=_689)&&(_68b!=null));

}else{

if(node["x"]&&node["y"]){

ret.x+=isNaN(node.x)?0:node.x;

ret.y+=isNaN(node.y)?0:node.y;

}

}

}

}

if(_680){

var _68e=dojo.html.getScroll();

ret.y+=_68e.top;

ret.x+=_68e.left;

}

var _68f=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];

if(_684>_685){

for(var i=_685;i<_684;++i){

ret.y+=_68f[i](node,"top");

ret.x+=_68f[i](node,"left");

}

}else{

if(_684<_685){

for(var i=_685;i>_684;--i){

ret.y-=_68f[i-1](node,"top");

ret.x-=_68f[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,_693,_694){

var _695=0;

for(var x=0;x<_693.length;x++){

_695+=dojo.html.getPixelValue(node,_693[x],_694);

}

return _695;

};

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 _6a2=dojo.html.getBorder(node);

return {width:pad.width+_6a2.width,height:pad.height+_6a2.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 _6a7=dojo.html.getStyle(node,"-moz-box-sizing");

if(!_6a7){

_6a7=dojo.html.getStyle(node,"box-sizing");

}

return (_6a7?_6a7: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 _6ac=dojo.html.getBorder(node);

return {width:box.width-_6ac.width,height:box.height-_6ac.height};

};

dojo.html.getContentBox=function(node){

node=dojo.byId(node);

var _6ae=dojo.html.getPadBorder(node);

return {width:node.offsetWidth-_6ae.width,height:node.offsetHeight-_6ae.height};

};

dojo.html.setContentBox=function(node,args){

node=dojo.byId(node);

var _6b1=0;

var _6b2=0;

var isbb=dojo.html.isBorderBox(node);

var _6b4=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});

var ret={};

if(typeof args.width!="undefined"){

_6b1=args.width+_6b4.width;

ret.width=dojo.html.setPositivePixelValue(node,"width",_6b1);

}

if(typeof args.height!="undefined"){

_6b2=args.height+_6b4.height;

ret.height=dojo.html.setPositivePixelValue(node,"height",_6b2);

}

return ret;

};

dojo.html.getMarginBox=function(node){

var _6b7=dojo.html.getBorderBox(node);

var _6b8=dojo.html.getMargin(node);

return {width:_6b7.width+_6b8.width,height:_6b7.height+_6b8.height};

};

dojo.html.setMarginBox=function(node,args){

node=dojo.byId(node);

var _6bb=0;

var _6bc=0;

var isbb=dojo.html.isBorderBox(node);

var _6be=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});

var _6bf=dojo.html.getMargin(node);

var ret={};

if(typeof args.width!="undefined"){

_6bb=args.width-_6be.width;

_6bb-=_6bf.width;

ret.width=dojo.html.setPositivePixelValue(node,"width",_6bb);

}

if(typeof args.height!="undefined"){

_6bc=args.height-_6be.height;

_6bc-=_6bf.height;

ret.height=dojo.html.setPositivePixelValue(node,"height",_6bc);

}

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(_6c4,_6c5,_6c6){

if(_6c4 instanceof Array||typeof _6c4=="array"){

dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");

while(_6c4.length<4){

_6c4.push(0);

}

while(_6c4.length>4){

_6c4.pop();

}

var ret={left:_6c4[0],top:_6c4[1],width:_6c4[2],height:_6c4[3]};

}else{

if(!_6c4.nodeType&&!(_6c4 instanceof String||typeof _6c4=="string")&&("width" in _6c4||"height" in _6c4||"left" in _6c4||"x" in _6c4||"top" in _6c4||"y" in _6c4)){

var ret={left:_6c4.left||_6c4.x||0,top:_6c4.top||_6c4.y||0,width:_6c4.width||0,height:_6c4.height||0};

}else{

var node=dojo.byId(_6c4);

var pos=dojo.html.abs(node,_6c5,_6c6);

var _6ca=dojo.html.getMarginBox(node);

var ret={left:pos.left,top:pos.top,width:_6ca.width,height:_6ca.height};

}

}

ret.x=ret.left;

ret.y=ret.top;

return ret;

};

dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_6cc){

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,_6cf){

return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);

};

dojo.html.getAbsoluteX=function(node,_6d1){

return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");

};

dojo.html.getAbsoluteY=function(node,_6d3){

return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");

};

dojo.html.totalOffsetLeft=function(node,_6d5){

return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");

};

dojo.html.totalOffsetTop=function(node,_6d7){

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,_6e1){

return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");

};

dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_6e3){

return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");

};

dojo.provide("dojo.html.util");

dojo.html.getElementWindow=function(_6e4){

return dojo.html.getDocumentWindow(_6e4.ownerDocument);

};

dojo.html.getDocumentWindow=function(doc){

if(dojo.render.html.safari&&!doc._parentWindow){

var fix=function(win){

win.document._parentWindow=win;

for(var i=0;i<win.frames.length;i++){

fix(win.frames[i]);

}

};

fix(window.top);

}

if(dojo.render.html.ie&&window!==document.parentWindow&&!doc._parentWindow){

doc.parentWindow.execScript("document._parentWindow = window;","Javascript");

var win=doc._parentWindow;

doc._parentWindow=null;

return win;

}

return doc._parentWindow||doc.parentWindow||doc.defaultView;

};

dojo.html.gravity=function(node,e){

node=dojo.byId(node);

var _6ec=dojo.html.getCursorPosition(e);

with(dojo.html){

var _6ed=getAbsolutePosition(node,true);

var bb=getBorderBox(node);

var _6ef=_6ed.x+(bb.width/2);

var _6f0=_6ed.y+(bb.height/2);

}

with(dojo.html.gravity){

return ((_6ec.x<_6ef?WEST:EAST)|(_6ec.y<_6f0?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(_6f1,e){

_6f1=dojo.byId(_6f1);

var _6f3=dojo.html.getCursorPosition(e);

var bb=dojo.html.getBorderBox(_6f1);

var _6f5=dojo.html.getAbsolutePosition(_6f1,true,dojo.html.boxSizing.BORDER_BOX);

var top=_6f5.y;

var _6f7=top+bb.height;

var left=_6f5.x;

var _6f9=left+bb.width;

return (_6f3.x>=left&&_6f3.x<=_6f9&&_6f3.y>=top&&_6f3.y<=_6f7);

};

dojo.html.renderedTextContent=function(node){

node=dojo.byId(node);

var _6fb="";

if(node==null){

return _6fb;

}

for(var i=0;i<node.childNodes.length;i++){

switch(node.childNodes[i].nodeType){

case 1:

case 5:

var _6fd="unknown";

try{

_6fd=dojo.html.getStyle(node.childNodes[i],"display");

}

catch(E){

}

switch(_6fd){

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":

_6fb+="\n";

_6fb+=dojo.html.renderedTextContent(node.childNodes[i]);

_6fb+="\n";

break;

case "none":

break;

default:

if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){

_6fb+="\n";

}else{

_6fb+=dojo.html.renderedTextContent(node.childNodes[i]);

}

break;

}

break;

case 3:

case 2:

case 4:

var text=node.childNodes[i].nodeValue;

var _6ff="unknown";

try{

_6ff=dojo.html.getStyle(node,"text-transform");

}

catch(E){

}

switch(_6ff){

case "capitalize":

var _700=text.split(" ");

for(var i=0;i<_700.length;i++){

_700[i]=_700[i].charAt(0).toUpperCase()+_700[i].substring(1);

}

text=_700.join(" ");

break;

case "uppercase":

text=text.toUpperCase();

break;

case "lowercase":

text=text.toLowerCase();

break;

default:

break;

}

switch(_6ff){

case "nowrap":

break;

case "pre-wrap":

break;

case "pre-line":

break;

case "pre":

break;

default:

text=text.replace(/\s+/," ");

if(/\s$/.test(_6fb)){

text.replace(/^\s/,"");

}

break;

}

_6fb+=text;

break;

default:

break;

}

}

return _6fb;

};

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 _704="none";

if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){

txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";

_704="cell";

}else{

if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){

txt="<table><tbody>"+txt+"</tbody></table>";

_704="row";

}else{

if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){

txt="<table>"+txt+"</table>";

_704="section";

}

}

}

tn.innerHTML=txt;

if(tn["normalize"]){

tn.normalize();

}

var _705=null;

switch(_704){

case "cell":

_705=tn.getElementsByTagName("tr")[0];

break;

case "row":

_705=tn.getElementsByTagName("tbody")[0];

break;

case "section":

_705=tn.getElementsByTagName("table")[0];

break;

default:

_705=tn;

break;

}

var _706=[];

for(var x=0;x<_705.childNodes.length;x++){

_706.push(_705.childNodes[x].cloneNode(true));

}

tn.style.display="none";

dojo.html.destroyNode(tn);

return _706;

};

dojo.html.placeOnScreen=function(node,_709,_70a,_70b,_70c,_70d,_70e){

if(_709 instanceof Array||typeof _709=="array"){

_70e=_70d;

_70d=_70c;

_70c=_70b;

_70b=_70a;

_70a=_709[1];

_709=_709[0];

}

if(_70d instanceof String||typeof _70d=="string"){

_70d=_70d.split(",");

}

if(!isNaN(_70b)){

_70b=[Number(_70b),Number(_70b)];

}else{

if(!(_70b instanceof Array||typeof _70b=="array")){

_70b=[0,0];

}

}

var _70f=dojo.html.getScroll().offset;

var view=dojo.html.getViewport();

node=dojo.byId(node);

var _711=node.style.display;

node.style.display="";

var bb=dojo.html.getBorderBox(node);

var w=bb.width;

var h=bb.height;

node.style.display=_711;

if(!(_70d instanceof Array||typeof _70d=="array")){

_70d=["TL"];

}

var _715,_716,_717=Infinity,_718;

for(var _719=0;_719<_70d.length;++_719){

var _71a=_70d[_719];

var _71b=true;

var tryX=_709-(_71a.charAt(1)=="L"?0:w)+_70b[0]*(_71a.charAt(1)=="L"?1:-1);

var tryY=_70a-(_71a.charAt(0)=="T"?0:h)+_70b[1]*(_71a.charAt(0)=="T"?1:-1);

if(_70c){

tryX-=_70f.x;

tryY-=_70f.y;

}

if(tryX<0){

tryX=0;

_71b=false;

}

if(tryY<0){

tryY=0;

_71b=false;

}

var x=tryX+w;

if(x>view.width){

x=view.width-w;

_71b=false;

}else{

x=tryX;

}

x=Math.max(_70b[0],x)+_70f.x;

var y=tryY+h;

if(y>view.height){

y=view.height-h;

_71b=false;

}else{

y=tryY;

}

y=Math.max(_70b[1],y)+_70f.y;

if(_71b){

_715=x;

_716=y;

_717=0;

_718=_71a;

break;

}else{

var dist=Math.pow(x-tryX-_70f.x,2)+Math.pow(y-tryY-_70f.y,2);

if(_717>dist){

_717=dist;

_715=x;

_716=y;

_718=_71a;

}

}

}

if(!_70e){

node.style.left=_715+"px";

node.style.top=_716+"px";

}

return {left:_715,top:_716,x:_715,y:_716,dist:_717,corner:_718};

};

dojo.html.placeOnScreenPoint=function(node,_722,_723,_724,_725){

dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");

return dojo.html.placeOnScreen(node,_722,_723,_724,_725,["TL","TR","BL","BR"]);

};

dojo.html.placeOnScreenAroundElement=function(node,_727,_728,_729,_72a,_72b){

var best,_72d=Infinity;

_727=dojo.byId(_727);

var _72e=_727.style.display;

_727.style.display="";

var mb=dojo.html.getElementBox(_727,_729);

var _730=mb.width;

var _731=mb.height;

var _732=dojo.html.getAbsolutePosition(_727,true,_729);

_727.style.display=_72e;

for(var _733 in _72a){

var pos,_735,_736;

var _737=_72a[_733];

_735=_732.x+(_733.charAt(1)=="L"?0:_730);

_736=_732.y+(_733.charAt(0)=="T"?0:_731);

pos=dojo.html.placeOnScreen(node,_735,_736,_728,true,_737,true);

if(pos.dist==0){

best=pos;

break;

}else{

if(_72d>pos.dist){

_72d=pos.dist;

best=pos;

}

}

}

if(!_72b){

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 _739=node.parentNode;

var _73a=_739.scrollTop+dojo.html.getBorderBox(_739).height;

var _73b=node.offsetTop+dojo.html.getMarginBox(node).height;

if(_73a<_73b){

_739.scrollTop+=(_73b-_73a);

}else{

if(_739.scrollTop>node.offsetTop){

_739.scrollTop-=(_739.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(_742){

if(_742){

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(_743,_744){

var rgb=null;

if(dojo.lang.isArray(_743)){

rgb=_743;

}else{

if(_743 instanceof dojo.gfx.color.Color){

rgb=_743.toRgb();

}else{

rgb=new dojo.gfx.color.Color(_743).toRgb();

}

}

return dojo.gfx.color.blend(this.toRgb(),rgb,_744);

}});

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,_748){

if(typeof a=="string"){

return dojo.gfx.color.blendHex(a,b,_748);

}

if(!_748){

_748=0;

}

_748=Math.min(Math.max(-1,_748),1);

_748=((_748+1)/2);

var c=[];

for(var x=0;x<3;x++){

c[x]=parseInt(b[x]+((a[x]-b[x])*_748));

}

return c;

};

dojo.gfx.color.blendHex=function(a,b,_74d){

return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_74d));

};

dojo.gfx.color.extractRGB=function(_74e){

var hex="0123456789abcdef";

_74e=_74e.toLowerCase();

if(_74e.indexOf("rgb")==0){

var _750=_74e.match(/rgba*\((\d+), *(\d+), *(\d+)/i);

var ret=_750.splice(1,3);

return ret;

}else{

var _752=dojo.gfx.color.hex2rgb(_74e);

if(_752){

return _752;

}else{

return dojo.gfx.color.named[_74e]||[255,255,255];

}

}

};

dojo.gfx.color.hex2rgb=function(hex){

var _754="0123456789ABCDEF";

var rgb=new Array(3);

if(hex.indexOf("#")==0){

hex=hex.substring(1);

}

hex=hex.toUpperCase();

if(hex.replace(new RegExp("["+_754+"]","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]=_754.indexOf(rgb[i].charAt(0))*16+_754.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(_75d,end){

this.start=_75d;

this.end=end;

if(dojo.lang.isArray(_75d)){

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-_75d;

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,_76c,_76d){

if(!_76d){

_76d=_76c;

_76c=this;

}

_76d=dojo.lang.hitch(_76c,_76d);

var _76e=this[evt]||function(){

};

this[evt]=function(){

var ret=_76e.apply(this,arguments);

_76d.apply(this,arguments);

return ret;

};

return this;

},fire:function(evt,args){

if(this[evt]){

this[evt].apply(this,(args||[]));

}

return this;

},repeat:function(_772){

this.repeatCount=_772;

return this;

},_active:false,_paused:false});

dojo.lfx.Animation=function(_773,_774,_775,_776,_777,rate){

dojo.lfx.IAnimation.call(this);

if(dojo.lang.isNumber(_773)||(!_773&&_774.getValue)){

rate=_777;

_777=_776;

_776=_775;

_775=_774;

_774=_773;

_773=null;

}else{

if(_773.getValue||dojo.lang.isArray(_773)){

rate=_776;

_777=_775;

_776=_774;

_775=_773;

_774=null;

_773=null;

}

}

if(dojo.lang.isArray(_775)){

this.curve=new dojo.lfx.Line(_775[0],_775[1]);

}else{

this.curve=_775;

}

if(_774!=null&&_774>0){

this.duration=_774;

}

if(_777){

this.repeatCount=_777;

}

if(rate){

this.rate=rate;

}

if(_773){

dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){

if(_773[item]){

this.connect(item,_773[item]);

}

},this);

}

if(_776&&dojo.lang.isFunction(_776)){

this.easing=_776;

}

};

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(_77a,_77b){

if(_77b){

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(_77a>0){

setTimeout(dojo.lang.hitch(this,function(){

this.play(null,_77b);

}),_77a);

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 _77d=this.curve.getValue(step);

if(this._percent==0){

if(!this._startRepeatCount){

this._startRepeatCount=this.repeatCount;

}

this.fire("handler",["begin",_77d]);

this.fire("onBegin",[_77d]);

}

this.fire("handler",["play",_77d]);

this.fire("onPlay",[_77d]);

this._cycle();

return this;

},pause:function(){

clearTimeout(this._timer);

if(!this._active){

return this;

}

this._paused=true;

var _77e=this.curve.getValue(this._percent/100);

this.fire("handler",["pause",_77e]);

this.fire("onPause",[_77e]);

return this;

},gotoPercent:function(pct,_780){

clearTimeout(this._timer);

this._active=true;

this._paused=true;

this._percent=pct;

if(_780){

this.play();

}

return this;

},stop:function(_781){

clearTimeout(this._timer);

var step=this._percent/100;

if(_781){

step=1;

}

var _783=this.curve.getValue(step);

this.fire("handler",["stop",_783]);

this.fire("onStop",[_783]);

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 _786=this.curve.getValue(step);

this.fire("handler",["animate",_786]);

this.fire("onAnimate",[_786]);

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(_787){

dojo.lfx.IAnimation.call(this);

this._anims=[];

this._animsEnded=0;

var _788=arguments;

if(_788.length==1&&(dojo.lang.isArray(_788[0])||dojo.lang.isArrayLike(_788[0]))){

_788=_788[0];

}

dojo.lang.forEach(_788,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(_78a,_78b){

if(!this._anims.length){

return this;

}

this.fire("beforeBegin");

if(_78a>0){

setTimeout(dojo.lang.hitch(this,function(){

this.play(null,_78b);

}),_78a);

return this;

}

if(_78b||this._anims[0].percent==0){

this.fire("onBegin");

}

this.fire("onPlay");

this._animsCall("play",null,_78b);

return this;

},pause:function(){

this.fire("onPause");

this._animsCall("pause");

return this;

},stop:function(_78c){

this.fire("onStop");

this._animsCall("stop",_78c);

return this;

},_onAnimsEnded:function(){

this._animsEnded++;

if(this._animsEnded>=this._anims.length){

this.fire("onEnd");

}

return this;

},_animsCall:function(_78d){

var args=[];

if(arguments.length>1){

for(var i=1;i<arguments.length;i++){

args.push(arguments[i]);

}

}

var _790=this;

dojo.lang.forEach(this._anims,function(anim){

anim[_78d](args);

},_790);

return this;

}});

dojo.lfx.Chain=function(_792){

dojo.lfx.IAnimation.call(this);

this._anims=[];

this._currAnim=-1;

var _793=arguments;

if(_793.length==1&&(dojo.lang.isArray(_793[0])||dojo.lang.isArrayLike(_793[0]))){

_793=_793[0];

}

var _794=this;

dojo.lang.forEach(_793,function(anim,i,_797){

this._anims.push(anim);

if(i<_797.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(_798,_799){

if(!this._anims.length){

return this;

}

if(_799||!this._anims[this._currAnim]){

this._currAnim=0;

}

var _79a=this._anims[this._currAnim];

this.fire("beforeBegin");

if(_798>0){

setTimeout(dojo.lang.hitch(this,function(){

this.play(null,_799);

}),_798);

return this;

}

if(_79a){

if(this._currAnim==0){

this.fire("handler",["begin",this._currAnim]);

this.fire("onBegin",[this._currAnim]);

}

this.fire("onPlay",[this._currAnim]);

_79a.play(null,_799);

}

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 _79b=this._anims[this._currAnim];

if(_79b){

if(!_79b._active||_79b._paused){

this.play();

}else{

this.pause();

}

}

return this;

},stop:function(){

var _79c=this._anims[this._currAnim];

if(_79c){

_79c.stop();

this.fire("onStop",[this._currAnim]);

}

return _79c;

},_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(_79d){

var _79e=arguments;

if(dojo.lang.isArray(arguments[0])){

_79e=arguments[0];

}

if(_79e.length==1){

return _79e[0];

}

return new dojo.lfx.Combine(_79e);

};

dojo.lfx.chain=function(_79f){

var _7a0=arguments;

if(dojo.lang.isArray(arguments[0])){

_7a0=arguments[0];

}

if(_7a0.length==1){

return _7a0[0];

}

return new dojo.lfx.Chain(_7a0);

};

dojo.provide("dojo.html.color");

dojo.html.getBackgroundColor=function(node){

node=dojo.byId(node);

var _7a2;

do{

_7a2=dojo.html.getStyle(node,"background-color");

if(_7a2.toLowerCase()=="rgba(0, 0, 0, 0)"){

_7a2="transparent";

}

if(node==document.getElementsByTagName("body")[0]){

node=null;

break;

}

node=node.parentNode;

}while(node&&dojo.lang.inArray(["transparent",""],_7a2));

if(_7a2=="transparent"){

_7a2=[255,255,255,0];

}else{

_7a2=dojo.gfx.color.extractRGB(_7a2);

}

return _7a2;

};

dojo.provide("dojo.lfx.html");

dojo.lfx.html._byId=function(_7a3){

if(!_7a3){

return [];

}

if(dojo.lang.isArrayLike(_7a3)){

if(!_7a3.alreadyChecked){

var n=[];

dojo.lang.forEach(_7a3,function(node){

n.push(dojo.byId(node));

});

n.alreadyChecked=true;

return n;

}else{

return _7a3;

}

}else{

var n=[];

n.push(dojo.byId(_7a3));

n.alreadyChecked=true;

return n;

}

};

dojo.lfx.html.propertyAnimation=function(_7a6,_7a7,_7a8,_7a9,_7aa){

_7a6=dojo.lfx.html._byId(_7a6);

var _7ab={"propertyMap":_7a7,"nodes":_7a6,"duration":_7a8,"easing":_7a9||dojo.lfx.easeDefault};

var _7ac=function(args){

if(args.nodes.length==1){

var pm=args.propertyMap;

if(!dojo.lang.isArray(args.propertyMap)){

var parr=[];

for(var _7b0 in pm){

pm[_7b0].property=_7b0;

parr.push(pm[_7b0]);

}

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 _7b2=function(_7b3){

var _7b4=[];

dojo.lang.forEach(_7b3,function(c){

_7b4.push(Math.round(c));

});

return _7b4;

};

var _7b6=function(n,_7b8){

n=dojo.byId(n);

if(!n||!n.style){

return;

}

for(var s in _7b8){

try{

if(s=="opacity"){

dojo.html.setOpacity(n,_7b8[s]);

}else{

n.style[s]=_7b8[s];

}

}

catch(e){

dojo.debug(e);

}

}

};

var _7ba=function(_7bb){

this._properties=_7bb;

this.diffs=new Array(_7bb.length);

dojo.lang.forEach(_7bb,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 _7c2=null;

if(dojo.lang.isArray(prop.start)){

}else{

if(prop.start instanceof dojo.gfx.color.Color){

_7c2=(prop.units||"rgb")+"(";

for(var j=0;j<prop.startRgb.length;j++){

_7c2+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");

}

_7c2+=")";

}else{

_7c2=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");

}

}

ret[dojo.html.toCamelCase(prop.property)]=_7c2;

},this);

return ret;

};

};

var anim=new dojo.lfx.Animation({beforeBegin:function(){

_7ac(_7ab);

anim.curve=new _7ba(_7ab.propertyMap);

},onAnimate:function(_7c5){

dojo.lang.forEach(_7ab.nodes,function(node){

_7b6(node,_7c5);

});

}},_7ab.duration,null,_7ab.easing);

if(_7aa){

for(var x in _7aa){

if(dojo.lang.isFunction(_7aa[x])){

anim.connect(x,anim,_7aa[x]);

}

}

}

return anim;

};

dojo.lfx.html._makeFadeable=function(_7c8){

var _7c9=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(_7c8)){

dojo.lang.forEach(_7c8,_7c9);

}else{

_7c9(_7c8);

}

};

dojo.lfx.html.fade=function(_7cb,_7cc,_7cd,_7ce,_7cf){

_7cb=dojo.lfx.html._byId(_7cb);

var _7d0={property:"opacity"};

if(!dj_undef("start",_7cc)){

_7d0.start=_7cc.start;

}else{

_7d0.start=function(){

return dojo.html.getOpacity(_7cb[0]);

};

}

if(!dj_undef("end",_7cc)){

_7d0.end=_7cc.end;

}else{

dojo.raise("dojo.lfx.html.fade needs an end value");

}

var anim=dojo.lfx.propertyAnimation(_7cb,[_7d0],_7cd,_7ce);

anim.connect("beforeBegin",function(){

dojo.lfx.html._makeFadeable(_7cb);

});

if(_7cf){

anim.connect("onEnd",function(){

_7cf(_7cb,anim);

});

}

return anim;

};

dojo.lfx.html.fadeIn=function(_7d2,_7d3,_7d4,_7d5){

return dojo.lfx.html.fade(_7d2,{end:1},_7d3,_7d4,_7d5);

};

dojo.lfx.html.fadeOut=function(_7d6,_7d7,_7d8,_7d9){

return dojo.lfx.html.fade(_7d6,{end:0},_7d7,_7d8,_7d9);

};

dojo.lfx.html.fadeShow=function(_7da,_7db,_7dc,_7dd){

_7da=dojo.lfx.html._byId(_7da);

dojo.lang.forEach(_7da,function(node){

dojo.html.setOpacity(node,0);

});

var anim=dojo.lfx.html.fadeIn(_7da,_7db,_7dc,_7dd);

anim.connect("beforeBegin",function(){

if(dojo.lang.isArrayLike(_7da)){

dojo.lang.forEach(_7da,dojo.html.show);

}else{

dojo.html.show(_7da);

}

});

return anim;

};

dojo.lfx.html.fadeHide=function(_7e0,_7e1,_7e2,_7e3){

var anim=dojo.lfx.html.fadeOut(_7e0,_7e1,_7e2,function(){

if(dojo.lang.isArrayLike(_7e0)){

dojo.lang.forEach(_7e0,dojo.html.hide);

}else{

dojo.html.hide(_7e0);

}

if(_7e3){

_7e3(_7e0,anim);

}

});

return anim;

};

dojo.lfx.html.wipeIn=function(_7e5,_7e6,_7e7,_7e8){

_7e5=dojo.lfx.html._byId(_7e5);

var _7e9=[];

dojo.lang.forEach(_7e5,function(node){

var _7eb={};

var _7ec,_7ed,_7ee;

with(node.style){

_7ec=top;

_7ed=left;

_7ee=position;

top="-9999px";

left="-9999px";

position="absolute";

display="";

}

var _7ef=dojo.html.getBorderBox(node).height;

with(node.style){

top=_7ec;

left=_7ed;

position=_7ee;

display="none";

}

var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){

return _7ef;

}}},_7e6,_7e7);

anim.connect("beforeBegin",function(){

_7eb.overflow=node.style.overflow;

_7eb.height=node.style.height;

with(node.style){

overflow="hidden";

_7ef="1px";

}

dojo.html.show(node);

});

anim.connect("onEnd",function(){

with(node.style){

overflow=_7eb.overflow;

_7ef=_7eb.height;

}

if(_7e8){

_7e8(node,anim);

}

});

_7e9.push(anim);

});

return dojo.lfx.combine(_7e9);

};

dojo.lfx.html.wipeOut=function(_7f1,_7f2,_7f3,_7f4){

_7f1=dojo.lfx.html._byId(_7f1);

var _7f5=[];

dojo.lang.forEach(_7f1,function(node){

var _7f7={};

var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){

return dojo.html.getContentBox(node).height;

},end:1}},_7f2,_7f3,{"beforeBegin":function(){

_7f7.overflow=node.style.overflow;

_7f7.height=node.style.height;

with(node.style){

overflow="hidden";

}

dojo.html.show(node);

},"onEnd":function(){

dojo.html.hide(node);

with(node.style){

overflow=_7f7.overflow;

height=_7f7.height;

}

if(_7f4){

_7f4(node,anim);

}

}});

_7f5.push(anim);

});

return dojo.lfx.combine(_7f5);

};

dojo.lfx.html.slideTo=function(_7f9,_7fa,_7fb,_7fc,_7fd){

_7f9=dojo.lfx.html._byId(_7f9);

var _7fe=[];

var _7ff=dojo.html.getComputedStyle;

if(dojo.lang.isArray(_7fa)){

dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");

_7fa={top:_7fa[0],left:_7fa[1]};

}

dojo.lang.forEach(_7f9,function(node){

var top=null;

var left=null;

var init=(function(){

var _804=node;

return function(){

var pos=_7ff(_804,"position");

top=(pos=="absolute"?node.offsetTop:parseInt(_7ff(node,"top"))||0);

left=(pos=="absolute"?node.offsetLeft:parseInt(_7ff(node,"left"))||0);

if(!dojo.lang.inArray(["absolute","relative"],pos)){

var ret=dojo.html.abs(_804,true);

dojo.html.setStyleAttributes(_804,"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:(_7fa.top||0)},"left":{start:left,end:(_7fa.left||0)}},_7fb,_7fc,{"beforeBegin":init});

if(_7fd){

anim.connect("onEnd",function(){

_7fd(_7f9,anim);

});

}

_7fe.push(anim);

});

return dojo.lfx.combine(_7fe);

};

dojo.lfx.html.slideBy=function(_808,_809,_80a,_80b,_80c){

_808=dojo.lfx.html._byId(_808);

var _80d=[];

var _80e=dojo.html.getComputedStyle;

if(dojo.lang.isArray(_809)){

dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");

_809={top:_809[0],left:_809[1]};

}

dojo.lang.forEach(_808,function(node){

var top=null;

var left=null;

var init=(function(){

var _813=node;

return function(){

var pos=_80e(_813,"position");

top=(pos=="absolute"?node.offsetTop:parseInt(_80e(node,"top"))||0);

left=(pos=="absolute"?node.offsetLeft:parseInt(_80e(node,"left"))||0);

if(!dojo.lang.inArray(["absolute","relative"],pos)){

var ret=dojo.html.abs(_813,true);

dojo.html.setStyleAttributes(_813,"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+(_809.top||0)},"left":{start:left,end:left+(_809.left||0)}},_80a,_80b).connect("beforeBegin",init);

if(_80c){

anim.connect("onEnd",function(){

_80c(_808,anim);

});

}

_80d.push(anim);

});

return dojo.lfx.combine(_80d);

};

dojo.lfx.html.explode=function(_817,_818,_819,_81a,_81b){

var h=dojo.html;

_817=dojo.byId(_817);

_818=dojo.byId(_818);

var _81d=h.toCoordinateObject(_817,true);

var _81e=document.createElement("div");

h.copyStyle(_81e,_818);

if(_818.explodeClassName){

_81e.className=_818.explodeClassName;

}

with(_81e.style){

position="absolute";

display="none";

var _81f=h.getStyle(_817,"background-color");

backgroundColor=_81f?_81f.toLowerCase():"transparent";

backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;

}

dojo.body().appendChild(_81e);

with(_818.style){

visibility="hidden";

display="block";

}

var _820=h.toCoordinateObject(_818,true);

with(_818.style){

display="none";

visibility="visible";

}

var _821={opacity:{start:0.5,end:1}};

dojo.lang.forEach(["height","width","top","left"],function(type){

_821[type]={start:_81d[type],end:_820[type]};

});

var anim=new dojo.lfx.propertyAnimation(_81e,_821,_819,_81a,{"beforeBegin":function(){

h.setDisplay(_81e,"block");

},"onEnd":function(){

h.setDisplay(_818,"block");

_81e.parentNode.removeChild(_81e);

}});

if(_81b){

anim.connect("onEnd",function(){

_81b(_818,anim);

});

}

return anim;

};

dojo.lfx.html.implode=function(_824,end,_826,_827,_828){

var h=dojo.html;

_824=dojo.byId(_824);

end=dojo.byId(end);

var _82a=dojo.html.toCoordinateObject(_824,true);

var _82b=dojo.html.toCoordinateObject(end,true);

var _82c=document.createElement("div");

dojo.html.copyStyle(_82c,_824);

if(_824.explodeClassName){

_82c.className=_824.explodeClassName;

}

dojo.html.setOpacity(_82c,0.3);

with(_82c.style){

position="absolute";

display="none";

backgroundColor=h.getStyle(_824,"background-color").toLowerCase();

}

dojo.body().appendChild(_82c);

var _82d={opacity:{start:1,end:0.5}};

dojo.lang.forEach(["height","width","top","left"],function(type){

_82d[type]={start:_82a[type],end:_82b[type]};

});

var anim=new dojo.lfx.propertyAnimation(_82c,_82d,_826,_827,{"beforeBegin":function(){

dojo.html.hide(_824);

dojo.html.show(_82c);

},"onEnd":function(){

_82c.parentNode.removeChild(_82c);

}});

if(_828){

anim.connect("onEnd",function(){

_828(_824,anim);

});

}

return anim;

};

dojo.lfx.html.highlight=function(_830,_831,_832,_833,_834){

_830=dojo.lfx.html._byId(_830);

var _835=[];

dojo.lang.forEach(_830,function(node){

var _837=dojo.html.getBackgroundColor(node);

var bg=dojo.html.getStyle(node,"background-color").toLowerCase();

var _839=dojo.html.getStyle(node,"background-image");

var _83a=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");

while(_837.length>3){

_837.pop();

}

var rgb=new dojo.gfx.color.Color(_831);

var _83c=new dojo.gfx.color.Color(_837);

var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_83c}},_832,_833,{"beforeBegin":function(){

if(_839){

node.style.backgroundImage="none";

}

node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";

},"onEnd":function(){

if(_839){

node.style.backgroundImage=_839;

}

if(_83a){

node.style.backgroundColor="transparent";

}

if(_834){

_834(node,anim);

}

}});

_835.push(anim);

});

return dojo.lfx.combine(_835);

};

dojo.lfx.html.unhighlight=function(_83e,_83f,_840,_841,_842){

_83e=dojo.lfx.html._byId(_83e);

var _843=[];

dojo.lang.forEach(_83e,function(node){

var _845=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));

var rgb=new dojo.gfx.color.Color(_83f);

var _847=dojo.html.getStyle(node,"background-image");

var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_845,end:rgb}},_840,_841,{"beforeBegin":function(){

if(_847){

node.style.backgroundImage="none";

}

node.style.backgroundColor="rgb("+_845.toRgb().join(",")+")";

},"onEnd":function(){

if(_842){

_842(node,anim);

}

}});

_843.push(anim);

});

return dojo.lfx.combine(_843);

};

dojo.lang.mixin(dojo.lfx,dojo.lfx.html);

dojo.provide("dojo.lfx.*");

dojo.provide("dojo.lfx.toggle");

dojo.lfx.toggle.plain={show:function(node,_84a,_84b,_84c){

dojo.html.show(node);

if(dojo.lang.isFunction(_84c)){

_84c();

}

},hide:function(node,_84e,_84f,_850){

dojo.html.hide(node);

if(dojo.lang.isFunction(_850)){

_850();

}

}};

dojo.lfx.toggle.fade={show:function(node,_852,_853,_854){

dojo.lfx.fadeShow(node,_852,_853,_854).play();

},hide:function(node,_856,_857,_858){

dojo.lfx.fadeHide(node,_856,_857,_858).play();

}};

dojo.lfx.toggle.wipe={show:function(node,_85a,_85b,_85c){

dojo.lfx.wipeIn(node,_85a,_85b,_85c).play();

},hide:function(node,_85e,_85f,_860){

dojo.lfx.wipeOut(node,_85e,_85f,_860).play();

}};

dojo.lfx.toggle.explode={show:function(node,_862,_863,_864,_865){

dojo.lfx.explode(_865||{x:0,y:0,width:0,height:0},node,_862,_863,_864).play();

},hide:function(node,_867,_868,_869,_86a){

dojo.lfx.implode(node,_86a||{x:0,y:0,width:0,height:0},_867,_868,_869).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(_871){

try{

if(this.bgIframe){

this.bgIframe.remove();

delete this.bgIframe;

}

if(!_871&&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 _875=w||wh.width;

var _876=h||wh.height;

if(this.width==_875&&this.height==_876){

return false;

}

this.width=_875;

this.height=_876;

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(_879){

if(_879.checkSize){

_879.checkSize();

}

});

}});

dojo.provide("dojo.widget.*");

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,_87c){

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,_880){

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();

}

}},_880));

},_cacheSetting:function(_886,_887){

for(var x in this.bindArgs){

if(dojo.lang.isUndefined(_886[x])){

_886[x]=this.bindArgs[x];

}

}

if(dojo.lang.isUndefined(_886.useCache)){

_886.useCache=_887;

}

if(dojo.lang.isUndefined(_886.preventCache)){

_886.preventCache=!_887;

}

if(dojo.lang.isUndefined(_886.mimetype)){

_886.mimetype="text/html";

}

return _886;

},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(_88c){

var st=this[_88c];

var err="";

var _88f=this.scriptScope||window;

for(var i=0;i<st.length;i++){

try{

st[i].call(_88f);

}

catch(e){

err+="\n"+st[i]+" failed: "+e.description;

}

}

this[_88c]=[];

if(err.length){

var name=(_88c=="_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(_896,obj,func){

if(typeof func=="undefined"){

_896.push(obj);

}else{

_896.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,_8a0,_8a1){

if(!_8a0){

_8a0="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[_8a0](e);

if(e.returnValue){

switch(_8a1){

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 _8a4=[],_8a5=[],tmp=[];

var _8a7=[],_8a8=[],attr=[],_8aa=[];

var str="",path="",fix="",_8ae="",tag="",_8b0="";

if(!url){

url="./";

}

if(s){

var _8b1=/<title[^>]*>([\s\S]*?)<\/title>/i;

while(_8a7=_8b1.exec(s)){

_8a4.push(_8a7[1]);

s=s.substring(0,_8a7.index)+s.substr(_8a7.index+_8a7[0].length);

}

if(this.adjustPaths){

var _8b2=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;

var _8b3=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;

var _8b4=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;

while(tag=_8b2.exec(s)){

str+=s.substring(0,tag.index);

s=s.substring((tag.index+tag[0].length),s.length);

tag=tag[0];

_8ae="";

while(attr=_8b3.exec(tag)){

path="";

_8b0=attr[3];

switch(attr[1].toLowerCase()){

case "src":

case "href":

if(_8b4.exec(_8b0)){

path=_8b0;

}else{

path=(new dojo.uri.Uri(url,_8b0).toString());

}

break;

case "style":

path=dojo.html.fixPathsInCssText(_8b0,url);

break;

default:

path=_8b0;

}

fix=" "+attr[1]+"="+attr[2]+path+attr[2];

_8ae+=tag.substring(0,attr.index)+fix;

tag=tag.substring((attr.index+attr[0].length),tag.length);

}

str+=_8ae+tag;

}

s=str+s;

}

_8b1=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;

while(_8a7=_8b1.exec(s)){

if(_8a7[1]&&_8a7[1].toLowerCase()=="style"){

_8aa.push(dojo.html.fixPathsInCssText(_8a7[2],url));

}else{

if(attr=_8a7[3].match(/href=(['"]?)([^'">]*)\1/i)){

_8aa.push({path:attr[2]});

}

}

s=s.substring(0,_8a7.index)+s.substr(_8a7.index+_8a7[0].length);

}

var _8b1=/<script([^>]*)>([\s\S]*?)<\/script>/i;

var _8b5=/src=(['"]?)([^"']*)\1/i;

var _8b6=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;

var _8b7=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;

var _8b8=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;

while(_8a7=_8b1.exec(s)){

if(this.executeScripts&&_8a7[1]){

if(attr=_8b5.exec(_8a7[1])){

if(_8b6.exec(attr[2])){

dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");

}else{

_8a5.push({path:attr[2]});

}

}

}

if(_8a7[2]){

var sc=_8a7[2].replace(_8b7,"");

if(!sc){

continue;

}

while(tmp=_8b8.exec(sc)){

_8a8.push(tmp[0]);

sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);

}

if(this.executeScripts){

_8a5.push(sc);

}

}

s=s.substr(0,_8a7.index)+s.substr(_8a7.index+_8a7[0].length);

}

if(this.extractContent){

_8a7=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);

if(_8a7){

s=_8a7[1];

}

}

if(this.executeScripts&&this.scriptSeparation){

var _8b1=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;

var _8ba=/([\s'";:\(])scriptScope(.*)/;

str="";

while(tag=_8b1.exec(s)){

tmp=((tag[3]=="'")?"\"":"'");

fix="";

str+=s.substring(0,tag.index)+tag[1];

while(attr=_8ba.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":_8aa,"titles":_8a4,"requires":_8a8,"scripts":_8a5,"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 _8c0=this;

function asyncParse(){

if(_8c0.executeScripts){

_8c0._executeScripts(data.scripts);

}

if(_8c0.parseContent){

var node=_8c0.containerNode||_8c0.domNode;

var _8c2=new dojo.xml.Parse();

var frag=_8c2.parseElement(node,null,true);

dojo.widget.getParser().createSubComponents(frag,_8c0);

}

_8c0.onResized();

_8c0.onLoad();

}

if(dojo.hostenv.isXDomain&&data.requires.length){

dojo.addOnLoad(asyncParse);

}else{

asyncParse();

}

}

},setHandler:function(_8c4){

var fcn=dojo.lang.isFunction(_8c4)?_8c4:window[_8c4];

if(!dojo.lang.isFunction(fcn)){

this._handleDefaults("Unable to set handler, '"+_8c4+"' 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(_8c7){

var self=this;

var tmp="",code="";

for(var i=0;i<_8c7.length;i++){

if(_8c7[i].path){

dojo.io.bind(this._cacheSetting({"url":_8c7[i].path,"load":function(type,_8cd){

dojo.lang.hitch(self,tmp=";"+_8cd);

},"error":function(type,_8cf){

_8cf.text=type+" downloading remote script";

self._handleDefaults.call(self,_8cf,"onExecError","debug");

},"mimetype":"text/plain","sync":true},this.cacheContent));

code+=tmp;

}else{

code+=_8c7[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 _8d3=dojo.global();

var _8d4=dojo.doc();

try{

if(_8d3["getSelection"]){

if(dojo.render.html.safari){

_8d3.getSelection().collapse();

}else{

_8d3.getSelection().removeAllRanges();

}

}else{

if(_8d4.selection){

if(_8d4.selection.empty){

_8d4.selection.empty();

}else{

if(_8d4.selection.clear){

_8d4.selection.clear();

}

}

}

}

return true;

}

catch(e){

dojo.debug(e);

return false;

}

};

dojo.html.disableSelection=function(_8d5){

_8d5=dojo.byId(_8d5)||dojo.body();

var h=dojo.render.html;

if(h.mozilla){

_8d5.style.MozUserSelect="none";

}else{

if(h.safari){

_8d5.style.KhtmlUserSelect="none";

}else{

if(h.ie){

_8d5.unselectable="on";

}else{

return false;

}

}

}

return true;

};

dojo.html.enableSelection=function(_8d7){

_8d7=dojo.byId(_8d7)||dojo.body();

var h=dojo.render.html;

if(h.mozilla){

_8d7.style.MozUserSelect="";

}else{

if(h.safari){

_8d7.style.KhtmlUserSelect="";

}else{

if(h.ie){

_8d7.unselectable="off";

}else{

return false;

}

}

}

return true;

};

dojo.html.selectElement=function(_8d9){

dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);

};

dojo.html.selectInputText=function(_8da){

var _8db=dojo.global();

var _8dc=dojo.doc();

_8da=dojo.byId(_8da);

if(_8dc["selection"]&&dojo.body()["createTextRange"]){

var _8dd=_8da.createTextRange();

_8dd.moveStart("character",0);

_8dd.moveEnd("character",_8da.value.length);

_8dd.select();

}else{

if(_8db["getSelection"]){

var _8de=_8db.getSelection();

_8da.setSelectionRange(0,_8da.value.length);

}

}

_8da.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 _8df=dojo.html.selectionType.TEXT;

var oSel;

try{

oSel=dojo.global().getSelection();

}

catch(e){

}

if(oSel&&oSel.rangeCount==1){

var _8e1=oSel.getRangeAt(0);

if(_8e1.startContainer==_8e1.endContainer&&(_8e1.endOffset-_8e1.startOffset)==1&&_8e1.startContainer.nodeType!=dojo.dom.TEXT_NODE){

_8df=dojo.html.selectionType.CONTROL;

}

}

return _8df;

}

},isCollapsed:function(){

var _8e2=dojo.global();

var _8e3=dojo.doc();

if(_8e3["selection"]){

return _8e3.selection.createRange().text=="";

}else{

if(_8e2["getSelection"]){

var _8e4=_8e2.getSelection();

if(dojo.lang.isString(_8e4)){

return _8e4=="";

}else{

return _8e4.isCollapsed||_8e4.toString()=="";

}

}

}

},getSelectedElement:function(){

if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){

if(dojo.doc()["selection"]){

var _8e5=dojo.doc().selection.createRange();

if(_8e5&&_8e5.item){

return dojo.doc().selection.createRange().item(0);

}

}else{

var _8e6=dojo.global().getSelection();

return _8e6.anchorNode.childNodes[_8e6.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 _8e8=dojo.global().getSelection();

if(_8e8){

var node=_8e8.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 _8ea=dojo.global().getSelection();

if(_8ea){

return _8ea.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 _8eb=dojo.global().getSelection();

if(_8eb&&_8eb.rangeCount){

var frag=_8eb.getRangeAt(0).cloneContents();

var div=document.createElement("div");

div.appendChild(frag);

return div.innerHTML;

}

return null;

}

},hasAncestorElement:function(_8ee){

return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);

},getAncestorElement:function(_8ef){

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(_8f4){

var _8f5=dojo.global();

var _8f6=dojo.doc();

_8f4=dojo.byId(_8f4);

if(_8f6.selection&&dojo.body().createTextRange){

try{

var _8f7=dojo.body().createControlRange();

_8f7.addElement(_8f4);

_8f7.select();

}

catch(e){

dojo.html.selection.selectElementChildren(_8f4);

}

}else{

if(_8f5["getSelection"]){

var _8f8=_8f5.getSelection();

if(_8f8["removeAllRanges"]){

var _8f7=_8f6.createRange();

_8f7.selectNode(_8f4);

_8f8.removeAllRanges();

_8f8.addRange(_8f7);

}

}

}

},selectElementChildren:function(_8f9){

var _8fa=dojo.global();

var _8fb=dojo.doc();

_8f9=dojo.byId(_8f9);

if(_8fb.selection&&dojo.body().createTextRange){

var _8fc=dojo.body().createTextRange();

_8fc.moveToElementText(_8f9);

_8fc.select();

}else{

if(_8fa["getSelection"]){

var _8fd=_8fa.getSelection();

if(_8fd["setBaseAndExtent"]){

_8fd.setBaseAndExtent(_8f9,0,_8f9,_8f9.innerText.length-1);

}else{

if(_8fd["selectAllChildren"]){

_8fd.selectAllChildren(_8f9);

}

}

}

}

},getBookmark:function(){

var _8fe;

var _8ff=dojo.doc();

if(_8ff["selection"]){

var _900=_8ff.selection.createRange();

_8fe=_900.getBookmark();

}else{

var _901;

try{

_901=dojo.global().getSelection();

}

catch(e){

}

if(_901){

var _900=_901.getRangeAt(0);

_8fe=_900.cloneRange();

}else{

dojo.debug("No idea how to store the current selection for this browser!");

}

}

return _8fe;

},moveToBookmark:function(_902){

var _903=dojo.doc();

if(_903["selection"]){

var _904=_903.selection.createRange();

_904.moveToBookmark(_902);

_904.select();

}else{

var _905;

try{

_905=dojo.global().getSelection();

}

catch(e){

}

if(_905&&_905["removeAllRanges"]){

_905.removeAllRanges();

_905.addRange(_902);

}else{

dojo.debug("No idea how to restore selection for this browser!");

}

}

},collapse:function(_906){

if(dojo.global()["getSelection"]){

var _907=dojo.global().getSelection();

if(_907.removeAllRanges){

if(_906){

_907.collapseToStart();

}else{

_907.collapseToEnd();

}

}else{

dojo.global().getSelection().collapse(_906);

}

}else{

if(dojo.doc().selection){

var _908=dojo.doc().selection.createRange();

_908.collapse(_906);

_908.select();

}

}

},remove:function(){

if(dojo.doc().selection){

var _909=dojo.doc().selection;

if(_909.type.toUpperCase()!="NONE"){

_909.clear();

}

return _909;

}else{

var _909=dojo.global().getSelection();

for(var i=0;i<_909.rangeCount;i++){

_909.getRangeAt(i).deleteContents();

}

return _909;

}

}});

dojo.provide("dojo.html.iframe");

dojo.html.iframeContentWindow=function(_90b){

var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_90b))||dojo.html.iframeContentDocument(_90b).__parent__||(_90b.name&&document.frames[_90b.name])||null;

return win;

};

dojo.html.iframeContentDocument=function(_90d){

var doc=_90d.contentDocument||((_90d.contentWindow)&&(_90d.contentWindow.document))||((_90d.name)&&(document.frames[_90d.name])&&(document.frames[_90d.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 _911=dojo.html.getMarginBox(this.domNode);

if(_911.width==0||_911.height==0){

dojo.lang.setTimeout(this,this.onResized,100);

return;

}

this.iframe.style.width=_911.width+"px";

this.iframe.style.height=_911.height+"px";

}

},size:function(node){

if(!this.iframe){

return;

}

var _913=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);

with(this.iframe.style){

width=_913.width+"px";

height=_913.height+"px";

left=_913.left+"px";

top=_913.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,_918,_919,_91a,_91b){

if(this.isShowingNow){

return;

}

if(this.animationInProgress){

this.queueOnAnimationFinish.push(this.open,arguments);

return;

}

this.aboutToShow();

var _91c=false,node,_91e;

if(typeof x=="object"){

node=x;

_91e=_919;

_919=_918;

_918=y;

_91c=true;

}

this.parent=_918;

dojo.body().appendChild(this.domNode);

_919=_919||_918["domNode"]||[];

var _91f=null;

this.isTopLevel=true;

while(_918){

if(_918!==this&&(_918.setOpenedSubpopup!=undefined&&_918.applyPopupBasicStyle!=undefined)){

_91f=_918;

this.isTopLevel=false;

_91f.setOpenedSubpopup(this);

break;

}

_918=_918.parent;

}

this.parentPopup=_91f;

this.popupIndex=_91f?_91f.popupIndex+1:1;

if(this.isTopLevel){

var _920=dojo.html.isNode(_919)?_919:null;

dojo.widget.PopupManager.opened(this,_920);

}

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(_919 instanceof Array){

_919={left:_919[0],top:_919[1],width:0,height:0};

}

with(this.domNode.style){

display="";

zIndex=this.beginZIndex+this.popupIndex;

}

if(_91c){

this.move(node,_91b,_91e);

}else{

this.move(x,y,_91b,_91a);

}

this.domNode.style.display="none";

this.explodeSrc=_919;

this.show();

this.isShowingNow=true;

},move:function(x,y,_923,_924){

var _925=(typeof x=="object");

if(_925){

var _926=_923;

var node=x;

_923=y;

if(!_926){

_926={"BL":"TL","TL":"BL"};

}

dojo.html.placeOnScreenAroundElement(this.domNode,node,_923,this.aroundBox,_926);

}else{

if(!_924){

_924="TL,TR,BL,BR";

}

dojo.html.placeOnScreen(this.domNode,x,y,_923,true,_924);

}

},close:function(_928){

if(_928){

this.domNode.style.display="none";

}

if(this.animationInProgress){

this.queueOnAnimationFinish.push(this.close,[]);

return;

}

this.closeSubpopup(_928);

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(_929){

if(this.parentPopup){

this.parentPopup.closeAll(_929);

}else{

this.close(_929);

}

},setOpenedSubpopup:function(_92a){

this.currentSubpopup=_92a;

},closeSubpopup:function(_92b){

if(this.currentSubpopup==null){

return;

}

this.currentSubpopup.close(_92b);

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(_92f){

if(!_92f){

_92f=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);

}

this.registerWin(_92f);

for(var i=0;i<_92f.frames.length;i++){

try{

var win=dojo.html.getDocumentWindow(_92f.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,_936){

if(menu==this.currentMenu){

return;

}

if(this.currentMenu){

this.currentMenu.close();

}

this.currentMenu=menu;

this.currentFocusMenu=menu;

this.currentButton=_936;

};

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 _93b=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 _93f=this.getFragNodeRef(frag);

dojo.html.copyStyle(this.domNode,_93f);

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("dojo.dnd.DragAndDrop");

dojo.declare("dojo.dnd.DragSource",null,{type:"",onDragEnd:function(evt){

},onDragStart:function(evt){

},onSelected:function(evt){

},unregister:function(){

dojo.dnd.dragManager.unregisterDragSource(this);

},reregister:function(){

dojo.dnd.dragManager.registerDragSource(this);

}});

dojo.declare("dojo.dnd.DragObject",null,{type:"",register:function(){

var dm=dojo.dnd.dragManager;

if(dm["registerDragObject"]){

dm.registerDragObject(this);

}

},onDragStart:function(evt){

},onDragMove:function(evt){

},onDragOver:function(evt){

},onDragOut:function(evt){

},onDragEnd:function(evt){

},onDragLeave:dojo.lang.forward("onDragOut"),onDragEnter:dojo.lang.forward("onDragOver"),ondragout:dojo.lang.forward("onDragOut"),ondragover:dojo.lang.forward("onDragOver")});

dojo.declare("dojo.dnd.DropTarget",null,{acceptsType:function(type){

if(!dojo.lang.inArray(this.acceptedTypes,"*")){

if(!dojo.lang.inArray(this.acceptedTypes,type)){

return false;

}

}

return true;

},accepts:function(_950){

if(!dojo.lang.inArray(this.acceptedTypes,"*")){

for(var i=0;i<_950.length;i++){

if(!dojo.lang.inArray(this.acceptedTypes,_950[i].type)){

return false;

}

}

}

return true;

},unregister:function(){

dojo.dnd.dragManager.unregisterDropTarget(this);

},onDragOver:function(evt){

},onDragOut:function(evt){

},onDragMove:function(evt){

},onDropStart:function(evt){

},onDrop:function(evt){

},onDropEnd:function(){

}},function(){

this.acceptedTypes=[];

});

dojo.dnd.DragEvent=function(){

this.dragSource=null;

this.dragObject=null;

this.target=null;

this.eventStatus="success";

};

dojo.declare("dojo.dnd.DragManager",null,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(_957){

},dropTargets:[],registerDropTarget:function(_958){

},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){

},onMouseOut:function(){

},onMouseMove:function(){

},onMouseUp:function(){

}});

dojo.provide("dojo.dnd.HtmlDragManager");

dojo.declare("dojo.dnd.HtmlDragManager",dojo.dnd.DragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],dragSources:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,threshold:7,dropAcceptable:false,cancelEvent:function(e){

e.stopPropagation();

e.preventDefault();

},registerDragSource:function(ds){

if(ds["domNode"]){

var dp=this.dsPrefix;

var _95c=dp+"Idx_"+(this.dsCounter++);

ds.dragSourceId=_95c;

this.dragSources[_95c]=ds;

ds.domNode.setAttribute(dp,_95c);

if(dojo.render.html.ie){

dojo.event.browser.addListener(ds.domNode,"ondragstart",this.cancelEvent);

}

}

},unregisterDragSource:function(ds){

if(ds["domNode"]){

var dp=this.dsPrefix;

var _95f=ds.dragSourceId;

delete ds.dragSourceId;

delete this.dragSources[_95f];

ds.domNode.setAttribute(dp,null);

if(dojo.render.html.ie){

dojo.event.browser.removeListener(ds.domNode,"ondragstart",this.cancelEvent);

}

}

},registerDropTarget:function(dt){

this.dropTargets.push(dt);

},unregisterDropTarget:function(dt){

var _962=dojo.lang.find(this.dropTargets,dt,true);

if(_962>=0){

this.dropTargets.splice(_962,1);

}

},getDragSource:function(e){

var tn=e.target;

if(tn===dojo.body()){

return;

}

var ta=dojo.html.getAttribute(tn,this.dsPrefix);

while((!ta)&&(tn)){

tn=tn.parentNode;

if((!tn)||(tn===dojo.body())){

return;

}

ta=dojo.html.getAttribute(tn,this.dsPrefix);

}

return this.dragSources[ta];

},onKeyDown:function(e){

},onMouseDown:function(e){

if(this.disabled){

return;

}

if(dojo.render.html.ie){

if(e.button!=1){

return;

}

}else{

if(e.which!=1){

return;

}

}

var _968=e.target.nodeType==dojo.html.TEXT_NODE?e.target.parentNode:e.target;

if(dojo.html.isTag(_968,"button","textarea","input","select","option")){

return;

}

var ds=this.getDragSource(e);

if(!ds){

return;

}

if(!dojo.lang.inArray(this.selectedSources,ds)){

this.selectedSources.push(ds);

ds.onSelected();

}

this.mouseDownX=e.pageX;

this.mouseDownY=e.pageY;

e.preventDefault();

dojo.event.connect(document,"onmousemove",this,"onMouseMove");

},onMouseUp:function(e,_96b){

if(this.selectedSources.length==0){

return;

}

this.mouseDownX=null;

this.mouseDownY=null;

this._dragTriggered=false;

e.dragSource=this.dragSource;

if((!e.shiftKey)&&(!e.ctrlKey)){

if(this.currentDropTarget){

this.currentDropTarget.onDropStart();

}

dojo.lang.forEach(this.dragObjects,function(_96c){

var ret=null;

if(!_96c){

return;

}

if(this.currentDropTarget){

e.dragObject=_96c;

var ce=this.currentDropTarget.domNode.childNodes;

if(ce.length>0){

e.dropTarget=ce[0];

while(e.dropTarget==_96c.domNode){

e.dropTarget=e.dropTarget.nextSibling;

}

}else{

e.dropTarget=this.currentDropTarget.domNode;

}

if(this.dropAcceptable){

ret=this.currentDropTarget.onDrop(e);

}else{

this.currentDropTarget.onDragOut(e);

}

}

e.dragStatus=this.dropAcceptable&&ret?"dropSuccess":"dropFailure";

dojo.lang.delayThese([function(){

try{

_96c.dragSource.onDragEnd(e);

}

catch(err){

var _96f={};

for(var i in e){

if(i=="type"){

_96f.type="mouseup";

continue;

}

_96f[i]=e[i];

}

_96c.dragSource.onDragEnd(_96f);

}

},function(){

_96c.onDragEnd(e);

}]);

},this);

this.selectedSources=[];

this.dragObjects=[];

this.dragSource=null;

if(this.currentDropTarget){

this.currentDropTarget.onDropEnd();

}

}else{

}

dojo.event.disconnect(document,"onmousemove",this,"onMouseMove");

this.currentDropTarget=null;

},onScroll:function(){

for(var i=0;i<this.dragObjects.length;i++){

if(this.dragObjects[i].updateDragOffset){

this.dragObjects[i].updateDragOffset();

}

}

if(this.dragObjects.length){

this.cacheTargetLocations();

}

},_dragStartDistance:function(x,y){

if((!this.mouseDownX)||(!this.mouseDownX)){

return;

}

var dx=Math.abs(x-this.mouseDownX);

var dx2=dx*dx;

var dy=Math.abs(y-this.mouseDownY);

var dy2=dy*dy;

return parseInt(Math.sqrt(dx2+dy2),10);

},cacheTargetLocations:function(){

dojo.profile.start("cacheTargetLocations");

this.dropTargetDimensions=[];

dojo.lang.forEach(this.dropTargets,function(_978){

var tn=_978.domNode;

if(!tn||!_978.accepts([this.dragSource])){

return;

}

var abs=dojo.html.getAbsolutePosition(tn,true);

var bb=dojo.html.getBorderBox(tn);

this.dropTargetDimensions.push([[abs.x,abs.y],[abs.x+bb.width,abs.y+bb.height],_978]);

},this);

dojo.profile.end("cacheTargetLocations");

},onMouseMove:function(e){

if((dojo.render.html.ie)&&(e.button!=1)){

this.currentDropTarget=null;

this.onMouseUp(e,true);

return;

}

if((this.selectedSources.length)&&(!this.dragObjects.length)){

var dx;

var dy;

if(!this._dragTriggered){

this._dragTriggered=(this._dragStartDistance(e.pageX,e.pageY)>this.threshold);

if(!this._dragTriggered){

return;

}

dx=e.pageX-this.mouseDownX;

dy=e.pageY-this.mouseDownY;

}

this.dragSource=this.selectedSources[0];

dojo.lang.forEach(this.selectedSources,function(_97f){

if(!_97f){

return;

}

var tdo=_97f.onDragStart(e);

if(tdo){

tdo.onDragStart(e);

tdo.dragOffset.y+=dy;

tdo.dragOffset.x+=dx;

tdo.dragSource=_97f;

this.dragObjects.push(tdo);

}

},this);

this.previousDropTarget=null;

this.cacheTargetLocations();

}

dojo.lang.forEach(this.dragObjects,function(_981){

if(_981){

_981.onDragMove(e);

}

});

if(this.currentDropTarget){

var c=dojo.html.toCoordinateObject(this.currentDropTarget.domNode,true);

var dtp=[[c.x,c.y],[c.x+c.width,c.y+c.height]];

}

if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){

if(this.dropAcceptable){

this.currentDropTarget.onDragMove(e,this.dragObjects);

}

}else{

var _984=this.findBestTarget(e);

if(_984.target===null){

if(this.currentDropTarget){

this.currentDropTarget.onDragOut(e);

this.previousDropTarget=this.currentDropTarget;

this.currentDropTarget=null;

}

this.dropAcceptable=false;

return;

}

if(this.currentDropTarget!==_984.target){

if(this.currentDropTarget){

this.previousDropTarget=this.currentDropTarget;

this.currentDropTarget.onDragOut(e);

}

this.currentDropTarget=_984.target;

e.dragObjects=this.dragObjects;

this.dropAcceptable=this.currentDropTarget.onDragOver(e);

}else{

if(this.dropAcceptable){

this.currentDropTarget.onDragMove(e,this.dragObjects);

}

}

}

},findBestTarget:function(e){

var _986=this;

var _987=new Object();

_987.target=null;

_987.points=null;

dojo.lang.every(this.dropTargetDimensions,function(_988){

if(!_986.isInsideBox(e,_988)){

return true;

}

_987.target=_988[2];

_987.points=_988;

return Boolean(_986.nestedTargets);

});

return _987;

},isInsideBox:function(e,_98a){

if((e.pageX>_98a[0][0])&&(e.pageX<_98a[1][0])&&(e.pageY>_98a[0][1])&&(e.pageY<_98a[1][1])){

return true;

}

return false;

},onMouseOver:function(e){

},onMouseOut:function(e){

}});

dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager();

(function(){

var d=document;

var dm=dojo.dnd.dragManager;

dojo.event.connect(d,"onkeydown",dm,"onKeyDown");

dojo.event.connect(d,"onmouseover",dm,"onMouseOver");

dojo.event.connect(d,"onmouseout",dm,"onMouseOut");

dojo.event.connect(d,"onmousedown",dm,"onMouseDown");

dojo.event.connect(d,"onmouseup",dm,"onMouseUp");

dojo.event.connect(window,"onscroll",dm,"onScroll");

})();

dojo.provide("dojo.html.*");

dojo.provide("dojo.dnd.HtmlDragAndDrop");

dojo.declare("dojo.dnd.HtmlDragSource",dojo.dnd.DragSource,{dragClass:"",onDragStart:function(){

var _98f=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);

if(this.dragClass){

_98f.dragClass=this.dragClass;

}

if(this.constrainToContainer){

_98f.constrainTo(this.constrainingContainer||this.domNode.parentNode);

}

return _98f;

},setDragHandle:function(node){

node=dojo.byId(node);

dojo.dnd.dragManager.unregisterDragSource(this);

this.domNode=node;

dojo.dnd.dragManager.registerDragSource(this);

},setDragTarget:function(node){

this.dragObject=node;

},constrainTo:function(_992){

this.constrainToContainer=true;

if(_992){

this.constrainingContainer=_992;

}

},onSelected:function(){

for(var i=0;i<this.dragObjects.length;i++){

dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragSource(this.dragObjects[i]));

}

},addDragObjects:function(el){

for(var i=0;i<arguments.length;i++){

this.dragObjects.push(dojo.byId(arguments[i]));

}

}},function(node,type){

node=dojo.byId(node);

this.dragObjects=[];

this.constrainToContainer=false;

if(node){

this.domNode=node;

this.dragObject=node;

this.type=(type)||(this.domNode.nodeName.toLowerCase());

dojo.dnd.DragSource.prototype.reregister.call(this);

}

});

dojo.declare("dojo.dnd.HtmlDragObject",dojo.dnd.DragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){

var node=this.domNode.cloneNode(true);

if(this.dragClass){

dojo.html.addClass(node,this.dragClass);

}

if(this.opacity<1){

dojo.html.setOpacity(node,this.opacity);

}

var ltn=node.tagName.toLowerCase();

var isTr=(ltn=="tr");

if((isTr)||(ltn=="tbody")){

var doc=this.domNode.ownerDocument;

var _99c=doc.createElement("table");

if(isTr){

var _99d=doc.createElement("tbody");

_99c.appendChild(_99d);

_99d.appendChild(node);

}else{

_99c.appendChild(node);

}

var _99e=((isTr)?this.domNode:this.domNode.firstChild);

var _99f=((isTr)?node:node.firstChild);

var _9a0=tdp.childNodes;

var _9a1=_99f.childNodes;

for(var i=0;i<_9a0.length;i++){

if((_9a1[i])&&(_9a1[i].style)){

_9a1[i].style.width=dojo.html.getContentBox(_9a0[i]).width+"px";

}

}

node=_99c;

}

if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){

with(node.style){

top="0px";

left="0px";

}

var _9a3=document.createElement("div");

_9a3.appendChild(node);

this.bgIframe=new dojo.html.BackgroundIframe(_9a3);

_9a3.appendChild(this.bgIframe.iframe);

node=_9a3;

}

node.style.zIndex=999;

return node;

},onDragStart:function(e){

dojo.html.clearSelection();

this.scrollOffset=dojo.html.getScroll().offset;

this.dragStartPosition=dojo.html.getAbsolutePosition(this.domNode,true);

this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};

this.dragClone=this.createDragNode();

this.containingBlockPosition=this.domNode.offsetParent?dojo.html.getAbsolutePosition(this.domNode.offsetParent,true):{x:0,y:0};

if(this.constrainToContainer){

this.constraints=this.getConstraints();

}

with(this.dragClone.style){

position="absolute";

top=this.dragOffset.y+e.pageY+"px";

left=this.dragOffset.x+e.pageX+"px";

}

dojo.body().appendChild(this.dragClone);

dojo.event.topic.publish("dragStart",{source:this});

},getConstraints:function(){

if(this.constrainingContainer.nodeName.toLowerCase()=="body"){

var _9a5=dojo.html.getViewport();

var _9a6=_9a5.width;

var _9a7=_9a5.height;

var _9a8=dojo.html.getScroll().offset;

var x=_9a8.x;

var y=_9a8.y;

}else{

var _9ab=dojo.html.getContentBox(this.constrainingContainer);

_9a6=_9ab.width;

_9a7=_9ab.height;

x=this.containingBlockPosition.x+dojo.html.getPixelValue(this.constrainingContainer,"padding-left",true)+dojo.html.getBorderExtent(this.constrainingContainer,"left");

y=this.containingBlockPosition.y+dojo.html.getPixelValue(this.constrainingContainer,"padding-top",true)+dojo.html.getBorderExtent(this.constrainingContainer,"top");

}

var mb=dojo.html.getMarginBox(this.domNode);

return {minX:x,minY:y,maxX:x+_9a6-mb.width,maxY:y+_9a7-mb.height};

},updateDragOffset:function(){

var _9ad=dojo.html.getScroll().offset;

if(_9ad.y!=this.scrollOffset.y){

var diff=_9ad.y-this.scrollOffset.y;

this.dragOffset.y+=diff;

this.scrollOffset.y=_9ad.y;

}

if(_9ad.x!=this.scrollOffset.x){

var diff=_9ad.x-this.scrollOffset.x;

this.dragOffset.x+=diff;

this.scrollOffset.x=_9ad.x;

}

},onDragMove:function(e){

this.updateDragOffset();

var x=this.dragOffset.x+e.pageX;

var y=this.dragOffset.y+e.pageY;

if(this.constrainToContainer){

if(x<this.constraints.minX){

x=this.constraints.minX;

}

if(y<this.constraints.minY){

y=this.constraints.minY;

}

if(x>this.constraints.maxX){

x=this.constraints.maxX;

}

if(y>this.constraints.maxY){

y=this.constraints.maxY;

}

}

this.setAbsolutePosition(x,y);

dojo.event.topic.publish("dragMove",{source:this});

},setAbsolutePosition:function(x,y){

if(!this.disableY){

this.dragClone.style.top=y+"px";

}

if(!this.disableX){

this.dragClone.style.left=x+"px";

}

},onDragEnd:function(e){

switch(e.dragStatus){

case "dropSuccess":

dojo.html.removeNode(this.dragClone);

this.dragClone=null;

break;

case "dropFailure":

var _9b5=dojo.html.getAbsolutePosition(this.dragClone,true);

var _9b6={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1};

var anim=dojo.lfx.slideTo(this.dragClone,_9b6,300);

var _9b8=this;

dojo.event.connect(anim,"onEnd",function(e){

dojo.html.removeNode(_9b8.dragClone);

_9b8.dragClone=null;

});

anim.play();

break;

}

dojo.event.topic.publish("dragEnd",{source:this});

},constrainTo:function(_9ba){

this.constrainToContainer=true;

if(_9ba){

this.constrainingContainer=_9ba;

}else{

this.constrainingContainer=this.domNode.parentNode;

}

}},function(node,type){

this.domNode=dojo.byId(node);

this.type=type;

this.constrainToContainer=false;

this.dragSource=null;

dojo.dnd.DragObject.prototype.register.call(this);

});

dojo.declare("dojo.dnd.HtmlDropTarget",dojo.dnd.DropTarget,{vertical:false,onDragOver:function(e){

if(!this.accepts(e.dragObjects)){

return false;

}

this.childBoxes=[];

for(var i=0,_9bf;i<this.domNode.childNodes.length;i++){

_9bf=this.domNode.childNodes[i];

if(_9bf.nodeType!=dojo.html.ELEMENT_NODE){

continue;

}

var pos=dojo.html.getAbsolutePosition(_9bf,true);

var _9c1=dojo.html.getBorderBox(_9bf);

this.childBoxes.push({top:pos.y,bottom:pos.y+_9c1.height,left:pos.x,right:pos.x+_9c1.width,height:_9c1.height,width:_9c1.width,node:_9bf});

}

return true;

},_getNodeUnderMouse:function(e){

for(var i=0,_9c4;i<this.childBoxes.length;i++){

with(this.childBoxes[i]){

if(e.pageX>=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){

return i;

}

}

}

return -1;

},createDropIndicator:function(){

this.dropIndicator=document.createElement("div");

with(this.dropIndicator.style){

position="absolute";

zIndex=999;

if(this.vertical){

borderLeftWidth="1px";

borderLeftColor="black";

borderLeftStyle="solid";

height=dojo.html.getBorderBox(this.domNode).height+"px";

top=dojo.html.getAbsolutePosition(this.domNode,true).y+"px";

}else{

borderTopWidth="1px";

borderTopColor="black";

borderTopStyle="solid";

width=dojo.html.getBorderBox(this.domNode).width+"px";

left=dojo.html.getAbsolutePosition(this.domNode,true).x+"px";

}

}

},onDragMove:function(e,_9c6){

var i=this._getNodeUnderMouse(e);

if(!this.dropIndicator){

this.createDropIndicator();

}

var _9c8=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;

var hide=false;

if(i<0){

if(this.childBoxes.length){

var _9ca=(dojo.html.gravity(this.childBoxes[0].node,e)&_9c8);

if(_9ca){

hide=true;

}

}else{

var _9ca=true;

}

}else{

var _9cb=this.childBoxes[i];

var _9ca=(dojo.html.gravity(_9cb.node,e)&_9c8);

if(_9cb.node===_9c6[0].dragSource.domNode){

hide=true;

}else{

var _9cc=_9ca?(i>0?this.childBoxes[i-1]:_9cb):(i<this.childBoxes.length-1?this.childBoxes[i+1]:_9cb);

if(_9cc.node===_9c6[0].dragSource.domNode){

hide=true;

}

}

}

if(hide){

this.dropIndicator.style.display="none";

return;

}else{

this.dropIndicator.style.display="";

}

this.placeIndicator(e,_9c6,i,_9ca);

if(!dojo.html.hasParent(this.dropIndicator)){

dojo.body().appendChild(this.dropIndicator);

}

},placeIndicator:function(e,_9ce,_9cf,_9d0){

var _9d1=this.vertical?"left":"top";

var _9d2;

if(_9cf<0){

if(this.childBoxes.length){

_9d2=_9d0?this.childBoxes[0]:this.childBoxes[this.childBoxes.length-1];

}else{

this.dropIndicator.style[_9d1]=dojo.html.getAbsolutePosition(this.domNode,true)[this.vertical?"x":"y"]+"px";

}

}else{

_9d2=this.childBoxes[_9cf];

}

if(_9d2){

this.dropIndicator.style[_9d1]=(_9d0?_9d2[_9d1]:_9d2[this.vertical?"right":"bottom"])+"px";

if(this.vertical){

this.dropIndicator.style.height=_9d2.height+"px";

this.dropIndicator.style.top=_9d2.top+"px";

}else{

this.dropIndicator.style.width=_9d2.width+"px";

this.dropIndicator.style.left=_9d2.left+"px";

}

}

},onDragOut:function(e){

if(this.dropIndicator){

dojo.html.removeNode(this.dropIndicator);

delete this.dropIndicator;

}

},onDrop:function(e){

this.onDragOut(e);

var i=this._getNodeUnderMouse(e);

var _9d6=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;

if(i<0){

if(this.childBoxes.length){

if(dojo.html.gravity(this.childBoxes[0].node,e)&_9d6){

return this.insert(e,this.childBoxes[0].node,"before");

}else{

return this.insert(e,this.childBoxes[this.childBoxes.length-1].node,"after");

}

}

return this.insert(e,this.domNode,"append");

}

var _9d7=this.childBoxes[i];

if(dojo.html.gravity(_9d7.node,e)&_9d6){

return this.insert(e,_9d7.node,"before");

}else{

return this.insert(e,_9d7.node,"after");

}

},insert:function(e,_9d9,_9da){

var node=e.dragObject.domNode;

if(_9da=="before"){

return dojo.html.insertBefore(node,_9d9);

}else{

if(_9da=="after"){

return dojo.html.insertAfter(node,_9d9);

}else{

if(_9da=="append"){

_9d9.appendChild(node);

return true;

}

}

}

return false;

}},function(node,_9dd){

if(arguments.length==0){

return;

}

this.domNode=dojo.byId(node);

dojo.dnd.DropTarget.call(this);

if(_9dd&&dojo.lang.isString(_9dd)){

_9dd=[_9dd];

}

this.acceptedTypes=_9dd||[];

dojo.dnd.dragManager.registerDropTarget(this);

});

dojo.provide("dojo.dnd.*");

dojo.provide("wc.widget.ProductQuickView");

dojo.provide("wc.widget.BaseContent");

dojo.provide("wc.widget.ToolTipContent");

dojo.widget.defineWidget("wc.widget.ProductQuickView",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"containerNode\">\n<table dojoAttachPoint=\"DAPProductQuickViewTable\" cellpadding=\"1\" cellspacing=\"1\" border=\"0\" class=\"pqv_table\">\n<tr> \n	<td class=\"pqv_img_view\">\n		<div dojoAttachPoint = \"DAPCatalogEntryContainer\" style=\"display:block;\">\n			<a dojoAttachPoint = \"DAPCatalogEntryThumbnailImageLink\"  >\n				<span>\n					<img id = \"DAPCatalogEntryThumbnailImageConnectId\" dojoAttachPoint = \"DAPCatalogEntryThumbnailImage\"  alt=\"\" border=\"0\"/>\n				</span>\n			</a><div>\n			<a dojoAttachPoint = \"DAPCatalogEntryNameLink\" >\n				<span dojoAttachPoint = \"DAPCatalogEntryName\" class=\"pqv_productName\">\n				</span>\n			</a></div>\n			<br/>\n			<span dojoAttachPoint = \"DAPSKU\" class=\"pqv_text\"></span>\n			<span dojoAttachPoint = \"DAPShortDescription\" class=\"pqv_text\"></span>\n			<a dojoAttachPoint = \"DAPPriceImageLink\" ><img dojoAttachPoint = \"DAPPriceImage\"  alt='' width=\"1\" height=\"1\" border=\"0\" />\n			</a>\n			<span dojoAttachPoint = \"DAPPriceRange\" class=\"pqv_price\"></span>\n			<span class=\"pqv_img_border\">\n					<img dojoAttachPoint = \"DAPDiscountImage\"  border = \"0\"/>\n					<a  dojoAttachPoint = \"DAPDiscountLink\"  class = \"pqv_discount\">\n					<span dojoAttachPoint = \"DAPDiscountDetails\" class = \"pqv_discount\"></span>\n					</a>\n			</span>\n			<span dojoAttachPoint = \"DAPAdditionalText\"></span>\n		</div>\n	</td>\n</tr>\n</table>\n</div>",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n	.pqv_table {\n		font-family: Verdana, Arial,sans-serif; \n		font-size: 11px; \n		color:#444444; \n		width: 100%;\n	}\n	.pqv_img_view {\n		text-align : center; \n		width:120px;\n		display:block;\n		padding-top:12px;\n		padding-bottom:10px;\n		vertical-align:top;\n	}\n\n	.pqv_price {\n		font-size:  12px; \n		color: #444444; \n		font-family: arial, helvetica, sans-serif; \n		text-align: right;\n	}\n\n	.pqv_discountPrice{\n		font-size:  9pt; \n		color: #9B9B9B; \n		font-family: arial, helvetica, sans-serif;\n	}\n	.pqv_productName{\n		font-size:  11px; \n		color: #427DBE; \n		font-family: Verdana, Arial,sans-serif;\n		font-weight: bold;\n	}\n	.pqv_discount {\n		font-family:Verdana,Arial,sans-serif; \n		font-size:11px; \n		font-weight:bold; \n		color:#427DBE; \n		vertical-align:middle;\n	}\n	.pqv_text{\n		color:#174D8A;\n		font-size: 11px;\n	}",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n	.pqv_table {\n		font-family: Verdana, Arial,sans-serif; \n		font-size: 11px; \n		color:#444444; \n		width: 100%;\n	}\n	.pqv_img_view {\n		text-align : center; \n		width:120px;\n		display:block;\n		padding-top:12px;\n		padding-bottom:10px;\n		vertical-align:top;\n	}\n\n	.pqv_price {\n		font-size:  12px; \n		color: #444444; \n		font-family: arial, helvetica, sans-serif; \n		text-align: right;\n	}\n\n	.pqv_discountPrice{\n		font-size:  9pt; \n		color: #9B9B9B; \n		font-family: arial, helvetica, sans-serif;\n	}\n	.pqv_productName{\n		font-size:  11px; \n		color: #427DBE; \n		font-family: Verdana, Arial,sans-serif;\n		font-weight: bold;\n	}\n	.pqv_discount {\n		font-family:Verdana,Arial,sans-serif; \n		font-size:11px; \n		font-weight:bold; \n		color:#427DBE; \n		vertical-align:middle;\n	}\n	.pqv_text{\n		color:#174D8A;\n		font-size: 11px;\n	}",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickView.css"),isContainer:true,widgetType:"ProductQuickView",identifier:"",defaultContent:false,dragAndDrop:true,dragSourceProperties:"",CatalogEntryThumbnailImageLink:"",CatalogEntryThumbnailImageSrc:"",CatalogEntryThumbnailImageAlt:"",CatalogEntryNameLink:"",CatalogEntryName:"",PriceImageLink:"",PriceImageSrc:"",PriceRange:"",SKU:"",ShortDescription:"",DiscountImage:"",DiscountLink:"",DiscountDetails:"",AdditionalText:"",catentryId:"",dragSourceType:"*",additionalProperties:"",DAPCatalogEntryContainer:null,DAPCatalogEntryThumbnailImageLink:null,DAPCatalogEntryThumbnailImage:null,DAPCatalogEntryNameLink:null,DAPCatalogEntryName:null,DAPPriceImageLink:null,DAPPriceImage:null,DAPPriceRange:null,DAPSKU:null,DAPShortDescription:null,DAPDiscountImage:null,DAPDiscountLink:null,DAPDiscountDetails:null,DAPAdditionalText:null,DAPProductQuickViewTable:null,fillInTemplate:function(){

if(this.defaultContent){

this.DAPCatalogEntryContainer.style.display="block";

this.DAPCatalogEntryThumbnailImageLink.href=this.CatalogEntryThumbnailImageLink;

this.DAPCatalogEntryThumbnailImage.src=this.CatalogEntryThumbnailImageSrc;

this.DAPCatalogEntryThumbnailImage.alt=this.CatalogEntryThumbnailImageAlt;

this.DAPCatalogEntryThumbnailImage.id=this.catentryId;

this.DAPCatalogEntryNameLink.href=this.CatalogEntryNameLink;

this.DAPCatalogEntryName.innerHTML=this.CatalogEntryName;

this.DAPPriceImageLink.href=this.PriceImageLink;

this.DAPPriceImage.src=this.PriceImageSrc;

this.DAPPriceRange.innerHTML=this.insertWithBreak(this.PriceRange);

this.DAPSKU.innerHTML=this.insertWithBreak(this.SKU);

this.DAPShortDescription.innerHTML=this.insertWithBreak(this.ShortDescription);

this.DAPDiscountImage.src=this.DiscountImage;

this.DAPDiscountLink.href=this.insertWithBreak(this.DiscountLink);

this.DAPDiscountDetails.innerHTML=this.insertWithBreak(this.DiscountDetails);

this.DAPAdditionalText.innerHTML=this.insertWithBreak(this.AdditionalText);

}else{

this.DAPCatalogEntryContainer.style.display="none";

dojo.dom.removeChildren(this.DAPProductQuickViewTable);

}

this.addDragDropFeature();

var _9de=new Array();

var _9df=new Array();

_9de=this.additionalProperties.split(",");

for(var i=0;i<_9de.length;i++){

_9df=_9de[i].split("=");

if(_9df.length==2){

this[_9df[0]]=_9df[1];

}

}

},insertWithBreak:function(_9e1){

if(_9e1!=""){

return _9e1+"<br/><br/>";

}

return "";

},addDragDropFeature:function(){

if(this.dragAndDrop&&this.defaultContent){

var _9e2=null;

_9e2=this.DAPCatalogEntryThumbnailImageLink;

_9e2.name=this.DAPCatalogEntryName.innerHTML;

_9e2.price=this.DAPPriceRange.innerHTML;

_9e2.catentryId=this.catentryId;

var _9e3=new Array();

var _9e4=new Array();

_9e3=this.dragSourceProperties.split(",");

for(var i=0;i<_9e3.length;i++){

_9e4=_9e3[i].split("=");

if(_9e4.length==2){

_9e2[_9e4[0]]=_9e4[1];

}

}

new dojo.dnd.HtmlDragSource(_9e2,this.dragSourceType);

}

}});

dojo.widget.defineWidget("wc.widget.BaseContent",dojo.widget.HtmlWidget,{catentryId:"",dragSourceId:"",isContainer:true,widgetType:"BaseContent",dragSourceType:"*",dragSourceProperties:"",templateString:"",userInnerHtml:"",dragAndDrop:true,postCreate:function(){

if(this.userInnerHtml!=""){

this.domNode.innerHTML=this.userInnerHtml;

}

if(this.domNode.innerHTML!=null&&this.domNode.innerHTML!=""){

if(this.dragAndDrop){

var _9e6=null;

_9e6=dojo.byId(this.dragSourceId);

_9e6.catentryId=this.catentryId;

var _9e7=new Array();

var _9e8=new Array();

_9e7=this.dragSourceProperties.split(",");

for(var i=0;i<_9e7.length;i++){

_9e8=_9e7[i].split("=");

if(_9e8.length==2){

_9e6[_9e8[0]]=_9e8[1];

}

}

new dojo.dnd.HtmlDragSource(_9e6,this.dragSourceType);

}

}

}});

dojo.widget.defineWidget("wc.widget.ToolTipContent",dojo.widget.Tooltip,{connectId:"",userInnerHtml:"",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n.dojoTooltip {\n	color: black;\n	position: absolute;\n	z-index: 10;\n}",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n.dojoTooltip {\n	color: black;\n	position: absolute;\n	z-index: 10;\n}",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickViewToolTip.css"),fillInTemplate:function(args,frag){

if(this.userInnerHtml!=""){

this.containerNode.innerHTML=this.userInnerHtml;

}

wc.widget.ToolTipContent.superclass.fillInTemplate.call(this,args,frag);

},_getPosition:function(_9ec){

var pos={x:0,y:0};

if(!_9ec.offsetParent){

return pos;

}

pos.x=_9ec.offsetLeft;

pos.y=_9ec.offsetTop;

while(_9ec=_9ec.offsetParent){

pos.x+=_9ec.offsetLeft;

pos.y+=_9ec.offsetTop;

}

return pos;

},_isOverElement:function(_9ee,e){

_9ee=dojo.byId(_9ee);

if(e.target.tagName.toLowerCase()=="option"||e.target.tagName.toLowerCase()=="select"){

var _9f0=this._getPosition(e.target.offsetParent);

dojo.debug("mouse  = ("+_9f0.x+" , "+_9f0.y+") ");

}else{

var _9f0=dojo.html.getCursorPosition(e);

}

var bb=dojo.html.getBorderBox(_9ee);

var _9f2=dojo.html.getAbsolutePosition(_9ee,true,dojo.html.boxSizing.BORDER_BOX);

var top=_9f2.y;

var _9f4=top+bb.height;

var left=_9f2.x;

var _9f6=left+bb.width;

dojo.debug("**** left = "+left+", right = "+_9f6+", top = "+top+", bottom = "+_9f4+" mouse: "+_9f0.x+", "+_9f0.y+") ");

dojo.debug("**** mouse x y = ("+_9f0.x+", "+_9f0.y+") ");

return (_9f0.x>=left&&_9f0.x<=_9f6&&_9f0.y>=top&&_9f0.y<=_9f4);

},_onMouseMove:function(e){

this._mouse={x:e.pageX,y:e.pageY};

dojo.debug("mouse x = "+this._mouse.x+" y = "+this._mouse.y+" and target: "+e.target+" with coordinates: ("+this._getPosition(dojo.byId(e.target)).x+", "+this._getPosition(dojo.byId(e.target)).y+") ");

if(this._isOverElement(this._connectNode,e)||this._isOverElement(this.domNode,e)){

dojo.debug("on mouse on hover: {x = "+this._mouse.x+", y = "+this._mouse.y+" }");

this._onHover(e);

}else{

dojo.debug("on mousemove unhover "+e+" and target is: "+e.target+" unHovering with mouse = {x = "+this._mouse.x+", y = "+this._mouse.y+" }");

this._onUnHover(e);

}

}});

dojo.provide("wc.widget.RefreshArea");

dojo.widget.defineWidget("wc.widget.RefreshArea",dojo.widget.HtmlWidget,{isContainer:true,controllerId:"",objectId:"",controller:null,initialize:function(){

this.controller=wc.render.getRefreshControllerById(this.controllerId);

if(!this.controller){

throw new Error("Could not locate RefreshController \""+this.controllerId+"\".");

}

this.controller.addWidget(this);

this.containerNode=this.domNode;

},destroy:function(){

this.controller.removeWidget(this);

return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments);

},refresh:function(_9f8){

if(!_9f8){

_9f8={};

}

_9f8.objectId=this.objectId;

this.controller.refresh(this,_9f8);

},setInnerHTML:function(html){

this.destroyChildren();

this.containerNode.innerHTML=html;

var _9fa=new dojo.xml.Parse();

var frag=_9fa.parseElement(this.containerNode,null,true);

dojo.widget.getParser().createSubComponents(frag,this);

}});

dojo.provide("wc.widget.IMCProductQuickView");

dojo.provide("wc.widget.IMCBaseContent");

dojo.provide("wc.widget.IMCToolTipContent");

dojo.widget.defineWidget("wc.widget.IMCProductQuickView",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"containerNode\">\n<table dojoAttachPoint=\"DAPProductQuickViewTable\" cellpadding=\"1\" cellspacing=\"1\" border=\"0\" class=\"pqv_table\">\n<tr> \n	<td class=\"pqv_img_view\">\n		<div dojoAttachPoint = \"DAPCatalogEntryContainer\" style=\"display:block;\">\n			<a dojoAttachPoint = \"DAPCatalogEntryThumbnailImageLink\"  >\n				<span>\n					<img id = \"DAPCatalogEntryThumbnailImageConnectId\" dojoAttachPoint = \"DAPCatalogEntryThumbnailImage\"  alt=\"\" border=\"0\"/>\n				</span>\n			</a><div>\n			<a dojoAttachPoint = \"DAPCatalogEntryNameLink\" >\n				<span dojoAttachPoint = \"DAPCatalogEntryName\" class=\"pqv_productName\">\n				</span>\n			</a></div>\n			<br/>\n			<span dojoAttachPoint = \"DAPSKU\" class=\"pqv_text\"></span>\n			<span dojoAttachPoint = \"DAPShortDescription\" class=\"pqv_text\"></span>\n			<a dojoAttachPoint = \"DAPPriceImageLink\" ><img dojoAttachPoint = \"DAPPriceImage\"  alt='' width=\"1\" height=\"1\" border=\"0\" />\n			</a>\n			<span dojoAttachPoint = \"DAPPriceRange\" class=\"pqv_price\"></span>\n			<span class=\"pqv_img_border\">\n					<img dojoAttachPoint = \"DAPDiscountImage\"  border = \"0\"/>\n					<a  dojoAttachPoint = \"DAPDiscountLink\"  class = \"pqv_discount\">\n					<span dojoAttachPoint = \"DAPDiscountDetails\" class = \"pqv_discount\"></span>\n					</a>\n			</span>\n			<span dojoAttachPoint = \"DAPAdditionalText\"></span>\n		</div>\n	</td>\n</tr>\n</table>\n</div>",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n	.pqv_table {\n		font-family: Verdana, Arial,sans-serif; \n		font-size: 11px; \n		color:#444444; \n		width: 100%;\n	}\n	.pqv_img_view {\n		text-align : center; \n		width:120px;\n		display:block;\n		padding-top:12px;\n		padding-bottom:10px;\n		vertical-align:top;\n	}\n\n	.pqv_price {\n		font-size:  12px; \n		color: #444444; \n		font-family: arial, helvetica, sans-serif; \n		text-align: right;\n	}\n\n	.pqv_discountPrice{\n		font-size:  9pt; \n		color: #9B9B9B; \n		font-family: arial, helvetica, sans-serif;\n	}\n	.pqv_productName{\n		font-size:  11px; \n		color: #427DBE; \n		font-family: Verdana, Arial,sans-serif;\n		font-weight: bold;\n	}\n	.pqv_discount {\n		font-family:Verdana,Arial,sans-serif; \n		font-size:11px; \n		font-weight:bold; \n		color:#427DBE; \n		vertical-align:middle;\n	}\n	.pqv_text{\n		color:#174D8A;\n		font-size: 11px;\n	}",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n	.pqv_table {\n		font-family: Verdana, Arial,sans-serif; \n		font-size: 11px; \n		color:#444444; \n		width: 100%;\n	}\n	.pqv_img_view {\n		text-align : center; \n		width:120px;\n		display:block;\n		padding-top:12px;\n		padding-bottom:10px;\n		vertical-align:top;\n	}\n\n	.pqv_price {\n		font-size:  12px; \n		color: #444444; \n		font-family: arial, helvetica, sans-serif; \n		text-align: right;\n	}\n\n	.pqv_discountPrice{\n		font-size:  9pt; \n		color: #9B9B9B; \n		font-family: arial, helvetica, sans-serif;\n	}\n	.pqv_productName{\n		font-size:  11px; \n		color: #427DBE; \n		font-family: Verdana, Arial,sans-serif;\n		font-weight: bold;\n	}\n	.pqv_discount {\n		font-family:Verdana,Arial,sans-serif; \n		font-size:11px; \n		font-weight:bold; \n		color:#427DBE; \n		vertical-align:middle;\n	}\n	.pqv_text{\n		color:#174D8A;\n		font-size: 11px;\n	}",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickView.css"),isContainer:true,widgetType:"ProductQuickView",identifier:"",defaultContent:false,dragAndDrop:true,dragSourceProperties:"",CatalogEntryThumbnailImageLink:"",CatalogEntryThumbnailImageSrc:"",CatalogEntryThumbnailImageAlt:"",CatalogEntryNameLink:"",CatalogEntryName:"",PriceImageLink:"",PriceImageSrc:"",PriceRange:"",SKU:"",ShortDescription:"",DiscountImage:"",DiscountLink:"",DiscountDetails:"",AdditionalText:"",catentryId:"",dragSourceType:"*",additionalProperties:"",DAPCatalogEntryContainer:null,DAPCatalogEntryThumbnailImageLink:null,DAPCatalogEntryThumbnailImage:null,DAPCatalogEntryNameLink:null,DAPCatalogEntryName:null,DAPPriceImageLink:null,DAPPriceImage:null,DAPPriceRange:null,DAPSKU:null,DAPShortDescription:null,DAPDiscountImage:null,DAPDiscountLink:null,DAPDiscountDetails:null,DAPAdditionalText:null,DAPProductQuickViewTable:null,fillInTemplate:function(){

if(this.defaultContent){

this.DAPCatalogEntryContainer.style.display="block";

this.DAPCatalogEntryThumbnailImageLink.href=this.CatalogEntryThumbnailImageLink;

this.DAPCatalogEntryThumbnailImage.src=this.CatalogEntryThumbnailImageSrc;

this.DAPCatalogEntryThumbnailImage.alt=this.CatalogEntryThumbnailImageAlt;

this.DAPCatalogEntryThumbnailImage.id=this.catentryId;

this.DAPCatalogEntryNameLink.href=this.CatalogEntryNameLink;

this.DAPCatalogEntryName.innerHTML=this.CatalogEntryName;

this.DAPPriceImageLink.href=this.PriceImageLink;

this.DAPPriceImage.src=this.PriceImageSrc;

this.DAPPriceRange.innerHTML=this.insertWithBreak(this.PriceRange);

this.DAPSKU.innerHTML=this.insertWithBreak(this.SKU);

this.DAPShortDescription.innerHTML=this.insertWithBreak(this.ShortDescription);

this.DAPDiscountImage.src=this.DiscountImage;

this.DAPDiscountLink.href=this.insertWithBreak(this.DiscountLink);

this.DAPDiscountDetails.innerHTML=this.insertWithBreak(this.DiscountDetails);

this.DAPAdditionalText.innerHTML=this.insertWithBreak(this.AdditionalText);

}else{

this.DAPCatalogEntryContainer.style.display="none";

dojo.dom.removeChildren(this.DAPProductQuickViewTable);

}

this.addDragDropFeature();

var _9fc=new Array();

var _9fd=new Array();

_9fc=this.additionalProperties.split(",");

for(var i=0;i<_9fc.length;i++){

_9fd=_9fc[i].split("=");

if(_9fd.length==2){

this[_9fd[0]]=_9fd[1];

}

}

},insertWithBreak:function(_9ff){

if(_9ff!=""){

return _9ff+"<br/><br/>";

}

return "";

},addDragDropFeature:function(){

if(this.dragAndDrop&&this.defaultContent){

var _a00=null;

_a00=this.DAPCatalogEntryThumbnailImageLink;

_a00.name=this.DAPCatalogEntryName.innerHTML;

_a00.price=this.DAPPriceRange.innerHTML;

_a00.catentryId=this.catentryId;

var _a01=new Array();

var _a02=new Array();

_a01=this.dragSourceProperties.split(",");

for(var i=0;i<_a01.length;i++){

_a02=_a01[i].split("=");

if(_a02.length==2){

_a00[_a02[0]]=_a02[1];

}

}

new dojo.dnd.HtmlDragSource(_a00,this.dragSourceType);

}

}});

dojo.widget.defineWidget("wc.widget.IMCBaseContent",dojo.widget.HtmlWidget,{catentryId:"",dragSourceId:"",isContainer:true,widgetType:"BaseContent",dragSourceType:"*",dragSourceProperties:"",templateString:"",userInnerHtml:"",dragAndDrop:true,postCreate:function(){

if(this.userInnerHtml!=""){

this.domNode.innerHTML=this.userInnerHtml;

}

if(this.domNode.innerHTML!=null&&this.domNode.innerHTML!=""){

if(this.dragAndDrop){

var _a04=null;

_a04=dojo.byId(this.dragSourceId);

_a04.catentryId=this.catentryId;

var _a05=new Array();

var _a06=new Array();

_a05=this.dragSourceProperties.split(",");

for(var i=0;i<_a05.length;i++){

_a06=_a05[i].split("=");

if(_a06.length==2){

_a04[_a06[0]]=_a06[1];

}

}

new dojo.dnd.HtmlDragSource(_a04,this.dragSourceType);

}

}

}});

dojo.widget.defineWidget("wc.widget.IMCToolTipContent",dojo.widget.Tooltip,{connectId:"",userInnerHtml:"",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n.dojoTooltip {\n	color: black;\n	position: absolute;\n	z-index: 10;\n}",templateCssString:"/**\n *-------------------------------------------------------------------\n * Licensed Materials - Property of IBM\n *\n * WebSphere Commerce\n *\n * (c) Copyright IBM Corp. 2007\n *\n * US Government Users Restricted Rights - Use, duplication or\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\n *\n *-------------------------------------------------------------------\n */\n \n.dojoTooltip {\n	color: black;\n	position: absolute;\n	z-index: 10;\n}",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickViewToolTip.css"),fillInTemplate:function(args,frag){

if(this.userInnerHtml!=""){

this.containerNode.innerHTML=this.userInnerHtml;

}

wc.widget.ToolTipContent.superclass.fillInTemplate.call(this,args,frag);

},_getPosition:function(_a0a){

var pos={x:0,y:0};

if(!_a0a.offsetParent){

return pos;

}

pos.x=_a0a.offsetLeft;

pos.y=_a0a.offsetTop;

while(_a0a=_a0a.offsetParent){

pos.x+=_a0a.offsetLeft;

pos.y+=_a0a.offsetTop;

}

return pos;

},_isOverElement:function(_a0c,e){

_a0c=dojo.byId(_a0c);

if(e.target.tagName.toLowerCase()=="option"||e.target.tagName.toLowerCase()=="select"){

var _a0e=this._getPosition(e.target.offsetParent);

dojo.debug("mouse  = ("+_a0e.x+" , "+_a0e.y+") ");

}else{

var _a0e=dojo.html.getCursorPosition(e);

}

var bb=dojo.html.getBorderBox(_a0c);

var _a10=dojo.html.getAbsolutePosition(_a0c,true,dojo.html.boxSizing.BORDER_BOX);

var top=_a10.y;

var _a12=top+bb.height;

var left=_a10.x;

var _a14=left+bb.width;

dojo.debug("**** left = "+left+", right = "+_a14+", top = "+top+", bottom = "+_a12+" mouse: "+_a0e.x+", "+_a0e.y+") ");

dojo.debug("**** mouse x y = ("+_a0e.x+", "+_a0e.y+") ");

return (_a0e.x>=left&&_a0e.x<=_a14&&_a0e.y>=top&&_a0e.y<=_a12);

},_onHover:function(e){

if(this._hover){

return;

}

this._hover=true;

},_onMouseMove:function(e){

this._mouse={x:e.pageX,y:e.pageY};

dojo.debug("mouse x = "+this._mouse.x+" y = "+this._mouse.y+" and target: "+e.target+" with coordinates: ("+this._getPosition(dojo.byId(e.target)).x+", "+this._getPosition(dojo.byId(e.target)).y+") ");

if(this._isOverElement(this._connectNode,e)||this._isOverElement(this.domNode,e)){

dojo.debug("on mouse on hover: {x = "+this._mouse.x+", y = "+this._mouse.y+" }");

this._onHover(e);

}else{

dojo.debug("on mousemove unhover "+e+" and target is: "+e.target+" unHovering with mouse = {x = "+this._mouse.x+", y = "+this._mouse.y+" }");

}

}});

Open in new window

0
 

Author Comment

by:vvsrk76
ID: 22601185
I am not using any .png
Its ajax call .
<a style="cursor:pointer;" onclick="javascript:showTooltip('AltPartTooltip<c:out value="${status.count}" />')" id="AltParts<c:out value="${status.count}" />">Yes</a>

			        				<div dojoType="IMCToolTipContent" widgetId="AltPartTooltip<c:out value="${status.count}" />" connectId = "AltParts<c:out value="${status.count}" />" 

			        				 href="AjaxAlternatePartsDisplayURL?ajaxCall=true&catRefNum=<c:out value="${product.itemBean.catalogEntryReferenceNumber}" />&catEntryIds=<c:out value="${catEntryIds}" />&index=<c:out value="${status.count}" />" 

			        				 showDelay="1000" style="display:none" toggle="fade" toggleDuration="250" executeScripts="true"> 

			        				</div>

Open in new window

0
 
LVL 14

Expert Comment

by:EMB01
ID: 22601214
Right, but the graphics/ CSS have to come from somewhere. Post the data of your <head> tag, please.
0
 

Author Comment

by:vvsrk76
ID: 22601277

<tiles:put name="head">

	<script language="javascript">

		djConfig = { preventBackButtonFix: false};		

	</script> 

	<script type="text/javascript" src="/wcsstore/dojo041/dojo.js"></script>

<script type="text/javascript">

      dojo.registerModulePath("wc", "wc");  

 

       //AJAX request support

      dojo.require("dojo.io.*");

</script>
 

	

	<script type="text/javascript">
 

	 //product quick view with tooltip widget 

	 dojo.require("wc.widget.ProductQuickView");  

	 dojo.require("wc.widget.BaseContent");

	 dojo.require("wc.widget.ToolTipContent");

	

	 //IMC custom tooltip widgets 

	 dojo.require("wc.widget.IMCProductQuickView");   

	 dojo.require("wc.widget.IMCBaseContent");

	 dojo.require("wc.widget.IMCToolTipContent"); 

	 

	 

	 //publish and subscribe event support

	 dojo.require("dojo.event.*");

</tiles:put>

Open in new window

0
 
LVL 14

Expert Comment

by:EMB01
ID: 22601385
Okay, this should work... Open up tooltip.js from your toolkit (not sure exactly where it is in folder hierarchy) and find the following line:
//Tooltip.showMethod(tooltip, {duration:Tooltip.fade});

Change it to this:
tooltip.style.display = block;

0
 

Author Comment

by:vvsrk76
ID: 22601392
you mean dojo.js file
0
 

Author Comment

by:vvsrk76
ID: 22601418
This is the one I have Tooltip.js
/*

	Copyright (c) 2004-2006, The Dojo Foundation

	All Rights Reserved.
 

	Licensed under the Academic Free License version 2.1 or above OR the

	modified BSD license. For more information on Dojo licensing, see:
 

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

*/
 

dojo.provide("dojo.widget.Tooltip");
 

dojo.require("dojo.widget.ContentPane");

dojo.require("dojo.widget.PopupContainer");

dojo.require("dojo.uri.Uri");

dojo.require("dojo.widget.*");

dojo.require("dojo.event.*");

dojo.require("dojo.html.style");

dojo.require("dojo.html.util");
 

dojo.widget.defineWidget(

	"dojo.widget.Tooltip",

	[dojo.widget.ContentPane, dojo.widget.PopupContainerBase],

	{

		// summary

		//		Pops up a tooltip (a help message) when you hover over a node
 

		// caption: String

		//		Text to display in the tooltip.

		//		Can also be specified as innerHTML (when creating the widget from markup).

		caption: "",

		

		// showDelay: Integer

		//		Number of milliseconds to wait after hovering over the object, before

		//		the tooltip is displayed.

		showDelay: 500,

		

		// hideDelay: Integer

		//		Number of milliseconds to wait after moving mouse off of the object (or

		//		off of the tooltip itself), before erasing the tooltip

		hideDelay: 100,

		

		// connectId: String

		//		Id of domNode to attach the tooltip to.

		//		(When user hovers over specified dom node, the tooltip will appear.)

		connectId: "",
 

		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");
 

			//copy style from input node to output node

			var source = this.getFragNodeRef(frag);

			dojo.html.copyStyle(this.domNode, source);
 

			//apply the necessary css rules to the node so that it can popup

			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};
 

			// Start tracking mouse movements, so we know when to cancel timers or erase the tooltip

			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 {

				// mouse has been moved off the element/tooltip

				// note: can't use onMouseOut to detect this because the "explode" effect causes

				// spurious onMouseOut events (due to interference from outline), w/out corresponding _onMouseOver

				this._onUnHover(e);

			}

		},
 

		_onHover: function(e) {

			if(this._hover){ return; }

			this._hover=true;
 

			// If the tooltip has been scheduled to be erased, cancel that timer

			// since we are hovering over element/tooltip again

			if(this._hideTimer) {

				clearTimeout(this._hideTimer);

				delete this._hideTimer;

			}

			

			// If tooltip not showing yet then set a timer to show it shortly

			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 we aren't showing the tooltip, then we can stop tracking the mouse now;

			// otherwise must track the mouse until tooltip disappears

			if(!this.isShowingNow){

				dojo.event.disconnect(document.documentElement, "onmousemove", this, "_onMouseMove");

				this._tracking=false;

			}

		},
 

		open: function() {

			// summary: display the tooltip; usually not called directly.
 

			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() {

			// summary: hide the tooltip; usually not called directly.

			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){

				// the tooltip has changed size due to downloaded contents, so reposition it

				this._position();

			}

		},
 

		checkSize: function(){

			// Override checkSize() in HtmlWidget.

			// checkSize() is called when the user has resized the browser window,

			// but that doesn't affect this widget (or this widget's children)

			// so it can be safely ignored

		},
 

		uninitialize: function(){

			this.close();

			dojo.event.disconnect(this._connectNode, "onmouseover", this, "_onMouseOver");

		}
 

	}

);

Open in new window

0
 

Author Comment

by:vvsrk76
ID: 22601436
Please help me
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22601466
This must be a newer release. I think the problem is definitely a .PNG issue as IE doesn't render them well. Please post the contents of the file at src/widget/templates/TooltipTemplate.css so I can try to apply the hack described above. By the way, the quotes weren't rendered properly on my post, the line should be:
tooltip.style.display = "block";
0
 

Author Comment

by:vvsrk76
ID: 22601585

.dojoTooltip {

	border: solid black 1px;

	background: beige;

	color: black;

	position: absolute;

	font-size: small;

	padding: 2px 2px 2px 2px;

	z-index: 10;

	display: block;

}

Open in new window

0
 
LVL 14

Expert Comment

by:EMB01
ID: 22601632
Try two things for me:
First, try adding this line to the .dojoTooltip CSS you just posted:
display: block;

Next, try adding the following inline CSS to your webpage:
.pngholder{
                width:100px;
                height:100px;
                filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='imagelocation');
}

.pngalpha {
                filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
                background:url(imagelocation) no-repeat;
                width:100px;
                height:100px;
}

Then, put the tooltip code (same as from your comment ID 22601185) inside of this:
<div class="pngholder"><div class="pngalpha">### PUT YOUR CODE HERE ###</div></div>
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 14

Expert Comment

by:EMB01
ID: 22601636
Scratch option one, I just noticed it's already there... Proceed to option two from the previous post.
0
 

Author Comment

by:vvsrk76
ID: 22605422
imagelocation means
0
 

Author Comment

by:vvsrk76
ID: 22605456
no luck for me
Please help me
0
 

Author Comment

by:vvsrk76
ID: 22605499
No luck
<div class="pngholder"><div class="pngalpha">

						    	    				<a style="cursor:pointer;" id="InventoryView<c:out value="${status.count}" />" onclick="javascript:showTooltip('InvTooltip<c:out value="${status.count}" />')">

						    	    					Alt:Yes

						    	    				</a>

						    	    				<div dojoType="IMCToolTipContent" widgetId="InvTooltip<c:out value="${status.count}" />" connectId = "InventoryView<c:out value="${status.count}" />" 

						    	    				 href="AjaxAdditionalInventoryURL?ajaxCall=true&quantity=<c:out value="${allocateQuant}" />&inventoryListByBranch=<c:out value="${item.priceBean.inventoryListByBranch}" />&description=<c:out value="${item.description.shortDescription}" escapeXml='false'/>&position=<c:out value="${status.count}" />&partNumber=<c:out value="${item.partNumber}" />&catentryId=<c:out value="${item.catalogEntryReferenceNumber}" />"

						    	    				 showDelay="1000" style="display:none" toggle="fade" toggleDuration="250" executeScripts="true">						    	    		 		

						    	    		 		</div>

						    	    		 		</div>

						    	    		 		</div>

Open in new window

0
 
LVL 14

Expert Comment

by:EMB01
ID: 22605619
So you added the following CSS in the <head> section of your page that displays results:
.pngholder{
                width:100px;
                height:100px;
                filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='imagelocation');
}

.pngalpha {
                filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
                background:url(imagelocation) no-repeat;
                width:100px;
                height:100px;
}

Then, you replaced the old AJAX call with the new one:
<div class="pngholder"><div class="pngalpha">
<a style="cursor:pointer;" onclick="javascript:showTooltip('AltPartTooltip<c:out value="${status.count}" />')" id="AltParts<c:out value="${status.count}" />">Yes</a>
                                                  <div dojoType="IMCToolTipContent" widgetId="AltPartTooltip<c:out value="${status.count}" />" connectId = "AltParts<c:out value="${status.count}" />"
                                                   href="AjaxAlternatePartsDisplayURL?ajaxCall=true&catRefNum=<c:out value="${product.itemBean.catalogEntryReferenceNumber}" />&catEntryIds=<c:out value="${catEntryIds}" />&index=<c:out value="${status.count}" />"
                                                   showDelay="1000" style="display:none" toggle="fade" toggleDuration="250" executeScripts="true">
                                                  </div>
</div></div>
0
 

Author Comment

by:vvsrk76
ID: 22605642
Yes Same thing I did
'imagelocation' means
0
 

Author Comment

by:vvsrk76
ID: 22605659
I added those both in my css file
mainStyle.css
.pngholder{

                width:100px;

                height:100px;

                filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wcsstore/imc/images/arrow_down.gif');

}
 

.pngalpha {

                filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);

                background:url('/wcsstore/imc/images/arrow_down.gif') no-repeat;

                width:100px;

                height:100px;

}
 

.testPNG {

	position: relative; 

	top: 100px;

	left: 100px;

	width: 283px;

	height: 334px; }
 

dl {

 	color: #FF00FF;

	margin: 15px 0px 15px 0px; }

 

html {

	height: 100%; }

	

body a:hover {

	color: #141bde; }

body a {

	color: #141bde; }

body p {

	padding: 0px 0px 15px 0px;

	margin: 0px 0px 0px 0px;

	color: #5a5a5a;

	line-height: 18px; }

body {

	margin: 0px;

	height: 100%; 

	font-family: verdana,arial,helvetica;

	font-size: 12px;

	line-height: 14px;

	background-color: #3b3b3b;

	background-repeat: repeat-x;

	background-image:url('/wcsstore/imc/images/bg_main.jpg');

	background-attachment: fixed; }

Open in new window

0
 
LVL 14

Expert Comment

by:EMB01
ID: 22605666
If you did exactly that and it didn't work. I know a few other ways to fix .PNG transparency in IE - which seems to almost certainly be the problem here.
0
 

Author Comment

by:vvsrk76
ID: 22605724
Can you please help me in this?
its urgent

Thanks
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22605801
We really need to find where the .PNG image is. Then, once we find it, add this style to it:
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='myimage.png',sizingMethod='scale');

Could you give me a quick run-down of the files in your src/widget/templates/ folder, unless you have a better idea as to where this .PNG image style is?
0
 

Author Comment

by:vvsrk76
ID: 22606003
Editor2,buttons,images
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22606080
Cool, probably the image is somewhere in there... We have to know what the image is called. Obviously, it's not being referenced from the following script:
.dojoTooltip {
      border: solid black 1px;
      background: beige;
      color: black;
      position: absolute;
      font-size: small;
      padding: 2px 2px 2px 2px;
      z-index: 10;
      display: block;
}

So, it must be referenced from another script. Either we find that script, or you can simply display a list of the images from the images folder and we can take a look at the .PNG options. I would guess the image is referenced from this file: dojo.html.style. Post the contents of that file and the image folder, please. Meanwhile, I see if I can find where that .PNG image is myself.
0
 

Author Comment

by:vvsrk76
ID: 22606196
I have only those folders
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22606278
You mean there are no files in those folders? I just need the files in the image folder. Otherwise, I'm not sure if you can choose a a tooltip theme without the transparent borders?
0
 

Author Comment

by:vvsrk76
ID: 22606333
Which file you want?
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22606369
I want to know if there are any .PNG files in the images folder you've listed. The quick fix would be to not use the fade animation or not use transparent shadowing.
0
 

Author Comment

by:vvsrk76
ID: 22606394
dbMonthBg.png,dbMonthBg2.png,incrementMonth.png,slider-button.png

slider-button-horz.png, slider-button-vert.png, slider_down_arrow.png, slider_left_arrow.png

slider_right_arrow.png, slider_up_arrow.png
0
 

Author Comment

by:vvsrk76
ID: 22606445
clock.png, combo_box_arrow.png,decrementMonth.png, dpCurveBL.png, dpCurveBR.png,

dpCurveTL.png, dpCurveTR.png
0
 
LVL 14

Accepted Solution

by:
EMB01 earned 500 total points
ID: 22606716
Well, it's hard to say which of those is the background shadow that is causing problems in IE. If you can't choose a different theme (one without the alpha/ shadow .PNG) I recommend you make your own, this way you can guarantee browser compatibility. It looks pretty simple - of course you'll want to customize it. Check this link out:
http://blog.midstride.com/2008/08/25/creating-custom-tooltips-by-extending-dojos-dijits-in-8-steps/

Alternatively, try changing the toggle parameter of your AJAX call to "explode" or "none" instead of "fade." That may fix it, too. Since we can't seem to find the image to convert it to 8-bit, these are the best options I can think of.
0
 
LVL 14

Expert Comment

by:EMB01
ID: 22606736
Of course, these could be the images we want:
dpCurveBL.png, dpCurveBR.png, dpCurveTL.png, dpCurveTR.png

Check them out, if they are the shadow/ background images from your tooltip, convert them to 8-bit .PNG's which are supported by IE.
0
 

Author Comment

by:vvsrk76
ID: 22606810
I am using dojo.js file
/*

	Copyright (c) 2004-2006, The Dojo Foundation

	All Rights Reserved.
 

	Licensed under the Academic Free License version 2.1 or above OR the

	modified BSD license. For more information on Dojo licensing, see:
 

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

*/
 

/*

	This is a compiled version of Dojo, built for deployment and not for

	development. To get an editable version, please visit:
 

		http://dojotoolkit.org
 

	for documentation and information on getting the source.

*/
 

if(typeof dojo=="undefined"){

var dj_global=this;

var dj_currentContext=this;

function dj_undef(_1,_2){

return (typeof (_2||dj_currentContext)[_1]=="undefined");

}

if(dj_undef("djConfig",this)){

var djConfig={};

}

if(dj_undef("dojo",this)){

var dojo={};

}

dojo.global=function(){

return dj_currentContext;

};

dojo.locale=djConfig.locale;

dojo.version={major:0,minor:4,patch:1,flag:"",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=["ROOT","es-es","es","it-it","pt-br","de","fr-fr","zh-cn","pt","en-us","zh","fr","zh-tw","it","en-gb","xx","de-de","ko-kr","ja-jp","ko","en","ja"];

dojo.hostenv.registerNlsPrefix=function(){

dojo.registerModulePath("nls","nls");

};

dojo.hostenv.preloadLocalizations=function(){

if(dojo.hostenv.localesGenerated){

dojo.hostenv.registerNlsPrefix();

function preload(_79){

_79=dojo.hostenv.normalizeLocale(_79);

dojo.hostenv.searchLocalePath(_79,true,function(loc){

for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){

if(dojo.hostenv.localesGenerated[i]==loc){

dojo["require"]("nls.dojo_"+loc);

return true;

}

}

return false;

});

}

preload();

var _7c=djConfig.extraLocale||[];

for(var i=0;i<_7c.length;i++){

preload(_7c[i]);

}

}

dojo.hostenv.preloadLocalizations=function(){

};

};

dojo.requireLocalization=function(_7e,_7f,_80,_81){

dojo.hostenv.preloadLocalizations();

var _82=dojo.hostenv.normalizeLocale(_80);

var _83=[_7e,"nls",_7f].join(".");

var _84="";

if(_81){

var _85=_81.split(",");

for(var i=0;i<_85.length;i++){

if(_82.indexOf(_85[i])==0){

if(_85[i].length>_84.length){

_84=_85[i];

}

}

}

if(!_84){

_84="ROOT";

}

}

var _87=_81?_84:_82;

var _88=dojo.hostenv.findModule(_83);

var _89=null;

if(_88){

if(djConfig.localizationComplete&&_88._built){

return;

}

var _8a=_87.replace("-","_");

var _8b=_83+"."+_8a;

_89=dojo.hostenv.findModule(_8b);

}

if(!_89){

_88=dojo.hostenv.startPackage(_83);

var _8c=dojo.hostenv.getModuleSymbols(_7e);

var _8d=_8c.concat("nls").join("/");

var _8e;

dojo.hostenv.searchLocalePath(_87,_81,function(loc){

var _90=loc.replace("-","_");

var _91=_83+"."+_90;

var _92=false;

if(!dojo.hostenv.findModule(_91)){

dojo.hostenv.startPackage(_91);

var _93=[_8d];

if(loc!="ROOT"){

_93.push(loc);

}

_93.push(_7f);

var _94=_93.join("/")+".js";

_92=dojo.hostenv.loadPath(_94,null,function(_95){

var _96=function(){

};

_96.prototype=_8e;

_88[_90]=new _96();

for(var j in _95){

_88[_90][j]=_95[j];

}

});

}else{

_92=true;

}

if(_92&&_88[_90]){

_8e=_88[_90];

}else{

_88[_90]=_8e;

}

if(_81){

return true;

}

});

}

if(_81&&_82!=_84){

_88[_82.replace("-","_")]=_88[_84.replace("-","_")];

}

};

(function(){

var _98=djConfig.extraLocale;

if(_98){

if(!_98 instanceof Array){

_98=[_98];

}

var req=dojo.requireLocalization;

dojo.requireLocalization=function(m,b,_9c,_9d){

req(m,b,_9c,_9d);

if(_9c){

return;

}

for(var i=0;i<_98.length;i++){

req(m,b,_98[i],_9d);

}

};

}

})();

}

if(typeof window!="undefined"){

(function(){

if(djConfig.allowQueryConfig){

var _9f=document.location.toString();

var _a0=_9f.split("?",2);

if(_a0.length>1){

var _a1=_a0[1];

var _a2=_a1.split("&");

for(var x in _a2){

var sp=_a2[x].split("=");

if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){

var opt=sp[0].substr(9);

try{

djConfig[opt]=eval(sp[1]);

}

catch(e){

djConfig[opt]=sp[1];

}

}

}

}

}

if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){

var _a6=document.getElementsByTagName("script");

var _a7=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;

for(var i=0;i<_a6.length;i++){

var src=_a6[i].getAttribute("src");

if(!src){

continue;

}

var m=src.match(_a7);

if(m){

var _ab=src.substring(0,m.index);

if(src.indexOf("bootstrap1")>-1){

_ab+="../";

}

if(!this["djConfig"]){

djConfig={};

}

if(djConfig["baseScriptUri"]==""){

djConfig["baseScriptUri"]=_ab;

}

if(djConfig["baseRelativePath"]==""){

djConfig["baseRelativePath"]=_ab;

}

break;

}

}

}

var dr=dojo.render;

var drh=dojo.render.html;

var drs=dojo.render.svg;

var dua=(drh.UA=navigator.userAgent);

var dav=(drh.AV=navigator.appVersion);

var t=true;

var f=false;

drh.capable=t;

drh.support.builtin=t;

dr.ver=parseFloat(drh.AV);

dr.os.mac=dav.indexOf("Macintosh")>=0;

dr.os.win=dav.indexOf("Windows")>=0;

dr.os.linux=dav.indexOf("X11")>=0;

drh.opera=dua.indexOf("Opera")>=0;

drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);

drh.safari=dav.indexOf("Safari")>=0;

var _b3=dua.indexOf("Gecko");

drh.mozilla=drh.moz=(_b3>=0)&&(!drh.khtml);

if(drh.mozilla){

drh.geckoVersion=dua.substring(_b3+6,_b3+14);

}

drh.ie=(document.all)&&(!drh.opera);

drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;

drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;

drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;

drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;

var cm=document["compatMode"];

drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;

dojo.locale=dojo.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();

dr.vml.capable=drh.ie;

drs.capable=f;

drs.support.plugin=f;

drs.support.builtin=f;

var _b5=window["document"];

var tdi=_b5["implementation"];

if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){

drs.capable=t;

drs.support.builtin=t;

drs.support.plugin=f;

}

if(drh.safari){

var tmp=dua.split("AppleWebKit/")[1];

var ver=parseFloat(tmp.split(" ")[0]);

if(ver>=420){

drs.capable=t;

drs.support.builtin=t;

drs.support.plugin=f;

}

}else{

}

})();

dojo.hostenv.startPackage("dojo.hostenv");

dojo.render.name=dojo.hostenv.name_="browser";

dojo.hostenv.searchIds=[];

dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];

dojo.hostenv.getXmlhttpObject=function(){

var _b9=null;

var _ba=null;

try{

_b9=new XMLHttpRequest();

}

catch(e){

}

if(!_b9){

for(var i=0;i<3;++i){

var _bc=dojo.hostenv._XMLHTTP_PROGIDS[i];

try{

_b9=new ActiveXObject(_bc);

}

catch(e){

_ba=e;

}

if(_b9){

dojo.hostenv._XMLHTTP_PROGIDS=[_bc];

break;

}

}

}

if(!_b9){

return dojo.raise("XMLHTTP not available",_ba);

}

return _b9;

};

dojo.hostenv._blockAsync=false;

dojo.hostenv.getText=function(uri,_be,_bf){

if(!_be){

this._blockAsync=true;

}

var _c0=this.getXmlhttpObject();

function isDocumentOk(_c1){

var _c2=_c1["status"];

return Boolean((!_c2)||((200<=_c2)&&(300>_c2))||(_c2==304));

}

if(_be){

var _c3=this,_c4=null,gbl=dojo.global();

var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");

_c0.onreadystatechange=function(){

if(_c4){

gbl.clearTimeout(_c4);

_c4=null;

}

if(_c3._blockAsync||(xhr&&xhr._blockAsync)){

_c4=gbl.setTimeout(function(){

_c0.onreadystatechange.apply(this);

},10);

}else{

if(4==_c0.readyState){

if(isDocumentOk(_c0)){

_be(_c0.responseText);

}

}

}

};

}

_c0.open("GET",uri,_be?true:false);

try{

_c0.send(null);

if(_be){

return null;

}

if(!isDocumentOk(_c0)){

var err=Error("Unable to load "+uri+" status:"+_c0.status);

err.status=_c0.status;

err.responseText=_c0.responseText;

throw err;

}

}

catch(e){

this._blockAsync=false;

if((_bf)&&(!_be)){

return null;

}else{

throw e;

}

}

this._blockAsync=false;

return _c0.responseText;

};

dojo.hostenv.defaultDebugContainerId="dojoDebug";

dojo.hostenv._println_buffer=[];

dojo.hostenv._println_safe=false;

dojo.hostenv.println=function(_c8){

if(!dojo.hostenv._println_safe){

dojo.hostenv._println_buffer.push(_c8);

}else{

try{

var _c9=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);

if(!_c9){

_c9=dojo.body();

}

var div=document.createElement("div");

div.appendChild(document.createTextNode(_c8));

_c9.appendChild(div);

}

catch(e){

try{

document.write("<div>"+_c8+"</div>");

}

catch(e2){

window.status=_c8;

}

}

}

};

dojo.addOnLoad(function(){

dojo.hostenv._println_safe=true;

while(dojo.hostenv._println_buffer.length>0){

dojo.hostenv.println(dojo.hostenv._println_buffer.shift());

}

});

function dj_addNodeEvtHdlr(_cb,_cc,fp){

var _ce=_cb["on"+_cc]||function(){

};

_cb["on"+_cc]=function(){

fp.apply(_cb,arguments);

_ce.apply(_cb,arguments);

};

return true;

}

function dj_load_init(e){

var _d0=(e&&e.type)?e.type.toLowerCase():"load";

if(arguments.callee.initialized||(_d0!="domcontentloaded"&&_d0!="load")){

return;

}

arguments.callee.initialized=true;

if(typeof (_timer)!="undefined"){

clearInterval(_timer);

delete _timer;

}

var _d1=function(){

if(dojo.render.html.ie){

dojo.hostenv.makeWidgets();

}

};

if(dojo.hostenv.inFlightCount==0){

_d1();

dojo.hostenv.modulesLoaded();

}else{

dojo.hostenv.modulesLoadedListeners.unshift(_d1);

}

}

if(document.addEventListener){

if(dojo.render.html.opera||(dojo.render.html.moz&&!djConfig.delayMozLoadingFix)){

document.addEventListener("DOMContentLoaded",dj_load_init,null);

}

window.addEventListener("load",dj_load_init,null);

}

if(dojo.render.html.ie&&dojo.render.os.win){

document.attachEvent("onreadystatechange",function(e){

if(document.readyState=="complete"){

dj_load_init();

}

});

}

if(/(WebKit|khtml)/i.test(navigator.userAgent)){

var _timer=setInterval(function(){

if(/loaded|complete/.test(document.readyState)){

dj_load_init();

}

},10);

}

if(dojo.render.html.ie){

dj_addNodeEvtHdlr(window,"beforeunload",function(){

dojo.hostenv._unloading=true;

window.setTimeout(function(){

dojo.hostenv._unloading=false;

},0);

});

}

dj_addNodeEvtHdlr(window,"unload",function(){

dojo.hostenv.unloaded();

if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){

dojo.hostenv.unloaded();

}

});

dojo.hostenv.makeWidgets=function(){

var _d3=[];

if(djConfig.searchIds&&djConfig.searchIds.length>0){

_d3=_d3.concat(djConfig.searchIds);

}

if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){

_d3=_d3.concat(dojo.hostenv.searchIds);

}

if((djConfig.parseWidgets)||(_d3.length>0)){

if(dojo.evalObjPath("dojo.widget.Parse")){

var _d4=new dojo.xml.Parse();

if(_d3.length>0){

for(var x=0;x<_d3.length;x++){

var _d6=document.getElementById(_d3[x]);

if(!_d6){

continue;

}

var _d7=_d4.parseElement(_d6,null,true);

dojo.widget.getParser().createComponents(_d7);

}

}else{

if(djConfig.parseWidgets){

var _d7=_d4.parseElement(dojo.body(),null,true);

dojo.widget.getParser().createComponents(_d7);

}

}

}

}

};

dojo.addOnLoad(function(){

if(!dojo.render.html.ie){

dojo.hostenv.makeWidgets();

}

});

try{

if(dojo.render.html.ie){

document.namespaces.add("v","urn:schemas-microsoft-com:vml");

document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");

}

}

catch(e){

}

dojo.hostenv.writeIncludes=function(){

};

if(!dj_undef("document",this)){

dj_currentDocument=this.document;

}

dojo.doc=function(){

return dj_currentDocument;

};

dojo.body=function(){

return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0];

};

dojo.byId=function(id,doc){

if((id)&&((typeof id=="string")||(id instanceof String))){

if(!doc){

doc=dj_currentDocument;

}

var ele=doc.getElementById(id);

if(ele&&(ele.id!=id)&&doc.all){

ele=null;

eles=doc.all[id];

if(eles){

if(eles.length){

for(var i=0;i<eles.length;i++){

if(eles[i].id==id){

ele=eles[i];

break;

}

}

}else{

ele=eles;

}

}

}

return ele;

}

return id;

};

dojo.setContext=function(_dc,_dd){

dj_currentContext=_dc;

dj_currentDocument=_dd;

};

dojo._fireCallback=function(_de,_df,_e0){

if((_df)&&((typeof _de=="string")||(_de instanceof String))){

_de=_df[_de];

}

return (_df?_de.apply(_df,_e0||[]):_de());

};

dojo.withGlobal=function(_e1,_e2,_e3,_e4){

var _e5;

var _e6=dj_currentContext;

var _e7=dj_currentDocument;

try{

dojo.setContext(_e1,_e1.document);

_e5=dojo._fireCallback(_e2,_e3,_e4);

}

finally{

dojo.setContext(_e6,_e7);

}

return _e5;

};

dojo.withDoc=function(_e8,_e9,_ea,_eb){

var _ec;

var _ed=dj_currentDocument;

try{

dj_currentDocument=_e8;

_ec=dojo._fireCallback(_e9,_ea,_eb);

}

finally{

dj_currentDocument=_ed;

}

return _ec;

};

}

(function(){

if(typeof dj_usingBootstrap!="undefined"){

return;

}

var _ee=false;

var _ef=false;

var _f0=false;

if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){

_ee=true;

}else{

if(typeof this["load"]=="function"){

_ef=true;

}else{

if(window.widget){

_f0=true;

}

}

}

var _f1=[];

if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){

_f1.push("debug.js");

}

if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_ee)&&(!_f0)){

_f1.push("browser_debug.js");

}

var _f2=djConfig["baseScriptUri"];

if((this["djConfig"])&&(djConfig["baseLoaderUri"])){

_f2=djConfig["baseLoaderUri"];

}

for(var x=0;x<_f1.length;x++){

var _f4=_f2+"src/"+_f1[x];

if(_ee||_ef){

load(_f4);

}else{

try{

document.write("<scr"+"ipt type='text/javascript' src='"+_f4+"'></scr"+"ipt>");

}

catch(e){

var _f5=document.createElement("script");

_f5.src=_f4;

document.getElementsByTagName("head")[0].appendChild(_f5);

}

}

}

})();

dojo.provide("dojo.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,_fc,_fd){

var out="";

for(var i=0;i<_fc;i++){

out+=str;

if(_fd&&i<_fc-1){

out+=_fd;

}

}

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.lang.common");

dojo.lang.inherits=function(_10b,_10c){

if(!dojo.lang.isFunction(_10c)){

dojo.raise("dojo.inherits: superclass argument ["+_10c+"] must be a function (subclass: ["+_10b+"']");

}

_10b.prototype=new _10c();

_10b.prototype.constructor=_10b;

_10b.superclass=_10c.prototype;

_10b["super"]=_10c.prototype;

};

dojo.lang._mixin=function(obj,_10e){

var tobj={};

for(var x in _10e){

if((typeof tobj[x]=="undefined")||(tobj[x]!=_10e[x])){

obj[x]=_10e[x];

}

}

if(dojo.render.html.ie&&(typeof (_10e["toString"])=="function")&&(_10e["toString"]!=obj["toString"])&&(_10e["toString"]!=tobj["toString"])){

obj.toString=_10e.toString;

}

return obj;

};

dojo.lang.mixin=function(obj,_112){

for(var i=1,l=arguments.length;i<l;i++){

dojo.lang._mixin(obj,arguments[i]);

}

return obj;

};

dojo.lang.extend=function(_115,_116){

for(var i=1,l=arguments.length;i<l;i++){

dojo.lang._mixin(_115.prototype,arguments[i]);

}

return _115;

};

dojo.inherits=dojo.lang.inherits;

dojo.mixin=dojo.lang.mixin;

dojo.extend=dojo.lang.extend;

dojo.lang.find=function(_119,_11a,_11b,_11c){

if(!dojo.lang.isArrayLike(_119)&&dojo.lang.isArrayLike(_11a)){

dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");

var temp=_119;

_119=_11a;

_11a=temp;

}

var _11e=dojo.lang.isString(_119);

if(_11e){

_119=_119.split("");

}

if(_11c){

var step=-1;

var i=_119.length-1;

var end=-1;

}else{

var step=1;

var i=0;

var end=_119.length;

}

if(_11b){

while(i!=end){

if(_119[i]===_11a){

return i;

}

i+=step;

}

}else{

while(i!=end){

if(_119[i]==_11a){

return i;

}

i+=step;

}

}

return -1;

};

dojo.lang.indexOf=dojo.lang.find;

dojo.lang.findLast=function(_122,_123,_124){

return dojo.lang.find(_122,_123,_124,true);

};

dojo.lang.lastIndexOf=dojo.lang.findLast;

dojo.lang.inArray=function(_125,_126){

return dojo.lang.find(_125,_126)>-1;

};

dojo.lang.isObject=function(it){

if(typeof it=="undefined"){

return false;

}

return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));

};

dojo.lang.isArray=function(it){

return (it&&it instanceof Array||typeof it=="array");

};

dojo.lang.isArrayLike=function(it){

if((!it)||(dojo.lang.isUndefined(it))){

return false;

}

if(dojo.lang.isString(it)){

return false;

}

if(dojo.lang.isFunction(it)){

return false;

}

if(dojo.lang.isArray(it)){

return true;

}

if((it.tagName)&&(it.tagName.toLowerCase()=="form")){

return false;

}

if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){

return true;

}

return false;

};

dojo.lang.isFunction=function(it){

return (it instanceof Function||typeof it=="function");

};

(function(){

if((dojo.render.html.capable)&&(dojo.render.html["safari"])){

dojo.lang.isFunction=function(it){

if((typeof (it)=="function")&&(it=="[object NodeList]")){

return false;

}

return (it instanceof Function||typeof it=="function");

};

}

})();

dojo.lang.isString=function(it){

return (typeof it=="string"||it instanceof String);

};

dojo.lang.isAlien=function(it){

if(!it){

return false;

}

return !dojo.lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));

};

dojo.lang.isBoolean=function(it){

return (it instanceof Boolean||typeof it=="boolean");

};

dojo.lang.isNumber=function(it){

return (it instanceof Number||typeof it=="number");

};

dojo.lang.isUndefined=function(it){

return ((typeof (it)=="undefined")&&(it==undefined));

};

dojo.provide("dojo.lang.extras");

dojo.lang.setTimeout=function(func,_132){

var _133=window,_134=2;

if(!dojo.lang.isFunction(func)){

_133=func;

func=_132;

_132=arguments[2];

_134++;

}

if(dojo.lang.isString(func)){

func=_133[func];

}

var args=[];

for(var i=_134;i<arguments.length;i++){

args.push(arguments[i]);

}

return dojo.global().setTimeout(function(){

func.apply(_133,args);

},_132);

};

dojo.lang.clearTimeout=function(_137){

dojo.global().clearTimeout(_137);

};

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(_140,_141,_142){

with(dojo.parseObjPath(_140,_141,_142)){

return dojo.evalProp(prop,obj,_142);

}

};

dojo.lang.setObjPathValue=function(_143,_144,_145,_146){

dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");

if(arguments.length<4){

_146=true;

}

with(dojo.parseObjPath(_143,_145,_146)){

if(obj&&(_146||(prop in obj))){

obj[prop]=_144;

}

}

};

dojo.provide("dojo.io.common");

dojo.io.transports=[];

dojo.io.hdlrFuncNames=["load","error","timeout"];

dojo.io.Request=function(url,_148,_149,_14a){

if((arguments.length==1)&&(arguments[0].constructor==Object)){

this.fromKwArgs(arguments[0]);

}else{

this.url=url;

if(_148){

this.mimetype=_148;

}

if(_149){

this.transport=_149;

}

if(arguments.length>=4){

this.changeUrl=_14a;

}

}

};

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,_14d,_14e){

},error:function(type,_150,_151,_152){

},timeout:function(type,_154,_155,_156){

},handle:function(type,data,_159,_15a){

},timeoutSeconds:0,abort:function(){

},fromKwArgs:function(_15b){

if(_15b["url"]){

_15b.url=_15b.url.toString();

}

if(_15b["formNode"]){

_15b.formNode=dojo.byId(_15b.formNode);

}

if(!_15b["method"]&&_15b["formNode"]&&_15b["formNode"].method){

_15b.method=_15b["formNode"].method;

}

if(!_15b["handle"]&&_15b["handler"]){

_15b.handle=_15b.handler;

}

if(!_15b["load"]&&_15b["loaded"]){

_15b.load=_15b.loaded;

}

if(!_15b["changeUrl"]&&_15b["changeURL"]){

_15b.changeUrl=_15b.changeURL;

}

_15b.encoding=dojo.lang.firstValued(_15b["encoding"],djConfig["bindEncoding"],"");

_15b.sendTransport=dojo.lang.firstValued(_15b["sendTransport"],djConfig["ioSendTransport"],false);

var _15c=dojo.lang.isFunction;

for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){

var fn=dojo.io.hdlrFuncNames[x];

if(_15b[fn]&&_15c(_15b[fn])){

continue;

}

if(_15b["handle"]&&_15c(_15b["handle"])){

_15b[fn]=_15b.handle;

}

}

dojo.lang.mixin(this,_15b);

}});

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(_163){

if(!(_163 instanceof dojo.io.Request)){

try{

_163=new dojo.io.Request(_163);

}

catch(e){

dojo.debug(e);

}

}

var _164="";

if(_163["transport"]){

_164=_163["transport"];

if(!this[_164]){

dojo.io.sendBindError(_163,"No dojo.io.bind() transport with name '"+_163["transport"]+"'.");

return _163;

}

if(!this[_164].canHandle(_163)){

dojo.io.sendBindError(_163,"dojo.io.bind() transport with name '"+_163["transport"]+"' cannot handle this type of request.");

return _163;

}

}else{

for(var x=0;x<dojo.io.transports.length;x++){

var tmp=dojo.io.transports[x];

if((this[tmp])&&(this[tmp].canHandle(_163))){

_164=tmp;

break;

}

}

if(_164==""){

dojo.io.sendBindError(_163,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");

return _163;

}

}

this[_164].bind(_163);

_163.bindSuccess=true;

return _163;

};

dojo.io.sendBindError=function(_167,_168){

if((typeof _167.error=="function"||typeof _167.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){

var _169=new dojo.io.Error(_168);

setTimeout(function(){

_167[(typeof _167.error=="function")?"error":"handle"]("error",_169,null,_167);

},50);

}else{

dojo.raise(_168);

}

};

dojo.io.queueBind=function(_16a){

if(!(_16a instanceof dojo.io.Request)){

try{

_16a=new dojo.io.Request(_16a);

}

catch(e){

dojo.debug(e);

}

}

var _16b=_16a.load;

_16a.load=function(){

dojo.io._queueBindInFlight=false;

var ret=_16b.apply(this,arguments);

dojo.io._dispatchNextQueueBind();

return ret;

};

var _16d=_16a.error;

_16a.error=function(){

dojo.io._queueBindInFlight=false;

var ret=_16d.apply(this,arguments);

dojo.io._dispatchNextQueueBind();

return ret;

};

dojo.io._bindQueue.push(_16a);

dojo.io._dispatchNextQueueBind();

return _16a;

};

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,_170,last){

var enc=/utf/i.test(_170||"")?encodeURIComponent:dojo.string.encodeAscii;

var _173=[];

var _174=new Object();

for(var name in map){

var _176=function(elt){

var val=enc(name)+"="+enc(elt);

_173[(last==name)?"push":"unshift"](val);

};

if(!_174[name]){

var _179=map[name];

if(dojo.lang.isArray(_179)){

dojo.lang.forEach(_179,_176);

}else{

_176(_179);

}

}

}

return _173.join("&");

};

dojo.io.setIFrameSrc=function(_17a,src,_17c){

try{

var r=dojo.render.html;

if(!_17c){

if(r.safari){

_17a.location=src;

}else{

frames[_17a.name].location=src;

}

}else{

var idoc;

if(r.ie){

idoc=_17a.contentWindow.document;

}else{

if(r.safari){

idoc=_17a.document;

}else{

idoc=_17a.contentWindow;

}

}

if(!idoc){

_17a.location=src;

return;

}else{

idoc.location.replace(src);

}

}

}

catch(e){

dojo.debug(e);

dojo.debug("setIFrameSrc: "+e);

}

};

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 _183=0;

for(var x in obj){

if(obj[x]&&(!tmp[x])){

_183++;

break;

}

}

return _183==0;

}else{

if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){

return obj.length==0;

}

}

},map:function(arr,obj,_187){

var _188=dojo.lang.isString(arr);

if(_188){

arr=arr.split("");

}

if(dojo.lang.isFunction(obj)&&(!_187)){

_187=obj;

obj=dj_global;

}else{

if(dojo.lang.isFunction(obj)&&_187){

var _189=obj;

obj=_187;

_187=_189;

}

}

if(Array.map){

var _18a=Array.map(arr,_187,obj);

}else{

var _18a=[];

for(var i=0;i<arr.length;++i){

_18a.push(_187.call(obj,arr[i]));

}

}

if(_188){

return _18a.join("");

}else{

return _18a;

}

},reduce:function(arr,_18d,obj,_18f){

var _190=_18d;

if(arguments.length==1){

dojo.debug("dojo.lang.reduce called with too few arguments!");

return false;

}else{

if(arguments.length==2){

_18f=_18d;

_190=arr.shift();

}else{

if(arguments.lenght==3){

if(dojo.lang.isFunction(obj)){

_18f=obj;

obj=null;

}

}else{

if(dojo.lang.isFunction(obj)){

var tmp=_18f;

_18f=obj;

obj=tmp;

}

}

}

}

var ob=obj?obj:dj_global;

dojo.lang.map(arr,function(val){

_190=_18f.call(ob,_190,val);

});

return _190;

},forEach:function(_194,_195,_196){

if(dojo.lang.isString(_194)){

_194=_194.split("");

}

if(Array.forEach){

Array.forEach(_194,_195,_196);

}else{

if(!_196){

_196=dj_global;

}

for(var i=0,l=_194.length;i<l;i++){

_195.call(_196,_194[i],i,_194);

}

}

},_everyOrSome:function(_199,arr,_19b,_19c){

if(dojo.lang.isString(arr)){

arr=arr.split("");

}

if(Array.every){

return Array[_199?"every":"some"](arr,_19b,_19c);

}else{

if(!_19c){

_19c=dj_global;

}

for(var i=0,l=arr.length;i<l;i++){

var _19f=_19b.call(_19c,arr[i],i,arr);

if(_199&&!_19f){

return false;

}else{

if((!_199)&&(_19f)){

return true;

}

}

}

return Boolean(_199);

}

},every:function(arr,_1a1,_1a2){

return this._everyOrSome(true,arr,_1a1,_1a2);

},some:function(arr,_1a4,_1a5){

return this._everyOrSome(false,arr,_1a4,_1a5);

},filter:function(arr,_1a7,_1a8){

var _1a9=dojo.lang.isString(arr);

if(_1a9){

arr=arr.split("");

}

var _1aa;

if(Array.filter){

_1aa=Array.filter(arr,_1a7,_1a8);

}else{

if(!_1a8){

if(arguments.length>=3){

dojo.raise("thisObject doesn't exist!");

}

_1a8=dj_global;

}

_1aa=[];

for(var i=0;i<arr.length;i++){

if(_1a7.call(_1a8,arr[i],i,arr)){

_1aa.push(arr[i]);

}

}

}

if(_1a9){

return _1aa.join("");

}else{

return _1aa;

}

},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(_1af,_1b0){

var _1b1=[];

for(var i=_1b0||0;i<_1af.length;i++){

_1b1.push(_1af[i]);

}

return _1b1;

}});

dojo.provide("dojo.lang.func");

dojo.lang.hitch=function(_1b3,_1b4){

var fcn=(dojo.lang.isString(_1b4)?_1b3[_1b4]:_1b4)||function(){

};

return function(){

return fcn.apply(_1b3,arguments);

};

};

dojo.lang.anonCtr=0;

dojo.lang.anon={};

dojo.lang.nameAnonFunc=function(_1b6,_1b7,_1b8){

var nso=(_1b7||dojo.lang.anon);

if((_1b8)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){

for(var x in nso){

try{

if(nso[x]===_1b6){

return x;

}

}

catch(e){

}

}

}

var ret="__"+dojo.lang.anonCtr++;

while(typeof nso[ret]!="undefined"){

ret="__"+dojo.lang.anonCtr++;

}

nso[ret]=_1b6;

return ret;

};

dojo.lang.forward=function(_1bc){

return function(){

return this[_1bc].apply(this,arguments);

};

};

dojo.lang.curry=function(_1bd,func){

var _1bf=[];

_1bd=_1bd||dj_global;

if(dojo.lang.isString(func)){

func=_1bd[func];

}

for(var x=2;x<arguments.length;x++){

_1bf.push(arguments[x]);

}

var _1c1=(func["__preJoinArity"]||func.length)-_1bf.length;

function gather(_1c2,_1c3,_1c4){

var _1c5=_1c4;

var _1c6=_1c3.slice(0);

for(var x=0;x<_1c2.length;x++){

_1c6.push(_1c2[x]);

}

_1c4=_1c4-_1c2.length;

if(_1c4<=0){

var res=func.apply(_1bd,_1c6);

_1c4=_1c5;

return res;

}else{

return function(){

return gather(arguments,_1c6,_1c4);

};

}

}

return gather([],_1bf,_1c1);

};

dojo.lang.curryArguments=function(_1c9,func,args,_1cc){

var _1cd=[];

var x=_1cc||0;

for(x=_1cc;x<args.length;x++){

_1cd.push(args[x]);

}

return dojo.lang.curry.apply(dojo.lang,[_1c9,func].concat(_1cd));

};

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,_1d3,_1d4){

if(!farr.length){

if(typeof _1d4=="function"){

_1d4();

}

return;

}

if((typeof _1d3=="undefined")&&(typeof cb=="number")){

_1d3=cb;

cb=function(){

};

}else{

if(!cb){

cb=function(){

};

if(!_1d3){

_1d3=0;

}

}

}

setTimeout(function(){

(farr.shift())();

cb();

dojo.lang.delayThese(farr,cb,_1d3,_1d4);

},_1d3);

};

dojo.provide("dojo.string.extras");

dojo.string.substituteParams=function(_1d5,hash){

var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);

return _1d5.replace(/\%\{(\w+)\}/g,function(_1d8,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 _1db=str.split(" ");

for(var i=0;i<_1db.length;i++){

_1db[i]=_1db[i].charAt(0).toUpperCase()+_1db[i].substring(1);

}

return _1db.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 _1e0=escape(str);

var _1e1,re=/%u([0-9A-F]{4})/i;

while((_1e1=_1e0.match(re))){

var num=Number("0x"+_1e1[1]);

var _1e4=escape("&#"+num+";");

ret+=_1e0.substring(0,_1e1.index)+_1e4;

_1e0=_1e0.substring(_1e1.index+_1e1[0].length);

}

ret+=_1e0.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,_1e9){

str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");

if(!_1e9){

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,_1f2){

if(_1f2){

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,_1f6,_1f7){

if(_1f7){

str=str.toLowerCase();

_1f6=_1f6.toLowerCase();

}

return str.indexOf(_1f6)==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,_1fd){

if(_1fd=="\n"){

text=text.replace(/\r\n/g,"\n");

text=text.replace(/\r/g,"\n");

}else{

if(_1fd=="\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,_1ff){

var _200=[];

for(var i=0,_202=0;i<str.length;i++){

if(str.charAt(i)=="\\"){

i++;

continue;

}

if(str.charAt(i)==_1ff){

_200.push(str.substring(_202,i));

_202=i+1;

}

}

_200.push(str.substr(_202));

return _200;

};

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 _204=dojo.doc();

do{

var id="dj_unique_"+(++arguments.callee._idIncrement);

}while(_204.getElementById(id));

return id;

};

dojo.dom.getUniqueId._idIncrement=0;

dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_206,_207){

var node=_206.firstChild;

while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){

node=node.nextSibling;

}

if(_207&&node&&node.tagName&&node.tagName.toLowerCase()!=_207.toLowerCase()){

node=dojo.dom.nextElement(node,_207);

}

return node;

};

dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_209,_20a){

var node=_209.lastChild;

while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){

node=node.previousSibling;

}

if(_20a&&node&&node.tagName&&node.tagName.toLowerCase()!=_20a.toLowerCase()){

node=dojo.dom.prevElement(node,_20a);

}

return node;

};

dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_20d){

if(!node){

return null;

}

do{

node=node.nextSibling;

}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);

if(node&&_20d&&_20d.toLowerCase()!=node.tagName.toLowerCase()){

return dojo.dom.nextElement(node,_20d);

}

return node;

};

dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_20f){

if(!node){

return null;

}

if(_20f){

_20f=_20f.toLowerCase();

}

do{

node=node.previousSibling;

}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);

if(node&&_20f&&_20f.toLowerCase()!=node.tagName.toLowerCase()){

return dojo.dom.prevElement(node,_20f);

}

return node;

};

dojo.dom.moveChildren=function(_210,_211,trim){

var _213=0;

if(trim){

while(_210.hasChildNodes()&&_210.firstChild.nodeType==dojo.dom.TEXT_NODE){

_210.removeChild(_210.firstChild);

}

while(_210.hasChildNodes()&&_210.lastChild.nodeType==dojo.dom.TEXT_NODE){

_210.removeChild(_210.lastChild);

}

}

while(_210.hasChildNodes()){

_211.appendChild(_210.firstChild);

_213++;

}

return _213;

};

dojo.dom.copyChildren=function(_214,_215,trim){

var _217=_214.cloneNode(true);

return this.moveChildren(_217,_215,trim);

};

dojo.dom.replaceChildren=function(node,_219){

var _21a=[];

if(dojo.render.html.ie){

for(var i=0;i<node.childNodes.length;i++){

_21a.push(node.childNodes[i]);

}

}

dojo.dom.removeChildren(node);

node.appendChild(_219);

for(var i=0;i<_21a.length;i++){

dojo.dom.destroyNode(_21a[i]);

}

};

dojo.dom.removeChildren=function(node){

var _21d=node.childNodes.length;

while(node.hasChildNodes()){

dojo.dom.removeNode(node.firstChild);

}

return _21d;

};

dojo.dom.replaceNode=function(node,_21f){

return node.parentNode.replaceChild(_21f,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,_223,_224){

var _225=[];

var _226=(_223&&(_223 instanceof Function||typeof _223=="function"));

while(node){

if(!_226||_223(node)){

_225.push(node);

}

if(_224&&_225.length>0){

return _225[0];

}

node=node.parentNode;

}

if(_224){

return null;

}

return _225;

};

dojo.dom.getAncestorsByTag=function(node,tag,_229){

tag=tag.toLowerCase();

return dojo.dom.getAncestors(node,function(el){

return ((el.tagName)&&(el.tagName.toLowerCase()==tag));

},_229);

};

dojo.dom.getFirstAncestorByTag=function(node,tag){

return dojo.dom.getAncestorsByTag(node,tag,true);

};

dojo.dom.isDescendantOf=function(node,_22e,_22f){

if(_22f&&node){

node=node.parentNode;

}

while(node){

if(node==_22e){

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 _232=dojo.doc();

if(!dj_undef("ActiveXObject")){

var _233=["MSXML2","Microsoft","MSXML","MSXML3"];

for(var i=0;i<_233.length;i++){

try{

doc=new ActiveXObject(_233[i]+".XMLDOM");

}

catch(e){

}

if(doc){

break;

}

}

}else{

if((_232.implementation)&&(_232.implementation.createDocument)){

doc=_232.implementation.createDocument("","",null);

}

}

return doc;

};

dojo.dom.createDocumentFromText=function(str,_236){

if(!_236){

_236="text/xml";

}

if(!dj_undef("DOMParser")){

var _237=new DOMParser();

return _237.parseFromString(str,_236);

}else{

if(!dj_undef("ActiveXObject")){

var _238=dojo.dom.createDocument();

if(_238){

_238.async=false;

_238.loadXML(str);

return _238;

}else{

dojo.debug("toXml didn't work?");

}

}else{

var _239=dojo.doc();

if(_239.createElement){

var tmp=_239.createElement("xml");

tmp.innerHTML=str;

if(_239.implementation&&_239.implementation.createDocument){

var _23b=_239.implementation.createDocument("foo","",null);

for(var i=0;i<tmp.childNodes.length;i++){

_23b.importNode(tmp.childNodes.item(i),true);

}

return _23b;

}

return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));

}

}

}

return null;

};

dojo.dom.prependChild=function(node,_23e){

if(_23e.firstChild){

_23e.insertBefore(node,_23e.firstChild);

}else{

_23e.appendChild(node);

}

return true;

};

dojo.dom.insertBefore=function(node,ref,_241){

if((_241!=true)&&(node===ref||node.nextSibling===ref)){

return false;

}

var _242=ref.parentNode;

_242.insertBefore(node,ref);

return true;

};

dojo.dom.insertAfter=function(node,ref,_245){

var pn=ref.parentNode;

if(ref==pn.lastChild){

if((_245!=true)&&(node===ref)){

return false;

}

pn.appendChild(node);

}else{

return this.insertBefore(node,ref.nextSibling,_245);

}

return true;

};

dojo.dom.insertAtPosition=function(node,ref,_249){

if((!node)||(!ref)||(!_249)){

return false;

}

switch(_249.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,_24b,_24c){

var _24d=_24b.childNodes;

if(!_24d.length||_24d.length==_24c){

_24b.appendChild(node);

return true;

}

if(_24c==0){

return dojo.dom.prependChild(node,_24b);

}

return dojo.dom.insertAfter(node,_24d[_24c-1]);

};

dojo.dom.textContent=function(node,text){

if(arguments.length>1){

var _250=dojo.doc();

dojo.dom.replaceChildren(node,_250.createTextNode(text));

return text;

}else{

if(node.textContent!=undefined){

return node.textContent;

}

var _251="";

if(node==null){

return _251;

}

for(var i=0;i<node.childNodes.length;i++){

switch(node.childNodes[i].nodeType){

case 1:

case 5:

_251+=dojo.dom.textContent(node.childNodes[i]);

break;

case 3:

case 2:

case 4:

_251+=node.childNodes[i].nodeValue;

break;

default:

break;

}

}

return _251;

}

};

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,_257,_258,_259){

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(_257,_258,_259);

}else{

var _25a=elem.ownerDocument;

var _25b=_25a.createNode(2,_258,_257);

_25b.nodeValue=_259;

elem.setAttributeNode(_25b);

}

};

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 _260=args["back"]||args["backButton"]||args["handle"];

var tcb=function(_262){

if(window.location.hash!=""){

setTimeout("window.location.href = '"+hash+"';",1);

}

_260.apply(this,[_262]);

};

if(args["back"]){

args.back=tcb;

}else{

if(args["backButton"]){

args.backButton=tcb;

}else{

if(args["handle"]){

args.handle=tcb;

}

}

}

var _263=args["forward"]||args["forwardButton"]||args["handle"];

var tfw=function(_265){

if(window.location.hash!=""){

window.location.href=hash;

}

if(_263){

_263.apply(this,[_265]);

}

};

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,_268){

if(!dojo.render.html.opera){

var _269=this._getUrlQuery(_268.href);

if(_269==null){

if(this.historyStack.length==1){

this.handleBackButton();

}

return;

}

if(this.moveForward){

this.moveForward=false;

return;

}

if(this.historyStack.length>=2&&_269==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){

this.handleBackButton();

}else{

if(this.forwardStack.length>0&&_269==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){

this.handleForwardButton();

}

}

}

},handleBackButton:function(){

var _26a=this.historyStack.pop();

if(!_26a){

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(_26a);

},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 _271=url.split("?");

if(_271.length<2){

return null;

}else{

return _271[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 _274=false;

var _275=node.getElementsByTagName("input");

dojo.lang.forEach(_275,function(_276){

if(_274){

return;

}

if(_276.getAttribute("type")=="file"){

_274=true;

}

});

return _274;

};

dojo.io.formHasFile=function(_277){

return dojo.io.checkChildrenForFile(_277);

};

dojo.io.updateNode=function(node,_279){

node=dojo.byId(node);

var args=_279;

if(dojo.lang.isString(_279)){

args={url:_279};

}

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(_280,_281,_282){

if((!_280)||(!_280.tagName)||(!_280.tagName.toLowerCase()=="form")){

dojo.raise("Attempted to encode a non-form element.");

}

if(!_282){

_282=dojo.io.formFilter;

}

var enc=/utf/i.test(_281||"")?encodeURIComponent:dojo.string.encodeAscii;

var _284=[];

for(var i=0;i<_280.elements.length;i++){

var elm=_280.elements[i];

if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_282(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){

_284.push(name+"="+enc(elm.options[j].value));

}

}

}else{

if(dojo.lang.inArray(["radio","checkbox"],type)){

if(elm.checked){

_284.push(name+"="+enc(elm.value));

}

}else{

_284.push(name+"="+enc(elm.value));

}

}

}

var _28a=_280.getElementsByTagName("input");

for(var i=0;i<_28a.length;i++){

var _28b=_28a[i];

if(_28b.type.toLowerCase()=="image"&&_28b.form==_280&&_282(_28b)){

var name=enc(_28b.name);

_284.push(name+"="+enc(_28b.value));

_284.push(name+".x=0");

_284.push(name+".y=0");

}

}

return _284.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 _291=form.getElementsByTagName("input");

for(var i=0;i<_291.length;i++){

var _292=_291[i];

if(_292.type.toLowerCase()=="image"&&_292.form==form){

this.connect(_292,"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 _299=false;

if(node.disabled||!node.name){

_299=false;

}else{

if(dojo.lang.inArray(["submit","button","image"],type)){

if(!this.clickedButton){

this.clickedButton=node;

}

_299=node==this.clickedButton;

}else{

_299=!dojo.lang.inArray(["file","submit","reset","button"],type);

}

}

return _299;

},connect:function(_29a,_29b,_29c){

if(dojo.evalObjPath("dojo.event.connect")){

dojo.event.connect(_29a,_29b,this,_29c);

}else{

var fcn=dojo.lang.hitch(this,_29c);

_29a[_29b]=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 _29f=this;

var _2a0={};

this.useCache=false;

this.preventCache=false;

function getCacheKey(url,_2a2,_2a3){

return url+"|"+_2a2+"|"+_2a3.toLowerCase();

}

function addToCache(url,_2a5,_2a6,http){

_2a0[getCacheKey(url,_2a5,_2a6)]=http;

}

function getFromCache(url,_2a9,_2aa){

return _2a0[getCacheKey(url,_2a9,_2aa)];

}

this.clearCache=function(){

_2a0={};

};

function doLoad(_2ab,http,url,_2ae,_2af){

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(_2ab.method.toLowerCase()=="head"){

var _2b1=http.getAllResponseHeaders();

ret={};

ret.toString=function(){

return _2b1;

};

var _2b2=_2b1.split(/[\r\n]+/g);

for(var i=0;i<_2b2.length;i++){

var pair=_2b2[i].match(/^([^:]+)\s*:\s*(.+)$/i);

if(pair){

ret[pair[1]]=pair[2];

}

}

}else{

if(_2ab.mimetype=="text/javascript"){

try{

ret=dj_eval(http.responseText);

}

catch(e){

dojo.debug(e);

dojo.debug(http.responseText);

ret=null;

}

}else{

if(_2ab.mimetype=="text/json"||_2ab.mimetype=="application/json"){

try{

ret=dj_eval("("+http.responseText+")");

}

catch(e){

dojo.debug(e);

dojo.debug(http.responseText);

ret=false;

}

}else{

if((_2ab.mimetype=="application/xml")||(_2ab.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(_2af){

addToCache(url,_2ae,_2ab.method,http);

}

_2ab[(typeof _2ab.load=="function")?"load":"handle"]("load",ret,http,_2ab);

}else{

var _2b5=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);

_2ab[(typeof _2ab.error=="function")?"error":"handle"]("error",_2b5,http,_2ab);

}

}

function setHeaders(http,_2b7){

if(_2b7["headers"]){

for(var _2b8 in _2b7["headers"]){

if(_2b8.toLowerCase()=="content-type"&&!_2b7["contentType"]){

_2b7["contentType"]=_2b7["headers"][_2b8];

}else{

http.setRequestHeader(_2b8,_2b7["headers"][_2b8]);

}

}

}

}

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&&!_29f._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 _2bc=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);

tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_2bc,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 _2bd=dojo.hostenv.getXmlhttpObject()?true:false;

this.canHandle=function(_2be){

return _2bd&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_2be["mimetype"].toLowerCase()||""))&&!(_2be["formNode"]&&dojo.io.formHasFile(_2be["formNode"]));

};

this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";

this.bind=function(_2bf){

if(!_2bf["url"]){

if(!_2bf["formNode"]&&(_2bf["backButton"]||_2bf["back"]||_2bf["changeUrl"]||_2bf["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(_2bf);

return true;

}

}

var url=_2bf.url;

var _2c1="";

if(_2bf["formNode"]){

var ta=_2bf.formNode.getAttribute("action");

if((ta)&&(!_2bf["url"])){

url=ta;

}

var tp=_2bf.formNode.getAttribute("method");

if((tp)&&(!_2bf["method"])){

_2bf.method=tp;

}

_2c1+=dojo.io.encodeForm(_2bf.formNode,_2bf.encoding,_2bf["formFilter"]);

}

if(url.indexOf("#")>-1){

dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);

url=url.split("#")[0];

}

if(_2bf["file"]){

_2bf.method="post";

}

if(!_2bf["method"]){

_2bf.method="get";

}

if(_2bf.method.toLowerCase()=="get"){

_2bf.multipart=false;

}else{

if(_2bf["file"]){

_2bf.multipart=true;

}else{

if(!_2bf["multipart"]){

_2bf.multipart=false;

}

}

}

if(_2bf["backButton"]||_2bf["back"]||_2bf["changeUrl"]){

dojo.undo.browser.addToHistory(_2bf);

}

var _2c4=_2bf["content"]||{};

if(_2bf.sendTransport){

_2c4["dojo.transport"]="xmlhttp";

}

do{

if(_2bf.postContent){

_2c1=_2bf.postContent;

break;

}

if(_2c4){

_2c1+=dojo.io.argsFromMap(_2c4,_2bf.encoding);

}

if(_2bf.method.toLowerCase()=="get"||!_2bf.multipart){

break;

}

var t=[];

if(_2c1.length){

var q=_2c1.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(_2bf.file){

if(dojo.lang.isArray(_2bf.file)){

for(var i=0;i<_2bf.file.length;++i){

var o=_2bf.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=_2bf.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+"--","");

_2c1=t.join("\r\n");

}

}while(false);

var _2ca=_2bf["sync"]?false:true;

var _2cb=_2bf["preventCache"]||(this.preventCache==true&&_2bf["preventCache"]!=false);

var _2cc=_2bf["useCache"]==true||(this.useCache==true&&_2bf["useCache"]!=false);

if(!_2cb&&_2cc){

var _2cd=getFromCache(url,_2c1,_2bf.method);

if(_2cd){

doLoad(_2bf,_2cd,url,_2c1,false);

return;

}

}

var http=dojo.hostenv.getXmlhttpObject(_2bf);

var _2cf=false;

if(_2ca){

var _2d0=this.inFlight.push({"req":_2bf,"http":http,"url":url,"query":_2c1,"useCache":_2cc,"startTime":_2bf.timeoutSeconds?(new Date()).getTime():0});

this.startWatchingInFlight();

}else{

_29f._blockAsync=true;

}

if(_2bf.method.toLowerCase()=="post"){

if(!_2bf.user){

http.open("POST",url,_2ca);

}else{

http.open("POST",url,_2ca,_2bf.user,_2bf.password);

}

setHeaders(http,_2bf);

http.setRequestHeader("Content-Type",_2bf.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_2bf.contentType||"application/x-www-form-urlencoded"));

try{

http.send(_2c1);

}

catch(e){

if(typeof http.abort=="function"){

http.abort();

}

doLoad(_2bf,{status:404},url,_2c1,_2cc);

}

}else{

var _2d1=url;

if(_2c1!=""){

_2d1+=(_2d1.indexOf("?")>-1?"&":"?")+_2c1;

}

if(_2cb){

_2d1+=(dojo.string.endsWithAny(_2d1,"?","&")?"":(_2d1.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();

}

if(!_2bf.user){

http.open(_2bf.method.toUpperCase(),_2d1,_2ca);

}else{

http.open(_2bf.method.toUpperCase(),_2d1,_2ca,_2bf.user,_2bf.password);

}

setHeaders(http,_2bf);

try{

http.send(null);

}

catch(e){

if(typeof http.abort=="function"){

http.abort();

}

doLoad(_2bf,{status:404},url,_2c1,_2cc);

}

}

if(!_2ca){

doLoad(_2bf,http,url,_2c1,_2cc);

_29f._blockAsync=false;

}

_2bf.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,_2d3,days,path,_2d6,_2d7){

var _2d8=-1;

if((typeof days=="number")&&(days>=0)){

var d=new Date();

d.setTime(d.getTime()+(days*24*60*60*1000));

_2d8=d.toGMTString();

}

_2d3=escape(_2d3);

document.cookie=name+"="+_2d3+";"+(_2d8!=-1?" expires="+_2d8+";":"")+(path?"path="+path:"")+(_2d6?"; domain="+_2d6:"")+(_2d7?"; 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 _2dc=document.cookie.substring(idx+name.length+1);

var end=_2dc.indexOf(";");

if(end==-1){

end=_2dc.length;

}

_2dc=_2dc.substring(0,end);

_2dc=unescape(_2dc);

return _2dc;

};

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,_2e3,_2e4,_2e5){

if(arguments.length==5){

_2e5=_2e3;

_2e3=null;

_2e4=null;

}

var _2e6=[],_2e7,_2e8="";

if(!_2e5){

_2e7=dojo.io.cookie.getObjectCookie(name);

}

if(days>=0){

if(!_2e7){

_2e7={};

}

for(var prop in obj){

if(obj[prop]==null){

delete _2e7[prop];

}else{

if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){

_2e7[prop]=obj[prop];

}

}

}

prop=null;

for(var prop in _2e7){

_2e6.push(escape(prop)+"="+escape(_2e7[prop]));

}

_2e8=_2e6.join("&");

}

dojo.io.cookie.setCookie(name,_2e8,days,path,_2e3,_2e4);

};

dojo.io.cookie.getObjectCookie=function(name){

var _2eb=null,_2ec=dojo.io.cookie.getCookie(name);

if(_2ec){

_2eb={};

var _2ed=_2ec.split("&");

for(var i=0;i<_2ed.length;i++){

var pair=_2ed[i].split("=");

var _2f0=pair[1];

if(isNaN(_2f0)){

_2f0=unescape(pair[1]);

}

_2eb[unescape(pair[0])]=_2f0;

}

}

return _2eb;

};

dojo.io.cookie.isSupported=function(){

if(typeof navigator.cookieEnabled!="boolean"){

dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);

var _2f1=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");

navigator.cookieEnabled=(_2f1=="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.event.common");

dojo.event=new function(){

this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);

function interpolateArgs(args,_2f3){

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 _2f6=dl.nameAnonFunc(args[2],ao.adviceObj,_2f3);

ao.adviceFunc=_2f6;

}else{

if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){

ao.adviceType="after";

ao.srcObj=dj_global;

var _2f6=dl.nameAnonFunc(args[0],ao.srcObj,_2f3);

ao.srcFunc=_2f6;

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 _2f6=dl.nameAnonFunc(args[1],dj_global,_2f3);

ao.srcFunc=_2f6;

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 _2f6=dl.nameAnonFunc(args[3],dj_global,_2f3);

ao.adviceObj=dj_global;

ao.adviceFunc=_2f6;

}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 _2f6=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2f3);

ao.aroundFunc=_2f6;

}

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 _2f8={};

for(var x in ao){

_2f8[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);

}

_2f8.srcObj=src;

mjps.push(dojo.event.connect.call(dojo.event,_2f8));

});

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 _300;

if((arguments.length==1)&&(typeof a1=="object")){

_300=a1;

}else{

_300={srcObj:a1,srcFunc:a2};

}

_300.adviceFunc=function(){

var _301=[];

for(var x=0;x<arguments.length;x++){

_301.push(arguments[x]);

}

dojo.debug("("+_300.srcObj+")."+_300.srcFunc,":",_301.join(", "));

};

this.kwConnect(_300);

};

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(_308,_309){

var fn=(_309)?"disconnect":"connect";

if(typeof _308["srcFunc"]=="function"){

_308.srcObj=_308["srcObj"]||dj_global;

var _30b=dojo.lang.nameAnonFunc(_308.srcFunc,_308.srcObj,true);

_308.srcFunc=_30b;

}

if(typeof _308["adviceFunc"]=="function"){

_308.adviceObj=_308["adviceObj"]||dj_global;

var _30b=dojo.lang.nameAnonFunc(_308.adviceFunc,_308.adviceObj,true);

_308.adviceFunc=_30b;

}

_308.srcObj=_308["srcObj"]||dj_global;

_308.adviceObj=_308["adviceObj"]||_308["targetObj"]||dj_global;

_308.adviceFunc=_308["adviceFunc"]||_308["targetFunc"];

return dojo.event[fn](_308);

};

this.kwConnect=function(_30c){

return this._kwConnectImpl(_30c,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(_30f){

return this._kwConnectImpl(_30f,true);

};

};

dojo.event.MethodInvocation=function(_310,obj,args){

this.jp_=_310;

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,_318){

this.object=obj||dj_global;

this.methodname=_318;

this.methodfunc=this.object[_318];

this.squelch=false;

};

dojo.event.MethodJoinPoint.getForMethod=function(obj,_31a){

if(!obj){

obj=dj_global;

}

if(!obj[_31a]){

obj[_31a]=function(){

};

if(!obj[_31a]){

dojo.raise("Cannot set do-nothing method on that object "+_31a);

}

}else{

if((!dojo.lang.isFunction(obj[_31a]))&&(!dojo.lang.isAlien(obj[_31a]))){

return null;

}

}

var _31b=_31a+"$joinpoint";

var _31c=_31a+"$joinpoint$method";

var _31d=obj[_31b];

if(!_31d){

var _31e=false;

if(dojo.event["browser"]){

if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){

_31e=true;

dojo.event.browser.addClobberNodeAttrs(obj,[_31b,_31c,_31a]);

}

}

var _31f=obj[_31a].length;

obj[_31c]=obj[_31a];

_31d=obj[_31b]=new dojo.event.MethodJoinPoint(obj,_31c);

obj[_31a]=function(){

var args=[];

if((_31e)&&(!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)&&(_31e)&&(dojo.event.browser.isEvent(arguments[x]))){

args.push(dojo.event.browser.fixEvent(arguments[x],this));

}else{

args.push(arguments[x]);

}

}

}

return _31d.run.apply(_31d,args);

};

obj[_31a].__preJoinArity=_31f;

}

return _31d;

};

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 _325=[];

for(var x=0;x<args.length;x++){

_325[x]=args[x];

}

var _327=function(marr){

if(!marr){

dojo.debug("Null argument to unrollAdvice()");

return;

}

var _329=marr[0]||dj_global;

var _32a=marr[1];

if(!_329[_32a]){

dojo.raise("function \""+_32a+"\" does not exist on \""+_329+"\"");

}

var _32b=marr[2]||dj_global;

var _32c=marr[3];

var msg=marr[6];

var _32e;

var to={args:[],jp_:this,object:obj,proceed:function(){

return _329[_32a].apply(_329,to.args);

}};

to.args=_325;

var _330=parseInt(marr[4]);

var _331=((!isNaN(_330))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));

if(marr[5]){

var rate=parseInt(marr[5]);

var cur=new Date();

var _334=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;

_327(mcpy);

},tod);

}

return;

}else{

marr.last=cur;

}

}

if(_32c){

_32b[_32c].call(_32b,to);

}else{

if((_331)&&((dojo.render.html)||(dojo.render.svg))){

dj_global["setTimeout"](function(){

if(msg){

_329[_32a].call(_329,to);

}else{

_329[_32a].apply(_329,args);

}

},_330);

}else{

if(msg){

_329[_32a].call(_329,to);

}else{

_329[_32a].apply(_329,args);

}

}

}

};

var _337=function(){

if(this.squelch){

try{

return _327.apply(this,arguments);

}

catch(e){

dojo.debug(e);

}

}else{

return _327.apply(this,arguments);

}

};

if((this["before"])&&(this.before.length>0)){

dojo.lang.forEach(this.before.concat(new Array()),_337);

}

var _338;

try{

if((this["around"])&&(this.around.length>0)){

var mi=new dojo.event.MethodInvocation(this,obj,args);

_338=mi.proceed();

}else{

if(this.methodfunc){

_338=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()),_337);

}

return (this.methodfunc)?_338: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(_33d,_33e,_33f,_340,_341,_342,once,_344,rate,_346){

var arr=this.getArr(_341);

if(!arr){

dojo.raise("bad this: "+this);

}

var ao=[_33d,_33e,_33f,_340,_344,rate,_346];

if(once){

if(this.hasAdvice(_33d,_33e,_341,arr)>=0){

return;

}

}

if(_342=="first"){

arr.unshift(ao);

}else{

arr.push(ao);

}

},hasAdvice:function(_349,_34a,_34b,arr){

if(!arr){

arr=this.getArr(_34b);

}

var ind=-1;

for(var x=0;x<arr.length;x++){

var aao=(typeof _34a=="object")?(new String(_34a)).toString():_34a;

var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];

if((arr[x][0]==_349)&&(a1o==aao)){

ind=x;

}

}

return ind;

},removeAdvice:function(_351,_352,_353,once){

var arr=this.getArr(_353);

var ind=this.hasAdvice(_351,_352,_353,arr);

if(ind==-1){

return false;

}

while(ind!=-1){

arr.splice(ind,1);

if(once){

break;

}

ind=this.hasAdvice(_351,_352,_353,arr);

}

return true;

}});

dojo.provide("dojo.event.topic");

dojo.event.topic=new function(){

this.topics={};

this.getTopic=function(_357){

if(!this.topics[_357]){

this.topics[_357]=new this.TopicImpl(_357);

}

return this.topics[_357];

};

this.registerPublisher=function(_358,obj,_35a){

var _358=this.getTopic(_358);

_358.registerPublisher(obj,_35a);

};

this.subscribe=function(_35b,obj,_35d){

var _35b=this.getTopic(_35b);

_35b.subscribe(obj,_35d);

};

this.unsubscribe=function(_35e,obj,_360){

var _35e=this.getTopic(_35e);

_35e.unsubscribe(obj,_360);

};

this.destroy=function(_361){

this.getTopic(_361).destroy();

delete this.topics[_361];

};

this.publishApply=function(_362,args){

var _362=this.getTopic(_362);

_362.sendMessage.apply(_362,args);

};

this.publish=function(_364,_365){

var _364=this.getTopic(_364);

var args=[];

for(var x=1;x<arguments.length;x++){

args.push(arguments[x]);

}

_364.sendMessage.apply(_364,args);

};

};

dojo.event.topic.TopicImpl=function(_368){

this.topicName=_368;

this.subscribe=function(_369,_36a){

var tf=_36a||_369;

var to=(!_36a)?dj_global:_369;

return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});

};

this.unsubscribe=function(_36d,_36e){

var tf=(!_36e)?_36d:_36e;

var to=(!_36e)?null:_36d;

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(_371){

this._getJoinPoint().squelch=_371;

};

this.destroy=function(){

this._getJoinPoint().disconnect();

};

this.registerPublisher=function(_372,_373){

dojo.event.connect(_372,_373,this,"sendMessage");

};

this.sendMessage=function(_374){

};

};

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(_377){

var na;

var tna;

if(_377){

tna=_377.all||_377.getElementsByTagName("*");

na=[_377];

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 _37b={};

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 _380=0;

this.normalizedEventName=function(_381){

switch(_381){

case "CheckboxStateChange":

case "DOMAttrModified":

case "DOMMenuItemActive":

case "DOMMenuItemInactive":

case "DOMMouseScroll":

case "DOMNodeInserted":

case "DOMNodeRemoved":

case "RadioStateChange":

return _381;

break;

default:

return _381.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,_385){

if(!dojo.render.html.ie){

return;

}

this.addClobberNode(node);

for(var x=0;x<_385.length;x++){

node.__clobberAttrs__.push(_385[x]);

}

};

this.removeListener=function(node,_388,fp,_38a){

if(!_38a){

var _38a=false;

}

_388=dojo.event.browser.normalizedEventName(_388);

if((_388=="onkey")||(_388=="key")){

if(dojo.render.html.ie){

this.removeListener(node,"onkeydown",fp,_38a);

}

_388="onkeypress";

}

if(_388.substr(0,2)=="on"){

_388=_388.substr(2);

}

if(node.removeEventListener){

node.removeEventListener(_388,fp,_38a);

}

};

this.addListener=function(node,_38c,fp,_38e,_38f){

if(!node){

return;

}

if(!_38e){

var _38e=false;

}

_38c=dojo.event.browser.normalizedEventName(_38c);

if((_38c=="onkey")||(_38c=="key")){

if(dojo.render.html.ie){

this.addListener(node,"onkeydown",fp,_38e,_38f);

}

_38c="onkeypress";

}

if(_38c.substr(0,2)!="on"){

_38c="on"+_38c;

}

if(!_38f){

var _390=function(evt){

if(!evt){

evt=window.event;

}

var ret=fp(dojo.event.browser.fixEvent(evt,this));

if(_38e){

dojo.event.browser.stopEvent(evt);

}

return ret;

};

}else{

_390=fp;

}

if(node.addEventListener){

node.addEventListener(_38c.substr(2),_390,_38e);

return _390;

}else{

if(typeof node[_38c]=="function"){

var _393=node[_38c];

node[_38c]=function(e){

_393(e);

return _390(e);

};

}else{

node[_38c]=_390;

}

if(dojo.render.html.ie){

this.addClobberNodeAttrs(node,[_38c]);

}

return _390;

}

};

this.isEvent=function(obj){

return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);

};

this.currentEvent=null;

this.callListener=function(_396,_397){

if(typeof _396!="function"){

dojo.raise("listener not a function: "+_396);

}

dojo.event.browser.currentEvent.currentTarget=_397;

return _396.call(_397,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,_39a){

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 _39c=evt.keyCode;

if(_39c>=65&&_39c<=90&&evt.shiftKey==false){

_39c+=32;

}

if(_39c>=1&&_39c<=26&&evt.ctrlKey){

_39c+=96;

}

evt.key=String.fromCharCode(_39c);

}

}

}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 _39c=evt.which;

if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){

_39c+=32;

}

evt.key=String.fromCharCode(_39c);

}

}

}

}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=(_39a?_39a: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 _39e=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;

if(!evt.pageX){

evt.pageX=evt.clientX+(_39e.scrollLeft||0);

}

if(!evt.pageY){

evt.pageY=evt.clientY+(_39e.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.lang.declare");

dojo.lang.declare=function(_3a0,_3a1,init,_3a3){

if((dojo.lang.isFunction(_3a3))||((!_3a3)&&(!dojo.lang.isFunction(init)))){

var temp=_3a3;

_3a3=init;

init=temp;

}

var _3a5=[];

if(dojo.lang.isArray(_3a1)){

_3a5=_3a1;

_3a1=_3a5.shift();

}

if(!init){

init=dojo.evalObjPath(_3a0,false);

if((init)&&(!dojo.lang.isFunction(init))){

init=null;

}

}

var ctor=dojo.lang.declare._makeConstructor();

var scp=(_3a1?_3a1.prototype:null);

if(scp){

scp.prototyping=true;

ctor.prototype=new _3a1();

scp.prototyping=false;

}

ctor.superclass=scp;

ctor.mixins=_3a5;

for(var i=0,l=_3a5.length;i<l;i++){

dojo.lang.extend(ctor,_3a5[i].prototype);

}

ctor.prototype.initializer=null;

ctor.prototype.declaredClass=_3a0;

if(dojo.lang.isArray(_3a3)){

dojo.lang.extend.apply(dojo.lang,[ctor].concat(_3a3));

}else{

dojo.lang.extend(ctor,(_3a3)||{});

}

dojo.lang.extend(ctor,dojo.lang.declare._common);

ctor.prototype.constructor=ctor;

ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){

});

var _3aa=dojo.parseObjPath(_3a0,null,true);

_3aa.obj[_3aa.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(_3b0,_3b1,args){

var _3b3,_3b4=this.___proto;

this.___proto=_3b0;

try{

_3b3=_3b0[_3b1].apply(this,(args||[]));

}

catch(e){

throw e;

}

finally{

this.___proto=_3b4;

}

return _3b3;

},_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.i18n.common");

dojo.i18n.getLocalization=function(_3ba,_3bb,_3bc){

dojo.hostenv.preloadLocalizations();

_3bc=dojo.hostenv.normalizeLocale(_3bc);

var _3bd=_3bc.split("-");

var _3be=[_3ba,"nls",_3bb].join(".");

var _3bf=dojo.hostenv.findModule(_3be,true);

var _3c0;

for(var i=_3bd.length;i>0;i--){

var loc=_3bd.slice(0,i).join("_");

if(_3bf[loc]){

_3c0=_3bf[loc];

break;

}

}

if(!_3c0){

_3c0=_3bf.ROOT;

}

if(_3c0){

var _3c3=function(){

};

_3c3.prototype=_3c0;

return new _3c3();

}

dojo.raise("Bundle not found: "+_3bb+" in "+_3ba+" , locale="+_3bc);

};

dojo.i18n.isLTR=function(_3c4){

var lang=dojo.hostenv.normalizeLocale(_3c4).split("-")[0];

var RTL={ar:true,fa:true,he:true,ur:true,yi:true};

return !RTL[lang];

};

dojo.provide("wc.render.Context");

wc.render.contexts={};

wc.render.getContextById=function(id){

return wc.render.contexts[id];

};

wc.render.updateContext=function(id,_3c9){

wc.render.getContextById(id).update(_3c9);

};

wc.render.declareContext=function(id,_3cb,_3cc){

var _3cd=new wc.render.Context(id,_3cb,_3cc);

this.contexts[id]=_3cd;

return _3cd;

};

dojo.declare("wc.render.Context",null,{initializer:function(id,_3cf,_3d0){

this.id=id;

this.properties=_3cf?_3cf:{};

this.url=_3d0;

this.contextChangedEventName=id+"/RenderContextChanged";

},id:undefined,properties:undefined,url:undefined,contextChangedEventName:undefined,update:function(_3d1){

if(!this.properties){

this.properties={};

}

if(this.url){

var _3d2={};

for(var name in _3d1){

var _3d4=_3d1[name];

if(dojo.lang.isUndefined(_3d4)){

if(dojo.lang.isUndefined(_3d2.clear)){

_3d2.clear=[name];

}else{

_3d2.clear.push(name);

}

}else{

_3d2["set_"+name]=_3d4;

}

}

dojo.io.bind({url:this.url,mimetype:"text/json",content:_3d2,properties:this.properties,successEventName:this.contextChangedEventName,load:function(type,data,evt,_3d8){

if(dojo.lang.isArray(data.renderContextChanges)){

for(var i=0;i<data.renderContextChanges.length;i++){

var name=data.renderContextChanges[i];

_3d8.properties[name]=data[name];

}

}

dojo.event.topic.publish(this.successEventName,data);

},error:function(type,_3dc){

var _3dd=dojo.i18n.getLocalization("wc","common");

alert(_3dd.communicationError);

}});

}else{

var data={renderContextChanges:[]};

for(var name in _3d1){

var _3d4=_3d1[name];

if(_3d4!=this.properties[name]){

data.renderContextChanges.push(name);

if(dojo.lang.isUndefined(_3d4)){

delete this.properties[name];

}else{

this.properties[name]=_3d4;

data[name]=_3d4;

}

}

}

dojo.event.topic.publish(this.contextChangedEventName,data);

}

}});

dojo.provide("wc.render.RefreshController");

wc.render.refreshControllers={};

wc.render.getRefreshControllerById=function(id){

return wc.render.refreshControllers[id];

};

wc.render.declareRefreshController=function(_3e0){

var _3e1=new wc.render.RefreshController(_3e0);

this.refreshControllers[_3e0.id]=_3e1;

return _3e1;

};

dojo.declare("wc.render.RefreshController",null,{initializer:function(_3e2){

dojo.lang.mixin(this,_3e2);

this.syncRCProperties();

if(dojo.lang.isFunction(this.renderContextChangedHandler)){

dojo.event.topic.subscribe(this.renderContext.contextChangedEventName,this,"renderContextChanged");

}

if(dojo.lang.isFunction(this.modelChangedHandler)){

dojo.event.topic.subscribe("modelChanged",this,"modelChanged");

}

this.widgets={};

},id:undefined,renderContext:undefined,url:undefined,mimetype:"text/html",renderContextChangedHandler:undefined,modelChangedHandler:undefined,postRefreshHandler:undefined,currentRCProperties:undefined,widgets:undefined,formId:undefined,addWidget:function(_3e3){

if(this.widgets[_3e3.widgetId]){

dojo.debug("RefreshController.addWidget: duplicate widget ID "+_3e3.widgetId);

}

this.widgets[_3e3.widgetId]=_3e3;

},removeWidget:function(_3e4){

if(typeof this.widgets=="undefined"){

dojo.debug("this.widgets in RefreshController#removeWidget(widget) is not defined yet. No deletion is needed");

return;

}

delete this.widgets[_3e4.widgetId];

},syncRCProperties:function(){

if(this.renderContext){

var _3e5={};

var rc=this.renderContext.properties;

for(var prop in rc){

_3e5[prop]=rc[prop];

}

this.currentRCProperties=_3e5;

}

},renderContextChanged:function(_3e8){

for(var _3e9 in this.widgets){

this.renderContextChangedHandler(_3e8,this.widgets[_3e9]);

}

this.syncRCProperties();

},modelChanged:function(_3ea){

for(var _3eb in this.widgets){

this.modelChangedHandler(_3ea,this.widgets[_3eb]);

}

},refreshHandler:function(_3ec,data){

_3ec.setInnerHTML(data);

},refresh:function(_3ee,_3ef){

var _3f0=null;

if(this.formId){

_3f0=document.getElementById(this.formId);

}

dojo.io.bind({url:this.url,mimetype:this.mimetype,formNode:_3f0,content:_3ef,load:function(type,data,evt){

var _3f4=_3ee.controller;

_3f4.refreshHandler(_3ee,data);

if(_3f4.postRefreshHandler!=null){

_3f4.postRefreshHandler(_3ee);

}

},error:function(type,_3f6){

var _3f7=dojo.i18n.getLocalization("wc","common");

alert(_3f7.communicationError);

}});

},testForChangedRC:function(_3f8){

var _3f9=false;

for(var i=0;i<_3f8.length;i++){

var prop=_3f8[i];

if(this.currentRCProperties[prop]!=this.renderContext.properties[prop]){

_3f9=true;

break;

}

}

return _3f9;

}});

dojo.provide("wc.render.common");

dojo.provide("wc.render.*");

dojo.provide("wc.service.common");

wc.service.services={};

wc.service.getServiceById=function(id){

return wc.service.services[id];

};

wc.service.declare=function(_3fd){

var _3fe=new wc.service.Service(_3fd);

this.register(_3fe);

return _3fe;

};

wc.service.register=function(_3ff){

this.services[_3ff.id]=_3ff;

};

wc.service.invoke=function(_400,_401){

var _402=this.getServiceById(_400);

if(_402){

_402.invoke(_401);

}else{

dojo.debug("Attempt to invoke an unregistered service: "+_400);

}

};

dojo.declare("wc.service.Service",null,{initializer:function(_403){

dojo.lang.mixin(this,_403);

},id:undefined,actionId:undefined,url:undefined,formId:undefined,validateParameters:function(_404){

return true;

},validateForm:function(_405){

return true;

},successTest:function(_406){

return !_406.errorMessage&&!_406.errorMessageKey;

},successHandler:function(_407){

},failureHandler:function(_408){

var _409=_408.errorMessage;

if(_409){

alert(_409);

}else{

_409=_408.errorMessageKey;

if(_409){

alert(_409);

}else{

alert("Service request error.");

}

}

},invoke:function(_40a){

var _40b=true;

var _40c=null;

if(this.formId){

_40c=document.getElementById(this.formId);

}

if(_40c){

_40b=this.validateForm(_40c);

}

if(_40b){

_40b=this.validateParameters(_40a);

}

if(_40b){

dojo.io.bind({url:this.url,mimetype:"text/json",formNode:_40c,content:_40a,service:this,load:function(type,_40e,evt,_410){

var _411=_410.service;

_40e.serviceId=_411.id;

_40e.actionId=_411.actionId;

dojo.debug("Service response:");

for(var prop in _40e){

dojo.debug("  "+prop+"="+_40e[prop]);

}

if(_411.successTest(_40e)){

_411.successHandler(_40e);

dojo.event.topic.publish("modelChanged",_40e);

if(_411.actionId){

dojo.event.topic.publish("modelChanged/"+_411.actionId,_40e);

}

}else{

_411.failureHandler(_40e);

}

},error:function(type,_414){

var _415=dojo.i18n.getLocalization("wc","common");

alert(_415.communicationError);

}});

}

}});

dojo.provide("wc.service.*");

if(!this["dojo"]){

alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");

}

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 _419=getTagName(node);

if(!_419){

return "";

}

if((dojo.widget)&&(dojo.widget.tags[_419])){

return _419;

}

var p=_419.indexOf(":");

if(p>=0){

return _419;

}

if(_419.substr(0,5)=="dojo:"){

return _419;

}

if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){

return node.scopeName.toLowerCase()+":"+_419;

}

if(_419.substr(0,4)=="dojo"){

return "dojo:"+_419.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 _41c=node.className||node.getAttribute("class");

if((_41c)&&(_41c.indexOf)&&(_41c.indexOf("dojo-")!=-1)){

var _41d=_41c.split(" ");

for(var x=0,c=_41d.length;x<c;x++){

if(_41d[x].slice(0,5)=="dojo-"){

return "dojo:"+_41d[x].substr(5).toLowerCase();

}

}

}

}

return "";

}

this.parseElement=function(node,_421,_422,_423){

var _424=getTagName(node);

if(isIE&&_424.indexOf("/")==0){

return null;

}

try{

var attr=node.getAttribute("parseWidgets");

if(attr&&attr.toLowerCase()=="false"){

return {};

}

}

catch(e){

}

var _426=true;

if(_422){

var _427=getDojoTagName(node);

_424=_427||_424;

_426=Boolean(_427);

}

var _428={};

_428[_424]=[];

var pos=_424.indexOf(":");

if(pos>0){

var ns=_424.substring(0,pos);

_428["ns"]=ns;

if((dojo.ns)&&(!dojo.ns.allow(ns))){

_426=false;

}

}

if(_426){

var _42b=this.parseAttributes(node);

for(var attr in _42b){

if((!_428[_424][attr])||(typeof _428[_424][attr]!="array")){

_428[_424][attr]=[];

}

_428[_424][attr].push(_42b[attr]);

}

_428[_424].nodeRef=node;

_428.tagName=_424;

_428.index=_423||0;

}

var _42c=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(!_428[ctn]){

_428[ctn]=[];

}

_428[ctn].push(this.parseElement(tcn,true,_422,_42c));

if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){

_428[ctn][_428[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;

}

_42c++;

break;

case dojo.dom.TEXT_NODE:

if(node.childNodes.length==1){

_428[_424].push({value:node.childNodes.item(0).nodeValue});

}

break;

default:

break;

}

}

return _428;

};

this.parseAttributes=function(node){

var _431={};

var atts=node.attributes;

var _433,i=0;

while((_433=atts[i++])){

if(isIE){

if(!_433){

continue;

}

if((typeof _433=="object")&&(typeof _433.nodeValue=="undefined")||(_433.nodeValue==null)||(_433.nodeValue=="")){

continue;

}

}

var nn=_433.nodeName.split(":");

nn=(nn.length==2)?nn[1]:_433.nodeName;

_431[nn]={value:_433.nodeValue};

}

return _431;

};

};

dojo.provide("dojo.ns");

dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_437,_438,_439){

if(!_439||!this.namespaces[name]){

this.namespaces[name]=new dojo.ns.Ns(name,_437,_438);

}

},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,_440,_441){

this.name=name;

this.module=_440;

this.resolver=_441;

this._loaded=[];

this._failed=[];

};

dojo.ns.Ns.prototype.resolve=function(name,_443,_444){

if(!this.resolver||djConfig["skipAutoRequire"]){

return false;

}

var _445=this.resolver(name,_443);

if((_445)&&(!this._loaded[_445])&&(!this._failed[_445])){

var req=dojo.require;

req(_445,false,true);

if(dojo.hostenv.findModule(_445,false)){

this._loaded[_445]=true;

}else{

if(!_444){

dojo.raise("dojo.ns.Ns.resolve: module '"+_445+"' not found after loading via namespace '"+this.name+"'");

}

this._failed[_445]=true;

}

}

return Boolean(this._loaded[_445]);

};

dojo.registerNamespace=function(name,_448,_449){

dojo.ns.register.apply(dojo.ns,arguments);

};

dojo.registerNamespaceResolver=function(name,_44b){

var n=dojo.ns.namespaces[name];

if(n){

n.resolver=_44b;

}

};

dojo.registerNamespaceManifest=function(_44d,path,name,_450,_451){

dojo.registerModulePath(name,path);

dojo.registerNamespace(name,_450,_451);

};

dojo.registerNamespace("dojo","dojo.widget");

dojo.provide("dojo.widget.Manager");

dojo.widget.manager=new function(){

this.widgets=[];

this.widgetIds=[];

this.topWidgets={};

var _452={};

var _453=[];

this.getUniqueId=function(_454){

var _455;

do{

_455=_454+"_"+(_452[_454]!=undefined?++_452[_454]:_452[_454]=0);

}while(this.getWidgetById(_455));

return _455;

};

this.add=function(_456){

this.widgets.push(_456);

if(!_456.extraArgs["id"]){

_456.extraArgs["id"]=_456.extraArgs["ID"];

}

if(_456.widgetId==""){

if(_456["id"]){

_456.widgetId=_456["id"];

}else{

if(_456.extraArgs["id"]){

_456.widgetId=_456.extraArgs["id"];

}else{

_456.widgetId=this.getUniqueId(_456.ns+"_"+_456.widgetType);

}

}

}

if(this.widgetIds[_456.widgetId]){

dojo.debug("widget ID collision on ID: "+_456.widgetId);

}

this.widgetIds[_456.widgetId]=_456;

};

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(_458){

if(dojo.lang.isNumber(_458)){

var tw=this.widgets[_458].widgetId;

delete this.widgetIds[tw];

this.widgets.splice(_458,1);

}else{

this.removeById(_458);

}

};

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 _45f=(type.indexOf(":")<0?function(x){

return x.widgetType.toLowerCase();

}:function(x){

return x.getNamespacedType();

});

var ret=[];

dojo.lang.forEach(this.widgets,function(x){

if(_45f(x)==lt){

ret.push(x);

}

});

return ret;

};

this.getWidgetsByFilter=function(_464,_465){

var ret=[];

dojo.lang.every(this.widgets,function(x){

if(_464(x)){

ret.push(x);

if(_465){

return false;

}

}

return true;

});

return (_465?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 _46b={};

var _46c=["dojo.widget"];

for(var i=0;i<_46c.length;i++){

_46c[_46c[i]]=true;

}

this.registerWidgetPackage=function(_46e){

if(!_46c[_46e]){

_46c[_46e]=true;

_46c.push(_46e);

}

};

this.getWidgetPackageList=function(){

return dojo.lang.map(_46c,function(elt){

return (elt!==true?elt:undefined);

});

};

this.getImplementation=function(_470,_471,_472,ns){

var impl=this.getImplementationName(_470,ns);

if(impl){

var ret=_471?new impl(_471):new impl();

return ret;

}

};

function buildPrefixCache(){

for(var _476 in dojo.render){

if(dojo.render[_476]["capable"]===true){

var _477=dojo.render[_476].prefixes;

for(var i=0;i<_477.length;i++){

_453.push(_477[i].toLowerCase());

}

}

}

}

var _479=function(_47a,_47b){

if(!_47b){

return null;

}

for(var i=0,l=_453.length,_47e;i<=l;i++){

_47e=(i<l?_47b[_453[i]]:_47b);

if(!_47e){

continue;

}

for(var name in _47e){

if(name.toLowerCase()==_47a){

return _47e[name];

}

}

}

return null;

};

var _480=function(_481,_482){

var _483=dojo.evalObjPath(_482,false);

return (_483?_479(_481,_483):null);

};

this.getImplementationName=function(_484,ns){

var _486=_484.toLowerCase();

ns=ns||"dojo";

var imps=_46b[ns]||(_46b[ns]={});

var impl=imps[_486];

if(impl){

return impl;

}

if(!_453.length){

buildPrefixCache();

}

var _489=dojo.ns.get(ns);

if(!_489){

dojo.ns.register(ns,ns+".widget");

_489=dojo.ns.get(ns);

}

if(_489){

_489.resolve(_484);

}

impl=_480(_486,_489.module);

if(impl){

return (imps[_486]=impl);

}

_489=dojo.ns.require(ns);

if((_489)&&(_489.resolver)){

_489.resolve(_484);

impl=_480(_486,_489.module);

if(impl){

return (imps[_486]=impl);

}

}

dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_484+"\" in \""+_489.module+"\" registered to namespace \""+_489.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");

for(var i=0;i<_46c.length;i++){

impl=_480(_486,_46c[i]);

if(impl){

return (imps[_486]=impl);

}

}

throw new Error("Could not locate widget implementation for \""+_484+"\" in \""+_489.module+"\" registered to namespace \""+_489.name+"\"");

};

this.resizing=false;

this.onWindowResized=function(){

if(this.resizing){

return;

}

try{

this.resizing=true;

for(var id in this.topWidgets){

var _48c=this.topWidgets[id];

if(_48c.checkSize){

_48c.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(_491,_492){

dw[(_492||_491)]=h(_491);

};

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 _494=dwm.getAllWidgets.apply(dwm,arguments);

if(arguments.length>0){

return _494[n];

}

return _494;

};

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(_496,uri){

var loc=dojo.hostenv.getModuleSymbols(_496).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 _49b=new dojo.uri.Uri(arguments[i].toString());

var _49c=new dojo.uri.Uri(uri.toString());

if((_49b.path=="")&&(_49b.scheme==null)&&(_49b.authority==null)&&(_49b.query==null)){

if(_49b.fragment!=null){

_49c.fragment=_49b.fragment;

}

_49b=_49c;

}else{

if(_49b.scheme==null){

_49b.scheme=_49c.scheme;

if(_49b.authority==null){

_49b.authority=_49c.authority;

if(_49b.path.charAt(0)!="/"){

var path=_49c.path.substring(0,_49c.path.lastIndexOf("/")+1)+_49b.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;

}

}

}

}

_49b.path=segs.join("/");

}

}

}

}

uri="";

if(_49b.scheme!=null){

uri+=_49b.scheme+":";

}

if(_49b.authority!=null){

uri+="//"+_49b.authority;

}

uri+=_49b.path;

if(_49b.query!=null){

uri+="?"+_49b.query;

}

if(_49b.fragment!=null){

uri+="#"+_49b.fragment;

}

}

this.uri=uri.toString();

var _4a0="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";

var r=this.uri.match(new RegExp(_4a0));

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){

_4a0="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";

r=this.authority.match(new RegExp(_4a0));

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 _4a4=dojo.global();

var _4a5=dojo.doc();

var w=0;

var h=0;

if(dojo.render.html.mozilla){

w=_4a5.documentElement.clientWidth;

h=_4a4.innerHeight;

}else{

if(!dojo.render.html.opera&&_4a4.innerWidth){

w=_4a4.innerWidth;

h=_4a4.innerHeight;

}else{

if(!dojo.render.html.opera&&dojo.exists(_4a5,"documentElement.clientWidth")){

var w2=_4a5.documentElement.clientWidth;

if(!w||w2&&w2<w){

w=w2;

}

h=_4a5.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 _4a9=dojo.global();

var _4aa=dojo.doc();

var top=_4a9.pageYOffset||_4aa.documentElement.scrollTop||dojo.body().scrollTop||0;

var left=_4a9.pageXOffset||_4aa.documentElement.scrollLeft||dojo.body().scrollLeft||0;

return {top:top,left:left,offset:{x:left,y:top}};

};

dojo.html.getParentByType=function(node,type){

var _4af=dojo.doc();

var _4b0=dojo.byId(node);

type=type.toLowerCase();

while((_4b0)&&(_4b0.nodeName.toLowerCase()!=type)){

if(_4b0==(_4af["body"]||_4af["documentElement"])){

return null;

}

_4b0=_4b0.parentNode;

}

return _4b0;

};

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 _4b8={x:0,y:0};

if(e.pageX||e.pageY){

_4b8.x=e.pageX;

_4b8.y=e.pageY;

}else{

var de=dojo.doc().documentElement;

var db=dojo.body();

_4b8.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);

_4b8.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);

}

return _4b8;

};

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 _4bd=dojo.doc().createElement("script");

_4bd.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";

dojo.doc().getElementsByTagName("head")[0].appendChild(_4bd);

})();

}

}else{

dojo.html.createExternalElement=function(doc,tag){

return doc.createElement(tag);

};

}

dojo.html._callDeprecated=function(_4c0,_4c1,args,_4c3,_4c4){

dojo.deprecated("dojo.html."+_4c0,"replaced by dojo.html."+_4c1+"("+(_4c3?"node, {"+_4c3+": "+_4c3+"}":"")+")"+(_4c4?"."+_4c4:""),"0.5");

var _4c5=[];

if(_4c3){

var _4c6={};

_4c6[_4c3]=args[1];

_4c5.push(args[0]);

_4c5.push(_4c6);

}else{

_4c5=args;

}

var ret=dojo.html[_4c1].apply(dojo.html,args);

if(_4c4){

return ret[_4c4];

}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 _4c9=null;

if(window.getComputedStyle){

var _4ca=getComputedStyle(div,"");

_4c9=_4ca.getPropertyValue("background-image");

}else{

_4c9=div.currentStyle.backgroundImage;

}

var _4cb=false;

if(_4c9!=null&&(_4c9=="none"||_4c9=="url(invalid-url:)")){

this.accessible=true;

}

dojo.body().removeChild(div);

}

return this.accessible;

},setCheckAccessible:function(_4cc){

this.doAccessibleCheck=_4cc;

},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 _4ce=this.children[i];

if(_4ce.onResized){

_4ce.onResized();

}

}

},create:function(args,_4d0,_4d1,ns){

if(ns){

this.ns=ns;

}

this.satisfyPropertySets(args,_4d0,_4d1);

this.mixInProperties(args,_4d0,_4d1);

this.postMixInProperties(args,_4d0,_4d1);

dojo.widget.manager.add(this);

this.buildRendering(args,_4d0,_4d1);

this.initialize(args,_4d0,_4d1);

this.postInitialize(args,_4d0,_4d1);

this.postCreate(args,_4d0,_4d1);

return this;

},destroy:function(_4d3){

if(this.parent){

this.parent.removeChild(this);

}

this.destroyChildren();

this.uninitialize();

this.destroyRendering(_4d3);

dojo.widget.manager.removeById(this.widgetId);

},destroyChildren:function(){

var _4d4;

var i=0;

while(this.children.length>i){

_4d4=this.children[i];

if(_4d4 instanceof dojo.widget.Widget){

this.removeChild(_4d4);

_4d4.destroy();

continue;

}

i++;

}

},getChildrenOfType:function(type,_4d7){

var ret=[];

var _4d9=dojo.lang.isFunction(type);

if(!_4d9){

type=type.toLowerCase();

}

for(var x=0;x<this.children.length;x++){

if(_4d9){

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(_4d7){

ret=ret.concat(this.children[x].getChildrenOfType(type,_4d7));

}

}

return ret;

},getDescendants:function(){

var _4db=[];

var _4dc=[this];

var elem;

while((elem=_4dc.pop())){

_4db.push(elem);

if(elem.children){

dojo.lang.forEach(elem.children,function(elem){

_4dc.push(elem);

});

}

}

return _4db;

},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 _4e3;

var _4e4=dojo.widget.lcArgsCache[this.widgetType];

if(_4e4==null){

_4e4={};

for(var y in this){

_4e4[((new String(y)).toLowerCase())]=y;

}

dojo.widget.lcArgsCache[this.widgetType]=_4e4;

}

var _4e6={};

for(var x in args){

if(!this[x]){

var y=_4e4[(new String(x)).toLowerCase()];

if(y){

args[y]=args[x];

x=y;

}

}

if(_4e6[x]){

continue;

}

_4e6[x]=true;

if((typeof this[x])!=(typeof _4e3)){

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 _4e8=args[x].split(";");

for(var y=0;y<_4e8.length;y++){

var si=_4e8[y].indexOf(":");

if((si!=-1)&&(_4e8[y].length>si)){

this[x][_4e8[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_4e8[y].substr(si+1);

}

}

}

}else{

this[x]=args[x];

}

}

}

}

}

}

}

}

}else{

this.extraArgs[x.toLowerCase()]=args[x];

}

}

},postMixInProperties:function(args,frag,_4ec){

},initialize:function(args,frag,_4ef){

return false;

},postInitialize:function(args,frag,_4f2){

return false;

},postCreate:function(args,frag,_4f5){

return false;

},uninitialize:function(){

return false;

},buildRendering:function(args,frag,_4f8){

dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");

return false;

},destroyRendering:function(){

dojo.unimplemented("dojo.widget.Widget.destroyRendering");

return false;

},addedTo:function(_4f9){

},addChild:function(_4fa){

dojo.unimplemented("dojo.widget.Widget.addChild");

return false;

},removeChild:function(_4fb){

for(var x=0;x<this.children.length;x++){

if(this.children[x]===_4fb){

this.children.splice(x,1);

_4fb.parent=null;

break;

}

}

return _4fb;

},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(_500,_501,_502){

var _503=_501.parseProperties(_500["dojo:propertyset"]);

};

dojo.widget.tags["dojo:connect"]=function(_504,_505,_506){

var _507=_505.parseProperties(_504["dojo:connect"]);

};

dojo.widget.buildWidgetFromParseTree=function(type,frag,_50a,_50b,_50c,_50d){

dojo.a11y.setAccessibleMode();

var _50e=type.split(":");

_50e=(_50e.length==2)?_50e[1]:type;

var _50f=_50d||_50a.parseProperties(frag[frag["ns"]+":"+_50e]);

var _510=dojo.widget.manager.getImplementation(_50e,null,null,frag["ns"]);

if(!_510){

throw new Error("cannot find \""+type+"\" widget");

}else{

if(!_510.create){

throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");

}

}

_50f["dojoinsertionindex"]=_50c;

var ret=_510.create(_50f,frag,_50b,frag["ns"]);

return ret;

};

dojo.widget.defineWidget=function(_512,_513,_514,init,_516){

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(_519,_51a,_51b,init,_51d){

var _51e=_519.split(".");

var type=_51e.pop();

var regx="\\.("+(_51a?_51a+"|":"")+dojo.widget.defineWidget.renderers+")\\.";

var r=_519.search(new RegExp(regx));

_51e=(r<0?_51e.join("."):_519.substr(0,r));

dojo.widget.manager.registerWidgetPackage(_51e);

var pos=_51e.indexOf(".");

var _523=(pos>-1)?_51e.substring(0,pos):_51e;

_51d=(_51d)||{};

_51d.widgetType=type;

if((!init)&&(_51d["classConstructor"])){

init=_51d.classConstructor;

delete _51d.classConstructor;

}

dojo.declare(_519,_51b,init,_51d);

};

dojo.provide("dojo.widget.Parse");

dojo.widget.Parse=function(_524){

this.propertySetsList=[];

this.fragment=_524;

this.createComponents=function(frag,_526){

var _527=[];

var _528=false;

try{

if(frag&&frag.tagName&&(frag!=frag.nodeRef)){

var _529=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(_529[ltn]){

_528=true;

ret=_529[ltn](frag,this,_526,frag.index);

_527.push(ret);

}else{

if(ltn.indexOf(":")==-1){

ltn="dojo:"+ltn;

}

ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_526,frag.index);

if(ret){

_528=true;

_527.push(ret);

}

}

}

}

}

catch(e){

dojo.debug("dojo.widget.Parse: error:",e);

}

if(!_528){

_527=_527.concat(this.createSubComponents(frag,_526));

}

return _527;

};

this.createSubComponents=function(_52e,_52f){

var frag,_531=[];

for(var item in _52e){

frag=_52e[item];

if(frag&&typeof frag=="object"&&(frag!=_52e.nodeRef)&&(frag!=_52e.tagName)&&(!dojo.dom.isNode(frag))){

_531=_531.concat(this.createComponents(frag,_52f));

}

}

return _531;

};

this.parsePropertySets=function(_533){

return [];

};

this.parseProperties=function(_534){

var _535={};

for(var item in _534){

if((_534[item]==_534.tagName)||(_534[item]==_534.nodeRef)){

}else{

var frag=_534[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 _538=this;

this.getDataProvider(_538,frag[0].value);

_535.dataProvider=this.dataProvider;

}

_535[item]=frag[0].value;

var _539=this.parseProperties(frag);

for(var _53a in _539){

_535[_53a]=_539[_53a];

}

}

catch(e){

dojo.debug(e);

}

}

}

switch(item.toLowerCase()){

case "checked":

case "disabled":

if(typeof _535[item]!="boolean"){

_535[item]=true;

}

break;

}

}

}

return _535;

};

this.getDataProvider=function(_53b,_53c){

dojo.io.bind({url:_53c,load:function(type,_53e){

if(type=="load"){

_53b.dataProvider=_53e;

}

},mimetype:"text/javascript",sync:true});

};

this.getPropertySetById=function(_53f){

for(var x=0;x<this.propertySetsList.length;x++){

if(_53f==this.propertySetsList[x]["id"][0].value){

return this.propertySetsList[x];

}

}

return "";

};

this.getPropertySetsByType=function(_541){

var _542=[];

for(var x=0;x<this.propertySetsList.length;x++){

var cpl=this.propertySetsList[x];

var cpcc=cpl.componentClass||cpl.componentType||null;

var _546=this.propertySetsList[x]["id"][0].value;

if(cpcc&&(_546==cpcc[0].value)){

_542.push(cpl);

}

}

return _542;

};

this.getPropertySets=function(_547){

var ppl="dojo:propertyproviderlist";

var _549=[];

var _54a=_547.tagName;

if(_547[ppl]){

var _54b=_547[ppl].value.split(" ");

for(var _54c in _54b){

if((_54c.indexOf("..")==-1)&&(_54c.indexOf("://")==-1)){

var _54d=this.getPropertySetById(_54c);

if(_54d!=""){

_549.push(_54d);

}

}else{

}

}

}

return this.getPropertySetsByType(_54a).concat(_549);

};

this.createComponentFromScript=function(_54e,_54f,_550,ns){

_550.fastMixIn=true;

var ltn=(ns||"dojo")+":"+_54f.toLowerCase();

if(dojo.widget.tags[ltn]){

return [dojo.widget.tags[ltn](_550,this,null,null,_550)];

}

return [dojo.widget.buildWidgetFromParseTree(ltn,_550,this,null,null,_550)];

};

};

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,_555,_556,_557){

var _558=false;

var _559=(typeof name=="string");

if(_559){

var pos=name.indexOf(":");

var ns=(pos>-1)?name.substring(0,pos):"dojo";

if(pos>-1){

name=name.substring(pos+1);

}

var _55c=name.toLowerCase();

var _55d=ns+":"+_55c;

_558=(dojo.byId(name)&&!dojo.widget.tags[_55d]);

}

if((arguments.length==1)&&(_558||!_559)){

var xp=new dojo.xml.Parse();

var tn=_558?dojo.byId(name):name;

return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];

}

function fromScript(_560,name,_562,ns){

_562[_55d]={dojotype:[{value:_55c}],nodeRef:_560,fastMixIn:true};

_562.ns=ns;

return dojo.widget.getParser().createComponentFromScript(_560,name,_562,ns);

}

_555=_555||{};

var _564=false;

var tn=null;

var h=dojo.render.html.capable;

if(h){

tn=document.createElement("span");

}

if(!_556){

_564=true;

_556=tn;

if(h){

dojo.body().appendChild(_556);

}

}else{

if(_557){

dojo.dom.insertAtPosition(tn,_556,_557);

}else{

tn=_556;

}

}

var _566=fromScript(tn,name.toLowerCase(),_555,ns);

if((!_566)||(!_566[0])||(typeof _566[0].widgetType=="undefined")){

throw new Error("createWidget: Creation of \""+name+"\" widget failed.");

}

try{

if(_564&&_566[0].domNode.parentNode){

_566[0].domNode.parentNode.removeChild(_566[0].domNode);

}

}

catch(e){

dojo.debug(e);

}

return _566[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,_56c){

return (new RegExp("(^|\\s+)"+_56c+"(\\s+|$)")).test(dojo.html.getClass(node));

};

dojo.html.prependClass=function(node,_56e){

_56e+=" "+dojo.html.getClass(node);

return dojo.html.setClass(node,_56e);

};

dojo.html.addClass=function(node,_570){

if(dojo.html.hasClass(node,_570)){

return false;

}

_570=(dojo.html.getClass(node)+" "+_570).replace(/^\s+|\s+$/g,"");

return dojo.html.setClass(node,_570);

};

dojo.html.setClass=function(node,_572){

node=dojo.byId(node);

var cs=new String(_572);

try{

if(typeof node.className=="string"){

node.className=cs;

}else{

if(node.setAttribute){

node.setAttribute("class",_572);

node.className=cs;

}else{

return false;

}

}

}

catch(e){

dojo.debug("dojo.html.setClass() failed",e);

}

return true;

};

dojo.html.removeClass=function(node,_575,_576){

try{

if(!_576){

var _577=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_575+"(\\s+|$)"),"$1$2");

}else{

var _577=dojo.html.getClass(node).replace(_575,"");

}

dojo.html.setClass(node,_577);

}

catch(e){

dojo.debug("dojo.html.removeClass() failed",e);

}

return true;

};

dojo.html.replaceClass=function(node,_579,_57a){

dojo.html.removeClass(node,_57a);

dojo.html.addClass(node,_579);

};

dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};

dojo.html.getElementsByClass=function(_57b,_57c,_57d,_57e,_57f){

_57f=false;

var _580=dojo.doc();

_57c=dojo.byId(_57c)||_580;

var _581=_57b.split(/\s+/g);

var _582=[];

if(_57e!=1&&_57e!=2){

_57e=0;

}

var _583=new RegExp("(\\s|^)(("+_581.join(")|(")+"))(\\s|$)");

var _584=_581.join(" ").length;

var _585=[];

if(!_57f&&_580.evaluate){

var _586=".//"+(_57d||"*")+"[contains(";

if(_57e!=dojo.html.classMatchType.ContainsAny){

_586+="concat(' ',@class,' '), ' "+_581.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";

if(_57e==2){

_586+=" and string-length(@class)="+_584+"]";

}else{

_586+="]";

}

}else{

_586+="concat(' ',@class,' '), ' "+_581.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";

}

var _587=_580.evaluate(_586,_57c,null,XPathResult.ANY_TYPE,null);

var _588=_587.iterateNext();

while(_588){

try{

_585.push(_588);

_588=_587.iterateNext();

}

catch(e){

break;

}

}

return _585;

}else{

if(!_57d){

_57d="*";

}

_585=_57c.getElementsByTagName(_57d);

var node,i=0;

outer:

while(node=_585[i++]){

var _58b=dojo.html.getClasses(node);

if(_58b.length==0){

continue outer;

}

var _58c=0;

for(var j=0;j<_58b.length;j++){

if(_583.test(_58b[j])){

if(_57e==dojo.html.classMatchType.ContainsAny){

_582.push(node);

continue outer;

}else{

_58c++;

}

}else{

if(_57e==dojo.html.classMatchType.IsOnly){

continue outer;

}

}

}

if(_58c==_581.length){

if((_57e==dojo.html.classMatchType.IsOnly)&&(_58c==_58b.length)){

_582.push(node);

}else{

if(_57e==dojo.html.classMatchType.ContainsAll){

_582.push(node);

}

}

}

}

return _582;

}

};

dojo.html.getElementsByClassName=dojo.html.getElementsByClass;

dojo.html.toCamelCase=function(_58e){

var arr=_58e.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(_592){

return _592.replace(/([A-Z])/g,"-$1").toLowerCase();

};

dojo.html.getComputedStyle=function(node,_594,_595){

node=dojo.byId(node);

var _594=dojo.html.toSelectorCase(_594);

var _596=dojo.html.toCamelCase(_594);

if(!node||!node.style){

return _595;

}else{

if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){

try{

var cs=document.defaultView.getComputedStyle(node,"");

if(cs){

return cs.getPropertyValue(_594);

}

}

catch(e){

if(node.style.getPropertyValue){

return node.style.getPropertyValue(_594);

}else{

return _595;

}

}

}else{

if(node.currentStyle){

return node.currentStyle[_596];

}

}

}

if(node.style.getPropertyValue){

return node.style.getPropertyValue(_594);

}else{

return _595;

}

};

dojo.html.getStyleProperty=function(node,_599){

node=dojo.byId(node);

return (node&&node.style?node.style[dojo.html.toCamelCase(_599)]:undefined);

};

dojo.html.getStyle=function(node,_59b){

var _59c=dojo.html.getStyleProperty(node,_59b);

return (_59c?_59c:dojo.html.getComputedStyle(node,_59b));

};

dojo.html.setStyle=function(node,_59e,_59f){

node=dojo.byId(node);

if(node&&node.style){

var _5a0=dojo.html.toCamelCase(_59e);

node.style[_5a0]=_59f;

}

};

dojo.html.setStyleText=function(_5a1,text){

try{

_5a1.style.cssText=text;

}

catch(e){

_5a1.setAttribute("style",text);

}

};

dojo.html.copyStyle=function(_5a3,_5a4){

if(!_5a4.style.cssText){

_5a3.setAttribute("style",_5a4.getAttribute("style"));

}else{

_5a3.style.cssText=_5a4.style.cssText;

}

dojo.html.addClass(_5a3,dojo.html.getClass(_5a4));

};

dojo.html.getUnitValue=function(node,_5a6,_5a7){

var s=dojo.html.getComputedStyle(node,_5a6);

if((!s)||((s=="auto")&&(_5a7))){

return {value:0,units:"px"};

}

var _5a9=s.match(/(\-?[\d.]+)([a-z%]*)/i);

if(!_5a9){

return dojo.html.getUnitValue.bad;

}

return {value:Number(_5a9[1]),units:_5a9[2].toLowerCase()};

};

dojo.html.getUnitValue.bad={value:NaN,units:""};

dojo.html.getPixelValue=function(node,_5ab,_5ac){

var _5ad=dojo.html.getUnitValue(node,_5ab,_5ac);

if(isNaN(_5ad.value)){

return 0;

}

if((_5ad.value)&&(_5ad.units!="px")){

return NaN;

}

return _5ad.value;

};

dojo.html.setPositivePixelValue=function(node,_5af,_5b0){

if(isNaN(_5b0)){

return false;

}

node.style[_5af]=Math.max(0,_5b0)+"px";

return true;

};

dojo.html.styleSheet=null;

dojo.html.insertCssRule=function(_5b1,_5b2,_5b3){

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){

_5b3=dojo.html.styleSheet.cssRules.length;

}else{

if(dojo.html.styleSheet.rules){

_5b3=dojo.html.styleSheet.rules.length;

}else{

return null;

}

}

}

if(dojo.html.styleSheet.insertRule){

var rule=_5b1+" { "+_5b2+" }";

return dojo.html.styleSheet.insertRule(rule,_5b3);

}else{

if(dojo.html.styleSheet.addRule){

return dojo.html.styleSheet.addRule(_5b1,_5b2,_5b3);

}else{

return null;

}

}

};

dojo.html.removeCssRule=function(_5b5){

if(!dojo.html.styleSheet){

dojo.debug("no stylesheet defined for removing rules");

return false;

}

if(dojo.render.html.ie){

if(!_5b5){

_5b5=dojo.html.styleSheet.rules.length;

dojo.html.styleSheet.removeRule(_5b5);

}

}else{

if(document.styleSheets[0]){

if(!_5b5){

_5b5=dojo.html.styleSheet.cssRules.length;

}

dojo.html.styleSheet.deleteRule(_5b5);

}

}

return true;

};

dojo.html._insertedCssFiles=[];

dojo.html.insertCssFile=function(URI,doc,_5b8,_5b9){

if(!URI){

return;

}

if(!doc){

doc=document;

}

var _5ba=dojo.hostenv.getText(URI,false,_5b9);

if(_5ba===null){

return;

}

_5ba=dojo.html.fixPathsInCssText(_5ba,URI);

if(_5b8){

var idx=-1,node,ent=dojo.html._insertedCssFiles;

for(var i=0;i<ent.length;i++){

if((ent[i].doc==doc)&&(ent[i].cssText==_5ba)){

idx=i;

node=ent[i].nodeRef;

break;

}

}

if(node){

var _5bf=doc.getElementsByTagName("style");

for(var i=0;i<_5bf.length;i++){

if(_5bf[i]==node){

return;

}

}

dojo.html._insertedCssFiles.shift(idx,1);

}

}

var _5c0=dojo.html.insertCssText(_5ba,doc);

dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_5ba,"nodeRef":_5c0});

if(_5c0&&djConfig.isDebug){

_5c0.setAttribute("dbgHref",URI);

}

return _5c0;

};

dojo.html.insertCssText=function(_5c1,doc,URI){

if(!_5c1){

return;

}

if(!doc){

doc=document;

}

if(URI){

_5c1=dojo.html.fixPathsInCssText(_5c1,URI);

}

var _5c4=doc.createElement("style");

_5c4.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(_5c4);

}

if(_5c4.styleSheet){

var _5c6=function(){

try{

_5c4.styleSheet.cssText=_5c1;

}

catch(e){

dojo.debug(e);

}

};

if(_5c4.styleSheet.disabled){

setTimeout(_5c6,10);

}else{

_5c6();

}

}else{

var _5c7=doc.createTextNode(_5c1);

_5c4.appendChild(_5c7);

}

return _5c4;

};

dojo.html.fixPathsInCssText=function(_5c8,URI){

if(!_5c8||!URI){

return;

}

var _5ca,str="",url="",_5cd="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";

var _5ce=new RegExp("url\\(\\s*("+_5cd+")\\s*\\)");

var _5cf=/(file|https?|ftps?):\/\//;

regexTrim=new RegExp("^[\\s]*(['\"]?)("+_5cd+")\\1[\\s]*?$");

if(dojo.render.html.ie55||dojo.render.html.ie60){

var _5d0=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_5cd+")['\"]");

while(_5ca=_5d0.exec(_5c8)){

url=_5ca[2].replace(regexTrim,"$2");

if(!_5cf.exec(url)){

url=(new dojo.uri.Uri(URI,url).toString());

}

str+=_5c8.substring(0,_5ca.index)+"AlphaImageLoader("+_5ca[1]+"src='"+url+"'";

_5c8=_5c8.substr(_5ca.index+_5ca[0].length);

}

_5c8=str+_5c8;

str="";

}

while(_5ca=_5ce.exec(_5c8)){

url=_5ca[1].replace(regexTrim,"$2");

if(!_5cf.exec(url)){

url=(new dojo.uri.Uri(URI,url).toString());

}

str+=_5c8.substring(0,_5ca.index)+"url("+url+")";

_5c8=_5c8.substr(_5ca.index+_5ca[0].length);

}

return str+_5c8;

};

dojo.html.setActiveStyleSheet=function(_5d1){

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")==_5d1){

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 _5dd={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 _5dd){

if(_5dd[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,_5e0,_5e1,_5e2){

var _5e3=_5e0||obj.templatePath;

var _5e4=dojo.widget._templateCache;

if(!_5e3&&!obj["widgetType"]){

do{

var _5e5="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;

}while(_5e4[_5e5]);

obj.widgetType=_5e5;

}

var wt=_5e3?_5e3.toString():obj.widgetType;

var ts=_5e4[wt];

if(!ts){

_5e4[wt]={"string":null,"node":null};

if(_5e2){

ts={};

}else{

ts=_5e4[wt];

}

}

if((!obj.templateString)&&(!_5e2)){

obj.templateString=_5e1||ts["string"];

}

if((!obj.templateNode)&&(!_5e2)){

obj.templateNode=ts["node"];

}

if((!obj.templateNode)&&(!obj.templateString)&&(_5e3)){

var _5e8=dojo.hostenv.getText(_5e3);

if(_5e8){

_5e8=_5e8.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");

var _5e9=_5e8.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);

if(_5e9){

_5e8=_5e9[1];

}

}else{

_5e8="";

}

obj.templateString=_5e8;

if(!_5e2){

_5e4[wt]["string"]=_5e8;

}

}

if((!ts["string"])&&(!_5e2)){

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,_5ed){

if(dojo.render.html.ie){

node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_5ed);

}else{

node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_5ed);

}

},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 _5f4=true;

if(dojo.render.html.ie){

_5f4=node.removeAttribute(this[ns].alias+":"+attr);

}else{

node.removeAttributeNS(this[ns]["namespace"],attr);

}

return _5f4;

}};

dojo.widget.attachTemplateNodes=function(_5f5,_5f6,_5f7){

var _5f8=dojo.dom.ELEMENT_NODE;

function trim(str){

return str.replace(/^\s+|\s+$/g,"");

}

if(!_5f5){

_5f5=_5f6.domNode;

}

if(_5f5.nodeType!=_5f8){

return;

}

var _5fa=_5f5.all||_5f5.getElementsByTagName("*");

var _5fb=_5f6;

for(var x=-1;x<_5fa.length;x++){

var _5fd=(x==-1)?_5f5:_5fa[x];

var _5fe=[];

if(!_5f6.widgetsInTemplate||!_5fd.getAttribute("dojoType")){

for(var y=0;y<this.attachProperties.length;y++){

var _600=_5fd.getAttribute(this.attachProperties[y]);

if(_600){

_5fe=_600.split(";");

for(var z=0;z<_5fe.length;z++){

if(dojo.lang.isArray(_5f6[_5fe[z]])){

_5f6[_5fe[z]].push(_5fd);

}else{

_5f6[_5fe[z]]=_5fd;

}

}

break;

}

}

var _602=_5fd.getAttribute(this.eventAttachProperty);

if(_602){

var evts=_602.split(";");

for(var y=0;y<evts.length;y++){

if((!evts[y])||(!evts[y].length)){

continue;

}

var _604=null;

var tevt=trim(evts[y]);

if(evts[y].indexOf(":")>=0){

var _606=tevt.split(":");

tevt=trim(_606[0]);

_604=trim(_606[1]);

}

if(!_604){

_604=tevt;

}

var tf=function(){

var ntf=new String(_604);

return function(evt){

if(_5fb[ntf]){

_5fb[ntf](dojo.event.browser.fixEvent(evt,this));

}

};

}();

dojo.event.browser.addListener(_5fd,tevt,tf,false,true);

}

}

for(var y=0;y<_5f7.length;y++){

var _60a=_5fd.getAttribute(_5f7[y]);

if((_60a)&&(_60a.length)){

var _604=null;

var _60b=_5f7[y].substr(4);

_604=trim(_60a);

var _60c=[_604];

if(_604.indexOf(";")>=0){

_60c=dojo.lang.map(_604.split(";"),trim);

}

for(var z=0;z<_60c.length;z++){

if(!_60c[z].length){

continue;

}

var tf=function(){

var ntf=new String(_60c[z]);

return function(evt){

if(_5fb[ntf]){

_5fb[ntf](dojo.event.browser.fixEvent(evt,this));

}

};

}();

dojo.event.browser.addListener(_5fd,_60b,tf,false,true);

}

}

}

}

var _60f=_5fd.getAttribute(this.templateProperty);

if(_60f){

_5f6[_60f]=_5fd;

}

dojo.lang.forEach(dojo.widget.waiNames,function(name){

var wai=dojo.widget.wai[name];

var val=_5fd.getAttribute(wai.name);

if(val){

if(val.indexOf("-")==-1){

dojo.widget.wai.setAttr(_5fd,wai.name,"role",val);

}else{

var _613=val.split("-");

dojo.widget.wai.setAttr(_5fd,wai.name,_613[0],_613[1]);

}

}

},this);

var _614=_5fd.getAttribute(this.onBuildProperty);

if(_614){

eval("var node = baseNode; var widget = targetObj; "+_614);

}

}

};

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(_61c,_61d,pos,ref,_620){

if(!this.isContainer){

dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");

return null;

}else{

if(_620==undefined){

_620=this.children.length;

}

this.addWidgetAsDirectChild(_61c,_61d,pos,ref,_620);

this.registerChild(_61c,_620);

}

return _61c;

},addWidgetAsDirectChild:function(_621,_622,pos,ref,_625){

if((!this.containerNode)&&(!_622)){

this.containerNode=this.domNode;

}

var cn=(_622)?_622:this.containerNode;

if(!pos){

pos="after";

}

if(!ref){

if(!cn){

cn=dojo.body();

}

ref=cn.lastChild;

}

if(!_625){

_625=0;

}

_621.domNode.setAttribute("dojoinsertionindex",_625);

if(!ref){

cn.appendChild(_621.domNode);

}else{

if(pos=="insertAtIndex"){

dojo.dom.insertAtIndex(_621.domNode,ref.parentNode,_625);

}else{

if((pos=="after")&&(ref===cn.lastChild)){

cn.appendChild(_621.domNode);

}else{

dojo.dom.insertAtPosition(_621.domNode,cn,pos);

}

}

}

},registerChild:function(_627,_628){

_627.dojoInsertionIndex=_628;

var idx=-1;

for(var i=0;i<this.children.length;i++){

if(this.children[i].dojoInsertionIndex<=_628){

idx=i;

}

}

this.children.splice(idx+1,0,_627);

_627.parent=this;

_627.addedTo(this,idx+1);

delete dojo.widget.manager.topWidgets[_627.widgetId];

},removeChild:function(_62b){

dojo.dom.removeNode(_62b.domNode);

return dojo.widget.DomWidget.superclass.removeChild.call(this,_62b);

},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,_62f){

var _630=this.getFragNodeRef(frag);

if(_62f&&(_62f.snarfChildDomOutput||!_630)){

_62f.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_630);

}else{

if(_630){

if(this.domNode&&(this.domNode!==_630)){

this._sourceNodeRef=dojo.dom.replaceNode(_630,this.domNode);

}

}

}

if(_62f){

_62f.registerChild(this,args.dojoinsertionindex);

}else{

dojo.widget.manager.topWidgets[this.widgetId]=this;

}

if(this.widgetsInTemplate){

var _631=new dojo.xml.Parse();

var _632;

var _633=this.domNode.getElementsByTagName("*");

for(var i=0;i<_633.length;i++){

if(_633[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){

_632=_633[i];

}

if(_633[i].getAttribute("dojoType")){

_633[i].setAttribute("isSubWidget",true);

}

}

if(this.isContainer&&!this.containerNode){

if(_632){

var src=this.getFragNodeRef(frag);

if(src){

dojo.dom.moveChildren(src,_632);

frag["dojoDontFollow"]=true;

}

}else{

dojo.debug("No subContainerWidget node can be found in template file for widget "+this);

}

}

var _636=_631.parseElement(this.domNode,null,true);

dojo.widget.getParser().createSubComponents(_636,this);

var _637=[];

var _638=[this];

var w;

while((w=_638.pop())){

for(var i=0;i<w.children.length;i++){

var _63a=w.children[i];

if(_63a._processedSubWidgets||!_63a.extraArgs["issubwidget"]){

continue;

}

_637.push(_63a);

if(_63a.isContainer){

_638.push(_63a);

}

}

}

for(var i=0;i<_637.length;i++){

var _63b=_637[i];

if(_63b._processedSubWidgets){

dojo.debug("This should not happen: widget._processedSubWidgets is already true!");

return;

}

_63b._processedSubWidgets=true;

if(_63b.extraArgs["dojoattachevent"]){

var evts=_63b.extraArgs["dojoattachevent"].split(";");

for(var j=0;j<evts.length;j++){

var _63e=null;

var tevt=dojo.string.trim(evts[j]);

if(tevt.indexOf(":")>=0){

var _640=tevt.split(":");

tevt=dojo.string.trim(_640[0]);

_63e=dojo.string.trim(_640[1]);

}

if(!_63e){

_63e=tevt;

}

if(dojo.lang.isFunction(_63b[tevt])){

dojo.event.kwConnect({srcObj:_63b,srcFunc:tevt,targetObj:this,targetFunc:_63e});

}else{

alert(tevt+" is not a function in widget "+_63b);

}

}

}

if(_63b.extraArgs["dojoattachpoint"]){

this[_63b.extraArgs["dojoattachpoint"]]=_63b;

}

}

}

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 _644=args["templateCssPath"]||this.templateCssPath;

if(_644&&!dojo.widget._cssFiles[_644.toString()]){

if((!this.templateCssString)&&(_644)){

this.templateCssString=dojo.hostenv.getText(_644);

this.templateCssPath=null;

}

dojo.widget._cssFiles[_644.toString()]=true;

}

if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){

dojo.html.insertCssText(this.templateCssString,null,_644);

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 _647=false;

if(args["templatepath"]){

args["templatePath"]=args["templatepath"];

}

dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_647);

var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];

if((ts)&&(!_647)){

if(!this.templateString.length){

this.templateString=ts["string"];

}

if(!this.templateNode){

this.templateNode=ts["node"];

}

}

var _649=false;

var node=null;

var tstr=this.templateString;

if((!this.templateNode)&&(this.templateString)){

_649=this.templateString.match(/\$\{([^\}]+)\}/g);

if(_649){

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<_649.length;i++){

var key=_649[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 _650;

if((kval)||(dojo.lang.isString(kval))){

_650=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);

while(_650.indexOf("\"")>-1){

_650=_650.replace("\"","&quot;");

}

tstr=tstr.replace(_649[i],_650);

}

}

}else{

this.templateNode=this.createNodesFromText(this.templateString,true)[0];

if(!_647){

ts.node=this.templateNode;

}

}

}

if((!this.templateNode)&&(!_649)){

dojo.debug("DomWidget.buildFromTemplate: could not create template");

return false;

}else{

if(!_649){

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(_652,_653){

if(!_652){

_652=this.domNode;

}

if(!_653){

_653=this;

}

return dojo.widget.attachTemplateNodes(_652,_653,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,_655,_656){

node=dojo.byId(node);

_656(node,!_655(node));

return _655(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,_65b){

dojo.html[(_65b?"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,_661){

dojo.html.setStyle(node,"display",((_661 instanceof String||typeof _661=="string")?_661:(_661?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,_665){

dojo.html.setStyle(node,"visibility",((_665 instanceof String||typeof _665=="string")?_665:(_665?"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,_669,_66a){

node=dojo.byId(node);

var h=dojo.render.html;

if(!_66a){

if(_669>=1){

if(h.ie){

dojo.html.clearOpacity(node);

return;

}else{

_669=0.999999;

}

}else{

if(_669<0){

_669=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="+_669*100+")";

}

}

node.style.filter="Alpha(Opacity="+_669*100+")";

}else{

if(h.moz){

node.style.opacity=_669;

node.style.MozOpacity=_669;

}else{

if(h.safari){

node.style.opacity=_669;

node.style.KhtmlOpacity=_669;

}else{

node.style.opacity=_669;

}

}

}

};

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 _676=0;

while(node){

if(dojo.html.getComputedStyle(node,"position")=="fixed"){

return 0;

}

var val=node[prop];

if(val){

_676+=val-0;

if(node==dojo.body()){

break;

}

}

node=node.parentNode;

}

return _676;

};

dojo.html.setStyleAttributes=function(node,_679){

node=dojo.byId(node);

var _67a=_679.replace(/(;)?\s*$/,"").split(";");

for(var i=0;i<_67a.length;i++){

var _67c=_67a[i].split(":");

var name=_67c[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();

var _67e=_67c[1].replace(/\s*$/,"").replace(/^\s*/,"");

switch(name){

case "opacity":

dojo.html.setOpacity(node,_67e);

break;

case "content-height":

dojo.html.setContentBox(node,{height:_67e});

break;

case "content-width":

dojo.html.setContentBox(node,{width:_67e});

break;

case "outer-height":

dojo.html.setMarginBox(node,{height:_67e});

break;

case "outer-width":

dojo.html.setMarginBox(node,{width:_67e});

break;

default:

node.style[dojo.html.toCamelCase(name)]=_67e;

}

}

};

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,_680,_681){

node=dojo.byId(node,node.ownerDocument);

var ret={x:0,y:0};

var bs=dojo.html.boxSizing;

if(!_681){

_681=bs.CONTENT_BOX;

}

var _684=2;

var _685;

switch(_681){

case bs.MARGIN_BOX:

_685=3;

break;

case bs.BORDER_BOX:

_685=2;

break;

case bs.PADDING_BOX:

default:

_685=1;

break;

case bs.CONTENT_BOX:

_685=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){

_684=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 _689;

if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){

_689=db;

}else{

_689=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 _68b=node;

do{

var n=_68b["offsetLeft"];

if(!h.opera||n>0){

ret.x+=isNaN(n)?0:n;

}

var m=_68b["offsetTop"];

ret.y+=isNaN(m)?0:m;

_68b=_68b.offsetParent;

}while((_68b!=_689)&&(_68b!=null));

}else{

if(node["x"]&&node["y"]){

ret.x+=isNaN(node.x)?0:node.x;

ret.y+=isNaN(node.y)?0:node.y;

}

}

}

}

if(_680){

var _68e=dojo.html.getScroll();

ret.y+=_68e.top;

ret.x+=_68e.left;

}

var _68f=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];

if(_684>_685){

for(var i=_685;i<_684;++i){

ret.y+=_68f[i](node,"top");

ret.x+=_68f[i](node,"left");

}

}else{

if(_684<_685){

for(var i=_685;i>_684;--i){

ret.y-=_68f[i-1](node,"top");

ret.x-=_68f[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,_693,_694){

var _695=0;

for(var x=0;x<_693.length;x++){

_695+=dojo.html.getPixelValue(node,_693[x],_694);

}

return _695;

};

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 _6a2=dojo.html.getBorder(node);

return {width:pad.width+_6a2.width,height:pad.height+_6a2.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 _6a7=dojo.html.getStyle(node,"-moz-box-sizing");

if(!_6a7){

_6a7=dojo.html.getStyle(node,"box-sizing");

}

return (_6a7?_6a7: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 _6ac=dojo.html.getBorder(node);

return {width:box.width-_6ac.width,height:box.height-_6ac.height};

};

dojo.html.getContentBox=function(node){

node=dojo.byId(node);

var _6ae=dojo.html.getPadBorder(node);

return {width:node.offsetWidth-_6ae.width,height:node.offsetHeight-_6ae.height};

};

dojo.html.setContentBox=function(node,args){

node=dojo.byId(node);

var _6b1=0;

var _6b2=0;

var isbb=dojo.html.isBorderBox(node);

var _6b4=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});

var ret={};

if(typeof args.width!="undefined"){

_6b1=args.width+_6b4.width;

ret.width=dojo.html.setPositivePixelValue(node,"width",_6b1);

}

if(typeof args.height!="undefined"){

_6b2=args.height+_6b4.height;

ret.height=dojo.html.setPositivePixelValue(node,"height",_6b2);

}

return ret;

};

dojo.html.getMarginBox=function(node){

var _6b7=dojo.html.getBorderBox(node);

var _6b8=dojo.html.getMargin(node);

return {width:_6b7.width+_6b8.width,height:_6b7.height+_6b8.height};

};

dojo.html.setMarginBox=function(node,args){

node=dojo.byId(node);

var _6bb=0;

var _6bc=0;

var isbb=dojo.html.isBorderBox(node);

var _6be=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});

var _6bf=dojo.html.getMargin(node);

var ret={};

if(typeof args.width!="undefined"){

_6bb=args.width-_6be.width;

_6bb-=_6bf.width;

ret.width=dojo.html.setPositivePixelValue(node,"width",_6bb);

}

if(typeof args.height!="undefined"){

_6bc=args.height-_6be.height;

_6bc-=_6bf.height;

ret.height=dojo.html.setPositivePixelValue(node,"height",_6bc);

}

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(_6c4,_6c5,_6c6){

if(_6c4 instanceof Array||typeof _6c4=="array"){

dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");

while(_6c4.length<4){

_6c4.push(0);

}

while(_6c4.length>4){

_6c4.pop();

}

var ret={left:_6c4[0],top:_6c4[1],width:_6c4[2],height:_6c4[3]};

}else{

if(!_6c4.nodeType&&!(_6c4 instanceof String||typeof _6c4=="string")&&("width" in _6c4||"height" in _6c4||"left" in _6c4||"x" in _6c4||"top" in _6c4||"y" in _6c4)){

var ret={left:_6c4.left||_6c4.x||0,top:_6c4.top||_6c4.y||0,width:_6c4.width||0,height:_6c4.height||0};

}else{

var node=dojo.byId(_6c4);

var pos=dojo.html.abs(node,_6c5,_6c6);

var _6ca=dojo.html.getMarginBox(node);

var ret={left:pos.left,top:pos.top,width:_6ca.width,height:_6ca.height};

}

}

ret.x=ret.left;

ret.y=ret.top;

return ret;

};

dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_6cc){

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,_6cf){

return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);

};

dojo.html.getAbsoluteX=function(node,_6d1){

return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");

};

dojo.html.getAbsoluteY=function(node,_6d3){

return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");

};

dojo.html.totalOffsetLeft=function(node,_6d5){

return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");

};

dojo.html.totalOffsetTop=function(node,_6d7){

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,_6e1){

return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");

};

dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_6e3){

return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");

};

dojo.provide("dojo.html.util");

dojo.html.getElementWindow=function(_6e4){

return dojo.html.getDocumentWindow(_6e4.ownerDocument);

};

dojo.html.getDocumentWindow=function(doc){

if(dojo.render.html.safari&&!doc._parentWindow){

var fix=function(win){

win.document._parentWindow=win;

for(var i=0;i<win.frames.length;i++){

fix(win.frames[i]);

}

};

fix(window.top);

}

if(dojo.render.html.ie&&window!==document.parentWindow&&!doc._parentWindow){

doc.parentWindow.execScript("document._parentWindow = window;","Javascript");

var win=doc._parentWindow;

doc._parentWindow=null;

return win;

}

return doc._parentWindow||doc.parentWindow||doc.defaultView;

};

dojo.html.gravity=function(node,e){

node=dojo.byId(node);

var _6ec=dojo.html.getCursorPosition(e);

with(dojo.html){

var _6ed=getAbsolutePosition(node,true);

var bb=getBorderBox(node);

var _6ef=_6ed.x+(bb.width/2);

var _6f0=_6ed.y+(bb.height/2);

}

with(dojo.html.gravity){

return ((_6ec.x<_6ef?WEST:EAST)|(_6ec.y<_6f0?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(_6f1,e){

_6f1=dojo.byId(_6f1);

var _6f3=dojo.html.getCursorPosition(e);

var bb=dojo.html.getBorderBox(_6f1);

var _6f5=dojo.html.getAbsolutePosition(_6f1,true,dojo.html.boxSizing.BORDER_BOX);

var top=_6f5.y;

var _6f7=top+bb.height;

var left=_6f5.x;

var _6f9=left+bb.width;

return (_6f3.x>=left&&_6f3.x<=_6f9&&_6f3.y>=top&&_6f3.y<=_6f7);

};

dojo.html.renderedTextContent=function(node){

node=dojo.byId(node);

var _6fb="";

if(node==null){

return _6fb;

}

for(var i=0;i<node.childNodes.length;i++){

switch(node.childNodes[i].nodeType){

case 1:

case 5:

var _6fd="unknown";

try{

_6fd=dojo.html.getStyle(node.childNodes[i],"display");

}

catch(E){

}

switch(_6fd){

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":

_6fb+="\n";

_6fb+=dojo.html.renderedTextContent(node.childNodes[i]);

_6fb+="\n";

break;

case "none":

break;

default:

if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){

_6fb+="\n";

}else{

_6fb+=dojo.html.renderedTextContent(node.childNodes[i]);

}

break;

}

break;

case 3:

case 2:

case 4:

var text=node.childNodes[i].nodeValue;

var _6ff="unknown";

try{

_6ff=dojo.html.getStyle(node,"text-transform");

}

catch(E){

}

switch(_6ff){

case "capitalize":

var _700=text.split(" ");

for(var i=0;i<_700.length;i++){

_700[i]=_700[i].charAt(0).toUpperCase()+_700[i].substring(1);

}

text=_700.join(" ");

break;

case "uppercase":

text=text.toUpperCase();

break;

case "lowercase":

text=text.toLowerCase();

break;

default:

break;

}

switch(_6ff){

case "nowrap":

break;

case "pre-wrap":

break;

case "pre-line":

break;

case "pre":

break;

default:

text=text.replace(/\s+/," ");

if(/\s$/.test(_6fb)){

text.replace(/^\s/,"");

}

break;

}

_6fb+=text;

break;

default:

break;

}

}

return _6fb;

};

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 _704="none";

if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){

txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";

_704="cell";

}else{

if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){

txt="<table><tbody>"+txt+"</tbody></table>";

_704="row";

}else{

if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){

txt="<table>"+txt+"</table>";

_704="section";

}

}

}

tn.innerHTML=txt;

if(tn["normalize"]){

tn.normalize();

}

var _705=null;

switch(_704){

case "cell":

_705=tn.getElementsByTagName("tr")[0];

break;

case "row":

_705=tn.getElementsByTagName("tbody")[0];

break;

case "section":

_705=tn.getElementsByTagName("table")[0];

break;

default:

_705=tn;

break;

}

var _706=[];

for(var x=0;x<_705.childNodes.length;x++){

_706.push(_705.childNodes[x].cloneNode(true));

}

tn.style.display="none";

dojo.html.destroyNode(tn);

return _706;

};

dojo.html.placeOnScreen=function(node,_709,_70a,_70b,_70c,_70d,_70e){

if(_709 instanceof Array||typeof _709=="array"){

_70e=_70d;

_70d=_70c;

_70c=_70b;

_70b=_70a;

_70a=_709[1];

_709=_709[0];

}

if(_70d instanceof String||typeof _70d=="string"){

_70d=_70d.split(",");

}

if(!isNaN(_70b)){

_70b=[Number(_70b),Number(_70b)];

}else{

if(!(_70b instanceof Array||typeof _70b=="array")){

_70b=[0,0];

}

}

var _70f=dojo.html.getScroll().offset;

var view=dojo.html.getViewport();

node=dojo.byId(node);

var _711=node.style.display;

node.style.display="";

var bb=dojo.html.getBorderBox(node);

var w=bb.width;

var h=bb.height;

node.style.display=_711;

if(!(_70d instanceof Array||typeof _70d=="array")){

_70d=["TL"];

}

var _715,_716,_717=Infinity,_718;

for(var _719=0;_719<_70d.length;++_719){

var _71a=_70d[_719];

var _71b=true;

var tryX=_709-(_71a.charAt(1)=="L"?0:w)+_70b[0]*(_71a.charAt(1)=="L"?1:-1);

var tryY=_70a-(_71a.charAt(0)=="T"?0:h)+_70b[1]*(_71a.charAt(0)=="T"?1:-1);

if(_70c){

tryX-=_70f.x;

tryY-=_70f.y;

}

if(tryX<0){

tryX=0;

_71b=false;

}

if(tryY<0){

tryY=0;

_71b=false;

}

var x=tryX+w;

if(x>view.width){

x=view.width-w;

_71b=false;

}else{

x=tryX;

}

x=Math.max(_70b[0],x)+_70f.x;

var y=tryY+h;

if(y>view.height){

y=view.height-h;

_71b=false;

}else{

y=tryY;

}

y=Math.max(_70b[1],y)+_70f.y;

if(_71b){

_715=x;

_716=y;

_717=0;

_718=_71a;

break;

}else{

var dist=Math.pow(x-tryX-_70f.x,2)+Math.pow(y-tryY-_70f.y,2);

if(_717>dist){

_717=dist;

_715=x;

_716=y;

_718=_71a;

}

}

}

if(!_70e){

node.style.left=_715+"px";

node.style.top=_716+"px";

}

return {left:_715,top:_716,x:_715,y:_716,dist:_717,corner:_718};

};

dojo.html.placeOnScreenPoint=function(node,_722,_723,_724,_725){

dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");

return dojo.html.placeOnScreen(node,_722,_723,_724,_725,["TL","TR","BL","BR"]);

};

dojo.html.placeOnScreenAroundElement=function(node,_727,_728,_729,_72a,_72b){

var best,_72d=Infinity;

_727=dojo.byId(_727);

var _72e=_727.style.display;

_727.style.display="";

var mb=dojo.html.getElementBox(_727,_729);

var _730=mb.width;

var _731=mb.height;

var _732=dojo.html.getAbsolutePosition(_727,true,_729);

_727.style.display=_72e;

for(var _733 in _72a){

var pos,_735,_736;

var _737=_72a[_733];

_735=_732.x+(_733.charAt(1)=="L"?0:_730);

_736=_732.y+(_733.charAt(0)=="T"?0:_731);

pos=dojo.html.placeOnScreen(node,_735,_736,_728,true,_737,true);

if(pos.dist==0){

best=pos;

break;

}else{

if(_72d>pos.dist){

_72d=pos.dist;

best=pos;

}

}

}

if(!_72b){

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 _739=node.parentNode;

var _73a=_739.scrollTop+dojo.html.getBorderBox(_739).height;

var _73b=node.offsetTop+dojo.html.getMarginBox(node).height;

if(_73a<_73b){

_739.scrollTop+=(_73b-_73a);

}else{

if(_739.scrollTop>node.offsetTop){

_739.scrollTop-=(_739.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(_742){

if(_742){

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(_743,_744){

var rgb=null;

if(dojo.lang.isArray(_743)){

rgb=_743;

}else{

if(_743 instanceof dojo.gfx.color.Color){

rgb=_743.toRgb();

}else{

rgb=new dojo.gfx.color.Color(_743).toRgb();

}

}

return dojo.gfx.color.blend(this.toRgb(),rgb,_744);

}});

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,_748){

if(typeof a=="string"){

return dojo.gfx.color.blendHex(a,b,_748);

}

if(!_748){

_748=0;

}

_748=Math.min(Math.max(-1,_748),1);

_748=((_748+1)/2);

var c=[];

for(var x=0;x<3;x++){

c[x]=parseInt(b[x]+((a[x]-b[x])*_748));

}

return c;

};

dojo.gfx.color.blendHex=function(a,b,_74d){

return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_74d));

};

dojo.gfx.color.extractRGB=function(_74e){

var hex="0123456789abcdef";

_74e=_74e.toLowerCase();

if(_74e.indexOf("rgb")==0){

var _750=_74e.match(/rgba*\((\d+), *(\d+), *(\d+)/i);

var ret=_750.splice(1,3);

return ret;

}else{

var _752=dojo.gfx.color.hex2rgb(_74e);

if(_752){

return _752;

}else{

return dojo.gfx.color.named[_74e]||[255,255,255];

}

}

};

dojo.gfx.color.hex2rgb=function(hex){