//Peters New Lobby Button ;

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:checkredeem();" class="accountbutton01">Redeem Pts.</a>');
			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">');
	}
}

//My Account Link in Navigation;
function navMyAccount()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('');
		}
		else
		{
			document.write('<li class="accountbt"><a href="/mail/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')
		{		
			document.write('<li><a href="/mail/bingo/lobby/top-games/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
		}
		else
		{
			document.write('<li><a href="/mail/bingo/lobby/top-games/index.thtml" class="rightnavbutton">Bingo &amp; Games Lobby</a></li>');
		}
	}
	catch(e)
	{
			document.write('<li><a href="/mail/bingo/lobby/top-games/index1.thtml" class="rightnavbutton">Bingo &amp; Games</a></li>');
	}
}
//Bingo Link in Navigation;
function navBingoOn()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<li><a href="/mail/bingo/lobby/top-games/index1.thtml" class="rightnavbuttonon">Bingo &amp; Games</a></li>');
		}
		else
		{
			document.write('<li><a href="/mail/bingo/lobby/top-games/index.thtml" class="rightnavbuttonon">Bingo &amp; Games Lobby</a></li>');
		}
	}
	catch(e)
	{
			document.write('<li><a href="/mail/bingo/lobby/top-games/index1.thtml" class="rightnavbuttonon">Bingo &amp; Games</a></li>');
	}
}
//Game Open Links;
function GamesLinks()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<div id="homePromo">');
			document.write('<h1>Check out our Instant Win Games</h1>');
			document.write('<div class="promolink"><a href="/mail/bingo/lobby/top-games/index1.thtml">View All</a></div>');
			document.write('<div class="clearSpace2">&nbsp;</div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8614/sizzling-daily-mail-scratchcard.thtml"><img alt="Free Scratchcard" src="/mail/bingo/images/im_game_01.gif" width="167" height="69" /></a><a href="/mail/bingo/lobby/all-games/8614/sizzling-daily-mail-scratchcard.thtml" class="homePromoBtn">Free Scratchcard</a></div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8617/big-top-scratchcard.thtml"><img alt="Big Top" src="/mail/bingo/images/im_game_02.gif" width="167" height="69" /></a><a href="/mail/bingo/lobby/all-games/8617/big-top-scratchcard.thtml" class="homePromoBtn">Big Top</a></div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8878/top-trumps-celeb.thtml"><img alt="Top Trumps Celeb" src="/mail/bingo/images/celebGame.gif" width="167" height="69" /></a><a href="/mail/bingo/lobby/all-games/8878/top-trumps-celeb.thtml" class="homePromoBtn">Celeb Trumps</a></div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8881/top-trumps-horror.thtml"><img alt="Horror" src="/mail/bingo/images/hororGame.gif" width="167" height="69" /></a><a href="/mail/bingo/lobby/all-games/8881/top-trumps-horror.thtml" class="homePromoBtn">Horror Trumps</a></div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8629/kenosaurus.thtml"><img alt="Kenosaurus" src="/mail/bingo/images/im_game_05.gif" width="167" height="69" /></a><a href="/mail/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="/mail/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="/mail/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="/mail/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(\'TT_Celebs\',\'obs\')"><img alt="Celeb" src="/mail/bingo/images/celebGame.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'TT_Celebs\',\'obs\')" class="homePromoBtn">Celeb Trumps</a></div>');
			document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'TT_Horror\',\'obs\')"><img alt="Horror\'s" src="/mail/bingo/images/hororGame.gif" width="167" height="69" /></a><a href="javascript:openGamePage(\'TT_Horror\',\'obs\')" class="homePromoBtn">Horror Trumps</a></div>');
			document.write('<div class="homePromoGame"><a href="javascript:openGamePage(\'KenoSaurus\',\'obs\')"><img alt="Kenosaurus" src="/mail/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)
	{
			document.write('<div id="homePromo">');
			document.write('<h1>Check out our Instant Win Games</h1>');
			document.write('<div class="promolink"><a href="/mail/bingo/lobby/top-games/index1.thtml">View All</a></div>');
			document.write('<div class="clearSpace2">&nbsp;</div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8614/sizzling-daily-mail-scratchcard.thtml"><img alt="Free Scratchcard" src="/mail/bingo/images/im_game_01.gif" width="167" height="69" /></a><a href="/mail/bingo/lobby/all-games/8614/sizzling-daily-mail-scratchcard.thtml" class="homePromoBtn">Free Scratchcard</a></div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8617/big-top-scratchcard.thtml"><img alt="Big Top" src="/mail/bingo/images/im_game_02.gif" width="167" height="69" /></a><a href="/mail/bingo/lobby/all-games/8617/big-top-scratchcard.thtml" class="homePromoBtn">Big Top</a></div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8878/top-trumps-celeb.thtml"><img alt="Top Trumps Celeb" src="/mail/bingo/images/celebGame.gif" width="167" height="69" /></a><a href="/mail/bingo/lobby/all-games/8878/top-trumps-celeb.thtml" class="homePromoBtn">Celeb Trumps</a></div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8881/top-trumps-horror.thtml"><img alt="Horror" src="/mail/bingo/images/hororGame.gif" width="167" height="69" /></a><a href="/mail/bingo/lobby/all-games/8881/top-trumps-horror.thtml" class="homePromoBtn">Horror Trumps</a></div>');
			document.write('<div class="homePromoGame"><a href="/mail/bingo/lobby/all-games/8629/kenosaurus.thtml"><img alt="Kenosaurus" src="/mail/bingo/images/im_game_05.gif" width="167" height="69" /></a><a href="/mail/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="/mail/bingo/community/winners/"><img src="/mail/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="/mail/bingo/images/livehelp.gif" border="0" /></a>');
document.write('</div>');
		}
	}
	catch(e)
	{
			document.write('<div class="rhtPromo">');
document.write('<a href="/mail/bingo/community/winners/"><img src="/mail/bingo/images/im_winners.gif" border="0" /></a>');
document.write('</div>');
	}
}

//play link;
function playLink()
{
	try
	{
		if(session_id == 'null')
		{		
			document.write('<a href="/mail/bingo/registration/registration_step1.thtml" class="smallBut">Sign Up</a>');
		}
		else
		{
			document.write('<a href="/mail/bingo/lobby/top-games/" class="smallBut">Play Now</a>');
		}
	}
	catch(e)
	{
			document.write('<a href="/mail/bingo/registration/registration_step1.thtml" class="smallBut">Sign Up</a>');
	}
}

function myAccountNav()
{
    try
{
        if(session_id != 'null')
        {        
            if(isMyAccountCheckEnabled == 'Y' && isPlayerSegmentMatched=='true')

                document.write('<li><a href="'+built_url+'/bingo/lobby/top-games/?popup" class="rightnavbutton">My Offers</a></li>');
        }
    }
    catch(e)
    {
            //do nothing
    }
}



