var orgApacheMyfacesPopupCurrentlyOpenedPopup;var orgApacheMyfacesPopupFrameUnder;function orgApacheMyfacesPopupfixIE(){if(document.all){if(orgApacheMyfacesPopupCurrentlyOpenedPopup==null){return false;}var B=document.getElementById(orgApacheMyfacesPopupCurrentlyOpenedPopup.id+"_IFRAME");if(B==null){orgApacheMyfacesPopupFrameUnder=document.createElement("<iframe src='javascript:false;' id='"+orgApacheMyfacesPopupCurrentlyOpenedPopup.id+"_IFRAME' style='visibility:hidden; position: absolute; top:0px;left:0px; filter:alpha(Opacity=0);' frameborder='0' scroll='none' />");document.body.insertBefore(orgApacheMyfacesPopupFrameUnder);}else{orgApacheMyfacesPopupFrameUnder=B;}var A=orgApacheMyfacesPopupCurrentlyOpenedPopup;B=orgApacheMyfacesPopupFrameUnder;if(A!=null&&(A.style.display=="block")){A.style.zIndex=99;B.style.zIndex=A.style.zIndex-1;B.style.width=A.offsetWidth;B.style.height=A.offsetHeight;B.style.top=A.style.top;B.style.left=A.style.left;B.style.marginTop=A.style.marginTop;B.style.marginLeft=A.style.marginLeft;B.style.marginRight=A.style.marginRight;B.style.marginBottem=A.style.marginBottom;B.style.display="block";B.style.visibility="visible";}else{B.style.display="none";}}return false;}function orgApacheMyfacesPopup(A,C,B){this.popupId=A;this.displayAtDistanceX=C;this.displayAtDistanceY=B;this.display=orgApacheMyfacesPopupDisplay;this.hide=orgApacheMyfacesPopupHide;this.redisplay=orgApacheMyfacesPopupRedisplay;}function orgApacheMyfacesPopupDisplay(C){if(orgApacheMyfacesPopupCurrentlyOpenedPopup!=null){orgApacheMyfacesPopupCurrentlyOpenedPopup.style.display="none";}var B;var A;var E;if(document.all){if(orgApacheMyfacesPopupFrameUnder!=null){orgApacheMyfacesPopupFrameUnder.style.display="none";}B=window.event.srcElement;A=window.event.clientX;A+=orgApacheMyfacesPopupGetScrollingX();E=window.event.clientY;E+=orgApacheMyfacesPopupGetScrollingY();}else{B=C.target;A=C.pageX;E=C.pageY;}A+=this.displayAtDistanceX;E+=this.displayAtDistanceY;var D=document.getElementById(this.popupId);if(D.style.display!="block"){D.style.display="block";D.style.left=""+A+"px";D.style.top=""+E+"px";orgApacheMyfacesPopupCurrentlyOpenedPopup=D;}orgApacheMyfacesPopupfixIE();}function orgApacheMyfacesPopupHide(){var A=document.getElementById(this.popupId);A.style.display="none";if(document.all&&(orgApacheMyfacesPopupFrameUnder!=null)){orgApacheMyfacesPopupFrameUnder.style.display="none";}orgApacheMyfacesPopupfixIE();}function orgApacheMyfacesPopupRedisplay(){var A=document.getElementById(this.popupId);A.style.display="block";orgApacheMyfacesPopupCurrentlyOpenedPopup=A;orgApacheMyfacesPopupfixIE();}function orgApacheMyfacesPopupGetScrollingX(){if(self.pageXOffset){return self.pageXOffset;}else{if(document.documentElement&&document.documentElement.scrollLeft){return document.documentElement.scrollLeft;}else{if(document.body){return document.body.scrollLeft;}else{return 0;}}}}function orgApacheMyfacesPopupGetScrollingY(){if(self.pageYOffset){return self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop;}else{if(document.body){return document.body.scrollTop;}else{return 0;}}}}