var mask,targetLayer,s_popupframe="0"; function popup_open(a,b,d,e,c,f){s_popupframe="0";$("popup_title").innerHTML=b;$("popupFrame").src=a;$("divpop").style.width=d+45+"px";$("popupFrame").style.width=d+"px";$("popupFrame").style.height=e+"px";$("frepopup").style.display="";$("frepopup").style.width=d+45+"px";$("frepopup").style.height=e+90+"px";targetLayer="divpop";$(targetLayer).style.display="";if(typeof c!="undefined"){$(targetLayer).style.left=f+"px";$(targetLayer).style.top=c+"px";$("frepopup").style.left=f+"px";$("frepopup").style.top= c+25+"px"}else moveToCenter(c);typeof OpenPopup=="function"&&OpenPopup();typeof ShowBackground=="function"&&ShowBackground()}function DisplaySelect(a){var b=document.getElementsByTagName("SELECT");for(i=0;i<b.length;i++)b[i].style.visibility=a==0?"hidden":"visible"}var o_select=[]; function popup_close(){DisplaySelect(1);$(targetLayer).style.display="none";$("frepopup").style.display="none";mask&&mask.parentNode.removeChild(mask);mask=null;s_popupframe=="0"&&window.open("/common/noframe.html","popupFrame");typeof ClosePopup=="function"&&ClosePopup();typeof HideBackground=="function"&&HideBackground()} function moveToCenter(a){var b=document.documentElement.scrollTop;b+=typeof a=="undefined"?document.documentElement.clientHeight>$("divpop").offsetHeight?(document.documentElement.clientHeight-$("divpop").offsetHeight)/2:0:a;a=(document.body.clientWidth-$(targetLayer).clientWidth)/2+"px";$(targetLayer).style.left=a;$(targetLayer).style.top=b+"px";$("frepopup").style.left=a;$("frepopup").style.top=b+25+"px"}var cObj,sdX,sdY; function initdrag(a){if(arguments.length>1)try{event=arguments[1]}catch(b){}cObj=a;sdX=parseInt(a.style.left)-event.clientX;sdY=parseInt(a.style.top)-event.clientY;if(document.body.setCapture)document.body.setCapture();else window.captureEvents&&window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP)} function startdrag(){if(arguments.length>0)event=arguments[0];if(cObj){cObj.style.left=sdX+event.clientX+"px";cObj.style.top=sdY+event.clientY+"px";$("frepopup").style.left=sdX+event.clientX+"px";$("frepopup").style.top=sdY+event.clientY+25+"px"}}function enddrag(){if(cObj!=null){cObj=null;if(document.releaseCapture)document.releaseCapture();else window.releaseEvents&&window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP)}} function initializePop(){document.onmousemove=startdrag;document.onmouseup=enddrag;document.write('<iframe id="frepopup" style="position:absolute;z-index:1;top:10px;left:10px;display:none;" frameborder="0"></iframe><div id="divpop" style="position: absolute; z-index: 3; background-color: #fff;display:none;">\r\n <h5 style="cursor: move;" onmousedown="initdrag(this.parentNode, event)" >\r\n <img onclick="popup_close()" src="/images/close.gif" border="0" style="cursor:hand;" />\r\n <span id="popup_title"></span>\r\n </h5>\r\n <div class="text">\r\n <iframe id="popupFrame" name="popupFrame" src="" scrolling="no" frameborder="0" height="200" width="538"\r\n allowtransparency="true"></iframe>\r\n </div>\r\n</div>')} initializePop();