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.5",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(!window.StoreRoot){
console.warn("global var StoreRoot not defined in epages.require()");
}
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:window.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(){
epages.vars.dojoUnloadStuff=window.onbeforeunload;
window.onbeforeunload=function(){
var l=false;
var d=dojo;
d.forEach(epages.onUnloadFunctions,function(el){
l|=el();
});
if(l){
d.require("epages.io.translation");
return epages.io.dictionary.get("LoseChanges");
}else{
dojo["require"]("epages.browser");
if(epages.Browser.engine=="MSIE"&&epages.Browser.version>6){
document.getElementsByTagName("body")[0].className+=" SuspendUserInteraction";
setTimeout(function(){
dojo.removeClass(document.getElementsByTagName("body")[0],"SuspendUserInteraction");
},2000);
window.onunload=function(){
if(epages.vars.dojoUnloadStuff){
epages.vars.dojoUnloadStuff();
}
if(window.CollectGarbage){
window.CollectGarbage();
}
};
}
}
return;
};
});
try{
window.console=window.console||{};
window.console.debug=window.console.debug||function(){
return;
};
window.console.warn=window.console.warn||function(){
return;
};
}
catch(e){
}
}
if(!dojo._hasResource["epages.preload"]){
dojo._hasResource["epages.preload"]=true;
dojo.provide("epages.preload");
epages.Preload={preloadImagesWidget:["img_busy.gif","img_button_big.png","img_button_big_active.png","img_button_big_active_float.png","img_button_big_click.png","img_button_big_click_float.png","img_button_big_disabled.png","img_button_big_disabled_float.png","img_button_big_float.png","img_button_big_hover.png","img_button_big_hover_float.png","img_button_content.png","img_button_content_active.png","img_button_content_clicked.png","img_button_content_disabled.png","img_button_content_hover.png","img_button_float.png","img_button_float_active.png","img_button_float_clicked.png","img_button_float_disabled.png","img_button_float_hover.png","bgr_toolbox_hover.png","bgr_toolbox_floatin_hover.png"],preloadImagesBO:["bgr_infopage_section.png","bgr_infopage_section_large.png"],ready:false};
(function(){
var _ae=[];
for(var i=0;i<epages.Preload.preloadImagesWidget.length;i++){
var _b0=new Image();
_b0.src=epages.themeUrl("images")+"/"+epages.Preload.preloadImagesWidget[i];
_ae.push(_b0);
}
if(epages.vars.IconsRoot!=undefined){
for(var i=0;i<epages.Preload.preloadImagesBO.length;i++){
var _b0=new Image();
_b0.src=epages.vars.IconsRoot+"/"+epages.Preload.preloadImagesBO[i];
_ae.push(_b0);
}
}
epages.Preload.ready=true;
})();
}
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 _b1=dojo.doc;
if(_b1.selection){
var s=_b1.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _b3=dojo.global;
var _b4=_b3.getSelection();
if(dojo.isString(_b4)){
return !_b4;
}else{
return _b4.isCollapsed||!_b4.toString();
}
}
},getBookmark:function(){
var _b5,_b6=dojo.doc.selection;
if(_b6){
var _b7=_b6.createRange();
if(_b6.type.toUpperCase()=="CONTROL"){
if(_b7.length){
_b5=[];
var i=0,len=_b7.length;
while(i<len){
_b5.push(_b7.item(i++));
}
}else{
_b5=null;
}
}else{
_b5=_b7.getBookmark();
}
}else{
if(window.getSelection){
_b6=dojo.global.getSelection();
if(_b6){
_b7=_b6.getRangeAt(0);
_b5=_b7.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _b5;
},moveToBookmark:function(_ba){
var _bb=dojo.doc;
if(_bb.selection){
var _bc;
if(dojo.isArray(_ba)){
_bc=_bb.body.createControlRange();
dojo.forEach(_ba,function(n){
_bc.addElement(n);
});
}else{
_bc=_bb.selection.createRange();
_bc.moveToBookmark(_ba);
}
_bc.select();
}else{
var _be=dojo.global.getSelection&&dojo.global.getSelection();
if(_be&&_be.removeAllRanges){
_be.removeAllRanges();
_be.addRange(_ba);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(_bf,_c0){
return {node:_bf&&dojo.isDescendant(dijit._curFocus,_bf.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_c0||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_c0||dojo.global,dijit.getBookmark):null,openedForWindow:_c0};
},focus:function(_c1){
if(!_c1){
return;
}
var _c2="node" in _c1?_c1.node:_c1,_c3=_c1.bookmark,_c4=_c1.openedForWindow;
if(_c2){
var _c5=(_c2.tagName.toLowerCase()=="iframe")?_c2.contentWindow:_c2;
if(_c5&&_c5.focus){
try{
_c5.focus();
}
catch(e){
}
}
dijit._onFocusNode(_c2);
}
if(_c3&&dojo.withGlobal(_c4||dojo.global,dijit.isCollapsed)){
if(_c4){
_c4.focus();
}
try{
dojo.withGlobal(_c4||dojo.global,dijit.moveToBookmark,null,[_c3]);
}
catch(e){
}
}
},_activeStack:[],registerWin:function(_c6){
if(!_c6){
_c6=window;
}
dojo.connect(_c6.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(evt.target||evt.srcElement);
});
var doc=_c6.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(_cd){
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(_ce){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _cf=[];
try{
while(_ce){
if(_ce.dijitPopupParent){
_ce=dijit.byId(_ce.dijitPopupParent).domNode;
}else{
if(_ce.tagName&&_ce.tagName.toLowerCase()=="body"){
if(_ce===dojo.body()){
break;
}
_ce=dijit.getDocumentWindow(_ce.ownerDocument).frameElement;
}else{
var id=_ce.getAttribute&&_ce.getAttribute("widgetId");
if(id){
_cf.unshift(id);
}
_ce=_ce.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_cf);
},_onFocusNode:function(_d1){
if(!_d1){
return;
}
if(_d1.nodeType==9){
return;
}
if(_d1.nodeType==9){
var _d2=dijit.getDocumentWindow(_d1).frameElement;
if(!_d2){
return;
}
_d1=_d2;
}
dijit._onTouchNode(_d1);
if(_d1==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_d1;
dojo.publish("focusNode",[_d1]);
},_setStack:function(_d3){
var _d4=dijit._activeStack;
dijit._activeStack=_d3;
for(var _d5=0;_d5<Math.min(_d4.length,_d3.length);_d5++){
if(_d4[_d5]!=_d3[_d5]){
break;
}
}
for(var i=_d4.length-1;i>=_d5;i--){
var _d7=dijit.byId(_d4[i]);
if(_d7){
_d7._focused=false;
_d7._hasBeenBlurred=true;
if(_d7._onBlur){
_d7._onBlur();
}
if(_d7._setStateClass){
_d7._setStateClass();
}
dojo.publish("widgetBlur",[_d7]);
}
}
for(i=_d5;i<_d3.length;i++){
_d7=dijit.byId(_d3[i]);
if(_d7){
_d7._focused=true;
if(_d7._onFocus){
_d7._onFocus();
}
if(_d7._setStateClass){
_d7._setStateClass();
}
dojo.publish("widgetFocus",[_d7]);
}
}
}});
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(_d8){
if(this._hash[_d8.id]){
throw new Error("Tried to register widget with id=="+_d8.id+" but that id is already registered");
}
this._hash[_d8.id]=_d8;
},remove:function(id){
delete this._hash[id];
},forEach:function(_da){
for(var id in this._hash){
_da(this._hash[id]);
}
},filter:function(_dc){
var res=new dijit.WidgetSet();
this.forEach(function(_de){
if(_dc(_de)){
res.add(_de);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_e1){
return _e1.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_e2){
var id;
do{
id=_e2+"_"+(_e2 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_e2]:dijit._widgetTypeCtr[_e2]=0);
}while(dijit.byId(id));
return id;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.registry.forEach(function(_e4){
_e4.destroy();
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(_e6){
return dijit.registry.byId(_e6.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(_e7){
while(_e7){
if(_e7.getAttribute&&_e7.getAttribute("widgetId")){
return dijit.registry.byId(_e7.getAttribute("widgetId"));
}
_e7=_e7.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(_e8){
var _e9=dojo.style(_e8);
return (_e9.visibility!="hidden")&&(_e9.visibility!="collapsed")&&(_e9.display!="none")&&(dojo.attr(_e8,"type")!="hidden");
};
dijit.isTabNavigable=function(_ea){
if(dojo.hasAttr(_ea,"disabled")){
return false;
}
var _eb=dojo.hasAttr(_ea,"tabindex");
var _ec=dojo.attr(_ea,"tabindex");
if(_eb&&_ec>=0){
return true;
}
var _ed=_ea.nodeName.toLowerCase();
if(((_ed=="a"&&dojo.hasAttr(_ea,"href"))||dijit._tabElements[_ed])&&(!_eb||_ec>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(_ee){
var _ef,_f0,_f1,_f2,_f3,_f4;
var _f5=function(_f6){
dojo.query("> *",_f6).forEach(function(_f7){
var _f8=dijit._isElementShown(_f7);
if(_f8&&dijit.isTabNavigable(_f7)){
var _f9=dojo.attr(_f7,"tabindex");
if(!dojo.hasAttr(_f7,"tabindex")||_f9==0){
if(!_ef){
_ef=_f7;
}
_f0=_f7;
}else{
if(_f9>0){
if(!_f1||_f9<_f2){
_f2=_f9;
_f1=_f7;
}
if(!_f3||_f9>=_f4){
_f4=_f9;
_f3=_f7;
}
}
}
}
if(_f8&&_f7.nodeName.toUpperCase()!="SELECT"){
_f5(_f7);
}
});
};
if(dijit._isElementShown(_ee)){
_f5(_ee);
}
return {first:_ef,last:_f0,lowest:_f1,highest:_f3};
};
dijit.getFirstInTabbingOrder=function(_fa){
var _fb=dijit._getTabNavigable(dojo.byId(_fa));
return _fb.lowest?_fb.lowest:_fb.first;
};
dijit.getLastInTabbingOrder=function(_fc){
var _fd=dijit._getTabNavigable(dojo.byId(_fc));
return _fd.last?_fd.last:_fd.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_fe){
this.pairs=[];
this.returnWrappers=_fe||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(_ff,_100,wrap,_102,_103){
this.pairs[((_103)?"unshift":"push")]([_ff,_100,wrap,_102]);
},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 _109=dojo.global;
var _10a=dojo.doc;
var w=0,h=0;
var de=_10a.documentElement;
var dew=de.clientWidth,deh=de.clientHeight;
if(dojo.isMozilla){
var minw,minh,maxw,maxh;
var dbw=_10a.body.clientWidth;
if(dbw>dew){
minw=dew;
maxw=dbw;
}else{
maxw=dew;
minw=dbw;
}
var dbh=_10a.body.clientHeight;
if(dbh>deh){
minh=deh;
maxh=dbh;
}else{
maxh=deh;
minh=dbh;
}
w=(maxw>_109.innerWidth)?minw:maxw;
h=(maxh>_109.innerHeight)?minh:maxh;
}else{
if(!dojo.isOpera&&_109.innerWidth){
w=_109.innerWidth;
h=_109.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 _116=dojo._docScroll();
return {w:w,h:h,l:_116.x,t:_116.y};
};
dijit.placeOnScreen=function(node,pos,_119,_11a){
var _11b=dojo.map(_119,function(_11c){
return {corner:_11c,pos:pos};
});
return dijit._place(node,_11b);
};
dijit._place=function(node,_11e,_11f){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_11e,function(_122){
var _123=_122.corner;
var pos=_122.pos;
if(_11f){
_11f(node,_122.aroundCorner,_123);
}
var _125=node.style;
var _126=_125.display;
var _127=_125.visibility;
_125.visibility="hidden";
_125.display="";
var mb=dojo.marginBox(node);
_125.display=_126;
_125.visibility=_127;
var _129=(_123.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_12a=(_123.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_123.charAt(1)=="L"?Math.min(view.l+view.w,_129+mb.w):pos.x),endY=(_123.charAt(0)=="T"?Math.min(view.t+view.h,_12a+mb.h):pos.y),_12d=endX-_129,_12e=endY-_12a,_12f=(mb.w-_12d)+(mb.h-_12e);
if(best==null||_12f<best.overflow){
best={corner:_123,aroundCorner:_122.aroundCorner,x:_129,y:_12a,w:_12d,h:_12e,overflow:_12f};
}
return !_12f;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_11f){
_11f(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_131,_132,_133){
_131=dojo.byId(_131);
var _134=_131.style.display;
_131.style.display="";
var _135=_131.offsetWidth;
var _136=_131.offsetHeight;
var _137=dojo.coords(_131,true);
_131.style.display=_134;
return dijit._placeOnScreenAroundRect(node,_137.x,_137.y,_135,_136,_132,_133);
};
dijit.placeOnScreenAroundRectangle=function(node,_139,_13a,_13b){
return dijit._placeOnScreenAroundRect(node,_139.x,_139.y,_139.width,_139.height,_13a,_13b);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_13f,_140,_141,_142){
var _143=[];
for(var _144 in _141){
_143.push({aroundCorner:_144,corner:_141[_144],pos:{x:x+(_144.charAt(1)=="L"?0:_13f),y:y+(_144.charAt(0)=="T"?0:_140)}});
}
return dijit._place(node,_143,_142);
};
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,_14a,_14b,_14c){
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 _14f=[],_150=1000,_151=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 _155=args.popup,_156=args.orient||{"BL":"TL","TL":"BL"},_157=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_151++);
var _159=dojo.doc.createElement("div");
dijit.setWaiRole(_159,"presentation");
_159.id=id;
_159.className="dijitPopup";
_159.style.zIndex=_150+_14f.length;
_159.style.left=_159.style.top="0px";
_159.style.visibility="hidden";
if(args.parent){
_159.dijitPopupParent=args.parent.id;
}
dojo.body().appendChild(_159);
var s=_155.domNode.style;
s.display="";
s.visibility="";
s.position="";
_159.appendChild(_155.domNode);
var _15b=new dijit.BackgroundIframe(_159);
var best=_157?dijit.placeOnScreenAroundElement(_159,_157,_156,_155.orient?dojo.hitch(_155,"orient"):null):dijit.placeOnScreen(_159,args,_156=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);
_159.style.visibility="visible";
var _15d=[];
var _15e=function(){
for(var pi=_14f.length-1;pi>0&&_14f[pi].parent===_14f[pi-1].widget;pi--){
}
return _14f[pi];
};
_15d.push(dojo.connect(_159,"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 _161=_15e();
if(_161&&_161.onCancel){
_161.onCancel();
}
}
}
}));
if(_155.onCancel){
_15d.push(dojo.connect(_155,"onCancel",null,args.onCancel));
}
_15d.push(dojo.connect(_155,_155.onExecute?"onExecute":"onChange",null,function(){
var _162=_15e();
if(_162&&_162.onExecute){
_162.onExecute();
}
}));
_14f.push({wrapper:_159,iframe:_15b,widget:_155,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_15d});
if(_155.onOpen){
_155.onOpen(best);
}
return best;
};
this.close=function(_163){
while(dojo.some(_14f,function(elem){
return elem.widget==_163;
})){
var top=_14f.pop(),_166=top.wrapper,_167=top.iframe,_168=top.widget,_169=top.onClose;
if(_168.onClose){
_168.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_168||!_168.domNode){
return;
}
this.prepare(_168.domNode);
_167.destroy();
dojo._destroyElement(_166);
if(_169){
_169();
}
}
};
}();
dijit._frames=new function(){
var _16a=[];
this.pop=function(){
var _16b;
if(_16a.length){
_16b=_16a.pop();
_16b.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\");'>";
_16b=dojo.doc.createElement(html);
}else{
_16b=dojo.doc.createElement("iframe");
_16b.src="javascript:\"\"";
_16b.className="dijitBackgroundIframe";
}
_16b.tabIndex=-1;
dojo.body().appendChild(_16b);
}
return _16b;
};
this.push=function(_16e){
_16e.style.display="";
if(dojo.isIE){
_16e.style.removeExpression("width");
_16e.style.removeExpression("height");
}
_16a.push(_16e);
};
}();
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 _171=dijit._frames.pop();
node.appendChild(_171);
if(dojo.isIE){
_171.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_171.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_171;
}
};
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 _176=dojo.doc.compatMode!="BackCompat";
var _177=(_176&&!dojo.isSafari)?html:body;
function addPseudoAttrs(_178){
var _179=_178.parentNode;
var _17a=_178.offsetParent;
if(_17a==null){
_178=_177;
_17a=html;
_179=null;
}
_178._offsetParent=(_17a==body)?_177:_17a;
_178._parent=(_179==body)?_177:_179;
_178._start={H:_178.offsetLeft,V:_178.offsetTop};
_178._scroll={H:_178.scrollLeft,V:_178.scrollTop};
_178._renderedSize={H:_178.offsetWidth,V:_178.offsetHeight};
var bp=dojo._getBorderExtents(_178);
_178._borderStart={H:bp.l,V:bp.t};
_178._borderSize={H:bp.w,V:bp.h};
_178._clientSize=(_178._offsetParent==html&&dojo.isSafari&&_176)?{H:html.clientWidth,V:html.clientHeight}:{H:_178.clientWidth,V:_178.clientHeight};
_178._scrollBarSize={V:null,H:null};
for(var dir in _178._scrollBarSize){
var _17d=_178._renderedSize[dir]-_178._clientSize[dir]-_178._borderSize[dir];
_178._scrollBarSize[dir]=(_178._clientSize[dir]>0&&_17d>=15&&_17d<=17)?_17d:0;
}
_178._isScrollable={V:null,H:null};
for(dir in _178._isScrollable){
var _17e=dir=="H"?"V":"H";
_178._isScrollable[dir]=_178==_177||_178._scroll[dir]||_178._scrollBarSize[_17e];
}
};
var _17f=node;
while(_17f!=null){
addPseudoAttrs(_17f);
var next=_17f._parent;
if(next){
next._child=_17f;
}
_17f=next;
}
for(var dir in _177._renderedSize){
_177._renderedSize[dir]=Math.min(_177._clientSize[dir],_177._renderedSize[dir]);
}
var _182=node;
while(_182!=_177){
_17f=_182._parent;
if(_17f.tagName=="TD"){
var _183=_17f._parent._parent._parent;
if(_183._offsetParent==_182._offsetParent&&_17f._offsetParent!=_182._offsetParent){
_17f=_183;
}
}
var _184=_182==_177||(_17f._offsetParent!=_182._offsetParent);
for(dir in _182._start){
var _185=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_17f._clientSize.H>0){
var _186=_17f.scrollWidth-_17f._clientSize.H;
if(_186>0){
_17f._scroll.H-=_186;
}
}
if(dojo.isIE&&_17f._offsetParent.tagName=="TABLE"){
_17f._start[dir]-=_17f._offsetParent._borderStart[dir];
_17f._borderStart[dir]=_17f._borderSize[dir]=0;
}
if(_17f._clientSize[dir]==0){
_17f._renderedSize[dir]=_17f._clientSize[dir]=_17f._child._clientSize[dir];
if(rtl&&dir=="H"){
_17f._start[dir]-=_17f._renderedSize[dir];
}
}else{
_17f._renderedSize[dir]-=_17f._borderSize[dir]+_17f._scrollBarSize[dir];
}
_17f._start[dir]+=_17f._borderStart[dir];
var _187=_182._start[dir]-(_184?0:_17f._start[dir])-_17f._scroll[dir];
var _188=_187+_182._renderedSize[dir]-_17f._renderedSize[dir];
var _189,_18a=(dir=="H")?"scrollLeft":"scrollTop";
var _18b=(dir=="H"&&rtl);
var _18c=_18b?-_188:_187;
var _18d=_18b?-_187:_188;
if(_18c<=0){
_189=_18c;
}else{
if(_18d<=0){
_189=0;
}else{
if(_18c<_18d){
_189=_18c;
}else{
_189=_18d;
}
}
}
var _18e=0;
if(_189!=0){
var _18f=_17f[_18a];
_17f[_18a]+=_18b?-_189:_189;
_18e=_17f[_18a]-_18f;
_187-=_18e;
_18d-=_18b?-_18e:_18e;
}
_17f._renderedSize[dir]=_182._renderedSize[dir]+_17f._scrollBarSize[dir]-((_17f._isScrollable[dir]&&_18d>0)?_18d:0);
_17f._start[dir]+=(_187>=0||!_17f._isScrollable[dir])?_187:0;
}
_182=_17f;
}
};
}
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 _192=d.isOpera;
var maj=Math.floor;
var ff=d.isFF;
var _195=d.boxModel.replace(/-/,"");
var _196={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_192,dj_opera8:maj(_192)==8,dj_opera9:maj(_192)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_196["dj_"+_195]=true;
var html=dojo.doc.documentElement;
for(var p in _196){
if(_196[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 _196){
if(_196[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,_19b,node,_19d,obj,_19f,_1a0){
if(obj!=this._obj){
this.stop();
this._initialDelay=_1a0||500;
this._subsequentDelay=_19f||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_19b,_19d);
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,_1a2,_1a3,_1a4,_1a5,_1a6){
if(_1a2.keyCode){
_1a2.charOrCode=_1a2.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_1a2.charCode){
_1a2.charOrCode=String.fromCharCode(_1a2.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==_1a2.charOrCode&&(_1a2.ctrlKey===undefined||_1a2.ctrlKey==evt.ctrlKey)&&(_1a2.altKey===undefined||_1a2.altKey==evt.ctrlKey)&&(_1a2.shiftKey===undefined||_1a2.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_1a2,_1a3,node,_1a4,_1a2,_1a5,_1a6);
}else{
if(dijit.typematic._obj==_1a2){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_1a2){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_1aa,_1ab,_1ac,_1ad){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_1aa,node,_1ab,node,_1ac,_1ad);
}),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,_1aa,node,_1ab,node,_1ac,_1ad);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_1b4,_1b5,_1b6,_1b7,_1b8,_1b9,_1ba){
return this.addKeyListener(_1b5,_1b6,_1b7,_1b8,_1b9,_1ba).concat(this.addMouseListener(_1b4,_1b7,_1b8,_1b9,_1ba));
}};
}
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 _1bd=cs.backgroundImage;
var _1be=(cs.borderTopColor==cs.borderRightColor)||(_1bd!=null&&(_1bd=="none"||_1bd=="url(invalid-url:)"));
dojo[_1be?"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 _1c1=this.getWaiRole(elem);
if(role){
return (_1c1.indexOf(role)>-1);
}else{
return (_1c1.length>0);
}
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _1c5=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_1c5)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_1c5+" ").indexOf(" "+role+" ")<0){
var _1c6=dojo.trim(_1c5.replace(this._XhtmlRoles,""));
var _1c7=dojo.trim(_1c5.replace(_1c6,""));
dojo.attr(elem,"role",_1c7+(_1c7?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _1ca=dojo.attr(elem,"role");
if(!_1ca){
return;
}
if(role){
var _1cb=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_1ca+" ").replace(" "+_1cb+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_1ce){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1ce);
}else{
return elem.hasAttribute?elem.hasAttribute("aria-"+_1ce):!!elem.getAttribute("aria-"+_1ce);
}
},getWaiState:function(elem,_1d0){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1d0);
}else{
var _1d1=elem.getAttribute("aria-"+_1d0);
return _1d1?_1d1:"";
}
},setWaiState:function(elem,_1d3,_1d4){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1d3,_1d4);
}else{
elem.setAttribute("aria-"+_1d3,_1d4);
}
},removeWaiState:function(elem,_1d6){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1d6);
}else{
elem.removeAttribute("aria-"+_1d6);
}
}});
}
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(_1d7,_1d8){
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 _1d9=dojo.date.stamp._isoRegExp.exec(_1d7);
var _1da=null;
if(_1d9){
_1d9.shift();
if(_1d9[1]){
_1d9[1]--;
}
if(_1d9[6]){
_1d9[6]*=1000;
}
if(_1d8){
_1d8=new Date(_1d8);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _1d8["get"+prop]();
}).forEach(function(_1dc,_1dd){
if(_1d9[_1dd]===undefined){
_1d9[_1dd]=_1dc;
}
});
}
_1da=new Date(_1d9[0]||1970,_1d9[1]||0,_1d9[2]||1,_1d9[3]||0,_1d9[4]||0,_1d9[5]||0,_1d9[6]||0);
var _1de=0;
var _1df=_1d9[7]&&_1d9[7].charAt(0);
if(_1df!="Z"){
_1de=((_1d9[8]||0)*60)+(Number(_1d9[9])||0);
if(_1df!="-"){
_1de*=-1;
}
}
if(_1df){
_1de-=_1da.getTimezoneOffset();
}
if(_1de){
_1da.setTime(_1da.getTime()+_1de*60000);
}
}
return _1da;
};
dojo.date.stamp.toISOString=function(_1e0,_1e1){
var _=function(n){
return (n<10)?"0"+n:n;
};
_1e1=_1e1||{};
var _1e4=[];
var _1e5=_1e1.zulu?"getUTC":"get";
var date="";
if(_1e1.selector!="time"){
var year=_1e0[_1e5+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_1e0[_1e5+"Month"]()+1),_(_1e0[_1e5+"Date"]())].join("-");
}
_1e4.push(date);
if(_1e1.selector!="date"){
var time=[_(_1e0[_1e5+"Hours"]()),_(_1e0[_1e5+"Minutes"]()),_(_1e0[_1e5+"Seconds"]())].join(":");
var _1e9=_1e0[_1e5+"Milliseconds"]();
if(_1e1.milliseconds){
time+="."+(_1e9<100?"0":"")+_(_1e9);
}
if(_1e1.zulu){
time+="Z";
}else{
if(_1e1.selector!="time"){
var _1ea=_1e0.getTimezoneOffset();
var _1eb=Math.abs(_1ea);
time+=(_1ea>0?"-":"+")+_(Math.floor(_1eb/60))+":"+_(_1eb%60);
}
}
_1e4.push(time);
}
return _1e4.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _1ed=d._scopeName+"Type";
var qry="["+_1ed+"]";
function val2type(_1ef){
if(d.isString(_1ef)){
return "string";
}
if(typeof _1ef=="number"){
return "number";
}
if(typeof _1ef=="boolean"){
return "boolean";
}
if(d.isFunction(_1ef)){
return "function";
}
if(d.isArray(_1ef)){
return "array";
}
if(_1ef instanceof Date){
return "date";
}
if(_1ef instanceof d._Url){
return "url";
}
return "object";
};
function str2obj(_1f0,type){
switch(type){
case "string":
return _1f0;
case "number":
return _1f0.length?Number(_1f0):NaN;
case "boolean":
return typeof _1f0=="boolean"?_1f0:!(_1f0.toLowerCase()=="false");
case "function":
if(d.isFunction(_1f0)){
_1f0=_1f0.toString();
_1f0=d.trim(_1f0.substring(_1f0.indexOf("{")+1,_1f0.length-1));
}
try{
if(_1f0.search(/[^\w\.]+/i)!=-1){
_1f0=d.parser._nameAnonFunc(new Function(_1f0),this);
}
return d.getObject(_1f0,false);
}
catch(e){
return new Function();
}
case "array":
return _1f0?_1f0.split(/\s*,\s*/):[];
case "date":
switch(_1f0){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_1f0);
}
case "url":
return d.baseUrl+_1f0;
default:
return d.fromJson(_1f0);
}
};
var _1f2={};
function getClassInfo(_1f3){
if(!_1f2[_1f3]){
var cls=d.getObject(_1f3);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_1f3+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _1f5=cls.prototype;
var _1f6={};
for(var name in _1f5){
if(name.charAt(0)=="_"){
continue;
}
var _1f8=_1f5[name];
_1f6[name]=val2type(_1f8);
}
_1f2[_1f3]={cls:cls,params:_1f6};
}
return _1f2[_1f3];
};
this._functionFromScript=function(_1f9){
var _1fa="";
var _1fb="";
var _1fc=_1f9.getAttribute("args");
if(_1fc){
d.forEach(_1fc.split(/\s*,\s*/),function(part,idx){
_1fa+="var "+part+" = arguments["+idx+"]; ";
});
}
var _1ff=_1f9.getAttribute("with");
if(_1ff&&_1ff.length){
d.forEach(_1ff.split(/\s*,\s*/),function(part){
_1fa+="with("+part+"){";
_1fb+="}";
});
}
return new Function(_1fa+_1f9.innerHTML+_1fb);
};
this.instantiate=function(_201){
var _202=[];
d.forEach(_201,function(node){
if(!node){
return;
}
var type=node.getAttribute(_1ed);
if((!type)||(!type.length)){
return;
}
var _205=getClassInfo(type);
var _206=_205.cls;
var ps=_206._noScript||_206.prototype._noScript;
var _208={};
var _209=node.attributes;
for(var name in _205.params){
var item=_209.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _20c=item.value;
switch(name){
case "class":
_20c=node.className;
break;
case "style":
_20c=node.style&&node.style.cssText;
}
var _20d=_205.params[name];
_208[name]=str2obj(_20c,_20d);
}
if(!ps){
var _20e=[],_20f=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_210){
var _211=_210.getAttribute("event"),type=_210.getAttribute("type"),nf=d.parser._functionFromScript(_210);
if(_211){
if(type=="dojo/connect"){
_20e.push({event:_211,func:nf});
}else{
_208[_211]=nf;
}
}else{
_20f.push(nf);
}
});
}
var _213=_206["markupFactory"];
if(!_213&&_206["prototype"]){
_213=_206.prototype["markupFactory"];
}
var _214=_213?_213(_208,node,_206):new _206(_208,node);
_202.push(_214);
var _215=node.getAttribute("jsId");
if(_215){
d.setObject(_215,_214);
}
if(!ps){
d.forEach(_20e,function(_216){
d.connect(_214,_216.event,null,_216.func);
});
d.forEach(_20f,function(func){
func.call(_214);
});
}
});
d.forEach(_202,function(_218){
if(_218&&_218.startup&&!_218._started&&(!_218.getParent||!_218.getParent())){
_218.startup();
}
});
return _202;
};
this.parse=function(_219){
var list=d.query(qry,_219);
var _21b=this.instantiate(list);
return _21b;
};
}();
(function(){
var _21c=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,_21c);
}else{
dojo._loaders.unshift(_21c);
}
})();
dojo.parser._anonCtr=0;
dojo.parser._anon={};
dojo.parser._nameAnonFunc=function(_21d,_21e){
var jpn="$joinpoint";
var nso=(_21e||dojo.parser._anon);
if(dojo.isIE){
var cn=_21d["__dojoNameCache"];
if(cn&&nso[cn]===_21d){
return _21d["__dojoNameCache"];
}
}
var ret="__"+dojo.parser._anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.parser._anonCtr++;
}
nso[ret]=_21d;
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(_22c,map,_22e,_22f){
_22f=_22f||dojo.global;
_22e=(!_22e)?function(v){
return v;
}:dojo.hitch(_22f,_22e);
return _22c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_231,key,_233){
var _234=dojo.getObject(key,false,map);
if(_233){
_234=dojo.getObject(_233,false,_22f).call(_22f,_234,key);
}
return _22e(_234,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(_237,_238){
if(_237&&dojo.isFunction(_237._onConnect)){
_237._onConnect(_238);
}
});
dijit._connectOnUseEventHandler=function(_239){
};
(function(){
var _23a={};
var _23b=function(dc){
if(!_23a[dc]){
var r=[];
var _23e;
var _23f=dojo.getObject(dc).prototype;
for(var _240 in _23f){
if(dojo.isFunction(_23f[_240])&&(_23e=_240.match(/^_set([a-zA-Z]*)Attr$/))&&_23e[1]){
r.push(_23e[1].charAt(0).toLowerCase()+_23e[1].substr(1));
}
}
_23a[dc]=r;
}
return _23a[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(_241,_242){
this.create(_241,_242);
},create:function(_243,_244){
this.srcNodeRef=dojo.byId(_244);
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(_243){
this.params=_243;
dojo.mixin(this,_243);
}
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 _246=function(attr,_248){
if((_248.params&&attr in _248.params)||_248[attr]){
_248.attr(attr,_248[attr]);
}
};
for(var attr in this.attributeMap){
_246(attr,this);
}
dojo.forEach(_23b(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_246(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.doc.createElement("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_24b){
this.destroyDescendants(_24b);
this.destroy(_24b);
},destroy:function(_24c){
this.uninitialize();
dojo.forEach(this._connects,function(_24d){
dojo.forEach(_24d,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_24c);
dijit.registry.remove(this.id);
},destroyRendering:function(_24f){
if(this.bgIframe){
this.bgIframe.destroy(_24f);
delete this.bgIframe;
}
if(this.domNode){
if(!_24f){
dojo._destroyElement(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_24f){
dojo._destroyElement(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_250){
dojo.forEach(this.getDescendants(),function(_251){
if(_251.destroy){
_251.destroy(_250);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_253){
if(_253 in this._deferredConnects){
var _254=this[this._deferredConnects[_253]||"domNode"];
this.connect(_254,_253.toLowerCase(),this[_253]);
delete this._deferredConnects[_253];
}
},_setClassAttr:function(_255){
var _256=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_256,this["class"]);
this["class"]=_255;
dojo.addClass(_256,_255);
},_setStyleAttr:function(_257){
var _258=this[this.attributeMap["style"]||"domNode"];
if(_258.style.cssText){
_258.style.cssText+="; "+_257;
}else{
_258.style.cssText=_257;
}
this["style"]=_257;
},setAttribute:function(attr,_25a){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_25a);
},_attrToDom:function(attr,_25c){
var _25d=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_25d)?_25d:[_25d],function(_25e){
var _25f=this[_25e.node||_25e||"domNode"];
var type=_25e.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_25c)){
_25c=dojo.hitch(this,_25c);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_25f,attr,_25c);
break;
case "innerHTML":
_25f.innerHTML=_25c;
break;
case "class":
dojo.removeClass(_25f,this[attr]);
dojo.addClass(_25f,_25c);
break;
}
},this);
this[attr]=_25c;
},attr:function(name,_262){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _265=this._getAttrNames(name);
if(args==2){
if(this[_265.s]){
return this[_265.s](_262)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_262);
}
this[name]=_262;
}
return this;
}else{
if(this[_265.g]){
return this[_265.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,_26b,_26c){
var d=dojo;
var dco=d.hitch(d,"connect",obj);
var _26f=[];
if(_26b=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_26c);
_26f.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){
_26f.push(dco("onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER){
return m(e);
}
}));
}
}
_26b="onclick";
}
_26f.push(dco(_26b,this,_26c));
this._connects.push(_26f);
return _26f;
},disconnect:function(_274){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_274){
dojo.forEach(_274,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(_276,_277){
if(_276["declaredClass"]&&_276["addChild"]){
_276.addChild(this,_277);
}else{
dojo.place(this.domNode,_276,_277);
}
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 _279=this.declaredClass,_27a=this;
return dojo.string.substitute(tmpl,this,function(_27b,key){
if(key.charAt(0)=="!"){
_27b=_27a[key.substr(1)];
}
if(typeof _27b=="undefined"){
throw new Error(_279+" template:"+key);
}
if(_27b==null){
return "";
}
return key.charAt(0)=="!"?_27b:_27b.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _27d=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_27d)){
node=dijit._Templated._createNodesFromText(this._stringRepl(_27d))[0];
}else{
node=_27d.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
var _27f=this.srcNodeRef;
if(_27f&&_27f.parentNode){
_27f.parentNode.replaceChild(node,_27f);
}
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(_27f);
},_fillContent:function(_283){
var dest=this.containerNode;
if(_283&&dest){
while(_283.hasChildNodes()){
dest.appendChild(_283.firstChild);
}
}
},_attachTemplateNodes:function(_285,_286){
_286=_286||function(n,p){
return n.getAttribute(p);
};
var _289=dojo.isArray(_285)?_285:(_285.all||_285.getElementsByTagName("*"));
var x=dojo.isArray(_285)?0:-1;
var _28b={};
for(;x<_289.length;x++){
var _28c=(x==-1)?_285:_289[x];
if(this.widgetsInTemplate&&_286(_28c,"dojoType")){
continue;
}
var _28d=_286(_28c,"dojoAttachPoint");
if(_28d){
var _28e,_28f=_28d.split(/\s*,\s*/);
while((_28e=_28f.shift())){
if(dojo.isArray(this[_28e])){
this[_28e].push(_28c);
}else{
this[_28e]=_28c;
}
}
}
var _290=_286(_28c,"dojoAttachEvent");
if(_290){
var _291,_292=_290.split(/\s*,\s*/);
var trim=dojo.trim;
while((_291=_292.shift())){
if(_291){
var _294=null;
if(_291.indexOf(":")!=-1){
var _295=_291.split(":");
_291=trim(_295[0]);
_294=trim(_295[1]);
}else{
_291=trim(_291);
}
if(!_294){
_294=_291;
}
this.connect(_28c,_291,_294);
}
}
}
var role=_286(_28c,"waiRole");
if(role){
dijit.setWaiRole(_28c,role);
}
var _297=_286(_28c,"waiState");
if(_297){
dojo.forEach(_297.split(/\s*,\s*/),function(_298){
if(_298.indexOf("-")!=-1){
var pair=_298.split("-");
dijit.setWaiState(_28c,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_29a,_29b,_29c){
var _29d=dijit._Templated._templateCache;
var key=_29b||_29a;
var _29f=_29d[key];
if(_29f){
if(!_29f.ownerDocument||_29f.ownerDocument==dojo.doc){
return _29f;
}
dojo._destroyElement(_29f);
}
if(!_29b){
_29b=dijit._Templated._sanitizeTemplateString(dojo._getText(_29a));
}
_29b=dojo.string.trim(_29b);
if(_29c||_29b.match(/\$\{([^\}]+)\}/g)){
return (_29d[key]=_29b);
}else{
return (_29d[key]=dijit._Templated._createNodesFromText(_29b)[0]);
}
};
dijit._Templated._sanitizeTemplateString=function(_2a0){
if(_2a0){
_2a0=_2a0.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _2a1=_2a0.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2a1){
_2a0=_2a1[1];
}
}else{
_2a0="";
}
return _2a0;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _2a2=dijit._Templated._templateCache;
for(var key in _2a2){
var _2a4=_2a2[key];
if(!isNaN(_2a4.nodeType)){
dojo._destroyElement(_2a4);
}
delete _2a2[key];
}
});
}
(function(){
var _2a5={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 _2a8="none";
var _2a9=text.replace(/^\s+/,"");
for(var type in _2a5){
var map=_2a5[type];
if(map.re.test(_2a9)){
_2a8=type;
text=map.pre+text+map.post;
break;
}
}
tn.innerHTML=text;
if(tn.normalize){
tn.normalize();
}
var tag={cell:"tr",row:"tbody",section:"table"}[_2a8];
var _2ad=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;
var _2ae=[];
while(_2ad.firstChild){
_2ae.push(_2ad.removeChild(_2ad.firstChild));
}
tn.innerHTML="";
return _2ae;
};
})();
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 _2b1=dijit.byId(id);
return _2b1.isContainer?_2b1:null;
}
}
return null;
},_getSibling:function(_2b2){
var node=this.domNode;
do{
node=node[_2b2+"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(_2b6,_2b7){
var _2b8=this.containerNode;
if(_2b7&&typeof _2b7=="number"){
var _2b9=dojo.query("> [widgetId]",_2b8);
if(_2b9&&_2b9.length>=_2b7){
_2b8=_2b9[_2b7-1];
_2b7="after";
}
}
dojo.place(_2b6.domNode,_2b8,_2b7);
if(this._started&&!_2b6._started){
_2b6.startup();
}
},removeChild:function(_2ba){
if(typeof _2ba=="number"&&_2ba>0){
_2ba=this.getChildren()[_2ba];
}
if(!_2ba||!_2ba.domNode){
return;
}
var node=_2ba.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(_2be){
dojo.forEach(this.getChildren(),function(_2bf){
_2bf.destroyRecursive(_2be);
});
},_getSiblingOfChild:function(_2c0,dir){
var node=_2c0.domNode;
var _2c3=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_2c3];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_2c4){
var _2c5=this.getChildren();
for(var i=0,c;c=_2c5[i];i++){
if(c==_2c4){
return i;
}
}
return -1;
}});
dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_2c8,_2c9){
var _2ca=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_2c8,function(code){
_2ca[code]=prev;
});
dojo.forEach(_2c9,function(code){
_2ca[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(_2cf,_2d0){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_2cf);
},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 _2d1=this._getNextFocusableChild(this.focusedChild,1);
if(_2d1.getFocalNodes){
this.focusChild(_2d1,_2d1.getFocalNodes()[0]);
}else{
this.focusChild(_2d1);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _2d2=this._getNextFocusableChild(this.focusedChild,-1);
if(_2d2.getFocalNodes){
var _2d3=_2d2.getFocalNodes();
this.focusChild(_2d2,_2d3[_2d3.length-1]);
}else{
this.focusChild(_2d2);
}
},focusChild:function(_2d4,node){
if(_2d4){
if(this.focusedChild&&_2d4!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_2d4;
if(node&&_2d4.focusFocalNode){
_2d4.focusFocalNode(node);
}else{
_2d4.focus();
}
}
},_startupChild:function(_2d6){
if(_2d6.getFocalNodes){
dojo.forEach(_2d6.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_2d6.focusNode||_2d6.domNode;
if(_2d6.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 _2de=dijit.getEnclosingWidget(evt.target);
if(_2de&&_2de.isFocusable()){
this.focusedChild=_2de;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
dojo.stopEvent(evt);
},_onChildBlur:function(_2e0){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_2e1,dir){
if(_2e1){
_2e1=this._getSiblingOfChild(_2e1,dir);
}
var _2e3=this.getChildren();
for(var i=0;i<_2e3.length;i++){
if(!_2e1){
_2e1=_2e3[(dir>0)?0:(_2e3.length-1)];
}
if(_2e1.isFocusable()){
return _2e1;
}
_2e1=this._getSiblingOfChild(_2e1,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(_2e5){
_2e5.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this.connect(dojo.global,"onresize","resize");
}
this.inherited(arguments);
},resize:function(_2e6,_2e7){
var node=this.domNode;
if(_2e6){
dojo.marginBox(node,_2e6);
if(_2e6.t){
node.style.top=_2e6.t+"px";
}
if(_2e6.l){
node.style.left=_2e6.l+"px";
}
}
var mb=_2e7||{};
dojo.mixin(mb,_2e6||{});
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(_2ef){
if(_2ef.baseClass){
dojo.addClass(_2ef.domNode,this.baseClass+"-"+_2ef.baseClass);
}
},addChild:function(_2f0,_2f1){
this.inherited(arguments);
if(this._started){
this._setupChild(_2f0);
}
},removeChild:function(_2f2){
if(_2f2.baseClass){
dojo.removeClass(_2f2.domNode,this.baseClass+"-"+_2f2.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 _2f8=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_2fb,dim){
_2fb.resize?_2fb.resize(dim):dojo.marginBox(_2fb.domNode,dim);
dojo.mixin(_2fb,dojo.marginBox(_2fb.domNode));
dojo.mixin(_2fb,dim);
};
dijit.layout.layoutChildren=function(_2fd,dim,_2ff){
dim=dojo.mixin({},dim);
dojo.addClass(_2fd,"dijitLayoutContainer");
_2ff=dojo.filter(_2ff,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_2ff,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_2ff,function(_302){
var elm=_302.domNode,pos=_302.layoutAlign;
var _305=elm.style;
_305.left=dim.l+"px";
_305.top=dim.t+"px";
_305.bottom=_305.right="auto";
dojo.addClass(elm,"dijitAlign"+_2f8(pos));
if(pos=="top"||pos=="bottom"){
size(_302,{w:dim.w});
dim.h-=_302.h;
if(pos=="top"){
dim.t+=_302.h;
}else{
_305.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_302,{h:dim.h});
dim.w-=_302.w;
if(pos=="left"){
dim.l+=_302.w;
}else{
_305.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_302,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(_306){
this.disabled=_306;
dojo.attr(this.focusNode,"disabled",_306);
dijit.setWaiState(this.focusNode,"disabled",_306);
if(_306){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_307){
dojo.deprecated("setDisabled("+_307+") is deprecated. Use attr('disabled',"+_307+") instead.","","2.0");
this.attr("disabled",_307);
},_scroll:true,_onFocus:function(e){
if(this._scroll){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_309){
var _30a=_309.currentTarget;
if(_30a&&_30a.getAttribute){
this.stateModifier=_30a.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_309.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 _30b=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_30b);
});
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 _30c=this.baseClass.split(" ");
function multiply(_30d){
_30c=_30c.concat(dojo.map(_30c,function(c){
return c+_30d;
}),"dijit"+_30d);
};
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,_310={};
dojo.forEach(tn.className.split(" "),function(c){
_310[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _310[c];
});
}
dojo.forEach(_30c,function(c){
_310[c]=true;
});
var _314=[];
for(var c in _310){
_314.push(c);
}
tn.className=_314.join(" ");
this._stateClasses=_30c;
},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(_318){
},_onChangeActive:false,_handleOnChange:function(_319,_31a){
this._lastValue=_319;
if(this._lastValueReported==undefined&&(_31a===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_319;
}
if((this.intermediateChanges||_31a||_31a===undefined)&&((typeof _319!=typeof this._lastValueReported)||this.compare(_319,this._lastValueReported)!=0)){
this._lastValueReported=_319;
if(this._onChangeActive){
this.onChange(_319);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_31b){
dojo.deprecated("dijit.form._FormWidget:setValue("+_31b+") is deprecated.  Use attr('value',"+_31b+") instead.","","2.0");
this.attr("value",_31b);
},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(_31e,_31f){
this.value=_31e;
this._handleOnChange(_31e,_31f);
},_getValueAttr:function(_320){
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 _326=this;
setTimeout(function(){
_326._handleOnChange(_326.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 _327={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _32a=function(_32b){
this._index=-1;
this._animations=_32b||[];
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(_32a,{_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(_32d,_32e){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_32e&&this._current.status()=="playing"){
return this;
}
var _32f=dojo.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_330=dojo.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_332=dojo.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
dojo.disconnect(_32f);
dojo.disconnect(_330);
dojo.disconnect(_332);
});
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(_336,_337){
this.pause();
var _338=this.duration*_336;
this._current=null;
dojo.some(this._animations,function(a){
if(a.duration<=_338){
this._current=a;
return true;
}
_338-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_338/this._current.duration,_337);
}
return this;
},stop:function(_33a){
if(this._current){
if(_33a){
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(_32a,_327);
dojo.fx.chain=function(_33d){
return new _32a(_33d);
};
var _33e=function(_33f){
this._animations=_33f||[];
this._connects=[];
this._finished=0;
this.duration=0;
dojo.forEach(_33f,function(a){
var _341=a.duration;
if(a.delay){
_341+=a.delay;
}
if(this.duration<_341){
this.duration=_341;
}
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(_33e,{_doAction:function(_343,args){
dojo.forEach(this._animations,function(a){
a[_343].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_346,args){
var t=this._pseudoAnimation;
t[_346].apply(t,args);
},play:function(_349,_34a){
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(_34b,_34c){
var ms=this.duration*_34b;
dojo.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_34c);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_34f){
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(_33e,_327);
dojo.fx.combine=function(_350){
return new _33e(_350);
};
})();
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(_353){
return this.showAnim.play(_353||0);
},hide:function(_354){
return this.hideAnim.play(_354||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 _35a=dojo.style(node,"height");
return Math.max(_35a,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 _395=epages.Browser;
_395.engine="Unknown";
_395.version="Unknown";
if(window.opera){
_395.engine="Presto";
_395.version=window.opera.version();
}else{
var _396=(navigator.appVersion+navigator.userAgent).toLowerCase();
if(_396.match("msie")){
_395.engine="MSIE";
_395.version=(window.XDomainRequest&&dojo.isIE==7)?8:dojo.isIE;
var _397=document.createElement("b");
_397.style.cssText="max-height:1";
if(_397.style.cssText.match("max-height")){
_395.version=6;
}
}else{
if(_396.match("webkit")){
_395.engine="WebKit";
_395.version=dojo.isSafari;
}else{
if(_396.match("gecko")){
_395.engine="Gecko";
_395.version=dojo.isFx||dojo.isFF;
}else{
if(_396.match("khtml")){
_395.engine="KHTML";
}
}
}
}
}
_395.version=_395.version.toString().replace(/\./g,"_");
(document.documentElement||document.body.parentNode).className+=" "+_395.engine+_395.version;
})();
(function(){
for(var _398=15;_398>3;_398--){
var _399=true;
if(navigator.plugins.length){
try{
var _39a=navigator.plugins["Shockwave Flash"].description;
_399=_39a.slice(_39a.indexOf(".")-2,_39a.indexOf("."))>=_398;
}
catch(e){
_399=false;
}
}else{
try{
new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_398);
}
catch(e){
_399=false;
}
}
if(_399){
epages.Browser.flashVersion=_398;
break;
}
}
})();
}
if(!dojo._hasResource["epages.event"]){
dojo._hasResource["epages.event"]=true;
dojo.provide("epages.event");
epages.event.fire=function(_39b,_39c){
if(epages.Browser.engine=="MSIE"){
_39b.fireEvent("on"+_39c);
}else{
if(_39c=="click"||_39c=="dblclick"||_39c=="mousedown"||_39c=="mousemove"||_39c=="mouseout"||_39c=="mouseover"||_39c=="mouseup"){
var _39d=document.createEvent("MouseEvents");
_39d.initMouseEvent(_39c,true,true,window,0,0,0,0,0,false,false,false,false,0,null);
}else{
var _39d=document.createEvent("HTMLEvents");
_39d.initEvent(_39c,true,true);
}
_39b.dispatchEvent(_39d);
}
};
}
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,_3a0){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_3a0){
str=str.replace(/'/gm,"&#39;");
}
return str;
},toBoolean:function(_3a1){
if(_3a1===undefined){
return false;
}
if(typeof _3a1=="boolean"){
return _3a1;
}
if(typeof _3a1!="string"){
throw new Error("Not a string value, got "+typeof (_3a1)+"!");
}
return _3a1.toLowerCase()==="true"||_3a1=="1"?true:false;
},toTime:function(_3a2,_3a3){
if(_3a2==""){
return null;
}
if(_3a3==null||_3a3.length==0){
_3a3=epages.vars.Locale.timeFormat;
}
var _3a4=epages.localize.getDojoDateTimePattern(_3a3);
date=dojo.date.locale.parse(_3a2,{selector:"date",datePattern:_3a4,timePattern:""});
if(date===null){
date=dojo.date.locale.parse(_3a2,{selector:"date",datePattern:"HH:mm a",timePattern:""});
}
if(date===null){
date=dojo.date.locale.parse(_3a2,{selector:"date",datePattern:"HH a",timePattern:""});
}
if(date===null){
date=dojo.date.locale.parse(_3a2,{selector:"date",datePattern:"HH",timePattern:""});
}
return date;
},cssSizeToNumber:function(_3a5){
if(typeof _3a5=="string"){
if(_3a5.match(/^([0-9]+)(px|pt)$/i)){
var n=parseInt(RegExp.$1);
return n;
}
if(_3a5.match(/^([0-9]*\.?[0-9]+)(pc|%|mm|cm|em|in|ex)$/i)){
var n=parseFloat(RegExp.$1);
return n;
}
if(_3a5.match(/^[0]+$/)){
return 0;
}
}
return NaN;
},split:function(_3a7,rx){
if(epages.Browser.engine!="MSIE"){
return _3a7.split(rx);
}
var _3a9="";
do{
_3a9+=Date.toString();
}while(_3a7.match(_3a9));
_3a7=_3a7.replace(rx,"|"+_3a9+"|");
var _3aa=_3a7.split(_3a9);
for(var i=0;i<_3aa.length;i++){
_3aa[i]=_3aa[i].replace(/^(?:\|)?(.*?)(?:\|)?$/g,function(tmp,_3ad){
return _3ad;
});
}
return _3aa;
}};
epages.string.Base64=function(){
};
epages.string.Base64.prototype={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(_3ae){
var _3af="";
var chr1,chr2,chr3,enc1,enc2,enc3,enc4;
var i=0;
_3ae=this._utf8_encode(_3ae);
if(typeof (window.btoa)=="function"){
return window.btoa(_3ae);
}
while(i<_3ae.length){
chr1=_3ae.charCodeAt(i++);
chr2=_3ae.charCodeAt(i++);
chr3=_3ae.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;
}
}
_3af=_3af+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);
}
return _3af;
},decode:function(_3b8){
var _3b9="";
var chr1,chr2,chr3;
var enc1,enc2,enc3,enc4;
var i=0;
_3b8=_3b8.replace(/[^A-Za-z0-9\+\/\=]/g,"");
if(typeof (window.atob)=="function"){
_3b9=window.atob(_3b8);
}else{
while(i<_3b8.length){
enc1=this._keyStr.indexOf(_3b8.charAt(i++));
enc2=this._keyStr.indexOf(_3b8.charAt(i++));
enc3=this._keyStr.indexOf(_3b8.charAt(i++));
enc4=this._keyStr.indexOf(_3b8.charAt(i++));
chr1=(enc1<<2)|(enc2>>4);
chr2=((enc2&15)<<4)|(enc3>>2);
chr3=((enc3&3)<<6)|enc4;
_3b9=_3b9+String.fromCharCode(chr1);
if(enc3!=64){
_3b9=_3b9+String.fromCharCode(chr2);
}
if(enc4!=64){
_3b9=_3b9+String.fromCharCode(chr3);
}
}
}
_3b9=this._utf8_decode(_3b9);
return _3b9;
},_utf8_encode:function(_3c2){
_3c2=_3c2.replace(/\r\n/g,"\n");
var _3c3="";
for(var n=0;n<_3c2.length;n++){
var c=_3c2.charCodeAt(n);
if(c<128){
_3c3+=String.fromCharCode(c);
}else{
if((c>127)&&(c<2048)){
_3c3+=String.fromCharCode((c>>6)|192);
_3c3+=String.fromCharCode((c&63)|128);
}else{
_3c3+=String.fromCharCode((c>>12)|224);
_3c3+=String.fromCharCode(((c>>6)&63)|128);
_3c3+=String.fromCharCode((c&63)|128);
}
}
}
return _3c3;
},_utf8_decode:function(_3c6){
var _3c7="";
var i=0;
var c=c1=c2=0;
while(i<_3c6.length){
c=_3c6.charCodeAt(i);
if(c<128){
_3c7+=String.fromCharCode(c);
i++;
}else{
if((c>191)&&(c<224)){
c2=_3c6.charCodeAt(i+1);
_3c7+=String.fromCharCode(((c&31)<<6)|(c2&63));
i+=2;
}else{
c2=_3c6.charCodeAt(i+1);
c3=_3c6.charCodeAt(i+2);
_3c7+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));
i+=3;
}
}
}
return _3c7;
}};
}
if(!dojo._hasResource["epages.lang.array"]){
dojo._hasResource["epages.lang.array"]=true;
dojo.provide("epages.lang.array");
$A=function(_3ca,_3cb){
return new epages.lang.Array(_3ca,_3cb);
};
epages.lang.Array=function(_3cc,_3cd){
if(_3cd===undefined){
_3cd=false;
}
var _3ce=[];
if(_3cc!==undefined){
if(_3cc._data!==undefined){
_3cc=_3cc._data;
}
if(_3cd){
for(var i=0,_3d0=_3cc.length;i<_3d0;i++){
_3ce.push(_3cc[i]);
}
}else{
_3ce=_3cc;
}
}
this._data=_3ce;
this.length=_3ce.length;
};
epages.lang.Array.prototype={_data:undefined,length:0,get:function(_3d1){
return this._data[_3d1];
},set:function(_3d2,_3d3){
this._data[_3d2]=_3d3;
},insertAt:function(_3d4,_3d5){
if(!_3d4){
this.unshift(_3d5);
}else{
if(_3d4==this.length){
this.push(_3d5);
}else{
var c=this._data;
for(var i=this.length;i>_3d4;i--){
c[i]=c[i-1];
}
c[_3d4]=_3d5;
this.length=c.length;
}
}
},push:function(){
for(var i=0,_3d9=arguments.length;i<_3d9;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,_3dc=arguments.length;i<_3dc;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(_3de,_3df){
if(_3df===undefined){
return dojo.filter(this._data,_3de);
}
return dojo.filter(this._data,_3de,_3df);
},map:function(_3e0,_3e1){
return dojo.map(this._data,_3e0,_3e1);
},each:function(_3e2,_3e3){
dojo.map(this._data,_3e2,_3e3);
return;
},match:function(_3e4){
var _3e5=[];
for(var i=0,_3e7=this._data.length;i<_3e7;i++){
var _3e8=this._data[i];
if(typeof _3e8.match=="function"&&_3e8.match(_3e4)){
_3e5.push(_3e8);
}
}
return _3e5;
},exists:function(_3e9){
return (this.find(_3e9)!==null);
},find:function(_3ea){
for(var i=0,_3ec=this._data.length;i<_3ec;i++){
if(_3ea===this._data[i]){
return i;
}
}
return null;
},remove:function(_3ed){
this._data.splice(_3ed,1);
this.length=this._data.length;
},unique:function(){
var _3ee=new epages.lang.Array();
var i=0;
while(i<this._data.length){
if(_3ee.find(this._data[i])==null){
_3ee.push(this._data[i]);
i++;
}else{
this._data.splice(i,1);
}
}
this.length=this._data.length;
},equals:function(_3f0){
if(_3f0.length==this.length){
if(typeof _3f0._data!="undefined"){
for(var i=0;i<this.length;i++){
if(this._data[i]!==_3f0._data[i]){
return false;
}
}
}else{
for(var i=0;i<this.length;i++){
if(this._data[i]!==_3f0[i]){
return false;
}
}
}
return true;
}else{
return false;
}
},merge:function(_3f2){
var c=[];
if(dojo.isArray(_3f2)){
c=_3f2;
}else{
if(_3f2._data!==undefined){
c=_3f2._data;
}
}
for(var i=0;i<c.length;i++){
this._data.push(c[i]);
}
this.length=this._data.length;
},join:function(_3f5){
return this._data.join(_3f5);
},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(_3f8){
return this._data.sort(_3f8);
}};
}
if(!dojo._hasResource["epages.lang.hash"]){
dojo._hasResource["epages.lang.hash"]=true;
dojo.provide("epages.lang.hash");
$H=function(_3f9){
return new epages.lang.Hash(_3f9);
};
epages.lang.Hash=function(_3fa){
this._data=new Object();
var data=this._data;
if(_3fa!==undefined){
if(typeof _3fa.each=="function"){
_3fa.each(function(pair){
data[pair.key]=pair.value;
});
}else{
for(var key in _3fa){
data[key]=_3fa[key];
}
}
}
};
epages.lang.Hash.prototype={_data:undefined,data:function(){
return this._data;
},each:function(_3fe){
for(var key in this._data){
var _400=this._data[key];
var pair=[key,_400];
pair.key=key;
pair.value=_400;
_3fe(pair);
}
},flatten:function(){
var _402="";
this.each(function(pair){
_402+="<element><key>"+pair.key+"</key><value>"+pair.value+"</value></element>\n";
});
return "<epages.lang.Hash>\n"+_402+"</epages.lang.Hash>\n";
},keys:function(){
var _404=[];
this.each(function(pair){
_404.push(pair.key);
});
return _404;
},values:function(){
var _406=[];
this.each(function(pair){
_406.push(pair.value);
});
return _406;
},set:function(key,_409){
this._data[key]=_409;
},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 _40d in this._data){
if(_40d==key){
return true;
}
}
return false;
},existsValue:function(_40e){
return this.find(_40e)!==undefined;
},find:function(_40f){
for(var key in this._data){
if(this._data[key]===_40f){
return key;
}
}
return undefined;
},toQueryString:function(){
var _411=[];
this.each(function(pair){
if(pair.value!==undefined&&pair.value!=null){
var _413=encodeURIComponent(pair.key);
if(dojo.isArray(pair.value)){
for(var i=0;i<pair.value.length;i++){
_411.push(_413+"="+encodeURIComponent(pair.value[i]));
}
}else{
_411.push(_413+"="+encodeURIComponent(pair.value));
}
}
});
return _411.join("&");
},toString:function(){
var _415=[];
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)+"\"";
}
}
}
}
_415.push("\""+epages.string.escapeJavaScript(pair.key)+"\":"+v);
});
return "{"+_415.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(_418){
for(var i=0;i<epages._windows.length;i++){
if(epages._windows[i].dijit!=null&&typeof epages._windows[i].dijit.byId=="function"){
var _41a=epages._windows[i].dijit.byId(_418);
if(_41a){
return _41a;
}
}
}
};
}
epages.widget.parserClasses=$H();
dojo.parser.instantiateOrg=dojo.parser.instantiate;
dojo.parser.instantiate=function(_41b){
var w=epages.widget.parserClasses;
if(epages.Browser.engine!="Presto"){
var d=dojo;
d.forEach(_41b,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(_41b);
};
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,_421){
var _422;
var _423=_421!==undefined?dojo.xhrPost:dojo.xhrGet;
_423({url:url,handleAs:"xml",sync:true,preventCache:epages.constants.preventCache,load:function(data){
_422=data;
},content:_421});
return _422;
},loadAsync:function(url,_426,_427){
var _428=_427!==undefined?dojo.xhrPost:dojo.xhrGet;
_428({url:url,handleAs:"xml",preventCache:epages.constants.preventCache,load:_426,content:_427});
return;
}};
}
if(!dojo._hasResource["epages.io.translation"]){
dojo._hasResource["epages.io.translation"]=true;
dojo.provide("epages.io.translation");
epages.io.Translation=function(url,_42a){
this.translation=new epages.lang.Hash();
this.loadedFiles=new epages.lang.Array();
if(url!==undefined){
if(_42a===undefined){
this.load(url);
}else{
this.loadLocale(url,(_42a!="auto")?_42a:undefined);
}
}
};
dojo.extend(epages.io.Translation,epages.io.Xml.prototype);
dojo.extend(epages.io.Translation,{translation:null,loadedFiles:null,useLocale:false,load:function(url,_42c){
if(this.loadedFiles.exists(url)){
return true;
}
if(_42c===undefined){
_42c=false;
}
var _42d=this.loadSync(url);
this.loadedFiles.push(url);
if(_42d===undefined){
if(!_42c){
throw new Error("translation undefined");
}
return false;
}
var tags=_42d.getElementsByTagName("Translation");
for(var _42f=0;_42f<tags.length;_42f++){
var _430=tags[_42f];
if(_430.nodeType==1){
var data="";
for(var i=0;i<_430.childNodes.length;i++){
var _433=_430.childNodes[i];
data+=_433.nodeName.match(/notrans/i)?_433.firstChild.data:_433.data;
}
this.translation.set(_430.getAttribute("Keyword"),data);
}
}
return true;
},loadLocale:function(url,_435){
if(_435===undefined){
_435=dojo.locale;
}
var _436=_435.split("-");
var _437=this.load(url+"."+_436[0]+".xml",true);
if(this.useLocale&&_436.length>1){
this.load(url+"."+_436[0]+"_"+_436[1].toUpperCase()+".xml",true);
}
return _437;
},exists:function(key){
return this.translation.existsKey(key)||(this!=epages.io.dictionary&&epages.io.dictionary.translation.existsKey(key));
},get:function(key,vars){
var _43b=this.translation.get(key);
if(_43b===undefined&&this!=epages.io.dictionary){
return epages.io.dictionary.get(key,vars);
}
return (_43b===undefined)?"{"+key+"}":this.replaceVars(_43b,vars);
},replaceLanguageTags:function(txt){
var _43d=new RegExp("{(.*?)}","g");
return txt.replace(_43d,dojo.hitch(this,function(_43e,tag){
return this.get(tag);
}));
},replaceVars:function(txt,vars){
var _442=new RegExp("#([a-zA-Z_][a-zA-Z0-9_]*)","g");
return txt.replace(_442,dojo.hitch(vars,function(_443,_444){
return this[_444]!==undefined?this[_444]:_443;
}));
}});
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(_445,_446){
returnValue=[];
for(var i=0;i<_445.childNodes.length;i++){
var e=_445.childNodes[i];
if(e.nodeName==_446){
returnValue.push(e);
}
}
return returnValue;
},getElementsByClassName:function(_449,_44a){
if(_44a==null){
_44a=dojo.body();
}
return dojo.query("."+_449,_44a);
},replaceClass:function(node,_44c,_44d){
var _44e=new RegExp("(^|\\s+)"+_44d+"($|\\s+)","g");
node.className=node.className.replace(_44e,"$1"+_44c+"$2");
},removeChildren:function(node){
while(node.firstChild){
node.removeChild(node.firstChild);
}
},disableHrefsAndActions:function(_450){
if(_450==null){
_450=dojo.body();
}
var _451=_450.getElementsByTagName("a");
for(var i=0;i<_451.length;i++){
var tag=_451[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 _455=_450.getElementsByTagName("form");
for(var i=0;i<_455.length;i++){
_455[i].onsubmit=function(){
return false;
};
}
var _456=["input","button","select","option","a"];
var _457=["onchange","onclick","onselect","onkeyup","onkeypress","onmouseup"];
for(var j=0;j<_456.length;j++){
var _459=_450.getElementsByTagName(_456[j]);
for(var i=0;i<_459.length;i++){
var e=_459[i];
for(var k=0;k<_457.length;k++){
var _45c=e.getAttribute(_457[k]);
if(_45c){
if((typeof _45c=="string")||(typeof _45c=="function")){
dojo.connect(e,_457[k],dojo,"stopEvent");
e.setAttribute(_457[k],"return false;");
}
}
}
}
}
},getHref:function(_45d){
if(_45d.outerHTML){
var html=_45d.outerHTML;
var href=html.match(/\s*href\s*\=\s*["'](.*?)["']/i);
if(href&&href[1]){
return href[1];
}
return null;
}
return _45d.getAttribute("href");
},isInnerEvent:function(evt,_461){
if(!dojo.isArray(_461)){
_461=[_461];
}
var _462=evt.explicitOriginalTarget;
for(var i=0;i<_461.length;i++){
if(dojo.isDescendant(_462,_461[i])){
return true;
}
}
return false;
},encodeEntity:function(_464,_465){
if(_465==null){
_465=false;
}
var rx=new RegExp("\r?\n","g");
var _467=epages.string.split(_464,rx);
var _468=document.createTextNode("");
var node=document.createElement("span");
node.appendChild(_468);
for(var i=0;i<_467.length;i++){
_468.nodeValue=_467[i];
_467[i]=node.innerHTML;
}
return _467.join(_465?"<br/>\n":"\n");
},decodeEntity:function(_46b,_46c){
if(_46c==null){
_46c=false;
}
var node=document.createElement("span");
node.innerHTML=_46b;
var _46e=node.firstChild.nodeValue;
if(_46c){
_46e=_46e.replace(/\<br\s*\/?\>\r?\n/gi,"\n");
}
return _46e;
},insertAtCursor:function(_46f,_470,doc){
if(doc===undefined){
doc=window.document;
}
var _472=$(_470,doc);
if(doc.selection){
_472.focus();
sel=doc.selection.createRange();
sel.text=_46f;
}else{
if(_472.selectionStart||_472.selectionStart=="0"){
var _473=_472.selectionStart;
var _474=_472.selectionEnd;
_472.value=_472.value.substring(0,_473)+_46f+_472.value.substring(_474,_472.value.length);
_472.selectionStart=_473+_46f.length;
_472.selectionEnd=_473+_46f.length;
}else{
_472.value+=_46f;
}
}
epages.event.fire(_472,"change");
}});
}
if(!dojo._hasResource["epages.html.element"]){
dojo._hasResource["epages.html.element"]=true;
dojo.provide("epages.html.element");
epages.html.Element=function(_475){
if(_475===undefined){
throw new Error("epages.html.Element: initialize without object");
}else{
if(typeof _475=="string"){
_475=$(_475);
if(_475===undefined){
throw new Error("epages.html.Element: initialize without object, unknown element id");
}
}
}
this.object=_475;
};
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(_476){
var type=this.object.type;
switch(type){
case "checkbox":
case "radio":
var _478=this.object.form.elements;
var name=this.object.name;
dojo.forEach(_478,function(_47a){
if(_47a.type==type&&_47a.name==name&&_47a.value==_476){
_47a.checked=true;
}
});
break;
default:
this.object.value=_476;
}
},connectChangeEvent:function(_47b){
dojo.connect(this.object,(this.object.type=="radio"?"onclick":"onchange"),_47b);
},callOnChange:function(){
epages.event.fire(this.object,"change");
},firstElement:function(_47c,_47d){
var _47e=undefined;
var data=this.object.childNodes;
for(var _480=0;_480<data.length&&_47e===undefined;_480++){
if(_47c!=1&&data[_480].nodeType==_47c||data[_480].nodeType==1&&data[_480].nodeName==_47d){
_47e=data[_480];
}
}
return (_47e);
},firstComment:function(){
var _481=this.firstElement(8,"COMMENT");
return (_481===undefined?undefined:_481.data);
},getIframeDocument:function(_482){
if(_482===undefined&&this.object.tagName.toLowerCase()=="iframe"){
_482=this.object;
}
if(_482===undefined){
return _482;
}
return (_482.contentDocument===undefined)?_482.contentWindow.document:_482.contentDocument;
},addClassName:function(_483){
dojo.addClass(this.object,_483);
},removeClassName:function(_484){
dojo.removeClass(this.object,_484);
},changeClassName:function(_485,_486){
epages.html.replaceClass(this.object,_486,_485);
},getAbsolutePosition:function(_487){
var node=this.object;
var x=0,y=0;
while(node&&node!=_487){
if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){
x+=node.offsetLeft;
y+=node.offsetTop;
}
node=node.offsetParent;
}
return {"x":x,"y":y};
},getPositionToParent:function(_48b){
var node=this.object;
var x=0,y=0;
while(node!=undefined&&_48b!==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 _492=dojo.getComputedStyle(node).position;
while(node!=undefined&&_492!="relative"&&_492!="absolute"){
if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){
x+=node.offsetLeft;
y+=node.offsetTop;
}
node=node.offsetParent;
_492=dojo.getComputedStyle(node).position;
}
return {"x":x,"y":y};
},setCss:function(_493){
for(var _494 in _493){
this.object.style[_494]=_493[_494];
}
},makeWidgets:function(){
dojo.parser.parse(this.object);
},toQueryString:function(){
return encodeURIComponent(this.object.name)+"="+encodeURIComponent(this.get());
},addEventListener:function(_495,_496,_497){
if(_497==null){
_497=false;
}
_495=_495.replace(/^on/,"");
if(this.object.addEventListener){
return this.object.addEventListener(_495,_496,_497);
}else{
if(this.object.attachEvent){
return this.object.attachEvent("on"+_495,_496);
}
}
throw new Error("element.addEventListener: could not add event listener for event "+_495);
},removeEventListener:function(_498,_499,_49a){
if(_49a==null){
_49a=false;
}
_498=_498.replace(/^on/,"");
if(this.object.removeEventListener){
return this.object.removeEventListener(_498,_499,_49a);
}else{
if(this.object.detachEvent){
return this.object.detachEvent("on"+_498,_499);
}
}
console.debug("element.removeEventListener: could not remove event listener for event "+_498+(typeof this.object.detachEvent));
return false;
},replaceChild:function(_49b,_49c){
_49b=this._changeNodeDocument(_49b,_49c.ownerDocument);
this.object.replaceChild(_49b,_49c);
},appendChild:function(_49d){
_49d=this._changeNodeDocument(_49d,this.object.ownerDocument);
this.object.appendChild(_49d);
},_changeNodeDocument:function(node,_49f){
if(node.ownerDocument!=_49f&&node.outerHTML!=null){
var _4a0=node.outerHTML;
node=_49f.createElement("span");
node.outerHTML=_4a0;
}
return node;
},getLabel:function(){
var id=this.object.id;
if(id==null){
return;
}
var _4a2=this.object.ownerDocument.getElementsByTagName("label");
for(var i=0;i<_4a2.length;i++){
if(_4a2[i].htmlFor==id){
return _4a2[i].innerHTML;
}
}
}});
$E=function(_4a4){
return new epages.html.Element(_4a4);
};
}
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 _4a8=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache,this.translation);
var node;
if(dojo.isString(_4a8)){
var _4aa=this.declaredClass,_4ab=this;
var tstr=dojo.string.substitute(_4a8,this,function(_4ad,key){
if(key.charAt(0)=="!"){
_4ad=_4ab[key.substr(1)];
}
if(typeof _4ad=="undefined"){
throw new Error(_4aa+" template:"+key);
}
if(!_4ad){
return "";
}
return key.charAt(0)=="!"?_4ad:_4ad.toString().replace(/"/g,"&quot;");
},this);
node=this.createNodesFromText(tstr);
}else{
node=_4a8.cloneNode(true);
}
this._attachTemplateNodes(node);
var _4af=this.srcNodeRef;
if(_4af&&_4af.parentNode){
$E(_4af.parentNode).replaceChild(node,_4af);
}
this.domNode=node;
if(this.widgetsInTemplate){
var _4b0=dojo.parser.parse(node);
this._attachTemplateNodes(_4b0,function(n,p){
return n[p];
});
}
this._fillContent(_4af);
},getCachedTemplate:function(_4b3,_4b4,_4b5,_4b6){
var _4b7=dijit._Templated._templateCache;
var key=_4b4||_4b3;
var _4b9=_4b7[key];
if(_4b9){
return _4b9;
}
if(!_4b4){
_4b4=dijit._Templated._sanitizeTemplateString(dojo._getText(_4b3));
}
_4b4=dojo.string.trim(_4b4);
if(_4b4.match(/\$\{([^\}]+)\}/g)||_4b5){
return (_4b7[key]=_4b4);
}else{
return (_4b7[key]=this.createNodesFromText(_4b4));
}
}});
}
if(!dojo._hasResource["epages.event.interval"]){
dojo._hasResource["epages.event.interval"]=true;
dojo.provide("epages.event.interval");
epages.event.interval={_container:[],_setIntervalSecure:function(_4ba,task,_4bc){
if(this._container[_4ba]!=null){
setTimeout(dojo.hitch(this,function(){
this._setIntervalSecure(_4ba,task,_4bc);
}),_4bc);
task();
}
},set:function(task,_4be){
var _4bf=this._container.length;
this._container.push(_4bf);
setTimeout(dojo.hitch(this,function(){
this._setIntervalSecure(_4bf,task,_4be);
}),_4be);
return _4bf;
},clear:function(_4c0){
this._container[_4c0]=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,_4c2){
return setTimeout(dojo.hitch(this,task),_4c2);
},_getAlphaImage:function(_4c3,_4c4){
var _4c5=document.createElement("span");
var _4c6=document.createElement("span");
var _4c7="";
if(epages.Browser.engine=="MSIE"&&_4c3.match(".png")){
_4c4=_4c4?"scale":"crop";
_4c7="class='AlphaImage'";
_4c6.style.zoom="1";
_4c6.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+encodeURI(_4c3)+"', sizingMethod='"+_4c4+"')";
}
var _4c8="<img "+_4c7+" alt='' src='"+_4c3+"' onerror=''/>";
_4c6.innerHTML=_4c8;
_4c5.appendChild(_4c6);
_4c5.className="Image";
return _4c5;
},_drawControlBar:function(){
if(this.tiny){
this.controlNode.className="ControlBarMini";
}
if(!this.showControls){
this.controlNode.style.display="none";
}
var _4c9=0;
if(!this.overview||!this.showDescription){
_4c9=1;
}else{
if(!this.overview&&!this.showDescription){
_4c9=2;
}
}
var _4ca=this.tiny?document.createElement("div"):this._getAlphaImage(this.controlBarImages[0][_4c9]);
_4ca.className="ControlBarBg";
this.controlNode.appendChild(_4ca);
if(!this.overview&&this.showControls){
_4ca.parentNode.style.width=(_4ca.offsetWidth-(this.tiny?16:32))+"px";
}
if(!this.showDescription&&this.showControls){
_4ca.parentNode.style.width=(_4ca.offsetWidth-(this.tiny?16:32))+"px";
}
var _4cb=this._getAlphaImage(this.controlBarImages[1][this.tiny?1:0]);
_4cb.className="SlideshowButton";
this.controlNode.appendChild(_4cb);
dojo.connect(_4cb,"onclick",this,"_rewindClick");
var _4cc=this._getAlphaImage(this.controlBarImages[2][this.tiny?1:0]);
_4cc.className="SlideshowButton";
if(this.stopped){
_4cc.style.position="absolute";
_4cc.style.visibility="hidden";
}
this.controlNode.appendChild(_4cc);
dojo.connect(_4cc,"onclick",this,"_pauseClick");
this._pauseIcon=_4cc;
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 _4cd=this._getAlphaImage(this.controlBarImages[4][this.tiny?1:0]);
_4cd.className="SlideshowButton";
this.controlNode.appendChild(_4cd);
dojo.connect(_4cd,"onclick",this,"_overviewClick");
}
if(this.showDescription){
var _4ce=this._getAlphaImage(this.controlBarImages[5][this.tiny?1:0]);
_4ce.className="SlideshowButton";
this.controlNode.appendChild(_4ce);
dojo.connect(_4ce,"onclick",this,"_detailsClick");
}
var _4cf=this._getAlphaImage(this.controlBarImages[6][this.tiny?1:0]);
_4cf.className="SlideshowButton";
this.controlNode.appendChild(_4cf);
dojo.connect(_4cf,"onclick",this,"_forwardClick");
dojo.style(this.controlNode,"opacity",0);
return [_4cb,playIcon,_4cc,_4cd?_4cd:null,_4ce?_4ce:null,_4cf];
},_controlBarButtonOver:function(_4d0){
dojo.addClass(_4d0.currentTarget,"Highlighted");
document.onselectstart=function(){
return false;
};
},_controlBarButtonOut:function(_4d1){
dojo.removeClass(_4d1.currentTarget,"Highlighted");
dojo.removeClass(_4d1.currentTarget,"Hit");
document.onselectstart=function(){
return true;
};
},_controlBarButtonDown:function(_4d2){
dojo.addClass(_4d2.currentTarget,"Hit");
},_controlBarButtonUp:function(_4d3){
dojo.removeClass(_4d3.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(_4d4){
var _4d5=_4d4.currentTarget;
_4d5.src=this.errorImagePath;
_4d5.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(_4d6){
if(typeof (_4d6)=="object"){
_4d6=null;
}
this._pauseClick();
if(this._loadedIndex>=this.showIndex&&!this._overviewArea){
var _4d7=document.createElement("div");
_4d7.className="OverviewBackground";
dojo.style(_4d7,"opacity",0);
dojo.addClass(dojo.body(),"OverviewAreaVisible");
var _4d8="<div class='Background'>";
_4d8+="</div>";
_4d7.innerHTML=_4d8;
var _4d9=document.createElement("div");
_4d9.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 _4db=this._images[this.showIndex].imageTable.cloneNode(true);
with(_4db.getElementsByTagName("b")[0]){
innerHTML="";
appendChild(this._getAlphaImage(epages.themeUrl("images")+"/plain.gif"));
}
_4d9.appendChild(_4db);
var _4dc=document.createElement("div");
_4dc.className="BackgroundEventLayer";
_4d9.getElementsByTagName("td")[0].appendChild(_4dc);
var _4dd=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_rewind_overview.png");
_4dd.className="Image SlideshowButton";
dojo.connect(_4dd,"onclick",this,"_setPrevImage");
dojo.connect(_4dd,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4dd,"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_4dd,"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_4dd,"onmouseup",this,"_controlBarButtonUp");
var _4de=document.createElement("i");
_4de.appendChild(_4dd);
_4de.className="OverviewRewindButton";
var _4df=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_forward_overview.png");
_4df.className="Image SlideshowButton";
dojo.connect(_4df,"onclick",this,"_setNextImage");
dojo.connect(_4df,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4df,"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_4df,"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_4df,"onmouseup",this,"_controlBarButtonUp");
var _4e0=document.createElement("i");
_4e0.appendChild(_4df);
_4e0.className="OverviewForwardButton";
var _4e1=this._getAlphaImage(epages.themeUrl("images")+"/layer_img_closebutton.png");
_4e1.className="Image SlideshowButton";
_4e1.style.clip="rect(0, 40px, 20px, 0)";
dojo.connect(_4e1,"onclick",this,"_destroyOverview");
dojo.connect(_4e1,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4e1,"onmouseout",this,"_controlBarButtonOut");
var _4e2=document.createElement("i");
_4e2.appendChild(_4e1);
_4e2.className="OverviewCloseButton";
var _4e3=document.createElement("b");
_4e3.className="OverviewImageCounter";
if(!this.showMisc){
_4e3.style.display="none";
}
dojo.style(_4d9,"background","url("+this.loaderImagePath+") center no-repeat");
dojo.style(_4d9.getElementsByTagName("span")[0],"opacity",0);
var _4e4=info.imageLarge?info.imageLarge:info.image;
var _4e5=_4d9.getElementsByTagName("img")[0];
_4e5.src=_4d6||_4e4;
_4e5.style.height="auto";
_4e5.style.width="auto";
_4e5.style.filter="alpha(opacity=0)";
if(_4e5.src.match(".png")){
_4e5.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4e5.src+"')";
}else{
_4e5.style.filter="alpha()";
_4e5.parentNode.style.filter="none";
}
dojo.body().appendChild(_4d7);
dojo.body().appendChild(_4d9);
var _4e6=true;
var _4e7=this._images[0];
for(var i=0;i<this._images.length;i++){
if(this._images[i].imageLarge!=_4e7.imageLarge){
_4e6=false;
break;
}else{
_4e7=this._images[i];
}
}
if(this._images.length>1&&!_4d6&&!_4e6){
if(this.showControls){
_4d9.getElementsByTagName("span")[1].appendChild(_4de);
_4d9.getElementsByTagName("span")[1].appendChild(_4e0);
}
_4d9.getElementsByTagName("span")[1].appendChild(_4e3);
}
_4d9.getElementsByTagName("span")[1].appendChild(_4e2);
if(_4e5.complete){
this._delayExec(this._drawOverviewImage,1);
}else{
dojo.connect(_4e5,"onload",this,"_drawOverviewImage");
}
dojo.connect(_4e5,"onerror",this,"_drawErrorImage");
dojo.connect(_4dc,"onclick",this,"_destroyOverview");
_4d7.style.zoom=1;
dojo.style(_4d7,"opacity",1);
this._overviewBackground=_4d7;
this._overviewArea=_4d9;
this._overviewImageCounter=_4e3;
this._changeOverviewDimensions();
}
},_changeOverviewDimensions:function(){
if(this._overviewArea!=null){
var _4e9=this._overviewArea.getElementsByTagName("img")[0];
var _4ea=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;
var _4eb=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;
var _4ec=0;
if(_4ea>dojo.body().offsetHeight+10){
_4ec=_4ea;
}else{
_4ec=dojo.body().offsetHeight+10;
}
this._overviewBackground.style.height=_4ec+"px";
this._overviewArea.style.height=_4ea+"px";
setTimeout(dojo.hitch(this,function(){
var _4ed=this._images[this.showIndex]._overviewWidth;
var _4ee=this._images[this.showIndex]._overviewHeight;
if(_4ed&&_4ee&&(_4ed>_4eb-50||_4ee>_4ea-50)){
if((_4eb/_4ea)/(_4ed/_4ee)>1){
_4e9.style.height=(_4ea-50)+"px";
_4e9.style.width="auto";
}else{
_4e9.style.width=(_4eb-50)+"px";
_4e9.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 _4ef=dojo.body().pageYOffset?dojo.body().pageYOffset:document.documentElement.scrollTop;
dojo.fx.slideTo({node:this._overviewArea,top:_4ef,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 _4f0=this._overviewArea.getElementsByTagName("img")[0];
if(!this._images[this.showIndex]._overviewWidth){
_4f0.style.position="absolute";
this._images[this.showIndex]._overviewWidth=_4f0.width;
this._images[this.showIndex]._overviewHeight=_4f0.height;
_4f0.style.position="static";
}
if(this._images[this.showIndex]._overviewHeight<100){
_4f0.style.marginTop=(45-this._images[this.showIndex]._overviewHeight/2)+"px";
}else{
_4f0.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 _4f1=this._images[this.showIndex].image.match("dijit/themes/epages/images/plain.gif")||this._images[this.showIndex].image.match("transparentpixel.gif");
if(this._globalOverview&&!_4f1){
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(_4f3){
if(this._images[_4f3]){
if(this._overviewArea){
if(!this._oldShowIndex){
this._oldShowIndex=this.showIndex;
}
var _4f4=this._overviewArea.getElementsByTagName("span")[0];
var _4f5=_4f4.getElementsByTagName("img")[0];
dojo.style(this._overviewArea,"background","url("+this.loaderImagePath+") center no-repeat");
dojo.fadeOut({node:_4f4,duration:this.protraction,easing:this._fadeEasing}).play();
this._delayExec(function(){
var info=this._images[this.showIndex];
dojo.style(_4f4,"opacity",0);
var _4f7=info.imageLarge||info.image;
var _4f8=this._overviewArea.getElementsByTagName("img")[0];
_4f8.src=_4f7;
_4f8.style.width="auto";
_4f8.style.height="auto";
_4f8.style.filter="alpha(opacity=0)";
if(_4f7.match(".png")){
_4f8.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4f7+"')";
}else{
_4f8.style.filter="alpha()";
_4f8.parentNode.style.filter="none";
}
if(_4f8.complete){
this._delayExec(this._drawOverviewImage,1);
}
},this.protraction);
}else{
var _4f9=this._images[this.showIndex].imageTable.getElementsByTagName("b")[0];
var _4fa=this._images[_4f3].imageTable.getElementsByTagName("b")[0];
if(_4f9.offsetWidth==0){
this._pauseClick();
}else{
var _4fb=_4fa.getElementsByTagName("img")[0];
if(typeof (_4fb)!="undefined"){
if(this._images[_4f3].fit=="true"||this._images[_4f3].fit==true){
if(_4fb.offsetHeight>_4fb.offsetWidth){
_4fb.style.height=(this.mainNode.offsetHeight)+"px";
if(_4fb.offsetWidth>=this.mainNode.offsetWidth){
_4fb.style.height="auto";
_4fb.style.width=(this.mainNode.offsetWidth)+"px";
}
}else{
_4fb.style.width=(this.mainNode.offsetWidth)+"px";
if(_4fb.offsetHeight>=this.mainNode.offsetHeight){
_4fb.style.width="auto";
_4fb.style.height=(this.mainNode.offsetHeight)+"px";
}
}
}else{
if(this._images[_4f3].fit==null){
this._delayExec(function(){
if(_4fb.offsetHeight>_4fb.offsetWidth){
if(_4fb.offsetHeight>this.mainNode.offsetHeight){
_4fb.style.height=(this.mainNode.offsetHeight)+"px";
_4fb.style.width="auto";
}
}else{
if(_4fb.offsetWidth>this.mainNode.offsetWidth){
_4fb.style.width=(this.mainNode.offsetWidth)+"px";
_4fb.style.height="auto";
}
}
},1);
}
}
}
if(this.showIndex!=_4f3){
dojo.fadeOut({node:_4f9,duration:this.protraction,easing:this._fadeEasing}).play();
this._delayExec(function(){
this._fadeOutHide(_4f9);
},this.protraction);
}
dojo.style(_4fa,"visibility","visible");
dojo.fadeIn({node:_4fa,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[_4f3].imageTable.style.zIndex=1;
}
}
}
this.showIndex=_4f3;
},_fadeOutHide:function(_4fc){
if(dojo.style(_4fc,"opacity")==0){
dojo.style(_4fc,"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 _4fe=info.imageTable;
this.mainNode.style.background="transparent url("+this.loaderImagePath+") center no-repeat";
_4fe.style.zIndex=0;
var _4ff=_4fe.getElementsByTagName("b")[0];
_4ff.style.zoom="1";
dojo.style(_4ff,"opacity",0);
dojo.style(_4ff,"visibility","hidden");
_4ff.appendChild(this._getAlphaImage(info.image,true));
var _500=_4ff.getElementsByTagName("img")[0];
dojo.connect(_500,"onerror",this,"_drawErrorImage");
if(_500.complete){
this._delayExec(this._loadImagesSoft,1);
}else{
info.onloadHandle=dojo.connect(_500,"onload",this,"_loadImagesSoft");
}
},_createImageTable:function(){
var _501=this.imageTable.cloneNode(true);
_501.className="ImageTable";
this.imageTable.parentNode.appendChild(_501);
return _501;
},_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(_503){
this._overviewClick(_503);
},setImage:function(_504){
this._pauseClick();
this._setImage(_504);
},setNextImage:function(){
this._setNextImage();
},setPrevImage:function(){
this._setPrevImage();
},addImage:function(_505,_506){
if(_505.image){
var _507;
for(var i=0;i<this._images.length;i++){
if(this._images[i].image==_505.image){
_507=i;
}
}
if(!_507){
this._images.push(_505);
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(_507);
}
}
},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 _509=this._drawControlBar();
for(var i=0;i<_509.length;i++){
if(_509[i]){
dojo.connect(_509[i],"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_509[i],"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_509[i],"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_509[i],"onmouseup",this,"_controlBarButtonUp");
}
}
if(this.srcNodeRef){
if(this.srcNodeRef.className){
this.mainNode.parentNode.parentNode.className+=" "+this.srcNodeRef.className;
}
var _50b=this.srcNodeRef.getElementsByTagName("*");
for(var i=0;i<_50b.length;i++){
if(typeof (_50b[i].getAttribute("image"))=="string"){
var _50c={};
_50c.image=_50b[i].getAttribute("image");
_50c.imageLarge=_50b[i].getAttribute("imageLarge");
_50c.name=_50b[i].getAttribute("name");
_50c.description=_50b[i].innerHTML;
_50c.date=_50b[i].getAttribute("date");
_50c.time=_50b[i].getAttribute("time");
_50c.fit=_50b[i].getAttribute("fit");
_50c.imageTable=this._createImageTable();
this._images.push(_50c);
}
}
}
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 _50f=args.method||"chain";
if(!args.duration){
args.duration=500;
}
if(_50f=="chain"){
args.duration=Math.floor(args.duration/2);
}
var top,_511,left,_513,_514,_515=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);
_514=parseInt(cs.width);
_515=parseInt(cs.height);
_513=left-Math.floor((args.width-_514)/2);
_511=top-Math.floor((args.height-_515)/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 _51b=dojo.animateProperty(dojo.mixin({properties:{height:{start:_515,end:args.height||0,unit:"px"},top:{start:top,end:_511}}},args));
var _51c=dojo.animateProperty(dojo.mixin({properties:{width:{start:_514,end:args.width||0,unit:"px"},left:{start:left,end:_513}}},args));
var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_51b,_51c]);
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 _527=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));
dojo.connect(_527,"beforeBegin",_527,init);
return _527;
};
dojox.fx.crossFade=function(args){
if(dojo.isArray(args.nodes)){
var _529=args.nodes[0]=dojo.byId(args.nodes[0]);
var op1=dojo.style(_529,"opacity");
var _52b=args.nodes[1]=dojo.byId(args.nodes[1]);
var op2=dojo.style(_52b,"opacity");
var _52d=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_529},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_52b},args))]);
return _52d;
}else{
return false;
}
};
dojox.fx.highlight=function(args){
var node=args.node=dojo.byId(args.node);
args.duration=args.duration||400;
var _530=args.color||"#ffff99";
var _531=dojo.style(node,"backgroundColor");
var _532=(_531=="transparent"||_531=="rgba(0, 0, 0, 0)")?_531:false;
var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_530,end:_531}}},args));
if(_532){
dojo.connect(anim,"onEnd",anim,function(){
node.style.backgroundColor=_532;
});
}
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 _538=args[dir];
var _539={};
_539[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:_538,unit:"px"};
var anim=dojo.animateProperty(dojo.mixin({properties:_539},args));
return anim;
};
}
if(!dojo._hasResource["dojox.fx"]){
dojo._hasResource["dojox.fx"]=true;
dojo.provide("dojox.fx");
}
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:"",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(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.");
}
}
if(this.options.x!==undefined&&this.options.y!==undefined){
$E(this.domNode).setCss({"left":this.options.x+"px","top":this.options.y+"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(_53f,vars,_541,_542){
if(_541===undefined){
_541=true;
}
if(_542===undefined){
_542=true;
}
return new epages.Template({template:_53f,vars:vars,encodeVars:_541,enableRegExVars:_542});
};
epages.Template=function(_543){
this.setOptions(_543);
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(_544){
this.options={encodeVars:true,enableRegExVars:false,templateDom:undefined,template:undefined,vars:undefined,addTemplate:true};
dojo.mixin(this.options,_544);
},setTemplate:function(_545){
this.options.template=_545;
},encodeXml:function(_546){
if(_546!==undefined){
if(typeof _546=="number"){
_546=_546.toString();
}
_546=_546.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/>/g,"&gt;").replace(/</g,"&lt;");
}
return _546;
},maskRegExVars:function(_547){
if(_547!==undefined){
if(typeof _547=="number"){
_547=_547.toString();
}
if(typeof _547=="string"){
_547=_547.replace(/\$/g,"\\$");
}
}
return _547;
},unmaskRegExVars:function(_548){
if(_548!==undefined){
if(typeof _548=="number"){
_548=_548.toString();
}
if(typeof _548=="string"){
_548=_548.replace(/\\\$/g,"$");
}
}
return _548;
},processHash:function(vars){
if(vars.each===undefined){
vars=$H(vars);
}
var _54a=this.options.template;
if(_54a===undefined){
console.debug("epages.Template: template is empty");
return "";
}
var me=this;
var _54c=function(pair){
var _54e=pair.value;
var _54f=me.options.encodeVars?me.encodeXml(_54e):_54e;
_54f=me.options.enableRegExVars?_54f:me.maskRegExVars(_54f);
var _550=new RegExp("\\(%"+pair.key+"%\\)","g");
_54a=_54a.replace(_550,_54f);
_54a=me.options.enableRegExVars?_54a:me.unmaskRegExVars(_54a);
};
vars.each(_54c);
return _54a;
},processLoop:function(loop){
var _552="";
var me=this;
loop.each(function(el){
_552+=me.processHash(el);
});
return _552;
},generateOutput:function(){
return this.processHash(this.options.vars);
},insertTemplate:function(_555){
if(!this.options.addTemplate){
return;
}
var _556=document.createElement("COMMENT");
_556.data=this.options.template;
if(_555.firstChild===undefined){
_555.insertChild(_556);
}else{
_555.insertBefore(_556,_555.firstChild);
}
return;
},insertLoop:function(loop,_558){
if(_558===undefined){
_558=this.options.templateDom;
}
if(typeof this.options.targetDom!="object"){
_558=$(_558);
}
_558.innerHTML=this.processLoop(loop);
this.insertTemplate(_558);
},insert:function(_559){
if(_559===undefined){
_559=this.options.templateDom;
}
if(typeof this.options.targetDom!="object"){
_559=$(_559);
}
_559.innerHTML=this.generateOutput();
this.processTemplate(_559);
}};
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _55a=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,_55f){
if(_55f){
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(_567,node){
dojo.mixin(this,_567||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_55a++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_56a){
if(undefined!==cont){
this.content=cont;
}
if(_56a){
this._mixin(_56a);
}
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 _56c=this.onContentError(e);
try{
node.innerHTML=_56c;
}
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 _56f=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_56f){
cont=_56f[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(_571){
var _572={},key;
for(key in _571){
if(key in _572){
continue;
}
this[key]=_571[key];
}
},_parse:function(){
var _574=this.node;
try{
this.parseResults=dojo.parser.parse(_574,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_577){
var _578=this["on"+type+"Error"].call(this,err);
if(_577){
console.error(_577,err);
}else{
if(_578){
dojo.html._setNodeContent(this.node,_578,true);
}
}
}});
dojo.html.set=function(node,cont,_57b){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_57b){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_57b,{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(_57d,_57e,_57f){
_57f=dojo.i18n.normalizeLocale(_57f);
var _580=_57f.split("-");
var _581=[_57d,"nls",_57e].join(".");
var _582=dojo._loadedModules[_581];
if(_582){
var _583;
for(var i=_580.length;i>0;i--){
var loc=_580.slice(0,i).join("_");
if(_582[loc]){
_583=_582[loc];
break;
}
}
if(!_583){
_583=_582.ROOT;
}
if(_583){
var _586=function(){
};
_586.prototype=_583;
return new _586();
}
}
throw new Error("Bundle not found: "+_57e+" in "+_57d+" , locale="+_57f);
};
dojo.i18n.normalizeLocale=function(_587){
var _588=_587?_587.toLowerCase():dojo.locale;
if(_588=="root"){
_588="ROOT";
}
return _588;
};
dojo.i18n._requireLocalization=function(_589,_58a,_58b,_58c){
var _58d=dojo.i18n.normalizeLocale(_58b);
var _58e=[_589,"nls",_58a].join(".");
var _58f="";
if(_58c){
var _590=_58c.split(",");
for(var i=0;i<_590.length;i++){
if(_58d["indexOf"](_590[i])==0){
if(_590[i].length>_58f.length){
_58f=_590[i];
}
}
}
if(!_58f){
_58f="ROOT";
}
}
var _592=_58c?_58f:_58d;
var _593=dojo._loadedModules[_58e];
var _594=null;
if(_593){
if(dojo.config.localizationComplete&&_593._built){
return;
}
var _595=_592.replace(/-/g,"_");
var _596=_58e+"."+_595;
_594=dojo._loadedModules[_596];
}
if(!_594){
_593=dojo["provide"](_58e);
var syms=dojo._getModuleSymbols(_589);
var _598=syms.concat("nls").join("/");
var _599;
dojo.i18n._searchLocalePath(_592,_58c,function(loc){
var _59b=loc.replace(/-/g,"_");
var _59c=_58e+"."+_59b;
var _59d=false;
if(!dojo._loadedModules[_59c]){
dojo["provide"](_59c);
var _59e=[_598];
if(loc!="ROOT"){
_59e.push(loc);
}
_59e.push(_58a);
var _59f=_59e.join("/")+".js";
_59d=dojo._loadPath(_59f,null,function(hash){
var _5a1=function(){
};
_5a1.prototype=_599;
_593[_59b]=new _5a1();
for(var j in hash){
_593[_59b][j]=hash[j];
}
});
}else{
_59d=true;
}
if(_59d&&_593[_59b]){
_599=_593[_59b];
}else{
_593[_59b]=_599;
}
if(_58c){
return true;
}
});
}
if(_58c&&_58d!=_58f){
_593[_58d.replace(/-/g,"_")]=_593[_58f.replace(/-/g,"_")];
}
};
(function(){
var _5a3=dojo.config.extraLocale;
if(_5a3){
if(!_5a3 instanceof Array){
_5a3=[_5a3];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_5a7,_5a8){
req(m,b,_5a7,_5a8);
if(_5a7){
return;
}
for(var i=0;i<_5a3.length;i++){
req(m,b,_5a3[i],_5a8);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_5aa,down,_5ac){
_5aa=dojo.i18n.normalizeLocale(_5aa);
var _5ad=_5aa.split("-");
var _5ae=[];
for(var i=_5ad.length;i>0;i--){
_5ae.push(_5ad.slice(0,i).join("-"));
}
_5ae.push(false);
if(down){
_5ae.reverse();
}
for(var j=_5ae.length-1;j>=0;j--){
var loc=_5ae[j]||"ROOT";
var stop=_5ac(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_5b3,_5b4){
function preload(_5b5){
_5b5=dojo.i18n.normalizeLocale(_5b5);
dojo.i18n._searchLocalePath(_5b5,true,function(loc){
for(var i=0;i<_5b4.length;i++){
if(_5b4[i]==loc){
dojo["require"](_5b3+"_"+loc);
return true;
}
}
return false;
});
};
preload();
var _5b8=dojo.config.extraLocale||[];
for(var i=0;i<_5b8.length;i++){
preload(_5b8[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 _5ba=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_5ba);
this.errorMessage=dojo.string.substitute(this.errorMessage,_5ba);
},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 _5bb=dojo.query(">",this.containerNode),_5bc=_5bb.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_5be=dojo.filter(_5bc.map(dijit.byNode),function(_5bf){
return _5bf&&_5bf.domNode&&_5bf.resize;
});
if(_5bb.length==_5bc.length&&_5be.length==1){
this.isContainer=true;
this._singleChild=_5be[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(_5c5){
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(_5ca){
this.cancel();
this.isLoaded=false;
this._loadCheck(_5ca);
},_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(_5cc){
var _5cd=this._isShown();
if(this.href&&(_5cc||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_5cd&&!this._xhrDfd)||(!this.isLoaded&&_5cd&&!this._xhrDfd))){
this._downloadExternalContent();
}
},_downloadExternalContent:function(){
this._setContent(this.onDownloadStart(),true);
var self=this;
var _5cf={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_5cf,this.ioArgs);
}
var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_5cf);
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 _5d4=this._contentSetter;
if(_5d4){
_5d4.empty();
}else{
this.inherited(arguments);
dojo.html._emptyNode(this.containerNode);
}
},_setContent:function(cont,_5d6){
this.destroyDescendants();
this._isRealContent=!_5d6;
var _5d7=this._contentSetter;
if(!(_5d7&&_5d7 instanceof dojo.html._ContentSetter)){
_5d7=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _5d9=this.onContentError(e);
try{
this.containerNode.innerHTML=_5d9;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _5da=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_5d7,_5da);
_5d7.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_5d6){
this._onLoadHandler(cont);
}
},_onError:function(type,err,_5dd){
var _5de=this["on"+type+"Error"].call(this,err);
if(_5dd){
console.error(_5dd,err);
}else{
if(_5de){
this._setContent(_5de,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(_5e0){
},onDownloadError:function(_5e1){
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 _5e2=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;
}
var _5e3=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;
var _5e4=dojox.html._adjustCssPaths=function(_5e5,_5e6){
if(!_5e6||!_5e5){
return;
}
if(_5e2){
_5e6=_5e6.replace(_5e2,function(_5e7,pre,_5e9,url,post){
return pre+(new dojo._Url(_5e5,"./"+url).toString())+post;
});
}
return _5e6.replace(_5e3,function(_5ec,_5ed,_5ee,_5ef,_5f0,_5f1){
if(_5ee){
return "@import \""+(new dojo._Url(_5e5,"./"+_5ee).toString())+"\""+_5f1;
}else{
return "url("+(new dojo._Url(_5e5,"./"+_5f0).toString())+")"+_5f1;
}
});
};
var _5f2=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;
var _5f3=dojox.html._adjustHtmlPaths=function(_5f4,cont){
var url=_5f4||"./";
return cont.replace(_5f2,function(tag,_5f8,name,_5fa,_5fb,_5fc,_5fd,end){
return _5f8+(name?(name+"="+_5fa+(new dojo._Url(url,_5fb).toString())+_5fa):("style="+_5fc+_5e4(url,_5fd)+_5fc))+end;
});
};
var _5ff=dojox.html._snarfStyles=function(_600,cont,_602){
_602.attributes=[];
return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_603,_604,_605,_606,_607,href){
var i,attr=(_604||_606||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");
if(_605){
i=_602.push(_600?_5e4(_600,_605):_605);
}else{
i=_602.push("@import \""+href+"\";");
attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");
}
if(attr){
attr=attr.split(/\s+/);
var _60b={},tmp;
for(var j=0,e=attr.length;j<e;j++){
tmp=attr[j].split("=");
_60b[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");
}
_602.attributes[i-1]=_60b;
}
return "";
});
};
var _60f=dojox.html._snarfScripts=function(cont,_611){
_611.code="";
function download(src){
if(_611.downloadRemote){
dojo.xhrGet({url:src,sync:true,load:function(code){
_611.code+=code+";";
},error:_611.errBack});
}
};
return cont.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_614,_615,src,code){
if(src){
download(src);
}else{
_611.code+=code;
}
return "";
});
};
var _618=dojox.html.evalInGlobal=function(code,_61a){
_61a=_61a||dojo.doc.body;
var n=_61a.ownerDocument.createElement("script");
n.type="text/javascript";
_61a.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(_61c){
this._styleNodes=[];
var st,att,_61f,doc=this.node.ownerDocument;
var head=doc.getElementsByTagName("head")[0];
for(var i=0,e=_61c.length;i<e;i++){
_61f=_61c[i];
att=_61c.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=_61f;
}else{
st.appendChild(doc.createTextNode(_61f));
}
}
},empty:function(){
this.inherited("empty",arguments);
this._styles=[];
},onBegin:function(){
this.inherited("onBegin",arguments);
var cont=this.content,node=this.node;
var _627=this._styles;
if(dojo.isString(cont)){
if(this.adjustPaths&&this.referencePath){
cont=_5f3(this.referencePath,cont);
}
if(this.renderStyles||this.cleanContent){
cont=_5ff(this.referencePath,cont,_627);
}
if(this.executeScripts){
var _t=this;
var _629={downloadRemote:true,errBack:function(e){
_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);
}};
cont=_60f(cont,_629);
this._code=_629.code;
}
}
this.content=cont;
},onEnd:function(){
var code=this._code,_62c=this._styles;
if(this._styleNodes&&this._styleNodes.length){
while(this._styleNodes.length){
dojo._destroyElement(this._styleNodes.pop());
}
}
if(this.renderStyles&&_62c&&_62c.length){
this._renderStyles(_62c);
}
if(this.executeScripts&&code){
if(this.cleanContent){
code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");
}
if(this.scriptHasHooks){
code=code.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);
}
try{
_618(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,_62f){
if(!_62f){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojox.html._ContentSetter(dojo.mixin(_62f,{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 _633=this._setUpDeferreds();
this.inherited(arguments);
return _633;
},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,_635=function(){
_t.cancel();
};
var _636=(_t.onLoadDeferred=new dojo.Deferred());
var _637=(_t._nextUnloadDeferred=new dojo.Deferred());
return {cancel:_635,addOnLoad:function(func){
_636.addCallback(func);
},addOnUnload:function(func){
_637.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(_63c){
var _63d=this._setUpDeferreds();
dijit.layout.ContentPane.prototype._prepareLoad.apply(this,arguments);
return _63d;
},_setContent:function(cont){
var _63f=this._contentSetter;
if(!(_63f&&_63f instanceof dojox.html._ContentSetter)){
_63f=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _641=this.onContentError(e);
try{
this.containerNode.innerHTML=_641;
}
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 _644={};
dojo.xhrGet({url:url,sync:true,load:function(data,evt){
_644.text=data;
},handleAs:"text"});
return _644.text;
},test:function(_647){
_647.setPlanned(2);
_647.ok(1,"loaded");
var text=this.load("htmlTest.inc");
_647.ok(text=="Header loaded successfully.","load header");
return _647.planned==_647.correct?true:false;
}};
}
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:StoreRoot+"/Flash/loadingring.swf",_queuedAni:[],_currentQueueIndex:0};
epages.loaderani._getNextAni=function(){
return;
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]);
},epages.loaderani.create=function(_649,_64a){
return;
_649=_649||{};
_649.width=_649.width||this.defaultWidth;
_649.height=_649.height||this.defaultHeight;
_649.left=_649.left||this.defaultLeft;
_649.top=_649.top||this.defaultTop;
_649.zIndex=_649.zIndex||this.defaultZIndex;
with(this._queuedAni[this._currentQueueIndex].style){
left=_649.left+"px";
top=_649.top+"px";
zIndex=_649.zIndex;
}
with(this._queuedAni[this._currentQueueIndex].getElementsByTagName("object")[0]){
width=_649.width;
height=_649.height;
}
this._getNextAni();
return this._queuedAni[this._currentQueueIndex-1];
};
epages.loaderani.destroy=function(_64b){
return;
if(_64b&&_64b.parentNode){
_64b.parentNode.removeChild(_64b);
}
};
if(epages.Browser.flashVersion){
if(epages.Browser.engine=="MSIE"&&epages.Browser.version<7){
dojo.addOnLoad(function(){
epages.loaderani._getNextAni();
});
}else{
epages.loaderani._getNextAni();
}
}
}
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(_64c,_64d,_64e){
if(!$(_64c)&&_64d&&_64d.offsetWidth){
dojo.body().className+=" SuspendUserInteraction";
var _64f=document.createElement("div");
var _650=new epages.html.Element(_64d).getAbsolutePosition(dojo.body());
with(_64f){
id=_64c;
className="SuspendUserInteractionAnimation";
style.width=_64d.offsetWidth+"px";
style.height=_64d.offsetHeight+"px";
style.left=_650.x+"px";
style.top=_650.y+"px";
}
if(_64e){
dojo.addClass(_64f,"SuspendUserInteractionHidden");
}else{
if(_64d.offsetHeight>0){
_64f.loaderani=epages.loaderani.create({width:16,height:16,top:(_650.y+_64d.offsetHeight/2-8),left:(_650.x+_64d.offsetWidth/2-8),zIndex:10000});
}
}
dojo.body().appendChild(_64f);
}
});
dojo.subscribe("interactionRestrictor/permit",function(_651){
if($(_651)){
dojo.removeClass(dojo.body(),"SuspendUserInteraction");
epages.loaderani.destroy($(_651).loaderani);
dojo.body().removeChild($(_651));
}
});
};
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 _654="";
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";
_654="ExtraButtonTrigger";
}else{
if(dojo.hasClass(el,"SearchButton")){
type="execute";
}else{
type="confirm";
}
}
}
}
}
}
this.button=type;
var _655="";
if(el.type=="image"||el.type=="submit"){
_655="true";
}
var _656="";
if(el.disabled){
_656="true";
}
if(el.getAttribute("triggerClass")!=null&&el.getAttribute("triggerClass")!=""){
_654=el.getAttribute("triggerClass");
}
this.triggerClass=_654;
this.disabled=_656;
this.submit=_655;
var _657=document.createElement("span");
_657.setAttribute((document.all?"className":"class"),this["class"]);
if(!dojo.hasClass(_657,"Button")){
dojo.addClass(_657,"Button");
}
dojo.addClass(_657,"EnableHover");
this.domNode.parentNode.insertBefore(_657,this.domNode);
this.domNode.setAttribute((document.all?"className":"class"),"ButtonContainer");
_657.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(_657,"Disabled");
}
if(this.active!=""){
dojo.addClass(_657,"Active");
}
if(this.iconSrc){
var _658=document.createElement("span");
if(this.onclick){
_658.onclick=this.onclick;
}
if(this.onmousedown){
_658.onmousedown=this.onmousedown;
}
if(this.onmouseup){
_658.onmouseup=this.onmouseup;
}
if(this.onmouseover){
_658.onmouseover=this.onmouseover;
}
_658.form=this.domNode.form;
_658.className="ButtonIconContainer";
_658.style.background="url("+this.iconSrc+") no-repeat center";
_657.insertBefore(_658,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 _659=this.form.elements;
if(this.triggerClass!=""){
_659=dojo.filter(_659,function(el){
return dojo.hasClass(el,this.triggerClass);
},this);
}else{
_659=dojo.filter(_659,function(el){
return !dojo.hasClass(el,"NoButtonTrigger");
});
}
if(this.button=="batch"){
_659=dojo.filter(_659,function(el){
return dojo.hasClass(el,"RunButtonTrigger");
});
}else{
_659=dojo.filter(_659,function(el){
return !dojo.hasClass(el,"RunButtonTrigger");
});
}
this.registerInputs(_659);
}
this.buttonContainerNode=_657;
if(!this.disabled){
this._registerEvents();
}
},registerInputs:function(_65e){
dojo.forEach(_65e,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"));
}
}
}
},this);
},_OnKeyPressInput:function(evt){
if(!this.domNode.parentNode.className.match("Active")){
var t=evt.target;
if(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 _664=this.form;
epages.widget.ButtonChangeForms=dojo.filter(epages.widget.ButtonChangeForms,function(el){
return el!=_664;
});
}
}
},_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(_666){
if(_666==""){
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(_667){
dojo.forEach(dojo.query(".Button",_667),function(el){
if(el.tagName!="INPUT"||el.type=="hidden"){
return;
}
var type;
var _66a="";
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";
_66a="ExtraButtonTrigger";
}else{
if(dojo.hasClass(el,"SearchButton")){
type="execute";
}else{
type="confirm";
}
}
}
}
}
}
var _66b="";
if(el.type=="image"||el.type=="submit"){
_66b="true";
}
var _66c="";
if(el.disabled){
_66c="true";
}
if(el.getAttribute("triggerClass")!=null&&el.getAttribute("triggerClass")!=""){
_66a=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:_66b,disabled:_66c,triggerClass:_66a},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 (%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 _66d=dijit._Templated.getCachedTemplate(this.innerTemplatePath,null,true);
this.templateString=this.templateString.replace("<!-- //innerTemplate// -->",_66d);
this.templatePath="";
}
this.inherited("buildRendering",arguments);
},postMixInProperties:function(){
var _66e={containerClass:""};
dojo.mixin(_66e,this.options);
this.options=_66e;
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 _66f=parseInt(this.domNode.style.top);
var _670=parseInt(this.domNode.style.left);
if(_66f<0){
this.domNode.style.top="0px";
}
if(_670<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(_672){
this._destroyButtons();
this._createButtons(_672);
},setTitle:function(_673){
this.titleNode.innerHTML=_673;
},_createContent:function(opt){
if(opt){
dojo.mixin(this.options,opt);
}
var _675=undefined;
if(this.options.translationName){
_675=new epages.io.Translation(this.options.translationName,"auto");
if(this.options.title){
this.options.title=_675.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 _677=dojo.xhrGet(args);
if(_675){
_677.addCallback(function(html){
return _675.replaceLanguageTags(html);
});
}
return _677;
},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 _679=this.containerNode.getElementsByTagName("script");
var win=this._doc.parentWindow?this._doc.parentWindow:this._doc.defaultView;
for(var i=0;i<_679.length;i++){
if(_679[i].childNodes.length>0){
win.eval(_679[i].childNodes[0].nodeValue);
}else{
win.eval(_679[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(_67c){
if(_67c.length){
this.innerButtonBarNode.style.display="";
}
this.buttons=[];
this._events=[];
dojo.forEach(_67c,function(_67d){
_67d.domNode=[];
var _67e=new epages.Template({template:this.buttonTemplateString,vars:{"Label":_67d.label,"Class":_67d.cssClass?_67d.cssClass:""}});
var _67f=this.createNodesFromText(_67e.generateOutput());
this.innerButtonBarNode.appendChild(_67f);
_67d.domNode=_67f;
dojo.mixin(_67d,{_modalDialogWidget:this,_contentWidget:this._contentWidget});
this._events.push(dojo.connect(_67d.domNode,"onclick",_67d,"onclick"));
this.buttons.push(_67d);
},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(_680){
_680.domNode.parentNode.removeChild(_680.domNode);
_680.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(_682){
var tab={domNode:[],changeNode:_682};
var _684=new epages.Template({template:this.tabTemplateString,vars:{"Label":_682.getAttribute("ep_label")}});
var _685=this.createNodesFromText(_684.generateOutput());
this.tabBarNode.appendChild(_685);
tab.domNode=_685;
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 _688=evt.currentTarget;
var tab=undefined;
for(var i=0;i<this._tabs.length;i++){
if(_688==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=\""+window.StoreRoot+"/Flash/loadingring.swf\"><param name=\"movie\" value=\""+window.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(_68b){
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:_68b?_68b:1000})]).play();
},rePositionBusy:function(){
if($("busyMessageLayer")){
$("busyMessageLayer").style.top=(window.pageYOffset||document.getElementsByTagName("html")[0].scrollTop)+"px";
}
},errorsToString:function(_68c){
var _68d="";
for(var el in _68c){
if(_68c[el].Message!=""){
_68d+=_68c[el].Message+"<br />";
}else{
var t=epages.io.dictionary.get(_68c[el].Reason);
if(t===undefined){
t=_68c[el].Reason;
}
_68d+=t+"<br />";
}
}
return _68d;
}});
dojo.subscribe("uimessage/show",function(_690,_691,type,opt){
var _694=(opt.sizeClass!==undefined)?opt.sizeClass:"Large";
var _695=(opt.typeClass!==undefined)?opt.typeClass:"Warning";
if($$("uimessage_dialog")){
$$("uimessage_dialog").hide();
}
if($$("uimessage_bubble")){
$$("uimessage_bubble").hide();
}
var _696=$$("uimessage_insert");
if(_696===undefined){
_696=new epages.widget.Message({id:"uimessage_insert",headline:(_690!==undefined)?_690:"",message:_691,sizeClass:_694,typeClass:_695,borderClass:(type=="Insert")?"WithBorder":""});
}else{
_696.hide();
_696.setupContent({headline:_690,message:_691,sizeClass:_694,typeClass:_695,borderClass:(type=="Insert")?"WithBorder":""});
}
_696.show();
switch(type){
case "Bubble":
var _697=$$("uimessage_bubble");
var _698=opt.attachNode||document.body;
if((opt.x==null||opt.y==null)&&opt.element!=null){
var _699=$E(opt.element).getAbsolutePosition(opt.baseNode);
opt.x=opt.x||(_699.x+opt.element.offsetWidth/2);
opt.y=opt.y||(_699.y+opt.element.offsetHeight);
}
if(_697===undefined){
_697=new epages.widget.Bubble({id:"uimessage_bubble",options:{x:opt.x,y:opt.y,typeClass:_695,content:_696}});
_698.appendChild(_697.domNode);
}else{
_697.setupContent({x:opt.x,y:opt.y,typeClass:_695,content:_696});
_698.appendChild(_697.domNode);
}
_697.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 _69a=opt.buttons;
if(_69a===undefined){
var _69b=epages.io.dictionary.translation;
_69a=_695=="Confirmation"?[{label:_69b.get("Yes"),onclick:function(){
this._modalDialogWidget.hide();
if(typeof opt.onYes=="function"){
opt.onYes();
}
}},{label:_69b.get("No"),onclick:function(){
this._modalDialogWidget.hide();
if(typeof opt.onNo=="function"){
opt.onNo();
}
}}]:[{label:_69b.get("Close"),onclick:function(){
this._modalDialogWidget.hide();
}}];
}
var _69c=opt.titleBar;
if(_69c===undefined){
_69c=epages.io.dictionary.translation.get(_695);
}
var uid=$$("uimessage_dialog");
if(uid===undefined){
uid=new epages.widget.Modaldialog({id:"uimessage_dialog",options:{title:_69c,width:450,content:_696},buttons:_69a});
document.body.appendChild(uid.domNode);
}else{
uid.containerNode.appendChild(_696.domNode);
uid.setupContent({title:_69c,width:450,content:_696,buttons:_69a});
}
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(_69f,_6a0,_6a1){
epages.uimessagehandler.busyLayerOwner=_69f;
var _6a2=document.getElementsByTagName("body")[0];
if(document.all){
_6a2.parentNode.style.overflow="hidden";
}
var _6a3=$("busyMessageLayer");
if(_6a3==null){
_6a3=document.createElement("div");
_6a3.innerHTML=epages.uimessagehandler.template;
_6a2.appendChild(_6a3.firstChild);
_6a3=_6a3.firstChild;
}
$("busyMessageLayer").style.display="";
dojo.style($("busyMessageLayer"),"opacity",1);
if($("busyMessage").getElementsByTagName("div")[0]){
$("busyMessage").removeChild($("busyMessage").getElementsByTagName("div")[0]);
}
var _6a4=document.createElement("div");
_6a4.innerHTML=_6a0;
$("busyMessage").appendChild(_6a4);
if(_6a1){
$("busyMessage").style.paddingLeft="40px";
$("busyMessage").style.backgroundImage="url("+_6a1+")";
if($("busyMessage").style.filter){
$("busyMessage").style.backgroundImage="none";
$("busyMessage").style.filter="progid:DXImageTransform.Microsoft.Alpha() progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_6a1+"', 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(_6a5,_6a6,_6a7){
var _6a8=epages.uimessagehandler.errorsToString(_6a7);
dojo.publish("uimessage/show",[_6a5,_6a8,"Dialog",{titleBar:_6a6,typeClass:"Error"}]);
});
dojo.subscribe("uimessage/showErrorBubble",function(_6a9,_6aa,_6ab,_6ac){
var tc=(_6ac)?_6ac:"Error";
var _6ae=epages.uimessagehandler.errorsToString(_6ab);
var pos=$E(_6aa).getAbsolutePosition();
dojo.publish("uimessage/show",[_6a9,_6ae,"Bubble",{typeClass:tc,sizeClass:"Small",x:pos.x,y:pos.y+_6aa.clientHeight+4}]);
});
dojo.subscribe("uimessage/changeBusy",function(_6b0,_6b1){
if(epages.uimessagehandler.busyLayerOwner==_6b0&&top.$("busyMessage")){
if($("busyMessage").getElementsByTagName("div")[0]){
$("busyMessage").removeChild($("busyMessage").getElementsByTagName("div")[0]);
}
var _6b2=document.createElement("div");
_6b2.innerHTML=_6b1;
$("busyMessage").appendChild(_6b2);
}
});
dojo.subscribe("uimessage/stopBusy",function(_6b3,_6b4,_6b5){
if(epages.uimessagehandler.busyLayerOwner==_6b3){
if(_6b4){
window.setTimeout(function(){
epages.uimessagehandler.fadeOutBusyLayer(_6b5);
},_6b4);
}else{
epages.uimessagehandler.fadeOutBusyLayer(_6b5);
}
}
});
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,_6b7,_6b8,_6b9){
if(_6b9===null){
_6b9=undefined;
}
if(_6b8=="PopUp"){
_6b8="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
}
if(_6b8=="PopUpPrint"){
_6b8="width=790, height=580, toolbar=yes, status=no, resizable=yes, menubar=yes, location=no, scrollbars=yes";
}
if(_6b8=="RTE"||_6b7=="RTE"){
_6b8="width=996, height=700, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
}
if(_6b8=="HelpWindow"){
_6b8="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
_6b7="WWHFrame";
}
if(_6b8=="StylePreview"){
_6b8="width=470, height=310, toolbar=no, status=no, resizable=no, menubar=no, location=no, scrollbars=no";
_6b7="StylePreview";
}
if(_6b8=="DetailedImageView"){
_6b8="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
_6b7="StylePreview";
}
if(_6b8=="CheckLink"){
if(URL.indexOf("?")!=0){
splittedString=URL.split("//");
if(splittedString.length==1){
URL="http://"+URL;
}
}else{
if(_6b9!=undefined){
URL=_6b9+URL;
}
}
_6b8="toolbar=yes, status=yes, resizable=yes, menubar=yes, location=yes, scrollbars=yes";
}
if(URL!="http://"){
var _6ba=window.open(URL,_6b7,_6b8);
if(_6ba){
_6ba.focus();
}
}
return _6ba;
};
window.linkCorrection=function(_6bb){
var _6bc=_6bb.value;
var _6bd=_6bc.split("//");
if(_6bc.indexOf("?")!=0){
if(_6bd.length==1){
_6bb.value="http://"+_6bc;
epages.event.fire(_6bb,"change");
}
}
};
window.OnCheckAll=function(form,name,_6c0,_6c1){
for(var i=0;i<form.length;i++){
var _6c3=form[i];
if(_6c3.nodeName=="INPUT"){
if((_6c3.type=="checkbox"||_6c3.className.match("Checkbox"))&&_6c3.name==name&&!_6c3.disabled&&_6c3.checked!=_6c0){
_6c3.checked=_6c0;
if(!_6c1){
epages.event.fire(_6c3.parentNode,"click");
}
}
}
}
};
window.DeactivateButton=function(_6c4){
if(_6c4.className.match("CustomButton")){
fakeButton=_6c4.getElementsByTagName("*")[0];
fakeButton.disabled="true";
}else{
_6c4.disabled="true";
}
dojo.addClass(_6c4,"Disabled");
};
window.EnableButton=function(_6c5){
if(_6c5.className.match("CustomButton")){
fakeButton=_6c5.getElementsByTagName("*")[0];
fakeButton.disabled="false";
}else{
_6c5.disabled="false";
}
dojo.removeClass(_6c5,"Disabled");
};
window.DisableLink=function(Link){
if($(Link)){
$(Link).className+=" Opacity40";
$(Link).href="javascript:void(0)";
$(Link).style.cursor="default";
}
};
window.changeImage=function(_6c7,_6c8,_6c9){
$(_6c7).src=_6c8;
if(_6c9){
$(_6c7).alt=_6c9;
}
};
window.OptionToChangeAction=function(_6ca){
_6ca.form.ChangeAction.value=_6ca.options[_6ca.selectedIndex].value;
};
window.toggleDisplay=function(_6cb){
if($(_6cb).className!="HideElement"){
$(_6cb).className="HideElement";
}else{
$(_6cb).className="ShowElement";
}
};
window.hideElement=function(_6cc){
if(!$(_6cc).className.match(/HideElement/)){
$(_6cc).className+=" HideElement";
}
};
window.showElement=function(_6cd){
$(_6cd).className=$(_6cd).className.replace(/HideElement/,"");
};
window.changeDataById=function(_6ce,id){
myobject=$(id);
if(myobject.firstChild){
myobject.firstChild.data=_6ce;
}else{
mydata=document.createTextNode(_6ce);
myobject.appendChild(mydata);
}
};
window.getSelectedData=function(_6d0){
if(_6d0){
myNode=_6d0.firstChild;
while(myNode!=null){
if(myNode.value==_6d0.value&&myNode.value!=""){
return myNode.firstChild.data;
}
myNode=myNode.nextSibling;
}
return "";
}
};
window.checkBrowser=function(){
var _6d1=navigator.userAgent.toLowerCase();
this.isIE=(_6d1.indexOf("msie")!=-1);
this.isGecko=(_6d1.indexOf("gecko")!=-1&&_6d1.indexOf("safari")==-1);
this.isOpera=(_6d1.indexOf("opera")!=-1);
this.isRTECompatible=(this.isIE||this.isGecko);
};
var browser=new checkBrowser();
window.disableFormFieldsInElement=function(_6d2){
userattrinputs=$(_6d2).getElementsByTagName("input");
for(i=0;i<userattrinputs.length;i++){
userattrinputs[i].disabled=true;
if($(_6d2).parentNode.className.match("Cropper")){
$(_6d2).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=$(_6d2).getElementsByTagName("textarea");
for(i=0;i<userattrtextareas.length;i++){
userattrtextareas[i].disabled=true;
if($(_6d2).parentNode.className.match("Cropper")){
$(_6d2).parentNode.className+=" Disabled";
}
userattrtextareas[i].className=userattrtextareas[i].className+" Disabled";
}
userattrselects=$(_6d2).getElementsByTagName("select");
for(i=0;i<userattrselects.length;i++){
userattrselects[i].disabled=true;
if($(_6d2).parentNode.className.match("Cropper")){
$(_6d2).parentNode.className+=" Disabled";
}
userattrselects[i].className=userattrselects[i].className+" Disabled";
}
};
window.enableFormFieldsInElement=function(_6d3){
userattrinputs=$(_6d3).getElementsByTagName("input");
for(i=0;i<userattrinputs.length;i++){
userattrinputs[i].disabled=false;
if($(_6d3).parentNode.className.match("Cropper")){
$(_6d3).parentNode.className=$(_6d3).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=$(_6d3).getElementsByTagName("textarea");
for(i=0;i<userattrtextareas.length;i++){
userattrtextareas[i].disabled=false;
if($(_6d3).parentNode.className.match("Cropper")){
$(_6d3).parentNode.className=$(_6d3).parentNode.className.replace(/Disabled/g,"");
}
userattrtextareas[i].className=userattrtextareas[i].className.replace(/ Disabled/,"");
userattrtextareas[i].className=userattrtextareas[i].className.replace(/Disabled/,"");
}
userattrselects=$(_6d3).getElementsByTagName("select");
for(i=0;i<userattrselects.length;i++){
userattrselects[i].disabled=false;
if($(_6d3).parentNode.className.match("Cropper")){
$(_6d3).parentNode.className=$(_6d3).parentNode.className.replace(/Disabled/g,"");
}
userattrselects[i].className=userattrselects[i].className.replace(/ Disabled/,"");
userattrselects[i].className=userattrselects[i].className.replace(/Disabled/,"");
}
};
window.disableFormFieldById=function(_6d4){
var _6d5=true;
if(disableFormFieldById.arguments.length>1){
_6d5=disableFormFieldById.arguments[1];
}
$(_6d4).disabled=true;
if($(_6d4).parentNode.className.match("Cropper")){
$(_6d4).parentNode.className+=" Disabled";
}
if(_6d5){
dojo.addClass($(_6d4),"Disabled");
}
};
window.enableFormFieldById=function(_6d6){
var _6d7=true;
if(enableFormFieldById.arguments.length>1){
_6d7=enableFormFieldById.arguments[1];
}
$(_6d6).disabled=false;
if($(_6d6).parentNode.className.match("Cropper")){
$(_6d6).parentNode.className=$(_6d6).parentNode.className.replace(/Disabled/g,"");
}
if(_6d7){
dojo.removeClass($(_6d6),"Disabled");
}
};
window.allowURLUpload=function(){
var _6d8=$("FileUpload").value;
if(_6d8.match(/http:../)||_6d8.match(/https:../)){
$("FileUpload2").value=_6d8;
$("FileUpload2").disabled=false;
$("FileUpload").disabled=true;
}
};
window.allowBulkURLUpload=function(_6d9){
var _6da=document.getElementsByName(_6d9);
for(var i=0;i<_6da.length;i++){
var _6dc=_6da[i].value;
var _6dd=_6da[i].type;
var _6de=_6da[i].id;
if((_6dc.match(/http:../)||_6dc.match(/https:../))&&_6dd!="hidden"){
$(_6de.replace(/FileName/,"URLUpload")).value=_6dc;
$(_6de.replace(/FileName/,"URLUpload")).disabled=false;
$(_6de).disabled=true;
}
}
};
window.setValue=function(_6df,_6e0){
$(_6e0).value=_6df;
};
window.autofillAddress=function(_6e1){
_6e1.form.DisplayName.value=_6e1.form.FirstName.value+" "+_6e1.form.LastName.value;
if(_6e1.form.UserAlias){
_6e1.form.UserAlias.value=_6e1.form.FirstName.value.slice(0,1)+_6e1.form.LastName.value;
}
if(_6e1.form.UserName){
_6e1.form.UserName.value=_6e1.form.FirstName.value+" "+_6e1.form.LastName.value;
}
};
window.SFautofillAddress=function(_6e2,_6e3,_6e4){
$(_6e4).value=$(_6e2).value+" "+$(_6e3).value;
};
window.setCurrentDate=function(_6e5,_6e6){
$(_6e6).value=_6e5;
};
window.updateStyleSheetRule=function(rule,text){
text+=" !important";
if(browser.isIE){
var _6e9=rule.split(/,\s+/);
var _6ea=document.styleSheets[document.styleSheets.length-1];
for(var i=0;i<_6e9.length;i++){
_6ea.addRule(_6e9[i],text);
}
}else{
var _6ec=document.getElementsByTagName("style");
var _6ea=_6ec[_6ec.length-1];
_6ea.innerHTML+="\n"+rule+"{"+text+";}";
}
};
window.showNotAllowedDialog=function(_6ed,_6ee){
var _6ef=$E(_6ed).getAbsolutePosition();
dojo.publish("uimessage/show",["",_6ee,"Bubble",{typeClass:"Warning",sizeClass:"Small",x:_6ef.x,y:_6ef.y+_6ed.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(_6f0,_6f1){
this.areaName.push(_6f0);
this.areaId.push(_6f1);
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 _6f3=document.createElement("a");
_6f3.href="javascript:epagesDialog.toggleArea('"+this.areaName[i]+"');";
_6f3.name=this.areaName[i];
_6f3.id=this.areaName[i];
_6f3.className="HideArea";
}else{
var _6f3=document.createElement("span");
_6f3.name=this.areaName[i];
_6f3.id=this.areaName[i];
_6f3.className="disabled";
}
var _6f4=document.createTextNode(this.areaDisplayName[i]);
_6f3.appendChild(_6f4);
$("ToggleTabpageArea").appendChild(_6f3);
}
};
this.showArea=function(_6f5){
areaId="";
for(i=0;i<this.areaName.length;i++){
if(this.areaName[i]==_6f5){
areaId=this.areaId[i];
}
}
try{
dojo.removeClass(document.getElementsByName(_6f5)[0],"HideArea");
dojo.addClass(document.getElementsByName(_6f5)[0],"ShowArea");
}
catch(ex){
dojo.removeClass($(_6f5),"HideArea");
dojo.addClass($(_6f5),"ShowArea");
}
$(areaId).className="ShowElement";
if(browser.isIE){
setTimeout("$('"+areaId+"').className='ShowElement';",10);
}
actualDialogArea=_6f5;
};
this.hideArea=function(_6f6){
areaId="";
for(i=0;i<this.areaName.length;i++){
if(this.areaName[i]==_6f6){
areaId=this.areaId[i];
}
}
dojo.removeClass(document.getElementsByName(_6f6)[0],"ShowArea");
dojo.addClass(document.getElementsByName(_6f6)[0],"HideArea");
$(areaId).className="HideElement";
actualDialogArea="";
};
this.toggleArea=function(_6f7){
this.showArea(_6f7);
for(i=0;i<this.areaName.length;i++){
tempName=this.areaName[i];
tempId=this.areaId[i];
if(_6f7!=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(_6f8){
if(document.getElementsByName(_6f8)[0].className.match("HideArea")){
this.showArea(_6f8);
}else{
this.hideArea(_6f8);
}
};
this.selectArea=function(_6f9){
this.showArea(_6f9);
for(i=0;i<this.areaName.length;i++){
tempName=this.areaName[i];
tempId=this.areaId[i];
if(_6f9!=tempName){
dojo.removeClass(document.getElementsByName(tempName)[0],"ShowArea");
dojo.addClass(document.getElementsByName(tempName)[0],"HideArea");
$(tempId).className="HideElement";
}
}
};
};
window.appendDialogArea=function(_6fa){
if(actualDialogArea!=""){
_6fa.action+="&DialogArea="+actualDialogArea;
}
};
actualDialogArea="";
epagesDialog=new DialogArea();
window.WizardPages=function(){
this.TabId=new Array();
this.AreaId=new Array();
this.addPage=function(_6fb,_6fc){
this.TabId.push(_6fb);
this.AreaId.push(_6fc);
};
this.showStep=function(_6fd){
ActualWizardPage=_6fd;
window.scrollTo(0,0);
$(this.TabId[_6fd]).className="selected";
$(this.TabId[_6fd]).getElementsByTagName("span")[0].firstChild.className="selected";
try{
$(this.TabId[_6fd]).getElementsByTagName("span")[0].appendChild(oHelpTopic);
}
catch(ex){
}
$(this.AreaId[_6fd]).className="ShowElement";
for(i=0;i<this.TabId.length;i++){
if(i!=_6fd){
$(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(_6fe){
(new epages.widget.Slides).openOverview(_6fe);
};
}
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(_700){
var _701=this._counter;
this._hash.set("key"+_701,_700);
do{
this._counter++;
}while(this._hash.existsKey("key"+this._counter));
return _701;
},set:function(key,_703){
if(this._hash.existsKey("key"+key)){
this._hash.set("key"+key,_703);
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,_706){
if(o===undefined&&func===undefined&&_706===undefined){
}else{
if(_706===undefined){
return dojo.hitch(o,func);
}
var _707=[];
for(var i=0;i<_706.length;i++){
var _709=epages.lang.hitch.prototype.clipBoard.add(_706[i]);
_707.push("epages.lang.hitch.prototype.clipBoard.get("+_709+")");
}
if(typeof (func)=="string"){
var _70a=func;
}else{
for(member in o){
if(typeof o[member]=="function"&&o[member]==func){
var _70a=member;
break;
}
}
}
var _70b;
if(_70a===undefined){
_70b=eval("dojo.hitch(o, function() { func("+_707.join(", ")+"); });");
}else{
_70b=eval("dojo.hitch(o, function() { o."+_70a+"("+_707.join(", ")+"); });");
}
return _70b;
}
};
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 _70d={};
if(uri.match(/^((?:(.+)\:\/\/([^\/]+))?((?:\/|[^\?#]).*?)?(\?.*?)?(#.*)?)$/)){
_70d={href:RegExp.$1,protocol:RegExp.$2,host:RegExp.$3,path:RegExp.$4,query:RegExp.$5,anchor:RegExp.$6,parameters:{}};
_70d.parameters=this.splitQueryString(_70d.query);
}
return _70d;
},splitQueryString:function(uri){
var _70f={};
var _710=(new RegExp(/\??(.*?)(#.*)?$/g)).exec(uri);
if(_710){
var _711=_710[1];
var _712=_711.split("&");
for(var i=0;i<_712.length;i++){
var _714=(new RegExp(/(.+)\=(.*)/)).exec(_712[i]);
if(_714){
_70f[decodeURIComponent(_714[1])]=decodeURIComponent(_714[2]);
}
}
}
return _70f;
},toQueryString:function(data){
if(dojo.isArray(data)){
var _716=[];
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;
}
_716.push(encodeURIComponent(data[i][0])+"="+encodeURIComponent(data[i][1]));
}
return _716.join("&");
}else{
if(dojo.isObject(data)){
return $H(data).toQueryString();
}
}
},fromParts:function(_718){
var _719="";
if(_718.protocol){
_719+=_718.protocol+"://";
}
if(_718.host){
_719+=_718.host;
}
if(_718.path){
_719+=_718.path;
}
if(dojo.isObject(_718.parameters)){
var qs=this.toQueryString(_718.parameters);
if(qs){
_719+="?"+qs;
}
}else{
if(_718.query){
_719+=_718.query;
}
}
if(_718.anchor){
_719+=_718.anchor;
}
return _719;
},isAbsolute:function(uri){
var rx=new RegExp(/^((http|https|ftp)\:\/\/|\/)/g);
return rx.test(uri);
},getRelative:function(_71d,url){
var _71f=epages.lang.uri.parts(_71d);
var _720=epages.lang.uri.parts(url);
if((_720.protocol!=null&&_720.protocol!=_71f.protocol)||(_720.host!=null&&_720.host!=_71f.host)){
return url;
}
_71f.path=_71f.path.replace(/\/+$/,"");
_720.path=_720.path.replace(/\/+$/,"");
var _721=_71f.path.split("/");
var _722=_720.path.split("/");
while(_721.length>0){
var _723=_721.shift();
var _724=_722.shift();
if(_724==null){
_721.unshift(_723);
break;
}else{
if(_723!=_724){
_721.unshift(_723);
_722.unshift(_724);
break;
}
}
}
var _725="";
for(var i=0;i<_721.length;i++){
_725+="../";
}
return _725+_722.join("/");
}};
}
if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_727){
var _728=_727.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_728==1&&dojo.date.isLeapYear(_727)){
return 29;
}
return days[_728];
};
dojo.date.isLeapYear=function(_72a){
var year=_72a.getFullYear();
return !(year%400)||(!(year%4)&&!!(year%100));
};
dojo.date.getTimezoneName=function(_72c){
var str=_72c.toString();
var tz="";
var _72f;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_72f=str.match(pat))){
tz=_72f[1];
}else{
str=_72c.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_72f=str.match(pat))){
tz=_72f[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_732,_733,_734){
_732=new Date(Number(_732));
_733=new Date(Number(_733||new Date()));
if(_734!=="undefined"){
if(_734=="date"){
_732.setHours(0,0,0,0);
_733.setHours(0,0,0,0);
}else{
if(_734=="time"){
_732.setFullYear(0,0,0);
_733.setFullYear(0,0,0);
}
}
}
if(_732>_733){
return 1;
}
if(_732<_733){
return -1;
}
return 0;
};
dojo.date.add=function(date,_736,_737){
var sum=new Date(Number(date));
var _739=false;
var _73a="Date";
switch(_736){
case "day":
break;
case "weekday":
var days,_73c;
var mod=_737%5;
if(!mod){
days=(_737>0)?5:-5;
_73c=(_737>0)?((_737-5)/5):((_737+5)/5);
}else{
days=mod;
_73c=parseInt(_737/5);
}
var strt=date.getDay();
var adj=0;
if(strt==6&&_737>0){
adj=1;
}else{
if(strt==0&&_737<0){
adj=-1;
}
}
var trgt=strt+days;
if(trgt==0||trgt==6){
adj=(_737>0)?2:-2;
}
_737=(7*_73c)+days+adj;
break;
case "year":
_73a="FullYear";
_739=true;
break;
case "week":
_737*=7;
break;
case "quarter":
_737*=3;
case "month":
_739=true;
_73a="Month";
break;
case "hour":
case "minute":
case "second":
case "millisecond":
_73a="UTC"+_736.charAt(0).toUpperCase()+_736.substring(1)+"s";
}
if(_73a){
sum["set"+_73a](sum["get"+_73a]()+_737);
}
if(_739&&(sum.getDate()<date.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_741,_742,_743){
_742=_742||new Date();
_743=_743||"day";
var _744=_742.getFullYear()-_741.getFullYear();
var _745=1;
switch(_743){
case "quarter":
var m1=_741.getMonth();
var m2=_742.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_744*4);
_745=q2-q1;
break;
case "weekday":
var days=Math.round(dojo.date.difference(_741,_742,"day"));
var _74b=parseInt(dojo.date.difference(_741,_742,"week"));
var mod=days%7;
if(mod==0){
days=_74b*5;
}else{
var adj=0;
var aDay=_741.getDay();
var bDay=_742.getDay();
_74b=parseInt(days/7);
mod=days%7;
var _750=new Date(_741);
_750.setDate(_750.getDate()+(_74b*7));
var _751=_750.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 (_751+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 (_751+mod)<0:
adj=2;
}
}
}
days+=adj;
days-=(_74b*2);
}
_745=days;
break;
case "year":
_745=_744;
break;
case "month":
_745=(_742.getMonth()-_741.getMonth())+(_744*12);
break;
case "week":
_745=parseInt(dojo.date.difference(_741,_742,"day")/7);
break;
case "day":
_745/=24;
case "hour":
_745/=60;
case "minute":
_745/=60;
case "second":
_745/=1000;
case "millisecond":
_745*=_742.getTime()-_741.getTime();
}
return Math.round(_745);
};
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_752){
var _753={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 _754=dojo.cldr.supplemental._region(_752);
var dow=_753[_754];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function(_756){
_756=dojo.i18n.normalizeLocale(_756);
var tags=_756.split("-");
var _758=tags[1];
if(!_758){
_758={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(_758.length==4){
_758=tags[2];
}
}
return _758;
};
dojo.cldr.supplemental.getWeekend=function(_759){
var _75a={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 _75b={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 _75c=dojo.cldr.supplemental._region(_759);
var _75d=_75a[_75c];
var end=_75b[_75c];
if(_75d===undefined){
_75d=6;
}
if(end===undefined){
end=0;
}
return {start:_75d,end:end};
};
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_760){
return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){
if(_760&&_760.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_764){
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("|"),_764);
};
dojo.regexp.group=function(_767,_768){
return "("+(_768?"?:":"")+_767+")";
};
}
if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function formatPattern(_769,_76a,_76b,_76c){
return _76c.replace(/([a-z])\1*/ig,function(_76d){
var s,pad;
var c=_76d.charAt(0);
var l=_76d.length;
var _772=["abbr","wide","narrow"];
switch(c){
case "G":
s=_76a[(l<4)?"eraAbbr":"eraNames"][_769.getFullYear()<0?0:1];
break;
case "y":
s=_769.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_76b){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_769.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_769.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _774=["months","format",_772[l-3]].join("-");
s=_76a[_774][m];
}
break;
case "w":
var _775=0;
s=dojo.date.locale._getWeekOfYear(_769,_775);
pad=true;
break;
case "d":
s=_769.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_769);
pad=true;
break;
case "E":
var d=_769.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _777=["days","format",_772[l-3]].join("-");
s=_76a[_777][d];
}
break;
case "a":
var _778=(_769.getHours()<12)?"am":"pm";
s=_76a[_778];
break;
case "h":
case "H":
case "K":
case "k":
var h=_769.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=_769.getMinutes();
pad=true;
break;
case "s":
s=_769.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_769.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_769);
if(s){
break;
}
l=4;
case "Z":
var _77a=_769.getTimezoneOffset();
var tz=[(_77a<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_77a)/60),2),dojo.string.pad(Math.abs(_77a)%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: "+_76c);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale.format=function(_77c,_77d){
_77d=_77d||{};
var _77e=dojo.i18n.normalizeLocale(_77d.locale);
var _77f=_77d.formatLength||"short";
var _780=dojo.date.locale._getGregorianBundle(_77e);
var str=[];
var _782=dojo.hitch(this,formatPattern,_77c,_780,_77d.fullYear);
if(_77d.selector=="year"){
var year=_77c.getFullYear();
if(_77e.match(/^zh|^ja/)){
year+="年";
}
return year;
}
if(_77d.selector!="time"){
var _784=_77d.datePattern||_780["dateFormat-"+_77f];
if(_784){
str.push(_processPattern(_784,_782));
}
}
if(_77d.selector!="date"){
var _785=_77d.timePattern||_780["timeFormat-"+_77f];
if(_785){
str.push(_processPattern(_785,_782));
}
}
var _786=str.join(" ");
return _786;
};
dojo.date.locale.regexp=function(_787){
return dojo.date.locale._parseInfo(_787).regexp;
};
dojo.date.locale._parseInfo=function(_788){
_788=_788||{};
var _789=dojo.i18n.normalizeLocale(_788.locale);
var _78a=dojo.date.locale._getGregorianBundle(_789);
var _78b=_788.formatLength||"short";
var _78c=_788.datePattern||_78a["dateFormat-"+_78b];
var _78d=_788.timePattern||_78a["timeFormat-"+_78b];
var _78e;
if(_788.selector=="date"){
_78e=_78c;
}else{
if(_788.selector=="time"){
_78e=_78d;
}else{
_78e=_78c+" "+_78d;
}
}
var _78f=[];
var re=_processPattern(_78e,dojo.hitch(this,_buildDateTimeRE,_78f,_78a,_788));
return {regexp:re,tokens:_78f,bundle:_78a};
};
dojo.date.locale.parse=function(_791,_792){
var info=dojo.date.locale._parseInfo(_792);
var _794=info.tokens,_795=info.bundle;
var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");
var _797=re.exec(_791);
if(!_797){
return null;
}
var _798=["abbr","wide","narrow"];
var _799=[1970,0,1,0,0,0,0];
var amPm="";
var _79b=dojo.every(_797,function(v,i){
if(!i){
return true;
}
var _79e=_794[i-1];
var l=_79e.length;
switch(_79e.charAt(0)){
case "y":
if(l!=2&&_792.strict){
_799[0]=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _7a1=year.substring(0,2)*100;
var _7a2=Math.min(Number(year.substring(2,4))+20,99);
var num=(v<_7a2)?_7a1+v:_7a1-100+v;
_799[0]=num;
}else{
if(_792.strict){
return false;
}
_799[0]=v;
}
}
break;
case "M":
if(l>2){
var _7a4=_795["months-format-"+_798[l-3]].concat();
if(!_792.strict){
v=v.replace(".","").toLowerCase();
_7a4=dojo.map(_7a4,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_7a4,v);
if(v==-1){
return false;
}
}else{
v--;
}
_799[1]=v;
break;
case "E":
case "e":
var days=_795["days-format-"+_798[l-3]].concat();
if(!_792.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":
_799[1]=0;
case "d":
_799[2]=v;
break;
case "a":
var am=_792.am||_795.am;
var pm=_792.pm||_795.pm;
if(!_792.strict){
var _7aa=/\./g;
v=v.replace(_7aa,"").toLowerCase();
am=am.replace(_7aa,"").toLowerCase();
pm=pm.replace(_7aa,"").toLowerCase();
}
if(_792.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;
}
_799[3]=v;
break;
case "m":
_799[4]=v;
break;
case "s":
_799[5]=v;
break;
case "S":
_799[6]=v;
}
return true;
});
var _7ab=+_799[3];
if(amPm==="p"&&_7ab<12){
_799[3]=_7ab+12;
}else{
if(amPm==="a"&&_7ab==12){
_799[3]=0;
}
}
var _7ac=new Date(_799[0],_799[1],_799[2],_799[3],_799[4],_799[5],_799[6]);
if(_792.strict){
_7ac.setFullYear(_799[0]);
}
var _7ad=_794.join("");
if(!_79b||(_7ad.indexOf("M")!=-1&&_7ac.getMonth()!=_799[1])||(_7ad.indexOf("d")!=-1&&_7ac.getDate()!=_799[2])){
return null;
}
return _7ac;
};
function _processPattern(_7ae,_7af,_7b0,_7b1){
var _7b2=function(x){
return x;
};
_7af=_7af||_7b2;
_7b0=_7b0||_7b2;
_7b1=_7b1||_7b2;
var _7b4=_7ae.match(/(''|[^'])+/g);
var _7b5=_7ae.charAt(0)=="'";
dojo.forEach(_7b4,function(_7b6,i){
if(!_7b6){
_7b4[i]="";
}else{
_7b4[i]=(_7b5?_7b0:_7af)(_7b6);
_7b5=!_7b5;
}
});
return _7b1(_7b4.join(""));
};
function _buildDateTimeRE(_7b8,_7b9,_7ba,_7bb){
_7bb=dojo.regexp.escapeString(_7bb);
if(!_7ba.strict){
_7bb=_7bb.replace(" a"," ?a");
}
return _7bb.replace(/([a-z])\1*/ig,function(_7bc){
var s;
var c=_7bc.charAt(0);
var l=_7bc.length;
var p2="",p3="";
if(_7ba.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=_7ba.am||_7b9.am||"AM";
var pm=_7ba.pm||_7b9.pm||"PM";
if(_7ba.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(_7b8){
_7b8.push(_7bc);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _7c4=[];
dojo.date.locale.addCustomFormats=function(_7c5,_7c6){
_7c4.push({pkg:_7c5,name:_7c6});
};
dojo.date.locale._getGregorianBundle=function(_7c7){
var _7c8={};
dojo.forEach(_7c4,function(desc){
var _7ca=dojo.i18n.getLocalization(desc.pkg,desc.name,_7c7);
_7c8=dojo.mixin(_7c8,_7ca);
},this);
return _7c8;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(item,type,use,_7ce){
var _7cf;
var _7d0=dojo.date.locale._getGregorianBundle(_7ce);
var _7d1=[item,use,type];
if(use=="standAlone"){
var key=_7d1.join("-");
_7cf=_7d0[key];
if(_7cf[0]==1){
_7cf=undefined;
}
}
_7d1[1]="format";
return (_7cf||_7d0[_7d1.join("-")]).concat();
};
dojo.date.locale.isWeekend=function(_7d3,_7d4){
var _7d5=dojo.cldr.supplemental.getWeekend(_7d4);
var day=(_7d3||new Date()).getDay();
if(_7d5.end<_7d5.start){
_7d5.end+=7;
if(day<_7d5.start){
day+=7;
}
}
return day>=_7d5.start&&day<=_7d5.end;
};
dojo.date.locale._getDayOfYear=function(_7d7){
return dojo.date.difference(new Date(_7d7.getFullYear(),0,1,_7d7.getHours()),_7d7)+1;
};
dojo.date.locale._getWeekOfYear=function(_7d8,_7d9){
if(arguments.length==1){
_7d9=0;
}
var _7da=new Date(_7d8.getFullYear(),0,1).getDay();
var adj=(_7da-_7d9+7)%7;
var week=Math.floor((dojo.date.locale._getDayOfYear(_7d8)+adj-1)/7);
if(_7da==_7d9){
week++;
}
return week;
};
}
if(!dojo._hasResource["epages.localize"]){
dojo._hasResource["epages.localize"]=true;
dojo.provide("epages.localize");
epages.localize={formatNumber:function(_7dd,_7de){
if(_7de==null){
_7de=2;
}
var _7df=Math.pow(10,_7de);
var _7e0=Math.floor(Math.round(_7dd*_7df)/_7df);
var _7e1=Math.round(Math.abs(_7dd-_7e0)*_7df);
if(_7e1!=0){
return _7e0+epages.vars.Locale.decimalSep+_7e1;
}else{
return _7e0;
}
},formatBytes:function(_7e2,_7e3){
if(_7e3==null){
_7e3=2;
}
var unit="Byte";
if(_7e2>=1073741824){
_7e2/=1073741824;
unit="GB";
}else{
if(_7e2>=1048576){
_7e2/=1048576;
unit="MB";
}else{
if(_7e2>=1024){
_7e2/=1024;
unit="kB";
}
}
}
return epages.localize.formatNumber(_7e2,_7e3)+" "+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(_7e5){
if(_7e5==null){
_7e5=epages.vars.Locale.dateFormat;
}
if(this._patternCache.existsKey(_7e5)){
return this._patternCache.get(_7e5);
}
var _7e6=_7e5;
var _7e7=$A($A($H(epages.localize._patternMap).keys()).sort(function(a,b){
return b.length-a.length;
}));
_7e7.each(function(_7ea){
var rx=new RegExp(_7ea,"g");
_7e6=_7e6.replace(rx,function(){
return epages.localize._patternMap[_7ea];
});
});
return _7e6;
},formatDateTime:function(date,_7ed){
if(date==null){
return "";
}
if(_7ed==null){
_7ed=epages.vars.Locale.dateFormat;
}
var d=dojo.date.locale.format(date,{datePattern:this.getDojoDateTimePattern(_7ed),timePattern:" "});
return d.substring(0,d.length-2);
},parseDateTime:function(_7ef,_7f0){
if(_7f0==null){
_7f0=epages.vars.Locale.dateFormat;
}
return dojo.date.locale.parse("~ "+_7ef,{selector:"timeOnly",timePattern:this.getDojoDateTimePattern(_7f0),datePattern:"~"});
},parseNumber:function(_7f1){
_7f1=_7f1.replace(epages.vars.Locale.thousandSep,"");
_7f1=_7f1.replace(epages.vars.Locale.decimalSep,".");
return parseFloat(_7f1);
}};
}
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(_7f2,args){
var _7f4=args.xhr.status==404?{}:dojo.fromJson(args.xhr.responseText);
console.debug("epages.io.Json: error in request");
if(_7f4.Errors!==undefined){
dojo.publish("epages/interfaceerror",[{code:_7f4.Errors[0].Reason,message:_7f4.Errors[0].Message,guid:_7f4.Errors[0].GUID,vars:{url:args.url,status:args.xhr.status,response:_7f4}}]);
}
},loadSync:function(url,_7f6,_7f7){
var _7f8;
var _7f9=_7f6!==undefined?dojo.xhrPost:dojo.xhrGet;
var _7fa=this;
var opt={url:url,sync:true,preventCache:epages.constants.preventCache,error:function(_7fc,args){
_7f8={"error":{error:_7fc,args:args,data:dojo.fromJson(args.xhr.responseText)}};
if(_7f7!=null){
_7f7({"error":[_7fc,args]});
}else{
_7fa.defaultErrorCallback(_7fc,args);
}
},load:function(data,evt){
var _800=dojo.fromJson(data);
if(_800.Errors){
_7f8={"error":{data:_800}};
}else{
_7f8={"data":dojo.fromJson(data)};
}
}};
if(url.match(".(js|json)$")){
_7f9=dojo.xhrGet;
}else{
dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_7f6});
}
_7f9(opt);
return _7f8;
},loadAsync:function(url,_802,_803,_804){
var _805=_803!==undefined?dojo.xhrPost:dojo.xhrGet;
var _806=this;
var opt={url:url,error:function(_808,args){
var c=_804||_802;
var _80b=dojo.fromJson(args.xhr.responseText);
if(c){
c({"error":[_808,args],"data":(typeof _80b=="object")?dojo.fromJson(args.xhr.responseText):{}});
}else{
_806.defaultErrorCallback(_808,args);
}
},load:function(data){
if(_802!=null){
var _80d=dojo.fromJson(data);
if(_80d.Errors){
_802({"error":{data:_80d}});
}else{
_802({"data":dojo.fromJson(data)});
}
}
}};
if(url.match(".(js|json)$")){
_805=dojo.xhrGet;
}else{
dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_803});
}
_805(opt);
return;
}});
}
if(!dojo._hasResource["epages.format"]){
dojo._hasResource["epages.format"]=true;
dojo.provide("epages.format");
epages.format={slice:function(_80e,_80f){
if(_80e===undefined){
throw new Error("value not defined");
}
if(typeof _80e!="string"){
throw new Error("Not a string value!");
}
if(!_80f){
_80f=30;
}
var _810=_80e.length;
var _811=_80f<0?-_80f:_80f;
if(_810<_811){
return _80e;
}
if(_80f<0){
return "..."+_80e.substr((_810+_80f+3),(_811-3));
}
return _80e.substr(0,_80f-3)+"...";
},scrunch:function(_812,_813,_814){
if(_814===undefined){
_814=0.5;
}
if(_814<0||_814>1){
throw new Error("ratio value invalid only values from 0..1 allowed");
}
if(_812===undefined){
throw new Error("value not defined");
}
if(typeof _812!="string"){
throw new Error("Not a string value!");
}
if(!_813){
_813=30;
}
var _815=_813<0?-_813:_813;
var _816=_812.length;
if(_816<=_815){
return _812;
}
var _817=Math.floor((_813-3)*_814);
var _818=Math.floor((_813-3)*(1-_814));
var _819=_813-3-(_817+_818);
var _81a=_812.substr(0,_817);
var _81b=_812.substr(Math.max(0,_816-_818-_819),_816);
return _81a+"..."+_81b;
}};
}
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 _81d=dojo.getComputedStyle(document.images[i]);
with(document.images[i].style){
zoom="1";
width=document.images[i].offsetWidth||this.minImageSize+"px";
height=document.images[i].offsetHeight||this.minImageSize+"px";
if(_81d.margin=="0px"){
margin=_81d.padding;
}
filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+document.images[i].src+", sizingMethod='image')";
}
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='image')";
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,_fixSelectElements:function(){
if(epages.Browser.engine=="MSIE"){
dojo.connect(dojo.body(),"mousedown",this,function(evt){
if(!evt.target.disabled){
var _820=epages.cssfix.pseudoclasses._lastSelectSelected;
if(_820&&evt.target.tagName!="SELECT"&&!evt.target.className.match("SelectCropper")){
_820.parentNode.removeAttribute("focused");
dojo.removeClass(_820.parentNode,"focused");
epages.cssfix.pseudoclasses._lastSelectSelected=null;
}
if(evt.target.tagName=="SELECT"){
var _821=epages.cssfix.pseudoclasses._lastSelectSelected;
if(_821){
_821.parentNode.removeAttribute("focused");
dojo.removeClass(_821.parentNode,"focused");
}
evt.target.parentNode.setAttribute("focused","");
dojo.addClass(evt.target.parentNode,"focused");
epages.cssfix.pseudoclasses._lastSelectSelected=evt.target;
}
}
});
}
},_registerFocus:function(){
var _822=dojo.query("input").concat(dojo.query("textarea")).concat(dojo.query("select")).concat(dojo.query(this.focusTriggerClasses[0]));
for(var i=0;i<_822.length;i++){
if(!_822[i].focusHandle){
_822[i].focusHandle=true;
dojo.connect(_822[i],"focus",this,function(evt){
evt.currentTarget.setAttribute("focused","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(evt.currentTarget,"focused");
}
});
dojo.connect(_822[i],"blur",this,function(evt){
evt.currentTarget.removeAttribute("focused");
if(epages.Browser.engine=="MSIE"){
dojo.removeClass(evt.currentTarget,"focused");
}
});
}
}
},_removeActive:function(evt){
evt.currentTarget.removeAttribute("activated","");
if(epages.Browser.engine=="MSIE"){
dojo.removeClass(evt.currentTarget,"activated");
}
},update:function(){
if(this.lastHoveredNode){
var _827=this.lastHoveredNode;
for(var i=0;i<this.NODEDEPTH;i++){
if(_827){
var _829=_827.className||"";
var _82a=false;
for(var z=0;z<this.hoverTriggerClasses.length;z++){
if(_829.match(this.hoverTriggerClasses[z])){
_82a=true;
}
}
if((_82a||(_827.parentNode&&_827.parentNode.parentNode&&_827.parentNode.parentNode.className&&_827.parentNode.parentNode.className.match("ContentList")&&_827.tagName=="TR")||_827.tagName=="A"||_827.tagName=="INPUT"||_827.tagName=="TEXTAREA"||_827.tagName=="SELECT")&&!_827.disabled){
if(!_827.isHovered){
this.currentHoveredNodes.push(_827);
_827.setAttribute("hovered","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(_827,"hovered");
}
}
_827.isHovered=true;
_827.removeHover=false;
}
var _82c=false;
for(var z=0;z<this.activeTriggerClasses.length;z++){
if(_829.match(this.activeTriggerClasses[z])){
_82c=true;
}
}
if(_82c||_827.tagName=="A"&&!_827.activeHandle){
_827.activeHandle=true;
dojo.connect(_827,"mousedown",this,function(evt){
evt.currentTarget.setAttribute("activated","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(evt.currentTarget,"activated");
}
});
dojo.connect(_827,"mouseup",this,"_removeActive");
dojo.connect(_827,"mouseleave",this,"_removeActive");
}
if(_827.tagName!="BODY"&&_827.tagName!="HTML"){
_827=_827.parentNode;
}else{
break;
}
}
}
var _82e=[];
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{
_82e.push(this.currentHoveredNodes[i]);
}
this.currentHoveredNodes[i].removeHover=true;
}
this.currentHoveredNodes=_82e;
}
this._registerFocus();
},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.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);
}));
}
}},init:function(){
this.png.init();
this.pseudoclasses.init();
this.updatestyles.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(_832){
var _833=this.domNode.selectedIndex;
var _834=this.domNode.cloneNode(true);
var _835=document.createElement("span");
_835.className=_832+" EnableActive EnableHover "+(this.domNode.disabled?"Disabled":"")+(this.domNode.size?"Sized":"");
_835.appendChild(_834);
this.domNode.parentNode.replaceChild(_835,this.domNode);
this.domNode=_835;
this.elementNode=this.domNode.getElementsByTagName("*")[0];
if(_833){
this.elementNode.selectedIndex=_833;
}
},_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 _836=document.createElement("input");
_836.type="submit";
_836.className="HideElement";
this.form.appendChild(_836);
_836.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 _839=this._groupElements;
for(var i=0;i<_839.length;i++){
if((_839[i].checked==true||_839[i].checked=="checked")&&_839[i].className.match("Checked")){
_839[i].checked=false;
dojo.removeClass(_839[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 _83c=dojo.query(".Button",evt.currentTarget.parentNode.parentNode)[0];
_83c.setAttribute("hovered","");
dojo.addClass(_83c,"hovered");
});
dojo.connect(this.elementNode,"mouseout",this,function(evt){
var _83e=dojo.query(".Button",evt.currentTarget.parentNode.parentNode)[0];
_83e.removeAttribute("hovered","");
dojo.removeClass(_83e,"hovered");
});
dojo.connect(this.elementNode,"change",this,function(evt){
var _840=dojo.query("input[type=text]",evt.currentTarget.parentNode.parentNode)[0];
_840.value=evt.currentTarget.value;
});
}
}
}
}
}
}
}
this._checkStatus();
},_updateCheckbox:function(evt){
var _842=evt.target.getElementsByTagName("input")[0];
if(_842){
epages.event.fire(_842,"click");
if(epages.Browser.engine=="MSIE"){
_842.checked=!_842.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 _845=this._groupElements;
for(var i=0;i<_845.length;i++){
if(!(_845[i].checked==true||_845[i].checked=="checked")){
dojo.removeClass(_845[i],"Checked");
}
}
}
if(this.elementNode.checked){
dojo.addClass(this.domNode,"Checked");
}else{
dojo.removeClass(this.domNode,"Checked");
}
}
},setChecked:function(_847){
if(this.elementNode.className.match("Radio")){
if(_847){
var _848=dojo.query("input[name="+this.elementNode.name+"].Radio");
for(var i=0;i<_848.length;i++){
_848[i].checked=false;
}
this.elementNode.checked=true;
epages.event.fire(this.elementNode,"change");
}
}else{
this.elementNode.checked=_847;
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 _84b=evt.currentTarget;
if(_84b.getAttribute("description")&&_84b.getAttribute("description").length>1){
if(this._formDescriptionLayer){
var _84c=this._formDescriptionLayer;
_84c.className=_84c.className.replace(/HideElement/,"");
if(_84c.offsetWidth>300){
_84c.style.width="300px";
}
dojo.fadeIn({node:_84c,duration:200}).play();
}else{
var _84d=$E(this.domNode).getAbsolutePosition();
this._formDescriptionLayer=document.createElement("div");
var _84e=document.createElement("div");
_84e.className="TooltipShadow";
with(this._formDescriptionLayer){
innerHTML=unescape(_84b.getAttribute("description")).replace(/&lt;/g,"<").replace(/&gt;/g,">");
className="Tooltip HideElement Wide";
onselectstart=function(){
return false;
};
style.MozUserSelect="none";
style.WebkitUserSelect="ignore";
style.left=(_84d.x+this.domNode.offsetWidth+2)+"px";
style.top=_84d.y+"px";
style.display="block";
appendChild(_84e);
}
dojo.style(this._formDescriptionLayer,"opacity",0);
dojo.body().appendChild(this._formDescriptionLayer);
this._showDescription(evt);
}
}
},_hideDescription:function(evt){
if(this._formDescriptionLayer){
var _850=this._formDescriptionLayer;
dojo.fadeOut({node:_850,duration:200}).play();
setTimeout(function(){
_850.className+=" HideElement";
},200);
}
},_highlightChanges:function(){
var _851=this.elementNode;
if(_851.tagName=="SELECT"&&epages.Browser.engine=="MSIE"){
_851=this.domNode;
}
switch(this.inputType){
case "text":
if(_851.startupValue!=_851.value){
dojo.addClass(_851,"Changed");
}else{
dojo.removeClass(_851,"Changed");
}
if(_851.className.match("Mandatory")&&_851.value.length<1){
dojo.addClass(_851,"Unfilled");
}else{
dojo.removeClass(_851,"Unfilled");
}
break;
case "select":
if(epages.Browser.engine=="MSIE"){
_851=this.domNode;
}
if(this.elementNode.startupIndex!=this.elementNode.selectedIndex){
dojo.addClass(_851,"Changed");
}else{
dojo.removeClass(_851,"Changed");
}
break;
case "radio":
break;
case "checkbox":
break;
case "file":
_851=this.domNode.firstChild;
if(_851.value.length>1){
dojo.addClass(_851,"Changed");
}else{
dojo.removeClass(_851,"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"]);
