UE.registerUI("seapoaaddpic",function(a,d){a.registerCommand(d,{execCommand:function(){}});var c=new UE.ui.Button({name:d,title:"\u6dfb\u52a0\u56fe\u7247",cssRules:"background-position: -726px -77px;",onclick:function(){var b=window.frameElement.id,b=a.getOpt("fileDialog")+"\x26displaytype\x3deditpic\x26upfileType\x3dimage\x26selectnum\x3d50\x26inputname\x3d"+a.key+"\x26iframes_name\x3d"+b;parent.espcms_dialog(a.getOpt("picDialog_title"),"iframe",b,"830px","540px","dialogname")}});a.addListener("selectionchange",function(){var b=a.queryCommandState(d);-1==b?(c.setDisabled(!0),c.setChecked(!1)):(c.setDisabled(!1),c.setChecked(b))});return c});