text: !function(t){setTimeout(function(){t(function(){window.get_igw_dimensions=function(){var i=(t(".ngg-add-gallery"),jQuery(top)),o=i.width(),n=i.height(),w=1800,e=1200,d=o-.05*o,g=n-.09*n;return d<800&&(d=o-20),g<600&&(g=n-40),w>d&&(w=d),e>g&&(e=g),{width:w,height:e,top:(n-e)/2,left:(o-w)/2}},window.wp_tb_position=window.tb_position,window.tb_position=function(){var i=t("#TB_window iframe").attr("src");if(i&&i.match("attach_to_post")){var o=get_igw_dimensions();t("#TB_window").css({width:o.width.toString()+"px",height:o.height.toString()+"px",top:o.top.toString()+"px",left:o.left.toString()+"px"}),t("#TB_window").addClass("ngg_tb_window"),t("#TB_window iframe").css({width:"100%",height:"100%"})}else window.wp_tb_position()}})})}(jQuery);