/* 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 id=\"followMe\">");
	document.write("<tr><td class=\"hd\" colspan=\"2\"><img src=\"assets/images/ow/fm_CartContents.gif\" alt=\"Cart Contents\" /></td></tr>");
	for (atn=0;atn< shopping_basket.items.length ;atn++){
		document.write("<tr><td>");
		document.write("<a href=\"product.asp?s_id=2&pf_id="+shopping_basket.items[atn].pf_id+"\" onClick=\"return visitargs('product.asp','pf_id="+shopping_basket.items[atn].pf_id+"','');\"><img width=\"50\" height=\"50\" src=\"assets/product_images/"+shopping_basket.items[atn].image+"\" /></a>");
		document.write("</td><td class=\"left\">");
		document.write("Item: "+shopping_basket.items[atn].sku+"<br />");
		document.write("Qty: "+shopping_basket.items[atn].quantity+"<br />");
		document.write("Price: $"+OKStrOfPenny(shopping_basket.items[atn].item_total)+"<br />");
		document.write("</td></tr>");
		document.write("<tr><td colspan=\"2\"><a href=\"product.asp?s_id=2&pf_id="+shopping_basket.items[atn].pf_id+"\" onClick=\"return visitargs('product.asp','pf_id="+shopping_basket.items[atn].pf_id+"','');\">"+shopping_basket.items[atn].name+"</a></td></tr>");
	}
	document.write("<tr><td class=\"sub\">Subtotal:</td><td class=\"sub\">$" + OKStrOfPenny(shopping_basket.total_total) + "</td></tr>");
	document.write("<tr><td colspan=\"2\">");
	document.write("<a href=\"basket.asp?s_id=2\" onclick=\"return visitargs('basket.asp','','');\"><img src=\"assets/images/ow/btn_checkout.gif\" /></a>");
	document.write("</td></tr>");
	document.write("</table>");
}