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 _17=n.scrollLeft,_18=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_17!=n.scrollLeft||_18!=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(_19,e,_1b){this.node=dojo.byId(_19);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_1b,d=_19.ownerDocument,_1e=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),_1e];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(_2c,_2d){this.node=dojo.byId(_2c);if(!_2d){_2d={};}this.handle=_2d.handle?dojo.byId(_2d.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_2d.delay>0?_2d.delay:0;this.skip=_2d.skip;this.mover=_2d.mover?_2d.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(_2e,_2f){return new dojo.dnd.Moveable(_2f,_2e);},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(_36){dojo.publish("/dnd/move/start",[_36]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_37){dojo.publish("/dnd/move/stop",[_37]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_38){},onMove:function(_39,_3a){this.onMoving(_39,_3a);var s=_39.node.style;s.left=_3a.l+"px";s.top=_3a.t+"px";this.onMoved(_39,_3a);},onMoving:function(_3c,_3d){},onMoved:function(_3e,_3f){}});}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(_40,_41){return new dojo.dnd.move.constrainedMoveable(_41,_40);},constructor:function(_42,_43){if(!_43){_43={};}this.constraints=_43.constraints;this.within=_43.within;},onFirstMove:function(_44){var c=this.constraintBox=this.constraints.call(this,_44);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_44.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_47,_48){var c=this.constraintBox,s=_47.node.style;s.left=(_48.l<c.l?c.l:c.r<_48.l?c.r:_48.l)+"px";s.top=(_48.t<c.t?c.t:c.b<_48.t?c.b:_48.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_4b,_4c){return new dojo.dnd.move.boxConstrainedMoveable(_4c,_4b);},constructor:function(_4d,_4e){var box=_4e&&_4e.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_50,_51){return new dojo.dnd.move.parentConstrainedMoveable(_51,_50);},constructor:function(_52,_53){var _54=_53&&_53.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_54=="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(_54=="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(_54=="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,_5a){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _5b=function(_5c,e,_5e){dojo.dnd.Mover.call(this,_5c,e,_5e);};dojo.extend(_5b,dojo.dnd.Mover.prototype);dojo.extend(_5b,{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(_5a){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _5b;};dojo.dnd.move.boxConstrainedMover=function(box,_67){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_67);};dojo.dnd.move.parentConstrainedMover=function(_68,_69){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(_68=="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(_68=="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(_68=="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,_69);};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 _6f=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_70,_71){if(!_71){_71={};}if(_71.timeout&&typeof _71.timeout=="number"&&_71.timeout>=0){this.timeout=_71.timeout;}},markupFactory:function(_72,_73){return new dojo.dnd.TimedMoveable(_73,_72);},onMoveStop:function(_74){if(_74._timer){clearTimeout(_74._timer);_6f.call(this,_74,_74._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_75,_76){_75._leftTop=_76;if(!_75._timer){var _t=this;_75._timer=setTimeout(function(){_75._timer=null;_6f.call(_t,_75,_75._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["epages._workaround"]){dojo._hasResource["epages._workaround"]=true;dojo.provide("epages._workaround");epages._workaround.load=function(_78){if(_78=="epages.widget.Calendar"&&dojo.version.revision=="0"){dijit._placeOnScreenAroundRect=function(_79,x,y,_7c,_7d,_7e,_7f){var _80=[];for(var _81 in _7e){_80.push({aroundCorner:_81,corner:_7e[_81],pos:{x:x+(_81.charAt(1)=="L"?0:_7c),y:y+(_81.charAt(0)=="T"?0:_7d)}});}if(_80.length==2&&_80[0].aroundCorner=="BR"&&_80[0].corner=="TR"&&_80[1].aroundCorner=="BL"&&_80[1].corner=="TL"){_80=_80.reverse();}return dijit._place(_79,_80,_7f);};}if(_78=="dijit.Tree"&&dojo.version.revision=="20973"){dojo.connect(dijit._TreeNode.prototype,"expand",function(){dojo.publish(this.tree.id+"/nodeexpand",[this]);});}else{if(_78=="dojo.cldr.supplemental"){dojo.cldr.supplemental.getFirstDayOfWeek=function(_82){if(dojo.i18n.normalizeLocale(_82)==djConfig.locale){return epages.vars.Locale.firstDayOfWeek;}var _83={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 _84=dojo.cldr.supplemental._region(_82);var dow=_83[_84];return (dow===undefined)?1:dow;};}}if(_78=="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;i<parent.epages.onIframeStart.length;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(_88,_89,_8a){if(_88&&_88.length&&_89){var _8b;var _8c;if(typeof (_89)==="string"){var _8d=$(_89);if(_8d){_8b=_8d;}else{_8b=document.createElement(_89);_8c=document.createElement("div");}}else{_8b=_89;}if(_8a){_8b.innerHTML=_8a;}for(var i=0;i<_88.length;i++){if(_88[i][0]==="style"){_8b.style.cssText=_88[i][1];}else{if(_88[i][0]==="name"&&epages.Browser.engine==="MSIE"){_8b.Name=_88[i][1];}else{_8b.setAttribute(_88[i][0],_88[i][1]);}}}if(_8c){_8c.appendChild(_8b);document.write(_8c.innerHTML);}}},flashForward:function(){return epages.constants.doFlashForward;},setTheme:function(_8f){var _90=dojo.body();var old=epages.theme.name;if(_90){dojo.removeClass(_90,epages.theme.name);}else{dojo.addOnLoad(function(){var _92=dojo.body();if(_92){dojo.removeClass(_92,epages.theme.name);dojo.addClass(_92,_8f);}});}epages.theme.name=_8f;epages.theme.url=dojo.moduleUrl("dijit.themes",_8f);if(_90){dojo.addClass(_90,_8f);}},themeUrl:function(_93){return epages.theme.url+"/"+_93;},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(_96,_97){_96.action=_97.substr(0,1)=="?"?epages.vars.BaseUrl+_97:_97;},locationWebRoot:function(uri){return window.location.protocol+"//"+window.location.host+uri;},Class:function(){return function(){this.initialize.apply(this,arguments);};},changeSampleText:function(_99,_9a){if(!_99){_99="";}sampletags=document.getElementsByTagName("samp");for(i=0;i<sampletags.length;i++){if(sampletags[i].getAttribute("title")==_9a){if(sampletags[i].firstChild){sampletags[i].firstChild.data=_99;}else{mydata=document.createTextNode(_99);sampletags[i].appendChild(mydata);}}}},toggleNodes:function(_9b,_9c,_9d){if(typeof _9b=="string"){if(typeof _9d=="undefined"){_9d=document;}if(typeof _9d=="string"){_9d=document.getElementById(_9d);}var _9e=_9d.getElementsByTagName("*");for(var i=0;i<_9e.length;i++){if(_9e[i].attributes){if(_9e[i].attributes["class"]){if(_9e[i].attributes["class"].nodeValue.indexOf(_9b)>-1){with(_9e[i].style){if(_9c){if(_9e[i].className.match(/HideNode/)){_9e[i].className=_9e[i].className.replace(/HideNode/,"ShowNode");}else{if(_9e[i].className.match(/ShowNode/)){_9e[i].className=_9e[i].className.replace(/ShowNode/,"HideNode");}else{if(display=="none"){display="";}else{if(display!="none"){display="none";}}}}if(_9e[i].className.match(/HideElement/)){_9e[i].className=_9e[i].className.replace(/HideElement/,"ShowElement");}}else{if(visibility=="hidden"){visibility="visible";if(display=="none"){display="";}_9e[i].className=_9e[i].className.replace(/HideNode/,"ShowNode");_9e[i].className=_9e[i].className.replace(/HideElement/,"ShowElement");}else{visibility="hidden";}}}}}}}}},changeDelimiter:function(_a0,_a1){switch(_a0){case ",":document.getElementById(_a1).options[0].selected="selected";break;case ";":document.getElementById(_a1).options[1].selected="selected";break;default:document.getElementById(_a1).options[2].selected="selected";break;}},toggleLink:function(_a2){if(document.getElementsByName(_a2)[0].className=="ShowLink"){document.getElementsByName(_a2)[0].className="HideLink";}else{document.getElementsByName(_a2)[0].className="ShowLink";}},toggleExtender:function(_a3){splittedFilename=_a3.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";}_a3.src=splittedFilename.join("/");},getDocumentWindow:function(doc){return (doc.parentWindow)?doc.parentWindow:doc.defaultView;},getIframeWrapperUrl:function(url,_a6){var src="?iframeUrl="+encodeURIComponent(url);if(_a6){src+="&charset="+encodeURIComponent(_a6);}return dojo.moduleUrl("epages","iframe_wrapper.html")+src;},require:function(_a8,_a9){if(!window.StoreRoot){console.warn("global var StoreRoot not defined in epages.require()");}if(!_a8){return;}if(epages.vars.DebugLevel&&epages.vars.DebugLevel==1){_a8+=".js.uncompressed";}if(_a9){if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){return dojo["require"](_a9);}var _aa=dojo._loadedModules[_a9];if(_aa){return _aa;}epages.vars.currentRequiredModul=_a9;dojo.xhrGet({url:window.StoreRoot+"/javascript/build/epages/"+_a8+".js",sync:true,load:function(_ab){eval(_ab);},error:function(_ac){dojo["require"](epages.vars.currentRequiredModul);},mimetype:"text/plain"});_aa=dojo._loadedModules[_a9];epages.vars.currentRequiredModul=undefined;return _aa;}else{if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){return;}dojo.xhrGet({url:StoreRoot+"/javascript/build/epages/"+_a8+".js",sync:true,load:function(_ad){eval(_ad);},mimetype:"text/plain"});return;}},checkUnit:function(_ae,_af){if(_ae&&_af){if(_af.value===""&&_ae.value!==""){dojo.addClass(_af,"DialogError");}else{dojo.removeClass(_af,"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(_b3){if(_b3.file&&_b3.priority){var _b4=false;for(var i=0;i<this.files.length;i++){if(this.files[i].file==_b3.file){_b4=true;break;}}if(!_b4){this.files.push(_b3);}}},stopped:false,_preloadFiles:function(){if(!this.stopped&&this.files.length>0){this.nextPreloadFile=this.files[0];for(var i=0;i<this.files.length;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.debug("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(_b7,_b8,_b9){setTimeout(function(){epages.Preload.start();},_b8);});}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(_ba){if(this._hash[_ba.id]){throw new Error("Tried to register widget with id=="+_ba.id+" but that id is already registered");}this._hash[_ba.id]=_ba;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_bc,_bd){_bd=_bd||dojo.global;var i=0,id;for(id in this._hash){_bc.call(_bd,this._hash[id],i++,this._hash);}return this;},filter:function(_c0,_c1){_c1=_c1||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_c0.call(_c1,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,_ca;for(id in this._hash){_ca=this._hash[id];if(_ca.declaredClass==cls){res.add(_ca);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_cd,_ce){return dojo.map(this.toArray(),_cd,_ce);},every:function(_cf,_d0){_d0=_d0||dojo.global;var x=0,i;for(i in this._hash){if(!_cf.call(_d0,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_d3,_d4){_d4=_d4||dojo.global;var x=0,i;for(i in this._hash){if(_d3.call(_d4,this._hash[i],x++,this._hash)){return true;}}return false;}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_d7){var id;do{id=_d7+"_"+(_d7 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_d7]:dijit._widgetTypeCtr[_d7]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_d9){var _da=[];function getChildrenHelper(_db){for(var _dc=_db.firstChild;_dc;_dc=_dc.nextSibling){if(_dc.nodeType==1){var _dd=_dc.getAttribute("widgetId");if(_dd){var _de=dijit.byId(_dd);_da.push(_de);}else{getChildrenHelper(_dc);}}}};getChildrenHelper(_d9);return _da;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_df){if(!_df._destroyed){if(_df.destroyRecursive){_df.destroyRecursive();}else{if(_df.destroy){_df.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(_e1){return dijit.registry.byId(_e1.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_e2){while(_e2){var id=_e2.getAttribute&&_e2.getAttribute("widgetId");if(id){return dijit.byId(id);}_e2=_e2.parentNode;}return null;};dijit._isElementShown=function(_e4){var _e5=dojo.style(_e4);return (_e5.visibility!="hidden")&&(_e5.visibility!="collapsed")&&(_e5.display!="none")&&(dojo.attr(_e4,"type")!="hidden");};dijit.isTabNavigable=function(_e6){if(dojo.attr(_e6,"disabled")){return false;}else{if(dojo.hasAttr(_e6,"tabIndex")){return dojo.attr(_e6,"tabIndex")>=0;}else{switch(_e6.nodeName.toLowerCase()){case "a":return dojo.hasAttr(_e6,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){return _e6.contentDocument.designMode=="on";}else{if(dojo.isWebKit){var doc=_e6.contentDocument,_e8=doc&&doc.body;return _e8&&_e8.contentEditable=="true";}else{doc=_e6.contentWindow.document;_e8=doc&&doc.body;return _e8&&_e8.firstChild&&_e8.firstChild.contentEditable=="true";}}default:return _e6.contentEditable=="true";}}}};dijit._getTabNavigable=function(_e9){var _ea,_eb,_ec,_ed,_ee,_ef;var _f0=function(_f1){dojo.query("> *",_f1).forEach(function(_f2){var _f3=dijit._isElementShown(_f2);if(_f3&&dijit.isTabNavigable(_f2)){var _f4=dojo.attr(_f2,"tabIndex");if(!dojo.hasAttr(_f2,"tabIndex")||_f4==0){if(!_ea){_ea=_f2;}_eb=_f2;}else{if(_f4>0){if(!_ec||_f4<_ed){_ed=_f4;_ec=_f2;}if(!_ee||_f4>=_ef){_ef=_f4;_ee=_f2;}}}}if(_f3&&_f2.nodeName.toUpperCase()!="SELECT"){_f0(_f2);}});};if(dijit._isElementShown(_e9)){_f0(_e9);}return {first:_ea,last:_eb,lowest:_ec,highest:_ee};};dijit.getFirstInTabbingOrder=function(_f5){var _f6=dijit._getTabNavigable(dojo.byId(_f5));return _f6.lowest?_f6.lowest:_f6.first;};dijit.getLastInTabbingOrder=function(_f7){var _f8=dijit._getTabNavigable(dojo.byId(_f7));return _f8.last?_f8.last:_f8.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(_100){var _doc=dojo.doc,mark=_100.mark;if(mark){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_doc.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_doc.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_doc.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_109){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_109||dojo.global,dijit.getBookmark),openedForWindow:_109};},focus:function(_10b){if(!_10b){return;}var node="node" in _10b?_10b.node:_10b,_10d=_10b.bookmark,_10e=_10b.openedForWindow,_10f=_10d?_10d.isCollapsed:false;if(node){var _110=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_110&&_110.focus){try{_110.focus();}catch(e){}}dijit._onFocusNode(node);}if(_10d&&dojo.withGlobal(_10e||dojo.global,dijit.isCollapsed)&&!_10f){if(_10e){_10e.focus();}try{dojo.withGlobal(_10e||dojo.global,dijit.moveToBookmark,null,[_10d]);}catch(e2){}}},_activeStack:[],registerIframe:function(_111){return dijit.registerWin(_111.contentWindow,_111);},unregisterIframe:function(_112){dijit.unregisterWin(_112);},registerWin:function(_113,_114){var _115=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_114||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_113.document.documentElement:_113.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_115);var _118=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_114||evt.srcElement);}else{dijit._onTouchNode(_114||evt.srcElement);}};doc.attachEvent("onactivate",_118);var _11a=function(evt){dijit._onBlurNode(_114||evt.srcElement);};doc.attachEvent("ondeactivate",_11a);return function(){doc.detachEvent("onmousedown",_115);doc.detachEvent("onactivate",_118);doc.detachEvent("ondeactivate",_11a);doc=null;};}else{doc.addEventListener("mousedown",_115,true);var _11c=function(evt){dijit._onFocusNode(_114||evt.target);};doc.addEventListener("focus",_11c,true);var _11e=function(evt){dijit._onBlurNode(_114||evt.target);};doc.addEventListener("blur",_11e,true);return function(){doc.removeEventListener("mousedown",_115,true);doc.removeEventListener("focus",_11c,true);doc.removeEventListener("blur",_11e,true);doc=null;};}}},unregisterWin:function(_120){_120&&_120();},_onBlurNode:function(node){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(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _124=[];try{while(node){var _125=dojo.attr(node,"dijitPopupParent");if(_125){node=dijit.byId(_125).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dijit.getDocumentWindow(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){_124.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_124,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_128,by){var _12a=dijit._activeStack;dijit._activeStack=_128;for(var _12b=0;_12b<Math.min(_12a.length,_128.length);_12b++){if(_12a[_12b]!=_128[_12b]){break;}}var _12c;for(var i=_12a.length-1;i>=_12b;i--){_12c=dijit.byId(_12a[i]);if(_12c){_12c._focused=false;_12c._hasBeenBlurred=true;if(_12c._onBlur){_12c._onBlur(by);}if(_12c._setStateClass){_12c._setStateClass();}dojo.publish("widgetBlur",[_12c,by]);}}for(i=_12b;i<_128.length;i++){_12c=dijit.byId(_128[i]);if(_12c){_12c._focused=true;if(_12c._onFocus){_12c._onFocus(by);}if(_12c._setStateClass){_12c._setStateClass();}dojo.publish("widgetFocus",[_12c,by]);}}}});dojo.addOnLoad(function(){var _12e=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_12e);_12e=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_12f){this.pairs=[];this.returnWrappers=_12f||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_131,wrap,_133,_134){this.pairs[((_134)?"unshift":"push")]([name,_131,wrap,_133]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _13a=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _13b=dojo._docScroll();return {w:_13a.clientWidth,h:_13a.clientHeight,l:_13b.x,t:_13b.y};};dijit.placeOnScreen=function(node,pos,_13e,_13f){var _140=dojo.map(_13e,function(_141){var c={corner:_141,pos:{x:pos.x,y:pos.y}};if(_13f){c.pos.x+=_141.charAt(1)=="L"?_13f.x:-_13f.x;c.pos.y+=_141.charAt(0)=="T"?_13f.y:-_13f.y;}return c;});return dijit._place(node,_140);};dijit._place=function(node,_144,_145){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_144,function(_148){var _149=_148.corner;var pos=_148.pos;if(_145){_145(node,_148.aroundCorner,_149);}var _14b=node.style;var _14c=_14b.display;var _14d=_14b.visibility;_14b.visibility="hidden";_14b.display="";var mb=dojo.marginBox(node);_14b.display=_14c;_14b.visibility=_14d;var _14f=Math.max(view.l,_149.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_150=Math.max(view.t,_149.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_149.charAt(1)=="L"?(_14f+mb.w):pos.x),endY=Math.min(view.t+view.h,_149.charAt(0)=="T"?(_150+mb.h):pos.y),_153=endX-_14f,_154=endY-_150,_155=(mb.w-_153)+(mb.h-_154);if(best==null||_155<best.overflow){best={corner:_149,aroundCorner:_148.aroundCorner,x:_14f,y:_150,w:_153,h:_154,overflow:_155};}return !_155;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_145){_145(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_157,_158,_159){_157=dojo.byId(_157);var _15a=_157.style.display;_157.style.display="";var _15b=dojo.position(_157,true);_157.style.display=_15a;return dijit._placeOnScreenAroundRect(node,_15b.x,_15b.y,_15b.w,_15b.h,_158,_159);};dijit.placeOnScreenAroundRectangle=function(node,_15d,_15e,_15f){return dijit._placeOnScreenAroundRect(node,_15d.x,_15d.y,_15d.width,_15d.height,_15e,_15f);};dijit._placeOnScreenAroundRect=function(node,x,y,_163,_164,_165,_166){var _167=[];for(var _168 in _165){_167.push({aroundCorner:_168,corner:_165[_168],pos:{x:x+(_168.charAt(1)=="L"?0:_163),y:y+(_168.charAt(0)=="T"?0:_164)}});}return dijit._place(node,_167,_166);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_16e,_16f,_170){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAlignment=function(_171,_172){var _173={};dojo.forEach(_171,function(pos){switch(pos){case "after":_173[_172?"BR":"BL"]=_172?"BL":"BR";break;case "before":_173[_172?"BL":"BR"]=_172?"BR":"BL";break;case "below":_173[_172?"BL":"BR"]=_172?"TL":"TR";_173[_172?"BR":"BL"]=_172?"TR":"TL";break;case "above":default:_173[_172?"TL":"TR"]=_172?"BL":"BR";_173[_172?"TR":"TL"]=_172?"BR":"BL";break;}});return _173;};dijit.getPopupAroundAlignment=function(_175,_176){var _177={};dojo.forEach(_175,function(pos){switch(pos){case "after":_177[_176?"BR":"BL"]=_176?"BL":"BR";break;case "before":_177[_176?"BL":"BR"]=_176?"BR":"BL";break;case "below":_177[_176?"BL":"BR"]=_176?"TL":"TR";_177[_176?"BR":"BL"]=_176?"TR":"TL";break;case "above":default:_177[_176?"TL":"TR"]=_176?"BL":"BR";_177[_176?"TR":"TL"]=_176?"BR":"BL";break;}});return _177;};}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 _17b=[],_17c=1000,_17d=1;this.moveOffScreen=function(node){var s=node.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(node);};var _180=function(){for(var pi=_17b.length-1;pi>0&&_17b[pi].parent===_17b[pi-1].widget;pi--){}return _17b[pi];};var _182=[];this.open=function(args){var _184=args.popup,_185=args.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_186=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_17d++);var _188=_182.pop(),_189,_18a;if(!_188){_189=dojo.create("div",{"class":"dijitPopup"},dojo.body());dijit.setWaiRole(_189,"presentation");}else{_189=_188[0];_18a=_188[1];}dojo.attr(_189,{id:id,style:{zIndex:_17c+_17b.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:args.parent?args.parent.id:""});var s=_184.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_189.appendChild(_184.domNode);if(!_18a){_18a=new dijit.BackgroundIframe(_189);}else{_18a.resize(_189);}var best=_186?dijit.placeOnScreenAroundElement(_189,_186,_185,_184.orient?dojo.hitch(_184,"orient"):null):dijit.placeOnScreen(_189,args,_185=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_189.style.visibility="visible";var _18d=[];_18d.push(dojo.connect(_189,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _18f=_180();if(_18f&&_18f.onCancel){_18f.onCancel();}}}}));if(_184.onCancel){_18d.push(dojo.connect(_184,"onCancel",args.onCancel));}_18d.push(dojo.connect(_184,_184.onExecute?"onExecute":"onChange",function(){var _190=_180();if(_190&&_190.onExecute){_190.onExecute();}}));_17b.push({wrapper:_189,iframe:_18a,widget:_184,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_18d});if(_184.onOpen){_184.onOpen(best);}return best;};this.close=function(_191){while(dojo.some(_17b,function(elem){return elem.widget==_191;})){var top=_17b.pop(),_194=top.wrapper,_195=top.iframe,_196=top.widget,_197=top.onClose;if(_196.onClose){_196.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_196&&_196.domNode){this.moveOffScreen(_196.domNode);}_194.style.top="-9999px";_194.style.visibility="hidden";_182.push([_194,_195]);if(_197){_197();}}};}();dijit._frames=new function(){var _198=[];this.pop=function(){var _199;if(_198.length){_199=_198.pop();_199.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\");'>";_199=dojo.doc.createElement(html);}else{_199=dojo.create("iframe");_199.src="javascript:\"\"";_199.className="dijitBackgroundIframe";dojo.style(_199,"opacity",0.1);}_199.tabIndex=-1;}return _199;};this.push=function(_19c){_19c.style.display="none";_198.push(_19c);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _19e=dijit._frames.pop();node.appendChild(_19e);if(dojo.isIE<7){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_19e,{width:"100%",height:"100%"});}this.iframe=_19e;}};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 _1a7=doc.compatMode=="BackCompat",_1a8=_1a7?body:html,_1a9=isWK?body:_1a8,_1aa=_1a8.clientWidth,_1ab=_1a8.clientHeight,rtl=!dojo._isBodyLtr(),_1ad=pos||dojo.position(node),el=node.parentNode,_1af=function(el){return ((isIE<=6||(isIE&&_1a7))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_1af(node)){return;}while(el){if(el==body){el=_1a9;}var _1b1=dojo.position(el),_1b2=_1af(el);with(_1b1){if(el==_1a9){w=_1aa,h=_1ab;if(_1a9==html&&isIE&&rtl){x+=_1a9.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!=_1a9){var _1b4=clientWidth,_1b5=w-_1b4;if(_1b4>0&&_1b5>0){w=_1b4;if(isIE&&rtl){x+=_1b5;}}_1b4=clientHeight;_1b5=h-_1b4;if(_1b4>0&&_1b5>0){h=_1b4;}}if(_1b2){if(y<0){h+=y,y=0;}if(x<0){w+=x,x=0;}if(y+h>_1ab){h=_1ab-y;}if(x+w>_1aa){w=_1aa-x;}}var l=_1ad.x-x,t=_1ad.y-Math.max(y,0),r=l+_1ad.w-w,bot=t+_1ad.h-h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_1ad.x+=scrollLeft;scrollLeft+=(isIE>=8&&!_1a7&&rtl)?-s:s;_1ad.x-=scrollLeft;}if(bot*t>0){_1ad.y+=scrollTop;scrollTop+=Math[t<0?"max":"min"](t,bot);_1ad.y-=scrollTop;}}}el=(el!=_1a9)&&!_1b2&&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,_1be=d.isOpera,maj=Math.floor,ff=d.isFF,_1c1=d.boxModel.replace(/-/,""),_1c2={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:_1be,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};_1c2["dj_"+_1c1]=true;for(var p in _1c2){if(_1c2[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 _1c2){if(_1c2[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,_1c6,node,_1c8,obj,_1ca,_1cb){if(obj!=this._obj){this.stop();this._initialDelay=_1cb||500;this._subsequentDelay=_1ca||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_1c6,_1c8);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,_1cd,_1ce,_1cf,_1d0,_1d1){if(_1cd.keyCode){_1cd.charOrCode=_1cd.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_1cd.charCode){_1cd.charOrCode=String.fromCharCode(_1cd.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==_1cd.charOrCode&&(_1cd.ctrlKey===undefined||_1cd.ctrlKey==evt.ctrlKey)&&(_1cd.altKey===undefined||_1cd.altKey==evt.altKey)&&(_1cd.metaKey===undefined||_1cd.metaKey==(evt.metaKey||false))&&(_1cd.shiftKey===undefined||_1cd.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_1cd,_1ce,node,_1cf,_1cd,_1d0,_1d1);}else{if(dijit.typematic._obj==_1cd){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_1cd){dijit.typematic.stop();}})];},addMouseListener:function(node,_1d5,_1d6,_1d7,_1d8){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_1d5,node,_1d6,node,_1d7,_1d8);}),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,_1d5,node,_1d6,node,_1d7,_1d8);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_1df,_1e0,_1e1,_1e2,_1e3,_1e4,_1e5){return this.addKeyListener(_1e0,_1e1,_1e2,_1e3,_1e4,_1e5).concat(this.addMouseListener(_1df,_1e2,_1e3,_1e4,_1e5));}};}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 _1e8=cs.backgroundImage;var _1e9=(cs.borderTopColor==cs.borderRightColor)||(_1e8!=null&&(_1e8=="none"||_1e8=="url(invalid-url:)"));dojo[_1e9?"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 _1ec=this.getWaiRole(elem);return role?(_1ec.indexOf(role)>-1):(_1ec.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _1f0=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_1f0)){dojo.attr(elem,"role",role);}else{if((" "+_1f0+" ").indexOf(" "+role+" ")<0){var _1f1=dojo.trim(_1f0.replace(this._XhtmlRoles,""));var _1f2=dojo.trim(_1f0.replace(_1f1,""));dojo.attr(elem,"role",_1f2+(_1f2?" ":"")+role);}}},removeWaiRole:function(elem,role){var _1f5=dojo.attr(elem,"role");if(!_1f5){return;}if(role){var t=dojo.trim((" "+_1f5+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_1f8){return elem.hasAttribute?elem.hasAttribute("aria-"+_1f8):!!elem.getAttribute("aria-"+_1f8);},getWaiState:function(elem,_1fa){return elem.getAttribute("aria-"+_1fa)||"";},setWaiState:function(elem,_1fc,_1fd){elem.setAttribute("aria-"+_1fc,_1fd);},removeWaiState:function(elem,_1ff){elem.removeAttribute("aria-"+_1ff);}});}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(_200,_201){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 _202=dojo.date.stamp._isoRegExp.exec(_200),_203=null;if(_202){_202.shift();if(_202[1]){_202[1]--;}if(_202[6]){_202[6]*=1000;}if(_201){_201=new Date(_201);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _201["get"+prop]();}).forEach(function(_205,_206){if(_202[_206]===undefined){_202[_206]=_205;}});}_203=new Date(_202[0]||1970,_202[1]||0,_202[2]||1,_202[3]||0,_202[4]||0,_202[5]||0,_202[6]||0);if(_202[0]<100){_203.setFullYear(_202[0]||1970);}var _207=0,_208=_202[7]&&_202[7].charAt(0);if(_208!="Z"){_207=((_202[8]||0)*60)+(Number(_202[9])||0);if(_208!="-"){_207*=-1;}}if(_208){_207-=_203.getTimezoneOffset();}if(_207){_203.setTime(_203.getTime()+_207*60000);}}return _203;};dojo.date.stamp.toISOString=function(_209,_20a){var _=function(n){return (n<10)?"0"+n:n;};_20a=_20a||{};var _20d=[],_20e=_20a.zulu?"getUTC":"get",date="";if(_20a.selector!="time"){var year=_209[_20e+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_209[_20e+"Month"]()+1),_(_209[_20e+"Date"]())].join("-");}_20d.push(date);if(_20a.selector!="date"){var time=[_(_209[_20e+"Hours"]()),_(_209[_20e+"Minutes"]()),_(_209[_20e+"Seconds"]())].join(":");var _212=_209[_20e+"Milliseconds"]();if(_20a.milliseconds){time+="."+(_212<100?"0":"")+_(_212);}if(_20a.zulu){time+="Z";}else{if(_20a.selector!="time"){var _213=_209.getTimezoneOffset();var _214=Math.abs(_213);time+=(_213>0?"-":"+")+_(Math.floor(_214/60))+":"+_(_214%60);}}_20d.push(time);}return _20d.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 val2type(_216){if(d.isString(_216)){return "string";}if(typeof _216=="number"){return "number";}if(typeof _216=="boolean"){return "boolean";}if(d.isFunction(_216)){return "function";}if(d.isArray(_216)){return "array";}if(_216 instanceof Date){return "date";}if(_216 instanceof d._Url){return "url";}return "object";};function str2obj(_217,type){switch(type){case "string":return _217;case "number":return _217.length?Number(_217):NaN;case "boolean":return typeof _217=="boolean"?_217:!(_217.toLowerCase()=="false");case "function":if(d.isFunction(_217)){_217=_217.toString();_217=d.trim(_217.substring(_217.indexOf("{")+1,_217.length-1));}try{if(_217.search(/[^\w\.]+/i)!=-1){return new Function(_217);}else{return d.getObject(_217,false);}}catch(e){return new Function();}case "array":return _217?_217.split(/\s*,\s*/):[];case "date":switch(_217){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_217);}case "url":return d.baseUrl+_217;default:return d.fromJson(_217);}};var _219={};dojo.connect(dojo,"extend",function(){_219={};});function getClassInfo(_21a){if(!_219[_21a]){var cls=d.getObject(_21a);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_21a+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _21c=cls.prototype;var _21d={},_21e={};for(var name in _21c){if(name.charAt(0)=="_"){continue;}if(name in _21e){continue;}var _220=_21c[name];_21d[name]=val2type(_220);}_219[_21a]={cls:cls,params:_21d};}return _219[_21a];};this._functionFromScript=function(_221){var _222="";var _223="";var _224=_221.getAttribute("args");if(_224){d.forEach(_224.split(/\s*,\s*/),function(part,idx){_222+="var "+part+" = arguments["+idx+"]; ";});}var _227=_221.getAttribute("with");if(_227&&_227.length){d.forEach(_227.split(/\s*,\s*/),function(part){_222+="with("+part+"){";_223+="}";});}return new Function(_222+_221.innerHTML+_223);};this.instantiate=function(_229,_22a,args){var _22c=[],dp=dojo.parser;_22a=_22a||{};args=args||{};d.forEach(_229,function(node){if(!node){return;}var type=dp._attrName in _22a?_22a[dp._attrName]:node.getAttribute(dp._attrName);if(!type||!type.length){return;}var _230=getClassInfo(type),_231=_230.cls,ps=_231._noScript||_231.prototype._noScript;var _233={},_234=node.attributes;for(var name in _230.params){var item=name in _22a?{value:_22a[name],specified:true}:_234.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _237=item.value;switch(name){case "class":_237="className" in _22a?_22a.className:node.className;break;case "style":_237="style" in _22a?_22a.style:(node.style&&node.style.cssText);}var _238=_230.params[name];if(typeof _237=="string"){_233[name]=str2obj(_237,_238);}else{_233[name]=_237;}}if(!ps){var _239=[],_23a=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_23b){var _23c=_23b.getAttribute("event"),type=_23b.getAttribute("type"),nf=d.parser._functionFromScript(_23b);if(_23c){if(type=="dojo/connect"){_239.push({event:_23c,func:nf});}else{_233[_23c]=nf;}}else{_23a.push(nf);}});}var _23e=_231.markupFactory||_231.prototype&&_231.prototype.markupFactory;var _23f=_23e?_23e(_233,node,_231):new _231(_233,node);_22c.push(_23f);var _240=node.getAttribute("jsId");if(_240){d.setObject(_240,_23f);}if(!ps){d.forEach(_239,function(_241){d.connect(_23f,_241.event,null,_241.func);});d.forEach(_23a,function(func){func.call(_23f);});}});if(!_22a._started){d.forEach(_22c,function(_243){if(!args.noStart&&_243&&_243.startup&&!_243._started&&(!_243.getParent||!_243.getParent())){_243.startup();}});}return _22c;};this.parse=function(_244,args){var root;if(!args&&_244&&_244.rootNode){args=_244;root=args.rootNode;}else{root=_244;}var list=d.query(this._query,root);return this.instantiate(list,null,args);};}();(function(){var _248=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,_248);}else{dojo._loaders.unshift(_248);}})();}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(_252,map,_254,_255){_255=_255||dojo.global;_254=_254?dojo.hitch(_255,_254):function(v){return v;};return _252.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_257,key,_259){var _25a=dojo.getObject(key,false,map);if(_259){_25a=dojo.getObject(_259,false,_255).call(_255,_25a,key);}return _254(_25a,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(_25d,_25e){if(_25d&&dojo.isFunction(_25d._onConnect)){_25d._onConnect(_25e);}});dijit._connectOnUseEventHandler=function(_25f){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _260=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_260);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_260);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _263={},_264=function(_265){var dc=_265.declaredClass;if(!_263[dc]){var r=[],_268,_269=_265.constructor.prototype;for(var _26a in _269){if(dojo.isFunction(_269[_26a])&&(_268=_26a.match(/^_set([a-zA-Z]*)Attr$/))&&_268[1]){r.push(_268[1].charAt(0).toLowerCase()+_268[1].substr(1));}}_263[dc]=r;}return _263[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(_26b,_26c){this.create(_26b,_26c);},create:function(_26d,_26e){this.srcNodeRef=dojo.byId(_26e);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(_26d){this.params=_26d;dojo.mixin(this,_26d);}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 _270=this.srcNodeRef;if(_270&&_270.parentNode){_270.parentNode.replaceChild(this.domNode,_270);}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 _271=function(attr,_273){if((_273.params&&attr in _273.params)||_273[attr]){_273.attr(attr,_273[attr]);}};for(var attr in this.attributeMap){_271(attr,this);}dojo.forEach(_264(this),function(a){if(!(a in this.attributeMap)){_271(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_276){this._beingDestroyed=true;this.destroyDescendants(_276);this.destroy(_276);},destroy:function(_277){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_27b){dfe(_27b,d.disconnect);});dfe(this._subscribes,function(_27c){dun(_27c);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_277);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_27e){if(this.bgIframe){this.bgIframe.destroy(_27e);delete this.bgIframe;}if(this.domNode){if(_27e){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_27e){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_27f){dojo.forEach(this.getChildren(),function(_280){if(_280.destroyRecursive){_280.destroyRecursive(_27f);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_282){if(_282 in this._deferredConnects){var _283=this[this._deferredConnects[_282]||"domNode"];this.connect(_283,_282.toLowerCase(),_282);delete this._deferredConnects[_282];}},_setClassAttr:function(_284){var _285=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_285,this["class"]);this["class"]=_284;dojo.addClass(_285,_284);},_setStyleAttr:function(_286){var _287=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_286)){dojo.style(_287,_286);}else{if(_287.style.cssText){_287.style.cssText+="; "+_286;}else{_287.style.cssText=_286;}}this.style=_286;},setAttribute:function(attr,_289){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_289);},_attrToDom:function(attr,_28b){var _28c=this.attributeMap[attr];dojo.forEach(dojo.isArray(_28c)?_28c:[_28c],function(_28d){var _28e=this[_28d.node||_28d||"domNode"];var type=_28d.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_28b)){_28b=dojo.hitch(this,_28b);}var _290=_28d.attribute?_28d.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_28e,_290,_28b);break;case "innerText":_28e.innerHTML="";_28e.appendChild(dojo.doc.createTextNode(_28b));break;case "innerHTML":_28e.innerHTML=_28b;break;case "class":dojo.removeClass(_28e,this[attr]);dojo.addClass(_28e,_28b);break;}},this);this[attr]=_28b;},attr:function(name,_292){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _295=this._getAttrNames(name);if(args>=2){if(this[_295.s]){args=dojo._toArray(arguments,1);return this[_295.s].apply(this,args)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_292);}this[name]=_292;}return this;}else{return this[_295.g]?this[_295.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,_29a,_29b){var d=dojo,dc=d._connect,_29e=[];if(_29a=="ondijitclick"){if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){var m=d.hitch(this,_29b);_29e.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);}}));}_29a="onclick";}_29e.push(dc(obj,_29a,this,_29b));this._connects.push(_29e);return _29e;},disconnect:function(_2a2){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_2a2){dojo.forEach(_2a2,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_2a4,_2a5){var d=dojo,_2a7=d.subscribe(_2a4,this,_2a5);this._subscribes.push(_2a7);return _2a7;},unsubscribe:function(_2a8){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_2a8){dojo.unsubscribe(_2a8);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_2aa,_2ab){if(_2aa.declaredClass&&_2aa.addChild){_2aa.addChild(this,_2ab);}else{dojo.place(this.domNode,_2aa,_2ab);}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 _2ac={};dojo.cache=function(_2ad,url,_2af){if(typeof _2ad=="string"){var _2b0=dojo.moduleUrl(_2ad,url);}else{_2b0=_2ad;_2af=url;}var key=_2b0.toString();var val=_2af;if(_2af!==undefined&&!dojo.isString(_2af)){val=("value" in _2af?_2af.value:undefined);}var _2b3=_2af&&_2af.sanitize?true:false;if(val||val===null){if(val==null){delete _2ac[key];}else{val=_2ac[key]=_2b3?dojo.cache._sanitize(val):val;}}else{if(!(key in _2ac)){val=dojo._getText(key);_2ac[key]=_2b3?dojo.cache._sanitize(val):val;}val=_2ac[key];}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _2b5=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2b5){val=_2b5[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 _2b7=this.declaredClass,_2b8=this;return dojo.string.substitute(tmpl,this,function(_2b9,key){if(key.charAt(0)=="!"){_2b9=dojo.getObject(key.substr(1),false,_2b8);}if(typeof _2b9=="undefined"){throw new Error(_2b7+" template:"+key);}if(_2b9==null){return "";}return key.charAt(0)=="!"?_2b9:_2b9.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){this._attachPoints=[];var _2bb=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_2bb)){node=dojo._toDom(this._stringRepl(_2bb));if(node.nodeType!=1){throw new Error("Invalid template: "+_2bb);}}else{node=_2bb.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _2bd=dojo.parser,qry,attr;if(_2bd._query!="[dojoType]"){qry=_2bd._query;attr=_2bd._attrName;_2bd._query="[dojoType]";_2bd._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){_2bd._query=qry;_2bd._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_2c3){var dest=this.containerNode;if(_2c3&&dest){while(_2c3.hasChildNodes()){dest.appendChild(_2c3.firstChild);}}},_attachTemplateNodes:function(_2c5,_2c6){_2c6=_2c6||function(n,p){return n.getAttribute(p);};var _2c9=dojo.isArray(_2c5)?_2c5:(_2c5.all||_2c5.getElementsByTagName("*"));var x=dojo.isArray(_2c5)?0:-1;for(;x<_2c9.length;x++){var _2cb=(x==-1)?_2c5:_2c9[x];if(this.widgetsInTemplate&&_2c6(_2cb,"dojoType")){continue;}var _2cc=_2c6(_2cb,"dojoAttachPoint");if(_2cc){var _2cd,_2ce=_2cc.split(/\s*,\s*/);while((_2cd=_2ce.shift())){if(dojo.isArray(this[_2cd])){this[_2cd].push(_2cb);}else{this[_2cd]=_2cb;}this._attachPoints.push(_2cd);}}var _2cf=_2c6(_2cb,"dojoAttachEvent");if(_2cf){var _2d0,_2d1=_2cf.split(/\s*,\s*/);var trim=dojo.trim;while((_2d0=_2d1.shift())){if(_2d0){var _2d3=null;if(_2d0.indexOf(":")!=-1){var _2d4=_2d0.split(":");_2d0=trim(_2d4[0]);_2d3=trim(_2d4[1]);}else{_2d0=trim(_2d0);}if(!_2d3){_2d3=_2d0;}this.connect(_2cb,_2d0,_2d3);}}}var role=_2c6(_2cb,"waiRole");if(role){dijit.setWaiRole(_2cb,role);}var _2d6=_2c6(_2cb,"waiState");if(_2d6){dojo.forEach(_2d6.split(/\s*,\s*/),function(_2d7){if(_2d7.indexOf("-")!=-1){var pair=_2d7.split("-");dijit.setWaiState(_2cb,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(_2da){delete this[_2da];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_2db,_2dc,_2dd){var _2de=dijit._Templated._templateCache;var key=_2dc||_2db;var _2e0=_2de[key];if(_2e0){try{if(!_2e0.ownerDocument||_2e0.ownerDocument==dojo.doc){return _2e0;}}catch(e){}dojo.destroy(_2e0);}if(!_2dc){_2dc=dojo.cache(_2db,{sanitize:true});}_2dc=dojo.string.trim(_2dc);if(_2dd||_2dc.match(/\$\{([^\}]+)\}/g)){return (_2de[key]=_2dc);}else{var node=dojo._toDom(_2dc);if(node.nodeType!=1){throw new Error("Invalid template: "+_2dc);}return (_2de[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _2e2=dijit._Templated._templateCache;for(var key in _2e2){var _2e4=_2e2[key];if(typeof _2e4=="object"){dojo.destroy(_2e4);}delete _2e2[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(_2e5,_2e6){var _2e7=this.containerNode;if(_2e6&&typeof _2e6=="number"){var _2e8=this.getChildren();if(_2e8&&_2e8.length>=_2e6){_2e7=_2e8[_2e6-1].domNode;_2e6="after";}}dojo.place(_2e5.domNode,_2e7,_2e6);if(this._started&&!_2e5._started){_2e5.startup();}},removeChild:function(_2e9){if(typeof _2e9=="number"&&_2e9>0){_2e9=this.getChildren()[_2e9];}if(_2e9&&_2e9.domNode){var node=_2e9.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(_2eb){dojo.forEach(this.getChildren(),function(_2ec){_2ec.destroyRecursive(_2eb);});},_getSiblingOfChild:function(_2ed,dir){var node=_2ed.domNode,_2f0=(dir>0?"nextSibling":"previousSibling");do{node=node[_2f0];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_2f1){return dojo.indexOf(this.getChildren(),_2f1);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_2f2){_2f2.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 _2f3=dijit.getEnclosingWidget(this.domNode.parentNode);return _2f3&&_2f3.isContainer?_2f3:null;},_getSibling:function(_2f4){var node=this.domNode;do{node=node[_2f4+"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 _2f7=this.getParent&&this.getParent();if(!(_2f7&&_2f7.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_2f8,_2f9){var node=this.domNode;if(_2f8){dojo.marginBox(node,_2f8);if(_2f8.t){node.style.top=_2f8.t+"px";}if(_2f8.l){node.style.left=_2f8.l+"px";}}var mb=_2f9||{};dojo.mixin(mb,_2f8||{});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(_301){dojo.addClass(_301.domNode,this.baseClass+"-child");if(_301.baseClass){dojo.addClass(_301.domNode,this.baseClass+"-"+_301.baseClass);}},addChild:function(_302,_303){this.inherited(arguments);if(this._started){this._setupChild(_302);}},removeChild:function(_304){dojo.removeClass(_304.domNode,this.baseClass+"-child");if(_304.baseClass){dojo.removeClass(_304.domNode,this.baseClass+"-"+_304.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 _30a=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_30d,dim){_30d.resize?_30d.resize(dim):dojo.marginBox(_30d.domNode,dim);dojo.mixin(_30d,dojo.marginBox(_30d.domNode));dojo.mixin(_30d,dim);};dijit.layout.layoutChildren=function(_30f,dim,_311){dim=dojo.mixin({},dim);dojo.addClass(_30f,"dijitLayoutContainer");_311=dojo.filter(_311,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_311,function(item){return item.layoutAlign=="client";}));dojo.forEach(_311,function(_314){var elm=_314.domNode,pos=_314.layoutAlign;var _317=elm.style;_317.left=dim.l+"px";_317.top=dim.t+"px";_317.bottom=_317.right="auto";dojo.addClass(elm,"dijitAlign"+_30a(pos));if(pos=="top"||pos=="bottom"){size(_314,{w:dim.w});dim.h-=_314.h;if(pos=="top"){dim.t+=_314.h;}else{_317.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_314,{h:dim.h});dim.w-=_314.w;if(pos=="left"){dim.l+=_314.w;}else{_317.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_314,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(_318){this.disabled=_318;dojo.attr(this.focusNode,"disabled",_318);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_318);}dijit.setWaiState(this.focusNode,"disabled",_318);if(_318){this._hovering=false;this._active=false;this.focusNode.setAttribute("tabIndex","-1");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_319){dojo.deprecated("setDisabled("+_319+") is deprecated. Use attr('disabled',"+_319+") instead.","","2.0");this.attr("disabled",_319);},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_31b){var _31c=_31b.currentTarget;if(_31c&&_31c.getAttribute){this.stateModifier=_31c.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_31b.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 _31d=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_31d);});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 _31e=this.baseClass.split(" ");function multiply(_31f){_31e=_31e.concat(dojo.map(_31e,function(c){return c+_31f;}),"dijit"+_31f);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_322={};dojo.forEach(tn.className.split(" "),function(c){_322[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _322[c];});}dojo.forEach(_31e,function(c){_322[c]=true;});var _326=[];for(var c in _322){_326.push(c);}tn.className=_326.join(" ");this._stateClasses=_31e;},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(_32a){},_onChangeActive:false,_handleOnChange:function(_32b,_32c){this._lastValue=_32b;if(this._lastValueReported==undefined&&(_32c===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_32b;}if((this.intermediateChanges||_32c||_32c===undefined)&&((typeof _32b!=typeof this._lastValueReported)||this.compare(_32b,this._lastValueReported)!=0)){this._lastValueReported=_32b;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_32b);}),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(_32d){dojo.deprecated("dijit.form._FormWidget:setValue("+_32d+") is deprecated.  Use attr('value',"+_32d+") instead.","","2.0");this.attr("value",_32d);},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(_32e){this.readOnly=_32e;dojo.attr(this.focusNode,"readOnly",_32e);dijit.setWaiState(this.focusNode,"readonly",_32e);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(_32f,_330){this.value=_32f;this._handleOnChange(_32f,_330);},_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 _333=this.domNode;var _334=_333.parentNode;var _335=_333.firstChild||_333;var _336=_335.style.filter;while(_334&&_334.clientHeight==0){_334._disconnectHandle=this.connect(_334,"onscroll",dojo.hitch(this,function(e){this.disconnect(_334._disconnectHandle);_334.removeAttribute("_disconnectHandle");_335.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_335.style.filter=_336;},0);}));_334=_334.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 _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},show:function(_33a){return this.showAnim.play(_33a||0);},hide:function(_33b){return this.hideAnim.play(_33b||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_33d={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _340=function(_341){this._index=-1;this._animations=_341||[];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(_340,{_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(_343,_344){if(!this._current){this._current=this._animations[this._index=0];}if(!_344&&this._current.status()=="playing"){return this;}var _345=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_346=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_348=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_345);d.disconnect(_346);d.disconnect(_348);});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(_34c,_34d){this.pause();var _34e=this.duration*_34c;this._current=null;d.some(this._animations,function(a){if(a.duration<=_34e){this._current=a;return true;}_34e-=a.duration;return false;});if(this._current){this._current.gotoPercent(_34e/this._current.duration,_34d);}return this;},stop:function(_350){if(this._current){if(_350){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(_340,_33d);dojo.fx.chain=function(_353){return new _340(_353);};var _354=function(_355){this._animations=_355||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_355,function(a){var _357=a.duration;if(a.delay){_357+=a.delay;}if(this.duration<_357){this.duration=_357;}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(_354,{_doAction:function(_35a,args){d.forEach(this._animations,function(a){a[_35a].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_35d,args){var t=this._pseudoAnimation;t[_35d].apply(t,args);},play:function(_360,_361){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(_362,_363){var ms=this.duration*_362;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_363);});this._call("gotoPercent",arguments);return this;},stop:function(_366){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(_354,_33d);dojo.fx.combine=function(_367){return new _354(_367);};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 _36d=d.style(node,"height");return Math.max(_36d,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 _3a8=epages.Browser;_3a8.engine="Unknown";_3a8.version="Unknown";if(window.opera){_3a8.engine="Presto";_3a8.version=window.opera.version();}else{var _3a9=(navigator.appVersion+navigator.userAgent).toLowerCase();if(_3a9.match("iemobile")||_3a9.match("windows ce")){_3a8.engine="MSIE";_3a8.version=6;}else{if(_3a9.match("msie")){_3a8.engine="MSIE";_3a8.version=(window.XDomainRequest&&dojo.isIE==7)?8:dojo.isIE;var _3aa=document.createElement("b");_3aa.style.cssText="max-height:1";if(_3aa.style.cssText.match("max-height")){_3a8.version=6;}}else{if(_3a9.match("webkit")){_3a8.engine="WebKit";_3a8.version=parseFloat(_3a9.split("/")[2])||dojo.isSafari;_3a8.webkitversion=parseFloat(_3a9.match(/applewebkit\/([\d\.]+)/)[1]);}else{if(_3a9.match("gecko")){_3a8.engine="Gecko";_3a8.version=dojo.isFx||dojo.isFF||parseFloat(_3a9.split("/").pop());}else{if(_3a9.match("khtml")){_3a8.engine="KHTML";}}}}}}_3a8.version=_3a8.version.toString().replace(/\./g,"_");(document.documentElement||document.body.parentNode).className+=" "+_3a8.engine+" "+_3a8.engine+_3a8.version;})();(function(){for(var _3ab=15;_3ab>3;_3ab--){var _3ac=true;if(navigator.plugins.length){try{var _3ad=navigator.plugins["Shockwave Flash"].description;_3ac=_3ad.slice(_3ad.indexOf(".")-2,_3ad.indexOf("."))>=_3ab;}catch(e){_3ac=false;}}else{try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_3ab);}catch(e){_3ac=false;}}if(_3ac){epages.Browser.flashVersion=_3ab;break;}}})();}if(!dojo._hasResource["epages.event"]){dojo._hasResource["epages.event"]=true;dojo.provide("epages.event");epages.event.fire=function(_3ae,_3af){if(epages.Browser.engine=="MSIE"){try{_3ae.fireEvent("on"+_3af);}catch(e){}}else{if(_3af=="click"||_3af=="dblclick"||_3af=="mousedown"||_3af=="mousemove"||_3af=="mouseout"||_3af=="mouseover"||_3af=="mouseup"){var _3b0=document.createEvent("MouseEvents");_3b0.initMouseEvent(_3af,true,true,window,0,0,0,0,0,false,false,false,false,0,null);}else{var _3b0=document.createEvent("HTMLEvents");_3b0.initEvent(_3af,true,true);}_3ae.dispatchEvent(_3b0);}};}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,_3b3){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_3b3){str=str.replace(/'/gm,"&#39;");}return str;},toBoolean:function(_3b4){if(_3b4===undefined){return false;}if(typeof _3b4=="boolean"){return _3b4;}if(typeof _3b4!="string"){throw new Error("Not a string value, got "+typeof (_3b4)+"!");}return _3b4.toLowerCase()==="true"||_3b4=="1"?true:false;},toTime:function(_3b5,_3b6){if(_3b5==""){return null;}if(_3b6==null||_3b6.length==0){_3b6=epages.vars.Locale.timeFormat;}var _3b7=epages.localize.getDojoDateTimePattern(_3b6);date=dojo.date.locale.parse(_3b5,{selector:"date",datePattern:_3b7,timePattern:""});if(date===null){date=dojo.date.locale.parse(_3b5,{selector:"date",datePattern:"HH:mm a",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_3b5,{selector:"date",datePattern:"HH a",timePattern:""});}if(date===null){date=dojo.date.locale.parse(_3b5,{selector:"date",datePattern:"HH",timePattern:""});}return date;},cssSizeToNumber:function(_3b8){if(typeof _3b8=="string"){if(_3b8.match(/^([0-9]+)(px|pt)$/i)){var n=parseInt(RegExp.$1);return n;}if(_3b8.match(/^([0-9]*\.?[0-9]+)(pc|%|mm|cm|em|in|ex)$/i)){var n=parseFloat(RegExp.$1);return n;}if(_3b8.match(/^[0]+$/)){return 0;}}return NaN;},split:function(_3ba,rx){if(epages.Browser.engine!="MSIE"){return _3ba.split(rx);}var _3bc="";do{_3bc+=Date.toString();}while(_3ba.match(_3bc));_3ba=_3ba.replace(rx,"|"+_3bc+"|");var _3bd=_3ba.split(_3bc);for(var i=0;i<_3bd.length;i++){_3bd[i]=_3bd[i].replace(/^(?:\|)?(.*?)(?:\|)?$/g,function(tmp,_3c0){return _3c0;});}return _3bd;}};epages.string.Base64=function(){};epages.string.Base64.prototype={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(_3c1){var _3c2="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;_3c1=this._utf8_encode(_3c1);if(typeof (window.btoa)=="function"){return window.btoa(_3c1);}while(i<_3c1.length){chr1=_3c1.charCodeAt(i++);chr2=_3c1.charCodeAt(i++);chr3=_3c1.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;}}_3c2=_3c2+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);}return _3c2;},decode:function(_3cb){var _3cc="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;_3cb=_3cb.replace(/[^A-Za-z0-9\+\/\=]/g,"");if(typeof (window.atob)=="function"){_3cc=window.atob(_3cb);}else{while(i<_3cb.length){enc1=this._keyStr.indexOf(_3cb.charAt(i++));enc2=this._keyStr.indexOf(_3cb.charAt(i++));enc3=this._keyStr.indexOf(_3cb.charAt(i++));enc4=this._keyStr.indexOf(_3cb.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;_3cc=_3cc+String.fromCharCode(chr1);if(enc3!=64){_3cc=_3cc+String.fromCharCode(chr2);}if(enc4!=64){_3cc=_3cc+String.fromCharCode(chr3);}}}_3cc=this._utf8_decode(_3cc);return _3cc;},_utf8_encode:function(_3d5){_3d5=_3d5.replace(/\r\n/g,"\n");var _3d6="";for(var n=0;n<_3d5.length;n++){var c=_3d5.charCodeAt(n);if(c<128){_3d6+=String.fromCharCode(c);}else{if((c>127)&&(c<2048)){_3d6+=String.fromCharCode((c>>6)|192);_3d6+=String.fromCharCode((c&63)|128);}else{_3d6+=String.fromCharCode((c>>12)|224);_3d6+=String.fromCharCode(((c>>6)&63)|128);_3d6+=String.fromCharCode((c&63)|128);}}}return _3d6;},_utf8_decode:function(_3d9){var _3da="";var i=0;var c=c1=c2=0;while(i<_3d9.length){c=_3d9.charCodeAt(i);if(c<128){_3da+=String.fromCharCode(c);i++;}else{if((c>191)&&(c<224)){c2=_3d9.charCodeAt(i+1);_3da+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=_3d9.charCodeAt(i+1);c3=_3d9.charCodeAt(i+2);_3da+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}}return _3da;}};}if(!dojo._hasResource["epages.lang.array"]){dojo._hasResource["epages.lang.array"]=true;dojo.provide("epages.lang.array");$A=function(_3dd,_3de){return new epages.lang.Array(_3dd,_3de);};epages.lang.Array=function(_3df,_3e0){if(_3e0===undefined){_3e0=false;}var _3e1=[];if(_3df!==undefined){if(_3df._data!==undefined){_3df=_3df._data;}if(_3e0){for(var i=0,_3e3=_3df.length;i<_3e3;i++){_3e1.push(_3df[i]);}}else{_3e1=_3df;}}this._data=_3e1;this.length=_3e1.length;};epages.lang.Array.prototype={_data:undefined,length:0,get:function(_3e4){return this._data[_3e4];},set:function(_3e5,_3e6){this._data[_3e5]=_3e6;},insertAt:function(_3e7,_3e8){if(!_3e7){this.unshift(_3e8);}else{if(_3e7==this.length){this.push(_3e8);}else{var c=this._data;for(var i=this.length;i>_3e7;i--){c[i]=c[i-1];}c[_3e7]=_3e8;this.length=c.length;}}},push:function(){for(var i=0,_3ec=arguments.length;i<_3ec;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,_3ef=arguments.length;i<_3ef;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(_3f1,_3f2){if(_3f2===undefined){return dojo.filter(this._data,_3f1);}return dojo.filter(this._data,_3f1,_3f2);},map:function(_3f3,_3f4){return dojo.map(this._data,_3f3,_3f4);},each:function(_3f5,_3f6){dojo.map(this._data,_3f5,_3f6);return;},match:function(_3f7){var _3f8=[];for(var i=0,_3fa=this._data.length;i<_3fa;i++){var _3fb=this._data[i];if(typeof _3fb.match=="function"&&_3fb.match(_3f7)){_3f8.push(_3fb);}}return _3f8;},exists:function(_3fc){return (this.find(_3fc)!==null);},find:function(_3fd){for(var i=0,_3ff=this._data.length;i<_3ff;i++){if(_3fd===this._data[i]){return i;}}return null;},remove:function(_400){this._data.splice(_400,1);this.length=this._data.length;},unique:function(){var _401=new epages.lang.Array();var i=0;while(i<this._data.length){if(_401.find(this._data[i])==null){_401.push(this._data[i]);i++;}else{this._data.splice(i,1);}}this.length=this._data.length;},equals:function(_403){if(_403.length==this.length){if(typeof _403._data!="undefined"){for(var i=0;i<this.length;i++){if(this._data[i]!==_403._data[i]){return false;}}}else{for(var i=0;i<this.length;i++){if(this._data[i]!==_403[i]){return false;}}}return true;}else{return false;}},merge:function(_405){var c=[];if(dojo.isArray(_405)){c=_405;}else{if(_405._data!==undefined){c=_405._data;}}for(var i=0;i<c.length;i++){this._data.push(c[i]);}this.length=this._data.length;},join:function(_408){return this._data.join(_408);},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(_40b){return this._data.sort(_40b);}};}if(!dojo._hasResource["epages.lang.hash"]){dojo._hasResource["epages.lang.hash"]=true;dojo.provide("epages.lang.hash");$H=function(_40c){return new epages.lang.Hash(_40c);};epages.lang.Hash=function(_40d){this._data=new Object();var data=this._data;if(_40d!==undefined){if(typeof _40d.each=="function"){_40d.each(function(pair){data[pair.key]=pair.value;});}else{for(var key in _40d){data[key]=_40d[key];}}}};epages.lang.Hash.prototype={_data:undefined,data:function(){return this._data;},each:function(_411){for(var key in this._data){var _413=this._data[key];var pair=[key,_413];pair.key=key;pair.value=_413;_411(pair);}},flatten:function(){var _415="";this.each(function(pair){_415+="<element><key>"+pair.key+"</key><value>"+pair.value+"</value></element>\n";});return "<epages.lang.Hash>\n"+_415+"</epages.lang.Hash>\n";},keys:function(){var _417=[];this.each(function(pair){_417.push(pair.key);});return _417;},values:function(){var _419=[];this.each(function(pair){_419.push(pair.value);});return _419;},set:function(key,_41c){this._data[key]=_41c;},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 _420 in this._data){if(_420==key){return true;}}return false;},existsValue:function(_421){return this.find(_421)!==undefined;},find:function(_422){for(var key in this._data){if(this._data[key]===_422){return key;}}return undefined;},toQueryString:function(){var _424=[];this.each(function(pair){if(pair.value!==undefined&&pair.value!=null){var _426=encodeURIComponent(pair.key);if(dojo.isArray(pair.value)){for(var i=0;i<pair.value.length;i++){_424.push(_426+"="+encodeURIComponent(pair.value[i]));}}else{_424.push(_426+"="+encodeURIComponent(pair.value));}}});return _424.join("&");},toString:function(){var _428=[];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)+"\"";}}}}_428.push("\""+epages.string.escapeJavaScript(pair.key)+"\":"+v);});return "{"+_428.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(_42b){for(var i=0;i<epages._windows.length;i++){if(epages._windows[i].dijit!=null&&typeof epages._windows[i].dijit.byId=="function"){var _42d=epages._windows[i].dijit.byId(_42b);if(_42d){return _42d;}}}};}epages.widget.parserClasses=$H();dojo.parser.instantiateOrg=dojo.parser.instantiate;dojo.parser.instantiate=function(_42e){var w=epages.widget.parserClasses;if(epages.Browser.engine!="Presto"){var d=dojo;d.forEach(_42e,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.debug("add this to you script: dojo.%s(\"%s\");","require",type);d.require(type);}});}return this.instantiateOrg(_42e);};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 _434="";_434=this._templateDirectory;_434.path+="/"+this._templateMapping[this.templateType];_434.uri+="/"+this._templateMapping[this.templateType];this.templatePath=_434;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,_436){var _437;var _438=_436!==undefined?dojo.xhrPost:dojo.xhrGet;_438({url:url,handleAs:"xml",sync:true,preventCache:epages.constants.preventCache,load:function(data){_437=data;},content:_436});return _437;},loadAsync:function(url,_43b,_43c){var _43d=_43c!==undefined?dojo.xhrPost:dojo.xhrGet;_43d({url:url,handleAs:"xml",preventCache:epages.constants.preventCache,load:_43b,content:_43c});return;}};}if(!dojo._hasResource["epages.io.translation"]){dojo._hasResource["epages.io.translation"]=true;dojo.provide("epages.io.translation");epages.io.Translation=function(url,_43f){this.translation=new epages.lang.Hash();this.loadedFiles=new epages.lang.Array();if(url!==undefined){if(_43f===undefined){this.load(url);}else{this.loadLocale(url,(_43f!="auto")?_43f:undefined);}}};dojo.extend(epages.io.Translation,epages.io.Xml.prototype);dojo.extend(epages.io.Translation,{translation:null,loadedFiles:null,useLocale:false,load:function(url,_441){if(this.loadedFiles.exists(url)){return true;}if(_441===undefined){_441=false;}var _442=this.loadSync(url);this.loadedFiles.push(url);if(_442===undefined){if(!_441){throw new Error("translation undefined");}return false;}var tags=_442.getElementsByTagName("Translation");for(var _444=0;_444<tags.length;_444++){var _445=tags[_444];if(_445.nodeType==1){var data="";for(var i=0;i<_445.childNodes.length;i++){var _448=_445.childNodes[i];data+=_448.nodeName.match(/notrans/i)?_448.firstChild.data:_448.data;}this.translation.set(_445.getAttribute("Keyword"),data);}}return true;},loadLocale:function(url,_44a){if(_44a===undefined){_44a=dojo.locale;}var _44b=_44a.split("-");var _44c=this.load(url+"."+_44b[0]+".xml",true);if(this.useLocale&&_44b.length>1){this.load(url+"."+_44b[0]+"_"+_44b[1].toUpperCase()+".xml",true);}return _44c;},exists:function(key){return this.translation.existsKey(key)||(this!=epages.io.dictionary&&epages.io.dictionary.translation.existsKey(key));},get:function(key,vars){var _450=this.translation.get(key);if(_450===undefined&&this!=epages.io.dictionary){return epages.io.dictionary.get(key,vars);}return (_450===undefined)?"{"+key+"}":this.replaceVars(_450,vars);},replaceLanguageTags:function(txt){var _452=new RegExp("{(.*?)}","g");return txt.replace(_452,dojo.hitch(this,function(_453,tag){return this.get(tag);}));},replaceVars:function(txt,vars){var _457=new RegExp("#([a-zA-Z_][a-zA-Z0-9_]*)","g");return txt.replace(_457,dojo.hitch(vars,function(_458,_459){return this[_459]!==undefined?this[_459]:_458;}));}});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(_45a,_45b){returnValue=[];for(var i=0;i<_45a.childNodes.length;i++){var e=_45a.childNodes[i];if(e.nodeName==_45b){returnValue.push(e);}}return returnValue;},getElementsByClassName:function(_45e,_45f){if(_45f==null){_45f=dojo.body();}return dojo.query("."+_45e,_45f);},replaceClass:function(node,_461,_462){var _463=new RegExp("(^|\\s+)"+_462+"($|\\s+)","g");node.className=node.className.replace(_463,"$1"+_461+"$2");},removeChildren:function(node){while(node.firstChild){node.removeChild(node.firstChild);}},disableHrefsAndActions:function(_465){if(_465==null){_465=dojo.body();}var _466=_465.getElementsByTagName("a");for(var i=0;i<_466.length;i++){var tag=_466[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 _46a=_465.getElementsByTagName("form");for(var i=0;i<_46a.length;i++){_46a[i].onsubmit=function(){return false;};}var _46b=["input","button","select","option","a"];var _46c=["onchange","onclick","onselect","onkeyup","onkeypress","onmouseup"];for(var j=0;j<_46b.length;j++){var _46e=_465.getElementsByTagName(_46b[j]);for(var i=0;i<_46e.length;i++){var e=_46e[i];for(var k=0;k<_46c.length;k++){var _471=e.getAttribute(_46c[k]);if(_471){if((typeof _471=="string")||(typeof _471=="function")){dojo.connect(e,_46c[k],dojo,"stopEvent");e.setAttribute(_46c[k],"return false;");}}}}}},getHref:function(_472){if(_472.outerHTML){var html=_472.outerHTML;var href=html.match(/\s*href\s*\=\s*["'](.*?)["']/i);if(href&&href[1]){return href[1];}return null;}return _472.getAttribute("href");},isInnerEvent:function(evt,_476){if(!dojo.isArray(_476)){_476=[_476];}var _477=evt.explicitOriginalTarget;for(var i=0;i<_476.length;i++){if(dojo.isDescendant(_477,_476[i])){return true;}}return false;},encodeEntity:function(_479,_47a){if(_47a==null){_47a=false;}var rx=new RegExp("\r?\n","g");var _47c=epages.string.split(_479,rx);var _47d=document.createTextNode("");var node=document.createElement("span");node.appendChild(_47d);for(var i=0;i<_47c.length;i++){_47d.nodeValue=_47c[i];_47c[i]=node.innerHTML;}return _47c.join(_47a?"<br/>\n":"\n");},decodeEntity:function(_480,_481){if(_481==null){_481=false;}var node=document.createElement("span");node.innerHTML=_480;var _483=node.firstChild.nodeValue;if(_481){_483=_483.replace(/\<br\s*\/?\>\r?\n/gi,"\n");}return _483;},insertAtCursor:function(_484,_485,doc){if(doc===undefined){doc=window.document;}var _487=$(_485,doc);if(doc.selection){_487.focus();sel=doc.selection.createRange();sel.text=_484;}else{if(_487.selectionStart||_487.selectionStart=="0"){var _488=_487.selectionStart;var _489=_487.selectionEnd;_487.value=_487.value.substring(0,_488)+_484+_487.value.substring(_489,_487.value.length);_487.selectionStart=_488+_484.length;_487.selectionEnd=_488+_484.length;}else{_487.value+=_484;}}epages.event.fire(_487,"change");}});}if(!dojo._hasResource["epages.html.element"]){dojo._hasResource["epages.html.element"]=true;dojo.provide("epages.html.element");epages.html.Element=function(_48a){if(_48a===undefined){throw new Error("epages.html.Element: initialize without object");}else{if(typeof _48a=="string"){_48a=$(_48a);if(_48a===undefined){throw new Error("epages.html.Element: initialize without object, unknown element id");}}}this.object=_48a;};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(_48b){var type=this.object.type;switch(type){case "checkbox":case "radio":var _48d=this.object.form.elements;var name=this.object.name;dojo.forEach(_48d,function(_48f){if(_48f.type==type&&_48f.name==name&&_48f.value==_48b){_48f.checked=true;}});break;default:this.object.value=_48b;}},connectChangeEvent:function(_490){dojo.connect(this.object,(this.object.type=="radio"?"onclick":"onchange"),_490);},callOnChange:function(){epages.event.fire(this.object,"change");},firstElement:function(_491,_492){var _493=undefined;var data=this.object.childNodes;for(var _495=0;_495<data.length&&_493===undefined;_495++){if(_491!=1&&data[_495].nodeType==_491||data[_495].nodeType==1&&data[_495].nodeName==_492){_493=data[_495];}}return (_493);},firstComment:function(){var _496=this.firstElement(8,"COMMENT");return (_496===undefined?undefined:_496.data);},getIframeDocument:function(_497){if(_497===undefined&&this.object.tagName.toLowerCase()=="iframe"){_497=this.object;}if(_497===undefined){return _497;}return (_497.contentDocument===undefined)?_497.contentWindow.document:_497.contentDocument;},addClassName:function(_498){dojo.addClass(this.object,_498);},removeClassName:function(_499){dojo.removeClass(this.object,_499);},changeClassName:function(_49a,_49b){epages.html.replaceClass(this.object,_49b,_49a);},getAbsolutePosition:function(_49c){var node=this.object;var x=0,y=0;while(node&&node!=_49c){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}node=node.offsetParent;}return {"x":x,"y":y};},getPositionToParent:function(_4a0){var node=this.object;var x=0,y=0;var _4a4=dojo.getComputedStyle(_4a0).position;if(_4a4!="relative"&&_4a4!="absolute"){console.warn("parentNode should be an offsetParent (position: absolute or relative) in "+this.delcaredClass);}var _4a5=undefined;while(node!=undefined&&_4a0!==node){if(_4a5!==node.offsetParent){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}_4a5=node.offsetParent;}node=node.parentNode;}return {"x":x,"y":y};},getRelativePosition:function(){var node=this.object;var x=0,y=0;var _4a9=dojo.getComputedStyle(node).position;while(node!=undefined&&_4a9!="relative"&&_4a9!="absolute"){if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){x+=node.offsetLeft;y+=node.offsetTop;}node=node.offsetParent;_4a9=dojo.getComputedStyle(node).position;}return {"x":x,"y":y};},setCss:function(_4aa){for(var _4ab in _4aa){this.object.style[_4ab]=_4aa[_4ab];}},makeWidgets:function(){dojo.parser.parse(this.object);},toQueryString:function(){return encodeURIComponent(this.object.name)+"="+encodeURIComponent(this.get());},addEventListener:function(_4ac,_4ad,_4ae){if(_4ae==null){_4ae=false;}_4ac=_4ac.replace(/^on/,"");if(this.object.addEventListener){return this.object.addEventListener(_4ac,_4ad,_4ae);}else{if(this.object.attachEvent){return this.object.attachEvent("on"+_4ac,_4ad);}}throw new Error("element.addEventListener: could not add event listener for event "+_4ac);},removeEventListener:function(_4af,_4b0,_4b1){if(_4b1==null){_4b1=false;}_4af=_4af.replace(/^on/,"");if(this.object.removeEventListener){return this.object.removeEventListener(_4af,_4b0,_4b1);}else{if(this.object.detachEvent){return this.object.detachEvent("on"+_4af,_4b0);}}console.debug("element.removeEventListener: could not remove event listener for event "+_4af+(typeof this.object.detachEvent));return false;},replaceChild:function(_4b2,_4b3){_4b2=this._changeNodeDocument(_4b2,_4b3.ownerDocument);this.object.replaceChild(_4b2,_4b3);},appendChild:function(_4b4){_4b4=this._changeNodeDocument(_4b4,this.object.ownerDocument);this.object.appendChild(_4b4);},_changeNodeDocument:function(node,_4b6){if(node.ownerDocument!=_4b6&&node.outerHTML!=null){var _4b7=node.outerHTML;node=_4b6.createElement("span");node.outerHTML=_4b7;}return node;},getLabel:function(){var id=this.object.id;if(id==null){return;}var _4b9=this.object.ownerDocument.getElementsByTagName("label");for(var i=0;i<_4b9.length;i++){if(_4b9[i].htmlFor==id){return _4b9[i].innerHTML;}}}});$E=function(_4bb){return new epages.html.Element(_4bb);};}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 _4bf=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache,this.translation);var node;if(dojo.isString(_4bf)){var _4c1=this.declaredClass,_4c2=this;var tstr=dojo.string.substitute(_4bf,this,function(_4c4,key){if(key.charAt(0)=="!"){_4c4=_4c2[key.substr(1)];}if(typeof _4c4=="undefined"){throw new Error(_4c1+" template:"+key);}if(!_4c4){return "";}return key.charAt(0)=="!"?_4c4:_4c4.toString().replace(/"/g,"&quot;");},this);node=this.createNodesFromText(tstr);}else{node=_4bf.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _4c6=dojo.parser,qry,attr;if(_4c6._query!="[dojoType]"){qry=_4c6._query;attr=_4c6._attrName;_4c6._query="[dojoType]";_4c6._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup}));if(qry){_4c6._query=qry;_4c6._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},getCachedTemplate:function(_4cc,_4cd,_4ce,_4cf){var _4d0=dijit._Templated._templateCache;var key=_4cd||_4cc;var _4d2=_4d0[key];if(_4d2){return _4d2;}if(!_4cd){_4cd=dojo.cache(_4cc,{sanitize:true});}_4cd=dojo.string.trim(_4cd);if(_4cd.match(/\$\{([^\}]+)\}/g)||_4ce){return (_4d0[key]=_4cd);}else{return (_4d0[key]=this.createNodesFromText(_4cd));}}});}if(!dojo._hasResource["epages.event.interval"]){dojo._hasResource["epages.event.interval"]=true;dojo.provide("epages.event.interval");epages.event.interval={_container:[],_setIntervalSecure:function(_4d3,task,_4d5){if(this._container[_4d3]!=null){setTimeout(dojo.hitch(this,function(){this._setIntervalSecure(_4d3,task,_4d5);}),_4d5);task();}},set:function(task,_4d7){var _4d8=this._container.length;this._container.push(_4d8);setTimeout(dojo.hitch(this,function(){this._setIntervalSecure(_4d8,task,_4d7);}),_4d7);return _4d8;},clear:function(_4d9){this._container[_4d9]=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 class=\"Title\" dojoAttachPoint=\"titleNode\"></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,_4db){return setTimeout(dojo.hitch(this,task),_4db);},_getAlphaImage:function(_4dc,_4dd){var _4de=document.createElement("span");var _4df=document.createElement("span");var _4e0="";if(epages.Browser.engine=="MSIE"&&_4dc.match(".png")){_4dd=_4dd?"scale":"crop";_4e0="class='AlphaImage'";_4df.style.zoom="1";_4df.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4dc+"', sizingMethod='"+_4dd+"')";}var _4e1="<img "+_4e0+" alt='' src='"+_4dc+"' onerror=''/>";_4df.innerHTML=_4e1;_4de.appendChild(_4df);_4de.className="Image";return _4de;},_drawControlBar:function(){if(this.tiny){this.controlNode.className="ControlBarMini";}if(!this.showControls){this.controlNode.style.display="none";}var _4e2=0;if(!this.overview||!this.showDescription){_4e2=1;}else{if(!this.overview&&!this.showDescription){_4e2=2;}}var _4e3=this.tiny?document.createElement("div"):this._getAlphaImage(this.controlBarImages[0][_4e2]);_4e3.className="ControlBarBg";this.controlNode.appendChild(_4e3);if(!this.overview&&this.showControls){_4e3.parentNode.style.width=(_4e3.offsetWidth-(this.tiny?16:32))+"px";}if(!this.showDescription&&this.showControls){_4e3.parentNode.style.width=(_4e3.offsetWidth-(this.tiny?16:32))+"px";}var _4e4=this._getAlphaImage(this.controlBarImages[1][this.tiny?1:0]);_4e4.className="SlideshowButton";this.controlNode.appendChild(_4e4);dojo.connect(_4e4,"onclick",this,"_rewindClick");var _4e5=this._getAlphaImage(this.controlBarImages[2][this.tiny?1:0]);_4e5.className="SlideshowButton";if(this.stopped){_4e5.style.position="absolute";_4e5.style.visibility="hidden";}this.controlNode.appendChild(_4e5);dojo.connect(_4e5,"onclick",this,"_pauseClick");this._pauseIcon=_4e5;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);dojo.connect(playIcon,"onclick",this,"_playClick");this._playIcon=playIcon;if(this.overview){var _4e6=this._getAlphaImage(this.controlBarImages[4][this.tiny?1:0]);_4e6.className="SlideshowButton";this.controlNode.appendChild(_4e6);dojo.connect(_4e6,"onclick",this,"_overviewClick");}if(this.showDescription){var _4e7=this._getAlphaImage(this.controlBarImages[5][this.tiny?1:0]);_4e7.className="SlideshowButton";this.controlNode.appendChild(_4e7);dojo.connect(_4e7,"onclick",this,"_detailsClick");}var _4e8=this._getAlphaImage(this.controlBarImages[6][this.tiny?1:0]);_4e8.className="SlideshowButton";this.controlNode.appendChild(_4e8);dojo.connect(_4e8,"onclick",this,"_forwardClick");dojo.style(this.controlNode,"opacity",0);return [_4e4,playIcon,_4e5,_4e6?_4e6:null,_4e7?_4e7:null,_4e8];},_controlBarButtonOver:function(_4e9){dojo.addClass(_4e9.currentTarget,"Highlighted");document.onselectstart=function(){return false;};},_controlBarButtonOut:function(_4ea){dojo.removeClass(_4ea.currentTarget,"Highlighted");dojo.removeClass(_4ea.currentTarget,"Hit");document.onselectstart=function(){return true;};},_controlBarButtonDown:function(_4eb){dojo.addClass(_4eb.currentTarget,"Hit");},_controlBarButtonUp:function(_4ec){dojo.removeClass(_4ec.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(_4ed){var _4ee=_4ed.currentTarget;_4ee.src=this.errorImagePath;_4ee.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(_4ef){if(typeof (_4ef)=="object"){_4ef=null;}this._pauseClick();if(this._loadedIndex>=this.showIndex&&!this._overviewArea){var _4f0=document.createElement("div");_4f0.className="OverviewBackground";dojo.style(_4f0,"opacity",0);dojo.addClass(dojo.body(),"OverviewAreaVisible");_4f0.innerHTML="<div class='Background'></div>";var _4f1=document.createElement("div");_4f1.className="OverviewArea";var info=this._images[this.showIndex];if(!info){var 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 _4f3=this._images[this.showIndex].imageTable.cloneNode(true);with(_4f3.getElementsByTagName("b")[0]){innerHTML="";appendChild(this._getAlphaImage(epages.themeUrl("images")+"/plain.gif"));}_4f1.appendChild(_4f3);var _4f4=document.createElement("div");_4f4.className="BackgroundEventLayer";_4f1.getElementsByTagName("td")[0].appendChild(_4f4);var _4f5=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_rewind_overview.png");_4f5.className="Image SlideshowButton";dojo.connect(_4f5,"onclick",this,"_setPrevImage");dojo.connect(_4f5,"onmouseover",this,"_controlBarButtonOver");dojo.connect(_4f5,"onmouseout",this,"_controlBarButtonOut");dojo.connect(_4f5,"onmousedown",this,"_controlBarButtonDown");dojo.connect(_4f5,"onmouseup",this,"_controlBarButtonUp");var _4f6=document.createElement("i");_4f6.appendChild(_4f5);_4f6.className="OverviewRewindButton";var _4f7=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_forward_overview.png");_4f7.className="Image SlideshowButton";dojo.connect(_4f7,"onclick",this,"_setNextImage");dojo.connect(_4f7,"onmouseover",this,"_controlBarButtonOver");dojo.connect(_4f7,"onmouseout",this,"_controlBarButtonOut");dojo.connect(_4f7,"onmousedown",this,"_controlBarButtonDown");dojo.connect(_4f7,"onmouseup",this,"_controlBarButtonUp");var _4f8=document.createElement("i");_4f8.appendChild(_4f7);_4f8.className="OverviewForwardButton";var _4f9=this._getAlphaImage(epages.themeUrl("images")+"/layer_img_closebutton.png");_4f9.className="Image SlideshowButton";_4f9.style.clip="rect(0, 40px, 20px, 0)";dojo.connect(_4f9,"onclick",this,"_destroyOverview");dojo.connect(_4f9,"onmouseover",this,"_controlBarButtonOver");dojo.connect(_4f9,"onmouseout",this,"_controlBarButtonOut");var _4fa=document.createElement("i");_4fa.appendChild(_4f9);_4fa.className="OverviewCloseButton";var _4fb=document.createElement("b");_4fb.className="OverviewImageCounter";if(!this.showMisc){_4fb.style.display="none";}dojo.style(_4f1,"background","url("+this.loaderImagePath+") center no-repeat");dojo.style(_4f1.getElementsByTagName("span")[0],"opacity",0);var _4fc=info.imageLarge?info.imageLarge:info.image;var _4fd=_4f1.getElementsByTagName("img")[0];_4fd.src=_4ef||_4fc;_4fd.style.height="auto";_4fd.style.width="auto";if(_4fd.src.match(".ico")||_4fd.src.match(".cur")){_4fd.parentNode.style.filter="fade()";}else{_4fd.style.filter="alpha(opacity=0)";_4fd.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4fd.src+"', sizingMethod='scale')";}dojo.body().appendChild(_4f0);dojo.body().appendChild(_4f1);var _4fe=true;var _4ff=this._images[0];for(var i=0;i<this._images.length;i++){if(this._images[i].imageLarge!=_4ff.imageLarge){_4fe=false;break;}else{_4ff=this._images[i];}}if(this._images.length>1&&!_4ef&&!_4fe){if(this.showControls){_4f1.getElementsByTagName("span")[1].appendChild(_4f6);_4f1.getElementsByTagName("span")[1].appendChild(_4f8);}_4f1.getElementsByTagName("span")[1].appendChild(_4fb);}_4f1.getElementsByTagName("span")[1].appendChild(_4fa);if(_4fd.complete){this._delayExec(this._drawOverviewImage,1);}else{dojo.connect(_4fd,"onload",this,"_drawOverviewImage");}dojo.connect(_4fd,"onerror",this,"_drawErrorImage");dojo.connect(_4f4,"onclick",this,"_destroyOverview");_4f0.style.zoom=1;dojo.style(_4f0,"opacity",1);this._overviewBackground=_4f0;this._overviewArea=_4f1;this._overviewImageCounter=_4fb;this._changeOverviewDimensions();}},_changeOverviewDimensions:function(){if(this._overviewArea!=null){var _501=this._overviewArea.getElementsByTagName("img")[0];var _502=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;var _503=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;var _504=0;if(_502>dojo.body().offsetHeight+10){_504=_502;}else{_504=dojo.body().offsetHeight+10;}this._overviewBackground.style.height=_504+"px";this._overviewArea.style.height=_502+"px";setTimeout(dojo.hitch(this,function(){var _505=this._images[this.showIndex]._overviewWidth;var _506=this._images[this.showIndex]._overviewHeight;if(_505&&_506&&(_505>_503-50||_506>_502-50)){if((_503/_502)/(_505/_506)>1){_501.style.height=(_502-50)+"px";_501.style.width="auto";}else{_501.style.width=(_503-50)+"px";_501.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 _507=dojo.body().pageYOffset?dojo.body().pageYOffset:document.documentElement.scrollTop;dojo.fx.slideTo({node:this._overviewArea,top:_507,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 _508=this._overviewArea.getElementsByTagName("img")[0];if(!this._images[this.showIndex]._overviewWidth){_508.style.position="absolute";this._images[this.showIndex]._overviewWidth=_508.width;this._images[this.showIndex]._overviewHeight=_508.height;_508.style.position="static";}if(this._images[this.showIndex]._overviewHeight<100){_508.style.marginTop=(45-this._images[this.showIndex]._overviewHeight/2)+"px";}else{_508.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 _509=this._images[this.showIndex].image.match("dijit/themes/epages/images/plain.gif")||this._images[this.showIndex].image.match("transparentpixel.gif");if(this._globalOverview&&!_509){this._overviewClick();}},_showImageDetails:function(){var info=this._images[this.showIndex];this.descriptionNode.innerHTML=info.description;this.dateNode.innerHTML=info.date;this.titleNode.innerHTML=info.name;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(_50b){if(this._images[_50b]){if(this._overviewArea){if(!this._oldShowIndex){this._oldShowIndex=this.showIndex;}var _50c=this._overviewArea.getElementsByTagName("span")[0];var _50d=_50c.getElementsByTagName("img")[0];dojo.style(this._overviewArea,"background","url("+this.loaderImagePath+") center no-repeat");dojo.fadeOut({node:_50c,duration:this.protraction,easing:this._fadeEasing}).play();this._delayExec(function(){var info=this._images[this.showIndex];dojo.style(_50c,"opacity",0);var _50f=info.imageLarge||info.image;var _510=this._overviewArea.getElementsByTagName("img")[0];_510.src=_50f;_510.style.width="auto";_510.style.height="auto";_510.style.filter="alpha(opacity=0)";_510.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_50f+"', sizingMethod='crop')";if(_510.complete){this._delayExec(this._drawOverviewImage,1);}},this.protraction);}else{var _511=this._images[this.showIndex].imageTable.getElementsByTagName("b")[0];var _512=this._images[_50b].imageTable.getElementsByTagName("b")[0];if(_511.offsetWidth==0){this._pauseClick();}else{var _513=_512.getElementsByTagName("img")[0];if(typeof (_513)!="undefined"){if(this._images[_50b].fit=="true"||this._images[_50b].fit==true){if(_513.offsetHeight>_513.offsetWidth){_513.style.height=(this.mainNode.offsetHeight)+"px";if(_513.offsetWidth>=this.mainNode.offsetWidth){_513.style.height="auto";_513.style.width=(this.mainNode.offsetWidth)+"px";}}else{_513.style.width=(this.mainNode.offsetWidth)+"px";if(_513.offsetHeight>=this.mainNode.offsetHeight){_513.style.width="auto";_513.style.height=(this.mainNode.offsetHeight)+"px";}}}else{if(this._images[_50b].fit==null){this._delayExec(function(){if(_513.offsetHeight>_513.offsetWidth){if(_513.offsetHeight>this.mainNode.offsetHeight){_513.style.height=(this.mainNode.offsetHeight)+"px";_513.style.width="auto";}}else{if(_513.offsetWidth>this.mainNode.offsetWidth){_513.style.width=(this.mainNode.offsetWidth)+"px";_513.style.height="auto";}}},1);}}}if(this.showIndex!=_50b){dojo.fadeOut({node:_511,duration:this.protraction,easing:this._fadeEasing}).play();this._delayExec(function(){this._fadeOutHide(_511);},this.protraction);}dojo.style(_512,"visibility","visible");dojo.fadeIn({node:_512,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[_50b].imageTable.style.zIndex=1;}}}this.showIndex=_50b;},_fadeOutHide:function(_514){if(dojo.style(_514,"opacity")==0){dojo.style(_514,"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 _516=info.imageTable;this.mainNode.style.background="transparent url("+this.loaderImagePath+") center no-repeat";_516.style.zIndex=0;var _517=_516.getElementsByTagName("b")[0];_517.style.zoom="1";dojo.style(_517,"opacity",0);dojo.style(_517,"visibility","hidden");_517.appendChild(this._getAlphaImage(info.image,true));var _518=_517.getElementsByTagName("img")[0];dojo.connect(_518,"onerror",this,"_drawErrorImage");if(_518.complete){this._delayExec(this._loadImagesSoft,1);}else{info.onloadHandle=dojo.connect(_518,"onload",this,"_loadImagesSoft");}},_createImageTable:function(){var _519=this.imageTable.cloneNode(true);_519.className="ImageTable";this.imageTable.parentNode.appendChild(_519);return _519;},_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(_51b){this._overviewClick(_51b);},setImage:function(_51c){this._pauseClick();this._setImage(_51c);},setNextImage:function(){this._setNextImage();},setPrevImage:function(){this._setPrevImage();},addImage:function(_51d,_51e){if(_51d.image){var _51f;for(var i=0;i<this._images.length;i++){if(this._images[i].image==_51d.image){_51f=i;}}if(!_51f){this._images.push(_51d);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(_51f);}}},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 _521=this._drawControlBar();for(var i=0;i<_521.length;i++){if(_521[i]){dojo.connect(_521[i],"onmouseover",this,"_controlBarButtonOver");dojo.connect(_521[i],"onmouseout",this,"_controlBarButtonOut");dojo.connect(_521[i],"onmousedown",this,"_controlBarButtonDown");dojo.connect(_521[i],"onmouseup",this,"_controlBarButtonUp");}}if(this.srcNodeRef){if(this.srcNodeRef.className){this.mainNode.parentNode.parentNode.className+=" "+this.srcNodeRef.className;}var _523=this.srcNodeRef.getElementsByTagName("ins");for(var i=0;i<_523.length;i++){var _524={};_524.image=_523[i].getAttribute("image")||epages.themeUrl("images")+"/plain.gif";_524.imageLarge=_523[i].getAttribute("imageLarge");_524.name=_523[i].getAttribute("name");_524.description=_523[i].innerHTML;_524.date=_523[i].getAttribute("date");_524.time=_523[i].getAttribute("time");_524.fit=_523[i].getAttribute("fit");_524.imageTable=this._createImageTable();this._images.push(_524);}}this.showIndex=new Number(this.showIndex);this._loadedIndex=this.showIndex-1;if(this._loadedIndex==-1){this._loadedIndex=this._images.length;}dojo.connect(this.mainNode,"onmouseover",this,"_showControlBar");dojo.connect(this.mainNode,"onmouseout",this,"_hideControlBar");if(this.imageClickOverview&&this.overview){dojo.connect(this.miscNode.offsetHeight?this.miscNode:this.mainNode,"onclick",this,"_checkGlobalOverview");dojo.connect(this.controlNode,"onmouseover",dojo.hitch(this,function(){this._globalOverview=false;}));dojo.connect(this.controlNode,"onmouseout",dojo.hitch(this,function(){this._globalOverview=true;}));}else{this.mainNode.style.cursor="default";}dojo.connect(window,"onscroll",this,"_reAlignOverview");dojo.connect(window,"onresize",this,"_changeOverviewDimensions");dojo.connect(document,"onkeyup",this,"_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,_526,_527,_528){if(_528===null){_528=undefined;}if(_527=="PopUp"){_527="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";}if(_527=="PopUpPrint"){_527="width=790, height=580, toolbar=yes, status=no, resizable=yes, menubar=yes, location=no, scrollbars=yes";}if(_527=="RTE"||_526=="RTE"){_527="width=996, height=700, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";}if(_527=="HelpWindow"){_527="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";_526="WWHFrame";}if(_527=="StylePreview"){_527="width=470, height=310, toolbar=no, status=no, resizable=no, menubar=no, location=no, scrollbars=no";_526="StylePreview";}if(_527=="DetailedImageView"){_527="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";_526="StylePreview";}if(_527=="CheckLink"){if(URL.indexOf("?")!=0){splittedString=URL.split("//");if(splittedString.length==1){URL="http://"+URL;}}else{if(_528!=undefined){URL=_528+URL;}}_527="toolbar=yes, status=yes, resizable=yes, menubar=yes, location=yes, scrollbars=yes";}if(URL!="http://"){var _529=window.open(URL,_526,_527);if(_529){_529.focus();}}return _529;};window.linkCorrection=function(_52a){var _52b=_52a.value;var _52c=_52b.split("//");if(_52b.indexOf("?")!=0){if(_52c.length==1){_52a.value="http://"+_52b;epages.event.fire(_52a,"change");}}};window.OnCheckAll=function(form,name,_52f,_530){dojo.addClass(form.getElementsByTagName("tbody")[0],"HideElement");for(var i=0;i<form.length;i++){var _532=form[i];if(_532.nodeName=="INPUT"){if((_532.type=="checkbox"||_532.className.match("Checkbox"))&&_532.name==name&&!_532.disabled&&_532.checked!=_52f){_532.checked=_52f;if(!_530){if($$(_532.id)){$$(_532.id).setChecked(_52f);}if(_52f){dojo.addClass(_532.parentNode.parentNode,"RowSelected");}else{dojo.removeClass(_532.parentNode.parentNode,"RowSelected");}}}}}dojo.removeClass(form.getElementsByTagName("tbody")[0],"HideElement");};window.DeactivateButton=function(_533){if(_533.className.match("CustomButton")){fakeButton=_533.getElementsByTagName("*")[0];fakeButton.disabled="true";dojo.addClass(_533,"Disabled");}else{if(_533.getAttribute("widgetid")){$$(_533.getAttribute("widgetid")).disable();}else{_533.disabled="true";dojo.addClass(_533,"Disabled");}}};window.EnableButton=function(_534){if(_534.className.match("CustomButton")){fakeButton=_534.getElementsByTagName("*")[0];fakeButton.disabled="false";}else{if(_534.getAttribute("widgetid")){$$(_534.getAttribute("widgetid")).enable();}else{_534.disabled="false";}}dojo.removeClass(_534,"Disabled");};window.DisableLink=function(Link){if($(Link)){$(Link).className+=" Opacity40";$(Link).href="javascript:void(0)";$(Link).style.cursor="default";}};window.changeImage=function(_536,_537,_538){$(_536).src=_537;if(_538){$(_536).alt=_538;}};window.OptionToChangeAction=function(_539){_539.form.ChangeAction.value=_539.options[_539.selectedIndex].value;};window.toggleTopic=function(el,_53b,_53c){if(el.parentNode){var _53d=el.parentNode.className;if(_53d.match("Closed")){epages.html.replaceClass(el.parentNode,"Open","Closed");}else{epages.html.replaceClass(el.parentNode,"Closed","Open");}if(_53b&&_53c){if(el.innerHTML==_53b){el.innerHTML=_53c;}else{el.innerHTML=_53b;}}}};window.toggleDisplay=function(_53e){if($(_53e).className!="HideElement"){$(_53e).className="HideElement";}else{$(_53e).className="ShowElement";}};window.hideElement=function(_53f){if(!$(_53f).className.match(/HideElement/)){$(_53f).className+=" HideElement";}};window.showElement=function(_540){$(_540).className=$(_540).className.replace(/HideElement/,"");};window.changeDataById=function(_541,id){myobject=$(id);if(myobject.firstChild){myobject.firstChild.data=_541;}else{mydata=document.createTextNode(_541);myobject.appendChild(mydata);}};window.getSelectedData=function(_543){if(_543){myNode=_543.firstChild;while(myNode!=null){if(myNode.value==_543.value&&myNode.value!=""){return myNode.firstChild.data;}myNode=myNode.nextSibling;}return "";}};window.checkBrowser=function(){var _544=navigator.userAgent.toLowerCase();this.isIE=(_544.indexOf("msie")!=-1);this.isGecko=(_544.indexOf("gecko")!=-1&&_544.indexOf("safari")==-1);this.isOpera=(_544.indexOf("opera")!=-1);this.isRTECompatible=(this.isIE||this.isGecko);};var browser=new checkBrowser();window.disableFormFieldsInElement=function(_545){userattrinputs=$(_545).getElementsByTagName("input");for(i=0;i<userattrinputs.length;i++){userattrinputs[i].disabled=true;if($(_545).parentNode.className.match("Cropper")){$(_545).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=$(_545).getElementsByTagName("textarea");for(i=0;i<userattrtextareas.length;i++){userattrtextareas[i].disabled=true;if($(_545).parentNode.className.match("Cropper")){$(_545).parentNode.className+=" Disabled";}userattrtextareas[i].className=userattrtextareas[i].className+" Disabled";}userattrselects=$(_545).getElementsByTagName("select");for(i=0;i<userattrselects.length;i++){userattrselects[i].disabled=true;if($(_545).parentNode.className.match("Cropper")){$(_545).parentNode.className+=" Disabled";}userattrselects[i].className=userattrselects[i].className+" Disabled";}};window.enableFormFieldsInElement=function(_546){userattrinputs=$(_546).getElementsByTagName("input");for(i=0;i<userattrinputs.length;i++){userattrinputs[i].disabled=false;if($(_546).parentNode.className.match("Cropper")){$(_546).parentNode.className=$(_546).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=$(_546).getElementsByTagName("textarea");for(i=0;i<userattrtextareas.length;i++){userattrtextareas[i].disabled=false;if($(_546).parentNode.className.match("Cropper")){$(_546).parentNode.className=$(_546).parentNode.className.replace(/Disabled/g,"");}userattrtextareas[i].className=userattrtextareas[i].className.replace(/ Disabled/,"");userattrtextareas[i].className=userattrtextareas[i].className.replace(/Disabled/,"");}userattrselects=$(_546).getElementsByTagName("select");for(i=0;i<userattrselects.length;i++){userattrselects[i].disabled=false;if($(_546).parentNode.className.match("Cropper")){$(_546).parentNode.className=$(_546).parentNode.className.replace(/Disabled/g,"");}userattrselects[i].className=userattrselects[i].className.replace(/ Disabled/,"");userattrselects[i].className=userattrselects[i].className.replace(/Disabled/,"");}};window.disableFormFieldById=function(_547){var _548=true;if(disableFormFieldById.arguments.length>1){_548=disableFormFieldById.arguments[1];}$(_547).disabled=true;if($(_547).parentNode.className.match("Cropper")){$(_547).parentNode.className+=" Disabled";}if(_548){dojo.addClass($(_547),"Disabled");}};window.enableFormFieldById=function(_549){var _54a=true;if(enableFormFieldById.arguments.length>1){_54a=enableFormFieldById.arguments[1];}$(_549).disabled=false;if($(_549).parentNode.className.match("Cropper")){$(_549).parentNode.className=$(_549).parentNode.className.replace(/Disabled/g,"");}if(_54a){dojo.removeClass($(_549),"Disabled");}};window.allowURLUpload=function(){var _54b=$("FileUpload").value;if(_54b.match(/http:../)||_54b.match(/https:../)){$("FileUpload2").value=_54b;$("FileUpload2").disabled=false;$("FileUpload").disabled=true;}};window.allowBulkURLUpload=function(_54c){var _54d=document.getElementsByName(_54c);for(var i=0;i<_54d.length;i++){var _54f=_54d[i].value;var _550=_54d[i].type;var _551=_54d[i].id;if((_54f.match(/http:../)||_54f.match(/https:../))&&_550!="hidden"){$(_551.replace(/FileName/,"URLUpload")).value=_54f;$(_551.replace(/FileName/,"URLUpload")).disabled=false;$(_551).disabled=true;}}};window.setValue=function(_552,_553){$(_553).value=_552;};window.autofillAddress=function(_554){_554.form.DisplayName.value=_554.form.FirstName.value+" "+_554.form.LastName.value;if(_554.form.UserAlias){_554.form.UserAlias.value=_554.form.FirstName.value.slice(0,1)+_554.form.LastName.value;}if(_554.form.UserName){_554.form.UserName.value=_554.form.FirstName.value+" "+_554.form.LastName.value;}};window.SFautofillAddress=function(_555,_556,_557){$(_557).value=$(_555).value+" "+$(_556).value;};window.setCurrentDate=function(_558,_559){$(_559).value=_558;};window.updateStyleSheetRule=function(rule,text){text+=" !important";if(browser.isIE){var _55c=rule.split(/,\s+/);var _55d=document.styleSheets[document.styleSheets.length-1];for(var i=0;i<_55c.length;i++){_55d.addRule(_55c[i],text);}}else{var _55f=document.getElementsByTagName("style");_55d=_55f[_55f.length-1];_55d.innerHTML+="\n"+rule+"{"+text+";}";}};window.showNotAllowedDialog=function(_560,_561){dojo["require"]("epages.uimessagehandler");var _562=$E(_560).getAbsolutePosition();var _563=document.getElementsByTagName("body")[0].clientWidth;var _564=document.getElementsByTagName("body")[0].clientHeight;var _565="top";var xoff=0;var yoff=0;if(_562.x>(_563/2)){_565="right";}if(_562.y>(_564-30)){_565="bottom";yoff=0;xoff=0;}if(_565=="top"){xoff=10;yoff=_560.offsetHeight;}if(_565=="right"||_565=="left"){yoff=_560.offsetHeight/2;}dojo.publish("uimessage/show",["",_561,"Bubble",{typeClass:"Warning Wide",sizeClass:"Medium",x:_562.x+xoff,y:_562.y+yoff,orientation:_565}]);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(_568,_569){this.areaName.push(_568);this.areaId.push(_569);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;i<this.areaName.length;i++){var _56b;if(this.areaActivated[i]){_56b=document.createElement("a");_56b.href="javascript:epagesDialog.toggleArea('"+this.areaName[i]+"');";_56b.name=this.areaName[i];_56b.id=this.areaName[i];_56b.className="HideArea";}else{_56b=document.createElement("span");_56b.name=this.areaName[i];_56b.id=this.areaName[i];_56b.className="disabled";}var _56c=document.createTextNode(this.areaDisplayName[i]);_56b.appendChild(_56c);$("ToggleTabpageArea").appendChild(_56b);}};this.showArea=function(_56d){areaId="";for(i=0;i<this.areaName.length;i++){if(this.areaName[i]==_56d){areaId=this.areaId[i];}}try{dojo.removeClass(document.getElementsByName(_56d)[0],"HideArea");dojo.addClass(document.getElementsByName(_56d)[0],"ShowArea");}catch(ex){dojo.removeClass($(_56d),"HideArea");dojo.addClass($(_56d),"ShowArea");}$(areaId).className="ShowElement";if(browser.isIE){setTimeout("$('"+areaId+"').className='ShowElement';",10);}actualDialogArea=_56d;};this.hideArea=function(_56e){areaId="";for(i=0;i<this.areaName.length;i++){if(this.areaName[i]==_56e){areaId=this.areaId[i];}}dojo.removeClass(document.getElementsByName(_56e)[0],"ShowArea");dojo.addClass(document.getElementsByName(_56e)[0],"HideArea");$(areaId).className="HideElement";actualDialogArea="";};this.toggleArea=function(_56f){this.showArea(_56f);for(i=0;i<this.areaName.length;i++){tempName=this.areaName[i];tempId=this.areaId[i];if(_56f!=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(_570){if(document.getElementsByName(_570)[0].className.match("HideArea")){this.showArea(_570);}else{this.hideArea(_570);}};this.selectArea=function(_571){this.showArea(_571);for(i=0;i<this.areaName.length;i++){tempName=this.areaName[i];tempId=this.areaId[i];if(_571!=tempName){dojo.removeClass(document.getElementsByName(tempName)[0],"ShowArea");dojo.addClass(document.getElementsByName(tempName)[0],"HideArea");$(tempId).className="HideElement";}}};};window.appendDialogArea=function(_572){if(actualDialogArea!=""){_572.action+="&DialogArea="+actualDialogArea;}};actualDialogArea="";epagesDialog=new DialogArea();window.WizardPages=function(){this.TabId=new Array();this.AreaId=new Array();this.addPage=function(_573,_574){this.TabId.push(_573);this.AreaId.push(_574);};this.showStep=function(_575){ActualWizardPage=_575;window.scrollTo(0,0);$(this.TabId[_575]).className="selected";$(this.TabId[_575]).getElementsByTagName("span")[0].firstChild.className="selected";try{$(this.TabId[_575]).getElementsByTagName("span")[0].appendChild(oHelpTopic);}catch(ex){}$(this.AreaId[_575]).className="ShowElement";for(i=0;i<this.TabId.length;i++){if(i!=_575){$(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(_576){(new epages.widget.Slides).openOverview(_576);};window.showMore=function(_577,_578){if(_578){_578.style.display="none";}dojo.fx.wipeIn({node:$(_577),duration:200}).play();};window.showLess=function(_579){dojo.fx.wipeOut({node:$(_579),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(_57b){var _57c=this._counter;this._hash.set("key"+_57c,_57b);do{this._counter++;}while(this._hash.existsKey("key"+this._counter));return _57c;},set:function(key,_57e){if(this._hash.existsKey("key"+key)){this._hash.set("key"+key,_57e);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,_581){if(o===undefined&&func===undefined&&_581===undefined){return;}else{if(_581===undefined){return dojo.hitch(o,func);}var _582=[];for(var i=0;i<_581.length;i++){var _584=epages.lang.hitch.prototype.clipBoard.add(_581[i]);_582.push("epages.lang.hitch.prototype.clipBoard.get("+_584+")");}if(typeof (func)=="string"){var _585=func;}else{for(member in o){if(typeof o[member]=="function"&&o[member]==func){var _585=member;break;}}}var _586;if(_585===undefined){_586=eval("dojo.hitch(o, function() { func("+_582.join(", ")+"); });");}else{_586=eval("dojo.hitch(o, function() { o."+_585+"("+_582.join(", ")+"); });");}return _586;}};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 _588={};if(uri.match(/^((?:(.+)\:\/\/([^\/]+))?((?:\/|[^\?#]).*?)?(\?.*?)?(#.*)?)$/)){_588={href:RegExp.$1,protocol:RegExp.$2,host:RegExp.$3,path:RegExp.$4,query:RegExp.$5,anchor:RegExp.$6,parameters:{}};_588.parameters=this.splitQueryString(_588.query);}return _588;},splitQueryString:function(uri){var _58a={};var _58b=(new RegExp(/\??(.*?)(#.*)?$/g)).exec(uri);if(_58b){var _58c=_58b[1];var _58d=_58c.split("&");for(var i=0;i<_58d.length;i++){var _58f=(new RegExp(/(.+)\=(.*)/)).exec(_58d[i]);if(_58f){_58a[decodeURIComponent(_58f[1])]=decodeURIComponent(_58f[2]);}}}return _58a;},toQueryString:function(data){if(dojo.isArray(data)){var _591=[];for(var i=0;i<data.length;i++){if(!dojo.isArray(data[i])){console.debug("data element is not an array: "+(typeof data[i]));continue;}_591.push(encodeURIComponent(data[i][0])+"="+encodeURIComponent(data[i][1]));}return _591.join("&");}else{if(dojo.isObject(data)){return $H(data).toQueryString();}}},fromParts:function(_593){var _594="";if(_593.protocol){_594+=_593.protocol+"://";}if(_593.host){_594+=_593.host;}if(_593.path){_594+=_593.path;}if(dojo.isObject(_593.parameters)){var qs=this.toQueryString(_593.parameters);if(qs){_594+="?"+qs;}}else{if(_593.query){_594+=_593.query;}}if(_593.anchor){_594+=_593.anchor;}return _594;},isAbsolute:function(uri){var rx=new RegExp(/^((http|https|ftp)\:\/\/|\/)/g);return rx.test(uri);},getRelative:function(_598,url){var _59a=epages.lang.uri.parts(_598);var _59b=epages.lang.uri.parts(url);if((_59b.protocol!=null&&_59b.protocol!=_59a.protocol)||(_59b.host!=null&&_59b.host!=_59a.host)){return url;}_59a.path=_59a.path.replace(/\/+$/,"");_59b.path=_59b.path.replace(/\/+$/,"");var _59c=_59a.path.split("/");var _59d=_59b.path.split("/");while(_59c.length>0){var _59e=_59c.shift();var _59f=_59d.shift();if(_59f==null){_59c.unshift(_59e);break;}else{if(_59e!=_59f){_59c.unshift(_59e);_59d.unshift(_59f);break;}}}var _5a0="";for(var i=0;i<_59c.length;i++){_5a0+="../";}return _5a0+_59d.join("/");}};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_5a2){var _5a3=_5a2.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_5a3==1&&dojo.date.isLeapYear(_5a2)){return 29;}return days[_5a3];};dojo.date.isLeapYear=function(_5a5){var year=_5a5.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_5a7){var str=_5a7.toString();var tz="";var _5aa;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_5aa=str.match(pat))){tz=_5aa[1];}else{str=_5a7.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_5aa=str.match(pat))){tz=_5aa[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_5ad,_5ae,_5af){_5ad=new Date(+_5ad);_5ae=new Date(+(_5ae||new Date()));if(_5af=="date"){_5ad.setHours(0,0,0,0);_5ae.setHours(0,0,0,0);}else{if(_5af=="time"){_5ad.setFullYear(0,0,0);_5ae.setFullYear(0,0,0);}}if(_5ad>_5ae){return 1;}if(_5ad<_5ae){return -1;}return 0;};dojo.date.add=function(date,_5b1,_5b2){var sum=new Date(+date);var _5b4=false;var _5b5="Date";switch(_5b1){case "day":break;case "weekday":var days,_5b7;var mod=_5b2%5;if(!mod){days=(_5b2>0)?5:-5;_5b7=(_5b2>0)?((_5b2-5)/5):((_5b2+5)/5);}else{days=mod;_5b7=parseInt(_5b2/5);}var strt=date.getDay();var adj=0;if(strt==6&&_5b2>0){adj=1;}else{if(strt==0&&_5b2<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_5b2>0)?2:-2;}_5b2=(7*_5b7)+days+adj;break;case "year":_5b5="FullYear";_5b4=true;break;case "week":_5b2*=7;break;case "quarter":_5b2*=3;case "month":_5b4=true;_5b5="Month";break;default:_5b5="UTC"+_5b1.charAt(0).toUpperCase()+_5b1.substring(1)+"s";}if(_5b5){sum["set"+_5b5](sum["get"+_5b5]()+_5b2);}if(_5b4&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_5bc,_5bd,_5be){_5bd=_5bd||new Date();_5be=_5be||"day";var _5bf=_5bd.getFullYear()-_5bc.getFullYear();var _5c0=1;switch(_5be){case "quarter":var m1=_5bc.getMonth();var m2=_5bd.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_5bf*4);_5c0=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_5bc,_5bd,"day"));var _5c6=parseInt(dojo.date.difference(_5bc,_5bd,"week"));var mod=days%7;if(mod==0){days=_5c6*5;}else{var adj=0;var aDay=_5bc.getDay();var bDay=_5bd.getDay();_5c6=parseInt(days/7);mod=days%7;var _5cb=new Date(_5bc);_5cb.setDate(_5cb.getDate()+(_5c6*7));var _5cc=_5cb.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 (_5cc+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 (_5cc+mod)<0:adj=2;}}}days+=adj;days-=(_5c6*2);}_5c0=days;break;case "year":_5c0=_5bf;break;case "month":_5c0=(_5bd.getMonth()-_5bc.getMonth())+(_5bf*12);break;case "week":_5c0=parseInt(dojo.date.difference(_5bc,_5bd,"day")/7);break;case "day":_5c0/=24;case "hour":_5c0/=60;case "minute":_5c0/=60;case "second":_5c0/=1000;case "millisecond":_5c0*=_5bd.getTime()-_5bc.getTime();}return Math.round(_5c0);};}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_5cd,_5ce,_5cf){_5cf=dojo.i18n.normalizeLocale(_5cf);var _5d0=_5cf.split("-");var _5d1=[_5cd,"nls",_5ce].join(".");var _5d2=dojo._loadedModules[_5d1];if(_5d2){var _5d3;for(var i=_5d0.length;i>0;i--){var loc=_5d0.slice(0,i).join("_");if(_5d2[loc]){_5d3=_5d2[loc];break;}}if(!_5d3){_5d3=_5d2.ROOT;}if(_5d3){var _5d6=function(){};_5d6.prototype=_5d3;return new _5d6();}}throw new Error("Bundle not found: "+_5ce+" in "+_5cd+" , locale="+_5cf);};dojo.i18n.normalizeLocale=function(_5d7){var _5d8=_5d7?_5d7.toLowerCase():dojo.locale;if(_5d8=="root"){_5d8="ROOT";}return _5d8;};dojo.i18n._requireLocalization=function(_5d9,_5da,_5db,_5dc){var _5dd=dojo.i18n.normalizeLocale(_5db);var _5de=[_5d9,"nls",_5da].join(".");var _5df="";if(_5dc){var _5e0=_5dc.split(",");for(var i=0;i<_5e0.length;i++){if(_5dd["indexOf"](_5e0[i])==0){if(_5e0[i].length>_5df.length){_5df=_5e0[i];}}}if(!_5df){_5df="ROOT";}}var _5e2=_5dc?_5df:_5dd;var _5e3=dojo._loadedModules[_5de];var _5e4=null;if(_5e3){if(dojo.config.localizationComplete&&_5e3._built){return;}var _5e5=_5e2.replace(/-/g,"_");var _5e6=_5de+"."+_5e5;_5e4=dojo._loadedModules[_5e6];}if(!_5e4){_5e3=dojo["provide"](_5de);var syms=dojo._getModuleSymbols(_5d9);var _5e8=syms.concat("nls").join("/");var _5e9;dojo.i18n._searchLocalePath(_5e2,_5dc,function(loc){var _5eb=loc.replace(/-/g,"_");var _5ec=_5de+"."+_5eb;var _5ed=false;if(!dojo._loadedModules[_5ec]){dojo["provide"](_5ec);var _5ee=[_5e8];if(loc!="ROOT"){_5ee.push(loc);}_5ee.push(_5da);var _5ef=_5ee.join("/")+".js";_5ed=dojo._loadPath(_5ef,null,function(hash){var _5f1=function(){};_5f1.prototype=_5e9;_5e3[_5eb]=new _5f1();for(var j in hash){_5e3[_5eb][j]=hash[j];}});}else{_5ed=true;}if(_5ed&&_5e3[_5eb]){_5e9=_5e3[_5eb];}else{_5e3[_5eb]=_5e9;}if(_5dc){return true;}});}if(_5dc&&_5dd!=_5df){_5e3[_5dd.replace(/-/g,"_")]=_5e3[_5df.replace(/-/g,"_")];}};(function(){var _5f3=dojo.config.extraLocale;if(_5f3){if(!_5f3 instanceof Array){_5f3=[_5f3];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_5f7,_5f8){req(m,b,_5f7,_5f8);if(_5f7){return;}for(var i=0;i<_5f3.length;i++){req(m,b,_5f3[i],_5f8);}};}})();dojo.i18n._searchLocalePath=function(_5fa,down,_5fc){_5fa=dojo.i18n.normalizeLocale(_5fa);var _5fd=_5fa.split("-");var _5fe=[];for(var i=_5fd.length;i>0;i--){_5fe.push(_5fd.slice(0,i).join("-"));}_5fe.push(false);if(down){_5fe.reverse();}for(var j=_5fe.length-1;j>=0;j--){var loc=_5fe[j]||"ROOT";var stop=_5fc(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_603,_604){function preload(_605){_605=dojo.i18n.normalizeLocale(_605);dojo.i18n._searchLocalePath(_605,true,function(loc){for(var i=0;i<_604.length;i++){if(_604[i]==loc){dojo["require"](_603+"_"+loc);return true;}}return false;});};preload();var _608=dojo.config.extraLocale||[];for(var i=0;i<_608.length;i++){preload(_608[i]);}};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_60a){var _60b={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 _60c=dojo.cldr.supplemental._region(_60a);var dow=_60b[_60c];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_60e){_60e=dojo.i18n.normalizeLocale(_60e);var tags=_60e.split("-");var _610=tags[1];if(!_610){_610={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(_610.length==4){_610=tags[2];}}return _610;};dojo.cldr.supplemental.getWeekend=function(_611){var _612={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 _613={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 _614=dojo.cldr.supplemental._region(_611);var _615=_612[_614];var end=_613[_614];if(_615===undefined){_615=6;}if(end===undefined){end=0;}return {start:_615,end:end};};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_618){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_618&&_618.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_61c){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("|"),_61c);};dojo.regexp.group=function(_61f,_620){return "("+(_620?"?:":"")+_61f+")";};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function formatPattern(_621,_622,_623,_624){return _624.replace(/([a-z])\1*/ig,function(_625){var s,pad,c=_625.charAt(0),l=_625.length,_62a=["abbr","wide","narrow"];switch(c){case "G":s=_622[(l<4)?"eraAbbr":"eraNames"][_621.getFullYear()<0?0:1];break;case "y":s=_621.getFullYear();switch(l){case 1:break;case 2:if(!_623.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_621.getMonth()+1)/3);pad=true;break;case "M":var m=_621.getMonth();if(l<3){s=m+1;pad=true;}else{var _62c=["months","format",_62a[l-3]].join("-");s=_622[_62c][m];}break;case "w":var _62d=0;s=dojo.date.locale._getWeekOfYear(_621,_62d);pad=true;break;case "d":s=_621.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_621);pad=true;break;case "E":var d=_621.getDay();if(l<3){s=d+1;pad=true;}else{var _62f=["days","format",_62a[l-3]].join("-");s=_622[_62f][d];}break;case "a":var _630=(_621.getHours()<12)?"am":"pm";s=_622[_630];break;case "h":case "H":case "K":case "k":var h=_621.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=_621.getMinutes();pad=true;break;case "s":s=_621.getSeconds();pad=true;break;case "S":s=Math.round(_621.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_621,true,_623);if(s){break;}l=4;case "Z":var _632=dojo.date.locale._getZone(_621,false,_623);var tz=[(_632<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_632)/60),2),dojo.string.pad(Math.abs(_632)%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: "+_624);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_634,_635,_636){if(_635){return dojo.date.getTimezoneName(_634);}else{return _634.getTimezoneOffset();}};dojo.date.locale.format=function(_637,_638){_638=_638||{};var _639=dojo.i18n.normalizeLocale(_638.locale),_63a=_638.formatLength||"short",_63b=dojo.date.locale._getGregorianBundle(_639),str=[],_63d=dojo.hitch(this,formatPattern,_637,_63b,_638);if(_638.selector=="year"){return _processPattern(_63b["dateFormatItem-yyyy"]||"yyyy",_63d);}var _63e;if(_638.selector!="date"){_63e=_638.timePattern||_63b["timeFormat-"+_63a];if(_63e){str.push(_processPattern(_63e,_63d));}}if(_638.selector!="time"){_63e=_638.datePattern||_63b["dateFormat-"+_63a];if(_63e){str.push(_processPattern(_63e,_63d));}}return str.length==1?str[0]:_63b["dateTimeFormat-"+_63a].replace(/\{(\d+)\}/g,function(_63f,key){return str[key];});};dojo.date.locale.regexp=function(_641){return dojo.date.locale._parseInfo(_641).regexp;};dojo.date.locale._parseInfo=function(_642){_642=_642||{};var _643=dojo.i18n.normalizeLocale(_642.locale),_644=dojo.date.locale._getGregorianBundle(_643),_645=_642.formatLength||"short",_646=_642.datePattern||_644["dateFormat-"+_645],_647=_642.timePattern||_644["timeFormat-"+_645],_648;if(_642.selector=="date"){_648=_646;}else{if(_642.selector=="time"){_648=_647;}else{_648=_644["dateTimeFormat-"+_645].replace(/\{(\d+)\}/g,function(_649,key){return [_647,_646][key];});}}var _64b=[],re=_processPattern(_648,dojo.hitch(this,_buildDateTimeRE,_64b,_644,_642));return {regexp:re,tokens:_64b,bundle:_644};};dojo.date.locale.parse=function(_64d,_64e){var info=dojo.date.locale._parseInfo(_64e),_650=info.tokens,_651=info.bundle,re=new RegExp("^"+info.regexp+"$",info.strict?"":"i"),_653=re.exec(_64d);if(!_653){return null;}var _654=["abbr","wide","narrow"],_655=[1970,0,1,0,0,0,0],amPm="",_657=dojo.every(_653,function(v,i){if(!i){return true;}var _65a=_650[i-1];var l=_65a.length;switch(_65a.charAt(0)){case "y":if(l!=2&&_64e.strict){_655[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_65d=year.substring(0,2)*100,_65e=Math.min(Number(year.substring(2,4))+20,99),num=(v<_65e)?_65d+v:_65d-100+v;_655[0]=num;}else{if(_64e.strict){return false;}_655[0]=v;}}break;case "M":if(l>2){var _660=_651["months-format-"+_654[l-3]].concat();if(!_64e.strict){v=v.replace(".","").toLowerCase();_660=dojo.map(_660,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_660,v);if(v==-1){return false;}}else{v--;}_655[1]=v;break;case "E":case "e":var days=_651["days-format-"+_654[l-3]].concat();if(!_64e.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":_655[1]=0;case "d":_655[2]=v;break;case "a":var am=_64e.am||_651.am;var pm=_64e.pm||_651.pm;if(!_64e.strict){var _666=/\./g;v=v.replace(_666,"").toLowerCase();am=am.replace(_666,"").toLowerCase();pm=pm.replace(_666,"").toLowerCase();}if(_64e.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;}_655[3]=v;break;case "m":_655[4]=v;break;case "s":_655[5]=v;break;case "S":_655[6]=v;}return true;});var _667=+_655[3];if(amPm==="p"&&_667<12){_655[3]=_667+12;}else{if(amPm==="a"&&_667==12){_655[3]=0;}}var _668=new Date(_655[0],_655[1],_655[2],_655[3],_655[4],_655[5],_655[6]);if(_64e.strict){_668.setFullYear(_655[0]);}var _669=_650.join(""),_66a=_669.indexOf("d")!=-1,_66b=_669.indexOf("M")!=-1;if(!_657||(_66b&&_668.getMonth()>_655[1])||(_66a&&_668.getDate()>_655[2])){return null;}if((_66b&&_668.getMonth()<_655[1])||(_66a&&_668.getDate()<_655[2])){_668=dojo.date.add(_668,"hour",1);}return _668;};function _processPattern(_66c,_66d,_66e,_66f){var _670=function(x){return x;};_66d=_66d||_670;_66e=_66e||_670;_66f=_66f||_670;var _672=_66c.match(/(''|[^'])+/g),_673=_66c.charAt(0)=="'";dojo.forEach(_672,function(_674,i){if(!_674){_672[i]="";}else{_672[i]=(_673?_66e:_66d)(_674);_673=!_673;}});return _66f(_672.join(""));};function _buildDateTimeRE(_676,_677,_678,_679){_679=dojo.regexp.escapeString(_679);if(!_678.strict){_679=_679.replace(" a"," ?a");}return _679.replace(/([a-z])\1*/ig,function(_67a){var s,c=_67a.charAt(0),l=_67a.length,p2="",p3="";if(_678.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=_678.am||_677.am||"AM";var pm=_678.pm||_677.pm||"PM";if(_678.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(_676){_676.push(_67a);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _682=[];dojo.date.locale.addCustomFormats=function(_683,_684){_682.push({pkg:_683,name:_684});};dojo.date.locale._getGregorianBundle=function(_685){var _686={};dojo.forEach(_682,function(desc){var _688=dojo.i18n.getLocalization(desc.pkg,desc.name,_685);_686=dojo.mixin(_686,_688);},this);return _686;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_68b,_68c){var _68d,_68e=dojo.date.locale._getGregorianBundle(_68c),_68f=[item,_68b,type];if(_68b=="standAlone"){var key=_68f.join("-");_68d=_68e[key];if(_68d[0]==1){_68d=undefined;}}_68f[1]="format";return (_68d||_68e[_68f.join("-")]).concat();};dojo.date.locale.isWeekend=function(_691,_692){var _693=dojo.cldr.supplemental.getWeekend(_692),day=(_691||new Date()).getDay();if(_693.end<_693.start){_693.end+=7;if(day<_693.start){day+=7;}}return day>=_693.start&&day<=_693.end;};dojo.date.locale._getDayOfYear=function(_695){return dojo.date.difference(new Date(_695.getFullYear(),0,1,_695.getHours()),_695)+1;};dojo.date.locale._getWeekOfYear=function(_696,_697){if(arguments.length==1){_697=0;}var _698=new Date(_696.getFullYear(),0,1).getDay(),adj=(_698-_697+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_696)+adj-1)/7);if(_698==_697){week++;}return week;};}if(!dojo._hasResource["epages.localize"]){dojo._hasResource["epages.localize"]=true;dojo.provide("epages.localize");epages.localize={formatNumber:function(_69b,_69c){var _69d=(_69b<0)?"-":"";var _69e=Math.abs(_69b);if(_69c==null){_69c=2;}var _69f=Math.pow(10,_69c);var _6a0=Math.floor(Math.round(_69e*_69f)/_69f);var _6a1=Math.round(Math.abs(_69e-_6a0)*_69f);if(_6a1!=0){return _69d+_6a0+epages.vars.Locale.decimalSep+_6a1;}else{return _69d+_6a0;}},formatBytes:function(_6a2,_6a3){if(_6a3==null){_6a3=2;}var unit="Byte";if(_6a2>=1073741824){_6a2/=1073741824;unit="GB";}else{if(_6a2>=1048576){_6a2/=1048576;unit="MB";}else{if(_6a2>=1024){_6a2/=1024;unit="kB";}}}return epages.localize.formatNumber(_6a2,_6a3)+" "+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(_6a5){if(_6a5==null){_6a5=epages.vars.Locale.dateFormat;}if(this._patternCache.existsKey(_6a5)){return this._patternCache.get(_6a5);}var _6a6=_6a5;var _6a7=$A($A($H(epages.localize._patternMap).keys()).sort(function(a,b){return b.length-a.length;}));_6a7.each(function(_6aa){var rx=new RegExp(_6aa,"g");_6a6=_6a6.replace(rx,function(){return epages.localize._patternMap[_6aa];});});return _6a6;},formatDateTime:function(date,_6ad){if(date==null){return "";}if(_6ad==null){_6ad=epages.vars.Locale.dateFormat;}var d=dojo.date.locale.format(date,{datePattern:this.getDojoDateTimePattern(_6ad),timePattern:" "});return d.substring(0,d.length-2);},parseDateTime:function(_6af,_6b0){if(_6b0==null){_6b0=epages.vars.Locale.dateFormat;}return dojo.date.locale.parse("~ "+_6af,{selector:"timeOnly",timePattern:this.getDojoDateTimePattern(_6b0),datePattern:"~"});},parseNumber:function(_6b1){_6b1=_6b1.replace(epages.vars.Locale.thousandSep,"");_6b1=_6b1.replace(epages.vars.Locale.decimalSep,".");return parseFloat(_6b1);}};}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(_6b2,args){var _6b4=args.xhr.status==404?{}:dojo.fromJson(args.xhr.responseText);console.debug("epages.io.Json: error in request");if(_6b4.Errors!==undefined){dojo.publish("epages/interfaceerror",[{code:_6b4.Errors[0].Reason,message:_6b4.Errors[0].Message,guid:_6b4.Errors[0].GUID,vars:{url:args.url,status:args.xhr.status,response:_6b4}}]);}},loadSync:function(url,_6b6,_6b7){var _6b8;var _6b9=_6b6!==undefined?dojo.xhrPost:dojo.xhrGet;var _6ba=this;var opt={url:url,sync:true,preventCache:epages.constants.preventCache,error:function(_6bc,args){_6b8={"error":{error:_6bc,args:args,data:dojo.fromJson(args.xhr.responseText)}};if(_6b7!=null){_6b7({"error":[_6bc,args]});}else{_6ba.defaultErrorCallback(_6bc,args);}},load:function(data,evt){var _6c0=dojo.fromJson(data);if(_6c0.Errors){_6b8={"error":{data:_6c0}};}else{_6b8={"data":dojo.fromJson(data)};}}};if(url.match(".(js|json)$")){_6b9=dojo.xhrGet;}else{dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_6b6});}_6b9(opt);return _6b8;},loadAsync:function(url,_6c2,_6c3,_6c4){var _6c5=_6c3!==undefined?dojo.xhrPost:dojo.xhrGet;var _6c6=this;var opt={url:url,error:function(_6c8,args){var c=_6c4||_6c2;var _6cb=dojo.fromJson(args.xhr.responseText);if(c){c({"error":[_6c8,args],"data":(typeof _6cb=="object")?dojo.fromJson(args.xhr.responseText):{}});}else{_6c6.defaultErrorCallback(_6c8,args);}},load:function(data,_6cd){if(_6c2!=null){var _6ce=dojo.fromJson(data);if(_6ce.Errors){_6c2({"error":{data:_6ce}});}else{_6c2({"data":_6ce,"ioArgs":_6cd});}}}};if(url.match(".(js|json)$")){_6c5=dojo.xhrGet;}else{dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_6c3});}_6c5(opt);return;}});}if(!dojo._hasResource["epages.format"]){dojo._hasResource["epages.format"]=true;dojo.provide("epages.format");epages.format={slice:function(_6cf,_6d0,_6d1){if(_6cf===undefined){throw new Error("value not defined");}if(typeof _6cf!="string"){throw new Error("Not a string value!");}if(!_6d0){_6d0=30;}if(!_6d1===undefined){_6d1=true;}var _6d2=_6cf.length;var _6d3=_6d0<0?-_6d0:_6d0;if(_6d2<_6d3){return _6cf;}if(_6d0<0){_6cf=_6cf.substr((_6d2+_6d0+3),(_6d3-3));if(!_6d1){var _6d4=_6cf.indexOf(" ");_6cf=_6cf.substr(_6d4,_6cf.length);}return "..."+_6cf;}_6cf=_6cf.substr(0,_6d0-3);if(!_6d1){var _6d5=_6cf.lastIndexOf(" ");_6cf=_6cf.substr(0,_6d5+1);}return _6cf+"...";},scrunch:function(_6d6,_6d7,_6d8){if(_6d8===undefined){_6d8=0.5;}if(_6d8<0||_6d8>1){throw new Error("ratio value invalid only values from 0..1 allowed");}if(_6d6===undefined){throw new Error("value not defined");}if(typeof _6d6!="string"){throw new Error("Not a string value!");}if(!_6d7){_6d7=30;}var _6d9=_6d7<0?-_6d7:_6d7;var _6da=_6d6.length;if(_6da<=_6d9){return _6d6;}var _6db=Math.floor((_6d7-3)*_6d8);var _6dc=Math.floor((_6d7-3)*(1-_6d8));var _6dd=_6d7-3-(_6db+_6dc);var _6de=_6d6.substr(0,_6db);var _6df=_6d6.substr(Math.max(0,_6da-_6dc-_6dd),_6da);return _6de+"..."+_6df;}};}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;i<document.images.length;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 _6e1=dojo.getComputedStyle(document.images[i]);with(document.images[i].style){zoom="1";width=(document.images[i].offsetWidth?document.images[i].offsetWidth-parseInt(_6e1.paddingLeft)-parseInt(_6e1.paddingRight):this.minImageSize)+"px";height=(document.images[i].offsetHeight?document.images[i].offsetHeight-parseInt(_6e1.paddingTop)-parseInt(_6e1.paddingBottom):this.minImageSize)+"px";if(_6e1.margin=="0px"){margin=_6e1.padding;}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 _6e3=dojo.query("input").concat(dojo.query("textarea")).concat(dojo.query("select"));for(var i=0;i<_6e3.length;i++){if(!_6e3[i].focusHandle){_6e3[i].focusHandle=true;dojo.connect(_6e3[i],"focus",this,function(evt){evt.currentTarget.setAttribute("focused","");if(epages.Browser.engine=="MSIE"){dojo.addClass(evt.currentTarget,"focused");}});dojo.connect(_6e3[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 _6e8=false;for(var z=0;z<this.focusTriggerClasses.length;z++){if(evt.target.className&&evt.target.className.match(this.focusTriggerClasses[z])){_6e8=true;}}if(_6e8||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 _6eb=this.lastHoveredNode;for(var i=0;i<this.NODEDEPTH;i++){if(_6eb){var _6ed=_6eb.className||"";var _6ee=false;for(var z=0;z<this.hoverTriggerClasses.length;z++){if(typeof _6ed=="string"&&_6ed.match(this.hoverTriggerClasses[z])){_6ee=true;}}if((_6ee||(_6eb.parentNode&&_6eb.parentNode.parentNode&&_6eb.parentNode.parentNode.className&&_6eb.parentNode.parentNode.className.match("ContentList")&&_6eb.tagName=="TR")||_6eb.tagName=="A"||_6eb.tagName=="INPUT"||_6eb.tagName=="TEXTAREA"||_6eb.tagName=="SELECT")&&!_6eb.disabled){if(!_6eb.isHovered){this.currentHoveredNodes.push(_6eb);_6eb.setAttribute("hovered","");if(epages.Browser.engine=="MSIE"){dojo.addClass(_6eb,"hovered");}}_6eb.isHovered=true;_6eb.removeHover=false;}var _6f0=false;for(var z=0;z<this.activeTriggerClasses.length;z++){if(typeof _6ed=="string"&&_6ed.match(this.activeTriggerClasses[z])){_6f0=true;}}if(_6f0||_6eb.tagName=="A"&&!_6eb.activeHandle){_6eb.activeHandle=true;dojo.connect(_6eb,"mousedown",this,function(evt){evt.currentTarget.setAttribute("activated","");if(epages.Browser.engine=="MSIE"){dojo.addClass(evt.currentTarget,"activated");}});dojo.connect(_6eb,"mouseup",this,"_removeActive");dojo.connect(_6eb,"mouseleave",this,"_removeActive");}if(_6eb.tagName!="BODY"&&_6eb.tagName!="HTML"){_6eb=_6eb.parentNode;}else{break;}}}var _6f2=[];for(var i=0;i<this.currentHoveredNodes.length;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{_6f2.push(this.currentHoveredNodes[i]);}this.currentHoveredNodes[i].removeHover=true;}this.currentHoveredNodes=_6f2;}},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;i<document.images.length;i++){var _6f9=new Image();_6f9.onerror=function(){this.imageRef.src=epages.themeUrl("images")+"/img_faultyimage.png";};_6f9.imageRef=document.images[i];_6f9.src=document.images[i].src;}});}},hideemptylistitems:{init:function(){dojo.addOnLoad(function(){if(epages.Browser.engine=="MSIE"){var _6fa=dojo.query("li");for(var i=0;i<_6fa.length;i++){var _6fc=_6fa[i].getElementsByTagName("*");var _6fd=0;var _6fe=0;for(var k=0;k<_6fc.length;k++){if(_6fc[k].nodeType!=8){_6fd++;break;return;}else{_6fe++;}}if((_6fd<1&&_6fa[i].innerHTML.match("<--"))||(_6fe<1&&_6fd<1&&_6fa[i].innerHTML.length<2)){dojo.addClass(_6fa[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");epages.storage={_STORAGE_NAMESPACE:"epages_storage_",_STORAGE_SESSION_KEYWORD:"_session",_STORAGE_LABELS_KEYWORD:"__internal__storage_labels",_storage:{},_storageContainer:null,_getSessionID:function(){return (epages.vars.SessionID||"");},_getTridentStorage:function(){return this._storageContainer.contentWindow.document.body;},_getNonTridentStorage:function(){var _700=this._storageContainer.contentWindow;return (_700.localStorage||(_700.globalStorage?_700.globalStorage[_700.location.host]:(_700.sessionStorage||{})));},_addToStorage:function(_701,_702,_703,_704){_701=_701.toLowerCase();if(_703&&this._getFromStorage(_701)){return;}var _705=_701.match(this._STORAGE_NAMESPACE)?"":this._STORAGE_NAMESPACE;this._storage[_705+_701]=_702;if(_704){this._storage[_705+_701+this._STORAGE_SESSION_KEYWORD]=_704;}},_getFromStorage:function(_706){_706=_706.toLowerCase();return (this._storage[this._STORAGE_NAMESPACE+_706]||this._storage[this._STORAGE_NAMESPACE+_706+this._STORAGE_SESSION_KEYWORD]||"");},_loadStorage:function(){if(epages.Browser.engine=="MSIE"){var _707=this._getTridentStorage();_707.addBehavior("#default#userData");_707.load(this._STORAGE_NAMESPACE);var _708=_707.getAttribute(this._STORAGE_NAMESPACE+this._STORAGE_LABELS_KEYWORD);if(!_708){dojo.publish("storage/ready");return;}else{_708=_708.split(",");}for(var i=0;i<_708.length;i++){var _70a=_708[i].toLowerCase();if(_70a.match(this._STORAGE_NAMESPACE)&&!_70a.match(this._STORAGE_SESSION_KEYWORD)){var _70b=_707.getAttribute(_708[i]);var _70c=_707.getAttribute(_70a+this._STORAGE_SESSION_KEYWORD);if(!_70c){this._addToStorage(_70a,_70b,true);}else{if(_70c&&(_70c==this._getSessionID())){this._addToStorage(_70a,_70b,true,_70c);}else{if(_70c){_707.removeAttribute(_70a);_707.removeAttribute(_70a+this._STORAGE_SESSION_KEYWORD);}}}}}}else{var _70d=this._getNonTridentStorage();if(epages.Browser.engine=="Gecko"){for(var i=0;i<_70d.length;i++){var _70a=_70d[i];if(_70a.match(this._STORAGE_NAMESPACE)&&!_70a.match(this._STORAGE_SESSION_KEYWORD)){var _70b=_70d[_70d[i]];var _70c=_70d[_70d[i]+this._STORAGE_SESSION_KEYWORD];if(!_70c){this._addToStorage(_70a,_70b,true);}else{if(_70c&&(_70c==this._getSessionID())){this._addToStorage(_70a,_70b,true,_70c);}else{if(_70c){delete _70d[i];delete _70d[i+this._STORAGE_SESSION_KEYWORD];}}}}}}else{for(var _70e in _70d){if(_70e.match(this._STORAGE_NAMESPACE)&&!_70e.match(this._STORAGE_SESSION_KEYWORD)){var _70b=_70d[_70e];var _70c=_70d[_70e+this._STORAGE_SESSION_KEYWORD];if(!_70c){this._addToStorage(_70e,_70b,true);}else{if(_70c&&(_70c==this._getSessionID())){this._addToStorage(_70e,_70b,true,_70c);}else{if(_70c){delete _70d[_70e];delete _70d[_70e+this._STORAGE_SESSION_KEYWORD];}}}}}}}dojo.publish("storage/ready");},_saveStorage:function(){var _70f=this._getTridentStorage();var _710=[];for(var _711 in this._storage){if(!_711.match(this._STORAGE_SESSION_KEYWORD)){var _712=_711;var _713=this._storage[_712];var _714=this._storage[_712+this._STORAGE_SESSION_KEYWORD];if(epages.Browser.engine=="MSIE"){_710.push(_712);_70f.setAttribute(_712,_713);if(_714){_70f.setAttribute(_712+this._STORAGE_SESSION_KEYWORD,_714);}}else{this._getNonTridentStorage()[_712]=_713;if(_714){this._getNonTridentStorage()[_712+this._STORAGE_SESSION_KEYWORD]=_714;}}}}if(epages.Browser.engine=="MSIE"){_70f.setAttribute(this._STORAGE_NAMESPACE+this._STORAGE_LABELS_KEYWORD,_710.join(","));_70f.save(this._STORAGE_NAMESPACE);}},add:function(_715,_716,_717){if(_715&&_716&&_716.toString){_716=_716.toString();if(_717){this._addToStorage(_715,_716);}else{this._addToStorage(_715,_716,false,this._getSessionID());}}},get:function(_718){return this._getFromStorage(_718);},clear:function(){if(epages.Browser.engine=="MSIE"){var _719=this._getTridentStorage();for(var _71a in this._storage){_719.removeAttribute(_71a);if(_719.getAttribute(_71a+this._STORAGE_SESSION_KEYWORD)){_719.removeAttribute(_71a+this._STORAGE_SESSION_KEYWORD);}_719.save(this._STORAGE_NAMESPACE);}}else{var _71b=this._getNonTridentStorage();if(_71b.clear){_71b.clear();}else{for(var i=0;i<_71b.length;i++){delete _71b[i];}}}this._storage={};}};dojo.addOnLoad(function(){if(!$("Storage")){var _71d=epages.storage;_71d._storageContainer=document.createElement("div");_71d._storageContainer.innerHTML="<iframe id='Storage' class='Storage HideElementSoft' src='"+location.protocol+"//"+location.host+epages.vars.StoreRoot+"/javascript/epages/storage.html' onload='epages.storage._loadStorage()'></iframe>";_71d._storageContainer=_71d._storageContainer.firstChild;dojo.body().appendChild(_71d._storageContainer);epages.onUnloadFunctions.push(function(){if(epages&&epages.storage){epages.storage._saveStorage();}});}});}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(_71e,_71f){_71e=_71e||{};_71e.width=_71e.width||this.defaultWidth;_71e.height=_71e.height||this.defaultHeight;_71e.left=_71e.left||this.defaultLeft;_71e.top=_71e.top||this.defaultTop;_71e.zIndex=_71e.zIndex||this.defaultZIndex;var _720=$("LoaderAniNode");if(_720){_720.style.left=_71e.left+"px";_720.style.top=_71e.top+"px";_720.style.zIndex=_71e.zIndex;if(_720.getElementsByTagName("object")&&_720.getElementsByTagName("object")[0]){_720.getElementsByTagName("object")[0].width=_71e.width;_720.getElementsByTagName("object")[0].height=_71e.height;}}return _720;};epages.loaderani.destroy=function(_721){var _722=$("LoaderAniNode");if(_722){_722.style.left="-9999px";_722.style.top="-9999px";}};}if(!dojo._hasResource["epages.event.interactionrestrictor"]){dojo._hasResource["epages.event.interactionrestrictor"]=true;dojo.provide("epages.event.interactionrestrictor");epages.event.interactionRestrictor=function(){dojo.subscribe("interactionRestrictor/suspend",function(_723,_724,_725,_726){if(!$(_723)&&_724&&_724.offsetWidth){dojo.body().className+=" SuspendUserInteraction";var _727=document.createElement("div");if(!_726){var _728=new epages.html.Element(_724).getAbsolutePosition(dojo.body());var _726={Width:_724.offsetWidth,Height:_724.offsetHeight,Left:_728.x,Top:_728.y};}with(_727){id=_723;className="SuspendUserInteractionAnimation";style.width=_726.Width+"px";style.height=_726.Height+"px";style.left=_726.Left+"px";style.top=_726.Top+"px";style.zIndex=11000;}if(_725){dojo.addClass(_727,"SuspendUserInteractionHidden");}else{if(_724.offsetHeight>0){_727.loaderani=epages.loaderani.create({width:16,height:16,top:(_726.Top+_726.Height/2-8),left:(_726.Left+_726.Width/2-8),zIndex:11001});}}dojo.body().appendChild(_727);}});dojo.subscribe("interactionRestrictor/permit",function(_729){if($(_729)){dojo.removeClass(dojo.body(),"SuspendUserInteraction");epages.loaderani.destroy($(_729).loaderani);dojo.body().removeChild($(_729));}});};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(_72a){var _72b=this.domNode.selectedIndex;var _72c=this.domNode.cloneNode(true);var _72d=document.createElement("span");_72d.className=_72a+" EnableActive EnableHover "+(this.domNode.disabled?"Disabled":"")+(this.domNode.size?"Sized":"");_72d.appendChild(_72c);this.domNode.parentNode.replaceChild(_72d,this.domNode);this.domNode=_72d;this.elementNode=this.domNode.getElementsByTagName("*")[0];if(_72b){this.elementNode.selectedIndex=_72b;}},_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 _72e=document.createElement("input");_72e.type="submit";_72e.className="HideElement";this.form.appendChild(_72e);_72e.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 _731=this._groupElements;for(var i=0;i<_731.length;i++){if((_731[i].checked==true||_731[i].checked=="checked")&&_731[i].className.match("Checked")){_731[i].checked=false;dojo.removeClass(_731[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 _733=function(_734){_734.className+="";};this._ep_connects.push(dojo.connect(this.domNode,"keyup",this,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){_733(this.domNode);}}));this._ep_connects.push(dojo.connect(this.domNode,"keydown",this,function(evt){if(evt.keyCode==dojo.keys.RIGHT_ARROW||evt.keyCode==dojo.keys.LEFT_ARROW){_733(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(dojo.connect(this.elementNode,"mouseover",this,function(evt){var _738=dojo.query(".Button",evt.currentTarget.parentNode.parentNode)[0];_738.setAttribute("hovered","");dojo.addClass(_738,"hovered");}));this._ep_connects.push(dojo.connect(this.elementNode,"mouseout",this,function(evt){var _73a=dojo.query(".Button",evt.currentTarget.parentNode.parentNode)[0];_73a.removeAttribute("hovered","");dojo.removeClass(_73a,"hovered");}));this._ep_connects.push(dojo.connect(this.elementNode,"change",this,function(evt){var _73c=dojo.query("input[type=text]",evt.currentTarget.parentNode.parentNode)[0];_73c.value=evt.currentTarget.value;}));}}}}}}}this._inputName=this.elementNode.name;this._checkStatus();},_updateCheckbox:function(evt){var _73e=evt.target.getElementsByTagName("input")[0];if(_73e){epages.event.fire(_73e,"click");if(epages.Browser.engine=="MSIE"){_73e.checked=!_73e.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 _741=this._groupElements;for(var i=0;i<_741.length;i++){if(!(_741[i].checked==true||_741[i].checked=="checked")){dojo.removeClass(_741[i],"Checked");}}}if(this.elementNode.checked){dojo.addClass(this.domNode,"Checked");}else{dojo.removeClass(this.domNode,"Checked");}}},checkFileInputMethod:function(_743){if(_743.value.length==0){this.elementNode.style.visibility="visible";this.elementNode.name=this._inputName;_743.name="";dojo.removeClass(dojo.query(".Button",this.domNode)[0],"Disabled");}else{_743.name=this._inputName;this.elementNode.name="";this.elementNode.style.visibility="hidden";dojo.addClass(dojo.query(".Button",this.domNode)[0],"Disabled");}},_showDescription:function(evt){var _745=evt.currentTarget;if(_745.getAttribute("description")&&_745.getAttribute("description").length>1){if(this._formDescriptionLayer){var _746=this._formDescriptionLayer;_746.className=_746.className.replace(/HideElement/,"");if(_746.offsetWidth>300){_746.style.width="300px";}dojo.fadeIn({node:_746,duration:200}).play();}else{var _747=$E(this.domNode).getAbsolutePosition();this._formDescriptionLayer=document.createElement("div");var _748=document.createElement("div");_748.className="TooltipShadow";with(this._formDescriptionLayer){innerHTML=unescape(_745.getAttribute("description")).replace(/&lt;/g,"<").replace(/&gt;/g,">");className="Tooltip HideElement Wide";onselectstart=function(){return false;};style.MozUserSelect="none";style.WebkitUserSelect="ignore";style.left=(_747.x+this.domNode.offsetWidth+2)+"px";style.top=_747.y+"px";style.display="block";appendChild(_748);}dojo.style(this._formDescriptionLayer,"opacity",0);dojo.body().appendChild(this._formDescriptionLayer);this._showDescription(evt);}}},_hideDescription:function(evt){if(this._formDescriptionLayer){var _74a=this._formDescriptionLayer;dojo.fadeOut({node:_74a,duration:200}).play();setTimeout(function(){_74a.className+=" HideElement";},200);}},_highlightChanges:function(){var _74b=this.elementNode;if(_74b.tagName=="SELECT"&&epages.Browser.engine=="MSIE"){_74b=this.domNode;}switch(this.inputType){case "text":if(_74b.startupValue!=_74b.value){dojo.addClass(_74b,"Changed");}else{dojo.removeClass(_74b,"Changed");}if(_74b.className.match("Mandatory")&&_74b.value.length<1){dojo.addClass(_74b,"Unfilled");}else{dojo.removeClass(_74b,"Unfilled");}break;case "select":if(epages.Browser.engine=="MSIE"){_74b=this.domNode;}if(this.elementNode.startupIndex!=this.elementNode.selectedIndex){dojo.addClass(_74b,"Changed");}else{dojo.removeClass(_74b,"Changed");}break;case "radio":break;case "checkbox":break;case "file":_74b=this.domNode.firstChild;if(_74b.value.length>1){dojo.addClass(_74b,"Changed");}else{dojo.removeClass(_74b,"Changed");}break;}},setChecked:function(_74c){if(this.elementNode.className.match("Radio")){if(_74c){var _74d=dojo.query("input[name="+this.elementNode.name+"].Radio");for(var i=0;i<_74d.length;i++){_74d[i].checked=false;}this.elementNode.checked=true;epages.event.fire(this.elementNode,"change");}}else{this.elementNode.checked=_74c;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 _751=this.elementNode;dojo.addClass(_751,"EmptyValue");if(this.elementNode.form){this._ep_connects.push(dojo.connect(this.elementNode.form,"submit",function(){_751.value=_751.value.replace(_751.getAttribute("emptyValue"),"");dojo.removeClass(_751,"EmptyValue");}));}this._ep_connects.push(dojo.connect(this.elementNode,"focus",function(){_751.value=_751.value.replace(_751.getAttribute("emptyValue"),"");dojo.removeClass(_751,"EmptyValue");}));this._ep_connects.push(dojo.connect(this.elementNode,"blur",function(){if(_751.value==""){dojo.addClass(_751,"EmptyValue");_751.value=_751.getAttribute("emptyValue");}}));}}},destroy:function(){if(this._statusInterval){clearInterval(this._statusInterval);}var _752=this._ep_connects;for(var c in _752){dojo.disconnect(_752[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:[],_onSubmit:function(){for(var i=0;i<this.submitButtons.length;i++){this.submitButtons[i].disabled=true;}},postCreate:function(){this.inherited("postCreate",arguments);this.submitButtons=dojo.query("[type=submit]",this.domNode);dojo.connect(this.domNode,"submit",this,"_onSubmit");}});}dojo.i18n._preloadLocalizations("epages.nls.ep_base",["da","pt","fi","no","sv","es","de","ROOT","fr","ro","it","ca","ru","en","nl","xx"]);

