text: var WebApp=(function(){var A_=setTimeout;var B_=setInterval;var L2R=+1;var R2L=-1;var HEAD=0;var HOME=1;var BACK=2;var LEFT=3;var RIGHT=4;var TITLE=5;var _def,_headView,_head;var _webapp,_group,_bdo,_bdy,_file;var _maxw,_maxh;var _scrID,_scrolling,_scrAmount;var _opener,_radio,_hack;var _gg=-1;var _hh=-1;var _ii=[];var _jj=[];var _kk=[];var _ll=[];var _mm=[];var _nn=history.length;var _oo=0;var _pp=0;var _qq="";var _rr="";var _ss=0;var _tt=0;var _uu=1;var _vv=null;var _ww=1;var _xx="";var _yy=0;var _zz=B_(_e,250);var _00="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var _wkt;var _11=!!document.getElementsByClassName&&UA("WebKit");var _22=!!navigator.standalone;var _33=_N(window.ontouchstart);var _44={}
  var _55={}
  _55.load=[];_55.beginslide=[];_55.endslide=[];_55.beginasync=[];_55.willasync=[];_55.endasync=[];_55.orientationchange=[];_55.tabchange=[];var $pc={Proxy:function(url){_xx=url},Progressive:function(enable){_yy=enable},Opener:function(func){_opener=func?func:function(u){location=u}},Refresh:function(id){if(id!==false){var o=$(id);if(!o)_bb();else if(o.type=="radio")_UU([o]);else if(o.type=="checkbox")_BB(o.previousSibling,1)}
  _8();_1();_o(1)},HideBar:function(){if(_ww&&_n()){_ww=0;_A(1);A_(_A,0)}return false},Header:function(show,what,keep){if(keep!=-1)_D(show,keep);_g(_headView,0);_headView=$(what);_g(_headView,!show);_ll[HEAD].style.zIndex=show?2:"";return false},Tab:function(id,active){var o=$(id);_t(o,$$("li",o)[active])},AddEventListener:function(evt,handler){if(_N(_55[evt]))with(_55[evt])if(indexOf(handler)==-1)push(handler)},RemoveEventListener:function(evt,handler){if(_N(_55[evt]))with(_55[evt])splice(lastIndexOf(handler),1)},Back:function(){if(_pp)return(_pp=0);_radio=null;if(history.length-_nn==_hh){history.back()}else{_opener(_ii[_hh-1][1])}return false},Home:function(){if(history.length-_nn==_hh){history.go(-_hh)}else{_opener("#")}return(_pp=0)},Form:function(frm){var s,a,b,c,o,k,f,t;a=$(frm);b=$(_ii[_hh][0]);s=(a.style.display!="block");f=_U(a)=="form"?a:_a(a,"form");with(_ll[HEAD])t=offsetTop+offsetHeight;if(s)a.style.top=t+"px";if(f){k=f.onsubmit;if(!s){f.onsubmit=f.onsubmit(null,true)}else{f.onsubmit=function(e,b){if(b)return k;if(k)k(e);_K(e);$pc.Submit(this,null,e)}}
  }
  _CC();_g(a,s);_i(s,t+a.offsetHeight);o=$$("legend",a)[0];_8(s&&o?o.innerHTML:null);_vv=(s)?a:null;if(s){c=a;a=b;b=c}
  _F(a);_E(b,s);if(s)$pc.Header(s);else _D(!s);return false},Submit:function(frm){var a=arguments[1];var f=$(frm);if(f&&_U(f)!="form")f=_a(f,"form");if(f){var _=function(i,f){var q="";for(var n=0;n<i.length;n++){i[n].blur();if(i[n].name&&!i[n].disabled&&(f?f(i[n]):1))q+="&"+i[n].name+"="+encodeURIComponent(i[n].value)}return q}
  var q=_($$("input",f),function(i){with(i)return((_O(type,["text","password","hidden","search"])||(_O(type,["radio","checkbox"])&&checked)))}
  );q+=_($$("select",f));q+=_($$("textarea",f));q+="&"+(a&&a.id?a.id:"__submit")+"=1";q=q.substr(1);var u=(f.getAttribute("action")||self.location.href);if($A(f,"method")!="post"){u=_KK(u,q);q=null}
  _LL(u,null,q);if(_vv)$pc.Form(_vv)}return false},Postable:function(keys,values){var q="";for(var i=1;i<values.length&&i<=keys.length;i++)q+="&"+keys[i-1]+"="+encodeURIComponent(values[i]);return q.replace(/&=/g,"&").substr(1)},Request:function(url,prms,cb,async,loader){if(_hh===cb)return;var a=[url,prms];_q("beginasync",a);url=a[0];prms=a[1];cb=cb==-1?_MM():cb;var o=new XMLHttpRequest();var c=function(){_RR(o,cb,loader)}
  var m=prms?"POST":"GET";async=!!async;if(loader)$pc.Loader(loader,1);_mm.push([o,a]);url=_JJ(url,"__async","true");if(_hh>=0)url=_JJ(url,"__source",_ii[_hh][0]);url=_HH(url);o.open(m,url,async);if(prms)o.setRequestHeader("Content-Type","application/x-www-form-urlencoded");_q("willasync",a,o);o.onreadystatechange=(async)?c:null;o.send(prms);if(!async)c()},Loader:function(obj,show){var o,h,f;if(o=$(obj)){h=_W(o,"__lod");_C(o);if(show){if(h)$pc.Loader(obj,0);_Y(o,"__lod");_jj.push([o,_H(o)])}else if(h){_Z(o,"__lod");f=_jj.filter(function(f){return f[0]==o}
  )[0];_c(_jj,f);if(f=f[1]){clearInterval(f[1]);f[0].style.backgroundImage=""}}
  }return h},Player:function(src){if(!_n()){window.open(src)}else{if(_11)location="#"+Math.random();var w=$("__wa_media");var o=_R("iframe");o.id="__wa_media";o.src=src;_webapp.appendChild(o);_S(w)}return false},toString:function(){return "[WebApp.Net Framework]"}}
  function _A(h){h=h?h:0;_webapp.style.minHeight=(_tt+h)+"px";window.scrollTo(0,h)}
  function _B(s,w,dir,step,mn){s+=Math.max((w-s)/step,mn||4);return[s,(w+w*dir)/2-Math.min(s,w)*dir]}
  function _C(o){if(_W(o,"iMore")){var a=$$("a",o)[0];if(a&&a.title){var s=$$("span",a)[0]||a;o=s.innerHTML;s.innerHTML=a.title;a.title=o}}
  }
  function _D(s,k){if(_head){var h=_ll;k=(s)?[]:k||[];for(var i=1;i<h.length;i++)if(!_O(i,k))_g(h[i],s);if(!_O(BACK,k))_g(h[BACK],s&&!h[LEFT]&&_hh);if(!_O(HOME,k))_g(h[HOME],s&&!h[RIGHT]&&!_pp&&_hh>1)}}
  function _E(lay,ignore){if(_head){var a=$$("a",lay);var p=RIGHT;for(var i=0;i<a.length&&p>=LEFT;i++){if(_ll[p]&&!ignore){i--;p--;continue}if(_V(a[i].rel,"action")||_V(a[i].rel,"back")){_Y(a[i],p==RIGHT?"iRightButton":"iLeftButton");_g(a[i],1);_ll[p--]=a[i];_head.appendChild(a[i--])}}
  }}
  function _F(lay){if(_head){for(var i=LEFT;i<=RIGHT;i++){var a=_ll[i];if(a&&(_V(a.rel,"action")||_V(a.rel,"back"))){_g(a,0);_Z(a,i==RIGHT?"iRightButton":"iLeftButton");lay.insertBefore(a,lay.firstChild)}}
  _ll[RIGHT]=$("waRightButton");_ll[LEFT]=$("waLeftButton")}}
  function _G(o){var u;if(u=getComputedStyle(o,null).backgroundImage)return/(.+?(\d+)x(\d+)x)(\d+)(.*)/.exec(u)}
  function _H(o){var d,c,i;if(!(d=_G(o))){c=$$("*",o);for(i=0;i<c.length;i++){o=c[i];if(d=_G(o))break}}return(d)?[o,B_(_I,d[2],[o,d[4],d[3],(d[1]+"*"+d[5])])]:d}
  function _I(a){a[1]=parseInt(a[1])% parseInt(a[2])+1;a[0].style.backgroundImage=a[3].replace("*",a[1])}
  function _J(s){return s.replace(/<.+?>/g,"").replace(/^\s+|\s+$/g,"").replace(/\s{2,}/," ")}
  function _K(e){e.preventDefault();e.stopPropagation()}
  function _L(o){return _V(o.rev,"async")||_V(o.rev,"async:np")}
  function _M(o){return _V(o.rev,"media")}
  function _N(o){return(typeof o!="undefined")}
  function _O(o,a){return a.indexOf(o)!=-1}
  function $(i){return typeof i=="string"?document.getElementById(i):i}
  function $$(t,o){return(o||document).getElementsByTagName(t)}
  function $A(o,a){return(o.getAttribute(a)||"").toLowerCase()}
  function XY(elm){var mx=0;var my=0;while(elm){mx+=elm.offsetLeft;my+=elm.offsetTop;elm=elm.offsetParent}return{x:mx,y:my}}
  function _P(c){var s,h=$$("head")[0];s=_R("script");s.type="text/javascript";s.textContent=c;h.appendChild(s)}
  function _Q(c){var s,h=$$("head")[0];s=_R("style");s.type="text/css";s.textContent=c;h.appendChild(s)}
  function _R(t,c){var o=document.createElement(t);if(c)o.innerHTML=c;return o}
  function _S(p,c){if(p){if(!c){c=p;p=c.parentNode}
  p.removeChild(c)}}
  function _T(o){return _U(o)=="a"?o:_a(o,"a")}
  function _U(o){return o.localName.toLowerCase()}
  function _V(o,t){return o&&_O(t,o.toLowerCase().split(" "))}
  function _W(o,c){return o&&_O(c,_X(o))}
  function _X(o){return o.className.split(" ")}
  function _Y(o,c){var h=_W(o,c);if(!h)o.className+=" "+c;return h}
  function _Z(o){var c=_X(o);var a=arguments;for(var i=1;i<a.length;i++)_c(c,a[i]);o.className=c.join(" ")}
  function _a(o,t){while((o=o.parentNode)&&(o.nodeType!=1||_U(o)!=t));return o}
  function _b(o,c){while((o=o.parentNode)&&(o.nodeType!=1||!_W(o,c)));return o}
  function _c(a,e){var p=a.indexOf(e);if(p!=-1)a.splice(p,1)}
  function _d(o){var o=o.childNodes;for(var i=0;i<o.length;i++)if(o[i].nodeType==3)return o[i].nodeValue.replace(/^\s+|\s+$/g,"");return null}
  function _e(){if(!_webapp)_webapp=$("WebApp");if(!_group)_group=$("iGroup");var i=$("iLoader");if(i&&!_W(i,"__lod"))$pc.Loader(i,1)}
  function _f(){_ll[HEAD]=$("iHeader");_ll[BACK]=$("waBackButton");_ll[HOME]=$("waHomeButton");_ll[RIGHT]=$("waRightButton");_ll[LEFT]=$("waLeftButton");_ll[TITLE]=$("waHeadTitle");_bdy=document.body;_bdo=(_bdy.dir=="rtl")?-1:+1;_wkt=_N(_bdy.style.webkitTransform)}
  function _g(o,s){if(o=$(o))o.style.display=s?"block":"none"}
  function _h(o){if(o=o||$(_GG())){var z=$$("div",o);z=z[z.length-1];if(z&&(_W(z,"iList")||_W(z,"iFull")))z.style.minHeight=parseInt(_webapp.style.minHeight)-XY(z).y+"px"}}
  function _i(s,p){var o=$("__wa_shadow");o.style.top=p+"px";_webapp.style.position=s?"relative":"";_g(o,s)}
  function _j(o,l){if(o){_ii.splice(++_hh,_ii.length);_ii.push([o,!l?location.hash:("#_"+_def.substr(2)),_uu])}}
  function _k(o){var s=$$("script",o);while(s.length)_S(s[0]);s=$$("input",o);for(var i=0;i<s.length;i++)if(s[i].type=="radio"){s[i].name+="_cloned"}return o}
  function _l(){var s,i,c;while(_jj.length)$pc.Loader(_jj[0][0],0);s=$$("li");for(i=0;i<s.length;i++){_Z(s[i],"__sel","__tap")}}
  function _m(s,np){var ed=s.indexOf("#_");if(ed==-1)return null;var rs="";var bs=_II(s);if(!np)for(var i=0;i<bs[1].length;i++)rs+="/"+bs[1][i].split("=").pop();return bs[2]+rs}
  function _n(){return(UA("iPhone")||UA("iPod")||UA("Aspen"))}
  function UA(s){return _O(s,navigator.userAgent)}
  function _o(f){if(_oo)return;var w=(window.innerWidth>=_maxh)?_maxh:_maxw;if(w!=_ss){_ss=w;_webapp.className=(w==_maxw)?"portrait":"landscape";_q("orientationchange")}
  var h=window.innerHeight+(_hack?$(_GG()).offsetHeight:0);var m=((_ss==_maxw)?416:268);h=(h<m)?m:h;if(f||h!=_tt){_tt=h;_h()}}
  function _p(){if(_oo||_pp==location.href)return;_pp=0;var act=_GG();if(act==null)if(location.hash.length>0)return;else act=_ii[0][0];var cur=_ii[_hh][0];if(act!=cur){var i,pos=-1;for(i in _ii){if(_ii[i][0]==act){pos=parseInt(i);break}}if(pos!=-1&&pos<_hh){_0(cur,act,L2R)}else{_z(act)}}
  }
  function _q(evt,ctx,obj){var l=_55[evt].length;if(l==0)return true;var e={type:evt,target:obj||null,context:ctx||_DD(_ii[_hh][1]),windowWidth:_ss,windowHeight:_webapp.offsetHeight,}
  var k=true;for(var i=0;i<l;i++){k=k&&(_55[evt][i](e)==false?false:true)}return k}
  function _r(){var f,n,s=$$("script");for(n=0;n<s.length;n++){if(f=s[n].src.match(/(.*\/)Action\/Logic.js$/)){_file=f[1];break}}
  }
  function _s(){clearInterval(_zz);_e();_f();_bb();_TT();_SS();_YY("__wa_shadow");var i=$("iLoader");$pc.Loader(i,0);_S(i);_S($("iPL"));$pc.Opener(_opener);_maxw=screen.width;_maxh=screen.height;if(_maxw>_maxh){var l=_maxh;_maxh=_maxw;_maxw=l}
  _def=_EE()[0].id;_j(_def,1);var a=_GG();if(a!=_def){_j(a)}if(!a){a=_def}
  _cc(_group);_g(a,1);_E($(a));_g(_ll[BACK],(!_ll[LEFT]&&_hh));_g(_ll[HOME],(!_ll[RIGHT]&&_hh>1&&a!=_def));if(_ll[BACK]){_rr=_ll[BACK].innerHTML}if(_ll[TITLE]){_qq=_ll[TITLE].innerHTML;_8()}
  B_(_p,250);B_(_o,500);A_(_CC,500);A_(_ee,1000);_q("load");_webapp.addEventListener("touchstart",new Function(),false);(_33?_group:document).addEventListener(_33?"touchmove":"scroll",_ff,false)}
  function _t(ul,li,h,ev){if(!(_W(li,"__dis")||_V($$("a",li)[0].rel,"action"))){var c,s,al=$$("li",ul);for(var i=0;i<al.length;i++){c=(al[i]==li);if(c)s=i;_g(ul.id+i,(!h&&c));_Z(al[i],"__act")}
  _Y(li,"__act");if(ev)_q("tabchange",[s],ul)}}
  function _u(evt){_hack=evt.target.removeEventListener("blur",_u,false)}
  function _v(o){if(o)o.style.webkitTransform="translateX(0)"}
  function _w(e){if(_oo)return _K(e);var o=e.target;var n=_U(o);if(n=="label"){var f=$(o.getAttribute("for"));if(_W(f,"iToggle"))A_(_BB,1,f.previousSibling,1);return}
  _hack=_22&&((n=="input"&&_O(o.type,"text","search"))||n=="textarea");if(_hack)o.addEventListener("blur",_u,false);var li=_a(o,"li");if(li&&_W(li,"iRadio")){_Y(li,"__sel");_XX(li);_pp=location.href;_z("wa__radio");return _K(e)}
  var a=_T(o);if(a&&li&&_W(li,"__dis"))return _K(e);if(a&&a.onclick){var old=a.onclick;a.onclick=null;var val=old.call(a,e);A_(function(){a.onclick=old},0);if(val===false){if(li){_Y(li,_W(a,"iSide")?"__tap":"__sel");_x(li)}return _K(e)}}
  var ul=_a(o,"ul");var pr=!ul?null:ul.parentNode;var ax=a&&_L(a);if(a&&ul&&_W(pr,"iTab")){var h,t;t=_V(a.rel,"action");h=$(ul.id+"-loader");_g(h,0);if(!t&&ax){_g(h,1);$pc.Loader(h,1);_LL(a,function(o){_g(h,0);$pc.Loader(h,0);_g(_PP(o)[0],1);_t(ul,li,0,1)}
  )}else{h=t}
  _t(ul,li,!!h,!ax);if(!t)return _K(e)}if(a&&_O(a.id,["waBackButton","waHomeButton"])){if(a.id=="waBackButton")$pc.Back();else $pc.Home();return _K(e)}if(ul&&_W(ul,"iCheck")){if(_WW(a,ul)!==false){var al=$$("li",ul);for(var i=0;i<al.length;i++)_Z(al[i],"__act","__sel");_Y(li,"__act __sel");A_(_Z,1000,li,"__sel")}return _K(e)}if(ul&&!_W(li,"iMore")&&((_W(ul,"iMenu")||_W(pr,"iMenu"))||(_W(ul,"iList")||_W(pr,"iList")))){if(a&&!_W(a,"iButton")){var c=_Y(li,_W(a,"iSide")?"__tap":"__sel");if(ax){if(!c)_LL(a);return _K(e)}}
  }
  var dv=_b(o,"iMore");if(dv){if(!_W(dv,"__lod")){$pc.Loader(dv,1);if(ax)_LL(a)}return _K(e)}if(a&&_vv){if(_V(a.rel,"back")){$pc.Form(_vv,a);return _K(e)}if(_V(a.rel,"action")){$pc.Submit(_vv,a,e);return _K(e)}}if(a&&_M(a)){_x(li);$pc.Player(a.href,a);return _K(e)}if(ax){_LL(a);_K(e)}else if(a&&!a.target){if(_y(a.href,"http:","https:")){_opener(a.href);_K(e)}
  _x(li)}}
  function _x(li){if(li)A_(_Z,1000,li,"__sel","__tap")}
  function _y(s1){var r,i,a=arguments;for(i=1;i<a.length;i++)if(s1.toLowerCase().indexOf(a[i])==0)return 1}
  function _z(to){var h=_ii[_hh][0];if(h!=to)_0(h,to)}
  function _0(src,dst,dir){if(_oo)return;_oo=1;_CC();if(dst==_ii[0][0])_nn=history.length;dir=dir||R2L;src=$(src);dst=$(dst);var h;if(_wkt&&_head){h=_k(_head.cloneNode(true))}
  _gg=_hh;if(dir==R2L)_j(dst.id);else while(_hh&&_ii[--_hh][0]!=dst.id){}
  _9();_F(src);_E(dst);_AA();if(h)_ll[HEAD].appendChild(h);_1((dir!=R2L)?"":(_pp?"":_J(src.title))||_rr);_8(_pp?dst.title:null);_6(src,dst,dir)}
  function _1(txt){if(_ll[BACK]){if(!txt&&_hh)txt=_J($(_ii[_hh-1][0]).title)||_rr;if(txt)_ll[BACK].innerHTML=txt}}
  function _2(m){var s=_DD(_ii[_gg][1]);var d=_DD(_ii[_hh][1]);var r=(m<0&&!!_pp)?["wa__radio"]:d;return[s,d,m,r]}
  function _3(o,t,i){if(o){if(t)t="translate3d("+t+",0,0)";o.style.webkitTransitionProperty=(i)?"none":"";o.style.webkitTransform=t}}
  function _4(o){return o?getComputedStyle(o,null).webkitTransitionDuration:"0s"}
  function _5(){var r,t,i,j,a=arguments;r=0;for(i=0;i<a.length;i++){t=_4(a[i]).split(',');for(j=0;j<t.length;j++)r=Math.max(r,parseFloat(t[j])*1000)}return r}
  function _6(src,dst,dir){_q("beginslide",_2(dir));_bb(dst);_g(src,1);_g(dst,1);if(!_wkt){_7(src,dst,dir);return}
  var b=_group;var w=_webapp;var g=dir*_bdo;b.style.height=(_tt-b.offsetTop)+"px";_Y(w,"__ani");_3(src,"0",1);_3(dst,(g*-100)+"%",1);var h,hcs,hos,tim=_5(src,dst,_head,_ll[TITLE]);if(_head){h=_ll[HEAD].lastChild;hcs=h.style;hos=_head.style;hcs.opacity=1;hos.opacity=0;_3(h,"0",1);_3(_head,(g*-20)+"%",1);_3(_ll[TITLE],(g==R2L?60:-20)+"%",1)}
  A_(function(){_h(dst);_3(dst,"0");_3(src,(g*100)+"%");if(h){hcs.opacity=0;hos.opacity=1;_3(h,(g*30)+"%");_3(_head,"0");_3(_ll[TITLE],"0")}
  A_(function(){if(h)_S(_ll[HEAD],h);_Z(w,"__ani");b.style.height="";_7(src,dst,dir)},tim)},0)}
  function _7(src,dst,dir){_l();_g(src,0);if(_wkt){_v(dst);_v(src);_v(_head);_v(_ll[TITLE])}
  A_(_CC,0,(dir==L2R)?_ii[_hh+1][2]:null);A_(_ee,0);_q("endslide",_2(dir));_oo=0;_gg=-1}
  function _8(title){var o;if(o=_ll[TITLE]){o.innerHTML=title||_FF($(_GG()))||_qq}}
  function _9(){if(_vv)$pc.Form(_vv);_g(_headView,0)}
  function _AA(){_D(1)}
  function _BB(o,dontChange){var c=o,i=$(c.title);var txt=i.title.split("|");if(!dontChange)i.click();((i.disabled)?_Y:_Z)(c,"__dis");o=c.firstChild.nextSibling;with(c.lastChild){innerHTML=txt[i.checked?0:1];if(i.checked){o.style.left="";o.style.right="-1px";_Y(c,"__sel");style.left=0;style.right=""}else{o.style.left="-1px";o.style.right="";_Z(c,"__sel");style.left="";style.right=0}}
  }
  function _CC(to){_uu=window.pageYOffset;var h=to?to:Math.min(50,_uu);var s=to?Math.max(1,to-50):1;var d=to?-1:+1;while(s<=h){var z=_B(s,h,d,6,2);s=z[0];window.scrollTo(0,z[1])}if(!to)$pc.HideBar()}
  function _DD(loc){if(loc){var pos=loc.indexOf("#_");var vis=[];if(pos!=-1){loc=loc.substring(pos+2).split("/");vis=_EE().filter(function(l){return l.id=="wa"+loc[0]}
  )}if(vis.length){loc[0]=vis[0].id;return loc}}return[]}
  function _EE(){var lay=[];var src=_group.childNodes;for(var i=0;i<src.length;i++)if(src[i].nodeType==1&&_W(src[i],"iLayer"))lay.push(src[i]);return lay}
  function _FF(o){return(!_hh&&_qq)?_qq:o.title}
  function _GG(){var h=location.hash;return!h?_def:_DD(h)[0]}
  function _HH(url){var d=url.match(/[a-z]+:\/\/(.+:.*@)?([a-z0-9-\.]+)((:\d+)?\/.*)?/i);return(!_xx||!d||d[2]==location.hostname)?url:_JJ(_xx,"__url",url)}
  function _II(u){var s,q,d;s=u.replace(/&amp;/g,"&");d=s.indexOf("#");d=s.substr(d!=-1?d:s.length);s=s.substr(0,s.length-d.length);q=s.indexOf("?");q=s.substr(q!=-1?q:s.length);s=s.substr(0,s.length-q.length);q=!q?[]:q.substr(1).split("&");return[s,q,d]}
  function _JJ(u,k,v){u=_II(u);var q=u[1].filter(function(o){return o&&o.indexOf(k+"=")!=0}
  );q.push(k+"="+encodeURIComponent(v));return u[0]+"?"+q.join("&")+u[2]}
  function _KK(u,q){u=_II(u);u[1].push(q);return u[0]+"?"+u[1].join("&")+u[2]}
  function _LL(item,cb,q){var h,o,u,i;i=(typeof item=="object");u=(i?item.href:item);o=_a(item,"li");if(!cb)cb=_MM(u,_V(item.rev,"async:np"));$pc.Request(u,q,cb,true,o,(i?item:null))}
  function _MM(i,np){return function(o){var u=i?_m(i,np):null;var g=_PP(o);if(g&&(g[1]||u)){_opener(g[1]||u)}else{A_(_l,250)}return null}}
  function _NN(o){var nds=o.childNodes;var txt="";for(var y=0;y<nds.length;y++)txt+=nds[y].nodeValue;return txt}
  function Go(g){return "#_"+g.substr(2)}
  function _OO(i){if(i.substr(0,2)=="wa"){var p=_hh;if(p&&i==_ii[0][0])_ii[1][2]=0;while(p&&_ii[--p][0]!=i){}if(p)_ii[p+1][2]=0}}
  function _PP(o){if(o.responseXML){o=o.responseXML.documentElement;var s,t,k,a=_GG();var g=$$("go",o);g=(g.length!=1)?null:g[0].getAttribute("to");var f,p=$$("part",o);if(p.length==0)p=[o];for(var z=0;z<p.length;z++){var dst=$$("destination",p[z])[0];if(!dst)break;var mod=dst.getAttribute("mode");var txt=_NN($$("data",p[z])[0]);var i=dst.getAttribute("zone");if(dst.getAttribute("create")=="true"&&i.substr(0,2)=="wa"&&!$(i)){var n=_R("div");n.className="iLayer";n.id=i;_group.appendChild(n)}
  f=f||i;g=g||dst.getAttribute("go");i=$(i||dst.firstChild.nodeValue);if(!k&&a==i.id){_9();_F(i);k=i}
  _OO(i.id);_QQ(i,txt,mod)}if(t=$$("title",o)[0]){var s=t.getAttribute("set");$(s).title=_NN(t);if(a==s)_8()}if(k){_E(k);_AA()}
  var e=$$("script",o)[0];if(e)_P(_NN(e));_bb(a);_1();if(g==a)g=null;if(!g)_ee();return[f,g?Go(g):null]}
  throw "Invalid asynchronous response received."}
  function _QQ(o,c,m){c=_R("div",c);c=c.cloneNode(true);_cc(c);if(m=="replace"||m=="append"){if(m!="append")while(o.hasChildNodes())_S(o,o.firstChild);while(c.hasChildNodes())o.appendChild(c.firstChild)}else{var p=o.parentNode;var w=(m=="before")?o:o.nextSibling;if(m=="self")_S(p,o);while(c.hasChildNodes())p.insertBefore(c.firstChild,w)}}
  function _RR(o,cb,lr){if(o.readyState!=4)return;var er,ld,ob;if(ob=_mm.filter(function(a){return o==a[0]}
  )[0]){_q("endasync",ob,ob.shift());_c(_mm,ob)}
  er=(o.status!=200&&o.status!=0);if(!er)try{if(cb)ld=cb(o,lr,_MM())}
  catch(ex){er=ex;console.error(er)}if(lr){$pc.Loader(lr,0);if(er)_Z(lr,"__sel","__tap")}}
  function _SS(){var hd=_ll[HEAD];if(hd){var dv=_R("div");dv.style.opacity=1;while(hd.hasChildNodes())dv.appendChild(hd.firstChild);hd.appendChild(dv);_head=dv;_g(dv,1);_g(_ll[TITLE],1)}}
  function _TT(){var o=$$("ul");for(var i=0;i<o.length;i++){var p=o[i].parentNode;if(p&&_W(p,"iTab")){_g(o[i].id+"-loader",0);_t(o[i],$$("li",o[i])[0])}}
  }
  function _UU(r,p){for(var j=0;j<r.length;j++){with(r[j])if(type=="radio"&&(checked||getAttribute("checked"))){checked=true;p=$$("span",p||_a(r[j],"li"))[0];p.innerHTML=_d(parentNode);break}}
  }
  function _VV(p){var o=$$("li",p);for(var i=0;i<o.length;i++){if(_W(o[i],"iRadio")&&!_W(o[i],"__done")){var lnk=_R("a");var sel=_R("span");var inp=$$("input",o[i]);lnk.appendChild(sel);while(o[i].hasChildNodes())lnk.appendChild(o[i].firstChild);o[i].appendChild(lnk);lnk.href="#";_Y(o[i],"__done");_UU(inp,o[i])}}
  var s="wa__radio";if(!$(s)){var d=_R("div");d.className="iLayer";d.id=s;_group.appendChild(d)}}
  function _WW(a,u){var p=_radio;var x=$$("input",p);var y=$$("a",u);for(var i=0;i<y.length;i++){if(y[i]==a){if(x[i].disabled)return false;var c=x[i].onclick;if(c&&c()===false)return false;x[i].checked=true;_UU([x[i]]);if($A(p,"value")=="autoback")A_($pc.Back,0);break}}
  }
  function _XX(p){var o=$$("input",p);var dv=_R("div");var ul=_R("ul");ul.className="iCheck";_radio=p;for(var i=0;i<o.length;i++){if(o[i].type=="radio"){var li=_R("li");var a=_R("a",o[i].nextSibling.nodeValue);a.href="#";li.appendChild(a);ul.appendChild(li);if(o[i].checked)_Y(li,"__act");if(o[i].disabled)_Y(li,"__dis")}}
  dv.className="iMenu";dv.appendChild(ul);o=$("wa__radio");if(o.firstChild)_S(o,o.firstChild);o.title=_d(p.firstChild);o.appendChild(dv)}
  function _YY(i){var o=_R("div");o.id=i;_webapp.appendChild(o);return o}
  function _ZZ(p){var o=$$("input",p);for(var i=0;i<o.length;i++){if(o[i].type=="checkbox"&&_W(o[i],"iToggle")&&!_W(o[i],"__done")){o[i].id=o[i].id||"__"+Math.random();o[i].title=o[i].title||"ON|OFF";var txt=o[i].title.split("|");var b1=_R("b","&nbsp;");var b2=_R("b");var i1=_R("i",txt[1]);b1.className="iToggle";b1.title=o[i].id;b1.appendChild(b2);b1.appendChild(i1);o[i].parentNode.insertBefore(b1,o[i]);b1.onclick=function(){_BB(this)}
  _BB(b1,1);_Y(o[i],"__done")}}
  }
  function _aa(o){var x11,x12,y11,y12;var x21,x22,y21,y22;var p=XY(o);x11=p.x;y11=p.y;x12=x11+o.offsetWidth-1;y12=y11+o.offsetHeight-1;x21=window.pageXOffset;y21=window.pageYOffset;x22=x21+_ss-1;y22=y21+_tt-1;return!(x11>x22||x12<x21||y11>y22||y12<y21)}
  function _bb(l){l=$(l||_GG());_ZZ(l);_VV(l)}
  function _cc(c){if(_yy){var p,tmp=$$("img",c);for(var i=0;i<tmp.length;i++){if((p=_a(tmp[i],"a"))&&(_V(p.rel,"action")||_V(p.rel,"back")))continue;tmp[i].setAttribute("load",tmp[i].src);tmp[i].src=_00}}
  }
  function _dd(){if(_scrAmount-window.pageYOffset==0){_scrID=clearInterval(_scrID);_ee()}}
  function _ee(){if(_yy){var img=$$("img",$(_GG()));for(var i=0;i<img.length;i++){var o=img[i].getAttribute("load");if(o&&_aa(img[i])){img[i].src=o;img[i].removeAttribute("load")}}
  }}
  function _ff(){_ww=1;if(_yy&&!_oo){if(!_scrolling){_scrolling=true;A_(function(){_scrAmount=window.pageYOffset;_scrolling=false},500)}if(!_scrID)_scrID=B_(_dd,1000)}}
  _r();addEventListener("load",_s,true);addEventListener("click",_w,true);return $pc}
  )();var WA=WebApp;
  
  // Form Validation
  function validateAndPostBlog(formAction) {
      var subject = document.forms['formBlog']['subject'];
      var desc = document.forms['formBlog']['description'];
      
      document.forms['formBlog'].action = formAction;
      
      if (isEmpty(subject, "Please provide a Subject."))
          return false;
      if (isEmpty(desc, "Please provide a Description."))
          return false;
      WA.Submit('formBlog');
      return true;
  }
  
  function validateAndPostCalendar(formAction) {
      var event = document.forms['formCalendar']['event'];
      var date = document.forms['formCalendar']['date'];
      var time = document.forms['formCalendar']['time'];
      var desc = document.forms['formCalendar']['description'];
      
      document.forms['formCalendar'].action = formAction;
      
      if (isEmpty(event, "Please provide an Event."))
          return false;
      if (isEmpty(date, "Please provide a Date."))
          return false;
      if (isEmpty(time, "Please provide a Time."))
          return false;
      if (isEmpty(desc, "Please provide a Description."))
          return false;
      WA.Submit('formCalendar');
      return true;
  }
  
  function isEmpty(elem, helperMsg){
  	if(elem.value.length == 0){
  		alert(helperMsg);
  		elem.focus(); // set the focus to this input
  		return true;
  	}
  	return false;
  }
  