(function(i){if(!i.BonaPage){var j=(i.location.protocol+"//"+i.location.host).toLowerCase(),h=c();i.BonaPage={isObjInited:false,isObjValid:false,eventTagsAttribute:"eventTags",topWindow:h,isTopWindow:i==h,contentWindow:h,throttle:g,clearThrottle:b,init:e};i.WA=BonaPage;a();}function a(){if(!h.BonaPage||!h.BonaPage.isObjValid){WA.throttle(a,37);return;}h.BonaPage.addPageStateHandler(h.BonaPage.PAGE_PARSED,f);}function f(){WA.contentWindow=h.contentarea||h;if(!WA.contentWindow.BonaPage||!WA.contentWindow.BonaPage.isObjValid){WA.contentWindow=h;WA.throttle(f,37);}}function b(k){if(k.timeoutId){clearTimeout(k.timeoutId);k.timeoutId=null;}}function g(m,k,l){k=k||{};var n=typeof(k)==="object"?(k.timeout||500):k;clearTimeout(m.timeoutId);m.timeoutId=setTimeout(function(){m.call(l,k);},n);}function c(){try{if(top&&top.document&&(top.location.protocol+"//"+top.location.host).toLowerCase()==j){return top;}else{return d(i);}}catch(k){return d(i);}}function d(l){try{if(l.parent&&l.location.href!=l.parent.location.href){if((l.parent.location.protocol+"//"+l.parent.location.host).toLowerCase()==j){return d(l.parent);}else{return l;}}else{return l;}}catch(k){return l;}}function e(){WA.Browser=new WA.WaBrowser();WA.Device=new WA.WaDevice();WA.Log=new WA.WaLog();WA.Object=new WA.WaObject();WA.getTypeString=WA.Object.getTypeString;WA.TestFramework=new WA.WaTestFramework();WA.Tools=new WA.WaTools();WA.Tools.EventHandlers=WA.EventHandlers;WA.Window=new WA.WaWindow();WA.Date=new WA.WaDate();WA.String=new WA.WaString();WA.formatString=WA.String.format;WA.Number=new WA.WaNumber();WA.Array=new WA.WaArray();WA.Price=new WA.WaPrice();WA.Url=new WA.WaUrl();WA.Style=new WA.WaStyle();WA.Dom=new WA.WaDom();WA.Dimensions=new WA.WaDimensions();WA.$=WA.Dom.$;WA.$c=WA.Dom.$c;WA.$$=WA.Dom.$$;if(WA.isWidgetMode){WA.WidgetMode=new WA.WaWidgetMode();}WA.DragDropStatic=new WA.WaDragDropStatic();WA.Gadgets=new WA.WaGadgets();WA.WebFormsValidator=new WA.WaWebFormsValidator();WA.Tools.KeyboardWatcher=new WA.KeyboardWatcher({parentComponent:WA.Tools});WA.Tools.PropertyWatcher=new WA.PropertyWatcher();WA.Tools.PeterBlum=new WA.PeterBlum();WA.Tools.JsCombinerTestModule=new WA.JsCombinerTestModule();WA.Tools.FileDownload=new WA.FileDownload();}})(window);(function(d,b,a){if(!b.WaLog){b.WaLog=c;b.WaLog.TypeName="WA.WaLog";}function c(){var r=this,u=b.WaLog.TypeName;r.toString=function(){return u;};var l=false,k=false,q,p,v=true,h=false,f=1;r.add=e;r.enabled=h;r.show=t;r.hide=i;r.setUseConsole=s;function s(w){v=w===true;}function n(){if(!v){q=d.open("","walogwindow","width=900,height=700,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0");if(q==null){alert("Log console is blocked. Please, allow pop-up windows.");}else{l=true;}b.addHandler(d,"unload",g);}}function m(){p=b.topWindow.BonaPage.$("idLogPanelDivForDebugger");if(!p){p=b.topWindow.document.createElement("DIV");p.id="idLogPanelDivForDebugger";p.style.position="absolute";p.style.zIndex="3737";p.style.left="0px";p.style.top="0px";p.style.width="337px";p.style.height="400px";p.style.display="none";p.style.backgroundColor="white";if(b.Browser.isIE){p.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=97)";}else{p.style.opacity=parseFloat("0.73");p.style.MozOpacity=parseFloat("0.73");p.style.KhtmlOpacity=parseFloat("0.73");}b.topWindow.document.body.appendChild(p);}}function e(y,z){if(!h){return;}if(v&&d.console){o(y,z);return;}if(q&&q.document){var x="id_"+new Date().getTime()+Math.floor(Math.random()*11);q.document.write('

=0?'style="color: red;"':"")+">"+(f++)+". "+y+" : "+z+"

");if(q.document.getElementById){var w=q.document.getElementById(x);w.scrollIntoView();}}}function o(x,y){var z=b.getTypeString(y);switch(z){case"object":case"array":case"mouseevent":var w="";d.console.log((f++)+". %c%s : %x",w,x,y);break;default:d.console.log((f++)+". "+(x.indexOf("GLOBAL ERROR")>=0?"ERROR: ":"")+x+" : "+y);break;}}function t(A,x){x=x||{};var y,z,w=[];p=b.topWindow.BonaPage.$("idLogPanelDivForDebugger");if(x.left!=null){p.style.left=x.left+"px";}else{if(x.right!=null){p.style.right=x.right+"px";}}if(x.top!=null){p.style.top=x.top+"px";}else{if(x.bottom!=null){p.style.bottom=x.bottom+"px";}}if(x.width!=null){p.style.width=x.width+"px";}if(x.height!=null){p.style.height=x.height+"px";}if(A!=null){if(typeof(A)==="string"){w.push(A);}else{if(typeof(A)==="object"&&A.length!=null&&typeof(A.length)!=="function"){for(y=A.length;y--;){w.unshift(y+": "+A[y]+"
");}}else{for(y in A){if(A.hasOwnProperty(y)){w.push(y+": "+A[y]+"
");}}}}p.innerHTML=w.join("");}if(p.style.display.toLowerCase()=="none"){p.style.display="block";}}function i(){p.style.display="none";}function j(){if(h&&b.Device.isDesktop){if(!l&&q==null){n();}if(!k&&p==null){b.addPageStateHandler(b.PAGE_PARSED,m);}}}function g(){if(q){q.close();}}j();}})(window,WA);(function(window,WA){if(!WA.Object){WA.WaObject=WaObject;WA.WaObject.TypeName="WA.WaObject";}function WaObject(args){args=args||{};var pThis=this,typeName=WA.WaObject.TypeName;pThis.extend=extend;pThis.create=create;pThis.copy=copy;pThis.merge=merge;pThis.areEqual=areEqual;pThis.areMembersEqual=areMembersEqual;pThis.getTypeString=getTypeString;pThis.createEventTagsAttribute=createEventTagsAttribute;function createEventTagsAttribute(attrValue,obj){obj=obj||{};obj[WA.eventTagsAttribute]=attrValue;return obj;}function getTypeString(obj){return({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();}function areEqual(obj,rObj){var i,ret=true;if(typeof(obj)=="object"){if(typeof(rObj)=="object"){if(obj==null){ret=obj==rObj;}else{if(typeof(obj.splice)=="function"){for(i=0;i0;};a.EventHandlers.prototype.addHandler=function(e,c){c=c||{};c.handlerName=c.handlerName||null;c.period=c.period||null;var f=this.customHandlers,d="";if(typeof(e)!="function"){return;}var g;for(g=0;g=f.length){if(this.fired&&!c.isNoLazyFire&&c.period=="once"){e(this.sender,this.fired.args);return;}else{f.push({handler:e,handlerName:c.handlerName,period:c.period});}}if(this.fired&&!c.isNoLazyFire){e(this.sender,this.fired.args);}};a.EventHandlers.prototype.removeHandler=function(e,c){c=c||{};c.handlerName=c.handlerName||null;var f=this.customHandlers,d="";if(f&&f.length){var g;for(g=0;g0){throw new Error("call resetTests before usage");}}function h(){}function g(){if(i){return;}j.Dispose.fireHandlers();j.RenderComplete=null;j.Dispose=null;i=true;}h();}})(window,WA);(function(c,a){if(!a.WaTools){a.WaTools=b;}function b(){var h=this,i="WA.WaTools";h.Dispose=a.EventHandlers.createHandlers(h,{id:"Dispose"});h.applyEventModel=d;h.disposeEventModel=f;function d(m,o){var l;o=o||c;for(var n in m){if(!m.hasOwnProperty(n)){continue;}l=o.document.getElementById(n);if(l){for(var j in m[n]){if(!m[n].hasOwnProperty(j)){continue;}var k=j.toLowerCase();switch(k){case"onvaluechanged":h.PropertyWatcher.register(l,"value",m[n][j],{targetWindow:o});break;default:a.addHandler(l,k,m[n][j]);break;}}}l=null;}}function f(m,o){o=o||c;var l;for(var n in m){if(!m.hasOwnProperty(n)){continue;}l=o.document.getElementById(n);if(l){for(var j in m[n]){if(!m[n].hasOwnProperty(j)){continue;}var k=j.toLowerCase();switch(k){case"onvaluechanged":h.PropertyWatcher.unregister(l,{targetWindow:o});break;default:a.removeHandler(l,k,m[n][j]);break;}}}l=null;}o=null;}function g(){}function e(){h.Dispose.fireHandlers();}g();}})(window,WA);(function(d,b,a){if(!b.WaArray){b.WaArray=c;b.WaArray.TypeName="WA.WaArray";}function c(){var r=this,C=b.WaArray.TypeName;r.toString=function(){return C;};r.Dispose=b.Tools.EventHandlers.createHandlers(r,{id:"Dispose"});var p=false;r.first=l;r.where=D;r.select=v;r.sum=B;r.findFirst=k;r.contains=h;r.reTestOr=u;r.reTestAnd=t;r.clone=e;r.remove=s;r.sort=w;r.sortObjectsArray=A;r.getObjectByProperty=m;r.getObjectsByProperty=n;r.convertToDictionary=i;function i(E,H,J){var I={},F,G;for(F=0,G=E.length;FI[G].toLowerCase()){return 1;}return 0;}return E;}function s(E,F,H){var G=E.slice((H||F)+1||E.length);E.length=F<0?E.length+F:F;E.push.apply(E,G);return E;}function e(E){var G=[];for(var F=0;F=4)||h.webKitVer1>0))||h.webKitVer>4)||(m.indexOf("Chrome/")!=-1&&h.webKitVer>=3)))?true:false;h.isWebKitSafari=(h.isWebKit&&m.indexOf("Version/")!=-1);h.isWebKitChrome=(h.isWebKit&&(m.indexOf("Chrome/")!=-1||m.indexOf("CriOS/")!=-1));h.isOnBeforeUnloadEnabled=(!h.isWebKit||(h.isWebKit&&((m.indexOf("Version/")!=-1&&h.webKitVer>=5)||h.webKitVer>=7)));h.isMac=m.indexOf("Mac")!=-1;h.isNS7=m.indexOf("Netscape/7")!=-1;h.isNS71=m.indexOf("Netscape/7.1")!=-1;h.isTouchEventsSupported=!!(("ontouchstart" in d)||(d.DocumentTouch&&document instanceof DocumentTouch)||(navigator.msPointerEnabled&&navigator.msMaxTouchPoints));if(/Firefox\/(\S+)/.test(m)){h.Version=RegExp["$1"];h.Firefox=parseFloat(h.Version);}h.isCssStyleSupported=g;h.hasWorkingPointerEvents=h.isCssStyleSupported("pointer-events")&&!h.isIE;h.pointerEventsCursorFixHalfWidth=4;h.pointerEventsCursorFixOffset=h.pointerEventsCursorFixHalfWidth+1;h.dragDropEvent={eStart:"mousedown",eMove:"mousemove",eEnd:"mouseup"};}f();}})(window,WA);(function(d,b,a){if(!b.WaDate){b.WaDate=c;b.WaDate.TypeName="WA.WaDate";b.WaDate.DateFormat={MMddyyyySlash:"mm/dd/yyyy",dMMyyyySlash:"dd/mm/yyyy",dMMMyyyySpace:"d mmm yyyy",ddMMyyyyDot:'dd"."mm"."yyyy',ddMMyyyyHyphen:"dd-mm-yyyy",ddMMMyyyySpace:"dd mmm yyyy",ddMMMyyyyHyphen:"dd-mmm-yyyy",yyyyMMddHyphen:"yyyy-mm-dd",ddddMMMMddyyyy:'dddd"," mmmm dd"," yyyy',dddMMMMddyyyy:'ddd"," mmmm dd"," yyyy',MMMMddyyyy:'mmmm dd"," yyyy',ddMMMMyyyy:"dd mmmm yyyy"};b.WaDate.TimeFormat={h24:"HH:MM",h12:"h:MM tt"};b.WaDate.WeekDayIndex={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};b.WaDate.DaysOfTheWeekBitMasks=[1<<0,1<<1,1<<2,1<<3,1<<4,1<<5,1<<6];b.WaDate.SecondsInMinute=60;b.WaDate.MinutesInHour=60;b.WaDate.HoursInDay=24;b.WaDate.MsInSecond=1000;b.WaDate.MsInMinute=b.WaDate.SecondsInMinute*b.WaDate.MsInSecond;b.WaDate.SecondsInHour=b.WaDate.MinutesInHour*b.WaDate.SecondsInMinute;b.WaDate.MsInHour=b.WaDate.SecondsInHour*b.WaDate.MsInSecond;b.WaDate.SecondsInDay=b.WaDate.HoursInDay*b.WaDate.SecondsInHour;b.WaDate.MsInDay=b.WaDate.SecondsInDay*b.WaDate.MsInSecond;b.WaDate.DaysInWeek=7;b.WaDate.MonthsInYear=12;b.WaDate.I18N={DayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sundays","Mondays","Tuesdays","Wednesdays","Thursdays","Fridays","Saturdays"],MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],MonthWeekNumbers:["1st","2nd","3rd","4th","5th","first","second","third","fourth","fifth","first","second","third","last","last"]};}function c(){var E=this,G=b.WaDate.TypeName;E.toString=function(){return G;};E.Dispose=b.Tools.EventHandlers.createHandlers(E,{id:"Dispose"});var D=false,m;E.getDateOnlyUtcTicks=p;E.getDateTimeUtcTicks=q;E.format=l;E.getCalendarMask=o;E.getBitMaskFromDaysOfTheWeekArray=n;E.getDaysOfTheWeekArrayFromBitMask=t;E.getDaysFromMilliseconds=r;E.getMillisecondsFromDays=y;E.shiftWeekDaysArray=F;E.getLocalDateFromUtcMs=x;E.getFullYearsBetweenUtcMs=w;E.getFullMonthsBetweenUtcMs=u;E.getFullWeeksBetweenUtcMs=v;E.addDaysToUtcMilliseconds=e;E.addYearsToUtcMilliseconds=i;E.addMonthsToUtcMilliseconds=f;E.addMonthsToUtcMillisecondsByWeekDay=g;E.addWeeksToUtcMilliseconds=h;E.getDaysInMonth=s;E.countWeeksInMonth=j;E.getMonthWeekIndex=z;E.getWeekDayIndexFromUtcMs=B;function B(I){var H=x(I);return H.getDay();}function z(H,O){var L=O?"getUTC":"get",P=H[L+"Day"](),R=H[L+"FullYear"](),J=H[L+"Date"](),N=H[L+"Month"](),K=s(R,N),M,I,Q=0;for(M=1;M<=K;M++){I=new Date(R,N,M);if(I.getDay()==P){if(M==J){return Q;}Q++;}}}function A(H){return z(x(H),false);}function s(I,H){return new Date(I,H+1,0).getDate();}function j(L,J){var H=new Date(L,J,1),I=new Date(L,J+1,0),K=H.getDay()+I.getDate();return Math.ceil(K/7);}function h(H,I){return H+I*b.WaDate.MsInDay*b.WaDate.DaysInWeek;}function g(R,P,I){var Q=x(R),S=Q.getDay(),T=A(R),O=f(R,P,I,true),N=x(O),U=N.getFullYear(),M=N.getMonth(),K=s(N.getFullYear(),N.getMonth()),L,J,H=0;if(T<3){for(L=1;L<=K;L++){J=new Date(U,M,L);if(S==J.getDay()){if(T==H){return I?p(J):q(J);}H++;}}}else{for(L=K;L>=1;L--){J=new Date(U,M,L);if(S==J.getDay()){return I?p(J):q(J);}}}throw new Error("Unable to find date.");}function f(M,J,I,H){var L=x(M),K=new Date(L.getFullYear(),L.getMonth()+J,L.getDate(),L.getHours(),L.getMinutes(),L.getSeconds(),L.getMilliseconds());if(H&&K.getDate()!=L.getDate()){K=new Date(K.getFullYear(),K.getMonth(),0,K.getHours(),K.getMinutes(),K.getSeconds(),K.getMilliseconds());}return I?p(K):q(K);}function i(L,M,I,H){var K=x(L),J=new Date(K.getFullYear()+M,K.getMonth(),K.getDate(),K.getHours(),K.getMinutes(),K.getSeconds(),K.getMilliseconds());if(H&&J.getMonth()!=K.getMonth()){J=new Date(J.getFullYear(),J.getMonth(),0,J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds());}return I?p(J):q(J);}function e(I,H){return I+y(H);}function v(I,H){return Math.floor(Math.abs(H-I)/(b.WaDate.MsInDay*b.WaDate.DaysInWeek));}function x(I){var H=new Date().getTimezoneOffset()*b.WaDate.MsInMinute;return new Date(I+H);}function u(L,I){var K=x(L),H=x(I),J=(H.getFullYear()-K.getFullYear())*b.WaDate.MonthsInYear;J-=K.getMonth();J+=H.getMonth();J-=parseInt(l(K,"mdHHMMssl"),10)99?Math.round(E/10):E),t:C<12?"a":"p",tt:C<12?"am":"pm",T:C<12?"A":"P",TT:C<12?"AM":"PM",Z:N?"UTC":(String(z).match(r)||[""]).pop().replace(s,""),o:(J>0?"-":"+")+q(Math.floor(Math.abs(J)/60)*100+Math.abs(J)%60,4),S:["th","st","nd","rd"][v%10>3?0:(v%100-v%10!=10)*v%10],w:A.i18n.MonthWeekNumbers[O],ww:A.i18n.MonthWeekNumbers[O+5],www:A.i18n.MonthWeekNumbers[O+10]};return I.replace(t,function(w){return w in B?B[w]:w.slice(1,w.length-1);});};})();f.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};f.i18n=c.WaDate.I18N;}function i(r){var s=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,q={d:"%e",dd:"%d",ddd:"%a",dddd:"%A",m:"%o",mm:"%m",mmm:"%b",mmmm:"%B",yy:"%y",yyyy:"%Y",h:"%l",hh:"%I",H:"%k",HH:"%H",M:"%M",MM:"%M",s:"%S",ss:"%S",l:"",L:"",t:"%P",tt:"%P",T:"%p",TT:"%p",Z:"",o:"",S:"%e"};return r.replace(s,function(t){return t in q?q[t]:t.slice(1,t.length-1);});}function j(){e();m.Dispose.addHandler(g);}function g(){n.Dispose.fireHandlers();m.Dispose.removeHandler(g);p=null;m=null;n.Dispose=null;}j();}})(window,WA);(function(d,b,a){if(!b.WaDevice){b.WaDevice=c;b.WaDevice.TypeName="WA.WaDevice";}function c(){var g=this,h=b.WaDevice.TypeName;g.toString=function(){return h;};function e(){var i=b.Window.getWindowSizes();g.isPortrait=((i.clientHeight/i.clientWidth)>1);g.isLandscape=!g.isPortrait;b.addHandler(d,g.isOrientationEvent,e);}function f(){var i=d.navigator.userAgent.toLowerCase(),j;g.isIPhone=(i.indexOf("iphone")!==-1);g.isIPad=(i.indexOf("ipad")!==-1);g.isIPod=(i.indexOf("ipod")!==-1);g.isIOS=g.isIPhone||g.isIPad||g.isIPod;if(g.isIOS){j=i.match(/os\s+(\d+)_(\d+)(?:_(\d+))?\s+like\s+mac\s+os/i);if(j&&j.length>3){g.iOSVersion=[j[1],j[2],(j[3]||0)];}else{g.iOSVersion=[8,1,0];}}g.isAndroid=(i.indexOf("android")!==-1);g.isAndroidPhone=g.isAndroid&&(i.indexOf("mobile")!==-1);g.isaAndroidTablet=g.isAndroid&&(i.indexOf("mobile")===-1);g.isBlackberry=(i.indexOf("blackberry")!==-1)&&(i.indexOf("bb10")!==-1)&&(i.indexOf("rim")!==-1);g.isBlackberryPhone=g.isBlackberry&&(i.indexOf("tablet")===-1);g.isBlackberryTablet=g.isBlackberry&&(i.indexOf("tablet")!==-1);g.isWindows=(i.indexOf("windows")!==-1);g.isWindowsPhone=g.isWindows&&(i.indexOf("phone")!==-1);g.isWindowsTablet=g.isWindows&&((i.indexOf("touch")!==-1)&&!g.isWindowsPhone);g.isFFOS=((i.indexOf("(mobile;")!==-1)||(i.indexOf("(tablet;")!==-1))&&(i.indexOf("; rv:")!==-1);g.isFFOSPhone=g.isFFOS&&(i.indexOf("mobile")!==-1);g.isFFOSTablet=g.isFFOS&&(i.indexOf("tablet")!==-1);g.isMeeGo=(i.indexOf("meego")!==-1);g.isCordova=d.cordova&&location.protocol==="file:";g.isNodeWebkit=typeof(d.process)==="object";g.isPhone=g.isIPhone||g.isIPod||g.isAndroid||g.isBlackberryPhone||g.isWindowsPhone||g.isFFOSPhone||g.isMeeGo;g.isTablet=g.isIPad||g.isaAndroidTablet||g.isBlackberryTablet||g.isWindowsTablet||g.isFFOSTablet;g.isMobile=g.isPhone||g.isTablet;g.isDesktop=!g.isMobile;g.isPortrait=("innerWidth" in d&&"innerHeight" in d)?((d.innerHeight/d.innerWidth)>1):true;g.isLandscape=!g.isPortrait;g.isSupportsOrientation=("onorientationchange" in d);g.isOrientationEvent=(g.isSupportsOrientation?"orientationchange":"resize");g.isTouchEventsSupported=b.Browser.isTouchEventsSupported;b.addPageStateHandler(b.PAGE_PARSED,e);}f();}})(window,WA);(function(d,b,a){if(!b.WaDimensions){b.WaDimensions=c;b.WaDimensions.TypeName="WA.WaDimensions";}function c(){var i=this,j=b.WaDimensions.TypeName;i.toString=function(){return j;};i.Dispose=b.Tools.EventHandlers.createHandlers(i,{id:"Dispose"});var h=false;i.getXY=f;function f(l,k){if(!l){return{x:0,y:0,root:null};}var o=l.offsetLeft||0,p=l.offsetTop||0,m=l.offsetParent,k=k||null,n=l;while(m&&m!==k){o+=m.offsetLeft;p+=m.offsetTop;n=m;m=m.offsetParent;}l.X=o;l.Y=p;return{x:o,y:p,root:n};}function g(){}function e(){if(h){return;}i.Dispose.fireHandlers();i.Dispose=null;h=true;}g();}})(window,WA);(function(d,b,a){if(!b.WaDom){b.WaDom=c;b.WaDom.TypeName="WA.WaDom";}function c(){var y=this,A=b.WaDom.TypeName;y.toString=function(){return A;};y.Dispose=b.Tools.EventHandlers.createHandlers(y,{id:"Dispose"});var v=false;y.$=e;y.$c=g;y.$$=f;y.getEventTagsAttribute=m;y.getDatasetAttrName=l;y.getDataset=k;y.getFirstChildByTagName=n;y.getFirstParentByTagName=o;y.getNextSiblingByTagName=q;y.getPreviousSiblingByTagName=s;y.getTagName=t;y.getNodeName=r;y.isDOMElement=w;y.containsDomNode=i;y.parseHTML=x;y.addStyle=h;y.getFrameByWindow=p;function p(J){var E,H,D,F,G,I;try{E=J.parent.document.getElementsByTagName("IFRAME");}catch(B){return null;}H=E.length;D=null;I=b.getLocationDomain();for(G=0;G=522)){return D.contains(C);}else{if(typeof D.compareDocumentPosition=="function"){return !!(D.compareDocumentPosition(C)&16);}else{var B=C.parentNode;do{if(B===D){return true;}else{B=B.parentNode;}}while(B!==null);return false;}}}function w(B){return !!B.nodeType;}function r(B){return B.nodeName.toUpperCase();}function t(B){return B.tagName.toUpperCase();}function s(B,E){var C=(E)?("|"+(E.split(/\,/).join("|"))+"|").toUpperCase():"",D=B.previousSibling;while(D&&C.indexOf("|"+D.nodeName.toUpperCase()+"|")==-1&&(C||D.nodeType!=1)){D=D.previousSibling;}return(D&&(C.indexOf("|"+D.nodeName.toUpperCase()+"|")!=-1||(!C&&D.nodeType==1)))?D:null;}function q(B,E){var C=(E)?("|"+(E.split(/\,/).join("|"))+"|").toUpperCase():"",D=B.nextSibling;while(D&&C.indexOf("|"+D.nodeName.toUpperCase()+"|")==-1&&(C||D.nodeType!=1)){D=D.nextSibling;}return(D&&(C.indexOf("|"+D.nodeName.toUpperCase()+"|")!=-1||(!C&&D.nodeType==1)))?D:null;}function o(B,D){var C=B.parentNode;while(C&&C.nodeName.toUpperCase()!=D.toUpperCase()){C=C.parentNode;}return(C&&C.nodeName.toUpperCase()==D.toUpperCase())?C:null;}function n(C,D){var B=C.firstChild;while(B&&B.nodeName.toUpperCase()!=D.toUpperCase()){B=B.nextSibling;}return(B&&B.nodeName.toUpperCase()==D.toUpperCase())?B:null;}function k(E){if(E.dataset){return E.dataset;}var D={},C=E.attributes,F,G,H,B;for(F=0,G=C.length;F0){t=Math.floor(t/10);r++;}if(p>r){for(q=p-r;q--;){v+=o;}}return(v+u);}function k(m,n){return parseFloat(m.toFixed(n));}function g(p,r,t){r=r||0;t=t||",";var s=Math.abs(p).toFixed(r).toString(),m=s.indexOf("."),o=m>=0?m:s.length,q=o%3||3,n=(o-q)/3;while(n--){s=s.substr(0,q)+t+s.substr(q);q+=4;}return(p<0?"-":"")+s;}function h(){}function f(){if(i){return;}j.Dispose.fireHandlers();j.Dispose=null;i=true;}h();}})(window,WA);(function(d,b,a){if(!b.WaPrice){b.WaPrice=c;b.WaPrice.TypeName="WA.WaPrice";}function c(){var i=this,k=b.WaPrice.TypeName;i.toString=function(){return k;};i.Dispose=b.Tools.EventHandlers.createHandlers(i,{id:"Dispose"});var h=false;i.roundCurrency=j;i.format=f;function f(n,m,l){var o=b.Number.format(Math.abs(n),2,",");m=m||"";o=(n<0?"-":"")+m+o;if(l&&l!=""){o=o+" ("+l+")";}return o;}function j(q,p){var o=Math.round(q*100+1/10000000)/100,l=1/100,m,n;if(!p||Math.abs(o)<=Math.abs(q)){return o;}m=Math.abs(q)-Math.abs(o)+l;n=Math.floor(m*1000);if(n!=5){return o;}n=Math.round(m*1000);if(n!=5||(o*100)%2==0){return o;}return o>0?o-l:o+l;}function g(){}function e(){if(h){return;}i.Dispose.fireHandlers();i.Dispose=null;h=true;}g();}})(window,WA);(function(d,b,a){if(!b.WaString){b.WaString=c;b.WaString.TypeName="WA.WaString";b.WaString.DefaultCharsToTrim="\\s";}function c(){var p=this,q=b.WaString.TypeName;p.toString=function(){return q;};p.Dispose=b.Tools.EventHandlers.createHandlers(p,{id:"Dispose"});var o=false,f=b.WaString.DefaultCharsToTrim;p.gtrim=m;p.gltrim=k;p.grtrim=l;p.escapeRegexp=h;p.formatNamed=j;p.capitaliseFirstLetter=e;p.format=i;function i(v,r){var u=v,t;for(var s=1;sr){return false;}if(qo){G=G.substr(0,o);}if(H!==G){F=c.getSelectionStartIndex(I,c.topWindow.contentarea);J=G.length-H.length;I.value=G;if(F>0){c.setSelectionStartIndex(I,F+J,c.topWindow.contentarea);}}return G;}function E(K,G){var L=G.validatorData,J=G.normalizedValue,I=null,H=L.minAmountErrorMessage,F=J*L.multiplier/100;if(J<1&&G.Value!==""){K.innerHTML=K.errormessage=L.zeroValueErrorMessage;K.style.display="inline";G.IsValid=!!L.isAdminMode||false;y(K,L,F,I,H);return G.IsValid;}K.style.display="none";K.innerHTML=K.errormessage="";G.IsValid=true;if(FL.maxAmount){I=L.maxAmount;H=L.maxAmountErrorMessage;}}y(K,L,F,I,H);return G.IsValid;}function y(L,M,F,J,H){var I,G=c.Price.format(F,M.currencySymbol,M.currencyCode),K;if(!J||F<=0){I=c.String.format(M.amountTemplate,M.multiplierString,G);}else{G=c.String.format(M.wrongAmountTemplate,G);K=c.Price.format(J,M.currencySymbol,M.currencyCode);I=c.String.format(H,M.multiplierString,G,K);}x(L,I);}function B(I,F){var J=F.validatorData,H=F.normalizedValue,G;w(I,J,H);if(F.Value===""){I.style.display="none";I.innerHTML=I.errormessage="";F.IsValid=true;return F.IsValid;}if(H<=0&&J.minAmount<=0){I.innerHTML=I.errormessage=J.zeroValueErrorMessage;I.style.display="inline";F.IsValid=!!J.isAdminMode||false;return F.IsValid;}G=H>=J.minAmount&&H<=J.maxAmount;F.IsValid=!!J.isAdminMode||G;if(!G){if(H0&&F>0&&G>F){I=G;G=F;F=I;}return{minAmount:G,maxAmount:F,multiplier:H,multiplierString:J.getAttribute(g.MultiplierString,0)||"",amountTemplate:J.getAttribute(g.AmountTemplate,0)||"",zeroValueErrorMessage:J.getAttribute(g.ZeroValueErrorMessage,0)||"",minAmountErrorMessage:J.getAttribute(g.MinAmountErrorMessage,0)||"",maxAmountErrorMessage:J.getAttribute(g.MaxAmountErrorMessage,0)||"",currencySymbol:J.getAttribute(g.CurrencySymbol,0)||"",currencyCode:J.getAttribute(g.CurrencyCode,0)||"",extraCostAmountClientId:J.getAttribute(g.ExtraCostAmountClientId,0)||"",wrongAmountTemplate:J.getAttribute(g.WrongAmountTemplate,0)||"",isAdminMode:!!J.getAttribute(g.AdminMode,0)||false};}function x(H,G){var F=H.parentNode.querySelector("["+c.eventTagsAttribute+'="'+j.ExtraCostAmount+'"]');if(F){F.innerHTML=G;}}function C(){if(!e){return;}var F=e.parentNode.querySelector("["+c.eventTagsAttribute+'="'+j.AmountValidator+'"]');if(F){A(F,{IsValid:true,Value:e.value});}}function q(F){e=c.getEventTarget(F);v(e);c.throttle(C,D);}function f(){c.addHandler(j.EditControl,(d.oninput!==b)?"input":"keyup",q,{window:c.topWindow.contentarea});c.addHandler(j.EditControl,"paste",q,{window:c.topWindow.contentarea});}function u(){c.removeHandler(j.EditControl,"input",q,{window:c.topWindow.contentarea});c.removeHandler(j.EditControl,"keyup",q,{window:c.topWindow.contentarea});c.removeHandler(j.EditControl,"paste",q,{window:c.topWindow.contentarea});}function h(){c.clearThrottle(C);}function r(){if(c.AdminPanel){c.AdminPanel.ContentAreaLoaded.addHandler(f);c.AdminPanel.BeforeLocationChange.addHandler(h);c.AdminPanel.ContentAreaUnload.addHandler(u);}else{f();}}function l(){s.Dispose.addHandler(i);c.addPageStateHandler(c.PAGE_PARSED,r);}function i(){h();s.Dispose.removeHandler(i);if(c.AdminPanel){c.AdminPanel.ContentAreaLoaded.removeHandler(f);c.AdminPanel.BeforeLocationChange.removeHandler(h);c.AdminPanel.ContentAreaUnload.removeHandler(u);}u();p=null;g=null;j=null;e=null;}l();}})(window,WA);(function(d,b,a){if(!b.WaWidgetMode){b.WaWidgetMode=c;b.WaWidgetMode.SysLoginPath="/widget/sys/login";}function c(){var i=this,j="WA.WaWidgetMode";i.toString=function(){return j;};i.Dispose=b.Tools.EventHandlers.createHandlers(i,{id:"Dispose"});var g=false;function h(k){return(k+"/").replace(/\/+/,"").toLowerCase();}function f(){var l=b.Url.parse(b.topWindow.location.href),k=h(l.path)==h(b.WaWidgetMode.SysLoginPath),m=null;if(l.queryKeys&&l.queryKeys.ReturnUrl){m=b.Url.build({protocol:l.protocol,host:l.host,port:l.port,path:l.queryKeys.ReturnUrl});}b.Window.postMessage({isLoginRequired:k,returnUrl:m,isUserAnonymous:b.topWindow.bonaPage_IsUserAnonymous},"*",b.topWindow.top);}function e(){if(g){return;}i.Dispose.fireHandlers();i.Dispose=null;g=true;}f();}})(window,WA);(function(d,b,a){if(!b.WaWindow){b.WaWindow=c;b.WaWindow.TypeName="WA.WaWindow";}function c(){var r=this,u=b.WaWindow.TypeName;r.toString=function(){return u;};r.Dispose=b.Tools.EventHandlers.createHandlers(r,{id:"Dispose"});var p=false,s=null;r.getLocationOrigin=h;r.postMessage=q;r.getScrollLeft=k;r.getScrollTop=l;r.getScrollWidth=m;r.getScrollHeight=j;r.getScrollBarWidth=i;r.setScrollTop=t;r.getInnerWidth=g;r.getInnerHeight=f;r.getWindowSizes=n;function n(w){w=w||d;var v={scrollWidth:0,scrollHeight:0,clientWidth:0,clientHeight:0,innerWidth:0,innerHeight:0,scrollLeft:0,scrollTop:0};if(w.document&&w.document.documentElement){v.clientWidth=g(w)||0;v.clientHeight=f(w)||0;v.scrollWidth=Math.max((w.document.documentElement.scrollWidth||0),v.clientWidth);v.scrollHeight=Math.max((w.document.documentElement.scrollHeight||0),v.clientHeight);v.innerWidth=w.innerWidth||w.document.documentElement.offsetWidth||0;v.innerHeight=w.innerHeight||w.document.documentElement.offsetHeight||0;v.scrollLeft=k(w);v.scrollTop=l(w);}return v;}function f(w){w=w||d;var v=0;if(!w.document){return 0;}if(b.Browser.isIE){if(w.document.documentElement.clientHeight){v=w.document.documentElement.clientHeight;}else{v=w.document.body.clientHeight;if(m(w)>w.document.body.clientWidth||b.Style.getElementStyle(b.Dom.$$("HTML",null,w)[0],"overflowX")==="scroll"){v-=i();}}}else{v=(w.document.compatMode==="CSS1Compat"&&b.Device.isDesktop)?(w.document.documentElement?w.document.documentElement.clientHeight:0):w.document.body.clientHeight;}return v;}function g(y){y=y||d;var v=0,x=null,w;if(!y.document){return 0;}if(b.Browser.isIE){if(y.document.documentElement.clientWidth){v=y.document.documentElement.clientWidth;}else{v=y.document.body.clientWidth;if(j(y)>y.document.body.clientHeight||b.Style.getElementStyle(b.Dom.$$("HTML",null,y)[0],"overflowY")==="scroll"){v-=i();}}}else{w=!!(y.document.documentElement);if(b.Device.isMobile){if(w){x=y.document.documentElement.style.cssFloat;y.document.documentElement.style.cssFloat="left";}else{x=y.document.body.style.cssFloat;y.document.body.style.cssFloat="left";}}v=(document.compatMode==="CSS1Compat"&&b.Device.isDesktop)?(w?y.document.documentElement.clientWidth:0):y.document.body.clientWidth;if(x!==null){if(w){y.document.documentElement.style.cssFloat=x;}else{y.document.body.style.cssFloat=x;}}}return v;}function t(w,x){x=x||d;try{if(typeof(x.pageYOffset)=="number"){x.pageYOffset=w;}else{if(x.document.documentElement&&x.document.documentElement.scrollTop){x.document.documentElement.scrollTop=w;}else{if(x.document.body&&x.document.body.scrollTop){document.body.scrollTop=w;}}}}catch(v){}}function i(A){A=A||d;var v,x,z,y;if(!s){v=A.document;x=v.createElement("DIV");if(x){x.style.position="absolute";x.style.left=x.style.top="-1000px";x.style.width=x.style.height="100px";x.style.overflow="scroll";x.style.visibility="hidden";if(v.body){v.body.appendChild(x);z=x.offsetWidth;y=x.clientWidth;if(x&&z&&y){s=z-y;}}}}if(x){x.parentNode.removeChild(x);}return s;}function j(v){return(v||d).document.body.scrollHeight;}function m(v){return(v||d).document.body.scrollWidth;}function k(y){y=y||d;if(typeof(y.pageXOffset)=="number"){return y.pageXOffset;}var x=y.document.documentElement,v;if(x&&x.scrollLeft){return x.scrollLeft;}v=y.document.body;if(v&&v.scrollLeft){return v.scrollLeft;}return 0;}function l(z){z=z||d;var y=z.pageYOffset;if(typeof(y)=="number"){return y;}var x=z.document.documentElement,v;if(x&&x.scrollTop){return x.scrollTop;}v=z.document.body;if(v&&v.scrollTop){return v.scrollTop;}return 0;}function h(v){v=v||d.location;if(!v.origin){v.origin=v.protocol+"//"+v.hostname+(v.port?":"+v.port:"");}return v.origin;}function q(v,x,y){x=x||"*";y=y||d;if(typeof y.postMessage!="function"){return;}if(typeof v!="string"){try{v=JSON.stringify(v);}catch(w){throw new Error("Unable to parse postMessage data");}}y.postMessage(v,x);}function o(){}function e(){if(p){return;}r.Dispose.fireHandlers();r.Dispose=null;p=true;}o();}})(window,WA);(function(c,b){if(!b.DragDrop){b.DragDrop=a;b.DragDrop.EventTags={DisableDragDrop:"disabledragdrop"};}function a(v,s,f){var t=this;t.addTargets=d;t.dispose=i;t.objId="DragAndDrop_"+b.getGUID();var u=v,r=s,e=f,m=false,l=(r&&r.style.cursor)||"",j=(e&&e.inactiveCursor)||l,h=(e&&e.cursor)||j,y,z;v=null;s=null;f=null;t.DragStart=b.Tools.EventHandlers.createHandlers(t,{id:"DragStart"});t.Drop=b.Tools.EventHandlers.createHandlers(t,{id:"Drop"});t.BeforeDrop=b.Tools.EventHandlers.createHandlers(t,{id:"BeforeDrop"});t.Click=b.Tools.EventHandlers.createHandlers(t,{id:"Click"});t.objId="DragAndDrop_"+b.getGUID();k();function k(){b.addHandler(r,"mousedown",g);b.addHandler(r,"dragstart",b.stopEvent);r.style.cursor=j;}function d(A){}function g(A){A=b.getEvent(A,u);if(A){y=b.getEventTarget(A);var B=b.getEventTags(A,u);if(B&&B.toLowerCase().indexOf(b.DragDrop.EventTags.DisableDragDrop)>=0){return;}if(y===r){y=null;r.style.cursor=h;}else{z=y.style.cursor||"";y.style.cursor=h;}b.DragDropStatic.DragDrop.setParams(u,r,e);b.DragDropStatic.DragDrop.DragDropStaticDragStart.addHandler(q);b.DragDropStatic.DragDrop.DragDropStaticDrop.addHandler(p);b.DragDropStatic.DragDrop.DragDropStaticBeforeDrop.addHandler(o);b.DragDropStatic.DragDrop.DragDropStaticClick.addHandler(n);b.DragDropStatic.DragDrop.init(A);}}function q(B,A){t.DragStart.fireHandlers({dragContext:A});}function p(B,A){w();t.Drop.fireHandlers({dragContext:A});}function x(){if(y){y.style.cursor=z;y=null;}else{r.style.cursor=j;}}function o(B,A){x();t.BeforeDrop.fireHandlers({dragContext:A});}function n(B,A){x();w();t.Click.fireHandlers({dragContext:A});}function w(){b.DragDropStatic.DragDrop.DragDropStaticDragStart.removeHandler(q);b.DragDropStatic.DragDrop.DragDropStaticDrop.removeHandler(p);b.DragDropStatic.DragDrop.DragDropStaticBeforeDrop.removeHandler(o);b.DragDropStatic.DragDrop.DragDropStaticClick.removeHandler(n);}function i(){if(m){return;}w();if(y){y.style.cursor=z;}if(r){r.style.cursor=l;b.removeHandler(r,"mousedown",g);b.removeHandler(r,"dragstart",b.stopEvent);}t.dispose=null;u=null;r=null;e=null;y=null;t.DragStart=null;t.Drop=null;t.BeforeDrop=null;t.Click=null;t=null;m=true;}}})(window,WA);(function(d,b,a){if(!b.WaDragDropHandler){b.WaDragDropHandler=c;}function c(){var an=this,aN="WA.WaDragDropHandler";an.toString=function(){return aN;};an.init=M;an.setParams=aC;an.setBounds=aA;an.setDynamicParams=aB;an.DragDropStaticDragStart=b.Tools.EventHandlers.createHandlers(an,{id:"DragDropStaticDragStart"});an.DragDropStaticBeforeDrop=b.Tools.EventHandlers.createHandlers(an,{id:"DragDropStaticBeforeDrop"});an.DragDropStaticDrop=b.Tools.EventHandlers.createHandlers(an,{id:"DragDropStaticDrop"});an.DragDropStaticClick=b.Tools.EventHandlers.createHandlers(an,{id:"DragDropStaticClick"});var ao,am,e;var O,P,aI,aJ,p,q,aa,ab,v=0,w=0,T=false,Z;var y,z=b.WaDragDropStatic.Direction.horizontal,A=b.WaDragDropStatic.Direction.vertical,x=b.WaDragDropStatic.Direction.both;var h,i,j,g,Q;var aM,C,Y,aL,aK,o,G=[],K,H,I,J,t,u;var aj={},al,S,ac,ad,ae,ak,af,ai,ah,ag;var aw,aq,W,at,au,av,ar,ay,az,ax;var k,R,E;var r,s={},X=false,aP=b.WaDragDropStatic.UnsetScrollActiveTimeOut,l=false;F();function F(){var aQ,aR;for(aQ=0;aQ<17;aQ++){G[aQ]=new Array();for(aR=0;aR<17;aR++){G[aQ][aR]=new Array();}}s[z]="w-resize";s[A]="n-resize";s[x]="move";}function M(aQ){if(S){if(aj[al.name]){ac=aj[al.name].movingElement;ad=aj[al.name].movingElementContent;ae=aj[al.name].movingElementCup;}n();}else{ac=am;}f(aQ);}function aA(aQ){Q=aQ.bounds?1:0;if(Q){h=(aQ.bounds.left!=null)?aQ.bounds.left:-1000000;i=(aQ.bounds.right!=null)?aQ.bounds.right:10000000;j=(aQ.bounds.top!=null)?aQ.bounds.top:-1000000;g=(aQ.bounds.bottom!=null)?aQ.bounds.bottom:10000000;}}function aC(aT,aS,aQ){var aR;ao=aT||d;am=aS;e=aQ||{};aA(e);if(typeof(am)=="string"){am=ao.WA.$(am);}y=e.direction||x;k=e.callBackMoving||null;R=k?1:0;E=e.droppedParams||null;r=e.cursor||null;l=e.checkZIndexIntersection===true;S=e.isCreateMovingElement||false;al=e.movingElementWindow||ao;ag=e.movingElementHTML||null;ak=e.movingElementWidth||null;af=e.movingElementHeight||null;ai=e.movingElementPrototype||am.parentNode;ah=e.movingElementOpacity||37;aM=e.targetWindow||al;aL=e.targetsOverCallBack||null;aK=e.targetsOutCallBack||(aL||(Y?C[0].callBack:null));aw=e.scrollableElementWindow||aM;aq=e.scrollableElement||aw;W=(aq.location!=null);aT=null;aS=null;}function aB(aQ){C=aQ||null;Y=C?1:0;if(Y){N();}}function N(){var aU,aY,aV,aW=0,aX=0,aR,aS,aT,aQ,aZ;for(aU=0;aUaW){aW=C[aU].right;}if(C[aU].bottom>aX){aX=C[aU].bottom;}if(C[aU].zindex==null){C[aU].zindex=0;}}I=Math.ceil(aW/17);J=Math.ceil(aX/17);K=I*17;H=J*17;for(aU=0;aU<17;aU++){aR=I*aU;aS=I*(aU+1);for(aY=0;aY<17;aY++){aT=J*aY;aQ=J*(aY+1);for(aV=0;aV=aR&&C[aV].left<=aS)||(C[aV].right<=aS&&C[aV].right>=aR)||(C[aV].leftaS)){if((C[aV].top>=aT&&C[aV].top<=aQ)||(C[aV].bottom<=aQ&&C[aV].bottom>=aT)||(C[aV].topaQ)){G[aU][aY].push(aV);}}}}}aZ=b.getElementAbsXY(aM.document.body,aM);t=aZ.X;u=aZ.Y;}function n(){if(!ac){ac=al.document.createElement("DIV");ac.style.position="absolute";ac.style.left="-3700px";ac.style.top="-3700px";ac.style.zIndex=33777;ac.style.width="1px";ac.style.height="1px";ac.style.overflow="hidden";ac.style.visibility="hidden";ad=al.document.createElement("DIV");ae=al.document.createElement("DIV");ae.style.position="absolute";ae.style.left="0px";ae.style.top="0px";ae.style.zIndex=33779;ae.style.width="1px";ae.style.height="1px";ac.appendChild(ad);ac.appendChild(ae);al.document.body.appendChild(ac);b.setElementOpacity(ac,ah);if(!aj[al.name]){aj[al.name]={};}aj[al.name].movingElement=ac;aj[al.name].movingElementContent=ad;aj[al.name].movingElementCup=ae;}}function aG(){var aS,aR,aQ;if(S){if(ag){ad.innerHTML=ag;}else{aS=ai.innerHTML;aS=aS.replace(/id=".*?"/ig,"").replace(/^\s+/,"");ad.innerHTML=aS;}aR=(ak!=null)?ak:am.offsetWidth;aQ=(af!=null)?af:am.offsetHeight;ac.style.width=aR+"px";ac.style.height=aQ+"px";ae.style.width=aR+"px";ae.style.height=aQ+"px";ac.style.visibility="visible";}if(r){ac.style.cursor=r;}else{ac.style.cursor=s[y];}if(ae){ae.style.cursor=ac.style.cursor;}}function L(){ac.style.left="-3700px";ac.style.top="-3700px";ac.style.zIndex=33777;ac.style.width="1px";ac.style.height="1px";ac.style.visibility="hidden";}function f(aU){var aW,aX,aS,aT,aQ,aR;aU=b.getEvent(aU,ao);if(aU&&(((!b.Browser.isIE||b.Browser.isIE>=9)&&aU.button==0)||(b.Browser.isIE&&aU.button==1))){Z=b.getEventTarget(aU);O=aU.clientX;P=aU.clientY;aa=aU.screenX;ab=aU.screenY;aW=b.getElementAbsXY(ao.document.body,ao);v=aa-(aW.X+O);w=ab-(aW.Y+P);aX=b.getElementAbsXY((W?aq.document.body:aq),aw);at=aX.left+17;au=aX.right-17;av=aX.top+17;ar=aX.bottom-17;if(W){try{aQ=aq.document.body.scrollLeft;aR=aq.document.body.scrollTop;}catch(aV){}if(aq.document.documentElement&&aq.document.documentElement.scrollLeft!=null){aS=aq.document.documentElement.scrollLeft;aT=aq.document.documentElement.scrollTop;ay=(aS===0&&aQ>0)?aQ:aS;az=(aT===0&&aR>0)?aR:aT;}else{ay=aQ;az=aR;}}else{ay=aq.scrollLeft;az=aq.scrollTop;}b.addGlobalHandler((b.Browser.isIE?"body":"window"),"mousemove",D,"DragDropMouseMoveInAllWindow",{});b.addGlobalHandler((b.Browser.isIE?"body":"window"),"mouseup",ap,"DragDropMouseUpInAllWindow",{});b.addHandler(ac,(b.Browser.isGecko?"DOMMouseScroll":"mousewheel"),aF);b.addHandler(ao.document,"selectstart",b.stopEvent);if(b.Browser.isWebKit){b.addHandler(aq,"scroll",aE);}b.stopEvent(aU,ao);return false;}}function aH(){var aQ=b.getElementAbsXY(al.document.body,al),aR=b.getElementAbsXY(am,ao);aG();switch(y){case z:aI=aa-v-aQ.X-Math.round(ac.offsetWidth/2)+b.Window.getScrollLeft(al);aJ=aR.Y+b.Window.getScrollTop(al)-aQ.Y;break;case A:aI=aR.X+b.Window.getScrollLeft(al)-aQ.X;aJ=ab-w-aQ.Y-Math.round(ac.offsetHeight/2)+b.Window.getScrollTop(al);break;case x:aI=aa-v-aQ.X-Math.round(ac.offsetWidth/2)+b.Window.getScrollLeft(al);aJ=ab-w-aQ.Y-Math.round(ac.offsetHeight/2)+b.Window.getScrollTop(al);break;}ac.style.left=aI+"px";ac.style.top=aJ+"px";p=aI;q=aJ;an.DragDropStaticDragStart.fireHandlers({movingElement:ac,args:{droppedParams:E}});aD();}var U=true;function V(aR,aQ){return aR.top>=aQ.top&&aR.bottom<=aQ.bottom&&aR.left>=aQ.left&&aR.right<=aQ.right;}function D(aS,a7){if(aS&&ac){if(aS.type!="mousemove"||(X&&aS.view!==al)){return;}var aV,aZ,a0,a3,a4,a1=aS.screenX,a2=aS.screenY,aX,aY,aT,aU,a6,a5,aR=null,aW=false,aQ=false;if(!T){if(O==aS.clientX&&P==aS.clientY){return;}T=true;aH();}switch(y){case z:aZ=p+(a1-aa);a0=q;break;case A:aZ=p;a0=q+(a2-ab);break;case x:aZ=p+(a1-aa);a0=q+(a2-ab);break;}if(Q||U===false){if(aZ>=h&&aZ<=i&&U===true){ac.style.left=aZ+"px";O=a1;a3=aZ;}else{a3=(aZ=j&&a0<=g&&U===true){ac.style.top=(a0)+"px";P=a2;a4=a0;}else{a4=(a0=0&&aX=0&&aY=0;aV--){a5=C[a6[aV]];if(aX>=a5.left&&aX<=a5.right&&aY>=a5.top&&aY<=a5.bottom){aQ=l&&aR!=null&&a5.zindex==C[aR].zindex;if(aR==null||a5.zindex>C[aR].zindex||(aQ&&V(a5,C[aR]))){aR=a6[aV];}}}if(aR!=null){a5=C[aR];if(o!=null&&o!=a6[aV]){if(aK){aK(C[o].id,C[o].object,C[o].element);}else{if(C[o].outCallBack){C[o].outCallBack(C[o].id,C[o].object,C[o].element);}}}if(aL){aL();}else{if(a5.overCallBack){a5.overCallBack({movingElementX:a3,movingElementY:a4});}}aW=true;o=aR;}}if(!aW&&o!=null){if(aK){aK(C[o].id,C[o].object,C[o].element);}else{if(C[o].outCallBack){C[o].outCallBack(C[o].id,C[o].object,C[o].element);}}o=null;}}aa=a1;ab=a2;p=aZ;q=a0;}return false;}function aD(){var aT=0,aU=0,aQ=aa-v,aR=ab-w,aS=17;if(W){if(aQ>au-aS){aT+=aS;}else{if(aQar-aS){aU+=aS;}else{if(aR<=av+aS){aU-=aS;}}}else{if(aQ>au){aT+=(aQ-au<=aS)?aQ-au:aS;}else{if(aQar){aU+=(aR-ar<=aS)?aR-ar:aS;}else{if(aR<=av){aU-=(av-aR<=aS)?av-aR:aS;}}}if(aT||aU){if(W){aq.scrollBy(aT,aU);ay=b.Window.getScrollLeft(aq);az=b.Window.getScrollTop(aq);}else{aq.scrollLeft+=aT;aq.scrollTop+=aU;ay=aq.scrollLeft;az=aq.scrollTop;}D({screenX:aa,screenY:ab});}if(ax){clearTimeout(ax);}ax=setTimeout(aD,17);}function aF(aQ){var aR=0,aS=120;aQ=b.getEvent(aQ,ao);if(aQ){if(aQ.wheelDelta){aR=aQ.wheelDelta/-120;}else{if(aQ.detail){aR=aQ.detail/3;}}if(aR){if(W){aq.scrollBy(0,aR*aS);az=b.Window.getScrollTop(aq);}else{aq.scrollTop+=aR*aS;az=aq.scrollTop;}D({screenX:aa,screenY:ab});}b.stopEvent(aQ);}}function aE(){X=true;b.throttle(aO,{timeout:aP});}function aO(){X=false;}function ap(){if(ax){clearTimeout(ax);}b.removeHandler(ao.document,"selectstart",b.stopEvent);b.removeHandler(ac,(b.Browser.isGecko?"DOMMouseScroll":"mousewheel"),aF);b.removeGlobalHandler("DragDropMouseMoveInAllWindow");b.removeGlobalHandler("DragDropMouseUpInAllWindow");if(b.Browser.isWebKit){b.removeHandler(aq,"scroll",aE);}if(r){ac.style.cursor="";}if(T){T=false;an.DragDropStaticBeforeDrop.fireHandlers({element:ac});if(o!=null&&C[o].dropCallBack){C[o].dropCallBack(C[o].id,C[o].object,C[o].element,E);}an.DragDropStaticDrop.fireHandlers({object:(o!=null?C[o].object:null),element:ac,position:{mouseX:aa,mouseY:ab,currentX:p,currentY:q}});if(S){L();}}else{an.DragDropStaticClick.fireHandlers({mouseDownTarget:Z});}m();}function m(){var aQ,aR;ao=null;am=null;e=null;k=null;al=null;ai=null;ac=null;ad=null;ae=null;aw=null;aq=null;o=null;for(aQ=0;aQ<17;aQ++){for(aR=0;aR<17;aR++){G[aQ][aR].splice(0,G[aQ][aR].length);}}}function B(){m();an.DragDropStaticDragStart.disposeHandlers();an.DragDropStaticBeforeDrop.disposeHandlers();an.DragDropStaticDrop.disposeHandlers();an.DragDropStaticClick.disposeHandlers();}}})(window,WA);(function(d,b,a){if(!b.WaDragDropStatic){b.WaDragDropStatic=c;b.WaDragDropStatic.Direction={horizontal:1,vertical:2,both:3};b.WaDragDropStatic.UnsetScrollActiveTimeOut=100;}function c(){var i=this,j="WA.WaDragDropStatic";i.toString=function(){return j;};i.Dispose=b.Tools.EventHandlers.createHandlers(i,{id:"Dispose"});i.addTargets=e;var h=false;function e(k,n){for(var l=0,m=k.length;l=t.handlers.length){t.handlers.push(r);}i();}function i(){if(k==null){return;}if(k.length==0){b.clearThrottle(i);}var r;for(r=0;r0){if(bG.length1){bF="?"+bF.substr(1);bG=bI.indexOf(bF);if(bG<0){bF="&"+bF.substr(1);bG=bI.indexOf(bF);}}bJ.location.replace((bG<0)?bI:bI.substr(0,bG));},V=function(bG,bF){var bH=bF||bz;bH.location.replace(bG);},M=function(){return Math.floor(Math.random()*(new Date()).getTime()*10000);},W=function(bF){if(!bF&&bz.event){bF=bz.event;}if(bF){var bG=(bx.Browser.isIE)?bF.keyCode:bF.which;if(bG==13){if(bx.Browser.isIE){bF.cancelBubble=true;bF.returnValue=false;}else{bF.stopPropagation();bF.preventDefault();}return false;}}},i=function(bF){bz.location=bF;},Q=function(bF){a(bF,"hover");},P=function(bF){Y(bF,"hover");},ac=function(bH,bF){if(!bH){throw new Error("scrollToElement: element is invalid.");}bF=bF||{};var bK=bF.win||bz,bI=bF.offset&&!isNaN(parseInt(bF.offset))?parseInt(bF.offset):0,bJ=bF.scrollableArea||null,bG;if(typeof(bH)=="string"){bH=bx.Dom.$(bH,bK);}if(!bH){throw new Error("scrollToElement: element is invalid.");}if(bJ){if(typeof(bJ)=="string"){bJ=bx.Dom.$(bJ,bK);}if(!bJ){throw new Error("scrollToElement: scrollableArea is invalid.");}bG=z(bH,bK,{container:bJ});bJ.scrollTop=bG.Y+bI;}else{bG=z(bH,bK);bK.scrollTo(bx.Window.getScrollLeft(bK),bG.Y+bI);}},f=function(){if(!bz||!bz.document||!bz.document.body){return false;}BonaPage.addHandler(bz.document.body,"keypress",function(bF){try{if(!bF&&bz.event){bF=bz.event;}if(!bF){return true;}var bH=(bx.Browser.isIE)?bF.srcElement:bF.target;if(!bH){return true;}if(bH.nodeName.toLowerCase()=="textarea"){return true;}return bz.BonaPage.stopEnter(bF);}catch(bG){return true;}});},p=function(bF,bG){var bH,bI;for(bH=0,bI=bF.length;bH=0||bI.indexOf(bJ.toLowerCase())>=0)){return;}return false;}},r=function(bJ){var bG=encodeURIComponent(bJ)+"=",bH=document.cookie.indexOf(bG),bI=null;if(bH>-1){var bF=document.cookie.indexOf(";",bH);if(bF==-1){bF=document.cookie.length;}bI=decodeURIComponent(document.cookie.substring(bH+bG.length,bF));}return bI;},ae=function(bI,bL,bH,bJ,bG,bK){var bF=encodeURIComponent(bI)+"="+encodeURIComponent(bL);if(bH instanceof Date){bF+="; expires="+bH.toGMTString();}if(bJ){bF+="; path="+bJ;}if(bG){bF+="; domain="+bG;}if(bK){bF+="; secure";}document.cookie=bF;},an=function(bG,bH,bF,bI){ae(bG,"deleted",new Date(0),bH,bF,bI);},ah=function(bG,bF){if(bG&&bF!=null){bG.name=bF;}else{throw new Error("Invalid window name");}},ad=function(bG,bF){if(bG){bF=(bF||"")+"_"+bA++;ah(bG,bF);}else{throw new Error("Invalid window name");}},L=function(bF,bI){bI=bI||bz;bF=(bx.getTypeString(bF)=="string")?bx.Dom.$(bF,bI):bF;if(!bF){return 0;}if("selectionStart" in bF){return bF.selectionStart;}if(bI.document.selection){bF.focus();var bG=bI.document.selection.createRange();var bH=bI.document.selection.createRange().text.length;bG.moveStart("character",-bF.value.length);return bG.text.length-bH;}},x=function(bJ,bI){bI=bI||bz;var bG=[],bH,bF;bH=bI.document.evaluate(bJ,bI.document,null,XPathResult.ANY_TYPE,null);while(true){bF=bH.iterateNext();if(bF==null){break;}bG.push(bF);}return bG;},ag=function(bF,bG,bI){bI=bI||bz;bF=(bx.getTypeString(bF)=="string")?bx.Dom.$(bF,bI):bF;if(!bF){return;}if(bF.createTextRange){var bH=bF.createTextRange();bH.collapse(true);bH.moveEnd("character",bG);bH.moveStart("character",bG);bH.select();return;}if(bF.setSelectionRange){bF.setSelectionRange(bG,bG);}};var R=function(bF,bG,bH){if(bF.insertAdjacentHTML){bF.insertAdjacentHTML(bH||"beforeEnd",bG);return;}S(bF,bG,bH);};var S=function(bG,bI,bK){bK=bK.toLowerCase();var bH=document.createDocumentFragment(),bL=document.createElement("DIV"),bF,bJ;bL.innerHTML=bI;bF=bL.firstChild;while(bF){bJ=bF.nextSibling;bH.appendChild(bF);bF=bJ;}switch(bK){case"beforebegin":bG.parentNode.insertBefore(bH,bG);break;case"afterbegin":bG.insertBefore(bH,bG.firstChild);break;case"afterend":if(bG.nextSibling){bG.parentNode.insertBefore(bH,bG.nextSibling);break;}bG.parentNode.appendChild(bH);break;default:bG.appendChild(bH);break;}bH=bL=bF=bJ=null;};var v=function(bG,bN){var bV=bN||bz,bK,bP,bT,bF,bI,bW,bJ,bX,bU=N(bV),bR=bU.scrollTop,bQ=bU.scrollLeft;if(bG.getBoundingClientRect){if(typeof v.offset!="number"){var bS=bV.document.createElement("div");bS.style.cssText="position:absolute;left:0;top:0;";bV.document.body.appendChild(bS);v.offset=-bS.getBoundingClientRect().top-bR;bV.document.body.removeChild(bS);bS=null;}var bO;try{bO=bG.getBoundingClientRect();}catch(bH){bO=[0,0];}var bL=v.offset;bK=bO.left+bL+bQ;bP=bO.right+bL+bQ;bT=bO.top+bL+bR;bF=bO.bottom+bL+bR;bI=bF-bT;bW=bP-bK;bJ=bT+(bI>>1);bX=bK+(bW>>1);return{left:bK,right:bP,top:bT,bottom:bF,height:bI,width:bW,heightCenter:bJ,widthCenter:bX,viewport:bU};}else{var bM=bx.Dimensions.getXY(bG),bY=bM.x,bZ=bM.y;bK=bY-bQ;bP=bY+bG.offsetWidth-bQ;bT=bZ-bR;bF=bZ+bG.offsetHeight-bR;bI=bF-bT;bW=bP-bK;bJ=bT+(bI>>1);bX=bK+(bW>>1);return{left:bK,right:bP,top:bT,bottom:bF,height:bI,width:bW,heightCenter:bJ,widthCenter:bX,viewport:bU};}};var N=function(bH){bH=bH||bz;var bG=bx.Window.getScrollTop(bH);var bF=bx.Window.getScrollLeft(bH);if(bH.document.compatMode=="BackCompat"){return{width:bH.document.body.clientWidth,height:bH.document.body.clientHeight,scrollTop:bG,scrollLeft:bF};}else{return{width:bH.document.documentElement.clientWidth,height:bH.document.documentElement.clientHeight,scrollTop:bG,scrollLeft:bF};}};var T=function(bF,bH){if(!bG(bF.topLeft,bH)){bF.isVisible=false;return false;}if(!bG(bF.bottomRight,bH)){bF.isVisible=false;return false;}bF.isVisible=true;return true;function bG(bI,bJ){if((typeof bI.x!="number")||typeof bI.y!="number"){throw new Error("Invalid point parametes");}if(bI.x<0||bI.x>(bJ.width+bJ.scrollLeft)||bI.x(bJ.height+bJ.scrollTop)||bI.y>1),y:bG.top-bF.offsetHeight},bottomRight:{x:bG.left+((bG.width+bF.offsetWidth)>>1),y:bG.top}};},bottomOutsideLeftCenter:function(bG,bF){return{name:"bottomOutsideLeftCenter",topLeft:{x:bG.left+((bG.width-bF.offsetWidth)>>1),y:bG.bottom},bottomRight:{x:bG.left+((bG.width+bF.offsetWidth)>>1),y:bG.bottom+bF.offsetHeight}};},leftCenterInside:function(bG,bF){return{name:"leftCenterInside",topLeft:{x:bG.left,y:Math.max(bG.viewport.scrollTop,(bG.heightCenter-(bF.offsetHeight>>1)))},bottomRight:{x:bG.left+bF.offsetWidth,y:Math.max((bG.viewport.scrollTop+bF.offsetHeight),(bG.heightCenter+(bF.offsetHeight>>1)))}};},topViewportLeft:function(bG,bF){return{name:"topViewportLeft",topLeft:{x:Math.max(bG.viewport.scrollLeft,bG.left),y:bG.top-bF.offsetHeight},bottomRight:{x:Math.max(bG.viewport.scrollLeft,bG.left)+bF.offsetWidth,y:bG.top}};},topViewportRight:function(bG,bF){return{name:"topViewportRight",topLeft:{x:Math.min(bG.right-bF.offsetWidth,(bG.viewport.width+bG.viewport.scrollLeft)-bF.offsetWidth),y:bG.top-bF.offsetHeight},bottomRight:{x:Math.min(bG.right,(bG.viewport.width+bG.viewport.scrollLeft)),y:bG.top}};},bottomViewportLeft:function(bG,bF){return{name:"bottomViewportLeft",topLeft:{x:Math.max(bG.viewport.scrollLeft,bG.left),y:bG.bottom},bottomRight:{x:Math.max(bG.viewport.scrollLeft,bG.left)+bF.offsetWidth,y:bG.bottom+bF.offsetHeight}};},bottomViewportRight:function(bG,bF){return{name:"bottomViewportRight",topLeft:{x:bG.viewport.width-bF.offsetWidth,y:bG.bottom},bottomRight:{x:bG.viewport.width,y:bG.bottom+bF.offsetHeight}};},rightViewportTop:function(bG,bF){return{name:"rightViewportTop",topLeft:{x:bG.right,y:Math.max(bG.top,bG.viewport.scrollTop)},bottomRight:{x:bG.right+bF.offsetWidth,y:Math.max(bG.top,bG.viewport.scrollTop)+bF.offsetHeight}};},leftViewportTop:function(bG,bF){return{name:"leftViewportTop",topLeft:{x:bG.left-bF.offsetWidth,y:Math.max(bG.top,bG.viewport.scrollTop)},bottomRight:{x:bG.left,y:Math.max(bG.top,bG.viewport.scrollTop)+bF.offsetHeight}};}};var h=function(bG){var bF=function(){var bH=new TopCacheProvider();bH.Clear(bG);};bF();},Y=function(bH,bG){if(!bH){return;}if(bH.classList){bH.classList.remove(bG);return;}else{var bF=bH.className.split(/\s+/);var bK=-1;for(var bI=0,bJ=bF.length;bI=0;};var aI="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zr|zw";var a4={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8B",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgreen:"90EE90",lightgrey:"D3D3D3",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370DB",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"DB7093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"};var bE="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var bA;if(!BonaPage.isObjInited){BonaPage.PAGE_LOADING=10;BonaPage.PAGE_LOADED=20;BonaPage.PAGE_LOADEDORTIMEOUT=100;BonaPage.PAGE_PARSING=30;BonaPage.PAGE_PARSED=40;BonaPage.PAGE_UNLOADING=50;BonaPage.PAGE_UNLOADED=60;BonaPage.UPDATEPANEL_UNDEFINED=70;BonaPage.UPDATEPANEL_LOADING=80;BonaPage.UPDATEPANEL_LOADED=90;BonaPage.HANDLERTYPE_ONCE=10;BonaPage.HANDLERTYPE_ALWAYS=20;BonaPage.setPageState=bl;BonaPage.addPageStateHandler=at;BonaPage.runPageStateHandlers=bg;BonaPage.setPageStateLoaded=bm;BonaPage.setPageStateUnloading=bp;BonaPage.setPageStateUnloaded=bo;BonaPage.getLocationHref=function(){return bC;};BonaPage.getLocationDomain=function(){return bB;};BonaPage.$bonaObject=g;BonaPage.reloadCurrentPage=X;BonaPage.loadPage=V;BonaPage.getUniqueIdentifier=M;BonaPage.getGUID=M;BonaPage.getEvent=A;BonaPage.getEventTarget=D;BonaPage.getRelatedTarget=K;BonaPage.eventHoverTag="hoverTags";BonaPage.getEventTags=C;BonaPage.getAttrByName=q;BonaPage.stopEvent=aj;BonaPage.stopEventDefault=al;BonaPage.stopEventBubbling=ak;BonaPage.stopEnter=ai;BonaPage.getFunctionKeyByKeyCode=E;BonaPage.validateChar=ao;BonaPage.keyValidator=U;BonaPage.textValidator=am;BonaPage.getEventMouseCoords=B;BonaPage.appendDefaultCssClass=e;BonaPage.createAjaxErrorObj=n;BonaPage.getRandomId=J;BonaPage.getMouseButton=I;BonaPage.addHandler=b;BonaPage.removeHandler=Z;BonaPage.addHandlers=c;BonaPage.removeHandlers=aa;BonaPage.addTagHandler=d;BonaPage.removeTagHandler=ab;BonaPage.getElementXY=z;BonaPage.getElementScreenXY=y;BonaPage.getElementAbsXY=s;BonaPage.getElementAutoAbsXY=t;BonaPage.getWindowAbsScroll=O;BonaPage.getElementRelXY=w;BonaPage.getElementBoxStyles=u;BonaPage.convertColorToHex=m;BonaPage.convertColorHexToRGB=l;BonaPage.setElementOpacity=af;BonaPage.preventPressEnter=W;BonaPage.updateValidators=bw;BonaPage.isValidatorValid=a1;BonaPage.encodeHtml=aM;BonaPage.decodeHtml=aH;BonaPage.getContactDisplayName=aV;BonaPage.createRequest=aG;BonaPage.webRequest=by;BonaPage.goToTopWindow=aW;BonaPage.clientRedirect=i;BonaPage.scrollToElement=ac;BonaPage.foreach=p;BonaPage.disableSelect=o;BonaPage.getCookie=r;BonaPage.setCookie=ae;BonaPage.unsetCookie=an;BonaPage.getElementRect=v;BonaPage.getViewport=N;BonaPage.isInViewport=T;BonaPage.contextPositions=k;BonaPage.clearTopCache=h;BonaPage.removeClassName=Y;BonaPage.addClassName=a;BonaPage.containsClassName=j;BonaPage.setWindowName=ah;BonaPage.setAutoWindowName=ad;BonaPage.getSelectionStartIndex=L;BonaPage.setSelectionStartIndex=ag;BonaPage.getElementsByXPath=x;BonaPage.startFileDownload=function(bF,bG){bx.Tools.FileDownload.startDownload(bF,bG);};BonaPage.insertAdjacentHTML=R;BonaPage.insertAdjacentHtmlAsDomNodes=S;BonaPage.showPageShadingContainer=bs;BonaPage.hidePageShadingContainer=aX;BonaPage.setSizeIFrameInModule=bq;BonaPage.getHashFromArray=F;BonaPage.getHashFromArrays=H;BonaPage.getHashFromArrayObjects=G;BonaPage.clearSelectionInRadioButtonsGroup=aA;BonaPage.getDomainList=function(){return aI;};BonaPage.getZGif=function(){return bE;};BonaPage.Utils={};BonaPage.Utils.wordWrap=bD;BonaPage.Utils.getAbsoluteXY=aT;BonaPage.Utils.getHashFromArray=F;BonaPage.Utils.getHashFromArrays=H;BonaPage.Utils.getHashFromArrayObjects=G;BonaPage.Utils.dynamicMenuDisable=aK;BonaPage.Utils.fixPNG=aR;BonaPage.Utils.addLabelsToLoginBox=ar;BonaPage.Utils.fixGeckoTables=aP;BonaPage.Utils.getAttrEx=aU;BonaPage.Utils.highLightElement=Q;BonaPage.Utils.grayOutElement=P;BonaPage.Utils.bindEnterKeyDefusionFunction=f;BonaPage.PageParsed=function(bF,bH,bG){bH=bH||bz;bG=bG||BonaPage.HANDLERTYPE_ALWAYS,BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,bF,bG,{window:bH});};BonaPage.PageLoaded=function(bF){BonaPage.addPageStateHandler(BonaPage.PAGE_LOADED,bF);};BonaPage.PageUnLoaded=function(bF,bG){bG=bG||bz;BonaPage.addPageStateHandler(BonaPage.PAGE_UNLOADED,bF,BonaPage.HANDLERTYPE_ONCE,{window:bG});};BonaPage.PageUnLoading=function(bF){BonaPage.addPageStateHandler(BonaPage.PAGE_UNLOADING,bF);};bA=0;BonaPage.isObjInited=true;bl(BonaPage.PAGE_LOADING);}function a0(bF){if(bx.topWindow&&!bx.topWindow.name){bx.setWindowName(bx.topWindow,"nmWATopWindow");}bF.BonaPage.InternalPageType={};if(bF.bonaPage_InternalPageType){bF.BonaPage.InternalPageType.isWebPage=(bF.bonaPage_InternalPageType.isWebPage)?true:false;bF.BonaPage.InternalPageType.isSystemPage=(bF.bonaPage_InternalPageType.isSystemPage)?true:false;bF.BonaPage.InternalPageType.isErrorPage=(bF.bonaPage_InternalPageType.isErrorPage)?true:false;bF.BonaPage.InternalPageType.isWebPageTemplate=(bF.bonaPage_pageTemplate&&bF.bonaPage_pageTemplate.id)?true:false;bF.BonaPage.InternalPageType.isAdminPage=(bF.bonaPage_InternalPageType.isAdminPage)?true:false;bF.BonaPage.InternalPageType.isDialogPage=(bF.bonaPage_InternalPageType.isDialogPage)?true:false;bF.BonaPage.InternalPageType.isError404Page=(bF.bonaPage_InternalPageType.isError404Page)?true:false;bF.BonaPage.InternalPageType.isUndefinedPage=(bF.bonaPage_InternalPageType.isUndefinedPage)?true:false;}else{bF.BonaPage.InternalPageType.isWebPage=false;bF.BonaPage.InternalPageType.isAdminPage=false;bF.BonaPage.InternalPageType.isDialogPage=false;bF.BonaPage.InternalPageType.isError404Page=false;bF.BonaPage.InternalPageType.isUndefinedPage=true;}bF.BonaPage.PageView={};if(bF.bonaPage_PageView){bF.BonaPage.PageView.isAnonymousView=(bF.bonaPage_PageView.isAnonymousView)?true:false;bF.BonaPage.PageView.isMemberView=(bF.bonaPage_PageView.isMemberView)?true:false;bF.BonaPage.PageView.isAdminView=(bF.bonaPage_PageView.isAdminView)?true:false;}else{bF.BonaPage.PageView.isAnonymousView=true;bF.BonaPage.PageView.isMemberView=false;bF.BonaPage.PageView.isAdminView=false;}bF.BonaPage.isWidgetMode=(bF.WidgetMode&&bF.WidgetMode==1)?true:false;bF.BonaPage.isWidgetMode=(!bF.BonaPage.isWidgetMode&&a2)?a2:bF.BonaPage.isWidgetMode;bF.BonaPage.isEmulatedMode=false;if(bF.bonaPage_StatRes){bF.BonaPage.statRes=bonaPage_StatRes;bF.BonaPage.adminPath=bonaPage_StatRes+"Admin/";bF.BonaPage.adminResPath=bonaPage_StatRes+"Admin/html_res/";bF.BonaPage.adminResImgPath=bonaPage_StatRes+"Admin/html_res/images/";}bF.BonaPage.version=bF.bonaPage_BuildVer;bF.BonaPage.fullVersion=(bF.bonaPage_ThemeId!=null)?(bF.BonaPage.version+"."+bF.bonaPage_ThemeVer):bF.BonaPage.version;bF.BonaPage.themeHash=(bF.bonaPage_ThemeVer!=null)?bF.bonaPage_ThemeVer:"";bF.BonaPage.themeVersion=(!isNaN(parseFloat(bF.bonaPage_ThemeVersion)))?parseFloat(bF.bonaPage_ThemeVersion):null;bF.BonaPage.themeId=(bF.bonaPage_ThemeId!=null)?bF.bonaPage_ThemeId:"";bF.BonaPage.pageId=(bF.bonaPage_id!=null)?bF.bonaPage_id:"";bF.BonaPage.version_id=(bF.version_id!=null)?bF.version_id:"";bF.BonaPage.State={};bF.BonaPage.State.isPageLoading=true;bF.BonaPage.State.isPageLoaded=false;bF.BonaPage.State.isPageLoadedOrTimeout=false;bF.BonaPage.State.isPageParsing=true;bF.BonaPage.State.isPageParsed=false;bF.BonaPage.State.isPageUnloading=false;bF.BonaPage.State.isPageUnloaded=false;bF.BonaPage.State.isPageUnloaded=false;bF.BonaPage.State.isUpdatePanelUndefined=true;bF.BonaPage.State.isUpdatePanelLoading=false;bF.BonaPage.State.isUpdatePanelLoaded=false;bF.BonaPage.stateHandlers={};bF.BonaPage.stateHandlers[bF.BonaPage.PAGE_LOADING]=[];bF.BonaPage.stateHandlers[bF.BonaPage.PAGE_LOADED]=[];bF.BonaPage.stateHandlers[bF.BonaPage.PAGE_LOADEDORTIMEOUT]=[];bF.BonaPage.stateHandlers[bF.BonaPage.PAGE_PARSING]=[];bF.BonaPage.stateHandlers[bF.BonaPage.PAGE_PARSED]=[];bF.BonaPage.stateHandlers[bF.BonaPage.PAGE_UNLOADING]=[];bF.BonaPage.stateHandlers[bF.BonaPage.PAGE_UNLOADED]=[];bF.BonaPage.stateHandlers[bF.BonaPage.UPDATEPANEL_UNDEFINED]=[];bF.BonaPage.stateHandlers[bF.BonaPage.UPDATEPANEL_LOADING]=[];bF.BonaPage.stateHandlers[bF.BonaPage.UPDATEPANEL_LOADED]=[];bF.BonaPage.addHandler(bF,"load",bF.BonaPage.setPageStateLoaded);bF.BonaPage.addHandler(bF,"beforeunload",bF.BonaPage.setPageStateUnloading);bF.BonaPage.addHandler(bF,"unload",bF.BonaPage.setPageStateUnloaded);if(bF==bx.topWindow){bx.init();}bF.BonaPage.isObjValid=true;}function bn(bF){if(bF.BonaPage){bF.BonaPage.setPageState(bF.BonaPage.PAGE_LOADEDORTIMEOUT);}}function bm(bF){bF=bF||{};var bG=bF.window||bz;if(bG.BonaPage.loadingTimeout){clearTimeout(bG.BonaPage.loadingTimeout);}bG.BonaPage.setPageState(bG.BonaPage.PAGE_LOADED);}function bp(bF){bF=bF||{};var bG=bF.window||bz;bG.BonaPage.setPageState(bG.BonaPage.PAGE_UNLOADING);}function bo(bF){bF=bF||{};var bG=bF.window||bz;bG.BonaPage.setPageState(bG.BonaPage.PAGE_UNLOADED);BonaPage.removeHandler(bG,"load",bG.BonaPage.setPageStateLoaded);BonaPage.removeHandler(bG,"beforeunload",bG.BonaPage.setPageStateUnloading);BonaPage.removeHandler(bG,"unload",bG.BonaPage.setPageStateUnloaded);}function av(){if(bz.Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager&&typeof(Sys.WebForms.PageRequestManager.getInstance)=="function"){var bF=Sys.WebForms.PageRequestManager.getInstance();if(bF){bF.add_beginRequest(ax);bF.add_endRequest(aN);}}}function ax(bG,bF){bl(BonaPage.UPDATEPANEL_LOADING);}function aN(bG,bF){bl(BonaPage.UPDATEPANEL_LOADED);}function bl(bH,bF){bF=bF||{};var bI=bF.window||bz,bG;if(bH==BonaPage.PAGE_LOADING&&!bI.BonaPage.State){a0(bI);}bG=bI.BonaPage.State;if(bG[bH]){return;}if(bH!=BonaPage.UPDATEPANEL_LOADING&&bH!=BonaPage.UPDATEPANEL_LOADED){bG[BonaPage.PAGE_LOADING]=bG.isPageLoading=false;bG[BonaPage.PAGE_LOADED]=bG.isPageLoaded=false;bG[BonaPage.PAGE_PARSING]=bG.isPageParsing=false;bG[BonaPage.PAGE_PARSED]=bG.isPageParsed=false;bG[BonaPage.PAGE_UNLOADING]=bG.isPageUnloading=false;bG[BonaPage.PAGE_UNLOADED]=bG.isPageUnloaded=false;}switch(bH){case BonaPage.PAGE_LOADING:bG[BonaPage.PAGE_LOADING]=bG.isPageLoading=true;bg(BonaPage.PAGE_LOADING,bI);break;case BonaPage.PAGE_LOADED:bG[BonaPage.PAGE_LOADED]=bG.isPageLoaded=true;bG[BonaPage.PAGE_PARSED]=bG.isPageParsed=true;bg(BonaPage.PAGE_LOADED,bI);break;case BonaPage.PAGE_LOADEDORTIMEOUT:bm(bI);break;case BonaPage.PAGE_PARSING:bG[BonaPage.PAGE_LOADING]=bG.isPageLoading=true;bG[BonaPage.PAGE_PARSING]=bG.isPageParsing=true;bg(BonaPage.PAGE_PARSING,bI);break;case BonaPage.PAGE_PARSED:bG[BonaPage.PAGE_LOADING]=bG.isPageLoading=true;bG[BonaPage.PAGE_PARSED]=bG.isPageParsed=true;av();bg(BonaPage.PAGE_PARSED,bI);break;case BonaPage.PAGE_UNLOADING:bG[BonaPage.PAGE_LOADED]=bG.isPageLoaded=true;bG[BonaPage.PAGE_PARSED]=bG.isPageParsed=true;bG[BonaPage.PAGE_UNLOADING]=bG.isPageUnloading=true;bg(BonaPage.PAGE_UNLOADING,bI);break;case BonaPage.PAGE_UNLOADED:bG[BonaPage.PAGE_LOADED]=bG.isPageLoaded=true;bG[BonaPage.PAGE_PARSED]=bG.isPageParsed=true;bG[BonaPage.PAGE_UNLOADED]=bG.isPageUnloaded=true;bG[BonaPage.UPDATEPANEL_UNDEFINED]=bG.isUpdatePanelUndefined=true;bG[BonaPage.UPDATEPANEL_LOADING]=bG.isUpdatePanelLoading=false;bG[BonaPage.UPDATEPANEL_LOADED]=bG.isUpdatePanelLoaded=false;bg(BonaPage.PAGE_UNLOADED,bI);break;case BonaPage.UPDATEPANEL_LOADING:bG[BonaPage.UPDATEPANEL_UNDEFINED]=bG.isUpdatePanelUndefined=false;bG[BonaPage.UPDATEPANEL_LOADING]=bG.isUpdatePanelLoading=true;bG[BonaPage.UPDATEPANEL_LOADED]=bG.isUpdatePanelLoaded=false;bg(BonaPage.UPDATEPANEL_LOADING,bI);break;case BonaPage.UPDATEPANEL_LOADED:bG[BonaPage.UPDATEPANEL_UNDEFINED]=bG.isUpdatePanelUndefined=false;bG[BonaPage.UPDATEPANEL_LOADING]=bG.isUpdatePanelLoading=false;bG[BonaPage.UPDATEPANEL_LOADED]=bG.isUpdatePanelLoaded=true;bg(BonaPage.UPDATEPANEL_LOADED,bI);break;}}function at(bJ,bG,bL,bF){bF=(typeof(bL)==="object")?bL:(bF||{});var bH,bM=bF.window||bz,bI=bM.BonaPage.State,bK=bM.BonaPage.stateHandlers;bH=bK[bJ].length;bL=bL||BonaPage.HANDLERTYPE_ONCE;if(bI[bJ]){bG();}if(!bI[bJ]||bL==BonaPage.HANDLERTYPE_ALWAYS){bK[bJ][bH]={};bK[bJ][bH].type=bL;bK[bJ][bH].handler=bG;}}function bg(bI,bF){bF=bF||{};var bH,bJ=bF.window||bz,bG=bJ.BonaPage.stateHandlers[bI];for(bH=0;bHbG.offsetWidth){for(bJ=0;bJbG.offsetWidth){bL=bL.substring(0,bL.length-1);bL+="
";bG.innerHTML=bL;bJ--;}}}bG.style.overflow=bK;}BonaPage.dynamicMenuItems={};BonaPage.dynamicMenuVariables={};BonaPage.changeBalancePanelState=ay;function aL(){var bL,bM;var bN=bx.Dom.$("idMainMenuContainer");var bO,bG,bI,bH;BonaPage.dynamicMenuSpanItems={};BonaPage.dynamicMenuCloseTimeout=false;function bJ(bP){var bQ=bP.nextSibling;while(bQ.nodeType!=1){bQ=bQ.nextSibling;}return bQ;}function bK(bP){var bQ=bP.previousSibling;while(bQ.nodeType!=1){bQ=bQ.previousSibling;}return bQ;}for(bL in BonaPage.dynamicMenuItems){bO=bx.Dom.$(bL);if(bO){bI=null;bH=bx.Dom.$(BonaPage.dynamicMenuItems[bL]);bG=bO.getElementsByTagName("DIV");for(bM=0;bM=0){return;}var bG=bz.bonaPage_BalancePanel,bK="contentBalancePanelId",bS="opened",bI="closed",bN=bS,bL="bpsh",bQ=BonaPage.getCookie(bL),bT=30,bR=globalUtils.getVisibleClientHeight(),bO="";if(!BonaPage.isWidgetMode){bR=bR-bT;bO="max-height: "+bR+"px;overflow-y: auto;overflow-x: hidden;";}if(bQ&&bQ=="0"){bN=bI;}var bH=bx.formatString("BonaPage.changeBalancePanelState('{0}','{1}','{2}','{3}');return false;",bK,bL,bS,bI);var bJ=document.createElement("DIV");bJ.setAttribute("id","WA_messagePopup");if(a2){bJ.style.position="relative";bJ.style[(bx.Browser.isIE?"styleFloat":"cssFloat")]="right";}var bF=[];bF.push('
');bF.push("");bF.push(' ');bF.push("
");bJ.innerHTML=bF.join("");if(document.body){document.body.appendChild(bJ);}}function ay(bH,bI,bJ,bF){var bG=bx.Dom.$(bH);if(bG.className==bJ){bG.className=bF;BonaPage.setCookie(bI,"0");return;}bG.className=bJ;BonaPage.setCookie(bI,"1");if(BonaPage.isWidgetMode){bz.scrollTo(0,document.body.scrollHeight);}}BonaPage.addPageStateHandler(BonaPage.PAGE_LOADED,aC);function ar(){var bF=document.body.className;if((bF.indexOf("publicContentView")==-1&&bF.indexOf("memberContentView")==-1&&bF.indexOf("adminContentView")==-1)||(bF.indexOf("customizeContentView")!=-1)){return;}var bH=bx.Dom.$("idLoginUserNameTextBox");if(!bH){return;}var bG=bx.Dom.$$("input","idLoginUserNameTextBox")[0];var bI=bx.Dom.$$("input","idLoginPasswordTextBox")[0];if(bG.value.length>0){bG.style.backgroundImage="none";}if(bI.value.length>0){bI.style.backgroundImage="none";}bG.onfocus=function(){this.style.backgroundImage="none";this.onfocus=null;return true;};bI.onfocus=function(){this.style.backgroundImage="none";this.onfocus=null;return true;};if(!bG.value.length||!bI.value.length){setTimeout(ar,77);}}function aP(bK,bJ){var bH,bI;var bR,bT,bU,bV,bS;var bN,bP,bL,bF,bG;var bO,bQ;var bM=bK||bz;var bW=(bJ)?[bJ]:bM.document.body.getElementsByTagName("TABLE");if(!bW||!bW.length){return false;}for(bH=0;bH0){bQ=bO.rows[bI].cells[0];if(bQ&&bQ.style){bL=(bQ.style.borderLeftWidth)?bQ.style.borderLeftWidth:bx.Style.getElementStyle(bQ,"borderLeftWidth");bL=(!isNaN(parseInt(bL)))?parseInt(bL):0;if(bL>bP){bP=bL;}}}}bF=(bN>bP)?bN:bP;if(bF>0){bG=Math.ceil(bF/2);bO.style.marginLeft=bG+"px";bO.setAttribute("wamarginleft",1,0);}}if(!bW[bH].getAttribute("wamarginright",0)&&!bU){bN=(bO.style.borderRightWidth)?bO.style.borderRightWidth:bx.Style.getElementStyle(bO,"borderRightWidth");bN=(!isNaN(parseInt(bN)))?parseInt(bN):0;bP=0;for(bI=0;(bI0){bQ=bO.rows[bI].cells[bO.rows[bI].cells.length-1];if(bQ&&bQ.style){bL=(bQ.style.borderRightWidth)?bQ.style.borderRightWidth:bx.Style.getElementStyle(bQ,"borderRightWidth");bL=(!isNaN(parseInt(bL)))?parseInt(bL):0;if(bL>bP){bP=bL;}}}}bF=(bN>bP)?bN:bP;if(bF>0){bG=Math.ceil(bF/2);bO.style.marginRight=bG+"px";bO.setAttribute("wamarginright",1,0);}}}if(!bW[bH].getAttribute("wamargintop",0)&&!bV){bN=(bO.style.borderTopWidth)?bO.style.borderTopWidth:bx.Style.getElementStyle(bO,"borderTopWidth");bN=(!isNaN(parseInt(bN)))?parseInt(bN):0;bP=0;if(bO.rows&&bO.rows.length>0&&bO.rows[0]&&bO.rows[0].cells){for(bI=0;(bIbP){bP=bL;}}}}bF=(bN>bP)?bN:bP;if(bF>0){bG=Math.ceil(bF/2);bO.style.marginTop=bG+"px";bO.setAttribute("wamargintop",1,0);}}if(!bW[bH].getAttribute("wamarginbottom",0)&&!bS){bN=(bO.style.borderBottomWidth)?bO.style.borderBottomWidth:bx.Style.getElementStyle(bO,"borderBottomWidth");bN=(!isNaN(parseInt(bN)))?parseInt(bN):0;bP=0;if(bO.rows&&bO.rows.length>0&&bO.rows[bO.rows.length-1]&&bO.rows[bO.rows.length-1].cells){for(bI=0;(bIbP){bP=bL;}}}}bF=(bN>bP)?bN:bP;if(bF>0){bG=Math.ceil(bF/2);bO.style.marginBottom=bG+"px";bO.setAttribute("wamarginbottom",1,0);}}}}}}var bi=null;var aB=null;var a6=0;var a5=0;function bq(){if(bz.name){var bH;var bI=parent.document.body.getElementsByTagName("IFRAME");for(bH=0;bH=0){return;}var bF=[];var bH="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; font-style: normal; color: #000000;";var bI=bz.bonaPage_MemberPanel;var bJ=document.createElement("DIV");bJ.style.position="fixed";bJ.style.right="0";bJ.style.top="0";bJ.style.width="220px";bJ.style.height="32px";bJ.style.zIndex="37937";bJ.style.backgroundColor="#E7E7E7";bJ.className="switchToAdminShadowContainer";var bG=document.createElement("DIV");bG.style.position="fixed";bG.style.right="0";bG.style.top="0";bG.style.width="220px";bG.style.height="32px";bG.style.zIndex="37973";bG.style.backgroundColor="#E7E7E7";bG.className="switchToAdminContainer";bF.push('
');bF.push(' '+bI.switchToAdminText+"");bF.push('  | ');bF.push(' '+bI.signOutText+"");bF.push("
");bG.innerHTML=bF.join("");document.body.appendChild(bJ);BonaPage.setElementOpacity(bJ,37);document.body.appendChild(bG);}var bh=null;function aT(bF){var bG,bH;bF.X=0;bF.Y=0;if(bF.parentNode){bG=bF;while(bG.nodeName.toUpperCase()!="BODY"){bG=bG.parentNode;bH=bx.Style.getElementStyle(bG,"position").toLowerCase();if(bH=="absolute"||bH=="relative"){bF.X+=bG.offsetLeft;bF.Y+=bG.offsetTop;}}}bF.X+=bF.offsetLeft;bF.Y+=bF.offsetTop;return{x:bF.X,y:bF.Y};}function bw(bG){for(var bF=0;bF160&&bG<256){bJ+="&#"+bG+";";}else{if(bF=="&"){bJ+="&";}else{if(bF=="<"){bJ+="<";}else{if(bF==">"){bJ+=">";}else{if(bF=='"'){bJ+=""";}else{if(bF=="'"){bJ+="'";}else{bJ+=bF;}}}}}}}return bJ;}function aH(bF){bF=bF||"";return bF.replace(/\&([A-Za-z0-9#]+)\;/ig,function(bH,bG){if(bG.indexOf("#")==0){bG=bG.substr(1);return String.fromCharCode(bG);}else{switch(bG.toLowerCase()){case"amp":return"&";break;case"lt":return"<";break;case"gt":return">";break;case"quot":return'"';break;default:return"&"+bG+";";}}});}function by(bF,bG){bG=bG||bz;var bH=new bG.Sys.Net.WebRequest();bH.set_url(bF.url);bH.set_httpVerb(bF.verb||"GET");bH.set_userContext(bF.context);bH.add_completed(bF.completedCallback||function(){});bH.invoke();}function aW(){try{var bG=top.location.href;if(!bG){top.location=self.location;}}catch(bF){try{if(self!=top){top.location=self.location;}}catch(bF){try{if(self!=top){top=self;}return false;}catch(bF){return false;}}return false;}}var ba;var a8;var bb;var bc;var a9=null;function aE(){var bG="Please wait...";var bI="/Admin/html_res/images/async-load-progress-01.gif";var bH='";var bF='";ba=document.createElement("SPAN");ba.innerHTML=bF;if(bx.Browser.isIE){setTimeout(aF,137);}else{aF();}}function aF(){document.body.appendChild(ba);a8=document.getElementById("idPageShadingContainer");bb=document.getElementById("idPageShadingWaitMessage");bc=document.getElementById("idPageShadingWaitMessageText");a9=false;}function bs(bG,bF){if(a9===null){setTimeout(bs,137);}if(a9){return;}a9=true;bc.innerHTML=(bF==null)?"Please wait...":bF;bb.style.display=(bG)?"block":"none";a8.style.visibility="visible";setTimeout(function(){bk(bG);},10);BonaPage.addHandler(bz,"resize",bk);a9=true;}function aX(){if(a9===null){setTimeout(aX,137);}if(!a9){return;}a9=false;BonaPage.removeHandler(bz,"resize",bk);a8.style.visibility="hidden";a8.style.left="-3700px";a8.style.top="-3700px";a8.style.width="1px";a8.style.height="1px";a8.style.overflow="hidden";bb.style.display="none";a9=false;}function bk(bF){if(a9===null){setTimeout(bk,137);}a8.style.left="0px";a8.style.top="0px";a8.style.width=bx.Window.getScrollWidth()+"px";a8.style.height=bx.Window.getScrollHeight()+"px";if(bF||bb.style.display=="block"){bb.style.left=Math.floor((bx.Window.getInnerWidth()-bb.offsetWidth)/2)+"px";bb.style.top=Math.floor((bx.Window.getInnerHeight()-bb.offsetHeight)/2)+"px";}}if(!BonaPage.addGlobalHandler){BonaPage.addGlobalHandler=aq;BonaPage.addGlobalMouseDown=function(bF,bG){bx.addGlobalHandler(((bx.Browser.isIE&&bx.Browser.isIE<9)?"document":"window"),"mousedown",bF,bG,{});};BonaPage.removeGlobalHandler=be;BonaPage.addDomHandler=ap;BonaPage.removeDomHandler=bd;}var aJ={};function aq(bG,bH,bI,bJ,bF){au(true,bG,bH,bI,bJ,bF);}function be(bF){au(false,null,null,null,bF);}function au(bQ,bH,bJ,bM,bN,bG){bG=bG||{};var bO,bR,bF,bP,bL=bG.excludeWindows||{},bK=bG.excludeWindowPartName||null;if(bx.isTopWindow){if(bQ){bd(bz,bN);ap(bz,bH,bJ,bM,bN,bG);}else{bd(bz,bN);}bF=document.getElementsByTagName("IFRAME");bR=bF.length;for(bO=0;bObJ){gDES_PV.CurOpq=bJ;}else{if(gDES_PV.CurOpq=bJ)||(gDES_PV.CurOpq=0){ar();}if(bx.Browser.isGecko){aP();}br();aD();aE();aQ();if(BonaPage.Browser.isIE){aO();}}BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,a7);})(window,BonaPage.topWindow.WA);function BonaObject(element,elementWindow){if(typeof(element)==="string"){this.object=WA.Dom.$(element);if(!this.object){throw element+" object not found";}}else{if(typeof(element)==="object"){this.object=element;}else{alert("unknown element");}}this.elementWindow=elementWindow||window;if(this.object.bonaObject){return this.object.bonaObject;}else{this.object.bonaObject=this;}var pThis=this;this.animation=new (function f(){var animation={queue:[],activeAnimation:{settings:null,timer:null,step:null,steps:null},refreshTimeout:30};animation.effects={halfSinus:function(value,activeStep,totalSteps){var present=activeStep/totalSteps;return Math.sin(present*Math.PI/2)*value;},halfCosinus:function(value,activeStep,totalSteps){var present=activeStep/totalSteps;return(1-Math.cos(present*Math.PI/2))*value;},fullSinus:function(value,activeStep,totalSteps){var present=activeStep/totalSteps;return(Math.sin(present*Math.PI-Math.PI/2)+1)*value/2;},linear:function(value,activeStep,totalSteps){return activeStep/totalSteps*value;}};animation.add=function(params,settings){var newAnimation={settings:settings,rawData:params,properties:[]};this.queue.push(newAnimation);checkQueue();};function initializeNewAnimationProperties(newAnimation){for(var styleName in newAnimation.rawData){var propertyInfo=parseCssProperty(computeStyle(pThis.object,styleName));var parsedValue=parseAnimationProperty(newAnimation.rawData[styleName].value);newAnimation.properties.push({name:styleName,from:propertyInfo.value,to:parsedValue.modification=="="?eval(propertyInfo.value+parsedValue.operation+parsedValue.value):parsedValue.value,unit:parsedValue.unit,effect:getEffectByName(newAnimation.rawData[styleName].effect||"fullSinus")});}}function checkQueue(){if(animation.activeAnimation.settings!=null||animation.queue.length==0){return;}var newAnimation=animation.queue.shift();initializeNewAnimationProperties(newAnimation);animation.activeAnimation={settings:newAnimation,timer:pThis.elementWindow.setTimeout(function(){animateStep();},animation.refreshTimeout),step:0,steps:newAnimation.settings.time/animation.refreshTimeout};animateStep();}function animateStep(){if(animation.activeAnimation.step>animation.activeAnimation.steps+1){if(animation.activeAnimation.timer){pThis.elementWindow.clearTimeout(animation.activeAnimation.timer);}if(animation.activeAnimation.settings&&animation.activeAnimation.settings.settings.onAnimateCompleteCallBack){animation.activeAnimation.settings.settings.onAnimateCompleteCallBack();}animation.activeAnimation.settings=null;checkQueue();return;}for(var i=0;i=animation.activeAnimation.steps){return property.to+property.unit;}var propertyDelta=property.effect(property.to-property.from,animation.activeAnimation.step,animation.activeAnimation.steps);return(property.from+propertyDelta)+property.unit;}function getEffectByName(name){return animation.effects[name];}function computeStyle(element,style){return pThis.elementWindow.BonaPage.Browser.isIE?element.currentStyle[style]:pThis.elementWindow.getComputedStyle(element,null)[style];}function parseAnimationProperty(value){var parsingRegEx=/^(?:([+-\\*])(=))?(\-?[0-9]+(?:\.[0-9]+)?)([a-z%]+)?$/im;var match=parsingRegEx.exec(value);if(!match){throw"unable to parse value: "+value;}var result={operation:match[1],modification:match[2],value:parseInt(match[3],0),unit:match[4]||"px"};return result;}function parseCssProperty(value){var parsingRegEx=/^(\-?[0-9]+(?:\.[0-9]+)?)([a-z%]+)?$/im;var match=parsingRegEx.exec(value);var result;if(!match){result={value:0,unit:"px"};}else{result={value:parseInt(match[1],0),unit:match[2]||"px"};}return result;}return animation;});}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(d,a){if(a==null){a=0;}else{if(a<0){a=Math.max(0,this.length+a);}}for(var b=a,c=this.length;b0){m=Math.floor(m/10);l++;}if(d>l){for(i=d-l;i--;){s+=c;}}return(s+n);}function toJson(value){var type=(typeof(value)==="object"&&typeof(value.getTime)==="function")?"date":typeof(value),ret;switch(type){case"date":ret=isFinite(value.valueOf())?value.getUTCFullYear()+"-"+cn(value.getUTCMonth()+1)+"-"+cn(value.getUTCDate())+"T"+cn(value.getUTCHours())+":"+cn(value.getUTCMinutes())+":"+cn(value.getUTCSeconds())+"Z":null;break;case"string":case"number":case"boolean":default:ret=value.valueOf();}return ret;}function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,length,mind=gap,partial,value=holder[key],ret;if(value&&typeof(value)==="object"){if(typeof(value.getTime)==="function"){toJson(value);}else{if(typeof(value.toJSON)==="function"){value=value.toJSON(key);}}}if(typeof(rep)==="function"){value=rep.call(holder,key,value);}switch(typeof(value)){case"string":ret=quote(value);break;case"number":ret=isFinite(value)?String(value):"null";break;case"boolean":case"null":ret=String(value);break;case"object":if(!value){ret="null";}else{gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i=0){return g.errorData;}}}})(window,WA);(function(c,b){if(!c.WA.Storage){b.Storage=new a();b.Storage.init();}function a(){var r=this,y="WA.Storage";r.toString=function(){return y;};r.init=o;r.dispose=f;r.supported=x;r.store=v;r.write=C;r.fetch=k;r.read=t;r.isset=p;r.unset=z;r.del=z;r.empty=j;r.dumps=h;r.loads=q;var u,B,s,d,e,i,A,g=c.document,w=true;function o(){if(w){try{v("TestName","TestValue");if(k("TestName")!=="TestValue"){w=false;}z("TestName");}catch(D){w=false;}}}function m(){try{return("localStorage" in c&&c.localStorage);}catch(D){return false;}}function l(){try{return("globalStorage" in c&&c.globalStorage&&c.globalStorage[c.location.hostname]);}catch(D){return false;}}function n(){return(typeof g.documentElement.addBehavior==="function");}if(m()){u=c.localStorage;B=function(D,E){u.setItem(D,E);};s=function(D){return u.getItem(D);};d=function(D){u.removeItem(D);};e=function(){u.clear();};i=function(D){for(var E in u){if(u.getItem(E)){D(E);}}};}else{if(l()){u=c.globalStorage[c.location.hostname];B=function(D,E){u[D]=E;};s=function(D){return((u[D]&&u[D].value)?u[D].value:null);};d=function(D){delete u[D];};i=function(D){for(var E in u){if(u.hasOwnProperty(E)){D(E);}}};}else{if(n()){u=g.createElement("div");A=function(D){return function(){g.body.appendChild(u);u.addBehavior("#default#userData");u.load("localStorage");var E=Array.prototype.slice.call(arguments,0);E.unshift(u);var F=D.apply(c,E);g.body.removeChild(u);return F;};};B=A(function(E,D,F){E.setAttribue(D,F);E.save("localStorage");});s=A(function(E,D){return E.getAttribute(D);});d=A(function(E,D){E.removeAttribute(D);E.save("localStorage");});i=A(function(H,F){var D=H.XMLDocument.documentElement.attributes;for(var G=0,E=D.length;G1){a=d[1].split(/:/);}if(a&&a[1]!=null){h.left=Number(a[1]);}if(a&&a[2]!=null){h.top=Number(a[2]);}if(a&&a[3]!=null){h.width=Number(a[3]);}else{h.width=(winWidth)?Number(winWidth):500;}if(a&&a[4]!=null){h.height=Number(a[4]);}else{h.height=(winHeight)?Number(winHeight):300;}}if(k){b();}BonaDialog.pDialog[c].dialog=new WA.UI.BonaDialogWrapper(e,h,g,f);return BonaDialog.pDialog[c].dialog;};BonaDialog.getObjectById=function(a){var b;for(b=0;b';Z=WA.$(J,window);G=frames[K];s();setTimeout(N,100);}else{setTimeout(M,100);}}aw.reInitDropdown=function(aL,aM,aS,aH,aP,aN,aQ,aR,aO,aK){var aJ,aT={};aw.isObjValid=false;aw.isDataValid=false;x=aL;ag=aM;v=aS.directURL;t=(aH)?aH:null;am=(aP&&typeof(aP)=="function")?aP:null;ah=(aN&&typeof(aN)=="function")?aN:aw.closeDropdown;aq=(aR&&typeof(aR)=="function")?aR:null;ao=(aQ&&typeof(aQ)=="function")?aQ:function(){};ak=(aO&&typeof(aO)=="function")?aO:null;aK=aK||{};for(aJ in aK){if(aK.hasOwnProperty(aJ)){k[aJ]=aK[aJ];aT[aJ]=true;}}for(aJ in k){if(k.hasOwnProperty(aJ)){if(!aT.hasOwnProperty(aJ)){delete k[aJ];}}}if(aS.callBackParameters){for(F in aS.callBackParameters){if(aS.callBackParameters.hasOwnProperty(F)&&typeof(aS.callBackParameters[F])!="function"){aj[F]=aS.callBackParameters[F];}}}if(G){G.isIFrameReloading=true;}try{if(k.isReload){G.location.reload(true);}else{G.location.replace(v);}}catch(aI){}s();setTimeout(N,100);};function s(){var aH,aI=x.match(/^(.*?_Level)(\d+)$/i);n.splice(0,n.length);if(aI&&aI[1]!=null&&aI[2]!=null){aI[2]++;aH=BonaDropdown.getObjectById(aI[1]+aI[2]);while(aH){n.push(aH);aI[2]++;aH=BonaDropdown.getObjectById(aI[1]+aI[2]);}}}function N(){var aH,aJ,aI;G=frames[K];if(G&&G.document&&!G.isIFrameReloading&&G.document.getElementById("idEndOfPageDiv")){if(!WA.Browser.isIE||WA.Browser.isIE>8){aJ=G.document.createElement("STYLE");aJ.setAttribute("type","text/css");aJ.setAttribute("rel","stylesheet");aJ.innerHTML=g.join(" ");G.document.querySelector("HEAD").appendChild(aJ);}G.parentId=x;G.parentObject=aw;G.parentButton=ag;if(am){G.callBackSave=am;}if(ah){G.callBackClose=ah;}if(aq){G.callBackWaitClose=aq;}if(ao){G.callBackStopClose=ao;}if(ak){G.callBackPreview=ak;}if(d){I=G.document.body;}else{I=G;}G.document.body.onmousedown=function(aK){WA.stopEventBubbling(aK);};if(R){ax();}if(t){t=WA.UI.ScrollablePanelTemplate({id:"idDropdownScrollableContentContainer_"+x,cssClass:"dropdownScrollableContentContainer",isBorder:true,isNoIndentTemplate:true,contentHTML:t});if(G.document.getElementById("idInnerHTMLContainer")){G.document.getElementById("idInnerHTMLContainer").innerHTML=t;}else{if(G.document.forms[0]){G.document.forms[0].innerHTML=t;}else{G.document.body.innerHTML=t;}}if(!G.document.getElementById("idEndOfPageDiv")){aI=G.document.createElement("DIV");aI.id="idEndOfPageDiv";G.document.body.applyChild(aI);}}aH=G.document.body.getElementsByTagName("*");ae(G,aH);az=WA.Object.create(WA.UI.ScrollablePanel,[{id:"idDropdownScrollableContentContainer_"+x},{parentComponent:aw,window:G,isBorder:true,isNoRightPadding:true,scrollBarContainerZIndex:37373,scrollBarSliderZIndex:37377}]);aA=WA.$("idDropdownScrollableContentContainer_"+x+"_ScrollablePanelContainer",G);G.document.body.style.backgroundColor=(O?"transparent":H);G.document.body.style.backgroundImage="none";G.document.body.style.filter="none";aw.isObjValid=true;}else{setTimeout(N,100);}}function ae(aP,aH){var aL,aO,aI,aN=0,aM=0,aK,aJ;aP.typeElements=[];for(aL=0,aO=aH.length;aLaR+aS){aT=aR-aV+aS-17;aM=WA.getElementBoxStyles(A);A.style.height=(aT-aM.deltaInnerHeight)+"px";}Z.style.left=aU+"px";Z.style.top=aV+"px";Z.style.width=(aW+2)+"px";Z.style.height=(aT+2)+"px";az.calculate();}}function aB(){if(!aw.isObjValid){return false;}if(tmSetXY){clearTimeout(tmSetXY);}var aM=(a.clientWidth)?a.clientWidth:a.offsetWidth;var aH=(a.clientHeight)?a.clientHeight:a.offsetHeight;var aJ=a.scrollLeft;var aK=a.scrollTop;var aL=document.body.scrollWidth;var aI=document.body.scrollHeight;var aR=Z.offsetLeft;var aS=Z.offsetTop;var aN=aR-aJ;var aO=aS-aK;var aQ=aR,aT=aS,aU=Z.offsetWidth,aP=Z.offsetHeight;if(aN+aU<50){aQ=aJ-aU+50;}else{if(aN>aM-25){aQ=aM+aJ-25;}else{if(aO>aH-25){aT=aH+aK-25;}else{if(aO<0){aT=aK;}}}}Z.style.left=aQ+"px";Z.style.top=aT+"px";o=aN;p=aO;if(isWinModal){objShadingBox.style.width=(aL>aM&&!isWinModal)?(aL-17)+"px":(aM-17)+"px";objShadingBox.style.height=(aI>aH&&!isWinModal)?(aI-17)+"px":(aH-17)+"px";objShadingBox.style.visibility="visible";}objMainBoxBg.style.width=(aL>aM&&!isWinModal)?(aL-17)+"px":(aM-17)+"px";objMainBoxBg.style.height=(aI>aH&&!isWinModal)?(aI-17)+"px":(aH-17)+"px";objMainBoxBg.style.overflow="hidden";objMainBoxBg.style.visibility="hidden";}aw.keyPress=function(aH){T(aH);};function T(aH){aH=WA.getEvent(aH);if(aH&&aH.keyCode==27){aw.closeDropdown(null,null,null,false,false);}}aw.closeDropdownWait=function(){if(r){clearTimeout(r);}if(G.callBackWaitClose){G.callBackWaitClose();}else{r=setTimeout(aw.closeDropdown,50);}};aw.closeDropdownStop=function(){var aH;if(r){clearTimeout(r);}for(aH=0;aH0?r+"."+t:t;return new c.ValueAccessor({modelAccessor:l,valuePath:u},{parentComponent:v});}function h(u){var t=r;if(u!=a){t+="."+u;}return l.getValue(t);}function p(v,u){var t=r;if(u!=a){t+="."+u;}l.setValue(t,v);}function g(){return l.getErrors(r);}function i(){m.Dispose.addHandler(f);}function f(){n.Dispose.fireHandlers();m.Dispose.removeHandler(f);l=null;r=null;s=null;m=null;n.RenderComplete=null;n.Dispose=null;}i();}})(window,WA);(function(d,c,a){if(!c.ValidationProcessor){c.ValidationProcessor=b;}function b(j,i){i=i||{};var m=this,n="WA.ValidationProcessor",q=j||{validationRules:[]},k=i.parentComponent;m.toString=function(){return n;};m.Dispose=c.Tools.EventHandlers.createHandlers(m,{id:"Dispose"});m.init=h;m.validateModel=o;var l=[];function o(t){var w={isValid:true,errors:{}};var r,s,v,u;for(r=0,s=l.length;rm.value){n.isValid=false;n.errorMessage=m.errorMessage.replace("<>",o.length-m.value);}break;case c.ValidationProcessor.ValidationRuleType.MinLength:if(o!=a&&c.getTypeString(o)=="string"&&o.length>",l.value);}}break;case c.ValidationProcessor.ValidationRuleType.MaxValue:if(o!=a&&o>m.value){n.isValid=false;n.errorMessage=m.errorMessage;}break;case c.ValidationProcessor.ValidationRuleType.MinValue:if(o!=a&&om.maxValue)){n.isValid=false;n.errorMessage=m.errorMessage;}break;case c.ValidationProcessor.ValidationRuleType.DateRangeDirection:if(o!=a&&o.start!=a&&o.end!=a&&o.start.unixTicks!=null&&o.end.unixTicks!=null&&o.start.unixTicks>o.end.unixTicks){n.isValid=false;n.errorMessage=m.errorMessage;}break;case c.ValidationProcessor.ValidationRuleType.DateAndTimePeriod:if(!e(o)){n.isValid=false;n.errorMessage=m.errorMessage;}break;}if(!n.isValid){n.pinPath=m.pinTo||m.valuePath;}return n;};function g(i,h){if(i==a){return false;}switch(h.valueType){case c.UI.ModelDataType.Int:case c.UI.ModelDataType.Double:if(c.getTypeString(i)!="number"){throw new Error("expected and current data types are different. expected: Int or Double; current: "+c.getTypeString(i));}return true;case c.UI.ModelDataType.Enum:if(c.getTypeString(i)!="number"){throw new Error("expected and current data types are different. expected: Int current: "+c.getTypeString(i));}return i!==0;case c.UI.ModelDataType.String:if(c.getTypeString(i)!="string"){throw new Error("expected and current data types are different. expected: String; current: "+c.getTypeString(i));}return i.length>0;case c.UI.ModelDataType.Collection:if(c.getTypeString(i)!="array"){throw new Error("expected and current data types are different. expected: Collection; current: "+c.getTypeString(i));}return i.length>0;case c.UI.ModelDataType.Object:if(c.getTypeString(i)!="object"){throw new Error("expected and current data types are different. expected: Object; current: "+c.getTypeString(i));}return true;case c.UI.ModelDataType.DateTimePeriod:if(c.getTypeString(i)!="object"||!i.hasOwnProperty("start")||!i.hasOwnProperty("end")){throw new Error("expected and current data types are different. expected: Object [DateTimePeriod]; current: "+c.getTypeString(i));}return i.start.unixTicks!=a||i.end.unixTicks!=a;case c.UI.ModelDataType.DateAndTimePeriod:if(c.getTypeString(i)!="object"||!i.hasOwnProperty("fromDate")||!i.hasOwnProperty("fromTime")||!i.hasOwnProperty("untilDate")||!i.hasOwnProperty("untilTime")){throw new Error("expected and current data types are different. expected: Object [DateAndTimePeriod]; current: "+c.getTypeString(i));}return i.fromDate!=a;case c.UI.ModelDataType.DateTimeTicks:if(c.getTypeString(i)!="object"||!i.hasOwnProperty("unixTicks")){throw new Error("expected and current data types are different. expected: Object [DateTimeTicks]; current: "+c.getTypeString(i));}return i.unixTicks!=a;default:throw new Error("unknown metaDataType");}}}})(window,WA);(function(c,b,a){if(!b.ValidationProcessor.ValidationRuleType){b.ValidationProcessor.ValidationRuleType={MaxLength:"maxLength",MinLength:"minLength",Mask:"mask",Required:"required",Custom:"custom",MaxValue:"maxValue",MinValue:"minValue",NumericValueRange:"numericValueRange",DateRangeDirection:"dateRangeDirection",DateRangeRequired:"dateRangeRequired",DateAndTimePeriod:"dateAndTimePeriod",DateTimeTicks:"dateTimeTicks"};}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory){c.ValidationProcessor.CustomRuleFactory=a;}function a(i,h){h=h||{};var k=this,l="WA.ValidationProcessor.CustomRuleFactory",m=i,j=h.parentComponent;k.toString=function(){return l;};k.Dispose=c.Tools.EventHandlers.createHandlers(k,{id:"Dispose"});k.init=g;k.createCustomRule=e;function e(o,n){return c.Object.create(c.ValidationProcessor.CustomRuleFactory[o.key],[o,{parentComponent:n}]);}function g(){j.Dispose.addHandler(f);}function f(){k.Dispose.fireHandlers();j.Dispose.removeHandler(f);m=null;j=null;k.RenderComplete=null;k.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.AnnouncementsSchedulerModelValidationRule){c.ValidationProcessor.CustomRuleFactory.AnnouncementsSchedulerModelValidationRule=a;}function a(h,g){g=g||{};var j=this,k="WA.ValidationProcessor.CustomRuleFactory.AnnouncementsSchedulerModelValidationRule",m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(o){var n=o;if(n.daysBeforeSend>n.recipients.maxDaysBeforeSend){return false;}return true;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.CustomLayoutChunksLength){c.ValidationProcessor.CustomRuleFactory.CustomLayoutChunksLength=a;}function a(h,g){g=g||{};var k=this,l="WA.ValidationProcessor.CustomRuleFactory.CustomLayoutChunksLength",n=h,j=g.parentComponent,i=2048000;k.toString=function(){return l;};k.Dispose=c.Tools.EventHandlers.createHandlers(k,{id:"Dispose"});k.init=f;k.validate=m;function m(s){var o=s.value,p,q;var r=0;for(p=0,q=o.length;p0;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.EventReminderDaysBeforeSendValidationRule){c.ValidationProcessor.CustomRuleFactory.EventReminderDaysBeforeSendValidationRule=a;c.ValidationProcessor.CustomRuleFactory.EventReminderDaysBeforeSendValidationRule.TypeName="WA.ValidationProcessor.CustomRuleFactory.EventReminderDaysBeforeSendValidationRule";}function a(h,g){g=g||{};var j=this,k=c.ValidationProcessor.CustomRuleFactory.EventReminderDaysBeforeSendValidationRule.TypeName,m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(o){var n=o;if(n.daysBeforeSend>n.maxDaysBeforeSend){return false;}return true;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeFirstSessionValidationRule){c.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeFirstSessionValidationRule=a;c.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeFirstSessionValidationRule.TypeName="WA.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeFirstSessionValidationRule";}function a(h,g){g=g||{};var j=this,k=c.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeFirstSessionValidationRule.TypeName,m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(o){var n=o;if(n.isEventStarted===true&&n.sendBeforeFirstSession===true){return false;}return true;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeRequiredValidationRule){c.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeRequiredValidationRule=a;c.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeRequiredValidationRule.TypeName="WA.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeRequiredValidationRule";}function a(h,g){g=g||{};var j=this,k=c.ValidationProcessor.CustomRuleFactory.EventReminderSendBeforeRequiredValidationRule.TypeName,m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(o){var n=o;if(n.sendBeforeEverySession!==true&&n.sendBeforeFirstSession!==true){return false;}return true;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.EventScheduleAnnuallyRepeatsValidationRule){c.ValidationProcessor.CustomRuleFactory.EventScheduleAnnuallyRepeatsValidationRule=a;c.ValidationProcessor.CustomRuleFactory.EventScheduleAnnuallyRepeatsValidationRule.TypeName="WA.ValidationProcessor.CustomRuleFactory.EventScheduleAnnuallyRepeatsValidationRule";}function a(h,g){g=g||{};var j=this,k=c.ValidationProcessor.CustomRuleFactory.EventScheduleAnnuallyRepeatsValidationRule.TypeName,m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(n){return !(n.periodicityType==c.UI.Scheduler.PeriodicityType.Yearly&&n.endType==c.UI.Scheduler.EndType.Repeats&&c.getTypeString(n.endsAfterOccurrences)=="number"&&(n.repeatEvery*n.endsAfterOccurrences)>7320);}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.EventScheduleEndDateValidationRule){c.ValidationProcessor.CustomRuleFactory.EventScheduleEndDateValidationRule=a;c.ValidationProcessor.CustomRuleFactory.EventScheduleEndDateValidationRule.TypeName="WA.ValidationProcessor.CustomRuleFactory.EventScheduleEndDateValidationRule";}function a(h,g){g=g||{};var j=this,k=c.ValidationProcessor.CustomRuleFactory.EventScheduleEndDateValidationRule.TypeName,m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(n){if(n.endType!=c.UI.Scheduler.EndType.Date||n.startDate.unixTicks==null){return true;}return n.endDate.unixTicks!=null&&n.startDate.unixTicks<=n.endDate.unixTicks;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.EventScheduleSessionTimeValidationRule){c.ValidationProcessor.CustomRuleFactory.EventScheduleSessionTimeValidationRule=a;c.ValidationProcessor.CustomRuleFactory.EventScheduleSessionTimeValidationRule.TypeName="WA.ValidationProcessor.CustomRuleFactory.EventScheduleSessionTimeValidationRule";}function a(h,g){g=g||{};var j=this,k=c.ValidationProcessor.CustomRuleFactory.EventScheduleSessionTimeValidationRule.TypeName,m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(n){return n.sessionTimePeriod.fromTime<=n.sessionTimePeriod.untilTime||n.sessionTimePeriod.daysDuration>1;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.EventScheduleWeekDaysValidationRule){c.ValidationProcessor.CustomRuleFactory.EventScheduleWeekDaysValidationRule=a;c.ValidationProcessor.CustomRuleFactory.EventScheduleWeekDaysValidationRule.TypeName="WA.ValidationProcessor.CustomRuleFactory.EventScheduleWeekDaysValidationRule";}function a(h,g){g=g||{};var j=this,k=c.ValidationProcessor.CustomRuleFactory.EventScheduleWeekDaysValidationRule.TypeName,m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(n){return n.periodicityType!=c.UI.Scheduler.PeriodicityType.Weekly||(c.getTypeString(n.daysBitMap)=="number"&&n.daysBitMap!==0);}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.ExportFieldsRequired){c.ValidationProcessor.CustomRuleFactory.ExportFieldsRequired=a;}function a(h,g){g=g||{};var j=this,k="WA.ValidationProcessor.CustomRuleFactory.ExportFieldsRequired",m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(n){return n.isExportAllFields||n.fields.length;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.ExportXlsFormatRestriction){c.ValidationProcessor.CustomRuleFactory.ExportXlsFormatRestriction=a;}function a(h,g){g=g||{};var j=this,k="WA.ValidationProcessor.CustomRuleFactory.ExportXlsFormatRestriction",m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(n){if(c.Admin.ExportDataFormatTypeCode[n.format]!=c.Admin.ExportDataFormatType.Xls){return true;}return n.isExportAllFields?(n.totalFieldsCount<=256):(n.fields.length<=256);}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(d,c,b){if(!c.ValidationProcessor.CustomRuleFactory.RecipientsModelValidationRule){c.ValidationProcessor.CustomRuleFactory.RecipientsModelValidationRule=a;}function a(h,g){g=g||{};var j=this,k="WA.ValidationProcessor.CustomRuleFactory.RecipientsModelValidationRule",m=h,i=g.parentComponent;j.toString=function(){return k;};j.Dispose=c.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});j.init=f;j.validate=l;function l(o){var n=o;if(n.recipients.allContacts){return true;}if(n.recipients.selectContacts&&!n.recipients.members&&!n.recipients.groups&&!n.recipients.contactSavedSearches&&!n.recipients.memberSavedSearches&&!n.recipients.allDonors&&!n.recipients.registrantsFromPast&&!n.recipients.allOtherContacts){return false;}if(n.recipients.members&&(!n.recipients.levels.AllSelected&&n.recipients.levels.items.length==0)){return false;}if(n.recipients.groups&&(!n.recipients.groupsList.allSelected&&n.recipients.groupsList.items.length==0)){return false;}if(n.recipients.contactSavedSearches&&n.recipients.contactSavedSearchesList.items.length==0){return false;}if(n.recipients.memberSavedSearches&&n.recipients.memberSavedSearchesList.items.length==0){return false;}return true;}function f(){i.Dispose.addHandler(e);}function e(){j.Dispose.fireHandlers();i.Dispose.removeHandler(e);m=null;i=null;j.RenderComplete=null;j.Dispose=null;}}})(window,WA);(function(){function b(){if(WA&&WA.Browser&&WA.Browser.isWebKit){if(!WA.ClientPerformanceChecker){WA.ClientPerformanceChecker=new a();}}else{setTimeout(b,100);}}b();function a(){var t=false,j=WA.topWindow.bonaPage_ClientPerformanceCheckerConfig||{enabled:false},o,k,y,x,c,q=[],f=null,u=false,h=0,p={},i=["duration","fetchStart","startTime","domainLookupStart","domainLookupEnd","connectStart","connectEnd","redirectStart","redirectEnd","requestStart","responseStart","responseEnd","secureConnectionStart","name","entryType","initiatorType"],s={unknown:0,link:1,script:2,img:3,iframe:4,xmlhttprequest:5};if(j.enabled){r();}function r(){if(WA&&WA.Ajax&&WA.jq$){window.performance.webkitSetResourceTimingBufferSize(1737);WA.addPageStateHandler(BonaPage.PAGE_LOADED,w);A();WA.addPageStateHandler(BonaPage.PAGE_UNLOADED,n);}else{setTimeout(r,37);}}function w(){g();u=true;if(y){e();}else{m();}}function A(){if(f){clearTimeout(f);}f=setTimeout(v,j.checkNewRecordsInterval);}function g(){if(f){clearTimeout(f);}}function v(){g();if(y){e();}else{m();}}function m(){var B=new Date();o=window.performance.getEntries();k=o.length;if(k>0){d();y=j.currentEnvironment+"_"+bonaPage_AccountId+"_"+bonaPage_UserId+"_"+B.getTime();x={packageId:y,currentEnvironment:j.currentEnvironment,accountId:bonaPage_AccountId,userId:bonaPage_UserId,clientTime:B.getTime()+(B.getTimezoneOffset()*60000),isLoaded:u,items:q};z(true);}}function l(){var B=new Date();d();if(q.length>0){c={packageId:y,clientTime:B.getTime()+(B.getTimezoneOffset()*60000),isLoaded:u,items:q};z(false);}else{A();}}function e(){o=window.performance.getEntries();if(o.length>k){k=o.length;l();}else{A();}}function d(){var F,I,B,G,K,E=[],C,H=0,D=j.firstRequestURL.toLowerCase(),J=j.otherRequestURL.toLowerCase();q.splice(0,q.length);G=0;for(F=0;F1){q[G]["IsSSL"]=(K[1]&&K[1].toLowerCase()==="https");q[G]["Domain"]=K[2]?K[2].toLowerCase():"";q[G]["Prms"]=(K[4]&&q[G]["Domain"].indexOf(".google")===-1)?K[4].replace(/(?:^5\.\d[^&]*?(?:&|$)|&?_=\d+)/ig,""):"";}K=K[3]||"";}else{if(i[I]==="initiatorType"){K=s[o[F][i[I]]]||0;}else{if(i[I]==="entryType"){continue;}else{if(!isNaN(o[F][i[I]])){K=(o[F][i[I]].toString()).replace(/\..*$/,"");}else{K=o[F][i[I]];}}}}}else{K=-1;}q[G][i[I].substr(0,1).toUpperCase()+i[I].substr(1)]=K;}G++;}}function z(B){var D=(B?j.firstRequestURL:j.otherRequestURL),C=(B?x:c);h+=C.items.length;WA.Ajax({url:D,data:JSON.stringify(C),dataType:"json",type:"POST",beforeSend:function(){},success:function(E){if(!t){A();}},error:function(E){if(!t){A();}}});}function n(){t=true;g();o=null;x=null;c=null;p=null;q=null;f=null;i=null;s=null;}}})();(function(window,WA){if(!window.globalUtils){window.globalUtils={};WA.globalUtils=window.globalUtils;}var globalUtils=WA.globalUtils;var _UdDomainNames=["NET","COM","BIZ","ORG","EDU","MIL","GOV","PRO","INT","COOP","NAME","INFO","AERO","ARPA","TRAVEL","MUSEUM","US","CA","UK","GB","FR","RU","AC","AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BR","BS","BT","BV","BW","BY","BZ","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","EU","FI","FJ","FK","FM","FO","GA","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","ST","SU","SV","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TP","TR","TT","TV","TW","TZ","UA","UG","UM","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","YU","ZA","ZM","ZW"];function _udTrim(s){var m=s.match(/^\s*(\S+(\s+\S+)*)\s*$/);return m==null?"":m[1];}globalUtils.ValidateEmailFormat=function(source,args){var s,m,i;args.IsValid=true;s=_udTrim(args.Value);if(s==""){return;}m=s.match(/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/);if(m!=null&&m.length>0){if(args.ValidateDomains==null||!args.ValidateDomains){return;}s=s.substr(s.lastIndexOf(".")+1).toUpperCase();for(i=0;i<_UdDomainNames.length;i++){if(s==_UdDomainNames[i]){return;}}}args.IsValid=false;};globalUtils.validateCheckBoxList=function(validator){var list=document.getElementById(validator.controltovalidate);var items=list.getElementsByTagName("INPUT");if(items!=null){for(var i=0;i0)?docForSize.clientWidth:document.body.clientWidth);};globalUtils.getVisibleClientHeight=function(){var docForSize=globalUtils.getDocForSize();return((docForSize.clientHeight>0)?docForSize.clientHeight:document.body.clientHeight);};globalUtils.scrollIntoView=function(container,target){if(typeof(container)=="window"){globalUtils.getXY(target);container.scrollTo(0,target.Y+20);}else{globalUtils.getXY(container);globalUtils.getXY(target);container.scrollTop=(target.Y-container.Y);}};globalUtils.getTextareaLength=function(obj){var value=obj.value;value=value.replace(/\r\n/g,"\n");value=value.replace(/\n/g,"\r\n");return value.length;};globalUtils.getXY=function(element){var x=element.offsetLeft||0,y=element.offsetTop||0,parentElement=element.offsetParent;while(parentElement){x+=parentElement.offsetLeft;y+=parentElement.offsetTop;parentElement=parentElement.offsetParent;}element.X=x;element.Y=y;return{x:x,y:y};};globalUtils.getAbsoluteXY=function(obj){var parTemp;obj.X=0;obj.Y=0;if(obj.parentNode){parTemp=obj;while(parTemp.nodeName.toUpperCase()!="BODY"){parTemp=parTemp.parentNode;var position=WA.Style.getElementStyle(parTemp,"position").toLowerCase();if(position=="absolute"||position=="relative"){obj.X+=parTemp.offsetLeft;obj.Y+=parTemp.offsetTop;}}}obj.X+=obj.offsetLeft;obj.Y+=obj.offsetTop;return{x:obj.X,y:obj.Y};};globalUtils.validateIntType=function(source,args){var data=args.Value;args.IsValid=true;if(data.charAt(0)=="-"){args.IsValid=false;}if(args.IsValid&&isNaN(data)){args.IsValid=false;}};globalUtils.validateIntTypePositive=function(source,args){globalUtils.validateIntType(source,args);if(!args.IsValid){return;}var data=args.Value;args.IsValid=data>0;};globalUtils.collectContainerDataState=function(containerId,w){w=w||WA.topWindow.contentarea;var control=w.document.getElementById(containerId),i,len;if(!control){return"";}var state="";var inputs=control.getElementsByTagName("INPUT");for(i=0,len=inputs.length;i=0){throw new Error("Name has invalid chracters!");}j.settings=l;j.objects={bonaDialog:null};j.onDialogOpen=l.onDialogOpen||null;j.onDialogInit=l.onDialogInit||null;j.afterDialogInit=l.afterDialogInit||null;j.afterDialogOpen=l.afterDialogOpen||null;j.onDialogOk=l.onDialogOk||null;j.onDialogClose=l.onDialogClose||null;j.initialize=function(m){j.settings=WA.Object.merge(j.settings,m);e();j.initialized=true;};j.dispose=function(){if(!j.initialized){return;}j.initialized=false;};j.open=h;j.close=b;j.generateReloadUrl=l.generateReloadUrl||d;j.generateDirectUrl=l.generateDirectUrl||c;function h(o,m,n){if(!j.initialized){j.initialize(m);}if(!j.objects.bonaDialog){setTimeout(function(){h(o,m,n);},100);return;}o=i(n,o);a(m);k(j.onDialogOpen,{windowProperties:o,callBackParameters:m,directAccessParameters:n});j.objects.bonaDialog.parameters=n;window.setTimeout(function(){j.objects.bonaDialog.showDialog(o);k(j.afterDialogOpen,{windowProperties:o,callBackParameters:m,directAccessParameters:n});},100);}function b(){if(!j.initialized){return;}j.objects.bonaDialog.closeWindow();}function g(){if(j.onDialogOk&&j.onDialogOk.call(j,j.objects.bonaDialog.getReturnedParameters())==false){return;}b();}function f(){if(j.onDialogClose&&j.onDialogClose.call(j,j.objects.bonaDialog.getReturnedParameters())==false){return;}b();}function a(m){for(var n in m){j.objects.bonaDialog.setReturnedParameters(n,m[n]);}}function i(m,n){n=n||{};var o=n.windowSize;n.winNewWidth=o&&o.width;n.winNewHeight=o&&o.height;n.newReloadUrl=n.newReloadUrl||j.generateReloadUrl.call(j,WA.Object.merge(j.settings,m));n.pCallBackSaveNew=n.pCallBackSaveNew||g;n.pCallBackCloseNew=n.pCallBackCloseNew||f;return n;}function d(m){if(!j.settings.dialogParameters.reloadURLTemplate){return"";}return WA.String.formatNamed(j.settings.dialogParameters.reloadURLTemplate,m);}function c(m){if(!j.settings.dialogParameters.directURLTemplate){return"";}return WA.String.formatNamed(j.settings.dialogParameters.directURLTemplate,m);}function e(){if(typeof(BonaPage.topWindow.BonaDialog)=="undefined"||!BonaPage.topWindow.BonaDialog){setTimeout(e,100);return;}if(!j.settings.dialogParameters.directURL){j.settings.dialogParameters.directURL=j.generateDirectUrl.call(j,j.settings);}if(!j.settings.dialogParameters.reloadURL){j.settings.dialogParameters.reloadURL=j.generateReloadUrl.call(j,j.settings);}k(j.onDialogInit);j.objects.bonaDialog=BonaPage.topWindow.BonaDialog.createInnerWindow(j.settings.name,j.settings.dialogParameters);k(j.afterDialogInit);}function k(n){if(n){var m=[];for(var o=0;o1?m.splice(0,1):[]);}}};(function(f,a){a.implementBonaPage=c;a.implementBonaPageProperties=e;a.implementBonaPageMethods=d;function c(g){if(!g.WA){g.WA=WA;}if(!g.BonaPage){g.BonaPage={};g.BonaPage.isObjInited=false;g.BonaPage.isObjValid=false;e(g);d(g);g.BonaPage.isObjInited=true;g.BonaPage.setPageState(a.PAGE_LOADING);}}function e(h){var g=h.BonaPage;h.globalUtils=f.globalUtils;h.browserInfo=f.browserInfo;g.topWindow=a.topWindow;g.Browser=a.Browser;g.isWidgetMode=a.isWidgetMode;g.Utils=a.Utils;g.dynamicMenuItems=a.dynamicMenuItems;g.PAGE_LOADING=a.PAGE_LOADING;g.PAGE_LOADED=a.PAGE_LOADED;g.PAGE_LOADEDORTIMEOUT=a.PAGE_LOADEDORTIMEOUT;g.PAGE_PARSING=a.PAGE_PARSING;g.PAGE_PARSED=a.PAGE_PARSED;g.PAGE_UNLOADING=a.PAGE_UNLOADING;g.PAGE_UNLOADED=a.PAGE_UNLOADED;g.UPDATEPANEL_UNDEFINED=a.UPDATEPANEL_UNDEFINED;g.UPDATEPANEL_LOADING=a.UPDATEPANEL_LOADING;g.UPDATEPANEL_LOADED=a.UPDATEPANEL_LOADED;g.HANDLERTYPE_ONCE=a.HANDLERTYPE_ONCE;g.HANDLERTYPE_ALWAYS=a.HANDLERTYPE_ALWAYS;}function d(h){var g=h.BonaPage;g.implementBonaPage=c;g.$=function(){b(this,"$",arguments,h);};g.$$=function(){b(this,"$$",arguments,h);};g.addHandler=function(){b(this,"addHandler",arguments,h);};g.removeHandler=function(){b(this,"removeHandler",arguments,h);};g.decodeHtml=function(){return b(this,"decodeHtml",arguments,h);};g.encodeHtml=function(){return b(this,"encodeHtml",arguments,h);};g.setPageState=function(){b(this,"setPageState",arguments,h);};g.addPageStateHandler=function(){b(this,"addPageStateHandler",arguments,h);};g.runPageStateHandlers=function(){b(this,"runPageStateHandlers",arguments,h);};g.setPageStateLoaded=function(){b(this,"setPageStateLoaded",arguments,h);};g.setPageStateUnloading=function(){b(this,"setPageStateUnloading",arguments,h);};g.setPageStateUnloaded=function(){b(this,"setPageStateUnloaded",arguments,h);};g.getEvent=function(){return b(this,"getEvent",arguments,h);};g.getEventTarget=function(){return b(this,"getEventTarget",arguments,h);};g.formatString=function(){return b(this,"formatString",arguments,h);};g.dynamicMenuDisable=function(){b(this,"dynamicMenuDisable",arguments,h);};h.TopCacheProvider=TopCacheProvider;h.CacheItem=CacheItem;}function b(j,i,h,k){var g=h.length-1;if(WA.getTypeString(h[g])!=="object"){g=h.length++;h[g]={};}if(!h[g].window){h[g].window=k;}return a[i].apply(j,h);}})(window,BonaPage);(function(e){if(!e.browserInfo){e.browserInfo={};}var d=navigator.userAgent;browserInfo.isMSIE=(navigator.appName=="Microsoft Internet Explorer");browserInfo.isMSIE5=browserInfo.isMSIE&&(d.indexOf("MSIE 5")!=-1);browserInfo.isMSIE50=browserInfo.isMSIE&&(d.indexOf("MSIE 5.0")!=-1);browserInfo.isMSIE55=browserInfo.isMSIE&&(d.indexOf("MSIE 5.5")!=-1);browserInfo.isMSIE60=browserInfo.isMSIE&&(d.indexOf("MSIE 6.0")!=-1);browserInfo.isMSIE70=browserInfo.isMSIE&&(d.indexOf("MSIE 7")!=-1);browserInfo.isMSIE80=browserInfo.isMSIE&&(d.indexOf("MSIE 8")!=-1);browserInfo.isMSIE10=navigator.appVersion.indexOf("MSIE 10")!==-1;browserInfo.isMSIE11=(d.indexOf("Trident")!==-1&&d.indexOf("rv:11")!==-1);browserInfo.isGecko=d.indexOf("Gecko")!=-1;browserInfo.isSafari=d.indexOf("Safari")!=-1;browserInfo.isOpera=d.indexOf("Opera")!=-1;browserInfo.isWebKit=(d.indexOf("WebKit")!=-1&&e.devicePixelRatio)?true:false;browserInfo.isMac=d.indexOf("Mac")!=-1;browserInfo.isFirefox=d.indexOf("Firefox")!=-1;if(browserInfo.isWebKit){/AppleWebKit\/(\S+)/.test(d);browserInfo.webKitVersion=parseFloat(RegExp.$1);}if(browserInfo.isFirefox){var b=/Firefox\/(\d+)/;b.test(d);browserInfo.firefoxMajorVersion=RegExp.$1;}browserInfo.isNS7=d.indexOf("Netscape/7")!=-1;browserInfo.isNS71=d.indexOf("Netscape/7.1")!=-1;if(browserInfo.isOpera){browserInfo.isMSIE=true;browserInfo.isGecko=false;browserInfo.isSafari=false;}browserInfo.isIE=browserInfo.isMSIE;browserInfo.isRealIE=browserInfo.isMSIE&&!browserInfo.isOpera;browserInfo.execCommand=(typeof(document.execCommand)!="undefined");browserInfo.clientCookiesEnabled=function(){var f;c("tcc","tccv");f=(a("tcc")=="tccv");c("tcc","",(new Date("1/1/2000")).toGMTString());return f;};browserInfo.getBrowserCapabilitiesData=function(){var f;var h=true;var g;c("tcc","tccv");f=(a("tcc")=="tccv");c("tcc","",(new Date("1/1/2000")).toGMTString());g=h&&(browserInfo.isMSIE80||browserInfo.isMSIE90||browserInfo.isMSIE10||browserInfo.isMSIE11||browserInfo.isMSIE12||browserInfo.isFirefox||browserInfo.isWebKit)&&browserInfo.execCommand;return(browserInfo.isMSIE60?"MSIE 6.0;":"")+(browserInfo.isMSIE70?"MSIE 7.0;":"")+(browserInfo.isMSIE80?"MSIE 8.0;":"")+(browserInfo.isMSIE90?"MSIE 9.0;":"")+(browserInfo.isMSIE10?"MSIE 10.0;":"")+(browserInfo.isMSIE11?"MSIE 11.0;":"")+(browserInfo.isWebKit?"WebKit;":"")+(browserInfo.isFirefox?"Firefox;":"")+(browserInfo.firefoxMajorVersion?"FirefoxMajorVersion:"+browserInfo.firefoxMajorVersion+";":"")+(browserInfo.execCommand?"Exec Command;":"")+(f?"Client Cookies Enabled;":"")+(g?"Platform Compatible;":"")+(h?"Javascript Enabled;":"");};function c(h,k,g,i,f,j){document.cookie=h+"="+escape(k)+((g)?"; expires="+g:"")+((i)?"; path="+i:"")+((f)?"; domain="+f:"")+((j)?"; secure":"");}function a(h){var f=" "+document.cookie;var j=" "+h+"=";var k=null;var i=0;var g=0;if(f.length>0){i=f.indexOf(j);if(i!=-1){i+=j.length;g=f.indexOf(";",i);if(g==-1){g=f.length;}k=unescape(f.substring(i,g));}}return(k);}})(window);(function(c,b){if(!b.ExceptionHandler){b.ExceptionHandler=new a();}function a(){c.onerror=d;function d(e,g,f){if(b&&b.AdminPanel){b.AdminPanel.setGlobalError({errorMessage:e,url:g,line:f});}}}})(window,WA);(function(d,c,b){if(!c.MouseDownHandler){c.MouseDownHandler=a;}function a(k,j){j=j||{};var q=this,u="WA.MouseDownHandler",v=k,p=j.parentComponent,g=j.elementId,f=j.element,h=j.handler,w=j.win||d,r=j.stopBubble===true,s=j.stopEvent===true;q.toString=function(){return u;};q.dipose=e;var l=false,m=c.Browser.isTouchEventsSupported;function t(x){if(r){c.stopEventBubbling(x);}if(s){c.stopEvent(x);}}function o(x){x=c.getEvent(x);t(x);if(x&&(x.pointerType===x.MSPOINTER_TYPE_MOUSE||x.pointerType=="mouse")){h(x);}}function n(x){t(x);if(!m||!c.Browser.isIE){h(x);}}function i(){p.Dispose.addHandler(e);if(!f){f=c.$(g,w);}if(!f){return;}if(m){c.PointerHandlersHelper.stopTouchBubble(w);if(c.Browser.isIE){c.addHandler(f,"pointerdown",o,{window:w});}}c.addHandler(f,"mousedown",n,{window:w});}function e(){if(l){return;}c.removeHandler(f,"pointerdown",o,{window:w});c.removeHandler(f,"mousedown",n,{window:w});p.Dispose.removeHandler(e);v=null;p=null;f=null;h=null;w=null;q.RenderComplete=null;l=true;}i();}})(window,WA);(function(d,c,b){if(!c.MouseUpHandler){c.MouseUpHandler=a;}function a(k,j){j=j||{};var q=this,u="WA.MouseUpHandler",v=k,p=j.parentComponent,g=j.elementId,f=j.element,h=j.handler,w=j.win||d,r=j.stopBubble===true,s=j.stopEvent===true;q.toString=function(){return u;};q.dipose=e;var l=false,m=c.Browser.isTouchEventsSupported;function t(x){if(r){c.stopEventBubbling(x);}if(s){c.stopEvent(x);}}function o(x){x=c.getEvent(x);t(x);if(x&&(x.pointerType===x.MSPOINTER_TYPE_MOUSE||x.pointerType=="mouse")){h(x);}}function n(x){t(x);if(!m||!c.Browser.isIE){h(x);}}function i(){p.Dispose.addHandler(e);if(!f){f=c.$(g,w);}if(!f){return;}if(m){c.PointerHandlersHelper.stopTouchBubble(w);if(c.Browser.isIE){c.addHandler(f,"pointerup",o,{window:w});}}c.addHandler(f,"mouseup",n,{window:w});}function e(){if(l){return;}c.removeHandler(f,"pointerup",o,{window:w});c.removeHandler(f,"mouseup",n,{window:w});p.Dispose.removeHandler(e);v=null;p=null;f=null;h=null;w=null;q.RenderComplete=null;l=true;}i();}})(window,WA);(function(d,c,b){if(!c.PointerClickHandler){c.PointerClickHandler=a;c.PointerClickHandler.ClickDistance=10;}function a(m,l){l=l||{};var u=this,B="WA.PointerClickHandler",C=m,t=l.parentComponent,h=l.elementId,j=l.handler,D=l.win||d,y=l.stopBubble===true,z=l.stopEvent===true;u.toString=function(){return B;};u.dipose=f;var n=false,w,x,g,e=c.PointerClickHandler.ClickDistance,p=c.Browser.isTouchEventsSupported,o=false;function i(E){if(n){return;}E=c.getEvent(E);switch(E.type){case"touchstart":case"MSPointerDown":s(E);break;case"touchmove":case"MSPointerMove":r(E);break;case"touchend":case"MSPointerUp":case"click":q(E);break;}}function s(E){o=true;c.addHandler(g,"touchend",i,{window:D});c.addHandler(g,"pointerup",i,{window:D});c.addHandler(D.document,"touchmove",i,{window:D});c.addHandler(D.document,"pointermove",i,{window:D});if(E.touches){w=E.touches[0].clientX;x=E.touches[0].clientY;}else{w=E.clientX;x=E.clientY;}}function r(E){var F,G;if(E.touches){F=E.touches[0].clientX;G=E.touches[0].clientY;}else{F=E.clientX;G=E.clientY;}if(Math.abs(F-w)>e||Math.abs(G-x)>e){v();}}function A(E){if(y){c.stopEventBubbling(E);}if(z){c.stopEvent(E);}}function q(E){A(E);if(p){v();if(c.Browser.isIE&&E.type=="click"&&o){return;}}j(E);}function v(){c.removeHandler(g,"touchend",i,{window:D});c.removeHandler(g,"pointerup",i,{window:D});c.removeHandler(D.document,"touchmove",i,{window:D});c.removeHandler(D.document,"pointermove",i,{window:D});}function k(){t.Dispose.addHandler(f);g=c.$(h,D);if(!g){return;}if(p){c.PointerHandlersHelper.stopTouchBubble(D);c.addHandler(g,"touchstart",i,{window:D});c.addHandler(g,"pointerdown",i,{window:D});}c.addHandler(g,"click",i,{window:D});}function f(){if(n){return;}if(p){v();c.removeHandler(g,"touchstart",i,{window:D});c.removeHandler(g,"pointerdown",i,{window:D});}c.removeHandler(g,"click",i,{window:D});t.Dispose.removeHandler(f);C=null;t=null;g=null;j=null;D=null;u.RenderComplete=null;n=true;}k();}})(window,WA);(function(f,e,d){if(!e.PointerHandlersHelper){e.PointerHandlersHelper={};}var a=e.PointerHandlersHelper,c="WA.PointerHandlersHelper";a.toString=function(){return c;};a.stopTouchBubble=b;function b(g){if(!e.Browser.isTouchEventsSupported){return;}g=g||f;if(g.waTouchBubbleStopped){return;}e.addHandler(g.document,"pointerdown",e.stopEventBubbling,{window:g});e.addHandler(g.document,"pointerup",e.stopEventBubbling,{window:g});g.waTouchBubbleStopped=true;}})(window,WA);window.CacheItem=function(a,b){a=a?a:null;b=b?b:null;if(!a){alert("cache provider required");}if(!b){alert("key required");}this.Get=function(){return a.Retrive(b);};this.Set=function(c){a.Store(b,c);};this.IsNull=function(){return(this.Get()==null);};return this;};window.TopCacheProvider=function(){var a=BonaPage.topWindow;this.Clear=function(b){if(!a.cache){return;}if(!b){a.cache=null;a.cache={};}else{a.cache[b]=null;}};this.Store=function(b,c){if(!a.cache){a.cache={};}a.cache[b]=c;};this.Contains=function(b){return a.cache?a.cache[b]:false;};this.Retrive=function(b){return a.cache?a.cache[b]:null;};return this;};