//this makes the chapter number appear only on the intro page
var h2_text = $("[data-block_type='intro'] h2").text();
// h2_text = "Chapter 31: " + h2_text;
// $("h2").text(h2_text);
var new_header ="
31" + h2_text + "
";
$("[data-block_type='intro'] h2").replaceWith(new_header);
xBookUtils.terms['fn_31_1'] = "1. Robert Anholt, Dazzle ’Em with Style: The Art of Oral Scientific Presentation (New York: W. H. Freeman and Company, 1994).";
//print the checklist
var gAutoPrint = true; // Tells whether to automatically call the print function
function printSpecial()
{
if (document.getElementById != null)
{
var html = '\n\n';
if (document.getElementsByTagName != null)
{
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0)
html += headTags[0].innerHTML;
}
html += '\n\n\n';
var printReadyElem = document.getElementById("printReady");
if (printReadyElem != null)
{
html += printReadyElem.innerHTML;
}
else
{
alert("Could not find the printReady function");
return;
}
html += '\n\n';
var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
printWin.print();
}
else
{
alert("The print ready feature is only available if you are using a browser. Please update your browser.");
}
}
//print the second checklist
var gAutoPrint = true; // Tells whether to automatically call the print function
function printSpecial2()
{
if (document.getElementById != null)
{
var html = '\n\n';
if (document.getElementsByTagName != null)
{
var headTags = document.getElementsByTagName("head");
if (headTags.length > 0)
html += headTags[0].innerHTML;
}
html += '\n\n\n';
var printReadyElem = document.getElementById("printReady2");
if (printReadyElem != null)
{
html += printReadyElem.innerHTML;
}
else
{
alert("Could not find the printReady function");
return;
}
html += '\n\n';
var printWin = window.open("","printSpecial2");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
printWin.print();
}
else
{
alert("The print ready feature is only available if you are using a browser. Please update your browser.");
}
}
function changeImage1() {
if (document.getElementById("imgClickAndChange1").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange1").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange1").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage2() {
if (document.getElementById("imgClickAndChange2").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange2").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange2").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage3() {
if (document.getElementById("imgClickAndChange3").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange3").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange3").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage4() {
if (document.getElementById("imgClickAndChange4").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange4").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange4").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage5() {
if (document.getElementById("imgClickAndChange5").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange5").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange5").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage6() {
if (document.getElementById("imgClickAndChange6").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange6").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange6").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage7() {
if (document.getElementById("imgClickAndChange7").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange7").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange7").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage8() {
if (document.getElementById("imgClickAndChange8").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange8").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange8").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage9() {
if (document.getElementById("imgClickAndChange9").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange9").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange9").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage10() {
if (document.getElementById("imgClickAndChange10").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange10").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange10").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage11() {
if (document.getElementById("imgClickAndChange11").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange11").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange11").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage12() {
if (document.getElementById("imgClickAndChange12").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange12").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange12").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage13() {
if (document.getElementById("imgClickAndChange13").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange13").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange13").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}
function changeImage14() {
if (document.getElementById("imgClickAndChange14").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg")
{
document.getElementById("imgClickAndChange14").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
else
{
document.getElementById("imgClickAndChange14").src = "http://digfir.macmillanusa.com/asset/pocketspeak4e/small_check.jpg";
}
}