/* FOLLOW ME CART CODE */

/* See FollowMeCart.html for additional code and instruction and the css. */

/*Edit the draw_my_cart function to make it look how you want it to look. 
Edit css styles to control color of background and foreground colors */

/* Draws a table with the follow me cart information and a checkout button to go to the basket page. */
function draw_my_cart(){
	document.write('<table width="130" cellspacing="0" cellpadding="0" border="0"><tr>');
	document.write('<td><img src="assets/images/bars/shoppingcart_bar.gif" height="1" width="130"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td align="center" background="assets/images/bars/shoppingcart_bg.gif"><table border="0" cellpadding="0" cellspacing="0" width="98%">');
	document.write('<tr>');
	document.write('<td width="21%"><img src="assets/images/icon_cart_empty.gif" height="22" width="27"></td>');
	document.write('<td class="shoppingboxheader" width="79%">Shopping Cart </td>');
	document.write('</tr>');
	document.write('</table></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td><img src="assets/images/bars/shoppingcart_bar.gif" height="1" width="130"></td>');
	document.write('</tr>');
	
	if(shopping_basket.items.length>0){
		document.write('<tr>');
		document.write('<td class="shoppingbox" align="center">');

		document.write("<table border=0 cellspacing=1 cellpadding=3 valibn=bottom width=100%>");	
		document.write("<tr><td colspan=2 class=cartItems>");
			
		for (atn=0;atn< shopping_basket.items.length ;atn++){
			document.write("<a href=\"#\" onClick=\"return(visitargs('product.asp','dept_id="+shopping_basket.items[atn].dept_id+"&pf_id="+shopping_basket.items[atn].pf_id+"',''))\"><img width=30 height=30 border=0 src='assets/product_images/"+shopping_basket.items[atn].image+"'></a><font size=1>......$"+ OKStrOfPenny(shopping_basket.items[atn].item_total)+"<br></font>");
		}
		
		document.write("</td></tr><tr>");
		document.write("</td></tr></table>");
		document.write('</td>');
		document.write('</tr>');
	}
	
	document.write('<tr>');
	document.write('<td><img src="assets/images/bars/shoppingcart_bar.gif" height="1" width="130"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td class="shoppingbox" align="center">');
	
	if(shopping_basket.no_items == '0'){
		document.write("There are currently no items in your shopping cart");
	}
	else{
		document.write(shopping_basket.no_items + " items<br>subtotal: $"+OKStrOfPenny(shopping_basket.sub_total));
	}
	
	document.write('</td>');
	document.write('</tr>');
	document.write(' <tr>');
	document.write('<td><img src="assets/images/bars/shoppingcart_bar.gif" height="1" width="130"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td class="shoppingbox" align="center"><a href="basket.asp" onClick="return(visitargs(\'basket.asp\',\'\',\'URL\'));">View Cart</a> | <a href="shopper_lookup.asp?target=shipping.asp" onClick="return(visitargs(\'shopper_lookup.asp\',\'target=shipping.asp\',\'URL\'));">Checkout</a> </td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td><img src="assets/images/bars/shoppingcart_bar.gif" height="1" width="130"></td>');
	document.write('</tr></table>');
}

function draw_my_wish(){
	
}