/* Jmol 12.0 script library Jmol.js 9:48 PM 1/31/2011 Bob Hanson checkbox heirarchy -- see http://chemapps.stolaf.edu/jmol/docs/examples-11/check.htm based on: * * Copyright (C) 2004-2005 Miguel, Jmol Development, www.jmol.org * * Contact: hansonr@stolaf.edu * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ // for documentation see www.jmol.org/jslibrary try{if(typeof(_jmol)!="undefined")exit() // place "?NOAPPLET" on your command line to check applet control action with a textarea // place "?JMOLJAR=xxxxx" to use a specific jar file // bob hanson -- jmolResize(w,h) -- resizes absolutely or by percent (w or h 0.5 means 50%) // angel herraez -- update of jmolResize(w,h,targetSuffix) so it is not tied to first applet // bob hanson -- jmolEvaluate -- evaluates molecular math 8:37 AM 2/23/2007 // bob hanson -- jmolScriptMessage -- returns all "scriptStatus" messages 8:37 AM 2/23/2007 // bob hanson -- jmolScriptEcho -- returns all "scriptEcho" messages 8:37 AM 2/23/2007 // bob hanson -- jmolScriptWait -- 11:31 AM 5/2/2006 // bob hanson -- remove trailing separatorHTML in radio groups -- 12:18 PM 5/6/2006 // bob hanson -- adds support for dynamic DOM script nodes 7:04 AM 5/19/2006 // bob hanson -- adds try/catch for wiki - multiple code passes 7:05 AM 5/19/2006 // bob hanson -- auto-initiates to defaultdir/defaultjar -- change as desired. // bob hanson -- adding save/restore orientation w/ and w/o delay 11:49 AM 5/25/2006 // bob hanson -- adding AjaxJS service 11:16 AM 6/3/2006 // bob hanson -- fix for iframes not available for finding applet // bob hanson -- added applet fake ?NOAPPLET URL flag // bob hanson -- added jmolSetCallback(calbackName, funcName) 3:32 PM 6/13/2006 // used PRIOR to jmolApplet() or jmolAppletInline() // added 4th array element in jmolRadioGroup -- title // added and id around link, checkbox, radio, menu // fixing AJAX loads for MSIE/Opera-Mozilla incompatibility // -- renamed Jmol-11.js from Jmol-new.js; JmolApplet.jar from JmolAppletProto.jar // renamed Jmol.js for Jmol 11 distribution // -- modified jmolRestoreOrientation() to be immediate, no 1-second delay // bob hanson -- jmolScriptWait always returns a string -- 11:23 AM 9/16/2006 // bh -- jmolCommandInput() // bh -- jmolSetTranslation(TF) -- forces translation even if there might be message callback issues // bh -- minor fixes suggested by Angel // bh -- adds jmolSetSyncId() and jmolGetSyncId() // bh 3/2008 -- adds jmolAppendInlineScript() and jmolAppendInlineArray() // bh 3/2008 -- fixes IE7 bug in relation to jmolLoadInlineArray() // bh 6/2008 -- adds jmolSetAppletWindow() // Angel H. 6/2008 -- added html