/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	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.
*/

(function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i<_1.length;i++){var _7=_1[i];_2+="var "+_7[0]+" = {}; "+_7[1]+" = "+_7[0]+";"+_7[1]+"._scopeName = '"+_7[1]+"';";_3+=(i==0?"":",")+_7[0];_4+=(i==0?"":",")+_7[1];_5[_7[0]]=_7[1];_6[_7[1]]=_7[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(typeof this["loadFirebugConsole"]=="function"){this["loadFirebugConsole"]();}else{this.console=this.console||{};var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _8=tn+"";console[_8]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(_8+":");console["log"](a.join(" "));}:function(){};console[_8]._fake=true;})();}}}if(typeof dojo=="undefined"){dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var _9 in djConfig){d.config[_9]=djConfig[_9];}}dojo.locale=d.config.locale;var _a="$Rev: 20973 $".match(/\d+/);dojo.version={major:6,minor:11,patch:0,flag:"",revision:_a?+_a[0]:NaN,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());}var _b,_c,_d={};for(var i in {toString:1}){_b=[];break;}dojo._extraNames=_b=_b||["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString"];_c=_b.length;dojo._mixin=function(_e,_f){var _10,s,i;for(_10 in _f){s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}if(_c&&_f){for(i=0;i<_c;++i){_10=_b[i];s=_f[_10];if(!(_10 in _e)||(_e[_10]!==s&&(!(_10 in _d)||_d[_10]!==s))){_e[_10]=s;}}}return _e;};dojo.mixin=function(obj,_11){if(!obj){obj={};}for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i]);}return obj;};dojo._getProp=function(_12,_13,_14){var obj=_14||d.global;for(var i=0,p;obj&&(p=_12[i]);i++){if(i==0&&d._scopeMap[p]){p=d._scopeMap[p];}obj=(p in obj?obj[p]:(_13?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_15,_16,_17){var _18=_15.split("."),p=_18.pop(),obj=d._getProp(_18,true,_17);return obj&&p?(obj[p]=_16):undefined;};dojo.getObject=function(_19,_1a,_1b){return d._getProp(_19.split("."),_1a,_1b);};dojo.exists=function(_1c,obj){return !!d.getObject(_1c,false,obj);};dojo["eval"]=function(_1d){return d.global.eval?d.global.eval(_1d):eval(_1d);};d.deprecated=d.experimental=function(){};})();(function(){var d=dojo;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_1e){var mp=d._modulePrefixes;return !!(mp[_1e]&&mp[_1e].value);},_getModulePrefix:function(_1f){var mp=d._modulePrefixes;if(d._moduleHasPrefix(_1f)){return mp[_1f].value;}return _1f;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadPath=function(_20,_21,cb){var uri=((_20.charAt(0)=="/"||_20.match(/^\w+:/))?"":d.baseUrl)+_20;try{return !_21?d._loadUri(uri,cb):d._loadUriAndCheck(uri,_21,cb);}catch(e){console.error(e);return false;}};dojo._loadUri=function(uri,cb){if(d._loadedUrls[uri]){return true;}d._inFlightCount++;var _22=d._getText(uri,true);if(_22){d._loadedUrls[uri]=true;d._loadedUrls.push(uri);if(cb){_22="("+_22+")";}else{_22=d._scopePrefix+_22+d._scopeSuffix;}if(!d.isIE){_22+="\r\n//@ sourceURL="+uri;}var _23=d["eval"](_22);if(cb){cb(_23);}}if(--d._inFlightCount==0&&d._postLoad&&d._loaders.length){setTimeout(function(){if(d._inFlightCount==0){d._callLoaded();}},0);}return !!_22;};dojo._loadUriAndCheck=function(uri,_24,cb){var ok=false;try{ok=d._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return !!(ok&&d._loadedModules[_24]);};dojo.loaded=function(){d._loadNotifying=true;d._postLoad=true;var mll=d._loaders;d._loaders=[];for(var x=0;x<mll.length;x++){mll[x]();}d._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded();}};dojo.unloaded=function(){var mll=d._unloaders;while(mll.length){(mll.pop())();}};d._onto=function(arr,obj,fn){if(!fn){arr.push(obj);}else{if(fn){var _25=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_25.call(obj);});}}};dojo.ready=dojo.addOnLoad=function(obj,_26){d._onto(d._loaders,obj,_26);if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};var dca=d.config.addOnLoad;if(dca){d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca);}dojo._modulesLoaded=function(){if(d._postLoad){return;}if(d._inFlightCount>0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(d.config.useXDomain&&d.isOpera)){setTimeout(d.isAIR?function(){d.loaded();}:d._scopeName+".loaded();",0);}else{d.loaded();}};dojo._getModuleSymbols=function(_27){var _28=_27.split(".");for(var i=_28.length;i>0;i--){var _29=_28.slice(0,i).join(".");if(i==1&&!d._moduleHasPrefix(_29)){_28[0]="../"+_28[0];}else{var _2a=d._getModulePrefix(_29);if(_2a!=_29){_28.splice(0,i,_2a);break;}}}return _28;};dojo._global_omit_module_check=false;dojo.loadInit=function(_2b){_2b();};dojo._loadModule=dojo.require=function(_2c,_2d){_2d=d._global_omit_module_check||_2d;var _2e=d._loadedModules[_2c];if(_2e){return _2e;}var _2f=d._getModuleSymbols(_2c).join("/")+".js";var _30=!_2d?_2c:null;var ok=d._loadPath(_2f,_30);if(!ok&&!_2d){throw new Error("Could not load '"+_2c+"'; last tried '"+_2f+"'");}if(!_2d&&!d._isXDomain){_2e=d._loadedModules[_2c];if(!_2e){throw new Error("symbol '"+_2c+"' is not defined after loading '"+_2f+"'");}}return _2e;};dojo.provide=function(_31){_31=_31+"";return (d._loadedModules[_31]=d.getObject(_31,true));};dojo.platformRequire=function(_32){var _33=_32.common||[];var _34=_33.concat(_32[d._name]||_32["default"]||[]);for(var x=0;x<_34.length;x++){var _35=_34[x];if(_35.constructor==Array){d._loadModule.apply(d,_35);}else{d._loadModule(_35);}}};dojo.requireIf=function(_36,_37){if(_36===true){var _38=[];for(var i=1;i<arguments.length;i++){_38.push(arguments[i]);}d.require.apply(d,_38);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_39,_3a){d._modulePrefixes[_39]={name:_39,value:_3a};};dojo.requireLocalization=function(_3b,_3c,_3d,_3e){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");dojo._Url=function(){var n=null,_3f=arguments,uri=[_3f[0]];for(var i=1;i<_3f.length;i++){if(!_3f[i]){continue;}var _40=new d._Url(_3f[i]+""),_41=new d._Url(uri[0]+"");if(_40.path==""&&!_40.scheme&&!_40.authority&&!_40.query){if(_40.fragment!=n){_41.fragment=_40.fragment;}_40=_41;}else{if(!_40.scheme){_40.scheme=_41.scheme;if(!_40.authority){_40.authority=_41.authority;if(_40.path.charAt(0)!="/"){var _42=_41.path.substring(0,_41.path.lastIndexOf("/")+1)+_40.path;var _43=_42.split("/");for(var j=0;j<_43.length;j++){if(_43[j]=="."){if(j==_43.length-1){_43[j]="";}else{_43.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_43[0]=="")&&_43[j]==".."&&_43[j-1]!=".."){if(j==(_43.length-1)){_43.splice(j,1);_43[j-1]="";}else{_43.splice(j-1,2);j-=2;}}}}_40.path=_43.join("/");}}}}uri=[];if(_40.scheme){uri.push(_40.scheme,":");}if(_40.authority){uri.push("//",_40.authority);}uri.push(_40.path);if(_40.query){uri.push("?",_40.query);}if(_40.fragment){uri.push("#",_40.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_44,url){var loc=d._getModuleSymbols(_44).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _45=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_45==-1||_45>loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _46=document.getElementsByTagName("script");var _47=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_46.length;i++){var src=_46[i].getAttribute("src");if(!src){continue;}var m=src.match(_47);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=_46[i].getAttribute("djConfig");if(cfg){var _48=eval("({ "+cfg+" })");for(var x in _48){dojo.config[x]=_48[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);if(dua.indexOf("Opera")>=0){d.isOpera=tv;}if(dua.indexOf("AdobeAIR")>=0){d.isAIR=1;}d.isKhtml=(dav.indexOf("Konqueror")>=0)?tv:0;d.isWebKit=parseFloat(dua.split("WebKit/")[1])||undefined;d.isChrome=parseFloat(dua.split("Chrome/")[1])||undefined;d.isMac=dav.indexOf("Macintosh")>=0;var _49=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(_49&&!dojo.isChrome){d.isSafari=parseFloat(dav.split("Version/")[1]);if(!d.isSafari||parseFloat(dav.substr(_49+7))<=419.3){d.isSafari=2;}}if(dua.indexOf("Gecko")>=0&&!d.isKhtml&&!d.isWebKit){d.isMozilla=d.isMoz=tv;}if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var _4a=document.documentMode;if(_4a&&_4a!=5&&Math.floor(d.isIE)!=_4a){d.isIE=_4a;}}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}d.isQuirks=document.compatMode=="BackCompat";d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _4b,_4c;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_4b=new XMLHttpRequest();}catch(e){}}if(!_4b){for(var i=0;i<3;++i){var _4d=d._XMLHTTP_PROGIDS[i];try{_4b=new ActiveXObject(_4d);}catch(e){_4c=e;}if(_4b){d._XMLHTTP_PROGIDS=[_4d];break;}}}if(!_4b){throw new Error("XMLHTTP not available: "+_4c);}return _4b;};d._isDocumentOk=function(_4e){var _4f=_4e.status||0,lp=location.protocol;return (_4f>=200&&_4f<300)||_4f==304||_4f==1223||(!_4f&&(lp=="file:"||lp=="chrome:"||lp=="app:"));};var _50=window.location+"";var _51=document.getElementsByTagName("base");var _52=(_51&&_51.length>0);d._getText=function(uri,_53){var _54=d._xhrObj();if(!_52&&dojo._Url){uri=(new dojo._Url(_50,uri)).toString();}if(d.config.cacheBust){uri+="";uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_54.open("GET",uri,false);try{_54.send(null);if(!d._isDocumentOk(_54)){var err=Error("Unable to load "+uri+" status:"+_54.status);err.status=_54.status;err.responseText=_54.responseText;throw err;}}catch(e){if(_53){return null;}throw e;}return _54.responseText;};var _55=window;var _56=function(_57,fp){var _58=_55.attachEvent||_55.addEventListener;_57=_55.attachEvent?_57:_57.substring(2);_58(_57,function(){fp.apply(_55,arguments);},false);};d._windowUnloaders=[];d.windowUnloaded=function(){var mll=d._windowUnloaders;while(mll.length){(mll.pop())();}};var _59=0;d.addOnWindowUnload=function(obj,_5a){d._onto(d._windowUnloaders,obj,_5a);if(!_59){_59=1;_56("onunload",d.windowUnloaded);}};var _5b=0;d.addOnUnload=function(obj,_5c){d._onto(d._unloaders,obj,_5c);if(!_5b){_5b=1;_56("onbeforeunload",dojo.unloaded);}};})();dojo._initFired=false;dojo._loadInit=function(e){if(!dojo._initFired){dojo._initFired=true;if(!dojo.config.afterOnLoad&&window.detachEvent){window.detachEvent("onload",dojo._loadInit);}if(dojo._inFlightCount==0){dojo._modulesLoaded();}}};if(!dojo.config.afterOnLoad){if(document.addEventListener){document.addEventListener("DOMContentLoaded",dojo._loadInit,false);window.addEventListener("load",dojo._loadInit,false);}else{if(window.attachEvent){window.attachEvent("onload",dojo._loadInit);}}}if(dojo.isIE){if(!dojo.config.afterOnLoad&&!dojo.config.skipIeDomLoaded){document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");}try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");var _5d=["*","group","roundrect","oval","shape","rect","imagedata"],i=0,l=1,s=document.createStyleSheet();if(dojo.isIE>=8){i=1;l=_5d.length;}for(;i<l;++i){s.addRule("v\\:"+_5d[i],"behavior:url(#default#VML); display:inline-block");}}catch(e){}}}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _5e in mp){dojo.registerModulePath(_5e,mp[_5e]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");dojo.require("dojo.i18n");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");(function(){var d=dojo,_5f=Object.prototype.toString;dojo.isString=function(it){return (typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=function(it){return _5f.call(it)==="[object Function]";};dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||d.isArray(it)||d.isFunction(it));};dojo.isArrayLike=function(it){return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!d.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_60,_61){for(var i=1,l=arguments.length;i<l;i++){d._mixin(_60.prototype,arguments[i]);}return _60;};dojo._hitchArgs=function(_62,_63){var pre=d._toArray(arguments,2);var _64=d.isString(_63);return function(){var _65=d._toArray(arguments);var f=_64?(_62||d.global)[_63]:_63;return f&&f.apply(_62||this,pre.concat(_65));};};dojo.hitch=function(_66,_67){if(arguments.length>2){return d._hitchArgs.apply(d,arguments);}if(!_67){_67=_66;_66=null;}if(d.isString(_67)){_66=_66||d.global;if(!_66[_67]){throw (["dojo.hitch: scope[\"",_67,"\"] is null (scope=\"",_66,"\")"].join(""));}return function(){return _66[_67].apply(_66,arguments||[]);};}return !_66?_67:function(){return _67.apply(_66,arguments||[]);};};dojo.delegate=dojo._delegate=(function(){function TMP(){};return function(obj,_68){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_68){d._mixin(tmp,_68);}return tmp;};})();var _69=function(obj,_6a,_6b){return (_6b||[]).concat(Array.prototype.slice.call(obj,_6a||0));};var _6c=function(obj,_6d,_6e){var arr=_6e||[];for(var x=_6d||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo._toArray=d.isIE?function(obj){return ((obj.item)?_6c:_69).apply(this,arguments);}:_69;dojo.partial=function(_6f){var arr=[null];return d.hitch.apply(d,arr.concat(d._toArray(arguments)));};var _70=d._extraNames,_71=_70.length,_72={};dojo.clone=function(o){if(!o||typeof o!="object"||d.isFunction(o)){return o;}if(o.nodeType&&o.cloneNode){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}var r,i,l,s,_73;if(d.isArray(o)){r=[];for(i=0,l=o.length;i<l;++i){if(i in o){r.push(d.clone(o[i]));}}}else{r=o.constructor?new o.constructor():{};}for(_73 in o){s=o[_73];if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){r[_73]=d.clone(s);}}if(_71){for(i=0;i<_71;++i){_73=_70[i];s=o[_73];if(!(_73 in r)||(r[_73]!==s&&(!(_73 in _72)||_72[_73]!==s))){r[_73]=s;}}}return r;};dojo.trim=String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};var _74=/\{([^\}]+)\}/g;dojo.replace=function(_75,map,_76){return _75.replace(_76||_74,d.isFunction(map)?map:function(_77,k){return d.getObject(k,false,map);});};})();}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _78=function(arr,obj,cb){return [(typeof arr=="string")?arr.split(""):arr,obj||dojo.global,(typeof cb=="string")?new Function("item","index","array",cb):cb];};var _79=function(_7a,arr,_7b,_7c){var _7d=_78(arr,_7c,_7b);arr=_7d[0];for(var i=0,l=arr.length;i<l;++i){var _7e=!!_7d[2].call(_7d[1],arr[i],i,arr);if(_7a^_7e){return _7e;}}return _7a;};dojo.mixin(dojo,{indexOf:function(_7f,_80,_81,_82){var _83=1,end=_7f.length||0,i=0;if(_82){i=end-1;_83=end=-1;}if(_81!=undefined){i=_81;}if((_82&&i>end)||i<end){for(;i!=end;i+=_83){if(_7f[i]==_80){return i;}}}return -1;},lastIndexOf:function(_84,_85,_86){return dojo.indexOf(_84,_85,_86,true);},forEach:function(arr,_87,_88){if(!arr||!arr.length){return;}var _89=_78(arr,_88,_87);arr=_89[0];for(var i=0,l=arr.length;i<l;++i){_89[2].call(_89[1],arr[i],i,arr);}},every:function(arr,_8a,_8b){return _79(true,arr,_8a,_8b);},some:function(arr,_8c,_8d){return _79(false,arr,_8c,_8d);},map:function(arr,_8e,_8f){var _90=_78(arr,_8f,_8e);arr=_90[0];var _91=(arguments[3]?(new arguments[3]()):[]);for(var i=0,l=arr.length;i<l;++i){_91.push(_90[2].call(_90[1],arr[i],i,arr));}return _91;},filter:function(arr,_92,_93){var _94=_78(arr,_93,_92);arr=_94[0];var _95=[];for(var i=0,l=arr.length;i<l;++i){if(_94[2].call(_94[1],arr[i],i,arr)){_95.push(arr[i]);}}return _95;}});})();}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");(function(){var d=dojo,mix=d._mixin,op=Object.prototype,_96=op.toString,_97=new Function,_98=0,_99="constructor";function err(msg){throw new Error("declare: "+msg);};function _9a(_9b){var _9c=[],_9d=[{cls:0,refs:[]}],_9e={},_9f=1,l=_9b.length,i=0,j,lin,_a0,top,_a1,rec,_a2,_a3;for(;i<l;++i){_a0=_9b[i];if(!_a0){err("mixin #"+i+" is null");}lin=_a0._meta?_a0._meta.bases:[_a0];top=0;for(j=lin.length-1;j>=0;--j){_a1=lin[j].prototype;if(!_a1.hasOwnProperty("declaredClass")){_a1.declaredClass="uniqName_"+(_98++);}_a2=_a1.declaredClass;if(!_9e.hasOwnProperty(_a2)){_9e[_a2]={count:0,refs:[],cls:lin[j]};++_9f;}rec=_9e[_a2];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_9d[0].refs.push(top);}while(_9d.length){top=_9d.pop();_9c.push(top.cls);--_9f;while(_a3=top.refs,_a3.length==1){top=_a3[0];if(!top||--top.count){top=0;break;}_9c.push(top.cls);--_9f;}if(top){for(i=0,l=_a3.length;i<l;++i){top=_a3[i];if(!--top.count){_9d.push(top);}}}}if(_9f){err("can't build consistent linearization");}_a0=_9b[0];_9c[0]=_a0?_a0._meta&&_a0===_9c[_9c.length-_a0._meta.bases.length]?_a0._meta.bases.length:1:0;return _9c;};function _a4(_a5,a,f){var _a6,_a7,_a8,_a9,_aa,_ab,_ac,opf,pos,_ad=this._inherited=this._inherited||{};if(typeof _a5=="string"){_a6=_a5;_a5=a;a=f;}f=0;_a9=_a5.callee;_a6=_a6||_a9.nom;if(!_a6){err("can't deduce a name to call inherited()");}_aa=this.constructor._meta;_a8=_aa.bases;pos=_ad.p;if(_a6!=_99){if(_ad.c!==_a9){pos=0;_ab=_a8[0];_aa=_ab._meta;if(_aa.hidden[_a6]!==_a9){_a7=_aa.chains;if(_a7&&typeof _a7[_a6]=="string"){err("calling chained method with inherited: "+_a6);}do{_aa=_ab._meta;_ac=_ab.prototype;if(_aa&&(_ac[_a6]===_a9&&_ac.hasOwnProperty(_a6)||_aa.hidden[_a6]===_a9)){break;}}while(_ab=_a8[++pos]);pos=_ab?pos:-1;}}_ab=_a8[++pos];if(_ab){_ac=_ab.prototype;if(_ab._meta&&_ac.hasOwnProperty(_a6)){f=_ac[_a6];}else{opf=op[_a6];do{_ac=_ab.prototype;f=_ac[_a6];if(f&&(_ab._meta?_ac.hasOwnProperty(_a6):f!==opf)){break;}}while(_ab=_a8[++pos]);}}f=_ab&&f||op[_a6];}else{if(_ad.c!==_a9){pos=0;_aa=_a8[0]._meta;if(_aa&&_aa.ctor!==_a9){_a7=_aa.chains;if(!_a7||_a7.constructor!=="manual"){err("calling chained constructor with inherited");}while(_ab=_a8[++pos]){_aa=_ab._meta;if(_aa&&_aa.ctor===_a9){break;}}pos=_ab?pos:-1;}}while(_ab=_a8[++pos]){_aa=_ab._meta;f=_aa?_aa.ctor:_ab;if(f){break;}}f=_ab&&f;}_ad.c=f;_ad.p=pos;if(f){return a===true?f:f.apply(this,a||_a5);}};function _ae(_af,_b0){if(typeof _af=="string"){return this.inherited(_af,_b0,true);}return this.inherited(_af,true);};function _b1(cls){var _b2=this.constructor._meta.bases;for(var i=0,l=_b2.length;i<l;++i){if(_b2[i]===cls){return true;}}return this instanceof cls;};function _b3(_b4,_b5){var _b6,t,i=0,l=d._extraNames.length;for(_b6 in _b5){t=_b5[_b6];if((t!==op[_b6]||!(_b6 in op))&&_b6!=_99){if(_96.call(t)=="[object Function]"){t.nom=_b6;}_b4[_b6]=t;}}for(;i<l;++i){_b6=d._extraNames[i];t=_b5[_b6];if((t!==op[_b6]||!(_b6 in op))&&_b6!=_99){if(_96.call(t)=="[object Function]"){t.nom=_b6;}_b4[_b6]=t;}}return _b4;};function _b7(_b8){_b3(this.prototype,_b8);return this;};function _b9(_ba,_bb){return function(){var a=arguments,_bc=a,a0=a[0],f,i,m,l=_ba.length,_bd;if(_bb&&(a0&&a0.preamble||this.preamble)){_bd=new Array(_ba.length);_bd[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_ba[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_bd[i]=a;}}for(i=l-1;i>=0;--i){f=_ba[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_bd?_bd[i]:a);}}f=this.postscript;if(f){f.apply(this,_bc);}};};function _be(_bf,_c0){return function(){var a=arguments,t=a,a0=a[0],f;if(_c0){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(_bf){_bf.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _c1(_c2){return function(){var a=arguments,i=0,f;for(;f=_c2[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function _c3(_c4,_c5,_c6){return function(){var b,m,f,i=0,_c7=1;if(_c6){i=_c5.length-1;_c7=-1;}for(;b=_c5[i];i+=_c7){m=b._meta;f=(m?m.hidden:b.prototype)[_c4];if(f){f.apply(this,arguments);}}};};d.declare=function(_c8,_c9,_ca){var _cb,i,t,_cc,_cd,_ce,_cf,_d0=1,_d1=_c9;if(typeof _c8!="string"){_ca=_c9;_c9=_c8;_c8="";}_ca=_ca||{};if(_96.call(_c9)=="[object Array]"){_ce=_9a(_c9);t=_ce[0];_d0=_ce.length-t;_c9=_ce[_d0];}else{_ce=[0];if(_c9){t=_c9._meta;_ce=_ce.concat(t?t.bases:_c9);}}if(_c9){for(i=_d0-1;;--i){_97.prototype=_c9.prototype;_cb=new _97;if(!i){break;}t=_ce[i];mix(_cb,t._meta?t._meta.hidden:t.prototype);_cc=new Function;_cc.superclass=_c9;_cc.prototype=_cb;_c9=_cb.constructor=_cc;}}else{_cb={};}_b3(_cb,_ca);t=_ca.constructor;if(t!==op.constructor){t.nom=_99;_cb.constructor=t;}_97.prototype=0;for(i=_d0-1;i;--i){t=_ce[i]._meta;if(t&&t.chains){_cf=mix(_cf||{},t.chains);}}if(_cb["-chains-"]){_cf=mix(_cf||{},_cb["-chains-"]);}t=!_cf||!_cf.hasOwnProperty(_99);_ce[0]=_cc=(_cf&&_cf.constructor==="manual")?_c1(_ce):(_ce.length==1?_be(_ca.constructor,t):_b9(_ce,t));_cc._meta={bases:_ce,hidden:_ca,chains:_cf,parents:_d1,ctor:_ca.constructor};_cc.superclass=_c9&&_c9.prototype;_cc.extend=_b7;_cc.prototype=_cb;_cb.constructor=_cc;_cb.getInherited=_ae;_cb.inherited=_a4;_cb.isInstanceOf=_b1;if(_c8){_cb.declaredClass=_c8;d.setObject(_c8,_cc);}if(_cf){for(_cd in _cf){if(_cb[_cd]&&typeof _cf[_cd]=="string"&&_cd!=_99){t=_cb[_cd]=_c3(_cd,_ce,_cf[_cd]==="after");t.nom=_cd;}}}return _cc;};d.safeMixin=_b3;})();}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;var r=t&&t.apply(this,arguments);var lls;lls=[].concat(ls);for(var i in lls){if(!(i in ap)){lls[i].apply(this,arguments);}}return r;};},add:function(_d2,_d3,_d4){_d2=_d2||dojo.global;var f=_d2[_d3];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_d2[_d3]=d;}return f._listeners.push(_d4);},remove:function(_d5,_d6,_d7){var f=(_d5||dojo.global)[_d6];if(f&&f._listeners&&_d7--){delete f._listeners[_d7];}}};dojo.connect=function(obj,_d8,_d9,_da,_db){var a=arguments,_dc=[],i=0;_dc.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];_dc.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){_dc.push(a[i]);}return dojo._connect.apply(this,_dc);};dojo._connect=function(obj,_dd,_de,_df){var l=dojo._listener,h=l.add(obj,_dd,dojo.hitch(_de,_df));return [obj,_dd,h,l];};dojo.disconnect=function(_e0){if(_e0&&_e0[0]!==undefined){dojo._disconnect.apply(this,_e0);delete _e0[0];}};dojo._disconnect=function(obj,_e1,_e2,_e3){_e3.remove(obj,_e1,_e2);};dojo._topics={};dojo.subscribe=function(_e4,_e5,_e6){return [_e4,dojo._listener.add(dojo._topics,_e4,dojo.hitch(_e5,_e6))];};dojo.unsubscribe=function(_e7){if(_e7){dojo._listener.remove(dojo._topics,_e7[0],_e7[1]);}};dojo.publish=function(_e8,_e9){var f=dojo._topics[_e8];if(f){f.apply(this,_e9||[]);}};dojo.connectPublisher=function(_ea,obj,_eb){var pf=function(){dojo.publish(_ea,arguments);};return (_eb)?dojo.connect(obj,_eb,pf):dojo.connect(obj,pf);};}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");dojo.Deferred=function(_ec){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_ec;this.silentlyCancelled=false;this.isFiring=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){var err;if(this.fired==-1){if(this.canceller){err=this.canceller(this);}else{this.silentlyCancelled=true;}if(this.fired==-1){if(!(err instanceof Error)){var res=err;var msg="Deferred Cancelled";if(err&&err.toString){msg+=": "+err.toString();}err=new Error(msg);err.dojoType="cancel";err.cancelResult=res;}this.errback(err);}}else{if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){this.results[0].cancel();}}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}this.silentlyCancelled=false;return;}},callback:function(res){this._check();this._resback(res);},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res);}this._resback(res);},addBoth:function(cb,_ed){var _ee=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_ee,_ee);},addCallback:function(cb,_ef){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(cb,_f0){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0&&!this.isFiring){this._fire();}return this;},_fire:function(){this.isFiring=true;var _f1=this.chain;var _f2=this.fired;var res=this.results[_f2];var _f3=this;var cb=null;while((_f1.length>0)&&(this.paused==0)){var f=_f1.shift()[_f2];if(!f){continue;}var _f4=function(){var ret=f(res);if(typeof ret!="undefined"){res=ret;}_f2=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){_f3._resback(res);_f3.paused--;if((_f3.paused==0)&&(_f3.fired>=0)){_f3._fire();}};this.paused++;}};if(dojo.config.debugAtAllCosts){_f4.call(this);}else{try{_f4.call(this);}catch(err){_f2=1;res=err;}}}this.fired=_f2;this.results[_f2]=res;this.isFiring=false;if((cb)&&(this.paused)){res.addBoth(cb);}}});}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(_f5){return eval("("+_f5+")");};dojo._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.toJsonIndentStr="\t";dojo.toJson=function(it,_f6,_f7){if(it===undefined){return "undefined";}var _f8=typeof it;if(_f8=="number"||_f8=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}var _f9=arguments.callee;var _fa;_f7=_f7||"";var _fb=_f6?_f7+dojo.toJsonIndentStr:"";var tf=it.__json__||it.json;if(dojo.isFunction(tf)){_fa=tf.call(it);if(it!==_fa){return _f9(_fa,_f6,_fb);}}if(it.nodeType&&it.cloneNode){throw new Error("Can't serialize DOM nodes");}var sep=_f6?" ":"";var _fc=_f6?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_f9(obj,_f6,_fb);if(typeof val!="string"){val="undefined";}return _fc+_fb+val;});return "["+res.join(","+sep)+_fc+_f7+"]";}if(_f8=="function"){return null;}var _fd=[],key;for(key in it){var _fe,val;if(typeof key=="number"){_fe="\""+key+"\"";}else{if(typeof key=="string"){_fe=dojo._escapeString(key);}else{continue;}}val=_f9(it[key],_f6,_fb);if(typeof val!="string"){continue;}_fd.push(_fc+_fb+_fe+":"+sep+val);}return "{"+_fd.join(","+sep)+_fc+_f7+"}";};}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");(function(){var d=dojo;dojo.Color=function(_ff){if(_ff){this.setColor(_ff);}};dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:d.config.transparentColor||[255,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_100){if(d.isString(_100)){d.colorFromString(_100,this);}else{if(d.isArray(_100)){d.colorFromArray(_100,this);}else{this._set(_100.r,_100.g,_100.b,_100.a);if(!(_100 instanceof d.Color)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=d.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_101){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_101?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_102,end,_103,obj){var t=obj||new d.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_102[x]+(end[x]-_102[x])*_103;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_104,obj){var m=_104.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_105,obj){var t=obj||new d.Color(),bits=(_105.length==4)?4:8,mask=(1<<bits)-1;_105=Number("0x"+_105.substr(1));if(isNaN(_105)){return null;}d.forEach(["b","g","r"],function(x){var c=_105&mask;_105>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new d.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=d.Color.named[str];return a&&d.colorFromArray(a,obj)||d.colorFromRgb(str,obj)||d.colorFromHex(str,obj);};})();}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_106,_107){dojo.global=_106;dojo.doc=_107;};dojo.withGlobal=function(_108,_109,_10a,_10b){var _10c=dojo.global;try{dojo.global=_108;return dojo.withDoc.call(null,_108.document,_109,_10a,_10b);}finally{dojo.global=_10c;}};dojo.withDoc=function(_10d,_10e,_10f,_110){var _111=dojo.doc,_112=dojo._bodyLtr,oldQ=dojo.isQuirks;try{dojo.doc=_10d;delete dojo._bodyLtr;dojo.isQuirks=dojo.doc.compatMode=="BackCompat";if(_10f&&typeof _10e=="string"){_10e=_10f[_10e];}return _10e.apply(_10f,_110||[]);}finally{dojo.doc=_111;delete dojo._bodyLtr;if(_112!==undefined){dojo._bodyLtr=_112;}dojo.isQuirks=oldQ;}};}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var _113=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_114,_115){if(node){_114=del._normalizeEventName(_114);if(!dojo.isIE&&(_114=="mouseenter"||_114=="mouseleave")){_114=(_114=="mouseenter")?"mouseover":"mouseout";}node.removeEventListener(_114,_115,false);}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name;},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_116){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}});dojo.fixEvent=function(evt,_117){return del._fixEvent(evt,_117);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _118=dojo._listener;dojo._connect=function(obj,_119,_11a,_11b,_11c){var _11d=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=_11d?(_11c?2:1):0,l=[dojo._listener,del,_118][lid];var h=l.add(obj,_119,dojo.hitch(_11a,_11b));return [obj,_119,h,lid];};dojo._disconnect=function(obj,_11e,_11f,_120){([dojo._listener,del,_118][_120]).remove(obj,_11e,_11f);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:dojo.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:dojo.isMac&&!dojo.isAIR?(dojo.isSafari?91:224):17};var _121=dojo.isMac?"metaKey":"ctrlKey";dojo.isCopyKey=function(e){return e[_121];};if(dojo.isIE){dojo.mouseButtons={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_122){return e.button&_122;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{dojo.mouseButtons={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_123){return e.button==_123;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}if(dojo.isIE){var _124=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;var _125=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners");if(!dojo.config._allow_leaks){_118=iel=dojo._ie_listener={handlers:[],add:function(_126,_127,_128){_126=_126||dojo.global;var f=_126[_127];if(!f||!f[_125]){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d[_125]=[];f=_126[_127]=d;}return f[_125].push(ieh.push(_128)-1);},remove:function(_129,_12a,_12b){var f=(_129||dojo.global)[_12a],l=f&&f[_125];if(f&&l&&_12b--){delete ieh[l[_12b]];delete l[_12b];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_12c,fp){if(!node){return;}_12c=del._normalizeEventName(_12c);if(_12c=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd[_125]||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(node,_12c,del._fixCallback(fp));},remove:function(node,_12d,_12e){_12d=del._normalizeEventName(_12d);iel.remove(node,_12d,_12e);if(_12d=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_12f){return _12f.slice(0,2)!="on"?"on"+_12f:_12f;},_nop:function(){},_fixEvent:function(evt,_130){if(!evt){var w=_130&&(_130.ownerDocument||_130.document||_130).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_130||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _131=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _132=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_131.scrollLeft||0)-_132.x;evt.pageY=evt.clientY+(_131.scrollTop||0)-_132.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;del._setKeyChar(evt);break;}return evt;},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp[_125]){return;}var k=evt.keyCode;var _133=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_133||evt.ctrlKey){var c=_133?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_124(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_124(this,0);}this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);};}del._synthesizeEvent=function(evt,_134){var faux=dojo.mixin({},evt,_134);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_135){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=c<41&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32;}return del._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isWebKit){del._add=del.add;del._remove=del.remove;dojo.mixin(del,{add:function(node,_136,fp){if(!node){return;}var _137=del._add(node,_136,fp);if(del._normalizeEventName(_136)=="keypress"){_137._stealthKeyDownHandle=del._add(node,"keydown",function(evt){var k=evt.keyCode;var _138=k!=13&&k!=32&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_138||evt.ctrlKey){var c=_138?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if(!evt.shiftKey&&c>=65&&c<=90){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});fp.call(evt.currentTarget,faux);}});}return _137;},remove:function(node,_139,_13a){if(node){if(_13a._stealthKeyDownHandle){del._remove(node,"keydown",_13a._stealthKeyDownHandle);}del._remove(node,_139,_13a);}},_fixEvent:function(evt,_13b){switch(evt.type){case "keypress":if(evt.faux){return evt;}var c=evt.charCode;c=c>=32?c:0;return del._synthesizeEvent(evt,{charCode:c,faux:true});}return evt;}});}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_13c){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c[dojo._ieListenersName],t=h[c.target];var r=t&&t.apply(_13c,args);var lls=[].concat(ls);for(var i in lls){var f=h[lls[i]];if(!(i in ap)&&f){f.apply(_13c,args);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE||dojo.isOpera){dojo.byId=function(id,doc){if(typeof id!="string"){return id;}var _13d=doc||dojo.doc,te=_13d.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_13d.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dojo.byId=function(id,doc){return (typeof id=="string")?(doc||dojo.doc).getElementById(id):id;};}(function(){var d=dojo;var byId=d.byId;var _13e=null,_13f;d.addOnWindowUnload(function(){_13e=null;});dojo._destroyElement=dojo.destroy=function(node){node=byId(node);try{var doc=node.ownerDocument;if(!_13e||_13f!=doc){_13e=doc.createElement("div");_13f=doc;}_13e.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_13e.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_140){try{node=byId(node);_140=byId(_140);while(node){if(node==_140){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_141){node=byId(node);if(d.isMozilla){node.style.MozUserSelect=_141?"":"none";}else{if(d.isKhtml||d.isWebKit){node.style.KhtmlUserSelect=_141?"auto":"none";}else{if(d.isIE){var v=(node.unselectable=_141?"":"on");d.query("*",node).forEach("item.unselectable = '"+v+"'");}}}};var _142=function(node,ref){var _143=ref.parentNode;if(_143){_143.insertBefore(node,ref);}};var _144=function(node,ref){var _145=ref.parentNode;if(_145){if(_145.lastChild==ref){_145.appendChild(node);}else{_145.insertBefore(node,ref.nextSibling);}}};dojo.place=function(node,_146,_147){_146=byId(_146);if(typeof node=="string"){node=node.charAt(0)=="<"?d._toDom(node,_146.ownerDocument):byId(node);}if(typeof _147=="number"){var cn=_146.childNodes;if(!cn.length||cn.length<=_147){_146.appendChild(node);}else{_142(node,cn[_147<0?0:_147]);}}else{switch(_147){case "before":_142(node,_146);break;case "after":_144(node,_146);break;case "replace":_146.parentNode.replaceChild(node,_146);break;case "only":d.empty(_146);_146.appendChild(node);break;case "first":if(_146.firstChild){_142(node,_146.firstChild);break;}default:_146.appendChild(node);}}return node;};dojo.boxModel="content-box";if(d.isIE){d.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}var gcs;if(d.isWebKit){gcs=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(d.isIE){gcs=function(node){return node.nodeType==1?node.currentStyle:{};};}else{gcs=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}dojo.getComputedStyle=gcs;if(!d.isIE){d._toPixelValue=function(_148,_149){return parseFloat(_149)||0;};}else{d._toPixelValue=function(_14a,_14b){if(!_14b){return 0;}if(_14b=="medium"){return 4;}if(_14b.slice&&_14b.slice(-2)=="px"){return parseFloat(_14b);}with(_14a){var _14c=style.left;var _14d=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_14b;_14b=style.pixelLeft;}catch(e){_14b=0;}style.left=_14c;runtimeStyle.left=_14d;}return _14b;};}var px=d._toPixelValue;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};dojo._getOpacity=d.isIE?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE?function(node,_14e){var ov=_14e*100;node.style.zoom=1;af(node,1).Enabled=!(_14e==1);if(!af(node)){node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){d._setOpacity(i,_14e);});}return _14e;}:function(node,_14f){return node.style.opacity=_14f;};var _150={left:true,top:true};var _151=/margin|padding|width|height|max|min|offset/;var _152=function(node,type,_153){type=type.toLowerCase();if(d.isIE){if(_153=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_153){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _150)){_150[type]=_151.test(type);}return _150[type]?px(node,_153):_153;};var _154=d.isIE?"styleFloat":"cssFloat",_155={"cssFloat":_154,"styleFloat":_154,"float":_154};dojo.style=function(node,_156,_157){var n=byId(node),args=arguments.length,op=(_156=="opacity");_156=_155[_156]||_156;if(args==3){return op?d._setOpacity(n,_157):n.style[_156]=_157;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&typeof _156!="string"){for(var x in _156){d.style(node,x,_156[x]);}return s;}return (args==1)?s:_152(n,_156,s[_156]||n.style[_156]);};dojo._getPadExtents=function(n,_158){var s=_158||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_159){var ne="none",s=_159||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_15a){var s=_15a||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_15b){var s=_15b||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isWebKit&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_15c){var s=_15c||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera||(d.isIE>7&&!d.isQuirks)){if(p){be=d._getBorderExtents(p);l-=be.l;t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getContentBox=function(node,_15d){var s=_15d||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight;}else{h=node.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(node,_15e){var s=_15e||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};dojo._isButtonTag=function(node){return node.tagName=="BUTTON"||node.tagName=="INPUT"&&(node.getAttribute("type")||"").toUpperCase()=="BUTTON";};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(node);};dojo._setContentSize=function(node,_15f,_160,_161){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_161);if(_15f>=0){_15f+=pb.w;}if(_160>=0){_160+=pb.h;}}d._setBox(node,NaN,NaN,_15f,_160);};dojo._setMarginBox=function(node,_162,_163,_164,_165,_166){var s=_166||gcs(node),bb=d._usesBorderBox(node),pb=bb?_167:d._getPadBorderExtents(node,s);if(d.isWebKit){if(d._isButtonTag(node)){var ns=node.style;if(_164>=0&&!ns.width){ns.width="4px";}if(_165>=0&&!ns.height){ns.height="4px";}}}var mb=d._getMarginExtents(node,s);if(_164>=0){_164=Math.max(_164-pb.w-mb.w,0);}if(_165>=0){_165=Math.max(_165-pb.h-mb.h,0);}d._setBox(node,_162,_163,_164,_165);};var _167={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _168=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_169=0,_16a=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_169+=val-0;if(node==_16a){break;}}node=node.parentNode;}return _169;};dojo._docScroll=function(){var n=d.global;return "pageXOffset" in n?{x:n.pageXOffset,y:n.pageYOffset}:(n=d.doc.documentElement,n.clientHeight?{x:d._fixIeBiDiScrollLeft(n.scrollLeft),y:n.scrollTop}:(n=d.body(),{x:n.scrollLeft||0,y:n.scrollTop||0}));};dojo._isBodyLtr=function(){return "_bodyLtr" in d?d._bodyLtr:d._bodyLtr=(d.body().dir||d.doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;if(d.isIE<8){var r=de.getBoundingClientRect();var l=r.left,t=r.top;if(d.isIE<7){l+=de.clientLeft;t+=de.clientTop;}return {x:l<0?0:l,y:t<0?0:t};}else{return {x:0,y:0};}};dojo._fixIeBiDiScrollLeft=function(_16b){var dd=d.doc;if(d.isIE<8&&!d._isBodyLtr()){var de=d.isQuirks?dd.body:dd.documentElement;return _16b+de.clientWidth-de.scrollWidth;}return _16b;};dojo._abs=dojo.position=function(node,_16c){var db=d.body(),dh=db.parentNode,ret;node=byId(node);if(node["getBoundingClientRect"]){ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(d.isIE){var _16d=d._getIeDocumentElementOffset();ret.x-=_16d.x+(d.isQuirks?db.clientLeft+db.offsetLeft:0);ret.y-=_16d.y+(d.isQuirks?db.clientTop+db.offsetTop:0);}else{if(d.isFF==3){var cs=gcs(dh);ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth);ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth);}}}else{ret={x:0,y:0,w:node.offsetWidth,h:node.offsetHeight};if(node["offsetParent"]){ret.x-=_168(node,"scrollLeft");ret.y-=_168(node,"scrollTop");var _16e=node;do{var n=_16e.offsetLeft,t=_16e.offsetTop;ret.x+=isNaN(n)?0:n;ret.y+=isNaN(t)?0:t;cs=gcs(_16e);if(_16e!=node){if(d.isMoz){ret.x+=2*px(_16e,cs.borderLeftWidth);ret.y+=2*px(_16e,cs.borderTopWidth);}else{ret.x+=px(_16e,cs.borderLeftWidth);ret.y+=px(_16e,cs.borderTopWidth);}}if(d.isMoz&&cs.position=="static"){var _16f=_16e.parentNode;while(_16f!=_16e.offsetParent){var pcs=gcs(_16f);if(pcs.position=="static"){ret.x+=px(_16e,pcs.borderLeftWidth);ret.y+=px(_16e,pcs.borderTopWidth);}_16f=_16f.parentNode;}}_16e=_16e.offsetParent;}while((_16e!=dh)&&_16e);}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}if(_16c){var _170=d._docScroll();ret.x+=_170.x;ret.y+=_170.y;}return ret;};dojo.coords=function(node,_171){var n=byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d.position(n,_171);mb.x=abs.x;mb.y=abs.y;return mb;};var _172={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},_173={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},_174={innerHTML:1,className:1,htmlFor:d.isIE,value:1};var _175=function(name){return _173[name.toLowerCase()]||name;};var _176=function(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};dojo.hasAttr=function(node,name){var lc=name.toLowerCase();return _174[_172[lc]||name]||_176(byId(node),_173[lc]||name);};var _177={},_178=0,_179=dojo._scopeName+"attrid",_17a={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1};dojo.attr=function(node,name,_17b){node=byId(node);var args=arguments.length,prop;if(args==2&&typeof name!="string"){for(var x in name){d.attr(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_17c=_172[lc]||name,_17d=_174[_17c],_17e=_173[lc]||name;if(args==3){do{if(_17c=="style"&&typeof _17b!="string"){d.style(node,_17b);break;}if(_17c=="innerHTML"){if(d.isIE&&node.tagName.toLowerCase() in _17a){d.empty(node);node.appendChild(d._toDom(_17b,node.ownerDocument));}else{node[_17c]=_17b;}break;}if(d.isFunction(_17b)){var _17f=d.attr(node,_179);if(!_17f){_17f=_178++;d.attr(node,_179,_17f);}if(!_177[_17f]){_177[_17f]={};}var h=_177[_17f][_17c];if(h){d.disconnect(h);}else{try{delete node[_17c];}catch(e){}}_177[_17f][_17c]=d.connect(node,_17c,_17b);break;}if(_17d||typeof _17b=="boolean"){node[_17c]=_17b;break;}node.setAttribute(_17e,_17b);}while(false);return node;}_17b=node[_17c];if(_17d&&typeof _17b!="undefined"){return _17b;}if(_17c!="href"&&(typeof _17b=="boolean"||d.isFunction(_17b))){return _17b;}return _176(node,_17e)?node.getAttribute(_17e):null;};dojo.removeAttr=function(node,name){byId(node).removeAttribute(_175(name));};dojo.getNodeProp=function(node,name){node=byId(node);var lc=name.toLowerCase(),_180=_172[lc]||name;if((_180 in node)&&_180!="href"){return node[_180];}var _181=_173[lc]||name;return _176(node,_181)?node.getAttribute(_181):null;};dojo.create=function(tag,_182,_183,pos){var doc=d.doc;if(_183){_183=byId(_183);doc=_183.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_182){d.attr(tag,_182);}if(_183){d.place(tag,_183,pos);}return tag;};d.empty=d.isIE?function(node){node=byId(node);for(var c;c=node.lastChild;){d.destroy(c);}}:function(node){byId(node).innerHTML="";};var _184={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_185=/<\s*([\w\:]+)/,_186={},_187=0,_188="__"+d._scopeName+"ToDomId";for(var _189 in _184){var tw=_184[_189];tw.pre=_189=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}d._toDom=function(frag,doc){doc=doc||d.doc;var _18a=doc[_188];if(!_18a){doc[_188]=_18a=++_187+"";_186[_18a]=doc.createElement("div");}frag+="";var _18b=frag.match(_185),tag=_18b?_18b[1].toLowerCase():"",_18c=_186[_18a],wrap,i,fc,df;if(_18b&&_184[tag]){wrap=_184[tag];_18c.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_18c=_18c.firstChild;}}else{_18c.innerHTML=frag;}if(_18c.childNodes.length==1){return _18c.removeChild(_18c.firstChild);}df=doc.createDocumentFragment();while(fc=_18c.firstChild){df.appendChild(fc);}return df;};var _18d="className";dojo.hasClass=function(node,_18e){return ((" "+byId(node)[_18d]+" ").indexOf(" "+_18e+" ")>=0);};var _18f=/\s+/,a1=[""],_190=function(s){if(typeof s=="string"||s instanceof String){if(s.indexOf(" ")<0){a1[0]=s;return a1;}else{return s.split(_18f);}}return s;};dojo.addClass=function(node,_191){node=byId(node);_191=_190(_191);var cls=" "+node[_18d]+" ";for(var i=0,len=_191.length,c;i<len;++i){c=_191[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}node[_18d]=d.trim(cls);};dojo.removeClass=function(node,_192){node=byId(node);var cls;if(_192!==undefined){_192=_190(_192);cls=" "+node[_18d]+" ";for(var i=0,len=_192.length;i<len;++i){cls=cls.replace(" "+_192[i]+" "," ");}cls=d.trim(cls);}else{cls="";}if(node[_18d]!=cls){node[_18d]=cls;}};dojo.toggleClass=function(node,_193,_194){if(_194===undefined){_194=!d.hasClass(node,_193);}d[_194?"addClass":"removeClass"](node,_193);};})();}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var ap=Array.prototype,aps=ap.slice,apc=ap.concat;var tnl=function(a,_195,_196){if(!a.sort){a=aps.call(a,0);}var ctor=_196||this._NodeListCtor||d._NodeListCtor;a.constructor=ctor;dojo._mixin(a,ctor.prototype);a._NodeListCtor=ctor;return _195?a._stash(_195):a;};var _197=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||d.global;return function(node){a[0]=node;return f.apply(o,a);};};var _198=function(f,o){return function(){this.forEach(_197(f,arguments,o));return this;};};var _199=function(f,o){return function(){return this.map(_197(f,arguments,o));};};var _19a=function(f,o){return function(){return this.filter(_197(f,arguments,o));};};var _19b=function(f,g,o){return function(){var a=arguments,body=_197(f,a,o);if(g.call(o||d.global,a)){return this.map(body);}this.forEach(body);return this;};};var _19c=function(a){return a.length==1&&(typeof a[0]=="string");};var _19d=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};d._NodeListCtor=d.NodeList;var nl=d.NodeList,nlp=nl.prototype;nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_199;nl._adaptAsForEach=_198;nl._adaptAsFilter=_19a;nl._adaptWithCondition=_19b;d.forEach(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});d.forEach(["indexOf","lastIndexOf","every","some"],function(name){var f=d[name];nlp[name]=function(){return f.apply(d,[this].concat(aps.call(arguments,0)));};});d.forEach(["attr","style"],function(name){nlp[name]=_19b(d[name],_19c);});d.forEach(["connect","addClass","removeClass","toggleClass","empty","removeAttr"],function(name){nlp[name]=_198(d[name]);});dojo.extend(dojo.NodeList,{_normalize:function(_19e,_19f){var _1a0=_19e.parse===true?true:false;if(typeof _19e.template=="string"){var _1a1=_19e.templateFunc||(dojo.string&&dojo.string.substitute);_19e=_1a1?_1a1(_19e.template,_19e):_19e;}var type=(typeof _19e);if(type=="string"||type=="number"){_19e=dojo._toDom(_19e,(_19f&&_19f.ownerDocument));if(_19e.nodeType==11){_19e=dojo._toArray(_19e.childNodes);}else{_19e=[_19e];}}else{if(!dojo.isArrayLike(_19e)){_19e=[_19e];}else{if(!dojo.isArray(_19e)){_19e=dojo._toArray(_19e);}}}if(_1a0){_19e._runParse=true;}return _19e;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_1a2,_1a3,_1a4){if(_1a2.nodeType!=1&&_1a3=="only"){return;}var _1a5=_1a2,_1a6;var _1a7=ary.length;for(var i=_1a7-1;i>=0;i--){var node=(_1a4?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_1a6){_1a6=_1a5.ownerDocument.createElement("div");}_1a6.appendChild(node);dojo.parser.parse(_1a6);node=_1a6.firstChild;while(_1a6.firstChild){_1a6.removeChild(_1a6.firstChild);}}if(i==_1a7-1){dojo.place(node,_1a5,_1a3);}else{_1a5.parentNode.insertBefore(node,_1a5);}_1a5=node;}},_stash:function(_1a8){this._parent=_1a8;return this;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor();}},concat:function(item){var t=d.isArray(this)?this:aps.call(this,0),m=d.map(arguments,function(a){return a&&!d.isArray(a)&&(typeof NodeList!="undefined"&&a.constructor===NodeList||a.constructor===this._NodeListCtor)?aps.call(a,0):a;});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(d.map(this,func,obj),this);},forEach:function(_1a9,_1aa){d.forEach(this,_1a9,_1aa);return this;},coords:_199(d.coords),position:_199(d.position),place:function(_1ab,_1ac){var item=d.query(_1ab)[0];return this.forEach(function(node){d.place(node,item,_1ac);});},orphan:function(_1ad){return (_1ad?d._filterQueryResult(this,_1ad):this).forEach(_19d);},adopt:function(_1ae,_1af){return d.query(_1ae).place(this[0],_1af)._stash(this);},query:function(_1b0){if(!_1b0){return this;}var ret=this.map(function(node){return d.query(_1b0,node).filter(function(_1b1){return _1b1!==undefined;});});return this._wrap(apc.apply([],ret),this);},filter:function(_1b2){var a=arguments,_1b3=this,_1b4=0;if(typeof _1b2=="string"){_1b3=d._filterQueryResult(this,a[0]);if(a.length==1){return _1b3._stash(this);}_1b4=1;}return this._wrap(d.filter(_1b3,a[_1b4],a[_1b4+1]),this);},addContent:function(_1b5,_1b6){_1b5=this._normalize(_1b5,this[0]);for(var i=0,node;node=this[i];i++){this._place(_1b5,node,_1b6,i>0);}return this;},instantiate:function(_1b7,_1b8){var c=d.isFunction(_1b7)?_1b7:d.getObject(_1b7);_1b8=_1b8||{};return this.forEach(function(node){new c(_1b8,node);});},at:function(){var t=new this._NodeListCtor();d.forEach(arguments,function(i){if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});nl.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];d.forEach(nl.events,function(evt){var _1b9="on"+evt;nlp[_1b9]=function(a,b){return this.connect(_1b9,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;if(typeof dojo!="undefined"){dojo.provide("dojo._base.query");}(function(d){var trim=d.trim;var each=d.forEach;var qlc=d._NodeListCtor=d.NodeList;var _1ba=function(){return d.doc;};var _1bb=((d.isWebKit||d.isMozilla)&&((_1ba().compatMode)=="BackCompat"));var _1bc=!!_1ba().firstChild["children"]?"children":"childNodes";var _1bd=">~+";var _1be=false;var _1bf=function(){return true;};var _1c0=function(_1c1){if(_1bd.indexOf(_1c1.slice(-1))>=0){_1c1+=" * ";}else{_1c1+=" ";}var ts=function(s,e){return trim(_1c1.slice(s,e));};var _1c2=[];var _1c3=-1,_1c4=-1,_1c5=-1,_1c6=-1,_1c7=-1,inId=-1,_1c8=-1,lc="",cc="",_1c9;var x=0,ql=_1c1.length,_1ca=null,_1cb=null;var _1cc=function(){if(_1c8>=0){var tv=(_1c8==x)?null:ts(_1c8,x);_1ca[(_1bd.indexOf(tv)<0)?"tag":"oper"]=tv;_1c8=-1;}};var _1cd=function(){if(inId>=0){_1ca.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _1ce=function(){if(_1c7>=0){_1ca.classes.push(ts(_1c7+1,x).replace(/\\/g,""));_1c7=-1;}};var _1cf=function(){_1cd();_1cc();_1ce();};var _1d0=function(){_1cf();if(_1c6>=0){_1ca.pseudos.push({name:ts(_1c6+1,x)});}_1ca.loops=(_1ca.pseudos.length||_1ca.attrs.length||_1ca.classes.length);_1ca.oquery=_1ca.query=ts(_1c9,x);_1ca.otag=_1ca.tag=(_1ca["oper"])?null:(_1ca.tag||"*");if(_1ca.tag){_1ca.tag=_1ca.tag.toUpperCase();}if(_1c2.length&&(_1c2[_1c2.length-1].oper)){_1ca.infixOper=_1c2.pop();_1ca.query=_1ca.infixOper.query+" "+_1ca.query;}_1c2.push(_1ca);_1ca=null;};for(;lc=cc,cc=_1c1.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_1ca){_1c9=x;_1ca={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return (_1be)?this.otag:this.tag;}};_1c8=x;}if(_1c3>=0){if(cc=="]"){if(!_1cb.attr){_1cb.attr=ts(_1c3+1,x);}else{_1cb.matchFor=ts((_1c5||_1c3+1),x);}var cmf=_1cb.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_1cb.matchFor=cmf.slice(1,-1);}}_1ca.attrs.push(_1cb);_1cb=null;_1c3=_1c5=-1;}else{if(cc=="="){var _1d1=("|~^$*".indexOf(lc)>=0)?lc:"";_1cb.type=_1d1+cc;_1cb.attr=ts(_1c3+1,x-_1d1.length);_1c5=x+1;}}}else{if(_1c4>=0){if(cc==")"){if(_1c6>=0){_1cb.value=ts(_1c4+1,x);}_1c6=_1c4=-1;}}else{if(cc=="#"){_1cf();inId=x+1;}else{if(cc=="."){_1cf();_1c7=x;}else{if(cc==":"){_1cf();_1c6=x;}else{if(cc=="["){_1cf();_1c3=x;_1cb={};}else{if(cc=="("){if(_1c6>=0){_1cb={name:ts(_1c6+1,x),value:null};_1ca.pseudos.push(_1cb);}_1c4=x;}else{if((cc==" ")&&(lc!=cc)){_1d0();}}}}}}}}}return _1c2;};var _1d2=function(_1d3,_1d4){if(!_1d3){return _1d4;}if(!_1d4){return _1d3;}return function(){return _1d3.apply(window,arguments)&&_1d4.apply(window,arguments);};};var _1d5=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _1d6=function(n){return (1==n.nodeType);};var _1d7="";var _1d8=function(elem,attr){if(!elem){return _1d7;}if(attr=="class"){return elem.className||_1d7;}if(attr=="for"){return elem.htmlFor||_1d7;}if(attr=="style"){return elem.style.cssText||_1d7;}return (_1be?elem.getAttribute(attr):elem.getAttribute(attr,2))||_1d7;};var _1d9={"*=":function(attr,_1da){return function(elem){return (_1d8(elem,attr).indexOf(_1da)>=0);};},"^=":function(attr,_1db){return function(elem){return (_1d8(elem,attr).indexOf(_1db)==0);};},"$=":function(attr,_1dc){var tval=" "+_1dc;return function(elem){var ea=" "+_1d8(elem,attr);return (ea.lastIndexOf(_1dc)==(ea.length-_1dc.length));};},"~=":function(attr,_1dd){var tval=" "+_1dd+" ";return function(elem){var ea=" "+_1d8(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_1de){var _1df=" "+_1de+"-";return function(elem){var ea=" "+_1d8(elem,attr);return ((ea==_1de)||(ea.indexOf(_1df)==0));};},"=":function(attr,_1e0){return function(elem){return (_1d8(elem,attr)==_1e0);};}};var _1e1=(typeof _1ba().firstChild.nextElementSibling=="undefined");var _1e2=!_1e1?"nextElementSibling":"nextSibling";var _1e3=!_1e1?"previousElementSibling":"previousSibling";var _1e4=(_1e1?_1d6:_1bf);var _1e5=function(node){while(node=node[_1e3]){if(_1e4(node)){return false;}}return true;};var _1e6=function(node){while(node=node[_1e2]){if(_1e4(node)){return false;}}return true;};var _1e7=function(node){var root=node.parentNode;var i=0,tret=root[_1bc],ci=(node["_i"]||-1),cl=(root["_l"]||-1);if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}root["_l"]=l;ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_1e2]){if(_1e4(te)){te["_i"]=++i;if(node===te){ci=i;}}}return ci;};var _1e8=function(elem){return !((_1e7(elem))%2);};var _1e9=function(elem){return ((_1e7(elem))%2);};var _1ea={"checked":function(name,_1eb){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"first-child":function(){return _1e5;},"last-child":function(){return _1e6;},"only-child":function(name,_1ec){return function(node){if(!_1e5(node)){return false;}if(!_1e6(node)){return false;}return true;};},"empty":function(name,_1ed){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_1ee){var cz=_1ee.charAt(0);if(cz=="\""||cz=="'"){_1ee=_1ee.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_1ee)>=0);};},"not":function(name,_1ef){var p=_1c0(_1ef)[0];var _1f0={el:1};if(p.tag!="*"){_1f0.tag=1;}if(!p.classes.length){_1f0.classes=1;}var ntf=_1f1(p,_1f0);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_1f2){var pi=parseInt;if(_1f2=="odd"){return _1e9;}else{if(_1f2=="even"){return _1e8;}}if(_1f2.indexOf("n")!=-1){var _1f3=_1f2.split("n",2);var pred=_1f3[0]?((_1f3[0]=="-")?-1:pi(_1f3[0])):1;var idx=_1f3[1]?pi(_1f3[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_1e7(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_1f2=idx;}}var _1f4=pi(_1f2);return function(elem){return (_1e7(elem)==_1f4);};}};var _1f5=(d.isIE)?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_1be?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _1f1=function(_1f6,_1f7){if(!_1f6){return _1bf;}_1f7=_1f7||{};var ff=null;if(!("el" in _1f7)){ff=_1d2(ff,_1d6);}if(!("tag" in _1f7)){if(_1f6.tag!="*"){ff=_1d2(ff,function(elem){return (elem&&(elem.tagName==_1f6.getTag()));});}}if(!("classes" in _1f7)){each(_1f6.classes,function(_1f8,idx,arr){var re=new RegExp("(?:^|\\s)"+_1f8+"(?:\\s|$)");ff=_1d2(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _1f7)){each(_1f6.pseudos,function(_1f9){var pn=_1f9.name;if(_1ea[pn]){ff=_1d2(ff,_1ea[pn](pn,_1f9.value));}});}if(!("attrs" in _1f7)){each(_1f6.attrs,function(attr){var _1fa;var a=attr.attr;if(attr.type&&_1d9[attr.type]){_1fa=_1d9[attr.type](a,attr.matchFor);}else{if(a.length){_1fa=_1f5(a);}}if(_1fa){ff=_1d2(ff,_1fa);}});}if(!("id" in _1f7)){if(_1f6.id){ff=_1d2(ff,function(elem){return (!!elem&&(elem.id==_1f6.id));});}}if(!ff){if(!("default" in _1f7)){ff=_1bf;}}return ff;};var _1fb=function(_1fc){return function(node,ret,bag){while(node=node[_1e2]){if(_1e1&&(!_1d6(node))){continue;}if((!bag||_1fd(node,bag))&&_1fc(node)){ret.push(node);}break;}return ret;};};var _1fe=function(_1ff){return function(root,ret,bag){var te=root[_1e2];while(te){if(_1e4(te)){if(bag&&!_1fd(te,bag)){break;}if(_1ff(te)){ret.push(te);}}te=te[_1e2];}return ret;};};var _200=function(_201){_201=_201||_1bf;return function(root,ret,bag){var te,x=0,tret=root[_1bc];while(te=tret[x++]){if(_1e4(te)&&(!bag||_1fd(te,bag))&&(_201(te,x))){ret.push(te);}}return ret;};};var _202=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _203={};var _204=function(_205){var _206=_203[_205.query];if(_206){return _206;}var io=_205.infixOper;var oper=(io?io.oper:"");var _207=_1f1(_205,{el:1});var qt=_205.tag;var _208=("*"==qt);var ecs=_1ba()["getElementsByClassName"];if(!oper){if(_205.id){_207=(!_205.loops&&_208)?_1bf:_1f1(_205,{el:1,id:1});_206=function(root,arr){var te=d.byId(_205.id,(root.ownerDocument||root));if(!te||!_207(te)){return;}if(9==root.nodeType){return _1d5(te,arr);}else{if(_202(te,root)){return _1d5(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_205.classes.length&&!_1bb){_207=_1f1(_205,{el:1,classes:1,id:1});var _209=_205.classes.join(" ");_206=function(root,arr,bag){var ret=_1d5(0,arr),te,x=0;var tret=root.getElementsByClassName(_209);while((te=tret[x++])){if(_207(te,root)&&_1fd(te,bag)){ret.push(te);}}return ret;};}else{if(!_208&&!_205.loops){_206=function(root,arr,bag){var ret=_1d5(0,arr),te,x=0;var tret=root.getElementsByTagName(_205.getTag());while((te=tret[x++])){if(_1fd(te,bag)){ret.push(te);}}return ret;};}else{_207=_1f1(_205,{el:1,tag:1,id:1});_206=function(root,arr,bag){var ret=_1d5(0,arr),te,x=0;var tret=root.getElementsByTagName(_205.getTag());while((te=tret[x++])){if(_207(te,root)&&_1fd(te,bag)){ret.push(te);}}return ret;};}}}}else{var _20a={el:1};if(_208){_20a.tag=1;}_207=_1f1(_205,_20a);if("+"==oper){_206=_1fb(_207);}else{if("~"==oper){_206=_1fe(_207);}else{if(">"==oper){_206=_200(_207);}}}}return _203[_205.query]=_206;};var _20b=function(root,_20c){var _20d=_1d5(root),qp,x,te,qpl=_20c.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_20c[i];x=_20d.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_204(qp);for(var j=0;(te=_20d[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_20d=ret;}return ret;};var _20e={},_20f={};var _210=function(_211){var _212=_1c0(trim(_211));if(_212.length==1){var tef=_204(_212[0]);return function(root){var r=tef(root,new qlc());if(r){r.nozip=true;}return r;};}return function(root){return _20b(root,_212);};};var nua=navigator.userAgent;var wk="WebKit/";var _213=(d.isWebKit&&(nua.indexOf(wk)>0)&&(parseFloat(nua.split(wk)[1])>528));var _214=d.isIE?"commentStrip":"nozip";var qsa="querySelectorAll";var _215=(!!_1ba()[qsa]&&(!d.isSafari||(d.isSafari>3.1)||_213));var _216=/n\+\d|([^ ])?([>~+])([^ =])?/g;var _217=function(_218,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_218;};var _219=function(_21a,_21b){_21a=_21a.replace(_216,_217);if(_215){var _21c=_20f[_21a];if(_21c&&!_21b){return _21c;}}var _21d=_20e[_21a];if(_21d){return _21d;}var qcz=_21a.charAt(0);var _21e=(-1==_21a.indexOf(" "));if((_21a.indexOf("#")>=0)&&(_21e)){_21b=true;}var _21f=(_215&&(!_21b)&&(_1bd.indexOf(qcz)==-1)&&(!d.isIE||(_21a.indexOf(":")==-1))&&(!(_1bb&&(_21a.indexOf(".")>=0)))&&(_21a.indexOf(":contains")==-1)&&(_21a.indexOf(":checked")==-1)&&(_21a.indexOf("|=")==-1));if(_21f){var tq=(_1bd.indexOf(_21a.charAt(_21a.length-1))>=0)?(_21a+" *"):_21a;return _20f[_21a]=function(root){try{if(!((9==root.nodeType)||_21e)){throw "";}var r=root[qsa](tq);r[_214]=true;return r;}catch(e){return _219(_21a,true)(root);}};}else{var _220=_21a.split(/\s*,\s*/);return _20e[_21a]=((_220.length<2)?_210(_21a):function(root){var _221=0,ret=[],tp;while((tp=_220[_221++])){ret=ret.concat(_210(tp)(root));}return ret;});}};var _222=0;var _223=d.isIE?function(node){if(_1be){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_222)||_222);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_222));};var _1fd=function(node,bag){if(!bag){return 1;}var id=_223(node);if(!bag[id]){return bag[id]=1;}return 0;};var _224="_zipIdx";var _225=function(arr){if(arr&&arr.nozip){return (qlc._wrap)?qlc._wrap(arr):arr;}var ret=new qlc();if(!arr||!arr.length){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_222++;if(d.isIE&&_1be){var _226=_222+"";arr[0].setAttribute(_224,_226);for(var x=1,te;te=arr[x];x++){if(arr[x].getAttribute(_224)!=_226){ret.push(te);}te.setAttribute(_224,_226);}}else{if(d.isIE&&arr.commentStrip){try{for(var x=1,te;te=arr[x];x++){if(_1d6(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_224]=_222;}for(var x=1,te;te=arr[x];x++){if(arr[x][_224]!=_222){ret.push(te);}te[_224]=_222;}}}return ret;};d.query=function(_227,root){qlc=d._NodeListCtor;if(!_227){return new qlc();}if(_227.constructor==qlc){return _227;}if(typeof _227!="string"){return new qlc(_227);}if(typeof root=="string"){root=d.byId(root);if(!root){return new qlc();}}root=root||_1ba();var od=root.ownerDocument||root.documentElement;_1be=(root.contentType&&root.contentType=="application/xml")||(d.isOpera&&(root.doctype||od.toString()=="[object XMLDocument]"))||(!!od)&&(d.isIE?od.xml:(root.xmlVersion||od.xmlVersion));var r=_219(_227)(root);if(r&&r.nozip&&!qlc._wrap){return r;}return _225(r);};d.query.pseudos=_1ea;d._filterQueryResult=function(_228,_229){var _22a=new d._NodeListCtor();var _22b=_1f1(_1c0(_229)[0]);for(var x=0,te;te=_228[x];x++){if(_22b(te)){_22a.push(te);}}return _22a;};})(this["queryPortability"]||this["acme"]||dojo);}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _22c=dojo,cfg=_22c.config;function _22d(obj,name,_22e){if(_22e===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_22e];}else{if(_22c.isArray(val)){val.push(_22e);}else{obj[name]=_22e;}}};dojo.fieldToObject=function(_22f){var ret=null;var item=_22c.byId(_22f);if(item){var _230=item.name;var type=(item.type||"").toLowerCase();if(_230&&type&&!item.disabled){if(type=="radio"||type=="checkbox"){if(item.checked){ret=item.value;}}else{if(item.multiple){ret=[];_22c.query("option",item).forEach(function(opt){if(opt.selected){ret.push(opt.value);}});}else{ret=item.value;}}}}return ret;};dojo.formToObject=function(_231){var ret={};var _232="file|submit|image|reset|button|";_22c.forEach(dojo.byId(_231).elements,function(item){var _233=item.name;var type=(item.type||"").toLowerCase();if(_233&&type&&_232.indexOf(type)==-1&&!item.disabled){_22d(ret,_233,_22c.fieldToObject(item));if(type=="image"){ret[_233+".x"]=ret[_233+".y"]=ret[_233].x=ret[_233].y=0;}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _234=[];var _235={};for(var name in map){var _236=map[name];if(_236!=_235[name]){var _237=enc(name)+"=";if(_22c.isArray(_236)){for(var i=0;i<_236.length;i++){_234.push(_237+enc(_236[i]));}}else{_234.push(_237+enc(_236));}}}return _234.join("&");};dojo.formToQuery=function(_238){return _22c.objectToQuery(_22c.formToObject(_238));};dojo.formToJson=function(_239,_23a){return _22c.toJson(_22c.formToObject(_239),_23a);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_22c.forEach(qp,function(item){if(item.length){var _23b=item.split("=");var name=dec(_23b.shift());var val=dec(_23b.join("="));if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(_22c.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;var _23c=_22c._contentHandlers=dojo.contentHandlers={text:function(xhr){return xhr.responseText;},json:function(xhr){return _22c.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!dojo.config.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _23d=xhr.responseText;var _23e=_23d.indexOf("/*");var _23f=_23d.lastIndexOf("*/");if(_23e==-1||_23f==-1){throw new Error("JSON was not comment filtered");}return _22c.fromJson(_23d.substring(_23e+2,_23f));},javascript:function(xhr){return _22c.eval(xhr.responseText);},xml:function(xhr){var _240=xhr.responseXML;if(_22c.isIE&&(!_240||!_240.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_22c.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_240=dom;}catch(e){return false;}return true;});}return _240;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _23c["json-comment-filtered"](xhr);}else{return _23c["json"](xhr);}}};dojo._ioSetArgs=function(args,_241,_242,_243){var _244={args:args,url:args.url};var _245=null;if(args.form){var form=_22c.byId(args.form);var _246=form.getAttributeNode("action");_244.url=_244.url||(_246?_246.value:null);_245=_22c.formToObject(form);}var _247=[{}];if(_245){_247.push(_245);}if(args.content){_247.push(args.content);}if(args.preventCache){_247.push({"dojo.preventCache":new Date().valueOf()});}_244.query=_22c.objectToQuery(_22c.mixin.apply(null,_247));_244.handleAs=args.handleAs||"text";var d=new _22c.Deferred(_241);d.addCallbacks(_242,function(_248){return _243(_248,d);});var ld=args.load;if(ld&&_22c.isFunction(ld)){d.addCallback(function(_249){return ld.call(args,_249,_244);});}var err=args.error;if(err&&_22c.isFunction(err)){d.addErrback(function(_24a){return err.call(args,_24a,_244);});}var _24b=args.handle;if(_24b&&_22c.isFunction(_24b)){d.addBoth(function(_24c){return _24b.call(args,_24c,_244);});}if(cfg.ioPublish&&_22c.publish&&_244.args.ioPublish!==false){d.addCallbacks(function(res){_22c.publish("/dojo/io/load",[d,res]);return res;},function(res){_22c.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){_22c.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_244;return d;};var _24d=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _24e=typeof xhr.abort;if(_24e=="function"||_24e=="object"||_24e=="unknown"){xhr.abort();}var err=dfd.ioArgs.error;if(!err){err=new Error("xhr cancelled");err.dojoType="cancel";}return err;};var _24f=function(dfd){var ret=_23c[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _250=function(_251,dfd){if(!dfd.ioArgs.args.failOk){console.error(_251);}return _251;};var _252=null;var _253=[];var _254=0;var _255=function(dfd){if(_254<=0){_254=0;if(cfg.ioPublish&&_22c.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_22c.publish("/dojo/io/stop");}}};var _256=function(){var now=(new Date()).getTime();if(!_22c._blockAsync){for(var i=0,tif;i<_253.length&&(tif=_253[i]);i++){var dfd=tif.dfd;var func=function(){if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_253.splice(i--,1);_254-=1;}else{if(tif.ioCheck(dfd)){_253.splice(i--,1);tif.resHandle(dfd);_254-=1;}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_253.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();_254-=1;}}}}};if(dojo.config.debugAtAllCosts){func.call(this);}else{try{func.call(this);}catch(e){dfd.errback(e);}}}}_255(dfd);if(!_253.length){clearInterval(_252);_252=null;return;}};dojo._ioCancelAll=function(){try{_22c.forEach(_253,function(i){try{i.dfd.cancel();}catch(e){}});}catch(e){}};if(_22c.isIE){_22c.addOnWindowUnload(_22c._ioCancelAll);}_22c._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_22c.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_254){_22c.publish("/dojo/io/start");}_254+=1;_22c.publish("/dojo/io/send",[dfd]);}};_22c._ioWatch=function(dfd,_257,_258,_259){var args=dfd.ioArgs.args;if(args.timeout){dfd.startTime=(new Date()).getTime();}_253.push({dfd:dfd,validCheck:_257,ioCheck:_258,resHandle:_259});if(!_252){_252=setInterval(_256,50);}if(args.sync){_256();}};var _25a="application/x-www-form-urlencoded";var _25b=function(dfd){return dfd.ioArgs.xhr.readyState;};var _25c=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _25d=function(dfd){var xhr=dfd.ioArgs.xhr;if(_22c._isDocumentOk(xhr)){dfd.callback(dfd);}else{var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);err.status=xhr.status;err.responseText=xhr.responseText;dfd.errback(err);}};dojo._ioAddQueryToUrl=function(_25e){if(_25e.query.length){_25e.url+=(_25e.url.indexOf("?")==-1?"?":"&")+_25e.query;_25e.query=null;}};dojo.xhr=function(_25f,args,_260){var dfd=_22c._ioSetArgs(args,_24d,_24f,_250);var _261=dfd.ioArgs;var xhr=_261.xhr=_22c._xhrObj(_261.args);if(!xhr){dfd.cancel();return dfd;}if("postData" in args){_261.query=args.postData;}else{if("putData" in args){_261.query=args.putData;}else{if("rawBody" in args){_261.query=args.rawBody;}else{if((arguments.length>2&&!_260)||"POST|PUT".indexOf(_25f.toUpperCase())==-1){_22c._ioAddQueryToUrl(_261);}}}}xhr.open(_25f,_261.url,args.sync!==true,args.user||undefined,args.password||undefined);if(args.headers){for(var hdr in args.headers){if(hdr.toLowerCase()==="content-type"&&!args.contentType){args.contentType=args.headers[hdr];}else{if(args.headers[hdr]){xhr.setRequestHeader(hdr,args.headers[hdr]);}}}}xhr.setRequestHeader("Content-Type",args.contentType||_25a);if(!args.headers||!("X-Requested-With" in args.headers)){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}_22c._ioNotifyStart(dfd);if(dojo.config.debugAtAllCosts){xhr.send(_261.query);}else{try{xhr.send(_261.query);}catch(e){_261.error=e;dfd.cancel();}}_22c._ioWatch(dfd,_25b,_25c,_25d);xhr=null;return dfd;};dojo.xhrGet=function(args){return _22c.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return _22c.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return _22c.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return _22c.xhr("DELETE",args);};})();}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");(function(){var d=dojo;var _262=d._mixin;dojo._Line=function(_263,end){this.start=_263;this.end=end;};dojo._Line.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};dojo.Animation=function(args){_262(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}};d._Animation=d.Animation;d.extend(dojo.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _264=this._percent,_265=this.easing;return _265?_265(_264):_264;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(d.config.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}return this;},play:function(_266,_267){var _268=this;if(_268._delayTimer){_268._clearTimer();}if(_267){_268._stopTimer();_268._active=_268._paused=false;_268._percent=0;}else{if(_268._active&&!_268._paused){return _268;}}_268._fire("beforeBegin",[_268.node]);var de=_266||_268.delay,_269=dojo.hitch(_268,"_play",_267);if(de>0){_268._delayTimer=setTimeout(_269,de);return _268;}_269();return _268;},_play:function(_26a){var _26b=this;if(_26b._delayTimer){_26b._clearTimer();}_26b._startTime=new Date().valueOf();if(_26b._paused){_26b._startTime-=_26b.duration*_26b._percent;}_26b._endTime=_26b._startTime+_26b.duration;_26b._active=true;_26b._paused=false;var _26c=_26b.curve.getValue(_26b._getStep());if(!_26b._percent){if(!_26b._startRepeatCount){_26b._startRepeatCount=_26b.repeat;}_26b._fire("onBegin",[_26c]);}_26b._fire("onPlay",[_26c]);_26b._cycle();return _26b;},pause:function(){var _26d=this;if(_26d._delayTimer){_26d._clearTimer();}_26d._stopTimer();if(!_26d._active){return _26d;}_26d._paused=true;_26d._fire("onPause",[_26d.curve.getValue(_26d._getStep())]);return _26d;},gotoPercent:function(_26e,_26f){var _270=this;_270._stopTimer();_270._active=_270._paused=true;_270._percent=_26e;if(_26f){_270.play();}return _270;},stop:function(_271){var _272=this;if(_272._delayTimer){_272._clearTimer();}if(!_272._timer){return _272;}_272._stopTimer();if(_271){_272._percent=1;}_272._fire("onStop",[_272.curve.getValue(_272._getStep())]);_272._active=_272._paused=false;return _272;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _273=this;if(_273._active){var curr=new Date().valueOf();var step=(curr-_273._startTime)/(_273._endTime-_273._startTime);if(step>=1){step=1;}_273._percent=step;if(_273.easing){step=_273.easing(step);}_273._fire("onAnimate",[_273.curve.getValue(step)]);if(_273._percent<1){_273._startTimer();}else{_273._active=false;if(_273.repeat>0){_273.repeat--;_273.play(null,true);}else{if(_273.repeat==-1){_273.play(null,true);}else{if(_273._startRepeatCount){_273.repeat=_273._startRepeatCount;_273._startRepeatCount=0;}}}_273._percent=0;_273._fire("onEnd",[_273.node]);!_273.repeat&&_273._stopTimer();}}return _273;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_274=[],_275=null,_276={run:function(){}};d.extend(d.Animation,{_startTimer:function(){if(!this._timer){this._timer=d.connect(_276,"run",this,"_cycle");ctr++;}if(!_275){_275=setInterval(d.hitch(_276,"run"),this.rate);}},_stopTimer:function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_275);_275=null;ctr=0;}}});var _277=d.isIE?function(node){var ns=node.style;if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _278=_262({properties:{}},args),_279=(_278.properties.opacity={});_279.start=!("start" in _278)?function(){return +d.style(_278.node,"opacity")||0;}:_278.start;_279.end=_278.end;var anim=d.animateProperty(_278);d.connect(anim,"beforeBegin",d.partial(_277,_278.node));return anim;};dojo.fadeIn=function(args){return d._fade(_262({end:1},args));};dojo.fadeOut=function(args){return d._fade(_262({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _27a=function(_27b){this._properties=_27b;for(var p in _27b){var prop=_27b[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}};_27a.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_27c=prop.start;if(_27c instanceof d.Color){ret[p]=d.blendColors(_27c,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_27c)){ret[p]=((prop.end-_27c)*r)+_27c+(p!="opacity"?prop.units||"px":0);}}}return ret;};dojo.animateProperty=function(args){var n=args.node=d.byId(args.node);if(!args.easing){args.easing=d._defaultEasing;}var anim=new d.Animation(args);d.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];if(d.isFunction(prop)){prop=prop(n);}prop=pm[p]=_262({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start(n);}if(d.isFunction(prop.end)){prop.end=prop.end(n);}var _27d=(p.toLowerCase().indexOf("color")>=0);function _27e(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?+v:(_27d?v:parseFloat(v));};if(!("end" in prop)){prop.end=_27e(n,p);}else{if(!("start" in prop)){prop.start=_27e(n,p);}}if(_27d){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _27a(pm);});d.connect(anim,"onAnimate",d.hitch(d,"style",anim.node));return anim;};dojo.anim=function(node,_27f,_280,_281,_282,_283){return d.animateProperty({node:node,duration:_280||d.Animation.prototype.duration,properties:_27f,easing:_281,onEnd:_282}).play(_283||0);};})();}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");dojo.forEach(dojo.config.require,function(i){dojo["require"](i);});}if(dojo.config.afterOnLoad&&dojo.isBrowser){window.setTimeout(dojo._loadInit,1000);}})();
/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	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(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.position(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _1=n.scrollLeft,_2=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_1!=n.scrollLeft||_2!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(_3,e,_4){this.node=dojo.byId(_3);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_4,d=_3.ownerDocument,_5=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_5];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_6,_7){this.node=dojo.byId(_6);if(!_7){_7={};}this.handle=_7.handle?dojo.byId(_7.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_7.delay>0?_7.delay:0;this.skip=_7.skip;this.mover=_7.mover?_7.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_8,_9){return new dojo.dnd.Moveable(_9,_8);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_a){dojo.publish("/dnd/move/start",[_a]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_b){dojo.publish("/dnd/move/stop",[_b]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_c){},onMove:function(_d,_e){this.onMoving(_d,_e);var s=_d.node.style;s.left=_e.l+"px";s.top=_e.t+"px";this.onMoved(_d,_e);},onMoving:function(_f,_10){},onMoved:function(_11,_12){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_13,_14){return new dojo.dnd.move.constrainedMoveable(_14,_13);},constructor:function(_15,_16){if(!_16){_16={};}this.constraints=_16.constraints;this.within=_16.within;},onFirstMove:function(_17){var c=this.constraintBox=this.constraints.call(this,_17);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_17.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_18,_19){var c=this.constraintBox,s=_18.node.style;s.left=(_19.l<c.l?c.l:c.r<_19.l?c.r:_19.l)+"px";s.top=(_19.t<c.t?c.t:c.b<_19.t?c.b:_19.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_1a,_1b){return new dojo.dnd.move.boxConstrainedMoveable(_1b,_1a);},constructor:function(_1c,_1d){var box=_1d&&_1d.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_1e,_1f){return new dojo.dnd.move.parentConstrainedMoveable(_1f,_1e);},constructor:function(_20,_21){var _22=_21&&_21.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_22=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_22=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_22=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_23){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _24=function(_25,e,_26){dojo.dnd.Mover.call(this,_25,e,_26);};dojo.extend(_24,dojo.dnd.Mover.prototype);dojo.extend(_24,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_23){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _24;};dojo.dnd.move.boxConstrainedMover=function(box,_27){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_27);};dojo.dnd.move.parentConstrainedMover=function(_28,_29){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_28=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_28=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_28=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_29);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _2a=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_2b,_2c){if(!_2c){_2c={};}if(_2c.timeout&&typeof _2c.timeout=="number"&&_2c.timeout>=0){this.timeout=_2c.timeout;}},markupFactory:function(_2d,_2e){return new dojo.dnd.TimedMoveable(_2e,_2d);},onMoveStop:function(_2f){if(_2f._timer){clearTimeout(_2f._timer);_2a.call(this,_2f,_2f._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_30,_31){_30._leftTop=_31;if(!_30._timer){var _32=this;_30._timer=setTimeout(function(){_30._timer=null;_2a.call(_32,_30,_30._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_33,_34,_35){_35=dojo.i18n.normalizeLocale(_35);var _36=_35.split("-");var _37=[_33,"nls",_34].join(".");var _38=dojo._loadedModules[_37];if(_38){var _39;for(var i=_36.length;i>0;i--){var loc=_36.slice(0,i).join("_");if(_38[loc]){_39=_38[loc];break;}}if(!_39){_39=_38.ROOT;}if(_39){var _3a=function(){};_3a.prototype=_39;return new _3a();}}throw new Error("Bundle not found: "+_34+" in "+_33+" , locale="+_35);};dojo.i18n.normalizeLocale=function(_3b){var _3c=_3b?_3b.toLowerCase():dojo.locale;if(_3c=="root"){_3c="ROOT";}return _3c;};dojo.i18n._requireLocalization=function(_3d,_3e,_3f,_40){var _41=dojo.i18n.normalizeLocale(_3f);var _42=[_3d,"nls",_3e].join(".");var _43="";if(_40){var _44=_40.split(",");for(var i=0;i<_44.length;i++){if(_41["indexOf"](_44[i])==0){if(_44[i].length>_43.length){_43=_44[i];}}}if(!_43){_43="ROOT";}}var _45=_40?_43:_41;var _46=dojo._loadedModules[_42];var _47=null;if(_46){if(dojo.config.localizationComplete&&_46._built){return;}var _48=_45.replace(/-/g,"_");var _49=_42+"."+_48;_47=dojo._loadedModules[_49];}if(!_47){_46=dojo["provide"](_42);var _4a=dojo._getModuleSymbols(_3d);var _4b=_4a.concat("nls").join("/");var _4c;dojo.i18n._searchLocalePath(_45,_40,function(loc){var _4d=loc.replace(/-/g,"_");var _4e=_42+"."+_4d;var _4f=false;if(!dojo._loadedModules[_4e]){dojo["provide"](_4e);var _50=[_4b];if(loc!="ROOT"){_50.push(loc);}_50.push(_3e);var _51=_50.join("/")+".js";_4f=dojo._loadPath(_51,null,function(_52){var _53=function(){};_53.prototype=_4c;_46[_4d]=new _53();for(var j in _52){_46[_4d][j]=_52[j];}});}else{_4f=true;}if(_4f&&_46[_4d]){_4c=_46[_4d];}else{_46[_4d]=_4c;}if(_40){return true;}});}if(_40&&_41!=_43){_46[_41.replace(/-/g,"_")]=_46[_43.replace(/-/g,"_")];}};(function(){var _54=dojo.config.extraLocale;if(_54){if(!_54 instanceof Array){_54=[_54];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_55,_56){req(m,b,_55,_56);if(_55){return;}for(var i=0;i<_54.length;i++){req(m,b,_54[i],_56);}};}})();dojo.i18n._searchLocalePath=function(_57,_58,_59){_57=dojo.i18n.normalizeLocale(_57);var _5a=_57.split("-");var _5b=[];for(var i=_5a.length;i>0;i--){_5b.push(_5a.slice(0,i).join("-"));}_5b.push(false);if(_58){_5b.reverse();}for(var j=_5b.length-1;j>=0;j--){var loc=_5b[j]||"ROOT";var _5c=_59(loc);if(_5c){break;}}};dojo.i18n._preloadLocalizations=function(_5d,_5e){function _5f(_60){_60=dojo.i18n.normalizeLocale(_60);dojo.i18n._searchLocalePath(_60,true,function(loc){for(var i=0;i<_5e.length;i++){if(_5e[i]==loc){dojo["require"](_5d+"_"+loc);return true;}}return false;});};_5f();var _61=dojo.config.extraLocale||[];for(var i=0;i<_61.length;i++){_5f(_61[i]);}};}if(!dojo._hasResource["epages._workaround"]){dojo._hasResource["epages._workaround"]=true;dojo.provide("epages._workaround");dojo["requireLocalization"]("dojo.cldr","gregorian");epages._workaround.load=function(_62){if(_62=="epages.widget.Calendar"&&dojo.version.revision=="0"){dijit._placeOnScreenAroundRect=function(_63,x,y,_64,_65,_66,_67){var _68=[];for(var _69 in _66){_68.push({aroundCorner:_69,corner:_66[_69],pos:{x:x+(_69.charAt(1)=="L"?0:_64),y:y+(_69.charAt(0)=="T"?0:_65)}});}if(_68.length==2&&_68[0].aroundCorner=="BR"&&_68[0].corner=="TR"&&_68[1].aroundCorner=="BL"&&_68[1].corner=="TL"){_68=_68.reverse();}return dijit._place(_63,_68,_67);};}if(_62=="dijit.Tree"&&dojo.version.revision=="20973"){dojo.connect(dijit._TreeNode.prototype,"expand",function(){dojo.publish(this.tree.id+"/nodeexpand",[this]);});}else{if(_62=="dojo.cldr.supplemental"){dojo.cldr.supplemental.getFirstDayOfWeek=function(_6a){if(dojo.i18n.normalizeLocale(_6a)==djConfig.locale){return epages.vars.Locale.firstDayOfWeek;}var _6b={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _6c=dojo.cldr.supplemental._region(_6a);var dow=_6b[_6c];return (dow===undefined)?1:dow;};}}if(_62=="dijit._Widget"&&dojo.version.revision=="20973"){dijit._Widget.prototype._deferredConnects={};}};dojo.connect(dojo,"require",epages._workaround,"load");}if(!dojo._hasResource["epages.epages"]){dojo._hasResource["epages.epages"]=true;dojo.provide("epages.epages");window.parentDojo=undefined;window.restrictedParent=undefined;try{window.parentDojo=parent.dojo?parent.dojo:undefined;if(parent!=self&&!parent.dojo){window.restrictedParent=true;dojo._global_omit_module_check=true;}}catch(ex){window.restrictedParent=true;}if(parent!=self&&window.parentDojo!==undefined){parent.epages._windows.push(window);for(var i=0,iLength=parent.epages.onIframeStart.length;i<iLength;i++){parent.epages.onIframeStart[i](parent,window);}if(epages.NavBars==undefined){epages.NavBars={};}epages.NavBars=parent.epages.NavBars;}dojo.subscribe("epages/addGlobalSymbol",function(gvn,win){if(win===undefined){console.warn("no target window for addGlobalSymbol");return;}if(win[gvn]!=null){return;}if(window.parentDojo){win[gvn]=parent[gvn];}});var d=(parent!=self&&window.parentDojo!==undefined)?window.parentDojo:dojo;dojo.mixin(epages,{onIframeStart:[],onUnloadFunctions:[],topDojo:(parent!=self&&window.parentDojo!==undefined)?window.parentDojo:dojo,topWindow:parent,constants:{preventCache:false,doFlashForward:true},theme:{name:"epages",url:dojo.moduleUrl("dijit.themes","epages")},_windows:[window],_gvs:{},zIndex:10000,buildNode:function(_6d,_6e,_6f,_70){if(_6d&&_6d.length&&_6e){var _71;var _72;if(typeof (_6e)==="string"){var _73=$(_6e);if(_73){_71=_73;}else{_71=document.createElement(_6e);_72=document.createElement("div");}}else{_71=_6e;}if(_6f){_71.innerHTML=_6f;}for(var i=0,_74=_6d.length;i<_74;i++){if(_6d[i][0]==="style"){_71.style.cssText=_6d[i][1];}else{if(_6d[i][0]==="name"&&epages.Browser.engine==="MSIE"){_71.Name=_6d[i][1];}else{_71.setAttribute(_6d[i][0],_6d[i][1]);}}}if(_72){if(!_70){console.warn("error in buildNode method: no containerNodeName string given as container for creating new DOM nodes");return;}_72.appendChild(_71);dojo.create("div",{"innerHTML":_72.innerHTML,"style":"display:inline"},_70,"before");}}},flashForward:function(){return epages.constants.doFlashForward;},setTheme:function(_75){var _76=dojo.body();var old=epages.theme.name;if(_76){dojo.removeClass(_76,epages.theme.name);}else{dojo.addOnLoad(function(){var _77=dojo.body();if(_77){dojo.removeClass(_77,epages.theme.name);dojo.addClass(_77,_75);}});}epages.theme.name=_75;epages.theme.url=dojo.moduleUrl("dijit.themes",_75);if(_76){dojo.addClass(_76,_75);}},themeUrl:function(_78){return epages.theme.url+"/"+_78;},reload:function(){window.location.hash+="0";var url=window.location.href;window.location.href=url.substring(0,url.indexOf("#"));},locationHref:function(uri){window.location.href=uri.substr(0,1)=="?"?epages.vars.BaseUrl+uri:uri;},setFormAction:function(_79,_7a){_79.action=_7a.substr(0,1)=="?"?epages.vars.BaseUrl+_7a:_7a;},locationWebRoot:function(uri){return window.location.protocol+"//"+window.location.host+uri;},Class:function(){return function(){this.initialize.apply(this,arguments);};},changeSampleText:function(_7b,_7c){if(!_7b){_7b="";}sampletags=document.getElementsByTagName("samp");for(var i=0,_7d=sampletags.length;i<_7d;i++){if(sampletags[i].getAttribute("title")==_7c){if(sampletags[i].firstChild){sampletags[i].firstChild.data=_7b;}else{mydata=document.createTextNode(_7b);sampletags[i].appendChild(mydata);}}}},toggleNodes:function(_7e,_7f,_80){if(typeof _7e=="string"){if(typeof _80=="undefined"){_80=document;}if(typeof _80=="string"){_80=document.getElementById(_80);}var _81=_80.getElementsByTagName("*");for(var i=0,_82=_81.length;i<_82;i++){if(_81[i].attributes&&_81[i].attributes["class"]&&_81[i].attributes["class"].nodeValue.indexOf(_7e)>-1){if(_7f){if(_81[i].className.match(/HideNode/)){_81[i].className=_81[i].className.replace(/HideNode/,"ShowNode");}else{if(_81[i].className.match(/ShowNode/)){_81[i].className=_81[i].className.replace(/ShowNode/,"HideNode");}else{if(_81[i].style.display=="none"){_81[i].style.display="";}else{if(_81[i].style.display!="none"){_81[i].style.display="none";}}}}if(_81[i].className.match(/HideElement/)){_81[i].className=_81[i].className.replace(/HideElement/,"ShowElement");}}else{if(_81[i].style.visibility=="hidden"){_81[i].style.visibility="visible";if(_81[i].style.display=="none"){_81[i].style.display="";}_81[i].className=_81[i].className.replace(/HideNode/,"ShowNode");_81[i].className=_81[i].className.replace(/HideElement/,"ShowElement");}else{_81[i].style.visibility="hidden";}}}}}},changeDelimiter:function(_83,_84){switch(_83){case ",":document.getElementById(_84).options[0].selected="selected";break;case ";":document.getElementById(_84).options[1].selected="selected";break;default:document.getElementById(_84).options[2].selected="selected";break;}},toggleLink:function(_85){if(document.getElementsByName(_85)[0].className=="ShowLink"){document.getElementsByName(_85)[0].className="HideLink";}else{document.getElementsByName(_85)[0].className="ShowLink";}},toggleExtender:function(_86){splittedFilename=_86.src.split("/");lastItemNo=splittedFilename.length-1;lastItem=splittedFilename[lastItemNo];if(lastItem=="toolbar_ico_s_extend.png"){splittedFilename[lastItemNo]="toolbar_ico_s_extend_open.png";}else{splittedFilename[lastItemNo]="toolbar_ico_s_extend.png";}_86.src=splittedFilename.join("/");},getDocumentWindow:function(doc){return (doc.parentWindow)?doc.parentWindow:doc.defaultView;},getIframeWrapperUrl:function(url,_87){var src="?iframeUrl="+encodeURIComponent(url);if(_87){src+="&charset="+encodeURIComponent(_87);}return dojo.moduleUrl("epages","iframe_wrapper.html")+src;},require:function(_88,_89){if(!window.StoreTypeRoot){console.warn("global var StoreTypeRoot not defined in epages.require()");}if(!_88){return;}if(epages.vars.DebugLevel&&epages.vars.DebugLevel==1){_88+=".js.uncompressed";}if(_89){if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){return dojo["require"](_89);}var _8a=dojo._loadedModules[_89];if(_8a){return _8a;}epages.vars.currentRequiredModul=_89;dojo.xhrGet({url:window.StoreRoot+"/javascript/build/epages/"+_88+".js",sync:true,load:function(_8b){eval(_8b);},error:function(_8c){dojo["require"](epages.vars.currentRequiredModul);},mimetype:"text/plain"});_8a=dojo._loadedModules[_89];epages.vars.currentRequiredModul=undefined;return _8a;}else{if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){return;}dojo.xhrGet({url:window.StoreRoot+"/javascript/build/epages/"+_88+".js",sync:true,load:function(_8d){eval(_8d);},mimetype:"text/plain"});return;}},checkUnit:function(_8e,_8f){if(_8e&&_8f){if(_8f.value===""&&_8e.value!==""){dojo.addClass(_8f,"DialogError");}else{dojo.removeClass(_8f,"DialogError");}}}});if(epages.vars===undefined){epages.vars={Locale:{}};}dojo.mixin(epages.vars.Locale,{alias:"de_DE",language:"de",languageId:"",decimalSep:",",thousandSep:".",dateFormat:"%d.%m.%{ce_year}",datetimeFormat:"%d.%m.%y %H:%M",timeFormat:"%H:%M",minDaysFirstWeek:4,firstDayOfWeek:0});dojo.addOnLoad(function(){epages.setTheme(epages.theme.name);});dojo["require"]("epages._workaround");$=dojo.byId;dojo.addOnLoad(function(){if(top==self){epages.vars.dojoUnloadStuff=window.onbeforeunload;window.onbeforeunload=function(){var l=false;var d=dojo;d.forEach(epages.onUnloadFunctions,function(el){l|=el();});if(l){d.require("epages.io.translation");return epages.io.dictionary.get("LoseChanges");}else{dojo["require"]("epages.browser");if(epages.Browser.engine=="MSIE"&&epages.Browser.version>6){document.getElementsByTagName("body")[0].className+=" SuspendUserInteraction";setTimeout(function(){dojo.removeClass(document.getElementsByTagName("body")[0],"SuspendUserInteraction");},2000);window.onunload=function(){if(epages.vars.dojoUnloadStuff){epages.vars.dojoUnloadStuff();}};}}return;};}});epages.parentByTagName=function(_90,_91){while(_90.nodeName.toLocaleLowerCase()!=_91){_90=_90.parentNode;if(_90.parentNode==document.body){break;}}return _90;};try{window.console=window.console||{};window.console.debug=window.console.debug||function(){return;};window.console.warn=window.console.warn||function(){return;};}catch(e){}}if(!dojo._hasResource["epages.preload"]){dojo._hasResource["epages.preload"]=true;dojo.provide("epages.preload");epages.Preload={start:function(){this.stopped=false;this._preloadFiles();},stop:function(){this.stopped=true;},add:function(_92){if(_92.file&&_92.priority){var _93=false;for(var i=0,_94=this.files.length;i<_94;i++){if(this.files[i].file==_92.file){_93=true;break;}}if(!_93){this.files.push(_92);}}},stopped:false,_preloadFiles:function(){if(!this.stopped&&this.files.length>0){this.nextPreloadFile=this.files[0];for(var i=0,_95=this.files.length;i<_95;i++){if(this.files[i].priority>=this.nextPreloadFile.priority){this.nextPreloadFile=this.files[i];}}if(this.nextPreloadFile.priority!=-1){this.nextPreloadFile.priority=-1;dojo.xhrGet({url:this.nextPreloadFile.file,sync:false,load:function(){epages.Preload._preloadFiles();if(djConfig.isDebug){console.log("epages.Preload loaded : ",epages.Preload.nextPreloadFile.file);}},error:function(){epages.Preload._preloadFiles();if(djConfig.isDebug){console.warn("epages.Preload could not load : ",epages.Preload.nextPreloadFile.file);}}});}else{setTimeout(function(){epages.Preload._preloadFiles();},500);}}},files:[],nextPreloadFile:undefined};dojo.addOnLoad(function(){if(epages.vars.BusyLayerActive){dojo.subscribe("uimessage/stopBusy",function(_96,_97,_98){setTimeout(function(){epages.Preload.start();},_97);});}else{setTimeout(function(){epages.Preload.start();},100);}});}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_99){if(this._hash[_99.id]){throw new Error("Tried to register widget with id=="+_99.id+" but that id is already registered");}this._hash[_99.id]=_99;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_9a,_9b){_9b=_9b||dojo.global;var i=0,id;for(id in this._hash){_9a.call(_9b,this._hash[id],i++,this._hash);}return this;},filter:function(_9c,_9d){_9d=_9d||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_9c.call(_9d,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_9e;for(id in this._hash){_9e=this._hash[id];if(_9e.declaredClass==cls){res.add(_9e);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_9f,_a0){return dojo.map(this.toArray(),_9f,_a0);},every:function(_a1,_a2){_a2=_a2||dojo.global;var x=0,i;for(i in this._hash){if(!_a1.call(_a2,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_a3,_a4){_a4=_a4||dojo.global;var x=0,i;for(i in this._hash){if(_a3.call(_a4,this._hash[i],x++,this._hash)){return true;}}return false;}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_a5){var id;do{id=_a5+"_"+(_a5 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_a5]:dijit._widgetTypeCtr[_a5]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_a6){var _a7=[];function _a8(_a9){for(var _aa=_a9.firstChild;_aa;_aa=_aa.nextSibling){if(_aa.nodeType==1){var _ab=_aa.getAttribute("widgetId");if(_ab){var _ac=dijit.byId(_ab);_a7.push(_ac);}else{_a8(_aa);}}}};_a8(_a6);return _a7;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_ad){if(!_ad._destroyed){if(_ad.destroyRecursive){_ad.destroyRecursive();}else{if(_ad.destroy){_ad.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byId=function(id){return typeof id=="string"?dijit.registry._hash[id]:id;};dijit.byNode=function(_ae){return dijit.registry.byId(_ae.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_af){while(_af){var id=_af.getAttribute&&_af.getAttribute("widgetId");if(id){return dijit.byId(id);}_af=_af.parentNode;}return null;};dijit._isElementShown=function(_b0){var _b1=dojo.style(_b0);return (_b1.visibility!="hidden")&&(_b1.visibility!="collapsed")&&(_b1.display!="none")&&(dojo.attr(_b0,"type")!="hidden");};dijit.isTabNavigable=function(_b2){if(dojo.attr(_b2,"disabled")){return false;}else{if(dojo.hasAttr(_b2,"tabIndex")){return dojo.attr(_b2,"tabIndex")>=0;}else{switch(_b2.nodeName.toLowerCase()){case "a":return dojo.hasAttr(_b2,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){return _b2.contentDocument.designMode=="on";}else{if(dojo.isWebKit){var doc=_b2.contentDocument,_b3=doc&&doc.body;return _b3&&_b3.contentEditable=="true";}else{doc=_b2.contentWindow.document;_b3=doc&&doc.body;return _b3&&_b3.firstChild&&_b3.firstChild.contentEditable=="true";}}default:return _b2.contentEditable=="true";}}}};dijit._getTabNavigable=function(_b4){var _b5,_b6,_b7,_b8,_b9,_ba;var _bb=function(_bc){dojo.query("> *",_bc).forEach(function(_bd){var _be=dijit._isElementShown(_bd);if(_be&&dijit.isTabNavigable(_bd)){var _bf=dojo.attr(_bd,"tabIndex");if(!dojo.hasAttr(_bd,"tabIndex")||_bf==0){if(!_b5){_b5=_bd;}_b6=_bd;}else{if(_bf>0){if(!_b7||_bf<_b8){_b8=_bf;_b7=_bd;}if(!_b9||_bf>=_ba){_ba=_bf;_b9=_bd;}}}}if(_be&&_bd.nodeName.toUpperCase()!="SELECT"){_bb(_bd);}});};if(dijit._isElementShown(_b4)){_bb(_b4);}return {first:_b5,last:_b6,lowest:_b7,highest:_b9};};dijit.getFirstInTabbingOrder=function(_c0){var _c1=dijit._getTabNavigable(dojo.byId(_c0));return _c1.lowest?_c1.lowest:_c1.first;};dijit.getLastInTabbingOrder=function(_c2){var _c3=dijit._getTabNavigable(dojo.byId(_c2));return _c3.last?_c3.last:_c3.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_c4){var _c5=dojo.doc,_c6=_c4.mark;if(_c6){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_c6.pRange){var r=_c6;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_c6);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_c5.selection&&_c6){var rg;if(_c6.pRange){rg=_c6.range;}else{if(dojo.isArray(_c6)){rg=_c5.body.createControlRange();dojo.forEach(_c6,function(n){rg.addElement(n);});}else{rg=_c5.body.createTextRange();rg.moveToBookmark(_c6);}}rg.select();}}}},getFocus:function(_c7,_c8){var _c9=!dijit._curFocus||(_c7&&dojo.isDescendant(dijit._curFocus,_c7.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_c9,bookmark:(_c9==dijit._curFocus)&&dojo.withGlobal(_c8||dojo.global,dijit.getBookmark),openedForWindow:_c8};},focus:function(_ca){if(!_ca){return;}var _cb="node" in _ca?_ca.node:_ca,_cc=_ca.bookmark,_cd=_ca.openedForWindow,_ce=_cc?_cc.isCollapsed:false;if(_cb){var _cf=(_cb.tagName.toLowerCase()=="iframe")?_cb.contentWindow:_cb;if(_cf&&_cf.focus){try{_cf.focus();}catch(e){}}dijit._onFocusNode(_cb);}if(_cc&&dojo.withGlobal(_cd||dojo.global,dijit.isCollapsed)&&!_ce){if(_cd){_cd.focus();}try{dojo.withGlobal(_cd||dojo.global,dijit.moveToBookmark,null,[_cc]);}catch(e2){}}},_activeStack:[],registerIframe:function(_d0){return dijit.registerWin(_d0.contentWindow,_d0);},unregisterIframe:function(_d1){dijit.unregisterWin(_d1);},registerWin:function(_d2,_d3){var _d4=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_d3||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_d2.document.documentElement:_d2.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_d4);var _d5=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_d3||evt.srcElement);}else{dijit._onTouchNode(_d3||evt.srcElement);}};doc.attachEvent("onactivate",_d5);var _d6=function(evt){dijit._onBlurNode(_d3||evt.srcElement);};doc.attachEvent("ondeactivate",_d6);return function(){doc.detachEvent("onmousedown",_d4);doc.detachEvent("onactivate",_d5);doc.detachEvent("ondeactivate",_d6);doc=null;};}else{doc.addEventListener("mousedown",_d4,true);var _d7=function(evt){dijit._onFocusNode(_d3||evt.target);};doc.addEventListener("focus",_d7,true);var _d8=function(evt){dijit._onBlurNode(_d3||evt.target);};doc.addEventListener("blur",_d8,true);return function(){doc.removeEventListener("mousedown",_d4,true);doc.removeEventListener("focus",_d7,true);doc.removeEventListener("blur",_d8,true);doc=null;};}}},unregisterWin:function(_d9){_d9&&_d9();},_onBlurNode:function(_da){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_db,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _dc=[];try{while(_db){var _dd=dojo.attr(_db,"dijitPopupParent");if(_dd){_db=dijit.byId(_dd).domNode;}else{if(_db.tagName&&_db.tagName.toLowerCase()=="body"){if(_db===dojo.body()){break;}_db=dijit.getDocumentWindow(_db.ownerDocument).frameElement;}else{var id=_db.getAttribute&&_db.getAttribute("widgetId");if(id){_dc.unshift(id);}_db=_db.parentNode;}}}}catch(e){}dijit._setStack(_dc,by);},_onFocusNode:function(_de){if(!_de){return;}if(_de.nodeType==9){return;}dijit._onTouchNode(_de);if(_de==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_de;dojo.publish("focusNode",[_de]);},_setStack:function(_df,by){var _e0=dijit._activeStack;dijit._activeStack=_df;for(var _e1=0;_e1<Math.min(_e0.length,_df.length);_e1++){if(_e0[_e1]!=_df[_e1]){break;}}var _e2;for(var i=_e0.length-1;i>=_e1;i--){_e2=dijit.byId(_e0[i]);if(_e2){_e2._focused=false;_e2._hasBeenBlurred=true;if(_e2._onBlur){_e2._onBlur(by);}if(_e2._setStateClass){_e2._setStateClass();}dojo.publish("widgetBlur",[_e2,by]);}}for(i=_e1;i<_df.length;i++){_e2=dijit.byId(_df[i]);if(_e2){_e2._focused=true;if(_e2._onFocus){_e2._onFocus(by);}if(_e2._setStateClass){_e2._setStateClass();}dojo.publish("widgetFocus",[_e2,by]);}}}});dojo.addOnLoad(function(){var _e3=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_e3);_e3=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_e4){this.pairs=[];this.returnWrappers=_e4||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_e5,_e6,_e7,_e8,_e9){this.pairs[((_e9)?"unshift":"push")]([_e5,_e6,_e7,_e8]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _ea=this.pairs[i];if(_ea[1].apply(this,arguments)){if((_ea[3])||(this.returnWrappers)){return _ea[2];}else{return _ea[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_eb){for(var i=0;i<this.pairs.length;i++){var _ec=this.pairs[i];if(_ec[0]==_eb){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _ed=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _ee=dojo._docScroll();return {w:_ed.clientWidth,h:_ed.clientHeight,l:_ee.x,t:_ee.y};};dijit.placeOnScreen=function(_ef,pos,_f0,_f1){var _f2=dojo.map(_f0,function(_f3){var c={corner:_f3,pos:{x:pos.x,y:pos.y}};if(_f1){c.pos.x+=_f3.charAt(1)=="L"?_f1.x:-_f1.x;c.pos.y+=_f3.charAt(0)=="T"?_f1.y:-_f1.y;}return c;});return dijit._place(_ef,_f2);};dijit._place=function(_f4,_f5,_f6){var _f7=dijit.getViewport();if(!_f4.parentNode||String(_f4.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_f4);}var _f8=null;dojo.some(_f5,function(_f9){var _fa=_f9.corner;var pos=_f9.pos;if(_f6){_f6(_f4,_f9.aroundCorner,_fa);}var _fb=_f4.style;var _fc=_fb.display;var _fd=_fb.visibility;_fb.visibility="hidden";_fb.display="";var mb=dojo.marginBox(_f4);_fb.display=_fc;_fb.visibility=_fd;var _fe=Math.max(_f7.l,_fa.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_ff=Math.max(_f7.t,_fa.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(_f7.l+_f7.w,_fa.charAt(1)=="L"?(_fe+mb.w):pos.x),endY=Math.min(_f7.t+_f7.h,_fa.charAt(0)=="T"?(_ff+mb.h):pos.y),_100=endX-_fe,_101=endY-_ff,_102=(mb.w-_100)+(mb.h-_101);if(_f8==null||_102<_f8.overflow){_f8={corner:_fa,aroundCorner:_f9.aroundCorner,x:_fe,y:_ff,w:_100,h:_101,overflow:_102};}return !_102;});_f4.style.left=_f8.x+"px";_f4.style.top=_f8.y+"px";if(_f8.overflow&&_f6){_f6(_f4,_f8.aroundCorner,_f8.corner);}return _f8;};dijit.placeOnScreenAroundNode=function(node,_103,_104,_105){_103=dojo.byId(_103);var _106=_103.style.display;_103.style.display="";var _107=dojo.position(_103,true);_103.style.display=_106;return dijit._placeOnScreenAroundRect(node,_107.x,_107.y,_107.w,_107.h,_104,_105);};dijit.placeOnScreenAroundRectangle=function(node,_108,_109,_10a){return dijit._placeOnScreenAroundRect(node,_108.x,_108.y,_108.width,_108.height,_109,_10a);};dijit._placeOnScreenAroundRect=function(node,x,y,_10b,_10c,_10d,_10e){var _10f=[];for(var _110 in _10d){_10f.push({aroundCorner:_110,corner:_10d[_110],pos:{x:x+(_110.charAt(1)=="L"?0:_10b),y:y+(_110.charAt(0)=="T"?0:_10c)}});}return dijit._place(node,_10f,_10e);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_111,_112,_113){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAlignment=function(_114,_115){var _116={};dojo.forEach(_114,function(pos){switch(pos){case "after":_116[_115?"BR":"BL"]=_115?"BL":"BR";break;case "before":_116[_115?"BL":"BR"]=_115?"BR":"BL";break;case "below":_116[_115?"BL":"BR"]=_115?"TL":"TR";_116[_115?"BR":"BL"]=_115?"TR":"TL";break;case "above":default:_116[_115?"TL":"TR"]=_115?"BL":"BR";_116[_115?"TR":"TL"]=_115?"BR":"BL";break;}});return _116;};dijit.getPopupAroundAlignment=function(_117,_118){var _119={};dojo.forEach(_117,function(pos){switch(pos){case "after":_119[_118?"BR":"BL"]=_118?"BL":"BR";break;case "before":_119[_118?"BL":"BR"]=_118?"BR":"BL";break;case "below":_119[_118?"BL":"BR"]=_118?"TL":"TR";_119[_118?"BR":"BL"]=_118?"TR":"TL";break;case "above":default:_119[_118?"TL":"TR"]=_118?"BL":"BR";_119[_118?"TR":"TL"]=_118?"BR":"BL";break;}});return _119;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&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;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _11a=[],_11b=1000,_11c=1;this.moveOffScreen=function(node){var s=node.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(node);};var _11d=function(){for(var pi=_11a.length-1;pi>0&&_11a[pi].parent===_11a[pi-1].widget;pi--){}return _11a[pi];};var _11e=[];this.open=function(args){var _11f=args.popup,_120=args.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_121=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_11c++);var _122=_11e.pop(),_123,_124;if(!_122){_123=dojo.create("div",{"class":"dijitPopup"},dojo.body());dijit.setWaiRole(_123,"presentation");}else{_123=_122[0];_124=_122[1];}dojo.attr(_123,{id:id,style:{zIndex:_11b+_11a.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:args.parent?args.parent.id:""});var s=_11f.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_123.appendChild(_11f.domNode);if(!_124){_124=new dijit.BackgroundIframe(_123);}else{_124.resize(_123);}var best=_121?dijit.placeOnScreenAroundElement(_123,_121,_120,_11f.orient?dojo.hitch(_11f,"orient"):null):dijit.placeOnScreen(_123,args,_120=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_123.style.visibility="visible";var _125=[];_125.push(dojo.connect(_123,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _126=_11d();if(_126&&_126.onCancel){_126.onCancel();}}}}));if(_11f.onCancel){_125.push(dojo.connect(_11f,"onCancel",args.onCancel));}_125.push(dojo.connect(_11f,_11f.onExecute?"onExecute":"onChange",function(){var _127=_11d();if(_127&&_127.onExecute){_127.onExecute();}}));_11a.push({wrapper:_123,iframe:_124,widget:_11f,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_125});if(_11f.onOpen){_11f.onOpen(best);}return best;};this.close=function(_128){while(dojo.some(_11a,function(elem){return elem.widget==_128;})){var top=_11a.pop(),_129=top.wrapper,_12a=top.iframe,_12b=top.widget,_12c=top.onClose;if(_12b.onClose){_12b.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_12b&&_12b.domNode){this.moveOffScreen(_12b.domNode);}_129.style.top="-9999px";_129.style.visibility="hidden";_11e.push([_129,_12a]);if(_12c){_12c();}}};}();dijit._frames=new function(){var _12d=[];this.pop=function(){var _12e;if(_12d.length){_12e=_12d.pop();_12e.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_12e=dojo.doc.createElement(html);}else{_12e=dojo.create("iframe");_12e.src="javascript:\"\"";_12e.className="dijitBackgroundIframe";dojo.style(_12e,"opacity",0.1);}_12e.tabIndex=-1;}return _12e;};this.push=function(_12f){_12f.style.display="none";_12d.push(_12f);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _130=dijit._frames.pop();node.appendChild(_130);if(dojo.isIE<7){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_130,{width:"100%",height:"100%"});}this.iframe=_130;}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe&&dojo.isIE<7){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){try{node=dojo.byId(node);var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if((!(dojo.isMoz||isIE||isWK)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _131=doc.compatMode=="BackCompat",_132=_131?body:html,_133=isWK?body:_132,_134=_132.clientWidth,_135=_132.clientHeight,rtl=!dojo._isBodyLtr(),_136=pos||dojo.position(node),el=node.parentNode,_137=function(el){return ((isIE<=6||(isIE&&_131))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_137(node)){return;}while(el){if(el==body){el=_133;}var _138=dojo.position(el),_139=_137(el);with(_138){if(el==_133){w=_134,h=_135;if(_133==html&&isIE&&rtl){x+=_133.offsetWidth-w;}if(x<0||!isIE){x=0;}if(y<0||!isIE){y=0;}}else{var pb=dojo._getPadBorderExtents(el);w-=pb.w;h-=pb.h;x+=pb.l;y+=pb.t;}with(el){if(el!=_133){var _13a=clientWidth,_13b=w-_13a;if(_13a>0&&_13b>0){w=_13a;if(isIE&&rtl){x+=_13b;}}_13a=clientHeight;_13b=h-_13a;if(_13a>0&&_13b>0){h=_13a;}}if(_139){if(y<0){h+=y,y=0;}if(x<0){w+=x,x=0;}if(y+h>_135){h=_135-y;}if(x+w>_134){w=_134-x;}}var l=_136.x-x,t=_136.y-Math.max(y,0),r=l+_136.w-w,bot=t+_136.h-h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_136.x+=scrollLeft;scrollLeft+=(isIE>=8&&!_131&&rtl)?-s:s;_136.x-=scrollLeft;}if(bot*t>0){_136.y+=scrollTop;scrollTop+=Math[t<0?"max":"min"](t,bot);_136.y-=scrollTop;}}}el=(el!=_133)&&!_139&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_13c=d.isOpera,maj=Math.floor,ff=d.isFF,_13d=d.boxModel.replace(/-/,""),_13e={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_iequirks:ie&&d.isQuirks,dj_opera:_13c,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_13e["dj_"+_13d]=true;for(var p in _13e){if(_13e[p]){if(html.className){html.className+=" "+p;}else{html.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){html.className+=" dijitRtl";for(var p in _13e){if(_13e[p]){html.className+=" "+p+"-rtl";}}}});})();}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),10);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_13f,node,_140,obj,_141,_142){if(obj!=this._obj){this.stop();this._initialDelay=_142||500;this._subsequentDelay=_141||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_13f,_140);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_143,_144,_145,_146,_147){if(_143.keyCode){_143.charOrCode=_143.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_143.charCode){_143.charOrCode=String.fromCharCode(_143.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_143.charOrCode&&(_143.ctrlKey===undefined||_143.ctrlKey==evt.ctrlKey)&&(_143.altKey===undefined||_143.altKey==evt.altKey)&&(_143.metaKey===undefined||_143.metaKey==(evt.metaKey||false))&&(_143.shiftKey===undefined||_143.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_143,_144,node,_145,_143,_146,_147);}else{if(dijit.typematic._obj==_143){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_143){dijit.typematic.stop();}})];},addMouseListener:function(node,_148,_149,_14a,_14b){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_148,node,_149,node,_14a,_14b);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_148,node,_149,node,_14a,_14b);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_14c,_14d,_14e,_14f,_150,_151,_152){return this.addKeyListener(_14d,_14e,_14f,_150,_151,_152).concat(this.addMouseListener(_14c,_14f,_150,_151,_152));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _153=cs.backgroundImage;var _154=(cs.borderTopColor==cs.borderRightColor)||(_153!=null&&(_153=="none"||_153=="url(invalid-url:)"));dojo[_154?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _155=this.getWaiRole(elem);return role?(_155.indexOf(role)>-1):(_155.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _156=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_156)){dojo.attr(elem,"role",role);}else{if((" "+_156+" ").indexOf(" "+role+" ")<0){var _157=dojo.trim(_156.replace(this._XhtmlRoles,""));var _158=dojo.trim(_156.replace(_157,""));dojo.attr(elem,"role",_158+(_158?" ":"")+role);}}},removeWaiRole:function(elem,role){var _159=dojo.attr(elem,"role");if(!_159){return;}if(role){var t=dojo.trim((" "+_159+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_15a){return elem.hasAttribute?elem.hasAttribute("aria-"+_15a):!!elem.getAttribute("aria-"+_15a);},getWaiState:function(elem,_15b){return elem.getAttribute("aria-"+_15b)||"";},setWaiState:function(elem,_15c,_15d){elem.setAttribute("aria-"+_15c,_15d);},removeWaiState:function(elem,_15e){elem.removeAttribute("aria-"+_15e);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_15f,_160){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _161=dojo.date.stamp._isoRegExp.exec(_15f),_162=null;if(_161){_161.shift();if(_161[1]){_161[1]--;}if(_161[6]){_161[6]*=1000;}if(_160){_160=new Date(_160);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _160["get"+prop]();}).forEach(function(_163,_164){if(_161[_164]===undefined){_161[_164]=_163;}});}_162=new Date(_161[0]||1970,_161[1]||0,_161[2]||1,_161[3]||0,_161[4]||0,_161[5]||0,_161[6]||0);if(_161[0]<100){_162.setFullYear(_161[0]||1970);}var _165=0,_166=_161[7]&&_161[7].charAt(0);if(_166!="Z"){_165=((_161[8]||0)*60)+(Number(_161[9])||0);if(_166!="-"){_165*=-1;}}if(_166){_165-=_162.getTimezoneOffset();}if(_165){_162.setTime(_162.getTime()+_165*60000);}}return _162;};dojo.date.stamp.toISOString=function(_167,_168){var _169=function(n){return (n<10)?"0"+n:n;};_168=_168||{};var _16a=[],_16b=_168.zulu?"getUTC":"get",date="";if(_168.selector!="time"){var year=_167[_16b+"FullYear"]();date=["0000".substr((year+"").length)+year,_169(_167[_16b+"Month"]()+1),_169(_167[_16b+"Date"]())].join("-");}_16a.push(date);if(_168.selector!="date"){var time=[_169(_167[_16b+"Hours"]()),_169(_167[_16b+"Minutes"]()),_169(_167[_16b+"Seconds"]())].join(":");var _16c=_167[_16b+"Milliseconds"]();if(_168.milliseconds){time+="."+(_16c<100?"0":"")+_169(_16c);}if(_168.zulu){time+="Z";}else{if(_168.selector!="time"){var _16d=_167.getTimezoneOffset();var _16e=Math.abs(_16d);time+=(_16d>0?"-":"+")+_169(Math.floor(_16e/60))+":"+_169(_16e%60);}}_16a.push(time);}return _16a.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _16f(_170){if(d.isString(_170)){return "string";}if(typeof _170=="number"){return "number";}if(typeof _170=="boolean"){return "boolean";}if(d.isFunction(_170)){return "function";}if(d.isArray(_170)){return "array";}if(_170 instanceof Date){return "date";}if(_170 instanceof d._Url){return "url";}return "object";};function _171(_172,type){switch(type){case "string":return _172;case "number":return _172.length?Number(_172):NaN;case "boolean":return typeof _172=="boolean"?_172:!(_172.toLowerCase()=="false");case "function":if(d.isFunction(_172)){_172=_172.toString();_172=d.trim(_172.substring(_172.indexOf("{")+1,_172.length-1));}try{if(_172.search(/[^\w\.]+/i)!=-1){return new Function(_172);}else{return d.getObject(_172,false);}}catch(e){return new Function();}case "array":return _172?_172.split(/\s*,\s*/):[];case "date":switch(_172){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_172);}case "url":return d.baseUrl+_172;default:return d.fromJson(_172);}};var _173={};dojo.connect(dojo,"extend",function(){_173={};});function _174(_175){if(!_173[_175]){var cls=d.getObject(_175);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_175+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _176=cls.prototype;var _177={},_178={};for(var name in _176){if(name.charAt(0)=="_"){continue;}if(name in _178){continue;}var _179=_176[name];_177[name]=_16f(_179);}_173[_175]={cls:cls,params:_177};}return _173[_175];};this._functionFromScript=function(_17a){var _17b="";var _17c="";var _17d=_17a.getAttribute("args");if(_17d){d.forEach(_17d.split(/\s*,\s*/),function(part,idx){_17b+="var "+part+" = arguments["+idx+"]; ";});}var _17e=_17a.getAttribute("with");if(_17e&&_17e.length){d.forEach(_17e.split(/\s*,\s*/),function(part){_17b+="with("+part+"){";_17c+="}";});}return new Function(_17b+_17a.innerHTML+_17c);};this.instantiate=function(_17f,_180,args){var _181=[],dp=dojo.parser;_180=_180||{};args=args||{};d.forEach(_17f,function(node){if(!node){return;}var type=dp._attrName in _180?_180[dp._attrName]:node.getAttribute(dp._attrName);if(!type||!type.length){return;}var _182=_174(type),_183=_182.cls,ps=_183._noScript||_183.prototype._noScript;var _184={},_185=node.attributes;for(var name in _182.params){var item=name in _180?{value:_180[name],specified:true}:_185.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _186=item.value;switch(name){case "class":_186="className" in _180?_180.className:node.className;break;case "style":_186="style" in _180?_180.style:(node.style&&node.style.cssText);}var _187=_182.params[name];if(typeof _186=="string"){_184[name]=_171(_186,_187);}else{_184[name]=_186;}}if(!ps){var _188=[],_189=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_18a){var _18b=_18a.getAttribute("event"),type=_18a.getAttribute("type"),nf=d.parser._functionFromScript(_18a);if(_18b){if(type=="dojo/connect"){_188.push({event:_18b,func:nf});}else{_184[_18b]=nf;}}else{_189.push(nf);}});}var _18c=_183.markupFactory||_183.prototype&&_183.prototype.markupFactory;var _18d=_18c?_18c(_184,node,_183):new _183(_184,node);_181.push(_18d);var _18e=node.getAttribute("jsId");if(_18e){d.setObject(_18e,_18d);}if(!ps){d.forEach(_188,function(_18f){d.connect(_18d,_18f.event,null,_18f.func);});d.forEach(_189,function(func){func.call(_18d);});}});if(!_180._started){d.forEach(_181,function(_190){if(!args.noStart&&_190&&_190.startup&&!_190._started&&(!_190.getParent||!_190.getParent())){_190.startup();}});}return _181;};this.parse=function(_191,args){var root;if(!args&&_191&&_191.rootNode){args=_191;root=args.rootNode;}else{root=_191;}var list=d.query(this._query,root);return this.instantiate(list,null,args);};}();(function(){var _192=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_192);}else{dojo._loaders.unshift(_192);}})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_193,map,_194,_195){_195=_195||dojo.global;_194=_194?dojo.hitch(_195,_194):function(v){return v;};return _193.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_196,key,_197){var _198=dojo.getObject(key,false,map);if(_197){_198=dojo.getObject(_197,false,_195).call(_195,_198,key);}return _194(_198,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"_connect",function(_199,_19a){if(_199&&dojo.isFunction(_199._onConnect)){_199._onConnect(_19a);}});dijit._connectOnUseEventHandler=function(_19b){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _19c=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_19c);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_19c);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _19d={},_19e=function(_19f){var dc=_19f.declaredClass;if(!_19d[dc]){var r=[],_1a0,_1a1=_19f.constructor.prototype;for(var _1a2 in _1a1){if(dojo.isFunction(_1a1[_1a2])&&(_1a0=_1a2.match(/^_set([a-zA-Z]*)Attr$/))&&_1a0[1]){r.push(_1a0[1].charAt(0).toLowerCase()+_1a0[1].substr(1));}}_19d[dc]=r;}return _19d[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_1a3,_1a4){this.create(_1a3,_1a4);},create:function(_1a5,_1a6){this.srcNodeRef=dojo.byId(_1a6);this._connects=[];this._subscribes=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_1a5){this.params=_1a5;dojo.mixin(this,_1a5);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _1a7=this.srcNodeRef;if(_1a7&&_1a7.parentNode){_1a7.parentNode.replaceChild(this.domNode,_1a7);}for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _1a8=function(attr,_1a9){if((_1a9.params&&attr in _1a9.params)||_1a9[attr]){_1a9.attr(attr,_1a9[attr]);}};for(var attr in this.attributeMap){_1a8(attr,this);}dojo.forEach(_19e(this),function(a){if(!(a in this.attributeMap)){_1a8(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_1aa){this._beingDestroyed=true;this.destroyDescendants(_1aa);this.destroy(_1aa);},destroy:function(_1ab){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_1ac){dfe(_1ac,d.disconnect);});dfe(this._subscribes,function(_1ad){dun(_1ad);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_1ab);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_1ae){if(this.bgIframe){this.bgIframe.destroy(_1ae);delete this.bgIframe;}if(this.domNode){if(_1ae){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_1ae){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_1af){dojo.forEach(this.getChildren(),function(_1b0){if(_1b0.destroyRecursive){_1b0.destroyRecursive(_1af);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_1b1){if(_1b1 in this._deferredConnects){var _1b2=this[this._deferredConnects[_1b1]||"domNode"];this.connect(_1b2,_1b1.toLowerCase(),_1b1);delete this._deferredConnects[_1b1];}},_setClassAttr:function(_1b3){var _1b4=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_1b4,this["class"]);this["class"]=_1b3;dojo.addClass(_1b4,_1b3);},_setStyleAttr:function(_1b5){var _1b6=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_1b5)){dojo.style(_1b6,_1b5);}else{if(_1b6.style.cssText){_1b6.style.cssText+="; "+_1b5;}else{_1b6.style.cssText=_1b5;}}this.style=_1b5;},setAttribute:function(attr,_1b7){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_1b7);},_attrToDom:function(attr,_1b8){var _1b9=this.attributeMap[attr];dojo.forEach(dojo.isArray(_1b9)?_1b9:[_1b9],function(_1ba){var _1bb=this[_1ba.node||_1ba||"domNode"];var type=_1ba.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_1b8)){_1b8=dojo.hitch(this,_1b8);}var _1bc=_1ba.attribute?_1ba.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_1bb,_1bc,_1b8);break;case "innerText":_1bb.innerHTML="";_1bb.appendChild(dojo.doc.createTextNode(_1b8));break;case "innerHTML":_1bb.innerHTML=_1b8;break;case "class":dojo.removeClass(_1bb,this[attr]);dojo.addClass(_1bb,_1b8);break;}},this);this[attr]=_1b8;},attr:function(name,_1bd){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _1be=this._getAttrNames(name);if(args>=2){if(this[_1be.s]){args=dojo._toArray(arguments,1);return this[_1be.s].apply(this,args)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_1bd);}this[name]=_1bd;}return this;}else{return this[_1be.g]?this[_1be.g]():this[name];}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_1bf,_1c0){var d=dojo,dc=d._connect,_1c1=[];if(_1bf=="ondijitclick"){if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){var m=d.hitch(this,_1c0);_1c1.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;d.stopEvent(e);}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}_1bf="onclick";}_1c1.push(dc(obj,_1bf,this,_1c0));this._connects.push(_1c1);return _1c1;},disconnect:function(_1c2){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1c2){dojo.forEach(_1c2,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_1c3,_1c4){var d=dojo,_1c5=d.subscribe(_1c3,this,_1c4);this._subscribes.push(_1c5);return _1c5;},unsubscribe:function(_1c6){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_1c6){dojo.unsubscribe(_1c6);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_1c7,_1c8){if(_1c7.declaredClass&&_1c7.addChild){_1c7.addChild(this,_1c8);}else{dojo.place(this.domNode,_1c7,_1c8);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){}});})();}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");(function(){var _1c9={};dojo.cache=function(_1ca,url,_1cb){if(typeof _1ca=="string"){var _1cc=dojo.moduleUrl(_1ca,url);}else{_1cc=_1ca;_1cb=url;}var key=_1cc.toString();var val=_1cb;if(_1cb!==undefined&&!dojo.isString(_1cb)){val=("value" in _1cb?_1cb.value:undefined);}var _1cd=_1cb&&_1cb.sanitize?true:false;if(val||val===null){if(val==null){delete _1c9[key];}else{val=_1c9[key]=_1cd?dojo.cache._sanitize(val):val;}}else{if(!(key in _1c9)){val=dojo._getText(key);_1c9[key]=_1cd?dojo.cache._sanitize(val):val;}val=_1c9[key];}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1ce=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1ce){val=_1ce[1];}}else{val="";}return val;};})();}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,_stringRepl:function(tmpl){var _1cf=this.declaredClass,_1d0=this;return dojo.string.substitute(tmpl,this,function(_1d1,key){if(key.charAt(0)=="!"){_1d1=dojo.getObject(key.substr(1),false,_1d0);}if(typeof _1d1=="undefined"){throw new Error(_1cf+" template:"+key);}if(_1d1==null){return "";}return key.charAt(0)=="!"?_1d1:_1d1.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){this._attachPoints=[];var _1d2=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_1d2)){node=dojo._toDom(this._stringRepl(_1d2));if(node.nodeType!=1){throw new Error("Invalid template: "+_1d2);}}else{node=_1d2.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _1d3=dojo.parser,qry,attr;if(_1d3._query!="[dojoType]"){qry=_1d3._query;attr=_1d3._attrName;_1d3._query="[dojoType]";_1d3._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){_1d3._query=qry;_1d3._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_1d4){var dest=this.containerNode;if(_1d4&&dest){while(_1d4.hasChildNodes()){dest.appendChild(_1d4.firstChild);}}},_attachTemplateNodes:function(_1d5,_1d6){_1d6=_1d6||function(n,p){return n.getAttribute(p);};var _1d7=dojo.isArray(_1d5)?_1d5:(_1d5.all||_1d5.getElementsByTagName("*"));var x=dojo.isArray(_1d5)?0:-1;for(;x<_1d7.length;x++){var _1d8=(x==-1)?_1d5:_1d7[x];if(this.widgetsInTemplate&&_1d6(_1d8,"dojoType")){continue;}var _1d9=_1d6(_1d8,"dojoAttachPoint");if(_1d9){var _1da,_1db=_1d9.split(/\s*,\s*/);while((_1da=_1db.shift())){if(dojo.isArray(this[_1da])){this[_1da].push(_1d8);}else{this[_1da]=_1d8;}this._attachPoints.push(_1da);}}var _1dc=_1d6(_1d8,"dojoAttachEvent");if(_1dc){var _1dd,_1de=_1dc.split(/\s*,\s*/);var trim=dojo.trim;while((_1dd=_1de.shift())){if(_1dd){var _1df=null;if(_1dd.indexOf(":")!=-1){var _1e0=_1dd.split(":");_1dd=trim(_1e0[0]);_1df=trim(_1e0[1]);}else{_1dd=trim(_1dd);}if(!_1df){_1df=_1dd;}this.connect(_1d8,_1dd,_1df);}}}var role=_1d6(_1d8,"waiRole");if(role){dijit.setWaiRole(_1d8,role);}var _1e1=_1d6(_1d8,"waiState");if(_1e1){dojo.forEach(_1e1.split(/\s*,\s*/),function(_1e2){if(_1e2.indexOf("-")!=-1){var pair=_1e2.split("-");dijit.setWaiState(_1d8,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_1e3){delete this[_1e3];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1e4,_1e5,_1e6){var _1e7=dijit._Templated._templateCache;var key=_1e5||_1e4;var _1e8=_1e7[key];if(_1e8){try{if(!_1e8.ownerDocument||_1e8.ownerDocument==dojo.doc){return _1e8;}}catch(e){}dojo.destroy(_1e8);}if(!_1e5){_1e5=dojo.cache(_1e4,{sanitize:true});}_1e5=dojo.string.trim(_1e5);if(_1e6||_1e5.match(/\$\{([^\}]+)\}/g)){return (_1e7[key]=_1e5);}else{var node=dojo._toDom(_1e5);if(node.nodeType!=1){throw new Error("Invalid template: "+_1e5);}return (_1e7[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1e9=dijit._Templated._templateCache;for(var key in _1e9){var _1ea=_1e9[key];if(typeof _1ea=="object"){dojo.destroy(_1ea);}delete _1e9[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1eb,_1ec){var _1ed=this.containerNode;if(_1ec&&typeof _1ec=="number"){var _1ee=this.getChildren();if(_1ee&&_1ee.length>=_1ec){_1ed=_1ee[_1ec-1].domNode;_1ec="after";}}dojo.place(_1eb.domNode,_1ed,_1ec);if(this._started&&!_1eb._started){_1eb.startup();}},removeChild:function(_1ef){if(typeof _1ef=="number"&&_1ef>0){_1ef=this.getChildren()[_1ef];}if(_1ef&&_1ef.domNode){var node=_1ef.domNode;node.parentNode.removeChild(node);}},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return dojo.query("> [widgetId]",this.containerNode).length>0;},destroyDescendants:function(_1f0){dojo.forEach(this.getChildren(),function(_1f1){_1f1.destroyRecursive(_1f0);});},_getSiblingOfChild:function(_1f2,dir){var node=_1f2.domNode,_1f3=(dir>0?"nextSibling":"previousSibling");do{node=node[_1f3];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_1f4){return dojo.indexOf(this.getChildren(),_1f4);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1f5){_1f5.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _1f6=dijit.getEnclosingWidget(this.domNode.parentNode);return _1f6&&_1f6.isContainer?_1f6:null;},_getSibling:function(_1f7){var node=this.domNode;do{node=node[_1f7+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);this.inherited(arguments);},startup:function(){if(this._started){return;}this.inherited(arguments);var _1f8=this.getParent&&this.getParent();if(!(_1f8&&_1f8.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_1f9,_1fa){var node=this.domNode;if(_1f9){dojo.marginBox(node,_1f9);if(_1f9.t){node.style.top=_1f9.t+"px";}if(_1f9.l){node.style.left=_1f9.l+"px";}}var mb=_1fa||{};dojo.mixin(mb,_1f9||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_1fb){dojo.addClass(_1fb.domNode,this.baseClass+"-child");if(_1fb.baseClass){dojo.addClass(_1fb.domNode,this.baseClass+"-"+_1fb.baseClass);}},addChild:function(_1fc,_1fd){this.inherited(arguments);if(this._started){this._setupChild(_1fc);}},removeChild:function(_1fe){dojo.removeClass(_1fe.domNode,this.baseClass+"-child");if(_1fe.baseClass){dojo.removeClass(_1fe.domNode,this.baseClass+"-"+_1fe.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1ff=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_200,dim){_200.resize?_200.resize(dim):dojo.marginBox(_200.domNode,dim);dojo.mixin(_200,dojo.marginBox(_200.domNode));dojo.mixin(_200,dim);};dijit.layout.layoutChildren=function(_201,dim,_202){dim=dojo.mixin({},dim);dojo.addClass(_201,"dijitLayoutContainer");_202=dojo.filter(_202,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_202,function(item){return item.layoutAlign=="client";}));dojo.forEach(_202,function(_203){var elm=_203.domNode,pos=_203.layoutAlign;var _204=elm.style;_204.left=dim.l+"px";_204.top=dim.t+"px";_204.bottom=_204.right="auto";dojo.addClass(elm,"dijitAlign"+_1ff(pos));if(pos=="top"||pos=="bottom"){size(_203,{w:dim.w});dim.h-=_203.h;if(pos=="top"){dim.t+=_203.h;}else{_204.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_203,{h:dim.h});dim.w-=_203.w;if(pos=="left"){dim.l+=_203.w;}else{_204.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_203,dim);}}}});};})();}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments);},_setDisabledAttr:function(_205){this.disabled=_205;dojo.attr(this.focusNode,"disabled",_205);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_205);}dijit.setWaiState(this.focusNode,"disabled",_205);if(_205){this._hovering=false;this._active=false;this.focusNode.setAttribute("tabIndex","-1");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_206){dojo.deprecated("setDisabled("+_206+") is deprecated. Use attr('disabled',"+_206+") instead.","","2.0");this.attr("disabled",_206);},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_207){var _208=_207.currentTarget;if(_208&&_208.getAttribute){this.stateModifier=_208.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_207.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _209=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_209);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){var _20a=this.baseClass.split(" ");function _20b(_20c){_20a=_20a.concat(dojo.map(_20a,function(c){return c+_20c;}),"dijit"+_20c);};if(this.checked){_20b("Checked");}if(this.state){_20b(this.state);}if(this.selected){_20b("Selected");}if(this.disabled){_20b("Disabled");}else{if(this.readOnly){_20b("ReadOnly");}else{if(this._active){_20b(this.stateModifier+"Active");}else{if(this._focused){_20b("Focused");}if(this._hovering){_20b(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_20d={};dojo.forEach(tn.className.split(" "),function(c){_20d[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _20d[c];});}dojo.forEach(_20a,function(c){_20d[c]=true;});var _20e=[];for(var c in _20d){_20e.push(c);}tn.className=_20e.join(" ");this._stateClasses=_20a;},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_20f){},_onChangeActive:false,_handleOnChange:function(_210,_211){this._lastValue=_210;if(this._lastValueReported==undefined&&(_211===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_210;}if((this.intermediateChanges||_211||_211===undefined)&&((typeof _210!=typeof this._lastValueReported)||this.compare(_210,this._lastValueReported)!=0)){this._lastValueReported=_210;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_210);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_212){dojo.deprecated("dijit.form._FormWidget:setValue("+_212+") is deprecated.  Use attr('value',"+_212+") instead.","","2.0");this.attr("value",_212);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_213){this.readOnly=_213;dojo.attr(this.focusNode,"readOnly",_213);dijit.setWaiState(this.focusNode,"readonly",_213);this._setStateClass();},postCreate:function(){if(dojo.isIE){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_214,_215){this.value=_214;this._handleOnChange(_214,_215);},_getValueAttr:function(){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _216=this.domNode;var _217=_216.parentNode;var _218=_216.firstChild||_216;var _219=_218.style.filter;while(_217&&_217.clientHeight==0){_217._disconnectHandle=this.connect(_217,"onscroll",dojo.hitch(this,function(e){this.disconnect(_217._disconnectHandle);_217.removeAttribute("_disconnectHandle");_218.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_218.style.filter=_219;},0);}));_217=_217.parentNode;}}}});}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_21a){if(_21a.reset){_21a.reset();}});},validate:function(){var _21b=false;return dojo.every(dojo.map(this.getDescendants(),function(_21c){_21c._hasBeenBlurred=true;var _21d=_21c.disabled||!_21c.validate||_21c.validate();if(!_21d&&!_21b){dijit.scrollIntoView(_21c.containerNode||_21c.domNode);_21c.focus();_21b=true;}return _21d;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_21e){if(!_21e.name){return;}var _21f=map[_21e.name]||(map[_21e.name]=[]);_21f.push(_21e);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _220=map[name],_221=dojo.getObject(name,false,obj);if(_221===undefined){continue;}if(!dojo.isArray(_221)){_221=[_221];}if(typeof _220[0].checked=="boolean"){dojo.forEach(_220,function(w,i){w.attr("value",dojo.indexOf(_221,w.value)!=-1);});}else{if(_220[0].multiple){_220[0].attr("value",_221);}else{dojo.forEach(_220,function(w,i){w.attr("value",_221[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_222){var name=_222.name;if(!name||_222.disabled){return;}var _223=_222.attr("value");if(typeof _222.checked=="boolean"){if(/Radio/.test(_222.declaredClass)){if(_223!==false){dojo.setObject(name,_223,obj);}else{_223=dojo.getObject(name,false,obj);if(_223===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_223!==false){ary.push(_223);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_223);}else{dojo.setObject(name,[prev,_223],obj);}}else{dojo.setObject(name,_223,obj);}}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_224){return !_224.disabled&&_224.isValid&&!_224.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_225){},_widgetChange:function(_226){var _227=this._lastValidState;if(!_226||this._lastValidState===undefined){_227=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_227;}}else{if(_226.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_226);},this);if(!_226.isValid()&&!_226.attr("disabled")){this._invalidWidgets.push(_226);}_227=(this._invalidWidgets.length===0);}}if(_227!==this._lastValidState){this._lastValidState=_227;this.onValidStateChange(_227);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _228=this;var _229=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_22a){_229.push(_228.connect(_22a,"validate",dojo.hitch(_228,"_widgetChange",_22a)));_229.push(_228.connect(_22a,"_setDisabledAttr",dojo.hitch(_228,"_widgetChange",_22a)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_22b){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_22c){var _22d=dijit._getTabNavigable(dojo.byId(_22c));this._firstFocusItem=_22d.lowest||_22d.first||_22c;this._lastFocusItem=_22d.last||_22d.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_22c,"tabIndex","0");this._firstFocusItem=_22c;}}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_22e){this.node.className="dijitDialogUnderlay "+_22e;},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _22f=dijit.getViewport();os.top=_22f.t+"px";os.left=_22f.l+"px";is.width=_22f.w+"px";is.height=_22f.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new dijit.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();this.domNode.style.display="none";},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _230=this;dojo.mixin(_230,args);_230.node=args.node;_230._showArgs=dojo.mixin({},args);_230._showArgs.node=_230.node;_230._showArgs.duration=_230.showDuration;_230.showAnim=_230.showFunc(_230._showArgs);_230._hideArgs=dojo.mixin({},args);_230._hideArgs.node=_230.node;_230._hideArgs.duration=_230.hideDuration;_230.hideAnim=_230.hideFunc(_230._hideArgs);dojo.connect(_230.showAnim,"beforeBegin",dojo.hitch(_230.hideAnim,"stop",true));dojo.connect(_230.hideAnim,"beforeBegin",dojo.hitch(_230.showAnim,"stop",true));},show:function(_231){return this.showAnim.play(_231||0);},hide:function(_232){return this.hideAnim.play(_232||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_233={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _234=function(_235){this._index=-1;this._animations=_235||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_234,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_236,_237){if(!this._current){this._current=this._animations[this._index=0];}if(!_237&&this._current.status()=="playing"){return this;}var _238=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_239=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_23a=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_238);d.disconnect(_239);d.disconnect(_23a);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_23b,_23c){this.pause();var _23d=this.duration*_23b;this._current=null;d.some(this._animations,function(a){if(a.duration<=_23d){this._current=a;return true;}_23d-=a.duration;return false;});if(this._current){this._current.gotoPercent(_23d/this._current.duration,_23c);}return this;},stop:function(_23e){if(this._current){if(_23e){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_234,_233);dojo.fx.chain=function(_23f){return new _234(_23f);};var _240=function(_241){this._animations=_241||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_241,function(a){var _242=a.duration;if(a.delay){_242+=a.delay;}if(this.duration<_242){this.duration=_242;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_240,{_doAction:function(_243,args){d.forEach(this._animations,function(a){a[_243].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_244,args){var t=this._pseudoAnimation;t[_244].apply(t,args);},play:function(_245,_246){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_247,_248){var ms=this.duration*_247;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_248);});this._call("gotoPercent",arguments);return this;},stop:function(_249){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_240,_233);dojo.fx.combine=function(_24a){return new _240(_24a);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _24b=d.style(node,"height");return Math.max(_24b,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["epages.browser"]){dojo._hasResource["epages.browser"]=true;dojo.provide("epages.browser");epages.Browser={};(function(){var _24c=epages.Browser;_24c.engine="Unknown";_24c.version="Unknown";if(window.opera){_24c.engine="Presto";_24c.version=window.opera.version();}else{var _24d=(navigator.appVersion+navigator.userAgent).toLowerCase();if(_24d.match("iemobile")||_24d.match("windows ce")){_24c.engine="MSIE";_24c.version=6;}else{if(_24d.match("msie")){_24c.engine="MSIE";_24c.version=(window.XDomainRequest&&dojo.isIE==7)?8:dojo.isIE;var _24e=document.createElement("b");_24e.style.cssText="max-height:1";if(_24e.style.cssText.match("max-height")){_24c.version=6;}}else{if(_24d.match("webkit")){_24c.engine="WebKit";_24c.version=parseFloat(_24d.split("/")[2])||dojo.isSafari;var _24f=_24d.match(/applewebkit\/(\d+)\.(\d+)/);_24c.webkitversion={};_24c.webkitversion.major=parseInt(_24f[1]);_24c.webkitversion.minor=parseInt(_24f[2]);}else{if(_24d.match("gecko")){_24c.engine="Gecko";_24c.version=dojo.isFx||dojo.isFF||parseFloat(_24d.split("/").pop());}else{if(_24d.match("khtml")){_24c.engine="KHTML";}}}}}}_24c.version=_24c.version.toString().replace(/\./g,"_");(document.documentElement||document.body.parentNode).className+=" "+_24c.engine+" "+_24c.engine+_24c.version;})();(function(){for(var _250=15;_250>3;_250--){var _251=true;if(navigator.plugins.length){try{var _252=navigator.plugins["Shockwave Flash"].description;_251=_252.slice(_252.indexOf(".")-2,_252.indexOf("."))>=_250;}catch(e){_251=false;}}else{try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_250);}catch(e){_251=false;}}if(_251){epages.Browser.flashVersion=_250;break;}}})();}if(!dojo._hasResource["epages.event"]){dojo._hasResource["epages.event"]=true;dojo.provide("epages.event");epages.event.fire=function(_253,_254){if(epages.Browser.engine=="MSIE"){try{_253.fireEvent("on"+_254);}catch(e){}}else{if(_254=="click"||_254=="dblclick"||_254=="mousedown"||_254=="mousemove"||_254=="mouseout"||_254=="mouseover"||_254=="mouseup"){var _255=document.createEvent("MouseEvents");_255.initMouseEvent(_254,true,true,window,0,0,0,0,0,false,false,false,false,0,null);}else{var _255=document.createEvent("HTMLEvents");_255.initEvent(_254,true,true);}_253.dispatchEvent(_255);}};}if(!dojo._hasResource["epages.string"]){dojo._hasResource["epages.string"]=true;dojo.provide("epages.string");epages.string={escapeJavaScript:function(str){return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");},escapeXml:function(str,_256){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_256){str=str.replace(/'/gm,"&#39;");}return str;},toBoolean:function(_257){if(_257===undefined){return false;}if(typeof _257=="boolean"){return _257;}if(typeof _257!="string"){throw new Error("Not a string value, got "+typeof (_257)+"!");}return _257.toLowerCase()==="true"||_257=="1"?true:false;},toInteger:function(_258,_259){if(_259){_258=_258.replace(/\./g,"");}return parseInt(_258.replace(/[^0-9\,\.]/g,""));},toTime:function(_25a,_25b){if(_25a==""){return null;}if(_25b==null||_25b.length==0){_25b=epages.vars.Locale.timeFormat;}var _25c=epages.localize.getDojoDateTimePattern(_25b);date=dojo.date.locale.parse(_25a,{selector:"date",datePattern:_25c,timePattern:""});if(date===null){date=dojo.date.locale.parse(_25a,{selector:"date",datePattern:"HH:mm a",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_25a,{selector:"date",datePattern:"HH a",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_25a,{selector:"date",datePattern:"HH",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_25a,{selector:"date",datePattern:"KK:mm",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_25a,{selector:"date",datePattern:"KK",timePattern:""});}return date;},cssSizeToNumber:function(_25d){if(typeof _25d=="string"){if(_25d.match(/^([0-9]+)(px|pt)$/i)){var n=parseInt(RegExp.$1);return n;}if(_25d.match(/^([0-9]*\.?[0-9]+)(pc|%|mm|cm|em|in|ex)$/i)){var n=parseFloat(RegExp.$1);return n;}if(_25d.match(/^[0]+$/)){return 0;}}return NaN;},split:function(_25e,rx){if(epages.Browser.engine!="MSIE"){return _25e.split(rx);}var _25f="";do{_25f+=Date.toString();}while(_25e.match(_25f));_25e=_25e.replace(rx,"|"+_25f+"|");var _260=_25e.split(_25f);for(var i=0,_261=_260.length;i<_261;i++){_260[i]=_260[i].replace(/^(?:\|)?(.*?)(?:\|)?$/g,function(tmp,_262){return _262;});}return _260;}};epages.string.Base64=function(){};epages.string.Base64.prototype={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(_263){var _264="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;_263=this._utf8_encode(_263);if(typeof (window.btoa)=="function"){return window.btoa(_263);}while(i<_263.length){chr1=_263.charCodeAt(i++);chr2=_263.charCodeAt(i++);chr3=_263.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else{if(isNaN(chr3)){enc4=64;}}_264=_264+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);}return _264;},decode:function(_265){var _266="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;_265=_265.replace(/[^A-Za-z0-9\+\/\=]/g,"");if(typeof (window.atob)=="function"){_266=window.atob(_265);}else{while(i<_265.length){enc1=this._keyStr.indexOf(_265.charAt(i++));enc2=this._keyStr.indexOf(_265.charAt(i++));enc3=this._keyStr.indexOf(_265.charAt(i++));enc4=this._keyStr.indexOf(_265.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;_266=_266+String.fromCharCode(chr1);if(enc3!=64){_266=_266+String.fromCharCode(chr2);}if(enc4!=64){_266=_266+String.fromCharCode(chr3);}}}_266=this._utf8_decode(_266);return _266;},_utf8_encode:function(_267){_267=_267.replace(/\r\n/g,"\n");var _268="";for(var n=0,l=_267.length;n<l;n++){var c=_267.charCodeAt(n);if(c<128){_268+=String.fromCharCode(c);}else{if((c>127)&&(c<2048)){_268+=String.fromCharCode((c>>6)|192);_268+=String.fromCharCode((c&63)|128);}else{_268+=String.fromCharCode((c>>12)|224);_268+=String.fromCharCode(((c>>6)&63)|128);_268+=String.fromCharCode((c&63)|128);}}}return _268;},_utf8_decode:function(_269){var _26a="";var i=0;var c=c1=c2=0;while(i<_269.length){c=_269.charCodeAt(i);if(c<128){_26a+=String.fromCharCode(c);i++;}else{if((c>191)&&(c<224)){c2=_269.charCodeAt(i+1);_26a+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=_269.charCodeAt(i+1);c3=_269.charCodeAt(i+2);_26a+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}}return _26a;}};}if(!dojo._hasResource["epages.lang.array"]){dojo._hasResource["epages.lang.array"]=true;dojo.provide("epages.lang.array");$A=function(_26b,_26c){return new epages.lang.Array(_26b,_26c);};epages.lang.Array=function(_26d,_26e){if(_26e===undefined){_26e=false;}var _26f=[];if(_26d!==undefined){if(_26d._data!==undefined){_26d=_26d._data;}if(_26e){for(var i=0,_270=_26d.length;i<_270;i++){_26f.push(_26d[i]);}}else{_26f=_26d;}}this._data=_26f;this.length=_26f.length;};epages.lang.Array.prototype={_data:undefined,length:0,get:function(_271){return this._data[_271];},set:function(_272,_273){this._data[_272]=_273;},insertAt:function(_274,_275){if(!_274){this.unshift(_275);}else{if(_274==this.length){this.push(_275);}else{var c=this._data;for(var i=this.length;i>_274;i--){c[i]=c[i-1];}c[_274]=_275;this.length=c.length;}}},push:function(){for(var i=0,_276=arguments.length;i<_276;i++){this._data.push(arguments[i]);}this.length=this._data.length;},pop:function(){var el=this._data.pop();this.length=this._data.length;return el;},unshift:function(){for(var i=0,_277=arguments.length;i<_277;i++){this._data.unshift(arguments[i]);}this.length=this._data.length;},shift:function(){var el=this._data.shift();this.length=this._data.length;return el;},grep:function(_278,_279){if(_279===undefined){return dojo.filter(this._data,_278);}return dojo.filter(this._data,_278,_279);},map:function(_27a,_27b){return dojo.map(this._data,_27a,_27b);},each:function(_27c,_27d){dojo.map(this._data,_27c,_27d);return;},match:function(_27e){var _27f=[];for(var i=0,_280=this._data.length;i<_280;i++){var _281=this._data[i];if(typeof _281.match=="function"&&_281.match(_27e)){_27f.push(_281);}}return _27f;},exists:function(_282){return (this.find(_282)!==null);},find:function(_283){for(var i=0,_284=this._data.length;i<_284;i++){if(_283===this._data[i]){return i;}}return null;},remove:function(_285){this._data.splice(_285,1);this.length=this._data.length;},unique:function(){var _286=new epages.lang.Array();var i=0;while(i<this._data.length){if(_286.find(this._data[i])==null){_286.push(this._data[i]);i++;}else{this._data.splice(i,1);}}this.length=this._data.length;},equals:function(_287){if(_287.length==this.length){if(typeof _287._data!="undefined"){for(var i=0,_288=this.length;i<_288;i++){if(this._data[i]!==_287._data[i]){return false;}}}else{for(var i=0,_288=this.length;i<_288;i++){if(this._data[i]!==_287[i]){return false;}}}return true;}else{return false;}},merge:function(_289){var c=[];if(dojo.isArray(_289)){c=_289;}else{if(_289._data!==undefined){c=_289._data;}}for(var i=0,_28a=c.length;i<_28a;i++){this._data.push(c[i]);}this.length=this._data.length;},join:function(_28b){return this._data.join(_28b);},toString:function(){var a=this.map(function(v){if(v===undefined){return "undefined";}else{if(v==null){return "null";}else{if(dojo.isArray(v)){return $A(v).toString();}else{if(dojo.isObject(v)){return v.toString();}else{return "\""+epages.string.escapeJavaScript(""+v)+"\"";}}}}});return "["+a.join(",")+"]";},sort:function(_28c){return this._data.sort(_28c);}};}if(!dojo._hasResource["epages.lang.hash"]){dojo._hasResource["epages.lang.hash"]=true;dojo.provide("epages.lang.hash");$H=function(_28d){return new epages.lang.Hash(_28d);};epages.lang.Hash=function(_28e){this._data=new Object();var data=this._data;if(_28e!==undefined){if(typeof _28e.each=="function"){_28e.each(function(pair){data[pair.key]=pair.value;});}else{for(var key in _28e){data[key]=_28e[key];}}}};epages.lang.Hash.prototype={_data:undefined,data:function(){return this._data;},each:function(_28f){for(var key in this._data){var _290=this._data[key];var pair=[key,_290];pair.key=key;pair.value=_290;_28f(pair);}},flatten:function(){var _291="";this.each(function(pair){_291+="<element><key>"+pair.key+"</key><value>"+pair.value+"</value></element>\n";});return "<epages.lang.Hash>\n"+_291+"</epages.lang.Hash>\n";},keys:function(){var _292=[];this.each(function(pair){_292.push(pair.key);});return _292;},values:function(){var _293=[];this.each(function(pair){_293.push(pair.value);});return _293;},set:function(key,_294){this._data[key]=_294;},get:function(key){return this._data[key];},remove:function(key){delete this._data[key];},existsKey:function(key){if(this._data[key]!==undefined){return true;}for(var _295 in this._data){if(_295==key){return true;}}return false;},existsValue:function(_296){return this.find(_296)!==undefined;},find:function(_297){for(var key in this._data){if(this._data[key]===_297){return key;}}return undefined;},toQueryString:function(){var _298=[];this.each(function(pair){if(pair.value!==undefined&&pair.value!=null){var _299=encodeURIComponent(pair.key);if(dojo.isArray(pair.value)){for(var i=0,_29a=pair.value.length;i<_29a;i++){_298.push(_299+"="+encodeURIComponent(pair.value[i]));}}else{_298.push(_299+"="+encodeURIComponent(pair.value));}}});return _298.join("&");},toString:function(){var _29b=[];this.each(function(pair){var v=pair.value;if(v===undefined){v="undefined";}else{if(v===null){v="null";}else{if(dojo.isArrayLike(v)){v=$A(v).toString();}else{if(dojo.isObject(v)){v=v.toString();}else{v="\""+epages.string.escapeJavaScript(""+v)+"\"";}}}}_29b.push("\""+epages.string.escapeJavaScript(pair.key)+"\":"+v);});return "{"+_29b.join(",")+"}";}};}if(!dojo._hasResource["epages.widget"]){dojo._hasResource["epages.widget"]=true;dojo.provide("epages.widget");epages.topDojo.publish("epages/addGlobalSymbol",["$$",window]);if(window.restrictedParent||$$===undefined){$$=function(_29c){for(var i=0,_29d=epages._windows.length;i<_29d;i++){if(epages._windows[i].dijit!=null&&typeof epages._windows[i].dijit.byId=="function"){var _29e=epages._windows[i].dijit.byId(_29c);if(_29e){return _29e;}}}};}epages.widget.parserClasses=$H();dojo.parser.instantiateOrg=dojo.parser.instantiate;dojo.parser.instantiate=function(_29f){var w=epages.widget.parserClasses;if(epages.Browser.engine!="Presto"){var d=dojo;d.forEach(_29f,function(node){if(!node){return;}var type=node.getAttribute("dojoType");if((!type)||(!type.length)||w.existsKey(type)){return;}w.set(type,1);if(!dojo.isFunction(dojo.getObject(type))){console.warn("add this to you script: dojo.%s(\"%s\");","require",type);d.require(type);}});}return this.instantiateOrg(_29f);};dojo.declare("epages.widget.Popup",[dijit._Widget],{parent:"",around:"",hideOnBlur:false,o:{orient:{"BR":"TR","BL":"TL"}},_visible:false,show:function(){var h={popup:this,parent:this.parent,around:this.around};dojo.mixin(h,this.o);dijit.popup.open(h);this._visible=true;dijit.focus(this.domNode);if(epages.zIndex){this.domNode.parentNode.style.zIndex=epages.zIndex;epages.zIndex+=1;}},hide:function(){dijit.popup.close(this);},toggle:function(){if(this._visible){this.hide();}else{this.show();}},onClose:function(){this._visible=false;},_onBlur:function(){if(this.hideOnBlur){this.hide();}}});epages.onIframeStart.push(function(){dijit.registerWin(window);});}if(!dojo._hasResource["epages.widget.TypedWidget"]){dojo._hasResource["epages.widget.TypedWidget"]=true;dojo.provide("epages.widget.TypedWidget");dojo.declare("epages.widget.TypedWidget",[dijit._Widget,dijit._Templated],{_templateDirectory:undefined,postMixInProperties:function(){this.inherited("postMixInProperties",arguments);if(this._templateMapping!==undefined&&this.templateType!==undefined&&this._templateDirectory!==undefined){if(this._templateMapping[this.templateType]!==undefined){if(this.templateType!=this.defaultTemplateType){var _2a0="";if(typeof this._templateMapping[this.templateType]=="object"){var _2a1=this._templateMapping[this.templateType];if(_2a1.templateString){this.templatePath=null;this.templateString=_2a1.templateString;}else{if(_2a1.templatePath){var _2a2;dojo.xhrGet({url:_2a1.templatePath,sync:true,load:function(data){_2a2=data;}});this.templatePath=null;this.templateString=_2a2;}else{console.warn("Template type: \""+this.templateType+"\" could not be loaded from json object! Use properties templatePath or templateString to declare its template file!");}}}else{_2a0=this._templateDirectory;_2a0.path+="/"+this._templateMapping[this.templateType];_2a0.uri+="/"+this._templateMapping[this.templateType];this.templatePath=_2a0;this.templateString=null;}}}else{console.warn("Template type: \""+this.templateType+"\" does not exist in this widget - use default. ("+this.declaredClass+")");}}}});}if(!dojo._hasResource["epages.io.xml"]){dojo._hasResource["epages.io.xml"]=true;dojo.provide("epages.io.xml");epages.io.Xml=function(){};epages.io.Xml.prototype={loadSync:function(url,_2a3){var _2a4;var _2a5=_2a3!==undefined?dojo.xhrPost:dojo.xhrGet;_2a5({url:url,handleAs:"xml",sync:true,preventCache:epages.constants.preventCache,load:function(data){_2a4=data;},content:_2a3});return _2a4;},loadAsync:function(url,_2a6,_2a7){var _2a8=_2a7!==undefined?dojo.xhrPost:dojo.xhrGet;_2a8({url:url,handleAs:"xml",preventCache:epages.constants.preventCache,load:_2a6,content:_2a7});return;}};}if(!dojo._hasResource["epages.io.translation"]){dojo._hasResource["epages.io.translation"]=true;dojo.provide("epages.io.translation");epages.io.Translation=function(url,_2a9){this.translation=new epages.lang.Hash();this.loadedFiles=new epages.lang.Array();if(url!==undefined){if(_2a9===undefined){this.load(url);}else{this.loadLocale(url,(_2a9!="auto")?_2a9:undefined);}}};dojo.extend(epages.io.Translation,epages.io.Xml.prototype);dojo.extend(epages.io.Translation,{translation:null,loadedFiles:null,useLocale:false,load:function(url,_2aa){if(this.loadedFiles.exists(url)){return true;}if(_2aa===undefined){_2aa=false;}var _2ab=this.loadSync(url);this.loadedFiles.push(url);if(_2ab===undefined){if(!_2aa){throw new Error("translation undefined");}return false;}var tags=_2ab.getElementsByTagName("Translation");for(var i=0,_2ac=tags.length;i<_2ac;i++){var _2ad=tags[i];if(_2ad.nodeType==1){var data="";for(var j=0,_2ae=_2ad.childNodes.length;j<_2ae;j++){var _2af=_2ad.childNodes[j];data+=_2af.nodeName.match(/notrans/i)?_2af.firstChild.data:_2af.data;}this.translation.set(_2ad.getAttribute("Keyword"),data);}}return true;},loadLocale:function(url,_2b0){if(_2b0===undefined){_2b0=dojo.locale;}var _2b1=_2b0.split("-");var _2b2=this.load(url+"."+_2b1[0]+".xml",true);if(this.useLocale&&_2b1.length>1){this.load(url+"."+_2b1[0]+"_"+_2b1[1].toUpperCase()+".xml",true);}return _2b2;},exists:function(key){return this.translation.existsKey(key)||(this!=epages.io.dictionary&&epages.io.dictionary.translation.existsKey(key));},get:function(key,vars){var _2b3=this.translation.get(key);if(_2b3===undefined&&this!=epages.io.dictionary){return epages.io.dictionary.get(key,vars);}return (_2b3===undefined)?"{"+key+"}":this.replaceVars(_2b3,vars);},replaceLanguageTags:function(txt){var _2b4=new RegExp("{(.*?)}","g");return txt.replace(_2b4,dojo.hitch(this,function(_2b5,tag){return this.get(tag);}));},replaceVars:function(txt,vars){var _2b6=new RegExp("#([a-zA-Z_][a-zA-Z0-9_]*)","g");return txt.replace(_2b6,dojo.hitch(vars,function(_2b7,_2b8){return this[_2b8]!==undefined?this[_2b8]:_2b7;}));}});epages.io.dictionary=new epages.io.Translation(dojo.moduleUrl("epages","translation"),"auto");}if(!dojo._hasResource["epages.html"]){dojo._hasResource["epages.html"]=true;dojo.provide("epages.html");dojo.mixin(epages.html,{getChildNodesByTagName:function(_2b9,_2ba){returnValue=[];for(var i=0,_2bb=_2b9.childNodes.length;i<_2bb;i++){var e=_2b9.childNodes[i];if(e.nodeName==_2ba){returnValue.push(e);}}return returnValue;},getElementsByClassName:function(_2bc,_2bd){if(_2bd==null){_2bd=dojo.body();}return dojo.query("."+_2bc,_2bd);},replaceClass:function(node,_2be,_2bf){var _2c0=new RegExp("(^|\\s+)"+_2bf+"($|\\s+)","g");node.className=node.className.replace(_2c0,"$1"+_2be+"$2");},removeChildren:function(node){while(node.firstChild){node.removeChild(node.firstChild);}},disableHrefsAndActions:function(_2c1){if(_2c1==null){_2c1=dojo.body();}var _2c2=_2c1.getElementsByTagName("a");for(var i=0,_2c3=_2c2.length;i<_2c3;i++){var tag=_2c2[i];tag.style.cursor="default";if(typeof tag.getAttribute("onclick")=="string"&&(tag.getAttribute("onclick")||"").match("openWindow")){tag.onclick=function(){return false;};}dojo.connect(tag,"onclick",function(evt){dojo.stopEvent(evt);return;});if(tag.getAttribute("href")){tag.removeAttribute("href");}if(tag.getAttribute("target")){tag.removeAttribute("target");}}var _2c4=_2c1.getElementsByTagName("form");for(var i=0,_2c3=_2c4.length;i<_2c3;i++){_2c4[i].onsubmit=function(){return false;};}var _2c5=["input","button","select","option","a"];var _2c6=["onchange","onclick","onselect","onkeyup","onkeypress","onmouseup"];for(var j=0,_2c7=_2c5.length;j<_2c7;j++){var _2c8=_2c1.getElementsByTagName(_2c5[j]);for(var i=0,_2c3=_2c8.length;i<_2c3;i++){var e=_2c8[i];for(var k=0,_2c9=_2c6.length;k<_2c9;k++){var _2ca=e.getAttribute(_2c6[k]);if(_2ca){if((typeof _2ca=="string")||(typeof _2ca=="function")){dojo.connect(e,_2c6[k],dojo,"stopEvent");e.setAttribute(_2c6[k],"return false;");}}}}}},getHref:function(_2cb){if(_2cb.outerHTML){var html=_2cb.outerHTML;var href=html.match(/\s*href\s*\=\s*["'](.*?)["']/i);if(href&&href[1]){return href[1];}return null;}return _2cb.getAttribute("href");},isInnerEvent:function(evt,_2cc){if(!dojo.isArray(_2cc)){_2cc=[_2cc];}var _2cd=evt.explicitOriginalTarget;for(var i=0,_2ce=_2cc.length;i<_2ce;i++){if(dojo.isDescendant(_2cd,_2cc[i])){return true;}}return false;},encodeEntity:function(_2cf,_2d0){if(_2d0==null){_2d0=false;}var rx=new RegExp("\r?\n","g");var _2d1=epages.string.split(_2cf,rx);var _2d2=document.createTextNode("");var node=document.createElement("span");node.appendChild(_2d2);for(var i=0,_2d3=_2d1.length;i<_2d3;i++){_2d2.nodeValue=_2d1[i];_2d1[i]=node.innerHTML;}return _2d1.join(_2d0?"<br/>\n":"\n");},decodeEntity:function(_2d4,_2d5){if(_2d5==null){_2d5=false;}var node=document.createElement("span");node.innerHTML=_2d4;var _2d6=node.firstChild.nodeValue;if(_2d5){_2d6=_2d6.replace(/\<br\s*\/?\>\r?\n/gi,"\n");}return _2d6;},insertAtCursor:function(_2d7,_2d8,doc){if(doc===undefined){doc=window.document;}var _2d9=$(_2d8,doc);if(doc.selection){_2d9.focus();sel=doc.selection.createRange();sel.text=_2d7;}else{if(_2d9.selectionStart||_2d9.selectionStart=="0"){var _2da=_2d9.selectionStart;var _2db=_2d9.selectionEnd;_2d9.value=_2d9.value.substring(0,_2da)+_2d7+_2d9.value.substring(_2db,_2d9.value.length);_2d9.selectionStart=_2da+_2d7.length;_2d9.selectionEnd=_2da+_2d7.length;}else{_2d9.value+=_2d7;}}epages.event.fire(_2d9,"change");}});}if(!dojo._hasResource["epages.html.element"]){dojo._hasResource["epages.html.element"]=true;dojo.provide("epages.html.element");epages.html.Element=function(_2dc){if(_2dc===undefined){throw new Error("epages.html.Element: initialize without object");}else{if(typeof _2dc=="string"){_2dc=$(_2dc);if(_2dc===undefined){throw new Error("epages.html.Element: initialize without object, unknown element id");}}}this.object=_2dc;};dojo.extend(epages.html.Element,{object:undefined,get:function(){if((dojo.hasClass(this.object,"Radio")||dojo.hasClass(this.object,"Checkbox"))&&!this.object.checked){return "";}return this.object.value||"";},set:function(_2dd){var type=this.object.type;switch(type){case "checkbox":case "radio":var _2de=this.object.form.elements;var name=this.object.name;dojo.forEach(_2de,function(_2df){if(_2df.type==type&&_2df.name==name&&_2df.value==_2dd){_2df.checked=true;}});break;default:this.object.value=_2dd;break;}},connectChangeEvent:function(_2e0){dojo.connect(this.object,(this.object.type=="radio"?"onclick":"onchange"),_2e0);},callOnChange:function(){epages.event.fire(this.object,"change");},firstElement:function(_2e1,_2e2){var _2e3=undefined;var data=this.object.childNodes;for(var _2e4=0,l=data.length;_2e4<l&&_2e3===undefined;_2e4++){if(_2e1!=1&&data[_2e4].nodeType==_2e1||data[_2e4].nodeType==1&&data[_2e4].nodeName==_2e2){_2e3=data[_2e4];}}return (_2e3);},firstComment:function(){var _2e5=this.firstElement(8,"COMMENT");return (_2e5===undefined?undefined:_2e5.data);},getIframeDocument:function(_2e6){if(_2e6===undefined&&this.object.tagName.toLowerCase()=="iframe"){_2e6=this.object;}if(_2e6===undefined){return _2e6;}return (_2e6.contentDocument===undefined)?_2e6.contentWindow.document:_2e6.contentDocument;},addClassName:function(_2e7){dojo.addClass(this.object,_2e7);},removeClassName:function(_2e8){dojo.removeClass(this.object,_2e8);},changeClassName:function(_2e9,_2ea){epages.html.replaceClass(this.object,_2ea,_2e9);},getAbsolutePosition:function(_2eb){var node=this.object;var x=0,y=0;while(node&&node!=_2eb){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}node=node.offsetParent;}return {"x":x,"y":y};},getPositionToParent:function(_2ec){var node=this.object;var x=0,y=0;var _2ed=dojo.getComputedStyle(_2ec).position;if(_2ed!="relative"&&_2ed!="absolute"){console.warn("parentNode should be an offsetParent (position: absolute or relative) in "+this.delcaredClass);}var _2ee=undefined;while(node!=undefined&&_2ec!==node){if(_2ee!==node.offsetParent){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}_2ee=node.offsetParent;}node=node.parentNode;}return {"x":x,"y":y};},getRelativePosition:function(){var node=this.object;var x=0,y=0;var _2ef=dojo.getComputedStyle(node).position;while(node!=undefined&&_2ef!="relative"&&_2ef!="absolute"){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}node=node.offsetParent;_2ef=dojo.getComputedStyle(node).position;}return {"x":x,"y":y};},setCss:function(_2f0){for(var _2f1 in _2f0){this.object.style[_2f1]=_2f0[_2f1];}},makeWidgets:function(){dojo.parser.parse(this.object);},toQueryString:function(){return encodeURIComponent(this.object.name)+"="+encodeURIComponent(this.get());},addEventListener:function(_2f2,_2f3,_2f4){if(_2f4==null){_2f4=false;}_2f2=_2f2.replace(/^on/,"");if(this.object.addEventListener){return this.object.addEventListener(_2f2,_2f3,_2f4);}else{if(this.object.attachEvent){return this.object.attachEvent("on"+_2f2,_2f3);}}throw new Error("element.addEventListener: could not add event listener for event "+_2f2);},removeEventListener:function(_2f5,_2f6,_2f7){if(_2f7==null){_2f7=false;}_2f5=_2f5.replace(/^on/,"");if(this.object.removeEventListener){return this.object.removeEventListener(_2f5,_2f6,_2f7);}else{if(this.object.detachEvent){return this.object.detachEvent("on"+_2f5,_2f6);}}console.warn("element.removeEventListener: could not remove event listener for event "+_2f5+(typeof this.object.detachEvent));return false;},replaceChild:function(_2f8,_2f9){_2f8=this._changeNodeDocument(_2f8,_2f9.ownerDocument);this.object.replaceChild(_2f8,_2f9);},appendChild:function(_2fa){_2fa=this._changeNodeDocument(_2fa,this.object.ownerDocument);this.object.appendChild(_2fa);},_changeNodeDocument:function(node,_2fb){if(node.ownerDocument!=_2fb&&node.outerHTML!=null){var _2fc=node.outerHTML;node=_2fb.createElement("span");node.outerHTML=_2fc;}return node;},getLabel:function(){var id=this.object.id;if(id==null){return;}var _2fd=this.object.ownerDocument.getElementsByTagName("label");for(var i=0,_2fe=_2fd.length;i<_2fe;i++){if(_2fd[i].htmlFor==id){return _2fd[i].innerHTML;}}},isEmpty:function(){for(var el in this.object){return false;}return true;}});$E=function(_2ff){return new epages.html.Element(_2ff);};}if(!dojo._hasResource["epages.widget.LocalizedWidget"]){dojo._hasResource["epages.widget.LocalizedWidget"]=true;dojo.provide("epages.widget.LocalizedWidget");dojo.declare("epages.widget.LocalizedWidget",[epages.widget.TypedWidget],{translation:new epages.io.Translation(),translationName:null,constructor:function(){this.translation.loadLocale(this.getTranslationName());},translate:function(key,vars){return this.translation.get(key,vars);},getTranslationName:function(){if(this.translationName==null){this.translationName=this.templatePath.toString().replace(".html","");}return this.translationName;},createNodesFromText:function(text){return dojo._toDom(this.translation.replaceLanguageTags(text));},buildRendering:function(){this._attachPoints=[];var _300=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache,this.translation);var node;if(dojo.isString(_300)){var _301=this.declaredClass,_302=this;var tstr=dojo.string.substitute(_300,this,function(_303,key){if(key.charAt(0)=="!"){_303=_302[key.substr(1)];}if(typeof _303=="undefined"){throw new Error(_301+" template:"+key);}if(!_303){return "";}return key.charAt(0)=="!"?_303:_303.toString().replace(/"/g,"&quot;");},this);node=this.createNodesFromText(tstr);}else{node=_300.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _304=dojo.parser,qry,attr;if(_304._query!="[dojoType]"){qry=_304._query;attr=_304._attrName;_304._query="[dojoType]";_304._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){_304._query=qry;_304._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},getCachedTemplate:function(_305,_306,_307,_308){var _309=dijit._Templated._templateCache;var key=_306||_305;var _30a=_309[key];if(_30a){return _30a;}if(!_306){_306=dojo.cache(_305,{sanitize:true});}_306=dojo.string.trim(_306);if(_306.match(/\$\{([^\}]+)\}/g)||_307){return (_309[key]=_306);}else{return (_309[key]=this.createNodesFromText(_306));}}});}if(!dojo._hasResource["epages.event.interval"]){dojo._hasResource["epages.event.interval"]=true;dojo.provide("epages.event.interval");epages.event.interval={_container:[],_setIntervalSecure:function(_30b,task,_30c){if(this._container[_30b]!=null){setTimeout(dojo.hitch(this,function(){this._setIntervalSecure(_30b,task,_30c);}),_30c);task();}},set:function(task,_30d){var _30e=this._container.length;this._container.push(_30e);setTimeout(dojo.hitch(this,function(){this._setIntervalSecure(_30e,task,_30d);}),_30d);return _30e;},clear:function(_30f){this._container[_30f]=null;}};}if(!dojo._hasResource["epages.widget.Slides"]){dojo._hasResource["epages.widget.Slides"]=true;dojo.provide("epages.widget.Slides");dojo.declare("epages.widget.Slides",[epages.widget.LocalizedWidget],{templateString:"<div class=\"SlideShow\">\n  <div class=\"SlideshowContainer\">\n    <div class=\"MainContainer\" dojoAttachPoint=\"mainNode\">\n      <div class=\"DescriptionContainer\" dojoAttachPoint=\"descriptionNode\"></div>\n      <div class=\"MiscContainer\" dojoAttachPoint=\"miscNode\">\n        <div class=\"MiscClipper\" dojoAttachPoint=\"miscNodeClipper\">\n          <div class=\"Counter\" dojoAttachPoint=\"countNode\"></div>\n          <div class=\"Date\" dojoAttachPoint=\"dateNode\"></div>\n        </div>\n      </div>\n      <div class=\"ImageContainer\">\n        <div class=\"ImageAligner\">\n          <table class=\"ImageTableTemplate\" dojoAttachPoint=\"imageTable\"><tr><td>\n            <b></b>\n          </td></tr></table>\n        </div>\n      </div>\n      <div class=\"ControlContainer\">\n        <div class=\"ControlBar\" dojoAttachPoint=\"controlNode\"></div>\n      </div>\n    </div>\n  </div>\n</div>\n",imagePath:epages.themeUrl("images"),translationName:dojo.moduleUrl("epages.widget","templates/translation"),loaderImagePath:epages.themeUrl("images")+"/img_busy.gif",errorImagePath:epages.themeUrl("images")+"/slideshow_img_broken_image.png",controlBarImages:[[epages.themeUrl("images")+"/slideshow_img_bg.png",epages.themeUrl("images")+"/slideshow_img_bg_small.png",epages.themeUrl("images")+"/slideshow_img_bg_smaller.png"],[epages.themeUrl("images")+"/slideshow_ico_l_rewind.png",epages.themeUrl("images")+"/slideshow_ico_s_rewind.png"],[epages.themeUrl("images")+"/slideshow_ico_l_pause.png",epages.themeUrl("images")+"/slideshow_ico_s_pause.png"],[epages.themeUrl("images")+"/slideshow_ico_l_play.png",epages.themeUrl("images")+"/slideshow_ico_s_play.png"],[epages.themeUrl("images")+"/slideshow_ico_l_overview.png",epages.themeUrl("images")+"/slideshow_ico_s_overview.png"],[epages.themeUrl("images")+"/slideshow_ico_l_details.png",epages.themeUrl("images")+"/slideshow_ico_s_details.png"],[epages.themeUrl("images")+"/slideshow_ico_l_forward.png",epages.themeUrl("images")+"/slideshow_ico_s_forward.png"]],delay:3500,protraction:1200,imageWidth:"450px",imageHeight:"300px",tiny:false,stopped:false,overview:true,imageClickOverview:true,showName:true,showDescription:true,showControls:true,showMisc:true,showIndex:0,_images:undefined,_oldShowIndex:0,_loadedIndex:0,_loadedImages:0,_pauseIcon:0,_playIcon:0,_fadeEasing:dojo.fx.easing.quadOut,_overviewArea:null,_overviewBackground:null,_overviewImageCounter:null,_controlBarFadeOut:null,_playerBeacon:null,_hiddenDetails:false,_changingImage:true,_globalOverview:true,_reAlignReady:true,_delayExec:function(task,_310){return setTimeout(dojo.hitch(this,task),_310);},_getAlphaImage:function(_311,_312){var _313=document.createElement("span");var _314=document.createElement("span");var _315="";if(epages.Browser.engine=="MSIE"&&_311.match(".png")){_312=_312?"scale":"crop";_315="class='AlphaImage'";_314.style.zoom="1";_314.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_311+"', sizingMethod='"+_312+"')";}var _316="<img "+_315+" alt='' src='"+_311+"' onerror=''/>";_314.innerHTML=_316;_313.appendChild(_314);_313.className="Image";return _313;},_drawControlBar:function(){if(this.tiny){this.controlNode.className="ControlBarMini";}if(!this.showControls){this.controlNode.style.display="none";}var _317=0;if(!this.overview||!this.showDescription){_317=1;}else{if(!this.overview&&!this.showDescription){_317=2;}}var _318=this.tiny?document.createElement("div"):this._getAlphaImage(this.controlBarImages[0][_317]);_318.className="ControlBarBg";this.controlNode.appendChild(_318);if(!this.overview&&this.showControls){_318.parentNode.style.width=(_318.offsetWidth-(this.tiny?16:32))+"px";}if(!this.showDescription&&this.showControls){_318.parentNode.style.width=(_318.offsetWidth-(this.tiny?16:32))+"px";}var _319=this._getAlphaImage(this.controlBarImages[1][this.tiny?1:0]);_319.className="SlideshowButton";this.controlNode.appendChild(_319);this.connect(_319,"onclick","_rewindClick");var _31a=this._getAlphaImage(this.controlBarImages[2][this.tiny?1:0]);_31a.className="SlideshowButton";if(this.stopped){_31a.style.position="absolute";_31a.style.visibility="hidden";}this.controlNode.appendChild(_31a);this.connect(_31a,"onclick","_pauseClick");this._pauseIcon=_31a;playIcon=this._getAlphaImage(this.controlBarImages[3][this.tiny?1:0]);playIcon.className="SlideshowButton";if(!this.stopped){playIcon.style.position="absolute";playIcon.style.visibility="hidden";}this.controlNode.appendChild(playIcon);this.connect(playIcon,"onclick","_playClick");this._playIcon=playIcon;if(this.overview){var _31b=this._getAlphaImage(this.controlBarImages[4][this.tiny?1:0]);_31b.className="SlideshowButton";this.controlNode.appendChild(_31b);this.connect(_31b,"onclick","_overviewClick");}if(this.showDescription){var _31c=this._getAlphaImage(this.controlBarImages[5][this.tiny?1:0]);_31c.className="SlideshowButton";this.controlNode.appendChild(_31c);this.connect(_31c,"onclick","_detailsClick");}var _31d=this._getAlphaImage(this.controlBarImages[6][this.tiny?1:0]);_31d.className="SlideshowButton";this.controlNode.appendChild(_31d);this.connect(_31d,"onclick","_forwardClick");dojo.style(this.controlNode,"opacity",0);return [_319,playIcon,_31a,_31b?_31b:null,_31c?_31c:null,_31d];},_controlBarButtonOver:function(_31e){dojo.addClass(_31e.currentTarget,"Highlighted");document.onselectstart=function(){return false;};},_controlBarButtonOut:function(_31f){dojo.removeClass(_31f.currentTarget,"Highlighted");dojo.removeClass(_31f.currentTarget,"Hit");document.onselectstart=function(){return true;};},_controlBarButtonDown:function(_320){dojo.addClass(_320.currentTarget,"Hit");},_controlBarButtonUp:function(_321){dojo.removeClass(_321.currentTarget,"Hit");},_showControlBar:function(){clearTimeout(this._controlBarFadeOut);dojo.fadeIn({node:this.controlNode,duration:350,easing:this._fadeEasing}).play();},_hideControlBar:function(){this._controlBarFadeOut=this._delayExec(function(){if(this.controlNode.offsetWidth==0){dojo.style(this.controlNode,"opacity",0);}else{dojo.fadeOut({node:this.controlNode,duration:350}).play();}},1000);},_drawErrorImage:function(_322){var _323=_322.currentTarget;_323.src=this.errorImagePath;_323.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.errorImagePath+"', sizingMethod='scale')";},_playClickStartTimer:function(){this._playIcon.style.position="absolute";this._playIcon.style.visibility="hidden";this._pauseIcon.style.position="relative";this._pauseIcon.style.visibility="visible";this._playerBeacon=epages.event.interval.set(dojo.hitch(this,this._setNextImage),this.delay);},_playClick:function(){this._setNextImage();this._playClickStartTimer();},_pauseClick:function(){this._pauseIcon.style.position="absolute";this._pauseIcon.style.visibility="hidden";this._playIcon.style.position="relative";this._playIcon.style.visibility="visible";epages.event.interval.clear(this._playerBeacon);},_overviewClick:function(_324){if(typeof (_324)=="object"){_324=null;}this._pauseClick();if(!this._overviewArea){var _325=document.createElement("div");_325.className="OverviewBackground";dojo.style(_325,"opacity",0);dojo.addClass(dojo.body(),"OverviewAreaVisible");_325.innerHTML="<div class='Background'></div>";var _326=document.createElement("div");_326.className="OverviewArea";var info=this._images[this.showIndex];if(!info){info={};info.imageTable=this._createImageTable();info.imageTable.getElementsByTagName("b")[0].appendChild(this._getAlphaImage(epages.themeUrl("images")+"/plain.gif"));this._images.push(info);}else{this._oldShowIndex=this.showIndex;}var _327=this._images[this.showIndex].imageTable.cloneNode(true);var _328=_327.getElementsByTagName("b")[0];_328.innerHTML="";_328.appendChild(this._getAlphaImage(epages.themeUrl("images")+"/plain.gif"));_326.appendChild(_327);var _329=document.createElement("div");_329.className="BackgroundEventLayer";_326.getElementsByTagName("td")[0].appendChild(_329);var _32a=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_rewind_overview.png");_32a.className="Image SlideshowButton";this.connect(_32a,"onclick","_setPrevImage");this.connect(_32a,"onmouseover","_controlBarButtonOver");this.connect(_32a,"onmouseout","_controlBarButtonOut");this.connect(_32a,"onmousedown","_controlBarButtonDown");this.connect(_32a,"onmouseup","_controlBarButtonUp");var _32b=document.createElement("i");_32b.appendChild(_32a);_32b.className="OverviewRewindButton";var _32c=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_forward_overview.png");_32c.className="Image SlideshowButton";this.connect(_32c,"onclick","_setNextImage");this.connect(_32c,"onmouseover","_controlBarButtonOver");this.connect(_32c,"onmouseout","_controlBarButtonOut");this.connect(_32c,"onmousedown","_controlBarButtonDown");this.connect(_32c,"onmouseup","_controlBarButtonUp");var _32d=document.createElement("i");_32d.appendChild(_32c);_32d.className="OverviewForwardButton";var _32e=this._getAlphaImage(epages.themeUrl("images")+"/layer_img_closebutton.png");_32e.className="Image SlideshowButton";_32e.style.clip="rect(0, 40px, 20px, 0)";this.connect(_32e,"onclick","_destroyOverview");this.connect(_32e,"onmouseover","_controlBarButtonOver");this.connect(_32e,"onmouseout","_controlBarButtonOut");var _32f=document.createElement("i");_32f.appendChild(_32e);_32f.className="OverviewCloseButton";var _330=document.createElement("b");_330.className="OverviewImageCounter";if(!this.showMisc){_330.style.display="none";}dojo.style(_326,"background","url("+this.loaderImagePath+") center no-repeat");dojo.style(_326.getElementsByTagName("span")[0],"opacity",0);var _331=info.imageLarge?info.imageLarge:info.image;var _332=_326.getElementsByTagName("img")[0];_332.src=_324||_331;_332.style.height="auto";_332.style.width="auto";if(_332.src.match(".ico")||_332.src.match(".cur")){_332.parentNode.style.filter="fade()";}else{}dojo.body().appendChild(_325);dojo.body().appendChild(_326);var _333=true;var _334=this._images[0];for(var i=0,_335=this._images.length;i<_335;i++){if(this._images[i].imageLarge!=_334.imageLarge){_333=false;break;}else{_334=this._images[i];}}if(this._images.length>1&&!_324&&!_333){if(this.showControls){_326.getElementsByTagName("span")[1].appendChild(_32b);_326.getElementsByTagName("span")[1].appendChild(_32d);}_326.getElementsByTagName("span")[1].appendChild(_330);}_326.getElementsByTagName("span")[1].appendChild(_32f);var _336=new Image();_336.onload=dojo.hitch(this,function(){this._delayExec(this._drawOverviewImage,1);});_336.src=_324||_331;this.connect(_332,"onerror","_drawErrorImage");this.connect(_329,"onclick","_destroyOverview");_325.style.zoom=1;dojo.style(_325,"opacity",1);this._overviewBackground=_325;this._overviewArea=_326;this._overviewImageCounter=_330;this._changeOverviewDimensions();}},_changeOverviewDimensions:function(){if(this._overviewArea!=null){var _337=this._overviewArea.getElementsByTagName("img")[0];var _338=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;var _339=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;var _33a=0;if(_338>dojo.body().offsetHeight+10){_33a=_338;}else{_33a=dojo.body().offsetHeight+10;}this._overviewBackground.style.height=_33a+"px";this._overviewArea.style.height=_338+"px";setTimeout(dojo.hitch(this,function(){var _33b=this._images[this.showIndex]._overviewWidth;var _33c=this._images[this.showIndex]._overviewHeight;if(_33b&&_33c&&(_33b>_339-50||_33c>_338-50)){if((_339/_338)/(_33b/_33c)>1){_337.style.height=(_338-50)+"px";_337.style.width="auto";}else{_337.style.width=(_339-50)+"px";_337.style.height="auto";}}this._reAlignOverview();}),1);}},_reAlignOverview:function(){if(this._overviewArea!=null&&this._reAlignReady){this._reAlignReady=false;this._delayExec(function(){if(this._overviewArea!=null){var _33d=dojo.body().pageYOffset?dojo.body().pageYOffset:document.documentElement.scrollTop;dojo.fx.slideTo({node:this._overviewArea,top:_33d,duration:350,easing:this._fadeEasing}).play();}this._reAlignReady=true;},50);}},_detailsClick:function(){if(this._hiddenDetails){this._hiddenDetails=false;this.descriptionNode.style.visibility="visible";this.miscNode.style.visibility="visible";}else{this._hiddenDetails=true;this.descriptionNode.style.visibility="hidden";this.miscNode.style.visibility="hidden";}},_forwardClick:function(){this._pauseClick();this._setNextImage();},_rewindClick:function(){this._pauseClick();this._setPrevImage();},_drawOverviewImage:function(){this._delayExec(function(){var _33e=this._overviewArea.getElementsByTagName("img")[0];if(!this._images[this.showIndex]._overviewWidth){_33e.style.position="absolute";this._images[this.showIndex]._overviewWidth=_33e.width;this._images[this.showIndex]._overviewHeight=_33e.height;_33e.style.position="static";}if(this._images[this.showIndex]._overviewHeight<100){_33e.style.marginTop=(45-this._images[this.showIndex]._overviewHeight/2)+"px";}else{_33e.style.marginTop="0";}this._changeOverviewDimensions();this._overviewImageCounter.innerHTML=(this.showIndex+1)+" | "+this._images.length;this._overviewArea.getElementsByTagName("b")[0].style.visibility="visible";dojo.style(this._overviewArea.getElementsByTagName("b")[0],"opacity","1");dojo.style(this._overviewArea,"background","");dojo.fadeIn({node:this._overviewArea.getElementsByTagName("span")[0],duration:this.protraction,easing:this._fadeEasing}).play();},400);},_destroyOverview:function(){if(this._overviewArea){if(dojo.style(this._overviewArea.getElementsByTagName("span")[0],"opacity")>0.5){dojo.fadeOut({node:this._overviewArea,duration:this.protraction/2,easing:this._fadeEasing}).play();this._delayExec(function(){if(this._overviewArea){dojo.body().removeChild(this._overviewArea);dojo.body().removeChild(this._overviewBackground);delete this._overviewArea;delete this._overviewBackground;this.showIndex=this._oldShowIndex;delete this._oldShowIndex;dojo.removeClass(dojo.body(),"OverviewAreaVisible");}},this.protraction/2.2);}}},_checkGlobalOverview:function(){var _33f=this._images[this.showIndex].image.match("dijit/themes/epages/images/plain.gif")||this._images[this.showIndex].image.match("transparentpixel.gif");if(this._globalOverview&&!_33f){this._overviewClick();}},_showImageDetails:function(){var info=this._images[this.showIndex];this.descriptionNode.innerHTML=info.description;this.dateNode.innerHTML=info.date;this.countNode.innerHTML=(this.showIndex+1)+" | "+(this._images.length);this.miscNode.style.top=this.miscNodeClipper.offsetHeight+"px";this.descriptionNode.style.top="-"+this.descriptionNode.offsetHeight+"px";dojo.style(this.miscNode,"opacity",0.8);dojo.style(this.descriptionNode,"opacity",0.8);if(this.descriptionNode.innerHTML.length>1){dojo.fx.slideTo({node:this.descriptionNode,duration:400,easing:this._fadeEasing}).play();}dojo.fx.slideTo({node:this.miscNode,duration:400,easing:this._fadeEasing}).play();},_hideImageDetails:function(){dojo.fadeOut({node:this.miscNode,duration:200,easing:this._fadeEasing}).play();dojo.fadeOut({node:this.descriptionNode,duration:200,easing:this._fadeEasing}).play();},_setNextImage:function(){if(this._overviewArea){if(dojo.style(this._overviewArea.getElementsByTagName("span")[0],"opacity")>=0.5){this._setImage(this.showIndex>this._images.length-2?0:this.showIndex+1);}}else{this._setImage(this.showIndex>this._images.length-2?0:this.showIndex+1);}},_setPrevImage:function(){if(this._overviewArea){if(dojo.style(this._overviewArea.getElementsByTagName("span")[0],"opacity")>=0.5){this._setImage(this.showIndex==0?this._images.length-1:this.showIndex-1);}}else{this._setImage(this.showIndex==0?this._images.length-1:this.showIndex-1);}},_setImage:function(_340){if(this._images[_340]){if(this._overviewArea){if(!this._oldShowIndex){this._oldShowIndex=this.showIndex;}var _341=this._overviewArea.getElementsByTagName("span")[0];var _342=_341.getElementsByTagName("img")[0];dojo.style(this._overviewArea,"background","url("+this.loaderImagePath+") center no-repeat");dojo.fadeOut({node:_341,duration:this.protraction,easing:this._fadeEasing}).play();this._delayExec(function(){var info=this._images[this.showIndex];dojo.style(_341,"opacity",0);var _343=info.imageLarge||info.image;var _344=this._overviewArea.getElementsByTagName("img")[0];_344.src=_343;_344.style.width="auto";_344.style.height="auto";var test=new Image();test.onload=dojo.hitch(this,function(){this._delayExec(this._drawOverviewImage,1);});test.src=_343;},this.protraction);}else{var _345=this._images[this.showIndex].imageTable.getElementsByTagName("b")[0];var _346=this._images[_340].imageTable.getElementsByTagName("b")[0];if(_345.offsetWidth==0){this._pauseClick();}else{var _347=_346.getElementsByTagName("img")[0];if(typeof (_347)=="undefined"){_346.appendChild(this._getAlphaImage(this._images[_340].image,true));_347=_346.getElementsByTagName("img")[0];}if(typeof (_347)!="undefined"){if(this._images[_340].fit=="true"||this._images[_340].fit==true){if(_347.offsetHeight>_347.offsetWidth){_347.style.height=(this.mainNode.offsetHeight)+"px";if(_347.offsetWidth>=this.mainNode.offsetWidth){_347.style.height="auto";_347.style.width=(this.mainNode.offsetWidth)+"px";}}else{_347.style.width=(this.mainNode.offsetWidth)+"px";if(_347.offsetHeight>=this.mainNode.offsetHeight){_347.style.width="auto";_347.style.height=(this.mainNode.offsetHeight)+"px";}}}else{if(this._images[_340].fit==null){this._delayExec(function(){if(_347.offsetHeight>_347.offsetWidth){if(_347.offsetHeight>this.mainNode.offsetHeight){_347.style.height=(this.mainNode.offsetHeight)+"px";_347.style.width="auto";}}else{if(_347.offsetWidth>this.mainNode.offsetWidth){_347.style.width=(this.mainNode.offsetWidth)+"px";_347.style.height="auto";}}},1);}}}if(this.showIndex!=_340){dojo.fadeOut({node:_345,duration:this.protraction,easing:this._fadeEasing}).play();this._delayExec(function(){this._fadeOutHide(_345);},this.protraction);}dojo.style(_346,"visibility","visible");dojo.fadeIn({node:_346,duration:this.protraction,easing:this._fadeEasing}).play();this._hideImageDetails();this._delayExec(this._showImageDetails,this.protraction/2);this._images[this.showIndex].imageTable.style.zIndex=0;this._images[_340].imageTable.style.zIndex=1;}}}this.showIndex=_340;},_fadeOutHide:function(_348){if(dojo.style(_348,"opacity")==0){dojo.style(_348,"visibility","hidden");}},_loadImagesSoft:function(){dojo.disconnect(this._images[this._loadedIndex].onloadHandle);if(this._images[this._loadedIndex].imageToStage){this._setImage(this._images[this._loadedIndex].imageToStage);}else{if(this._loadedIndex==this.showIndex&&this._overviewArea==null){this._setImage(this.showIndex);}}if(this._loadedImages<this._images.length){this._delayExec(this._loadImages,1000);}else{this.mainNode.style.background="none";}},_loadImages:function(){this._loadedImages++;this._loadedIndex++;if(this._loadedIndex>=this._images.length){this._loadedIndex=0;}var info=this._images[this._loadedIndex];var _349=info.imageTable;this.mainNode.style.background="transparent url("+this.loaderImagePath+") center no-repeat";_349.style.zIndex=0;var _34a=_349.getElementsByTagName("b")[0];_34a.style.zoom="1";dojo.style(_34a,"opacity",0);dojo.style(_34a,"visibility","hidden");if(typeof (_34a.getElementsByTagName("img")[0])=="undefined"){_34a.appendChild(this._getAlphaImage(info.image,true));}var _34b=_34a.getElementsByTagName("img")[0];this.connect(_34b,"onerror","_drawErrorImage");var test=new Image();test.onload=dojo.hitch(this,"_loadImagesSoft");test.src=_34b.src;},_createImageTable:function(){var _34c=this.imageTable.cloneNode(true);_34c.className="ImageTable";this.imageTable.parentNode.appendChild(_34c);return _34c;},_handleKeyEvent:function(evt){evt=evt?evt:window.event;switch(evt.which||evt.keyCode){case 27:this._destroyOverview();break;case 37:this._setPrevImage();break;case 39:this._setNextImage();break;}},openOverview:function(_34d){this._overviewClick(_34d);},setImage:function(_34e){this._pauseClick();this._setImage(_34e);},setNextImage:function(){this._setNextImage();},setPrevImage:function(){this._setPrevImage();},addImage:function(_34f,_350){if(_34f.image){var _351;for(var i=0,_352=this._images.length;i<_352;i++){if(this._images[i].image==_34f.image){_351=i;}}if(!_351){this._images.push(_34f);this._images[this._images.length-1].imageTable=this._createImageTable();this._images[this._images.length-1].imageToStage=this._images.length-1;this._loadImages();}else{this._setImage(_351);}}},postCreate:function(){epages.widget.Slides.superclass.postCreate.apply(this,arguments);this._images=[];this.domNode.style.width=this.imageWidth;this.domNode.style.height=this.imageHeight;this.mainNode.parentNode.style.width=this.imageWidth;if(!this.showDescription){this.descriptionNode.style.display="none";}if(!this.showMisc){this.miscNode.style.display="none";}var _353=this._drawControlBar();for(var i=0,_354=_353.length;i<_354;i++){if(_353[i]){this.connect(_353[i],"onmouseover","_controlBarButtonOver");this.connect(_353[i],"onmouseout","_controlBarButtonOut");this.connect(_353[i],"onmousedown","_controlBarButtonDown");this.connect(_353[i],"onmouseup","_controlBarButtonUp");}}if(this.srcNodeRef){if(this.srcNodeRef.className){this.mainNode.parentNode.parentNode.className+=" "+this.srcNodeRef.className;}var _355=this.srcNodeRef.getElementsByTagName("ins");for(var i=0,_354=_355.length;i<_354;i++){var _356={};_356.image=_355[i].getAttribute("image")||epages.themeUrl("images")+"/plain.gif";_356.imageLarge=_355[i].getAttribute("imageLarge");_356.name=_355[i].getAttribute("name");_356.description=_355[i].innerHTML;_356.date=_355[i].getAttribute("date");_356.time=_355[i].getAttribute("time");_356.fit=_355[i].getAttribute("fit");_356.imageTable=this._createImageTable();this._images.push(_356);}}this.showIndex=new Number(this.showIndex);this._loadedIndex=this.showIndex-1;if(this._loadedIndex==-1){this._loadedIndex=this._images.length;}this.connect(this.mainNode,"onmouseover","_showControlBar");this.connect(this.mainNode,"onmouseout","_hideControlBar");if(this.imageClickOverview&&this.overview){this.connect(this.miscNode.offsetHeight?this.miscNode:this.mainNode,"onclick","_checkGlobalOverview");this.connect(this.controlNode,"onmouseover",function(){this._globalOverview=false;});this.connect(this.controlNode,"onmouseout",function(){this._globalOverview=true;});}else{this.mainNode.style.cursor="default";}this.connect(window,"onscroll","_reAlignOverview");this.connect(window,"onresize","_changeOverviewDimensions");this.connect(document,"onkeyup","_handleKeyEvent");if(this._images.length>0){this._delayExec(this._loadImages,1);if(!this.stopped&&this._images.length>1){this._delayExec(this._playClickStartTimer,1000);}}}});}if(!dojo._hasResource["epages.epages_scripts"]){dojo._hasResource["epages.epages_scripts"]=true;dojo.provide("epages.epages_scripts");window.openWindow=function(URL,_357,_358,_359){if(_359===null){_359=undefined;}if(_358=="PopUp"){_358="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";}if(_358=="PopUpPrint"){_358="width=790, height=580, toolbar=yes, status=no, resizable=yes, menubar=yes, location=no, scrollbars=yes";}if(_358=="RTE"||_357=="RTE"){_358="width=996, height=700, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";}if(_358=="HelpWindow"){_358="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";_357="WWHFrame";}if(_358=="StylePreview"){_358="width=470, height=310, toolbar=no, status=no, resizable=no, menubar=no, location=no, scrollbars=no";_357="StylePreview";}if(_358=="DetailedImageView"){_358="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";_357="StylePreview";}if(_358=="CheckLink"){if(URL.indexOf("?")!=0){splittedString=URL.split("//");if(splittedString.length==1){URL="http://"+URL;}}else{if(_359!=undefined){URL=_359+URL;}}_358="toolbar=yes, status=yes, resizable=yes, menubar=yes, location=yes, scrollbars=yes";}if(URL!="http://"){var _35a=window.open(URL,_357,_358);if(_35a){_35a.focus();}}return _35a;};window.linkCorrection=function(_35b){var _35c=_35b.value;var _35d=_35c.split("//");if(_35c.indexOf("?")!=0){if(_35d.length==1){_35b.value="http://"+_35c;epages.event.fire(_35b,"change");}}};window.OnCheckAll=function(form,name,_35e,_35f){dojo.addClass(form.getElementsByTagName("tbody")[0],"HideElement");for(var i=0,l=form.length;i<l;i++){var _360=form[i];if(_360.nodeName=="INPUT"){if((_360.type=="checkbox"||_360.className.match("Checkbox"))&&_360.name==name&&!_360.disabled&&_360.checked!=_35e){_360.checked=_35e;if(!_35f){var _361=$$(dojo.attr(_360,"widgetid")||_360.id);if(_361){_361.setChecked?_361.setChecked(_35e):_361.attr("checked",_35e);}if(_35e){dojo.addClass(epages.parentByTagName(_360,"tr"),"RowSelected");}else{dojo.removeClass(epages.parentByTagName(_360,"tr"),"RowSelected");}}}}}dojo.removeClass(form.getElementsByTagName("tbody")[0],"HideElement");};window.DeactivateButton=function(_362){if(_362.className.match("CustomButton")){fakeButton=_362.getElementsByTagName("*")[0];fakeButton.disabled="true";dojo.addClass(_362,"Disabled");}else{if(_362.getAttribute("widgetid")){$$(_362.getAttribute("widgetid")).disable();}else{_362.disabled="true";dojo.addClass(_362,"Disabled");}}};window.EnableButton=function(_363){if(_363.className.match("CustomButton")){fakeButton=_363.getElementsByTagName("*")[0];fakeButton.disabled="false";}else{if(_363.getAttribute("widgetid")){$$(_363.getAttribute("widgetid")).enable();}else{_363.disabled="false";}}dojo.removeClass(_363,"Disabled");};window.DisableLink=function(Link){if($(Link)){$(Link).className+=" Opacity40";$(Link).href="javascript:void(0)";$(Link).style.cursor="default";}};window.changeImage=function(_364,_365,_366){$(_364).src=_365;if(_366){$(_364).alt=_366;}};window.OptionToChangeAction=function(_367){_367.form.ChangeAction.value=_367.options[_367.selectedIndex].value;};window.toggleTopic=function(el,_368,_369){if(el.parentNode){var _36a=el.parentNode.className;if(_36a.match("Closed")){epages.html.replaceClass(el.parentNode,"Open","Closed");}else{epages.html.replaceClass(el.parentNode,"Closed","Open");}if(_368&&_369){if(el.innerHTML==_368){el.innerHTML=_369;}else{el.innerHTML=_368;}}}};window.toggleDisplay=function(_36b){if($(_36b).className!="HideElement"){$(_36b).className="HideElement";}else{$(_36b).className="ShowElement";}};window.hideElement=function(_36c){if(!$(_36c).className.match(/HideElement/)){$(_36c).className+=" HideElement";}};window.showElement=function(_36d){$(_36d).className=$(_36d).className.replace(/HideElement/,"");};window.changeDataById=function(_36e,id){myobject=$(id);if(myobject.firstChild){myobject.firstChild.data=_36e;}else{mydata=document.createTextNode(_36e);myobject.appendChild(mydata);}};window.getSelectedData=function(_36f){if(_36f){myNode=_36f.firstChild;while(myNode!=null){if(myNode.value==_36f.value&&myNode.value!=""){return myNode.firstChild.data;}myNode=myNode.nextSibling;}return "";}};window.checkBrowser=function(){var _370=navigator.userAgent.toLowerCase();this.isIE=(_370.indexOf("msie")!=-1);this.isGecko=(_370.indexOf("gecko")!=-1&&_370.indexOf("safari")==-1);this.isOpera=(_370.indexOf("opera")!=-1);this.isRTECompatible=(this.isIE||this.isGecko);};var browser=new checkBrowser();window.disableFormFieldsInElement=function(_371){userattrinputs=$(_371).getElementsByTagName("input");for(var i=0,_372=userattrinputs.length;i<_372;i++){userattrinputs[i].disabled=true;if($(_371).parentNode.className.match("Cropper")){$(_371).parentNode.className+=" Disabled";}if(userattrinputs[i].type!="checkbox"&&userattrinputs[i].type!="radio"){if(userattrinputs[i].type=="button"||userattrinputs[i].type=="submit"){userattrinputs[i].parentNode.className=userattrinputs[i].parentNode.className+" Disabled";}else{userattrinputs[i].className=userattrinputs[i].className+" Disabled";}}}userattrtextareas=$(_371).getElementsByTagName("textarea");for(var i=0,_372=userattrtextareas.length;i<_372;i++){userattrtextareas[i].disabled=true;if($(_371).parentNode.className.match("Cropper")){$(_371).parentNode.className+=" Disabled";}userattrtextareas[i].className=userattrtextareas[i].className+" Disabled";}userattrselects=$(_371).getElementsByTagName("select");for(var i=0,_372=userattrselects.length;i<_372;i++){userattrselects[i].disabled=true;if($(_371).parentNode.className.match("Cropper")){$(_371).parentNode.className+=" Disabled";}userattrselects[i].className=userattrselects[i].className+" Disabled";}};window.enableFormFieldsInElement=function(_373){userattrinputs=$(_373).getElementsByTagName("input");for(var i=0,_374=userattrinputs.length;i<_374;i++){userattrinputs[i].disabled=false;if($(_373).parentNode.className.match("Cropper")){$(_373).parentNode.className=$(_373).parentNode.className.replace(/Disabled/g,"");}userattrinputs[i].parentNode.className=userattrinputs[i].parentNode.className.replace(/ Disabled/,"");userattrinputs[i].parentNode.className=userattrinputs[i].parentNode.className.replace(/Disabled/,"");userattrinputs[i].className=userattrinputs[i].className.replace(/ Disabled/,"");userattrinputs[i].className=userattrinputs[i].className.replace(/Disabled/,"");}userattrtextareas=$(_373).getElementsByTagName("textarea");for(var i=0,_374=userattrtextareas.length;i<_374;i++){userattrtextareas[i].disabled=false;if($(_373).parentNode.className.match("Cropper")){$(_373).parentNode.className=$(_373).parentNode.className.replace(/Disabled/g,"");}userattrtextareas[i].className=userattrtextareas[i].className.replace(/ Disabled/,"");userattrtextareas[i].className=userattrtextareas[i].className.replace(/Disabled/,"");}userattrselects=$(_373).getElementsByTagName("select");for(var i=0,_374=userattrselects.length;i<_374;i++){userattrselects[i].disabled=false;if($(_373).parentNode.className.match("Cropper")){$(_373).parentNode.className=$(_373).parentNode.className.replace(/Disabled/g,"");}userattrselects[i].className=userattrselects[i].className.replace(/ Disabled/,"");userattrselects[i].className=userattrselects[i].className.replace(/Disabled/,"");}};window.disableFormFieldById=function(_375){var _376=true;if(disableFormFieldById.arguments.length>1){_376=disableFormFieldById.arguments[1];}$(_375).disabled=true;if($(_375).parentNode.className.match("Cropper")){$(_375).parentNode.className+=" Disabled";}if(_376){dojo.addClass($(_375),"Disabled");}};window.enableFormFieldById=function(_377){var _378=true;if(enableFormFieldById.arguments.length>1){_378=enableFormFieldById.arguments[1];}$(_377).disabled=false;if($(_377).parentNode.className.match("Cropper")){$(_377).parentNode.className=$(_377).parentNode.className.replace(/Disabled/g,"");}if(_378){dojo.removeClass($(_377),"Disabled");}};window.allowURLUpload=function(){var _379=$("FileUpload").value;if(_379.match(/http:../)||_379.match(/https:../)){$("FileUpload2").value=_379;$("FileUpload2").disabled=false;$("FileUpload").disabled=true;}};window.allowBulkURLUpload=function(_37a){var _37b=document.getElementsByName(_37a);for(var i=0,l=_37b.length;i<l;i++){var _37c=_37b[i].value;var _37d=_37b[i].type;var _37e=_37b[i].id;if((_37c.match(/http:../)||_37c.match(/https:../))&&_37d!="hidden"){$(_37e.replace(/FileName/,"URLUpload")).value=_37c;$(_37e.replace(/FileName/,"URLUpload")).disabled=false;$(_37e).disabled=true;}}};window.setValue=function(_37f,_380){$(_380).value=_37f;};window.autofillAddress=function(_381){_381.form.DisplayName.value=_381.form.FirstName.value+" "+_381.form.LastName.value;if(_381.form.UserAlias){_381.form.UserAlias.value=_381.form.FirstName.value.slice(0,1)+_381.form.LastName.value;}if(_381.form.UserName){_381.form.UserName.value=_381.form.FirstName.value+" "+_381.form.LastName.value;}};window.SFautofillAddress=function(_382,_383,_384){$(_384).value=$(_382).value+" "+$(_383).value;};window.setCurrentDate=function(_385,_386){$(_386).value=_385;};window.updateStyleSheetRule=function(rule,text){text+=" !important";if(browser.isIE){var _387=rule.split(/,\s+/);var _388=document.styleSheets[document.styleSheets.length-1];for(var i=0,l=_387.length;i<l;i++){_388.addRule(_387[i],text);}}else{var _389=document.getElementsByTagName("style");_388=_389[_389.length-1];_388.innerHTML+="\n"+rule+"{"+text+";}";}};window.showNotAllowedDialog=function(_38a,_38b){dojo["require"]("epages.uimessagehandler");var _38c=$E(_38a).getAbsolutePosition();var _38d=document.getElementsByTagName("body")[0].clientWidth;var _38e=document.getElementsByTagName("body")[0].clientHeight;var _38f="top";var xoff=0;var yoff=0;if(_38c.x>(_38d/2)){_38f="right";}if(_38c.y>(_38e-30)){_38f="bottom";yoff=0;xoff=0;}if(_38f=="top"){xoff=10;yoff=_38a.offsetHeight;}if(_38f=="right"||_38f=="left"){yoff=_38a.offsetHeight/2;}dojo.publish("uimessage/show",["",_38b,"Bubble",{typeClass:"Warning Wide",sizeClass:"Medium",x:_38c.x+xoff,y:_38c.y+yoff,orientation:_38f}]);dojo.connect(dojo.body(),"mouseup",this,function(){dojo.publish("uimessage/hide");});};window.DialogArea=function(){this.areaName=new Array();this.areaId=new Array();this.areaDisplayName=new Array();this.areaActivated=new Array();this.addArea=function(_390,_391){this.areaName.push(_390);this.areaId.push(_391);if(this.addArea.arguments.length>3){this.areaDisplayName.push(this.addArea.arguments[2]);this.areaActivated.push(this.addArea.arguments[3]);}else{this.areaDisplayName.push("");this.areaActivated.push(true);}};this.createAreaLinks=function(){for(var i=0,l=this.areaName.length;i<l;i++){var _392;if(this.areaActivated[i]){_392=document.createElement("a");_392.href="javascript:epagesDialog.toggleArea('"+this.areaName[i]+"');";_392.name=this.areaName[i];_392.id=this.areaName[i];_392.className="HideArea";}else{_392=document.createElement("span");_392.name=this.areaName[i];_392.id=this.areaName[i];_392.className="disabled";}var _393=document.createTextNode(this.areaDisplayName[i]);_392.appendChild(_393);$("ToggleTabpageArea").appendChild(_392);}};this.showArea=function(_394){areaId="";for(var i=0,_395=this.areaName.length;i<_395;i++){if(this.areaName[i]==_394){areaId=this.areaId[i];}}try{dojo.removeClass(document.getElementsByName(_394)[0],"HideArea");dojo.addClass(document.getElementsByName(_394)[0],"ShowArea");}catch(ex){dojo.removeClass($(_394),"HideArea");dojo.addClass($(_394),"ShowArea");}$(areaId).className="ShowElement";if(browser.isIE){setTimeout("$('"+areaId+"').className='ShowElement';",10);}actualDialogArea=_394;};this.hideArea=function(_396){areaId="";for(var i=0,_397=this.areaName.length;i<_397;i++){if(this.areaName[i]==_396){areaId=this.areaId[i];}}dojo.removeClass(document.getElementsByName(_396)[0],"ShowArea");dojo.addClass(document.getElementsByName(_396)[0],"HideArea");$(areaId).className="HideElement";actualDialogArea="";};this.toggleArea=function(_398){this.showArea(_398);for(var i=0,_399=this.areaName.length;i<_399;i++){tempName=this.areaName[i];tempId=this.areaId[i];if(_398!=tempName){if(this.areaActivated[i]){dojo.removeClass(document.getElementsByName(tempName)[0],"ShowArea");dojo.addClass(document.getElementsByName(tempName)[0],"HideArea");$(tempId).className="HideElement";}}}};this.toggleAreaDisplay=function(_39a){if(document.getElementsByName(_39a)[0].className.match("HideArea")){this.showArea(_39a);}else{this.hideArea(_39a);}};this.selectArea=function(_39b){this.showArea(_39b);for(var i=0,_39c=this.areaName.length;i<_39c;i++){tempName=this.areaName[i];tempId=this.areaId[i];if(_39b!=tempName){dojo.removeClass(document.getElementsByName(tempName)[0],"ShowArea");dojo.addClass(document.getElementsByName(tempName)[0],"HideArea");$(tempId).className="HideElement";}}};};window.appendDialogArea=function(_39d){if(actualDialogArea!=""){_39d.action+="&DialogArea="+actualDialogArea;}};actualDialogArea="";epagesDialog=new DialogArea();window.WizardPages=function(){this.TabId=new Array();this.AreaId=new Array();this.addPage=function(_39e,_39f){this.TabId.push(_39e);this.AreaId.push(_39f);};this.showStep=function(_3a0){ActualWizardPage=_3a0;window.scrollTo(0,0);$(this.TabId[_3a0]).className="selected";$(this.TabId[_3a0]).getElementsByTagName("span")[0].firstChild.className="selected";try{$(this.TabId[_3a0]).getElementsByTagName("span")[0].appendChild(oHelpTopic);}catch(ex){}$(this.AreaId[_3a0]).className="ShowElement";for(var i=0,_3a1=this.TabId.length;i<_3a1;i++){if(i!=_3a0){$(this.TabId[i]).className="unselected";$(this.TabId[i]).getElementsByTagName("span")[0].firstChild.className="disabled";$(this.AreaId[i]).className="HideElement";}}};};ActualWizardPage=0;WizardPages=new WizardPages();window.showImage=function(_3a2){(new epages.widget.Slides).openOverview(_3a2);};window.showMore=function(_3a3,_3a4){if(_3a4){_3a4.style.display="none";}dojo.fx.wipeIn({node:$(_3a3),duration:200}).play();};window.showLess=function(_3a5){dojo.fx.wipeOut({node:$(_3a5),duration:200}).play();};}if(!dojo._hasResource["epages.lang.clipboard"]){dojo._hasResource["epages.lang.clipboard"]=true;dojo.provide("epages.lang.clipboard");epages.lang.Clipboard=function(){this._hash=new epages.lang.Hash();};epages.lang.Clipboard.prototype={_hash:undefined,_counter:0,get:function(key){returnValue=this._hash.get("key"+key);return returnValue;},add:function(_3a6){var _3a7=this._counter;this._hash.set("key"+_3a7,_3a6);do{this._counter++;}while(this._hash.existsKey("key"+this._counter));return _3a7;},set:function(key,_3a8){if(this._hash.existsKey("key"+key)){this._hash.set("key"+key,_3a8);return true;}else{return false;}}};}if(!dojo._hasResource["epages.lang.hitch"]){dojo._hasResource["epages.lang.hitch"]=true;dojo.provide("epages.lang.hitch");epages.lang.hitch=function(o,func,_3a9){if(o===undefined&&func===undefined&&_3a9===undefined){return;}else{if(_3a9===undefined){return dojo.hitch(o,func);}var _3aa=[];for(var i=0,_3ab=_3a9.length;i<_3ab;i++){var _3ac=epages.lang.hitch.prototype.clipBoard.add(_3a9[i]);_3aa.push("epages.lang.hitch.prototype.clipBoard.get("+_3ac+")");}if(typeof (func)=="string"){var _3ad=func;}else{for(member in o){if(typeof o[member]=="function"&&o[member]==func){var _3ad=member;break;}}}var _3ae;if(_3ad===undefined){_3ae=eval("dojo.hitch(o, function() { func("+_3aa.join(", ")+"); });");}else{_3ae=eval("dojo.hitch(o, function() { o."+_3ad+"("+_3aa.join(", ")+"); });");}return _3ae;}};epages.lang.hitch.prototype={clipBoard:new epages.lang.Clipboard()};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_3af){var _3b0=_3af.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_3b0==1&&dojo.date.isLeapYear(_3af)){return 29;}return days[_3b0];};dojo.date.isLeapYear=function(_3b1){var year=_3b1.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_3b2){var str=_3b2.toString();var tz="";var _3b3;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_3b3=str.match(pat))){tz=_3b3[1];}else{str=_3b2.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_3b3=str.match(pat))){tz=_3b3[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_3b4,_3b5,_3b6){_3b4=new Date(+_3b4);_3b5=new Date(+(_3b5||new Date()));if(_3b6=="date"){_3b4.setHours(0,0,0,0);_3b5.setHours(0,0,0,0);}else{if(_3b6=="time"){_3b4.setFullYear(0,0,0);_3b5.setFullYear(0,0,0);}}if(_3b4>_3b5){return 1;}if(_3b4<_3b5){return -1;}return 0;};dojo.date.add=function(date,_3b7,_3b8){var sum=new Date(+date);var _3b9=false;var _3ba="Date";switch(_3b7){case "day":break;case "weekday":var days,_3bb;var mod=_3b8%5;if(!mod){days=(_3b8>0)?5:-5;_3bb=(_3b8>0)?((_3b8-5)/5):((_3b8+5)/5);}else{days=mod;_3bb=parseInt(_3b8/5);}var strt=date.getDay();var adj=0;if(strt==6&&_3b8>0){adj=1;}else{if(strt==0&&_3b8<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_3b8>0)?2:-2;}_3b8=(7*_3bb)+days+adj;break;case "year":_3ba="FullYear";_3b9=true;break;case "week":_3b8*=7;break;case "quarter":_3b8*=3;case "month":_3b9=true;_3ba="Month";break;default:_3ba="UTC"+_3b7.charAt(0).toUpperCase()+_3b7.substring(1)+"s";}if(_3ba){sum["set"+_3ba](sum["get"+_3ba]()+_3b8);}if(_3b9&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_3bc,_3bd,_3be){_3bd=_3bd||new Date();_3be=_3be||"day";var _3bf=_3bd.getFullYear()-_3bc.getFullYear();var _3c0=1;switch(_3be){case "quarter":var m1=_3bc.getMonth();var m2=_3bd.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_3bf*4);_3c0=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_3bc,_3bd,"day"));var _3c1=parseInt(dojo.date.difference(_3bc,_3bd,"week"));var mod=days%7;if(mod==0){days=_3c1*5;}else{var adj=0;var aDay=_3bc.getDay();var bDay=_3bd.getDay();_3c1=parseInt(days/7);mod=days%7;var _3c2=new Date(_3bc);_3c2.setDate(_3c2.getDate()+(_3c1*7));var _3c3=_3c2.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_3c3+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_3c3+mod)<0:adj=2;}}}days+=adj;days-=(_3c1*2);}_3c0=days;break;case "year":_3c0=_3bf;break;case "month":_3c0=(_3bd.getMonth()-_3bc.getMonth())+(_3bf*12);break;case "week":_3c0=parseInt(dojo.date.difference(_3bc,_3bd,"day")/7);break;case "day":_3c0/=24;case "hour":_3c0/=60;case "minute":_3c0/=60;case "second":_3c0/=1000;case "millisecond":_3c0*=_3bd.getTime()-_3bc.getTime();}return Math.round(_3c0);};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_3c4){var _3c5={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _3c6=dojo.cldr.supplemental._region(_3c4);var dow=_3c5[_3c6];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_3c7){_3c7=dojo.i18n.normalizeLocale(_3c7);var tags=_3c7.split("-");var _3c8=tags[1];if(!_3c8){_3c8={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_3c8.length==4){_3c8=tags[2];}}return _3c8;};dojo.cldr.supplemental.getWeekend=function(_3c9){var _3ca={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var _3cb={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};var _3cc=dojo.cldr.supplemental._region(_3c9);var _3cd=_3ca[_3cc];var end=_3cb[_3cc];if(_3cd===undefined){_3cd=6;}if(end===undefined){end=0;}return {start:_3cd,end:end};};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_3ce){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_3ce&&_3ce.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_3cf){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_3cf);};dojo.regexp.group=function(_3d0,_3d1){return "("+(_3d1?"?:":"")+_3d0+")";};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function _3d2(_3d3,_3d4,_3d5,_3d6){return _3d6.replace(/([a-z])\1*/ig,function(_3d7){var s,pad,c=_3d7.charAt(0),l=_3d7.length,_3d8=["abbr","wide","narrow"];switch(c){case "G":s=_3d4[(l<4)?"eraAbbr":"eraNames"][_3d3.getFullYear()<0?0:1];break;case "y":s=_3d3.getFullYear();switch(l){case 1:break;case 2:if(!_3d5.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_3d3.getMonth()+1)/3);pad=true;break;case "M":var m=_3d3.getMonth();if(l<3){s=m+1;pad=true;}else{var _3d9=["months","format",_3d8[l-3]].join("-");s=_3d4[_3d9][m];}break;case "w":var _3da=0;s=dojo.date.locale._getWeekOfYear(_3d3,_3da);pad=true;break;case "d":s=_3d3.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_3d3);pad=true;break;case "E":var d=_3d3.getDay();if(l<3){s=d+1;pad=true;}else{var _3db=["days","format",_3d8[l-3]].join("-");s=_3d4[_3db][d];}break;case "a":var _3dc=(_3d3.getHours()<12)?"am":"pm";s=_3d4[_3dc];break;case "h":case "H":case "K":case "k":var h=_3d3.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_3d3.getMinutes();pad=true;break;case "s":s=_3d3.getSeconds();pad=true;break;case "S":s=Math.round(_3d3.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_3d3,true,_3d5);if(s){break;}l=4;case "Z":var _3dd=dojo.date.locale._getZone(_3d3,false,_3d5);var tz=[(_3dd<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_3dd)/60),2),dojo.string.pad(Math.abs(_3dd)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_3d6);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_3de,_3df,_3e0){if(_3df){return dojo.date.getTimezoneName(_3de);}else{return _3de.getTimezoneOffset();}};dojo.date.locale.format=function(_3e1,_3e2){_3e2=_3e2||{};var _3e3=dojo.i18n.normalizeLocale(_3e2.locale),_3e4=_3e2.formatLength||"short",_3e5=dojo.date.locale._getGregorianBundle(_3e3),str=[],_3e6=dojo.hitch(this,_3d2,_3e1,_3e5,_3e2);if(_3e2.selector=="year"){return _3e7(_3e5["dateFormatItem-yyyy"]||"yyyy",_3e6);}var _3e8;if(_3e2.selector!="date"){_3e8=_3e2.timePattern||_3e5["timeFormat-"+_3e4];if(_3e8){str.push(_3e7(_3e8,_3e6));}}if(_3e2.selector!="time"){_3e8=_3e2.datePattern||_3e5["dateFormat-"+_3e4];if(_3e8){str.push(_3e7(_3e8,_3e6));}}return str.length==1?str[0]:_3e5["dateTimeFormat-"+_3e4].replace(/\{(\d+)\}/g,function(_3e9,key){return str[key];});};dojo.date.locale.regexp=function(_3ea){return dojo.date.locale._parseInfo(_3ea).regexp;};dojo.date.locale._parseInfo=function(_3eb){_3eb=_3eb||{};var _3ec=dojo.i18n.normalizeLocale(_3eb.locale),_3ed=dojo.date.locale._getGregorianBundle(_3ec),_3ee=_3eb.formatLength||"short",_3ef=_3eb.datePattern||_3ed["dateFormat-"+_3ee],_3f0=_3eb.timePattern||_3ed["timeFormat-"+_3ee],_3f1;if(_3eb.selector=="date"){_3f1=_3ef;}else{if(_3eb.selector=="time"){_3f1=_3f0;}else{_3f1=_3ed["dateTimeFormat-"+_3ee].replace(/\{(\d+)\}/g,function(_3f2,key){return [_3f0,_3ef][key];});}}var _3f3=[],re=_3e7(_3f1,dojo.hitch(this,_3f4,_3f3,_3ed,_3eb));return {regexp:re,tokens:_3f3,bundle:_3ed};};dojo.date.locale.parse=function(_3f5,_3f6){var info=dojo.date.locale._parseInfo(_3f6),_3f7=info.tokens,_3f8=info.bundle,re=new RegExp("^"+info.regexp+"$",info.strict?"":"i"),_3f9=re.exec(_3f5);if(!_3f9){return null;}var _3fa=["abbr","wide","narrow"],_3fb=[1970,0,1,0,0,0,0],amPm="",_3fc=dojo.every(_3f9,function(v,i){if(!i){return true;}var _3fd=_3f7[i-1];var l=_3fd.length;switch(_3fd.charAt(0)){case "y":if(l!=2&&_3f6.strict){_3fb[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_3fe=year.substring(0,2)*100,_3ff=Math.min(Number(year.substring(2,4))+20,99),num=(v<_3ff)?_3fe+v:_3fe-100+v;_3fb[0]=num;}else{if(_3f6.strict){return false;}_3fb[0]=v;}}break;case "M":if(l>2){var _400=_3f8["months-format-"+_3fa[l-3]].concat();if(!_3f6.strict){v=v.replace(".","").toLowerCase();_400=dojo.map(_400,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_400,v);if(v==-1){return false;}}else{v--;}_3fb[1]=v;break;case "E":case "e":var days=_3f8["days-format-"+_3fa[l-3]].concat();if(!_3f6.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_3fb[1]=0;case "d":_3fb[2]=v;break;case "a":var am=_3f6.am||_3f8.am;var pm=_3f6.pm||_3f8.pm;if(!_3f6.strict){var _401=/\./g;v=v.replace(_401,"").toLowerCase();am=am.replace(_401,"").toLowerCase();pm=pm.replace(_401,"").toLowerCase();}if(_3f6.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_3fb[3]=v;break;case "m":_3fb[4]=v;break;case "s":_3fb[5]=v;break;case "S":_3fb[6]=v;}return true;});var _402=+_3fb[3];if(amPm==="p"&&_402<12){_3fb[3]=_402+12;}else{if(amPm==="a"&&_402==12){_3fb[3]=0;}}var _403=new Date(_3fb[0],_3fb[1],_3fb[2],_3fb[3],_3fb[4],_3fb[5],_3fb[6]);if(_3f6.strict){_403.setFullYear(_3fb[0]);}var _404=_3f7.join(""),_405=_404.indexOf("d")!=-1,_406=_404.indexOf("M")!=-1;if(!_3fc||(_406&&_403.getMonth()>_3fb[1])||(_405&&_403.getDate()>_3fb[2])){return null;}if((_406&&_403.getMonth()<_3fb[1])||(_405&&_403.getDate()<_3fb[2])){_403=dojo.date.add(_403,"hour",1);}return _403;};function _3e7(_407,_408,_409,_40a){var _40b=function(x){return x;};_408=_408||_40b;_409=_409||_40b;_40a=_40a||_40b;var _40c=_407.match(/(''|[^'])+/g),_40d=_407.charAt(0)=="'";dojo.forEach(_40c,function(_40e,i){if(!_40e){_40c[i]="";}else{_40c[i]=(_40d?_409:_408)(_40e);_40d=!_40d;}});return _40a(_40c.join(""));};function _3f4(_40f,_410,_411,_412){_412=dojo.regexp.escapeString(_412);if(!_411.strict){_412=_412.replace(" a"," ?a");}return _412.replace(/([a-z])\1*/ig,function(_413){var s,c=_413.charAt(0),l=_413.length,p2="",p3="";if(_411.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="[12]\\d|"+p2+"[1-9]|3[01]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_411.am||_410.am||"AM";var pm=_411.pm||_410.pm||"PM";if(_411.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_40f){_40f.push(_413);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _414=[];dojo.date.locale.addCustomFormats=function(_415,_416){_414.push({pkg:_415,name:_416});};dojo.date.locale._getGregorianBundle=function(_417){var _418={};dojo.forEach(_414,function(desc){var _419=dojo.i18n.getLocalization(desc.pkg,desc.name,_417);_418=dojo.mixin(_418,_419);},this);return _418;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_41a,_41b){var _41c,_41d=dojo.date.locale._getGregorianBundle(_41b),_41e=[item,_41a,type];if(_41a=="standAlone"){var key=_41e.join("-");_41c=_41d[key];if(_41c[0]==1){_41c=undefined;}}_41e[1]="format";return (_41c||_41d[_41e.join("-")]).concat();};dojo.date.locale.isWeekend=function(_41f,_420){var _421=dojo.cldr.supplemental.getWeekend(_420),day=(_41f||new Date()).getDay();if(_421.end<_421.start){_421.end+=7;if(day<_421.start){day+=7;}}return day>=_421.start&&day<=_421.end;};dojo.date.locale._getDayOfYear=function(_422){return dojo.date.difference(new Date(_422.getFullYear(),0,1,_422.getHours()),_422)+1;};dojo.date.locale._getWeekOfYear=function(_423,_424){if(arguments.length==1){_424=0;}var _425=new Date(_423.getFullYear(),0,1).getDay(),adj=(_425-_424+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_423)+adj-1)/7);if(_425==_424){week++;}return week;};}if(!dojo._hasResource["epages.localize"]){dojo._hasResource["epages.localize"]=true;dojo.provide("epages.localize");(function(){epages.localize={formatNumber:function(_426,_427){var _428=(_426<0)?"-":"";var _429=Math.abs(_426);if(_427==null){_427=2;}var _42a=Math.pow(10,_427);var _42b=Math.floor(Math.round(_429*_42a)/_42a);var _42c=Math.round(Math.abs(_429-_42b)*_42a);if(_42c!=0){return _428+_42b+epages.vars.Locale.decimalSep+_42c;}else{return _428+_42b;}},formatBytes:function(_42d,_42e){if(_42e==null){_42e=2;}var unit="Byte";if(_42d>=1073741824){_42d/=1073741824;unit="GB";}else{if(_42d>=1048576){_42d/=1048576;unit="MB";}else{if(_42d>=1024){_42d/=1024;unit="kB";}}}return epages.localize.formatNumber(_42d,_42e)+" "+unit;},_patternCache:$H(),_patternMap:{"%{ce_year}":"yyyy","%y":"yy","%B":"MMMM","%b":"MMM","%m":"MM","%{month}":"M","%d":"dd","%{day}":"d","%A":"EEEE","%H":"HH","%{hour}":"H","%{hour_12}":"h","%M":"mm","%S":"ss","%p":"a","%{time_zone_long_name}":"ZZ"},getDojoDateTimePattern:function(_42f){if(_42f==null){_42f=epages.vars.Locale.dateFormat;}if(this._patternCache.existsKey(_42f)){return this._patternCache.get(_42f);}var _430=_42f;var _431=$A($A($H(epages.localize._patternMap).keys()).sort(function(a,b){return b.length-a.length;}));_431.each(function(_432){var rx=new RegExp(_432,"g");_430=_430.replace(rx,function(){return epages.localize._patternMap[_432];});});return _430;},formatDateTime:function(date,_433){if(date==null){return "";}if(_433==null){_433=epages.vars.Locale.dateFormat;}var d=dojo.date.locale.format(date,{datePattern:this.getDojoDateTimePattern(_433),timePattern:" "});return d.substring(0,d.length-2);},parseDateTime:function(_434,_435){if(_435==null){_435=epages.vars.Locale.dateFormat;}return dojo.date.locale.parse("~ "+_434,{selector:"timeOnly",timePattern:this.getDojoDateTimePattern(_435),datePattern:"~"});},parseNumber:function(_436){_436=_436.replace(epages.vars.Locale.thousandSep,"");_436=_436.replace(epages.vars.Locale.decimalSep,".");return parseFloat(_436);},getFormat:function(type){var ret=_437[type];if(!ret){switch(type){case "date":ret=_437[type]=epages.localize.getDojoDateTimePattern(epages.vars.Locale.dateFormat);break;case "datetime":ret=_437[type]=epages.localize.getDojoDateTimePattern(epages.vars.Locale.datetimeFormat);break;case "time":ret=_437[type]=epages.localize.getDojoDateTimePattern(epages.vars.Locale.timeFormat);break;case "number":ret=_437[type]=dojo.regexp.escapeString("-? ?[0-9"+_separator.thousand+"]+["+_separator.decimal+"]?[0-9]*","([]{}+?*)");break;case "money":ret=_437[type]=dojo.regexp.escapeString("(["+_separator.money+"]? ?-? ?[0-9"+_separator.thousand+"]{1,}["+_separator.decimal+"]?[0-9]{0,2}|-? ?[0-9"+_separator.thousand+"]{1,}["+_separator.decimal+"]?[0-9]{0,2} ?["+_separator.money+"]?)","([|]{}?)");break;}}return ret;},getPattern:function(type){var ret=_438[type];if(!ret){switch(type){case "date":case "datetime":case "time":case "month":case "week":ret=_438[type]=dojo.date.locale.regexp({selector:"date",datePattern:this.getFormat(type),timePattern:""});break;case "number":ret=_438[type]=dojo.regexp.escapeString("-? ?[0-9"+epages.vars.Locale.thousandSep+"]+["+epages.vars.Locale.decimalSep+"]?[0-9]*","([]{}+?*)");break;case "money":ret=_438[type]=dojo.regexp.escapeString("(["+epages.vars.Locale.moneySymbol||""+"]? ?-? ?[0-9"+epages.vars.Locale.thousandSep+"]{1,}["+epages.vars.Locale.decimalSep+"]?[0-9]{0,2}|-? ?[0-9"+epages.vars.Locale.thousandSep+"]{1,}["+epages.vars.Locale.decimalSep+"]?[0-9]{0,2} ?["+epages.vars.Locale.moneySymbol||""+"]?)","([|]{}?)");break;}}return ret;},getSeparator:function(type){return _separator[type];},date2obj:function(_439,type){return dojo.date.locale.parse(_439,{selector:"date",datePattern:_437[type],timePattern:""});},obj2date:function(_43a,type){return dojo.date.locale.format(_43a,{selector:"date",datePattern:_437[type],timePattern:""});},date2unix:function(_43b,type){var ret=epages.localize.date2obj(_43b,type);return ret?(ret.getTime()/1000):null;},unix2date:function(_43c,type){return epages.localize.obj2date(new Date(_43c*1000),type);},str2number:function(_43d){var ret=parseFloat((_43d+"").replace(new RegExp(dojo.regexp.escapeString("[^0-9-"+epages.vars.Locale.decimalSep+"]","^([]{})$"),"g"),"").replace(new RegExp(dojo.regexp.escapeString("["+epages.vars.Locale.decimalSep+"]","^([]{})$"),"g"),"."));return isNaN(ret)?null:ret;},number2str:function(_43e){return (_43e+"").replace(/\./g,_separator.decimal);}};var _437={month:"MM (yyyy)",week:"w (yyyy)"},_438={space:" \n\r\t",alpha:"A-Za-z",digit:"0-9",email:dojo.regexp.escapeString("[A-Za-z0-9._-]{1,}@[A-Za-z0-9._-]{2,}[A-Za-z]{2,4}","([]{})"),url:"([A-Z]:\\[^/:*?<>|]+.w{2,6})|(\\{2}[^/:*?<>|]+.w{2,6})",tel:"[0-9/+-. ]{0,}",integer:"-?[0-9]*"};})();}if(!dojo._hasResource["epages.io.json"]){dojo._hasResource["epages.io.json"]=true;dojo.provide("epages.io.json");epages.io.Json=function(){};dojo.extend(epages.io.Json,{defaultErrorCallback:function(_43f,args){var _440=args.xhr.status==404?{}:dojo.fromJson(args.xhr.responseText);console.warn("epages.io.Json: error in request");if(_440.Errors!==undefined){dojo.publish("epages/interfaceerror",[{code:_440.Errors[0].Reason,message:_440.Errors[0].Message,guid:_440.Errors[0].GUID,vars:{url:args.url,status:args.xhr.status,response:_440}}]);}},loadSync:function(url,_441,_442){var _443;var _444=_441!==undefined?dojo.xhrPost:dojo.xhrGet;var _445=this;var opt={url:url,sync:true,preventCache:epages.constants.preventCache,error:function(_446,args){_443={"error":{error:_446,args:args,data:dojo.fromJson(args.xhr.responseText)}};if(_442!=null){_442({"error":[_446,args]});}else{_445.defaultErrorCallback(_446,args);}},load:function(data,evt){var _447=dojo.fromJson(data);if(_447.Errors){_443={"error":{data:_447}};}else{_443={"data":dojo.fromJson(data)};}}};if(url.match(".(js|json)$")){_444=dojo.xhrGet;}else{dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_441});}_444(opt);return _443;},loadAsync:function(url,_448,_449,_44a){var _44b=_449!==undefined?dojo.xhrPost:dojo.xhrGet;var _44c=this;var opt={url:url,error:function(_44d,args){var c=_44a||_448;var _44e=dojo.fromJson(args.xhr.responseText);if(c){c({"error":[_44d,args],"data":(typeof _44e=="object")?dojo.fromJson(args.xhr.responseText):{}});}else{_44c.defaultErrorCallback(_44d,args);}},load:function(data,_44f){if(_448!=null){var _450=dojo.fromJson(data);if(_450.Errors){_448({"error":{data:_450}});}else{_448({"data":_450,"ioArgs":_44f});}}}};if(url.match(".(js|json)$")){_44b=dojo.xhrGet;}else{dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_449});}_44b(opt);return;}});}if(!dojo._hasResource["epages.cssfix"]){dojo._hasResource["epages.cssfix"]=true;dojo.provide("epages.cssfix");epages.cssfix={png:{minImageSize:24,replaceImages:function(){for(var i=0,_451=document.images.length;i<_451;i++){if(document.images[i].src&&document.images[i].src.match(".png")&&!document.images[i].className.match("AlphaImage")&&!document.images[i].className.match("NoAlphaImage")&&!document.images[i].src.match(/\x28/)&&document.images[i].offsetWidth>=this.minImageSize&&document.images[i].offsetHeight>=this.minImageSize&&document.images[i].complete){var _452=dojo.getComputedStyle(document.images[i]);dojo.style(document.images[i],{zoom:"1",width:(document.images[i].offsetWidth?document.images[i].offsetWidth-parseInt(_452.paddingLeft)-parseInt(_452.paddingRight):this.minImageSize)+"px",height:(document.images[i].offsetHeight?document.images[i].offsetHeight-parseInt(_452.paddingTop)-parseInt(_452.paddingBottom):this.minImageSize)+"px"});if(_452.margin=="0px"){document.images[i].style.margin=_452.padding;}document.images[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+document.images[i].src+", sizingMethod='scale')";document.images[i].src=epages.vars.IconsRoot+"/general_img_transparentpixel.gif";dojo.connect(document.images[i],"onload",function(evt){if(!evt.currentTarget.src.match("general_img_transparentpixel.gif")){evt.currentTarget.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+evt.currentTarget.src+", sizingMethod='scale')";evt.currentTarget.src=epages.vars.IconsRoot+"/general_img_transparentpixel.gif";}});setTimeout(function(){epages.cssfix.png.replaceImages();},40);break;}}},init:function(){dojo.addOnLoad(function(){if(epages.Browser.engine=="MSIE"){epages.cssfix.png.replaceImages();}});}},pseudoclasses:{NODEDEPTH:12,hoverTriggerClasses:["EnableHover","TreeContent","Command"],activeTriggerClasses:["EnableActive"],focusTriggerClasses:["EnableFocus"],lastHoveredNode:dojo.body(),currentHoveredNodes:[],mouseMoved:false,_lastSelectSelected:null,_lastFocusedNode:null,_registerFocus:function(){var _453=dojo.query("input").concat(dojo.query("textarea")).concat(dojo.query("select"));for(var i=0,_454=_453.length;i<_454;i++){if(!_453[i].focusHandle){_453[i].focusHandle=true;dojo.connect(_453[i],"focus",this,function(evt){evt.currentTarget.setAttribute("focused","");if(epages.Browser.engine=="MSIE"){dojo.addClass(evt.currentTarget,"focused");}});dojo.connect(_453[i],"blur",this,function(evt){evt.currentTarget.removeAttribute("focused");if(epages.Browser.engine=="MSIE"){dojo.removeClass(evt.currentTarget,"focused");}});}}},_checkFocus:function(evt){if(evt.target.disabled||(evt.target.className&&evt.target.className.match("Disabled"))){return;}if(this._lastFocusedNode){this._lastFocusedNode.removeAttribute("focused");if(epages.Browser.engine=="MSIE"){dojo.removeClass(this._lastFocusedNode,"focused");}}var _455=false;for(var z=0,_456=this.focusTriggerClasses.length;z<_456;z++){if(evt.target.className&&evt.target.className.match(this.focusTriggerClasses[z])){_455=true;}}if(_455||evt.target.tagName=="A"||evt.target.tagName=="INPUT"||evt.target.tagName=="TEXTAREA"||evt.target.tagName=="SELECT"){evt.target.setAttribute("focused","");if(epages.Browser.engine=="MSIE"){dojo.addClass(evt.target,"focused");}this._lastFocusedNode=evt.target;}if(evt.target.tagName==="SELECT"&&epages.Browser.engine=="MSIE"){evt.target.parentNode.setAttribute("focused","");dojo.addClass(evt.target.parentNode,"focused");this._lastFocusedNode=evt.target.parentNode;}},_removeActive:function(evt){evt.currentTarget.removeAttribute("activated","");if(epages.Browser.engine=="MSIE"){dojo.removeClass(evt.currentTarget,"activated");}},update:function(){if(this.lastHoveredNode){var _457=this.lastHoveredNode;for(var i=0;i<this.NODEDEPTH;i++){if(_457){var _458=_457.className||"";var _459=false;for(var z=0,_45a=this.hoverTriggerClasses.length;z<_45a;z++){if(typeof _458=="string"&&_458.match(this.hoverTriggerClasses[z])){_459=true;}}if((_459||(_457.parentNode&&_457.parentNode.parentNode&&_457.parentNode.parentNode.className&&_457.parentNode.parentNode.className.match("ContentList")&&_457.tagName=="TR")||_457.tagName=="A"||_457.tagName=="INPUT"||_457.tagName=="TEXTAREA"||_457.tagName=="SELECT")&&!_457.disabled){if(!_457.isHovered){this.currentHoveredNodes.push(_457);_457.setAttribute("hovered","");if(epages.Browser.engine=="MSIE"){dojo.addClass(_457,"hovered");}}_457.isHovered=true;_457.removeHover=false;}var _45b=false;for(var z=0,_45a=this.activeTriggerClasses.length;z<_45a;z++){if(typeof _458=="string"&&_458.match(this.activeTriggerClasses[z])){_45b=true;}}if(_45b||_457.tagName=="A"&&!_457.activeHandle){_457.activeHandle=true;dojo.connect(_457,"mousedown",this,function(evt){evt.currentTarget.setAttribute("activated","");if(epages.Browser.engine=="MSIE"){dojo.addClass(evt.currentTarget,"activated");}});dojo.connect(_457,"mouseup",this,"_removeActive");dojo.connect(_457,"mouseleave",this,"_removeActive");}if(_457.tagName!="BODY"&&_457.tagName!="HTML"){_457=_457.parentNode;}else{break;}}}var _45c=[];for(var i=0,_45d=this.currentHoveredNodes.length;i<_45d;i++){if(this.currentHoveredNodes[i].removeHover){this.currentHoveredNodes[i].removeAttribute("hovered");if(epages.Browser.engine=="MSIE"){dojo.removeClass(this.currentHoveredNodes[i],"hovered");}this.currentHoveredNodes[i].isHovered=false;}else{_45c.push(this.currentHoveredNodes[i]);}this.currentHoveredNodes[i].removeHover=true;}this.currentHoveredNodes=_45c;}},init:function(){dojo.connect(dojo.body(),"mouseover",dojo.hitch(this,function(evt){this.lastHoveredNode=evt.target;this.mouseMoved=true;}));dojo.connect(dojo.body(),"mouseleave",dojo.hitch(this,function(evt){this.lastHoveredNode=evt.currentTarget;this.mouseMoved=true;}));dojo.connect(dojo.body(),"mouseup",dojo.hitch(this,function(evt){this._checkFocus(evt);}));dojo.connect(dojo.body(),"keyup",dojo.hitch(this,function(evt){if(evt.keyCode==dojo.keys.TAB){this._checkFocus(evt);}}));dojo.addOnLoad(dojo.hitch(this,"update"));dojo.addOnLoad(dojo.hitch(this,"_registerFocus"));setInterval(dojo.hitch(this,function(){if(this.mouseMoved){this.update();this.mouseMoved=false;}}),1);}},updatestyles:{_refreshNode:null,update:function(evt){if(dojo.query(".GeneralLayout",dojo.body())[0]||(evt&&(evt.target.tagName=="SELECT"||evt.target.tagName=="OPTION"||evt.target.tagName=="TEXTAREA"||evt.target.tagName=="INPUT"||evt.target.tagName=="OBJECT"))){return;}this._refreshNode.style.height="100%";setTimeout(dojo.hitch(this,function(){this._refreshNode.style.height="auto";}),1);},init:function(){if(epages.Browser.engine=="WebKit"){this._refreshNode=$("Content")||dojo.body().parentNode;dojo.connect(dojo.body().parentNode,"click",this,"update");dojo.addOnLoad(dojo.hitch(this,function(){dojo.hitch(this,"update");}));}}},highlighterrorimages:{init:function(){dojo.addOnLoad(function(){for(var i=0,_45e=document.images.length;i<_45e;i++){var _45f=new Image();_45f.onerror=function(){this.imageRef.src=epages.themeUrl("images")+"/img_faultyimage.png";};_45f.imageRef=document.images[i];_45f.src=document.images[i].src;}});}},hideemptylistitems:{init:function(){dojo.addOnLoad(function(){if(epages.Browser.engine=="MSIE"){var _460=dojo.query("li");for(var i=0,_461=_460.length;i<_461;i++){var _462=_460[i].getElementsByTagName("*");var _463=0;var _464=0;for(var k=0,_465=_462.length;k<_465;k++){if(_462[k].nodeType!=8){_463++;break;return;}else{_464++;}}if((_463<1&&_460[i].innerHTML.match("<--"))||(_464<1&&_463<1&&_460[i].innerHTML.length<2)){dojo.addClass(_460[i],"HideElement");}}}});}},init:function(){this.png.init();this.pseudoclasses.init();this.updatestyles.init();this.highlighterrorimages.init();this.hideemptylistitems.init();}};dojo.addOnLoad(dojo.hitch(epages.cssfix,epages.cssfix.init));}if(!dojo._hasResource["epages.storage"]){dojo._hasResource["epages.storage"]=true;dojo.provide("epages.storage");(function(dj){var trim=function(_466){return (_466+"").replace(/[\ \r\n\t]*(.*)[\ \r\n\t]*/,"$1");};var _467=function(name){return "SiteID::"+epages.vars.SiteID+"::"+name;},_468="; domain="+document.domain,path="; path=/",_469=window.localStorage&&window.localStorage.setItem?true:false,_46a=window.sessionStorage&&window.sessionStorage.setItem?true:false,_46b=function(name,_46c,_46d){if(typeof _46d=="number"){var date=new Date();date.setDate(_46d);_46d="; expires="+date.toUTCString();}else{_46d="";}document.cookie=[name,"=",dj.toJson(_46c),_46d,path,_468].join("");return _46c;},_46e=function(name){var _46f=null;if(document.cookie&&document.cookie!=""){var _470=document.cookie.split(";");for(var i=0;i<_470.length;i++){var _471=trim(_470[i]);if(_471.substring(0,name.length+1)==(name+"=")){_46f=dj.fromJson(_471.substring(name.length+1));break;}}}return _46f;},_472=function(name){return _46b(name,null,-365);},_473=function(_474){if(document.cookie&&document.cookie!=""){var _475=document.cookie.split(";");for(var i=0;i<_475.length;i++){var _476=trim(_475[i]);if(_476.match(new RegExp("^"+_474,"g"))){_472(_476.substr(0,_476.indexOf("=")));}}}return null;};dj.mixin(epages,{localStorage:{setItem:function(name,_477){return _469?window.localStorage.setItem(_467(name),dj.toJson(_477)):_46b("localStorage::"+_467(name),_477,365);},getItem:function(name){if(_46a){var ret=window.localStorage.getItem(_467(name));return ret?dj.fromJson(ret):ret;}else{return _46e("localStorage::"+_467(name));}},removeItem:function(name){return _469?window.localStorage.removeItem(_467(name)):_472("localStorage::"+_467(name));},clear:function(name){return _469?window.localStorage.clear():_473("localStorage::"+siteId());}},sessionStorage:{setItem:function(name,_478){return _46a?window.sessionStorage.setItem(_467(name),dj.toJson(_478)):_46b("sessionStorage::"+_467(name),_478);},getItem:function(name){if(_46a){var ret=window.sessionStorage.getItem(_467(name));return ret?dj.fromJson(ret):ret;}else{return _46e("sessionStorage::"+_467(name));}},removeItem:function(name){return _46a?window.sessionStorage.removeItem(_467(name)):_472("sessionStorage::"+_467(name));},clear:function(name){return _46a?window.sessionStorage.clear():_473("sessionStorage::"+siteId());}}});})(dojo);}if(!dojo._hasResource["epages.loaderani"]){dojo._hasResource["epages.loaderani"]=true;dojo.provide("epages.loaderani");epages.loaderani={defaultWidth:50,defaultHeight:50,defaultLeft:-9999,defaultTop:-9999,defaultZIndex:1};epages.loaderani.create=function(_479,_47a){_479=_479||{};_479.width=_479.width||this.defaultWidth;_479.height=_479.height||this.defaultHeight;_479.left=_479.left||this.defaultLeft;_479.top=_479.top||this.defaultTop;_479.zIndex=_479.zIndex||this.defaultZIndex;var _47b=$("LoaderAniNode");if(_47b){_47b.style.left=_479.left+"px";_47b.style.top=_479.top+"px";_47b.style.zIndex=_479.zIndex;if(_47b.getElementsByTagName("object")&&_47b.getElementsByTagName("object")[0]){_47b.getElementsByTagName("object")[0].width=_479.width;_47b.getElementsByTagName("object")[0].height=_479.height;}}return _47b;};epages.loaderani.destroy=function(_47c){var _47d=$("LoaderAniNode");if(_47d){_47d.style.left="-9999px";_47d.style.top="-9999px";}};}if(!dojo._hasResource["epages.event.interactionrestrictor"]){dojo._hasResource["epages.event.interactionrestrictor"]=true;dojo.provide("epages.event.interactionrestrictor");epages.event.interactionRestrictor=function(_47e){dojo.subscribe("interactionRestrictor/suspend",function(_47f,_480,_481,_482){if(!$(_47f)&&_480&&_480.offsetWidth){dojo.body().className+=" SuspendUserInteraction";var _483=document.createElement("div");if(!_482){var _484=new epages.html.Element(_480).getAbsolutePosition(dojo.body());var _482={Width:_480.offsetWidth,Height:_480.offsetHeight,Left:_484.x,Top:_484.y};}_483.id=_47f;_483.className="SuspendUserInteractionAnimation";_483.style.width=_482.Width+"px";_483.style.height=_482.Height+"px";_483.style.left=_482.Left+"px";_483.style.top=_482.Top+"px";_483.style.zIndex=11000;if(_481){dojo.addClass(_483,"SuspendUserInteractionHidden");}else{if(_480.offsetHeight>0){_483.loaderani=epages.loaderani.create({width:16,height:16,top:(_482.Top+_482.Height/2-8),left:(_482.Left+_482.Width/2-8),zIndex:11001});}}dojo.body().appendChild(_483);}});dojo.subscribe("interactionRestrictor/permit",function(_485){if($(_485)){dojo.removeClass(dojo.body(),"SuspendUserInteraction");epages.loaderani.destroy($(_485).loaderani);dojo.body().removeChild($(_485));}});};new epages.event.interactionRestrictor;}if(!dojo._hasResource["epages.mimetype"]){dojo._hasResource["epages.mimetype"]=true;dojo.provide("epages.mimetype");(function(dojo){dojo.declare("epages.Mimetype",null,{_MIMETYPE_MAP:{"image/png":["png"],"image/jpeg":["jpe","jpeg","jpg"],"image/gif":["gif"],"image/bmp":["bmp"],"image/vnd.microsoft.icon":["ico"],"image/tiff":["tif","tif"],"image/svg+xml":["svg","svgz"],"image/x-win-bitmap":["cur"],"audio/basic":["au"],"audio/mpeg":["mp3"],"audio/mp4a-latm":["m4p","m4b","m4a"],"audio/x-wav":["wav"],"audio/ogg":["ogg","oga","spx"],"audio/flac":["flac"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ra","ram"],"application/vnd.rn-realmedia":["rm"],"video/ogg":["ogv"],"video/mp4":["mp4"],"video/mpeg":["mpe","mpg","mpeg","mpga"],"video/quicktime":["qt","mov"],"video/x-msvideo":["avi"],"video/x-flv":["flv"],"video/x-ms-wmv":["wmv"],"text/plain":["txt"],"text/html":["htm","html","shtml","php","php4"],"text/css":["css"],"text/x-actionscript":["as"],"application/javascript":["js"],"application/json":["json"],"application/xml":["xml","plist"],"application/x-shockwave-flash":["swf"],"application/zip":["zip"],"application/gzip":["gz"],"application/x-tar":["tar"],"application/x-rar-compressed":["rar"],"application/x-msdownload":["exe","msi"],"application/vnd.ms-cab-compressed":["cab"],"application/pdf":["pdf"],"image/vnd.adobe.photoshop":["psd"],"application/postscript":["ai","eps","ps"],"application/msword":["doc"],"application/x-dot":["dot"],"application/rtf":["rtf"],"application/vnd.ms-excel":["xls","xla"],"application/vnd.ms-powerpoint":["ppt"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/x-director":["cdr"]},_MIMETYPE_GROUPS:{"*/*":["*/*"],"icon/*":["image/vnd.microsoft.icon","image/x-win-bitmap"],"image/*":["image/png","image/jpeg","image/gif"],"document/*":["application/pdf","application/msword","application/vnd.ms-excel","application/rtf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],"audio/*":["audio/mpeg","audio/x-ms-wma","audio/ogg","audio/flac","audio/x-ms-wma"],"video/*":["video/x-msvideo","video/mp4","video/mpeg","video/x-ms-wmv","video/x-flv"]},_MIMETYPE_PREVIEWABLE:["image/png","image/jpeg","image/gif","image/vnd.microsoft.icon"],_ICON_MAP:{"ico_l_image":["image/png","image/jpeg","image/gif","image/bmp","image/vnd.microsoft.icon","image/tiff","image/svg+xml","image/x-win-bitmap"],"ico_xl_box":[this._UNKNOW,"text/x-actionscript","audio/basic","audio/x-wav","audio/mpeg","audio/x-ms-wma","audio/ogg","audio/flac","application/msword","application/x-dot","application/vnd.ms-excel","application/vnd.ms-powerpoint","text/plain","text/css","application/javascript","application/json","application/xml"],"ico_xl_file_avi":["video/x-msvideo","video/mpeg","video/mp4"],"ico_xl_file_wmv":["video/x-ms-wmv"],"ico_xl_file_swf":["video/x-flv","application/x-shockwave-flash"],"ico_xl_file_mov":["video/quicktime","video/ogg"],"ico_xl_file_rm":["application/vnd.rn-realmedia"],"ico_xl_file_ram":["audio/x-pn-realaudio"],"ico_xl_file_dcr":["application/x-director"],"ico_xl_file_pdf":["application/pdf"],"ico_xl_file_htm":["text/html"],"ico_m_folder":["application/zip","application/x-rar-compressed","application/gzip","application/x-tar"]},_UNKNOW:"application/octet-stream",_mimes:null,constructor:function(mime){this.setMime(mime||this._UNKNOW);},setBySuffix:function(_486){_486=_486.toLowerCase();this._mime=this._UNKNOW;var map=this._MIMETYPE_MAP;for(var i in map){if(dojo.indexOf(map[i],_486)>=0){this._mime=i;break;}}return this;},setMime:function(mime){this._mime=mime;return this;},getMime:function(){return this._mime;},mimesByGroup:function(_487){return this._MIMETYPE_GROUPS[_487];},isGroup:function(_488){var _489=this._MIMETYPE_GROUPS[_488];if(_488=="*/*"){return true;}else{if(!_489){return false;}else{if(dojo.indexOf(_489,this._mime)>=0){return true;}}}return false;},isPreviewable:function(){var prev=this._MIMETYPE_PREVIEWABLE;if(dojo.indexOf(prev,this._mime)>=0){return true;}return false;},getIcon:function(){var map=this._ICON_MAP;for(var i in map){if(dojo.indexOf(map[i],this._mime)>=0){return i;}}return "ico_xl_box";}});var _48a=new epages.Mimetype();epages.mimetype={mimeBySuffix:function(_48b){return _48a.setBySuffix(_48b);},isPreviewable:function(mime){return _48a.setMime(mime).isPreviewable();},isGroup:function(mime,_48c){return _48a.setMime(mime).isGroup(_48c);},getGroup:function(_48d){return _48a._MIMETYPE_GROUPS[_48d]||_48a._MIMETYPE_GROUPS["all"];},isGroupBySuffix:function(_48e,_48f){return _48a.setBySuffix(_48e).isGroup(_48f);},getIcon:function(mime){return _48a.setMime(mime).getIcon();}};})(dojo);}if(!dojo._hasResource["epages.html.form"]){dojo._hasResource["epages.html.form"]=true;dojo.provide("epages.html.form");epages.html.Form=function(_490){if(_490===undefined){console.warn("epages.html.Form: initialize without object.");var name=_490.className;}this.object=_490;};dojo.extend(epages.html.Form,{object:undefined,get:function(){var _491=$H();for(var i=0,_492=this.object.elements.length;i<_492;i++){var elm=this.object.elements[i];if(elm.getAttribute("ep_form")!="false"){var name=elm.name;var _493=_491.get(name);if(_493===undefined){_493=[];}_493.push($E(elm).get());_491.set(name,_493);}}return _491;},set:function(_494,_495){if(_495===undefined){_495=true;}if(dojo.isString(_494)){_494=$H(dojo.fromJson(_494));}for(var i=0,_496=this.object.elements.length;i<_496;i++){var elm=this.object.elements[i];var name=elm.name;var _497=_494.get(name);if(_497!=""&&_497!=undefined&&elm.getAttribute("widgetid")&&(dojo.hasClass(elm,"Radio")||dojo.hasClass(elm,"Checkbox"))){$$(elm.getAttribute("widgetid")).setChecked(true);}if(_497!==undefined){var hlm=$E(elm);hlm.set(_497.shift());if(_495){hlm.callOnChange();}_494.set(name,_497);}}},toString:function(){return this.get().toString();}});}if(!dojo._hasResource["epages.widget.Form"]){dojo._hasResource["epages.widget.Form"]=true;dojo.provide("epages.widget.Form");dojo.declare("epages.widget.Form",[dijit._Widget],{submitButtons:[],_formName:null,_elems:null,_submits:null,_invalides:null,_onSubmit:function(){for(var i=0,_498=this.submitButtons.length;i<_498;i++){this.submitButtons[i].disabled=true;}},postCreate:function(){this.inherited("postCreate",arguments);this._elems={};this._submits={};this._invalides={};this._formName=dojo.attr(this.domNode,"name");this.connect(this.domNode,"submit",this.validate);},validate:function(_499){var _49a=this._elems;var _49b=false;for(var i in _49a){_49b=_49a[i].validate()?_49b:true;}if(_49b&&_499){_499.preventDefault();console.log("error");}return !_49b;},addElem:function(_49c){if(_49c.attr("type")=="submit"){this._submits[_49c.id]=_49c;}this._elems[_49c.id]=_49c;},removeElem:function(id){if(this._elems[id]){delete (this._elems[id]);}if(this._submits[id]){delete (this._submits[id]);}},change:function(){var _49d=this._elems;var _49e=false;for(var i in _49d){_49e=_49d[i].attr("valide")?_49e:true;}var _49d=this._submits;for(var i in _49d){_49d[i].attr("disabled",_49e);}},destroy:function(){this.inherited("destroy",arguments);var _49f=this._elems;for(var i in _49f){_49f[i].destroy();}}});}if(!dojo._hasResource["epages.widget.FormElements"]){dojo._hasResource["epages.widget.FormElements"]=true;dojo.provide("epages.widget.FormElements");(function(dj){var _4a0=new epages.widget.Form({},document.createElement("form"));dj.declare("epages.widget.FormBase",[dijit._Widget],{wrapNode:null,formNode:null,_type:"text",_attr:{},_handles:null,_translation:epages.io.dictionary.translation,postCreate:function(){this.inherited("postCreate",arguments);this._attr={};this._handles={};this._connects={};if(this.domNode.nodeName.match(/^(TEXTAREA|SELECT)$/)){this._attr.type=this.domNode.nodeName.toLowerCase();}else{this._attr.type=dj.attr(this.domNode,"type");}if(this._attr.type=="datetime-local"){this._attr.type="datetime";}if(!this._attr.type){var _4a1=(this.domNode.outerHTML).match(/[<\s]{1}type="?([A-Za-z]+)"?[>\s\/]{1}/);this._attr.type=_4a1?_4a1[1]:"text";}var ATTR=["autofocus","form","formaction","formmethod","formnovalidate","id","required","pattern","min","max","name","accept","checked","disabled","list","maxlength","multiple","placeholder","step","value"];for(var i=0,l=ATTR.length;i<l;i++){var name=ATTR[i];var _4a2=dj.attr(this.domNode,name);if(name=="multiple"){_4a2=this.domNode.getAttribute("multiple")==="true"?true:false;}if(name.match(/^(max|min|step)$/)){_4a2=epages.localize.str2number(_4a2);if(_4a2!==null){this._attr[name]=_4a2;}}else{if(_4a2!==undefined){this._attr[name]=_4a2;}}}this._attr.id=this.id;this._attr.valide=dj.hasClass(this.domNode,"DialogError")?false:true;if(this._attr.type.match(/^(color|date|datetime|email|month|number|search|tel|time|url|week)$/)){var node=dj.clone(this.domNode);if(!(epages.Browser.engine=="MSIE"&&epages.Browser.version<=8)){dj.attr(node,"type","text");}dj.place(node,this.domNode,"after");node.parentNode.removeChild(this.domNode);this.domNode=node;}var _4a3="";var _4a4=this.domNode.getAttribute("style")||"";if(_4a4!==""){if(typeof _4a4==="object"){var ret=[];for(var i in _4a4){ret.push(i+":"+name[i]);}_4a4=ret.join(";");}_4a4.replace(/(display:\s*[a-z]+\s*;?|visibility:\s*[a-z]+\s*;?)/gi,function(str,a){_4a3=_4a3+a;return "";});}this.wrapNode=dj.create("label",{"class":"EpForm "+this._attr.type.substr(0,1).toUpperCase()+this._attr.type.substr(1)+" "+dj.attr(this.domNode,"class"),"style":_4a3},this.domNode,"after");this.wrapNode.appendChild(this.domNode);var _4a5=(this._attr.form?dj.query("form[name="+this._attr.form+"]"):[this.domNode.form])[0];if(!_4a5){this.formWdgt=_4a0;}else{this.formWdgt=$$(dj.attr(_4a5,"widgetid"));if(!this.formWdgt){this.formWdgt=new epages.widget.Form({},_4a5);}}dj.removeAttr(this.domNode,"formmethod");dj.removeAttr(this.domNode,"formaction");dj.removeAttr(this.domNode,"max");dj.removeAttr(this.domNode,"min");dj.removeAttr(this.domNode,"pattern");dj.removeAttr(this.domNode,"required");dj.removeAttr(this.domNode,"step");this.formWdgt.addElem(this);this.addHandle("domNode.focus",this.domNode,"focus",function(){dj.addClass(this.domNode,"Active");dj.addClass(this.wrapNode,"Active");});this.addHandle("domNode.blur",this.domNode,"blur",function(){dj.removeClass(this.domNode,"Active");dj.removeClass(this.wrapNode,"Active");});if(this._attr.type.match(/^(checkbox|radio)$/)){this.attr("startupValue",this._attr.checked?this._attr.value:"");}else{this.attr("startupValue",this._attr.value);}if(this._attr.autofocus==true){this._domNode.focus();}this.domNode.setAttribute("id",this.id);},postAfterCreate:function(){this.attr("readonly",this._attr.readonly||false);this.attr("disabled",this._attr.disabled||false);},style:function(node,name,_4a6){if(!node.nodeName&&!this[node]){_4a6=name;name=node;node=this.domNode;}node=node.nodeName||this[node];if(typeof name=="object"){dj.style(node,name);return this;}else{if(_4a6==undefined){return dj.style(node,name);}else{dj.style(node,name,_4a6);return this;}}},attr:function(name,_4a7){if(typeof name=="object"){for(var i in name){this.attr(i,name[i]);}return this;}else{var _4a8="_attr"+name.substr(0,1).toUpperCase()+name.substr(1);if(_4a7===undefined){return this[_4a8]?this[_4a8]():this._attr[name];}else{return this._attr[name]=this[_4a8]?this[_4a8](_4a7):_4a7;}}},_attrMin:function(_4a9){return _4a9?epages.localize.str2number(_4a9):this._attr.min;},_attrMax:function(_4aa){return _4aa?epages.localize.str2number(_4aa):this._attr.max;},_attrStep:function(_4ab){return _4ab?epages.localize.str2number(_4ab):this._attr.step;},_attrType:function(_4ac){return this._attr.type;},_attrValue:function(_4ad){if(_4ad){this.domNode.setAttribute("value",_4ad);return _4ad;}else{return this._attr.value||"";}},_attrForm:function(_4ae){if(_4ae||_4ae==""){var _4af;if(_4ae==""){_4af=[this.domNodeForm];}else{_4af=dj.query("form[name="+_4ae+"]")||[];}if(_4af[0]){this.formWdgt.removeElem(this.id);this.formWdgt=$$(dj.attr(_4af[0],"widgetid"));if(!formWdgt){this.formWdgt=_4a0;this.formWdgt.addElem(this);}this._attr.form=_4ae;}return this._attr.form||"";}else{return this._attr.form;}},_attrDisabled:function(bool){if(bool===true){dj.attr(this.domNode,"disabled",true);dj.addClass(this.wrapNode,"Disabled");this._disconnectHandles();return bool;}else{if(bool===false){dj.removeAttr(this.domNode,"disabled");dj.removeClass(this.wrapNode,"Disabled");if(!this._attr.readonly){this._disconnectHandles();this._connectHandles();}return bool;}else{return this._attr.disabled||false;}}},_attrReadonly:function(bool){if(bool===true){dj.attr(this.domNode,"readonly",true);dj.addClass(this.wrapNode,"Readonly");this._disconnectHandles();return bool;}else{if(bool===false){dj.removeAttr(this.domNode,"readonly");dj.removeClass(this.wrapNode,"Readonly");if(!this.attr("disabled")){this._disconnectHandles();this._connectHandles();}return bool;}else{return this._attr.readonly||false;}}},addHandle:function(id,node,_4b0,fn){if(this._connects[id]){this.removeHandle(id);}this._handles[id]=[typeof node==="string"?this[node]:node,_4b0,fn];return this;},removeHandle:function(id){if(this._connects[id]){dj.disconnect(this._connects[id]);}return this;},connectHandle:function(id){if(this._connects[id]){this.removeHandle(id);}if(this._handles[id]){var _4b1=this._handles[id];this._connects[id]=dj.connect(_4b1[0],_4b1[1],this,_4b1[2]);}return this;},disconnectHandle:function(id){dj.disconnect(this._connects[id]);return this;},_connectHandles:function(){var _4b2=this._handles;for(var i in _4b2){this.connectHandle(i);}},_disconnectHandles:function(){var _4b3=this._handles;for(var i in _4b3){this.disconnectHandle(i);}},_replacePattern:function(){if(this._attr.pattern){this._attr.pattern=this._attr.pattern.replace(/(\[\:[a-z\-]+\:\])/,function(t,s){return epages.localize.getPattern(s.substr(2,s.length-4));});}},validate:function(){var _4b4=true;if(!this.attr("formnovalidate")){_4b4=this._validate();var maxL=Math.min(this.attr("maxlength")||epages.vars.MaxTextLength,epages.vars.MaxTextLength);_4b4=maxL&&maxL<(dj.attr(this.domNode,"value")+"").length?false:_4b4;if(_4b4){dj.removeClass(this.domNode,"DialogError");dj.removeClass(this.wrapNode,"DialogError");}else{dj.addClass(this.domNode,"DialogError");dj.addClass(this.wrapNode,"DialogError");}this.attr("valide",_4b4?true:false);this.formWdgt.change();}else{this.attr("valide",_4b4?true:false);}if(dj.attr(this.domNode,"value")!=this.attr("startupValue")){dj.addClass(this.domNode,"Changed");dj.addClass(this.wrapNode,"Changed");}else{dj.removeClass(this.domNode,"Changed");dj.removeClass(this.wrapNode,"Changed");}return _4b4;},_validate:function(){return true;},destroy:function(){this.inherited("destroy",arguments);this._disconnectHandles();this.formWdgt.removeElem(this.id);}});dj.declare("epages.widget.FormButton",[epages.widget.FormBase],{postCreate:function(){this.inherited("postCreate",arguments);this.postAfterCreate();}});dj.declare("epages.widget.FormFile",[epages.widget.FormBase],{buttonNode:null,_domNode:null,_handlesIndex:null,postCreate:function(){this.inherited("postCreate",arguments);this.buttonNode=dj.create("span",{"class":""},this.domNode,"after");this.buttonNode.innerHTML=this._translation.get(this._attr.multiple?"FileUploadMultiple":"FileUploadSingle");this.postAfterCreate();},_attrAccept:function(_4b5){if(_4b5){this.domNode.setAttribute("accept",_4b5);return _4b5;}else{return this._attr.accept||"";}},_attrMultiple:function(bool){if(bool===true){this.domNode.setAttribute("multiple",true);return bool;}else{if(bool===false){this.domNode.removeAttribute("multiple");return bool;}else{return this._attr.multiple||false;}}},_attrAccept:function(_4b6){if(_4b6){var _4b7=new epages.Mimetype();this._attr.accept=_4b6.replace(/([A-Za-z]+\/\*)/,dj.hitch(this,function(_4b8,_4b9){var _4ba=_4b7.mimesByGroup(_4b9);if(_4ba){return _4ba.join(",");}else{return "";}}));dj.attr(this.domNode,"accept",this._attr.accept);return this._attr.accept;}else{return this._attr.accept;}},_attrValue:function(_4bb){if(_4bb==""){this._disconnectHandles();var arr=[];for(var i=0,_4bc=this._handles.length;i<_4bc;i++){if(this._handles[i][0]==this.domNode){arr.push(i);}}this._domNode=this.domNode;if(epages.Browser.engine=="Gecko"){this.domNode.setAttribute("value","");}else{this.domNode=dj.place(this.domNode.cloneNode(),this._domNode,"replace");var node=dj.clone(this.domNode);}for(var i in this._handles){if(this._handles[i][0]==this._domNode){this._handles[i][0]=this.domNode;}}for(var i=0,_4bc=arr.length;i<_4bc;i++){this._handles[arr[i]][0]=this.domNode;}this._connectHandles();}else{return this._attr.value||"";}}});dj.declare("epages.widget.FormFileUploader",[epages.widget.FormFile],{_uploader:null,postCreate:function(){this.inherited("postCreate",arguments);this.addHandle("domNode.change.fileUploader",this.domNode,"change",this._change);this.addHandle("domNode.click.fileUploader",this.domNode,"click",this._click);this.attr({"sendaction":dj.attr(this.domNode,"sendaction"),"deleteaction":dj.attr(this.domNode,"deleteaction"),"finishaction":dj.attr(this.domNode,"finishaction")});this.formWdgt.removeElem(this.id);this.postAfterCreate();},_click:function(_4bd){if(!this._uploader){this._createUploader();this._uploader.hide();}else{_4bd.preventDefault();this._uploader.show();}},_change:function(){if(!this._uploader){this._createUploader();}this._uploader.show();this.attr("value","");this._uploader.externalInput(this._domNode);},_createUploader:function(){dj.require("epages.widget.Uploader");this._uploader=new epages.widget.Uploader({options:{id:this.attr("id"),multiple:this.attr("multiple"),accept:this.attr("accept")||"*/*",sendaction:this.attr("sendaction"),deleteaction:this.attr("deleteaction"),finishaction:this.attr("finishaction")}},dj.create("div"));}});dj.declare("epages.widget.FormSelect",[epages.widget.FormBase],{postCreate:function(){this.inherited("postCreate",arguments);this.addHandle("domNode.change.select",this.domNode,"change",this.validate);this.postAfterCreate();},_attrRequired:function(){this._attr.required=false;return false;}});dj.declare("epages.widget.FormText",[epages.widget.FormBase],{postCreate:function(){this.inherited("postCreate",arguments);this.addHandle("domNode.keyup.text",this.domNode,"keyup",this.validate);this.addHandle("domNode.blur.text",this.domNode,"blur",this.validate);if(this.domNode.getAttribute("emptyValue")){var _4be=this.domNode;var _4bf=dj.attr(_4be,"value");var _4c0=dj.attr(_4be,"emptyValue");if(!_4bf||_4bf==_4c0){dj.attr(_4be,"value",_4c0);dj.addClass(_4be,"EmptyValue");}dojo.connect(this.formWdgt.domNode,"submit",function(){_4be.value=_4be.value.replace(_4be.getAttribute("emptyValue"),"");dojo.removeClass(_4be,"EmptyValue");});this.addHandle("domNode.focus2.text",_4be,"focus",function(){_4be.value=_4be.value.replace(_4be.getAttribute("emptyValue"),"");dojo.removeClass(_4be,"EmptyValue");});this.addHandle("domNode.blur2.text",_4be,"blur",function(){if(_4be.value==""){dojo.addClass(_4be,"EmptyValue");_4be.value=_4be.getAttribute("emptyValue");}});}if(this._attr.type.match(/^(email|tel|url)$/)){this._attr.pattern=epages.localize.getPattern(this._attr.type);}if(dj.hasClass(this.domNode,"Mandatory")&&!dj.attr(this.domNode,"value")){dj.addClass(this.domNode,"Unfilled");}this.postAfterCreate();},_validate:function(){var _4c1=dj.attr(this.domNode,"value");var _4c2=false;if(_4c1==""&&!this._attr.required){_4c2=true;}if(_4c1==""&&this._attr.required){_4c2=false;}else{if(this._attr.pattern&&_4c1.match(new RegExp("^"+this._attr.pattern+"$"))){_4c2=true;}else{if(!this._attr.pattern){_4c2=true;}}}if(dj.hasClass(this.domNode,"Mandatory")&&!dj.attr(this.domNode,"value")){dj.addClass(this.domNode,"Unfilled");}else{dj.removeClass(this.domNode,"Unfilled");}return _4c2;}});dj.declare("epages.widget.FormCheck",[epages.widget.FormBase],{postCreate:function(){this.inherited("postCreate",arguments);this.addHandle("domNode.change.check",this.domNode,"change",this._change);if(epages.Browser.engine=="MSIE"){this.addHandle("domNode.click.check",this.domNode,"click",this._ieChangeFix);}if(!this.domNode.value&&!this.domNode.defaultValue){this.domNode.defaultValue="on";}this.attr("checked",this._attr.checked?true:false);this.postAfterCreate();},_attrChecked:function(bool){if(bool===true){if(this._attr.type=="radio"){var _4c3=this._getRadios();for(var i=0,l=_4c3.length;i<l;i++){_4c3[i].attr("checked",false);dojo.removeClass(_4c3[i].domNode,"DialogError");dojo.removeClass(_4c3[i].wrapNode,"DialogError");}}dj.attr(this.domNode,"checked",true);dj.addClass(this.wrapNode,"Checked");return bool;}else{if(bool===false){dj.attr(this.domNode,"checked",false);dj.removeClass(this.wrapNode,"Checked");return bool;}else{return this._attr.checked;}}},_ieChangeFix:function(){this.domNode.blur();},_change:function(){this.attr("checked",dj.attr(this.domNode,"checked")?true:false);this.validate();},_getRadios:function(){var _4c4=dj.attr(this.domNode,"name");var _4c5=dj.attr(this.formWdgt.domNode,"name");var _4c6;var _4c7;if(this.formWdgt===_4a0){_4c6=dj.query("input[type=radio][name="+_4c4+"]",this.domNode.ownerDocument);_4c7=[];}else{_4c6=dj.query("input[type=radio][name="+_4c4+"]",this.formWdgt.domNode);_4c7=dj.query("input[type=radio][name="+_4c4+"][form="+_4c5+"]",document.body);}var _4c8=_4c6.concat(_4c7);var _4c9=this.attr("required");var ret=[];for(var i=0,l=_4c8.length;i<l;i++){var wdgt=$$(dj.attr(_4c8[i],"widgetid"));if(wdgt){ret.push(wdgt);_4c9=wdgt.attr("required")||_4c9;wdgt.attr("valide",true);}}this.attr("required",_4c9);return ret;},_validate:function(){var _4ca=dj.attr(this.domNode,"value");var _4cb=false;if(this._attr.type=="checkbox"&&((dj.attr(this.domNode,"checked")&&this._attr.required)||!this._attr.required)){_4cb=true;}if(this._attr.type=="radio"){var _4cc=this._getRadios();}if(this._attr.type=="radio"&&((this.attr("checked")&&this.attr("required"))||!this.attr("required"))){_4cb=true;}else{if(this._attr.type=="radio"){for(var i=0,l=_4cc.length;i<l;i++){_4cb=_4cc[i].attr("checked")||_4cb;}}}return _4cb;}});dj.declare("epages.widget.FormNumber",[epages.widget.FormBase],{stepUpNode:null,stepDownNode:null,_stepCount:null,_stepSpeed:null,_stepInterval:null,postCreate:function(){this.inherited("postCreate",arguments);this._replacePattern();this.stepUpNode=dj.create("a",{"href":"javascript:;","class":"StepUp"});this.stepDownNode=dj.create("a",{"href":"javascript:;","class":"StepDown"});this.wrapNode.appendChild(this.stepUpNode);this.wrapNode.appendChild(this.stepDownNode);this.addHandle("domNode.keyup.number",this.domNode,"keyup",this.validate);this.addHandle("domNode.blur.number",this.domNode,"blur",this.validate);this.addHandle("stepUpNode.mousedown.number",this.stepUpNode,"mousedown",function(_4cd){_4cd.preventDefault();this._stepStart(+1);});this.addHandle("stepUpNode.mouseup.number",this.stepUpNode,"mouseup",this._stepStop);this.addHandle("stepUpNode.mouseout.number",this.stepUpNode,"mouseout",this._stepStop);this.addHandle("stepDownNode.mousedown.number",this.stepDownNode,"mousedown",function(_4ce){_4ce.preventDefault();this._stepStart(-1);});this.addHandle("stepDownNode.mouseup.number",this.stepDownNode,"mouseup",this._stepStop);this.addHandle("stepDownNode.mouseout.number",this.stepDownNode,"mouseout",this._stepStop);this._attr.pattern=this._attr.pattern||epages.localize.getPattern("number");this.postAfterCreate();},_stepAction:function(inc){this._stepCount++;this._stepSpeedHandle(inc);var _4cf=dj.attr(this.domNode,"value");var ret;var step=inc*(this._attr.step||1);var _4d0=this._attr.min;var _4d1=this._attr.max;ret=epages.localize.str2number(_4cf);ret=ret!==null?ret:0;var i=(ret+"").indexOf(".");var l=i>=0?(ret+"").substr(i+1).length:0;ret=ret+step;ret=(_4d0&&_4d0>ret.toFixed(l))?_4d0:(_4d1&&_4d1<ret.toFixed(l))?_4d1:ret.toFixed(l);ret=epages.localize.number2str(ret);dj.attr(this.domNode,"value",ret);},_stepStart:function(inc){this._stepCount=0;this._stepSpeed=250;this._stepAction(inc);this._stepInterval=window.setInterval(dj.hitch(this,function(){this._stepAction(inc);}),this._stepSpeed);},_stepStop:function(){window.clearInterval(this._stepInterval);epages.event.fire(this.domNode,"blur");},_stepSpeedHandle:function(inc){if(dj.indexOf([10,30,50],this._stepCount)>=0){this._stepSpeed=this._stepSpeed/2;window.clearInterval(this._stepInterval);this._stepInterval=window.setInterval(dj.hitch(this,function(){this._stepAction(inc);}),this._stepSpeed);}},_validate:function(){var _4d2=dj.attr(this.domNode,"value");var _4d3=false;if(_4d2==""&&!this._attr.required){_4d3=true;}else{if(_4d2.match(new RegExp("^"+this._attr.pattern+"$"))){var val=epages.localize.str2number(_4d2);var _4d4=this._attr.min;var _4d5=this._attr.max;_4d3=(_4d4&&_4d4>val)?false:(_4d5&&_4d5<val)?false:true;}}return _4d3;}});dj.declare("epages.widget.FormDate",[epages.widget.FormNumber],{postCreate:function(){this.inherited("postCreate",arguments);this._attr.pattern=epages.localize.getPattern(this._attr.type);},_stepAction:function(inc){this._stepCount++;this._stepSpeedHandle(inc);var _4d6=dj.attr(this.domNode,"value");var ret;var _4d7=this._attr.step||1;var _4d8=this._attr.min;var _4d9=this._attr.max;var _4da=epages.localize.date2obj(_4d6,this._attr.type)||new Date();switch(this._attr.type){case "datetime":_4da.setHours(_4da.getHours()+(inc*_4d7));break;case "month":_4da.setMonth(_4da.getMonth()+(inc*_4d7));break;case "time":_4da.setHours(_4da.getHours()+(inc*_4d7));break;case "week":_4da.setDate(_4da.getDate()+(inc*_4d7*7));break;case "date":default:_4da.setDate(_4da.getDate()+(inc*_4d7));break;}var _4db=_4da.getTime()/1000;_4db=(_4d8&&_4d8>_4db)?_4d8:(_4d9&&_4d9<_4db)?_4d9:_4db;_4da.setTime(_4db*1000);ret=epages.localize.obj2date(_4da,this._attr.type);dj.attr(this.domNode,"value",ret);},_validate:function(){var _4dc=dj.attr(this.domNode,"value");var _4dd=false;if(_4dc==""&&!this._attr.required){_4dd=true;}else{if(_4dc.match(new RegExp("^"+this._attr.pattern+"$"))){var _4de=epages.localize.date2obj(_4dc,this._attr.type).getTime()/1000;var _4df=this._attr.min;var _4e0=this._attr.max;_4dd=(_4df&&_4df>_4de)?false:(_4e0&&_4e0<_4de)?false:true;}}return _4dd;}});})(dojo);}if(!dojo._hasResource["epages.widget.FormElement"]){dojo._hasResource["epages.widget.FormElement"]=true;dojo.provide("epages.widget.FormElement");(function(dj){epages.changeInputType=function(node,type){var _4e1=dj.clone(node);dj.attr(_4e1,"type",type);dj.attr(_4e1,"value",node.value);dj.place(_4e1,node,"after");_4e1.parentNode.removeChild(node);return _4e1;};epages.widget.FormElement=function(_4e2,_4e3){this.destroy();var _4e4=_4e3.nodeName.toLowerCase(),_4e5,_4e6;if(_4e4=="select"){_4e6=new epages.widget.FormSelect(_4e2,_4e3);}else{if(_4e4=="textarea"){_4e6=new epages.widget.FormText(_4e2,_4e3);}else{if(dojo.hasClass(_4e3,"Checkbox")){_4e3=_4e3.type!="checkbox"?epages.changeInputType(_4e3,"checkbox"):_4e3;_4e6=new epages.widget.FormCheck(_4e2,_4e3);}else{if(dojo.hasClass(_4e3,"Radio")){_4e3=_4e3.type!="radio"?epages.changeInputType(_4e3,"radio"):_4e3;_4e6=new epages.widget.FormCheck(_4e2,_4e3);}}_4e5=_4e3.getAttribute("type");if(/^(file)$/i.test(_4e5)){_4e6=new epages.widget.FormFile(_4e2,_4e3);}else{if(/^(text|password)$/i.test(_4e5)){_4e6=new epages.widget.FormText(_4e2,_4e3);}}}}if(_4e6){_4e6.elementNode=_4e6.domNode;_4e6.setValue=function(val){return this.attr("value",val);};_4e6.setStartUpValue=function(val){this.attr("startupValue",val);this.validate();return this;};_4e6.getValue=function(){return this.attr("value");};_4e6.isChecked=function(){return this.attr("checked");};_4e6.setChecked=function(val){return this.attr("checked",val);};return _4e6;}};epages.widget.FormElement.prototype=new dijit._Widget();})(dojo);}if(!dojo._hasResource["epages.template"]){dojo._hasResource["epages.template"]=true;dojo.provide("epages.template");$TMPL=function(_4e7,vars,_4e8,_4e9){if(_4e8===undefined){_4e8=true;}if(_4e9===undefined){_4e9=true;}return new epages.Template({template:_4e7,vars:vars,encodeVars:_4e8,enableRegExVars:_4e9});};epages.Template=function(_4ea){this.setOptions(_4ea);if(this.options.template===undefined&&this.options.templateDom!=undefined){if(typeof this.options.templateDom!="object"){this.options.templateDom=$(this.options.templateDom);}this.options.template=$E(this.options.templateDom).firstComment();}};epages.Template.prototype={options:undefined,setOptions:function(_4eb){this.options={encodeVars:true,enableRegExVars:false,templateDom:undefined,template:undefined,vars:undefined,addTemplate:true};dojo.mixin(this.options,_4eb);},setTemplate:function(_4ec){this.options.template=_4ec;},encodeXml:function(_4ed){if(_4ed!==undefined){if(typeof _4ed=="number"){_4ed=_4ed.toString();}_4ed=_4ed.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/>/g,"&gt;").replace(/</g,"&lt;");}return _4ed;},maskRegExVars:function(_4ee){if(_4ee!==undefined){if(typeof _4ee=="number"){_4ee=_4ee.toString();}if(typeof _4ee=="string"){_4ee=_4ee.replace(/\$/g,"\\$");}}return _4ee;},unmaskRegExVars:function(_4ef){if(_4ef!==undefined){if(typeof _4ef=="number"){_4ef=_4ef.toString();}if(typeof _4ef=="string"){_4ef=_4ef.replace(/\\\$/g,"$");}}return _4ef;},processHash:function(vars){if(vars.each===undefined){vars=$H(vars);}var _4f0=this.options.template;if(_4f0===undefined){console.warn("epages.Template: template is empty");return "";}var me=this;var _4f1=function(pair){var _4f2=pair.value;var _4f3=me.options.encodeVars?me.encodeXml(_4f2):_4f2;_4f3=me.options.enableRegExVars?_4f3:me.maskRegExVars(_4f3);var _4f4=new RegExp("\\(%"+pair.key+"%\\)","g");_4f0=_4f0.replace(_4f4,_4f3);_4f0=me.options.enableRegExVars?_4f0:me.unmaskRegExVars(_4f0);};vars.each(_4f1);return _4f0;},processLoop:function(loop){var _4f5="";var me=this;loop.each(function(el){_4f5+=me.processHash(el);});return _4f5;},generateOutput:function(){return this.processHash(this.options.vars);},insertTemplate:function(_4f6){if(!this.options.addTemplate){return;}var _4f7=document.createElement("COMMENT");_4f7.data=this.options.template;if(_4f6.firstChild===undefined){_4f6.insertChild(_4f7);}else{_4f6.insertBefore(_4f7,_4f6.firstChild);}return;},insertLoop:function(loop,_4f8){if(_4f8===undefined){_4f8=this.options.templateDom;}if(typeof this.options.targetDom!="object"){_4f8=$(_4f8);}_4f8.innerHTML=this.processLoop(loop);this.insertTemplate(_4f8);},insert:function(_4f9){if(_4f9===undefined){_4f9=this.options.templateDom;}if(typeof this.options.targetDom!="object"){_4f9=$(_4f9);}_4f9.innerHTML=this.generateOutput();this.processTemplate(_4f9);}};}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _4fa=0,d=dojo;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _4fb=cont.length,i=0;i<cont.length;i=_4fb==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_4fc,node){dojo.mixin(this,_4fc||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_4fa++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_4fd){if(undefined!==cont){this.content=cont;}if(_4fd){this._mixin(_4fd);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _4fe=this.onContentError(e);try{node.innerHTML=_4fe;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _4ff=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_4ff){cont=_4ff[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_500){var _501={},key;for(key in _500){if(key in _501){continue;}this[key]=_500[key];}},_parse:function(){var _502=this.node;try{this.parseResults=dojo.parser.parse(_502,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_503){var _504=this["on"+type+"Error"].call(this,err);if(_503){console.error(_503,err);}else{if(_504){dojo.html._setNodeContent(this.node,_504,true);}}}});dojo.html.set=function(node,cont,_505){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_505){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_505,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,isLayoutContainer:true,onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),postMixInProperties:function(){this.inherited(arguments);var _506=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_506);this.errorMessage=dojo.string.substitute(this.errorMessage,_506);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}var _507=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_507&&_507.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;if(this.isLoaded){dojo.forEach(this.getChildren(),function(_508){_508.startup();});}if(this._isShown()||this.preload){this._onShow();}this.inherited(arguments);},_checkIfSingleChild:function(){var _509=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_50a=_509.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_50b=dojo.filter(_50a.map(dijit.byNode),function(_50c){return _50c&&_50c.domNode&&_50c.resize;});if(_509.length==_50a.length&&_50b.length==1){this._singleChild=_50b[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.href=href;if(this._created&&(this.preload||this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_50d){if(this._beingDestroyed){return;}this.inherited(arguments);},resize:function(_50e,_50f){if(!this._wasShown){this._onShow();}this._resizeCalled=true;if(_50e){dojo.marginBox(this.domNode,_50e);}var cn=this.containerNode;if(cn===this.domNode){var mb=_50f||{};dojo.mixin(mb,_50e||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(cn),mb);}this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=dojo.contentBox(cn);}this._layoutChildren();},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}}},_onShow:function(){if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){this.refresh();}}else{if(!this._childOfLayoutWidget&&this._needLayout){this._layoutChildren();}}this.inherited(arguments);this._wasShown=true;},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _510={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_510,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_510));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoadDeferred.callback(data);this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _511=this._contentSetter;dojo.forEach(this.getChildren(),function(_512){if(_512.destroyRecursive){_512.destroyRecursive();}});if(_511){dojo.forEach(_511.parseResults,function(_513){if(_513.destroyRecursive&&_513.domNode&&_513.domNode.parentNode==dojo.body()){_513.destroyRecursive();}});delete _511.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_514){this.destroyDescendants();var _515=this._contentSetter;if(!(_515&&_515 instanceof dojo.html._ContentSetter)){_515=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _516=this.onContentError(e);try{this.containerNode.innerHTML=_516;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _517=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_515,_517);_515.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_514){dojo.forEach(this.getChildren(),function(_518){if(!this.parseOnLoad||_518.getParent){_518.startup();}},this);this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_519){this.onLoadDeferred.errback(err);var _51a=this["on"+type+"Error"].call(this,err);if(_519){console.error(_519,err);}else{if(_51a){this._setContent(_51a,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_51b){if(_51b.resize){_51b.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_51c){},onDownloadError:function(_51d){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dojox.html._base"]){dojo._hasResource["dojox.html._base"]=true;dojo.provide("dojox.html._base");(function(){if(dojo.isIE){var _51e=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _51f=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _520=dojox.html._adjustCssPaths=function(_521,_522){if(!_522||!_521){return;}if(_51e){_522=_522.replace(_51e,function(_523,pre,_524,url,post){return pre+(new dojo._Url(_521,"./"+url).toString())+post;});}return _522.replace(_51f,function(_525,_526,_527,_528,_529,_52a){if(_527){return "@import \""+(new dojo._Url(_521,"./"+_527).toString())+"\""+_52a;}else{return "url("+(new dojo._Url(_521,"./"+_529).toString())+")"+_52a;}});};var _52b=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _52c=dojox.html._adjustHtmlPaths=function(_52d,cont){var url=_52d||"./";return cont.replace(_52b,function(tag,_52e,name,_52f,_530,_531,_532,end){return _52e+(name?(name+"="+_52f+(new dojo._Url(url,_530).toString())+_52f):("style="+_531+_520(url,_532)+_531))+end;});};var _533=dojox.html._snarfStyles=function(_534,cont,_535){_535.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_536,_537,_538,_539,_53a,href){var i,attr=(_537||_539||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_538){i=_535.push(_534?_520(_534,_538):_538);}else{i=_535.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _53b={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_53b[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_535.attributes[i-1]=_53b;}return "";});};var _53c=dojox.html._snarfScripts=function(cont,_53d){_53d.code="";cont=cont.replace(/<[!][-][-](.|\s){5,}?[-][-]>/g,function(_53e){return _53e.replace(/<(\/?)script\b([^>]|\s)*\>/ig,"&lt;$1Script$2&gt;");});function _53f(src){if(_53d.downloadRemote){src=src.replace(/&([a-z0-9#]+);/g,function(m,name){switch(name){case "amp":return "&";case "gt":return ">";case "lt":return "<";default:return name.charAt(0)=="#"?String.fromCharCode(name.substring(1)):"&"+name+";";}});dojo.xhrGet({url:src,sync:true,load:function(code){_53d.code+=code+";";},error:_53d.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_540,_541,src,code){if(src){_53f(src);}else{_53d.code+=code;}return "";});};var _542=dojox.html.evalInGlobal=function(code,_543){_543=_543||dojo.doc.body;var n=_543.ownerDocument.createElement("script");n.type="text/javascript";_543.appendChild(n);n.text=code;};dojo.declare("dojox.html._ContentSetter",[dojo.html._ContentSetter],{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_544){this._styleNodes=[];var st,att,_545,doc=this.node.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_544.length;i<e;i++){_545=_544[i];att=_544.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);head.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_545;}else{st.appendChild(doc.createTextNode(_545));}}},empty:function(){this.inherited("empty",arguments);this._styles=[];},onBegin:function(){this.inherited("onBegin",arguments);var cont=this.content,node=this.node;var _546=this._styles;if(dojo.isString(cont)){if(this.adjustPaths&&this.referencePath){cont=_52c(this.referencePath,cont);}if(this.renderStyles||this.cleanContent){cont=_533(this.referencePath,cont,_546);}if(this.executeScripts){var _547=this;var _548={downloadRemote:true,errBack:function(e){_547._onError.call(_547,"Exec","Error downloading remote script in \""+_547.id+"\"",e);}};cont=_53c(cont,_548);this._code=_548.code;}}this.content=cont;},onEnd:function(){var code=this._code,_549=this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}if(this.renderStyles&&_549&&_549.length){this._renderStyles(_549);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_542(code,this.node);}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}this.inherited("onEnd",arguments);},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}delete this._styleNodes;dojo.mixin(this,dojo.getObject(this.declaredClass).prototype);}});dojox.html.set=function(node,cont,_54a){if(!_54a){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojox.html._ContentSetter(dojo.mixin(_54a,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;},onExecError:function(e){},_setContent:function(cont){var _54b=this._contentSetter;if(!(_54b&&_54b instanceof dojox.html._ContentSetter)){_54b=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _54c=this.onContentError(e);try{this.containerNode.innerHTML=_54c;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};this.inherited("_setContent",arguments);}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n"),postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_54d,_54e){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_54e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_54e.charAt(0)=="T"?"Below":"Above");dojo.addClass(this.domNode,c);this._currentOrientClass=c;},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _54f=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(dojo.hitch(this,"onCancel"),0);dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_54f){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_54f){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _550=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_550);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{display:"none",position:"absolute"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){this._relativePosition=dojo.position(e.node);}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:dojo.hitch(this,function(){var _551=dijit._underlay;if(!_551){_551=dijit._underlay=new dijit.DialogUnderlay(this.underlayAttrs);}else{_551.attr(this.underlayAttrs);}var _552=948+dijit._dialogStack.length*2;dojo.style(dijit._underlay.domNode,"zIndex",_552);dojo.style(this.domNode,"zIndex",_552+1);_551.show();}),onEnd:dojo.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}})});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:dojo.hitch(this,function(){node.style.display="none";var ds=dijit._dialogStack;if(ds.length==0){dijit._underlay.hide();}else{dojo.style(dijit._underlay.domNode,"zIndex",948+ds.length*2);dijit._underlay.attr(ds[ds.length-1].underlayAttrs);}if(this.refocus){var _553=this._savedFocus;if(ds.length>0){var pd=ds[ds.length-1];if(!dojo.isDescendant(_553.node,pd.domNode)){pd._getFocusItems(pd.domNode);_553=pd._firstFocusItem;}}dijit.focus(_553);}})});},uninitialize:function(){var _554=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_554=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_554=true;this._fadeOut.stop();}if(this.open||_554){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}this.inherited(arguments);},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{dojo.style(this.containerNode,{width:"auto",height:"auto"});}var mb=dojo.marginBox(this.domNode);var _555=dijit.getViewport();if(mb.w>=_555.w||mb.h>=_555.h){var w=Math.min(mb.w,Math.floor(_555.w*0.75)),h=Math.min(mb.h,Math.floor(_555.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode,_556=dijit.getViewport(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_556.l+(p?p.x:(_556.w-bb.w)/2)),t=Math.floor(_556.t+(p?p.y:(_556.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){var ds=dijit._dialogStack;if(ds[ds.length-1]!=this){return;}if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _557=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_557){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_557){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _558=dijit.getViewport();if(!this._oldViewport||_558.h!=this._oldViewport.h||_558.w!=this._oldViewport.w){this.layout();this._oldViewport=_558;}}));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this.open=true;this._onShow();this._size();this._position();dijit._dialogStack.push(this);this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},hide:function(){var ds=dijit._dialogStack;if(!this._alreadyInitialized||this!=ds[ds.length-1]){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}ds.pop();this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this.open=false;this.onHide();},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._underlay.layout();}this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);},_onCloseEnter:function(){dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._dialogStack=[];}if(!dojo._hasResource["epages.io.text"]){dojo._hasResource["epages.io.text"]=true;dojo.provide("epages.io.text");epages.io.Text=function(url){if(url===undefined){return;}return this.load(url);};epages.io.Text.prototype={load:function(url){var _559={};dojo.xhrGet({url:url,sync:true,load:function(data,evt){_559.text=data;},handleAs:"text"});return _559.text;},test:function(_55a){_55a.setPlanned(2);_55a.ok(1,"loaded");var text=this.load("htmlTest.inc");_55a.ok(text=="Header loaded successfully.","load header");return _55a.planned==_55a.correct?true:false;}};}if(!dojo._hasResource["epages.widget.Button"]){dojo._hasResource["epages.widget.Button"]=true;dojo.provide("epages.widget.Button");epages.widget.ButtonChangeForms=[];dojo.declare("epages.widget.Button",[dijit._Widget],{name:"",button:"","class":"",onclick:"",value:"",disabled:"",active:"",iconSrc:"",submit:"",triggerClass:"",disableOnClick:"",buttonContainerNode:undefined,_returnFalse:"",_removeEventList:undefined,_onClickEvents:undefined,postCreate:function(){this.inherited("postCreate",arguments);var el=this.domNode;var type;var _55b="";if(dojo.hasClass(el,"RunButton")){type="batch";}else{if(dojo.hasClass(el,"SaveButton")){type="submit";}else{if(dojo.hasClass(el,"DeleteButton")){type="confirm";}else{if(dojo.hasClass(el,"CancelButton")){type="confirm";}else{if(dojo.hasClass(el,"ExtraButton")){type="execute";_55b="ExtraButtonTrigger";}else{if(dojo.hasClass(el,"SearchButton")){type="execute";}else{type="confirm";}}}}}}this.button=type;var _55c="";if(el.type=="image"||el.type=="submit"){_55c="true";}var _55d="";if(el.disabled){_55d="true";}if(el.getAttribute("triggerClass")!=null&&el.getAttribute("triggerClass")!=""){_55b=el.getAttribute("triggerClass");}this.triggerClass=_55b;this.disabled=_55d;this.submit=_55c;var _55e=document.createElement("span");_55e.setAttribute((document.all?"className":"class"),this["class"]);if(!dojo.hasClass(_55e,"Button")){dojo.addClass(_55e,"Button");}dojo.addClass(_55e,"EnableHover");this.domNode.parentNode.insertBefore(_55e,this.domNode);this.domNode.setAttribute((document.all?"className":"class"),"ButtonContainer");_55e.appendChild(this.domNode);this.submit=this.submit!=""||this.button=="submit";if(this.disableOnClick==""&&(this.domNode.type=="submit"||this.domNode.href)){this.disableOnClick=true;}this.disableOnClick=epages.string.toBoolean(this.disableOnClick);this.disabled=this.disabled!=""||this.button=="submit";if(this.disabled){this.domNode.disabled=true;this._returnFalse=dojo.connect(this.domNode,"click",this,function(){return false;});dojo.addClass(_55e,"Disabled");}if(this.active!=""){dojo.addClass(_55e,"Active");}if(this.iconSrc){var _55f=document.createElement("span");if(this.onclick){_55f.onclick=this.onclick;}if(this.onmousedown){_55f.onmousedown=this.onmousedown;}if(this.onmouseup){_55f.onmouseup=this.onmouseup;}if(this.onmouseover){_55f.onmouseover=this.onmouseover;}_55f.form=this.domNode.form;_55f.className="ButtonIconContainer";_55f.innerHTML="<i class='Sprite "+this.iconSrc+"'></i>";_55e.insertBefore(_55f,this.domNode);dojo.addClass(this.domNode,"ButtonIconPadding");}this.form=this.domNode.form;this._removeEventList=[];this._onClickEvents=[];if(this.button=="execute"||this.button=="submit"||this.button=="batch"){var _560=this.form.elements;if(this.triggerClass!=""){_560=dojo.filter(_560,function(el){return dojo.hasClass(el,this.triggerClass);},this);}else{_560=dojo.filter(_560,function(el){return (!dojo.hasClass(el,"NoButtonTrigger")&&!dojo.attr(el,"formnovalidate"))?true:false;});}if(this.button=="batch"){_560=dojo.filter(_560,function(el){return dojo.hasClass(el,"RunButtonTrigger");});}else{_560=dojo.filter(_560,function(el){return !dojo.hasClass(el,"RunButtonTrigger");});}this.registerInputs(_560);}this.buttonContainerNode=_55e;if(!this.disabled){this._registerEvents();}},registerInput:function(el){var it=el.type;if(it=="hidden"||it=="text"||it=="password"||it=="file"||it=="textarea"){this._removeEventList.push(dojo.connect(el,"keydown",this,"_OnKeyPressInput"));this._removeEventList.push(dojo.connect(el,"change",this,"_OnKeyPressInput"));this._removeEventList.push(dojo.connect(el,"paste",this,"_OnKeyPressInput"));this._removeEventList.push(dojo.connect(el,"blur",this,"_OnKeyPressInput"));}else{if(it=="checkbox"||it=="radio"){this._removeEventList.push(dojo.connect(el,"click",this,"_OnKeyPressInput"));this._removeEventList.push(dojo.connect(el,"keypress",this,"_OnKeyPressInput"));this._removeEventList.push(dojo.connect(el,"change",this,"_OnKeyPressInput"));}else{if(el.tagName=="SELECT"){this._removeEventList.push(dojo.connect(el,"change",this,"_OnKeyPressInput"));}}}},registerInputs:function(_561){dojo.forEach(_561,function(el){this.registerInput(el);},this);},_OnKeyPressInput:function(evt){if(!this.domNode.parentNode.className.match("Active")){var t=evt.target;if(t.className.match("DialogError")||(evt.type=="blur"&&(t.type=="text"||t.type=="textarea")&&t.defaultValue===t.value)){return;}if(epages.vars.activeButton){dojo.removeClass(epages.vars.activeButton,"Active");}epages.vars.activeButton=this.domNode.parentNode;dojo.addClass(this.domNode.parentNode,"Active");dojo.removeClass(this.domNode.parentNode,"Disabled");if(this.disabled){this.enable();}if(this.button=="submit"){if(!document.title.match(/\*$/)){document.title+="*";}epages.widget.ButtonChangeForms.push(this.form);}}},_OnClick:function(evt){if(!this.disabled&&this.disableOnClick){dojo.publish("interactionRestrictor/suspend",["interactionRestrictorFor_"+this.id,this.domNode.parentNode,true]);setTimeout(dojo.hitch(this,function(){this.disable();}),20);setTimeout(dojo.hitch(this,function(){this.enable();dojo.removeClass(this.domNode.parentNode,"Active");dojo.publish("interactionRestrictor/permit",["interactionRestrictorFor_"+this.id]);}),2000);}if(this.button=="confirm"||this.button=="submit"){epages.widget.ButtonChangeForms=[];}else{if(this.button!="batch"){var _562=this.form;epages.widget.ButtonChangeForms=dojo.filter(epages.widget.ButtonChangeForms,function(el){return el!=_562;});}}},_OnMouseDown:function(){dojo.addClass(this.domNode.parentNode,"ButtonClicked");dojo.addClass(this.domNode,"ButtonContainerClicked");},_OnMouseUp:function(){dojo.removeClass(this.domNode.parentNode,"ButtonClicked");dojo.removeClass(this.domNode,"ButtonContainerClicked");},_registerEvents:function(){this._onClickEvents.push(dojo.connect(this.domNode,"click",this,"_OnClick"));this._onClickEvents.push(dojo.connect(this.domNode,"mousedown",this,"_OnMouseDown"));this._onClickEvents.push(dojo.connect(this.domNode,"mouseup",this,"_OnMouseUp"));this._onClickEvents.push(dojo.connect(this.domNode,"mouseout",this,"_OnMouseUp"));},enable:function(){this.disabled=false;this.domNode.disabled=false;dojo.disconnect(this._returnFalse);dojo.addClass(this.domNode.parentNode,"Active");dojo.removeClass(this.domNode.parentNode,"Disabled");if(this._onClickEvents.length==0){this._registerEvents();}},disable:function(){this.disabled=true;this.domNode.disabled=true;dojo.disconnect(this._returnFalse);this._returnFalse=dojo.connect(this.domNode,"click",this,function(){return false;});dojo.removeClass(this.domNode.parentNode,"Active");dojo.addClass(this.domNode.parentNode,"Disabled");dojo.forEach(this._onClickEvents,dojo.disconnect);this._onClickEvents=[];},disableIfEmpty:function(_563){if(_563==""){this.disable();}else{this.enable();}},hide:function(){dojo.addClass(this.buttonContainerNode,"HideElement");},show:function(){dojo.removeClass(this.buttonContainerNode,"HideElement");}});epages.onUnloadFunctions.push(function(){return epages.widget.ButtonChangeForms.length>0;});epages.widget.TransformButtons=function(_564){dojo.forEach(dojo.query(".Button",_564),function(el){if(el.tagName!="INPUT"||el.type=="hidden"){return;}var type;var _565="";if(dojo.hasClass(el,"RunButton")){type="batch";}else{if(dojo.hasClass(el,"SaveButton")){type="submit";}else{if(dojo.hasClass(el,"DeleteButton")){type="confirm";}else{if(dojo.hasClass(el,"CancelButton")){type="confirm";}else{if(dojo.hasClass(el,"ExtraButton")){type="execute";_565="ExtraButtonTrigger";}else{if(dojo.hasClass(el,"SearchButton")){type="execute";}else{type="confirm";}}}}}}var _566="";if(el.type=="image"||el.type=="submit"){_566="true";}var _567="";if(el.disabled){_567="true";}if(el.getAttribute("triggerClass")!=null&&el.getAttribute("triggerClass")!=""){_565=el.getAttribute("triggerClass");}new epages.widget.Button({button:type,name:el.name,value:el.value,"class":el.className,onclick:el.onclick,iconSrc:el.getAttribute("iconsrc"),submit:_566,disabled:_567,triggerClass:_565},el);});};dojo.addOnLoad(function(){epages.widget.TransformButtons(dojo.body());});}if(!dojo._hasResource["epages.widget.Modaldialog"]){dojo._hasResource["epages.widget.Modaldialog"]=true;dojo.provide("epages.widget.Modaldialog");dojo["require"]("dijit.Dialog");dojo.declare("epages.widget.Modaldialog",[dijit.Dialog,epages.widget.LocalizedWidget],{buttons:undefined,options:undefined,duration:epages.Browser.engine=="MSIE"?10:150,title:"","class":"",_contentWidget:null,_contentPane:null,_events:null,_tabEvents:null,_tabs:undefined,_currentTab:undefined,_iframe:null,_doc:null,translationName:dojo.moduleUrl("epages.widget","templates/translation"),imagePath:epages.themeUrl("images"),buttonTemplateString:"<span class=\"Button EnableHover (%Class%)\" (%buttonId%)><span class=\"ButtonContainer\">(%Label%)</span></span>",tabTemplateString:"<div class=\"Tab\"><div>(%Label%)</div></div>",innerTemplatePath:null,widgetsInTemplate:true,templateString:dojo.cache("epages.widget","templates/Modaldialog.html","<div class=\"dijitDialog ModalDialog\" style=\"display:none\">\n  <div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\" tabindex=\"0\" waiRole=\"dialog\">\n    <span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\">${title}</span>\n    <span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon EnableHover\" dojoAttachEvent=\"onclick: onCancel\">\n      <span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\n    </span>\n  </div>\n  <div dojoAttachPoint=\"tabBarNode\" class=\"TabBar\" style=\"display:none\"></div>\n  <div dojoAttachPoint=\"layerContentNode\" class=\"LayerContent Border White\">\n    <div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent ${options.containerClass}\"><!-- //innerTemplate// --></div>\n  </div>\n  <div dojoAttachPoint=\"innerButtonBarNode\" class=\"LayerInnerButtonBar\" style=\"display:none\"></div>\n  <div dojoAttachPoint=\"buttonBarNode\" class=\"LayerButtonBar\" style=\"display:none\"></div>\n</div>\n"),clearFloatNode:undefined,buildRendering:function(){if(this.innerTemplatePath!=null){this.templateString=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,true);var _568=dijit._Templated.getCachedTemplate(this.innerTemplatePath,null,true);this.templateString=this.templateString.replace("<!-- //innerTemplate// -->",_568);this.templatePath="";}this.inherited("buildRendering",arguments);},postMixInProperties:function(){var _569={containerClass:""};dojo.mixin(_569,this.options);this.options=_569;dijit.Dialog.prototype.postMixInProperties.apply(this,arguments);this.inherited("postMixInProperties",arguments);},postCreate:function(){this._doc=this.domNode.ownerDocument;dijit.Dialog.prototype.postCreate.apply(this,arguments);this.inherited("postCreate",arguments);if(this.buttons===undefined){this.buttons=[];}if(this.tabs===undefined){this.tabs=[];}if(this.options===undefined){this.options={};}this._createContent(this.options);this._createButtons(this.buttons);this._createTabs();dojo.addClass(this.domNode,this["class"]);dojo.subscribe(this.id+"/executeAction",dojo.hitch(this,this.executeAction));},executeAction:function(_56a,_56b){if(this[_56a]&&dojo.isFunction(this[_56a])){var _56c=[];dojo.forEach(arguments,function(el,i){if(i!=0){_56c.push(el);}});epages.lang.hitch(this,_56a,_56c)();}},destroyRendering:function(){this.hide();this.inherited("destroyRendering",arguments);},hide:function(){this.inherited("hide",arguments);if(epages.Browser.engine=="MSIE"){this.domNode.style.width="auto";}dojo.publish(this.id+"/hide",[{dialog:this}]);},show:function(){this.inherited("show",arguments);if(epages.Browser.engine=="MSIE"){this.domNode.style.width=this.domNode.offsetWidth+"px";}if(this.domNode&&epages.zIndex){this.domNode.style.zIndex=epages.zIndex;}if(this._underlay){this._underlay.domNode.style.zIndex=this.domNode.style.zIndex-1;}if(epages.zIndex){epages.zIndex+=2;}var _56d=parseInt(this.domNode.style.top);var _56e=parseInt(this.domNode.style.left);if(_56d<0){this.domNode.style.top="0px";}if(_56e<0){this.domNode.style.left="";this.domNode.style.right="0px";}else{this.domNode.style.right="";}if(this._moveable){this._moveable.destroy();}if(!this.autofocus){var _56f=dojo.query("input",this.containerNode);if(_56f&&_56f.length>0){_56f[0].focus();}}dojo.publish(this.id+"/show",[{dialog:this}]);},close:function(){this.hide();window.setTimeout(dojo.hitch(this,function(){this._destroyContent();this._destroyButtons();}),this.duration);},setupContent:function(opt){this._destroyTabs();this._destroyContent();this._destroyButtons();if(opt.buttons){this.setupButtons(opt.buttons);}this._createContent(opt);this._createTabs();},setupButtons:function(_570){this._destroyButtons();this._createButtons(_570);},setTitle:function(_571){this.titleNode.innerHTML=_571;},hideInnerButtonBar:function(){this.innerButtonBarNode.style.display="none";},showInnerButtonBar:function(){this.innerButtonBarNode.style.display="";},disableButton:function(but){if(dojo.isString(but)){var _572=dojo.query("[buttonid="+but+"]",this.domNode);if(_572){_572=_572[0];}}else{var _572=but;}if(_572){dojo.removeClass(_572,"Active");dojo.addClass(_572,"Disabled");_572.disabled=true;}dojo.forEach(this._events,function(_573){if(_573.button.domNode==_572){dojo.disconnect(_573.event);}});},enableButton:function(_574){var _575=undefined;dojo.forEach(this.buttons,function(_576){if(_576.buttonId==_574){_575=_576;}});if(_575&&_575.domNode.disabled==true){_575.domNode.disabled=false;if(_575.cssClass){dojo.addClass(_575.domNode,_575.cssClass);}dojo.removeClass(_575.domNode,"Disabled");dojo.forEach(this._events,function(_577){if(_577.button.buttonId==_574){_577.event=dojo.connect(_575.domNode,"onclick",_575,"onclick");}});}},_createContent:function(opt){if(opt){dojo.mixin(this.options,opt);}var _578=undefined;if(this.options.translationName){_578=new epages.io.Translation(this.options.translationName,"auto");if(this.options.title){this.options.title=_578.replaceLanguageTags(this.options.title);}}if(this.options.title){this.setTitle(this.options.title);}switch(this.options.scroll){case "y":this.containerNode.style.overflowY="scroll";break;case "x":this.containerNode.style.overflowX="scroll";break;case "scroll":this.containerNode.style.overflow="scroll";break;case "hidden":this.containerNode.style.overflow="hidden";break;default:this.containerNode.style.overflow="auto";break;}if(this.options.width){if(typeof this.options.width=="number"){this.layerContentNode.style.width=this.options.width+"px";}else{this.layerContentNode.style.width=this.options.width;}}else{this.containerNode.style.width="auto";this.layerContentNode.style.width="auto";}if(this.options.height){if(typeof this.options.height=="number"){this.containerNode.style.height=this.options.height+"px";}else{this.containerNode.style.height=this.options.height;}}else{this.containerNode.style.height="auto";}if(this.options.url!=null){if(this._contentPane==null){this._contentPane=new dojox.layout.ContentPane({href:this.options.url,preload:true,extractContent:false,adjustPaths:true,ioMethod:function(args){var _579=dojo.xhrGet(args);if(_578){_579.addCallback(function(html){return _578.replaceLanguageTags(html);});}return _579;},onLoad:dojo.hitch(this,function(){window.setTimeout(dojo.hitch(this,function(){this.containerNode.appendChild(this._contentPane.domNode);if(this.options&&this.options.onLoad&&typeof this.options.onLoad=="function"){this.options.onLoad();}this.layout();this.show();this._createTabs();dojo.publish(this.id+"/onLoadContentPane",[{dialog:this}]);}),10);})});this._contentPane.refresh();}else{this._contentPane.setHref(this.options.url);}}else{if(typeof this.options.content=="object"){if(this.options.content.domNode){this.containerNode.appendChild(this.options.content.domNode);this._contentWidget=this.options.content;}else{this.containerNode.appendChild(this.options.content);}}else{if(typeof this.options.content=="string"){this.containerNode.innerHTML=this.options.content;var _57a=this.containerNode.getElementsByTagName("script");var win=this._doc.parentWindow?this._doc.parentWindow:this._doc.defaultView;for(var i=0,_57b=_57a.length;i<_57b;i++){if(_57a[i].childNodes.length>0){var _57c="";for(var j=0,_57d=_57a[i].childNodes.length;j<_57d;j++){_57c+=_57a[i].childNodes[j].nodeValue;}win.eval(_57c);}else{win.eval(_57a[i].innerHTML);}}win.dojo.parser.parse(this.containerNode);}}}dojo.publish(this.id+"/change",[{dialog:this}]);},_destroyContent:function(){this.options.scroll=undefined;this.options.width=undefined;this.options.height=undefined;this.options.title=undefined;this.options.url=undefined;if(this.titleNode.firstChild){this.titleNode.firstChild.data=" ";}this.containerNode.style.overflow="auto";this.containerNode.style.overflowX="auto";this.containerNode.style.overflowY="auto";this.containerNode.style.width="auto";this.layerContentNode.style.width="auto";this.containerNode.style.height="auto";this.innerButtonBarNode.style.display="none";this.tabBarNode.style.display="none";epages.html.removeChildren(this.containerNode);if(typeof this.options.content=="object"&&this.options.destroyWidgetOnClose){this.options.content.destroy();}this._contentWidget=null;this.options.content="";},_createButtons:function(_57e){if(_57e.length){this.innerButtonBarNode.style.display="";}this.buttons=[];this._events=[];dojo.forEach(_57e,function(_57f){_57f.domNode=[];var _580=new epages.Template({template:this.buttonTemplateString,vars:{"Label":_57f.label,"Class":_57f.cssClass?_57f.cssClass:"","buttonId":(_57f.buttonId)?"buttonid="+_57f.buttonId+" ":""}});var _581=this.createNodesFromText(_580.generateOutput());this.innerButtonBarNode.appendChild(_581);_57f.domNode=_581;dojo.mixin(_57f,{_modalDialogWidget:this,_contentWidget:this._contentWidget});this._events.push({event:dojo.connect(_57f.domNode,"onclick",_57f,"onclick"),button:_57f});this.buttons.push(_57f);if(_57f.isDisabled=="true"){this.disableButton(_581);}},this);this.clearFloatNode=document.createElement("div");this.clearFloatNode.className="ClearBoth";this.innerButtonBarNode.appendChild(this.clearFloatNode);},_destroyButtons:function(){dojo.forEach(this._events,function(_582){dojo.disconnect(_582.event);});dojo.forEach(this.buttons,function(_583){_583.domNode.parentNode.removeChild(_583.domNode);_583.domNode=undefined;});this._events=null;delete this._events;this.buttons=[];if(this.clearFloatNode!==undefined&&this.clearFloatNode.parentNode!=null){this.clearFloatNode.parentNode.removeChild(this.clearFloatNode);this.clearFloatNode=undefined;}},_createTabs:function(){var tabs=epages.html.getElementsByClassName("TabPage",this.containerNode);if(tabs.length&&tabs.length>1){this.tabBarNode.style.display="";dojo.addClass(this.tabBarNode,"Visible");this._tabs=[];this._tabEvents=[];dojo.forEach(tabs,function(_584){var tab={domNode:[],changeNode:_584};var _585=new epages.Template({template:this.tabTemplateString,vars:{"Label":_584.getAttribute("ep_label")}});var _586=this.createNodesFromText(_585.generateOutput());this.tabBarNode.appendChild(_586);tab.domNode=_586;this._tabEvents.push(dojo.connect(tab.domNode,"onclick",this,"_onTabClick"));tab.changeNode.style.display="none";this._tabs.push(tab);},this);this._tabs[0].changeNode.style.display="";dojo.addClass(this._tabs[0].domNode,"Active");this._currentTab=this._tabs[0];}else{dojo.removeClass(this.tabBarNode,"Visible");}},_destroyTabs:function(){dojo.forEach(this._tabEvents,dojo.disconnect);dojo.forEach(this._tabs,function(tab){tab.domNode.parentNode.removeChild(tab.domNode);tab.domNode=undefined;tab.changeNode=undefined;});this._tabs=[];this._currentTab=undefined;},_onTabClick:function(evt){var _587=evt.currentTarget;var tab=undefined;for(var i=0,_588=this._tabs.length;i<_588;i++){if(_587==this._tabs[i].domNode){tab=this._tabs[i];}}if(tab){if(this._currentTab){dojo.removeClass(this._currentTab.domNode,"Active");this._currentTab.changeNode.style.display="none";}tab.changeNode.style.display="";dojo.addClass(tab.domNode,"Active");this._currentTab=tab;dojo.publish(this.id+"/tabChange",[tab.changeNode]);}}});}if(!dojo._hasResource["epages.widget.Tooltip"]){dojo._hasResource["epages.widget.Tooltip"]=true;dojo.provide("epages.widget.Tooltip");dojo.declare("epages.widget.Tooltip",[dijit._Widget,dijit._Templated],{disabledBodyClickHide:false,tooltipLayerFrame:undefined,tooltipAreaId:"",tooltipArea:undefined,tooltipNode:undefined,interactive:"",tooltipShowDelay:0,tooltipHideDelay:0,currentYPosition:0,currentXPosition:0,hideDelay:null,fadeDelay:null,showDelay:null,bgcolor:"",forceOrientation:"",target:"default",findAreaMethod:"",_findAreaMethodMapping:{"default":"parentNode","previous":"previousSibling","next":"nextSibling"},_doc:null,_bodyConnect:undefined,_windowConnect:undefined,templateString:"<div class=\"Tooltip\"><div dojoAttachPoint=\"containerNode\"></div></div>",postCreate:function(){this.inherited("postCreate",arguments);this.tooltipNode=this.domNode;var _589=undefined;if(this.tooltipArea){_589=this.tooltipArea;}else{if(this.tooltipAreaId!=""){_589=$(this.tooltipAreaId);}else{var _58a=this._findAreaMethodMapping[this.findAreaMethod||this.target];_589=this.domNode[_58a];if(_589.nodeType!=1){if(_58a=="previousSibling"){_589=_589.previousSibling;}if(_58a=="nextSibling"){_589=_589.nextSibling;}}}}if(this.bgcolor!=""){this.domNode.style.backgroundColor=this.bgcolor;}if(!_589||_589.nodeType!=1){console.warn("TooltipArea not found by using find method \""+this.findAreaMethod+"\" in "+this.declaredClass);}else{this.tooltipArea=_589;this._doc=this.tooltipArea.ownerDocument;this.tooltipIsInteractive=epages.string.toBoolean(this.interactive);this.tooltipShowDelay=600;this.tooltipHideDelay=this.tooltipIsInteractive?1400:400;this.tooltipLayerFrame=this._doc.createElement("div");this.tooltipShadow=this._doc.createElement("div");dojo.style(this.tooltipNode,"opacity",0);this._bodyConnect=dojo.connect(dojo.body(),"onmouseup",this,"onBodyClick");this._windowConnect=dojo.connect(window,"onkeypress",this,"onKeypress");this.connect(this.tooltipArea,"onmousemove","onElementMove");this.connect(this.tooltipArea,"onmouseover","onElementOver");this.connect(this.tooltipArea,"onmouseout","onElementOut");this.connect(this.tooltipArea,"onmousedown","onElementClick");if(this.tooltipIsInteractive){this.connect(this.tooltipNode,"onmouseover","onTooltipOver");this.connect(this.tooltipNode,"onmouseout","onTooltipOut");}}},destroy:function(){this.inherited("destroy",arguments);dojo.disconnect(this._bodyConnect);dojo.disconnect(this._windowConnect);},setContent:function(html){this.containerNode.innerHTML=html;this.setPosition();},isActive:function(){return dojo.style(this.tooltipNode,"opacity")==0?false:true;},setPosition:function(){var _58b=(this.forceOrientation.match("R"))?true:false;var _58c=(this.forceOrientation.match("L"))?true:false;var _58d=(this.forceOrientation.match("B"))?true:false;var _58e=(this.forceOrientation.match("T"))?true:false;var _58f=epages.Browser.engine=="WebKit"?this._doc.body.clientWidth:this._doc.documentElement.clientWidth;var _590=this.tooltipNode.offsetWidth+this.currentXPosition+16+3-(this._doc.documentElement.scrollLeft||this._doc.body.scrollLeft);if((_590>_58f&&!_58b)||_58c){var x=this.currentXPosition-this.tooltipNode.offsetWidth;if(_58c){x-=16;}if(x<0){x=0;}this.tooltipNode.style.left=x+"px";}else{var x=this.currentXPosition;if(_58b){x+=16;}this.tooltipNode.style.left=x+"px";}var _591=epages.Browser.engine=="WebKit"?this._doc.body.clientHeight:this._doc.documentElement.clientHeight;var _592=this.tooltipNode.offsetHeight+this.currentYPosition+16+3-(this._doc.documentElement.scrollTop||this._doc.body.scrollTop);if((_592>_591&&!_58d)||_58e){var y=this.currentYPosition-this.tooltipNode.offsetHeight-16;if(y<0){y=0;}this.tooltipNode.style.top=y+"px";}else{this.tooltipNode.style.top=this.currentYPosition+16+"px";}this.tooltipLayerFrame.style.width=this.tooltipNode.offsetWidth+2+"px";this.tooltipLayerFrame.style.height=this.tooltipNode.offsetHeight+2+"px";},show:function(x,y){this.currentXPosition=x;this.currentYPosition=y;this.showTooltip();},showTooltip:function(){dojo.addClass(this.tooltipNode,"HideElement");if(!this.rendered){dojo.addClass(this.tooltipNode,"Tooltip");dojo.addClass(this.tooltipShadow,"TooltipShadow");dojo.addClass(this.tooltipLayerFrame,"LayerIframe");if(!this.tooltipIsInteractive){this.tooltipLayerFrame.style.zIndex="1";this.tooltipNode.style.MozUserSelect="none";}this.tooltipNode.appendChild(this.tooltipLayerFrame);this.tooltipNode.appendChild(this.tooltipShadow);this._doc.getElementsByTagName("body")[0].appendChild(this.tooltipNode);this.rendered=true;}var _593=this;if(this.fadeAction){this.fadeAction.stop();}this.fadeAction=dojo.fadeIn({node:this.tooltipNode,duration:200,beforeBegin:function(){_593.tooltipNode.style.display="block";_593.setPosition();dojo.removeClass(_593.tooltipNode,"HideElement");}});this.fadeAction.play();},hide:function(){var _594=this;if(this.fadeAction){this.fadeAction.stop();}this.fadeAction=dojo.fadeOut({node:this.tooltipNode,duration:200,onEnd:function(){_594.tooltipNode.style.display="none";}});this.fadeAction.play();},onElementMove:function(_595){if(!_595){var _595=window.event;}this.currentYPosition=_595.clientY+(this._doc.documentElement.scrollTop||this._doc.body.scrollTop);this.currentXPosition=_595.clientX+(this._doc.documentElement.scrollLeft||this._doc.body.scrollLeft);},onElementOver:function(){this.disabledBodyClickHide=true;this._resetTimeouts();if(!this.isActive()){this.showDelay=this._delayExec(this.showTooltip,this.tooltipShowDelay);}},onElementOut:function(){this._resetTimeouts();this.fadeDelay=this._delayExec(this.hide,this.tooltipHideDelay);this.disabledBodyClickHide=false;},onElementClick:function(){this.disabledBodyClickHide=true;if(!this.isActive()){this._resetTimeouts();this.showTooltip();}},onTooltipOver:function(){this.disabledBodyClickHide=true;this._resetTimeouts();},onTooltipOut:function(){this.disabledBodyClickHide=false;this.onElementOut();},onBodyClick:function(){if(!this.disabledBodyClickHide&&this.isActive()){this._resetTimeouts();this.hide();}},onKeypress:function(evt){if(evt.keyCode==dojo.keys.ESCAPE){this._resetTimeouts();this.hide();}},_delayExec:function(task,_596){return setTimeout(dojo.hitch(this,task),_596);},_resetTimeouts:function(){clearTimeout(this.hideDelay);clearTimeout(this.fadeDelay);clearTimeout(this.showDelay);}});}if(!dojo._hasResource["dojox.fx._base"]){dojo._hasResource["dojox.fx._base"]=true;dojo.provide("dojox.fx._base");dojo.mixin(dojox.fx,{anim:dojo.anim,animateProperty:dojo.animateProperty,fadeTo:dojo._fade,fadeIn:dojo.fadeIn,fadeOut:dojo.fadeOut,combine:dojo.fx.combine,chain:dojo.fx.chain,slideTo:dojo.fx.slideTo,wipeIn:dojo.fx.wipeIn,wipeOut:dojo.fx.wipeOut});dojox.fx.sizeTo=function(args){var node=args.node=dojo.byId(args.node),abs="absolute";var _597=args.method||"chain";if(!args.duration){args.duration=500;}if(_597=="chain"){args.duration=Math.floor(args.duration/2);}var top,_598,left,_599,_59a,_59b=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n),pos=cs.position,w=cs.width,h=cs.height;top=(pos==abs?n.offsetTop:parseInt(cs.top)||0);left=(pos==abs?n.offsetLeft:parseInt(cs.left)||0);_59a=(w=="auto"?0:parseInt(w));_59b=(h=="auto"?0:parseInt(h));_599=left-Math.floor((args.width-_59a)/2);_598=top-Math.floor((args.height-_59b)/2);if(pos!=abs&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position=abs;n.style.top=top+"px";n.style.left=left+"px";}};})(node);var _59c=dojo.animateProperty(dojo.mixin({properties:{height:function(){init();return {end:args.height||0,start:_59b};},top:function(){return {start:top,end:_598};}}},args));var _59d=dojo.animateProperty(dojo.mixin({properties:{width:function(){return {start:_59a,end:args.width||0};},left:function(){return {start:left,end:_599};}}},args));var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_59c,_59d]);return anim;};dojox.fx.slideBy=function(args){var node=args.node=dojo.byId(args.node),top,left;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var _59e=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));dojo.connect(_59e,"beforeBegin",_59e,init);return _59e;};dojox.fx.crossFade=function(args){var _59f=args.nodes[0]=dojo.byId(args.nodes[0]),op1=dojo.style(_59f,"opacity"),_5a0=args.nodes[1]=dojo.byId(args.nodes[1]),op2=dojo.style(_5a0,"opacity");var _5a1=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_59f},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_5a0},args))]);return _5a1;};dojox.fx.highlight=function(args){var node=args.node=dojo.byId(args.node);args.duration=args.duration||400;var _5a2=args.color||"#ffff99",_5a3=dojo.style(node,"backgroundColor");if(_5a3=="rgba(0, 0, 0, 0)"){_5a3="transparent";}var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_5a2,end:_5a3}}},args));if(_5a3=="transparent"){dojo.connect(anim,"onEnd",anim,function(){node.style.backgroundColor=_5a3;});}return anim;};dojox.fx.wipeTo=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var dir=(args.width?"width":"height"),_5a4=args[dir],_5a5={};_5a5[dir]={start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s[dir]="1px";s.display="";s.visibility="";return 1;}else{var now=dojo.style(node,dir);return Math.max(now,1);}},end:_5a4};var anim=dojo.animateProperty(dojo.mixin({properties:_5a5},args));return anim;};}if(!dojo._hasResource["dojox.fx"]){dojo._hasResource["dojox.fx"]=true;dojo.provide("dojox.fx");}if(!dojo._hasResource["epages.widget.Message"]){dojo._hasResource["epages.widget.Message"]=true;dojo.provide("epages.widget.Message");dojo.declare("epages.widget.Message",[dijit._Widget,dijit._Templated],{headline:"",message:"",sizeClass:"Small",typeClass:"Info",borderClass:"",loderAniNode:undefined,templateString:"<div class=\"Message ${sizeClass} ${typeClass} ${borderClass}\">\n  <div class=\"Headline\" dojoAttachPoint=\"headlineNode\">${headline}</div>\n  <div class=\"MessageDetails\" dojoAttachPoint=\"messageNode\">${message}</div>\n</div>\n",show:function(){this.domNode.style.display="block";},hide:function(){this.domNode.style.display="none";},postCreate:function(){this.inherited("postCreate",arguments);this.setupContent({headline:this.headline,message:this.message,sizeClass:this.sizeClass,typeClass:this.typeClass,borderClass:this.borderClass});},setupContent:function(opt){if(opt.headline!==undefined&&opt.headline!=""){this.headline=opt.headline;this.headlineNode.innerHTML=opt.headline;this.headlineNode.style.display="";}else{this.headlineNode.style.display="none";}if(opt.message!==undefined&&opt.message!=""){this.message=opt.message;this.messageNode.innerHTML=opt.message;this.messageNode.style.display="";dojo.parser.parse(this.messageNode);}else{this.messageNode.style.display="none";}if(opt.sizeClass!==undefined){epages.html.replaceClass(this.domNode,opt.sizeClass,this.sizeClass);this.sizeClass=opt.sizeClass;}if(opt.typeClass!==undefined){epages.html.replaceClass(this.domNode,opt.typeClass,this.typeClass);this.typeClass=opt.typeClass;if(this.loderAniNode!==undefined&&opt.typeClass!="Loader"){epages.loaderani.destroy(this.loderAniNode);}if(opt.typeClass=="Loader"){var _5a6={top:14,left:14,width:24,height:24};this.domNode.style.position="relative";this.loderAniNode=epages.loaderani.create(_5a6,this.domNode);}}if(opt.borderClass!==undefined){epages.html.replaceClass(this.domNode,opt.borderClass,this.borderClass);this.borderClass=opt.borderClass;}}});}if(!dojo._hasResource["epages.widget.Bubble"]){dojo._hasResource["epages.widget.Bubble"]=true;dojo.provide("epages.widget.Bubble");dojo.declare("epages.widget.Bubble",[dijit._Widget,dijit._Templated],{optionsstring:"",options:undefined,typeClass:"",templateString:"<div class=\"Bubble ${typeClass}\">\n  <div class=\"LayerOverIframe\" dojoAttachPoint=\"layerOverIframeNode\">\n    <div class=\"BubbleLayer\">\n      <div class=\"BubbleClose\" dojoAttachPoint=\"closeNode\"></div>\n      <div dojoAttachPoint=\"containerNode\"></div>\n    </div>\n    <div class=\"BubbleFoot\"></div>\n  </div>\n</div>\n",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);if(this.options===undefined){this.options={content:""};}var _5a7=(this.optionsstring!="")?dojo.fromJson(this.optionsstring):undefined;if(_5a7){dojo.mixin(this.options,_5a7);}},postCreate:function(){this.inherited("postCreate",arguments);this.setupContent(this.options);this.connect(this.closeNode,"onclick","hide");this.connect(window,"onkeypress","onKeypress");this.connect(window,"onresize","hide");this.connect(document.body,"onkeypress","onKeypress");},setupContent:function(opt){if(opt){dojo.mixin(this.options,opt);}while(this.containerNode.firstChild){this.containerNode.removeChild(this.containerNode.firstChild);}if(this.options.content){if(typeof this.options.content=="object"&&this.options.content.domNode!=undefined){this.containerNode.appendChild(this.options.content.domNode);}else{if(typeof this.options.content=="string"){this.containerNode.innerHTML=this.options.content;}else{if(typeof this.options.content=="object"&&this.options.content.nodeType){this.containerNode.appendChild(this.options.content);}else{console.warn("Bubble.setupContent needs a domnode a widget or a string as content.");}}}}var _5a8=0;var _5a9=0;if(this.options.orientation==""||this.options.orientation=="top"){dojo.removeClass(this.domNode,"Left");dojo.removeClass(this.domNode,"Right");dojo.removeClass(this.domNode,"TopRight");dojo.removeClass(this.domNode,"Bottom");}if(this.options.orientation=="top-right"){var _5aa=this.options.typeClass;if(_5aa&&_5aa.match("Wide")){_5a8=-330;}else{_5a8=-230;}dojo.addClass(this.domNode,"TopRight");dojo.removeClass(this.domNode,"Left");dojo.removeClass(this.domNode,"Bottom");dojo.removeClass(this.domNode,"Right");}if(this.options.orientation=="right"){var _5aa=this.options.typeClass;if(_5aa&&_5aa.match("Wide")){_5a8=-380;}else{_5a8=-280;}_5a9=-24;dojo.addClass(this.domNode,"Right");dojo.removeClass(this.domNode,"Left");dojo.removeClass(this.domNode,"Bottom");dojo.removeClass(this.domNode,"TopRight");}if(this.options.orientation=="left"){_5a9=-24;dojo.addClass(this.domNode,"Left");dojo.removeClass(this.domNode,"Right");dojo.removeClass(this.domNode,"Bottom");dojo.removeClass(this.domNode,"TopRight");}if(this.options.orientation=="bottom"){dojo.addClass(this.domNode,"Bottom");dojo.removeClass(this.domNode,"Left");dojo.removeClass(this.domNode,"Right");dojo.removeClass(this.domNode,"TopRight");}if(this.options.x!==undefined&&this.options.y!==undefined){$E(this.domNode).setCss({"left":(this.options.x+_5a8)+"px","top":(this.options.y+_5a9)+"px","zIndex":99998});}if(this.options.typeClass!==undefined){dojo.removeClass(this.domNode,this.typeClass);dojo.addClass(this.domNode,this.options.typeClass);this.typeClass=this.options.typeClass;}},show:function(){if(this.options.orientation=="bottom"){this.domNode.style.visibility="hidden";this.domNode.style.display="block";var _5ab=this.layerOverIframeNode.offsetHeight||this.layerOverIframe.clientHeight;$E(this.domNode).setCss({"top":(this.options.y-_5ab)+"px",visibility:"visible"});}else{this.domNode.style.display="block";}},hide:function(){this.domNode.style.display="none";},onKeypress:function(evt){if(evt.keyCode==dojo.keys.ESCAPE){this.hide();}}});}if(!dojo._hasResource["epages.uimessagehandler"]){dojo._hasResource["epages.uimessagehandler"]=true;dojo.provide("epages.uimessagehandler");dojo.mixin(epages.uimessagehandler,{template:"<div id=\"busyMessageLayer\"    style=\"position: absolute; left:0px; top:0px; height: 100%; width: 100%; z-index: 100000; overflow: auto; display: none;\">"+"<div id=\"busyMessageUnderlay\" style=\"position: absolute; left:0px; top:0px; height: 100%; width: 100%; z-index: 99999; background: #707070; opacity: 0.9; filter:alpha(opacity=90);\" ></div>"+"<div id=\"busyMessageBox\"      style=\"position: relative; left:0px; top:300px; z-index: 100000; max-width: 200px; overflow: visible; margin: auto; color: #000;\">"+"<div class=\"Layer\"><div id=\"busyMessagePropertyContainer\" class=\"PropertyContainer\" style=\"height:45px;padding-top:1px;\"><div id=\"busyMessage\" style=\"background:#f7f7f7;filter:alpha();zoom:1;margin: 5px 8px\" ></div>"+"<span style=\"#display:none\"><object id=\"busyMessageAnimation\" class=\" ShowElement\" wmode=\"transparent\" width=\"16\" height=\"16\" type=\"application/x-shockwave-flash\" data=\""+window.StoreRoot+"/Flash/loadingring.swf\"><param name=\"movie\" value=\""+window.StoreRoot+"/Flash/loadingring.swf\"/><param name=\"bgcolor\" value=\"#f7f7f7\"/></object></span>"+"</div></div><div class=\"LayerFooter\"><div class=\"PropertyContainer\"></div></div></div></div>",fadeOutBusyLayer:function(_5ac){if(document.all){setTimeout(function(){$("busyMessageAnimation").parentNode.style.display="none";},500);}dojo.fx.combine([dojo.fadeOut({node:$("busyMessageLayer"),onEnd:function(){$("busyMessageLayer").style.display="none";if(document.all){dojo.body().parentNode.style.overflow="auto";}},duration:_5ac?_5ac:1000})]).play();},rePositionBusy:function(){if($("busyMessageLayer")){$("busyMessageLayer").style.top=(window.pageYOffset||document.getElementsByTagName("html")[0].scrollTop)+"px";}},errorsToString:function(_5ad){var _5ae="";for(var el in _5ad){if(_5ad[el].Message!=""){_5ae+=_5ad[el].Message+"<br />";}else{var t=epages.io.dictionary.get(_5ad[el].Reason);if(t===undefined){t=_5ad[el].Reason;}_5ae+=t+"<br />";}}return _5ae;}});dojo.subscribe("uimessage/show",function(_5af,_5b0,type,opt){var _5b1=(opt.sizeClass!==undefined)?opt.sizeClass:"Large";var _5b2=(opt.typeClass!==undefined)?opt.typeClass:"Warning";if($$("uimessage_dialog")){$$("uimessage_dialog").hide();}if($$("uimessage_bubble")){$$("uimessage_bubble").hide();}var _5b3=$$("uimessage_insert");if(_5b3===undefined){_5b3=new epages.widget.Message({id:"uimessage_insert",headline:(_5af!==undefined)?_5af:"",message:_5b0,sizeClass:_5b1,typeClass:_5b2,borderClass:(type=="Insert")?"WithBorder":""});}else{_5b3.hide();_5b3.setupContent({headline:_5af,message:_5b0,sizeClass:_5b1,typeClass:_5b2,borderClass:(type=="Insert")?"WithBorder":""});}_5b3.show();switch(type){case "Bubble":var _5b4=$$("uimessage_bubble");var _5b5=opt.attachNode||document.body;if((opt.x==null||opt.y==null)&&opt.element!=null){var _5b6=$E(opt.element).getAbsolutePosition(opt.baseNode);opt.x=opt.x||(_5b6.x+opt.element.offsetWidth/2);opt.y=opt.y||(_5b6.y+opt.element.offsetHeight);}if(_5b4===undefined){_5b4=new epages.widget.Bubble({id:"uimessage_bubble",options:{x:opt.x,y:opt.y,typeClass:_5b2,content:_5b3,orientation:opt.orientation}});_5b5.appendChild(_5b4.domNode);}else{_5b4.setupContent({x:opt.x,y:opt.y,typeClass:_5b2,content:_5b3,orientation:opt.orientation});_5b5.appendChild(_5b4.domNode);}_5b4.show();break;case "Insert":if(opt.targetNode!==undefined){opt.targetNode.appendChild($$("uimessage_insert").domNode);}else{console.warn("uimessage/show: opt.targetNode is undefined");}break;default:var _5b7=opt.buttons;if(_5b7===undefined){var _5b8=epages.io.dictionary.translation;_5b7=_5b2=="Confirmation"?[{label:_5b8.get("Yes"),onclick:function(){this._modalDialogWidget.hide();if(typeof opt.onYes=="function"){opt.onYes();}}},{label:_5b8.get("No"),onclick:function(){this._modalDialogWidget.hide();if(typeof opt.onNo=="function"){opt.onNo();}}}]:[{label:_5b8.get("Close"),onclick:function(){this._modalDialogWidget.hide();}}];}var _5b9=opt.titleBar;if(_5b9===undefined){_5b9=epages.io.dictionary.translation.get(_5b2);}var uid=$$("uimessage_dialog");if(uid===undefined){uid=new epages.widget.Modaldialog({id:"uimessage_dialog",options:{title:_5b9,width:(opt.width)?opt.width:450,content:_5b3},buttons:_5b7});document.body.appendChild(uid.domNode);}else{uid.containerNode.appendChild(_5b3.domNode);uid.setupContent({title:_5b9,width:450,content:_5b3,buttons:_5b7});}uid.show();break;}});dojo.subscribe("uimessage/hide",function(opt){if($$("uimessage_dialog")){$$("uimessage_dialog").hide();}if($$("uimessage_bubble")){$$("uimessage_bubble").hide();}if($$("uimessage_insert")){$$("uimessage_insert").hide();}});dojo.subscribe("uimessage/startBusy",function(_5ba,_5bb,_5bc){epages.uimessagehandler.busyLayerOwner=_5ba;epages.vars.BusyLayerActive=true;if(_5bb===undefined){var _5bd=epages.io.dictionary.translation;_5bb=_5bd.get("PleaseWait");}var _5be=document.getElementsByTagName("body")[0];if(document.all){_5be.parentNode.style.overflow="hidden";}var _5bf=$("busyMessageLayer");if(_5bf==null){_5bf=document.createElement("div");_5bf.innerHTML=epages.uimessagehandler.template;_5be.appendChild(_5bf.firstChild);_5bf=_5bf.firstChild;}$("busyMessageLayer").style.display="";dojo.style($("busyMessageLayer"),"opacity",1);if($("busyMessage").getElementsByTagName("div")[0]){$("busyMessage").removeChild($("busyMessage").getElementsByTagName("div")[0]);}var _5c0=document.createElement("div");_5c0.innerHTML=_5bb;$("busyMessage").appendChild(_5c0);if(_5bc){$("busyMessage").style.paddingLeft="40px";$("busyMessage").style.backgroundImage="url("+_5bc+")";if($("busyMessage").style.filter){$("busyMessage").style.backgroundImage="none";$("busyMessage").style.filter="progid:DXImageTransform.Microsoft.Alpha() progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_5bc+"', sizingMethod='crop)";}$("busyMessage").style.backgroundRepeat="no-repeat";$("busyMessage").style.minHeight="40px";$("busyMessagePropertyContainer").style.height="58px";$("busyMessageAnimation").style.cssText="position:absolute;bottom:12px;left:88px;#left:87px";}else{$("busyMessage").style.paddingLeft="0";$("busyMessage").style.backgroundImage="none";$("busyMessage").style.filter="alpha()";$("busyMessagePropertyContainer").style.height="48px";$("busyMessageAnimation").style.cssText="position:absolute;bottom:12px;left:88px;#left:87px";}epages.uimessagehandler.rePositionBusy();$("busyMessageAnimation").parentNode.style.display="";});dojo.subscribe("uimessage/showErrors",function(_5c1,_5c2,_5c3){var _5c4=epages.uimessagehandler.errorsToString(_5c3);dojo.publish("uimessage/show",[_5c1,_5c4,"Dialog",{titleBar:_5c2,typeClass:"Error"}]);});dojo.subscribe("uimessage/showErrorBubble",function(_5c5,_5c6,_5c7,_5c8){var tc=(_5c8)?_5c8:"Error";var _5c9=epages.uimessagehandler.errorsToString(_5c7);var pos=$E(_5c6).getAbsolutePosition();dojo.publish("uimessage/show",[_5c5,_5c9,"Bubble",{typeClass:tc,sizeClass:"Small",x:pos.x,y:pos.y+_5c6.clientHeight+4}]);});dojo.subscribe("uimessage/changeBusy",function(_5ca,_5cb){if(epages.uimessagehandler.busyLayerOwner==_5ca&&top.$("busyMessage")){if(epages.Browser.engine=="MSIE"){$("busyMessage").style.display="inline-block";}if($("busyMessage").getElementsByTagName("div")[0]){$("busyMessage").removeChild($("busyMessage").getElementsByTagName("div")[0]);}var _5cc=document.createElement("div");_5cc.innerHTML=_5cb;$("busyMessage").appendChild(_5cc);if(epages.Browser.engine=="MSIE"){$("busyMessage").style.display="block";}}});dojo.subscribe("uimessage/stopBusy",function(_5cd,_5ce,_5cf){if(epages.uimessagehandler.busyLayerOwner==_5cd){if(_5ce){window.setTimeout(function(){epages.vars.BusyLayerActive=false;epages.uimessagehandler.fadeOutBusyLayer(_5cf);},_5ce);}else{epages.vars.BusyLayerActive=false;epages.uimessagehandler.fadeOutBusyLayer(_5cf);}}});dojo.connect(window,"scroll",this,epages.uimessagehandler.rePositionBusy);}if(!dojo._hasResource["epages.validate.date"]){dojo._hasResource["epages.validate.date"]=true;dojo.provide("epages.validate.date");epages.validate.date.isTime=function(_5d0,_5d1){if(_5d0==""){return "NO_VALUE";}var date;try{date=epages.string.toTime(_5d0,_5d1);}catch(ex){console.dir(ex);return "INVALID_TIME";}if(date===null){return "INVALID_TIME";}return true;};epages.validate.date.isDate=function(_5d2,_5d3){if(_5d2==""){return "NO_VALUE";}if(_5d3==null||_5d3.length==0){_5d3=epages.vars.Locale.dateFormat;}var _5d4=epages.localize.getDojoDateTimePattern(_5d3);try{var date=dojo.date.locale.parse(_5d2,{selector:"date",datePattern:_5d4,timePattern:""});}catch(ex){return "INVALID_DATE";}if(date===null){return "INVALID_DATE";}return true;};epages.validate.date.isDateTime=function(_5d5,_5d6){if(_5d5==""){return "NO_VALUE";}if(_5d6==null||_5d6.length==0){_5d6=epages.vars.Locale.datetimeFormat;}var _5d7=epages.localize.getDojoDateTimePattern(_5d6);try{var date=dojo.date.locale.parse(_5d5,{selector:"date",datePattern:_5d7,timePattern:""});}catch(ex){return "INVALID_DATETIME";}if(date===null){return "INVALID_DATETIME";}return true;};}if(!dojo._hasResource["epages.widget.Timespinner"]){dojo._hasResource["epages.widget.Timespinner"]=true;dojo.provide("epages.widget.Timespinner");dojo.declare("epages.widget.Timespinner",[epages.widget.LocalizedWidget],{templateString:"<span class=\"TimeSpinner EnableHover\">\n  <span class=\"Time\">\n    ${label} <input name=\"${name}\" type=\"text\" dojoAttachPoint=\"timeNode\" dojoAttachEvent=\"onkeyup:_onKeyUp, onchange:_onChange\" value=\"${value}\" />\n  </span>\n  <span class=\"ButtonWrapper\"><span class=\"TimeSpinnerButton\">\n      <span dojoAttachPoint=\"upNode\"   class=\"TimeSpinnerUpArrow EnableHover\"></span>\n      <span dojoAttachPoint=\"downNode\" class=\"TimeSpinnerDownArrow EnableHover\"></span>\n  </span></span>\n</span>\n",translationName:dojo.moduleUrl("epages","translation"),delta:5,value:"",label:"",name:"",displayPattern:epages.vars.Locale.timeFormat||"%H:%M",emptyValueAllowed:true,initId:"",_spinTimeout:null,_spinCounter:0,_delta:0,_spinIntervalFunction:null,postMixInProperties:function(){if(typeof this.delta=="string"){this.delta=new Number(this.delta);}if(this.delta<=0){this.delta=this.prototype.delta;}this._delta=this.delta*60000;this.emptyValueAllowed=epages.string.toBoolean(this.emptyValueAllowed);},postCreate:function(){if(this.value!=""){var date=this.value;this.value=null;this.setValue(date);}else{if(!this.emptyValueAllowed){var date=new Date();date.setTime(43200000+date.getTimezoneOffset()*60000);this.value=null;this.setValue(date);}else{this.value=null;}}this.connect(this.timeNode,"focus","onFocus");this.connect(this.timeNode,"blur","onBlur");this.connect(this.upNode,"mouseup","onMouseUp");this.connect(this.downNode,"mouseup","onMouseUp");this.connect(this.upNode,"mouseout","onMouseUp");this.connect(this.downNode,"mouseout","onMouseUp");this.connect(this.upNode,"mousedown","onMouseDown");this.connect(this.downNode,"mousedown","onMouseDown");},onFocus:function(){dojo.addClass(this.domNode,"Focus");},onBlur:function(){dojo.removeClass(this.domNode,"Focus");},getValue:function(){return this.value;},setValue:function(date,_5d8){if(date===undefined){date=new Date();}else{if(typeof date=="string"){date=epages.string.toTime(date,this.displayPattern);if(this.value){date.setFullYear(this.value.getFullYear());date.setMonth(this.value.getMonth());date.setDate(this.value.getDate());}}}if(!this.value||dojo.date.compare(date,this.value)){this.value=new Date(date);if(!_5d8){this.timeNode.value=epages.localize.formatDateTime(date,this.displayPattern);}}dojo.removeClass(this.timeNode,"DialogError");dojo.publish("uimessage/hide",[]);dojo.publish(this.id+"/onChange",[date]);},onMouseDown:function(evt){var _5d9;if(evt.target==this.upNode){_5d9=1;}else{if(evt.target==this.downNode){_5d9=-1;}else{return;}}this._spinIntervalFunction=dojo.hitch(this,function(){var _5da=this._spinCounter>5?this._spinCounter>25?25:55:200;this.spin(_5d9);this._spinCounter++;window.clearTimeout(this._spinTimeout);this._spinTimeout=undefined;this._spinTimeout=window.setTimeout(this._spinIntervalFunction,_5da);});this._spinIntervalFunction();},onMouseUp:function(){if(this._spinCounter){epages.event.fire(this.timeNode,"change");}this._spinCounter=0;window.clearTimeout(this._spinTimeout);},spin:function(_5db){if(_5db==0){return;}var _5dc=false;if(this.value==null&&this.timeNode.value!=""){var w=$$(this.initId);if(w){this.value=w.value;_5dc=true;}}if(this.value==null&&this.initId!=""){var w=$$(this.initId);if(w){this.value=w.value;_5dc=true;}}if(this.value==null){this.value=dojo.date.locale.parse("0",{selector:"date",datePattern:"HH",timePattern:""});_5dc=true;}var date=new Date(this.value);if(_5dc){this.value=null;}else{date.setTime(this.value.getTime()+this._delta*(_5db/Math.abs(_5db)));}this.setValue(date);},_onKeyUp:function(evt){var _5dd=evt.target.value;var _5de=epages.validate.date.isTime(_5dd,this.displayPattern);if(_5de===true){this.setValue(_5dd,true);}else{if(_5de=="NO_VALUE"&&this.emptyValueAllowed){dojo.removeClass(this.timeNode,"DialogError");dojo.publish("uimessage/hide",[]);this.value=null;}else{dojo.addClass(this.timeNode,"DialogError");}}},_onChange:function(evt){var _5df=evt.target.value;var _5e0=epages.validate.date.isTime(_5df,this.displayPattern);var _5e1=$E(this.timeNode).getRelativePosition();if(_5e0!=true&&!(_5e0=="NO_VALUE"&&this.emptyValueAllowed)){dojo.publish("uimessage/show",["",this.translation.get(_5e0),"Bubble",{typeClass:"Warning",sizeClass:"Small",x:_5e1.x,y:_5e1.y+this.timeNode.clientHeight+4,attachNode:this.domNode.parentNode}]);}}});}if(!dojo._hasResource["dijit.Calendar"]){dojo._hasResource["dijit.Calendar"]=true;dojo.provide("dijit.Calendar");dojo.declare("dijit.Calendar",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit","templates/Calendar.html","<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div class=\"dijitVisible\">\n\t\t\t\t\t<div class=\"dijitPopup dijitMenu dijitMenuPassive dijitHidden\" dojoAttachPoint=\"monthDropDown\" dojoAttachEvent=\"onmouseup: _onMonthSelect, onmouseover: _onMenuHover, onmouseout: _onMenuHover\">\n\t\t\t\t\t\t<div class=\"dijitCalendarMonthLabelTemplate dijitCalendarMonthLabel\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel dijitInline dijitVisible\" dojoAttachEvent=\"onmousedown: _onMonthToggle\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\n"),value:new Date(),datePackage:"dojo.date",dayWidth:"narrow",tabIndex:"0",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{tabIndex:"domNode"}),setValue:function(_5e2){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");this.attr("value",_5e2);},_getValueAttr:function(){var _5e3=new this.dateClassObj(this.value);_5e3.setHours(0,0,0,0);if(_5e3.getDate()<this.value.getDate()){_5e3=this.dateFuncObj.add(_5e3,"hour",1);}return _5e3;},_setValueAttr:function(_5e4){if(!this.value||this.dateFuncObj.compare(_5e4,this.value)){_5e4=new this.dateClassObj(_5e4);_5e4.setHours(1);this.displayMonth=new this.dateClassObj(_5e4);if(!this.isDisabledDate(_5e4,this.lang)){this.value=_5e4;this.onChange(this.attr("value"));}dojo.attr(this.domNode,"aria-label",this.dateLocaleModule.format(_5e4,{selector:"date",formatLength:"full"}));this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _5e5=this.displayMonth;_5e5.setDate(1);var _5e6=_5e5.getDay(),_5e7=this.dateFuncObj.getDaysInMonth(_5e5),_5e8=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_5e5,"month",-1)),_5e9=new this.dateClassObj(),_5ea=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_5ea>_5e6){_5ea-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_5eb,i){i+=_5ea;var date=new this.dateClassObj(_5e5),_5ec,_5ed="dijitCalendar",adj=0;if(i<_5e6){_5ec=_5e8-_5e6+i+1;adj=-1;_5ed+="Previous";}else{if(i>=(_5e6+_5e7)){_5ec=i-_5e6-_5e7+1;adj=1;_5ed+="Next";}else{_5ec=i-_5e6+1;_5ed+="Current";}}if(adj){date=this.dateFuncObj.add(date,"month",adj);}date.setDate(_5ec);if(!this.dateFuncObj.compare(date,_5e9,"date")){_5ed="dijitCalendarCurrentDate "+_5ed;}if(this._isSelectedDate(date,this.lang)){_5ed="dijitCalendarSelectedDate "+_5ed;}if(this.isDisabledDate(date,this.lang)){_5ed="dijitCalendarDisabledDate "+_5ed;}var _5ee=this.getClassForDate(date,this.lang);if(_5ee){_5ed=_5ee+" "+_5ed;}_5eb.className=_5ed+"Month dijitCalendarDateTemplate";_5eb.dijitDateValue=date.valueOf();var _5ef=dojo.query(".dijitCalendarDateLabel",_5eb)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();this._setText(_5ef,text);},this);var _5f0=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang);this._setText(this.monthLabelNode,_5f0[_5e5.getMonth()]);var y=_5e5.getFullYear()-1;var d=new this.dateClassObj();dojo.forEach(["previous","current","next"],function(name){d.setFullYear(y++);this._setText(this[name+"YearLabelNode"],this.dateLocaleModule.format(d,{selector:"year",locale:this.lang}));},this);var _5f1=this;var _5f2=function(_5f3,_5f4,adj){_5f1._connects.push(dijit.typematic.addMouseListener(_5f1[_5f3],_5f1,function(_5f5){if(_5f5>=0){_5f1._adjustDisplay(_5f4,adj);}},0.8,500));};_5f2("incrementMonth","month",1);_5f2("decrementMonth","month",-1);_5f2("nextYearLabelNode","year",1);_5f2("previousYearLabelNode","year",-1);},goToToday:function(){this.attr("value",this.dateClassObj());},constructor:function(args){var _5f6=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_5f6,false);this.datePackage=args.datePackage||this.datePackage;this.dateFuncObj=dojo.getObject(this.datePackage,false);this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);},postMixInProperties:function(){if(isNaN(this.value)){delete this.value;}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _5f7=dojo.hitch(this,function(_5f8,n){var _5f9=dojo.query(_5f8,this.domNode)[0];for(var i=0;i<n;i++){_5f9.parentNode.appendChild(_5f9.cloneNode(true));}});_5f7(".dijitCalendarDayLabelTemplate",6);_5f7(".dijitCalendarDateTemplate",6);_5f7(".dijitCalendarWeekTemplate",5);var _5fa=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);var _5fb=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_5fc,i){this._setText(_5fc,_5fa[(i+_5fb)%7]);},this);var _5fd=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang);_5f7(".dijitCalendarMonthLabelTemplate",_5fd.length-1);dojo.query(".dijitCalendarMonthLabelTemplate",this.domNode).forEach(function(node,i){dojo.attr(node,"month",i);this._setText(node,_5fd[i]);dojo.place(node.cloneNode(true),this.monthLabelSpacer);},this);var _5fe=this.value;this.value=null;this.attr("value",new this.dateClassObj(_5fe));},_onMenuHover:function(e){dojo.stopEvent(e);dojo.toggleClass(e.target,"dijitMenuItemHover");},_adjustDisplay:function(part,_5ff){this.displayMonth=this.dateFuncObj.add(this.displayMonth,part,_5ff);this._populateGrid();},_onMonthToggle:function(evt){dojo.stopEvent(evt);if(evt.type=="mousedown"){var _600=dojo.position(this.monthLabelNode);var dim={width:_600.w+"px",top:-this.displayMonth.getMonth()*_600.h+"px"};if((dojo.isIE&&dojo.isQuirks)||dojo.isIE<7){dim.left=-_600.w/2+"px";}dojo.style(this.monthDropDown,dim);this._popupHandler=this.connect(document,"onmouseup","_onMonthToggle");}else{this.disconnect(this._popupHandler);delete this._popupHandler;}dojo.toggleClass(this.monthDropDown,"dijitHidden");dojo.toggleClass(this.monthLabelNode,"dijitVisible");},_onMonthSelect:function(evt){this._onMonthToggle(evt);this.displayMonth.setMonth(dojo.attr(evt.target,"month"));this._populateGrid();},_onDayClick:function(evt){dojo.stopEvent(evt);for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){}if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.attr("value",node.dijitDateValue);this.onValueSelected(this.attr("value"));}},_onDayMouseOver:function(evt){var node=evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){dojo.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}for(var node=evt.relatedTarget;node;){if(node==this._currentNode){return;}try{node=node.parentNode;}catch(x){node=null;}}dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");this._currentNode=null;},_onKeyPress:function(evt){var dk=dojo.keys,_601=-1,_602,_603=this.value;switch(evt.keyCode){case dk.RIGHT_ARROW:_601=1;case dk.LEFT_ARROW:_602="day";if(!this.isLeftToRight()){_601*=-1;}break;case dk.DOWN_ARROW:_601=1;case dk.UP_ARROW:_602="week";break;case dk.PAGE_DOWN:_601=1;case dk.PAGE_UP:_602=evt.ctrlKey?"year":"month";break;case dk.END:_603=this.dateFuncObj.add(_603,"month",1);_602="day";case dk.HOME:_603=new Date(_603).setDate(1);break;case dk.ENTER:this.onValueSelected(this.attr("value"));break;case dk.ESCAPE:default:return;}dojo.stopEvent(evt);if(_602){_603=this.dateFuncObj.add(_603,_602,_601);}this.attr("value",_603);},onValueSelected:function(date){},onChange:function(date){},_isSelectedDate:function(_604,_605){return !this.dateFuncObj.compare(_604,this.value,"date");},isDisabledDate:function(_606,_607){},getClassForDate:function(_608,_609){}});}if(!dojo._hasResource["epages.lang.date"]){dojo._hasResource["epages.lang.date"]=true;dojo.provide("epages.lang.date");epages.lang.date.getWeekOfYear=function(_60a,_60b,_60c){if(_60b===undefined){_60b=epages.vars.Locale.firstDayOfWeek;}if(_60c===undefined){_60c=epages.vars.Locale.minDaysFirstWeek;}var calc=function(date){var c=new Date(date.getFullYear(),0,1).getDay();if(c==0&&_60b==1){c=7;}var week=Math.floor((dojo.date.locale._getDayOfYear(date)+c-1-_60b)/7);if(_60c==1||_60c==7&&c==_60b){week++;}else{if(_60c==4){var g=c-_60b;if(g<4){week++;}}}return week;};var _60d=calc(_60a);if(_60d<1){_60d=calc(new Date(_60a.getFullYear()-1,11,31));}if(_60d>=53){var _60e=calc(new Date(_60a.getFullYear()+1,0,1));_60d=_60e==0?_60d:_60e;}return _60d;};}if(!dojo._hasResource["epages.widget.Calendar"]){dojo._hasResource["epages.widget.Calendar"]=true;dojo.provide("epages.widget.Calendar");dojo.declare("epages.widget.Calendar",[dijit.Calendar],{firstAvailableDate:null,lastAvailableDate:null,templateType:"default",defaultTemplateType:"default",templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div class=\"dijitVisible\">\n\t\t\t\t\t<div class=\"dijitPopup dijitMenu dijitMenuPassive dijitHidden\" dojoAttachPoint=\"monthDropDown\" dojoAttachEvent=\"onmouseup: _onMonthSelect, onmouseover: _onMenuHover, onmouseout: _onMenuHover\">\n\t\t\t\t\t\t<div class=\"dijitCalendarMonthLabelTemplate dijitCalendarMonthLabel\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel dijitInline dijitVisible\" dojoAttachEvent=\"onmousedown: _onMonthToggle\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\n",_templateDirectory:dojo.moduleUrl("epages.widget","templates"),widgetsInTemplate:true,_templateMapping:{"default":{templateString:"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div class=\"dijitVisible\">\n\t\t\t\t\t<div class=\"dijitPopup dijitMenu dijitMenuPassive dijitHidden\" dojoAttachPoint=\"monthDropDown\" dojoAttachEvent=\"onmouseup: _onMonthSelect, onmouseover: _onMenuHover, onmouseout: _onMenuHover\">\n\t\t\t\t\t\t<div class=\"dijitCalendarMonthLabelTemplate dijitCalendarMonthLabel\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel dijitInline dijitVisible\" dojoAttachEvent=\"onmousedown: _onMonthToggle\"></div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\">\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\n"},"flat":{templateString:"<div class=\"Calendar Flat dijitCalendarContainer\"><div class=\"InnerContainer\">\n\t<div>\n\t\t<div class=\"dijitReset dijitCalendarMonthContainer\"><div class=\"MonthSelection\">\n\t\t\t<div class='dijitReset' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<span class=\"dijitInline dijitCalendarIncrementControl dijitCalendarDecrease\"><span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarDecreaseInner\">-</span></span>\n\t\t\t</div>\n\t\t\t<div class='dijitReset'>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitCalendarMonthLabelSpacer\"></div>\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonth\"></div>\n\t\t\t</div>\n\t\t\t<div class='dijitReset' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<div class=\"dijitInline dijitCalendarIncrementControl dijitCalendarIncrease\"><span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow dijitCalendarIncrementControl dijitCalendarIncreaseInner\">+</span></div>\n\t\t\t</div>\n\t\t</div></div>\n\t\t<div class=\"DayLabelHead\">\n\t\t\t<div class=\"dijitReset dijitCalendarWeekLabelTemplate\"><span class=\"dijitCalendarWeekLabel\"></span></div>\n\t\t\t<div class=\"dijitReset dijitCalendarDayLabelTemplate\"><span class=\"dijitCalendarDayLabel\"></span></div>\n\t\t</div>\n\t</div>\n\t<div dojoAttachEvent=\"onclick: _onDayClick\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<div class=\"dijitReset dijitCalendarWeekTemplate\">\n\t\t\t<div class=\"dijitReset dijitCalendarWeekTemplate\"><span class=\"dijitCalendarWeekLabel\"></span></div>\n\t\t\t<div class=\"dijitReset dijitCalendarDateTemplate\"><span class=\"dijitCalendarDateLabel\"></span></div>\n\t\t</div>\n\t</div>\n\t<div class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<div>\n\t\t\t<div class='dijitReset' >\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class=\"HideElement dijitCalendarMonthLabelTemplate\"></div>\n\t<div class=\"Bottom\"></div>\n</div></div>\n\n"}},_yearTip:"",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);if(this._templateMapping!==undefined&&this.templateType!==undefined&&this._templateDirectory!==undefined){if(this._templateMapping[this.templateType]!==undefined){if(this.templateType!=this.defaultTemplateType){var _60f="";if(typeof this._templateMapping[this.templateType]=="object"){var _610=this._templateMapping[this.templateType];if(_610.templateString){this.templatePath=null;this.templateString=_610.templateString;}else{if(_610.templatePath){var _611;dojo.xhrGet({url:_610.templatePath,sync:true,load:function(data){_611=data;}});this.templatePath=null;this.templateString=_611;}else{console.warn("Template type: \""+this.templateType+"\" could not be loaded from json object! Use properties templatePath or templateString to declare its template file!");}}}}}else{console.warn("Template type: \""+this.templateType+"\" does not exist in this widget - use default. ("+this.declaredClass+")");}}this._dictionary=new epages.io.Translation(dojo.moduleUrl("epages.widget","templates/translation"),"auto");this._yearTip=this._dictionary.get("YearTip");},postCreate:function(){var d=this.value;this.inherited("postCreate",arguments);this.attr("value",null);this.attr("value",d);},_populateGrid:function(){epages.widget.Calendar.superclass._populateGrid.apply(this);dojo.query(".dijitCalendarWeekLabel",this.domNode).forEach(function(_612,i){if(i){var node=_612.parentNode.nextSibling;while(node!=null&&node.nodeName=="#text"){node=node.nextSibling;}this._setText(_612,epages.lang.date.getWeekOfYear(new Date(node.dijitDateValue),dojo.cldr.supplemental.getFirstDayOfWeek(this.lang)));}},this);},_dateNode:function(node){while(node&&!node.dijitDateValue){node=node.parentNode;}return node;},_onDayClick:function(evt){var node=evt.target;if(dojo.hasClass(node,"dijitCalendarDateLabel")){epages.widget.Calendar.superclass._onDayClick.apply(this,arguments);}else{dojo.stopEvent(evt);}},isDisabledDate:function(date,_613){date.setHours(0,0,0,0);return (this.lastAvailableDate&&date>this.lastAvailableDate)||(this.firstAvailableDate&&date<this.firstAvailableDate);}});}if(!dojo._hasResource["epages.widget.Datetimeinput"]){dojo._hasResource["epages.widget.Datetimeinput"]=true;dojo.provide("epages.widget.Datetimeinput");dojo.declare("epages.widget.Datetimeinput",[dijit._Widget,dijit._Templated],{templateString:"<span style=\"white-space:nowrap\" class=\"Datetimeinput\" >\n  <input type=\"text\" dojoAttachPoint=\"textBoxNode\" class=\"${class}\" style=\"${style}\" name=\"${name}\" autocomplete=\"off\" />\n  <img class=\"ButtonNode\" dojoAttachPoint=\"buttonNode\"\n        alt=\"${title}\" title=\"${title}\"\n        src=\"${image}\" />\n  <div style=\"display:none\" dojoAttachPoint=\"popupNode\" class=\"CalendarAndTimer\">\n    <div class=\"Layer\">\n      <div class=\"LayerTitleBar\">\n        <div class=\"LayerCloseButton EnableHover\" dojoAttachEvent=\"onclick: closePopup\"></div>\n      </div>\n      <div class=\"ContentContainer\">\n        <div class=\"CalendarNode\" dojoAttachPoint=\"calendarNode\"></div>\n        <div class=\"TimerWrapper\" dojoAttachPoint=\"timerNode\"></div>\n        <div style=\"clear:both\"></div>\n      </div>\n    </div>\n  </div>\n </span>\n",dojoPattern:"",pattern:"",popupclass:"","style":"",name:"",textId:"",value:"",selector:"date",calendar:null,timer:null,hideOnBlur:true,imagePath:epages.themeUrl("images"),image:"",title:"",onchange:"void(0)",firstAvailableDate:"",lastAvailableDate:"",disabled:"",textBoxWidget:undefined,textBoxNode:undefined,_isChangeInput:false,_formats:{"date":"dateFormat","time":"timeFormat","datetime":"datetimeFormat","iso":"iso"},_titles:{"date":"SelectDate","time":"SelectTime","datetime":"SelectDatetime"},_formatError:false,_ep_connects:undefined,postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this._ep_connects=[];if(this._formats[this.selector]=="iso"){this.value=epages.localize.parseDateTime(this.value,"%y-%m-%d");this.pattern=this.pattern||epages.vars.Locale[this._formats["dateFormat"]];}else{this.pattern=this.pattern||epages.vars.Locale[this._formats[this.selector]];}var _614=null;if(typeof (this.value)=="string"&&this.value!=""){_614=epages.localize.parseDateTime(this.value,this.pattern);}else{this.value=null;}if(_614!=null){this.value=_614;}else{this._formatError=true;}var _615=(epages.Browser.engine=="MSIE"&&epages.Browser.version=="6")?"gif":"png";if(this.image==""){this.image=this.imagePath+(this.selector=="time"?"/ico_s_clock."+_615:"/ico_s_calendar."+_615);}if(this.title==""){this.title=epages.io.dictionary.get(this._titles[this.selector]);}if(this.firstAvailableDate){this.firstAvailableDate=epages.localize.parseDateTime(this.firstAvailableDate,this.pattern);}if(this.lastAvailableDate){this.lastAvailableDate=epages.localize.parseDateTime(this.lastAvailableDate,this.pattern);}this.disabled=this.disabled.toLowerCase();this.disabled=(this.disabled=="true"||this.disabled=="disabled"||this.disabled=="1")?true:false;},postCreate:function(){this.inherited("postCreate",arguments);this.textBoxWidget=new epages.widget.FormElement({},this.textBoxNode);this.textBoxWidget.attr("pattern",epages.localize.getPattern(this.selector||"datetime"));this.textBoxNode=this.textBoxWidget.elementNode;if(this.disabled){this.disable();}if(!this._formatError){if(this.value!=null){this.setValueInBox(this.value,true);}}else{if(this.value){this.textBoxNode.value=this.value;dojo.addClass(this.textBoxNode,"DialogError");}}if(this.textId!=""){this.textBoxNode.id=this.textId;}this._ep_connects.push(dojo.connect(this.buttonNode,"click",this,"toggleCalendar"));this._ep_connects.push(dojo.connect(this.textBoxNode,"keyup",this,"onValueInput"));this._ep_connects.push(dojo.connect(this.textBoxNode,"change",this,"onValueInput"));this.textBoxNode.onchange=dojo.hitch(this,function(){eval(this.onchange);});},destroy:function(){var _616=this._ep_connects;for(var c in _616){dojo.disconnect(_616[c]);delete this._ep_connects[c];}if(this.timer){this.timer.destroy();}if(this.calendar){this.calendar.destroy();}if(this.popup){this.popup.destroy();}if(this.textBoxWidget){this.textBoxWidget.destroy();}this.inherited("destroy",arguments);},setValueInBox:function(date,_617){if(date){this.value=new Date(date);if(!this._isChangeInput){this.textBoxNode.value=epages.localize.formatDateTime(date,this.pattern);if(_617){this.textBoxNode.startupValue=this.textBoxNode.value;}dojo.removeClass(this.textBoxNode,"DialogError");}}else{this.value=undefined;this.textBoxNode.value="";}dojo.publish(this.id+"/change",[this.value,this.textBoxNode.value]);if(!this._isChangeInput){epages.event.fire(this.textBoxNode,"change");}},setValue:function(date){if(date===undefined||date===null||date==""){this.setValueInBox(undefined);}else{this.value=typeof (date)=="string"?epages.localize.parseDateTime(date,this.pattern):new Date(date);this.onTimeChange(this.value);}},disable:function(){this.textBoxNode.disabled="disabled";dojo.addClass(this.buttonNode,"Opacity30");this.disabled=true;},enable:function(){this.textBoxNode.disabled="";dojo.removeClass(this.buttonNode,"Opacity30");this.disabled=false;},_createCalendar:function(){if(this.value==null){this.value=this.firstStartDate?this.firstStartDate:new Date();if(this.calendar&&this.calendar.value&&dojo.date.compare(this.calendar.value,this.value,"date")){this.value=this.calendar.value;}}if(this.selector!="date"){if(this.timer==null){this.timer=new epages.widget.Timespinner({value:this.value},this.timerNode);if(this.selector!="datetime"){this.timer.domNode.style.border="0";}}else{this.timer.setValue(this.value);this.timerNode.parentNode.replaceChild(this.timer.domNode,this.timerNode);}dojo.subscribe(this.timer.id+"/onChange",this,"onTimeChange");}if(this.selector!="time"){if(this.calendar==null){this.calendar=new epages.widget.Calendar({value:this.value,timer:this.timer,firstAvailableDate:this.firstAvailableDate,lastAvailableDate:this.lastAvailableDate},this.calendarNode);}else{if(this.calendar.setValue===undefined&&typeof this.calendar=="function"){this.calendar=this.calendar();}this.calendar.attr("value",this.value);this.calendarNode.parentNode.replaceChild(this.calendar.domNode,this.calendarNode);}this.calendar.onValueSelected=dojo.hitch(this,"onCalendarChange");}this.popup=new epages.widget.Popup({parent:this.buttonNode,around:this.buttonNode,hideOnBlur:this.hideOnBlur,"class":this["popupclass"]},this.popupNode);this.attr("value",this.value);},toggleCalendar:function(){if(!this.disabled){if(this.popup==null){this._createCalendar();}if(this.value===undefined){this._isChangeInput=true;var _618=this.firstStartDate?this.firstStartDate:new Date();this.calendar.attr("value",_618);this._isChangeInput=false;}this.popup.toggle();}},onCalendarChange:function(date){if(this.value===undefined){var _619=this.firstStartDate?this.firstStartDate:new Date();this.value=_619;}date.setHours(this.value.getHours(),this.value.getMinutes(),this.value.getSeconds());if(this.timer!=null){this.timer.attr("value",date);this.setValueInBox(this.timer.getValue());}else{this.setValueInBox(date);}if(this.selector=="date"){this.popup.hide();}this.textBoxWidget.validate();},onTimeChange:function(date){if(this.calendar!=null){this.value=new Date(date);if(typeof this.calendar.setValue=="function"){this.onCalendarChange(date);}else{this.setValueInBox(date);}}else{this.setValueInBox(date);}},onValueInput:function(evt){this._isChangeInput=true;var _61a=this.textBoxNode.value;var date=_61a==""?null:epages.localize.parseDateTime(_61a,this.pattern);if(_61a==""||date!=null){this.attr("value",date);dojo.removeClass(this.textBoxNode,"DialogError");}else{dojo.addClass(this.textBoxNode,"DialogError");}this._isChangeInput=false;},closePopup:function(){this.popup.hide();}});}if(!dojo._hasResource["epages.templated"]){dojo._hasResource["epages.templated"]=true;dojo.provide("epages.templated");(function(dj){dj.declare("epages.Templated",null,{_translator:new epages.io.Translation(),_templatesCache:null,templates:null,constructor:function(){this.templates=this.templates||{};this._templatesCache=this._templatesCache||{};},loadLocale:function(url,_61b){var type=typeof _61b;if(type==="boolean"){this._translator.load(url,_61b);}else{if(type==="string"){this._translator.loadLocale(url,_61b);}}},loadTemplate:function(url,name){this.templates[name]=dijit._Templated.getCachedTemplate(url,null,false);},addTemplate:function(_61c,name){this.templates[name]=_61c;},getTemplate:function(name,_61d){if(this.templates[name]){if(!this._templatesCache[name]||!_61d){this._templatesCache[name]=this._translator.replaceLanguageTags(this.templates[name].replace(/[\ \r\n\t]*(.*)[\ \r\n\t]*/,function(_61e,$1){return $1;}));}var _61f=document.createElement("div");_61f.innerHTML=this._templatesCache[name];var ret={};var _620=dojo.parser.parse(_61f);for(var i=0,_621=_620.length;i<_621;i++){ret[_620[i].id]=_620[i].domNode;}ret.domNode=_61f.childNodes[0];dj.query("*[dojoAttachpoint]",_61f).forEach(function(node,i){ret[dj.attr(node,"dojoAttachpoint")]=node;dj.removeAttr(node,"dojoAttachpoint");});return this._templatesCache[name]=ret;}}});})(dojo);}if(!dojo._hasResource["dojo.DeferredList"]){dojo._hasResource["dojo.DeferredList"]=true;dojo.provide("dojo.DeferredList");dojo.declare("dojo.DeferredList",dojo.Deferred,{constructor:function(list,_622,_623,_624,_625){this.list=list;this.resultList=new Array(this.list.length);this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_625;this.silentlyCancelled=false;if(this.list.length===0&&!_622){this.callback(this.resultList);}this.finishedCount=0;this.fireOnOneCallback=_622;this.fireOnOneErrback=_623;this.consumeErrors=_624;dojo.forEach(this.list,function(d,_626){d.addCallback(this,function(r){this._cbDeferred(_626,true,r);return r;});d.addErrback(this,function(r){this._cbDeferred(_626,false,r);return r;});},this);},_cbDeferred:function(_627,_628,_629){this.resultList[_627]=[_628,_629];this.finishedCount+=1;if(this.fired!==0){if(_628&&this.fireOnOneCallback){this.callback([_627,_629]);}else{if(!_628&&this.fireOnOneErrback){this.errback(_629);}else{if(this.finishedCount==this.list.length){this.callback(this.resultList);}}}}if(!_628&&this.consumeErrors){_629=null;}return _629;},gatherResults:function(_62a){var d=new dojo.DeferredList(_62a,false,true,false);d.addCallback(function(_62b){var ret=[];dojo.forEach(_62b,function(_62c){ret.push(_62c[1]);});return ret;});return d;}});}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_62d,_62e){var c=document.cookie;if(arguments.length==1){var _62f=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _62f?decodeURIComponent(_62f[1]):undefined;}else{_62e=_62e||{};var exp=_62e.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_62e.expires=d;}if(exp&&exp.toUTCString){_62e.expires=exp.toUTCString();}_62d=encodeURIComponent(_62d);var _630=name+"="+_62d,_631;for(_631 in _62e){_630+="; "+_631;var _632=_62e[_631];if(_632!==true){_630+="="+_632;}}document.cookie=_630;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.tree.TreeStoreModel"]){dojo._hasResource["dijit.tree.TreeStoreModel"]=true;dojo.provide("dijit.tree.TreeStoreModel");dojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(args){dojo.mixin(this,args);this.connects=[];var _633=this.store;if(!_633.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_633.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_633,"onNew",this,"onNewItem"),dojo.connect(_633,"onDelete",this,"onDeleteItem"),dojo.connect(_633,"onSet",this,"onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_634,_635){if(this.root){_634(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_636){if(_636.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_636.length+" items, but must return exactly one item");}this.root=_636[0];_634(this.root);}),onError:_635});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_637,_638,_639){var _63a=this.store;if(!_63a.isItemLoaded(_637)){var _63b=dojo.hitch(this,arguments.callee);_63a.loadItem({item:_637,onItem:function(_63c){_63b(_63c,_638,_639);},onError:_639});return;}var _63d=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_63a.getValues(_637,this.childrenAttrs[i]);_63d=_63d.concat(vals);}var _63e=0;if(!this.deferItemLoadingUntilExpand){dojo.forEach(_63d,function(item){if(!_63a.isItemLoaded(item)){_63e++;}});}if(_63e==0){_638(_63d);}else{var _63f=function _63f(item){if(--_63e==0){_638(_63d);}};dojo.forEach(_63d,function(item){if(!_63a.isItemLoaded(item)){_63a.loadItem({item:item,onItem:_63f,onError:_639});}});}},isItem:function(_640){return this.store.isItem(_640);},fetchItemByIdentity:function(_641){this.store.fetchItemByIdentity(_641);},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){if(this.labelAttr){return this.store.getValue(item,this.labelAttr);}else{return this.store.getLabel(item);}},newItem:function(args,_642,_643){var _644={parent:_642,attribute:this.childrenAttrs[0],insertIndex:_643};if(this.newItemIdAttr&&args[this.newItemIdAttr]){this.fetchItemByIdentity({identity:args[this.newItemIdAttr],scope:this,onItem:function(item){if(item){this.pasteItem(item,null,_642,true,_643);}else{this.store.newItem(args,_644);}}});}else{this.store.newItem(args,_644);}},pasteItem:function(_645,_646,_647,_648,_649){var _64a=this.store,_64b=this.childrenAttrs[0];if(_646){dojo.forEach(this.childrenAttrs,function(attr){if(_64a.containsValue(_646,attr,_645)){if(!_648){var _64c=dojo.filter(_64a.getValues(_646,attr),function(x){return x!=_645;});_64a.setValues(_646,attr,_64c);}_64b=attr;}});}if(_647){if(typeof _649=="number"){var _64d=_64a.getValues(_647,_64b);_64d.splice(_649,0,_645);_64a.setValues(_647,_64b,_64d);}else{_64a.setValues(_647,_64b,_64a.getValues(_647,_64b).concat(_645));}}},onChange:function(item){},onChildrenChange:function(_64e,_64f){},onDelete:function(_650,_651){},onNewItem:function(item,_652){if(!_652){return;}this.getChildren(_652.item,dojo.hitch(this,function(_653){this.onChildrenChange(_652.item,_653);}));},onDeleteItem:function(item){this.onDelete(item);},onSetItem:function(item,_654,_655,_656){if(dojo.indexOf(this.childrenAttrs,_654)!=-1){this.getChildren(item,dojo.hitch(this,function(_657){this.onChildrenChange(item,_657);}));}else{this.onChange(item);}}});}if(!dojo._hasResource["dijit.tree.ForestStoreModel"]){dojo._hasResource["dijit.tree.ForestStoreModel"]=true;dojo.provide("dijit.tree.ForestStoreModel");dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_658){this.root={store:this,root:true,id:_658.rootId,label:_658.rootLabel,children:_658.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_659,_65a,_65b){if(_659===this.root){if(this.root.children){_65a(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_65c){this.root.children=_65c;_65a(_65c);}),onError:_65b});}}else{this.inherited(arguments);}},isItem:function(_65d){return (_65d===this.root)?true:this.inherited(arguments);},fetchItemByIdentity:function(_65e){if(_65e.identity==this.root.id){var _65f=_65e.scope?_65e.scope:dojo.global;if(_65e.onItem){_65e.onItem.call(_65f,this.root);}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_660,_661){if(_660===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_662,_663,_664,_665,_666){if(_663===this.root){if(!_665){this.onLeaveRoot(_662);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_662,_663===this.root?null:_663,_664===this.root?null:_664,_665,_666);if(_664===this.root){this.onAddToRoot(_662);}},onAddToRoot:function(item){console.log(this,": item ",item," added to root");},onLeaveRoot:function(item){console.log(this,": item ",item," removed from root");},_requeryTop:function(){var _667=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_668){this.root.children=_668;if(_667.length!=_668.length||dojo.some(_667,function(item,idx){return _668[idx]!=item;})){this.onChildrenChange(this.root,_668);}})});},onNewItem:function(item,_669){this._requeryTop();this.inherited(arguments);},onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.Tree"]){dojo._hasResource["dijit.Tree"]=true;dojo.provide("dijit.Tree");dojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:dojo.cache("dijit","templates/TreeNode.html","<div class=\"dijitTreeNode\" waiRole=\"presentation\"\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" waiRole=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick\"\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\n\t\t><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" waiRole=\"presentation\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitTreeIcon\" waiRole=\"presentation\"\n\t\t\t><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" dojoAttachEvent=\"onfocus:_onLabelFocus, onblur:_onLabelBlur\"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" waiRole=\"presentation\" style=\"display: none;\"></div>\n</div>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"labelNode",type:"innerText"},tooltip:{node:"rowNode",type:"attribute",attribute:"title"}}),postCreate:function(){this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);}},_setIndentAttr:function(_66a){this.indent=_66a;var _66b=(Math.max(_66a,0)*this.tree._nodePixelIndent)+"px";dojo.style(this.domNode,"backgroundPosition",_66b+" 0px");dojo.style(this.rowNode,dojo._isBodyLtr()?"paddingLeft":"paddingRight",_66b);dojo.forEach(this.getChildren(),function(_66c){_66c.attr("indent",_66a+1);});},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_66d=tree.model;if(tree._v10Compat&&item===_66d.root){item=null;}this._applyClassAndStyle(item,"icon","Icon");this._applyClassAndStyle(item,"label","Label");this._applyClassAndStyle(item,"row","Row");},_applyClassAndStyle:function(item,_66e,_66f){var _670="_"+_66e+"Class";var _671=_66e+"Node";if(this[_670]){dojo.removeClass(this[_671],this[_670]);}this[_670]=this.tree["get"+_66f+"Class"](item,this.isExpanded);if(this[_670]){dojo.addClass(this[_671],this[_670]);}dojo.style(this[_671],this.tree["get"+_66f+"Style"](item,this.isExpanded)||{});},_updateLayout:function(){var _672=this.getParent();if(!_672||_672.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_673){var _674=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_675=["*","-","+","*"],idx=_673?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.removeClass(this.expandoNode,_674);dojo.addClass(this.expandoNode,_674[idx]);this.expandoNodeText.innerHTML=_675[idx];},expand:function(){if(this._expandDeferred){return this._expandDeferred;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");dijit.setWaiRole(this.containerNode,"group");dojo.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","true");}var def,_676=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration,onEnd:function(){def.callback(true);}});def=(this._expandDeferred=new dojo.Deferred(function(){_676.stop();}));_676.play();return def;},collapse:function(){if(!this.isExpanded){return;}if(this._expandDeferred){this._expandDeferred.cancel();delete this._expandDeferred;}this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","false");}dojo.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeOut.play();},indent:0,setChildItems:function(_677){var tree=this.tree,_678=tree.model,defs=[];this.getChildren().forEach(function(_679){dijit._Container.prototype.removeChild.call(this,_679);},this);this.state="LOADED";if(_677&&_677.length>0){this.isExpandable=true;dojo.forEach(_677,function(item){var id=_678.getIdentity(item),_67a=tree._itemNodesMap[id],node;if(_67a){for(var i=0;i<_67a.length;i++){if(_67a[i]&&!_67a[i].getParent()){node=_67a[i];node.attr("indent",this.indent+1);break;}}}if(!node){node=this.tree._createTreeNode({item:item,tree:tree,isExpandable:_678.mayHaveChildren(item),label:tree.getLabel(item),tooltip:tree.getTooltip(item),indent:this.indent+1});if(_67a){_67a.push(node);}else{tree._itemNodesMap[id]=[node];}}this.addChild(node);if(this.tree.autoExpand||this.tree._state(item)){defs.push(tree._expandNode(node));}},this);dojo.forEach(this.getChildren(),function(_67b,idx){_67b._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0];if(fc){fc.setSelected(true);tree.lastFocused=fc;}else{tree.domNode.setAttribute("tabIndex","0");}}return new dojo.DeferredList(defs);},removeChild:function(node){this.inherited(arguments);var _67c=this.getChildren();if(_67c.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_67c,function(_67d){_67d._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){dojo.addClass(this.labelNode,"dijitTreeLabelFocused");this.tree._onNodeFocus(this);},_onLabelBlur:function(evt){dojo.removeClass(this.labelNode,"dijitTreeLabelFocused");},setSelected:function(_67e){var _67f=this.labelNode;_67f.setAttribute("tabIndex",_67e?"0":"-1");dijit.setWaiState(_67f,"selected",_67e);dojo.toggleClass(this.rowNode,"dijitTreeNodeSelected",_67e);},_onClick:function(evt){this.tree._onClick(this,evt);},_onDblClick:function(evt){this.tree._onDblClick(this,evt);},_onMouseEnter:function(evt){dojo.addClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseEnter(this,evt);},_onMouseLeave:function(evt){dojo.removeClass(this.rowNode,"dijitTreeNodeHover");this.tree._onNodeMouseLeave(this,evt);}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],path:[],selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:dojo.cache("dijit","templates/Tree.html","<div class=\"dijitTree dijitTreeContainer\" waiRole=\"tree\"\n\tdojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<div class=\"dijitInline dijitTreeIndent\" style=\"position: absolute; top: -9999px\" dojoAttachPoint=\"indentDetector\"></div>\n</div>\n"),persist:true,autoExpand:false,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(_680,_681){dojo.publish(this.id,[dojo.mixin({tree:this,event:_680},_681||{})]);},postMixInProperties:function(){this.tree=this;this._itemNodesMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}this._loadDeferred=new dojo.Deferred();this.inherited(arguments);},postCreate:function(){this._initState();if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _682={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_682[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_682);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _683={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_683.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_683.getChildren=dojo.hitch(this,function(item,_684,_685){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_684,_685);});}this.model=new dijit.tree.ForestStoreModel(_683);this.showRoot=Boolean(this.label);},onLoad:function(){},_load:function(){this.model.getRoot(dojo.hitch(this,function(item){var rn=(this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item),indent:this.showRoot?0:-1}));if(!this.showRoot){rn.rowNode.style.display="none";}this.domNode.appendChild(rn.domNode);var _686=this.model.getIdentity(item);if(this._itemNodesMap[_686]){this._itemNodesMap[_686].push(rn);}else{this._itemNodesMap[_686]=[rn];}rn._updateLayout();this._expandNode(rn).addCallback(dojo.hitch(this,function(){this._loadDeferred.callback(true);this.onLoad();}));}),function(err){console.error(this,": error loading root: ",err);});},getNodesByItem:function(item){if(!item){return [];}var _687=dojo.isString(item)?item:this.model.getIdentity(item);return [].concat(this._itemNodesMap[_687]);},_setSelectedItemAttr:function(item){var _688=this.attr("selectedItem");var _689=(!item||dojo.isString(item))?item:this.model.getIdentity(item);if(_689==_688?this.model.getIdentity(_688):null){return;}var _68a=this._itemNodesMap[_689];if(_68a&&_68a.length){this.focusNode(_68a[0]);}else{if(this.lastFocused){this.lastFocused.setSelected(false);this.lastFocused=null;}}},_getSelectedItemAttr:function(){return this.lastFocused&&this.lastFocused.item;},_setPathAttr:function(path){if(!path||!path.length){return;}this._loadDeferred.addCallback(dojo.hitch(this,function(){if(!this.rootNode){console.debug("!this.rootNode");return;}if(path[0]!==this.rootNode.item&&(dojo.isString(path[0])&&path[0]!=this.model.getIdentity(this.rootNode.item))){console.error(this,":path[0] doesn't match this.rootNode.item.  Maybe you are using the wrong tree.");return;}path.shift();var node=this.rootNode;function _68b(){var item=path.shift(),_68c=dojo.isString(item)?item:this.model.getIdentity(item);dojo.some(this._itemNodesMap[_68c],function(n){if(n.getParent()==node){node=n;return true;}return false;});if(path.length){this._expandNode(node).addCallback(dojo.hitch(this,_68b));}else{if(this.lastFocused!=node){this.focusNode(node);}}};this._expandNode(node).addCallback(dojo.hitch(this,_68b));}));},_getPathAttr:function(){if(!this.lastFocused){return;}var res=[];var _68d=this.lastFocused;while(_68d&&_68d!==this.rootNode){res.unshift(_68d.item);_68d=_68d.getParent();}res.unshift(this.rootNode.item);return res;},mayHaveChildren:function(item){},getItemChildren:function(_68e,_68f){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_690){return (!item||this.model.mayHaveChildren(item))?(_690?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_691){},getRowClass:function(item,_692){},getIconStyle:function(item,_693){},getLabelStyle:function(item,_694){},getRowStyle:function(item,_695){},getTooltip:function(item){return "";},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _696=dijit.getEnclosingWidget(e.target);if(!_696){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_696,key:key.toLowerCase()});dojo.stopEvent(e);}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch;}var map=this._keyHandlerMap;if(!map){map={};map[dk.ENTER]="_onEnterKey";map[this.isLeftToRight()?dk.LEFT_ARROW:dk.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dk.RIGHT_ARROW:dk.LEFT_ARROW]="_onRightArrow";map[dk.UP_ARROW]="_onUpArrow";map[dk.DOWN_ARROW]="_onDownArrow";map[dk.HOME]="_onHomeKey";map[dk.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[key]){this[this._keyHandlerMap[key]]({node:_696,item:_696.item,evt:e});dojo.stopEvent(e);}}},_onEnterKey:function(_697,evt){this._publish("execute",{item:_697.item,node:_697.node});this.onClick(_697.item,_697.node,evt);},_onDownArrow:function(_698){var node=this._getNextNode(_698.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_699){var node=_699.node;var _69a=node.getPreviousSibling();if(_69a){node=_69a;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _69b=node.getChildren();node=_69b[_69b.length-1];}}else{var _69c=node.getParent();if(!(!this.showRoot&&_69c===this.rootNode)){node=_69c;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_69d){var node=_69d.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_69e){var node=_69e.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _69f=node.getParent();if(_69f&&_69f.isTreeNode&&!(!this.showRoot&&_69f===this.rootNode)){this.focusNode(_69f);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_6a0){var node=this.rootNode;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},multiCharSearchDuration:250,_onLetterKeyNav:function(_6a1){var cs=this._curSearch;if(cs){cs.pattern=cs.pattern+_6a1.key;clearTimeout(cs.timer);}else{cs=this._curSearch={pattern:_6a1.key,startNode:_6a1.node};}var self=this;cs.timer=setTimeout(function(){delete self._curSearch;},this.multiCharSearchDuration);var node=cs.startNode;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==cs.startNode&&(node.label.toLowerCase().substr(0,cs.pattern.length)!=cs.pattern));if(node&&node.isTreeNode){if(node!==cs.startNode){this.focusNode(node);}}},_onClick:function(_6a2,e){var _6a3=e.target;if((this.openOnClick&&_6a2.isExpandable)||(_6a3==_6a2.expandoNode||_6a3==_6a2.expandoNodeText)){if(_6a2.isExpandable){this._onExpandoClick({node:_6a2});}}else{this._publish("execute",{item:_6a2.item,node:_6a2,evt:e});this.onClick(_6a2.item,_6a2,e);this.focusNode(_6a2);}dojo.stopEvent(e);},_onDblClick:function(_6a4,e){var _6a5=e.target;if((this.openOnDblClick&&_6a4.isExpandable)||(_6a5==_6a4.expandoNode||_6a5==_6a4.expandoNodeText)){if(_6a4.isExpandable){this._onExpandoClick({node:_6a4});}}else{this._publish("execute",{item:_6a4.item,node:_6a4,evt:e});this.onDblClick(_6a4.item,_6a4,e);this.focusNode(_6a4);}dojo.stopEvent(e);},_onExpandoClick:function(_6a6){var node=_6a6.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node,evt){},onDblClick:function(item,node,evt){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _6a7=node.getNextSibling();if(_6a7){return _6a7;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node._expandNodeDeferred){delete node._expandNodeDeferred;}if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(node.item){this._state(node.item,false);this._saveState();}}},_expandNode:function(node,_6a8){if(node._expandNodeDeferred&&!_6a8){return node._expandNodeDeferred;}var _6a9=this.model,item=node.item,_6aa=this;switch(node.state){case "UNCHECKED":node.markProcessing();var def=(node._expandNodeDeferred=new dojo.Deferred());_6a9.getChildren(item,function(_6ab){node.unmarkProcessing();var scid=node.setChildItems(_6ab);var ed=_6aa._expandNode(node,true);scid.addCallback(function(){ed.addCallback(function(){def.callback();});});},function(err){console.error(_6aa,": error loading root children: ",err);});break;default:def=(node._expandNodeDeferred=node.expand());this.onOpen(node.item,node);if(item){this._state(item,true);this._saveState();}}return def;},focusNode:function(node){dijit.focus(node.labelNode);},_onNodeFocus:function(node){if(node){if(node!=this.lastFocused&&this.lastFocused&&!this.lastFocused._destroyed){this.lastFocused.setSelected(false);}node.setSelected(true);this.lastFocused=node;}},_onNodeMouseEnter:function(node){},_onNodeMouseLeave:function(node){},_onItemChange:function(item){var _6ac=this.model,_6ad=_6ac.getIdentity(item),_6ae=this._itemNodesMap[_6ad];if(_6ae){var self=this;dojo.forEach(_6ae,function(node){node.attr({label:self.getLabel(item),tooltip:self.getTooltip(item)});node._updateItemClasses(item);});}},_onItemChildrenChange:function(_6af,_6b0){var _6b1=this.model,_6b2=_6b1.getIdentity(_6af),_6b3=this._itemNodesMap[_6b2];if(_6b3){dojo.forEach(_6b3,function(_6b4){_6b4.setChildItems(_6b0);});}},_onItemDelete:function(item){var _6b5=this.model,_6b6=_6b5.getIdentity(item),_6b7=this._itemNodesMap[_6b6];if(_6b7){dojo.forEach(_6b7,function(node){var _6b8=node.getParent();if(_6b8){_6b8.removeChild(node);}node.destroyRecursive();});delete this._itemNodesMap[_6b6];}},_initState:function(){if(this.persist){var _6b9=dojo.cookie(this.cookieName);this._openedItemIds={};if(_6b9){dojo.forEach(_6b9.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_6ba){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_6ba){this._openedItemIds[id]=true;}else{delete this._openedItemIds[id];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch;}if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!dojo.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},resize:function(_6bb){if(_6bb){dojo.marginBox(this.domNode,_6bb);dojo.style(this.domNode,"overflow","auto");}this._nodePixelIndent=dojo.marginBox(this.tree.indentDetector).w;if(this.tree.rootNode){this.tree.rootNode.attr("indent",this.showRoot?0:-1);}},_createTreeNode:function(args){return new dijit._TreeNode(args);}});}if(!dojo._hasResource["epages.validate.string"]){dojo._hasResource["epages.validate.string"]=true;dojo.provide("epages.validate.string");epages.validate.string.isXMLAttribute=function(_6bc){if(_6bc==""){return false;}var _6bd="[A-Za-zÀ-ÖØ-öø-ÿĀ-ıĴ-ľŁ-ňŊ-žƀ-ǃǍ-ǰǴ-ǵǺ-ȗɐ-ʨʻ-ˁΆΈ-ΊΌΎ-ΡΣ-ώϐ-ϖϚϜϞϠϢ-ϳЁ-ЌЎ-яё-ќў-ҁҐ-ӄӇ-ӈӋ-ӌӐ-ӫӮ-ӵӸ-ӹԱ-Ֆՙա-ֆא-תװ-ײء-غف-يٱ-ڷں-ھۀ-ێې-ۓەۥ-ۦअ-हऽक़-ॡঅ-ঌএ-ঐও-নপ-রলশ-হড়-ঢ়য়-ৡৰ-ৱਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઋઍએ-ઑઓ-નપ-રલ-ળવ-હઽૠଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଶ-ହଽଡ଼-ଢ଼ୟ-ୡஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-வஷ-ஹఅ-ఌఎ-ఐఒ-నప-ళవ-హౠ-ౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹೞೠ-ೡഅ-ഌഎ-ഐഒ-നപ-ഹൠ-ൡก-ฮะา-ำเ-ๅກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ຮະາ-ຳຽເ-ໄཀ-ཇཉ-ཀྵႠ-Ⴥა-ჶᄀᄂ-ᄃᄅ-ᄇᄉᄋ-ᄌᄎ-ᄒᄼᄾᅀᅌᅎᅐᅔ-ᅕᅙᅟ-ᅡᅣᅥᅧᅩᅭ-ᅮᅲ-ᅳᅵᆞᆨᆫᆮ-ᆯᆷ-ᆸᆺᆼ-ᇂᇫᇰᇹḀ-ẛẠ-ỹἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼΩK-Å℮ↀ-ↂぁ-ゔァ-ヺㄅ-ㄬ가-힣]";var _6be="[一-龥〇〡-〩]";var _6bf="[̀-͠ͅ-҃͡-֑҆-֣֡-ֹֻ-ֽֿׁ-ׂًׄ-ْٰۖ-ۜ۝-۟۠-ۤۧ-۪ۨ-ۭँ-ः़ा-ौ्॑-॔ॢ-ॣঁ-ঃ়ািী-ৄে-ৈো-্ৗৢ-ৣਂ਼ਾਿੀ-ੂੇ-ੈੋ-੍ੰ-ੱઁ-ઃ઼ા-ૅે-ૉો-્ଁ-ଃ଼ା-ୃେ-ୈୋ-୍ୖ-ୗஂ-ஃா-ூெ-ைொ-்ௗఁ-ఃా-ౄె-ైొ-్ౕ-ౖಂ-ಃಾ-ೄೆ-ೈೊ-್ೕ-ೖം-ഃാ-ൃെ-ൈൊ-്ൗัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-༹༙༵༷༾༿ཱ-྄྆-ྋྐ-ྕྗྙ-ྭྱ-ྷྐྵ⃐-〪⃜⃡-゙゚〯]";var _6c0="[0-9٠-٩۰-۹०-९০-৯੦-੯૦-૯୦-୯௧-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩]";var _6c1="[·ːˑ·ـๆໆ々〱-〵ゝ-ゞー-ヾ]";var _6c2=_6bd+"|"+_6be;var _6c3=_6c2+"|"+_6c0+"|[-._:]|"+_6bf+"|"+_6c1;var _6c4="^("+_6c2+"|[_:])"+"("+_6c3+")*$";return _6bc.match(new RegExp(_6c4))?true:false;};epages.validate.string.filterInvalidChars=function(_6c5){var _6c6=/%5C/gi;_6c5=encodeURIComponent(_6c5);var _6c7=_6c5.replace(_6c6,"");_6c7=decodeURIComponent(_6c7);return _6c7;};}if(!dojo._hasResource["epages.cartridges.de_epages.product.basketlink"]){dojo._hasResource["epages.cartridges.de_epages.product.basketlink"]=true;dojo.provide("epages.cartridges.de_epages.product.basketlink");epages.cartridges.de_epages.product.basketlink={valueUp:function(_6c8,_6c9,_6ca){var _6cb=epages.localize.parseNumber(_6c8.value);if(!_6cb){_6cb=_6ca-1;}if(_6cb<_6ca){_6cb=_6ca-1;}var _6cc=Math.round((_6cb-_6ca)/_6c9)+1;_6c8.value=epages.localize.formatNumber(_6ca+_6cc*_6c9);},valueDown:function(_6cd,_6ce,_6cf){var _6d0=epages.localize.parseNumber(_6cd.value);if(!_6d0){_6d0=0;}var _6d1=Math.round((_6d0-_6cf)/_6ce)-1;if(_6d1<0){_6d1=0;}_6cd.value=epages.localize.formatNumber(_6cf+_6d1*_6ce);}};}if(!dojo._hasResource["epages.widget.NumberSpinner"]){dojo._hasResource["epages.widget.NumberSpinner"]=true;dojo.provide("epages.widget.NumberSpinner");dojo.declare("epages.widget.NumberSpinner",[dijit._Widget,dijit._Templated],{name:"",value:"",minValue:"0",maxValue:Number.MAX_VALUE.toString(),delta:"0",trimInterval:"false",unit:"",_spinTimeout:null,_spinCounter:0,_spinIntervalFunction:null,templateString:"<span class=\"NumberSpinner EnableHover\">\n\n  <span class=\"InputFieldContainer\">\n    <input dojoAttachPoint=\"fakeNode\" type=\"text\" class=\"FakedInput\" unselectable=\"on\" />\n    <span dojoAttachPoint=\"containerNode\" class=\"Container\">\n      <input dojoAttachPoint=\"inputNode\" type=\"text\" class=\"RealInput\" value=\"${value}\" name=\"${name}\" />\n      <span dojoAttachPoint=\"unitNode\" class=\"InputFieldUnit\" unselectable=\"on\" style=\"display:none\">${unit}</span>\n    </span>\n  </span>\n\n  <span class=\"ButtonWrapper\">\n    <span class=\"NumberSpinnerButton\">\n      <span dojoAttachPoint=\"upNode\"   class=\"NumberSpinnerUpArrow EnableHover\"></span>\n      <span dojoAttachPoint=\"downNode\" class=\"NumberSpinnerDownArrow EnableHover\"></span>\n    </span>\n  </span>\n</span>\n\n\n",postCreate:function(){this.inherited("postCreate",arguments);var _6d2=this.fakeNode.clientLeft;var left=_6d2+40;var _6d3=this.fakeNode.clientTop;this.containerNode.style.top=_6d3+"px";this.unitNode.style.left=left+"px";if(this.unit!=""){this.unitNode.style.display="";}var _6d4=this.unitNode.clientWidth+40;this.fakeNode.style.width=_6d4+"px";this.connect(this.inputNode,"onkeyup","onKeyUp");this.connect(this.upNode,"mouseup","onMouseUp");this.connect(this.downNode,"mouseup","onMouseUp");this.connect(this.upNode,"mouseout","onMouseUp");this.connect(this.downNode,"mouseout","onMouseUp");this.connect(this.upNode,"mousedown","onMouseDown");this.connect(this.downNode,"mousedown","onMouseDown");this.value=epages.localize.parseNumber(this.value);this.minValue=epages.localize.parseNumber(this.minValue);this.maxValue=epages.localize.parseNumber(this.maxValue);this.delta=epages.localize.parseNumber(this.delta);if(isNaN(this.value)){console.warn("Value is not a Number in "+this.declaredClass);}if(isNaN(this.minValue)){console.warn("minValue is not a Number in "+this.declaredClass);}if(isNaN(this.maxValue)){console.warn("maxValue is not a Number in "+this.declaredClass);}if(this.value<this.minValue){this.value=this.minValue;this.updateInputNode();console.warn("value is smaller than minValue "+this.declaredClass);}if(this.value>this.maxValue){this.value=this.maxValue;this.updateInputNode();console.warn("value is larger than maxValue "+this.declaredClass);}this.trimInterval=epages.string.toBoolean(this.trimInterval);},updateInputNode:function(){this.inputNode.value=epages.localize.formatNumber(this.value);},spin:function(_6d5){if(_6d5==0){return;}if(_6d5>0){if(this.trimInterval){var _6d6=this.value+this.delta;var _6d7=Math.round((_6d6-this.minValue)/this.delta);this.value=this.minValue+_6d7*this.delta;}else{this.value=this.value+this.delta;}if(this.value>this.maxValue){this.value=this.maxValue;}}else{if(_6d5<0){if(this.trimInterval){var _6d6=this.value-this.delta;var _6d7=Math.round((_6d6-this.minValue)/this.delta);this.value=this.minValue+_6d7*this.delta;}else{this.value=this.value-this.delta;}if(this.value<this.minValue){this.value=this.minValue;}}}this.updateInputNode();},onMouseDown:function(evt){var _6d8;if(evt.target==this.upNode){_6d8=1;}else{if(evt.target==this.downNode){_6d8=-1;}else{return;}}this._spinIntervalFunction=dojo.hitch(this,function(){var _6d9=this._spinCounter>5?this._spinCounter>25?25:55:200;this.spin(_6d8);this._spinCounter++;window.clearTimeout(this._spinTimeout);this._spinTimeout=undefined;this._spinTimeout=window.setTimeout(this._spinIntervalFunction,_6d9);});this._spinIntervalFunction();},onMouseUp:function(){if(this._spinCounter){epages.event.fire(this.inputNode,"change");}this._spinCounter=0;window.clearTimeout(this._spinTimeout);},valueUp:function(){this.spin(1);},valueDown:function(){this.spin(-1);},onKeyUp:function(){var _6da=epages.localize.parseNumber(this.inputNode.value);if(isNaN(_6da)){console.warn("Value is not a Number in onKeyup in "+this.declaredClass);}else{this.value=_6da;}}});}if(!dojo._hasResource["epages.widget.CoverFlow"]){dojo._hasResource["epages.widget.CoverFlow"]=true;dojo.provide("epages.widget.CoverFlow");dojo.declare("epages.widget.CoverFlow",[dijit._Widget],{imageData:[],coverFlowModuleSrc:dojo.moduleUrl("epages.widget","templates/CoverFlow.swf"),_titleAttr:null,_currentWidth:0,_buildCoverFlow:function(){this.srcNodeRef.title=this._titleAttr;this.srcNodeRef.innerHTML="<object name='"+this.id+"_flash' id='"+this.id+"_flash' type='application/x-shockwave-flash' data='"+this.coverFlowModuleSrc+"'><param name='movie' value='"+this.coverFlowModuleSrc+"'/><param name='allowscriptaccess' value='always'/><param name='wmode' value='transparent'/></object>";},constructor:function(){this.imageData=[];},postMixInProperties:function(){var _6db=dojo.query("a",this.srcNodeRef);for(var i=0,_6dc=_6db.length;i<_6dc;i++){var _6dd=_6db[i].getElementsByTagName("img")[0];this.imageData.push([_6dd.getAttribute("src"),_6dd.getAttribute("longdesc"),_6db[i].href,_6db[i].getAttribute("href2"),(_6dd.getAttribute("ismap")?true:false)]);}dojo.addClass(this.srcNodeRef,"HideElement");},postCreate:function(){this._titleAttr=this.srcNodeRef.title;setTimeout(dojo.hitch(this,function(){if(epages.Browser.flashVersion>9){if(this.imageData.length>1){this._buildCoverFlow();dojo.addClass(this.srcNodeRef,"Flashed");dojo.removeClass(this.srcNodeRef,"HideElement");this._currentWidth=this.srcNodeRef.offsetWidth;setInterval(dojo.hitch(this,function(){if(this._currentWidth!=this.domNode.offsetWidth){this._currentWidth=this.domNode.offsetWidth;this._buildCoverFlow();}}),200);}else{dojo.removeClass(this.srcNodeRef,"HideElement");this.srcNodeRef.style.textAlign="center";this.srcNodeRef.style.overflow="hidden";}}else{dojo.removeClass(this.srcNodeRef,"HideElement");}}),1);}});}if(!dojo._hasResource["epages.widget.Slider"]){dojo._hasResource["epages.widget.Slider"]=true;dojo.provide("epages.widget.Slider");dojo.declare("epages.widget.Slider",[dijit._Widget,dijit._Templated],{timerLeft:null,timerRight:null,slideSpeed:0,currentWidth:0,menuWidth:0,currentMoveState:"",maxSpeed:15,totalOffsetLeft:0,templateString:"<div class=\"ImageSlide\">\n  <div dojoAttachPoint=\"crossSlide\"><nobr dojoAttachPoint=\"containerNode\"></nobr></div>\n</div>\n",postCreate:function(){this.inherited("postCreate",arguments);this.connect(window,"onresize","_arrangeResizedDocument");this.domNode.style.overflow="hidden";this.domNode.style.height=this.crossSlide.offsetHeight+"px";this.menuWidth=this.domNode.offsetWidth;var _6de=(this.crossSlide.style.width!="")?parseInt(this.crossSlide.style.width):0;this.currentWidth=this.crossSlide.offsetWidth?this.crossSlide.offsetWidth:_6de;this.crossSlide.style.left=0;this.totalOffsetLeft=this.domNode.offsetLeft;this._appendEvents();},_appendEvents:function(){this.connect(this.domNode,"onmousemove","_doMotion");this.connect(this.domNode,"onmouseout","_stopMotion");},_updateAfterEvent:function(){this.domNode.style.clear="both";this.domNode.style.clear="none";},_moveLeft:function(){this.currentMoveState="left";if(parseInt(this.crossSlide.style.left)>(this.menuWidth-this.currentWidth)){this.crossSlide.style.left=parseInt(this.crossSlide.style.left)-this.slideSpeed+"px";}this.timerLeft=setTimeout(epages.lang.hitch(this,this._moveLeft),10);},_moveRight:function(){this.currentMoveState="right";if(parseInt(this.crossSlide.style.left)<0){this.crossSlide.style.left=parseInt(this.crossSlide.style.left)+this.slideSpeed+"px";}this.timerRight=setTimeout(epages.lang.hitch(this,this._moveRight),10);},_doMotion:function(_6df){var _6e0=_6df.clientX;var _6e1=_6df.clientX-this.totalOffsetLeft;var _6e2=(this.menuWidth/2);if(_6e1>_6e2){this.slideSpeed=(_6e1-_6e2)/this.menuWidth/2*this.maxSpeed;clearTimeout(this.timerRight);if(this.currentMoveState!="left"){this._moveLeft();}}else{if(_6e1<_6e2){this.slideSpeed=(_6e2-_6e1)/this.menuWidth/2*this.maxSpeed;clearTimeout(this.timerLeft);if(this.currentMoveState!="right"){this._moveRight();}}else{this.slideSpeed=0;}}},_stopMotion:function(_6e3){if((window.event&&!this.domNode.contains(event.toElement))||(_6e3&&_6e3.currentTarget&&_6e3.currentTarget!=_6e3.relatedTarget&&!this._checkNode(_6e3.currentTarget,_6e3.relatedTarget))){clearTimeout(this.timerLeft);clearTimeout(this.timerRight);this.currentMoveState="";}},_checkNode:function(_6e4,_6e5){if(_6e5!==null){while(_6e5.parentNode){_6e5=_6e5.parentNode;if(_6e5==_6e4){return true;}}}},_arrangeResizedDocument:function(){this.menuWidth=this.domNode.offsetWidth;this.crossSlide.style.left=this.menuWidth-this.currentWidth+"px";}});}if(!dojo._hasResource["epages.widget.Timeselector"]){dojo._hasResource["epages.widget.Timeselector"]=true;dojo.provide("epages.widget.Timeselector");dojo.declare("epages.widget.Timeselector",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"Timeselector\">\n  <div class=\"Date\" dojoAttachPoint=\"dateNode\">\n\n  </div>\n  <div class=\"TimesContainer\" dojoAttachPoint=\"timesContainerNode\">\n    <div class=\"Times\" dojoAttachpoint=\"timesNode\">\n    </div>\n  </div>\n</div>\n",delta:"5",value:"",_selected:undefined,valuePattern:epages.vars.Locale.datetimeFormat||"%d.%m.%y %H:%M",displayPattern:epages.vars.Locale.timeFormat||"%H:%M",postMixInProperties:function(){if(typeof this.value=="string"){this.value=epages.localize.parseDateTime(this.value,this.valuePattern);}if(typeof this.delta=="string"){this.delta=new Number(this.delta);}if(this.delta<=0){this.delta=30;}},postCreate:function(){this.inherited("postCreate",arguments);var date=this.value;this.value=null;this.setValue("value",date);},getValue:function(){return this.value;},setValue:function(date){if(date===undefined){date=new Date();}else{if(typeof date=="string"){date=epages.localize.parseDateTime(date,this.valuePattern);}}if(!this.value||dojo.date.compare(date,this.value)){this.value=new Date(date);this.fillTimes(date);this.domNode.value=date==null?undefined:date.valueOf();}if(this.value){this.dateNode.innerHTML=epages.localize.formatDateTime(this.value);}},fillTimes:function(date){var date=new Date(this.value);date.setHours(0,0,0,0);this.dateNode.innerHTML=epages.localize.formatDateTime(date);var end=dojo.date.add(date,"day",1);var _6e6=[];while(date<end){_6e6.push(date);date=dojo.date.add(date,"minute",this.delta);}this.setTimes(_6e6);},setTimes:function(opts){this.dateNode.innerHTML=epages.localize.formatDateTime(this.value);var node=this.timesNode;while(node.firstChild){node.removeChild(node.firstChild);}var _6e7=undefined;var _6e8=false;var _6e9=0;dojo.forEach(opts,function(date){o=document.createElement("div");o.innerHTML=epages.localize.formatDateTime(date,this.displayPattern);o.setAttribute("value",date.valueOf());if(!dojo.date.compare(this.value,date)){dojo.addClass(o,"Selected");this._selected=o;_6e8=true;}if(_6e7==1&&dojo.date.compare(this.value,date)==-1){dojo.addClass(o,"Selected");this._selected=o;this.value=date;_6e8=true;}_6e7=dojo.date.compare(this.value,date);if(_6e9){dojo.addClass(o,"Alternate");}node.appendChild(o);this.connect(o,"onclick","onChange");_6e9=1-_6e9;},this);if(_6e8==false&&_6e7){if(_6e7==1){node.lastChild.selected=true;dojo.addClass(node.lastChild,"Selected");this._selected=node.lastChild;this.value=opts[opts.length-1];}else{dojo.addClass(node.firstChild,"Selected");this._selected=node.firstChild;node.firstChild.selected=true;this.value=opts[0];}}},onChange:function(evt){var _6ea=evt.currentTarget;dojo.removeClass(this._selected,"Selected");dojo.addClass(_6ea,"Selected");this._selected=_6ea;this.value=new Date(Number(_6ea.getAttribute("value")));dojo.publish(this.id+"/onChange",[this.value]);}});}if(!dojo._hasResource["epages.cartridges.de_epages.calendar.widget.Calendar"]){dojo._hasResource["epages.cartridges.de_epages.calendar.widget.Calendar"]=true;dojo.provide("epages.cartridges.de_epages.calendar.widget.Calendar");dojo.declare("epages.cartridges.de_epages.calendar.widget.Calendar",epages.widget.Calendar,{objectId:"",productId:"",containerId:"",availableQuantity:"",requestedQuantity:"",minOrderQuantity:"",timer:null,requestedMinutes:"",datastoreId:"Datastore",quantityInput:undefined,url:"?",_loadedFormats:undefined,_loadedList:undefined,_readyForClick:true,_firstLoading:true,_datastore:undefined,postMixInProperties:function(){this.inherited("postMixInProperties",arguments);if($$(this.datastoreId)){this._datastore=$$(this.datastoreId);dojo.subscribe(this.datastoreId+"/load",this,"_onReceiveRequest");}this._loadedFormats={};this._loadedList={};if(this.quantityInput){this.connect(this.quantityInput,"change","_onQunatitiyInputChange");this.requestedQuantity=this.quantityInput.value;}},postCreate:function(){this.inherited("postCreate",arguments);if(this.timer!=null){this.timer.fillTimes=dojo.hitch(this,"_fillTimes");}},getDateKey:function(date){var pad=dojo.string.pad;return [pad(date.getFullYear(),4),pad(date.getMonth()+1,2),pad(date.getDate(),2)].join("-")+"T00:00:00";},_onReceiveRequest:function(_6eb,_6ec){if(!_6eb||_6ec!=dojo.date.stamp.toISOString(this.displayMonth)){return false;}for(var el in _6eb){if(el){var _6ed=new Date(dojo.date.stamp.fromISOString(el));_6ed.setHours(0);var _6ee=dojo.date.stamp.toISOString(_6ed);_6ee=_6ee.substring(0,19);_6eb[_6ee]=_6eb[el];}}this._loadedFormats[this.displayMonth]=_6eb;dojo.query(".dijitCalendarDateLabel",this.domNode).forEach(function(_6ef,i){var node=this._dateNode(_6ef);var _6f0=this.getDateKey(new Date(node.dijitDateValue));var _6f1=_6eb[_6f0];if(_6f1!==undefined){var me=this;this._loadedList[_6f0]=[];for(var i=0,_6f2=_6f1["DayList"].length;i<_6f2;i++){var _6f3=me.availableQuantity-_6f1["DayList"][i][1];if((parseFloat(me.requestedQuantity)>=parseFloat(me.minOrderQuantity))&&(parseInt(me.requestedQuantity)<=parseInt(_6f3))){this._loadedList[_6f0].push(dojo.date.stamp.fromISOString(_6f1["DayList"][i]));}}if(this._loadedList[_6f0]&&this._loadedList[_6f0].length==0){dojo.addClass(node,"dijitCalendarDisabledDate");}else{dojo.removeClass(node,"dijitCalendarDisabledDate");}}else{dojo.addClass(node,"dijitCalendarDisabledDate");}},this);dojo.publish("interactionRestrictor/permit",["CalendarRestrictor"]);this._readyForClick=true;if(this._firstLoading){this.timer.fillTimes(this.value);this._firstLoading=false;this._checkSelectedDay();}},_populateGrid:function(days){this.inherited("_populateGrid",arguments);this.displayMonth.setMinutes(0);this.displayMonth.setSeconds(0);this.displayMonth.setHours(0);if(this._datastore){dojo.publish("interactionRestrictor/suspend",["CalendarRestrictor",this.domNode.getElementsByTagName("tbody")[0]]);this._readyForClick=false;this._datastore.getDateFormatsSF({objectId:this.objectId,startDate:this.displayMonth,endDate:dojo.date.add(this.displayMonth,"day",dojo.date.getDaysInMonth(this.displayMonth)),available:this.availableQuantity,requestedMinutes:this.requestedMinutes});}},_fillTimes:function(date){var _6f4=this.getDateKey(date);var _6f5=this._loadedList[_6f4];this.timer.setTimes(_6f5);},isDisabledDate:function(_6f6,_6f7){if(this._loadedList[this.getDateKey(_6f6)]&&this._loadedList[this.getDateKey(_6f6)].length==0){return true;}return false;},_onDayClick:function(evt){if(this._readyForClick){this.inherited("_onDayClick",arguments);if(this.timer!=null){this.timer.fillTimes(this.value);}}},_onQunatitiyInputChange:function(evt){this.requestedQuantity=this.quantityInput.value;this._populateGrid();this.timer.fillTimes(this.value);},setRequestedMinutes:function(_6f8){this.requestedMinutes=_6f8;this._populateGrid();this.timer.fillTimes(this.value);},_checkSelectedDay:function(){var _6f9=this.value.getDate();var _6fa;var _6fb=new Date(this.value);if(_6f9&&_6f9<31){for(var i=_6f9;i<=31;i++){_6fb.setDate(i);var _6fc=this.getDateKey(_6fb);if(this._loadedList[_6fc]&&this._loadedList[_6fc].length!=0){_6fa=_6fb;break;}}}if(_6fa){this.attr("value",_6fa);return true;}else{return false;}}});}if(!dojo._hasResource["epages.cartridges.de_epages.calendar.widget.Datastore"]){dojo._hasResource["epages.cartridges.de_epages.calendar.widget.Datastore"]=true;dojo.provide("epages.cartridges.de_epages.calendar.widget.Datastore");dojo.declare("epages.cartridges.de_epages.calendar.widget.Datastore",[dijit._Widget],{url:"?",objectId:undefined,_dayLists:undefined,_dateFormatsBO:undefined,_dateFormatsSF:undefined,postMixInProperties:function(){this.inherited("postMixInProperties",arguments);this._dayLists={};this._dateFormatsBO={};this._dateFormatsSF={};},getDayList:function(date){date=epages.localize.formatDateTime(date,epages.vars.Locale.datetimeFormat);if(this._dayLists[date]){return this._dayLists[date];}var json=new epages.io.Json;var _6fd=json.loadSync(this.url,{"ViewAction":"JSON-DayList","ObjectID":this.objectId,"StartDate":date});if(!_6fd.error){var data=_6fd.data;this._dayLists[date]=data;return data;}else{return false;}},getDateFormats:function(_6fe){var _6ff=dojo.date.stamp.toISOString(_6fe.startDate);var _700=dojo.date.stamp.toISOString(_6fe.endDate);var _701=_6fe.objectId+":"+_6ff+":"+_700+":"+_6fe.available+":"+_6fe.requestedMinutes;if(this._dateFormatsBO[_701]){return this._dateFormatsBO[_701];}else{var me=this;var json=new epages.io.Json;var _702=json.loadSync(this.url,{"ViewAction":"JSON-BO-AppointmentCalendar","ObjectID":_6fe.objectId,"StartDate":_6ff,"EndDate":_700,"Available":_6fe.available,"RequestedMinutes":_6fe.requestedMinutes});if(!_702.error){this._dateFormatsBO[_701]=_702.data;return _702.data;}return false;}},getDateFormatsSF:function(_703){var key=_703.objectId+":"+dojo.date.stamp.toISOString(_703.startDate)+":"+dojo.date.stamp.toISOString(_703.endDate)+":"+_703.available+":"+_703.requestedMinutes;if(this._dateFormatsSF[key]){var _704=this._dateFormatsSF[key];dojo.publish(this.id+"/load",[_704,dojo.date.stamp.toISOString(_703.startDate)]);}else{var me=this;var json=new epages.io.Json;json.loadAsync(this.url,function(_705){me._dateFormatsSF[key]=_705.data;dojo.publish(me.id+"/load",[_705.data,dojo.date.stamp.toISOString(_703.startDate)]);},{"ViewAction":"JSON-AppointmentCalendar","ObjectID":_703.objectId,"StartDate":dojo.date.stamp.toISOString(_703.startDate),"EndDate":dojo.date.stamp.toISOString(_703.endDate),"Available":_703.available,"RequestedMinutes":_703.requestedMinutes});}}});}if(!dojo._hasResource["epages.cartridges.de_epages.catalog.widget.ProductLastViewed"]){dojo._hasResource["epages.cartridges.de_epages.catalog.widget.ProductLastViewed"]=true;dojo.provide("epages.cartridges.de_epages.catalog.widget.ProductLastViewed");(function(dj){dj.declare("epages.cartridges.de_epages.catalog.widget.ProductLastViewed",[dijit._Widget,epages.Templated],{_productItems:undefined,postMixInProperties:function(){this.addTemplate("<div class=\"ContextBoxBody\">\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ImageContainerXS\" dojoAttachpoint=\"imageContainer\">\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img dojoAttachpoint=\"itemImage\" style=\"width:100%; height:auto;\" src=\"#\" ></img>\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t<a dojoAttachpoint=\"itemTitle\" href=\"javascript:void()\" onclick=\"return false;\"></a>\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"ClearBoth\"></div>\t\t\t\t\t\t\t\t\t\t\t\t</div>","productItem");this._productItems=epages.localStorage.getItem("Catalog::ProductLastViewed.list");},postCreate:function(){dojo.addClass(this.domNode,"ProductLastViewed");var _706,_707=[],_708={};for(var i in this._productItems){_706=this._productItems[i].tstamp;_707.push(_706);_708[_706]=this._productItems[i];}_707=_707.sort().reverse();for(var i=0,_709=Math.min(this.maxItems,_707.length);i<_709;i++){var _70a=_708[_707[i]],_70b=this.getTemplate("productItem");dojo.connect(_70b.domNode,"click",_70a,function(_70c){location.href=epages.vars.BaseUrl+"?ObjectPath="+this.objectPath;});_70b.itemTitle.innerHTML=_70a.name;_70b.itemTitle.href=epages.vars.BaseUrl+"?ObjectPath="+_70a.objectPath;if(_70a.image){_70b.itemImage.src=epages.vars.StoreWebRoot+"/"+_70a.image;}else{_70b.imageContainer.style.display="none";}dj.place(_70b.domNode,this.domNode,"append");}}});})(dojo);}if(!dojo._hasResource["epages.cartridges.de_epages.content.CategoriesTreeBox"]){dojo._hasResource["epages.cartridges.de_epages.content.CategoriesTreeBox"]=true;dojo.provide("epages.cartridges.de_epages.content.CategoriesTreeBox");var oBubbelingObject=null;var NavBarElementID=[];window.initNavElementTree=function(_70d){var _70e;var _70f=_70d.id.replace(/NavBarElementID/,"");NavBarElementID.push(_70f);var _710=NavBarElementID.length-1;_70e=_70d.getElementsByTagName("img");for(var i=0,len=_70e.length;i<len;i++){if(!_70e[i].className.match(/NotAllowed/)&&(_70e[i].className.match(/HasSubCategories/)||_70e[i].className.match(/HasSubCategoriesMinus/))){dojo.connect(_70e[i],"click",function(_711){if(!_711){var _711=window.event;}oBubbelingObject=this;toggleNode(_711);});var _712=document.createAttribute("treeindex");_712.nodeValue=_710;_70e[i].setAttributeNode(_712);}}};window.insertSubCategories=function(Doc,_713,_714){Doc=Doc.replace(/\(%NavBarElementID%\)/g,NavBarElementID[_714]);oMyDiv=document.createElement("div");oMyDiv.innerHTML=Doc;var _715=document.getElementById(_713);_715.appendChild(oMyDiv);var _716=_715.getElementsByTagName("ul");if(_716.length>0){initNavElementTree(_716[0]);}};window.toggleNode=function(_717){var _718;var _719=null;if(!_717){var _717=window.event;}if(_717.target){_718=_717.target;}else{if(_717.srcElement){_718=_717.srcElement;}}if(oBubbelingObject==_718){_718.className=_718.className.replace(/HasSubCategories/,"HasSubCategoriesMinus");_718.className=_718.className.replace(/HasSubCategoriesMinusMinus/,"HasSubCategories");_718.parentNode.parentNode.className=_718.className;var _71a=_718.parentNode.parentNode.getElementsByTagName("ul");if(_71a.length==0){try{_719=_718.getAttribute("treeindex");}catch(ex){_719=0;}var _71b="";_71b+=_718.id;_71b=_71b.replace(/.+Category/,"");var _71c="";_71c+=_718.id;_71c=_71c.replace(/Trigger/,"Target");_718.parentNode.parentNode.id=_71c;dojo.xhrGet({url:WebServerScriptUrlSSL+"?ViewAction=ViewSubCategoriesSnipplet&ObjectID="+_71b,load:function(data){insertSubCategories(data,_71c,_719);}});}}};}if(!dojo._hasResource["epages.widget.FormElementHint"]){dojo._hasResource["epages.widget.FormElementHint"]=true;dojo.provide("epages.widget.FormElementHint");dojo.declare("epages.widget.FormElementHint",[dijit._Widget],{description:"",_formDescriptionLayer:null,postCreate:function(){var _71d=new epages.html.Element(this.domNode).getAbsolutePosition(dojo.body());this._formDescriptionLayer=document.createElement("div");var _71e=document.createElement("div");_71e.className="TooltipShadow";with(this._formDescriptionLayer){innerHTML=this.description;className="Tooltip HideElement Wide";onselectstart=function(){return false;};style.MozUserSelect="none";style.WebkitUserSelect="ignore";style.left=(_71d.x+this.domNode.offsetWidth+2)+"px";style.top=_71d.y+"px";appendChild(_71e);}dojo.style(this._formDescriptionLayer,"opacity",0);dojo.body().appendChild(this._formDescriptionLayer);this.connect(this.domNode,"onfocus","_showDescription");this.connect(this.domNode,"onblur","_hideDescription");},_showDescription:function(){var _71f=this._formDescriptionLayer;_71f.className=_71f.className.replace(/HideElement/,"");if(_71f.offsetWidth>300){_71f.style.width="300px";}dojo.fadeIn({node:_71f,duration:200}).play();},_hideDescription:function(){var _720=this._formDescriptionLayer;dojo.fadeOut({node:_720,duration:200}).play();setTimeout(function(){_720.className+=" HideElement";},200);}});}if(!dojo._hasResource["epages.cartridges.de_epages.design.mcecontent"]){dojo._hasResource["epages.cartridges.de_epages.design.mcecontent"]=true;dojo.provide("epages.cartridges.de_epages.design.mcecontent");epages.cartridges.de_epages.design.MceContent=epages.Class();epages.cartridges.de_epages.design.MceContent.prototype={DIALOG_HEIGHT:"400",DIALOG_WIDTH:"830",navElementId:"",contentClass:"epages.cartridges.de_epages.design.MceContent",base64:new epages.string.Base64,preview:"",transparent:epages.vars.StoreRoot+"/BO/icons/general_img_transparentpixel.gif",dictionary:new epages.io.Translation(dojo.moduleUrl("epages.cartridges.de_epages.design.widget","templates/translation"),"auto"),title:"content",width:400,height:400,doInsertDom:true,form:undefined,group:null,formData:$H(),directPreview:true,initialize:function(_721){this.save(_721);},updateForm:function(){if(this.form!==undefined){this.formData=$H(this.formData);(new epages.html.Form(this.form)).set(this.formData,true);}},saveForm:function(){if(this.form!==undefined){var _722=this.form.elements;for(var i=0,_723=_722.length;i<_723;i++){if(_722[i].value){_722[i].value=epages.validate.string.filterInvalidChars(_722[i].value);}}this.formData=(new epages.html.Form(this.form)).get();}},save:function(_724){if(_724!==undefined){dojo.mixin(this,_724);this.formData=$H(this.formData);}},info:function(){return {width:this.width,height:this.height,contentClass:this.contentClass,navElementId:this.navElementId,formData:this.formData,preview:this.preview,title:this.title,group:(epages.vars.externalcontent&&epages.vars.externalcontent.currentGroupAlias)?epages.vars.externalcontent.currentGroupAlias:"",autostart:this.autostart?this.autostart:"",loop:this.loop?this.loop:""};},toString:function(){return "new "+this.contentClass+"("+$H(this.info()).toString()+")";},encodeInfo:function(info){return this.base64.encode($H(info).toString());},decodeInfo:function(_725){var info=eval("("+this.base64.decode(_725)+")");if(info.formData!==undefined){info.formData=$H(info.formData);}return info;},mceOpenWindow:function(_726,_727){var inst=tinyMCE.editors[_726];var _728=inst.selection.getNode();var _729=null;if(_728!=null){if(_728.nodeName.toLowerCase()=="img"&&tinymce.DOM.getAttrib(_728,"class").indexOf("epItemContent")>-1){_729=_728;}}var _72a={};if(epages.vars.BaseUrl===undefined){epages.vars.BaseUrl="";}_72a["url"]=epages.vars.BaseUrl+"?ViewAction=MBO-ViewPluginEpContent&ObjectID="+epages.vars.ObjectID;if(epages.vars.DefaultParams!=null){_72a["url"]+=epages.vars.DefaultParams;}if(_729!=null){var _72b=tinymce.DOM.getAttrib(_729,"ep_info");_72a["url"]+="&ContentData="+_72b;var _72c=(this.decodeInfo(_72b)).navElementId;if(_72c!==undefined){_72a["url"]+="&NavElementID="+_72c;}}if(_727!=null){_72a["url"]+="&GroupID="+_727;}_72a["width"]=this.DIALOG_WIDTH;_72a["height"]=this.DIALOG_HEIGHT;_72a["scrollbars"]="yes";_72a["resizable"]="yes";_72a["title"]=this.dictionary.get("InsertGadget");inst.windowManager.open(_72a,{editor_id:_726,inline:"yes",mce_replacevariables:false});},contentString:function(info){return ["<img src=\""+info.preview,"width=\""+info.width,"height=\""+info.height,"alt=\""+this.title,"title=\""+this.title,"/>"].join("\" ");},previewString:function(info){var _72d=(info.width.toString().match(/%/))?info.width:info.width+"px";var _72e=(info.height.toString().match(/%/))?info.height:info.height+"px";return ["<img class=\"epItemContent","src=\""+this.transparent,"style=\"background-image: url("+info.preview+");height:"+_72e+"; width:"+_72d+";\"","ep_style=\"background-image: url("+info.preview+");height:"+_72e+"; width:"+_72d+";\"","width=\""+info.width,"height=\""+info.height,"alt=\""+this.title,"title=\""+this.title,"ep_info=\""+this.encodeInfo(info),"ep_dom=\""+(this.doInsertDom?"true":"false"),"ep_group=\""+info.group,"/>"].join("\" ");},mceInsertContent:function(info){if(info===undefined){info=this.info();}if(typeof (window.ep_InsertContent)=="function"){window.ep_InsertContent(this,info);}else{var html=this.previewString(info);tinyMCE.activeEditor.selection.moveToBookmark(tinymce.WindowManager.bookmark);tinyMCE.execCommand("mceInsertContent",true,html);}},parseAttributes:function(_72f){if(_72f==null||_72f.length<2){return {};}var _730="";var _731="";var _732={};var _733=new RegExp("^[ \n\r\t]+","g");var _734=false,_735=false;for(var i=0,_736=_72f.length;i<_736;i++){var chr=_72f.charAt(i);if((chr=="\""||chr=="'")&&!_735){_735=true;}else{if((chr=="\""||chr=="'")&&_735){_735=false;var pos=_730.lastIndexOf(" ");if(pos!=-1){_730=_730.substring(pos+1);}_732[_730.toLowerCase()]=_731.substring(1);_730="";_731="";}else{if(!_733.test(chr)&&!_734&&!_735){_734=true;}}}if(chr=="="&&_734){_734=false;}if(_734){_730+=chr;}if(_735){_731+=chr;}}return _732;},mceEditor2String:function(_737){var _738=-1;while((_738=_737.indexOf("<img",_738+1))!=-1){var _739=_737.indexOf(">",_738)+1;var _73a=_737.substring(_738+4,_739);var _73b=this.parseAttributes(_73a);if(_73b["class"]=="epItemContent"){var _73c=_737.substring(0,_738);var end=_737.substring(_739);var old=_737.substring(_738,_739);var info=this.decodeInfo(_73b["ep_info"]);var _73d=epages.cartridges.de_epages.design.MceContent.prototype.LOAD(info);if(_73d!==undefined){var _73e="<!-- BEGIN_GADGET -->\n<div class=\"epItemContent ep_info:"+_73b["ep_info"]+"\">"+_73d.contentString(info)+"<"+"/div>\n<!-- END_GADGET -->";_737=_73c+_73e+end;}else{_738=_739;}}else{_738=_739;}}return _737;},load:function(_73f){_73f.innerHTML=this.contentString(this.info(),false);},getIframeDocument:function(_740){return $E(_740).getIframeDocument();},loadPreview:function(_741){if(this.getIframeDocument(_741).getElementsByTagName("body")[0]){this.getIframeDocument(_741).getElementsByTagName("body")[0].innerHTML=this.contentString(this.info(),true);}else{console.warn("loadPreview: iframe body not found in epages.cartridges.de_epages.design.MceContent");}},saveFormAndLoadPreview:function(_742){this.saveForm();this.loadPreview(_742);},saveFormAndMceInsertContent:function(){this.saveForm();this.mceInsertContent();},LOAD:function(_743){if(_743.contentClass===undefined||_743.contentClass==""){console.error("cant load object without contentClass.");return undefined;}if(window[_743.contentClass]===undefined){dojo["require"](_743.contentClass.toLowerCase());}var obj=new (eval(_743.contentClass))(_743);return obj;},string2Preview:function(_744){var _745=new RegExp("<!--\\s*BEGIN_GADGET\\s*-->[\\s\\S]*?<div\\s+(class=\"epItemContent\"\\s+ep_info=\"|class=\"epItemContent ep_info:)(.+?)\"?>[\\s\\S]*?<!--\\s*END_GADGET\\s*-->","mig");var _746;var _747=_744;while((_746=_745.exec(_744))){if(_746&&_746[2]){var _748=this.decodeInfo(_746[2]);var _749=epages.cartridges.de_epages.design.MceContent.prototype.LOAD(_748);var _74a=_749.previewString(_748);_747=_747.replace(_746[0],_74a);}}return _747;}};}if(!dojo._hasResource["epages.cartridges.de_epages.externalcontent.rssreader"]){dojo._hasResource["epages.cartridges.de_epages.externalcontent.rssreader"]=true;dojo.provide("epages.cartridges.de_epages.externalcontent.rssreader");epages.cartridges.de_epages.externalcontent.RSSReader=epages.Class();dojo.extend(epages.cartridges.de_epages.externalcontent.RSSReader,epages.cartridges.de_epages.design.MceContent.prototype,{contentClass:"epages.cartridges.de_epages.externalcontent.RSSReader",preview:epages.vars.StoreRoot+"/BO/icons/navelement_rssreader.png",title:"RSSReader",width:"100%",height:100,icon:epages.vars.StoreRoot+"/SF/Gadgets/rss-icon.png",doInsertDom:false,directPreview:false,url:"",feed:"",version:"",feedname:"",feeddescription:"",pagelink:"",news:Array(),error:"",errormsg:"",length:5,textlength:1,lengthrequest:50,logolink:"",logosrc:"",logotitle:"",feedPubDate:"",striphtml:false,showlogo:false,stripimages:false,onlyheadlines:false,style:"classic",isindividual:false,translation:new epages.io.Translation(dojo.moduleUrl("epages.cartridges.de_epages.externalcontent","templates/translation"),"auto"),_readerid:null,_info:null,info:function(){var info=epages.cartridges.de_epages.design.MceContent.prototype.info.apply(this,arguments);dojo.mixin(info,{url:this.url,length:this.length,textlength:this.textlength,showlogo:this.showlogo,stripimages:this.stripimages,onlyheadlines:this.onlyheadlines,style:this.style});return info;},boxTemplateString:"<div class=\"(%Class%)\">\n"+"  <div class=\"BoxContainer\">\n"+"    <div class=\"ContextBoxHead\">\n"+"      <span><img src=\"(%RSSIcon%)\" onclick=\"RSSReader[(%RSSId%)].refresh();\" title=\"(%RefreshFeed%)\" class=\"AlignMiddle RSSIcon LinkImage RightPaddingSmall\" />&nbsp;<a href=\"(%FeedLink%)\" target=\"_blank\">(%FeedName%)</a></span>\n"+"    </div>\n"+"    <div class=\"(%CaptionClass%)\">\n"+"      (%FeedPubDate%)(%FeedDescription%) (%Logo%)\n"+"    </div>\n"+"    (%INC-Items%)\n"+"  </div>\n"+"</div>\n",boxItemTemplateString:"<div class=\"(%Class%)\">\n"+"  <a target=\"_blank\" href=\"(%URL%)\">(%Title%)</a><br />\n"+"  (%PubDate%)(%Text%)\n"+"</div>\n",classicTemplateString:"<div class=\"(%Class%)\">\n"+" <div class=\"(%HeadClass%)\">"+"\t\t<div style=\"float:right;\">(%Logo%)</div>\n"+"\t\t\t<div class=\"(%FeedNameClass%)\">"+"\t\t\t<img src=\"(%RSSIcon%)\" onclick=\"RSSReader[(%RSSId%)].refresh();\" title=\"(%RefreshFeed%)\" align=\"left\" class=\"AlignMiddle RSSIcon LinkImage\" />"+"\t\t\t<a href=\"(%FeedLink%)\" target=\"_blank\">(%FeedName%)</a>"+"\t\t\t</div>"+"\t\t(%FeedPubDate%)(%FeedDescription%)"+" </div>"+" <div style=\"clear:both;\">\n"+" \t(%INC-Items%)\n"+"\t</div>\n"+"</div>\n",classicItemTemplateString:"<div class=\"(%HeadlineClass%)\">\n"+"  <a target=\"_blank\" href=\"(%URL%)\">(%Title%)</a><br />\n"+"</div>\n"+"<div class=\"(%TextClass%)\">\n"+"  (%PubDate%)(%Text%)\n"+"</div>\n",standardTemplateString:"<div>\n"+" <div>"+"\t\t<div style=\"float:right;\">(%Logo%)</div>\n"+"\t\t\t<div>"+"\t\t\t<img src=\"(%RSSIcon%)\" class=\"LinkImage\" onclick=\"RSSReader[(%RSSId%)].refresh();\" title=\"(%RefreshFeed%)\" align=\"left\" />"+"\t\t\t<a href=\"(%FeedLink%)\" target=\"_blank\">(%FeedName%)</a>"+"\t\t\t</div>"+"\t\t(%FeedPubDate%)(%FeedDescription%)"+" </div>"+" <div style=\"clear:both;\">\n"+" \t(%INC-Items%)\n"+"\t</div>\n"+"</div>\n",standardItemTemplateString:"<div>\n"+"  <a target=\"_blank\" href=\"(%URL%)\">(%Title%)</a><br />\n"+"</div>\n"+"<div>\n"+"  (%PubDate%)(%Text%)\n"+"</div>\n",getData:function(url,_74b){this.error=false;this.url=decodeURIComponent(url);this.makeRequest();if(this.error==false){this.readResponse();}else{return false;}},makeRequest:function(){dojo.xhrGet({url:"/WebRoot/RssFeeds/"+this.url.replace(/[^A-Za-z0-9]/g,"_")+".xml",load:dojo.hitch(this,"useResponse"),error:dojo.hitch(this,"secondRequest"),handleAs:"xml",sync:true});},secondRequest:function(type,_74c){dojo.xhrGet({url:"?ObjectID="+epages.vars.SiteID+"&ChangeAction=GetFeed&feedurl="+encodeURIComponent(this.url),load:dojo.hitch(this,"useResponse"),error:dojo.hitch(this,"errorHandler"),handleAs:"xml",sync:true});},errorHandler:function(_74d,_74e){this.error=true;this.errormsg=this.translation.get("FeedNotAvailable");},useResponse:function(_74f,_750){this.feed=_74f;},readResponse:function(){this.version="";var _751;var _752;var _753;if(this.feed&&this.feed.getElementsByTagName("rss")[0]!=null||this.feed&&this.feed.firstChild.tagName=="rss"){this.version="RSS";_751="item";_752="description";_753="description";}else{if(this.feed&&this.feed.getElementsByTagName("feed")[0]!=null||this.feed&&this.feed.firstChild.tagName=="feed"){this.version="ATOM";_751="entry";_752="subtitle";_753="summary";}else{if(this.feed&&this.feed.getElementsByTagName("rdf:RDF")[0]!=null||this.feed&&this.feed.firstChild.tagName=="rdf:RDF"){this.version="RDF";_751="item";_752="description";_753="description";}else{this.error=true;this.errormsg=this.translation.get("UnableToDetectFeedVersion");return false;}}}this.feedname="";this.feedname=this.feed.getElementsByTagName("title")[0].firstChild.nodeValue;this.feeddescription="";if(this.feed.getElementsByTagName(_752)[0]&&this.feed.getElementsByTagName(_752)[0].firstChild){this.feeddescription=this.feed.getElementsByTagName(_752)[0].firstChild.nodeValue;}else{if(this.feed.getElementsByTagName("tagline")[0]&&this.feed.getElementsByTagName("tagline")[0].firstChild){this.feeddescription=this.feed.getElementsByTagName("tagline")[0].firstChild.nodeValue;}}this.pagelink="";if(this.version=="ATOM"){var _754=this.feed.getElementsByTagName("link");for(var i=0,l=_754.length;i<l;i++){if(_754[i].attributes.getNamedItem("rel")&&_754[i].attributes.getNamedItem("rel").value=="alternate"){this.pagelink=_754[i].attributes.getNamedItem("href").value;break;}}if(this.pagelink==""){if(this.feed.getElementsByTagName("link")[0]&&this.feed.getElementsByTagName("link")[0].attributes.getNamedItem("href")){this.pagelink=this.feed.getElementsByTagName("link")[0].attributes.getNamedItem("href").value;}}}else{if(this.feed.getElementsByTagName("link")){if(this.feed.getElementsByTagName("link")[0].firstChild){this.pagelink=this.feed.getElementsByTagName("link")[0].firstChild.nodeValue;}else{this.pagelink=this.feed.getElementsByTagName("link")[0].attributes.getNamedItem("href").value;}}}this.logosrc="";this.logolink="";this.logotitle="";if(this.version=="RSS"){if(this.feed.getElementsByTagName("image")[0]&&this.feed.getElementsByTagName("image")[0].getElementsByTagName("url")[0]){if(this.feed.getElementsByTagName("image")[0].getElementsByTagName("url")[0].firstChild){this.logosrc=this.feed.getElementsByTagName("image")[0].getElementsByTagName("url")[0].firstChild.nodeValue;}}if(this.feed.getElementsByTagName("image")[0]&&this.feed.getElementsByTagName("image")[0].getElementsByTagName("title")[0]){if(this.feed.getElementsByTagName("image")[0].getElementsByTagName("title")[0].firstChild){this.logotitle=this.feed.getElementsByTagName("image")[0].getElementsByTagName("title")[0].firstChild.nodeValue;}}if(this.feed.getElementsByTagName("image")[0]&&this.feed.getElementsByTagName("image")[0].getElementsByTagName("link")[0]){if(this.feed.getElementsByTagName("image")[0].getElementsByTagName("link")[0].firstChild){this.logolink=this.feed.getElementsByTagName("image")[0].getElementsByTagName("link")[0].firstChild.nodeValue;}}}if(this.version=="RDF"){if(this.feed.getElementsByTagName("image")[0]){this.logosrc=this.feed.getElementsByTagName("image")[0].attributes[0].value;this.logolink=this.pagelink;this.logotitle=this.feedname;}}if(this.version=="ATOM"){if(this.feed.getElementsByTagName("logo")[0]){this.logosrc=this.feed.getElementsByTagName("logo")[0].firstChild.nodeValue;this.logolink=this.pagelink;this.logotitle=this.feedname;}else{if(this.feed.getElementsByTagName("icon")[0]){this.logosrc=this.feed.getElementsByTagName("icon")[0].firstChild.nodeValue;this.logolink=this.pagelink;this.logotitle=this.feedname;}}}this.feedPubDate="";if(this.feed.getElementsByTagName("pubDate")[0]){var _755=this.feed.getElementsByTagName("pubDate")[0].firstChild.nodeValue;_755=new Date(_755);if(_755&&_755!="Invalid Date"){this.feedPubDate=_755.toLocaleString();}}this.news=new Array();var _756=this.feed.getElementsByTagName(_751);for(var i=0,l=_756.length;i<l;i++){var item=new Object();if(_756[i].getElementsByTagName("title")[0]&&_756[i].getElementsByTagName("title")[0].firstChild){item["title"]=_756[i].getElementsByTagName("title")[0].firstChild.nodeValue;if(this.version=="ATOM"){var _757=_756[i].getElementsByTagName("link");for(var j=0,_758=_757.length;j<_758;j++){if(_757[j].attributes.getNamedItem("href")){item["link"]=_757[j].attributes.getNamedItem("href").value;}if(_757[j].attributes.getNamedItem("rel")&&_757[j].attributes.getNamedItem("rel").value=="alternate"){item["link"]=_757[j].attributes.getNamedItem("href").value;j=_757.length+1;}}}else{if(_756[i].getElementsByTagName("link")[0]&&_756[i].getElementsByTagName("link")[0].firstChild){item["link"]=_756[i].getElementsByTagName("link")[0].firstChild.nodeValue;}else{item["link"]=this.pagelink;}}if(_756[i].getElementsByTagName(_753)[0]&&_756[i].getElementsByTagName(_753)[0].firstChild){item["text"]=_756[i].getElementsByTagName(_753)[0].firstChild.nodeValue;if(this.striphtml=="on"){item["text"]=item["text"].replace(/\<.*?\>/gi,"");}}else{if(_756[i].getElementsByTagName("content")[0]&&_756[i].getElementsByTagName("content")[0].firstChild){item["text"]=_756[i].getElementsByTagName("content")[0].firstChild.nodeValue;if(this.striphtml=="on"){item["text"]=item["text"].replace(/\<.*?\>/gi,"");}}else{if(_756[i].getElementsByTagName("content:encoded")[0]&&_756[i].getElementsByTagName("content:encoded")[0].firstChild){item["text"]=_756[i].getElementsByTagName("content:encoded")[0].firstChild.nodeValue;if(this.striphtml=="on"){item["text"]=item["text"].replace(/\<.*?\>/gi,"");}}else{item["text"]="";}}}item["pubDate"]="";if(_756[i].getElementsByTagName("pubDate")[0]){var _755=_756[i].getElementsByTagName("pubDate")[0].firstChild.nodeValue;_755=new Date(_755);if(_755&&_755!="Invalid Date"){item["pubDate"]=_755.toLocaleString();}}this.news.push(item);}}},showData:function(_759,_75a,_75b,_75c,_75d,_75e,id){this._readerid=id;if(this.error==true){dojo.publish("OnDisableSaveButton",[{id:this.id}]);return this.errormsg;}else{if(_75a>this.news.length){_75a=this.news.length;}this.length=_75a;this.textlength=_75b;if(_75e=="on"){this.textlength=0;}this.showlogo=_75c;this.stripimages=_75d;var _75f;switch(_759){case "standard":_75f=this.createStandard();break;case "classic":_75f=this.createClassic();break;case "box":_75f=this.createBox();break;default:this.error=true;this.errormsg="Fehler: ung�ltige Styleangabe";return this.errormsg;break;}}return _75f;},createBox:function(){var logo="";if(this.showlogo=="on"&&this.logosrc!=""){logo="<a href=\""+this.logolink+"\" target=\"_blank\"><img src=\""+this.logosrc+"\"></a>";}var _760="";for(var i=0,_761=this.length;i<_761;i++){var text=this.news[i]["text"];if(this.textlength>1){text=text.substr(0,this.textlength);var _762=text.lastIndexOf(" ");text=text.substr(0,_762);text+="...";}else{if(this.textlength==0){text="";}}if(this.stripimages=="on"){text=text.replace(/\<img.*?\>/gi,"");}var _763=new epages.Template({template:this.boxItemTemplateString,encodeVars:false,vars:{"Class":"ContextBoxBody","URL":this.news[i]["link"],"Title":this.news[i]["title"],"Text":text,"PubDate":this.news[i]["pubDate"]!=""?this.news[i]["pubDate"]+"<br />":""}});_760+=_763.generateOutput();}var _764=new epages.Template({template:this.boxTemplateString,encodeVars:false,vars:{"Class":"ContextBox","CaptionClass":"ContextBoxBody","RSSIcon":this.icon,"FeedLink":this.pagelink,"FeedName":this.feedname,"FeedDescription":this.feeddescription,"FeedPubDate":this.feedPubDate!=""?this.feedPubDate+"<br />":"","Logo":logo,"INC-Items":_760,"RSSId":this._readerid,"RefreshFeed":this.translation.get("RefreshFeed")}});var _765=_764.generateOutput();return _765;},createClassic:function(){var logo="";if(this.showlogo=="on"&&this.logosrc!=""){logo="<a href=\""+this.logolink+"\" target=\"_blank\"><img src=\""+this.logosrc+"\" /></a>";}var _766="";for(var i=0,_767=this.length;i<_767;i++){var text=this.news[i]["text"];if(this.textlength>1){text=text.substr(0,this.textlength);var _768=text.lastIndexOf(" ");text=text.substr(0,_768);text+="...";}else{if(this.textlength==0){text="";}}if(this.stripimages=="on"){text=text.replace(/\<img.*?\>/gi,"");}var _769=new epages.Template({template:this.classicItemTemplateString,encodeVars:false,vars:{"HeadlineClass":"PostHeadlineColumn","TextClass":"PostText","URL":this.news[i]["link"],"Title":this.news[i]["title"],"Text":text,"PubDate":this.news[i]["pubDate"]!=""?this.news[i]["pubDate"]+"<br />":""}});_766+=_769.generateOutput();}var _76a=new epages.Template({template:this.classicTemplateString,encodeVars:false,vars:{"Class":"RSSFeed Classic","HeadClass":"Head","FeedNameClass":"FeedName","RSSIcon":this.icon,"FeedLink":this.pagelink,"FeedName":this.feedname,"FeedDescription":this.feeddescription,"FeedPubDate":this.feedPubDate!=""?this.feedPubDate+"<br />":"","Logo":logo,"INC-Items":_766,"RSSId":this._readerid,"RefreshFeed":this.translation.get("RefreshFeed")}});var _76b=_76a.generateOutput();return _76b;},createStandard:function(){var logo="";if(this.showlogo=="on"&&this.logosrc!=""){logo="<a href=\""+this.logolink+"\" target=\"_blank\"><img src=\""+this.logosrc+"\" /></a>";}var _76c="";for(var i=0,_76d=this.length;i<_76d;i++){var text=this.news[i]["text"];if(this.textlength>1){text=text.substr(0,this.textlength);var _76e=text.lastIndexOf(" ");text=text.substr(0,_76e);text+="...";}else{if(this.textlength==0){text="";}}if(this.stripimages=="on"){text=text.replace(/\<img.*?\>/gi,"");}var _76f=new epages.Template({template:this.classicItemTemplateString,encodeVars:false,vars:{"URL":this.news[i]["link"],"Title":this.news[i]["title"],"Text":text,"PubDate":this.news[i]["pubDate"]!=""?this.news[i]["pubDate"]+"<br />":""}});_76c+=_76f.generateOutput();}var _770=new epages.Template({template:this.classicTemplateString,encodeVars:false,vars:{"RSSIcon":this.icon,"FeedLink":this.pagelink,"FeedName":this.feedname,"FeedDescription":this.feeddescription,"FeedPubDate":this.feedPubDate!=""?this.feedPubDate+"<br />":"","Logo":logo,"INC-Items":_76c,"RSSId":this._readerid,"RefreshFeed":this.translation.get("RefreshFeed")}});var _771=_770.generateOutput();return _771;},contentString:function(info,_772){if(_772){if(info.formData.get("RSSReaderFeedUrl")){if(this.isindividual){var _773=encodeURIComponent(info.formData.get("RSSReaderFeedUrl")[0]);}else{var _773=info.formData.get("RSSReaderFeedUrl")[0];}this.getData(_773,this.lengthrequest);var _774="<link href=\""+epages.vars.StoreRoot+"/SF/Gadgets/RSSFeedClassic.css\" rel=\"stylesheet\" type=\"text/css\" /><link href=\""+epages.vars.StorefrontStyleCss+"\" rel=\"stylesheet\" type=\"text/css\" />";_774+=this.showData(info.formData.get("RSSReaderSelectStyle")[0],info.formData.get("RSSReaderEntrys")[0],info.formData.get("RSSReaderLengthEntrys")[0],info.formData.get("RSSReaderShowLogo")[0],info.formData.get("RSSReaderStripImages")[0],info.formData.get("RSSReaderOnlyHeadlines")[0]);return _774;}else{return "";}}else{if(this.isindividual){var _773=encodeURIComponent(info.formData.get("RSSReaderFeedUrl")[0]);}else{var _773=info.formData.get("RSSReaderFeedUrl")[0];}var _775=new Date();var _776=["<link href=\""+epages.vars.StoreRoot+"/SF/Gadgets/RSSFeedClassic.css\" rel=\"stylesheet\" type=\"text/css\" />","<script type=\"text/javascript\" language=\"Javascript\">","if(RSSReader == undefined) var RSSReader = {};","dojo.addOnLoad(function () {","if(document.getElementById(\"RSSFeed"+_775.getTime()+"\")){","dojo[\"require\"](\"epages.cartridges.de_epages.externalcontent.rssreader\");","RSSReader["+_775.getTime()+"] = new epages.cartridges.de_epages.externalcontent.RSSReader();","RSSReader["+_775.getTime()+"].getData(\""+_773+"\","+this.lengthrequest+");","document.getElementById(\"RSSFeed"+_775.getTime()+"\").innerHTML = RSSReader["+_775.getTime()+"].showData(\""+info.formData.get("RSSReaderSelectStyle")[0]+"\","+info.formData.get("RSSReaderEntrys")[0]+","+info.formData.get("RSSReaderLengthEntrys")[0]+",\""+info.formData.get("RSSReaderShowLogo")[0]+"\",\""+info.formData.get("RSSReaderStripImages")[0]+"\",\""+info.formData.get("RSSReaderOnlyHeadlines")[0]+"\",\""+_775.getTime()+"\");","}});","</script>","<div id=\"RSSFeed"+_775.getTime()+"\"></div>"].join("\n");return _776;}},refresh:function(){this.secondRequest();if(this.error==false){this.readResponse();}else{return false;}document.getElementById("RSSFeed"+this._readerid).innerHTML=this.showData(this.style,this.length,this.textlength,this.showlogo,this.stripimages,this.onlyheadlines,this._readerid);}});}if(!dojo._hasResource["epages.cartridges.de_epages.externalcontent.googletranslate"]){dojo._hasResource["epages.cartridges.de_epages.externalcontent.googletranslate"]=true;dojo.provide("epages.cartridges.de_epages.externalcontent.googletranslate");epages.cartridges.de_epages.externalcontent.GoogleTranslate=epages.Class();dojo.extend(epages.cartridges.de_epages.externalcontent.GoogleTranslate,epages.cartridges.de_epages.design.MceContent.prototype,{contentClass:"epages.cartridges.de_epages.externalcontent.GoogleTranslate",title:"Google Translate",width:200,height:45,type:undefined,preview:epages.vars.StoreRoot+"/BO/icons/navelement_googletranslate.png",LOAD:function(_777){new google.translate.TranslateElement({pageLanguage:epages.vars.Locale.language},"google_translate_element"+_777);},contentString:function(info,_778,_779,_77a){var _77b=(new Date()).getTime();var _77c="\n<div id=\"google_translate_element"+_77b+"\"></div>";var _77d=location.protocol+"//translate.google.com/translate_a/element.js?cb=cb"+_77b;var _77e="window.cb"+_77b+" = function(){";if(_77a){_77e+=_77a;}_77e+="dojo[\"require\"](\"epages.cartridges.de_epages.externalcontent.googletranslate\"); epages.cartridges.de_epages.externalcontent.GoogleTranslate.prototype.LOAD(\""+_77b+"\");};";if(_778&&_779){var _77f="<script type=\"text/javascript\">"+_77e+"</script>";dojo.create("div",{"innerHTML":_77f},_779);dojo.create("script",{"type":"text/javascript","src":_77d},_778);}else{_77c+="<script type=\"text/javascript\">"+_77e+"</script>";_77c+="<script type=\"text/javascript\" src=\""+_77d+"\"></script>";}return _77c;},loadPreview:function(_780){_780.src=dojo.moduleUrl("epages.cartridges.de_epages.externalcontent","googletranslatepreview.html");}});}if(!dojo._hasResource["epages.cartridges.de_epages.externalcontent.googlemap"]){dojo._hasResource["epages.cartridges.de_epages.externalcontent.googlemap"]=true;dojo.provide("epages.cartridges.de_epages.externalcontent.googlemap");epages.cartridges.de_epages.externalcontent.GoogleMap=epages.Class();dojo.extend(epages.cartridges.de_epages.externalcontent.GoogleMap,epages.cartridges.de_epages.design.MceContent.prototype,{geocoder:undefined,controls:true,markers:{},preset:undefined,centerLat:51.165,centerLng:10.455278,zoom:5,markersPlain:[],type:"roadmap",map:undefined,domObject:undefined,title:"googlemaps",preview:epages.vars.StoreRoot+"/BO/icons/navelement_googlemap.png",doInsertDom:false,navId:null,isPreview:false,additionalCallback:undefined,changeControls:function(_781){this.controls=!this.controls;this.setControls(this.controls);},setControls:function(_782){this.map.setOptions({navigationControl:_782,mapTypeControl:_782,draggable:_782,disableDoubleClickZoom:!_782,keyboardShortcuts:_782,scrollwheel:_782});},resize:function(_783,_784){if(this.domObject){this.domObject.style.width=_783;this.domObject.style.height=_784;}},changeSize:function(_785){if(_785){dojo.addClass(_785.focusNode,"DialogError");if(!_785.value.match(/^(\s*[0-9]+)\s*x(\s*[0-9]+\s*)$/)){return;}var size=_785.value.split("x");this.resize(dojo.trim(size[0])+"px",dojo.trim(size[1])+"px");dojo.removeClass(_785.focusNode,"DialogError");}},addEvents:function(_786){google.maps.event.addListener(_786.marker,"click",dojo.hitch(this,function(){_786.info.open(this.map,_786.marker);_786.infoIsOpen=true;}));google.maps.event.addListener(_786.info,"closeclick",dojo.hitch(this,function(){_786.infoIsOpen=false;}));},addMarker:function(id,_787,_788,_789,_78a,_78b){if(_787===undefined){_787=this.map.getCenter();}if(_78b===undefined){_78b=false;}var _78c=new google.maps.Marker({map:this.map,title:_788,draggable:_78a,position:_787});if(this.markers[id]){this.removeMarker(id);}this.markers[id]={"searchString":_788,"marker":_78c,"infoIsOpen":_78b,"info":new google.maps.InfoWindow({content:_789,size:new google.maps.Size(50,50)})};this.map.setCenter(_787);this.addEvents(this.markers[id]);if(_78b){this.markers[id].info.open(this.map,this.markers[id].marker);}},removeMarker:function(id){if(this.markers[id]){this.markers[id].info.close();this.markers[id].marker.setMap(null);delete this.markers[id];}},findAll:function(_78d){if(_78d===undefined){return;}var _78e=dojo.query("[name=googleMapsMarkerTable]",_78d);for(var i=0,l=_78e.length;i<l;i++){var _78f=dojo.query("input",_78e[i]);var _790=dojo.query("textarea",_78e[i]);if(!_78f.length||!_790.length){continue;}this.findAddress(_78f[0],_790[0]);}},findAddress:function(_791,_792,_793){if(_791===undefined){return;}if(_793===undefined){_793=true;}if(!this.geocoder){this.geocoder=new google.maps.Geocoder();}if(this.markers[_791.name]&&this.markers[_791.name].searchString==_791.value){return;}this.geocoder.geocode({"address":_791.value},dojo.hitch(this,function(_794,_795){if(_795==google.maps.GeocoderStatus.OK){this.addMarker(_791.name,_794[0].geometry.location,_791.value,_791.value,_793);if(_792){this.changeMarkerText(_791.name,_792);}dojo.removeClass(_791,"DialogError");}else{dojo.addClass(_791,"DialogError");}}));},setInfoText:function(id,_796){if(this.markers[id]){this.markers[id].info.setContent(_796);}},changeMarkerText:function(id,_797){if(_797){var _798=_797.value;_798=_798.replace(/\n/g,"<br/>");this.setInfoText(id,_798);}},encodeInfo:function(info){return this.base64.encode(dojo.toJson(info));},validateNew:function(info){if(!info.markersPlain){return;}for(var i=0,l=info.markersPlain.length;i<l;i++){this.addMarker("googlemaps:address:"+i,new google.maps.LatLng(info.markersPlain[i].lat,info.markersPlain[i].lng),info.markersPlain[i].title,info.markersPlain[i].infoText,this.isPreview,info.markersPlain[i].infoIsOpen);}},validateOld:function(info){},loadMap:function(_799,info){if(_799===undefined){console.warn("Google Map couldn't be loaded. Dom object missing");return;}this.domObject=_799;parent.epages.cartridges.de_epages.externalcontent.googlemaps=this.markers;if(info===undefined){var _79a=new google.maps.LatLng(this.centerLat,this.centerLng);this.map=new google.maps.Map(_799,{zoom:this.zoom,center:_79a,mapTypeId:google.maps.MapTypeId.ROADMAP,navigationControl:false});}else{info=this.decodeInfo(info);var _79a=new google.maps.LatLng(info.centerLat,info.centerLng);info.zoom=parseInt(info.zoom,10);this.controls=info.controls;this.resize(info.width,info.height);var _79b={zoom:info.zoom,center:_79a,mapTypeId:info.type,navigationControl:info.controls};this.map=new google.maps.Map(_799,_79b);this.setControls(this.controls);this.markers={};if(info.markersPlain){this.validateNew(info);}else{this.validateOld(info);}this.markersPlain=[];this.map.setCenter(_79a);}},createMarkersInfo:function(){var _79c=[];if(this.markersPlain.length){return this.markersPlain;}for(var i in this.markers){_79c.push({infoIsOpen:this.markers[i].infoIsOpen,lng:this.markers[i].marker.getPosition().lng(),lat:this.markers[i].marker.getPosition().lat(),title:this.markers[i].marker.getTitle(),infoText:this.markers[i].info.content});}return _79c;},info:function(){var map=this.map;if(map!==undefined){dojo.mixin(this,{centerLat:map.getCenter().lat(),centerLng:map.getCenter().lng(),type:map.getMapTypeId(),width:map.getDiv().style.width,height:map.getDiv().style.height,zoom:map.getZoom()});}var info=epages.cartridges.de_epages.design.MceContent.prototype.info.apply(this);dojo.mixin(info,{centerLat:this.centerLat,centerLng:this.centerLng,type:this.type,zoom:this.zoom,markersPlain:this.createMarkersInfo(),controls:this.controls});return info;},LOAD:function(_79d,info){var _79e=new epages.cartridges.de_epages.externalcontent.GoogleMap();_79e.loadMap(_79d,info);},contentString:function(info){var _79f=(new Date()).getTime();var _7a0=["<script type=\"text/javascript\">","dojo[\"require\"](\"epages.cartridges.de_epages.externalcontent.googlemap\");","window.googleMapsCallback = function(){ ","epages.cartridges.de_epages.externalcontent.GoogleMap.prototype.LOAD($('"+_79f+"'), '"+this.encodeInfo(info)+"');","};","</script>","<script src=\"http://maps.google.com/maps/api/js?v=3&sensor=false&callback=googleMapsCallback\" type=\"text/javascript\"></script>","<div id=\""+_79f+"\" style=\"width: "+info.width+"; height: "+info.height+"\">\n</div>"];return _7a0.join("\n");},loadPreview:function(_7a1){if(this.map===undefined){this.isPreview=true;window["epages_vars_externalcontent_"+this.navId+"_callback"]=dojo.hitch(this,function(){this.loadMap($("map"),this.encodeInfo(this.info()));if(this.additionalCallback){this.additionalCallback();}});var _7a2=document.getElementsByTagName("head")[0];var _7a3=document.createElement("script");_7a3.setAttribute("src","http://maps.google.com/maps/api/js?v=3&sensor=false&callback=epages_vars_externalcontent_"+this.navId+"_callback");_7a3.setAttribute("type","text/javascript");_7a2.appendChild(_7a3);var _7a4=document.createElement("div");_7a4.innerHTML="<div id=\"map\" style=\"width: 300px; height: 300px; max-height: 430px; max-width: 400px;\">Loading Map...</div>";_7a4.id="PluginPreviewFrame";_7a4.style.overflow="auto";_7a1.parentNode.replaceChild(_7a4,_7a1);}}});}if(!dojo._hasResource["epages.cartridges.de_epages.externalcontent.bingmap"]){dojo._hasResource["epages.cartridges.de_epages.externalcontent.bingmap"]=true;dojo.provide("epages.cartridges.de_epages.externalcontent.bingmap");epages.cartridges.de_epages.externalcontent.BingMap=epages.Class();dojo.extend(epages.cartridges.de_epages.externalcontent.BingMap,epages.cartridges.de_epages.design.MceContent.prototype,{contentClass:"epages.cartridges.de_epages.externalcontent.BingMap",title:"bingmap",type:undefined,preview:epages.vars.StoreRoot+"/BO/icons/navelement_bingmap.png",map:undefined,domObject:undefined,centerLat:51.165,centerLng:10.455278,zoom:5,markerLng:11.583616,markerLat:50.928705,markerDesc:"",markerText:"",width:undefined,height:undefined,navId:null,controls:true,mapFixed:false,pushpin:undefined,puspinUnadded:false,_showControlsNode:undefined,changeControls:function(){if(!this.map){return;}if(this.controls){this.map.HideDashboard();}else{this.map.ShowDashboard();}this.controls=!this.controls;},resize:function(_7a5,_7a6){if(this.domObject==null){this.domObject=dojo.byId("map"+this.navId);}if(this.map){this.domObject.style.width=_7a5+"px";this.domObject.style.height=_7a6+"px";this.map.Resize();}this.width=_7a5;this.height=_7a6;},changeSize:function(_7a7){var size=_7a7.value.split(":");this.resize(size[0],size[1]);},setMapStyle:function(type){if(type===undefined){type=VEMapStyle.Aerial;}this.map.SetMapStyle(type);},_blockMapMove:function(){return true;},setMapFix:function(_7a8){if(this._showControlsNode===undefined){this._showControlsNode=dojo.query("input[name='checkShowControls']")[0];}if(!this.mapFixed){this.map.AttachEvent("onmousedown",this._blockMapMove);this.map.AttachEvent("onmousewheel",this._blockMapMove);if(_7a8!==undefined&&_7a8){this._showControlsNode.checked=false;this._showControlsNode.disabled=true;}}else{this.map.DetachEvent("onmousedown",this._blockMapMove);this.map.DetachEvent("onmousewheel",this._blockMapMove);if(_7a8!==undefined&&_7a8){this._showControlsNode.checked=true;this._showControlsNode.disabled=false;}}this.mapFixed=!this.mapFixed;if(this.controls==this.mapFixed){this.changeControls();}},setMarkerText:function(_7a9){var _7aa=_7a9.value;_7aa=_7aa.replace(/\n/g,"<br />");if(this.pushpin===undefined){this.pushpin=new VEShape(VEShapeType.Pushpin,this.map.GetCenter());this.pushpinUnshown=true;}this.pushpin.SetTitle(_7aa);this.markerText=_7aa;},setMarkerPosition:function(_7ab,_7ac){if(_7ab===undefined){_7ab=this.map.GetCenter();}if(this.pushpin===undefined){this.pushpin=new VEShape(VEShapeType.Pushpin,_7ab);this.pushpin.SetDescription(_7ac);this.pushpin.SetTitle("-");this.markerText="-";this.map.AddShape(this.pushpin);}else{if(this.pushpinUnshown){this.map.AddShape(this.pushpin);}this.pushpin.SetPoints([_7ab]);this.pushpin.SetDescription(_7ac);}this.markerLat=_7ab.Latitude;this.markerLng=_7ab.Longitude;this.markerDesc=_7ac;},findAddress:function(_7ad){this.map.Find("",_7ad,null,null,0,20,false,false,false,true,dojo.hitch(this,function(a,b,c){if(c==null){alert("Address not found.");}else{this.setMarkerPosition(c[0].LatLong,_7ad);}}));},loadMap:function(_7ae,info){this.domObject=_7ae;this.map=new VEMap(_7ae.id);var _7af=function(){if(info===undefined){this.map.LoadMap();}else{info=this.decodeInfo(info);if(info.controls.replace!==undefined){info.controls=info.controls=="true"?true:false;}if(info.zoom.replace!==undefined){info.zoom=parseInt(info.zoom,10);}this.map.LoadMap(new VELatLong(info.centerLat,info.centerLng),info.zoom,info.type);if(info.controls==false){this.changeControls();}if(info.mapFixed=="true"){this.mapFixed=false;this.setMapFix();}this.controls=info.controls;this.resize(info.width,info.height);if(info.markerText!==undefined&&info.markerText!=""){this.markerText=info.markerText;this.markerDesc=info.markerDesc;this.pushpin=new VEShape(VEShapeType.Pushpin,new VELatLong(info.markerLat,info.markerLng));this.pushpin.SetTitle(this.markerDesc);this.pushpin.SetDescription(this.markerText);this.map.AddShape(this.pushpin);}}};var _7b0=setInterval(dojo.hitch(this,function(){if((eval("typeof VEMap")!="undefined")&&(_7ae.attachEvent!=undefined)){clearInterval(_7b0);dojo.hitch(this,_7af)();}}),10);},info:function(){var map=this.map;if(map!==undefined){dojo.mixin(this,{centerLat:map.GetCenter().Latitude,centerLng:map.GetCenter().Longitude,type:map.GetMapStyle(),zoom:map.GetZoomLevel()});}var info=epages.cartridges.de_epages.design.MceContent.prototype.info.apply(this);dojo.mixin(info,{centerLat:this.centerLat,centerLng:this.centerLng,controls:this.controls,type:this.type,zoom:this.zoom,width:this.width,height:this.height,markerLng:this.markerLng,markerLat:this.markerLat,markerDesc:this.markerDesc,markerText:this.markerText,mapFixed:this.mapFixed});return info;},LOAD:function(_7b1,info){var _7b2;var init=function(){if(window.VEMap!==undefined){window.clearInterval(_7b2);var _7b3=new epages.cartridges.de_epages.externalcontent.BingMap();_7b3.loadMap(_7b1,info);}};if(window.VEMap===undefined){_7b2=window.setInterval(init,1000);_7b1.innerHTML="Preview";}else{dojo.hitch(this,init)();}},contentString:function(info){var _7b4=(new Date()).getTime();var _7b5=["\n<script type=\"text/javascript\">","var SSLTail = location.protocol === \"https:\" ? \"&s=1\" : \"\";","var scriptSrc = location.protocol + \"//ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2\" + SSLTail;","dojo.create(\"script\", { \"type\" : \"text/javascript\", \"src\" : scriptSrc},dojo.query(\"head\")[0]);","dojo.addOnLoad(function () {","dojo[\"require\"](\"epages.cartridges.de_epages.externalcontent.bingmap\");","epages.cartridges.de_epages.externalcontent.BingMap.prototype.LOAD($('map"+_7b4+"'), '"+this.encodeInfo(info)+"');","});","</script>","<div id=map"+_7b4+" style=\"position:relative; width: "+info.width+"px; height: "+info.height+"px\"></div>"];return _7b5.join("\n");},loadPreview:function(_7b6){var info=epages.vars.externalcontent[this.navId].object.info();info=this.encodeInfo(info);var _7b7=document.createElement("div");_7b7.innerHTML="<div id=\"map"+this.navId+"\" style=\"position:relative; width: 400px; height: 400px;\">Loading Map...</div>";_7b7.id="PluginPreviewFrame";_7b7.style.overflow="auto";_7b6.parentNode.replaceChild(_7b7,_7b6);window["epages_vars_externalcontent_"+this.navId+"_callback"]=dojo.hitch(this,function(){this.loadMap($("map"+this.navId),info);});var _7b8=dojo.query("head")[0];var _7b9=location.protocol==="https:"?"&s=1":"";dojo.create("script",{"src":location.protocol+"//ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"+_7b9+"&onscriptload=epages_vars_externalcontent_"+this.navId+"_callback","type":"text/javascript"},_7b8);}});}if(!dojo._hasResource["epages.cartridges.de_epages.dhl.widget.Calendar"]){dojo._hasResource["epages.cartridges.de_epages.dhl.widget.Calendar"]=true;dojo.provide("epages.cartridges.de_epages.dhl.widget.Calendar");dojo.declare("epages.cartridges.de_epages.dhl.widget.Calendar",[epages.widget.Calendar],{disableSaturday:false,disableSunday:true,isDisabledDate:function(date,_7ba){date.setHours(0,0,0,0);if(this.disableSaturday&&date.getDay()==6){return true;}if(this.disableSunday&&date.getDay()==0){return true;}var now=new Date();if(dojo.date.compare(now,date,"date")>=0){return true;}}});}dojo.i18n._preloadLocalizations("epages.nls.ep_sf",["ROOT","ca","da","de","en","es","fi","fr","it","nl","no","pt","ro","ru","sv","xx"]);

