if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;
dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";
dojo.dnd.getCopyKeyState=function(e){
return e[dojo.dnd._copyKey];
};
dojo.dnd._uniqueId=0;
dojo.dnd.getUniqueId=function(){
var id;
do{
id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);
}while(dojo.byId(id));
return id;
};
dojo.dnd._empty={};
dojo.dnd.isFormElement=function(e){
var t=e.target;
if(t.nodeType==3){
t=t.parentNode;
}
return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;
};
}
if(!dojo._hasResource["dojo.dnd.autoscroll"]){
dojo._hasResource["dojo.dnd.autoscroll"]=true;
dojo.provide("dojo.dnd.autoscroll");
dojo.dnd.getViewport=function(){
var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();
if(dojo.isMozilla){
return {w:dd.clientWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&w.innerWidth){
return {w:w.innerWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&dd&&dd.clientWidth){
return {w:dd.clientWidth,h:dd.clientHeight};
}else{
if(b.clientWidth){
return {w:b.clientWidth,h:b.clientHeight};
}
}
}
}
return null;
};
dojo.dnd.V_TRIGGER_AUTOSCROLL=32;
dojo.dnd.H_TRIGGER_AUTOSCROLL=32;
dojo.dnd.V_AUTOSCROLL_VALUE=16;
dojo.dnd.H_AUTOSCROLL_VALUE=16;
dojo.dnd.autoScroll=function(e){
var v=dojo.dnd.getViewport(),dx=0,dy=0;
if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
window.scrollBy(dx,dy);
};
dojo.dnd._validNodes={"div":1,"p":1,"td":1};
dojo.dnd._validOverflow={"auto":1,"scroll":1};
dojo.dnd.autoScrollNodes=function(e){
for(var n=e.target;n;){
if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
var s=dojo.getComputedStyle(n);
if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
if(dojo.isSafari||dojo.isOpera){
rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;
}
if(rx>0&&rx<b.w){
if(rx<w){
dx=-w;
}else{
if(rx>b.w-w){
dx=w;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-h;
}else{
if(ry>b.h-h){
dy=h;
}
}
}
var _18=n.scrollLeft,_19=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_18!=n.scrollLeft||_19!=n.scrollTop){
return;
}
}
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
dojo.dnd.autoScroll(e);
};
}
if(!dojo._hasResource["dojo.dnd.Mover"]){
dojo._hasResource["dojo.dnd.Mover"]=true;
dojo.provide("dojo.dnd.Mover");
dojo.declare("dojo.dnd.Mover",null,{constructor:function(_1a,e,_1c){
this.node=dojo.byId(_1a);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=_1c,d=_1a.ownerDocument,_1f=dojo.connect(d,"onmousemove",this,"onFirstMove");
this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_1f];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox;
this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
dojo.stopEvent(e);
},onMouseUp:function(e){
if(dojo.isSafari&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
this.destroy();
}
dojo.stopEvent(e);
},onFirstMove:function(){
var s=this.node.style,l,t,h=this.host;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left));
t=Math.round(parseFloat(s.top));
break;
default:
s.position="absolute";
var m=dojo.marginBox(this.node);
var b=dojo.doc.body;
var bs=dojo.getComputedStyle(b);
var bm=dojo._getMarginBox(b,bs);
var bc=dojo._getContentBox(b,bs);
l=m.l-(bc.l-bm.l);
t=m.t-(bc.t-bm.t);
break;
}
this.marginBox.l=l-this.marginBox.l;
this.marginBox.t=t-this.marginBox.t;
if(h&&h.onFirstMove){
h.onFirstMove(this);
}
dojo.disconnect(this.events.pop());
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
var h=this.host;
if(h&&h.onMoveStop){
h.onMoveStop(this);
}
this.events=this.node=this.host=null;
}});
}
if(!dojo._hasResource["dojo.dnd.Moveable"]){
dojo._hasResource["dojo.dnd.Moveable"]=true;
dojo.provide("dojo.dnd.Moveable");
dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_2d,_2e){
this.node=dojo.byId(_2d);
if(!_2e){
_2e={};
}
this.handle=_2e.handle?dojo.byId(_2e.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_2e.delay>0?_2e.delay:0;
this.skip=_2e.skip;
this.mover=_2e.mover?_2e.mover:dojo.dnd.Mover;
this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];
},markupFactory:function(_2f,_30){
return new dojo.dnd.Moveable(_30,_2f);
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
this.events=this.node=this.handle=null;
},onMouseDown:function(e){
if(this.skip&&dojo.dnd.isFormElement(e)){
return;
}
if(this.delay){
this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));
this._lastX=e.pageX;
this._lastY=e.pageY;
}else{
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseMove:function(e){
if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){
this.onMouseUp(e);
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseUp:function(e){
for(var i=0;i<2;++i){
dojo.disconnect(this.events.pop());
}
dojo.stopEvent(e);
},onSelectStart:function(e){
if(!this.skip||!dojo.dnd.isFormElement(e)){
dojo.stopEvent(e);
}
},onDragDetected:function(e){
new this.mover(this.node,e,this);
},onMoveStart:function(_37){
dojo.publish("/dnd/move/start",[_37]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_38){
dojo.publish("/dnd/move/stop",[_38]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_39){
},onMove:function(_3a,_3b){
this.onMoving(_3a,_3b);
var s=_3a.node.style;
s.left=_3b.l+"px";
s.top=_3b.t+"px";
this.onMoved(_3a,_3b);
},onMoving:function(_3d,_3e){
},onMoved:function(_3f,_40){
}});
}
if(!dojo._hasResource["dojo.dnd.move"]){
dojo._hasResource["dojo.dnd.move"]=true;
dojo.provide("dojo.dnd.move");
dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){
},within:false,markupFactory:function(_41,_42){
return new dojo.dnd.move.constrainedMoveable(_42,_41);
},constructor:function(_43,_44){
if(!_44){
_44={};
}
this.constraints=_44.constraints;
this.within=_44.within;
},onFirstMove:function(_45){
var c=this.constraintBox=this.constraints.call(this,_45);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_45.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_48,_49){
var c=this.constraintBox,s=_48.node.style;
s.left=(_49.l<c.l?c.l:c.r<_49.l?c.r:_49.l)+"px";
s.top=(_49.t<c.t?c.t:c.b<_49.t?c.b:_49.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_4c,_4d){
return new dojo.dnd.move.boxConstrainedMoveable(_4d,_4c);
},constructor:function(_4e,_4f){
var box=_4f&&_4f.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_51,_52){
return new dojo.dnd.move.parentConstrainedMoveable(_52,_51);
},constructor:function(_53,_54){
var _55=_54&&_54.area;
this.constraints=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_55=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_55=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_55=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
}});
dojo.dnd.move.constrainedMover=function(fun,_5b){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _5c=function(_5d,e,_5f){
dojo.dnd.Mover.call(this,_5d,e,_5f);
};
dojo.extend(_5c,dojo.dnd.Mover.prototype);
dojo.extend(_5c,{onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;
l=l<c.l?c.l:c.r<l?c.r:l;
t=t<c.t?c.t:c.b<t?c.b:t;
this.host.onMove(this,{l:l,t:t});
},onFirstMove:function(){
dojo.dnd.Mover.prototype.onFirstMove.call(this);
var c=this.constraintBox=fun.call(this);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(_5b){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _5c;
};
dojo.dnd.move.boxConstrainedMover=function(box,_68){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_68);
};
dojo.dnd.move.parentConstrainedMover=function(_69,_6a){
dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");
var fun=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_69=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_69=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_69=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
return dojo.dnd.move.constrainedMover(fun,_6a);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _70=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_71,_72){
if(!_72){
_72={};
}
if(_72.timeout&&typeof _72.timeout=="number"&&_72.timeout>=0){
this.timeout=_72.timeout;
}
},markupFactory:function(_73,_74){
return new dojo.dnd.TimedMoveable(_74,_73);
},onMoveStop:function(_75){
if(_75._timer){
clearTimeout(_75._timer);
_70.call(this,_75,_75._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_76,_77){
_76._leftTop=_77;
if(!_76._timer){
var _t=this;
_76._timer=setTimeout(function(){
_76._timer=null;
_70.call(_t,_76,_76._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["epages._workaround"]){
dojo._hasResource["epages._workaround"]=true;
dojo.provide("epages._workaround");
epages._workaround.load=function(_79){
if(_79=="epages.widget.Calendar"&&dojo.version.revision=="11832"){
dijit.placeOnScreenAroundElement=function(_7a,_7b,_7c,_7d){
_7b=dojo.byId(_7b);
var _7e=_7b.style.display;
_7b.style.display="";
var _7f=_7b.offsetWidth;
var _80=_7b.offsetHeight;
var _81=dojo.coords(_7b,true);
_7b.style.display=_7e;
var _82=[];
for(var _83 in _7c){
_82.push({aroundCorner:_83,corner:_7c[_83],pos:{x:_81.x+(_83.charAt(1)=="L"?0:_7f),y:_81.y+(_83.charAt(0)=="T"?0:_80)}});
}
if(_82.length==2&&_82[0].aroundCorner=="BR"&&_82[0].corner=="TR"&&_82[1].aroundCorner=="BL"&&_82[1].corner=="TL"){
_82=_82.reverse();
}
return dijit._place(_7a,_82,_7d);
};
}
if(_79=="dijit.Tree"&&dojo.version.revision=="15997"){
dojo.connect(dijit._TreeNode.prototype,"expand",function(){
dojo.publish(this.tree.id+"/nodeexpand",[this]);
});
}else{
if(_79=="dojo.cldr.supplemental"){
dojo.cldr.supplemental.getFirstDayOfWeek=function(_84){
if(dojo.i18n.normalizeLocale(_84)==djConfig.locale){
return epages.vars.Locale.firstDayOfWeek;
}
var _85={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,gb:0,sy:4};
var _86=dojo.cldr.supplemental._region(_84);
var dow=_85[_86];
return (typeof dow=="undefined")?1:dow;
};
}else{
if(_79=="dijit.Dialog"){
dijit.Dialog.prototype._onKey=function(evt){
if(evt.keyCode){
var _89=evt.target;
if(_89==this.titleBar&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){
if(this._lastFocusItem){
this._lastFocusItem.focus();
}
dojo.stopEvent(evt);
}else{
while(_89){
if(_89==this.domNode){
if(evt.keyCode==dojo.keys.ESCAPE){
this.hide();
}else{
return;
}
}
_89=_89.parentNode;
}
if(evt.keyCode!=dojo.keys.TAB){
}else{
if(!dojo.isOpera){
try{
this.titleBar.focus();
}
catch(e){
}
}
}
}
}
};
}
}
}
if(_79=="dijit._Widget"&&dojo.version.revision=="15997"){
dijit._Widget.prototype._deferredConnects={};
}
};
dojo.connect(dojo,"require",epages._workaround,"load");
}
if(!dojo._hasResource["epages.epages"]){
dojo._hasResource["epages.epages"]=true;
dojo.provide("epages.epages");
window.parentDojo=undefined;
window.restrictedParent=undefined;
try{
window.parentDojo=parent.dojo?parent.dojo:undefined;
if(parent!=self&&!parent.dojo){
window.restrictedParent=true;
dojo._global_omit_module_check=true;
}
}
catch(ex){
window.restrictedParent=true;
}
if(parent!=self&&window.parentDojo!==undefined){
parent.epages._windows.push(window);
for(var i=0;i<parent.epages.onIframeStart.length;i++){
parent.epages.onIframeStart[i](parent,window);
}
if(epages.NavBars==undefined){
epages.NavBars={};
}
epages.NavBars=parent.epages.NavBars;
}
dojo.subscribe("epages/addGlobalSymbol",function(gvn,win){
if(win===undefined){
console.warn("no target window for addGlobalSymbol");
return;
}
if(win[gvn]!=null){
return;
}
if(window.parentDojo){
win[gvn]=parent[gvn];
}
});
var d=(parent!=self&&window.parentDojo!==undefined)?window.parentDojo:dojo;
dojo.mixin(epages,{onIframeStart:[],onUnloadFunctions:[],topDojo:(parent!=self&&window.parentDojo!==undefined)?window.parentDojo:dojo,topWindow:parent,version:"6.0.6",constants:{preventCache:false,doFlashForward:true},theme:{name:"epages",url:dojo.moduleUrl("dijit.themes","epages")},_windows:[window],_gvs:{},zIndex:100,flashForward:function(){
return epages.constants.doFlashForward;
},setTheme:function(_8c){
var _8d=dojo.body();
var old=epages.theme.name;
if(_8d){
dojo.removeClass(_8d,epages.theme.name);
}else{
dojo.addOnLoad(function(){
var _8f=dojo.body();
if(_8f){
dojo.removeClass(_8f,epages.theme.name);
dojo.addClass(_8f,_8c);
}
});
}
epages.theme.name=_8c;
epages.theme.url=dojo.moduleUrl("dijit.themes",_8c);
if(_8d){
dojo.addClass(_8d,_8c);
}
},themeUrl:function(_90){
return epages.theme.url+"/"+_90;
},reload:function(){
window.location.hash+="0";
var url=window.location.href;
window.location.href=url.substring(0,url.indexOf("#"));
},locationHref:function(uri){
window.location.href=uri.substr(0,1)=="?"?epages.vars.BaseUrl+uri:uri;
},setFormAction:function(_93,_94){
_93.action=_94.substr(0,1)=="?"?epages.vars.BaseUrl+_94:_94;
},locationWebRoot:function(uri){
return window.location.protocol+"//"+window.location.host+uri;
},Class:function(){
return function(){
this.initialize.apply(this,arguments);
};
},changeSampleText:function(_96,_97){
if(!_96){
_96="";
}
sampletags=document.getElementsByTagName("samp");
for(i=0;i<sampletags.length;i++){
if(sampletags[i].getAttribute("title")==_97){
if(sampletags[i].firstChild){
sampletags[i].firstChild.data=_96;
}else{
mydata=document.createTextNode(_96);
sampletags[i].appendChild(mydata);
}
}
}
},toggleNodes:function(_98,_99,_9a){
if(typeof _98=="string"){
if(typeof _9a=="undefined"){
_9a=document;
}
if(typeof _9a=="string"){
_9a=document.getElementById(_9a);
}
var _9b=_9a.getElementsByTagName("*");
for(var i=0;i<_9b.length;i++){
if(_9b[i].attributes){
if(_9b[i].attributes["class"]){
if(_9b[i].attributes["class"].nodeValue.indexOf(_98)>-1){
with(_9b[i].style){
if(_99){
if(_9b[i].className.match(/HideNode/)){
_9b[i].className=_9b[i].className.replace(/HideNode/,"ShowNode");
}else{
if(_9b[i].className.match(/ShowNode/)){
_9b[i].className=_9b[i].className.replace(/ShowNode/,"HideNode");
}else{
if(display=="none"){
display="";
}else{
if(display!="none"){
display="none";
}
}
}
}
if(_9b[i].className.match(/HideElement/)){
_9b[i].className=_9b[i].className.replace(/HideElement/,"ShowElement");
}
}else{
if(visibility=="hidden"){
visibility="visible";
if(display=="none"){
display="";
}
_9b[i].className=_9b[i].className.replace(/HideNode/,"ShowNode");
_9b[i].className=_9b[i].className.replace(/HideElement/,"ShowElement");
}else{
visibility="hidden";
}
}
}
}
}
}
}
}
},changeDelimiter:function(_9d,_9e){
switch(_9d){
case ",":
document.getElementById(_9e).options[0].selected="selected";
break;
case ";":
document.getElementById(_9e).options[1].selected="selected";
break;
default:
document.getElementById(_9e).options[2].selected="selected";
break;
}
},toggleLink:function(_9f){
if(document.getElementsByName(_9f)[0].className=="ShowLink"){
document.getElementsByName(_9f)[0].className="HideLink";
}else{
document.getElementsByName(_9f)[0].className="ShowLink";
}
},toggleExtender:function(_a0){
splittedFilename=_a0.src.split("/");
lastItemNo=splittedFilename.length-1;
lastItem=splittedFilename[lastItemNo];
if(lastItem=="toolbar_ico_s_extend.png"){
splittedFilename[lastItemNo]="toolbar_ico_s_extend_open.png";
}else{
splittedFilename[lastItemNo]="toolbar_ico_s_extend.png";
}
_a0.src=splittedFilename.join("/");
},getDocumentWindow:function(doc){
return (doc.parentWindow)?doc.parentWindow:doc.defaultView;
},getIframeWrapperUrl:function(url,_a3){
var src="?iframeUrl="+encodeURIComponent(url);
if(_a3){
src+="&charset="+encodeURIComponent(_a3);
}
return dojo.moduleUrl("epages","iframe_wrapper.html")+src;
},require:function(_a5,_a6){
if(!_a5){
return;
}
if(epages.vars.DebugLevel&&epages.vars.DebugLevel==1){
_a5+=".js.uncompressed";
}
if(_a6){
if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){
return dojo["require"](_a6);
}
var _a7=dojo._loadedModules[_a6];
if(_a7){
return _a7;
}
epages.vars.currentRequiredModul=_a6;
dojo.xhrGet({url:StoreRoot+"/javascript/build/epages/"+_a5+".js",sync:true,load:function(_a8){
eval(_a8);
},error:function(_a9){
dojo["require"](epages.vars.currentRequiredModul);
},mimetype:"text/plain"});
_a7=dojo._loadedModules[_a6];
epages.vars.currentRequiredModul=undefined;
return _a7;
}else{
if(epages.vars.DebugLevel&&epages.vars.DebugLevel==2){
return;
}
dojo.xhrGet({url:StoreRoot+"/javascript/build/epages/"+_a5+".js",sync:true,load:function(_aa){
eval(_aa);
},mimetype:"text/plain"});
return;
}
}});
if(epages.vars===undefined){
epages.vars={Locale:{}};
}
dojo.mixin(epages.vars.Locale,{alias:"de_DE",language:"de",languageId:"",decimalSep:",",thousandSep:".",dateFormat:"%d.%m.%{ce_year}",datetimeFormat:"%d.%m.%y %H:%M",timeFormat:"%H:%M",minDaysFirstWeek:4,firstDayOfWeek:0});
dojo.addOnLoad(function(){
epages.setTheme(epages.theme.name);
});
dojo["require"]("epages._workaround");
$=dojo.byId;
dojo.addOnLoad(function(){
if(top==self){
epages.vars.dojoUnloadStuff=window.onbeforeunload;
window.onbeforeunload=function(){
var l=false;
var d=dojo;
d.forEach(epages.onUnloadFunctions,function(el){
l|=el();
});
if(l){
d.require("epages.io.translation");
return epages.io.dictionary.get("LoseChanges");
}else{
dojo["require"]("epages.browser");
if(epages.Browser.engine=="MSIE"&&epages.Browser.version>6){
document.getElementsByTagName("body")[0].className+=" SuspendUserInteraction";
setTimeout(function(){
dojo.removeClass(document.getElementsByTagName("body")[0],"SuspendUserInteraction");
},2000);
window.onunload=function(){
if(epages.vars.dojoUnloadStuff){
epages.vars.dojoUnloadStuff();
}
if(window.CollectGarbage){
window.CollectGarbage();
}
};
}
}
return;
};
}
});
window.console=window.console||{};
window.console.debug=window.console.debug||function(){
return;
};
window.console.warn=window.console.warn||function(){
return;
};
}
if(!dojo._hasResource["epages.preload"]){
dojo._hasResource["epages.preload"]=true;
dojo.provide("epages.preload");
epages.Preload={start:function(){
this.stopped=false;
this._preloadFiles();
},stop:function(){
this.stopped=true;
},add:function(_ae){
if(_ae.file&&_ae.priority){
var _af=false;
for(var i=0;i<this.files.length;i++){
if(this.files[i].file==_ae.file){
_af=true;
break;
}
}
if(!_af){
this.files.push(_ae);
}
}
},stopped:false,_preloadFiles:function(){
if(!this.stopped&&this.files.length>0){
this.nextPreloadFile=this.files[0];
for(var i=0;i<this.files.length;i++){
if(this.files[i].priority>=this.nextPreloadFile.priority){
this.nextPreloadFile=this.files[i];
}
}
if(this.nextPreloadFile.priority!=-1){
this.nextPreloadFile.priority=-1;
dojo.xhrGet({url:this.nextPreloadFile.file,sync:false,load:function(){
epages.Preload._preloadFiles();
if(djConfig.isDebug){
console.debug("epages.Preload loaded : ",epages.Preload.nextPreloadFile.file);
}
},error:function(){
epages.Preload._preloadFiles();
if(djConfig.isDebug){
console.warn("epages.Preload could not load : ",epages.Preload.nextPreloadFile.file);
}
}});
}else{
setTimeout(function(){
epages.Preload._preloadFiles();
},500);
}
}
},files:[],nextPreloadFile:undefined};
dojo.addOnLoad(function(){
if(epages.vars.BusyLayerActive){
dojo.subscribe("uimessage/stopBusy",function(_b2,_b3,_b4){
setTimeout(function(){
epages.Preload.start();
},_b3);
});
}else{
setTimeout(function(){
epages.Preload.start();
},100);
}
});
}
if(!dojo._hasResource["dijit._base.focus"]){
dojo._hasResource["dijit._base.focus"]=true;
dojo.provide("dijit._base.focus");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){
var _b5=dojo.doc;
if(_b5.selection){
var s=_b5.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _b7=dojo.global;
var _b8=_b7.getSelection();
if(dojo.isString(_b8)){
return !_b8;
}else{
return _b8.isCollapsed||!_b8.toString();
}
}
},getBookmark:function(){
var _b9,_ba=dojo.doc.selection;
if(_ba){
var _bb=_ba.createRange();
if(_ba.type.toUpperCase()=="CONTROL"){
if(_bb.length){
_b9=[];
var i=0,len=_bb.length;
while(i<len){
_b9.push(_bb.item(i++));
}
}else{
_b9=null;
}
}else{
_b9=_bb.getBookmark();
}
}else{
if(window.getSelection){
_ba=dojo.global.getSelection();
if(_ba){
_bb=_ba.getRangeAt(0);
_b9=_bb.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _b9;
},moveToBookmark:function(_be){
var _bf=dojo.doc;
if(_bf.selection){
var _c0;
if(dojo.isArray(_be)){
_c0=_bf.body.createControlRange();
dojo.forEach(_be,function(n){
_c0.addElement(n);
});
}else{
_c0=_bf.selection.createRange();
_c0.moveToBookmark(_be);
}
_c0.select();
}else{
var _c2=dojo.global.getSelection&&dojo.global.getSelection();
if(_c2&&_c2.removeAllRanges){
_c2.removeAllRanges();
_c2.addRange(_be);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(_c3,_c4){
return {node:_c3&&dojo.isDescendant(dijit._curFocus,_c3.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_c4||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_c4||dojo.global,dijit.getBookmark):null,openedForWindow:_c4};
},focus:function(_c5){
if(!_c5){
return;
}
var _c6="node" in _c5?_c5.node:_c5,_c7=_c5.bookmark,_c8=_c5.openedForWindow;
if(_c6){
var _c9=(_c6.tagName.toLowerCase()=="iframe")?_c6.contentWindow:_c6;
if(_c9&&_c9.focus){
try{
_c9.focus();
}
catch(e){
}
}
dijit._onFocusNode(_c6);
}
if(_c7&&dojo.withGlobal(_c8||dojo.global,dijit.isCollapsed)){
if(_c8){
_c8.focus();
}
try{
dojo.withGlobal(_c8||dojo.global,dijit.moveToBookmark,null,[_c7]);
}
catch(e){
}
}
},_activeStack:[],registerWin:function(_ca){
if(!_ca){
_ca=window;
}
dojo.connect(_ca.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(evt.target||evt.srcElement);
});
var doc=_ca.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(evt.target);
},true);
}
}
doc=null;
},_onBlurNode:function(_d1){
dijit._prevFocus=dijit._curFocus;
dijit._curFocus=null;
if(dijit._justMouseDowned){
return;
}
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
}
dijit._clearActiveWidgetsTimer=setTimeout(function(){
delete dijit._clearActiveWidgetsTimer;
dijit._setStack([]);
dijit._prevFocus=null;
},100);
},_onTouchNode:function(_d2){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _d3=[];
try{
while(_d2){
if(_d2.dijitPopupParent){
_d2=dijit.byId(_d2.dijitPopupParent).domNode;
}else{
if(_d2.tagName&&_d2.tagName.toLowerCase()=="body"){
if(_d2===dojo.body()){
break;
}
_d2=dijit.getDocumentWindow(_d2.ownerDocument).frameElement;
}else{
var id=_d2.getAttribute&&_d2.getAttribute("widgetId");
if(id){
_d3.unshift(id);
}
_d2=_d2.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_d3);
},_onFocusNode:function(_d5){
if(!_d5){
return;
}
if(_d5.nodeType==9){
return;
}
if(_d5.nodeType==9){
var _d6=dijit.getDocumentWindow(_d5).frameElement;
if(!_d6){
return;
}
_d5=_d6;
}
dijit._onTouchNode(_d5);
if(_d5==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_d5;
dojo.publish("focusNode",[_d5]);
},_setStack:function(_d7){
var _d8=dijit._activeStack;
dijit._activeStack=_d7;
for(var _d9=0;_d9<Math.min(_d8.length,_d7.length);_d9++){
if(_d8[_d9]!=_d7[_d9]){
break;
}
}
for(var i=_d8.length-1;i>=_d9;i--){
var _db=dijit.byId(_d8[i]);
if(_db){
_db._focused=false;
_db._hasBeenBlurred=true;
if(_db._onBlur){
_db._onBlur();
}
if(_db._setStateClass){
_db._setStateClass();
}
dojo.publish("widgetBlur",[_db]);
}
}
for(i=_d9;i<_d7.length;i++){
_db=dijit.byId(_d7[i]);
if(_db){
_db._focused=true;
if(_db._onFocus){
_db._onFocus();
}
if(_db._setStateClass){
_db._setStateClass();
}
dojo.publish("widgetFocus",[_db]);
}
}
}});
dojo.addOnLoad(dijit.registerWin);
}
if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){
this._hash={};
},add:function(_dc){
if(this._hash[_dc.id]){
throw new Error("Tried to register widget with id=="+_dc.id+" but that id is already registered");
}
this._hash[_dc.id]=_dc;
},remove:function(id){
delete this._hash[id];
},forEach:function(_de){
for(var id in this._hash){
_de(this._hash[id]);
}
},filter:function(_e0){
var res=new dijit.WidgetSet();
this.forEach(function(_e2){
if(_e0(_e2)){
res.add(_e2);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_e5){
return _e5.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_e6){
var id;
do{
id=_e6+"_"+(_e6 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_e6]:dijit._widgetTypeCtr[_e6]=0);
}while(dijit.byId(id));
return id;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.registry.forEach(function(_e8){
_e8.destroy();
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(_ea){
return dijit.registry.byId(_ea.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(_eb){
while(_eb){
if(_eb.getAttribute&&_eb.getAttribute("widgetId")){
return dijit.registry.byId(_eb.getAttribute("widgetId"));
}
_eb=_eb.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(_ec){
var _ed=dojo.style(_ec);
return (_ed.visibility!="hidden")&&(_ed.visibility!="collapsed")&&(_ed.display!="none")&&(dojo.attr(_ec,"type")!="hidden");
};
dijit.isTabNavigable=function(_ee){
if(dojo.hasAttr(_ee,"disabled")){
return false;
}
var _ef=dojo.hasAttr(_ee,"tabindex");
var _f0=dojo.attr(_ee,"tabindex");
if(_ef&&_f0>=0){
return true;
}
var _f1=_ee.nodeName.toLowerCase();
if(((_f1=="a"&&dojo.hasAttr(_ee,"href"))||dijit._tabElements[_f1])&&(!_ef||_f0>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(_f2){
var _f3,_f4,_f5,_f6,_f7,_f8;
var _f9=function(_fa){
dojo.query("> *",_fa).forEach(function(_fb){
var _fc=dijit._isElementShown(_fb);
if(_fc&&dijit.isTabNavigable(_fb)){
var _fd=dojo.attr(_fb,"tabindex");
if(!dojo.hasAttr(_fb,"tabindex")||_fd==0){
if(!_f3){
_f3=_fb;
}
_f4=_fb;
}else{
if(_fd>0){
if(!_f5||_fd<_f6){
_f6=_fd;
_f5=_fb;
}
if(!_f7||_fd>=_f8){
_f8=_fd;
_f7=_fb;
}
}
}
}
if(_fc&&_fb.nodeName.toUpperCase()!="SELECT"){
_f9(_fb);
}
});
};
if(dijit._isElementShown(_f2)){
_f9(_f2);
}
return {first:_f3,last:_f4,lowest:_f5,highest:_f7};
};
dijit.getFirstInTabbingOrder=function(_fe){
var _ff=dijit._getTabNavigable(dojo.byId(_fe));
return _ff.lowest?_ff.lowest:_ff.first;
};
dijit.getLastInTabbingOrder=function(root){
var _101=dijit._getTabNavigable(dojo.byId(root));
return _101.last?_101.last:_101.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_102){
this.pairs=[];
this.returnWrappers=_102||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_104,wrap,_106,_107){
this.pairs[((_107)?"unshift":"push")]([name,_104,wrap,_106]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _10d=dojo.global;
var _10e=dojo.doc;
var w=0,h=0;
var de=_10e.documentElement;
var dew=de.clientWidth,deh=de.clientHeight;
if(dojo.isMozilla){
var minw,minh,maxw,maxh;
var dbw=_10e.body.clientWidth;
if(dbw>dew){
minw=dew;
maxw=dbw;
}else{
maxw=dew;
minw=dbw;
}
var dbh=_10e.body.clientHeight;
if(dbh>deh){
minh=deh;
maxh=dbh;
}else{
maxh=deh;
minh=dbh;
}
w=(maxw>_10d.innerWidth)?minw:maxw;
h=(maxh>_10d.innerHeight)?minh:maxh;
}else{
if(!dojo.isOpera&&_10d.innerWidth){
w=_10d.innerWidth;
h=_10d.innerHeight;
}else{
if(dojo.isIE&&de&&deh){
w=dew;
h=deh;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
var _11a=dojo._docScroll();
return {w:w,h:h,l:_11a.x,t:_11a.y};
};
dijit.placeOnScreen=function(node,pos,_11d,_11e){
var _11f=dojo.map(_11d,function(_120){
return {corner:_120,pos:pos};
});
return dijit._place(node,_11f);
};
dijit._place=function(node,_122,_123){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_122,function(_126){
var _127=_126.corner;
var pos=_126.pos;
if(_123){
_123(node,_126.aroundCorner,_127);
}
var _129=node.style;
var _12a=_129.display;
var _12b=_129.visibility;
_129.visibility="hidden";
_129.display="";
var mb=dojo.marginBox(node);
_129.display=_12a;
_129.visibility=_12b;
var _12d=(_127.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_12e=(_127.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_127.charAt(1)=="L"?Math.min(view.l+view.w,_12d+mb.w):pos.x),endY=(_127.charAt(0)=="T"?Math.min(view.t+view.h,_12e+mb.h):pos.y),_131=endX-_12d,_132=endY-_12e,_133=(mb.w-_131)+(mb.h-_132);
if(best==null||_133<best.overflow){
best={corner:_127,aroundCorner:_126.aroundCorner,x:_12d,y:_12e,w:_131,h:_132,overflow:_133};
}
return !_133;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_123){
_123(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_135,_136,_137){
_135=dojo.byId(_135);
var _138=_135.style.display;
_135.style.display="";
var _139=_135.offsetWidth;
var _13a=_135.offsetHeight;
var _13b=dojo.coords(_135,true);
_135.style.display=_138;
return dijit._placeOnScreenAroundRect(node,_13b.x,_13b.y,_139,_13a,_136,_137);
};
dijit.placeOnScreenAroundRectangle=function(node,_13d,_13e,_13f){
return dijit._placeOnScreenAroundRect(node,_13d.x,_13d.y,_13d.width,_13d.height,_13e,_13f);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_143,_144,_145,_146){
var _147=[];
for(var _148 in _145){
_147.push({aroundCorner:_148,corner:_145[_148],pos:{x:x+(_148.charAt(1)=="L"?0:_143),y:y+(_148.charAt(0)=="T"?0:_144)}});
}
return dijit._place(node,_147,_146);
};
dijit.placementRegistry=new dojo.AdapterRegistry();
dijit.placementRegistry.register("node",function(n,x){
return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";
},dijit.placeOnScreenAroundNode);
dijit.placementRegistry.register("rect",function(n,x){
return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;
},dijit.placeOnScreenAroundRectangle);
dijit.placeOnScreenAroundElement=function(node,_14e,_14f,_150){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup=new function(){
var _153=[],_154=1000,_155=1;
this.prepare=function(node){
dojo.body().appendChild(node);
var s=node.style;
if(s.display=="none"){
s.display="";
}
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
};
this.open=function(args){
var _159=args.popup,_15a=args.orient||{"BL":"TL","TL":"BL"},_15b=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_155++);
var _15d=dojo.doc.createElement("div");
dijit.setWaiRole(_15d,"presentation");
_15d.id=id;
_15d.className="dijitPopup";
_15d.style.zIndex=_154+_153.length;
_15d.style.left=_15d.style.top="0px";
_15d.style.visibility="hidden";
if(args.parent){
_15d.dijitPopupParent=args.parent.id;
}
dojo.body().appendChild(_15d);
var s=_159.domNode.style;
s.display="";
s.visibility="";
s.position="";
_15d.appendChild(_159.domNode);
var _15f=new dijit.BackgroundIframe(_15d);
var best=_15b?dijit.placeOnScreenAroundElement(_15d,_15b,_15a,_159.orient?dojo.hitch(_159,"orient"):null):dijit.placeOnScreen(_15d,args,_15a=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);
_15d.style.visibility="visible";
var _161=[];
var _162=function(){
for(var pi=_153.length-1;pi>0&&_153[pi].parent===_153[pi-1].widget;pi--){
}
return _153[pi];
};
_161.push(dojo.connect(_15d,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){
dojo.stopEvent(evt);
args.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _165=_162();
if(_165&&_165.onCancel){
_165.onCancel();
}
}
}
}));
if(_159.onCancel){
_161.push(dojo.connect(_159,"onCancel",null,args.onCancel));
}
_161.push(dojo.connect(_159,_159.onExecute?"onExecute":"onChange",null,function(){
var _166=_162();
if(_166&&_166.onExecute){
_166.onExecute();
}
}));
_153.push({wrapper:_15d,iframe:_15f,widget:_159,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_161});
if(_159.onOpen){
_159.onOpen(best);
}
return best;
};
this.close=function(_167){
while(dojo.some(_153,function(elem){
return elem.widget==_167;
})){
var top=_153.pop(),_16a=top.wrapper,_16b=top.iframe,_16c=top.widget,_16d=top.onClose;
if(_16c.onClose){
_16c.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_16c||!_16c.domNode){
return;
}
this.prepare(_16c.domNode);
_16b.destroy();
dojo._destroyElement(_16a);
if(_16d){
_16d();
}
}
};
}();
dijit._frames=new function(){
var _16e=[];
this.pop=function(){
var _16f;
if(_16e.length){
_16f=_16e.pop();
_16f.style.display="";
}else{
if(dojo.isIE){
var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";
var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_16f=dojo.doc.createElement(html);
}else{
_16f=dojo.doc.createElement("iframe");
_16f.src="javascript:\"\"";
_16f.className="dijitBackgroundIframe";
}
_16f.tabIndex=-1;
dojo.body().appendChild(_16f);
}
return _16f;
};
this.push=function(_172){
_172.style.display="";
if(dojo.isIE){
_172.style.removeExpression("width");
_172.style.removeExpression("height");
}
_16e.push(_172);
};
}();
if(dojo.isIE<7){
dojo.addOnLoad(function(){
var f=dijit._frames;
dojo.forEach([f.pop()],f.push);
});
}
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _175=dijit._frames.pop();
node.appendChild(_175);
if(dojo.isIE){
_175.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_175.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_175;
}
};
dojo.extend(dijit.BackgroundIframe,{destroy:function(){
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}
if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(node){
node=dojo.byId(node);
var body=node.ownerDocument.body;
var html=body.parentNode;
if(dojo.isFF==2||node==body||node==html){
node.scrollIntoView(false);
return;
}
var rtl=!dojo._isBodyLtr();
var _17a=dojo.doc.compatMode!="BackCompat";
var _17b=(_17a&&!dojo.isSafari)?html:body;
function addPseudoAttrs(_17c){
var _17d=_17c.parentNode;
var _17e=_17c.offsetParent;
if(_17e==null){
_17c=_17b;
_17e=html;
_17d=null;
}
_17c._offsetParent=(_17e==body)?_17b:_17e;
_17c._parent=(_17d==body)?_17b:_17d;
_17c._start={H:_17c.offsetLeft,V:_17c.offsetTop};
_17c._scroll={H:_17c.scrollLeft,V:_17c.scrollTop};
_17c._renderedSize={H:_17c.offsetWidth,V:_17c.offsetHeight};
var bp=dojo._getBorderExtents(_17c);
_17c._borderStart={H:bp.l,V:bp.t};
_17c._borderSize={H:bp.w,V:bp.h};
_17c._clientSize=(_17c._offsetParent==html&&dojo.isSafari&&_17a)?{H:html.clientWidth,V:html.clientHeight}:{H:_17c.clientWidth,V:_17c.clientHeight};
_17c._scrollBarSize={V:null,H:null};
for(var dir in _17c._scrollBarSize){
var _181=_17c._renderedSize[dir]-_17c._clientSize[dir]-_17c._borderSize[dir];
_17c._scrollBarSize[dir]=(_17c._clientSize[dir]>0&&_181>=15&&_181<=17)?_181:0;
}
_17c._isScrollable={V:null,H:null};
for(dir in _17c._isScrollable){
var _182=dir=="H"?"V":"H";
_17c._isScrollable[dir]=_17c==_17b||_17c._scroll[dir]||_17c._scrollBarSize[_182];
}
};
var _183=node;
while(_183!=null){
addPseudoAttrs(_183);
var next=_183._parent;
if(next){
next._child=_183;
}
_183=next;
}
for(var dir in _17b._renderedSize){
_17b._renderedSize[dir]=Math.min(_17b._clientSize[dir],_17b._renderedSize[dir]);
}
var _186=node;
while(_186!=_17b){
_183=_186._parent;
if(_183.tagName=="TD"){
var _187=_183._parent._parent._parent;
if(_187._offsetParent==_186._offsetParent&&_183._offsetParent!=_186._offsetParent){
_183=_187;
}
}
var _188=_186==_17b||(_183._offsetParent!=_186._offsetParent);
for(dir in _186._start){
var _189=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_183._clientSize.H>0){
var _18a=_183.scrollWidth-_183._clientSize.H;
if(_18a>0){
_183._scroll.H-=_18a;
}
}
if(dojo.isIE&&_183._offsetParent.tagName=="TABLE"){
_183._start[dir]-=_183._offsetParent._borderStart[dir];
_183._borderStart[dir]=_183._borderSize[dir]=0;
}
if(_183._clientSize[dir]==0){
_183._renderedSize[dir]=_183._clientSize[dir]=_183._child._clientSize[dir];
if(rtl&&dir=="H"){
_183._start[dir]-=_183._renderedSize[dir];
}
}else{
_183._renderedSize[dir]-=_183._borderSize[dir]+_183._scrollBarSize[dir];
}
_183._start[dir]+=_183._borderStart[dir];
var _18b=_186._start[dir]-(_188?0:_183._start[dir])-_183._scroll[dir];
var _18c=_18b+_186._renderedSize[dir]-_183._renderedSize[dir];
var _18d,_18e=(dir=="H")?"scrollLeft":"scrollTop";
var _18f=(dir=="H"&&rtl);
var _190=_18f?-_18c:_18b;
var _191=_18f?-_18b:_18c;
if(_190<=0){
_18d=_190;
}else{
if(_191<=0){
_18d=0;
}else{
if(_190<_191){
_18d=_190;
}else{
_18d=_191;
}
}
}
var _192=0;
if(_18d!=0){
var _193=_183[_18e];
_183[_18e]+=_18f?-_18d:_18d;
_192=_183[_18e]-_193;
_18b-=_192;
_191-=_18f?-_192:_192;
}
_183._renderedSize[dir]=_186._renderedSize[dir]+_183._scrollBarSize[dir]-((_183._isScrollable[dir]&&_191>0)?_191:0);
_183._start[dir]+=(_18b>=0||!_183._isScrollable[dir])?_18b:0;
}
_186=_183;
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo;
var ie=d.isIE;
var _196=d.isOpera;
var maj=Math.floor;
var ff=d.isFF;
var _199=d.boxModel.replace(/-/,"");
var _19a={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_196,dj_opera8:maj(_196)==8,dj_opera9:maj(_196)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_19a["dj_"+_199]=true;
var html=dojo.doc.documentElement;
for(var p in _19a){
if(_19a[p]){
if(html.className){
html.className+=" "+p;
}else{
html.className=p;
}
}
}
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
html.className+=" dijitRtl";
for(var p in _19a){
if(_19a[p]){
html.className+=" "+p+"-rtl";
}
}
}
});
})();
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_19f,node,_1a1,obj,_1a3,_1a4){
if(obj!=this._obj){
this.stop();
this._initialDelay=_1a4||500;
this._subsequentDelay=_1a3||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_19f,_1a1);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(node,_1a6,_1a7,_1a8,_1a9,_1aa){
if(_1a6.keyCode){
_1a6.charOrCode=_1a6.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_1a6.charCode){
_1a6.charOrCode=String.fromCharCode(_1a6.charCode);
dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}
}
return [dojo.connect(node,"onkeypress",this,function(evt){
if(evt.charOrCode==_1a6.charOrCode&&(_1a6.ctrlKey===undefined||_1a6.ctrlKey==evt.ctrlKey)&&(_1a6.altKey===undefined||_1a6.altKey==evt.ctrlKey)&&(_1a6.shiftKey===undefined||_1a6.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_1a6,_1a7,node,_1a8,_1a6,_1a9,_1aa);
}else{
if(dijit.typematic._obj==_1a6){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_1a6){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_1ae,_1af,_1b0,_1b1){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_1ae,node,_1af,node,_1b0,_1b1);
}),dc(node,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(node,"mousemove",this,function(evt){
dojo.stopEvent(evt);
}),dc(node,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_1ae,node,_1af,node,_1b0,_1b1);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_1b8,_1b9,_1ba,_1bb,_1bc,_1bd,_1be){
return this.addKeyListener(_1b9,_1ba,_1bb,_1bc,_1bd,_1be).concat(this.addMouseListener(_1b8,_1bb,_1bc,_1bd,_1be));
}};
}
if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var div=dojo.doc.createElement("div");
div.id="a11yTestNode";
div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";
dojo.body().appendChild(div);
var cs=dojo.getComputedStyle(div);
if(cs){
var _1c1=cs.backgroundImage;
var _1c2=(cs.borderTopColor==cs.borderRightColor)||(_1c1!=null&&(_1c1=="none"||_1c1=="url(invalid-url:)"));
dojo[_1c2?"addClass":"removeClass"](dojo.body(),"dijit_a11y");
if(dojo.isIE){
div.outerHTML="";
}else{
dojo.body().removeChild(div);
}
}
}};
if(dojo.isIE||dojo.isMoz){
dojo._loaders.unshift(dijit.wai.onload);
}
dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){
var _1c5=this.getWaiRole(elem);
if(role){
return (_1c5.indexOf(role)>-1);
}else{
return (_1c5.length>0);
}
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _1c9=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_1c9)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_1c9+" ").indexOf(" "+role+" ")<0){
var _1ca=dojo.trim(_1c9.replace(this._XhtmlRoles,""));
var _1cb=dojo.trim(_1c9.replace(_1ca,""));
dojo.attr(elem,"role",_1cb+(_1cb?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _1ce=dojo.attr(elem,"role");
if(!_1ce){
return;
}
if(role){
var _1cf=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_1ce+" ").replace(" "+_1cf+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_1d2){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1d2);
}else{
return elem.hasAttribute?elem.hasAttribute("aria-"+_1d2):!!elem.getAttribute("aria-"+_1d2);
}
},getWaiState:function(elem,_1d4){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1d4);
}else{
var _1d5=elem.getAttribute("aria-"+_1d4);
return _1d5?_1d5:"";
}
},setWaiState:function(elem,_1d7,_1d8){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1d7,_1d8);
}else{
elem.setAttribute("aria-"+_1d7,_1d8);
}
},removeWaiState:function(elem,_1da){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1da);
}else{
elem.removeAttribute("aria-"+_1da);
}
}});
}
if(!dojo._hasResource["dijit._base"]){
dojo._hasResource["dijit._base"]=true;
dojo.provide("dijit._base");
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_1db,_1dc){
if(!dojo.date.stamp._isoRegExp){
dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
}
var _1dd=dojo.date.stamp._isoRegExp.exec(_1db);
var _1de=null;
if(_1dd){
_1dd.shift();
if(_1dd[1]){
_1dd[1]--;
}
if(_1dd[6]){
_1dd[6]*=1000;
}
if(_1dc){
_1dc=new Date(_1dc);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _1dc["get"+prop]();
}).forEach(function(_1e0,_1e1){
if(_1dd[_1e1]===undefined){
_1dd[_1e1]=_1e0;
}
});
}
_1de=new Date(_1dd[0]||1970,_1dd[1]||0,_1dd[2]||1,_1dd[3]||0,_1dd[4]||0,_1dd[5]||0,_1dd[6]||0);
var _1e2=0;
var _1e3=_1dd[7]&&_1dd[7].charAt(0);
if(_1e3!="Z"){
_1e2=((_1dd[8]||0)*60)+(Number(_1dd[9])||0);
if(_1e3!="-"){
_1e2*=-1;
}
}
if(_1e3){
_1e2-=_1de.getTimezoneOffset();
}
if(_1e2){
_1de.setTime(_1de.getTime()+_1e2*60000);
}
}
return _1de;
};
dojo.date.stamp.toISOString=function(_1e4,_1e5){
var _=function(n){
return (n<10)?"0"+n:n;
};
_1e5=_1e5||{};
var _1e8=[];
var _1e9=_1e5.zulu?"getUTC":"get";
var date="";
if(_1e5.selector!="time"){
var year=_1e4[_1e9+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_1e4[_1e9+"Month"]()+1),_(_1e4[_1e9+"Date"]())].join("-");
}
_1e8.push(date);
if(_1e5.selector!="date"){
var time=[_(_1e4[_1e9+"Hours"]()),_(_1e4[_1e9+"Minutes"]()),_(_1e4[_1e9+"Seconds"]())].join(":");
var _1ed=_1e4[_1e9+"Milliseconds"]();
if(_1e5.milliseconds){
time+="."+(_1ed<100?"0":"")+_(_1ed);
}
if(_1e5.zulu){
time+="Z";
}else{
if(_1e5.selector!="time"){
var _1ee=_1e4.getTimezoneOffset();
var _1ef=Math.abs(_1ee);
time+=(_1ee>0?"-":"+")+_(Math.floor(_1ef/60))+":"+_(_1ef%60);
}
}
_1e8.push(time);
}
return _1e8.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _1f1=d._scopeName+"Type";
var qry="["+_1f1+"]";
function val2type(_1f3){
if(d.isString(_1f3)){
return "string";
}
if(typeof _1f3=="number"){
return "number";
}
if(typeof _1f3=="boolean"){
return "boolean";
}
if(d.isFunction(_1f3)){
return "function";
}
if(d.isArray(_1f3)){
return "array";
}
if(_1f3 instanceof Date){
return "date";
}
if(_1f3 instanceof d._Url){
return "url";
}
return "object";
};
function str2obj(_1f4,type){
switch(type){
case "string":
return _1f4;
case "number":
return _1f4.length?Number(_1f4):NaN;
case "boolean":
return typeof _1f4=="boolean"?_1f4:!(_1f4.toLowerCase()=="false");
case "function":
if(d.isFunction(_1f4)){
_1f4=_1f4.toString();
_1f4=d.trim(_1f4.substring(_1f4.indexOf("{")+1,_1f4.length-1));
}
try{
if(_1f4.search(/[^\w\.]+/i)!=-1){
_1f4=d.parser._nameAnonFunc(new Function(_1f4),this);
}
return d.getObject(_1f4,false);
}
catch(e){
return new Function();
}
case "array":
return _1f4?_1f4.split(/\s*,\s*/):[];
case "date":
switch(_1f4){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_1f4);
}
case "url":
return d.baseUrl+_1f4;
default:
return d.fromJson(_1f4);
}
};
var _1f6={};
function getClassInfo(_1f7){
if(!_1f6[_1f7]){
var cls=d.getObject(_1f7);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_1f7+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _1f9=cls.prototype;
var _1fa={};
for(var name in _1f9){
if(name.charAt(0)=="_"){
continue;
}
var _1fc=_1f9[name];
_1fa[name]=val2type(_1fc);
}
_1f6[_1f7]={cls:cls,params:_1fa};
}
return _1f6[_1f7];
};
this._functionFromScript=function(_1fd){
var _1fe="";
var _1ff="";
var _200=_1fd.getAttribute("args");
if(_200){
d.forEach(_200.split(/\s*,\s*/),function(part,idx){
_1fe+="var "+part+" = arguments["+idx+"]; ";
});
}
var _203=_1fd.getAttribute("with");
if(_203&&_203.length){
d.forEach(_203.split(/\s*,\s*/),function(part){
_1fe+="with("+part+"){";
_1ff+="}";
});
}
return new Function(_1fe+_1fd.innerHTML+_1ff);
};
this.instantiate=function(_205){
var _206=[];
d.forEach(_205,function(node){
if(!node){
return;
}
var type=node.getAttribute(_1f1);
if((!type)||(!type.length)){
return;
}
var _209=getClassInfo(type);
var _20a=_209.cls;
var ps=_20a._noScript||_20a.prototype._noScript;
var _20c={};
var _20d=node.attributes;
for(var name in _209.params){
var item=_20d.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _210=item.value;
switch(name){
case "class":
_210=node.className;
break;
case "style":
_210=node.style&&node.style.cssText;
}
var _211=_209.params[name];
_20c[name]=str2obj(_210,_211);
}
if(!ps){
var _212=[],_213=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_214){
var _215=_214.getAttribute("event"),type=_214.getAttribute("type"),nf=d.parser._functionFromScript(_214);
if(_215){
if(type=="dojo/connect"){
_212.push({event:_215,func:nf});
}else{
_20c[_215]=nf;
}
}else{
_213.push(nf);
}
});
}
var _217=_20a["markupFactory"];
if(!_217&&_20a["prototype"]){
_217=_20a.prototype["markupFactory"];
}
var _218=_217?_217(_20c,node,_20a):new _20a(_20c,node);
_206.push(_218);
var _219=node.getAttribute("jsId");
if(_219){
d.setObject(_219,_218);
}
if(!ps){
d.forEach(_212,function(_21a){
d.connect(_218,_21a.event,null,_21a.func);
});
d.forEach(_213,function(func){
func.call(_218);
});
}
});
d.forEach(_206,function(_21c){
if(_21c&&_21c.startup&&!_21c._started&&(!_21c.getParent||!_21c.getParent())){
_21c.startup();
}
});
return _206;
};
this.parse=function(_21d){
var list=d.query(qry,_21d);
var _21f=this.instantiate(list);
return _21f;
};
}();
(function(){
var _220=function(){
if(dojo.config["parseOnLoad"]==true){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_220);
}else{
dojo._loaders.unshift(_220);
}
})();
dojo.parser._anonCtr=0;
dojo.parser._anon={};
dojo.parser._nameAnonFunc=function(_221,_222){
var jpn="$joinpoint";
var nso=(_222||dojo.parser._anon);
if(dojo.isIE){
var cn=_221["__dojoNameCache"];
if(cn&&nso[cn]===_221){
return _221["__dojoNameCache"];
}
}
var ret="__"+dojo.parser._anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.parser._anonCtr++;
}
nso[ret]=_221;
return ret;
};
}
if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.rep=function(str,num){
if(num<=0||!str){
return "";
}
var buf=[];
for(;;){
if(num&1){
buf.push(str);
}
if(!(num>>=1)){
break;
}
str+=str;
}
return buf.join("");
};
dojo.string.pad=function(text,size,ch,end){
if(!ch){
ch="0";
}
var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));
return end?out+pad:pad+out;
};
dojo.string.substitute=function(_230,map,_232,_233){
_233=_233||dojo.global;
_232=(!_232)?function(v){
return v;
}:dojo.hitch(_233,_232);
return _230.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_235,key,_237){
var _238=dojo.getObject(key,false,map);
if(_237){
_238=dojo.getObject(_237,false,_233).call(_233,_238,key);
}
return _232(_238,key).toString();
});
};
dojo.string.trim=function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dijit._Widget"]){
dojo._hasResource["dijit._Widget"]=true;
dojo.provide("dijit._Widget");
dojo.require("dijit._base");
dojo.connect(dojo,"connect",function(_23b,_23c){
if(_23b&&dojo.isFunction(_23b._onConnect)){
_23b._onConnect(_23c);
}
});
dijit._connectOnUseEventHandler=function(_23d){
};
(function(){
var _23e={};
var _23f=function(dc){
if(!_23e[dc]){
var r=[];
var _242;
var _243=dojo.getObject(dc).prototype;
for(var _244 in _243){
if(dojo.isFunction(_243[_244])&&(_242=_244.match(/^_set([a-zA-Z]*)Attr$/))&&_242[1]){
r.push(_242[1].charAt(0).toLowerCase()+_242[1].substr(1));
}
}
_23e[dc]=r;
}
return _23e[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_245,_246){
this.create(_245,_246);
},create:function(_247,_248){
this.srcNodeRef=dojo.byId(_248);
this._connects=[];
this._deferredConnects=dojo.clone(this._deferredConnects);
for(var attr in this.attributeMap){
delete this._deferredConnects[attr];
}
for(attr in this._deferredConnects){
if(this[attr]!==dijit._connectOnUseEventHandler){
delete this._deferredConnects[attr];
}
}
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_247){
this.params=_247;
dojo.mixin(this,_247);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
for(attr in this.params){
this._onConnect(attr);
}
}
if(this.domNode){
this.domNode.setAttribute("widgetId",this.id);
}
this.postCreate();
if(this.srcNodeRef&&!this.srcNodeRef.parentNode){
delete this.srcNodeRef;
}
this._created=true;
},_applyAttributes:function(){
var _24a=function(attr,_24c){
if((_24c.params&&attr in _24c.params)||_24c[attr]){
_24c.attr(attr,_24c[attr]);
}
};
for(var attr in this.attributeMap){
_24a(attr,this);
}
dojo.forEach(_23f(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_24a(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.doc.createElement("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_24f){
this.destroyDescendants(_24f);
this.destroy(_24f);
},destroy:function(_250){
this.uninitialize();
dojo.forEach(this._connects,function(_251){
dojo.forEach(_251,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_250);
dijit.registry.remove(this.id);
},destroyRendering:function(_253){
if(this.bgIframe){
this.bgIframe.destroy(_253);
delete this.bgIframe;
}
if(this.domNode){
if(!_253){
dojo._destroyElement(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_253){
dojo._destroyElement(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_254){
dojo.forEach(this.getDescendants(),function(_255){
if(_255.destroy){
_255.destroy(_254);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_257){
if(_257 in this._deferredConnects){
var _258=this[this._deferredConnects[_257]||"domNode"];
this.connect(_258,_257.toLowerCase(),this[_257]);
delete this._deferredConnects[_257];
}
},_setClassAttr:function(_259){
var _25a=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_25a,this["class"]);
this["class"]=_259;
dojo.addClass(_25a,_259);
},_setStyleAttr:function(_25b){
var _25c=this[this.attributeMap["style"]||"domNode"];
if(_25c.style.cssText){
_25c.style.cssText+="; "+_25b;
}else{
_25c.style.cssText=_25b;
}
this["style"]=_25b;
},setAttribute:function(attr,_25e){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_25e);
},_attrToDom:function(attr,_260){
var _261=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_261)?_261:[_261],function(_262){
var _263=this[_262.node||_262||"domNode"];
var type=_262.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_260)){
_260=dojo.hitch(this,_260);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_263,attr,_260);
break;
case "innerHTML":
_263.innerHTML=_260;
break;
case "class":
dojo.removeClass(_263,this[attr]);
dojo.addClass(_263,_260);
break;
}
},this);
this[attr]=_260;
},attr:function(name,_266){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _269=this._getAttrNames(name);
if(args==2){
if(this[_269.s]){
return this[_269.s](_266)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_266);
}
this[name]=_266;
}
return this;
}else{
if(this[_269.g]){
return this[_269.g]();
}else{
return this[name];
}
}
},_attrPairNames:{},_getAttrNames:function(name){
var apn=this._attrPairNames;
if(apn[name]){
return apn[name];
}
var uc=name.charAt(0).toUpperCase()+name.substr(1);
return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
if(this.containerNode){
var list=dojo.query("[widgetId]",this.containerNode);
return list.map(dijit.byNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_26f,_270){
var d=dojo;
var dco=d.hitch(d,"connect",obj);
var _273=[];
if(_26f=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_270);
_273.push(dco("onkeydown",this,function(e){
if(!d.isFF&&e.keyCode==d.keys.ENTER){
return m(e);
}else{
if(e.keyCode==d.keys.SPACE){
d.stopEvent(e);
}
}
}),dco("onkeyup",this,function(e){
if(e.keyCode==d.keys.SPACE){
return m(e);
}
}));
if(d.isFF){
_273.push(dco("onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER){
return m(e);
}
}));
}
}
_26f="onclick";
}
_273.push(dco(_26f,this,_270));
this._connects.push(_273);
return _273;
},disconnect:function(_278){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_278){
dojo.forEach(_278,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_27a,_27b){
if(_27a["declaredClass"]&&_27a["addChild"]){
_27a.addChild(this,_27b);
}else{
dojo.place(this.domNode,_27a,_27b);
}
return this;
}});
})();
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){
var _27d=this.declaredClass,_27e=this;
return dojo.string.substitute(tmpl,this,function(_27f,key){
if(key.charAt(0)=="!"){
_27f=_27e[key.substr(1)];
}
if(typeof _27f=="undefined"){
throw new Error(_27d+" template:"+key);
}
if(_27f==null){
return "";
}
return key.charAt(0)=="!"?_27f:_27f.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _281=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_281)){
node=dijit._Templated._createNodesFromText(this._stringRepl(_281))[0];
}else{
node=_281.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
var _283=this.srcNodeRef;
if(_283&&_283.parentNode){
_283.parentNode.replaceChild(node,_283);
}
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(_283);
},_fillContent:function(_287){
var dest=this.containerNode;
if(_287&&dest){
while(_287.hasChildNodes()){
dest.appendChild(_287.firstChild);
}
}
},_attachTemplateNodes:function(_289,_28a){
_28a=_28a||function(n,p){
return n.getAttribute(p);
};
var _28d=dojo.isArray(_289)?_289:(_289.all||_289.getElementsByTagName("*"));
var x=dojo.isArray(_289)?0:-1;
var _28f={};
for(;x<_28d.length;x++){
var _290=(x==-1)?_289:_28d[x];
if(this.widgetsInTemplate&&_28a(_290,"dojoType")){
continue;
}
var _291=_28a(_290,"dojoAttachPoint");
if(_291){
var _292,_293=_291.split(/\s*,\s*/);
while((_292=_293.shift())){
if(dojo.isArray(this[_292])){
this[_292].push(_290);
}else{
this[_292]=_290;
}
}
}
var _294=_28a(_290,"dojoAttachEvent");
if(_294){
var _295,_296=_294.split(/\s*,\s*/);
var trim=dojo.trim;
while((_295=_296.shift())){
if(_295){
var _298=null;
if(_295.indexOf(":")!=-1){
var _299=_295.split(":");
_295=trim(_299[0]);
_298=trim(_299[1]);
}else{
_295=trim(_295);
}
if(!_298){
_298=_295;
}
this.connect(_290,_295,_298);
}
}
}
var role=_28a(_290,"waiRole");
if(role){
dijit.setWaiRole(_290,role);
}
var _29b=_28a(_290,"waiState");
if(_29b){
dojo.forEach(_29b.split(/\s*,\s*/),function(_29c){
if(_29c.indexOf("-")!=-1){
var pair=_29c.split("-");
dijit.setWaiState(_290,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_29e,_29f,_2a0){
var _2a1=dijit._Templated._templateCache;
var key=_29f||_29e;
var _2a3=_2a1[key];
if(_2a3){
if(!_2a3.ownerDocument||_2a3.ownerDocument==dojo.doc){
return _2a3;
}
dojo._destroyElement(_2a3);
}
if(!_29f){
_29f=dijit._Templated._sanitizeTemplateString(dojo._getText(_29e));
}
_29f=dojo.string.trim(_29f);
if(_2a0||_29f.match(/\$\{([^\}]+)\}/g)){
return (_2a1[key]=_29f);
}else{
return (_2a1[key]=dijit._Templated._createNodesFromText(_29f)[0]);
}
};
dijit._Templated._sanitizeTemplateString=function(_2a4){
if(_2a4){
_2a4=_2a4.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _2a5=_2a4.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2a5){
_2a4=_2a5[1];
}
}else{
_2a4="";
}
return _2a4;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _2a6=dijit._Templated._templateCache;
for(var key in _2a6){
var _2a8=_2a6[key];
if(!isNaN(_2a8.nodeType)){
dojo._destroyElement(_2a8);
}
delete _2a6[key];
}
});
}
(function(){
var _2a9={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};
var tn;
dijit._Templated._createNodesFromText=function(text){
if(tn&&tn.ownerDocument!=dojo.doc){
dojo._destroyElement(tn);
tn=undefined;
}
if(!tn){
tn=dojo.doc.createElement("div");
tn.style.display="none";
dojo.body().appendChild(tn);
}
var _2ac="none";
var _2ad=text.replace(/^\s+/,"");
for(var type in _2a9){
var map=_2a9[type];
if(map.re.test(_2ad)){
_2ac=type;
text=map.pre+text+map.post;
break;
}
}
tn.innerHTML=text;
if(tn.normalize){
tn.normalize();
}
var tag={cell:"tr",row:"tbody",section:"table"}[_2ac];
var _2b1=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;
var _2b2=[];
while(_2b1.firstChild){
_2b2.push(_2b1.removeChild(_2b1.firstChild));
}
tn.innerHTML="";
return _2b2;
};
})();
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Contained",null,{getParent:function(){
for(var p=this.domNode.parentNode;p;p=p.parentNode){
var id=p.getAttribute&&p.getAttribute("widgetId");
if(id){
var _2b5=dijit.byId(id);
return _2b5.isContainer?_2b5:null;
}
}
return null;
},_getSibling:function(_2b6){
var node=this.domNode;
do{
node=node[_2b6+"Sibling"];
}while(node&&node.nodeType!=1);
if(!node){
return null;
}
var id=node.getAttribute("widgetId");
return dijit.byId(id);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_2ba,_2bb){
var _2bc=this.containerNode;
if(_2bb&&typeof _2bb=="number"){
var _2bd=dojo.query("> [widgetId]",_2bc);
if(_2bd&&_2bd.length>=_2bb){
_2bc=_2bd[_2bb-1];
_2bb="after";
}
}
dojo.place(_2ba.domNode,_2bc,_2bb);
if(this._started&&!_2ba._started){
_2ba.startup();
}
},removeChild:function(_2be){
if(typeof _2be=="number"&&_2be>0){
_2be=this.getChildren()[_2be];
}
if(!_2be||!_2be.domNode){
return;
}
var node=_2be.domNode;
node.parentNode.removeChild(node);
},_nextElement:function(node){
do{
node=node.nextSibling;
}while(node&&node.nodeType!=1);
return node;
},_firstElement:function(node){
node=node.firstChild;
if(node&&node.nodeType!=1){
node=this._nextElement(node);
}
return node;
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return !!this._firstElement(this.containerNode);
},destroyDescendants:function(_2c2){
dojo.forEach(this.getChildren(),function(_2c3){
_2c3.destroyRecursive(_2c2);
});
},_getSiblingOfChild:function(_2c4,dir){
var node=_2c4.domNode;
var _2c7=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_2c7];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_2c8){
var _2c9=this.getChildren();
for(var i=0,c;c=_2c9[i];i++){
if(c==_2c8){
return i;
}
}
return -1;
}});
dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_2cc,_2cd){
var _2ce=this._keyNavCodes={};
var prev=dojo.hitch(this,this.focusPrev);
var next=dojo.hitch(this,this.focusNext);
dojo.forEach(_2cc,function(code){
_2ce[code]=prev;
});
dojo.forEach(_2cd,function(code){
_2ce[code]=next;
});
this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus");
},startupKeyNavChildren:function(){
dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));
},addChild:function(_2d3,_2d4){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_2d3);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
this.focusChild(this._getFirstFocusableChild());
},focusNext:function(){
if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){
this.focusedChild.focusNext();
return;
}
var _2d5=this._getNextFocusableChild(this.focusedChild,1);
if(_2d5.getFocalNodes){
this.focusChild(_2d5,_2d5.getFocalNodes()[0]);
}else{
this.focusChild(_2d5);
}
},focusPrev:function(){
if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){
this.focusedChild.focusPrev();
return;
}
var _2d6=this._getNextFocusableChild(this.focusedChild,-1);
if(_2d6.getFocalNodes){
var _2d7=_2d6.getFocalNodes();
this.focusChild(_2d6,_2d7[_2d7.length-1]);
}else{
this.focusChild(_2d6);
}
},focusChild:function(_2d8,node){
if(_2d8){
if(this.focusedChild&&_2d8!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
this.focusedChild=_2d8;
if(node&&_2d8.focusFocalNode){
_2d8.focusFocalNode(node);
}else{
_2d8.focus();
}
}
},_startupChild:function(_2da){
if(_2da.getFocalNodes){
dojo.forEach(_2da.getFocalNodes(),function(node){
dojo.attr(node,"tabindex",-1);
this._connectNode(node);
},this);
}else{
var node=_2da.focusNode||_2da.domNode;
if(_2da.isFocusable()){
dojo.attr(node,"tabindex",-1);
}
this._connectNode(node);
}
},_connectNode:function(node){
this.connect(node,"onfocus","_onNodeFocus");
this.connect(node,"onblur","_onNodeBlur");
},_onContainerFocus:function(evt){
if(evt.target===this.domNode){
this.focusFirstChild();
}
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var func=this._keyNavCodes[evt.charOrCode];
if(func){
func();
dojo.stopEvent(evt);
}
},_onNodeFocus:function(evt){
dojo.attr(this.domNode,"tabindex",-1);
var _2e2=dijit.getEnclosingWidget(evt.target);
if(_2e2&&_2e2.isFocusable()){
this.focusedChild=_2e2;
}
dojo.stopEvent(evt);
},_onNodeBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabindex",this.tabIndex);
}
dojo.stopEvent(evt);
},_onChildBlur:function(_2e4){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_2e5,dir){
if(_2e5){
_2e5=this._getSiblingOfChild(_2e5,dir);
}
var _2e7=this.getChildren();
for(var i=0;i<_2e7.length;i++){
if(!_2e5){
_2e5=_2e7[(dir>0)?0:(_2e7.length-1)];
}
if(_2e5.isFocusable()){
return _2e5;
}
_2e5=this._getSiblingOfChild(_2e5,dir);
}
return null;
}});
}
if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_2e9){
_2e9.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this.connect(dojo.global,"onresize","resize");
}
this.inherited(arguments);
},resize:function(_2ea,_2eb){
var node=this.domNode;
if(_2ea){
dojo.marginBox(node,_2ea);
if(_2ea.t){
node.style.top=_2ea.t+"px";
}
if(_2ea.l){
node.style.left=_2ea.l+"px";
}
}
var mb=_2eb||{};
dojo.mixin(mb,_2ea||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(node),mb);
}
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var be=dojo._getBorderExtents(node,cs);
var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};
var pe=dojo._getPadExtents(node,cs);
this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};
this.layout();
},layout:function(){
},_setupChild:function(_2f3){
if(_2f3.baseClass){
dojo.addClass(_2f3.domNode,this.baseClass+"-"+_2f3.baseClass);
}
},addChild:function(_2f4,_2f5){
this.inherited(arguments);
if(this._started){
this._setupChild(_2f4);
}
},removeChild:function(_2f6){
if(_2f6.baseClass){
dojo.removeClass(_2f6.domNode,this.baseClass+"-"+_2f6.baseClass);
}
this.inherited(arguments);
}});
dijit.layout.marginBox2contentBox=function(node,mb){
var cs=dojo.getComputedStyle(node);
var me=dojo._getMarginExtents(node,cs);
var pb=dojo._getPadBorderExtents(node,cs);
return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};
};
(function(){
var _2fc=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_2ff,dim){
_2ff.resize?_2ff.resize(dim):dojo.marginBox(_2ff.domNode,dim);
dojo.mixin(_2ff,dojo.marginBox(_2ff.domNode));
dojo.mixin(_2ff,dim);
};
dijit.layout.layoutChildren=function(_301,dim,_303){
dim=dojo.mixin({},dim);
dojo.addClass(_301,"dijitLayoutContainer");
_303=dojo.filter(_303,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_303,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_303,function(_306){
var elm=_306.domNode,pos=_306.layoutAlign;
var _309=elm.style;
_309.left=dim.l+"px";
_309.top=dim.t+"px";
_309.bottom=_309.right="auto";
dojo.addClass(elm,"dijitAlign"+_2fc(pos));
if(pos=="top"||pos=="bottom"){
size(_306,{w:dim.w});
dim.h-=_306.h;
if(pos=="top"){
dim.t+=_306.h;
}else{
_309.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_306,{h:dim.h});
dim.w-=_306.w;
if(pos=="left"){
dim.l+=_306.w;
}else{
_309.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_306,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dijit.form._FormWidget"]){
dojo._hasResource["dijit.form._FormWidget"]=true;
dojo.provide("dijit.form._FormWidget");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_30a){
this.disabled=_30a;
dojo.attr(this.focusNode,"disabled",_30a);
dijit.setWaiState(this.focusNode,"disabled",_30a);
if(_30a){
this._hovering=false;
this._active=false;
this.focusNode.removeAttribute("tabIndex");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_30b){
dojo.deprecated("setDisabled("+_30b+") is deprecated. Use attr('disabled',"+_30b+") instead.","","2.0");
this.attr("disabled",_30b);
},_scroll:true,_onFocus:function(e){
if(this._scroll){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_30d){
var _30e=_30d.currentTarget;
if(_30e&&_30e.getAttribute){
this.stateModifier=_30e.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_30d.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseout":
case "mouseleave":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _30f=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_30f);
});
break;
}
this._setStateClass();
}
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
dijit.focus(this.focusNode);
},_setStateClass:function(){
var _310=this.baseClass.split(" ");
function multiply(_311){
_310=_310.concat(dojo.map(_310,function(c){
return c+_311;
}),"dijit"+_311);
};
if(this.checked){
multiply("Checked");
}
if(this.state){
multiply(this.state);
}
if(this.selected){
multiply("Selected");
}
if(this.disabled){
multiply("Disabled");
}else{
if(this.readOnly){
multiply("ReadOnly");
}else{
if(this._active){
multiply(this.stateModifier+"Active");
}else{
if(this._focused){
multiply("Focused");
}
if(this._hovering){
multiply(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_314={};
dojo.forEach(tn.className.split(" "),function(c){
_314[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _314[c];
});
}
dojo.forEach(_310,function(c){
_314[c]=true;
});
var _318=[];
for(var c in _314){
_318.push(c);
}
tn.className=_318.join(" ");
this._stateClasses=_310;
},compare:function(val1,val2){
if((typeof val1=="number")&&(typeof val2=="number")){
return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);
}else{
if(val1>val2){
return 1;
}else{
if(val1<val2){
return -1;
}else{
return 0;
}
}
}
},onChange:function(_31c){
},_onChangeActive:false,_handleOnChange:function(_31d,_31e){
this._lastValue=_31d;
if(this._lastValueReported==undefined&&(_31e===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_31d;
}
if((this.intermediateChanges||_31e||_31e===undefined)&&((typeof _31d!=typeof this._lastValueReported)||this.compare(_31d,this._lastValueReported)!=0)){
this._lastValueReported=_31d;
if(this._onChangeActive){
this.onChange(_31d);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._layoutHackHandle){
clearTimeout(this._layoutHackHandle);
}
this.inherited(arguments);
},setValue:function(_31f){
dojo.deprecated("dijit.form._FormWidget:setValue("+_31f+") is deprecated.  Use attr('value',"+_31f+") instead.","","2.0");
this.attr("value",_31f);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_layoutHack:function(){
if(dojo.isFF==2&&!this._layoutHackHandle){
var node=this.domNode;
var old=node.style.opacity;
node.style.opacity="0.999";
this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){
this._layoutHackHandle=null;
node.style.opacity=old;
}),0);
}
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){
if(dojo.isIE||dojo.isSafari){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_322,_323){
this.value=_322;
this._handleOnChange(_322,_323);
},_getValueAttr:function(_324){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_valueChanged:function(){
var v=this.attr("value");
var lv=this._lastValueReported;
return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}else{
if(dojo.isSafari){
te=document.createEvent("Events");
te.initEvent("keypress",true,true);
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.target.dispatchEvent(te);
}
}
}
},_onKeyPress:function(e){
if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){
this.undo();
dojo.stopEvent(e);
return false;
}else{
if(this.intermediateChanges){
var _32a=this;
setTimeout(function(){
_32a._handleOnChange(_32a.attr("value"),false);
},0);
}
}
return true;
}});
}
if(!dojo._hasResource["dijit.dijit"]){
dojo._hasResource["dijit.dijit"]=true;
dojo.provide("dijit.dijit");
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
dojo.provide("dojo.fx.Toggler");
(function(){
var _32b={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _32e=function(_32f){
this._index=-1;
this._animations=_32f||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
dojo.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
dojo.extend(_32e,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
dojo.disconnect(this._onAnimateCtx);
dojo.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;
if(this._index+1==this._animations.length){
this._fire("onEnd");
}else{
this._current=this._animations[++this._index];
this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_331,_332){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_332&&this._current.status()=="playing"){
return this;
}
var _333=dojo.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_334=dojo.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_336=dojo.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
dojo.disconnect(_333);
dojo.disconnect(_334);
dojo.disconnect(_336);
});
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=dojo.connect(this._current,"onPause",this,function(arg){
this._fire("onPause",arguments);
dojo.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_33a,_33b){
this.pause();
var _33c=this.duration*_33a;
this._current=null;
dojo.some(this._animations,function(a){
if(a.duration<=_33c){
this._current=a;
return true;
}
_33c-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_33c/this._current.duration,_33b);
}
return this;
},stop:function(_33e){
if(this._current){
if(_33e){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=dojo.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
dojo.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
dojo.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
dojo.disconnect(this._onEndCtx);
}
}});
dojo.extend(_32e,_32b);
dojo.fx.chain=function(_341){
return new _32e(_341);
};
var _342=function(_343){
this._animations=_343||[];
this._connects=[];
this._finished=0;
this.duration=0;
dojo.forEach(_343,function(a){
var _345=a.duration;
if(a.delay){
_345+=a.delay;
}
if(this.duration<_345){
this.duration=_345;
}
this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});
dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));
},this);
};
dojo.extend(_342,{_doAction:function(_347,args){
dojo.forEach(this._animations,function(a){
a[_347].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_34a,args){
var t=this._pseudoAnimation;
t[_34a].apply(t,args);
},play:function(_34d,_34e){
this._finished=0;
this._doAction("play",arguments);
this._call("play",arguments);
return this;
},pause:function(){
this._doAction("pause",arguments);
this._call("pause",arguments);
return this;
},gotoPercent:function(_34f,_350){
var ms=this.duration*_34f;
dojo.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_350);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_353){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
dojo.forEach(this._connects,dojo.disconnect);
}});
dojo.extend(_342,_32b);
dojo.fx.combine=function(_354){
return new _342(_354);
};
})();
dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){
var _t=this;
dojo.mixin(_t,args);
_t.node=args.node;
_t._showArgs=dojo.mixin({},args);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},args);
_t._hideArgs.node=_t.node;
_t._hideArgs.duration=_t.hideDuration;
_t.hideAnim=_t.hideFunc(_t._hideArgs);
dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));
dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));
},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_357){
return this.showAnim.play(_357||0);
},hide:function(_358){
return this.hideAnim.play(_358||0);
}});
dojo.fx.wipeIn=function(args){
args.node=dojo.byId(args.node);
var node=args.node,s=node.style,o;
var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _35e=dojo.style(node,"height");
return Math.max(_35e,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
dojo.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=dojo.byId(args.node);
var s=node.style;
var o;
var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));
dojo.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
dojo.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=(args.node=dojo.byId(args.node));
var top=null;
var left=null;
var init=(function(n){
return function(){
var cs=dojo.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=dojo.coords(n,true);
top=ret.y;
left=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=left+"px";
}
};
})(node);
init();
var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));
dojo.connect(anim,"beforeBegin",anim,init);
return anim;
};
}
if(!dojo._hasResource["dojo.fx.easing"]){
dojo._hasResource["dojo.fx.easing"]=true;
dojo.provide("dojo.fx.easing");
dojo.fx.easing={linear:function(n){
return n;
},quadIn:function(n){
return Math.pow(n,2);
},quadOut:function(n){
return n*(n-2)*-1;
},quadInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,2)/2;
}
return -1*((--n)*(n-2)-1)/2;
},cubicIn:function(n){
return Math.pow(n,3);
},cubicOut:function(n){
return Math.pow(n-1,3)+1;
},cubicInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,3)/2;
}
n-=2;
return (Math.pow(n,3)+2)/2;
},quartIn:function(n){
return Math.pow(n,4);
},quartOut:function(n){
return -1*(Math.pow(n-1,4)-1);
},quartInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,4)/2;
}
n-=2;
return -1/2*(Math.pow(n,4)-2);
},quintIn:function(n){
return Math.pow(n,5);
},quintOut:function(n){
return Math.pow(n-1,5)+1;
},quintInOut:function(n){
n=n*2;
if(n<1){
return Math.pow(n,5)/2;
}
n-=2;
return (Math.pow(n,5)+2)/2;
},sineIn:function(n){
return -1*Math.cos(n*(Math.PI/2))+1;
},sineOut:function(n){
return Math.sin(n*(Math.PI/2));
},sineInOut:function(n){
return -1*(Math.cos(Math.PI*n)-1)/2;
},expoIn:function(n){
return (n==0)?0:Math.pow(2,10*(n-1));
},expoOut:function(n){
return (n==1)?1:(-1*Math.pow(2,-10*n)+1);
},expoInOut:function(n){
if(n==0){
return 0;
}
if(n==1){
return 1;
}
n=n*2;
if(n<1){
return Math.pow(2,10*(n-1))/2;
}
--n;
return (-1*Math.pow(2,-10*n)+2)/2;
},circIn:function(n){
return -1*(Math.sqrt(1-Math.pow(n,2))-1);
},circOut:function(n){
n=n-1;
return Math.sqrt(1-Math.pow(n,2));
},circInOut:function(n){
n=n*2;
if(n<1){
return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);
}
n-=2;
return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);
},backIn:function(n){
var s=1.70158;
return Math.pow(n,2)*((s+1)*n-s);
},backOut:function(n){
n=n-1;
var s=1.70158;
return Math.pow(n,2)*((s+1)*n+s)+1;
},backInOut:function(n){
var s=1.70158*1.525;
n=n*2;
if(n<1){
return (Math.pow(n,2)*((s+1)*n-s))/2;
}
n-=2;
return (Math.pow(n,2)*((s+1)*n+s)+2)/2;
},elasticIn:function(n){
if(n==0||n==1){
return n;
}
var p=0.3;
var s=p/4;
n=n-1;
return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);
},elasticOut:function(n){
if(n==0||n==1){
return n;
}
var p=0.3;
var s=p/4;
return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;
},elasticInOut:function(n){
if(n==0){
return 0;
}
n=n*2;
if(n==2){
return 1;
}
var p=0.3*1.5;
var s=p/4;
if(n<1){
n-=1;
return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));
}
n-=1;
return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;
},bounceIn:function(n){
return (1-dojo.fx.easing.bounceOut(1-n));
},bounceOut:function(n){
var s=7.5625;
var p=2.75;
var l;
if(n<(1/p)){
l=s*Math.pow(n,2);
}else{
if(n<(2/p)){
n-=(1.5/p);
l=s*Math.pow(n,2)+0.75;
}else{
if(n<(2.5/p)){
n-=(2.25/p);
l=s*Math.pow(n,2)+0.9375;
}else{
n-=(2.625/p);
l=s*Math.pow(n,2)+0.984375;
}
}
}
return l;
},bounceInOut:function(n){
if(n<0.5){
return dojo.fx.easing.bounceIn(n*2)/2;
}
return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;
}};
}
if(!dojo._hasResource["epages.browser"]){
dojo._hasResource["epages.browser"]=true;
dojo.provide("epages.browser");
epages.Browser={};
(function(){
var _399=epages.Browser;
_399.engine="Unknown";
_399.version="Unknown";
if(window.opera){
_399.engine="Presto";
_399.version=window.opera.version();
}else{
var _39a=(navigator.appVersion+navigator.userAgent).toLowerCase();
if(_39a.match("msie")){
_399.engine="MSIE";
_399.version=(window.XDomainRequest&&dojo.isIE==7)?8:dojo.isIE;
var _39b=document.createElement("b");
_39b.style.cssText="max-height:1";
if(_39b.style.cssText.match("max-height")){
_399.version=6;
}
}else{
if(_39a.match("webkit")){
_399.engine="WebKit";
_399.version=dojo.isSafari;
}else{
if(_39a.match("gecko")){
_399.engine="Gecko";
_399.version=dojo.isFx||dojo.isFF;
}else{
if(_39a.match("khtml")){
_399.engine="KHTML";
}
}
}
}
}
(document.documentElement||document.body.parentNode).className+=" "+_399.engine+_399.version;
})();
(function(){
for(var _39c=15;_39c>3;_39c--){
var _39d=true;
if(navigator.plugins.length){
try{
var _39e=navigator.plugins["Shockwave Flash"].description;
_39d=_39e.slice(_39e.indexOf(".")-2,_39e.indexOf("."))>=_39c;
}
catch(e){
_39d=false;
}
}else{
try{
new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_39c);
}
catch(e){
_39d=false;
}
}
if(_39d){
epages.Browser.flashVersion=_39c;
break;
}
}
})();
}
if(!dojo._hasResource["epages.event"]){
dojo._hasResource["epages.event"]=true;
dojo.provide("epages.event");
epages.event.fire=function(_39f,_3a0){
if(epages.Browser.engine=="MSIE"){
try{
_39f.fireEvent("on"+_3a0);
}
catch(e){
}
}else{
if(_3a0=="click"||_3a0=="dblclick"||_3a0=="mousedown"||_3a0=="mousemove"||_3a0=="mouseout"||_3a0=="mouseover"||_3a0=="mouseup"){
var _3a1=document.createEvent("MouseEvents");
_3a1.initMouseEvent(_3a0,true,true,window,0,0,0,0,0,false,false,false,false,0,null);
}else{
var _3a1=document.createEvent("HTMLEvents");
_3a1.initEvent(_3a0,true,true);
}
_39f.dispatchEvent(_3a1);
}
};
}
if(!dojo._hasResource["epages.string"]){
dojo._hasResource["epages.string"]=true;
dojo.provide("epages.string");
epages.string={escapeJavaScript:function(str){
return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");
},escapeXml:function(str,_3a4){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_3a4){
str=str.replace(/'/gm,"&#39;");
}
return str;
},toBoolean:function(_3a5){
if(_3a5===undefined){
return false;
}
if(typeof _3a5=="boolean"){
return _3a5;
}
if(typeof _3a5!="string"){
throw new Error("Not a string value, got "+typeof (_3a5)+"!");
}
return _3a5.toLowerCase()==="true"||_3a5=="1"?true:false;
},toTime:function(_3a6,_3a7){
if(_3a6==""){
return null;
}
if(_3a7==null||_3a7.length==0){
_3a7=epages.vars.Locale.timeFormat;
}
var _3a8=epages.localize.getDojoDateTimePattern(_3a7);
date=dojo.date.locale.parse(_3a6,{selector:"date",datePattern:_3a8,timePattern:""});
if(date===null){
date=dojo.date.locale.parse(_3a6,{selector:"date",datePattern:"HH:mm a",timePattern:""});
}
if(date===null){
date=dojo.date.locale.parse(_3a6,{selector:"date",datePattern:"HH a",timePattern:""});
}
if(date===null){
date=dojo.date.locale.parse(_3a6,{selector:"date",datePattern:"HH",timePattern:""});
}
return date;
},cssSizeToNumber:function(_3a9){
if(typeof _3a9=="string"){
if(_3a9.match(/^([0-9]+)(px|pt)$/i)){
var n=parseInt(RegExp.$1);
return n;
}
if(_3a9.match(/^([0-9]*\.?[0-9]+)(pc|%|mm|cm|em|in|ex)$/i)){
var n=parseFloat(RegExp.$1);
return n;
}
if(_3a9.match(/^[0]+$/)){
return 0;
}
}
return NaN;
},split:function(_3ab,rx){
if(epages.Browser.engine!="MSIE"){
return _3ab.split(rx);
}
var _3ad="";
do{
_3ad+=Date.toString();
}while(_3ab.match(_3ad));
_3ab=_3ab.replace(rx,"|"+_3ad+"|");
var _3ae=_3ab.split(_3ad);
for(var i=0;i<_3ae.length;i++){
_3ae[i]=_3ae[i].replace(/^(?:\|)?(.*?)(?:\|)?$/g,function(tmp,_3b1){
return _3b1;
});
}
return _3ae;
}};
epages.string.Base64=function(){
};
epages.string.Base64.prototype={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(_3b2){
var _3b3="";
var chr1,chr2,chr3,enc1,enc2,enc3,enc4;
var i=0;
_3b2=this._utf8_encode(_3b2);
if(typeof (window.btoa)=="function"){
return window.btoa(_3b2);
}
while(i<_3b2.length){
chr1=_3b2.charCodeAt(i++);
chr2=_3b2.charCodeAt(i++);
chr3=_3b2.charCodeAt(i++);
enc1=chr1>>2;
enc2=((chr1&3)<<4)|(chr2>>4);
enc3=((chr2&15)<<2)|(chr3>>6);
enc4=chr3&63;
if(isNaN(chr2)){
enc3=enc4=64;
}else{
if(isNaN(chr3)){
enc4=64;
}
}
_3b3=_3b3+this._keyStr.charAt(enc1)+this._keyStr.charAt(enc2)+this._keyStr.charAt(enc3)+this._keyStr.charAt(enc4);
}
return _3b3;
},decode:function(_3bc){
var _3bd="";
var chr1,chr2,chr3;
var enc1,enc2,enc3,enc4;
var i=0;
_3bc=_3bc.replace(/[^A-Za-z0-9\+\/\=]/g,"");
if(typeof (window.atob)=="function"){
_3bd=window.atob(_3bc);
}else{
while(i<_3bc.length){
enc1=this._keyStr.indexOf(_3bc.charAt(i++));
enc2=this._keyStr.indexOf(_3bc.charAt(i++));
enc3=this._keyStr.indexOf(_3bc.charAt(i++));
enc4=this._keyStr.indexOf(_3bc.charAt(i++));
chr1=(enc1<<2)|(enc2>>4);
chr2=((enc2&15)<<4)|(enc3>>2);
chr3=((enc3&3)<<6)|enc4;
_3bd=_3bd+String.fromCharCode(chr1);
if(enc3!=64){
_3bd=_3bd+String.fromCharCode(chr2);
}
if(enc4!=64){
_3bd=_3bd+String.fromCharCode(chr3);
}
}
}
_3bd=this._utf8_decode(_3bd);
return _3bd;
},_utf8_encode:function(_3c6){
_3c6=_3c6.replace(/\r\n/g,"\n");
var _3c7="";
for(var n=0;n<_3c6.length;n++){
var c=_3c6.charCodeAt(n);
if(c<128){
_3c7+=String.fromCharCode(c);
}else{
if((c>127)&&(c<2048)){
_3c7+=String.fromCharCode((c>>6)|192);
_3c7+=String.fromCharCode((c&63)|128);
}else{
_3c7+=String.fromCharCode((c>>12)|224);
_3c7+=String.fromCharCode(((c>>6)&63)|128);
_3c7+=String.fromCharCode((c&63)|128);
}
}
}
return _3c7;
},_utf8_decode:function(_3ca){
var _3cb="";
var i=0;
var c=c1=c2=0;
while(i<_3ca.length){
c=_3ca.charCodeAt(i);
if(c<128){
_3cb+=String.fromCharCode(c);
i++;
}else{
if((c>191)&&(c<224)){
c2=_3ca.charCodeAt(i+1);
_3cb+=String.fromCharCode(((c&31)<<6)|(c2&63));
i+=2;
}else{
c2=_3ca.charCodeAt(i+1);
c3=_3ca.charCodeAt(i+2);
_3cb+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));
i+=3;
}
}
}
return _3cb;
}};
}
if(!dojo._hasResource["epages.lang.array"]){
dojo._hasResource["epages.lang.array"]=true;
dojo.provide("epages.lang.array");
$A=function(_3ce,_3cf){
return new epages.lang.Array(_3ce,_3cf);
};
epages.lang.Array=function(_3d0,_3d1){
if(_3d1===undefined){
_3d1=false;
}
var _3d2=[];
if(_3d0!==undefined){
if(_3d0._data!==undefined){
_3d0=_3d0._data;
}
if(_3d1){
for(var i=0,_3d4=_3d0.length;i<_3d4;i++){
_3d2.push(_3d0[i]);
}
}else{
_3d2=_3d0;
}
}
this._data=_3d2;
this.length=_3d2.length;
};
epages.lang.Array.prototype={_data:undefined,length:0,get:function(_3d5){
return this._data[_3d5];
},set:function(_3d6,_3d7){
this._data[_3d6]=_3d7;
},insertAt:function(_3d8,_3d9){
if(!_3d8){
this.unshift(_3d9);
}else{
if(_3d8==this.length){
this.push(_3d9);
}else{
var c=this._data;
for(var i=this.length;i>_3d8;i--){
c[i]=c[i-1];
}
c[_3d8]=_3d9;
this.length=c.length;
}
}
},push:function(){
for(var i=0,_3dd=arguments.length;i<_3dd;i++){
this._data.push(arguments[i]);
}
this.length=this._data.length;
},pop:function(){
var el=this._data.pop();
this.length=this._data.length;
return el;
},unshift:function(){
for(var i=0,_3e0=arguments.length;i<_3e0;i++){
this._data.unshift(arguments[i]);
}
this.length=this._data.length;
},shift:function(){
var el=this._data.shift();
this.length=this._data.length;
return el;
},grep:function(_3e2,_3e3){
if(_3e3===undefined){
return dojo.filter(this._data,_3e2);
}
return dojo.filter(this._data,_3e2,_3e3);
},map:function(_3e4,_3e5){
return dojo.map(this._data,_3e4,_3e5);
},each:function(_3e6,_3e7){
dojo.map(this._data,_3e6,_3e7);
return;
},match:function(_3e8){
var _3e9=[];
for(var i=0,_3eb=this._data.length;i<_3eb;i++){
var _3ec=this._data[i];
if(typeof _3ec.match=="function"&&_3ec.match(_3e8)){
_3e9.push(_3ec);
}
}
return _3e9;
},exists:function(_3ed){
return (this.find(_3ed)!==null);
},find:function(_3ee){
for(var i=0,_3f0=this._data.length;i<_3f0;i++){
if(_3ee===this._data[i]){
return i;
}
}
return null;
},remove:function(_3f1){
this._data.splice(_3f1,1);
this.length=this._data.length;
},unique:function(){
var _3f2=new epages.lang.Array();
var i=0;
while(i<this._data.length){
if(_3f2.find(this._data[i])==null){
_3f2.push(this._data[i]);
i++;
}else{
this._data.splice(i,1);
}
}
this.length=this._data.length;
},equals:function(_3f4){
if(_3f4.length==this.length){
if(typeof _3f4._data!="undefined"){
for(var i=0;i<this.length;i++){
if(this._data[i]!==_3f4._data[i]){
return false;
}
}
}else{
for(var i=0;i<this.length;i++){
if(this._data[i]!==_3f4[i]){
return false;
}
}
}
return true;
}else{
return false;
}
},merge:function(_3f6){
var c=[];
if(dojo.isArray(_3f6)){
c=_3f6;
}else{
if(_3f6._data!==undefined){
c=_3f6._data;
}
}
for(var i=0;i<c.length;i++){
this._data.push(c[i]);
}
this.length=this._data.length;
},join:function(_3f9){
return this._data.join(_3f9);
},toString:function(){
var a=this.map(function(v){
if(v===undefined){
return "undefined";
}else{
if(v==null){
return "null";
}else{
if(dojo.isArray(v)){
return $A(v).toString();
}else{
if(dojo.isObject(v)){
return v.toString();
}else{
return "\""+epages.string.escapeJavaScript(""+v)+"\"";
}
}
}
}
});
return "["+a.join(",")+"]";
},sort:function(_3fc){
return this._data.sort(_3fc);
}};
}
if(!dojo._hasResource["epages.lang.hash"]){
dojo._hasResource["epages.lang.hash"]=true;
dojo.provide("epages.lang.hash");
$H=function(_3fd){
return new epages.lang.Hash(_3fd);
};
epages.lang.Hash=function(_3fe){
this._data=new Object();
var data=this._data;
if(_3fe!==undefined){
if(typeof _3fe.each=="function"){
_3fe.each(function(pair){
data[pair.key]=pair.value;
});
}else{
for(var key in _3fe){
data[key]=_3fe[key];
}
}
}
};
epages.lang.Hash.prototype={_data:undefined,data:function(){
return this._data;
},each:function(_402){
for(var key in this._data){
var _404=this._data[key];
var pair=[key,_404];
pair.key=key;
pair.value=_404;
_402(pair);
}
},flatten:function(){
var _406="";
this.each(function(pair){
_406+="<element><key>"+pair.key+"</key><value>"+pair.value+"</value></element>\n";
});
return "<epages.lang.Hash>\n"+_406+"</epages.lang.Hash>\n";
},keys:function(){
var _408=[];
this.each(function(pair){
_408.push(pair.key);
});
return _408;
},values:function(){
var _40a=[];
this.each(function(pair){
_40a.push(pair.value);
});
return _40a;
},set:function(key,_40d){
this._data[key]=_40d;
},get:function(key){
return this._data[key];
},remove:function(key){
delete this._data[key];
},existsKey:function(key){
if(this._data[key]!==undefined){
return true;
}
for(var _411 in this._data){
if(_411==key){
return true;
}
}
return false;
},existsValue:function(_412){
return this.find(_412)!==undefined;
},find:function(_413){
for(var key in this._data){
if(this._data[key]===_413){
return key;
}
}
return undefined;
},toQueryString:function(){
var _415=[];
this.each(function(pair){
if(pair.value!==undefined&&pair.value!=null){
var _417=encodeURIComponent(pair.key);
if(dojo.isArray(pair.value)){
for(var i=0;i<pair.value.length;i++){
_415.push(_417+"="+encodeURIComponent(pair.value[i]));
}
}else{
_415.push(_417+"="+encodeURIComponent(pair.value));
}
}
});
return _415.join("&");
},toString:function(){
var _419=[];
this.each(function(pair){
var v=pair.value;
if(v===undefined){
v="undefined";
}else{
if(v===null){
v="null";
}else{
if(dojo.isArrayLike(v)){
v=$A(v).toString();
}else{
if(dojo.isObject(v)){
v=v.toString();
}else{
v="\""+epages.string.escapeJavaScript(""+v)+"\"";
}
}
}
}
_419.push("\""+epages.string.escapeJavaScript(pair.key)+"\":"+v);
});
return "{"+_419.join(",")+"}";
}};
}
if(!dojo._hasResource["epages.widget"]){
dojo._hasResource["epages.widget"]=true;
dojo.provide("epages.widget");
epages.topDojo.publish("epages/addGlobalSymbol",["$$",window]);
if(window.restrictedParent||$$===undefined){
$$=function(_41c){
for(var i=0;i<epages._windows.length;i++){
if(epages._windows[i].dijit!=null&&typeof epages._windows[i].dijit.byId=="function"){
var _41e=epages._windows[i].dijit.byId(_41c);
if(_41e){
return _41e;
}
}
}
};
}
epages.widget.parserClasses=$H();
dojo.parser.instantiateOrg=dojo.parser.instantiate;
dojo.parser.instantiate=function(_41f){
var w=epages.widget.parserClasses;
if(epages.Browser.engine!="Presto"){
var d=dojo;
d.forEach(_41f,function(node){
if(!node){
return;
}
var type=node.getAttribute("dojoType");
if((!type)||(!type.length)||w.existsKey(type)){
return;
}
w.set(type,1);
if(!dojo.isFunction(dojo.getObject(type))){
console.debug("add this to you script: dojo.%s(\"%s\");","require",type);
d.require(type);
}
});
}
return this.instantiateOrg(_41f);
};
dojo.declare("epages.widget.Popup",[dijit._Widget],{parent:"",around:"",hideOnBlur:false,_visible:false,show:function(){
dijit.popup.open({popup:this,parent:this.parent,around:this.around,orient:{"BR":"TR","BL":"TL"}});
this._visible=true;
dijit.focus(this.domNode);
},hide:function(){
dijit.popup.close(this);
},toggle:function(){
if(this._visible){
this.hide();
}else{
this.show();
}
},onClose:function(){
this._visible=false;
},_onBlur:function(){
if(this.hideOnBlur){
this.hide();
}
}});
epages.onIframeStart.push(function(){
dijit.registerWin(window);
});
}
if(!dojo._hasResource["epages.widget.TypedWidget"]){
dojo._hasResource["epages.widget.TypedWidget"]=true;
dojo.provide("epages.widget.TypedWidget");
dojo.declare("epages.widget.TypedWidget",[dijit._Widget,dijit._Templated],{postMixInProperties:function(){
this.inherited("postMixInProperties",arguments);
if(this._templateMapping!==undefined&&this.templateType!==undefined&&this._templateDirectory!==undefined){
if(this._templateMapping[this.templateType]!==undefined){
if(this.templateType!=this.defaultTemplateType){
this.templatePath=this._templateDirectory+"/"+this._templateMapping[this.templateType];
this.templateString="";
}
}else{
console.warn("Template type: \""+this.templateType+"\" does not exist in this widet - use default. ("+this.declaredClass+")");
}
}
}});
}
if(!dojo._hasResource["epages.io.xml"]){
dojo._hasResource["epages.io.xml"]=true;
dojo.provide("epages.io.xml");
epages.io.Xml=function(){
};
epages.io.Xml.prototype={loadSync:function(url,_425){
var _426;
var _427=_425!==undefined?dojo.xhrPost:dojo.xhrGet;
_427({url:url,handleAs:"xml",sync:true,preventCache:epages.constants.preventCache,load:function(data){
_426=data;
},content:_425});
return _426;
},loadAsync:function(url,_42a,_42b){
var _42c=_42b!==undefined?dojo.xhrPost:dojo.xhrGet;
_42c({url:url,handleAs:"xml",preventCache:epages.constants.preventCache,load:_42a,content:_42b});
return;
}};
}
if(!dojo._hasResource["epages.io.translation"]){
dojo._hasResource["epages.io.translation"]=true;
dojo.provide("epages.io.translation");
epages.io.Translation=function(url,_42e){
this.translation=new epages.lang.Hash();
this.loadedFiles=new epages.lang.Array();
if(url!==undefined){
if(_42e===undefined){
this.load(url);
}else{
this.loadLocale(url,(_42e!="auto")?_42e:undefined);
}
}
};
dojo.extend(epages.io.Translation,epages.io.Xml.prototype);
dojo.extend(epages.io.Translation,{translation:null,loadedFiles:null,useLocale:false,load:function(url,_430){
if(this.loadedFiles.exists(url)){
return true;
}
if(_430===undefined){
_430=false;
}
var _431=this.loadSync(url);
this.loadedFiles.push(url);
if(_431===undefined){
if(!_430){
throw new Error("translation undefined");
}
return false;
}
var tags=_431.getElementsByTagName("Translation");
for(var _433=0;_433<tags.length;_433++){
var _434=tags[_433];
if(_434.nodeType==1){
var data="";
for(var i=0;i<_434.childNodes.length;i++){
var _437=_434.childNodes[i];
data+=_437.nodeName.match(/notrans/i)?_437.firstChild.data:_437.data;
}
this.translation.set(_434.getAttribute("Keyword"),data);
}
}
return true;
},loadLocale:function(url,_439){
if(_439===undefined){
_439=dojo.locale;
}
var _43a=_439.split("-");
var _43b=this.load(url+"."+_43a[0]+".xml",true);
if(this.useLocale&&_43a.length>1){
this.load(url+"."+_43a[0]+"_"+_43a[1].toUpperCase()+".xml",true);
}
return _43b;
},exists:function(key){
return this.translation.existsKey(key)||(this!=epages.io.dictionary&&epages.io.dictionary.translation.existsKey(key));
},get:function(key,vars){
var _43f=this.translation.get(key);
if(_43f===undefined&&this!=epages.io.dictionary){
return epages.io.dictionary.get(key,vars);
}
return (_43f===undefined)?"{"+key+"}":this.replaceVars(_43f,vars);
},replaceLanguageTags:function(txt){
var _441=new RegExp("{(.*?)}","g");
return txt.replace(_441,dojo.hitch(this,function(_442,tag){
return this.get(tag);
}));
},replaceVars:function(txt,vars){
var _446=new RegExp("#([a-zA-Z_][a-zA-Z0-9_]*)","g");
return txt.replace(_446,dojo.hitch(vars,function(_447,_448){
return this[_448]!==undefined?this[_448]:_447;
}));
}});
epages.io.dictionary=new epages.io.Translation(dojo.moduleUrl("epages","translation"),"auto");
}
if(!dojo._hasResource["epages.html"]){
dojo._hasResource["epages.html"]=true;
dojo.provide("epages.html");
dojo.mixin(epages.html,{getChildNodesByTagName:function(_449,_44a){
returnValue=[];
for(var i=0;i<_449.childNodes.length;i++){
var e=_449.childNodes[i];
if(e.nodeName==_44a){
returnValue.push(e);
}
}
return returnValue;
},getElementsByClassName:function(_44d,_44e){
if(_44e==null){
_44e=dojo.body();
}
return dojo.query("."+_44d,_44e);
},replaceClass:function(node,_450,_451){
var _452=new RegExp("(^|\\s+)"+_451+"($|\\s+)","g");
node.className=node.className.replace(_452,"$1"+_450+"$2");
},removeChildren:function(node){
while(node.firstChild){
node.removeChild(node.firstChild);
}
},disableHrefsAndActions:function(_454){
if(_454==null){
_454=dojo.body();
}
var _455=_454.getElementsByTagName("a");
for(var i=0;i<_455.length;i++){
var tag=_455[i];
tag.style.cursor="default";
if(typeof tag.getAttribute("onclick")=="string"&&(tag.getAttribute("onclick")||"").match("openWindow")){
tag.onclick=function(){
return false;
};
}
dojo.connect(tag,"onclick",function(evt){
dojo.stopEvent(evt);
return;
});
if(tag.getAttribute("href")){
tag.removeAttribute("href");
}
if(tag.getAttribute("target")){
tag.removeAttribute("target");
}
}
var _459=_454.getElementsByTagName("form");
for(var i=0;i<_459.length;i++){
_459[i].onsubmit=function(){
return false;
};
}
var _45a=["input","button","select","option","a"];
var _45b=["onchange","onclick","onselect","onkeyup","onkeypress","onmouseup"];
for(var j=0;j<_45a.length;j++){
var _45d=_454.getElementsByTagName(_45a[j]);
for(var i=0;i<_45d.length;i++){
var e=_45d[i];
for(var k=0;k<_45b.length;k++){
var _460=e.getAttribute(_45b[k]);
if(_460){
if((typeof _460=="string")||(typeof _460=="function")){
dojo.connect(e,_45b[k],dojo,"stopEvent");
e.setAttribute(_45b[k],"return false;");
}
}
}
}
}
},getHref:function(_461){
if(_461.outerHTML){
var html=_461.outerHTML;
var href=html.match(/\s*href\s*\=\s*["'](.*?)["']/i);
if(href&&href[1]){
return href[1];
}
return null;
}
return _461.getAttribute("href");
},isInnerEvent:function(evt,_465){
if(!dojo.isArray(_465)){
_465=[_465];
}
var _466=evt.explicitOriginalTarget;
for(var i=0;i<_465.length;i++){
if(dojo.isDescendant(_466,_465[i])){
return true;
}
}
return false;
},encodeEntity:function(_468,_469){
if(_469==null){
_469=false;
}
var rx=new RegExp("\r?\n","g");
var _46b=epages.string.split(_468,rx);
var _46c=document.createTextNode("");
var node=document.createElement("span");
node.appendChild(_46c);
for(var i=0;i<_46b.length;i++){
_46c.nodeValue=_46b[i];
_46b[i]=node.innerHTML;
}
return _46b.join(_469?"<br/>\n":"\n");
},decodeEntity:function(_46f,_470){
if(_470==null){
_470=false;
}
var node=document.createElement("span");
node.innerHTML=_46f;
var _472=node.firstChild.nodeValue;
if(_470){
_472=_472.replace(/\<br\s*\/?\>\r?\n/gi,"\n");
}
return _472;
},insertAtCursor:function(_473,_474,doc){
if(doc===undefined){
doc=window.document;
}
var _476=$(_474,doc);
if(doc.selection){
_476.focus();
sel=doc.selection.createRange();
sel.text=_473;
}else{
if(_476.selectionStart||_476.selectionStart=="0"){
var _477=_476.selectionStart;
var _478=_476.selectionEnd;
_476.value=_476.value.substring(0,_477)+_473+_476.value.substring(_478,_476.value.length);
_476.selectionStart=_477+_473.length;
_476.selectionEnd=_477+_473.length;
}else{
_476.value+=_473;
}
}
epages.event.fire(_476,"change");
}});
}
if(!dojo._hasResource["epages.html.element"]){
dojo._hasResource["epages.html.element"]=true;
dojo.provide("epages.html.element");
epages.html.Element=function(_479){
if(_479===undefined){
throw new Error("epages.html.Element: initialize without object");
}else{
if(typeof _479=="string"){
_479=$(_479);
if(_479===undefined){
throw new Error("epages.html.Element: initialize without object, unknown element id");
}
}
}
this.object=_479;
};
dojo.extend(epages.html.Element,{object:undefined,get:function(){
if((dojo.hasClass(this.object,"Radio")||dojo.hasClass(this.object,"Checkbox"))&&!this.object.checked){
return "";
}
return this.object.value||this.object.originalValue||"";
},set:function(_47a){
var type=this.object.type;
switch(type){
case "checkbox":
case "radio":
var _47c=this.object.form.elements;
var name=this.object.name;
dojo.forEach(_47c,function(_47e){
if(_47e.type==type&&_47e.name==name&&_47e.value==_47a){
_47e.checked=true;
}
});
break;
default:
this.object.value=_47a;
}
},connectChangeEvent:function(_47f){
dojo.connect(this.object,(this.object.type=="radio"?"onclick":"onchange"),_47f);
},callOnChange:function(){
epages.event.fire(this.object,"change");
},firstElement:function(_480,_481){
var _482=undefined;
var data=this.object.childNodes;
for(var _484=0;_484<data.length&&_482===undefined;_484++){
if(_480!=1&&data[_484].nodeType==_480||data[_484].nodeType==1&&data[_484].nodeName==_481){
_482=data[_484];
}
}
return (_482);
},firstComment:function(){
var _485=this.firstElement(8,"COMMENT");
return (_485===undefined?undefined:_485.data);
},getIframeDocument:function(_486){
if(_486===undefined&&this.object.tagName.toLowerCase()=="iframe"){
_486=this.object;
}
if(_486===undefined){
return _486;
}
return (_486.contentDocument===undefined)?_486.contentWindow.document:_486.contentDocument;
},addClassName:function(_487){
dojo.addClass(this.object,_487);
},removeClassName:function(_488){
dojo.removeClass(this.object,_488);
},changeClassName:function(_489,_48a){
epages.html.replaceClass(this.object,_48a,_489);
},getAbsolutePosition:function(_48b){
var node=this.object;
var x=0,y=0;
while(node&&node!=_48b){
if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){
x+=node.offsetLeft;
y+=node.offsetTop;
}
node=node.offsetParent;
}
return {"x":x,"y":y};
},getPositionToParent:function(_48f){
var node=this.object;
var x=0,y=0;
while(node!=undefined&&_48f!==node){
if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){
x+=node.offsetLeft;
y+=node.offsetTop;
}
node=node.parentNode;
}
return {"x":x,"y":y};
},getRelativePosition:function(){
var node=this.object;
var x=0,y=0;
var _496=dojo.getComputedStyle(node).position;
while(node!=undefined&&_496!="relative"&&_496!="absolute"){
if(node.offsetLeft!==undefined&&node.offsetTop!==undefined){
x+=node.offsetLeft;
y+=node.offsetTop;
}
node=node.offsetParent;
_496=dojo.getComputedStyle(node).position;
}
return {"x":x,"y":y};
},setCss:function(_497){
for(var _498 in _497){
this.object.style[_498]=_497[_498];
}
},makeWidgets:function(){
dojo.parser.parse(this.object);
},toQueryString:function(){
return encodeURIComponent(this.object.name)+"="+encodeURIComponent(this.get());
},addEventListener:function(_499,_49a,_49b){
if(_49b==null){
_49b=false;
}
_499=_499.replace(/^on/,"");
if(this.object.addEventListener){
return this.object.addEventListener(_499,_49a,_49b);
}else{
if(this.object.attachEvent){
return this.object.attachEvent("on"+_499,_49a);
}
}
throw new Error("element.addEventListener: could not add event listener for event "+_499);
},removeEventListener:function(_49c,_49d,_49e){
if(_49e==null){
_49e=false;
}
_49c=_49c.replace(/^on/,"");
if(this.object.removeEventListener){
return this.object.removeEventListener(_49c,_49d,_49e);
}else{
if(this.object.detachEvent){
return this.object.detachEvent("on"+_49c,_49d);
}
}
console.debug("element.removeEventListener: could not remove event listener for event "+_49c+(typeof this.object.detachEvent));
return false;
},replaceChild:function(_49f,_4a0){
_49f=this._changeNodeDocument(_49f,_4a0.ownerDocument);
this.object.replaceChild(_49f,_4a0);
},appendChild:function(_4a1){
_4a1=this._changeNodeDocument(_4a1,this.object.ownerDocument);
this.object.appendChild(_4a1);
},_changeNodeDocument:function(node,_4a3){
if(node.ownerDocument!=_4a3&&node.outerHTML!=null){
var _4a4=node.outerHTML;
node=_4a3.createElement("span");
node.outerHTML=_4a4;
}
return node;
},getLabel:function(){
var id=this.object.id;
if(id==null){
return;
}
var _4a6=this.object.ownerDocument.getElementsByTagName("label");
for(var i=0;i<_4a6.length;i++){
if(_4a6[i].htmlFor==id){
return _4a6[i].innerHTML;
}
}
}});
$E=function(_4a8){
return new epages.html.Element(_4a8);
};
}
if(!dojo._hasResource["epages.widget.LocalizedWidget"]){
dojo._hasResource["epages.widget.LocalizedWidget"]=true;
dojo.provide("epages.widget.LocalizedWidget");
dojo.declare("epages.widget.LocalizedWidget",[epages.widget.TypedWidget],{translation:new epages.io.Translation(),translationName:null,constructor:function(){
this.translation.loadLocale(this.getTranslationName());
},translate:function(key,vars){
return this.translation.get(key,vars);
},getTranslationName:function(){
if(this.translationName==null){
this.translationName=this.templatePath.toString().replace(".html","");
}
return this.translationName;
},createNodesFromText:function(text){
return dijit._Templated._createNodesFromText(this.translation.replaceLanguageTags(text))[0];
},buildRendering:function(){
var _4ac=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache,this.translation);
var node;
if(dojo.isString(_4ac)){
var _4ae=this.declaredClass,_4af=this;
var tstr=dojo.string.substitute(_4ac,this,function(_4b1,key){
if(key.charAt(0)=="!"){
_4b1=_4af[key.substr(1)];
}
if(typeof _4b1=="undefined"){
throw new Error(_4ae+" template:"+key);
}
if(!_4b1){
return "";
}
return key.charAt(0)=="!"?_4b1:_4b1.toString().replace(/"/g,"&quot;");
},this);
node=this.createNodesFromText(tstr);
}else{
node=_4ac.cloneNode(true);
}
this._attachTemplateNodes(node);
var _4b3=this.srcNodeRef;
if(_4b3&&_4b3.parentNode){
$E(_4b3.parentNode).replaceChild(node,_4b3);
}
this.domNode=node;
if(this.widgetsInTemplate){
var _4b4=dojo.parser.parse(node);
this._attachTemplateNodes(_4b4,function(n,p){
return n[p];
});
}
this._fillContent(_4b3);
},getCachedTemplate:function(_4b7,_4b8,_4b9,_4ba){
var _4bb=dijit._Templated._templateCache;
var key=_4b8||_4b7;
var _4bd=_4bb[key];
if(_4bd){
return _4bd;
}
if(!_4b8){
_4b8=dijit._Templated._sanitizeTemplateString(dojo._getText(_4b7));
}
_4b8=dojo.string.trim(_4b8);
if(_4b8.match(/\$\{([^\}]+)\}/g)||_4b9){
return (_4bb[key]=_4b8);
}else{
return (_4bb[key]=this.createNodesFromText(_4b8));
}
}});
}
if(!dojo._hasResource["epages.event.interval"]){
dojo._hasResource["epages.event.interval"]=true;
dojo.provide("epages.event.interval");
epages.event.interval={_container:[],_setIntervalSecure:function(_4be,task,_4c0){
if(this._container[_4be]!=null){
setTimeout(dojo.hitch(this,function(){
this._setIntervalSecure(_4be,task,_4c0);
}),_4c0);
task();
}
},set:function(task,_4c2){
var _4c3=this._container.length;
this._container.push(_4c3);
setTimeout(dojo.hitch(this,function(){
this._setIntervalSecure(_4c3,task,_4c2);
}),_4c2);
return _4c3;
},clear:function(_4c4){
this._container[_4c4]=null;
}};
}
if(!dojo._hasResource["epages.widget.Slides"]){
dojo._hasResource["epages.widget.Slides"]=true;
dojo.provide("epages.widget.Slides");
dojo.declare("epages.widget.Slides",[epages.widget.LocalizedWidget],{templateString:"<div class=\"SlideShow\">\n  <div class=\"SlideshowContainer\">\n    <div class=\"MainContainer\" dojoAttachPoint=\"mainNode\">\n      <div class=\"DescriptionContainer\" dojoAttachPoint=\"descriptionNode\"></div>\n      <div class=\"MiscContainer\" dojoAttachPoint=\"miscNode\">\n        <div class=\"MiscClipper\" dojoAttachPoint=\"miscNodeClipper\">\n          <div class=\"Counter\" dojoAttachPoint=\"countNode\"></div>\n          <div class=\"Date\" dojoAttachPoint=\"dateNode\"></div>\n          <div class=\"Title\" dojoAttachPoint=\"titleNode\"></div>\n        </div>\n      </div>\n      <div class=\"ImageContainer\">\n        <div class=\"ImageAligner\">\n          <table class=\"ImageTableTemplate\" dojoAttachPoint=\"imageTable\"><tr><td>\n            <b></b>\n          </td></tr></table>\n        </div>\n      </div>\n      <div class=\"ControlContainer\">\n        <div class=\"ControlBar\" dojoAttachPoint=\"controlNode\"></div>\n      </div>\n    </div>\n  </div>\n</div>\n",imagePath:epages.themeUrl("images"),translationName:dojo.moduleUrl("epages.widget","templates/translation"),loaderImagePath:epages.themeUrl("images")+"/img_busy.gif",errorImagePath:epages.themeUrl("images")+"/slideshow_img_broken_image.png",controlBarImages:[[epages.themeUrl("images")+"/slideshow_img_bg.png",epages.themeUrl("images")+"/slideshow_img_bg_small.png",epages.themeUrl("images")+"/slideshow_img_bg_smaller.png"],[epages.themeUrl("images")+"/slideshow_ico_l_rewind.png",epages.themeUrl("images")+"/slideshow_ico_s_rewind.png"],[epages.themeUrl("images")+"/slideshow_ico_l_pause.png",epages.themeUrl("images")+"/slideshow_ico_s_pause.png"],[epages.themeUrl("images")+"/slideshow_ico_l_play.png",epages.themeUrl("images")+"/slideshow_ico_s_play.png"],[epages.themeUrl("images")+"/slideshow_ico_l_overview.png",epages.themeUrl("images")+"/slideshow_ico_s_overview.png"],[epages.themeUrl("images")+"/slideshow_ico_l_details.png",epages.themeUrl("images")+"/slideshow_ico_s_details.png"],[epages.themeUrl("images")+"/slideshow_ico_l_forward.png",epages.themeUrl("images")+"/slideshow_ico_s_forward.png"]],delay:3500,protraction:1200,imageWidth:"450px",imageHeight:"300px",tiny:false,stopped:false,overview:true,imageClickOverview:true,showName:true,showDescription:true,showControls:true,showMisc:true,showIndex:0,_images:undefined,_oldShowIndex:0,_loadedIndex:0,_loadedImages:0,_pauseIcon:0,_playIcon:0,_fadeEasing:dojo.fx.easing.easeOut,_overviewArea:null,_overviewBackground:null,_overviewImageCounter:null,_controlBarFadeOut:null,_playerBeacon:null,_hiddenDetails:false,_changingImage:true,_globalOverview:true,_reAlignReady:true,_delayExec:function(task,_4c6){
return setTimeout(dojo.hitch(this,task),_4c6);
},_getAlphaImage:function(_4c7,_4c8){
var _4c9=document.createElement("span");
var _4ca=document.createElement("span");
var _4cb="";
if(epages.Browser.engine=="MSIE"&&_4c7.match(".png")){
_4c8=_4c8?"scale":"crop";
_4cb="class='AlphaImage'";
_4ca.style.zoom="1";
_4ca.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+encodeURI(_4c7)+"', sizingMethod='"+_4c8+"')";
}
var _4cc="<img "+_4cb+" alt='' src='"+_4c7+"' onerror=''/>";
_4ca.innerHTML=_4cc;
_4c9.appendChild(_4ca);
_4c9.className="Image";
return _4c9;
},_drawControlBar:function(){
if(this.tiny){
this.controlNode.className="ControlBarMini";
}
if(!this.showControls){
this.controlNode.style.display="none";
}
var _4cd=0;
if(!this.overview||!this.showDescription){
_4cd=1;
}else{
if(!this.overview&&!this.showDescription){
_4cd=2;
}
}
var _4ce=this.tiny?document.createElement("div"):this._getAlphaImage(this.controlBarImages[0][_4cd]);
_4ce.className="ControlBarBg";
this.controlNode.appendChild(_4ce);
if(!this.overview&&this.showControls){
_4ce.parentNode.style.width=(_4ce.offsetWidth-(this.tiny?16:32))+"px";
}
if(!this.showDescription&&this.showControls){
_4ce.parentNode.style.width=(_4ce.offsetWidth-(this.tiny?16:32))+"px";
}
var _4cf=this._getAlphaImage(this.controlBarImages[1][this.tiny?1:0]);
_4cf.className="SlideshowButton";
this.controlNode.appendChild(_4cf);
dojo.connect(_4cf,"onclick",this,"_rewindClick");
var _4d0=this._getAlphaImage(this.controlBarImages[2][this.tiny?1:0]);
_4d0.className="SlideshowButton";
if(this.stopped){
_4d0.style.position="absolute";
_4d0.style.visibility="hidden";
}
this.controlNode.appendChild(_4d0);
dojo.connect(_4d0,"onclick",this,"_pauseClick");
this._pauseIcon=_4d0;
playIcon=this._getAlphaImage(this.controlBarImages[3][this.tiny?1:0]);
playIcon.className="SlideshowButton";
if(!this.stopped){
playIcon.style.position="absolute";
playIcon.style.visibility="hidden";
}
this.controlNode.appendChild(playIcon);
dojo.connect(playIcon,"onclick",this,"_playClick");
this._playIcon=playIcon;
if(this.overview){
var _4d1=this._getAlphaImage(this.controlBarImages[4][this.tiny?1:0]);
_4d1.className="SlideshowButton";
this.controlNode.appendChild(_4d1);
dojo.connect(_4d1,"onclick",this,"_overviewClick");
}
if(this.showDescription){
var _4d2=this._getAlphaImage(this.controlBarImages[5][this.tiny?1:0]);
_4d2.className="SlideshowButton";
this.controlNode.appendChild(_4d2);
dojo.connect(_4d2,"onclick",this,"_detailsClick");
}
var _4d3=this._getAlphaImage(this.controlBarImages[6][this.tiny?1:0]);
_4d3.className="SlideshowButton";
this.controlNode.appendChild(_4d3);
dojo.connect(_4d3,"onclick",this,"_forwardClick");
dojo.style(this.controlNode,"opacity",0);
return [_4cf,playIcon,_4d0,_4d1?_4d1:null,_4d2?_4d2:null,_4d3];
},_controlBarButtonOver:function(_4d4){
dojo.addClass(_4d4.currentTarget,"Highlighted");
document.onselectstart=function(){
return false;
};
},_controlBarButtonOut:function(_4d5){
dojo.removeClass(_4d5.currentTarget,"Highlighted");
dojo.removeClass(_4d5.currentTarget,"Hit");
document.onselectstart=function(){
return true;
};
},_controlBarButtonDown:function(_4d6){
dojo.addClass(_4d6.currentTarget,"Hit");
},_controlBarButtonUp:function(_4d7){
dojo.removeClass(_4d7.currentTarget,"Hit");
},_showControlBar:function(){
clearTimeout(this._controlBarFadeOut);
dojo.fadeIn({node:this.controlNode,duration:350,easing:this._fadeEasing}).play();
},_hideControlBar:function(){
this._controlBarFadeOut=this._delayExec(function(){
if(this.controlNode.offsetWidth==0){
dojo.style(this.controlNode,"opacity",0);
}else{
dojo.fadeOut({node:this.controlNode,duration:350}).play();
}
},1000);
},_drawErrorImage:function(_4d8){
var _4d9=_4d8.currentTarget;
_4d9.src=this.errorImagePath;
_4d9.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.errorImagePath+"', sizingMethod='scale')";
},_playClickStartTimer:function(){
this._playIcon.style.position="absolute";
this._playIcon.style.visibility="hidden";
this._pauseIcon.style.position="relative";
this._pauseIcon.style.visibility="visible";
this._playerBeacon=epages.event.interval.set(dojo.hitch(this,this._setNextImage),this.delay);
},_playClick:function(){
this._setNextImage();
this._playClickStartTimer();
},_pauseClick:function(){
this._pauseIcon.style.position="absolute";
this._pauseIcon.style.visibility="hidden";
this._playIcon.style.position="relative";
this._playIcon.style.visibility="visible";
epages.event.interval.clear(this._playerBeacon);
},_overviewClick:function(_4da){
if(typeof (_4da)=="object"){
_4da=null;
}
this._pauseClick();
if(this._loadedIndex>=this.showIndex&&!this._overviewArea){
var _4db=document.createElement("div");
_4db.className="OverviewBackground";
dojo.style(_4db,"opacity",0);
dojo.addClass(dojo.body(),"OverviewAreaVisible");
var _4dc="<div class='Background'>";
_4dc+="</div>";
_4db.innerHTML=_4dc;
var _4dd=document.createElement("div");
_4dd.className="OverviewArea";
var info=this._images[this.showIndex];
if(!info){
var info={};
info.imageTable=this._createImageTable();
info.imageTable.getElementsByTagName("b")[0].appendChild(this._getAlphaImage(epages.themeUrl("images")+"/plain.gif"));
this._images.push(info);
}else{
this._oldShowIndex=this.showIndex;
}
var _4df=this._images[this.showIndex].imageTable.cloneNode(true);
with(_4df.getElementsByTagName("b")[0]){
innerHTML="";
appendChild(this._getAlphaImage(epages.themeUrl("images")+"/plain.gif"));
}
_4dd.appendChild(_4df);
var _4e0=document.createElement("div");
_4e0.className="BackgroundEventLayer";
_4dd.getElementsByTagName("td")[0].appendChild(_4e0);
var _4e1=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_rewind_overview.png");
_4e1.className="Image SlideshowButton";
dojo.connect(_4e1,"onclick",this,"_setPrevImage");
dojo.connect(_4e1,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4e1,"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_4e1,"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_4e1,"onmouseup",this,"_controlBarButtonUp");
var _4e2=document.createElement("i");
_4e2.appendChild(_4e1);
_4e2.className="OverviewRewindButton";
var _4e3=this._getAlphaImage(epages.themeUrl("images")+"/slideshow_ico_l_forward_overview.png");
_4e3.className="Image SlideshowButton";
dojo.connect(_4e3,"onclick",this,"_setNextImage");
dojo.connect(_4e3,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4e3,"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_4e3,"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_4e3,"onmouseup",this,"_controlBarButtonUp");
var _4e4=document.createElement("i");
_4e4.appendChild(_4e3);
_4e4.className="OverviewForwardButton";
var _4e5=this._getAlphaImage(epages.themeUrl("images")+"/layer_img_closebutton.png");
_4e5.className="Image SlideshowButton";
_4e5.style.clip="rect(0, 40px, 20px, 0)";
dojo.connect(_4e5,"onclick",this,"_destroyOverview");
dojo.connect(_4e5,"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_4e5,"onmouseout",this,"_controlBarButtonOut");
var _4e6=document.createElement("i");
_4e6.appendChild(_4e5);
_4e6.className="OverviewCloseButton";
var _4e7=document.createElement("b");
_4e7.className="OverviewImageCounter";
if(!this.showMisc){
_4e7.style.display="none";
}
dojo.style(_4dd,"background","url("+this.loaderImagePath+") center no-repeat");
dojo.style(_4dd.getElementsByTagName("span")[0],"opacity",0);
var _4e8=info.imageLarge?info.imageLarge:info.image;
var _4e9=_4dd.getElementsByTagName("img")[0];
_4e9.src=_4da||_4e8;
_4e9.style.height="auto";
_4e9.style.width="auto";
_4e9.style.filter="alpha(opacity=0)";
if(_4e9.src.match(".png")){
_4e9.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4e9.src+"')";
}else{
_4e9.style.filter="alpha()";
_4e9.parentNode.style.filter="none";
}
dojo.body().appendChild(_4db);
dojo.body().appendChild(_4dd);
var _4ea=true;
var _4eb=this._images[0];
for(var i=0;i<this._images.length;i++){
if(this._images[i].imageLarge!=_4eb.imageLarge){
_4ea=false;
break;
}else{
_4eb=this._images[i];
}
}
if(this._images.length>1&&!_4da&&!_4ea){
if(this.showControls){
_4dd.getElementsByTagName("span")[1].appendChild(_4e2);
_4dd.getElementsByTagName("span")[1].appendChild(_4e4);
}
_4dd.getElementsByTagName("span")[1].appendChild(_4e7);
}
_4dd.getElementsByTagName("span")[1].appendChild(_4e6);
if(_4e9.complete){
this._delayExec(this._drawOverviewImage,1);
}else{
dojo.connect(_4e9,"onload",this,"_drawOverviewImage");
}
dojo.connect(_4e9,"onerror",this,"_drawErrorImage");
dojo.connect(_4e0,"onclick",this,"_destroyOverview");
_4db.style.zoom=1;
dojo.style(_4db,"opacity",1);
this._overviewBackground=_4db;
this._overviewArea=_4dd;
this._overviewImageCounter=_4e7;
this._changeOverviewDimensions();
}
},_changeOverviewDimensions:function(){
if(this._overviewArea!=null){
var _4ed=this._overviewArea.getElementsByTagName("img")[0];
var _4ee=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;
var _4ef=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;
var _4f0=0;
if(_4ee>dojo.body().offsetHeight+10){
_4f0=_4ee;
}else{
_4f0=dojo.body().offsetHeight+10;
}
this._overviewBackground.style.height=_4f0+"px";
this._overviewArea.style.height=_4ee+"px";
setTimeout(dojo.hitch(this,function(){
var _4f1=this._images[this.showIndex]._overviewWidth;
var _4f2=this._images[this.showIndex]._overviewHeight;
if(_4f1&&_4f2&&(_4f1>_4ef-50||_4f2>_4ee-50)){
if((_4ef/_4ee)/(_4f1/_4f2)>1){
_4ed.style.height=(_4ee-50)+"px";
_4ed.style.width="auto";
}else{
_4ed.style.width=(_4ef-50)+"px";
_4ed.style.height="auto";
}
}
this._reAlignOverview();
}),1);
}
},_reAlignOverview:function(){
if(this._overviewArea!=null&&this._reAlignReady){
this._reAlignReady=false;
this._delayExec(function(){
if(this._overviewArea!=null){
var _4f3=dojo.body().pageYOffset?dojo.body().pageYOffset:document.documentElement.scrollTop;
dojo.fx.slideTo({node:this._overviewArea,top:_4f3,duration:350,easing:this._fadeEasing}).play();
}
this._reAlignReady=true;
},50);
}
},_detailsClick:function(){
if(this._hiddenDetails){
this._hiddenDetails=false;
this.descriptionNode.style.visibility="visible";
this.miscNode.style.visibility="visible";
}else{
this._hiddenDetails=true;
this.descriptionNode.style.visibility="hidden";
this.miscNode.style.visibility="hidden";
}
},_forwardClick:function(){
this._pauseClick();
this._setNextImage();
},_rewindClick:function(){
this._pauseClick();
this._setPrevImage();
},_drawOverviewImage:function(){
this._delayExec(function(){
var _4f4=this._overviewArea.getElementsByTagName("img")[0];
if(!this._images[this.showIndex]._overviewWidth){
_4f4.style.position="absolute";
this._images[this.showIndex]._overviewWidth=_4f4.width;
this._images[this.showIndex]._overviewHeight=_4f4.height;
_4f4.style.position="static";
}
if(this._images[this.showIndex]._overviewHeight<100){
_4f4.style.marginTop=(45-this._images[this.showIndex]._overviewHeight/2)+"px";
}else{
_4f4.style.marginTop="0";
}
this._changeOverviewDimensions();
this._overviewImageCounter.innerHTML=(this.showIndex+1)+" | "+this._images.length;
this._overviewArea.getElementsByTagName("b")[0].style.visibility="visible";
dojo.style(this._overviewArea.getElementsByTagName("b")[0],"opacity","1");
dojo.style(this._overviewArea,"background","");
dojo.fadeIn({node:this._overviewArea.getElementsByTagName("span")[0],duration:this.protraction,easing:this._fadeEasing}).play();
},400);
},_destroyOverview:function(){
if(this._overviewArea){
if(dojo.style(this._overviewArea.getElementsByTagName("span")[0],"opacity")>0.5){
dojo.fadeOut({node:this._overviewArea,duration:this.protraction/2,easing:this._fadeEasing}).play();
this._delayExec(function(){
if(this._overviewArea){
dojo.body().removeChild(this._overviewArea);
dojo.body().removeChild(this._overviewBackground);
delete this._overviewArea;
delete this._overviewBackground;
this.showIndex=this._oldShowIndex;
delete this._oldShowIndex;
dojo.removeClass(dojo.body(),"OverviewAreaVisible");
}
},this.protraction/2.2);
}
}
},_checkGlobalOverview:function(){
var _4f5=this._images[this.showIndex].image.match("dijit/themes/epages/images/plain.gif")||this._images[this.showIndex].image.match("transparentpixel.gif");
if(this._globalOverview&&!_4f5){
this._overviewClick();
}
},_showImageDetails:function(){
var info=this._images[this.showIndex];
this.descriptionNode.innerHTML=info.description;
this.dateNode.innerHTML=info.date;
this.titleNode.innerHTML=info.name;
this.countNode.innerHTML=(this.showIndex+1)+" | "+(this._images.length);
this.miscNode.style.top=this.miscNodeClipper.offsetHeight+"px";
this.descriptionNode.style.top="-"+this.descriptionNode.offsetHeight+"px";
dojo.style(this.miscNode,"opacity",0.8);
dojo.style(this.descriptionNode,"opacity",0.8);
if(this.descriptionNode.innerHTML.length>1){
dojo.fx.slideTo({node:this.descriptionNode,duration:400,easing:this._fadeEasing}).play();
}
dojo.fx.slideTo({node:this.miscNode,duration:400,easing:this._fadeEasing}).play();
},_hideImageDetails:function(){
dojo.fadeOut({node:this.miscNode,duration:200,easing:this._fadeEasing}).play();
dojo.fadeOut({node:this.descriptionNode,duration:200,easing:this._fadeEasing}).play();
},_setNextImage:function(){
if(this._overviewArea){
if(dojo.style(this._overviewArea.getElementsByTagName("span")[0],"opacity")>=0.5){
this._setImage(this.showIndex>this._images.length-2?0:this.showIndex+1);
}
}else{
this._setImage(this.showIndex>this._images.length-2?0:this.showIndex+1);
}
},_setPrevImage:function(){
if(this._overviewArea){
if(dojo.style(this._overviewArea.getElementsByTagName("span")[0],"opacity")>=0.5){
this._setImage(this.showIndex==0?this._images.length-1:this.showIndex-1);
}
}else{
this._setImage(this.showIndex==0?this._images.length-1:this.showIndex-1);
}
},_setImage:function(_4f7){
if(this._images[_4f7]){
if(this._overviewArea){
if(!this._oldShowIndex){
this._oldShowIndex=this.showIndex;
}
var _4f8=this._overviewArea.getElementsByTagName("span")[0];
var _4f9=_4f8.getElementsByTagName("img")[0];
dojo.style(this._overviewArea,"background","url("+this.loaderImagePath+") center no-repeat");
dojo.fadeOut({node:_4f8,duration:this.protraction,easing:this._fadeEasing}).play();
this._delayExec(function(){
var info=this._images[this.showIndex];
dojo.style(_4f8,"opacity",0);
var _4fb=info.imageLarge||info.image;
var _4fc=this._overviewArea.getElementsByTagName("img")[0];
_4fc.src=_4fb;
_4fc.style.width="auto";
_4fc.style.height="auto";
_4fc.style.filter="alpha(opacity=0)";
if(_4fb.match(".png")){
_4fc.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4fb+"')";
}else{
_4fc.style.filter="alpha()";
_4fc.parentNode.style.filter="none";
}
if(_4fc.complete){
this._delayExec(this._drawOverviewImage,1);
}
},this.protraction);
}else{
var _4fd=this._images[this.showIndex].imageTable.getElementsByTagName("b")[0];
var _4fe=this._images[_4f7].imageTable.getElementsByTagName("b")[0];
if(_4fd.offsetWidth==0){
this._pauseClick();
}else{
var _4ff=_4fe.getElementsByTagName("img")[0];
if(typeof (_4ff)!="undefined"){
if(this._images[_4f7].fit=="true"||this._images[_4f7].fit==true){
if(_4ff.offsetHeight>_4ff.offsetWidth){
_4ff.style.height=(this.mainNode.offsetHeight)+"px";
if(_4ff.offsetWidth>=this.mainNode.offsetWidth){
_4ff.style.height="auto";
_4ff.style.width=(this.mainNode.offsetWidth)+"px";
}
}else{
_4ff.style.width=(this.mainNode.offsetWidth)+"px";
if(_4ff.offsetHeight>=this.mainNode.offsetHeight){
_4ff.style.width="auto";
_4ff.style.height=(this.mainNode.offsetHeight)+"px";
}
}
}else{
if(this._images[_4f7].fit==null){
this._delayExec(function(){
if(_4ff.offsetHeight>_4ff.offsetWidth){
if(_4ff.offsetHeight>this.mainNode.offsetHeight){
_4ff.style.height=(this.mainNode.offsetHeight)+"px";
_4ff.style.width="auto";
}
}else{
if(_4ff.offsetWidth>this.mainNode.offsetWidth){
_4ff.style.width=(this.mainNode.offsetWidth)+"px";
_4ff.style.height="auto";
}
}
},1);
}
}
}
if(this.showIndex!=_4f7){
dojo.fadeOut({node:_4fd,duration:this.protraction,easing:this._fadeEasing}).play();
this._delayExec(function(){
this._fadeOutHide(_4fd);
},this.protraction);
}
dojo.style(_4fe,"visibility","visible");
dojo.fadeIn({node:_4fe,duration:this.protraction,easing:this._fadeEasing}).play();
this._hideImageDetails();
this._delayExec(this._showImageDetails,this.protraction/2);
this._images[this.showIndex].imageTable.style.zIndex=0;
this._images[_4f7].imageTable.style.zIndex=1;
}
}
}
this.showIndex=_4f7;
},_fadeOutHide:function(_500){
if(dojo.style(_500,"opacity")==0){
dojo.style(_500,"visibility","hidden");
}
},_loadImagesSoft:function(){
dojo.disconnect(this._images[this._loadedIndex].onloadHandle);
if(this._images[this._loadedIndex].imageToStage){
this._setImage(this._images[this._loadedIndex].imageToStage);
}else{
if(this._loadedIndex==this.showIndex&&this._overviewArea==null){
this._setImage(this.showIndex);
}
}
if(this._loadedImages<this._images.length){
this._delayExec(this._loadImages,1000);
}else{
this.mainNode.style.background="none";
}
},_loadImages:function(){
this._loadedImages++;
this._loadedIndex++;
if(this._loadedIndex>=this._images.length){
this._loadedIndex=0;
}
var info=this._images[this._loadedIndex];
var _502=info.imageTable;
this.mainNode.style.background="transparent url("+this.loaderImagePath+") center no-repeat";
_502.style.zIndex=0;
var _503=_502.getElementsByTagName("b")[0];
_503.style.zoom="1";
dojo.style(_503,"opacity",0);
dojo.style(_503,"visibility","hidden");
_503.appendChild(this._getAlphaImage(info.image,true));
var _504=_503.getElementsByTagName("img")[0];
dojo.connect(_504,"onerror",this,"_drawErrorImage");
if(_504.complete){
this._delayExec(this._loadImagesSoft,1);
}else{
info.onloadHandle=dojo.connect(_504,"onload",this,"_loadImagesSoft");
}
},_createImageTable:function(){
var _505=this.imageTable.cloneNode(true);
_505.className="ImageTable";
this.imageTable.parentNode.appendChild(_505);
return _505;
},_handleKeyEvent:function(evt){
evt=evt?evt:window.event;
switch(evt.which||evt.keyCode){
case 27:
this._destroyOverview();
break;
case 37:
this._setPrevImage();
break;
case 39:
this._setNextImage();
break;
}
},openOverview:function(_507){
this._overviewClick(_507);
},setImage:function(_508){
this._pauseClick();
this._setImage(_508);
},setNextImage:function(){
this._setNextImage();
},setPrevImage:function(){
this._setPrevImage();
},addImage:function(_509,_50a){
if(_509.image){
var _50b;
for(var i=0;i<this._images.length;i++){
if(this._images[i].image==_509.image){
_50b=i;
}
}
if(!_50b){
this._images.push(_509);
this._images[this._images.length-1].imageTable=this._createImageTable();
this._images[this._images.length-1].imageToStage=this._images.length-1;
this._loadImages();
}else{
this._setImage(_50b);
}
}
},postCreate:function(){
epages.widget.Slides.superclass.postCreate.apply(this,arguments);
this._images=[];
this.domNode.style.width=this.imageWidth;
this.domNode.style.height=this.imageHeight;
this.mainNode.parentNode.style.width=this.imageWidth;
if(!this.showDescription){
this.descriptionNode.style.display="none";
}
if(!this.showMisc){
this.miscNode.style.display="none";
}
var _50d=this._drawControlBar();
for(var i=0;i<_50d.length;i++){
if(_50d[i]){
dojo.connect(_50d[i],"onmouseover",this,"_controlBarButtonOver");
dojo.connect(_50d[i],"onmouseout",this,"_controlBarButtonOut");
dojo.connect(_50d[i],"onmousedown",this,"_controlBarButtonDown");
dojo.connect(_50d[i],"onmouseup",this,"_controlBarButtonUp");
}
}
if(this.srcNodeRef){
if(this.srcNodeRef.className){
this.mainNode.parentNode.parentNode.className+=" "+this.srcNodeRef.className;
}
var _50f=this.srcNodeRef.getElementsByTagName("*");
for(var i=0;i<_50f.length;i++){
if(typeof (_50f[i].getAttribute("image"))=="string"){
var _510={};
_510.image=_50f[i].getAttribute("image");
_510.imageLarge=_50f[i].getAttribute("imageLarge");
_510.name=_50f[i].getAttribute("name");
_510.description=_50f[i].innerHTML;
_510.date=_50f[i].getAttribute("date");
_510.time=_50f[i].getAttribute("time");
_510.fit=_50f[i].getAttribute("fit");
_510.imageTable=this._createImageTable();
this._images.push(_510);
}
}
}
this.showIndex=new Number(this.showIndex);
this._loadedIndex=this.showIndex-1;
if(this._loadedIndex==-1){
this._loadedIndex=this._images.length;
}
dojo.connect(this.mainNode,"onmouseover",this,"_showControlBar");
dojo.connect(this.mainNode,"onmouseout",this,"_hideControlBar");
if(this.imageClickOverview&&this.overview){
dojo.connect(this.miscNode.offsetHeight?this.miscNode:this.mainNode,"onclick",this,"_checkGlobalOverview");
dojo.connect(this.controlNode,"onmouseover",dojo.hitch(this,function(){
this._globalOverview=false;
}));
dojo.connect(this.controlNode,"onmouseout",dojo.hitch(this,function(){
this._globalOverview=true;
}));
}else{
this.mainNode.style.cursor="default";
}
dojo.connect(window,"onscroll",this,"_reAlignOverview");
dojo.connect(window,"onresize",this,"_changeOverviewDimensions");
dojo.connect(document,"onkeyup",this,"_handleKeyEvent");
if(this._images.length>0){
this._delayExec(this._loadImages,1);
if(!this.stopped&&this._images.length>1){
this._delayExec(this._playClickStartTimer,1000);
}
}
}});
}
if(!dojo._hasResource["epages.epages_scripts"]){
dojo._hasResource["epages.epages_scripts"]=true;
dojo.provide("epages.epages_scripts");
window.openWindow=function(URL,_512,_513,_514){
if(_514===null){
_514=undefined;
}
if(_513=="PopUp"){
_513="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
}
if(_513=="PopUpPrint"){
_513="width=790, height=580, toolbar=yes, status=no, resizable=yes, menubar=yes, location=no, scrollbars=yes";
}
if(_513=="RTE"||_512=="RTE"){
_513="width=996, height=700, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
}
if(_513=="HelpWindow"){
_513="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
_512="WWHFrame";
}
if(_513=="StylePreview"){
_513="width=470, height=310, toolbar=no, status=no, resizable=no, menubar=no, location=no, scrollbars=no";
_512="StylePreview";
}
if(_513=="DetailedImageView"){
_513="width=1000, height=730, toolbar=no, status=no, resizable=yes, menubar=no, location=no, scrollbars=yes";
_512="StylePreview";
}
if(_513=="CheckLink"){
if(URL.indexOf("?")!=0){
splittedString=URL.split("//");
if(splittedString.length==1){
URL="http://"+URL;
}
}else{
if(_514!=undefined){
URL=_514+URL;
}
}
_513="toolbar=yes, status=yes, resizable=yes, menubar=yes, location=yes, scrollbars=yes";
}
if(URL!="http://"){
var _515=window.open(URL,_512,_513);
if(_515){
_515.focus();
}
}
return _515;
};
window.linkCorrection=function(_516){
var _517=_516.value;
var _518=_517.split("//");
if(_517.indexOf("?")!=0){
if(_518.length==1){
_516.value="http://"+_517;
epages.event.fire(_516,"change");
}
}
};
window.OnCheckAll=function(form,name,_51b,_51c){
dojo.addClass(form.getElementsByTagName("tbody")[0],"HideElement");
for(var i=0;i<form.length;i++){
var _51e=form[i];
if(_51e.nodeName=="INPUT"){
if((_51e.type=="checkbox"||_51e.className.match("Checkbox"))&&_51e.name==name&&!_51e.disabled&&_51e.checked!=_51b){
_51e.checked=_51b;
if(!_51c){
$$(_51e.id).setChecked(_51b);
if(_51b){
dojo.addClass(_51e.parentNode.parentNode,"RowSelected");
}else{
dojo.removeClass(_51e.parentNode.parentNode,"RowSelected");
}
}
}
}
}
dojo.removeClass(form.getElementsByTagName("tbody")[0],"HideElement");
};
window.DeactivateButton=function(_51f){
if(_51f.className.match("CustomButton")){
fakeButton=_51f.getElementsByTagName("*")[0];
fakeButton.disabled="true";
}else{
_51f.disabled="true";
}
dojo.addClass(_51f,"Disabled");
};
window.EnableButton=function(_520){
if(_520.className.match("CustomButton")){
fakeButton=_520.getElementsByTagName("*")[0];
fakeButton.disabled="false";
}else{
_520.disabled="false";
}
dojo.removeClass(_520,"Disabled");
};
window.DisableLink=function(Link){
if($(Link)){
$(Link).className+=" Opacity40";
$(Link).href="javascript:void(0)";
$(Link).style.cursor="default";
}
};
window.changeImage=function(_522,_523,_524){
$(_522).src=_523;
if(_524){
$(_522).alt=_524;
}
};
window.OptionToChangeAction=function(_525){
_525.form.ChangeAction.value=_525.options[_525.selectedIndex].value;
};
window.toggleDisplay=function(_526){
if($(_526).className!="HideElement"){
$(_526).className="HideElement";
}else{
$(_526).className="ShowElement";
}
};
window.hideElement=function(_527){
if(!$(_527).className.match(/HideElement/)){
$(_527).className+=" HideElement";
}
};
window.showElement=function(_528){
$(_528).className=$(_528).className.replace(/HideElement/,"");
};
window.changeDataById=function(_529,id){
myobject=$(id);
if(myobject.firstChild){
myobject.firstChild.data=_529;
}else{
mydata=document.createTextNode(_529);
myobject.appendChild(mydata);
}
};
window.getSelectedData=function(_52b){
if(_52b){
myNode=_52b.firstChild;
while(myNode!=null){
if(myNode.value==_52b.value&&myNode.value!=""){
return myNode.firstChild.data;
}
myNode=myNode.nextSibling;
}
return "";
}
};
window.checkBrowser=function(){
var _52c=navigator.userAgent.toLowerCase();
this.isIE=(_52c.indexOf("msie")!=-1);
this.isGecko=(_52c.indexOf("gecko")!=-1&&_52c.indexOf("safari")==-1);
this.isOpera=(_52c.indexOf("opera")!=-1);
this.isRTECompatible=(this.isIE||this.isGecko);
};
var browser=new checkBrowser();
window.disableFormFieldsInElement=function(_52d){
userattrinputs=$(_52d).getElementsByTagName("input");
for(i=0;i<userattrinputs.length;i++){
userattrinputs[i].disabled=true;
if($(_52d).parentNode.className.match("Cropper")){
$(_52d).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=$(_52d).getElementsByTagName("textarea");
for(i=0;i<userattrtextareas.length;i++){
userattrtextareas[i].disabled=true;
if($(_52d).parentNode.className.match("Cropper")){
$(_52d).parentNode.className+=" Disabled";
}
userattrtextareas[i].className=userattrtextareas[i].className+" Disabled";
}
userattrselects=$(_52d).getElementsByTagName("select");
for(i=0;i<userattrselects.length;i++){
userattrselects[i].disabled=true;
if($(_52d).parentNode.className.match("Cropper")){
$(_52d).parentNode.className+=" Disabled";
}
userattrselects[i].className=userattrselects[i].className+" Disabled";
}
};
window.enableFormFieldsInElement=function(_52e){
userattrinputs=$(_52e).getElementsByTagName("input");
for(i=0;i<userattrinputs.length;i++){
userattrinputs[i].disabled=false;
if($(_52e).parentNode.className.match("Cropper")){
$(_52e).parentNode.className=$(_52e).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=$(_52e).getElementsByTagName("textarea");
for(i=0;i<userattrtextareas.length;i++){
userattrtextareas[i].disabled=false;
if($(_52e).parentNode.className.match("Cropper")){
$(_52e).parentNode.className=$(_52e).parentNode.className.replace(/Disabled/g,"");
}
userattrtextareas[i].className=userattrtextareas[i].className.replace(/ Disabled/,"");
userattrtextareas[i].className=userattrtextareas[i].className.replace(/Disabled/,"");
}
userattrselects=$(_52e).getElementsByTagName("select");
for(i=0;i<userattrselects.length;i++){
userattrselects[i].disabled=false;
if($(_52e).parentNode.className.match("Cropper")){
$(_52e).parentNode.className=$(_52e).parentNode.className.replace(/Disabled/g,"");
}
userattrselects[i].className=userattrselects[i].className.replace(/ Disabled/,"");
userattrselects[i].className=userattrselects[i].className.replace(/Disabled/,"");
}
};
window.disableFormFieldById=function(_52f){
var _530=true;
if(disableFormFieldById.arguments.length>1){
_530=disableFormFieldById.arguments[1];
}
$(_52f).disabled=true;
if($(_52f).parentNode.className.match("Cropper")){
$(_52f).parentNode.className+=" Disabled";
}
if(_530){
dojo.addClass($(_52f),"Disabled");
}
};
window.enableFormFieldById=function(_531){
var _532=true;
if(enableFormFieldById.arguments.length>1){
_532=enableFormFieldById.arguments[1];
}
$(_531).disabled=false;
if($(_531).parentNode.className.match("Cropper")){
$(_531).parentNode.className=$(_531).parentNode.className.replace(/Disabled/g,"");
}
if(_532){
dojo.removeClass($(_531),"Disabled");
}
};
window.allowURLUpload=function(){
var _533=$("FileUpload").value;
if(_533.match(/http:../)||_533.match(/https:../)){
$("FileUpload2").value=_533;
$("FileUpload2").disabled=false;
$("FileUpload").disabled=true;
}
};
window.allowBulkURLUpload=function(_534){
var _535=document.getElementsByName(_534);
for(var i=0;i<_535.length;i++){
var _537=_535[i].value;
var _538=_535[i].type;
var _539=_535[i].id;
if((_537.match(/http:../)||_537.match(/https:../))&&_538!="hidden"){
$(_539.replace(/FileName/,"URLUpload")).value=_537;
$(_539.replace(/FileName/,"URLUpload")).disabled=false;
$(_539).disabled=true;
}
}
};
window.setValue=function(_53a,_53b){
$(_53b).value=_53a;
};
window.autofillAddress=function(_53c){
_53c.form.DisplayName.value=_53c.form.FirstName.value+" "+_53c.form.LastName.value;
if(_53c.form.UserAlias){
_53c.form.UserAlias.value=_53c.form.FirstName.value.slice(0,1)+_53c.form.LastName.value;
}
if(_53c.form.UserName){
_53c.form.UserName.value=_53c.form.FirstName.value+" "+_53c.form.LastName.value;
}
};
window.SFautofillAddress=function(_53d,_53e,_53f){
$(_53f).value=$(_53d).value+" "+$(_53e).value;
};
window.setCurrentDate=function(_540,_541){
$(_541).value=_540;
};
window.updateStyleSheetRule=function(rule,text){
text+=" !important";
if(browser.isIE){
var _544=rule.split(/,\s+/);
var _545=document.styleSheets[document.styleSheets.length-1];
for(var i=0;i<_544.length;i++){
_545.addRule(_544[i],text);
}
}else{
var _547=document.getElementsByTagName("style");
var _545=_547[_547.length-1];
_545.innerHTML+="\n"+rule+"{"+text+";}";
}
};
window.DialogArea=function(){
this.areaName=new Array();
this.areaId=new Array();
this.areaDisplayName=new Array();
this.areaActivated=new Array();
this.addArea=function(_548,_549){
this.areaName.push(_548);
this.areaId.push(_549);
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 _54b=document.createElement("a");
_54b.href="javascript:epagesDialog.toggleArea('"+this.areaName[i]+"');";
_54b.name=this.areaName[i];
_54b.id=this.areaName[i];
_54b.className="HideArea";
}else{
var _54b=document.createElement("span");
_54b.name=this.areaName[i];
_54b.id=this.areaName[i];
_54b.className="disabled";
}
var _54c=document.createTextNode(this.areaDisplayName[i]);
_54b.appendChild(_54c);
$("ToggleTabpageArea").appendChild(_54b);
}
};
this.showArea=function(_54d){
areaId="";
for(i=0;i<this.areaName.length;i++){
if(this.areaName[i]==_54d){
areaId=this.areaId[i];
}
}
try{
dojo.removeClass(document.getElementsByName(_54d)[0],"HideArea");
dojo.addClass(document.getElementsByName(_54d)[0],"ShowArea");
}
catch(ex){
dojo.removeClass($(_54d),"HideArea");
dojo.addClass($(_54d),"ShowArea");
}
$(areaId).className="ShowElement";
if(browser.isIE){
setTimeout("$('"+areaId+"').className='ShowElement';",10);
}
actualDialogArea=_54d;
};
this.hideArea=function(_54e){
areaId="";
for(i=0;i<this.areaName.length;i++){
if(this.areaName[i]==_54e){
areaId=this.areaId[i];
}
}
dojo.removeClass(document.getElementsByName(_54e)[0],"ShowArea");
dojo.addClass(document.getElementsByName(_54e)[0],"HideArea");
$(areaId).className="HideElement";
actualDialogArea="";
};
this.toggleArea=function(_54f){
this.showArea(_54f);
for(i=0;i<this.areaName.length;i++){
tempName=this.areaName[i];
tempId=this.areaId[i];
if(_54f!=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(_550){
if(document.getElementsByName(_550)[0].className.match("HideArea")){
this.showArea(_550);
}else{
this.hideArea(_550);
}
};
this.selectArea=function(_551){
this.showArea(_551);
for(i=0;i<this.areaName.length;i++){
tempName=this.areaName[i];
tempId=this.areaId[i];
if(_551!=tempName){
dojo.removeClass(document.getElementsByName(tempName)[0],"ShowArea");
dojo.addClass(document.getElementsByName(tempName)[0],"HideArea");
$(tempId).className="HideElement";
}
}
};
};
window.appendDialogArea=function(_552){
if(actualDialogArea!=""){
_552.action+="&DialogArea="+actualDialogArea;
}
};
actualDialogArea="";
epagesDialog=new DialogArea();
window.WizardPages=function(){
this.TabId=new Array();
this.AreaId=new Array();
this.addPage=function(_553,_554){
this.TabId.push(_553);
this.AreaId.push(_554);
};
this.showStep=function(_555){
ActualWizardPage=_555;
window.scrollTo(0,0);
$(this.TabId[_555]).className="selected";
$(this.TabId[_555]).getElementsByTagName("span")[0].firstChild.className="selected";
try{
$(this.TabId[_555]).getElementsByTagName("span")[0].appendChild(oHelpTopic);
}
catch(ex){
}
$(this.AreaId[_555]).className="ShowElement";
for(i=0;i<this.TabId.length;i++){
if(i!=_555){
$(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(_556){
(new epages.widget.Slides).openOverview(_556);
};
}
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(_558){
var _559=this._counter;
this._hash.set("key"+_559,_558);
do{
this._counter++;
}while(this._hash.existsKey("key"+this._counter));
return _559;
},set:function(key,_55b){
if(this._hash.existsKey("key"+key)){
this._hash.set("key"+key,_55b);
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,_55e){
if(o===undefined&&func===undefined&&_55e===undefined){
}else{
if(_55e===undefined){
return dojo.hitch(o,func);
}
var _55f=[];
for(var i=0;i<_55e.length;i++){
var _561=epages.lang.hitch.prototype.clipBoard.add(_55e[i]);
_55f.push("epages.lang.hitch.prototype.clipBoard.get("+_561+")");
}
if(typeof (func)=="string"){
var _562=func;
}else{
for(member in o){
if(typeof o[member]=="function"&&o[member]==func){
var _562=member;
break;
}
}
}
var _563;
if(_562===undefined){
_563=eval("dojo.hitch(o, function() { func("+_55f.join(", ")+"); });");
}else{
_563=eval("dojo.hitch(o, function() { o."+_562+"("+_55f.join(", ")+"); });");
}
return _563;
}
};
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 _565={};
if(uri.match(/^((?:(.+)\:\/\/([^\/]+))?((?:\/|[^\?#]).*?)?(\?.*?)?(#.*)?)$/)){
_565={href:RegExp.$1,protocol:RegExp.$2,host:RegExp.$3,path:RegExp.$4,query:RegExp.$5,anchor:RegExp.$6,parameters:{}};
_565.parameters=this.splitQueryString(_565.query);
}
return _565;
},splitQueryString:function(uri){
var _567={};
var _568=(new RegExp(/\??(.*?)(#.*)?$/g)).exec(uri);
if(_568){
var _569=_568[1];
var _56a=_569.split("&");
for(var i=0;i<_56a.length;i++){
var _56c=(new RegExp(/(.+)\=(.*)/)).exec(_56a[i]);
if(_56c){
_567[decodeURIComponent(_56c[1])]=decodeURIComponent(_56c[2]);
}
}
}
return _567;
},toQueryString:function(data){
if(dojo.isArray(data)){
var _56e=[];
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;
}
_56e.push(encodeURIComponent(data[i][0])+"="+encodeURIComponent(data[i][1]));
}
return _56e.join("&");
}else{
if(dojo.isObject(data)){
return $H(data).toQueryString();
}
}
},fromParts:function(_570){
var _571="";
if(_570.protocol){
_571+=_570.protocol+"://";
}
if(_570.host){
_571+=_570.host;
}
if(_570.path){
_571+=_570.path;
}
if(dojo.isObject(_570.parameters)){
var qs=this.toQueryString(_570.parameters);
if(qs){
_571+="?"+qs;
}
}else{
if(_570.query){
_571+=_570.query;
}
}
if(_570.anchor){
_571+=_570.anchor;
}
return _571;
},isAbsolute:function(uri){
var rx=new RegExp(/^((http|https|ftp)\:\/\/|\/)/g);
return rx.test(uri);
},getRelative:function(_575,url){
var _577=epages.lang.uri.parts(_575);
var _578=epages.lang.uri.parts(url);
if((_578.protocol!=null&&_578.protocol!=_577.protocol)||(_578.host!=null&&_578.host!=_577.host)){
return url;
}
_577.path=_577.path.replace(/\/+$/,"");
_578.path=_578.path.replace(/\/+$/,"");
var _579=_577.path.split("/");
var _57a=_578.path.split("/");
while(_579.length>0){
var _57b=_579.shift();
var _57c=_57a.shift();
if(_57c==null){
_579.unshift(_57b);
break;
}else{
if(_57b!=_57c){
_579.unshift(_57b);
_57a.unshift(_57c);
break;
}
}
}
var _57d="";
for(var i=0;i<_579.length;i++){
_57d+="../";
}
return _57d+_57a.join("/");
}};
}
if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_57f){
var _580=_57f.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_580==1&&dojo.date.isLeapYear(_57f)){
return 29;
}
return days[_580];
};
dojo.date.isLeapYear=function(_582){
var year=_582.getFullYear();
return !(year%400)||(!(year%4)&&!!(year%100));
};
dojo.date.getTimezoneName=function(_584){
var str=_584.toString();
var tz="";
var _587;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_587=str.match(pat))){
tz=_587[1];
}else{
str=_584.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_587=str.match(pat))){
tz=_587[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_58a,_58b,_58c){
_58a=new Date(Number(_58a));
_58b=new Date(Number(_58b||new Date()));
if(_58c!=="undefined"){
if(_58c=="date"){
_58a.setHours(0,0,0,0);
_58b.setHours(0,0,0,0);
}else{
if(_58c=="time"){
_58a.setFullYear(0,0,0);
_58b.setFullYear(0,0,0);
}
}
}
if(_58a>_58b){
return 1;
}
if(_58a<_58b){
return -1;
}
return 0;
};
dojo.date.add=function(date,_58e,_58f){
var sum=new Date(Number(date));
var _591=false;
var _592="Date";
switch(_58e){
case "day":
break;
case "weekday":
var days,_594;
var mod=_58f%5;
if(!mod){
days=(_58f>0)?5:-5;
_594=(_58f>0)?((_58f-5)/5):((_58f+5)/5);
}else{
days=mod;
_594=parseInt(_58f/5);
}
var strt=date.getDay();
var adj=0;
if(strt==6&&_58f>0){
adj=1;
}else{
if(strt==0&&_58f<0){
adj=-1;
}
}
var trgt=strt+days;
if(trgt==0||trgt==6){
adj=(_58f>0)?2:-2;
}
_58f=(7*_594)+days+adj;
break;
case "year":
_592="FullYear";
_591=true;
break;
case "week":
_58f*=7;
break;
case "quarter":
_58f*=3;
case "month":
_591=true;
_592="Month";
break;
case "hour":
case "minute":
case "second":
case "millisecond":
_592="UTC"+_58e.charAt(0).toUpperCase()+_58e.substring(1)+"s";
}
if(_592){
sum["set"+_592](sum["get"+_592]()+_58f);
}
if(_591&&(sum.getDate()<date.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_599,_59a,_59b){
_59a=_59a||new Date();
_59b=_59b||"day";
var _59c=_59a.getFullYear()-_599.getFullYear();
var _59d=1;
switch(_59b){
case "quarter":
var m1=_599.getMonth();
var m2=_59a.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_59c*4);
_59d=q2-q1;
break;
case "weekday":
var days=Math.round(dojo.date.difference(_599,_59a,"day"));
var _5a3=parseInt(dojo.date.difference(_599,_59a,"week"));
var mod=days%7;
if(mod==0){
days=_5a3*5;
}else{
var adj=0;
var aDay=_599.getDay();
var bDay=_59a.getDay();
_5a3=parseInt(days/7);
mod=days%7;
var _5a8=new Date(_599);
_5a8.setDate(_5a8.getDate()+(_5a3*7));
var _5a9=_5a8.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 (_5a9+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 (_5a9+mod)<0:
adj=2;
}
}
}
days+=adj;
days-=(_5a3*2);
}
_59d=days;
break;
case "year":
_59d=_59c;
break;
case "month":
_59d=(_59a.getMonth()-_599.getMonth())+(_59c*12);
break;
case "week":
_59d=parseInt(dojo.date.difference(_599,_59a,"day")/7);
break;
case "day":
_59d/=24;
case "hour":
_59d/=60;
case "minute":
_59d/=60;
case "second":
_59d/=1000;
case "millisecond":
_59d*=_59a.getTime()-_599.getTime();
}
return Math.round(_59d);
};
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_5aa,_5ab,_5ac){
_5ac=dojo.i18n.normalizeLocale(_5ac);
var _5ad=_5ac.split("-");
var _5ae=[_5aa,"nls",_5ab].join(".");
var _5af=dojo._loadedModules[_5ae];
if(_5af){
var _5b0;
for(var i=_5ad.length;i>0;i--){
var loc=_5ad.slice(0,i).join("_");
if(_5af[loc]){
_5b0=_5af[loc];
break;
}
}
if(!_5b0){
_5b0=_5af.ROOT;
}
if(_5b0){
var _5b3=function(){
};
_5b3.prototype=_5b0;
return new _5b3();
}
}
throw new Error("Bundle not found: "+_5ab+" in "+_5aa+" , locale="+_5ac);
};
dojo.i18n.normalizeLocale=function(_5b4){
var _5b5=_5b4?_5b4.toLowerCase():dojo.locale;
if(_5b5=="root"){
_5b5="ROOT";
}
return _5b5;
};
dojo.i18n._requireLocalization=function(_5b6,_5b7,_5b8,_5b9){
var _5ba=dojo.i18n.normalizeLocale(_5b8);
var _5bb=[_5b6,"nls",_5b7].join(".");
var _5bc="";
if(_5b9){
var _5bd=_5b9.split(",");
for(var i=0;i<_5bd.length;i++){
if(_5ba["indexOf"](_5bd[i])==0){
if(_5bd[i].length>_5bc.length){
_5bc=_5bd[i];
}
}
}
if(!_5bc){
_5bc="ROOT";
}
}
var _5bf=_5b9?_5bc:_5ba;
var _5c0=dojo._loadedModules[_5bb];
var _5c1=null;
if(_5c0){
if(dojo.config.localizationComplete&&_5c0._built){
return;
}
var _5c2=_5bf.replace(/-/g,"_");
var _5c3=_5bb+"."+_5c2;
_5c1=dojo._loadedModules[_5c3];
}
if(!_5c1){
_5c0=dojo["provide"](_5bb);
var syms=dojo._getModuleSymbols(_5b6);
var _5c5=syms.concat("nls").join("/");
var _5c6;
dojo.i18n._searchLocalePath(_5bf,_5b9,function(loc){
var _5c8=loc.replace(/-/g,"_");
var _5c9=_5bb+"."+_5c8;
var _5ca=false;
if(!dojo._loadedModules[_5c9]){
dojo["provide"](_5c9);
var _5cb=[_5c5];
if(loc!="ROOT"){
_5cb.push(loc);
}
_5cb.push(_5b7);
var _5cc=_5cb.join("/")+".js";
_5ca=dojo._loadPath(_5cc,null,function(hash){
var _5ce=function(){
};
_5ce.prototype=_5c6;
_5c0[_5c8]=new _5ce();
for(var j in hash){
_5c0[_5c8][j]=hash[j];
}
});
}else{
_5ca=true;
}
if(_5ca&&_5c0[_5c8]){
_5c6=_5c0[_5c8];
}else{
_5c0[_5c8]=_5c6;
}
if(_5b9){
return true;
}
});
}
if(_5b9&&_5ba!=_5bc){
_5c0[_5ba.replace(/-/g,"_")]=_5c0[_5bc.replace(/-/g,"_")];
}
};
(function(){
var _5d0=dojo.config.extraLocale;
if(_5d0){
if(!_5d0 instanceof Array){
_5d0=[_5d0];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_5d4,_5d5){
req(m,b,_5d4,_5d5);
if(_5d4){
return;
}
for(var i=0;i<_5d0.length;i++){
req(m,b,_5d0[i],_5d5);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_5d7,down,_5d9){
_5d7=dojo.i18n.normalizeLocale(_5d7);
var _5da=_5d7.split("-");
var _5db=[];
for(var i=_5da.length;i>0;i--){
_5db.push(_5da.slice(0,i).join("-"));
}
_5db.push(false);
if(down){
_5db.reverse();
}
for(var j=_5db.length-1;j>=0;j--){
var loc=_5db[j]||"ROOT";
var stop=_5d9(loc);
if(stop){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_5e0,_5e1){
function preload(_5e2){
_5e2=dojo.i18n.normalizeLocale(_5e2);
dojo.i18n._searchLocalePath(_5e2,true,function(loc){
for(var i=0;i<_5e1.length;i++){
if(_5e1[i]==loc){
dojo["require"](_5e0+"_"+loc);
return true;
}
}
return false;
});
};
preload();
var _5e5=dojo.config.extraLocale||[];
for(var i=0;i<_5e5.length;i++){
preload(_5e5[i]);
}
};
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_5e7){
var _5e8={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 _5e9=dojo.cldr.supplemental._region(_5e7);
var dow=_5e8[_5e9];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function(_5eb){
_5eb=dojo.i18n.normalizeLocale(_5eb);
var tags=_5eb.split("-");
var _5ed=tags[1];
if(!_5ed){
_5ed={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(_5ed.length==4){
_5ed=tags[2];
}
}
return _5ed;
};
dojo.cldr.supplemental.getWeekend=function(_5ee){
var _5ef={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 _5f0={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 _5f1=dojo.cldr.supplemental._region(_5ee);
var _5f2=_5ef[_5f1];
var end=_5f0[_5f1];
if(_5f2===undefined){
_5f2=6;
}
if(end===undefined){
end=0;
}
return {start:_5f2,end:end};
};
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_5f5){
return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){
if(_5f5&&_5f5.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_5f9){
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("|"),_5f9);
};
dojo.regexp.group=function(_5fc,_5fd){
return "("+(_5fd?"?:":"")+_5fc+")";
};
}
if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function formatPattern(_5fe,_5ff,_600,_601){
return _601.replace(/([a-z])\1*/ig,function(_602){
var s,pad;
var c=_602.charAt(0);
var l=_602.length;
var _607=["abbr","wide","narrow"];
switch(c){
case "G":
s=_5ff[(l<4)?"eraAbbr":"eraNames"][_5fe.getFullYear()<0?0:1];
break;
case "y":
s=_5fe.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_600){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_5fe.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_5fe.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _609=["months","format",_607[l-3]].join("-");
s=_5ff[_609][m];
}
break;
case "w":
var _60a=0;
s=dojo.date.locale._getWeekOfYear(_5fe,_60a);
pad=true;
break;
case "d":
s=_5fe.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_5fe);
pad=true;
break;
case "E":
var d=_5fe.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _60c=["days","format",_607[l-3]].join("-");
s=_5ff[_60c][d];
}
break;
case "a":
var _60d=(_5fe.getHours()<12)?"am":"pm";
s=_5ff[_60d];
break;
case "h":
case "H":
case "K":
case "k":
var h=_5fe.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=_5fe.getMinutes();
pad=true;
break;
case "s":
s=_5fe.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_5fe.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_5fe);
if(s){
break;
}
l=4;
case "Z":
var _60f=_5fe.getTimezoneOffset();
var tz=[(_60f<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_60f)/60),2),dojo.string.pad(Math.abs(_60f)%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: "+_601);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale.format=function(_611,_612){
_612=_612||{};
var _613=dojo.i18n.normalizeLocale(_612.locale);
var _614=_612.formatLength||"short";
var _615=dojo.date.locale._getGregorianBundle(_613);
var str=[];
var _617=dojo.hitch(this,formatPattern,_611,_615,_612.fullYear);
if(_612.selector=="year"){
var year=_611.getFullYear();
if(_613.match(/^zh|^ja/)){
year+="年";
}
return year;
}
if(_612.selector!="time"){
var _619=_612.datePattern||_615["dateFormat-"+_614];
if(_619){
str.push(_processPattern(_619,_617));
}
}
if(_612.selector!="date"){
var _61a=_612.timePattern||_615["timeFormat-"+_614];
if(_61a){
str.push(_processPattern(_61a,_617));
}
}
var _61b=str.join(" ");
return _61b;
};
dojo.date.locale.regexp=function(_61c){
return dojo.date.locale._parseInfo(_61c).regexp;
};
dojo.date.locale._parseInfo=function(_61d){
_61d=_61d||{};
var _61e=dojo.i18n.normalizeLocale(_61d.locale);
var _61f=dojo.date.locale._getGregorianBundle(_61e);
var _620=_61d.formatLength||"short";
var _621=_61d.datePattern||_61f["dateFormat-"+_620];
var _622=_61d.timePattern||_61f["timeFormat-"+_620];
var _623;
if(_61d.selector=="date"){
_623=_621;
}else{
if(_61d.selector=="time"){
_623=_622;
}else{
_623=_621+" "+_622;
}
}
var _624=[];
var re=_processPattern(_623,dojo.hitch(this,_buildDateTimeRE,_624,_61f,_61d));
return {regexp:re,tokens:_624,bundle:_61f};
};
dojo.date.locale.parse=function(_626,_627){
var info=dojo.date.locale._parseInfo(_627);
var _629=info.tokens,_62a=info.bundle;
var re=new RegExp("^"+info.regexp+"$",info.strict?"":"i");
var _62c=re.exec(_626);
if(!_62c){
return null;
}
var _62d=["abbr","wide","narrow"];
var _62e=[1970,0,1,0,0,0,0];
var amPm="";
var _630=dojo.every(_62c,function(v,i){
if(!i){
return true;
}
var _633=_629[i-1];
var l=_633.length;
switch(_633.charAt(0)){
case "y":
if(l!=2&&_627.strict){
_62e[0]=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _636=year.substring(0,2)*100;
var _637=Math.min(Number(year.substring(2,4))+20,99);
var num=(v<_637)?_636+v:_636-100+v;
_62e[0]=num;
}else{
if(_627.strict){
return false;
}
_62e[0]=v;
}
}
break;
case "M":
if(l>2){
var _639=_62a["months-format-"+_62d[l-3]].concat();
if(!_627.strict){
v=v.replace(".","").toLowerCase();
_639=dojo.map(_639,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_639,v);
if(v==-1){
return false;
}
}else{
v--;
}
_62e[1]=v;
break;
case "E":
case "e":
var days=_62a["days-format-"+_62d[l-3]].concat();
if(!_627.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":
_62e[1]=0;
case "d":
_62e[2]=v;
break;
case "a":
var am=_627.am||_62a.am;
var pm=_627.pm||_62a.pm;
if(!_627.strict){
var _63f=/\./g;
v=v.replace(_63f,"").toLowerCase();
am=am.replace(_63f,"").toLowerCase();
pm=pm.replace(_63f,"").toLowerCase();
}
if(_627.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;
}
_62e[3]=v;
break;
case "m":
_62e[4]=v;
break;
case "s":
_62e[5]=v;
break;
case "S":
_62e[6]=v;
}
return true;
});
var _640=+_62e[3];
if(amPm==="p"&&_640<12){
_62e[3]=_640+12;
}else{
if(amPm==="a"&&_640==12){
_62e[3]=0;
}
}
var _641=new Date(_62e[0],_62e[1],_62e[2],_62e[3],_62e[4],_62e[5],_62e[6]);
if(_627.strict){
_641.setFullYear(_62e[0]);
}
var _642=_629.join("");
if(!_630||(_642.indexOf("M")!=-1&&_641.getMonth()!=_62e[1])||(_642.indexOf("d")!=-1&&_641.getDate()!=_62e[2])){
return null;
}
return _641;
};
function _processPattern(_643,_644,_645,_646){
var _647=function(x){
return x;
};
_644=_644||_647;
_645=_645||_647;
_646=_646||_647;
var _649=_643.match(/(''|[^'])+/g);
var _64a=_643.charAt(0)=="'";
dojo.forEach(_649,function(_64b,i){
if(!_64b){
_649[i]="";
}else{
_649[i]=(_64a?_645:_644)(_64b);
_64a=!_64a;
}
});
return _646(_649.join(""));
};
function _buildDateTimeRE(_64d,_64e,_64f,_650){
_650=dojo.regexp.escapeString(_650);
if(!_64f.strict){
_650=_650.replace(" a"," ?a");
}
return _650.replace(/([a-z])\1*/ig,function(_651){
var s;
var c=_651.charAt(0);
var l=_651.length;
var p2="",p3="";
if(_64f.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=_64f.am||_64e.am||"AM";
var pm=_64f.pm||_64e.pm||"PM";
if(_64f.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(_64d){
_64d.push(_651);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _659=[];
dojo.date.locale.addCustomFormats=function(_65a,_65b){
_659.push({pkg:_65a,name:_65b});
};
dojo.date.locale._getGregorianBundle=function(_65c){
var _65d={};
dojo.forEach(_659,function(desc){
var _65f=dojo.i18n.getLocalization(desc.pkg,desc.name,_65c);
_65d=dojo.mixin(_65d,_65f);
},this);
return _65d;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(item,type,use,_663){
var _664;
var _665=dojo.date.locale._getGregorianBundle(_663);
var _666=[item,use,type];
if(use=="standAlone"){
var key=_666.join("-");
_664=_665[key];
if(_664[0]==1){
_664=undefined;
}
}
_666[1]="format";
return (_664||_665[_666.join("-")]).concat();
};
dojo.date.locale.isWeekend=function(_668,_669){
var _66a=dojo.cldr.supplemental.getWeekend(_669);
var day=(_668||new Date()).getDay();
if(_66a.end<_66a.start){
_66a.end+=7;
if(day<_66a.start){
day+=7;
}
}
return day>=_66a.start&&day<=_66a.end;
};
dojo.date.locale._getDayOfYear=function(_66c){
return dojo.date.difference(new Date(_66c.getFullYear(),0,1,_66c.getHours()),_66c)+1;
};
dojo.date.locale._getWeekOfYear=function(_66d,_66e){
if(arguments.length==1){
_66e=0;
}
var _66f=new Date(_66d.getFullYear(),0,1).getDay();
var adj=(_66f-_66e+7)%7;
var week=Math.floor((dojo.date.locale._getDayOfYear(_66d)+adj-1)/7);
if(_66f==_66e){
week++;
}
return week;
};
}
if(!dojo._hasResource["epages.localize"]){
dojo._hasResource["epages.localize"]=true;
dojo.provide("epages.localize");
epages.localize={formatNumber:function(_672,_673){
if(_673==null){
_673=2;
}
var _674=Math.pow(10,_673);
var _675=Math.floor(Math.round(_672*_674)/_674);
var _676=Math.round(Math.abs(_672-_675)*_674);
if(_676!=0){
return _675+epages.vars.Locale.decimalSep+_676;
}else{
return _675;
}
},formatBytes:function(_677,_678){
if(_678==null){
_678=2;
}
var unit="Byte";
if(_677>=1073741824){
_677/=1073741824;
unit="GB";
}else{
if(_677>=1048576){
_677/=1048576;
unit="MB";
}else{
if(_677>=1024){
_677/=1024;
unit="kB";
}
}
}
return epages.localize.formatNumber(_677,_678)+" "+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(_67a){
if(_67a==null){
_67a=epages.vars.Locale.dateFormat;
}
if(this._patternCache.existsKey(_67a)){
return this._patternCache.get(_67a);
}
var _67b=_67a;
var _67c=$A($A($H(epages.localize._patternMap).keys()).sort(function(a,b){
return b.length-a.length;
}));
_67c.each(function(_67f){
var rx=new RegExp(_67f,"g");
_67b=_67b.replace(rx,function(){
return epages.localize._patternMap[_67f];
});
});
return _67b;
},formatDateTime:function(date,_682){
if(date==null){
return "";
}
if(_682==null){
_682=epages.vars.Locale.dateFormat;
}
var d=dojo.date.locale.format(date,{datePattern:this.getDojoDateTimePattern(_682),timePattern:" "});
return d.substring(0,d.length-2);
},parseDateTime:function(_684,_685){
if(_685==null){
_685=epages.vars.Locale.dateFormat;
}
return dojo.date.locale.parse("~ "+_684,{selector:"timeOnly",timePattern:this.getDojoDateTimePattern(_685),datePattern:"~"});
},parseNumber:function(_686){
_686=_686.replace(epages.vars.Locale.thousandSep,"");
_686=_686.replace(epages.vars.Locale.decimalSep,".");
return parseFloat(_686);
}};
}
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(_687,args){
var _689=args.xhr.status==404?{}:dojo.fromJson(args.xhr.responseText);
console.debug("epages.io.Json: error in request");
if(_689.Errors!==undefined){
dojo.publish("epages/interfaceerror",[{code:_689.Errors[0].Reason,message:_689.Errors[0].Message,guid:_689.Errors[0].GUID,vars:{url:args.url,status:args.xhr.status,response:_689}}]);
}
},loadSync:function(url,_68b,_68c){
var _68d;
var _68e=_68b!==undefined?dojo.xhrPost:dojo.xhrGet;
var _68f=this;
var opt={url:url,sync:true,preventCache:epages.constants.preventCache,error:function(_691,args){
_68d={"error":{error:_691,args:args,data:dojo.fromJson(args.xhr.responseText)}};
if(_68c!=null){
_68c({"error":[_691,args]});
}else{
_68f.defaultErrorCallback(_691,args);
}
},load:function(data,evt){
var _695=dojo.fromJson(data);
if(_695.Errors){
_68d={"error":{data:_695}};
}else{
_68d={"data":dojo.fromJson(data)};
}
}};
if(url.match(".(js|json)$")){
_68e=dojo.xhrGet;
}else{
dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_68b});
}
_68e(opt);
return _68d;
},loadAsync:function(url,_697,_698,_699){
var _69a=_698!==undefined?dojo.xhrPost:dojo.xhrGet;
var _69b=this;
var opt={url:url,error:function(_69d,args){
var c=_699||_697;
var _6a0=dojo.fromJson(args.xhr.responseText);
if(c){
c({"error":[_69d,args],"data":(typeof _6a0=="object")?dojo.fromJson(args.xhr.responseText):{}});
}else{
_69b.defaultErrorCallback(_69d,args);
}
},load:function(data){
if(_697!=null){
var _6a2=dojo.fromJson(data);
if(_6a2.Errors){
_697({"error":{data:_6a2}});
}else{
_697({"data":dojo.fromJson(data)});
}
}
}};
if(url.match(".(js|json)$")){
_69a=dojo.xhrGet;
}else{
dojo.mixin(opt,{headers:{Accept:"text/x-json"},content:_698});
}
_69a(opt);
return;
}});
}
if(!dojo._hasResource["epages.format"]){
dojo._hasResource["epages.format"]=true;
dojo.provide("epages.format");
epages.format={slice:function(_6a3,_6a4){
if(_6a3===undefined){
throw new Error("value not defined");
}
if(typeof _6a3!="string"){
throw new Error("Not a string value!");
}
if(!_6a4){
_6a4=30;
}
var _6a5=_6a3.length;
var _6a6=_6a4<0?-_6a4:_6a4;
if(_6a5<_6a6){
return _6a3;
}
if(_6a4<0){
return "..."+_6a3.substr((_6a5+_6a4+3),(_6a6-3));
}
return _6a3.substr(0,_6a4-3)+"...";
},scrunch:function(_6a7,_6a8,_6a9){
if(_6a9===undefined){
_6a9=0.5;
}
if(_6a9<0||_6a9>1){
throw new Error("ratio value invalid only values from 0..1 allowed");
}
if(_6a7===undefined){
throw new Error("value not defined");
}
if(typeof _6a7!="string"){
throw new Error("Not a string value!");
}
if(!_6a8){
_6a8=30;
}
var _6aa=_6a8<0?-_6a8:_6a8;
var _6ab=_6a7.length;
if(_6ab<=_6aa){
return _6a7;
}
var _6ac=Math.floor((_6a8-3)*_6a9);
var _6ad=Math.floor((_6a8-3)*(1-_6a9));
var _6ae=_6a8-3-(_6ac+_6ad);
var _6af=_6a7.substr(0,_6ac);
var _6b0=_6a7.substr(Math.max(0,_6ab-_6ad-_6ae),_6ab);
return _6af+"..."+_6b0;
}};
}
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 _6b2=dojo.getComputedStyle(document.images[i]);
with(document.images[i].style){
zoom="1";
width=(document.images[i].offsetWidth?document.images[i].offsetWidth-parseInt(_6b2.paddingLeft)-parseInt(_6b2.paddingRight):this.minImageSize)+"px";
height=(document.images[i].offsetHeight?document.images[i].offsetHeight-parseInt(_6b2.paddingTop)-parseInt(_6b2.paddingBottom):this.minImageSize)+"px";
if(_6b2.margin=="0px"){
margin=_6b2.padding;
}
filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+document.images[i].src+", sizingMethod='scale')";
}
document.images[i].src=epages.vars.IconsRoot+"/general_img_transparentpixel.gif";
dojo.connect(document.images[i],"onload",function(evt){
if(!evt.currentTarget.src.match("general_img_transparentpixel.gif")){
evt.currentTarget.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+evt.currentTarget.src+", sizingMethod='scale')";
evt.currentTarget.src=epages.vars.IconsRoot+"/general_img_transparentpixel.gif";
}
});
setTimeout(function(){
epages.cssfix.png.replaceImages();
},40);
break;
}
}
},init:function(){
dojo.addOnLoad(function(){
if(epages.Browser.engine=="MSIE"){
epages.cssfix.png.replaceImages();
}
});
}},pseudoclasses:{NODEDEPTH:12,hoverTriggerClasses:["EnableHover","TreeContent","Command"],activeTriggerClasses:["EnableActive"],focusTriggerClasses:["EnableFocus"],lastHoveredNode:dojo.body(),currentHoveredNodes:[],mouseMoved:false,_lastSelectSelected:null,_lastFocusedNode:null,_fixSelectElements:function(){
if(epages.Browser.engine=="MSIE"){
dojo.connect(dojo.body(),"mousedown",this,function(evt){
if(!evt.target.disabled){
var _6b5=epages.cssfix.pseudoclasses._lastSelectSelected;
if(_6b5&&evt.target.tagName!="SELECT"&&!evt.target.className.match("SelectCropper")){
_6b5.parentNode.removeAttribute("focused");
dojo.removeClass(_6b5.parentNode,"focused");
epages.cssfix.pseudoclasses._lastSelectSelected=null;
}
if(evt.target.tagName=="SELECT"){
var _6b6=epages.cssfix.pseudoclasses._lastSelectSelected;
if(_6b6){
_6b6.parentNode.removeAttribute("focused");
dojo.removeClass(_6b6.parentNode,"focused");
}
evt.target.parentNode.setAttribute("focused","");
dojo.addClass(evt.target.parentNode,"focused");
epages.cssfix.pseudoclasses._lastSelectSelected=evt.target;
}
}
});
}
},_registerFocus:function(){
var _6b7=dojo.query("input").concat(dojo.query("textarea")).concat(dojo.query("select"));
for(var i=0;i<_6b7.length;i++){
if(!_6b7[i].focusHandle){
_6b7[i].focusHandle=true;
dojo.connect(_6b7[i],"focus",this,function(evt){
evt.currentTarget.setAttribute("focused","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(evt.currentTarget,"focused");
}
});
dojo.connect(_6b7[i],"blur",this,function(evt){
evt.currentTarget.removeAttribute("focused");
if(epages.Browser.engine=="MSIE"){
dojo.removeClass(evt.currentTarget,"focused");
}
});
}
}
},_checkFocus:function(evt){
if(this._lastFocusedNode){
this._lastFocusedNode.removeAttribute("focused");
if(epages.Browser.engine=="MSIE"){
dojo.removeClass(this._lastFocusedNode,"focused");
}
}
var _6bc=false;
for(var z=0;z<this.focusTriggerClasses.length;z++){
if(evt.target.className.match(this.focusTriggerClasses[z])){
_6bc=true;
}
}
if(_6bc||evt.target.tagName=="A"||evt.target.tagName=="INPUT"||evt.target.tagName=="TEXTAREA"||evt.target.tagName=="SELECT"){
evt.target.setAttribute("focused","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(evt.target,"focused");
}
this._lastFocusedNode=evt.target;
}
},_removeActive:function(evt){
evt.currentTarget.removeAttribute("activated","");
if(epages.Browser.engine=="MSIE"){
dojo.removeClass(evt.currentTarget,"activated");
}
},update:function(){
if(this.lastHoveredNode){
var _6bf=this.lastHoveredNode;
for(var i=0;i<this.NODEDEPTH;i++){
if(_6bf){
var _6c1=_6bf.className||"";
var _6c2=false;
for(var z=0;z<this.hoverTriggerClasses.length;z++){
if(_6c1.match(this.hoverTriggerClasses[z])){
_6c2=true;
}
}
if((_6c2||(_6bf.parentNode&&_6bf.parentNode.parentNode&&_6bf.parentNode.parentNode.className&&_6bf.parentNode.parentNode.className.match("ContentList")&&_6bf.tagName=="TR")||_6bf.tagName=="A"||_6bf.tagName=="INPUT"||_6bf.tagName=="TEXTAREA"||_6bf.tagName=="SELECT")&&!_6bf.disabled){
if(!_6bf.isHovered){
this.currentHoveredNodes.push(_6bf);
_6bf.setAttribute("hovered","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(_6bf,"hovered");
}
}
_6bf.isHovered=true;
_6bf.removeHover=false;
}
var _6c4=false;
for(var z=0;z<this.activeTriggerClasses.length;z++){
if(_6c1.match(this.activeTriggerClasses[z])){
_6c4=true;
}
}
if(_6c4||_6bf.tagName=="A"&&!_6bf.activeHandle){
_6bf.activeHandle=true;
dojo.connect(_6bf,"mousedown",this,function(evt){
evt.currentTarget.setAttribute("activated","");
if(epages.Browser.engine=="MSIE"){
dojo.addClass(evt.currentTarget,"activated");
}
});
dojo.connect(_6bf,"mouseup",this,"_removeActive");
dojo.connect(_6bf,"mouseleave",this,"_removeActive");
}
if(_6bf.tagName!="BODY"&&_6bf.tagName!="HTML"){
_6bf=_6bf.parentNode;
}else{
break;
}
}
}
var _6c6=[];
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{
_6c6.push(this.currentHoveredNodes[i]);
}
this.currentHoveredNodes[i].removeHover=true;
}
this.currentHoveredNodes=_6c6;
}
},init:function(){
dojo.connect(dojo.body(),"mouseover",dojo.hitch(this,function(evt){
this.lastHoveredNode=evt.target;
this.mouseMoved=true;
}));
dojo.connect(dojo.body(),"mouseleave",dojo.hitch(this,function(evt){
this.lastHoveredNode=evt.currentTarget;
this.mouseMoved=true;
}));
dojo.connect(dojo.body(),"mouseup",dojo.hitch(this,function(evt){
this._checkFocus(evt);
}));
dojo.connect(dojo.body(),"keyup",dojo.hitch(this,function(evt){
if(evt.keyCode==dojo.keys.TAB){
this._checkFocus(evt);
}
}));
dojo.addOnLoad(dojo.hitch(this,"update"));
dojo.addOnLoad(dojo.hitch(this,"_registerFocus"));
dojo.addOnLoad(dojo.hitch(this,"_fixSelectElements"));
setInterval(dojo.hitch(this,function(){
if(this.mouseMoved){
this.update();
this.mouseMoved=false;
}
}),1);
}},updatestyles:{_updateStatus:true,update:function(evt){
if(evt&&(evt.target.tagName=="SELECT"||evt.target.tagName=="TEXTAREA"||evt.target.tagName=="INPUT")){
return;
}
setTimeout(dojo.hitch(this,function(){
this._updateStatus=!this._updateStatus;
dojo.body().parentNode.style.display=this._updateStatus?"block":"table";
dojo.body().parentNode.style.width=this._updateStatus?"auto":"100%";
dojo.body().parentNode.style.height=this._updateStatus?"auto":"100%";
}),10);
},init:function(){
if(epages.Browser.engine=="WebKit"){
dojo.connect(dojo.body().parentNode,"click",this,"update");
dojo.addOnLoad(dojo.hitch(this,function(){
dojo.hitch(this,"update");
setTimeout(dojo.hitch(this,"update"),10);
setTimeout(dojo.hitch(this,"update"),100);
}));
}
}},fixtableborder:{init:function(){
if(epages.Browser.engine=="Gecko"){
dojo.addOnLoad(function(){
var _6cc=dojo.query(".ContentArea table[border]").concat(dojo.query(".ContentArea table[width]"));
for(var i=0;i<_6cc.length;i++){
if(!_6cc[i].className||(_6cc[i].className&&_6cc[i].className=="")){
_6cc[i].style.marginLeft="1px";
}
}
});
}
}},highlighterrorimages:{init:function(){
dojo.addOnLoad(function(){
for(var i=0;i<document.images.length;i++){
var _6cf=new Image();
_6cf.onerror=function(){
this.imageRef.src=epages.themeUrl("images")+"/img_faultyimage.png";
};
_6cf.imageRef=document.images[i];
_6cf.src=document.images[i].src;
}
});
}},init:function(){
this.png.init();
this.pseudoclasses.init();
this.updatestyles.init();
this.fixtableborder.init();
this.highlighterrorimages.init();
}};
epages.cssfix.init();
}
if(!dojo._hasResource["epages.loaderani"]){
dojo._hasResource["epages.loaderani"]=true;
dojo.provide("epages.loaderani");
epages.loaderani={defaultWidth:50,defaultHeight:50,defaultLeft:-9999,defaultTop:-9999,defaultZIndex:1,loaderAniFlash:window.StoreRoot+"/Flash/loadingring.swf",_queuedAni:[],_currentQueueIndex:0};
epages.loaderani._getNextAni=function(){
if(window.StoreRoot!==undefined){
this._currentQueueIndex++;
this._queuedAni[this._currentQueueIndex]=document.createElement("ins");
with(this._queuedAni[this._currentQueueIndex]){
className="LoaderAni";
style.cssText="position:absolute;z-index:"+this.defaultZIndex+";left:"+this.defaultLeft+"px;top:"+this.defaultTop+"px";
innerHTML="<object wmode='transparent' width='"+this.defaultWidth+"' height='"+this.defaultHeight+"' type='application/x-shockwave-flash' data='"+this.loaderAniFlash+"'><param name='movie' value='"+this.loaderAniFlash+"'/><param name='wmode' value='transparent'/></object><i></i>";
}
dojo.body().appendChild(this._queuedAni[this._currentQueueIndex]);
}else{
console.warn("global var StoreRoot not defined in epages.loaderani._getNextAni()");
}
},epages.loaderani.create=function(_6d0,_6d1){
_6d0=_6d0||{};
_6d0.width=_6d0.width||this.defaultWidth;
_6d0.height=_6d0.height||this.defaultHeight;
_6d0.left=_6d0.left||this.defaultLeft;
_6d0.top=_6d0.top||this.defaultTop;
_6d0.zIndex=_6d0.zIndex||this.defaultZIndex;
with(this._queuedAni[this._currentQueueIndex].style){
left=_6d0.left+"px";
top=_6d0.top+"px";
zIndex=_6d0.zIndex;
}
with(this._queuedAni[this._currentQueueIndex].getElementsByTagName("object")[0]){
width=_6d0.width;
height=_6d0.height;
}
this._getNextAni();
var _6d2=this._queuedAni[this._currentQueueIndex-1];
if(_6d1){
_6d1.appendChild(_6d2);
}
return _6d2;
};
epages.loaderani.destroy=function(_6d3){
if(_6d3&&_6d3.parentNode){
_6d3.parentNode.removeChild(_6d3);
}
};
if(epages.Browser.flashVersion){
if((epages.Browser.engine=="MSIE"&&epages.Browser.version<7)||epages.Browser.engine=="Presto"){
dojo.addOnLoad(function(){
epages.loaderani._getNextAni();
});
}else{
epages.loaderani._getNextAni();
}
}
}
if(!dojo._hasResource["epages.event.interactionrestrictor"]){
dojo._hasResource["epages.event.interactionrestrictor"]=true;
dojo.provide("epages.event.interactionrestrictor");
epages.event.interactionRestrictor=function(){
dojo.subscribe("interactionRestrictor/suspend",function(_6d4,_6d5,_6d6){
if(!$(_6d4)&&_6d5&&_6d5.offsetWidth){
dojo.body().className+=" SuspendUserInteraction";
var _6d7=document.createElement("div");
var _6d8=new epages.html.Element(_6d5).getAbsolutePosition(dojo.body());
with(_6d7){
id=_6d4;
className="SuspendUserInteractionAnimation";
style.width=_6d5.offsetWidth+"px";
style.height=_6d5.offsetHeight+"px";
style.left=_6d8.x+"px";
style.top=_6d8.y+"px";
}
if(_6d6){
dojo.addClass(_6d7,"SuspendUserInteractionHidden");
}else{
if(_6d5.offsetHeight>0){
_6d7.loaderani=epages.loaderani.create({width:16,height:16,top:(_6d8.y+_6d5.offsetHeight/2-8),left:(_6d8.x+_6d5.offsetWidth/2-8),zIndex:10000});
}
}
dojo.body().appendChild(_6d7);
}
});
dojo.subscribe("interactionRestrictor/permit",function(_6d9){
if($(_6d9)){
dojo.removeClass(dojo.body(),"SuspendUserInteraction");
epages.loaderani.destroy($(_6d9).loaderani);
dojo.body().removeChild($(_6d9));
}
});
};
new epages.event.interactionRestrictor;
}
if(!dojo._hasResource["epages.widget.FormElement"]){
dojo._hasResource["epages.widget.FormElement"]=true;
dojo.provide("epages.widget.FormElement");
dojo.declare("epages.widget.FormElement",[dijit._Widget],{elementNode:null,description:"",inputType:"hidden",_allowCheckStatus:true,_allowCheckStatusEvent:null,_formDescriptionLayer:null,_groupElements:[],_transformElement:function(_6da){
var _6db=this.domNode.selectedIndex;
var _6dc=this.domNode.cloneNode(true);
var _6dd=document.createElement("span");
_6dd.className=_6da+" EnableActive EnableHover "+(this.domNode.disabled?"Disabled":"")+(this.domNode.size?"Sized":"");
_6dd.appendChild(_6dc);
this.domNode.parentNode.replaceChild(_6dd,this.domNode);
this.domNode=_6dd;
this.elementNode=this.domNode.getElementsByTagName("*")[0];
if(_6db){
this.elementNode.selectedIndex=_6db;
}
},_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 _6de=document.createElement("input");
_6de.type="submit";
_6de.className="HideElement";
this.form.appendChild(_6de);
_6de.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 _6e1=this._groupElements;
for(var i=0;i<_6e1.length;i++){
if((_6e1[i].checked==true||_6e1[i].checked=="checked")&&_6e1[i].className.match("Checked")){
_6e1[i].checked=false;
dojo.removeClass(_6e1[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 _6e4=dojo.query(".Button",evt.currentTarget.parentNode.parentNode)[0];
_6e4.setAttribute("hovered","");
dojo.addClass(_6e4,"hovered");
});
dojo.connect(this.elementNode,"mouseout",this,function(evt){
var _6e6=dojo.query(".Button",evt.currentTarget.parentNode.parentNode)[0];
_6e6.removeAttribute("hovered","");
dojo.removeClass(_6e6,"hovered");
});
dojo.connect(this.elementNode,"change",this,function(evt){
var _6e8=dojo.query("input[type=text]",evt.currentTarget.parentNode.parentNode)[0];
_6e8.value=evt.currentTarget.value;
});
}
}
}
}
}
}
}
this._checkStatus();
},_updateCheckbox:function(evt){
var _6ea=evt.target.getElementsByTagName("input")[0];
if(_6ea){
epages.event.fire(_6ea,"click");
if(epages.Browser.engine=="MSIE"){
_6ea.checked=!_6ea.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 _6ed=this._groupElements;
for(var i=0;i<_6ed.length;i++){
if(!(_6ed[i].checked==true||_6ed[i].checked=="checked")){
dojo.removeClass(_6ed[i],"Checked");
}
}
}
if(this.elementNode.checked){
dojo.addClass(this.domNode,"Checked");
}else{
dojo.removeClass(this.domNode,"Checked");
}
}
},setChecked:function(_6ef){
if(this.elementNode.className.match("Radio")){
if(_6ef){
var _6f0=dojo.query("input[name="+this.elementNode.name+"].Radio");
for(var i=0;i<_6f0.length;i++){
_6f0[i].checked=false;
}
this.elementNode.checked=true;
epages.event.fire(this.elementNode,"change");
}
}else{
this.elementNode.checked=_6ef;
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 _6f3=evt.currentTarget;
if(_6f3.getAttribute("description")&&_6f3.getAttribute("description").length>1){
if(this._formDescriptionLayer){
var _6f4=this._formDescriptionLayer;
_6f4.className=_6f4.className.replace(/HideElement/,"");
if(_6f4.offsetWidth>300){
_6f4.style.width="300px";
}
dojo.fadeIn({node:_6f4,duration:200}).play();
}else{
var _6f5=$E(this.domNode).getAbsolutePosition();
this._formDescriptionLayer=document.createElement("div");
var _6f6=document.createElement("div");
_6f6.className="TooltipShadow";
with(this._formDescriptionLayer){
innerHTML=unescape(_6f3.getAttribute("description")).replace(/&lt;/g,"<").replace(/&gt;/g,">");
className="Tooltip HideElement Wide";
onselectstart=function(){
return false;
};
style.MozUserSelect="none";
style.WebkitUserSelect="ignore";
style.left=(_6f5.x+this.domNode.offsetWidth+2)+"px";
style.top=_6f5.y+"px";
style.display="block";
appendChild(_6f6);
}
dojo.style(this._formDescriptionLayer,"opacity",0);
dojo.body().appendChild(this._formDescriptionLayer);
this._showDescription(evt);
}
}
},_hideDescription:function(evt){
if(this._formDescriptionLayer){
var _6f8=this._formDescriptionLayer;
dojo.fadeOut({node:_6f8,duration:200}).play();
setTimeout(function(){
_6f8.className+=" HideElement";
},200);
}
},_highlightChanges:function(){
var _6f9=this.elementNode;
if(_6f9.tagName=="SELECT"&&epages.Browser.engine=="MSIE"){
_6f9=this.domNode;
}
switch(this.inputType){
case "text":
if(_6f9.startupValue!=_6f9.value){
dojo.addClass(_6f9,"Changed");
}else{
dojo.removeClass(_6f9,"Changed");
}
if(_6f9.className.match("Mandatory")&&_6f9.value.length<1){
dojo.addClass(_6f9,"Unfilled");
}else{
dojo.removeClass(_6f9,"Unfilled");
}
break;
case "select":
if(epages.Browser.engine=="MSIE"){
_6f9=this.domNode;
}
if(this.elementNode.startupIndex!=this.elementNode.selectedIndex){
dojo.addClass(_6f9,"Changed");
}else{
dojo.removeClass(_6f9,"Changed");
}
break;
case "radio":
break;
case "checkbox":
break;
case "file":
_6f9=this.domNode.firstChild;
if(_6f9.value.length>1){
dojo.addClass(_6f9,"Changed");
}else{
dojo.removeClass(_6f9,"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"]);
