(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.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.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.Localization=new WA.Localization();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.AssociationUrlConverter=new WA.WaAssociationUrlConverter();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.OpenLinkManager=new WA.OpenLinkManager();WA.Tools.MixPanel=new WA.MixPanel();WA.TestFramework=new WA.WaTestFramework();WA.ReactiveEmailWizardActive=false;}})(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(d,c,b){if(!c.WaTestFramework.Mocker){c.WaTestFramework.Mocker=a;}function a(){var k=this,r="WA.WaTestFramework.Mocker";k.toString=function(){return r;};k.Dispose=c.Tools.EventHandlers.createHandlers(k,{id:"Dispose"});k.mockNamespace=i;k.mockComponentProperty=h;k.stubComponentMethods=q;k.restore=l;var g=false,p={},o={};function q(u){var s=d[u],t,v,w;if(!s||typeof(s)!=="function"){return;}w=o[u];if(!w){o[u]=w={};w.initialPrototype=s.prototype;w.initialSignature=s;}t=new d[u];v=d[u].prototype;delete d[u];d[u]=s=function(){};j(t,s);j(v,s);}function j(s,y){var t,v,u,w,x;v=Object.keys(s);for(t=0,w=v.length;tq||!z.test(y)){continue;}D=j();I.push({id:D,link:E.getAttribute(x)});E.setAttribute(x,D);}G=B.querySelectorAll('*[style*="url("]');for(C=0,F=G.length;Cq||!z.test(y)){continue;}D=j();I.push({id:D,link:y});E.style.backgroundImage="url('"+D+"')";}return I;}function s(A,z,w){var x,y;for(x=0,y=z.length;x-1,x=i(z.toLowerCase(),w);if(y){z=t(z,x);x=i(z,w);}z=z.substr(x.idx+x.len).trim();if(z==""){z="/";}return z;}function i(B,x){var z,A,y,w;for(z=0,A=x.length;z-1){w=x[z].length;break;}}return{idx:y,len:w};}function t(w,x){w=w.substr(x.idx,w.length-x.idx-1);w=w.trim();if(w.lastIndexOf("'")==(w.length-1)){return w.substr(0,w.length-1);}if(w.lastIndexOf('"')==(w.length-1)){return w.substr(0,w.length-1);}if(w.lastIndexOf(""")==(w.length-6)){return w.substr(0,w.length-6);}return w;}function j(){function w(){return Math.floor((1+Math.random())*65536).toString(16).substring(1);}return"data:image/png;base64,"+w()+w()+w()+w()+w()+w()+w()+w();}k();}})(window,WA);(function(d,c,b){if(!c.AssciationUrlConverterModule){c.AssciationUrlConverterModule=a;c.AssciationUrlConverterModule.TypeName="WA.AssciationUrlConverterModule";}function a(g,f){f=f||{};var h=this,i=c.AssciationUrlConverterModule.TypeName;h.toString=function(){return i;};h.getAdditionalDomainNames=e;function e(){return c.AdminPanel?c.AdminPanel.getPanelResources().AccountDomainNames:c.topWindow.location.host;}}})(window,WA);(function(d,b,a){if(!b.WaBrowser){b.WaBrowser=c;b.WaBrowser.TypeName="WA.WaBrowser";}function c(){var h=this,l=b.WaBrowser.TypeName;h.toString=function(){return l;};var m=navigator.userAgent,e=["","-webkit-","-moz-","-o-","-ms-",""],j={};h.isCssStyleSupported=g;function g(s){s=s.toLowerCase();if(j.hasOwnProperty(s)){return j[s];}var o=document.createElement("div"),n=document.documentElement;switch(s){case"pointer-events":if(!("pointerEvents" in o.style)){j[s]=false;break;}o.style.pointerEvents="auto";o.style.pointerEvents="x";n.appendChild(o);j[s]=!(d.getComputedStyle&&d.getComputedStyle(o,"").pointerEvents==="auto");n.removeChild(o);break;case"gradient":var p="background-image:",q="gradient(linear,left top,right bottom,from(#9f9),to(white));",r="linear-gradient(left top,#9f9, white);";o.style.cssText=(p+"-webkit- ".split(" ").join(q+p)+e.join(r+p)).slice(0,-p.length);j[s]=o.style.backgroundImage.indexOf("gradient")!=-1;break;default:o.style.cssText=e.join(s+";");j[s]=k(o,s);break;}return j[s];}function k(n,r){var p=e.join(r+" "),o,q;p=p.replace(/^-ms-/,"ms-");p=p.replace(/-([\da-z])/gi,i);p=p.split(" ");for(o=0,q=p.length-2;o=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","6th","first","second","third","fourth","fifth","sixth","first","second","third","fourth","last","last"]};}function c(){var D=this,F=b.WaDate.TypeName;D.toString=function(){return F;};D.Dispose=b.Tools.EventHandlers.createHandlers(D,{id:"Dispose"});var C=false,m;D.getDateOnlyUtcTicks=p;D.getDateTimeUtcTicks=q;D.format=l;D.getCalendarMask=o;D.getBitMaskFromDaysOfTheWeekArray=n;D.getDaysOfTheWeekArrayFromBitMask=t;D.getDaysFromMilliseconds=r;D.getMillisecondsFromDays=x;D.shiftWeekDaysArray=E;D.getFullYearsBetweenUtcMs=w;D.getFullMonthsBetweenUtcMs=u;D.getFullWeeksBetweenUtcMs=v;D.addDaysToUtcMilliseconds=e;D.addYearsToUtcMilliseconds=i;D.addMonthsToUtcMilliseconds=f;D.addMonthsToUtcMillisecondsByWeekDay=g;D.addWeeksToUtcMilliseconds=h;D.getDaysInMonth=s;D.countWeeksInMonth=j;D.getMonthWeekIndex=y;D.getWeekDayIndexFromUtcMs=A;function A(G){return new Date(G).getUTCDay();}function y(G,N){var K=N?"getUTC":"get",O=G[K+"Day"](),Q=G[K+"FullYear"](),I=G[K+"Date"](),M=G[K+"Month"](),J=s(Q,M),L,H,P=0;for(L=1;L<=J;L++){H=new Date(Q,M,L);if(H.getDay()==O){if(L==I){return P;}P++;}}}function z(G){return y(new Date(G),true);}function s(H,G){return new Date(H,G+1,0).getDate();}function j(K,I){var G=new Date(K,I,1),H=new Date(K,I+1,0),J=G.getDay()+H.getDate();return Math.ceil(J/7);}function h(G,H){return G+H*b.WaDate.MsInDay*b.WaDate.DaysInWeek;}function g(Q,O,H){var P=new Date(Q),R=P.getUTCDay(),S=z(Q),N=f(Q,O,H,true),M=new Date(N),T=M.getUTCFullYear(),L=M.getUTCMonth(),J=s(M.getUTCFullYear(),M.getUTCMonth()),K,I,G=0;if(S<4){for(K=1;K<=J;K++){I=new Date(T,L,K);if(R==I.getUTCDay()){if(S==G){return H?p(I):q(I);}G++;}}}else{for(K=J;K>=1;K--){I=new Date(T,L,K);if(R==I.getUTCDay()){return H?p(I):q(I);}}}throw new Error("Unable to find date.");}function f(L,I,H,G){var K=new Date(L),J=new Date(L);J.setMonth(K.getMonth()+I);if(G&&J.getDate()!=K.getDate()){J=new Date(J.getFullYear(),J.getMonth(),0,J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds());}return H?p(J):q(J);}function i(K,L,H,G){var J=new Date(K),I=new Date(K);I.setFullYear(I.getFullYear()+L);if(G&&I.getMonth()!=J.getMonth()){I=new Date(I.getFullYear(),I.getMonth(),0,I.getHours(),I.getMinutes(),I.getSeconds(),I.getMilliseconds());}return H?p(I):q(I);}function e(H,G){return H+x(G);}function v(H,G){return Math.floor(Math.abs(G-H)/(b.WaDate.MsInDay*b.WaDate.DaysInWeek));}function u(J,G){var K=new Date(J),H=new Date(G),I=(H.getUTCFullYear()-K.getUTCFullYear())*b.WaDate.MonthsInYear;I-=K.getUTCMonth();I+=H.getUTCMonth();I-=parseInt(l(K,"mddHHMMssl",true),10)<=parseInt(l(H,"mddHHMMssl",true),10)?0:1;return I;}function w(H,G){return Math.abs(new Date(G-H).getUTCFullYear()-1970);}function E(G,H){if(H==b.WaDate.WeekDayIndex.Sunday){return G;}return G.slice(H).concat(G.slice(0,H));}function x(G){return G*b.WaDate.MsInDay;}function r(H,G){return G?Math.ceil(H/b.WaDate.MsInDay):Math.floor(H/b.WaDate.MsInDay);}function n(K){var G,H=K.length,I=b.WaDate.DaysOfTheWeekBitMasks,J=0;for(G=0;G99?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+6],www:A.i18n.MonthWeekNumbers[O+12]};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 t=this,u=b.WaDimensions.TypeName;t.toString=function(){return u;};t.Dispose=b.Tools.EventHandlers.createHandlers(t,{id:"Dispose"});var q=false;t.getXY=o;t.getElementBox=h;t.getViewport=m;t.isRectInViewport=s;t.getWindowAbsScroll=n;t.getElementXY=l;t.getElementScreenXY=k;t.getElementAbsXY=f;t.getElementAutoAbsXY=g;t.getElementRelXY=j;t.getElementRect=i;function i(w,N){N=N||d;var C,F,J,v,A,L,B,M,K=m(N),H=K.scrollTop,G=K.scrollLeft,I,E,D,O,P;if(w.getBoundingClientRect){if(typeof i.offset!="number"){I=N.document.createElement("div");I.style.cssText="position:absolute;left:0;top:0;";N.document.body.appendChild(I);i.offset=-I.getBoundingClientRect().top-H;N.document.body.removeChild(I);I=null;}try{E=w.getBoundingClientRect();}catch(z){E=[0,0];}D=i.offset;C=E.left+D+G;F=E.right+D+G;J=E.top+D+H;v=E.bottom+D+H;A=v-J;L=F-C;B=J+(A>>1);M=C+(L>>1);return{left:C,right:F,top:J,bottom:v,height:A,width:L,heightCenter:B,widthCenter:M,viewport:K};}else{D=o(w);O=D.x;P=D.y;C=O-G;F=O+w.offsetWidth-G;J=P-H;v=P+w.offsetHeight-H;A=v-J;L=F-C;B=J+(A>>1);M=C+(L>>1);return{left:C,right:F,top:J,bottom:v,height:A,width:L,heightCenter:B,widthCenter:M,viewport:K};}}function j(w,B,z,A,v){var x=f(w,B),y=f(z,A);if(v&&v.allowNegative){return{X:x.X-y.X,Y:x.Y-y.Y,left:x.left-y.left,right:x.right-y.left,top:x.top-y.top,bottom:x.bottom-y.bottom,width:x.width,height:x.height};}return{X:Math.abs(x.X-y.X),Y:Math.abs(x.Y-y.Y),left:Math.abs(x.left-y.left),right:Math.abs(x.right-y.left),top:Math.abs(x.top-y.top),bottom:Math.abs(x.bottom-y.bottom),width:x.width,height:x.height};}function f(v,z){z=z||d;var y=l(v,z),x,w;y.viewport=m(b.topWindow);while(z!=z.parent){x=b.Dom.getFrameByWindow(z);if(x!=null){w=l(x,z.parent);}if(w){y.X+=w.X;y.Y+=w.Y;y.left+=w.left;y.right+=w.left;y.top+=w.top;y.bottom+=w.top;y.deltaScrollX+=w.deltaScrollX;y.deltaScrollY+=w.deltaScrollY;}z=z.parent;}return y;}function g(w){var v=w.ownerDocument,x=v.defaultView||v.parentWindow;return f(w,x);}function k(z,E,v){E=E||d;v=v||{};var B,D,A,w=v.container||null,C=o(z,w),F=C.x-C.root.scrollLeft,G=C.y-C.root.scrollTop;C=null;z.X=F;z.Y=G;B=(z.nodeName.toUpperCase()=="BODY");D=B?b.Window.getInnerWidth(E)+b.Window.getScrollBarWidth():z.offsetWidth;A=B?b.Window.getInnerHeight(E)+b.Window.getScrollBarWidth():z.offsetHeight;return{X:F,Y:G,left:F,top:G,right:F+D,bottom:G+A,width:D,height:A};}function l(B,G,v){if(!B){return({X:0,Y:0,left:0,top:0,right:0,bottom:0,width:0,height:0,deltaScrollX:0,deltaScrollY:0});}G=G||d;v=v||{};var D,F,C,z,A,w=v.container||null,E=o(B,w),H=E.x,I=E.y;E=null;B.X=H;B.Y=I;D=(B.nodeName.toUpperCase()=="BODY");F=D?b.Window.getInnerWidth(G)+b.Window.getScrollBarWidth():B.offsetWidth;C=D?b.Window.getInnerHeight(G)+b.Window.getScrollBarWidth():B.offsetHeight;z=H-(w?w.scrollLeft:b.Window.getScrollLeft(G));A=I-(w?w.scrollTop:b.Window.getScrollTop(G));return{X:H,Y:I,left:H,top:I,right:H+F,bottom:I+C,width:F,height:C,deltaScrollX:z,deltaScrollY:A};}function n(x){var y=x,v={X:0,Y:0};while(y!=y.parent){v.X+=(y.scrollX||y.pageXOffset||0);v.Y+=(y.scrollY||y.pageYOffset||0);y=y.parent;}return v;}function s(v,w){v.isVisible=r(v.topLeft,w)&&r(v.bottomRight,w);return v.isVisible;}function r(v,w){if((typeof v.x!="number")||typeof v.y!="number"){throw new Error("Invalid point parametes");}if(v.x<0||v.x>(w.width+w.scrollLeft)||v.x(w.height+w.scrollTop)||v.y=0;}function x(G,H,I){if(G.insertAdjacentHTML){G.insertAdjacentHTML(I||"beforeEnd",H);return;}y(G,H,I);}function y(H,J,L){var I=document.createDocumentFragment(),M=document.createElement("DIV"),G,K;M.innerHTML=J;G=M.firstChild;while(G){K=G.nextSibling;I.appendChild(G);G=K;}switch(L.toLowerCase()){case"beforebegin":H.parentNode.insertBefore(I,H);break;case"afterbegin":H.insertBefore(I,H.firstChild);break;case"afterend":if(H.nextSibling){H.parentNode.insertBefore(I,H.nextSibling);break;}H.parentNode.appendChild(I);break;default:H.appendChild(I);break;}I=M=G=K=null;}function r(O){var J,M,I,K,L,N;try{J=O.parent.document.getElementsByTagName("IFRAME");}catch(G){return null;}M=J.length;I=null;N=b.getLocationDomain();for(L=0;L=522)){return I.contains(H);}else{if(typeof I.compareDocumentPosition=="function"){return !!(I.compareDocumentPosition(H)&16);}else{var G=H.parentNode;do{if(G===I){return true;}else{G=G.parentNode;}}while(G!==null);return false;}}}function A(G){return !!G.nodeType;}function t(G){return G.nodeName.toUpperCase();}function v(G){return G.tagName.toUpperCase();}function u(G,J){var H=(J)?("|"+(J.split(/\,/).join("|"))+"|").toUpperCase():"",I=G.previousSibling;while(I&&H.indexOf("|"+I.nodeName.toUpperCase()+"|")==-1&&(H||I.nodeType!=1)){I=I.previousSibling;}return(I&&(H.indexOf("|"+I.nodeName.toUpperCase()+"|")!=-1||(!H&&I.nodeType==1)))?I:null;}function s(G,J){var H=(J)?("|"+(J.split(/\,/).join("|"))+"|").toUpperCase():"",I=G.nextSibling;while(I&&H.indexOf("|"+I.nodeName.toUpperCase()+"|")==-1&&(H||I.nodeType!=1)){I=I.nextSibling;}return(I&&(H.indexOf("|"+I.nodeName.toUpperCase()+"|")!=-1||(!H&&I.nodeType==1)))?I:null;}function q(G,I){var H=G.parentNode;while(H&&H.nodeName.toUpperCase()!=I.toUpperCase()){H=H.parentNode;}return(H&&H.nodeName.toUpperCase()==I.toUpperCase())?H:null;}function p(H,I){var G=H.firstChild;while(G&&G.nodeName.toUpperCase()!=I.toUpperCase()){G=G.nextSibling;}return(G&&G.nodeName.toUpperCase()==I.toUpperCase())?G:null;}function m(J){if(J.dataset){return J.dataset;}var I={},H=J.attributes,K,L,M,G;for(K=0,L=H.length;K0){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 v=this,y=b.WaWindow.TypeName;v.toString=function(){return y;};v.Dispose=b.Tools.EventHandlers.createHandlers(v,{id:"Dispose"});var t=false,w=null;v.getLocationOrigin=k;v.postMessage=u;v.getScroll=l;v.getScrollLeft=o;v.getScrollTop=p;v.getFullScroll=f;v.getFullScrollLeft=g;v.getFullScrollTop=h;v.getScrollWidth=q;v.getScrollHeight=n;v.getScrollBarWidth=m;v.setScrollTop=x;v.getInnerWidth=j;v.getInnerHeight=i;v.getWindowSizes=r;function r(A){A=A||d;var z={scrollWidth:0,scrollHeight:0,clientWidth:0,clientHeight:0,innerWidth:0,innerHeight:0,scrollLeft:0,scrollTop:0};if(A.document&&A.document.documentElement){z.clientWidth=j(A)||0;z.clientHeight=i(A)||0;z.scrollWidth=Math.max((A.document.documentElement.scrollWidth||0),z.clientWidth);z.scrollHeight=Math.max((A.document.documentElement.scrollHeight||0),z.clientHeight);z.innerWidth=A.innerWidth||A.document.documentElement.offsetWidth||0;z.innerHeight=A.innerHeight||A.document.documentElement.offsetHeight||0;z.scrollLeft=o(A);z.scrollTop=p(A);}return z;}function i(A){A=A||d;var z=0;if(!A.document){return 0;}if(b.Browser.isIE){if(A.document.documentElement.clientHeight){z=A.document.documentElement.clientHeight;}else{z=A.document.body.clientHeight;if(q(A)>A.document.body.clientWidth||b.Style.getElementStyle(b.Dom.$$("HTML",null,A)[0],"overflowX")==="scroll"){z-=m();}}}else{z=(A.document.compatMode==="CSS1Compat"&&b.Device.isDesktop)?(A.document.documentElement?A.document.documentElement.clientHeight:0):A.document.body.clientHeight;}return z;}function j(C){C=C||d;var z=0,B=null,A;if(!C.document){return 0;}if(b.Browser.isIE){if(C.document.documentElement.clientWidth){z=C.document.documentElement.clientWidth;}else{z=C.document.body.clientWidth;if(n(C)>C.document.body.clientHeight||b.Style.getElementStyle(b.Dom.$$("HTML",null,C)[0],"overflowY")==="scroll"){z-=m();}}}else{A=!!(C.document.documentElement);if(b.Device.isMobile){if(A){B=C.document.documentElement.style.cssFloat;C.document.documentElement.style.cssFloat="left";}else{B=C.document.body.style.cssFloat;C.document.body.style.cssFloat="left";}}z=(document.compatMode==="CSS1Compat"&&b.Device.isDesktop)?(A?C.document.documentElement.clientWidth:0):C.document.body.clientWidth;if(B!==null){if(A){C.document.documentElement.style.cssFloat=B;}else{C.document.body.style.cssFloat=B;}}}return z;}function x(A,B){B=B||d;try{if(typeof(B.pageYOffset)=="number"){B.pageYOffset=A;}else{if(B.document.documentElement&&B.document.documentElement.scrollTop){B.document.documentElement.scrollTop=A;}else{if(B.document.body&&B.document.body.scrollTop){document.body.scrollTop=A;}}}}catch(z){}}function m(D){D=D||d;var z,A,C,B;if(!w){z=D.document;A=z.createElement("DIV");if(A){A.style.position="absolute";A.style.left=A.style.top="-1000px";A.style.width=A.style.height="100px";A.style.overflow="scroll";A.style.visibility="hidden";if(z.body){z.body.appendChild(A);C=A.offsetWidth;B=A.clientWidth;if(A&&C&&B){w=C-B;}}}}if(A){A.parentNode.removeChild(A);}return w;}function n(z){return(z||d).document.body.scrollHeight;}function q(z){return(z||d).document.body.scrollWidth;}function l(z){return{left:o(z),top:p(z)};}function o(B){B=B||d;if(typeof(B.pageXOffset)=="number"){return B.pageXOffset;}var A=B.document.documentElement,z;if(A&&A.scrollLeft){return A.scrollLeft;}z=B.document.body;if(z&&z.scrollLeft){return z.scrollLeft;}return 0;}function p(C){C=C||d;var B=C.pageYOffset;if(typeof(B)=="number"){return B;}var A=C.document.documentElement,z;if(A&&A.scrollTop){return A.scrollTop;}z=C.document.body;if(z&&z.scrollTop){return z.scrollTop;}return 0;}function f(A,H,z){z=z||{};var B,D=z.limiters,C=!!D,F=(z.isOnlyElements?0:o(H)),G=(z.isOnlyElements?0:p(H)),E=A.parentElement;if(C&&D.length>0){for(B=0;B=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.Dimensions.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.Dimensions.getElementAbsXY(ao.document.body,ao);v=aa-(aW.X+O);w=ab-(aW.Y+P);aX=b.Dimensions.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.Dimensions.getElementAbsXY(al.document.body,al),aR=b.Dimensions.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(aX.length1){aW="?"+aW.substr(1);aX=aZ.indexOf(aW);if(aX<0){aW="&"+aW.substr(1);aX=aZ.indexOf(aW);}}a0.location.replace((aX<0)?aZ:aZ.substr(0,aX));},w=function(aX,aW){var aY=aW||aR;aY.location.replace(aX);},u=function(){return Math.floor(Math.random()*(new Date()).getTime()*10000);},x=function(aW){if(!aW&&aR.event){aW=aR.event;}if(aW){var aX=(aP.Browser.isIE)?aW.keyCode:aW.which;if(aX==13){if(aP.Browser.isIE){aW.cancelBubble=true;aW.returnValue=false;}else{aW.stopPropagation();aW.preventDefault();}return false;}}},f=function(aW){aR.location=aW;},B=function(aY,aW){if(!aY){throw new Error("scrollToElement: element is invalid.");}aW=aW||{};var a1=aW.win||aR,aZ=aW.offset&&!isNaN(parseInt(aW.offset))?parseInt(aW.offset):0,a0=aW.scrollableArea||null,aX;if(typeof(aY)=="string"){aY=aP.Dom.$(aY,a1);}if(!aY){throw new Error("scrollToElement: element is invalid.");}if(a0){if(typeof(a0)=="string"){a0=aP.Dom.$(a0,a1);}if(!a0){throw new Error("scrollToElement: scrollableArea is invalid.");}aX=aP.Dimensions.getElementXY(aY,a1,{container:a0});a0.scrollTop=aX.Y+aZ;}else{aX=aP.Dimensions.getElementXY(aY,a1);a1.scrollTo(aP.Window.getScrollLeft(a1),aX.Y+aZ);}},c=function(){if(!aR||!aR.document||!aR.document.body){return false;}BonaPage.addHandler(aR.document.body,"keypress",function(aW){try{if(!aW&&aR.event){aW=aR.event;}if(!aW){return true;}var aY=(aP.Browser.isIE)?aW.srcElement:aW.target;if(!aY){return true;}if(aY.nodeName.toLowerCase()=="textarea"){return true;}return aR.BonaPage.stopEnter(aW);}catch(aX){return true;}});},i=function(aY,aW){aW=aW||{};if(typeof aY.onselectstart!="undefined"){aY.onselectstart=function(aZ){return aX(aZ.target.tagName,aW.exceptions);};}else{if(typeof aY.style.MozUserSelect!="undefined"){aY.style.MozUserSelect="none";}else{aY.onmousedown=function(aZ){return aX(aZ.target.tagName,aW.exceptions);};}}function aX(a0,aZ){if(aZ!=aN&&a0!=aN&&aP.getTypeString(aZ)=="array"&&(aZ.indexOf(a0.toUpperCase())>=0||aZ.indexOf(a0.toLowerCase())>=0)){return;}return false;}},k=function(a0){var aX=encodeURIComponent(a0)+"=",aY=document.cookie.indexOf(aX),aZ=null;if(aY>-1){var aW=document.cookie.indexOf(";",aY);if(aW==-1){aW=document.cookie.length;}aZ=decodeURIComponent(document.cookie.substring(aY+aX.length,aW));}return aZ;},D=function(aZ,a2,aY,a0,aX,a1){var aW=encodeURIComponent(aZ)+"="+encodeURIComponent(a2);if(aY instanceof Date){aW+="; expires="+aY.toGMTString();}if(a0){aW+="; path="+a0;}if(aX){aW+="; domain="+aX;}if(a1){aW+="; secure";}document.cookie=aW;},L=function(aX,aY,aW,aZ){D(aX,"deleted",new Date(0),aY,aW,aZ);},G=function(aX,aW){if(aX&&aW!=null){aX.name=aW;}else{throw new Error("Invalid window name");}},C=function(aX,aW){if(aX){aW=(aW||"")+"_"+aS++;G(aX,aW);}else{throw new Error("Invalid window name");}},t=function(aW,aZ){aZ=aZ||aR;aW=(aP.getTypeString(aW)=="string")?aP.Dom.$(aW,aZ):aW;if(!aW){return 0;}if("selectionStart" in aW){return aW.selectionStart;}if(aZ.document.selection){aW.focus();var aX=aZ.document.selection.createRange();var aY=aZ.document.selection.createRange().text.length;aX.moveStart("character",-aW.value.length);return aX.text.length-aY;}},F=function(aW,aX,aZ){aZ=aZ||aR;aW=(aP.getTypeString(aW)=="string")?aP.Dom.$(aW,aZ):aW;if(!aW){return;}if(aW.createTextRange){var aY=aW.createTextRange();aY.collapse(true);aY.moveEnd("character",aX);aY.moveStart("character",aX);aY.select();return;}if(aW.setSelectionRange){aW.setSelectionRange(aX,aX);}};var e=function(aX){var aW=function(){var aY=new TopCacheProvider();aY.Clear(aX);};aW();};var ad="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 at={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 aV="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var aS;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=aG;BonaPage.addPageStateHandler=Q;BonaPage.runPageStateHandlers=aD;BonaPage.setPageStateLoaded=aH;BonaPage.setPageStateUnloading=aJ;BonaPage.setPageStateUnloaded=aI;BonaPage.getLocationDomain=function(){return aT;};BonaPage.$bonaObject=d;BonaPage.reloadCurrentPage=y;BonaPage.loadPage=w;BonaPage.getUniqueIdentifier=u;BonaPage.getEvent=l;BonaPage.getEventTarget=o;BonaPage.getRelatedTarget=s;BonaPage.eventHoverTag="hoverTags";BonaPage.getEventTags=n;BonaPage.getAttrByName=j;BonaPage.stopEvent=I;BonaPage.stopEventDefault=K;BonaPage.stopEventBubbling=J;BonaPage.getEventMouseCoords=m;BonaPage.stopEnter=H;BonaPage.getFunctionKeyByKeyCode=p;BonaPage.validateChar=M;BonaPage.keyValidator=v;BonaPage.getRandomId=r;BonaPage.getMouseButton=q;BonaPage.addHandler=a;BonaPage.removeHandler=z;BonaPage.addHandlers=b;BonaPage.removeHandlers=A;BonaPage.convertColorToHex=h;BonaPage.convertColorHexToRGB=g;BonaPage.setElementOpacity=E;BonaPage.preventPressEnter=x;BonaPage.encodeHtml=af;BonaPage.decodeHtml=ac;BonaPage.getContactDisplayName=am;BonaPage.webRequest=aQ;BonaPage.goToTopWindow=an;BonaPage.clientRedirect=f;BonaPage.scrollToElement=B;BonaPage.disableSelect=i;BonaPage.getCookie=k;BonaPage.setCookie=D;BonaPage.unsetCookie=L;BonaPage.clearTopCache=e;BonaPage.setWindowName=G;BonaPage.setAutoWindowName=C;BonaPage.getSelectionStartIndex=t;BonaPage.setSelectionStartIndex=F;BonaPage.openLink=function(aW,aX){aP.Tools.OpenLinkManager.openLink(aW,aX);};BonaPage.showPageShadingContainer=aL;BonaPage.hidePageShadingContainer=ao;BonaPage.clearSelectionInRadioButtonsGroup=X;BonaPage.getDomainList=function(){return ad;};BonaPage.getZGif=function(){return aV;};BonaPage.Utils={};BonaPage.Utils.fixGeckoTables=ai;BonaPage.Utils.getAttrEx=al;BonaPage.Utils.bindEnterKeyDefusionFunction=c;BonaPage.PageParsed=function(aW,aY,aX){aY=aY||aR;aX=aX||BonaPage.HANDLERTYPE_ALWAYS,BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,aW,aX,{window:aY});};BonaPage.PageLoaded=function(aW){BonaPage.addPageStateHandler(BonaPage.PAGE_LOADED,aW);};BonaPage.PageUnLoaded=function(aW,aX){aX=aX||aR;BonaPage.addPageStateHandler(BonaPage.PAGE_UNLOADED,aW,BonaPage.HANDLERTYPE_ONCE,{window:aX});};BonaPage.PageUnLoading=function(aW){BonaPage.addPageStateHandler(BonaPage.PAGE_UNLOADING,aW);};aS=0;BonaPage.isObjInited=true;aG(BonaPage.PAGE_LOADING);}function ap(aW){if(aP.topWindow&&!aP.topWindow.name){aP.setWindowName(aP.topWindow,"nmWATopWindow");}aW.BonaPage.InternalPageType={};if(aW.bonaPage_InternalPageType){aW.BonaPage.InternalPageType.isWebPage=(aW.bonaPage_InternalPageType.isWebPage)?true:false;aW.BonaPage.InternalPageType.isSystemPage=(aW.bonaPage_InternalPageType.isSystemPage)?true:false;aW.BonaPage.InternalPageType.isErrorPage=(aW.bonaPage_InternalPageType.isErrorPage)?true:false;aW.BonaPage.InternalPageType.isWebPageTemplate=(aW.bonaPage_pageTemplate&&aW.bonaPage_pageTemplate.id)?true:false;aW.BonaPage.InternalPageType.isAdminPage=(aW.bonaPage_InternalPageType.isAdminPage)?true:false;aW.BonaPage.InternalPageType.isDialogPage=(aW.bonaPage_InternalPageType.isDialogPage)?true:false;aW.BonaPage.InternalPageType.isError404Page=(aW.bonaPage_InternalPageType.isError404Page)?true:false;aW.BonaPage.InternalPageType.isUndefinedPage=(aW.bonaPage_InternalPageType.isUndefinedPage)?true:false;}else{aW.BonaPage.InternalPageType.isWebPage=false;aW.BonaPage.InternalPageType.isAdminPage=false;aW.BonaPage.InternalPageType.isDialogPage=false;aW.BonaPage.InternalPageType.isError404Page=false;aW.BonaPage.InternalPageType.isUndefinedPage=true;}aW.BonaPage.PageView={};if(aW.bonaPage_PageView){aW.BonaPage.PageView.isAnonymousView=(aW.bonaPage_PageView.isAnonymousView)?true:false;aW.BonaPage.PageView.isMemberView=(aW.bonaPage_PageView.isMemberView)?true:false;aW.BonaPage.PageView.isAdminView=(aW.bonaPage_PageView.isAdminView)?true:false;}else{aW.BonaPage.PageView.isAnonymousView=true;aW.BonaPage.PageView.isMemberView=false;aW.BonaPage.PageView.isAdminView=false;}aW.BonaPage.isWidgetMode=(aW.WidgetMode&&aW.WidgetMode==1)?true:false;aW.BonaPage.isWidgetMode=(!aW.BonaPage.isWidgetMode&&aq)?aq:aW.BonaPage.isWidgetMode;aW.BonaPage.isEmulatedMode=false;if(aW.bonaPage_StatRes){aW.BonaPage.statRes=bonaPage_StatRes;aW.BonaPage.adminPath=bonaPage_StatRes+"Admin/";aW.BonaPage.adminResPath=bonaPage_StatRes+"Admin/html_res/";aW.BonaPage.adminResImgPath=bonaPage_StatRes+"Admin/html_res/images/";}aW.BonaPage.version=aW.bonaPage_BuildVer;aW.BonaPage.fullVersion=(aW.bonaPage_ThemeId!=null)?(aW.BonaPage.version+"."+aW.bonaPage_ThemeVer):aW.BonaPage.version;aW.BonaPage.themeHash=(aW.bonaPage_ThemeVer!=null)?aW.bonaPage_ThemeVer:"";aW.BonaPage.themeVersion=(!isNaN(parseFloat(aW.bonaPage_ThemeVersion)))?parseFloat(aW.bonaPage_ThemeVersion):null;aW.BonaPage.themeId=(aW.bonaPage_ThemeId!=null)?aW.bonaPage_ThemeId:"";aW.BonaPage.pageId=(aW.bonaPage_id!=null)?aW.bonaPage_id:"";aW.BonaPage.version_id=(aW.version_id!=null)?aW.version_id:"";aW.BonaPage.State={};aW.BonaPage.State.isPageLoading=true;aW.BonaPage.State.isPageLoaded=false;aW.BonaPage.State.isPageLoadedOrTimeout=false;aW.BonaPage.State.isPageParsing=true;aW.BonaPage.State.isPageParsed=false;aW.BonaPage.State.isPageUnloading=false;aW.BonaPage.State.isPageUnloaded=false;aW.BonaPage.State.isPageUnloaded=false;aW.BonaPage.State.isUpdatePanelUndefined=true;aW.BonaPage.State.isUpdatePanelLoading=false;aW.BonaPage.State.isUpdatePanelLoaded=false;aW.BonaPage.stateHandlers={};aW.BonaPage.stateHandlers[aW.BonaPage.PAGE_LOADING]=[];aW.BonaPage.stateHandlers[aW.BonaPage.PAGE_LOADED]=[];aW.BonaPage.stateHandlers[aW.BonaPage.PAGE_LOADEDORTIMEOUT]=[];aW.BonaPage.stateHandlers[aW.BonaPage.PAGE_PARSING]=[];aW.BonaPage.stateHandlers[aW.BonaPage.PAGE_PARSED]=[];aW.BonaPage.stateHandlers[aW.BonaPage.PAGE_UNLOADING]=[];aW.BonaPage.stateHandlers[aW.BonaPage.PAGE_UNLOADED]=[];aW.BonaPage.stateHandlers[aW.BonaPage.UPDATEPANEL_UNDEFINED]=[];aW.BonaPage.stateHandlers[aW.BonaPage.UPDATEPANEL_LOADING]=[];aW.BonaPage.stateHandlers[aW.BonaPage.UPDATEPANEL_LOADED]=[];aW.BonaPage.addHandler(aW,"load",aW.BonaPage.setPageStateLoaded);aW.BonaPage.addHandler(aW,"beforeunload",aW.BonaPage.setPageStateUnloading);aW.BonaPage.addHandler(aW,"unload",aW.BonaPage.setPageStateUnloaded);if(aW==aP.topWindow){aP.init();}aW.BonaPage.isObjValid=true;}function aH(aW){aW=aW||{};var aX=aW.window||aR;if(aX.BonaPage.loadingTimeout){clearTimeout(aX.BonaPage.loadingTimeout);}aX.BonaPage.setPageState(aX.BonaPage.PAGE_LOADED);}function aJ(aW){aW=aW||{};var aX=aW.window||aR;aX.BonaPage.setPageState(aX.BonaPage.PAGE_UNLOADING);}function aI(aW){aW=aW||{};var aX=aW.window||aR;aX.BonaPage.setPageState(aX.BonaPage.PAGE_UNLOADED);BonaPage.removeHandler(aX,"load",aX.BonaPage.setPageStateLoaded);BonaPage.removeHandler(aX,"beforeunload",aX.BonaPage.setPageStateUnloading);BonaPage.removeHandler(aX,"unload",aX.BonaPage.setPageStateUnloaded);}function S(){if(aR.Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager&&typeof(Sys.WebForms.PageRequestManager.getInstance)=="function"){var aW=Sys.WebForms.PageRequestManager.getInstance();if(aW){aW.add_beginRequest(U);aW.add_endRequest(ag);}}}function U(aX,aW){aG(BonaPage.UPDATEPANEL_LOADING);}function ag(aX,aW){aG(BonaPage.UPDATEPANEL_LOADED);}function aG(aY,aW){aW=aW||{};var aZ=aW.window||aR,aX;if(aY==BonaPage.PAGE_LOADING&&!aZ.BonaPage.State){ap(aZ);}aX=aZ.BonaPage.State;if(aX[aY]){return;}if(aY!=BonaPage.UPDATEPANEL_LOADING&&aY!=BonaPage.UPDATEPANEL_LOADED){aX[BonaPage.PAGE_LOADING]=aX.isPageLoading=false;aX[BonaPage.PAGE_LOADED]=aX.isPageLoaded=false;aX[BonaPage.PAGE_PARSING]=aX.isPageParsing=false;aX[BonaPage.PAGE_PARSED]=aX.isPageParsed=false;aX[BonaPage.PAGE_UNLOADING]=aX.isPageUnloading=false;aX[BonaPage.PAGE_UNLOADED]=aX.isPageUnloaded=false;}switch(aY){case BonaPage.PAGE_LOADING:aX[BonaPage.PAGE_LOADING]=aX.isPageLoading=true;aD(BonaPage.PAGE_LOADING,aZ);break;case BonaPage.PAGE_LOADED:aX[BonaPage.PAGE_LOADED]=aX.isPageLoaded=true;aX[BonaPage.PAGE_PARSED]=aX.isPageParsed=true;aD(BonaPage.PAGE_LOADED,aZ);break;case BonaPage.PAGE_LOADEDORTIMEOUT:aH(aZ);break;case BonaPage.PAGE_PARSING:aX[BonaPage.PAGE_LOADING]=aX.isPageLoading=true;aX[BonaPage.PAGE_PARSING]=aX.isPageParsing=true;aD(BonaPage.PAGE_PARSING,aZ);break;case BonaPage.PAGE_PARSED:aX[BonaPage.PAGE_LOADING]=aX.isPageLoading=true;aX[BonaPage.PAGE_PARSED]=aX.isPageParsed=true;S();aD(BonaPage.PAGE_PARSED,aZ);break;case BonaPage.PAGE_UNLOADING:aX[BonaPage.PAGE_LOADED]=aX.isPageLoaded=true;aX[BonaPage.PAGE_PARSED]=aX.isPageParsed=true;aX[BonaPage.PAGE_UNLOADING]=aX.isPageUnloading=true;aD(BonaPage.PAGE_UNLOADING,aZ);break;case BonaPage.PAGE_UNLOADED:aX[BonaPage.PAGE_LOADED]=aX.isPageLoaded=true;aX[BonaPage.PAGE_PARSED]=aX.isPageParsed=true;aX[BonaPage.PAGE_UNLOADED]=aX.isPageUnloaded=true;aX[BonaPage.UPDATEPANEL_UNDEFINED]=aX.isUpdatePanelUndefined=true;aX[BonaPage.UPDATEPANEL_LOADING]=aX.isUpdatePanelLoading=false;aX[BonaPage.UPDATEPANEL_LOADED]=aX.isUpdatePanelLoaded=false;aD(BonaPage.PAGE_UNLOADED,aZ);break;case BonaPage.UPDATEPANEL_LOADING:aX[BonaPage.UPDATEPANEL_UNDEFINED]=aX.isUpdatePanelUndefined=false;aX[BonaPage.UPDATEPANEL_LOADING]=aX.isUpdatePanelLoading=true;aX[BonaPage.UPDATEPANEL_LOADED]=aX.isUpdatePanelLoaded=false;aD(BonaPage.UPDATEPANEL_LOADING,aZ);break;case BonaPage.UPDATEPANEL_LOADED:aX[BonaPage.UPDATEPANEL_UNDEFINED]=aX.isUpdatePanelUndefined=false;aX[BonaPage.UPDATEPANEL_LOADING]=aX.isUpdatePanelLoading=false;aX[BonaPage.UPDATEPANEL_LOADED]=aX.isUpdatePanelLoaded=true;aD(BonaPage.UPDATEPANEL_LOADED,aZ);break;}}function Q(a0,aX,a2,aW){aW=(typeof(a2)==="object")?a2:(aW||{});var aY,a3=aW.window||aR,aZ=a3.BonaPage.State,a1=a3.BonaPage.stateHandlers;aY=a1[a0].length;a2=a2||BonaPage.HANDLERTYPE_ONCE;if(aZ[a0]){aX();}if(!aZ[a0]||a2==BonaPage.HANDLERTYPE_ALWAYS){a1[a0][aY]={};a1[a0][aY].type=a2;a1[a0][aY].handler=aX;}}function aD(aZ,aW){aW=aW||{};var aY,a0=aW.window||aR,aX=a0.BonaPage.stateHandlers[aZ];for(aY=0;aY=0){return;}var aX=aR.bonaPage_BalancePanel,a1="contentBalancePanelId",a9="opened",aZ="closed",a4=a9,a2="bpsh",a7=BonaPage.getCookie(a2),ba=30,a8=globalUtils.getVisibleClientHeight(),a5="";if(!BonaPage.isWidgetMode){a8=a8-ba;a5="max-height: "+a8+"px;overflow-y: auto;overflow-x: hidden;";}if(a7&&a7=="0"){a4=aZ;}var aY=aP.String.format("BonaPage.changeBalancePanelState('{0}','{1}','{2}','{3}');return false;",a1,a2,a9,aZ);var a0=document.createElement("DIV");a0.setAttribute("id","WA_messagePopup");if(aq){a0.style.position="relative";a0.style[(aP.Browser.isIE?"styleFloat":"cssFloat")]="right";}var aW=[];aW.push('
');aW.push("");aW.push(' ');aW.push("
");a0.innerHTML=aW.join("");if(document.body){document.body.appendChild(a0);}}function V(aY,aZ,a0,aW){var aX=aP.Dom.$(aY);if(aX.className==a0){aX.className=aW;BonaPage.setCookie(aZ,"0");return;}aX.className=a0;BonaPage.setCookie(aZ,"1");if(BonaPage.isWidgetMode){aR.scrollTo(0,document.body.scrollHeight);}}BonaPage.addPageStateHandler(BonaPage.PAGE_LOADED,Y);function P(){var aW=document.body.className;if((aW.indexOf("publicContentView")==-1&&aW.indexOf("memberContentView")==-1&&aW.indexOf("adminContentView")==-1)||(aW.indexOf("customizeContentView")!=-1)){return;}var aY=aP.Dom.$("idLoginUserNameTextBox");if(!aY){return;}var aX=aP.Dom.$$("input","idLoginUserNameTextBox")[0];var aZ=aP.Dom.$$("input","idLoginPasswordTextBox")[0];if(aX.value.length>0){aX.style.backgroundImage="none";}if(aZ.value.length>0){aZ.style.backgroundImage="none";}aX.onfocus=function(){this.style.backgroundImage="none";this.onfocus=null;return true;};aZ.onfocus=function(){this.style.backgroundImage="none";this.onfocus=null;return true;};if(!aX.value.length||!aZ.value.length){setTimeout(P,77);}}function ai(a1,a0){var aY,aZ;var a8,ba,bb,bc,a9;var a4,a6,a2,aW,aX;var a5,a7;var a3=a1||aR;var bd=(a0)?[a0]:a3.document.body.getElementsByTagName("TABLE");if(!bd||!bd.length){return false;}for(aY=0;aY0){a7=a5.rows[aZ].cells[0];if(a7&&a7.style){a2=(a7.style.borderLeftWidth)?a7.style.borderLeftWidth:aP.Style.getElementStyle(a7,"borderLeftWidth");a2=(!isNaN(parseInt(a2)))?parseInt(a2):0;if(a2>a6){a6=a2;}}}}aW=(a4>a6)?a4:a6;if(aW>0){aX=Math.ceil(aW/2);a5.style.marginLeft=aX+"px";a5.setAttribute("wamarginleft",1,0);}}if(!bd[aY].getAttribute("wamarginright",0)&&!bb){a4=(a5.style.borderRightWidth)?a5.style.borderRightWidth:aP.Style.getElementStyle(a5,"borderRightWidth");a4=(!isNaN(parseInt(a4)))?parseInt(a4):0;a6=0;for(aZ=0;(aZ0){a7=a5.rows[aZ].cells[a5.rows[aZ].cells.length-1];if(a7&&a7.style){a2=(a7.style.borderRightWidth)?a7.style.borderRightWidth:aP.Style.getElementStyle(a7,"borderRightWidth");a2=(!isNaN(parseInt(a2)))?parseInt(a2):0;if(a2>a6){a6=a2;}}}}aW=(a4>a6)?a4:a6;if(aW>0){aX=Math.ceil(aW/2);a5.style.marginRight=aX+"px";a5.setAttribute("wamarginright",1,0);}}}if(!bd[aY].getAttribute("wamargintop",0)&&!bc){a4=(a5.style.borderTopWidth)?a5.style.borderTopWidth:aP.Style.getElementStyle(a5,"borderTopWidth");a4=(!isNaN(parseInt(a4)))?parseInt(a4):0;a6=0;if(a5.rows&&a5.rows.length>0&&a5.rows[0]&&a5.rows[0].cells){for(aZ=0;(aZa6){a6=a2;}}}}aW=(a4>a6)?a4:a6;if(aW>0){aX=Math.ceil(aW/2);a5.style.marginTop=aX+"px";a5.setAttribute("wamargintop",1,0);}}if(!bd[aY].getAttribute("wamarginbottom",0)&&!a9){a4=(a5.style.borderBottomWidth)?a5.style.borderBottomWidth:aP.Style.getElementStyle(a5,"borderBottomWidth");a4=(!isNaN(parseInt(a4)))?parseInt(a4):0;a6=0;if(a5.rows&&a5.rows.length>0&&a5.rows[a5.rows.length-1]&&a5.rows[a5.rows.length-1].cells){for(aZ=0;(aZa6){a6=a2;}}}}aW=(a4>a6)?a4:a6;if(aW>0){aX=Math.ceil(aW/2);a5.style.marginBottom=aX+"px";a5.setAttribute("wamarginbottom",1,0);}}}}}}function al(aY,aX){if(aY==null){return false;}var aW=(aY.style[aX])?aY.style[aX]:aP.Style.getElementStyle(aY,aX);if(aW==null||(aW=="transparent"&&aX=="backgroundColor")||(aW=="none"&&aX=="backgroundImage")){return false;}else{return aW;}}if(aR.name&&aR.name=="nmCustomThemePreviewIFrame"){BonaPage.isEmulatedMode=true;if(aU.indexOf("javascript:")==-1&&aU.indexOf("emulatemode=1")==-1){aR.location.replace(aU+((aU.indexOf("?")==-1)?"?":"&")+"emulatemode=1");}aR.AdminPanel={};aR.AdminPanel.reset=function(){};aR.AdminPanel.setStatusMessage=function(){};aR.AdminPanel.hideWaitMessage=function(){};aR.AdminPanel.setToolbarMessage=function(){};aR.AdminPanel.clearCache=function(){};}function aK(){var aW;try{aW=aM.adminpanel;}catch(aX){}if(aW){if(aM.adminpanel&&aM.contentarea&&aR==aM.contentarea&&aM.contentarea.BonaPage.themeHash!=aM.BonaPage.themeHash&&aM.BonaEditor&&aM.BonaEditor.toolbar&&aM.BonaEditor.toolbar.isObjValid){aM.BonaPage.themeHash=aM.contentarea.BonaPage.themeHash;aM.BonaEditor.toolbar.reInitFormatingDropdown(aM.BonaPage.themeHash.toString()+aM.BonaPage.version.toString());}}}function Z(){if(!aR.bonaPage_MemberPanel||BonaPage.isWidgetMode||document.getElementsByTagName("BODY")[0].className.indexOf("printContentView")>=0){return;}var aW=[];var aY="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; font-style: normal; color: #000000;";var aZ=aR.bonaPage_MemberPanel;var a0=document.createElement("DIV");a0.style.position="fixed";a0.style.right="0";a0.style.top="0";a0.style.width="220px";a0.style.height="32px";a0.style.zIndex="37937";a0.style.backgroundColor="#E7E7E7";a0.className="switchToAdminShadowContainer";var aX=document.createElement("DIV");aX.style.position="fixed";aX.style.right="0";aX.style.top="0";aX.style.width="220px";aX.style.height="32px";aX.style.zIndex="37973";aX.style.backgroundColor="#E7E7E7";aX.className="switchToAdminContainer";aW.push('
');aW.push(' '+aZ.switchToAdminText+"");aW.push('  | ');aW.push(' '+aZ.signOutText+"");aW.push("
");aX.innerHTML=aW.join("");document.body.appendChild(a0);BonaPage.setElementOpacity(a0,37);document.body.appendChild(aX);}function am(aW){if(aW==null){return null;}if(aW.fio){return aW.fio;}if(aW.organization){return aW.organization;}if(aW.email){return aW.email;}if(aW.id){return aW.id;}return null;}function af(aY){aY=((aY!=null)?aY.toString():"");var a0="";for(var aZ=0;aZ160&&aX<256){a0+="&#"+aX+";";}else{if(aW=="&"){a0+="&";}else{if(aW=="<"){a0+="<";}else{if(aW==">"){a0+=">";}else{if(aW=='"'){a0+=""";}else{if(aW=="'"){a0+="'";}else{a0+=aW;}}}}}}}return a0;}function ac(aW){aW=aW||"";return aW.replace(/\&([A-Za-z0-9#]+)\;/ig,function(aY,aX){if(aX.indexOf("#")==0){aX=aX.substr(1);return String.fromCharCode(aX);}else{switch(aX.toLowerCase()){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"&"+aX+";";}}});}function aQ(aW,aX){aX=aX||aR;var aY=new aX.Sys.Net.WebRequest();aY.set_url(aW.url);aY.set_httpVerb(aW.verb||"GET");aY.set_userContext(aW.context);aY.add_completed(aW.completedCallback||function(){});aY.invoke();}function an(){try{var aX=top.location.href;if(!aX){top.location=self.location;}}catch(aW){try{if(self!=top){top.location=self.location;}}catch(aW){try{if(self!=top){top=self;}return false;}catch(aW){return false;}}return false;}}var ax;var av;var ay;var az;var aw=null;function aa(){var aX="Please wait...";var aZ="/Admin/html_res/images/async-load-progress-01.gif";var aY='";var aW='";ax=document.createElement("SPAN");ax.innerHTML=aW;if(aP.Browser.isIE){setTimeout(ab,137);}else{ab();}}function ab(){document.body.appendChild(ax);av=document.getElementById("idPageShadingContainer");ay=document.getElementById("idPageShadingWaitMessage");az=document.getElementById("idPageShadingWaitMessageText");aw=false;}function aL(aX,aW){if(aw===null){setTimeout(aL,137);}if(aw){return;}aw=true;az.innerHTML=(aW==null)?"Please wait...":aW;ay.style.display=(aX)?"block":"none";av.style.visibility="visible";setTimeout(function(){aF(aX);},10);BonaPage.addHandler(aR,"resize",aF);aw=true;}function ao(){if(aw===null){setTimeout(ao,137);}if(!aw){return;}aw=false;BonaPage.removeHandler(aR,"resize",aF);av.style.visibility="hidden";av.style.left="-3700px";av.style.top="-3700px";av.style.width="1px";av.style.height="1px";av.style.overflow="hidden";ay.style.display="none";aw=false;}function aF(aW){if(aw===null){setTimeout(aF,137);}av.style.left="0px";av.style.top="0px";av.style.width=aP.Window.getScrollWidth()+"px";av.style.height=aP.Window.getScrollHeight()+"px";if(aW||ay.style.display=="block"){ay.style.left=Math.floor((aP.Window.getInnerWidth()-ay.offsetWidth)/2)+"px";ay.style.top=Math.floor((aP.Window.getInnerHeight()-ay.offsetHeight)/2)+"px";}}if(!BonaPage.addGlobalHandler){BonaPage.addGlobalHandler=O;BonaPage.addGlobalMouseDown=function(aW,aX){aP.addGlobalHandler(((aP.Browser.isIE&&aP.Browser.isIE<9)?"document":"window"),"mousedown",aW,aX,{});};BonaPage.removeGlobalHandler=aB;BonaPage.addDomHandler=N;BonaPage.removeDomHandler=aA;}var ae={};function O(aX,aY,aZ,a0,aW){R(true,aX,aY,aZ,a0,aW);}function aB(aW){R(false,null,null,null,aW);}function R(a7,aY,a0,a3,a4,aX){aX=aX||{};var a5,a8,aW,a6,a2=aX.excludeWindows||{},a1=aX.excludeWindowPartName||null;if(aP.isTopWindow){if(a7){aA(aR,a4);N(aR,aY,a0,a3,a4,aX);}else{aA(aR,a4);}aW=document.getElementsByTagName("IFRAME");a8=aW.length;for(a5=0;a5a0){gDES_PV.CurOpq=a0;}else{if(gDES_PV.CurOpq=a0)||(gDES_PV.CurOpq=0){P();}if(aP.Browser.isGecko){ai();}aK();Z();aa();aj();if(BonaPage.Browser.isIE){ah();}}BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,au);})(window,BonaPage.topWindow.WA);function BonaObject(element,elementWindow){if(typeof(element)==="string"){this.object=WA.Dom.$(element);if(!this.object){throw new Error(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){this.queue.push({settings:settings,rawData:params,properties:[]});checkQueue();};function initializeNewAnimationProperties(newAnimation){for(var styleName in newAnimation.rawData){var propertyInfo=parseCssProperty(computeStyle(pThis.object,styleName)),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;}return{operation:match[1],modification:match[2],value:parseInt(match[3],0),unit:match[4]||"px"};}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;aw.pButton=aM;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.Dimensions.getElementBox(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?s+"."+u:u;return new c.ValueAccessor({modelAccessor:m,valuePath:v},{parentComponent:w});}function h(){return s;}function i(v){var u=s;if(v!=a){u+="."+v;}return m.getValue(u);}function q(w,v){var u=s;if(v!=a){u+="."+v;}m.setValue(u,w);}function g(){return m.getErrors(s);}function j(){n.Dispose.addHandler(f);}function f(){o.Dispose.fireHandlers();n.Dispose.removeHandler(f);m=null;s=null;t=null;n=null;o.RenderComplete=null;o.Dispose=null;}j();}})(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";c.ValidationProcessor.CustomRuleFactory.EventScheduleSessionTimeValidationRule.Limits={MinTime:0,MaxTime:86400000,MinDaysDuration:1,MaxDaysDuration:366};}function a(h,g){g=g||{};var k=this,l=c.ValidationProcessor.CustomRuleFactory.EventScheduleSessionTimeValidationRule.TypeName,n=h,j=g.parentComponent;k.toString=function(){return l;};k.Dispose=c.Tools.EventHandlers.createHandlers(k,{id:"Dispose"});var i=c.ValidationProcessor.CustomRuleFactory.EventScheduleSessionTimeValidationRule.Limits;k.init=f;k.validate=m;function m(r){var p=r.sessionTimePeriod.fromTime,q=r.sessionTimePeriod.untilTime,o=r.sessionTimePeriod.daysDuration;if(p===null){return q===null;}if(typeof o!="number"||pi.MaxTime){return false;}if(q!=null&&(qi.MaxTime)){return false;}if(oi.MaxDaysDuration){return false;}return q==null||p<=q||o>i.MinDaysDuration;}function f(){j.Dispose.addHandler(e);}function e(){k.Dispose.fireHandlers();j.Dispose.removeHandler(e);n=null;j=null;i=null;k.RenderComplete=null;k.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){if(WA.Browser.isWebKit&&!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.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);};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;};