onload = function () {
  if ( $('show_cart') ) showCart( );
}

function showCart() {
  new Ajax.Updater(
    'show_cart',
    '/cgi-bin/item.cgi',
    {
      method:'post',
      parameters:'?cmd=cart',
			onComplete: responseText
    }
    );
}

function responseText(req) {
  var text = req.responseText;
  if ( navigator.appVersion.indexOf("KHTML") > - 1) {
    var esc = escape(text);
    if ( esc.indexOf("%u") < 0 && esc.indexOf("%") > - 1) {
      text = decodeURIComponent(esc);
    }
  }
  return text;
}
