//This is the code used by to open up the Shopable shopping basket

//************************COPY THIS SECTION***********************************
//the arguments to the order function are:
//product code, product description, option 1, option 2, option 3, price
//quantity, weight, tax code, minimum quantity, quantity increment, display price
//if no arguments are given, it just shows the shopping basket
function order () {
  var shopLocation = "shopable282/shopable/";
  var itemString = "";
  if (arguments.length > 0) {
    var a = new Array(); a[0] = document.location.href;
    for (var i=0; i<arguments.length; i++) {a[i+1] = arguments[i];}
    var itemString = escape (a.join ("*"));
  } //there were arguments
  var shopable = window.open ("", "shopable", "menubar=yes,width=600,height=350,status=yes");
  if (shopable.loaded) {shopable.addItem (itemString);}
  else {shopable.location.href = shopLocation + "index.html?" + itemString;}
}
//************************COPY THIS SECTION***********************************


