(function(a){if(!a.BonaPage){a.BonaPage={};BonaPage.isObjInited=false;BonaPage.isObjValid=false;a.WA=BonaPage;}})(window);(function(q,p){if(!p.Log){p.Log={};}var j=p.Log,g=false,f=false,l,k,o=false,c=false,b=1;j.add=a;j.enabled=c;j.show=n;j.hide=d;j.setUseConsole=m;j.init=e;function e(){if(c&&p.Device.isDesktop){if(!g&&l==null){i();}if(!f&&k==null){BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,h);}}}function m(r){o=r===true;}function i(){if(!o){l=q.open("","walogwindow","width=900,height=700,location=0,menubar=0,resizable=1,scrollbars=1,status=1,toolbar=0");if(l==null){alert("Log console is blocked. Please, allow pop-up windows.");}else{g=true;}}}function h(){k=p.topWindow.BonaPage.$("idLogPanelDivForDebugger");if(!k){k=p.topWindow.document.createElement("DIV");k.id="idLogPanelDivForDebugger";k.style.position="absolute";k.style.zIndex="3737";k.style.left="0px";k.style.top="0px";k.style.width="337px";k.style.height="400px";k.style.display="none";k.style.backgroundColor="white";if(p.Browser.isIE){k.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=97)";}else{k.style.opacity=parseFloat("0.73");k.style.MozOpacity=parseFloat("0.73");k.style.KhtmlOpacity=parseFloat("0.73");}p.topWindow.document.body.appendChild(k);}}function a(t,u){if(!c){return;}if(o&&q.console){q.console.log((b++)+". "+(t.indexOf("GLOBAL ERROR")>=0?"ERROR: ":"")+t+" : "+u);return;}if(l&&l.document){var s="id_"+new Date().getTime()+Math.floor(Math.random()*11);l.document.write('

=0?'style="color: red;"':"")+">"+(b++)+". "+t+" : "+u+"

");if(l.document.getElementById){var r=l.document.getElementById(s);r.scrollIntoView();}}}function n(v,s){s=s||{};var t,u,r=[];k=p.topWindow.BonaPage.$("idLogPanelDivForDebugger");if(s.left!=null){k.style.left=s.left+"px";}else{if(s.right!=null){k.style.right=s.right+"px";}}if(s.top!=null){k.style.top=s.top+"px";}else{if(s.bottom!=null){k.style.bottom=s.bottom+"px";}}if(s.width!=null){k.style.width=s.width+"px";}if(s.height!=null){k.style.height=s.height+"px";}if(v!=null){if(typeof(v)==="string"){r.push(v);}else{if(typeof(v)==="object"&&v.length!=null&&typeof(v.length)!=="function"){for(t=v.length;t--;){r.unshift(t+": "+v[t]+"
");}}else{for(t in v){r.push(t+": "+v[t]+"
");}}}k.innerHTML=r.join("");}if(k.style.display.toLowerCase()=="none"){k.style.display="block";}}function d(){k.style.display="none";}})(window,WA);(function(window,WA){if(!WA.Object){WA.Object=new WaObject();}function WaObject(args){args=args||{};var pThis=this,typeName="WA.Object";pThis.extend=extend;pThis.create=create;function extend(subType,superType){var prototype=object(superType.prototype);prototype.constructor=subType;subType.prototype=prototype;}function create(base){var i,len,strArgums="",argums,pBase;if(arguments[1]&&arguments[1].length){argums=arguments[1];}else{if(arguments[2]&&arguments[2].length){argums=arguments[2];}}if(argums){for(i=0,len=argums.length;i0;};a.EventHandlers.prototype.addHandler=function(e,c){c=c||{};c.handlerName=c.handlerName||null;c.period=c.period||null;var f=this.customHandlers,d="";if(typeof(e)!="function"){return;}var g;for(g=0;g=f.length){if(this.fired&&!c.isNoLazyFire&&c.period=="once"){e(this.sender,this.fired.args);return;}else{f.push({handler:e,handlerName:c.handlerName,period:c.period});}}if(this.fired&&!c.isNoLazyFire){e(this.sender,this.fired.args);}};a.EventHandlers.prototype.removeHandler=function(e,c){c=c||{};c.handlerName=c.handlerName||null;var f=this.customHandlers,d="";if(f&&f.length){var g;for(g=0;g0){throw new Error("call resetTests before usage");}}function h(){}function g(){if(i){return;}j.Dispose.fireHandlers();j.RenderComplete=null;j.Dispose=null;i=true;}h();}})(window,WA);(function(c,a){if(!a.WaTools){a.WaTools=b;}function b(){var i=this,j="WA.WaTools";i.Dispose=a.EventHandlers.createHandlers(i,{id:"Dispose"});i.applyEventModel=d;i.disposeEventModel=f;function d(n,p){var m;p=p||c;for(var o in n){if(!n.hasOwnProperty(o)){continue;}m=p.document.getElementById(o);if(m){for(var k in n[o]){if(!n[o].hasOwnProperty(k)){continue;}var l=k.toLowerCase();switch(l){case"onvaluechanged":i.PropertyWatcher.register(m,"value",n[o][k],{targetWindow:p});break;default:a.addHandler(m,l,n[o][k]);break;}}}m=null;}}function f(n,p){p=p||c;var m;for(var o in n){if(!n.hasOwnProperty(o)){continue;}m=p.document.getElementById(o);if(m){for(var k in n[o]){if(!n[o].hasOwnProperty(k)){continue;}var l=k.toLowerCase();switch(l){case"onvaluechanged":i.PropertyWatcher.unregister(m,{targetWindow:p});break;default:a.removeHandler(m,l,n[o][k]);break;}}}m=null;}p=null;}function h(k){}function g(){}function e(){i.Dispose.fireHandlers();}g();}})(window,WA);(function(d,b,a){if(!b.WaArray){b.WaArray=c;b.WaArray.TypeName="WA.WaArray";}function c(){var j=this,m=b.WaArray.TypeName;j.toString=function(){return m;};j.Dispose=b.Tools.EventHandlers.createHandlers(j,{id:"Dispose"});var i=false;j.first=g;j.where=n;j.select=k;j.sum=l;j.findFirst=f;function f(o,q,p){return o[o.indexOf(q,p)];}function g(p,r,q,o){var s,t;if(typeof(r)=="function"){for(s=0,t=p.length;s99?Math.round(B/10):B),t:A<12?"a":"p",tt:A<12?"am":"pm",T:A<12?"A":"P",TT:A<12?"AM":"PM",Z:J?"UTC":(String(w).match(q)||[""]).pop().replace(r,""),o:(G>0?"-":"+")+p(Math.floor(Math.abs(G)/60)*100+Math.abs(G)%60,4),S:["th","st","nd","rd"][u%10>3?0:(u%100-u%10!=10)*u%10]};return F.replace(s,function(y){return y in z?z[y]:y.slice(1,y.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={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],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"]};}function g(){m.Dispose.fireHandlers();l.Dispose.removeHandler(g);o=null;l=null;m.Dispose=null;}i();}})(window,WA);(function(d,b,a){if(!b.WaNumber){b.WaNumber=c;b.WaNumber.TypeName="WA.WaNumber";}function c(){var i=this,j=b.WaNumber.TypeName;i.toString=function(){return j;};i.Dispose=b.Tools.EventHandlers.createHandlers(i,{id:"Dispose"});var h=false;i.format=f;function f(n,p,r){p=p||0;r=r||",";var q=Math.abs(n).toFixed(p).toString(),k=q.indexOf("."),m=k>=0?k:q.length,o=m%3||3,l=(m-o)/3;while(l--){q=q.substr(0,o)+r+q.substr(o);o+=4;}return(n<0?"-":"")+q;}function g(){}function e(){if(h){return;}i.Dispose.fireHandlers();i.Dispose=null;h=true;}g();}})(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 l=this,m=b.WaString.TypeName;l.toString=function(){return m;};l.Dispose=b.Tools.EventHandlers.createHandlers(l,{id:"Dispose"});var k=false,e=b.WaString.DefaultCharsToTrim;l.gtrim=i;l.gltrim=g;l.grtrim=h;function i(p,n){n=n||e;var o=new RegExp("^["+n+"]*|["+n+"]*$","ig");return p.replace(o,"");}function g(p,n){n=n||e;var o=new RegExp("^["+n+"]*","ig");return p.replace(o,"");}function h(p,n){n=n||e;var o=new RegExp("["+n+"]*$","ig");return p.replace(o,"");}function j(){}function f(){if(k){return;}l.Dispose.fireHandlers();l.Dispose=null;k=true;}j();}})(window,WA);(function(d,b,a){if(!b.WaWebFormsValidator){b.WaWebFormsValidator=c;b.WaWebFormsValidator.TypeName="WA.WaWebFormsValidator";}function c(){var h=this,i=b.WaWebFormsValidator.TypeName;h.toString=function(){return i;};h.Dispose=b.Tools.EventHandlers.createHandlers(h,{id:"Dispose"});var g=false;h.validatePriceType=k;h.validatePriceTypeAllowZero=m;h.validatePriceTypeAllowNegatives=l;function k(o,n){n.IsValid=j(n.Value,false,false);return n.IsValid;}function m(o,n){n.IsValid=j(n.Value,true,false);return n.IsValid;}function l(o,n){n.IsValid=j(n.Value,true,true);return n.IsValid;}function j(y,o,n){var r=parseFloat("922337203685477.5807");var s=/^\s*-?(\d+\,?)*\.?\d*$/;var t=/^\s*\((\d+\,?)*\.?\d*\)$/;if(y.search(s)==-1&&y.search(t)==-1){return false;}var x,u,p;var v=-1,w=-1;x="";p=y;u=0;while(ur){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.formatString(M.amountTemplate,M.multiplierString,G);}else{G=c.formatString(M.wrongAmountTemplate,G);K=c.Price.format(J,M.currencySymbol,M.currencyCode);I=c.formatString(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(i,h){if(!h.Browser){h.Browser={};}if(!h.Device){h.Device={};}var g=navigator.userAgent,a=["","-webkit-","-moz-","-o-","-ms-",""],e={};h.Browser.isIE=(document.all&&i.clientInformation)?parseInt(i.clientInformation.userAgent.substr(i.clientInformation.userAgent.indexOf("MSIE ")+5,3)):0;h.Browser.isMSIE=(navigator.appName=="Microsoft Internet Explorer");h.Browser.isMSIE5=h.Browser.isMSIE&&(g.indexOf("MSIE 5")!=-1);h.Browser.isMSIE5_0=h.Browser.isMSIE&&(g.indexOf("MSIE 5.0")!=-1);h.Browser.isMSIE7=h.Browser.isMSIE&&(g.indexOf("MSIE 7")!=-1);h.Browser.isMSIE8=h.Browser.isMSIE&&(g.indexOf("MSIE 8")!=-1);h.Browser.isMSIE9=h.Browser.isMSIE&&(g.indexOf("MSIE 9")!=-1);h.Browser.isMSIE10=navigator.appVersion.indexOf("MSIE 10")!==-1;h.Browser.isMSIE11=(g.indexOf("Trident")!==-1&&g.indexOf("rv:11")!==-1);h.Browser.isSafari=g.indexOf("Safari")!=-1;h.Browser.isOpera=g.indexOf("Opera")!=-1;h.Browser.isGecko=g.indexOf("Gecko")!=-1&&!h.Browser.isSafari&&!h.Browser.isOpera;h.Browser.isWebKit=(g.indexOf("WebKit")!=-1&&i.devicePixelRatio)?true:false;h.Browser.matchWebKitVer=(h.Browser.isWebKit)?g.match(/[\s\S]*?(?:Version|Chrome)\/(\d+)\.?(\d*)\.?(\d*)[\s\S]*/i):null;h.Browser.webKitVer=(h.Browser.matchWebKitVer&&h.Browser.matchWebKitVer[1])?h.Browser.matchWebKitVer[1]:5;h.Browser.webKitVer1=(h.Browser.matchWebKitVer&&h.Browser.matchWebKitVer[2])?h.Browser.matchWebKitVer[2]:0;h.Browser.webKitVer2=(h.Browser.matchWebKitVer&&h.Browser.matchWebKitVer[3])?h.Browser.matchWebKitVer[3]:0;h.Browser.isWebKit=(h.Browser.isWebKit&&((g.indexOf("Version/")!=-1&&(h.Browser.webKitVer==4&&((h.Browser.webKitVer1==0&&h.Browser.webKitVer2>=4)||h.Browser.webKitVer1>0))||h.Browser.webKitVer>4)||(g.indexOf("Chrome/")!=-1&&h.Browser.webKitVer>=3)))?true:false;h.Browser.isWebKitSafari=(h.Browser.isWebKit&&g.indexOf("Version/")!=-1);h.Browser.isWebKitChrome=(h.Browser.isWebKit&&(g.indexOf("Chrome/")!=-1||g.indexOf("CriOS/")!=-1));h.Browser.isOnBeforeUnloadEnabled=(!h.Browser.isWebKit||(h.Browser.isWebKit&&((g.indexOf("Version/")!=-1&&h.Browser.webKitVer>=5)||h.Browser.webKitVer>=7)));h.Browser.isMac=g.indexOf("Mac")!=-1;h.Browser.isNS7=g.indexOf("Netscape/7")!=-1;h.Browser.isNS71=g.indexOf("Netscape/7.1")!=-1;h.Browser.isTouchEventsSupported=!!(("ontouchstart" in i)||(i.DocumentTouch&&document instanceof DocumentTouch)||(navigator.msPointerEnabled&&navigator.msMaxTouchPoints));if(/Firefox\/(\S+)/.test(g)){h.Browser.Version=RegExp["$1"];h.Browser.Firefox=parseFloat(h.Browser.Version);}h.Browser.isCssStyleSupported=b;h.Browser.hasWorkingPointerEvents=h.Browser.isCssStyleSupported("pointer-events")&&!h.Browser.isIE;h.Browser.pointerEventsCursorFixHalfWidth=4;h.Browser.pointerEventsCursorFixOffset=h.Browser.pointerEventsCursorFixHalfWidth+1;h.Browser.dragDropEvent={eStart:"mousedown",eMove:"mousemove",eEnd:"mouseup"};function c(){var l=i.navigator.userAgent.toLowerCase(),j=h.Device,m;j.isIPhone=(l.indexOf("iphone")!==-1);j.isIPad=(l.indexOf("ipad")!==-1);j.isIPod=(l.indexOf("ipod")!==-1);j.isIOS=j.isIPhone||j.isIPad||j.isIPod;if(j.isIOS){m=l.match(/os\s+(\d+)_(\d+)(?:_(\d+))?\s+like\s+mac\s+os/i);if(m&&m.length>3){j.iOSVersion=[m[1],m[2],(m[3]||0)];}else{j.iOSVersion=[8,1,0];}}j.isAndroid=(l.indexOf("android")!==-1);j.isAndroidPhone=j.isAndroid&&(l.indexOf("mobile")!==-1);j.isaAndroidTablet=j.isAndroid&&(l.indexOf("mobile")===-1);j.isBlackberry=(l.indexOf("blackberry")!==-1)&&(l.indexOf("bb10")!==-1)&&(l.indexOf("rim")!==-1);j.isBlackberryPhone=j.isBlackberry&&(l.indexOf("tablet")===-1);j.isBlackberryTablet=j.isBlackberry&&(l.indexOf("tablet")!==-1);j.isWindows=(l.indexOf("windows")!==-1);j.isWindowsPhone=j.isWindows&&(l.indexOf("phone")!==-1);j.isWindowsTablet=j.isWindows&&((l.indexOf("touch")!==-1)&&!j.isWindowsPhone);j.isFFOS=((l.indexOf("(mobile;")!==-1)||(l.indexOf("(tablet;")!==-1))&&(l.indexOf("; rv:")!==-1);j.isFFOSPhone=j.isFFOS&&(l.indexOf("mobile")!==-1);j.isFFOSTablet=j.isFFOS&&(l.indexOf("tablet")!==-1);j.isMeeGo=(l.indexOf("meego")!==-1);j.isCordova=i.cordova&&location.protocol==="file:";j.isNodeWebkit=typeof(i.process)==="object";j.isPhone=j.isIPhone||j.isIPod||j.isAndroid||j.isBlackberryPhone||j.isWindowsPhone||j.isFFOSPhone||j.isMeeGo;j.isTablet=j.isIPad||j.isaAndroidTablet||j.isBlackberryTablet||j.isWindowsTablet||j.isFFOSTablet;j.isMobile=j.isPhone||j.isTablet;j.isDesktop=!j.isMobile;j.isPortrait=("innerWidth" in i&&"innerHeight" in i)?((i.innerHeight/i.innerWidth)>1):true;j.isLandscape=!j.isPortrait;j.isSupportsOrientation=("onorientationchange" in i);j.isOrientationEvent=(j.isSupportsOrientation?"orientationchange":"resize");j.isTouchEventsSupported=h.Browser.isTouchEventsSupported;function k(){var o=h.getWindowSizes();h.Device.isPortrait=((o.clientHeight/o.clientWidth)>1);h.Device.isLandscape=!h.Device.isPortrait;h.addHandler(i,h.Device.isOrientationEvent,k);}function n(){if(h.isObjValid){h.addPageStateHandler(h.PAGE_PARSED,k);}else{setTimeout(n,50);}}n();}c();function b(o){o=o.toLowerCase();if(e.hasOwnProperty(o)){return e[o];}var k=document.createElement("div"),j=document.documentElement;switch(o){case"pointer-events":if(!("pointerEvents" in k.style)){e[o]=false;break;}k.style.pointerEvents="auto";k.style.pointerEvents="x";j.appendChild(k);e[o]=!(i.getComputedStyle&&i.getComputedStyle(k,"").pointerEvents==="auto");j.removeChild(k);break;case"gradient":var l="background-image:",m="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";k.style.cssText=(l+"-webkit- ".split(" ").join(m+l)+a.join(n+l)).slice(0,-l.length);e[o]=k.style.backgroundImage.indexOf("gradient")!=-1;break;default:k.style.cssText=a.join(o+";");e[o]=f(k,o);break;}return e[o];}function f(j,n){var l=a.join(n+" "),k,m;l=l.replace(/^-ms-/,"ms-");l=l.replace(/-([\da-z])/gi,d);l=l.split(" ");for(k=0,m=l.length-2;k=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;r=522)){return cM.contains(cL);}else{if(typeof cM.compareDocumentPosition=="function"){return !!(cM.compareDocumentPosition(cL)&16);}else{var cK=cL.parentNode;do{if(cK===cM){return true;}else{cK=cK.parentNode;}}while(cK!==null);return false;}}};var aP=function(cL,cK){cK=cK||{};var cN,cU,cO,cT,cQ=(cK.idPrefix!=null)?cK.idPrefix:"id",cP=(cK.idPostfix!=null)?cK.idPostfix:"id",cZ,cW,cY,cV,c0=cK.structure||{},cR=cK.isParseClasses||false,cS=cK.isSetLevel||false,cM=cL.getElementsByTagName("*");if(!("parseTags" in c0)){c0.parseTags={};}if(cR&&!("parseClasses" in c0)){c0.parseClasses={};}for(cN=cM.length;cN--;){cO=cM[cN].id;if((cQ!=null&&cO.indexOf(cQ)==0)||(cP!=null&&cO.indexOf(cP)==cO.length-cP.length)){cT=cO.slice(cQ.length,cQ.length+1).toLowerCase()+cO.slice(cQ.length+1,-1-cP.length);c0[cT]=cM[cN];}cZ=cM[cN].getAttribute("parseTags",0);if(cZ){cW=cZ.split(/\s+/);for(cU=cW.length;cU--;){if(!(cW[cU] in c0.parseTags)){c0.parseTags[cW[cU]]=[];}c0.parseTags[cW[cU]].push(cM[cN]);}}if(cR){cY=cM[cN].getAttribute("class",0);if(cY){cV=cY.split(/\s+/);for(cU=cV.length;cU--;){if(!(cV[cU] in c0.parseClasses)){c0.parseClasses[cV[cU]]=[];}c0.parseClasses[cV[cU]].push(cM[cN]);}}}}if(cS){cL.setAttribute("nodeLevel",0,0);if(cL.firstChild){cX(cL.firstChild,1);}}function cX(c1,c2){while(c1){while(c1&&c1.nodeType!==1){c1=c1.nextSibling;}if(c1){c1.setAttribute("nodeLevel",c2,0);if(c1.firstChild){cX(c1.firstChild,c2+1);}c1=c1.nextSibling;}}}return c0;};function bS(cL,cK){if(!cL){return{x:0,y:0,root:null};}var cO=cL.offsetLeft||0,cP=cL.offsetTop||0,cM=cL.offsetParent,cK=cK||null,cN=cL;while(cM&&cM!==cK){cO+=cM.offsetLeft;cP+=cM.offsetTop;cN=cM;cM=cM.offsetParent;}return{x:cO,y:cP,root:cN};}var ai=function(cN){cN=cN||cE;var cK=0,cM=null,cL;if(!cN.document){return 0;}if(b1){if(cN.document.documentElement.clientWidth){cK=cN.document.documentElement.clientWidth;}else{cK=cN.document.body.clientWidth;if(at()>cN.document.body.clientHeight||Q(b("HTML",null,cN)[0],"overflowY")==="scroll"){cK-=bR();}}}else{cL=!!(cN.document.documentElement);if(cB.Device.isMobile){if(cL){cM=cN.document.documentElement.style.cssFloat;cN.document.documentElement.style.cssFloat="left";}else{cM=cN.document.body.style.cssFloat;cN.document.body.style.cssFloat="left";}}cK=(document.compatMode==="CSS1Compat"&&cB.Device.isDesktop)?(cL?cN.document.documentElement.clientWidth:0):cN.document.body.clientWidth;if(cM!==null){if(cL){cN.document.documentElement.style.cssFloat=cM;}else{cN.document.body.style.cssFloat=cM;}}}return cK;},ah=function(cL){cL=cL||cE;var cK=0;if(!cL.document){return 0;}if(b1){if(cL.document.documentElement.clientHeight){cK=cL.document.documentElement.clientHeight;}else{cK=cL.document.body.clientHeight;if(au()>cL.document.body.clientWidth||Q(b("HTML",null,cL)[0],"overflowX")==="scroll"){cK-=bR();}}}else{cK=(cL.document.compatMode==="CSS1Compat"&&cB.Device.isDesktop)?(cL.document.documentElement?cL.document.documentElement.clientHeight:0):cL.document.body.clientHeight;}return cK;},a2=function(cL){try{if(typeof(cE.pageYOffset)=="number"){cE.pageYOffset=cL;}else{if(document.documentElement&&document.documentElement.scrollTop){document.documentElement.scrollTop=cL;}else{if(document.body&&document.body.scrollTop){document.body.scrollTop=cL;}}}}catch(cK){}},au=function(){return document.body.scrollWidth;},at=function(){return document.body.scrollHeight;},ac=function(cL,cM){var cK=cL.parentNode;while(cK&&cK.nodeName.toUpperCase()!=cM.toUpperCase()){cK=cK.parentNode;}return(cK&&cK.nodeName.toUpperCase()==cM.toUpperCase())?cK:null;},aa=function(cL,cM){var cK=cL.firstChild;while(cK&&cK.nodeName.toUpperCase()!=cM.toUpperCase()){cK=cK.nextSibling;}return(cK&&cK.nodeName.toUpperCase()==cM.toUpperCase())?cK:null;},ak=function(cL,cN){var cM=(cN)?("|"+(cN.split(/\,/).join("|"))+"|").toUpperCase():"";var cK=cL.nextSibling;while(cK&&cM.indexOf("|"+cK.nodeName.toUpperCase()+"|")==-1&&(cM||cK.nodeType!=1)){cK=cK.nextSibling;}return(cK&&(cM.indexOf("|"+cK.nodeName.toUpperCase()+"|")!=-1||(!cM&&cK.nodeType==1)))?cK:null;},ao=function(cL,cN){var cM=(cN)?("|"+(cN.split(/\,/).join("|"))+"|").toUpperCase():"";var cK=cL.previousSibling;while(cK&&cM.indexOf("|"+cK.nodeName.toUpperCase()+"|")==-1&&(cM||cK.nodeType!=1)){cK=cK.previousSibling;}return(cK&&(cM.indexOf("|"+cK.nodeName.toUpperCase()+"|")!=-1||(!cM&&cK.nodeType==1)))?cK:null;},U=function(cO,cT,cK){if(!cO){return({X:0,Y:0,left:0,top:0,right:0,bottom:0,width:0,height:0,deltaScrollX:0,deltaScrollY:0});}cT=cT||cE;cK=cK||{};var cQ,cS,cP,cM,cN,cL=cK.container||null,cR=bS(cO,cL),cU=cR.x,cV=cR.y;cR=null;cO.X=cU;cO.Y=cV;cQ=(cO.nodeName.toUpperCase()=="BODY");cS=cQ?ai(cT)+bR():cO.offsetWidth;cP=cQ?ah(cT)+bR():cO.offsetHeight;cM=cU-(cL?cL.scrollLeft:cB.getScrollLeft(cT));cN=cV-(cL?cL.scrollTop:cB.getScrollTop(cT));return({X:cU,Y:cV,left:cU,top:cV,right:cU+cS,bottom:cV+cP,width:cS,height:cP,deltaScrollX:cM,deltaScrollY:cN});},P=function(cM,cR,cK){cR=cR||cE;cK=cK||{};var cO,cQ,cN,cL=cK.container||null,cP=bS(cM,cL),cS=cP.x-cP.root.scrollLeft,cT=cP.y-cP.root.scrollTop;cP=null;cM.X=cS;cM.Y=cT;cO=(cM.nodeName.toUpperCase()=="BODY");cQ=cO?ai(cR)+bR():cM.offsetWidth;cN=cO?ah(cR)+bR():cM.offsetHeight;return{X:cS,Y:cT,left:cS,top:cT,right:cS+cQ,bottom:cT+cN,width:cQ,height:cN};},I=function(cT,cU,cK){cU=cU||cE;cK=cK||{};var cR=U(cT,cU),cQ,cO,cS,cP,cN;cR.viewport=aB(cB.topWindow);while(cU!=cU.parent){try{cO=cU.parent.document.getElementsByTagName("IFRAME");}catch(cL){break;}cS=cO.length;cN=null;for(cQ=0;cQ1){return cK[1];}return null;},a1=function(cK,cL){if(b1&&b1<9){cK.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+cL+")";}else{cK.style.MozOpacity=cL/100;cK.style.KhtmlOpacity=cL/100;cK.style.opacity=cL/100;}},ae=function(cK){var cL,cM=new Object();for(cL=0;cL1){cK="?"+cK.substr(1);cL=cN.indexOf(cK);if(cL<0){cK="&"+cK.substr(1);cL=cN.indexOf(cK);}}cO.location.replace((cL<0)?cN:cN.substr(0,cL));},aN=function(cL,cK){var cM=cK||cE;cM.location.replace(cL);},ay=function(){return Math.floor(Math.random()*(new Date()).getTime()*10000);},aS=function(cK){if(!cK&&cE.event){cK=cE.event;}if(cK){var cL=(b1)?cK.keyCode:cK.which;if(cL==13){if(b1){cK.cancelBubble=true;cK.returnValue=false;}else{cK.stopPropagation();cK.preventDefault();}return false;}}},az=function(cL){var cM=cL||cE;if(!cM.location){return"";}var cK=(/#([^#]+)$/gi).exec(cM.location.toString());return cK?cK[1]:"";},a4=function(cN,cO){var cP=cO||cE;if(!cP.location){return"";}var cL=(/#([^#]*)$/gi).exec(cP.location.toString());var cK=cP.location.toString();var cM=cL?cK.replace(/#([^#]+)$/gi,"#"+cN):cK+"#"+cN;cP.location.replace(cM);},A=function(cK){if(!cK){return"";}return encodeURIComponent(cK).replace(/(?:\!|\*|\(|\)|\')/g,function(cL){return"%"+cL.charCodeAt(0).toString(16);});},f=function(cL,cK,cM){if(cL.indexOf("?")==-1){cL+="?";}else{cL+="&";}cL+=encodeURIComponent(cK)+"="+encodeURIComponent(cM);return cL;},o=function(cK){cE.location=cK;},aF=function(cK){c(cK,"hover");},aD=function(cK){aU(cK,"hover");},aY=function(cM,cK){if(!cM){throw new Error("scrollToElement: element is invalid.");}cK=cK||{};var cP=cK.win||cE,cN=cK.offset&&!isNaN(parseInt(cK.offset))?parseInt(cK.offset):0,cO=cK.scrollableArea||null,cL;if(typeof(cM)=="string"){cM=a(cM,cP);}if(!cM){throw new Error("scrollToElement: element is invalid.");}if(cO){if(typeof(cO)=="string"){cO=a(cO,cP);}if(!cO){throw new Error("scrollToElement: scrollableArea is invalid.");}cL=U(cM,cP,{container:cO});cO.scrollTop=cL.Y+cN;}else{cL=U(cM,cP);cP.scrollTo(cB.getScrollLeft(cP),cL.Y+cN);}},ap=function(cK){if(cK.indexOf("?")>=0){return aq(cK.substr(cK.indexOf("?")+1,cK.length));}return null;},aq=function(cP){var cQ=[],cM,cK=/\+/g,cO=/([^&=]+)=?([^&]*)/g,cL=function(cR){return decodeURIComponent(cR.replace(cK," "));},cN=cP;while(cM=cO.exec(cN)){cQ.push(cL(cM[1]));}return cQ;},aQ=function(cP){var cQ=[],cM,cK=/\+/g,cO=/([^&=]+)=?([^&]*)/g,cL=function(cR){return decodeURIComponent(cR.replace(cK," "));},cN=cP;while(cM=cO.exec(cN)){cQ[cL(cM[1])]=cL(cM[2]);}return cQ;},aR=function(cP,cQ){var cQ=cQ===true,cL=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],cN={name:"queryKeys",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},cM={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},cR={},cK,cO;cO=cM[cQ?"strict":"loose"].exec(cP);for(cK=cL.length;cK--;){cR[cL[cK]]=cO[cK]?decodeURIComponent(cO[cK]):"";}cR[cN.name]={};cR.query.replace(cN.parser,function(cS,cT,cU){if(cT){cR[cN.name][cT]=cU;}});return cR;},aA=function(cO){var cL="",cK,cN=cO.queryKeys||{},cM=[];for(cK in cN){if(cN.hasOwnProperty(cK)){cM.push(cK+"="+encodeURIComponent(cN[cK]));}}cO.query=cM.join("&");return cO.protocol+"://"+cO.user+((cO.user&&cO.password)?":"+cO.password:"")+(cO.user?"@":"")+cO.host+cO.path+(cO.query?"?"+cO.query:"")+(cO.anchor?"#"+cO.anchor:"");},i=function(){if(!cE||!cE.document||!cE.document.body){return false;}BonaPage.addHandler(cE.document.body,"keypress",function(cK){try{if(!cK&&cE.event){cK=cE.event;}if(!cK){return true;}var cM=(b1)?cK.srcElement:cK.target;if(!cM){return true;}if(cM.nodeName.toLowerCase()=="textarea"){return true;}return cE.BonaPage.stopEnter(cK);}catch(cL){return true;}});},C=function(cK,cL){var cM,cN;for(cM=0,cN=cK.length;cM=0||cN.indexOf(cO.toLowerCase())>=0)){return;}return false;}},F=function(cO){var cL=encodeURIComponent(cO)+"=",cM=document.cookie.indexOf(cL),cN=null;if(cM>-1){var cK=document.cookie.indexOf(";",cM);if(cK==-1){cK=document.cookie.length;}cN=decodeURIComponent(document.cookie.substring(cM+cL.length,cK));}return cN;},a0=function(cN,cQ,cM,cO,cL,cP){var cK=encodeURIComponent(cN)+"="+encodeURIComponent(cQ);if(cM instanceof Date){cK+="; expires="+cM.toGMTString();}if(cO){cK+="; path="+cO;}if(cL){cK+="; domain="+cL;}if(cP){cK+="; secure";}document.cookie=cK;},bd=function(cL,cM,cK,cN){a0(cL,"deleted",new Date("10/10/2005"),(cM||"/"),cK,cN);},a5=function(cL,cK){if(cL&&cK!=null){cL.name=cK;}else{throw new Error("Invalid window name");}},aZ=function(cL,cK){if(cL){cK=(cK||"")+"_"+cF++;a5(cL,cK);}else{throw new Error("Invalid window name");}},aJ=function(cK){return Object.prototype.toString.call(cK)=="[object Boolean]";},ax=function(cK){return({}).toString.call(cK).match(/\s([a-zA-Z]+)/)[1].toLowerCase();},bc=function(cK,cL){return parseFloat(cK.toFixed(cL));},av=function(cK,cN){cN=cN||cE;cK=(ax(cK)=="string")?cB.$(cK,cN):cK;if(!cK){return 0;}if("selectionStart" in cK){return cK.selectionStart;}if(cN.document.selection){cK.focus();var cL=cN.document.selection.createRange();var cM=cN.document.selection.createRange().text.length;cL.moveStart("character",-cK.value.length);return cL.text.length-cM;}},O=function(cO,cN){cN=cN||cE;var cL=[],cM,cK;cM=cN.document.evaluate(cO,cN.document,null,XPathResult.ANY_TYPE,null);while(true){cK=cM.iterateNext();if(cK==null){break;}cL.push(cK);}return cL;},a3=function(cK,cL,cN){cN=cN||cE;cK=(ax(cK)=="string")?cB.$(cK,cN):cK;if(!cK){return;}if(cK.createTextRange){var cM=cK.createTextRange();cM.collapse(true);cM.moveEnd("character",cL);cM.moveStart("character",cL);cM.select();return;}if(cK.setSelectionRange){cK.setSelectionRange(cL,cL);}},aE=function(cK,cM){var cL;for(cL=0;cL>1);c2=cP+(c1>>1);return{left:cP,right:cU,top:cY,bottom:cK,height:cN,width:c1,heightCenter:cO,widthCenter:c2,viewport:cZ};}else{var cR=bS(cL),c3=cR.x,c4=cR.y;cP=c3-cV;cU=c3+cL.offsetWidth-cV;cY=c4-cW;cK=c4+cL.offsetHeight-cW;cN=cK-cY;c1=cU-cP;cO=cY+(cN>>1);c2=cP+(c1>>1);return{left:cP,right:cU,top:cY,bottom:cK,height:cN,width:c1,heightCenter:cO,widthCenter:c2,viewport:cZ};}};var aB=function(cM){cM=cM||cE;var cL=cB.getScrollTop(cM);var cK=cB.getScrollLeft(cM);if(cM.document.compatMode=="BackCompat"){return{width:cM.document.body.clientWidth,height:cM.document.body.clientHeight,scrollTop:cL,scrollLeft:cK};}else{return{width:cM.document.documentElement.clientWidth,height:cM.document.documentElement.clientHeight,scrollTop:cL,scrollLeft:cK};}};var aL=function(cK,cM){if(!cL(cK.topLeft,cM)){cK.isVisible=false;return false;}if(!cL(cK.bottomRight,cM)){cK.isVisible=false;return false;}cK.isVisible=true;return true;function cL(cN,cO){if((typeof cN.x!="number")||typeof cN.y!="number"){throw new Error("Invalid point parametes");}if(cN.x<0||cN.x>(cO.width+cO.scrollLeft)||cN.x(cO.height+cO.scrollTop)||cN.y>1),y:cL.top-cK.offsetHeight},bottomRight:{x:cL.left+((cL.width+cK.offsetWidth)>>1),y:cL.top}};},bottomOutsideLeftCenter:function(cL,cK){return{name:"bottomOutsideLeftCenter",topLeft:{x:cL.left+((cL.width-cK.offsetWidth)>>1),y:cL.bottom},bottomRight:{x:cL.left+((cL.width+cK.offsetWidth)>>1),y:cL.bottom+cK.offsetHeight}};},leftCenterInside:function(cL,cK){return{name:"leftCenterInside",topLeft:{x:cL.left,y:Math.max(cL.viewport.scrollTop,(cL.heightCenter-(cK.offsetHeight>>1)))},bottomRight:{x:cL.left+cK.offsetWidth,y:Math.max((cL.viewport.scrollTop+cK.offsetHeight),(cL.heightCenter+(cK.offsetHeight>>1)))}};},topViewportLeft:function(cL,cK){return{name:"topViewportLeft",topLeft:{x:Math.max(cL.viewport.scrollLeft,cL.left),y:cL.top-cK.offsetHeight},bottomRight:{x:Math.max(cL.viewport.scrollLeft,cL.left)+cK.offsetWidth,y:cL.top}};},topViewportRight:function(cL,cK){return{name:"topViewportRight",topLeft:{x:Math.min(cL.right-cK.offsetWidth,(cL.viewport.width+cL.viewport.scrollLeft)-cK.offsetWidth),y:cL.top-cK.offsetHeight},bottomRight:{x:Math.min(cL.right,(cL.viewport.width+cL.viewport.scrollLeft)),y:cL.top}};},bottomViewportLeft:function(cL,cK){return{name:"bottomViewportLeft",topLeft:{x:Math.max(cL.viewport.scrollLeft,cL.left),y:cL.bottom},bottomRight:{x:Math.max(cL.viewport.scrollLeft,cL.left)+cK.offsetWidth,y:cL.bottom+cK.offsetHeight}};},bottomViewportRight:function(cL,cK){return{name:"bottomViewportRight",topLeft:{x:cL.viewport.width-cK.offsetWidth,y:cL.bottom},bottomRight:{x:cL.viewport.width,y:cL.bottom+cK.offsetHeight}};},rightViewportTop:function(cL,cK){return{name:"rightViewportTop",topLeft:{x:cL.right,y:Math.max(cL.top,cL.viewport.scrollTop)},bottomRight:{x:cL.right+cK.offsetWidth,y:Math.max(cL.top,cL.viewport.scrollTop)+cK.offsetHeight}};},leftViewportTop:function(cL,cK){return{name:"leftViewportTop",topLeft:{x:cL.left-cK.offsetWidth,y:Math.max(cL.top,cL.viewport.scrollTop)},bottomRight:{x:cL.left,y:Math.max(cL.top,cL.viewport.scrollTop)+cK.offsetHeight}};}};var n=function(cL){var cK=function(){var cM=new TopCacheProvider();cM.Clear(cL);};cK();},aU=function(cM,cL){if(!cM){return;}if(cM.classList){cM.classList.remove(cL);return;}else{var cK=cM.className.split(/\s+/);var cP=-1;for(var cN=0,cO=cK.length;cN=0;},r=function(cP,cL,cK){cK=cK||"0";var cM,cO=cP,cN=(cO?0:1),cQ="";while(cO>0){cO=Math.floor(cO/10);cN++;}if(cL>cN){for(cM=cL-cN;cM--;){cQ+=cK;}}return(cQ+cP);};var aC=function(cL){cL=cL||cE;var cK={scrollWidth:0,scrollHeight:0,clientWidth:0,clientHeight:0,innerWidth:0,innerHeight:0,scrollLeft:0,scrollTop:0};if(cL.document&&cL.document.documentElement){cK.clientWidth=ai()||0;cK.clientHeight=ah()||0;cK.scrollWidth=Math.max((document.documentElement.scrollWidth||0),cK.clientWidth);cK.scrollHeight=Math.max((document.documentElement.scrollHeight||0),cK.clientHeight);cK.innerWidth=cL.innerWidth||cL.document.documentElement.offsetWidth||0;cK.innerHeight=cL.innerHeight||cL.document.documentElement.offsetHeight||0;cK.scrollLeft=cB.getScrollLeft(cL);cK.scrollTop=cB.getScrollTop(cL);}return cK;};var bB="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 b7=["January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var b8={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 cD=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var cJ="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var cF;if(!cE.BonaPage||!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=co;BonaPage.addPageStateHandler=bj;BonaPage.runPageStateHandlers=cj;BonaPage.setPageStateLoaded=cp;BonaPage.setPageStateUnloading=cs;BonaPage.setPageStateUnloaded=cr;BonaPage.getLocationHref=function(){return cH;};BonaPage.getLocationDomain=function(){return cG;};BonaPage.$=a;BonaPage.$c=k;BonaPage.$$=b;BonaPage.getTypeString=ax;BonaPage.$bonaObject=j;BonaPage.isTopWindow=b2;BonaPage.contentWindow=bs;BonaPage.getContentWindow=E;BonaPage.reloadCurrentPage=aT;BonaPage.loadPage=aN;BonaPage.getUniqueIdentifier=ay;BonaPage.getGUID=ay;BonaPage.getElementsByClass=N;BonaPage.getFirstElementByClass=ab;BonaPage.getEvent=V;BonaPage.getEventTarget=Z;BonaPage.getRelatedTarget=ar;BonaPage.eventTagsAttribute="eventTags";BonaPage.eventHoverTag="hoverTags";BonaPage.getEventTags=X;BonaPage.getDatasetAttrName=H;BonaPage.getDataset=G;BonaPage.getAttrByName=D;BonaPage.getEventTagsAttribute=Y;BonaPage.stopEvent=a7;BonaPage.stopEventDefault=a9;BonaPage.stopEventBubbling=a8;BonaPage.stopEnter=a6;BonaPage.getFunctionKeyByKeyCode=ad;BonaPage.validateChar=be;BonaPage.keyValidator=aM;BonaPage.textValidator=ba;BonaPage.getEventMouseCoords=W;BonaPage.getMouseButton=aj;BonaPage.addHandler=d;BonaPage.removeHandler=aV;BonaPage.addHandlers=e;BonaPage.removeHandlers=aW;BonaPage.addTagHandler=h;BonaPage.removeTagHandler=aX;BonaPage.getInnerWidth=ai;BonaPage.getInnerHeight=ah;BonaPage.getWindowSizes=aC;BonaPage.setScrollTop=a2;BonaPage.getScrollWidth=au;BonaPage.getScrollHeight=at;BonaPage.getFirstChildByTagName=aa;BonaPage.getFirstParentByTagName=ac;BonaPage.getNextSiblingByTagName=ak;BonaPage.getPreviousSiblingByTagName=ao;BonaPage.getElementXY=U;BonaPage.getElementScreenXY=P;BonaPage.getElementAbsXY=I;BonaPage.getElementRelXY=M;BonaPage.getElementStyle=Q;BonaPage.getElementStyleStrictInt=T;BonaPage.getElementStyleInt=R;BonaPage.getElementStyles=S;BonaPage.getElementRealBackground=K;BonaPage.getElementBoxStyles=J;BonaPage.convertColorToHex=x;BonaPage.convertColorHexToRGB=w;BonaPage.parseBackgroundUrl=aO;BonaPage.setElementOpacity=a1;BonaPage.preventPressEnter=aS;BonaPage.getUrlFragment=az;BonaPage.setUrlFragment=a4;BonaPage.getTagName=aw;BonaPage.getNodeName=al;BonaPage.isDOMElement=aK;BonaPage.parseHTML=aP;BonaPage.addStyle=g;BonaPage.containsDomNode=t;BonaPage.getScrollBarWidth=bR;BonaPage.updateValidators=cz;BonaPage.isValidatorValid=b3;BonaPage.encodeHtml=bF;BonaPage.decodeHtml=bA;BonaPage.escapeRegexp=bH;BonaPage.encodeUriEx=A;BonaPage.addQueryStringArg=f;BonaPage.getQueryKeysArrayFromUrlString=ap;BonaPage.parseQueryString=aQ;BonaPage.parseUrl=aR;BonaPage.getUrlFromObject=aA;BonaPage.formatString=bM;BonaPage.formatStringNamed=bN;BonaPage.capitaliseFirstLetter=l;BonaPage.getContactDisplayName=bQ;BonaPage.createRequest=bx;BonaPage.webRequest=cC;BonaPage.goToTopWindow=bT;BonaPage.clientRedirect=o;BonaPage.scrollToElement=aY;BonaPage.foreach=C;BonaPage.convertArrayToDictionary=v;BonaPage.throttle=bb;BonaPage.disableSelect=z;BonaPage.clearThrottle=m;BonaPage.getCookie=F;BonaPage.setCookie=a0;BonaPage.unsetCookie=bd;BonaPage.getElementRect=L;BonaPage.getViewport=aB;BonaPage.isInViewport=aL;BonaPage.contextPositions=u;BonaPage.clearTopCache=n;BonaPage.removeClassName=aU;BonaPage.addClassName=c;BonaPage.containsClassName=s;BonaPage.complementNumber=r;BonaPage.setWindowName=a5;BonaPage.setAutoWindowName=aZ;BonaPage.isBoolean=aJ;BonaPage.getTypeString=ax;BonaPage.getSelectionStartIndex=av;BonaPage.setSelectionStartIndex=a3;BonaPage.hasArrayValue=aE;BonaPage.getElementsByXPath=O;BonaPage.startFileDownload=function(cK,cL){cB.Tools.FileDownload.startDownload(cK,cL);};BonaPage.insertAdjacentHTML=aH;BonaPage.insertAdjacentHtmlAsDomNodes=aI;BonaPage.showPageShadingContainer=cv;BonaPage.hidePageShadingContainer=bU;BonaPage.setSizeIFrameInModule=ct;BonaPage.getHashFromArray=ae;BonaPage.getHashFromArrays=ag;BonaPage.getHashFromArrayObjects=af;BonaPage.clearSelectionInRadioButtonsGroup=bq;BonaPage.getDomainList=function(){return bB;};BonaPage.getZGif=function(){return cJ;};BonaPage.Objects={copy:y,extend:B,compare:q,getObjectByProperty:am,getObjectsByProperty:an};BonaPage.Utils={};BonaPage.Utils.wordWrap=cI;BonaPage.Utils.getXY=bS;BonaPage.Utils.getAbsoluteXY=bO;BonaPage.Utils.getHashFromArray=ae;BonaPage.Utils.getHashFromArrays=ag;BonaPage.Utils.getHashFromArrayObjects=af;BonaPage.Utils.dynamicMenuDisable=bD;BonaPage.Utils.fixPNG=bL;BonaPage.Utils.addLabelsToLoginBox=bi;BonaPage.Utils.fixGeckoTables=bK;BonaPage.Utils.getAttrEx=bP;BonaPage.Utils.highLightElement=aF;BonaPage.Utils.grayOutElement=aD;BonaPage.Utils.bindEnterKeyDefusionFunction=i;BonaPage.Utils.toFixed=bc;BonaPage.PageParsed=function(cK,cM,cL){cM=cM||cE;cL=cL||BonaPage.HANDLERTYPE_ALWAYS,BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,cK,cL,{window:cM});};BonaPage.PageLoaded=function(cK){BonaPage.addPageStateHandler(BonaPage.PAGE_LOADED,cK);};BonaPage.PageUnLoaded=function(cK,cL){cL=cL||cE;BonaPage.addPageStateHandler(BonaPage.PAGE_UNLOADED,cK,BonaPage.HANDLERTYPE_ONCE,{window:cL});};BonaPage.PageUnLoading=function(cK){BonaPage.addPageStateHandler(BonaPage.PAGE_UNLOADING,cK);};cF=0;BonaPage.isObjInited=true;co(BonaPage.PAGE_LOADING);}function bY(cK){if(cB.topWindow&&!cB.topWindow.name){cB.setWindowName(cB.topWindow,"nmWATopWindow");}cK.BonaPage.InternalPageType={};if(cK.bonaPage_InternalPageType){cK.BonaPage.InternalPageType.isWebPage=(cK.bonaPage_InternalPageType.isWebPage)?true:false;cK.BonaPage.InternalPageType.isSystemPage=(cK.bonaPage_InternalPageType.isSystemPage)?true:false;cK.BonaPage.InternalPageType.isErrorPage=(cK.bonaPage_InternalPageType.isErrorPage)?true:false;cK.BonaPage.InternalPageType.isWebPageTemplate=(cK.bonaPage_pageTemplate&&cK.bonaPage_pageTemplate.id)?true:false;cK.BonaPage.InternalPageType.isAdminPage=(cK.bonaPage_InternalPageType.isAdminPage)?true:false;cK.BonaPage.InternalPageType.isDialogPage=(cK.bonaPage_InternalPageType.isDialogPage)?true:false;cK.BonaPage.InternalPageType.isError404Page=(cK.bonaPage_InternalPageType.isError404Page)?true:false;cK.BonaPage.InternalPageType.isUndefinedPage=(cK.bonaPage_InternalPageType.isUndefinedPage)?true:false;}else{cK.BonaPage.InternalPageType.isWebPage=false;cK.BonaPage.InternalPageType.isAdminPage=false;cK.BonaPage.InternalPageType.isDialogPage=false;cK.BonaPage.InternalPageType.isError404Page=false;cK.BonaPage.InternalPageType.isUndefinedPage=true;}cK.BonaPage.PageView={};if(cK.bonaPage_PageView){cK.BonaPage.PageView.isAnonymousView=(cK.bonaPage_PageView.isAnonymousView)?true:false;cK.BonaPage.PageView.isMemberView=(cK.bonaPage_PageView.isMemberView)?true:false;cK.BonaPage.PageView.isAdminView=(cK.bonaPage_PageView.isAdminView)?true:false;}else{cK.BonaPage.PageView.isAnonymousView=true;cK.BonaPage.PageView.isMemberView=false;cK.BonaPage.PageView.isAdminView=false;}cK.BonaPage.isWidgetMode=(cK.WidgetMode&&cK.WidgetMode==1)?true:false;cK.BonaPage.isWidgetMode=(!cK.BonaPage.isWidgetMode&&b5)?b5:cK.BonaPage.isWidgetMode;cK.BonaPage.isEmulatedMode=false;if(cK.bonaPage_StatRes){cK.BonaPage.statRes=bonaPage_StatRes;cK.BonaPage.adminPath=bonaPage_StatRes+"Admin/";cK.BonaPage.adminResPath=bonaPage_StatRes+"Admin/html_res/";cK.BonaPage.adminResImgPath=bonaPage_StatRes+"Admin/html_res/images/";}cK.BonaPage.version=cK.bonaPage_BuildVer;cK.BonaPage.fullVersion=(cK.bonaPage_ThemeId!=null)?(cK.BonaPage.version+"."+cK.bonaPage_ThemeVer):cK.BonaPage.version;cK.BonaPage.themeHash=(cK.bonaPage_ThemeVer!=null)?cK.bonaPage_ThemeVer:"";cK.BonaPage.themeVersion=(!isNaN(parseFloat(cK.bonaPage_ThemeVersion)))?parseFloat(cK.bonaPage_ThemeVersion):null;cK.BonaPage.themeId=(cK.bonaPage_ThemeId!=null)?cK.bonaPage_ThemeId:"";cK.BonaPage.pageId=(cK.bonaPage_id!=null)?cK.bonaPage_id:"";cK.BonaPage.version_id=(cK.version_id!=null)?cK.version_id:"";cK.BonaPage.State={};cK.BonaPage.State.isPageLoading=true;cK.BonaPage.State.isPageLoaded=false;cK.BonaPage.State.isPageLoadedOrTimeout=false;cK.BonaPage.State.isPageParsing=true;cK.BonaPage.State.isPageParsed=false;cK.BonaPage.State.isPageUnloading=false;cK.BonaPage.State.isPageUnloaded=false;cK.BonaPage.State.isPageUnloaded=false;cK.BonaPage.State.isUpdatePanelUndefined=true;cK.BonaPage.State.isUpdatePanelLoading=false;cK.BonaPage.State.isUpdatePanelLoaded=false;cK.BonaPage.stateHandlers={};cK.BonaPage.stateHandlers[cK.BonaPage.PAGE_LOADING]=[];cK.BonaPage.stateHandlers[cK.BonaPage.PAGE_LOADED]=[];cK.BonaPage.stateHandlers[cK.BonaPage.PAGE_LOADEDORTIMEOUT]=[];cK.BonaPage.stateHandlers[cK.BonaPage.PAGE_PARSING]=[];cK.BonaPage.stateHandlers[cK.BonaPage.PAGE_PARSED]=[];cK.BonaPage.stateHandlers[cK.BonaPage.PAGE_UNLOADING]=[];cK.BonaPage.stateHandlers[cK.BonaPage.PAGE_UNLOADED]=[];cK.BonaPage.stateHandlers[cK.BonaPage.UPDATEPANEL_UNDEFINED]=[];cK.BonaPage.stateHandlers[cK.BonaPage.UPDATEPANEL_LOADING]=[];cK.BonaPage.stateHandlers[cK.BonaPage.UPDATEPANEL_LOADED]=[];cK.BonaPage.addHandler(cK,"load",cK.BonaPage.setPageStateLoaded);cK.BonaPage.addHandler(cK,"beforeunload",cK.BonaPage.setPageStateUnloading);cK.BonaPage.addHandler(cK,"unload",cK.BonaPage.setPageStateUnloaded);cK.BonaPage.isObjValid=true;}function cq(cK){if(cK.BonaPage){cK.BonaPage.setPageState(cK.BonaPage.PAGE_LOADEDORTIMEOUT);}}function cp(cK){cK=cK||{};var cL=cK.window||cE;if(cL.BonaPage.loadingTimeout){clearTimeout(cL.BonaPage.loadingTimeout);}cL.BonaPage.setPageState(cL.BonaPage.PAGE_LOADED);}function cs(cK){cK=cK||{};var cL=cK.window||cE;cL.BonaPage.setPageState(cL.BonaPage.PAGE_UNLOADING);}function cr(cK){cK=cK||{};var cL=cK.window||cE;cL.BonaPage.setPageState(cL.BonaPage.PAGE_UNLOADED);BonaPage.removeHandler(cL,"load",cL.BonaPage.setPageStateLoaded);BonaPage.removeHandler(cL,"beforeunload",cL.BonaPage.setPageStateUnloading);BonaPage.removeHandler(cL,"unload",cL.BonaPage.setPageStateUnloaded);}function bl(){if(cE.Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager&&typeof(Sys.WebForms.PageRequestManager.getInstance)=="function"){var cK=Sys.WebForms.PageRequestManager.getInstance();if(cK){cK.add_beginRequest(bn);cK.add_endRequest(bG);}}}function bn(cL,cK){co(BonaPage.UPDATEPANEL_LOADING);}function bG(cL,cK){co(BonaPage.UPDATEPANEL_LOADED);}function co(cM,cK){cK=cK||{};var cN=cK.window||cE,cL;if(cM==BonaPage.PAGE_LOADING&&!cN.BonaPage.State){bY(cN);}cL=cN.BonaPage.State;if(cL[cM]){return;}if(cM!=BonaPage.UPDATEPANEL_LOADING&&cM!=BonaPage.UPDATEPANEL_LOADED){cL[BonaPage.PAGE_LOADING]=cL.isPageLoading=false;cL[BonaPage.PAGE_LOADED]=cL.isPageLoaded=false;cL[BonaPage.PAGE_PARSING]=cL.isPageParsing=false;cL[BonaPage.PAGE_PARSED]=cL.isPageParsed=false;cL[BonaPage.PAGE_UNLOADING]=cL.isPageUnloading=false;cL[BonaPage.PAGE_UNLOADED]=cL.isPageUnloaded=false;}switch(cM){case BonaPage.PAGE_LOADING:cL[BonaPage.PAGE_LOADING]=cL.isPageLoading=true;cj(BonaPage.PAGE_LOADING,cN);break;case BonaPage.PAGE_LOADED:cL[BonaPage.PAGE_LOADED]=cL.isPageLoaded=true;cL[BonaPage.PAGE_PARSED]=cL.isPageParsed=true;cj(BonaPage.PAGE_LOADED,cN);break;case BonaPage.PAGE_LOADEDORTIMEOUT:cp(cN);break;case BonaPage.PAGE_PARSING:cL[BonaPage.PAGE_LOADING]=cL.isPageLoading=true;cL[BonaPage.PAGE_PARSING]=cL.isPageParsing=true;cj(BonaPage.PAGE_PARSING,cN);break;case BonaPage.PAGE_PARSED:cL[BonaPage.PAGE_LOADING]=cL.isPageLoading=true;cL[BonaPage.PAGE_PARSED]=cL.isPageParsed=true;bl();cj(BonaPage.PAGE_PARSED,cN);break;case BonaPage.PAGE_UNLOADING:cL[BonaPage.PAGE_LOADED]=cL.isPageLoaded=true;cL[BonaPage.PAGE_PARSED]=cL.isPageParsed=true;cL[BonaPage.PAGE_UNLOADING]=cL.isPageUnloading=true;cj(BonaPage.PAGE_UNLOADING,cN);break;case BonaPage.PAGE_UNLOADED:cL[BonaPage.PAGE_LOADED]=cL.isPageLoaded=true;cL[BonaPage.PAGE_PARSED]=cL.isPageParsed=true;cL[BonaPage.PAGE_UNLOADED]=cL.isPageUnloaded=true;cL[BonaPage.UPDATEPANEL_UNDEFINED]=cL.isUpdatePanelUndefined=true;cL[BonaPage.UPDATEPANEL_LOADING]=cL.isUpdatePanelLoading=false;cL[BonaPage.UPDATEPANEL_LOADED]=cL.isUpdatePanelLoaded=false;cj(BonaPage.PAGE_UNLOADED,cN);break;case BonaPage.UPDATEPANEL_LOADING:cL[BonaPage.UPDATEPANEL_UNDEFINED]=cL.isUpdatePanelUndefined=false;cL[BonaPage.UPDATEPANEL_LOADING]=cL.isUpdatePanelLoading=true;cL[BonaPage.UPDATEPANEL_LOADED]=cL.isUpdatePanelLoaded=false;cj(BonaPage.UPDATEPANEL_LOADING,cN);break;case BonaPage.UPDATEPANEL_LOADED:cL[BonaPage.UPDATEPANEL_UNDEFINED]=cL.isUpdatePanelUndefined=false;cL[BonaPage.UPDATEPANEL_LOADING]=cL.isUpdatePanelLoading=false;cL[BonaPage.UPDATEPANEL_LOADED]=cL.isUpdatePanelLoaded=true;cj(BonaPage.UPDATEPANEL_LOADED,cN);break;}}function bj(cO,cL,cQ,cK){cK=(typeof(cQ)==="object")?cQ:(cK||{});var cM,cR=cK.window||cE,cN=cR.BonaPage.State,cP=cR.BonaPage.stateHandlers;cM=cP[cO].length;cQ=cQ||BonaPage.HANDLERTYPE_ONCE;if(cN[cO]){cL();}if(!cN[cO]||cQ==BonaPage.HANDLERTYPE_ALWAYS){cP[cO][cM]=new Object();cP[cO][cM].type=cQ;cP[cO][cM].handler=cL;}}function cj(cN,cK){cK=cK||{};var cM,cO=cK.window||cE,cL=cO.BonaPage.stateHandlers[cN];for(cM=0;cMcL.offsetWidth){for(cO=0;cOcL.offsetWidth){cQ=cQ.substring(0,cQ.length-1);cQ+="
";cL.innerHTML=cQ;cO--;}}}cL.style.overflow=cP;}BonaPage.dynamicMenuItems=new Object();BonaPage.dynamicMenuVariables=new Object();BonaPage.changeBalancePanelState=bo;function bE(){var cQ,cR;var cS=a("idMainMenuContainer");var cT,cL,cN,cM;BonaPage.dynamicMenuSpanItems=new Object();BonaPage.dynamicMenuCloseTimeout=false;function cO(cU){var cV=cU.nextSibling;while(cV.nodeType!=1){cV=cV.nextSibling;}return cV;}function cP(cU){var cV=cU.previousSibling;while(cV.nodeType!=1){cV=cV.previousSibling;}return cV;}for(cQ in BonaPage.dynamicMenuItems){cT=a(cQ);if(cT){cN=null;cM=a(BonaPage.dynamicMenuItems[cQ]);cL=cT.getElementsByTagName("DIV");for(cR=0;cR=0){return;}var cL=cE.bonaPage_BalancePanel,cP="contentBalancePanelId",cX="opened",cN="closed",cS=cX,cQ="bpsh",cV=BonaPage.getCookie(cQ),cY=30,cW=globalUtils.getVisibleClientHeight(),cT="";if(!BonaPage.isWidgetMode){cW=cW-cY;cT=BonaPage.formatString("max-height: {0}px;overflow-y: auto;overflow-x: hidden;",cW);}if(cV&&cV=="0"){cS=cN;}var cM=BonaPage.formatString("BonaPage.changeBalancePanelState('{0}','{1}','{2}','{3}');return false;",cP,cQ,cX,cN);var cO=document.createElement("DIV");cO.setAttribute("id","WA_messagePopup");if(b5){cO.style.position="relative";cO.style[(cB.Browser.isIE?"styleFloat":"cssFloat")]="right";}var cK=new Array();cK.push('
');cK.push("");cK.push(' ');cK.push("
");cO.innerHTML=cK.join("");if(document.body){document.body.appendChild(cO);}}function bo(cM,cN,cO,cK){var cL=BonaPage.$(cM);if(cL.className==cO){cL.className=cK;BonaPage.setCookie(cN,"0");return;}cL.className=cO;BonaPage.setCookie(cN,"1");if(BonaPage.isWidgetMode){cE.scrollTo(0,document.body.scrollHeight);}}BonaPage.addPageStateHandler(BonaPage.PAGE_LOADED,bt);function bi(){var cK=document.body.className;if((cK.indexOf("publicContentView")==-1&&cK.indexOf("memberContentView")==-1&&cK.indexOf("adminContentView")==-1)||(cK.indexOf("customizeContentView")!=-1)){return;}var cM=a("idLoginUserNameTextBox");if(!cM){return;}var cL=b("input","idLoginUserNameTextBox")[0];var cN=b("input","idLoginPasswordTextBox")[0];if(cL.value.length>0){cL.style.backgroundImage="none";}if(cN.value.length>0){cN.style.backgroundImage="none";}cL.onfocus=function(){this.style.backgroundImage="none";this.onfocus=null;return true;};cN.onfocus=function(){this.style.backgroundImage="none";this.onfocus=null;return true;};if((cL.value.length==0)||(cN.value.length==0)){setTimeout(bi,77);}}if(cE.bonaPage_ThemeId&&bonaPage_ThemeId.indexOf("nature_")>=0){BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,bi);}function bK(cP,cO){var cM,cN;var cW,cY,cZ,c0,cX;var cS,cU,cQ,cK,cL;var cT,cV;var cR=cP||cE;var c1=(cO)?[cO]:cR.document.body.getElementsByTagName("TABLE");if(!c1||!c1.length){return false;}for(cM=0;cM0){cV=cT.rows[cN].cells[0];if(cV&&cV.style){cQ=(cV.style.borderLeftWidth)?cV.style.borderLeftWidth:Q(cV,"borderLeftWidth");cQ=(!isNaN(parseInt(cQ)))?parseInt(cQ):0;if(cQ>cU){cU=cQ;}}}}cK=(cS>cU)?cS:cU;if(cK>0){cL=Math.ceil(cK/2);cT.style.marginLeft=cL+"px";cT.setAttribute("wamarginleft",1,0);}}if(!c1[cM].getAttribute("wamarginright",0)&&!cZ){cS=(cT.style.borderRightWidth)?cT.style.borderRightWidth:Q(cT,"borderRightWidth");cS=(!isNaN(parseInt(cS)))?parseInt(cS):0;cU=0;for(cN=0;(cN0){cV=cT.rows[cN].cells[cT.rows[cN].cells.length-1];if(cV&&cV.style){cQ=(cV.style.borderRightWidth)?cV.style.borderRightWidth:Q(cV,"borderRightWidth");cQ=(!isNaN(parseInt(cQ)))?parseInt(cQ):0;if(cQ>cU){cU=cQ;}}}}cK=(cS>cU)?cS:cU;if(cK>0){cL=Math.ceil(cK/2);cT.style.marginRight=cL+"px";cT.setAttribute("wamarginright",1,0);}}}if(!c1[cM].getAttribute("wamargintop",0)&&!c0){cS=(cT.style.borderTopWidth)?cT.style.borderTopWidth:Q(cT,"borderTopWidth");cS=(!isNaN(parseInt(cS)))?parseInt(cS):0;cU=0;if(cT.rows&&cT.rows.length>0&&cT.rows[0]&&cT.rows[0].cells){for(cN=0;(cNcU){cU=cQ;}}}}cK=(cS>cU)?cS:cU;if(cK>0){cL=Math.ceil(cK/2);cT.style.marginTop=cL+"px";cT.setAttribute("wamargintop",1,0);}}if(!c1[cM].getAttribute("wamarginbottom",0)&&!cX){cS=(cT.style.borderBottomWidth)?cT.style.borderBottomWidth:Q(cT,"borderBottomWidth");cS=(!isNaN(parseInt(cS)))?parseInt(cS):0;cU=0;if(cT.rows&&cT.rows.length>0&&cT.rows[cT.rows.length-1]&&cT.rows[cT.rows.length-1].cells){for(cN=0;(cNcU){cU=cQ;}}}}cK=(cS>cU)?cS:cU;if(cK>0){cL=Math.ceil(cK/2);cT.style.marginBottom=cL+"px";cT.setAttribute("wamarginbottom",1,0);}}}}}}if(b0){BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,bK);}var cl=null;var br=null;var ca=0;var b9=0;function ct(){if(cE.name){var cM;var cN=parent.document.body.getElementsByTagName("IFRAME");for(cM=0;cM=0){return;}var cK=new Array();var cM="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; font-style: normal; color: #000000;";var cN=cE.bonaPage_MemberPanel;var cO=document.createElement("DIV");cO.style.position="fixed";cO.style.right="0";cO.style.top="0";cO.style.width="220px";cO.style.height="32px";cO.style.zIndex="37937";cO.style.backgroundColor="#E7E7E7";cO.className="switchToAdminShadowContainer";var cL=document.createElement("DIV");cL.style.position="fixed";cL.style.right="0";cL.style.top="0";cL.style.width="220px";cL.style.height="32px";cL.style.zIndex="37973";cL.style.backgroundColor="#E7E7E7";cL.className="switchToAdminContainer";cK.push('
');cK.push(' '+cN.switchToAdminText+"");cK.push('  | ');cK.push(' '+cN.signOutText+"");cK.push("
");cL.innerHTML=cK.join("");document.body.appendChild(cO);BonaPage.setElementOpacity(cO,37);document.body.appendChild(cL);}BonaPage.addPageStateHandler(BonaPage.PAGE_PARSED,bu);var ck=null;function bR(cO){cO=cO||cE;var cK=cO.document;if(!ck){var cL=cK.createElement("DIV"),cN,cM;if(cL){cL.style.position="absolute";cL.style.left=cL.style.top="-1000px";cL.style.width=cL.style.height="100px";cL.style.overflow="scroll";cL.style.visibility="hidden";if(cK.body){cK.body.appendChild(cL);cN=cL.offsetWidth;cM=cL.clientWidth;if(cL&&cN&&cM){ck=cN-cM;}}}}if(cL){cL.parentNode.removeChild(cL);}return ck;}function bO(cK){var cL,cM;cK.X=0;cK.Y=0;if(cK.parentNode){cL=cK;while(cL.nodeName.toUpperCase()!="BODY"){cL=cL.parentNode;cM=BonaPage.getElementStyle(cL,"position").toLowerCase();if(cM=="absolute"||cM=="relative"){cK.X+=cL.offsetLeft;cK.Y+=cL.offsetTop;}}}cK.X+=cK.offsetLeft;cK.Y+=cK.offsetTop;return{x:cK.X,y:cK.Y};}function cz(cL){for(var cK=0;cK160&&cL<256){cO+="&#"+cL+";";}else{if(cK=="&"){cO+="&";}else{if(cK=="<"){cO+="<";}else{if(cK==">"){cO+=">";}else{if(cK=='"'){cO+=""";}else{if(cK=="'"){cO+="'";}else{cO+=cK;}}}}}}}return cO;}function bA(cK){cK=cK||"";return cK.replace(/\&([A-Za-z0-9#]+)\;/ig,function(cM,cL){if(cL.indexOf("#")==0){cL=cL.substr(1);return String.fromCharCode(cL);}else{switch(cL.toLowerCase()){case"amp":return"&";break;case"lt":return"<";break;case"gt":return">";break;case"quot":return'"';break;default:return"&"+cL+";";}}});}function bH(cK){return cK.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");}function cC(cK,cL){cL=cL||cE;var cM=new cL.Sys.Net.WebRequest();cM.set_url(cK.url);cM.set_httpVerb(cK.verb||"GET");cM.set_userContext(cK.context);cM.add_completed(cK.completedCallback||function(){});cM.invoke();}function bT(){try{var cL=top.location.href;if(!cL){top.location=self.location;}}catch(cK){try{if(self!=top){top.location=self.location;}}catch(cK){try{if(self!=top){top=self;}return false;}catch(cK){return false;}}return false;}}var cd;var cb;var ce;var cf;var cc=null;function bv(){var cL="Please wait...";var cN="/Admin/html_res/images/async-load-progress-01.gif";var cM='";var cK='";cd=document.createElement("SPAN");cd.innerHTML=cK;if(b1){setTimeout(bw,137);}else{bw();}}function bw(){document.body.appendChild(cd);cb=document.getElementById("idPageShadingContainer");ce=document.getElementById("idPageShadingWaitMessage");cf=document.getElementById("idPageShadingWaitMessageText");cc=false;}function cv(cL,cK){if(cc===null){setTimeout(cv,137);}if(cc){return;}cc=true;cf.innerHTML=(cK==null)?"Please wait...":cK;ce.style.display=(cL)?"block":"none";cb.style.visibility="visible";setTimeout(function(){cn(cL);},10);BonaPage.addHandler(cE,"resize",cn);cc=true;}function bU(){if(cc===null){setTimeout(bU,137);}if(!cc){return;}cc=false;BonaPage.removeHandler(cE,"resize",cn);cb.style.visibility="hidden";cb.style.left="-3700px";cb.style.top="-3700px";cb.style.width="1px";cb.style.height="1px";cb.style.overflow="hidden";ce.style.display="none";cc=false;}function cn(cK){if(cc===null){setTimeout(cn,137);}cb.style.left="0px";cb.style.top="0px";cb.style.width=BonaPage.getScrollWidth()+"px";cb.style.height=BonaPage.getScrollHeight()+"px";if(cK||ce.style.display=="block"){ce.style.left=Math.floor((BonaPage.getInnerWidth()-ce.offsetWidth)/2)+"px";ce.style.top=Math.floor((BonaPage.getInnerHeight()-ce.offsetHeight)/2)+"px";}}function y(cN,cM){if(cN==null||typeof(cN)!="object"){return cN;}var cL=new cN.constructor();for(var cK in cN){if(cN.hasOwnProperty(cK)){if(cM===true||cN[cK]==null||typeof(cN[cK])!="object"||cN[cK].document){cL[cK]=cN[cK];}else{cL[cK]=y(cN[cK]);}}}return cL;}function p(cM){var cL,cN={};if(typeof(cM)=="object"){if(cM==null){cN=null;}else{if(typeof(cM.splice)=="function"){for(cL=0;cLanimation.activeAnimation.steps+1){if(animation.activeAnimation.timer){pThis.elementWindow.clearTimeout(animation.activeAnimation.timer);}if(animation.activeAnimation.settings&&animation.activeAnimation.settings.settings.onAnimateCompleteCallBack){animation.activeAnimation.settings.settings.onAnimateCompleteCallBack();}animation.activeAnimation.settings=null;checkQueue();return;}for(var i=0;i=animation.activeAnimation.steps){return property.to+property.unit;}var propertyDelta=property.effect(property.to-property.from,animation.activeAnimation.step,animation.activeAnimation.steps);return(property.from+propertyDelta)+property.unit;}function getEffectByName(name){return animation.effects[name];}function computeStyle(element,style){return pThis.elementWindow.BonaPage.Browser.isIE?element.currentStyle[style]:pThis.elementWindow.getComputedStyle(element,null)[style];}function parseAnimationProperty(value){var parsingRegEx=/^(?:([+-\\*])(=))?(\-?[0-9]+(?:\.[0-9]+)?)([a-z%]+)?$/im;var match=parsingRegEx.exec(value);if(!match){throw"unable to parse value: "+value;}var result={operation:match[1],modification:match[2],value:parseInt(match[3],0),unit:match[4]||"px"};return result;}function parseCssProperty(value){var parsingRegEx=/^(\-?[0-9]+(?:\.[0-9]+)?)([a-z%]+)?$/im;var match=parsingRegEx.exec(value);var result;if(!match){result={value:0,unit:"px"};}else{result={value:parseInt(match[1],0),unit:match[2]||"px"};}return result;}return animation;});}if(!Array.prototype.contains){Array.prototype.contains=function(a){return this.indexOf(a)!=-1;};}if(!Array.prototype.reTestOr){Array.prototype.reTestOr=function(b){for(var a=0;ae){gDES_PV.CurOpq=e;}else{if(gDES_PV.CurOpq=e)||(gDES_PV.CurOpq=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;G=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(c,b){if(!c.WA.DragDropStatic){b.DragDropStatic={};}b.DragDropStatic.Direction={horizontal:1,vertical:2,both:3};b.DragDropStatic.UnsetScrollActiveTimeOut=100;b.DragDropStatic.addTargets=function(d,f){var e;for(e=0;eaU){aU=B[aS].right;}if(B[aS].bottom>aV){aV=B[aS].bottom;}if(B[aS].zindex==null){B[aS].zindex=0;}}H=Math.ceil(aU/17);I=Math.ceil(aV/17);J=H*17;G=I*17;for(aS=0;aS<17;aS++){aP=H*aS;aQ=H*(aS+1);for(aW=0;aW<17;aW++){aR=I*aW;aO=I*(aW+1);for(aT=0;aT=aP&&B[aT].left<=aQ)||(B[aT].right<=aQ&&B[aT].right>=aP)||(B[aT].leftaQ)){if((B[aT].top>=aR&&B[aT].top<=aO)||(B[aT].bottom<=aO&&B[aT].bottom>=aR)||(B[aT].topaO)){F[aS][aW].push(aT);}}}}}aX=b.getElementAbsXY(aL.document.body,aL);s=aX.X;t=aX.Y;}function m(){if(!ab){ab=ak.document.createElement("DIV");ab.style.position="absolute";ab.style.left="-3700px";ab.style.top="-3700px";ab.style.zIndex=33777;ab.style.width="1px";ab.style.height="1px";ab.style.overflow="hidden";ab.style.visibility="hidden";ac=ak.document.createElement("DIV");ad=ak.document.createElement("DIV");ad.style.position="absolute";ad.style.left="0px";ad.style.top="0px";ad.style.zIndex=33779;ad.style.width="1px";ad.style.height="1px";ab.appendChild(ac);ab.appendChild(ad);ak.document.body.appendChild(ab);b.setElementOpacity(ab,ag);if(!ai[ak.name]){ai[ak.name]={};}ai[ak.name].movingElement=ab;ai[ak.name].movingElementContent=ac;ai[ak.name].movingElementCup=ad;}}function aF(){var aQ,aP,aO;if(R){if(af){ac.innerHTML=af;}else{aQ=ah.innerHTML;aQ=aQ.replace(/id=".*?"/ig,"").replace(/^\s+/,"");ac.innerHTML=aQ;}aP=(aj!=null)?aj:al.offsetWidth;aO=(ae!=null)?ae:al.offsetHeight;ab.style.width=aP+"px";ab.style.height=aO+"px";ad.style.width=aP+"px";ad.style.height=aO+"px";ab.style.visibility="visible";}if(q){ab.style.cursor=q;}else{ab.style.cursor=r[x];}if(ad){ad.style.cursor=ab.style.cursor;}}function K(){ab.style.left="-3700px";ab.style.top="-3700px";ab.style.zIndex=33777;ab.style.width="1px";ab.style.height="1px";ab.style.visibility="hidden";}function e(aS){var aU,aV,aQ,aR,aO,aP;aS=b.getEvent(aS,an);if(aS&&(((!b.Browser.isIE||b.Browser.isIE>=9)&&aS.button==0)||(b.Browser.isIE&&aS.button==1))){Y=b.getEventTarget(aS);N=aS.clientX;O=aS.clientY;Z=aS.screenX;aa=aS.screenY;aU=b.getElementAbsXY(an.document.body,an);u=Z-(aU.X+N);v=aa-(aU.Y+O);aV=b.getElementAbsXY((V?ap.document.body:ap),av);ar=aV.left+17;at=aV.right-17;au=aV.top+17;aq=aV.bottom-17;if(V){try{aO=ap.document.body.scrollLeft;aP=ap.document.body.scrollTop;}catch(aT){}if(ap.document.documentElement&&ap.document.documentElement.scrollLeft!=null){aQ=ap.document.documentElement.scrollLeft;aR=ap.document.documentElement.scrollTop;ax=(aQ===0&&aO>0)?aO:aQ;ay=(aR===0&&aP>0)?aP:aR;}else{ax=aO;ay=aP;}}else{ax=ap.scrollLeft;ay=ap.scrollTop;}b.addGlobalHandler((b.Browser.isIE?"body":"window"),"mousemove",C,"DragDropMouseMoveInAllWindow",{});b.addGlobalHandler((b.Browser.isIE?"body":"window"),"mouseup",ao,"DragDropMouseUpInAllWindow",{});b.addHandler(ab,(b.Browser.isGecko?"DOMMouseScroll":"mousewheel"),aE);b.addHandler(an.document,"selectstart",b.stopEvent);if(b.Browser.isWebKit){b.addHandler(ap,"scroll",aD);}b.stopEvent(aS,an);return false;}}function aG(){var aO=b.getElementAbsXY(ak.document.body,ak),aP=b.getElementAbsXY(al,an);aF();switch(x){case y:aH=Z-u-aO.X-Math.round(ab.offsetWidth/2)+b.getScrollLeft(ak);aI=aP.Y+b.getScrollTop(ak)-aO.Y;break;case z:aH=aP.X+b.getScrollLeft(ak)-aO.X;aI=aa-v-aO.Y-Math.round(ab.offsetHeight/2)+b.getScrollTop(ak);break;case w:aH=Z-u-aO.X-Math.round(ab.offsetWidth/2)+b.getScrollLeft(ak);aI=aa-v-aO.Y-Math.round(ab.offsetHeight/2)+b.getScrollTop(ak);break;}ab.style.left=aH+"px";ab.style.top=aI+"px";o=aH;p=aI;am.DragDropStaticDragStart.fireHandlers({movingElement:ab,args:{droppedParams:D}});aC();}var T=true;function U(aP,aO){return aP.top>=aO.top&&aP.bottom<=aO.bottom&&aP.left>=aO.left&&aP.right<=aO.right;}function C(aQ,a5){if(aQ&&ab){if(aQ.type!="mousemove"||(W&&aQ.view!==ak)){return;}var aT,aX,aY,a1,a2,aZ=aQ.screenX,a0=aQ.screenY,aV,aW,aR,aS,a4,a3,aP=null,aU=false,aO=false;if(!S){if(N==aQ.clientX&&O==aQ.clientY){return;}S=true;aG();}switch(x){case y:aX=o+(aZ-Z);aY=p;break;case z:aX=o;aY=p+(a0-aa);break;case w:aX=o+(aZ-Z);aY=p+(a0-aa);break;}if(P||T===false){if(aX>=g&&aX<=h&&T===true){ab.style.left=aX+"px";N=aZ;a1=aX;}else{a1=(aX=i&&aY<=f&&T===true){ab.style.top=(aY)+"px";O=a0;a2=aY;}else{a2=(aY=0&&aV=0&&aW=0;aT--){a3=B[a4[aT]];if(aV>=a3.left&&aV<=a3.right&&aW>=a3.top&&aW<=a3.bottom){aO=k&&aP!=null&&a3.zindex==B[aP].zindex;if(aP==null||a3.zindex>B[aP].zindex||(aO&&U(a3,B[aP]))){aP=a4[aT];}}}if(aP!=null){a3=B[aP];if(n!=null&&n!=a4[aT]){if(aJ){aJ(B[n].id,B[n].object,B[n].element);}else{if(B[n].outCallBack){B[n].outCallBack(B[n].id,B[n].object,B[n].element);}}}if(aK){aK();}else{if(a3.overCallBack){a3.overCallBack({movingElementX:a1,movingElementY:a2});}}aU=true;n=aP;}}if(!aU&&n!=null){if(aJ){aJ(B[n].id,B[n].object,B[n].element);}else{if(B[n].outCallBack){B[n].outCallBack(B[n].id,B[n].object,B[n].element);}}n=null;}}Z=aZ;aa=a0;o=aX;p=aY;}return false;}function aC(){var aR=0,aS=0,aO=Z-u,aP=aa-v,aQ=17;if(V){if(aO>at-aQ){aR+=aQ;}else{if(aOaq-aQ){aS+=aQ;}else{if(aP<=au+aQ){aS-=aQ;}}}else{if(aO>at){aR+=(aO-at<=aQ)?aO-at:aQ;}else{if(aOaq){aS+=(aP-aq<=aQ)?aP-aq:aQ;}else{if(aP<=au){aS-=(au-aP<=aQ)?au-aP:aQ;}}}if(aR||aS){if(V){ap.scrollBy(aR,aS);ax=b.getScrollLeft(ap);ay=b.getScrollTop(ap);}else{ap.scrollLeft+=aR;ap.scrollTop+=aS;ax=ap.scrollLeft;ay=ap.scrollTop;}C({screenX:Z,screenY:aa});}if(aw){clearTimeout(aw);}aw=setTimeout(aC,17);}function aE(aO){var aP=0,aQ=120;aO=b.getEvent(aO,an);if(aO){if(aO.wheelDelta){aP=aO.wheelDelta/-120;}else{if(aO.detail){aP=aO.detail/3;}}if(aP){if(V){ap.scrollBy(0,aP*aQ);ay=b.getScrollTop(ap);}else{ap.scrollTop+=aP*aQ;ay=ap.scrollTop;}C({screenX:Z,screenY:aa});}b.stopEvent(aO);}}function aD(){W=true;b.throttle(aM,{timeout:aN});}function aM(){W=false;}function ao(){if(aw){clearTimeout(aw);}b.removeHandler(an.document,"selectstart",b.stopEvent);b.removeHandler(ab,(b.Browser.isGecko?"DOMMouseScroll":"mousewheel"),aE);b.removeGlobalHandler("DragDropMouseMoveInAllWindow");b.removeGlobalHandler("DragDropMouseUpInAllWindow");if(b.Browser.isWebKit){b.removeHandler(ap,"scroll",aD);}if(q){ab.style.cursor="";}if(S){S=false;am.DragDropStaticBeforeDrop.fireHandlers({element:ab});if(n!=null&&B[n].dropCallBack){B[n].dropCallBack(B[n].id,B[n].object,B[n].element,D);}am.DragDropStaticDrop.fireHandlers({object:(n!=null?B[n].object:null),element:ab,position:{mouseX:Z,mouseY:aa,currentX:o,currentY:p}});if(R){K();}}else{am.DragDropStaticClick.fireHandlers({mouseDownTarget:Y});}l();}function l(){var aO,aP;an=null;al=null;d=null;j=null;ak=null;ah=null;ab=null;ac=null;ad=null;av=null;ap=null;n=null;for(aO=0;aO<17;aO++){for(aP=0;aP<17;aP++){F[aO][aP].splice(0,F[aO][aP].length);}}}function A(){l();am.DragDropStaticDragStart.disposeHandlers();am.DragDropStaticBeforeDrop.disposeHandlers();am.DragDropStaticDrop.disposeHandlers();am.DragDropStaticClick.disposeHandlers();}}})(window,WA);(function(d,c,b){if(!c.Gadgets){c.Gadgets=new a();}function a(){var k=this,l="WA.Gadgets";k.toString=function(){return l;};k.Dispose=c.Tools.EventHandlers.createHandlers(k,{id:"Dispose"});k.GadgetChanged=c.Tools.EventHandlers.createHandlers(k,{id:"GadgetChanged"});k.GadgetDeleted=c.Tools.EventHandlers.createHandlers(k,{id:"GadgetDeleted"});k.LayoutColumnResized=c.Tools.EventHandlers.createHandlers(k,{id:"LayoutColumnResized"});k.StickyPlaceHolderResized=c.Tools.EventHandlers.createHandlers(k,{id:"StickyPlaceHolderResized"});k.notifyGadgetChanged=g;k.notifyGadgetDeleted=h;k.notifyLayoutColumnResized=i;k.notifyStickyPlaceHolderResized=j;function j(m){k.StickyPlaceHolderResized.fireHandlers(m);}function i(m){k.LayoutColumnResized.fireHandlers(m);}function g(m){k.GadgetChanged.fireHandlers(m);}function h(m){m=m||{};k.GadgetDeleted.fireHandlers(m);}function f(){}function e(){k.Dispose.fireHandlers();k.GadgetChanged.disposeHandlers();k.GadgetDeleted.disposeHandlers();k.LayoutColumnResized.disposeHandlers();k.StickyPlaceHolderResized.disposeHandlers();k.Dispose=null;}c.PageParsed(f,d);c.PageUnLoaded(e,d);}})(window,WA);var BonaDialog;(function(){if(BonaDialog==null){BonaDialog=new Object();}BonaDialog.pDialog=new Array();BonaDialog.isDialogOpened=false;BonaDialog.createDialog=function(a){if(typeof(BonaPage.topWindow.BonaDialog)=="undefined"||!BonaPage.topWindow.BonaDialog){return null;}return BonaPage.topWindow.BonaDialog.createInnerWindow(a.dialogName,a);};BonaDialog.createInnerWindow=function(e,h,g,f){var c,k=(h.stateCookie)?h.stateCookie:null,j=new RegExp("InnerWindows\\s*=\\s*[^;]*"+e+":([^&;]*)"),d,a=null;for(c=0;c1){a=d[1].split(/:/);}if(a&&a[1]!=null){h.left=Number(a[1]);}if(a&&a[2]!=null){h.top=Number(a[2]);}if(a&&a[3]!=null){h.width=Number(a[3]);}else{h.width=(winWidth)?Number(winWidth):500;}if(a&&a[4]!=null){h.height=Number(a[4]);}else{h.height=(winHeight)?Number(winHeight):300;}}if(k){b();}BonaDialog.pDialog[c].dialog=new WA.UI.BonaDialogWrapper(e,h,g,f);return BonaDialog.pDialog[c].dialog;};BonaDialog.getObjectById=function(a){var b;for(b=0;b';Z=WA.$(J,window);G=frames[K];s();setTimeout(N,100);}else{setTimeout(M,100);}}aw.reInitDropdown=function(aL,aM,aS,aH,aP,aN,aQ,aR,aO,aK){var aJ,aT={};aw.isObjValid=false;aw.isDataValid=false;x=aL;ag=aM;v=aS.directURL;t=(aH)?aH:null;am=(aP&&typeof(aP)=="function")?aP:null;ah=(aN&&typeof(aN)=="function")?aN:aw.closeDropdown;aq=(aR&&typeof(aR)=="function")?aR:null;ao=(aQ&&typeof(aQ)=="function")?aQ:function(){};ak=(aO&&typeof(aO)=="function")?aO:null;aK=aK||{};for(aJ in aK){if(aK.hasOwnProperty(aJ)){k[aJ]=aK[aJ];aT[aJ]=true;}}for(aJ in k){if(k.hasOwnProperty(aJ)){if(!aT.hasOwnProperty(aJ)){delete k[aJ];}}}if(aS.callBackParameters){for(F in aS.callBackParameters){if(aS.callBackParameters.hasOwnProperty(F)&&typeof(aS.callBackParameters[F])!="function"){aj[F]=aS.callBackParameters[F];}}}if(G){G.isIFrameReloading=true;}try{if(k.isReload){G.location.reload(true);}else{G.location.replace(v);}}catch(aI){}s();setTimeout(N,100);};function s(){var aH,aI=x.match(/^(.*?_Level)(\d+)$/i);n.splice(0,n.length);if(aI&&aI[1]!=null&&aI[2]!=null){aI[2]++;aH=BonaDropdown.getObjectById(aI[1]+aI[2]);while(aH){n.push(aH);aI[2]++;aH=BonaDropdown.getObjectById(aI[1]+aI[2]);}}}function N(){var aH,aJ,aI;G=frames[K];if(G&&G.document&&!G.isIFrameReloading&&G.document.getElementById("idEndOfPageDiv")){if(!WA.Browser.isIE||WA.Browser.isIE>8){aJ=G.document.createElement("STYLE");aJ.setAttribute("type","text/css");aJ.setAttribute("rel","stylesheet");aJ.innerHTML=g.join(" ");G.document.querySelector("HEAD").appendChild(aJ);}G.parentId=x;G.parentObject=aw;G.parentButton=ag;if(am){G.callBackSave=am;}if(ah){G.callBackClose=ah;}if(aq){G.callBackWaitClose=aq;}if(ao){G.callBackStopClose=ao;}if(ak){G.callBackPreview=ak;}if(d){I=G.document.body;}else{I=G;}G.document.body.onmousedown=function(aK){WA.stopEventBubbling(aK);};if(R){ax();}if(t){t=WA.UI.ScrollablePanelTemplate({id:"idDropdownScrollableContentContainer_"+x,cssClass:"dropdownScrollableContentContainer",isBorder:true,isNoIndentTemplate:true,contentHTML:t});if(G.document.getElementById("idInnerHTMLContainer")){G.document.getElementById("idInnerHTMLContainer").innerHTML=t;}else{if(G.document.forms[0]){G.document.forms[0].innerHTML=t;}else{G.document.body.innerHTML=t;}}if(!G.document.getElementById("idEndOfPageDiv")){aI=G.document.createElement("DIV");aI.id="idEndOfPageDiv";G.document.body.applyChild(aI);}}aH=G.document.body.getElementsByTagName("*");ae(G,aH);az=WA.Object.create(WA.UI.ScrollablePanel,[{id:"idDropdownScrollableContentContainer_"+x},{parentComponent:aw,window:G,isBorder:true,isNoRightPadding:true,scrollBarContainerZIndex:37373,scrollBarSliderZIndex:37377}]);aA=WA.$("idDropdownScrollableContentContainer_"+x+"_ScrollablePanelContainer",G);G.document.body.style.backgroundColor=(O?"transparent":H);G.document.body.style.backgroundImage="none";G.document.body.style.filter="none";aw.isObjValid=true;}else{setTimeout(N,100);}}function ae(aP,aH){var aL,aO,aI,aN=0,aM=0,aK,aJ;aP.typeElements=[];for(aL=0,aO=aH.length;aLaR+aS){aT=aR-aV+aS-17;aM=WA.getElementBoxStyles(A);A.style.height=(aT-aM.deltaInnerHeight)+"px";}Z.style.left=aU+"px";Z.style.top=aV+"px";Z.style.width=(aW+2)+"px";Z.style.height=(aT+2)+"px";az.calculate();}}function aB(){if(!aw.isObjValid){return false;}if(tmSetXY){clearTimeout(tmSetXY);}var aM=(a.clientWidth)?a.clientWidth:a.offsetWidth;var aH=(a.clientHeight)?a.clientHeight:a.offsetHeight;var aJ=a.scrollLeft;var aK=a.scrollTop;var aL=document.body.scrollWidth;var aI=document.body.scrollHeight;var aR=Z.offsetLeft;var aS=Z.offsetTop;var aN=aR-aJ;var aO=aS-aK;var aQ=aR,aT=aS,aU=Z.offsetWidth,aP=Z.offsetHeight;if(aN+aU<50){aQ=aJ-aU+50;}else{if(aN>aM-25){aQ=aM+aJ-25;}else{if(aO>aH-25){aT=aH+aK-25;}else{if(aO<0){aT=aK;}}}}Z.style.left=aQ+"px";Z.style.top=aT+"px";o=aN;p=aO;if(isWinModal){objShadingBox.style.width=(aL>aM&&!isWinModal)?(aL-17)+"px":(aM-17)+"px";objShadingBox.style.height=(aI>aH&&!isWinModal)?(aI-17)+"px":(aH-17)+"px";objShadingBox.style.visibility="visible";}objMainBoxBg.style.width=(aL>aM&&!isWinModal)?(aL-17)+"px":(aM-17)+"px";objMainBoxBg.style.height=(aI>aH&&!isWinModal)?(aI-17)+"px":(aH-17)+"px";objMainBoxBg.style.overflow="hidden";objMainBoxBg.style.visibility="hidden";}aw.keyPress=function(aH){T(aH);};function T(aH){aH=WA.getEvent(aH);if(aH&&aH.keyCode==27){aw.closeDropdown(null,null,null,false,false);}}aw.closeDropdownWait=function(){if(r){clearTimeout(r);}if(G.callBackWaitClose){G.callBackWaitClose();}else{r=setTimeout(aw.closeDropdown,50);}};aw.closeDropdownStop=function(){var aH;if(r){clearTimeout(r);}for(aH=0;aH0?r+"."+t:t;return new c.ValueAccessor({modelAccessor:l,valuePath:u},{parentComponent:v});}function h(u){var t=r;if(u!=a){t+="."+u;}return l.getValue(t);}function p(v,u){var t=r;if(u!=a){t+="."+u;}l.setValue(t,v);}function g(){return l.getErrors(r);}function i(){m.Dispose.addHandler(f);}function f(){n.Dispose.fireHandlers();m.Dispose.removeHandler(f);l=null;r=null;s=null;m=null;n.RenderComplete=null;n.Dispose=null;}i();}})(window,WA);(function(d,c,a){if(!c.ValidationProcessor){c.ValidationProcessor=b;}function b(j,i){i=i||{};var m=this,o="WA.ValidationProcessor",r=j||{validationRules:[]},k=i.parentComponent;m.toString=function(){return o;};m.Dispose=c.Tools.EventHandlers.createHandlers(m,{id:"Dispose"});m.init=h;m.validateModel=p;var l=[];function p(u){var x={isValid:true,errors:{}};var s,t,w,v;for(s=0,t=l.length;sx.value){y.isValid=false;y.errorMessage=x.errorMessage.replace("<>",z.length-x.value);}break;case c.ValidationProcessor.ValidationRuleType.MinLength:if(z!=a&&c.getTypeString(z)=="string"&&z.length>",v.value);}}break;case c.ValidationProcessor.ValidationRuleType.MaxValue:if(z!=a&&z>x.value){y.isValid=false;y.errorMessage=x.errorMessage;}break;case c.ValidationProcessor.ValidationRuleType.MinValue:if(z!=a&&zx.maxValue)){y.isValid=false;y.errorMessage=x.errorMessage;}break;case c.ValidationProcessor.ValidationRuleType.DateRangeDirection:if(z!=a&&z.start!=a&&z.end!=a&&z.start.unixTicks!=null&&z.end.unixTicks!=null&&z.start.unixTicks>z.end.unixTicks){y.isValid=false;y.errorMessage=x.errorMessage;}break;}if(!y.isValid){y.pinPath=x.pinTo||x.valuePath;}return y;}function n(t,s){if(t==a){return false;}switch(s.valueType){case c.UI.ModelDataType.Int:case c.UI.ModelDataType.Double:if(c.getTypeString(t)!="number"){throw new Error("expected and current data types are different. expected: Int or Double; current: "+c.getTypeString(t));}return true;case c.UI.ModelDataType.Enum:if(c.getTypeString(t)!="number"){throw new Error("expected and current data types are different. expected: Int current: "+c.getTypeString(t));}return t!==0;case c.UI.ModelDataType.String:if(c.getTypeString(t)!="string"){throw new Error("expected and current data types are different. expected: String; current: "+c.getTypeString(t));}return t.length>0;case c.UI.ModelDataType.Collection:if(c.getTypeString(t)!="array"){throw new Error("expected and current data types are different. expected: Collection; current: "+c.getTypeString(t));}return t.length>0;case c.UI.ModelDataType.Object:if(c.getTypeString(t)!="object"){throw new Error("expected and current data types are different. expected: Object; current: "+c.getTypeString(t));}return true;case c.UI.ModelDataType.DateTimePeriod:if(c.getTypeString(t)!="object"||!t.hasOwnProperty("start")||!t.hasOwnProperty("end")){throw new Error("expected and current data types are different. expected: Object [DateTimePeriod]; current: "+c.getTypeString(t));}return t.start.unixTicks!=a||t.end.unixTicks!=a;default:throw new Error("unknown metaDataType");}}function f(u){var t="";if(u.isMultilineRegex===true){t+="m";}if(u.isIgnoreCaseRegex===true){t+="i";}var s=c.Objects.copy(u);s.regex=new RegExp(u.value,t);return s;}function e(u,s){var t=c.Objects.copy(u);t.validator=s.createCustomRule(u,m);return t;}function h(){k.Dispose.addHandler(g);var s=c.Object.create(c.ValidationProcessor.CustomRuleFactory,[{},{parentComponent:m}]);var t,v,u,w;for(t=0,v=r.validationRules.length;tn.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.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.isWebKit){if(!WA.ClientPerformanceChecker){WA.ClientPerformanceChecker=new a();}}else{setTimeout(b,100);}}b();function a(){var t=false,j=WA.topWindow.bonaPage_ClientPerformanceCheckerConfig||{enabled:false},o,k,y,x,c,q=[],f=null,u=false,h=0,p={},i=["duration","fetchStart","startTime","domainLookupStart","domainLookupEnd","connectStart","connectEnd","redirectStart","redirectEnd","requestStart","responseStart","responseEnd","secureConnectionStart","name","entryType","initiatorType"],s={unknown:0,link:1,script:2,img:3,iframe:4,xmlhttprequest:5};if(j.enabled){r();}function r(){if(WA&&WA.Ajax&&WA.jq$){window.performance.webkitSetResourceTimingBufferSize(1737);WA.addPageStateHandler(BonaPage.PAGE_LOADED,w);A();WA.addPageStateHandler(BonaPage.PAGE_UNLOADED,n);}else{setTimeout(r,37);}}function w(){g();u=true;if(y){e();}else{m();}}function A(){if(f){clearTimeout(f);}f=setTimeout(v,j.checkNewRecordsInterval);}function g(){if(f){clearTimeout(f);}}function v(){g();if(y){e();}else{m();}}function m(){var B=new Date();o=window.performance.getEntries();k=o.length;if(k>0){d();y=j.currentEnvironment+"_"+bonaPage_AccountId+"_"+bonaPage_UserId+"_"+B.getTime();x={packageId:y,currentEnvironment:j.currentEnvironment,accountId:bonaPage_AccountId,userId:bonaPage_UserId,clientTime:B.getTime()+(B.getTimezoneOffset()*60000),isLoaded:u,items:q};z(true);}}function l(){var B=new Date();d();if(q.length>0){c={packageId:y,clientTime:B.getTime()+(B.getTimezoneOffset()*60000),isLoaded:u,items:q};z(false);}else{A();}}function e(){o=window.performance.getEntries();if(o.length>k){k=o.length;l();}else{A();}}function d(){var F,I,B,G,K,E=[],C,H=0,D=j.firstRequestURL.toLowerCase(),J=j.otherRequestURL.toLowerCase();q.splice(0,q.length);G=0;for(F=0;F1){q[G]["IsSSL"]=(K[1]&&K[1].toLowerCase()==="https");q[G]["Domain"]=K[2]?K[2].toLowerCase():"";q[G]["Prms"]=(K[4]&&q[G]["Domain"].indexOf(".google")===-1)?K[4].replace(/(?:^5\.\d[^&]*?(?:&|$)|&?_=\d+)/ig,""):"";}K=K[3]||"";}else{if(i[I]==="initiatorType"){K=s[o[F][i[I]]]||0;}else{if(i[I]==="entryType"){continue;}else{if(!isNaN(o[F][i[I]])){K=(o[F][i[I]].toString()).replace(/\..*$/,"");}else{K=o[F][i[I]];}}}}}else{K=-1;}q[G][i[I].substr(0,1).toUpperCase()+i[I].substr(1)]=K;}G++;}}function z(B){var D=(B?j.firstRequestURL:j.otherRequestURL),C=(B?x:c);h+=C.items.length;WA.Ajax({url:D,data:JSON.stringify(C),dataType:"json",type:"POST",beforeSend:function(){},success:function(E){if(!t){A();}},error:function(E){if(!t){A();}}});}function n(){t=true;g();o=null;x=null;c=null;p=null;q=null;f=null;i=null;s=null;}}})();(function(window,WA){if(!window.globalUtils){window.globalUtils={};WA.globalUtils=window.globalUtils;}var globalUtils=WA.globalUtils;var _UdDomainNames=["NET","COM","BIZ","ORG","EDU","MIL","GOV","PRO","INT","COOP","NAME","INFO","AERO","ARPA","TRAVEL","MUSEUM","US","CA","UK","GB","FR","RU","AC","AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BR","BS","BT","BV","BW","BY","BZ","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","EU","FI","FJ","FK","FM","FO","GA","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","ST","SU","SV","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TP","TR","TT","TV","TW","TZ","UA","UG","UM","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","YU","ZA","ZM","ZW"];function _udTrim(s){var m=s.match(/^\s*(\S+(\s+\S+)*)\s*$/);return m==null?"":m[1];}globalUtils.ValidateEmailFormat=function(source,args){var s,m,i;args.IsValid=true;s=_udTrim(args.Value);if(s==""){return;}m=s.match(/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/);if(m!=null&&m.length>0){if(args.ValidateDomains==null||!args.ValidateDomains){return;}s=s.substr(s.lastIndexOf(".")+1).toUpperCase();for(i=0;i<_UdDomainNames.length;i++){if(s==_UdDomainNames[i]){return;}}}args.IsValid=false;};globalUtils.validateCheckBoxList=function(validator){var list=document.getElementById(validator.controltovalidate);var items=list.getElementsByTagName("INPUT");if(items!=null){for(var i=0;i0)?docForSize.clientWidth:document.body.clientWidth);};globalUtils.getVisibleClientHeight=function(){var docForSize=globalUtils.getDocForSize();return((docForSize.clientHeight>0)?docForSize.clientHeight:document.body.clientHeight);};globalUtils.scrollIntoView=function(container,target){if(typeof(container)=="window"){globalUtils.getXY(target);container.scrollTo(0,target.Y+20);}else{globalUtils.getXY(container);globalUtils.getXY(target);container.scrollTop=(target.Y-container.Y);}};globalUtils.getTextareaLength=function(obj){var value=obj.value;value=value.replace(/\r\n/g,"\n");value=value.replace(/\n/g,"\r\n");return value.length;};globalUtils.getXY=function(element){var x=element.offsetLeft||0,y=element.offsetTop||0,parentElement=element.offsetParent;while(parentElement){x+=parentElement.offsetLeft;y+=parentElement.offsetTop;parentElement=parentElement.offsetParent;}element.X=x;element.Y=y;return{x:x,y:y};};globalUtils.getAbsoluteXY=function(obj){var parTemp;obj.X=0;obj.Y=0;if(obj.parentNode){parTemp=obj;while(parTemp.nodeName.toUpperCase()!="BODY"){parTemp=parTemp.parentNode;var position=BonaPage.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=BonaPage.Objects.extend(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,BonaPage.Objects.extend(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.formatStringNamed(j.settings.dialogParameters.reloadURLTemplate,m);}function c(m){if(!j.settings.dialogParameters.directURLTemplate){return"";}return WA.formatStringNamed(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(g,a){a.implementBonaPage=c;a.implementBonaPageProperties=e;a.implementBonaPageMethods=d;a.implementBonaPagePrototypes=f;function c(h){if(!h.WA){h.WA=WA;}if(!h.BonaPage){h.BonaPage={};h.BonaPage.isObjInited=false;h.BonaPage.isObjValid=false;e(h);d(h);f(h);h.BonaPage.isObjInited=true;h.BonaPage.setPageState(a.PAGE_LOADING);}}function e(i){var h=i.BonaPage;i.globalUtils=g.globalUtils;i.browserInfo=g.browserInfo;h.topWindow=a.topWindow;h.Browser=a.Browser;h.isWidgetMode=a.isWidgetMode;h.Utils=a.Utils;h.PAGE_LOADING=a.PAGE_LOADING;h.PAGE_LOADED=a.PAGE_LOADED;h.PAGE_LOADEDORTIMEOUT=a.PAGE_LOADEDORTIMEOUT;h.PAGE_PARSING=a.PAGE_PARSING;h.PAGE_PARSED=a.PAGE_PARSED;h.PAGE_UNLOADING=a.PAGE_UNLOADING;h.PAGE_UNLOADED=a.PAGE_UNLOADED;h.UPDATEPANEL_UNDEFINED=a.UPDATEPANEL_UNDEFINED;h.UPDATEPANEL_LOADING=a.UPDATEPANEL_LOADING;h.UPDATEPANEL_LOADED=a.UPDATEPANEL_LOADED;h.HANDLERTYPE_ONCE=a.HANDLERTYPE_ONCE;h.HANDLERTYPE_ALWAYS=a.HANDLERTYPE_ALWAYS;}function d(i){var h=i.BonaPage;h.implementBonaPage=c;h.$=function(){b(this,"$",arguments,i);};h.$$=function(){b(this,"$$",arguments,i);};h.addHandler=function(){b(this,"addHandler",arguments,i);};h.removeHandler=function(){b(this,"removeHandler",arguments,i);};h.decodeHtml=function(){return b(this,"decodeHtml",arguments,i);};h.encodeHtml=function(){return b(this,"encodeHtml",arguments,i);};h.setPageState=function(){b(this,"setPageState",arguments,i);};h.addPageStateHandler=function(){b(this,"addPageStateHandler",arguments,i);};h.runPageStateHandlers=function(){b(this,"runPageStateHandlers",arguments,i);};h.setPageStateLoaded=function(){b(this,"setPageStateLoaded",arguments,i);};h.setPageStateUnloading=function(){b(this,"setPageStateUnloading",arguments,i);};h.setPageStateUnloaded=function(){b(this,"setPageStateUnloaded",arguments,i);};h.getEvent=function(){return b(this,"getEvent",arguments,i);};h.getEventTarget=function(){return b(this,"getEventTarget",arguments,i);};h.formatString=function(){return b(this,"formatString",arguments,i);};i.TopCacheProvider=TopCacheProvider;i.CacheItem=CacheItem;}function f(h){h.Array.prototype.remove=Array_prototype_remove;h.Array.prototype.clone=Array_prototype_clone;}function b(k,j,i,l){var h=i.length-1;if(WA.getTypeString(i[h])!=="object"){h=i.length++;i[h]={};}if(!i[h].window){i[h].window=l;}return a[j].apply(k,i);}})(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;};