//Peters New Lobby Button ;

//copy image;
function playButton()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/bt_play_now.gif" border="0" alt="Online Bingo &#8250; Play now" style="cursor:hand"/></a><img src="'+built_url+'/bingo/images/spacer.gif" width="8" height="8">');
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml"><img src="'+built_url+'/bingo/images/bt_play_now.gif" border="0" alt="Online Bingo &#8250; Play now" style="cursor:hand"/></a><img src="'+built_url+'/bingo/images/spacer.gif" width="8" height="8">');			
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/top-games/"><img src="'+built_url+'/bingo/images/bt_play_now.gif" border="0" alt="Online Bingo &#8250; Play now" style="cursor:hand"/></a><img src="'+built_url+'/bingo/images/spacer.gif" width="8" height="8">');			
			}			
		}
	}
	catch(e)
	{
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/bt_play_now.gif" border="0" alt="Online Bingo &#8250; Play now" style="cursor:hand"/></a><img src="'+built_url+'/bingo/images/spacer.gif" width="8" height="8">');
			//alert(e);
		//location.href="../maintenance/maintenance.html";
	}
}

function bingoNav()
{
	try
	{
		if(session_id == 'null')
		{	
			if(isDynamicLobby == "true")
			{
				document.write('<div class="navbutton" id="navbg"><a href="'+built_url+'/bingo/lobby/index1.thtml" title="Bingo & Games" class="NavTxt">Bingo & Games</a></div>');
			}
			else
			{
				document.write('<div class="navbutton" id="navbg"><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" title="Bingo & Games" class="NavTxt">Bingo & Games</a></div>');
			}	
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<div class="navbutton" id="navbg"><a href="'+built_url+'/bingo/lobby/index.thtml" title="Lobby" class="NavTxt">Lobby</a></div>');
			}
			else
			{
				document.write('<div class="navbutton" id="navbg"><a href="'+built_url+'/bingo/lobby/top-games/index.thtml" title="Lobby" class="NavTxt">Lobby</a></div>');
			}				
		}
	}
	catch(e)
	{
		if(isDynamicLobby == "true")
		{
			document.write('<div class="navbutton" id="navbg"><a href="'+built_url+'/bingo/lobby/index1.thtml" title="Bingo & Games" class="NavTxt">Bingo & Games</a></div>');
		}
		else
		{
			document.write('<div class="navbutton" id="navbg"><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" title="Bingo & Games" class="NavTxt">Bingo & Games</a></div>');
		}	
	}
}
//copy end;

function joyPlay()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<img border="0" alt="Join now and play" src=""'+built_url+'/bingo/images/hd_join_now.gif"/>');
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img border="0" alt="Join now" src=""'+built_url+'/bingo/images/bt_join_now.gif"/></a>');
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<img border="0" alt="Lobby and games" src=""'+built_url+'/bingo/images/hdr_bingoandgames.gif"/>');
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml"><img border="0" alt="Play Now" src=""'+built_url+'/bingo/images/bt_lft_playnow.gif"/></a>');
			}
			else
			{
				document.write('<img border="0" alt="Lobby and games" src=""'+built_url+'/bingo/images/hdr_bingoandgames.gif"/>');
				document.write('<a href="'+built_url+'/bingo/lobby/top-games/index.thtml"><img border="0" alt="Play Now" src=""'+built_url+'/bingo/images/bt_lft_playnow.gif"/></a>');
			}			
		}
	}
	catch(e)
	{
			document.write('<img border="0" alt="Join now and play" src=""'+built_url+'/bingo/images/hd_join_now.gif"/>');
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img border="0" alt="Join now" src=""'+built_url+'/bingo/images/bt_join_now.gif"/></a>');
	}
}

function accountShow()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('&nbsp;');
		}
		else
		{
			

document.write('<div class="blaccount"><div class="braccount"><div class="tlaccount"><div class="traccount">');
document.write('<h2><span id="the_usernameright"></span></h2>');
document.write('<ul>');
document.write('<li class="nopadbold">Balance:</li>');
document.write('<li><span id="realbal"></span></li>');
document.write('<li class="nopadbold">Bonus:</li>');
document.write('<li><span id="bonbal"></span></li>');
document.write('<li class="nopadbold">Loyalty:</li>');
document.write('<li><span id="loyalty"></span></li>');
document.write('</ul>');
document.write('<a href="javascript:checkdeposit();" class="accountbutton" onfocus="this.blur();">Deposit funds</a>');
document.write('<a href="javascript:checkwithdraw();" class="accountbutton" onfocus="this.blur();">Withdrawal</a>');
document.write('<a href="javascript:checkredeem();" class="accountbutton" onfocus="this.blur();">Redeem Pts</a>');
document.write('<a href="/commonsys/account/redeembonuscodeview.do" onfocus="this.blur();" class="accountbutton">Redeem Bonus</a>');
document.write('</div></div></div></div>');
document.write('<div class="blprebuy"><div class="brprebuy"><div class="tlprebuy"><div class="trprebuy">');
document.write('<h2>Tickets</h2>');
document.write('<a href="javascript:popUpOpenPreOrder()" class="prebuybutton" onfocus="this.blur();">Pre-buy </a>');
document.write('<a href="javascript:specials()" class="prebuybutton" onfocus="this.blur();">Prebuy Specials </a>');
document.write('</div></div></div></div>');
document.write('<div class="blhistory"><div class="brhistory"><div class="tlhistory"><div class="trhistory">');
document.write('<h2>Account info</h2>');
document.write('<ul>');
document.write('<li>&gt; ');
document.write('<a href="#"  onclick=" javascript:return allTransactions(\'Deposit\');" onfocus="this.blur();focus()" class="history" id="Deposit">Deposits</a></li>');
document.write('<li>&gt; <a href="#" onclick=" javascript:return allTransactions(\'Withdraw\');" onfocus="this.blur();focus()" id="Withdraw" class="history">Withdrawals</a></li>');
document.write('<li>&gt; <a href="#" onclick=" javascript:return allTransactions(\'Transaction\');" onfocus="this.blur();focus()" id="Transaction" class="history">Transactions</a></li>');
document.write('<li>&gt; <a href="'+built_url+'/deposit/bonushistory.html" onclick="NewWindow(this.href,\'mywin\',\'600\',\'550\',\'yes\',\'center\');return false" onfocus="this.blur();focus()" class="history">Bonus History</a></li>');
document.write('<li>&gt; <a href="'+built_url+'/deposit/game_report.html"  onclick="NewWindow(this.href,\'mywin\',\'600\',\'550\',\'yes\',\'center\');return false" onfocus="this.blur();focus()" class="history">Game History</a></li>');
document.write('<li>&gt; <a href="'+built_url+'/deposit/loyaltyhistory.html" onclick="NewWindow(this.href,\'mywin\',\'600\',\'550\',\'yes\',\'center\');return false" onfocus="this.blur();focus()" class="history">Loyalty History</a></li>');
document.write('</ul>');
document.write('<a href="'+built_url+'/bingo/account/edit_account.thtml" class="historybutton" onfocus="this.blur();">Edit account</a>');
document.write('</div></div></div></div>');
document.write('<div class="blpromo"><div class="brpromo"><div class="tlpromo"><div class="trpromo">');
document.write('<a href="'+built_url+'/bingo/community/survey/"><img src="'+built_url+'/bingo/images/surveyBanner.gif" border="0"></a>');
document.write('</div></div></div></div>');

		}
	}
	catch(e)
	{
			document.write('&nbsp;');
			}
}



function accountShow2()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('&nbsp;');
		}
		else
		{
			

document.write('<div class="blaccount"><div class="braccount"><div class="tlaccount"><div class="traccount">');
document.write('<h2><span id="the_usernameright"></span></h2>');
document.write('<ul>');
document.write('<li class="nopadbold">Balance:</li>');
document.write('<li><span id="realbal"></span></li>');
document.write('<li class="nopadbold">Bonus:</li>');
document.write('<li><span id="bonbal"></span></li>');
document.write('<li class="nopadbold">Loyalty:</li>');
document.write('<li><span id="loyalty"></span></li>');
document.write('</ul>');
document.write('<a href="javascript:checkdeposit();" class="accountbutton" onfocus="this.blur();">Deposit funds</a>');
document.write('<a href="javascript:checkwithdraw();" class="accountbutton" onfocus="this.blur();">Withdrawal</a>');
document.write('<a href="javascript:checkredeem();" class="accountbutton" onfocus="this.blur();">Redeem Pts</a>');
document.write('<a href="/commonsys/account/redeembonuscodeview.do" onfocus="this.blur();" class="accountbutton">Redeem Bonus</a>');
document.write('</div></div></div></div>');
document.write('<div class="blprebuy"><div class="brprebuy"><div class="tlprebuy"><div class="trprebuy">');
document.write('<h2>Tickets</h2>');
document.write('<a href="javascript:popUpOpenPreOrder()" class="prebuybutton" onfocus="this.blur();">Pre-buy </a>');
document.write('<a href="javascript:specials()" class="prebuybutton" onfocus="this.blur();">Pre-buy Specials </a>');
document.write('</div></div></div></div>');
document.write('<div class="blhistory"><div class="brhistory"><div class="tlhistory"><div class="trhistory">');
document.write('<h2>Account info</h2>');
document.write('<ul>');
document.write('<li>&gt; ');
document.write('<a href="#"  onclick=" javascript:return allTransactions(\'Deposit\');" onfocus="this.blur();focus()" class="history" id="Deposit">Deposits</a></li>');
document.write('<li>&gt; <a href="#" onclick=" javascript:return allTransactions(\'Withdraw\');" onfocus="this.blur();focus()" id="Withdraw" class="history">Withdrawals</a></li>');
document.write('<li>&gt; <a href="#" onclick=" javascript:return allTransactions(\'Transaction\');" onfocus="this.blur();focus()" id="Transaction" class="history">Transactions</a></li>');
document.write('<li>&gt; <a href="'+built_url+'/deposit/bonushistory.html" onclick="NewWindow(this.href,\'mywin\',\'600\',\'550\',\'yes\',\'center\');return false" onfocus="this.blur();focus()" class="history">Bonus History</a></li>');
document.write('<li>&gt; <a href="'+built_url+'/deposit/game_report.html"  onclick="NewWindow(this.href,\'mywin\',\'600\',\'550\',\'yes\',\'center\');return false" onfocus="this.blur();focus()" class="history">Game History</a></li>');
document.write('<li>&gt; <a href="'+built_url+'/deposit/loyaltyhistory.html" onclick="NewWindow(this.href,\'mywin\',\'600\',\'550\',\'yes\',\'center\');return false" onfocus="this.blur();focus()" class="history">Loyalty History</a></li>');
document.write('</ul>');
document.write('<a href="'+built_url+'/bingo/account/edit_account.thtml" class="historybutton" onfocus="this.blur();">Edit account</a>');
document.write('</div></div></div></div>');
document.write('<div class="blpromo"><div class="brpromo"><div class="tlpromo"><div class="trpromo">');
document.write('<a href="'+built_url+'/bingo/community/survey/"><img src="'+built_url+'/bingo/images/surveyBanner.gif" border="0"></a>');
document.write('</div></div></div></div>');

		}
	}
	catch(e)
	{
			document.write('&nbsp;');
			}
}

//My Account Link in Navigation;
function navMyAccount()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('');
		}
		else
		{
			document.write('<li class="accountbt"><a href="'+built_url+'/bingo/account/edit_account.thtml" class="accountbutton02">My Account</a></li>');
		}
	}
	catch(e)
	{
			document.write('');
			
	}
}

//Bingo Link in Navigation;
function navBingo()
{
try
	{
		if(session_id == 'null')
		{	
			if(isDynamicLobby == "true")
			{
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
			}
			else
			{
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
			}	
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<li><a href="'+built_url+'/bingo/lobby/index.thtml" class="rightnavbutton">Bingo &amp; Games Lobby</a></li>');
			}
			else
			{
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index.thtml" class="rightnavbutton">Bingo &amp; Games Lobby</a></li>');
			}				
		}
	}
	catch(e)
	{
		if(isDynamicLobby == "true")
		{
			document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
		}
		else
		{
			document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
		}	
	}
}
//Bingo Link in Navigation;
function navBingoOn()
{
	try
	{
		if(session_id == 'null')
		{	
			if(isDynamicLobby == "true")
			{
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
			}
			else
			{
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
			}	
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<li><a href="'+built_url+'/bingo/lobby/index.thtml" class="rightnavbutton">Bingo &amp; Games Lobby</a></li>');
			}
			else
			{
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index.thtml" class="rightnavbutton">Bingo &amp; Games Lobby</a></li>');
			}				
		}
	}
	catch(e)
	{
		if(isDynamicLobby == "true")
		{
			document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
		}
		else
		{
			document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
		}	
	}
}
//Game Open Links;
function GamesLinks()
{
	try
	{
		if(session_id == 'null')
		{	
			if(isDynamicLobby == "true")
			{
				document.write('<div id="homePromo">');
				document.write('<h1>Check out our Instant Win Games</h1>');
				document.write('<div class="promolink"><a href="'+built_url+'/bingo/lobby/index1.thtml">View All</a></div>');
				document.write('<div class="clearSpace2">&nbsp;</div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/help.thtml?game=DailyMailScratch"><img alt="Free Scratchcard" src="'+built_url+'/bingo/images/im_game_01.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/help.thtml?game=DailyMailScratch" class="homePromoBtn">Free Scratchcard</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8617/big-top-scratchcard.thtml"><img alt="Big Top" src="'+built_url+'/bingo/images/im_game_02.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8617/big-top-scratchcard.thtml" class="homePromoBtn">Big Top</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8620/monkey-scratchcard.thtml"><img alt="Funky Monkey" src="'+built_url+'/bingo/images/im_game_03.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8620/monkey-scratchcard.thtml" class="homePromoBtn">Funky Monkey</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8635/neptunes-keno.thtml"><img alt="Neptune\'s" src="'+built_url+'/bingo/images/im_game_04.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8635/neptunes-keno.thtml" class="homePromoBtn">Neptune\'s</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8629/kenosaurus.thtml"><img alt="Kenosaurus" src="'+built_url+'/bingo/images/im_game_05.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8629/kenosaurus.thtml" class="homePromoBtn">Kenosaurus</a></div>');
				document.write('</div>');
			}
			else
			{
				document.write('<div id="homePromo">');
				document.write('<h1>Check out our Instant Win Games</h1>');
				document.write('<div class="promolink"><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml">View All</a></div>');
				document.write('<div class="clearSpace2">&nbsp;</div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/help.thtml?game=DailyMailScratch"><img alt="Free Scratchcard" src="'+built_url+'/bingo/images/im_game_01.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/help.thtml?game=DailyMailScratch" class="homePromoBtn">Free Scratchcard</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8617/big-top-scratchcard.thtml"><img alt="Big Top" src="'+built_url+'/bingo/images/im_game_02.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8617/big-top-scratchcard.thtml" class="homePromoBtn">Big Top</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8620/monkey-scratchcard.thtml"><img alt="Funky Monkey" src="'+built_url+'/bingo/images/im_game_03.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8620/monkey-scratchcard.thtml" class="homePromoBtn">Funky Monkey</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8635/neptunes-keno.thtml"><img alt="Neptune\'s" src="'+built_url+'/bingo/images/im_game_04.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8635/neptunes-keno.thtml" class="homePromoBtn">Neptune\'s</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8629/kenosaurus.thtml"><img alt="Kenosaurus" src="'+built_url+'/bingo/images/im_game_05.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8629/kenosaurus.thtml" class="homePromoBtn">Kenosaurus</a></div>');
				document.write('</div>');
			}	
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<div id="homePromo">');
				document.write('<h1>Check out our Instant Win Games</h1>');
				document.write('<div class="promolink"><a href="'+built_url+'/bingo/lobby/index.thtml">View All</a></div>');
				document.write('<div class="clearSpace2">&nbsp;</div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'DailyMailScratch\')"><img alt="Free Scratchcard" src="'+built_url+'/bingo/images/im_game_01.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'DailyMailScratch\')" class="homePromoBtn">Free Scratchcard</a></div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'BigTopScratchCardST\',\'obs\')"><img alt="Big Top" src="'+built_url+'/bingo/images/im_game_02.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'BigTopScratchCardST\',\'obs\')" class="homePromoBtn">Big Top</a></div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'FunkyMonkeyScratchCardST\',\'obs\')"><img alt="Funky Monkey" src="'+built_url+'/bingo/images/im_game_03.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'FunkyMonkeyScratchCardST\',\'obs\')" class="homePromoBtn">Funky Monkey</a></div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'NeptunesKeno\',\'obs\')"><img alt="Neptune\'s" src="'+built_url+'/bingo/images/im_game_04.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'NeptunesKeno\',\'obs\')" class="homePromoBtn">Neptune\'s</a></div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'KenoSaurus\',\'obs\')"><img alt="Kenosaurus" src="'+built_url+'/bingo/images/im_game_05.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'KenoSaurus\',\'obs\')" class="homePromoBtn">Kenosaurus</a></div>');
				document.write('</div>');
			}
			else
			{
				document.write('<div id="homePromo">');
				document.write('<h1>Check out our Instant Win Games</h1>');
				document.write('<div class="promolink"><a href="'+built_url+'/bingo/lobby/top-games/index.thtml">View All</a></div>');
				document.write('<div class="clearSpace2">&nbsp;</div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'DailyMailScratch\')"><img alt="Free Scratchcard" src="'+built_url+'/bingo/images/im_game_01.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'DailyMailScratch\')" class="homePromoBtn">Free Scratchcard</a></div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'BigTopScratchCardST\',\'obs\')"><img alt="Big Top" src="'+built_url+'/bingo/images/im_game_02.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'BigTopScratchCardST\',\'obs\')" class="homePromoBtn">Big Top</a></div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'FunkyMonkeyScratchCardST\',\'obs\')"><img alt="Funky Monkey" src="'+built_url+'/bingo/images/im_game_03.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'FunkyMonkeyScratchCardST\',\'obs\')" class="homePromoBtn">Funky Monkey</a></div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'NeptunesKeno\',\'obs\')"><img alt="Neptune\'s" src="'+built_url+'/bingo/images/im_game_04.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'NeptunesKeno\',\'obs\')" class="homePromoBtn">Neptune\'s</a></div>');
				document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'KenoSaurus\',\'obs\')"><img alt="Kenosaurus" src="'+built_url+'/bingo/images/im_game_05.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'KenoSaurus\',\'obs\')" class="homePromoBtn">Kenosaurus</a></div>');
				document.write('</div>');
			}
			
		}
	}
	catch(e)
	{
			if(isDynamicLobby == "true")
			{
				document.write('<div id="homePromo">');
				document.write('<h1>Check out our Instant Win Games</h1>');
				document.write('<div class="promolink"><a href="'+built_url+'/bingo/lobby/index1.thtml">View All</a></div>');
				document.write('<div class="clearSpace2">&nbsp;</div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/help.thtml?game=DailyMailScratch"><img alt="Free Scratchcard" src="'+built_url+'/bingo/images/im_game_01.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/help.thtml?game=DailyMailScratch" class="homePromoBtn">Free Scratchcard</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8617/big-top-scratchcard.thtml"><img alt="Big Top" src="'+built_url+'/bingo/images/im_game_02.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8617/big-top-scratchcard.thtml" class="homePromoBtn">Big Top</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8620/monkey-scratchcard.thtml"><img alt="Funky Monkey" src="'+built_url+'/bingo/images/im_game_03.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8620/monkey-scratchcard.thtml" class="homePromoBtn">Funky Monkey</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8635/neptunes-keno.thtml"><img alt="Neptune\'s" src="'+built_url+'/bingo/images/im_game_04.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8635/neptunes-keno.thtml" class="homePromoBtn">Neptune\'s</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8629/kenosaurus.thtml"><img alt="Kenosaurus" src="'+built_url+'/bingo/images/im_game_05.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8629/kenosaurus.thtml" class="homePromoBtn">Kenosaurus</a></div>');
				document.write('</div>');
			}
			else
			{
				document.write('<div id="homePromo">');
				document.write('<h1>Check out our Instant Win Games</h1>');
				document.write('<div class="promolink"><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml">View All</a></div>');
				document.write('<div class="clearSpace2">&nbsp;</div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/help.thtml?game=DailyMailScratch"><img alt="Free Scratchcard" src="'+built_url+'/bingo/images/im_game_01.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/help.thtml?game=DailyMailScratch" class="homePromoBtn">Free Scratchcard</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8617/big-top-scratchcard.thtml"><img alt="Big Top" src="'+built_url+'/bingo/images/im_game_02.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8617/big-top-scratchcard.thtml" class="homePromoBtn">Big Top</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8620/monkey-scratchcard.thtml"><img alt="Funky Monkey" src="'+built_url+'/bingo/images/im_game_03.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8620/monkey-scratchcard.thtml" class="homePromoBtn">Funky Monkey</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8635/neptunes-keno.thtml"><img alt="Neptune\'s" src="'+built_url+'/bingo/images/im_game_04.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8635/neptunes-keno.thtml" class="homePromoBtn">Neptune\'s</a></div>');
				document.write('<div class="homePromoGame"><a href="'+built_url+'/bingo/lobby/all-games/8629/kenosaurus.thtml"><img alt="Kenosaurus" src="'+built_url+'/bingo/images/im_game_05.gif" width="167" height="69" /></a><a href="'+built_url+'/bingo/lobby/all-games/8629/kenosaurus.thtml" class="homePromoBtn">Kenosaurus</a></div>');
				document.write('</div>');
			}
	}
}

//Game Open Links;
function banner()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<div class="rhtPromo">');
document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/im_winners.gif" border="0" /></a>');
document.write('</div>');
		}
		else
		{
			document.write('<div class="rhtPromo">');
document.write('<a href="javascript:void window.open(\'http://livechat.stenodoc.com/cgi-local/start.cgi/apps/livehelp/index.html?uid=\'+username+\'&gids=Bingo&label=UKB\')" ><img src="'+built_url+'/bingo/images/livehelp.gif" border="0" /></a>');
document.write('</div>');
		}
	}
	catch(e)
	{
			document.write('<div class="rhtPromo">');
document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/im_winners.gif" border="0" /></a>');
document.write('</div>');
	}
}

//play link;
function playLink()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml" class="smallBut">Sign Up</a>');
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml" class="smallBut">Play Now</a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/top-games/" class="smallBut">Play Now</a>');
			}	
			
		}
	}
	catch(e)
	{
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml" class="smallBut">Sign Up</a>');
	}
}
function userBut()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<div id="userBut"><a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/spacer.gif" width="164" height="45" border="0"></a></div>');
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<div id="userBut2"><a href="'+built_url+'/bingo/lobby/index.thtml"><img src="'+built_url+'/bingo/images/spacer.gif" width="164" height="45" border="0"></a></div>');
			}
			else
			{
				document.write('<div id="userBut2"><a href="'+built_url+'/bingo/lobby/top-games/"><img src="'+built_url+'/bingo/images/spacer.gif" width="164" height="45" border="0"></a></div>');
			}	
			
		}
	}
	catch(e)
	{
			document.write('<div id="userBut"><a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/spacer.gif" width="164" height="45" border="0"></a></div>');
		
	}
}

function headerLinks()
{
	try
	{
		if(session_id == 'null')
		{	
			if(isDynamicLobby == "true")
			{
				document.write('<div id="globaltabs">');
				document.write('<ul>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml" onfocus="this.blur();">BINGO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml" onfocus="this.blur();">TOP GAMES</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml?Scratchcards" onfocus="this.blur();">SCRATCH CARDS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml?Slots" onfocus="this.blur();">SLOTS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml?Casino Games" onfocus="this.blur();">CASINO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml?Arcade Games" onfocus="this.blur();">ARCADE</a></li>');
				document.write('</ul>');
				document.write('</div>');
			}
			else
			{
				document.write('<div id="globaltabs">');
				document.write('<ul>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" onfocus="this.blur();">BINGO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" onfocus="this.blur();">TOP GAMES</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/scratch-cards/index1.thtml" onfocus="this.blur();">SCRATCH CARDS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/slots/index1.thtml" onfocus="this.blur();">SLOTS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/casino-games/index1.thtml" onfocus="this.blur();">CASINO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/arcade-games/index1.thtml" onfocus="this.blur();">ARCADE</a></li>');
				document.write('</ul>');
				document.write('</div>');
			}	
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{
				document.write('<div id="globaltabs">');
				document.write('<ul>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index.thtml" onfocus="this.blur();">BINGO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index.thtml" onfocus="this.blur();">TOP GAMES</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index.thtml?Scratchcards" onfocus="this.blur();">SCRATCH CARDS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index.thtml?Slots" onfocus="this.blur();">SLOTS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index.thtml?Casino Games" onfocus="this.blur();">CASINO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index.thtml?Arcade Games" onfocus="this.blur();">ARCADE</a></li>');
				document.write('</ul>');
				document.write('</div>');
			}
			else
			{
				document.write('<div id="globaltabs">');
				document.write('<ul>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index.thtml" onfocus="this.blur();">BINGO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index.thtml" onfocus="this.blur();">TOP GAMES</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/scratch-cards/index.thtml" onfocus="this.blur();">SCRATCH CARDS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/slots/index.thtml" onfocus="this.blur();">SLOTS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/casino-games/index.thtml" onfocus="this.blur();">CASINO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/arcade-games/index.thtml" onfocus="this.blur();">ARCADE</a></li>');
				document.write('</ul>');
				document.write('</div>');
			}	
		}
	}
	catch(e)
	{
			if(isDynamicLobby == "true")
			{
				document.write('<div id="globaltabs">');
				document.write('<ul>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml" onfocus="this.blur();">BINGO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml" onfocus="this.blur();">TOP GAMES</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml?Scratchcards" onfocus="this.blur();">SCRATCH CARDS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml?Slots" onfocus="this.blur();">SLOTS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml?Casino Games" onfocus="this.blur();">CASINO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/index1.thtml?Arcade Games" onfocus="this.blur();">ARCADE</a></li>');
				document.write('</ul>');
				document.write('</div>');
			}
			else
			{
				document.write('<div id="globaltabs">');
				document.write('<ul>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" onfocus="this.blur();">BINGO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" onfocus="this.blur();">TOP GAMES</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/scratch-cards/index1.thtml" onfocus="this.blur();">SCRATCH CARDS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/slots/index1.thtml" onfocus="this.blur();">SLOTS</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/casino-games/index1.thtml" onfocus="this.blur();">CASINO</a></li>');
				document.write('<li><a href="'+built_url+'/bingo/lobby/arcade-games/index1.thtml" onfocus="this.blur();">ARCADE</a></li>');
				document.write('</ul>');
				document.write('</div>');
			}	
	}
}

function promoLrg()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/promoLrg.gif" border="0" width="572" height="139" alt="" /></a>');
		}
		else
		{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml"><img src="'+built_url+'/bingo/images/promoLrg.gif" border="0" width="572" height="139" alt="" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/top-games/index.thtml"><img src="'+built_url+'/bingo/images/promoLrg.gif" border="0" width="572" height="139" alt="" /></a>');
			}
		}
	}
	catch(e)
	{
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/promoLrg.gif" border="0" width="572" height="139" alt="" /></a>');
		}
}
function navAccount()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<div id="navTop"><h1>Welcome to Mail Bingo</h1></div>');
document.write('<div id="navigation">');
		}
		else
		{
			document.write('<div id="navTop"><h1>Hello <span id="the_usernameright"></span></h1></div>');
			document.write('<div id="navigation"><div id="accountTop">&nbsp;</div><div id="account">');
			document.write('<div class="accountHdrLeft">Balance:</div>');
			document.write('<div class="accountHdrRight"><a href="/commonsys/login/logout.do">Logout</a></div>');
			document.write('<div class="balance"><span id="realbal"></span></div>');
			document.write('<div class="accountcol01">Reward Points:<br />Bonus Money:</div>');
			document.write('<div class="accountcol02"><span id="loyalty"></span><br /><span id="bonbal"></span></div>');
			document.write('</div><div id="accountBottom">&nbsp;</div><div id="accountbtscol01">');
			document.write('<a href="javascript:checkdeposit();" class="accountbutton01">Deposit</a>');
			document.write('<a href="javascript:popUpOpenPreOrder();" class="accountbutton01">Pre Buy</a>');
            document.write('<a href="/commonsys/account/redeembonuscodeview.do" class="accountbutton01">Bonus Code</a>');
			document.write('</div>');
			document.write('<div id="accountbtscol02">');
			document.write('<a href="javascript:checkwithdraw();" class="accountbutton01">Withdraw</a>');
			document.write('<a href="javascript:specials();" class="accountbutton01">Specials</a>');
			document.write('<a href="javascript:checkredeem();" class="accountbutton01">Redeem Pts.</a>');
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="/mail/bingo/lobby/index.thtml" class="accountbutton01">Lobby</a>');
			}
			else
			{
				document.write('<a href="/mail/bingo/lobby/top-games/index.thtml" class="accountbutton01">Lobby</a>');
			}
			
			document.write('</div>');
		}
	}
	catch(e)
	{
			document.write('<div id="navTop"><h1>Welcome to Mail Bingo</h1></div>');
			document.write('<div id="navigation">');
	}
}




function navAccountpre()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<div id="navTop"><h1>Welcome to Mail Bingo</h1></div>');
document.write('<div id="navigation">');
		}
		else
		{
			document.write('<div id="navTop"><h1>Hello <span id="the_usernameright"></span></h1></div>');
			document.write('<div id="navigation"><div id="accountTop">&nbsp;</div><div id="account">');
			document.write('<div class="accountHdrLeft">Balance:</div>');
			document.write('<div class="accountHdrRight"><a href="/commonsys/login/logout.do">Logout</a></div>');
			document.write('<div class="balance"><span id="realbal"></span></div>');
			document.write('<div class="accountcol01">Reward Points:<br />Bonus Money:</div>');
			document.write('<div class="accountcol02"><span id="loyalty"></span><br /><span id="bonbal"></span></div>');
			document.write('</div><div id="accountBottom">&nbsp;</div><div id="accountbtscol01">');
			document.write('<a href="javascript:checkdeposit();" class="accountbutton01">Deposit</a>');
			document.write('<a href="javascript:popUpOpenPreOrder();" class="accountbutton01">Pre Buy</a>');
			document.write('<a href="javascript:specials();" class="accountbutton01">Specials</a>');
			

			document.write('<a href="/commonsys/account/redeembonuscodeview.do" class="accountbutton01">Bonus Code</a>');
			document.write('</div>');
			document.write('<div id="accountbtscol02">');
			document.write('<a href="javascript:checkwithdraw();" class="accountbutton01">Withdraw</a>');
			document.write('<a href="javascript:checkredeem();" class="accountbutton01">Redeem Pts.</a>');
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="/mail/bingo/lobby/index.thtml" class="accountbutton01">Lobby</a>');
			}
			else
			{
				document.write('<a href="/mail/bingo/lobby/top-games/index.thtml" class="accountbutton01">Lobby</a>');
			}
			
			document.write('</div>');
		}
	}
	catch(e)
	{
			document.write('<div id="navTop"><h1>Welcome to Mail Bingo</h1></div>');
			document.write('<div id="navigation">');
	}
}






function NewBingoTab()
{
	try
	{
		if(session_id == 'null')
		{		
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index1.thtml" onfocus="this.blur();"><img name="bingo" src="/littlewoodsbingo/bingo/images/header/bt_bingo-01.gif" border="0" alt="Play Bingo" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" onfocus="this.blur();"><img name="bingo" src="/littlewoodsbingo/bingo/images/header/bt_bingo-01.gif" border="0" alt="Play Bingo" /></a>');
			}
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml" onfocus="this.blur();"><img name="bingo" src="/littlewoodsbingo/bingo/images/header/bt_bingo-01.gif" border="0" alt="Play Bingo" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/top-games/" onfocus="this.blur();"><img name="bingo" src="/littlewoodsbingo/bingo/images/header/bt_bingo-01.gif" border="0" alt="Play Bingo" /></a>');
			}
			
		}
	}
	catch(e)
	{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index1.thtml" onfocus="this.blur();"><img name="bingo" src="/littlewoodsbingo/bingo/images/header/bt_bingo-01.gif" border="0" alt="Play Bingo" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/top-games/index1.thtml" onfocus="this.blur();"><img name="bingo" src="/littlewoodsbingo/bingo/images/header/bt_bingo-01.gif" border="0" alt="Play Bingo" /></a>');
			}
	}
}
function NewSlotsTab()
{
	try
	{
		if(session_id == 'null')
		{	
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index1.thtml?Slots" onfocus="this.blur();"><img name="slots" src="/littlewoodsbingo/bingo/images/header/bt_slots-02.gif" border="0" alt="Slots" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/slots/index1.thtml" onfocus="this.blur();"><img name="slots" src="/littlewoodsbingo/bingo/images/header/bt_slots-02.gif" border="0" alt="Slots" /></a>');
			}
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml?Slots" onfocus="this.blur();"><img name="slots" src="/littlewoodsbingo/bingo/images/header/bt_slots-02.gif" border="0" alt="Slots" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/slots/" onfocus="this.blur();"><img name="slots" src="/littlewoodsbingo/bingo/images/header/bt_slots-02.gif" border="0" alt="Slots" /></a>');
			}
			
		}
	}
	catch(e)
	{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index1.thtml?Slots" onfocus="this.blur();"><img name="slots" src="/littlewoodsbingo/bingo/images/header/bt_slots-02.gif" border="0" alt="Slots" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/slots/index1.thtml" onfocus="this.blur();"><img name="slots" src="/littlewoodsbingo/bingo/images/header/bt_slots-02.gif" border="0" alt="Slots" /></a>');
			}
	}
}

function NewScratchTab()
{
	try
	{
		if(session_id == 'null')
		{	
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index1.thtml?Scratchcards" onfocus="this.blur();"><img name="scratch-cards" src="/littlewoodsbingo/bingo/images/header/bt_scratch-cards-03.gif" border="0" alt="Scratch Cards" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/scratch-cards/index1.thtml" onfocus="this.blur();"><img name="scratch-cards" src="/littlewoodsbingo/bingo/images/header/bt_scratch-cards-03.gif" border="0" alt="Scratch Cards" /></a>');
			}
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml?Scratchcards" onfocus="this.blur();"><img name="scratch-cards" src="/littlewoodsbingo/bingo/images/header/bt_scratch-cards-03.gif" border="0" alt="Scratch Cards" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/scratch-cards/index.thtml" onfocus="this.blur();"><img name="scratch-cards" src="/littlewoodsbingo/bingo/images/header/bt_scratch-cards-03.gif" border="0" alt="Scratch Cards" /></a>');
			}
			
		}
	}
	catch(e)
	{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index1.thtml?Scratchcards" onfocus="this.blur();"><img name="scratch-cards" src="/littlewoodsbingo/bingo/images/header/bt_scratch-cards-03.gif" border="0" alt="Scratch Cards" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/scratch-cards/index1.thtml" onfocus="this.blur();"><img name="scratch-cards" src="/littlewoodsbingo/bingo/images/header/bt_scratch-cards-03.gif" border="0" alt="Scratch Cards" /></a>');
			}
	}
}

function NewCasinoTab()
{
	try
	{
		if(session_id == 'null')
		{	
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index1.thtml?Casino Games" onfocus="this.blur();"><img name="scratch cards" src="/littlewoodsbingo/bingo/images/header/bt_casino-games-04.gif" border="0" alt="Casino Games" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/casino-games/index1.thtml" onfocus="this.blur();"><img name="scratch cards" src="/littlewoodsbingo/bingo/images/header/bt_casino-games-04.gif" border="0" alt="Casino Games" /></a>');
			}
			
		}
		else
		{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml?Casino Games" onfocus="this.blur();"><img name="scratch cards" src="/littlewoodsbingo/bingo/images/header/bt_casino-games-04.gif" border="0" alt="Casino Games" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/casino-games/index.thtml" onfocus="this.blur();"><img name="scratch cards" src="/littlewoodsbingo/bingo/images/header/bt_casino-games-04.gif" border="0" alt="Casino Games" /></a>');
			}
			
		}
	}
	catch(e)
	{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index1.thtml?Casino Games" onfocus="this.blur();"><img name="scratch cards" src="/littlewoodsbingo/bingo/images/header/bt_casino-games-04.gif" border="0" alt="Casino Games" /></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/casino-games/index1.thtml" onfocus="this.blur();"><img name="scratch cards" src="/littlewoodsbingo/bingo/images/header/bt_casino-games-04.gif" border="0" alt="Casino Games" /></a>');
			}
	}
}
function topJoin()
{
	try
	{
		if(session_id == 'null')
		{	

			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/joinFun.gif" alt="" width="185" height="58" border="0"></a>');
		}
		else
		{
			if(isDynamicLobby == "true")
			{	
				document.write('<a href="'+built_url+'/bingo/lobby/index.thtml"><img src="'+built_url+'/bingo/images/joinFun.gif" alt="" width="185" height="58" border="0"></a>');
			}
			else
			{
				document.write('<a href="'+built_url+'/bingo/lobby/top-games/index.thtml"><img src="'+built_url+'/bingo/images/joinFun.gif" alt="" width="185" height="58" border="0"></a>');
			}
			
		}
	}
	catch(e)
	{
			document.write('<a href="'+built_url+'/bingo/registration/registration_step1.thtml"><img src="'+built_url+'/bingo/images/joinFun.gif" alt="" width="185" height="58" border="0"></a>');
	}
}
/*function myAccountNav()
{
    try
    {
        if(session_id != 'null')
        {        
           if(isMyAccountCheckEnabled == 'Y' && isPlayerSegmentMatched=='true')
			{
				if(isDynamicLobby == "true"){	
					document.write('<div class="navbutton" id="navbg"><a href="'+built_url+'/bingo/lobby/index.thtml?popup" title="My Account">My Account</a></div>');
				}else{
					document.write('<div class="navbutton" id="navbg"><a href="'+built_url+'/bingo/lobby/top-games/?popup" title="My Account">My Account</a></div>');
				}                
			}
        }
    }
    catch(e)
    {
    }
}*/