function showVideoGameDetailPage(textToSearch) {

//document.write(textToSearch); //debug

var productToShow=0;
productToShow=showNumber.indexOf(textToSearch);
//document.write(productToShow); //debug
//document.write(show[productToShow][GAME_NAME]); //debug

if (productToShow != -1)
	{

document.title = "Buy and play " + show[productToShow][GAME_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 play<br></font>');

document.write(show[productToShow][GAME_NAME]);

document.write('</b></font></center><br><table align="center"><tr><td><img src="game-images/');

document.write(show[productToShow][GAME_IMAGE]);

document.write('" alt="" id="picturescale"></td></tr></table><br><br>');

if (show[productToShow][PORTABLE] != "")
	{

document.write('<table cellspacing="0" cellpadding="5" border="0" width="100%"><tr><td bgcolor="#6fb3da" align="center"><font size="5" face="Arial"><b>Play ');

document.write(show[productToShow][GAME_NAME]);

document.write(' with your <a href="../portable/index.html">Breakthrough Gaming Portable</a> subscription</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="../portable/no-login.html" name="left" width="');

document.write(show[productToShow][WIDTH]);

document.write('" height="');

document.write(show[productToShow][HEIGHT]);

document.write('" frameborder="0" scrolling="no" id="game1" allowfullscreen="true" webkitallowfullscreen="webkitallowfullscreen"></iframe></td></tr><tr><td colspan="2" align="center"><br><input onclick="');

document.write("game1.src='https://portable.breakthroughgaming.com/games/");

document.write(show[productToShow][PORTABLE]);

document.write("'; gameFrame.focus();");

document.write('" type="button" class="buttonPlay" value="Start Game"><br><br><center><button onclick="gamecontrols1()" class="buttonKeyboard">Press to enable keyboard controls</button></center><script>function gamecontrols1() {document.getElementById("game1").focus();} document.getElementById("game1").focus();</script></td></tr></table>');

	}
else
	{
document.write('<table cellspacing="0" cellpadding="5" border="0" width="100%"><tr><td bgcolor="#6fb3da" align="center"><font size="5" face="Arial"><b>This game is currently not available to play via your <a href="../portable/index.html">Breakthrough Gaming Portable</a> subscription.<br>View the games available to play <a href="../portable/index.html">here</a>!</b></font></td></tr></table>');
	}

document.write('<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] == "")
	{
//document.write('<table cellspacing="0" cellpadding="5" border="0" width="100%"><tr><td bgcolor="#6fb3da" align="center"><font size="5" face="Arial"><b>');
//document.write(show[productToShow][GAME_NAME]);
//document.write(' is not available to purchase on 3rd party digital video game stores</b></font></td></tr></table><br>');
	}
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 game on 3rd party digital video game stores</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_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_LINK]);

document.write('" TARGET="_blank"><img src="site/amazon-appstore-logo-2025.png"></a></td></tr></table></div>');

}

if (show[productToShow][APPLE_LINK] != "") {

document.write('<div class="auto-align-block-200px"><table align="center" border="0"><tr><td align="center"><a href="');

document.write(show[productToShow][APPLE_LINK]);

document.write('" TARGET="_blank"><img src="site/apple-app-store-logo-2025.png"></a></td></tr></table></div>');

}

if (show[productToShow][MICROSOFT_LINK] != "") {

document.write('<div class="auto-align-block-200px"><table align="center" border="0"><tr><td align="center"><a href="');

document.write(show[productToShow][MICROSOFT_LINK]);

document.write('" TARGET="_blank"><img src="site/microsoft-store-logo-2025.png"></a></td></tr></table></div>');

}

if (show[productToShow][PLAYSTATION_LINK] != "") {

document.write('<div class="auto-align-block-200px"><table align="center" border="0"><tr><td align="center"><a href="');

document.write(show[productToShow][PLAYSTATION_LINK]);

document.write('" TARGET="_blank"><img src="site/playstation-store-logo-2025.png"></a></td></tr></table></div>');

}

if (show[productToShow][STEAM_LINK] != "") {

document.write('<div class="auto-align-block-200px"><table align="center" border="0"><tr><td align="center"><a href="');

document.write(show[productToShow][STEAM_LINK]);

document.write('" TARGET="_blank"><img src="site/steam-logo-dark-2025.png"></a></td></tr></table></div>');

}

document.write('</center>');

	}

if (show[productToShow][SAMPLE] != "")
	{

document.write('<br><table cellspacing="0" cellpadding="5" border="0" width="100%"><tr><td bgcolor="#6fb3da" align="center"><font size="5" face="Arial"><b>Play ');

document.write(show[productToShow][GAME_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="../portable/no-login.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="Start Game"><br><br><center><button onclick="gamecontrols2()" class="buttonKeyboard">Press to enable keyboard controls</button></center><script>function gamecontrols2() {document.getElementById("game2").focus();} document.getElementById("game2").focus();</script></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 showContentBasedOnSearch(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/product-details.html?game=');

document.write(show[gg][GAME_CODE]);

document.write('"><img src="store/game-images/');

document.write(show[gg][GAME_IMAGE]);

document.write('" border="0" id="storeproductsquare"><br><b>');

document.write(show[gg][GAME_HTML_NAME]);

document.write('</b></a></font></td></tr></table></div>');

	}

}



function showContentBasedOnPlatform(textToSearch) {

var whichPlatformToShow=0;

if (textToSearch=="portable") {whichPlatformToShow=PORTABLE;}
else if (textToSearch=="sample") {whichPlatformToShow=SAMPLE;}
else if (textToSearch=="android") {whichPlatformToShow=AMAZON_LINK;}
else if (textToSearch=="apple") {whichPlatformToShow=APPLE_LINK;}
else if (textToSearch=="microsoft") {whichPlatformToShow=MICROSOFT_LINK;}
else if (textToSearch=="playstation") {whichPlatformToShow=PLAYSTATION_LINK;}
else if (textToSearch=="steam") {whichPlatformToShow=STEAM_LINK;}

if (show[gg][whichPlatformToShow] != "")
	{

if (textToSearch=="portable") {document.write('<div class="auto-align-block"><table align="center"><tr><td align="center" valign="top"><font size="-1" face="Arial"><a href="../store/product-details.html?game=');}
else {document.write('<div class="auto-align-block"><table align="center"><tr><td align="center" valign="top"><font size="-1" face="Arial"><a href="product-details.html?game=');}

document.write(show[gg][GAME_CODE]);

if (textToSearch=="portable") {document.write('"><img src="../store/game-images/');}
else {document.write('"><img src="game-images/');}

document.write(show[gg][GAME_IMAGE]);

document.write('" border="0" id="storeproductsquare"><br><b>');

document.write(show[gg][GAME_HTML_NAME]);

document.write('</b></a></font></td></tr></table></div>');

	}

}