var tb_position;jQuery(document).ready(function(o){var e,n,i,a,l,r,d=o(".upload-view-toggle"),t=o(".wrap"),s=o(document.body);function c(){var t;a=o(":tabbable",i),l=e.find("#TB_closeWindowButton"),r=a.last(),(t=l.add(r)).off("keydown.wp-plugin-details"),t.on("keydown.wp-plugin-details",function(t){9===(t=t).which&&(r[0]!==t.target||t.shiftKey?l[0]===t.target&&t.shiftKey&&(t.preventDefault(),r.focus()):(t.preventDefault(),l.focus()))})}tb_position=function(){var t=o(window).width(),i=o(window).height()-(792