//this makes the chapter number appear only on the intro page
var h2_text = $("[data-block_type='intro'] h2").text();
var new_header ="
21" + h2_text + "
";
$("[data-block_type='intro'] h2").replaceWith(new_header);
xBookUtils.terms['fn_21_1'] = "1. Nancy Duarte, “Avoiding the Road to Powerpoint Hell,” Wall Street Journal, January 22, 2011.";
xBookUtils.terms['fn_21_2'] = "2. Nancy Duarte, Slide:ology: The Art and Science of Creating Great Presentations. (Cambridge, MA: O’Reilly, 2008), 92.";
xBookUtils.terms['fn_21_3'] = "3. Edward Tufte, “PowerPoint Is Evil,” Wired 11 (2003), www.wired.com/wired/archive/11.09/ppt2_pr.html.";
//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.");
}
}
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";
}
}