/*
 * Javascript functions that manage
 * communication with AstexViewer.
 */

function toggle(s){
  document.av.execute('molecule display ' + s + ' toggle;');
}

function object(s){
  document.av.execute('object display ' + s + ' toggle;');
}

function av_execute(command){
  document.av.execute(command);
  window.status = command;
}

function av_lipophilicity(obj){
  av_execute("run 'lipophilicity.properties';");
  av_execute("object '" + obj +"' texture lipophilicity u 7.0 aminoacid;");
}

function av_texture(obj, tex){
  if(tex == 'off'){
    av_execute("object '" + obj + "' texture 'off';");
  }else{
    if(tex == 'simple'){
      av_execute("texture '" + tex + "' simple;");
    }else{
      av_execute("texture load '" + tex + "' '" + tex + "';");
    }
    av_execute("object '" + obj + "' texture '" + tex + "';");
  }
}

function av_transparency(obj, tr){
  av_execute("object '" + obj + "' transparency " + tr + ";");
}

function av_display(obj, tr){
  var command = "object display '" + obj + "' " + tr + ";";
  av_execute(command);
}

function av_colour(obj, tr){
  var command = "object '" + obj + "' color " + tr + ";";
  av_execute(command);
}

function av_background(tr){
  var command = "background '" + tr + "';";
  av_execute(command);
}





/*
 * Javascript functions that manage interaction with
 * controls on the page.
 */




/* Texture of surfaces */




function js_texture_protein1(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein1_surface');
    sel.textured = true;
  }
  av_texture('protein1_surface', val);
}
function js_texture_protein2(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein2_surface');
    sel.textured = true;
  }
  av_texture('protein2_surface', val);
}
function js_texture_protein3(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein3_surface');
    sel.textured = true;
  }
  av_texture('protein3_surface', val);
}
function js_texture_protein4(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein4_surface');
    sel.textured = true;
  }
  av_texture('protein4_surface', val);
}
function js_texture_protein5(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein5_surface');
    sel.textured = true;
  }
  av_texture('protein5_surface', val);
}
function js_texture_protein6(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein6_surface');
    sel.textured = true;
  }
  av_texture('protein6_surface', val);
}
function js_texture_protein7(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein7_surface');
    sel.textured = true;
  }
  av_texture('protein7_surface', val);
}
function js_texture_protein8(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein8_surface');
    sel.textured = true;
  }
  av_texture('protein8_surface', val);
}
function js_texture_protein9(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein9_surface');
    sel.textured = true;
  }
  av_texture('protein9_surface', val);
}
function js_texture_protein10(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein10_surface');
    sel.textured = true;
  }
  av_texture('protein10_surface', val);
}
function js_texture_protein11(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein11_surface');
    sel.textured = true;
  }
  av_texture('protein11_surface', val);
}
function js_texture_protein12(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein12_surface');
    sel.textured = true;
  }
  av_texture('protein12_surface', val);
}
function js_texture_protein13(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein13_surface');
    sel.textured = true;
  }
  av_texture('protein13_surface', val);
}
function js_texture_protein14(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein14_surface');
    sel.textured = true;
  }
  av_texture('protein14_surface', val);
}
function js_texture_protein15(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein15_surface');
    sel.textured = true;
  }
  av_texture('protein15_surface', val);
}
function js_texture_protein16(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein16_surface');
    sel.textured = true;
  }
  av_texture('protein16_surface', val);
}
function js_texture_protein17(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein17_surface');
    sel.textured = true;
  }
  av_texture('protein17_surface', val);
}
function js_texture_protein18(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein18_surface');
    sel.textured = true;
  }
  av_texture('protein18_surface', val);
}
function js_texture_protein19(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein19_surface');
    sel.textured = true;
  }
  av_texture('protein19_surface', val);
}
function js_texture_protein20(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('protein20_surface');
    sel.textured = true;
  }
  av_texture('protein20_surface', val);
}


function js_texture_ligand1(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand1_surface');
    sel.textured = true;
  }
  av_texture('ligand1_surface', val);
}
function js_texture_ligand2(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand2_surface');
    sel.textured = true;
  }
  av_texture('ligand2_surface', val);
}
function js_texture_ligand3(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand3_surface');
    sel.textured = true;
  }
  av_texture('ligand3_surface', val);
}
function js_texture_ligand4(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand4_surface');
    sel.textured = true;
  }
  av_texture('ligand4_surface', val);
}
function js_texture_ligand5(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand5_surface');
    sel.textured = true;
  }
  av_texture('ligand5_surface', val);
}
function js_texture_ligand6(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand6_surface');
    sel.textured = true;
  }
  av_texture('ligand6_surface', val);
}
function js_texture_ligand7(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand7_surface');
    sel.textured = true;
  }
  av_texture('ligand7_surface', val);
}
function js_texture_ligand8(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand8_surface');
    sel.textured = true;
  }
  av_texture('ligand8_surface', val);
}
function js_texture_ligand9(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand9_surface');
    sel.textured = true;
  }
  av_texture('ligand9_surface', val);
}
function js_texture_ligand10(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand10_surface');
    sel.textured = true;
  }
  av_texture('ligand10_surface', val);
}
function js_texture_ligand11(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand11_surface');
    sel.textured = true;
  }
  av_texture('ligand11_surface', val);
}
function js_texture_ligand12(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand12_surface');
    sel.textured = true;
  }
  av_texture('ligand12_surface', val);
}
function js_texture_ligand13(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand13_surface');
    sel.textured = true;
  }
  av_texture('ligand13_surface', val);
}
function js_texture_ligand14(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand14_surface');
    sel.textured = true;
  }
  av_texture('ligand14_surface', val);
}
function js_texture_ligand15(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand15_surface');
    sel.textured = true;
  }
  av_texture('ligand15_surface', val);
}
function js_texture_ligand16(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand16_surface');
    sel.textured = true;
  }
  av_texture('ligand16_surface', val);
}
function js_texture_ligand17(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand17_surface');
    sel.textured = true;
  }
  av_texture('ligand17_surface', val);
}
function js_texture_ligand18(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand18_surface');
    sel.textured = true;
  }
  av_texture('ligand18_surface', val);
}
function js_texture_ligand19(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand19_surface');
    sel.textured = true;
  }
  av_texture('ligand19_surface', val);
}
function js_texture_ligand20(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(!sel.textured){
    av_lipophilicity('ligand20_surface');
    sel.textured = true;
  }
  av_texture('ligand20_surface', val);
}



/* Transparancy of solid surfaces and cartoons */





function js_transparency_protein1(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein1_surface', val);
}
function js_transparency_protein2(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein2_surface', val);
}
function js_transparency_protein3(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein3_surface', val);
}
function js_transparency_protein4(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein4_surface', val);
}
function js_transparency_protein5(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein5_surface', val);
}
function js_transparency_protein6(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein6_surface', val);
}
function js_transparency_protein7(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein7_surface', val);
}
function js_transparency_protein8(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein8_surface', val);
}
function js_transparency_protein9(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein9_surface', val);
}
function js_transparency_protein10(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein10_surface', val);
}
function js_transparency_protein11(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein11_surface', val);
}
function js_transparency_protein12(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein12_surface', val);
}
function js_transparency_protein13(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein13_surface', val);
}
function js_transparency_protein14(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein14_surface', val);
}
function js_transparency_protein15(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein15_surface', val);
}
function js_transparency_protein16(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein16_surface', val);
}
function js_transparency_protein17(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein17_surface', val);
}
function js_transparency_protein18(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein18_surface', val);
}
function js_transparency_protein19(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein19_surface', val);
}
function js_transparency_protein20(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein20_surface', val);
}


function js_transparency_cartoon_protein1(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein1_schematic', val);
}
function js_transparency_cartoon_protein2(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein2_schematic', val);
}
function js_transparency_cartoon_protein3(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein3_schematic', val);
}
function js_transparency_cartoon_protein4(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein4_schematic', val);
}
function js_transparency_cartoon_protein5(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein5_schematic', val);
}
function js_transparency_cartoon_protein6(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein6_schematic', val);
}
function js_transparency_cartoon_protein7(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein7_schematic', val);
}
function js_transparency_cartoon_protein8(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein8_schematic', val);
}
function js_transparency_cartoon_protein9(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein9_schematic', val);
}
function js_transparency_cartoon_protein10(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein10_schematic', val);
}
function js_transparency_cartoon_protein11(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein11_schematic', val);
}
function js_transparency_cartoon_protein12(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein12_schematic', val);
}
function js_transparency_cartoon_protein13(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein13_schematic', val);
}
function js_transparency_cartoon_protein14(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein14_schematic', val);
}
function js_transparency_cartoon_protein15(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein15_schematic', val);
}
function js_transparency_cartoon_protein16(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein16_schematic', val);
}
function js_transparency_cartoon_protein17(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein17_schematic', val);
}
function js_transparency_cartoon_protein18(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein18_schematic', val);
}
function js_transparency_cartoon_protein19(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein19_schematic', val);
}
function js_transparency_cartoon_protein20(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('protein20_schematic', val);
}

function js_transparency_ligand1(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand1_surface', val);
}
function js_transparency_ligand2(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand2_surface', val);
}
function js_transparency_ligand3(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand3_surface', val);
}
function js_transparency_ligand4(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand4_surface', val);
}
function js_transparency_ligand5(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand5_surface', val);
}
function js_transparency_ligand6(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand6_surface', val);
}
function js_transparency_ligand7(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand7_surface', val);
}
function js_transparency_ligand8(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand8_surface', val);
}
function js_transparency_ligand9(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand9_surface', val);
}
function js_transparency_ligand10(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand10_surface', val);
}
function js_transparency_ligand11(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand11_surface', val);
}
function js_transparency_ligand12(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand12_surface', val);
}
function js_transparency_ligand13(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand13_surface', val);
}
function js_transparency_ligand14(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand14_surface', val);
}
function js_transparency_ligand15(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand15_surface', val);
}
function js_transparency_ligand16(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand16_surface', val);
}
function js_transparency_ligand17(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand17_surface', val);
}
function js_transparency_ligand18(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand18_surface', val);
}
function js_transparency_ligand19(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand19_surface', val);
}
function js_transparency_ligand20(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('ligand20_surface', val);
}

function js_transparency_zn1(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn1_surface', val);
}
function js_transparency_zn2(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn2_surface', val);
}
function js_transparency_zn3(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn3_surface', val);
}
function js_transparency_zn4(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn4_surface', val);
}
function js_transparency_zn5(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn5_surface', val);
}
function js_transparency_zn6(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn6_surface', val);
}
function js_transparency_zn7(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn7_surface', val);
}
function js_transparency_zn8(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn8_surface', val);
}
function js_transparency_zn9(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn9_surface', val);
}
function js_transparency_zn10(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn10_surface', val);
}
function js_transparency_zn11(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn11_surface', val);
}
function js_transparency_zn12(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn12_surface', val);
}
function js_transparency_zn13(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn13_surface', val);
}
function js_transparency_zn14(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn14_surface', val);
}
function js_transparency_zn15(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn15_surface', val);
}
function js_transparency_zn16(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn16_surface', val);
}
function js_transparency_zn17(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn17_surface', val);
}
function js_transparency_zn18(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn18_surface', val);
}
function js_transparency_zn19(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn19_surface', val);
}
function js_transparency_zn20(sel){
  var val = sel.options[sel.selectedIndex].value;
  val = Math.round(val * 2.55);
  av_transparency('zn20_surface', val);
}

/* Make solid surfaces */



function js_protein1_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein1_surface white molecule protein1 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein1_surface', 'on');
    }
  }else{
    av_display('protein1_surface', 'off');
  }
}
function js_protein2_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein2_surface white molecule protein2 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein2_surface', 'on');
    }
  }else{
    av_display('protein2_surface', 'off');
  }
}
function js_protein3_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein3_surface white molecule protein3 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein3_surface', 'on');
    }
  }else{
    av_display('protein3_surface', 'off');
  }
}
function js_protein4_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein4_surface white molecule protein4 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein4_surface', 'on');
    }
  }else{
    av_display('protein4_surface', 'off');
  }
}
function js_protein5_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein5_surface white molecule protein5 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein5_surface', 'on');
    }
  }else{
    av_display('protein5_surface', 'off');
  }
}
function js_protein6_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein6_surface white molecule protein6 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein6_surface', 'on');
    }
  }else{
    av_display('protein6_surface', 'off');
  }
}
function js_protein7_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein7_surface white molecule protein7 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein7_surface', 'on');
    }
  }else{
    av_display('protein7_surface', 'off');
  }
}
function js_protein8_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein8_surface white molecule protein8 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein8_surface', 'on');
    }
  }else{
    av_display('protein8_surface', 'off');
  }
}
function js_protein9_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein9_surface white molecule protein9 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein9_surface', 'on');
    }
  }else{
    av_display('protein9_surface', 'off');
  }
}
function js_protein10_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein10_surface white molecule protein10 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein10_surface', 'on');
    }
  }else{
    av_display('protein10_surface', 'off');
  }
}
function js_protein11_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein11_surface white molecule protein11 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein11_surface', 'on');
    }
  }else{
    av_display('protein11_surface', 'off');
  }
}
function js_protein12_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein12_surface white molecule protein12 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein12_surface', 'on');
    }
  }else{
    av_display('protein12_surface', 'off');
  }
}
function js_protein13_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein13_surface white molecule protein13 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein13_surface', 'on');
    }
  }else{
    av_display('protein13_surface', 'off');
  }
}
function js_protein14_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein14_surface white molecule protein14 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein14_surface', 'on');
    }
  }else{
    av_display('protein14_surface', 'off');
  }
}
function js_protein15_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein15_surface white molecule protein15 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein15_surface', 'on');
    }
  }else{
    av_display('protein15_surface', 'off');
  }
}
function js_protein16_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein16_surface white molecule protein16 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein16_surface', 'on');
    }
  }else{
    av_display('protein16_surface', 'off');
  }
}
function js_protein17_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein17_surface white molecule protein17 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein17_surface', 'on');
    }
  }else{
    av_display('protein17_surface', 'off');
  }
}
function js_protein18_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein18_surface white molecule protein18 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein18_surface', 'on');
    }
  }else{
    av_display('protein18_surface', 'off');
  }
}
function js_protein19_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein19_surface white molecule protein19 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein19_surface', 'on');
    }
  }else{
    av_display('protein19_surface', 'off');
  }
}
function js_protein20_surface(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid true protein20_surface white molecule protein20 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein20_surface', 'on');
    }
  }else{
    av_display('protein20_surface', 'off');
  }
}

function js_ligand1_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand1_surface white molecule ligand1;');
      obj.surface = true;
    }else{
      av_display('ligand1_surface', 'on');
    }
  }else{
    av_display('ligand1_surface', 'off');
  }
}
function js_ligand2_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand2_surface white molecule ligand2;');
      obj.surface = true;
    }else{
      av_display('ligand2_surface', 'on');
    }
  }else{
    av_display('ligand2_surface', 'off');
  }
}
function js_ligand3_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand3_surface white molecule ligand3;');
      obj.surface = true;
    }else{
      av_display('ligand3_surface', 'on');
    }
  }else{
    av_display('ligand3_surface', 'off');
  }
}
function js_ligand4_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand4_surface white molecule ligand4;');
      obj.surface = true;
    }else{
      av_display('ligand4_surface', 'on');
    }
  }else{
    av_display('ligand4_surface', 'off');
  }
}
function js_ligand5_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand5_surface white molecule ligand5;');
      obj.surface = true;
    }else{
      av_display('ligand5_surface', 'on');
    }
  }else{
    av_display('ligand5_surface', 'off');
  }
}
function js_ligand6_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand6_surface white molecule ligand6;');
      obj.surface = true;
    }else{
      av_display('ligand6_surface', 'on');
    }
  }else{
    av_display('ligand6_surface', 'off');
  }
}
function js_ligand7_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand7_surface white molecule ligand7;');
      obj.surface = true;
    }else{
      av_display('ligand7_surface', 'on');
    }
  }else{
    av_display('ligand7_surface', 'off');
  }
}
function js_ligand8_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand8_surface white molecule ligand8;');
      obj.surface = true;
    }else{
      av_display('ligand8_surface', 'on');
    }
  }else{
    av_display('ligand8_surface', 'off');
  }
}
function js_ligand9_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand9_surface white molecule ligand9;');
      obj.surface = true;
    }else{
      av_display('ligand9_surface', 'on');
    }
  }else{
    av_display('ligand9_surface', 'off');
  }
}
function js_ligand10_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand10_surface white molecule ligand10;');
      obj.surface = true;
    }else{
      av_display('ligand10_surface', 'on');
    }
  }else{
    av_display('ligand10_surface', 'off');
  }
}
function js_ligand11_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand11_surface white molecule ligand11;');
      obj.surface = true;
    }else{
      av_display('ligand11_surface', 'on');
    }
  }else{
    av_display('ligand11_surface', 'off');
  }
}
function js_ligand12_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand12_surface white molecule ligand12;');
      obj.surface = true;
    }else{
      av_display('ligand12_surface', 'on');
    }
  }else{
    av_display('ligand12_surface', 'off');
  }
}
function js_ligand13_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand13_surface white molecule ligand13;');
      obj.surface = true;
    }else{
      av_display('ligand13_surface', 'on');
    }
  }else{
    av_display('ligand13_surface', 'off');
  }
}
function js_ligand14_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand14_surface white molecule ligand14;');
      obj.surface = true;
    }else{
      av_display('ligand14_surface', 'on');
    }
  }else{
    av_display('ligand14_surface', 'off');
  }
}
function js_ligand15_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand15_surface white molecule ligand15;');
      obj.surface = true;
    }else{
      av_display('ligand15_surface', 'on');
    }
  }else{
    av_display('ligand15_surface', 'off');
  }
}
function js_ligand16_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand16_surface white molecule ligand16;');
      obj.surface = true;
    }else{
      av_display('ligand16_surface', 'on');
    }
  }else{
    av_display('ligand16_surface', 'off');
  }
}
function js_ligand17_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand17_surface white molecule ligand17;');
      obj.surface = true;
    }else{
      av_display('ligand17_surface', 'on');
    }
  }else{
    av_display('ligand17_surface', 'off');
  }
}
function js_ligand18_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand18_surface white molecule ligand18;');
      obj.surface = true;
    }else{
      av_display('ligand18_surface', 'on');
    }
  }else{
    av_display('ligand18_surface', 'off');
  }
}
function js_ligand19_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand19_surface white molecule ligand19;');
      obj.surface = true;
    }else{
      av_display('ligand19_surface', 'on');
    }
  }else{
    av_display('ligand19_surface', 'off');
  }
}
function js_ligand20_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true ligand20_surface white molecule ligand20;');
      obj.surface = true;
    }else{
      av_display('ligand20_surface', 'on');
    }
  }else{
    av_display('ligand20_surface', 'off');
  }
}

function js_zn1_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn1_surface white molecule zn1;');
      obj.surface = true;
    }else{
      av_display('zn1_surface', 'on');
    }
  }else{
    av_display('zn1_surface', 'off');
  }
}
function js_zn2_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn2_surface white molecule zn2;');
      obj.surface = true;
    }else{
      av_display('zn2_surface', 'on');
    }
  }else{
    av_display('zn2_surface', 'off');
  }
}
function js_zn3_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn3_surface white molecule zn3;');
      obj.surface = true;
    }else{
      av_display('zn3_surface', 'on');
    }
  }else{
    av_display('zn3_surface', 'off');
  }
}
function js_zn4_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn4_surface white molecule zn4;');
      obj.surface = true;
    }else{
      av_display('zn4_surface', 'on');
    }
  }else{
    av_display('zn4_surface', 'off');
  }
}
function js_zn5_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn5_surface white molecule zn5;');
      obj.surface = true;
    }else{
      av_display('zn5_surface', 'on');
    }
  }else{
    av_display('zn5_surface', 'off');
  }
}
function js_zn6_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn6_surface white molecule zn6;');
      obj.surface = true;
    }else{
      av_display('zn6_surface', 'on');
    }
  }else{
    av_display('zn6_surface', 'off');
  }
}
function js_zn7_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn7_surface white molecule zn7;');
      obj.surface = true;
    }else{
      av_display('zn7_surface', 'on');
    }
  }else{
    av_display('zn7_surface', 'off');
  }
}
function js_zn8_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn8_surface white molecule zn8;');
      obj.surface = true;
    }else{
      av_display('zn8_surface', 'on');
    }
  }else{
    av_display('zn8_surface', 'off');
  }
}
function js_zn9_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn9_surface white molecule zn9;');
      obj.surface = true;
    }else{
      av_display('zn9_surface', 'on');
    }
  }else{
    av_display('zn9_surface', 'off');
  }
}
function js_zn10_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn10_surface white molecule zn10;');
      obj.surface = true;
    }else{
      av_display('zn10_surface', 'on');
    }
  }else{
    av_display('zn10_surface', 'off');
  }
}
function js_zn11_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn11_surface white molecule zn11;');
      obj.surface = true;
    }else{
      av_display('zn11_surface', 'on');
    }
  }else{
    av_display('zn11_surface', 'off');
  }
}
function js_zn12_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn12_surface white molecule zn12;');
      obj.surface = true;
    }else{
      av_display('zn12_surface', 'on');
    }
  }else{
    av_display('zn12_surface', 'off');
  }
}
function js_zn13_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn13_surface white molecule zn13;');
      obj.surface = true;
    }else{
      av_display('zn13_surface', 'on');
    }
  }else{
    av_display('zn13_surface', 'off');
  }
}
function js_zn14_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn14_surface white molecule zn14;');
      obj.surface = true;
    }else{
      av_display('zn14_surface', 'on');
    }
  }else{
    av_display('zn14_surface', 'off');
  }
}
function js_zn15_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn15_surface white molecule zn15;');
      obj.surface = true;
    }else{
      av_display('zn15_surface', 'on');
    }
  }else{
    av_display('zn15_surface', 'off');
  }
}
function js_zn16_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn16_surface white molecule zn16;');
      obj.surface = true;
    }else{
      av_display('zn16_surface', 'on');
    }
  }else{
    av_display('zn16_surface', 'off');
  }
}
function js_zn17_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn17_surface white molecule zn17;');
      obj.surface = true;
    }else{
      av_display('zn17_surface', 'on');
    }
  }else{
    av_display('zn17_surface', 'off');
  }
}
function js_zn18_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn18_surface white molecule zn18;');
      obj.surface = true;
    }else{
      av_display('zn18_surface', 'on');
    }
  }else{
    av_display('zn18_surface', 'off');
  }
}
function js_zn19_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn19_surface white molecule zn19;');
      obj.surface = true;
    }else{
      av_display('zn19_surface', 'on');
    }
  }else{
    av_display('zn19_surface', 'off');
  }
}
function js_zn20_surface(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid true zn20_surface white molecule zn20;');
      obj.surface = true;
    }else{
      av_display('zn20_surface', 'on');
    }
  }else{
    av_display('zn20_surface', 'off');
  }
}



/* Make mesh surfaces */




function js_protein1_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein1_mesh white molecule protein1 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein1_mesh', 'on');
    }
  }else{
    av_display('protein1_mesh', 'off');
  }
}
function js_protein2_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein2_mesh white molecule protein2 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein2_mesh', 'on');
    }
  }else{
    av_display('protein2_mesh', 'off');
  }
}
function js_protein3_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein3_mesh white molecule protein3 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein3_mesh', 'on');
    }
  }else{
    av_display('protein3_mesh', 'off');
  }
}
function js_protein4_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein4_mesh white molecule protein4 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein4_mesh', 'on');
    }
  }else{
    av_display('protein4_mesh', 'off');
  }
}
function js_protein5_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein5_mesh white molecule protein5 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein5_mesh', 'on');
    }
  }else{
    av_display('protein5_mesh', 'off');
  }
}
function js_protein6_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein6_mesh white molecule protein6 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein6_mesh', 'on');
    }
  }else{
    av_display('protein6_mesh', 'off');
  }
}
function js_protein7_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein7_mesh white molecule protein7 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein7_mesh', 'on');
    }
  }else{
    av_display('protein7_mesh', 'off');
  }
}
function js_protein8_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein8_mesh white molecule protein8 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein8_mesh', 'on');
    }
  }else{
    av_display('protein8_mesh', 'off');
  }
}
function js_protein9_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein9_mesh white molecule protein9 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein9_mesh', 'on');
    }
  }else{
    av_display('protein9_mesh', 'off');
  }
}
function js_protein10_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein10_mesh white molecule protein10 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein10_mesh', 'on');
    }
  }else{
    av_display('protein10_mesh', 'off');
  }
}
function js_protein11_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein11_mesh white molecule protein11 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein11_mesh', 'on');
    }
  }else{
    av_display('protein11_mesh', 'off');
  }
}
function js_protein12_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein12_mesh white molecule protein12 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein12_mesh', 'on');
    }
  }else{
    av_display('protein12_mesh', 'off');
  }
}
function js_protein13_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein13_mesh white molecule protein13 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein13_mesh', 'on');
    }
  }else{
    av_display('protein13_mesh', 'off');
  }
}
function js_protein14_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein14_mesh white molecule protein14 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein14_mesh', 'on');
    }
  }else{
    av_display('protein14_mesh', 'off');
  }
}
function js_protein15_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein15_mesh white molecule protein15 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein15_mesh', 'on');
    }
  }else{
    av_display('protein15_mesh', 'off');
  }
}
function js_protein16_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein16_mesh white molecule protein16 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein16_mesh', 'on');
    }
  }else{
    av_display('protein16_mesh', 'off');
  }
}
function js_protein17_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein17_mesh white molecule protein17 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein17_mesh', 'on');
    }
  }else{
    av_display('protein17_mesh', 'off');
  }
}
function js_protein18_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein18_mesh white molecule protein18 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein18_mesh', 'on');
    }
  }else{
    av_display('protein18_mesh', 'off');
  }
}
function js_protein19_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein19_mesh white molecule protein19 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein19_mesh', 'on');
    }
  }else{
    av_display('protein19_mesh', 'off');
  }
}
function js_protein20_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
    av_execute('surface -solid false protein20_mesh white molecule protein20 and sphere 7 around molecule ligand*;');
      obj.surface = true;
    }else{
      av_display('protein20_mesh', 'on');
    }
  }else{
    av_display('protein20_mesh', 'off');
  }
}

function js_ligand1_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand1_mesh white molecule ligand1;');
      obj.surface = true;
    }else{
      av_display('ligand1_mesh', 'on');
    }
  }else{
    av_display('ligand1_mesh', 'off');
  }
}
function js_ligand2_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand2_mesh white molecule ligand2;');
      obj.surface = true;
    }else{
      av_display('ligand2_mesh', 'on');
    }
  }else{
    av_display('ligand2_mesh', 'off');
  }
}
function js_ligand3_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand3_mesh white molecule ligand3;');
      obj.surface = true;
    }else{
      av_display('ligand3_mesh', 'on');
    }
  }else{
    av_display('ligand3_mesh', 'off');
  }
}
function js_ligand4_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand4_mesh white molecule ligand4;');
      obj.surface = true;
    }else{
      av_display('ligand4_mesh', 'on');
    }
  }else{
    av_display('ligand4_mesh', 'off');
  }
}
function js_ligand5_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand5_mesh white molecule ligand5;');
      obj.surface = true;
    }else{
      av_display('ligand5_mesh', 'on');
    }
  }else{
    av_display('ligand5_mesh', 'off');
  }
}
function js_ligand6_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand6_mesh white molecule ligand6;');
      obj.surface = true;
    }else{
      av_display('ligand6_mesh', 'on');
    }
  }else{
    av_display('ligand6_mesh', 'off');
  }
}
function js_ligand7_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand7_mesh white molecule ligand7;');
      obj.surface = true;
    }else{
      av_display('ligand7_mesh', 'on');
    }
  }else{
    av_display('ligand7_mesh', 'off');
  }
}
function js_ligand8_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand8_mesh white molecule ligand8;');
      obj.surface = true;
    }else{
      av_display('ligand8_mesh', 'on');
    }
  }else{
    av_display('ligand8_mesh', 'off');
  }
}
function js_ligand9_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand9_mesh white molecule ligand9;');
      obj.surface = true;
    }else{
      av_display('ligand9_mesh', 'on');
    }
  }else{
    av_display('ligand9_mesh', 'off');
  }
}
function js_ligand10_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand10_mesh white molecule ligand10;');
      obj.surface = true;
    }else{
      av_display('ligand10_mesh', 'on');
    }
  }else{
    av_display('ligand10_mesh', 'off');
  }
}
function js_ligand11_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand11_mesh white molecule ligand11;');
      obj.surface = true;
    }else{
      av_display('ligand11_mesh', 'on');
    }
  }else{
    av_display('ligand11_mesh', 'off');
  }
}
function js_ligand12_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand12_mesh white molecule ligand12;');
      obj.surface = true;
    }else{
      av_display('ligand12_mesh', 'on');
    }
  }else{
    av_display('ligand12_mesh', 'off');
  }
}
function js_ligand13_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand13_mesh white molecule ligand13;');
      obj.surface = true;
    }else{
      av_display('ligand13_mesh', 'on');
    }
  }else{
    av_display('ligand13_mesh', 'off');
  }
}
function js_ligand14_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand14_mesh white molecule ligand14;');
      obj.surface = true;
    }else{
      av_display('ligand14_mesh', 'on');
    }
  }else{
    av_display('ligand14_mesh', 'off');
  }
}
function js_ligand15_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand15_mesh white molecule ligand15;');
      obj.surface = true;
    }else{
      av_display('ligand15_mesh', 'on');
    }
  }else{
    av_display('ligand15_mesh', 'off');
  }
}
function js_ligand16_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand16_mesh white molecule ligand16;');
      obj.surface = true;
    }else{
      av_display('ligand16_mesh', 'on');
    }
  }else{
    av_display('ligand16_mesh', 'off');
  }
}
function js_ligand17_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand17_mesh white molecule ligand17;');
      obj.surface = true;
    }else{
      av_display('ligand17_mesh', 'on');
    }
  }else{
    av_display('ligand17_mesh', 'off');
  }
}
function js_ligand18_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand18_mesh white molecule ligand18;');
      obj.surface = true;
    }else{
      av_display('ligand18_mesh', 'on');
    }
  }else{
    av_display('ligand18_mesh', 'off');
  }
}
function js_ligand19_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand19_mesh white molecule ligand19;');
      obj.surface = true;
    }else{
      av_display('ligand19_mesh', 'on');
    }
  }else{
    av_display('ligand19_mesh', 'off');
  }
}
function js_ligand20_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false ligand20_mesh white molecule ligand20;');
      obj.surface = true;
    }else{
      av_display('ligand20_mesh', 'on');
    }
  }else{
    av_display('ligand20_mesh', 'off');
  }
}

function js_zn1_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn1_mesh white molecule zn1;');
      obj.surface = true;
    }else{
      av_display('zn1_mesh', 'on');
    }
  }else{
    av_display('zn1_mesh', 'off');
  }
}
function js_zn2_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn2_mesh white molecule zn2;');
      obj.surface = true;
    }else{
      av_display('zn2_mesh', 'on');
    }
  }else{
    av_display('zn2_mesh', 'off');
  }
}
function js_zn3_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn3_mesh white molecule zn3;');
      obj.surface = true;
    }else{
      av_display('zn3_mesh', 'on');
    }
  }else{
    av_display('zn3_mesh', 'off');
  }
}
function js_zn4_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn4_mesh white molecule zn4;');
      obj.surface = true;
    }else{
      av_display('zn4_mesh', 'on');
    }
  }else{
    av_display('zn4_mesh', 'off');
  }
}
function js_zn5_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn5_mesh white molecule zn5;');
      obj.surface = true;
    }else{
      av_display('zn5_mesh', 'on');
    }
  }else{
    av_display('zn5_mesh', 'off');
  }
}
function js_zn6_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn6_mesh white molecule zn6;');
      obj.surface = true;
    }else{
      av_display('zn6_mesh', 'on');
    }
  }else{
    av_display('zn6_mesh', 'off');
  }
}
function js_zn7_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn7_mesh white molecule zn7;');
      obj.surface = true;
    }else{
      av_display('zn7_mesh', 'on');
    }
  }else{
    av_display('zn7_mesh', 'off');
  }
}
function js_zn8_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn8_mesh white molecule zn8;');
      obj.surface = true;
    }else{
      av_display('zn8_mesh', 'on');
    }
  }else{
    av_display('zn8_mesh', 'off');
  }
}
function js_zn9_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn9_mesh white molecule zn9;');
      obj.surface = true;
    }else{
      av_display('zn9_mesh', 'on');
    }
  }else{
    av_display('zn9_mesh', 'off');
  }
}
function js_zn10_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn10_mesh white molecule zn10;');
      obj.surface = true;
    }else{
      av_display('zn10_mesh', 'on');
    }
  }else{
    av_display('zn10_mesh', 'off');
  }
}
function js_zn11_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn11_mesh white molecule zn11;');
      obj.surface = true;
    }else{
      av_display('zn11_mesh', 'on');
    }
  }else{
    av_display('zn11_mesh', 'off');
  }
}
function js_zn12_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn12_mesh white molecule zn12;');
      obj.surface = true;
    }else{
      av_display('zn12_mesh', 'on');
    }
  }else{
    av_display('zn12_mesh', 'off');
  }
}
function js_zn13_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn13_mesh white molecule zn13;');
      obj.surface = true;
    }else{
      av_display('zn13_mesh', 'on');
    }
  }else{
    av_display('zn13_mesh', 'off');
  }
}
function js_zn14_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn14_mesh white molecule zn14;');
      obj.surface = true;
    }else{
      av_display('zn14_mesh', 'on');
    }
  }else{
    av_display('zn14_mesh', 'off');
  }
}
function js_zn15_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn15_mesh white molecule zn15;');
      obj.surface = true;
    }else{
      av_display('zn15_mesh', 'on');
    }
  }else{
    av_display('zn15_mesh', 'off');
  }
}
function js_zn16_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn16_mesh white molecule zn16;');
      obj.surface = true;
    }else{
      av_display('zn16_mesh', 'on');
    }
  }else{
    av_display('zn16_mesh', 'off');
  }
}
function js_zn17_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn17_mesh white molecule zn17;');
      obj.surface = true;
    }else{
      av_display('zn17_mesh', 'on');
    }
  }else{
    av_display('zn17_mesh', 'off');
  }
}
function js_zn18_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn18_mesh white molecule zn18;');
      obj.surface = true;
    }else{
      av_display('zn18_mesh', 'on');
    }
  }else{
    av_display('zn18_mesh', 'off');
  }
}
function js_zn19_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn19_mesh white molecule zn19;');
      obj.surface = true;
    }else{
      av_display('zn19_mesh', 'on');
    }
  }else{
    av_display('zn19_mesh', 'off');
  }
}
function js_zn20_mesh(obj){
    if(obj.checked){
    if(!obj.surface){
      av_execute('surface -solid false zn20_mesh white molecule zn20;');
      obj.surface = true;
    }else{
      av_display('zn20_mesh', 'on');
    }
  }else{
    av_display('zn20_mesh', 'off');
  }
}





/* Cartoon representation */




function js_schematic_protein1(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein1; secstruc all; schematic -name protein1_schematic molecule protein1; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein1_schematic', 'on');
    }
  }else{
    av_display('protein1_schematic', 'off');
  }
}
function js_schematic_protein2(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein2; secstruc all; schematic -name protein2_schematic molecule protein2; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein2_schematic', 'on');
    }
  }else{
    av_display('protein2_schematic', 'off');
  }
}
function js_schematic_protein3(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein3; secstruc all; schematic -name protein3_schematic molecule protein3; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein3_schematic', 'on');
    }
  }else{
    av_display('protein3_schematic', 'off');
  }
}
function js_schematic_protein4(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein4; secstruc all; schematic -name protein4_schematic molecule protein4; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein4_schematic', 'on');
    }
  }else{
    av_display('protein4_schematic', 'off');
  }
}
function js_schematic_protein5(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein5; secstruc all; schematic -name protein5_schematic molecule protein5; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein5_schematic', 'on');
    }
  }else{
    av_display('protein5_schematic', 'off');
  }
}
function js_schematic_protein6(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein6; secstruc all; schematic -name protein6_schematic molecule protein6; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein6_schematic', 'on');
    }
  }else{
    av_display('protein6_schematic', 'off');
  }
}
function js_schematic_protein7(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein7; secstruc all; schematic -name protein7_schematic molecule protein7; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein7_schematic', 'on');
    }
  }else{
    av_display('protein7_schematic', 'off');
  }
}
function js_schematic_protein8(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein8; secstruc all; schematic -name protein8_schematic molecule protein8; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein8_schematic', 'on');
    }
  }else{
    av_display('protein8_schematic', 'off');
  }
}
function js_schematic_protein9(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein9; secstruc all; schematic -name protein9_schematic molecule protein9; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein9_schematic', 'on');
    }
  }else{
    av_display('protein9_schematic', 'off');
  }
}
function js_schematic_protein10(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein10; secstruc all; schematic -name protein10_schematic molecule protein10; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein10_schematic', 'on');
    }
  }else{
    av_display('protein1_schematic', 'off');
  }
}
function js_schematic_protein11(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein11; secstruc all; schematic -name protein11_schematic molecule protein11; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein11_schematic', 'on');
    }
  }else{
    av_display('protein11_schematic', 'off');
  }
}
function js_schematic_protein12(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein12; secstruc all; schematic -name protein12_schematic molecule protein12; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein12_schematic', 'on');
    }
  }else{
    av_display('protein12_schematic', 'off');
  }
}
function js_schematic_protein13(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein13; secstruc all; schematic -name protein13_schematic molecule protein13; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein13_schematic', 'on');
    }
  }else{
    av_display('protein13_schematic', 'off');
  }
}
function js_schematic_protein14(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein14; secstruc all; schematic -name protein14_schematic molecule protein14; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein14_schematic', 'on');
    }
  }else{
    av_display('protein14_schematic', 'off');
  }
}
function js_schematic_protein15(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein15; secstruc all; schematic -name protein15_schematic molecule protein15; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein15_schematic', 'on');
    }
  }else{
    av_display('protein15_schematic', 'off');
  }
}
function js_schematic_protein16(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein16; secstruc all; schematic -name protein16_schematic molecule protein16; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein16_schematic', 'on');
    }
  }else{
    av_display('protein16_schematic', 'off');
  }
}
function js_schematic_protein17(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein17; secstruc all; schematic -name protein17_schematic molecule protein17; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein17_schematic', 'on');
    }
  }else{
    av_display('protein17_schematic', 'off');
  }
}
function js_schematic_protein18(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein18; secstruc all; schematic -name protein18_schematic molecule protein18; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein18_schematic', 'on');
    }
  }else{
    av_display('protein18_schematic', 'off');
  }
}
function js_schematic_protein19(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein19; secstruc all; schematic -name protein19_schematic molecule protein19; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein19_schematic', 'on');
    }
  }else{
    av_display('protein19_schematic', 'off');
  }
}
function js_schematic_protein20(obj){
  if(obj.checked){
    if(!obj.schematic){
      av_execute('color_by_rainbow molecule protein20; secstruc all; schematic -name protein20_schematic molecule protein20; color_by_atom;');
      obj.schematic = true;
    }else{
      av_display('protein20_schematic', 'on');
    }
  }else{
    av_display('protein20_schematic', 'off');
  }
}

function js_texture_cartoon_protein1(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein1; secstruc all; schematic -name protein1_schematic molecule protein1; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein1; secstruc all; schematic -name protein1_schematic -alltube true molecule protein1; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein1_schematic -colorbyss true molecule protein1;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein1_schematic -colorbyss true -alltube true molecule protein1;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein2(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein2; secstruc all; schematic -name protein2_schematic molecule protein2; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein2; secstruc all; schematic -name protein2_schematic -alltube true molecule protein2; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein2_schematic -colorbyss true molecule protein2;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein2_schematic -colorbyss true -alltube true molecule protein2;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein3(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein3; secstruc all; schematic -name protein3_schematic molecule protein3; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein3; secstruc all; schematic -name protein3_schematic -alltube true molecule protein3; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein3_schematic -colorbyss true molecule protein3;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein3_schematic -colorbyss true -alltube true molecule protein3;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein4(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein4; secstruc all; schematic -name protein4_schematic molecule protein4; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein4; secstruc all; schematic -name protein4_schematic -alltube true molecule protein4; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein4_schematic -colorbyss true molecule protein4;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein4_schematic -colorbyss true -alltube true molecule protein4;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein5(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein5; secstruc all; schematic -name protein5_schematic molecule protein5; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein5; secstruc all; schematic -name protein5_schematic -alltube true molecule protein5; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein5_schematic -colorbyss true molecule protein5;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein5_schematic -colorbyss true -alltube true molecule protein5;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein6(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein6; secstruc all; schematic -name protein6_schematic molecule protein6; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein6; secstruc all; schematic -name protein6_schematic -alltube true molecule protein6; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein6_schematic -colorbyss true molecule protein6;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein6_schematic -colorbyss true -alltube true molecule protein6;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein7(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein7; secstruc all; schematic -name protein7_schematic molecule protein7; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein7; secstruc all; schematic -name protein7_schematic -alltube true molecule protein7; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein7_schematic -colorbyss true molecule protein7;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein7_schematic -colorbyss true -alltube true molecule protein7;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein8(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein8; secstruc all; schematic -name protein8_schematic molecule protein8; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein8; secstruc all; schematic -name protein8_schematic -alltube true molecule protein8; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein8_schematic -colorbyss true molecule protein8;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein8_schematic -colorbyss true -alltube true molecule protein8;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein9(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein9; secstruc all; schematic -name protein9_schematic molecule protein9; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein9; secstruc all; schematic -name protein9_schematic -alltube true molecule protein9; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein9_schematic -colorbyss true molecule protein9;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein9_schematic -colorbyss true -alltube true molecule protein9;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein10(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein10; secstruc all; schematic -name protein10_schematic molecule protein10; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein10; secstruc all; schematic -name protein10_schematic -alltube true molecule protein10; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein10_schematic -colorbyss true molecule protein10;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein10_schematic -colorbyss true -alltube true molecule protein10;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein11(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein11; secstruc all; schematic -name protein11_schematic molecule protein11; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein11; secstruc all; schematic -name protein11_schematic -alltube true molecule protein11; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein11_schematic -colorbyss true molecule protein11;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein11_schematic -colorbyss true -alltube true molecule protein11;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein12(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein12; secstruc all; schematic -name protein12_schematic molecule protein12; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein12; secstruc all; schematic -name protein12_schematic -alltube true molecule protein12; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein12_schematic -colorbyss true molecule protein12;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein12_schematic -colorbyss true -alltube true molecule protein12;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein13(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein13; secstruc all; schematic -name protein13_schematic molecule protein13; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein13; secstruc all; schematic -name protein13_schematic -alltube true molecule protein13; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein13_schematic -colorbyss true molecule protein13;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein13_schematic -colorbyss true -alltube true molecule protein13;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein14(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein14; secstruc all; schematic -name protein14_schematic molecule protein14; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein14; secstruc all; schematic -name protein14_schematic -alltube true molecule protein14; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein14_schematic -colorbyss true molecule protein14;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein14_schematic -colorbyss true -alltube true molecule protein14;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein15(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein15; secstruc all; schematic -name protein15_schematic molecule protein15; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein15; secstruc all; schematic -name protein15_schematic -alltube true molecule protein15; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein15_schematic -colorbyss true molecule protein15;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein15_schematic -colorbyss true -alltube true molecule protein15;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein16(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein16; secstruc all; schematic -name protein16_schematic molecule protein16; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein16; secstruc all; schematic -name protein16_schematic -alltube true molecule protein16; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein16_schematic -colorbyss true molecule protein16;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein16_schematic -colorbyss true -alltube true molecule protein16;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein17(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein17; secstruc all; schematic -name protein17_schematic molecule protein17; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein17; secstruc all; schematic -name protein17_schematic -alltube true molecule protein17; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein17_schematic -colorbyss true molecule protein17;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein17_schematic -colorbyss true -alltube true molecule protein17;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein18(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein18; secstruc all; schematic -name protein18_schematic molecule protein18; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein18; secstruc all; schematic -name protein18_schematic -alltube true molecule protein18; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein18_schematic -colorbyss true molecule protein18;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein18_schematic -colorbyss true -alltube true molecule protein18;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein19(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein19; secstruc all; schematic -name protein19_schematic molecule protein19; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein19; secstruc all; schematic -name protein19_schematic -alltube true molecule protein19; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein19_schematic -colorbyss true molecule protein19;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein19_schematic -colorbyss true -alltube true molecule protein19;');
      obj.schematic = true;
    }
}
function js_texture_cartoon_protein20(sel){
  var val = sel.options[sel.selectedIndex].value;
    if(val=='rainbow'){
      av_execute('color_by_rainbow molecule protein20; secstruc all; schematic -name protein20_schematic molecule protein20; color_by_atom;');
      obj.schematic = true;
    }else if(val=='rainbow2'){
      av_execute('color_by_rainbow molecule protein20; secstruc all; schematic -name protein20_schematic -alltube true molecule protein20; color_by_atom;');
      obj.schematic = true;
    }else if(val=='sstrue'){
      av_execute('schematic -name protein20_schematic -colorbyss true molecule protein20;');
      obj.schematic = true;
    }else{
      av_execute('schematic -name protein20_schematic -colorbyss true -alltube true molecule protein20;');
      obj.schematic = true;
    }
}


/* Atom display style */






function js_atomstyle_protein1(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein1;');
    av_execute('display sticks off molecule protein1;');
    av_execute('display cylinders off molecule protein1;');
    av_execute('display spheres off molecule protein1;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein1;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein1;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein1;');
    }else{
    av_execute('display '+ val + ' molecule protein1;');
    }
}
function js_atomstyle_protein2(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein2;');
    av_execute('display sticks off molecule protein2;');
    av_execute('display cylinders off molecule protein2;');
    av_execute('display spheres off molecule protein2;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein2;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein2;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein2;');
    }else{
    av_execute('display '+ val + ' molecule protein2;');
    }
}
function js_atomstyle_protein3(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein3;');
    av_execute('display sticks off molecule protein3;');
    av_execute('display cylinders off molecule protein3;');
    av_execute('display spheres off molecule protein3;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein3;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein3;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein3;');
    }else{
    av_execute('display '+ val + ' molecule protein3;');
    }
}
function js_atomstyle_protein4(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein4;');
    av_execute('display sticks off molecule protein4;');
    av_execute('display cylinders off molecule protein4;');
    av_execute('display spheres off molecule protein4;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein4;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein4;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein4;');
    }else{
    av_execute('display '+ val + ' molecule protein4;');
    }
}
function js_atomstyle_protein5(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein5;');
    av_execute('display sticks off molecule protein5;');
    av_execute('display cylinders off molecule protein5;');
    av_execute('display spheres off molecule protein5;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein5;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein5;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein5;');
    }else{
    av_execute('display '+ val + ' molecule protein5;');
    }
}
function js_atomstyle_protein6(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein6;');
    av_execute('display sticks off molecule protein6;');
    av_execute('display cylinders off molecule protein6;');
    av_execute('display spheres off molecule protein6;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein6;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein6;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein6;');
    }else{
    av_execute('display '+ val + ' molecule protein6;');
    }
}
function js_atomstyle_protein7(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein7;');
    av_execute('display sticks off molecule protein7;');
    av_execute('display cylinders off molecule protein7;');
    av_execute('display spheres off molecule protein7;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein7;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein7;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein7;');
    }else{
    av_execute('display '+ val + ' molecule protein7;');
    }
}
function js_atomstyle_protein8(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein8;');
    av_execute('display sticks off molecule protein8;');
    av_execute('display cylinders off molecule protein8;');
    av_execute('display spheres off molecule protein8;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein8;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein8;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein8;');
    }else{
    av_execute('display '+ val + ' molecule protein8;');
    }
}
function js_atomstyle_protein9(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein9;');
    av_execute('display sticks off molecule protein9;');
    av_execute('display cylinders off molecule protein9;');
    av_execute('display spheres off molecule protein9;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein9;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein9;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein9;');
    }else{
    av_execute('display '+ val + ' molecule protein9;');
    }
}
function js_atomstyle_protein10(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein10;');
    av_execute('display sticks off molecule protein10;');
    av_execute('display cylinders off molecule protein10;');
    av_execute('display spheres off molecule protein10;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein10;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein10;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein10;');
    }else{
    av_execute('display '+ val + ' molecule protein10;');
    }
}
function js_atomstyle_protein11(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein11;');
    av_execute('display sticks off molecule protein11;');
    av_execute('display cylinders off molecule protein11;');
    av_execute('display spheres off molecule protein11;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein11;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein11;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein11;');
    }else{
    av_execute('display '+ val + ' molecule protein11;');
    }
}
function js_atomstyle_protein12(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein12;');
    av_execute('display sticks off molecule protein12;');
    av_execute('display cylinders off molecule protein12;');
    av_execute('display spheres off molecule protein12;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein12;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein12;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein12;');
    }else{
    av_execute('display '+ val + ' molecule protein12;');
    }
}
function js_atomstyle_protein13(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein13;');
    av_execute('display sticks off molecule protein13;');
    av_execute('display cylinders off molecule protein13;');
    av_execute('display spheres off molecule protein13;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein13;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein13;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein13;');
    }else{
    av_execute('display '+ val + ' molecule protein13;');
    }
}
function js_atomstyle_protein14(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein14;');
    av_execute('display sticks off molecule protein14;');
    av_execute('display cylinders off molecule protein14;');
    av_execute('display spheres off molecule protein14;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein14;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein14;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein14;');
    }else{
    av_execute('display '+ val + ' molecule protein14;');
    }
}
function js_atomstyle_protein15(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein15;');
    av_execute('display sticks off molecule protein15;');
    av_execute('display cylinders off molecule protein15;');
    av_execute('display spheres off molecule protein15;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein15;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein15;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein15;');
    }else{
    av_execute('display '+ val + ' molecule protein15;');
    }
}
function js_atomstyle_protein16(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein16;');
    av_execute('display sticks off molecule protein16;');
    av_execute('display cylinders off molecule protein16;');
    av_execute('display spheres off molecule protein16;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein16;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein16;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein16;');
    }else{
    av_execute('display '+ val + ' molecule protein16;');
    }
}
function js_atomstyle_protein17(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein17;');
    av_execute('display sticks off molecule protein17;');
    av_execute('display cylinders off molecule protein17;');
    av_execute('display spheres off molecule protein17;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein17;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein17;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein17;');
    }else{
    av_execute('display '+ val + ' molecule protein17;');
    }
}
function js_atomstyle_protein18(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein18;');
    av_execute('display sticks off molecule protein18;');
    av_execute('display cylinders off molecule protein18;');
    av_execute('display spheres off molecule protein18;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein18;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein18;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein18;');
    }else{
    av_execute('display '+ val + ' molecule protein18;');
    }
}
function js_atomstyle_protein19(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein19;');
    av_execute('display sticks off molecule protein19;');
    av_execute('display cylinders off molecule protein19;');
    av_execute('display spheres off molecule protein19;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein19;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein19;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein19;');
    }else{
    av_execute('display '+ val + ' molecule protein19;');
    }
}
function js_atomstyle_protein20(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule protein20;');
    av_execute('display sticks off molecule protein20;');
    av_execute('display cylinders off molecule protein20;');
    av_execute('display spheres off molecule protein20;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule protein20;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule protein20;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule protein20;');
    }else{
    av_execute('display '+ val + ' molecule protein20;');
    }
}

function js_atomstyle_ligand1(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand1;');
    av_execute('display sticks off molecule ligand1;');
    av_execute('display cylinders off molecule ligand1;');
    av_execute('display spheres off molecule ligand1;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand1;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand1;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand1;');
    }else{
    av_execute('display '+ val + ' molecule ligand1;');
    }
}
function js_atomstyle_ligand2(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand2;');
    av_execute('display sticks off molecule ligand2;');
    av_execute('display cylinders off molecule ligand2;');
    av_execute('display spheres off molecule ligand2;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand2;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand2;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand2;');
    }else{
    av_execute('display '+ val + ' molecule ligand2;');
    }
}
function js_atomstyle_ligand3(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand3;');
    av_execute('display sticks off molecule ligand3;');
    av_execute('display cylinders off molecule ligand3;');
    av_execute('display spheres off molecule ligand3;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand3;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand3;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand3;');
    }else{
    av_execute('display '+ val + ' molecule ligand3;');
    }
}
function js_atomstyle_ligand4(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand4;');
    av_execute('display sticks off molecule ligand4;');
    av_execute('display cylinders off molecule ligand4;');
    av_execute('display spheres off molecule ligand4;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand4;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand4;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand4;');
    }else{
    av_execute('display '+ val + ' molecule ligand4;');
    }
}
function js_atomstyle_ligand5(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand5;');
    av_execute('display sticks off molecule ligand5;');
    av_execute('display cylinders off molecule ligand5;');
    av_execute('display spheres off molecule ligand5;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand5;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand5;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand5;');
    }else{
    av_execute('display '+ val + ' molecule ligand5;');
    }
}
function js_atomstyle_ligand6(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand6;');
    av_execute('display sticks off molecule ligand6;');
    av_execute('display cylinders off molecule ligand6;');
    av_execute('display spheres off molecule ligand6;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand6;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand6;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand6;');
    }else{
    av_execute('display '+ val + ' molecule ligand6;');
    }
}
function js_atomstyle_ligand7(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand7;');
    av_execute('display sticks off molecule ligand7;');
    av_execute('display cylinders off molecule ligand7;');
    av_execute('display spheres off molecule ligand7;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand7;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand7;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand7;');
    }else{
    av_execute('display '+ val + ' molecule ligand7;');
    }
}
function js_atomstyle_ligand8(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand8;');
    av_execute('display sticks off molecule ligand8;');
    av_execute('display cylinders off molecule ligand8;');
    av_execute('display spheres off molecule ligand8;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand8;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand8;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand8;');
    }else{
    av_execute('display '+ val + ' molecule ligand8;');
    }
}
function js_atomstyle_ligand9(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand9;');
    av_execute('display sticks off molecule ligand9;');
    av_execute('display cylinders off molecule ligand9;');
    av_execute('display spheres off molecule ligand9;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand9;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand9;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand9;');
    }else{
    av_execute('display '+ val + ' molecule ligand9;');
    }
}
function js_atomstyle_ligand10(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand10;');
    av_execute('display sticks off molecule ligand10;');
    av_execute('display cylinders off molecule ligand10;');
    av_execute('display spheres off molecule ligand10;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand10;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand10;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand10;');
    }else{
    av_execute('display '+ val + ' molecule ligand10;');
    }
}
function js_atomstyle_ligand11(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand11;');
    av_execute('display sticks off molecule ligand11;');
    av_execute('display cylinders off molecule ligand11;');
    av_execute('display spheres off molecule ligand11;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand11;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand11;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand11;');
    }else{
    av_execute('display '+ val + ' molecule ligand11;');
    }
}
function js_atomstyle_ligand12(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand12;');
    av_execute('display sticks off molecule ligand12;');
    av_execute('display cylinders off molecule ligand12;');
    av_execute('display spheres off molecule ligand12;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand12;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand12;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand12;');
    }else{
    av_execute('display '+ val + ' molecule ligand12;');
    }
}
function js_atomstyle_ligand13(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand13;');
    av_execute('display sticks off molecule ligand13;');
    av_execute('display cylinders off molecule ligand13;');
    av_execute('display spheres off molecule ligand13;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand13;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand13;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand13;');
    }else{
    av_execute('display '+ val + ' molecule ligand13;');
    }
}
function js_atomstyle_ligand14(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand14;');
    av_execute('display sticks off molecule ligand14;');
    av_execute('display cylinders off molecule ligand14;');
    av_execute('display spheres off molecule ligand14;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand14;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand14;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand14;');
    }else{
    av_execute('display '+ val + ' molecule ligand14;');
    }
}
function js_atomstyle_ligand15(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand15;');
    av_execute('display sticks off molecule ligand15;');
    av_execute('display cylinders off molecule ligand15;');
    av_execute('display spheres off molecule ligand15;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand15;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand15;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand15;');
    }else{
    av_execute('display '+ val + ' molecule ligand15;');
    }
}
function js_atomstyle_ligand16(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand16;');
    av_execute('display sticks off molecule ligand16;');
    av_execute('display cylinders off molecule ligand16;');
    av_execute('display spheres off molecule ligand16;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand16;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand16;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand16;');
    }else{
    av_execute('display '+ val + ' molecule ligand16;');
    }
}
function js_atomstyle_ligand17(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand17;');
    av_execute('display sticks off molecule ligand17;');
    av_execute('display cylinders off molecule ligand17;');
    av_execute('display spheres off molecule ligand17;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand17;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand17;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand17;');
    }else{
    av_execute('display '+ val + ' molecule ligand17;');
    }
}
function js_atomstyle_ligand18(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand18;');
    av_execute('display sticks off molecule ligand18;');
    av_execute('display cylinders off molecule ligand18;');
    av_execute('display spheres off molecule ligand18;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand18;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand18;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand18;');
    }else{
    av_execute('display '+ val + ' molecule ligand18;');
    }
}
function js_atomstyle_ligand19(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand19;');
    av_execute('display sticks off molecule ligand19;');
    av_execute('display cylinders off molecule ligand19;');
    av_execute('display spheres off molecule ligand19;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand19;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand19;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand19;');
    }else{
    av_execute('display '+ val + ' molecule ligand19;');
    }
}
function js_atomstyle_ligand20(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule ligand20;');
    av_execute('display sticks off molecule ligand20;');
    av_execute('display cylinders off molecule ligand20;');
    av_execute('display spheres off molecule ligand20;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule ligand20;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule ligand20;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule ligand20;');
    }else{
    av_execute('display '+ val + ' molecule ligand20;');
    }
}

function js_atomstyle_zn1(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn1;');
    av_execute('display sticks off molecule zn1;');
    av_execute('display cylinders off molecule zn1;');
    av_execute('display spheres off molecule zn1;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn1;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn1;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn1;');
    }else{
    av_execute('display '+ val + ' molecule zn1;');
    }
}
function js_atomstyle_zn2(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn2;');
    av_execute('display sticks off molecule zn2;');
    av_execute('display cylinders off molecule zn2;');
    av_execute('display spheres off molecule zn2;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn2;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn2;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn2;');
    }else{
    av_execute('display '+ val + ' molecule zn2;');
    }
}
function js_atomstyle_zn3(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn3;');
    av_execute('display sticks off molecule zn3;');
    av_execute('display cylinders off molecule zn3;');
    av_execute('display spheres off molecule zn3;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn3;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn3;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn3;');
    }else{
    av_execute('display '+ val + ' molecule zn3;');
    }
}
function js_atomstyle_zn4(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn4;');
    av_execute('display sticks off molecule zn4;');
    av_execute('display cylinders off molecule zn4;');
    av_execute('display spheres off molecule zn4;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn4;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn4;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn4;');
    }else{
    av_execute('display '+ val + ' molecule zn4;');
    }
}
function js_atomstyle_zn5(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn5;');
    av_execute('display sticks off molecule zn5;');
    av_execute('display cylinders off molecule zn5;');
    av_execute('display spheres off molecule zn5;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn5;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn5;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn5;');
    }else{
    av_execute('display '+ val + ' molecule zn5;');
    }
}
function js_atomstyle_zn6(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn6;');
    av_execute('display sticks off molecule zn6;');
    av_execute('display cylinders off molecule zn6;');
    av_execute('display spheres off molecule zn6;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn6;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn6;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn6;');
    }else{
    av_execute('display '+ val + ' molecule zn6;');
    }
}
function js_atomstyle_zn7(se7){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn7;');
    av_execute('display sticks off molecule zn7;');
    av_execute('display cylinders off molecule zn7;');
    av_execute('display spheres off molecule zn7;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn7;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn7;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn7;');
    }else{
    av_execute('display '+ val + ' molecule zn7;');
    }
}
function js_atomstyle_zn8(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn8;');
    av_execute('display sticks off molecule zn8;');
    av_execute('display cylinders off molecule zn8;');
    av_execute('display spheres off molecule zn8;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn8;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn8;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn8;');
    }else{
    av_execute('display '+ val + ' molecule zn8;');
    }
}
function js_atomstyle_zn9(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn9;');
    av_execute('display sticks off molecule zn9;');
    av_execute('display cylinders off molecule zn9;');
    av_execute('display spheres off molecule zn9;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn9;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn9;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn9;');
    }else{
    av_execute('display '+ val + ' molecule zn9;');
    }
}
function js_atomstyle_zn10(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn10;');
    av_execute('display sticks off molecule zn10;');
    av_execute('display cylinders off molecule zn10;');
    av_execute('display spheres off molecule zn10;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn10;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn10;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn10;');
    }else{
    av_execute('display '+ val + ' molecule zn10;');
    }
}
function js_atomstyle_zn11(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn11;');
    av_execute('display sticks off molecule zn11;');
    av_execute('display cylinders off molecule zn11;');
    av_execute('display spheres off molecule zn11;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn11;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn11;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn11;');
    }else{
    av_execute('display '+ val + ' molecule zn11;');
    }
}
function js_atomstyle_zn12(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn12;');
    av_execute('display sticks off molecule zn12;');
    av_execute('display cylinders off molecule zn12;');
    av_execute('display spheres off molecule zn12;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn12;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn12;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn12;');
    }else{
    av_execute('display '+ val + ' molecule zn12;');
    }
}
function js_atomstyle_zn13(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn13;');
    av_execute('display sticks off molecule zn13;');
    av_execute('display cylinders off molecule zn13;');
    av_execute('display spheres off molecule zn13;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn13;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn13;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn13;');
    }else{
    av_execute('display '+ val + ' molecule zn13;');
    }
}
function js_atomstyle_zn14(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn14;');
    av_execute('display sticks off molecule zn14;');
    av_execute('display cylinders off molecule zn14;');
    av_execute('display spheres off molecule zn14;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn14;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn14;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn14;');
    }else{
    av_execute('display '+ val + ' molecule zn14;');
    }
}
function js_atomstyle_zn15(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn15;');
    av_execute('display sticks off molecule zn15;');
    av_execute('display cylinders off molecule zn15;');
    av_execute('display spheres off molecule zn15;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn15;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn15;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn15;');
    }else{
    av_execute('display '+ val + ' molecule zn15;');
    }
}
function js_atomstyle_zn16(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn16;');
    av_execute('display sticks off molecule zn16;');
    av_execute('display cylinders off molecule zn16;');
    av_execute('display spheres off molecule zn16;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn16;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn16;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn16;');
    }else{
    av_execute('display '+ val + ' molecule zn16;');
    }
}
function js_atomstyle_zn17(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn17;');
    av_execute('display sticks off molecule zn17;');
    av_execute('display cylinders off molecule zn17;');
    av_execute('display spheres off molecule zn17;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn17;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn17;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn17;');
    }else{
    av_execute('display '+ val + ' molecule zn17;');
    }
}
function js_atomstyle_zn18(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn18;');
    av_execute('display sticks off molecule zn18;');
    av_execute('display cylinders off molecule zn18;');
    av_execute('display spheres off molecule zn18;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn18;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn18;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn18;');
    }else{
    av_execute('display '+ val + ' molecule zn18;');
    }
}
function js_atomstyle_zn19(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn19;');
    av_execute('display sticks off molecule zn19;');
    av_execute('display cylinders off molecule zn19;');
    av_execute('display spheres off molecule zn19;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn19;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn19;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn19;');
    }else{
    av_execute('display '+ val + ' molecule zn19;');
    }
}
function js_atomstyle_zn20(sel){
  var val = sel.options[sel.selectedIndex].value;
    av_execute('display lines on molecule zn20;');
    av_execute('display sticks off molecule zn20;');
    av_execute('display cylinders off molecule zn20;');
    av_execute('display spheres off molecule zn20;');
    if(val=='1'){
    av_execute('bond_width '+ val + ' molecule zn20;');
    }else if(val=='2'){
    av_execute('bond_width '+ val + ' molecule zn20;');
    }else if(val=='3'){
    av_execute('bond_width '+ val + ' molecule zn20;');
    }else{
    av_execute('display '+ val + ' molecule zn20;');
    }
}



/* Colour Atoms  */



function js_colour_protein1_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein1;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein1;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein1;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein1;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein1;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein1;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein1;');
  }else{
    av_execute('color '+ val + ' molecule protein1;');
    }
}
function js_colour_protein2_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein2;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein2;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein2;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein2;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein2;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein2;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein2;');
  }else{
    av_execute('color '+ val + ' molecule protein2;');
    }
}
function js_colour_protein3_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein3;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein3;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein3;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein3;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein3;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein3;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein3;');
  }else{
    av_execute('color '+ val + ' molecule protein3;');
    }
}
function js_colour_protein4_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein4;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein4;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein4;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein4;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein4;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein4;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein4;');
  }else{
    av_execute('color '+ val + ' molecule protein4;');
    }
}
function js_colour_protein5_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein5;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein5;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein5;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein5;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein5;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein5;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein5;');
  }else{
    av_execute('color '+ val + ' molecule protein5;');
    }
}
function js_colour_protein6_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein6;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein6;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein6;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein6;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein6;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein6;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein6;');
  }else{
    av_execute('color '+ val + ' molecule protein6;');
    }
}
function js_colour_protein7_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein7;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein7;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein7;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein7;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein7;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein7;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein7;');
  }else{
    av_execute('color '+ val + ' molecule protein7;');
    }
}
function js_colour_protein8_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein8;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein8;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein8;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein8;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein8;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein8;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein8;');
  }else{
    av_execute('color '+ val + ' molecule protein8;');
    }
}
function js_colour_protein9_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein9;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein9;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein9;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein9;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein9;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein9;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein9;');
  }else{
    av_execute('color '+ val + ' molecule protein9;');
    }
}
function js_colour_protein10_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein10;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein10;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein10;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein10;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein10;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein10;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein10;');
  }else{
    av_execute('color '+ val + ' molecule protein10;');
    }
}
function js_colour_protein11_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein11;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein11;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule protein11;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein11;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein11;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein11;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein11;');
  }else{
    av_execute('color '+ val + ' molecule protein11;');
    }
}
function js_colour_protein12_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein12;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein12;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein12;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein12;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein12;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein12;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein12;');
  }else{
    av_execute('color '+ val + ' molecule protein12;');
    }
}
function js_colour_protein13_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein13;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein13;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein13;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein13;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein13;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein13;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein13;');
  }else{
    av_execute('color '+ val + ' molecule protein13;');
    }
}
function js_colour_protein14_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein14;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein14;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein14;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein14;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein14;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein14;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein14;');
  }else{
    av_execute('color '+ val + ' molecule protein14;');
    }
}
function js_colour_protein15_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein15;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein15;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein15;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein15;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein15;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein15;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein15;');
  }else{
    av_execute('color '+ val + ' molecule protein15;');
    }
}
function js_colour_protein16_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein16;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein16;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein16;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein16;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein16;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein16;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein16;');
  }else{
    av_execute('color '+ val + ' molecule protein16;');
    }
}
function js_colour_protein17_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein17;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein17;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein17;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein17;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein17;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein17;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein17;');
  }else{
    av_execute('color '+ val + ' molecule protein17;');
    }
}
function js_colour_protein18_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein18;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein18;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein18;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein18;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein18;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein18;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein18;');
  }else{
    av_execute('color '+ val + ' molecule protein18;');
    }
}
function js_colour_protein19_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein19;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein19;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein19;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein19;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein19;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein19;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein19;');
  }else{
    av_execute('color '+ val + ' molecule protein19;');
    }
}
function js_colour_protein20_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule protein20;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule protein20;');
    av_execute('color_by_atom;');
    av_execute('select none;');
      av_execute('color 0xa9a9a9 atom C* and molecule protein20;');
  }else if(val=='atom_black'){
    av_execute('select molecule protein20;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule protein20;');
  }else if(val=='atom_white'){
    av_execute('select molecule protein20;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule protein20;');
  }else{
    av_execute('color '+ val + ' molecule protein20;');
    }
}
function js_colour_ligand1_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand1;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand1;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand1;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand1;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand1;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand1;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand1;');
  }else{
    av_execute('color '+ val + ' molecule ligand1;');
    }
}
function js_colour_ligand2_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand2;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand2;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand2;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand2;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand2;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand2;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand2;');
  }else{
    av_execute('color '+ val + ' molecule ligand2;');
    }
}
function js_colour_ligand3_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand3;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand3;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand3;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand3;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand3;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand3;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand3;');
  }else{
    av_execute('color '+ val + ' molecule ligand3;');
    }
}
function js_colour_ligand4_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand4;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand4;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand4;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand4;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand4;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand4;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand4;');
  }else{
    av_execute('color '+ val + ' molecule ligand4;');
    }
}
function js_colour_ligand5_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand5;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand5;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand5;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand5;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand5;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand5;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand5;');
  }else{
    av_execute('color '+ val + ' molecule ligand5;');
    }
}
function js_colour_ligand6_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand6;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand6;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand6;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand6;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand6;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand6;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand6;');
  }else{
    av_execute('color '+ val + ' molecule ligand6;');
    }
}
function js_colour_ligand7_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand7;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand7;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand7;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand7;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand7;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand7;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand7;');
  }else{
    av_execute('color '+ val + ' molecule ligand7;');
    }
}
function js_colour_ligand8_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand8;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand8;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand8;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand8;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand8;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand8;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand8;');
  }else{
    av_execute('color '+ val + ' molecule ligand8;');
    }
}
function js_colour_ligand9_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand9;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand9;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand9;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand9;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand9;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand9;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand9;');
  }else{
    av_execute('color '+ val + ' molecule ligand9;');
    }
}
function js_colour_ligand10_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand10;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand10;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand10;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand10;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand10;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand10;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand10;');
  }else{
    av_execute('color '+ val + ' molecule ligand10;');
    }
}
function js_colour_ligand11_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand11;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand11;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand11;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand11;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand11;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand11;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand11;');
  }else{
    av_execute('color '+ val + ' molecule ligand11;');
    }
}
function js_colour_ligand12_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand12;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand12;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand12;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand12;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand12;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand12;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand12;');
  }else{
    av_execute('color '+ val + ' molecule ligand12;');
    }
}
function js_colour_ligand13_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand13;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand13;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand13;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand13;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand13;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand13;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand13;');
  }else{
    av_execute('color '+ val + ' molecule ligand13;');
    }
}
function js_colour_ligand14_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand14;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand14;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand14;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand14;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand14;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand14;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand14;');
  }else{
    av_execute('color '+ val + ' molecule ligand14;');
    }
}
function js_colour_ligand15_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand15;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand15;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand15;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand15;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand15;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand15;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand15;');
  }else{
    av_execute('color '+ val + ' molecule ligand15;');
    }
}
function js_colour_ligand16_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand16;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand16;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand16;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand16;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand16;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand16;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand16;');
  }else{
    av_execute('color '+ val + ' molecule ligand16;');
    }
}
function js_colour_ligand17_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand17;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand17;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand17;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand17;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand17;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand17;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand17;');
  }else{
    av_execute('color '+ val + ' molecule ligand17;');
    }
}
function js_colour_ligand18_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand18;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand18;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand18;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand18;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand18;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand18;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand18;');
  }else{
    av_execute('color '+ val + ' molecule ligand18;');
    }
}
function js_colour_ligand19_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand19;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand19;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand19;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand19;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand19;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand19;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand19;');
  }else{
    av_execute('color '+ val + ' molecule ligand19;');
    }
}
function js_colour_ligand20_atoms(sel){
  var val = sel.options[sel.selectedIndex].value;
  if(val=='atom_green'){
    av_execute('select molecule ligand20;');
    av_execute('color_by_atom;');
    av_execute('select none;');
  }else if(val=='atom_grey'){
    av_execute('select molecule ligand20;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0xa9a9a9 atom C* and molecule ligand20;');
  }else if(val=='atom_black'){
    av_execute('select molecule ligand20;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color 0x000000 atom C* and molecule ligand20;');
  }else if(val=='atom_white'){
    av_execute('select molecule ligand20;');
    av_execute('color_by_atom;');
    av_execute('select none;');
    av_execute('color white atom C* and molecule ligand20;');
  }else{
    av_execute('color '+ val + ' molecule ligand20;');
    }
}



/* Colour solid surfaces and cartoons*/




function js_colour_protein1(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein1_surface', val);
}
function js_colour_protein2(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein2_surface', val);
}
function js_colour_protein3(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein3_surface', val);
}
function js_colour_protein4(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein4_surface', val);
}
function js_colour_protein5(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein5_surface', val);
}
function js_colour_protein6(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein6_surface', val);
}
function js_colour_protein7(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein7_surface', val);
}
function js_colour_protein8(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein8_surface', val);
}
function js_colour_protein9(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein9_surface', val);
}
function js_colour_protein10(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein10_surface', val);
}
function js_colour_protein11(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein11_surface', val);
}
function js_colour_protein12(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein12_surface', val);
}
function js_colour_protein13(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein13_surface', val);
}
function js_colour_protein14(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein14_surface', val);
}
function js_colour_protein15(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein15_surface', val);
}
function js_colour_protein16(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein16_surface', val);
}
function js_colour_protein17(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein17_surface', val);
}
function js_colour_protein18(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein18_surface', val);
}
function js_colour_protein19(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein19_surface', val);
}
function js_colour_protein20(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein20_surface', val);
}

function js_colour_ligand1(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand1_surface', val);
}
function js_colour_ligand2(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand2_surface', val);
}
function js_colour_ligand3(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand3_surface', val);
}
function js_colour_ligand4(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand4_surface', val);
}
function js_colour_ligand5(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand5_surface', val);
}
function js_colour_ligand6(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand6_surface', val);
}
function js_colour_ligand7(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand7_surface', val);
}
function js_colour_ligand8(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand8_surface', val);
}
function js_colour_ligand9(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand9_surface', val);
}
function js_colour_ligand10(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand10_surface', val);
}
function js_colour_ligand11(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand11_surface', val);
}
function js_colour_ligand12(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand12_surface', val);
}
function js_colour_ligand13(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand13_surface', val);
}
function js_colour_ligand14(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand14_surface', val);
}
function js_colour_ligand15(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand15_surface', val);
}
function js_colour_ligand16(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand16_surface', val);
}
function js_colour_ligand17(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand17_surface', val);
}
function js_colour_ligand18(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand18_surface', val);
}
function js_colour_ligand19(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand19_surface', val);
}
function js_colour_ligand20(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand20_surface', val);
}

function js_colour_zn1(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn1_surface', val);
}
function js_colour_zn2(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn2_surface', val);
}
function js_colour_zn3(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn3_surface', val);
}
function js_colour_zn4(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn4_surface', val);
}
function js_colour_zn5(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn5_surface', val);
}
function js_colour_zn6(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn6_surface', val);
}
function js_colour_zn7(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn7_surface', val);
}
function js_colour_zn8(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn8_surface', val);
}
function js_colour_zn9(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn9_surface', val);
}
function js_colour_zn10(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn10_surface', val);
}
function js_colour_zn11(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn11_surface', val);
}
function js_colour_zn12(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn12_surface', val);
}
function js_colour_zn13(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn13_surface', val);
}
function js_colour_zn14(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn14_surface', val);
}
function js_colour_zn15(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn15_surface', val);
}
function js_colour_zn16(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn16_surface', val);
}
function js_colour_zn17(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn17_surface', val);
}
function js_colour_zn18(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn18_surface', val);
}
function js_colour_zn19(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn19_surface', val);
}
function js_colour_zn20(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn20_surface', val);
}

function js_colour_cartoon_protein1(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein1_schematic', val);
}
function js_colour_cartoon_protein2(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein2_schematic', val);
}
function js_colour_cartoon_protein3(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein3_schematic', val);
}
function js_colour_cartoon_protein4(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein4_schematic', val);
}
function js_colour_cartoon_protein5(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein5_schematic', val);
}
function js_colour_cartoon_protein6(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein6_schematic', val);
}
function js_colour_cartoon_protein7(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein7_schematic', val);
}
function js_colour_cartoon_protein8(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein8_schematic', val);
}
function js_colour_cartoon_protein9(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein9_schematic', val);
}
function js_colour_cartoon_protein10(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein10_schematic', val);
}
function js_colour_cartoon_protein11(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein11_schematic', val);
}
function js_colour_cartoon_protein12(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein12_schematic', val);
}
function js_colour_cartoon_protein13(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein13_schematic', val);
}
function js_colour_cartoon_protein14(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein14_schematic', val);
}
function js_colour_cartoon_protein15(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein15_schematic', val);
}
function js_colour_cartoon_protein16(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein16_schematic', val);
}
function js_colour_cartoon_protein17(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein17_schematic', val);
}
function js_colour_cartoon_protein18(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein18_schematic', val);
}
function js_colour_cartoon_protein19(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein19_schematic', val);
}
function js_colour_cartoon_protein20(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein20_schematic', val);
}


/* Colour mesh surfaces */




function js_colour_protein1_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein1_mesh', val);
}
function js_colour_protein2_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein2_mesh', val);
}
function js_colour_protein3_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein3_mesh', val);
}
function js_colour_protein4_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein4_mesh', val);
}
function js_colour_protein5_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein5_mesh', val);
}
function js_colour_protein6_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein6_mesh', val);
}
function js_colour_protein7_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein7_mesh', val);
}
function js_colour_protein8_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein8_mesh', val);
}
function js_colour_protein9_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein9_mesh', val);
}
function js_colour_protein10_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein10_mesh', val);
}
function js_colour_protein11_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein11_mesh', val);
}
function js_colour_protein12_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein12_mesh', val);
}
function js_colour_protein13_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein13_mesh', val);
}
function js_colour_protein14_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein14_mesh', val);
}
function js_colour_protein15_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein15_mesh', val);
}
function js_colour_protein16_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein16_mesh', val);
}
function js_colour_protein17_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein17_mesh', val);
}
function js_colour_protein18_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein18_mesh', val);
}
function js_colour_protein19_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein19_mesh', val);
}
function js_colour_protein20_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('protein20_mesh', val);
}

function js_colour_ligand1_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand1_mesh', val);
}
function js_colour_ligand2_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand2_mesh', val);
}
function js_colour_ligand3_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand3_mesh', val);
}
function js_colour_ligand4_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand4_mesh', val);
}
function js_colour_ligand5_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand5_mesh', val);
}
function js_colour_ligand6_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand6_mesh', val);
}
function js_colour_ligand7_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand7_mesh', val);
}
function js_colour_ligand8_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand8_mesh', val);
}
function js_colour_ligand9_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand9_mesh', val);
}
function js_colour_ligand10_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand10_mesh', val);
}
function js_colour_ligand11_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand11_mesh', val);
}
function js_colour_ligand12_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand12_mesh', val);
}
function js_colour_ligand13_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand13_mesh', val);
}
function js_colour_ligand14_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand14_mesh', val);
}
function js_colour_ligand15_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand15_mesh', val);
}
function js_colour_ligand16_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand16_mesh', val);
}
function js_colour_ligand17_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand17_mesh', val);
}
function js_colour_ligand18_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand18_mesh', val);
}
function js_colour_ligand19_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand19_mesh', val);
}
function js_colour_ligand20_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('ligand20_mesh', val);
}

function js_colour_zn1_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn1_mesh', val);
}
function js_colour_zn2_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn2_mesh', val);
}
function js_colour_zn3_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn3_mesh', val);
}
function js_colour_zn4_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn4_mesh', val);
}
function js_colour_zn5_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn5_mesh', val);
}
function js_colour_zn6_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn6_mesh', val);
}
function js_colour_zn7_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn7_mesh', val);
}
function js_colour_zn8_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn8_mesh', val);
}
function js_colour_zn9_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn9_mesh', val);
}
function js_colour_zn10_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn10_mesh', val);
}
function js_colour_zn11_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn11_mesh', val);
}
function js_colour_zn12_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn12_mesh', val);
}
function js_colour_zn13_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn13_mesh', val);
}
function js_colour_zn14_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn14_mesh', val);
}
function js_colour_zn15_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn15_mesh', val);
}
function js_colour_zn16_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn16_mesh', val);
}
function js_colour_zn17_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn17_mesh', val);
}
function js_colour_zn18_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn18_mesh', val);
}
function js_colour_zn19_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn19_mesh', val);
}
function js_colour_zn20_mesh(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_colour('zn20_mesh', val);
}



/* Display Hydrogen Bonds between poses and protein (and solvent)*/




function js_HB_ligand1(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand1 -mode pairs -from { element 7 8 and molecule ligand1 or (solvent and sphere 4 around molecule ligand1) } -to { element 7 8 and (molecule protein1 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand1;");
  }
}
function js_HB_ligand2(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand2 -mode pairs -from { element 7 8 and molecule ligand2 or (solvent and sphere 4 around molecule ligand2) } -to { element 7 8 and (molecule protein2 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand2;");
  }
}
function js_HB_ligand3(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand3 -mode pairs -from { element 7 8 and molecule ligand3 or (solvent and sphere 4 around molecule ligand3) } -to { element 7 8 and (molecule protein3 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand3;");
  }
}
function js_HB_ligand4(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand4 -mode pairs -from { element 7 8 and molecule ligand4 or (solvent and sphere 4 around molecule ligand4) } -to { element 7 8 and (molecule protein4 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand4;");
  }
}
function js_HB_ligand5(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand5 -mode pairs -from { element 7 8 and molecule ligand5 or (solvent and sphere 4 around molecule ligand5) } -to { element 7 8 and (molecule protein5 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand5;");
  }
}
function js_HB_ligand6(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand6 -mode pairs -from { element 7 8 and molecule ligand6 or (solvent and sphere 4 around molecule ligand6) } -to { element 7 8 and (molecule protein6 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand6;");
  }
}
function js_HB_ligand7(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand7 -mode pairs -from { element 7 8 and molecule ligand7 or (solvent and sphere 4 around molecule ligand7) } -to { element 7 8 and (molecule protein7 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand7;");
  }
}
function js_HB_ligand8(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand8 -mode pairs -from { element 7 8 and molecule ligand8 or (solvent and sphere 4 around molecule ligand8) } -to { element 7 8 and (molecule protein8 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand8;");
  }
}
function js_HB_ligand9(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand9 -mode pairs -from { element 7 8 and molecule ligand9 or (solvent and sphere 4 around molecule ligand9) } -to { element 7 8 and (molecule protein9 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand9;");
  }
}
function js_HB_ligand10(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand10 -mode pairs -from { element 7 8 and molecule ligand10 or (solvent and sphere 4 around molecule ligand10) } -to { element 7 8 and (molecule protein10 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand10;");
  }
}
function js_HB_ligand11(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand11 -mode pairs -from { element 7 8 and molecule ligand11 or (solvent and sphere 4 around molecule ligand11) } -to { element 7 8 and (molecule protein11 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand11;");
  }
}
function js_HB_ligand12(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand12 -mode pairs -from { element 7 8 and molecule ligand12 or (solvent and sphere 4 around molecule ligand12) } -to { element 7 8 and (molecule protein12 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand12;");
  }
}
function js_HB_ligand13(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand13 -mode pairs -from { element 7 8 and molecule ligand13 or (solvent and sphere 4 around molecule ligand13) } -to { element 7 8 and (molecule protein13 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand13;");
  }
}
function js_HB_ligand14(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand14 -mode pairs -from { element 7 8 and molecule ligand14 or (solvent and sphere 4 around molecule ligand14) } -to { element 7 8 and (molecule protein14 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand14;");
  }
}
function js_HB_ligand15(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand15 -mode pairs -from { element 7 8 and molecule ligand15 or (solvent and sphere 4 around molecule ligand15) } -to { element 7 8 and (molecule protein15 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand15;");
  }
}
function js_HB_ligand16(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand16 -mode pairs -from { element 7 8 and molecule ligand16 or (solvent and sphere 4 around molecule ligand16) } -to { element 7 8 and (molecule protein16 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand16;");
  }
}
function js_HB_ligand17(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand17 -mode pairs -from { element 7 8 and molecule ligand17 or (solvent and sphere 4 around molecule ligand17) } -to { element 7 8 and (molecule protein17 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand17;");
  }
}
function js_HB_ligand18(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand18 -mode pairs -from { element 7 8 and molecule ligand18 or (solvent and sphere 4 around molecule ligand18) } -to { element 7 8 and (molecule protein18 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand18;");
  }
}
function js_HB_ligand19(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand19 -mode pairs -from { element 7 8 and molecule ligand19 or (solvent and sphere 4 around molecule ligand19) } -to { element 7 8 and (molecule protein19 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand19;");
  }
}
function js_HB_ligand20(sel){
  if(sel.checked){
    av_execute("distance -name hbonds_ligand20 -mode pairs -from { element 7 8 and molecule ligand20 or (solvent and sphere 4 around molecule ligand20) } -to { element 7 8 and (molecule protein20 or solvent) } -contact 0.2 -colour white -on 0.3 -off 0.4 -radius 0.03 -format '<justify=vh,points=16>%.1f' ;");
  }else{
    av_execute("distance -delete hbonds_ligand20;");
  }
}




/* Display contacts between poses and protein */




function js_contacts_ligand1(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand1;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand2(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand2;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand3(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand3;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand4(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand4;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand5(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand5;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand6(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand6;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand7(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand7;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand8(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand8;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand9(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand9;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand10(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand10;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand11(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand11;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand12(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand12;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand13(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand13;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand14(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand14;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand15(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand15;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand16(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand16;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand17(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand17;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand18(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand18;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand19(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand19;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}
function js_contacts_ligand20(sel){
  if(sel.checked){
    av.execute("select atom CA and byresidue sphere 4 around molecule ligand20;");
    av_execute("label '<color=white,justify=vh,points=18>%f%r' current;");
    av.execute("select none;");
  }else{
    av_execute("label clear atom CA;");
  }
}



/* Viewer controls */




function js_antialias(sel){
  if(sel.checked){
    av_execute("view -antialias true;");
  }else{
    av_execute("view -antialias false;");
  }
}

function js_shadows(sel){
  if(sel.checked){
    av_execute("view -realspheres true; view -shadows true;");
  }else{
    av_execute("view -realspheres false; view -shadows false;");
  }
}

function js_background(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_execute("view -gradient false;");
  av_background(val);
}
function js_background2(sel){
  var val = sel.options[sel.selectedIndex].value;
  av_execute('view -gradient true -gradientbottom black -gradienttop '+ val+';');
}
