$(function(){startbox();$("#zoomtueditor").on("click",".oneCloseBtn",function(){$("#wrapeditor").hide();$("#zoomtueditor").slideUp("slow")})});function startbox(){var b=document.createElement("div");b.setAttribute("id","zoomtueditor");b.className="modaleditor clearfix";document.body.appendChild(b);var a=document.createElement("div");a.setAttribute("id","wrapeditor");document.body.appendChild(a)}function cfmeditor(b){var a=$("#zoomtueditor")[0];a.innerHTML="";var c=document.createElement("iframe");c.setAttribute("name","ifr_editor_upload");c.setAttribute("id","ifr_editor_upload");c.setAttribute("src","upfile.aspx?save="+b);c.setAttribute("marginwidth","0");c.setAttribute("marginheight","1");c.setAttribute("width","320");c.setAttribute("height","150");c.setAttribute("scrolling","no");c.setAttribute("border","0");c.setAttribute("frameborder","0");a.appendChild(c);$('<div class="clear"></div><div class="oneCloseBtn"><a href="javascript:void(0);" rel="nofollow"></a></div>').prependTo($("#zoomtueditor"))}function upfilebox(b){cfmeditor(b);var a=$("#zoomtueditor");$("#wrapeditor").show();var c=320;var e=150;a.width(c);a.height(e);var d=document.documentElement.clientHeight;var f=((d-(e+48))/2+$(document).scrollTop())+"px";a.css("top",f);a.css("margin-left","-"+(c+36)/2+"px");a.fadeIn("slow")};