/*
$Id: ajax.minicart_html_catalog.js,v 1.1.2.1 2010/02/24 11:40:54 aim Exp $
vim: set ts=2 sw=2 sts=2 et:
*/
/*
  Minicart html catalog
*/

//Load minicart content for html catalog
$(ajax).bind(
 'load',
 function() {
  var url= xcart_web_dir + '/get_info.php?info=is_cart_empty&language=' + store_language;
  try {
    $.get(
      url,
      '',
      function(is_cart_empty, s) {
        if (!is_cart_empty)
          ajax.core.trigger('cartChanged', {status:1 , isEmpty: false});
      },
      'json'
    );
  } catch(e) {
    return false;
  }
  return true;
 }
);
