$(document).ready(function(){
	check_cart();
});



function check_cart(){
	$.post("/check_cart.php",{id:"0"},function(data,textStatus){
	if(textStatus=='success')	
		{
    $('#checkcart').empty().append('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="32%" align="left" valign="middle" class="cart"><strong>Shopping Cart</strong></td><td width="13%" align="left" valign="middle">Items: '+data.num+'</td><td width="17%" align="left" valign="middle">Total:'+data.total+data.currencysign+'</td><td width="17%" align="left" valign="top"><table width="95%" border="0" cellspacing="0" cellpadding="0"><tr><td width="33%" align="left" valign="middle"><a href="/currency.php?currency=1"><img src="/images/gbp.gif" width="16" height="16" border="0" /></a></td><td width="33%" align="left" valign="middle"><a href="/currency.php?currency=0"><img src="/images/usd.gif" width="16" height="16" border="0" /></a></td><td width="33%" align="left" valign="middle"><a href="/currency.php?currency=2"><img src="/images/eur.gif" width="16" height="16" border="0" /></a></td></tr></table></td><td width="20%" align="left" valign="middle"><strong style="font-size:12px"><a href="/order.php?=QnchNGdzlGbENTJ0NWY2ITJ1cTY3M2M4Q0MlUGZvNmd">Check Out</a></strong></td> </tr></table>');
			
		}
			},"json");	

}
