var isMSIE=(navigator.appName=="Microsoft Internet Explorer");var isMSIE6=isMSIE&&(navigator.userAgent.indexOf("MSIE 6")!=-1);function beginDragId(c,b,d){var a=document.getElementById(c);if(a){beginDrag(a,b,d)}}function beginDrag(f,a,m){var c=parseInt(f.offsetLeft);var d=parseInt(f.offsetTop);var h=a.clientX-c;var i=a.clientY-d;var k=(new Date()).getTime();if(document.addEventListener){document.addEventListener("mousemove",j,true);document.addEventListener("mouseup",l,true)}else{if(document.attachEvent){document.attachEvent("onmousemove",j);document.attachEvent("onmouseup",l)}else{var b=document.onmousemove;var g=document.onmouseup;document.onmousemove=j;document.onmouseup=l}}if(a.stopPropagation){a.stopPropagation()}else{window.event.cancelBubble=true}if(a.preventDefault){a.preventDefault()}else{window.event.returnValue=false}function j(n){if(!n){n=window.event}f.style.left=(n.clientX-h)+"px";f.style.top=(n.clientY-i)+"px";if(n.stopPropagation){n.stopPropagation()}else{window.event.cancelBubble=true}if(n.preventDefault){a.preventDefault()}else{window.event.returnValue=false}var o={x:h,y:i};if(m){m.MoveEvent(n,o)}h=o.x;i=o.y}function l(o){if(!o){o=window.event}if(document.removeEventListener){document.removeEventListener("mouseup",l,true);document.removeEventListener("mousemove",j,true)}else{if(document.detachEvent){document.detachEvent("onmouseup",l);document.detachEvent("onmousemove",j)}else{document.onmouseup=g;document.onmousemove=b}}if(c==parseInt(f.offsetLeft)&&d==parseInt(f.offsetTop)){var n=(new Date()).getTime();if(n<(k+200)){if(m){m.UpEvent(o,false)}return}}if(m){m.UpEvent(o,true)}if(o.stopPropagation){o.stopPropagation()}else{o.cancelBubble=true}}return l}function beginResizeId(d,c,b){var a=document.getElementById(d);if(a){beginResize(a,c,b)}}function beginResize(a,b,g){if(!b){b=window.event}var f=b.clientX;var h=b.clientY;var c=a.offsetWidth;var k=a.offsetHeight;if(isMSIE6&&g){k+=g}if(document.addEventListener){document.addEventListener("mousemove",j,true);document.addEventListener("mouseup",l,true)}else{if(document.attachEvent){document.attachEvent("onmousemove",j);document.attachEvent("onmouseup",l)}else{var d=document.onmousemove;var i=document.onmouseup;document.onmousemove=j;document.onmouseup=l}}if(b.stopPropagation){b.stopPropagation()}else{b.cancelBubble=true}if(b.preventDefault){b.preventDefault()}else{b.returnValue=false}var m=true;function j(n){if(!n){n=window.event}a.style.width=(c+n.clientX-f)+"px";a.style.height=(k+n.clientY-h)+"px";if(n.stopPropagation){n.stopPropagation()}else{n.cancelBubble=true}if(n.preventDefault){b.preventDefault()}else{n.returnValue=false}}function l(n){if(!n){n=window.event}if(document.removeEventListener){document.removeEventListener("mouseup",l,true);document.removeEventListener("mousemove",j,true)}else{if(document.detachEvent){document.detachEvent("onmouseup",l);document.detachEvent("onmousemove",j)}else{document.onmouseup=i;document.onmousemove=d}}if(n.stopPropagation){n.stopPropagation()}else{n.cancelBubble=true}if(n.preventDefault){b.preventDefault()}else{n.returnValue=false}}}Number.prototype.NaN0=function(){return isNaN(this)?0:this};function getAbsPosition(d,a){var c=0;var b=0;while(d.offsetParent){if(a&&(" "+d.className+" ").indexOf(" "+a+" ")!==-1){return{left:c,top:b}}c+=d.offsetLeft+(d.currentStyle?(parseInt(d.currentStyle.borderLeftWidth)).NaN0():0);b+=d.offsetTop+(d.currentStyle?(parseInt(d.currentStyle.borderTopWidth)).NaN0():0);d=d.offsetParent}c+=d.offsetLeft+(d.currentStyle?(parseInt(d.currentStyle.borderLeftWidth)).NaN0():0);b+=d.offsetTop+(d.currentStyle?(parseInt(d.currentStyle.borderTopWidth)).NaN0():0);return{left:c,top:b}}function GeneralEventEngine(){var a=this;a.Registry=new Array();a.Zindex=20025;a.popupsOpen=0;a.otherOnLoad=window.onload;window.onload=function(){a.onPageLoad()};a.otherOnUnload=window.onunload;window.onunload=function(){a.onPageUnload()};a.pageLoaded=false}GeneralEventEngine.prototype={onPageLoad:function(){var a,b;if(this.otherOnLoad){this.otherOnLoad()}this.pageLoaded=true;for(a in this.Registry){b=this.Registry[a];if(b.onPageLoad){b.onPageLoad()}}},onPageUnload:function(){var a,b;if(this.otherOnUnload){this.otherOnUnload()}this.pageLoaded=false;for(a in this.Registry){b=this.Registry[a];if(b.onPageUnload){b.onPageUnload()}}},register:function(b,a){this.Registry[b]=a;if(this.pageLoaded&&a.onPageLoad){a.onPageLoad()}},lookup:function(a){return this.Registry[a]},Drag:function(d,c){var b=d.parentNode;b.style.zIndex=++this.Zindex;beginDrag(b,c)},Click:function(d,c){var b=d.parentNode;b.style.zIndex=++this.Zindex},Send:function(b,d,a){var c=this.Registry[d];if(c&&c.Send){c.Send(b,a)}},ActionLink:function(d,g,b,c,a){var f=this.Registry[g];if(f&&f.ActionLink){f.Send(d,b,c,a)}},Close:function(a,c){var b=this.Registry[c];if(b&&b.Close){b.Close(a)}},Expand:function(a,c){var b=this.Registry[c];if(b&&b.Expand){b.Expand(a)}},Config:function(b,d,a){var c=this.Registry[d];if(c&&c.Config){c.Config(b,a)}}};GeneralEvent=new GeneralEventEngine;function popupAjaxForm(g,c,a,b,d){this.Registry=new Array();this.id=g;this.xdomExtension=c;this.callbackClass=a;this.requestURL=b;this.formID=d;this.popupOpen=false;GeneralEvent.register(g,this)}popupAjaxForm.prototype={onPageLoad:function(){var a=this,b;b=a.element=document.getElementById(a.id);if(a.formID){a.formElement=document.getElementById(a.formID)}a.xdomAjax=new XdomAjax(b,"VerifiedControl",a.requestURL);a.xdomAjax.requestor=a;a.busy=new BusyIndicator()},register:function(a){this.Registry.push(a)},getElement:function(){var a=this,b;if(!(b=a.element)){a.onPageLoad();b=a.element}return b},Close:function(){var b=this,d=GeneralEvent,a,c;b.element.className="xdomAjaxPopupShrink";b.popupOpen=false;d.popupsOpen--;if(d.popupsOpen>0){return}d.popupsOpen=0;for(a=0;a<b.Registry.length;a++){if((c=b.Registry[a]).popupFormClose){c.popupFormClose(b)}}},Expand:function(c,h,g){var b=this,a,f=b.getElement(),d;if(b.popupOpen){return}b.popupOpen=true;h=h?h:0;g=g?g:100;f.className="xdomAjaxPopupExpand";f.style.top=h+"px";f.style.left=g+"px";for(a=0;a<b.Registry.length;a++){if((d=b.Registry[a]).popupFormExpand){d.popupFormExpand(b)}}b.Adjust(f,h,g)},Adjust:function(d,l,f){var p=this,j=p.getElement(),m,c,g,i,k,o,a,n,b,h;b=l=l?l:0;h=f=f?f:100;m=Utilities.getAbsPosition(j,null,true);c=Utilities.IE?document.documentElement.clientHeight:window.innerHeight;g=Utilities.IE?document.documentElement.clientWidth:window.innerWidth;o=Utilities.IE?document.documentElement.scrollTop:window.pageYOffset;sl=Utilities.IE?document.documentElement.scrollLeft:window.pageXOffset;i=o+c;k=sl+g;if(m.bottom>i){n=i-m.bottom;j.style.top=(b=l+n)+"px"}if(m.right>k){n=k-m.right;j.style.left=(h=f+n)+"px"}m=Utilities.getAbsPosition(j,null,true);if(m.top<0){b-=m.top}j.style.top=b+"px";if(m.left<0){h-=m.left}j.style.left=h+"px";GeneralEvent.popupsOpen++},Config:function(c,b){var a;for(a in b){this[a]=b[a]}},ActionLink:function(d,b,c,a){this.Send(d,b,c,a)},Send:function(i,c,d,b){var g=this,h,a;if(g.busy){g.busy.show()}if(c&&(h=xdom_getElementById(c))){g.formElement=h}if(a=g.formElement.SecureLogin){a.AjaxFormSend(this,d,b);return}g.DoSend(d,b)},DoSend:function(c,b){var f=this,h,a,d,g;h="callback="+f.callbackClass+"&xdomExtension="+f.xdomExtension+"&controlID="+f.id+"&controlValue=send";if((a=f.CallbackObject)&&a.SendRequest){h=a.SendRequest(f,h)}if((a=f.SendRequestEvent)&&typeof a=="function"){h=a(f,h)}for(d=0;d<f.Registry.length;d++){if((g=f.Registry[d]).popupFormSend){h=g.popupFormSend(f,h)}}this.xdomAjax.sendRequest(h,xdom.formPost(f.formElement,c,b))},serverResponse:function(f,c){var b=this,g,a,d;b.errmsg=f.errmsg;b.ok=f.err=="0";if((cb=b.CallbackObject)&&cb.ServerResponse){cb.ServerResponse(b,f,c)}if((cb=b.ServerResponseEvent)&&typeof cb=="function"){cb(b,f,c)}for(a=0;a<b.Registry.length;a++){if((d=b.Registry[a]).popupFormServerResponse){d.popupFormServerResponse(b,f,c)}}if(b.busy){b.busy.hide()}if(b.errmsg){alert(b.errmsg)}if(b.ok){this.Close(null)}},loadPopup:function(f,d,c){var k=this,h,a,g,i,b,j;h=xdom_GetFirstElementWithTagName(d,f);if(!h){return null}a=h.getAttribute("id");i=xdom_getElementById(a);if(a&&i){if(b=xdom_getElementById(a+"_title")&&(j=h.getAttribute("title"))){b.innerHTML=decodeURIComponent(j)}if(g=xdom_getElementById(a+"_body")){j=decodeURIComponent(decodeURIComponent(xdom_GetData(h)));g.innerHTML=j}if(j=h.getAttribute("width")){i.style.width=j}if(c){k.Expand(i)}else{k.Adjust(i)}return i}return null}};function expandElement(b,i,h,f,c,a,j,d){var g;if(!j){j="px"}this.unit=j;this.id=b;if(!(this.element=g=document.getElementById(b))){return this}this.pw=g.parentNode.offsetWidth;this.ph=g.parentNode.offsetHeight;g.style.width=i+j;this.sw=i;this.ew=h;g.style.height=f+j;this.sh=f;this.eh=c;this.ms=a;this.inc=Math.round(2000/a)+1;this.delay=d;GeneralEvent.register(b,this)}expandElement.prototype={onPageLoad:function(){var a=this;if(a.delay){this.delayVar=setInterval(function(){a.start()},a.delay)}else{a.start()}},start:function(){var a=this;if(this.delayVar){clearInterval(this.delayVar)}this.timerVar=setInterval(function(){a.expand()},this.ms/100);this.pct=0},expand:function(){var c=this.pct=this.pct+this.inc;if(c>=100){c=100;clearInterval(this.timerVar)}var a=this.sw+((this.ew-this.sw)*c/100);var b=this.sh+((this.eh-this.sh)*c/100);if(this.unit=="%"){a=this.pw*a/100;b=this.ph*b/100}this.element.style.width=a+"px";this.element.style.height=b+"px"}};function uncoverElement(h,c,g,a,b,d){this.id=h;if(!(this.element=e=document.getElementById(h))){return this}this.ms=c;this.inc=Math.round(2000/c)+1;e.style.visibility="hidden";if(d){var f=e.parentNode;f.style.width=f.offsetWidth+"px";f.style.height=f.offsetHeight+"px"}this.ew=e.offsetWidth;this.eh=e.offsetHeight;this.sw=g?0:this.ew;this.sh=a?0:this.eh;e.style.width=this.sw+"px";e.style.height=this.sh+"px";e.style.overflow="hidden";e.style.visibility="visible";this.delay=b;GeneralEvent.register(h,this)}uncoverElement.prototype={onPageLoad:function(){var a=this;if(a.delay){this.delayVar=setInterval(function(){a.start()},a.delay)}else{a.start()}},start:function(){var a=this;if(this.delayVar){clearInterval(this.delayVar)}this.timerVar=setInterval(function(){a.expand()},this.ms/100);this.pct=0},expand:function(){var c=this.pct=this.pct+this.inc;var a=this.sw+((this.ew-this.sw)*c/100);var b=this.sh+((this.eh-this.sh)*c/100);if(c>=100){c=100;clearInterval(this.timerVar);this.element.style.overflow="visible";this.element.style.height="auto";this.element.style.width=a+"px";return}this.element.style.width=a+"px";this.element.style.height=b+"px"}};