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

