if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;
dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";
dojo.dnd.getCopyKeyState=function(e){
return e[dojo.dnd._copyKey];
};
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._abs(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.isSafari||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 _18=n.scrollLeft,_19=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_18!=n.scrollLeft||_19!=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(_1a,e,_1c){
this.node=dojo.byId(_1a);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=_1c,d=_1a.ownerDocument,_1f=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),_1f];
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.isSafari&&dojo.dnd._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(_2d,_2e){
this.node=dojo.byId(_2d);
if(!_2e){
_2e={};
}
this.handle=_2e.handle?dojo.byId(_2e.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_2e.delay>0?_2e.delay:0;
this.skip=_2e.skip;
this.mover=_2e.mover?_2e.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(_2f,_30){
return new dojo.dnd.Moveable(_30,_2f);
},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(_37){
dojo.publish("/dnd/move/start",[_37]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_38){
dojo.publish("/dnd/move/stop",[_38]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_39){
},onMove:function(_3a,_3b){
this.onMoving(_3a,_3b);
var s=_3a.node.style;
s.left=_3b.l+"px";
s.top=_3b.t+"px";
this.onMoved(_3a,_3b);
},onMoving:function(_3d,_3e){
},onMoved:function(_3f,_40){
}});
}
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(_41,_42){
return new dojo.dnd.move.constrainedMoveable(_42,_41);
},constructor:function(_43,_44){
if(!_44){
_44={};
}
this.constraints=_44.constraints;
this.within=_44.within;
},onFirstMove:function(_45){
var c=this.constraintBox=this.constraints.call(this,_45);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_45.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_48,_49){
var c=this.constraintBox,s=_48.node.style;
s.left=(_49.l<c.l?c.l:c.r<_49.l?c.r:_49.l)+"px";
s.top=(_49.t<c.t?c.t:c.b<_49.t?c.b:_49.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_4c,_4d){
return new dojo.dnd.move.boxConstrainedMoveable(_4d,_4c);
},constructor:function(_4e,_4f){
var box=_4f&&_4f.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_51,_52){
return new dojo.dnd.move.parentConstrainedMoveable(_52,_51);
},constructor:function(_53,_54){
var _55=_54&&_54.area;
this.constraints=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_55=="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(_55=="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(_55=="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,_5b){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _5c=function(_5d,e,_5f){
dojo.dnd.Mover.call(this,_5d,e,_5f);
};
dojo.extend(_5c,dojo.dnd.Mover.prototype);
dojo.extend(_5c,{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(_5b){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _5c;
};
dojo.dnd.move.boxConstrainedMover=function(box,_68){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_68);
};
dojo.dnd.move.parentConstrainedMover=function(_69,_6a){
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(_69=="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(_69=="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(_69=="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,_6a);
};
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 _70=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_71,_72){
if(!_72){
_72={};
}
if(_72.timeout&&typeof _72.timeout=="number"&&_72.timeout>=0){
this.timeout=_72.timeout;
}
},markupFactory:function(_73,_74){
return new dojo.dnd.TimedMoveable(_74,_73);
},onMoveStop:function(_75){
if(_75._timer){
clearTimeout(_75._timer);
_70.call(this,_75,_75._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_76,_77){
_76._leftTop=_77;
if(!_76._timer){
var _t=this;
_76._timer=setTimeout(function(){
_76._timer=null;
_70.call(_t,_76,_76._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["epages._workaround"]){
dojo._hasResource["epages._workaround"]=true;
dojo.provide("epages._workaround");
epages._workaround.load=function(_79){
if(_79=="epages.widget.Calendar"&&dojo.version.revision=="11832"){
dijit.placeOnScreenAroundElement=function(_7a,_7b,_7c,_7d){
_7b=dojo.byId(_7b);
var _7e=_7b.style.display;
_7b.style.display="";
var _7f=_7b.offsetWidth;
var _80=_7b.offsetHeight;
var _81=dojo.coords(_7b,true);
_7b.style.display=_7e;
var _82=[];
for(var _83 in _7c){
_82.push({aroundCorner:_83,corner:_7c[_83],pos:{x:_81.x+(_83.charAt(1)=="L"?0:_7f),y:_81.y+(_83.charAt(0)=="T"?0:_80)}});
}
if(_82.length==2&&_82[0].aroundCorner=="BR"&&_82[0].corner=="TR"&&_82[1].aroundCorner=="BL"&&_82[1].corner=="TL"){
_82=_82.reverse();
}
return dijit._place(_7a,_82,_7d);
};
}
if(_79=="dijit.Tree"&&dojo.version.revision=="15997"){
dojo.connect(dijit._TreeNode.prototype,"expand",function(){
dojo.publish(this.tree.id+"/nodeexpand",[this]);
});
}else{
if(_79=="dojo.cldr.supplemental"){
dojo.cldr.supplemental.getFirstDayOfWeek=function(_84){
if(dojo.i18n.normalizeLocale(_84)==djConfig.locale){
return epages.vars.Locale.firstDayOfWeek;
}
var _85={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,gb:0,sy:4};
var _86=dojo.cldr.supplemental._region(_84);
var dow=_85[_86];
return (typeof dow=="undefined")?1:dow;
};
}else{
if(_79=="dijit.Dialog"){
dijit.Dialog.prototype._onKey=function(evt){
if(evt.keyCode){
var _89=evt.target;
if(_89==this.titleBar&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){
if(this._lastFocusItem){
this._lastFocusItem.focus();
}
dojo.stopEvent(evt);
}else{
while(_89){
if(_89==this.domNode){
if(evt.keyCode==dojo.keys.ESCAPE){
this.hide();
}else{
return;
}
}
_89=_89.parentNode;
}
if(evt.keyCode!=dojo.keys.TAB){
}else{
if(!dojo.isOpera){
try{
this.titleBar.focus();
}
catch(e){
}
}
}
}
}
};
}
}
}
if(_79=="dijit._Widget"&&dojo.version.revision=="15997"){
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,version:"6.0.6",constants:{preventCache:false,doFlashForward:true},theme:{name:"epages",url:dojo.moduleUrl("dijit.themes","epages")},_windows:[window],_gvs:{},zIndex:100,flashForward:function(){
return epages.constants.doFlashForward;
},setTheme:function(_8c){
var _8d=dojo.body();
var old=epages.theme.name;
if(_8d){
dojo.removeClass(_8d,epages.theme.name);
}else{
dojo.addOnLoad(function(){
var _8f=dojo.body();
if(_8f){
dojo.removeClass(_8f,epages.theme.name);
dojo.addClass(_8f,_8c);
}
});
}
epages.theme.name=_8c;
epages.theme.url=dojo.moduleUrl("dijit.themes",_8c);
if(_8d){
dojo.addClass(_8d,_8c);
}
},themeUrl:function(_90){
return epages.theme.url+"/"+_90;
},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(_93,_94){
_93.action=_94.substr(0,1)=="?"?epages.vars.BaseUrl+_94:_94;
},locationWebRoot:function(uri){
return window.location.protocol+"//"+window.location.host+uri;
},Class:function(){
return function(){
this.initialize.apply(this,arguments);
};
},changeSampleText:function(_96,_97){
if(!_96){
_96="";
}
sampletags=document.getElementsByTagName("samp");
for(i=0;i<sampletags.length;i++){
if(sampletags[i].getAttribute("title")==_97){
if(sampletags[i].firstChild){
sampletags[i].firstChild.data=_96;
}else{
mydata=document.createTextNode(_96);
sampletags[i].appendChild(mydata);
}
}
}
},toggleNodes:function(_98,_99,_9a){
if(typeof _98=="string"){
if(typeof _9a=="undefined"){
_9a=document;
}
if(typeof _9a=="string"){
_9a=document.getElementById(_9a);
}
var _9b=_9a.getElementsByTagName("*");
for(var i=0;i<_9b.length;i++){
if(_9b[i].attributes){
if(_9b[i].attributes["class"]){
if(_9b[i].attributes["class"].nodeValue.indexOf(_98)>-1){
with(_9b[i].style){
if(_99){
if(_9b[i].className.match(/HideNode/)){
_9b[i].className=_9b[i].className.replace(/HideNode/,"ShowNode");
}else{
if(_9b[i].className.match(/ShowNode/)){
_9b[i].className=_9b[i].className.replace(/ShowNode/,"HideNode");
}else{
if(display=="none"){
display="";
}else{
if(display!="none"){
display="none";
}
}
}
}
if(_9b[i].className.match(/HideElement/)){
_9b[i].className=_9b[i].className.replace(/HideElement/,"ShowElement");
}
}else{
if(visibility=="hidden"){
visibility="visible";
if(display=="none"){
display="";
}
_9b[i].className=_9b[i].className.replace(/HideNode/,"ShowNode");
_9b[i].className=_9b[i].className.replace(/HideElement/,"ShowElement");
}else{
visibility="hidden";
}
}
}
}
}
}
}
}
},changeDelimiter:function(_9d,_9e){
switch(_9d){
case ",":
document.getElementById(_9e).options[0].selected="selected";
break;
case ";":
document.getElementById(_9e).options[1].selected="selected";
break;
default:
document.getElementById(_9e).options[2].selected="selected";
break;
}
},toggleLink:function(_9f){
if(document.getElementsByName(_9f)[0].className=="ShowLink"){
document.getElementsByName(_9f)[0].className="HideLink";
}else{
document.getElementsByName(_9f)[0].className="ShowLink";
}
},toggleExtender:function(_a0){
splittedFilename=_a0.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";
}
_a0.src=splittedFilename.join("/");
},getDocumentWindow:function(doc){
return (doc.parentWindow)?doc.parentWindow:doc.defaultView;
},getIframeWrapperUrl:function(url,_a3){
var src="?iframeUrl="+encodeURIComponent(url);
if(_a3){
src+="&charset="+encodeURIComponent(_a3);
}
return dojo.moduleUrl("epages","iframe_wrapper.html")+src;
},require:function(_a5,_a6){
if(!_a5){
return;
}
if(epages.vars.DebugLevel&&epages.vars.DebugLevel==1){
_a5+=".js.uncompressed";
}
if(_a6){
if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){
return dojo["require"](_a6);
}
var _a7=dojo._loadedModules[_a6];
if(_a7){
return _a7;
}
epages.vars.currentRequiredModul=_a6;
dojo.xhrGet({url:StoreRoot+"/javascript/build/epages/"+_a5+".js",sync:true,load:function(_a8){
eval(_a8);
},error:function(_a9){
dojo["require"](epages.vars.currentRequiredModul);
},mimetype:"text/plain"});
_a7=dojo._loadedModules[_a6];
epages.vars.currentRequiredModul=undefined;
return _a7;
}else{
if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){
return;
}
dojo.xhrGet({url:StoreRoot+"/javascript/build/epages/"+_a5+".js",sync:true,load:function(_aa){
eval(_aa);
},mimetype:"text/plain"});
return;
}
}});
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;
};
}
});
window.console=window.console||{};
window.console.debug=window.console.debug||function(){
return;
};
window.console.warn=window.console.warn||function(){
return;
};
}
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(_ae){
if(_ae.file&&_ae.priority){
var _af=false;
for(var i=0;i<this.files.length;i++){
if(this.files[i].file==_ae.file){
_af=true;
break;
}
}
if(!_af){
this.files.push(_ae);
}
}
},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(_b2,_b3,_b4){
setTimeout(function(){
epages.Preload.start();
},_b3);
});
}else{
setTimeout(function(){
epages.Preload.start();
},100);
}
});
}
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(){
var _b5=dojo.doc;
if(_b5.selection){
var s=_b5.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _b7=dojo.global;
var _b8=_b7.getSelection();
if(dojo.isString(_b8)){
return !_b8;
}else{
return _b8.isCollapsed||!_b8.toString();
}
}
},getBookmark:function(){
var _b9,_ba=dojo.doc.selection;
if(_ba){
var _bb=_ba.createRange();
if(_ba.type.toUpperCase()=="CONTROL"){
if(_bb.length){
_b9=[];
var i=0,len=_bb.length;
while(i<len){
_b9.push(_bb.item(i++));
}
}else{
_b9=null;
}
}else{
_b9=_bb.getBookmark();
}
}else{
if(window.getSelection){
_ba=dojo.global.getSelection();
if(_ba){
_bb=_ba.getRangeAt(0);
_b9=_bb.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _b9;
},moveToBookmark:function(_be){
var _bf=dojo.doc;
if(_bf.selection){
var _c0;
if(dojo.isArray(_be)){
_c0=_bf.body.createControlRange();
dojo.forEach(_be,function(n){
_c0.addElement(n);
});
}else{
_c0=_bf.selection.createRange();
_c0.moveToBookmark(_be);
}
_c0.select();
}else{
var _c2=dojo.global.getSelection&&dojo.global.getSelection();
if(_c2&&_c2.removeAllRanges){
_c2.removeAllRanges();
_c2.addRange(_be);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(_c3,_c4){
return {node:_c3&&dojo.isDescendant(dijit._curFocus,_c3.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_c4||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_c4||dojo.global,dijit.getBookmark):null,openedForWindow:_c4};
},focus:function(_c5){
if(!_c5){
return;
}
var _c6="node" in _c5?_c5.node:_c5,_c7=_c5.bookmark,_c8=_c5.openedForWindow;
if(_c6){
var _c9=(_c6.tagName.toLowerCase()=="iframe")?_c6.contentWindow:_c6;
if(_c9&&_c9.focus){
try{
_c9.focus();
}
catch(e){
}
}
dijit._onFocusNode(_c6);
}
if(_c7&&dojo.withGlobal(_c8||dojo.global,dijit.isCollapsed)){
if(_c8){
_c8.focus();
}
try{
dojo.withGlobal(_c8||dojo.global,dijit.moveToBookmark,null,[_c7]);
}
catch(e){
}
}
},_activeStack:[],registerWin:function(_ca){
if(!_ca){
_ca=window;
}
dojo.connect(_ca.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(evt.target||evt.srcElement);
});
var doc=_ca.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(_d1){
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(_d2){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _d3=[];
try{
while(_d2){
if(_d2.dijitPopupParent){
_d2=dijit.byId(_d2.dijitPopupParent).domNode;
}else{
if(_d2.tagName&&_d2.tagName.toLowerCase()=="body"){
if(_d2===dojo.body()){
break;
}
_d2=dijit.getDocumentWindow(_d2.ownerDocument).frameElement;
}else{
var id=_d2.getAttribute&&_d2.getAttribute("widgetId");
if(id){
_d3.unshift(id);
}
_d2=_d2.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_d3);
},_onFocusNode:function(_d5){
if(!_d5){
return;
}
if(_d5.nodeType==9){
return;
}
if(_d5.nodeType==9){
var _d6=dijit.getDocumentWindow(_d5).frameElement;
if(!_d6){
return;
}
_d5=_d6;
}
dijit._onTouchNode(_d5);
if(_d5==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_d5;
dojo.publish("focusNode",[_d5]);
},_setStack:function(_d7){
var _d8=dijit._activeStack;
dijit._activeStack=_d7;
for(var _d9=0;_d9<Math.min(_d8.length,_d7.length);_d9++){
if(_d8[_d9]!=_d7[_d9]){
break;
}
}
for(var i=_d8.length-1;i>=_d9;i--){
var _db=dijit.byId(_d8[i]);
if(_db){
_db._focused=false;
_db._hasBeenBlurred=true;
if(_db._onBlur){
_db._onBlur();
}
if(_db._setStateClass){
_db._setStateClass();
}
dojo.publish("widgetBlur",[_db]);
}
}
for(i=_d9;i<_d7.length;i++){
_db=dijit.byId(_d7[i]);
if(_db){
_db._focused=true;
if(_db._onFocus){
_db._onFocus();
}
if(_db._setStateClass){
_db._setStateClass();
}
dojo.publish("widgetFocus",[_db]);
}
}
}});
dojo.addOnLoad(dijit.registerWin);
}
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={};
},add:function(_dc){
if(this._hash[_dc.id]){
throw new Error("Tried to register widget with id=="+_dc.id+" but that id is already registered");
}
this._hash[_dc.id]=_dc;
},remove:function(id){
delete this._hash[id];
},forEach:function(_de){
for(var id in this._hash){
_de(this._hash[id]);
}
},filter:function(_e0){
var res=new dijit.WidgetSet();
this.forEach(function(_e2){
if(_e0(_e2)){
res.add(_e2);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_e5){
return _e5.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_e6){
var id;
do{
id=_e6+"_"+(_e6 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_e6]:dijit._widgetTypeCtr[_e6]=0);
}while(dijit.byId(id));
return id;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.registry.forEach(function(_e8){
_e8.destroy();
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(_ea){
return dijit.registry.byId(_ea.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(_eb){
while(_eb){
if(_eb.getAttribute&&_eb.getAttribute("widgetId")){
return dijit.registry.byId(_eb.getAttribute("widgetId"));
}
_eb=_eb.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(_ec){
var _ed=dojo.style(_ec);
return (_ed.visibility!="hidden")&&(_ed.visibility!="collapsed")&&(_ed.display!="none")&&(dojo.attr(_ec,"type")!="hidden");
};
dijit.isTabNavigable=function(_ee){
if(dojo.hasAttr(_ee,"disabled")){
return false;
}
var _ef=dojo.hasAttr(_ee,"tabindex");
var _f0=dojo.attr(_ee,"tabindex");
if(_ef&&_f0>=0){
return true;
}
var _f1=_ee.nodeName.toLowerCase();
if(((_f1=="a"&&dojo.hasAttr(_ee,"href"))||dijit._tabElements[_f1])&&(!_ef||_f0>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(_f2){
var _f3,_f4,_f5,_f6,_f7,_f8;
var _f9=function(_fa){
dojo.query("> *",_fa).forEach(function(_fb){
var _fc=dijit._isElementShown(_fb);
if(_fc&&dijit.isTabNavigable(_fb)){
var _fd=dojo.attr(_fb,"tabindex");
if(!dojo.hasAttr(_fb,"tabindex")||_fd==0){
if(!_f3){
_f3=_fb;
}
_f4=_fb;
}else{
if(_fd>0){
if(!_f5||_fd<_f6){
_f6=_fd;
_f5=_fb;
}
if(!_f7||_fd>=_f8){
_f8=_fd;
_f7=_fb;
}
}
}
}
if(_fc&&_fb.nodeName.toUpperCase()!="SELECT"){
_f9(_fb);
}
});
};
if(dijit._isElementShown(_f2)){
_f9(_f2);
}
return {first:_f3,last:_f4,lowest:_f5,highest:_f7};
};
dijit.getFirstInTabbingOrder=function(_fe){
var _ff=dijit._getTabNavigable(dojo.byId(_fe));
return _ff.lowest?_ff.lowest:_ff.first;
};
dijit.getLastInTabbingOrder=function(root){
var _101=dijit._getTabNavigable(dojo.byId(root));
return _101.last?_101.last:_101.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_102){
this.pairs=[];
this.returnWrappers=_102||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_104,wrap,_106,_107){
this.pairs[((_107)?"unshift":"push")]([name,_104,wrap,_106]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _10d=dojo.global;
var _10e=dojo.doc;
var w=0,h=0;
var de=_10e.documentElement;
var dew=de.clientWidth,deh=de.clientHeight;
if(dojo.isMozilla){
var minw,minh,maxw,maxh;
var dbw=_10e.body.clientWidth;
if(dbw>dew){
minw=dew;
maxw=dbw;
}else{
maxw=dew;
minw=dbw;
}
var dbh=_10e.body.clientHeight;
if(dbh>deh){
minh=deh;
maxh=dbh;
}else{
maxh=deh;
minh=dbh;
}
w=(maxw>_10d.innerWidth)?minw:maxw;
h=(maxh>_10d.innerHeight)?minh:maxh;
}else{
if(!dojo.isOpera&&_10d.innerWidth){
w=_10d.innerWidth;
h=_10d.innerHeight;
}else{
if(dojo.isIE&&de&&deh){
w=dew;
h=deh;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
var _11a=dojo._docScroll();
return {w:w,h:h,l:_11a.x,t:_11a.y};
};
dijit.placeOnScreen=function(node,pos,_11d,_11e){
var _11f=dojo.map(_11d,function(_120){
return {corner:_120,pos:pos};
});
return dijit._place(node,_11f);
};
dijit._place=function(node,_122,_123){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_122,function(_126){
var _127=_126.corner;
var pos=_126.pos;
if(_123){
_123(node,_126.aroundCorner,_127);
}
var _129=node.style;
var _12a=_129.display;
var _12b=_129.visibility;
_129.visibility="hidden";
_129.display="";
var mb=dojo.marginBox(node);
_129.display=_12a;
_129.visibility=_12b;
var _12d=(_127.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_12e=(_127.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_127.charAt(1)=="L"?Math.min(view.l+view.w,_12d+mb.w):pos.x),endY=(_127.charAt(0)=="T"?Math.min(view.t+view.h,_12e+mb.h):pos.y),_131=endX-_12d,_132=endY-_12e,_133=(mb.w-_131)+(mb.h-_132);
if(best==null||_133<best.overflow){
best={corner:_127,aroundCorner:_126.aroundCorner,x:_12d,y:_12e,w:_131,h:_132,overflow:_133};
}
return !_133;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_123){
_123(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_135,_136,_137){
_135=dojo.byId(_135);
var _138=_135.style.display;
_135.style.display="";
var _139=_135.offsetWidth;
var _13a=_135.offsetHeight;
var _13b=dojo.coords(_135,true);
_135.style.display=_138;
return dijit._placeOnScreenAroundRect(node,_13b.x,_13b.y,_139,_13a,_136,_137);
};
dijit.placeOnScreenAroundRectangle=function(node,_13d,_13e,_13f){
return dijit._placeOnScreenAroundRect(node,_13d.x,_13d.y,_13d.width,_13d.height,_13e,_13f);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_143,_144,_145,_146){
var _147=[];
for(var _148 in _145){
_147.push({aroundCorner:_148,corner:_145[_148],pos:{x:x+(_148.charAt(1)=="L"?0:_143),y:y+(_148.charAt(0)=="T"?0:_144)}});
}
return dijit._place(node,_147,_146);
};
dijit.placementRegistry=new dojo.AdapterRegistry();
dijit.placementRegistry.register("node",function(n,x){
return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";
},dijit.placeOnScreenAroundNode);
dijit.placementRegistry.register("rect",function(n,x){
return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;
},dijit.placeOnScreenAroundRectangle);
dijit.placeOnScreenAroundElement=function(node,_14e,_14f,_150){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
}
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 _153=[],_154=1000,_155=1;
this.prepare=function(node){
dojo.body().appendChild(node);
var s=node.style;
if(s.display=="none"){
s.display="";
}
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
};
this.open=function(args){
var _159=args.popup,_15a=args.orient||{"BL":"TL","TL":"BL"},_15b=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_155++);
var _15d=dojo.doc.createElement("div");
dijit.setWaiRole(_15d,"presentation");
_15d.id=id;
_15d.className="dijitPopup";
_15d.style.zIndex=_154+_153.length;
_15d.style.left=_15d.style.top="0px";
_15d.style.visibility="hidden";
if(args.parent){
_15d.dijitPopupParent=args.parent.id;
}
dojo.body().appendChild(_15d);
var s=_159.domNode.style;
s.display="";
s.visibility="";
s.position="";
_15d.appendChild(_159.domNode);
var _15f=new dijit.BackgroundIframe(_15d);
var best=_15b?dijit.placeOnScreenAroundElement(_15d,_15b,_15a,_159.orient?dojo.hitch(_159,"orient"):null):dijit.placeOnScreen(_15d,args,_15a=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);
_15d.style.visibility="visible";
var _161=[];
var _162=function(){
for(var pi=_153.length-1;pi>0&&_153[pi].parent===_153[pi-1].widget;pi--){
}
return _153[pi];
};
_161.push(dojo.connect(_15d,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){
dojo.stopEvent(evt);
args.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _165=_162();
if(_165&&_165.onCancel){
_165.onCancel();
}
}
}
}));
if(_159.onCancel){
_161.push(dojo.connect(_159,"onCancel",null,args.onCancel));
}
_161.push(dojo.connect(_159,_159.onExecute?"onExecute":"onChange",null,function(){
var _166=_162();
if(_166&&_166.onExecute){
_166.onExecute();
}
}));
_153.push({wrapper:_15d,iframe:_15f,widget:_159,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_161});
if(_159.onOpen){
_159.onOpen(best);
}
return best;
};
this.close=function(_167){
while(dojo.some(_153,function(elem){
return elem.widget==_167;
})){
var top=_153.pop(),_16a=top.wrapper,_16b=top.iframe,_16c=top.widget,_16d=top.onClose;
if(_16c.onClose){
_16c.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_16c||!_16c.domNode){
return;
}
this.prepare(_16c.domNode);
_16b.destroy();
dojo._destroyElement(_16a);
if(_16d){
_16d();
}
}
};
}();
dijit._frames=new function(){
var _16e=[];
this.pop=function(){
var _16f;
if(_16e.length){
_16f=_16e.pop();
_16f.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\");'>";
_16f=dojo.doc.createElement(html);
}else{
_16f=dojo.doc.createElement("iframe");
_16f.src="javascript:\"\"";
_16f.className="dijitBackgroundIframe";
}
_16f.tabIndex=-1;
dojo.body().appendChild(_16f);
}
return _16f;
};
this.push=function(_172){
_172.style.display="";
if(dojo.isIE){
_172.style.removeExpression("width");
_172.style.removeExpression("height");
}
_16e.push(_172);
};
}();
if(dojo.isIE<7){
dojo.addOnLoad(function(){
var f=dijit._frames;
dojo.forEach([f.pop()],f.push);
});
}
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _175=dijit._frames.pop();
node.appendChild(_175);
if(dojo.isIE){
_175.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_175.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_175;
}
};
dojo.extend(dijit.BackgroundIframe,{destroy:function(){
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){
node=dojo.byId(node);
var body=node.ownerDocument.body;
var html=body.parentNode;
if(dojo.isFF==2||node==body||node==html){
node.scrollIntoView(false);
return;
}
var rtl=!dojo._isBodyLtr();
var _17a=dojo.doc.compatMode!="BackCompat";
var _17b=(_17a&&!dojo.isSafari)?html:body;
function addPseudoAttrs(_17c){
var _17d=_17c.parentNode;
var _17e=_17c.offsetParent;
if(_17e==null){
_17c=_17b;
_17e=html;
_17d=null;
}
_17c._offsetParent=(_17e==body)?_17b:_17e;
_17c._parent=(_17d==body)?_17b:_17d;
_17c._start={H:_17c.offsetLeft,V:_17c.offsetTop};
_17c._scroll={H:_17c.scrollLeft,V:_17c.scrollTop};
_17c._renderedSize={H:_17c.offsetWidth,V:_17c.offsetHeight};
var bp=dojo._getBorderExtents(_17c);
_17c._borderStart={H:bp.l,V:bp.t};
_17c._borderSize={H:bp.w,V:bp.h};
_17c._clientSize=(_17c._offsetParent==html&&dojo.isSafari&&_17a)?{H:html.clientWidth,V:html.clientHeight}:{H:_17c.clientWidth,V:_17c.clientHeight};
_17c._scrollBarSize={V:null,H:null};
for(var dir in _17c._scrollBarSize){
var _181=_17c._renderedSize[dir]-_17c._clientSize[dir]-_17c._borderSize[dir];
_17c._scrollBarSize[dir]=(_17c._clientSize[dir]>0&&_181>=15&&_181<=17)?_181:0;
}
_17c._isScrollable={V:null,H:null};
for(dir in _17c._isScrollable){
var _182=dir=="H"?"V":"H";
_17c._isScrollable[dir]=_17c==_17b||_17c._scroll[dir]||_17c._scrollBarSize[_182];
}
};
var _183=node;
while(_183!=null){
addPseudoAttrs(_183);
var next=_183._parent;
if(next){
next._child=_183;
}
_183=next;
}
for(var dir in _17b._renderedSize){
_17b._renderedSize[dir]=Math.min(_17b._clientSize[dir],_17b._renderedSize[dir]);
}
var _186=node;
while(_186!=_17b){
_183=_186._parent;
if(_183.tagName=="TD"){
var _187=_183._parent._parent._parent;
if(_187._offsetParent==_186._offsetParent&&_183._offsetParent!=_186._offsetParent){
_183=_187;
}
}
var _188=_186==_17b||(_183._offsetParent!=_186._offsetParent);
for(dir in _186._start){
var _189=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_183._clientSize.H>0){
var _18a=_183.scrollWidth-_183._clientSize.H;
if(_18a>0){
_183._scroll.H-=_18a;
}
}
if(dojo.isIE&&_183._offsetParent.tagName=="TABLE"){
_183._start[dir]-=_183._offsetParent._borderStart[dir];
_183._borderStart[dir]=_183._borderSize[dir]=0;
}
if(_183._clientSize[dir]==0){
_183._renderedSize[dir]=_183._clientSize[dir]=_183._child._clientSize[dir];
if(rtl&&dir=="H"){
_183._start[dir]-=_183._renderedSize[dir];
}
}else{
_183._renderedSize[dir]-=_183._borderSize[dir]+_183._scrollBarSize[dir];
}
_183._start[dir]+=_183._borderStart[dir];
var _18b=_186._start[dir]-(_188?0:_183._start[dir])-_183._scroll[dir];
var _18c=_18b+_186._renderedSize[dir]-_183._renderedSize[dir];
var _18d,_18e=(dir=="H")?"scrollLeft":"scrollTop";
var _18f=(dir=="H"&&rtl);
var _190=_18f?-_18c:_18b;
var _191=_18f?-_18b:_18c;
if(_190<=0){
_18d=_190;
}else{
if(_191<=0){
_18d=0;
}else{
if(_190<_191){
_18d=_190;
}else{
_18d=_191;
}
}
}
var _192=0;
if(_18d!=0){
var _193=_183[_18e];
_183[_18e]+=_18f?-_18d:_18d;
_192=_183[_18e]-_193;
_18b-=_192;
_191-=_18f?-_192:_192;
}
_183._renderedSize[dir]=_186._renderedSize[dir]+_183._scrollBarSize[dir]-((_183._isScrollable[dir]&&_191>0)?_191:0);
_183._start[dir]+=(_18b>=0||!_183._isScrollable[dir])?_18b:0;
}
_186=_183;
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo;
var ie=d.isIE;
var _196=d.isOpera;
var maj=Math.floor;
var ff=d.isFF;
var _199=d.boxModel.replace(/-/,"");
var _19a={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_196,dj_opera8:maj(_196)==8,dj_opera9:maj(_196)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_19a["dj_"+_199]=true;
var html=dojo.doc.documentElement;
for(var p in _19a){
if(_19a[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 _19a){
if(_19a[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=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_19f,node,_1a1,obj,_1a3,_1a4){
if(obj!=this._obj){
this.stop();
this._initialDelay=_1a4||500;
this._subsequentDelay=_1a3||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_19f,_1a1);
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,_1a6,_1a7,_1a8,_1a9,_1aa){
if(_1a6.keyCode){
_1a6.charOrCode=_1a6.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_1a6.charCode){
_1a6.charOrCode=String.fromCharCode(_1a6.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==_1a6.charOrCode&&(_1a6.ctrlKey===undefined||_1a6.ctrlKey==evt.ctrlKey)&&(_1a6.altKey===undefined||_1a6.altKey==evt.ctrlKey)&&(_1a6.shiftKey===undefined||_1a6.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_1a6,_1a7,node,_1a8,_1a6,_1a9,_1aa);
}else{
if(dijit.typematic._obj==_1a6){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_1a6){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_1ae,_1af,_1b0,_1b1){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_1ae,node,_1af,node,_1b0,_1b1);
}),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,_1ae,node,_1af,node,_1b0,_1b1);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_1b8,_1b9,_1ba,_1bb,_1bc,_1bd,_1be){
return this.addKeyListener(_1b9,_1ba,_1bb,_1bc,_1bd,_1be).concat(this.addMouseListener(_1b8,_1bb,_1bc,_1bd,_1be));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.doc.createElement("div");
div.id="a11yTestNode";
div.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().appendChild(div);
var cs=dojo.getComputedStyle(div);
if(cs){
var _1c1=cs.backgroundImage;
var _1c2=(cs.borderTopColor==cs.borderRightColor)||(_1c1!=null&&(_1c1=="none"||_1c1=="url(invalid-url:)"));
dojo[_1c2?"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 _1c5=this.getWaiRole(elem);
if(role){
return (_1c5.indexOf(role)>-1);
}else{
return (_1c5.length>0);
}
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _1c9=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_1c9)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_1c9+" ").indexOf(" "+role+" ")<0){
var _1ca=dojo.trim(_1c9.replace(this._XhtmlRoles,""));
var _1cb=dojo.trim(_1c9.replace(_1ca,""));
dojo.attr(elem,"role",_1cb+(_1cb?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _1ce=dojo.attr(elem,"role");
if(!_1ce){
return;
}
if(role){
var _1cf=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_1ce+" ").replace(" "+_1cf+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_1d2){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1d2);
}else{
return elem.hasAttribute?elem.hasAttribute("aria-"+_1d2):!!elem.getAttribute("aria-"+_1d2);
}
},getWaiState:function(elem,_1d4){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1d4);
}else{
var _1d5=elem.getAttribute("aria-"+_1d4);
return _1d5?_1d5:"";
}
},setWaiState:function(elem,_1d7,_1d8){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1d7,_1d8);
}else{
elem.setAttribute("aria-"+_1d7,_1d8);
}
},removeWaiState:function(elem,_1da){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1da);
}else{
elem.removeAttribute("aria-"+_1da);
}
}});
}
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(_1db,_1dc){
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 _1dd=dojo.date.stamp._isoRegExp.exec(_1db);
var _1de=null;
if(_1dd){
_1dd.shift();
if(_1dd[1]){
_1dd[1]--;
}
if(_1dd[6]){
_1dd[6]*=1000;
}
if(_1dc){
_1dc=new Date(_1dc);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _1dc["get"+prop]();
}).forEach(function(_1e0,_1e1){
if(_1dd[_1e1]===undefined){
_1dd[_1e1]=_1e0;
}
});
}
_1de=new Date(_1dd[0]||1970,_1dd[1]||0,_1dd[2]||1,_1dd[3]||0,_1dd[4]||0,_1dd[5]||0,_1dd[6]||0);
var _1e2=0;
var _1e3=_1dd[7]&&_1dd[7].charAt(0);
if(_1e3!="Z"){
_1e2=((_1dd[8]||0)*60)+(Number(_1dd[9])||0);
if(_1e3!="-"){
_1e2*=-1;
}
}
if(_1e3){
_1e2-=_1de.getTimezoneOffset();
}
if(_1e2){
_1de.setTime(_1de.getTime()+_1e2*60000);
}
}
return _1de;
};
dojo.date.stamp.toISOString=function(_1e4,_1e5){
var _=function(n){
return (n<10)?"0"+n:n;
};
_1e5=_1e5||{};
var _1e8=[];
var _1e9=_1e5.zulu?"getUTC":"get";
var date="";
if(_1e5.selector!="time"){
var year=_1e4[_1e9+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_1e4[_1e9+"Month"]()+1),_(_1e4[_1e9+"Date"]())].join("-");
}
_1e8.push(date);
if(_1e5.selector!="date"){
var time=[_(_1e4[_1e9+"Hours"]()),_(_1e4[_1e9+"Minutes"]()),_(_1e4[_1e9+"Seconds"]())].join(":");
var _1ed=_1e4[_1e9+"Milliseconds"]();
if(_1e5.milliseconds){
time+="."+(_1ed<100?"0":"")+_(_1ed);
}
if(_1e5.zulu){
time+="Z";
}else{
if(_1e5.selector!="time"){
var _1ee=_1e4.getTimezoneOffset();
var _1ef=Math.abs(_1ee);
time+=(_1ee>0?"-":"+")+_(Math.floor(_1ef/60))+":"+_(_1ef%60);
}
}
_1e8.push(time);
}
return _1e8.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _1f1=d._scopeName+"Type";
var qry="["+_1f1+"]";
function val2type(_1f3){
if(d.isString(_1f3)){
return "string";
}
if(typeof _1f3=="number"){
return "number";
}
if(typeof _1f3=="boolean"){
return "boolean";
}
if(d.isFunction(_1f3)){
return "function";
}
if(d.isArray(_1f3)){
return "array";
}
if(_1f3 instanceof Date){
return "date";
}
if(_1f3 instanceof d._Url){
return "url";
}
return "object";
};
function str2obj(_1f4,type){
switch(type){
case "string":
return _1f4;
case "number":
return _1f4.length?Number(_1f4):NaN;
case "boolean":
return typeof _1f4=="boolean"?_1f4:!(_1f4.toLowerCase()=="false");
case "function":
if(d.isFunction(_1f4)){
_1f4=_1f4.toString();
_1f4=d.trim(_1f4.substring(_1f4.indexOf("{")+1,_1f4.length-1));
}
try{
if(_1f4.search(/[^\w\.]+/i)!=-1){
_1f4=d.parser._nameAnonFunc(new Function(_1f4),this);
}
return d.getObject(_1f4,false);
}
catch(e){
return new Function();
}
case "array":
return _1f4?_1f4.split(/\s*,\s*/):[];
case "date":
switch(_1f4){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_1f4);
}
case "url":
return d.baseUrl+_1f4;
default:
return d.fromJson(_1f4);
}
};
var _1f6={};
function getClassInfo(_1f7){
if(!_1f6[_1f7]){
var cls=d.getObject(_1f7);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_1f7+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _1f9=cls.prototype;
var _1fa={};
for(var name in _1f9){
if(name.charAt(0)=="_"){
continue;
}
var _1fc=_1f9[name];
_1fa[name]=val2type(_1fc);
}
_1f6[_1f7]={cls:cls,params:_1fa};
}
return _1f6[_1f7];
};
this._functionFromScript=function(_1fd){
var _1fe="";
var _1ff="";
var _200=_1fd.getAttribute("args");
if(_200){
d.forEach(_200.split(/\s*,\s*/),function(part,idx){
_1fe+="var "+part+" = arguments["+idx+"]; ";
});
}
var _203=_1fd.getAttribute("with");
if(_203&&_203.length){
d.forEach(_203.split(/\s*,\s*/),function(part){
_1fe+="with("+part+"){";
_1ff+="}";
});
}
return new Function(_1fe+_1fd.innerHTML+_1ff);
};
this.instantiate=function(_205){
var _206=[];
d.forEach(_205,function(node){
if(!node){
return;
}
var type=node.getAttribute(_1f1);
if((!type)||(!type.length)){
return;
}
var _209=getClassInfo(type);
var _20a=_209.cls;
var ps=_20a._noScript||_20a.prototype._noScript;
var _20c={};
var _20d=node.attributes;
for(var name in _209.params){
var item=_20d.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _210=item.value;
switch(name){
case "class":
_210=node.className;
break;
case "style":
_210=node.style&&node.style.cssText;
}
var _211=_209.params[name];
_20c[name]=str2obj(_210,_211);
}
if(!ps){
var _212=[],_213=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_214){
var _215=_214.getAttribute("event"),type=_214.getAttribute("type"),nf=d.parser._functionFromScript(_214);
if(_215){
if(type=="dojo/connect"){
_212.push({event:_215,func:nf});
}else{
_20c[_215]=nf;
}
}else{
_213.push(nf);
}
});
}
var _217=_20a["markupFactory"];
if(!_217&&_20a["prototype"]){
_217=_20a.prototype["markupFactory"];
}
var _218=_217?_217(_20c,node,_20a):new _20a(_20c,node);
_206.push(_218);
var _219=node.getAttribute("jsId");
if(_219){
d.setObject(_219,_218);
}
if(!ps){
d.forEach(_212,function(_21a){
d.connect(_218,_21a.event,null,_21a.func);
});
d.forEach(_213,function(func){
func.call(_218);
});
}
});
d.forEach(_206,function(_21c){
if(_21c&&_21c.startup&&!_21c._started&&(!_21c.getParent||!_21c.getParent())){
_21c.startup();
}
});
return _206;
};
this.parse=function(_21d){
var list=d.query(qry,_21d);
var _21f=this.instantiate(list);
return _21f;
};
}();
(function(){
var _220=function(){
if(dojo.config["parseOnLoad"]==true){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_220);
}else{
dojo._loaders.unshift(_220);
}
})();
dojo.parser._anonCtr=0;
dojo.parser._anon={};
dojo.parser._nameAnonFunc=function(_221,_222){
var jpn="$joinpoint";
var nso=(_222||dojo.parser._anon);
if(dojo.isIE){
var cn=_221["__dojoNameCache"];
if(cn&&nso[cn]===_221){
return _221["__dojoNameCache"];
}
}
var ret="__"+dojo.parser._anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.parser._anonCtr++;
}
nso[ret]=_221;
return ret;
};
}
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(_230,map,_232,_233){
_233=_233||dojo.global;
_232=(!_232)?function(v){
return v;
}:dojo.hitch(_233,_232);
return _230.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_235,key,_237){
var _238=dojo.getObject(key,false,map);
if(_237){
_238=dojo.getObject(_237,false,_233).call(_233,_238,key);
}
return _232(_238,key).toString();
});
};
dojo.string.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(_23b,_23c){
if(_23b&&dojo.isFunction(_23b._onConnect)){
_23b._onConnect(_23c);
}
});
dijit._connectOnUseEventHandler=function(_23d){
};
(function(){
var _23e={};
var _23f=function(dc){
if(!_23e[dc]){
var r=[];
var _242;
var _243=dojo.getObject(dc).prototype;
for(var _244 in _243){
if(dojo.isFunction(_243[_244])&&(_242=_244.match(/^_set([a-zA-Z]*)Attr$/))&&_242[1]){
r.push(_242[1].charAt(0).toLowerCase()+_242[1].substr(1));
}
}
_23e[dc]=r;
}
return _23e[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",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")),postscript:function(_245,_246){
this.create(_245,_246);
},create:function(_247,_248){
this.srcNodeRef=dojo.byId(_248);
this._connects=[];
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(_247){
this.params=_247;
dojo.mixin(this,_247);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
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 _24a=function(attr,_24c){
if((_24c.params&&attr in _24c.params)||_24c[attr]){
_24c.attr(attr,_24c[attr]);
}
};
for(var attr in this.attributeMap){
_24a(attr,this);
}
dojo.forEach(_23f(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_24a(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.doc.createElement("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_24f){
this.destroyDescendants(_24f);
this.destroy(_24f);
},destroy:function(_250){
this.uninitialize();
dojo.forEach(this._connects,function(_251){
dojo.forEach(_251,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_250);
dijit.registry.remove(this.id);
},destroyRendering:function(_253){
if(this.bgIframe){
this.bgIframe.destroy(_253);
delete this.bgIframe;
}
if(this.domNode){
if(!_253){
dojo._destroyElement(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_253){
dojo._destroyElement(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_254){
dojo.forEach(this.getDescendants(),function(_255){
if(_255.destroy){
_255.destroy(_254);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_257){
if(_257 in this._deferredConnects){
var _258=this[this._deferredConnects[_257]||"domNode"];
this.connect(_258,_257.toLowerCase(),this[_257]);
delete this._deferredConnects[_257];
}
},_setClassAttr:function(_259){
var _25a=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_25a,this["class"]);
this["class"]=_259;
dojo.addClass(_25a,_259);
},_setStyleAttr:function(_25b){
var _25c=this[this.attributeMap["style"]||"domNode"];
if(_25c.style.cssText){
_25c.style.cssText+="; "+_25b;
}else{
_25c.style.cssText=_25b;
}
this["style"]=_25b;
},setAttribute:function(attr,_25e){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_25e);
},_attrToDom:function(attr,_260){
var _261=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_261)?_261:[_261],function(_262){
var _263=this[_262.node||_262||"domNode"];
var type=_262.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_260)){
_260=dojo.hitch(this,_260);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_263,attr,_260);
break;
case "innerHTML":
_263.innerHTML=_260;
break;
case "class":
dojo.removeClass(_263,this[attr]);
dojo.addClass(_263,_260);
break;
}
},this);
this[attr]=_260;
},attr:function(name,_266){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _269=this._getAttrNames(name);
if(args==2){
if(this[_269.s]){
return this[_269.s](_266)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_266);
}
this[name]=_266;
}
return this;
}else{
if(this[_269.g]){
return this[_269.g]();
}else{
return 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(){
if(this.containerNode){
var list=dojo.query("[widgetId]",this.containerNode);
return list.map(dijit.byNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_26f,_270){
var d=dojo;
var dco=d.hitch(d,"connect",obj);
var _273=[];
if(_26f=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_270);
_273.push(dco("onkeydown",this,function(e){
if(!d.isFF&&e.keyCode==d.keys.ENTER){
return m(e);
}else{
if(e.keyCode==d.keys.SPACE){
d.stopEvent(e);
}
}
}),dco("onkeyup",this,function(e){
if(e.keyCode==d.keys.SPACE){
return m(e);
}
}));
if(d.isFF){
_273.push(dco("onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER){
return m(e);
}
}));
}
}
_26f="onclick";
}
_273.push(dco(_26f,this,_270));
this._connects.push(_273);
return _273;
},disconnect:function(_278){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_278){
dojo.forEach(_278,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_27a,_27b){
if(_27a["declaredClass"]&&_27a["addChild"]){
_27a.addChild(this,_27b);
}else{
dojo.place(this.domNode,_27a,_27b);
}
return this;
}});
})();
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){
var _27d=this.declaredClass,_27e=this;
return dojo.string.substitute(tmpl,this,function(_27f,key){
if(key.charAt(0)=="!"){
_27f=_27e[key.substr(1)];
}
if(typeof _27f=="undefined"){
throw new Error(_27d+" template:"+key);
}
if(_27f==null){
return "";
}
return key.charAt(0)=="!"?_27f:_27f.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _281=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_281)){
node=dijit._Templated._createNodesFromText(this._stringRepl(_281))[0];
}else{
node=_281.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
var _283=this.srcNodeRef;
if(_283&&_283.parentNode){
_283.parentNode.replaceChild(node,_283);
}
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(_283);
},_fillContent:function(_287){
var dest=this.containerNode;
if(_287&&dest){
while(_287.hasChildNodes()){
dest.appendChild(_287.firstChild);
}
}
},_attachTemplateNodes:function(_289,_28a){
_28a=_28a||function(n,p){
return n.getAttribute(p);
};
var _28d=dojo.isArray(_289)?_289:(_289.all||_289.getElementsByTagName("*"));
var x=dojo.isArray(_289)?0:-1;
var _28f={};
for(;x<_28d.length;x++){
var _290=(x==-1)?_289:_28d[x];
if(this.widgetsInTemplate&&_28a(_290,"dojoType")){
continue;
}
var _291=_28a(_290,"dojoAttachPoint");
if(_291){
var _292,_293=_291.split(/\s*,\s*/);
while((_292=_293.shift())){
if(dojo.isArray(this[_292])){
this[_292].push(_290);
}else{
this[_292]=_290;
}
}
}
var _294=_28a(_290,"dojoAttachEvent");
if(_294){
var _295,_296=_294.split(/\s*,\s*/);
var trim=dojo.trim;
while((_295=_296.shift())){
if(_295){
var _298=null;
if(_295.indexOf(":")!=-1){
var _299=_295.split(":");
_295=trim(_299[0]);
_298=trim(_299[1]);
}else{
_295=trim(_295);
}
if(!_298){
_298=_295;
}
this.connect(_290,_295,_298);
}
}
}
var role=_28a(_290,"waiRole");
if(role){
dijit.setWaiRole(_290,role);
}
var _29b=_28a(_290,"waiState");
if(_29b){
dojo.forEach(_29b.split(/\s*,\s*/),function(_29c){
if(_29c.indexOf("-")!=-1){
var pair=_29c.split("-");
dijit.setWaiState(_290,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_29e,_29f,_2a0){
var _2a1=dijit._Templated._templateCache;
var key=_29f||_29e;
var _2a3=_2a1[key];
if(_2a3){
if(!_2a3.ownerDocument||_2a3.ownerDocument==dojo.doc){
return _2a3;
}
dojo._destroyElement(_2a3);
}
if(!_29f){
_29f=dijit._Templated._sanitizeTemplateString(dojo._getText(_29e));
}
_29f=dojo.string.trim(_29f);
if(_2a0||_29f.match(/\$\{([^\}]+)\}/g)){
return (_2a1[key]=_29f);
}else{
return (_2a1[key]=dijit._Templated._createNodesFromText(_29f)[0]);
}
};
dijit._Templated._sanitizeTemplateString=function(_2a4){
if(_2a4){
_2a4=_2a4.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _2a5=_2a4.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2a5){
_2a4=_2a5[1];
}
}else{
_2a4="";
}
return _2a4;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _2a6=dijit._Templated._templateCache;
for(var key in _2a6){
var _2a8=_2a6[key];
if(!isNaN(_2a8.nodeType)){
dojo._destroyElement(_2a8);
}
delete _2a6[key];
}
});
}
(function(){
var _2a9={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};
var tn;
dijit._Templated._createNodesFromText=function(text){
if(tn&&tn.ownerDocument!=dojo.doc){
dojo._destroyElement(tn);
tn=undefined;
}
if(!tn){
tn=dojo.doc.createElement("div");
tn.style.display="none";
dojo.body().appendChild(tn);
}
var _2ac="none";
var _2ad=text.replace(/^\s+/,"");
for(var type in _2a9){
var map=_2a9[type];
if(map.re.test(_2ad)){
_2ac=type;
text=map.pre+text+map.post;
break;
}
}
tn.innerHTML=text;
if(tn.normalize){
tn.normalize();
}
var tag={cell:"tr",row:"tbody",section:"table"}[_2ac];
var _2b1=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;
var _2b2=[];
while(_2b1.firstChild){
_2b2.push(_2b1.removeChild(_2b1.firstChild));
}
tn.innerHTML="";
return _2b2;
};
})();
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._Contained",null,{getParent:function(){
for(var p=this.domNode.parentNode;p;p=p.parentNode){
var id=p.getAttribute&&p.getAttribute("widgetId");
if(id){
var _2b5=dijit.byId(id);
return _2b5.isContainer?_2b5:null;
}
}
return null;
},_getSibling:function(_2b6){
var node=this.domNode;
do{
node=node[_2b6+"Sibling"];
}while(node&&node.nodeType!=1);
if(!node){
return null;
}
var id=node.getAttribute("widgetId");
return dijit.byId(id);
},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);
}});
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_2ba,_2bb){
var _2bc=this.containerNode;
if(_2bb&&typeof _2bb=="number"){
var _2bd=dojo.query("> [widgetId]",_2bc);
if(_2bd&&_2bd.length>=_2bb){
_2bc=_2bd[_2bb-1];
_2bb="after";
}
}
dojo.place(_2ba.domNode,_2bc,_2bb);
if(this._started&&!_2ba._started){
_2ba.startup();
}
},removeChild:function(_2be){
if(typeof _2be=="number"&&_2be>0){
_2be=this.getChildren()[_2be];
}
if(!_2be||!_2be.domNode){
return;
}
var node=_2be.domNode;
node.parentNode.removeChild(node);
},_nextElement:function(node){
do{
node=node.nextSibling;
}while(node&&node.nodeType!=1);
return node;
},_firstElement:function(node){
node=node.firstChild;
if(node&&node.nodeType!=1){
node=this._nextElement(node);
}
return node;
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return !!this._firstElement(this.containerNode);
},destroyDescendants:function(_2c2){
dojo.forEach(this.getChildren(),function(_2c3){
_2c3.destroyRecursive(_2c2);
});
},_getSiblingOfChild:function(_2c4,dir){
var node=_2c4.domNode;
var _2c7=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_2c7];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_2c8){
var _2c9=this.getChildren();
for(var i=0,c;c=_2c9[i];i++){
if(c==_2c8){
return i;
}
}
return -1;
}});
dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_2cc,_2cd){
var _2ce=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_2cc,function(code){
_2ce[code]=prev;
});
dojo.forEach(_2cd,function(code){
_2ce[code]=next;
});
this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus");
},startupKeyNavChildren:function(){
dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));
},addChild:function(_2d3,_2d4){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_2d3);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
this.focusChild(this._getFirstFocusableChild());
},focusNext:function(){
if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){
this.focusedChild.focusNext();
return;
}
var _2d5=this._getNextFocusableChild(this.focusedChild,1);
if(_2d5.getFocalNodes){
this.focusChild(_2d5,_2d5.getFocalNodes()[0]);
}else{
this.focusChild(_2d5);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _2d6=this._getNextFocusableChild(this.focusedChild,-1);
if(_2d6.getFocalNodes){
var _2d7=_2d6.getFocalNodes();
this.focusChild(_2d6,_2d7[_2d7.length-1]);
}else{
this.focusChild(_2d6);
}
},focusChild:function(_2d8,node){
if(_2d8){
if(this.focusedChild&&_2d8!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_2d8;
if(node&&_2d8.focusFocalNode){
_2d8.focusFocalNode(node);
}else{
_2d8.focus();
}
}
},_startupChild:function(_2da){
if(_2da.getFocalNodes){
dojo.forEach(_2da.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_2da.focusNode||_2da.domNode;
if(_2da.isFocusable()){
dojo.attr(node,"tabindex",-1);
}
this._connectNode(node);
}
},_connectNode:function(node){
this.connect(node,"onfocus","_onNodeFocus");
this.connect(node,"onblur","_onNodeBlur");
},_onContainerFocus:function(evt){
if(evt.target===this.domNode){
this.focusFirstChild();
}
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onNodeFocus:function(evt){
dojo.attr(this.domNode,"tabindex",-1);
var _2e2=dijit.getEnclosingWidget(evt.target);
if(_2e2&&_2e2.isFocusable()){
this.focusedChild=_2e2;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
dojo.stopEvent(evt);
},_onChildBlur:function(_2e4){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_2e5,dir){
if(_2e5){
_2e5=this._getSiblingOfChild(_2e5,dir);
}
var _2e7=this.getChildren();
for(var i=0;i<_2e7.length;i++){
if(!_2e5){
_2e5=_2e7[(dir>0)?0:(_2e7.length-1)];
}
if(_2e5.isFocusable()){
return _2e5;
}
_2e5=this._getSiblingOfChild(_2e5,dir);
}
return null;
}});
}
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);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_2e9){
_2e9.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this.connect(dojo.global,"onresize","resize");
}
this.inherited(arguments);
},resize:function(_2ea,_2eb){
var node=this.domNode;
if(_2ea){
dojo.marginBox(node,_2ea);
if(_2ea.t){
node.style.top=_2ea.t+"px";
}
if(_2ea.l){
node.style.left=_2ea.l+"px";
}
}
var mb=_2eb||{};
dojo.mixin(mb,_2ea||{});
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(_2f3){
if(_2f3.baseClass){
dojo.addClass(_2f3.domNode,this.baseClass+"-"+_2f3.baseClass);
}
},addChild:function(_2f4,_2f5){
this.inherited(arguments);
if(this._started){
this._setupChild(_2f4);
}
},removeChild:function(_2f6){
if(_2f6.baseClass){
dojo.removeClass(_2f6.domNode,this.baseClass+"-"+_2f6.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 _2fc=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_2ff,dim){
_2ff.resize?_2ff.resize(dim):dojo.marginBox(_2ff.domNode,dim);
dojo.mixin(_2ff,dojo.marginBox(_2ff.domNode));
dojo.mixin(_2ff,dim);
};
dijit.layout.layoutChildren=function(_301,dim,_303){
dim=dojo.mixin({},dim);
dojo.addClass(_301,"dijitLayoutContainer");
_303=dojo.filter(_303,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_303,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_303,function(_306){
var elm=_306.domNode,pos=_306.layoutAlign;
var _309=elm.style;
_309.left=dim.l+"px";
_309.top=dim.t+"px";
_309.bottom=_309.right="auto";
dojo.addClass(elm,"dijitAlign"+_2fc(pos));
if(pos=="top"||pos=="bottom"){
size(_306,{w:dim.w});
dim.h-=_306.h;
if(pos=="top"){
dim.t+=_306.h;
}else{
_309.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_306,{h:dim.h});
dim.w-=_306.w;
if(pos=="left"){
dim.l+=_306.w;
}else{
_309.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_306,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,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_30a){
this.disabled=_30a;
dojo.attr(this.focusNode,"disabled",_30a);
dijit.setWaiState(this.focusNode,"disabled",_30a);
if(_30a){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_30b){
dojo.deprecated("setDisabled("+_30b+") is deprecated. Use attr('disabled',"+_30b+") instead.","","2.0");
this.attr("disabled",_30b);
},_scroll:true,_onFocus:function(e){
if(this._scroll){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_30d){
var _30e=_30d.currentTarget;
if(_30e&&_30e.getAttribute){
this.stateModifier=_30e.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_30d.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 _30f=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_30f);
});
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 _310=this.baseClass.split(" ");
function multiply(_311){
_310=_310.concat(dojo.map(_310,function(c){
return c+_311;
}),"dijit"+_311);
};
if(this.checked){
multiply("Checked");
}
if(this.state){
multiply(this.state);
}
if(this.selected){
multiply("Selected");
}
if(this.disabled){
multiply("Disabled");
}else{
if(this.readOnly){
multiply("ReadOnly");
}else{
if(this._active){
multiply(this.stateModifier+"Active");
}else{
if(this._focused){
multiply("Focused");
}
if(this._hovering){
multiply(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_314={};
dojo.forEach(tn.className.split(" "),function(c){
_314[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _314[c];
});
}
dojo.forEach(_310,function(c){
_314[c]=true;
});
var _318=[];
for(var c in _314){
_318.push(c);
}
tn.className=_318.join(" ");
this._stateClasses=_310;
},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(_31c){
},_onChangeActive:false,_handleOnChange:function(_31d,_31e){
this._lastValue=_31d;
if(this._lastValueReported==undefined&&(_31e===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_31d;
}
if((this.intermediateChanges||_31e||_31e===undefined)&&((typeof _31d!=typeof this._lastValueReported)||this.compare(_31d,this._lastValueReported)!=0)){
this._lastValueReported=_31d;
if(this._onChangeActive){
this.onChange(_31d);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_31f){
dojo.deprecated("dijit.form._FormWidget:setValue("+_31f+") is deprecated.  Use attr('value',"+_31f+") instead.","","2.0");
this.attr("value",_31f);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_layoutHack:function(){
if(dojo.isFF==2&&!this._layoutHackHandle){
var node=this.domNode;
var old=node.style.opacity;
node.style.opacity="0.999";
this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){
this._layoutHackHandle=null;
node.style.opacity=old;
}),0);
}
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){
if(dojo.isIE||dojo.isSafari){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_322,_323){
this.value=_322;
this._handleOnChange(_322,_323);
},_getValueAttr:function(_324){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_valueChanged:function(){
var v=this.attr("value");
var lv=this._lastValueReported;
return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}else{
if(dojo.isSafari){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
},_onKeyPress:function(e){
if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){
this.undo();
dojo.stopEvent(e);
return false;
}else{
if(this.intermediateChanges){
var _32a=this;
setTimeout(function(){
_32a._handleOnChange(_32a.attr("value"),false);
},0);
}
}
return true;
}});
}
if(!dojo._hasResource["dijit.dijit"]){
dojo._hasResource["dijit.dijit"]=true;
dojo.provide("dijit.dijit");
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
dojo.provide("dojo.fx.Toggler");
(function(){
var _32b={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _32e=function(_32f){
this._index=-1;
this._animations=_32f||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
dojo.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
dojo.extend(_32e,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
dojo.disconnect(this._onAnimateCtx);
dojo.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=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_331,_332){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_332&&this._current.status()=="playing"){
return this;
}
var _333=dojo.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_334=dojo.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_336=dojo.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
dojo.disconnect(_333);
dojo.disconnect(_334);
dojo.disconnect(_336);
});
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=dojo.connect(this._current,"onPause",this,function(arg){
this._fire("onPause",arguments);
dojo.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_33a,_33b){
this.pause();
var _33c=this.duration*_33a;
this._current=null;
dojo.some(this._animations,function(a){
if(a.duration<=_33c){
this._current=a;
return true;
}
_33c-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_33c/this._current.duration,_33b);
}
return this;
},stop:function(_33e){
if(this._current){
if(_33e){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=dojo.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
dojo.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
}});
dojo.extend(_32e,_32b);
dojo.fx.chain=function(_341){
return new _32e(_341);
};
var _342=function(_343){
this._animations=_343||[];
this._connects=[];
this._finished=0;
this.duration=0;
dojo.forEach(_343,function(a){
var _345=a.duration;
if(a.delay){
_345+=a.delay;
}
if(this.duration<_345){
this.duration=_345;
}
this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});
dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));
},this);
};
dojo.extend(_342,{_doAction:function(_347,args){
dojo.forEach(this._animations,function(a){
a[_347].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_34a,args){
var t=this._pseudoAnimation;
t[_34a].apply(t,args);
},play:function(_34d,_34e){
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(_34f,_350){
var ms=this.duration*_34f;
dojo.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_350);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_353){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
dojo.forEach(this._connects,dojo.disconnect);
}});
dojo.extend(_342,_32b);
dojo.fx.combine=function(_354){
return new _342(_354);
};
})();
dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){
var _t=this;
dojo.mixin(_t,args);
_t.node=args.node;
_t._showArgs=dojo.mixin({},args);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},args);
_t._hideArgs.node=_t.node;
_t._hideArgs.duration=_t.hideDuration;
_t.hideAnim=_t.hideFunc(_t._hideArgs);
dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));
dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));
},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_357){
return this.showAnim.play(_357||0);
},hide:function(_358){
return this.hideAnim.play(_358||0);
}});
dojo.fx.wipeIn=function(args){
args.node=dojo.byId(args.node);
var node=args.node,s=node.style,o;
var anim=dojo.animateProperty(dojo.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 _35e=dojo.style(node,"height");
return Math.max(_35e,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
dojo.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=dojo.byId(args.node);
var s=node.style;
var o;
var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));
dojo.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
dojo.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=(args.node=dojo.byId(args.node));
var top=null;
var left=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));
dojo.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 _399=epages.Browser;
_399.engine="Unknown";
_399.version="Unknown";
if(window.opera){
_399.engine="Presto";
_399.version=window.opera.version();
}else{
var _39a=(navigator.appVersion+navigator.userAgent).toLowerCase();
if(_39a.match("msie")){
_399.engine="MSIE";
_399.version=(window.XDomainRequest&&dojo.isIE==7)?8:dojo.isIE;
var _39b=document.createElement("b");
_39b.style.cssText="max-height:1";
if(_39b.style.cssText.match("max-height")){
_399.version=6;
}
}else{
if(_39a.match("webkit")){
_399.engine="WebKit";
_399.version=dojo.isSafari;
}else{
if(_39a.match("gecko")){
_399.engine="Gecko";
_399.version=dojo.isFx||dojo.isFF;
}else{
if(_39a.match("khtml")){
_399.engine="KHTML";
}
}
}
}
}
(document.documentElement||document.body.parentNode).className+=" "+_399.engine+_399.version;
})();
(function(){
for(var _39c=15;_39c>3;_39c--){
var _39d=true;
if(navigator.plugins.length){
try{
var _39e=navigator.plugins["Shockwave Flash"].description;
_39d=_39e.slice(_39e.indexOf(".")-2,_39e.indexOf("."))>=_39c;
}
catch(e){
_39d=false;
}
}else{
try{
new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_39c);
}
catch(e){
_39d=false;
}
}
if(_39d){
epages.Browser.flashVersion=_39c;
break;
}
}
})();
}
if(!dojo._hasResource["epages.event"]){
dojo._hasResource["epages.event"]=true;
dojo.provide("epages.event");
epages.event.fire=function(_39f,_3a0){
if(epages.Browser.engine=="MSIE"){
try{
_39f.fireEvent("on"+_3a0);
}
catch(e){
}
}else{
if(_3a0=="click"||_3a0=="dblclick"||_3a0=="mousedown"||_3a0=="mousemove"||_3a0=="mouseout"||_3a0=="mouseover"||_3a0=="mouseup"){
var _3a1=document.createEvent("MouseEvents");
_3a1.initMouseEvent(_3a0,true,true,window,0,0,0,0,0,false,false,false,false,0,null);
}else{
var _3a1=document.createEvent("HTMLEvents");
_3a1.initEvent(_3a0,true,true);
}
_39f.dispatchEvent(_3a1);
}
};
}
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,_3a4){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_3a4){
str=str.replace(/'/gm,"&#39;");
}
return str;
},toBoolean:function(_3a5){
if(_3a5===undefined){
return false;
}
if(typeof _3a5=="boolean"){
return _3a5;
}
if(typeof _3a5!="string"){
throw new Error("Not a string value, got "+typeof (_3a5)+"!");
}
return _3a5.toLowerCase()==="true"||_3a5=="1"?true:false;
},toTime:function(_3a6,_3a7){
if(_3a6==""){
return null;
}
if(_3a7==null||_3a7.length==0){
_3a7=epages.vars.Locale.timeFormat;
}
var _3a8=epages.localize.getDojoDateTimePattern(_3a7);
date=dojo.date.locale.parse(_3a6,{selector:"date",datePattern:_3a8,timePattern:""});
if(date===null){
date=dojo.date.locale.parse(_3a6,{selector:"date",datePattern:"HH:mm a",timePattern:""});
}
if(date===null){
date=dojo.date.locale.parse(_3a6,{selector:"date",datePattern:"HH a",timePattern:""});
}
if(date===null){
date=dojo.date.locale.parse(_3a6,{selector:"date",datePattern:"HH",timePattern:""});
}
return date;
},cssSizeToNumber:function(_3a9){
if(typeof _3a9=="string"){
if(_3a9.match(/^([0-9]+)(px|pt)$/i)){
var n=parseInt(RegExp.$1);
return n;
}
if(_3a9.match(/^([0-9]*\.?[0-9]+)(pc|%|mm|cm|em|in|ex)$/i)){
var n=parseFloat(RegExp.$1);
return n;
}
if(_3a9.match(/^[0]+$/)){
return 0;
}
}
return NaN;
},split:function(_3ab,rx){
if(epages.Browser.engine!="MSIE"){
return _3ab.split(rx);
}
var _3ad="";
do{
_3ad+=Date.toString();
}while(_3ab.match(_3ad));
_3ab=_3ab.replace(rx,"|"+_3ad+"|");
var _3ae=_3ab.split(_3ad);
for(var i=0;i<_3ae.length;i++){
_3ae[i]=_3ae[i].replace(/^(?:\|)?(.*?)(?:\|)?$/g,function(tmp,_3b1){
return _3b1;
});
}
return _3ae;
}};
epages.string.Base64=function(){
};
epages.string.Base64.prototype={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(_3b2){
var _3b3="";
var chr1,chr2,chr3,enc1,enc2,enc3,enc4;
var i=0;
_3b2=this._utf8_encode(_3b2);
if(typeof (window.btoa)=="function"){
return window.btoa(_3b2);
}
while(i<_3b2.length){
chr1=_3b2.charCodeAt(i++);
chr2=_3b2.charCodeAt(i++);
chr3=_3b2.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;
}
}
_3b3=_3b3+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);
}
return _3b3;
},decode:function(_3bc){
var _3bd="";
var chr1,chr2,chr3;
var enc1,enc2,enc3,enc4;
var i=0;
_3bc=_3bc.replace(/[^A-Za-z0-9\+\/\=]/g,"");
if(typeof (window.atob)=="function"){
_3bd=window.atob(_3bc);
}else{
while(i<_3bc.length){
enc1=this._keyStr.indexOf(_3bc.charAt(i++));
enc2=this._keyStr.indexOf(_3bc.charAt(i++));
enc3=this._keyStr.indexOf(_3bc.charAt(i++));
enc4=this._keyStr.indexOf(_3bc.charAt(i++));
chr1=(enc1<<2)|(enc2>>4);
chr2=((enc2&15)<<4)|(enc3>>2);
chr3=((enc3&3)<<6)|enc4;
_3bd=_3bd+String.fromCharCode(chr1);
if(enc3!=64){
_3bd=_3bd+String.fromCharCode(chr2);
}
if(enc4!=64){
_3bd=_3bd+String.fromCharCode(chr3);
}
}
}
_3bd=this._utf8_decode(_3bd);
return _3bd;
},_utf8_encode:function(_3c6){
_3c6=_3c6.replace(/\r\n/g,"\n");
var _3c7="";
for(var n=0;n<_3c6.length;n++){
var c=_3c6.charCodeAt(n);
if(c<128){
_3c7+=String.fromCharCode(c);
}else{
if((c>127)&&(c<2048)){
_3c7+=String.fromCharCode((c>>6)|192);
_3c7+=String.fromCharCode((c&63)|128);
}else{
_3c7+=String.fromCharCode((c>>12)|224);
_3c7+=String.fromCharCode(((c>>6)&63)|128);
_3c7+=String.fromCharCode((c&63)|128);
}
}
}
return _3c7;
},_utf8_decode:function(_3ca){
var _3cb="";
var i=0;
var c=c1=c2=0;
while(i<_3ca.length){
c=_3ca.charCodeAt(i);
if(c<128){
_3cb+=String.fromCharCode(c);
i++;
}else{
if((c>191)&&(c<224)){
c2=_3ca.charCodeAt(i+1);
_3cb+=String.fromCharCode(((c&31)<<6)|(c2&63));
i+=2;
}else{
c2=_3ca.charCodeAt(i+1);
c3=_3ca.charCodeAt(i+2);
_3cb+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));
i+=3;
}
}
}
return _3cb;
}};
}
if(!dojo._hasResource["epages.lang.array"]){
dojo._hasResource["epages.lang.array"]=true;
dojo.provide("epages.lang.array");
$A=function(_3ce,_3cf){
return new epages.lang.Array(_3ce,_3cf);
};
epages.lang.Array=function(_3d0,_3d1){
if(_3d1===undefined){
_3d1=false;
}
var _3d2=[];
if(_3d0!==undefined){
if(_3d0._data!==undefined){
_3d0=_3d0._data;
}
if(_3d1){
for(var i=0,_3d4=_3d0.length;i<_3d4;i++){
_3d2.push(_3d0[i]);
}
}else{
_3d2=_3d0;
}
}
this._data=_3d2;
this.length=_3d2.length;
};
epages.lang.Array.prototype={_data:undefined,length:0,get:function(_3d5){
return this._data[_3d5];
},set:function(_3d6,_3d7){
this._data[_3d6]=_3d7;
},insertAt:function(_3d8,_3d9){
if(!_3d8){
this.unshift(_3d9);
}else{
if(_3d8==this.length){
this.push(_3d9);
}else{
var c=this._data;
for(var i=this.length;i>_3d8;i--){
c[i]=c[i-1];
}
c[_3d8]=_3d9;
this.length=c.length;
}
}
},push:function(){
for(var i=0,_3dd=arguments.length;i<_3dd;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,_3e0=arguments.length;i<_3e0;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(_3e2,_3e3){
if(_3e3===undefined){
return dojo.filter(this._data,_3e2);
}
return dojo.filter(this._data,_3e2,_3e3);
},map:function(_3e4,_3e5){
return dojo.map(this._data,_3e4,_3e5);
},each:function(_3e6,_3e7){
dojo.map(this._data,_3e6,_3e7);
return;
},match:function(_3e8){
var _3e9=[];
for(var i=0,_3eb=this._data.length;i<_3eb;i++){
var _3ec=this._data[i];
if(typeof _3ec.match=="function"&&_3ec.match(_3e8)){
_3e9.push(_3ec);
}
}
return _3e9;
},exists:function(_3ed){
return (this.find(_3ed)!==null);
},find:function(_3ee){
for(var i=0,_3f0=this._data.length;i<_3f0;i++){
if(_3ee===this._data[i]){
return i;
}
}
return null;
},remove:function(_3f1){
this._data.splice(_3f1,1);
this.length=this._data.length;
},unique:function(){
var _3f2=new epages.lang.Array();
var i=0;
while(i<this._data.length){
if(_3f2.find(this._data[i])==null){
_3f2.push(this._data[i]);
i++;
}else{
this._data.splice(i,1);
}
}
this.length=this._data.length;
},equals:function(_3f4){
if(_3f4.length==this.length){
if(typeof _3f4._data!="undefined"){
for(var i=0;i<this.length;i++){
if(this._data[i]!==_3f4._data[i]){
return false;
}
}
}else{
for(var i=0;i<this.length;i++){
if(this._data[i]!==_3f4[i]){
return false;
}
}
}
return true;
}else{
return false;
}
},merge:function(_3f6){
var c=[];
if(dojo.isArray(_3f6)){
c=_3f6;
}else{
if(_3f6._data!==undefined){
c=_3f6._data;
}
}
for(var i=0;i<c.length;i++){
this._data.push(c[i]);
}
this.length=this._data.length;
},join:function(_3f9){
return this._data.join(_3f9);
},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(_3fc){
return this._data.sort(_3fc);
}};
}
if(!dojo._hasResource["epages.lang.hash"]){
dojo._hasResource["epages.lang.hash"]=true;
dojo.provide("epages.lang.hash");
$H=function(_3fd){
return new epages.lang.Hash(_3fd);
};
epages.lang.Hash=function(_3fe){
this._data=new Object();
var data=this._data;
if(_3fe!==undefined){
if(typeof _3fe.each=="function"){
_3fe.each(function(pair){
data[pair.key]=pair.value;
});
}else{
for(var key in _3fe){
data[key]=_3fe[key];
}
}
}
};
epages.lang.Hash.prototype={_data:undefined,data:function(){
return this._data;
},each:function(_402){
for(var key in this._data){
var _404=this._data[key];
var pair=[key,_404];
pair.key=key;
pair.value=_404;
_402(pair);
}
},flatten:function(){
var _406="";
this.each(function(pair){
_406+="<element><key>"+pair.key+"</key><value>"+pair.value+"</value></element>\n";
});
return "<epages.lang.Hash>\n"+_406+"</epages.lang.Hash>\n";
},keys:function(){
var _408=[];
this.each(function(pair){
_408.push(pair.key);
});
return _408;
},values:function(){
var _40a=[];
this.each(function(pair){
_40a.push(pair.value);
});
return _40a;
},set:function(key,_40d){
this._data[key]=_40d;
},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 _411 in this._data){
if(_411==key){
return true;
}
}
return false;
},existsValue:function(_412){
return this.find(_412)!==undefined;
},find:function(_413){
for(var key in this._data){
if(this._data[key]===_413){
return key;
}
}
return undefined;
},toQueryString:function(){
var _415=[];
this.each(function(pair){
if(pair.value!==undefined&&pair.value!=null){
var _417=encodeURIComponent(pair.key);
if(dojo.isArray(pair.value)){
for(var i=0;i<pair.value.length;i++){
_415.push(_417+"="+encodeURIComponent(pair.value[i]));
}
}else{
_415.push(_417+"="+encodeURIComponent(pair.value));
}
}
});
return _415.join("&");
},toString:function(){
var _419=[];
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)+"\"";
}
}
}
}
_419.push("\""+epages.string.escapeJavaScript(pair.key)+"\":"+v);
});
return "{"+_419.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(_41c){
for(var i=0;i<epages._windows.length;i++){
if(epages._windows[i].dijit!=null&&typeof epages._windows[i].dijit.byId=="function"){
var _41e=epages._windows[i].dijit.byId(_41c);
if(_41e){
return _41e;
}
}
}
};
}
epages.widget.parserClasses=$H();
dojo.parser.instantiateOrg=dojo.parser.instantiate;
dojo.parser.instantiate=function(_41f){
var w=epages.widget.parserClasses;
if(epages.Browser.engine!="Presto"){
var d=dojo;
d.forEach(_41f,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(_41f);
};
dojo.declare("epages.widget.Popup",[dijit._Widget],{parent:"",around:"",hideOnBlur:false,_visible:false,show:function(){
dijit.popup.open({popup:this,parent:this.parent,around:this.around,orient:{"BR":"TR","BL":"TL"}});
this._visible=true;
dijit.focus(this.domNode);
},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],{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){
this.templatePath=this._templateDirectory+"/"+this._templateMapping[this.templateType];
this.templateString="";
}
}else{
console.warn("Template type: \""+this.templateType+"\" does not exist in this widet - 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,_425){
var _426;
var _427=_425!==undefined?dojo.xhrPost:dojo.xhrGet;
_427({url:url,handleAs:"xml",sync:true,preventCache:epages.constants.preventCache,load:function(data){
_426=data;
},content:_425});
return _426;
},loadAsync:function(url,_42a,_42b){
var _42c=_42b!==undefined?dojo.xhrPost:dojo.xhrGet;
_42c({url:url,handleAs:"xml",preventCache:epages.constants.preventCache,load:_42a,content:_42b});
return;
}};
}
if(!dojo._hasResource["epages.io.translation"]){
dojo._hasResource["epages.io.translation"]=true;
dojo.provide("epages.io.translation");
epages.io.Translation=function(url,_42e){
this.translation=new epages.lang.Hash();
this.loadedFiles=new epages.lang.Array();
if(url!==undefined){
if(_42e===undefined){
this.load(url);
}else{
this.loadLocale(url,(_42e!="auto")?_42e:undefined);
}
}
};
dojo.extend(epages.io.Translation,epages.io.Xml.prototype);
dojo.extend(epages.io.Translation,{translation:null,loadedFiles:null,useLocale:false,load:function(url,_430){
if(this.loadedFiles.exists(url)){
return true;
}
if(_430===undefined){
_430=false;
}
var _431=this.loadSync(url);
this.loadedFiles.push(url);
if(_431===undefined){
if(!_430){
throw new Error("translation undefined");
}
return false;
}
var tags=_431.getElementsByTagName("Translation");
for(var _433=0;_433<tags.length;_433++){
var _434=tags[_433];
if(_434.nodeType==1){
var data="";
for(var i=0;i<_434.childNodes.length;i++){
var _437=_434.childNodes[i];
data+=_437.nodeName.match(/notrans/i)?_437.firstChild.data:_437.data;
}
this.translation.set(_434.getAttribute("Keyword"),data);
}
}
return true;
},loadLocale:function(url,_439){
if(_439===undefined){
_439=dojo.locale;
}
var _43a=_439.split("-");
var _43b=this.load(url+"."+_43a[0]+".xml",true);
if(this.useLocale&&_43a.length>1){
this.load(url+"."+_43a[0]+"_"+_43a[1].toUpperCase()+".xml",true);
}
return _43b;
},exists:function(key){
return this.translation.existsKey(key)||(this!=epages.io.dictionary&&epages.io.dictionary.translation.existsKey(key));
},get:function(key,vars){
var _43f=this.translation.get(key);
if(_43f===undefined&&this!=epages.io.dictionary){
return epages.io.dictionary.get(key,vars);
}
return (_43f===undefined)?"{"+key+"}":this.replaceVars(_43f,vars);
},replaceLanguageTags:function(txt){
var _441=new RegExp("{(.*?)}","g");
return txt.replace(_441,dojo.hitch(this,function(_442,tag){
return this.get(tag);
}));
},replaceVars:function(txt,vars){
var _446=new RegExp("#([a-zA-Z_][a-zA-Z0-9_]*)","g");
return txt.replace(_446,dojo.hitch(vars,function(_447,_448){
return this[_448]!==undefined?this[_448]:_447;
}));
}});
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(_449,_44a){
returnValue=[];
for(var i=0;i<_449.childNodes.length;i++){
var e=_449.childNodes[i];
if(e.nodeName==_44a){
returnValue.push(e);
}
}
return returnValue;
},getElementsByClassName:function(_44d,_44e){
if(_44e==null){
_44e=dojo.body();
}
return dojo.query("."+_44d,_44e);
},replaceClass:function(node,_450,_451){
var _452=new RegExp("(^|\\s+)"+_451+"($|\\s+)","g");
node.className=node.className.replace(_452,"$1"+_450+"$2");
},removeChildren:function(node){
while(node.firstChild){
node.removeChild(node.firstChild);
}
},disableHrefsAndActions:function(_454){
if(_454==null){
_454=dojo.body();
}
var _455=_454.getElementsByTagName("a");
for(var i=0;i<_455.length;i++){
var tag=_455[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 _459=_454.getElementsByTagName("form");
for(var i=0;i<_459.length;i++){
_459[i].onsubmit=function(){
return false;
};
}
var _45a=["input","button","select","option","a"];
var _45b=["onchange","onclick","onselect","onkeyup","onkeypress","onmouseup"];
for(var j=0;j<_45a.length;j++){
var _45d=_454.getElementsByTagName(_45a[j]);
for(var i=0;i<_45d.length;i++){
var e=_45d[i];
for(var k=0;k<_45b.length;k++){
var _460=e.getAttribute(_45b[k]);
if(_460){
if((typeof _460=="string")||(typeof _460=="function")){
dojo.connect(e,_45b[k],dojo,"stopEvent");
e.setAttribute(_45b[k],"return false;");
}
}
}
}
}
},getHref:function(_461){
if(_461.outerHTML){
var html=_461.outerHTML;
var href=html.match(/\s*href\s*\=\s*["'](.*?)["']/i);
if(href&&href[1]){
return href[1];
}
return null;
}
return _461.getAttribute("href");
},isInnerEvent:function(evt,_465){
if(!dojo.isArray(_465)){
_465=[_465];
}
var _466=evt.explicitOriginalTarget;
for(var i=0;i<_465.length;i++){
if(dojo.isDescendant(_466,_465[i])){
return true;
}
}
return false;
},encodeEntity:function(_468,_469){
if(_469==null){
_469=false;
}
var rx=new RegExp("\r?\n","g");
var _46b=epages.string.split(_468,rx);
var _46c=document.createTextNode("");
var node=document.createElement("span");
node.appendChild(_46c);
for(var i=0;i<_46b.length;i++){
_46c.nodeValue=_46b[i];
_46b[i]=node.innerHTML;
}
return _46b.join(_469?"<br/>\n":"\n");
},decodeEntity:function(_46f,_470){
if(_470==null){
_470=false;
}
var node=document.createElement("span");
node.innerHTML=_46f;
var _472=node.firstChild.nodeValue;
if(_470){
_472=_472.replace(/\<br\s*\/?\>\r?\n/gi,"\n");
}
return _472;
},insertAtCursor:function(_473,_474,doc){
if(doc===undefined){
doc=window.document;
}
var _476=$(_474,doc);
if(doc.selection){
_476.focus();
sel=doc.selection.createRange();
sel.text=_473;
}else{
if(_476.selectionStart||_476.selectionStart=="0"){
var _477=_476.selectionStart;
var _478=_476.selectionEnd;
_476.value=_476.value.substring(0,_477)+_473+_476.value.substring(_478,_476.value.length);
_476.selectionStart=_477+_473.length;
_476.selectionEnd=_477+_473.length;
}else{
_476.value+=_473;
}
}
epages.event.fire(_476,"change");
}});
}
if(!dojo._hasResource["epages.html.element"]){
dojo._hasResource["epages.html.element"]=true;
dojo.provide("epages.html.element");
epages.html.Element=function(_479){
if(_479===undefined){
throw new Error("epages.html.Element: initialize without object");
}else{
if(typeof _479=="string"){
_479=$(_479);
if(_479===undefined){
throw new Error("epages.html.Element: initialize without object, unknown element id");
}
}
}
this.object=_479;
};
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(_47a){
var type=this.object.type;
switch(type){
case "checkbox":
case "radio":
var _47c=this.object.form.elements;
var name=this.object.name;
dojo.forEach(_47c,function(_47e){
if(_47e.type==type&&_47e.name==name&&_47e.value==_47a){
_47e.checked=true;
}
});
break;
default:
this.object.value=_47a;
}
},connectChangeEvent:function(_47f){
dojo.connect(this.object,(this.object.type=="radio"?"onclick":"onchange"),_47f);
},callOnChange:function(){
epages.event.fire(this.object,"change");
},firstElement:function(_480,_481){
var _482=undefined;
var data=this.object.childNodes;
for(var _484=0;_484<data.length&&_482===undefined;_484++){
if(_480!=1&&data[_484].nodeType==_480||data[_484].nodeType==1&&data[_484].nodeName==_481){
_482=data[_484];
}
}
return (_482);
},firstComment:function(){
var _485=this.firstElement(8,"COMMENT");
return (_485===undefined?undefined:_485.data);
},getIframeDocument:function(_486){
if(_486===undefined&&this.object.tagName.toLowerCase()=="iframe"){
_486=this.object;
}
if(_486===undefined){
return _486;
}
return (_486.contentDocument===undefined)?_486.contentWindow.document:_486.contentDocument;
},addClassName:function(_487){
dojo.addClass(this.object,_487);
},removeClassName:function(_488){
dojo.removeClass(this.object,_488);
},changeClassName:function(_489,_48a){
epages.html.replaceClass(this.object,_48a,_489);
},getAbsolutePosition:function(_48b){
var node=this.object;
var x=0,y=0;
while(node&&node!=_48b){
if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){
x+=node.offsetLeft;
y+=node.offsetTop;
}
node=node.offsetParent;
}
return {"x":x,"y":y};
},getPositionToParent:function(_48f){
var node=this.object;
var x=0,y=0;
while(node!=undefined&&_48f!==node){
if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){
x+=node.offsetLeft;
y+=node.offsetTop;
}
node=node.parentNode;
}
return {"x":x,"y":y};
},getRelativePosition:function(){
var node=this.object;
var x=0,y=0;
var _496=dojo.getComputedStyle(node).position;
while(node!=undefined&&_496!="relative"&&_496!="absolute"){
if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){
x+=node.offsetLeft;
y+=node.offsetTop;
}
node=node.offsetParent;
_496=dojo.getComputedStyle(node).position;
}
return {"x":x,"y":y};
},setCss:function(_497){
for(var _498 in _497){
this.object.style[_498]=_497[_498];
}
},makeWidgets:function(){
dojo.parser.parse(this.object);
},toQueryString:function(){
return encodeURIComponent(this.object.name)+"="+encodeURIComponent(this.get());
},addEventListener:function(_499,_49a,_49b){
if(_49b==null){
_49b=false;
}
_499=_499.replace(/^on/,"");
if(this.object.addEventListener){
return this.object.addEventListener(_499,_49a,_49b);
}else{
if(this.object.attachEvent){
return this.object.attachEvent("on"+_499,_49a);
}
}
throw new Error("element.addEventListener: could not add event listener for event "+_499);
},removeEventListener:function(_49c,_49d,_49e){
if(_49e==null){
_49e=false;
}
_49c=_49c.replace(/^on/,"");
if(this.object.removeEventListener){
return this.object.removeEventListener(_49c,_49d,_49e);
}else{
if(this.object.detachEvent){
return this.object.detachEvent("on"+_49c,_49d);
}
}
console.debug("element.removeEventListener: could not remove event listener for event "+_49c+(typeof this.object.detachEvent));
return false;
},replaceChild:function(_49f,_4a0){
_49f=this._changeNodeDocument(_49f,_4a0.ownerDocument);
this.object.replaceChild(_49f,_4a0);
},appendChild:function(_4a1){
_4a1=this._changeNodeDocument(_4a1,this.object.ownerDocument);
this.object.appendChild(_4a1);
},_changeNodeDocument:function(node,_4a3){
if(node.ownerDocument!=_4a3&&node.outerHTML!=null){
var _4a4=node.outerHTML;
node=_4a3.createElement("span");
node.outerHTML=_4a4;
}
return node;
},getLabel:function(){
var id=this.object.id;
if(id==null){
return;
}
var _4a6=this.object.ownerDocument.getElementsByTagName("label");
for(var i=0;i<_4a6.length;i++){
if(_4a6[i].htmlFor==id){
return _4a6[i].innerHTML;
}
}
}});
$E=function(_4a8){
return new epages.html.Element(_4a8);
};
}
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 dijit._Templated._createNodesFromText(this.translation.replaceLanguageTags(text))[0];
},buildRendering:function(){
var _4ac=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache,this.translation);
var node;
if(dojo.isString(_4ac)){
var _4ae=this.declaredClass,_4af=this;
var tstr=dojo.string.substitute(_4ac,this,function(_4b1,key){
if(key.charAt(0)=="!"){
_4b1=_4af[key.substr(1)];
}
if(typeof _4b1=="undefined"){
throw new Error(_4ae+" template:"+key);
}
if(!_4b1){
return "";
}
return key.charAt(0)=="!"?_4b1:_4b1.toString().replace(/"/g,"&quot;");
},this);
node=this.createNodesFromText(tstr);
}else{
node=_4ac.cloneNode(true);
}
this._attachTemplateNodes(node);
var _4b3=this.srcNodeRef;
if(_4b3&&_4b3.parentNode){
$E(_4b3.parentNode).replaceChild(node,_4b3);
}
this.domNode=node;
if(this.widgetsInTemplate){
var _4b4=dojo.parser.parse(node);
this._attachTemplateNodes(_4b4,function(n,p){
return n[p];
});
}
this._fillContent(_4b3);
},getCachedTemplate:function(_4b7,_4b8,_4b9,_4ba){
var _4bb=dijit._Templated._templateCache;
var key=_4b8||_4b7;
var _4bd=_4bb[key];
if(_4bd){
return _4bd;
}
if(!_4b8){
_4b8=dijit._Templated._sanitizeTemplateString(dojo._getText(_4b7));
}
_4b8=dojo.string.trim(_4b8);
if(_4b8.match(/\$\{([^\}]+)\}/g)||_4b9){
return (_4bb[key]=_4b8);
}else{
return (_4bb[key]=this.createNodesFromText(_4b8));
}
}});
}
if(!dojo._hasResource["epages.event.interval"]){
dojo._hasResource["epages.event.interval"]=true;
dojo.provide("epages.event.interval");
epages.event.interval={_container:[],_setIntervalSecure:function(_4be,task,_4c0){
if(this._container[_4be]!=null){
setTimeout(dojo.hitch(this,function(){
this._setIntervalSecure(_4be,task,_4c0);
}),_4c0);
task();
}
},set:function(task,_4c2){
var _4c3=this._container.length;
this._container.push(_4c3);
setTimeout(dojo.hitch(this,function(){
this._setIntervalSecure(_4c3,task,_4c2);
}),_4c2);
return _4c3;
},clear:function(_4c4){
this._container[_4c4]=null;
}};
}
if(!dojo._hasResource["epages.widget.Slides"]){
dojo._hasResource["epages.widget.Slides"]=true;
dojo.provide("epages.widget.Slides");
dojo.declare("epages.widget.Slides",[epages.widget.LocalizedWidget],{templateString:"<div class=\"SlideShow\">\n  <div class=\"SlideshowContainer\">\n    <div class=\"MainContainer\" dojoAttachPoint=\"mainNode\">\n      <div class=\"DescriptionContainer\" dojoAttachPoint=\"descriptionNode\"></div>\n      <div class=\"MiscContainer\" dojoAttachPoint=\"miscNode\">\n        <div class=\"MiscClipper\" dojoAttachPoint=\"miscNodeClipper\">\n          <div class=\"Counter\" dojoAttachPoint=\"countNode\"></div>\n          <div class=\"Date\" dojoAttachPoint=\"dateNode\"></div>\n          <div class=\"Title\" dojoAttachPoint=\"titleNode\"></div>\n        </div>\n      </div>\n      <div class=\"ImageContainer\">\n        <div class=\"ImageAligner\">\n          <table class=\"ImageTableTemplate\" dojoAttachPoint=\"imageTable\"><tr><td>\n            <b></b>\n          </td></tr></table>\n        </div>\n      </div>\n      <div class=\"ControlContainer\">\n        <div class=\"ControlBar\" dojoAttachPoint=\"controlNode\"></div>\n      </div>\n    </div>\n  </div>\n</div>\n",imagePath:epages.themeUrl("images"),translationName:dojo.moduleUrl("epages.widget","templates/translation"),loaderImagePath:epages.themeUrl("images")+"/img_busy.gif",errorImagePath:epages.themeUrl("images")+"/slideshow_img_broken_image.png",controlBarImages:[[epages.themeUrl("images")+"/slideshow_img_bg.png",epages.themeUrl("images")+"/slideshow_img_bg_small.png",epages.themeUrl("images")+"/slideshow_img_bg_smaller.png"],[epages.themeUrl("images")+"/slideshow_ico_l_rewind.png",epages.themeUrl("images")+"/slideshow_ico_s_rewind.png"],[epages.themeUrl("images")+"/slideshow_ico_l_pause.png",epages.themeUrl("images")+"/slideshow_ico_s_pause.png"],[epages.themeUrl("images")+"/slideshow_ico_l_play.png",epages.themeUrl("images")+"/slideshow_ico_s_play.png"],[epages.themeUrl("images")+"/slideshow_ico_l_overview.png",epages.themeUrl("images")+"/slideshow_ico_s_overview.png"],[epages.themeUrl("images")+"/slideshow_ico_l_details.png",epages.themeUrl("images")+"/slideshow_ico_s_details.png"],[epages.themeUrl("images")+"/slideshow_ico_l_forward.png",epages.themeUrl("images")+"/slideshow_ico_s_forward.png"]],delay:3500,protraction:1200,imageWidth:"450px",imageHeight:"300px",tiny:false,stopped:false,overview:true,imageClickOverview:true,showName:true,showDescription:true,showControls:true,showMisc:true,showIndex:0,_images:undefined,_oldShowIndex:0,_loadedIndex:0,_loadedImages:0,_pauseIcon:0,_playIcon:0,_fadeEasing:dojo.fx.easing.easeOut,_overviewArea:null,_overviewBackground:null,_overviewImageCounter:null,_controlBarFadeOut:null,_playerBeacon:null,_hiddenDetails:false,_changingImage:true,_globalOverview:true,_reAlignReady:true,_delayExec:function(task,_4c6){
return setTimeout(dojo.hitch(this,task),_4c6);
},_getAlphaImage:function(_4c7,_4c8){
var _4c9=document.createElement("span");
var _4ca=document.createElement("span");
var _4cb="";
if(epages.Browser.engine=="MSIE"&&_4c7.match(".png")){
_4c8=_4c8?"scale":"crop";
_4cb="class='AlphaImage'";
_4ca.style.zoom="1";
_4ca.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+encodeURI(_4c7)+"', sizingMethod='"+_4c8+"')";
}
var _4cc="<img "+_4cb+" alt='' src='"+_4c7+"' onerror=''/>";
_4ca.innerHTML=_4cc;
_4c9.appendChild(_4ca);
_4c9.className="Image";
return _4c9;
},_drawControlBar:function(){
if(this.tiny){
this.controlNode.className="ControlBarMini";
}
if(!this.showControls){
this.controlNode.style.display="none";
}
var _4cd=0;
if(!this.overview||!this.showDescription){
_4cd=1;
}else{
if(!this.overview&&!this.showDescription){
_4cd=2;
}
}
var _4ce=this.tiny?document.createElement("div"):this._getAlphaImage(this.controlBarImages[0][_4cd]);
_4ce.className="ControlBarBg";
this.controlNode.appendChild(_4ce);
if(!this.overview&&this.showControls){
_4ce.parentNode.style.width=(_4ce.offsetWidth-(this.tiny?16:32))+"px";
}
if(!this.showDescription&&this.showControls){
_4ce.parentNode.style.width=(_4ce.offsetWidth-(this.tiny?16:32))+"px";
}
var _4cf=this._getAlphaImage(this.controlBarImages[1][this.tiny?1:0]);
_4cf.className="SlideshowButton";
this.controlNode.appendChild(_4cf);
dojo.connect(_4cf,"onclick",this,"_rewindClick");
var _4d0=this._getAlphaImage(this.controlBarImages[2][this.tiny?1:0]);
_4d0.className="SlideshowButton";
if(this.stopped){
_4d0.style.position="absolute";
_4d0.style.visibility="hidden";
}
this.controlNode.appendChild(_4d0);
dojo.connect(_4d0,"onclick",this,"_pauseClick");
this._pauseIcon=_4d0;
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 _4d1=this._getAlphaImage(this.controlBarImages[4][this.tiny?1:0]);
_4d1.className="SlideshowButton";
this.controlNode.appendChild(_4d1);
dojo.connect(_4d1,"onclick",this,"_overviewClick");
}
if(this.showDescription){
var _4d2=this._getAlphaImage(this.controlBarImages[5][this.tiny?1:0]);
_4d2.className="SlideshowButton";
this.controlNode.appendChild(_4d2);
dojo.connect(_4d2,"onclick",this,"_detailsClick");
}
var _4d3=this._getAlphaImage(this.controlBarImages[6][this.tiny?1:0]);
_4d3.className="SlideshowButton";
this.controlNode.appendChild(_4d3);
dojo.connect(_4d3,"onclick",this,"_forwardClick");
dojo.style(this.controlNode,"opacity",0);
return [_4cf,playIcon,_4d0,_4d1?_4d1:null,_4d2?_4d2:null,_4d3];
},_controlBarButtonOver:function(_4d4){
dojo.addClass(_4d4.currentTarget,"Highlighted");
document.onselectstart=function(){
return false;
};
},_controlBarButtonOut:function(_4d5){
dojo.removeClass(_4d5.currentTarget,"Highlighted");
dojo.removeClass(_4d5.currentTarget,"Hit");
document.onselectstart=function(){
return true;
};
},_controlBarButtonDown:function(_4d6){
dojo.addClass(_4d6.currentTarget,"Hit");
},_controlBarButtonUp:function(_4d7){
dojo.removeClass(_4d7.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(_4d8){
var _4d9=_4d8.currentTarget;
_4d9.src=this.errorImagePath;
_4d9.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(_4da){
if(typeof (_4da)=="object"){
_4da=null;
}
this._pauseClick();
if(this._loadedIndex>=this.showIndex&&!this._overviewArea){
var _4db=document.createElement("div");
_4db.className="OverviewBackground";
dojo.style(_4db,"opacity",0);
dojo.addClass(dojo.body(),"OverviewAreaVisible");
var _4dc="<div class='Background'>";
_4dc+="</div>";
_4db.innerHTML=_4dc;
var _4dd=document.createElement("div");
_4dd.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 _4df=this._images[this.showIndex].imageTable.cloneNode(true);
with(_4df.getElementsByTagName("b")[0]){
innerHTML="";
appendChild(this._getAlphaImage(epages.themeUrl("images")+"/plain.gif"));
}
_4dd.appendChild(_4df);
var _4e0=document.createElement("div");
_4e0.className="BackgroundEventLayer";
_4dd.getElementsByTagName("td")[0].appendChild(_4e0);
var _4e1=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_rewind_overview.png");
_4e1.className="Image SlideshowButton";
dojo.connect(_4e1,"onclick",this,"_setPrevImage");
dojo.connect(_4e1,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4e1,"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_4e1,"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_4e1,"onmouseup",this,"_controlBarButtonUp");
var _4e2=document.createElement("i");
_4e2.appendChild(_4e1);
_4e2.className="OverviewRewindButton";
var _4e3=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_forward_overview.png");
_4e3.className="Image SlideshowButton";
dojo.connect(_4e3,"onclick",this,"_setNextImage");
dojo.connect(_4e3,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4e3,"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_4e3,"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_4e3,"onmouseup",this,"_controlBarButtonUp");
var _4e4=document.createElement("i");
_4e4.appendChild(_4e3);
_4e4.className="OverviewForwardButton";
var _4e5=this._getAlphaImage(epages.themeUrl("images")+"/layer_img_closebutton.png");
_4e5.className="Image SlideshowButton";
_4e5.style.clip="rect(0, 40px, 20px, 0)";
dojo.connect(_4e5,"onclick",this,"_destroyOverview");
dojo.connect(_4e5,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4e5,"onmouseout",this,"_controlBarButtonOut");
var _4e6=document.createElement("i");
_4e6.appendChild(_4e5);
_4e6.className="OverviewCloseButton";
var _4e7=document.createElement("b");
_4e7.className="OverviewImageCounter";
if(!this.showMisc){
_4e7.style.display="none";
}
dojo.style(_4dd,"background","url("+this.loaderImagePath+") center no-repeat");
dojo.style(_4dd.getElementsByTagName("span")[0],"opacity",0);
var _4e8=info.imageLarge?info.imageLarge:info.image;
var _4e9=_4dd.getElementsByTagName("img")[0];
_4e9.src=_4da||_4e8;
_4e9.style.height="auto";
_4e9.style.width="auto";
_4e9.style.filter="alpha(opacity=0)";
if(_4e9.src.match(".png")){
_4e9.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4e9.src+"')";
}else{
_4e9.style.filter="alpha()";
_4e9.parentNode.style.filter="none";
}
dojo.body().appendChild(_4db);
dojo.body().appendChild(_4dd);
var _4ea=true;
var _4eb=this._images[0];
for(var i=0;i<this._images.length;i++){
if(this._images[i].imageLarge!=_4eb.imageLarge){
_4ea=false;
break;
}else{
_4eb=this._images[i];
}
}
if(this._images.length>1&&!_4da&&!_4ea){
if(this.showControls){
_4dd.getElementsByTagName("span")[1].appendChild(_4e2);
_4dd.getElementsByTagName("span")[1].appendChild(_4e4);
}
_4dd.getElementsByTagName("span")[1].appendChild(_4e7);
}
_4dd.getElementsByTagName("span")[1].appendChild(_4e6);
if(_4e9.complete){
this._delayExec(this._drawOverviewImage,1);
}else{
dojo.connect(_4e9,"onload",this,"_drawOverviewImage");
}
dojo.connect(_4e9,"onerror",this,"_drawErrorImage");
dojo.connect(_4e0,"onclick",this,"_destroyOverview");
_4db.style.zoom=1;
dojo.style(_4db,"opacity",1);
this._overviewBackground=_4db;
this._overviewArea=_4dd;
this._overviewImageCounter=_4e7;
this._changeOverviewDimensions();
}
},_changeOverviewDimensions:function(){
if(this._overviewArea!=null){
var _4ed=this._overviewArea.getElementsByTagName("img")[0];
var _4ee=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;
var _4ef=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;
var _4f0=0;
if(_4ee>dojo.body().offsetHeight+10){
_4f0=_4ee;
}else{
_4f0=dojo.body().offsetHeight+10;
}
this._overviewBackground.style.height=_4f0+"px";
this._overviewArea.style.height=_4ee+"px";
setTimeout(dojo.hitch(this,function(){
var _4f1=this._images[this.showIndex]._overviewWidth;
var _4f2=this._images[this.showIndex]._overviewHeight;
if(_4f1&&_4f2&&(_4f1>_4ef-50||_4f2>_4ee-50)){
if((_4ef/_4ee)/(_4f1/_4f2)>1){
_4ed.style.height=(_4ee-50)+"px";
_4ed.style.width="auto";
}else{
_4ed.style.width=(_4ef-50)+"px";
_4ed.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 _4f3=dojo.body().pageYOffset?dojo.body().pageYOffset:document.documentElement.scrollTop;
dojo.fx.slideTo({node:this._overviewArea,top:_4f3,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 _4f4=this._overviewArea.getElementsByTagName("img")[0];
if(!this._images[this.showIndex]._overviewWidth){
_4f4.style.position="absolute";
this._images[this.showIndex]._overviewWidth=_4f4.width;
this._images[this.showIndex]._overviewHeight=_4f4.height;
_4f4.style.position="static";
}
if(this._images[this.showIndex]._overviewHeight<100){
_4f4.style.marginTop=(45-this._images[this.showIndex]._overviewHeight/2)+"px";
}else{
_4f4.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 _4f5=this._images[this.showIndex].image.match("dijit/themes/epages/images/plain.gif")||this._images[this.showIndex].image.match("transparentpixel.gif");
if(this._globalOverview&&!_4f5){
this._overviewClick();
}
},_showImageDetails:function(){
var info=this._images[this.showIndex];
this.descriptionNode.innerHTML=info.description;
this.dateNode.innerHTML=info.date;
this.titleNode.innerHTML=info.name;
this.countNode.innerHTML=(this.showIndex+1)+" | "+(this._images.length);
this.miscNode.style.top=this.miscNodeClipper.offsetHeight+"px";
this.descriptionNode.style.top="-"+this.descriptionNode.offsetHeight+"px";
dojo.style(this.miscNode,"opacity",0.8);
dojo.style(this.descriptionNode,"opacity",0.8);
if(this.descriptionNode.innerHTML.length>1){
dojo.fx.slideTo({node:this.descriptionNode,duration:400,easing:this._fadeEasing}).play();
}
dojo.fx.slideTo({node:this.miscNode,duration:400,easing:this._fadeEasing}).play();
},_hideImageDetails:function(){
dojo.fadeOut({node:this.miscNode,duration:200,easing:this._fadeEasing}).play();
dojo.fadeOut({node:this.descriptionNode,duration:200,easing:this._fadeEasing}).play();
},_setNextImage:function(){
if(this._overviewArea){
if(dojo.style(this._overviewArea.getElementsByTagName("span")[0],"opacity")>=0.5){
this._setImage(this.showIndex>this._images.length-2?0:this.showIndex+1);
}
}else{
this._setImage(this.showIndex>this._images.length-2?0:this.showIndex+1);
}
},_setPrevImage:function(){
if(this._overviewArea){
if(dojo.style(this._overviewArea.getElementsByTagName("span")[0],"opacity")>=0.5){
this._setImage(this.showIndex==0?this._images.length-1:this.showIndex-1);
}
}else{
this._setImage(this.showIndex==0?this._images.length-1:this.showIndex-1);
}
},_setImage:function(_4f7){
if(this._images[_4f7]){
if(this._overviewArea){
if(!this._oldShowIndex){
this._oldShowIndex=this.showIndex;
}
var _4f8=this._overviewArea.getElementsByTagName("span")[0];
var _4f9=_4f8.getElementsByTagName("img")[0];
dojo.style(this._overviewArea,"background","url("+this.loaderImagePath+") center no-repeat");
dojo.fadeOut({node:_4f8,duration:this.protraction,easing:this._fadeEasing}).play();
this._delayExec(function(){
var info=this._images[this.showIndex];
dojo.style(_4f8,"opacity",0);
var _4fb=info.imageLarge||info.image;
var _4fc=this._overviewArea.getElementsByTagName("img")[0];
_4fc.src=_4fb;
_4fc.style.width="auto";
_4fc.style.height="auto";
_4fc.style.filter="alpha(opacity=0)";
if(_4fb.match(".png")){
_4fc.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4fb+"')";
}else{
_4fc.style.filter="alpha()";
_4fc.parentNode.style.filter="none";
}
if(_4fc.complete){
this._delayExec(this._drawOverviewImage,1);
}
},this.protraction);
}else{
var _4fd=this._images[this.showIndex].imageTable.getElementsByTagName("b")[0];
var _4fe=this._images[_4f7].imageTable.getElementsByTagName("b")[0];
if(_4fd.offsetWidth==0){
this._pauseClick();
}else{
var _4ff=_4fe.getElementsByTagName("img")[0];
if(typeof (_4ff)!="undefined"){
if(this._images[_4f7].fit=="true"||this._images[_4f7].fit==true){
if(_4ff.offsetHeight>_4ff.offsetWidth){
_4ff.style.height=(this.mainNode.offsetHeight)+"px";
if(_4ff.offsetWidth>=this.mainNode.offsetWidth){
_4ff.style.height="auto";
_4ff.style.width=(this.mainNode.offsetWidth)+"px";
}
}else{
_4ff.style.width=(this.mainNode.offsetWidth)+"px";
if(_4ff.offsetHeight>=this.mainNode.offsetHeight){
_4ff.style.width="auto";
_4ff.style.height=(this.mainNode.offsetHeight)+"px";
}
}
}else{
if(this._images[_4f7].fit==null){
this._delayExec(function(){
if(_4ff.offsetHeight>_4ff.offsetWidth){
if(_4ff.offsetHeight>this.mainNode.offsetHeight){
_4ff.style.height=(this.mainNode.offsetHeight)+"px";
_4ff.style.width="auto";
}
}else{
if(_4ff.offsetWidth>this.mainNode.offsetWidth){
_4ff.style.width=(this.mainNode.offsetWidth)+"px";
_4ff.style.height="auto";
}
}
},1);
}
}
}
if(this.showIndex!=_4f7){
dojo.fadeOut({node:_4fd,duration:this.protraction,easing:this._fadeEasing}).play();
this._delayExec(function(){
this._fadeOutHide(_4fd);
},this.protraction);
}
dojo.style(_4fe,"visibility","visible");
dojo.fadeIn({node:_4fe,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[_4f7].imageTable.style.zIndex=1;
}
}
}
this.showIndex=_4f7;
},_fadeOutHide:function(_500){
if(dojo.style(_500,"opacity")==0){
dojo.style(_500,"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 _502=info.imageTable;
this.mainNode.style.background="transparent url("+this.loaderImagePath+") center no-repeat";
_502.style.zIndex=0;
var _503=_502.getElementsByTagName("b")[0];
_503.style.zoom="1";
dojo.style(_503,"opacity",0);
dojo.style(_503,"visibility","hidden");
_503.appendChild(this._getAlphaImage(info.image,true));
var _504=_503.getElementsByTagName("img")[0];
dojo.connect(_504,"onerror",this,"_drawErrorImage");
if(_504.complete){
this._delayExec(this._loadImagesSoft,1);
}else{
info.onloadHandle=dojo.connect(_504,"onload",this,"_loadImagesSoft");
}
},_createImageTable:function(){
var _505=this.imageTable.cloneNode(true);
_505.className="ImageTable";
this.imageTable.parentNode.appendChild(_505);
return _505;
},_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(_507){
this._overviewClick(_507);
},setImage:function(_508){
this._pauseClick();
this._setImage(_508);
},setNextImage:function(){
this._setNextImage();
},setPrevImage:function(){
this._setPrevImage();
},addImage:function(_509,_50a){
if(_509.image){
var _50b;
for(var i=0;i<this._images.length;i++){
if(this._images[i].image==_509.image){
_50b=i;
}
}
if(!_50b){
this._images.push(_509);
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(_50b);
}
}
},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 _50d=this._drawControlBar();
for(var i=0;i<_50d.length;i++){
if(_50d[i]){
dojo.connect(_50d[i],"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_50d[i],"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_50d[i],"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_50d[i],"onmouseup",this,"_controlBarButtonUp");
}
}
if(this.srcNodeRef){
if(this.srcNodeRef.className){
this.mainNode.parentNode.parentNode.className+=" "+this.srcNodeRef.className;
}
var _50f=this.srcNodeRef.getElementsByTagName("*");
for(var i=0;i<_50f.length;i++){
if(typeof (_50f[i].getAttribute("image"))=="string"){
var _510={};
_510.image=_50f[i].getAttribute("image");
_510.imageLarge=_50f[i].getAttribute("imageLarge");
_510.name=_50f[i].getAttribute("name");
_510.description=_50f[i].innerHTML;
_510.date=_50f[i].getAttribute("date");
_510.time=_50f[i].getAttribute("time");
_510.fit=_50f[i].getAttribute("fit");
_510.imageTable=this._createImageTable();
this._images.push(_510);
}
}
}
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["dojox.fx._base"]){
dojo._hasResource["dojox.fx._base"]=true;
dojo.provide("dojox.fx._base");
dojo.mixin(dojox.fx,{anim:dojo.anim,animateProperty:dojo.animateProperty,fadeTo:dojo._fade,fadeIn:dojo.fadeIn,fadeOut:dojo.fadeOut,combine:dojo.fx.combine,chain:dojo.fx.chain,slideTo:dojo.fx.slideTo,wipeIn:dojo.fx.wipeIn,wipeOut:dojo.fx.wipeOut});
dojox.fx.sizeTo=function(args){
var node=args.node=dojo.byId(args.node);
var _513=args.method||"chain";
if(!args.duration){
args.duration=500;
}
if(_513=="chain"){
args.duration=Math.floor(args.duration/2);
}
var top,_515,left,_517,_518,_519=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
_518=parseInt(cs.width);
_519=parseInt(cs.height);
_517=left-Math.floor((args.width-_518)/2);
_515=top-Math.floor((args.height-_519)/2);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var _51f=dojo.animateProperty(dojo.mixin({properties:{height:{start:_519,end:args.height||0,unit:"px"},top:{start:top,end:_515}}},args));
var _520=dojo.animateProperty(dojo.mixin({properties:{width:{start:_518,end:args.width||0,unit:"px"},left:{start:left,end:_517}}},args));
var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_51f,_520]);
dojo.connect(anim,"beforeBegin",anim,init);
return anim;
};
dojox.fx.slideBy=function(args){
var node=args.node=dojo.byId(args.node);
var top=null;
var left=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var _52b=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));
dojo.connect(_52b,"beforeBegin",_52b,init);
return _52b;
};
dojox.fx.crossFade=function(args){
if(dojo.isArray(args.nodes)){
var _52d=args.nodes[0]=dojo.byId(args.nodes[0]);
var op1=dojo.style(_52d,"opacity");
var _52f=args.nodes[1]=dojo.byId(args.nodes[1]);
var op2=dojo.style(_52f,"opacity");
var _531=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_52d},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_52f},args))]);
return _531;
}else{
return false;
}
};
dojox.fx.highlight=function(args){
var node=args.node=dojo.byId(args.node);
args.duration=args.duration||400;
var _534=args.color||"#ffff99";
var _535=dojo.style(node,"backgroundColor");
var _536=(_535=="transparent"||_535=="rgba(0, 0, 0, 0)")?_535:false;
var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_534,end:_535}}},args));
if(_536){
dojo.connect(anim,"onEnd",anim,function(){
node.style.backgroundColor=_536;
});
}
return anim;
};
dojox.fx.wipeTo=function(args){
args.node=dojo.byId(args.node);
var node=args.node,s=node.style;
var dir=(args.width?"width":"height");
var _53c=args[dir];
var _53d={};
_53d[dir]={start:function(){
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s[dir]="1px";
s.display="";
s.visibility="";
return 1;
}else{
var now=dojo.style(node,dir);
return Math.max(now,1);
}
},end:_53c,unit:"px"};
var anim=dojo.animateProperty(dojo.mixin({properties:_53d},args));
return anim;
};
}
if(!dojo._hasResource["dojox.fx"]){
dojo._hasResource["dojox.fx"]=true;
dojo.provide("dojox.fx");
}
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,loaderAniFlash:window.StoreRoot+"/Flash/loadingring.swf",_queuedAni:[],_currentQueueIndex:0};
epages.loaderani._getNextAni=function(){
return;
if(window.StoreRoot!==undefined){
this._currentQueueIndex++;
this._queuedAni[this._currentQueueIndex]=document.createElement("ins");
with(this._queuedAni[this._currentQueueIndex]){
className="LoaderAni";
style.cssText="position:absolute;z-index:"+this.defaultZIndex+";left:"+this.defaultLeft+"px;top:"+this.defaultTop+"px";
innerHTML="<object wmode='transparent' width='"+this.defaultWidth+"' height='"+this.defaultHeight+"' type='application/x-shockwave-flash' data='"+this.loaderAniFlash+"'><param name='movie' value='"+this.loaderAniFlash+"'/><param name='wmode' value='transparent'/></object><i></i>";
}
dojo.body().appendChild(this._queuedAni[this._currentQueueIndex]);
}else{
console.warn("global var StoreRoot not defined in epages.loaderani._getNextAni()");
}
},epages.loaderani.create=function(_540,_541){
return;
_540=_540||{};
_540.width=_540.width||this.defaultWidth;
_540.height=_540.height||this.defaultHeight;
_540.left=_540.left||this.defaultLeft;
_540.top=_540.top||this.defaultTop;
_540.zIndex=_540.zIndex||this.defaultZIndex;
with(this._queuedAni[this._currentQueueIndex].style){
left=_540.left+"px";
top=_540.top+"px";
zIndex=_540.zIndex;
}
with(this._queuedAni[this._currentQueueIndex].getElementsByTagName("object")[0]){
width=_540.width;
height=_540.height;
}
this._getNextAni();
var _542=this._queuedAni[this._currentQueueIndex-1];
if(_541){
_541.appendChild(_542);
}
return _542;
};
epages.loaderani.destroy=function(_543){
return;
if(_543&&_543.parentNode){
_543.parentNode.removeChild(_543);
}
};
if(epages.Browser.flashVersion){
if((epages.Browser.engine=="MSIE"&&epages.Browser.version<7)||epages.Browser.engine=="Presto"){
dojo.addOnLoad(function(){
epages.loaderani._getNextAni();
});
}else{
epages.loaderani._getNextAni();
}
}
}
if(!dojo._hasResource["epages.widget.Message"]){
dojo._hasResource["epages.widget.Message"]=true;
dojo.provide("epages.widget.Message");
dojo.declare("epages.widget.Message",[dijit._Widget,dijit._Templated],{headline:"",message:"",sizeClass:"Small",typeClass:"Info",borderClass:"",loderAniNode:undefined,templateString:"<div class=\"Message ${sizeClass} ${typeClass} ${borderClass}\">\n  <div class=\"Headline\" dojoAttachPoint=\"headlineNode\">${headline}</div>\n  <div class=\"MessageDetails\" dojoAttachPoint=\"messageNode\">${message}</div>\n</div>\n",show:function(){
this.domNode.style.display="block";
},hide:function(){
this.domNode.style.display="none";
},postCreate:function(){
this.inherited("postCreate",arguments);
this.setupContent({headline:this.headline,message:this.message,sizeClass:this.sizeClass,typeClass:this.typeClass,borderClass:this.borderClass});
},setupContent:function(opt){
if(opt.headline!==undefined&&opt.headline!=""){
this.headline=opt.headline;
this.headlineNode.innerHTML=opt.headline;
this.headlineNode.style.display="";
}else{
this.headlineNode.style.display="none";
}
if(opt.message!==undefined&&opt.message!=""){
this.message=opt.message;
this.messageNode.innerHTML=opt.message;
this.messageNode.style.display="";
}else{
this.messageNode.style.display="none";
}
if(opt.sizeClass!==undefined){
epages.html.replaceClass(this.domNode,opt.sizeClass,this.sizeClass);
this.sizeClass=opt.sizeClass;
}
if(opt.typeClass!==undefined){
epages.html.replaceClass(this.domNode,opt.typeClass,this.typeClass);
this.typeClass=opt.typeClass;
if(this.loderAniNode!==undefined&&opt.typeClass!="Loader"){
epages.loaderani.destroy(this.loderAniNode);
}
if(opt.typeClass=="Loader"){
var _545={top:14,left:14,width:24,height:24};
this.domNode.style.position="relative";
this.loderAniNode=epages.loaderani.create(_545,this.domNode);
}
}
if(opt.borderClass!==undefined){
epages.html.replaceClass(this.domNode,opt.borderClass,this.borderClass);
this.borderClass=opt.borderClass;
}
}});
}
if(!dojo._hasResource["epages.widget.Bubble"]){
dojo._hasResource["epages.widget.Bubble"]=true;
dojo.provide("epages.widget.Bubble");
dojo.declare("epages.widget.Bubble",[dijit._Widget,dijit._Templated],{options:undefined,typeClass:"",declaredClass:"epages.presentation.Bubble",templateString:"<div class=\"Bubble ${typeClass}\">\n  <div class=\"LayerOverIframe\">\n    <div class=\"BubbleLayer\">\n      <div class=\"BubbleClose\" dojoAttachPoint=\"closeNode\"></div>\n      <div dojoAttachPoint=\"containerNode\"></div>\n    </div>\n    <div class=\"BubbleFoot\"></div>\n  </div>\n</div>\n",postCreate:function(){
this.inherited("postCreate",arguments);
if(this.options===undefined){
this.options={content:""};
}
this.setupContent(this.options);
dojo.connect(this.closeNode,"onclick",this,"hide");
dojo.connect(window,"onkeypress",this,"onKeypress");
dojo.connect(document.body,"onkeypress",this,"onKeypress");
},setupContent:function(opt){
if(opt){
dojo.mixin(this.options,opt);
}
while(this.containerNode.firstChild){
this.containerNode.removeChild(this.containerNode.firstChild);
}
if(typeof this.options.content=="object"&&this.options.content.domNode!=undefined){
this.containerNode.appendChild(this.options.content.domNode);
}else{
if(typeof this.options.content=="string"){
this.containerNode.innerHTML=this.options.content;
}else{
console.debug("Bubble.setupContent needs a widget or a string as content.");
}
}
var _547=0;
var _548=0;
if(this.options.orientation=="right"){
_547=-380;
dojo.addClass(this.domNode,"Right");
}
if(this.options.orientation=="left"){
dojo.addClass(this.domNode,"Left");
}
if(this.options.x!==undefined&&this.options.y!==undefined){
$E(this.domNode).setCss({"left":(this.options.x+_547)+"px","top":(this.options.y+_548)+"px","zIndex":1001});
}
if(this.options.typeClass!==undefined){
epages.html.replaceClass(this.domNode,this.options.typeClass,this.typeClass);
this.typeClass=this.options.typeClass;
}
},onKeypress:function(evt){
if(evt.keyCode==dojo.keys.ESCAPE){
this.hide();
}
},show:function(){
this.domNode.style.display="block";
},hide:function(){
this.domNode.style.display="none";
}});
}
if(!dojo._hasResource["epages.template"]){
dojo._hasResource["epages.template"]=true;
dojo.provide("epages.template");
$TMPL=function(_54a,vars,_54c,_54d){
if(_54c===undefined){
_54c=true;
}
if(_54d===undefined){
_54d=true;
}
return new epages.Template({template:_54a,vars:vars,encodeVars:_54c,enableRegExVars:_54d});
};
epages.Template=function(_54e){
this.setOptions(_54e);
if(this.options.template===undefined&&this.options.templateDom!=undefined){
if(typeof this.options.templateDom!="object"){
this.options.templateDom=$(this.options.templateDom);
}
this.options.template=$E(this.options.templateDom).firstComment();
}
};
epages.Template.prototype={options:undefined,setOptions:function(_54f){
this.options={encodeVars:true,enableRegExVars:false,templateDom:undefined,template:undefined,vars:undefined,addTemplate:true};
dojo.mixin(this.options,_54f);
},setTemplate:function(_550){
this.options.template=_550;
},encodeXml:function(_551){
if(_551!==undefined){
if(typeof _551=="number"){
_551=_551.toString();
}
_551=_551.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/>/g,"&gt;").replace(/</g,"&lt;");
}
return _551;
},maskRegExVars:function(_552){
if(_552!==undefined){
if(typeof _552=="number"){
_552=_552.toString();
}
if(typeof _552=="string"){
_552=_552.replace(/\$/g,"\\$");
}
}
return _552;
},unmaskRegExVars:function(_553){
if(_553!==undefined){
if(typeof _553=="number"){
_553=_553.toString();
}
if(typeof _553=="string"){
_553=_553.replace(/\\\$/g,"$");
}
}
return _553;
},processHash:function(vars){
if(vars.each===undefined){
vars=$H(vars);
}
var _555=this.options.template;
if(_555===undefined){
console.debug("epages.Template: template is empty");
return "";
}
var me=this;
var _557=function(pair){
var _559=pair.value;
var _55a=me.options.encodeVars?me.encodeXml(_559):_559;
_55a=me.options.enableRegExVars?_55a:me.maskRegExVars(_55a);
var _55b=new RegExp("\\(%"+pair.key+"%\\)","g");
_555=_555.replace(_55b,_55a);
_555=me.options.enableRegExVars?_555:me.unmaskRegExVars(_555);
};
vars.each(_557);
return _555;
},processLoop:function(loop){
var _55d="";
var me=this;
loop.each(function(el){
_55d+=me.processHash(el);
});
return _55d;
},generateOutput:function(){
return this.processHash(this.options.vars);
},insertTemplate:function(_560){
if(!this.options.addTemplate){
return;
}
var _561=document.createElement("COMMENT");
_561.data=this.options.template;
if(_560.firstChild===undefined){
_560.insertChild(_561);
}else{
_560.insertBefore(_561,_560.firstChild);
}
return;
},insertLoop:function(loop,_563){
if(_563===undefined){
_563=this.options.templateDom;
}
if(typeof this.options.targetDom!="object"){
_563=$(_563);
}
_563.innerHTML=this.processLoop(loop);
this.insertTemplate(_563);
},insert:function(_564){
if(_564===undefined){
_564=this.options.templateDom;
}
if(typeof this.options.targetDom!="object"){
_564=$(_564);
}
_564.innerHTML=this.generateOutput();
this.processTemplate(_564);
}};
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _565=0;
dojo.html._secureForInnerHtml=function(cont){
return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=function(node){
while(node.firstChild){
dojo._destroyElement(node.firstChild);
}
};
dojo.html._setNodeContent=function(node,cont,_56a){
if(_56a){
dojo.html._emptyNode(node);
}
if(typeof cont=="string"){
var pre="",post="",walk=0,name=node.nodeName.toLowerCase();
switch(name){
case "tr":
pre="<tr>";
post="</tr>";
walk+=1;
case "tbody":
case "thead":
pre="<tbody>"+pre;
post+="</tbody>";
walk+=1;
case "table":
pre="<table>"+pre;
post+="</table>";
walk+=1;
break;
}
if(walk){
var n=node.ownerDocument.createElement("div");
n.innerHTML=pre+cont+post;
do{
n=n.firstChild;
}while(--walk);
dojo.forEach(n.childNodes,function(n){
node.appendChild(n.cloneNode(true));
});
}else{
node.innerHTML=cont;
}
}else{
if(cont.nodeType){
node.appendChild(cont);
}else{
dojo.forEach(cont,function(n){
node.appendChild(n.cloneNode(true));
});
}
}
return node;
};
dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_572,node){
dojo.mixin(this,_572||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_565++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_575){
if(undefined!==cont){
this.content=cont;
}
if(_575){
this._mixin(_575);
}
this.onBegin();
this.setContent();
this.onEnd();
return this.node;
},setContent:function(){
var node=this.node;
if(!node){
console.error("setContent given no node");
}
try{
node=dojo.html._setNodeContent(node,this.content);
}
catch(e){
var _577=this.onContentError(e);
try{
node.innerHTML=_577;
}
catch(e){
console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
}
}
this.node=node;
},empty:function(){
if(this.parseResults&&this.parseResults.length){
dojo.forEach(this.parseResults,function(w){
if(w.destroy){
w.destroy();
}
});
delete this.parseResults;
}
dojo.html._emptyNode(this.node);
},onBegin:function(){
var cont=this.content;
if(dojo.isString(cont)){
if(this.cleanContent){
cont=dojo.html._secureForInnerHtml(cont);
}
if(this.extractContent){
var _57a=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_57a){
cont=_57a[1];
}
}
}
this.empty();
this.content=cont;
return this.node;
},onEnd:function(){
if(this.parseContent){
this._parse();
}
return this.node;
},tearDown:function(){
delete this.parseResults;
delete this.node;
delete this.content;
},onContentError:function(err){
return "Error occured setting content: "+err;
},_mixin:function(_57c){
var _57d={},key;
for(key in _57c){
if(key in _57d){
continue;
}
this[key]=_57c[key];
}
},_parse:function(){
var _57f=this.node;
try{
this.parseResults=dojo.parser.parse(_57f,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_582){
var _583=this["on"+type+"Error"].call(this,err);
if(_582){
console.error(_582,err);
}else{
if(_583){
dojo.html._setNodeContent(this.node,_583,true);
}
}
}});
dojo.html.set=function(node,cont,_586){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_586){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_586,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_588,_589,_58a){
_58a=dojo.i18n.normalizeLocale(_58a);
var _58b=_58a.split("-");
var _58c=[_588,"nls",_589].join(".");
var _58d=dojo._loadedModules[_58c];
if(_58d){
var _58e;
for(var i=_58b.length;i>0;i--){
var loc=_58b.slice(0,i).join("_");
if(_58d[loc]){
_58e=_58d[loc];
break;
}
}
if(!_58e){
_58e=_58d.ROOT;
}
if(_58e){
var _591=function(){
};
_591.prototype=_58e;
return new _591();
}
}
throw new Error("Bundle not found: "+_589+" in "+_588+" , locale="+_58a);
};
dojo.i18n.normalizeLocale=function(_592){
var _593=_592?_592.toLowerCase():dojo.locale;
if(_593=="root"){
_593="ROOT";
}
return _593;
};
dojo.i18n._requireLocalization=function(_594,_595,_596,_597){
var _598=dojo.i18n.normalizeLocale(_596);
var _599=[_594,"nls",_595].join(".");
var _59a="";
if(_597){
var _59b=_597.split(",");
for(var i=0;i<_59b.length;i++){
if(_598["indexOf"](_59b[i])==0){
if(_59b[i].length>_59a.length){
_59a=_59b[i];
}
}
}
if(!_59a){
_59a="ROOT";
}
}
var _59d=_597?_59a:_598;
var _59e=dojo._loadedModules[_599];
var _59f=null;
if(_59e){
if(dojo.config.localizationComplete&&_59e._built){
return;
}
var _5a0=_59d.replace(/-/g,"_");
var _5a1=_599+"."+_5a0;
_59f=dojo._loadedModules[_5a1];
}
if(!_59f){
_59e=dojo["provide"](_599);
var syms=dojo._getModuleSymbols(_594);
var _5a3=syms.concat("nls").join("/");
var _5a4;
dojo.i18n._searchLocalePath(_59d,_597,function(loc){
var _5a6=loc.replace(/-/g,"_");
var _5a7=_599+"."+_5a6;
var _5a8=false;
if(!dojo._loadedModules[_5a7]){
dojo["provide"](_5a7);
var _5a9=[_5a3];
if(loc!="ROOT"){
_5a9.push(loc);
}
_5a9.push(_595);
var _5aa=_5a9.join("/")+".js";
_5a8=dojo._loadPath(_5aa,null,function(hash){
var _5ac=function(){
};
_5ac.prototype=_5a4;
_59e[_5a6]=new _5ac();
for(var j in hash){
_59e[_5a6][j]=hash[j];
}
});
}else{
_5a8=true;
}
if(_5a8&&_59e[_5a6]){
_5a4=_59e[_5a6];
}else{
_59e[_5a6]=_5a4;
}
if(_597){
return true;
}
});
}
if(_597&&_598!=_59a){
_59e[_598.replace(/-/g,"_")]=_59e[_59a.replace(/-/g,"_")];
}
};
(function(){
var _5ae=dojo.config.extraLocale;
if(_5ae){
if(!_5ae instanceof Array){
_5ae=[_5ae];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_5b2,_5b3){
req(m,b,_5b2,_5b3);
if(_5b2){
return;
}
for(var i=0;i<_5ae.length;i++){
req(m,b,_5ae[i],_5b3);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_5b5,down,_5b7){
_5b5=dojo.i18n.normalizeLocale(_5b5);
var _5b8=_5b5.split("-");
var _5b9=[];
for(var i=_5b8.length;i>0;i--){
_5b9.push(_5b8.slice(0,i).join("-"));
}
_5b9.push(false);
if(down){
_5b9.reverse();
}
for(var j=_5b9.length-1;j>=0;j--){
var loc=_5b9[j]||"ROOT";
var stop=_5b7(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_5be,_5bf){
function preload(_5c0){
_5c0=dojo.i18n.normalizeLocale(_5c0);
dojo.i18n._searchLocalePath(_5c0,true,function(loc){
for(var i=0;i<_5bf.length;i++){
if(_5bf[i]==loc){
dojo["require"](_5be+"_"+loc);
return true;
}
}
return false;
});
};
preload();
var _5c3=dojo.config.extraLocale||[];
for(var i=0;i<_5c3.length;i++){
preload(_5c3[i]);
}
};
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,_isRealContent:true,postMixInProperties:function(){
this.inherited(arguments);
var _5c5=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_5c5);
this.errorMessage=dojo.string.substitute(this.errorMessage,_5c5);
},buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},postCreate:function(){
this.domNode.title="";
if(!dijit.hasWaiRole(this.domNode)){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
if(this.doLayout!="false"&&this.doLayout!==false){
this._checkIfSingleChild();
if(this._singleChild){
this._singleChild.startup();
}
}
this._loadCheck();
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _5c6=dojo.query(">",this.containerNode),_5c7=_5c6.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_5c9=dojo.filter(_5c7.map(dijit.byNode),function(_5ca){
return _5ca&&_5ca.domNode&&_5ca.resize;
});
if(_5c6.length==_5c7.length&&_5c9.length==1){
this.isContainer=true;
this._singleChild=_5c9[0];
}else{
delete this.isContainer;
delete this._singleChild;
}
},refresh:function(){
return this._prepareLoad(true);
},setHref:function(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");
return this.attr("href",href);
},_setHrefAttr:function(href){
this.href=href;
if(this._created){
return this._prepareLoad();
}
},setContent:function(data){
dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");
this.attr("content",data);
},_setContentAttr:function(data){
this.href="";
this.cancel();
this._setContent(data||"");
this._isDownloaded=false;
if(this.doLayout!="false"&&this.doLayout!==false){
this._checkIfSingleChild();
if(this._singleChild&&this._singleChild.resize){
this._singleChild.startup();
var cb=this._contentBox||dojo.contentBox(this.containerNode);
this._singleChild.resize({w:cb.w,h:cb.h});
}
}
},_getContentAttr:function(){
return this.containerNode.innerHTML;
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
},destroyRecursive:function(_5d0){
if(this._beingDestroyed){
return;
}
this._beingDestroyed=true;
this.inherited(arguments);
},resize:function(size){
dojo.marginBox(this.domNode,size);
var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});
var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize({w:cb.w,h:cb.h});
}
},_prepareLoad:function(_5d5){
this.cancel();
this.isLoaded=false;
this._loadCheck(_5d5);
},_isShown:function(){
if("open" in this){
return this.open;
}else{
var node=this.domNode;
return (node.style.display!="none")&&(node.style.visibility!="hidden");
}
},_loadCheck:function(_5d7){
var _5d8=this._isShown();
if(this.href&&(_5d7||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_5d8&&!this._xhrDfd)||(!this.isLoaded&&_5d8&&!this._xhrDfd))){
this._downloadExternalContent();
}
},_downloadExternalContent:function(){
this._setContent(this.onDownloadStart(),true);
var self=this;
var _5da={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_5da,this.ioArgs);
}
var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_5da);
hand.addCallback(function(html){
try{
self._isDownloaded=true;
self._setContent(html,false);
self.onDownloadEnd();
}
catch(err){
self._onError("Content",err);
}
delete self._xhrDfd;
return html;
});
hand.addErrback(function(err){
if(!hand.cancelled){
self._onError("Download",err);
}
delete self._xhrDfd;
return err;
});
},_onLoadHandler:function(data){
this.isLoaded=true;
try{
this.onLoad(data);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code");
}
},_onUnloadHandler:function(){
this.isLoaded=false;
try{
this.onUnload();
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code");
}
},destroyDescendants:function(){
if(this._isRealContent){
this._onUnloadHandler();
}
var _5df=this._contentSetter;
if(_5df){
_5df.empty();
}else{
this.inherited(arguments);
dojo.html._emptyNode(this.containerNode);
}
},_setContent:function(cont,_5e1){
this.destroyDescendants();
this._isRealContent=!_5e1;
var _5e2=this._contentSetter;
if(!(_5e2&&_5e2 instanceof dojo.html._ContentSetter)){
_5e2=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _5e4=this.onContentError(e);
try{
this.containerNode.innerHTML=_5e4;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _5e5=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_5e2,_5e5);
_5e2.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_5e1){
this._onLoadHandler(cont);
}
},_onError:function(type,err,_5e8){
var _5e9=this["on"+type+"Error"].call(this,err);
if(_5e8){
console.error(_5e8,err);
}else{
if(_5e9){
this._setContent(_5e9,true);
}
}
},_createSubWidgets:function(){
try{
dojo.parser.parse(this.containerNode,true);
}
catch(e){
this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));
}
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_5eb){
},onDownloadError:function(_5ec){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}
if(!dojo._hasResource["dojox.html._base"]){
dojo._hasResource["dojox.html._base"]=true;
dojo.provide("dojox.html._base");
(function(){
if(dojo.isIE){
var _5ed=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;
}
var _5ee=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;
var _5ef=dojox.html._adjustCssPaths=function(_5f0,_5f1){
if(!_5f1||!_5f0){
return;
}
if(_5ed){
_5f1=_5f1.replace(_5ed,function(_5f2,pre,_5f4,url,post){
return pre+(new dojo._Url(_5f0,"./"+url).toString())+post;
});
}
return _5f1.replace(_5ee,function(_5f7,_5f8,_5f9,_5fa,_5fb,_5fc){
if(_5f9){
return "@import \""+(new dojo._Url(_5f0,"./"+_5f9).toString())+"\""+_5fc;
}else{
return "url("+(new dojo._Url(_5f0,"./"+_5fb).toString())+")"+_5fc;
}
});
};
var _5fd=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;
var _5fe=dojox.html._adjustHtmlPaths=function(_5ff,cont){
var url=_5ff||"./";
return cont.replace(_5fd,function(tag,_603,name,_605,_606,_607,_608,end){
return _603+(name?(name+"="+_605+(new dojo._Url(url,_606).toString())+_605):("style="+_607+_5ef(url,_608)+_607))+end;
});
};
var _60a=dojox.html._snarfStyles=function(_60b,cont,_60d){
_60d.attributes=[];
return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_60e,_60f,_610,_611,_612,href){
var i,attr=(_60f||_611||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");
if(_610){
i=_60d.push(_60b?_5ef(_60b,_610):_610);
}else{
i=_60d.push("@import \""+href+"\";");
attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");
}
if(attr){
attr=attr.split(/\s+/);
var _616={},tmp;
for(var j=0,e=attr.length;j<e;j++){
tmp=attr[j].split("=");
_616[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");
}
_60d.attributes[i-1]=_616;
}
return "";
});
};
var _61a=dojox.html._snarfScripts=function(cont,_61c){
_61c.code="";
function download(src){
if(_61c.downloadRemote){
dojo.xhrGet({url:src,sync:true,load:function(code){
_61c.code+=code+";";
},error:_61c.errBack});
}
};
return cont.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_61f,_620,src,code){
if(src){
download(src);
}else{
_61c.code+=code;
}
return "";
});
};
var _623=dojox.html.evalInGlobal=function(code,_625){
_625=_625||dojo.doc.body;
var n=_625.ownerDocument.createElement("script");
n.type="text/javascript";
_625.appendChild(n);
n.text=code;
};
dojo.declare("dojox.html._ContentSetter",[dojo.html._ContentSetter],{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_627){
this._styleNodes=[];
var st,att,_62a,doc=this.node.ownerDocument;
var head=doc.getElementsByTagName("head")[0];
for(var i=0,e=_627.length;i<e;i++){
_62a=_627[i];
att=_627.attributes[i];
st=doc.createElement("style");
st.setAttribute("type","text/css");
for(var x in att){
st.setAttribute(x,att[x]);
}
this._styleNodes.push(st);
head.appendChild(st);
if(st.styleSheet){
st.styleSheet.cssText=_62a;
}else{
st.appendChild(doc.createTextNode(_62a));
}
}
},empty:function(){
this.inherited("empty",arguments);
this._styles=[];
},onBegin:function(){
this.inherited("onBegin",arguments);
var cont=this.content,node=this.node;
var _632=this._styles;
if(dojo.isString(cont)){
if(this.adjustPaths&&this.referencePath){
cont=_5fe(this.referencePath,cont);
}
if(this.renderStyles||this.cleanContent){
cont=_60a(this.referencePath,cont,_632);
}
if(this.executeScripts){
var _t=this;
var _634={downloadRemote:true,errBack:function(e){
_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);
}};
cont=_61a(cont,_634);
this._code=_634.code;
}
}
this.content=cont;
},onEnd:function(){
var code=this._code,_637=this._styles;
if(this._styleNodes&&this._styleNodes.length){
while(this._styleNodes.length){
dojo._destroyElement(this._styleNodes.pop());
}
}
if(this.renderStyles&&_637&&_637.length){
this._renderStyles(_637);
}
if(this.executeScripts&&code){
if(this.cleanContent){
code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");
}
if(this.scriptHasHooks){
code=code.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);
}
try{
_623(code,this.node);
}
catch(e){
this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);
}
}
this.inherited("onEnd",arguments);
},tearDown:function(){
this.inherited(arguments);
delete this._styles;
if(this._styleNodes&&this._styleNodes.length){
while(this._styleNodes.length){
dojo._destroyElement(this._styleNodes.pop());
}
}
delete this._styleNodes;
dojo.mixin(this,dojo.getObject(this.declaredClass).prototype);
}});
dojox.html.set=function(node,cont,_63a){
if(!_63a){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojox.html._ContentSetter(dojo.mixin(_63a,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dojox.layout.ContentPane"]){
dojo._hasResource["dojox.layout.ContentPane"]=true;
dojo.provide("dojox.layout.ContentPane");
(function(){
dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){
this.ioArgs={};
this.ioMethod=dojo.xhrGet;
this.onLoadDeferred=new dojo.Deferred();
this.onUnloadDeferred=new dojo.Deferred();
},postCreate:function(){
this._setUpDeferreds();
dijit.layout.ContentPane.prototype.postCreate.apply(this,arguments);
},onExecError:function(e){
},_setContentAttr:function(data){
var _63e=this._setUpDeferreds();
this.inherited(arguments);
return _63e;
},cancel:function(){
if(this._xhrDfd&&this._xhrDfd.fired==-1){
this.onUnloadDeferred=null;
}
dijit.layout.ContentPane.prototype.cancel.apply(this,arguments);
},_setUpDeferreds:function(){
var _t=this,_640=function(){
_t.cancel();
};
var _641=(_t.onLoadDeferred=new dojo.Deferred());
var _642=(_t._nextUnloadDeferred=new dojo.Deferred());
return {cancel:_640,addOnLoad:function(func){
_641.addCallback(func);
},addOnUnload:function(func){
_642.addCallback(func);
}};
},_onLoadHandler:function(){
dijit.layout.ContentPane.prototype._onLoadHandler.apply(this,arguments);
if(this.onLoadDeferred){
this.onLoadDeferred.callback(true);
}
},_onUnloadHandler:function(){
this.isLoaded=false;
this.cancel();
if(this.onUnloadDeferred){
this.onUnloadDeferred.callback(true);
}
dijit.layout.ContentPane.prototype._onUnloadHandler.apply(this,arguments);
if(this._nextUnloadDeferred){
this.onUnloadDeferred=this._nextUnloadDeferred;
}
},_onError:function(type,err){
dijit.layout.ContentPane.prototype._onError.apply(this,arguments);
if(this.onLoadDeferred){
this.onLoadDeferred.errback(err);
}
},_prepareLoad:function(_647){
var _648=this._setUpDeferreds();
dijit.layout.ContentPane.prototype._prepareLoad.apply(this,arguments);
return _648;
},_setContent:function(cont){
var _64a=this._contentSetter;
if(!(_64a&&_64a instanceof dojox.html._ContentSetter)){
_64a=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _64c=this.onContentError(e);
try{
this.containerNode.innerHTML=_64c;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};
this.inherited("_setContent",arguments);
}});
})();
}
if(!dojo._hasResource["epages.io.text"]){
dojo._hasResource["epages.io.text"]=true;
dojo.provide("epages.io.text");
epages.io.Text=function(url){
if(url===undefined){
return;
}
return this.load(url);
};
epages.io.Text.prototype={load:function(url){
var _64f={};
dojo.xhrGet({url:url,sync:true,load:function(data,evt){
_64f.text=data;
},handleAs:"text"});
return _64f.text;
},test:function(_652){
_652.setPlanned(2);
_652.ok(1,"loaded");
var text=this.load("htmlTest.inc");
_652.ok(text=="Header loaded successfully.","load header");
return _652.planned==_652.correct?true:false;
}};
}
if(!dojo._hasResource["epages.event.interactionrestrictor"]){
dojo._hasResource["epages.event.interactionrestrictor"]=true;
dojo.provide("epages.event.interactionrestrictor");
epages.event.interactionRestrictor=function(){
dojo.subscribe("interactionRestrictor/suspend",function(_654,_655,_656){
if(!$(_654)&&_655&&_655.offsetWidth){
dojo.body().className+=" SuspendUserInteraction";
var _657=document.createElement("div");
var _658=new epages.html.Element(_655).getAbsolutePosition(dojo.body());
with(_657){
id=_654;
className="SuspendUserInteractionAnimation";
style.width=_655.offsetWidth+"px";
style.height=_655.offsetHeight+"px";
style.left=_658.x+"px";
style.top=_658.y+"px";
}
if(_656){
dojo.addClass(_657,"SuspendUserInteractionHidden");
}else{
if(_655.offsetHeight>0){
_657.loaderani=epages.loaderani.create({width:16,height:16,top:(_658.y+_655.offsetHeight/2-8),left:(_658.x+_655.offsetWidth/2-8),zIndex:10000});
}
}
dojo.body().appendChild(_657);
}
});
dojo.subscribe("interactionRestrictor/permit",function(_659){
if($(_659)){
dojo.removeClass(dojo.body(),"SuspendUserInteraction");
epages.loaderani.destroy($(_659).loaderani);
dojo.body().removeChild($(_659));
}
});
};
new epages.event.interactionRestrictor;
}
if(!dojo._hasResource["epages.widget.Button"]){
dojo._hasResource["epages.widget.Button"]=true;
dojo.provide("epages.widget.Button");
epages.widget.ButtonChangeForms=[];
dojo.declare("epages.widget.Button",[dijit._Widget],{name:"",button:"","class":"",onclick:"",value:"",disabled:"",active:"",iconSrc:"",submit:"",triggerClass:"",disableOnClick:"",buttonContainerNode:undefined,_returnFalse:"",_removeEventList:undefined,_onClickEvents:undefined,postCreate:function(){
this.inherited("postCreate",arguments);
var el=this.domNode;
var type;
var _65c="";
if(dojo.hasClass(el,"RunButton")){
type="batch";
}else{
if(dojo.hasClass(el,"SaveButton")){
type="submit";
}else{
if(dojo.hasClass(el,"DeleteButton")){
type="confirm";
}else{
if(dojo.hasClass(el,"CancelButton")){
type="confirm";
}else{
if(dojo.hasClass(el,"ExtraButton")){
type="execute";
_65c="ExtraButtonTrigger";
}else{
if(dojo.hasClass(el,"SearchButton")){
type="execute";
}else{
type="confirm";
}
}
}
}
}
}
this.button=type;
var _65d="";
if(el.type=="image"||el.type=="submit"){
_65d="true";
}
var _65e="";
if(el.disabled){
_65e="true";
}
if(el.getAttribute("triggerClass")!=null&&el.getAttribute("triggerClass")!=""){
_65c=el.getAttribute("triggerClass");
}
this.triggerClass=_65c;
this.disabled=_65e;
this.submit=_65d;
var _65f=document.createElement("span");
_65f.setAttribute((document.all?"className":"class"),this["class"]);
if(!dojo.hasClass(_65f,"Button")){
dojo.addClass(_65f,"Button");
}
dojo.addClass(_65f,"EnableHover");
this.domNode.parentNode.insertBefore(_65f,this.domNode);
this.domNode.setAttribute((document.all?"className":"class"),"ButtonContainer");
_65f.appendChild(this.domNode);
this.submit=this.submit!=""||this.button=="submit";
if(this.disableOnClick==""&&(this.domNode.type=="submit"||this.domNode.href)){
this.disableOnClick=true;
}
this.disableOnClick=epages.string.toBoolean(this.disableOnClick);
this.disabled=this.disabled!=""||this.button=="submit";
if(this.disabled){
this.domNode.disabled=true;
this._returnFalse=dojo.connect(this.domNode,"click",this,function(){
return false;
});
dojo.addClass(_65f,"Disabled");
}
if(this.active!=""){
dojo.addClass(_65f,"Active");
}
if(this.iconSrc){
var _660=document.createElement("span");
if(this.onclick){
_660.onclick=this.onclick;
}
if(this.onmousedown){
_660.onmousedown=this.onmousedown;
}
if(this.onmouseup){
_660.onmouseup=this.onmouseup;
}
if(this.onmouseover){
_660.onmouseover=this.onmouseover;
}
_660.form=this.domNode.form;
_660.className="ButtonIconContainer";
_660.style.background="url("+this.iconSrc+") no-repeat center";
_65f.insertBefore(_660,this.domNode);
dojo.addClass(this.domNode,"ButtonIconPadding");
}
this.form=this.domNode.form;
this._removeEventList=[];
this._onClickEvents=[];
if(this.button=="execute"||this.button=="submit"||this.button=="batch"){
var _661=this.form.elements;
if(this.triggerClass!=""){
_661=dojo.filter(_661,function(el){
return dojo.hasClass(el,this.triggerClass);
},this);
}else{
_661=dojo.filter(_661,function(el){
return !dojo.hasClass(el,"NoButtonTrigger");
});
}
if(this.button=="batch"){
_661=dojo.filter(_661,function(el){
return dojo.hasClass(el,"RunButtonTrigger");
});
}else{
_661=dojo.filter(_661,function(el){
return !dojo.hasClass(el,"RunButtonTrigger");
});
}
this.registerInputs(_661);
}
this.buttonContainerNode=_65f;
if(!this.disabled){
this._registerEvents();
}
},registerInput:function(el){
var it=el.type;
if(it=="hidden"||it=="text"||it=="password"||it=="file"||it=="textarea"){
this._removeEventList.push(dojo.connect(el,"keydown",this,"_OnKeyPressInput"));
this._removeEventList.push(dojo.connect(el,"change",this,"_OnKeyPressInput"));
this._removeEventList.push(dojo.connect(el,"paste",this,"_OnKeyPressInput"));
this._removeEventList.push(dojo.connect(el,"blur",this,"_OnKeyPressInput"));
}else{
if(it=="checkbox"||it=="radio"){
this._removeEventList.push(dojo.connect(el,"click",this,"_OnKeyPressInput"));
this._removeEventList.push(dojo.connect(el,"keypress",this,"_OnKeyPressInput"));
this._removeEventList.push(dojo.connect(el,"change",this,"_OnKeyPressInput"));
}else{
if(el.tagName=="SELECT"){
this._removeEventList.push(dojo.connect(el,"change",this,"_OnKeyPressInput"));
}
}
}
},registerInputs:function(_668){
dojo.forEach(_668,function(el){
this.registerInput(el);
},this);
},_OnKeyPressInput:function(evt){
if(!this.domNode.parentNode.className.match("Active")){
var t=evt.target;
if(t.className.match("DialogError")||(evt.type=="blur"&&(t.type=="text"||t.type=="textarea")&&t.defaultValue===t.value)){
return;
}
if(epages.vars.activeButton){
dojo.removeClass(epages.vars.activeButton,"Active");
}
epages.vars.activeButton=this.domNode.parentNode;
dojo.addClass(this.domNode.parentNode,"Active");
dojo.removeClass(this.domNode.parentNode,"Disabled");
if(this.disabled){
this.enable();
}
if(this.button=="submit"){
if(!document.title.match(/\*$/)){
document.title+="*";
}
epages.widget.ButtonChangeForms.push(this.form);
}
}
},_OnClick:function(evt){
if(!this.disabled&&this.disableOnClick){
dojo.publish("interactionRestrictor/suspend",["interactionRestrictorFor_"+this.id,this.domNode.parentNode,true]);
setTimeout(dojo.hitch(this,function(){
this.disable();
}),20);
setTimeout(dojo.hitch(this,function(){
this.enable();
dojo.removeClass(this.domNode.parentNode,"Active");
dojo.publish("interactionRestrictor/permit",["interactionRestrictorFor_"+this.id]);
}),2000);
}
if(this.button=="confirm"||this.button=="submit"){
epages.widget.ButtonChangeForms=[];
}else{
if(this.button!="batch"){
var _66d=this.form;
epages.widget.ButtonChangeForms=dojo.filter(epages.widget.ButtonChangeForms,function(el){
return el!=_66d;
});
}
}
},_OnMouseDown:function(){
dojo.addClass(this.domNode.parentNode,"ButtonClicked");
dojo.addClass(this.domNode,"ButtonContainerClicked");
},_OnMouseUp:function(){
dojo.removeClass(this.domNode.parentNode,"ButtonClicked");
dojo.removeClass(this.domNode,"ButtonContainerClicked");
},_registerEvents:function(){
this._onClickEvents.push(dojo.connect(this.domNode,"click",this,"_OnClick"));
this._onClickEvents.push(dojo.connect(this.domNode,"mousedown",this,"_OnMouseDown"));
this._onClickEvents.push(dojo.connect(this.domNode,"mouseup",this,"_OnMouseUp"));
this._onClickEvents.push(dojo.connect(this.domNode,"mouseout",this,"_OnMouseUp"));
},enable:function(){
this.disabled=false;
this.domNode.disabled=false;
dojo.disconnect(this._returnFalse);
dojo.addClass(this.domNode.parentNode,"Active");
dojo.removeClass(this.domNode.parentNode,"Disabled");
if(this._onClickEvents.length==0){
this._registerEvents();
}
},disable:function(){
this.disabled=true;
this.domNode.disabled=true;
dojo.disconnect(this._returnFalse);
this._returnFalse=dojo.connect(this.domNode,"click",this,function(){
return false;
});
dojo.removeClass(this.domNode.parentNode,"Active");
dojo.addClass(this.domNode.parentNode,"Disabled");
dojo.forEach(this._onClickEvents,dojo.disconnect);
this._onClickEvents=[];
},disableIfEmpty:function(_66f){
if(_66f==""){
this.disable();
}else{
this.enable();
}
},hide:function(){
dojo.addClass(this.buttonContainerNode,"HideElement");
},show:function(){
dojo.removeClass(this.buttonContainerNode,"HideElement");
}});
epages.onUnloadFunctions.push(function(){
return epages.widget.ButtonChangeForms.length>0;
});
epages.widget.TransformButtons=function(_670){
dojo.forEach(dojo.query(".Button",_670),function(el){
if(el.tagName!="INPUT"||el.type=="hidden"){
return;
}
var type;
var _673="";
if(dojo.hasClass(el,"RunButton")){
type="batch";
}else{
if(dojo.hasClass(el,"SaveButton")){
type="submit";
}else{
if(dojo.hasClass(el,"DeleteButton")){
type="confirm";
}else{
if(dojo.hasClass(el,"CancelButton")){
type="confirm";
}else{
if(dojo.hasClass(el,"ExtraButton")){
type="execute";
_673="ExtraButtonTrigger";
}else{
if(dojo.hasClass(el,"SearchButton")){
type="execute";
}else{
type="confirm";
}
}
}
}
}
}
var _674="";
if(el.type=="image"||el.type=="submit"){
_674="true";
}
var _675="";
if(el.disabled){
_675="true";
}
if(el.getAttribute("triggerClass")!=null&&el.getAttribute("triggerClass")!=""){
_673=el.getAttribute("triggerClass");
}
new epages.widget.Button({button:type,name:el.name,value:el.value,"class":el.className,onclick:el.onclick,iconSrc:el.getAttribute("iconsrc"),submit:_674,disabled:_675,triggerClass:_673},el);
});
};
dojo.addOnLoad(function(){
epages.widget.TransformButtons(dojo.body());
});
}
if(!dojo._hasResource["epages.widget.Modaldialog"]){
dojo._hasResource["epages.widget.Modaldialog"]=true;
dojo.provide("epages.widget.Modaldialog");
dojo["require"]("dijit.Dialog");
dojo.declare("epages.widget.Modaldialog",[dijit.Dialog,epages.widget.LocalizedWidget],{buttons:undefined,options:undefined,duration:epages.Browser.engine=="MSIE"?10:150,"class":"",_contentWidget:null,_contentPane:null,_events:null,_tabEvents:null,_tabs:undefined,_currentTab:undefined,_iframe:null,_doc:null,templateString:"<div class=\"dijitDialog ModalDialog\" style=\"display:none\"><div class=\"Layer Grey\"><div class=\"PropertyContainer\">\n  <div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\" tabindex=\"0\" waiRole=\"dialog\">\n  <span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\">${title}</span>\n  <span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon EnableHover\" dojoAttachEvent=\"onclick: onCancel\">\n    <span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\n  </span>\n  </div>\n  <div dojoAttachPoint=\"tabBarNode\" class=\"TabBar\" style=\"display:none\"></div>\n  <div dojoAttachPoint=\"layerContentNode\" class=\"LayerContent Border White\">\n    <div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent ${options.containerClass}\"><!-- //innerTemplate// --></div>\n    <div dojoAttachPoint=\"innerButtonBarNode\" class=\"LayerInnerButtonBar\" style=\"display:none\"></div>\n  </div>\n  <div dojoAttachPoint=\"buttonBarNode\" class=\"LayerButtonBar\" style=\"display:none\"></div>\n  </div></div>\n  <div class=\"LayerFooter Grey\"><div class=\"PropertyContainer\"></div></div>\n</div>\n",translationName:dojo.moduleUrl("epages.widget","templates/translation"),imagePath:epages.themeUrl("images"),buttonTemplateString:"<span class=\"Button EnableHover (%Class%)\"><span class=\"ButtonContainer\">(%Label%)</span></span>",tabTemplateString:"<div class=\"Tab\"><div>(%Label%)</div></div>",innerTemplatePath:null,widgetsInTemplate:true,clearFloatNode:undefined,buildRendering:function(){
if(this.innerTemplatePath!=null){
this.templateString=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,true);
var _676=dijit._Templated.getCachedTemplate(this.innerTemplatePath,null,true);
this.templateString=this.templateString.replace("<!-- //innerTemplate// -->",_676);
this.templatePath="";
}
this.inherited("buildRendering",arguments);
},postMixInProperties:function(){
var _677={containerClass:""};
dojo.mixin(_677,this.options);
this.options=_677;
dijit.Dialog.prototype.postMixInProperties.apply(this,arguments);
this.inherited("postMixInProperties",arguments);
},postCreate:function(){
this._doc=this.domNode.ownerDocument;
dijit.Dialog.prototype.postCreate.apply(this,arguments);
this.inherited("postCreate",arguments);
if(this.buttons===undefined){
this.buttons=[];
}
if(this.tabs===undefined){
this.tabs=[];
}
if(this.options===undefined){
this.options={};
}
this._createContent(this.options);
this._createButtons(this.buttons);
this._createTabs();
dojo.addClass(this.domNode,this["class"]);
},destroyRendering:function(){
this.hide();
this.inherited("destroyRendering",arguments);
},hide:function(){
this.inherited("hide",arguments);
if(epages.Browser.engine=="MSIE"){
this.domNode.style.width="auto";
}
dojo.publish(this.id+"/hide",[{dialog:this}]);
},show:function(){
this.inherited("show",arguments);
if(epages.Browser.engine=="MSIE"){
this.domNode.style.width=this.domNode.offsetWidth+"px";
}
if(this.domNode&&epages.zIndex){
this.domNode.style.zIndex=epages.zIndex;
}
if(this._underlay){
this._underlay.domNode.style.zIndex=this.domNode.style.zIndex-1;
}
if(epages.zIndex){
epages.zIndex+=2;
}
var _678=parseInt(this.domNode.style.top);
var _679=parseInt(this.domNode.style.left);
if(_678<0){
this.domNode.style.top="0px";
}
if(_679<0){
this.domNode.style.left="";
this.domNode.style.right="0px";
}else{
this.domNode.style.right="";
}
if(this._moveable){
this._moveable.destroy();
}
dojo.publish(this.id+"/show",[{dialog:this}]);
},close:function(){
this.hide();
window.setTimeout(dojo.hitch(this,function(){
this._destroyContent();
this._destroyButtons();
}),this.duration);
},setupContent:function(opt){
this._destroyTabs();
this._destroyContent();
this._destroyButtons();
if(opt.buttons){
this.setupButtons(opt.buttons);
}
this._createContent(opt);
this._createTabs();
},setupButtons:function(_67b){
this._destroyButtons();
this._createButtons(_67b);
},setTitle:function(_67c){
this.titleNode.innerHTML=_67c;
},_createContent:function(opt){
if(opt){
dojo.mixin(this.options,opt);
}
var _67e=undefined;
if(this.options.translationName){
_67e=new epages.io.Translation(this.options.translationName,"auto");
if(this.options.title){
this.options.title=_67e.replaceLanguageTags(this.options.title);
}
}
if(this.options.title){
this.setTitle(this.options.title);
}
switch(this.options.scroll){
case "y":
this.containerNode.style.overflowY="scroll";
break;
case "x":
this.containerNode.style.overflowX="scroll";
break;
case "scroll":
this.containerNode.style.overflow="scroll";
break;
case "hidden":
this.containerNode.style.overflow="hidden";
break;
default:
this.containerNode.style.overflow="auto";
}
if(this.options.width){
if(typeof this.options.width=="number"){
this.layerContentNode.style.width=this.options.width+"px";
}else{
this.layerContentNode.style.width=this.options.width;
}
}else{
this.containerNode.style.width="auto";
this.layerContentNode.style.width="auto";
}
if(this.options.height){
if(typeof this.options.height=="number"){
this.containerNode.style.height=this.options.height+"px";
}else{
this.containerNode.style.height=this.options.height;
}
}else{
this.containerNode.style.height="auto";
}
if(this.options.url!=null){
if(this._contentPane==null){
this._contentPane=new dojox.layout.ContentPane({href:this.options.url,preload:true,extractContent:false,adjustPaths:true,ioMethod:function(args){
var _680=dojo.xhrGet(args);
if(_67e){
_680.addCallback(function(html){
return _67e.replaceLanguageTags(html);
});
}
return _680;
},onLoad:dojo.hitch(this,function(){
window.setTimeout(dojo.hitch(this,function(){
this.containerNode.appendChild(this._contentPane.domNode);
if(this.options&&this.options.onLoad&&typeof this.options.onLoad=="function"){
this.options.onLoad();
}
this.layout();
this.show();
this._createTabs();
dojo.publish(this.id+"/onLoadContentPane",[{dialog:this}]);
}),10);
})});
this._contentPane.refresh();
}else{
this._contentPane.setHref(this.options.url);
}
}else{
if(typeof this.options.content=="object"){
if(this.options.content.domNode){
this.containerNode.appendChild(this.options.content.domNode);
this._contentWidget=this.options.content;
}else{
this.containerNode.appendChild(this.options.content);
}
}else{
if(typeof this.options.content=="string"){
this.containerNode.innerHTML=this.options.content;
var _682=this.containerNode.getElementsByTagName("script");
var win=this._doc.parentWindow?this._doc.parentWindow:this._doc.defaultView;
for(var i=0;i<_682.length;i++){
if(_682[i].childNodes.length>0){
win.eval(_682[i].childNodes[0].nodeValue);
}else{
win.eval(_682[i].innerHTML);
}
}
win.dojo.parser.parse(this.containerNode);
}
}
}
dojo.publish(this.id+"/change",[{dialog:this}]);
},_destroyContent:function(){
this.options.scroll=undefined;
this.options.width=undefined;
this.options.height=undefined;
this.options.title=undefined;
this.options.url=undefined;
if(this.titleNode.firstChild){
this.titleNode.firstChild.data=" ";
}
this.containerNode.style.overflow="auto";
this.containerNode.style.overflowX="auto";
this.containerNode.style.overflowY="auto";
this.containerNode.style.width="auto";
this.layerContentNode.style.width="auto";
this.containerNode.style.height="auto";
this.innerButtonBarNode.style.display="none";
this.tabBarNode.style.display="none";
epages.html.removeChildren(this.containerNode);
if(typeof this.options.content=="object"&&this.options.destroyWidgetOnClose){
this.options.content.destroy();
}
this._contentWidget=null;
this.options.content="";
},_createButtons:function(_685){
if(_685.length){
this.innerButtonBarNode.style.display="";
}
this.buttons=[];
this._events=[];
dojo.forEach(_685,function(_686){
_686.domNode=[];
var _687=new epages.Template({template:this.buttonTemplateString,vars:{"Label":_686.label,"Class":_686.cssClass?_686.cssClass:""}});
var _688=this.createNodesFromText(_687.generateOutput());
this.innerButtonBarNode.appendChild(_688);
_686.domNode=_688;
dojo.mixin(_686,{_modalDialogWidget:this,_contentWidget:this._contentWidget});
this._events.push(dojo.connect(_686.domNode,"onclick",_686,"onclick"));
this.buttons.push(_686);
},this);
this.clearFloatNode=document.createElement("div");
this.clearFloatNode.className="ClearBoth";
this.innerButtonBarNode.appendChild(this.clearFloatNode);
},_destroyButtons:function(){
dojo.forEach(this._events,dojo.disconnect);
dojo.forEach(this.buttons,function(_689){
_689.domNode.parentNode.removeChild(_689.domNode);
_689.domNode=undefined;
});
this.buttons=[];
if(this.clearFloatNode!==undefined&&this.clearFloatNode.parentNode!=null){
this.clearFloatNode.parentNode.removeChild(this.clearFloatNode);
this.clearFloatNode=undefined;
}
},_createTabs:function(){
var tabs=epages.html.getElementsByClassName("TabPage",this.containerNode);
if(tabs.length&&tabs.length>1){
this.tabBarNode.style.display="";
dojo.addClass(this.tabBarNode,"Visible");
this._tabs=[];
this._tabEvents=[];
dojo.forEach(tabs,function(_68b){
var tab={domNode:[],changeNode:_68b};
var _68d=new epages.Template({template:this.tabTemplateString,vars:{"Label":_68b.getAttribute("ep_label")}});
var _68e=this.createNodesFromText(_68d.generateOutput());
this.tabBarNode.appendChild(_68e);
tab.domNode=_68e;
this._tabEvents.push(dojo.connect(tab.domNode,"onclick",this,"_onTabClick"));
tab.changeNode.style.display="none";
this._tabs.push(tab);
},this);
this._tabs[0].changeNode.style.display="";
dojo.addClass(this._tabs[0].domNode,"Active");
this._currentTab=this._tabs[0];
}else{
dojo.removeClass(this.tabBarNode,"Visible");
}
},_destroyTabs:function(){
dojo.forEach(this._tabEvents,dojo.disconnect);
dojo.forEach(this._tabs,function(tab){
tab.domNode.parentNode.removeChild(tab.domNode);
tab.domNode=undefined;
tab.changeNode=undefined;
});
this._tabs=[];
this._currentTab=undefined;
},_onTabClick:function(evt){
var _691=evt.currentTarget;
var tab=undefined;
for(var i=0;i<this._tabs.length;i++){
if(_691==this._tabs[i].domNode){
tab=this._tabs[i];
}
}
if(tab){
if(this._currentTab){
dojo.removeClass(this._currentTab.domNode,"Active");
this._currentTab.changeNode.style.display="none";
}
tab.changeNode.style.display="";
dojo.addClass(tab.domNode,"Active");
this._currentTab=tab;
}
}});
}
if(!dojo._hasResource["epages.uimessagehandler"]){
dojo._hasResource["epages.uimessagehandler"]=true;
dojo.provide("epages.uimessagehandler");
dojo.mixin(epages.uimessagehandler,{template:"<div id=\"busyMessageLayer\"    style=\"position: absolute; left:0px; top:0px; height: 100%; width: 100%; z-index: 10000; overflow: auto; display: none;\">"+"<div id=\"busyMessageUnderlay\" style=\"position: absolute; left:0px; top:0px; height: 100%; width: 100%; z-index: 9999; background: #707070; opacity: 0.9; filter:alpha(opacity=90);\" ></div>"+"<div id=\"busyMessageBox\"      style=\"position: relative; left:0px; top:300px; z-index: 10000; max-width: 200px; overflow: visible; margin: auto; color: #000;\">"+"<div class=\"Layer\"><div id=\"busyMessagePropertyContainer\" class=\"PropertyContainer\" style=\"height:45px;padding-top:1px;\"><div id=\"busyMessage\" style=\"background:#f7f7f7;filter:alpha();zoom:1;margin: 5px 8px\" ></div>"+"<span style=\"#display:none\"><object id=\"busyMessageAnimation\" class=\" ShowElement\" wmode=\"transparent\" width=\"16\" height=\"16\" type=\"application/x-shockwave-flash\" data=\""+StoreRoot+"/Flash/loadingring.swf\"><param name=\"movie\" value=\""+StoreRoot+"/Flash/loadingring.swf\"/><param name=\"bgcolor\" value=\"#f7f7f7\"/></object></span>"+"</div></div><div class=\"LayerFooter\"><div class=\"PropertyContainer\"></div></div></div></div>",fadeOutBusyLayer:function(_694){
if(document.all){
setTimeout(function(){
$("busyMessageAnimation").parentNode.style.display="none";
},500);
}
dojo.fx.combine([dojo.fadeOut({node:$("busyMessageLayer"),onEnd:function(){
$("busyMessageLayer").style.display="none";
if(document.all){
dojo.body().parentNode.style.overflow="auto";
}
},duration:_694?_694:1000})]).play();
},rePositionBusy:function(){
if($("busyMessageLayer")){
$("busyMessageLayer").style.top=(window.pageYOffset||document.getElementsByTagName("html")[0].scrollTop)+"px";
}
},errorsToString:function(_695){
var _696="";
for(var el in _695){
if(_695[el].Message!=""){
_696+=_695[el].Message+"<br />";
}else{
var t=epages.io.dictionary.get(_695[el].Reason);
if(t===undefined){
t=_695[el].Reason;
}
_696+=t+"<br />";
}
}
return _696;
}});
dojo.subscribe("uimessage/show",function(_699,_69a,type,opt){
var _69d=(opt.sizeClass!==undefined)?opt.sizeClass:"Large";
var _69e=(opt.typeClass!==undefined)?opt.typeClass:"Warning";
if($$("uimessage_dialog")){
$$("uimessage_dialog").hide();
}
if($$("uimessage_bubble")){
$$("uimessage_bubble").hide();
}
var _69f=$$("uimessage_insert");
if(_69f===undefined){
_69f=new epages.widget.Message({id:"uimessage_insert",headline:(_699!==undefined)?_699:"",message:_69a,sizeClass:_69d,typeClass:_69e,borderClass:(type=="Insert")?"WithBorder":""});
}else{
_69f.hide();
_69f.setupContent({headline:_699,message:_69a,sizeClass:_69d,typeClass:_69e,borderClass:(type=="Insert")?"WithBorder":""});
}
_69f.show();
switch(type){
case "Bubble":
var _6a0=$$("uimessage_bubble");
var _6a1=opt.attachNode||document.body;
if((opt.x==null||opt.y==null)&&opt.element!=null){
var _6a2=$E(opt.element).getAbsolutePosition(opt.baseNode);
opt.x=opt.x||(_6a2.x+opt.element.offsetWidth/2);
opt.y=opt.y||(_6a2.y+opt.element.offsetHeight);
}
if(_6a0===undefined){
_6a0=new epages.widget.Bubble({id:"uimessage_bubble",options:{x:opt.x,y:opt.y,typeClass:_69e,content:_69f}});
_6a1.appendChild(_6a0.domNode);
}else{
_6a0.setupContent({x:opt.x,y:opt.y,typeClass:_69e,content:_69f});
_6a1.appendChild(_6a0.domNode);
}
_6a0.show();
break;
case "Insert":
if(opt.targetNode!==undefined){
opt.targetNode.appendChild($$("uimessage_insert").domNode);
}else{
console.warn("uimessage/show: opt.targetNode is undefined");
}
break;
default:
var _6a3=opt.buttons;
if(_6a3===undefined){
var _6a4=epages.io.dictionary.translation;
_6a3=_69e=="Confirmation"?[{label:_6a4.get("Yes"),onclick:function(){
this._modalDialogWidget.hide();
if(typeof opt.onYes=="function"){
opt.onYes();
}
}},{label:_6a4.get("No"),onclick:function(){
this._modalDialogWidget.hide();
if(typeof opt.onNo=="function"){
opt.onNo();
}
}}]:[{label:_6a4.get("Close"),onclick:function(){
this._modalDialogWidget.hide();
}}];
}
var _6a5=opt.titleBar;
if(_6a5===undefined){
_6a5=epages.io.dictionary.translation.get(_69e);
}
var uid=$$("uimessage_dialog");
if(uid===undefined){
uid=new epages.widget.Modaldialog({id:"uimessage_dialog",options:{title:_6a5,width:450,content:_69f},buttons:_6a3});
document.body.appendChild(uid.domNode);
}else{
uid.containerNode.appendChild(_69f.domNode);
uid.setupContent({title:_6a5,width:450,content:_69f,buttons:_6a3});
}
uid.show();
break;
}
});
dojo.subscribe("uimessage/hide",function(opt){
if($$("uimessage_dialog")){
$$("uimessage_dialog").hide();
}
if($$("uimessage_bubble")){
$$("uimessage_bubble").hide();
}
if($$("uimessage_insert")){
$$("uimessage_insert").hide();
}
});
dojo.subscribe("uimessage/startBusy",function(_6a8,_6a9,_6aa){
epages.uimessagehandler.busyLayerOwner=_6a8;
epages.vars.BusyLayerActive=true;
var _6ab=document.getElementsByTagName("body")[0];
if(document.all){
_6ab.parentNode.style.overflow="hidden";
}
var _6ac=$("busyMessageLayer");
if(_6ac==null){
_6ac=document.createElement("div");
_6ac.innerHTML=epages.uimessagehandler.template;
_6ab.appendChild(_6ac.firstChild);
_6ac=_6ac.firstChild;
}
$("busyMessageLayer").style.display="";
dojo.style($("busyMessageLayer"),"opacity",1);
if($("busyMessage").getElementsByTagName("div")[0]){
$("busyMessage").removeChild($("busyMessage").getElementsByTagName("div")[0]);
}
var _6ad=document.createElement("div");
_6ad.innerHTML=_6a9;
$("busyMessage").appendChild(_6ad);
if(_6aa){
$("busyMessage").style.paddingLeft="40px";
$("busyMessage").style.backgroundImage="url("+_6aa+")";
if($("busyMessage").style.filter){
$("busyMessage").style.backgroundImage="none";
$("busyMessage").style.filter="progid:DXImageTransform.Microsoft.Alpha() progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_6aa+"', sizingMethod='crop)";
}
$("busyMessage").style.backgroundRepeat="no-repeat";
$("busyMessage").style.minHeight="40px";
$("busyMessagePropertyContainer").style.height="58px";
$("busyMessageAnimation").style.cssText="position:absolute;bottom:12px;left:88px;#left:87px";
}else{
$("busyMessage").style.paddingLeft="0";
$("busyMessage").style.backgroundImage="none";
$("busyMessage").style.filter="alpha()";
$("busyMessagePropertyContainer").style.height="48px";
$("busyMessageAnimation").style.cssText="position:absolute;bottom:12px;left:88px;#left:87px";
}
epages.uimessagehandler.rePositionBusy();
$("busyMessageAnimation").parentNode.style.display="";
});
dojo.subscribe("uimessage/showErrors",function(_6ae,_6af,_6b0){
var _6b1=epages.uimessagehandler.errorsToString(_6b0);
dojo.publish("uimessage/show",[_6ae,_6b1,"Dialog",{titleBar:_6af,typeClass:"Error"}]);
});
dojo.subscribe("uimessage/showErrorBubble",function(_6b2,_6b3,_6b4,_6b5){
var tc=(_6b5)?_6b5:"Error";
var _6b7=epages.uimessagehandler.errorsToString(_6b4);
var pos=$E(_6b3).getAbsolutePosition();
dojo.publish("uimessage/show",[_6b2,_6b7,"Bubble",{typeClass:tc,sizeClass:"Small",x:pos.x,y:pos.y+_6b3.clientHeight+4}]);
});
dojo.subscribe("uimessage/changeBusy",function(_6b9,_6ba){
if(epages.uimessagehandler.busyLayerOwner==_6b9&&top.$("busyMessage")){
if(epages.Browser.engine=="MSIE"){
$("busyMessage").style.display="table";
}
if($("busyMessage").getElementsByTagName("div")[0]){
$("busyMessage").removeChild($("busyMessage").getElementsByTagName("div")[0]);
}
var _6bb=document.createElement("div");
_6bb.innerHTML=_6ba;
$("busyMessage").appendChild(_6bb);
if(epages.Browser.engine=="MSIE"){
$("busyMessage").style.display="block";
}
}
});
dojo.subscribe("uimessage/stopBusy",function(_6bc,_6bd,_6be){
if(epages.uimessagehandler.busyLayerOwner==_6bc){
if(_6bd){
window.setTimeout(function(){
epages.vars.BusyLayerActive=false;
epages.uimessagehandler.fadeOutBusyLayer(_6be);
},_6bd);
}else{
epages.vars.BusyLayerActive=false;
epages.uimessagehandler.fadeOutBusyLayer(_6be);
}
}
});
dojo.connect(window,"scroll",this,epages.uimessagehandler.rePositionBusy);
}
if(!dojo._hasResource["epages.epages_scripts"]){
dojo._hasResource["epages.epages_scripts"]=true;
dojo.provide("epages.epages_scripts");
window.openWindow=function(URL,_6c0,_6c1,_6c2){
if(_6c2===null){
_6c2=undefined;
}
if(_6c1=="PopUp"){
_6c1="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
}
if(_6c1=="PopUpPrint"){
_6c1="width=790, height=580, toolbar=yes, status=no, resizable=yes, menubar=yes, location=no, scrollbars=yes";
}
if(_6c1=="RTE"||_6c0=="RTE"){
_6c1="width=996, height=700, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
}
if(_6c1=="HelpWindow"){
_6c1="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
_6c0="WWHFrame";
}
if(_6c1=="StylePreview"){
_6c1="width=470, height=310, toolbar=no, status=no, resizable=no, menubar=no, location=no, scrollbars=no";
_6c0="StylePreview";
}
if(_6c1=="DetailedImageView"){
_6c1="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
_6c0="StylePreview";
}
if(_6c1=="CheckLink"){
if(URL.indexOf("?")!=0){
splittedString=URL.split("//");
if(splittedString.length==1){
URL="http://"+URL;
}
}else{
if(_6c2!=undefined){
URL=_6c2+URL;
}
}
_6c1="toolbar=yes, status=yes, resizable=yes, menubar=yes, location=yes, scrollbars=yes";
}
if(URL!="http://"){
var _6c3=window.open(URL,_6c0,_6c1);
if(_6c3){
_6c3.focus();
}
}
return _6c3;
};
window.linkCorrection=function(_6c4){
var _6c5=_6c4.value;
var _6c6=_6c5.split("//");
if(_6c5.indexOf("?")!=0){
if(_6c6.length==1){
_6c4.value="http://"+_6c5;
epages.event.fire(_6c4,"change");
}
}
};
window.OnCheckAll=function(form,name,_6c9,_6ca){
dojo.addClass(form.getElementsByTagName("tbody")[0],"HideElement");
for(var i=0;i<form.length;i++){
var _6cc=form[i];
if(_6cc.nodeName=="INPUT"){
if((_6cc.type=="checkbox"||_6cc.className.match("Checkbox"))&&_6cc.name==name&&!_6cc.disabled&&_6cc.checked!=_6c9){
_6cc.checked=_6c9;
if(!_6ca){
$$(_6cc.id).setChecked(_6c9);
if(_6c9){
dojo.addClass(_6cc.parentNode.parentNode,"RowSelected");
}else{
dojo.removeClass(_6cc.parentNode.parentNode,"RowSelected");
}
}
}
}
}
dojo.removeClass(form.getElementsByTagName("tbody")[0],"HideElement");
};
window.DeactivateButton=function(_6cd){
if(_6cd.className.match("CustomButton")){
fakeButton=_6cd.getElementsByTagName("*")[0];
fakeButton.disabled="true";
}else{
_6cd.disabled="true";
}
dojo.addClass(_6cd,"Disabled");
};
window.EnableButton=function(_6ce){
if(_6ce.className.match("CustomButton")){
fakeButton=_6ce.getElementsByTagName("*")[0];
fakeButton.disabled="false";
}else{
_6ce.disabled="false";
}
dojo.removeClass(_6ce,"Disabled");
};
window.DisableLink=function(Link){
if($(Link)){
$(Link).className+=" Opacity40";
$(Link).href="javascript:void(0)";
$(Link).style.cursor="default";
}
};
window.changeImage=function(_6d0,_6d1,_6d2){
$(_6d0).src=_6d1;
if(_6d2){
$(_6d0).alt=_6d2;
}
};
window.OptionToChangeAction=function(_6d3){
_6d3.form.ChangeAction.value=_6d3.options[_6d3.selectedIndex].value;
};
window.toggleDisplay=function(_6d4){
if($(_6d4).className!="HideElement"){
$(_6d4).className="HideElement";
}else{
$(_6d4).className="ShowElement";
}
};
window.hideElement=function(_6d5){
if(!$(_6d5).className.match(/HideElement/)){
$(_6d5).className+=" HideElement";
}
};
window.showElement=function(_6d6){
$(_6d6).className=$(_6d6).className.replace(/HideElement/,"");
};
window.changeDataById=function(_6d7,id){
myobject=$(id);
if(myobject.firstChild){
myobject.firstChild.data=_6d7;
}else{
mydata=document.createTextNode(_6d7);
myobject.appendChild(mydata);
}
};
window.getSelectedData=function(_6d9){
if(_6d9){
myNode=_6d9.firstChild;
while(myNode!=null){
if(myNode.value==_6d9.value&&myNode.value!=""){
return myNode.firstChild.data;
}
myNode=myNode.nextSibling;
}
return "";
}
};
window.checkBrowser=function(){
var _6da=navigator.userAgent.toLowerCase();
this.isIE=(_6da.indexOf("msie")!=-1);
this.isGecko=(_6da.indexOf("gecko")!=-1&&_6da.indexOf("safari")==-1);
this.isOpera=(_6da.indexOf("opera")!=-1);
this.isRTECompatible=(this.isIE||this.isGecko);
};
var browser=new checkBrowser();
window.disableFormFieldsInElement=function(_6db){
userattrinputs=$(_6db).getElementsByTagName("input");
for(i=0;i<userattrinputs.length;i++){
userattrinputs[i].disabled=true;
if($(_6db).parentNode.className.match("Cropper")){
$(_6db).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=$(_6db).getElementsByTagName("textarea");
for(i=0;i<userattrtextareas.length;i++){
userattrtextareas[i].disabled=true;
if($(_6db).parentNode.className.match("Cropper")){
$(_6db).parentNode.className+=" Disabled";
}
userattrtextareas[i].className=userattrtextareas[i].className+" Disabled";
}
userattrselects=$(_6db).getElementsByTagName("select");
for(i=0;i<userattrselects.length;i++){
userattrselects[i].disabled=true;
if($(_6db).parentNode.className.match("Cropper")){
$(_6db).parentNode.className+=" Disabled";
}
userattrselects[i].className=userattrselects[i].className+" Disabled";
}
};
window.enableFormFieldsInElement=function(_6dc){
userattrinputs=$(_6dc).getElementsByTagName("input");
for(i=0;i<userattrinputs.length;i++){
userattrinputs[i].disabled=false;
if($(_6dc).parentNode.className.match("Cropper")){
$(_6dc).parentNode.className=$(_6dc).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=$(_6dc).getElementsByTagName("textarea");
for(i=0;i<userattrtextareas.length;i++){
userattrtextareas[i].disabled=false;
if($(_6dc).parentNode.className.match("Cropper")){
$(_6dc).parentNode.className=$(_6dc).parentNode.className.replace(/Disabled/g,"");
}
userattrtextareas[i].className=userattrtextareas[i].className.replace(/ Disabled/,"");
userattrtextareas[i].className=userattrtextareas[i].className.replace(/Disabled/,"");
}
userattrselects=$(_6dc).getElementsByTagName("select");
for(i=0;i<userattrselects.length;i++){
userattrselects[i].disabled=false;
if($(_6dc).parentNode.className.match("Cropper")){
$(_6dc).parentNode.className=$(_6dc).parentNode.className.replace(/Disabled/g,"");
}
userattrselects[i].className=userattrselects[i].className.replace(/ Disabled/,"");
userattrselects[i].className=userattrselects[i].className.replace(/Disabled/,"");
}
};
window.disableFormFieldById=function(_6dd){
var _6de=true;
if(disableFormFieldById.arguments.length>1){
_6de=disableFormFieldById.arguments[1];
}
$(_6dd).disabled=true;
if($(_6dd).parentNode.className.match("Cropper")){
$(_6dd).parentNode.className+=" Disabled";
}
if(_6de){
dojo.addClass($(_6dd),"Disabled");
}
};
window.enableFormFieldById=function(_6df){
var _6e0=true;
if(enableFormFieldById.arguments.length>1){
_6e0=enableFormFieldById.arguments[1];
}
$(_6df).disabled=false;
if($(_6df).parentNode.className.match("Cropper")){
$(_6df).parentNode.className=$(_6df).parentNode.className.replace(/Disabled/g,"");
}
if(_6e0){
dojo.removeClass($(_6df),"Disabled");
}
};
window.allowURLUpload=function(){
var _6e1=$("FileUpload").value;
if(_6e1.match(/http:../)||_6e1.match(/https:../)){
$("FileUpload2").value=_6e1;
$("FileUpload2").disabled=false;
$("FileUpload").disabled=true;
}
};
window.allowBulkURLUpload=function(_6e2){
var _6e3=document.getElementsByName(_6e2);
for(var i=0;i<_6e3.length;i++){
var _6e5=_6e3[i].value;
var _6e6=_6e3[i].type;
var _6e7=_6e3[i].id;
if((_6e5.match(/http:../)||_6e5.match(/https:../))&&_6e6!="hidden"){
$(_6e7.replace(/FileName/,"URLUpload")).value=_6e5;
$(_6e7.replace(/FileName/,"URLUpload")).disabled=false;
$(_6e7).disabled=true;
}
}
};
window.setValue=function(_6e8,_6e9){
$(_6e9).value=_6e8;
};
window.autofillAddress=function(_6ea){
_6ea.form.DisplayName.value=_6ea.form.FirstName.value+" "+_6ea.form.LastName.value;
if(_6ea.form.UserAlias){
_6ea.form.UserAlias.value=_6ea.form.FirstName.value.slice(0,1)+_6ea.form.LastName.value;
}
if(_6ea.form.UserName){
_6ea.form.UserName.value=_6ea.form.FirstName.value+" "+_6ea.form.LastName.value;
}
};
window.SFautofillAddress=function(_6eb,_6ec,_6ed){
$(_6ed).value=$(_6eb).value+" "+$(_6ec).value;
};
window.setCurrentDate=function(_6ee,_6ef){
$(_6ef).value=_6ee;
};
window.updateStyleSheetRule=function(rule,text){
text+=" !important";
if(browser.isIE){
var _6f2=rule.split(/,\s+/);
var _6f3=document.styleSheets[document.styleSheets.length-1];
for(var i=0;i<_6f2.length;i++){
_6f3.addRule(_6f2[i],text);
}
}else{
var _6f5=document.getElementsByTagName("style");
var _6f3=_6f5[_6f5.length-1];
_6f3.innerHTML+="\n"+rule+"{"+text+";}";
}
};
window.showNotAllowedDialog=function(_6f6,_6f7){
var _6f8=$E(_6f6).getAbsolutePosition();
dojo.publish("uimessage/show",["",_6f7,"Bubble",{typeClass:"Warning",sizeClass:"Small",x:_6f8.x,y:_6f8.y+_6f6.offsetHeight-4}]);
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(_6f9,_6fa){
this.areaName.push(_6f9);
this.areaId.push(_6fa);
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++){
if(this.areaActivated[i]){
var _6fc=document.createElement("a");
_6fc.href="javascript:epagesDialog.toggleArea('"+this.areaName[i]+"');";
_6fc.name=this.areaName[i];
_6fc.id=this.areaName[i];
_6fc.className="HideArea";
}else{
var _6fc=document.createElement("span");
_6fc.name=this.areaName[i];
_6fc.id=this.areaName[i];
_6fc.className="disabled";
}
var _6fd=document.createTextNode(this.areaDisplayName[i]);
_6fc.appendChild(_6fd);
$("ToggleTabpageArea").appendChild(_6fc);
}
};
this.showArea=function(_6fe){
areaId="";
for(i=0;i<this.areaName.length;i++){
if(this.areaName[i]==_6fe){
areaId=this.areaId[i];
}
}
try{
dojo.removeClass(document.getElementsByName(_6fe)[0],"HideArea");
dojo.addClass(document.getElementsByName(_6fe)[0],"ShowArea");
}
catch(ex){
dojo.removeClass($(_6fe),"HideArea");
dojo.addClass($(_6fe),"ShowArea");
}
$(areaId).className="ShowElement";
if(browser.isIE){
setTimeout("$('"+areaId+"').className='ShowElement';",10);
}
actualDialogArea=_6fe;
};
this.hideArea=function(_6ff){
areaId="";
for(i=0;i<this.areaName.length;i++){
if(this.areaName[i]==_6ff){
areaId=this.areaId[i];
}
}
dojo.removeClass(document.getElementsByName(_6ff)[0],"ShowArea");
dojo.addClass(document.getElementsByName(_6ff)[0],"HideArea");
$(areaId).className="HideElement";
actualDialogArea="";
};
this.toggleArea=function(_700){
this.showArea(_700);
for(i=0;i<this.areaName.length;i++){
tempName=this.areaName[i];
tempId=this.areaId[i];
if(_700!=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(_701){
if(document.getElementsByName(_701)[0].className.match("HideArea")){
this.showArea(_701);
}else{
this.hideArea(_701);
}
};
this.selectArea=function(_702){
this.showArea(_702);
for(i=0;i<this.areaName.length;i++){
tempName=this.areaName[i];
tempId=this.areaId[i];
if(_702!=tempName){
dojo.removeClass(document.getElementsByName(tempName)[0],"ShowArea");
dojo.addClass(document.getElementsByName(tempName)[0],"HideArea");
$(tempId).className="HideElement";
}
}
};
};
window.appendDialogArea=function(_703){
if(actualDialogArea!=""){
_703.action+="&DialogArea="+actualDialogArea;
}
};
actualDialogArea="";
epagesDialog=new DialogArea();
window.WizardPages=function(){
this.TabId=new Array();
this.AreaId=new Array();
this.addPage=function(_704,_705){
this.TabId.push(_704);
this.AreaId.push(_705);
};
this.showStep=function(_706){
ActualWizardPage=_706;
window.scrollTo(0,0);
$(this.TabId[_706]).className="selected";
$(this.TabId[_706]).getElementsByTagName("span")[0].firstChild.className="selected";
try{
$(this.TabId[_706]).getElementsByTagName("span")[0].appendChild(oHelpTopic);
}
catch(ex){
}
$(this.AreaId[_706]).className="ShowElement";
for(i=0;i<this.TabId.length;i++){
if(i!=_706){
$(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(_707){
(new epages.widget.Slides).openOverview(_707);
};
}
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(_709){
var _70a=this._counter;
this._hash.set("key"+_70a,_709);
do{
this._counter++;
}while(this._hash.existsKey("key"+this._counter));
return _70a;
},set:function(key,_70c){
if(this._hash.existsKey("key"+key)){
this._hash.set("key"+key,_70c);
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,_70f){
if(o===undefined&&func===undefined&&_70f===undefined){
}else{
if(_70f===undefined){
return dojo.hitch(o,func);
}
var _710=[];
for(var i=0;i<_70f.length;i++){
var _712=epages.lang.hitch.prototype.clipBoard.add(_70f[i]);
_710.push("epages.lang.hitch.prototype.clipBoard.get("+_712+")");
}
if(typeof (func)=="string"){
var _713=func;
}else{
for(member in o){
if(typeof o[member]=="function"&&o[member]==func){
var _713=member;
break;
}
}
}
var _714;
if(_713===undefined){
_714=eval("dojo.hitch(o, function() { func("+_710.join(", ")+"); });");
}else{
_714=eval("dojo.hitch(o, function() { o."+_713+"("+_710.join(", ")+"); });");
}
return _714;
}
};
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 _716={};
if(uri.match(/^((?:(.+)\:\/\/([^\/]+))?((?:\/|[^\?#]).*?)?(\?.*?)?(#.*)?)$/)){
_716={href:RegExp.$1,protocol:RegExp.$2,host:RegExp.$3,path:RegExp.$4,query:RegExp.$5,anchor:RegExp.$6,parameters:{}};
_716.parameters=this.splitQueryString(_716.query);
}
return _716;
},splitQueryString:function(uri){
var _718={};
var _719=(new RegExp(/\??(.*?)(#.*)?$/g)).exec(uri);
if(_719){
var _71a=_719[1];
var _71b=_71a.split("&");
for(var i=0;i<_71b.length;i++){
var _71d=(new RegExp(/(.+)\=(.*)/)).exec(_71b[i]);
if(_71d){
_718[decodeURIComponent(_71d[1])]=decodeURIComponent(_71d[2]);
}
}
}
return _718;
},toQueryString:function(data){
if(dojo.isArray(data)){
var _71f=[];
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;
}
_71f.push(encodeURIComponent(data[i][0])+"="+encodeURIComponent(data[i][1]));
}
return _71f.join("&");
}else{
if(dojo.isObject(data)){
return $H(data).toQueryString();
}
}
},fromParts:function(_721){
var _722="";
if(_721.protocol){
_722+=_721.protocol+"://";
}
if(_721.host){
_722+=_721.host;
}
if(_721.path){
_722+=_721.path;
}
if(dojo.isObject(_721.parameters)){
var qs=this.toQueryString(_721.parameters);
if(qs){
_722+="?"+qs;
}
}else{
if(_721.query){
_722+=_721.query;
}
}
if(_721.anchor){
_722+=_721.anchor;
}
return _722;
},isAbsolute:function(uri){
var rx=new RegExp(/^((http|https|ftp)\:\/\/|\/)/g);
return rx.test(uri);
},getRelative:function(_726,url){
var _728=epages.lang.uri.parts(_726);
var _729=epages.lang.uri.parts(url);
if((_729.protocol!=null&&_729.protocol!=_728.protocol)||(_729.host!=null&&_729.host!=_728.host)){
return url;
}
_728.path=_728.path.replace(/\/+$/,"");
_729.path=_729.path.replace(/\/+$/,"");
var _72a=_728.path.split("/");
var _72b=_729.path.split("/");
while(_72a.length>0){
var _72c=_72a.shift();
var _72d=_72b.shift();
if(_72d==null){
_72a.unshift(_72c);
break;
}else{
if(_72c!=_72d){
_72a.unshift(_72c);
_72b.unshift(_72d);
break;
}
}
}
var _72e="";
for(var i=0;i<_72a.length;i++){
_72e+="../";
}
return _72e+_72b.join("/");
}};
}
if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_730){
var _731=_730.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_731==1&&dojo.date.isLeapYear(_730)){
return 29;
}
return days[_731];
};
dojo.date.isLeapYear=function(_733){
var year=_733.getFullYear();
return !(year%400)||(!(year%4)&&!!(year%100));
};
dojo.date.getTimezoneName=function(_735){
var str=_735.toString();
var tz="";
var _738;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_738=str.match(pat))){
tz=_738[1];
}else{
str=_735.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_738=str.match(pat))){
tz=_738[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_73b,_73c,_73d){
_73b=new Date(Number(_73b));
_73c=new Date(Number(_73c||new Date()));
if(_73d!=="undefined"){
if(_73d=="date"){
_73b.setHours(0,0,0,0);
_73c.setHours(0,0,0,0);
}else{
if(_73d=="time"){
_73b.setFullYear(0,0,0);
_73c.setFullYear(0,0,0);
}
}
}
if(_73b>_73c){
return 1;
}
if(_73b<_73c){
return -1;
}
return 0;
};
dojo.date.add=function(date,_73f,_740){
var sum=new Date(Number(date));
var _742=false;
var _743="Date";
switch(_73f){
case "day":
break;
case "weekday":
var days,_745;
var mod=_740%5;
if(!mod){
days=(_740>0)?5:-5;
_745=(_740>0)?((_740-5)/5):((_740+5)/5);
}else{
days=mod;
_745=parseInt(_740/5);
}
var strt=date.getDay();
var adj=0;
if(strt==6&&_740>0){
adj=1;
}else{
if(strt==0&&_740<0){
adj=-1;
}
}
var trgt=strt+days;
if(trgt==0||trgt==6){
adj=(_740>0)?2:-2;
}
_740=(7*_745)+days+adj;
break;
case "year":
_743="FullYear";
_742=true;
break;
case "week":
_740*=7;
break;
case "quarter":
_740*=3;
case "month":
_742=true;
_743="Month";
break;
case "hour":
case "minute":
case "second":
case "millisecond":
_743="UTC"+_73f.charAt(0).toUpperCase()+_73f.substring(1)+"s";
}
if(_743){
sum["set"+_743](sum["get"+_743]()+_740);
}
if(_742&&(sum.getDate()<date.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_74a,_74b,_74c){
_74b=_74b||new Date();
_74c=_74c||"day";
var _74d=_74b.getFullYear()-_74a.getFullYear();
var _74e=1;
switch(_74c){
case "quarter":
var m1=_74a.getMonth();
var m2=_74b.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_74d*4);
_74e=q2-q1;
break;
case "weekday":
var days=Math.round(dojo.date.difference(_74a,_74b,"day"));
var _754=parseInt(dojo.date.difference(_74a,_74b,"week"));
var mod=days%7;
if(mod==0){
days=_754*5;
}else{
var adj=0;
var aDay=_74a.getDay();
var bDay=_74b.getDay();
_754=parseInt(days/7);
mod=days%7;
var _759=new Date(_74a);
_759.setDate(_759.getDate()+(_754*7));
var _75a=_759.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 (_75a+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 (_75a+mod)<0:
adj=2;
}
}
}
days+=adj;
days-=(_754*2);
}
_74e=days;
break;
case "year":
_74e=_74d;
break;
case "month":
_74e=(_74b.getMonth()-_74a.getMonth())+(_74d*12);
break;
case "week":
_74e=parseInt(dojo.date.difference(_74a,_74b,"day")/7);
break;
case "day":
_74e/=24;
case "hour":
_74e/=60;
case "minute":
_74e/=60;
case "second":
_74e/=1000;
case "millisecond":
_74e*=_74b.getTime()-_74a.getTime();
}
return Math.round(_74e);
};
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_75b){
var _75c={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 _75d=dojo.cldr.supplemental._region(_75b);
var dow=_75c[_75d];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function(_75f){
_75f=dojo.i18n.normalizeLocale(_75f);
var tags=_75f.split("-");
var _761=tags[1];
if(!_761){
_761={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(_761.length==4){
_761=tags[2];
}
}
return _761;
};
dojo.cldr.supplemental.getWeekend=function(_762){
var _763={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 _764={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 _765=dojo.cldr.supplemental._region(_762);
var _766=_763[_765];
var end=_764[_765];
if(_766===undefined){
_766=6;
}
if(end===undefined){
end=0;
}
return {start:_766,end:end};
};
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_769){
return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){
if(_769&&_769.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_76d){
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("|"),_76d);
};
dojo.regexp.group=function(_770,_771){
return "("+(_771?"?:":"")+_770+")";
};
}
if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function formatPattern(_772,_773,_774,_775){
return _775.replace(/([a-z])\1*/ig,function(_776){
var s,pad;
var c=_776.charAt(0);
var l=_776.length;
var _77b=["abbr","wide","narrow"];
switch(c){
case "G":
s=_773[(l<4)?"eraAbbr":"eraNames"][_772.getFullYear()<0?0:1];
break;
case "y":
s=_772.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_774){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_772.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_772.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _77d=["months","format",_77b[l-3]].join("-");
s=_773[_77d][m];
}
break;
case "w":
var _77e=0;
s=dojo.date.locale._getWeekOfYear(_772,_77e);
pad=true;
break;
case "d":
s=_772.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_772);
pad=true;
break;
case "E":
var d=_772.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _780=["days","format",_77b[l-3]].join("-");
s=_773[_780][d];
}
break;
case "a":
var _781=(_772.getHours()<12)?"am":"pm";
s=_773[_781];
break;
case "h":
case "H":
case "K":
case "k":
var h=_772.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=_772.getMinutes();
pad=true;
break;
case "s":
s=_772.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_772.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_772);
if(s){
break;
}
l=4;
case "Z":
var _783=_772.getTimezoneOffset();
var tz=[(_783<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_783)/60),2),dojo.string.pad(Math.abs(_783)%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: "+_775);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale.format=function(_785,_786){
_786=_786||{};
var _787=dojo.i18n.normalizeLocale(_786.locale);
var _788=_786.formatLength||"short";
var _789=dojo.date.locale._getGregorianBundle(_787);
var str=[];
var _78b=dojo.hitch(this,formatPattern,_785,_789,_786.fullYear);
if(_786.selector=="year"){
var year=_785.getFullYear();
if(_787.match(/^zh|^ja/)){
year+="年";
}
return year;
}
if(_786.selector!="time"){
var _78d=_786.datePattern||_789["dateFormat-"+_788];
if(_78d){
str.push(_processPattern(_78d,_78b));
}
}
if(_786.selector!="date"){
var _78e=_786.timePattern||_789["timeFormat-"+_788];
if(_78e){
str.push(_processPattern(_78e,_78b));
}
}
var _78f=str.join(" ");
return _78f;
};
dojo.date.locale.regexp=function(_790){
return dojo.date.locale._parseInfo(_790).regexp;
};
dojo.date.locale._parseInfo=function(_791){
_791=_791||{};
var _792=dojo.i18n.normalizeLocale(_791.locale);
var _793=dojo.date.locale._getGregorianBundle(_792);
var _794=_791.formatLength||"short";
var _795=_791.datePattern||_793["dateFormat-"+_794];
var _796=_791.timePattern||_793["timeFormat-"+_794];
var _797;
if(_791.selector=="date"){
_797=_795;
}else{
if(_791.selector=="time"){
_797=_796;
}else{
_797=_795+" "+_796;
}
}
var _798=[];
var re=_processPattern(_797,dojo.hitch(this,_buildDateTimeRE,_798,_793,_791));
return {regexp:re,tokens:_798,bundle:_793};
};
dojo.date.locale.parse=function(_79a,_79b){
var info=dojo.date.locale._parseInfo(_79b);
var _79d=info.tokens,_79e=info.bundle;
var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");
var _7a0=re.exec(_79a);
if(!_7a0){
return null;
}
var _7a1=["abbr","wide","narrow"];
var _7a2=[1970,0,1,0,0,0,0];
var amPm="";
var _7a4=dojo.every(_7a0,function(v,i){
if(!i){
return true;
}
var _7a7=_79d[i-1];
var l=_7a7.length;
switch(_7a7.charAt(0)){
case "y":
if(l!=2&&_79b.strict){
_7a2[0]=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _7aa=year.substring(0,2)*100;
var _7ab=Math.min(Number(year.substring(2,4))+20,99);
var num=(v<_7ab)?_7aa+v:_7aa-100+v;
_7a2[0]=num;
}else{
if(_79b.strict){
return false;
}
_7a2[0]=v;
}
}
break;
case "M":
if(l>2){
var _7ad=_79e["months-format-"+_7a1[l-3]].concat();
if(!_79b.strict){
v=v.replace(".","").toLowerCase();
_7ad=dojo.map(_7ad,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_7ad,v);
if(v==-1){
return false;
}
}else{
v--;
}
_7a2[1]=v;
break;
case "E":
case "e":
var days=_79e["days-format-"+_7a1[l-3]].concat();
if(!_79b.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":
_7a2[1]=0;
case "d":
_7a2[2]=v;
break;
case "a":
var am=_79b.am||_79e.am;
var pm=_79b.pm||_79e.pm;
if(!_79b.strict){
var _7b3=/\./g;
v=v.replace(_7b3,"").toLowerCase();
am=am.replace(_7b3,"").toLowerCase();
pm=pm.replace(_7b3,"").toLowerCase();
}
if(_79b.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;
}
_7a2[3]=v;
break;
case "m":
_7a2[4]=v;
break;
case "s":
_7a2[5]=v;
break;
case "S":
_7a2[6]=v;
}
return true;
});
var _7b4=+_7a2[3];
if(amPm==="p"&&_7b4<12){
_7a2[3]=_7b4+12;
}else{
if(amPm==="a"&&_7b4==12){
_7a2[3]=0;
}
}
var _7b5=new Date(_7a2[0],_7a2[1],_7a2[2],_7a2[3],_7a2[4],_7a2[5],_7a2[6]);
if(_79b.strict){
_7b5.setFullYear(_7a2[0]);
}
var _7b6=_79d.join("");
if(!_7a4||(_7b6.indexOf("M")!=-1&&_7b5.getMonth()!=_7a2[1])||(_7b6.indexOf("d")!=-1&&_7b5.getDate()!=_7a2[2])){
return null;
}
return _7b5;
};
function _processPattern(_7b7,_7b8,_7b9,_7ba){
var _7bb=function(x){
return x;
};
_7b8=_7b8||_7bb;
_7b9=_7b9||_7bb;
_7ba=_7ba||_7bb;
var _7bd=_7b7.match(/(''|[^'])+/g);
var _7be=_7b7.charAt(0)=="'";
dojo.forEach(_7bd,function(_7bf,i){
if(!_7bf){
_7bd[i]="";
}else{
_7bd[i]=(_7be?_7b9:_7b8)(_7bf);
_7be=!_7be;
}
});
return _7ba(_7bd.join(""));
};
function _buildDateTimeRE(_7c1,_7c2,_7c3,_7c4){
_7c4=dojo.regexp.escapeString(_7c4);
if(!_7c3.strict){
_7c4=_7c4.replace(" a"," ?a");
}
return _7c4.replace(/([a-z])\1*/ig,function(_7c5){
var s;
var c=_7c5.charAt(0);
var l=_7c5.length;
var p2="",p3="";
if(_7c3.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=_7c3.am||_7c2.am||"AM";
var pm=_7c3.pm||_7c2.pm||"PM";
if(_7c3.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(_7c1){
_7c1.push(_7c5);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _7cd=[];
dojo.date.locale.addCustomFormats=function(_7ce,_7cf){
_7cd.push({pkg:_7ce,name:_7cf});
};
dojo.date.locale._getGregorianBundle=function(_7d0){
var _7d1={};
dojo.forEach(_7cd,function(desc){
var _7d3=dojo.i18n.getLocalization(desc.pkg,desc.name,_7d0);
_7d1=dojo.mixin(_7d1,_7d3);
},this);
return _7d1;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(item,type,use,_7d7){
var _7d8;
var _7d9=dojo.date.locale._getGregorianBundle(_7d7);
var _7da=[item,use,type];
if(use=="standAlone"){
var key=_7da.join("-");
_7d8=_7d9[key];
if(_7d8[0]==1){
_7d8=undefined;
}
}
_7da[1]="format";
return (_7d8||_7d9[_7da.join("-")]).concat();
};
dojo.date.locale.isWeekend=function(_7dc,_7dd){
var _7de=dojo.cldr.supplemental.getWeekend(_7dd);
var day=(_7dc||new Date()).getDay();
if(_7de.end<_7de.start){
_7de.end+=7;
if(day<_7de.start){
day+=7;
}
}
return day>=_7de.start&&day<=_7de.end;
};
dojo.date.locale._getDayOfYear=function(_7e0){
return dojo.date.difference(new Date(_7e0.getFullYear(),0,1,_7e0.getHours()),_7e0)+1;
};
dojo.date.locale._getWeekOfYear=function(_7e1,_7e2){
if(arguments.length==1){
_7e2=0;
}
var _7e3=new Date(_7e1.getFullYear(),0,1).getDay();
var adj=(_7e3-_7e2+7)%7;
var week=Math.floor((dojo.date.locale._getDayOfYear(_7e1)+adj-1)/7);
if(_7e3==_7e2){
week++;
}
return week;
};
}
if(!dojo._hasResource["epages.localize"]){
dojo._hasResource["epages.localize"]=true;
dojo.provide("epages.localize");
epages.localize={formatNumber:function(_7e6,_7e7){
if(_7e7==null){
_7e7=2;
}
var _7e8=Math.pow(10,_7e7);
var _7e9=Math.floor(Math.round(_7e6*_7e8)/_7e8);
var _7ea=Math.round(Math.abs(_7e6-_7e9)*_7e8);
if(_7ea!=0){
return _7e9+epages.vars.Locale.decimalSep+_7ea;
}else{
return _7e9;
}
},formatBytes:function(_7eb,_7ec){
if(_7ec==null){
_7ec=2;
}
var unit="Byte";
if(_7eb>=1073741824){
_7eb/=1073741824;
unit="GB";
}else{
if(_7eb>=1048576){
_7eb/=1048576;
unit="MB";
}else{
if(_7eb>=1024){
_7eb/=1024;
unit="kB";
}
}
}
return epages.localize.formatNumber(_7eb,_7ec)+" "+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(_7ee){
if(_7ee==null){
_7ee=epages.vars.Locale.dateFormat;
}
if(this._patternCache.existsKey(_7ee)){
return this._patternCache.get(_7ee);
}
var _7ef=_7ee;
var _7f0=$A($A($H(epages.localize._patternMap).keys()).sort(function(a,b){
return b.length-a.length;
}));
_7f0.each(function(_7f3){
var rx=new RegExp(_7f3,"g");
_7ef=_7ef.replace(rx,function(){
return epages.localize._patternMap[_7f3];
});
});
return _7ef;
},formatDateTime:function(date,_7f6){
if(date==null){
return "";
}
if(_7f6==null){
_7f6=epages.vars.Locale.dateFormat;
}
var d=dojo.date.locale.format(date,{datePattern:this.getDojoDateTimePattern(_7f6),timePattern:" "});
return d.substring(0,d.length-2);
},parseDateTime:function(_7f8,_7f9){
if(_7f9==null){
_7f9=epages.vars.Locale.dateFormat;
}
return dojo.date.locale.parse("~ "+_7f8,{selector:"timeOnly",timePattern:this.getDojoDateTimePattern(_7f9),datePattern:"~"});
},parseNumber:function(_7fa){
_7fa=_7fa.replace(epages.vars.Locale.thousandSep,"");
_7fa=_7fa.replace(epages.vars.Locale.decimalSep,".");
return parseFloat(_7fa);
}};
}
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(_7fb,args){
var _7fd=args.xhr.status==404?{}:dojo.fromJson(args.xhr.responseText);
console.debug("epages.io.Json: error in request");
if(_7fd.Errors!==undefined){
dojo.publish("epages/interfaceerror",[{code:_7fd.Errors[0].Reason,message:_7fd.Errors[0].Message,guid:_7fd.Errors[0].GUID,vars:{url:args.url,status:args.xhr.status,response:_7fd}}]);
}
},loadSync:function(url,_7ff,_800){
var _801;
var _802=_7ff!==undefined?dojo.xhrPost:dojo.xhrGet;
var _803=this;
var opt={url:url,sync:true,preventCache:epages.constants.preventCache,error:function(_805,args){
_801={"error":{error:_805,args:args,data:dojo.fromJson(args.xhr.responseText)}};
if(_800!=null){
_800({"error":[_805,args]});
}else{
_803.defaultErrorCallback(_805,args);
}
},load:function(data,evt){
var _809=dojo.fromJson(data);
if(_809.Errors){
_801={"error":{data:_809}};
}else{
_801={"data":dojo.fromJson(data)};
}
}};
if(url.match(".(js|json)$")){
_802=dojo.xhrGet;
}else{
dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_7ff});
}
_802(opt);
return _801;
},loadAsync:function(url,_80b,_80c,_80d){
var _80e=_80c!==undefined?dojo.xhrPost:dojo.xhrGet;
var _80f=this;
var opt={url:url,error:function(_811,args){
var c=_80d||_80b;
var _814=dojo.fromJson(args.xhr.responseText);
if(c){
c({"error":[_811,args],"data":(typeof _814=="object")?dojo.fromJson(args.xhr.responseText):{}});
}else{
_80f.defaultErrorCallback(_811,args);
}
},load:function(data){
if(_80b!=null){
var _816=dojo.fromJson(data);
if(_816.Errors){
_80b({"error":{data:_816}});
}else{
_80b({"data":dojo.fromJson(data)});
}
}
}};
if(url.match(".(js|json)$")){
_80e=dojo.xhrGet;
}else{
dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_80c});
}
_80e(opt);
return;
}});
}
if(!dojo._hasResource["epages.format"]){
dojo._hasResource["epages.format"]=true;
dojo.provide("epages.format");
epages.format={slice:function(_817,_818){
if(_817===undefined){
throw new Error("value not defined");
}
if(typeof _817!="string"){
throw new Error("Not a string value!");
}
if(!_818){
_818=30;
}
var _819=_817.length;
var _81a=_818<0?-_818:_818;
if(_819<_81a){
return _817;
}
if(_818<0){
return "..."+_817.substr((_819+_818+3),(_81a-3));
}
return _817.substr(0,_818-3)+"...";
},scrunch:function(_81b,_81c,_81d){
if(_81d===undefined){
_81d=0.5;
}
if(_81d<0||_81d>1){
throw new Error("ratio value invalid only values from 0..1 allowed");
}
if(_81b===undefined){
throw new Error("value not defined");
}
if(typeof _81b!="string"){
throw new Error("Not a string value!");
}
if(!_81c){
_81c=30;
}
var _81e=_81c<0?-_81c:_81c;
var _81f=_81b.length;
if(_81f<=_81e){
return _81b;
}
var _820=Math.floor((_81c-3)*_81d);
var _821=Math.floor((_81c-3)*(1-_81d));
var _822=_81c-3-(_820+_821);
var _823=_81b.substr(0,_820);
var _824=_81b.substr(Math.max(0,_81f-_821-_822),_81f);
return _823+"..."+_824;
}};
}
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 _826=dojo.getComputedStyle(document.images[i]);
with(document.images[i].style){
zoom="1";
width=(document.images[i].offsetWidth?document.images[i].offsetWidth-parseInt(_826.paddingLeft)-parseInt(_826.paddingRight):this.minImageSize)+"px";
height=(document.images[i].offsetHeight?document.images[i].offsetHeight-parseInt(_826.paddingTop)-parseInt(_826.paddingBottom):this.minImageSize)+"px";
if(_826.margin=="0px"){
margin=_826.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,_fixSelectElements:function(){
if(epages.Browser.engine=="MSIE"){
dojo.connect(dojo.body(),"mousedown",this,function(evt){
if(!evt.target.disabled){
var _829=epages.cssfix.pseudoclasses._lastSelectSelected;
if(_829&&evt.target.tagName!="SELECT"&&!evt.target.className.match("SelectCropper")){
_829.parentNode.removeAttribute("focused");
dojo.removeClass(_829.parentNode,"focused");
epages.cssfix.pseudoclasses._lastSelectSelected=null;
}
if(evt.target.tagName=="SELECT"){
var _82a=epages.cssfix.pseudoclasses._lastSelectSelected;
if(_82a){
_82a.parentNode.removeAttribute("focused");
dojo.removeClass(_82a.parentNode,"focused");
}
evt.target.parentNode.setAttribute("focused","");
dojo.addClass(evt.target.parentNode,"focused");
epages.cssfix.pseudoclasses._lastSelectSelected=evt.target;
}
}
});
}
},_registerFocus:function(){
var _82b=dojo.query("input").concat(dojo.query("textarea")).concat(dojo.query("select"));
for(var i=0;i<_82b.length;i++){
if(!_82b[i].focusHandle){
_82b[i].focusHandle=true;
dojo.connect(_82b[i],"focus",this,function(evt){
evt.currentTarget.setAttribute("focused","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(evt.currentTarget,"focused");
}
});
dojo.connect(_82b[i],"blur",this,function(evt){
evt.currentTarget.removeAttribute("focused");
if(epages.Browser.engine=="MSIE"){
dojo.removeClass(evt.currentTarget,"focused");
}
});
}
}
},_checkFocus:function(evt){
if(this._lastFocusedNode){
this._lastFocusedNode.removeAttribute("focused");
if(epages.Browser.engine=="MSIE"){
dojo.removeClass(this._lastFocusedNode,"focused");
}
}
var _830=false;
for(var z=0;z<this.focusTriggerClasses.length;z++){
if(evt.target.className.match(this.focusTriggerClasses[z])){
_830=true;
}
}
if(_830||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;
}
},_removeActive:function(evt){
evt.currentTarget.removeAttribute("activated","");
if(epages.Browser.engine=="MSIE"){
dojo.removeClass(evt.currentTarget,"activated");
}
},update:function(){
if(this.lastHoveredNode){
var _833=this.lastHoveredNode;
for(var i=0;i<this.NODEDEPTH;i++){
if(_833){
var _835=_833.className||"";
var _836=false;
for(var z=0;z<this.hoverTriggerClasses.length;z++){
if(_835.match(this.hoverTriggerClasses[z])){
_836=true;
}
}
if((_836||(_833.parentNode&&_833.parentNode.parentNode&&_833.parentNode.parentNode.className&&_833.parentNode.parentNode.className.match("ContentList")&&_833.tagName=="TR")||_833.tagName=="A"||_833.tagName=="INPUT"||_833.tagName=="TEXTAREA"||_833.tagName=="SELECT")&&!_833.disabled){
if(!_833.isHovered){
this.currentHoveredNodes.push(_833);
_833.setAttribute("hovered","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(_833,"hovered");
}
}
_833.isHovered=true;
_833.removeHover=false;
}
var _838=false;
for(var z=0;z<this.activeTriggerClasses.length;z++){
if(_835.match(this.activeTriggerClasses[z])){
_838=true;
}
}
if(_838||_833.tagName=="A"&&!_833.activeHandle){
_833.activeHandle=true;
dojo.connect(_833,"mousedown",this,function(evt){
evt.currentTarget.setAttribute("activated","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(evt.currentTarget,"activated");
}
});
dojo.connect(_833,"mouseup",this,"_removeActive");
dojo.connect(_833,"mouseleave",this,"_removeActive");
}
if(_833.tagName!="BODY"&&_833.tagName!="HTML"){
_833=_833.parentNode;
}else{
break;
}
}
}
var _83a=[];
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{
_83a.push(this.currentHoveredNodes[i]);
}
this.currentHoveredNodes[i].removeHover=true;
}
this.currentHoveredNodes=_83a;
}
},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"));
dojo.addOnLoad(dojo.hitch(this,"_fixSelectElements"));
setInterval(dojo.hitch(this,function(){
if(this.mouseMoved){
this.update();
this.mouseMoved=false;
}
}),1);
}},updatestyles:{_updateStatus:true,update:function(evt){
if(evt&&(evt.target.tagName=="SELECT"||evt.target.tagName=="TEXTAREA"||evt.target.tagName=="INPUT")){
return;
}
setTimeout(dojo.hitch(this,function(){
this._updateStatus=!this._updateStatus;
dojo.body().parentNode.style.display=this._updateStatus?"block":"table";
dojo.body().parentNode.style.width=this._updateStatus?"auto":"100%";
dojo.body().parentNode.style.height=this._updateStatus?"auto":"100%";
}),10);
},init:function(){
if(epages.Browser.engine=="WebKit"){
dojo.connect(dojo.body().parentNode,"click",this,"update");
dojo.addOnLoad(dojo.hitch(this,function(){
dojo.hitch(this,"update");
setTimeout(dojo.hitch(this,"update"),10);
setTimeout(dojo.hitch(this,"update"),100);
}));
}
}},fixtableborder:{init:function(){
if(epages.Browser.engine=="Gecko"){
dojo.addOnLoad(function(){
var _840=dojo.query(".ContentArea table[border]").concat(dojo.query(".ContentArea table[width]"));
for(var i=0;i<_840.length;i++){
if(!_840[i].className||(_840[i].className&&_840[i].className=="")){
_840[i].style.marginLeft="1px";
}
}
});
}
}},highlighterrorimages:{init:function(){
dojo.addOnLoad(function(){
for(var i=0;i<document.images.length;i++){
var _843=new Image();
_843.onerror=function(){
this.imageRef.src=epages.themeUrl("images")+"/img_faultyimage.png";
};
_843.imageRef=document.images[i];
_843.src=document.images[i].src;
}
});
}},init:function(){
this.png.init();
this.pseudoclasses.init();
this.updatestyles.init();
this.fixtableborder.init();
this.highlighterrorimages.init();
}};
epages.cssfix.init();
}
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",_allowCheckStatus:true,_allowCheckStatusEvent:null,_formDescriptionLayer:null,_groupElements:[],_transformElement:function(_844){
var _845=this.domNode.selectedIndex;
var _846=this.domNode.cloneNode(true);
var _847=document.createElement("span");
_847.className=_844+" EnableActive EnableHover "+(this.domNode.disabled?"Disabled":"")+(this.domNode.size?"Sized":"");
_847.appendChild(_846);
this.domNode.parentNode.replaceChild(_847,this.domNode);
this.domNode=_847;
this.elementNode=this.domNode.getElementsByTagName("*")[0];
if(_845){
this.elementNode.selectedIndex=_845;
}
},_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"){
if(this.domNode.className.match("Checkbox")||this.domNode.className.match("Radio")){
if(!this.domNode.getAttribute("value")){
this.domNode.defaultValue="on";
}
this.inputType="checkbox";
this.domNode.readOnly=true;
this.domNode.setAttribute("autocomplete",false);
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 _848=document.createElement("input");
_848.type="submit";
_848.className="HideElement";
this.form.appendChild(_848);
_848.click();
});
}
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);
};
}
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 _84b=this._groupElements;
for(var i=0;i<_84b.length;i++){
if((_84b[i].checked==true||_84b[i].checked=="checked")&&_84b[i].className.match("Checked")){
_84b[i].checked=false;
dojo.removeClass(_84b[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";
}
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 onfocus='this.blur();setTimeout(dojo.hitch(this, function(){this.removeAttribute(\"focused\")}), 1)' class='NoButtonTrigger' type='text' readonly='true' autocomplete='false' style='cursor:default'/><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];
dojo.connect(this.elementNode,"mouseover",this,function(evt){
var _84e=dojo.query(".Button",evt.currentTarget.parentNode.parentNode)[0];
_84e.setAttribute("hovered","");
dojo.addClass(_84e,"hovered");
});
dojo.connect(this.elementNode,"mouseout",this,function(evt){
var _850=dojo.query(".Button",evt.currentTarget.parentNode.parentNode)[0];
_850.removeAttribute("hovered","");
dojo.removeClass(_850,"hovered");
});
dojo.connect(this.elementNode,"change",this,function(evt){
var _852=dojo.query("input[type=text]",evt.currentTarget.parentNode.parentNode)[0];
_852.value=evt.currentTarget.value;
});
}
}
}
}
}
}
}
this._checkStatus();
},_updateCheckbox:function(evt){
var _854=evt.target.getElementsByTagName("input")[0];
if(_854){
epages.event.fire(_854,"click");
if(epages.Browser.engine=="MSIE"){
_854.checked=!_854.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 _857=this._groupElements;
for(var i=0;i<_857.length;i++){
if(!(_857[i].checked==true||_857[i].checked=="checked")){
dojo.removeClass(_857[i],"Checked");
}
}
}
if(this.elementNode.checked){
dojo.addClass(this.domNode,"Checked");
}else{
dojo.removeClass(this.domNode,"Checked");
}
}
},setChecked:function(_859){
if(this.elementNode.className.match("Radio")){
if(_859){
var _85a=dojo.query("input[name="+this.elementNode.name+"].Radio");
for(var i=0;i<_85a.length;i++){
_85a[i].checked=false;
}
this.elementNode.checked=true;
epages.event.fire(this.elementNode,"change");
}
}else{
this.elementNode.checked=_859;
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{
eval(this.domNode._tempOnclick);
}
}
if(this.domNode._tempOnchange){
if(epages.Browser.engine=="MSIE"){
(dojo.hitch(this.domNode,this.domNode._tempOnchange))();
}else{
eval(this.domNode._tempOnchange);
}
}
},_showDescription:function(evt){
var _85d=evt.currentTarget;
if(_85d.getAttribute("description")&&_85d.getAttribute("description").length>1){
if(this._formDescriptionLayer){
var _85e=this._formDescriptionLayer;
_85e.className=_85e.className.replace(/HideElement/,"");
if(_85e.offsetWidth>300){
_85e.style.width="300px";
}
dojo.fadeIn({node:_85e,duration:200}).play();
}else{
var _85f=$E(this.domNode).getAbsolutePosition();
this._formDescriptionLayer=document.createElement("div");
var _860=document.createElement("div");
_860.className="TooltipShadow";
with(this._formDescriptionLayer){
innerHTML=unescape(_85d.getAttribute("description")).replace(/&lt;/g,"<").replace(/&gt;/g,">");
className="Tooltip HideElement Wide";
onselectstart=function(){
return false;
};
style.MozUserSelect="none";
style.WebkitUserSelect="ignore";
style.left=(_85f.x+this.domNode.offsetWidth+2)+"px";
style.top=_85f.y+"px";
style.display="block";
appendChild(_860);
}
dojo.style(this._formDescriptionLayer,"opacity",0);
dojo.body().appendChild(this._formDescriptionLayer);
this._showDescription(evt);
}
}
},_hideDescription:function(evt){
if(this._formDescriptionLayer){
var _862=this._formDescriptionLayer;
dojo.fadeOut({node:_862,duration:200}).play();
setTimeout(function(){
_862.className+=" HideElement";
},200);
}
},_highlightChanges:function(){
var _863=this.elementNode;
if(_863.tagName=="SELECT"&&epages.Browser.engine=="MSIE"){
_863=this.domNode;
}
switch(this.inputType){
case "text":
if(_863.startupValue!=_863.value){
dojo.addClass(_863,"Changed");
}else{
dojo.removeClass(_863,"Changed");
}
if(_863.className.match("Mandatory")&&_863.value.length<1){
dojo.addClass(_863,"Unfilled");
}else{
dojo.removeClass(_863,"Unfilled");
}
break;
case "select":
if(epages.Browser.engine=="MSIE"){
_863=this.domNode;
}
if(this.elementNode.startupIndex!=this.elementNode.selectedIndex){
dojo.addClass(_863,"Changed");
}else{
dojo.removeClass(_863,"Changed");
}
break;
case "radio":
break;
case "checkbox":
break;
case "file":
_863=this.domNode.firstChild;
if(_863.value.length>1){
dojo.addClass(_863,"Changed");
}else{
dojo.removeClass(_863,"Changed");
}
break;
}
},setStartUpValue:function(v){
this.elementNode.startupValue=v;
this._checkStatus();
},postCreate:function(){
this.inherited("postCreate",arguments);
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){
dojo.connect(dojo.body(),"mouseup",this,"_checkStatus");
dojo.connect(this.elementNode,"keyup",this,"_checkKeyInput");
setInterval(dojo.hitch(this,function(){
this._checkStatus();
this._highlightChanges();
}),800);
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"){
dojo.connect(this.elementNode,"focus",this,"_showDescription");
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;
dojo.connect(this.elementNode,"change",this,"_highlightChanges");
this._highlightChanges();
}
}});
}
dojo.i18n._preloadLocalizations("epages.nls.ep_base",["de","xx","ROOT","en"]);
