/* InitShowThumbnails v1.1 http://blog.goo.ne.jp/komikoni C:\Documents and Settings\%USERNAME%\Application Data\Adobe\Acrobat\8.0\JavaScripts */ InitShowThumbnails = app.trustedFunction ( function( doc ) { if (doc.docID){ app.beginPriv(); if (typeof global.IST == 'undefined'){ global.IST = {}; } if(typeof global.IST[ doc.docID[0] ] == 'undefined') { global.IST[ doc.docID[0] ] = "True"; app.execMenuItem("ResetPanels"); app.execMenuItem("ShowHideThumbnails"); } app.endPriv(); } }); if(app.viewerVersion >= 7){ app.addToolButton({ cName: "InitShowThumbnails", cLabel: "IST", cExec: null, cEnable: "event.rc = InitShowThumbnails(this)" } ); }else{ app.alert({ cTitle: "PopupBookmark", cMsg: "PopupBookmark Requires version 7.0 or more" }); }