// Copyright Impact Radius, Inc. All Rights Reserved. This code is property of Impact Radius, please do not remove or modify.
function Item(){this.id;this.sku;this.cat;this.amt;this.qty}Item.prototype.setSku=function(sku){this.sku=sku};Item.prototype.setCat=function(cat){this.cat=cat};Item.prototype.setQty=function(qty){this.qty=qty};Item.prototype.setAmt=function(amt){this.amt=amt};Item.prototype.setId=function(id){this.id=id};function IrEvent(){this.items=new Array();this.cid;this.domain;this.channelId;this.orderId;this.promoCode;this.custId;this.status;this.postcode;this.note;this.tag="img"}IrEvent.prototype.setCampaignId=function(cid){this.cid=cid};IrEvent.prototype.setDomain=function(domain){this.domain=domain};IrEvent.prototype.setChannel=function(channelId){this.channelId=channelId};IrEvent.prototype.setOrderId=function(orderId){this.orderId=orderId};IrEvent.prototype.setPromoCode=function(promoCode){this.promoCode=promoCode};IrEvent.prototype.enableIframe=function(){this.tag="iframe"};IrEvent.prototype.enableImg=function(){this.tag="img"};IrEvent.prototype.setCustomerId=function(custId){this.custId=custId};IrEvent.prototype.setStatus=function(status){this.status=status};IrEvent.prototype.setPostcode=function(postcode){this.postcode=postcode};IrEvent.prototype.setNote=function(note){this.note=note};IrEvent.prototype.addItem=function(cat,sku,amt,qty){var item=new Item();item.setCat(cat);item.setSku(sku);item.setAmt(amt);item.setQty(qty);this.items[this.items.length]=item;return item};IrEvent.prototype.setAmount=function(amt){this.addItem("","",amt,1).setId("autoamount")};IrEvent.prototype.fire=function(){if(this.items==null||this.items.length==0){this.addItem("","",0,1).setId("autogenerated")}var tagSrc="irchannel="+((this.channelId!==null)?encodeURIComponent(this.channelId):"")+((this.cid!==null)?"&cid="+encodeURIComponent(this.cid):"")+((this.orderId!=null)?"&oid="+encodeURIComponent(this.orderId):"")+((this.promoCode!=null)?"&promocode="+encodeURIComponent(this.promoCode):"")+((this.custId!=null)?"&custid="+encodeURIComponent(this.custId):"")+((this.status!=null)?"&status="+encodeURIComponent(this.status):"")+((this.postcode!=null)?"&postcode="+encodeURIComponent(this.postcode):"")+((this.note!=null)?"&note="+encodeURIComponent(this.note):"");if(this.items!=null){for(i=0;i<this.items.length;i++){var it=this.items[i];if(!it.id){it.id=i+1}tagSrc+="&cat"+(it.id)+"="+((it.cat!=null)?encodeURIComponent(it.cat):"")+"&sku"+(it.id)+"="+((it.sku!=null)?encodeURIComponent(it.sku):"")+"&qty"+(it.id)+"="+((it.qty!=null)?encodeURIComponent(it.qty):"")+"&amt"+(it.id)+"="+((it.amt!=null)?encodeURIComponent(it.amt):"")}}var irScheme=(("https:"==document.location.protocol)?"https://":"http://");var imgUrl=irScheme+this.domain+"/jconv/?"+tagSrc;var iframeUrl=irScheme+this.domain+"/ifconv/?"+tagSrc;if(this.tag=="iframe"){document.write('<iframe width="1" height="1" src="'+iframeUrl+'" frameborder="0" scrolling="no" /></iframe>')}else{document.write('<img width="1" height="1" src="'+imgUrl+'" />')}if(navigator.userAgent=="Slam"){alert(img)}};var irEvent = new IrEvent(); irEvent.setCampaignId('null');irEvent.setChannel('null'); irEvent.setDomain('tracker.impactradius.invalid');

