window.MultiPostThumbnails={setThumbnailHTML:function(t,n,e){jQuery(".inside","#"+e+"-"+n).html(t)},setThumbnailID:function(t,n,e){var i=jQuery("input[value=_"+e+"_"+n+"_thumbnail_id]","#list-table");i.size()>0&&jQuery("#meta\\["+i.attr("id").match(/[0-9]+/)+"\\]\\[value\\]").text(t)},removeThumbnail:function(t,n,e){jQuery.post(ajaxurl,{action:"set-"+n+"-"+t+"-thumbnail",post_id:jQuery("#post_ID").val(),thumbnail_id:-1,_ajax_nonce:e,cookie:encodeURIComponent(document.cookie)},function(e){"0"==e?alert('error'):MultiPostThumbnails.setThumbnailHTML(e,t,n)})},setAsThumbnail:function(t,n,e,i){var a=jQuery("a#"+e+"-"+n+"-thumbnail-"+t);a.data("thumbnail_id",t),a.text('saving'),jQuery.post(ajaxurl,{action:"set-"+e+"-"+n+"-thumbnail",post_id:post_id,thumbnail_id:t,_ajax_nonce:i,cookie:encodeURIComponent(document.cookie)},function(i){var u=window.dialogArguments||opener||parent||top;a.text('thumbnail'),"0"==i?alert('error'):(a.show(),a.text('done'),a.fadeOut(2e3,function(){jQuery("tr."+e+"-"+n+"-thumbnail").hide()}),u.MultiPostThumbnails.setThumbnailID(t,n,e),u.MultiPostThumbnails.setThumbnailHTML(i,n,e))})}};