function DisplayMiniCart(name) {
  var cookies=document.cookie;  //read in all cookies
  var start = cookies.indexOf(name + "=");  //set start to beginning of ss_cart cookie
  var cartvalues = "";
  var linecount = 0;
  var start1;
  var end1;
  var tmp;
  var count;
  var tot;
  var fs = 100.00;
  var fsStr;

  if (start == -1)  //No cart cookie
  {
    document.write("<a href=\"http://www.rexart.com/cgi-rexart/sb/order.cgi?storeid=*1c74f5f580097882817656aa7a0c5b10&amp;function=show\">");
    document.write("0 Items");
    document.write("</a>");
    document.write("<font class=\"font3\" color=\"maroon\">");
    document.write("\nAdd $");
    document.write( fs );
    document.write(" for FREE shipping!*</font>");      
  }
  else   //cart cookie is present
  {
    start = cookies.indexOf("=", start) +1;  
    var end = cookies.indexOf(";", start);  
    if (end == -1)
    {
      end = cookies.length;
    }
    cartvalues = unescape(cookies.substring(start,end)); //read in just the cookie data

    start = 0;
    while ((start = cartvalues.indexOf("|", start)) != -1)
    {
      start++;
      end = cartvalues.indexOf("|", start);
      if (end != -1)
      {
        linecount++;

        if (linecount == 2) // Total Quantity of Items
        {
          tmp = cartvalues.substring(start,end);
          colon = tmp.indexOf(":", 0);
          count = tmp.substring(colon+1,end - start)
          document.write("<a href=\"http://www.rexart.com/cgi-rexart/sb/order.cgi?storeid=*1c74f5f580097882817656aa7a0c5b10&amp;function=show\">");
          document.write( count );
          if( count == 1 )
          {
             document.write(" item: ");
          }
          else
          {
             document.write(" items: ");
          }
        }

        if (linecount == 3)  // Product Subtotal
        {
            tmp = cartvalues.substring(start,end);
            colon = tmp.indexOf(":", 0);
            tot = tmp.substring(colon+2,end - start);
            fs = fs - tot;
            fs = Math.round(fs*100)/100;
            document.write( tmp.substring(colon+1,end - start) );
            document.write("</a> ");
	    document.write("<font class=\"font3\" color=\"maroon\">");
	    if( fs >= 0 )
	    {
		fsStr = fs.toString();
                document.write("Add $");
		document.write( fsStr );
                if( fsStr.indexOf(".") > fsStr.length - 3 )
                {
                    document.write( "0" );
                }
	    }
	    else
	    {
		document.write("You qualify");
	    }
		document.write(" for FREE shipping!*</font>");
	    }
        }
    } // end while loop
  }
 
}



