/* Move the Table number and description to the top */
/* Remove the colon from TABLE number */
if ($("div[data-block_type='tb_v6']").length) {
$("div[data-block_type='tb_v6']").each(function() {
/* Remove colon at the end of table number */
var the_text = $(this).children("div[data-type='table_text']").children("span[data-type='number']").text() ;
var ind = the_text.indexOf(":") ;
the_text = the_text.substr(0, ind) + " " ;
$(this).children("div[data-type='table_text']").children("span[data-type='number']").text(the_text) ;
$(this).children("table").css("margin-left","6px") ;
/* Align Table title */
$(this).children("div[data-type='table_text']").children("span[data-type='number']").css("margin-left", "5px").css("padding-left", "10px").css("background-color", "#ebf3fb").css("border-bottom", "0px solid #000000") ;
var the_div = $(this).children("div[data-type='table_text']").detach() ;
$(this).before(the_div) ;
}) ;
} /* if */
/***********************************************/
/** Add blue stripes next to TABLE number **/
if ($("div[data-type='table_text']").length) {
$("div[data-type='table_text']").each(function() {
var hght ;
if ($(this).next("div#iga11e-ch11-table-3").length) {
hght = "86" ;
} else if ($(this).next("div#iga11e-ch11-table-4").length) {
hght = "44" ;
}
else {
hght = "72" ;
}
if ((/Firefox/.test(navigator.userAgent)) || (/Chrome/.test(navigator.userAgent))) {
$(this).before("
") ;
} else {
$(this).before("") ;
}
}) ;
} /* if */
/*******************************************/
/* Remove borders Tables 11-1, 11-2, 11-3 */
if ($("div#iga11e-ch11-table-1").length) {
$("div#iga11e-ch11-table-1").prev().css("width", "790px") ;
$("div#iga11e-ch11-table-2").prev().css("width", "790px") ;
/* Remove bottom border Table 11-1 and 11-2 */
$("div#iga11e-ch11-table-1 table").css("border-bottom", "none") ;
$("div#iga11e-ch11-table-2 table").css("border-bottom", "none") ;
$("div#iga11e-ch11-table-3 table").css("border-bottom", "none") ;
/* Table 11-1 Remove header lines above Strain Genotype and Conclusion */
$("div#iga11e-ch11-para-65").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-66").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-69").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-70").parent("th").css("border-top", "none") ;
$("div#iga11e-ch11-para-71").parent("th").css("border-top", "none") ;
$("div#iga11e-ch11-para-76").parent("th").css("border-top", "none") ;
/* Table 11-2 Remove header lines above Strain Genotype and Conclusion */
$("div#iga11e-ch11-para-112").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-113").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-116").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-117").parent("th").css("border-top", "none") ;
$("div#iga11e-ch11-para-118").parent("th").css("border-top", "none") ;
$("div#iga11e-ch11-para-123").parent("th").css("border-top", "none") ;
/* Table 11-3 Remove header lines above Strain Genotype and Conclusion */
$("div#iga11e-ch11-para-159").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-160").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-163").parent("th").css("border-bottom", "none") ;
$("div#iga11e-ch11-para-164").parent("th").css("border-top", "none") ;
$("div#iga11e-ch11-para-165").parent("th").css("border-top", "none") ;
$("div#iga11e-ch11-para-170").parent("th").css("border-top", "none") ;
} /* if */
/******************************************/
/* 11.5 Metabolic Pathways and ... */
/* Format title so second line is indented */
if ($("div[data-print_page='414']").length) {
var num = $("div[data-print_page='414']").children("h2").children("span[data-type='number']").text() ;
$("div[data-print_page='414']").children("h2").children("span[data-type='number']").remove() ;
var title = $("div[data-print_page='414']").children("h2").children("span[data-type='title']").text() ;
$("div[data-print_page='414']").children("h2").children("span[data-type='title']").remove() ;
var new_html = "" ;
$("div[data-print_page='414']").children("h2").html(new_html) ;
} /* if */
/******************************************/
/* Table in Solved Problem 1. Remove border-bottom in table header. */
/* Add border to right of the word Inducer */
if ($("div#iga11e-ch11-para-332").length) {
$("div#iga11e-ch11-para-332").parent().css("border-bottom", "none") ;
$("div#iga11e-ch11-para-337").parent().css("border-right", "1px solid black") ;
} /* if */
/******************************************/
/* Table in Question 13 - add vertical line */
if ($("div#iga11e-ch11-para-426").length) {
$("div#iga11e-ch11-para-426").parent().css("border-right", "1px solid black") ;
$("div#iga11e-ch11-para-414").parent().css("border-right", "1px solid black") ;
$("div#iga11e-ch11-para-410").parent().css("border-right", "1px solid black") ;
$("div#iga11e-ch11-para-412").parent().css("border-top", "none") ;
/* Move - and + to the top */
$("div#iga11e-ch11-para-425").parent().css("vertical-align","top") ;
$("div#iga11e-ch11-para-426").parent().css("vertical-align","top") ;
$("div#iga11e-ch11-para-427").parent().css("vertical-align","top") ;
$("div#iga11e-ch11-para-428").parent().css("vertical-align","top") ;
} /* if */