<!-- // CODE WRITTEN BY FNH 09 // -->
function switchGame(gameNum, btag)
{
	for(i=1; i<17; i++)
	{
		if(i == gameNum)
		{
			document.getElementById("game-" + i).src = "images/games/game-on-" + i + ".gif";
		}
		else
		{
			document.getElementById("game-" + i).src = "images/games/game-" + i + ".gif";
		}
	}
	
	var gameWindow = document.getElementById('window');
	var gameText = document.getElementById('mid_right_h1');
	var gameRating = document.getElementById('rating');
	var gameTextB = document.getElementById('below_window');
	var gameTextC = document.getElementById("below");
	
	var gameLink = document.getElementById("gameLink");
	
	switch(gameNum)
	{
		case 1:
			gameText.innerHTML = "Atlantic City Blackjack";
			gameTextB.innerHTML = "Beat the dealer and start counting your cash in this riveting 8-deck Blackjack game!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/atlantic_city_blackjack.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=AtlanticCity&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=AtlanticCity&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 2:
			gameText.innerHTML = "Atlantic City Blackjack Gold";
			gameTextB.innerHTML = "Go for gold as you pick your cards in this smooth & speedy 8-deck Blackjack game!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/atlanticcity_gold.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=AtlanticCityBJGold&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=AtlanticCityBJGold&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 3:
			gameText.innerHTML = "European Blackjack";
			gameTextB.innerHTML = "Try your hand at this 2-deck Blackjack game and see if lady luck is on your side!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/european_bjgold.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=EuropeanAdvBJ&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=EuropeanAdvBJ&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 4:
			gameText.innerHTML = "European Roulette";
			gameTextB.innerHTML = "With odds of up to 35:1 you can place your bet inside or outside to win big!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/euro_roulette.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=Roulette&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=Roulette&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 5:
			gameText.innerHTML = "European Roulette Gold";
			gameTextB.innerHTML = "Place your bets, cross your fingers and the odds could be in your favour!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/euro_roulette_gold.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=EuroRoulette1&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=EuroRoulette1&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 6:
			gameText.innerHTML = "French Roulette Gold";
			gameTextB.innerHTML = "Add the flair of the French to your favourite game of Roulette!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/french_roulette_goldjpg.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=FrenchRoulette&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=FrenchRoulette&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 7:
			gameText.innerHTML = "Tomb Raider™ Video Slot *";
			gameTextB.innerHTML = "Join Lara on an action-packed adventure on this 5-reel, 15-payline slot!";
			gameTextC.innerHTML = "*Lara Croft, Tomb Raider, the Tomb Raider logo and Core are trademarks of Core Design limited. All rights reserved.";
			gameWindow.src = "images/games/tombraider.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=TombRaider&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=TombRaider&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 8:
			gameText.innerHTML = "Gopher Gold Video Slot";
			gameTextB.innerHTML = "Go for gold with the zany mining gopher on this 5-reel, 5-payline slot!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/gopher_gold.jpg";
			gameLink.href = "https://jackpotcity.gameassists.co.uk/jackpotcity/?gameid=GopherGold&llPage=default.asp&BTAG=" + btag;
			window.open("https://jackpotcity.gameassists.co.uk/jackpotcity/?gameid=GopherGold&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 9:
			gameText.innerHTML = "Carnaval Video Slot";
			gameTextB.innerHTML = "Samba to the beat of jackpots galore on this 5-reel, 9-payline sensational slot!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/carnival.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=Carnaval&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=Carnaval&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 10:
			gameText.innerHTML = "Hitman Video Slot";
			gameTextB.innerHTML = "Dare to join the dangerous world of international assassins on this 5-reel, 15 payline slot!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/hitman.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=RubyHitman&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=RubyHitman&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 11:
			gameText.innerHTML = "Mad Hatters Video Slot";
			gameTextB.innerHTML = "Tasty treats & sumptuous surprises complete the menu on this 5-reel, 30-payline slot!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/madhatters.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=MadHatters&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=MadHatters&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 12:
			gameText.innerHTML = "Loaded Video Slot";
			gameTextB.innerHTML = "Bling it on with the big boys in this 5-reel, 25-payline multiple coin game!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/spins_window.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=FrenchRoulette&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=FrenchRoulette&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 13:
			gameText.innerHTML = "You Lucky Barstard Fruit Slot";
			gameTextB.innerHTML = "Crack Bob's television quiz bonanza & cash in on this bonus slot!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/lucky_barstard.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=YouLuckyBarstard&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=YouLuckyBarstard&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 14:
			gameText.innerHTML = "Cash 'n Curry Fruit Slot";
			gameTextB.innerHTML = "Spice it up, spin to win and make a meal of it on this dishy bonus game.";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/cashncurry.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=CashCurry&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=CashCurry&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 15:
			gameText.innerHTML = "Pub Fruity Fruit Slot";
			gameTextB.innerHTML = "It's bottoms up as you party hard in true pub-style on this bonus slots bonanza!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/pubfruity.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=pubFruity&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=pubFruity&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
		case 16:
			gameText.innerHTML = "Treasure Ireland Fruit Slot";
			gameTextB.innerHTML = "Cash in on the luck of the Irish and set sail with this bonus slot delight!";
			gameTextC.innerHTML = "";
			gameWindow.src = "images/games/treasure_island.jpg";
			gameLink.href = "https://riverbelle.gameassists.co.uk/riverbelle/?gameid=TreasureIreland&llPage=default.asp&BTAG=" + btag;
			window.open("https://riverbelle.gameassists.co.uk/riverbelle/?gameid=TreasureIreland&llPage=default.asp&BTAG=" + btag,	"gWindow","location=0,status=0,scrollbars=0,width=800,height=600");
			break;
	}
	
	gameRating.src = "rating/gamerating.asp?gid=" + gameNum;
}