/*
	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["epages._workaround"]){dojo._hasResource["epages._workaround"]=true;dojo.provide("epages._workaround");dojo["requireLocalization"]("dojo.cldr","gregorian");epages._workaround.load=function(_33){if(_33=="epages.widget.Calendar"&&dojo.version.revision=="0"){dijit._placeOnScreenAroundRect=function(_34,x,y,_35,_36,_37,_38){var _39=[];for(var _3a in _37){_39.push({aroundCorner:_3a,corner:_37[_3a],pos:{x:x+(_3a.charAt(1)=="L"?0:_35),y:y+(_3a.charAt(0)=="T"?0:_36)}});}if(_39.length==2&&_39[0].aroundCorner=="BR"&&_39[0].corner=="TR"&&_39[1].aroundCorner=="BL"&&_39[1].corner=="TL"){_39=_39.reverse();}return dijit._place(_34,_39,_38);};}if(_33=="dijit.Tree"&&dojo.version.revision=="20973"){dojo.connect(dijit._TreeNode.prototype,"expand",function(){dojo.publish(this.tree.id+"/nodeexpand",[this]);});}else{if(_33=="dojo.cldr.supplemental"){dojo.cldr.supplemental.getFirstDayOfWeek=function(_3b){if(dojo.i18n.normalizeLocale(_3b)==djConfig.locale){return epages.vars.Locale.firstDayOfWeek;}var _3c={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 _3d=dojo.cldr.supplemental._region(_3b);var dow=_3c[_3d];return (dow===undefined)?1:dow;};}}if(_33=="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(_3e,_3f,_40){if(_3e&&_3e.length&&_3f){var _41;var _42;if(typeof (_3f)==="string"){var _43=$(_3f);if(_43){_41=_43;}else{_41=document.createElement(_3f);_42=document.createElement("div");}}else{_41=_3f;}if(_40){_41.innerHTML=_40;}for(var i=0,_44=_3e.length;i<_44;i++){if(_3e[i][0]==="style"){_41.style.cssText=_3e[i][1];}else{if(_3e[i][0]==="name"&&epages.Browser.engine==="MSIE"){_41.Name=_3e[i][1];}else{_41.setAttribute(_3e[i][0],_3e[i][1]);}}}if(_42){_42.appendChild(_41);document.write(_42.innerHTML);}}},flashForward:function(){return epages.constants.doFlashForward;},setTheme:function(_45){var _46=dojo.body();var old=epages.theme.name;if(_46){dojo.removeClass(_46,epages.theme.name);}else{dojo.addOnLoad(function(){var _47=dojo.body();if(_47){dojo.removeClass(_47,epages.theme.name);dojo.addClass(_47,_45);}});}epages.theme.name=_45;epages.theme.url=dojo.moduleUrl("dijit.themes",_45);if(_46){dojo.addClass(_46,_45);}},themeUrl:function(_48){return epages.theme.url+"/"+_48;},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(_49,_4a){_49.action=_4a.substr(0,1)=="?"?epages.vars.BaseUrl+_4a:_4a;},locationWebRoot:function(uri){return window.location.protocol+"//"+window.location.host+uri;},Class:function(){return function(){this.initialize.apply(this,arguments);};},changeSampleText:function(_4b,_4c){if(!_4b){_4b="";}sampletags=document.getElementsByTagName("samp");for(var i=0,_4d=sampletags.length;i<_4d;i++){if(sampletags[i].getAttribute("title")==_4c){if(sampletags[i].firstChild){sampletags[i].firstChild.data=_4b;}else{mydata=document.createTextNode(_4b);sampletags[i].appendChild(mydata);}}}},toggleNodes:function(_4e,_4f,_50){if(typeof _4e=="string"){if(typeof _50=="undefined"){_50=document;}if(typeof _50=="string"){_50=document.getElementById(_50);}var _51=_50.getElementsByTagName("*");for(var i=0,_52=_51.length;i<_52;i++){if(_51[i].attributes&&_51[i].attributes["class"]&&_51[i].attributes["class"].nodeValue.indexOf(_4e)>-1){if(_4f){if(_51[i].className.match(/HideNode/)){_51[i].className=_51[i].className.replace(/HideNode/,"ShowNode");}else{if(_51[i].className.match(/ShowNode/)){_51[i].className=_51[i].className.replace(/ShowNode/,"HideNode");}else{if(_51[i].style.display=="none"){_51[i].style.display="";}else{if(_51[i].style.display!="none"){_51[i].style.display="none";}}}}if(_51[i].className.match(/HideElement/)){_51[i].className=_51[i].className.replace(/HideElement/,"ShowElement");}}else{if(_51[i].style.visibility=="hidden"){_51[i].style.visibility="visible";if(_51[i].style.display=="none"){_51[i].style.display="";}_51[i].className=_51[i].className.replace(/HideNode/,"ShowNode");_51[i].className=_51[i].className.replace(/HideElement/,"ShowElement");}else{_51[i].style.visibility="hidden";}}}}}},changeDelimiter:function(_53,_54){switch(_53){case ",":document.getElementById(_54).options[0].selected="selected";break;case ";":document.getElementById(_54).options[1].selected="selected";break;default:document.getElementById(_54).options[2].selected="selected";break;}},toggleLink:function(_55){if(document.getElementsByName(_55)[0].className=="ShowLink"){document.getElementsByName(_55)[0].className="HideLink";}else{document.getElementsByName(_55)[0].className="ShowLink";}},toggleExtender:function(_56){splittedFilename=_56.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";}_56.src=splittedFilename.join("/");},getDocumentWindow:function(doc){return (doc.parentWindow)?doc.parentWindow:doc.defaultView;},getIframeWrapperUrl:function(url,_57){var src="?iframeUrl="+encodeURIComponent(url);if(_57){src+="&charset="+encodeURIComponent(_57);}return dojo.moduleUrl("epages","iframe_wrapper.html")+src;},require:function(_58,_59){if(!window.StoreTypeRoot){console.warn("global var StoreTypeRoot not defined in epages.require()");}if(!_58){return;}if(epages.vars.DebugLevel&&epages.vars.DebugLevel==1){_58+=".js.uncompressed";}if(_59){if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){return dojo["require"](_59);}var _5a=dojo._loadedModules[_59];if(_5a){return _5a;}epages.vars.currentRequiredModul=_59;dojo.xhrGet({url:window.StoreRoot+"/javascript/build/epages/"+_58+".js",sync:true,load:function(_5b){eval(_5b);},error:function(_5c){dojo["require"](epages.vars.currentRequiredModul);},mimetype:"text/plain"});_5a=dojo._loadedModules[_59];epages.vars.currentRequiredModul=undefined;return _5a;}else{if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){return;}dojo.xhrGet({url:window.StoreRoot+"/javascript/build/epages/"+_58+".js",sync:true,load:function(_5d){eval(_5d);},mimetype:"text/plain"});return;}},checkUnit:function(_5e,_5f){if(_5e&&_5f){if(_5f.value===""&&_5e.value!==""){dojo.addClass(_5f,"DialogError");}else{dojo.removeClass(_5f,"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();}if(window.CollectGarbage){window.CollectGarbage();}};}}return;};}});epages.parentByTagName=function(_60,_61){while(_60.nodeName.toLocaleLowerCase()!=_61){_60=_60.parentNode;if(_60.parentNode==document.body){break;}}return _60;};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(_62){if(_62.file&&_62.priority){var _63=false;for(var i=0,_64=this.files.length;i<_64;i++){if(this.files[i].file==_62.file){_63=true;break;}}if(!_63){this.files.push(_62);}}},stopped:false,_preloadFiles:function(){if(!this.stopped&&this.files.length>0){this.nextPreloadFile=this.files[0];for(var i=0,_65=this.files.length;i<_65;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(_66,_67,_68){setTimeout(function(){epages.Preload.start();},_67);});}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(_69){if(this._hash[_69.id]){throw new Error("Tried to register widget with id=="+_69.id+" but that id is already registered");}this._hash[_69.id]=_69;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_6a,_6b){_6b=_6b||dojo.global;var i=0,id;for(id in this._hash){_6a.call(_6b,this._hash[id],i++,this._hash);}return this;},filter:function(_6c,_6d){_6d=_6d||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_6c.call(_6d,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,_6e;for(id in this._hash){_6e=this._hash[id];if(_6e.declaredClass==cls){res.add(_6e);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_6f,_70){return dojo.map(this.toArray(),_6f,_70);},every:function(_71,_72){_72=_72||dojo.global;var x=0,i;for(i in this._hash){if(!_71.call(_72,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_73,_74){_74=_74||dojo.global;var x=0,i;for(i in this._hash){if(_73.call(_74,this._hash[i],x++,this._hash)){return true;}}return false;}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_75){var id;do{id=_75+"_"+(_75 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_75]:dijit._widgetTypeCtr[_75]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_76){var _77=[];function _78(_79){for(var _7a=_79.firstChild;_7a;_7a=_7a.nextSibling){if(_7a.nodeType==1){var _7b=_7a.getAttribute("widgetId");if(_7b){var _7c=dijit.byId(_7b);_77.push(_7c);}else{_78(_7a);}}}};_78(_76);return _77;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_7d){if(!_7d._destroyed){if(_7d.destroyRecursive){_7d.destroyRecursive();}else{if(_7d.destroy){_7d.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(_7e){return dijit.registry.byId(_7e.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_7f){while(_7f){var id=_7f.getAttribute&&_7f.getAttribute("widgetId");if(id){return dijit.byId(id);}_7f=_7f.parentNode;}return null;};dijit._isElementShown=function(_80){var _81=dojo.style(_80);return (_81.visibility!="hidden")&&(_81.visibility!="collapsed")&&(_81.display!="none")&&(dojo.attr(_80,"type")!="hidden");};dijit.isTabNavigable=function(_82){if(dojo.attr(_82,"disabled")){return false;}else{if(dojo.hasAttr(_82,"tabIndex")){return dojo.attr(_82,"tabIndex")>=0;}else{switch(_82.nodeName.toLowerCase()){case "a":return dojo.hasAttr(_82,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){return _82.contentDocument.designMode=="on";}else{if(dojo.isWebKit){var doc=_82.contentDocument,_83=doc&&doc.body;return _83&&_83.contentEditable=="true";}else{doc=_82.contentWindow.document;_83=doc&&doc.body;return _83&&_83.firstChild&&_83.firstChild.contentEditable=="true";}}default:return _82.contentEditable=="true";}}}};dijit._getTabNavigable=function(_84){var _85,_86,_87,_88,_89,_8a;var _8b=function(_8c){dojo.query("> *",_8c).forEach(function(_8d){var _8e=dijit._isElementShown(_8d);if(_8e&&dijit.isTabNavigable(_8d)){var _8f=dojo.attr(_8d,"tabIndex");if(!dojo.hasAttr(_8d,"tabIndex")||_8f==0){if(!_85){_85=_8d;}_86=_8d;}else{if(_8f>0){if(!_87||_8f<_88){_88=_8f;_87=_8d;}if(!_89||_8f>=_8a){_8a=_8f;_89=_8d;}}}}if(_8e&&_8d.nodeName.toUpperCase()!="SELECT"){_8b(_8d);}});};if(dijit._isElementShown(_84)){_8b(_84);}return {first:_85,last:_86,lowest:_87,highest:_89};};dijit.getFirstInTabbingOrder=function(_90){var _91=dijit._getTabNavigable(dojo.byId(_90));return _91.lowest?_91.lowest:_91.first;};dijit.getLastInTabbingOrder=function(_92){var _93=dijit._getTabNavigable(dojo.byId(_92));return _93.last?_93.last:_93.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(_94){var _95=dojo.doc,_96=_94.mark;if(_96){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_96.pRange){var r=_96;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_96);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_95.selection&&_96){var rg;if(_96.pRange){rg=_96.range;}else{if(dojo.isArray(_96)){rg=_95.body.createControlRange();dojo.forEach(_96,function(n){rg.addElement(n);});}else{rg=_95.body.createTextRange();rg.moveToBookmark(_96);}}rg.select();}}}},getFocus:function(_97,_98){var _99=!dijit._curFocus||(_97&&dojo.isDescendant(dijit._curFocus,_97.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_99,bookmark:(_99==dijit._curFocus)&&dojo.withGlobal(_98||dojo.global,dijit.getBookmark),openedForWindow:_98};},focus:function(_9a){if(!_9a){return;}var _9b="node" in _9a?_9a.node:_9a,_9c=_9a.bookmark,_9d=_9a.openedForWindow,_9e=_9c?_9c.isCollapsed:false;if(_9b){var _9f=(_9b.tagName.toLowerCase()=="iframe")?_9b.contentWindow:_9b;if(_9f&&_9f.focus){try{_9f.focus();}catch(e){}}dijit._onFocusNode(_9b);}if(_9c&&dojo.withGlobal(_9d||dojo.global,dijit.isCollapsed)&&!_9e){if(_9d){_9d.focus();}try{dojo.withGlobal(_9d||dojo.global,dijit.moveToBookmark,null,[_9c]);}catch(e2){}}},_activeStack:[],registerIframe:function(_a0){return dijit.registerWin(_a0.contentWindow,_a0);},unregisterIframe:function(_a1){dijit.unregisterWin(_a1);},registerWin:function(_a2,_a3){var _a4=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_a3||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_a2.document.documentElement:_a2.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_a4);var _a5=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_a3||evt.srcElement);}else{dijit._onTouchNode(_a3||evt.srcElement);}};doc.attachEvent("onactivate",_a5);var _a6=function(evt){dijit._onBlurNode(_a3||evt.srcElement);};doc.attachEvent("ondeactivate",_a6);return function(){doc.detachEvent("onmousedown",_a4);doc.detachEvent("onactivate",_a5);doc.detachEvent("ondeactivate",_a6);doc=null;};}else{doc.addEventListener("mousedown",_a4,true);var _a7=function(evt){dijit._onFocusNode(_a3||evt.target);};doc.addEventListener("focus",_a7,true);var _a8=function(evt){dijit._onBlurNode(_a3||evt.target);};doc.addEventListener("blur",_a8,true);return function(){doc.removeEventListener("mousedown",_a4,true);doc.removeEventListener("focus",_a7,true);doc.removeEventListener("blur",_a8,true);doc=null;};}}},unregisterWin:function(_a9){_a9&&_a9();},_onBlurNode:function(_aa){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(_ab,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _ac=[];try{while(_ab){var _ad=dojo.attr(_ab,"dijitPopupParent");if(_ad){_ab=dijit.byId(_ad).domNode;}else{if(_ab.tagName&&_ab.tagName.toLowerCase()=="body"){if(_ab===dojo.body()){break;}_ab=dijit.getDocumentWindow(_ab.ownerDocument).frameElement;}else{var id=_ab.getAttribute&&_ab.getAttribute("widgetId");if(id){_ac.unshift(id);}_ab=_ab.parentNode;}}}}catch(e){}dijit._setStack(_ac,by);},_onFocusNode:function(_ae){if(!_ae){return;}if(_ae.nodeType==9){return;}dijit._onTouchNode(_ae);if(_ae==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_ae;dojo.publish("focusNode",[_ae]);},_setStack:function(_af,by){var _b0=dijit._activeStack;dijit._activeStack=_af;for(var _b1=0;_b1<Math.min(_b0.length,_af.length);_b1++){if(_b0[_b1]!=_af[_b1]){break;}}var _b2;for(var i=_b0.length-1;i>=_b1;i--){_b2=dijit.byId(_b0[i]);if(_b2){_b2._focused=false;_b2._hasBeenBlurred=true;if(_b2._onBlur){_b2._onBlur(by);}if(_b2._setStateClass){_b2._setStateClass();}dojo.publish("widgetBlur",[_b2,by]);}}for(i=_b1;i<_af.length;i++){_b2=dijit.byId(_af[i]);if(_b2){_b2._focused=true;if(_b2._onFocus){_b2._onFocus(by);}if(_b2._setStateClass){_b2._setStateClass();}dojo.publish("widgetFocus",[_b2,by]);}}}});dojo.addOnLoad(function(){var _b3=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_b3);_b3=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_b4){this.pairs=[];this.returnWrappers=_b4||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_b5,_b6,_b7,_b8,_b9){this.pairs[((_b9)?"unshift":"push")]([_b5,_b6,_b7,_b8]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _ba=this.pairs[i];if(_ba[1].apply(this,arguments)){if((_ba[3])||(this.returnWrappers)){return _ba[2];}else{return _ba[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_bb){for(var i=0;i<this.pairs.length;i++){var _bc=this.pairs[i];if(_bc[0]==_bb){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 _bd=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _be=dojo._docScroll();return {w:_bd.clientWidth,h:_bd.clientHeight,l:_be.x,t:_be.y};};dijit.placeOnScreen=function(_bf,pos,_c0,_c1){var _c2=dojo.map(_c0,function(_c3){var c={corner:_c3,pos:{x:pos.x,y:pos.y}};if(_c1){c.pos.x+=_c3.charAt(1)=="L"?_c1.x:-_c1.x;c.pos.y+=_c3.charAt(0)=="T"?_c1.y:-_c1.y;}return c;});return dijit._place(_bf,_c2);};dijit._place=function(_c4,_c5,_c6){var _c7=dijit.getViewport();if(!_c4.parentNode||String(_c4.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_c4);}var _c8=null;dojo.some(_c5,function(_c9){var _ca=_c9.corner;var pos=_c9.pos;if(_c6){_c6(_c4,_c9.aroundCorner,_ca);}var _cb=_c4.style;var _cc=_cb.display;var _cd=_cb.visibility;_cb.visibility="hidden";_cb.display="";var mb=dojo.marginBox(_c4);_cb.display=_cc;_cb.visibility=_cd;var _ce=Math.max(_c7.l,_ca.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_cf=Math.max(_c7.t,_ca.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_d0=Math.min(_c7.l+_c7.w,_ca.charAt(1)=="L"?(_ce+mb.w):pos.x),_d1=Math.min(_c7.t+_c7.h,_ca.charAt(0)=="T"?(_cf+mb.h):pos.y),_d2=_d0-_ce,_d3=_d1-_cf,_d4=(mb.w-_d2)+(mb.h-_d3);if(_c8==null||_d4<_c8.overflow){_c8={corner:_ca,aroundCorner:_c9.aroundCorner,x:_ce,y:_cf,w:_d2,h:_d3,overflow:_d4};}return !_d4;});_c4.style.left=_c8.x+"px";_c4.style.top=_c8.y+"px";if(_c8.overflow&&_c6){_c6(_c4,_c8.aroundCorner,_c8.corner);}return _c8;};dijit.placeOnScreenAroundNode=function(_d5,_d6,_d7,_d8){_d6=dojo.byId(_d6);var _d9=_d6.style.display;_d6.style.display="";var _da=dojo.position(_d6,true);_d6.style.display=_d9;return dijit._placeOnScreenAroundRect(_d5,_da.x,_da.y,_da.w,_da.h,_d7,_d8);};dijit.placeOnScreenAroundRectangle=function(_db,_dc,_dd,_de){return dijit._placeOnScreenAroundRect(_db,_dc.x,_dc.y,_dc.width,_dc.height,_dd,_de);};dijit._placeOnScreenAroundRect=function(_df,x,y,_e0,_e1,_e2,_e3){var _e4=[];for(var _e5 in _e2){_e4.push({aroundCorner:_e5,corner:_e2[_e5],pos:{x:x+(_e5.charAt(1)=="L"?0:_e0),y:y+(_e5.charAt(0)=="T"?0:_e1)}});}return dijit._place(_df,_e4,_e3);};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(_e6,_e7,_e8,_e9){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAlignment=function(_ea,_eb){var _ec={};dojo.forEach(_ea,function(pos){switch(pos){case "after":_ec[_eb?"BR":"BL"]=_eb?"BL":"BR";break;case "before":_ec[_eb?"BL":"BR"]=_eb?"BR":"BL";break;case "below":_ec[_eb?"BL":"BR"]=_eb?"TL":"TR";_ec[_eb?"BR":"BL"]=_eb?"TR":"TL";break;case "above":default:_ec[_eb?"TL":"TR"]=_eb?"BL":"BR";_ec[_eb?"TR":"TL"]=_eb?"BR":"BL";break;}});return _ec;};dijit.getPopupAroundAlignment=function(_ed,_ee){var _ef={};dojo.forEach(_ed,function(pos){switch(pos){case "after":_ef[_ee?"BR":"BL"]=_ee?"BL":"BR";break;case "before":_ef[_ee?"BL":"BR"]=_ee?"BR":"BL";break;case "below":_ef[_ee?"BL":"BR"]=_ee?"TL":"TR";_ef[_ee?"BR":"BL"]=_ee?"TR":"TL";break;case "above":default:_ef[_ee?"TL":"TR"]=_ee?"BL":"BR";_ef[_ee?"TR":"TL"]=_ee?"BR":"BL";break;}});return _ef;};}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 _f0=[],_f1=1000,_f2=1;this.moveOffScreen=function(_f3){var s=_f3.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(_f3);};var _f4=function(){for(var pi=_f0.length-1;pi>0&&_f0[pi].parent===_f0[pi-1].widget;pi--){}return _f0[pi];};var _f5=[];this.open=function(_f6){var _f7=_f6.popup,_f8=_f6.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_f9=_f6.around,id=(_f6.around&&_f6.around.id)?(_f6.around.id+"_dropdown"):("popup_"+_f2++);var _fa=_f5.pop(),_fb,_fc;if(!_fa){_fb=dojo.create("div",{"class":"dijitPopup"},dojo.body());dijit.setWaiRole(_fb,"presentation");}else{_fb=_fa[0];_fc=_fa[1];}dojo.attr(_fb,{id:id,style:{zIndex:_f1+_f0.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:_f6.parent?_f6.parent.id:""});var s=_f7.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_fb.appendChild(_f7.domNode);if(!_fc){_fc=new dijit.BackgroundIframe(_fb);}else{_fc.resize(_fb);}var _fd=_f9?dijit.placeOnScreenAroundElement(_fb,_f9,_f8,_f7.orient?dojo.hitch(_f7,"orient"):null):dijit.placeOnScreen(_fb,_f6,_f8=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_f6.padding);_fb.style.visibility="visible";var _fe=[];_fe.push(dojo.connect(_fb,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_f6.onCancel){dojo.stopEvent(evt);_f6.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _ff=_f4();if(_ff&&_ff.onCancel){_ff.onCancel();}}}}));if(_f7.onCancel){_fe.push(dojo.connect(_f7,"onCancel",_f6.onCancel));}_fe.push(dojo.connect(_f7,_f7.onExecute?"onExecute":"onChange",function(){var _100=_f4();if(_100&&_100.onExecute){_100.onExecute();}}));_f0.push({wrapper:_fb,iframe:_fc,widget:_f7,parent:_f6.parent,onExecute:_f6.onExecute,onCancel:_f6.onCancel,onClose:_f6.onClose,handlers:_fe});if(_f7.onOpen){_f7.onOpen(_fd);}return _fd;};this.close=function(_101){while(dojo.some(_f0,function(elem){return elem.widget==_101;})){var top=_f0.pop(),_102=top.wrapper,_103=top.iframe,_104=top.widget,_105=top.onClose;if(_104.onClose){_104.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_104&&_104.domNode){this.moveOffScreen(_104.domNode);}_102.style.top="-9999px";_102.style.visibility="hidden";_f5.push([_102,_103]);if(_105){_105();}}};}();dijit._frames=new function(){var _106=[];this.pop=function(){var _107;if(_106.length){_107=_106.pop();_107.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\");'>";_107=dojo.doc.createElement(html);}else{_107=dojo.create("iframe");_107.src="javascript:\"\"";_107.className="dijitBackgroundIframe";dojo.style(_107,"opacity",0.1);}_107.tabIndex=-1;}return _107;};this.push=function(_108){_108.style.display="none";_106.push(_108);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _109=dijit._frames.pop();node.appendChild(_109);if(dojo.isIE<7){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_109,{width:"100%",height:"100%"});}this.iframe=_109;}};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 _10a=doc.compatMode=="BackCompat",_10b=_10a?body:html,_10c=isWK?body:_10b,_10d=_10b.clientWidth,_10e=_10b.clientHeight,rtl=!dojo._isBodyLtr(),_10f=pos||dojo.position(node),el=node.parentNode,_110=function(el){return ((isIE<=6||(isIE&&_10a))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_110(node)){return;}while(el){if(el==body){el=_10c;}var _111=dojo.position(el),_112=_110(el);with(_111){if(el==_10c){w=_10d,h=_10e;if(_10c==html&&isIE&&rtl){x+=_10c.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!=_10c){var _113=clientWidth,_114=w-_113;if(_113>0&&_114>0){w=_113;if(isIE&&rtl){x+=_114;}}_113=clientHeight;_114=h-_113;if(_113>0&&_114>0){h=_113;}}if(_112){if(y<0){h+=y,y=0;}if(x<0){w+=x,x=0;}if(y+h>_10e){h=_10e-y;}if(x+w>_10d){w=_10d-x;}}var l=_10f.x-x,t=_10f.y-Math.max(y,0),r=l+_10f.w-w,bot=t+_10f.h-h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_10f.x+=scrollLeft;scrollLeft+=(isIE>=8&&!_10a&&rtl)?-s:s;_10f.x-=scrollLeft;}if(bot*t>0){_10f.y+=scrollTop;scrollTop+=Math[t<0?"max":"min"](t,bot);_10f.y-=scrollTop;}}}el=(el!=_10c)&&!_112&&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,_115=d.isOpera,maj=Math.floor,ff=d.isFF,_116=d.boxModel.replace(/-/,""),_117={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:_115,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};_117["dj_"+_116]=true;for(var p in _117){if(_117[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 _117){if(_117[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,_118,node,_119,obj,_11a,_11b){if(obj!=this._obj){this.stop();this._initialDelay=_11b||500;this._subsequentDelay=_11a||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_118,_119);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,_11c,_11d,_11e,_11f,_120){if(_11c.keyCode){_11c.charOrCode=_11c.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_11c.charCode){_11c.charOrCode=String.fromCharCode(_11c.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==_11c.charOrCode&&(_11c.ctrlKey===undefined||_11c.ctrlKey==evt.ctrlKey)&&(_11c.altKey===undefined||_11c.altKey==evt.altKey)&&(_11c.metaKey===undefined||_11c.metaKey==(evt.metaKey||false))&&(_11c.shiftKey===undefined||_11c.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_11c,_11d,node,_11e,_11c,_11f,_120);}else{if(dijit.typematic._obj==_11c){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_11c){dijit.typematic.stop();}})];},addMouseListener:function(node,_121,_122,_123,_124){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_121,node,_122,node,_123,_124);}),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,_121,node,_122,node,_123,_124);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_125,_126,_127,_128,_129,_12a,_12b){return this.addKeyListener(_126,_127,_128,_129,_12a,_12b).concat(this.addMouseListener(_125,_128,_129,_12a,_12b));}};}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 _12c=cs.backgroundImage;var _12d=(cs.borderTopColor==cs.borderRightColor)||(_12c!=null&&(_12c=="none"||_12c=="url(invalid-url:)"));dojo[_12d?"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 _12e=this.getWaiRole(elem);return role?(_12e.indexOf(role)>-1):(_12e.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _12f=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_12f)){dojo.attr(elem,"role",role);}else{if((" "+_12f+" ").indexOf(" "+role+" ")<0){var _130=dojo.trim(_12f.replace(this._XhtmlRoles,""));var _131=dojo.trim(_12f.replace(_130,""));dojo.attr(elem,"role",_131+(_131?" ":"")+role);}}},removeWaiRole:function(elem,role){var _132=dojo.attr(elem,"role");if(!_132){return;}if(role){var t=dojo.trim((" "+_132+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_133){return elem.hasAttribute?elem.hasAttribute("aria-"+_133):!!elem.getAttribute("aria-"+_133);},getWaiState:function(elem,_134){return elem.getAttribute("aria-"+_134)||"";},setWaiState:function(elem,_135,_136){elem.setAttribute("aria-"+_135,_136);},removeWaiState:function(elem,_137){elem.removeAttribute("aria-"+_137);}});}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(_138,_139){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 _13a=dojo.date.stamp._isoRegExp.exec(_138),_13b=null;if(_13a){_13a.shift();if(_13a[1]){_13a[1]--;}if(_13a[6]){_13a[6]*=1000;}if(_139){_139=new Date(_139);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _139["get"+prop]();}).forEach(function(_13c,_13d){if(_13a[_13d]===undefined){_13a[_13d]=_13c;}});}_13b=new Date(_13a[0]||1970,_13a[1]||0,_13a[2]||1,_13a[3]||0,_13a[4]||0,_13a[5]||0,_13a[6]||0);if(_13a[0]<100){_13b.setFullYear(_13a[0]||1970);}var _13e=0,_13f=_13a[7]&&_13a[7].charAt(0);if(_13f!="Z"){_13e=((_13a[8]||0)*60)+(Number(_13a[9])||0);if(_13f!="-"){_13e*=-1;}}if(_13f){_13e-=_13b.getTimezoneOffset();}if(_13e){_13b.setTime(_13b.getTime()+_13e*60000);}}return _13b;};dojo.date.stamp.toISOString=function(_140,_141){var _142=function(n){return (n<10)?"0"+n:n;};_141=_141||{};var _143=[],_144=_141.zulu?"getUTC":"get",date="";if(_141.selector!="time"){var year=_140[_144+"FullYear"]();date=["0000".substr((year+"").length)+year,_142(_140[_144+"Month"]()+1),_142(_140[_144+"Date"]())].join("-");}_143.push(date);if(_141.selector!="date"){var time=[_142(_140[_144+"Hours"]()),_142(_140[_144+"Minutes"]()),_142(_140[_144+"Seconds"]())].join(":");var _145=_140[_144+"Milliseconds"]();if(_141.milliseconds){time+="."+(_145<100?"0":"")+_142(_145);}if(_141.zulu){time+="Z";}else{if(_141.selector!="time"){var _146=_140.getTimezoneOffset();var _147=Math.abs(_146);time+=(_146>0?"-":"+")+_142(Math.floor(_147/60))+":"+_142(_147%60);}}_143.push(time);}return _143.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 _148(_149){if(d.isString(_149)){return "string";}if(typeof _149=="number"){return "number";}if(typeof _149=="boolean"){return "boolean";}if(d.isFunction(_149)){return "function";}if(d.isArray(_149)){return "array";}if(_149 instanceof Date){return "date";}if(_149 instanceof d._Url){return "url";}return "object";};function _14a(_14b,type){switch(type){case "string":return _14b;case "number":return _14b.length?Number(_14b):NaN;case "boolean":return typeof _14b=="boolean"?_14b:!(_14b.toLowerCase()=="false");case "function":if(d.isFunction(_14b)){_14b=_14b.toString();_14b=d.trim(_14b.substring(_14b.indexOf("{")+1,_14b.length-1));}try{if(_14b.search(/[^\w\.]+/i)!=-1){return new Function(_14b);}else{return d.getObject(_14b,false);}}catch(e){return new Function();}case "array":return _14b?_14b.split(/\s*,\s*/):[];case "date":switch(_14b){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_14b);}case "url":return d.baseUrl+_14b;default:return d.fromJson(_14b);}};var _14c={};dojo.connect(dojo,"extend",function(){_14c={};});function _14d(_14e){if(!_14c[_14e]){var cls=d.getObject(_14e);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_14e+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _14f=cls.prototype;var _150={},_151={};for(var name in _14f){if(name.charAt(0)=="_"){continue;}if(name in _151){continue;}var _152=_14f[name];_150[name]=_148(_152);}_14c[_14e]={cls:cls,params:_150};}return _14c[_14e];};this._functionFromScript=function(_153){var _154="";var _155="";var _156=_153.getAttribute("args");if(_156){d.forEach(_156.split(/\s*,\s*/),function(part,idx){_154+="var "+part+" = arguments["+idx+"]; ";});}var _157=_153.getAttribute("with");if(_157&&_157.length){d.forEach(_157.split(/\s*,\s*/),function(part){_154+="with("+part+"){";_155+="}";});}return new Function(_154+_153.innerHTML+_155);};this.instantiate=function(_158,_159,args){var _15a=[],dp=dojo.parser;_159=_159||{};args=args||{};d.forEach(_158,function(node){if(!node){return;}var type=dp._attrName in _159?_159[dp._attrName]:node.getAttribute(dp._attrName);if(!type||!type.length){return;}var _15b=_14d(type),_15c=_15b.cls,ps=_15c._noScript||_15c.prototype._noScript;var _15d={},_15e=node.attributes;for(var name in _15b.params){var item=name in _159?{value:_159[name],specified:true}:_15e.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _15f=item.value;switch(name){case "class":_15f="className" in _159?_159.className:node.className;break;case "style":_15f="style" in _159?_159.style:(node.style&&node.style.cssText);}var _160=_15b.params[name];if(typeof _15f=="string"){_15d[name]=_14a(_15f,_160);}else{_15d[name]=_15f;}}if(!ps){var _161=[],_162=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_163){var _164=_163.getAttribute("event"),type=_163.getAttribute("type"),nf=d.parser._functionFromScript(_163);if(_164){if(type=="dojo/connect"){_161.push({event:_164,func:nf});}else{_15d[_164]=nf;}}else{_162.push(nf);}});}var _165=_15c.markupFactory||_15c.prototype&&_15c.prototype.markupFactory;var _166=_165?_165(_15d,node,_15c):new _15c(_15d,node);_15a.push(_166);var _167=node.getAttribute("jsId");if(_167){d.setObject(_167,_166);}if(!ps){d.forEach(_161,function(_168){d.connect(_166,_168.event,null,_168.func);});d.forEach(_162,function(func){func.call(_166);});}});if(!_159._started){d.forEach(_15a,function(_169){if(!args.noStart&&_169&&_169.startup&&!_169._started&&(!_169.getParent||!_169.getParent())){_169.startup();}});}return _15a;};this.parse=function(_16a,args){var root;if(!args&&_16a&&_16a.rootNode){args=_16a;root=args.rootNode;}else{root=_16a;}var list=d.query(this._query,root);return this.instantiate(list,null,args);};}();(function(){var _16b=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,_16b);}else{dojo._loaders.unshift(_16b);}})();}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(_16c,map,_16d,_16e){_16e=_16e||dojo.global;_16d=_16d?dojo.hitch(_16e,_16d):function(v){return v;};return _16c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_16f,key,_170){var _171=dojo.getObject(key,false,map);if(_170){_171=dojo.getObject(_170,false,_16e).call(_16e,_171,key);}return _16d(_171,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(_172,_173){if(_172&&dojo.isFunction(_172._onConnect)){_172._onConnect(_173);}});dijit._connectOnUseEventHandler=function(_174){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _175=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_175);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_175);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _176={},_177=function(_178){var dc=_178.declaredClass;if(!_176[dc]){var r=[],_179,_17a=_178.constructor.prototype;for(var _17b in _17a){if(dojo.isFunction(_17a[_17b])&&(_179=_17b.match(/^_set([a-zA-Z]*)Attr$/))&&_179[1]){r.push(_179[1].charAt(0).toLowerCase()+_179[1].substr(1));}}_176[dc]=r;}return _176[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(_17c,_17d){this.create(_17c,_17d);},create:function(_17e,_17f){this.srcNodeRef=dojo.byId(_17f);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(_17e){this.params=_17e;dojo.mixin(this,_17e);}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 _180=this.srcNodeRef;if(_180&&_180.parentNode){_180.parentNode.replaceChild(this.domNode,_180);}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 _181=function(attr,_182){if((_182.params&&attr in _182.params)||_182[attr]){_182.attr(attr,_182[attr]);}};for(var attr in this.attributeMap){_181(attr,this);}dojo.forEach(_177(this),function(a){if(!(a in this.attributeMap)){_181(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_183){this._beingDestroyed=true;this.destroyDescendants(_183);this.destroy(_183);},destroy:function(_184){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_185){dfe(_185,d.disconnect);});dfe(this._subscribes,function(_186){dun(_186);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_184);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_187){if(this.bgIframe){this.bgIframe.destroy(_187);delete this.bgIframe;}if(this.domNode){if(_187){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_187){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_188){dojo.forEach(this.getChildren(),function(_189){if(_189.destroyRecursive){_189.destroyRecursive(_188);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_18a){if(_18a in this._deferredConnects){var _18b=this[this._deferredConnects[_18a]||"domNode"];this.connect(_18b,_18a.toLowerCase(),_18a);delete this._deferredConnects[_18a];}},_setClassAttr:function(_18c){var _18d=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_18d,this["class"]);this["class"]=_18c;dojo.addClass(_18d,_18c);},_setStyleAttr:function(_18e){var _18f=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_18e)){dojo.style(_18f,_18e);}else{if(_18f.style.cssText){_18f.style.cssText+="; "+_18e;}else{_18f.style.cssText=_18e;}}this.style=_18e;},setAttribute:function(attr,_190){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_190);},_attrToDom:function(attr,_191){var _192=this.attributeMap[attr];dojo.forEach(dojo.isArray(_192)?_192:[_192],function(_193){var _194=this[_193.node||_193||"domNode"];var type=_193.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_191)){_191=dojo.hitch(this,_191);}var _195=_193.attribute?_193.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_194,_195,_191);break;case "innerText":_194.innerHTML="";_194.appendChild(dojo.doc.createTextNode(_191));break;case "innerHTML":_194.innerHTML=_191;break;case "class":dojo.removeClass(_194,this[attr]);dojo.addClass(_194,_191);break;}},this);this[attr]=_191;},attr:function(name,_196){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _197=this._getAttrNames(name);if(args>=2){if(this[_197.s]){args=dojo._toArray(arguments,1);return this[_197.s].apply(this,args)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_196);}this[name]=_196;}return this;}else{return this[_197.g]?this[_197.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,_198,_199){var d=dojo,dc=d._connect,_19a=[];if(_198=="ondijitclick"){if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){var m=d.hitch(this,_199);_19a.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);}}));}_198="onclick";}_19a.push(dc(obj,_198,this,_199));this._connects.push(_19a);return _19a;},disconnect:function(_19b){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_19b){dojo.forEach(_19b,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_19c,_19d){var d=dojo,_19e=d.subscribe(_19c,this,_19d);this._subscribes.push(_19e);return _19e;},unsubscribe:function(_19f){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_19f){dojo.unsubscribe(_19f);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_1a0,_1a1){if(_1a0.declaredClass&&_1a0.addChild){_1a0.addChild(this,_1a1);}else{dojo.place(this.domNode,_1a0,_1a1);}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 _1a2={};dojo.cache=function(_1a3,url,_1a4){if(typeof _1a3=="string"){var _1a5=dojo.moduleUrl(_1a3,url);}else{_1a5=_1a3;_1a4=url;}var key=_1a5.toString();var val=_1a4;if(_1a4!==undefined&&!dojo.isString(_1a4)){val=("value" in _1a4?_1a4.value:undefined);}var _1a6=_1a4&&_1a4.sanitize?true:false;if(val||val===null){if(val==null){delete _1a2[key];}else{val=_1a2[key]=_1a6?dojo.cache._sanitize(val):val;}}else{if(!(key in _1a2)){val=dojo._getText(key);_1a2[key]=_1a6?dojo.cache._sanitize(val):val;}val=_1a2[key];}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1a7=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1a7){val=_1a7[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 _1a8=this.declaredClass,_1a9=this;return dojo.string.substitute(tmpl,this,function(_1aa,key){if(key.charAt(0)=="!"){_1aa=dojo.getObject(key.substr(1),false,_1a9);}if(typeof _1aa=="undefined"){throw new Error(_1a8+" template:"+key);}if(_1aa==null){return "";}return key.charAt(0)=="!"?_1aa:_1aa.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){this._attachPoints=[];var _1ab=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_1ab)){node=dojo._toDom(this._stringRepl(_1ab));if(node.nodeType!=1){throw new Error("Invalid template: "+_1ab);}}else{node=_1ab.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _1ac=dojo.parser,qry,attr;if(_1ac._query!="[dojoType]"){qry=_1ac._query;attr=_1ac._attrName;_1ac._query="[dojoType]";_1ac._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){_1ac._query=qry;_1ac._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_1ad){var dest=this.containerNode;if(_1ad&&dest){while(_1ad.hasChildNodes()){dest.appendChild(_1ad.firstChild);}}},_attachTemplateNodes:function(_1ae,_1af){_1af=_1af||function(n,p){return n.getAttribute(p);};var _1b0=dojo.isArray(_1ae)?_1ae:(_1ae.all||_1ae.getElementsByTagName("*"));var x=dojo.isArray(_1ae)?0:-1;for(;x<_1b0.length;x++){var _1b1=(x==-1)?_1ae:_1b0[x];if(this.widgetsInTemplate&&_1af(_1b1,"dojoType")){continue;}var _1b2=_1af(_1b1,"dojoAttachPoint");if(_1b2){var _1b3,_1b4=_1b2.split(/\s*,\s*/);while((_1b3=_1b4.shift())){if(dojo.isArray(this[_1b3])){this[_1b3].push(_1b1);}else{this[_1b3]=_1b1;}this._attachPoints.push(_1b3);}}var _1b5=_1af(_1b1,"dojoAttachEvent");if(_1b5){var _1b6,_1b7=_1b5.split(/\s*,\s*/);var trim=dojo.trim;while((_1b6=_1b7.shift())){if(_1b6){var _1b8=null;if(_1b6.indexOf(":")!=-1){var _1b9=_1b6.split(":");_1b6=trim(_1b9[0]);_1b8=trim(_1b9[1]);}else{_1b6=trim(_1b6);}if(!_1b8){_1b8=_1b6;}this.connect(_1b1,_1b6,_1b8);}}}var role=_1af(_1b1,"waiRole");if(role){dijit.setWaiRole(_1b1,role);}var _1ba=_1af(_1b1,"waiState");if(_1ba){dojo.forEach(_1ba.split(/\s*,\s*/),function(_1bb){if(_1bb.indexOf("-")!=-1){var pair=_1bb.split("-");dijit.setWaiState(_1b1,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(_1bc){delete this[_1bc];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1bd,_1be,_1bf){var _1c0=dijit._Templated._templateCache;var key=_1be||_1bd;var _1c1=_1c0[key];if(_1c1){try{if(!_1c1.ownerDocument||_1c1.ownerDocument==dojo.doc){return _1c1;}}catch(e){}dojo.destroy(_1c1);}if(!_1be){_1be=dojo.cache(_1bd,{sanitize:true});}_1be=dojo.string.trim(_1be);if(_1bf||_1be.match(/\$\{([^\}]+)\}/g)){return (_1c0[key]=_1be);}else{var node=dojo._toDom(_1be);if(node.nodeType!=1){throw new Error("Invalid template: "+_1be);}return (_1c0[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1c2=dijit._Templated._templateCache;for(var key in _1c2){var _1c3=_1c2[key];if(typeof _1c3=="object"){dojo.destroy(_1c3);}delete _1c2[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(_1c4,_1c5){var _1c6=this.containerNode;if(_1c5&&typeof _1c5=="number"){var _1c7=this.getChildren();if(_1c7&&_1c7.length>=_1c5){_1c6=_1c7[_1c5-1].domNode;_1c5="after";}}dojo.place(_1c4.domNode,_1c6,_1c5);if(this._started&&!_1c4._started){_1c4.startup();}},removeChild:function(_1c8){if(typeof _1c8=="number"&&_1c8>0){_1c8=this.getChildren()[_1c8];}if(_1c8&&_1c8.domNode){var node=_1c8.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(_1c9){dojo.forEach(this.getChildren(),function(_1ca){_1ca.destroyRecursive(_1c9);});},_getSiblingOfChild:function(_1cb,dir){var node=_1cb.domNode,_1cc=(dir>0?"nextSibling":"previousSibling");do{node=node[_1cc];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_1cd){return dojo.indexOf(this.getChildren(),_1cd);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1ce){_1ce.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 _1cf=dijit.getEnclosingWidget(this.domNode.parentNode);return _1cf&&_1cf.isContainer?_1cf:null;},_getSibling:function(_1d0){var node=this.domNode;do{node=node[_1d0+"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 _1d1=this.getParent&&this.getParent();if(!(_1d1&&_1d1.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_1d2,_1d3){var node=this.domNode;if(_1d2){dojo.marginBox(node,_1d2);if(_1d2.t){node.style.top=_1d2.t+"px";}if(_1d2.l){node.style.left=_1d2.l+"px";}}var mb=_1d3||{};dojo.mixin(mb,_1d2||{});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(_1d4){dojo.addClass(_1d4.domNode,this.baseClass+"-child");if(_1d4.baseClass){dojo.addClass(_1d4.domNode,this.baseClass+"-"+_1d4.baseClass);}},addChild:function(_1d5,_1d6){this.inherited(arguments);if(this._started){this._setupChild(_1d5);}},removeChild:function(_1d7){dojo.removeClass(_1d7.domNode,this.baseClass+"-child");if(_1d7.baseClass){dojo.removeClass(_1d7.domNode,this.baseClass+"-"+_1d7.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 _1d8=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1d9,dim){_1d9.resize?_1d9.resize(dim):dojo.marginBox(_1d9.domNode,dim);dojo.mixin(_1d9,dojo.marginBox(_1d9.domNode));dojo.mixin(_1d9,dim);};dijit.layout.layoutChildren=function(_1da,dim,_1db){dim=dojo.mixin({},dim);dojo.addClass(_1da,"dijitLayoutContainer");_1db=dojo.filter(_1db,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_1db,function(item){return item.layoutAlign=="client";}));dojo.forEach(_1db,function(_1dc){var elm=_1dc.domNode,pos=_1dc.layoutAlign;var _1dd=elm.style;_1dd.left=dim.l+"px";_1dd.top=dim.t+"px";_1dd.bottom=_1dd.right="auto";dojo.addClass(elm,"dijitAlign"+_1d8(pos));if(pos=="top"||pos=="bottom"){size(_1dc,{w:dim.w});dim.h-=_1dc.h;if(pos=="top"){dim.t+=_1dc.h;}else{_1dd.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1dc,{h:dim.h});dim.w-=_1dc.w;if(pos=="left"){dim.l+=_1dc.w;}else{_1dd.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1dc,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(_1de){this.disabled=_1de;dojo.attr(this.focusNode,"disabled",_1de);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_1de);}dijit.setWaiState(this.focusNode,"disabled",_1de);if(_1de){this._hovering=false;this._active=false;this.focusNode.setAttribute("tabIndex","-1");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_1df){dojo.deprecated("setDisabled("+_1df+") is deprecated. Use attr('disabled',"+_1df+") instead.","","2.0");this.attr("disabled",_1df);},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_1e0){var _1e1=_1e0.currentTarget;if(_1e1&&_1e1.getAttribute){this.stateModifier=_1e1.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_1e0.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 _1e2=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_1e2);});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 _1e3=this.baseClass.split(" ");function _1e4(_1e5){_1e3=_1e3.concat(dojo.map(_1e3,function(c){return c+_1e5;}),"dijit"+_1e5);};if(this.checked){_1e4("Checked");}if(this.state){_1e4(this.state);}if(this.selected){_1e4("Selected");}if(this.disabled){_1e4("Disabled");}else{if(this.readOnly){_1e4("ReadOnly");}else{if(this._active){_1e4(this.stateModifier+"Active");}else{if(this._focused){_1e4("Focused");}if(this._hovering){_1e4(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_1e6={};dojo.forEach(tn.className.split(" "),function(c){_1e6[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1e6[c];});}dojo.forEach(_1e3,function(c){_1e6[c]=true;});var _1e7=[];for(var c in _1e6){_1e7.push(c);}tn.className=_1e7.join(" ");this._stateClasses=_1e3;},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(_1e8){},_onChangeActive:false,_handleOnChange:function(_1e9,_1ea){this._lastValue=_1e9;if(this._lastValueReported==undefined&&(_1ea===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1e9;}if((this.intermediateChanges||_1ea||_1ea===undefined)&&((typeof _1e9!=typeof this._lastValueReported)||this.compare(_1e9,this._lastValueReported)!=0)){this._lastValueReported=_1e9;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1e9);}),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(_1eb){dojo.deprecated("dijit.form._FormWidget:setValue("+_1eb+") is deprecated.  Use attr('value',"+_1eb+") instead.","","2.0");this.attr("value",_1eb);},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(_1ec){this.readOnly=_1ec;dojo.attr(this.focusNode,"readOnly",_1ec);dijit.setWaiState(this.focusNode,"readonly",_1ec);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(_1ed,_1ee){this.value=_1ed;this._handleOnChange(_1ed,_1ee);},_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 _1ef=this.domNode;var _1f0=_1ef.parentNode;var _1f1=_1ef.firstChild||_1ef;var _1f2=_1f1.style.filter;while(_1f0&&_1f0.clientHeight==0){_1f0._disconnectHandle=this.connect(_1f0,"onscroll",dojo.hitch(this,function(e){this.disconnect(_1f0._disconnectHandle);_1f0.removeAttribute("_disconnectHandle");_1f1.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1f1.style.filter=_1f2;},0);}));_1f0=_1f0.parentNode;}}}});}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 _1f3=this;dojo.mixin(_1f3,args);_1f3.node=args.node;_1f3._showArgs=dojo.mixin({},args);_1f3._showArgs.node=_1f3.node;_1f3._showArgs.duration=_1f3.showDuration;_1f3.showAnim=_1f3.showFunc(_1f3._showArgs);_1f3._hideArgs=dojo.mixin({},args);_1f3._hideArgs.node=_1f3.node;_1f3._hideArgs.duration=_1f3.hideDuration;_1f3.hideAnim=_1f3.hideFunc(_1f3._hideArgs);dojo.connect(_1f3.showAnim,"beforeBegin",dojo.hitch(_1f3.hideAnim,"stop",true));dojo.connect(_1f3.hideAnim,"beforeBegin",dojo.hitch(_1f3.showAnim,"stop",true));},show:function(_1f4){return this.showAnim.play(_1f4||0);},hide:function(_1f5){return this.hideAnim.play(_1f5||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_1f6={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _1f7=function(_1f8){this._index=-1;this._animations=_1f8||[];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(_1f7,{_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(_1f9,_1fa){if(!this._current){this._current=this._animations[this._index=0];}if(!_1fa&&this._current.status()=="playing"){return this;}var _1fb=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_1fc=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_1fd=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_1fb);d.disconnect(_1fc);d.disconnect(_1fd);});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(_1fe,_1ff){this.pause();var _200=this.duration*_1fe;this._current=null;d.some(this._animations,function(a){if(a.duration<=_200){this._current=a;return true;}_200-=a.duration;return false;});if(this._current){this._current.gotoPercent(_200/this._current.duration,_1ff);}return this;},stop:function(_201){if(this._current){if(_201){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(_1f7,_1f6);dojo.fx.chain=function(_202){return new _1f7(_202);};var _203=function(_204){this._animations=_204||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_204,function(a){var _205=a.duration;if(a.delay){_205+=a.delay;}if(this.duration<_205){this.duration=_205;}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(_203,{_doAction:function(_206,args){d.forEach(this._animations,function(a){a[_206].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_207,args){var t=this._pseudoAnimation;t[_207].apply(t,args);},play:function(_208,_209){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(_20a,_20b){var ms=this.duration*_20a;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_20b);});this._call("gotoPercent",arguments);return this;},stop:function(_20c){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(_203,_1f6);dojo.fx.combine=function(_20d){return new _203(_20d);};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 _20e=d.style(node,"height");return Math.max(_20e,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 _20f=epages.Browser;_20f.engine="Unknown";_20f.version="Unknown";if(window.opera){_20f.engine="Presto";_20f.version=window.opera.version();}else{var _210=(navigator.appVersion+navigator.userAgent).toLowerCase();if(_210.match("iemobile")||_210.match("windows ce")){_20f.engine="MSIE";_20f.version=6;}else{if(_210.match("msie")){_20f.engine="MSIE";_20f.version=(window.XDomainRequest&&dojo.isIE==7)?8:dojo.isIE;var _211=document.createElement("b");_211.style.cssText="max-height:1";if(_211.style.cssText.match("max-height")){_20f.version=6;}}else{if(_210.match("webkit")){_20f.engine="WebKit";_20f.version=parseFloat(_210.split("/")[2])||dojo.isSafari;var _212=_210.match(/applewebkit\/(\d+)\.(\d+)/);_20f.webkitversion={};_20f.webkitversion.major=parseInt(_212[1]);_20f.webkitversion.minor=parseInt(_212[2]);}else{if(_210.match("gecko")){_20f.engine="Gecko";_20f.version=dojo.isFx||dojo.isFF||parseFloat(_210.split("/").pop());}else{if(_210.match("khtml")){_20f.engine="KHTML";}}}}}}_20f.version=_20f.version.toString().replace(/\./g,"_");(document.documentElement||document.body.parentNode).className+=" "+_20f.engine+" "+_20f.engine+_20f.version;})();(function(){for(var _213=15;_213>3;_213--){var _214=true;if(navigator.plugins.length){try{var _215=navigator.plugins["Shockwave Flash"].description;_214=_215.slice(_215.indexOf(".")-2,_215.indexOf("."))>=_213;}catch(e){_214=false;}}else{try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_213);}catch(e){_214=false;}}if(_214){epages.Browser.flashVersion=_213;break;}}})();}if(!dojo._hasResource["epages.event"]){dojo._hasResource["epages.event"]=true;dojo.provide("epages.event");epages.event.fire=function(_216,_217){if(epages.Browser.engine=="MSIE"){try{_216.fireEvent("on"+_217);}catch(e){}}else{if(_217=="click"||_217=="dblclick"||_217=="mousedown"||_217=="mousemove"||_217=="mouseout"||_217=="mouseover"||_217=="mouseup"){var _218=document.createEvent("MouseEvents");_218.initMouseEvent(_217,true,true,window,0,0,0,0,0,false,false,false,false,0,null);}else{var _218=document.createEvent("HTMLEvents");_218.initEvent(_217,true,true);}_216.dispatchEvent(_218);}};}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,_219){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_219){str=str.replace(/'/gm,"&#39;");}return str;},toBoolean:function(_21a){if(_21a===undefined){return false;}if(typeof _21a=="boolean"){return _21a;}if(typeof _21a!="string"){throw new Error("Not a string value, got "+typeof (_21a)+"!");}return _21a.toLowerCase()==="true"||_21a=="1"?true:false;},toInteger:function(_21b,_21c){if(_21c){_21b=_21b.replace(/\./g,"");}return parseInt(_21b.replace(/[^0-9\,\.]/g,""));},toTime:function(_21d,_21e){if(_21d==""){return null;}if(_21e==null||_21e.length==0){_21e=epages.vars.Locale.timeFormat;}var _21f=epages.localize.getDojoDateTimePattern(_21e);date=dojo.date.locale.parse(_21d,{selector:"date",datePattern:_21f,timePattern:""});if(date===null){date=dojo.date.locale.parse(_21d,{selector:"date",datePattern:"HH:mm a",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_21d,{selector:"date",datePattern:"HH a",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_21d,{selector:"date",datePattern:"HH",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_21d,{selector:"date",datePattern:"KK:mm",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_21d,{selector:"date",datePattern:"KK",timePattern:""});}return date;},cssSizeToNumber:function(_220){if(typeof _220=="string"){if(_220.match(/^([0-9]+)(px|pt)$/i)){var n=parseInt(RegExp.$1);return n;}if(_220.match(/^([0-9]*\.?[0-9]+)(pc|%|mm|cm|em|in|ex)$/i)){var n=parseFloat(RegExp.$1);return n;}if(_220.match(/^[0]+$/)){return 0;}}return NaN;},split:function(_221,rx){if(epages.Browser.engine!="MSIE"){return _221.split(rx);}var _222="";do{_222+=Date.toString();}while(_221.match(_222));_221=_221.replace(rx,"|"+_222+"|");var _223=_221.split(_222);for(var i=0,_224=_223.length;i<_224;i++){_223[i]=_223[i].replace(/^(?:\|)?(.*?)(?:\|)?$/g,function(tmp,_225){return _225;});}return _223;}};epages.string.Base64=function(){};epages.string.Base64.prototype={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(_226){var _227="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;_226=this._utf8_encode(_226);if(typeof (window.btoa)=="function"){return window.btoa(_226);}while(i<_226.length){chr1=_226.charCodeAt(i++);chr2=_226.charCodeAt(i++);chr3=_226.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;}}_227=_227+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);}return _227;},decode:function(_228){var _229="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;_228=_228.replace(/[^A-Za-z0-9\+\/\=]/g,"");if(typeof (window.atob)=="function"){_229=window.atob(_228);}else{while(i<_228.length){enc1=this._keyStr.indexOf(_228.charAt(i++));enc2=this._keyStr.indexOf(_228.charAt(i++));enc3=this._keyStr.indexOf(_228.charAt(i++));enc4=this._keyStr.indexOf(_228.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;_229=_229+String.fromCharCode(chr1);if(enc3!=64){_229=_229+String.fromCharCode(chr2);}if(enc4!=64){_229=_229+String.fromCharCode(chr3);}}}_229=this._utf8_decode(_229);return _229;},_utf8_encode:function(_22a){_22a=_22a.replace(/\r\n/g,"\n");var _22b="";for(var n=0,l=_22a.length;n<l;n++){var c=_22a.charCodeAt(n);if(c<128){_22b+=String.fromCharCode(c);}else{if((c>127)&&(c<2048)){_22b+=String.fromCharCode((c>>6)|192);_22b+=String.fromCharCode((c&63)|128);}else{_22b+=String.fromCharCode((c>>12)|224);_22b+=String.fromCharCode(((c>>6)&63)|128);_22b+=String.fromCharCode((c&63)|128);}}}return _22b;},_utf8_decode:function(_22c){var _22d="";var i=0;var c=c1=c2=0;while(i<_22c.length){c=_22c.charCodeAt(i);if(c<128){_22d+=String.fromCharCode(c);i++;}else{if((c>191)&&(c<224)){c2=_22c.charCodeAt(i+1);_22d+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=_22c.charCodeAt(i+1);c3=_22c.charCodeAt(i+2);_22d+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}}return _22d;}};}if(!dojo._hasResource["epages.lang.array"]){dojo._hasResource["epages.lang.array"]=true;dojo.provide("epages.lang.array");$A=function(_22e,_22f){return new epages.lang.Array(_22e,_22f);};epages.lang.Array=function(_230,_231){if(_231===undefined){_231=false;}var _232=[];if(_230!==undefined){if(_230._data!==undefined){_230=_230._data;}if(_231){for(var i=0,_233=_230.length;i<_233;i++){_232.push(_230[i]);}}else{_232=_230;}}this._data=_232;this.length=_232.length;};epages.lang.Array.prototype={_data:undefined,length:0,get:function(_234){return this._data[_234];},set:function(_235,_236){this._data[_235]=_236;},insertAt:function(_237,_238){if(!_237){this.unshift(_238);}else{if(_237==this.length){this.push(_238);}else{var c=this._data;for(var i=this.length;i>_237;i--){c[i]=c[i-1];}c[_237]=_238;this.length=c.length;}}},push:function(){for(var i=0,_239=arguments.length;i<_239;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,_23a=arguments.length;i<_23a;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(_23b,_23c){if(_23c===undefined){return dojo.filter(this._data,_23b);}return dojo.filter(this._data,_23b,_23c);},map:function(_23d,_23e){return dojo.map(this._data,_23d,_23e);},each:function(_23f,_240){dojo.map(this._data,_23f,_240);return;},match:function(_241){var _242=[];for(var i=0,_243=this._data.length;i<_243;i++){var _244=this._data[i];if(typeof _244.match=="function"&&_244.match(_241)){_242.push(_244);}}return _242;},exists:function(_245){return (this.find(_245)!==null);},find:function(_246){for(var i=0,_247=this._data.length;i<_247;i++){if(_246===this._data[i]){return i;}}return null;},remove:function(_248){this._data.splice(_248,1);this.length=this._data.length;},unique:function(){var _249=new epages.lang.Array();var i=0;while(i<this._data.length){if(_249.find(this._data[i])==null){_249.push(this._data[i]);i++;}else{this._data.splice(i,1);}}this.length=this._data.length;},equals:function(_24a){if(_24a.length==this.length){if(typeof _24a._data!="undefined"){for(var i=0,_24b=this.length;i<_24b;i++){if(this._data[i]!==_24a._data[i]){return false;}}}else{for(var i=0,_24b=this.length;i<_24b;i++){if(this._data[i]!==_24a[i]){return false;}}}return true;}else{return false;}},merge:function(_24c){var c=[];if(dojo.isArray(_24c)){c=_24c;}else{if(_24c._data!==undefined){c=_24c._data;}}for(var i=0,_24d=c.length;i<_24d;i++){this._data.push(c[i]);}this.length=this._data.length;},join:function(_24e){return this._data.join(_24e);},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(_24f){return this._data.sort(_24f);}};}if(!dojo._hasResource["epages.lang.hash"]){dojo._hasResource["epages.lang.hash"]=true;dojo.provide("epages.lang.hash");$H=function(_250){return new epages.lang.Hash(_250);};epages.lang.Hash=function(_251){this._data=new Object();var data=this._data;if(_251!==undefined){if(typeof _251.each=="function"){_251.each(function(pair){data[pair.key]=pair.value;});}else{for(var key in _251){data[key]=_251[key];}}}};epages.lang.Hash.prototype={_data:undefined,data:function(){return this._data;},each:function(_252){for(var key in this._data){var _253=this._data[key];var pair=[key,_253];pair.key=key;pair.value=_253;_252(pair);}},flatten:function(){var _254="";this.each(function(pair){_254+="<element><key>"+pair.key+"</key><value>"+pair.value+"</value></element>\n";});return "<epages.lang.Hash>\n"+_254+"</epages.lang.Hash>\n";},keys:function(){var _255=[];this.each(function(pair){_255.push(pair.key);});return _255;},values:function(){var _256=[];this.each(function(pair){_256.push(pair.value);});return _256;},set:function(key,_257){this._data[key]=_257;},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 _258 in this._data){if(_258==key){return true;}}return false;},existsValue:function(_259){return this.find(_259)!==undefined;},find:function(_25a){for(var key in this._data){if(this._data[key]===_25a){return key;}}return undefined;},toQueryString:function(){var _25b=[];this.each(function(pair){if(pair.value!==undefined&&pair.value!=null){var _25c=encodeURIComponent(pair.key);if(dojo.isArray(pair.value)){for(var i=0,_25d=pair.value.length;i<_25d;i++){_25b.push(_25c+"="+encodeURIComponent(pair.value[i]));}}else{_25b.push(_25c+"="+encodeURIComponent(pair.value));}}});return _25b.join("&");},toString:function(){var _25e=[];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)+"\"";}}}}_25e.push("\""+epages.string.escapeJavaScript(pair.key)+"\":"+v);});return "{"+_25e.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(_25f){for(var i=0,_260=epages._windows.length;i<_260;i++){if(epages._windows[i].dijit!=null&&typeof epages._windows[i].dijit.byId=="function"){var _261=epages._windows[i].dijit.byId(_25f);if(_261){return _261;}}}};}epages.widget.parserClasses=$H();dojo.parser.instantiateOrg=dojo.parser.instantiate;dojo.parser.instantiate=function(_262){var w=epages.widget.parserClasses;if(epages.Browser.engine!="Presto"){var d=dojo;d.forEach(_262,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(_262);};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 _263="";if(typeof this._templateMapping[this.templateType]=="object"){var _264=this._templateMapping[this.templateType];if(_264.templateString){this.templatePath=null;this.templateString=_264.templateString;}else{if(_264.templatePath){var _265;dojo.xhrGet({url:_264.templatePath,sync:true,load:function(data){_265=data;}});this.templatePath=null;this.templateString=_265;}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{_263=this._templateDirectory;_263.path+="/"+this._templateMapping[this.templateType];_263.uri+="/"+this._templateMapping[this.templateType];this.templatePath=_263;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,_266){var _267;var _268=_266!==undefined?dojo.xhrPost:dojo.xhrGet;_268({url:url,handleAs:"xml",sync:true,preventCache:epages.constants.preventCache,load:function(data){_267=data;},content:_266});return _267;},loadAsync:function(url,_269,_26a){var _26b=_26a!==undefined?dojo.xhrPost:dojo.xhrGet;_26b({url:url,handleAs:"xml",preventCache:epages.constants.preventCache,load:_269,content:_26a});return;}};}if(!dojo._hasResource["epages.io.translation"]){dojo._hasResource["epages.io.translation"]=true;dojo.provide("epages.io.translation");epages.io.Translation=function(url,_26c){this.translation=new epages.lang.Hash();this.loadedFiles=new epages.lang.Array();if(url!==undefined){if(_26c===undefined){this.load(url);}else{this.loadLocale(url,(_26c!="auto")?_26c:undefined);}}};dojo.extend(epages.io.Translation,epages.io.Xml.prototype);dojo.extend(epages.io.Translation,{translation:null,loadedFiles:null,useLocale:false,load:function(url,_26d){if(this.loadedFiles.exists(url)){return true;}if(_26d===undefined){_26d=false;}var _26e=this.loadSync(url);this.loadedFiles.push(url);if(_26e===undefined){if(!_26d){throw new Error("translation undefined");}return false;}var tags=_26e.getElementsByTagName("Translation");for(var i=0,_26f=tags.length;i<_26f;i++){var _270=tags[i];if(_270.nodeType==1){var data="";for(var j=0,_271=_270.childNodes.length;j<_271;j++){var _272=_270.childNodes[j];data+=_272.nodeName.match(/notrans/i)?_272.firstChild.data:_272.data;}this.translation.set(_270.getAttribute("Keyword"),data);}}return true;},loadLocale:function(url,_273){if(_273===undefined){_273=dojo.locale;}var _274=_273.split("-");var _275=this.load(url+"."+_274[0]+".xml",true);if(this.useLocale&&_274.length>1){this.load(url+"."+_274[0]+"_"+_274[1].toUpperCase()+".xml",true);}return _275;},exists:function(key){return this.translation.existsKey(key)||(this!=epages.io.dictionary&&epages.io.dictionary.translation.existsKey(key));},get:function(key,vars){var _276=this.translation.get(key);if(_276===undefined&&this!=epages.io.dictionary){return epages.io.dictionary.get(key,vars);}return (_276===undefined)?"{"+key+"}":this.replaceVars(_276,vars);},replaceLanguageTags:function(txt){var _277=new RegExp("{(.*?)}","g");return txt.replace(_277,dojo.hitch(this,function(_278,tag){return this.get(tag);}));},replaceVars:function(txt,vars){var _279=new RegExp("#([a-zA-Z_][a-zA-Z0-9_]*)","g");return txt.replace(_279,dojo.hitch(vars,function(_27a,_27b){return this[_27b]!==undefined?this[_27b]:_27a;}));}});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(_27c,_27d){returnValue=[];for(var i=0,_27e=_27c.childNodes.length;i<_27e;i++){var e=_27c.childNodes[i];if(e.nodeName==_27d){returnValue.push(e);}}return returnValue;},getElementsByClassName:function(_27f,_280){if(_280==null){_280=dojo.body();}return dojo.query("."+_27f,_280);},replaceClass:function(node,_281,_282){var _283=new RegExp("(^|\\s+)"+_282+"($|\\s+)","g");node.className=node.className.replace(_283,"$1"+_281+"$2");},removeChildren:function(node){while(node.firstChild){node.removeChild(node.firstChild);}},disableHrefsAndActions:function(_284){if(_284==null){_284=dojo.body();}var _285=_284.getElementsByTagName("a");for(var i=0,_286=_285.length;i<_286;i++){var tag=_285[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 _287=_284.getElementsByTagName("form");for(var i=0,_286=_287.length;i<_286;i++){_287[i].onsubmit=function(){return false;};}var _288=["input","button","select","option","a"];var _289=["onchange","onclick","onselect","onkeyup","onkeypress","onmouseup"];for(var j=0,_28a=_288.length;j<_28a;j++){var _28b=_284.getElementsByTagName(_288[j]);for(var i=0,_286=_28b.length;i<_286;i++){var e=_28b[i];for(var k=0,_28c=_289.length;k<_28c;k++){var _28d=e.getAttribute(_289[k]);if(_28d){if((typeof _28d=="string")||(typeof _28d=="function")){dojo.connect(e,_289[k],dojo,"stopEvent");e.setAttribute(_289[k],"return false;");}}}}}},getHref:function(_28e){if(_28e.outerHTML){var html=_28e.outerHTML;var href=html.match(/\s*href\s*\=\s*["'](.*?)["']/i);if(href&&href[1]){return href[1];}return null;}return _28e.getAttribute("href");},isInnerEvent:function(evt,_28f){if(!dojo.isArray(_28f)){_28f=[_28f];}var _290=evt.explicitOriginalTarget;for(var i=0,_291=_28f.length;i<_291;i++){if(dojo.isDescendant(_290,_28f[i])){return true;}}return false;},encodeEntity:function(_292,_293){if(_293==null){_293=false;}var rx=new RegExp("\r?\n","g");var _294=epages.string.split(_292,rx);var _295=document.createTextNode("");var node=document.createElement("span");node.appendChild(_295);for(var i=0,_296=_294.length;i<_296;i++){_295.nodeValue=_294[i];_294[i]=node.innerHTML;}return _294.join(_293?"<br/>\n":"\n");},decodeEntity:function(_297,_298){if(_298==null){_298=false;}var node=document.createElement("span");node.innerHTML=_297;var _299=node.firstChild.nodeValue;if(_298){_299=_299.replace(/\<br\s*\/?\>\r?\n/gi,"\n");}return _299;},insertAtCursor:function(_29a,_29b,doc){if(doc===undefined){doc=window.document;}var _29c=$(_29b,doc);if(doc.selection){_29c.focus();sel=doc.selection.createRange();sel.text=_29a;}else{if(_29c.selectionStart||_29c.selectionStart=="0"){var _29d=_29c.selectionStart;var _29e=_29c.selectionEnd;_29c.value=_29c.value.substring(0,_29d)+_29a+_29c.value.substring(_29e,_29c.value.length);_29c.selectionStart=_29d+_29a.length;_29c.selectionEnd=_29d+_29a.length;}else{_29c.value+=_29a;}}epages.event.fire(_29c,"change");}});}if(!dojo._hasResource["epages.html.element"]){dojo._hasResource["epages.html.element"]=true;dojo.provide("epages.html.element");epages.html.Element=function(_29f){if(_29f===undefined){throw new Error("epages.html.Element: initialize without object");}else{if(typeof _29f=="string"){_29f=$(_29f);if(_29f===undefined){throw new Error("epages.html.Element: initialize without object, unknown element id");}}}this.object=_29f;};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(_2a0){var type=this.object.type;switch(type){case "checkbox":case "radio":var _2a1=this.object.form.elements;var name=this.object.name;dojo.forEach(_2a1,function(_2a2){if(_2a2.type==type&&_2a2.name==name&&_2a2.value==_2a0){_2a2.checked=true;}});break;default:this.object.value=_2a0;break;}},connectChangeEvent:function(_2a3){dojo.connect(this.object,(this.object.type=="radio"?"onclick":"onchange"),_2a3);},callOnChange:function(){epages.event.fire(this.object,"change");},firstElement:function(_2a4,_2a5){var _2a6=undefined;var data=this.object.childNodes;for(var _2a7=0,l=data.length;_2a7<l&&_2a6===undefined;_2a7++){if(_2a4!=1&&data[_2a7].nodeType==_2a4||data[_2a7].nodeType==1&&data[_2a7].nodeName==_2a5){_2a6=data[_2a7];}}return (_2a6);},firstComment:function(){var _2a8=this.firstElement(8,"COMMENT");return (_2a8===undefined?undefined:_2a8.data);},getIframeDocument:function(_2a9){if(_2a9===undefined&&this.object.tagName.toLowerCase()=="iframe"){_2a9=this.object;}if(_2a9===undefined){return _2a9;}return (_2a9.contentDocument===undefined)?_2a9.contentWindow.document:_2a9.contentDocument;},addClassName:function(_2aa){dojo.addClass(this.object,_2aa);},removeClassName:function(_2ab){dojo.removeClass(this.object,_2ab);},changeClassName:function(_2ac,_2ad){epages.html.replaceClass(this.object,_2ad,_2ac);},getAbsolutePosition:function(_2ae){var node=this.object;var x=0,y=0;while(node&&node!=_2ae){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}node=node.offsetParent;}return {"x":x,"y":y};},getPositionToParent:function(_2af){var node=this.object;var x=0,y=0;var _2b0=dojo.getComputedStyle(_2af).position;if(_2b0!="relative"&&_2b0!="absolute"){console.warn("parentNode should be an offsetParent (position: absolute or relative) in "+this.delcaredClass);}var _2b1=undefined;while(node!=undefined&&_2af!==node){if(_2b1!==node.offsetParent){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}_2b1=node.offsetParent;}node=node.parentNode;}return {"x":x,"y":y};},getRelativePosition:function(){var node=this.object;var x=0,y=0;var _2b2=dojo.getComputedStyle(node).position;while(node!=undefined&&_2b2!="relative"&&_2b2!="absolute"){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}node=node.offsetParent;_2b2=dojo.getComputedStyle(node).position;}return {"x":x,"y":y};},setCss:function(_2b3){for(var _2b4 in _2b3){this.object.style[_2b4]=_2b3[_2b4];}},makeWidgets:function(){dojo.parser.parse(this.object);},toQueryString:function(){return encodeURIComponent(this.object.name)+"="+encodeURIComponent(this.get());},addEventListener:function(_2b5,_2b6,_2b7){if(_2b7==null){_2b7=false;}_2b5=_2b5.replace(/^on/,"");if(this.object.addEventListener){return this.object.addEventListener(_2b5,_2b6,_2b7);}else{if(this.object.attachEvent){return this.object.attachEvent("on"+_2b5,_2b6);}}throw new Error("element.addEventListener: could not add event listener for event "+_2b5);},removeEventListener:function(_2b8,_2b9,_2ba){if(_2ba==null){_2ba=false;}_2b8=_2b8.replace(/^on/,"");if(this.object.removeEventListener){return this.object.removeEventListener(_2b8,_2b9,_2ba);}else{if(this.object.detachEvent){return this.object.detachEvent("on"+_2b8,_2b9);}}console.warn("element.removeEventListener: could not remove event listener for event "+_2b8+(typeof this.object.detachEvent));return false;},replaceChild:function(_2bb,_2bc){_2bb=this._changeNodeDocument(_2bb,_2bc.ownerDocument);this.object.replaceChild(_2bb,_2bc);},appendChild:function(_2bd){_2bd=this._changeNodeDocument(_2bd,this.object.ownerDocument);this.object.appendChild(_2bd);},_changeNodeDocument:function(node,_2be){if(node.ownerDocument!=_2be&&node.outerHTML!=null){var _2bf=node.outerHTML;node=_2be.createElement("span");node.outerHTML=_2bf;}return node;},getLabel:function(){var id=this.object.id;if(id==null){return;}var _2c0=this.object.ownerDocument.getElementsByTagName("label");for(var i=0,_2c1=_2c0.length;i<_2c1;i++){if(_2c0[i].htmlFor==id){return _2c0[i].innerHTML;}}},isEmpty:function(){for(var el in this.object){return false;}return true;}});$E=function(_2c2){return new epages.html.Element(_2c2);};}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 _2c3=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache,this.translation);var node;if(dojo.isString(_2c3)){var _2c4=this.declaredClass,_2c5=this;var tstr=dojo.string.substitute(_2c3,this,function(_2c6,key){if(key.charAt(0)=="!"){_2c6=_2c5[key.substr(1)];}if(typeof _2c6=="undefined"){throw new Error(_2c4+" template:"+key);}if(!_2c6){return "";}return key.charAt(0)=="!"?_2c6:_2c6.toString().replace(/"/g,"&quot;");},this);node=this.createNodesFromText(tstr);}else{node=_2c3.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _2c7=dojo.parser,qry,attr;if(_2c7._query!="[dojoType]"){qry=_2c7._query;attr=_2c7._attrName;_2c7._query="[dojoType]";_2c7._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){_2c7._query=qry;_2c7._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},getCachedTemplate:function(_2c8,_2c9,_2ca,_2cb){var _2cc=dijit._Templated._templateCache;var key=_2c9||_2c8;var _2cd=_2cc[key];if(_2cd){return _2cd;}if(!_2c9){_2c9=dojo.cache(_2c8,{sanitize:true});}_2c9=dojo.string.trim(_2c9);if(_2c9.match(/\$\{([^\}]+)\}/g)||_2ca){return (_2cc[key]=_2c9);}else{return (_2cc[key]=this.createNodesFromText(_2c9));}}});}if(!dojo._hasResource["epages.event.interval"]){dojo._hasResource["epages.event.interval"]=true;dojo.provide("epages.event.interval");epages.event.interval={_container:[],_setIntervalSecure:function(_2ce,task,_2cf){if(this._container[_2ce]!=null){setTimeout(dojo.hitch(this,function(){this._setIntervalSecure(_2ce,task,_2cf);}),_2cf);task();}},set:function(task,_2d0){var _2d1=this._container.length;this._container.push(_2d1);setTimeout(dojo.hitch(this,function(){this._setIntervalSecure(_2d1,task,_2d0);}),_2d0);return _2d1;},clear:function(_2d2){this._container[_2d2]=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,_2d3){return setTimeout(dojo.hitch(this,task),_2d3);},_getAlphaImage:function(_2d4,_2d5){var _2d6=document.createElement("span");var _2d7=document.createElement("span");var _2d8="";if(epages.Browser.engine=="MSIE"&&_2d4.match(".png")){_2d5=_2d5?"scale":"crop";_2d8="class='AlphaImage'";_2d7.style.zoom="1";_2d7.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_2d4+"', sizingMethod='"+_2d5+"')";}var _2d9="<img "+_2d8+" alt='' src='"+_2d4+"' onerror=''/>";_2d7.innerHTML=_2d9;_2d6.appendChild(_2d7);_2d6.className="Image";return _2d6;},_drawControlBar:function(){if(this.tiny){this.controlNode.className="ControlBarMini";}if(!this.showControls){this.controlNode.style.display="none";}var _2da=0;if(!this.overview||!this.showDescription){_2da=1;}else{if(!this.overview&&!this.showDescription){_2da=2;}}var _2db=this.tiny?document.createElement("div"):this._getAlphaImage(this.controlBarImages[0][_2da]);_2db.className="ControlBarBg";this.controlNode.appendChild(_2db);if(!this.overview&&this.showControls){_2db.parentNode.style.width=(_2db.offsetWidth-(this.tiny?16:32))+"px";}if(!this.showDescription&&this.showControls){_2db.parentNode.style.width=(_2db.offsetWidth-(this.tiny?16:32))+"px";}var _2dc=this._getAlphaImage(this.controlBarImages[1][this.tiny?1:0]);_2dc.className="SlideshowButton";this.controlNode.appendChild(_2dc);this.connect(_2dc,"onclick","_rewindClick");var _2dd=this._getAlphaImage(this.controlBarImages[2][this.tiny?1:0]);_2dd.className="SlideshowButton";if(this.stopped){_2dd.style.position="absolute";_2dd.style.visibility="hidden";}this.controlNode.appendChild(_2dd);this.connect(_2dd,"onclick","_pauseClick");this._pauseIcon=_2dd;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 _2de=this._getAlphaImage(this.controlBarImages[4][this.tiny?1:0]);_2de.className="SlideshowButton";this.controlNode.appendChild(_2de);this.connect(_2de,"onclick","_overviewClick");}if(this.showDescription){var _2df=this._getAlphaImage(this.controlBarImages[5][this.tiny?1:0]);_2df.className="SlideshowButton";this.controlNode.appendChild(_2df);this.connect(_2df,"onclick","_detailsClick");}var _2e0=this._getAlphaImage(this.controlBarImages[6][this.tiny?1:0]);_2e0.className="SlideshowButton";this.controlNode.appendChild(_2e0);this.connect(_2e0,"onclick","_forwardClick");dojo.style(this.controlNode,"opacity",0);return [_2dc,playIcon,_2dd,_2de?_2de:null,_2df?_2df:null,_2e0];},_controlBarButtonOver:function(_2e1){dojo.addClass(_2e1.currentTarget,"Highlighted");document.onselectstart=function(){return false;};},_controlBarButtonOut:function(_2e2){dojo.removeClass(_2e2.currentTarget,"Highlighted");dojo.removeClass(_2e2.currentTarget,"Hit");document.onselectstart=function(){return true;};},_controlBarButtonDown:function(_2e3){dojo.addClass(_2e3.currentTarget,"Hit");},_controlBarButtonUp:function(_2e4){dojo.removeClass(_2e4.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(_2e5){var _2e6=_2e5.currentTarget;_2e6.src=this.errorImagePath;_2e6.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(_2e7){if(typeof (_2e7)=="object"){_2e7=null;}this._pauseClick();if(!this._overviewArea){var _2e8=document.createElement("div");_2e8.className="OverviewBackground";dojo.style(_2e8,"opacity",0);dojo.addClass(dojo.body(),"OverviewAreaVisible");_2e8.innerHTML="<div class='Background'></div>";var _2e9=document.createElement("div");_2e9.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 _2ea=this._images[this.showIndex].imageTable.cloneNode(true);var _2eb=_2ea.getElementsByTagName("b")[0];_2eb.innerHTML="";_2eb.appendChild(this._getAlphaImage(epages.themeUrl("images")+"/plain.gif"));_2e9.appendChild(_2ea);var _2ec=document.createElement("div");_2ec.className="BackgroundEventLayer";_2e9.getElementsByTagName("td")[0].appendChild(_2ec);var _2ed=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_rewind_overview.png");_2ed.className="Image SlideshowButton";this.connect(_2ed,"onclick","_setPrevImage");this.connect(_2ed,"onmouseover","_controlBarButtonOver");this.connect(_2ed,"onmouseout","_controlBarButtonOut");this.connect(_2ed,"onmousedown","_controlBarButtonDown");this.connect(_2ed,"onmouseup","_controlBarButtonUp");var _2ee=document.createElement("i");_2ee.appendChild(_2ed);_2ee.className="OverviewRewindButton";var _2ef=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_forward_overview.png");_2ef.className="Image SlideshowButton";this.connect(_2ef,"onclick","_setNextImage");this.connect(_2ef,"onmouseover","_controlBarButtonOver");this.connect(_2ef,"onmouseout","_controlBarButtonOut");this.connect(_2ef,"onmousedown","_controlBarButtonDown");this.connect(_2ef,"onmouseup","_controlBarButtonUp");var _2f0=document.createElement("i");_2f0.appendChild(_2ef);_2f0.className="OverviewForwardButton";var _2f1=this._getAlphaImage(epages.themeUrl("images")+"/layer_img_closebutton.png");_2f1.className="Image SlideshowButton";_2f1.style.clip="rect(0, 40px, 20px, 0)";this.connect(_2f1,"onclick","_destroyOverview");this.connect(_2f1,"onmouseover","_controlBarButtonOver");this.connect(_2f1,"onmouseout","_controlBarButtonOut");var _2f2=document.createElement("i");_2f2.appendChild(_2f1);_2f2.className="OverviewCloseButton";var _2f3=document.createElement("b");_2f3.className="OverviewImageCounter";if(!this.showMisc){_2f3.style.display="none";}dojo.style(_2e9,"background","url("+this.loaderImagePath+") center no-repeat");dojo.style(_2e9.getElementsByTagName("span")[0],"opacity",0);var _2f4=info.imageLarge?info.imageLarge:info.image;var _2f5=_2e9.getElementsByTagName("img")[0];_2f5.src=_2e7||_2f4;_2f5.style.height="auto";_2f5.style.width="auto";if(_2f5.src.match(".ico")||_2f5.src.match(".cur")){_2f5.parentNode.style.filter="fade()";}else{}dojo.body().appendChild(_2e8);dojo.body().appendChild(_2e9);var _2f6=true;var _2f7=this._images[0];for(var i=0,_2f8=this._images.length;i<_2f8;i++){if(this._images[i].imageLarge!=_2f7.imageLarge){_2f6=false;break;}else{_2f7=this._images[i];}}if(this._images.length>1&&!_2e7&&!_2f6){if(this.showControls){_2e9.getElementsByTagName("span")[1].appendChild(_2ee);_2e9.getElementsByTagName("span")[1].appendChild(_2f0);}_2e9.getElementsByTagName("span")[1].appendChild(_2f3);}_2e9.getElementsByTagName("span")[1].appendChild(_2f2);var _2f9=new Image();_2f9.onload=dojo.hitch(this,function(){this._delayExec(this._drawOverviewImage,1);});_2f9.src=_2e7||_2f4;this.connect(_2f5,"onerror","_drawErrorImage");this.connect(_2ec,"onclick","_destroyOverview");_2e8.style.zoom=1;dojo.style(_2e8,"opacity",1);this._overviewBackground=_2e8;this._overviewArea=_2e9;this._overviewImageCounter=_2f3;this._changeOverviewDimensions();}},_changeOverviewDimensions:function(){if(this._overviewArea!=null){var _2fa=this._overviewArea.getElementsByTagName("img")[0];var _2fb=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;var _2fc=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;var _2fd=0;if(_2fb>dojo.body().offsetHeight+10){_2fd=_2fb;}else{_2fd=dojo.body().offsetHeight+10;}this._overviewBackground.style.height=_2fd+"px";this._overviewArea.style.height=_2fb+"px";setTimeout(dojo.hitch(this,function(){var _2fe=this._images[this.showIndex]._overviewWidth;var _2ff=this._images[this.showIndex]._overviewHeight;if(_2fe&&_2ff&&(_2fe>_2fc-50||_2ff>_2fb-50)){if((_2fc/_2fb)/(_2fe/_2ff)>1){_2fa.style.height=(_2fb-50)+"px";_2fa.style.width="auto";}else{_2fa.style.width=(_2fc-50)+"px";_2fa.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 _300=dojo.body().pageYOffset?dojo.body().pageYOffset:document.documentElement.scrollTop;dojo.fx.slideTo({node:this._overviewArea,top:_300,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 _301=this._overviewArea.getElementsByTagName("img")[0];if(!this._images[this.showIndex]._overviewWidth){_301.style.position="absolute";this._images[this.showIndex]._overviewWidth=_301.width;this._images[this.showIndex]._overviewHeight=_301.height;_301.style.position="static";}if(this._images[this.showIndex]._overviewHeight<100){_301.style.marginTop=(45-this._images[this.showIndex]._overviewHeight/2)+"px";}else{_301.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 _302=this._images[this.showIndex].image.match("dijit/themes/epages/images/plain.gif")||this._images[this.showIndex].image.match("transparentpixel.gif");if(this._globalOverview&&!_302){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(_303){if(this._images[_303]){if(this._overviewArea){if(!this._oldShowIndex){this._oldShowIndex=this.showIndex;}var _304=this._overviewArea.getElementsByTagName("span")[0];var _305=_304.getElementsByTagName("img")[0];dojo.style(this._overviewArea,"background","url("+this.loaderImagePath+") center no-repeat");dojo.fadeOut({node:_304,duration:this.protraction,easing:this._fadeEasing}).play();this._delayExec(function(){var info=this._images[this.showIndex];dojo.style(_304,"opacity",0);var _306=info.imageLarge||info.image;var _307=this._overviewArea.getElementsByTagName("img")[0];_307.src=_306;_307.style.width="auto";_307.style.height="auto";var test=new Image();test.onload=dojo.hitch(this,function(){this._delayExec(this._drawOverviewImage,1);});test.src=_306;},this.protraction);}else{var _308=this._images[this.showIndex].imageTable.getElementsByTagName("b")[0];var _309=this._images[_303].imageTable.getElementsByTagName("b")[0];if(_308.offsetWidth==0){this._pauseClick();}else{var _30a=_309.getElementsByTagName("img")[0];if(typeof (_30a)=="undefined"){_309.appendChild(this._getAlphaImage(this._images[_303].image,true));_30a=_309.getElementsByTagName("img")[0];}if(typeof (_30a)!="undefined"){if(this._images[_303].fit=="true"||this._images[_303].fit==true){if(_30a.offsetHeight>_30a.offsetWidth){_30a.style.height=(this.mainNode.offsetHeight)+"px";if(_30a.offsetWidth>=this.mainNode.offsetWidth){_30a.style.height="auto";_30a.style.width=(this.mainNode.offsetWidth)+"px";}}else{_30a.style.width=(this.mainNode.offsetWidth)+"px";if(_30a.offsetHeight>=this.mainNode.offsetHeight){_30a.style.width="auto";_30a.style.height=(this.mainNode.offsetHeight)+"px";}}}else{if(this._images[_303].fit==null){this._delayExec(function(){if(_30a.offsetHeight>_30a.offsetWidth){if(_30a.offsetHeight>this.mainNode.offsetHeight){_30a.style.height=(this.mainNode.offsetHeight)+"px";_30a.style.width="auto";}}else{if(_30a.offsetWidth>this.mainNode.offsetWidth){_30a.style.width=(this.mainNode.offsetWidth)+"px";_30a.style.height="auto";}}},1);}}}if(this.showIndex!=_303){dojo.fadeOut({node:_308,duration:this.protraction,easing:this._fadeEasing}).play();this._delayExec(function(){this._fadeOutHide(_308);},this.protraction);}dojo.style(_309,"visibility","visible");dojo.fadeIn({node:_309,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[_303].imageTable.style.zIndex=1;}}}this.showIndex=_303;},_fadeOutHide:function(_30b){if(dojo.style(_30b,"opacity")==0){dojo.style(_30b,"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 _30c=info.imageTable;this.mainNode.style.background="transparent url("+this.loaderImagePath+") center no-repeat";_30c.style.zIndex=0;var _30d=_30c.getElementsByTagName("b")[0];_30d.style.zoom="1";dojo.style(_30d,"opacity",0);dojo.style(_30d,"visibility","hidden");if(typeof (_30d.getElementsByTagName("img")[0])=="undefined"){_30d.appendChild(this._getAlphaImage(info.image,true));}var _30e=_30d.getElementsByTagName("img")[0];this.connect(_30e,"onerror","_drawErrorImage");var test=new Image();test.onload=dojo.hitch(this,"_loadImagesSoft");test.src=_30e.src;},_createImageTable:function(){var _30f=this.imageTable.cloneNode(true);_30f.className="ImageTable";this.imageTable.parentNode.appendChild(_30f);return _30f;},_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(_310){this._overviewClick(_310);},setImage:function(_311){this._pauseClick();this._setImage(_311);},setNextImage:function(){this._setNextImage();},setPrevImage:function(){this._setPrevImage();},addImage:function(_312,_313){if(_312.image){var _314;for(var i=0,_315=this._images.length;i<_315;i++){if(this._images[i].image==_312.image){_314=i;}}if(!_314){this._images.push(_312);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(_314);}}},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 _316=this._drawControlBar();for(var i=0,_317=_316.length;i<_317;i++){if(_316[i]){this.connect(_316[i],"onmouseover","_controlBarButtonOver");this.connect(_316[i],"onmouseout","_controlBarButtonOut");this.connect(_316[i],"onmousedown","_controlBarButtonDown");this.connect(_316[i],"onmouseup","_controlBarButtonUp");}}if(this.srcNodeRef){if(this.srcNodeRef.className){this.mainNode.parentNode.parentNode.className+=" "+this.srcNodeRef.className;}var _318=this.srcNodeRef.getElementsByTagName("ins");for(var i=0,_317=_318.length;i<_317;i++){var _319={};_319.image=_318[i].getAttribute("image")||epages.themeUrl("images")+"/plain.gif";_319.imageLarge=_318[i].getAttribute("imageLarge");_319.name=_318[i].getAttribute("name");_319.description=_318[i].innerHTML;_319.date=_318[i].getAttribute("date");_319.time=_318[i].getAttribute("time");_319.fit=_318[i].getAttribute("fit");_319.imageTable=this._createImageTable();this._images.push(_319);}}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,_31a,_31b,_31c){if(_31c===null){_31c=undefined;}if(_31b=="PopUp"){_31b="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";}if(_31b=="PopUpPrint"){_31b="width=790, height=580, toolbar=yes, status=no, resizable=yes, menubar=yes, location=no, scrollbars=yes";}if(_31b=="RTE"||_31a=="RTE"){_31b="width=996, height=700, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";}if(_31b=="HelpWindow"){_31b="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";_31a="WWHFrame";}if(_31b=="StylePreview"){_31b="width=470, height=310, toolbar=no, status=no, resizable=no, menubar=no, location=no, scrollbars=no";_31a="StylePreview";}if(_31b=="DetailedImageView"){_31b="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";_31a="StylePreview";}if(_31b=="CheckLink"){if(URL.indexOf("?")!=0){splittedString=URL.split("//");if(splittedString.length==1){URL="http://"+URL;}}else{if(_31c!=undefined){URL=_31c+URL;}}_31b="toolbar=yes, status=yes, resizable=yes, menubar=yes, location=yes, scrollbars=yes";}if(URL!="http://"){var _31d=window.open(URL,_31a,_31b);if(_31d){_31d.focus();}}return _31d;};window.linkCorrection=function(_31e){var _31f=_31e.value;var _320=_31f.split("//");if(_31f.indexOf("?")!=0){if(_320.length==1){_31e.value="http://"+_31f;epages.event.fire(_31e,"change");}}};window.OnCheckAll=function(form,name,_321,_322){dojo.addClass(form.getElementsByTagName("tbody")[0],"HideElement");for(var i=0,l=form.length;i<l;i++){var _323=form[i];if(_323.nodeName=="INPUT"){if((_323.type=="checkbox"||_323.className.match("Checkbox"))&&_323.name==name&&!_323.disabled&&_323.checked!=_321){_323.checked=_321;if(!_322){var _324=$$(dojo.attr(_323,"widgetid")||_323.id);if(_324){_324.setChecked?_324.setChecked(_321):_324.attr("checked",_321);}if(_321){dojo.addClass(epages.parentByTagName(_323,"tr"),"RowSelected");}else{dojo.removeClass(epages.parentByTagName(_323,"tr"),"RowSelected");}}}}}dojo.removeClass(form.getElementsByTagName("tbody")[0],"HideElement");};window.DeactivateButton=function(_325){if(_325.className.match("CustomButton")){fakeButton=_325.getElementsByTagName("*")[0];fakeButton.disabled="true";dojo.addClass(_325,"Disabled");}else{if(_325.getAttribute("widgetid")){$$(_325.getAttribute("widgetid")).disable();}else{_325.disabled="true";dojo.addClass(_325,"Disabled");}}};window.EnableButton=function(_326){if(_326.className.match("CustomButton")){fakeButton=_326.getElementsByTagName("*")[0];fakeButton.disabled="false";}else{if(_326.getAttribute("widgetid")){$$(_326.getAttribute("widgetid")).enable();}else{_326.disabled="false";}}dojo.removeClass(_326,"Disabled");};window.DisableLink=function(Link){if($(Link)){$(Link).className+=" Opacity40";$(Link).href="javascript:void(0)";$(Link).style.cursor="default";}};window.changeImage=function(_327,_328,_329){$(_327).src=_328;if(_329){$(_327).alt=_329;}};window.OptionToChangeAction=function(_32a){_32a.form.ChangeAction.value=_32a.options[_32a.selectedIndex].value;};window.toggleTopic=function(el,_32b,_32c){if(el.parentNode){var _32d=el.parentNode.className;if(_32d.match("Closed")){epages.html.replaceClass(el.parentNode,"Open","Closed");}else{epages.html.replaceClass(el.parentNode,"Closed","Open");}if(_32b&&_32c){if(el.innerHTML==_32b){el.innerHTML=_32c;}else{el.innerHTML=_32b;}}}};window.toggleDisplay=function(_32e){if($(_32e).className!="HideElement"){$(_32e).className="HideElement";}else{$(_32e).className="ShowElement";}};window.hideElement=function(_32f){if(!$(_32f).className.match(/HideElement/)){$(_32f).className+=" HideElement";}};window.showElement=function(_330){$(_330).className=$(_330).className.replace(/HideElement/,"");};window.changeDataById=function(_331,id){myobject=$(id);if(myobject.firstChild){myobject.firstChild.data=_331;}else{mydata=document.createTextNode(_331);myobject.appendChild(mydata);}};window.getSelectedData=function(_332){if(_332){myNode=_332.firstChild;while(myNode!=null){if(myNode.value==_332.value&&myNode.value!=""){return myNode.firstChild.data;}myNode=myNode.nextSibling;}return "";}};window.checkBrowser=function(){var _333=navigator.userAgent.toLowerCase();this.isIE=(_333.indexOf("msie")!=-1);this.isGecko=(_333.indexOf("gecko")!=-1&&_333.indexOf("safari")==-1);this.isOpera=(_333.indexOf("opera")!=-1);this.isRTECompatible=(this.isIE||this.isGecko);};var browser=new checkBrowser();window.disableFormFieldsInElement=function(_334){userattrinputs=$(_334).getElementsByTagName("input");for(var i=0,_335=userattrinputs.length;i<_335;i++){userattrinputs[i].disabled=true;if($(_334).parentNode.className.match("Cropper")){$(_334).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=$(_334).getElementsByTagName("textarea");for(var i=0,_335=userattrtextareas.length;i<_335;i++){userattrtextareas[i].disabled=true;if($(_334).parentNode.className.match("Cropper")){$(_334).parentNode.className+=" Disabled";}userattrtextareas[i].className=userattrtextareas[i].className+" Disabled";}userattrselects=$(_334).getElementsByTagName("select");for(var i=0,_335=userattrselects.length;i<_335;i++){userattrselects[i].disabled=true;if($(_334).parentNode.className.match("Cropper")){$(_334).parentNode.className+=" Disabled";}userattrselects[i].className=userattrselects[i].className+" Disabled";}};window.enableFormFieldsInElement=function(_336){userattrinputs=$(_336).getElementsByTagName("input");for(var i=0,_337=userattrinputs.length;i<_337;i++){userattrinputs[i].disabled=false;if($(_336).parentNode.className.match("Cropper")){$(_336).parentNode.className=$(_336).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=$(_336).getElementsByTagName("textarea");for(var i=0,_337=userattrtextareas.length;i<_337;i++){userattrtextareas[i].disabled=false;if($(_336).parentNode.className.match("Cropper")){$(_336).parentNode.className=$(_336).parentNode.className.replace(/Disabled/g,"");}userattrtextareas[i].className=userattrtextareas[i].className.replace(/ Disabled/,"");userattrtextareas[i].className=userattrtextareas[i].className.replace(/Disabled/,"");}userattrselects=$(_336).getElementsByTagName("select");for(var i=0,_337=userattrselects.length;i<_337;i++){userattrselects[i].disabled=false;if($(_336).parentNode.className.match("Cropper")){$(_336).parentNode.className=$(_336).parentNode.className.replace(/Disabled/g,"");}userattrselects[i].className=userattrselects[i].className.replace(/ Disabled/,"");userattrselects[i].className=userattrselects[i].className.replace(/Disabled/,"");}};window.disableFormFieldById=function(_338){var _339=true;if(disableFormFieldById.arguments.length>1){_339=disableFormFieldById.arguments[1];}$(_338).disabled=true;if($(_338).parentNode.className.match("Cropper")){$(_338).parentNode.className+=" Disabled";}if(_339){dojo.addClass($(_338),"Disabled");}};window.enableFormFieldById=function(_33a){var _33b=true;if(enableFormFieldById.arguments.length>1){_33b=enableFormFieldById.arguments[1];}$(_33a).disabled=false;if($(_33a).parentNode.className.match("Cropper")){$(_33a).parentNode.className=$(_33a).parentNode.className.replace(/Disabled/g,"");}if(_33b){dojo.removeClass($(_33a),"Disabled");}};window.allowURLUpload=function(){var _33c=$("FileUpload").value;if(_33c.match(/http:../)||_33c.match(/https:../)){$("FileUpload2").value=_33c;$("FileUpload2").disabled=false;$("FileUpload").disabled=true;}};window.allowBulkURLUpload=function(_33d){var _33e=document.getElementsByName(_33d);for(var i=0,l=_33e.length;i<l;i++){var _33f=_33e[i].value;var _340=_33e[i].type;var _341=_33e[i].id;if((_33f.match(/http:../)||_33f.match(/https:../))&&_340!="hidden"){$(_341.replace(/FileName/,"URLUpload")).value=_33f;$(_341.replace(/FileName/,"URLUpload")).disabled=false;$(_341).disabled=true;}}};window.setValue=function(_342,_343){$(_343).value=_342;};window.autofillAddress=function(_344){_344.form.DisplayName.value=_344.form.FirstName.value+" "+_344.form.LastName.value;if(_344.form.UserAlias){_344.form.UserAlias.value=_344.form.FirstName.value.slice(0,1)+_344.form.LastName.value;}if(_344.form.UserName){_344.form.UserName.value=_344.form.FirstName.value+" "+_344.form.LastName.value;}};window.SFautofillAddress=function(_345,_346,_347){$(_347).value=$(_345).value+" "+$(_346).value;};window.setCurrentDate=function(_348,_349){$(_349).value=_348;};window.updateStyleSheetRule=function(rule,text){text+=" !important";if(browser.isIE){var _34a=rule.split(/,\s+/);var _34b=document.styleSheets[document.styleSheets.length-1];for(var i=0,l=_34a.length;i<l;i++){_34b.addRule(_34a[i],text);}}else{var _34c=document.getElementsByTagName("style");_34b=_34c[_34c.length-1];_34b.innerHTML+="\n"+rule+"{"+text+";}";}};window.showNotAllowedDialog=function(_34d,_34e){dojo["require"]("epages.uimessagehandler");var _34f=$E(_34d).getAbsolutePosition();var _350=document.getElementsByTagName("body")[0].clientWidth;var _351=document.getElementsByTagName("body")[0].clientHeight;var _352="top";var xoff=0;var yoff=0;if(_34f.x>(_350/2)){_352="right";}if(_34f.y>(_351-30)){_352="bottom";yoff=0;xoff=0;}if(_352=="top"){xoff=10;yoff=_34d.offsetHeight;}if(_352=="right"||_352=="left"){yoff=_34d.offsetHeight/2;}dojo.publish("uimessage/show",["",_34e,"Bubble",{typeClass:"Warning Wide",sizeClass:"Medium",x:_34f.x+xoff,y:_34f.y+yoff,orientation:_352}]);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(_353,_354){this.areaName.push(_353);this.areaId.push(_354);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 _355;if(this.areaActivated[i]){_355=document.createElement("a");_355.href="javascript:epagesDialog.toggleArea('"+this.areaName[i]+"');";_355.name=this.areaName[i];_355.id=this.areaName[i];_355.className="HideArea";}else{_355=document.createElement("span");_355.name=this.areaName[i];_355.id=this.areaName[i];_355.className="disabled";}var _356=document.createTextNode(this.areaDisplayName[i]);_355.appendChild(_356);$("ToggleTabpageArea").appendChild(_355);}};this.showArea=function(_357){areaId="";for(var i=0,_358=this.areaName.length;i<_358;i++){if(this.areaName[i]==_357){areaId=this.areaId[i];}}try{dojo.removeClass(document.getElementsByName(_357)[0],"HideArea");dojo.addClass(document.getElementsByName(_357)[0],"ShowArea");}catch(ex){dojo.removeClass($(_357),"HideArea");dojo.addClass($(_357),"ShowArea");}$(areaId).className="ShowElement";if(browser.isIE){setTimeout("$('"+areaId+"').className='ShowElement';",10);}actualDialogArea=_357;};this.hideArea=function(_359){areaId="";for(var i=0,_35a=this.areaName.length;i<_35a;i++){if(this.areaName[i]==_359){areaId=this.areaId[i];}}dojo.removeClass(document.getElementsByName(_359)[0],"ShowArea");dojo.addClass(document.getElementsByName(_359)[0],"HideArea");$(areaId).className="HideElement";actualDialogArea="";};this.toggleArea=function(_35b){this.showArea(_35b);for(var i=0,_35c=this.areaName.length;i<_35c;i++){tempName=this.areaName[i];tempId=this.areaId[i];if(_35b!=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(_35d){if(document.getElementsByName(_35d)[0].className.match("HideArea")){this.showArea(_35d);}else{this.hideArea(_35d);}};this.selectArea=function(_35e){this.showArea(_35e);for(var i=0,_35f=this.areaName.length;i<_35f;i++){tempName=this.areaName[i];tempId=this.areaId[i];if(_35e!=tempName){dojo.removeClass(document.getElementsByName(tempName)[0],"ShowArea");dojo.addClass(document.getElementsByName(tempName)[0],"HideArea");$(tempId).className="HideElement";}}};};window.appendDialogArea=function(_360){if(actualDialogArea!=""){_360.action+="&DialogArea="+actualDialogArea;}};actualDialogArea="";epagesDialog=new DialogArea();window.WizardPages=function(){this.TabId=new Array();this.AreaId=new Array();this.addPage=function(_361,_362){this.TabId.push(_361);this.AreaId.push(_362);};this.showStep=function(_363){ActualWizardPage=_363;window.scrollTo(0,0);$(this.TabId[_363]).className="selected";$(this.TabId[_363]).getElementsByTagName("span")[0].firstChild.className="selected";try{$(this.TabId[_363]).getElementsByTagName("span")[0].appendChild(oHelpTopic);}catch(ex){}$(this.AreaId[_363]).className="ShowElement";for(var i=0,_364=this.TabId.length;i<_364;i++){if(i!=_363){$(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(_365){(new epages.widget.Slides).openOverview(_365);};window.showMore=function(_366,_367){if(_367){_367.style.display="none";}dojo.fx.wipeIn({node:$(_366),duration:200}).play();};window.showLess=function(_368){dojo.fx.wipeOut({node:$(_368),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(_369){var _36a=this._counter;this._hash.set("key"+_36a,_369);do{this._counter++;}while(this._hash.existsKey("key"+this._counter));return _36a;},set:function(key,_36b){if(this._hash.existsKey("key"+key)){this._hash.set("key"+key,_36b);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,_36c){if(o===undefined&&func===undefined&&_36c===undefined){return;}else{if(_36c===undefined){return dojo.hitch(o,func);}var _36d=[];for(var i=0,_36e=_36c.length;i<_36e;i++){var _36f=epages.lang.hitch.prototype.clipBoard.add(_36c[i]);_36d.push("epages.lang.hitch.prototype.clipBoard.get("+_36f+")");}if(typeof (func)=="string"){var _370=func;}else{for(member in o){if(typeof o[member]=="function"&&o[member]==func){var _370=member;break;}}}var _371;if(_370===undefined){_371=eval("dojo.hitch(o, function() { func("+_36d.join(", ")+"); });");}else{_371=eval("dojo.hitch(o, function() { o."+_370+"("+_36d.join(", ")+"); });");}return _371;}};epages.lang.hitch.prototype={clipBoard:new epages.lang.Clipboard()};}if(!dojo._hasResource["epages.lang.uri"]){dojo._hasResource["epages.lang.uri"]=true;dojo.provide("epages.lang.uri");epages.lang.uri={parts:function(uri){var _372={};var _373=uri.match(/^((?:(.+)\:\/\/([^\/]+))?((?:\/|[^\?#]).*?)?(\?.*?)?(#.*)?)$/);if(_373){_372={"href":_373[1],"protocol":_373[2],"host":_373[3],"path":_373[4],"query":_373[5],"anchor":_373[6],"parameters":{}};_372.parameters=this.splitQueryString(_372.query);}return _372;},splitQueryString:function(uri){var _374={};var _375=(new RegExp(/\??(.*?)(#.*)?$/g)).exec(uri);if(_375){var _376=_375[1];var _377=_376.split("&");for(var i=0,_378=_377.length;i<_378;i++){var _379=(new RegExp(/(.+)\=(.*)/)).exec(_377[i]);if(_379){_374[decodeURIComponent(_379[1])]=decodeURIComponent(_379[2]);}}}return _374;},toQueryString:function(data){if(dojo.isArray(data)){var _37a=[];for(var i=0,_37b=data.length;i<_37b;i++){if(!dojo.isArray(data[i])){console.warn("data element is not an array: "+(typeof data[i]));continue;}_37a.push(encodeURIComponent(data[i][0])+"="+encodeURIComponent(data[i][1]));}return _37a.join("&");}else{if(dojo.isObject(data)){return $H(data).toQueryString();}}},fromParts:function(_37c){var _37d="";if(_37c.protocol){_37d+=_37c.protocol+"://";}if(_37c.host){_37d+=_37c.host;}if(_37c.path){_37d+=_37c.path;}if(dojo.isObject(_37c.parameters)){var qs=this.toQueryString(_37c.parameters);if(qs){_37d+="?"+qs;}}else{if(_37c.query){_37d+=_37c.query;}}if(_37c.anchor){_37d+=_37c.anchor;}return _37d;},isAbsolute:function(uri){var rx=new RegExp(/^((http|https|ftp)\:\/\/|\/)/g);return rx.test(uri);},getRelative:function(_37e,url){var _37f=epages.lang.uri.parts(_37e);var _380=epages.lang.uri.parts(url);if((_380.protocol!=null&&_380.protocol!=_37f.protocol)||(_380.host!=null&&_380.host!=_37f.host)){return url;}_37f.path=_37f.path.replace(/\/+$/,"");_380.path=_380.path.replace(/\/+$/,"");var _381=_37f.path.split("/");var _382=_380.path.split("/");while(_381.length>0){var _383=_381.shift();var _384=_382.shift();if(_384==null){_381.unshift(_383);break;}else{if(_383!=_384){_381.unshift(_383);_382.unshift(_384);break;}}}var _385="";for(var i=0,_386=_381.length;i<_386;i++){_385+="../";}return _385+_382.join("/");}};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_387){var _388=_387.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_388==1&&dojo.date.isLeapYear(_387)){return 29;}return days[_388];};dojo.date.isLeapYear=function(_389){var year=_389.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_38a){var str=_38a.toString();var tz="";var _38b;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_38b=str.match(pat))){tz=_38b[1];}else{str=_38a.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_38b=str.match(pat))){tz=_38b[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_38c,_38d,_38e){_38c=new Date(+_38c);_38d=new Date(+(_38d||new Date()));if(_38e=="date"){_38c.setHours(0,0,0,0);_38d.setHours(0,0,0,0);}else{if(_38e=="time"){_38c.setFullYear(0,0,0);_38d.setFullYear(0,0,0);}}if(_38c>_38d){return 1;}if(_38c<_38d){return -1;}return 0;};dojo.date.add=function(date,_38f,_390){var sum=new Date(+date);var _391=false;var _392="Date";switch(_38f){case "day":break;case "weekday":var days,_393;var mod=_390%5;if(!mod){days=(_390>0)?5:-5;_393=(_390>0)?((_390-5)/5):((_390+5)/5);}else{days=mod;_393=parseInt(_390/5);}var strt=date.getDay();var adj=0;if(strt==6&&_390>0){adj=1;}else{if(strt==0&&_390<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_390>0)?2:-2;}_390=(7*_393)+days+adj;break;case "year":_392="FullYear";_391=true;break;case "week":_390*=7;break;case "quarter":_390*=3;case "month":_391=true;_392="Month";break;default:_392="UTC"+_38f.charAt(0).toUpperCase()+_38f.substring(1)+"s";}if(_392){sum["set"+_392](sum["get"+_392]()+_390);}if(_391&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_394,_395,_396){_395=_395||new Date();_396=_396||"day";var _397=_395.getFullYear()-_394.getFullYear();var _398=1;switch(_396){case "quarter":var m1=_394.getMonth();var m2=_395.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_397*4);_398=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_394,_395,"day"));var _399=parseInt(dojo.date.difference(_394,_395,"week"));var mod=days%7;if(mod==0){days=_399*5;}else{var adj=0;var aDay=_394.getDay();var bDay=_395.getDay();_399=parseInt(days/7);mod=days%7;var _39a=new Date(_394);_39a.setDate(_39a.getDate()+(_399*7));var _39b=_39a.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 (_39b+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 (_39b+mod)<0:adj=2;}}}days+=adj;days-=(_399*2);}_398=days;break;case "year":_398=_397;break;case "month":_398=(_395.getMonth()-_394.getMonth())+(_397*12);break;case "week":_398=parseInt(dojo.date.difference(_394,_395,"day")/7);break;case "day":_398/=24;case "hour":_398/=60;case "minute":_398/=60;case "second":_398/=1000;case "millisecond":_398*=_395.getTime()-_394.getTime();}return Math.round(_398);};}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_39c,_39d,_39e){_39e=dojo.i18n.normalizeLocale(_39e);var _39f=_39e.split("-");var _3a0=[_39c,"nls",_39d].join(".");var _3a1=dojo._loadedModules[_3a0];if(_3a1){var _3a2;for(var i=_39f.length;i>0;i--){var loc=_39f.slice(0,i).join("_");if(_3a1[loc]){_3a2=_3a1[loc];break;}}if(!_3a2){_3a2=_3a1.ROOT;}if(_3a2){var _3a3=function(){};_3a3.prototype=_3a2;return new _3a3();}}throw new Error("Bundle not found: "+_39d+" in "+_39c+" , locale="+_39e);};dojo.i18n.normalizeLocale=function(_3a4){var _3a5=_3a4?_3a4.toLowerCase():dojo.locale;if(_3a5=="root"){_3a5="ROOT";}return _3a5;};dojo.i18n._requireLocalization=function(_3a6,_3a7,_3a8,_3a9){var _3aa=dojo.i18n.normalizeLocale(_3a8);var _3ab=[_3a6,"nls",_3a7].join(".");var _3ac="";if(_3a9){var _3ad=_3a9.split(",");for(var i=0;i<_3ad.length;i++){if(_3aa["indexOf"](_3ad[i])==0){if(_3ad[i].length>_3ac.length){_3ac=_3ad[i];}}}if(!_3ac){_3ac="ROOT";}}var _3ae=_3a9?_3ac:_3aa;var _3af=dojo._loadedModules[_3ab];var _3b0=null;if(_3af){if(dojo.config.localizationComplete&&_3af._built){return;}var _3b1=_3ae.replace(/-/g,"_");var _3b2=_3ab+"."+_3b1;_3b0=dojo._loadedModules[_3b2];}if(!_3b0){_3af=dojo["provide"](_3ab);var syms=dojo._getModuleSymbols(_3a6);var _3b3=syms.concat("nls").join("/");var _3b4;dojo.i18n._searchLocalePath(_3ae,_3a9,function(loc){var _3b5=loc.replace(/-/g,"_");var _3b6=_3ab+"."+_3b5;var _3b7=false;if(!dojo._loadedModules[_3b6]){dojo["provide"](_3b6);var _3b8=[_3b3];if(loc!="ROOT"){_3b8.push(loc);}_3b8.push(_3a7);var _3b9=_3b8.join("/")+".js";_3b7=dojo._loadPath(_3b9,null,function(hash){var _3ba=function(){};_3ba.prototype=_3b4;_3af[_3b5]=new _3ba();for(var j in hash){_3af[_3b5][j]=hash[j];}});}else{_3b7=true;}if(_3b7&&_3af[_3b5]){_3b4=_3af[_3b5];}else{_3af[_3b5]=_3b4;}if(_3a9){return true;}});}if(_3a9&&_3aa!=_3ac){_3af[_3aa.replace(/-/g,"_")]=_3af[_3ac.replace(/-/g,"_")];}};(function(){var _3bb=dojo.config.extraLocale;if(_3bb){if(!_3bb instanceof Array){_3bb=[_3bb];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_3bc,_3bd){req(m,b,_3bc,_3bd);if(_3bc){return;}for(var i=0;i<_3bb.length;i++){req(m,b,_3bb[i],_3bd);}};}})();dojo.i18n._searchLocalePath=function(_3be,down,_3bf){_3be=dojo.i18n.normalizeLocale(_3be);var _3c0=_3be.split("-");var _3c1=[];for(var i=_3c0.length;i>0;i--){_3c1.push(_3c0.slice(0,i).join("-"));}_3c1.push(false);if(down){_3c1.reverse();}for(var j=_3c1.length-1;j>=0;j--){var loc=_3c1[j]||"ROOT";var stop=_3bf(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_3c2,_3c3){function _3c4(_3c5){_3c5=dojo.i18n.normalizeLocale(_3c5);dojo.i18n._searchLocalePath(_3c5,true,function(loc){for(var i=0;i<_3c3.length;i++){if(_3c3[i]==loc){dojo["require"](_3c2+"_"+loc);return true;}}return false;});};_3c4();var _3c6=dojo.config.extraLocale||[];for(var i=0;i<_3c6.length;i++){_3c4(_3c6[i]);}};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_3c7){var _3c8={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 _3c9=dojo.cldr.supplemental._region(_3c7);var dow=_3c8[_3c9];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_3ca){_3ca=dojo.i18n.normalizeLocale(_3ca);var tags=_3ca.split("-");var _3cb=tags[1];if(!_3cb){_3cb={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(_3cb.length==4){_3cb=tags[2];}}return _3cb;};dojo.cldr.supplemental.getWeekend=function(_3cc){var _3cd={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 _3ce={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 _3cf=dojo.cldr.supplemental._region(_3cc);var _3d0=_3cd[_3cf];var end=_3ce[_3cf];if(_3d0===undefined){_3d0=6;}if(end===undefined){end=0;}return {start:_3d0,end:end};};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_3d1){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_3d1&&_3d1.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_3d2){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("|"),_3d2);};dojo.regexp.group=function(_3d3,_3d4){return "("+(_3d4?"?:":"")+_3d3+")";};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function _3d5(_3d6,_3d7,_3d8,_3d9){return _3d9.replace(/([a-z])\1*/ig,function(_3da){var s,pad,c=_3da.charAt(0),l=_3da.length,_3db=["abbr","wide","narrow"];switch(c){case "G":s=_3d7[(l<4)?"eraAbbr":"eraNames"][_3d6.getFullYear()<0?0:1];break;case "y":s=_3d6.getFullYear();switch(l){case 1:break;case 2:if(!_3d8.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_3d6.getMonth()+1)/3);pad=true;break;case "M":var m=_3d6.getMonth();if(l<3){s=m+1;pad=true;}else{var _3dc=["months","format",_3db[l-3]].join("-");s=_3d7[_3dc][m];}break;case "w":var _3dd=0;s=dojo.date.locale._getWeekOfYear(_3d6,_3dd);pad=true;break;case "d":s=_3d6.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_3d6);pad=true;break;case "E":var d=_3d6.getDay();if(l<3){s=d+1;pad=true;}else{var _3de=["days","format",_3db[l-3]].join("-");s=_3d7[_3de][d];}break;case "a":var _3df=(_3d6.getHours()<12)?"am":"pm";s=_3d7[_3df];break;case "h":case "H":case "K":case "k":var h=_3d6.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=_3d6.getMinutes();pad=true;break;case "s":s=_3d6.getSeconds();pad=true;break;case "S":s=Math.round(_3d6.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_3d6,true,_3d8);if(s){break;}l=4;case "Z":var _3e0=dojo.date.locale._getZone(_3d6,false,_3d8);var tz=[(_3e0<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_3e0)/60),2),dojo.string.pad(Math.abs(_3e0)%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: "+_3d9);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_3e1,_3e2,_3e3){if(_3e2){return dojo.date.getTimezoneName(_3e1);}else{return _3e1.getTimezoneOffset();}};dojo.date.locale.format=function(_3e4,_3e5){_3e5=_3e5||{};var _3e6=dojo.i18n.normalizeLocale(_3e5.locale),_3e7=_3e5.formatLength||"short",_3e8=dojo.date.locale._getGregorianBundle(_3e6),str=[],_3e9=dojo.hitch(this,_3d5,_3e4,_3e8,_3e5);if(_3e5.selector=="year"){return _3ea(_3e8["dateFormatItem-yyyy"]||"yyyy",_3e9);}var _3eb;if(_3e5.selector!="date"){_3eb=_3e5.timePattern||_3e8["timeFormat-"+_3e7];if(_3eb){str.push(_3ea(_3eb,_3e9));}}if(_3e5.selector!="time"){_3eb=_3e5.datePattern||_3e8["dateFormat-"+_3e7];if(_3eb){str.push(_3ea(_3eb,_3e9));}}return str.length==1?str[0]:_3e8["dateTimeFormat-"+_3e7].replace(/\{(\d+)\}/g,function(_3ec,key){return str[key];});};dojo.date.locale.regexp=function(_3ed){return dojo.date.locale._parseInfo(_3ed).regexp;};dojo.date.locale._parseInfo=function(_3ee){_3ee=_3ee||{};var _3ef=dojo.i18n.normalizeLocale(_3ee.locale),_3f0=dojo.date.locale._getGregorianBundle(_3ef),_3f1=_3ee.formatLength||"short",_3f2=_3ee.datePattern||_3f0["dateFormat-"+_3f1],_3f3=_3ee.timePattern||_3f0["timeFormat-"+_3f1],_3f4;if(_3ee.selector=="date"){_3f4=_3f2;}else{if(_3ee.selector=="time"){_3f4=_3f3;}else{_3f4=_3f0["dateTimeFormat-"+_3f1].replace(/\{(\d+)\}/g,function(_3f5,key){return [_3f3,_3f2][key];});}}var _3f6=[],re=_3ea(_3f4,dojo.hitch(this,_3f7,_3f6,_3f0,_3ee));return {regexp:re,tokens:_3f6,bundle:_3f0};};dojo.date.locale.parse=function(_3f8,_3f9){var info=dojo.date.locale._parseInfo(_3f9),_3fa=info.tokens,_3fb=info.bundle,re=new RegExp("^"+info.regexp+"$",info.strict?"":"i"),_3fc=re.exec(_3f8);if(!_3fc){return null;}var _3fd=["abbr","wide","narrow"],_3fe=[1970,0,1,0,0,0,0],amPm="",_3ff=dojo.every(_3fc,function(v,i){if(!i){return true;}var _400=_3fa[i-1];var l=_400.length;switch(_400.charAt(0)){case "y":if(l!=2&&_3f9.strict){_3fe[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_401=year.substring(0,2)*100,_402=Math.min(Number(year.substring(2,4))+20,99),num=(v<_402)?_401+v:_401-100+v;_3fe[0]=num;}else{if(_3f9.strict){return false;}_3fe[0]=v;}}break;case "M":if(l>2){var _403=_3fb["months-format-"+_3fd[l-3]].concat();if(!_3f9.strict){v=v.replace(".","").toLowerCase();_403=dojo.map(_403,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_403,v);if(v==-1){return false;}}else{v--;}_3fe[1]=v;break;case "E":case "e":var days=_3fb["days-format-"+_3fd[l-3]].concat();if(!_3f9.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":_3fe[1]=0;case "d":_3fe[2]=v;break;case "a":var am=_3f9.am||_3fb.am;var pm=_3f9.pm||_3fb.pm;if(!_3f9.strict){var _404=/\./g;v=v.replace(_404,"").toLowerCase();am=am.replace(_404,"").toLowerCase();pm=pm.replace(_404,"").toLowerCase();}if(_3f9.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;}_3fe[3]=v;break;case "m":_3fe[4]=v;break;case "s":_3fe[5]=v;break;case "S":_3fe[6]=v;}return true;});var _405=+_3fe[3];if(amPm==="p"&&_405<12){_3fe[3]=_405+12;}else{if(amPm==="a"&&_405==12){_3fe[3]=0;}}var _406=new Date(_3fe[0],_3fe[1],_3fe[2],_3fe[3],_3fe[4],_3fe[5],_3fe[6]);if(_3f9.strict){_406.setFullYear(_3fe[0]);}var _407=_3fa.join(""),_408=_407.indexOf("d")!=-1,_409=_407.indexOf("M")!=-1;if(!_3ff||(_409&&_406.getMonth()>_3fe[1])||(_408&&_406.getDate()>_3fe[2])){return null;}if((_409&&_406.getMonth()<_3fe[1])||(_408&&_406.getDate()<_3fe[2])){_406=dojo.date.add(_406,"hour",1);}return _406;};function _3ea(_40a,_40b,_40c,_40d){var _40e=function(x){return x;};_40b=_40b||_40e;_40c=_40c||_40e;_40d=_40d||_40e;var _40f=_40a.match(/(''|[^'])+/g),_410=_40a.charAt(0)=="'";dojo.forEach(_40f,function(_411,i){if(!_411){_40f[i]="";}else{_40f[i]=(_410?_40c:_40b)(_411);_410=!_410;}});return _40d(_40f.join(""));};function _3f7(_412,_413,_414,_415){_415=dojo.regexp.escapeString(_415);if(!_414.strict){_415=_415.replace(" a"," ?a");}return _415.replace(/([a-z])\1*/ig,function(_416){var s,c=_416.charAt(0),l=_416.length,p2="",p3="";if(_414.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=_414.am||_413.am||"AM";var pm=_414.pm||_413.pm||"PM";if(_414.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(_412){_412.push(_416);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _417=[];dojo.date.locale.addCustomFormats=function(_418,_419){_417.push({pkg:_418,name:_419});};dojo.date.locale._getGregorianBundle=function(_41a){var _41b={};dojo.forEach(_417,function(desc){var _41c=dojo.i18n.getLocalization(desc.pkg,desc.name,_41a);_41b=dojo.mixin(_41b,_41c);},this);return _41b;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_41d,_41e){var _41f,_420=dojo.date.locale._getGregorianBundle(_41e),_421=[item,_41d,type];if(_41d=="standAlone"){var key=_421.join("-");_41f=_420[key];if(_41f[0]==1){_41f=undefined;}}_421[1]="format";return (_41f||_420[_421.join("-")]).concat();};dojo.date.locale.isWeekend=function(_422,_423){var _424=dojo.cldr.supplemental.getWeekend(_423),day=(_422||new Date()).getDay();if(_424.end<_424.start){_424.end+=7;if(day<_424.start){day+=7;}}return day>=_424.start&&day<=_424.end;};dojo.date.locale._getDayOfYear=function(_425){return dojo.date.difference(new Date(_425.getFullYear(),0,1,_425.getHours()),_425)+1;};dojo.date.locale._getWeekOfYear=function(_426,_427){if(arguments.length==1){_427=0;}var _428=new Date(_426.getFullYear(),0,1).getDay(),adj=(_428-_427+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_426)+adj-1)/7);if(_428==_427){week++;}return week;};}if(!dojo._hasResource["epages.localize"]){dojo._hasResource["epages.localize"]=true;dojo.provide("epages.localize");(function(){epages.localize={formatNumber:function(_429,_42a){var _42b=(_429<0)?"-":"";var _42c=Math.abs(_429);if(_42a==null){_42a=2;}var _42d=Math.pow(10,_42a);var _42e=Math.floor(Math.round(_42c*_42d)/_42d);var _42f=Math.round(Math.abs(_42c-_42e)*_42d);if(_42f!=0){return _42b+_42e+epages.vars.Locale.decimalSep+_42f;}else{return _42b+_42e;}},formatBytes:function(_430,_431){if(_431==null){_431=2;}var unit="Byte";if(_430>=1073741824){_430/=1073741824;unit="GB";}else{if(_430>=1048576){_430/=1048576;unit="MB";}else{if(_430>=1024){_430/=1024;unit="kB";}}}return epages.localize.formatNumber(_430,_431)+" "+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(_432){if(_432==null){_432=epages.vars.Locale.dateFormat;}if(this._patternCache.existsKey(_432)){return this._patternCache.get(_432);}var _433=_432;var _434=$A($A($H(epages.localize._patternMap).keys()).sort(function(a,b){return b.length-a.length;}));_434.each(function(_435){var rx=new RegExp(_435,"g");_433=_433.replace(rx,function(){return epages.localize._patternMap[_435];});});return _433;},formatDateTime:function(date,_436){if(date==null){return "";}if(_436==null){_436=epages.vars.Locale.dateFormat;}var d=dojo.date.locale.format(date,{datePattern:this.getDojoDateTimePattern(_436),timePattern:" "});return d.substring(0,d.length-2);},parseDateTime:function(_437,_438){if(_438==null){_438=epages.vars.Locale.dateFormat;}return dojo.date.locale.parse("~ "+_437,{selector:"timeOnly",timePattern:this.getDojoDateTimePattern(_438),datePattern:"~"});},parseNumber:function(_439){_439=_439.replace(epages.vars.Locale.thousandSep,"");_439=_439.replace(epages.vars.Locale.decimalSep,".");return parseFloat(_439);},getFormat:function(type){var ret=_43a[type];if(!ret){switch(type){case "date":ret=_43a[type]=epages.localize.getDojoDateTimePattern(epages.vars.Locale.dateFormat);break;case "datetime":ret=_43a[type]=epages.localize.getDojoDateTimePattern(epages.vars.Locale.datetimeFormat);break;case "time":ret=_43a[type]=epages.localize.getDojoDateTimePattern(epages.vars.Locale.timeFormat);break;case "number":ret=_43a[type]=dojo.regexp.escapeString("-? ?[0-9"+_separator.thousand+"]+["+_separator.decimal+"]?[0-9]*","([]{}+?*)");break;case "money":ret=_43a[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=_43b[type];if(!ret){switch(type){case "date":case "datetime":case "time":case "month":case "week":ret=_43b[type]=dojo.date.locale.regexp({selector:"date",datePattern:this.getFormat(type),timePattern:""});break;case "number":ret=_43b[type]=dojo.regexp.escapeString("-? ?[0-9"+epages.vars.Locale.thousandSep+"]+["+epages.vars.Locale.decimalSep+"]?[0-9]*","([]{}+?*)");break;case "money":ret=_43b[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(_43c,type){return dojo.date.locale.parse(_43c,{selector:"date",datePattern:_43a[type],timePattern:""});},obj2date:function(_43d,type){return dojo.date.locale.format(_43d,{selector:"date",datePattern:_43a[type],timePattern:""});},date2unix:function(_43e,type){var ret=epages.localize.date2obj(_43e,type);return ret?(ret.getTime()/1000):null;},unix2date:function(_43f,type){return epages.localize.obj2date(new Date(_43f*1000),type);},str2number:function(_440){var ret=parseFloat((_440+"").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(_441){return (_441+"").replace(/\./g,_separator.decimal);}};var _43a={month:"MM (yyyy)",week:"w (yyyy)"},_43b={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(_442,args){var _443=args.xhr.status==404?{}:dojo.fromJson(args.xhr.responseText);console.warn("epages.io.Json: error in request");if(_443.Errors!==undefined){dojo.publish("epages/interfaceerror",[{code:_443.Errors[0].Reason,message:_443.Errors[0].Message,guid:_443.Errors[0].GUID,vars:{url:args.url,status:args.xhr.status,response:_443}}]);}},loadSync:function(url,_444,_445){var _446;var _447=_444!==undefined?dojo.xhrPost:dojo.xhrGet;var _448=this;var opt={url:url,sync:true,preventCache:epages.constants.preventCache,error:function(_449,args){_446={"error":{error:_449,args:args,data:dojo.fromJson(args.xhr.responseText)}};if(_445!=null){_445({"error":[_449,args]});}else{_448.defaultErrorCallback(_449,args);}},load:function(data,evt){var _44a=dojo.fromJson(data);if(_44a.Errors){_446={"error":{data:_44a}};}else{_446={"data":dojo.fromJson(data)};}}};if(url.match(".(js|json)$")){_447=dojo.xhrGet;}else{dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_444});}_447(opt);return _446;},loadAsync:function(url,_44b,_44c,_44d){var _44e=_44c!==undefined?dojo.xhrPost:dojo.xhrGet;var _44f=this;var opt={url:url,error:function(_450,args){var c=_44d||_44b;var _451=dojo.fromJson(args.xhr.responseText);if(c){c({"error":[_450,args],"data":(typeof _451=="object")?dojo.fromJson(args.xhr.responseText):{}});}else{_44f.defaultErrorCallback(_450,args);}},load:function(data,_452){if(_44b!=null){var _453=dojo.fromJson(data);if(_453.Errors){_44b({"error":{data:_453}});}else{_44b({"data":_453,"ioArgs":_452});}}}};if(url.match(".(js|json)$")){_44e=dojo.xhrGet;}else{dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_44c});}_44e(opt);return;}});}if(!dojo._hasResource["epages.format"]){dojo._hasResource["epages.format"]=true;dojo.provide("epages.format");epages.format={slice:function(_454,_455,_456){if(_454===undefined){throw new Error("value not defined");}if(typeof _454!="string"){throw new Error("Not a string value!");}if(!_455){_455=30;}if(!_456===undefined){_456=true;}var _457=_454.length;var _458=_455<0?-_455:_455;if(_457<_458){return _454;}if(_455<0){_454=_454.substr((_457+_455+3),(_458-3));if(!_456){var _459=_454.indexOf(" ");_454=_454.substr(_459,_454.length);}return "..."+_454;}_454=_454.substr(0,_455-3);if(!_456){var _45a=_454.lastIndexOf(" ");_454=_454.substr(0,_45a+1);}return _454+"...";},scrunch:function(_45b,_45c,_45d){if(_45d===undefined){_45d=0.5;}if(_45d<0||_45d>1){throw new Error("ratio value invalid only values from 0..1 allowed");}if(_45b===undefined){throw new Error("value not defined");}if(typeof _45b!="string"){throw new Error("Not a string value!");}if(!_45c){_45c=30;}var _45e=_45c<0?-_45c:_45c;var _45f=_45b.length;if(_45f<=_45e){return _45b;}var _460=Math.floor((_45c-3)*_45d);var _461=Math.floor((_45c-3)*(1-_45d));var _462=_45c-3-(_460+_461);var _463=_45b.substr(0,_460);var _464=_45b.substr(Math.max(0,_45f-_461-_462),_45f);return _463+"..."+_464;}};}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,_465=document.images.length;i<_465;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 _466=dojo.getComputedStyle(document.images[i]);dojo.style(document.images[i],{zoom:"1",width:(document.images[i].offsetWidth?document.images[i].offsetWidth-parseInt(_466.paddingLeft)-parseInt(_466.paddingRight):this.minImageSize)+"px",height:(document.images[i].offsetHeight?document.images[i].offsetHeight-parseInt(_466.paddingTop)-parseInt(_466.paddingBottom):this.minImageSize)+"px"});if(_466.margin=="0px"){tempStyle.margin=_466.padding;}tempStyle.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 _467=dojo.query("input").concat(dojo.query("textarea")).concat(dojo.query("select"));for(var i=0,_468=_467.length;i<_468;i++){if(!_467[i].focusHandle){_467[i].focusHandle=true;dojo.connect(_467[i],"focus",this,function(evt){evt.currentTarget.setAttribute("focused","");if(epages.Browser.engine=="MSIE"){dojo.addClass(evt.currentTarget,"focused");}});dojo.connect(_467[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 _469=false;for(var z=0,_46a=this.focusTriggerClasses.length;z<_46a;z++){if(evt.target.className&&evt.target.className.match(this.focusTriggerClasses[z])){_469=true;}}if(_469||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 _46b=this.lastHoveredNode;for(var i=0;i<this.NODEDEPTH;i++){if(_46b){var _46c=_46b.className||"";var _46d=false;for(var z=0,_46e=this.hoverTriggerClasses.length;z<_46e;z++){if(typeof _46c=="string"&&_46c.match(this.hoverTriggerClasses[z])){_46d=true;}}if((_46d||(_46b.parentNode&&_46b.parentNode.parentNode&&_46b.parentNode.parentNode.className&&_46b.parentNode.parentNode.className.match("ContentList")&&_46b.tagName=="TR")||_46b.tagName=="A"||_46b.tagName=="INPUT"||_46b.tagName=="TEXTAREA"||_46b.tagName=="SELECT")&&!_46b.disabled){if(!_46b.isHovered){this.currentHoveredNodes.push(_46b);_46b.setAttribute("hovered","");if(epages.Browser.engine=="MSIE"){dojo.addClass(_46b,"hovered");}}_46b.isHovered=true;_46b.removeHover=false;}var _46f=false;for(var z=0,_46e=this.activeTriggerClasses.length;z<_46e;z++){if(typeof _46c=="string"&&_46c.match(this.activeTriggerClasses[z])){_46f=true;}}if(_46f||_46b.tagName=="A"&&!_46b.activeHandle){_46b.activeHandle=true;dojo.connect(_46b,"mousedown",this,function(evt){evt.currentTarget.setAttribute("activated","");if(epages.Browser.engine=="MSIE"){dojo.addClass(evt.currentTarget,"activated");}});dojo.connect(_46b,"mouseup",this,"_removeActive");dojo.connect(_46b,"mouseleave",this,"_removeActive");}if(_46b.tagName!="BODY"&&_46b.tagName!="HTML"){_46b=_46b.parentNode;}else{break;}}}var _470=[];for(var i=0,_471=this.currentHoveredNodes.length;i<_471;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{_470.push(this.currentHoveredNodes[i]);}this.currentHoveredNodes[i].removeHover=true;}this.currentHoveredNodes=_470;}},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,_472=document.images.length;i<_472;i++){var _473=new Image();_473.onerror=function(){this.imageRef.src=epages.themeUrl("images")+"/img_faultyimage.png";};_473.imageRef=document.images[i];_473.src=document.images[i].src;}});}},hideemptylistitems:{init:function(){dojo.addOnLoad(function(){if(epages.Browser.engine=="MSIE"){var _474=dojo.query("li");for(var i=0,_475=_474.length;i<_475;i++){var _476=_474[i].getElementsByTagName("*");var _477=0;var _478=0;for(var k=0,_479=_476.length;k<_479;k++){if(_476[k].nodeType!=8){_477++;break;return;}else{_478++;}}if((_477<1&&_474[i].innerHTML.match("<--"))||(_478<1&&_477<1&&_474[i].innerHTML.length<2)){dojo.addClass(_474[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(_47a){return (_47a+"").replace(/[\ \r\n\t]*(.*)[\ \r\n\t]*/,"$1");};var _47b=function(name){return "SiteID::"+epages.vars.SiteID+"::"+name;},_47c="; domain="+document.domain,path="; path=/",_47d=window.localStorage&&window.localStorage.setItem?true:false,_47e=window.sessionStorage&&window.sessionStorage.setItem?true:false,_47f=function(name,_480,_481){if(typeof _481=="number"){var date=new Date();date.setDate(_481);_481="; expires="+date.toUTCString();}else{_481="";}document.cookie=[name,"=",dj.toJson(_480),_481,path,_47c].join("");return _480;},_482=function(name){var _483=null;if(document.cookie&&document.cookie!=""){var _484=document.cookie.split(";");for(var i=0;i<_484.length;i++){var _485=trim(_484[i]);if(_485.substring(0,name.length+1)==(name+"=")){_483=dj.fromJson(_485.substring(name.length+1));break;}}}return _483;},_486=function(name){return _47f(name,null,-365);},_487=function(_488){if(document.cookie&&document.cookie!=""){var _489=document.cookie.split(";");for(var i=0;i<_489.length;i++){var _48a=trim(_489[i]);if(_48a.match(new RegExp("^"+_488,"g"))){_486(_48a.substr(0,_48a.indexOf("=")));}}}return null;};dj.mixin(epages,{localStorage:{setItem:function(name,_48b){return _47d?window.localStorage.setItem(_47b(name),dj.toJson(_48b)):_47f("localStorage::"+_47b(name),_48b,365);},getItem:function(name){if(_47e){var ret=window.localStorage.getItem(_47b(name));return ret?dj.fromJson(ret):ret;}else{return _482("localStorage::"+_47b(name));}},removeItem:function(name){return _47d?window.localStorage.removeItem(_47b(name)):_486("localStorage::"+_47b(name));},clear:function(name){return _47d?window.localStorage.clear():_487("localStorage::"+siteId());}},sessionStorage:{setItem:function(name,_48c){return _47e?window.sessionStorage.setItem(_47b(name),dj.toJson(_48c)):_47f("sessionStorage::"+_47b(name),_48c);},getItem:function(name){if(_47e){var ret=window.sessionStorage.getItem(_47b(name));return ret?dj.fromJson(ret):ret;}else{return _482("sessionStorage::"+_47b(name));}},removeItem:function(name){return _47e?window.sessionStorage.removeItem(_47b(name)):_486("sessionStorage::"+_47b(name));},clear:function(name){return _47e?window.sessionStorage.clear():_487("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(_48d,_48e){_48d=_48d||{};_48d.width=_48d.width||this.defaultWidth;_48d.height=_48d.height||this.defaultHeight;_48d.left=_48d.left||this.defaultLeft;_48d.top=_48d.top||this.defaultTop;_48d.zIndex=_48d.zIndex||this.defaultZIndex;var _48f=$("LoaderAniNode");if(_48f){_48f.style.left=_48d.left+"px";_48f.style.top=_48d.top+"px";_48f.style.zIndex=_48d.zIndex;if(_48f.getElementsByTagName("object")&&_48f.getElementsByTagName("object")[0]){_48f.getElementsByTagName("object")[0].width=_48d.width;_48f.getElementsByTagName("object")[0].height=_48d.height;}}return _48f;};epages.loaderani.destroy=function(_490){var _491=$("LoaderAniNode");if(_491){_491.style.left="-9999px";_491.style.top="-9999px";}};}if(!dojo._hasResource["epages.event.interactionrestrictor"]){dojo._hasResource["epages.event.interactionrestrictor"]=true;dojo.provide("epages.event.interactionrestrictor");epages.event.interactionRestrictor=function(_492){dojo.subscribe("interactionRestrictor/suspend",function(_493,_494,_495,_496){if(!$(_493)&&_494&&_494.offsetWidth){dojo.body().className+=" SuspendUserInteraction";var _497=document.createElement("div");if(!_496){var _498=new epages.html.Element(_494).getAbsolutePosition(dojo.body());var _496={Width:_494.offsetWidth,Height:_494.offsetHeight,Left:_498.x,Top:_498.y};}_497.id=_493;_497.className="SuspendUserInteractionAnimation";_497.style.width=_496.Width+"px";_497.style.height=_496.Height+"px";_497.style.left=_496.Left+"px";_497.style.top=_496.Top+"px";_497.style.zIndex=11000;if(_495){dojo.addClass(_497,"SuspendUserInteractionHidden");}else{if(_494.offsetHeight>0){_497.loaderani=epages.loaderani.create({width:16,height:16,top:(_496.Top+_496.Height/2-8),left:(_496.Left+_496.Width/2-8),zIndex:11001});}}dojo.body().appendChild(_497);}});dojo.subscribe("interactionRestrictor/permit",function(_499){if($(_499)){dojo.removeClass(dojo.body(),"SuspendUserInteraction");epages.loaderani.destroy($(_499).loaderani);dojo.body().removeChild($(_499));}});};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(_49a){_49a=_49a.toLowerCase();this._mime=this._UNKNOW;var map=this._MIMETYPE_MAP;for(var i in map){if(dojo.indexOf(map[i],_49a)>=0){this._mime=i;break;}}return this;},setMime:function(mime){this._mime=mime;return this;},getMime:function(){return this._mime;},mimesByGroup:function(_49b){return this._MIMETYPE_GROUPS[_49b];},isGroup:function(_49c){var _49d=this._MIMETYPE_GROUPS[_49c];if(_49c=="*/*"){return true;}else{if(!_49d){return false;}else{if(dojo.indexOf(_49d,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 _49e=new epages.Mimetype();epages.mimetype={mimeBySuffix:function(_49f){return _49e.setBySuffix(_49f);},isPreviewable:function(mime){return _49e.setMime(mime).isPreviewable();},isGroup:function(mime,_4a0){return _49e.setMime(mime).isGroup(_4a0);},getGroup:function(_4a1){return _49e._MIMETYPE_GROUPS[_4a1]||_49e._MIMETYPE_GROUPS["all"];},isGroupBySuffix:function(_4a2,_4a3){return _49e.setBySuffix(_4a2).isGroup(_4a3);},getIcon:function(mime){return _49e.setMime(mime).getIcon();}};})(dojo);}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,_4a4=this.submitButtons.length;i<_4a4;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(_4a5){var _4a6=this._elems;var _4a7=false;for(var i in _4a6){_4a7=_4a6[i].validate()?_4a7:true;}if(_4a7&&_4a5){_4a5.preventDefault();console.log("error");}return !_4a7;},addElem:function(_4a8){if(_4a8.attr("type")=="submit"){this._submits[_4a8.id]=_4a8;}this._elems[_4a8.id]=_4a8;},removeElem:function(id){if(this._elems[id]){delete (this._elems[id]);}if(this._submits[id]){delete (this._submits[id]);}},change:function(){var _4a9=this._elems;var _4aa=false;for(var i in _4a9){_4aa=_4a9[i].attr("valide")?_4aa:true;}var _4a9=this._submits;for(var i in _4a9){_4a9[i].attr("disabled",_4aa);}},destroy:function(){this.inherited("destroy",arguments);var _4ab=this._elems;for(var i in _4ab){_4ab[i].destroy();}}});}if(!dojo._hasResource["epages.widget.FormElements"]){dojo._hasResource["epages.widget.FormElements"]=true;dojo.provide("epages.widget.FormElements");(function(dj){var _4ac=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 _4ad=(this.domNode.outerHTML).match(/[<\s]{1}type="?([A-Za-z]+)"?[>\s\/]{1}/);this._attr.type=_4ad?_4ad[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 _4ae=dj.attr(this.domNode,name);if(name=="multiple"){_4ae=this.domNode.getAttribute("multiple")==="true"?true:false;}if(name.match(/^(max|min|step)$/)){_4ae=epages.localize.str2number(_4ae);if(_4ae!==null){this._attr[name]=_4ae;}}else{if(_4ae!==undefined){this._attr[name]=_4ae;}}}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 _4af="";var _4b0=this.domNode.getAttribute("style")||"";if(typeof _4b0==="object"){var ret=[];for(var i in _4b0){ret.push(i+":"+name[i]);}_4b0=ret.join(";");}_4b0.replace(/(display:\s*[a-z]+\s*;?|visibility:\s*[a-z]+\s*;?)/gi,function(str,a){_4af=_4af+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":_4af},this.domNode,"after");this.wrapNode.appendChild(this.domNode);var _4b1=(this._attr.form?dj.query("form[name="+this._attr.form+"]"):[this.domNode.form])[0];if(!_4b1){this.formWdgt=_4ac;}else{this.formWdgt=$$(dj.attr(_4b1,"widgetid"));if(!this.formWdgt){this.formWdgt=new epages.widget.Form({},_4b1);}}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,_4b2){if(!node.nodeName&&!this[node]){_4b2=name;name=node;node=this.domNode;}node=node.nodeName||this[node];if(typeof name=="object"){dj.style(node,name);return this;}else{if(_4b2==undefined){return dj.style(node,name);}else{dj.style(node,name,_4b2);return this;}}},attr:function(name,_4b3){if(typeof name=="object"){for(var i in name){this.attr(i,name[i]);}return this;}else{var _4b4="_attr"+name.substr(0,1).toUpperCase()+name.substr(1);if(_4b3===undefined){return this[_4b4]?this[_4b4]():this._attr[name];}else{return this._attr[name]=this[_4b4]?this[_4b4](_4b3):_4b3;}}},_attrMin:function(_4b5){return _4b5?epages.localize.str2number(_4b5):this._attr.min;},_attrMax:function(_4b6){return _4b6?epages.localize.str2number(_4b6):this._attr.max;},_attrStep:function(_4b7){return _4b7?epages.localize.str2number(_4b7):this._attr.step;},_attrType:function(_4b8){return this._attr.type;},_attrValue:function(_4b9){if(_4b9){this.domNode.setAttribute("value",_4b9);return _4b9;}else{return this._attr.value||"";}},_attrForm:function(_4ba){if(_4ba||_4ba==""){if(_4ba==""){var _4bb=[this.domNodeForm];}else{var _4bb=dj.query("form[name="+_4ba+"]")||[];}if(_4bb[0]){this.formWdgt.removeElem(this.id);this.formWdgt=$$(dj.attr(_4bb[0],"widgetid"));if(!formWdgt){this.formWdgt=_4ac;this.formWdgt.addElem(this);}this._attr.form=_4ba;}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,_4bc,fn){if(this._connects[id]){this.removeHandle(id);}this._handles[id]=[typeof node==="string"?this[node]:node,_4bc,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 _4bd=this._handles[id];this._connects[id]=dj.connect(_4bd[0],_4bd[1],this,_4bd[2]);}return this;},disconnectHandle:function(id){dj.disconnect(this._connects[id]);return this;},_connectHandles:function(){var _4be=this._handles;for(var i in _4be){this.connectHandle(i);}},_disconnectHandles:function(){var _4bf=this._handles;for(var i in _4bf){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 _4c0=true;if(!this.attr("formnovalidate")){_4c0=this._validate();var maxL=Math.min(this.attr("maxlength")||epages.vars.MaxTextLength,epages.vars.MaxTextLength);_4c0=maxL&&maxL<(dj.attr(this.domNode,"value")+"").length?false:_4c0;if(_4c0){dj.removeClass(this.domNode,"DialogError");dj.removeClass(this.wrapNode,"DialogError");}else{dj.addClass(this.domNode,"DialogError");dj.addClass(this.wrapNode,"DialogError");}this.attr("valide",_4c0?true:false);this.formWdgt.change();}else{this.attr("valide",_4c0?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 _4c0;},_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(_4c1){if(_4c1){this.domNode.setAttribute("accept",_4c1);return _4c1;}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(_4c2){if(_4c2){var _4c3=new epages.Mimetype();this._attr.accept=_4c2.replace(/([A-Za-z]+\/\*)/,dj.hitch(this,function(_4c4,_4c5){var _4c6=_4c3.mimesByGroup(_4c5);if(_4c6){return _4c6.join(",");}else{return "";}}));dj.attr(this.domNode,"accept",this._attr.accept);return this._attr.accept;}else{return this._attr.accept;}},_attrValue:function(_4c7){if(_4c7==""){this._disconnectHandles();var arr=[];for(var i=0,_4c8=this._handles.length;i<_4c8;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,_4c8=arr.length;i<_4c8;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(_4c9){if(!this._uploader){this._createUploader();this._uploader.hide();}else{_4c9.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 _4ca=this.domNode;dojo.addClass(_4ca,dj.attr(this.domNode,"value")==dj.attr(this.domNode,"emptyValue")?"EmptyValue":"");dojo.connect(this.formWdgt.domNode,"submit",function(){_4ca.value=_4ca.value.replace(_4ca.getAttribute("emptyValue"),"");dojo.removeClass(_4ca,"EmptyValue");});this.addHandle("domNode.focus2.text",_4ca,"focus",function(){_4ca.value=_4ca.value.replace(_4ca.getAttribute("emptyValue"),"");dojo.removeClass(_4ca,"EmptyValue");});this.addHandle("domNode.blur2.text",_4ca,"blur",function(){if(_4ca.value==""){dojo.addClass(_4ca,"EmptyValue");_4ca.value=_4ca.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 _4cb=dj.attr(this.domNode,"value");var _4cc=false;if(_4cb==""&&!this._attr.required){_4cc=true;}if(_4cb==""&&this._attr.required){_4cc=false;}else{if(this._attr.pattern&&_4cb.match(new RegExp("^"+this._attr.pattern+"$"))){_4cc=true;}else{if(!this._attr.pattern){_4cc=true;}}}if(dj.hasClass(this.domNode,"Mandatory")&&!dj.attr(this.domNode,"value")){dj.addClass(this.domNode,"Unfilled");}else{dj.removeClass(this.domNode,"Unfilled");}return _4cc;}});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 _4cd=this._getRadios();for(var i=0,l=_4cd.length;i<l;i++){_4cd[i].attr("checked",false);dojo.removeClass(_4cd[i].domNode,"DialogError");dojo.removeClass(_4cd[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 _4ce=dj.attr(this.domNode,"name");var _4cf=dj.attr(this.formWdgt.domNode,"name");if(this.formWdgt===_4ac){var _4d0=dj.query("input[type=radio][name="+_4ce+"]",this.domNode.ownerDocument);var _4d1=[];}else{var _4d0=dj.query("input[type=radio][name="+_4ce+"]",this.formWdgt.domNode);var _4d1=dj.query("input[type=radio][name="+_4ce+"][form="+_4cf+"]",document.body);}var _4d2=_4d0.concat(_4d1);var _4d3=this.attr("required");var ret=[];for(var i=0,l=_4d2.length;i<l;i++){var wdgt=$$(dj.attr(_4d2[i],"widgetid"));if(wdgt){ret.push(wdgt);_4d3=wdgt.attr("required")||_4d3;wdgt.attr("valide",true);}}this.attr("required",_4d3);return ret;},_validate:function(){var _4d4=dj.attr(this.domNode,"value");var _4d5=false;if(this._attr.type=="checkbox"&&((dj.attr(this.domNode,"checked")&&this._attr.required)||!this._attr.required)){_4d5=true;}if(this._attr.type=="radio"){var _4d6=this._getRadios();}if(this._attr.type=="radio"&&((this.attr("checked")&&this.attr("required"))||!this.attr("required"))){_4d5=true;}else{if(this._attr.type=="radio"){for(var i=0,l=_4d6.length;i<l;i++){_4d5=_4d6[i].attr("checked")||_4d5;}}}return _4d5;}});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(_4d7){_4d7.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(_4d8){_4d8.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 _4d9=dj.attr(this.domNode,"value");var ret;var step=inc*(this._attr.step||1);var _4da=this._attr.min;var _4db=this._attr.max;ret=epages.localize.str2number(_4d9);ret=ret!==null?ret:0;var i=(ret+"").indexOf(".");var l=i>=0?(ret+"").substr(i+1).length:0;ret=ret+step;ret=(_4da&&_4da>ret.toFixed(l))?_4da:(_4db&&_4db<ret.toFixed(l))?_4db: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 _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 val=epages.localize.str2number(_4dc);var _4de=this._attr.min;var _4df=this._attr.max;_4dd=(_4de&&_4de>val)?false:(_4df&&_4df<val)?false:true;}}return _4dd;}});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 _4e0=dj.attr(this.domNode,"value");var ret;var _4e1=this._attr.step||1;var _4e2=this._attr.min;var _4e3=this._attr.max;var _4e4=epages.localize.date2obj(_4e0,this._attr.type)||new Date();switch(this._attr.type){case "date":_4e4.setDate(_4e4.getDate()+(inc*_4e1));break;case "datetime":_4e4.setHours(_4e4.getHours()+(inc*_4e1));break;case "month":_4e4.setMonth(_4e4.getMonth()+(inc*_4e1));break;case "time":_4e4.setHours(_4e4.getHours()+(inc*_4e1));break;case "week":_4e4.setDate(_4e4.getDate()+(inc*_4e1*7));break;}var _4e5=_4e4.getTime()/1000;_4e5=(_4e2&&_4e2>_4e5)?_4e2:(_4e3&&_4e3<_4e5)?_4e3:_4e5;_4e4.setTime(_4e5*1000);ret=epages.localize.obj2date(_4e4,this._attr.type);dj.attr(this.domNode,"value",ret);},_validate:function(){var _4e6=dj.attr(this.domNode,"value");var _4e7=false;if(_4e6==""&&!this._attr.required){_4e7=true;}else{if(_4e6.match(new RegExp("^"+this._attr.pattern+"$"))){var _4e8=epages.localize.date2obj(_4e6,this._attr.type).getTime()/1000;var _4e9=this._attr.min;var _4ea=this._attr.max;_4e7=(_4e9&&_4e9>_4e8)?false:(_4ea&&_4ea<_4e8)?false:true;}}return _4e7;}});})(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 _4eb=dj.clone(node);dj.attr(_4eb,"type",type);dj.attr(_4eb,"value",node.value);dj.place(_4eb,node,"after");_4eb.parentNode.removeChild(node);return _4eb;};epages.widget.FormElement=function(_4ec,_4ed){this.destroy();var _4ee=_4ed.nodeName.toLowerCase(),_4ef,_4f0;if(_4ee=="select"){_4f0=new epages.widget.FormSelect(_4ec,_4ed);}else{if(_4ee=="textarea"){_4f0=new epages.widget.FormText(_4ec,_4ed);}else{if(dojo.hasClass(_4ed,"Checkbox")){_4ed=_4ed.type!="checkbox"?epages.changeInputType(_4ed,"checkbox"):_4ed;_4f0=new epages.widget.FormCheck(_4ec,_4ed);}else{if(dojo.hasClass(_4ed,"Radio")){_4ed=_4ed.type!="radio"?epages.changeInputType(_4ed,"radio"):_4ed;_4f0=new epages.widget.FormCheck(_4ec,_4ed);}}_4ef=_4ed.getAttribute("type");if(/^(file)$/i.test(_4ef)){_4f0=new epages.widget.FormFile(_4ec,_4ed);}else{if(/^(text|password)$/i.test(_4ef)){_4f0=new epages.widget.FormText(_4ec,_4ed);}}}}if(_4f0){_4f0.elementNode=_4f0.domNode;_4f0.setValue=function(val){return this.attr("value",val);};_4f0.setStartUpValue=function(val){this.attr("startupValue",val);this.validate();return this;};_4f0.getValue=function(){return this.attr("value");};_4f0.isChecked=function(){return this.attr("checked");};_4f0.setChecked=function(val){return this.attr("checked",val);};return _4f0;}};epages.widget.FormElement.prototype=new dijit._Widget();})(dojo);}dojo.i18n._preloadLocalizations("epages.nls.ep_base",["ROOT","ca","da","de","en","es","fi","fr","it","nl","no","pt","ro","ru","sv","xx"]);

