<!--
function eatFCCookie(the_info,cookieName) {
	var the_cookie = document.cookie;
	var the_cookie = unescape(the_cookie);
	for (i=0;i<the_cookie.split(';').length;i++) {
		if (the_cookie.split(';')[i].indexOf(cookieName) != -1) {
			the_cookie = the_cookie.split(';')[i]; }
	}
	var broken_cookie = the_cookie.split("=");
	var the_values = broken_cookie[1];
	var separated_values = the_values.split("|");
	var property_value = "";
	for (var loop = 0; loop < separated_values.length; loop++)	{
		property_value = separated_values[loop];
		var broken_info = property_value.split(":");
		var the_property = broken_info[0];
		var the_value = broken_info[1];
		the_info[the_property] = the_value;
	}
}

var onOff = 0;

if (onOff == 0) {
if (document.cookie.indexOf('howMany') != -1) {
	var sepLine = '<tr><td colspan="2" class="left-nav-seperator"><img src="http://us.st1.yimg.com/store1.yimg.com/Img/trans_1x1.gif" height=1 width=1 border=0 alt="pad"></td></tr>';
	var catalog = 'cupidshut';
	var freeShipThreshold = 0;
	var totalPrice = 0;
	var cookieInfo = new Array();
	var cookieData = '<table align=center border=0 cellpadding=0 cellspacing=0 id="fc_box"><tr><td><form method=post action=http://order.store.yahoo.com/cgi-bin/wg-order?catalog=' + catalog + '>';
	cookieData += '<table border="0" cellspacing=0 cellpadding=0 width="100%">';
	cookieData += '<tr align=center valign=middle><td colspan="2" class="right-nav-header"><a class="right-nav-header" href="http://order.store.yahoo.com/cgi-bin/wg-order?' + catalog + '">Cart</a>&nbsp;|&nbsp;<a class="right-nav-header" href="https://order.store.yahoo.com/cgi-bin/shipping-form?catalog=' + catalog + '">Checkout</a></td></tr>';
	eatFCCookie(cookieInfo,'floatingCartCookie');
	if (cookieInfo['howMany'] != 0) {
		for (var bit in cookieInfo) {
			if (bit != 'howMany') {
  				cookieData += '<tr valign=top class=fc_item_list><td colspan=2 align=left class=fc_item_list_name><input class=fc_item_qty type=text size=1 value=' + cookieInfo[bit].split('^')[4] + ' name=' + cookieInfo[bit].split('^')[3] + '>x <a class=fc_item_list_name href=http://store.yahoo.com/' + catalog + '/' + cookieInfo[bit].split('^')[1] + '.html>' + bit.split('!-!')[0] + '</a></td></tr>';
	  				cookieData += '<tr valign=top class=fc_item_list><td align=left class=fc_item_list_remove><a class=fc_item_list_remove href=http://order.store.yahoo.com/cgi-bin/wg-order?catalog=' + catalog + '&' + cookieInfo[bit].split('^')[2] + '=remove>[remove]</a></td><td align=right class=fc_item_list_price>$' + cookieInfo[bit].split('^')[0] + '</td></tr>';
  			}
		}


                if (cookieInfo['howMany'] > 7) {
		   cookieData += '<tr class=fc_item_list><td align=center colspan=2 class=fc_item_list_name><div class=fc_item_list_name align=center>' + (cookieInfo['howMany'] - 7) + ' more items in your shopping cart</div></td></tr>';
                }

		for (var bit in cookieInfo) {
			if (bit != 'howMany') {
				totalPrice = totalPrice + parseFloat(cookieInfo[bit].split('^')[0]);
			}
		}
		freeShipToGo = freeShipThreshold - totalPrice;
		cookieData += sepLine;
		cookieData += '<tr class=fc_item_list_total><td align=left class=fc_item_list_total_text>Product Total</td><td align=right class=fc_item_list_total_price>$' + parseMoney(totalPrice,'.') + '</td></tr>';
		cookieData += sepLine;
                if (freeShipThreshold > 0) {
    		    if (freeShipToGo > 0) {
	    		    cookieData += '<tr class=fc_footer><td colspan=2 align=center class=fc_footer>Add <b>$' + freeShipToGo.toFixed(2) + '</b> to your cart to qualify for <b>Free Shipping</b></td></tr>';
		    }
		    else {
			    cookieData += '<tr class=fc_footer><td colspan=2 align=center class=fc_footer>Congratulations, you qualify for <b>Free Shipping!</b></td></tr>';
                    }
		}
		cookieData += sepLine;
		cookieData += '<tr class=fc_update_button><td colspan=2 class=fc_update_button><input type=submit value=\"update quantity\" class=fc_update_button></td></tr>';
		cookieData += '</table></form></td></tr></table>';
		document.getElementById("floatingCartContents").innerHTML = cookieData;
	}
	else if (document.location.href.indexOf('order.store.yahoo') != -1) {
		document.getElementById("floatingCartContents").innerHTML = " ";
	}
	else {
		document.getElementById("floatingCartContents").innerHTML = " ";
	}
}
}
else if (document.location.href.indexOf('order.store.yahoo') != -1) {
	document.getElementById("floatingCartContents").innerHTML = " ";
}
else {
	document.getElementById("floatingCartContents").innerHTML = " ";
}
//-->
