/* Allows to open Jmol models on request, in a div Available from http://biomodel.uah.es/Jmol/ and http://wiki.jmol.org/ Author: Angel Herráez. Version 2007.04.23 This template is offered freely for anyone to use or adapt it, according to Creative Commons Attribution-ShareAlike 3.0 License, http://creativecommons.org/licenses/by-sa/3.0/ Modified 2007.07.17 by Jonathan Gutow Main change is that the JmolSize is specified in the call. Image file is forced to fit within the div boundaries by scaling it. Image file name is passed explicitely. Removed the passing of the molecule name as labels should be set in script. Modified 2007.08.13 by Bob Hanson -- integration into Jmol application Modified 2010.3.9 by Jonathan Gutow -- addition of widget activation upon pop-in. -- addition of widget switching on view change in ScriptButton pages. Modified 2010 June by Jonathan Gutow and Angel Herraez -- bug fixes for IE support */ function addJavaScript(path, file) { document.write("<"+"script src=\"" + path + "/" + file + "\" type=\"text/javascript\"><" + "/script>"); } function putJmolDiv(molNr, molFileName,imageFileName,appletWidth,appletHeight) { var tx = '
' + 'GT_JmolPopIn.js_TOGETA3DMODEL' + ' |
"; document.write(s);//.replace(/\"; s += "\n |
"+caption+" "; s += "\n | ";
s += "\n