window.intPrevious=setInterval(function(){if(typeof AW_ACP!='undefined'&&document.body){if(typeof aw_cartDivClass=='undefined'){aw_cartDivClass=AW_ACP.theme=='blank'?'.block-cart':'.mini-cart';if(!$$(aw_cartDivClass).length||!$$(aw_cartDivClass)[0].tagName){aw_cartDivClass='.block-cart'}}
if(typeof aw_topLinkCartClass=='undefined'){aw_topLinkCartClass='.top-link-cart';}
if(typeof aw_addToCartButtonClass=='undefined'){aw_addToCartButtonClass='.form-button';}
if(typeof aw_bigCartClass=='undefined'){aw_bigCartClass=AW_ACP.theme=='modern'?'.layout-1column':'.col-main';}
if(typeof aw_wishlistClass=='undefined'){aw_wishlistClass='.my-wishlist';}
if(typeof aw_topWishlistLinkCartClass=='undefined'){aw_topWishlistLinkCartClass='.top-link-wishlist';}
if(window.location.toString().search('/product_compare/')!=-1){win=window.opener;}
else{win=window;}
clearInterval(intPrevious)}},500);function ajaxcartprodelete(url){showProgressAnimation();url=getCommonUrl(url)
new Ajax.Request(url,{onSuccess:function(resp){try{if(typeof(resp.responseText)=='string')eval('resp = '+resp.responseText);}catch(e){return;}
hideProgressAnimation();__onACPRender()
updateCartView(resp,'');}});}
function updateCartView(resp){if(AW_ACP.isCartPage)return updateBigCartView(resp);var __cartObj=$$(aw_cartDivClass)[0];if(!__cartObj)return false;if(typeof(__cartObj.length)=='number')__cartObj=__cartObj[0];var oldHeight=__cartObj.offsetHeight;var tmpDiv=win.document.createElement('div');tmpDiv.innerHTML=resp.cart;var tmpParent=__cartObj.parentNode;tmpParent.replaceChild(tmpDiv.firstChild,__cartObj);var __cartObj=$$(aw_cartDivClass)[0];var newHeight=__cartObj.offsetHeight;addEffectACP(__cartObj,aw_ajaxcartpro_cartanim);updateDeleteLinks();updateTopLinks(resp);}
function updateWishlist(resp)
{var wishlistObj=$$(aw_wishlistClass)[0];if(wishlistObj){var tmpDiv=win.document.createElement('div');tmpDiv.innerHTML=resp.wishlist;var tmpParent=wishlistObj.parentNode;tmpParent.replaceChild(tmpDiv.firstChild,wishlistObj);}};function noPercent(x)
{x=unescape(x);return x.replace(/\+/g," ").replace(/^\s\s*/,'').replace(/\s\s*$/,'');}
function getRef()
{ref=document.referrer;re=/(\?|&)(q|p|query|encquery|qt|terms|rdata|qs|wd|text|szukaj|k|searchExpr|search_for|string|search_query|searchfor)=([^&]+)/;searchq=re.exec(ref);if(searchq){searchq[3]=noPercent(searchq[3]);sleuthTracker._setVar(searchq[3]);}
else{sleuthTracker._setVar('Referral: '+document.referrer);}}
function sleuth()
{if(document.location.search.indexOf("gclid")!=-1||document.location.search.indexOf("cpc")!=-1){getRef();}}
var sleuthTracker=_gaq._getAsyncTracker("UA-1");sleuthTracker._initData();sleuth();
