//formatting for bheads
var h2_text = $("[data-block_type='bhead'] h2").text();
// h2_text = "Chapter 5: " + h2_text;
// $("h2").text(h2_text);
var bheader ="
" + h2_text + "
";
$("[data-block_type='bhead'] h2").replaceWith(bheader);
//this makes the chapter number appear only on the intro page
var h2_text = $("[data-block_type='intro'] h2").text();
// h2_text = "Chapter 5: " + h2_text;
// $("h2").text(h2_text);
var new_header ="5" + h2_text + "
";
$("[data-block_type='intro'] h2").replaceWith(new_header);
xBookUtils.terms['fn_05_1'] = "1. Kathy Thompson, Pamela Leintz, Barbara Nevers, and Susan Witkowski, “The Integrative Listening Model: An Approach to Teaching and Learning Listening,” Journal of General Education 53 (2004): 225–46.";
xBookUtils.terms['fn_05_2'] = "2. Andrew Wolvin and C. Coakley, Listening, 4th ed. (Dubuque, IA: Wm. C. Brown, 1992), 28.";
xBookUtils.terms['fn_05_3'] = "3. Laura Janusik, “Time Spent Listening and Communicating,” International Listening Association, section on “Listening Facts,” http://www.listen.org/.";
xBookUtils.terms['fn_05_4'] = "4. J. Flynn, T. Valikoski, and J. Grau, “Listening in the Business Context: Reviewing the State of Research,” International Journal of Listening, 22, no. 2 (2008): 141–51.";
xBookUtils.terms['fn_05_5'] = "5. H. E. Chambers, Effective Communication Skills for Scientific and Technical Professionals (Cambridge, MA: Perseus Publishing, 2001).";
xBookUtils.terms['fn_05_6'] = "6. Graduate Management Admissions Council, “2011 Corporate Recruiters’ Survey,” http://www.gmac.com/community/media/p/987.aspx.";
xBookUtils.terms['fn_05_7'] = "7. Philip Vassallo, “Dialogue: Speaking to Listen: Listening to Speak,” ETC (Fall 2000): 306–13.";
xBookUtils.terms['fn_05_8'] = "8. Dirk Heylen, “Understanding Speaker-Listener Interactions,” paper presented at the Interspeech 2009 International Speech Communication Association Conference, http://www.interspeech2009.org/conference/.";
xBookUtils.terms['fn_05_9'] = "9. S. Golen, “A Factor Analysis of Barriers to Effective Listening,” Journal of Business Communication 27 (1990): 25–36.";
xBookUtils.terms['fn_05_10'] = "10. Thanks to Barry Antokoletz of New York City College of Technology for suggesting the inclusion of these strategies.";
xBookUtils.terms['fn_05_11'] = "11. Thomas E. Anastasi Jr., Listen! Techniques for Improving Communication Skills, CBI series in Management Communication (Boston: CBI Publishing, 1982), 35.";
xBookUtils.terms['fn_05_12'] = "12. Ibid.";
//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 printReady2 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/checkbox.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/checkbox.jpg";
}
}
function changeImage2() {
if (document.getElementById("imgClickAndChange2").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage3() {
if (document.getElementById("imgClickAndChange3").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage4() {
if (document.getElementById("imgClickAndChange4").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage5() {
if (document.getElementById("imgClickAndChange5").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage6() {
if (document.getElementById("imgClickAndChange6").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage7() {
if (document.getElementById("imgClickAndChange7").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage8() {
if (document.getElementById("imgClickAndChange8").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage9() {
if (document.getElementById("imgClickAndChange9").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage10() {
if (document.getElementById("imgClickAndChange10").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}
function changeImage11() {
if (document.getElementById("imgClickAndChange11").src == "http://digfir.macmillanusa.com/asset/pocketspeak4e/checkbox.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/checkbox.jpg";
}
}