$(function ()
{
	$.getJSON('/cart/query_cart.php',{'date':(new Date).getTime()}, function (results)
	{
        if(results['logged_in'] == 'true')
        {
            $('#headerLogin').html('<li><a href="/cart/index.php?main_page=logoff">Logout</a></li><li><a href="/cart/index.php?main_page=account">My Account</a></li>');
        }
	});

});