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

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

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

