var strapline = 0;

function showGame(game,country,layout) {

	 if (layout == null) {
   		layout = "ww";
 		}

	var b = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
		
	//Positions of transparent overlays
	var ileft = 0;
	var iwidth = 1;
	var itop1 = 0;
	var iheight1 = 1;
	var itop2 = 0;
	var iheight2 = 0;
	
	if (b < 900) {
		var mgw = 480;
		var mgh = 354;
		var www = 480;
		var wwh = 353;
		var ptechleft = 150;
		var ptechwidth = 330;
		var ptechtop1 = 10;
		var ptechheight1 =40;
		var skyleft = 1;
		var skywidth = 1;
		var skytop1 = 1;
		var skyheight1 = 1;
		ileft = 395;
		iwidth = 80;
		itop1 = 120;
		iheight1 = 30;
		itop2 = 200;
		iheight2 = 70;
		}
	else if (b < 1100) {
		var mgw = 600;
		var mgh = 440;
		var www = 600;
		var wwh = 420;
		var ptechleft = 150;
		var ptechwidth = 330;
		var ptechtop1 = 10;
		var ptechheight1 =40;
		var skyleft = 1;
		var skywidth = 1;
		var skytop1 = 1;
		var skyheight1 = 1;
		ileft = 492;
		iwidth = 100;
		itop1 = 140;
		iheight1 = 40;
		itop2 = 235;
		iheight2 = 90;
		}
	else {
		var mgw = 799;
		var mgh = 590;
		var www = 800;
		var wwh = 560;
		var ptechleft = 150;
		var ptechwidth = 330;
		var ptechtop1 = 10;
		var ptechheight1 =40;
		var skyleft = 1;
		var skywidth = 1;
		var skytop1 = 1;
		var skyheight1 = 1;
		ileft = 655;
		iwidth = 134;
		itop1 = 185;
		iheight1 = 50;
		itop2 = 315;
		iheight2 = 120;
		}
	if (layout == "mg") {
		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 if (layout == "ptech") {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+(mgh)+"\" scrolling=\"no\" frameborder=\"0\" src=\"/ptechGame.php?g="+game+"&w="+mgw+"&h="+mgh+"&iwidth="+ptechwidth+"&ileft="+ptechleft+"&itop1="+ptechtop1+"&iheight1="+ptechheight1+"\" class=\"game-frame\"></iframe>"); 
		}
	else if (layout == "sky") {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+mgw+"\" height=\""+(mgh)+"\" scrolling=\"no\" frameborder=\"0\" src=\"/skyGame.php?g="+game+"&w="+mgw+"&h="+mgh+"&iwidth="+skywidth+"&ileft="+skyleft+"&itop1="+skytop1+"&iheight1="+skyheight1+"\" class=\"game-frame\"></iframe>"); 
		}
	else {
		document.write ("<iframe id=\"fgame\" rel=\"noindex,nofollow\" width=\""+www+"\" height=\""+wwh+"\" frameborder=\"0\" src=\"/wwGame.php?g="+game+"&w="+www+"&h="+wwh+"&iwidth="+iwidth+"&ileft="+ileft+"&itop1="+itop1+"&itop2="+itop2+"&iheight1="+iheight1+"&iheight2="+iheight2+"\" 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 if (game == "ptech") {
		document.write ("<iframe rel=\"noindex,nofollow\" width=\""+mgw+"\" 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="+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 newsletter...</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>');
	}
