var cart=new Cart;function getFlashMovie(){return window.document[flashContainerName]?window.document[flashContainerName]:-1!=navigator.appName.indexOf("Microsoft")?window[flashContainerName]:document.getElementById(flashContainerName)}function isOpera(){return!!window.opera||0<=navigator.userAgent.indexOf(" OPR/")}function handlerWrapper(a,b){if(isOpera())var c=setInterval(function(){a(b);clearInterval(c)},500);else a(b)}function onChange(a){getFlashMovie().onChange(a)}cart.on("change",onChange);
function getPublicationID(){return cart.publicationID}function getShopID(){return cart.shopID}function getShopInfoHandler(a){handlerWrapper(function(a){getFlashMovie().getShopInfo(a)},a)}function getShopInfoErrorHandler(a){handlerWrapper(function(a){getFlashMovie().getShopInfoError(a)},a)}function getItemsHandler(a){handlerWrapper(function(a){getFlashMovie().getItems(a)},a)}function getItemsErrorHandler(a){handlerWrapper(function(a){getFlashMovie().getItemsError(a)},a)}
function getItems(a){cart.getItems(getItemsHandler,getItemsErrorHandler,a)}function addItem(a,b,c){cart.addItem(a,b,c)}function getCart(){return cart.getCart()}function changeQuantity(a,b,c){return cart.changeQuantity(a,b,c)}function getItemQuantity(a,b){return cart.getItemQuantity(a,b)}function delItem(a){return cart.delItem(a)}function checkout(a){return cart.checkout(a,checkoutHandler,checkoutErrorHandler)}
function checkoutHandler(a){handlerWrapper(function(a){getFlashMovie().onCheckoutResult(a)},a)}function checkoutErrorHandler(a){handlerWrapper(function(a){getFlashMovie().onCheckoutError(a)},a)}function checkoutStatusHandler(a){handlerWrapper(function(a){getFlashMovie().onCheckoutStatus(a)},a)}function getCheckoutStatus(a){return cart.getCheckoutStatus(checkoutStatusHandler,a)}function clear(a){cart.clear(a)};
