function showBookDetailPage(textToSearch) { var productToShow=0; productToShow=showNumber.indexOf(textToSearch); if (productToShow != -1) { document.title = "Buy and read " + show[productToShow][BOOK_NAME] + " at the Breakthrough Gaming Online Store today"; document.write('<br><center><font size="+4" face="Arial"><b><font size="+1">How to buy and read<br></font>'); document.write(show[productToShow][BOOK_NAME]); document.write('</b></font></center><br><table align="center"><tr><td><img src="book-images/'); document.write(show[productToShow][BOOK_IMAGE]); document.write('" alt="" id="picturescale"></td></tr></table><br><br>'); if (show[productToShow][SERIES_NAME].indexOf("Breakthrough Gaming Arcade") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more Breakthrough Gaming Arcade products and information at the official website:</font><br><font size="+3"><a href="https://www.breakthroughgaming.com/arcade" TARGET="_blank"><b>BreakthroughGaming.com/arcade</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("Breakthrough Gaming Activity Center") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more Breakthrough Gaming Activity Center products and information at the official website:</font><br><font size="+3"><a href="https://www.breakthroughgaming.com/learning" TARGET="_blank"><b>BreakthroughGaming.com/learning</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("Forgiveness") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more Forgiveness RPG products and information at the official website:</font><br><font size="+3"><a href="https://www.forgivenessrpg.com" TARGET="_blank"><b>ForgivenessRPG.com</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("keyboardfyi") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more keyboard.fyi products and information at the official website:</font><br><font size="+3"><a href="https://www.keyboard.fyi" TARGET="_blank"><b>keyboard.fyi</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("Lent") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more Lent: The Easter Bunny products and information at the official website:</font><br><font size="+3"><a href="https://www.lenttheeasterbunny.com" TARGET="_blank"><b>LentTheEasterBunny.com</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("Nik and Kit") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more Nik & Kit products and information at the official website:</font><br><font size="+3"><a href="https://www.nikandkit.com" TARGET="_blank"><b>NikandKit.com</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("Our Church and Halloween") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more Our Church and Halloween RPG products and information at the official website:</font><br><font size="+3"><a href="http://www.halloweenrpg.com" TARGET="_blank"><b>HalloweenRPG.com</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("Project: Summer Ice") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more Project: Summer Ice products and information at the official website:</font><br><font size="+3"><a href="https://www.projectsummerice.com" TARGET="_blank"><b>ProjectSummerIce.com</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("Zippy the Circle") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more Zippy the Circle products and information at the official website:</font><br><font size="+3"><a href="https://www.zippythecircle.com" TARGET="_blank"><b>ZippytheCircle.com</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][SERIES_NAME].indexOf("ZJ the Ball") >= 0) { document.write('<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%"><tr><td bgcolor="#ac8659" style="border-top: 1px solid #FFFFFF; border-bottom: 1px solid #FFFFFF" align="center"><font face="Arial"><font size="+1">Find more ZJ the Ball products and information at the official website:</font><br><font size="+3"><a href="https://www.zjtheball.com" TARGET="_blank"><b>ZJtheBall.com</b></a></font><br></font></td></tr></table><br><br>'); } if (show[productToShow][PRICE] == "") { } else { document.write('<table cellspacing="0" cellpadding="5" border="0" style="border-bottom:3px solid #228BB2" width="100%"><tr><td bgcolor="#6fb3da" align="center"><font size="+2" face="Arial"><b>Buy this book on 3rd party book retailer websites</b></font></td></tr></table><br><center><div class="price-sticker"><table align="center" border="0" width="150" height="150"><tr><td align="center"><font size="+4" face="arial"><b><font size="+1">MSRP<br></font>'); document.write(show[productToShow][PRICE]); document.write('<br><font size="-2">*Price may vary by<br>store and region<br></font></b></font></td></tr></table></div><br>'); if (show[productToShow][AMAZON_DIGITAL_LINK] != "") { document.write('<div class="auto-align-block-200px"><table align="center" border="0"><tr><td align="center"><a href="'); document.write(show[productToShow][AMAZON_DIGITAL_LINK]); document.write('" TARGET="_blank"><img src="site/amazon-digital-logo-2025.png"></a></td></tr></table></div>'); } if (show[productToShow][AMAZON_PHYSICAL_LINK] != "") { document.write('<div class="auto-align-block-200px"><table align="center" border="0"><tr><td align="center"><a href="'); document.write(show[productToShow][AMAZON_PHYSICAL_LINK]); document.write('" TARGET="_blank"><img src="site/amazon-physical-logo-2025.png"></a></td></tr></table></div>'); } document.write('</center>'); } if (show[productToShow][SAMPLE] != "") { document.write('<table cellspacing="0" cellpadding="5" border="0" width="100%"><tr><td bgcolor="#6fb3da" align="center"><font size="5" face="Arial"><b>Read '); document.write(show[productToShow][BOOK_NAME]); document.write(' before you buy</b></font></td></tr></table><br><table align="center" cellspacing="5" cellpadding="0" border="0"><tr><td style="border:0px solid #000000" colspan="2"><iframe src="before-read-book.html" name="left" width="'); document.write(show[productToShow][WIDTH]); document.write('" height="'); document.write(show[productToShow][HEIGHT]); document.write('" frameborder="0" scrolling="no" id="game2" allowfullscreen="true" webkitallowfullscreen="webkitallowfullscreen"></iframe></td></tr><tr><td colspan="2" align="center"><br><input onclick="'); document.write("game2.src='https://portable.breakthroughgaming.com/samples/"); document.write(show[productToShow][SAMPLE]); document.write("'; gameFrame.focus();"); document.write('" type="button" class="buttonPlay" value="Read this Book"></td></tr></table><br>'); } } else { document.write('<br><br><font face="arial"><center><b><font size="+3">ERROR</font><br>Try searching for a different Breakthrough Gaming product to buy!</b></center></font><br>'); } } function showBooksBasedOnSearch(textToSearch) { termToSearch=show[gg][TAGS].toLowerCase(); if (termToSearch.indexOf(textToSearch) != -1) { document.write('<div class="auto-align-block"><table align="center"><tr><td align="center" valign="top"><font size="-1" face="Arial"><a href="store/book-and-comic-details.html?book='); document.write(show[gg][BOOK_CODE]); document.write('"><img src="store/book-images/'); document.write(show[gg][BOOK_IMAGE]); document.write('" border="0" id="storeproductsquare"><br><b>'); document.write(show[gg][BOOK_HTML_NAME]); document.write('</b></a></font></td></tr></table></div>'); } }