<!-- hide from JavaScript-challenged browsers
var amznwin = null;
function openWindow(url) {
  popupWin = window.open(url, 'slideshow', 'width=640,height=480,menubar,toolbar,scrollbars')
}
function jmol(pdb) {
 winW=300;
 winH=300;
 if (window.innerWidth > 600) {
 winW = Math.floor(0.5*window.innerWidth);
 }
 else if (document.body.offsetWidth > 600) {
 winW = Math.floor(0.5*document.body.offsetWidth);
 }
 if (window.innerHeight > 400) {
  winH = Math.floor(0.75*window.innerHeight);
 }
 else if (document.body.offsetHeight > 400) {
  winH = Math.floor(0.75*document.body.offsetHeight);
 }
document.writeln ('<applet code="org.openscience.jmol.applet.JmolApplet" codebase="/jar/" archive="jmol-applet.jar,vecmath1.1-1.12.jar" width="'+winW+'" height="'+winH+'"><param name="model" value="../pdb/'+pdb+'"/><param name="style" value="shaded"/><param name="bcolour" value="#D0FFD0"/><param name="fcolour" value="#D0FFD0"/></applet><p>The following keys and mouse actions control the <a target="_blank" href="http://jmol.sourceforge.net">Jmol</a> applet:</p><ul><li>S - cycles through the various drawing styles for atoms and bonds</li><li>L - cycles through the various labeling modes for the atoms</li><li>B - toggles the bonds off and on</li><li>Mouse - rotates the molecule</li><li>Shift-Mouse - Zooms in and out</li><li>Ctrl-Mouse - Translates the molecule</li><li>Reload - Rescales the applet if the browser size changes</li><li>'+winW+' x '+winH+'</li></ul>');
}
function chime(pdb) {
 winW=300;
 winH=300;
 if (window.innerWidth > 600) {
 winW = Math.floor(0.5*window.innerWidth);
 }
 else if (document.body.offsetWidth > 600) {
 winW = Math.floor(0.5*document.body.offsetWidth);
 }
 if (window.innerHeight > 400) {
  winH = Math.floor(0.75*window.innerHeight);
 }
 else if (document.body.offsetHeight > 400) {
  winH = Math.floor(0.75*document.body.offsetHeight);
 }
document.writeln ('<embed src="../pdb/'+pdb+'" width="'+winW+'" height="'+winH+'" bgcolor="#D0FFD0" display3d="ball&stick"/><p>You can access the control menu by placing the cursor inside the model and pressing the <em>right</em> mouse button.</p>');
}
function amazon(ASIN) {
if (amznwin && amznwin.open && !amznwin.closed){
amznwin.close();
}
amznwin=window.open('http://buybox.amazon.com/exec/obidos/redirect?tag=tamperingwithnat&link_code=xsc&creative=23424&camp=2025&path=/dt/assoc/tg/aa/xml/assoc/-/'+ASIN+'/tamperingwithnat/ref=ac_bb3_','_bookstore','location=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes,width=800,height=450,screenX=10,screenY=10,top=10,left=10');
amznwin.focus();}
function bandno(ASIN) {
if (amznwin && amznwin.open && !amznwin.closed){
amznwin.close();
}
amznwin=window.open('http://search.barnesandnoble.com/booksearch/isbninquiry.asp?EAN='+ASIN,'_bookstore','location=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes,width=800,height=450,screenX=10,screenY=10,top=10,left=10');
amznwin.focus();}
function powells(ASIN) {
if (amznwin && amznwin.open && !amznwin.closed){
amznwin.close();
}
amznwin=window.open('http://www.powells.com/cgi-bin/partner?partner_id=28089&cgi=product&isbn='+ASIN+' ','_bookstore','location=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes,width=800,height=450,screenX=10,screenY=10,top=10,left=10');
amznwin.focus();}

