!function(h){function m(){return top.ckeditor&&top.ckeditor.zindex?(top.ckeditor.zindex').css({position:"absolute",left:"-10000px",top:"-10000px"});this.instancedialog=f,l.append(f),this.resetpos=function(){if(n.left||n.top)f.css({left:n.left,top:n.top});else if(n.center){var e=(d-f.width())/2,t=(u-f.height())/2;u'+(a?"":"")+""),h("#"+o).css({left:0,top:0,width:"100%",height:h(window.parent.document).height(),"z-index":m(),position:"fixed",background:"none repeat scroll 0 0 #000",opacity:.5}).hide()),f.css({"z-index":m(),position:n.fixed?"fixed":"absolute",width:n.width?n.width:"auto",height:n.height?n.height:"auto"}),h(window).resize(function(){h("#"+o).css({height:h(window.parent.document).height(),width:h(window.parent.document).width()})}),a&&n.fixed){f.css("position","absolute"),this.resetpos();parseint(f.css("top")),h(document).scrolltop(),parseint(f.css("left")),h(document).scrollleft();h("#"+o).css({height:u,width:d}).children("iframe").css({height:u,width:d})}var s={x:0,y:0};function i(e){var t=window.event||e,i=parseint(f.css("top"))+(t.clienty-s.y),n=parseint(f.css("left"))+(t.clientx-s.x),o=f.width(),r=f.height();(i<0||u').load(function(){n.empty().append(h(this)),this.resetpos()}).attr("src",e.value);break;case"url":n.html("加载中..."),h.ajax({url:e.value,success:function(e){n.html(e),this.resetpos()},error:function(e,t,i){n.html("出错啦")}});break;case"iframe":n.append(h('