/* Draws a table with the follow me cart information and a checkout button to go to the basket page. */

document.write('<table width="150" border="0" cellspacing="0" cellpadding="0" class="right_node">');
document.write('<tr valign="middle"><td valign="middle" class="right_node_heading" background="assets/images/greybg.gif" align="left" height="23">&nbsp;&nbsp;<a href="basket.asp" onClick="return(visitargs(\'basket.asp\',\'\',\'URL\'));" class="right_node_heading_link">My Cart ('+shopping_basket.no_items+')</a></td></tr>');
document.write("<tr><td class=\"right_node_content\"><table cellspacing=0 cellpadding=3>");
if(shopping_basket.items.length < 1) document.write("<tr><td class=\"cartItems\">Your cart is empty.</td></tr>");

for (atn=0;atn< shopping_basket.items.length ;atn++){
	document.write("<tr>");
	document.write("<td class=\"cartItems tablebgcolor\" valign=bottom>");
	//image
	document.write("<a href=\"product.asp?dept_id="+shopping_basket.items[atn].dept_id+"&pf_id="+shopping_basket.items[atn].pf_id+"\" 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></td><td class=\"follow_cart_detail\">");
	document.write("<a href=\"product.asp?dept_id="+shopping_basket.items[atn].dept_id+"&pf_id="+shopping_basket.items[atn].pf_id+"\" onClick=\"return(visitargs('product.asp','dept_id="+shopping_basket.items[atn].dept_id+"&pf_id="+shopping_basket.items[atn].pf_id+"',''))\" class=\"followmeproduct\">"+shopping_basket.items[atn].name+"</a><br>");
	//qty and price		
	document.write(shopping_basket.items[atn].quantity+" @ $"+ OKStrOfPenny(shopping_basket.items[atn].item_total)+"</td>");		
	document.write("</tr>");
}
document.write("</table><br>");
document.write('<table width="100%"><tr><td align="left"><b>Items:</b> '+shopping_basket.no_items + '<br><b>Total:</b> $' + OKStrOfPenny(shopping_basket.sub_total) + '</td></tr>');

document.write('<tr><td align="center"><a href="basket.asp" onClick="return(visitargs(\'basket.asp\',\'\',\'URL\'));"><img src="assets/images/btn_checkout.jpg"></a>');
document.write('</td></tr>');
document.write('</table>');
document.write('</td></tr>');
document.write('</table>');


//~ document.write('<br><table><tr><td class="promotion" align="center"><div class="promotion_heading">FREE Shipping</div>');
//~ document.write('<div class="promotion_content">Get free shipping on all orders over $100!</div></td></tr></table>');

/*SUP34738 - Video Link on Department Page - WCD - 20090226 */
//BEGIN Right Column Output based on contents of Right Column Input in Department.

if(document.getElementById("r_col_in") != null){
	//alert(document.getElementById("r_column"));
	document.write("<div id=\"r_col_out\"></div>");
	document.getElementById("r_col_out").innerHTML = document.getElementById("r_col_in").innerHTML;
	document.getElementById("r_col_in").innerHTML = "";
}
//END Right Column Output