var strapline = 0;

function showGame(game,country) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var mgw = 480;
		var mgh = 354;
		var www = 480;
		var wwh = 353;
		}
	else if (b < 1100) {
		var mgw = 600;
		var mgh = 440;
		var www = 600;
		var wwh = 420;
		}
	else {
		var mgw = 799;
		var mgh = 590;
		var www = 800;
		var wwh = 560;
		}
	if (game == "wheelofwealth" || game == "thunderstruck" || game == "tombraider" || game == "hitman" || 
		game == "gameon" || game == "chavinit" || game == "stallionaire" || game == "luckybarstard" || game == "tracknfieldmouse") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+mgh+"\" frameborder=\"0\" src=\"getGame.php?cc="+country+"&g="+game+"&w="+mgw+"&h="+mgh+"\" class=\"game-frame\"></iframe>"); 
		}
	else {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+wwh+"\" frameborder=\"0\" src=\"getGame.php?cc="+country+"&g="+game+"&w="+www+"&h="+wwh+"\" class=\"game-frame\"></iframe>"); 
		}
	}
	
function showCasinoGrid(game,country,codes,frameheight) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var mgw = 480;
		var www = 480;
		}
	else if (b < 1100) {
		var mgw = 600;
		var www = 600;
		}
	else {
		var mgw = 799;
		var www = 800;
		}
	if (country == "US" && game == "mg") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" frameborder=\"0\" src=\"http://www.azonlinecasinos.com/extdata.php?c=inet,bodog,cwc,doyle,aladdin&cols=0,1,3,8,11,12,5,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+mgw+"&site=gfm\" style=\"border:0px;height:270px;\"></iframe>"); 
		document.write("<center><em>USA Real-Play on this game is not currently allowed.<br>However, the online casinos listed above <strong>do accept</strong> USA players.</em></center>");
		}
	else if (country == "US") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" frameborder=\"0\" src=\"http://www.azonlinecasinos.com/extdata.php?c=inet,bodog,cwc,doyle,aladdin&cols=0,1,3,8,11,12,5,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+www+"&site=gfm\" style=\"border:0px;height:270px;\"></iframe>"); 
		document.write("<center><em>USA Real-Play on this game is not currently allowed.<br>However, the online casinos listed above <strong>do accept</strong> USA players.</em></center>");
		}
	else if (game == "mg") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" frameborder=\"0\" src=\"http://www.azonlinecasinos.com/extdata.php?c=32r,lad,aslot,roxyp,lucky&cols=0,1,3,8,11,12,5,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+mgw+"&site=gfm\" style=\"border:1px;height:270px;\"></iframe>"); 
		document.write("<center><em><strong>The online casinos listed above all carry this game</strong></em></center>");
		}
	else {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+www+"\" frameborder=\"0\" src=\"http://www.azonlinecasinos.com/extdata.php?c="+codes+"&cols=0,1,3,8,11,12,5,14&hbgcol=FB9F10&hcol=fff&fsize=12px&w="+www+"&site=gfm\" style=\"border:0px;height:"+frameheight+"px;\"></iframe>"); 
		document.write("<center><em><strong>The online casinos listed above all carry this game</strong></em></center>");
		}	
	}
	
function showMailForm(type) {
	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	if (b < 900) {
		var www = 500;
		var mgw = 480;
		}
	else if (b < 1100) {
		var www = 600;
		var mgw = 600;
		}
	else {
		var www = 780;
		var mgw = 800;
		}
	if (type == "ww") { // wagerworks
		mgw = mgw - 2;
		}
	else if (type == "rtg") { // rtg
		mgw = mgw + 1;
		}
	else if (type == "spin") {
		mgw = 642;
		}
	else if (type == "mspoker") {
		mgw = 640;
		}
	document.write ('<span class="mail-form" style="width:'+mgw+'px;">');
	document.write ('<a id="mlstrap" class="mlstrap">Receive my monthly fruit machine news...</a><br>');
	document.write ('Email: <input type="text" name="YMLP0" class="input-sml"> &nbsp;');
	document.write ('<select name="YMLP3" class="select-sml">');
	document.write ('<option value="Unspecified">Region...');
	document.write ('<option>Africa<option>Asia<option>Australasia<option>Canada<option>Europe');
	document.write ('<option>Scandinavia<option>South America<option>USA<option>Other');
	document.write ('</select> &nbsp; <input type="submit" value="JOIN" class="submit-sml">');
	document.write ('</span>');
	document.write ('<script type="text/javascript" src="fadingtext.js"></script>');
	}
